/* Starlynx AI — "the lynx's eye": deep night, a field of stars, one warm point of light. */
:root {
  --void: #060A18;
  --deep: #0A1024;
  --panel: #0E1530;
  --panel-2: #131B3B;
  --line: rgba(150, 168, 235, 0.13);
  --line-2: rgba(150, 168, 235, 0.26);
  --mute: #8C97C0;
  --mist: #C3CAE6;
  --star: #EDF0FA;
  --eye: #F2C46B;
  --eye-ink: #251A03;
  --eye-dim: rgba(242, 196, 107, 0.13);
  --ice: #9DB6FF;
  --error: #FF9F8C;

  --font: 'Instrument Sans', system-ui, sans-serif;
  --display: 'Saira', 'Arial Narrow', sans-serif;

  --wrap: 1320px;
  --gut: clamp(16px, 4vw, 48px);
  --section: clamp(80px, 11vw, 160px);
  --radius: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--void);
  color: var(--star);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
/* Fine film grain over everything: gives the flat night colors some depth. */
body::after {
  content: ''; position: fixed; inset: 0; z-index: 60; pointer-events: none; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img, svg { max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--eye); outline-offset: 3px; border-radius: 3px; }
::selection { background: var(--eye); color: var(--eye-ink); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.skip { position: absolute; left: var(--gut); top: -60px; z-index: 80; background: var(--eye); color: var(--eye-ink); padding: 8px 14px; border-radius: 6px; text-decoration: none; }
.skip:focus { top: 12px; }

.starfield { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }

/* ---------- Type ---------- */
.hero-h, .page-h, .project-h, .sec-h, .band-h, .show-name, .next-name {
  font-family: var(--display);
  font-weight: 250;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.hero-h { font-size: clamp(42px, 5.6vw, 92px); line-height: .96; font-stretch: 100%; }
.page-h { font-size: clamp(52px, 8vw, 128px); line-height: .92; font-stretch: 110%; }
.project-h { font-size: clamp(60px, 12.5vw, 208px); line-height: .86; font-stretch: 118%; font-weight: 200; letter-spacing: -0.035em; }
.sec-h { font-size: clamp(36px, 4.6vw, 68px); line-height: 1; font-stretch: 110%; font-weight: 300; }
.band-h { font-size: clamp(44px, 6.4vw, 104px); line-height: .94; font-stretch: 108%; }
.show-name { font-size: clamp(52px, 8.6vw, 140px); line-height: .88; font-stretch: 118%; font-weight: 200; letter-spacing: -0.035em; }
.lead { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.6; color: var(--mist); max-width: 52ch; }
.stage-bar, .hero-foot, .meta dt, .side-h, .next-k, .contact-dl dt, .city-log-head, .tx-doc-head, .tx-meta, .map-cap, .tx-times {
  font-family: var(--display); font-stretch: 85%; font-weight: 500; letter-spacing: .02em;
}
.empty { color: var(--mute); padding-block: 40px; }

.more { display: inline-block; color: var(--eye); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; font-weight: 500; }
.more:hover { text-decoration-thickness: 2px; }

/* ---------- Buttons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 12px 26px; border-radius: 999px; border: 1px solid transparent;
  font: inherit; font-size: 16px; font-weight: 600; line-height: 1.2; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .2s, border-color .2s, box-shadow .2s, color .2s;
}
.btn-eye { background: var(--eye); color: var(--eye-ink); box-shadow: 0 10px 40px -12px rgba(242, 196, 107, .55); }
.btn-eye:hover { background: #F7D58F; box-shadow: 0 0 0 6px rgba(242, 196, 107, .12), 0 10px 40px -10px rgba(242, 196, 107, .7); }
.btn-ghost { border-color: var(--line-2); color: var(--star); background: rgba(14, 21, 48, .35); backdrop-filter: blur(8px); }
.btn-ghost:hover { border-color: var(--mist); }

/* ---------- Header ---------- */
.site-head { position: fixed; inset: 0 0 auto; z-index: 40; transition: background-color .3s, border-color .3s; border-bottom: 1px solid transparent; }
.site-head.is-scrolled { background: rgba(6, 10, 24, .72); backdrop-filter: blur(14px) saturate(140%); border-bottom-color: var(--line); }
.head-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-family: var(--display); font-weight: 600; font-stretch: 105%; font-size: 19px; letter-spacing: .02em; }
.mark { width: 30px; height: auto; overflow: visible; }
.mark polyline { fill: none; stroke: var(--mute); stroke-width: .7; stroke-linejoin: round; }
.mark circle { fill: var(--star); }
.mark .m-alpha { fill: var(--eye); filter: drop-shadow(0 0 3px rgba(242, 196, 107, .9)); }
.site-nav { display: flex; align-items: center; gap: 32px; }
.site-nav a { text-decoration: none; color: var(--mist); font-size: 15px; font-weight: 500; padding-block: 6px; }
.site-nav a:hover { color: var(--star); }
.site-nav a[aria-current="page"] { color: var(--star); box-shadow: inset 0 -2px 0 var(--eye); }
.site-nav .nav-cta { border: 1px solid var(--line-2); border-radius: 999px; padding: 9px 20px; color: var(--star); background: rgba(14, 21, 48, .4); }
.site-nav .nav-cta:hover { border-color: var(--eye); }
.site-nav .nav-cta[aria-current="page"] { box-shadow: none; border-color: var(--eye); }
.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(60% 50% at 18% 92%, rgba(242, 196, 107, .10), transparent 70%),
    radial-gradient(70% 60% at 75% 20%, rgba(80, 104, 210, .16), transparent 70%),
    linear-gradient(180deg, #050816 0%, #08102A 70%, #0A1230 100%);
}
.hero .starfield { z-index: -2; }
.hero-in {
  position: relative; display: grid; grid-template-rows: auto 1fr auto auto;
  min-height: max(100svh, 760px); max-width: var(--wrap); margin-inline: auto; padding: 128px var(--gut) 28px;
}
/* The figure runs bottom-left to top-right: the headline sits in the empty upper-left, the lead in the lower-right. */
.hero-sky {
  position: absolute; z-index: -1; top: 76px; bottom: 56px; right: var(--gut); width: 72%;
  transform: translate3d(var(--px, 0), var(--py, 0), 0); transition: transform .6s cubic-bezier(.2, .7, .2, 1);
}
.hero-sky .lynx { width: 100%; height: 100%; }
.hero-h { max-width: 8.5em; }
.hero-row { grid-row: 3; justify-self: end; width: min(100%, 470px); display: grid; gap: 24px; padding-top: 24px; border-top: 1px solid var(--line-2); }
.hero-row .lead { font-size: 18px; }
.hero-foot { grid-row: 4; display: flex; flex-wrap: wrap; gap: 8px 32px; margin-top: 40px; font-size: 13px; color: var(--mute); }
.hero-foot-r { margin-left: auto; }

/* ---------- Constellation ---------- */
.lynx { display: block; width: 100%; height: auto; overflow: visible; }
.c-field circle { fill: var(--star); }
.c-line { stroke: var(--ice); stroke-opacity: .45; stroke-width: 1; }
.c-dim { fill: var(--ice); opacity: .7; }
.c-lit { cursor: pointer; outline: none; }
.c-glow { pointer-events: none; }
.c-halo { fill: var(--eye); opacity: .12; transition: opacity .2s; }
.c-core { fill: #FFE3A3; filter: drop-shadow(0 0 6px rgba(242, 196, 107, .95)); }
.c-reticle { fill: none; stroke: var(--eye); stroke-width: 1.4; opacity: .9; transform-box: fill-box; transform-origin: center; transition: transform .25s, opacity .25s; }
.c-label { fill: var(--star); font-family: var(--display); font-stretch: 105%; font-size: 21px; font-weight: 500; letter-spacing: .01em; }
.c-sub { fill: var(--mute); font-family: var(--font); font-size: 13px; }
.c-lit:hover .c-halo, .c-lit:focus-visible .c-halo, .c-lit.is-current .c-halo { opacity: .3; }
.c-lit:hover .c-reticle, .c-lit:focus-visible .c-reticle { transform: scale(1.35); opacity: 1; }
.c-lit:hover .c-label, .c-lit:focus-visible .c-label { fill: var(--eye); }
.c-lit:focus-visible .c-label { text-decoration: underline; }

/* The page's one orchestrated moment: the figure is drawn, then the projects light up. */
@media (prefers-reduced-motion: no-preference) {
  .lynx.is-animated .c-line { stroke-dasharray: 1; stroke-dashoffset: 1; animation: c-draw .7s cubic-bezier(.6, 0, .3, 1) forwards; animation-delay: calc(var(--i) * 150ms + 400ms); }
  .lynx.is-animated .c-lit { opacity: 0; animation: c-ignite .8s ease-out forwards; animation-delay: calc(var(--j) * 260ms + 1400ms); }
  .lynx.is-animated .c-lit .c-reticle { animation: c-lock .8s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--j) * 260ms + 1400ms); }
  .hero-h, .hero-row { animation: rise 1s cubic-bezier(.2, .7, .2, 1) both .1s; }
  .hero-row { animation-delay: .25s; }
}
@keyframes c-draw { to { stroke-dashoffset: 0; } }
@keyframes c-ignite { to { opacity: 1; } }
@keyframes c-lock { from { transform: scale(2.6); opacity: 0; } to { transform: scale(1); opacity: .9; } }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }

