/* ═══════════════════════════════════════════════════════════
   Steep style system — serif analytics on warm paper
   Near-monochrome white canvas · Signifier-style serif at 400
   (Source Serif 4) · Inter half-step weights for Söhne · one
   peach accent per page · shadows only on floating artifacts.
   ═══════════════════════════════════════════════════════════ */

:root {
  /* Colors */
  --ink-black: #17191c;
  --paper-white: #ffffff;
  --mist-gray: #f2f2f3;
  --fog-white: #fafafb;
  --slate-gray: #777b86;
  --ash-gray: #979799;
  --smoke-gray: #a3a6af;
  --blush-peach: #fbe1d1;
  --sienna-brown: #5d2a1a;
  --hairline: #ececec;

  /* Type */
  --font-serif: 'Source Serif 4', 'Signifier', Georgia, ui-serif, serif;
  --font-sans: 'Inter', 'Sohne', -apple-system, BlinkMacSystemFont, ui-sans-serif, sans-serif;

  --text-caption: 15px;
  --text-body: 17px;
  --text-body-lg: 20px;
  --text-subheading: 22px;
  --text-heading-sm: 26px;
  --text-heading: 44px;
  --text-heading-lg: 64px;
  --text-display: 90px;

  /* Shape */
  --radius-card: 24px;
  --radius-elevated: 20px;
  --radius-input: 16px;
  --radius-image: 12px;
  --radius-pill: 9999px;

  /* Elevation — only floating artifacts earn shadow */
  --shadow-artifact: 0 0 0 1px rgba(4, 23, 43, 0.05), 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);

  /* Layout */
  --page-max: 1200px;
  --reading: 700px;
  --section-gap: 80px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: var(--text-body);
  font-weight: 400;
  line-height: 1.35;
  color: var(--ink-black);
  background: var(--paper-white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--blush-peach); color: var(--sienna-brown); }

a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }

