/* Jonathan DeLong — portfolio
   Direction: "Proof wall". Print-production vernacular (crop marks, non-repro
   blue guides, registration) on cool drafting-film paper. Wide Archivo display,
   Newsreader for reading. One signature moment: proofs align on scroll. */

:root {
  --paper: #e8ebed;
  --paper-2: #dce1e4;
  --paper-3: #f4f6f7;
  --ink: #15171b;
  --graphite: #555b64;
  --rule: #b9c0c6;
  --guide: #7cc6e6;        /* non-repro blue: guides, crop marks */
  --guide-ink: #1f6f93;    /* readable on paper */
  --focus: #0a5cff;

  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --text: "Newsreader", Georgia, serif;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1440px;
  --read: 38rem;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.1875rem/1.6 var(--text);
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
::selection { background: var(--guide); color: var(--ink); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: .6em 1em; z-index: 100; font-family: var(--display); }
.skip:focus { left: 8px; }

/* ---------- Type ---------- */
.display {
  font-family: var(--display);
  font-stretch: 125%;
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: .88;
  margin: 0;
}
.h2 {
  font-family: var(--display);
  font-stretch: 112%;
  font-weight: 750;
  font-size: clamp(2.1rem, 4.6vw, 4.25rem);
  letter-spacing: -.03em;
  line-height: .95;
  margin: 0;
  text-wrap: balance;
}
.h3 {
  text-wrap: balance;
  font-family: var(--display);
  font-stretch: 100%;
  font-weight: 650;
  font-size: clamp(1.25rem, 1.8vw, 1.6rem);
  letter-spacing: -.01em;
  line-height: 1.15;
  margin: 0;
}
.label {
  font-family: var(--display);
  font-stretch: 87%;
  font-weight: 550;
  font-size: .875rem;
  letter-spacing: .005em;
  line-height: 1.3;
  color: var(--graphite);
}
.lede { font-size: clamp(1.25rem, 1.7vw, 1.5rem); line-height: 1.45; max-width: 34rem; }
.prose { max-width: var(--read); }
.prose p { margin: 0 0 1.1em; }
.prose h3 { margin: 2em 0 .6em; }
.prose ul { padding-left: 1.1em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .4em; }
.prose li::marker { color: var(--guide-ink); }
.muted { color: var(--graphite); }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(80px, 12vw, 168px) 0; }
.section + .section { padding-top: 0; }

/* ---------- Header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.site-head.is-scrolled { border-color: var(--rule); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.mark { display: flex; align-items: center; gap: 12px; text-decoration: none; font-family: var(--display); font-weight: 700; font-stretch: 112%; font-size: 1.05rem; letter-spacing: -.01em; }
.mark svg { width: 26px; height: 26px; flex: none; }
.nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 34px); font-family: var(--display); font-stretch: 95%; font-weight: 550; font-size: .95rem; }
.nav a { text-decoration: none; padding: 6px 0; background: linear-gradient(var(--ink), var(--ink)) left bottom / 0 1.5px no-repeat; transition: background-size .35s var(--ease); }
.nav a:hover, .nav a[aria-current="page"] { background-size: 100% 1.5px; }
.nav .btn { background: var(--ink); }

.btn {
  display: inline-flex; align-items: center; gap: .6em;
  font-family: var(--display); font-stretch: 100%; font-weight: 650; font-size: .95rem;
  text-decoration: none; padding: .8em 1.25em; border-radius: 999px;
  background: var(--ink); color: var(--paper) !important; border: 1.5px solid var(--ink);
  transition: transform .25s var(--ease), background .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn--line { background: transparent; color: var(--ink) !important; }
.btn--line:hover { background: var(--ink); color: var(--paper) !important; }
.btn svg { width: 1em; height: 1em; }
.nav .btn { padding: .55em 1.05em; }

.mark span { white-space: nowrap; }
@media (max-width: 720px) {
  .nav a:not(.btn) { display: none; }
}
@media (max-width: 480px) {
  .nav .btn { display: none; }
}
@media (max-width: 720px) {
  .nav .menu-toggle { display: inline-flex; }
}
.menu-toggle { display: none; font: inherit; background: none; border: 0; padding: 6px; cursor: pointer; color: var(--ink); }
.mobile-menu { display: none; }
.mobile-menu.open { display: block; position: fixed; inset: 72px 0 0; background: var(--paper); z-index: 49; padding: 32px var(--gutter); }
.mobile-menu a { display: block; font-family: var(--display); font-stretch: 125%; font-weight: 800; font-size: 2.6rem; letter-spacing: -.03em; text-decoration: none; padding: 10px 0; border-bottom: 1px solid var(--rule); }

/* ---------- Crop marks ---------- */
.crop { position: relative; }
.crop::before, .crop::after {
  content: ""; position: absolute; pointer-events: none; z-index: 2;
  width: calc(100% + 28px); height: calc(100% + 28px); left: -14px; top: -14px;
  background:
    linear-gradient(var(--guide), var(--guide)) 0 14px / 10px 1px no-repeat,
    linear-gradient(var(--guide), var(--guide)) 14px 0 / 1px 10px no-repeat,
    linear-gradient(var(--guide), var(--guide)) 100% 14px / 10px 1px no-repeat,
    linear-gradient(var(--guide), var(--guide)) calc(100% - 14px) 0 / 1px 10px no-repeat;
}
.crop::after {
  background:
    linear-gradient(var(--guide), var(--guide)) 0 calc(100% - 14px) / 10px 1px no-repeat,
    linear-gradient(var(--guide), var(--guide)) 14px 100% / 1px 10px no-repeat,
    linear-gradient(var(--guide), var(--guide)) 100% calc(100% - 14px) / 10px 1px no-repeat,
    linear-gradient(var(--guide), var(--guide)) calc(100% - 14px) 100% / 1px 10px no-repeat;
}

