/* ==========================================================================
   mohiuddin.dev — site styles
   Type: Schibsted Grotesk (UI + headings), Newsreader (long-form reading)
   Palette: paper white, ink, one plum accent, a green used only for "live"
   ========================================================================== */

@font-face {
  font-family: "Schibsted Grotesk";
  src: url("../fonts/schibsted-grotesk-latin-wght-normal.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("../fonts/schibsted-grotesk-latin-wght-italic.woff2") format("woff2");
  font-weight: 400 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-latin-standard-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-latin-standard-italic.woff2") format("woff2");
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}

:root {
  --paper: #f7f6f9;
  --card: #ffffff;
  --wash: #eeebf2;
  --ink: #19161d;
  --ink-2: #48424f;
  --ink-3: #6f6878;
  --rule: #e1dce6;
  --rule-strong: #cbc4d2;
  --hero-bg: #1e1522;
  --hero-ink: #f6eff5;
  --hero-ink-2: #c9bccb;
  --hero-accent: #e2b2d4;
  --plum: #6b2f5e;
  --plum-deep: #4f2046;
  --plum-tint: #f3e9f0;
  --on-plum: #ffffff;
  --live: #1d7a4b;

  --sans: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;

  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 48px);
  --nav-h: 72px;
  --r-sm: 6px;
  --r-md: 10px;

  /* legacy names still used by a few inline styles */
  --bg: var(--paper);
  --bg-2: var(--wash);
  --bg-3: var(--wash);
  --surface: var(--paper);
  --border: var(--rule);
  --border-2: var(--rule-strong);
  --text: var(--ink);
  --text-2: var(--ink-2);
  --text-3: var(--ink-3);
  --white: var(--ink);
  --accent: var(--plum);
  --green: var(--plum);
  --accent-dim: var(--plum-tint);
  --green-dim: var(--plum-tint);
  --mono: var(--sans);
  --display: var(--sans);
  --radius: var(--r-md);
  --radius-sm: var(--r-sm);
  --radius-xs: 4px;

  color-scheme: light;
}

[data-theme="dark"] {
  --paper: #151318;
  --card: #1b181f;
  --wash: #1f1c24;
  --ink: #efebf2;
  --ink-2: #bcb5c3;
  --ink-3: #908899;
  --rule: #2d2933;
  --rule-strong: #3d3844;
  --plum: #d6a3ca;
  --plum-deep: #e7c3de;
  --plum-tint: #2b2030;
  --on-plum: #1a1219;
  --live: #57c993;
  --hero-bg: #22172a;
  --hero-ink: #f6eff5;
  --hero-ink-2: #c3b6c6;
  --hero-accent: #e2b2d4;
  color-scheme: dark;
}

*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 16px); }

body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  font-feature-settings: "ss01" 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }

::selection { background: var(--plum); color: var(--on-plum); }

:focus-visible { outline: 2px solid var(--plum); outline-offset: 3px; border-radius: 2px; }

.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 200;
  background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: var(--r-sm);
  text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ---------- type ---------- */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.12; letter-spacing: -0.02em; color: var(--ink); }
.t-display { font-size: clamp(56px, 10.5vw, 148px); font-weight: 800; line-height: 0.9; letter-spacing: -0.055em; }
.t-h1 { font-size: clamp(40px, 6vw, 76px); font-weight: 800; line-height: 0.98; letter-spacing: -0.045em; }
.t-h2 { font-size: clamp(28px, 3.4vw, 42px); font-weight: 750; letter-spacing: -0.035em; line-height: 1.05; }
.t-h3 { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.t-lede { font-size: clamp(19px, 1.7vw, 23px); line-height: 1.5; color: var(--ink-2); max-width: 36em; }
.t-small { font-size: 14px; color: var(--ink-3); }
.t-num { font-variant-numeric: lining-nums; }
.prose { font-family: var(--serif); font-size: 20px; line-height: 1.65; color: var(--ink-2); max-width: 34em; }
.prose p + p { margin-top: 0.9em; }

/* ---------- links & buttons ---------- */
.link {
  color: var(--plum); text-decoration: underline; text-decoration-thickness: 1px;
  text-underline-offset: 4px; text-decoration-color: color-mix(in srgb, var(--plum) 45%, transparent);
}
.link:hover { text-decoration-color: currentColor; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  font-size: 16px; font-weight: 600; letter-spacing: -0.005em; text-decoration: none;
  border: 1.5px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--plum); color: var(--on-plum); }