:focus-visible {
  outline: 2px solid var(--ink-black);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── Type roles ──────────────────────────────────────────── */

.display,
.heading-lg,
.heading-md,
.case-title {
  font-family: var(--font-serif);
  font-weight: 400;
  color: var(--ink-black);
}

.display {
  font-size: clamp(46px, 7vw, var(--text-display));
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.heading-lg {
  font-size: clamp(38px, 5vw, var(--text-heading-lg));
  line-height: 1.2;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.heading-md,
.case-title {
  font-size: clamp(32px, 4vw, var(--text-heading));
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.display em, .heading-lg em, .heading-md em {
  font-style: italic;
  letter-spacing: -0.02em;
}

.label {
  font-size: 14px;
  font-weight: 400;
  color: var(--ash-gray);
  letter-spacing: 0.01em;
}

/* ── Buttons — pill pair ─────────────────────────────────── */

.btn {
  display: inline-block;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  text-decoration: none;
  padding: 12px 22px;
  line-height: 1;
  transition: opacity 0.2s ease, background 0.2s ease;
}

.btn-filled {
  background: var(--ink-black);
  color: var(--paper-white);
  border: 1px solid var(--ink-black);
}
.btn-filled:hover { opacity: 0.85; }

.btn-ghost {
  background: transparent;
  color: var(--ink-black);
  border: 1px solid var(--ink-black);
}
.btn-ghost:hover { background: var(--mist-gray); }

.btn-sm { padding: 9px 18px; font-size: 15px; }

/* Text link with arrow — underline only on hover */
.arrow-link {
  color: var(--ink-black);
  text-decoration: none;
  white-space: nowrap;
}
.arrow-link:hover { text-decoration: underline; }

/* ── Whisper-quiet nav ───────────────────────────────────── */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 32px;
  transition: background 0.25s ease;
}
.nav.scrolled {
  background: rgba(255, 255, 255, 0.88);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.nav-inner {
  max-width: var(--page-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  font-size: 18px;
  font-weight: 480;
  letter-spacing: -0.162px;
  color: var(--ink-black);
  text-decoration: none;
}

.nav-center { display: flex; gap: 28px; }
.nav-center a {
  font-size: 16px;
  font-weight: 400;
  color: var(--ink-black);
  text-decoration: none;
  padding: 2px 0;
}
.nav-center a:hover { text-decoration: underline; text-underline-offset: 4px; }

.nav-right { display: flex; align-items: center; gap: 20px; }
.nav-textlink {
  font-size: 16px;
  color: var(--ink-black);
  text-decoration: none;
}
.nav-textlink:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ── Hero — headline with floating artifacts ─────────────── */

.hero {
  position: relative;
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 168px 24px 96px;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}

.hero-sub {
  font-size: var(--text-body-lg);
  font-weight: 430;
  line-height: 1.5;
  color: var(--slate-gray);
  max-width: 620px;
  margin: 24px auto 0;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 32px;
}

.cred-line {
  margin-top: 72px;
  font-size: var(--text-caption);
  line-height: 1.5;
  color: var(--ash-gray);
}

/* Floating product artifacts */
.hero-artifacts { position: relative; z-index: 1; }

.artifact {
  background: var(--paper-white);
  border-radius: var(--radius-elevated);
  box-shadow: var(--shadow-artifact);
  padding: 16px;
}

.af-label {
  font-size: 13px;
  font-weight: 400;
  color: var(--ash-gray);
  letter-spacing: 0;
}
.af-center { text-align: center; }

.artifact .af-metric {
  font-size: 22px;
  font-weight: 500;
  color: var(--ink-black);
  margin-top: 6px;
  letter-spacing: -0.2px;
}
.artifact .af-delta {
  font-size: 13px;
  color: var(--slate-gray);
  margin: 2px 0 10px;
}
.af-spark {
  width: 100%;
  height: 44px;
}
.af-spark path {
  fill: none;
  stroke: var(--sienna-brown);
  stroke-width: 2;
  stroke-linecap: round;
}

.orbit-mini { width: 100%; height: auto; }
.mr { fill: none; stroke-linecap: round; }
.mr-1 { stroke: #5d2a1a; stroke-width: 2.5; stroke-dasharray: 0.1 7; opacity: 0.9; }
.mr-2 { stroke: #8a5a3a; stroke-width: 2.5; stroke-dasharray: 0.1 8; opacity: 0.8; }
.mr-3 { stroke: #b98a5f; stroke-width: 2.5; stroke-dasharray: 0.1 6; opacity: 0.8; }

.af-bars {
  width: 100%;
  height: 44px;
  margin-top: 10px;
}
.af-bars rect { fill: var(--sienna-brown); opacity: 0.85; }

.af-dod .af-label {
  display: flex;
  align-items: center;
  gap: 7px;
}
.live-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--sienna-brown);
  display: inline-block;
  flex-shrink: 0;
  animation: blink 1.6s steps(2, start) infinite;
}
@keyframes blink { 50% { opacity: 0.2; } }
.af-progress {
  margin-top: 14px;
  height: 6px;
  border-radius: var(--radius-pill);
  background: var(--mist-gray);
  overflow: hidden;
}
.af-progress-fill {
  height: 100%;
  border-radius: var(--radius-pill);
  background: var(--ink-black);
}

/* Desktop: artifacts float at varied offsets around the headline */
@media (min-width: 1280px) {
  .hero { min-height: 720px; }
  .hero-artifacts { position: absolute; inset: 0; pointer-events: none; }
  .hero-artifacts .artifact { position: absolute; }
  .af-stat  { left: 8px;   top: 200px;    width: 250px; }
  .af-orbit { right: 0;    top: 152px;    width: 236px; }
  .af-defi  { left: 28px;  bottom: 110px; width: 250px; }
  .af-dod   { right: 8px; bottom: 124px; width: 296px; }
}

/* Below desktop: artifacts gather beneath the headline */
@media (max-width: 1279px) {
  .hero { padding-bottom: 64px; }
  .hero-artifacts {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-top: 48px;
  }
  .hero-artifacts .artifact { width: min(264px, 44%); }
  .hero { display: flex; flex-direction: column; }
  .hero-copy { order: 0; }
  .hero-artifacts { order: 1; }
}

@media (max-width: 640px) {
  .hero { padding-top: 132px; }
  .hero-artifacts .artifact { width: min(300px, 100%); }
}

/* ── Sections ────────────────────────────────────────────── */

.section {
  padding: var(--section-gap) 24px;
}
.section > * { }

.band { background: var(--fog-white); }

.section-head {
  max-width: var(--reading);
  margin: 0 auto 8px;
  text-align: center;
}
.section-head .heading-lg { margin-top: 14px; }
.section-lede {
  margin: 18px auto 0;
  font-size: var(--text-body);
  font-weight: 430;
  line-height: 1.5;
  color: var(--slate-gray);
  max-width: 560px;
}

section { scroll-margin-top: 76px; }

/* ── Case studies ────────────────────────────────────────── */

.case {
  max-width: var(--reading);
  margin: 96px auto 0;
}

.case-title { margin: 10px 0 8px; }

.tags {
  font-size: var(--text-caption);
  line-height: 1.5;
  color: var(--ash-gray);
  margin-bottom: 20px;
}
.tags .arrow-link { color: var(--ink-black); }

.case-body p { margin-bottom: 18px; line-height: 1.5; }
.case-body .k { font-weight: 480; color: var(--ink-black); }
.case-body i { font-family: var(--font-serif); font-style: italic; }

/* Floating artifact frames — the only shadowed elements */
.artifact-frame {
  background: var(--paper-white);
  border-radius: var(--radius-elevated);
  box-shadow: var(--shadow-artifact);
  padding: 14px;
  margin-top: 32px;
}
.artifact-frame img { border-radius: var(--radius-image); width: 100%; }

.artifact-caption {
  font-size: 13px;
  color: var(--ash-gray);
  text-align: center;
  padding: 10px 4px 0;
}

@media (min-width: 900px) {
  .artifact-frame {
    width: 860px;
    margin-left: calc((700px - 860px) / 2);
  }
}

/* Carousel — full-width slides inside one floating artifact */
.carousel { padding-bottom: 10px; }

.carousel-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  border-radius: var(--radius-image);
}
@media (prefers-reduced-motion: reduce) {
  .carousel-track { scroll-behavior: auto; }
}
.carousel-track::-webkit-scrollbar { display: none; }

.carousel .slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  margin: 0;
  display: flex;
  flex-direction: column;
}
.carousel .slide img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-image);
  margin: auto 0;
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding-top: 10px;
}

.c-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--ink-black);
  background: var(--paper-white);
  color: var(--ink-black);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease;
}
.c-btn:hover:not(:disabled) { background: var(--mist-gray); }
.c-btn:disabled {
  border-color: var(--hairline);
  color: var(--smoke-gray);
  cursor: default;
}

