/* Gabe Garza — personal site. Palette: deep-field blue-black, ice white, ion blue, pale lilac. */
@font-face { font-family: 'Syne'; src: url('/assets/fonts/syne-var.woff2') format('woff2'); font-weight: 400 800; font-display: swap; }
@font-face { font-family: 'Onest'; src: url('/assets/fonts/onest-var.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Martian Mono'; src: url('/assets/fonts/martian-mono-var.woff2') format('woff2'); font-weight: 100 800; font-stretch: 75% 112.5%; font-display: swap; }

:root {
  --void: #040817;
  --deep: #08102a;
  --plate: rgba(5, 10, 30, .80);
  --plate-solid: #070e25;
  --ink: #eef3ff;
  --ink-2: #c3cee8;
  --ink-3: #9eabcc;
  --ion: #9ccbff;
  --ion-2: #6fb0ff;
  --lilac: #cfc0ff;
  --line: rgba(156, 203, 255, .16);
  --line-2: rgba(156, 203, 255, .34);
  --display: 'Syne', 'Avenir Next', 'Segoe UI', sans-serif;
  --body: 'Onest', 'Segoe UI', system-ui, sans-serif;
  --mono: 'Martian Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --pad: clamp(20px, 5vw, 72px);
  --max: 1240px;
  --r: 16px;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--void); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 90px; scrollbar-width: none; }
html, body { overflow-x: clip; }
body { margin: 0; color: var(--ink); font: 400 1.0625rem/1.65 var(--body); background: var(--void); min-height: 100vh; overflow-x: hidden; -webkit-font-smoothing: antialiased; }

/* Native bar is hidden; a thin ice sliver is drawn in JS so it can blend into the sky. */
html::-webkit-scrollbar { width: 0; height: 0; display: none; background: transparent; }

.sky-scroll {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 14px;
  z-index: 50;
  pointer-events: none;
}
.sky-scroll[hidden] { display: none; }
.sky-scroll-thumb {
  position: absolute;
  top: 0;
  left: 4px;
  width: 6px;
  border-radius: 99px;
  background: linear-gradient(180deg, rgba(207, 192, 255, .38), rgba(156, 203, 255, .34) 45%, rgba(156, 203, 255, .28));
  box-shadow: 0 0 12px rgba(111, 176, 255, .18);
  opacity: .58;
  pointer-events: auto;
  cursor: pointer;
  transition: opacity .28s ease, width .2s ease, left .2s ease, background .28s ease, box-shadow .28s ease;
  will-change: transform, height;
}
.sky-scroll:hover .sky-scroll-thumb,
.sky-scroll.is-near .sky-scroll-thumb,
.sky-scroll.is-scrolling .sky-scroll-thumb,
.sky-scroll.is-dragging .sky-scroll-thumb {
  opacity: .95;
  width: 8px;
  left: 3px;
  background: linear-gradient(180deg, rgba(222, 214, 255, .62), rgba(196, 220, 255, .58));
  box-shadow: 0 0 16px rgba(156, 203, 255, .32);
}
.sky-scroll.is-dragging .sky-scroll-thumb { transition: none; }
@media (hover: none), (pointer: coarse) {
  .sky-scroll-thumb { opacity: 0; }
  .sky-scroll.is-scrolling .sky-scroll-thumb,
  .sky-scroll.is-dragging .sky-scroll-thumb { opacity: .85; }
}

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; margin: 0; line-height: 1; letter-spacing: -.02em; text-wrap: balance; }
::selection { background: var(--ion); color: var(--void); }

.sky { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; pointer-events: none; }
html.no-webgl .sky { opacity: 1; }

