/* Emory Ball — editorial edition */
:root {
  --ink: #111111;
  --ink-2: #2B2A28;
  --muted: #6B6862;
  --faint: #B9B5AE;
  --line: #E4E0D9;
  --paper: #FFFFFF;
  --sand: #F3F0EA;
  --sand-2: #E9E4DB;
  --accent: #111111;
  --strat: #8A3B24;
  --free: #2F6B66;
  --todo-bg: #FFF7E6;
  --todo-line: #D9A441;
  --todo-ink: #6B4A0E;
  --serif: "Inter Tight", Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --sans: "Inter Tight", Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --max: 1280px;
  --gut: clamp(20px, 3.2vw, 48px);
}

* { 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: 13.6px; line-height: 1.6; font-weight: 400; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
.kicker { font-size: 11px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

/* Floating chrome */
.chrome { position: fixed; inset: 0 0 auto 0; z-index: 50; display: flex; justify-content: space-between; align-items: center; padding: 18px var(--gut); pointer-events: none; }
.chrome > * { pointer-events: auto; }
.chip { display: inline-flex; align-items: center; gap: 10px; background: var(--ink); color: #fff; border: 0; border-radius: 6px; padding: 12px 16px; font: 500 11.2px/1 var(--sans); text-decoration: none; cursor: pointer; min-height: 44px; }
.chip:hover { background: #333; color: #fff; }
.chip svg { width: 14px; height: 14px; }
.mark { font: 500 11px/1 var(--sans); letter-spacing: 0.42em; text-transform: uppercase; text-decoration: none; color: var(--ink); background: rgba(255,255,255,0.86); padding: 12px 10px 12px 16px; border-radius: 6px; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }

.menu { position: fixed; inset: 0; z-index: 60; background: var(--paper); display: flex; flex-direction: column; padding: 18px var(--gut) 40px; overflow-y: auto; }
.menu[hidden] { display: none; }
.menu .top { display: flex; justify-content: space-between; align-items: center; }
.menu ol { list-style: none; margin: 8vh 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.menu ol a { font-family: var(--serif); font-size: clamp(32px, 5.6vw, 67.2px); line-height: 1.08; text-decoration: none; color: var(--faint); transition: color .2s; }
.menu ol a:hover, .menu ol a:focus { color: var(--ink); }
.menu .stories { margin-top: 48px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 12px 32px; max-width: 1100px; }
.menu .stories a { text-decoration: none; border-top: 1px solid var(--line); padding-top: 12px; font-size: 12px; }
.menu .stories a span { display: block; color: var(--muted); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 4px; }

/* Cover */
.cover { padding: 150px 0 56px; }
.cover .row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 320px); gap: 48px; align-items: end; }
.cover h1 { font-family: var(--serif); font-size: clamp(34px, 5.2vw, 80px); line-height: 1; letter-spacing: -0.02em; }
.cover h1 em { font-style: normal; }
.cover .kicker { margin-bottom: 28px; display: block; }
.coverlines { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.coverlines li { border-bottom: 1px solid var(--line); }
.coverlines a { display: flex; gap: 14px; align-items: baseline; padding: 14px 0; text-decoration: none; font-size: 12px; line-height: 1.35; }
.coverlines b { font-family: var(--serif); font-weight: 400; font-size: 17.6px; flex: none; width: 26px; }
.coverlines a:hover { color: var(--muted); }

/* Reel (slideshow) */
.reel { padding: 0 var(--gut); }
.reel .frame { position: relative; max-width: 1600px; margin: 0 auto; aspect-ratio: 16 / 8; background: var(--sand); border-radius: 4px; overflow: hidden; }
.reel .slide { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 6% 10% 9%; opacity: 0; transition: opacity .8s ease; }
.reel .slide.on { opacity: 1; }
.reel .slide img { max-height: 100%; width: auto; max-width: 100%; object-fit: contain; box-shadow: 0 24px 60px rgba(17,17,17,0.16); }
.reel .cap { position: absolute; left: 24px; bottom: 20px; font-size: 11px; color: var(--ink-2); }
.reel .cap b { font-weight: 600; }
.reel .bars { position: absolute; left: 24px; right: 24px; top: 20px; display: flex; gap: 8px; }
.reel .bars button { flex: 1; height: 24px; padding: 10px 0; border: 0; background: none; cursor: pointer; }
.reel .bars button i { display: block; height: 3px; background: rgba(17,17,17,0.18); border-radius: 2px; overflow: hidden; }
.reel .bars button i::after { content: ""; display: block; height: 100%; width: 0; background: var(--ink); }
.reel .bars button.done i::after { width: 100%; }
.reel .bars button.on i::after { animation: fill 5s linear forwards; }
.reel.paused .bars button.on i::after { animation-play-state: paused; }
@keyframes fill { to { width: 100%; } }

/* Statement + spec table */
.statement { padding: 120px 0 40px; }
.statement .big { font-size: clamp(20.8px, 2.48vw, 33.6px); line-height: 1.32; letter-spacing: -0.01em; font-weight: 400; max-width: 26em; }
.statement .big span { transition: color .25s; }
.spec { margin: 88px 0 0; }
.spec .head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 12px; }
.spec h2 { font-family: var(--serif); font-size: 32px; line-height: 1; }
.spec dl { margin: 0; }
.spec .r { display: grid; grid-template-columns: minmax(0, 1.2fr) repeat(3, minmax(0, 1fr)); gap: 12px 32px; padding: 22px 0; border-top: 1px solid var(--line); align-items: baseline; }
.spec .r:last-child { border-bottom: 1px solid var(--line); }
.spec dt { font-family: var(--serif); font-size: 24px; line-height: 1.1; }
.spec dd { margin: 0; font-size: 12px; line-height: 1.4; }
.spec dd small { display: block; font-size: 11px; color: var(--muted); margin-bottom: 4px; }
.portrait { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 48px; margin-top: 88px; align-items: end; }
.portrait .ph { aspect-ratio: 4 / 5; }
.portrait p { font-size: 14.4px; line-height: 1.6; color: var(--ink-2); max-width: 36em; }
.portrait p + p { margin-top: 16px; }

/* Chapters */
.chapters { padding: 120px 0 40px; }
.chapters > .wrap > h2 { font-family: var(--serif); font-size: clamp(44.8px, 6.4vw, 96px); line-height: 0.95; letter-spacing: -0.02em; }
.chapters .intro { margin: 20px 0 0; max-width: 40em; color: var(--muted); font-size: 14.4px; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 28px 0 0; padding: 0; list-style: none; font-size: 11px; color: var(--muted); }
.legend li { display: flex; align-items: center; gap: 8px; }
.legend i { display: inline-block; width: 24px; height: 3px; background: var(--ink); }
.legend i.c { background: repeating-linear-gradient(90deg, var(--ink) 0 5px, transparent 5px 9px); }
.legend i.f { background: none; border-top: 2px dashed var(--free); height: 0; }

.tabs { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,0.95); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); margin-top: 56px; border-bottom: 1px solid var(--line); }
.tabs .wrap { display: flex; gap: 6px 28px; justify-content: center; flex-wrap: wrap; padding-top: 84px; padding-bottom: 16px; }
.tabs a { font-size: clamp(14.4px, 1.6vw, 20.8px); text-decoration: none; color: var(--faint); white-space: nowrap; transition: color .2s; }
.tabs a.on, .tabs a:hover { color: var(--ink); }

.chapter { padding: 96px 0 24px; scroll-margin-top: 140px; }
.ch-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 24px 64px; align-items: end; padding-bottom: 40px; border-bottom: 1px solid var(--ink); }
.ch-head .no { font-family: var(--serif); font-style: italic; font-size: 17.6px; color: var(--muted); display: block; margin-bottom: 8px; }
.ch-head h3 { font-family: var(--serif); font-size: clamp(38.4px, 5.12vw, 76.8px); line-height: 0.95; letter-spacing: -0.02em; }
.ch-head .adds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; font-size: 12px; line-height: 1.5; color: var(--ink-2); }
.ch-head .adds b { display: block; font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.ch-head .adds .s b { color: var(--strat); }

.entry { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 16px 64px; padding: 40px 0; border-bottom: 1px solid var(--line); position: relative; }
.entry .co { font-family: var(--serif); font-size: clamp(24px, 2.72vw, 36.8px); line-height: 1.02; }
.entry .line { display: block; width: 100%; height: 3px; background: var(--ink); margin-top: 18px; max-width: var(--len, 100%); }
.entry.contract .line { background: repeating-linear-gradient(90deg, var(--ink) 0 5px, transparent 5px 9px); }
.entry.free .line { background: none; border-top: 2px dashed var(--free); height: 0; }
.entry.free .co { color: var(--free); }
.entry .meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 24px; font-size: 12px; line-height: 1.35; }
.entry .meta small { display: block; font-size: 11px; color: var(--muted); margin-bottom: 3px; }
.entry .about { margin-top: 18px; font-size: 12.8px; line-height: 1.6; color: var(--ink-2); max-width: 38em; }
.entry .about + .about { margin-top: 8px; }