/* ---------- Intro ---------- */
.intro { padding-block: var(--section) calc(var(--section) * .8); }
.intro-p { font-size: clamp(22px, 2.5vw, 36px); line-height: 1.35; letter-spacing: -0.012em; font-weight: 400; color: var(--mist); }
.caps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 64px); margin-top: clamp(56px, 7vw, 104px); }
.caps li { border-top: 1px solid var(--line-2); padding-top: 28px; }
.cap-ico svg { width: 44px; height: 44px; fill: none; stroke: var(--eye); stroke-width: 1.6; stroke-linecap: round; }
.caps h3 { margin-top: 22px; font-family: var(--display); font-stretch: 110%; font-weight: 500; font-size: 22px; letter-spacing: .005em; }
.caps p { margin-top: 10px; color: var(--mist); max-width: 38ch; }

/* ---------- Projects showcase ---------- */
.work { padding-bottom: 40px; }
.work-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px 40px; padding-top: 56px; border-top: 1px solid var(--line); }
.sec-sub { color: var(--mute); max-width: 44ch; }
.show { padding-block: clamp(64px, 8vw, 120px); }
/* Alternate projects sit on a slightly lighter band so each one reads as its own section. */
.show:nth-of-type(even) {
  background: radial-gradient(70% 60% at 85% 0%, rgba(80, 104, 210, .12), transparent 70%), #0C1330;
  border-block: 1px solid var(--line);
}
.show:nth-of-type(even) .stage { background: linear-gradient(180deg, #121A3C 0%, #0D1430 100%); }
.show-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: clamp(32px, 6vw, 96px); row-gap: 28px; align-items: start; }
.show-title { display: contents; }
.show-name { grid-column: 1 / -1; }
.show-name a { text-decoration: none; background: linear-gradient(180deg, #FFFFFF 30%, #B9C4EE); -webkit-background-clip: text; background-clip: text; color: transparent; }
.show-name a:hover { background: none; color: var(--eye); }
.show-tag { font-family: var(--display); font-stretch: 100%; font-weight: 300; font-size: clamp(22px, 2.3vw, 32px); line-height: 1.25; color: var(--mist); max-width: 18ch; }
.show-sum { font-size: 18px; max-width: 54ch; }
.show-info .actions { margin-top: 28px; }
.show-stage { margin-top: clamp(40px, 5vw, 64px); }
.feats { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 28px; color: var(--mist); font-size: 15px; }
.feats li { position: relative; padding-left: 18px; }
.feats li::before, .ticks li::before { content: ''; position: absolute; left: 1px; top: .58em; width: 6px; height: 6px; border: 1.5px solid var(--eye); transform: rotate(45deg); }

.meta { display: grid; gap: 12px; margin-top: 24px; }
.meta div { display: grid; grid-template-columns: 92px 1fr; gap: 16px; align-items: baseline; }
.meta dt { color: var(--mute); font-size: 13px; }
.meta dd { font-size: 15px; line-height: 1.5; color: var(--mist); }

.status { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 10px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 14px; line-height: 1.4; white-space: nowrap; background: rgba(14, 21, 48, .5); }
.status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--mute); }
.status.is-live::before { background: var(--eye); box-shadow: 0 0 0 3px var(--eye-dim), 0 0 10px var(--eye); }
.status.is-pilot::before { background: var(--ice); }
.status.is-dev::before { background: transparent; border: 1px solid var(--mute); }

/* ---------- Stages (product demos) ---------- */
.stage {
  position: relative; margin: 0; overflow: hidden;
  background: linear-gradient(180deg, var(--panel) 0%, var(--deep) 100%);
  border: 1px solid var(--line-2); border-radius: var(--radius);
  box-shadow: 0 50px 120px -50px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .02) inset;
}
.stage::before { content: ''; position: absolute; inset: 0 0 auto; height: 1px; background: linear-gradient(90deg, transparent, rgba(242, 196, 107, .55), transparent); z-index: 2; }
.stage-bar { display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 10px 18px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--mist); }
.stage-meta { margin-left: auto; color: var(--mute); font-variant-numeric: tabular-nums; }
.stage-tag { border: 1px solid var(--line-2); border-radius: 999px; padding: 1px 10px; font-size: 12px; color: var(--mute); }
.rec { width: 8px; height: 8px; border-radius: 50%; background: #FF5E5E; box-shadow: 0 0 8px #FF5E5E; flex: none; }
@media (prefers-reduced-motion: no-preference) { .rec { animation: blink 1.6s steps(2, start) infinite; } }
@keyframes blink { to { opacity: .25; } }

.vf { position: absolute; z-index: 2; width: 22px; height: 22px; border: 0 solid var(--eye); pointer-events: none; opacity: .9; }
.vf-tl { top: 14px; left: 14px; border-top-width: 2px; border-left-width: 2px; }
.vf-tr { top: 14px; right: 14px; border-top-width: 2px; border-right-width: 2px; }
.vf-bl { bottom: 14px; left: 14px; border-bottom-width: 2px; border-left-width: 2px; }
.vf-br { bottom: 14px; right: 14px; border-bottom-width: 2px; border-right-width: 2px; }

.city-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; }
.city-view { position: relative; aspect-ratio: 16 / 9; background: #0A1030; }
.city-cv { display: block; width: 100%; height: 100%; }
.city-side { display: grid; grid-template-rows: auto auto minmax(0, 1fr); gap: 14px; padding: 16px; border-left: 1px solid var(--line); min-height: 0; overflow: hidden; }
.city-map { position: relative; border: 1px solid var(--line); border-radius: 10px; background: rgba(6, 10, 24, .5); padding: 8px 8px 26px; }
.city-map svg { display: block; width: 100%; height: auto; }
.map-streets path { fill: none; stroke: rgba(157, 182, 255, .12); stroke-width: 6; }
.map-route { fill: none; stroke: var(--ice); stroke-width: 2; stroke-opacity: .7; stroke-linejoin: round; }
.map-dots circle { fill: var(--eye); filter: drop-shadow(0 0 4px rgba(242, 196, 107, .9)); }
.map-bus { fill: var(--star); stroke: var(--void); stroke-width: 2; }
.map-cap { position: absolute; left: 12px; bottom: 6px; font-size: 12px; color: var(--mute); }
.city-log-head { display: flex; justify-content: space-between; font-size: 13px; color: var(--mute); }
.city-log-head [data-count] { color: var(--eye); font-variant-numeric: tabular-nums; }
.city-log { display: grid; gap: 6px; align-content: start; overflow: hidden; }
.city-log li { display: grid; grid-template-columns: 58px 1fr auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 8px; background: rgba(157, 182, 255, .05); border: 1px solid var(--line); font-size: 13px; }
.city-log time { color: var(--mute); font-family: var(--display); font-stretch: 85%; font-variant-numeric: tabular-nums; }
.city-log b { font-weight: 600; }
.city-log span { font-family: var(--display); font-stretch: 85%; color: var(--eye); font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: no-preference) { .city-log li.is-new { animation: log-in .45s cubic-bezier(.2, .8, .2, 1); } }
@keyframes log-in { from { opacity: 0; transform: translateY(-8px); background: rgba(242, 196, 107, .2); } }

.tx-src { border: 1px solid var(--line-2); border-radius: 6px; padding: 1px 8px; color: var(--mist); }
.tx-url { color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; font-family: var(--font); font-stretch: 100%; font-weight: 400; letter-spacing: 0; }
.tx-state { color: var(--eye); display: inline-flex; align-items: center; gap: 8px; }
.tx-state::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--eye); box-shadow: 0 0 8px var(--eye); }
.tx-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
.tx-media { padding: 20px; border-right: 1px solid var(--line); }
.tx-video { position: relative; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.tx-video svg { display: block; width: 100%; height: auto; }
.tx-vlabel { fill: var(--mist); font-family: var(--display); font-size: 11px; font-weight: 500; }
.tx-scrub { position: relative; margin-top: 18px; height: 48px; }
.tx-wave { display: block; width: 100%; height: 48px; }
.wave-base rect { fill: rgba(157, 182, 255, .22); }
.wave-played rect { fill: var(--eye); }
.tx-head { position: absolute; top: -6px; bottom: -6px; left: var(--p, 100%); width: 2px; margin-left: -1px; background: var(--star); box-shadow: 0 0 10px rgba(237, 240, 250, .8); border-radius: 2px; }
.tx-times { display: flex; justify-content: space-between; margin-top: 10px; font-size: 12px; color: var(--mute); font-variant-numeric: tabular-nums; }
.tx-doc { padding: 20px 24px; min-width: 0; }
.tx-doc-head { display: flex; justify-content: space-between; font-size: 13px; color: var(--mute); padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.tx-lines { display: grid; gap: 16px; margin-top: 16px; }
.tx-meta { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--mute); }
.tx-meta time { color: var(--ice); font-variant-numeric: tabular-nums; }
.tx-flag { color: var(--eye-ink); background: var(--eye); border-radius: 999px; padding: 0 8px; }
.tx-line p { margin-top: 4px; font-size: 16px; line-height: 1.5; }
.tx-line.is-quote p { background: var(--eye-dim); box-shadow: inset 3px 0 0 var(--eye); padding: 6px 12px; border-radius: 0 8px 8px 0; }
.stage-text.is-running .w { opacity: .1; transition: opacity .3s; }
.stage-text.is-running .w.on { opacity: 1; }
.tx-release { padding: 20px 24px 24px; border-top: 1px solid var(--line); background: linear-gradient(180deg, rgba(242, 196, 107, .05), transparent); }
.tx-release-head { display: flex; justify-content: space-between; gap: 12px; font-family: var(--display); font-stretch: 85%; font-weight: 500; font-size: 13px; }
.tx-kind { color: var(--eye); }
.tx-rel-state { color: var(--mute); }
.tx-h { margin-top: 10px; font-family: var(--display); font-stretch: 105%; font-weight: 500; font-size: clamp(18px, 1.8vw, 24px); line-height: 1.3; min-height: 1.3em; }
.tx-p { margin-top: 8px; color: var(--mist); font-size: 15px; max-width: 80ch; min-height: 3em; }
.caret { display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: -0.15em; background: var(--eye); }

.stage-frame { position: relative; }
.stage-image img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.stage-sky .stage-frame { padding: clamp(20px, 4vw, 56px); background: radial-gradient(60% 60% at 30% 70%, rgba(242, 196, 107, .08), transparent); }
.stage-sky .lynx { max-height: 560px; margin-inline: auto; }

/* ---------- Story ---------- */
.story { padding-block: var(--section); border-top: 1px solid var(--line); background: radial-gradient(50% 60% at 20% 50%, rgba(80, 104, 210, .10), transparent 70%); }
.story-in { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.story-text .sec-h { margin-bottom: 28px; }
.story-p { font-size: clamp(20px, 1.9vw, 26px); line-height: 1.5; color: var(--mist); max-width: 40ch; }
.story-text .more { margin-top: 28px; }

/* ---------- Contact band ---------- */
.band { position: relative; overflow: hidden; isolation: isolate; border-top: 1px solid var(--line); background: radial-gradient(70% 90% at 50% 120%, rgba(242, 196, 107, .14), transparent 60%), var(--void); }
.band .starfield { z-index: -1; }
.band-in { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px 80px; align-items: end; padding-block: clamp(96px, 13vw, 200px); }
.band-p { color: var(--mist); max-width: 44ch; }
.band .actions { margin-top: 28px; }

/* ---------- Page heads ---------- */
.page-head { position: relative; overflow: hidden; isolation: isolate; background: radial-gradient(60% 80% at 80% 0%, rgba(80, 104, 210, .16), transparent 70%), linear-gradient(180deg, #050816, var(--void)); }
.page-head .starfield { z-index: -1; }
.page-head-in { padding-top: clamp(150px, 18vw, 220px); padding-bottom: clamp(64px, 8vw, 112px); }
.page-head .lead { margin-top: 28px; }
.page-head .actions { margin-top: 36px; }

/* ---------- Project page ---------- */
.project-head { position: relative; overflow: hidden; isolation: isolate; background: radial-gradient(60% 80% at 15% 0%, rgba(242, 196, 107, .08), transparent 70%), linear-gradient(180deg, #050816, var(--void)); }
.project-head .starfield { z-index: -1; }
.project-head-in { padding-top: clamp(130px, 15vw, 190px); padding-bottom: clamp(40px, 5vw, 64px); }
.crumb { display: inline-block; color: var(--mute); text-decoration: none; font-size: 15px; margin-bottom: 24px; }
.crumb:hover { color: var(--star); text-decoration: underline; }
.project-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 24px 48px; margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line-2); }
.project-tag { font-family: var(--display); font-weight: 300; font-size: clamp(22px, 2.4vw, 34px); line-height: 1.25; color: var(--mist); max-width: 26ch; }
.project-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.project-vis { margin-bottom: clamp(56px, 7vw, 96px); }
.project-body { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(40px, 7vw, 112px); padding-bottom: var(--section); align-items: start; }
.prose { max-width: 64ch; }
.prose p + p, .prose .lead + p { margin-top: 1.1em; }
.prose .lead { color: var(--star); font-size: clamp(20px, 1.8vw, 24px); line-height: 1.5; }
.project-side { position: sticky; top: 100px; background: rgba(14, 21, 48, .6); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.side-block + .side-block { margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--line); }
.side-h { font-size: 13px; color: var(--mute); margin-bottom: 12px; font-weight: 500; }
.ticks { display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 20px; line-height: 1.5; }

.steps { padding-block: var(--section); border-top: 1px solid var(--line); }
.steps .sec-h { margin-bottom: clamp(40px, 5vw, 72px); }
.steps-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px 32px; counter-reset: step; }
.steps-list li { position: relative; counter-increment: step; border-top: 1px solid var(--line-2); padding-top: 28px; }
.steps-list li::after { content: ''; position: absolute; top: -4px; left: 0; width: 7px; height: 7px; background: var(--eye); border-radius: 50%; box-shadow: 0 0 10px var(--eye); }
.steps-list li::before { content: counter(step); display: block; margin-bottom: 18px; font-family: var(--display); font-stretch: 110%; font-weight: 200; font-size: 72px; line-height: .9; color: var(--eye); }
.steps-list h3 { font-family: var(--display); font-stretch: 105%; font-size: 21px; font-weight: 500; line-height: 1.3; }
.steps-list p { margin-top: 8px; color: var(--mist); font-size: 16px; }

.next { border-top: 1px solid var(--line); }
.next-in { display: grid; gap: 6px; padding-block: clamp(56px, 7vw, 96px); text-decoration: none; }
.next-k { color: var(--mute); font-size: 14px; }
.next-name { font-size: clamp(52px, 8vw, 128px); line-height: .9; font-stretch: 118%; font-weight: 200; transition: color .2s; }
.next-tag { color: var(--mist); font-size: 18px; }
.next-in:hover .next-name { color: var(--eye); }

/* ---------- About ---------- */
.about-story { border-top: 0; }
.principles, .team { padding-block: var(--section); border-top: 1px solid var(--line); }
.principles .sec-h, .team .sec-h { margin-bottom: clamp(40px, 5vw, 64px); }
.principles-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); }
.principles-list li { border-top: 1px solid var(--line-2); padding-top: 28px; }
.principles-list h3 { font-family: var(--display); font-stretch: 108%; font-size: 24px; font-weight: 400; line-height: 1.25; }
.principles-list p { margin-top: 12px; color: var(--mist); }
.team-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 40px 32px; }
.team-list img, .avatar { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; display: grid; place-items: center; border: 1px solid var(--line-2); }
.avatar { background: var(--panel); font-family: var(--display); font-size: 44px; font-weight: 200; color: var(--eye); }
.team-list h3 { margin-top: 18px; font-size: 18px; font-weight: 600; }
.team-list p { color: var(--mute); font-size: 15px; }