.btn-primary:hover { background: var(--plum-deep); }
.btn-ghost { border-color: var(--rule-strong); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 14px; }

.chip {
  display: inline-flex; align-items: center; height: 28px; padding: 0 11px;
  border-radius: 999px; background: var(--wash); color: var(--ink-2);
  font-size: 13.5px; font-weight: 500; white-space: nowrap;
}
.chips { display: flex; flex-wrap: wrap; gap: 6px; }

.status { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 600; color: var(--ink-2); }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 4px color-mix(in srgb, var(--live) 18%, transparent); }

/* ---------- nav ---------- */
.site-nav {
  position: sticky; top: 0; z-index: 100; height: var(--nav-h);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .2s ease;
}
.site-nav.is-scrolled { border-bottom-color: var(--rule); }
.site-nav .wrap { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { font-weight: 800; font-size: 19px; letter-spacing: -0.03em; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand b { color: var(--plum); font-weight: 800; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-links a {
  display: block; padding: 8px 12px; border-radius: 999px; text-decoration: none;
  font-size: 15px; font-weight: 500; color: var(--ink-2);
}
.nav-links a:hover { color: var(--ink); background: var(--wash); }
.nav-links a[aria-current="page"] { color: var(--ink); font-weight: 650; background: var(--wash); }
.nav-links .new { font-size: 11px; font-weight: 700; color: var(--plum); margin-left: 4px; vertical-align: 1px; }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%; display: inline-grid; place-items: center;
  border: 1.5px solid var(--rule); background: transparent; cursor: pointer; color: var(--ink);
}
.icon-btn:hover { border-color: var(--ink-3); }
.icon-btn svg { width: 18px; height: 18px; }
.theme-icon-dark { display: none; }
[data-theme="dark"] .theme-icon-dark { display: block; }
[data-theme="dark"] .theme-icon-light { display: none; }
.menu-btn { display: none; }

@media (max-width: 960px) {
  .menu-btn { display: inline-grid; }
  .nav-hire { display: none; }
  .nav-links {
    position: fixed; inset: var(--nav-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--rule); padding: 8px var(--gutter) 20px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 4px; border-radius: 0; border-bottom: 1px solid var(--rule); font-size: 18px; background: none !important; }
}

/* ---------- page head (inner pages) ---------- */
.page-head { padding: clamp(56px, 9vw, 120px) 0 clamp(36px, 5vw, 64px); }
.page-head .t-lede { margin-top: 22px; }
.crumbs { display: flex; gap: 8px; font-size: 14px; color: var(--ink-3); margin-bottom: 22px; }
.crumbs a { color: var(--ink-3); text-decoration: none; }
.crumbs a:hover { color: var(--plum); }

/* ---------- sections ---------- */
.block { padding: clamp(64px, 9vw, 128px) 0; }
.block + .block { padding-top: 0; }
.block-wash { background: var(--wash); }
.block-wash + .block { padding-top: clamp(64px, 9vw, 128px); }
.block + .block-wash { padding-top: clamp(64px, 9vw, 128px); }
.block-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: clamp(28px, 4vw, 48px); }
.block-head p { color: var(--ink-3); max-width: 30em; margin-top: 10px; }

/* ---------- home: hero ---------- */
.hero { padding: clamp(48px, 8vw, 104px) 0 clamp(48px, 7vw, 88px); }
.hero-name { display: block; }
.hero-name span { display: block; }
.hero-name .line-2 { color: var(--plum); }
.hero-row { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); margin-top: clamp(28px, 4vw, 48px); align-items: end; }
.hero-row .t-lede { color: var(--ink); }
.hero-side { display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 28px; color: var(--ink-3); font-size: 15px; }
.facts strong { color: var(--ink); font-weight: 700; font-variant-numeric: lining-nums; }

