/* OnlyConversion portfolio, in the brand system "Noir Ledger" (style guide v1.1).
   Every section is either .dark (espresso) or .light (white); colours come from the tone tokens. */

/* ₹, arrows, minus, × and dashes: Google Fonts does not serve these glyphs, so they come from tiny local copies of the same fonts */
@font-face { font-family: "Source Serif 4"; font-weight: 600; font-style: normal; font-display: swap; src: url("/fonts/SourceSerif4-600-symbols.otf") format("opentype"); unicode-range: U+00D7, U+2013-2014, U+20B9, U+2190-2193, U+2212; }
@font-face { font-family: "Source Serif 4"; font-weight: 700; font-style: normal; font-display: swap; src: url("/fonts/SourceSerif4-700-symbols.otf") format("opentype"); unicode-range: U+00D7, U+2013-2014, U+20B9, U+2190-2193, U+2212; }
@font-face { font-family: "Inter"; font-weight: 400; font-style: normal; font-display: swap; src: url("/fonts/Inter-400-symbols.otf") format("opentype"); unicode-range: U+00D7, U+2013-2014, U+20B9, U+2190-2193, U+2212; }
@font-face { font-family: "Inter"; font-weight: 500; font-style: normal; font-display: swap; src: url("/fonts/Inter-500-symbols.otf") format("opentype"); unicode-range: U+00D7, U+2013-2014, U+20B9, U+2190-2193, U+2212; }
@font-face { font-family: "Inter"; font-weight: 600; font-style: normal; font-display: swap; src: url("/fonts/Inter-600-symbols.otf") format("opentype"); unicode-range: U+00D7, U+2013-2014, U+20B9, U+2190-2193, U+2212; }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-style: normal; font-display: swap; src: url("/fonts/IBMPlexMono-500-symbols.otf") format("opentype"); unicode-range: U+00D7, U+2013-2014, U+20B9, U+2190-2193, U+2212; }
@font-face { font-family: "IBM Plex Mono"; font-weight: 600; font-style: normal; font-display: swap; src: url("/fonts/IBMPlexMono-600-symbols.otf") format("opentype"); unicode-range: U+00D7, U+2013-2014, U+20B9, U+2190-2193, U+2212; }

:root, .light {
  --bg: #FAFAF8; --surface: #FFFFFF; --line: #E4E2DE; --hair: rgba(23, 17, 14, .12);
  --text: #17110E; --muted: #5F5A55; --gold: #7A5A16; --shot: #F1F0ED;
  --btn: #CDA85F; --btn-text: #17110E; --btn-border: #B08D45; --btn-fill: #17110E; --btn-fill-text: #CDA85F; --btn-press: #A9853D;
  --ghost-line: #7A5A16; --ghost-text: #7A5A16; --ghost-fill: #17110E; --ghost-fill-text: #FAFAF8;
  --leak: #B4432A; --fix-text: #7A5A16; --fix-bg: #F6EFDD;
  --spot: rgba(205, 168, 95, .18); --focus: #17110E; --grid: #EDEBE7;
}
.dark {
  --bg: #17110E; --surface: #201915; --line: #3A2D26; --hair: rgba(205, 168, 95, .30);
  --text: #F1E9DE; --muted: #B3A392; --gold: #CDA85F; --shot: #201915;
  --btn: #CDA85F; --btn-text: #17110E; --btn-border: #CDA85F; --btn-fill: #F1E9DE; --btn-fill-text: #17110E; --btn-press: #B8934A;
  --ghost-line: rgba(205, 168, 95, .5); --ghost-text: #CDA85F; --ghost-fill: #CDA85F; --ghost-fill-text: #17110E;
  --leak: #E6A493; --fix-text: #CDA85F; --fix-bg: rgba(205, 168, 95, .12);
  --spot: rgba(205, 168, 95, .14); --focus: #F1E9DE; --grid: rgba(241, 233, 222, .045);
}
.dark, .light { background: var(--bg); color: var(--text); }

:root {
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --wrap: 1120px;
  --gut: 56px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}
