/* OnlyConversion portfolio. Tokens first, then sections in page order. */

:root {
  --ink: #201e1d;
  --ink-2: #2b2827;
  --paper: #f3f2f2;
  --surface: #eae9e9;
  --accent: #ec3013;
  --n200: #eae7e7;
  --n300: #d7d3d3;
  --n400: #bab6b6;
  --n500: #9b9797;
  --n700: #605d5d;
  --n800: #444141;
  --rule-dark: #403c3b;
  --line-dark: #4a4645;

  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Schibsted Grotesk", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;

  --wrap: 1400px;
  --gut: 40px;
  --ease: cubic-bezier(.2, .7, .3, 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(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--ink); }
h1, h2, h3, h4, p { margin: 0; }
button { font: inherit; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gut); padding-right: var(--gut); }
.dark { background: var(--ink); color: var(--paper); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 300; background: var(--accent); color: #fff; padding: 10px 16px; font-family: var(--mono); font-size: 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { left: 8px; color: #fff; }

/* type */
.serif { font-family: var(--serif); font-weight: 400; }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.accent { color: var(--accent); }
.h-section { font-family: var(--serif); font-weight: 400; font-size: clamp(38px, 5.4vw, 82px); line-height: 1; letter-spacing: -0.02em; }
.label { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--n700); font-weight: 400; }

/* buttons */
.btn {
  display: inline-block; padding: 17px 26px; font-family: var(--mono); font-size: 13px;
  letter-spacing: .1em; text-transform: uppercase; border: 1px solid transparent;
  transition: background .2s ease, color .2s ease, border-color .2s ease; white-space: nowrap;
}
.btn-red { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-red:hover { background: transparent; color: var(--accent); }
.btn-ghost-light { border-color: #605d5d; color: var(--paper); }
.btn-ghost-light:hover { border-color: var(--paper); color: var(--paper); }
.btn-ink { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-ink:hover { background: #fff; border-color: #fff; color: var(--ink); }
.btn-white-line { border-color: #fff; color: #fff; }
.btn-white-line:hover { background: #fff; color: var(--accent); }

/* header */
.site-header { border-bottom: 1px solid var(--rule-dark); position: relative; z-index: 20; }
.site-header .wrap { display: flex; align-items: center; gap: 36px; padding-top: 22px; padding-bottom: 22px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--serif); font-size: 26px; letter-spacing: -0.01em; color: var(--paper); line-height: 1; }
.brand:hover { color: var(--paper); }
.brand img { width: 34px; height: auto; }
.brand-tag { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--n500); border-left: 1px solid var(--rule-dark); padding-left: 12px; margin-left: 2px; }
.nav { display: flex; gap: 30px; margin-left: auto; }
.nav a { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--n300); }
.nav a:hover { color: var(--accent); }
.header-cta { padding: 12px 20px; font-size: 12px; }
.menu-btn { display: none; margin-left: auto; background: transparent; border: 1px solid #605d5d; color: var(--paper); padding: 10px 14px; font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; cursor: pointer; }
.menu-btn:hover { border-color: var(--paper); }

@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(--rule-dark); }
  .nav a { padding: 16px 0; border-bottom: 1px solid var(--rule-dark); font-size: 13px; }
  .nav a.nav-cta { color: var(--accent); }
  .site-header.open .nav { display: flex; }
}
@media (min-width: 901px) { .nav a.nav-cta { display: none; } }

/* hero */
.hero-body { padding-top: 96px; }
.kicker { display: flex; align-items: center; gap: 16px; font-family: var(--mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--n500); }
.kicker::before { content: ""; width: 34px; height: 1px; background: var(--accent); flex: none; }
.hero-title { font-family: var(--serif); font-weight: 400; font-size: clamp(52px, 10.2vw, 158px); line-height: .92; letter-spacing: -0.025em; margin-top: 40px; }
.hero-title > span { display: block; }
.hero-title > span:first-child { max-width: 15ch; }
.hero-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); gap: 72px; align-items: end; margin-top: 64px; padding-bottom: 76px; }
.hero-lead { font-size: clamp(18px, 2vw, 23px); line-height: 1.5; max-width: 40ch; margin-bottom: 40px; color: #ddd7d3; }
.btn-row { display: flex; gap: 16px; flex-wrap: wrap; }
.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-body { padding-top: 64px; }
  .hero-title { margin-top: 28px; }
  .hero-grid { gap: 48px; margin-top: 44px; padding-bottom: 56px; }
}