/* ---------- Home hero: the proof wall ---------- */
.hero { position: relative; height: 230vh; }
.hero__stage { position: sticky; top: 72px; height: calc(100vh - 72px); min-height: 600px; overflow: hidden; }
.hero__grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, color-mix(in srgb, var(--guide) 35%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in srgb, var(--guide) 35%, transparent) 1px, transparent 1px);
  background-size: calc((100% - 2 * var(--gutter)) / 12) 100%, 100% 25%;
  background-position: var(--gutter) 0, 0 0;
  opacity: var(--grid-o, .0);
  transition: opacity .2s;
}
.hero__copy {
  position: relative; z-index: 5; height: 100%;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-bottom: clamp(32px, 6vh, 72px);
}
.hero__title { font-size: clamp(2.6rem, 7.6vw, 9rem); }
.hero__title span { display: block; white-space: nowrap; }
@media (max-width: 860px) { .hero__title span { white-space: normal; } }
.hero__foot { display: grid; grid-template-columns: minmax(0, 34rem) auto; justify-content: space-between; align-items: end; gap: 32px; margin-top: clamp(20px, 3vh, 40px); }
.hero__foot p { margin: 0; font-size: clamp(1.1rem, 1.35vw, 1.3rem); line-height: 1.5; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; text-shadow: none; }
.hero__state { position: absolute; z-index: 6; top: 24px; right: var(--gutter); display: flex; gap: 18px; align-items: center; }
.hero__state span { transition: color .3s, opacity .3s; }
.hero__state .on { color: var(--ink); }
.hero__state i { display: block; width: 64px; height: 1px; background: var(--rule); position: relative; }
.hero__state i::after { content: ""; position: absolute; inset: 0; background: var(--ink); transform-origin: left; transform: scaleX(var(--p, 0)); }

.proofs { position: absolute; inset: 0; z-index: 3; }
.proof {
  position: absolute; margin: 0;
  left: var(--x); top: var(--y); width: var(--w);
  transform: rotate(var(--r));
  will-change: left, top, width, transform;
  box-shadow: 0 1px 0 rgba(0,0,0,.05), 0 18px 40px -18px rgba(21,23,27,.45);
  background: var(--paper-3);
}
.proof img { width: 100%; aspect-ratio: var(--ar, 4/3); object-fit: cover; }
.proof figcaption { position: absolute; left: 0; top: calc(100% + 8px); white-space: nowrap; opacity: var(--cap-o, 0); }
.hero__copy .hero__title, .hero__foot { text-shadow: 0 0 24px var(--paper), 0 0 6px var(--paper); }