@media (max-width: 720px) { :root { --gut: 20px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--sans); font-size: 16px; line-height: 1.6;
  font-optical-sizing: auto; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
button { font: inherit; }
::selection { background: #CDA85F; color: #17110E; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

.wrap { max-width: calc(var(--wrap) + 2 * var(--gut)); margin: 0 auto; padding-left: var(--gut); padding-right: var(--gut); }
.gridbg { background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 48px 48px; background-position: -1px -1px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 300; background: #CDA85F; color: #17110E; padding: 10px 16px; font: 600 13px var(--sans); border-radius: 3px; }
.skip:focus { left: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* type */
.serif { font-family: var(--serif); font-weight: 600; }
.mono { font: 500 13px var(--mono); }
.accent { color: var(--gold); }
.h-section { font-family: var(--serif); font-weight: 600; font-size: clamp(30px, 4.4vw, 52px); line-height: 1.05; letter-spacing: -0.02em; }
.label { font: 500 13px var(--mono); color: var(--gold); }
.muted { color: var(--muted); }

/* buttons: gold, with the Fill hover growing from the cursor */
.btn {
  position: relative; overflow: hidden; isolation: isolate; display: inline-flex; align-items: center; gap: 10px;
  font: 600 13.5px/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
  padding: 17px 24px; border-radius: 3px; border: 1px solid transparent; cursor: pointer;
  transition: color .3s .05s, border-color .3s, background-color .25s;
}
.btn::before { content: ""; position: absolute; z-index: -1; left: var(--mx, 50%); top: var(--my, 50%); width: 260%; aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -50%) scale(0); transition: transform .6s var(--ease); pointer-events: none; }
.btn-p { background: var(--btn); color: var(--btn-text); border-color: var(--btn-border); }
.btn-p::before { background: var(--btn-fill); }
.btn-p::after { content: "→"; font-size: 1.15em; letter-spacing: 0; transition: transform .3s var(--ease); }
.btn-g { background: transparent; color: var(--ghost-text); border-color: var(--ghost-line); }
.btn-g::before { background: var(--ghost-fill); }
.btn.sm { padding: 12px 16px; font-size: 12px; }
.btn.sm::after { content: none; }
@media (hover: hover) {
  .btn:hover::before { transform: translate(-50%, -50%) scale(1); }
  .btn-p:hover { color: var(--btn-fill-text); border-color: var(--btn-fill); }
  .btn-p:hover::after { transform: translateX(5px); }
  .btn-g:hover { color: var(--ghost-fill-text); border-color: var(--ghost-fill); }
}
.btn-p:active { background: var(--btn-press); border-color: var(--btn-press); }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* cursor spotlight on content boxes */
.spot { position: relative; isolation: isolate; }
.spot::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .35s; background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%), var(--spot), transparent 70%); }
@media (hover: hover) { .spot:hover::before { opacity: 1; } }

