/* ==========================================================================
   Tayeb Marikar · portfolio  (v1, October 2026)
   Type: Anybody (display, variable width) · Figtree (text) · JetBrains Mono (readouts)
   Ground: plain white. Colour comes from the 9-band contour spectrum, used where
   something is being "solved": scroll progress, dividers, image lens, the matrix,
   the flow field. Drawing conventions (title blocks, dimension lines, balloons)
   do the structural work.
   ========================================================================== */

:root {
  --bg: #FFFFFF;
  --surface: #FFFFFF;
  --sunken: #F3F4F6;
  --ink: #0A0C0F;
  --ink-2: #3E4550;
  --ink-3: #858C97;
  --line: #D9DDE2;
  --line-soft: #ECEEF1;
  --accent: #0033D6;
  --tbd-bg: #FFF1A3;
  --tbd-ink: #4A3C00;
  --hatch: rgba(10, 12, 15, 0.10);
  --live: #0A8F3C;
  --nav-bg: rgba(255, 255, 255, 0.82);
  --ph-a: #FBFBFC; --ph-b: #EDEFF2; --ph-c: #DDE1E6; --ph-d: #CDD2D9;

  /* contour spectrum: raw (for bars) and deepened (for marks on white) */
  --r0: #0000FF; --r1: #00B2FF; --r2: #00FFFF; --r3: #00FFB2; --r4: #00FF00;
  --r5: #B2FF00; --r6: #FFFF00; --r7: #FFB200; --r8: #FF0000;
  --b0: #0000CC; --b1: #008ECC; --b2: #00B8B8; --b3: #00B880; --b4: #00B000;
  --b5: #80B000; --b6: #C8B400; --b7: #D98A00; --b8: #D40000;
  --spectrum: linear-gradient(90deg, var(--r0) 0 11.1%, var(--r1) 0 22.2%, var(--r2) 0 33.3%, var(--r3) 0 44.4%, var(--r4) 0 55.5%, var(--r5) 0 66.6%, var(--r6) 0 77.7%, var(--r7) 0 88.8%, var(--r8) 0 100%);

  --vp-top: #FFFFFF;
  --vp-bot: #E6EAF0;
  --vp-mesh: rgba(0, 0, 0, 0.30);
  --vp-edge: rgba(0, 0, 0, 0.62);
  --vp-ghost: rgba(10, 12, 15, 0.30);
  --vp-support: #4B37D1;
  --vp-force: #E0261B;
  --c-before: #7B96E8; --c-after: #0033D6;

  --f-display: "Anybody", "Arial Black", Arial, sans-serif;
  --f-body: "Figtree", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 44px);
  --nav-h: 58px;
  --r: 6px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #08090B; --surface: #0F1216; --sunken: #14181D;
    --ink: #EEF0F3; --ink-2: #A9B0BB; --ink-3: #6D7582;
    --line: #262B33; --line-soft: #181C22;
    --accent: #6EA8FF; --tbd-bg: #4B3D00; --tbd-ink: #FFE680;
    --hatch: rgba(238, 240, 243, 0.08); --live: #3DDC84; --nav-bg: rgba(8, 9, 11, 0.78);
    --ph-a: #262B33; --ph-b: #1D2128; --ph-c: #16191F; --ph-d: #101317;
    --b0: #3D5BFF; --b1: #00B2FF; --b2: #00FFFF; --b3: #00FFB2; --b4: #00FF00;
    --b5: #B2FF00; --b6: #FFFF00; --b7: #FFB200; --b8: #FF3B30;
    --vp-top: #0D1117; --vp-bot: #161D27; --vp-mesh: rgba(0,0,0,.38); --vp-edge: rgba(0,0,0,.75);
    --vp-ghost: rgba(238,240,243,.30); --vp-support: #8C7DFF; --vp-force: #FF4A3D;
    --c-before: #3554B8; --c-after: #5B8FE8;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #08090B; --surface: #0F1216; --sunken: #14181D;
  --ink: #EEF0F3; --ink-2: #A9B0BB; --ink-3: #6D7582;
  --line: #262B33; --line-soft: #181C22;
  --accent: #6EA8FF; --tbd-bg: #4B3D00; --tbd-ink: #FFE680;
  --hatch: rgba(238, 240, 243, 0.08); --live: #3DDC84; --nav-bg: rgba(8, 9, 11, 0.78);
  --ph-a: #262B33; --ph-b: #1D2128; --ph-c: #16191F; --ph-d: #101317;
  --b0: #3D5BFF; --b1: #00B2FF; --b2: #00FFFF; --b3: #00FFB2; --b4: #00FF00;
  --b5: #B2FF00; --b6: #FFFF00; --b7: #FFB200; --b8: #FF3B30;
  --vp-top: #0D1117; --vp-bot: #161D27; --vp-mesh: rgba(0,0,0,.38); --vp-edge: rgba(0,0,0,.75);
  --vp-ghost: rgba(238,240,243,.30); --vp-support: #8C7DFF; --vp-force: #FF4A3D;
  --c-before: #3554B8; --c-after: #5B8FE8;
  color-scheme: dark;
}

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
::selection { background: #FFFF00; color: #000; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-family: var(--f-display); text-wrap: balance; }
ul, ol { margin: 0; padding: 0; list-style: none; }
dl, dd { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }
[hidden] { display: none !important; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
section[id], footer[id] { scroll-margin-top: calc(var(--nav-h) + 12px); }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.muted { color: var(--ink-3); }
.kicker { font-size: 15px; font-weight: 500; color: var(--ink-3); }
.hint { font: 400 12px/1.4 var(--f-mono); color: var(--ink-3); margin-top: 10px; }
mark.tbd {
  background: var(--tbd-bg); color: var(--tbd-ink); border-radius: 2px; padding: 0 .2em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.skip { position: absolute; left: 12px; top: -48px; z-index: 100; background: var(--ink); color: var(--bg); padding: 8px 12px; border-radius: 4px; }
.skip:focus { top: 12px; }

/* scroll-driven vector field sits behind everything */
.wind { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 0; }
main, footer { position: relative; z-index: 1; }

/* ------------------------------------------------------------- buttons */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; gap: 8px;
  height: 46px; padding: 0 20px;
  border: 1px solid var(--line); border-radius: var(--r);
  font: 600 15px/1 var(--f-body); color: var(--ink); background: var(--surface);
  transition: border-color .15s;
}
.btn::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: var(--spectrum); transform: scaleX(0); transform-origin: left;
  transition: transform .35s cubic-bezier(.2, .8, .2, 1);
}
.btn:hover { border-color: var(--ink-3); }
.btn:hover::after { transform: scaleX(1); }
.btn-primary { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn-primary:hover { border-color: var(--ink); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 14px; }
.is-missing { opacity: .5; }
.icon-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: var(--r); color: var(--ink-2); }
.icon-btn:hover { color: var(--ink); background: var(--sunken); }
.icon-btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.arr { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; transition: transform .2s; }

/* ------------------------------------------------------------------ nav */
.nav {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(1.5) blur(16px); backdrop-filter: saturate(1.5) blur(16px);
}
.nav-inner { height: var(--nav-h); display: flex; align-items: center; gap: 24px; }
.brand { font: 800 17px/1 var(--f-display); font-stretch: 130%; letter-spacing: -0.01em; white-space: nowrap; }
.nav-links { display: flex; gap: 2px; margin-left: auto; }
.nav-links a { position: relative; font-size: 15px; font-weight: 500; color: var(--ink-2); padding: 8px 11px; }
.nav-links a::after {
  content: ""; position: absolute; left: 11px; right: 11px; bottom: 2px; height: 2px;
  background: var(--spectrum); transform: scaleX(0); transform-origin: left; transition: transform .3s;
}
.nav-links a:hover, .nav-links a.is-active { color: var(--ink); }
.nav-links a.is-active::after, .nav-links a:hover::after { transform: scaleX(1); }
.nav-tools { display: flex; align-items: center; gap: 8px; }
.i-moon { display: none; }
:root[data-theme="dark"] .i-sun { display: none; }
:root[data-theme="dark"] .i-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .i-sun { display: none; }
  :root:not([data-theme="light"]) .i-moon { display: block; }
}
.menu-btn { display: none; }
.progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; pointer-events: none; }
.progress-bands { display: flex; height: 100%; clip-path: inset(0 calc((1 - var(--p, 0)) * 100%) 0 0); }
.progress-bands i { flex: 1; }
.progress-bands i:nth-child(1) { background: var(--r0); } .progress-bands i:nth-child(2) { background: var(--r1); }
.progress-bands i:nth-child(3) { background: var(--r2); } .progress-bands i:nth-child(4) { background: var(--r3); }
.progress-bands i:nth-child(5) { background: var(--r4); } .progress-bands i:nth-child(6) { background: var(--r5); }
.progress-bands i:nth-child(7) { background: var(--r6); } .progress-bands i:nth-child(8) { background: var(--r7); }
.progress-bands i:nth-child(9) { background: var(--r8); }
@media (max-width: 860px) {
  .menu-btn { display: inline-grid; }
  .nav-tools .btn-sm { display: none; }
  .nav-links {
    position: absolute; left: 0; right: 0; top: var(--nav-h); display: none;
    flex-direction: column; gap: 0; margin: 0; padding: 4px var(--gutter) 14px;
    background: var(--bg); border-bottom: 1px solid var(--line);
  }
  .nav.is-open .nav-links { display: flex; }
  .nav-links a { font-size: 18px; padding: 13px 0; border-bottom: 1px solid var(--line-soft); }
  .nav-links a::after { left: 0; right: auto; width: 60px; bottom: -1px; }
  .nav-tools { margin-left: auto; }
}

