/* Personal Brand / Creator — antjanus.com redesign 089 */

:root {
  --paper: #f7f2ea;
  --paper-2: #efe6d8;
  --surface: #ffffff;
  --ink: #16181d;
  --text: #2c3038;
  --muted: #585e68;
  --line: #ddd2c1;
  --brand: #364f6a;
  --deep: #1c2b3c;
  --deep-2: #243850;
  --on-deep: #f5efe6;
  --on-deep-muted: #b9c6d6;
  --accent: #ff6a3d;
  --accent-hover: #ff8157;
  --on-accent: #16181d;
  --accent-text: #b33a10;
  --highlight: #ffd84d;
  --highlight-ink: #16181d;
  --ok: #1c6e52;
  --bad: #a03227;
  --shadow: 0 1px 0 rgba(22, 24, 29, 0.04), 0 12px 32px -12px rgba(22, 24, 29, 0.18);
  --radius: 22px;
  --radius-sm: 12px;
  --font-display: "Bricolage Grotesque", "Hanken Grotesk", system-ui, sans-serif;
  --font-body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --font-hand: "Caveat", "Bradley Hand", cursive;
  --wrap: 1240px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0e141c;
    --paper-2: #131c27;
    --surface: #17212d;
    --ink: #f5efe6;
    --text: #dcd6cc;
    --muted: #a3acb8;
    --line: #2b3847;
    --deep: #1b2a3b;
    --deep-2: #243850;
    --accent: #ff7a4d;
    --accent-hover: #ff9670;
    --accent-text: #ff9d78;
    --highlight: #8a6a12;
    --highlight-ink: #fff6dc;
    --ok: #4fbe93;
    --bad: #ee8579;
    --shadow: 0 1px 0 rgba(0, 0, 0, 0.3), 0 16px 40px -16px rgba(0, 0, 0, 0.6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0e141c;
  --paper-2: #131c27;
  --surface: #17212d;
  --ink: #f5efe6;
  --text: #dcd6cc;
  --muted: #a3acb8;
  --line: #2b3847;
  --deep: #1b2a3b;
  --deep-2: #243850;
  --accent: #ff7a4d;
  --accent-hover: #ff9670;
  --accent-text: #ff9d78;
  --highlight: #8a6a12;
  --highlight-ink: #fff6dc;
  --ok: #4fbe93;
  --bad: #ee8579;
  --shadow: 0 1px 0 rgba(0, 0, 0, 0.3), 0 16px 40px -16px rgba(0, 0, 0, 0.6);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); line-height: 1.08; margin: 0; letter-spacing: -0.02em; font-weight: 800; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -60px; background: var(--ink); color: var(--paper); padding: .6rem 1rem; border-radius: 8px; z-index: 100; }
.skip:focus { top: 1rem; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.5rem; }
@media (max-width: 600px) { .wrap { padding: 0 1rem; } }

/* ---------- type helpers ---------- */
.eyebrow { font-family: var(--font-mono); font-size: .8125rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-text); }
.mark { background: linear-gradient(transparent 58%, var(--highlight) 58%, var(--highlight) 92%, transparent 92%); color: inherit; padding: 0 .08em; }
.hand { font-family: var(--font-hand); font-size: 1.75rem; line-height: 1; color: var(--accent-text); font-weight: 600; }
.lede { font-size: 1.3rem; line-height: 1.5; color: var(--text); max-width: 60ch; }
.muted { color: var(--muted); }
.mono { font-family: var(--font-mono); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .7rem 1.35rem; border-radius: 999px; border: 2px solid transparent;
  font: 700 1rem/1.2 var(--font-body); text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.btn-accent { background: var(--accent); color: var(--on-accent); box-shadow: 0 3px 0 var(--ink); }
.btn-accent:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-accent:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { transform: translateY(-1px); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.link-arrow { font-weight: 700; color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; text-decoration-color: var(--accent); }
.link-arrow:hover { text-decoration-color: var(--ink); }
.link-quiet { color: var(--muted); font-weight: 600; text-decoration: none; }
.link-quiet:hover { color: var(--ink); text-decoration: underline; }

/* ---------- announcement + header ---------- */
.announce { background: var(--ink); color: var(--paper); font-size: 1rem; }
.announce .wrap { display: flex; gap: .75rem; align-items: center; justify-content: center; min-height: 44px; text-align: center; flex-wrap: wrap; padding-top: .35rem; padding-bottom: .35rem; }
.announce .pill { background: var(--accent); color: var(--on-accent); font: 700 .8125rem/1 var(--font-mono); padding: .35rem .55rem; border-radius: 999px; text-transform: uppercase; letter-spacing: .06em; }
.announce a { color: var(--paper); font-weight: 700; text-underline-offset: 4px; }

.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 1.25rem; min-height: 76px; }
.me { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--ink); margin-right: auto; }
.me-avatar { width: 48px; height: 48px; border-radius: 50%; overflow: hidden; flex: none; border: 2px solid var(--ink); background: var(--paper-2); position: relative; }
.me-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.me-avatar::after { content: ""; position: absolute; right: 1px; bottom: 1px; width: 12px; height: 12px; border-radius: 50%; background: #2fbf71; border: 2px solid var(--paper); }
.me-name { display: flex; flex-direction: column; line-height: 1.15; }
.me-name strong { font-family: var(--font-display); font-size: 1.2rem; font-weight: 800; letter-spacing: -.01em; }
.me-name span { font-family: var(--font-mono); font-size: .8125rem; color: var(--muted); }
.nav-links { display: flex; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.nav-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 .85rem; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 1.0625rem; color: var(--text); }
.nav-links a:hover { background: var(--paper-2); color: var(--ink); }
.nav-links a[aria-current="page"] { background: var(--ink); color: var(--paper); }
.header-actions { display: flex; align-items: center; gap: .5rem; }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); display: inline-grid; place-items: center; cursor: pointer; }
.icon-btn:hover { border-color: var(--ink); }
.icon-btn svg { width: 20px; height: 20px; }
.theme-btn .sun { display: none; }
:root[data-theme="dark"] .theme-btn .sun { display: block; }
:root[data-theme="dark"] .theme-btn .moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-btn .sun { display: block; }
  :root:not([data-theme="light"]) .theme-btn .moon { display: none; }
}
.menu-btn { display: none; }
.header-sub { min-height: 44px; padding: .5rem 1.1rem; }
@media (max-width: 1060px) {
  .nav-links { display: none; }
  .menu-btn { display: inline-grid; }
  .site-header.open .nav-links { display: flex; flex-direction: column; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); padding: .75rem 1rem 1.25rem; gap: .25rem; box-shadow: var(--shadow); }
  .site-header.open .nav-links a { font-size: 1.2rem; min-height: 52px; }
}
@media (max-width: 520px) {
  .me-name span { display: none; }
  .me-name strong { font-size: 1.05rem; }
  .header-sub { padding: .5rem .85rem; font-size: .9375rem; }
  .site-header .wrap { gap: .5rem; }
}

