/* Gamut Labs — site styles. Paper and ink, teal as signature. */
@import url('https://fonts.googleapis.com/css2?family=Hanken+Grotesk:ital,wght@0,300..700;1,300..700&display=swap');
/* The hand: Daniel Bold by Daniel Midgley (free for any use; licence note travels with the file in assets/fonts). Served unmodified. */
@font-face { font-family: "Daniel"; src: url("assets/fonts/danielbd.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }

:root {
  color-scheme: light;
  --paper: #f7f6f2; --paper-2: #ffffff; --ink: #1b1f23; --ink-2: #4f555c; --ink-3: #8a9097;
  --hair: #e6e3dc; --teal: #347e97; --teal-ink: #2a6b81; --teal-tint: #e6eff2; --teal-wash: rgba(52,126,151,0.08);
  --wo: #2f4858; --ptg: #a8613f;
  --serif: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif; --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif; --hand: "Daniel", "Hanken Grotesk", cursive;
  --max: 1120px; --gutter: clamp(20px, 5vw, 56px);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { color-scheme: dark; --paper: #141618; --paper-2: #1c1f22; --ink: #f2f1ec; --ink-2: #b9bdc2; --ink-3: #7e848b; --hair: #2a2e33; --teal: #7cc4ff; --teal-ink: #9fd4ff; --teal-tint: #182a30; --teal-wash: rgba(124,196,255,0.12); }
}
:root[data-theme="dark"] { color-scheme: dark; --paper: #141618; --paper-2: #1c1f22; --ink: #f2f1ec; --ink-2: #b9bdc2; --ink-3: #7e848b; --hair: #2a2e33; --teal: #7cc4ff; --teal-ink: #9fd4ff; --teal-tint: #182a30; --teal-wash: rgba(124,196,255,0.12); }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: var(--teal-ink); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
img, video { max-width: 100%; display: block; }
img { height: auto; } img.logo, img.wordmark { width: auto; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.12; letter-spacing: -0.01em; margin: 0 0 0.4em; }
h1 { font-size: clamp(38px, 6vw, 64px); }
h2 { font-size: clamp(28px, 3.6vw, 40px); }
h3 { font-size: clamp(21px, 2.2vw, 26px); }
p { margin: 0 0 1em; }
.lede { font-size: clamp(18px, 1.6vw, 21px); color: var(--ink-2); max-width: 44ch; }
.eyebrow { font-family: var(--sans); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal); font-weight: 600; margin-bottom: 14px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
section { padding: clamp(56px, 8vw, 112px) 0; }
section.tight { padding: clamp(36px, 5vw, 64px) 0; }
.band { background: var(--teal-tint); }
.hairline { border-top: 1px solid var(--hair); }
.grid { display: grid; gap: clamp(20px, 3vw, 40px); }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid.four { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* header */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--paper) 86%, transparent); backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--hair); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.top .wordmark { height: 22px; width: auto; }
.top .wordmark.dark { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .top .wordmark.light { display: none; } :root:not([data-theme="light"]) .top .wordmark.dark { display: block; } }
.top nav { display: flex; gap: clamp(14px, 2.4vw, 30px); font-size: 14px; font-weight: 500; }
.top nav a { color: var(--ink-2); }
.top nav a.active, .top nav a:hover { color: var(--ink); text-decoration: none; }
.top nav .cta { color: var(--teal-ink); }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 13px 20px; border-radius: 999px; border: 1px solid var(--hair); background: var(--paper-2); color: var(--ink); font-weight: 500; font-size: 15px; transition: transform .15s ease, border-color .15s; }
.btn:hover { text-decoration: none; transform: translateY(-1px); border-color: var(--ink-3); }
.btn.primary { background: var(--teal); border-color: var(--teal); color: #fff; }
.btn.primary:hover { background: var(--teal-ink); border-color: var(--teal-ink); }
.btn .arrow { transition: transform .15s; }
.btn:hover .arrow { transform: translateX(3px); }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

/* hero with media */
.hero { position: relative; min-height: min(78vh, 760px); display: grid; align-items: end; overflow: hidden; }
.hero .media { position: absolute; inset: 0; }
.hero .media video, .hero .media img { width: 100%; height: 100%; object-fit: cover; }
.hero .media .ambient { position: absolute; inset: 0; background:
  radial-gradient(60% 50% at 20% 30%, rgba(52,126,151,0.35), transparent 60%),
  radial-gradient(50% 40% at 80% 70%, rgba(168,97,63,0.18), transparent 60%),
  linear-gradient(180deg, #d9d5cb, #b9c6c9);
  animation: drift 24s ease-in-out infinite alternate; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hero .media .ambient { background: radial-gradient(60% 50% at 20% 30%, rgba(76,154,179,0.35), transparent 60%), radial-gradient(50% 40% at 80% 70%, rgba(168,97,63,0.2), transparent 60%), linear-gradient(180deg, #23292e, #131a1e); } }
@keyframes drift { from { transform: scale(1) translate(0,0); } to { transform: scale(1.06) translate(-1.5%, 1%); } }
.hero .scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,22,24,0) 30%, rgba(20,22,24,0.55) 100%); }
.hero .content { position: relative; padding: clamp(40px, 6vw, 80px) 0; color: #fff; }
.hero .content .eyebrow { color: #fff; opacity: .85; }
.hero .content .lede { color: rgba(255,255,255,0.86); }
.hero.quiet { min-height: 0; color: var(--ink); }
.hero.quiet .content { color: var(--ink); padding-top: clamp(56px, 9vw, 120px); }
.hero.quiet .content .eyebrow { color: var(--teal); opacity: 1; }
.hero.quiet .content .lede { color: var(--ink-2); }
@media (prefers-reduced-motion: reduce) { .hero .media .ambient { animation: none; } .reveal { opacity: 1 !important; transform: none !important; } }

/* brand cards */
.brand-card { display: block; position: relative; border: 1px solid var(--hair); border-radius: 18px; overflow: hidden; background: var(--paper-2); color: var(--ink); transition: transform .2s ease, box-shadow .2s ease; }
.brand-card:hover { text-decoration: none; transform: translateY(-3px); box-shadow: 0 14px 34px rgba(20,22,24,0.08); }
.brand-card .art { aspect-ratio: 16/9; background: var(--teal-tint); display: grid; place-items: center; }
.brand-card .art.wo { background: linear-gradient(135deg, #e3e8ec, #cfd8de); }
.brand-card .art.mm { background: linear-gradient(135deg, #e6eff2, #cfe0e6); }
.brand-card .art.ptg { background: linear-gradient(135deg, #f1e7e0, #e4d2c6); }
.brand-card .art svg { width: 64px; height: 64px; }
.brand-card .body { padding: 22px 24px 26px; }
.brand-card h3 { margin-bottom: 6px; }
.brand-card p { color: var(--ink-2); margin: 0 0 14px; font-size: 15.5px; }
.brand-card .more { color: var(--teal-ink); font-weight: 500; font-size: 14px; }

/* feature list / properties */
.props { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; }
.prop h3 { font-size: 22px; margin-bottom: 6px; }
.prop .rule { width: 28px; height: 2px; background: var(--teal); margin-bottom: 14px; }
.prop p { color: var(--ink-2); font-size: 15.5px; margin: 0; }
.mark-lg { width: clamp(120px, 18vw, 200px); height: auto; color: var(--teal); }
.mark-draw path { stroke: var(--teal); stroke-width: 2; fill: var(--teal); fill-opacity: 0; stroke-dasharray: 700; stroke-dashoffset: 700; animation: draw 2.4s ease forwards, fillin 1s ease 2.2s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fillin { to { fill-opacity: 1; } }

/* media figure placeholders */
.figure { border-radius: 16px; overflow: hidden; background: var(--teal-tint); aspect-ratio: 4/3; display: grid; place-items: center; color: var(--ink-3); font-size: 13px; }
.figure.wide { aspect-ratio: 21/9; }
.figure.photo-1 { background: linear-gradient(160deg, #cdd7db, #9fb3ba); }
.figure.photo-2 { background: linear-gradient(160deg, #e9dfd6, #c9b3a3); }
.figure.photo-3 { background: linear-gradient(160deg, #d7dfe3, #aab9c2); }
figcaption { font-size: 13px; color: var(--ink-3); margin-top: 8px; }

/* posts */
.post { padding: 22px 0; border-top: 1px solid var(--hair); display: grid; grid-template-columns: 110px 1fr; gap: 18px; align-items: baseline; }
.post .meta { font-size: 13px; color: var(--ink-3); }
.post h3 { font-size: 21px; margin-bottom: 4px; }
.post p { color: var(--ink-2); margin: 0; font-size: 15.5px; }
.tag { display: inline-block; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--teal); font-weight: 600; margin-left: 8px; }
@media (max-width: 560px) { .post { grid-template-columns: 1fr; gap: 4px; } }

/* stat / chart card */
.card { background: var(--paper-2); border: 1px solid var(--hair); border-radius: 18px; padding: 26px; }
.stat .n { font-family: var(--serif); font-size: 44px; line-height: 1; }
.stat .l { color: var(--ink-2); font-size: 14px; margin-top: 6px; }

/* footer */
footer { border-top: 1px solid var(--hair); padding: 40px 0 60px; font-size: 14px; color: var(--ink-2); }
footer .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px; }
footer strong { color: var(--ink); font-weight: 600; display: block; margin-bottom: 8px; }
footer a { color: var(--ink-2); display: block; margin: 4px 0; }
footer .fine { margin-top: 30px; color: var(--ink-3); font-size: 13px; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.quote { font-family: var(--serif); font-size: clamp(24px, 3vw, 34px); line-height: 1.3; max-width: 26ch; }
.quote em { font-style: italic; color: var(--teal-ink); }

/* ---- pass 2: media, rhythm, sub-nav */
.hero.flock { min-height: min(86vh, 820px); background: var(--paper); }
.hero.flock canvas { position: absolute; inset: 0; width: 100%; height: 100%; --flock: #347e97; }
.hero.flock .scrim { background: linear-gradient(180deg, rgba(247,246,242,0) 40%, rgba(247,246,242,0.85) 100%); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hero.flock canvas { --flock: #6db2c8; } :root:not([data-theme="light"]) .hero.flock .scrim { background: linear-gradient(180deg, rgba(20,22,24,0) 40%, rgba(20,22,24,0.85) 100%); } }
.hero.flock .content { color: var(--ink); }
.hero.flock .content .eyebrow { color: var(--teal); opacity: 1; }
.hero.flock .content .lede { color: var(--ink-2); }
.hero.flock h1 { font-size: clamp(44px, 7vw, 84px); max-width: 14ch; }

/* dark passage */
.dark { background: #1b1f23; color: #f2f1ec; }
.dark .eyebrow { color: #6db2c8; }
.dark .lede, .dark p { color: #b9bdc2; }
.dark .card { background: #23282d; border-color: #2f353b; }
.dark .btn { background: transparent; color: #f2f1ec; border-color: #454c53; }
.dark .btn.primary { background: #4c9ab3; border-color: #4c9ab3; color: #101316; }

/* chart in the page */
svg.trajectory { width: 100%; height: auto; display: block; font-family: var(--sans); }
svg.trajectory .grid { stroke: rgba(255,255,255,0.08); stroke-width: 1; }
svg.trajectory .tick { font-size: 12px; fill: #7e848b; }
svg.trajectory .line { fill: none; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
svg.trajectory .line.s1 { stroke: #5aa9c4; } svg.trajectory .line.s2 { stroke: #eb6834; }
svg.trajectory .dot { stroke: #1b1f23; stroke-width: 2; } svg.trajectory .dot.s1 { fill: #5aa9c4; } svg.trajectory .dot.s2 { fill: #eb6834; }
svg.trajectory .threat.low { fill: #2a3035; } svg.trajectory .threat.medium { fill: #414950; } svg.trajectory .threat.high { fill: #6a737b; }
.legend { display: flex; gap: 18px; font-size: 13px; color: #b9bdc2; margin: 10px 0 0; flex-wrap: wrap; }
.legend .k { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

/* duotone photo treatment: any <img> inside .duotone reads in the palette */
.duotone { position: relative; overflow: hidden; border-radius: 16px; background: var(--teal); }
.duotone img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); mix-blend-mode: luminosity; opacity: .92; }
.duotone.warm { background: #b8620a; }
.duotone.slate { background: #2f4858; }
.photo-grid { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 14px; }
.photo-grid > :first-child { grid-row: span 2; }
.photo-grid .figure { aspect-ratio: auto; min-height: 180px; }
@media (max-width: 720px) { .photo-grid { grid-template-columns: 1fr; } .photo-grid > :first-child { grid-row: auto; } }

/* generated texture where a photo will go (so the layout reads before photos arrive) */
.tex { background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.18) 0 2px, transparent 2px 14px), linear-gradient(160deg, #cdd7db, #9fb3ba); }
.tex.warm { background-image: repeating-linear-gradient(45deg, rgba(255,255,255,.16) 0 2px, transparent 2px 14px), linear-gradient(160deg, #e9dfd6, #c9b3a3); }

/* sub-nav inside a brand */
.subnav { position: sticky; top: 64px; z-index: 9; background: color-mix(in srgb, var(--paper) 90%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--hair); }
.subnav .wrap { display: flex; gap: 22px; height: 46px; align-items: center; font-size: 13.5px; overflow-x: auto; white-space: nowrap; }
.subnav .brand { font-weight: 600; color: var(--ink); margin-right: 8px; display: inline-flex; align-items: center; gap: 8px; }
.subnav .brand svg { width: 16px; height: 16px; }
.subnav a { color: var(--ink-2); }
.subnav a:hover { color: var(--ink); text-decoration: none; }
.top nav .home { color: var(--ink-3); }
/* Bold variant: dark-first opening, claim-scale type, vermilion for the unpopular line. */
:root { --hot: #e4572e; --hot-ink: #c94a25; }
.hero.flock.bold { background: #14171a; min-height: min(92vh, 900px); }
.hero.flock.bold canvas { --flock: #8fc3d4; }
.hero.flock.bold .scrim { background: linear-gradient(180deg, rgba(20,23,26,0) 35%, rgba(20,23,26,0.9) 100%); }
.hero.flock.bold .content { color: #f2f1ec; }
.hero.flock.bold .content .eyebrow { color: #8fc3d4; }
.hero.flock.bold .content .lede { color: #b9bdc2; max-width: 40ch; }
.hero.flock.bold h1 { font-size: clamp(46px, 8.2vw, 104px); max-width: 16ch; line-height: 1.02; letter-spacing: -0.02em; font-weight: 300; }
.hero.flock.bold h1 .hot { color: var(--hot); font-style: italic; }
.hero.flock.bold .btn.ghost { background: transparent; color: #f2f1ec; border-color: #454c53; }
.hero.flock.bold .btn.primary { background: #f2f1ec; border-color: #f2f1ec; color: #14171a; }
h2.big { font-size: clamp(34px, 5vw, 60px); max-width: 18ch; }
.hot { color: var(--hot-ink); }
.eyebrow.hot { color: var(--hot-ink); }
.dark h2 .hot { color: var(--hot); }
.brand-card:hover { box-shadow: 0 18px 44px rgba(20,22,24,0.12); }
body.bold .top { background: rgba(20,23,26,0.72); border-bottom-color: rgba(255,255,255,0.08); }
body.bold .top .wordmark.light { display: none; } body.bold .top .wordmark.dark { display: block; }
body.bold .top nav a { color: #b9bdc2; } body.bold .top nav a:hover { color: #fff; }

.hero.flock.bold.mm canvas { --flock: #8fc3d4; }
.hero.flock.bold.mm h1 { font-size: clamp(40px, 6.6vw, 84px); }
.hero.flock.bold.wo canvas { --flock: #9fb3c2; }
.hero.flock.bold.ptg canvas { --flock: #d9a88f; }
.hero.flock.bold.wo h1, .hero.flock.bold.ptg h1 { font-size: clamp(40px, 6.4vw, 80px); }

/* ===== v3: house system. Calm claims, scrolled provocations, two vector grounds, dusk for the union. */
:root {
  --blue: #1f78d1; --blue-ink: #175fa8; --blue-bright: #7cc4ff; --blue-tint: #e8f2fb;
  --midnight: #151b22; --midnight-2: #1c232c;   /* WO anchors on ink; the name stays for the class hooks */
  --ember: #ec6320; --ember-2: #c8471a; --sun: #ec6320; --sun-deep: #c8471a; --sun-text: #b8410f;
  --azure: #1f78d1; --sky: #2b8cff; --sky-deep: #1d3a6e; --red: #d62828; --amber: #ffb347; --gold: #ffb347; --cream: #f6e9d8;
  --teal: var(--blue); --teal-ink: var(--blue-ink); --teal-tint: var(--blue-tint); --teal-wash: rgba(31,120,209,0.08);
  --wo: #16324f; --ptg: #8a3d12;
}
/* wordmark: azure on light, bright on dark grounds */
.top .wordmark { height: 22px; }
body.on-dark .top { background: var(--ink); border-bottom-color: rgba(255,255,255,0.08); }
body.on-dark .subnav { background: var(--ink); color: #fff; border-bottom-color: rgba(255,255,255,0.08); } body.on-dark .subnav a, body.on-dark .subnav .brand { color: rgba(255,255,255,0.8); } body.on-dark .subnav .brand { color: #fff; }
body.on-ember .top { background: rgba(236,99,32,0.7); border-bottom-color: rgba(21,27,34,0.12); }
body.on-dark .top .wordmark.light { display: none; }
body.on-dark .top .wordmark.dark { display: block; }
body.on-dark .top nav a { color: rgba(255,255,255,0.78); } body.on-ember .top nav a { color: rgba(21,27,34,0.78); }
body.on-dark .top nav a:hover, body.on-dark .top nav a.active { color: #fff; } body.on-ember .top nav a:hover, body.on-ember .top nav a.active { color: var(--ink); }
.top.scrolled { background: color-mix(in srgb, var(--paper) 88%, transparent) !important; border-bottom-color: var(--hair) !important; }
.top.scrolled .wordmark.light { display: block !important; } .top.scrolled .wordmark.dark { display: none !important; }
.top.scrolled nav a { color: var(--ink-2) !important; } .top.scrolled nav a.active, .top.scrolled nav a:hover { color: var(--ink) !important; }

/* calm hero on a colored ground: claim only, no hot line */
.hero.ground { min-height: min(84vh, 820px); display: grid; align-items: end; position: relative; overflow: hidden; }
.hero.ground.midnight { background: var(--midnight); }
.hero.ground.ember { background: var(--ember); }
.hero.ground canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero.ground.midnight canvas { --flock: #7cc4ff; }
.hero.ground.midnight h1 em { font-style: italic; color: var(--blue-bright); }
.hero.ground.midnight .btn.primary { background: var(--sky); color: #fff; border-color: var(--sky); }
.hero.ground.ember canvas { --flock: #3a2a12; opacity: .55; }
.hero.ground .scrim { position: absolute; inset: 0; }
.hero.ground.midnight .scrim { background: linear-gradient(180deg, rgba(21,27,34,0) 30%, rgba(21,27,34,0.88) 100%); }
.hero.ground.ember .scrim { background: linear-gradient(180deg, rgba(236,99,32,0) 30%, rgba(236,99,32,0.9) 100%); }
.hero.ground .content { position: relative; color: #fff; padding: clamp(40px, 6vw, 80px) 0; }
.hero.ground .content .eyebrow { color: rgba(255,255,255,0.8); }
.hero.ground .content .lede { color: rgba(255,255,255,0.82); }
.hero.ground h1 { font-size: clamp(42px, 6.4vw, 84px); font-weight: 300; max-width: 16ch; letter-spacing: -0.015em; }
.hero.ground .btn { background: transparent; color: #fff; border-color: rgba(255,255,255,0.35); }
.hero.ground .btn.primary { background: #fff; color: var(--ink); border-color: #fff; }
.hero.ground.ember .content, .hero.ground.ember h1 { color: var(--ink); } .hero.ground.ember .content .eyebrow, .hero.ground.ember .content .lede { color: rgba(21,27,34,0.78); }
.hero.ground.ember .btn { color: var(--ink); border-color: rgba(21,27,34,0.35); } .hero.ground.ember .btn.primary { background: var(--ink); color: #fff; border-color: var(--ink); }

/* calm hero on paper (home, path to growth) */
.hero.paper { min-height: min(78vh, 760px); display: grid; align-items: end; position: relative; overflow: hidden; background: var(--paper); }
.hero.paper canvas { position: absolute; inset: 0; width: 100%; height: 100%; --flock: #7fb6e6; opacity: .75; }
.hero.paper .scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(247,246,242,0) 40%, rgba(247,246,242,0.9) 100%); }
.hero.paper .content { position: relative; padding: clamp(40px, 6vw, 80px) 0; }
.hero.paper h1 { font-size: clamp(40px, 6vw, 76px); font-weight: 300; max-width: 16ch; }
.hero.paper .eyebrow { color: var(--blue); }

/* Momentmaking hero on paper: the sun is an object, not a field */
.hero.paper.sun-hero h1 em { font-style: italic; color: var(--sun); }
.hero.paper.sun-hero .eyebrow { color: var(--sun-text); display: flex; align-items: center; gap: 10px; }
.hero.paper.sun-hero .eyebrow svg { width: 26px; height: 26px; fill: var(--sun); }
.hero.paper.sun-hero .btn.primary { background: var(--sun); border-color: var(--sun); color: #fff; }
.hero.paper .sun { position: absolute; right: clamp(24px, 8vw, 140px); top: clamp(60px, 12vh, 140px); width: clamp(220px, 30vw, 420px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 40% 35%, var(--amber) 0%, var(--sun) 55%, var(--sun-deep) 100%); z-index: 0; }
.hero.paper .sun-horizon { position: absolute; right: 0; left: 0; bottom: 0; height: 42%; background: linear-gradient(180deg, rgba(247,246,242,0) 0%, var(--paper) 60%); z-index: 0; }
.hero.paper .sky-rule { display: block; width: 120px; height: 6px; border-radius: 3px; background: var(--sky); margin-bottom: 28px; }
.hero.paper.sun-hero .content > :not(.sky-rule), .hero.paper.sunset-hero .content > * { max-width: 54%; }
@media (max-width: 900px) { .hero.paper.sun-hero .content > :not(.sky-rule), .hero.paper.sunset-hero .content > * { max-width: none; } }
.hero.paper .content { z-index: 1; }
/* Path to Growth hero on paper: the union is the sunset itself */
.hero.paper.sunset-hero h1 em { font-style: italic; color: var(--sky); }
.hero.paper.sunset-hero .eyebrow { color: var(--sun-text); }
.hero.paper.sunset-hero .btn.primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.hero.paper .sunset-panel { position: absolute; right: var(--gutter); top: clamp(48px, 9vh, 110px); width: min(38vw, 520px); height: min(56vh, 460px); border-radius: 24px; overflow: hidden; background: linear-gradient(180deg, var(--sky) 0%, var(--blue-bright) 35%, var(--amber) 62%, var(--sun) 85%, var(--sun-deep) 100%); z-index: 0; }
.hero.paper .sunset-panel::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 34%; background: var(--ink); clip-path: polygon(0 60%, 18% 40%, 34% 55%, 52% 20%, 70% 45%, 86% 30%, 100% 50%, 100% 100%, 0 100%); }
@media (max-width: 900px) { .hero.paper .sun, .hero.paper .sunset-panel { position: relative; right: auto; top: auto; width: 100%; height: 220px; margin: 0 var(--gutter) 24px; border-radius: 20px; } .hero.paper .sun { width: 200px; height: 200px; } }

/* the provocation: a scrolled beat, full-bleed, one line */
.provoke { padding: clamp(72px, 10vw, 140px) 0; }
.provoke .wrap { display: grid; grid-template-columns: 1fr; gap: 18px; }
.provoke .line { font-family: var(--serif); font-weight: 300; font-size: clamp(34px, 5.4vw, 72px); line-height: 1.05; letter-spacing: -0.015em; max-width: 18ch; }
.provoke .line em { font-style: italic; }
.provoke .after { color: var(--ink-2); max-width: 52ch; font-size: 18px; }
.provoke.on-paper { background: var(--paper); }
.provoke.on-paper .line em { color: var(--blue-ink); }
.provoke.wo { background: var(--sky); color: #fff; }
.provoke.wo .line em { color: var(--ink); } .provoke.wo .after { color: rgba(255,255,255,0.88); }
.provoke.mm { background: var(--sun); color: #fff; position: relative; overflow: hidden; }
.provoke.mm::before { content: ""; position: absolute; width: 900px; height: 900px; right: -300px; top: -450px; border-radius: 50%; background: radial-gradient(circle, #ff8a3d, transparent 60%); opacity: .7; }
.provoke.mm .wrap { position: relative; }
.provoke.mm .line em { color: #fff; } .provoke.mm .after { color: rgba(255,255,255,0.88); }
.provoke.dusk { background: linear-gradient(135deg, var(--ink) 0%, var(--sky-deep) 45%, var(--sky) 100%); color: #fff; }
.provoke.dusk .line em { color: var(--amber); } .provoke.dusk .after { color: rgba(255,255,255,0.8); }
.provoke .eyebrow { color: inherit; opacity: .7; }

/* dusk band, quiet (Path to Growth) */
.dusk-band { background: linear-gradient(120deg, rgba(43,140,255,0.07), rgba(236,99,32,0.08)); }
.dusk-line { height: 3px; background: linear-gradient(90deg, var(--sky), var(--amber), var(--sun)); border: 0; margin: 0; }

/* one continuous surface: fewer boxes */
.surface section { padding: clamp(48px, 7vw, 96px) 0; }
.doors { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.door { display: block; padding: 34px 28px 38px; color: var(--ink); border-right: 1px solid var(--hair); position: relative; transition: background .2s; }
.door:last-child { border-right: 0; }
.door:hover { text-decoration: none; background: var(--paper-2); }
.door .swatch { width: 44px; height: 6px; border-radius: 3px; margin-bottom: 18px; }
.door.wo .swatch { background: var(--ink); box-shadow: inset 0 0 0 0 transparent; background-image: linear-gradient(90deg, var(--ink) 60%, var(--blue-bright) 60%); } .door.mm .swatch { background: var(--sun); } .door.ptg .swatch { background: linear-gradient(90deg, var(--sky), var(--amber), var(--sun)); }
.door h3 { margin-bottom: 8px; }
.door p { color: var(--ink-2); font-size: 15.5px; margin: 0 0 14px; }
.door .more { color: var(--blue-ink); font-weight: 500; font-size: 14px; }
@media (max-width: 800px) { .door { border-right: 0; border-bottom: 1px solid var(--hair); } .door:last-child { border-bottom: 0; } }
.chart-on-paper svg.trajectory .grid { stroke: var(--hair); }
.chart-on-paper svg.trajectory .tick { fill: var(--ink-3); }
.chart-on-paper svg.trajectory .line.s1 { stroke: var(--blue); } .chart-on-paper svg.trajectory .dot.s1 { fill: var(--blue); }
.chart-on-paper svg.trajectory .line.s2 { stroke: #e4572e; } .chart-on-paper svg.trajectory .dot.s2 { fill: #e4572e; }
.chart-on-paper svg.trajectory .dot { stroke: var(--paper); }
.chart-on-paper svg.trajectory .threat.low { fill: #e6e3dc; } .chart-on-paper svg.trajectory .threat.medium { fill: #c9c5bb; } .chart-on-paper svg.trajectory .threat.high { fill: #8a9097; }
.chart-on-paper .legend { color: var(--ink-2); }
.prop .rule { background: var(--blue); }
.mark-lg, .hero .mark { color: var(--ember); }
.duotone { background: var(--midnight); } .duotone.warm { background: var(--sun-deep); } .duotone.slate { background: var(--wo); }
.hero.paper .content { color: var(--ink); }
.hero.paper .content .lede { color: var(--ink-2); }
.hero.paper .btn.primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.hero.paper .btn { background: var(--paper-2); color: var(--ink); border-color: var(--hair); }
/* saffron ground: ink wordmark while the hero is in view */
.top .wordmark.ink { display: none; }
body.on-ember .top .wordmark.light { display: none; } body.on-ember .top .wordmark.ink { display: block; }
.top.scrolled .wordmark.ink { display: none !important; }

/* v4: sky-and-sunset system. Rules read as electricity; red once per page. */
.prop .rule { background: var(--sky); }
.prop.sun .rule { background: var(--sun); }
.prop.red .rule { background: var(--red); }
.stat .n { color: var(--ink); } .stat.sky .n { color: var(--sky); }

/* ===== v5: content build. Builder hero, proof strip, timeline, kits, briefs, offers. */
.duotone.sky { background: var(--sky); } .duotone.sun { background: var(--sun); } .duotone.ink { background: var(--ink); }
.duotone.sky img { opacity: .9; } .duotone.sun img { opacity: .88; }
.duotone.ink img { mix-blend-mode: screen; opacity: .7; }
.duotone img { display: block; }
.photo { border-radius: 16px; overflow: hidden; } .photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

.hero.builder { min-height: min(88vh, 860px); display: grid; align-items: center; background: var(--paper); position: relative; overflow: hidden; }
.hero.builder .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 72px); align-items: center; padding-top: clamp(32px, 5vw, 64px); padding-bottom: clamp(32px, 5vw, 64px); }
.hero.builder h1 { font-size: clamp(48px, 7.2vw, 96px); font-weight: 300; letter-spacing: -0.02em; margin-bottom: 18px; }
.hero.builder h1 em { font-style: italic; color: var(--sun); }
.hero.builder .lede { font-size: clamp(17px, 1.5vw, 20px); max-width: 44ch; }
.hero.builder .eyebrow { color: var(--azure); }
.hero.builder .photo { aspect-ratio: 4/5; max-height: 720px; border-radius: 24px; box-shadow: 0 30px 60px -30px rgba(21,27,34,.35); }
.hero.builder .btn.primary { background: var(--azure); border-color: var(--azure); }
@media (max-width: 860px) { .hero.builder .wrap { grid-template-columns: 1fr; } .hero.builder .photo { aspect-ratio: 4/5; max-height: 520px; } }

.proof { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.proof div { background: var(--ink); color: #fff; border-radius: 14px; padding: 22px 20px; }
.proof .n { font-family: var(--serif); font-size: 34px; line-height: 1; font-weight: 300; color: var(--blue-bright); }
.proof .l { font-size: 13.5px; opacity: .85; margin-top: 8px; line-height: 1.4; }
.proof div:nth-child(4) .n { color: var(--sun); }
@media (max-width: 860px) { .proof { grid-template-columns: repeat(2, 1fr); } }

.doors2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.door2 { display: block; padding: 30px 28px 34px; border-radius: 18px; background: var(--paper-2); border: 1px solid var(--hair); border-top: 5px solid var(--ink); color: var(--ink); transition: transform .2s; }
.door2:hover { text-decoration: none; transform: translateY(-2px); }
.door2.mm { border-top-color: var(--sun); }
.door2 .eyebrow { margin-bottom: 8px; } .door2.wo .eyebrow { color: var(--sky); } .door2.mm .eyebrow { color: var(--sun-text); }
.door2 h3 { font-size: 28px; margin-bottom: 8px; } .door2 p { color: var(--ink-2); margin: 0 0 14px; } .door2 .more { font-weight: 500; color: var(--azure); }
@media (max-width: 720px) { .doors2 { grid-template-columns: 1fr; } }

.timeline { list-style: none; margin: 32px 0 0; padding: 0; border-left: 2px solid var(--hair); }
.timeline li { position: relative; padding: 0 0 26px 28px; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--sky); border: 2px solid var(--paper); }
.timeline li.sun::before { background: var(--sun); }
.timeline .yrs { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; }
.timeline h3 { font-size: 21px; margin: 2px 0 4px; }
.timeline p { margin: 0; color: var(--ink-2); font-size: 15.5px; max-width: 70ch; }
.timeline p em { color: var(--ink); font-style: italic; }

.kits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.kit { display: block; background: var(--ink); color: #fff; border-radius: 14px; padding: 22px 20px 20px; min-height: 190px; position: relative; transition: transform .2s; }
.kit:hover { text-decoration: none; transform: translateY(-2px); }
.kit .num { font-family: var(--serif); font-size: 30px; font-weight: 300; color: var(--blue-bright); }
.kit .num.sun { color: var(--sun); }
.kit h3 { font-size: 18px; margin: 6px 0 8px; color: #fff; }
.kit p { font-size: 13.5px; opacity: .8; margin: 0; line-height: 1.45; }
.kit .arrow { position: absolute; right: 18px; bottom: 14px; color: var(--sun); font-size: 20px; }
@media (max-width: 900px) { .kits { grid-template-columns: repeat(2, 1fr); } }

.briefs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.brief { background: var(--paper-2); border: 1px solid var(--hair); border-radius: 16px; padding: 24px; }
.brief .who { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; margin-bottom: 8px; }
.brief h3 { font-size: 22px; margin: 0; } .brief .role { font-size: 12.5px; color: var(--ink-3); letter-spacing: .06em; text-transform: uppercase; font-weight: 600; white-space: nowrap; }
.brief p { color: var(--ink-2); font-size: 15px; margin: 0; }
.brief .result { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--hair); color: var(--ink); font-size: 15px; }
.brief .result::before { content: "Result · "; color: var(--sky); font-weight: 600; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
@media (max-width: 760px) { .briefs { grid-template-columns: 1fr; } }

.elements { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 40px; }
.elements h3 { font-size: 24px; margin-bottom: 8px; } .elements p { color: var(--ink-2); margin: 0; font-size: 15.5px; }
@media (max-width: 760px) { .elements { grid-template-columns: 1fr; } }

.cols2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.cols2 .col { background: var(--paper-2); border: 1px solid var(--hair); border-radius: 16px; padding: 26px; }
.cols2 .col.ink { background: var(--ink); color: #fff; border-color: var(--ink); }
.cols2 h3 { font-size: 24px; margin-bottom: 12px; }
.cols2 ul { margin: 0; padding-left: 18px; color: var(--ink-2); font-size: 15.5px; line-height: 1.7; }
.cols2 .col.ink ul, .cols2 .col.ink p { color: rgba(255,255,255,.85); }
@media (max-width: 760px) { .cols2 { grid-template-columns: 1fr; } }

.offers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.offer { border: 1px solid var(--hair); border-radius: 16px; padding: 24px; background: var(--paper-2); }
.offer.sun { border-top: 5px solid var(--sun); } .offer.sky { border-top: 5px solid var(--sky); } .offer.ink { border-top: 5px solid var(--ink); }
.offer h3 { font-size: 22px; margin-bottom: 6px; } .offer p { color: var(--ink-2); font-size: 15px; margin: 0 0 14px; }
.offer .price { font-family: var(--serif); font-size: 26px; margin: 8px 0 14px; }
@media (max-width: 860px) { .offers { grid-template-columns: 1fr; } }

.book-toc { list-style: none; padding: 0; margin: 18px 0 0; border-top: 1px solid var(--hair); }
.book-toc li { padding: 10px 0; border-bottom: 1px solid var(--hair); display: grid; grid-template-columns: 120px 1fr; gap: 12px; font-size: 15px; }
.book-toc li span:first-child { color: var(--ink-3); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; padding-top: 3px; }
.book-toc li.ptg span:first-child { color: var(--sun-text); }

.practices { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.practice .rule { width: 36px; height: 3px; background: var(--sky); margin-bottom: 14px; } .practice.ptg .rule { background: var(--sun); }
.practice h3 { font-size: 22px; margin-bottom: 8px; } .practice p { color: var(--ink-2); font-size: 15px; margin: 0; }
@media (max-width: 900px) { .practices { grid-template-columns: repeat(2, 1fr); } }

.phone { width: min(300px, 80%); aspect-ratio: 9/19; border-radius: 36px; background: var(--ink); padding: 12px; margin: 0 auto; box-shadow: 0 30px 60px -30px rgba(21,27,34,.4); }
.phone .screen { width: 100%; height: 100%; border-radius: 26px; background: var(--paper); display: grid; place-items: center; color: var(--ink-3); font-size: 12px; text-align: center; padding: 16px; }

.logos { display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--ink-3); font-weight: 600; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; }
.aside-claim { border-left: 3px solid var(--sky); padding: 6px 0 6px 18px; color: var(--ink-2); font-size: 15.5px; max-width: 60ch; }
.sig { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; color: var(--sky); margin-left: 6px; }
.sig.frontier { color: var(--sun-text); }
.about-block > p, .about-block > h2, .about-block > .lede { max-width: 68ch; } .about-block h2 { font-size: 30px; margin-top: 40px; }
.about-block p { font-size: 17px; color: var(--ink-2); }
body.on-dark .subnav .brand .swatch { background: linear-gradient(135deg, var(--ink) 55%, var(--blue-bright) 55%) !important; }
.spiral-wrap { display: grid; place-items: center; }
.hero.builder .content, .hero.builder .content h1 { color: var(--ink); padding: 0; }
.hero.builder .content .eyebrow { color: var(--azure); opacity: 1; }
.hero.builder .content .lede { color: var(--ink-2); }
.hero.paper .content, .hero.paper .content h1 { color: var(--ink); }
.hero.paper .content .lede { color: var(--ink-2); } .hero.paper .content .eyebrow { opacity: 1; }
.hero.builder .btn, .hero.paper .btn { color: var(--ink); border-color: rgba(21,27,34,.3); background: transparent; }
.hero.builder .btn.primary { background: var(--azure); border-color: var(--azure); color: #fff; }
.hero.paper.sun-hero .btn.primary { background: var(--sun); border-color: var(--sun); color: #fff; }

/* ===== v6: writing archive and essay pages */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 22px; }
.chip { border: 1px solid var(--hair); background: var(--paper-2); color: var(--ink-2); border-radius: 999px; padding: 7px 14px; font: inherit; font-size: 13.5px; cursor: pointer; }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.essay header { padding: clamp(40px, 7vw, 88px) var(--gutter) 24px; }
.essay header h1 { font-size: clamp(38px, 5.4vw, 64px); max-width: 18ch; }
.essay header .lede { max-width: 56ch; }
.essay .body { font-size: 18.5px; line-height: 1.7; padding-bottom: 24px; }
.essay .body > * { max-width: 720px; }
.essay .body p { margin: 0 0 1.25em; }
.essay .body h2 { font-size: 30px; margin: 1.6em 0 .5em; }
.essay .body h3 { font-size: 22px; margin: 1.4em 0 .4em; }
.essay .body blockquote { margin: 1.4em 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--sun); font-family: var(--serif); font-size: 22px; line-height: 1.4; color: var(--ink); }
.essay .body ul { padding-left: 22px; }
.essay .body .roots { margin-top: 2em; padding: 18px 22px; border: 1px solid var(--hair); border-radius: 14px; background: var(--paper-2); font-size: 15px; color: var(--ink-2); }
.essay footer { padding-top: 24px; border-top: 1px solid var(--hair); margin-top: 24px; padding-bottom: clamp(48px, 7vw, 96px); }
.byline { display: flex; gap: 14px; align-items: center; color: var(--ink-2); font-size: 14px; margin-bottom: 22px; }
.byline strong { color: var(--ink); }
@media (max-width: 720px) { .essay .body { font-size: 17px; } }
.essay footer > * { max-width: 720px; }

/* ===== v7: feature surface with openable boxes; post series nav */
.boxes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.box { display: block; position: relative; padding: 22px 22px 46px; border-radius: 16px; background: var(--paper-2); border: 1px solid var(--hair); color: var(--ink); transition: transform .2s, border-color .2s; }
.box:hover { text-decoration: none; transform: translateY(-2px); border-color: var(--sky); }
.box .n { font-family: var(--serif); font-size: 13px; color: var(--ink-3); letter-spacing: .08em; }
.box h3 { font-size: 20px; margin: 6px 0 8px; }
.box p { color: var(--ink-2); font-size: 14.5px; margin: 0; }
.box .open { position: absolute; left: 22px; bottom: 16px; font-size: 13px; font-weight: 600; color: var(--sky); }
.box.sun:hover { border-color: var(--sun); } .box.sun .open { color: var(--sun-text); }
.box.ink { background: var(--ink); color: #fff; border-color: var(--ink); } .box.ink p { color: rgba(255,255,255,.8); } .box.ink .open { color: var(--blue-bright); } .box.ink .n { color: rgba(255,255,255,.6); }
@media (max-width: 900px) { .boxes { grid-template-columns: repeat(2, 1fr); } } @media (max-width: 600px) { .boxes { grid-template-columns: 1fr; } }
.series { max-width: 720px; margin-top: 8px; padding: 22px 24px; border: 1px solid var(--hair); border-radius: 16px; background: var(--paper-2); }
.series ol { margin: 10px 0 12px; padding-left: 22px; line-height: 1.9; font-size: 15.5px; }
.series li.here { font-weight: 600; } .series li.here a { color: var(--ink); }
.series .more { font-size: 14px; font-weight: 500; color: var(--azure); }

/* ===== v8: quieter chrome. Eyebrows off everywhere except post meta and series nav; headings carry the section. */
.eyebrow { display: none; }
.essay header .eyebrow, .series .eyebrow { display: block; }
.provoke .line { margin-top: 0; }
section h2:first-child, .content h1:first-child { margin-top: 0; }
.hero.paper.sun-hero .sky-rule { margin-bottom: 0; }
.hero.paper.sun-hero .eyebrow svg { display: none; }

.wo-framework { width: 100%; height: auto; display: block; }
.wo-framework + * { break-inside: avoid; }
@media (max-width: 760px) { [style*="columns:2"] { columns: 1 !important; } }

/* ===== v9: WO redesign. Hero video, split figure, elements with drawings, ink AI, equation, downloads. */
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.hero-video:not([src]):not(:has(source)) { display: none; }
.split-figure { display: grid; grid-template-columns: 1fr 240px 1fr; gap: 36px; align-items: center; margin-top: 28px; }
.split-figure .side p { color: var(--ink-2); font-size: 16.5px; }
.split-figure .side.left { text-align: right; }
.split-figure .center { margin: 0; text-align: center; color: var(--ink); }
.split-figure .frank { width: 180px; height: auto; display: block; margin: 0 auto 10px; stroke: var(--ink); }
.split-figure .frank path:nth-of-type(2), .split-figure .frank [stroke-dasharray] { stroke: var(--sun); }
.split-figure figcaption { font-family: var(--serif); font-style: italic; font-size: 17px; color: var(--ink-2); }
@media (max-width: 860px) { .split-figure { grid-template-columns: 1fr; } .split-figure .side.left { text-align: left; } }

.elements-ill { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.element { background: var(--paper-2); border: 1px solid var(--hair); border-radius: 16px; padding: 22px 20px 20px; }
.element .ill { height: 96px; color: var(--sky); margin-bottom: 10px; } .element .ill svg { width: 100%; height: 100%; }
.element:nth-child(2) .ill { color: var(--sun); } .element:nth-child(4) .ill { color: var(--ink); }
.element h3 { font-size: 20px; margin-bottom: 8px; } .element p { font-size: 14.5px; color: var(--ink-2); margin: 0 0 12px; }
.element .kitlink { font-size: 13px; font-weight: 600; color: var(--sun-text); }
@media (max-width: 900px) { .elements-ill { grid-template-columns: repeat(2, 1fr); } } @media (max-width: 560px) { .elements-ill { grid-template-columns: 1fr; } }

.provoke.plain .line { max-width: 22ch; } .provoke.plain .line em { color: inherit; font-style: italic; }
.provoke .cite { font-family: var(--serif); font-size: 20px; letter-spacing: 0; opacity: .9; margin: -14px 0 26px; }
.provoke .after + .after { margin-top: 10px; }

.ink-ground { background: var(--ink); color: #fff; }
.ink-ground h2 { color: #fff; } .ink-ground .lede { color: rgba(255,255,255,.8); }
.amp { margin: 0; color: #fff; } .amp svg { width: 100%; height: auto; }
.ink-ground .cols2 .col { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.12); color: #fff; }
.ink-ground .cols2 h3 { color: #fff; }
.ink-ground .cols2 ul { list-style: none; padding: 0; color: rgba(255,255,255,.88); }
.ink-ground .cols2 li { padding-left: 26px; position: relative; margin-bottom: 6px; }
.ink-ground .cols2 .col.bad li::before { content: "✕"; position: absolute; left: 0; color: var(--sun); font-weight: 700; }
.ink-ground .cols2 .col.good li::before { content: "✓"; position: absolute; left: 0; color: var(--blue-bright); font-weight: 700; }

.trust-grid { gap: 22px; }
.equation-card { position: relative; background: var(--paper-2); border: 1px solid var(--hair); border-radius: 18px; padding: 40px 32px; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.alembic { position: absolute; right: 22px; top: 18px; width: 120px; color: var(--sun); opacity: .7; }
.fraction { font-family: var(--serif); font-weight: 300; text-align: center; }
.fraction .num, .fraction .den { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 10px; font-size: clamp(26px, 2.6vw, 36px); line-height: 1.15; }
.fraction .op { color: var(--sun); }
.fraction .bar { height: 2px; background: var(--ink); margin: 18px auto; width: 88%; }
.fraction .den { color: var(--sky); }
.fine-print { margin: 26px auto 0; max-width: 34ch; text-align: center; color: var(--ink-3); font-size: 14px; }
.stag-card h3 { font-size: 26px; margin-bottom: 10px; } .stag-card p { font-size: 15px; color: var(--ink-2); }
@media (max-width: 860px) { .trust-grid { grid-template-columns: 1fr; } }

.briefs.one { grid-template-columns: 1fr; }
.brief .logo { height: 22px; display: inline-block; } .brief .wordmark-slot { font-family: var(--serif); font-size: 22px; letter-spacing: -.01em; color: var(--ink); }
.dls { display: grid; gap: 0; border-top: 1px solid var(--hair); }
.dl { display: grid; grid-template-columns: 84px 1fr 24px; gap: 14px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--hair); color: var(--ink); }
.dl:hover { text-decoration: none; background: var(--paper-2); }
.dl .num { font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; }
.dl strong { display: block; font-size: 16px; } .dl .d { display: block; font-size: 13.5px; color: var(--ink-2); margin-top: 2px; }
.dl .arrow { color: var(--sky); font-weight: 600; text-align: right; }

/* ---- v10: WO second pass — photo slots, structure provocation, equation card, trust issues, work samples ---- */
.photo-slot { position: relative; overflow: hidden; border-radius: 14px; background: var(--paper-2); border: 1px solid var(--hair); }
.photo-slot img { display: block; width: 100%; height: 100%; object-fit: cover; }
.photo-slot.portrait { aspect-ratio: 3 / 4; }
.photo-slot .slot-label { display: none; }
.photo-slot.missing { background: repeating-linear-gradient(135deg, var(--paper-2) 0 10px, #eceae4 10px 20px); }
.photo-slot.missing .slot-label { display: block; position: absolute; inset: auto 10px 10px 10px; font-size: 11px; font-family: ui-monospace, Menlo, monospace; color: var(--ink-3); text-align: center; }
.split-figure { grid-template-columns: 1fr 260px 1fr; }
.split-figure .center .photo-slot { width: 260px; margin: 0 auto 12px; }

.element .ill.photo { height: auto; aspect-ratio: 3 / 2; border-radius: 10px; overflow: hidden; margin: -6px -4px 14px; background: var(--paper); }
.element .ill.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.element .ill.photo.missing { display: grid; place-items: center; background: repeating-linear-gradient(135deg, var(--paper) 0 10px, #eceae4 10px 20px); color: var(--ink-3); font: 11px ui-monospace, Menlo, monospace; }
.element .ill.photo.missing span { padding: 0 12px; text-align: center; word-break: break-all; }

.provoke.structure { position: relative; overflow: hidden; }
.provoke.structure .structure-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.provoke.structure .wrap { position: relative; }
.provoke.plain .line { font-style: italic; max-width: none; }
.provoke .afters { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; }
.provoke .afters .after { max-width: none; margin: 0; }
.provoke .afters .after + .after { margin-top: 0; }
@media (max-width: 760px) { .provoke .afters { grid-template-columns: 1fr; } .provoke .afters .after + .after { margin-top: 14px; } }
.provoke.structure .wrap { padding-bottom: 40px; }

.trust-grid .card { display: flex; flex-direction: column; }
.trust-grid .card h3 { text-align: center; font-size: 26px; margin-bottom: 14px; }
.trust-grid .card p { font-size: 15px; color: var(--ink-2); }
.equation-card { padding: 28px 28px 30px; background: var(--paper-2); overflow: visible; justify-content: flex-start; }
.equation-card .fraction { margin-top: auto; padding-top: 22px; font-family: var(--sans); font-weight: 800; letter-spacing: -0.02em; text-transform: uppercase; }
.fraction .num { flex-direction: column; gap: 2px; font-size: clamp(24px, 2.3vw, 32px); line-height: 1.08; color: var(--ink); }
.fraction .num .op { display: none; }
.fraction .den { font-size: clamp(24px, 2.3vw, 32px); gap: 0 14px; color: var(--sky); }
.fraction .den .op { color: var(--sun); font-weight: 600; }
.fraction .bar { height: 3px; width: 72%; margin: 14px auto; background: var(--ink); }
.alembic { display: none; }

.trust-issues { margin-top: 64px; padding-top: 36px; border-top: 1px solid var(--hair); text-align: center; }
.trust-issues h3 { font-size: 30px; margin-bottom: 6px; }
.trust-issues p { color: var(--ink-2); margin: 0; }

.samples h3 { text-align: center; font-size: 24px; margin-bottom: 18px; }

/* ---- v11: WO third pass — photo flip cards, unveil beats, equation, reading strip ---- */
/* flip cards (elements, briefs) */
.flip { perspective: 1400px; cursor: pointer; outline: none; }
.flip .faces { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.flip.flipped .faces { transform: rotateY(180deg); }
@media (hover: hover) { .flip:hover .faces, .flip:focus-visible .faces { transform: rotateY(180deg); } }
.flip .face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 16px; overflow: hidden; }
.flip .face.back { transform: rotateY(180deg); }
@media (prefers-reduced-motion: reduce) { .flip .faces { transition: none; } }

.elements-ill { gap: 16px; }
.element { background: none; border: 0; padding: 0; aspect-ratio: 3 / 4; }
.element .face.front { background: var(--ink); }
.element .face.front img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .9s ease; }
@media (hover: hover) { .flip:hover .face.front img { transform: scale(1.04); } }
.element .face.front .missing { width: 100%; height: 100%; display: grid; place-items: center; background: repeating-linear-gradient(135deg, var(--paper-2) 0 10px, #eceae4 10px 20px); color: var(--ink-3); font: 11px ui-monospace, Menlo, monospace; }
.element .face.front h3 { position: absolute; left: 18px; right: 18px; bottom: 16px; margin: 0; color: #fff; font-size: 22px; line-height: 1.1; text-shadow: 0 1px 14px rgba(0,0,0,.45); }
.element .face.front::after { content: ""; position: absolute; inset: 55% 0 0 0; background: linear-gradient(to top, rgba(21,27,34,.72), rgba(21,27,34,0)); pointer-events: none; }
.element .face.back { background: var(--ink); color: #fff; padding: 22px 20px; display: flex; flex-direction: column; justify-content: flex-end; }
.element .face.back h3 { font-size: 20px; margin: 0 0 10px; color: #fff; }
.element .face.back p { font-size: 14.5px; line-height: 1.5; color: rgba(255,255,255,.82); margin: 0 0 12px; }
.element .face.back .kitlink { color: var(--bright); font-size: 13px; font-weight: 600; }
@media (max-width: 900px) { .element { aspect-ratio: 4 / 5; } }

/* reading strip */
.reading { margin-top: 40px; padding: 18px 22px; border: 1px solid var(--hair); border-radius: 14px; background: var(--paper-2); display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; }
.reading .rlabel { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; color: var(--ink-3); writing-mode: vertical-rl; transform: rotate(180deg); }
.reading .books { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.book { display: flex; gap: 16px; align-items: center; color: inherit; text-decoration: none; }
.book .cover { width: 56px; aspect-ratio: 2 / 3; border-radius: 3px; object-fit: cover; box-shadow: 0 2px 10px rgba(21,27,34,.18); flex: none; }
.book .cover.slot { background: var(--ink); color: #fff; display: grid; place-items: center; text-align: center; font-family: var(--serif); font-size: 9px; line-height: 1.1; padding: 4px; }
.book .meta { display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.book .meta strong { font-family: var(--serif); font-weight: 400; font-size: 18px; letter-spacing: -.01em; }
.book .by { color: var(--ink-2); } .book .d { color: var(--ink-3); font-size: 13px; }
.book:hover strong { color: var(--azure); }
@media (max-width: 760px) { .reading { grid-template-columns: 1fr; } .reading .rlabel { writing-mode: horizontal-tb; transform: none; } .reading .books { grid-template-columns: 1fr; } }

/* unveil beats: pinned media, a panel slides up over it on scroll */
.unveil { position: relative; height: 220vh; }
.unveil .stage { position: sticky; top: 0; height: 100vh; overflow: hidden; background: var(--ink); }
.unveil .media { position: absolute; inset: 0; }
.unveil .media img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(var(--zoom, 1)); transition: transform .1s linear; }
.unveil .media.nophoto { background: radial-gradient(120% 80% at 70% 20%, #2a3542, var(--ink) 70%); }
.unveil .veil { position: absolute; left: 0; right: 0; bottom: 0; min-height: 0; max-height: 86vh; transform: translateY(var(--veil, 100%)); display: flex; align-items: flex-start; padding: 64px 0 64px; will-change: transform; border-radius: 28px 28px 0 0; }
.unveil .veil.sky { background: var(--sky); color: #fff; }
.unveil .veil.ink { background: var(--ink); color: #fff; }
.unveil .veil .wrap { width: 100%; }
.unveil .line { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(36px, 5.6vw, 76px); line-height: 1.04; letter-spacing: -.015em; max-width: none; margin: 0; }
.unveil .veil.ink .line em, .unveil .veil.sky .line em { color: inherit; }
.unveil .cite { font-family: var(--serif); font-size: 20px; opacity: .9; margin: 14px 0 26px; }
.unveil .afters { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; }
.unveil .afters .after { max-width: none; margin: 0; font-size: 18px; line-height: 1.55; color: rgba(255,255,255,.9); }
.unveil .reveal { opacity: 1; transform: none; }
@media (max-width: 760px) { .unveil { height: 180vh; } .unveil .afters { grid-template-columns: 1fr; } .unveil .afters .after + .after { margin-top: 14px; } .unveil .veil { padding: 40px 0 48px; } }
@media (prefers-reduced-motion: reduce) { .unveil { height: auto; } .unveil .stage { position: static; height: auto; } .unveil .media { display: none; } .unveil .veil { position: static; transform: none; min-height: 0; } }

/* AI artwork slot */
.amp-photo { margin: 0; }
.photo-slot.landscape { aspect-ratio: 4 / 3; }
.photo-slot.dark { background: #1d242c; border-color: rgba(255,255,255,.1); }
.photo-slot.dark.missing { background: repeating-linear-gradient(135deg, #1d242c 0 10px, #222a33 10px 20px); }
.photo-slot.dark .slot-label { color: rgba(255,255,255,.45); }

/* trust: wide lede, equation, graphic-first cards */
#trust .lede.wide { max-width: none; font-size: clamp(20px, 2vw, 26px); line-height: 1.6; letter-spacing: -.005em; margin: 28px 0 56px; color: var(--ink); }
#trust .lede.wide p { max-width: none; }
.equation-card .fraction { display: none; }
.equation { font-family: var(--sans); font-weight: 800; text-transform: uppercase; letter-spacing: -.02em; font-size: clamp(22px, 2.1vw, 30px); line-height: 1.15; margin: 6px 0 22px; padding: 18px 0 20px; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); display: grid; gap: 4px; justify-content: center; }
.equation .row { display: grid; grid-template-columns: 1.1em auto; gap: 0 .35em; align-items: baseline; }
.equation .row:first-child { grid-template-columns: 1.1em auto; }
.equation .row:first-child::before { content: ""; }
.equation .op { color: var(--sun); font-weight: 600; text-align: center; }
.equation .row.out { grid-template-columns: 1.1em auto auto auto; margin-top: 6px; padding-top: 10px; border-top: 3px solid var(--ink); }
.equation .row.out .t { color: var(--sky); }
.equation .row.out .op:not(.eq) { margin: 0 .2em; }
.trust-grid .card h3 { margin-bottom: 8px; }
.equation-card { padding: 28px 28px 26px; }

/* briefs as flip cards */
.briefs.grid2 { grid-template-columns: 1fr 1fr; gap: 16px; }
.brief.flip { background: none; border: 0; padding: 0; aspect-ratio: 1 / 1; }
.brief.flip .face.front { background: #fff; border: 1px solid var(--hair); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 24px; text-align: center; }
.brief.flip .face.front .logo { height: 32px; max-width: 70%; object-fit: contain; }
.brief.flip .face.front .wordmark-slot { font-size: 30px; }
.brief.flip .face.front .role { white-space: normal; }
.brief.flip .face.front .hint { position: absolute; right: 14px; bottom: 12px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; }
.brief.flip .face.back { background: var(--ink); color: #fff; padding: 20px; display: flex; flex-direction: column; justify-content: center; }
.brief.flip .face.back h3 { color: #fff; font-size: 20px; margin: 0 0 8px; }
.brief.flip .face.back p { color: rgba(255,255,255,.82); font-size: 13.5px; line-height: 1.45; margin: 0; }
.brief.flip .face.back .result { border-top-color: rgba(255,255,255,.18); color: #fff; font-size: 13.5px; margin-top: 10px; padding-top: 10px; }
.brief.flip .face.back .result::before { color: var(--bright); }
@media (max-width: 760px) { .briefs.grid2 { grid-template-columns: 1fr; } .brief.flip { aspect-ratio: auto; min-height: 260px; } }

.element .face.front h3 { z-index: 1; }
.ink-ground h2 em { color: var(--bright); font-style: italic; }
.brief.flip { aspect-ratio: auto; height: 320px; }
.brief.flip .face.back { padding: 18px; justify-content: flex-start; }
.brief.flip .face.back h3 { font-size: 17px; margin-bottom: 6px; }
.brief.flip .face.back p { font-size: 12.5px; line-height: 1.4; }
.brief.flip .face.back .result { font-size: 12.5px; line-height: 1.4; margin-top: 8px; padding-top: 8px; }
.hero.has-video canvas.flock { display: none; }
.hero-video { opacity: .6; }

/* ---- v12: WO cleanup — silent photo fronts, roomier backs, kit links without numbers ---- */
.element .face.front::after { display: none; }
.element .face.back { padding: 24px 22px; justify-content: center; }
.element .face.back h3 { font-size: 18px; line-height: 1.15; margin-bottom: 10px; }
.element .face.back p { font-size: 13.5px; line-height: 1.5; margin-bottom: 14px; }
.element .face.back .kitlink { font-size: 13px; }
@media (min-width: 1100px) { .element .face.back p { font-size: 14px; } }
.dl { grid-template-columns: 1fr auto; }
.dl .arrow { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--sky); white-space: nowrap; }

/* ---- v13: unveil covers fully; trust cards; design kits alone; atomic placeholder ---- */
.unveil { height: 190vh; }
.unveil .veil { min-height: 100vh; max-height: none; border-radius: 0; align-items: flex-start; padding: 150px 0 64px; }
.unveil .media img { transition: none; }
.equation-card .equation { margin: 18px 0; }
.equation-card p + .equation { margin-top: 20px; }
.stag-card .stag-chart { width: 100%; max-width: 330px; height: auto; display: block; margin: 4px auto 18px; }
.trust-issues { margin-top: 56px; padding-top: 32px; }
.trust-issues h3 { margin-bottom: 0; }
.elements-ill.three { grid-template-columns: repeat(3, 1fr); max-width: 900px; margin-left: auto; margin-right: auto; }
.pbox .face.front h3 { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; padding: 20px; text-align: center; color: #fff; font-size: 26px; line-height: 1.1; text-shadow: 0 1px 18px rgba(0,0,0,.5); z-index: 1; }
.pbox .face.front::after { display: block; inset: 0; background: rgba(21,27,34,.22); }
.pbox .face.front .missing { width: 100%; height: 100%; }
.dls.narrow { max-width: 720px; margin: 28px auto 0; }
@media (max-width: 900px) { .elements-ill.three { grid-template-columns: 1fr; max-width: 420px; } }
.pbox .face.front .missing { display: block; position: relative; }
.pbox .face.front .missing span { position: absolute; left: 10px; right: 10px; bottom: 10px; font-size: 10px; color: rgba(21,27,34,.55); word-break: break-all; text-align: center; }

/* ---- v14: unveil is native. The photo is sticky for one screen; the panel is a normal block that scrolls over it at page speed. ---- */
.unveil { height: auto; }
.unveil .stage { position: sticky; top: 0; height: 100vh; overflow: hidden; background: var(--ink); z-index: 0; }
.unveil .media img { transform: none; }
.unveil .veil { position: relative; z-index: 1; transform: none; min-height: 100vh; margin: 0; padding: 150px 0 64px; display: block; }
@media (prefers-reduced-motion: reduce) { .unveil .stage { position: relative; height: 56vh; } .unveil .veil { min-height: 0; } }
/* the ink beat lets the photograph ghost through; the sky beat stays solid so the blue stays clean */
.unveil .veil.ink { background: rgba(21,27,34,.84); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.unveil .veil.ink { background: rgba(21,27,34,.78); }
.unveil .veil.sky { background: rgba(43,140,255,.78); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }

/* ---- v15: the Intro surface (John Foster), merged from Home and About ---- */
.hero.paper.intro { min-height: 0; align-items: start; }
.hero.paper.intro .content { padding: clamp(36px, 5vw, 64px) 0 clamp(28px, 4vw, 48px); }
.intro-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center; }
.intro-grid h1 { font-size: clamp(44px, 6.4vw, 84px); margin: 0 0 14px; max-width: none; }
.intro-grid .lede { max-width: 48ch; }
.portrait { aspect-ratio: 4 / 5; border-radius: 18px; overflow: hidden; background: var(--ink); max-width: 380px; justify-self: end; width: 100%; }
.portrait img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pillars { margin-top: clamp(32px, 4vw, 56px); padding-top: 32px; border-top: 1px solid var(--hair); }
.cols3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.cols3 .col h3 { font-size: 20px; margin: 0 0 8px; }
.cols3 .col p { font-size: 15px; color: var(--ink-2); margin: 0; }
@media (max-width: 900px) { .intro-grid { grid-template-columns: 1fr; } .portrait { justify-self: start; max-width: 300px; } .cols3 { grid-template-columns: 1fr; gap: 22px; } }

/* company tiles */
.ltiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 30px; }
.ltile { aspect-ratio: 1; }
.ltile .face.front { background: #fff; border: 1px solid var(--hair); display: grid; place-items: center; padding: 22px; }
.ltile .face.front .logo { max-width: 72%; max-height: 40px; object-fit: contain; }
.ltile .face.front .wordmark-slot { font-family: var(--serif); font-size: clamp(20px, 2vw, 28px); letter-spacing: -.01em; color: var(--ink); text-align: center; line-height: 1.1; }
.ltile .face.back { background: var(--ink); color: #fff; padding: 20px; display: flex; flex-direction: column; justify-content: center; }
.ltile .face.back h3 { color: #fff; font-size: 15px; margin: 0 0 6px; letter-spacing: .02em; }
.ltile .face.back p { color: rgba(255,255,255,.84); font-size: 12.5px; line-height: 1.4; margin: 0; }
@media (max-width: 900px) { .ltiles { grid-template-columns: repeat(3, 1fr); } } @media (max-width: 600px) { .ltiles { grid-template-columns: repeat(2, 1fr); } }

/* speaking chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 24px; }
.chip { display: inline-flex; flex-direction: column; padding: 8px 14px; border: 1px solid var(--hair); border-radius: 12px; background: var(--paper-2); font-size: 14px; }
.chip strong { font-weight: 600; } .chip .sub { font-size: 12px; color: var(--ink-3); }

/* building photos */
.build-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.build-photos .figure { border-radius: 14px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--paper-2); }
.build-photos .figure.tall { grid-column: span 2; aspect-ratio: 16 / 10; }
.build-photos img { width: 100%; height: 100%; object-fit: cover; display: block; }
.elements-ill.two { grid-template-columns: repeat(2, 1fr); max-width: 760px; margin-left: auto; margin-right: auto; }
.elements-ill.two .element { aspect-ratio: 3 / 2; }
@media (max-width: 760px) { .elements-ill.two { grid-template-columns: 1fr; } }

/* interactive timeline */
.tl-intro { position: sticky; top: 120px; }
.tl { list-style: none; margin: 0; padding: 0 0 0 26px; border-left: 2px solid var(--hair); }
.tl-item { position: relative; margin: 0 0 6px; }
.tl-head { all: unset; cursor: pointer; display: grid; grid-template-columns: 110px 1fr; gap: 14px; align-items: baseline; width: 100%; padding: 12px 10px; border-radius: 10px; box-sizing: border-box; }
.tl-head:hover, .tl-head:focus-visible { background: var(--paper-2); }
.tl-head .dot { position: absolute; left: -33px; top: 19px; width: 12px; height: 12px; border-radius: 50%; background: var(--paper); border: 2px solid var(--ink-3); transition: background .25s, border-color .25s, transform .25s; }
.tl-item.open .tl-head .dot { background: var(--sky); border-color: var(--sky); transform: scale(1.25); }
.tl-head .label { font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; }
.tl-head .title { font-family: var(--serif); font-size: 22px; color: var(--ink); }
.tl-item.open .tl-head .title { color: var(--azure); }
.tl-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s ease; }
.tl-item.open .tl-body { grid-template-rows: 1fr; }
.tl-inner { overflow: hidden; padding: 0 10px 0 134px; }
.tl-item.open .tl-inner { padding-bottom: 14px; }
.tl-inner p { font-size: 15px; color: var(--ink-2); margin: 0 0 8px; }
.tl-inner .kitlink { font-size: 13px; font-weight: 600; color: var(--azure); }
@media (max-width: 760px) { .tl-head { grid-template-columns: 1fr; gap: 2px; } .tl-inner { padding-left: 10px; } .tl-intro { position: static; } }

/* interests tiles */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.tile { margin: 0; border-radius: 16px; overflow: hidden; background: var(--ink); aspect-ratio: 4 / 5; position: relative; }
.tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tile .missing { width: 100%; height: 100%; display: grid; place-items: center; background: repeating-linear-gradient(135deg, var(--paper-2) 0 10px, #eceae4 10px 20px); color: var(--ink-3); font: 11px ui-monospace, Menlo, monospace; }
.tile figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 16px; background: linear-gradient(to top, rgba(21,27,34,.8), rgba(21,27,34,0)); color: #fff; }
.tile figcaption strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 22px; }
.tile figcaption span { font-size: 13.5px; opacity: .85; }
@media (max-width: 760px) { .tiles { grid-template-columns: 1fr; } }
.unveil.jf .veil.ink { background: rgba(21,27,34,.78); }
.hero.paper.intro .content { padding-left: var(--gutter); padding-right: var(--gutter); }

.amp-photo .photo-slot.landscape { aspect-ratio: auto; max-height: 560px; }
.amp-photo .photo-slot img { object-fit: contain; max-height: 560px; width: auto; margin: 0 auto; }
.amp-photo .photo-slot { background: transparent; border: 0; border-radius: 16px; }

/* framework columns: titled, centered */
.framework-cols .col { background: none; border: 0; padding: 0 12px; text-align: center; }
.framework-cols .col h3 { font-size: 22px; margin: 0 0 10px; }
.framework-cols .col p { color: var(--ink-2); font-size: 16px; }
/* the "make it better" card carries the signature color against the slop card */
.ink-ground .cols2 .col.good { background: var(--sun); border-color: var(--sun); color: #fff; }
.ink-ground .cols2 .col.good h3, .ink-ground .cols2 .col.good p, .ink-ground .cols2 .col.good li { color: #fff; }
.ink-ground .cols2 .col.good li::before { color: #fff; }
/* card backs: center when the text fits, start at the top and scroll when it doesn't */
.element .face.back { justify-content: safe center; overflow-y: auto; scrollbar-width: thin; }
.element .face.back p { font-size: 13px; line-height: 1.45; }
/* three or more after-paragraphs: a single measured column with rules between, not a wall of full-width lines */
.unveil .afters:has(.after:nth-child(3)) { grid-template-columns: 1fr; max-width: 72ch; gap: 0; }
.unveil .afters:has(.after:nth-child(3)) .after { font-size: 19px; line-height: 1.6; padding: 18px 0; border-top: 1px solid rgba(255,255,255,.22); }
.unveil .afters:has(.after:nth-child(3)) .after:first-child { border-top: 0; padding-top: 6px; }

/* ---- v16: Momentmaking surface ---- */
.btn.primary.sunbtn { background: var(--sun); border-color: var(--sun); color: #fff; }
.btn.primary.sunbtn:hover { background: var(--sun-deep); border-color: var(--sun-deep); }
.subnav .mark-icon { width: 16px; height: 16px; fill: var(--sun); margin-right: 8px; vertical-align: -2px; }

/* hero: paper, the mark, the wish */
.hero.paper.mm-hero { min-height: 0; align-items: start; }
.hero.paper.mm-hero .content { padding: clamp(40px, 6vw, 80px) var(--gutter) clamp(40px, 5vw, 64px); }
.mm-hero-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; }
.mm-hero-grid h1 { font-size: clamp(48px, 7vw, 92px); line-height: 1; max-width: none; margin-bottom: 20px; }
.mm-hero-grid h1 em { font-style: italic; color: var(--sun); font-size: .62em; display: inline-block; margin-top: 6px; }
.mm-hero-grid .lede { max-width: 46ch; }
.mark-stage { display: grid; place-items: center; }
.bigmark { width: min(100%, 340px); fill: var(--sun); animation: breathe 7s ease-in-out infinite; transform-origin: center; }
@keyframes breathe { 0%,100% { transform: scale(1) rotate(0deg); } 50% { transform: scale(1.04) rotate(2deg); } }
@media (prefers-reduced-motion: reduce) { .bigmark { animation: none; } }
@media (max-width: 860px) { .mm-hero-grid { grid-template-columns: 1fr; } .bigmark { width: 200px; } }

/* the split */
.split-stage { position: relative; height: 420px; display: flex; align-items: center; justify-content: center; }
.split-stage .half { position: absolute; margin: 0; transform: translateX(var(--dx, 0)); transition: transform .12s linear; }
.split-stage .half { width: 100%; left: 0 !important; right: auto !important; }
.split-stage .half.left { right: 50%; --dir: -1; }
.split-stage .half.right { left: 50%; --dir: 1; }
.split-stage .half img { width: 100%; display: block; filter: drop-shadow(0 10px 24px rgba(21,27,34,.14)); }
.split-stage figcaption { position: absolute; top: 44%; left: 0; right: 0; text-align: center; font-family: var(--serif); font-style: italic; font-size: clamp(20px, 2.2vw, 30px); color: var(--ink); }
.split-stage .half.left figcaption { right: 56%; } .split-stage .half.right figcaption { left: 58%; }

/* hover diagrams */
.hover-cols .col { background: none; border: 0; padding: 14px 16px; border-left: 3px solid var(--hair); border-radius: 0; margin-bottom: 8px; transition: border-color .25s, background .25s; }
.hover-cols .col h3 { font-size: 20px; margin: 0 0 6px; }
.hover-cols .col p { font-size: 15px; color: var(--ink-2); margin: 0; }
.hover-cols .col.active { border-left-color: var(--sun); background: var(--paper-2); }
.mindset, .petals, .spiral { width: 100%; height: auto; display: block; }
.mindset .disc circle { fill: rgba(236,99,32,.06); stroke: var(--ink-3); stroke-width: 1.5; transition: fill .25s, stroke .25s; cursor: pointer; }
.mindset .disc text, .petals text, .spiral text { font-family: var(--sans); font-size: 15px; fill: var(--ink-2); pointer-events: none; }
.mindset .disc.active circle { fill: rgba(236,99,32,.22); stroke: var(--sun); }
.petals .petal path { fill: var(--sun); opacity: .55; transition: opacity .25s; cursor: pointer; }
.petals .petal.active path { opacity: 1; }
.petals .core { fill: var(--sun); }
.spectrum { display: flex; align-items: center; gap: 12px; margin: 16px auto 0; max-width: 320px; font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; color: var(--ink-3); }
.spectrum i { flex: 1; height: 8px; border-radius: 4px; background: linear-gradient(90deg, rgba(21,27,34,.08), var(--ink)); }
.spiral .coil { fill: none; stroke: var(--sky); stroke-width: 10; stroke-linecap: round; opacity: .35; }
.spiral .stop circle { fill: var(--paper); stroke: var(--ink-3); stroke-width: 2; cursor: pointer; transition: fill .25s, stroke .25s; }
.spiral .stop.active circle { fill: var(--sun); stroke: var(--sun); }

/* momentum: pinned video, captions arrive one at a time */
.pinbeat { position: relative; height: 480vh; }
.pinbeat .stage { position: sticky; top: 0; height: 100vh; overflow: hidden; background: var(--ink); }
.pinbeat .beat-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pinbeat .tint { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(21,27,34,.15), rgba(21,27,34,.45)); }
.pinbeat .captions { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 0 var(--gutter); }
.pinbeat .captions > * { grid-area: 1 / 1; }
.pinbeat .kicker { align-self: start; margin-top: 140px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; color: rgba(255,255,255,.85); }
.pinbeat .kicker span { text-transform: none; letter-spacing: 0; font-weight: 400; opacity: .85; }
.pinbeat .captions p { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(36px, 6vw, 84px); line-height: 1.05; color: #fff; margin: 0; opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease; text-shadow: 0 2px 30px rgba(0,0,0,.35); max-width: 16ch; }
.pinbeat .captions p.on { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .pinbeat { height: auto; } .pinbeat .stage { position: relative; height: auto; min-height: 70vh; } .pinbeat .captions { position: relative; display: block; padding: 120px var(--gutter) 60px; } .pinbeat .captions > * { opacity: 1; transform: none; margin: 0 auto 18px; } }

/* slide-over, sunset variant for Momentmaking */
.unveil .veil.sunset { background: rgba(236,99,32,.9); color: #fff; }
.unveil .veil.sunset .line em { color: inherit; }
.unveil .veil.sunset .after { color: rgba(255,255,255,.92); }

/* faking · making · taking */
.shapes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 900px; margin: 36px auto 0; }
.shape-tile { aspect-ratio: 1; }
.shape-tile .face { display: grid; place-items: center; text-align: center; padding: 24px; background: none; }
.shape-tile .face > * { grid-area: 1 / 1; }
.shape-tile .geo { width: 62%; aspect-ratio: 1; background: var(--ink); display: block; }
.shape-tile.diamond .geo { transform: rotate(45deg) scale(.82); }
.shape-tile.circle .geo { border-radius: 50%; background: var(--sun); }
.shape-tile h3 { color: #fff; font-size: 24px; margin: 0; z-index: 1; }
.shape-tile .face.back .geo { opacity: .12; }
.shape-tile .face.back h3 { align-self: start; margin-top: 12px; color: var(--ink); font-size: 18px; }
.shape-tile .face.back p { z-index: 1; color: var(--ink); font-size: 16px; line-height: 1.45; max-width: 22ch; margin: 0; }
@media (max-width: 760px) { .shapes { grid-template-columns: 1fr; max-width: 360px; } }

/* the practice tool */
.screens { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; max-width: 900px; margin: 36px auto 24px; }
.screen { margin: 0; text-align: center; }
.phone { aspect-ratio: 9 / 19.5; border-radius: 28px; background: var(--ink); padding: 10px; box-shadow: 0 18px 40px rgba(21,27,34,.18); }
.phone img, .phone .missing { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 20px; display: block; background: #fff; }
.screen figcaption { margin-top: 14px; font-size: 14px; color: var(--ink-2); }
.screen figcaption strong { display: block; color: var(--ink); font-size: 16px; margin-bottom: 2px; }
@media (max-width: 760px) { .screens { grid-template-columns: 1fr; max-width: 300px; } }

/* engagement on ink */
.on-ink p { color: rgba(255,255,255,.85); }
.ink-ground .lede { color: rgba(255,255,255,.85); }
.strip { margin: 0; position: sticky; top: 130px; }
.strip img { width: 100%; border-radius: 12px; display: block; }
.strip figcaption { margin-top: 10px; font-size: 13px; color: rgba(255,255,255,.6); font-style: italic; }

.unveil .line + .afters { margin-top: 26px; }
.spiral .coil { opacity: .3; }

.figure-soft { margin: 0; border-radius: 18px; overflow: hidden; aspect-ratio: 4 / 3; }
.figure-soft img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---- v17: Momentmaking, focused ---- */
.mark-labeled { position: relative; width: min(100%, 420px); aspect-ratio: 1; margin: 0 auto; }
.mark-labeled .markbig { position: absolute; inset: 22%; width: 56%; height: 56%; fill: var(--sun); }
.mark-labeled .prop { position: absolute; width: 38%; text-align: center; }
.mark-labeled .prop strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 20px; color: var(--ink); }
.mark-labeled .prop span { display: block; font-size: 12.5px; color: var(--ink-3); line-height: 1.35; margin-top: 2px; }
.mark-labeled .prop.top { top: 0; left: 31%; } .mark-labeled .prop.bottom { bottom: 0; left: 31%; }
.mark-labeled .prop.left { left: -6%; top: 50%; transform: translateY(-50%); width: 30%; text-align: right; }
.mark-labeled .prop.right { right: -6%; top: 50%; transform: translateY(-50%); width: 30%; text-align: left; }
.pinbeat img.beat-video { object-position: center 30%; }
.pinbeat { height: 380vh; }
.barriers .col { background: var(--paper-2); border: 1px solid var(--hair); border-radius: 14px; padding: 18px 20px; }
.barriers .col h3 { font-size: 18px; } .barriers .col p { font-size: 14.5px; }
.screens.tight { grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 0; max-width: none; }
.screens.tight .phone { border-radius: 22px; padding: 7px; } .screens.tight .phone img { border-radius: 16px; }
.screens.tight figcaption { font-size: 12.5px; } .screens.tight figcaption strong { font-size: 13.5px; }
.chips.practices .chip { font-family: var(--serif); font-size: 17px; padding: 8px 16px; }
.figure-soft .slot-label { display: none; }
.figure-soft.missing { background: repeating-linear-gradient(135deg, var(--paper-2) 0 10px, #eceae4 10px 20px); position: relative; }
.figure-soft.missing .slot-label { display: block; position: absolute; left: 10px; right: 10px; bottom: 10px; text-align: center; font: 11px ui-monospace, Menlo, monospace; color: var(--ink-3); }
@media (max-width: 760px) { .mark-labeled .prop.left, .mark-labeled .prop.right { width: 34%; } .screens.tight { grid-template-columns: 1fr 1fr 1fr; } }
.hero.paper .btn.primary.sunbtn, .btn.primary.sunbtn { background: var(--sun); border-color: var(--sun); color: #fff; }
.split-stage { overflow: hidden; }

/* nature beats: shorter than momentum, and quieter type */

#moment-beat .captions p, #growth .captions p { font-size: clamp(32px, 5vw, 68px); max-width: 20ch; }
#moment-beat .kicker span, #growth .kicker span { font-style: italic; }
.pinbeat .stage { background: radial-gradient(120% 80% at 70% 20%, #2a3542, var(--ink) 70%); }
/* the labeled mark as a 3×3 grid, so longer definitions never run into the mark */
.mark-labeled { aspect-ratio: auto; width: min(100%, 520px); display: grid; grid-template-columns: 1fr minmax(150px, 190px) 1fr; grid-template-rows: auto auto auto; gap: 10px 14px; align-items: center; }
.mark-labeled .markbig { position: static; width: 100%; height: auto; grid-column: 2; grid-row: 2; inset: auto; }
.mark-labeled .prop { position: static; width: auto; transform: none; }
.mark-labeled .prop.top { grid-column: 2; grid-row: 1; } .mark-labeled .prop.bottom { grid-column: 2; grid-row: 3; }
.mark-labeled .prop.left { grid-column: 1; grid-row: 2; text-align: right; } .mark-labeled .prop.right { grid-column: 3; grid-row: 2; text-align: left; }
.mark-labeled .prop span { font-size: 12.5px; line-height: 1.35; }
.mark-labeled .props { display: contents; }
.mark-labeled { grid-template-columns: minmax(130px, 1fr) minmax(150px, 180px) minmax(130px, 1fr); }
.mark-labeled { width: 100%; max-width: 600px; grid-template-columns: 1fr 160px 1fr; gap: 6px 18px; }
.mark-labeled .prop span { font-size: 13px; }
.mark-labeled .prop.top, .mark-labeled .prop.bottom { max-width: 260px; justify-self: center; }
.mark-labeled .prop.left, .mark-labeled .prop.right, .mark-labeled .prop.top, .mark-labeled .prop.bottom { width: auto; left: auto; right: auto; top: auto; bottom: auto; border: 0; }
.mark-labeled .prop.left span, .mark-labeled .prop.right span { text-wrap: pretty; }

/* paper slide-over, for the Momentmaking opening */
.unveil .veil.paper { background: rgba(247,246,242,.94); color: var(--ink); }
.unveil .veil.paper .line { font-style: normal; }
.unveil .veil.paper .line em { color: var(--sun); font-style: italic; }
.unveil .veil.paper .cite { color: var(--ink-2); }
.unveil .veil.paper .after { color: var(--ink-2); }

/* captions: upright by default, italics only where the text is starred */
.pinbeat .captions p { font-style: normal; }
.pinbeat .captions p em { font-style: italic; }
/* single after-paragraph on a slide-over runs wide and shallow */
.unveil .afters:not(:has(.after:nth-child(2))) { grid-template-columns: 1fr; }
.unveil .afters:not(:has(.after:nth-child(2))) .after { max-width: 78ch; font-size: 19px; }
/* programs inside Practice */
.programs { margin-top: 64px; padding-top: 40px; border-top: 1px solid var(--hair); }
.programs h3 { font-size: 30px; margin-bottom: 10px; }
.programs .lede.wide { max-width: none; font-size: clamp(18px, 1.7vw, 22px); line-height: 1.55; margin: 0; }
.mark-labeled { grid-template-columns: 1fr 220px 1fr; max-width: 640px; margin: 0; }
.mark-labeled .prop span { font-size: 12.5px; }
.spectrum { margin: 20px 0 0 calc(50% - 160px); }
.mark-labeled .prop.left, .mark-labeled .prop.right { align-self: start; transform: none; height: 220px; box-sizing: border-box; padding-top: 94px; overflow: visible; }

/* moment section v2: text column and labeled mark share one row, centered on each other */
.moment-grid { align-items: center; gap: 48px; }
.moment-grid .spectrum { margin: 28px 0 0; max-width: 340px; }
.moment-grid .mark-labeled { grid-template-columns: 1fr 180px 1fr; gap: 4px 16px; max-width: 600px; justify-self: end; }
.moment-grid .mark-labeled .prop.left, .moment-grid .mark-labeled .prop.right { height: 180px; padding-top: 74px; }
.moment-grid .mark-labeled .prop.top { align-self: end; padding-bottom: 6px; }
.moment-grid .mark-labeled .prop.bottom { align-self: start; padding-top: 6px; }
@media (max-width: 900px) { .moment-grid .mark-labeled { justify-self: center; margin-top: 24px; } }
.moment-grid .mark-labeled .prop.top, .moment-grid .mark-labeled .prop.bottom { grid-column: 1 / -1; justify-self: center; max-width: 300px; text-align: center; }
.moment-grid .mark-labeled .prop.bottom { padding-top: 14px; }
.moment-grid .mark-labeled .prop.top { padding-bottom: 14px; }


#moment-beat.unveil { height: auto; }
/* two mechanics only: every card slider covers the photo fully, then both leave; every pinned beat is the same length */
.pinbeat { height: 380vh; }
/* card slider handoff: the card rises until its top meets the top of the photo (just under the two nav bars), then card and photo leave together */
:root { --chrome: 112px; }
section.unveil { padding: 0; }
.unveil .veil { min-height: calc(100vh - var(--chrome)); padding: 72px 0; display: flex; align-items: center; }

/* the paragraph after a pinned beat repeats the beat's name as a section heading */
.after-beat { padding-top: 72px; }
.after-beat h2 { margin-bottom: 18px; }

/* footer: one column per segment, headed by a link to it */
footer .cols strong a { color: inherit; display: inline; margin: 0; }

/* Atomic Structure: the same frame as Trust, with drawings in place of photos */
.atom-chart { display: block; width: 100%; height: auto; margin: 14px 0 18px; }
.kit-line { margin: 14px 0 0; }
.kit-line .kitlink { font-weight: 600; color: var(--azure); }
.atom-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0 0 16px; text-align: center; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); padding: 12px 0; }
.atom-stats b { display: block; font-family: var(--serif); font-weight: 400; font-size: 28px; color: var(--ink); line-height: 1.1; }
.atom-stats span { font-size: 12.5px; color: var(--ink-3); letter-spacing: .04em; }
.fig-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.fig-card { display: flex; flex-direction: column; }
.fig-card .fig { width: 100%; height: auto; background: var(--paper); border-radius: 12px; margin-bottom: 16px; }
.fig-card h3 { font-size: 21px; margin-bottom: 8px; }
.fig-card p { font-size: 15px; color: var(--ink-2); }
@media (max-width: 860px) { .fig-cards { grid-template-columns: 1fr; } }
#atomic .lede.wide { max-width: none; font-size: clamp(20px, 2vw, 26px); line-height: 1.6; letter-spacing: -.005em; margin: 28px 0 0; color: var(--ink); }
#atomic .lede.wide p { max-width: none; }
.kit-line { margin: 18px 0 40px; }
.atomic-grid { margin-top: 0 !important; }

/* "i" boxes: [TERM](i:meaning) in any content file */
.info { position: relative; display: inline; font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline dotted var(--azure); text-underline-offset: 3px; }
.info .info-i { display: inline-grid; place-items: center; width: 15px; height: 15px; margin-left: 3px; border-radius: 50%; background: var(--azure); color: #fff; font: 600 10px/1 var(--sans, Inter, system-ui, sans-serif); font-style: normal; vertical-align: 2px; }
.info .info-box { position: absolute; left: 50%; bottom: calc(100% + 10px); transform: translate(-50%, 4px); width: max-content; max-width: 260px; padding: 10px 14px; border-radius: 10px; background: var(--ink); color: #fff; font-size: 14px; line-height: 1.45; text-align: left; box-shadow: 0 8px 24px rgba(21,27,34,.18); opacity: 0; pointer-events: none; transition: opacity .15s ease, transform .15s ease; z-index: 5; white-space: normal; }
.info .info-box::after { content: ""; position: absolute; left: 50%; top: 100%; margin-left: -6px; border: 6px solid transparent; border-top-color: var(--ink); }
.info:hover .info-box, .info:focus-visible .info-box, .info[aria-expanded="true"] .info-box { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
/* Org chart card: more air around the drawing, to sit level with the orbit card */
.atomic-grid .card:first-child .atom-chart { margin: 64px 0 60px; }
/* Build to Think: the framing photo is portrait; show John on the top plate, cap to boots */
.build-photos .figure.tall { aspect-ratio: 1 / 1; }
.build-photos .figure.tall img { object-position: 50% 74%; }
.build-photos .figure { display: block; position: relative; }
.build-photos .figure img { position: absolute; inset: 0; }
/* company logos: square marks get more height than wide wordmarks */
.ltile .face.front .logo { max-width: 74%; max-height: 96px; }

/* Speaking: a straight list in two columns */
.name-list { list-style: none; margin: 22px 0 6px; padding: 0; columns: 2; column-gap: 32px; }
.name-list li { break-inside: avoid; padding: 7px 0; border-top: 1px solid var(--hair); font-size: 15px; color: var(--ink); line-height: 1.35; }
.name-list li span { color: var(--ink-3); font-size: 13px; }
@media (max-width: 600px) { .name-list { columns: 1; } }

/* figures and numbered lists inside essays */
.essay .body .essay-fig { margin: 28px 0; }
.essay .body .essay-fig img { width: 100%; height: auto; display: block; border-radius: 12px; border: 1px solid var(--hair); }
.essay .body ol { padding-left: 1.4em; }
.essay .body .essay-fig img { max-height: 640px; object-fit: cover; object-position: center 30%; }

/* timeline: category labels (not years), so the label column is wider and dot, label and title share one centre line */
.tl-head { position: relative; grid-template-columns: 215px 1fr; align-items: center; gap: 18px; }
.tl-head .dot { left: -33px; top: 50%; margin-top: -7px; }
.tl-item.open .tl-head .dot { transform: scale(1.25); }
.tl-head .label { line-height: 1.3; }
.tl-head .title { line-height: 1.2; }
.tl-inner { padding-left: 243px; }
@media (max-width: 760px) { .tl-head { grid-template-columns: 1fr; gap: 2px; } .tl-inner { padding-left: 10px; } }
.tl-head .label { white-space: nowrap; }
/* timeline v3: label and title share a baseline (so they read as one line); the dot sits on the label's centre; titles never wrap */
.tl-head { grid-template-columns: 178px 1fr; gap: 20px; align-items: baseline; }
.tl-head .label { font-size: 10.5px; letter-spacing: .07em; line-height: 1; }
.tl-head .title { white-space: nowrap; line-height: 1.2; }
.tl-inner { padding-left: 208px; }
@media (max-width: 760px) { .tl-head .title { white-space: normal; } .tl-inner { padding-left: 10px; } }
.tl-head .dot { top: 27.5px; margin-top: -6px; }
/* charts inside essays: never crop, centre tall ones */
.essay .body .essay-fig img[src$=".png"], .essay .body .essay-fig img[src$=".svg"] { max-height: 760px; object-fit: contain; width: auto; max-width: 100%; margin: 0 auto; background: #fff; }
.essay .body .essay-fig img[src*="framework-2026"] { width: 100%; }

/* opening beat: the italic turn sits on its own line, same size as the first */
#moment-beat .line em { display: block; margin-top: .9em; }
#moment-beat .line { font-size: clamp(28px, 4.3vw, 62px); }

/* section nav: the brand name returns to the top; jumps land cleanly below the two sticky bars */
html { scroll-padding-top: 112px; }
.subnav a.brand { color: inherit; text-decoration: none; cursor: pointer; }
.subnav a.brand:hover { opacity: .75; }

/* phones: the Frankenstein split figure stacks; the moment-properties star shrinks so its side labels fit */
@media (max-width: 860px) { .split-figure { grid-template-columns: 1fr; gap: 24px; } .split-figure .center .photo-slot { width: min(260px, 100%); } }
@media (max-width: 600px) {
  .mark-labeled, .moment-grid .mark-labeled { grid-template-columns: minmax(0, 1fr) 112px minmax(0, 1fr); gap: 4px 10px; max-width: 100%; }
  .mark-labeled .prop.left, .mark-labeled .prop.right, .moment-grid .mark-labeled .prop.left, .moment-grid .mark-labeled .prop.right { height: 112px; padding-top: 34px; }
  .mark-labeled .prop strong { font-size: 17px; }
  .mark-labeled .prop span { font-size: 12px; overflow-wrap: anywhere; }
}
@media (max-width: 900px) { .hero .content.wrap { padding-left: var(--gutter); padding-right: var(--gutter); } }
/* phones: star on top, the four properties in a 2x2 grid beneath it */
@media (max-width: 600px) {
  .mark-labeled, .moment-grid .mark-labeled { grid-template-columns: 1fr 1fr; gap: 18px 16px; }
  .mark-labeled .markbig { grid-column: 1 / -1; grid-row: 1; width: 130px; justify-self: center; margin-bottom: 6px; }
  .mark-labeled .prop.left, .mark-labeled .prop.right, .mark-labeled .prop.top, .mark-labeled .prop.bottom,
  .moment-grid .mark-labeled .prop.left, .moment-grid .mark-labeled .prop.right, .moment-grid .mark-labeled .prop.top, .moment-grid .mark-labeled .prop.bottom { height: auto; padding: 0; text-align: center; align-self: start; justify-self: stretch; max-width: none; }
  .mark-labeled .prop.top, .moment-grid .mark-labeled .prop.top { grid-column: 1; grid-row: 2; } .mark-labeled .prop.right { grid-column: 2; grid-row: 2; }
  .mark-labeled .prop.left { grid-column: 1; grid-row: 3; } .mark-labeled .prop.bottom, .moment-grid .mark-labeled .prop.bottom { grid-column: 2; grid-row: 3; }
  .mark-labeled .prop span { overflow-wrap: normal; }
}

/* page tops: the first content sits close under the nav bars (was ~170px of empty paper on laptop) */
.surface section.hero.intro, .surface section.hero.mm-hero, .hero.intro, .hero.mm-hero { padding-top: 0; min-height: 0; align-items: start; }
.hero.intro .content, .hero.paper.mm-hero .content { padding-top: clamp(28px, 4vw, 56px); }
.hero.intro .intro-grid { align-items: start; }
.surface section.hero.ground, .hero.ground { padding-top: 0; }
@media (max-width: 760px) {
  .hero.intro .content, .hero.paper.mm-hero .content { padding-top: 24px; }
  .hero.ground { min-height: 0; }
  .hero.ground .content { padding-top: 40px; }
  .intro-grid .portrait { max-width: 220px; }
}
/* phones: logo-card backs get smaller type and a little more height so every description fits inside its margins */
@media (max-width: 600px) {
  .ltile { aspect-ratio: 5 / 6; }
  .ltile .face.back { padding: 14px 14px; justify-content: center; }
  .ltile .face.back h3 { font-size: 13.5px; margin-bottom: 4px; }
  .ltile .face.back p { font-size: 11.5px; line-height: 1.35; }
}
@media (max-width: 380px) { .ltile { aspect-ratio: 3 / 4; } .ltile .face.back { padding: 12px; } .ltile .face.back p { font-size: 11px; } }
@media (max-width: 340px) { .ltile { aspect-ratio: 2 / 3; } }

/* Carpe diem panel: Faking / Making / Taking as white shapes, ink type (content/mm/facias.md) */
.facias-shapes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; max-width: 900px; margin-top: 44px; }
.fm-item { display: flex; flex-direction: column; align-items: center; text-align: center; }
.fm-shape { width: 136px; aspect-ratio: 1; display: grid; place-items: center; }
.fm-shape > * { grid-area: 1 / 1; }
.fm-shape .geo { display: block; width: 100%; height: 100%; background: #fff; }
.fm-item.diamond .geo { transform: rotate(45deg) scale(.72); border-radius: 6px; }
.fm-item.circle .geo { border-radius: 50%; transform: scale(.9); }
.fm-shape h3 { position: relative; margin: 0; color: var(--ink); font-size: 21px; font-weight: 400; }
.fm-item p { color: var(--ink); font-size: 15.5px; line-height: 1.45; max-width: 24ch; margin: 14px 0 0; }
@media (max-width: 760px) {
  .facias-shapes { grid-template-columns: 1fr; gap: 14px; margin-top: 32px; }
  .fm-item { flex-direction: row; text-align: left; gap: 16px; }
  .fm-shape { width: 92px; flex: none; }
  .fm-shape h3 { font-size: 15px; }
  .fm-item p { margin: 0; font-size: 15px; max-width: none; }
}
.fm-item.diamond .geo { background: var(--ink); }
.fm-item.diamond .fm-shape h3 { color: #fff; }

h1 em, h2 em, h3 em { font-family: var(--serif); }
/* photo cards: label: top / label: bottom in the .md moves a card's title off the middle of its photo */
.pbox.label-top .face.front h3 { place-items: start center; padding-top: 14%; }
.pbox.label-bottom .face.front h3 { place-items: end center; padding-bottom: 12%; }
/* captions break into even lines instead of leaving one word alone */
figcaption { text-wrap: balance; }

/* ===== Phone header: wordmark + menu button on one row; the three brands open from the button.
   The section bar keeps its coloured icon but drops the brand name (the page heading already says it). */
.menu-btn, .narrow-only { display: none; }
.top .wordmark { margin-left: -8px; }  /* the wordmark image has empty space on its left; pull the letters flush with the text column */
@media (max-width: 640px) {
  .top .wrap { position: relative; height: 56px; }
  .top .wordmark { height: 20px; margin-left: -7px; }
  .menu-btn { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; margin-right: -10px; padding: 0 10px; background: none; border: 0; cursor: pointer; color: var(--ink); }
  .menu-btn span { display: block; height: 2px; border-radius: 2px; background: currentColor; transition: transform .25s ease, opacity .2s ease; }
  .top.open .menu-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .top.open .menu-btn span:nth-child(2) { opacity: 0; }
  .top.open .menu-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .top nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; padding: 6px var(--gutter) 14px; background: var(--paper); border-bottom: 1px solid var(--hair); box-shadow: 0 18px 30px -18px rgba(21,27,34,.25); font-size: 17px; }
  .top.open nav { display: flex; }
  .top nav a { padding: 12px 0; border-bottom: 1px solid var(--hair); }
  .top nav a:last-child { border-bottom: 0; }
  .top nav a.active { color: var(--ink); font-weight: 600; }
  body.on-dark .top:not(.scrolled) .menu-btn { color: #fff; }
  body.on-dark .top:not(.scrolled) nav { background: var(--ink); border-bottom-color: rgba(255,255,255,.1); }
  body.on-dark .top:not(.scrolled) nav a { border-bottom-color: rgba(255,255,255,.1); }
  .subnav { top: 56px; }
  .subnav .wrap { gap: 22px; }
  .subnav a.brand { font-size: 0; gap: 0; margin-right: 0; }
  html { scroll-padding-top: 103px; }
  .wide-only { display: none; } .narrow-only { display: inline; }
}

/* Phone: the section bar folds into the menu too, so the top of every page is just the wordmark and the menu button. */
.nav-sections { display: none; }
@media (max-width: 640px) {
  .subnav { display: none; }
  html { scroll-padding-top: 56px; }
  .top nav .nav-sections { display: flex; flex-direction: column; border-bottom: 1px solid var(--hair); padding: 0 0 6px; }
  .top nav .nav-sections a { padding: 9px 0 9px 18px; border: 0; font-size: 15.5px; color: var(--ink-2); }
  .top nav a.active { border-bottom: 0; }
  body.on-dark .top:not(.scrolled) nav .nav-sections { border-bottom-color: rgba(255,255,255,.1); }
  body.on-dark .top:not(.scrolled) nav .nav-sections a { color: rgba(255,255,255,.72); }
}

/* ===== Phones: content fills the column, app-style ===== */
@media (max-width: 640px) {
  /* portrait and Frankenstein fill the column */
  .intro-grid .portrait { max-width: none; justify-self: stretch; }
  .split-figure .center .photo-slot { width: 100%; max-width: none; }
  /* Contributions: category label sits above each title, so titles get the full width */
  .tl-head { display: block; padding: 10px 6px; }
  .tl-head .label { display: block; font-size: 10.5px; margin-bottom: 2px; }
  .tl-head .title { display: block; white-space: normal; font-size: 21px; }
  .tl-head .dot { top: 16px; margin-top: 0; }
  /* app screens: a sideways swipe row, edge to edge, the next phone peeking in */
  .screens.tight { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 16px; margin: 8px calc(-1 * var(--gutter)) 0; padding: 4px var(--gutter) 12px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .screens.tight::-webkit-scrollbar { display: none; }
  .screens.tight { scroll-padding-inline: var(--gutter); }
  .screens.tight .screen { flex: 0 0 58%; scroll-snap-align: start; }
  .screens.tight figcaption { font-size: 14px; } .screens.tight figcaption strong { font-size: 16px; }
  /* footer: two by two */
  footer .cols { grid-template-columns: 1fr 1fr; gap: 26px 18px; }
}

/* Pinned beats are scroll-driven: the script sets each line's fade and drift every frame, so no CSS easing lag. */
.pinbeat.scrub .captions p { transition: none; will-change: opacity, transform; }

/* Flip cards: Safari can draw a photo on the front through the back face. Belt and braces: the front is switched off
   (and the back switched on) at the midpoint of the turn, so only one side ever renders, in every browser. */
.flip .faces { -webkit-transform-style: preserve-3d; }
.flip .face { transition: visibility 0s linear .17s; }
.flip .face.back { visibility: hidden; }
.flip.flipped .face.back { visibility: visible; }
.flip.flipped .face.front { visibility: hidden; }
@media (hover: hover) {
  .flip:hover .face.back, .flip:focus-visible .face.back { visibility: visible; }
  .flip:hover .face.front, .flip:focus-visible .face.front { visibility: hidden; }
}
@media (prefers-reduced-motion: reduce) { .flip .face { transition: none; } }

/* ===== No small-caps labels: every former uppercase label is set in normal case at a readable size. ===== */
.eyebrow, .tag, .tl-head .label, .reading .rlabel, .dl .arrow, .dl .num, .spectrum, .pinbeat .kicker { text-transform: none; letter-spacing: 0; }
.eyebrow { font-size: 14px; font-weight: 500; }
.tag { font-size: 13px; font-weight: 500; }
.tl-head .label { font-size: 13px; font-weight: 500; }
.reading .rlabel { font-size: 14px; font-weight: 500; }
.dl .arrow { font-size: 14px; font-weight: 500; }
.dl .num { font-size: 13px; font-weight: 500; }
.spectrum { font-size: 14px; font-weight: 500; }
.pinbeat .kicker { font-size: 16px; font-weight: 500; }
/* the Truth + Accountability + Support figure: set in the heading face, not shouted */
.equation { font-family: var(--serif); font-weight: 400; text-transform: none; letter-spacing: 0; }

/* ===== Type, October 2026: Hanken Grotesk throughout; Daniel Bold as the hand, used only for the emphasised words in
   heroes and provocation lines (about one or two per page). Everywhere else emphasis is Hanken italic. ===== */
h1, h2, h3 { font-weight: 500; letter-spacing: -0.022em; }
.provoke .line, .unveil .line, .pinbeat .captions p { font-weight: 400; letter-spacing: -0.02em; }
.hero h1 em, .mm-hero-grid h1 em, .provoke .line em, .unveil .line em, .pinbeat .captions p em {
  font-family: var(--hand); font-style: normal; font-weight: 400; letter-spacing: 0; font-size: 0.98em; }
.mm-hero-grid h1 em { font-size: .64em; }
.hero h1 em { white-space: nowrap; }
.hero h1 em { font-size: .92em; }

/* ===== Display lines: one rule set for heroes, slide-over panels and scrolling beats =====
   Heroes: Hanken headline, the emphasised phrase in Daniel (kept on one line).
   Slide-over panels: Hanken line with a Daniel phrase in the accent colour (the Moments card). A line that is all
   hand (a quote or provocation, marked .hand) is set smaller and wraps like normal text.
   Scrolling beats: both lines in Daniel at one size; the second line takes the accent colour. */
.unveil .line.hand, .provoke .line.hand { font-family: var(--hand); font-style: normal; font-weight: 400; letter-spacing: 0;
  font-size: clamp(32px, 4.4vw, 60px); line-height: 1.14; max-width: 20ch; }
.unveil .line.hand em, .provoke .line.hand em { font-size: 1em; white-space: normal; }
.pinbeat .captions p { font-family: var(--hand); font-style: normal; font-weight: 400; letter-spacing: 0;
  font-size: clamp(34px, 5vw, 66px); line-height: 1.12; max-width: 16ch; }
.pinbeat .captions p em { font-size: 1em; color: inherit; }
.pinbeat .captions p:nth-of-type(2) { color: #ffc49a; }
.pinbeat .captions p { text-shadow: 0 2px 6px rgba(21,27,34,.45), 0 4px 34px rgba(21,27,34,.55); }
.pinbeat.scrub .tint { background: radial-gradient(70% 55% at 50% 52%, rgba(21,27,34,.42), rgba(21,27,34,.12) 75%), linear-gradient(180deg, rgba(21,27,34,.12), rgba(21,27,34,.38)); }
/* the hand in a few named places */
.cols2 .col.good h3 { font-family: var(--hand); font-weight: 400; letter-spacing: 0; font-size: 28px; }
.fm-shape h3 { font-family: var(--hand); font-weight: 400; letter-spacing: 0; font-size: 22px; }
#craft .grid .lede { font-family: var(--hand); color: var(--sun-text); font-size: clamp(22px, 2.2vw, 28px); line-height: 1.25; }
@media (max-width: 760px) { .fm-shape h3 { font-size: 17px; } }
.essay h1, .essay header h1 { font-weight: 400; letter-spacing: -0.025em; }

/* Heroes with a video: the poster shows at once; the drawn flock stays hidden unless the video fails. */
.hero:has(video.hero-video) canvas.flock { display: none; }
.hero.video-failed canvas.flock { display: block !important; }
.hero.video-failed video.hero-video { display: none; }
.lede:empty, .eyebrow:empty { display: none; }

/* Pinned beats: the photo runs full-bleed under the translucent header, but the lines are centred in the visible
   part below it, and the small label sits just under the header. */
.pinbeat .captions { padding-top: var(--bars, 112px); box-sizing: border-box; }
.pinbeat .kicker { margin-top: 26px; }
@media (max-width: 640px) { .pinbeat .captions { padding-left: 12px; padding-right: 12px; } .pinbeat .captions p, #growth .captions p { font-size: clamp(20px, 5.7vw, 28px); max-width: none; } }

/* ===================== John Foster + Gamut Labs (Oct 2026 structure) ===================== */
/* Research signals and placeholders, anywhere in the copy */
.sig { display: inline-block; font-size: 11.5px; font-weight: 600; line-height: 1; padding: 4px 8px 5px; border-radius: 999px; vertical-align: 2px; margin-left: 4px; border: 1px solid currentColor; }
.sig.confirmed { color: #2f7d4f; } .sig.emerging { color: var(--azure); } .sig.frontier { color: var(--sun-text); }
.todo { display: inline-block; border: 1.5px dashed var(--sun); color: var(--sun-text); background: color-mix(in srgb, var(--sun) 6%, transparent); border-radius: 6px; padding: 1px 8px; font-size: .92em; }

/* John Foster: operator */
.lede.wide { max-width: 62ch; }
.caps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 36px; }
.cap { background: var(--paper-2); border: 1px solid var(--hair); border-radius: 14px; padding: 26px 28px 22px; }
.cap h3 { font-weight: 600; font-size: 21px; letter-spacing: -.01em; margin-bottom: 12px; }
.cap .covers { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.cap .covers span { font-size: 12.5px; color: var(--ink-2); background: var(--paper); border: 1px solid var(--hair); border-radius: 999px; padding: 3px 10px; }
.cap p { font-size: 15.5px; color: var(--ink-2); }
.cap ul { list-style: none; padding: 12px 0 0; margin: 0; border-top: 1px solid var(--hair); display: grid; gap: 6px; }
.cap li { font-size: 14.5px; }
.cap li a { color: var(--azure); font-weight: 500; }
.cap li a::after { content: " →"; }

/* Results: logos with their result, no flip */
.results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; margin-top: 28px; border-top: 1px solid var(--hair); }
.result-row { display: grid; grid-template-columns: 120px 1fr; gap: 20px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--hair); }
.result-row .mark { display: flex; align-items: center; height: 40px; }
.result-row .logo { max-width: 104px; max-height: 32px; width: auto; height: auto; object-fit: contain; filter: grayscale(1); opacity: .85; }
.result-row .wordmark-slot { font-weight: 700; font-size: 15px; color: var(--ink-2); }
.result-row strong { display: block; font-size: 15px; font-weight: 600; margin-bottom: 2px; }
.result-row p { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }

/* Designer · Builder · Service */
.facets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.facet .ph { aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; margin-bottom: 20px; background: var(--hair); }
.facet .ph img { width: 100%; height: 100%; object-fit: cover; }
.facet h3 { font-weight: 600; font-size: 24px; }
.facet p { font-size: 15.5px; color: var(--ink-2); }
.facet { scroll-margin-top: 130px; }
.to-labs { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--hair); display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.to-labs p { margin: 0; font-size: 18px; color: var(--ink-2); }

/* Gamut Labs page and project pages */
.phero { padding: clamp(48px, 7vw, 96px) 0 clamp(40px, 5vw, 64px); }
.phero h1 { font-weight: 500; letter-spacing: -.025em; margin-bottom: .25em; }
.phero .tagline { font-size: clamp(20px, 2vw, 26px); color: var(--ink); max-width: 30ch; margin-bottom: 18px; line-height: 1.3; }
.phero .lede { max-width: 56ch; }
.crumb { display: inline-block; font-size: 14px; color: var(--ink-3); margin-bottom: 18px; }
.crumb:hover { color: var(--ink); }
.pmeta { display: grid; grid-template-columns: auto 1fr; gap: 10px 22px; margin: 28px 0 0; padding-top: 22px; border-top: 1px solid var(--hair); max-width: 760px; }
.pmeta > div { display: contents; }
.pmeta dt { font-size: 13.5px; color: var(--ink-3); padding-top: 3px; }
.pmeta dd { margin: 0; font-size: 15px; }
.ptags { display: flex; flex-wrap: wrap; gap: 6px; }
.ptag { font-size: 12.5px; border-radius: 999px; padding: 3px 10px; border: 1px solid var(--hair); background: var(--paper-2); color: var(--ink-2); white-space: nowrap; }
.ptag.co { color: var(--ink); font-weight: 600; }
.btn.pending { border-style: dashed; color: var(--ink-3); cursor: default; }
.btn.pending:hover { transform: none; }

.proj-filters { margin: 18px 0 8px; }
.proj-filters .chip { display: inline-block; padding: 6px 14px; border-radius: 999px; font-size: 13.5px; }
.projs { border-top: 1px solid var(--hair); margin-top: 18px; }
.proj { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.6fr) minmax(0, 1fr) 24px; grid-template-areas: "title sum tags arrow" "title sum stat arrow"; gap: 4px 28px; padding: 24px 0; border-bottom: 1px solid var(--hair); color: var(--ink); align-items: start; }
.proj[hidden] { display: none; }
.proj:hover { text-decoration: none; background: color-mix(in srgb, var(--paper-2) 70%, transparent); }
.proj:hover .ptitle strong { color: var(--azure); }
.proj .ptitle { grid-area: title; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.proj .ptitle strong { font-size: 22px; font-weight: 600; line-height: 1.2; letter-spacing: -.01em; }
.proj .live { font-size: 12px; font-weight: 600; color: var(--sun-text); display: inline-flex; align-items: center; gap: 6px; }
.proj .live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--sun); }
.proj .psum { grid-area: sum; font-size: 15.5px; color: var(--ink-2); line-height: 1.55; }
.proj .ptags { grid-area: tags; align-content: flex-start; }
.proj .pstat { grid-area: stat; font-size: 13px; color: var(--ink-3); margin-top: 6px; }
.proj .arrow { grid-area: arrow; color: var(--azure); font-weight: 600; text-align: right; }

.psec { padding: clamp(40px, 6vw, 72px) 0; scroll-margin-top: 110px; }
.psplit { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.psplit > h2 { font-size: 22px; font-weight: 600; letter-spacing: -.01em; position: sticky; top: 130px; }
.pbody { max-width: 820px; }
.pbody > p { font-size: 17px; color: var(--ink-2); max-width: 64ch; }
.pbody > ol { padding-left: 0; margin: 0; list-style: none; counter-reset: q; display: grid; gap: 14px; }
.pbody > ol li { counter-increment: q; display: grid; grid-template-columns: 34px 1fr; font-size: clamp(18px, 1.7vw, 21px); line-height: 1.4; }
.pbody > ol li::before { content: counter(q); color: var(--sun-text); font-weight: 600; font-size: 15px; padding-top: 3px; }
.pbody > ul { padding: 0; margin: 0; list-style: none; border-top: 1px solid var(--hair); }
.pbody > ul li { padding: 12px 0; border-bottom: 1px solid var(--hair); font-size: 15.5px; color: var(--ink-2); }
.pbody > ul li a { font-weight: 600; color: var(--ink); }
.pbody > ul li a[href$=".pdf"]::after { content: " ↓"; color: var(--azure); }
.pbody .essay-fig { margin: 0 0 24px; }
.pbody > .essay-fig img { border-radius: 12px; border: 1px solid var(--hair); background: #fff; }
.concepts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 8px; }
.pbody > p + .concepts { margin-top: 24px; }
.concept { background: var(--paper-2); border: 1px solid var(--hair); border-radius: 14px; padding: 22px 24px 8px; }
.concept h3 { font-size: 19px; font-weight: 600; letter-spacing: -.01em; margin-bottom: 10px; }
.concept p { font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.concept strong { color: var(--ink); font-weight: 600; }
.concept .essay-fig { margin: -6px -8px 16px; display: flex; justify-content: center; background: var(--paper); border-radius: 10px; padding: 18px 0; }
.concept .essay-fig img { width: 46%; border-radius: 14px; box-shadow: 0 6px 20px rgba(0,0,0,.12); }
.pbody .post { grid-template-columns: 110px 1fr; }
.pnext { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

@media (max-width: 860px) {
  .caps, .results, .concepts { grid-template-columns: 1fr; }
  .facets { grid-template-columns: 1fr; gap: 40px; }
  .psplit { grid-template-columns: 1fr; gap: 18px; }
  .psplit > h2 { position: static; }
  .proj { grid-template-columns: 1fr 20px; grid-template-areas: "title arrow" "sum sum" "tags tags" "stat stat"; gap: 8px; }
  .result-row { grid-template-columns: 84px 1fr; gap: 14px; }
  .result-row .logo { max-width: 76px; }
  .cap { padding: 22px 20px 18px; }
  .pbody .post { grid-template-columns: 1fr; gap: 4px; }
}
/* fixes after first render */
.sig { text-transform: none; letter-spacing: 0; }
.pbody > ol li { display: block; position: relative; padding-left: 34px; }
.pbody > ol li::before { position: absolute; left: 0; top: 0; }
.concepts:has(.essay-fig) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.concepts:has(.essay-fig) .concept .essay-fig img { width: 74%; }
.pbody > ul li a[href^="mailto"] { color: var(--azure); white-space: nowrap; }
.pbody > ul li a[href^="mailto"]::after { content: " →"; }
.result-row .logo { max-width: 108px; max-height: 38px; }
@media (max-width: 860px) { .concepts:has(.essay-fig) { grid-template-columns: 1fr; } .concepts:has(.essay-fig) .concept .essay-fig img { width: 52%; } }

/* footer: one row of four links */
footer .foot-links { display: flex; flex-wrap: wrap; gap: 12px 36px; }
footer .foot-links a { color: var(--ink); font-weight: 500; font-size: 15px; }
footer .foot-links a:hover { color: var(--azure); }
@media (max-width: 480px) { footer .foot-links { gap: 12px 20px; } }

/* Operator: a plain list (title left; paragraph, tags and links right), no cards */
.caps { display: block; margin-top: 32px; border-top: 1px solid var(--hair); }
.cap { background: none; border: 0; border-radius: 0; padding: 28px 0; border-bottom: 1px solid var(--hair); display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 12px 48px; }
.cap h3 { margin: 0; font-size: 21px; }
.cap-body p { font-size: 16px; max-width: 62ch; margin-bottom: 14px; }
.cap .covers { margin: 0 0 12px; }
.cap ul.cap-links { border-top: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 24px; }
@media (max-width: 860px) { .cap { grid-template-columns: 1fr; padding: 24px 0; } }

/* Operator: the tags are company names */
.cap .covers span { color: var(--ink); font-weight: 600; background: var(--paper-2); }

/* Project pages: features (text beside a drawing or photo), photo cards, good/bad lists, drawings */
.pfeature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: start; margin-bottom: 24px; }
.pfeature .ptext p { font-size: 16px; color: var(--ink-2); }
.pfeature .pfigs .essay-fig { margin: 0; }
.pfeature .pfigs .essay-fig img { border-radius: 12px; border: 1px solid var(--hair); width: 100%; }
.pbody figcaption { font-size: 13.5px; color: var(--ink-3); margin-top: 8px; }
.pfig { margin: 0 0 24px; }
.pfig svg { width: 100%; height: auto; display: block; }
.pfig-framework { background: var(--paper-2); border: 1px solid var(--hair); border-radius: 12px; padding: 18px; }
.pfeature .pfig { margin: 0; background: var(--paper-2); border: 1px solid var(--hair); border-radius: 12px; padding: 18px; }
.concept.has-img { padding-top: 0; overflow: hidden; }
.concept .cimg { margin: 0 -24px 18px; aspect-ratio: 3 / 2; overflow: hidden; background: var(--hair); }
.concept .cimg img { width: 100%; height: 100%; object-fit: cover; }
.concepts.n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.concept ul { padding: 0; margin: 0 0 16px; list-style: none; display: grid; gap: 6px; }
.concept li { position: relative; padding-left: 24px; font-size: 15px; color: var(--ink-2); }
.concept.tone-bad li::before { content: "✕"; position: absolute; left: 0; color: var(--sun); font-weight: 700; }
.concept.tone-good li::before { content: "✓"; position: absolute; left: 0; color: var(--sky); font-weight: 700; }
.concept.tone-good { border-color: color-mix(in srgb, var(--sky) 35%, var(--hair)); }
.taste { font-family: var(--sans); text-align: center; padding: 8px 0; }
.taste .in, .taste .out { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 10px; font-weight: 600; font-size: clamp(20px, 2vw, 26px); letter-spacing: -.01em; }
.taste .op { color: var(--sun); font-weight: 500; }
.taste .eq { font-size: 28px; color: var(--ink-3); margin: 6px 0; }
.taste .out span:not(.op) { color: var(--azure); }
@media (max-width: 860px) {
  .pfeature { grid-template-columns: 1fr; }
  .concepts.n3 { grid-template-columns: 1fr; }
}

/* fixes after render: stacked formula, shorter feature photos, download marker at the end of the line */
.taste .in { flex-direction: column; align-items: center; gap: 2px; }
.taste .in .op { line-height: 1; }
.pfeature .pfigs .essay-fig img { max-height: 380px; object-fit: cover; }
.pbody > ul li a[href$=".pdf"]::after { content: none; }
.pbody > ul li:has(a[href$=".pdf"]) { position: relative; padding-right: 32px; }
.pbody > ul li:has(a[href$=".pdf"])::after { content: "↓"; color: var(--azure); font-weight: 600; position: absolute; right: 4px; top: 12px; }
.pfig-stag-hunt svg { max-width: 420px; margin: 0 auto; }

/* Reading: book cards (cover, title, authors, one line) */
.concepts:has(.book-card) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.book-card { display: grid; grid-template-columns: 96px 1fr; gap: 18px; align-items: start; background: var(--paper-2); border: 1px solid var(--hair); border-radius: 14px; padding: 18px; }
.book-card .cover { width: 96px; height: auto; border-radius: 4px; box-shadow: 0 4px 14px rgba(0,0,0,.14); }
.book-card h3 { font-size: 18px; font-weight: 600; margin: 2px 0 4px; }
.book-card .by { font-size: 13.5px; color: var(--ink-3); margin-bottom: 10px; }
.book-card p { font-size: 15px; color: var(--ink-2); margin: 0; }
@media (max-width: 860px) { .concepts:has(.book-card) { grid-template-columns: 1fr; } }

/* Gamut Labs: project filter (dropdown of checkboxes, like a spreadsheet filter) */
.pfilter { position: relative; display: flex; align-items: center; gap: 14px; margin: 18px 0 4px; }
.pf-btn { font: inherit; font-size: 14.5px; color: var(--ink-2); background: var(--paper-2); border: 1px solid var(--hair); border-radius: 10px; padding: 9px 14px; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.pf-btn strong { color: var(--ink); font-weight: 600; }
.pf-btn .caret { font-size: 11px; color: var(--ink-3); }
.pf-btn:hover, .pf-btn[aria-expanded="true"] { border-color: var(--ink-3); }
.pf-panel { position: absolute; top: calc(100% + 6px); left: 0; z-index: 20; width: 300px; max-height: 420px; overflow-y: auto; background: var(--paper-2); border: 1px solid var(--hair); border-radius: 12px; box-shadow: 0 12px 32px rgba(0,0,0,.12); padding: 10px 6px; }
.pf-panel[hidden] { display: none; }
.pf-panel .opt { display: flex; align-items: center; gap: 10px; padding: 6px 10px; border-radius: 6px; font-size: 14.5px; color: var(--ink); cursor: pointer; }
.pf-panel .opt:hover { background: var(--paper); }
.pf-panel .opt.all { font-weight: 600; border-bottom: 1px solid var(--hair); border-radius: 6px 6px 0 0; margin-bottom: 4px; padding-bottom: 10px; }
.pf-panel input { width: 16px; height: 16px; accent-color: var(--azure); margin: 0; }
.pf-head { font-size: 12.5px; color: var(--ink-3); padding: 10px 10px 4px; }
.pf-count { font-size: 13.5px; color: var(--ink-3); }
.pf-none { color: var(--ink-3); padding: 24px 0; margin: 0; }
.pf-panel { padding-top: 0; }
.pf-panel .opt.all { position: sticky; top: 0; z-index: 1; background: var(--paper-2); padding-top: 12px; margin-top: 0; }

/* Gamut Labs: page head with a framed photo on the right */
.labs-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
.labs-hero .tagline:empty { display: none; }
.labs-photo { margin: 0; aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; background: var(--hair); }
.labs-photo img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) { .labs-hero-grid { grid-template-columns: 1fr; } .labs-photo { aspect-ratio: 3 / 2; } }

/* Project pages: photo montage (landscape photos two columns wide, portrait one), with a click-to-enlarge view */
.pgallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 132px; grid-auto-flow: dense; gap: 10px; }
.pgallery .gfig { margin: 0; position: relative; border-radius: 10px; overflow: hidden; background: var(--hair); grid-row: span 2; }
.pgallery .gfig.wide { grid-column: span 2; }
.pgallery .gfig img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; transition: transform .25s ease; }
.pgallery .gfig:hover img { transform: scale(1.03); }
.pgallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: 18px 10px 8px; font-size: 12.5px; line-height: 1.3; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.6)); pointer-events: none; }
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(15,18,22,.88); display: flex; align-items: center; justify-content: center; padding: 24px; cursor: zoom-out; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: min(1100px, 100%); }
.lightbox img { max-width: 100%; max-height: 82vh; width: auto; height: auto; margin: 0 auto; border-radius: 8px; }
.lightbox figcaption { color: #e9e7e2; font-size: 14px; text-align: center; margin-top: 10px; }
@media (max-width: 860px) { .pgallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 110px; gap: 8px; } }

/* montage: column count and spans are set by the build so rows have no gaps */
.pgallery.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 150px; }
.pgallery .gfig.wide { grid-column: auto; }
.pgallery .gfig.span-2 { grid-column: span 2; } .pgallery .gfig.span-3 { grid-column: span 3; }
.pgallery .gfig.was-tall img { object-position: center 25%; }
@media (max-width: 860px) { .pgallery.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 110px; } .pgallery .gfig.span-3 { grid-column: span 2; } }
@media (max-width: 860px) { .pgallery .gfig.m-span-1 { grid-column: span 1; } .pgallery .gfig.m-span-2 { grid-column: span 2; } }

/* TASTE formula: left-aligned sum, a rule in place of the equals sign */
.taste { display: inline-grid; gap: 4px; text-align: left; padding: 6px 4px; font-family: var(--sans); }
.pfig-taste { display: flex; justify-content: center; }
.taste .row { display: grid; grid-template-columns: 1.1em auto; gap: 0 .4em; align-items: baseline; font-weight: 600; font-size: clamp(20px, 2vw, 26px); letter-spacing: -.01em; color: var(--ink); }
.taste .op { color: var(--sun); font-weight: 500; text-align: center; }
.taste .row.out { margin-top: 8px; padding-top: 10px; border-top: 3px solid var(--ink); color: var(--azure); }
.taste .row.out .op { color: var(--sun); }

/* Page heads on John Foster and Gamut Labs: tighter above the photo and before the first section */
.surface .labs-hero { padding: clamp(24px, 3.2vw, 44px) 0 clamp(28px, 3.4vw, 48px); }
.surface .labs-hero + section { padding-top: clamp(32px, 4vw, 56px); }
@media (max-width: 860px) { .surface .labs-hero { padding-top: 20px; } .labs-hero-grid { gap: 22px; } }

/* Work Samples on phones: logo on its own line above the company and result, sized to fit */
@media (max-width: 860px) {
  .result-row { grid-template-columns: 1fr; gap: 10px; align-items: start; padding: 18px 0; }
  .result-row .mark { height: 30px; justify-content: flex-start; }
  .result-row .logo { max-width: 110px; max-height: 28px; }
}

/* Podcasts and press: same rhythm as the writing list, a small label, the show in ink */
.media-item .tag.kind { color: var(--sun-text); }
.media-item .show { color: var(--ink); font-weight: 500; }
.media-head { font-size: clamp(24px, 2.6vw, 30px); margin-bottom: 8px; }
/* "First published on LinkedIn" under a reposted post */
.essay .body .source { margin-top: 36px; padding-top: 14px; border-top: 1px solid var(--hair); font-size: 14px; color: var(--ink-3); }

/* Operator: short version first, Read more opens the rest (only when the script runs, so nothing is lost without it) */
.cap.collapsible:not(.open) .cap-rest, .cap.collapsible:not(.open) .cap-links { display: none; }
.cap-sum { margin-bottom: 12px; }
.cap-toggle { font: inherit; font-size: 14px; font-weight: 600; color: var(--azure); background: none; border: 0; padding: 4px 0; margin-top: 8px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.cap-toggle::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .2s; }
.cap.open .cap-toggle::after { transform: rotate(-135deg) translate(-2px, 0); }
.cap.open .cap-links { margin-top: 4px; }

/* Work Samples: square logo tiles, 4 across (2 on phones); tapping one opens a panel under its row */
.ws-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 24px; }
.ws-tile { position: relative; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; background: var(--paper-2); border: 1px solid var(--hair); border-radius: 14px; padding: 18px; cursor: pointer; font: inherit; transition: border-color .15s, box-shadow .15s; }
.ws-tile:hover, .ws-tile[aria-expanded="true"] { border-color: var(--ink-3); box-shadow: 0 4px 14px rgba(0,0,0,.06); }
.ws-tile .mark { display: flex; align-items: center; justify-content: center; width: 100%; }
.ws-tile .logo { max-width: 70%; max-height: 54px; width: auto; height: auto; object-fit: contain; filter: grayscale(1); opacity: .85; }
.ws-tile .wordmark-slot { font-weight: 700; font-size: 16px; color: var(--ink-2); }
.ws-plus { position: absolute; right: 12px; bottom: 12px; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--hair); background: var(--paper); }
.ws-plus::before, .ws-plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 2px; margin: -1px 0 0 -5px; background: var(--azure); border-radius: 1px; transition: transform .2s; }
.ws-plus::after { transform: rotate(90deg); }
.ws-tile[aria-expanded="true"] .ws-plus::after { transform: rotate(0deg); }
.ws-panel { grid-column: 1 / -1; background: var(--paper-2); border: 1px solid var(--hair); border-radius: 14px; padding: 18px 22px; }
.ws-panel[hidden] { display: none; }
.ws-panel strong { display: block; font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.ws-panel p { margin: 0; font-size: 15px; color: var(--ink-2); line-height: 1.55; }
@media (max-width: 860px) {
  .ws-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .ws-tile .logo { max-height: 44px; }
  .ws-plus { right: 9px; bottom: 9px; width: 20px; height: 20px; }
}

/* John Foster photo on phones: square, anchored at the top so the head is never cut */
@media (max-width: 860px) {
  .jf-hero .labs-photo { aspect-ratio: 1 / 1; }
  .jf-hero .labs-photo img { object-position: center top !important; }
}
/* tighter: Read more sits right under the short version; Work Samples 8 across on laptops (2 rows) */
.cap-sum { margin-bottom: 4px; }
.cap-toggle { margin-top: 2px; }
@media (min-width: 861px) { .ws-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 10px; } .ws-tile { padding: 12px; border-radius: 12px; } .ws-tile .logo { max-width: 78%; max-height: 40px; } .ws-plus { right: 8px; bottom: 8px; width: 18px; height: 18px; } .ws-plus::before, .ws-plus::after { width: 8px; margin-left: -4px; } }

/* Read more on Design / Build / Serve, same behavior as the operator areas */
.facet.collapsible:not(.open) .cap-rest { display: none; }
.facet .cap-sum { font-size: 15.5px; color: var(--ink-2); }
/* Tighter spacing between sections so the borders don't eat the page */
.surface section { padding: clamp(32px, 4.4vw, 60px) 0; }
.surface .labs-hero { padding: clamp(20px, 2.6vw, 36px) 0 clamp(24px, 3vw, 40px); }
.surface .labs-hero + section { padding-top: clamp(28px, 3.6vw, 48px); }
.psec { padding: clamp(28px, 4vw, 52px) 0; }
section h2 { margin-bottom: .45em; }
.ws-grid { margin-top: 16px; }
.caps { margin-top: 20px; }
.cap { padding: 22px 0; }
.facets { gap: 28px; }
@media (max-width: 860px) {
  .jf-hero .labs-photo img { object-position: center center !important; }
  .cap { padding: 18px 0; }
}

/* ---- post images: thumbnail in writing lists, hero on the post page ---- */
.post .tag + .tag { margin-left: 10px; }
.post.has-img { grid-template-columns: 110px 1fr 168px; }
.post .thumb { display: block; align-self: center; border-radius: 10px; overflow: hidden; background: var(--teal-tint); aspect-ratio: 3/2; }
.post .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.post .thumb:hover img { transform: scale(1.03); }
@media (max-width: 720px) { .post.has-img { grid-template-columns: 1fr 112px; } .post.has-img .meta { grid-column: 1 / -1; } }
@media (max-width: 560px) { .post.has-img { gap: 4px 14px; } .post.has-img .thumb { align-self: start; margin-top: 4px; } }
.essay-hero { margin: 8px auto 40px; }
.essay-hero img { width: 100%; max-width: 960px; height: auto; display: block; border-radius: 16px; }
.essay-hero figcaption { max-width: 960px; font-size: 12.5px; color: var(--ink-3); margin-top: 8px; text-align: right; }

/* ===== One-row header (14 Oct 2026): the three destinations sit beside the wordmark, not at the far right,
   and the page you are on carries the sky rule. No second section bar. */
@media (min-width: 641px) {
  .top .wrap { justify-content: flex-start; }
  .top nav { align-self: stretch; align-items: stretch; gap: clamp(20px, 2.8vw, 36px); margin-left: clamp(24px, 3vw, 40px); padding-left: clamp(24px, 3vw, 40px); border-left: 1px solid var(--hair); margin-block: 18px; font-size: 15.5px; }
  .top nav a { position: relative; display: inline-flex; align-items: center; margin-block: -18px; }
  .top nav a.active { color: var(--ink); font-weight: 600; }
  .top nav a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; border-radius: 2px; background: var(--sky); }
  body.on-dark .top:not(.scrolled) nav { border-left-color: rgba(255,255,255,.16); }
  body.on-ember .top:not(.scrolled) nav { border-left-color: rgba(21,27,34,.18); }
}
@media (max-width: 640px) { .menu-btn { margin-left: auto; } }