/* ---------- Brands ---------- */
.brands__head { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; flex-wrap: wrap; border-top: 1.5px solid var(--ink); padding-top: 18px; margin-bottom: clamp(28px, 4vw, 56px); }
.brands__list { --s: 1; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-left: 1px solid var(--rule); border-top: 1px solid var(--rule); }
.brands__list li { position: relative; display: flex; align-items: center; justify-content: center; min-height: clamp(104px, 11vw, 168px); padding: 20px clamp(14px, 2vw, 28px); border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.brands__list .logo { display: block; width: calc(var(--w) * var(--s) * 1px); max-width: 82%; aspect-ratio: var(--ar); background: var(--ink); -webkit-mask: var(--src) center / contain no-repeat; mask: var(--src) center / contain no-repeat; }
.brands__list .brands__word { font-family: var(--display); font-stretch: 118%; font-weight: 800; font-size: calc(2.1rem * var(--s)); letter-spacing: -.035em; line-height: 1; }
@media (max-width: 1100px) { .brands__list { --s: .8; } }
@media (max-width: 860px) { .brands__list { grid-template-columns: repeat(3, minmax(0, 1fr)); --s: .72; } }
.brands__list li::before { content: ""; position: absolute; top: 12px; right: 12px; width: 14px; height: 14px; border: 1px solid var(--guide); border-radius: 50%; background: linear-gradient(var(--guide), var(--guide)) center / 100% 1px no-repeat, linear-gradient(var(--guide), var(--guide)) center / 1px 100% no-repeat; }
@media (max-width: 560px) { .brands__list { grid-template-columns: repeat(2, minmax(0, 1fr)); --s: .58; } }

/* ---------- Featured work ---------- */
.feature { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 clamp(16px, 2vw, 32px); align-items: end; padding: clamp(56px, 8vw, 120px) 0; border-top: 1px solid var(--rule); }
.feature__media { grid-column: 1 / span 8; text-decoration: none; display: block; }
.feature__frame { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--ink); }
.feature__frame img, .feature__frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .6s var(--ease), transform 1.2s var(--ease); }
.feature__frame .alt { opacity: 0; }
.feature__media:hover .alt, .feature__media:focus-visible .alt { opacity: 1; }
.feature__media:hover img { transform: scale(1.025); }
.feature__body { grid-column: 9 / span 4; padding-bottom: 6px; }
.feature--flip .feature__media { grid-column: 5 / span 8; order: 2; }
.feature--flip .feature__body { grid-column: 1 / span 4; order: 1; }
.feature__title { font-size: clamp(2.4rem, 4.4vw, 4.4rem); margin: 14px 0 18px; }
.feature__title a { text-decoration: none; }
.feature__body p { margin: 0 0 18px; font-size: 1.1rem; line-height: 1.55; }
.meta { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0 0 22px; padding: 14px 0 0; border-top: 1px solid var(--rule); }
.meta dt { font-family: var(--display); font-stretch: 87%; font-weight: 550; font-size: .85rem; color: var(--graphite); padding-top: 3px; }
.meta dd { margin: 0; font-size: 1rem; line-height: 1.45; }
.status { display: inline-flex; align-items: center; gap: 8px; font-family: var(--display); font-stretch: 90%; font-weight: 600; font-size: .82rem; padding: 5px 11px 5px 9px; border: 1.5px solid var(--ink); border-radius: 999px; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ink); }
.status--live::before { background: #19a463; box-shadow: 0 0 0 3px color-mix(in srgb, #19a463 25%, transparent); }
.status--concept::before { background: transparent; border: 1.5px solid var(--ink); width: 5px; height: 5px; }
.textlink { font-family: var(--display); font-weight: 650; font-stretch: 100%; font-size: 1rem; text-decoration: none; display: inline-flex; gap: .5em; align-items: center; border-bottom: 1.5px solid var(--ink); padding-bottom: 2px; }
.textlink:hover { border-color: var(--guide); }

/* ---------- Decisions ---------- */
.decisions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(40px, 5vw, 80px) clamp(24px, 4vw, 64px); margin-top: clamp(40px, 5vw, 72px); }
.decision { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px; align-items: start; }
.decision img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.decision h3 { margin-bottom: 12px; }
.decision p { margin: 0 0 14px; font-size: 1.05rem; line-height: 1.55; }
.decision .label { display: block; margin-bottom: 10px; }

