/* ──────────────────────────────────────────────────────────
   Computer Angel — home
   Kin to the preview page it leads to — the same ground, type and
   render — but quieter: a brand, a low caption, one gold way in.
────────────────────────────────────────────────────────── */

:root {
  --bg: #050506;
  --ink: #f2f1ee;
  --muted: #a3a3a8;
  --gold: rgba(240, 195, 120, 0.95);
  /* a light, electric baby blue — the glow on the preview page's glass */
  --blue: #b8e4ff;
  /* sizes grow with the screen, so desktop gets real presence */
  --h1: clamp(26px, 3.6vw, 64px);
  --link: clamp(17px, 1.25vw, 22px);
  --brand: clamp(12px, 1.05vw, 20px);
  --icon: clamp(20px, 1.75vw, 32px);
  --pad: clamp(22px, 6vw, 96px);
  /* one vertical line everything hangs from: the centre of the
     headline's "T" (Jost 400 ink, T centre at 0.231em) */
  --axis: calc(var(--h1) * 0.231);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body { height: 100%; overflow: hidden; }
html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  color: var(--ink);
  font-family: 'Jost', 'Century Gothic', sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* the preview page's render, sunk far back and out of focus — the
   same room, glimpsed before you step into it. tall cut on portrait. */
body::before {
  content: ''; position: fixed; inset: -8%; z-index: -1;
  background: url('preview/assets/hero-wide.webp') center 60% / cover no-repeat;
  filter: blur(28px) brightness(0.32) saturate(0.8);
  animation: drift 24s ease-in-out infinite alternate;
}
@media (max-aspect-ratio: 9/10) {
  body::before { background-image: url('preview/assets/hero-tall.webp'); background-position: 30% 60%; }
}
@keyframes drift {
  from { transform: scale(1); }
  to   { transform: scale(1.06) translate(-0.6%, -0.4%); }
}
/* over it, a mother-of-pearl sheen: pale blue, lilac, blush and mint
   washing across the blur and slowly shifting, like the inside of a shell */
body::after {
  content: ''; position: fixed; inset: -20%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(38% 46% at 22% 30%, rgba(110,185,255,.75), transparent 70%),
    radial-gradient(34% 40% at 70% 24%, rgba(175,140,255,.7), transparent 70%),
    radial-gradient(40% 44% at 78% 72%, rgba(255,150,205,.6), transparent 70%),
    radial-gradient(36% 42% at 30% 78%, rgba(120,235,200,.6), transparent 70%),
    radial-gradient(30% 30% at 50% 50%, rgba(255,245,250,.35), transparent 70%);
  mix-blend-mode: screen; opacity: .34;
  filter: blur(30px);
  animation: pearl 38s ease-in-out infinite alternate;
}
@keyframes pearl {
  0%   { transform: translate(0, 0) rotate(0deg) scale(1); filter: blur(30px) hue-rotate(0deg); }
  50%  { transform: translate(3%, -2%) rotate(8deg) scale(1.05); filter: blur(30px) hue-rotate(28deg); }
  100% { transform: translate(-2%, 3%) rotate(-6deg) scale(1.02); filter: blur(30px) hue-rotate(-24deg); }
}

.hero { position: relative; height: 100vh; height: 100svh; }

/* the top bar: brand on the left, social links on the right, both
   centred on one line */
.top {
  position: fixed; top: calc(var(--icon) * 0.9);
  /* mirrored: the brand's first letter and the last icon's outline sit
     the same distance (margin + axis) from their edges. the icons' ink
     starts 3/24 inside their boxes, so the bar reaches out by that much */
  left: var(--pad); right: calc(var(--pad) + var(--axis) - var(--icon) * 0.125);
  height: var(--icon);
  display: flex; align-items: center; justify-content: space-between;
}
/* the brand, small, in its own face — its C starts on the axis
   (Jost 300 C ink begins 0.045em in) */
.brand {
  margin-left: calc(var(--axis) - var(--brand) * 0.045);
  font-family: 'Jost', 'Century Gothic', sans-serif; font-weight: 300;
  font-size: var(--brand); line-height: 1; letter-spacing: .32em; text-transform: uppercase;
  color: #eeede9;
  /* Jost's caps sit low in their line box; lift them onto the centre */
  position: relative; top: var(--cap-lift, 0px);
}

/* the statement sits small, starting just below the middle of the
   screen — a caption to the render behind it, where the preview page
   shouts from the top */
.head {
  position: absolute;
  left: var(--pad); right: 22px;
  top: 54%;
}
h1 {
  font-size: var(--h1);
  font-weight: 400;
  letter-spacing: -.02em;
  line-height: 1.15;
  color: #eeede9;
  opacity: 0;
  animation: rise .6s .1s cubic-bezier(.2,.8,.2,1) forwards;
}
h1 .line1, h1 .line2 { display: block; }
/* the "I" stem sits on the axis — under the middle of the "T"
   (I stem centre is 0.1225em into its box) */
h1 .line2 { color: var(--muted); margin-left: 0.109em; }
/* who "I" is: signed under the headline in the footer's voice, on the axis like it */
.byline {
  margin: calc(var(--link) * 1.5) 0 0 calc(var(--axis) - var(--brand) * .045);
  font-weight: 300; font-size: var(--brand); letter-spacing: .24em; text-transform: uppercase; color: var(--muted);
  opacity: 0; animation: rise .6s .35s cubic-bezier(.2,.8,.2,1) forwards;
}

/* the way in: just the words and an underline, with a slow
   pearly light-blue shimmer running through both, and a small arrow that keeps nudging
   forward. the H's stem sits on the axis (0.1225em into its box). */
.go {
  display: inline-flex; align-items: baseline; gap: 7px;
  margin: calc(var(--link) * 1.3) 0 0 calc(var(--axis) - var(--link) * 0.1225);
  font-size: var(--link); font-weight: 400; letter-spacing: 0;
  text-decoration: none; color: var(--blue);
  opacity: 0;
  animation: rise .8s .8s cubic-bezier(.2,.8,.2,1) forwards;
}
.go-text {
  /* pearl: pale baby blue and soft white, with only a breath of lilac,
     pink and mint passing through — mother-of-pearl, not a rainbow */
  --shine: linear-gradient(100deg, #aee0ff 0%, #dff1ff 16%, #efe6ff 30%, #fdf3fa 42%, #ffffff 50%, #e8fbf5 60%, #d6eeff 74%, #aee0ff 100%);
  padding-bottom: 5px;
  color: transparent;
  /* layer 1 fills the letters, layer 2 is the 1px underline */
  background: var(--shine), var(--shine);
  background-repeat: repeat-x;
  background-size: 360px 100%, 360px 1px;
  background-position: 0 0, 0 100%;
  -webkit-background-clip: text, border-box; background-clip: text, border-box;
  animation: shine 6s linear infinite;
}
@keyframes shine {
  from { background-position: 0 0, 0 100%; }
  to   { background-position: 360px 0, 360px 100%; }
}
.go-arrow {
  /* small, and centred on the lowercase letters: Jost's x-height is
     0.47em, so its middle sits 0.235em above the baseline */
  width: 0.3em; height: 0.44em; flex: none;
  position: relative; bottom: calc(0.235em - 0.22em + 0.045em);
  fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
  animation: nudge 1.6s ease-in-out infinite;
}
@keyframes nudge {
  0%, 100% { transform: translateX(0); opacity: .75; }
  50%      { transform: translateX(3px); opacity: 1; }
}
.go:hover .go-text, .go:focus-visible .go-text { background-size: 360px 100%, 360px 2px; }
.go:focus-visible { outline: 2px solid var(--blue); outline-offset: 6px; border-radius: 2px; }

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

/* social links — top-right, across from the brand */
.social { display: flex; align-items: center; gap: calc(var(--icon) * 0.8); }
.social a {
  color: var(--ink); opacity: 0.7; transition: opacity 0.25s ease, color 0.25s ease;
  display: block; line-height: 0;
}
.social a:hover, .social a:focus-visible { opacity: 1; color: var(--gold); }
.social svg {
  width: var(--icon); height: var(--icon); fill: none; stroke: currentColor;
  stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round;
}


@media (prefers-reduced-motion: reduce) {
  body::before, body::after { animation: none; }
  .menu, .menu-links li, .mn { transition: none; }
  h1, .go, .byline { animation: none; opacity: 1; }
  .go-text, .go-arrow { animation: none; }
  .go-text { background-position: 120px 0, 120px 100%; }
}


/* ── the one menu: a word in the corner, the pages full-screen ───── */
a.brand { text-decoration: none; }
/* text ink ends at its box, so the bar's right edge mirrors the brand */
.top { right: calc(var(--pad) + var(--axis)); z-index: 20; }
/* the menu button: two hairlines that cross into an × when the menu is
   open. the words "Menu" / "Close" stay in it for screen readers */
.menu-btn {
  appearance: none; background: none; border: 0; padding: 0; cursor: pointer;
  width: calc(var(--icon) * 1.1); height: var(--icon);
  color: var(--ink); opacity: .75; transition: opacity .25s ease, color .25s ease;
  position: relative;
}
.menu-btn::before, .menu-btn::after {
  content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1.3px; margin-top: -.65px;
  background: currentColor; border-radius: 1px;
  transition: transform .35s cubic-bezier(.2,.8,.2,1);
}
.menu-btn::before { transform: translateY(-3.5px); }
.menu-btn::after  { transform: translateY(3.5px); }
.menu-open .menu-btn::before { transform: rotate(45deg); }
.menu-open .menu-btn::after  { transform: rotate(-45deg); }
.menu-btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.menu-btn:hover, .menu-btn:focus-visible { opacity: 1; color: var(--blue); }
.menu-btn:focus-visible { outline: 1px solid var(--blue); outline-offset: 6px; }
.menu-close-label, .menu-open .menu-open-label { display: none; }
.menu-open .menu-close-label { display: inline; }
@media (prefers-reduced-motion: reduce) { .menu-btn::before, .menu-btn::after { transition: none; } }

.menu {
  position: fixed; inset: 0; z-index: 10;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--icon) * 5) var(--pad) calc(var(--icon) * 1.6);
  background: rgba(5, 5, 6, .97);
  opacity: 0; transition: opacity .35s ease;
}
@supports (backdrop-filter: blur(1px)) { .menu { background: rgba(5, 5, 6, .86); backdrop-filter: blur(22px); } }
.menu.shown { opacity: 1; }
/* the page list sits in the middle of the screen, between the bar and the icons */
.menu > nav:first-child { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.menu[hidden] { display: none; }
/* the menu as an index: a mono number, the page, a quiet note — on hairlines */
.menu-links {
  list-style: none; counter-reset: menu; margin: 0 0 0 var(--axis);
  margin-right: var(--axis); font-size: clamp(18px, 1.45vw, 24px);   /* full width: notes end under "Close" */
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.menu-links li {
  counter-increment: menu; border-top: 1px solid rgba(255,255,255,.12);
  opacity: 0; transform: translateY(12px); transition: opacity .5s ease, transform .6s cubic-bezier(.2,.8,.2,1);
}
.menu.shown .menu-links li { opacity: 1; transform: none; }
.menu.shown .menu-links li:nth-child(2) { transition-delay: .05s; }
.menu.shown .menu-links li:nth-child(3) { transition-delay: .1s; }
.menu.shown .menu-links li:nth-child(4) { transition-delay: .15s; }
.menu.shown .menu-links li:nth-child(5) { transition-delay: .2s; }
.menu-links a {
  display: grid; grid-template-columns: clamp(36px, 3vw, 54px) minmax(0, 1fr) auto; align-items: baseline; gap: 0 clamp(14px, 1.4vw, 24px);
  padding: .95em 0 .9em;
  color: var(--ink); text-decoration: none;
}
.menu-links a::before {
  content: counter(menu, decimal-leading-zero);
  font-family: 'IBM Plex Mono', ui-monospace, Menlo, monospace; font-size: calc(var(--brand) * .85); letter-spacing: .08em;
  color: var(--muted);
}
.mn {
  font-weight: 400; letter-spacing: -.005em; line-height: 1;
  opacity: .85; transition: opacity .25s ease, color .25s ease, transform .4s cubic-bezier(.2,.8,.2,1);
}
.mnote {
  font-size: calc(var(--link) * .85); color: var(--muted); text-align: right;
  opacity: .7; transition: opacity .25s ease, color .25s ease;
}
.menu-links a:hover .mn, .menu-links a:focus-visible .mn { opacity: 1; color: var(--blue); transform: translateX(.18em); }
.menu-links a:hover .mnote, .menu-links a:focus-visible .mnote { opacity: 1; color: var(--ink); }
.menu-links a:focus-visible { outline: none; }
.menu-links a[aria-current="page"] .mn { opacity: 1; }
.menu-links a[aria-current="page"] .mn::after { content: '.'; color: var(--blue); }
@media (max-width: 640px) {
  .menu-links { margin-left: 0; font-size: 21px; }
  .menu-links a { grid-template-columns: 40px minmax(0, 1fr); }
  .mnote { display: none; }
}
.menu .social { margin-left: calc(var(--axis) - var(--icon) * .125); }
html.menu-open, html.menu-open body { overflow: hidden; }
html.menu-open .top { position: fixed; }

/* ── home: one long page, paced like an exhibition ────────────────── */
html.home, html.home body { height: auto; overflow: auto; }
html.home { scroll-behavior: smooth; }
html.menu-open, html.menu-open body { overflow: hidden; }
/* the bar stays, over a soft fade so words scroll away beneath it */
.veil {
  position: fixed; left: 0; right: 0; top: 0; z-index: 15; pointer-events: none;
  height: calc(var(--icon) * 3.6);
  background: linear-gradient(#050506 45%, rgba(5,5,6,0));
}

.hero { overflow: hidden; }

/* sections: lots of air, everything hung from the axis */
.sec { position: relative; padding: clamp(110px, 22vh, 240px) var(--pad) 0; max-width: calc(1320px + 2 * var(--pad)); }
.sec > * { margin-left: var(--axis); }
.sec .big { margin-left: 0; }
.muted { color: var(--muted); }
.label {
  font-weight: 300; font-size: var(--brand); letter-spacing: .28em; text-transform: uppercase;
  color: var(--muted); margin-bottom: clamp(28px, 4vh, 48px);
}
.lede { font-size: clamp(20px, 2.1vw, 34px); line-height: 1.35; letter-spacing: -.01em; max-width: 26em; color: #eeede9; }


/* a project takes nearly the whole screen */
.case-img { display: block; margin-left: 0 !important; border-radius: 18px; overflow: hidden; }
.case-img img { display: block; width: 100%; height: min(78vh, 56vw); object-fit: cover; object-position: 50% 62%; transition: transform 1.2s cubic-bezier(.22,1,.36,1); }
.case-img:hover img { transform: scale(1.015); }
.case-body { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 96px); margin-top: clamp(32px, 5vh, 56px); }
.status { font-size: calc(var(--brand) * .95); letter-spacing: .24em; text-transform: uppercase; color: var(--blue); margin-bottom: 1em; }
.case-title { font-weight: 400; font-size: clamp(28px, 3.4vw, 58px); line-height: 1.08; letter-spacing: -.02em; }
.case-side { align-self: end; }
.case-text { font-size: var(--link); line-height: 1.55; color: var(--muted); max-width: 26em; margin-bottom: 1.4em; }






.case .go { margin: 0; opacity: 1; animation: none; }

/* the ending: the rule, then its three lanes */
.closing { position: relative; overflow: hidden; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: clamp(120px, 20vh, 220px) var(--pad); }
.closing-head { position: relative; }
.closing-line { font-size: var(--h1); letter-spacing: -.02em; line-height: 1.15; color: #eeede9; }
.closing-line > span { display: block; }
.lanes { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 64px); margin: clamp(48px, 8vh, 96px) 0 0 var(--axis); max-width: 1000px; }
.lanes li { display: grid; gap: .5em; padding-top: 18px; border-top: 1px solid rgba(184,228,255,.35); }
.lanes b { font-weight: 400; font-size: var(--link); color: #eeede9; }
.lanes span { font-size: calc(var(--link) * .9); line-height: 1.5; color: var(--muted); }

/* a quiet last line that mirrors the top bar */
.foot-row {
  display: flex; justify-content: space-between; align-items: center; gap: 18px;
  padding: 0 calc(var(--pad) + var(--axis)) calc(var(--icon) * 1.4) calc(var(--pad) + var(--axis) - var(--brand) * .045);
  font-weight: 300; font-size: var(--brand); letter-spacing: .24em; text-transform: uppercase; color: var(--muted);
}
.foot-row nav { display: flex; flex-wrap: wrap; gap: 10px calc(var(--brand) * 2.4); margin-right: -.24em; }
.foot-row a { color: var(--ink); opacity: .75; text-decoration: none; transition: opacity .25s ease, color .25s ease; }
.foot-row a:hover, .foot-row a:focus-visible { opacity: 1; color: var(--blue); }
.foot-row .social { margin-right: 0; gap: calc(var(--icon) * 0.9); }
/* no name in the footer any more: its links keep to the right */
.foot-row nav { margin-left: auto; }

/* selected systems: each project one box, the whole box is the link */
.systems { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: clamp(16px, 2vw, 28px); margin-left: 0 !important; }
.sys {
  display: flex; flex-direction: column; text-decoration: none; color: var(--ink);
  border: 1px solid rgba(255,255,255,.12); border-radius: 4px; overflow: hidden;
  background: rgba(255,255,255,.02); transition: border-color .3s ease, background .3s ease;
}
.sys:hover, .sys:focus-visible { border-color: rgba(184,228,255,.55); background: rgba(184,228,255,.04); }
.sys:focus-visible { outline: 1px solid var(--blue); outline-offset: 4px; }
.sys-img { display: block; overflow: hidden; border-bottom: 1px solid rgba(255,255,255,.08); }
.sys-img img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: 50% 62%; transition: transform 1.2s cubic-bezier(.22,1,.36,1); }
.sys:hover .sys-img img { transform: scale(1.02); }
.sys-body { display: flex; flex-direction: column; gap: 12px; flex: 1; padding: clamp(20px, 2.2vw, 32px); }
.sys .status { margin-bottom: 0; }
.sys-title { font-size: clamp(22px, 2vw, 34px); line-height: 1.12; letter-spacing: -.015em; }
.sys-text { font-size: calc(var(--link) * .9); line-height: 1.55; color: var(--muted); max-width: 30em; }
.sys-go { margin-top: auto; padding-top: 8px; display: inline-flex; align-items: baseline; gap: 7px; font-size: calc(var(--link) * .9); color: var(--blue); }
.sys:hover .sys-go { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }

/* what I've built: a centred title, then each project as one wide panel —
   the image on one side, the story on the other, a row of three facts under
   it. the panels swap sides as they go down, so the page reads like a spread */
.work-head { margin: 0 0 clamp(56px, 10vh, 120px) !important; display: grid; justify-items: center; gap: clamp(14px, 2vh, 22px); text-align: center; }
.work-index {
  display: flex; align-items: center; gap: 1.1em;
  font-family: 'IBM Plex Mono', ui-monospace, Menlo, monospace; font-size: calc(var(--brand) * .85); letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.work-index span + span::before { content: ''; display: inline-block; width: 5px; height: 5px; margin-right: 1.1em; vertical-align: middle; background: var(--blue); }
.work-head h2 { font-weight: 400; font-size: clamp(40px, 5.4vw, 92px); line-height: 1; letter-spacing: -.035em; color: #eeede9; }

.features { display: grid; gap: clamp(48px, 9vh, 112px); margin-left: 0 !important; }
.feature {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: stretch;
  gap: clamp(20px, 3vw, 56px); padding: clamp(12px, 1.2vw, 18px);
  color: var(--ink); text-decoration: none;
  border: 1px solid rgba(255,255,255,.1); border-radius: 4px;
  /* a dark plate with a faint light falling on its top edge */
  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.01) 40%), rgba(8,8,10,.62);
  box-shadow: 0 40px 80px -40px rgba(0,0,0,.8);
  transition: border-color .4s ease;
}
.feature:hover, .feature:focus-visible { border-color: rgba(184,228,255,.4); }
.feature:focus-visible { outline: 1px solid var(--blue); outline-offset: 6px; }
.feature:nth-child(even) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
.feature:nth-child(even) .feature-img { order: 2; }

.feature-img { display: block; overflow: hidden; border-radius: 3px; background: rgba(128,128,128,.12); }
.feature-img img { display: block; width: 100%; height: 100%; min-height: clamp(280px, 34vw, 560px); object-fit: cover; object-position: 50% 60%; transition: transform 1.4s cubic-bezier(.22,1,.36,1); }
.feature:hover .feature-img img { transform: scale(1.025); }

.feature-body { display: flex; flex-direction: column; gap: 16px; padding: clamp(16px, 3vw, 52px) clamp(8px, 2vw, 36px); }
.feature .status { margin-bottom: 0; }
.feature-title { font-size: clamp(28px, 2.9vw, 50px); line-height: 1.06; letter-spacing: -.025em; color: #eeede9; }
.feature-text { font-size: var(--link); line-height: 1.55; color: var(--muted); max-width: 26em; }
.feature .sys-go { padding-top: 4px; }
.feature:hover .sys-go { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }

/* the facts: three figures under a hairline, pushed to the panel's foot */
.facts { margin-top: auto; padding-top: clamp(22px, 3vh, 32px); border-top: 1px solid rgba(255,255,255,.12); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.facts > span { display: grid; gap: 6px; min-width: 0; }
.facts b { font-weight: 300; font-size: clamp(20px, 1.8vw, 30px); line-height: 1.1; letter-spacing: -.015em; color: #eeede9; overflow-wrap: anywhere; }
.facts i { font-style: normal; font-size: calc(var(--brand) * .8); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }

@media (max-width: 860px) {
  .feature, .feature:nth-child(even) { grid-template-columns: 1fr; }
  .feature:nth-child(even) .feature-img { order: 0; }
  .feature-img img { min-height: 0; aspect-ratio: 4 / 3; }
  .feature-body { padding: 8px 6px 14px; }
  .facts { margin-top: 12px; }
}

/* things rise into place as they scroll in */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .6s cubic-bezier(.2,.8,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }

@media (max-width: 760px) {
  .case-body, .lanes { grid-template-columns: 1fr; }
  .foot-row { flex-direction: column; align-items: flex-start; }
  .foot-row nav { margin-left: 0; }
  .veil { height: calc(var(--icon) * 4.8); background: linear-gradient(#050506 55%, rgba(5,5,6,0)); }
  .case-img img { height: auto; aspect-ratio: 4 / 5; object-position: 50% 55%; }
}
@media (prefers-reduced-motion: reduce) {
  html.home { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}


/* ── about ─────────────────────────────────────────────────────────── */
.about { display: grid; gap: calc(var(--h1) * 1.4); align-items: start; padding: calc(var(--icon) * 6.5) var(--pad) calc(var(--icon) * 5); max-width: calc(1100px + 2 * var(--pad)); }
.about h1 .line2 { margin-left: 0; }
.about > div > *:not(h1) { margin-left: var(--axis); }
/* two columns only once a photo is in about/photo.jpg */
@media (min-width: 900px) { .about:has(.portrait) { grid-template-columns: minmax(220px, 340px) 1fr; } }
.portrait { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 3px; }
.prose { display: grid; gap: 1em; margin-top: calc(var(--h1) * 1.2); font-size: calc(var(--link) * 1.05); line-height: 1.6; max-width: 34em; }
.prose .muted { color: var(--muted); }
/* the one line that sums it up, set a step larger */
.prose .pull { margin: .6em 0; font-size: 1.35em; line-height: 1.3; letter-spacing: -.01em; color: #eeede9; }
.links { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 2.4em; font-size: var(--link); }
.links a { color: var(--blue); text-decoration: none; border-bottom: 1px solid rgba(184,228,255,.35); padding-bottom: 3px; }
.links a:hover { border-color: var(--blue); }
.about-social { margin-top: 2.4em; }

/* ── home: scroll cue and progress ─────────────────────────────────── */
/* "Scroll" and a thin line drawing itself downward, at the foot of the hero */
.scroll-cue {
  position: absolute; left: 50%; bottom: calc(var(--icon) * 1.2); transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-family: 'IBM Plex Mono', ui-monospace, Menlo, monospace; font-size: calc(var(--brand) * .8); letter-spacing: .2em; text-transform: uppercase;
  color: var(--muted); text-decoration: none;
  transition: opacity .5s ease;
}
.scroll-cue i { position: relative; width: 1px; height: clamp(28px, 5vh, 48px); background: rgba(255,255,255,.14); overflow: hidden; }
.scroll-cue i::after { content: ''; position: absolute; left: 0; top: 0; width: 1px; height: 40%; background: var(--blue); animation: cue 2.2s cubic-bezier(.6,0,.3,1) infinite; }
.scroll-cue:hover { color: var(--ink); }
@keyframes cue { from { transform: translateY(-100%); } to { transform: translateY(250%); } }
@keyframes appear { to { opacity: 1; } }

/* a hairline on the right edge that fills as you go down the page */
.scroll-rail { position: fixed; right: 10px; top: 50%; height: 26vh; width: 1px; transform: translateY(-50%); background: rgba(255,255,255,.12); z-index: 16; pointer-events: none; }
.scroll-rail i { position: absolute; inset: 0; background: var(--blue); transform: scaleY(0); transform-origin: top; }
html.menu-open .scroll-rail { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  .scroll-cue { animation: none; opacity: 1; }
  .scroll-cue i::after { animation: none; height: 100%; }
}