.facts { border-top: 1px solid var(--rule-dark); }
.facts-grid { max-width: var(--wrap); margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); }
.fact { padding: 40px var(--gut) 44px; border-right: 1px solid var(--rule-dark); }
.fact:last-child { border-right: 0; }
.fact-v { font-family: var(--serif); font-size: clamp(44px, 5vw, 68px); line-height: 1; letter-spacing: -0.02em; }
.fact-l { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--n500); margin-top: 16px; }
@media (max-width: 760px) {
  .facts-grid { grid-template-columns: 1fr; }
  .fact { border-right: 0; border-bottom: 1px solid var(--rule-dark); padding: 30px var(--gut) 32px; }
  .fact:last-child { border-bottom: 0; }
}

/* section intro: heading left, copy right */
.intro { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 64px; align-items: end; }
.intro p { font-size: 18px; line-height: 1.55; color: var(--n800); max-width: 42ch; }
.dark .intro p { color: var(--n300); }
@media (max-width: 720px) { .intro { gap: 28px; } }

.pad-section { padding-top: 120px; padding-bottom: 120px; }
@media (max-width: 720px) { .pad-section { padding-top: 80px; padding-bottom: 80px; } }

/* work */
.work-top { padding-top: 120px; padding-bottom: 40px; }
@media (max-width: 720px) { .work-top { padding-top: 80px; } }
.work-top h2 { max-width: 17ch; }
.jumps { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 64px; }
.jump { border: 1px solid var(--ink); color: var(--ink); padding: 13px 20px; font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; display: flex; gap: 10px; transition: background .2s ease, color .2s ease; }
.jump span { opacity: .5; }
.jump:hover { background: var(--ink); color: var(--paper); }

.chapter { padding-top: 80px; padding-bottom: 60px; scroll-margin-top: 20px; }
.chapter-head { border-top: 2px solid var(--ink); padding-top: 32px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 40px; align-items: end; margin-bottom: 56px; }
.chapter-title { font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 5.8vw, 88px); line-height: .98; letter-spacing: -0.02em; margin-top: 20px; }
.chapter-title em { font-style: italic; color: var(--n700); }
@media (max-width: 720px) { .chapter { padding-top: 56px; } .chapter-head { gap: 20px; margin-bottom: 36px; } }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 28px; }
.card {
  --bg: var(--surface); --fg: var(--ink); --edge: var(--n300); --meta: var(--n700); --body: var(--n800); --shot: var(--n200);
  background: var(--bg); color: var(--fg); border: 1px solid var(--edge);
  display: flex; flex-direction: column; transition: transform .25s ease, border-color .25s ease;
}
.card.is-dark { --bg: var(--ink); --fg: var(--paper); --edge: var(--rule-dark); --meta: var(--n500); --body: var(--n300); --shot: var(--ink-2); }
.card:hover { transform: translateY(-4px); border-color: var(--accent); color: var(--fg); }
.card-meta { padding: 30px 30px 0; display: flex; align-items: center; gap: 14px; font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--meta); }
.card-meta .num { color: var(--accent); }
.card-meta .card-ind { margin-left: auto; border: 1px solid var(--edge); padding: 5px 10px; white-space: nowrap; }
.card-body { padding: 26px 30px 0; }
.card h4 { font-family: var(--serif); font-weight: 400; font-size: 34px; line-height: 1.05; letter-spacing: -0.015em; margin-bottom: 18px; }
.card-body p { font-size: 16px; line-height: 1.55; color: var(--body); max-width: 34ch; }
.card-rule { margin: 34px 30px 0; border-top: 1px solid var(--edge); }
.card-kpi { padding: 26px 30px 30px; display: flex; align-items: flex-end; gap: 20px; }
.kpi-v { font-family: var(--serif); font-size: 52px; line-height: 1; letter-spacing: -0.02em; color: var(--accent); }
.kpi-l { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--meta); margin-top: 10px; }
.card-open { margin-left: auto; font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--meta); white-space: nowrap; transition: color .2s ease; }
.card:hover .card-open { color: var(--accent); }
.card-shot { margin-top: auto; border-top: 1px solid var(--edge); 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: 14px; padding: 0 30px; }
.cover-stat .row { display: flex; align-items: baseline; gap: 18px; }
.cover-stat .was { font-family: var(--serif); font-size: 44px; line-height: 1; color: var(--n400); text-decoration: line-through; }
.card.is-dark .cover-stat .was { color: var(--n700); }
.cover-stat .now { font-family: var(--serif); font-size: 44px; line-height: 1; color: var(--accent); }
.cover-stat .arr { font-family: var(--mono); font-size: 13px; color: var(--n500); }
.cover-stat .lab { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--meta); }
@media (max-width: 420px) {
  .card-meta, .card-body, .card-kpi { padding-left: 22px; padding-right: 22px; }
  .card-rule { margin-left: 22px; margin-right: 22px; }
  .card h4 { font-size: 30px; }
  .kpi-v { font-size: 44px; }
}

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

