:root {
  --paper: #f3efe7;
  --paper-2: #ebe5d9;
  --card: #fbf9f4;
  --ink: #17140f;
  --ink-2: #3a342b;
  --muted: #6e665a;
  --line: rgba(23, 20, 15, 0.14);
  --accent: #b14a2c;
  --accent-ink: #fbf3ec;
  --sage: #7f8b6c;
  --ochre: #c49a4a;
  --night: #16130f;
  --night-2: #221d17;
  --night-line: rgba(243, 239, 231, 0.14);

  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Hanken Grotesk", "Helvetica Neue", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1240px;
  --radius: 14px;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; }
a { color: inherit; }
em { font-style: italic; }
.mono { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; }

h1, h2, h3 { margin: 0; font-weight: 400; }
h1, h2 { font-family: var(--serif); letter-spacing: -0.015em; line-height: 0.98; }
h1 em, h2 em { color: var(--accent); }

.skip {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: 8px;
}
.skip:focus { left: 8px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* ---------- grain ---------- */
.grain {
  pointer-events: none; position: fixed; inset: 0; z-index: 90; opacity: 0.07; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5em;
  font: 500 0.98rem/1 var(--sans);
  padding: 0.95em 1.35em; border-radius: 999px; border: 1px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s, color 0.25s, border-color 0.25s;
}
.btn span { transition: transform 0.25s var(--ease); }
.btn:hover span { transform: translateX(4px); }
.btn:active { transform: scale(0.98); }
.btn-sm { padding: 0.7em 1.1em; font-size: 0.9rem; }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: var(--accent); }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { background: var(--ink); }
.btn-ghost { border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 14px var(--gutter);
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.nav.scrolled { border-bottom-color: var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 1.1rem; letter-spacing: -0.01em; }
.brand em { font-family: var(--serif); font-weight: 400; font-size: 1.2em; color: var(--accent); }
.brand-mark { width: 26px; height: 26px; }
.nav-links { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; font-size: 0.95rem; color: var(--ink-2); position: relative; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease);
}
.nav-links a:hover::after { transform: scaleX(1); }

/* ---------- hero ---------- */
.hero {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(48px, 9vw, 120px) var(--gutter) clamp(56px, 8vw, 110px);
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(32px, 5vw, 72px); align-items: center;
}
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 0.9rem; color: var(--ink-2); margin: 0 0 28px; padding: 6px 14px 6px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sage); box-shadow: 0 0 0 4px color-mix(in srgb, var(--sage) 22%, transparent); }
.hero h1 { font-size: clamp(3.1rem, 8.2vw, 7rem); }
.lede { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--ink-2); max-width: 34em; margin: 28px 0 36px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-meta { list-style: none; padding: 0; margin: 44px 0 0; display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: 0.92rem; color: var(--muted); }
.hero-meta .mono { color: var(--accent); margin-right: 6px; }

.hero-viz { position: relative; padding-bottom: 72px; }
.viz-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 20px 20px 84px;
  box-shadow: 0 1px 0 rgba(255,255,255,.7) inset, 0 30px 60px -30px rgba(23,20,15,.35), 0 8px 20px -12px rgba(23,20,15,.2);
  transform: rotate(1.2deg);
}
.viz-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: var(--muted); padding-bottom: 14px; border-bottom: 1px dashed var(--line); }
.viz-status { font-size: 0.6rem; color: var(--muted); padding: 3px 8px; border: 1px solid var(--line); border-radius: 999px; }
.pulse { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 50%, transparent); } 100% { box-shadow: 0 0 0 9px transparent; } }