/* ---------- Dark panel ---------- */
.panel { background: var(--ink); color: var(--paper); }
.panel .label, .panel .muted { color: #9aa1aa; }
.panel .btn { background: var(--paper); color: var(--ink) !important; border-color: var(--paper); }
.panel .btn--line { background: transparent; color: var(--paper) !important; }
.panel .btn--line:hover { background: var(--paper); color: var(--ink) !important; }
.panel .textlink { border-color: var(--paper); }
.panel a:focus-visible { outline-color: var(--guide); }

.notes { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 96px); align-items: start; }
.guide-card { display: block; text-decoration: none; }
.guide-card__frame { aspect-ratio: 16 / 10; position: relative; overflow: hidden; border: 1px solid #2b2f36; background:
  radial-gradient(120% 90% at 20% 10%, #2a3a52 0%, transparent 60%),
  radial-gradient(90% 80% at 90% 100%, #1d4a5e 0%, transparent 60%), #1b1e24; }
.guide-flow { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(4, 1fr); align-items: center; gap: 2.5%; padding: 0 6%; }
.guide-flow div { aspect-ratio: 3 / 4; border: 1px solid color-mix(in srgb, var(--guide) 55%, transparent); border-radius: 6px; display: flex; flex-direction: column; justify-content: space-between; padding: 12% 12%; font-family: var(--display); color: var(--paper); font-size: clamp(.7rem, 1.1vw, .95rem); font-weight: 600; background: rgba(255,255,255,.03); position: relative; }
.guide-flow div small { color: #9aa1aa; font-weight: 500; font-stretch: 87%; }
.guide-flow div:not(:last-child)::after { content: ""; position: absolute; right: -14%; top: 50%; width: 12%; height: 1px; background: var(--guide); }
.notes__list { list-style: none; padding: 0; margin: 28px 0 0; border-top: 1px solid #343840; }
.notes__list li { border-bottom: 1px solid #343840; padding: 18px 0; display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: baseline; }
.notes__list .h3 { font-size: 1.15rem; }

/* ---------- Experience ---------- */
.timeline { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--ink); }
.timeline li { display: grid; grid-template-columns: 9rem minmax(0, 1fr) minmax(0, 1.2fr); gap: 16px 32px; padding: 20px 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.timeline .when { font-family: var(--display); font-stretch: 87%; font-weight: 600; font-size: .95rem; font-variant-numeric: tabular-nums; }
.timeline .h3 { font-size: 1.3rem; }
.timeline p { margin: 0; font-size: 1.02rem; line-height: 1.5; color: var(--graphite); }
.split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 5vw, 96px); align-items: start; }
.split__aside { position: sticky; top: 104px; }

/* ---------- Contact footer ---------- */
.contact { padding: clamp(96px, 14vw, 200px) 0 40px; }
.contact__big { font-size: clamp(3rem, 10vw, 10rem); margin: 18px 0 40px; }
.contact__mail { font-family: var(--display); font-weight: 700; font-stretch: 112%; font-size: clamp(1.4rem, 3.2vw, 2.8rem); letter-spacing: -.02em; text-decoration: none; border-bottom: 3px solid var(--guide); padding-bottom: 4px; overflow-wrap: anywhere; }
.contact__mail:hover { color: var(--guide); }
.contact__row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; border-top: 1px solid #343840; margin-top: clamp(80px, 10vw, 140px); padding-top: 22px; }
.foot nav { display: flex; gap: 22px; }
.foot a { text-decoration: none; }
.foot a:hover { text-decoration: underline; }

/* ---------- Section heads ---------- */
.shead { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 24px 48px; align-items: end; margin-bottom: clamp(24px, 4vw, 56px); }
.shead p { margin: 0; color: var(--graphite); font-size: 1.1rem; }

/* ---------- Case study ---------- */
.cs-hero { padding-top: clamp(40px, 6vw, 88px); }
.crumbs { display: flex; gap: 10px; align-items: center; margin-bottom: clamp(20px, 3vw, 36px); }
.crumbs a { text-decoration: none; border-bottom: 1px solid var(--rule); }
.cs-title { font-size: clamp(3.2rem, 11vw, 12rem); }
.cs-dek { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px 64px; margin-top: clamp(24px, 3vw, 44px); align-items: end; }
.cs-dek .lede { margin: 0; max-width: 36rem; }
.cs-cta { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.cs-cover { margin-top: clamp(40px, 6vw, 80px); }
.cs-cover .frame { background: var(--ink); overflow: hidden; }
.cs-cover img, .cs-cover video { width: 100%; }

.facts { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-top: 1.5px solid var(--ink); margin-top: clamp(48px, 6vw, 88px); }
.facts div { padding: 16px 20px 18px 0; border-right: 1px solid var(--rule); margin-right: 20px; }
.facts div:last-child { border-right: 0; }
.facts dt { font-family: var(--display); font-stretch: 87%; font-weight: 550; font-size: .82rem; color: var(--graphite); margin-bottom: 6px; }
.facts dd { margin: 0; font-size: 1rem; line-height: 1.45; }

.cs-body { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: clamp(24px, 4vw, 72px); padding-top: clamp(64px, 9vw, 128px); }
.toc { position: sticky; top: 104px; align-self: start; }
.toc ol { list-style: none; padding: 0; margin: 14px 0 0; counter-reset: t; }
.toc li { counter-increment: t; }
.toc a { display: grid; grid-template-columns: 2.2em 1fr; text-decoration: none; padding: 7px 0; font-family: var(--display); font-weight: 550; font-stretch: 95%; font-size: .95rem; color: var(--graphite); border-top: 1px solid var(--rule); transition: color .2s; }
.toc a::before { content: counter(t, decimal-leading-zero); font-variant-numeric: tabular-nums; color: var(--rule); }
.toc a.active { color: var(--ink); }
.toc a.active::before { color: var(--guide-ink); }
.chapter { padding-bottom: clamp(56px, 7vw, 104px); }
.chapter > .h2 { margin-bottom: clamp(20px, 2.6vw, 36px); max-width: 16ch; }

.fig { margin: clamp(32px, 4vw, 56px) 0; }
.fig figcaption { margin-top: 12px; font-family: var(--display); font-stretch: 90%; font-weight: 500; font-size: .88rem; color: var(--graphite); max-width: 52rem; line-height: 1.45; }
.fig--bleed { margin-left: calc(-1 * (100vw - 100%) / 2); margin-right: calc(-1 * (100vw - 100%) / 2); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 24px); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 24px); }
.grid-2 img, .grid-3 img { width: 100%; }

/* Credit ledger: who did what */
.ledger { margin: 0; border-top: 1.5px solid var(--ink); }
.ledger div { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 16px 32px; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.ledger dt { font-family: var(--display); font-weight: 650; font-stretch: 100%; font-size: 1rem; }
.ledger dd { margin: 0; font-size: 1.05rem; line-height: 1.55; }

/* Concept strip (ZEISS five) */
.concepts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(10px, 1.2vw, 18px); }
.concept { text-decoration: none; display: flex; flex-direction: column; gap: 10px; }
.concept img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; transition: transform .5s var(--ease), filter .5s; filter: saturate(.9); }
.concept:hover img { transform: translateY(-6px); filter: saturate(1.1); }
.concept .h3 { font-size: 1.02rem; }
.concept--pick { position: relative; }
.concept--pick::after { content: "Preferred execution"; position: absolute; top: 10px; left: 10px; font-family: var(--display); font-weight: 650; font-size: .75rem; background: var(--paper); padding: 4px 8px; border-radius: 999px; }

/* Horizontal strip */
.strip { display: flex; gap: clamp(12px, 1.6vw, 24px); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 14px; scrollbar-color: var(--ink) var(--paper-2); }
.strip > * { flex: 0 0 min(72vw, 720px); scroll-snap-align: start; margin: 0; }
.strip:focus-visible { outline-offset: 6px; }

/* Loupe: full infographic + detail crops */
.loupe { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.loupe__map { position: sticky; top: 104px; }
.loupe__map .frame { position: relative; max-height: calc(100vh - 140px); overflow: hidden; }
.loupe__inner { position: relative; transition: transform .6s var(--ease); }
.loupe__map img { width: 100%; }
.loupe__win { position: absolute; left: -4px; right: -4px; border: 2px solid var(--focus); background: color-mix(in srgb, var(--guide) 18%, transparent); transition: top .5s var(--ease), height .5s var(--ease); pointer-events: none; }
.loupe__crops { display: grid; gap: clamp(20px, 3vw, 40px); }
.loupe__crops figure { margin: 0; }

/* Series wall (Microsoft) */
.wall { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(10px, 1.4vw, 20px); align-items: start; }
.wall figure { margin: 0; }
.wall .tall { max-height: 820px; overflow: hidden; position: relative; }
.wall .tall::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 80px; background: linear-gradient(transparent, var(--paper)); }
.wall figcaption { margin-top: 10px; }

.next { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px; align-items: center; text-decoration: none; padding: clamp(40px, 5vw, 72px) 0; border-top: 1.5px solid var(--ink); }
.next img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.next .display { font-size: clamp(2.6rem, 7vw, 7rem); margin-top: 10px; }
.next:hover img { filter: saturate(1.15); }

.callout { border-left: 3px solid var(--guide); padding: 4px 0 4px 20px; margin: 28px 0; font-size: 1.05rem; color: var(--graphite); }

/* Work index */
.index-list { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--ink); }
.index-list a { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 3fr) minmax(0, 3fr); gap: 24px; align-items: center; padding: clamp(18px, 2.4vw, 30px) 0; border-bottom: 1px solid var(--rule); text-decoration: none; position: relative; }
.index-list .display { font-size: clamp(2.2rem, 6.4vw, 6.4rem); transition: transform .45s var(--ease), color .3s; }
.index-list a:hover .display, .index-list a:focus-visible .display { transform: translateX(14px); }
.index-peek { position: fixed; z-index: 40; width: 340px; aspect-ratio: 4 / 3; pointer-events: none; opacity: 0; transform: translate(-50%, -50%) rotate(-3deg) scale(.92); transition: opacity .25s, transform .35s var(--ease); background: var(--ink); }
.index-peek.on { opacity: 1; transform: translate(-50%, -50%) rotate(-3deg) scale(1); }
.index-peek img { width: 100%; height: 100%; object-fit: cover; }
.craft { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 24px); }
.craft figure { margin: 0; }
.craft img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.craft figcaption { margin-top: 10px; font-family: var(--display); font-stretch: 90%; font-weight: 500; font-size: .88rem; color: var(--graphite); line-height: 1.45; }
.craft__credit { margin: clamp(20px, 3vw, 36px) 0 0; max-width: 40rem; font-size: 1.05rem; line-height: 1.55; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .facts div:nth-child(3n) { border-right: 0; }
  .concepts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .wall { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .decision { grid-template-columns: 1fr; }
  .decision img { aspect-ratio: 16 / 10; }
}
@media (max-width: 860px) {
  body { font-size: 1.125rem; }
  .hero { height: auto; }
  .hero__stage { position: relative; top: 0; height: auto; min-height: 0; overflow: visible; }
  .hero__copy { height: auto; padding-top: 40px; padding-bottom: 32px; }
  .hero__state, .hero__grid { display: none; }
  .proofs { position: relative; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 0 var(--gutter) 24px; }
  .proof { position: relative; left: auto !important; top: auto !important; width: auto !important; transform: none !important; }
  .proof:nth-child(n+5) { display: none; }
  .hero__foot { grid-template-columns: 1fr; }
  .feature, .feature--flip { grid-template-columns: 1fr; gap: 24px; }
  .feature__media, .feature--flip .feature__media, .feature__body, .feature--flip .feature__body { grid-column: 1; order: 0; }
  .decisions, .notes, .split, .shead, .cs-dek, .cs-body, .loupe, .next { grid-template-columns: 1fr; }
  .cs-cta { justify-content: flex-start; }
  .toc, .split__aside, .loupe__map { position: static; }
  .toc { display: none; }
  .loupe__map .frame { max-height: 60vh; }
  .timeline li { grid-template-columns: 1fr; gap: 4px; }
  .index-list a { grid-template-columns: 1fr; gap: 6px; }
  .index-peek { display: none; }
  .grid-3, .craft { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ledger div { grid-template-columns: 1fr; gap: 4px; }
}
@media (max-width: 560px) {
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts div { border-right: 0; }
  .concepts, .wall, .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .strip > * { flex-basis: 86vw; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
  .hero { height: auto; }
  .hero__stage { position: relative; top: 0; }
}

/* ---------- Design system feature (home) ---------- */
.panel .shead p { color: #c9ced4; }
.ds-hero { display: block; text-decoration: none; }
.ds-hero img { width: 100%; display: block; border-radius: 4px; box-shadow: 0 30px 80px -30px rgba(0,0,0,.6); transition: transform 1.2s var(--ease); }
.ds-hero:hover img { transform: translateY(-4px); }
.ds-stages { list-style: none; margin: clamp(20px, 2.4vw, 36px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 24px); }
.ds-stages li { display: grid; grid-template-columns: 1fr auto; gap: 12px 16px; align-items: baseline; }
.ds-stages img { grid-column: 1 / -1; width: 100%; display: block; border-radius: 3px; }
.ds-stages .h3 { font-size: 1.1rem; }
.ds-foot { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px clamp(32px, 5vw, 96px); align-items: end; margin-top: clamp(32px, 4vw, 56px); }
.ds-foot .meta { margin: 0; border-color: #343840; }
.panel .meta dt { color: #9aa1aa; }
.ds-foot > div { justify-self: end; }
@media (max-width: 860px) { .ds-stages { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; } .ds-stages li { scroll-snap-align: start; } .ds-foot { grid-template-columns: 1fr; } .ds-foot > div { justify-self: start; } }