.minor { margin-top: 56px; }
.minor .label { margin-bottom: 20px; }
.minor-item { background: var(--paper); padding: 28px 26px 30px; display: flex; flex-direction: column; gap: 12px; }
.minor-item .s { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--n700); }
.minor-item .n { font-family: var(--serif); font-size: 27px; line-height: 1.05; letter-spacing: -0.01em; }
.minor-item p { font-size: 15px; line-height: 1.5; color: var(--n800); }
.minor-item .m { display: flex; align-items: baseline; gap: 12px; margin-top: 6px; flex-wrap: wrap; }
.minor-item .m b { font-family: var(--serif); font-weight: 400; font-size: 36px; line-height: 1; color: var(--accent); }
.minor-item .m span { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--n700); }
.minor-item img { width: 100%; border: 1px solid var(--n300); }

/* proof */
.proof .intro { margin-bottom: 80px; }
.proof h2 { max-width: 16ch; }
.proof .intro p { margin-bottom: 20px; max-width: 44ch; }
.badge { display: inline-flex; align-items: center; gap: 12px; border: 1px solid var(--accent); padding: 11px 16px; font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.proof-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(max(260px, 30%), 1fr)); border-top: 1px solid var(--rule-dark); border-left: 1px solid var(--rule-dark); }
.proof-cell { display: block; background: var(--ink); color: var(--paper); padding: 44px 32px 40px; border-right: 1px solid var(--rule-dark); border-bottom: 1px solid var(--rule-dark); transition: background .25s ease; }
.proof-cell:hover { background: var(--ink-2); color: var(--paper); }
.proof-cell .v { font-family: var(--serif); font-size: clamp(46px, 5vw, 74px); line-height: 1; letter-spacing: -0.025em; color: var(--accent); }
.proof-cell .l { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; margin-top: 18px; }
.proof-cell .src { font-size: 15px; color: var(--n500); margin-top: 10px; line-height: 1.5; }
.proof-cell .go { display: inline-block; margin-top: 18px; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--n700); transition: color .2s ease; }
.proof-cell:hover .go { color: var(--accent); }
@media (max-width: 600px) { .proof-grid { grid-template-columns: 1fr; } .proof .intro { margin-bottom: 48px; } }

/* approach */
.approach .intro { margin-bottom: 76px; }
.approach h2 { max-width: 15ch; }
.stages { border-top: 1px solid var(--ink); }
.stage { border-bottom: 1px solid var(--ink); padding: 36px 4px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 32px; align-items: baseline; transition: background .2s ease, padding-left .2s ease; }
.stage:hover { background: var(--surface); padding-left: 20px; }
.stage-h { display: flex; align-items: baseline; gap: 22px; }
.stage-h .n { font-family: var(--mono); font-size: 13px; letter-spacing: .12em; color: var(--accent); }
.stage-h h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 3.6vw, 50px); line-height: 1; letter-spacing: -0.02em; }
.stage p { font-size: 18px; line-height: 1.5; color: var(--n800); max-width: 46ch; }
@media (max-width: 720px) { .stage { gap: 14px; padding: 28px 4px; } .approach .intro { margin-bottom: 48px; } }

/* services */
.rule-top { border-top: 1px solid var(--n300); }
.services h2 { max-width: 18ch; margin-bottom: 76px; }
.svc { background: var(--paper); padding: 40px 32px 44px; transition: background .25s ease, color .25s ease; }
.svc:hover { background: var(--ink); color: var(--paper); }
.svc .n { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; color: var(--accent); }
.svc h3 { font-family: var(--serif); font-weight: 400; font-size: 32px; line-height: 1.05; letter-spacing: -0.015em; margin: 20px 0 16px; }
.svc p { font-size: 16px; line-height: 1.55; max-width: 32ch; opacity: .78; }
@media (max-width: 720px) { .services h2 { margin-bottom: 44px; } }

