@font-face { font-family: "Space Grotesk"; src: url("/assets/fonts/space-grotesk.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/assets/fonts/jetbrains-mono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/assets/fonts/jetbrains-mono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  color-scheme: light dark;
  --bg: #F3F1EC; --surface: #FFFFFF; --sunk: #E9E6DF; --ink: #141413; --muted: #5C5953; --line: #DAD5CB;
  --accent: #D9481C; --accent-soft: #F7DED3; --on-accent: #FFFFFF;
  --night: #0D0D0C; --night-ink: #EEEBE4;
  --display: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --wrap: 1200px; --text: 720px; --pad: 20px; --r: 14px;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0F0F0E; --surface: #181816; --sunk: #1F1E1C; --ink: #EEEBE4; --muted: #A39F96; --line: #2D2C29;
          --accent: #FF7A4D; --accent-soft: #3A2219; --on-accent: #1A0C06; }
}
@media (min-width: 720px) { :root { --pad: 32px; } }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.65 var(--body); font-feature-settings: "cv11", "ss01"; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
img { display: block; max-width: 100%; height: auto; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 50; background: var(--surface); padding: 8px 12px; }
.mono, .label { font-family: var(--mono); font-size: 12.5px; letter-spacing: .02em; text-transform: uppercase; }
.muted { color: var(--muted); }

/* ---------------- header / footer ---------------- */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { font: 600 18px/1 var(--display); letter-spacing: -.01em; text-decoration: none; display: flex; align-items: center; gap: 10px; }
.brand .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.nav { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { display: block; padding: 8px 12px; border-radius: 999px; font: 500 14px/1 var(--body); text-decoration: none; white-space: nowrap; color: var(--muted); }
.nav a:hover, .nav a[aria-current] { color: var(--ink); background: var(--sunk); }
.foot { margin-top: 96px; border-top: 1px solid var(--line); padding: 56px 0 64px; }
.foot .wrap { display: grid; gap: 28px; }
.foot h2 { font: 600 clamp(32px, 6vw, 56px)/1.05 var(--display); letter-spacing: -.02em; margin: 0; max-width: 14ch; }
.foot .row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.foot .fine { color: var(--muted); font-size: 14px; }
@media (min-width: 900px) { .foot .wrap { grid-template-columns: 1.4fr 1fr; align-items: end; } }

/* ---------------- buttons, chips ---------------- */
.btn { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 20px; border-radius: 999px; font: 500 15px/1 var(--body); text-decoration: none; border: 1px solid var(--ink); }
.btn.primary { background: var(--ink); color: var(--bg); }
.btn.primary:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn:not(.primary):hover { border-color: var(--accent); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chip { display: inline-block; padding: 6px 11px; border: 1px solid var(--line); border-radius: 999px; font: 500 12px/1.2 var(--mono); letter-spacing: .02em; color: var(--muted); background: var(--surface); }

/* ---------------- home ---------------- */
.hero { padding: 56px 0 40px; }
.hero .wrap { display: grid; gap: 40px; }
.hero .eyebrow { margin: 0 0 18px; color: var(--accent); }
.hero h1 { font: 600 clamp(38px, 7.2vw, 78px)/1.02 var(--display); letter-spacing: -.035em; margin: 0 0 24px; max-width: 16ch; }
.hero .lede { font-size: clamp(18px, 2.2vw, 21px); line-height: 1.55; color: var(--muted); max-width: 40em; margin: 0 0 28px; }
.hero .roles { margin-bottom: 32px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.mosaic { display: grid; grid-template-columns: 1.25fr 1fr; grid-template-rows: auto auto; gap: 12px; align-self: center; }
.mosaic a { position: relative; display: block; overflow: hidden; border-radius: var(--r); background: var(--sunk); border: 1px solid var(--line); }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.mosaic a:hover img { transform: scale(1.04); }
.mosaic .tall { grid-row: span 2; }
.mosaic .tall img { object-position: top; }
.mosaic span { position: absolute; left: 10px; bottom: 10px; padding: 5px 9px; border-radius: 999px; background: color-mix(in srgb, var(--surface) 92%, transparent); font: 500 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .03em; color: var(--ink); }
@media (min-width: 960px) { .hero { padding: 88px 0 56px; } .hero .wrap { grid-template-columns: 1.15fr 1fr; gap: 56px; } }

.section { padding: 56px 0 8px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; border-top: 1px solid var(--ink); padding-top: 14px; margin-bottom: 28px; }
.sec-head h2 { margin: 0; font: 600 15px/1.2 var(--mono); text-transform: uppercase; letter-spacing: .04em; }
.sec-head a, .sec-head span { font: 500 13px/1 var(--mono); text-transform: uppercase; color: var(--muted); text-decoration: none; }

.feature { display: grid; gap: 20px; padding: 0 0 48px; margin-bottom: 48px; border-bottom: 1px solid var(--line); text-decoration: none; }
.feature:last-child { border-bottom: 0; }
.feature .media { border-radius: var(--r); overflow: hidden; background: var(--sunk); border: 1px solid var(--line); aspect-ratio: 16 / 10; }
.feature .media img { width: 100%; height: 100%; object-fit: cover; object-position: top left; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.feature:hover .media img { transform: scale(1.025); }
.feature .media.phone { display: grid; place-items: center; background: linear-gradient(160deg, var(--accent-soft), var(--sunk)); }
.feature .media.phone img { width: auto; height: 92%; object-fit: contain; margin-top: 8%; filter: drop-shadow(0 20px 40px rgba(0,0,0,.18)); }
.feature .media.dark { background: #000; }
.feature .media.art { display: grid; place-items: center; }
.feature .num { color: var(--accent); margin: 0 0 10px; }
.feature h3 { font: 600 clamp(28px, 4vw, 42px)/1.08 var(--display); letter-spacing: -.025em; margin: 0 0 12px; }
.feature p.tag { font-size: 18px; color: var(--muted); margin: 0 0 18px; max-width: 34em; }
.feature .more { display: inline-flex; gap: 8px; margin-top: 18px; font: 500 14px/1 var(--body); }
.feature:hover h3 { color: var(--accent); }
@media (min-width: 900px) {
  .feature { grid-template-columns: 1.35fr 1fr; gap: 48px; align-items: center; }
  .feature:nth-child(even) .media { order: 2; }
}

.cards { display: grid; gap: 20px; }
@media (min-width: 720px) { .cards { grid-template-columns: 1fr 1fr; gap: 28px; } }
.card { display: block; text-decoration: none; }
.card .media { aspect-ratio: 16 / 10; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: var(--sunk); margin-bottom: 14px; }
.card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.card:hover .media img { transform: scale(1.03); }
.card h3 { font: 600 22px/1.2 var(--display); letter-spacing: -.015em; margin: 6px 0 6px; }
.card:hover h3 { color: var(--accent); }
.card p { margin: 0; color: var(--muted); font-size: 16px; }

/* ---------------- case study ---------------- */
.case-head { padding: 48px 0 32px; }
.back { display: inline-flex; gap: 6px; margin-bottom: 28px; color: var(--muted); text-decoration: none; }
.case-head .kicker { color: var(--accent); margin: 0 0 14px; }
.case-head h1 { font: 600 clamp(36px, 6.5vw, 72px)/1.03 var(--display); letter-spacing: -.035em; margin: 0 0 18px; max-width: 18ch; }
.case-head .tagline { font-size: clamp(19px, 2.4vw, 24px); line-height: 1.45; color: var(--muted); max-width: 34em; margin: 0 0 32px; }
.meta { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin: 0; }
.meta div { background: var(--surface); padding: 14px 16px; }
.meta dt { font: 500 11.5px/1.2 var(--mono); text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-bottom: 6px; }
.meta dd { margin: 0; font-size: 15px; line-height: 1.45; }
@media (min-width: 720px) { .meta { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .meta { grid-template-columns: repeat(4, 1fr); } }
.case-hero { margin: 8px auto 56px; }
.case-hero .frame { border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: var(--sunk); }
.case-hero .frame.dark { background: #000; border-color: #000; }
.case-hero .frame.phones { display: flex; justify-content: center; gap: 4%; padding: 6% 6% 0; background: linear-gradient(160deg, var(--accent-soft), var(--sunk)); }
.case-hero .frame.phones img { width: 30%; filter: drop-shadow(0 24px 40px rgba(0,0,0,.18)); }
.case-hero .frame.art { display: grid; place-items: center; padding: 24px; }

.body { max-width: var(--text); margin: 0 auto; }
.body > .lede { font-size: clamp(19px, 2.3vw, 22px); line-height: 1.55; margin: 0 0 40px; }
.body h2 { font: 600 clamp(24px, 3.4vw, 32px)/1.15 var(--display); letter-spacing: -.02em; margin: 56px 0 14px; }
.body p { margin: 0 0 18px; }
.body ul.points { margin: 0 0 24px; padding: 0; list-style: none; display: grid; gap: 12px; }
.body ul.points li { position: relative; padding-left: 26px; }
.body ul.points li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); }
figure { margin: 32px 0; }
figure .im { border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: var(--sunk); }
figure.wide { margin-left: calc((var(--text) - min(1100px, 100vw - 2 * var(--pad))) / 2); margin-right: calc((var(--text) - min(1100px, 100vw - 2 * var(--pad))) / 2); }
@media (max-width: 760px) { figure.wide { margin-left: 0; margin-right: 0; } }
figure.inset { max-width: 560px; }
figcaption { margin-top: 10px; font-size: 14px; line-height: 1.5; color: var(--muted); }
figure.phones .row { display: flex; justify-content: center; gap: 3%; padding: 5% 5% 0; border-radius: var(--r); background: linear-gradient(160deg, var(--accent-soft), var(--sunk)); overflow: hidden; }
figure.phones .row img { width: 30%; filter: drop-shadow(0 18px 32px rgba(0,0,0,.16)); }
figure.grid .row { display: grid; gap: 12px; }
@media (min-width: 640px) { figure.grid.c2 .row { grid-template-columns: 1fr 1fr; } }
figure.grid .row .im img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
figure.grid.dark .row .im { background: #000; border-color: #000; }
.decisions { display: grid; gap: 12px; margin: 24px 0 32px; padding: 0; list-style: none; counter-reset: d; }
.decisions li { counter-increment: d; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; }
.decisions li::before { content: counter(d, decimal-leading-zero); display: block; font: 500 12px/1 var(--mono); color: var(--accent); margin-bottom: 10px; }
.decisions h3 { font: 600 19px/1.3 var(--display); margin: 0 0 6px; letter-spacing: -.01em; }
.decisions p { margin: 0; color: var(--muted); font-size: 16px; }
.callout { margin: 32px 0; padding: 22px 24px; border-radius: var(--r); background: var(--ink); color: var(--bg); }
.callout h3 { font: 600 clamp(20px, 2.6vw, 24px)/1.25 var(--display); margin: 0 0 8px; letter-spacing: -.01em; }
.callout p { margin: 0; opacity: .85; }
.next { margin-top: 72px; border-top: 1px solid var(--line); padding-top: 28px; display: grid; gap: 12px; }
.next a { text-decoration: none; display: block; }
.next .label { color: var(--muted); }
.next strong { display: block; font: 600 clamp(26px, 4vw, 40px)/1.1 var(--display); letter-spacing: -.02em; margin-top: 6px; }
.next a:hover strong { color: var(--accent); }

/* ---------------- archive, about ---------------- */
.page-head { padding: 56px 0 24px; }
.page-head h1 { font: 600 clamp(40px, 7vw, 72px)/1.03 var(--display); letter-spacing: -.035em; margin: 0 0 16px; }
.page-head p { font-size: clamp(18px, 2.2vw, 21px); color: var(--muted); max-width: 38em; margin: 0; }
.arch { display: grid; gap: 28px; }
@media (min-width: 720px) { .arch { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .arch { grid-template-columns: repeat(3, 1fr); } }
.arch article .media { aspect-ratio: 4 / 3; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: var(--sunk); margin-bottom: 14px; }
.arch article .media img { width: 100%; height: 100%; object-fit: cover; }
.arch h2 { font: 600 21px/1.25 var(--display); margin: 6px 0 6px; letter-spacing: -.01em; }
.arch p { margin: 0; color: var(--muted); font-size: 16px; }
.arch .gal { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 12px; }
.arch .gal img { aspect-ratio: 1; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); }
.about { display: grid; gap: 48px; }
@media (min-width: 960px) { .about { grid-template-columns: 1fr 1.25fr; gap: 72px; } }
.about .bio p { margin: 0 0 18px; }
.about .bio .lede { font: 500 clamp(20px, 2.5vw, 24px)/1.45 var(--display); letter-spacing: -.01em; }
.tl { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.tl li { display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.tl .when { font: 500 13px/1.6 var(--mono); color: var(--muted); }
.tl strong { font: 600 18px/1.3 var(--display); display: block; }
.tl span { color: var(--muted); font-size: 15px; }
.skills { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin-top: 32px; }
.skills div { background: var(--surface); padding: 16px 18px; }
.skills dt { font: 500 12px/1 var(--mono); text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.skills dd { margin: 0; font-size: 15.5px; }
.verify { background: #FFE58A; color: #000; padding: 0 3px; border-radius: 3px; }

/* ---------------- motion ---------------- */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .feature, .card, figure, .decisions li, .arch article { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 40%; }
  }
}
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* quotes */
.quotes { display: grid; gap: 16px; margin-top: 36px; }
.quotes.two { margin-top: 0; }
@media (min-width: 860px) { .quotes.two { grid-template-columns: 1fr 1fr; gap: 24px; } }
.q { margin: 0; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.q p { font: 500 clamp(18px, 2.1vw, 21px)/1.45 var(--display); letter-spacing: -.01em; margin: 0 0 16px; }
.q footer { font-size: 14px; color: var(--muted); }
.q footer strong { display: block; color: var(--ink); font-weight: 600; }

/* fixes */
.brand { white-space: nowrap; flex: none; }
@media (max-width: 560px) { .nav a { padding: 8px 9px; font-size: 13.5px; } .top .wrap { gap: 8px; } }
.feature .media.phone { position: relative; display: block; }
.feature .media.phone img { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: auto; height: 90%; margin: 0; object-fit: contain; }
.feature:hover .media.phone img { transform: translateX(-50%) scale(1.02); }
.feature .media.phone img, .case-hero .frame.phones img, figure.phones .row img, .mosaic .tall img { border-radius: 8.2% / 3.95%; }
.mosaic .tall { background: linear-gradient(160deg, var(--accent-soft), var(--sunk)); }
.mosaic .tall img { width: 86%; height: auto; margin: 7% auto 0; object-fit: contain; }

/* archive: show every image whole, uncropped */
.arch { align-items: start; }
.arch article .media { display: block; aspect-ratio: auto; }
.arch article .media img { height: auto; object-fit: contain; display: block; }
.arch h2 a { color: inherit; text-decoration: none; }
.arch h2 a:hover { text-decoration: underline; }
.arch .gal { align-items: start; }
.arch .gal img { aspect-ratio: auto; height: auto; object-fit: contain; background: var(--sunk); }

/* table block (case studies) */
figure.table table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
figure.table th, figure.table td { text-align: left; vertical-align: top; padding: 14px 16px; border-top: 1px solid var(--line); }
figure.table thead th { border-top: 0; background: var(--sunk); font: 500 12px/1.2 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
figure.table tbody th { font: 500 14px/1.4 var(--mono); white-space: nowrap; }
figure.table td ul { margin: 0; padding-left: 18px; }
figure.table td li + li { margin-top: 4px; }
figure.table code { font: 13px var(--mono); }
@media (max-width: 720px) {
  figure.table thead { display: none; }
  figure.table tr { display: block; border-top: 1px solid var(--line); padding: 14px 16px; }
  figure.table tr:first-child { border-top: 0; }
  figure.table th, figure.table td { display: block; border: 0; padding: 0; }
  figure.table tbody th { white-space: normal; margin-bottom: 4px; }
  figure.table td { margin-top: 8px; }
  figure.table td::before { content: attr(data-label); display: block; font: 500 11px/1.2 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
}
figure.table tbody th { font-family: var(--body); font-weight: 600; }
figure.table tbody th code { font-weight: 500; }

.hero .stance { margin: 20px 0 0; max-width: 36em; padding-left: 16px; border-left: 3px solid var(--accent, currentColor); font-size: 17px; line-height: 1.6; color: var(--ink); }
.hero h1 { font-size: clamp(38px, 6vw, 64px); max-width: 18ch; }
.hero .lede { margin-bottom: 0; } .hero .lede + .lede { margin-top: 16px; }
.hero .stance { margin: 22px 0 28px; }

.approach-intro { max-width: 44em; margin: 0 0 8px; font-size: 18px; }
.decisions.four { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-bottom: 0; }

/* ---------- embedded Fluxions lesson (styles taken from the tutor, scoped) ---------- */
.flux-panel{--paper:#F2F5F8;--grid:#D3DCE6;--ink:#1C2B3A;--ink-soft:#4E6172;--brass:#B07C1E;--verdigris:#2E7D6F;--rose:#B3455A;--white:#FFFFFF;
  --serif:"Iowan Old Style","Palatino Linotype",Palatino,"Book Antiqua",Georgia,serif;--sans:"Avenir Next","Segoe UI",Helvetica,Arial,sans-serif;
  background:var(--paper);color:var(--ink);font-family:var(--serif);font-size:17px;line-height:1.55;border-radius:16px;padding:22px;text-align:left}
.flux-panel *{box-sizing:border-box}
.flux-panel .stage{background:var(--white);border:1px solid var(--grid);border-radius:10px;overflow:hidden}
.flux-panel canvas{display:block;width:100%;height:auto;touch-action:none;cursor:crosshair}
.flux-panel .controls{display:flex;flex-wrap:wrap;gap:14px 28px;align-items:center;padding:14px 18px;border-top:1px solid var(--grid);font-family:var(--sans);font-size:14px;background:#FAFBFD}
.flux-panel .controls label{display:flex;align-items:center;gap:10px;color:var(--ink-soft)}
.flux-panel .controls input[type=range]{width:180px;max-width:50vw;accent-color:var(--brass)}
.flux-panel .controls .hint{color:var(--ink-soft);font-size:13px;margin-left:auto}
.flux-panel input:focus-visible,.flux-panel button:focus-visible,.flux-panel summary:focus-visible{outline:2px solid var(--brass);outline-offset:2px}
.flux-panel .readout{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:10px;margin:14px 0 0}
.flux-panel .readout>div{background:var(--white);border:1px solid var(--grid);border-radius:8px;padding:12px 14px}
.flux-panel .readout .k{font-family:var(--sans);font-size:12px;color:var(--ink-soft);margin-bottom:4px}
.flux-panel .readout .v{font-size:20px;font-variant-numeric:tabular-nums;letter-spacing:-.01em}
.flux-panel .readout .v.brass{color:var(--brass)} .flux-panel .readout .v.green{color:var(--verdigris)}
.flux-panel .readout .eq{font-size:15px;color:var(--ink-soft);margin-top:4px}
.flux-panel .prose{max-width:66ch;margin-top:22px}
.flux-panel .prose p{margin:0 0 14px}
.flux-panel .prose em{color:var(--brass);font-style:normal;font-weight:600}
.flux-panel .prose .try{border-left:3px solid var(--verdigris);padding:8px 14px;margin:16px 0;background:#EEF5F3;border-radius:0 6px 6px 0}
.flux-panel .prose .try b{font-family:var(--sans);font-size:13px;color:var(--verdigris);display:block;margin-bottom:3px;font-weight:600}
.flux-panel .math{font-style:italic}
.flux-panel .info{background:var(--white);border:1px solid var(--grid);border-radius:10px;margin-top:8px}
.flux-panel .info summary{cursor:pointer;padding:14px 18px;font-family:var(--sans);font-size:15px;font-weight:600;color:var(--ink);list-style:none;display:flex;align-items:center;gap:10px}
.flux-panel .info summary::-webkit-details-marker{display:none}
.flux-panel .info summary::before{content:"+";display:inline-grid;place-items:center;width:20px;height:20px;border-radius:50%;background:#E7EDF3;color:var(--ink-soft);font-weight:600}
.flux-panel .info[open] summary::before{content:"−"}
.flux-panel .info summary span{font-weight:400;color:var(--ink-soft);font-size:13px}
.flux-panel .info .body{padding:4px 18px 18px;border-top:1px solid var(--grid)}
.flux-panel .info h4{font-size:17px;margin:20px 0 8px;font-weight:600}
.flux-panel .info p{margin:0 0 10px;font-size:16px}
.flux-panel .info ol.steps{margin:6px 0 14px;padding-left:0;list-style:none;counter-reset:s}
.flux-panel .info ol.steps li{counter-increment:s;position:relative;padding:8px 12px 8px 42px;margin:4px 0;background:#F7F9FB;border-radius:6px;font-size:16px}
.flux-panel .info ol.steps li::before{content:counter(s);position:absolute;left:12px;top:9px;width:20px;height:20px;border-radius:50%;background:var(--brass);color:#fff;font-family:var(--sans);font-size:12px;font-weight:600;display:grid;place-items:center}
.flux-panel .info ol.steps li .line{display:block;margin-top:4px;font-size:17px;color:var(--ink)}
.flux-panel .info .why{font-size:14px;color:var(--ink-soft);display:block;margin-top:2px}
.flux-panel .info .analogy{background:#EEF5F3;border-radius:6px;padding:10px 14px;margin:8px 0 14px;font-size:15px}
.flux-panel .quiz{background:var(--white);border:1px solid var(--grid);border-radius:10px;padding:16px 18px;margin-top:14px}
.flux-panel .quiz h3{font:600 13px/1.2 var(--sans);color:var(--brass);margin:0 0 6px;text-transform:uppercase;letter-spacing:.05em}
.flux-panel .quiz p{margin:0 0 10px}
.flux-panel .quiz .opts{display:grid;gap:8px}
.flux-panel .quiz button{font:15px/1.4 var(--sans);text-align:left;padding:10px 14px;border:1px solid var(--grid);border-radius:8px;background:#FAFBFD;color:var(--ink);cursor:pointer}
.flux-panel .quiz button:hover{border-color:var(--ink-soft)}
.flux-panel .quiz button.right{border-color:var(--verdigris);background:#EEF5F3}
.flux-panel .quiz button.wrong{border-color:var(--rose);background:#FBEEF1}
.flux-panel .quiz .fb{margin:10px 0 0;font-size:16px} .flux-panel .quiz .fb b{font-family:var(--sans)}
.flux-panel .flux-nojs{margin:0;font-family:var(--sans);color:var(--ink-soft)}
@media (max-width:600px){.flux-panel{padding:12px} .flux-panel .controls .hint{margin-left:0}}

.hero .stance p { margin: 0; } .hero .stance p + p { margin-top: 12px; }
/* tall collage tile now shows a desktop screen: fill the tile instead of framing a phone */
.mosaic .tall { background: var(--surface); }
.mosaic .tall img { width: 100%; height: 100%; margin: 0; object-fit: cover; object-position: 62% 0; border-radius: 0; }
.hero .git-note { max-width: 36em; margin: 0 0 28px; padding: 16px 20px; border-radius: 14px; background: color-mix(in srgb, var(--accent, #D9481C) 9%, transparent); border: 1px solid color-mix(in srgb, var(--accent, #D9481C) 35%, transparent); }
.hero .git-note .mono { display: block; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent, #D9481C); margin-bottom: 6px; }
.hero .git-note p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--ink); }
.hero .git-note a { color: inherit; font-weight: 600; text-decoration: underline; text-decoration-color: var(--accent, #D9481C); text-underline-offset: 3px; }
.arch.freebies { align-items: stretch; }
.arch.freebies > article { display: flex; flex-direction: column; padding: 16px 16px 20px; border: 1px solid var(--line, rgba(127,127,127,.3)); border-radius: 20px; background: var(--surface, transparent); }
.arch.freebies > article > p:not(.mono):not(.fb-cta) { font-size: 15px; line-height: 1.55; }
.arch.freebies .fb-cta { margin: auto 0 0; padding-top: 18px; }
.arch.freebies .fb-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.arch.freebies .fb-cta button.btn { background: transparent; color: var(--ink); cursor: pointer; }
dialog.fb-why { width: min(560px, calc(100vw - 32px)); padding: 28px 28px 24px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); color: var(--ink); box-shadow: 0 24px 60px rgba(0,0,0,.25); }
dialog.fb-why::backdrop { background: rgba(10,10,9,.55); backdrop-filter: blur(2px); }
dialog.fb-why .mono { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent, #D9481C); margin: 0 0 6px; }
dialog.fb-why h2 { font: 600 24px/1.2 var(--display); margin: 0 0 12px; }
dialog.fb-why p { color: var(--muted); font-size: 16px; line-height: 1.6; margin: 0; }
dialog.fb-why .fb-why-cta { margin-top: 20px; }
dialog.fb-why .fb-why-x { position: absolute; top: 12px; right: 12px; margin: 0; }
dialog.fb-why .fb-why-x button { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--ink); font-size: 20px; line-height: 1; cursor: pointer; }
.arch.freebies .fb-cta { gap: 8px; flex-wrap: nowrap; }
.arch.freebies .fb-cta .btn { height: 40px; padding: 0 15px; font-size: 14px; white-space: nowrap; }
@media (max-width: 380px) { .arch.freebies .fb-cta { flex-wrap: wrap; } }
.fb-path { margin: 0 0 40px; padding: 28px; border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); border-radius: 20px; background: color-mix(in srgb, var(--accent) 7%, transparent); }
.fb-path h2 { font: 600 24px/1.2 var(--display); margin: 0 0 8px; }
.fb-path .fp-intro { color: var(--muted); margin: 0 0 22px; max-width: 46em; }
.fp-stages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.fp-stage { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.fp-stage .mono { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin: 0 0 4px; }
.fp-stage .fp-note { color: var(--muted); font-size: 14px; line-height: 1.5; margin: 0 0 12px; }
.fp-stage ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.fp-stage ol a { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--ink); font-size: 14px; }
.fp-stage ol a:hover { border-color: var(--accent); }
.fp-n { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: var(--bg); font: 600 12px/1 var(--body); }
.arch.freebies .fp-badge { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin: 0 0 8px; }
.arch.freebies > article { scroll-margin-top: 90px; }
.arch.freebies > article:target { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
@media (max-width: 900px) { .fp-stages { grid-template-columns: 1fr; } .fb-path { padding: 20px; } }
.hero .git-note { max-width: 44em; }
.hero .git-note .gn-list { list-style: none; counter-reset: gn; display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; padding: 0; }
.hero .git-note .gn-list li { counter-increment: gn; }
.hero .git-note .gn-list a { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 5px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); text-decoration: none; font-weight: 500; font-size: 14px; }
.hero .git-note .gn-list a::before { content: counter(gn); display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: var(--bg); font-size: 11px; font-weight: 600; }
.hero .git-note .gn-list a:hover { border-color: var(--accent); }
.hero .git-note .gn-path { margin-top: 14px; font-size: 15px; }
.fb-path { scroll-margin-top: 90px; }
@media (max-width: 1100px) and (min-width: 901px) { .fp-stages { grid-template-columns: repeat(2, 1fr); } }
.hero-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.hero-side .mosaic { align-self: stretch; }
.hero-anim { position: relative; margin: 0; aspect-ratio: 1 / 1; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: #d3d1cb; }
.hero-anim canvas { display: block; width: 100%; height: 100%; }
.hero-anim button { position: absolute; bottom: 12px; border: 1px solid rgba(20,20,19,.35); background: rgba(244,242,237,.7); color: #141413; backdrop-filter: blur(4px); cursor: pointer; font: 500 12px/1 var(--mono); border-radius: 999px; }
.hero-anim .ha-toggle { right: 12px; width: 34px; height: 34px; letter-spacing: -.1em; }
.hero-anim .ha-replay { right: 54px; height: 34px; padding: 0 12px; }
.hero-anim button:focus-visible { outline: 2px solid #141413; outline-offset: 2px; }
@media (max-width: 959px) { .hero-anim { aspect-ratio: 4 / 3; } }
.hero .git-note.wide { grid-column: 1 / -1; max-width: none; margin: 8px 0 0; padding: 24px 28px; }
.hero .git-note.wide > p:not(.gn-path) { max-width: 62em; }
.hero .git-note.wide .gn-list { margin-top: 16px; }
/* header: keep the menu scrolling inside the header instead of widening the page */
.top .wrap > :first-child { flex-shrink: 0; }
.top nav { flex: 1 1 auto; min-width: 0; display: flex; justify-content: flex-end; }
.top .nav { min-width: 0; max-width: 100%; overscroll-behavior-x: contain; }
html, body { overflow-x: clip; }
@media (max-width: 560px) {
  .top .nav { -webkit-mask-image: linear-gradient(to right, transparent 0, #000 14px, #000 calc(100% - 22px), transparent 100%); mask-image: linear-gradient(to right, transparent 0, #000 14px, #000 calc(100% - 22px), transparent 100%); padding: 0 14px 0 8px; }
}
/* archive: short pieces open in a larger view */
.arc-open { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; font: inherit; text-align: inherit; }
.arc-title { padding: 0; border: 0; background: none; font: inherit; color: inherit; cursor: pointer; text-align: left; }
.arc-title:hover, .arc-title:focus-visible { text-decoration: underline; text-underline-offset: 4px; }
dialog.arc-dlg { width: min(1100px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow: auto; }
.arc-big { display: grid; gap: 16px; margin-top: 20px; }
.arc-big img { width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); background: #fff; }
figure.video video { display: block; width: 100%; height: auto; border-radius: var(--r); border: 1px solid var(--line); background: #000; }
.arc-big video { width: 100%; height: auto; border-radius: 12px; background: #000; }
.arc-open.has-video { position: relative; }
.arc-open.has-video::after { content: ""; position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%;
  background: rgba(12,11,16,.6) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M8 5v14l11-7z'/%3E%3C/svg%3E") 55% 50% / 28px no-repeat;
  border: 2px solid rgba(255,255,255,.8); }
figure.video.small { max-width: 760px; margin-left: auto; margin-right: auto; }
.arc-big h3 { font: 600 20px/1.3 var(--display); margin: 12px 0 0; }
.arc-big p { margin: 0; color: var(--muted); }
/* exact older case studies */
.body h3 { font: 600 20px/1.3 var(--display); margin: 32px 0 8px; }
.body blockquote { margin: 16px 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--accent); color: var(--muted); }
.body ol.points { padding-left: 1.4em; }
.toc { margin: 0 0 32px; padding: 18px 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.toc .mono { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin: 0 0 8px; }
.toc ol { margin: 0; padding-left: 1.3em; display: grid; gap: 4px; }
.body h2[id] { scroll-margin-top: 90px; }
.arc-body { gap: 12px; }
.arc-body h2 { font: 600 22px/1.25 var(--display); margin: 18px 0 0; }
.arc-body h3 { font: 600 18px/1.3 var(--display); margin: 12px 0 0; }
.arc-body figure { margin: 4px 0; }
.arc-body figure img, .arc-body video { width: 100%; height: auto; border-radius: 12px; }
.arc-body ul, .arc-body ol { margin: 0; padding-left: 1.3em; color: var(--muted); }
.arc-body blockquote { margin: 0; padding-left: 16px; border-left: 3px solid var(--accent); color: var(--muted); }
.pdf-link a { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); text-decoration: none; font-weight: 500; }
.pdf-link a:hover { border-color: var(--accent); }
.pdf-link .mono { font-size: 11px; letter-spacing: .08em; padding: 3px 6px; border-radius: 6px; background: var(--accent); color: #fff; }
/* galleries from the old site: a real grid of thumbnails */
figure.grid.c3 .row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
figure.grid.c3 .row .im, figure.grid.c3 .row img { display: block; width: 100%; height: auto; }
figure.grid.c3 .row img { aspect-ratio: auto; object-fit: contain; border-radius: 10px; border: 1px solid var(--line); background: #fff; }
.arc-body figure.grid.c3 .row { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 700px) { figure.grid.c3 .row, .arc-body figure.grid.c3 .row { grid-template-columns: repeat(2, 1fr); } }
/* older case studies: small source images are inset or paired, never stretched into wide frames */
figure.inset { margin-left: auto; margin-right: auto; }
figure.inset .im { width: fit-content; max-width: 100%; margin: 0 auto; }
figure.inset .im img { display: block; max-width: 100%; height: auto; }
figure.grid.fit .row { align-items: center; }
@media (min-width: 640px) { figure.grid.fit .row { grid-template-columns: 1fr 1fr; } }
figure.grid.fit .row .im img { aspect-ratio: auto; object-fit: contain; height: auto; display: block; }
.case-hero .frame.fit { max-width: 760px; margin: 0 auto; }
.case-hero .frame.fit img { display: block; width: 100%; height: auto; }
.prose .decisions li p, .decisions li p { line-height: 1.6; }
@media (min-width: 760px) { .decisions.three { grid-template-columns: repeat(3, 1fr); } }
/* a source image smaller than its frame: shrink the frame to the image and centre it */
figure.fit .im { width: fit-content; max-width: 100%; margin: 0 auto; }
figure.fit .im img { display: block; width: auto; max-width: 100%; height: auto; }
figure.fit figcaption { text-align: center; }
/* home: Learning Path box with the progress log panel on the right */
@media (min-width: 900px) { .hero .git-note.has-log { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 28px; align-items: start; } }
.hero .git-note.has-log { max-width: none; }
.git-note .gn-log { padding: 16px 18px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
@media (max-width: 899px) { .git-note .gn-log { margin-top: 18px; } }
.hero .git-note .gn-log p { font-size: 15px; }
.gn-meter { height: 8px; border-radius: 99px; background: var(--sunk); overflow: hidden; margin: 14px 0 6px !important; }
.gn-meter span { display: block; height: 100%; background: var(--accent, #D9481C); border-radius: inherit; }
.hero .git-note .gn-count, .gn-count { font-size: 14px; color: var(--muted); margin: 0; }
.gn-count strong { color: var(--ink); }
.hero .git-note .gn-latest { margin: 12px 0 0; font-size: 14px; }
.gn-latest .mono { display: block; font-size: 11px; color: var(--muted) !important; margin-bottom: 2px; letter-spacing: .06em; }
.hero .git-note .gn-log .gn-path { margin-top: 12px; }
/* progress log page */
.page-head .back { display: inline-block; margin-bottom: 18px; color: var(--muted); text-decoration: none; }
.lg-how a { color: inherit; }
.lg-tuts { list-style: none; counter-reset: gn; display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 28px; padding: 0; }
.lg-tuts li { counter-increment: gn; }
.lg-tuts a { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 5px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); text-decoration: none; font-size: 14px; color: var(--muted); }
.lg-tuts a::before { content: counter(gn); display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--sunk); color: var(--muted); font-size: 11px; font-weight: 600; }
.lg-tuts li.done a { color: var(--ink); border-color: var(--accent, #D9481C); font-weight: 500; }
.lg-tuts li.done a::before { content: "✓"; background: var(--accent, #D9481C); color: #fff; }
.lg-st { font: 500 12px/1 var(--mono); padding: 5px 8px; border-radius: 99px; background: var(--sunk); color: var(--muted); white-space: nowrap; }
.lg-st.done { background: color-mix(in srgb, #2E7D32 14%, transparent); color: #2E7D32; }
.lg-st.now { background: color-mix(in srgb, var(--accent, #D9481C) 14%, transparent); color: var(--accent, #D9481C); }
.lg-entry { padding: 24px 0; border-top: 1px solid var(--line); }
.lg-entry .kicker { color: var(--accent, #D9481C); margin: 0 0 8px; font-size: 12px; }
.lg-entry .kicker a { color: inherit; }
.lg-entry h3 { margin: 0 0 8px; }
.lg-entry h4 { font-size: 15px; margin: 18px 0 6px; }
.lg-learned { color: var(--muted); }
.lg-proofbox { margin-top: 16px; padding: 14px 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-size: 15px; }
.lg-proofbox .mono { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; }
.lg-proofbox .mono + .lg-status, .lg-ev { margin: 0 0 12px; }
.lg-ev { padding-left: 18px; }
.lg-status { margin: 0; }
.lg-entry.ok .lg-status::before { content: "✓ "; color: #2E7D32; font-weight: 700; }
.lg-proof { margin: 6px 0 0; font-size: 14px; }
/* KF-07 Kestrel blueprint, live layer */
.kf-bp { display: block; width: 100%; height: auto; }
.kf-bp .kf-scan { animation: kf-scan 7s linear infinite; }
.kf-bp .kf-core { animation: kf-core 2.4s ease-in-out infinite; }
.kf-bp .kf-ring { transform-box: fill-box; transform-origin: center; animation: kf-ring 2.4s ease-out infinite; }
.kf-bp .kf-beacon { animation: kf-beacon 1.6s steps(1) infinite; }
@keyframes kf-scan { from { transform: translateY(0); } to { transform: translateY(600px); } }
@keyframes kf-core { 0%, 100% { opacity: .35; } 50% { opacity: .95; } }
@keyframes kf-ring { from { transform: scale(1); opacity: .9; } to { transform: scale(2.1); opacity: 0; } }
@keyframes kf-beacon { 0% { opacity: 1; } 50% { opacity: .15; } }
@media (prefers-reduced-motion: reduce) { .kf-bp .kf-scan, .kf-bp .kf-ring { display: none; } .kf-bp .kf-core, .kf-bp .kf-beacon, .kbadge .kb-led { animation: none; opacity: .8; } }
/* home panel and Learning Path banner */
.gn-kf { display: block; margin: -16px -18px 14px; border-radius: 12px 12px 0 0; overflow: hidden; aspect-ratio: 340 / 200; background: rgb(11,47,92); }
.gn-kf .kf-bp { width: 100%; height: 100%; }
.kb-mini { list-style: none; display: flex; gap: 6px; margin: 10px 0 0; padding: 0; }
.kb-mini .kbadge { width: 34px; height: auto; display: block; }
.fb-log { display: grid; grid-template-columns: 1fr; gap: 0; margin-top: 24px; max-width: 760px; border-radius: 14px; overflow: hidden; border: 1px solid color-mix(in srgb, var(--accent, #D9481C) 35%, transparent); background: color-mix(in srgb, var(--accent, #D9481C) 7%, var(--surface)); color: var(--ink); text-decoration: none; }
@media (min-width: 700px) { .fb-log { grid-template-columns: 260px 1fr; } }
.fb-log-kf { display: block; background: rgb(11,47,92); min-height: 170px; }
.fb-log-kf .kf-bp { width: 100%; height: 100%; }
.fb-log-text { display: flex; flex-direction: column; gap: 8px; padding: 18px 22px; }
.fb-log-text .mono { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent, #D9481C); }
.fb-log-text > strong { font-weight: 500; font-size: 16px; line-height: 1.5; }
.fb-log .gn-meter { display: block; margin: 4px 0 0 !important; }
.fb-log .kb-mini { margin: 0; }
.fb-log-go { font-weight: 600; text-decoration: underline; text-decoration-color: var(--accent, #D9481C); text-underline-offset: 3px; }
.fb-log:hover { border-color: var(--accent, #D9481C); }
/* log page head with the schematic */
@media (min-width: 900px) { .lg-head .wrap { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; align-items: center; } }
.lg-kf { margin: 24px 0 0; max-width: 300px; }
@media (min-width: 900px) { .lg-kf { margin: 0; } }
.lg-kf .kf-bp { border-radius: 12px; border: 1px solid #2a5a96; }
.lg-kf figcaption { font-size: 11px; color: var(--muted); margin-top: 8px; text-align: center; letter-spacing: .04em; }
/* badges */
.kbadges { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 18px 12px; margin: 12px 0 32px; padding: 0; }
.kbadges li > a, .kbadges li > span { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; text-decoration: none; color: var(--ink); }
.kbadges .kbadge { width: 84px; height: auto; transition: transform .2s; }
.kbadges li > a:hover .kbadge { transform: translateY(-3px); }
.kbadges .kb-name { font-size: 13px; line-height: 1.3; font-weight: 500; }
.kbadges .kb-when { font-size: 10.5px; color: var(--muted); letter-spacing: .03em; }
.kbadges li.earned .kb-when { color: var(--accent, #D9481C); }
.kbadges li.locked .kbadge { opacity: .38; filter: grayscale(.6); }
.kbadges li.locked .kb-name { color: var(--muted); font-weight: 400; }
.kbadge.earned { filter: drop-shadow(0 4px 10px rgba(11,47,92,.35)); }
.kbadge .kb-led { animation: kf-core 2.4s ease-in-out infinite; }
.kbadges.ms { grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); }
/* the progress card (same as the home panel) beside page headings */
@media (min-width: 900px) { .page-head.has-card .wrap { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; align-items: start; } }
.page-head.has-card .gn-log { margin-top: 24px; max-width: 340px; overflow: hidden; }
@media (min-width: 900px) { .page-head.has-card .gn-log { margin-top: 0; } }
.page-head .gn-log .mono { display: block; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent, #D9481C); margin-bottom: 6px; }
.page-head .gn-log p { font-size: 15px; line-height: 1.55; margin: 0; color: var(--ink); }
.page-head .gn-log .gn-count { font-size: 14px; color: var(--muted); }
.page-head .gn-log .gn-latest { margin-top: 12px; font-size: 14px; }
.page-head .gn-log .gn-latest .mono { font-size: 11px; color: var(--muted); margin-bottom: 2px; }
.page-head .gn-log .gn-path { margin-top: 12px; }
.page-head .gn-log .gn-path a { color: inherit; font-weight: 600; text-decoration: underline; text-decoration-color: var(--accent, #D9481C); text-underline-offset: 3px; }
.page-head .gn-log { padding: 16px 18px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 1px 0 rgba(0,0,0,.02); }
/* Learning Path page banner: full content width, like the suggested path box below it */
.fb-log { max-width: none; }
@media (min-width: 700px) { .fb-log { grid-template-columns: 340px 1fr; } }
.fb-log-text { justify-content: center; padding: 22px 28px; }
.lg-ev li { margin-bottom: 8px; }
.lg-sha, .lg-fp { display: block; font-size: 11.5px; color: var(--muted); margin-top: 2px; letter-spacing: .02em; }
.lg-sha code, .lg-fp code { font-family: var(--mono); font-size: 11.5px; word-break: break-all; color: var(--ink); background: var(--sunk); padding: 1px 5px; border-radius: 4px; }
.lg-sha a { color: inherit; text-decoration: none; }
.lg-sha a:hover code { outline: 1px solid var(--accent, #D9481C); }
.lg-fp { margin: 0 0 6px; }
.lg-how p + p { margin-top: 10px; }
.lg-proofbox .lg-sha { text-transform: none; }
.lg-proofbox .lg-sha .lbl { text-transform: uppercase; }
.lg-sha code { text-transform: none; }
.lg-vbtn { margin: 12px 0 0; }
.lg-verify { font-size: 14px; padding: 8px 14px; }
.lg-steps { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; font-size: 14px; line-height: 1.5; }
.lg-steps li { position: relative; padding: 8px 12px 8px 34px; border-radius: 10px; background: var(--sunk); overflow-wrap: anywhere; }
.lg-steps li::before { position: absolute; left: 12px; top: 8px; font-weight: 700; }
.lg-steps li.ok::before { content: "✓"; color: #2E7D32; }
.lg-steps li.bad::before { content: "✕"; color: #C62828; }
.lg-steps li.wait::before { content: "⧗"; color: var(--accent, #D9481C); }
.lg-steps code { font-family: var(--mono); font-size: 12px; }
.gn-kf.full { aspect-ratio: auto; }
.gn-kf.full .kf-bp { height: auto; }
/* log page: card in two columns (full schematic | progress) */
@media (min-width: 900px) {
  .page-head.has-card .wrap { grid-template-columns: minmax(0, 1fr) 540px; gap: 40px; align-items: center; }
  .page-head.has-card .gn-log { max-width: none; display: grid; grid-template-columns: 230px 1fr; column-gap: 22px; align-content: start; }
  .page-head.has-card .gn-log > * { grid-column: 2; }
  .page-head.has-card .gn-log > .gn-kf { grid-column: 1; grid-row: 1 / span 20; margin: -16px 0 -16px -18px; border-radius: 12px 0 0 12px; align-self: stretch; display: flex; align-items: center; }
  .page-head.has-card .gn-log > .gn-meter { margin-top: 12px !important; }
}
@media (min-width: 900px) and (max-width: 1099px) { .page-head.has-card .wrap { display: block; } .page-head.has-card .gn-log { margin-top: 28px; max-width: 640px; } }
@media (min-width: 600px) and (max-width: 899px) {
  .page-head.has-card .gn-log { max-width: 640px; display: grid; grid-template-columns: 210px 1fr; column-gap: 20px; align-content: start; }
  .page-head.has-card .gn-log > * { grid-column: 2; }
  .page-head.has-card .gn-log > .gn-kf { grid-column: 1; grid-row: 1 / span 20; margin: -16px 0 -16px -18px; border-radius: 12px 0 0 12px; align-self: stretch; display: flex; align-items: center; }
}
/* home: three work sections */
.groups { display: grid; gap: 28px; }
.group { display: flex; flex-direction: column; text-decoration: none; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); padding: 16px 16px 22px; transition: border-color .2s, transform .3s cubic-bezier(.2,.7,.2,1); }
.group:hover { border-color: var(--ink); transform: translateY(-3px); }
.gthumbs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 18px; }
.gthumbs .gt { aspect-ratio: 16 / 10; border-radius: calc(var(--r) * .6); overflow: hidden; border: 1px solid var(--line); background: var(--sunk); }
.gthumbs .gt:first-child { grid-column: 1 / -1; }
.gthumbs .gt[hidden] { display: none; }
.gthumbs .gt.dark { background: #000; }
.gthumbs img { width: 100%; height: 100%; object-fit: cover; object-position: top left; display: block; }
.group h3 { font: 600 clamp(26px, 3vw, 32px)/1.1 var(--display); letter-spacing: -.02em; margin: 8px 0 8px; }
.group:hover h3 { color: var(--accent); }
.group p { margin: 0; color: var(--muted); font-size: 16px; }
.group .more { margin-top: auto; padding-top: 18px; font: 500 14px/1 var(--body); }
@media (min-width: 900px) { .groups { grid-template-columns: repeat(3, 1fr); gap: 28px; } }
/* small screens: no hero highlights, and the Learning Path panel folds */
.gn-toggle { display: none; }
@media (max-width: 719px) {
  .hero-side .mosaic { display: none; }
  .js .gn-toggle { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; padding: 12px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; cursor: pointer; text-align: left; color: var(--ink); font: 600 15px/1.3 var(--body); }
  .js .gn-chev { width: 8px; height: 8px; border-right: 2px solid var(--accent, #D9481C); border-bottom: 2px solid var(--accent, #D9481C); transform: rotate(45deg); transition: transform .2s; margin: -3px 4px 0 0; flex: none; }
  .js #gn-fold.open .gn-chev { transform: rotate(-135deg); margin-top: 4px; }
  .js #gn-fold .gn-t-close, .js #gn-fold.open .gn-t-open { display: none; }
  .js #gn-fold.open .gn-t-close { display: inline; }
  .js #gn-fold:not(.open) .gn-list, .js #gn-fold:not(.open) .gn-main > .gn-path, .js #gn-fold:not(.open) > .gn-log { display: none; }
}
/* Past Work: bordered cards with hover, like the Learning Path cards */
.arch[data-order-group] { align-items: stretch; }
.arch[data-order-group] > article { display: flex; flex-direction: column; padding: 16px 16px 20px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); transition: border-color .2s, transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s; }
.arch[data-order-group] > article:hover { border-color: var(--ink); transform: translateY(-3px); box-shadow: 0 10px 28px rgba(0,0,0,.08); }
.arch[data-order-group] > article:hover h2, .arch[data-order-group] > article:hover h2 .arc-title { color: var(--accent); }
.arch[data-order-group] > article .media img { transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.arch[data-order-group] > article:hover .media img { transform: scale(1.03); }
.arch[data-order-group] > article .media { border-radius: 12px; }
.arch[data-order-group] .fb-cta { margin: auto 0 0; padding-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.arch[data-order-group] .fb-cta .btn { height: 40px; padding: 0 15px; font-size: 14px; white-space: nowrap; cursor: pointer; }
.arch[data-order-group] .fb-cta a.btn:not(.primary) { background: transparent; color: var(--ink); }
.arc-embed { aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #000; }
.arc-embed iframe { width: 100%; height: 100%; border: 0; display: block; }
/* learning path: a document shown in a pop-up */
.fp-doc { margin: 14px 0 0; padding-top: 12px; border-top: 1px dashed var(--line); }
.fp-doc-btn { background: none; border: 0; padding: 0; cursor: pointer; color: var(--ink); font: 600 14px/1.4 var(--body); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--accent); text-align: left; }
.fp-doc-btn:hover { color: var(--accent); }
dialog.fb-doc { width: min(920px, calc(100vw - 24px)); max-height: min(88vh, 1000px); overflow: auto; padding: 28px 32px 32px; }
dialog.fb-doc .fb-why-x { position: sticky; top: 0; float: right; margin: -8px -12px 0 12px; z-index: 2; }
dialog.fb-doc .fb-why-x button { background: var(--surface); }
.doc-body { color: var(--ink); font-size: 15.5px; line-height: 1.6; }
.doc-body p, dialog.fb-doc .doc-body p { color: var(--ink); font-size: 15.5px; margin: 0 0 12px; }
.doc-body h2, dialog.fb-doc .doc-body h2 { font: 600 20px/1.25 var(--display); margin: 30px 0 10px; padding-top: 18px; border-top: 1px solid var(--line); }
.doc-body h3 { font: 600 16px/1.3 var(--display); margin: 22px 0 8px; }
.doc-body ul, .doc-body ol { margin: 0 0 12px; padding-left: 22px; }
.doc-body code { font: 13px/1.4 var(--mono); background: var(--sunk); padding: 1px 5px; border-radius: 4px; }
.doc-body pre { background: var(--sunk); padding: 12px 14px; border-radius: 10px; overflow: auto; } .doc-body pre code { background: none; padding: 0; }
.doc-t { overflow-x: auto; margin: 0 0 16px; border: 1px solid var(--line); border-radius: 10px; }
.doc-body table { border-collapse: collapse; width: 100%; font-size: 14px; line-height: 1.45; }
.doc-body th, .doc-body td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.doc-body th { font: 600 12px/1.3 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); background: var(--sunk); white-space: nowrap; }
.doc-body tr:last-child td { border-bottom: 0; }
.doc-body td:first-child code { white-space: nowrap; }
@media (max-width: 700px) { dialog.fb-doc { padding: 20px 16px 24px; } }
dialog.fb-why .fb-updated { margin-top: 14px; font: 500 12px/1.4 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }

.hero .hero-wide { grid-column: 1 / -1; min-width: 0; }
.hero .hero-wide .stance { max-width: none; margin-top: 0; }
.hl-w { transition: background-color .25s ease, color .25s ease; padding: .12em 0; }
@media (prefers-reduced-motion: reduce) { .hl-w { transition: none; } }
.hl-w.on { background-color: color-mix(in srgb, var(--accent, #D9481C) 20%, transparent); color: var(--ink); }
@media (prefers-color-scheme: dark) { .hl-w.on { background-color: color-mix(in srgb, var(--accent, #FF7A4D) 42%, transparent); } }
.kb-vet { display: inline-flex; vertical-align: middle; margin-left: 2px; }
.kb-vet .kbadge { width: 20px; height: auto; display: block; filter: none; }
.fp-badge .kb-vet { margin-left: 8px; } .fp-badge .kb-vet .kbadge { width: 26px; }
.proof { margin: 10px 0 30px; padding: 16px 20px 18px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.proof .mono { display: block; margin-bottom: 6px; color: var(--accent); font-size: 12px; letter-spacing: .08em; }
.proof p { margin: 0; font-size: 16px; line-height: 1.6; }
.body > p:has(+ .proof) { margin-bottom: 0; }
.prompt { margin: 18px 0 30px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.prompt-bar { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px 10px 20px; border-bottom: 1px solid var(--line); background: var(--sunk); }
.prompt-bar .mono { color: var(--accent); font-size: 12px; letter-spacing: .08em; }
.prompt-copy { font: 500 13px var(--body); padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.prompt-copy:hover { border-color: var(--ink); }
.prompt pre { margin: 0; padding: 18px 20px 20px; font: 400 13.5px/1.6 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; max-height: 560px; overflow: auto; }
dialog.fb-why p + p { margin-top: 12px; }
dialog.fb-why .fb-lead { color: var(--ink); font-weight: 600; }
dialog.fb-why .fb-points { margin: 8px 0 14px; padding-left: 20px; color: var(--muted); font-size: 16px; line-height: 1.55; }
dialog.fb-why .fb-points li { margin: 2px 0; }
dialog.fb-why .fb-updated { margin-top: 14px; }
.ki { margin: 30px 0 34px; }
.ki h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ki .lg-st.open { background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }
.ki-tuts { font-size: 15px; } .ki-tuts .mono { display: block; font-size: 12px; letter-spacing: .08em; color: var(--muted); margin-bottom: 4px; }
.ki .table { margin: 6px 0 18px; } .ki .table table { width: auto; min-width: 320px; }
.ki-meanwhile { padding-left: 14px; border-left: 3px solid var(--accent); }
.ki-fixed h3, .ki-fixed > p { opacity: .65; } .ki-fixed > p strong { text-decoration: line-through; }

/* An optional tutorial in the learning path: no step number, and it is left out of the progress count. */
.fp-stage ol .fp-opt a { border-style: dashed; }
.fp-stage ol .fp-opt .fp-n { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.fp-tag { font: 600 10px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
/* LinkedIn button in the Full Stack Designers menu */
.nav a.nav-cta { color: var(--on-accent, #fff); background: var(--accent); }
.nav a.nav-cta:hover { color: var(--on-accent, #fff); background: var(--accent); filter: brightness(1.08); }