/* Features, pull quotes, galleries */
.feature { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 32px 56px; align-items: center; padding: 56px 0; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--line); }
.feature.flip { grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr); }
.feature.flip .plate { order: 2; }
.feature .plate { background: var(--sand); aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; padding: 7%; border-radius: 4px; overflow: hidden; }
.feature .plate img { max-height: 100%; width: auto; max-width: 100%; object-fit: contain; box-shadow: 0 20px 50px rgba(17,17,17,0.15); transition: transform .5s ease; }
.feature:hover .plate img { transform: scale(1.025); }
.feature .plate .placeholder { width: 100%; height: 100%; }
.feature h4 { font-family: var(--serif); font-weight: 400; font-size: clamp(27.2px, 2.88vw, 43.2px); line-height: 1.02; letter-spacing: -0.01em; margin: 14px 0 16px; }
.feature p { font-size: 13.6px; line-height: 1.55; color: var(--ink-2); max-width: 28em; }
.feature .read { display: inline-flex; margin-top: 24px; border: 1px solid var(--ink); padding: 12px 18px; font-size: 11px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; }
.feature:hover .read { background: var(--ink); color: #fff; }

.pull { margin: 0; padding: 56px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); gap: 16px 64px; }
.pull .kicker { color: var(--strat); padding-top: 14px; }
.pull blockquote { margin: 0; font-family: var(--serif); font-size: clamp(24px, 2.88vw, 41.6px); line-height: 1.12; letter-spacing: -0.01em; }

