/* ============================================
   KIVI public homepage — editorial sections: hero with the masthead and the
   kiwi anatomy drawing, the ruled index strip, manifest and principles, the
   services list with its line-art cross-section, specimen plates for
   projects, botanical growth stages, the brief form with its message draft,
   and the FAQ. Loaded only by index.html.
   ============================================ */

/* ---- Hero ---- */

.hero {
  position: relative;
  min-height: max(100svh, 760px);
  display: grid;
  align-items: center;
  padding-top: var(--header-height);
  overflow: hidden;
  isolation: isolate;
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  align-items: center;
  gap: var(--sp-6);
  padding-block: var(--sp-7);
}

.hero__content {
  position: relative;
  z-index: var(--z-raised);
}

/* Masthead: studio name and the figures set as one ruled line. */
.hero__masthead {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-2) var(--sp-6);
  padding: var(--sp-3) 0;
  border-top: 1.5px solid var(--color-text);
  border-bottom: 1px solid var(--color-line-strong);
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
}

.hero__masthead-name b {
  margin-right: var(--sp-2);
  color: var(--color-text);
  font-weight: 600;
}

.hero__figures {
  display: flex;
  gap: var(--sp-5);
  margin: 0;
}

.hero__figures div {
  display: inline-flex;
  flex-direction: row-reverse;
  align-items: baseline;
  gap: var(--sp-2);
}

.hero__figures dd {
  font-weight: 600;
  color: var(--color-text);
}

.hero__title {
  margin-top: var(--sp-7);
  /* --hero-fit is written by js/site-home.js when a locale's line is too wide. */
  font-size: calc(var(--fs-hero) * var(--hero-fit, 1));
  font-weight: var(--fw-bold);
  line-height: 0.94;
  letter-spacing: -0.06em;
}

.hero__line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
  white-space: nowrap;
}

.hero__line > span {
  display: inline-block;
  animation: hero-line-in 1100ms var(--ease-out) both;
  animation-delay: calc(var(--line-index, 0) * 110ms + 120ms);
}

.hero__line:nth-child(2) > span {
  --line-index: 1;
}

.hero__line:nth-child(3) > span {
  --line-index: 2;
}

@keyframes hero-line-in {
  from {
    transform: translateY(110%);
  }
}

.hero__line--accent > span {
  font-size: 1.04em;
  line-height: 0.9;
  letter-spacing: -0.035em;
  color: var(--color-accent-text);
}

.hero__meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: var(--sp-6);
  margin-top: var(--sp-7);
}

.hero__lead {
  max-width: 40ch;
  color: var(--color-text-muted);
  font-size: var(--fs-lead);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-4) var(--sp-6);
  margin-top: var(--sp-6);
}

/* Kiwi stage */

.hero__stage {
  position: relative;
  aspect-ratio: 1;
  width: min(100%, min(700px, calc(100svh - var(--header-height) - var(--sp-9))));
  min-width: min(100%, 520px);
  justify-self: center;
}

/* Anatomy: a technical drawing — hairline leaders, open dots, mono labels. */
.anatomy {
  position: absolute;
  inset: 0;
  z-index: var(--z-raised);
  pointer-events: none;
}

.anatomy__lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  fill: none;
  stroke: var(--color-text);
  stroke-width: 1;
}

.anatomy__lines path {
  vector-effect: non-scaling-stroke;
}

.anatomy__dot {
  position: absolute;
  width: 7px;
  height: 7px;
  margin: -3.5px 0 0 -3.5px;
  border-radius: 50%;
  border: 1.5px solid var(--color-text);
  background: var(--color-bg);
}

.anatomy__dot--a { left: 21%; top: 11%; }
.anatomy__dot--b { left: 61%; top: 37%; }
.anatomy__dot--c { left: 20%; top: 74%; }
.anatomy__dot--d { left: 53%; top: 53%; }

.anatomy__label {
  position: absolute;
  display: grid;
  gap: 2px;
  line-height: 1.2;
  white-space: nowrap;
}

.anatomy__fig {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 0.85rem;
  color: var(--color-text-faint);
}

.anatomy__label strong {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.anatomy__role {
  font-size: var(--fs-small);
  color: var(--color-text-muted);
}

.anatomy__label--a { left: -4%; top: 1%; text-align: right; justify-items: end; }
.anatomy__label--b { right: -4%; top: 1%; }
.anatomy__label--c { left: -4%; bottom: 2%; text-align: right; justify-items: end; }
.anatomy__label--d { right: -4%; bottom: 2%; }

/* Figure caption, as under a plate in a book. */
.hero__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -9%;
  text-align: center;
  font-size: var(--fs-small);
  color: var(--color-text-muted);
  pointer-events: none;
  counter-increment: fig;
}