.skip { position: absolute; left: 16px; top: -80px; z-index: 100; background: var(--ink); color: var(--void); padding: 12px 18px; border-radius: 10px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--ion); outline-offset: 4px; border-radius: 6px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- header ---------- */
.site-head { position: fixed; top: 0; left: 0; right: 0; z-index: 40; display: flex; align-items: center; gap: 20px; padding: 14px var(--pad); background: linear-gradient(rgba(4, 8, 23, .92), rgba(4, 8, 23, .55) 70%, rgba(4, 8, 23, 0)); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 700 1.12rem/1 var(--display); letter-spacing: .01em; padding: 10px 0; min-height: 44px; }
.brand svg { width: 18px; height: 18px; fill: var(--ink); flex: none; }
.brand small { font: 400 .72rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-left: 4px; }
.site-nav { margin-left: auto; display: flex; gap: 4px; }
.site-nav a { text-decoration: none; font-weight: 500; font-size: .98rem; padding: 11px 14px; border-radius: 999px; color: var(--ink-2); transition: color .2s, background .2s; min-height: 44px; display: inline-flex; align-items: center; }
.site-nav a:hover { color: var(--ink); background: rgba(156, 203, 255, .1); }
.site-nav a[aria-current="page"] { color: var(--ink); background: rgba(156, 203, 255, .14); box-shadow: inset 0 0 0 1px var(--line-2); }
.toggles { display: inline-flex; align-items: center; gap: 6px; flex: none; }
.motion-toggle, .sound-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(4, 8, 23, .6); color: var(--ink-2); font: 500 .72rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.motion-toggle:hover, .sound-toggle:hover { color: var(--ink); border-color: var(--ion); }
.sound-toggle .ico { width: 14px; height: 14px; display: block; fill: currentColor; overflow: visible; }
.sound-toggle[aria-pressed="true"] .slash { opacity: 0; }
.sound-toggle[aria-pressed="false"] .wave { opacity: .25; }
.sound-toggle[aria-pressed="false"] .slash { opacity: 1; }
.motion-toggle .ico { width: 10px; height: 10px; display: inline-block; border-left: 3px solid currentColor; border-right: 3px solid currentColor; }
.motion-toggle[aria-pressed="true"] .ico { border: 0; width: 0; height: 0; border-left: 9px solid currentColor; border-top: 5.5px solid transparent; border-bottom: 5.5px solid transparent; }