/* industries, tools, clients */
.lists { padding-top: 110px; padding-bottom: 110px; }
.lists .label { margin-bottom: 40px; }
.lists .label + .cells { margin-bottom: 88px; }
.lists .cells:last-child { margin-bottom: 0; }
.ind { background: var(--paper); padding: 30px 28px; font-family: var(--serif); font-size: 28px; letter-spacing: -0.01em; line-height: 1.1; transition: background .2s ease; }
.ind:hover { background: var(--surface); }
.tool { background: var(--paper); padding: 26px 28px; }
.tool b { display: block; font-size: 18px; font-weight: 600; }
.tool span { display: block; font-family: var(--mono); font-size: 12px; color: var(--n700); margin-top: 8px; letter-spacing: .04em; }
.client { background: var(--paper); padding: 26px 28px; }
.client b { display: block; font-family: var(--serif); font-weight: 400; font-size: 25px; letter-spacing: -0.01em; line-height: 1.15; }
.client span { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--n500); margin-top: 8px; }
@media (max-width: 720px) { .lists { padding-top: 72px; padding-bottom: 72px; } .lists .label + .cells { margin-bottom: 64px; } }

/* about */
.about-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 72px; align-items: start; }
.about h2 { font-size: clamp(36px, 5vw, 74px); line-height: 1.02; max-width: 17ch; }
.about p { font-size: 18px; line-height: 1.55; color: var(--n300); margin-bottom: 22px; }
.about p:first-child { font-size: 19px; color: var(--paper); }
.about p:last-child { margin-bottom: 0; }
@media (max-width: 720px) { .about-grid { gap: 36px; } }