.hero__caption-fig::before {
  content: 'Fig. ' counter(fig, decimal-leading-zero) ' —';
  font-family: var(--font-accent);
  font-style: italic;
  color: var(--color-text);
}

/* ---- Index strip: the services as one ruled line ---- */

.index-strip {
  padding-block: var(--sp-5) var(--sp-8);
}

.index-strip__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--sp-2) var(--sp-5);
  margin: 0 auto;
  padding-block: var(--sp-4);
  border-top: 1px solid var(--color-line-strong);
  border-bottom: 1px solid var(--color-line-strong);
  list-style: none;
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

/* ---- Manifest and principles ---- */

.manifest__text {
  margin-top: var(--sp-6);
  max-width: 24ch;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.9vw, 3.7rem);
  font-weight: var(--fw-medium);
  line-height: 1.14;
  letter-spacing: -0.035em;
}

.scrub-word {
  opacity: 0.16;
  transition: opacity 360ms var(--ease-out), color 360ms var(--ease-out);
}

.scrub-word.is-lit {
  opacity: 1;
}

.scrub-word.is-accent.is-lit {
  color: var(--color-accent-text);
}

/* Principles: three ruled columns with italic numerals. */
.principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-6);
  margin-top: clamp(var(--sp-8), 8vw, var(--sp-9));
  padding: 0;
  list-style: none;
  counter-reset: principle;
}

.principle {
  position: relative;
  display: grid;
  align-content: start;
  gap: var(--sp-3);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--color-line-strong);
  counter-increment: principle;
}

.principle::before {
  content: counter(principle, lower-roman) '.';
  font-family: var(--font-accent);
  font-size: 2.4rem;
  font-style: italic;
  font-weight: var(--fw-semibold);
  line-height: 1;
  color: var(--color-accent-text);
}

.principle h3 {
  font-size: var(--fs-h3);
}

.principle p {
  max-width: 34ch;
  color: var(--color-text-muted);
}

/* ---- Services: a price list next to a cross-section diagram ---- */

.assortment {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr);
  align-items: start;
  gap: clamp(var(--sp-6), 5vw, var(--sp-9));
}

.services__list {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 2px solid var(--color-text);
}

.service {
  border-bottom: 1px solid var(--color-line-strong);
}

.service__trigger {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 3.2rem auto minmax(1.5rem, 1fr) auto;
  align-items: center;
  gap: var(--sp-4);
  width: 100%;
  padding: clamp(var(--sp-4), 2.2vw, var(--sp-5)) 0;
  text-align: left;
  transition: color var(--t-base) var(--ease-out);
}

/* Juice wipe: a closed row fills with flesh green from below on hover. */
.service__trigger::before {
  content: '';
  position: absolute;
  inset: 0 calc(var(--sp-3) * -1);
  z-index: -1;
  background: var(--kiwi-flesh);
  transform: scaleY(0);
  transform-origin: 50% 100%;
  transition: transform 420ms var(--ease-out);
}

.service:not(.is-open) .service__trigger:hover {
  color: var(--kiwi-ink);
}

.service:not(.is-open) .service__trigger:hover::before {
  transform: scaleY(1);
}

.service__index {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--color-text-faint);
}

.service:not(.is-open) .service__trigger:hover .service__index {
  color: var(--kiwi-ink);
}

.service__title {
  font-size: clamp(1.4rem, 3vw, 2.7rem);
  transition: color var(--t-base) var(--ease-out);
}

/* Dotted leader, as on a market price board. */
.service__leader {
  align-self: end;
  height: 0.7em;
  border-bottom: 2px dotted var(--color-line-strong);
  margin-bottom: 0.5em;
}

/* Toggle: a hairline plus that turns into a minus when the row opens. */
.service__toggle {
  width: 18px;
  height: 18px;
  margin-right: var(--sp-2);
  background:
    linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.5px 100% no-repeat;
  transition: transform var(--t-base) var(--ease-out);
}

.service.is-open .service__title {
  color: var(--color-accent-text);
}

.service.is-open .service__toggle {
  transform: rotate(90deg);
  background-size: 100% 1.5px, 0 0;
}

/* Panels stay open without JavaScript; js/site-home.js adds .is-enhanced. */
.service__panel {
  display: grid;
  grid-template-rows: 1fr;
  transition: grid-template-rows var(--t-slow) var(--ease-out);
}

.is-enhanced .service:not(.is-open) .service__panel {
  grid-template-rows: 0fr;
}

.service__body {
  min-height: 0;
  overflow: hidden;
}

.service__content {
  display: grid;
  gap: var(--sp-4);
  padding: 0 0 var(--sp-6) calc(3.2rem + var(--sp-4));
}

