/* variables */
:root {
  /* anime */
  --ink: #14121f;
  --paper: #fffaf3;
  --sakura: #ff6f9c;

  /* experience */
  --t-bg: #12332e;
  --t-text: #efe7d2;
  --t-muted: #a8bfb2;
  --amber: #ffb627;

  /* space */
  --s-bg: #0a0d2b;
  --s-text: #e9eafc;
  --s-muted: #a6abd6;

  /* train */
  --enamel: #1b4c43;
  --enamel-shade: #123730;
  --enamel-roof: #0d2824;

  /* line */
  --line1: #f8c300;

  --f-display: "Dela Gothic One", "Archivo", sans-serif;
  --f-body: "Archivo", system-ui, sans-serif;

  /* type scale */
  --fs-s: .875rem;
  --fs-m: 1rem;
  --fs-l: 1.125rem;
  --fs-xl: 1.3125rem;
  --fs-2xl: 1.5rem;
  --fs-3xl: 2.25rem;

  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --ease-io: cubic-bezier(.7, 0, .2, 1);
}

/* base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: var(--fs-m);
  font-stretch: 92%;
  line-height: 1.5;
  background: var(--t-bg);
  color: var(--t-text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* on html, not body: on body it turns body into its own scroller and breaks the sticky starfield */
html.no-scroll { overflow: hidden; background: var(--s-bg); }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
.container { width: min(1200px, 100% - 40px); margin-inline: auto; }