@media (prefers-reduced-motion: no-preference) {
  .hero-name span { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
  .hero-name .line-2 { animation-delay: .08s; }
  .hero-row { animation: fade .6s .25s ease both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(0.35em); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 860px) { .hero-row { grid-template-columns: 1fr; align-items: start; } }

/* ---------- project index (list view) ---------- */
.index { border-top: 1.5px solid var(--ink); }
.index-head, .index-row {
  display: grid; grid-template-columns: 56px minmax(0, 2.4fr) minmax(0, 1.6fr) minmax(0, 0.9fr) 190px;
  gap: 20px; align-items: center;
}
.index-head { padding: 12px 0; font-size: 13.5px; font-weight: 600; color: var(--ink-3); border-bottom: 1px solid var(--rule); }
.index-row {
  position: relative; padding: 18px 0; border-bottom: 1px solid var(--rule);
  text-decoration: none; color: var(--ink);
}
.index-row .i-no { font-size: 14px; color: var(--ink-3); font-variant-numeric: lining-nums; }
.index-row .i-title { font-size: 19px; font-weight: 650; letter-spacing: -0.015em; line-height: 1.3; }
.index-row .i-title small { display: block; font-size: 14.5px; font-weight: 400; color: var(--ink-3); letter-spacing: 0; margin-top: 2px; }
.index-row .i-stack, .index-row .i-type { font-size: 15px; color: var(--ink-2); }
.index-row .i-live { font-size: 14.5px; color: var(--plum); font-weight: 600; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.index-row:hover .i-title, .index-row:focus-visible .i-title { color: var(--plum); }
.index-row:hover { background: linear-gradient(90deg, transparent, var(--wash) 8%, var(--wash) 92%, transparent); }
.index-preview {
  position: fixed; z-index: 90; width: 360px; aspect-ratio: 16 / 9; pointer-events: none;
  border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--rule-strong); background: var(--wash);
  box-shadow: 0 24px 60px -20px rgba(25, 22, 29, .45);
  opacity: 0; transform: scale(.96); transition: opacity .15s ease, transform .15s ease;
}
.index-preview.on { opacity: 1; transform: none; }
.index-preview img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
@media (hover: none), (max-width: 960px) { .index-preview { display: none; } }
@media (max-width: 960px) {
  .index-head { display: none; }
  .index-row { grid-template-columns: 40px 1fr; gap: 4px 14px; padding: 18px 0; }
  .index-row .i-no { grid-row: span 3; align-self: start; padding-top: 3px; }
  .index-row .i-stack, .index-row .i-type { font-size: 14.5px; }
  .index-row .i-type { display: none; }
  .index-row .i-live { text-align: left; }
}

/* ---------- case studies (featured work) ---------- */
.case { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.case + .case { margin-top: clamp(56px, 8vw, 112px); }
.case:nth-of-type(even) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); }
.case:nth-of-type(even) .case-shot { order: 2; }
.case-shot { display: block; border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--rule); background: var(--wash); aspect-ratio: 16 / 10; }
.case-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .5s ease; }
.case-shot:hover img { transform: scale(1.02); }
.case-body h3 { font-size: clamp(24px, 2.6vw, 32px); font-weight: 750; letter-spacing: -0.03em; line-height: 1.1; }
.case-body h3 a { text-decoration: none; }
.case-body h3 a:hover { color: var(--plum); }
.case-kind { font-size: 15px; font-weight: 600; color: var(--plum); margin-bottom: 12px; }
.case-body p { color: var(--ink-2); margin-top: 14px; }
.case-body .chips { margin-top: 20px; }
.case-links { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 24px; font-size: 15.5px; font-weight: 600; }
@media (max-width: 860px) { .case, .case:nth-of-type(even) { grid-template-columns: 1fr; } .case:nth-of-type(even) .case-shot { order: 0; } }