.service__desc {
  max-width: 46ch;
  color: var(--color-text-muted);
  font-size: var(--fs-lead);
}

/* Contents listed like ingredients: mono, slash-separated. */
.service__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-1) var(--sp-2);
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.service__tags li + li::before {
  content: '/';
  margin-right: var(--sp-2);
  color: var(--color-text-faint);
}

.service__cta {
  justify-self: start;
}

.wheel {
  position: sticky;
  top: calc(var(--header-height) + var(--sp-6));
  display: grid;
  justify-items: center;
  margin: 0;
}

/* The cross-section is drawn as line art; only the active segment is filled. */
.wheel__svg {
  width: min(100%, 420px);
  aspect-ratio: 1;
  transform: rotate(var(--wheel-turn, 0deg));
  transition: transform 900ms var(--ease-out);
}

.wheel__skin {
  fill: none;
  stroke: var(--color-text);
  stroke-width: 1.2;
}

.wheel__rim {
  fill: none;
  stroke: var(--color-line-strong);
  stroke-width: 1;
}

.wheel__sector {
  fill: transparent;
  stroke: var(--color-text);
  stroke-width: 1;
  transform-box: view-box;
  transform-origin: 50% 50%;
  transition: fill var(--t-base) var(--ease-out), opacity var(--t-base) var(--ease-out), transform var(--t-slow) var(--ease-spring);
}

.wheel .wheel__sector.is-active {
  fill: var(--kiwi-flesh);
  transform: scale(1.05);
}

.wheel__hub {
  fill: none;
  stroke: var(--color-text);
  stroke-width: 1;
}

.wheel__seeds {
  fill: var(--color-text);
}

.wheel__numbers {
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 500;
  fill: var(--color-text-muted);
  text-anchor: middle;
  dominant-baseline: middle;
}

.wheel__core {
  position: absolute;
  top: calc(min(100%, 420px) / 2);
  left: 50%;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin: -27px 0 0 -27px;
  border-radius: 50%;
  background: var(--color-bg);
  color: var(--color-text);
}

.wheel__core .icon {
  width: 24px;
  height: 24px;
}

.wheel__caption {
  margin-top: var(--sp-4);
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  text-align: center;
}

.wheel__fig {
  font-family: var(--font-accent);
  font-size: 1.2em;
  font-style: italic;
  text-transform: none;
  color: var(--color-text);
}

/* ---- Project showcase: specimen plates (pinned horizontal scroll on large screens) ---- */

.showcase {
  position: relative;
  padding-top: var(--sp-section);
}

.showcase__head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: var(--sp-5);
}

.showcase__head .section-head__title {
  max-width: 12ch;
}

.showcase__meta {
  display: grid;
  justify-items: end;
  gap: var(--sp-4);
  text-align: right;
}

.showcase__meta p {
  max-width: 30ch;
  color: var(--color-text-muted);
}

.showcase__progress {
  width: 220px;
  height: 2px;
  background: var(--color-line-strong);
  overflow: hidden;
}

.showcase__progress span {
  display: block;
  height: 100%;
  background: var(--color-accent);
  transform-origin: 0 50%;
  transform: scaleX(var(--showcase-progress, 0.08));
}

.showcase__viewport {
  margin-top: clamp(var(--sp-6), 4vw, var(--sp-8));
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: var(--sp-7);
}

.showcase__viewport::-webkit-scrollbar {
  display: none;
}

.showcase__track {
  display: flex;
  gap: clamp(var(--sp-5), 3vw, var(--sp-7));
  width: max-content;
  margin: 0;
  padding: var(--sp-3) var(--container-gutter);
  list-style: none;
}

.showcase.is-pinned {
  height: var(--showcase-height, auto);
  padding-top: 0;
}

.showcase.is-pinned .showcase__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding-top: var(--header-height);
}

.showcase.is-pinned .showcase__viewport {
  overflow: visible;
  scroll-snap-type: none;
  padding-bottom: 0;
}

.showcase.is-pinned .showcase__track {
  transform: translate3d(var(--showcase-x, 0px), 0, 0);
  will-change: transform;
}

/* Cards are .plate specimens (crop marks live in shell.css). */
.showcase-card {
  --project-tint: #5f9a17;
  position: relative;
  flex: none;
  width: min(1120px, 80vw);
  min-height: min(600px, 64vh);
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: var(--sp-6);
  padding: clamp(var(--sp-6), 3.4vw, var(--sp-8));
  scroll-snap-align: center;
}

.showcase-card__info {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  z-index: var(--z-raised);
}

.showcase-card__index {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.1em;
  color: var(--color-text-faint);
}

