:root{--gutter:clamp(18px,4vw,64px)}
*{box-sizing:border-box}
html,body{margin:0;width:100%;height:100%;overflow:hidden}
body{background:var(--bg);color:var(--ink);font-family:Inter,Arial,sans-serif;-webkit-font-smoothing:antialiased}
button,a{-webkit-tap-highlight-color:transparent;touch-action:manipulation}
button{font:inherit;cursor:pointer}
a{color:inherit}
button:focus-visible,a:focus-visible{outline:2px solid var(--peach);outline-offset:4px}
[hidden]{display:none!important}
.welcome{position:relative;isolation:isolate;overflow:clip;height:100vh;height:100dvh;display:grid;grid-template-rows:auto minmax(0,1fr) auto auto;padding:env(safe-area-inset-top) 0 env(safe-area-inset-bottom)}
.header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:clamp(12px,2.4vh,25px) var(--gutter);z-index:2}
.brand{display:inline-flex;align-items:center;gap:13px;text-decoration:none;font-size:23px;font-weight:400;letter-spacing:-.055em;white-space:nowrap}
.controls{display:flex;align-items:center;gap:clamp(12px,2.2vw,28px)}
.controls button,.skip{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:8px 0;border:0;background:none;color:var(--muted);font-size:11px;text-decoration:none;white-space:nowrap}
.controls .skip{min-height:34px;padding:8px 13px;border:1px solid var(--peach);border-radius:3px;background:var(--peach);color:var(--bg);font-weight:500;transition:background .2s}
.controls button:hover{color:var(--peach)}
.controls .skip:hover{background:#f7d4bc;color:var(--bg)}
.stage{position:relative;display:grid;grid-template-columns:minmax(0,1fr);place-items:end center;min-width:0;min-height:0;padding:16px var(--gutter) 24px}
.loader{position:fixed;inset:0;display:grid;place-items:center;pointer-events:none}
.loader svg{grid-area:1/1;width:62px;height:62px;transform:rotate(-90deg)}
.loader-count{grid-area:1/1;color:var(--peach);font-size:18px;font-weight:400;font-variant-numeric:tabular-nums;line-height:1}
.loader circle{fill:none;stroke-width:1.5}
.track{stroke:var(--line)}
.progress{stroke:var(--peach);stroke-linecap:round;stroke-dasharray:100;stroke-dashoffset:100;animation:load 3s linear both}
@keyframes load{to{stroke-dashoffset:0}}
.story{height:auto;min-height:min(300px,100%);padding-top:0;width:100%;max-width:1360px;min-width:0;text-align:center;transition:opacity .5s ease,transform .8s cubic-bezier(.22,1,.36,1)}
.welcome.ending .story{position:fixed;z-index:1;top:50%;left:50%;width:min(1360px,calc(100% - 2 * var(--gutter)));height:auto;min-height:0;transform:translate(-50%,-50%);transition:none;animation:center-closing .8s cubic-bezier(.22,1,.36,1) both}
.welcome.ending .story-pill{margin-bottom:clamp(28px,4dvh,42px)}
.welcome.ending .finish{margin-top:clamp(40px,6dvh,64px)}
@keyframes center-closing{from{opacity:0;transform:translate(-50%,calc(-50% - 12px))}to{opacity:1;transform:translate(-50%,-50%)}}
.welcome.ending .location,.welcome.ending .journey{opacity:0;visibility:hidden;pointer-events:none;transition:opacity .65s ease,visibility 0s linear .65s}
.story.fade .typed,.story.fade .chapter-link{opacity:0;transform:translateY(-5px)}
.story-name-flight{position:fixed;z-index:5;left:0;top:0;display:block;box-sizing:border-box;max-width:none;margin:0;border:0;text-align:left;color:var(--peach);pointer-events:none;transform-origin:0 0;transition:none!important;animation:none!important;will-change:transform,opacity}
.typed,.chapter-link{transition:opacity .5s ease,transform .5s ease}
.story-pill{position:relative;font-variant-numeric:tabular-nums;white-space:pre;display:inline-flex;align-items:center;justify-content:center;margin:0 0 22px;padding:7px 12px;border:1px solid #edbd9e40;border-radius:999px;background:#edbd9e0c;color:var(--peach);font-size:calc(10px + 1pt);font-weight:400;line-height:1.2;letter-spacing:.015em}
.typed{position:relative;z-index:1;margin:0;font-size:clamp(23px,3.35vw,46px);font-weight:300;letter-spacing:-.045em;line-height:1.45;min-height:4.35em;transform-origin:center}
.type-line{display:block;min-height:1.45em;margin-inline:auto;white-space:pre}
.type-line:first-child{color:var(--ink)}
.type-line:nth-child(2){color:var(--ink)}
.type-line:nth-child(3){color:var(--peach);margin-top:.15em}
.story-inline-link{color:inherit;text-decoration:none}
.story-inline-link.ready{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:.14em}
.story-inline-link[aria-disabled="true"]{pointer-events:none}
.type-letter{position:relative;visibility:hidden}
.type-letter.revealed{visibility:visible}
.type-letter.cursor::after{content:"";position:absolute;left:calc(100% + 2px);top:.1em;width:1.5px;height:.88em;background:var(--peach);animation:blink 1.2s step-end infinite}
@keyframes blink{50%{opacity:0}}
.finish{margin-top:24px}
.chapter-link{margin-top:16px}
.chapter-link a{display:inline-flex;align-items:center;gap:9px;min-height:44px;padding:10px 0;color:var(--peach);font-size:12px;text-decoration:underline;text-underline-offset:5px;visibility:hidden}
.cta{display:inline-flex;min-width:min(100%,clamp(200px,20vw,280px));justify-content:space-between;align-items:center;gap:24px;min-height:56px;padding:16px 24px;border-radius:3px;border:1px solid var(--peach);background:var(--peach);color:var(--bg);text-decoration:none;font-size:16px;font-weight:500;line-height:1.25;transition:background .2s}
.cta-arrow{flex:none;width:18px;height:18px}
.cta:hover{background:#f7d4bc}
.location{position:relative;margin-bottom:clamp(20px,3dvh,30px);justify-self:center;width:clamp(135px,22dvh,210px);text-align:center;pointer-events:none;transition:opacity .5s}
.globe-frame{position:relative;margin-top:10px;aspect-ratio:1}
.location canvas{display:block;width:100%;height:auto;aspect-ratio:1}
.story-progress-ring{position:absolute;inset:-1px;width:calc(100% + 2px);height:calc(100% + 2px);overflow:visible;pointer-events:none}
#story-progress-arc{fill:none;stroke:var(--peach);stroke-width:1;stroke-opacity:.85;stroke-linecap:round;stroke-dasharray:100;stroke-dashoffset:100;vector-effect:non-scaling-stroke}
.location p{display:flex;align-items:center;justify-content:center;gap:7px;margin:0 0 5px;font-size:10px;color:var(--ink)}
.location-dot{width:4px;height:4px;border-radius:50%;background:var(--peach)}
.coordinates{display:block;font-family:ui-monospace,monospace;font-size:8px;letter-spacing:.04em;color:var(--muted)}
.journey{width:calc(100% - 2 * var(--gutter));max-width:1440px;min-width:0;margin:0 auto 22px;opacity:1;transition:opacity .4s ease}
.journey.concealed{visibility:hidden;opacity:0;pointer-events:none}
.journey-caption{display:flex;justify-content:space-between;align-items:center;margin-bottom:11px;font-size:9px;letter-spacing:.06em;color:var(--muted)}
.journey-title{font-size:calc(1em + 2pt);color:var(--peach)}
#collected{font-family:ui-monospace,monospace;font-variant-numeric:tabular-nums}
.tiles{display:grid;grid-auto-flow:column;grid-auto-columns:205px;grid-template-rows:104px;gap:8px;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;scroll-snap-type:x proximity;scroll-padding:3px;padding:3px 3px 10px;scrollbar-width:thin;scrollbar-color:#6e5c4d #1b1c19;touch-action:pan-x}
.tiles:focus-visible{outline:1px solid var(--peach);outline-offset:4px}
.tiles::-webkit-scrollbar{height:3px}
.tiles::-webkit-scrollbar-track{background:#1b1c19}
.tiles::-webkit-scrollbar-thumb{background:#6e5c4d;border-radius:2px}
.slot{scroll-snap-align:center;position:relative;min-width:0;border:1px solid #36392f;border-radius:3px;background:#191b17}
.slot.empty::before{content:attr(data-number);position:absolute;top:10px;left:12px;font-family:ui-monospace,monospace;font-size:8px;color:#747a6c}
.tile{position:absolute;inset:-1px;display:grid;grid-template-rows:auto 1fr auto;align-content:start;gap:4px;min-width:0;padding:10px 13px;border:1px solid #474a40;border-radius:3px;background:#23251f;color:var(--ink);text-decoration:none;animation:arrive .55s ease both;transition:border-color .2s,background .2s}
.tile:hover,.tile:focus-visible{border-color:var(--peach);background:#2b2d25}
.tile-title{display:block;padding-right:10px;font-size:12px;font-weight:400;line-height:1.25;letter-spacing:-.02em}
.tile-detail{align-self:start;display:block;font-size:10px;line-height:1.3;color:#b8b9ad}
.detail-line{display:block;white-space:nowrap}
.detail-compact{display:none}
.tile-arrow{position:absolute;right:10px;top:8px;color:var(--peach);font-size:10px}
.tile.staged .tile-title{opacity:0}
.tile.staged .tile-detail,.tile.staged .industry-chip,.tile.staged .tile-arrow,
.tile.revealing .tile-detail,.tile.revealing .industry-chip,.tile.revealing .tile-arrow{opacity:0}
.industry-chip{--chip-ink:#b8c6d8;--chip-bg:#252d37;justify-self:end;align-self:end;display:inline-flex;align-items:center;min-height:18px;padding:2px 6px;border:1px solid color-mix(in srgb,var(--chip-ink) 18%,transparent);border-radius:4px;background:var(--chip-bg);color:var(--chip-ink);font-size:8px;font-weight:500;line-height:1.25;white-space:nowrap;letter-spacing:.01em}
.industry-chip[data-industry="Trading"]{--chip-ink:#8dd9d2;--chip-bg:#183330}
.industry-chip[data-industry="F&B"]{--chip-ink:#f1abc3;--chip-bg:#35212c}
.industry-chip[data-industry="E-com"]{--chip-ink:#a2c7ff;--chip-bg:#1e2b40}
.industry-chip[data-industry="Agency"]{--chip-ink:#c4b1f0;--chip-bg:#2b2439}
.industry-chip[data-industry="Logistics"]{--chip-ink:#a5d9b8;--chip-bg:#20352c}
.industry-chip[data-industry="Consulting"]{--chip-ink:#bbc4ff;--chip-bg:#252b42}
.industry-chip[data-industry="Software"]{--chip-ink:#91dbe8;--chip-bg:#1b3039}
.industry-chip[data-industry="Services"]{--chip-ink:#e3c88b;--chip-bg:#352e20}
.industry-chip[data-industry="Finance"]{--chip-ink:#b1d9bd;--chip-bg:#223328}
.slot.current .tile{border-color:#a58470}
@keyframes arrive{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.detail-dialog{width:min(440px,calc(100% - 36px));max-height:calc(100dvh - 36px);padding:28px;border:1px solid var(--line);border-radius:6px;background:#1b1c19;color:var(--ink)}
.detail-dialog::backdrop{background:#080908dd;backdrop-filter:blur(5px)}
.dialog-top{display:flex;justify-content:space-between;gap:14px;align-items:center;color:var(--peach);font-size:10px}
.dialog-top button{display:grid;place-items:center;min-width:44px;min-height:44px;margin:-12px -12px -8px 0;border:0;background:none;color:var(--muted);font-size:22px}
.detail-dialog h2{font-size:25px;font-weight:300;letter-spacing:-.04em;margin:20px 0 16px}
.detail-dialog p{font-size:14px;line-height:1.7;color:var(--muted);margin:0}
.project-link{display:inline-block;margin-top:22px;padding:10px 0;color:var(--peach);font-size:12px;text-underline-offset:5px}
.no-script{position:fixed;inset:80px 20px auto;background:var(--bg);padding:24px;max-width:650px;margin:auto;font-size:20px;line-height:1.6;z-index:5}
.no-script a{color:var(--peach)}
@media(min-width:1100px){.typed{font-size:clamp(28px,2.8vw,43px)}}
@media(max-width:1100px){
  .story{min-height:0}
  .typed{display:grid;gap:.45em;font-size:clamp(16px,2.7vw,28px);line-height:1.45;min-height:0}
  .type-line{width:100%;white-space:normal;text-wrap:balance;min-height:1.45em;overflow-wrap:normal;word-break:normal}
  .type-line:nth-child(3){margin-top:0}
}
@media(max-width:600px){
  :root{--gutter:18px}
  .header{padding-top:10px;padding-bottom:10px;gap:10px}
  .brand{font-size:21px;gap:8px}
  .controls{gap:8px}.controls button,.skip{font-size:10px}
  .location{width:clamp(120px,20dvh,165px)}.location p{font-size:9px;gap:5px}.coordinates{font-size:7px}
  .stage{padding:18px var(--gutter) 26px}.story{min-height:0}
  .typed{font-size:clamp(16px,4.5vw,22px);letter-spacing:-.035em;line-height:1.45;min-height:0;gap:.5em}
  .type-line{min-height:1.45em}
  .story-pill{font-size:calc(10px + 1pt);margin-bottom:18px;padding:6px 10px}
  .journey{margin-bottom:16px}.journey-caption{font-size:8px;margin-bottom:9px}
  .tiles{grid-auto-columns:175px;grid-template-rows:108px;gap:7px}
  .tile{padding:10px 12px}.tile-title{font-size:12px}.tile-detail{font-size:10px}
  .finish{margin-top:18px}.cta{font-size:15px;min-height:52px;padding:14px 22px}
}
@media(max-height:650px){
  .header{padding-top:5px;padding-bottom:5px}.brand{font-size:19px}
  .location{width:105px;margin-bottom:14px}.location p{font-size:8px}.coordinates{font-size:7px}.globe-frame{margin-top:6px}
  .stage{padding-top:12px;padding-bottom:14px}.story{padding-top:0}
  .typed{font-size:clamp(16px,3vw,28px)}
  .tiles{grid-template-rows:108px;grid-auto-columns:190px}
  .journey{margin-bottom:12px}.journey-caption{margin-bottom:6px}
  .story-pill{margin-bottom:14px}
  .finish{margin-top:12px}
}
@media(max-width:359px){
  .controls{gap:6px}.tiles{grid-auto-columns:170px}
  .detail-dialog{padding:20px}.detail-dialog p{font-size:13px;line-height:1.6}
}
@media(max-height:650px) and (max-width:600px){
  .stage{padding-top:10px;padding-bottom:16px}
  .location{width:88px;margin-bottom:12px}
  .typed{font-size:16px;gap:.4em}
}
@media(max-height:450px) and (min-width:600px){
  .header{padding:0 var(--gutter)}.brand{font-size:18px}
  .location{width:64px;margin-bottom:8px}.location p{font-size:7px;margin:0 0 2px;white-space:nowrap}.coordinates{font-size:6px;white-space:nowrap}.globe-frame{margin-top:3px}
  .stage{padding:6px var(--gutter)}.story{padding-top:0}.typed{font-size:16px}
  .story-pill{margin-bottom:8px;padding:4px 9px;font-size:calc(9px + 1pt)}
  .chapter-link{margin-top:6px}.chapter-link a{min-height:32px;padding:6px 0;font-size:10px}
  .journey{margin-bottom:8px}.journey-caption{font-size:8px;margin-bottom:4px}
  .tiles{grid-template-rows:82px;grid-auto-columns:185px;padding-bottom:6px}
  .tile{padding:6px 10px;gap:3px}.tile-title{font-size:10px}.tile-detail{font-size:9px}.industry-chip{min-height:16px;font-size:7.5px;padding:1px 5px}
  .finish{margin-top:7px}.cta{min-height:44px;padding:12px 20px;font-size:14px}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}.progress{stroke-dashoffset:0}.type-letter.cursor::after{display:none}}
body.reading .type-letter.cursor::after{display:none}