/* ---------- about split (home) ---------- */
.split { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.portrait { border-radius: var(--r-md); overflow: hidden; aspect-ratio: 4 / 5; background: var(--wash); }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.portrait-cap { margin-top: 12px; font-size: 14px; color: var(--ink-3); }
.split .t-h2 { margin-bottom: 24px; }
.split .prose + .btn, .split .prose + .row-actions { margin-top: 32px; }
.row-actions { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .portrait { max-width: 420px; } }

/* ---------- skills table ---------- */
.skills { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 32px; margin-top: 40px; border-top: 1px solid var(--rule); }
.skills dl { padding: 18px 0; border-bottom: 1px solid var(--rule); }
.skills dt { font-size: 14px; font-weight: 600; color: var(--ink-3); margin-bottom: 6px; }
.skills dd { font-size: 16.5px; color: var(--ink); line-height: 1.55; }

/* ---------- timeline (experience) ---------- */
.timeline { border-top: 1.5px solid var(--ink); }
.job { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(20px, 4vw, 56px); padding: 36px 0; border-bottom: 1px solid var(--rule); }
.job-when { font-size: 15px; color: var(--ink-3); font-variant-numeric: lining-nums; }
.job-when strong { display: block; color: var(--ink); font-size: 16px; font-weight: 650; margin-bottom: 4px; }
.job-when .status { margin-top: 10px; font-size: 14px; }
.job h3 { font-size: 24px; font-weight: 750; letter-spacing: -0.025em; }
.job .at { font-size: 17px; color: var(--ink-2); margin-top: 4px; }
.job .at b { color: var(--ink); font-weight: 650; }
.job p { color: var(--ink-2); margin-top: 14px; max-width: 42em; }
.job ul { margin-top: 16px; padding-left: 0; list-style: none; max-width: 44em; }
.job li { position: relative; padding-left: 20px; color: var(--ink-2); margin-top: 8px; }
.job li::before { content: ""; position: absolute; left: 2px; top: 0.72em; width: 8px; height: 1.5px; background: var(--plum); }
.job .chips { margin-top: 18px; }
.job .shipped { margin-top: 18px; font-size: 15px; color: var(--ink-3); }
.job .shipped b { color: var(--ink); font-weight: 600; }
details.more { margin-top: 14px; }
details.more summary { cursor: pointer; font-weight: 600; color: var(--plum); font-size: 15.5px; list-style: none; display: inline-flex; align-items: center; gap: 8px; }
details.more summary::-webkit-details-marker { display: none; }
details.more summary::before { content: "+"; display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid currentColor; font-size: 14px; line-height: 1; }
details.more[open] summary::before { content: "–"; }
@media (max-width: 760px) { .job { grid-template-columns: 1fr; gap: 10px; } }

/* compact timeline used on home */
.jobs-compact { border-top: 1.5px solid var(--ink); }
.jobs-compact a { display: grid; grid-template-columns: 190px minmax(0, 1fr) auto; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--rule); text-decoration: none; align-items: baseline; }
.jobs-compact .w { color: var(--ink-3); font-size: 15px; font-variant-numeric: lining-nums; }
.jobs-compact .r { font-size: 19px; font-weight: 650; letter-spacing: -0.015em; }
.jobs-compact .r span { font-weight: 400; color: var(--ink-2); }
.jobs-compact .l { color: var(--ink-3); font-size: 15px; }
.jobs-compact a:hover .r { color: var(--plum); }
@media (max-width: 760px) { .jobs-compact a { grid-template-columns: 1fr; gap: 2px; } }

/* ---------- writing list ---------- */
.posts { border-top: 1.5px solid var(--ink); }
.post-row { display: grid; grid-template-columns: 150px minmax(0, 1fr) 120px; gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--rule); text-decoration: none; align-items: baseline; }
.post-row time { color: var(--ink-3); font-size: 15px; font-variant-numeric: lining-nums; }
.post-row h3 { font-size: 21px; font-weight: 650; letter-spacing: -0.02em; line-height: 1.25; }
.post-row p { color: var(--ink-2); margin-top: 6px; font-size: 16px; max-width: 40em; }
.post-row .rt { color: var(--ink-3); font-size: 14.5px; text-align: right; }
.post-row:hover h3 { color: var(--plum); }
@media (max-width: 760px) { .post-row { grid-template-columns: 1fr; gap: 4px; } .post-row .rt { text-align: left; } }