/* header */
.site-header { border-bottom: 1px solid rgba(205, 168, 95, .22); position: relative; z-index: 20; }
.site-header .wrap { display: flex; align-items: center; gap: 32px; padding-top: 18px; padding-bottom: 18px; }
.brand { display: flex; align-items: center; gap: 11px; font: 700 21px/1 var(--serif); letter-spacing: -0.02em; color: var(--text); }
.brand b { color: var(--gold); font-weight: 700; }
.brand img { height: 22px; width: auto; }
.brand-tag { font: 500 12px var(--mono); color: var(--muted); border-left: 1px solid var(--line); padding-left: 12px; margin-left: 2px; letter-spacing: 0; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { position: relative; font: 500 14px var(--sans); color: var(--muted); transition: color .3s; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav a:hover { color: var(--text); }
.nav a:hover::after { transform: scaleX(1); }
.menu-btn { display: none; margin-left: auto; background: transparent; border: 1px solid var(--line); color: var(--text); padding: 10px 14px; font: 600 12px var(--sans); letter-spacing: .06em; text-transform: uppercase; border-radius: 3px; cursor: pointer; }
.menu-btn:hover { border-color: var(--gold); }

@media (max-width: 900px) {
  .site-header .wrap { gap: 16px; flex-wrap: wrap; }
  .brand-tag { display: none; }
  .menu-btn { display: block; }
  .header-cta { display: none; }
  .nav { display: none; width: 100%; flex-direction: column; gap: 0; margin: 8px 0 0; border-top: 1px solid var(--line); }
  .nav a { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
  .nav a::after { content: none; }
  .nav a.nav-cta { color: var(--gold); font-weight: 600; }
  .site-header.open .nav { display: flex; }
}
@media (min-width: 901px) { .nav a.nav-cta { display: none; } }

/* hero */
.hero-body { padding-top: clamp(64px, 10vw, 120px); }
.kicker { font: 500 13px var(--mono); color: var(--gold); }
.hero-title { font-family: var(--serif); font-weight: 600; font-size: clamp(42px, 7.6vw, 92px); line-height: .98; letter-spacing: -0.025em; margin-top: 28px; }
.hero-title > span { display: block; }
.hero-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); gap: 64px; align-items: end; margin-top: 48px; padding-bottom: clamp(56px, 8vw, 88px); }
.hero-lead { font-size: clamp(17px, 1.6vw, 19px); line-height: 1.6; max-width: 46ch; margin-bottom: 32px; color: var(--muted); }
.hero-svg { width: 100%; height: auto; display: block; }
.hero-svg .drift { animation: ocdrift 6s linear infinite alternate; }
.hero-svg .flow { animation: ocflow 2.6s linear infinite; }
.hero-svg .pulse { animation: ocpulse 2.4s ease-in-out infinite; }
@keyframes ocflow { from { stroke-dashoffset: 240; } to { stroke-dashoffset: 0; } }
@keyframes ocpulse { 0%, 100% { opacity: .2; } 50% { opacity: 1; } }
@keyframes ocdrift { from { transform: translateX(0); } to { transform: translateX(-34px); } }
@media (max-width: 720px) { .hero-grid { gap: 44px; } }

.facts { border-top: 1px solid var(--hair); }
.facts-grid { display: grid; grid-template-columns: repeat(3, 1fr); max-width: calc(var(--wrap) + 2 * var(--gut)); margin: 0 auto; padding: 0 var(--gut); }
.fact { padding: 32px 28px 36px 0; }
.fact + .fact { padding-left: 28px; border-left: 1px solid var(--hair); }
.fact-v { font: 700 clamp(40px, 4.6vw, 60px)/1 var(--serif); letter-spacing: -0.02em; }
.fact-l { font-size: 14.5px; color: var(--muted); margin-top: 12px; }
@media (max-width: 760px) {
  .facts-grid { grid-template-columns: 1fr; }
  .fact, .fact + .fact { padding: 24px 0; border-left: 0; }
  .fact + .fact { border-top: 1px solid var(--hair); }
}

/* section intro: heading left, copy right */
.intro { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 56px; align-items: end; }
.intro p { font-size: clamp(16.5px, 1.6vw, 18.5px); line-height: 1.6; color: var(--muted); max-width: 46ch; }
@media (max-width: 720px) { .intro { gap: 20px; } }

.pad-section { padding-top: clamp(56px, 8vw, 108px); padding-bottom: clamp(56px, 8vw, 108px); }

/* work */
.work-top { padding-top: clamp(56px, 8vw, 108px); padding-bottom: 24px; }
.work-top h2 { max-width: 17ch; }
.jumps { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 44px; }
.jump { display: flex; gap: 10px; align-items: center; border: 1px solid var(--line); background: var(--surface); color: var(--text); padding: 11px 16px; border-radius: 3px; font: 600 14px var(--sans); transition: border-color .3s, transform .3s var(--ease); }
.jump span { font: 500 12.5px var(--mono); color: var(--gold); }
.jump:hover { border-color: var(--gold); }

.chapter { padding-top: 64px; padding-bottom: 40px; scroll-margin-top: 20px; }
.chapter-head { border-top: 1.5px solid var(--text); padding-top: 28px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 32px; align-items: end; margin-bottom: 40px; }
.chapter-title { font-family: var(--serif); font-weight: 600; font-size: clamp(32px, 4.8vw, 58px); line-height: 1.02; letter-spacing: -0.02em; margin-top: 14px; }
.chapter-title .muted { display: block; }
.chapter-count { font: 500 13px var(--mono); color: var(--muted); }
@media (max-width: 720px) { .chapter { padding-top: 48px; } .chapter-head { gap: 14px; margin-bottom: 28px; } }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 16px; }
.card {
  background: var(--card-bg, var(--surface)); color: var(--text); border: 1px solid var(--line); border-radius: 3px; overflow: hidden;
  display: flex; flex-direction: column; transition: transform .3s var(--ease), border-color .3s;
}
.card.dark { --card-bg: var(--bg); }
@media (hover: hover) { .card:hover { transform: translateY(-3px); border-color: var(--gold); } }
.card-meta { padding: 24px 24px 0; display: flex; align-items: center; gap: 12px; font: 500 13px var(--mono); color: var(--muted); }
.card-meta .num { color: var(--gold); }
.card-meta .card-ind { margin-left: auto; color: var(--fix-text); background: var(--fix-bg); padding: 4px 9px; border-radius: 3px; white-space: nowrap; }
.card-body { padding: 20px 24px 0; }
.card h4 { font-family: var(--serif); font-weight: 600; font-size: 28px; line-height: 1.08; letter-spacing: -0.015em; margin-bottom: 12px; }
.card-body p { font-size: 15.5px; line-height: 1.6; color: var(--muted); max-width: 40ch; }
.card-rule { margin: 26px 24px 0; border-top: 1px solid var(--line); }
.card-kpi { padding: 20px 24px 24px; display: flex; align-items: flex-end; gap: 20px; }
.kpi-v { font: 700 48px/.95 var(--serif); letter-spacing: -0.02em; color: var(--gold); font-variant-numeric: lining-nums; }
.kpi-l { font-size: 14px; color: var(--muted); margin-top: 8px; }
.card-open { margin-left: auto; font: 600 12px var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); white-space: nowrap; transition: color .3s, transform .3s var(--ease); }
.card:hover .card-open { color: var(--gold); transform: translateX(3px); }
.card-shot { margin-top: auto; border-top: 1px solid var(--line); background: var(--shot); height: 190px; overflow: hidden; }
.card-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top left; transition: transform .6s var(--ease); }
.card:hover .card-shot img { transform: scale(1.03); }
.cover-stat { height: 100%; display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: 0 24px; }
.cover-stat .row { display: flex; align-items: baseline; gap: 16px; }
.cover-stat .was { font: 700 40px/1 var(--serif); color: var(--muted); opacity: .6; text-decoration: line-through; text-decoration-thickness: 2px; }
.cover-stat .now { font: 700 40px/1 var(--serif); color: var(--gold); }
.cover-stat .arr { color: var(--muted); }
.cover-stat .lab { font-size: 14px; color: var(--muted); }
@media (max-width: 420px) {
  .card-meta, .card-body, .card-kpi { padding-left: 20px; padding-right: 20px; }
  .card-rule { margin-left: 20px; margin-right: 20px; }
  .card h4 { font-size: 26px; }
  .kpi-v { font-size: 42px; }
}

