/* 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. */
/* Desktop is drawn at 62%: everything measured in pixels shrinks, everything measured against the screen keeps its size. */
:root { --k: 1; }
@media (min-width: 1000px) { :root { zoom: .62; --k: 1.6129; } }
: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, calc(4.2vw * var(--k)), 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, calc(2.4vw * var(--k)), 28px); }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.display { font-size: clamp(52px, calc(10.5vw * var(--k)), 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, calc(30vw * var(--k)), 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: 30px; height: calc(env(safe-area-inset-top, 0px) + 72px); padding: env(safe-area-inset-top, 0px) var(--gut) 0;
  color: var(--paper); transition: color .3s linear; }
.nav[data-tone="light"] { color: var(--ink); }
.nav::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(5, 24, 27, .9); border-bottom: 1px solid rgba(236, 239, 234, .1); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  opacity: 0; transition: opacity .3s linear, background .3s linear; }
.nav[data-tone="light"]::before { background: rgba(236, 239, 234, .92); border-bottom-color: rgba(10, 30, 33, .1); }
.nav.is-solid::before { opacity: 1; }
.nav.is-hidden { transform: translateY(-110%); }
.nav-mark { font-weight: 800; font-size: 26px; line-height: 1; text-decoration: none; font-variation-settings: "wdth" 62; letter-spacing: .02em; }
.nav-links { margin-left: auto; display: flex; gap: clamp(14px, calc(2.4vw * var(--k)), 34px); font-family: var(--mono); font-size: 13px; line-height: 1; letter-spacing: .08em; text-transform: uppercase; align-items: center; }
.nav-links a { text-decoration: none; position: relative; padding: 8px 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: 42px; padding: 0 18px; line-height: 1; border: 1px solid currentColor; border-radius: 999px; text-decoration: none;
  font-family: var(--mono); font-size: 13px; 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: calc(100svh * var(--k)); 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, calc(9vh * var(--k)), 96px); display: grid; gap: clamp(10px, calc(1.6vw * var(--k)), 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, calc(21.4vw * var(--k)), 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, calc(4vw * var(--k)), 64px); align-items: end; padding-top: clamp(12px, calc(2vw * var(--k)), 26px); border-top: 1px solid var(--line-d); }
