:root {
  --paper: #f6f0e6;
  --ink: #0f1433;
  --muted: #625e53;
  --line: #dedbd5;
  --blue: #313827;
  --light: #eee7dc;
  --forest: #313827;
  --wood: #270b03;
  --sand: #c3b094;
  --honey: #a58b73;
}

body > header { border-color: var(--line); }
h1, h2, .lean-story h3 { font-weight: 700; }
.section { padding-block: clamp(60px, 8vw, 112px); }
.section-kicker { color: var(--muted); }
.blue, .dark, .button.blue { background: var(--wood); color: #fff; }
.blue:hover, .dark:hover, .button.blue:hover { background: var(--ink); color: #fff; }
.dark { background: var(--ink); }
body > header button[data-contact],
.hero .hero-actions button[data-contact] { background: var(--forest); color: #fff; }
body > header button[data-contact]:hover,
.hero .hero-actions button[data-contact]:hover { background: var(--ink); }

.outline { border-color: var(--line); }
:focus-visible { outline: 2px solid #270b03; outline-offset: 4px; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.84fr) minmax(0, 1.16fr);
  align-items: center;
  gap: 0;
  min-height: 0;
  padding-block: clamp(38px, 6vw, 88px);
}
.hero .hero-copy {
  position: relative;
  z-index: 1;
  margin-inline-end: -42px;
  padding: clamp(26px, 4vw, 60px);
  background: #fcfaf6;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 14px 48px #0f143312;
}
.hero h1 { font-size: clamp(48px, 5.5vw, 88px); line-height: 1.2; }
.hero .handline::after, .hero .hero-art::after, .hero .hero-art::before { display: none; }
.hero .hero-copy > p { color: var(--muted); }
:is(.hero .hero-actions, .studio-actions) { display: grid; gap: 10px; width: min(100%, 320px); }
:is(.hero .hero-actions, .studio-actions) :is(button, a) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  width: 100%;
  padding: 10px 16px;
  border-radius: 9px;
  font-size: 14px;
  text-align: start;
}
:is(.hero .hero-actions, .studio-actions) a:not(.studio-action-primary) { border: 1px solid var(--line); color: var(--forest); }
:is(.hero .hero-actions, .studio-actions) a:not(.studio-action-primary):hover { background: #eee7dc; }
.studio-actions .studio-action-primary { background: var(--forest); color: #fff; }
.studio-actions .studio-action-primary:hover { background: var(--ink); color: #fff; }
.hero .hero-art {
  display: block;
  position: relative;
  isolation: isolate;
  aspect-ratio: 4 / 3;
  min-height: 0;
  height: auto;
  overflow: hidden;
  background: var(--ink);
  border-radius: 18px;
}
.hero .hero-art img {
  display: block;
  position: static;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  object-position: center;
  transform: none;
}

.case-carousel .outcome-card,
.case-carousel .outcome-card.abdi,
.plans-grid article,
.report { background: #fcfaf6; border-color: var(--line); box-shadow: none; }
.plans-grid article.featured, .lean-example { background: #eee7dc; border-color: var(--line); }
.case-initial, .adv-step.active > span, .adv-service, .plan-badge { background: #eee7dc; color: var(--forest); }
.case-impact strong, .report-number strong { color: var(--forest); }
.problem.calm-problem { background: #2b2b2c; color: #fafafa; }
.problem.calm-problem::after { display: none; }
.problem.calm-problem .section-kicker::before { background: #2b2b2c; }
.problem.calm-problem .pain-accordions details > p { color: #dedede; }
.problem.calm-problem .pain-plus { color: #d0d0d0; }
.problem.calm-problem .pain-icon { filter: grayscale(1); }
.problem.calm-problem .section-kicker, .problem.calm-problem .empathy-intro h2 span { color: #e0e0e0; }
.problem-bridge a { background: #eee7dc; color: var(--forest); }
.pain-icon, .plant-icon, .crayon-icon, .adv-scene, .person-portrait, .about-art img, .art-sample img {
  filter: grayscale(1) sepia(.27) saturate(.75);
}
.adv-scroll .adv-stage::before, .adv-scroll .adv-stage::after { border-color: #a58b7338; }
.adv-progress { background: var(--line); }
.adv-progress > span, .sun-core { background: var(--honey); }
.lean-story > p, .lean-caption, .lean-example small { color: var(--muted); }
.wheel-center, .wheel-node.node-one, .wheel-node.node-three { background: #eee7dc; }
.wheel-node, .wheel-center { border-color: var(--line); }
.brand-palette { grid-template-columns: repeat(4, minmax(0, 1fr)); }
::selection { background: var(--sand); color: var(--ink); }

@media (max-width: 760px) {
  .hero { grid-template-columns: minmax(0, 1fr); align-items: start; padding-block: 22px 42px; }
  .hero .hero-art { grid-row: 1; aspect-ratio: 5 / 4; }
  .hero .hero-copy { grid-row: 2; margin: -42px 12px 0; padding: 24px; }
  .hero h1 { font-size: clamp(36px, 10vw, 58px); }
  :is(.hero .hero-actions, .studio-actions) { width: 100%; }
  .adv-scroll { height: 250svh; }
  .brand-palette { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 360px) {
  .hero .hero-copy { margin-inline: 6px; padding-inline: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .adv-scroll { height: auto; }
}

.case-runway .outcome-card,
.case-runway .outcome-card.abdi {
  background: var(--forest);
  color: #fff;
  border-color: var(--forest);
}
.case-runway .case-impact strong { color: var(--honey); }
.case-runway .case-impact > span,
.case-runway .case-pair b,
.case-runway .case-pair > div:last-child b { color: #fcfaf6; }
.case-runway .case-person small,
.case-runway .case-pair small,
.case-runway .outcome-card > p,
.case-runway .case-proof figcaption,
.case-runway .case-no { color: #fff2e4; }
.case-runway .case-pair { border-color: #c3b09455; }
.case-runway .case-pair > span { color: var(--honey); }

@media (prefers-reduced-motion: no-preference) {
  .case-runway .outcome-card.active { animation: case-enter 380ms ease both; }
}
@keyframes case-enter {
  from { opacity: .6; transform: translateY(9px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (min-width: 900px) and (min-height: 720px) and (prefers-reduced-motion: no-preference) {
  .case-runway { min-height: 157svh; }
  .case-runway .case-carousel { position: sticky; top: 24px; }
  .case-runway .outcome-grid { display: grid; }
  .case-runway .outcome-card {
    grid-area: 1 / 1;
    display: grid;
    visibility: hidden;
  }
  .case-runway .outcome-card.active { visibility: visible; }
}

.plans-grid article.featured .plan-guarantee,
.adv-step.active > span { color: var(--forest); }
.case-runway .case-initial { background: var(--forest); color: #fff; }
.lean-example { border-inline-start: 2px solid var(--honey); }

/* Keep the metric and its controls together on handheld screens. */
.case-runway .outcome-card {
  position: relative;
  isolation: isolate;
}
.case-runway .outcome-card::after { display: none; }
.case-runway .case-impact strong { letter-spacing: -.04em; }
@media (max-width: 760px) {
  #outcomes { padding-block: 48px; }
  #outcomes .section-heading { margin-bottom: 22px; }
  .case-runway .case-carousel .outcome-card.active {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 0;
    padding: 18px;
    border-radius: 14px;
  }
  .case-runway .case-person { margin: 0; }
  .case-runway .case-carousel .case-impact {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2px 14px;
    align-items: center;
    text-align: start;
    margin: 0;
  }
  .case-runway .case-carousel .abdi .case-impact {
    grid-template-columns: clamp(96px, 32vw, 130px) minmax(0, 1fr);
    padding-block: 12px;
  }
  .case-runway .case-carousel .case-impact > strong {
    grid-area: 1 / 1;
    font-size: clamp(58px, 18vw, 78px);
    line-height: 1.12;
    margin: 0;
  }
  .case-runway .case-carousel .case-impact > span {
    grid-area: 2 / 1;
    font-size: 14px;
    margin: 0;
  }
  .case-runway .case-carousel .abdi .case-proof {
    display: block;
    grid-area: 1 / 1 / 3 / 2;
    width: clamp(96px, 32vw, 130px);
    margin: 0;
    transform: none;
  }
  .case-runway .case-carousel .abdi .case-impact > strong { grid-area: 1 / 2; }
  .case-runway .case-carousel .abdi .case-impact > span { grid-area: 2 / 2; }
  .case-runway .case-proof a { width: 100%; }
  .case-runway .case-proof img { width: 100%; height: 104px; object-fit: contain; }
  .case-runway .case-carousel .abdi .case-proof figcaption { font-size: 10px; margin-top: 7px; }
  .case-runway .case-pair { margin: 0; padding: 10px 0; }
  .case-runway .case-pair small { font-size: 10px; }
  .case-runway .outcome-card > p { margin: 0; font-size: 12px; line-height: 1.75; }
  .case-runway .carousel-controls { margin-top: 12px; }
}

#plans .dashboard-plans > article {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.dashboard-plans .plan-badge { align-self: flex-start; }
.dashboard-plans article > p { min-height: 3.5em; }
.dashboard-plans .plan-orbit {
  position: relative;
  width: min(100%, 210px);
  height: 156px;
  margin: 16px auto 20px;
}
.dashboard-plans .plan-purpose,
.dashboard-plans .plan-guarantee {
  position: absolute;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  border-radius: 50%;
  padding: 12px;
  line-height: 1.55;
}
.dashboard-plans .plan-purpose {
  inset: 30px 0 auto auto;
  width: 96px;
  height: 96px;
  z-index: 1;
  background: #f6f0e6;
  color: var(--ink);
}
.dashboard-plans .plan-guarantee {
  inset: auto auto 0 0;
  width: 156px;
  height: 156px;
  margin: 0;
  border: 0;
  padding-inline-start: 30px;
  background: #eee7dc;
  color: var(--ink);
  font-size: 13px;
}
.dashboard-plans .plan-cypress .plan-guarantee { background: var(--forest); color: #fff; }
.dashboard-plans .plan-bamboo .plan-guarantee { background: var(--honey); color: var(--ink); }
.dashboard-plans .plan-guarantee strong { font-size: 36px; line-height: 1.2; }
.dashboard-plans .plan-unavailable { color: #77746e; }
.dashboard-plans .plan-unavailable::before { content: '−'; }
.dashboard-plans .plan-unavailable-end { white-space: nowrap; }
.dashboard-plans .plan-unavailable small { display: inline; font-size: 11px; }
.dashboard-plans article > ul { flex: 1; }
@media (min-width: 761px) and (max-width: 1000px) {
  #plans .dashboard-plans { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .dashboard-plans .plan-bamboo { order: -2; }
  .dashboard-plans .plan-cypress { order: -1; }
}

#contact { max-height: calc(100dvh - 24px); overflow: auto; }
#contact h2 { font-size: 28px; margin: 0 0 16px; }
#contact-form { display: grid; gap: 12px; }
#contact-form label { display: grid; gap: 4px; font-size: 14px; }
#contact-form :is(input, textarea, select) {
  width: 100%;
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}
#contact-form textarea { resize: vertical; }
#contact-form button { background: var(--forest); }
#contact-form button:disabled { opacity: .65; cursor: wait; }
#contact-status:empty { display: none; }

/* The sticky deck occupies one full-width track, even while cards overlap. */
.case-runway .outcome-grid { grid-template-columns: minmax(0, 1fr); }
.case-runway .outcome-card { min-width: 0; }
.case-runway .case-pair { grid-template-columns: minmax(0, 1fr) 22px minmax(0, 1fr); }
.case-runway .case-pair > div:first-child b {
  color: #d1d4ca;
  font-size: .86em;
  font-weight: 400;
}
.case-runway .case-pair > div:last-child b { color: #fff; font-weight: 700; }

#problem .empathy-intro h2 { font-size: clamp(16px, 2vw, 22px); color: #cececf; }
#problem .empathy-intro h2 span {
  margin-top: 9px;
  font-size: clamp(26px, 3.3vw, 38px);
  line-height: 1.45;
  color: #fafafa;
}

@media (min-width: 761px) and (max-width: 1100px) {
  .case-runway .case-carousel .abdi.active { column-gap: 28px; }
  .case-runway .case-carousel .abdi .case-impact {
    grid-template-columns: 95px minmax(0, 1fr);
    column-gap: 12px;
  }
  .case-runway .case-carousel .abdi .case-impact .case-proof { width: 95px; }
  .case-runway .case-carousel .abdi .case-impact > strong { font-size: clamp(50px, 7vw, 72px); }
}

@media (max-width: 760px) and (prefers-reduced-motion: no-preference) {
  #approach .adv-layout { gap: 18px; }
}

#approach,
#approach .adv-pin { background: var(--forest); color: #fcfaf6; }
#approach .section-kicker,
#approach .taam-note,
#approach .adv-hint,
#approach .adv-count,
#approach .adv-step:not(.active) { color: #d1d4ca; }
#approach .section-kicker,
#approach .adv-step { border-color: #fcfaf630; }
#approach .section-kicker::before { background: var(--forest); }
#approach .adv-menu h2 span,
#approach .adv-step.active,
#approach .startup-more { color: #e9ddc3; }
#approach .adv-panel p { color: #e7e8e0; }
#approach .adv-service,
#approach .adv-step > span { background: #fcfaf618; color: #fcfaf6; }
#approach .adv-step.active > span { background: #e9ddc3; color: var(--forest); }
#approach .adv-stage::before { border-color: #e9ddc35c; }
#approach .adv-stage::after { border-color: #e9ddc33d; }
#approach .adv-progress { background: #fcfaf630; }
#approach :is(.crayon-icon, .adv-scene) { filter: grayscale(1) invert(1); }
#approach :focus-visible { outline-color: #e9ddc3; }

.hero-romava-link {
  color: var(--ink);
  font-weight: 700;
  background: radial-gradient(ellipse at center, #a58b7366 0%, #a58b7330 53%, transparent 76%) center 70% / 100% 1.25em no-repeat;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.hero-romava-link:hover { text-decoration: underline; text-underline-offset: .2em; }

main :is(h1, h2, h3) > .heading-lead {
  display: block;
  color: inherit;
  font-size: .64em;
  font-weight: 400;
  line-height: 1.45;
  margin-block-end: .22em;
}
.case-runway .case-carousel .outcome-card > p,
.case-runway .case-carousel .result-detail > p {
  color: #cbd0c4;
  font-size: clamp(12px, 1.1vw, 14px);
  line-height: 1.85;
}
.case-runway .outcome-card > p b,
.case-runway .result-detail > p b { font-weight: 400; }

.brands > .brands-window {
  display: block;
  min-width: 0;
  overflow: hidden;
}
.brands-track {
  display: flex;
  direction: ltr;
}
.brands-set {
  display: flex;
  flex: 0 0 100%;
  min-width: 0;
  align-items: center;
  justify-content: space-around;
  gap: 16px;
}
.brands-set[aria-hidden] { display: none; }

@media (prefers-reduced-motion: no-preference) {
  .brands-set { min-width: 320px; }
  .brands-set[aria-hidden] { display: flex; }
  .brands-track { animation: brand-loop 24s linear infinite; }
  .brands-window:hover .brands-track { animation-play-state: paused; }
  @keyframes brand-loop {
    from { transform: translateX(calc(-1 * max(100%, 320px))); }
    to { transform: translateX(0); }
  }
}

@media (max-width: 760px) {
  main > :is(.outcomes, .problem, .startup-details, .plans) {
    padding-block: clamp(36px, 7svh, 56px);
  }
}

/* Results: lead with the work, then show the metric and its context. */
.case-runway .outcome-grid::before,
.case-runway .outcome-grid::after {
  content: "";
  position: absolute;
  inset: 5px 8px 5px -8px;
  border: 1px solid #31382765;
  border-radius: 22px;
  pointer-events: none;
}
.case-runway .outcome-grid::after { inset: 10px 16px 10px -16px; }
.case-runway .case-carousel .results-card {
  position: relative;
  z-index: 1;
  border-radius: 18px 42px 18px 18px;
  background: radial-gradient(ellipse at 15% 8%, #3f4939, transparent 62%), var(--forest);
}
.case-runway .case-carousel .results-card.active {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: center;
  gap: clamp(12px, 2vw, 20px);
  min-height: 0;
  padding: clamp(17px, 3vw, 34px);
}
.case-runway .results-card .case-person { margin: 0; }
.result-gallery {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(8px, 2vw, 22px);
  padding-block: 2px;
  direction: ltr;
}
.result-photo {
  position: relative;
  display: block;
  width: clamp(68px, 16svh, 149px);
  max-width: 32%;
  min-width: 0;
  transition: transform .2s ease;
}
.result-gallery:has(> :nth-child(3)) > :not(:nth-child(2)) { width: clamp(57px, 13.5svh, 126px); }
.result-proof { width: clamp(47px, 11.25svh, 104px); }
.result-photo:hover { transform: translateY(-3px); }
.result-photo:focus-visible { outline: 2px solid var(--honey); outline-offset: 4px; }
.result-photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 9px;
  box-shadow: 0 10px 22px #0b100d66;
}
.result-proof-focus {
  position: absolute;
  left: 49%;
  top: 66.8%;
  width: 46%;
  height: 9%;
  border: 1px solid #844936;
  border-radius: 3px;
  pointer-events: none;
}
.result-stat {
  display: grid;
  justify-items: start;
  gap: 4px;
}
.result-stat strong {
  color: #c3b094;
  font-size: clamp(55px, 9vw, 98px);
  line-height: 1;
  letter-spacing: -.035em;
}
.result-stat strong span { font-size: .44em; }
.result-stat > span { font-size: clamp(14px, 2.1vw, 22px); }
.case-runway .case-carousel .results-card :is(.case-pair, p) {
  grid-column: 1;
  margin: 0;
}
.case-runway .results-card .case-pair { padding-block: 10px; }
@media (min-width: 761px) {
  .case-runway .case-carousel .results-card.active { min-height: 510px; }
}
@media (max-width: 760px) {
  .case-runway .outcome-grid::before { left: -5px; }
  .case-runway .outcome-grid::after { left: -10px; }
  .result-photo { width: clamp(68px, 14.75svh, 116px); }
  .result-gallery:has(> :nth-child(3)) > :not(:nth-child(2)) { width: clamp(57px, 12.25svh, 98px); }
  .result-proof { width: clamp(47px, 10.35svh, 81px); }
}
@media (prefers-reduced-motion: reduce) {
  .result-photo { transition: none; }
}

@media (prefers-reduced-motion: no-preference) {
  main {
    --arrival-distance: 36px;
    --arrival-range: min(36svh, 280px);
  }

  .hero-art { animation: hero-arrival 750ms cubic-bezier(.2,.7,.25,1) both; }
  .hero-copy { animation: hero-arrival 650ms cubic-bezier(.2,.7,.25,1) 100ms both; }
  @keyframes hero-arrival {
    from { opacity: .25; translate: 0 var(--arrival-distance); }
    to { opacity: 1; translate: 0 0; }
  }

  @media (max-width: 760px) {
    main {
      --arrival-distance: 23px;
      --arrival-range: min(29svh, 190px);
    }
  }

  @supports (animation-timeline: view()) {
    main :is(.section-heading, .empathy-intro, .problem-bridge, .startup-heading, .brands, .closing > h2),
    .adv-shell,
    .dashboard-faq > h2 {
      animation: section-arrival cubic-bezier(.25,.55,.4,1) both;
      animation-timeline: view();
      animation-range: entry 0% entry var(--arrival-range);
    }
    .case-runway .outcome-grid {
      animation: deck-arrival cubic-bezier(.25,.55,.4,1) both;
      animation-timeline: view();
      animation-range: entry 0% entry var(--arrival-range);
    }
    @keyframes section-arrival {
      from { opacity: .55; translate: 0 var(--arrival-distance); }
      to { opacity: 1; translate: 0 0; }
    }
    @keyframes deck-arrival {
      from { translate: 0 var(--arrival-distance); scale: .97; }
      to { translate: 0 0; scale: 1; }
    }
  }
}

/* Keep outgoing and incoming results in the same track so they overlap in motion. */
.case-runway .case-carousel .case-motion-ready { display: grid; }
.case-runway .case-carousel .case-motion-ready .results-card {
  display: grid;
  grid-area: 1 / 1;
  grid-template-columns: minmax(0, 1fr);
  align-content: center;
  gap: clamp(12px, 2vw, 20px);
  padding: clamp(17px, 3vw, 34px);
  visibility: visible;
  opacity: var(--case-opacity, 0);
  pointer-events: none;
  animation: none;
}
.case-runway .case-carousel .case-motion-ready .results-card.active { pointer-events: auto; }

@media (prefers-reduced-motion: no-preference) {
  .case-motion-ready .results-card {
    transform: translateX(calc(var(--case-offset, 0) * -14px));
    transition: opacity 480ms cubic-bezier(.22,.65,.3,1),
                transform 480ms cubic-bezier(.22,.65,.3,1);
  }
  .case-scroll-motion .results-card {
    transform: translateY(calc(var(--case-offset, 0) * 38px))
               scale(calc(1 - (1 - var(--case-opacity, 0)) * .025));
    transition: none;
  }
}


@media (max-width: 760px) {
  .chapter-cover > .startup-details,
  .chapter-under > :is(.problem, .plans) {
    padding-block: clamp(36px, 7svh, 56px);
  }
}

@media (prefers-reduced-motion: no-preference) {
  @supports (timeline-scope: --chapter-cover) {
    .chapter-overlap {
      position: relative;
      isolation: isolate;
      timeline-scope: --chapter-cover;
    }
    .chapter-under {
      position: sticky;
      top: var(--chapter-top, 0px);
      animation: chapter-recede linear both;
      animation-timeline: --chapter-cover;
      animation-range: entry 0% entry 72svh;
    }
    .chapter-cover {
      position: relative;
      z-index: 1;
      display: flow-root;
      background: var(--paper);
      view-timeline-name: --chapter-cover;
    }
    .chapter-cover:has(> #approach) { background: var(--forest); }
    @keyframes chapter-recede {
      0% { opacity: 1; scale: 1; }
      35% { opacity: .90; scale: .99; }
      100% { opacity: 0; scale: .96; }
    }
  }
  .hero-actions :is(a, button) > span,
  .carousel-controls > button {
    transition: transform 260ms cubic-bezier(.22,.65,.3,1), background-color 260ms ease;
  }
  .hero-actions :is(a, button):is(:hover, :focus-visible) > span { transform: translate(-4px, 2px); }
  .carousel-controls > button:is(:hover, :focus-visible) { transform: translateY(-3px); }
  .carousel-controls > button:active { transform: scale(.95); }
}

.result-detail {
  grid-column: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(8px, 3vw, 30px);
}
.results-card .result-link {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 14px;
  min-height: 44px;
  padding-inline: 15px;
  border: 1px solid #fcfaf670;
  border-radius: 9px;
  color: #fcfaf6;
  text-decoration: none;
  white-space: nowrap;
  font-size: 13px;
}
.results-card .result-link:is(:hover, :focus-visible) { background: #fcfaf618; }
.results-card .result-link:focus-visible { outline-color: #e9ddc3; }