/* ---------- sections ---------- */
.section { padding: clamp(3.5rem, 7vw, 6.5rem) 0; }
.section-tight { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 2.25rem; }
.section-head h2 { font-size: clamp(2rem, 4vw, 3.1rem); margin-top: .5rem; max-width: 20ch; }
.section-head p { margin: .75rem 0 0; color: var(--muted); max-width: 52ch; }
.band-2 { background: var(--paper-2); }
.page-intro { padding: clamp(3rem, 6vw, 5.5rem) 0 clamp(2rem, 4vw, 3rem); }
.page-intro h1 { font-size: clamp(2.75rem, 7vw, 5.5rem); margin: .75rem 0 1.25rem; max-width: 16ch; }

/* ---------- home hero ---------- */
.hero { padding: clamp(2.5rem, 5vw, 4.5rem) 0 clamp(3rem, 6vw, 5rem); position: relative; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero h1 { font-size: clamp(2.9rem, 6.6vw, 6rem); line-height: .98; letter-spacing: -.035em; margin: 1rem 0 1.5rem; }
.hero .sub { font-size: 1.3rem; line-height: 1.5; max-width: 46ch; margin-bottom: 2rem; }
.hello { display: inline-flex; align-items: center; gap: .6rem; padding: .4rem .9rem .4rem .45rem; border-radius: 999px; background: var(--surface); border: 1.5px solid var(--line); font-weight: 600; font-size: 1rem; color: var(--ink); }
.hello .wave { width: 30px; height: 30px; border-radius: 50%; background: var(--highlight); color: var(--highlight-ink); display: grid; place-items: center; font-size: 1rem; }
.cta-row { display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap; margin-top: 1.5rem; }

.portrait { position: relative; aspect-ratio: 4 / 5; max-width: 520px; justify-self: center; width: 100%; }
.portrait-blob { position: absolute; inset: 6% -4% -4% 8%; border-radius: 48% 52% 40% 60% / 55% 45% 55% 45%; background: var(--accent); }
.portrait-frame { position: absolute; inset: 0 6% 6% 0; border-radius: 32px; overflow: hidden; border: 3px solid var(--ink); background: var(--deep); transform: rotate(-2.5deg); box-shadow: var(--shadow); }
.portrait-frame img.photo { width: 100%; height: 100%; object-fit: cover; object-position: 22% 30%; }
.portrait-frame img.cutout { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: bottom; }
.portrait.has-cutout .photo { display: none; }
.sticker { position: absolute; background: var(--surface); color: var(--ink); border: 2px solid var(--ink); border-radius: 16px; padding: .65rem .9rem; box-shadow: 4px 4px 0 var(--ink); line-height: 1.15; }
.sticker b { display: block; font-family: var(--font-display); font-size: 1.9rem; letter-spacing: -.02em; }
.sticker span { font-size: .9375rem; font-weight: 600; color: var(--muted); }
.sticker.s1 { left: -6%; top: 12%; transform: rotate(-6deg); }
.sticker.s2 { right: -2%; top: 44%; transform: rotate(5deg); background: var(--highlight); }
.sticker.s2 span, .sticker.s2 b { color: var(--highlight-ink); }
.sticker.s3 { left: 4%; bottom: 0; transform: rotate(3deg); background: var(--ink); color: var(--paper); }
.sticker.s3 span { color: var(--paper); opacity: .85; }
.handle-tag { position: absolute; right: 8%; bottom: 10%; font-family: var(--font-hand); font-size: 2.1rem; color: var(--on-deep); transform: rotate(-8deg); text-shadow: 0 2px 8px rgba(0,0,0,.6); }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .portrait { max-width: 400px; order: -1; margin-top: .5rem; }
  .sticker b { font-size: 1.5rem; }
  .sticker.s1 { left: -2%; }
  .sticker.s2 { right: -1%; }
}
@media (max-width: 420px) {
  .portrait { max-width: 320px; }
  .sticker { padding: .5rem .7rem; }
  .sticker b { font-size: 1.3rem; }
  .sticker span { font-size: .875rem; }
}