/* contact */
.contact { background: var(--accent); color: #fff; }
.contact .wrap { padding-top: 130px; padding-bottom: 130px; }
.contact h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(46px, 8.6vw, 132px); line-height: .95; letter-spacing: -0.025em; }
.contact h2 span { display: block; }
.contact h2 .l2 { color: var(--ink); margin-bottom: 64px; }
.contact h2 .l2 em { font-style: normal; color: #fff; }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 56px; align-items: end; }
.contact-lines { font-family: var(--mono); font-size: 17px; line-height: 2; letter-spacing: .02em; }
.contact-lines a { color: #fff; border-bottom: 1px solid transparent; transition: border-color .2s ease; overflow-wrap: anywhere; }
.contact-lines a:hover { border-bottom-color: #fff; color: #fff; }
.contact-lines .loc { color: var(--ink); }
.contact :focus-visible { outline-color: #fff; }
@media (max-width: 720px) {
  .contact .wrap { padding-top: 88px; padding-bottom: 88px; }
  .contact h2 .l2 { margin-bottom: 44px; }
  .contact-lines { font-size: 15px; }
}

/* footer */
.site-footer .wrap { padding-top: 64px; padding-bottom: 64px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 44px; }
.site-footer .brand { font-size: 26px; }
.site-footer .brand img { width: 40px; }
.foot-tag { font-size: 15px; color: var(--n500); margin-top: 14px; line-height: 1.6; }
.foot-col { font-size: 15px; line-height: 2.1; color: var(--n300); }
.foot-col .label { font-size: 11px; letter-spacing: .12em; margin-bottom: 10px; color: var(--n700); }
.foot-col a { display: block; color: var(--n300); }
.foot-col a:hover { color: var(--accent); }
.foot-note { font-size: 14px; color: var(--n700); line-height: 1.7; }

/* case study: shared by the drawer and the standalone page */
.case-bar { position: sticky; top: 0; z-index: 5; background: var(--ink); color: var(--paper); padding: 18px var(--gut); display: flex; align-items: center; gap: 18px; }
.case-bar .mono { color: var(--n500); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.case-close { margin-left: auto; flex: none; border: 1px solid #605d5d; background: transparent; color: var(--paper); padding: 10px 18px; font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; transition: background .2s ease, border-color .2s ease; }
.case-close + .case-close { margin-left: 0; }
.case-close:hover { background: var(--accent); border-color: var(--accent); color: var(--paper); }
.case-hero { background: var(--ink); color: var(--paper); padding: 64px var(--gut) 72px; }
.case-hero h1, .case-hero h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 5.6vw, 68px); line-height: 1.02; letter-spacing: -0.02em; margin: 26px 0 22px; max-width: 22ch; }
.case-hero p { font-size: 19px; line-height: 1.5; max-width: 52ch; color: var(--n300); }
.case-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(max(220px, 24%), 1fr)); border-bottom: 1px solid var(--n300); }
.case-metrics > div { background: var(--paper); padding: 40px 28px; border-right: 1px solid var(--n300); border-bottom: 1px solid var(--n300); margin-bottom: -1px; container-type: inline-size; }
.case-metrics .v { font-family: var(--serif); font-size: 34px; font-size: clamp(26px, 17cqi, 46px); line-height: 1; letter-spacing: -0.02em; color: var(--accent); white-space: nowrap; }
.case-metrics .l { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; margin-top: 16px; }
.case-metrics .src { font-size: 14px; color: var(--n700); margin-top: 8px; line-height: 1.5; }
.case-block { padding: 72px var(--gut) 0; }
.case-block > .label { margin-bottom: 28px; }
.challenge { margin: 0; padding: 0; list-style: none; display: grid; gap: 20px; max-width: 60ch; }
.challenge li { font-size: 19px; line-height: 1.5; padding-left: 26px; border-left: 2px solid var(--accent); }
.appr { background: var(--paper); padding: 32px 28px; }
.appr .ah { font-family: var(--serif); font-weight: 400; font-size: 24px; line-height: 1.15; margin-bottom: 14px; }
.appr p { font-size: 16px; line-height: 1.55; color: var(--n800); }
.evidence { border: 1px solid var(--ink); }
.evidence-img { position: relative; background: var(--surface); }
.evidence-img img { width: 100%; }
.mark { position: absolute; background: var(--accent); color: #fff; font-family: var(--mono); font-size: 11px; padding: 4px 7px; line-height: 1.2; }
.legend { border-top: 1px solid var(--ink); padding: 24px 28px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 20px; }
.legend div { display: flex; gap: 12px; align-items: baseline; }
.legend .n { font-family: var(--mono); font-size: 11px; color: var(--accent); }
.legend .t { font-size: 15px; line-height: 1.45; }
.ledger-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 16px; align-items: baseline; padding: 22px 28px; border-bottom: 1px solid var(--n300); }
.ledger-row:last-child { border-bottom: 0; }
.ledger-row .l { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--n700); }
.ledger-row .a { font-family: var(--serif); font-size: 30px; color: var(--n400); text-decoration: line-through; }
.ledger-row .b { font-family: var(--serif); font-size: 34px; color: var(--accent); }
.ledger-row .d { font-family: var(--mono); font-size: 12px; color: var(--n800); }
.case-note { font-size: 16px; line-height: 1.6; color: var(--n800); margin-top: 22px; max-width: 62ch; }
.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 28px; margin-top: 44px; }
.shots figure { margin: 0; }
.shots .frame { border: 1px solid var(--ink); background: var(--surface); }
.shots figcaption { font-size: 14px; color: var(--n700); margin-top: 12px; line-height: 1.5; }
.zoom { display: block; cursor: zoom-in; }
.case-end { margin-top: 72px; background: var(--ink); color: var(--paper); padding: 64px var(--gut) 80px; }
.case-end .label { margin-bottom: 26px; }
.case-end p { font-family: var(--serif); font-size: clamp(26px, 3.4vw, 40px); line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 40px; max-width: 34ch; }
.case-next { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 1px; margin-top: 64px; border-top: 1px solid var(--rule-dark); padding-top: 32px; }
.case-next a { color: var(--paper); display: block; padding: 8px 0; }
.case-next a:hover { color: var(--accent); }
.case-next .mono { color: var(--n500); display: block; margin-bottom: 10px; }
.case-next .serif { font-size: 30px; line-height: 1.1; }
@media (max-width: 720px) {
  .case-hero { padding-top: 44px; padding-bottom: 52px; }
  .case-block { padding-top: 56px; }
  .case-metrics > div { padding: 30px 22px; }
  .challenge li { font-size: 17px; }
  .mark { font-size: 9px; padding: 2px 4px; }
  .ledger-row { padding: 18px 20px; }
  .case-bar { padding-top: 14px; padding-bottom: 14px; }
}
@media (max-width: 480px) { .case-bar .mono { display: none; } .case-close { padding: 10px 14px; } }

/* 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%;
  background: var(--paper); color: var(--ink); overflow-y: auto; overscroll-behavior: contain;
}
.drawer::backdrop { background: rgba(20, 16, 15, .6); }
.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(20, 16, 15, .88); }
.lightbox img { max-width: 96vw; max-height: 88vh; width: auto; border: 1px solid var(--n700); background: #fff; }
.lightbox button { position: absolute; top: -48px; right: 0; border: 1px solid #605d5d; background: var(--ink); color: var(--paper); padding: 9px 14px; font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; }
.lightbox button:hover { background: var(--accent); border-color: var(--accent); }

/* standalone case page */
.case-page .case-bar { position: relative; border-bottom: 1px solid var(--rule-dark); }
.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(--n300); }
@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; }
}