.showcase-card__index::before {
  content: 'Fig. ';
  font-family: var(--font-accent);
  font-size: 1.3em;
  font-style: italic;
  letter-spacing: 0;
  color: var(--color-text);
}

/* Project type: a mono label with the project's tint as a rule. */
.showcase-card__type {
  align-self: start;
  padding-left: var(--sp-3);
  border-left: 3px solid var(--project-tint);
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.showcase-card__name {
  font-size: clamp(2rem, 4.4vw, 4rem);
}

.showcase-card__host {
  margin-top: calc(var(--sp-3) * -1);
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  color: var(--color-text-faint);
}

.showcase-card__tagline {
  font-family: var(--font-accent);
  font-size: clamp(1.2rem, 1.6vw, 1.5rem);
  font-style: italic;
  color: var(--color-text-muted);
}

.showcase-card__scope {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-faint);
}

.showcase-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-top: auto;
}

.showcase-card__visual {
  position: relative;
  align-self: center;
}

.showcase-card--next {
  width: min(560px, 80vw);
  grid-template-columns: minmax(0, 1fr);
  align-content: center;
  background: transparent;
  border: 2px dashed var(--color-line-strong);
  box-shadow: none;
}

.showcase-card--next h3 {
  font-size: clamp(1.9rem, 3.6vw, 3.2rem);
}

.showcase-card--next p {
  margin-top: var(--sp-4);
  font-size: var(--fs-lead);
  color: var(--color-text-muted);
}

.showcase-card--next .button {
  margin-top: var(--sp-6);
  justify-self: start;
}

.showcase-card__seed {
  width: 64px;
  height: 96px;
  margin-bottom: var(--sp-6);
  border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%;
  background: var(--kiwi-seed);
  box-shadow: inset 6px -4px 0 rgba(255, 255, 255, 0.12);
  transform: rotate(18deg);
  animation: seed-sprout 3.6s var(--ease-in-out) infinite alternate;
}

:root[data-theme="dark"] .showcase-card__seed,
.tone-forest .showcase-card__seed {
  background: var(--color-accent);
}

@keyframes seed-sprout {
  to {
    transform: rotate(-10deg) scale(1.08);
  }
}

/* ---- Process: botanical growth stages along a stem ---- */

.process__layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: var(--sp-8);
}

.process__aside {
  position: sticky;
  top: calc(var(--header-height) + var(--sp-6));
  align-self: start;
}

/* Current stage as a large typeset fraction. */
.process__counter {
  margin-top: var(--sp-7);
  font-family: var(--font-accent);
  font-size: clamp(4rem, 8vw, 7rem);
  font-style: italic;
  font-weight: var(--fw-semibold);
  line-height: 0.9;
  color: var(--color-line-strong);
}

.process__counter span {
  color: var(--color-accent-text);
}

.process__steps {
  position: relative;
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.process__line {
  position: absolute;
  left: 47px;
  top: 48px;
  bottom: 48px;
  width: 2px;
  background: repeating-linear-gradient(180deg, var(--color-line-strong) 0 6px, transparent 6px 12px);
}

.process__line span {
  position: absolute;
  inset: 0;
  background: #5f9a17;
  transform-origin: 50% 0;
  transform: scaleY(var(--process-progress, 0));
}

.process-step {
  position: relative;
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  column-gap: var(--sp-6);
  align-items: start;
  padding-block: var(--sp-5);
}

.process-step + .process-step {
  border-top: 1px dashed var(--color-line);
}

.process-step__art {
  position: relative;
  z-index: var(--z-base);
  grid-row: 1 / span 3;
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 1.5px solid var(--color-line-strong);
  background: var(--color-bg);
  transition: border-color var(--t-base) var(--ease-out), background-color var(--t-base) var(--ease-out), transform var(--t-slow) var(--ease-spring);
}

.process-step__art svg {
  width: 62px;
  height: 62px;
  fill: none;
  stroke: var(--color-text);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Drawings sketch themselves in as the reader reaches each stage. */
.is-ready .process-step__art svg > * {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1400ms var(--ease-out);
}

.is-ready .process-step.is-active .process-step__art svg > *,
.is-ready .process-step.is-done .process-step__art svg > * {
  stroke-dashoffset: 0;
}

.process-step__stage {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-faint);
}

.process-step h3 {
  margin-top: var(--sp-1);
  font-size: var(--fs-h3);
}

.process-step p {
  margin-top: var(--sp-2);
  max-width: 48ch;
  color: var(--color-text-muted);
}

.process-step.is-active .process-step__art {
  border-color: var(--color-accent-text);
  background: var(--color-surface);
}

.process-step.is-active h3 {
  color: var(--color-accent-text);
}

/* ---- Project brief: options and the composed message draft ---- */

.brief {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: clamp(var(--sp-5), 4vw, var(--sp-8));
  align-items: start;
}

.brief__form {
  display: grid;
  gap: var(--sp-6);
  padding-top: var(--sp-6);
  border-top: 1.5px solid var(--color-text);
}

.brief__group {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.brief__group legend,
.brief__label {
  display: flex;
  align-items: baseline;
  gap: var(--sp-3);
  margin-bottom: var(--sp-3);
  padding: 0;
  font-weight: var(--fw-bold);
}

.brief__step {
  font-family: var(--font-accent);
  font-size: 1.6rem;
  font-style: italic;
  font-weight: var(--fw-semibold);
  line-height: 1;
}

.brief__step::after {
  content: '.';
}

.brief__chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-3);
}