/* ---------- layout primitives ---------- */
main { position: relative; z-index: 2; display: block; overflow-x: clip; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.section { padding: clamp(64px, 10vw, 140px) 0; }
.plate { background: var(--plate); border: 1px solid var(--line); border-radius: var(--r); backdrop-filter: blur(14px) saturate(115%); -webkit-backdrop-filter: blur(14px) saturate(115%); box-shadow: 0 30px 80px -40px rgba(0, 0, 0, .8); }
.kicker { font: 500 .74rem/1.4 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ion); display: flex; gap: 12px; align-items: center; margin: 0 0 22px; }
.kicker::before { content: ''; width: 26px; height: 1px; background: currentColor; opacity: .7; }
.kicker.plain::before { display: none; }
.h2 { font-size: clamp(2rem, 4.1vw, 3.5rem); font-weight: 700; line-height: 1.02; }
.lede { font-size: clamp(1.12rem, 1.6vw, 1.32rem); color: var(--ink-2); max-width: 40ch; line-height: 1.55; }
.muted { color: var(--ink-2); }
.mono { font-family: var(--mono); }
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: 999px; font: 600 1rem/1 var(--body); text-decoration: none; transition: transform .25s cubic-bezier(.2, .8, .2, 1), background .2s, box-shadow .25s; }
.btn-solid { background: var(--ink); color: var(--void); box-shadow: 0 0 0 0 rgba(156, 203, 255, .0); }
.btn-solid:hover { transform: translateY(-2px); box-shadow: 0 0 40px -6px rgba(156, 203, 255, .7); }
.btn-line { box-shadow: inset 0 0 0 1px var(--line-2); background: rgba(4, 8, 23, .55); color: var(--ink); }
.btn-line:hover { box-shadow: inset 0 0 0 1px var(--ion); background: rgba(156, 203, 255, .08); }
.btn .arr { transition: transform .25s; }
.btn:hover .arr { transform: translateX(3px); }
.tlink { color: var(--ion); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.tlink:hover { color: var(--ink); }

/* ---------- reveals ---------- */
.rv { opacity: 0; transform: translateY(22px); transition: opacity .9s cubic-bezier(.16, 1, .3, 1), transform .9s cubic-bezier(.16, 1, .3, 1); transition-delay: calc(var(--d, 0) * 90ms); }
.rv.in { opacity: 1; transform: none; }
.d1 { --d: 1; } .d2 { --d: 2; } .d3 { --d: 3; } .d4 { --d: 4; }
html.noanim .rv { opacity: 1; transform: none; transition: none; }

/* ---------- home hero ---------- */
.hero { min-height: 100vh; min-height: 100svh; display: grid; align-items: center; padding: 120px 0 64px; position: relative; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 40px; align-items: center; }
.hero-copy { position: relative; }
.hero-copy::before { content: ''; position: absolute; inset: -18% -20% -18% -30%; background: radial-gradient(closest-side, rgba(3, 6, 18, .78), rgba(3, 6, 18, .45) 60%, rgba(3, 6, 18, 0)); z-index: -1; pointer-events: none; }
.hero h1 { font-size: clamp(3.1rem, 8.6vw, 8rem); line-height: .9; letter-spacing: -.035em; text-shadow: 0 2px 30px rgba(4, 8, 23, .8); }
.hero h1 .glint { color: transparent; -webkit-text-stroke: 1.5px var(--ink); text-stroke: 1.5px var(--ink); }
.hero .lede { margin-top: 28px; font-size: clamp(1.12rem, 1.5vw, 1.3rem); color: var(--ink); max-width: 38ch; text-shadow: 0 1px 14px rgba(4, 8, 23, .95); }
.hero-meta { margin-top: 56px; display: flex; flex-wrap: wrap; gap: 10px 28px; font: 400 .72rem/1.5 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.hero-meta b { color: var(--ion); font-weight: 500; margin-right: 8px; }

.portal-link { justify-self: center; display: grid; justify-items: center; gap: 18px; text-decoration: none; padding: 12px; border-radius: 24px; }
.portal-anchor { width: clamp(220px, 24vw, 340px); aspect-ratio: 1; border-radius: 50%; position: relative; display: block; }
.portal-anchor::before, .portal-anchor::after { content: ''; position: absolute; inset: -6%; border-radius: 50%; border: 1px dashed rgba(156, 203, 255, .28); animation: orbit 60s linear infinite; }
.portal-anchor::after { inset: -16%; border-style: solid; border-color: rgba(156, 203, 255, .1); animation-duration: 120s; animation-direction: reverse; }
.portal-anchor i { position: absolute; width: 5px; height: 5px; border-radius: 50%; background: var(--ion); top: -6%; left: 50%; margin: -2px; box-shadow: 0 0 10px var(--ion); transform-origin: 2.5px calc(56% * 1 + 2px); }
@keyframes orbit { to { transform: rotate(360deg); } }
html.no-webgl .portal-anchor { background: radial-gradient(circle, #000 48%, rgba(220, 235, 255, .9) 50%, rgba(156, 203, 255, .2) 54%, transparent 64%); }
.portal-cap { text-align: center; font: 700 1.2rem/1.2 var(--display); display: grid; gap: 6px; }
.portal-cap small { font: 400 .72rem/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.portal-link:hover .portal-cap > span { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.portal-link:focus-visible { outline-offset: 0; }

/* ---------- services ---------- */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 54px; }
.trio .plate { padding: 34px 30px 32px; }
.trio h3 { font-size: 1.7rem; margin: 18px 0 12px; }
.trio p { color: var(--ink-2); margin: 0; }
.num { font: 500 .72rem/1 var(--mono); color: var(--ion); letter-spacing: .14em; }
.sec-head { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 28px 60px; align-items: end; }
.sec-head .lede { margin: 0; }
.sec-head.solo { grid-template-columns: 1fr; }
.sec-plate { padding: clamp(28px, 4vw, 48px); }

/* ---------- work cards ---------- */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 54px; }
.cards.feature .card:first-child { grid-column: 1 / -1; flex-direction: row; }
.cards.feature .card:first-child .shot { flex: 0 0 62%; aspect-ratio: 16 / 10; border-bottom: 0; border-right: 1px solid var(--line); }
.cards.feature .card:first-child .card-body { align-content: center; padding: 34px; }
.cards.feature .card:first-child h3 { font-size: clamp(1.8rem, 2.6vw, 2.4rem); }
.card { position: relative; display: flex; flex-direction: column; background: var(--plate); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transition: border-color .3s, transform .4s cubic-bezier(.2, .8, .2, 1); }
.card:hover { border-color: var(--line-2); transform: translateY(-4px); }
.shot { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #0b1430; border-bottom: 1px solid var(--line); }
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform 1.2s cubic-bezier(.16, 1, .3, 1), filter .6s; filter: saturate(.92); }
.card:hover .shot img { transform: scale(1.035); filter: saturate(1.05); }
.shot::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 60%, rgba(4, 8, 23, .55)); pointer-events: none; }
.card-body { padding: 22px 24px 24px; display: grid; gap: 10px; }
.card h3 { font-size: 1.55rem; letter-spacing: -.015em; }
.card p { color: var(--ink-2); margin: 0; font-size: 1rem; }
.card-hit { text-decoration: none; }
.card-hit::after { content: ''; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.card-hit:focus-visible { outline: none; }
.card:has(.card-hit:focus-visible) { outline: 2px solid var(--ion); outline-offset: 4px; }
.card-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 6px; }
.card-row .ext { position: relative; z-index: 2; font: 500 .74rem/1 var(--mono); letter-spacing: .06em; color: var(--ion); text-decoration: none; padding: 12px 0; min-height: 44px; display: inline-flex; align-items: center; }
.card-row .ext:hover { text-decoration: underline; text-underline-offset: 4px; }
.card-row .go { font: 600 .95rem/1 var(--body); color: var(--ink); display: inline-flex; gap: 8px; align-items: center; }
.chip { display: inline-flex; align-items: center; gap: 7px; font: 500 .72rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; padding: 7px 10px; border-radius: 999px; width: max-content; }
.chip::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip.company { color: var(--void); background: var(--ion); }
.chip.company::before { background: var(--void); }
.chip.guide { color: var(--void); background: var(--lilac); }
.chip.guide::before { background: var(--void); }
.chip.concept { color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.more-row { margin-top: 30px; display: flex; justify-content: flex-end; }

/* ---------- log / about ---------- */
.split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 6vw, 90px); align-items: start; }
.prose p { color: var(--ink-2); font-size: 1.08rem; max-width: 62ch; }
.prose p strong { color: var(--ink); font-weight: 600; }
.prose h3 { font-size: 1.5rem; margin: 1.6em 0 .6em; }
.log { list-style: none; margin: 0; padding: 0; position: relative; }
.log::before { content: ''; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 1px; background: linear-gradient(var(--ion), var(--lilac) 70%, rgba(207, 192, 255, 0)); opacity: .55; }
.log li { position: relative; padding: 0 0 34px 40px; }
.log li::before { content: ''; position: absolute; left: 0; top: 4px; width: 15px; height: 15px; background: var(--ink); clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%); filter: drop-shadow(0 0 6px var(--ion)); }
.log .when { font: 500 .72rem/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ion); }
.log h3 { font-size: 1.3rem; margin: 6px 0 6px; letter-spacing: -.01em; }
.log p { margin: 0; color: var(--ink-2); }
.principles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 48px; }
.principles .plate { padding: 30px; }
.principles h3 { font-size: 1.45rem; margin: 14px 0 10px; }
.principles p { color: var(--ink-2); margin: 0; }