/* grids drawn with borders, so a short last row never shows a grey block */
.cells { display: grid; border-top: 1px solid var(--line); border-left: 1px solid var(--line); background: var(--surface); }
.cells > * { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cells-3 { grid-template-columns: repeat(auto-fit, minmax(max(240px, 30%), 1fr)); }
.cells-3s { grid-template-columns: repeat(auto-fit, minmax(max(220px, 30%), 1fr)); }
.cells-min { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
@media (max-width: 600px) { .cells-3, .cells-3s { grid-template-columns: 1fr; } }

.minor { margin-top: 44px; }
.minor .label { margin-bottom: 16px; }
.minor-item { padding: 24px 22px 26px; display: flex; flex-direction: column; gap: 10px; }
.minor-item .s { font: 500 13px var(--mono); color: var(--muted); }
.minor-item .n { font: 600 23px/1.1 var(--serif); letter-spacing: -0.01em; }
.minor-item p { font-size: 15px; line-height: 1.55; color: var(--muted); }
.minor-item .m { display: flex; align-items: baseline; gap: 12px; margin-top: 4px; flex-wrap: wrap; }
.minor-item .m b { font: 700 32px/1 var(--serif); color: var(--gold); }
.minor-item .m span { font-size: 14px; color: var(--muted); }
.minor-item img { width: 100%; border: 1px solid var(--line); border-radius: 3px; }

/* proof */
.proof .intro { margin-bottom: 56px; }
.proof h2 { max-width: 16ch; }
.proof .intro p { margin-bottom: 18px; }
.badge { display: inline-flex; align-items: center; gap: 10px; font: 500 13px var(--mono); color: var(--fix-text); background: var(--fix-bg); padding: 6px 11px; border-radius: 3px; }
.proof-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(max(260px, 30%), 1fr)); gap: 14px; }
.proof-cell { display: grid; gap: 10px; align-content: start; background: var(--surface); border: 1px solid var(--line); border-radius: 3px; padding: 28px 24px; transition: border-color .3s; }
.proof-cell:hover { border-color: var(--hair); }
.proof-cell .v { font: 700 clamp(44px, 5vw, 64px)/.95 var(--serif); letter-spacing: -0.02em; color: var(--gold); font-variant-numeric: lining-nums; }
.proof-cell .l { font: 600 15px var(--sans); margin-top: 6px; }
.proof-cell .src { font-size: 14.5px; color: var(--muted); line-height: 1.5; }
.proof-cell .go { margin-top: 6px; font: 600 12px var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); transition: color .3s; }
.proof-cell:hover .go { color: var(--gold); }
@media (max-width: 600px) { .proof-grid { grid-template-columns: 1fr; } .proof .intro { margin-bottom: 36px; } }