.skip-link {
  position: fixed; left: 12px; top: -60px; z-index: 200;
  background: var(--paper); color: var(--ink); padding: 10px 16px;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

/* nav */
.nav {
  position: fixed; top: 12px; left: 50%; z-index: 60; translate: -50% 0;
  display: flex; align-items: center; gap: 8px;
  width: min(600px, 100% - 24px); padding: 4px 8px 4px 10px;
  background: var(--ink); color: var(--paper); border-radius: 6px;
  box-shadow: 0 0 0 1.5px rgba(255, 250, 243, .2);
}
.nav__logo {
  flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--line1); color: var(--ink); text-decoration: none;
  font-size: var(--fs-s); font-weight: 800; font-stretch: 85%;
}
.nav__map { position: relative; flex: 1; min-width: 0; }
.nav__line { position: absolute; left: 12.5%; right: 12.5%; top: 10px; height: 3px; background: rgba(255, 250, 243, .24); }
.nav__line span { display: block; height: 100%; background: var(--line1); transform: scaleX(0); transform-origin: left; }
.nav__links { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); list-style: none; margin: 0; padding: 0; }
.nav__links a {
  position: relative; display: block; padding: 21px 2px 5px; text-align: center;
  font-size: var(--fs-s); font-weight: 500; line-height: 1.3; text-decoration: none;
  color: rgba(255, 250, 243, .78); transition: color .2s;
}
.nav__links a::before {
  content: ""; position: absolute; left: 50%; top: 6px; translate: -50% 0;
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--ink); border: 2px solid rgba(255, 250, 243, .6);
}
.nav__links a:hover { color: #fff; }
.nav__links a.is-passed::before { background: var(--line1); border-color: var(--line1); }
.nav__links a.is-active { color: #fff; font-weight: 700; }
.nav__links a.is-active::before { top: 3px; width: 17px; height: 17px; background: var(--paper); border: 4px solid var(--line1); }

/* hero */
.stage { position: relative; height: 200vh; }
.hero {
  position: sticky; top: 0; height: 100vh; height: 100svh;
  overflow: hidden; isolation: isolate; color: var(--ink);
}
.hero__scene {
  position: absolute; inset: 0; z-index: 0;
  animation: impact .24s linear .38s;
}
.hero__scene > * { position: absolute; }
@keyframes impact {
  0%, 100% { transform: none; }
  25% { transform: scale(1.015) translate(-6px, 4px); }
  60% { transform: scale(1.015) translate(5px, -3px); }
}
.hero__sky {
  inset: 0;
  background: linear-gradient(180deg,
    #1f2a66 0%, #3d43a0 18%, #7d62c4 36%, #d685bd 54%, #ffa9b0 66%, #ffcfa4 78%, #ffe6c6 88%);
}
.hero__stars {
  inset: 0 0 55% 0; opacity: .7;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 18%, #fff, transparent),
    radial-gradient(1px 1px at 27% 8%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 44% 22%, #fff, transparent),
    radial-gradient(1px 1px at 61% 12%, #fff, transparent),
    radial-gradient(2px 2px at 78% 6%, #fff, transparent),
    radial-gradient(1px 1px at 88% 26%, #fff, transparent),
    radial-gradient(1px 1px at 6% 40%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 35% 38%, #fff, transparent);
  -webkit-mask-image: linear-gradient(#000, transparent); mask-image: linear-gradient(#000, transparent);
}
.hero__sun {
  --s: min(42vw, 560px); --r: 7%; --b: 15%; /* sun size/position */
  width: calc(var(--s) * 2.4); aspect-ratio: 1;
  right: calc(var(--r) - var(--s) * .7); bottom: calc(var(--b) - var(--s) * .7);
  background: radial-gradient(closest-side,
    #fffdf0 0%, #fff0c4 15%, #ffd09a 28%, #ffb9a0 41.5%,
    rgba(255, 214, 170, .5) 41.8%, rgba(255, 190, 170, .24) 62%, rgba(255, 170, 170, 0) 100%);
}
.hero__clouds { inset: 0; }
.cloud { position: absolute; left: var(--x); top: var(--y); width: var(--w); opacity: var(--o, .95); }
.hero__layer { left: -3%; width: 106%; bottom: 0; height: 46vh; }
.hero__layer--far path { fill: #9a7cc6; opacity: .75; }
.hero__layer--mid path { fill: #5d4a90; }
.hero__layer--near { height: 40vh; }
.hero__layer--near .fill { fill: #261c48; }
.hero__layer--near .wire { fill: none; stroke: #261c48; stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.hero__layer--near .win { fill: #ffd27a; opacity: .85; }
.hero__halftone {
  inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(20, 18, 31, .22) 1.2px, transparent 1.7px);
  background-size: 9px 9px;
  -webkit-mask-image: radial-gradient(circle at 0% 0%, #000 0%, transparent 42%), radial-gradient(circle at 100% 100%, #000 0%, transparent 30%);
  mask-image: radial-gradient(circle at 0% 0%, #000 0%, transparent 42%), radial-gradient(circle at 100% 100%, #000 0%, transparent 30%);
}
/* focus lines */
.hero__burst {
  --bx: 30%; --by: 42%;
  inset: 0; pointer-events: none; opacity: 0;
  background:
    repeating-conic-gradient(from 3deg at var(--bx) var(--by), var(--ink) 0deg .35deg, transparent .35deg 3.7deg),
    repeating-conic-gradient(from 0deg at var(--bx) var(--by), var(--ink) 0deg .7deg, transparent .7deg 7.3deg);
  -webkit-mask-image: radial-gradient(ellipse 40% 62% at var(--bx) var(--by), transparent 48%, #000 88%);
  mask-image: radial-gradient(ellipse 40% 62% at var(--bx) var(--by), transparent 48%, #000 88%);
  animation: burst .85s var(--ease-out) .14s both;
}
@keyframes burst {
  0% { opacity: 0; transform: scale(1.5); }
  20% { opacity: .9; transform: none; }
  100% { opacity: 0; transform: none; }
}
.hero__petals { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 4; pointer-events: none; }

.hero__inner {
  position: relative; z-index: 5; height: 100%; padding-top: 68px;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  will-change: transform;
}
.hero__title {
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(3.4rem, min(12vw, 21vh), 12rem); line-height: .94; letter-spacing: -.01em;
  color: var(--paper);
  -webkit-text-stroke: .05em var(--ink); paint-order: stroke fill;
  text-shadow: .05em .05em 0 var(--sakura);
}
.hero__title .line {
  display: block; white-space: nowrap;
  animation: slam .3s var(--ease-out) both; animation-delay: calc(.14s + var(--i) * .12s);
}
@keyframes slam {
  0% { opacity: 0; transform: scale(1.6); }
  70% { opacity: 1; transform: scale(.985); }
  100% { opacity: 1; transform: none; }
}
.sfx {
  display: inline-block; margin-left: .14em; vertical-align: .62em;
  font-size: .44em; color: var(--sakura); rotate: -9deg;
  -webkit-text-stroke: .07em var(--ink); text-shadow: .06em .06em 0 var(--ink);
  animation: stamp .22s var(--ease-out) .5s both;
}
@keyframes stamp { from { opacity: 0; transform: scale(2); } to { opacity: 1; transform: none; } }

.hero__role, .bubble, .hero__cta { animation: settle .4s var(--ease-out) .6s both; }
@keyframes settle { from { opacity: 0; } to { opacity: 1; } }

.hero__role {
  margin-top: .75em; padding: .2em .55em .24em;
  background: var(--ink); color: var(--paper);
  font-size: clamp(var(--fs-xl), min(2.6vw, 4vh), var(--fs-3xl)); font-weight: 800; font-stretch: 75%; line-height: 1.1;
}
.bubble {
  position: relative; margin-top: 26px; max-width: 34em;
  background: var(--paper); border: 2.5px solid var(--ink); border-radius: 22px;
  padding: 14px 20px 15px; box-shadow: 5px 5px 0 var(--ink);
  font-size: var(--fs-l); line-height: 1.45;
}
.bubble b { font-family: var(--f-display); font-weight: 400; margin-right: .15em; }
.bubble::after {
  content: ""; position: absolute; top: -11px; left: 38px; width: 18px; height: 18px;
  background: var(--paper); border-left: 2.5px solid var(--ink); border-top: 2.5px solid var(--ink);
  transform: rotate(45deg);
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.btn-manga {
  display: inline-block; padding: 12px 22px;
  border: 2.5px solid var(--ink);
  background: var(--sakura); color: var(--ink); font-size: var(--fs-l); font-weight: 700; text-decoration: none;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform .18s var(--ease-out), box-shadow .18s var(--ease-out);
}
.btn-manga:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn-manga:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.btn-manga--ghost { background: var(--paper); }

/* wipe */
.warp { position: absolute; inset: 0; z-index: 20; pointer-events: none; --x: 140; }
.warp__edge, .warp__edge--b, .warp__fill {
  position: absolute; inset: 0;
  clip-path: polygon(calc(var(--a) * 1%) 0, 100% 0, 100% 100%, calc((var(--a) - 30) * 1%) 100%);
}
.warp__edge--b { --a: calc(var(--x) - 3.2); background: var(--t-text); }
.warp__edge    { --a: calc(var(--x) - 1.6); background: var(--amber); }
.warp__fill { --a: var(--x); background: var(--t-bg); display: grid; place-items: center; padding-inline: 20px; }
.warp__text {
  font-size: clamp(2.5rem, 8vw, 6.5rem); font-weight: 800; font-stretch: 62%; line-height: 1;
  color: var(--t-text); text-align: center; min-height: 1em;
}

/* section headings */
.sec-head h2 { margin-bottom: 14px; }
.sec-head__sub { font-size: var(--fs-l); max-width: 60ch; }

/* experience */
.exp { position: relative; background: var(--t-bg); padding: 120px 0 150px; overflow: hidden; }
/* tile grid, tilts away in the jump */
.exp__bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(239, 231, 210, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(239, 231, 210, .07) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: linear-gradient(#000 75%, transparent);
  mask-image: linear-gradient(#000 75%, transparent);
}
.exp .container { position: relative; z-index: 1; }
.exp__title {
  font-size: clamp(3.5rem, 10.5vw, 8.5rem); font-weight: 800; font-stretch: 62%; line-height: .95;
  color: var(--t-text);
}
.exp .sec-head__sub { color: var(--t-muted); }

.exp__layout { display: grid; grid-template-columns: minmax(230px, 280px) 1fr; gap: 72px; margin-top: 56px; align-items: start; }

/* track between jobs */
.exp__list { display: flex; flex-direction: column; }
.exp__item {
  position: relative; display: grid; align-content: start; gap: 1px; width: 100%; text-align: left;
  padding: 0 0 34px 36px; border: 0; background: none; color: var(--t-muted);
  transition: color .2s;
}
.exp__item::before {
  content: ""; position: absolute; left: 0; top: 3px; z-index: 1;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--t-bg); border: 3px solid var(--t-text);
  transition: background .2s, border-color .2s, box-shadow .2s;
}
.exp__item::after { content: ""; position: absolute; left: 7.5px; top: 12px; bottom: -4px; width: 3px; background: var(--t-text); }
.exp__item:last-child { padding-bottom: 0; }
.exp__item:last-child::after { display: none; }
.exp__item:hover { color: var(--t-text); }
.exp__item.is-active { color: var(--t-text); }
.exp__item.is-active::before { background: var(--amber); border-color: var(--amber); box-shadow: 0 0 0 5px rgba(255, 182, 39, .28); }
.exp__date { font-size: var(--fs-s); font-variant-numeric: tabular-nums; }
.exp__company { font-size: var(--fs-2xl); font-weight: 700; font-stretch: 85%; line-height: 1.2; }
.exp__role-sm { font-size: var(--fs-m); line-height: 1.3; }

.exp__panel { min-height: 600px; }
.exp__panel-inner.is-switching { animation: jobIn .28s var(--ease-out); }
@keyframes jobIn { from { opacity: 0; transform: translateY(6px); } }
.exp__role { font-size: clamp(var(--fs-2xl), 3.4vw, var(--fs-3xl)); font-weight: 700; font-stretch: 85%; line-height: 1.1; color: #fff; }
.exp__meta { display: flex; flex-wrap: wrap; gap: 2px 20px; margin-top: 8px; color: var(--amber); }
.exp__summary { margin-top: 18px; font-size: var(--fs-l); max-width: 62ch; }
.exp__label { margin: 30px 0 8px; font-size: var(--fs-m); font-weight: 700; color: var(--t-muted); }
.exp__tasks { list-style: none; margin: 0; padding: 0; max-width: 66ch; }
.exp__tasks li { position: relative; padding: 5px 0 5px 20px; }
.exp__tasks li::before { content: ""; position: absolute; left: 0; top: .85em; width: 7px; height: 3px; background: var(--amber); }

.tags { display: block; list-style: none; margin: 0; padding: 0; }
.tags li { display: inline; }
.tags li:not(:last-child)::after { content: ", "; }

/* jump (experience to projects) */
/* clip, not hidden: hidden breaks sticky */
.jump { position: relative; background: var(--t-bg); overflow: clip; }
.jump__track { height: 280vh; }
.jump__sticky {
  position: sticky; top: 0; z-index: 1; height: 100vh; height: 100svh; overflow: hidden;
  margin-bottom: -100vh; margin-bottom: -100svh;
  perspective: 700px; perspective-origin: 50% 35%;
}
.jump__space { position: absolute; inset: 0; opacity: 0; background: var(--s-bg); }
.jump__floor { position: absolute; inset: 0; transform-style: preserve-3d; }
.jump__grid {
  --ga: .07;
  position: absolute; left: -1920px; right: -1920px; top: -1440px; bottom: 0;
  background-image:
    linear-gradient(rgba(239, 231, 210, var(--ga)) 1px, transparent 1px),
    linear-gradient(90deg, rgba(239, 231, 210, var(--ga)) 1px, transparent 1px);
  background-size: 48px 48px; background-position: 0 100%;
  transform-origin: 50% 100%; will-change: transform, opacity;
  -webkit-mask-image: linear-gradient(to top, #000 35%, transparent 85%);
  mask-image: linear-gradient(to top, #000 35%, transparent 85%);
}
.jump__canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; }
.jump__flash { position: absolute; inset: 0; background: #ece8ff; opacity: 0; pointer-events: none; }
.jump__hud {
  position: absolute; left: 50%; bottom: 11%; translate: -50% 0;
  display: grid; justify-items: center; gap: 6px; text-align: center; white-space: nowrap;
  color: var(--t-text); transition: color .6s;
}
.jump__line { font-size: clamp(var(--fs-2xl), 3.4vw, var(--fs-3xl)); font-weight: 800; font-stretch: 62%; line-height: 1.1; min-height: 1.1em; }
.jump__speed { font-size: var(--fs-s); font-variant-numeric: tabular-nums; }
.jump__speed span { font-weight: 700; }
.jump__bar { width: 180px; height: 3px; background: rgba(255, 255, 255, .18); }
.jump__bar i { display: block; height: 100%; background: currentColor; transform-origin: left; transform: scaleX(0); }
.jump__hud.is-space { color: var(--s-text); }
.jump__fade {
  position: absolute; left: 0; right: 0; top: 0; height: 35vh; z-index: 2; pointer-events: none;
  background: linear-gradient(var(--t-bg), transparent);
}

/* projects */
.proj {
  --car-w: 504px;     /* one carriage */
  --car-gap: 12px;    /* the gangway between carriages */
  --car-side: 20px;   /* body either side of the window and door */
  --car-top: 32px;    /* body above the window */
  --car-bottom: 42px; /* body below it */
  --door: 48px;
  --door-gap: 16px;
  --win-w: calc(var(--car-w) - 2 * var(--car-side) - var(--door) - var(--door-gap));
  --vents: 7px;
  --train-h: calc(var(--vents) + var(--car-top) + var(--win-w) * .625 + var(--car-bottom) + 31px);
  position: relative; z-index: 2; padding: 120px 0 130px; overflow: clip; color: var(--s-text);
  background: transparent;
}
.proj::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 220px; pointer-events: none;
  background: linear-gradient(transparent, var(--s-bg));
}
.proj .container, .proj__window { position: relative; z-index: 1; }
.proj__title {
  font-size: clamp(2.25rem, 5.6vw, 4.75rem); font-weight: 300; font-stretch: 125%; line-height: 1.05; letter-spacing: -.015em;
  color: #fff;
}
.proj .sec-head__sub { color: var(--s-muted); }
.proj__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; }
.proj__head > div:first-child { flex: 1 1 560px; }
.proj__controls { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.proj__filters { display: none; gap: 6px; }
.proj.is-expanded .proj__filters { display: flex; }
.chip {
  padding: 8px 14px; border-radius: 999px; font-size: var(--fs-s); font-weight: 500;
  background: none; border: 1px solid rgba(233, 234, 252, .35); color: var(--s-muted);
  transition: background .2s, color .2s;
}
.chip:hover { color: #fff; }
.chip.is-active { background: var(--s-text); border-color: var(--s-text); color: var(--s-bg); }
.btn-space {
  padding: 10px 18px; font-weight: 600;
  background: none; border: 1.5px solid var(--s-text); color: var(--s-text);
  transition: background .2s, color .2s;
}
.btn-space:hover { background: var(--s-text); color: var(--s-bg); }

.proj__window { margin-top: 40px; height: var(--strip-h, 460px); overflow: clip; transition: height .6s var(--ease-io); }
.proj__carousel {
  --gutter: max(20px, calc(50% - 600px)); /* % not vw, vw includes the scrollbar */
  position: absolute; inset: 0;
  touch-action: pan-y; cursor: grab;
  transition: opacity .3s, visibility .3s;
}
.proj__strip {
  --edge: min(var(--gutter), 8vw);
  --text-fade: linear-gradient(90deg, transparent, #000 var(--edge), #000 calc(100% - var(--edge)), transparent);
  position: absolute; inset: 0; display: flex; align-items: flex-start;
  -webkit-mask: linear-gradient(#000 0 0) top / 100% var(--train-h) no-repeat, var(--text-fade) bottom / 100% calc(100% - var(--train-h)) no-repeat;
  mask: linear-gradient(#000 0 0) top / 100% var(--train-h) no-repeat, var(--text-fade) bottom / 100% calc(100% - var(--train-h)) no-repeat;
}
.proj__carousel.is-dragging { cursor: grabbing; }
.proj.is-expanded .proj__carousel { opacity: 0; visibility: hidden; }
.proj__track { flex: none; display: flex; gap: var(--car-gap); padding-left: var(--gutter); will-change: transform; }
.proj__arrow {
  position: absolute; top: calc(var(--vents) + var(--car-top) + var(--win-w) * .3125); translate: 0 -50%; z-index: 3;
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ink); border: 1.5px solid rgba(233, 234, 252, .5); color: #fff;
  transition: background .2s, color .2s;
}
.proj__arrow:hover { background: var(--s-text); color: var(--s-bg); }
.proj__arrow--prev { left: 18px; }
.proj__arrow--next { right: 18px; }

.proj__grid {
  position: absolute; top: 0; left: 0; right: 0; margin-inline: auto; width: min(1200px, 100% - 40px);
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); gap: 48px var(--car-gap); align-content: start;
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
.proj.is-expanded .proj__grid { opacity: 1; visibility: visible; transition-delay: .2s; }
.proj__grid .pcard { flex: none; width: auto; }
.proj__empty { grid-column: 1 / -1; color: var(--s-muted); padding: 40px 0; }

/* carriage */
.pcard {
  position: relative; flex: 0 0 var(--car-w); width: var(--car-w);
  display: flex; flex-direction: column;
  user-select: none; -webkit-user-select: none; cursor: pointer;
}
.proj__carousel.is-dragging .pcard { cursor: grabbing; }
.pcard__visual { position: relative; padding: var(--vents) 0 31px; }
/* track */
.pcard__visual::after {
  content: ""; position: absolute; left: calc(var(--car-gap) / -2); right: calc(var(--car-gap) / -2); bottom: 0; height: 3px;
  background: var(--line1);
}
.car {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) var(--door); gap: var(--door-gap);
  padding: var(--car-top) var(--car-side) var(--car-bottom);
  border-radius: 22px 22px 6px 6px;
  background:
    linear-gradient(var(--enamel-roof) 0 13px, transparent 13px),
    linear-gradient(to top, transparent 0 24px, var(--t-text) 24px 29px, transparent 29px),
    linear-gradient(to top, var(--enamel-shade) 0 24px, transparent 24px),
    var(--enamel);
}
/* gangway */
.car::after {
  content: ""; position: absolute; left: 100%; top: 26px; bottom: 14px; width: var(--car-gap);
  background: var(--enamel-roof);
}
/* roof vents */
.car::before {
  content: ""; position: absolute; left: 16%; top: calc(var(--vents) * -1); width: 44px; height: var(--vents);
  border-radius: 4px 4px 0 0; background: var(--enamel-roof);
  box-shadow: calc(var(--car-w) * .3) 0 0 var(--enamel-roof), calc(var(--car-w) * .46) 0 0 var(--enamel-roof);
}
/* door */
.car__door {
  position: relative; margin: calc(13px - var(--car-top)) 0 calc(var(--car-bottom) * -1);
  background: var(--enamel-shade);
  border-inline: 2px solid var(--enamel-roof);
}
.car__door::before { content: ""; position: absolute; left: 50%; top: 34px; width: 22px; height: 46px; translate: -50% 0; border-radius: 11px; background: #ffd27a; }
.bogie { position: absolute; top: 100%; display: flex; gap: 10px; }
.bogie:nth-of-type(1) { left: 9%; }
.bogie:nth-of-type(2) { right: 9%; }
.bogie::before { content: ""; position: absolute; left: 13px; right: 13px; top: 7px; height: 8px; border-radius: 2px; background: #2d3858; }
/* wheels, --roll is set in JS */
.wheel {
  position: relative; width: 28px; height: 28px; border-radius: 50%;
  background:
    radial-gradient(circle at 50% 24%, #8b97b8 0 1.5px, transparent 2px),
    radial-gradient(circle, #4c5a7e 0 3px, #0a0e24 3.5px 11px, #4c5a7e 11.5px);
  rotate: calc(var(--roll, 0) * 1deg);
}

/* sized in cqw so the card and modal versions scale onto each other exactly */
.window { position: relative; aspect-ratio: 16 / 10; container-type: inline-size; }
.window::before { content: ""; position: absolute; inset: 0; border-radius: 3.6cqw; background: var(--s-bg); }
.window__pane {
  position: absolute; inset: 0; overflow: hidden; display: grid; place-items: center;
  border: 1.3cqw solid var(--t-text); border-radius: 3.6cqw;
  background: var(--s-bg);
  transition: border-color .2s;
}
.window.is-away .window__pane { visibility: hidden; }
.window__pane img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.window__name { padding-inline: 8cqw; font-size: 6.4cqw; font-weight: 300; font-stretch: 125%; line-height: 1.1; text-align: center; color: var(--s-text); }
/* glass streaks */
.window__glass {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(112deg, transparent 0 70%, rgba(255, 255, 255, .08) 70% 76%, transparent 76% 78%, rgba(255, 255, 255, .05) 78% 80%, transparent 80%);
  transition: transform .6s var(--ease-out);
}
.pcard:has(:focus-visible) .window__pane { border-color: var(--amber); }
@media (hover: hover) {
  .pcard:hover .window__pane { border-color: var(--amber); }
  .pcard:hover .window__glass { transform: translateX(-22%); }
  .pcard:hover .pcard__open { text-decoration: underline; }
}

.pcard__body { display: grid; gap: 6px; padding: 18px 28px 0 0; }
.pcard__title { font-size: var(--fs-2xl); font-weight: 700; line-height: 1.15; }
.pcard__open { padding: 0; border: 0; background: none; color: #fff; font-weight: inherit; text-align: left; text-underline-offset: .18em; }
.pcard__meta { font-size: var(--fs-s); color: var(--s-muted); }
.pcard__desc { color: var(--s-text); max-width: 42ch; }
.pcard .tags { margin-top: 4px; font-size: var(--fs-s); color: var(--s-muted); }

/* project modal */
.modal { position: fixed; inset: 0; z-index: 100; visibility: hidden; }
.modal.is-open { visibility: visible; }
/* opaque, has its own stars */
.modal__backdrop {
  position: absolute; inset: 0; opacity: 0; transition: opacity .3s;
  background-color: var(--s-bg);
  background-image:
    radial-gradient(1px 1px at 46px 72px, #fff, transparent),
    radial-gradient(1.5px 1.5px at 188px 410px, #fff, transparent),
    radial-gradient(1px 1px at 262px 150px, #cfd3ff, transparent),
    radial-gradient(1px 1px at 351px 318px, #fff, transparent),
    radial-gradient(1.5px 1.5px at 437px 44px, #fff, transparent),
    radial-gradient(1px 1px at 502px 236px, #cfd3ff, transparent),
    radial-gradient(1px 1px at 590px 462px, #fff, transparent),
    radial-gradient(1px 1px at 118px 268px, #fff, transparent);
  background-size: 640px 520px;
}
.modal.is-ready .modal__backdrop { opacity: 1; }
.modal__scroll {
  position: absolute; inset: 0; overflow: hidden auto; overscroll-behavior: contain; color: var(--s-text); outline: 0;
  scrollbar-width: thin; scrollbar-color: rgba(233, 234, 252, .4) transparent;
}
.modal__content { width: min(1200px, 100% - 40px); margin-inline: auto; padding: clamp(56px, 9vh, 96px) 0 56px; }
/* everything but the window: out early, in late */
.m__fade { opacity: 0; transition: opacity .12s; }
.modal.is-ready .m__fade { opacity: 1; transition: opacity .35s .22s; }
.m__close {
  position: fixed; top: 14px; right: 22px; z-index: 5;
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ink); border: 1.5px solid rgba(233, 234, 252, .5); color: #fff;
  transition: background .2s, color .2s, opacity .12s;
}
.m__close:hover { background: var(--s-text); color: var(--s-bg); }
.modal.is-ready .m__close { transition: background .2s, color .2s, opacity .35s .22s; }
.m__top, .m__facts { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; }
.m__top { align-items: start; }
.m__top .window { transform-origin: 0 0; }
.m__story h3 { font-size: clamp(var(--fs-3xl), 4.4vw, 3.5rem); font-weight: 300; font-stretch: 125%; letter-spacing: -.015em; color: #fff; line-height: 1.05; }
.m__meta { margin: 10px 0 20px; color: var(--s-muted); }
.m__story p:not(.m__meta) { font-size: var(--fs-l); margin-bottom: 14px; }
.m__facts { position: relative; margin-top: 40px; padding-top: 28px; }
.m__facts::before { content: ""; position: absolute; left: 50%; top: 0; width: 100vw; height: 3px; translate: -50% 0; background: var(--line1); }
.m__facts h4, .m__facts dt { font-size: var(--fs-s); font-weight: 400; color: var(--s-muted); }
.m__facts h4 { margin-bottom: 8px; }
.m__highlights { margin: 0; padding-left: 1.1em; display: grid; gap: 6px; }
.m__highlights li::marker { color: var(--line1); }
.m__facts dl { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; }
.m__facts dd { margin: 0; font-weight: 600; color: #fff; }
.m__stack { grid-column: 1 / -1; }
.m__links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.m__link {
  flex: 1 1 auto; display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 11px 16px; text-decoration: none; font-weight: 600;
  border: 1.5px solid var(--s-text); transition: background .2s, color .2s;
}
.m__link:hover { background: var(--s-text); color: var(--s-bg); }
.m__link--primary { background: var(--line1); border-color: var(--line1); color: var(--ink); }
.m__link--primary:hover { background: #fff; border-color: #fff; color: var(--ink); }

/* descent */
.descent { position: relative; overflow-x: clip; }

/* altitude readout */
.alt-wrap { position: sticky; top: 50vh; height: 0; z-index: 6; }
.alt {
  position: absolute; left: 16px; translate: 0 -50%; width: 150px;
  display: grid; gap: 2px; padding: 9px 12px 12px; border-radius: 6px;
  background: var(--ink); color: var(--paper); box-shadow: 0 0 0 1.5px rgba(255, 250, 243, .2);
}
.alt__label { font-size: var(--fs-s); color: rgba(255, 250, 243, .78); }
.alt__value { font-size: var(--fs-2xl); font-weight: 700; font-stretch: 85%; line-height: 1.2; font-variant-numeric: tabular-nums; }
.alt__gauge { height: 3px; margin-top: 4px; background: rgba(255, 250, 243, .24); }
.alt__gauge i { display: block; height: 100%; background: var(--line1); transform-origin: left; transform: scaleX(0); }

/* sky */
.sky {
  position: relative; height: 320vh;
  background: linear-gradient(180deg,
    #0a0d2b 0%, #0b1138 12%, #0f1e55 27%, #173a82 41%, #2f6cc0 53%,
    #5f9be0 65%, #94c4f2 78%, #c2def8 91%, #d7eaf9 100%);
}
.sky__stars {
  position: absolute; left: 0; right: 0; top: 0; height: 120vh;
  background-image:
    radial-gradient(1px 1px at 20px 30px, #fff, transparent),
    radial-gradient(1px 1px at 140px 90px, #fff, transparent),
    radial-gradient(1.5px 1.5px at 260px 40px, #fff, transparent),
    radial-gradient(1px 1px at 80px 200px, #fff, transparent),
    radial-gradient(1px 1px at 210px 250px, #fff, transparent),
    radial-gradient(1.5px 1.5px at 300px 170px, #fff, transparent);
  background-size: 320px 300px;
  -webkit-mask-image: linear-gradient(#000 25%, transparent);
  mask-image: linear-gradient(#000 25%, transparent);
}
.sky__clouds { position: absolute; inset: 0; }
.dcloud { position: absolute; left: var(--x); top: var(--y); width: var(--w); opacity: var(--o); will-change: transform; }
.dcloud svg { display: block; width: 100%; height: auto; }
.dcloud.is-near { filter: blur(2.5px); z-index: 2; }

/* city */
.city {
  --car: 300px;
  position: relative; height: max(80vh, 480px); overflow: hidden;
  background: linear-gradient(180deg, #d7eaf9 0%, #e4f0f9 60%, #eef2f1 100%);
}
.city__layer { position: absolute; left: -2%; width: 104%; bottom: 0; height: 100%; will-change: transform; }
.city .back.glass { fill: #b4c7d9; }
.city .back.dark { fill: #a9bacb; }
.city .back.stone { fill: #c4c9cd; }
.city .front.glass { fill: #6f8dab; }
.city .front.dark { fill: #36414e; }
.city .front.stone { fill: #aaa49b; }
.city .tex-mull { fill: url(#mull); }
.city .tex-rows { fill: url(#rows); }
.city .lit { fill: rgba(255, 255, 255, .2); }
.city .cn { fill: url(#cnShade); }
.city .band { fill: #3c4652; }
.city .ant { fill: #8d887f; }
.city .dome { fill: #ecece7; }
.city .seg { fill: none; stroke: #c7c7c0; stroke-width: 1.4; }
.city .aviation { fill: #e3342b; }
.city__wire { position: absolute; left: 0; right: 0; bottom: calc(var(--car) * .225); height: 1.5px; background: #2b2d31; z-index: 2; }
.streetcar { position: absolute; left: 0; bottom: 0; width: var(--car); height: auto; z-index: 3; will-change: transform; }
.entrance { position: absolute; left: 8%; bottom: 0; width: 120px; height: 150px; z-index: 2; }
.entrance__kiosk {
  position: absolute; left: 0; bottom: 0; width: 120px; height: 62px;
  background: rgba(160, 195, 220, .55); border: 4px solid #2b2e33; border-bottom: 0;
}
.entrance__kiosk::before { content: ""; position: absolute; left: -10px; right: -10px; top: -10px; height: 8px; background: #2b2e33; }
.entrance__post { position: absolute; left: 96px; bottom: 72px; width: 5px; height: 72px; background: #2b2e33; }
.entrance__sign {
  position: absolute; right: 26px; padding: 4px 9px;
  font-weight: 700; font-size: 12px; letter-spacing: .06em; color: #fff;
}
.entrance__sign--subway { bottom: 122px; background: #da291c; }
.entrance__sign--path { bottom: 97px; background: #1d4f91; }

.road {
  position: relative; height: 54px;
  background-color: #3a3b3f;
  background-image: linear-gradient(90deg, #e6dcbc 0 44px, transparent 44px 92px);
  background-size: 92px 3px; background-repeat: repeat-x; background-position: 0 55%;
  border-top: 7px solid #a19d95;
}

/* underground */
.under {
  position: relative; height: 120vh;
  background-color: #5d4a3b;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.45'/%3E%3C/svg%3E"),
    linear-gradient(180deg,
      #47484c 0 14px, #857b6d 14px 66px, #614d3d 66px 30%,
      #70573f 30% 52%, #5e5953 52% 76%, #4d4945 76% 100%);
  background-size: 240px 240px, auto;
}
.under::before {
  content: ""; position: absolute; left: 0; right: 0; top: 14px; height: 52px;
  background-image: radial-gradient(circle, rgba(40, 35, 30, .45) 0 2px, transparent 2.5px), radial-gradient(circle, rgba(255, 255, 255, .18) 0 1.5px, transparent 2px);
  background-size: 11px 9px, 17px 13px; background-position: 0 0, 5px 4px;
}
.pipe { position: absolute; border-radius: 50%; border: 4px solid; background: #2a231e; }
.pipe--water { top: 96px; left: 36%; width: 36px; height: 36px; border-color: #6b8aa3; }
.pipe--gas { top: 104px; left: 44%; width: 20px; height: 20px; border-color: #d4ad37; }
.pipe--sewer { top: 150px; left: 62%; width: 60px; height: 60px; border-color: #857058; border-width: 6px; }
.pipe--fibre { top: 100px; left: 80%; width: 16px; height: 16px; border-color: #e07b2a; }

/* escalators */
.escalator {
  --band: 130px;
  position: absolute; z-index: 2;
  background-color: #d3cdc1;
  background-image: repeating-linear-gradient(180deg, #b3ac9f 0 3px, transparent 3px 10px);
  clip-path: polygon(0 0, var(--band) 0, 100% 100%, calc(100% - var(--band)) 100%);
}
.escalator::after {
  content: ""; position: absolute; inset: 0; background: #3b3d42;
  clip-path: polygon(0 0, 6px 0, calc(100% - var(--band) + 6px) 100%, calc(100% - var(--band)) 100%);
}
.escalator--1 { top: 0; height: 40%; left: 8%; width: 30%; }
.escalator--2 { top: calc(40% + 160px); bottom: 0; left: 52%; width: 34%; }
.corridor {
  position: absolute; left: 0; right: 0; top: 40%; height: 160px; z-index: 1;
  background: #efe8da; border-top: 14px solid #bdb5a7; border-bottom: 16px solid #a9a194;
}
.corridor::before {
  content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 5px;
  background: repeating-linear-gradient(90deg, #fff4cc 0 70px, transparent 70px 170px);
}
.corridor__sign {
  position: absolute; top: 26px; left: 50%; translate: -50% 0; display: flex; white-space: nowrap;
  background: #1d2a44; color: #fff; font-size: 13px; font-weight: 600;
}
.corridor__sign span, .corridor__sign b { padding: 8px 14px; }
.corridor__sign b { background: var(--line1); color: #151515; font-weight: 800; }
.corridor__note { position: absolute; right: 20px; top: 34px; font-size: var(--fs-s); font-weight: 500; color: #625b4f; }
.walkers i {
  --d: 18s;
  position: absolute; bottom: 0; left: -5%; width: 11px; height: 34px;
  background: #3b3732; border-radius: 5px 5px 2px 2px;
  animation: walk var(--d) linear infinite;
}
.walkers i::before { content: ""; position: absolute; left: 1px; top: -11px; width: 9px; height: 9px; border-radius: 50%; background: inherit; }
.walkers i:nth-child(1) { --d: 16s; animation-delay: -3s; }
.walkers i:nth-child(2) { --d: 22s; animation-delay: -12s; animation-direction: reverse; background: #5a4a3c; }
.walkers i:nth-child(3) { --d: 19s; animation-delay: -8s; height: 30px; }
.walkers i:nth-child(4) { --d: 25s; animation-delay: -20s; animation-direction: reverse; }
.walkers i:nth-child(5) { --d: 17s; animation-delay: -14s; background: #2f3a4a; }
@keyframes walk { to { left: 105%; } }

/* contact */
.contact {
  --concrete: #b3afa6;
  --char: #151515;
  --steel: #1d1e21;
  --ttc-red: #da291c;
  --line2: #00923f;
  --tile: #e8e3d5;
  position: relative; color: var(--char);
  scroll-margin-top: 76px; /* nav height */
}

/* station */
.station {
  position: relative;
  background-color: var(--concrete);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.45'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1600' height='1600'%3E%3Cfilter id='m'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.005' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .6 -.1'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23m)' opacity='.35'/%3E%3C/svg%3E"),
    repeating-linear-gradient(180deg, transparent 0 139px, rgba(0, 0, 0, .1) 139px 140px, rgba(255, 255, 255, .14) 140px 141px);
  background-size: 240px 240px, 1600px 1600px, auto;
}
.station > * { position: relative; }
.station::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle, rgba(0, 0, 0, .38) 0 4px, rgba(0, 0, 0, .1) 5px, rgba(255, 255, 255, .22) 6px, transparent 7.5px) 60px 70px / 240px 140px;
  -webkit-mask-image: linear-gradient(90deg, transparent 50%, #000 52%);
  mask-image: linear-gradient(90deg, transparent 50%, #000 52%);
}

.station__sign {
  border-top: 12px solid var(--steel);
  border-bottom: 20px solid #2e5e47;
  background-color: var(--tile);
  background-image:
    linear-gradient(90deg, rgba(0, 0, 0, .13) 1.5px, transparent 1.5px),
    linear-gradient(rgba(0, 0, 0, .13) 1.5px, transparent 1.5px);
  background-size: 46px 46px;
  box-shadow: 0 10px 0 rgba(0, 0, 0, .08);
}
.station__sign-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 26px 0 22px; }
.station__name {
  font-weight: 800; font-stretch: 108%; font-size: clamp(3.2rem, 9vw, 7.6rem);
  line-height: .9; letter-spacing: -.015em; color: var(--char);
}
.station__lines { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: var(--fs-m); }
.station__lines span { margin-right: 6px; }
.bullet {
  --bc: var(--line1); --bt: var(--char);
  display: inline-grid; place-items: center; flex-shrink: 0;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--bc); color: var(--bt);
  font-style: normal; font-weight: 800; font-size: 19px;
}
.bullet--2 { --bc: var(--line2); --bt: #fff; }

.contact__inner {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 72px; align-items: start;
  padding: 96px 0 110px;
}
.contact h2 {
  font-weight: 800; font-stretch: 72%; text-transform: uppercase;
  font-size: clamp(3rem, 7vw, 6.2rem); line-height: .88; letter-spacing: -.005em;
  margin: 0 0 26px; color: var(--char);
}
.contact__blurb { font-size: var(--fs-xl); line-height: 1.45; color: #1f1e1b; max-width: 40ch; }
.contact__status {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 28px;
  padding: 8px 14px; background: var(--char); color: #efece5;
}
.contact__status span:nth-child(2) { font-weight: 800; }
.contact__status #contactAvail { padding-left: 10px; border-left: 1px solid #55534e; }
.contact__status .dot { width: 9px; height: 9px; background: #3fcf6f; }
.contact__email { display: flex; align-items: center; gap: 12px; margin-top: 30px; }
.contact__email a {
  font-size: clamp(1.3rem, 2.6vw, 2rem); font-weight: 700; color: var(--char); word-break: break-all;
  text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 7px;
  transition: text-decoration-color .2s;
}
.contact__email a:hover { text-decoration-color: var(--ttc-red); }
.icon-btn {
  flex-shrink: 0; width: 44px; height: 44px; display: grid; place-items: center;
  background: var(--char); color: #f2efe8; border: 0; transition: background .2s;
}
.icon-btn:hover { background: var(--ttc-red); }

.contact__socials { list-style: none; padding: 0; margin: 34px 0 0; max-width: 460px; border-bottom: 2px solid var(--char); }
.contact__socials a {
  display: flex; align-items: center; gap: 14px; padding: 11px 4px;
  border-top: 2px solid var(--char); text-decoration: none;
  transition: padding .25s var(--ease-out), background .2s;
}
.contact__socials .bullet { width: 32px; height: 32px; }
.soc__label { font-weight: 700; font-size: var(--fs-l); }
.contact__socials a:hover { padding-left: 12px; background: rgba(255, 255, 255, .18); }

/* form */
.contact__form {
  --fp: 28px;
  position: relative; display: grid; gap: 18px; padding: 0 var(--fp) var(--fp);
  background-color: var(--steel);
  background-image: repeating-linear-gradient(90deg, rgba(255, 255, 255, .018) 0 1px, transparent 1px 3px);
  color: #e9e6df; box-shadow: 0 3px 0 #000, 0 30px 50px -24px rgba(0, 0, 0, .6);
}
.bolt { position: absolute; width: 9px; height: 9px; border-radius: 50%; background: #4a4c51; box-shadow: inset -1px -1px 0 #2a2b2e, inset 1px 1px 0 #6a6c72; }
.bolt--tl { top: 64px; left: 10px; } .bolt--tr { top: 64px; right: 10px; }
.bolt--bl { bottom: 10px; left: 10px; } .bolt--br { bottom: 10px; right: 10px; }
.board {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  margin: 0 calc(var(--fp) * -1) 8px; padding: 13px 20px;
  background-color: #0a0a0a;
  background-image: radial-gradient(rgba(255, 255, 255, .05) 1px, transparent 1.3px);
  background-size: 3px 3px;
  border-bottom: 3px solid var(--ttc-red);
  font-weight: 700; font-stretch: 85%; font-size: var(--fs-l);
  color: #ffb21a;
}
.field { display: grid; gap: 6px; }
.field label { font-size: var(--fs-m); font-weight: 600; color: #c4c1b9; }
.field input, .field textarea {
  width: 100%; padding: 13px 14px; border: 0; border-bottom: 2px solid #5e5f64; border-radius: 0;
  background: #121315; color: #f4f1ea; font: inherit; resize: vertical;
  transition: border-color .2s, background .2s;
}
.field textarea { min-height: 120px; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--line1); outline-offset: 0; border-bottom-color: var(--line1); background: #17181b; }
.field.is-invalid input, .field.is-invalid textarea { border-bottom-color: #ff5a4d; }
.btn-send {
  margin-top: 4px; padding: 15px 20px; border: 0;
  background: var(--ttc-red); color: #fff; font-weight: 800; font-size: var(--fs-l);
  transition: background .2s;
}
.btn-send:hover { background: #b81f13; }
.contact__form :focus-visible { outline-color: var(--line1); }
.form-note { font-size: var(--fs-s); color: #aaa79f; }

.footer {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px;
  padding: 22px 0 26px; border-top: 2px solid var(--char);
  font-weight: 500; color: #1f1e1b;
}
.footer__top { font-weight: 700; text-underline-offset: 3px; }
.footer__top:hover { color: #8e150b; }
.platform-edge {
  height: 60px; border-top: 3px solid var(--char); border-bottom: 26px solid #121212;
  background-color: #f2c200;
  background-image: radial-gradient(circle, #cfa300 0 3.5px, transparent 4.5px);
  background-size: 14px 14px;
}

/* toast */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 150; translate: -50% 20px;
  padding: 12px 18px; border-radius: 6px; font-weight: 500;
  background: var(--ink); color: var(--paper); box-shadow: 0 0 0 1.5px rgba(255, 250, 243, .2);
  opacity: 0; pointer-events: none; transition: opacity .3s, translate .4s var(--ease-out);
}
.toast.is-show { opacity: 1; translate: -50% 0; }

/* responsive */
@media (max-width: 1000px) {
  .hero__burst { --bx: 50%; --by: 36%; }
  .station::before { display: none; }
  .hero__sun { --s: 60vw; --r: -8%; --b: 26%; }
  .exp__layout { grid-template-columns: 1fr; gap: 32px; margin-top: 40px; }
  /* track goes horizontal */
  .exp__list { flex-direction: row; overflow-x: auto; margin-inline: -8px; padding: 8px; scroll-snap-type: x proximity; scroll-padding-left: 8px; scrollbar-width: none; }
  .exp__item, .exp__item:last-child { flex: 0 0 auto; width: 190px; padding: 30px 16px 0 0; scroll-snap-align: start; }
  .exp__item::before { top: 0; }
  .exp__item::after { left: 12px; right: -4px; top: 7.5px; bottom: auto; width: auto; height: 3px; }
  .exp__panel { min-height: 0; }
  .contact__inner { grid-template-columns: 1fr; gap: 48px; }
  .m__top, .m__facts { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 640px) {
  .container { width: calc(100% - 32px); }
  .nav { padding-inline: 4px; }
  .nav__logo { display: none; }
  .hero__title { font-size: min(21.4vw, 14vh); }
  .bubble { font-size: var(--fs-m); padding: 12px 16px 13px; margin-top: 22px; }
  .hero__cta { margin-top: 22px; }
  .btn-manga { font-size: var(--fs-m); padding: 11px 18px; }
  .exp { padding: 96px 0 110px; }
  .exp__title { font-size: 20vw; }
  .proj__title { font-size: 11.4vw; }
  .proj { --car-w: min(320px, 100vw - 56px); --car-side: 12px; --car-top: 22px; --car-bottom: 34px; --door: 0px; --door-gap: 0px; }
  .proj__carousel { --gutter: 16px; }
  .proj__grid { width: calc(100% - 32px); grid-template-columns: 1fr; }
  .proj__arrow { display: none; }
  .car { grid-template-columns: minmax(0, 1fr); gap: 0; background:
    linear-gradient(var(--enamel-roof) 0 10px, transparent 10px),
    linear-gradient(to top, transparent 0 18px, var(--t-text) 18px 22px, transparent 22px),
    linear-gradient(to top, var(--enamel-shade) 0 18px, transparent 18px),
    var(--enamel); }
  .car__door { display: none; }
  .modal__content { width: calc(100% - 32px); padding-top: 70px; }
  .m__close { right: 12px; top: 12px; }
  .contact__form { --fp: 18px; }
  .station__lines span { display: none; }
  .alt { left: 10px; width: 132px; padding: 7px 10px 10px; }
  .alt__value { font-size: var(--fs-xl); }
  .sky { height: 260vh; }
  .city { --car: 220px; }
  .entrance { left: 4%; }
  .escalator { --band: 90px; }
  .escalator--1 { left: 4%; width: 52%; }
  .escalator--2 { left: 30%; width: 62%; }
  .corridor__sign span, .corridor__note { display: none; }
  .contact__inner { padding: 64px 0 80px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
  .hero__scene, .hero__burst, .hero__title .line, .sfx, .hero__role, .bubble, .hero__cta, .walkers i { animation: none !important; }
  .walkers i:nth-child(1) { left: 16%; }
  .walkers i:nth-child(2) { left: 31%; }
  .walkers i:nth-child(3) { left: 62%; }
  .walkers i:nth-child(4) { left: 71%; }
  .walkers i:nth-child(5) { left: 88%; }
}