.brief__note {
  width: 100%;
  min-height: 120px;
  resize: vertical;
  padding: var(--sp-3) var(--sp-4);
  border: 1px solid var(--color-line-strong);
  background: var(--color-surface);
  line-height: 1.5;
}

.brief__note:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}

.brief__note::placeholder {
  color: var(--color-text-faint);
}

.brief__preview {
  position: sticky;
  top: calc(var(--header-height) + var(--sp-5));
  display: grid;
  gap: var(--sp-5);
}

.draft {
  display: grid;
  gap: var(--sp-4);
  padding: var(--sp-5);
  background: #fffdf6;
  color: var(--kiwi-ink);
  font-family: var(--font-mono);
  font-size: 0.82rem;
}

.draft__head {
  display: grid;
  justify-items: center;
  gap: 2px;
  padding-bottom: var(--sp-3);
  border-bottom: 1.5px dashed rgba(17, 22, 12, 0.45);
  text-align: center;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.draft__head b {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.04em;
}

.brief__ripeness {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
}

.brief__meter {
  position: relative;
  width: 64px;
  height: 64px;
  flex: none;
}

.brief__meter svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.brief__meter circle {
  fill: none;
  stroke-width: 6;
}

.brief__meter-track {
  stroke: rgba(17, 22, 12, 0.12);
}

.brief__meter-fill {
  stroke: #5f9a17;
  stroke-linecap: round;
  stroke-dasharray: 201;
  stroke-dashoffset: calc(201 - 201 * var(--ripeness, 0));
  transition: stroke-dashoffset var(--t-slow) var(--ease-out);
}

/* The kiwi in the meter ripens from hard brown to juicy green. */
.brief__meter-kiwi {
  position: absolute;
  inset: 13px;
  border-radius: 50%;
  background:
    radial-gradient(circle, #f6f4dc 0 17%, transparent 18%),
    radial-gradient(circle, transparent 0 40%, #a9d64f 41%, #6aa520 70%, #6b4a2a 72%),
    repeating-conic-gradient(var(--kiwi-seed) 0 7deg, #dcef98 7deg 24deg);
  filter: saturate(calc(0.2 + var(--ripeness, 0))) brightness(calc(0.72 + var(--ripeness, 0) * 0.28));
  transform: scale(calc(0.72 + var(--ripeness, 0) * 0.28));
  transition: filter var(--t-slow) var(--ease-out), transform var(--t-slow) var(--ease-spring);
}

.brief__ripeness strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: -0.03em;
}

.brief__ripeness span {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #4d5540;
}

.brief__message-label {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #4d5540;
}

.brief__message {
  min-height: 120px;
  padding-block: var(--sp-3);
  border-block: 1.5px dashed rgba(17, 22, 12, 0.45);
  white-space: pre-line;
  line-height: 1.6;
}

.brief__actions {
  display: grid;
  gap: var(--sp-3);
}

.brief__actions .button {
  width: 100%;
}

.brief__call {
  justify-self: center;
  font-size: var(--fs-small);
  color: var(--color-text-muted);
}

.brief__call a {
  color: var(--color-text);
  font-weight: var(--fw-bold);
}

/* ---- FAQ: numbered questions set in the italic serif ---- */

.faq__layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: var(--sp-8);
}

.faq__layout .section-head {
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  position: sticky;
  top: calc(var(--header-height) + var(--sp-6));
}

.faq__list {
  border-top: 2px solid var(--color-text);
  counter-reset: question;
}

.faq-item {
  border-bottom: 1px solid var(--color-line-strong);
  counter-increment: question;
}

.faq-item summary {
  display: grid;
  grid-template-columns: 3.4rem minmax(0, 1fr) auto;
  align-items: baseline;
  gap: var(--sp-3);
  padding: var(--sp-5) 0;
  font-family: var(--font-accent);
  font-size: clamp(1.2rem, 1.9vw, 1.6rem);
  font-style: italic;
  font-weight: var(--fw-semibold);
  line-height: 1.25;
  list-style: none;
  cursor: pointer;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::before {
  content: 'Q.' counter(question, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--color-text-faint);
}

.faq-item summary::after {
  content: '';
  align-self: center;
  width: 16px;
  height: 16px;
  margin-right: var(--sp-2);
  background:
    linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.5px 100% no-repeat;
  transition: transform var(--t-base) var(--ease-out);
}

.faq-item[open] summary::after {
  transform: rotate(90deg);
  background-size: 100% 1.5px, 0 0;
}

.faq-item summary:hover {
  color: var(--color-accent-text);
}

.faq-item p {
  max-width: 62ch;
  padding: 0 0 var(--sp-5) calc(3.4rem + var(--sp-3));
  color: var(--color-text-muted);
}

/* ---- Responsive ---- */

@media (max-width: 1024px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1fr);
    padding-top: var(--sp-5);
    padding-bottom: var(--sp-9);
  }

  /* The message stays first; the kiwi follows it at a smaller size. */
  .hero__stage {
    width: min(78vw, 540px);
    min-width: 0;
    margin: var(--sp-8) auto 0;
  }

  .assortment {
    grid-template-columns: minmax(0, 1fr);
  }

  .wheel {
    position: relative;
    top: 0;
    order: -1;
  }

  .wheel__svg {
    width: min(70vw, 320px);
  }

  .wheel__core {
    top: calc(min(70vw, 320px) / 2);
  }

  .showcase-card {
    width: min(86vw, 720px);
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }

  .showcase-card__visual {
    order: -1;
  }

  .showcase__meta {
    justify-items: start;
    text-align: left;
  }

  .process__layout,
  .faq__layout,
  .brief {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--sp-6);
  }

  .process__aside,
  .faq__layout .section-head,
  .brief__preview {
    position: static;
  }

  .process__counter {
    display: none;
  }
}