/* ---------- newsletter forms ---------- */
.nl-form { display: flex; gap: .5rem; flex-wrap: wrap; max-width: 560px; }
.nl-form .field { flex: 1 1 240px; position: relative; }
.nl-form input[type="email"] {
  width: 100%; min-height: 56px; padding: .8rem 1.1rem; border-radius: 999px; border: 2px solid var(--ink);
  background: var(--surface); color: var(--ink); font: 500 1.0625rem var(--font-body);
}
.nl-form input::placeholder { color: var(--muted); }
.nl-form .btn { min-height: 56px; padding: 0 1.6rem; font-size: 1.0625rem; }
.nl-form .consent { flex-basis: 100%; display: flex; gap: .6rem; align-items: flex-start; font-size: 1rem; margin-top: .35rem; }
.nl-form .consent input { width: 22px; height: 22px; margin-top: .2rem; accent-color: var(--accent); flex: none; }
.nl-note { font-size: 1rem; color: var(--muted); margin-top: .85rem; display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.nl-note { flex-wrap: nowrap; align-items: flex-start; }
.nl-note svg { width: 18px; height: 18px; flex: none; margin-top: .25rem; }
.nl-status { flex-basis: 100%; font-size: 1rem; font-weight: 600; margin: .25rem 0 0; min-height: 0; }
.nl-status.error { color: var(--bad); }
.nl-form.is-error input[type="email"] { border-color: var(--bad); }
.nl-success { display: none; padding: 1.1rem 1.25rem; border-radius: var(--radius-sm); border: 2px solid var(--ink); background: var(--highlight); color: var(--highlight-ink); max-width: 560px; }
.nl-success strong { font-family: var(--font-display); font-size: 1.35rem; display: block; }
.nl-wrap.done .nl-form, .nl-wrap.done .nl-note { display: none; }
.nl-wrap.done .nl-success { display: block; }

/* big newsletter panel */
.nl-panel { background: var(--deep); color: var(--on-deep); border-radius: 36px; padding: clamp(2rem, 5vw, 4rem); display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(2rem, 5vw, 4rem); position: relative; overflow: hidden; }
.nl-panel::before { content: ""; position: absolute; width: 420px; height: 420px; right: -140px; top: -160px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 45%, transparent), transparent 70%); pointer-events: none; }
.nl-panel h2 { color: var(--on-deep); font-size: clamp(2.2rem, 4.6vw, 3.6rem); margin: .75rem 0 1rem; }
.nl-panel .eyebrow { color: var(--accent); }
.nl-panel p { color: var(--on-deep-muted); }
.nl-panel .lede { color: var(--on-deep); }
.nl-panel .nl-form input[type="email"] { border-color: var(--on-deep); background: #0f1823; color: #f5efe6; }
.nl-panel .nl-form input::placeholder { color: #9fb0c3; }
.nl-panel .nl-note, .nl-panel .consent { color: var(--on-deep-muted); }
.nl-panel .consent a { color: var(--on-deep); }
.nl-panel .nl-status.error { color: #ffb4a8; }
.nl-panel .btn-accent { box-shadow: 0 3px 0 #0a0f16; }
.nl-sign { display: flex; align-items: center; gap: .85rem; margin-top: 1.75rem; }
.nl-sign img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; border: 2px solid var(--on-deep); }
.nl-sign .hand { color: var(--accent); font-size: 2rem; }
.nl-sign small { display: block; color: var(--on-deep-muted); font-size: .9375rem; }
.promise { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; position: relative; }
.promise li { display: grid; grid-template-columns: 44px 1fr; gap: 1rem; align-items: start; background: var(--deep-2); border-radius: 18px; padding: 1.1rem 1.2rem; color: var(--on-deep); }
.promise .n { width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; font: 800 1.15rem var(--font-display); }
.promise b { display: block; font-family: var(--font-display); font-size: 1.2rem; margin-bottom: .15rem; }
.promise span { color: var(--on-deep-muted); font-size: 1.0625rem; }
@media (max-width: 860px) { .nl-panel { grid-template-columns: 1fr; border-radius: 26px; } }

/* inbox preview */
.inbox { background: var(--surface); color: var(--text); border-radius: 20px; border: 2px solid var(--ink); box-shadow: 8px 8px 0 var(--accent); overflow: hidden; position: relative; }
.inbox-bar { display: flex; gap: .45rem; padding: .8rem 1rem; border-bottom: 1px solid var(--line); align-items: center; background: var(--paper-2); }
.inbox-bar i { width: 12px; height: 12px; border-radius: 50%; background: var(--line); display: block; }
.inbox-bar span { margin-left: .5rem; font: 500 .875rem var(--font-mono); color: var(--muted); }
.inbox-row { display: grid; grid-template-columns: 44px 1fr auto; gap: .9rem; padding: 1rem 1.1rem; border-bottom: 1px solid var(--line); align-items: start; }
.inbox-row:last-child { border-bottom: 0; }
.inbox-row img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; }
.inbox-row b { color: var(--ink); display: block; font-size: 1.0625rem; line-height: 1.3; }
.inbox-row p { margin: .2rem 0 0; font-size: 1rem; color: var(--muted); line-height: 1.45; }
.inbox-row time { font: 500 .8125rem var(--font-mono); color: var(--muted); white-space: nowrap; }
.inbox-row.unread b::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); margin-right: .5rem; vertical-align: middle; }
.inbox-from { font-size: .9375rem; color: var(--muted); font-weight: 600; }

/* ---------- proof ---------- */
.proof { background: var(--ink); color: var(--paper); overflow: hidden; border-block: 2px solid var(--ink); }
.marquee { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover { animation-play-state: paused; }
.marquee ul { display: flex; list-style: none; margin: 0; padding: 1.1rem 0; gap: 0; }
.marquee li { display: flex; align-items: center; gap: .75rem; padding: 0 2rem; font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; white-space: nowrap; }
.marquee li::after { content: "✺"; color: var(--accent); margin-left: 2rem; font-size: 1.1rem; }
.marquee li b { color: var(--accent); }
@keyframes marquee { to { transform: translateX(-50%); } }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.stat { background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 1.5rem 1.6rem; position: relative; }
.stat b { font-family: var(--font-display); font-size: clamp(2.6rem, 5vw, 3.8rem); line-height: 1; color: var(--ink); letter-spacing: -.03em; display: block; }
.stat span { display: block; margin-top: .5rem; font-weight: 600; }
.stat small { display: block; color: var(--muted); font-size: 1rem; margin-top: .25rem; }
.stat::before { content: ""; position: absolute; top: 1.5rem; right: 1.5rem; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); }
@media (max-width: 720px) { .stats { grid-template-columns: 1fr; } }

.logo-wall { display: flex; flex-wrap: wrap; gap: .75rem 2.25rem; align-items: center; }
.logo-wall span { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.2rem, 2.2vw, 1.6rem); color: var(--muted); letter-spacing: -.01em; }
.logo-wall small { font: 500 .8125rem var(--font-mono); color: var(--muted); margin-left: .35rem; letter-spacing: 0; }

.shoutouts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.shout { background: var(--surface); border: 2px solid var(--ink); border-radius: var(--radius); padding: 1.6rem; box-shadow: 6px 6px 0 var(--ink); display: flex; flex-direction: column; gap: .75rem; }
.shout .big { font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; color: var(--ink); line-height: 1.15; }
.shout p { margin: 0; }
.shout a { margin-top: auto; }
.shout:nth-child(2) { background: var(--highlight); color: var(--highlight-ink); }
.shout:nth-child(2) .big, .shout:nth-child(2) a { color: var(--highlight-ink); }
@media (max-width: 900px) { .shoutouts { grid-template-columns: 1fr; } }