/* ---------- contact band ---------- */
.contact-band { padding: clamp(72px, 10vw, 144px) 0; background: var(--ink); color: var(--paper); }
[data-theme="dark"] .contact-band { background: var(--wash); color: var(--ink); }
.contact-band p { font-size: clamp(19px, 1.8vw, 22px); color: color-mix(in srgb, currentColor 72%, transparent); max-width: 32em; }
.contact-band h2 { color: inherit; font-size: clamp(36px, 5vw, 64px); font-weight: 800; letter-spacing: -0.045em; line-height: 1; margin-bottom: 20px; }
.mail-big {
  display: inline-block; margin-top: clamp(28px, 4vw, 44px); color: inherit; text-decoration: none;
  font-size: clamp(22px, 4.3vw, 60px); font-weight: 750; letter-spacing: -0.04em; line-height: 1.1;
  border-bottom: 3px solid color-mix(in srgb, currentColor 30%, transparent); padding-bottom: 6px; overflow-wrap: anywhere;
}
.mail-big:hover { border-bottom-color: currentColor; }
.contact-band .row-actions { margin-top: 32px; }
.contact-band .btn-ghost { color: inherit; border-color: color-mix(in srgb, currentColor 35%, transparent); }
.contact-band .btn-ghost:hover { border-color: currentColor; }