@media (max-width: 768px) {
  .hero__meta {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero__line {
    white-space: normal;
  }

  .hero__stage {
    width: min(92vw, 420px);
  }

  .hero__inner {
    padding-bottom: calc(var(--sp-9) + 200px);
  }

  .hero__figures {
    flex-direction: column;
    gap: var(--sp-1);
  }

  /* Small screens: the plate becomes a legend under the slice. */
  .anatomy__lines,
  .anatomy__dot {
    display: none;
  }

  .anatomy {
    inset: calc(100% + var(--sp-5)) 0 auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--sp-3);
  }

  .anatomy__label {
    position: static;
    justify-items: start;
    text-align: left;
    white-space: normal;
    background: none;
    padding: 0;
  }

  .hero__caption {
    bottom: auto;
    top: calc(100% + var(--sp-5) + 150px);
  }

  .principles {
    grid-template-columns: minmax(0, 1fr);
  }

  .service__trigger {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: var(--sp-1) var(--sp-4);
  }

  .service__index {
    grid-column: 1 / -1;
  }

  .service__leader {
    display: none;
  }

  .service__content {
    padding-left: 0;
  }

  .process-step {
    grid-template-columns: 64px minmax(0, 1fr);
    column-gap: var(--sp-4);
  }

  .process-step__art {
    width: 64px;
    height: 64px;
  }

  .process-step__art svg {
    width: 44px;
    height: 44px;
  }

  .process__line {
    left: 31px;
  }

  .faq-item summary {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .faq-item summary::before {
    grid-column: 1 / -1;
  }

  .faq-item p {
    padding-left: 0;
  }
}

@media (max-width: 480px) {
  .hero__actions .button {
    flex: 1 1 100%;
  }

  .hero__figures {
    flex-wrap: wrap;
    gap: var(--sp-2) var(--sp-4);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__line > span,
  .showcase-card__seed {
    animation: none;
  }

  .service__panel,
  .wheel__svg,
  .is-ready .process-step__art svg > * {
    transition: none;
  }
}

/* ---- Interactive motion details ---- */

/* 2px rules redrawn by the motion layer (base.css). */
.services__list,
.faq__list {
  --rule-width: 2px;
  --rule-offset: -2px;
}

/* Hovering a closed service nudges its title and lengthens the leader. */
.service__title,
.service__index {
  transition: color var(--t-base) var(--ease-out), transform 500ms var(--ease-out);
}

.service:not(.is-open) .service__trigger:hover .service__title {
  transform: translateX(10px);
}

.service:not(.is-open) .service__trigger:hover .service__index {
  transform: translateX(4px);
}

/* An opening service lays its content out line by line. */
.is-enhanced .service .service__content > * {
  transition: opacity 500ms var(--ease-out), transform 700ms var(--ease-out);
}

.is-enhanced .service:not(.is-open) .service__content > * {
  opacity: 0;
  transform: translate3d(0, 12px, 0);
}

.is-enhanced .service.is-open .service__content > :nth-child(2) {
  transition-delay: 80ms;
}

.is-enhanced .service.is-open .service__content > :nth-child(3) {
  transition-delay: 160ms;
}

/* Index strip: each entry inks in on hover. */
.index-strip__list li {
  transition: color var(--t-fast) var(--ease-out);
}

.index-strip__list li:hover {
  color: var(--color-text);
}

/* FAQ answers slide open where the browser can animate to auto height. */
@supports (interpolate-size: allow-keywords) {
  .faq-item {
    interpolate-size: allow-keywords;
  }

  .faq-item::details-content {
    block-size: 0;
    overflow: hidden;
    transition: block-size 500ms var(--ease-out), content-visibility 500ms allow-discrete;
  }

  .faq-item[open]::details-content {
    block-size: auto;
  }
}

/* As the hero scrolls away the slice sinks back and the text lifts off. */
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .hero__stage {
      animation: hero-sink linear both;
      animation-timeline: scroll(root);
      animation-range: 0 100vh;
    }

    .hero__content {
      animation: hero-lift linear both;
      animation-timeline: scroll(root);
      animation-range: 0 100vh;
    }
  }
}

