/* Martina Yacobone — portfolio
   Black & white + Inter. Editorial layout, case studies as real text. */
/* Inter is self-hosted (no requests to Google = no visitor IPs shared) */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/inter-latin-ext-400-normal.woff2) format("woff2"); unicode-range: U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/inter-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/inter-latin-ext-500-normal.woff2) format("woff2"); unicode-range: U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/inter-latin-500-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/inter-latin-ext-600-normal.woff2) format("woff2"); unicode-range: U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/inter-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
:root {
  --bg: #ffffff;
  --fg: #0b0b0b;
  --text: #2b2b2b;
  --muted: #6e6e6e;
  --line: #e7e7e5;
  --surface: #f5f5f3;
  --dark: #111111;
  --accent: #0b0b0b;
  --good: #1f8a4c;
  --bad: #b3261e;
  --gutter: 40px;
  --maxw: 1240px;
  --header: 84px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header) + 24px); }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--font); font-size: 18px; line-height: 1.55; letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3, h4, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; border-radius: 2px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: #000; color: #fff; padding: 8px 14px; border-radius: 6px; }
.skip:focus { left: 8px; }

.wrap { width: min(var(--maxw), 100% - 2 * var(--gutter)); margin-inline: auto; }
.muted { color: var(--muted); }
.link { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.link:hover { text-decoration-thickness: 2px; }

/* ---------- Type ---------- */
.display { font-size: clamp(44px, 6vw, 80px); line-height: 1; letter-spacing: -0.055em; font-weight: 500; }
.h2 { font-size: clamp(26px, 3vw, 38px); line-height: 1.12; letter-spacing: -0.035em; font-weight: 500; }
.h3 { font-size: clamp(20px, 1.8vw, 24px); line-height: 1.25; letter-spacing: -0.025em; font-weight: 500; }
.h4 { font-size: 18px; line-height: 1.35; letter-spacing: -0.015em; font-weight: 600; }
.kicker { font-size: 13px; line-height: 1.4; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 500; color: var(--muted); }
.kicker.accent { color: var(--accent); }
.kicker a:hover { color: var(--fg); }
.num { font-size: 13px; font-weight: 500; letter-spacing: 0.04em; color: var(--muted); font-variant-numeric: tabular-nums; }
.prose { color: var(--text); max-width: 680px; }
.prose p + p, .prose p + ul, .prose ul + p { margin-top: 1em; }
.bullets li { position: relative; padding-left: 20px; }
.bullets li + li { margin-top: 6px; }
.bullets li::before { content: ""; position: absolute; left: 2px; top: .7em; width: 6px; height: 1.5px; background: currentColor; opacity: .55; }

/* ---------- Header + menu ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--gutter);
  background: rgba(255,255,255,.86); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s ease;
}
body.scrolled .site-header { border-bottom-color: var(--line); }
.brand { font-size: 18px; font-weight: 500; letter-spacing: -0.02em; }
.header-right { display: flex; align-items: center; gap: 12px; }
.lang {
  height: 40px; min-width: 48px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line);
  display: inline-grid; place-items: center; font-size: 14px; font-weight: 500; letter-spacing: 0.02em; transition: border-color .2s, background .2s;
}
.lang:hover { border-color: var(--fg); }
.menu-btn {
  position: relative; z-index: 60; width: 52px; height: 52px; border-radius: 50%;
  background: var(--dark); border: 0; padding: 0; cursor: pointer; transition: background .3s ease, transform .3s ease;
}
.menu-btn:hover { transform: scale(1.05); }
.menu-btn span { position: absolute; left: 14px; width: 24px; height: 1.5px; background: #d0d0d0; transition: transform .35s ease, top .35s ease, background .3s; }
.menu-btn span:nth-child(1) { top: 22px; }
.menu-btn span:nth-child(2) { top: 29px; }
body.menu-open .menu-btn { background: #fff; }
body.menu-open .menu-btn span { background: #000; top: 25.5px; }
body.menu-open .menu-btn span:nth-child(1) { transform: rotate(45deg); }
body.menu-open .menu-btn span:nth-child(2) { transform: rotate(-45deg); }
.menu-overlay { position: fixed; inset: 0; z-index: 40; background: rgba(0,0,0,.45); opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s; }
.menu-panel {
  position: fixed; z-index: 45; top: 12px; right: 12px; bottom: 12px; width: min(460px, calc(100vw - 24px));
  background: #000; color: #fff; border-radius: 16px;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 48px 56px;
  transform: translateX(calc(100% + 24px)); visibility: hidden; transition: transform .55s cubic-bezier(.7,0,.2,1), visibility .55s;
}
.menu-panel a { font-size: 48px; line-height: 1.25; letter-spacing: -0.045em; opacity: .55; transition: opacity .2s; }
.menu-panel a:hover, .menu-panel a[aria-current="page"] { opacity: 1; }
body.menu-open .menu-overlay { opacity: 1; visibility: visible; }
body.menu-open .menu-panel { transform: none; visibility: visible; }
body.menu-open { overflow: hidden; }

main { padding-top: var(--header); }

/* ---------- Home ---------- */
.hero { padding: clamp(80px, 13vh, 150px) 0 clamp(80px, 12vh, 140px); }
.status { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); margin-bottom: 36px;
  border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px 7px 12px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #22a35a; box-shadow: 0 0 0 4px rgba(34,163,90,.15); }
.typed-line { font-weight: 400; color: var(--muted); margin-top: .08em; min-height: 1.05em; white-space: nowrap; }
.caret { display: inline-block; width: 3px; height: .85em; background: currentColor; vertical-align: -0.06em; margin-left: 4px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.intro { max-width: 560px; margin-top: 44px; font-size: 19px; color: var(--text); }
.section-label { padding-bottom: 28px; border-bottom: 1px solid var(--line); }

.projects { width: min(var(--maxw), 100% - 2 * var(--gutter)); margin-inline: auto; display: grid; gap: 96px; padding-top: 40px; }
.works .projects { padding-top: 64px; }
.project { display: block; cursor: none; }
.thumb { overflow: hidden; border-radius: 14px; aspect-ratio: 16 / 10; background: var(--surface); }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(.2,.7,.2,1); }
.project:hover .thumb img { transform: scale(1.025); }
.project-meta { display: grid; grid-template-columns: 56px 1fr auto; gap: 16px; align-items: baseline; padding-top: 22px; }
.project-index { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.project-title { font-size: 28px; line-height: 1.1; letter-spacing: -0.035em; font-weight: 500; }
.project-type { color: var(--muted); font-size: 16px; margin-top: 4px; }
.project-outcome { font-size: 16px; font-weight: 500; text-align: right; display: inline-flex; align-items: center; gap: 10px; }
.project-outcome::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
.cursor-view { position: fixed; left: 0; top: 0; z-index: 70; pointer-events: none; width: 92px; height: 92px; border-radius: 50%;
  background: #fff; color: #000; display: grid; place-items: center; font-size: 16px; font-weight: 500;
  transform: translate(-50%, -50%) scale(0); transition: transform .25s ease; box-shadow: 0 8px 30px rgba(0,0,0,.14); }
.cursor-view.on { transform: translate(-50%, -50%) scale(1); }
@media (hover: none) { .project { cursor: pointer; } .cursor-view { display: none; } }

.approach { padding: 160px 0 140px; }
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin-top: 32px; }
.pillar { border-top: 1px solid var(--fg); padding-top: 20px; }
.pillar .h4 { font-size: 26px; font-weight: 500; letter-spacing: -0.03em; margin: 14px 0 10px; }
.pillar p { color: var(--text); }
.approach-note { margin-top: 48px; max-width: 680px; font-size: 22px; line-height: 1.4; letter-spacing: -0.02em; }
.page-title { padding-top: clamp(80px, 12vh, 140px); }

/* ---------- Case study ---------- */
.cs-head { padding: clamp(64px, 10vh, 120px) 0 56px; }
.cs-head .display { margin-top: 20px; }
.cs-summary { font-size: clamp(22px, 2.2vw, 30px); line-height: 1.3; letter-spacing: -0.025em; max-width: 860px; margin-top: 28px; }
.cs-outcome { display: inline-flex; align-items: center; gap: 10px; margin-top: 28px; font-weight: 500; font-size: 16px;
  padding: 8px 14px; border-radius: 999px; background: var(--surface); }
.cs-outcome::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.cs-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 24px 32px; margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); }
.cs-meta dt { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.cs-meta dd { font-size: 16px; line-height: 1.4; }
.cs-cover img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 16px; background: var(--surface); }
.cs-video video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 14px; background: var(--surface); }