/* ---------- post cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
@media (max-width: 960px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--ink); }
.card:focus-within { border-color: var(--ink); }
.card-media { aspect-ratio: 16 / 9; background: var(--deep); overflow: hidden; position: relative; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-media.fallback { display: grid; place-items: center; background: linear-gradient(135deg, var(--deep), var(--brand)); color: var(--on-deep); padding: 1.25rem; }
.card-media.fallback span { font-family: var(--font-display); font-weight: 800; font-size: 1.45rem; line-height: 1.1; text-align: center; max-width: 16ch; }
.card-media .num { position: absolute; left: 1rem; top: 1rem; width: 52px; height: 52px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font: 800 1.35rem var(--font-display); display: grid; place-items: center; border: 2px solid var(--ink); }
.card-body { padding: 1.35rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.card h3 { font-size: 1.4rem; line-height: 1.2; }
.card h3 a { text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; }
.card p { margin: 0; color: var(--text); font-size: 1.0625rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { margin-top: auto; padding-top: .5rem; display: flex; gap: .5rem .9rem; flex-wrap: wrap; font: 500 .875rem var(--font-mono); color: var(--muted); }
.chip { display: inline-flex; align-items: center; gap: .35rem; font: 600 .8125rem var(--font-mono); letter-spacing: .03em; padding: .3rem .65rem; border-radius: 999px; background: var(--paper-2); color: var(--ink); border: 1px solid var(--line); text-decoration: none; }
a.chip:hover { border-color: var(--ink); }
.chip.hot { background: var(--accent); color: var(--on-accent); border-color: var(--ink); }
.chip.hl { background: var(--highlight); color: var(--highlight-ink); border-color: transparent; }
.card-feature { grid-column: span 2; flex-direction: row; }
.card-feature .card-media { aspect-ratio: auto; flex: 1.1; min-height: 320px; }
.card-feature .card-body { flex: 1; padding: 2rem; justify-content: center; }
.card-feature h3 { font-size: clamp(1.7rem, 2.6vw, 2.3rem); }
@media (max-width: 960px) { .card-feature { grid-column: auto; flex-direction: column; } .card-feature .card-media { aspect-ratio: 16/9; min-height: 0; } .card-feature .card-body { padding: 1.35rem 1.4rem 1.5rem; } }

/* list rows */
.rows { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.row { position: relative; display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 1.5rem; padding: 1.35rem .25rem; border-bottom: 1px solid var(--line); align-items: center; }
.row:hover { background: var(--paper-2); }
.row time { font: 500 .875rem var(--font-mono); color: var(--muted); }
.row h3 { font-size: 1.35rem; line-height: 1.25; }
.row h3 a { text-decoration: none; }
.row h3 a::after { content: ""; position: absolute; inset: 0; }
.row h3 a:hover { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.row p { margin: .35rem 0 0; color: var(--muted); font-size: 1.0625rem; }
.row .thumb { width: 132px; aspect-ratio: 16/10; border-radius: 12px; overflow: hidden; background: var(--deep); }
.row .thumb img { width: 100%; height: 100%; object-fit: cover; }
.row .tags { display: flex; gap: .35rem; flex-wrap: wrap; margin-top: .6rem; position: relative; z-index: 1; }
@media (max-width: 700px) {
  .row { grid-template-columns: 1fr; gap: .4rem; }
  .row .thumb { display: none; }
}

/* ---------- channels / work ---------- */
.channels { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.channel { position: relative; border-radius: var(--radius); padding: 1.5rem; min-height: 220px; display: flex; flex-direction: column; justify-content: space-between; text-decoration: none; border: 2px solid var(--ink); transition: transform .15s ease; }
.channel:hover { transform: rotate(-1deg) translateY(-3px); }
.channel svg { width: 36px; height: 36px; }
.channel b { font-family: var(--font-display); font-size: 1.5rem; display: block; line-height: 1.15; }
.channel span { font-size: 1.0625rem; }
.channel .go { font: 600 .875rem var(--font-mono); text-transform: uppercase; letter-spacing: .06em; }
.ch-yt { background: #c4302b; color: #fff; }
.ch-gh { background: var(--ink); color: var(--paper); }
.ch-pod { background: #5b3fa3; color: #fff; }
.ch-ph { background: var(--highlight); color: var(--highlight-ink); }
.ch-li { background: #0a5fa8; color: #fff; }
@media (max-width: 960px) { .channels { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .channels { grid-template-columns: 1fr; } .channel { min-height: 170px; } }

.offers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.offer { background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 1.75rem; display: flex; flex-direction: column; gap: .75rem; }
.offer h3 { font-size: 1.5rem; }
.offer p { margin: 0; }
.offer .scope { margin-top: auto; font: 600 .875rem var(--font-mono); color: var(--accent-text); }
@media (max-width: 900px) { .offers { grid-template-columns: 1fr; } }

.work-cta { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem; align-items: center; background: var(--accent); color: var(--on-accent); border: 2px solid var(--ink); border-radius: 30px; padding: clamp(1.75rem, 4vw, 3rem); box-shadow: 8px 8px 0 var(--ink); }
.work-cta h2 { color: var(--on-accent); font-size: clamp(1.8rem, 3.6vw, 2.8rem); margin-bottom: .6rem; }
.work-cta p { margin: 0; font-size: 1.2rem; max-width: 52ch; }
.work-cta .btn-ink { background: #16181d; color: #f7f2ea; }
@media (max-width: 760px) { .work-cta { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.site-footer { background: var(--deep); color: var(--on-deep); margin-top: 0; padding: clamp(3rem, 6vw, 5rem) 0 2rem; }
.site-footer a { color: var(--on-deep); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; }
.foot-top { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 2rem; }
.foot-top h3 { color: var(--on-deep); font: 600 .8125rem var(--font-mono); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 1rem; opacity: .85; }
.foot-top ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .15rem; }
.foot-top li a { display: inline-flex; min-height: 40px; align-items: center; font-size: 1.0625rem; }
.foot-brand p { color: var(--on-deep-muted); max-width: 36ch; }
.foot-big { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.6rem, 9vw, 8.5rem); letter-spacing: -.045em; line-height: .9; color: var(--on-deep); margin: 3rem 0 1.5rem; white-space: nowrap; overflow: hidden; }
.foot-big em { font-style: normal; color: var(--accent); }
.foot-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; border-top: 1px solid rgba(245, 239, 230, .18); padding-top: 1.5rem; color: var(--on-deep-muted); font-size: 1rem; }
@media (max-width: 860px) { .foot-top { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }

/* ---------- filter bar ---------- */
.filters { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.75rem; }
.filters button { min-height: 44px; padding: 0 1rem; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font: 600 1rem var(--font-body); cursor: pointer; }
.filters button:hover { border-color: var(--ink); }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.filters button .count { font-family: var(--font-mono); font-size: .8125rem; opacity: .8; margin-left: .35rem; }
.search-input { width: 100%; min-height: 56px; border-radius: 999px; border: 2px solid var(--ink); background: var(--surface); color: var(--ink); padding: 0 1.25rem 0 3rem; font: 500 1.0625rem var(--font-body); }
.search-box { position: relative; max-width: 720px; margin-bottom: 1.25rem; }
.search-box svg { position: absolute; left: 1.1rem; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--muted); }
.result-line { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; margin-bottom: 1.5rem; color: var(--muted); font-weight: 600; }
.result-line button { background: none; border: 0; color: var(--accent-text); font: 700 1rem var(--font-body); cursor: pointer; text-decoration: underline; min-height: 44px; }
.empty { display: none; text-align: center; padding: 3rem 1rem; border: 2px dashed var(--line); border-radius: var(--radius); }
.empty.show { display: block; }
.empty h3 { font-size: 1.6rem; margin-bottom: .5rem; }
[hidden] { display: none !important; }

/* ---------- page heroes with image ---------- */
.img-hero { position: relative; border-radius: 32px; overflow: hidden; background: var(--deep); color: var(--on-deep); min-height: 360px; display: flex; align-items: end; border: 2px solid var(--ink); }
.img-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.img-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14, 20, 28, .1) 0%, rgba(14, 20, 28, .88) 78%); }
.img-hero .inner { position: relative; z-index: 1; padding: clamp(1.75rem, 4vw, 3rem); }
.img-hero h1 { color: #f5efe6; font-size: clamp(2.6rem, 6vw, 5rem); margin: .5rem 0 .75rem; }
.img-hero p { color: #dfe6ee; font-size: 1.2rem; max-width: 60ch; margin: 0; }
.img-hero .eyebrow { color: #ffb08f; }

/* ---------- projects ---------- */
.feature-proj { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border: 2px solid var(--ink); border-radius: 32px; overflow: hidden; background: var(--surface); box-shadow: 10px 10px 0 var(--accent); }
.feature-proj .media { background: var(--deep); min-height: 380px; }
.feature-proj .media img { width: 100%; height: 100%; object-fit: cover; }
.feature-proj .body { padding: clamp(1.75rem, 4vw, 3rem); display: flex; flex-direction: column; gap: 1rem; }
.feature-proj h3 { font-size: clamp(2rem, 3.4vw, 2.8rem); }
.mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.mini-stats div { background: var(--paper); padding: .9rem 1rem; }
.mini-stats b { display: block; font: 800 1.9rem var(--font-display); color: var(--ink); line-height: 1; }
.mini-stats span { font: 600 .8125rem var(--font-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
@media (max-width: 860px) { .feature-proj { grid-template-columns: minmax(0, 1fr); } .feature-proj .media { min-height: 0; aspect-ratio: 16/9; } }

.proj { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 0; border: 1.5px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.proj:nth-child(even) .proj-media { order: 2; }
.proj-media { background: #10161f; min-height: 240px; position: relative; }
.proj-media img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.proj-media.contain img { object-fit: contain; padding: 1rem; }
.proj-body { padding: 1.75rem; display: flex; flex-direction: column; gap: .75rem; }
.proj-body h3 { font-size: 1.7rem; }
.proj-body p { margin: 0; }
.proj-list { display: grid; gap: 1.25rem; }
.tech { display: flex; gap: .4rem; flex-wrap: wrap; }
.stars { font: 700 .9375rem var(--font-mono); color: var(--ink); display: inline-flex; gap: .35rem; align-items: center; }
.stars svg { width: 18px; height: 18px; color: var(--accent-text); }
@media (max-width: 760px) { .proj { grid-template-columns: 1fr; } .proj:nth-child(even) .proj-media { order: 0; } .proj-media { aspect-ratio: 16/9; min-height: 0; } }

.tile { background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 1.5rem; display: flex; flex-direction: column; gap: .6rem; position: relative; }
.tile h3 { font-size: 1.35rem; }
.tile h3 a { text-decoration: none; }
.tile h3 a::after { content: ""; position: absolute; inset: 0; }
.tile:hover { border-color: var(--ink); }
.tile p { margin: 0; font-size: 1.0625rem; }
.tile .foot { margin-top: auto; display: flex; justify-content: space-between; gap: .75rem; flex-wrap: wrap; align-items: center; }

.jump { position: sticky; top: 77px; z-index: 20; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.jump .wrap { display: flex; gap: .5rem; overflow-x: auto; padding-top: .6rem; padding-bottom: .6rem; scrollbar-width: none; }
.jump a { flex: none; min-height: 44px; display: inline-flex; align-items: center; gap: .4rem; padding: 0 1rem; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); text-decoration: none; font-weight: 600; color: var(--ink); font-size: 1rem; }
.jump a:hover { border-color: var(--ink); }
.jump a span { font: 500 .8125rem var(--font-mono); color: var(--muted); }

/* ---------- about ---------- */
.about-hero { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.about-photo { position: relative; aspect-ratio: 4/5; border-radius: 40px 40px 200px 40px; overflow: hidden; border: 3px solid var(--ink); box-shadow: 12px 12px 0 var(--accent); background: var(--deep); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-hero h1 { font-size: clamp(3rem, 7.5vw, 6.5rem); line-height: .95; letter-spacing: -.04em; margin: .75rem 0 1.25rem; }
@media (max-width: 860px) { .about-hero { grid-template-columns: 1fr; } .about-photo { max-width: 420px; } }

.career-bar { display: flex; gap: 0; border: 2px solid var(--ink); border-radius: 16px; overflow: hidden; }
.career-bar div { padding: .9rem 1rem; border-right: 1px solid var(--line); background: var(--surface); flex: 1 1 0; min-width: 0; }
.career-bar div:last-child { border-right: 0; }
.career-bar div:first-child { background: var(--accent); color: var(--on-accent); }
.career-bar b { display: block; font-family: var(--font-display); font-size: 1.1rem; color: inherit; line-height: 1.2; }
.career-bar div:not(:first-child) b { color: var(--ink); }
.career-bar span { font: 500 .8125rem var(--font-mono); opacity: .85; }
@media (max-width: 960px) { .career-bar { flex-wrap: wrap; } .career-bar div { flex: 1 1 45%; border-bottom: 1px solid var(--line); } }

.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.phase { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 2rem; padding: 1.75rem; background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius); }
.phase .when { font: 600 .9375rem var(--font-mono); color: var(--accent-text); }
.phase h3 { font-size: 1.6rem; margin-top: .35rem; }
.phase ul { margin: .75rem 0 0; padding-left: 1.2rem; }
.phase li { margin-bottom: .35rem; }
@media (max-width: 720px) { .phase { grid-template-columns: 1fr; gap: .5rem; } }
details.more > summary { list-style: none; cursor: pointer; display: inline-flex; }
details.more > summary::-webkit-details-marker { display: none; }
details.more[open] .show-label { display: none; }
details.more:not([open]) .hide-label { display: none; }

.principles { background: var(--deep); color: var(--on-deep); border-radius: 32px; padding: clamp(2rem, 5vw, 3.5rem); }
.principles h2 { color: var(--on-deep); }
.principles ol { list-style: none; margin: 1.75rem 0 1.5rem; padding: 0; counter-reset: p; display: grid; gap: .25rem; }
.principles li { counter-increment: p; display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid rgba(245, 239, 230, .15); font-family: var(--font-display); font-size: clamp(1.35rem, 2.6vw, 1.9rem); font-weight: 600; line-height: 1.25; letter-spacing: -.01em; }
.principles li::before { content: counter(p, decimal-leading-zero); font: 600 1rem var(--font-mono); color: var(--accent); padding-top: .45rem; }
.principles a { color: var(--on-deep); }

.caps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.cap { background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 1.6rem; }
.cap h3 { font-size: 1.45rem; margin-bottom: .4rem; }
.cap p { color: var(--muted); }
.cap .tech { margin-top: .5rem; }
@media (max-width: 760px) { .caps { grid-template-columns: 1fr; } }

.beyond { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2.5rem; align-items: center; }
.beyond img { border-radius: 28px; border: 2px solid var(--ink); aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.beyond dl { margin: 0; display: grid; gap: 1.25rem; }
.beyond dt { font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; color: var(--ink); }
.beyond dd { margin: .2rem 0 0; }
@media (max-width: 860px) { .beyond { grid-template-columns: 1fr; } }

/* ---------- stories ---------- */
.story { display: grid; grid-template-columns: 90px minmax(0, 1fr) 260px; gap: 1.5rem; align-items: center; padding: 1.5rem 0; border-bottom: 1px solid var(--line); position: relative; }
.story .part { font: 800 3.4rem/1 var(--font-display); color: var(--accent-text); letter-spacing: -.04em; }
.story h3 { font-size: 1.5rem; margin-bottom: .4rem; }
.story h3 a { text-decoration: none; }
.story h3 a::after { content: ""; position: absolute; inset: 0; }
.story p { margin: 0; color: var(--text); font-size: 1.0625rem; }
.story img { border-radius: 16px; aspect-ratio: 16/10; object-fit: cover; width: 100%; border: 1.5px solid var(--line); }
.story.soon { opacity: .75; }
.story.soon .part { color: var(--muted); }
.story .soon-box { border: 2px dashed var(--line); border-radius: 16px; aspect-ratio: 16/10; display: grid; place-items: center; font: 600 .875rem var(--font-mono); color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
@media (max-width: 760px) { .story { grid-template-columns: 1fr; gap: .6rem; } .story .part { font-size: 2.4rem; } .story img, .story .soon-box { order: -1; } }
.notice { display: flex; gap: 1rem; align-items: flex-start; background: var(--highlight); color: var(--highlight-ink); border-radius: 18px; padding: 1.1rem 1.35rem; border: 2px solid var(--ink); }
.notice b { font-family: var(--font-display); }

.consult { display: flex; gap: 1.25rem; align-items: center; justify-content: space-between; flex-wrap: wrap; background: var(--surface); border: 2px solid var(--ink); border-radius: 22px; padding: 1.25rem 1.5rem; box-shadow: 6px 6px 0 var(--accent); }
.consult p { margin: 0; font-size: 1.2rem; font-weight: 600; color: var(--ink); max-width: 56ch; }

/* ---------- article ---------- */
.progress { position: fixed; top: 0; left: 0; height: 5px; width: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); z-index: 60; }
.art-head { padding: clamp(2.5rem, 5vw, 4.5rem) 0 2rem; }
.crumbs { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; font: 500 .9375rem var(--font-mono); color: var(--muted); }
.crumbs a { color: var(--accent-text); font-weight: 600; }
.art-head h1 { font-size: clamp(2.5rem, 6vw, 5rem); line-height: 1; letter-spacing: -.035em; margin: 1rem 0 1.25rem; max-width: 18ch; }
.art-head .lede { font-size: 1.4rem; }
.byline { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 1.75rem; padding: 1rem 1.1rem; background: var(--surface); border: 1.5px solid var(--line); border-radius: 999px; max-width: max-content; }
.byline img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; border: 2px solid var(--ink); }
.byline .who b { display: block; color: var(--ink); font-size: 1.0625rem; line-height: 1.2; }
.byline .who span { font: 500 .875rem var(--font-mono); color: var(--muted); }
.byline .btn { min-height: 44px; padding: 0 1.1rem; font-size: .9375rem; }
@media (max-width: 560px) { .byline { border-radius: 22px; } }
.art-banner { border-radius: 28px; overflow: hidden; border: 2px solid var(--ink); background: #c6defa; max-width: 1080px; margin: 0 auto; }
.art-banner img { width: 100%; height: auto; }
@media (max-width: 600px) { .art-banner { border-radius: 18px; } }

.art-layout { display: grid; grid-template-columns: 240px minmax(0, 720px) 1fr; gap: 3rem; padding-top: 3rem; padding-bottom: 2rem; }
.toc { position: sticky; top: 100px; align-self: start; }
.toc h2 { font: 600 .8125rem var(--font-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: .75rem; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.toc a { display: block; padding: .4rem 0 .4rem 1rem; margin-left: -2px; border-left: 2px solid transparent; text-decoration: none; color: var(--muted); font-size: 1rem; line-height: 1.35; }
.toc a:hover { color: var(--ink); }
.toc a.active { color: var(--ink); border-left-color: var(--accent); font-weight: 700; }
.toc-mobile { display: none; margin-bottom: 1.5rem; border: 1.5px solid var(--line); border-radius: 16px; background: var(--surface); }
.toc-mobile summary { min-height: 52px; display: flex; align-items: center; padding: 0 1.1rem; cursor: pointer; font: 600 .875rem var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink); }
.toc-mobile ol { margin: 0; padding: 0 1.1rem 1rem 2.4rem; }
.toc-mobile li { padding: .25rem 0; }
.aside-card { position: sticky; top: 100px; align-self: start; background: var(--deep); color: var(--on-deep); border-radius: 22px; padding: 1.4rem; max-width: 300px; }
.aside-card img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; border: 2px solid var(--on-deep); margin-bottom: .75rem; }
.aside-card b { font-family: var(--font-display); font-size: 1.3rem; display: block; line-height: 1.2; color: var(--on-deep); }
.aside-card p { color: var(--on-deep-muted); font-size: 1rem; margin: .5rem 0 1rem; }
.aside-card .btn { width: 100%; }
@media (max-width: 1280px) { .art-layout { grid-template-columns: 220px minmax(0, 1fr); } .aside-card { display: none; } }
@media (max-width: 960px) { .art-layout { grid-template-columns: minmax(0, 1fr); padding-top: 2rem; gap: 2rem; } .toc { display: none; } .toc-mobile { display: block; } }

.prose { font-size: 1.1875rem; line-height: 1.7; color: var(--text); min-width: 0; }
.prose > * + * { margin-top: 1.25em; }
.prose p { margin-bottom: 0; }
.prose h2 { font-size: clamp(1.8rem, 3vw, 2.3rem); margin-top: 2.4em; scroll-margin-top: 100px; }
.prose h2::before { content: ""; display: block; width: 48px; height: 6px; background: var(--accent); border-radius: 3px; margin-bottom: .8rem; }
.prose a { color: var(--ink); text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; font-weight: 600; }
.prose ol, .prose ul { padding-left: 1.4rem; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--accent-text); font-weight: 700; }
.prose code { font-family: var(--font-mono); font-size: .88em; background: var(--paper-2); padding: .1em .35em; border-radius: 6px; color: var(--ink); }
.prose blockquote { margin-left: 0; margin-right: 0; padding: 1.1rem 1.35rem; border-radius: 16px; border: 1.5px solid var(--line); background: var(--surface); }
.prose blockquote p { margin: 0; }
.prose blockquote.skill { background: var(--deep); color: var(--on-deep); border-color: var(--deep); }
.prose blockquote.skill a, .prose blockquote.skill strong { color: var(--on-deep); }
.prose blockquote.skill code { background: #0f1823; color: #f5efe6; }
.prose blockquote.why { border-left: 6px solid var(--brand); }
.prose blockquote.why strong:first-child { color: var(--brand); }
:root[data-theme="dark"] .prose blockquote.why { border-left-color: #6f92bd; }
:root[data-theme="dark"] .prose blockquote.why strong:first-child { color: #9fbde0; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .prose blockquote.why { border-left-color: #6f92bd; }
  :root:not([data-theme="light"]) .prose blockquote.why strong:first-child { color: #9fbde0; }
}
.prose blockquote.ask { background: var(--highlight); color: var(--highlight-ink); border: 2px solid var(--ink); position: relative; padding-left: 4rem; }
.prose blockquote.ask::before { content: "?"; position: absolute; left: 1.1rem; top: 1rem; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: var(--paper); font: 800 1.2rem/34px var(--font-display); text-align: center; }
.prose blockquote.ask strong { color: var(--highlight-ink); }
.prose blockquote.note { border-style: dashed; }

.code { margin: 1.75em -1.5rem 0; border-radius: 18px; overflow: hidden; background: #12161d; border: 1.5px solid #2a313c; }
.code-bar { display: flex; justify-content: space-between; align-items: center; padding: .5rem .5rem .5rem 1.1rem; background: #1b212b; border-bottom: 1px solid #2a313c; }
.code-bar span { font: 600 .8125rem var(--font-mono); color: #aab4c2; letter-spacing: .08em; }
.copy-btn { min-height: 40px; padding: 0 .9rem; border-radius: 999px; border: 1px solid #3b4452; background: transparent; color: #e6ecf3; font: 600 .875rem var(--font-body); cursor: pointer; }
.copy-btn:hover { background: #2a313c; }
.code pre { margin: 0; padding: 1.1rem 1.25rem; overflow-x: auto; font: 400 .9375rem/1.65 var(--font-mono); color: #e6ecf3; tab-size: 2; }
.code pre code { background: none; padding: 0; color: inherit; font-size: inherit; }
.tok-k { color: #ff9d78; }
.tok-s { color: #b5e08a; }
.tok-c { color: #8d99a8; font-style: italic; }
.tok-t { color: #8ecbff; }
@media (max-width: 960px) { .code { margin-left: 0; margin-right: 0; } }

.mid-nl { margin: 2.5rem 0 !important; padding: 1.5rem; border-radius: 22px; background: var(--paper-2); border: 2px solid var(--ink); display: grid; grid-template-columns: 64px 1fr; gap: 1.1rem; align-items: start; }
.mid-nl img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; border: 2px solid var(--ink); }
.mid-nl h3 { font-size: 1.4rem; margin-bottom: .35rem; }
.mid-nl p { margin: 0 0 1rem !important; font-size: 1.0625rem; }
.mid-nl .nl-form input[type="email"] { min-height: 50px; }
.mid-nl .nl-form .btn { min-height: 50px; }
@media (max-width: 560px) { .mid-nl { grid-template-columns: 1fr; } }

.filed { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.filed span { font: 600 .8125rem var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-right: .5rem; }
.author-card { display: grid; grid-template-columns: 120px 1fr; gap: 1.75rem; align-items: center; padding: 2rem; border-radius: 28px; background: var(--surface); border: 2px solid var(--ink); box-shadow: 8px 8px 0 var(--accent); margin-top: 2.5rem; }
.author-card img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; border: 3px solid var(--ink); }
.author-card h3 { font-size: 1.7rem; margin-bottom: .4rem; }
.author-card p { margin: 0 0 1rem; }
.share { display: flex; gap: .5rem; flex-wrap: wrap; }
.share .btn { min-height: 44px; padding: 0 1rem; font-size: .9375rem; }
@media (max-width: 600px) { .author-card { grid-template-columns: 1fr; padding: 1.5rem; } .author-card img { width: 88px; height: 88px; } }

/* ---------- patterns ---------- */
.three-ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 2rem; }
.three-ways div { background: var(--surface); border: 1.5px solid var(--line); border-radius: 20px; padding: 1.35rem; }
.three-ways div:last-child { background: var(--accent); color: var(--on-accent); border: 2px solid var(--ink); }
.three-ways b { font-family: var(--font-display); font-size: 1.35rem; display: block; margin-bottom: .35rem; color: inherit; }
.three-ways div:not(:last-child) b { color: var(--ink); }
.three-ways p { margin: 0; font-size: 1.0625rem; }
@media (max-width: 860px) { .three-ways { grid-template-columns: 1fr; } }
.pat-card { position: relative; background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.pat-card:hover { border-color: var(--ink); box-shadow: var(--shadow); }
.pat-thumb { height: 170px; background: var(--paper-2); border-bottom: 1.5px solid var(--line); display: grid; place-items: center; position: relative; overflow: hidden; }
.pat-thumb svg { width: 72%; height: 72%; color: var(--ink); }
.pat-thumb[data-cat="Data display"] { background: color-mix(in srgb, var(--accent) 14%, var(--surface)); }
.pat-thumb[data-cat="Layout"] { background: color-mix(in srgb, var(--brand) 16%, var(--surface)); }
.pat-thumb[data-cat="Interaction"] { background: color-mix(in srgb, var(--highlight) 30%, var(--surface)); }
.pat-thumb[data-cat="Forms"] { background: color-mix(in srgb, #2fbf71 16%, var(--surface)); }
.pat-thumb[data-cat="Color"] { background: color-mix(in srgb, #8a5cf6 16%, var(--surface)); }
.pat-card .card-body { gap: .5rem; }
.pat-card h2 { font-size: 1.35rem; line-height: 1.2; }
.pat-card h2 a { text-decoration: none; }
.pat-card h2 a::after { content: ""; position: absolute; inset: 0; }
.pat-top { display: flex; justify-content: space-between; gap: .5rem; align-items: center; font: 600 .8125rem var(--font-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--accent-text); }
.pat-card .good { font-size: 1rem; color: var(--muted); }
.pat-card .tech { position: relative; z-index: 1; }
.sort-select { min-height: 44px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); padding: 0 1rem; font: 600 1rem var(--font-body); }

.pat-detail { max-width: 1080px; }
.pat-detail h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); margin: .6rem 0 1rem; }
.uses { columns: 2; column-gap: 2rem; margin: .75rem 0 0; padding-left: 1.2rem; }
.uses li { break-inside: avoid; margin-bottom: .35rem; }
@media (max-width: 640px) { .uses { columns: 1; } }
.panes { margin-top: 2rem; border: 2px solid var(--ink); border-radius: 24px; overflow: hidden; background: var(--surface); }
.pane-bar { display: flex; justify-content: space-between; align-items: center; gap: .75rem; flex-wrap: wrap; padding: .6rem; border-bottom: 1.5px solid var(--line); background: var(--paper-2); }
.tabs { display: flex; gap: .25rem; flex-wrap: wrap; }
.tabs button { min-height: 44px; padding: 0 1rem; border-radius: 999px; border: 0; background: transparent; color: var(--text); font: 600 1rem var(--font-body); cursor: pointer; }
.tabs button:hover { background: var(--surface); }
.tabs button[aria-selected="true"] { background: var(--ink); color: var(--paper); }
.pane-actions { display: flex; gap: .4rem; }
.pane-actions .btn { min-height: 44px; padding: 0 1rem; font-size: .9375rem; }
.pane { padding: 1.5rem; }
.pane pre { margin: 0; background: #12161d; color: #e6ecf3; border-radius: 14px; padding: 1.1rem 1.25rem; overflow-x: auto; font: 400 .9375rem/1.6 var(--font-mono); }
.pane .note { font-size: 1rem; color: var(--muted); margin-bottom: 1rem; }
.prompt-text { max-width: 70ch; }
.prompt-text p { margin-bottom: 1em; }
.stage { background: var(--paper); border-radius: 16px; padding: 1.5rem; border: 1px solid var(--line); }
.stage .cap-line { font-size: 1rem; color: var(--muted); margin: 0 0 .75rem; }
.hss-strip { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; grid-template-columns: 1fr; }
@media (min-width: 21rem) { .hss-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 42rem) { .hss-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 60rem) { .hss-strip.five { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.hss-tile { background: var(--surface); padding: 1rem 1.1rem; display: flex; flex-direction: column; gap: .25rem; min-width: 0; text-align: left; border: 0; color: var(--text); font: inherit; }
.hss-label { font: 600 .8125rem var(--font-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.hss-fig { font: 800 1.6rem var(--font-display); color: var(--ink); font-variant-numeric: tabular-nums; line-height: 1.1; }
.hss-fig.dim { color: var(--muted); }
.hss-sub { font-size: .9375rem; color: var(--muted); overflow-wrap: anywhere; }
button.hss-tile { cursor: pointer; min-height: 44px; }
button.hss-tile:hover { background: var(--paper-2); }
button.hss-tile[aria-pressed="true"] { background: color-mix(in srgb, var(--accent) 18%, var(--surface)); box-shadow: inset 0 -4px 0 var(--accent); }
.dl-list { list-style: none; margin: 1rem 0 0; padding: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.dl-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .75rem 1rem; background: var(--surface); border-bottom: 1px solid var(--line); font-size: 1rem; flex-wrap: wrap; }
.dl-list li:last-child { border-bottom: 0; }
.status-pill { font: 600 .8125rem var(--font-mono); padding: .2rem .6rem; border-radius: 999px; border: 1px solid var(--line); }
.stage-status { margin: .75rem 0 0; font-size: 1rem; font-weight: 600; color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .marquee { animation: none; flex-wrap: wrap; width: auto; }
  .card:hover, .channel:hover, .btn:hover { transform: none; }
}

/* ---------- shared splits ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.nl-mini { background: var(--surface); border: 2px solid var(--ink); border-radius: 26px; padding: 1.75rem; box-shadow: 8px 8px 0 var(--accent); }
.picklist { list-style: none; counter-reset: pick; margin: .5rem 0 0; padding: 0; }
.picklist li { counter-increment: pick; display: grid; grid-template-columns: 2.6rem 1fr; column-gap: .75rem; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.picklist li:last-child { border-bottom: 0; }
.picklist li::before { content: counter(pick, decimal-leading-zero); grid-row: span 2; font: 800 1.6rem/1 var(--font-display); color: var(--accent-text); }
.picklist a { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; line-height: 1.25; color: var(--ink); text-decoration: none; }
.picklist a:hover { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 3px; }
.picklist span { font: 500 .875rem var(--font-mono); color: var(--muted); margin-top: .25rem; }
@media (prefers-reduced-motion: reduce) { .marquee ul[aria-hidden] { display: none; } .marquee ul { flex-wrap: wrap; justify-content: center; } }

.row .thumb:empty { visibility: hidden; }
@media (max-width: 600px) {
  .announce .long { display: none; }
  .nl-form .btn { flex: 1 1 100%; }
  .mini-stats b { font-size: 1.5rem; }
}
@media (min-width: 601px) { .announce .short { display: none; } }
.mini-stats div { min-width: 0; }
@media (max-width: 480px) {
  .mini-stats { grid-template-columns: 1fr; }
  .mini-stats div { display: flex; align-items: baseline; gap: .75rem; }
}

/* gallery article */
.prose figure { margin: 1.75rem 0; }
.prose figure img { display: block; width: 100%; height: auto; border-radius: 16px; border: 1.5px solid var(--line); }
.prose blockquote p + p { margin-top: .75rem; }
.prose code { overflow-wrap: anywhere; }