.gallery { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 16px 64px; padding: 40px 0; border-bottom: 1px solid var(--line); }
.gallery .row { display: flex; gap: 20px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; }
.gallery figure { margin: 0; flex: 0 0 210px; scroll-snap-align: start; }
.gallery figure a, .gallery figure > div { display: block; text-decoration: none; }
.gallery .im { aspect-ratio: 4 / 3; background: var(--sand); display: flex; align-items: center; justify-content: center; padding: 10px; border-radius: 3px; overflow: hidden; }
.gallery .im img { max-height: 100%; width: auto; max-width: 100%; object-fit: contain; }
.gallery figcaption { font-size: 11px; line-height: 1.35; margin-top: 10px; color: var(--ink-2); }
.gallery a:hover figcaption { text-decoration: underline; }

/* Closing */
.closing { padding: 160px 0 140px; text-align: center; }
.closing .kicker { display: block; margin-bottom: 18px; }
.closing h2 { font-family: var(--serif); font-size: clamp(38.4px, 5.6vw, 83.2px); line-height: 0.98; letter-spacing: -0.02em; max-width: 12em; margin: 0 auto; }
.closing .btns { justify-content: center; margin-top: 36px; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; min-height: 46px; padding: 12px 22px; border: 1px solid var(--ink); font-size: 11px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none; color: var(--ink); background: transparent; }
.btn:hover, .btn.solid { background: var(--ink); color: #fff; }
.btn.solid:hover { background: #333; }
.colophon { border-top: 1px solid var(--line); padding: 24px 0 40px; font-size: 11px; color: var(--muted); }
.colophon .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }

/* Placeholders and holes */
.placeholder { display: flex; align-items: center; justify-content: center; text-align: center; padding: 24px; color: var(--muted); font-size: 11px; border: 1px dashed var(--faint); border-radius: 4px; background: var(--sand); }
.todo { background: var(--todo-bg); border: 1.5px dashed var(--todo-line); color: var(--todo-ink); border-radius: 6px; padding: 12px 16px; font-size: 12px; line-height: 1.5; }
.todo::before { content: "To fill in · "; font-weight: 700; }

/* ---------- Case study pages ---------- */
.cs-top { padding: 150px 0 56px; }
.back { display: inline-block; font-size: 11px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none; padding: 10px 0; color: var(--muted); }
.back:hover { color: var(--ink); }
.cs-top .eyebrow { margin: 28px 0 18px; font-size: 11px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.cs-top h1 { font-family: var(--serif); font-size: clamp(38.4px, 6.08vw, 96px); line-height: 0.96; letter-spacing: -0.02em; max-width: 13em; }
.cs-top .lede { margin: 32px 0 0; font-size: clamp(16px, 1.76vw, 22.4px); line-height: 1.4; color: var(--ink-2); max-width: 32em; }
.facts { margin: 56px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 0 32px; border-top: 1px solid var(--ink); }
.facts div { padding: 18px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-size: 11px; color: var(--muted); margin-bottom: 4px; }
.facts dd { margin: 0; font-size: 12.8px; line-height: 1.45; }

.hero-img { padding: 0 var(--gut) 96px; }
.hero-img .wrap { max-width: 1600px; padding: 0; }
.hero-img .frame { background: var(--sand); aspect-ratio: 16 / 8; display: flex; align-items: center; justify-content: center; padding: 6%; border-radius: 4px; overflow: hidden; }
.hero-img .frame img { max-height: 100%; width: auto; max-width: 100%; object-fit: contain; box-shadow: 0 24px 60px rgba(17,17,17,0.16); }
.hero-img .frame .placeholder { width: 100%; height: 100%; }

.block { padding: 0 0 96px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 24px 64px; }
.split .label { padding-top: 6px; }
.split .body { min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.split h2, .block h2, .band h2, .outcome h2 { font-family: var(--serif); font-size: clamp(27.2px, 3.04vw, 44.8px); line-height: 1.02; letter-spacing: -0.01em; }
.body p { font-size: 15.2px; line-height: 1.65; color: var(--ink-2); }
.body > p:first-child::first-letter { font-family: var(--serif); float: left; font-size: 70.4px; line-height: 0.82; padding: 6px 10px 0 0; }
.num { display: block; font-size: 11px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }

.band { background: var(--sand); padding: 96px 0; margin-bottom: 96px; }
.band .intro { margin: 12px 0 48px; font-size: 15.2px; color: var(--muted); max-width: 36em; }
.band .body > p:first-child::first-letter { float: none; font: inherit; padding: 0; }

.annotated { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.annotated .shot { position: relative; min-width: 0; }
.annotated .shot .ph { aspect-ratio: 4 / 3; background: var(--paper); }
.marker { position: absolute; width: 38px; height: 38px; border-radius: 999px; background: var(--ink); color: #fff; font: italic 16px/1 var(--serif); display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 5px var(--sand); }
.decisions { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.decisions li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; padding: 20px 0; border-top: 1px solid var(--sand-2); }
.decisions .n { font: italic 22.4px/1 var(--serif); }
.decisions strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 20.8px; line-height: 1.1; margin-bottom: 8px; }
.decisions span.d { font-size: 12.8px; line-height: 1.55; color: var(--ink-2); }

.pairs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 40px; }
figure { margin: 0; display: flex; flex-direction: column; gap: 12px; }
figcaption { font-size: 11.2px; line-height: 1.5; color: var(--muted); }
figcaption strong { color: var(--ink); font-weight: 600; }
.pairs .ph { aspect-ratio: 4 / 3; }
.trio { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 24px; }
.trio .ph { aspect-ratio: 3 / 4; }
.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 40px; }
.shots img, .split figure img { background: var(--sand); padding: 6%; border-radius: 4px; width: 100%; }
.band .shots img { background: var(--paper); }

.findings { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.findings li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); gap: 12px 40px; padding: 28px 0; border-bottom: 1px solid var(--sand-2); }
.findings h3 { font-family: var(--serif); font-size: 24px; line-height: 1.05; }
.findings .k { display: block; font-size: 11px; color: var(--muted); margin-bottom: 4px; }
.findings p { font-size: 12.8px; line-height: 1.55; color: var(--ink-2); }

.steps { margin: 0; padding: 0; list-style: none; counter-reset: s; border-top: 1px solid var(--ink); }
.steps li { counter-increment: s; display: grid; grid-template-columns: 56px minmax(0, 1fr); padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 14.4px; }
.steps li::before { content: counter(s, decimal-leading-zero); font: italic 17.6px/1.3 var(--serif); color: var(--muted); }

.outcome { background: var(--ink); color: #fff; padding: 112px 0; }
.outcome .num { color: #A8A39B; }
.outcome .body p { color: #D9D5CE; }
.outcome .body > p:first-child::first-letter { float: none; font: inherit; padding: 0; }
.outcome p.big { font-family: var(--serif); font-size: clamp(22.4px, 2.4vw, 33.6px); line-height: 1.2; color: #fff; }
.outcome .todo { color: var(--todo-ink); }

.next { padding: 0; }
.next .wrap { max-width: none; padding: 0; }
.next a { display: block; text-decoration: none; background: var(--sand); padding: 96px var(--gut); text-align: center; }
.next .eyebrow { display: block; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.next .t { display: block; font-family: var(--serif); font-size: clamp(27.2px, 3.68vw, 54.4px); line-height: 1.02; max-width: 16em; margin: 0 auto; }
.next a:hover .t { font-style: italic; }

.site-footer { padding: 120px 0 56px; text-align: center; border-top: 1px solid var(--line); }
.site-footer h2 { font-family: var(--serif); font-size: clamp(32px, 4.48vw, 64px); line-height: 1; letter-spacing: -0.02em; }
.site-footer .btns { justify-content: center; margin-top: 28px; }
.site-footer small { display: block; margin-top: 40px; font-size: 11px; color: var(--muted); }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reel .slide { transition: none; }
  .reel .bars button.on i::after { animation: none; width: 100%; }
}

/* Responsive */
@media (max-width: 900px) {
  .cover .row, .portrait, .ch-head, .entry, .gallery, .pull, .feature, .feature.flip, .split, .annotated { grid-template-columns: minmax(0, 1fr); }
  .feature.flip .plate { order: 0; }
  .spec .r { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .spec dt { grid-column: 1 / -1; }
  .findings li { grid-template-columns: minmax(0, 1fr); }
  .tabs .wrap { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; padding-top: 80px; }
}
@media (max-width: 600px) {
  body { font-size: 12.8px; }
  .mark { letter-spacing: 0.28em; font-size: 11px; padding: 12px; }
  .chip { padding: 12px 13px; }
  .cover { padding-top: 120px; }
  .reel .frame { aspect-ratio: 4 / 3.4; }
  .reel .slide { padding: 14% 6% 16%; }
  .entry .meta { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .ch-head .adds { grid-template-columns: minmax(0, 1fr); }
  .body > p:first-child::first-letter { font-size: 51.2px; }
  .cs-top { padding-top: 120px; }
  .band, .outcome { padding: 72px 0; }
}
.kicker.free { color: var(--free); padding-bottom: 4px; border-bottom: 2px dashed var(--free); }
