@font-face { font-family: Space; src: url('fonts/space-grotesk-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: Space; src: url('fonts/space-grotesk-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@layer reset, base, world, responsive, interface;
@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  body, h1, h2, h3, p { margin: 0; }
  a { color: inherit; text-decoration: none; }
  button { font: inherit; color: inherit; cursor: pointer; border: 0; }
  svg { display: block; }
  [hidden] { display: none !important; }
}
@layer base {
  :root { color-scheme: light; --bg: #edf1e9; --text: #183f43; --muted: #526963; --accent: #12685e; --line: #234e442b; --gutter: clamp(24px, 4vw, 76px); }
  html { scroll-behavior: smooth; }
  body { font-family: Space, Arial, sans-serif; background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; }
  ::selection { background: var(--accent); color: #fff; }
  :focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
  a, button { -webkit-tap-highlight-color: transparent; }
  a { transition: color .2s; }
  a:hover { color: var(--accent); }
  .skip { position: absolute; top: -100px; left: 24px; padding: 15px; color: white; background: var(--accent); z-index: 30; }
  .skip:focus { top: 12px; }
  .visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
  .eyebrow { font-size: 10px; line-height: 1.6; letter-spacing: .12em; font-weight: 600; }
  .location-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-right: 9px; vertical-align: middle; }
  h1, .panel h2 { font-size: clamp(43px, 4.5vw, 78px); font-weight: 400; line-height: 1.07; letter-spacing: -.065em; }
  em { font-style: normal; color: var(--accent); }
  .app { position: relative; isolation: isolate; }
  .world, .vignette { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
  .static-world { position: absolute; inset: 0; height: min(100svh, 900px); opacity: .14; background: radial-gradient(ellipse at 80% 30%, #bfd7cf, transparent 65%); transition: opacity .6s; }
  .static-world img { display: block; width: 100%; height: 100%; object-fit: cover; }
  .header { position: relative; z-index: 5; margin: 0 var(--gutter); height: 100px; display: flex; align-items: center; justify-content: space-between; gap: 30px; border-bottom: 1px solid var(--line); }
  .wordmark { display: flex; align-items: center; gap: 12px; font-size: 34px; font-weight: 600; letter-spacing: -.075em; }
  .wordmark > span { font-size: 10px; align-self: start; margin-top: 10px; letter-spacing: .04em; color: var(--muted); }
  .header-descriptor { font-size: 10px; letter-spacing: .09em; color: var(--muted); margin-right: auto; margin-left: 4vw; }
  .contact-trigger { display: flex; gap: 35px; font-size: 14px; align-items: center; }
  .contact-trigger > span { font-size: 24px; color: var(--accent); }
  .panels { position: relative; padding: 80px var(--gutter); }
  .panel { max-width: 570px; margin-bottom: 90px; }
  .panel .eyebrow { color: var(--muted); margin-bottom: 24px; }
  .panel-copy { max-width: 355px; margin-top: 24px; font-size: 17px; line-height: 1.65; color: var(--muted); text-wrap: pretty; }
  .secondary-offer { max-width: 425px; margin-top: 18px; font-size: 16px; line-height: 1.65; color: var(--muted); text-wrap: pretty; }
  .primary-action { display: inline-flex; align-items: center; gap: 30px; border-bottom: 1px solid var(--accent); padding: 12px 0; margin-top: 17px; font-size: 14px; }
  .primary-action > span[aria-hidden] { color: var(--accent); font-size: 21px; line-height: 1; }
  .story { max-width: 410px; }
  .story-flow { display: grid; gap: 15px; list-style: none; padding: 0; margin: 23px 0 0; }
  .story-flow li { position: relative; display: flex; gap: 14px; line-height: 1.5; }
  .story-flow li:not(:last-child)::after { content: ''; position: absolute; left: 3px; top: 17px; bottom: -8px; width: 1px; background: var(--line); }
  .flow-dot { flex: 0 0 7px; height: 7px; margin-top: 6px; border: 1px solid var(--muted); border-radius: 50%; transition: background .4s, box-shadow .4s; }
  .story-flow strong { display: block; font-size: 13px; font-weight: 600; }
  .story-flow div > span { display: block; color: var(--muted); font-size: 12px; }
  .story-flow li[aria-current] .flow-dot { background: #9e733b; border-color: #9e733b; box-shadow: 0 0 0 4px #9e733b20; }
  .story-flow li[data-complete="true"] .flow-dot { background: var(--accent); border-color: var(--accent); }
  .story-ending { margin-top: 21px; }
  .story-result { font-size: 15px; line-height: 1.4; color: var(--accent); }
  .story-result > span { margin-right: 7px; }
  .story-future { margin-top: 13px; color: var(--muted); font-size: 11px; line-height: 1.55; }
  .story-future strong { display: block; font-size: 11px; font-weight: 600; color: var(--text); margin-bottom: 3px; }
  .story-bridge { margin-top: 17px; padding-top: 13px; border-top: 1px solid var(--line); }
  .story-bridge p { font-size: 13px; }
  .story-bridge .primary-action { margin-top: 0; padding-block: 10px; font-size: 13px; }
  .journey-wrap { margin: 0 var(--gutter); }
  .journey-top { display: flex; align-items: flex-end; justify-content: flex-end; gap: 20px; margin-bottom: 16px; }
  .finds { display: flex; align-items: center; gap: 10px; font-size: 11px; color: var(--muted); padding: 6px 10px; border-radius: 4px; background: #f4f5eeed; border: 1px solid #fff9; backdrop-filter: blur(10px); }
  .finds-dots { display: flex; gap: 4px; }
  .finds-dots i { width: 6px; height: 6px; border-radius: 50%; border: 1px solid #12685e66; }
  .finds-dots i.found { background: var(--accent); border-color: var(--accent); }
  .finds-label { margin: 0; }
  .finds-list { position: relative; }
  .finds-list summary { cursor: pointer; color: var(--accent); list-style: none; border-bottom: 1px solid var(--accent); }
  .finds-list summary::-webkit-details-marker { display: none; }
  .finds-list ul { position: absolute; right: 0; bottom: calc(100% + 10px); list-style: none; margin: 0; padding: 10px; width: 170px; border: 1px solid #fff9; border-radius: 6px; background: #f4f5eef2; backdrop-filter: blur(12px); box-shadow: 0 10px 40px #24443b14; display: grid; gap: 2px; }
  .finds-list button { width: 100%; text-align: left; background: transparent; padding: 6px 8px; border-radius: 4px; font-size: 12px; color: var(--text); display: flex; justify-content: space-between; align-items: center; }
  .finds-list button:hover { background: #12685e0f; }
  .finds-list button::after { content: ''; width: 6px; height: 6px; flex-shrink: 0; margin-left: 10px; border-radius: 50%; border: 1px solid #12685e66; }
  .finds-list button[data-found="true"]::after { background: var(--accent); border-color: var(--accent); }
  .find-card { position: absolute; z-index: 6; right: var(--gutter); bottom: 206px; width: min(340px, calc(100% - var(--gutter) * 2)); padding: 20px 22px 18px; border: 1px solid #fff9; border-radius: 8px; background: #f4f5eef4; backdrop-filter: blur(16px); box-shadow: 0 14px 50px #24443b1c; animation: rise .5s cubic-bezier(.2, .7, .1, 1); }
  .find-card .eyebrow { color: var(--accent); margin-bottom: 10px; }
  .find-card h3 { font-size: 22px; font-weight: 400; letter-spacing: -.04em; margin-bottom: 8px; }
  .find-card p:not(.eyebrow) { font-size: 13px; line-height: 1.55; color: var(--muted); }
  .find-card .primary-action { margin-top: 12px; padding-block: 8px; font-size: 13px; gap: 16px; }
  .find-close { position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; background: transparent; color: var(--muted); font-size: 22px; }
  .icon-button { width: 38px; padding: 0 !important; display: grid; place-items: center; }
  .icon-button svg { width: 18px; height: 18px; fill: none; stroke: var(--text); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
  .toast { position: absolute; z-index: 7; left: 50%; top: 182px; transform: translateX(-50%); margin: 0; padding: 9px 14px; border-radius: 4px; background: #183f43ee; color: #fff; font-size: 12px; white-space: nowrap; animation: rise .4s cubic-bezier(.2, .7, .1, 1); }
  .flash { position: absolute; inset: 0; z-index: 8; background: #fff; pointer-events: none; animation: flash .45s ease-out forwards; }
  @keyframes flash { from { opacity: .85; } to { opacity: 0; } }
  .walk-hint { position: absolute; z-index: 5; left: 50%; bottom: 190px; transform: translateX(-50%); margin: 0; padding: 8px 14px; border-radius: 4px; background: #183f43e6; color: #fff; font-size: 12px; white-space: nowrap; }
  .walking .panels, .walking .landmarks, .walking .finds, .walking .world-hint { visibility: hidden; }
  .walking .vignette { display: none; }
  .find-tip { position: absolute; z-index: 5; left: 0; top: 0; pointer-events: none; margin: -34px 0 0 12px; padding: 5px 9px; border-radius: 4px; background: #183f43; color: #fff; font-size: 11px; white-space: nowrap; }
  .journey { display: grid; grid-template-columns: 150px repeat(4, 1fr); border: 1px solid #fff9; border-radius: 7px; background: #f4f5eee8; backdrop-filter: blur(20px); box-shadow: 0 6px 40px #24443b0c; }
  .home-stop { display: flex; align-items: center; justify-content: center; gap: 13px; }
  .home-stop strong { font-size: 14px; font-weight: 400; }
  .home-stop > span { font-size: 20px; }
  .journey a { transition: color .2s, background .3s; position: relative; }
  .journey a:hover { background: #12685e0a; }
  .journey a[aria-current] { background: #12685e0a; color: var(--accent); }
  .journey a[aria-current]::before { content: ''; position: absolute; inset: -1px 20% auto; height: 2px; background: var(--accent); }
  .stop { display: flex; align-items: center; gap: 22px; padding: 22px; border-left: 1px solid var(--line); }
  .stop-copy { display: grid; gap: 4px; }
  .stop-copy strong { font-size: 19px; font-weight: 400; letter-spacing: -.035em; }
  .stop-start { background: #12685e08; }
  .stop-start .stop-copy strong { color: var(--accent); }
  .stop-copy > span { font-size: 11px; color: var(--muted); }
  .stop-arrow { margin-left: auto; font-size: 21px; color: var(--accent); }
  .footer { margin: 0 var(--gutter); min-height: 62px; display: flex; justify-content: space-between; align-items: center; gap: 24px; font-size: 11px; color: var(--muted); }
  .footer a > span { color: var(--accent); margin-left: 16px; }
  .profile { max-width: 680px; margin: 0 auto; padding: 65px var(--gutter); }
  .profile-top { display: flex; justify-content: space-between; align-items: start; gap: 20px; margin-bottom: 24px; }
  .profile h2 { font-size: clamp(34px, 4vw, 52px); letter-spacing: -.05em; line-height: 1.1; font-weight: 400; }
  .profile h3 { font-weight: 400; font-size: 18px; margin-top: 30px; }
  .profile p { color: var(--muted); font-size: 16px; line-height: 1.65; margin-top: 16px; }
  .profile-links { display: grid; margin-top: 25px; }
  .profile-links a { display: flex; justify-content: space-between; gap: 20px; padding-block: 15px; border-top: 1px solid var(--line); font-size: 17px; }
  .profile-links span { color: var(--accent); }
  dialog { border: 1px solid var(--line); background: var(--bg); color: var(--text); padding: 0; width: min(620px, calc(100% - 32px)); max-height: calc(100svh - 40px); border-radius: 8px; }
  dialog::backdrop { background: #23473f55; backdrop-filter: blur(12px); }
  dialog .profile { padding: clamp(25px, 5vw, 50px); }
  .close-profile { flex-shrink: 0; background: transparent; color: var(--muted); font-size: 30px; min-width: 40px; min-height: 40px; }
  .world-status { position: absolute; top: 122px; right: var(--gutter); color: var(--muted); font-size: 12px; max-width: 280px; line-height: 1.5; }
  html:not(.immersive) .world-status { position: static; max-width: 600px; margin: 20px var(--gutter); padding: 12px 16px; border-left: 2px solid var(--accent); }
  .world-loader { display: none; }
}
@layer world {
  .immersive .app { height: 100svh; min-height: 780px; }
  .immersive .static-world { height: 100%; opacity: 1; }
  .world-ready .static-world { opacity: 0; }
  .immersive .app[data-view="story"] { min-height: 780px; }
  /* Keep the canvas above the loading backdrop when opacity reaches 1. */
  .world canvas { position: relative; z-index: 1; display: block; width: 100%; height: 100%; touch-action: none; cursor: grab; opacity: 0; transition: opacity .55s ease; }
  .world-ready .world canvas { opacity: 1; }
  .world canvas:active { cursor: grabbing; }
  .immersive .vignette { pointer-events: none; z-index: -1; background: linear-gradient(90deg, #edf1e9ff 0%, #edf1e9f5 23%, #edf1e9a3 32%, #edf1e900 48%), linear-gradient(0deg, #edf1e9eb 0%, #edf1e900 20%, #edf1e900 calc(100% - 130px), #edf1e9a3 calc(100% - 60px), #edf1e9eb 100%); }
  .immersive .panels { padding: 0; position: absolute; left: var(--gutter); top: 19%; width: 40%; pointer-events: none; }
  .immersive .panel { display: none; margin: 0; scroll-margin-top: 150px; }
  .immersive[data-panel="start"] #start, .immersive[data-panel="industri"] #industri, .immersive[data-panel="offentlig-sektor"] #offentlig-sektor, .immersive[data-panel="bank-och-forsakring"] #bank-och-forsakring, .immersive[data-panel="sa-borjar-vi"] #sa-borjar-vi { display: block; }
  .immersive body > .profile { display: none; }
  .immersive .panel a { pointer-events: auto; }
  .immersive .panel-copy { max-width: 345px; }
  /* Room inside the scroll box so focus rings are not clipped into stray lines. */
  .immersive .app[data-view="story"] .panels { top: 122px; max-height: calc(100% - 122px - 170px); overflow: hidden auto; pointer-events: auto; scrollbar-width: thin; padding: 10px; margin-left: -10px; }
  .immersive .story:not([data-complete="true"]) .story-ending { visibility: hidden; }
  .immersive .story h2 { font-size: clamp(32px, 3.2vw, 46px); }
  .immersive .story .eyebrow { margin-bottom: 14px; font-size: 9px; }
  .immersive .story .panel-copy { margin-top: 15px; font-size: 14px; line-height: 1.5; }
  .immersive .journey-wrap { position: absolute; bottom: 62px; left: 0; right: 0; }
  .immersive .footer { position: absolute; bottom: 0; left: 0; right: 0; }
  .world-controls { position: absolute; z-index: 4; right: var(--gutter); top: 120px; display: flex; align-items: center; gap: 10px; }
  .world-hint { display: flex; align-items: center; gap: 9px; font-size: 11px; color: var(--muted); margin-right: 5px; min-height: 38px; padding: 7px 10px; border-radius: 4px; background: #f4f5eeed; }
  .world-hint svg { width: 18px; stroke: var(--muted); fill: none; }
  .world-controls button { background: #f4f5eedb; border: 1px solid #fff8; border-radius: 4px; min-height: 38px; padding: 7px 10px; font-size: 11px; color: var(--text); backdrop-filter: blur(8px); }
  .time-widget { position: relative; }
  #sound-toggle { display: flex; align-items: center; gap: 8px; }
  .sound-wave { display: flex; align-items: flex-end; gap: 2px; height: 12px; }
  .sound-wave i { display: block; width: 2px; height: 4px; background: var(--muted); border-radius: 1px; transition: height .3s; }
  #sound-toggle[aria-pressed="true"] .sound-wave i { background: var(--accent); animation: wave 1.1s ease-in-out infinite; }
  #sound-toggle[aria-pressed="true"] .sound-wave i:nth-child(2) { animation-delay: .2s; }
  #sound-toggle[aria-pressed="true"] .sound-wave i:nth-child(3) { animation-delay: .4s; }
  @keyframes wave { 0%, 100% { height: 4px; } 50% { height: 12px; } }
  .time-chip { display: flex; align-items: center; gap: 7px; font-variant-numeric: tabular-nums; }
  .time-chip time { font-weight: 600; }
  .time-phase { color: var(--muted); }
  .time-sun { width: 8px; height: 8px; border-radius: 50%; background: #e4b44c; box-shadow: 0 0 0 3px #e4b44c33; transition: background .6s, box-shadow .6s; }
  [data-phase="golden"] .time-sun { background: #e07c3a; box-shadow: 0 0 0 3px #e07c3a33; }
  [data-phase="civil"] .time-sun, [data-phase="nautical"] .time-sun { background: #7d6fb3; box-shadow: 0 0 0 3px #7d6fb333; }
  [data-phase="night"] .time-sun { background: #2d4a6b; box-shadow: 0 0 0 3px #2d4a6b33; }
  .time-chip.pinned { border-color: var(--accent); }
  .time-panel { position: absolute; right: 0; top: calc(100% + 8px); width: 262px; padding: 16px; border: 1px solid #fff9; border-radius: 6px; background: #f4f5eef2; backdrop-filter: blur(16px); box-shadow: 0 10px 40px #24443b14; display: grid; gap: 14px; z-index: 5; }
  .time-note { font-size: 11px; line-height: 1.5; color: var(--muted); }
  .time-panel label { display: grid; gap: 6px; font-size: 11px; color: var(--muted); }
  .time-panel output { float: right; color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
  .time-panel input[type="range"] { width: 100%; accent-color: var(--accent); margin: 0; }
  .time-panel button { justify-self: start; background: transparent; border: 0; padding: 4px 0; color: var(--accent); font-size: 12px; border-bottom: 1px solid var(--accent); border-radius: 0; min-height: 0; backdrop-filter: none; }
  /* Arrival: the headline settles in as the camera descends into the bay. */
  @media (prefers-reduced-motion: no-preference) {
    .immersive #start { animation: rise .7s cubic-bezier(.2, .7, .1, 1); }
    .world-ready.arriving .landmarks { opacity: 0; }
    @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
  }
  #reset-view { font-size: 21px; width: 38px; padding: 0; }
  #pause-world span { margin-left: 10px; }
  .landmarks { position: absolute; inset: 0; pointer-events: none; z-index: 3; overflow: hidden; visibility: hidden; }
  .world-ready .landmarks { visibility: visible; }
  .landmark { position: absolute; left: 0; top: 0; pointer-events: auto; background: transparent; white-space: nowrap; display: block; padding: 8px; will-change: transform; }
  .landmark-point { position: absolute; left: var(--point-x); top: var(--point-y); transform: translate(-50%, -50%); pointer-events: none; width: 7px; height: 7px; background: var(--accent); border-radius: 50%; outline: 1px solid #12685e66; outline-offset: 6px; }
  .landmark::before { content: ''; position: absolute; left: var(--point-x); top: var(--point-y); width: var(--stem-length); height: 1px; background: #12685e66; transform: rotate(var(--stem-angle)); transform-origin: left; pointer-events: none; }
  .landmark[data-detached="true"] .landmark-point, .landmark[data-detached="true"]::before { visibility: hidden; }
  .landmark-label { display: block; position: relative; border: 1px solid #fff9; border-radius: 4px; padding: 9px 12px; font-size: 12px; background: #f4f5eeed; backdrop-filter: blur(12px); }
  .landmark-label strong { font-size: 12px; font-weight: 400; margin-right: 8px; }
  .landmark-label > span { font-size: 10px; color: var(--muted); margin-right: 8px; }
  .landmark:hover .landmark-label, .landmark[data-hover="true"] .landmark-label { background: #fff; border-color: var(--accent); }
  .landmark[data-hover="true"] .landmark-point { background: var(--accent); outline-color: var(--accent); }
  .immersive .world-status { top: auto; bottom: 230px; right: var(--gutter); background: #f4f5eef0; padding: 10px 14px; border-radius: 4px; }
  .world-status:empty { display: none; }
  .immersive .world-loader { display: block; position: absolute; left: 68%; top: 47%; width: clamp(200px, 20vw, 290px); transform: translateX(-50%); pointer-events: none; opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; }
  .loading .world-loader { opacity: 1; visibility: visible; }
  .loading-label { font-size: 10px; letter-spacing: .1em; color: var(--muted); margin-bottom: 16px; }
  .loading-track { height: 2px; background: var(--line); border-radius: 2px; }
  .loading-fill { display: block; height: 100%; position: relative; background: var(--accent); transform: scaleX(var(--load-progress, 0)); transform-origin: left; transition: transform .2s ease-out; }
  .loading-fill::after { content: ''; position: absolute; right: -2px; top: -2px; width: 6px; height: 6px; background: var(--accent); border-radius: 50%; box-shadow: 0 0 12px #12685e35; }
}

/* The interface is a quiet editorial frame around the world. Disclosure panels
   own secondary controls; the same content stays readable without enhancement. */
@layer interface {
  :root { --bg: #f2f2e9; --text: #193c3d; --muted: #536963; --accent: #14685b; --line: #234e4426; --gutter: clamp(24px, 4vw, 72px); }
  .header { height: 84px; border-color: #234e4420; }
  .header-descriptor { font-size: 9px; letter-spacing: .13em; margin-left: 3vw; }
  .contact-trigger { min-height: 44px; gap: 20px; font-size: 13px; }
  h1 { font-size: clamp(44px, 4.7vw, 76px); letter-spacing: -.06em; }
  .panel-copy { max-width: 370px; font-size: 16px; line-height: 1.7; }
  .hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin-top: 28px; }
  .hero-actions .primary-action { margin: 0; }
  .action-filled { padding: 14px 18px; min-height: 48px; border: 1px solid var(--accent); border-radius: 3px; color: #fff; background: var(--accent); gap: 22px; font-size: 13px; box-shadow: 0 6px 20px #123f3812; }
  .action-filled > span[aria-hidden] { color: #d6ece1; }
  .action-filled:hover { background: #0e5449; color: white; }
  .text-action { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; font-size: 12px; border-bottom: 1px solid var(--line); }
  .immersive .app, .immersive .app[data-view="story"] { height: 100svh; min-height: 620px; }
  .immersive .panels { top: clamp(126px, 21svh, 220px); width: min(43%, 560px); max-height: calc(100% - clamp(126px, 21svh, 220px) - 158px); overflow: hidden auto; scrollbar-width: thin; padding: 6px; margin-left: -6px; pointer-events: auto; }
  .immersive .panel-copy { max-width: 365px; }
  .immersive .app[data-view="story"] .panels { top: 110px; max-height: calc(100% - 110px - 158px); padding: 10px; margin-left: -10px; }
  .immersive .panels { scrollbar-color: #23473f33 transparent; }
  .immersive .story { max-width: 405px; }
  .immersive .story h2 { font-size: clamp(32px, 3.2vw, 46px); }
  .immersive .vignette { background: linear-gradient(90deg, #f2f2e9 0%, #f2f2e9f5 23%, #f2f2e9c9 31%, #f2f2e940 40%, transparent 52%), linear-gradient(0deg, #f2f2e9eb, transparent 23%, transparent 85%, #f2f2e9cc); }
  .world-controls { top: 104px; left: auto; right: var(--gutter); z-index: 9; }
  .world-tools { position: relative; }
  .world-tools > summary { display: flex; align-items: center; gap: 30px; min-height: 44px; padding: 10px 14px; list-style: none; cursor: pointer; font-size: 11px; color: var(--text); background: #f6f6eee8; border: 1px solid #ffffffa8; border-radius: 4px; backdrop-filter: blur(12px); }
  .world-tools > summary::-webkit-details-marker { display: none; }
  .world-tools > summary > span { font-size: 20px; line-height: 1; color: var(--accent); transition: transform .2s; }
  .world-tools[open] > summary > span { transform: rotate(45deg); }
  .tools-panel { position: absolute; right: 0; top: calc(100% + 8px); width: 300px; max-height: calc(100svh - 182px); overflow: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 18px; border: 1px solid #fff9; border-radius: 6px; background: #f6f6eef5; backdrop-filter: blur(18px); box-shadow: 0 16px 55px #1d392b26; }
  .tools-heading { grid-column: 1 / -1; font-size: 9px; letter-spacing: .12em; color: var(--muted); }
  .world-hint { display: flex; grid-column: 1 / -1; padding: 0; background: transparent; margin: 0 0 6px; font-size: 11px; }
  .world-controls button { min-height: 44px; padding: 10px; font-size: 11px; border: 1px solid var(--line); background: #fff6; backdrop-filter: none; text-align: left; }
  .world-controls button .label { position: static; width: auto; height: auto; clip-path: none; overflow: visible; }
  .world-controls button[aria-pressed="true"] { background: #14685b12; border-color: #14685b66; }
  .time-widget { position: relative; grid-column: 1 / -1; }
  .time-chip { width: 100%; justify-content: center; }
  .time-chip .time-place, .time-chip .time-phase { display: inline; }
  .time-panel { position: static; transform: none; width: auto; margin-top: 8px; padding: 12px; box-shadow: none; background: #fff8; }
  .time-panel input { min-height: 32px; }
  .time-panel button { font-size: 11px; padding: 8px 0; border-width: 0 0 1px; background: transparent; }
  #reset-view { width: auto; font-size: 11px; display: flex; justify-content: space-between; align-items: center; }
  #pause-world span { margin-left: 0; }
  #pause-world, #walk-toggle { display: flex; justify-content: space-between; gap: 6px; align-items: center; }
  #sound-toggle { justify-content: space-between; }
  .icon-button { width: auto; }
  #photo-button { display: grid; }
  .journey-top { margin-bottom: 10px; align-items: center; }
  .journey { grid-template-columns: 108px repeat(4, 1fr); border-radius: 5px; background: #f6f6eee8; }
  .stop { padding: 18px 20px; gap: 14px; }
  .stop-copy strong { font-size: 17px; }
  .stop-copy > span { font-size: 10px; }
  .stop-arrow { font-size: 18px; }
  .home-stop { gap: 9px; }
  .home-stop strong { font-size: 12px; }
  .home-stop > span { font-size: 22px; }
  .immersive .journey-wrap { bottom: 48px; }
  .footer { min-height: 48px; font-size: 10px; }
  .finds { position: static; padding: 0; border: 0; background: none; backdrop-filter: none; }
  .finds-dots { display: none; }
  .finds-list summary { display: flex; align-items: center; gap: 14px; min-height: 36px; padding: 0 10px; border: 1px solid #fff8; background: #f6f6eed9; border-radius: 3px; font-size: 11px; }
  .finds-panel { position: absolute; right: 0; bottom: calc(100% + 10px); width: 270px; padding: 14px; border: 1px solid #fff9; border-radius: 5px; background: #f6f6eef7; backdrop-filter: blur(16px); box-shadow: 0 12px 40px #24443b20; z-index: 8; }
  .finds-label { font-size: 11px; line-height: 1.5; margin: 0 6px 8px; }
  .finds-list ul { position: static; width: auto; padding: 0; border: 0; background: none; backdrop-filter: none; box-shadow: none; }
  .finds-list button { min-height: 36px; }
  .find-card { bottom: 176px; }
  .landmark-label { padding: 13px 16px; min-height: 44px; background: #f6f6eee6; }
  .landmark-label > span { display: none; }
  .landmark-label strong { font-size: 11px; }
  .landmark:hover .landmark-label, .landmark:focus-visible .landmark-label { transform: translateY(-3px); }
  .landmark-label { transition: transform .2s, background .2s; }
  .landmark-point { width: 5px; height: 5px; outline-offset: 4px; }
  .toast { top: 104px; max-width: calc(100% - 40px); white-space: normal; text-align: center; }
  .walk-hint { bottom: 174px; max-width: calc(100% - 40px); white-space: normal; text-align: center; }
  .walk-exit { position: absolute; z-index: 5; bottom: 218px; left: auto; right: var(--gutter); display: flex; gap: 24px; padding: 14px 18px; min-height: 48px; background: var(--bg); border: 1px solid var(--line); border-radius: 4px; font-size: 13px; }
  .walking .world-controls { visibility: hidden; }
  .profile h3 { font-size: 16px; }
  .profile p { font-size: 14px; }
  .profile-links a { font-size: 16px; min-height: 48px; }
  .sheet-toggle { display: none; }
  @media (min-width: 701px) and (max-width: 1000px) {
    .header-descriptor { font-size: 8px; }
    .immersive .panels { width: 45%; }
    h1 { font-size: clamp(37px, 4.7vw, 48px); }
    .panel-copy { font-size: 14px; }
    .hero-actions { gap: 5px 12px; margin-top: 20px; }
    .stop { padding: 16px 12px; }
    .stop-copy strong { font-size: 14px; }
    .stop-copy > span { font-size: 9px; }
    .journey { grid-template-columns: 80px repeat(4, 1fr); }
    .home-stop { flex-direction: column; gap: 2px; }
  }
  @media (min-width: 701px) and (max-height: 750px) {
    .immersive .panels { top: 122px; max-height: calc(100% - 270px); }
    .panel .eyebrow { margin-bottom: 16px; }
    h1 { font-size: clamp(40px, 4.5vw, 60px); }
    .panel-copy { margin-top: 18px; font-size: 15px; line-height: 1.6; }
    .hero-actions { margin-top: 20px; }
    .stop { padding-block: 14px; }
  }
  /* Give desktop reading and navigation a comfortable scale. Reserve space for
     the larger navigation instead of shrinking the text on shorter screens. */
  @media (min-width: 701px) {
    .header-descriptor, .eyebrow, .immersive .story .eyebrow { font-size: .75rem; letter-spacing: .09em; }
    .contact-trigger { font-size: 1rem; }
    .panel-copy, .immersive .panel-copy { max-width: 425px; font-size: 1.1875rem; line-height: 1.65; }
    .primary-action, .action-filled, .text-action { font-size: 1rem; }
    .immersive .panels { max-height: calc(100% - clamp(126px, 21svh, 220px) - 204px); }
    .immersive .app[data-view="story"] .panels { max-height: calc(100% - 110px - 204px); }
    .immersive .story { max-width: 460px; }
    .immersive .story .panel-copy { font-size: 1.125rem; line-height: 1.6; }
    .story-flow strong, .story-flow div > span { font-size: 1rem; }
    .story-flow li { line-height: 1.55; }
    .flow-dot { margin-top: 9px; }
    .story-result { font-size: 1.0625rem; }
    .story-future, .story-future strong { font-size: .875rem; }
    .journey { grid-template-columns: 128px repeat(4, minmax(0, 1fr)); }
    .stop { padding: 16px; gap: 10px; }
    .stop-copy { min-width: 0; }
    .stop-copy strong { font-size: 1.25rem; line-height: 1.25; }
    .stop-copy > span { font-size: .8125rem; line-height: 1.4; }
    .home-stop strong { font-size: .875rem; }
    .immersive .journey-wrap { bottom: 52px; }
    .footer { min-height: 52px; font-size: .8125rem; }
    .world-tools > summary, .finds-list summary { font-size: .875rem; min-height: 44px; }
    .tools-panel { width: 350px; }
    .tools-heading { font-size: .75rem; }
    .world-hint, .world-controls button, #reset-view, .time-panel button { font-size: .875rem; }
    .time-note, .time-panel label { font-size: .8125rem; line-height: 1.6; }
    .finds-panel { width: 310px; }
    .finds-label { font-size: .875rem; }
    .finds-list button { font-size: .9375rem; min-height: 40px; }
    .find-card { width: min(390px, calc(100% - var(--gutter) * 2)); bottom: 214px; }
    .find-card p:not(.eyebrow) { font-size: 1rem; line-height: 1.65; }
    .find-card .primary-action { font-size: .9375rem; }
    .landmark-label, .landmark-label strong { font-size: .875rem; }
    .toast, .walk-hint, .walk-exit, .world-status { font-size: .875rem; }
    .walk-hint { bottom: 190px; }
    .walk-exit { bottom: 262px; }
    .find-tip, .loading-label { font-size: .8125rem; }
    .profile h3, .profile-links a { font-size: 1.1875rem; }
    .profile p { font-size: 1.0625rem; line-height: 1.7; }
  }
  @media (min-width: 701px) and (max-width: 1100px) {
    .header-descriptor { max-width: 250px; line-height: 1.5; }
    .journey { grid-template-columns: 90px repeat(4, minmax(0, 1fr)); }
    .stop { padding-inline: 12px; }
    .stop-copy strong { font-size: 1.0625rem; }
    .stop-copy > span { font-size: .8125rem; }
  }
  @media (min-width: 701px) and (max-height: 750px) {
    .immersive .panels { top: 114px; max-height: calc(100% - 318px); }
    .panel-copy { margin-top: 16px; }
    .hero-actions { margin-top: 18px; }
  }
  @media (max-width: 700px) {
    :root { --gutter: 22px; }
    .header { height: 70px; }
    .wordmark { font-size: 29px; }
    .header-descriptor { display: block; font-size: 10px; letter-spacing: .02em; margin-left: 0; }
    .contact-trigger { font-size: 12px; gap: 12px; }
    .immersive .app, .immersive .app[data-view="story"] { height: 100svh; min-height: 600px; }
    .immersive .panels { top: 100px; width: calc(100% - var(--gutter) * 2); max-height: none; overflow: visible; padding: 0; margin: 0; }
    .panel .eyebrow { font-size: 8px; letter-spacing: .09em; margin-bottom: 14px; }
    h1 { font-size: clamp(35px, 9.7vw, 58px); line-height: 1.08; }
    .panel-copy, .immersive .panel-copy { font-size: 14px; line-height: 1.6; max-width: 370px; margin-top: 16px; }
    .secondary-offer { font-size: 13px; line-height: 1.6; margin-top: 12px; max-width: 370px; }
    .hero-actions { margin-top: 18px; gap: 6px 17px; }
    .action-filled { padding: 12px 13px; font-size: 12px; gap: 12px; min-height: 44px; }
    .text-action { font-size: 11px; gap: 8px; }
    .immersive .vignette { background: linear-gradient(180deg, #f2f2e9f2, #f2f2e9f5 30%, #f2f2e980 41%, transparent 54%, transparent 79%, #f2f2e9db 92%); }
    .world-controls { top: auto; bottom: calc(96px + env(safe-area-inset-bottom)); right: var(--gutter); left: auto; }
    .world-tools > summary { font-size: 10px; gap: 20px; min-height: 40px; padding: 8px 12px; }
    .tools-panel { top: auto; bottom: calc(100% + 8px); width: min(300px, calc(100vw - 44px)); max-height: calc(100svh - 230px); }
    .immersive .journey-wrap { position: absolute; bottom: calc(12px + env(safe-area-inset-bottom)); }
    .journey { display: grid; grid-template-columns: .85fr .9fr 1.25fr .9fr 1.1fr; overflow: visible; }
    .journey > a { min-width: 0; }
    .home-stop { flex-direction: column; gap: 1px; }
    .home-stop > span { font-size: 19px; line-height: 1; }
    .home-stop strong, .stop-copy strong { font-size: 10px; letter-spacing: -.02em; }
    .stop { padding: 12px 5px; min-height: 62px; display: flex; justify-content: center; }
    .stop-copy strong { line-height: 1.3; }
    .stop-copy > span, .stop-arrow { display: none; }
    .journey a[aria-current]::before { inset-inline: 15%; }
    .journey-top { position: absolute; left: 0; bottom: 84px; margin: 0; }
    .finds-list summary { font-size: 10px; min-height: 40px; padding: 8px 10px; }
    .finds-panel { right: auto; left: 0; max-height: calc(100svh - 230px); overflow: auto; }
    .finds-list button { min-height: 44px; }
    .find-card { bottom: 154px; }
    .footer { display: none; }
    .immersive .app[data-view="story"] .panels { top: auto; bottom: calc(92px + env(safe-area-inset-bottom)); left: 10px; right: 10px; width: auto; max-height: 45svh; margin: 0; padding: 0 20px 20px; overflow: auto; border-radius: 10px; background: #f5f5edf5; box-shadow: 0 10px 50px #1d392b20; scrollbar-width: thin; scroll-padding-top: 48px; }
    .immersive .app[data-view="story"] .panels::before { display: none; }
    .sheet-toggle { display: flex; position: sticky; top: 0; z-index: 2; align-items: center; justify-content: space-between; width: calc(100% + 40px); margin: 0 -20px 16px; padding: 19px 20px 10px; min-height: 48px; background: #f5f5ed; color: var(--muted); font-size: 10px; border-bottom: 1px solid var(--line); }
    .sheet-grip { position: absolute; top: 7px; left: calc(50% - 15px); width: 30px; height: 3px; background: #234e4430; border-radius: 3px; }
    .sheet-arrow { font-size: 16px; color: var(--accent); }
    .immersive[data-sheet="expanded"] .app[data-view="story"] .panels { max-height: calc(100svh - 178px - env(safe-area-inset-bottom)); }
    .immersive[data-sheet="scene"] .app[data-view="story"] .panels { height: 49px; padding-bottom: 0; overflow: hidden; }
    .immersive[data-sheet="scene"] #story-content { visibility: hidden; }
    .immersive .app[data-view="story"] .world-controls { top: 84px; bottom: auto; }
    .immersive .app[data-view="story"] .tools-panel { top: calc(100% + 8px); bottom: auto; }
    .immersive .app[data-view="story"] .vignette { background: linear-gradient(180deg, #f2f2e9eb, transparent 160px); }
    .immersive .story h2 { font-size: 31px; }
    .immersive .story .panel-copy { font-size: 13px; }
    .story-flow strong, .story-flow div > span { font-size: 12px; }
    .toast { top: 82px; bottom: auto; }
    .walk-hint { bottom: 148px; }
    .walk-exit { bottom: 220px; left: 50%; right: auto; transform: translateX(-50%); white-space: nowrap; }
    .world-loader { max-width: 200px; }
    html:not(.immersive) .journey { margin-top: 20px; }
    html:not(.immersive) .footer { display: flex; }
  }
  @media (max-width: 700px) and (max-height: 730px) {
    .immersive .panels { top: 88px; }
    h1 { font-size: 34px; }
    .panel .eyebrow { margin-bottom: 10px; }
    .panel-copy, .immersive .panel-copy { margin-top: 12px; font-size: 13px; }
    .hero-actions { margin-top: 12px; }
  }
}
@layer responsive {
  @media (min-width: 1700px) { .immersive .panels { top: 23%; } .immersive .app[data-view="story"] .panels { top: 132px; } }
  @media (max-width: 1100px) {
    h1, .panel h2 { font-size: clamp(39px, 4.9vw, 55px); }
    .stop { padding: 20px 14px; gap: 13px; }
    .stop-arrow { display: none; }
    .journey { grid-template-columns: 110px repeat(4, 1fr); }
    .landmark-label > span { display: none; }
    .immersive .panels { width: 43%; top: 19%; }
    .immersive .app[data-view="story"] .panels { top: 145px; }
    .immersive .story h2 { font-size: 34px; }
    .immersive .story .panel-copy { font-size: 14px; }
    .panel-copy { font-size: 16px; }
    .world-hint { display: none; }
    .header-descriptor { font-size: 9px; margin-left: 0; }
    .immersive .vignette { background: linear-gradient(90deg, #edf1e9ff 0%, #edf1e9f5 27%, #edf1e9e8 42%, #edf1e900 61%), linear-gradient(0deg, #edf1e9eb 0%, #edf1e900 20%, #edf1e900 calc(100% - 130px), #edf1e9a3 calc(100% - 60px), #edf1e9eb 100%); }
  }
  @media (min-width: 701px) and (max-width: 900px) {
    .immersive .app[data-view="story"] { min-height: 940px; }
    .stop-copy strong { font-size: 17px; }
  }
  @media (max-width: 700px) {
    :root { --gutter: 22px; }
    .header { height: 76px; gap: 16px; }
    .wordmark { font-size: 29px; gap: 8px; }
    .wordmark > span { font-size: 9px; }
    .contact-trigger { font-size: 13px; gap: 12px; }
    .contact-trigger > span { font-size: 21px; }
    dialog .profile { padding: 22px; }
    dialog .profile-top { margin-bottom: 18px; }
    dialog .profile h2 { font-size: 30px; }
    dialog .profile h3 { margin-top: 20px; font-size: 17px; }
    dialog .profile-links { margin-top: 16px; }
    dialog .profile-links a { min-height: 44px; padding-block: 12px; }
    .immersive .app { min-height: 640px; }
    .immersive .panels { top: 137px; width: calc(100% - var(--gutter) * 2); padding: 0; }
    .eyebrow { font-size: 9px; letter-spacing: .08em; }
    .panel .eyebrow { margin-bottom: 16px; }
    h1, .panel h2 { font-size: clamp(36px, 9.2vw, 61px); }
    .panel-copy { font-size: 15px; line-height: 1.6; margin-top: 16px; max-width: 350px; }
    .primary-action { font-size: 13px; margin-top: 8px; padding-block: 9px; gap: 24px; }
    .immersive .app[data-view="story"] { height: 100svh; min-height: 640px; padding-bottom: 0; }
    .immersive .app[data-view="story"] .panels { position: absolute; left: 10px; right: 10px; width: auto; top: auto; bottom: 102px; max-height: 44svh; overflow: hidden auto; padding: 14px 16px 16px; border-radius: 12px; background: #edf1e9f0; backdrop-filter: blur(14px); box-shadow: 0 -8px 40px #24443b14; border: 1px solid #fff9; pointer-events: auto; scrollbar-width: none; overscroll-behavior: contain; }
    .immersive .app[data-view="story"] .panels::before { content: ''; display: block; width: 36px; height: 4px; border-radius: 2px; background: #23473f33; margin: 0 auto 12px; }
    .immersive .app[data-view="story"] .vignette { background: linear-gradient(180deg, #edf1e9f2 0%, #edf1e9b8 70px, #edf1e900 150px); }
    .immersive .story h2 { font-size: 30px; }
    .immersive .story .eyebrow { font-size: 8px; margin-bottom: 12px; }
    .immersive .story .panel-copy { font-size: 13px; margin-top: 12px; max-width: 360px; }
    .story-flow { gap: 12px; margin-top: 19px; }
    .story-flow li { gap: 12px; }
    .story-ending { margin-top: 17px; background: #edf1e9e8; padding: 12px; border-radius: 4px; }
    .immersive .story-ending { margin-top: 14px; padding: 0; background: transparent; }
    .story-bridge { margin-top: 12px; }
    .story-result { font-size: 14px; }
    .immersive .vignette { background: linear-gradient(180deg, #edf1e9ef 0%, #edf1e9f5 37%, #edf1e9cc 45%, #edf1e900 55%, #edf1e900 78%, #edf1e9ed 89%); }
    .world-controls { top: 86px; gap: 8px; flex-wrap: wrap; justify-content: flex-end; left: var(--gutter); }
    .time-chip .time-place, .time-chip .time-phase { display: none; }
    /* One row of compact controls on phones: icons only, no photo button (phones have screenshots). */
    .world-controls { flex-wrap: nowrap; gap: 6px; }
    .world-controls button .label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
    .world-controls button { position: relative; min-width: 34px; padding: 4px 9px; }
    #pause-world span[aria-hidden], #walk-toggle span[aria-hidden] { margin: 0; font-size: 13px; }
    #photo-button { display: none; }
    .time-panel { width: min(262px, calc(100vw - var(--gutter) * 2)); right: auto; left: 50%; transform: translateX(-50%); }
    .time-widget { position: static; }
    .world-controls { position: absolute; }
    .world-controls button { min-height: 34px; font-size: 10px; padding: 4px 8px; }
    #reset-view { width: 34px; font-size: 18px; }
    #pause-world span { margin-left: 6px; }
    .journey-top { margin-bottom: 10px; }
    .finds { position: fixed; left: 12px; bottom: 136px; z-index: 6; padding: 6px 10px; border-radius: 4px; background: #f4f5eeed; font-size: 10px; }
    /* On a phone the card and the counter share the bottom edge, so the counter steps aside while a card is open. */
    .find-card:not([hidden]) ~ .journey-wrap .finds { visibility: hidden; }
    .immersive .app[data-view="story"] ~ .finds, .immersive[data-panel]:not([data-panel="start"]) .finds { display: none; }
    .finds-dots { display: none; }
    .find-card { right: 10px; left: 10px; width: auto; bottom: 150px; }
    .walk-hint { bottom: 120px; white-space: normal; text-align: center; width: calc(100% - 40px); }
    .toast { top: auto; bottom: 140px; white-space: normal; text-align: center; width: calc(100% - 40px); }
    .walking .footer { visibility: hidden; }
    .journey { display: flex; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; }
    .journey::-webkit-scrollbar { display: none; }
    .journey > a { flex: 1 0 auto; min-width: 84px; scroll-snap-align: start; }
    .home-stop { flex-direction: column; gap: 4px; }
    .home-stop strong { font-size: 12px; }
    .home-stop > span { font-size: 15px; line-height: 1; }
    .stop { min-height: 62px; padding: 14px 5px; display: grid; align-items: center; justify-content: center; }
    .stop-copy strong { font-size: 12px; letter-spacing: -.04em; text-align: center; }
    .stop-copy > span { display: none; }
    .footer { min-height: 54px; font-size: 10px; gap: 10px; }
    .footer-linkedin { display: none; }
    .footer a > span { margin-left: 3px; }
    .location-dot { width: 4px; height: 4px; margin-right: 5px; }
    .immersive .journey-wrap { position: fixed; bottom: 12px; z-index: 6; }
    .immersive .journey-top { margin: 0; }
    .immersive .footer { bottom: 94px; }
    .immersive .app[data-view="story"] .footer { display: none; }
    .landmark { display: none; }
    .immersive .world-status { bottom: 195px; font-size: 10px; max-width: 235px; }
    .immersive .world-loader { left: 50%; top: 68%; width: min(230px, calc(100% - var(--gutter) * 2)); }
    .immersive .app[data-view="story"] .world-loader { top: 36%; }
    html:not(.immersive) .panels { padding: 55px var(--gutter); }
    .panel { margin-bottom: 65px; }
    .immersive .panel { margin: 0; }
  }
  @media (max-width: 700px) and (max-height: 790px) {
    .header { height: 65px; }
    .world-controls { top: 75px; }
    .immersive .panels { top: 121px; }
    .immersive .app[data-view="story"] .panels { max-height: 42svh; }
    h1, .panel h2 { font-size: 34px; }
    .panel-copy { font-size: 14px; line-height: 1.5; margin-top: 12px; }
    .panel .eyebrow { margin-bottom: 12px; }
  }
  @media (max-width: 360px) { :root { --gutter: 16px; } .eyebrow { font-size: 8px; } .stop-copy strong, .home-stop strong { font-size: 11px; } }
  @media (min-width: 500px) and (max-height: 600px) {
    dialog .profile { padding: 16px 24px; }
    dialog .profile-top { margin-bottom: 10px; }
    dialog .profile h2 { font-size: 22px; }
    dialog .profile h2 br { display: none; }
    dialog .profile h3 { margin-top: 12px; font-size: 17px; }
    dialog .profile-links { grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 12px; }
    dialog .profile-links a { min-height: 44px; padding-block: 10px; }
  }
  @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
}