.hero-line { font-size: clamp(19px, calc(2vw * var(--k)), 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, calc(2.4vw * var(--k)), 40px); }
.hero-facts b { display: block; font-size: clamp(30px, calc(3.8vw * var(--k)), 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 { position: relative; isolation: isolate; overflow: hidden; background: #051C1F; color: #ECEFEA; padding: clamp(84px, calc(11vw * var(--k)), 170px) var(--gut) clamp(76px, calc(10vw * var(--k)), 150px);
  --a-fg2: #A9C1C0; --a-rule: rgba(236, 239, 234, .14); --a-teal: #7FD6DD; }
.about-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; background:
  radial-gradient(46% 40% at 16% 22%, rgba(15, 130, 140, .34), transparent 70%), radial-gradient(40% 36% at 88% 70%, rgba(255, 196, 46, .07), transparent 70%),
  radial-gradient(rgba(236, 239, 234, .11) 1px, transparent 1.4px); background-size: auto, auto, 34px 34px; }
.about .eyebrow { color: var(--a-fg2); }
.about-grid { display: grid; grid-template-columns: minmax(0, 43fr) minmax(0, 57fr); gap: clamp(30px, calc(5vw * var(--k)), 90px); align-items: center; }
.pcard-wrap { perspective: 1400px; }
.pcard { --px: 50%; --py: 0%; --rx: 0deg; --ry: 0deg; position: relative; overflow: hidden; border-radius: 26px; padding: 40px 30px 30px;
  text-align: center; background: linear-gradient(160deg, rgba(18, 62, 68, .78), rgba(8, 34, 38, .82) 55%, rgba(6, 26, 29, .9)); border: 1px solid rgba(236, 239, 234, .13);
  box-shadow: 0 40px 90px rgba(0, 0, 0, .38), inset 0 1px 0 rgba(255, 255, 255, .06); transform: rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .5s var(--ease); }
.pcard::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, #0F828C, #7FD6DD 50%, #FFC42E); }
.pcard::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s linear; background: radial-gradient(420px circle at var(--px) var(--py), rgba(127, 214, 221, .16), transparent 62%); }
.pcard.is-lit::after { opacity: 1; }
.pcard > * { position: relative; z-index: 1; }
.pcard-ring { position: absolute !important; z-index: 0 !important; border-radius: 50%; border: 1px solid rgba(127, 214, 221, .16); pointer-events: none; }
.pcard-ring.r1 { width: 150px; height: 150px; right: -46px; top: -52px; } .pcard-ring.r2 { width: 92px; height: 92px; left: -30px; bottom: -28px; }
.pcard-photo { position: relative; width: clamp(120px, calc(11.5vw * var(--k)), 176px); aspect-ratio: 1; margin: 0 auto clamp(16px, calc(1.8vw * var(--k)), 26px); }
.pcard-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 24%; border: 1px solid rgba(236, 239, 234, .2); box-shadow: 0 0 0 6px rgba(127, 214, 221, .08), 0 20px 40px rgba(0, 0, 0, .4); }
.pcard-dot { position: absolute; right: -4px; bottom: 4px; width: 22px; height: 22px; border-radius: 50%; background: #2FD08A; border: 4px solid #0A2A2E; box-shadow: 0 0 0 0 rgba(47, 208, 138, .5); animation: pc-ping 2.6s ease-out infinite; }
@keyframes pc-ping { 0% { box-shadow: 0 0 0 0 rgba(47, 208, 138, .5); } 80%, 100% { box-shadow: 0 0 0 12px rgba(47, 208, 138, 0); } }
.pcard-name { font-size: clamp(26px, calc(2.5vw * var(--k)), 40px); line-height: 1.05; font-weight: 750; font-variation-settings: "wdth" 96; }
.pcard-role { margin-top: 8px; font-size: clamp(14.5px, calc(1.15vw * var(--k)), 18px); color: var(--a-fg2); }
.pcard-role span::before { content: "·"; margin: 0 .5em; }
.pcard-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 24px; }
.pcard-stats li { padding: 18px 6px 16px; border-radius: 16px; background: rgba(236, 239, 234, .045); border: 1px solid rgba(236, 239, 234, .1); transition: border-color .3s linear, background .3s linear; }
.pcard-stats li:hover { border-color: rgba(127, 214, 221, .5); background: rgba(127, 214, 221, .08); }
.pcard-stats b { display: block; font-size: clamp(26px, calc(2.5vw * var(--k)), 40px); line-height: 1; font-weight: 750; color: var(--a-teal); font-variation-settings: "wdth" 80; font-variant-numeric: tabular-nums; }
.pcard-stats span { display: block; margin-top: 8px; font-size: clamp(12px, calc(.95vw * var(--k)), 14.5px); color: var(--a-fg2); }
.pcard-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 22px; padding-top: 22px; border-top: 1px solid rgba(236, 239, 234, .1); font-size: 10.5px; }
.pcard-tags li { --t: 127, 214, 221; display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 13px; border-radius: 9px; white-space: nowrap; color: rgb(var(--t)); background: rgba(var(--t), .09); border: 1px solid rgba(var(--t), .32); }
.pcard-tags li i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pcard-tags .t1 { --t: 255, 196, 46; } .pcard-tags .t2 { --t: 86, 214, 150; } .pcard-tags .t3 { --t: 150, 176, 255; } .pcard-tags .t4 { --t: 233, 238, 236; }
.about-bio p { font-size: clamp(17px, calc(1.62vw * var(--k)), 25px); line-height: 1.62; color: var(--a-fg2); max-width: 60ch; }
.about-bio p + p { margin-top: 1.25em; }
.about-bio b { font-weight: 650; color: #F4F7F2; } .about-bio em { font-style: normal; color: var(--a-teal); font-weight: 550; }
.about-links { display: flex; flex-wrap: wrap; gap: 10px; padding-top: clamp(18px, calc(2vw * var(--k)), 30px); border-top: 1px solid var(--a-rule); }
.about-link { display: inline-flex; align-items: center; height: 46px; padding: 0 20px; border-radius: 999px; text-decoration: none; background: #ECEFEA; color: #051C1F; border: 1px solid #ECEFEA;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease); }
.about-link.ghost { background: none; color: #ECEFEA; border-color: rgba(236, 239, 234, .36); }
.about-link:hover, .about-link:focus-visible { background: var(--a-teal); border-color: var(--a-teal); color: #051C1F; }
.statement-text { margin-top: clamp(64px, calc(9vw * var(--k)), 150px); font-size: clamp(26px, calc(3.9vw * var(--k)), 68px); line-height: 1.08; font-weight: 600; letter-spacing: -.012em; font-variation-settings: "wdth" 80; max-width: 24em; }
.statement-text .w { opacity: .16; transition: opacity .2s linear, color .35s linear; }
.statement-text .w.on { opacity: 1; }
.statement-text .w.em.on { color: var(--a-teal); }
.about-block { margin-top: clamp(56px, calc(8vw * var(--k)), 124px); }
.about-label { display: flex; align-items: center; gap: 14px; color: var(--a-fg2); margin-bottom: clamp(22px, calc(3vw * var(--k)), 40px); }
.about-label::after { content: ""; flex: 1; height: 1px; background: var(--a-rule); }
.about-path { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(22px, calc(3.4vw * var(--k)), 56px); padding-top: 30px; }
.about-path::before, .about-path::after { content: ""; position: absolute; left: 0; right: 0; top: 4px; height: 1px; background: var(--a-rule); }
.about-path::after { background: var(--a-teal); 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: #051C1F; border: 2px solid var(--a-teal); box-sizing: border-box; z-index: 1; }
.about-path li:last-child::before { background: var(--amber); border-color: var(--amber); }
.about-path b { display: block; font-size: clamp(40px, calc(5.2vw * var(--k)), 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(--a-teal); }
.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(--a-fg2); max-width: 36ch; }
.about-builds { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, calc(1.4vw * var(--k)), 22px); }
.about-builds li { position: relative; padding: clamp(18px, calc(1.8vw * var(--k)), 28px); min-height: clamp(180px, calc(16vw * var(--k)), 236px); display: flex; flex-direction: column; border: 1px solid rgba(236, 239, 234, .12); border-radius: 16px;
  background: rgba(236, 239, 234, .04); transition: background .45s var(--ease), border-color .45s var(--ease), transform .45s var(--ease); }
.about-builds li::after { content: ""; position: absolute; left: clamp(18px, calc(1.8vw * var(--k)), 28px); top: 0; width: 34px; height: 3px; background: var(--a-teal); border-radius: 0 0 3px 3px; transition: width .45s var(--ease), background .45s var(--ease); }
.about-builds .n { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; color: var(--a-teal); }
.about-builds h3 { margin-top: auto; padding-top: 28px; font-size: clamp(21px, calc(1.9vw * var(--k)), 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(--a-fg2); }
@media (hover: hover) {
  .about-builds li:hover { background: rgba(127, 214, 221, .09); border-color: rgba(127, 214, 221, .45); transform: translateY(-4px); }
  .about-builds li:hover::after { width: 72px; background: var(--amber); }
}
@media (max-width: 1000px) { .about-grid { grid-template-columns: 1fr; } .pcard { max-width: 620px; margin: 0 auto; } .about-builds { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) {
  .pcard { padding: 30px 18px 22px; } .pcard-tags li { height: 28px; padding: 0 9px; gap: 6px; } .pcard-tags { gap: 6px; }
  .about { padding-top: 76px; }
  .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, calc(6vw * var(--k)), 84px); }
.section-note { margin-top: clamp(18px, calc(2vw * var(--k)), 28px); display: inline-flex; align-items: center; gap: 14px; max-width: 64ch; padding: 14px 20px 14px 16px; border-radius: 14px;
  background: rgba(31, 157, 104, .14); border: 1px solid rgba(24, 128, 84, .5); color: var(--ink); font-size: clamp(15px, calc(1.2vw * var(--k)), 19px); line-height: 1.4; }
.section-note b { font-weight: 700; } .section-note svg { flex: none; width: 26px; height: 26px; fill: none; stroke: #157A50; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------------------------------------------------------------- work: stacked panels */
.work { padding-top: clamp(30px, calc(5vw * var(--k)), 70px); }
.panels { position: relative; }
.panel { position: sticky; top: 0; min-height: calc(100svh * var(--k)); background: var(--bg); color: var(--fg); border-radius: clamp(18px, calc(2.4vw * var(--k)), 34px) clamp(18px, calc(2.4vw * var(--k)), 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: calc(100svh * var(--k)); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(26px, calc(4.4vw * var(--k)), 80px); align-items: center;
  padding: clamp(84px, calc(11vh * var(--k)), 120px) var(--gut) clamp(40px, calc(6vh * var(--k)), 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, calc(1.8vw * var(--k)), 24px); }
.panel-meta b { color: var(--accent); font-weight: 500; }
.panel h3 { font-size: clamp(38px, calc(5.4vw * var(--k)), 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, calc(1.6vw * var(--k)), 24px); font-size: clamp(16.5px, calc(1.35vw * var(--k)), 21px); line-height: 1.42; font-weight: 500; max-width: 46ch; }
.panel-points { margin-top: clamp(14px, calc(1.5vw * var(--k)), 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, calc(2vw * var(--k)), 30px); padding-top: clamp(14px, calc(1.6vw * var(--k)), 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, calc(3.1vw * var(--k)), 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, calc(2.2vw * var(--k)), 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, calc(1.6vw * var(--k)), 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: calc(3vh * var(--k)) calc(3vw * var(--k)) calc(2vh * var(--k)); cursor: zoom-out; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: calc(94vw * var(--k)); max-height: calc(88vh * var(--k)); 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); } }
/* phones and tablets: name, one line of context, the screen with its picker underneath, then the story */
@media (max-width: 960px) {
  .panel-inner { grid-template-columns: minmax(0, 1fr); align-items: start; align-content: start; padding-top: 84px; padding-bottom: 46px; gap: 0; }
  .panel-copy { display: contents; }
  .panel h3 { order: 1; font-size: clamp(38px, 11.5vw, 68px); }
  .panel-meta { order: 2; margin: 12px 0 0; gap: 6px 12px; font-size: 11px; color: var(--accent); }
  .panel-meta b, .panel-meta span:last-child { display: none; }
  .panel .figure { order: 3; margin: 20px 0 0; display: flex; flex-direction: column; }
  .panel .figure-frame { order: 1; }
  .panel .figure-cap { order: 2; margin: 14px 0 0; min-height: 0; justify-content: center; }
  .panel .figure-cap > span:first-child { display: none; }
  .panel .figure-nav { flex-wrap: wrap; justify-content: center; gap: 6px; }
  .panel .figure-nav button { min-width: 38px; height: 30px; font-size: 11px; }
  .panel .figure .crop { display: none; }
  .panel-sum { order: 4; margin-top: 24px; font-size: 18px; line-height: 1.4; }
  .panel-points { order: 5; margin-top: 16px; gap: 10px; } .panel-points li { font-size: 15.5px; line-height: 1.5; }
  .panel .metrics { order: 6; margin-top: 22px; padding-top: 0; border-top: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .panel .metric { padding: 14px 14px 12px; border: 1px solid var(--rule); border-radius: 14px; }
  .panel .metric:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .panel .metric b { font-size: 34px; } .panel .metric b.is-long { font-size: 26px; padding-top: 0; }
  .panel .chips { order: 7; margin-top: 18px; } .panel .links { order: 8; }
}

/* ---------------------------------------------------------------- more work: the index */
.more { background: var(--paper); padding: clamp(90px, calc(13vw * var(--k)), 190px) 0 clamp(70px, calc(10vw * var(--k)), 150px); position: relative; z-index: 1; border-radius: clamp(18px, calc(2.4vw * var(--k)), 34px) clamp(18px, calc(2.4vw * var(--k)), 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, calc(1.8vw * var(--k)), 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, calc(2.9vw * var(--k)), 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, calc(4vw * var(--k)), 60px); padding: 4px 0 clamp(22px, calc(2.6vw * var(--k)), 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, calc(13vw * var(--k)), 190px) 0 clamp(80px, calc(11vw * var(--k)), 160px); }
.approach .eyebrow { color: #A9C1C0; }
.principles { margin: 0 var(--gut); }
.principle { position: relative; display: grid; grid-template-columns: minmax(70px, calc(12vw * var(--k))) minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(16px, calc(3vw * var(--k)), 56px); align-items: baseline; padding: clamp(24px, calc(3.4vw * var(--k)), 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, calc(9vw * var(--k)), 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, calc(3.6vw * var(--k)), 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, calc(1.2vw * var(--k)), 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, calc(13vw * var(--k)), 190px) 0 clamp(60px, calc(9vw * var(--k)), 130px); }
.route { position: relative; margin: 0 var(--gut); padding-left: clamp(30px, calc(5vw * var(--k)), 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, calc(3vw * var(--k)), 56px); padding-bottom: clamp(44px, calc(6vw * var(--k)), 96px); }
.stop:last-child { padding-bottom: 0; }
.stop::before { content: ""; position: absolute; left: calc(-1 * clamp(30px, calc(5vw * var(--k)), 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, calc(4.4vw * var(--k)), 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; line-height: 1.5; 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, calc(5vw * var(--k)), 80px) 0 clamp(80px, calc(11vw * var(--k)), 160px); overflow: hidden; }
.marquee { overflow: hidden; white-space: nowrap; border-top: 1px solid var(--line); padding: clamp(8px, calc(1vw * var(--k)), 16px) 0; }
.marquee + .marquee { border-bottom: 1px solid var(--line); }
.marquee-track { display: inline-flex; gap: clamp(22px, calc(3vw * var(--k)), 54px); padding-right: clamp(22px, calc(3vw * var(--k)), 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, calc(6vw * var(--k)), 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, calc(7vw * var(--k)), 110px) var(--gut) 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, calc(4vw * var(--k)), 64px); }
.cred h3 { font-size: clamp(20px, calc(1.9vw * var(--k)), 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, calc(11vw * var(--k)), 170px) var(--gut) clamp(60px, calc(8vw * var(--k)), 120px); border-radius: clamp(18px, calc(2.4vw * var(--k)), 34px) clamp(18px, calc(2.4vw * var(--k)), 34px) 0 0; overflow: hidden; }
.contact .eyebrow { color: #A9C1C0; }
.contact-big { font-size: clamp(60px, calc(17.6vw * var(--k)), 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, calc(2.4vw * var(--k)), 36px); font-size: clamp(18px, calc(1.8vw * var(--k)), 26px); max-width: 30ch; color: #CFE0DD; text-wrap: balance; }
.contact-actions { margin-top: clamp(24px, calc(3vw * var(--k)), 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(calc(100vw * var(--k)) - 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; }

/* back to the top: always at hand, bottom right */
.to-top { position: fixed; z-index: 90; right: clamp(14px, calc(1.6vw * var(--k)), 26px); bottom: clamp(14px, calc(1.6vw * var(--k)), 26px); width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(5, 24, 27, .88); color: #ECEFEA; border: 1px solid rgba(236, 239, 234, .28); box-shadow: 0 10px 26px rgba(0, 0, 0, .28);
  opacity: 0; visibility: hidden; transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease), opacity .3s linear, visibility .3s; }
.to-top.is-on { opacity: 1; visibility: visible; }
.to-top svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.to-top:hover, .to-top:focus-visible { background: var(--amber); color: var(--ink); border-color: var(--amber); transform: translateY(-3px); }
@media (max-width: 860px) { .to-top { width: 42px; height: 42px; } }

/* ---------------------------------------------------------------- larger screens: experience on one screen, work panels drawn larger */
@media (min-width: 1000px) {
  .path { padding: clamp(84px, calc(10vh * var(--k)), 130px) 0 clamp(50px, calc(7vh * var(--k)), 90px); }
  .path .section-head { padding-bottom: clamp(26px, calc(4vh * var(--k)), 50px); }
  .path .display { font-size: clamp(44px, calc(5.6vw * var(--k)), 104px); white-space: nowrap; }
  .route { padding-left: 0; }
  .route-line { left: 0; right: 0; top: 5px; bottom: auto; width: auto; height: 2px; background: var(--petrol); opacity: .5; }
  .route-line i { display: none; }
  .stops { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(26px, calc(3.4vw * var(--k)), 64px); }
  .stop { display: block; padding: 34px 0 0; }
  .stop::before { left: 0; top: 0; }
  .stop-when { padding-top: 0; margin-bottom: 14px; } .stop-when b { display: inline; margin: 0 12px 0 0; }
  .stop h3 { font-size: clamp(28px, calc(2.7vw * var(--k)), 50px); }
  .stop-text { font-size: 16px; line-height: 1.5; }
  .stop li { font-size: 13px; padding: 5px 11px; }

  .panel-inner { grid-template-columns: minmax(0, 9fr) minmax(0, 11fr); gap: clamp(26px, calc(3.6vw * var(--k)), 70px); }
  .panel-meta { font-size: 13px; }
  .panel h3 { font-size: clamp(44px, calc(5.8vw * var(--k)), 116px); }
  .panel-sum { font-size: clamp(19px, calc(1.66vw * var(--k)), 27px); max-width: 44ch; }
  .panel-points { gap: 11px; } .panel-points li { font-size: 17.5px; padding-left: 24px; } .panel-points li::before { width: 12px; }
  .metric b { font-size: clamp(36px, calc(3.7vw * var(--k)), 62px); } .metric b.is-long { font-size: clamp(28px, calc(2.6vw * var(--k)), 44px); }
  .metric span { font-size: 11.5px; }
  .chip { font-size: 12.5px; padding: 7px 13px; }
  .panel .links a { height: 44px; padding: 0 20px; font-size: 15px; }
  .panel .figure-cap { font-size: 13px; margin-bottom: 12px; }
  .panel .figure-nav button { min-width: 36px; height: 27px; font-size: 11.5px; }
}

/* phones and tablets: the top bar keeps its smaller size */
@media (max-width: 999px) {
  .nav { height: calc(env(safe-area-inset-top, 0px) + 60px); gap: 16px; }
  .nav-mark { font-size: 22px; }
  .nav-links { font-size: 11.5px; } .nav-links a { padding: 6px 0; }
  .nav-cv { height: 36px; padding: 0 14px; font-size: 11.5px; }
}