/* ------------------------------------------------------ intro / about */
.intro { padding-block: clamp(40px, 7vw, 96px) clamp(36px, 5vw, 64px); }
.intro-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr); gap: clamp(32px, 6vw, 88px); align-items: end; }
.intro-copy { display: flex; flex-direction: column; gap: 22px; }
.intro-name {
  font-weight: 820; font-stretch: 118%;
  font-size: clamp(52px, 7.8vw, 116px); line-height: .86; letter-spacing: -0.025em;
  margin-top: 4px;
  animation: stretch 1.3s cubic-bezier(.2, .8, .2, 1) both;
  transition: font-stretch .7s cubic-bezier(.2, .8, .2, 1);
}
.intro-name span { display: block; }
.intro-name:hover { font-stretch: 130%; }
@keyframes stretch { from { font-stretch: 62%; } to { font-stretch: 118%; } }
.intro-lead { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.3; font-weight: 600; max-width: 26ch; letter-spacing: -0.01em; }
.intro-body { font-size: 18px; color: var(--ink-2); max-width: 50ch; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.intro-photo { justify-self: end; width: 100%; max-width: 440px; }
.intro-photo .lens { aspect-ratio: 4 / 5; }
.hint-touch { display: none; }
@media (hover: none) { .hint-hover { display: none; } .hint-touch { display: inline; } }

/* drawing title block */
.titleblock {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(0, 1.9fr) minmax(0, .7fr);
  margin-top: clamp(40px, 6vw, 72px);
  border: 1.5px solid var(--ink);
}
.titleblock > div { padding: 12px 14px 14px; border-left: 1px solid var(--line); min-width: 0; }
.titleblock > div:first-child { border-left: 0; }
.titleblock dt { font-size: 11px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-3); }
.titleblock dd { margin-top: 5px; font-weight: 600; font-size: 16px; line-height: 1.35; }
.tb-now li { position: relative; padding-left: 16px; font-weight: 500; font-size: 15px; }
.tb-now li::before { content: ""; position: absolute; left: 0; top: .55em; width: 7px; height: 7px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 3px color-mix(in srgb, var(--live) 18%, transparent); }
.tb-rev dd { font-family: var(--f-mono); font-weight: 500; font-size: 14px; }
@media (max-width: 1000px) {
  .titleblock { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .titleblock > div { border-left: 0; border-top: 1px solid var(--line); }
  .titleblock > div:nth-child(even) { border-left: 1px solid var(--line); }
  .titleblock > div:nth-child(-n+2) { border-top: 0; }
  .tb-now { grid-column: 1 / -1; border-left: 0 !important; }
  .tb-rev { grid-column: 1 / -1; border-left: 0 !important; }
}
@media (max-width: 860px) {
  .intro-grid { grid-template-columns: 1fr; align-items: start; }
  .intro-photo { justify-self: start; max-width: 320px; }
}

/* -------------------------------------------------------- thermal strip */
.thermo { padding-block: 10px; cursor: crosshair; }
.thermo canvas { display: block; width: 100%; height: 21px; }
.thermo-read { display: block; margin-top: 8px; text-align: right; font: 400 11px/1 var(--f-mono); color: var(--ink-3); font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------ sections */
.sec { padding-block: clamp(56px, 8vw, 110px); }
.sec-title { display: inline-flex; flex-direction: column; margin-bottom: clamp(32px, 5vw, 56px); }
.sec-title h2 {
  font-weight: 820; font-stretch: 122%;
  font-size: clamp(42px, 6.4vw, 84px); line-height: .9; letter-spacing: -0.02em;
}
@media (max-width: 480px) { .sec-title h2 { font-size: min(42px, 9.4vw); font-stretch: 114%; } }
/* dimension line under a heading: extension lines, arrowheads, count */
.dim {
  position: relative; display: flex; align-items: center; margin-top: 14px; height: 14px;
  border-inline: 1px solid var(--ink-3); color: var(--ink-3);
}
.dim::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px solid var(--ink-3); }
.dim svg { position: relative; width: 8px; height: 8px; fill: var(--ink-3); flex: none; }
.dim b { position: relative; margin-inline: auto; padding: 0 8px; background: var(--bg); font: 500 12px/1 var(--f-mono); color: var(--ink-2); }
.sec-note { color: var(--ink-2); max-width: 60ch; margin: -24px 0 28px; }

/* ------------------------------------------------------------- the lens */
.lens { position: relative; overflow: hidden; border-radius: var(--r); isolation: isolate; aspect-ratio: 16 / 10; max-width: 100%; background: var(--sunken); }
.lens-base, .lens-hot { position: absolute; inset: 0; }
.lens img { width: 100%; height: 100%; object-fit: cover; }
.lens-hot {
  filter: url(#contour);
  clip-path: circle(0px at var(--lx, 50%) var(--ly, 50%));
  transition: clip-path .35s cubic-bezier(.2, .8, .2, 1);
}
.lens.is-on .lens-hot { clip-path: circle(var(--lr, 130px) at var(--lx) var(--ly)); }
.lens-ring {
  position: absolute; left: var(--lx, 50%); top: var(--ly, 50%);
  width: calc(var(--lr, 130px) * 2); height: calc(var(--lr, 130px) * 2);
  margin: calc(var(--lr, 130px) * -1) 0 0 calc(var(--lr, 130px) * -1);
  border-radius: 50%; border: 1px solid rgba(0, 0, 0, .55); pointer-events: none;
  background-image: linear-gradient(rgba(0,0,0,.16) 1px, transparent 1px), linear-gradient(90deg, rgba(0,0,0,.16) 1px, transparent 1px);
  background-size: 13px 13px; background-position: center;
  opacity: 0; transform: scale(.3);
  transition: opacity .3s, transform .35s cubic-bezier(.2, .8, .2, 1), left .35s cubic-bezier(.2, .8, .2, 1), top .35s cubic-bezier(.2, .8, .2, 1);
}
.lens.is-on .lens-ring { opacity: 1; transform: none; }
.ph {
  width: 100%; height: 100%; display: grid; place-items: center;
  background:
    radial-gradient(circle at var(--gx2, 70%) var(--gy2, 30%), color-mix(in srgb, var(--ph-a) 80%, transparent), transparent 38%),
    radial-gradient(circle at var(--gx, 40%) var(--gy, 55%), var(--ph-a) 0%, var(--ph-b) 30%, var(--ph-c) 62%, var(--ph-d) 100%);
  color: var(--ink-3); font-size: 14px; font-weight: 500;
}
.lens-hot .ph {
  background:
    radial-gradient(circle at var(--gx2, 70%) var(--gy2, 30%), rgba(255,255,255,.85), transparent 40%),
    radial-gradient(circle at var(--gx, 40%) var(--gy, 55%), #FFFFFF 0%, #C8CCD2 28%, #7E858F 62%, #1C1F24 100%);
}
.ph span { display: inline-flex; align-items: center; gap: 8px; }
.ph span::before { content: ""; width: 16px; height: 12px; border: 1.5px solid currentColor; border-radius: 2px; box-shadow: inset 0 0 0 2.5px var(--ph-b), inset 0 0 0 4px currentColor; }
.balloon {
  position: absolute; z-index: 2; transform: translate(-50%, -50%);
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: var(--bg); border: 1.5px solid var(--ink); font: 600 12px/1 var(--f-mono); color: var(--ink);
}

/* -------------------------------------------------------------- projects */
.pgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(48px, 6vw, 80px) clamp(24px, 4vw, 48px); }
.pcard { display: flex; flex-direction: column; gap: 20px; }
.pcard-media { position: relative; }
.pcard-media .status { position: absolute; left: 12px; top: 12px; z-index: 3; }
.pcard-body { display: flex; flex-direction: column; gap: 8px; }
.pcard-meta { font-size: 14px; font-weight: 500; color: var(--ink-3); }
.pcard h3 {
  justify-self: start; align-self: flex-start;
  font-weight: 760; font-stretch: 116%; font-size: clamp(24px, 2.4vw, 32px); line-height: 1.05; letter-spacing: -0.015em;
}
.pcard h3 span {
  padding-bottom: 3px;
  background: var(--spectrum) no-repeat 0 100% / 0 3px;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  transition: background-size .45s cubic-bezier(.2, .8, .2, 1);
}
.pcard:hover h3 span, .pcard:focus-visible h3 span { background-size: 100% 3px; }
.pcard-sum { color: var(--ink-2); max-width: 54ch; }
.more { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-weight: 600; font-size: 15px; margin-top: 4px; }
.pcard:hover .more .arr, .cs-next:hover .arr, .contact-links a:hover .arr, .xp-rel a:hover .arr { transform: translateX(3px); }
.status {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12.5px; font-weight: 600; color: var(--ink-2); white-space: nowrap;
  background: var(--bg); padding: 5px 10px 5px 9px; border-radius: 999px; border: 1px solid var(--line);
}
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); }
.status.is-live::before { background: var(--live); }
@media (max-width: 760px) { .pgrid { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------ experience */
.xp-list { border-top: 1.5px solid var(--ink); }
.xp { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 24px; padding: 30px 0; border-bottom: 1px solid var(--line); }
.xp-when { font-weight: 600; font-variant-numeric: tabular-nums; }
.xp-when span { display: block; font-weight: 400; color: var(--ink-3); }
.xp-what { display: flex; flex-direction: column; gap: 4px; max-width: 74ch; }
.xp-what h3 { font-weight: 760; font-stretch: 114%; font-size: clamp(22px, 2.2vw, 28px); line-height: 1.1; letter-spacing: -0.01em; }
.xp-role { color: var(--ink-2); font-weight: 500; }
.bullets { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.bullets li { position: relative; padding-left: 20px; color: var(--ink-2); }
.bullets li::before { content: ""; position: absolute; left: 1px; top: .7em; width: 9px; height: 1.5px; background: var(--ink-3); }
.xp-rel { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 14px; }
.xp-rel a { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-weight: 600; font-size: 15px; }
.edu { margin-top: clamp(56px, 7vw, 88px); }
.edu .sec-title h2 { font-size: clamp(32px, 4.2vw, 52px); }
@media (max-width: 700px) { .xp { grid-template-columns: 1fr; gap: 6px; } }

/* ------------------------------------------------------ skill chips */
.pcard-skills, .xp-skills { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.xp-skills { margin-top: 16px; }
.chips-label { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips li {
  position: relative; font-size: 13.5px; font-weight: 500; color: var(--ink-2);
  padding: 4px 10px 4px 20px; border: 1px solid var(--line); border-radius: 3px; background: var(--bg);
}
/* each chip carries a small swatch from the contour scale, cycling through the bands */
.chips li::before { content: ""; position: absolute; left: 8px; top: 50%; width: 6px; height: 6px; margin-top: -3px; background: var(--b0); }
.chips li:nth-child(9n+2)::before { background: var(--b1); } .chips li:nth-child(9n+3)::before { background: var(--b2); }
.chips li:nth-child(9n+4)::before { background: var(--b3); } .chips li:nth-child(9n+5)::before { background: var(--b4); }
.chips li:nth-child(9n+6)::before { background: var(--b5); } .chips li:nth-child(9n+7)::before { background: var(--b6); }
.chips li:nth-child(9n+8)::before { background: var(--b7); } .chips li:nth-child(9n+9)::before { background: var(--b8); }
.tb-tools .chips { margin-top: 4px; }
.certs { border-top: 1.5px solid var(--ink); }
.certs li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 220px) 120px 110px; gap: 16px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cert-name { font-weight: 600; }
.cert-date { font-variant-numeric: tabular-nums; color: var(--ink-2); }
.certs a { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-weight: 600; justify-self: end; }
.certs li > span:last-child { justify-self: end; font-size: 14px; }
@media (max-width: 760px) {
  .certs li { grid-template-columns: 1fr auto; gap: 2px 16px; }
  .certs li > .muted:nth-child(2) { grid-column: 1; }
  .certs li > :last-child { grid-column: 1 / -1; justify-self: start !important; }
}

/* ------------------------------------------------------------------ lab */
.lab-grid { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.35fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.lab-copy { display: flex; flex-direction: column; gap: 14px; color: var(--ink-2); max-width: 46ch; }
.lead-sm { font-size: 22px; line-height: 1.3; font-weight: 600; color: var(--ink); }
@media (max-width: 960px) { .lab-grid { grid-template-columns: 1fr; } }

/* solver viewport */
.vp {
  margin: 0; position: relative; display: grid; grid-template-rows: auto 1fr auto;
  border: 1.5px solid var(--ink); border-radius: var(--r);
  background: linear-gradient(180deg, var(--vp-top), var(--vp-bot));
  overflow: hidden; aspect-ratio: 16 / 11; max-width: 100%; min-height: 300px;
  container-type: inline-size;
}
.vp-bar, .vp-status { display: flex; align-items: center; gap: 14px; font: 500 11px/1 var(--f-mono); color: var(--ink-3); padding: 10px 14px; }
.vp-bar { justify-content: space-between; border-bottom: 1px solid var(--line); }
.vp-path { color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vp-path b { display: inline-grid; place-items: center; width: 15px; height: 15px; margin-right: 6px; background: var(--ink); color: var(--bg); border-radius: 2px; font-size: 10px; }
.vp-sep { margin-inline: 4px; }
.vp-meta { white-space: nowrap; }
.vp-stage { position: relative; min-height: 0; touch-action: none; user-select: none; -webkit-user-select: none; }
.vp-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.vp-keys { position: absolute; left: 14px; top: 12px; display: flex; flex-direction: column; gap: 5px; font: 500 11px/1 var(--f-mono); color: var(--ink-2); pointer-events: none; }
.vp-keys span { display: flex; align-items: center; gap: 6px; }
.vp-keys i { display: inline-grid; place-items: center; width: 14px; height: 14px; font-style: normal; font-weight: 600; font-size: 10px; color: #fff; }
.k-a { background: var(--vp-support); } .k-b { background: var(--vp-force); }
.vp-keys b { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.vp-legend { position: absolute; right: 16px; top: 12px; font: 400 10.5px/1.25 var(--f-mono); color: var(--ink-2); pointer-events: none; }
.lg-title { font-weight: 600; color: var(--ink); }
.lg-sub { color: var(--ink-3); margin: 2px 0 8px; }
.vp-legend-scale { display: flex; flex-direction: column; }
.lg-row { display: flex; align-items: flex-start; gap: 7px; height: 13px; }
.lg-row i { width: 13px; height: 13px; flex: none; }
.lg-row b { font-weight: 500; transform: translateY(-6px); font-variant-numeric: tabular-nums; white-space: nowrap; }
.lg-last { height: 0; padding-left: 20px; }
.lg-row b[data-i="9"], .lg-row b[data-i="0"] { font-weight: 600; color: var(--ink); }
.vp-probe { position: absolute; left: 0; top: 0; pointer-events: none; font: 600 11px/1 var(--f-mono); color: var(--bg); background: var(--ink); padding: 5px 7px; border-radius: 3px; white-space: nowrap; }
.vp-hint {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 6px; font: 500 11px/1 var(--f-mono); color: var(--ink-2);
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px 6px 8px; pointer-events: none; transition: opacity .4s;
}
.vp-hint svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.vp.has-interacted .vp-hint { opacity: 0; }
.vp-status { border-top: 1px solid var(--line); flex-wrap: wrap; row-gap: 6px; }
.vp-status em { font-style: normal; }
.vp-status b { font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; }
.vp.is-yield .vp-sf b { color: var(--vp-force); }
.vp.is-yield .vp-sf b::after { content: "  yield"; text-transform: uppercase; letter-spacing: .06em; }
.vp.is-dragging .vp-stage { cursor: grabbing !important; }
.vp-failed .vp-stage::after { content: "Interactive model unavailable in this browser"; position: absolute; inset: 0; display: grid; place-items: center; font: 500 12px var(--f-mono); color: var(--ink-3); }
@container (max-width: 640px) { .vp-opt { display: none; } }
@media (max-width: 560px) {
  .vp-meta { display: none; }
  .vp { aspect-ratio: auto; height: 340px; min-height: 0; }
  .vp-legend { right: 10px; top: 8px; font-size: 9.5px; }
  .lg-row { height: 11px; } .lg-row i { width: 11px; height: 11px; } .lg-row b { transform: translateY(-5px); }
  .lg-sub { display: none; } .lg-title { margin-bottom: 12px; }
  .vp-keys { left: 10px; top: 8px; font-size: 10px; }
}

/* --------------------------------------------------------------- contact */
.contact { border-top: 1.5px solid var(--ink); background: var(--bg); }
.airfoil-wrap { position: absolute; left: 0; right: 0; top: 0; bottom: 58px; overflow: hidden; }
.airfoil {
  position: absolute; inset: 0; width: 100%; height: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent 8%, rgba(0,0,0,.35) 36%, #000 58%);
  mask-image: linear-gradient(90deg, transparent 8%, rgba(0,0,0,.35) 36%, #000 58%);
}
.af-read {
  position: absolute; right: var(--gutter); bottom: 28px; display: flex; flex-direction: column; gap: 6px; align-items: flex-end;
  font: 400 11.5px/1.3 var(--f-mono); color: var(--ink-2); font-variant-numeric: tabular-nums; pointer-events: none;
}
.af-read .af-name { color: var(--ink-3); }
.af-read span { color: var(--ink-3); } .af-read b { font-weight: 500; color: var(--ink); margin-right: 12px; }
.af-legend { position: relative; display: grid; grid-template-columns: auto repeat(9, 14px); gap: 0; align-items: center; column-gap: 0; padding-bottom: 14px; }
.af-legend span { margin-right: 8px; }
.af-legend i { height: 8px; }
.af-legend i:nth-of-type(1) { background: var(--b0); } .af-legend i:nth-of-type(2) { background: var(--b1); } .af-legend i:nth-of-type(3) { background: var(--b2); }
.af-legend i:nth-of-type(4) { background: var(--b3); } .af-legend i:nth-of-type(5) { background: var(--b4); } .af-legend i:nth-of-type(6) { background: var(--b5); }
.af-legend i:nth-of-type(7) { background: var(--b6); } .af-legend i:nth-of-type(8) { background: var(--b7); } .af-legend i:nth-of-type(9) { background: var(--b8); }
.af-legend small { position: absolute; bottom: 0; font-size: 10px; color: var(--ink-3); }
.af-legend small:first-of-type { left: 34px; } .af-legend small:last-of-type { right: 0; }
.contact-inner { position: relative; padding-block: clamp(96px, 12vw, 170px) clamp(72px, 9vw, 120px); display: flex; flex-direction: column; gap: 20px; }
.contact-title { font-weight: 820; font-stretch: 118%; font-size: clamp(38px, 5vw, 68px); line-height: .94; letter-spacing: -0.02em; max-width: 16ch; }
.contact-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 10px; }
.email { font: 700 clamp(20px, 2.4vw, 30px)/1.2 var(--f-display); font-stretch: 110%; word-break: break-all; }
.email:hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.contact-links { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 4px; }
.contact-links a { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-weight: 600; }
.colophon {
  position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px;
  height: 58px; align-items: center; padding-inline: max(var(--gutter), calc((100% - var(--wrap)) / 2 + var(--gutter)));
  border-top: 1px solid var(--line); font-size: 13.5px; color: var(--ink-3);
}
@media (max-width: 760px) {
  .airfoil-wrap { position: relative; height: 300px; bottom: auto; }
  .airfoil { -webkit-mask-image: none; mask-image: none; }
  .contact-inner { padding-block: 24px 64px; }
  .colophon { height: auto; padding-block: 16px; }
  .af-read { bottom: 12px; }
}

.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 60;
  transform: translate(-50%, 12px); opacity: 0; background: var(--ink); color: var(--bg);
  font-size: 14px; font-weight: 600; padding: 10px 16px; border-radius: var(--r); transition: opacity .2s, transform .2s;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ------------------------------------------------------------ case study */
.case { padding-block: 28px clamp(72px, 10vw, 120px); }
.back { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); font-weight: 600; font-size: 15px; }
.back:hover { color: var(--ink); }
.back:hover .arr { transform: translateX(-3px); }
.cs-head { display: flex; flex-direction: column; gap: 16px; padding-block: clamp(28px, 5vw, 60px) clamp(28px, 4vw, 44px); }
.cs-head h1 { font-weight: 820; font-stretch: 120%; font-size: clamp(44px, 7vw, 104px); line-height: .9; letter-spacing: -0.025em; max-width: 14ch; }
.cs-sub { font-size: 19px; color: var(--ink-3); font-weight: 500; }
.cs-lead { font-size: clamp(19px, 1.8vw, 23px); line-height: 1.45; color: var(--ink-2); max-width: 54ch; }
.fig { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.fig figcaption { font-size: 14px; color: var(--ink-3); }
.fig-no { font-weight: 700; color: var(--ink-2); margin-right: 8px; }
.cs-cover .lens { aspect-ratio: 16 / 10; }
.notes { counter-reset: n; display: flex; flex-direction: column; gap: 6px; font-size: 15px; color: var(--ink-2); }
.notes li { counter-increment: n; display: flex; gap: 10px; align-items: baseline; }
.notes li::before { content: counter(n); flex: none; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--ink); display: inline-grid; place-items: center; font: 600 11px/1 var(--f-mono); color: var(--ink); }
.cs-tb { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin-top: 28px; }
.cs-tb > div { border-top: 0; }
.tb-metric dd { font: 760 28px/1.1 var(--f-display); font-stretch: 112%; letter-spacing: -0.01em; }
.tb-tools { grid-column: 1 / -1; border-left: 0 !important; border-top: 1px solid var(--line) !important; }
.tb-tools dd { font-weight: 500; font-size: 15px; color: var(--ink-2); }
@media (max-width: 1000px) {
  .cs-tb > div { border-left: 0; border-top: 1px solid var(--line); }
  .cs-tb > div:nth-child(-n+2) { border-top: 0; }
}
.cs-block { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; padding-block: clamp(36px, 5vw, 60px); border-bottom: 1px solid var(--line); }
.cs-label { font-weight: 760; font-stretch: 116%; font-size: 20px; letter-spacing: -0.005em; position: sticky; top: calc(var(--nav-h) + 24px); align-self: start; }
.cs-body { display: flex; flex-direction: column; gap: 14px; max-width: 780px; font-size: 18px; }
.cs-body > p { max-width: 66ch; }
.cs-result { font: 700 clamp(22px, 2.2vw, 28px)/1.3 var(--f-display); font-stretch: 108%; }
.steps { display: flex; flex-direction: column; gap: 44px; }
.step { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; }
.step-no { width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--ink); display: grid; place-items: center; font: 600 13px/1 var(--f-mono); }
.step h3 { font-weight: 760; font-stretch: 114%; font-size: 22px; margin: 2px 0 6px; }
.step p { color: var(--ink-2); }
.step .fig, .step .fig-row, .step .dtable-wrap, .step .chart { margin-top: 18px; }
.fig.is-tall { max-width: 440px; }
.fig-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.fig-row .fig { margin-top: 0; }
@media (max-width: 640px) { .fig-row { grid-template-columns: 1fr; } }
.mv3d { position: relative; width: 100%; max-width: 100%; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--r);
  background: radial-gradient(ellipse at 50% 40%, var(--surface) 0%, var(--sunken) 70%); cursor: grab; }
.mv3d:active { cursor: grabbing; }
.mv3d canvas { display: block; width: 100%; height: 100%; }
.mv3d-msg { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font: 400 12px/1.4 var(--f-mono); color: var(--ink-3); pointer-events: none; }
.mv3d.is-ready .mv3d-msg { display: none; }
.cs-next { display: flex; flex-direction: column; gap: 10px; padding-top: clamp(40px, 6vw, 64px); }
.cs-next-t { display: inline-flex; align-items: center; gap: 12px; font: 820 clamp(30px, 4vw, 52px)/1 var(--f-display); font-stretch: 120%; letter-spacing: -0.02em; }
.cs-next-t .arr { width: 28px; height: 28px; }
@media (max-width: 820px) {
  .cs-block { grid-template-columns: 1fr; gap: 14px; }
  .cs-label { position: static; }
}

/* before / after */
.compare { position: relative; border-radius: var(--r); overflow: hidden; aspect-ratio: 16 / 10; max-width: 100%; }
.cmp-pane { position: absolute; inset: 0; }
.cmp-pane .lens { aspect-ratio: auto; height: 100%; border-radius: 0; }
.cmp-after { clip-path: inset(0 0 0 var(--pos)); }
.cmp-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: var(--ink); pointer-events: none; z-index: 3; }
.cmp-handle span { position: absolute; top: 50%; left: 50%; width: 38px; height: 38px; transform: translate(-50%, -50%); border-radius: 50%; background: var(--ink); }
.cmp-handle span::before, .cmp-handle span::after { content: ""; position: absolute; top: 50%; border: 5px solid transparent; transform: translateY(-50%); }
.cmp-handle span::before { left: 7px; border-right-color: var(--bg); }
.cmp-handle span::after { right: 7px; border-left-color: var(--bg); }
.cmp-tag { position: absolute; top: 12px; z-index: 3; font-size: 12.5px; font-weight: 600; background: var(--ink); color: var(--bg); padding: 5px 9px; border-radius: 3px; pointer-events: none; }
.cmp-tag mark.tbd { background: none; color: inherit; }
.cmp-tag-l { left: 12px; } .cmp-tag-r { right: 12px; }
.cmp-range { position: absolute; inset: 0; z-index: 4; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.compare:has(.cmp-range:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .intro-name { animation: none; }
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; }
}

/* --------------------------------------------------------- stat cover */
.lens.is-stat {
  container-type: inline-size; display: grid; place-items: stretch;
  background:
    linear-gradient(var(--line-soft) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px) 0 0 / 24px 24px,
    var(--sunken);
}
.stat { display: flex; flex-direction: column; justify-content: center; gap: 2cqw; padding: 7cqw 8cqw; }
.stat-k { font: 600 max(11px, 2.4cqw)/1 var(--f-body); letter-spacing: .09em; text-transform: uppercase; color: var(--ink-3); }
.stat-v { font: 820 22cqw/.86 var(--f-display); font-stretch: 118%; letter-spacing: -0.03em; color: var(--ink); }
.stat-bars { display: flex; flex-direction: column; gap: 1.6cqw; margin-top: 2.4cqw; }
.sb { display: grid; grid-template-columns: minmax(72px, 20cqw) minmax(0, 1fr) max-content; align-items: center; gap: max(8px, 2cqw); font: 500 max(11px, 2.5cqw)/1.2 var(--f-mono); color: var(--ink-2); }
.sb-v { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sb-t { height: max(8px, 2.2cqw); }
.sb-t i { display: block; height: 100%; border-radius: 0 4px 4px 0; background: var(--ink-3); }
.sb.is-new .sb-t i { background: var(--accent); }
.cs-cover .lens.is-stat { aspect-ratio: 16 / 7; }
.cs-cover .stat { padding: 4cqw 6cqw; gap: 1.2cqw; }
.cs-cover .stat-v { font-size: 13cqw; }
.cs-cover .stat-k { font-size: max(11px, 1.4cqw); }
.cs-cover .stat-bars { max-width: 760px; gap: 1cqw; margin-top: 1.6cqw; }
.cs-cover .sb { grid-template-columns: minmax(84px, 12cqw) minmax(0, 1fr) max-content; font-size: max(12px, 1.6cqw); }
@media (max-width: 640px) { .cs-cover .lens.is-stat { aspect-ratio: 16 / 10; } .cs-cover .stat-v { font-size: 20cqw; } .cs-cover .stat { padding: 6cqw 7cqw; gap: 2cqw; } }
.cs-cover .sb-t { height: max(8px, 1.3cqw); }

/* ------------------------------------------------------------- tables */
.dtable-wrap { overflow-x: auto; border-top: 1.5px solid var(--ink); }
.dtable { width: 100%; border-collapse: collapse; font-size: 15.5px; font-variant-numeric: tabular-nums; }
.dtable th, .dtable td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); vertical-align: baseline; }
.dtable thead th { font-size: 11px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-3); }
.dtable tbody th { font-weight: 500; color: var(--ink-2); }
.dtable .num { text-align: right; font-family: var(--f-mono); font-size: 14.5px; white-space: nowrap; padding-right: 0; padding-left: 16px; }
.dtable thead .num { font-family: var(--f-body); font-size: 11px; }

/* ------------------------------------------------------ dumbbell chart */
.chart { position: relative; margin: 0; }
.chart-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; align-items: baseline; margin-bottom: 14px; }
.chart-title { font-weight: 600; font-size: 15px; color: var(--ink); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13.5px; color: var(--ink-2); }
.lg { display: inline-flex; align-items: center; gap: 7px; }
.lg i { width: 10px; height: 10px; border-radius: 50%; }
.lg-b i { background: var(--c-before); } .lg-a i { background: var(--c-after); }
.db-grid { display: flex; flex-direction: column; }
.db-row, .db-axis { display: grid; grid-template-columns: minmax(118px, 30%) minmax(0, 1fr); gap: 16px; align-items: center; }
.db-row { min-height: 46px; border-top: 1px solid var(--line-soft); outline-offset: 0; cursor: default; }
.db-row:first-child { border-top: 0; }
.db-row.is-total { border-top: 1px solid var(--line); }
.db-row.is-total .db-name { font-weight: 700; color: var(--ink); }
.db-name { font-size: 14.5px; color: var(--ink-2); line-height: 1.3; padding-block: 6px; }
.db-name small { display: block; font: 500 12.5px/1.3 var(--f-mono); color: var(--ink-3); margin-top: 2px; }
.db-track { position: relative; height: 22px; margin-right: 8px;
  background: repeating-linear-gradient(90deg, var(--line-soft) 0 1px, transparent 1px calc(100% / 7)); }
.db-link { position: absolute; top: 50%; height: 2px; margin-top: -1px; background: var(--ink-3); opacity: .55; border-radius: 2px; }
.db-dot { position: absolute; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; box-shadow: 0 0 0 2px var(--bg); }
.db-b { background: var(--c-before); } .db-a { background: var(--c-after); }
.db-row.is-hot .db-name, .db-row:focus-visible .db-name { color: var(--ink); }
.db-row.is-hot .db-dot { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--line); }
.db-axis .db-track { height: 24px; background: none; border-top: 1px solid var(--line); }
.db-axis i { position: absolute; top: 5px; transform: translateX(-50%); font: 400 11.5px/1 var(--f-mono); font-style: normal; color: var(--ink-3); }
.chart-tip { position: absolute; z-index: 5; min-width: 200px; padding: 10px 12px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); box-shadow: 0 8px 28px rgba(0,0,0,.14); pointer-events: none; }
.tip-h { font-size: 12.5px; color: var(--ink-3); margin-bottom: 4px; }
.tip-r { display: grid; grid-template-columns: 14px auto 1fr; gap: 8px; align-items: center; font-size: 13.5px; color: var(--ink-3); }
.tip-r i { width: 12px; height: 2px; border-radius: 1px; }
.tip-r b { font: 600 14px/1.5 var(--f-mono); color: var(--ink); }
.tip-r .db-b { background: var(--c-before); } .tip-r .db-a { background: var(--c-after); }
.db-table { margin-top: 14px; }
.db-table summary { cursor: pointer; font-size: 14px; font-weight: 600; color: var(--accent); width: fit-content; }
.db-table .dtable-wrap { margin-top: 12px; }

/* ----------------------------------------------------------- misc v1 */
.xp-r + .xp-r { margin-top: 18px; }
.contact-sub { font-size: clamp(16px, 1.5vw, 19px); color: var(--ink-2); max-width: 52ch; margin-top: -4px; }
.certs .muted:empty, .certs .cert-date:empty { min-height: 1px; }
@media (max-width: 560px) {
  .db-row, .db-axis { grid-template-columns: minmax(96px, 36%) minmax(0, 1fr); gap: 10px; }
  .db-name { font-size: 13.5px; }
}

/* links under a case-study lead (e.g. a demo video) */
.cs-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.cs-links .btn { display: inline-flex; align-items: center; gap: 8px; }
/* an odd last project card spans the row: same image size, text beside it */
@media (min-width: 761px) {
  .pgrid > .pcard:last-child:nth-child(odd) { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(24px, 4vw, 48px); align-items: start; }
  .pgrid > .pcard:last-child:nth-child(odd) .pcard-body { padding-top: 4px; }
}
