/* Farhan Ali portfolio.
   Palette: mineral paper, petrol ink, the teal of the CV, and one sodium-amber signal colour.
   Type: Archivo (variable width and weight, used from extra-condensed to wide) + Martian Mono for labels. */
:root {
  --paper: #ECEFEA; --paper-2: #DDE4DE; --ink: #0A1E21; --ink-2: #35494C; --muted: #66797A;
  --petrol: #0F828C; --petrol-2: #0B6A72; --deep: #06262A; --deep-2: #0C363B; --amber: #FFC42E; --amber-ink: #C98F00;
  --line: rgba(10, 30, 33, .16); --line-d: rgba(236, 239, 234, .16);
  --gut: clamp(20px, 4.2vw, 72px);
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "Martian Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.55;
  font-variation-settings: "wdth" 100; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
img, svg, video, canvas { display: block; max-width: 100%; }
a { color: inherit; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, figure { margin: 0; }
::selection { background: var(--amber); color: var(--ink); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 4px; }
.mono { font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; }
.eyebrow { display: flex; align-items: center; gap: 10px; color: var(--muted); margin-bottom: clamp(16px, 2.4vw, 28px); }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.display { font-size: clamp(52px, 10.5vw, 190px); line-height: .84; font-weight: 800; text-transform: uppercase; letter-spacing: -.012em;
  font-variation-settings: "wdth" 62; text-wrap: balance; }
.display .ln { display: block; overflow: hidden; padding-bottom: .06em; }
.display .ln > span { display: block; }

/* ---------------------------------------------------------------- loader */
.loader { display: none; }
html.js .loader { position: fixed; inset: 0; z-index: 100; background: var(--deep); color: var(--paper); display: grid; grid-template-rows: 1fr auto auto;
  padding: var(--gut); transition: transform .9s var(--ease); }
html.js .loader.is-done { transform: translateY(-101%); }
.loader-mark { align-self: center; font-size: clamp(120px, 30vw, 420px); font-weight: 800; line-height: .8; font-variation-settings: "wdth" 62; color: transparent;
  -webkit-text-stroke: 1.5px rgba(236, 239, 234, .35); }
.loader-line { height: 1px; background: var(--line-d); margin-bottom: 14px; }
.loader-line i { display: block; height: 100%; width: 100%; background: var(--amber); transform: scaleX(0); transform-origin: 0 50%; transition: transform .25s linear; }
.loader-count { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: #A9C1C0; }

/* ---------------------------------------------------------------- nav + progress */
.nav { position: fixed; z-index: 50; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 28px; padding: calc(env(safe-area-inset-top, 0px) + 18px) var(--gut) 18px;
  color: var(--paper); transition: transform .45s var(--ease), color .3s linear; }
.nav[data-tone="light"] { color: var(--ink); }
.nav.is-hidden { transform: translateY(-110%); }
.nav-mark { font-weight: 800; font-size: 22px; text-decoration: none; font-variation-settings: "wdth" 62; letter-spacing: .02em; }
.nav-links { margin-left: auto; display: flex; gap: clamp(14px, 2.4vw, 34px); font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; }
.nav-links a { text-decoration: none; position: relative; padding: 6px 0; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: 100% 50%; transition: transform .35s var(--ease); }
.nav-links a:hover::after, .nav-links a:focus-visible::after { transform: scaleX(1); transform-origin: 0 50%; }
.nav-cv { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border: 1px solid currentColor; border-radius: 999px; text-decoration: none;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; }
.nav-cv svg, .btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.progress { position: fixed; z-index: 60; top: 0; left: 0; right: 0; height: 2px; pointer-events: none; }
.progress i { display: block; height: 100%; background: var(--amber); transform: scaleX(0); transform-origin: 0 50%; }
@media (max-width: 640px) { .nav-links a:nth-child(2) { display: none; } .nav { gap: 16px; } }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; min-height: 100svh; background: var(--deep); color: var(--paper); display: grid; overflow: hidden; isolation: isolate; }
#net { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: .9; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(90% 70% at 70% 20%, transparent 40%, rgba(6, 38, 42, .82) 100%); pointer-events: none; }
.hero-grid { align-self: end; padding: 0 var(--gut) clamp(64px, 9vh, 96px); display: grid; gap: clamp(10px, 1.6vw, 22px); }
.hero-tag { display: flex; align-items: center; gap: 12px; color: #C9DAD8; }
.hero-tag .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 0 rgba(255, 196, 46, .6); animation: ping 2.4s ease-out infinite; }
.hero-tag .sep { opacity: .4; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(255, 196, 46, .55); } 80%, 100% { box-shadow: 0 0 0 12px rgba(255, 196, 46, 0); } }
.hero-name { --w: 800; font-size: clamp(64px, 21.4vw, 430px); line-height: .8; font-weight: 800; white-space: nowrap; letter-spacing: -.012em; margin-left: -.035em;
  font-variation-settings: "wdth" 62, "wght" var(--w, 800); overflow: hidden; padding: .04em 0 .03em; will-change: transform; }
.hero-name .ch { display: inline-block; will-change: transform; }
.hero-name .sp { display: inline-block; width: .22em; }
.hero-foot { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr); gap: clamp(20px, 4vw, 64px); align-items: end; padding-top: clamp(12px, 2vw, 26px); border-top: 1px solid var(--line-d); }
.hero-line { font-size: clamp(19px, 2vw, 30px); line-height: 1.2; font-weight: 500; font-variation-settings: "wdth" 88; max-width: 22ch; text-wrap: balance; }
.hero-line em { font-style: normal; color: var(--amber); }
.hero-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2.4vw, 40px); }
.hero-facts b { display: block; font-size: clamp(30px, 3.8vw, 60px); line-height: 1; font-weight: 700; font-variation-settings: "wdth" 62; }
.hero-facts b small { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; font-weight: 400; color: var(--amber); margin-left: 8px; }
.hero-facts span { display: block; margin-top: 8px; font-size: 13.5px; line-height: 1.35; color: #A9C1C0; max-width: 24ch; }
.scroll-cue { position: absolute; right: var(--gut); top: 50%; display: flex; align-items: center; gap: 12px; color: #A9C1C0; text-decoration: none; writing-mode: vertical-rl; }
.scroll-cue i { display: block; width: 1px; height: 64px; background: linear-gradient(var(--amber), transparent); animation: cue 2s var(--ease) infinite; transform-origin: 50% 0; }
@keyframes cue { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
@media (max-width: 860px) { .hero-foot { grid-template-columns: 1fr; } .scroll-cue { display: none; } .hero-facts span { font-size: 12.5px; }
  .hero-facts b small { display: block; margin: 8px 0 0; } }

/* ---------------------------------------------------------------- about */
.about { padding: clamp(90px, 13vw, 200px) var(--gut) clamp(70px, 10vw, 150px); }
.statement-text { font-size: clamp(28px, 4.7vw, 82px); line-height: 1.06; font-weight: 600; letter-spacing: -.012em; font-variation-settings: "wdth" 80; max-width: 22em; }
.statement-text .w { opacity: .14; transition: opacity .2s linear, color .35s linear; }
.statement-text .w.on { opacity: 1; }
.statement-text .w.em.on { color: var(--petrol); }
.about-grid { margin-top: clamp(52px, 7.5vw, 120px); display: grid; grid-template-columns: minmax(170px, 270px) minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(28px, 4.6vw, 84px); align-items: start; }
.about-portrait { position: relative; margin: 0; }
.about-photo { aspect-ratio: 1; background: var(--paper-2); overflow: hidden; border-radius: 4px; }
.about-photo { position: relative; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.06); }
.about-photo::after { content: ""; position: absolute; inset: 0; background: var(--petrol); mix-blend-mode: soft-light; opacity: .55; pointer-events: none; }
.about-portrait > i { position: absolute; width: 13px; height: 13px; border: 1px solid var(--ink-2); }
.about-portrait > .tl { left: -7px; top: -7px; border-right: 0; border-bottom: 0; } .about-portrait > .tr { right: -7px; top: -7px; border-left: 0; border-bottom: 0; }
.about-portrait > .bl { left: -7px; border-right: 0; border-top: 0; } .about-portrait > .br { right: -7px; border-left: 0; border-top: 0; }
.about-portrait > .bl, .about-portrait > .br { top: calc(100% - 34px); }
.about-portrait figcaption { display: flex; justify-content: space-between; gap: 10px; height: 28px; align-items: flex-end; color: var(--muted); font-size: 10px; }
.about-lead { font-size: clamp(23px, 2.35vw, 38px); line-height: 1.14; font-weight: 650; letter-spacing: -.008em; font-variation-settings: "wdth" 84; text-wrap: balance; margin-bottom: .75em; }
.about-bio p:not(.about-lead) { font-size: clamp(16px, 1.22vw, 19px); color: var(--ink-2); max-width: 56ch; }
.about-bio p + p:not(.about-lead) { margin-top: 1em; }
.about-facts { margin: 0; border-top: 1.5px solid var(--ink); }
.about-facts div { display: grid; grid-template-columns: 8.2em minmax(0, 1fr); gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.about-facts dt { font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.about-facts dd { margin: 0; font-size: 15.5px; line-height: 1.4; font-weight: 500; }
.about-block { margin-top: clamp(56px, 8vw, 124px); }
.about-label { display: flex; align-items: center; gap: 14px; color: var(--muted); margin-bottom: clamp(22px, 3vw, 40px); }
.about-label::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.about-path { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(22px, 3.4vw, 56px); padding-top: 30px; }
.about-path::before, .about-path::after { content: ""; position: absolute; left: 0; right: 0; top: 4px; height: 1px; background: var(--line); }
.about-path::after { background: var(--petrol); transform: scaleX(var(--p, 1)); transform-origin: 0 50%; }
.about-path li { position: relative; }
.about-path li::before { content: ""; position: absolute; left: 0; top: -30px; width: 9px; height: 9px; border-radius: 50%; background: var(--paper); border: 2px solid var(--petrol); box-sizing: border-box; z-index: 1; }
.about-path li:last-child::before { background: var(--amber); border-color: var(--amber-ink); }
.about-path b { display: block; font-size: clamp(40px, 5.2vw, 86px); line-height: .9; font-weight: 800; font-variation-settings: "wdth" 62; }
.about-path .field { display: block; margin-top: 12px; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--petrol); }
.about-path .org { display: block; margin-top: 8px; font-size: 17px; font-weight: 600; }
.about-path p { margin-top: 6px; font-size: 15px; color: var(--ink-2); max-width: 36ch; }
.about-builds { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.4vw, 22px); }
.about-builds li { position: relative; padding: clamp(18px, 1.8vw, 28px); min-height: clamp(190px, 17vw, 250px); display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 14px; background: #F4F6F2;
  transition: background .45s var(--ease), color .45s var(--ease), border-color .45s var(--ease), transform .45s var(--ease); }
.about-builds li::after { content: ""; position: absolute; left: clamp(18px, 1.8vw, 28px); top: 0; width: 34px; height: 3px; background: var(--petrol); border-radius: 0 0 3px 3px; transition: width .45s var(--ease), background .45s var(--ease); }
@media (hover: hover) { .about-builds li:hover::after { width: 72px; background: var(--amber); } }
.about-builds .n { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; color: var(--petrol); transition: color .45s var(--ease); }
.about-builds h3 { margin-top: auto; padding-top: 28px; font-size: clamp(21px, 1.9vw, 30px); line-height: 1.05; font-weight: 750; font-variation-settings: "wdth" 76; text-wrap: balance; }
.about-builds p { margin-top: 10px; font-size: 14.5px; line-height: 1.45; color: var(--ink-2); transition: color .45s var(--ease); }
@media (hover: hover) {
  .about-builds li:hover { background: var(--deep); color: var(--paper); border-color: var(--deep); transform: translateY(-4px); }
  .about-builds li:hover .n { color: var(--amber); } .about-builds li:hover p { color: #A9C1C0; }
}
@media (max-width: 1100px) { .about-grid { grid-template-columns: minmax(150px, 220px) minmax(0, 1fr); } .about-facts { grid-column: 1 / -1; } .about-builds { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) {
  .about-grid { grid-template-columns: 1fr; } .about-portrait { width: 168px; } .about-portrait figcaption { white-space: nowrap; } .about-portrait figcaption span:first-child { display: none; }
  .about-path { grid-template-columns: 1fr; padding-top: 0; padding-left: 26px; gap: 30px; }
  .about-path::before, .about-path::after { left: 4px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .about-path::after { transform: scaleY(var(--p, 1)); transform-origin: 50% 0; }
  .about-path li::before { left: -26px; top: 6px; }
  .about-builds { grid-template-columns: 1fr; } .about-builds li { min-height: 0; } .about-builds h3 { padding-top: 22px; }
}

/* ---------------------------------------------------------------- section heads */
.section-head { padding: 0 var(--gut) clamp(36px, 6vw, 84px); }
.section-note { margin-top: clamp(16px, 2vw, 26px); max-width: 52ch; font-size: clamp(14.5px, 1.1vw, 17px); color: var(--ink-2); padding-left: 14px; border-left: 2px solid var(--amber); }

/* ---------------------------------------------------------------- work: stacked panels */
.work { padding-top: clamp(30px, 5vw, 70px); }
.panels { position: relative; }
.panel { position: sticky; top: 0; min-height: 100svh; background: var(--bg); color: var(--fg); border-radius: clamp(18px, 2.4vw, 34px) clamp(18px, 2.4vw, 34px) 0 0; overflow: hidden; }
.panel::after { content: ""; position: absolute; inset: 0; z-index: 4; background: #03181B; opacity: var(--veil, 0); pointer-events: none; }
.panel-inner { min-height: 100svh; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(26px, 4.4vw, 80px); align-items: center;
  padding: clamp(84px, 11vh, 120px) var(--gut) clamp(40px, 6vh, 70px); transform-origin: 50% 0; will-change: transform; }
.panel[data-theme="deep"] { --bg: var(--deep); --fg: var(--paper); --fg2: #A9C1C0; --rule: var(--line-d); --chip: rgba(236, 239, 234, .08); --accent: var(--amber);
  --f-line: #7FD3D6; --f-dim: #5F8A8C; --f-accent: var(--amber); --f-fill: #0C363B; --f-text: #ECEFEA; --f-on-accent: #06262A; --fig-bg: #082E33; }
.panel[data-theme="paper"] { --bg: var(--paper); --fg: var(--ink); --fg2: var(--ink-2); --rule: var(--line); --chip: rgba(10, 30, 33, .06); --accent: var(--petrol);
  --f-line: #0F828C; --f-dim: #8FA3A2; --f-accent: #E0A100; --f-fill: #FFFFFF; --f-text: #0A1E21; --f-on-accent: #0A1E21; --fig-bg: #F6F8F4; }
.panel[data-theme="petrol"] { --bg: var(--petrol); --fg: #F4F7F2; --fg2: #CFE8E6; --rule: rgba(244, 247, 242, .22); --chip: rgba(244, 247, 242, .12); --accent: var(--amber);
  --f-line: #F4F7F2; --f-dim: #9FD0D0; --f-accent: var(--amber); --f-fill: #0B6A72; --f-text: #F4F7F2; --f-on-accent: #06262A; --fig-bg: #0C7780; }
.panel-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--fg2); margin-bottom: clamp(14px, 1.8vw, 24px); }
.panel-meta b { color: var(--accent); font-weight: 500; }
.panel h3 { font-size: clamp(38px, 5.4vw, 96px); line-height: .88; font-weight: 800; text-transform: uppercase; letter-spacing: -.01em; font-variation-settings: "wdth" 66; text-wrap: balance; }
.panel-sum { margin-top: clamp(14px, 1.6vw, 24px); font-size: clamp(16.5px, 1.35vw, 21px); line-height: 1.42; font-weight: 500; max-width: 46ch; }
.panel-points { margin-top: clamp(14px, 1.5vw, 22px); display: grid; gap: 9px; max-width: 58ch; }
.panel-points li { position: relative; padding-left: 20px; font-size: 14.5px; line-height: 1.5; color: var(--fg2); }
.panel-points li::before { content: ""; position: absolute; left: 0; top: .62em; width: 9px; height: 2px; background: var(--accent); }
.metrics { margin-top: clamp(18px, 2vw, 30px); padding-top: clamp(14px, 1.6vw, 22px); border-top: 1px solid var(--rule); display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 14px 22px; }
.metric b { display: block; font-size: clamp(30px, 3.1vw, 50px); line-height: 1; font-weight: 700; font-variation-settings: "wdth" 62; font-variant-numeric: tabular-nums; white-space: nowrap; }
.metric b.is-long { font-size: clamp(24px, 2.2vw, 36px); padding-top: .2em; }
.metric span { display: block; margin-top: 6px; font-family: var(--mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; line-height: 1.45; color: var(--fg2); }
.chips { margin-top: clamp(14px, 1.6vw, 22px); display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-family: var(--mono); font-size: 10.5px; letter-spacing: .04em; padding: 5px 10px; border-radius: 999px; background: var(--chip); color: var(--fg); white-space: nowrap; }
.links { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 10px; }
.links a { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: 999px; background: var(--accent); color: var(--deep); text-decoration: none; font-weight: 600; font-size: 14px; }
.panel[data-theme="paper"] .links a { color: #fff; }

/* the figure: every image, video or diagram sits on a drawing sheet with crop marks */
.figure { position: relative; margin: 0; }
.figure-cap { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 24px; color: var(--fg2); margin-bottom: 10px; }
.figure-cap b { font-weight: 500; color: var(--fg); }
.figure-nav { display: flex; gap: 4px; flex: none; }
.figure-nav button { min-width: 30px; height: 22px; padding: 0 7px; border: 1px solid var(--rule); border-radius: 999px; background: none; color: var(--fg2); font: inherit; font-size: 10px; cursor: pointer;
  transition: background .25s, color .25s, border-color .25s; }
.figure-nav button:hover { border-color: var(--fg2); color: var(--fg); }
.figure-nav button.is-on { background: var(--accent); border-color: var(--accent); color: var(--deep); }
.panel[data-theme="paper"] .figure-nav button.is-on, .row-in .figure-nav button.is-on { color: #fff; }
.figure-frame { position: relative; }
.figure-sheet { position: relative; aspect-ratio: 16 / 10; background: var(--fig-bg); border: 1px solid var(--rule); border-radius: 10px; overflow: hidden; transition: aspect-ratio .4s var(--ease); }
.figure-sheet.has-media { background: #0B1216; }
.figure-sheet > svg { width: 100%; height: 100%; }
.figure-sheet > img, .figure-sheet > video, .figure-sheet > iframe { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; border: 0; display: block; }
/* a video is always shown whole, in the frame and in full screen (a cover fit cut the sides off on 16:10 screens) */
.figure-sheet > video { object-fit: contain; object-position: 50% 50%; background: #05090B; }
video:fullscreen { object-fit: contain !important; width: 100% !important; height: 100% !important; background: #000; }
video:-webkit-full-screen { object-fit: contain !important; width: 100% !important; height: 100% !important; background: #000; }
.figure-sheet > img.zoom { cursor: zoom-in; transition: transform .6s var(--ease); }
.figure-sheet:hover > img.zoom { transform: scale(1.015); }
.figure .crop { position: absolute; width: 14px; height: 14px; border: 1px solid var(--fg2); opacity: .7; pointer-events: none; }
.figure .crop.tl { left: -7px; top: -7px; border-right: 0; border-bottom: 0; } .figure .crop.tr { right: -7px; top: -7px; border-left: 0; border-bottom: 0; }
.figure .crop.bl { left: -7px; bottom: -7px; border-right: 0; border-top: 0; } .figure .crop.br { right: -7px; bottom: -7px; border-left: 0; border-top: 0; }
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(4, 22, 25, .95); display: grid; place-items: center; grid-template-rows: 1fr auto; padding: 3vh 3vw 2vh; cursor: zoom-out; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 94vw; max-height: 88vh; border-radius: 8px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.lightbox span { color: #A9C1C0; padding-top: 12px; }
html.is-locked { overflow: hidden; }
.flow { animation: dash 10s linear infinite; } @keyframes dash { to { stroke-dashoffset: -240; } }
.spin { animation: spin 16s linear infinite; } @keyframes spin { to { transform: rotate(360deg); } }
.blink { animation: blink 1.8s ease-in-out infinite; transform-box: fill-box; transform-origin: center; } @keyframes blink { 50% { transform: scale(1.7); opacity: .2; } }
.beat { animation: beat 2.4s ease-in-out infinite; transform-box: fill-box; transform-origin: 50% 100%; } @keyframes beat { 50% { transform: scaleY(.72); } }
@media (max-width: 960px) {
  .panel-inner { grid-template-columns: 1fr; align-items: start; padding-top: clamp(76px, 12vh, 100px); }
  .figure { order: -1; }
}

/* ---------------------------------------------------------------- more work: the index */
.more { background: var(--paper); padding: clamp(90px, 13vw, 190px) 0 clamp(70px, 10vw, 150px); position: relative; z-index: 1; border-radius: clamp(18px, 2.4vw, 34px) clamp(18px, 2.4vw, 34px) 0 0; margin-top: -1px; }
.rows { border-top: 1px solid var(--line); margin: 0 var(--gut); }
.row { border-bottom: 1px solid var(--line); position: relative; }
.row-head { width: 100%; display: grid; grid-template-columns: 44px minmax(0, 1fr) minmax(0, 17em) 8.5em 28px; gap: 16px; align-items: center; padding: clamp(16px, 1.8vw, 26px) 0;
  background: none; border: 0; color: inherit; font: inherit; text-align: left; cursor: pointer; position: relative; }
.row-head::before { content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%; background: var(--petrol); transform: scaleX(0); transform-origin: 0 50%; transition: transform .5s var(--ease); }
.row-head:hover::before, .row.is-open .row-head::before { transform: scaleX(1); }
.row-n { color: var(--muted); }
.row-t { font-size: clamp(22px, 2.9vw, 46px); line-height: 1.02; font-weight: 700; letter-spacing: -.008em; font-variation-settings: "wdth" 74; transition: transform .45s var(--ease), color .3s, font-variation-settings .45s var(--ease); }
.row-head:hover .row-t, .row.is-open .row-t { transform: translateX(14px); color: var(--petrol); font-variation-settings: "wdth" 96; }
.row-o, .row-y { color: var(--muted); }
.row-x { width: 28px; height: 28px; position: relative; }
.row-x::before, .row-x::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); transition: transform .4s var(--ease); }
.row-x::after { transform: translate(-50%, -50%) rotate(90deg); }
.row.is-open .row-x::after { transform: translate(-50%, -50%) rotate(0deg); }
.row-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s var(--ease); }
.row.is-open .row-body { grid-template-rows: 1fr; }
.row-body > div { overflow: hidden; }
.row-in { display: grid; grid-template-columns: minmax(0, 46ch) minmax(0, 1fr); gap: clamp(20px, 4vw, 60px); padding: 4px 0 clamp(22px, 2.6vw, 36px) 60px; align-items: start; }
.row-in p { color: var(--ink-2); font-size: 16px; }
.row-in .chips { margin-top: 14px; } .row-in .chip { background: rgba(10, 30, 33, .06); color: var(--ink); }
.row-in .links a { background: var(--petrol); color: #fff; }
.row-in .figure { --fg: var(--ink); --fg2: var(--muted); --rule: var(--line); --fig-bg: #F6F8F4; --accent: var(--petrol); --bg: #fff; max-width: 620px; }
@media (max-width: 820px) {
  .row-head { grid-template-columns: 30px minmax(0, 1fr) 28px; } .row-o, .row-y { display: none; }
  .row-in { grid-template-columns: 1fr; padding-left: 46px; }
}

/* ---------------------------------------------------------------- approach */
.approach { background: var(--deep); color: var(--paper); padding: clamp(90px, 13vw, 190px) 0 clamp(80px, 11vw, 160px); }
.approach .eyebrow { color: #A9C1C0; }
.principles { margin: 0 var(--gut); }
.principle { position: relative; display: grid; grid-template-columns: minmax(70px, 12vw) minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(16px, 3vw, 56px); align-items: baseline; padding: clamp(24px, 3.4vw, 52px) 0; }
.principle::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line-d); transform: scaleX(var(--draw, 1)); transform-origin: 0 50%; }
.principle-n { font-size: clamp(54px, 9vw, 160px); line-height: .8; font-weight: 800; font-variation-settings: "wdth" 62; color: transparent; -webkit-text-stroke: 1px rgba(236, 239, 234, .4); }
.principle h3 { font-size: clamp(26px, 3.6vw, 60px); line-height: .98; font-weight: 700; letter-spacing: -.01em; font-variation-settings: "wdth" 72; text-wrap: balance; }
.principle p { color: #A9C1C0; font-size: clamp(15.5px, 1.2vw, 18.5px); max-width: 44ch; }
.principle:hover .principle-n { color: var(--amber); -webkit-text-stroke-color: var(--amber); transition: color .3s, -webkit-text-stroke-color .3s; }
@media (max-width: 820px) { .principle { grid-template-columns: 1fr; gap: 10px; } }

/* ---------------------------------------------------------------- experience: the route */
.path { padding: clamp(90px, 13vw, 190px) 0 clamp(60px, 9vw, 130px); }
.route { position: relative; margin: 0 var(--gut); padding-left: clamp(30px, 5vw, 84px); }
.route-line { position: absolute; left: 5px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.route-line i { position: absolute; inset: 0; background: var(--petrol); transform: scaleY(0); transform-origin: 50% 0; }
.stop { position: relative; display: grid; grid-template-columns: minmax(0, 15em) minmax(0, 1fr); gap: clamp(14px, 3vw, 56px); padding-bottom: clamp(44px, 6vw, 96px); }
.stop:last-child { padding-bottom: 0; }
.stop::before { content: ""; position: absolute; left: calc(-1 * clamp(30px, 5vw, 84px)); top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--paper); border: 2px solid var(--muted);
  transition: background .4s, border-color .4s, box-shadow .4s; }
.stop.is-on::before { background: var(--amber); border-color: var(--ink); box-shadow: 0 0 0 6px rgba(255, 196, 46, .28); }
.stop-when { color: var(--muted); padding-top: 4px; }
.stop-when b { display: block; color: var(--ink); font-weight: 500; margin-bottom: 4px; }
.stop h3 { font-size: clamp(30px, 4.4vw, 74px); line-height: .92; font-weight: 800; text-transform: uppercase; letter-spacing: -.01em; font-variation-settings: "wdth" 64; text-wrap: balance; }
.stop h3 small { display: block; margin-top: 10px; font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; font-weight: 400; color: var(--petrol); font-variation-settings: normal; }
.stop-text { margin-top: 14px; max-width: 56ch; color: var(--ink-2); }
.stop ul { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 6px; }
.stop li { font-size: 13.5px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; }
@media (max-width: 760px) { .stop { grid-template-columns: 1fr; gap: 8px; } }

/* ---------------------------------------------------------------- stack */
.stack { padding: clamp(30px, 5vw, 80px) 0 clamp(80px, 11vw, 160px); overflow: hidden; }
.marquee { overflow: hidden; white-space: nowrap; border-top: 1px solid var(--line); padding: clamp(8px, 1vw, 16px) 0; }
.marquee + .marquee { border-bottom: 1px solid var(--line); }
.marquee-track { display: inline-flex; gap: clamp(22px, 3vw, 54px); padding-right: clamp(22px, 3vw, 54px); animation: slide 46s linear infinite; will-change: transform; }
.marquee.reverse .marquee-track { animation-direction: reverse; animation-duration: 58s; }
.marquee span { font-size: clamp(34px, 6vw, 104px); line-height: 1; font-weight: 800; text-transform: uppercase; font-variation-settings: "wdth" 62; }
.marquee span:nth-child(even) { color: transparent; -webkit-text-stroke: 1px var(--ink); }
.marquee.reverse span:nth-child(odd) { color: var(--petrol); }
@keyframes slide { to { transform: translateX(-50%); } }
.creds { margin: clamp(50px, 7vw, 110px) var(--gut) 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 64px); }
.cred h3 { font-size: clamp(20px, 1.9vw, 28px); line-height: 1.12; font-weight: 700; font-variation-settings: "wdth" 80; }
.cred p, .cred li { color: var(--ink-2); font-size: 15.5px; }
.cred li { padding: 9px 0; border-bottom: 1px solid var(--line); }
.cred .school { margin-top: 8px; } .cred .years { margin-top: 10px; color: var(--muted); }
@media (max-width: 860px) { .creds { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- contact */
.contact { background: var(--deep); color: var(--paper); padding: clamp(80px, 11vw, 170px) var(--gut) clamp(60px, 8vw, 120px); border-radius: clamp(18px, 2.4vw, 34px) clamp(18px, 2.4vw, 34px) 0 0; overflow: hidden; }
.contact .eyebrow { color: #A9C1C0; }
.contact-big { font-size: clamp(60px, 17.6vw, 340px); line-height: .8; font-weight: 800; white-space: nowrap; letter-spacing: -.012em; margin-left: -.03em;
  font-variation-settings: "wdth" var(--cw, 62), "wght" var(--cg, 800); }
.contact-line { margin-top: clamp(18px, 2.4vw, 36px); font-size: clamp(18px, 1.8vw, 26px); max-width: 30ch; color: #CFE0DD; text-wrap: balance; }
.contact-actions { margin-top: clamp(24px, 3vw, 44px); display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; gap: 10px; height: 54px; padding: 0 24px; border-radius: 999px; border: 1px solid rgba(236, 239, 234, .4); background: none; color: var(--paper);
  font: inherit; font-size: 15.5px; font-weight: 600; text-decoration: none; cursor: pointer; transition: background .3s, color .3s, border-color .3s; will-change: transform; }
.btn:hover, .btn:focus-visible { background: var(--paper); color: var(--deep); border-color: var(--paper); }
.btn-solid { background: var(--amber); color: var(--deep); border-color: var(--amber); }
.btn-solid:hover, .btn-solid:focus-visible { background: #fff; border-color: #fff; }
.foot { background: var(--deep); color: #A9C1C0; display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: space-between; padding: 22px var(--gut) calc(env(safe-area-inset-bottom, 0px) + 22px); border-top: 1px solid var(--line-d); }
.foot a { text-decoration: none; }

/* ---------------------------------------------------------------- reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .statement-text .w { opacity: 1; }
  html.js .loader { display: none; }
}

/* toolbox, grouped */
.skills-text .tool-row { display: grid; gap: 4px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.skills-text .tool-row:first-child { padding-top: 0; }
.skills-text .tool-row b { font-weight: 400; font-size: 10.5px; color: var(--petrol); }

/* the human check (js/gate.js) */
.gate { position: fixed; z-index: 300; left: 50%; bottom: 22px; transform: translate(-50%, 20px); display: grid; gap: 10px; justify-items: center; padding: 14px 18px; border-radius: 14px; max-width: calc(100vw - 32px);
  background: rgba(6, 20, 26, .96); border: 1px solid rgba(236, 239, 234, .22); color: #ECEFEA; opacity: 0; pointer-events: none; transition: opacity .3s linear, transform .4s var(--ease); }
.gate.is-on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.gate p { font-size: 10.5px; }
.gate-slot:empty { display: none; }