.cs-body { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 72px; padding: 120px 0 160px; }
.toc { position: sticky; top: calc(var(--header) + 32px); align-self: start; }
.toc ol { margin-top: 16px; border-left: 1px solid var(--line); }
.toc a { display: block; padding: 6px 0 6px 16px; margin-left: -1px; border-left: 2px solid transparent; font-size: 15px; color: var(--muted); line-height: 1.35; transition: color .2s, border-color .2s; }
.toc a:hover { color: var(--fg); }
.toc a.active { color: var(--fg); border-left-color: var(--accent); }

.cs-section + .cs-section { margin-top: 140px; }
.cs-section > .kicker { margin-bottom: 20px; }
.block + .block { margin-top: 48px; }
.block.text .h2 + .prose, .block.text .h3 + .prose, .block.text .h2 + .h3 { margin-top: 20px; }
.block.text .h3 { margin-top: 8px; }
.block.text .h2 { max-width: 820px; }

.card { border: 1px solid var(--line); border-radius: 14px; padding: 28px; background: #fff; color: var(--text); font-size: 16px; }
.card p + p, .card p + ul, .card ul + p { margin-top: 12px; }
.card-title { font-size: 20px; font-weight: 500; letter-spacing: -0.02em; color: var(--fg); margin-bottom: 14px; }
.cards3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cards4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.card.small { padding: 22px; }
.card.small .card-title { margin-bottom: 8px; }

.numbered { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.numbered li { border-top: 1px solid var(--fg); padding-top: 18px; }
.numbered .h4 { margin: 12px 0 8px; }
.numbered p { color: var(--text); font-size: 16px; }

.decision .h2 { max-width: 820px; }
.decision .step { margin-top: 44px; }
.decision .step .kicker { margin-bottom: 14px; }
.decision .step .h3 { margin-bottom: 16px; max-width: 680px; }
.decision > .media { margin-top: 44px; }
.tradeoff { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.option { background: var(--surface); border-radius: 14px; padding: 24px; }
.option h4 { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 14px; }
.option li { position: relative; padding-left: 30px; font-size: 16px; color: var(--text); }
.option li + li { margin-top: 8px; }
.option li::before { position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 600; color: #fff; }
.option .pro::before { content: "✓"; background: var(--good); }
.option .con::before { content: "✕"; background: var(--bad); }
.checks li { position: relative; padding-left: 30px; color: var(--text); }
.checks li + li { margin-top: 10px; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 0; font-weight: 600; color: var(--accent); }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 0; border-top: 1px solid var(--fg); }
.stat { padding: 24px 24px 24px 0; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--line); }
.stat-value { font-size: clamp(36px, 4vw, 52px); line-height: 1; letter-spacing: -0.04em; font-weight: 500; color: var(--accent); }
.stat-label { margin-top: 12px; font-size: 15px; color: var(--text); line-height: 1.4; }

.quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.quote-card { background: var(--surface); border-radius: 14px; padding: 28px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.quote-card blockquote { font-size: 19px; line-height: 1.4; letter-spacing: -0.015em; }
.quote-card figcaption { font-size: 14px; color: var(--muted); }

.personas { display: grid; gap: 20px; }
.persona { display: grid; grid-template-columns: 280px minmax(0, 1fr); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.persona-id { background: var(--surface); padding: 32px; }
.persona-tag { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); font-weight: 500; }
.persona-name { font-size: 40px; letter-spacing: -0.045em; font-weight: 500; line-height: 1.1; margin-top: 8px; }
.persona-quote { margin-top: 16px; font-size: 17px; line-height: 1.45; }
.facts { margin-top: 24px; display: grid; gap: 8px; font-size: 14px; }
.facts div { display: grid; grid-template-columns: 92px 1fr; gap: 8px; }
.facts dt { color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; }
.tags li { font-size: 13px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; }
.persona-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; padding: 32px; font-size: 15px; color: var(--text); }
.pcol.full { grid-column: 1 / -1; }
.pcol h4 { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--fg); font-weight: 600; margin-bottom: 12px; }

.scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: 14px; }
.journey { width: 100%; min-width: 980px; border-collapse: collapse; font-size: 14px; color: var(--text); }
.journey th, .journey td { padding: 18px 16px; vertical-align: top; text-align: left; border-bottom: 1px solid var(--line); }
.journey thead th { font-size: 14px; font-weight: 600; color: var(--fg); background: var(--surface); }
.journey tbody th { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 500; width: 120px; }
.journey tr:last-child th, .journey tr:last-child td { border-bottom: 0; }
.journey .bullets li + li { margin-top: 6px; }
.emo { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; color: var(--fg); }
.emo::before { content: ""; width: 10px; height: 10px; border-radius: 50%; }
.emo.lvl1::before { background: #22a35a; }
.emo.lvl2::before { background: #9bbf3a; }
.emo.lvl3::before { background: #d6b323; }
.emo.lvl4::before { background: #d9622b; }

.heuristics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
.heur { display: grid; grid-template-columns: 36px 1fr; gap: 4px 12px; padding: 22px 0; border-top: 1px solid var(--line); }
.heur .num { grid-row: span 2; padding-top: 2px; }
.heur p { color: var(--text); font-size: 15px; }

.trees { display: grid; gap: 16px; }
.trees.n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tree-fig { background: var(--surface); border-radius: 14px; padding: 28px; }
.tree-fig figcaption { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 20px; font-weight: 500; }
.tree, .tree ul { font-size: 15px; }
.tree ul { margin-left: 10px; padding-left: 18px; border-left: 1px solid #cfcfcb; }
.tree li { position: relative; padding: 5px 0; }
.tree ul > li::before { content: ""; position: absolute; left: -18px; top: 18px; width: 14px; height: 1px; background: #cfcfcb; }
.tree span { display: inline-block; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 4px 10px; }
.tree > li > span { background: var(--fg); color: #fff; border-color: var(--fg); }
.trees.n1 .tree > li > ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; border-left: 0; margin-left: 0; padding-left: 0; margin-top: 12px; }
.trees.n1 .tree > li > ul > li::before { display: none; }

.flows { display: grid; gap: 24px; }
.flow { border: 1px solid var(--line); border-radius: 14px; padding: 24px; }
.flow .h4 { margin-bottom: 16px; }
.flow-steps { display: flex; flex-wrap: wrap; gap: 10px 8px; counter-reset: step; }
.flow-steps li { counter-increment: step; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; background: var(--surface); border-radius: 8px; padding: 8px 12px; }
.flow-steps li::before { content: counter(step); font-size: 12px; font-weight: 600; color: var(--muted); }
.flow-steps li:last-child { background: var(--fg); color: #fff; }
.flow-steps li:last-child::before { color: rgba(255,255,255,.6); }

.media figcaption { margin-top: 12px; font-size: 14px; color: var(--muted); }
.media figcaption.tag-top { margin: 0 0 12px; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; font-weight: 500; }
.crop { position: relative; overflow: hidden; border-radius: 14px; background: var(--surface); width: 100%; }
.crop img { position: absolute; max-width: none; height: auto; }
.crop.photo { background: #111; }
.crop.tall { max-width: 620px; margin-inline: auto; }
.split .crop.tall { max-width: none; }
.phones { display: flex; justify-content: center; gap: clamp(12px, 3vw, 36px); background: var(--surface); border-radius: 14px; padding: clamp(24px, 5vw, 56px); }
.phone { width: min(240px, 30%); aspect-ratio: 9 / 19.5; border: 9px solid #111; border-radius: 38px; overflow: hidden; background: #fff; box-shadow: 0 20px 50px rgba(0,0,0,.12); }
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.board { width: 100%; border-radius: 14px; }
.compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 48px; align-items: start; }
.split .block + .block { margin-top: 36px; }

.stories { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.story { border: 1px solid var(--line); border-radius: 14px; padding: 28px; }
.story .h4 { margin-bottom: 18px; color: var(--accent); }
.story ol { border-left: 1px dashed #cfcfcb; margin-left: 5px; }
.story li { position: relative; padding: 0 0 18px 22px; font-size: 16px; line-height: 1.45; }
.story li:last-child { padding-bottom: 0; }
.story li::before { content: ""; position: absolute; left: -5px; top: 6px; width: 9px; height: 9px; border-radius: 50%; background: #fff; border: 1.5px solid var(--accent); }

.notes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.notes li { display: grid; grid-template-columns: 32px 1fr; gap: 8px; background: var(--surface); border-radius: 14px; padding: 22px; font-size: 16px; color: var(--text); }

/* Wide/full media breakout on desktop */
@media (min-width: 1100px) {
  .media.full { margin-left: calc(-200px - 72px); }
}

.next-case { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; min-height: 72vh;
  background: #000; color: #fff; text-align: center; position: relative; overflow: hidden; padding: 80px 20px; }
.next-case .label { font-size: 14px; letter-spacing: .08em; text-transform: uppercase; opacity: .7; }
.next-case .title { position: relative; z-index: 2; }
.next-case .peek { position: absolute; left: 50%; top: 100%; width: 420px; max-width: 80vw; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 12px;
  transform: translateX(-50%); transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.next-case:hover .peek { transform: translate(-50%, -112%); }

/* ---------- About ---------- */
.about-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 320px; gap: 48px; align-items: start; padding: clamp(80px, 12vh, 140px) 0 0; }
.about-intro .copy { font-size: 19px; color: var(--text); }
.about-intro .copy p + p { margin-top: 1em; }
.about-intro img { width: 100%; height: auto; aspect-ratio: 9 / 10; object-fit: cover; border-radius: 14px; background: var(--surface); }
.about-quote { padding: 160px 0 0; }
.about-quote blockquote { font-size: clamp(28px, 3.2vw, 44px); line-height: 1.15; letter-spacing: -0.035em; max-width: 900px; }
.about-quote cite { display: block; margin-top: 20px; font-style: normal; color: var(--muted); }
.about-block { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 48px; padding-top: 140px; }
.about-block.last { padding-bottom: 160px; }
.rows { border-top: 1px solid var(--fg); }
.row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 4px 32px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.row .h4 { grid-row: span 3; }
.row p { color: var(--text); font-size: 16px; }
.row p + p { color: var(--muted); }

/* ---------- Contact ---------- */
.contact { padding: clamp(80px, 12vh, 140px) 0 160px; }
.contact .lead { font-size: 22px; line-height: 1.4; letter-spacing: -0.02em; max-width: 620px; margin-top: 28px; color: var(--text); }
.contact-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 720px; margin-top: 64px; }
.contact-form label { display: grid; gap: 8px; font-size: 14px; font-weight: 500; }
.contact-form label.full { grid-column: 1 / -1; }
.contact-form input, .contact-form textarea { font: inherit; font-size: 16px; color: var(--fg); background: var(--surface); border: 1px solid transparent;
  border-radius: 10px; padding: 14px 16px; outline: none; transition: border-color .2s, background .2s; width: 100%; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--fg); background: #fff; }
.contact-form textarea { min-height: 200px; resize: vertical; }
.contact-form button { grid-column: 1 / -1; justify-self: start; font-size: 16px; font-weight: 500; color: #fff; background: #000; border: 0;
  border-radius: 999px; padding: 15px 32px; cursor: pointer; transition: opacity .2s; }
.contact-form button:hover { opacity: .85; }
.form-note { grid-column: 1 / -1; font-size: 14px; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 72px 0 56px; }
.site-footer .inner { width: min(var(--maxw), 100% - 2 * var(--gutter)); margin-inline: auto; }
.site-footer .cta { font-size: clamp(32px, 4vw, 56px); line-height: 1.05; letter-spacing: -0.045em; font-weight: 500; display: inline-block; }
.site-footer .cta::after { content: " →"; transition: margin .25s; }
.site-footer .cta:hover::after { margin-left: 8px; }
.footer-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: 56px; font-size: 16px; }
.footer-cols h3 { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; font-weight: 500; color: var(--muted); margin-bottom: 12px; }
.footer-cols a { display: block; max-width: 100%; width: fit-content; line-height: 1.7; overflow-wrap: anywhere; }
.footer-cols a:hover { text-decoration: underline; text-underline-offset: 3px; }
.case-page .site-footer { border-top: 0; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .caret { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Tablet ---------- */
@media (max-width: 1099px) {
  .cs-body { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 80px; }
  .toc { display: none; }
  .about-intro { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .about-intro .display { grid-column: 1 / -1; }
  .persona { grid-template-columns: minmax(0, 1fr); }
  .persona-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Mobile ---------- */
@media (max-width: 760px) {
  :root { --gutter: 20px; --header: 68px; }
  body { font-size: 17px; }
  .brand { font-size: 17px; }
  .menu-btn { width: 46px; height: 46px; }
  .menu-btn span { left: 12px; width: 22px; }
  .menu-btn span:nth-child(1) { top: 19px; }
  .menu-btn span:nth-child(2) { top: 26px; }
  body.menu-open .menu-btn span { top: 22.5px; }
  .lang { height: 36px; min-width: 44px; padding: 0 12px; }
  .menu-panel { padding: 40px 32px; }
  .menu-panel a { font-size: 40px; }
  .typed-line { white-space: normal; }
  .intro { font-size: 17px; margin-top: 32px; }
  .projects { gap: 64px; }
  .thumb { aspect-ratio: 4 / 3; border-radius: 12px; }
  .project-meta { grid-template-columns: 36px 1fr; gap: 6px 12px; }
  .project-title { font-size: 24px; }
  .project-outcome { grid-column: 2; text-align: left; font-size: 15px; }
  .approach { padding-top: 112px; }
  .pillars, .cards3, .cards4, .numbered, .tradeoff, .quotes, .heuristics, .trees.n2, .compare, .split, .stories, .notes, .persona-cols { grid-template-columns: minmax(0, 1fr); }
  .trees.n1 .tree > li > ul { grid-template-columns: minmax(0, 1fr); }
  .heuristics { gap: 0; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat, .stat + .stat { padding: 20px 16px 20px 0; border-left: 0; }
  .stat:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line); }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .cs-head { padding-top: 56px; }
  .cs-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 40px; }
  .cs-cover img, .cs-video video { border-radius: 12px; }
  .cs-section + .cs-section { margin-top: 96px; }
  .block + .block { margin-top: 36px; }
  .card, .quote-card, .option, .story, .tree-fig, .flow { padding: 22px; }
  .persona-id, .persona-cols { padding: 24px; }
  .phones { padding: 20px 12px; gap: 8px; }
  .phone { border-width: 5px; border-radius: 22px; }
  .about-intro { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .about-intro .copy { font-size: 17px; }
  .about-intro img { max-width: 420px; }
  .about-quote { padding-top: 112px; }
  .about-block { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 96px; }
  .row { grid-template-columns: minmax(0, 1fr); }
  .row .h4 { grid-row: auto; }
  .contact-form { grid-template-columns: minmax(0, 1fr); margin-top: 48px; }
  .contact .lead { font-size: 19px; }
  .footer-cols { grid-template-columns: minmax(0, 1fr); row-gap: 32px; }
  .next-case { min-height: 60vh; }
}

/* ---------- Legal ---------- */
.legal { padding: clamp(80px, 12vh, 140px) 0 160px; }
.legal .prose { margin-top: 48px; }
.legal h2 { font-size: 22px; font-weight: 500; letter-spacing: -0.02em; margin: 48px 0 12px; color: var(--fg); }
.legal .updated { margin-top: 20px; color: var(--muted); font-size: 15px; }
.footer-legal { margin-top: 40px; font-size: 14px; color: var(--muted); }
.footer-legal a { text-decoration: underline; text-underline-offset: 3px; }