.c-count {
  font-size: 14px;
  color: var(--ash-gray);
  min-width: 44px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

/* Orbit artifact (case 01) */
.orbit-frame { padding-bottom: 10px; }
.orbit-stage {
  background: #dcd8d0;
  border-radius: var(--radius-image);
  overflow: hidden;
}
.orbit-svg { width: 100%; height: auto; display: block; }

.orbit-threads line {
  stroke: #a9a296;
  stroke-width: 0.7;
  opacity: 0.4;
}

.band { fill: none; stroke-linecap: round; stroke-width: 3.4; }
.band-masks { stroke: #d9a468; }
.band-monument { stroke: #bf7434; }

.spin-slow { transform-origin: center; animation: spin 160s linear infinite; }
.spin-masks { transform-origin: 320px 260px; animation: spin 260s linear infinite; }
.spin-monument { transform-origin: 320px 260px; animation: spin 200s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Peach accent — exactly one per page */
.peach-callout {
  background: var(--blush-peach);
  border-radius: var(--radius-card);
  padding: 36px 40px;
  margin: 8px 0 10px;
}
.peach-quote {
  font-size: var(--text-body-lg);
  font-weight: 450;
  line-height: 1.45;
  letter-spacing: -0.1px;
  color: var(--sienna-brown);
}
.peach-attr {
  margin-top: 14px;
  font-size: 14px;
  font-weight: 400;
  color: var(--sienna-brown);
  opacity: 0.75;
}

/* ── UI recreations inside artifact frames ───────────────── */

.ui-frame { padding: 14px 14px 8px; }

/* What Should We Make */
.wswm-card {
  background: var(--paper-white);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-image);
  padding: 20px 20px 16px;
}
.wswm-title { font-weight: 500; font-size: 18px; color: #1a3a1a; }

/* WSWM — recipe browser + sides recreations */
.carousel .slide .wswm-card { margin: auto 0; width: 100%; }

.wsteps { display: flex; gap: 14px; margin-bottom: 18px; }
.wstep { flex: 1; text-align: center; }
.wstep span {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #b5bab1;
  margin-bottom: 6px;
  white-space: nowrap;
}
.wstep.done span { color: #58b947; }
.wstep.done.muted span { color: #8a8f95; }
.wbar {
  display: block;
  height: 8px;
  border-radius: 999px;
  background: #eef3e6;
}
.wbar.fill { background: #58b947; }

.wswm-h1 {
  text-align: center;
  font-size: 20px;
  font-weight: 600;
  color: #3b4238;
  letter-spacing: -0.2px;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1.5px solid #eef1ea;
}

.wrowhead { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.wadd {
  font-size: 12px;
  font-weight: 600;
  color: #58b947;
  border: 1.5px solid #a8dd8c;
  border-radius: 999px;
  padding: 7px 14px;
  background: #f7fdf2;
  white-space: nowrap;
}

.wfilters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.wchip {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #5b6156;
  border: 1.5px solid #e4e7e0;
  border-radius: 999px;
  padding: 7px 13px;
  background: #fff;
  white-space: nowrap;
}
.wchip.on { background: #58b947; border-color: #58b947; color: #fff; }

.wrecipe { border: 1.5px solid #e4e7e0; border-radius: 14px; padding: 14px 16px; }
.wrecipe-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 10px; }
.wrname { font-size: 16px; font-weight: 600; color: #3b4238; margin-bottom: 6px; }
.wtag {
  display: inline-block;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #d05252;
  background: #fde3e3;
  border-radius: 999px;
  padding: 3px 10px;
}
.wcollapse {
  width: 30px; height: 30px;
  border: 1.5px solid #a8dd8c;
  border-radius: 999px;
  color: #6a7365;
  font-size: 12px;
  line-height: 27px;
  text-align: center;
  flex-shrink: 0;
}
.wrecipe img { border-radius: 10px; margin: 4px 0 12px; width: 100%; }

.wlabel {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #a3a8a0;
  margin-bottom: 8px;
}
.wings { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 14px; }
.wings span {
  font-size: 11px;
  font-weight: 500;
  color: #5b6156;
  border: 1.5px solid #e4e7e0;
  border-radius: 999px;
  padding: 5px 12px;
}
.wdirs { margin: 0 0 4px 18px; }
.wdirs li { font-size: 12px; line-height: 1.5; color: #5b6156; padding: 2px 0; }
.wdirs li::marker { color: #58b947; font-weight: 700; }

/* Sides slide */
.wbrand { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.wlogo { font-size: 19px; font-weight: 700; letter-spacing: -0.3px; color: #58b947; }
.wtagline { font-size: 9px; font-weight: 600; letter-spacing: 0.14em; color: #a3a8a0; margin-top: 2px; }
.wavatars { display: flex; align-items: center; gap: 8px; }
.wav {
  width: 34px; height: 34px;
  border-radius: 999px;
  border: 1.5px solid #e4e7e0;
  background: #f6f7f4;
  font-size: 13px;
  line-height: 31px;
  text-align: center;
}
.wav-j { background: #eaf7e2; border-color: #58b947; color: #3f8c2e; font-weight: 700; }

.wstepcount {
  text-align: center;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: #a3a8a0;
  margin-bottom: 10px;
}

.wvariety {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1.5px solid #e4e7e0;
  border-radius: 14px;
  padding: 12px 16px;
  margin-bottom: 14px;
}
.wvariety .wlabel { margin-bottom: 3px; }
.wgood { font-size: 13px; font-weight: 600; color: #58b947; }
.wdots { display: inline-flex; gap: 7px; }
.wdots i { width: 11px; height: 11px; border-radius: 999px; display: inline-block; }

.wdinner {
  border: 1.5px solid #e4e7e0;
  border-left: 4px solid #d98e3f;
  border-radius: 14px;
  padding: 14px 16px;
}
.wdinner-head { display: flex; justify-content: space-between; align-items: center; }
.wclose { color: #b5bab1; font-size: 16px; line-height: 1; }
.wtoggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  color: #5b6156;
  border: 1.5px solid #e4e7e0;
  border-radius: 999px;
  padding: 6px 14px 6px 6px;
  margin: 2px 0 14px;
}
.wtoggle i {
  width: 30px; height: 17px;
  border-radius: 999px;
  background: #e4e7e0;
  position: relative;
  display: inline-block;
}
.wtoggle i::after {
  content: '';
  position: absolute;
  left: 2px; top: 2px;
  width: 13px; height: 13px;
  border-radius: 999px;
  background: #fff;
}
.wtoggle.on { background: #f0fae8; border-color: #a8dd8c; color: #3f8c2e; }
.wtoggle.on i { background: #58b947; }
.wtoggle.on i::after { left: 15px; }

.wdinner-2 { margin-top: 12px; }
.wdinner-2 .wtoggle { margin-bottom: 2px; }
.wsels { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.wsels:last-child { margin-bottom: 4px; }
.wsel {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  font-weight: 500;
  color: #5b6156;
  background: #f6f7f4;
  border: 1.5px solid #e9ebe6;
  border-radius: 10px;
  padding: 9px 13px;
  white-space: nowrap;
}
.wsel i { width: 8px; height: 8px; border-radius: 999px; display: inline-block; flex-shrink: 0; }
.wsel.sel-green { background: #f0fae8; border-color: #58b947; color: #3f8c2e; font-weight: 600; }
.wsel.sel-orange { background: #fdeedd; border-color: #d98e3f; color: #c77728; font-weight: 600; }

/* Grocery list slide */
.wmenu {
  border: 1.5px solid #e4e7e0;
  border-radius: 14px;
  padding: 14px 16px 12px;
  margin-bottom: 12px;
}
.wmenu-item {
  display: flex;
  gap: 12px;
  padding: 10px 2px;
  border-bottom: 1px solid #eef1ea;
}
.wmenu-item i {
  width: 4px;
  border-radius: 999px;
  flex-shrink: 0;
  align-self: stretch;
}
.wmenu-item p { font-size: 14px; font-weight: 600; color: #3b4238; }
.wmenu-item span { display: block; font-size: 12px; color: #a3a8a0; margin-top: 2px; }
.wmore { font-size: 12px; color: #a3a8a0; padding-top: 10px; }

.witems {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1.5px solid #e4e7e0;
  border-radius: 14px;
  padding: 13px 16px;
  margin-bottom: 10px;
  font-size: 13.5px;
  font-weight: 500;
  color: #3b4238;
}
.witems b { color: #58b947; font-weight: 700; }

.whint { font-size: 12px; color: #a3a8a0; margin-bottom: 14px; }

.wsection {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #58b947;
  padding-bottom: 8px;
  border-bottom: 1.5px solid #eef1ea;
}
.wcheck {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 2px;
  border-bottom: 1px solid #eef1ea;
  font-size: 13.5px;
  font-weight: 500;
  color: #3b4238;
}
.wcheck i {
  width: 19px; height: 19px;
  border: 1.5px solid #d5d9d2;
  border-radius: 999px;
  flex-shrink: 0;
  display: inline-block;
}
.wcheck small { margin-left: auto; font-size: 11px; color: #b5bab1; }

.wfoot { display: flex; gap: 12px; margin-top: 18px; }
.wback {
  flex: 1;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: #5b6156;
  border: 1.5px solid #e4e7e0;
  border-radius: 999px;
  padding: 12px;
  background: #fff;
}
.wfin {
  flex: 1.7;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: #58b947;
  border: 2.5px solid #a8dd8c;
  border-radius: 999px;
  padding: 11px;
}

@media (max-width: 640px) {
  .wstep span { font-size: 8px; }
  .wfilters .wchip:nth-child(n+5) { display: none; }
  .wsels .wsel:nth-child(n+4) { display: none; }
  .wdirs li { font-size: 11px; }
}

/* Death & Taxes terminal */
.dod-card {
  background: #050805;
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  border-radius: var(--radius-image);
  padding: 20px 22px 14px;
  overflow: hidden;
}
.dod-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.dod-brand {
  font-family: var(--font-serif);
  color: #e8ffe8;
  font-size: 20px;
  letter-spacing: 0.02em;
}
.dod-live {
  color: #39ff5c;
  font-size: 10px;
  letter-spacing: 0.15em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.dod-live i {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #39ff5c;
  display: inline-block;
  animation: blink 1.6s steps(2, start) infinite;
}

.dod-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  border-top: 1px dashed #1d3a1d;
  border-bottom: 1px dashed #1d3a1d;
  padding: 10px 0;
  font-size: 11px;
  color: #6fae6f;
}
.dod-bar b { color: #39ff5c; font-weight: 400; }

.dod-progress { padding: 16px 0 4px; }
.dod-progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: #6fae6f;
  margin-bottom: 8px;
}
.dod-track {
  background: #0d160d;
  border: 1px solid #1d3a1d;
  border-radius: 3px;
  height: 22px;
  overflow: hidden;
}
.dod-fill {
  background: #39ff5c;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dod-fill span { color: #041104; font-size: 10px; font-weight: 700; }

.dod-log { padding: 14px 0 6px; }
.dod-log p {
  font-size: 11px;
  color: #39ff5c;
  opacity: 0.9;
  padding: 4px 0;
  border-bottom: 1px solid #0d160d;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Defi App — dark executive dashboard recreations (one chart per slide) */
.carousel .slide .defi-card { margin: auto 0; width: 100%; }

.defi-card {
  background: #0a0d10;
  border-radius: var(--radius-image);
  padding: 22px 24px 18px;
  color: var(--paper-white);
  overflow: hidden;
  font-variant-numeric: tabular-nums;
}
.defi-card em { font-style: normal; }

.defi-head {
  text-align: center;
  font-size: 16px;
  font-weight: 400;
  color: #98a1ab;
  letter-spacing: 0.01em;
  padding-bottom: 12px;
  margin-bottom: 20px;
  border-bottom: 4px double rgba(255, 255, 255, 0.28);
}
.defi-head b { font-weight: 600; color: var(--paper-white); margin-right: 6px; }

.defi-body { display: flex; gap: 24px; }
.defi-charts { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 20px; }

.defi-axis {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #68717c;
  margin-bottom: 10px;
}

.defi-bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 152px;
}
.dbar {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 4px;
}
.dv {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.1;
  white-space: nowrap;
}
.dv b { font-size: 10px; font-weight: 600; color: #eef1f4; }
.dv em { font-size: 8.5px; color: #7d8894; margin-top: 1px; }
.dbar i {
  display: block;
  width: 78%;
  min-height: 3px;
  border-radius: 2px 2px 0 0;
}
.defi-dates { display: flex; gap: 4px; margin-top: 6px; }
.defi-dates span { flex: 1; text-align: center; font-size: 8.5px; color: #68717c; }

.defi-rail {
  flex: 0 0 128px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.defi-rail div {
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.defi-rail div:first-child { border-top: none; }
.defi-rail b { font-size: 24px; font-weight: 600; color: var(--paper-white); letter-spacing: -0.3px; }
.defi-rail span { font-size: 11.5px; color: #98a1ab; }

/* Slide 2 — XP buckets */
.defi-bars-tall { height: 322px; }
.defi-bars-tall .dbar i { width: 64%; }
.defi-bars-tall .dv b { font-size: 11px; }
.defi-bars-tall .dv em { font-size: 9px; }
.dx {
  font-size: 9.5px;
  color: #68717c;
  margin-top: 6px;
  white-space: nowrap;
}

/* Slide 3 — power users leaderboards */
.ppanels { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.plabel {
  display: block;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #68717c;
  margin-bottom: 12px;
}
.prow { display: flex; align-items: center; gap: 8px; padding: 3px 0; }
.prank {
  flex: 0 0 16px;
  font-size: 9.5px;
  color: #68717c;
  text-align: right;
}
.ptrack { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; }
.ptrack i { display: block; height: 15px; border-radius: 2px; flex-shrink: 0; }
.pname {
  font-size: 10.5px;
  font-weight: 500;
  color: #eef1f4;
  line-height: 1.15;
  display: flex;
  flex-direction: column;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pname small { font-size: 8.5px; font-weight: 400; color: #7d8894; }

@media (max-width: 640px) {
  .defi-card { padding: 16px 14px 14px; }
  .defi-body { flex-direction: column; gap: 18px; }
  .defi-rail { flex-direction: row; flex-basis: auto; }
  .defi-rail div {
    flex: 1;
    border-top: none;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0 0 0 10px;
  }
  .defi-rail div:first-child { border-left: none; padding-left: 0; }
  .defi-rail b { font-size: 17px; }

  .defi-bars { height: 110px; }
  .defi-bars .dv { display: none; }
  .defi-dates span:nth-child(even) { display: none; }

  .defi-bars-tall { height: 230px; }
  .defi-bars-tall .dv { display: flex; }
  .defi-bars-tall .dv b { font-size: 7.5px; }
  .defi-bars-tall .dv em { display: none; }
  .dx { font-size: 6.5px; }

  .ppanels { grid-template-columns: 1fr; gap: 20px; }
}

/* ── Process ─────────────────────────────────────────────── */

.principles {
  max-width: var(--page-max);
  margin: 48px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.principle {
  background: var(--mist-gray);
  border-radius: var(--radius-card);
  padding: 32px 28px;
}
.principle-num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 24px;
  color: var(--slate-gray);
  margin-bottom: 14px;
}
.principle h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.2px;
  color: var(--ink-black);
  margin-bottom: 12px;
}
.principle p {
  font-size: 15px;
  font-weight: 430;
  line-height: 1.5;
  color: var(--slate-gray);
}

@media (max-width: 860px) {
  .principles { grid-template-columns: 1fr; max-width: var(--reading); }
}

/* ── About ───────────────────────────────────────────────── */

.about-grid {
  max-width: var(--page-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 48px;
  align-items: start;
}
.about-grid .heading-md { margin-top: 14px; text-wrap: balance; }

.about-body p {
  margin-bottom: 18px;
  line-height: 1.5;
  font-weight: 430;
  color: var(--ink-black);
}

@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; gap: 20px; max-width: var(--reading); }
}

/* ── Contact ─────────────────────────────────────────────── */

.contact { text-align: center; padding-top: 96px; padding-bottom: 64px; }
.contact-line { margin: 16px 0 36px; }
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
  justify-content: center;
  align-items: center;
}
.contact-resume { font-size: 16px; padding: 12px 4px; }

@media (max-width: 640px) {
  .contact-actions { flex-direction: column; }
}

/* ── Footer ──────────────────────────────────────────────── */

.footer {
  text-align: center;
  padding: 40px 24px 48px;
  font-size: var(--text-caption);
  line-height: 1.5;
  color: var(--slate-gray);
}
.footer .colophon { margin-top: 4px; color: var(--ash-gray); }

/* ── Reveal animations ───────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in { opacity: 1; transform: none; }
.d-1 { transition-delay: 0.08s; }
.d-2 { transition-delay: 0.16s; }
.d-3 { transition-delay: 0.24s; }
.d-4 { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .spin-slow, .spin-masks, .spin-monument, .live-dot, .dod-live i { animation: none; }
  .btn { transition: none; }
}

/* ── Small screens ───────────────────────────────────────── */

@media (max-width: 640px) {
  :root { --section-gap: 64px; }

  .nav { padding: 14px 20px; }
  .nav-center { display: none; }

  .hero-actions { flex-direction: column; align-items: center; }

  .case { margin-top: 72px; }

  .peach-callout { padding: 28px 24px; }

  .dod-bar { gap: 6px 14px; }
}