/* approach */
.approach .intro { margin-bottom: 56px; }
.approach h2 { max-width: 15ch; }
.stages { border-top: 1.5px solid var(--text); }
.stage { border-bottom: 1px solid var(--line); padding: 28px 4px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 28px; align-items: baseline; transition: background .2s; }
.stage:hover { background: #F6EFDD55; }
.stage-h { display: flex; align-items: baseline; gap: 20px; }
.stage-h .n { font: 500 13px var(--mono); color: var(--gold); }
.stage-h h3 { font: 600 clamp(26px, 3vw, 36px)/1.05 var(--serif); letter-spacing: -0.02em; }
.stage p { font-size: 17px; line-height: 1.6; color: var(--muted); max-width: 48ch; }
@media (max-width: 720px) { .stage { gap: 10px; padding: 22px 4px; } .approach .intro { margin-bottom: 36px; } }

/* services */
.services h2 { max-width: 18ch; margin-bottom: 48px; }
.svc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 14px; }
.svc { background: var(--surface); border: 1px solid var(--hair); border-radius: 3px; padding: 26px 22px 28px; display: grid; gap: 10px; align-content: start; transition: border-color .3s, transform .3s var(--ease); }
@media (hover: hover) { .svc:hover { transform: translateY(-3px); border-color: var(--gold); } }
.svc .n { font: 500 13px var(--mono); color: var(--gold); }
.svc h3 { font: 600 24px/1.05 var(--serif); letter-spacing: -0.015em; }
.svc p { font-size: 15px; line-height: 1.55; color: var(--muted); }

/* industries, tools, clients */
.lists { padding-top: clamp(56px, 8vw, 96px); padding-bottom: clamp(56px, 8vw, 96px); }
.lists .label { margin-bottom: 20px; }
.lists .label + .cells { margin-bottom: 64px; }
.lists .cells:last-child { margin-bottom: 0; }
.ind { padding: 22px 22px; font: 600 22px/1.15 var(--serif); letter-spacing: -0.01em; transition: background .2s; }
.ind:hover { background: #F6EFDD66; }
.tool { padding: 20px 22px; }
.tool b { display: block; font-size: 16.5px; font-weight: 600; }
.tool span { display: block; font-size: 14px; color: var(--muted); margin-top: 4px; }
.client { padding: 20px 22px; }
.client b { display: block; font: 600 20px/1.15 var(--serif); letter-spacing: -0.01em; }
.client span { display: block; font: 500 12.5px var(--mono); color: var(--muted); margin-top: 6px; }
.rule-top { border-top: 1px solid var(--line); }

/* about */
.about-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 64px; align-items: start; }
.about h2 { max-width: 17ch; }
.about p { font-size: 17px; line-height: 1.65; color: var(--muted); margin-bottom: 20px; }
.about p:first-child { font-size: 18.5px; color: var(--text); }
.about p:last-child { margin-bottom: 0; }
@media (max-width: 720px) { .about-grid { gap: 28px; } }