.viz-chart { position: relative; padding: 22px 0 8px; }
.viz-chart svg { width: 100%; height: auto; overflow: visible; }
.viz-chart .grid line { stroke: var(--line); stroke-width: 1; }
.viz-chart .marker { stroke: var(--ink); stroke-width: 1; stroke-dasharray: 3 4; opacity: .45; }
.viz-chart .area { opacity: 0; animation: fadeIn 1s 1.6s forwards; }
.ln { fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2.2s 0.5s var(--ease) forwards; }
.ln-cost { stroke: var(--accent); }
.ln-out { stroke: var(--sage); animation-delay: 0.7s; }
.end { opacity: 0; animation: fadeIn 0.4s 2.6s forwards; }
.end-cost { fill: var(--accent); }
.end-out { fill: var(--sage); }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadeIn { to { opacity: 1; } }
.marker-label { position: absolute; top: 4px; left: calc(150 / 360 * 100%); transform: translateX(-50%); font-size: 0.6rem; color: var(--ink-2); background: var(--card); padding: 2px 6px; border: 1px solid var(--line); border-radius: 999px; white-space: nowrap; }
.legend { display: flex; gap: 16px; margin-top: 10px; font-size: 0.78rem; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.sw { width: 14px; height: 3px; border-radius: 2px; display: inline-block; }
.sw-out { background: var(--sage); }
.sw-cost { background: var(--accent); }

.kpis { list-style: none; margin: 14px 0 0; padding: 14px 0 0; border-top: 1px dashed var(--line); display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.kpis li { display: flex; flex-direction: column; gap: 4px; padding: 10px; border-radius: 10px; background: var(--paper); font-size: 0.76rem; color: var(--ink-2); line-height: 1.25; }
.kpis b { font-family: var(--serif); font-weight: 400; font-size: 1.7rem; line-height: 1; }
.kpis .good { color: #5f7050; }

.feed {
  position: absolute; left: -32px; bottom: 0; width: min(340px, 82%);
  background: var(--night); color: var(--paper); border-radius: 14px; padding: 14px 16px;
  transform: rotate(-2deg); box-shadow: 0 24px 40px -20px rgba(23,20,15,.65);
}
.feed-head { display: flex; align-items: center; gap: 8px; color: rgba(243,239,231,.6); font-size: 0.62rem; margin-bottom: 10px; }
.feed ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.feed li { display: flex; align-items: center; gap: 10px; font-size: 0.82rem; animation: feedIn 0.5s var(--ease) both; }
.feed li:nth-child(2) { opacity: .7; }
.feed li:nth-child(3) { opacity: .4; }
.feed .ok { flex: none; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: 0.7rem; background: color-mix(in srgb, var(--sage) 35%, transparent); color: #c9d4b8; }
@keyframes feedIn { from { opacity: 0; transform: translateY(-6px); } }

/* ---------- marquee ---------- */
.marquee { border-block: 1px solid var(--line); overflow: hidden; padding: 18px 0; background: var(--paper-2); }
.marquee-track { display: flex; width: max-content; gap: 28px; align-items: center; animation: marquee 40s linear infinite; }
.marquee span { font-family: var(--serif); font-size: clamp(1.4rem, 2.6vw, 2rem); white-space: nowrap; }
.marquee i { color: var(--accent); font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { max-width: var(--max); margin: 0 auto; padding: clamp(72px, 11vw, 140px) var(--gutter); }
.section-head { display: grid; grid-template-columns: 1fr; gap: 18px; margin-bottom: clamp(40px, 6vw, 72px); max-width: 760px; }
.section-head h2 { font-size: clamp(2.6rem, 6vw, 4.8rem); }
.kicker { color: var(--accent); margin: 0; }
.section-sub { font-size: 1.1rem; color: var(--ink-2); margin: 0; max-width: 34em; }

/* services */
.services { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.svc {
  position: relative; padding: 34px 28px 36px 0; border-bottom: 1px solid var(--line);
  transition: background 0.35s;
}
.svc:not(:nth-child(3n+1)) { padding-left: 28px; border-left: 1px solid var(--line); }
.svc::before {
  content: ""; position: absolute; left: 0; top: -1px; height: 2px; width: 0; background: var(--accent); transition: width 0.5s var(--ease);
}
.svc:hover::before { width: 100%; }
.svc-n { color: var(--muted); }
.svc h3 { font-family: var(--serif); font-size: 1.85rem; line-height: 1.1; margin: 18px 0 12px; }
.svc p { color: var(--ink-2); margin: 0 0 20px; font-size: 0.98rem; }
.tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { font-size: 0.78rem; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }

/* dark slots */
.section.dark {
  max-width: none; background: var(--night); color: var(--paper);
  background-image: radial-gradient(60% 50% at 85% 0%, rgba(177,74,44,.22), transparent 70%), radial-gradient(50% 40% at 0% 100%, rgba(127,139,108,.16), transparent 70%);
}
.section.dark > * { max-width: calc(var(--max) - 2 * var(--gutter)); margin-left: auto; margin-right: auto; }
.section.dark .section-head { margin-left: auto; margin-right: auto; max-width: calc(var(--max) - 2 * var(--gutter)); }
.section.dark .section-head h2, .section.dark .section-head p.section-sub { max-width: 760px; }
.section.dark .section-sub { color: rgba(243,239,231,.72); }
.section.dark h2 em { color: #e07a58; }
.section.dark .kicker { color: #e07a58; }

.slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.slot {
  position: relative; display: flex; flex-direction: column; gap: 24px;
  background: var(--night-2); border: 1px solid var(--night-line); border-radius: 18px; padding: 30px 28px;
  transition: transform 0.4s var(--ease), border-color 0.4s;
}
.slot:hover { transform: translateY(-6px); border-color: rgba(243,239,231,.3); }
.slot-len { color: rgba(243,239,231,.55); }
.slot h3 { font-family: var(--serif); font-size: 2.4rem; line-height: 1; margin: 12px 0 10px; }
.slot header p { color: rgba(243,239,231,.7); margin: 0; font-size: 0.98rem; }
.slot-feature { background: var(--paper); color: var(--ink); border-color: transparent; transform: translateY(-14px); }
.slot-feature:hover { transform: translateY(-20px); }
.slot-feature .slot-len { color: var(--muted); }
.slot-feature header p { color: var(--ink-2); }
.badge { position: absolute; top: -12px; right: 22px; background: var(--accent); color: var(--accent-ink); padding: 6px 12px; border-radius: 999px; font-size: 0.64rem; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; flex: 1; }
.checks li { position: relative; padding-left: 28px; font-size: 0.96rem; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 0.35em; width: 16px; height: 16px; border-radius: 4px;
  border: 1.5px solid currentColor; opacity: .45;
}
.checks li::after {
  content: ""; position: absolute; left: 5px; top: calc(0.35em + 3px); width: 5px; height: 8px;
  border: solid var(--accent); border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.slot-feature .checks li::after { border-color: var(--accent); }
.slot:not(.slot-feature) .checks li::after { border-color: #e07a58; }
.slot footer { padding-top: 18px; border-top: 1px dashed var(--night-line); font-size: 0.92rem; display: flex; flex-direction: column; gap: 4px; }
.slot-feature footer { border-top-color: var(--line); }
.slot footer .mono { opacity: .6; font-size: 0.64rem; }

/* process */
.timeline { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.timeline::before { content: ""; position: absolute; top: 9px; left: 0; right: 0; height: 1px; background: var(--line); }
.step { position: relative; padding: 44px 26px 0 0; }
.step::before {
  content: ""; position: absolute; top: 2px; left: 0; width: 15px; height: 15px; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--accent);
}
.step:first-child::before { background: var(--accent); }
.step-t { color: var(--accent); }
.step h3 { font-family: var(--serif); font-size: 1.9rem; margin: 10px 0 10px; }
.step p { color: var(--ink-2); margin: 0; font-size: 0.97rem; }

.principles { margin-top: clamp(56px, 8vw, 96px); display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.principle { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.principle .mono { color: var(--muted); font-size: 0.64rem; }
.principle p { font-family: var(--serif); font-size: 1.45rem; line-height: 1.2; margin: 10px 0 0; }

/* faq */
#faq { padding-top: 0; }
.faq-wrap { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq-wrap .section-head { position: sticky; top: 100px; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 24px 44px 24px 0; position: relative;
  font-family: var(--serif); font-size: clamp(1.35rem, 2.2vw, 1.7rem); line-height: 1.2;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-family: var(--sans); font-weight: 400; font-size: 1.6rem; color: var(--accent); transition: transform 0.3s var(--ease);
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { margin: -6px 0 24px; color: var(--ink-2); max-width: 38em; }

/* book */
.book { display: grid; grid-template-columns: 0.75fr 1.25fr; gap: clamp(32px, 6vw, 80px); align-items: start; border-top: 1px solid var(--line); }
.book-copy h2 { font-size: clamp(3rem, 7vw, 5.6rem); margin: 18px 0 20px; }
.tz { color: var(--muted); margin-top: 18px; }

.booker {
  background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: clamp(20px, 3vw, 34px);
  box-shadow: 0 30px 60px -40px rgba(23,20,15,.4);
  display: grid; gap: 26px;
}
.booker fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.booker legend { color: var(--muted); margin-bottom: 12px; padding: 0; }
.day-row { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.chip {
  flex: 0 0 auto; appearance: none; cursor: pointer; font: inherit; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); border-radius: 12px;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s var(--ease);
}
.chip:hover { border-color: var(--ink); }
.chip[aria-checked="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.day-chip { display: flex; flex-direction: column; align-items: center; min-width: 64px; padding: 10px 8px; }
.day-chip small { font: 500 0.64rem var(--mono); letter-spacing: 0.08em; text-transform: uppercase; opacity: .7; }
.day-chip strong { font-family: var(--serif); font-weight: 400; font-size: 1.7rem; line-height: 1.1; }
.time-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.time-chip { padding: 12px 8px; font: 500 0.88rem var(--mono); }
.time-chip[aria-checked="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field-grid label { display: flex; flex-direction: column; gap: 6px; font-size: 0.86rem; color: var(--ink-2); font-weight: 500; }
.field-grid .full { grid-column: 1 / -1; }
.field-grid input, .field-grid select, .field-grid textarea {
  font: 400 1rem var(--sans); color: var(--ink); background: var(--paper);
  border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; width: 100%;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field-grid textarea { resize: vertical; min-height: 92px; }
.field-grid input:focus, .field-grid select:focus, .field-grid textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}
.field-grid [aria-invalid="true"] { border-color: var(--accent); }
.booker-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 22px; border-top: 1px dashed var(--line); }
.summary { margin: 0; font-size: 0.95rem; color: var(--ink-2); }
.summary b { color: var(--ink); }
.form-error { margin: -10px 0 0; color: var(--accent); font-size: 0.9rem; min-height: 1em; }
.form-error:empty { display: none; }

/* footer */
.footer { background: var(--night); color: var(--paper); padding: 72px var(--gutter) 32px; overflow: hidden; }
.footer-big { font-family: var(--serif); font-size: clamp(4rem, 17vw, 15rem); line-height: 0.85; letter-spacing: -0.03em; text-align: center; color: rgba(243,239,231,.92); }
.footer-big em { color: #e07a58; }
.footer-row { max-width: var(--max); margin: 48px auto 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid var(--night-line); font-size: 0.92rem; color: rgba(243,239,231,.7); }
.footer-row p { margin: 0; }
.footer-row a { color: var(--paper); text-decoration-color: #e07a58; text-underline-offset: 4px; }

/* reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
.hero .reveal:nth-child(2) { transition-delay: .08s; }
.hero .reveal:nth-child(3) { transition-delay: .16s; }
.hero .reveal:nth-child(4) { transition-delay: .24s; }
.hero .reveal:nth-child(5) { transition-delay: .32s; }
.hero-viz.reveal { transition-delay: .2s; }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .hero { grid-template-columns: 1fr; }
  .hero-viz { max-width: 560px; margin: 12px auto 0; width: 100%; }
  .services { grid-template-columns: repeat(2, 1fr); }
  .svc:not(:nth-child(3n+1)) { padding-left: 0; border-left: 0; }
  .svc:nth-child(even) { padding-left: 28px; border-left: 1px solid var(--line); }
  .slots { grid-template-columns: 1fr; max-width: 620px; }
  .slot-feature { transform: none; }
  .slot-feature:hover { transform: translateY(-6px); }
  .timeline { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .timeline::before { display: none; }
  .step { border-top: 1px solid var(--line); }
  .step::before { top: -8px; }
  .faq-wrap, .book { grid-template-columns: 1fr; }
  .faq-wrap .section-head { position: static; margin-bottom: 0; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav-links { display: none; }
  .services, .principles { grid-template-columns: 1fr; }
  .svc:nth-child(even) { padding-left: 0; border-left: 0; }
  .svc { padding-right: 0; }
  .timeline { grid-template-columns: 1fr; }
  .field-grid { grid-template-columns: 1fr; }
  .hero-viz { padding-bottom: 0; }
  .viz-card { transform: none; padding: 14px 14px 40px; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .feed { position: relative; left: auto; bottom: auto; width: auto; margin: -26px 10px 0; }
  .booker-foot .btn { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
}

/* ---------- selected work ---------- */
.work-section { padding-top: 0; }
.work { border-top: 1px solid var(--ink); }
.case {
  display: grid; grid-template-columns: 0.32fr 1fr; gap: clamp(20px, 4vw, 64px);
  padding: clamp(32px, 4vw, 48px) 0; border-bottom: 1px solid var(--line);
  position: relative;
}
.case::before {
  content: ""; position: absolute; left: 0; top: -1px; height: 2px; width: 0; background: var(--accent); transition: width 0.6s var(--ease);
}
.case:hover::before { width: 100%; }
.case-meta { display: flex; flex-direction: column; gap: 10px; }
.case-n { color: var(--accent); }
.case-type { color: var(--muted); }
.case h3 { font-family: var(--serif); font-size: clamp(2.4rem, 4.6vw, 3.8rem); line-height: 1; letter-spacing: -0.01em; }
.case-lede { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--ink-2); margin: 14px 0 20px; max-width: 36em; }
.case-points { list-style: none; padding: 0; margin: 0 0 24px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.case-points li { font-size: 0.93rem; color: var(--ink-2); padding-top: 12px; border-top: 1px dashed var(--line); }
.case-link {
  display: inline-flex; align-items: center; gap: 6px; font-weight: 500; text-decoration: none;
  border-bottom: 1px solid var(--accent); padding-bottom: 2px;
}
.case-link span { color: var(--accent); transition: transform 0.25s var(--ease); }
.case-link:hover span { transform: translate(3px, -3px); }

@media (max-width: 1020px) {
  .case { grid-template-columns: 1fr; gap: 14px; }
  .case-meta { flex-direction: row; justify-content: space-between; }
  .case-points { grid-template-columns: 1fr; gap: 10px; }
}

/* keep anchored sections clear of the sticky nav */
.section { scroll-margin-top: 64px; }