/* Stacked layouts show the slice below the fold, so it stays put there. */
@media (max-width: 1024px) {
  .hero__stage,
  .hero__content {
    animation: none;
  }
}

@keyframes hero-sink {
  to {
    translate: 0 14vh;
    scale: 0.9;
  }
}

@keyframes hero-lift {
  to {
    translate: 0 -6vh;
    opacity: 0.6;
  }
}

@media (prefers-reduced-motion: reduce) {
  .service__title,
  .service__index,
  .is-enhanced .service .service__content > * {
    transition: none;
  }

  .is-enhanced .service:not(.is-open) .service__content > * {
    opacity: 1;
    transform: none;
  }

  .faq-item::details-content {
    transition: none;
  }
}

/* ---- Opening cut (js/site-home.js initHeroCut; the slice's own cut is
   js/kiwi-field.js data-kiwi-intro). A blade hairline crosses each title
   line, then the line's two halves slide together along it. ---- */

.hero__line:nth-child(2) {
  --line-index: 1;
}

.hero__line:nth-child(3) {
  --line-index: 2;
}

@supports (content: "a" / "") {
  .hero__title:not(.is-cut-done) .hero__line {
    position: relative;
  }

  .hero__line > span[data-cut] {
    animation: none;
  }

  .hero__title:not(.is-cut-done) .hero__line > span[data-cut] {
    position: relative;
    -webkit-text-fill-color: transparent;
  }

  .hero__title:not(.is-cut-done) .hero__line > span[data-cut]::before,
  .hero__title:not(.is-cut-done) .hero__line > span[data-cut]::after {
    content: attr(data-cut) / "";
    position: absolute;
    inset: 0;
    white-space: inherit;
    -webkit-text-fill-color: currentColor;
    animation: 1200ms var(--ease-out) both;
    animation-delay: calc(var(--line-index, 0) * 150ms + 420ms);
  }

  .hero__title:not(.is-cut-done) .hero__line > span[data-cut]::before {
    clip-path: polygon(-10% -30%, 110% -30%, 110% 55%, -10% 55%);
    animation-name: cut-top;
  }

  .hero__title:not(.is-cut-done) .hero__line > span[data-cut]::after {
    clip-path: polygon(-10% 55%, 110% 55%, 110% 130%, -10% 130%);
    animation-name: cut-bottom;
  }

  .hero__title:not(.is-cut-done) .hero__line::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 51%;
    height: 2px;
    background: var(--color-accent-text);
    transform: scaleX(0);
    animation: cut-blade 900ms var(--ease-in-out) both;
    animation-delay: calc(var(--line-index, 0) * 150ms + 120ms);
  }
}

@keyframes cut-top {
  from {
    opacity: 0;
    transform: translate3d(-0.4em, 0, 0);
  }
  35% {
    opacity: 1;
  }
}

@keyframes cut-bottom {
  from {
    opacity: 0;
    transform: translate3d(0.4em, 0, 0);
  }
  35% {
    opacity: 1;
  }
}

@keyframes cut-blade {
  0% {
    transform: scaleX(0);
    transform-origin: 0 50%;
  }
  50% {
    transform: scaleX(1);
    transform-origin: 0 50%;
  }
  51% {
    transform: scaleX(1);
    transform-origin: 100% 50%;
  }
  100% {
    transform: scaleX(0);
    transform-origin: 100% 50%;
  }
}