/* ---------- Contact ---------- */
.contact { position: relative; overflow: hidden; isolation: isolate; min-height: 100svh; background: radial-gradient(60% 70% at 85% 10%, rgba(80, 104, 210, .18), transparent 70%), radial-gradient(50% 50% at 10% 100%, rgba(242, 196, 107, .08), transparent 70%), linear-gradient(180deg, #050816, var(--void)); }
.contact .starfield { z-index: -1; }
.contact-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 96px); align-items: start; padding-top: clamp(140px, 15vw, 200px); padding-bottom: var(--section); }
.contact .lead { margin-top: 28px; }
.contact-dl { display: grid; gap: 22px; margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line-2); }
.contact-dl dt { color: var(--mute); font-size: 13px; }
.contact-dl dd { font-size: 20px; margin-top: 2px; }
.contact-dl a { text-decoration-color: var(--line-2); text-underline-offset: 5px; }
.contact-dl a:hover { text-decoration-color: var(--eye); }

.form, .sent { position: relative; background: rgba(14, 21, 48, .62); backdrop-filter: blur(16px) saturate(130%); border: 1px solid var(--line-2); border-radius: 20px; padding: clamp(22px, 3vw, 40px); box-shadow: 0 50px 120px -50px rgba(0, 0, 0, .9); }
.form::before, .sent::before { content: ''; position: absolute; inset: 0 24px auto; height: 1px; background: linear-gradient(90deg, transparent, rgba(242, 196, 107, .6), transparent); }
.form { display: grid; gap: 22px; }
.f-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.f-row { display: grid; gap: 8px; align-content: start; }
.f-row label { font-size: 14px; font-weight: 600; color: var(--mist); }
.opt { color: var(--mute); font-weight: 400; }
.form input, .form select, .form textarea {
  width: 100%; font: inherit; font-size: 17px; color: var(--star);
  background: rgba(6, 10, 24, .6); border: 1px solid var(--line-2); border-radius: 10px; padding: 13px 15px;
  transition: border-color .15s, box-shadow .15s;
}
.form textarea { resize: vertical; min-height: 150px; line-height: 1.55; }
.form select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--mute) 50%), linear-gradient(135deg, var(--mute) 50%, transparent 50%); background-position: calc(100% - 21px) 55%, calc(100% - 16px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 42px; }
.form select option { background: var(--panel); }
.form input:hover, .form select:hover, .form textarea:hover { border-color: rgba(150, 168, 235, .4); }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--eye); box-shadow: 0 0 0 4px var(--eye-dim); outline: none; }
.form [aria-invalid="true"] { border-color: var(--error); }
.f-err { color: var(--error); font-size: 14px; }
.f-top { padding: 12px 14px; border: 1px solid var(--error); border-radius: 10px; }
.form .btn { justify-self: start; margin-top: 4px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.sent h2 { font-family: var(--display); font-stretch: 108%; font-size: 36px; font-weight: 300; }
.sent p { margin-top: 12px; color: var(--mist); }
.sent .more { margin-top: 24px; }

/* ---------- Footer ---------- */
.site-foot { border-top: 1px solid var(--line); background: var(--void); }
.foot-in { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 2fr); gap: 32px 48px; padding-block: 56px 40px; font-size: 15px; color: var(--mute); }
.foot-brand p { margin-top: 14px; max-width: 32ch; }
.foot-brand .brand { color: var(--star); }
.foot-nav, .foot-contact { display: grid; gap: 8px; align-content: start; }
.foot-in a { color: var(--mist); text-decoration: none; }
.foot-in a:hover { color: var(--star); text-decoration: underline; }
.foot-copy { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .city-grid { grid-template-columns: minmax(0, 1fr); }
  .city-side { border-left: 0; border-top: 1px solid var(--line); grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  .city-map { grid-row: 1 / span 2; }
  .city-log { max-height: 190px; }
}
@media (max-width: 960px) {
  .hero-in { grid-template-rows: auto auto auto auto; padding-top: 92px; }
  .hero-sky { position: relative; z-index: 0; inset: auto; width: 100%; grid-row: 1; margin-bottom: 8px; }
  .hero-h { grid-row: 2; max-width: none; }
  .hero-row { grid-row: 3; justify-self: stretch; width: auto; margin-top: 32px; }
  .hero-row, .show-head, .tx-grid, .story-in, .band-in, .contact-in, .project-body, .project-row { grid-template-columns: minmax(0, 1fr); }
  .tx-media { border-right: 0; border-bottom: 1px solid var(--line); }
  .project-side { position: static; }
  .principles-list, .caps { grid-template-columns: minmax(0, 1fr); }
  .foot-in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .foot-brand { grid-column: 1 / -1; }
  .story-sky { max-width: 520px; }
}
@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; font: inherit; font-size: 15px; font-weight: 600; color: var(--star); background: rgba(14, 21, 48, .5); border: 1px solid var(--line-2); border-radius: 999px; padding: 9px 18px; cursor: pointer; }
  .site-head.is-open { background: rgba(6, 10, 24, .96); }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: rgba(6, 10, 24, .97); border-bottom: 1px solid var(--line); padding: 8px var(--gut) 24px; }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 16px 0; font-size: 20px; border-bottom: 1px solid var(--line); }
  .site-nav a[aria-current="page"] { box-shadow: none; color: var(--eye); }
  .site-nav .nav-cta { border: 0; border-radius: 0; padding: 16px 0; background: none; }
  .c-sub { display: none; }
  .c-label { font-size: 26px; }
  .hero-foot-r { margin-left: 0; }
  .city-side { grid-template-columns: minmax(0, 1fr); }
  .city-map { grid-row: auto; }
  .city-log li:nth-child(n + 4) { display: none; }
  .f-grid { grid-template-columns: minmax(0, 1fr); }
  .meta div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .stage-bar .tx-url { display: none; }
  .foot-in { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