/* ---------- footer ---------- */
.site-foot { border-top: 1px solid var(--rule); padding: 40px 0 48px; font-size: 15px; color: var(--ink-3); }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 16px 40px; align-items: center; justify-content: space-between; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-foot a { color: var(--ink-2); text-decoration: none; }
.site-foot a:hover { color: var(--plum); }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 15px; font-weight: 600; color: var(--ink); }
.field input, .field textarea {
  width: 100%; border: 1.5px solid var(--rule-strong); background: var(--paper); border-radius: var(--r-sm);
  padding: 13px 14px; font-size: 16.5px; color: var(--ink); transition: border-color .15s ease;
}
.field input:hover, .field textarea:hover { border-color: var(--ink-3); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--plum); box-shadow: 0 0 0 3px var(--plum-tint); }
.field textarea { min-height: 180px; resize: vertical; }
.field .hint { font-size: 14px; color: var(--ink-3); }
.notice { padding: 14px 16px; border-radius: var(--r-sm); font-size: 15.5px; margin-bottom: 22px; }
.notice-ok { background: color-mix(in srgb, var(--live) 12%, var(--paper)); color: var(--live); border: 1px solid color-mix(in srgb, var(--live) 35%, transparent); }
.notice-err { background: color-mix(in srgb, #c0392b 10%, var(--paper)); color: #b03325; border: 1px solid color-mix(in srgb, #c0392b 35%, transparent); }
[data-theme="dark"] .notice-err { color: #ff8d80; }

/* ---------- chat dock ---------- */
.dock { position: fixed; right: 20px; bottom: 20px; z-index: 120; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.dock-links { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.dock-links[hidden] { display: none; }
.dock-btn {
  display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 18px 0 14px; border-radius: 999px;
  background: var(--paper); color: var(--ink); border: 1px solid var(--rule-strong); text-decoration: none;
  font-size: 15px; font-weight: 600; cursor: pointer; box-shadow: 0 10px 30px -12px rgba(25, 22, 29, .35);
}
.dock-btn:hover { border-color: var(--ink-3); }
.dock-btn svg { width: 20px; height: 20px; flex: none; }
.dock-btn.main { background: var(--ink); color: var(--paper); border-color: var(--ink); }
[data-theme="dark"] .dock-btn.main { background: var(--plum); color: var(--on-plum); border-color: var(--plum); }
.dock-btn .wa { color: #1fa855; }
.dock-btn .ms { color: #0866ff; }

/* ---------- misc ---------- */
.empty { padding: 48px 0; color: var(--ink-3); }
hr.rule { border: 0; border-top: 1px solid var(--rule); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

@media (max-width: 600px) {
  .block-head { flex-direction: column; align-items: flex-start; gap: 16px; }
}


/* ==========================================================================
   v2: dark aubergine hero on home, tinted page heads, white surfaces
   ========================================================================== */
.case-shot, .work-shot, .shot-main, .article-cover, .portrait, .lead-post .cover { background: var(--card); }
.index-row:hover { background: linear-gradient(90deg, transparent, var(--card) 6%, var(--card) 94%, transparent); }
.field input, .field textarea { background: var(--card); }
.chip { background: var(--card); border: 1px solid var(--rule); }
.block-wash .chip { background: var(--paper); }

/* home hero */
body.dark-hero .site-nav:not(.is-scrolled) { background: var(--hero-bg); backdrop-filter: none; -webkit-backdrop-filter: none; }
body.dark-hero .site-nav:not(.is-scrolled) .brand,
body.dark-hero .site-nav:not(.is-scrolled) .nav-links a { color: var(--hero-ink-2); }
body.dark-hero .site-nav:not(.is-scrolled) .brand { color: var(--hero-ink); }
body.dark-hero .site-nav:not(.is-scrolled) .brand b { color: var(--hero-accent); }
body.dark-hero .site-nav:not(.is-scrolled) .nav-links a:hover,
body.dark-hero .site-nav:not(.is-scrolled) .nav-links a[aria-current="page"] { color: var(--hero-ink); background: rgba(255,255,255,.08); }
body.dark-hero .site-nav:not(.is-scrolled) .nav-links .new { color: var(--hero-accent); }
body.dark-hero .site-nav:not(.is-scrolled) .icon-btn { color: var(--hero-ink); border-color: rgba(255,255,255,.2); }
body.dark-hero .site-nav:not(.is-scrolled) .nav-hire { background: var(--hero-accent); color: #1e1522; }
@media (max-width: 960px) {
  body.dark-hero .site-nav:not(.is-scrolled) .nav-links { background: var(--hero-bg); border-bottom-color: rgba(255,255,255,.1); }
  body.dark-hero .site-nav:not(.is-scrolled) .nav-links a { border-bottom-color: rgba(255,255,255,.1); }
}

.hero {
  position: relative; overflow: hidden; background: var(--hero-bg); color: var(--hero-ink);
  padding: clamp(56px, 8vw, 112px) 0 clamp(56px, 8vw, 104px);
}
.hero::after {
  /* faint ruled "ledger" lines, the one decorative device on the page */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: repeating-linear-gradient(to bottom, transparent 0 63px, rgba(255,255,255,.045) 63px 64px);
  -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent);
          mask-image: linear-gradient(to bottom, #000 30%, transparent);
}
.hero .wrap { position: relative; z-index: 1; }
.hero .hero-name { color: var(--hero-ink); }
.hero .hero-name .line-2 { color: var(--hero-accent); }
.hero .hero-row .t-lede { color: var(--hero-ink); }
.hero .status { color: var(--hero-ink-2); }
.hero .facts { color: var(--hero-ink-2); }
.hero .facts strong { color: var(--hero-ink); }
.hero .btn-primary { background: var(--hero-accent); color: #1e1522; }
.hero .btn-primary:hover { background: #f0cde5; }
.hero .btn-ghost { color: var(--hero-ink); border-color: rgba(255,255,255,.28); }
.hero .btn-ghost:hover { border-color: var(--hero-ink); }
.hero + .block { padding-top: clamp(64px, 9vw, 128px); }

/* inner page heads sit on a tinted band */
.page-head, .proj-head, .tools-hero { background: var(--wash); border-bottom: 1px solid var(--rule); }
.page-head + .block, .page-head + section.block { padding-top: clamp(48px, 7vw, 96px) !important; }
.article-head { background: none; }
.about-top .portrait, .contact-grid .form { box-shadow: 0 24px 60px -36px rgba(30, 21, 34, .35); }
.contact-grid .form { background: var(--card); border: 1px solid var(--rule); }
.tools-nav-wrap { background: var(--paper); }
.tools-nav { scrollbar-width: none; }
.tools-nav::-webkit-scrollbar { display: none; }
.drop-zone, .state-card { background: var(--card); }
.proj-head + section { padding-top: clamp(32px, 4vw, 48px); }