/* ---------- page heads ---------- */
.page-head { padding: clamp(140px, 18vw, 220px) 0 clamp(40px, 6vw, 70px); position: relative; }
.page-head h1 { font-size: clamp(3rem, 9vw, 7.4rem); line-height: .92; letter-spacing: -.035em; text-shadow: 0 2px 30px rgba(4, 8, 23, .8); }
.page-head.cs h1 { font-size: clamp(2.6rem, 6.2vw, 5.4rem); max-width: 16ch; }
.page-head .lede { margin-top: 26px; color: var(--ink); text-shadow: 0 1px 14px rgba(4, 8, 23, .95); }
.page-head .wrap { position: relative; }
.page-head .wrap::before { content: ''; position: absolute; inset: -30% -10% -30% -10%; background: radial-gradient(closest-side at 30% 50%, rgba(3, 6, 18, .7), rgba(3, 6, 18, 0)); z-index: -1; pointer-events: none; }

/* ---------- case study ---------- */
.cs-shot { margin-top: 10px; border-radius: 18px; overflow: hidden; border: 1px solid var(--line-2); box-shadow: 0 50px 120px -50px rgba(111, 176, 255, .45); background: #0b1430; }
.cs-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: rgba(7, 14, 37, .95); border-bottom: 1px solid var(--line); font: 400 .72rem/1 var(--mono); color: var(--ink-2); }
.cs-bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(156, 203, 255, .3); }
.cs-bar span { margin-left: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 36px 0 0; padding: 0; }
.facts div { padding: 22px 24px; border-left: 1px solid var(--line); }
.facts div:first-child { border-left: 0; }
.facts dt { font: 500 .72rem/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ion); margin-bottom: 8px; }
.facts dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.facts a { color: var(--ink); }
.notice { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 14px; }
.notice li { padding: 18px 20px 18px 50px; position: relative; border-radius: 12px; background: rgba(156, 203, 255, .05); border: 1px solid var(--line); color: var(--ink-2); }
.notice li::before { content: ''; position: absolute; left: 20px; top: 24px; width: 12px; height: 12px; background: var(--ion); clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); }
.honest { margin-top: 26px; font-size: .98rem; color: var(--ink-2); padding: 16px 20px; border-left: 2px solid var(--lilac); background: rgba(207, 192, 255, .06); border-radius: 0 10px 10px 0; }
.next { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.next a { display: grid; gap: 10px; padding: 30px; text-decoration: none; min-height: 140px; align-content: center; }
.next a:hover { border-color: var(--ion); }
.next .lab { font: 500 .72rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ion); }
.next b { font: 800 clamp(1.5rem, 3vw, 2.3rem)/1 var(--display); letter-spacing: -.02em; }
.next .r { text-align: right; justify-items: end; }