/* contact: a dark booking card that stays dark on the white section */
.contact .wrap { padding-top: clamp(56px, 8vw, 108px); padding-bottom: clamp(56px, 8vw, 108px); }
.booking { border-radius: 6px; padding: clamp(28px, 5vw, 64px); display: grid; gap: 44px; box-shadow: 0 30px 60px -32px rgba(23, 17, 14, .55); }
.booking h2 { font: 600 clamp(34px, 5.6vw, 72px)/1.02 var(--serif); letter-spacing: -0.025em; }
.booking h2 span { display: block; }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 40px; align-items: end; padding-top: 32px; border-top: 1px solid var(--hair); }
.contact-lines { font-size: 16px; line-height: 2; }
.contact-lines a { color: var(--text); border-bottom: 1px solid transparent; transition: border-color .3s, color .3s; overflow-wrap: anywhere; }
.contact-lines a:hover { color: var(--gold); border-bottom-color: var(--gold); }
.contact-lines .loc { color: var(--muted); }

/* footer */
.site-footer .wrap { padding-top: 56px; padding-bottom: 56px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 40px; }
.foot-tag { font-size: 15px; color: var(--muted); margin-top: 14px; line-height: 1.6; }
.foot-col { font-size: 15px; line-height: 2.1; color: var(--muted); }
.foot-col .label { margin-bottom: 8px; }
.foot-col a { display: block; color: var(--muted); transition: color .3s; }
.foot-col a:hover { color: var(--text); }
.foot-note { font-size: 13.5px; color: var(--muted); line-height: 1.7; }

/* case study: shared by the drawer and the standalone page */
.case-bar { position: sticky; top: 0; z-index: 5; padding: 14px var(--gut); display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); }
.case-bar .mono { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.case-close { margin-left: auto; flex: none; border: 1px solid var(--ghost-line); background: transparent; color: var(--ghost-text); padding: 10px 16px; font: 600 12px var(--sans); letter-spacing: .06em; text-transform: uppercase; border-radius: 3px; cursor: pointer; transition: background .25s, color .25s, border-color .25s; }
.case-close + .case-close { margin-left: 0; }
.case-close:hover { background: var(--ghost-fill); border-color: var(--ghost-fill); color: var(--ghost-fill-text); }
.case-hero { padding: 56px var(--gut) 64px; }
.case-hero h1, .case-hero h2 { font: 600 clamp(32px, 5vw, 58px)/1.04 var(--serif); letter-spacing: -0.022em; margin: 20px 0 18px; max-width: 22ch; }
.case-hero p { font-size: clamp(16.5px, 1.6vw, 18.5px); line-height: 1.6; max-width: 54ch; color: var(--muted); }
.case-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(max(200px, 24%), 1fr)); border-bottom: 1px solid var(--line); background: var(--surface); }
.case-metrics > div { padding: 32px 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: -1px; container-type: inline-size; }
.case-metrics .v { font: 700 34px/1 var(--serif); font-size: clamp(26px, 15cqi, 44px); letter-spacing: -0.02em; color: var(--gold); white-space: nowrap; font-variant-numeric: lining-nums; }
.case-metrics .l { font: 600 14.5px var(--sans); margin-top: 12px; }
.case-metrics .src { font-size: 13.5px; color: var(--muted); margin-top: 4px; line-height: 1.5; }
.case-block { padding: 64px var(--gut) 0; }
.case-block > .label { margin-bottom: 22px; }
.challenge { margin: 0; padding: 0; list-style: none; display: grid; gap: 16px; max-width: 62ch; }
.challenge li { font-size: 18px; line-height: 1.55; padding-left: 22px; border-left: 2px solid var(--leak); }
.appr { padding: 26px 22px; }
.appr .ah { font: 600 22px/1.15 var(--serif); letter-spacing: -0.01em; margin-bottom: 10px; }
.appr p { font-size: 15.5px; line-height: 1.6; color: var(--muted); }
.evidence { border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: var(--surface); box-shadow: 0 24px 48px -32px rgba(23, 17, 14, .35); }
.evidence-img { position: relative; background: var(--shot); }
.evidence-img img { width: 100%; }
.mark { position: absolute; background: #CDA85F; color: #17110E; font: 600 11px/1.2 var(--mono); padding: 3px 6px; border-radius: 2px; box-shadow: 0 2px 6px rgba(23, 17, 14, .25); }
.legend { border-top: 1px dashed #CFCBC4; padding: 20px 24px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 16px; }
.legend div { display: flex; gap: 10px; align-items: baseline; }
.legend .n { font: 600 12px var(--mono); color: var(--gold); }
.legend .t { font-size: 15px; line-height: 1.45; }
.ledger-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 14px; align-items: baseline; padding: 18px 24px; border-bottom: 1px solid var(--line); }
.ledger-row:last-child { border-bottom: 0; }
.ledger-row .l { font: 500 13px var(--mono); color: var(--muted); }
.ledger-row .a { font: 700 26px var(--serif); color: var(--muted); opacity: .6; text-decoration: line-through; }
.ledger-row .b { font: 700 30px var(--serif); color: var(--gold); }
.ledger-row .d { font: 500 13px var(--mono); color: var(--text); }
.case-note { font-size: 16px; line-height: 1.65; color: var(--muted); margin-top: 20px; max-width: 64ch; }
.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 24px; margin-top: 40px; }
.shots figure { margin: 0; }
.shots .frame { border: 1px solid var(--line); border-radius: 3px; overflow: hidden; background: var(--shot); }
.shots figcaption { font-size: 14px; color: var(--muted); margin-top: 10px; line-height: 1.5; }
.zoom { display: block; cursor: zoom-in; }
.case-end { margin-top: 64px; padding: 56px var(--gut) 72px; }
.case-end .label { margin-bottom: 20px; }
.case-end p { font: 600 clamp(24px, 3vw, 34px)/1.2 var(--serif); letter-spacing: -0.015em; margin-bottom: 32px; max-width: 34ch; }
.case-next { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 24px; margin-top: 56px; border-top: 1px solid var(--hair); padding-top: 28px; }
.case-next a { display: block; padding: 4px 0; transition: color .3s; }
.case-next a:hover { color: var(--gold); }
.case-next .mono { color: var(--muted); display: block; margin-bottom: 8px; }
.case-next .serif { font-size: 26px; line-height: 1.15; }
@media (max-width: 720px) {
  .case-hero { padding-top: 40px; padding-bottom: 48px; }
  .case-block { padding-top: 48px; }
  .case-metrics > div { padding: 26px 20px; }
  .challenge li { font-size: 16.5px; }
  .mark { font-size: 9px; padding: 1px 3px; }
  .ledger-row { padding: 16px 18px; }
}
@media (max-width: 480px) { .case-bar .mono { display: none; } .case-close { padding: 10px 12px; } }