/* The anatomy plate is drawn after the slice has landed: the leaders grow
   outward from the slice (a widening radial mask), then dots and labels. */
@property --anatomy-reach {
  syntax: '<percentage>';
  inherits: false;
  initial-value: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  .anatomy__lines {
    -webkit-mask-image: radial-gradient(farthest-corner, #000 var(--anatomy-reach), transparent calc(var(--anatomy-reach) + 4%));
    mask-image: radial-gradient(farthest-corner, #000 var(--anatomy-reach), transparent calc(var(--anatomy-reach) + 4%));
    animation: anatomy-reach 1300ms var(--ease-out) 1150ms both;
  }

  .anatomy__dot,
  .anatomy__label {
    animation: anatomy-pop 700ms var(--ease-out) both;
    animation-delay: calc(1150ms + var(--a, 0) * 130ms);
  }

  .anatomy__label {
    animation-name: anatomy-label;
    animation-delay: calc(1500ms + var(--a, 0) * 130ms);
  }

  .anatomy__dot--b,
  .anatomy__label--b {
    --a: 1;
  }

  .anatomy__dot--c,
  .anatomy__label--c {
    --a: 2;
  }

  .anatomy__dot--d,
  .anatomy__label--d {
    --a: 3;
  }
}

@keyframes anatomy-reach {
  from {
    --anatomy-reach: 30%;
  }
  to {
    --anatomy-reach: 100%;
  }
}

@keyframes anatomy-pop {
  from {
    opacity: 0;
    transform: scale(0);
  }
}

@keyframes anatomy-label {
  from {
    opacity: 0;
    transform: translate3d(0, 10px, 0);
  }
}

/* ---- Growth drawing (js/site-home.js initProcess): the seed sprouts, the
   stem and leaves grow, a flower opens and becomes the fruit, the blade cuts
   it and the slice appears — scrubbed by the reader's progress through the
   five steps. Without JS or with reduced motion the finished drawing shows. ---- */

.process__visual {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: end;
  gap: var(--sp-5);
  margin-top: var(--sp-6);
}

.process__visual .process__counter {
  margin-top: 0;
}

.growth {
  width: 100%;
  height: clamp(240px, 44vh, 440px);
  overflow: visible;
  fill: none;
  stroke: var(--color-text);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.growth [data-grow] {
  --t: 1;
  opacity: var(--o, 1);
}

.growth [data-fade] {
  --o: 0;
}

.growth .g-draw {
  stroke-dasharray: 1;
  stroke-dashoffset: calc(1 - var(--t));
}

.growth .g-pop {
  transform-box: fill-box;
  transform-origin: 50% 50%;
  transform: scale(var(--t));
}

.growth .g-fruit {
  transform-origin: 50% 0;
}

.growth .g-soil {
  stroke: var(--color-line-strong);
}

.growth .g-seed,
.growth .g-seeds ellipse {
  fill: var(--kiwi-seed);
  stroke: none;
}

.growth .g-leaf {
  fill: var(--color-accent);
  fill-opacity: calc(var(--t) * 2 - 1);
}

.growth .g-flower circle {
  fill: var(--color-surface);
}

.growth .g-core {
  fill: var(--kiwi-core);
}

.growth .g-fruit ellipse,
.growth .g-skin {
  fill: var(--kiwi-skin);
}

.growth .g-fruit path {
  stroke: var(--kiwi-skin);
}

.growth .g-knife {
  stroke: var(--color-accent-text);
  stroke-width: 2.2;
}

.growth .g-flesh {
  fill: var(--kiwi-flesh);
  stroke: none;
}

.growth .g-rays {
  stroke: var(--kiwi-core);
  stroke-width: 0.8;
  opacity: 0.75;
}

.growth .g-slice .g-core {
  stroke: none;
}

@media (max-width: 1024px) {
  .process__visual {
    display: none;
  }
}

/* ---- Showcase depth: while the projects are pinned, each card's browser,
   phone and caption drift by different amounts around the centre (--shift
   from js/site-home.js initShowcase). ---- */

@media (prefers-reduced-motion: no-preference) {
  .showcase.is-pinned .showcase-card .device-browser {
    translate: calc(var(--shift, 0) * 28px) 0;
    rotate: calc(var(--shift, 0) * -1.2deg);
  }

  .showcase.is-pinned .showcase-card .device-phone {
    translate: calc(var(--shift, 0) * -80px) calc(var(--shift, 0) * var(--shift, 0) * 24px);
  }

  .showcase.is-pinned .showcase-card__info {
    translate: calc(var(--shift, 0) * 48px) 0;
    opacity: calc(1.6 - max(var(--shift, 0), -1 * var(--shift, 0)) * 0.9);
  }
}