/* ---------- contact ---------- */
.big-mail { font: 800 clamp(1.5rem, 5.4vw, 4.6rem)/1 var(--display); letter-spacing: -.03em; text-decoration: none; display: inline-block; overflow-wrap: anywhere; background: linear-gradient(90deg, var(--ink), var(--ion) 60%, var(--lilac)); -webkit-background-clip: text; background-clip: text; color: transparent; padding: 6px 0; }
.big-mail:hover { text-decoration: underline; text-decoration-color: var(--ion); text-underline-offset: 10px; text-decoration-thickness: 2px; }
.channels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 44px; }
.channels .plate { padding: 28px; display: grid; gap: 8px; align-content: start; }
.channels .lab { font: 500 .72rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ion); }
.channels a { font: 700 1.25rem/1.25 var(--display); text-decoration: none; overflow-wrap: break-word; min-height: 44px; display: inline-flex; align-items: center; }
.channels a:hover { color: var(--ion); }
.channels p { color: var(--ink-2); margin: 0; font-size: .98rem; }
.checklist { counter-reset: c; list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.checklist li { counter-increment: c; display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: baseline; padding: 16px 0; border-top: 1px solid var(--line); color: var(--ink-2); }
.checklist li::before { content: '0' counter(c); font: 500 .74rem/1 var(--mono); color: var(--ion); letter-spacing: .1em; }
.checklist strong { color: var(--ink); font-weight: 600; display: block; margin-bottom: 2px; }

/* ---------- close + footer ---------- */
.close { text-align: center; padding: clamp(80px, 12vw, 160px) 0; }
.close h2 { font-size: clamp(2.6rem, 7vw, 6rem); letter-spacing: -.035em; }
.close .lede { margin: 22px auto 0; }
.close .btns { justify-content: center; }
.site-foot { position: relative; z-index: 2; border-top: 1px solid var(--line); background: rgba(3, 6, 18, .88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; padding: 54px 0 36px; }
.foot-grid h2 { font-size: 1.4rem; letter-spacing: -.01em; }
.foot-grid p, .foot-grid li { color: var(--ink-2); font-size: .98rem; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.foot-grid ul a { text-decoration: none; display: inline-flex; min-height: 40px; align-items: center; }
.foot-grid ul a:hover { color: var(--ion); }
.foot-lab { font: 500 .72rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ion); margin: 6px 0 14px; }
.fine { border-top: 1px solid var(--line); padding: 20px 0 30px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 30px; font: 400 .72rem/1.6 var(--mono); letter-spacing: .04em; color: var(--ink-3); }

/* ---------- cursor ---------- */
html.has-cursor, html.has-cursor * { cursor: none !important; }
.cursor { position: fixed; inset: 0; pointer-events: none; z-index: 9999; opacity: 0; transition: opacity .2s; }
.cursor.on { opacity: 1; }
.cursor-star { position: absolute; left: -12px; top: -12px; width: 24px; height: 24px; overflow: visible; will-change: transform; }
.cursor-star path { fill: #f4f8ff; transform: scale(.62); transition: transform .3s cubic-bezier(.2, .8, .2, 1), fill .2s; }
.cursor-star circle { fill: #fff; }
.cursor-star { filter: drop-shadow(0 0 3px rgba(156, 203, 255, .95)) drop-shadow(0 0 1px #000); }
.cursor-ring { position: absolute; left: 0; top: 0; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; border: 1px solid rgba(156, 203, 255, .75); box-shadow: 0 0 12px rgba(156, 203, 255, .25), inset 0 0 8px rgba(156, 203, 255, .15); will-change: transform; transition: width .35s cubic-bezier(.2, .8, .2, 1), height .35s cubic-bezier(.2, .8, .2, 1), margin .35s cubic-bezier(.2, .8, .2, 1), border-color .25s; }
.cursor.hover .cursor-ring { width: 46px; height: 46px; margin: -23px 0 0 -23px; border-color: var(--lilac); border-style: dashed; }
.cursor.hover .cursor-star path { transform: scale(.85) rotate(45deg); fill: var(--lilac); }
.cursor.press .cursor-ring { width: 18px; height: 18px; margin: -9px 0 0 -9px; }
html.in-transit .cursor-ring { border-color: rgba(207, 192, 255, .9); }
html.in-transit main { pointer-events: none; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero-grid, .sec-head, .split { grid-template-columns: 1fr; }
  .portal-link { order: 2; }
  .trio { grid-template-columns: 1fr; }
  .cards, .cards.feature { grid-template-columns: 1fr; }
  .cards.feature .card:first-child { flex-direction: column; }
  .cards.feature .card:first-child .shot { flex: none; border-right: 0; border-bottom: 1px solid var(--line); }
  .cards.feature .card:first-child .card-body { padding: 22px 24px 24px; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .facts div:nth-child(3) { border-left: 0; }
  .facts div { border-top: 1px solid var(--line); }
  .channels, .principles { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  body { font-size: 1.02rem; }
  .site-head { padding: 8px 10px 8px 14px; gap: 2px; }
  .brand small { display: none; }
  .brand { font-size: .98rem; gap: 8px; white-space: nowrap; }
  .brand svg { width: 15px; height: 15px; }
  .site-nav { gap: 0; }
  .site-nav a { padding: 10px 8px; font-size: .9rem; }
  .motion-toggle, .sound-toggle { padding: 0; width: 44px; justify-content: center; margin-left: 0; }
  .hero-copy { order: 2; }
  .portal-link { order: 1; padding: 0; gap: 10px; }
  .hero-grid { gap: 18px; }
  .hero { padding-top: 84px; align-items: start; }
  .portal-anchor { width: 150px !important; }
  .portal-cap { font-size: 1rem; }
  .hero h1 { font-size: min(12.2vw, 3.1rem); }
  .page-head h1 { font-size: min(12.6vw, 3.4rem); }
  .motion-toggle .motion-label, .sound-toggle .sound-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .hero-meta { margin-top: 34px; }
  .next { grid-template-columns: 1fr; }
  .next .r { text-align: left; justify-items: start; }
  .facts { grid-template-columns: 1fr; }
  .facts div { border-left: 0; }
}
@media (max-width: 370px) { .site-nav a { padding: 10px 6px; font-size: .86rem; } .brand { font-size: .9rem; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
html.noanim *, html.noanim *::before, html.noanim *::after { animation: none !important; }
html.is-paused .portal-anchor::before, html.is-paused .portal-anchor::after { animation-play-state: paused; }

/* type plates for small labels that sit directly on the sky */
.hero .kicker, .page-head .kicker { display: inline-flex; background: rgba(4, 8, 23, .74); padding: 8px 14px 8px 12px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.portal-cap small { background: rgba(4, 8, 23, .74); padding: 6px 10px; border-radius: 999px; }
.portal-cap > span { text-shadow: 0 0 12px #040817, 0 0 3px #040817; }
.page-head .lede, .hero .lede { background: radial-gradient(closest-side, rgba(3, 6, 18, .55), rgba(3, 6, 18, 0)); }
.page-head .wrap::before { background: radial-gradient(closest-side at 30% 50%, rgba(3, 6, 18, .82), rgba(3, 6, 18, .3) 75%, rgba(3, 6, 18, 0)); }

/* portal caption sits on the brightest part of the sky (lensed band + photon ring): give it a solid type plate */
.portal-cap > span { background: rgba(4, 8, 23, .82); padding: 6px 14px; border-radius: 999px; justify-self: center; }

/* phone header: fit brand, three links and both toggles inside 360-390px */
@media (max-width: 640px) {
  .site-head { padding: 8px 8px 8px 12px; }
  .brand { white-space: nowrap; font-size: .92rem; gap: 6px; }
  .site-nav a { padding: 10px 6px; font-size: .86rem; }
  .motion-toggle, .sound-toggle { width: 40px; min-height: 40px; flex: none; }
}
@media (max-width: 370px) { .brand span { font-size: .84rem; } .site-nav a { padding: 10px 4px; font-size: .82rem; } .motion-toggle, .sound-toggle { width: 38px; } }
/* contact address: break only after the @ */
.big-mail { font-size: clamp(1rem, 4.6vw, 3rem); overflow-wrap: normal; word-break: normal; }

/* inner pages: first section follows the page head closely so the work shows in the first screen */
.page-head + .section { padding-top: 0; }
.legend { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px; padding: 18px 26px; }
.legend .kicker { margin: 0; }
.legend .card-row { margin: 0; display: inline-flex; align-items: center; gap: 10px; }
@media (max-width: 640px) { .legend { display: grid; gap: 10px; padding: 20px; } }