/* drawer */
.drawer {
  position: fixed; inset: 0 0 0 auto; margin: 0; padding: 0; border: 0;
  width: min(1100px, 100%); height: 100%; max-width: 100%; max-height: 100%;
  overflow-y: auto; overscroll-behavior: contain;
}
.drawer::backdrop { background: rgba(23, 17, 14, .62); }
.drawer[open] { animation: slide-in .45s var(--ease); }
.drawer[open]::backdrop { animation: fade-in .3s ease; }
.drawer.closing { animation: slide-out .3s ease forwards; }
.drawer.closing::backdrop { animation: fade-out .3s ease forwards; }
@keyframes slide-in { from { transform: translateX(60px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes slide-out { to { transform: translateX(60px); opacity: 0; } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes fade-out { to { opacity: 0; } }
html.locked { overflow: hidden; }

/* image zoom */
.lightbox { border: 0; padding: 0; margin: auto; max-width: 96vw; max-height: 94vh; background: transparent; overflow: visible; }
.lightbox::backdrop { background: rgba(23, 17, 14, .9); }
.lightbox img { max-width: 96vw; max-height: 88vh; width: auto; border-radius: 3px; background: #fff; }
.lightbox button { position: absolute; top: -50px; right: 0; border: 1px solid #CDA85F; background: #17110E; color: #CDA85F; padding: 9px 14px; font: 600 12px var(--sans); letter-spacing: .06em; text-transform: uppercase; border-radius: 3px; cursor: pointer; }
.lightbox button:hover { background: #CDA85F; color: #17110E; }

/* standalone case page */
.case-page .case-bar { position: relative; }
.case-page .case-bar, .case-page .case-hero, .case-page .case-block, .case-page .case-end {
  padding-left: max(var(--gut), calc((100% - 1100px) / 2 + var(--gut)));
  padding-right: max(var(--gut), calc((100% - 1100px) / 2 + var(--gut)));
}
.case-page .case-metrics { max-width: 1100px; margin: 0 auto; border-left: 1px solid var(--line); }
@media (max-width: 1100px) { .case-page .case-metrics { border-left: 0; } }

/* reveal on scroll (only when JS is running) */
.js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s var(--ease); }
.js [data-reveal].in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
