/* ==========================================================================
   Rizovit — "From field to wall" (process.html)
   Mobile first. Seven chapters; on wide screens each chapter's number sits in
   a sticky left rail (CSS only). Motion is transform/opacity/clip-path only.
   ========================================================================== */

/* While the page slides in, what shows above it matches the dark opening */
body[data-page="process"] { background-color: var(--paddy-deep); }

.pr-anim [data-pr-hide] { opacity: 0; }

/* ---------- Opening ---------- */
.pr-hero {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  overflow: hidden;
  background: var(--paddy-deep);
  color: var(--on-dark);
}
.pr-hero__bg { position: absolute; inset: -6% 0 0; z-index: -2; overflow: hidden; }
.pr-hero__bg picture { display: block; width: 100%; height: 100%; }
.pr-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  transform-origin: 50% 60%;
  will-change: transform;
  animation: pr-drift 32s cubic-bezier(.45, 0, .55, 1) infinite alternate;
}
@keyframes pr-drift {
  from { transform: scale(1.14) translate3d(-1.6%, 1.2%, 0); }
  to { transform: scale(1.03) translate3d(1.4%, -1%, 0); }
}
.pr-hero__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(20, 26, 8, .6) 0%, rgba(20, 26, 8, .1) 22%, rgba(20, 26, 8, .08) 42%, rgba(20, 26, 8, .55) 64%, rgba(20, 26, 8, .9) 100%);
}
.pr-hero__inner {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto 1fr auto auto auto;
  grid-template-areas: "top" "." "title" "lead" "foot";
  gap: 14px;
  padding:
    calc(var(--header-h) + env(safe-area-inset-top, 0px) + 18px)
    max(var(--gutter), env(safe-area-inset-right, 0px))
    calc(16px + env(safe-area-inset-bottom, 0px))
    max(var(--gutter), env(safe-area-inset-left, 0px));
}
.pr-hero__top { grid-area: top; }
.pr-hero__kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; color: var(--on-dark-2); }
.pr-hero__dot { width: 4px; height: 4px; border-radius: 50%; background: var(--sprout); }
.pr-hero__lead {
  grid-area: lead;
  max-width: 24em;
  font-size: 1.02rem;
  line-height: 1.45;
  color: var(--on-dark);
  text-wrap: pretty;
}
.pr-hero__title {
  grid-area: title;
  margin: 0 0 .1em;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: min(16rem, calc((100vw - 2 * var(--gutter)) / 4.4));
  line-height: .84;
  letter-spacing: -.03em;
  min-width: 0;
  color: var(--rice);
}
.pr-hero__line { display: block; overflow: hidden; padding: .02em 0 .05em; margin-bottom: -.05em; white-space: nowrap; }
.pr-hero__line > span { display: inline-block; }
.pr-hero__line:last-child { color: var(--straw); }
.pr-hero__foot {
  grid-area: foot;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 8px;
  border-top: 1px solid rgba(243, 238, 226, .28);
}
.pr-hero__begin { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; color: var(--on-dark); }
.pr-hero__drip { position: relative; width: 1px; height: 26px; overflow: hidden; background: rgba(243, 238, 226, .3); }
.pr-hero__drip::after { content: ""; position: absolute; inset: 0; background: var(--straw); animation: pr-drip 1.8s var(--ease) infinite; }
@keyframes pr-drip { from { transform: translateY(-100%); } to { transform: translateY(100%); } }
.pr-hero__count { color: var(--on-dark-2); }
.pr-hero__cap { display: none; color: var(--on-dark-2); text-align: right; }
.pr-hero__cap--wide { display: none; }
@media not all and (max-aspect-ratio: 4/5) {
  .pr-hero__cap--tall { display: none; }
  .pr-hero__cap--wide { display: inline; }
}

@media (min-width: 900px) {
  .pr-hero__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 30em);
    grid-template-rows: auto 1fr auto auto;
    grid-template-areas: "top lead" ". ." "title title" "foot foot";
    column-gap: 48px;
  }
  .pr-hero__lead { justify-self: end; font-size: clamp(1.1rem, .9rem + .45vw, 1.35rem); }
  .pr-hero__line:last-child { text-align: right; }
  .pr-hero__cap { display: block; }
  .pr-hero__shade {
    background:
      radial-gradient(60% 50% at 88% 10%, rgba(20, 26, 8, .7), rgba(20, 26, 8, 0) 70%),
      linear-gradient(180deg, rgba(20, 26, 8, .55) 0%, rgba(20, 26, 8, .08) 26%, rgba(20, 26, 8, .1) 50%, rgba(20, 26, 8, .7) 100%);
  }
}

/* ---------- Prologue ---------- */
.pr-pro { padding-block: clamp(80px, 11vw, 180px) clamp(72px, 9vw, 150px); }
.pr-pro__title {
  max-width: 19em;
  font-weight: 500;
  font-size: clamp(1.85rem, 1.05rem + 3.3vw, 4.4rem);
  line-height: 1.04;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.pr-pro__cols { display: grid; gap: 40px; margin-top: clamp(36px, 5vw, 80px); }
.pr-pro__body { max-width: 30em; }
.pr-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; margin: 0; }
.pr-fact { border-top: 1px solid var(--line-2); padding-top: 12px; }
.pr-fact__n {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 1.7rem + 2.6vw, 4.4rem);
  line-height: .95;
  letter-spacing: -.02em;
  color: var(--paddy);
  white-space: nowrap;
}
.pr-fact dd { margin: 6px 0 0; font-size: var(--t-sm); line-height: 1.4; color: var(--ink-2); max-width: 14em; }
@media (min-width: 1024px) {
  .pr-pro__cols { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 120px); align-items: start; }
  .pr-facts { gap: 40px 32px; }
}

/* Chapter index */
.pr-toc { margin-top: clamp(64px, 9vw, 140px); }
.pr-toc__label { color: var(--ink-2); margin-bottom: 14px; }
.pr-toc__list { border-top: 1px solid var(--ink); }
.pr-toc__a {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 2.4em minmax(0, 1fr) 22px;
  grid-template-areas: "n name arr" "n d arr";
  align-items: baseline;
  column-gap: 10px;
  row-gap: 2px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line-2);
  transition: padding .5s var(--ease-out), color .35s;
}
.pr-toc__a::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 4px;
  background: var(--paddy);
  transform: scaleY(0);
  transform-origin: 50% 100%;
  transition: transform .5s var(--ease-out);
}
.pr-toc__a::after {
  content: "";
  grid-area: arr;
  align-self: center;
  width: 9px;
  height: 9px;
  margin-left: 4px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px);
  opacity: .55;
}
.pr-toc__n { grid-area: n; font-family: var(--f-cond); font-weight: 600; font-size: var(--t-xs); letter-spacing: .08em; color: var(--husk); }
.pr-toc__name { grid-area: name; font-size: clamp(1.35rem, 1.05rem + 1.1vw, 2.2rem); font-weight: 500; line-height: 1.1; letter-spacing: -.025em; }
.pr-toc__d { grid-area: d; font-size: var(--t-sm); color: var(--ink-2); line-height: 1.4; }
.pr-toc__m { display: none; }
@media (hover: hover) {
  .pr-toc__a:hover { color: var(--rice); padding-inline: 16px; }
  .pr-toc__a:hover::before { transform: scaleY(1); }
  .pr-toc__a:hover .pr-toc__d { color: var(--on-dark-2); }
  .pr-toc__a:hover .pr-toc__n { color: var(--straw); }
}
@media (min-width: 900px) {
  .pr-toc__a {
    grid-template-columns: 3.5em minmax(0, 1.1fr) minmax(0, 1.3fr) minmax(0, 13em) 22px;
    grid-template-areas: "n name d m arr";
    padding: 20px 0;
  }
  .pr-toc__m { display: block; grid-area: m; color: var(--ink-2); text-align: right; }
  .pr-toc__a:hover .pr-toc__m { color: var(--on-dark-2); }
}

/* ---------- Chapter frame ---------- */
.chap { position: relative; padding-block: clamp(72px, 10vw, 170px); }
.chap--bran { background: var(--rice-2) var(--pattern); }
.chap--deep { background: var(--paddy-deep) var(--pattern-dark); color: var(--on-dark); }

.chap__rail-in {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas: "no name" "no months";
  align-items: end;
  column-gap: 14px;
  padding-top: 12px;
  margin-bottom: clamp(28px, 6vw, 44px);
  border-top: 1px solid var(--line-2);
}
.chap--deep .chap__rail-in { border-color: var(--line-dark); }
.chap__no {
  grid-area: no;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(4.2rem, 3rem + 6vw, 11rem);
  line-height: .78;
  letter-spacing: -.03em;
  color: var(--husk);
}
.chap--deep .chap__no { color: var(--sprout); }
.chap__name { grid-area: name; color: var(--ink); }
.chap__name-k { color: var(--ink-2); }
.chap__months { grid-area: months; color: var(--ink-2); margin-top: 3px; padding-bottom: 4px; }
.chap--deep .chap__name { color: var(--on-dark); }
.chap--deep .chap__name-k, .chap--deep .chap__months { color: var(--on-dark-2); }

.chap__title {
  max-width: 13em;
  font-weight: 500;
  font-size: clamp(2.2rem, 1.25rem + 3.9vw, 5rem);
  line-height: .98;
  letter-spacing: -.04em;
  text-wrap: balance;
}
.chap__lead { margin-top: clamp(20px, 3vw, 36px); max-width: 34em; }
.chap__text { display: grid; gap: 16px; margin-top: clamp(24px, 3.5vw, 48px); }
.chap__text p { max-width: 34em; font-size: clamp(1.02rem, .96rem + .25vw, 1.18rem); line-height: 1.6; color: var(--ink-2); text-wrap: pretty; }
.chap--deep .chap__text p, .chap--deep .lead { color: var(--on-dark-2); }

@media (min-width: 1024px) {
  .chap__grid {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 9fr);
    column-gap: clamp(32px, 4vw, 80px);
  }
  .chap__rail { position: relative; }
  .chap__rail-in {
    position: sticky;
    top: calc(var(--header-h) + 28px);
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "no" "name" "months";
    row-gap: 10px;
    margin: 0;
    padding-top: 14px;
  }
  .chap__no { margin-bottom: 8px; }
  .chap__text { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(28px, 3vw, 56px); }
}

/* ---------- Photos ---------- */
.ph { margin-top: clamp(32px, 5vw, 72px); overflow: hidden; }
.ph__frame { overflow: hidden; border-radius: 4px; background: var(--rice-2); aspect-ratio: 16 / 9; }
.chap--deep .ph__frame { background: rgba(243, 238, 226, .06); }
.ph__frame img { width: 100%; height: 100%; object-fit: cover; }
.ph figcaption { margin-top: 10px; color: var(--ink-2); }
.chap--deep .ph figcaption { color: var(--on-dark-2); }
.ph--folk .ph__frame { aspect-ratio: 4 / 3; }
.ph--mill { max-width: 760px; }

.pair { display: grid; gap: 20px; margin-top: clamp(32px, 5vw, 72px); }
.pair > .ph { margin-top: 0; }
.pair__text { font-size: clamp(1.15rem, .95rem + .8vw, 1.6rem); line-height: 1.35; letter-spacing: -.015em; font-weight: 500; max-width: 22em; text-wrap: pretty; }
@media (min-width: 760px) {
  .pair { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(24px, 3.5vw, 56px); align-items: end; }
  .pair--two { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
}

/* Numbers row (harvest) */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: clamp(32px, 4vw, 56px) 0 0; }
.stats > div { border-top: 1px solid var(--line-2); padding-top: 10px; }
.stats__n {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(1.9rem, 1.3rem + 2.6vw, 4rem);
  line-height: .95;
  color: var(--paddy);
  white-space: nowrap;
}
.stats dd { margin: 6px 0 0; font-size: var(--t-sm); line-height: 1.38; color: var(--ink-2); }

/* ---------- 01: season strip ---------- */
.strip { margin-top: clamp(36px, 5vw, 72px); }
.strip__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 78%;
  gap: 12px;
  margin-inline: calc(-1 * max(var(--gutter), env(safe-area-inset-left, 0px)));
  padding-inline: max(var(--gutter), env(safe-area-inset-left, 0px));
  scroll-padding-inline: max(var(--gutter), env(safe-area-inset-left, 0px));
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.strip__track::-webkit-scrollbar { display: none; }
.strip__track:focus-visible { outline-offset: -2px; }
.scard { scroll-snap-align: start; min-width: 0; }
.scard__img { aspect-ratio: 5 / 4; overflow: hidden; border-radius: 4px; background: var(--rice-2); }
.scard__img img { width: 100%; height: 100%; object-fit: cover; }
.scard figcaption { display: grid; gap: 2px; padding-top: 12px; }
.scard__day { color: var(--husk); margin-bottom: 4px; }
.scard strong { font-weight: 500; font-size: 1.15rem; letter-spacing: -.01em; line-height: 1.2; }
.scard figcaption > span:last-child { font-size: var(--t-sm); color: var(--ink-2); line-height: 1.4; }
.strip__hint { display: flex; align-items: center; gap: 10px; margin-top: 16px; color: var(--ink-2); }
.strip__hint i { position: relative; width: 36px; height: 1px; background: var(--line-2); overflow: hidden; }
.strip__hint i::after { content: ""; position: absolute; inset: 0; background: var(--husk); animation: pr-swipe 2.2s var(--ease) infinite; }
@keyframes pr-swipe { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
@media (min-width: 1024px) {
  .strip__track {
    grid-auto-flow: row;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(14px, 1.4vw, 24px);
    margin-inline: 0;
    padding-inline: 0;
    overflow: visible;
  }
  .scard__img { aspect-ratio: 4 / 5; }
  .strip__hint { display: none; }
}

/* ---------- 01: season timeline (month grid) ---------- */
.tl { margin-top: clamp(48px, 6vw, 96px); padding-top: 14px; border-top: 1px solid var(--ink); }
.tl__head { display: flex; justify-content: space-between; gap: 12px; color: var(--ink); }
.tl__chart { display: grid; gap: 6px; margin-top: 18px; }
.tl__months, .tl__row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; }
.tl__months .tl__label { display: none; }
.tl__track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: center;
  height: 14px;
  background: linear-gradient(to right, var(--line) 1px, transparent 1px) 0 0 / calc(100% / 12) 100%;
  box-shadow: inset -1px 0 0 var(--line);
}
.tl__months .tl__track { height: auto; background: none; box-shadow: none; }
.tl__m { font-family: var(--f-cond); font-weight: 600; font-size: 11px; letter-spacing: .04em; color: var(--ink-2); text-align: center; }
.tl__m.is-now { color: var(--husk); }
.tl__group { margin-top: 14px; color: var(--ink-2); }
.tl__label { font-size: var(--t-sm); line-height: 1.25; color: var(--ink); }
.tl__bar {
  grid-row: 1;
  height: 8px;
  border-radius: 8px;
  margin-inline: 1px;
  background: var(--paddy-2);
  transform-origin: 0 50%;
  transition: transform 1.1s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 70ms);
}
.pr-anim .tl:not(.is-in) .tl__bar { transform: scaleX(0); }
.tl__row--gold .tl__bar { background: var(--husk); }
.tl__row--straw .tl__bar { background: var(--straw); box-shadow: inset 0 0 0 1px rgba(181, 131, 58, .45); }
.tl__row--husk .tl__bar { background: var(--husk); }
.tl__row--ours .tl__bar { background: var(--ink); }
.tl__note { margin-top: 18px; font-size: var(--t-sm); color: var(--ink-2); max-width: 36em; }
@media (min-width: 700px) {
  .tl__months, .tl__row { grid-template-columns: minmax(0, 13em) minmax(0, 1fr); gap: 16px; align-items: center; }
  .tl__months .tl__label { display: block; }
  .tl__group { margin-top: 18px; }
  .tl__m { font-size: var(--t-xs); }
  .tl__track { height: 18px; }
  .tl__bar { height: 10px; }
}

/* ---------- Interlude: full-bleed photo with one line ---------- */
.inter {
  position: relative;
  isolation: isolate;
  height: 78vh;
  height: 78svh;
  min-height: 460px;
  overflow: hidden;
  background: var(--paddy-deep);
  color: var(--on-dark);
}
.inter__frame { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.inter__frame picture { display: block; height: 100%; }
.inter__img { position: absolute; left: 0; top: -9%; width: 100%; height: 118%; object-fit: cover; }
.inter::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(20, 26, 8, .35) 0%, rgba(20, 26, 8, 0) 32%, rgba(20, 26, 8, .12) 55%, rgba(20, 26, 8, .78) 100%);
}
.inter__cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  gap: 14px;
  padding-bottom: clamp(24px, 5vw, 64px);
}
.inter__line {
  max-width: 15em;
  font-weight: 500;
  font-size: clamp(1.8rem, 1.1rem + 3vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.inter__place { color: var(--on-dark-2); }
@media (min-width: 1024px) { .inter { height: 92vh; } }

/* ---------- 03: what one kilogram becomes ---------- */
.kg {
  margin-top: clamp(40px, 6vw, 88px);
  padding: clamp(18px, 3vw, 36px);
  border-radius: 6px;
  background: var(--rice) var(--pattern);
  box-shadow: 0 0 0 1px var(--line);
}
.kg__title { font-size: clamp(1.3rem, 1rem + 1.1vw, 2rem); font-weight: 500; letter-spacing: -.025em; line-height: 1.1; }
.kg__sub { margin-top: 6px; font-size: var(--t-sm); color: var(--ink-2); max-width: 32em; }
.kg__body { display: grid; gap: 24px; margin-top: 22px; }
.kg__photo { display: none; overflow: hidden; border-radius: 4px; background: var(--rice-2); }
.kg__photo img { width: 100%; height: 100%; object-fit: cover; }
.kg__blocks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.kg__bl { color: var(--ink-2); margin-bottom: 8px; }
.dots { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 3px; }
.dot {
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--dc, #FBF8EF);
  box-shadow: inset 0 0 0 1px var(--db, rgba(67, 82, 36, .28));
  transition: transform .7s var(--ease-out), opacity .5s;
  transition-delay: calc(var(--i, 0) * 6ms);
}
.pr-anim .kg:not(.is-in) .dot { transform: scale(.2); opacity: 0; }
.dot--husk { --dc: var(--husk); --db: rgba(0, 0, 0, 0); }
.dot--bran { --dc: #7B5A2C; --db: rgba(0, 0, 0, 0); }
.dot--straw { --dc: var(--straw); --db: rgba(181, 131, 58, .35); }
.kg__block--field .dots { opacity: .92; }
.kg__legend { display: grid; gap: 0; margin: 0; align-content: start; }
.kg__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: baseline; padding: 10px 0; border-top: 1px solid var(--line); }
.kg__row dt { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.kg__row dt i { width: 12px; height: 12px; flex: none; border-radius: 50%; background: var(--dc); box-shadow: inset 0 0 0 1px var(--db, transparent); }
.kg__row--white dt i { --dc: #FBF8EF; --db: rgba(67, 82, 36, .35); }
.kg__row--husk dt i { --dc: var(--husk); }
.kg__row--bran dt i { --dc: #7B5A2C; }
.kg__row--straw dt i { --dc: var(--straw); --db: rgba(181, 131, 58, .45); }
.kg__row dd { margin: 0; display: grid; justify-items: end; text-align: right; }
.kg__row dd strong { font-family: var(--f-cond); font-weight: 600; font-size: 1.05rem; }
.kg__row dd span { font-size: var(--t-xs); color: var(--ink-2); }
.kg__row--husk { position: relative; }
.kg__row--husk dt span { box-shadow: inset 0 -.45em 0 rgba(181, 131, 58, .22); }
.kg__row--straw { border-top-style: dashed; border-top-color: var(--line-2); }
.kg__foot { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--line); font-size: var(--t-sm); color: var(--ink-2); }
.kg__foot .label { color: var(--ink); }
@media (min-width: 600px) {
  .kg__photo { display: block; aspect-ratio: 16 / 7; }
}
@media (min-width: 1100px) {
  .kg__body { grid-template-columns: minmax(0, .8fr) minmax(0, 2fr) minmax(0, 1.3fr); gap: clamp(20px, 2.4vw, 40px); align-items: stretch; }
  .kg__photo { aspect-ratio: auto; min-height: 100%; }
  .kg__blocks { align-content: start; }
  .dots { gap: 4px; }
}

/* ---------- 04: before and now ---------- */
.pull {
  margin-top: clamp(32px, 5vw, 64px);
  padding-left: 18px;
  border-left: 2px solid var(--sprout);
  max-width: 26em;
  font-size: clamp(1.2rem, .98rem + .9vw, 1.75rem);
  font-weight: 500;
  line-height: 1.32;
  letter-spacing: -.015em;
  color: var(--on-dark);
  text-wrap: pretty;
}
.vs { margin-top: clamp(36px, 5vw, 72px); }
.vs__head { display: none; }
.vs__list { margin: 0; border-top: 1px solid var(--on-dark); }
.vs__row { display: grid; gap: 10px; padding: 18px 0 20px; border-bottom: 1px solid var(--line-dark); }
.vs__row dt { font-size: clamp(1.3rem, 1rem + 1vw, 2rem); font-weight: 500; letter-spacing: -.02em; line-height: 1.1; }
.vs__row dd { margin: 0; display: grid; grid-template-columns: 6.4em minmax(0, 1fr); gap: 12px; align-items: baseline; line-height: 1.45; }
.vs__tag { color: var(--on-dark-2); }
.vs__b { color: var(--on-dark-2); }
.vs__b > span:last-child { text-decoration: line-through; text-decoration-color: rgba(243, 238, 226, .35); text-decoration-thickness: 1px; }
.vs__n .vs__tag { color: var(--sprout); }
@media (min-width: 900px) {
  .vs__head {
    display: grid;
    grid-template-columns: minmax(0, .7fr) minmax(0, 1fr) minmax(0, 1.3fr);
    gap: 28px;
    padding-bottom: 12px;
    color: var(--on-dark-2);
  }
  .vs__head span:last-child { color: var(--sprout); }
  .vs__row { grid-template-columns: minmax(0, .7fr) minmax(0, 1fr) minmax(0, 1.3fr); gap: 28px; align-items: baseline; padding: 22px 0 24px; }
  .vs__row dd { display: block; }
  .vs__tag { display: none; }
}

/* ---------- 05: workshop steps ---------- */
.wsteps { margin-top: clamp(36px, 5vw, 72px); border-top: 1px solid var(--ink); }
.wstep { display: grid; grid-template-columns: 3em minmax(0, 1fr); column-gap: 10px; row-gap: 8px; padding: 22px 0 26px; border-bottom: 1px solid var(--line-2); }
.wstep__n { grid-row: 1; font-family: var(--f-cond); font-weight: 600; font-size: var(--t-sm); color: var(--husk); padding-top: .25em; }
.wstep__t { grid-column: 2; font-size: clamp(1.35rem, 1.05rem + 1.1vw, 2.2rem); font-weight: 500; letter-spacing: -.025em; line-height: 1.1; }
.wstep__p { grid-column: 2; color: var(--ink-2); max-width: 34em; line-height: 1.58; }
.wstep > figure { grid-column: 1 / -1; margin-top: 18px; }
@media (min-width: 760px) {
  .wstep { grid-template-columns: 4em minmax(0, 1fr) minmax(0, 1.4fr); column-gap: clamp(16px, 2.5vw, 40px); padding: 30px 0 34px; }
  .wstep__t { grid-column: 2; grid-row: 1; }
  .wstep__p { grid-column: 3; grid-row: 1; }
  .wstep > figure { grid-column: 2 / -1; margin-top: 26px; }
}
.wstep figure > figcaption { color: var(--ink-2); margin-bottom: 12px; }

/* Mix bar */
.mix__bar { display: flex; height: 46px; border-radius: 4px; overflow: hidden; gap: 2px; }
.mix__seg { flex: var(--w) 1 0; transform-origin: 0 50%; transition: transform 1s var(--ease-out); }
.mix__seg--straw { transition-delay: .12s; }
.mix__seg--binder { transition-delay: .24s; }
.pr-anim .mix:not(.is-in) .mix__seg { transform: scaleX(0); }
.mix__seg--husk { background: var(--husk); }
.mix__seg--straw { background: var(--straw); }
.mix__seg--binder { background: var(--paddy); }
.mix__legend { display: grid; grid-template-columns: 70fr 20fr 10fr; gap: 2px; margin: 8px 0 0; }
.mix__item { min-width: 0; }
.mix__item dt { font-size: var(--t-xs); color: var(--ink-2); line-height: 1.25; }
.mix__item dd { margin: 0; font-family: var(--f-cond); font-weight: 600; }
/* The 10% column is too narrow for its label on phones: give it the row below */
@media (max-width: 520px) {
  .mix__legend { grid-template-columns: 70fr 30fr; }
  .mix__item--binder { grid-column: 1 / -1; display: flex; gap: 8px; align-items: baseline; }
  .mix__item--binder dd { order: -1; }
}

/* Two drawings: panel and hexagon tile */
.shapes__row { max-width: 560px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.shape { min-width: 0; }
.shape__svg { width: 100%; height: auto; overflow: visible; }
.d-fill { fill: rgba(181, 131, 58, .16); }
.d-line { fill: none; stroke: var(--ink); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.d-groove { fill: none; stroke: rgba(181, 131, 58, .7); stroke-width: 1; vector-effect: non-scaling-stroke; }
.d-dim { fill: none; stroke: var(--husk); stroke-width: 1; vector-effect: non-scaling-stroke; }
.shape__t { display: grid; gap: 1px; margin-top: 10px; font-size: var(--t-sm); color: var(--ink-2); line-height: 1.35; }
.shape__t strong { color: var(--ink); font-weight: 600; }
.shape__thick { font-family: var(--f-cond); font-weight: 600; color: var(--husk); }

/* Three finishes (renders; the hexagon behind keeps an empty slot calm) */
.fins3__list { max-width: 520px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.fin3 { display: grid; gap: 8px; justify-items: start; }
.fin3 .label { color: var(--ink-2); }
.fin3__art {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 4px;
  background: var(--rice-2);
  overflow: hidden;
}
.fin3__art::before {
  content: "";
  grid-area: 1 / 1;
  width: 56%;
  aspect-ratio: 1.1547;
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
  background: var(--sw);
  opacity: .9;
}
.fin3--natural { --sw: var(--fin-natural); }
.fin3--charcoal { --sw: var(--fin-charcoal); }
.fin3--straw { --sw: var(--fin-straw); }
.rimg { grid-area: 1 / 1; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity .6s var(--ease-out); position: relative; }
.rimg.is-loaded { opacity: 1; }
.fin3__art:has(.rimg.is-loaded)::before { opacity: 0; }

/* ---------- 06: checks ---------- */
.qc { margin-top: clamp(32px, 5vw, 64px); }
.qc__table { width: 100%; border-collapse: collapse; border-top: 1px solid var(--ink); }
.qc__table thead { display: none; }
.qc__table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line-2); }
.qc__table th[scope="row"] { grid-column: 1; text-align: left; font-weight: 500; font-size: 1.1rem; letter-spacing: -.01em; }
.qc__table td:nth-child(2) { grid-column: 1; font-size: var(--t-sm); color: var(--ink-2); }
.qc__table td:nth-child(3) {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  font-family: var(--f-cond);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--paddy);
  white-space: nowrap;
}
.qc__note { margin-top: 12px; font-size: var(--t-sm); color: var(--ink-2); }
@media (min-width: 760px) {
  .qc__table thead { display: table-header-group; }
  .qc__table tr { display: table-row; padding: 0; }
  .qc__table th, .qc__table td { padding: 16px 16px 16px 0; text-align: left; vertical-align: baseline; border-bottom: 1px solid var(--line-2); }
  .qc__table thead th { color: var(--ink-2); padding-block: 12px; }
  .qc__table th[scope="row"] { font-size: 1.2rem; }
  .qc__table td:nth-child(2) { font-size: 1rem; }
  .qc__table td:nth-child(3), .qc__table thead th:nth-child(3) { text-align: right; padding-right: 0; }
}

.stamp-row { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 20px; align-items: center; margin-top: clamp(40px, 5vw, 72px); }
.stamp { position: relative; width: 100%; aspect-ratio: 1; color: var(--husk); transform: rotate(-10deg); }
.stamp svg { width: 100%; height: 100%; overflow: visible; }
.stamp__o, .stamp__i { fill: none; stroke: currentColor; stroke-width: 1.4; }
.stamp__o { stroke-width: 2; }
.stamp__ring { fill: currentColor; font-family: var(--f-cond); font-weight: 600; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; }
.stamp__mid { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 1px; text-align: center; line-height: 1.05; }
.stamp__k { font-family: var(--f-cond); font-weight: 600; font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }
.stamp__v { font-family: var(--f-display); font-weight: 800; font-size: 20px; letter-spacing: .01em; }
.stamp-row__text { max-width: 30em; color: var(--ink-2); line-height: 1.55; }
@media (min-width: 760px) {
  .stamp-row { grid-template-columns: 150px minmax(0, 1fr); gap: 36px; }
  .stamp__k { font-size: 11px; }
  .stamp__v { font-size: 26px; }
  .stamp-row__text { font-size: 1.12rem; }
}

/* ---------- 07: the whole way ---------- */
.route { margin-top: clamp(40px, 6vw, 88px); }
.route__title { color: var(--ink-2); margin-bottom: 18px; }
.route__list { position: relative; display: grid; gap: 0; padding-left: 28px; }
.route__list::before { content: ""; position: absolute; left: 6px; top: 10px; bottom: 14px; width: 1px; background: var(--line-2); }
.route__stop { position: relative; display: grid; gap: 1px; }
.route__stop strong { font-size: clamp(1.35rem, 1.05rem + 1.1vw, 2.2rem); font-weight: 500; letter-spacing: -.025em; line-height: 1.1; }
.route__stop > span:last-child { font-size: var(--t-sm); color: var(--ink-2); }
.route__dot { position: absolute; left: -28px; top: .5em; width: 13px; height: 13px; border-radius: 50%; background: var(--rice); box-shadow: inset 0 0 0 1.5px var(--paddy); }
.route__stop--end .route__dot { background: var(--paddy); }
.route__leg { padding: 14px 0; font-family: var(--f-cond); font-weight: 600; font-size: var(--t-sm); color: var(--husk); }
@media (min-width: 900px) {
  .route__list { grid-template-columns: auto minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr) auto; align-items: start; padding: 26px 0 0; }
  .route__list::before { left: 6px; right: 6px; top: 32px; bottom: auto; width: auto; height: 1px; }
  .route__dot { left: 0; top: -26px; }
  .route__leg { padding: 0 12px; margin-top: -32px; text-align: center; align-self: start; }
  .route__stop--end { justify-items: end; text-align: right; }
  .route__stop--end .route__dot { left: auto; right: 0; }
}

/* ---------- Ending ---------- */
.pr-end {
  position: relative;
  padding-block: clamp(88px, 12vw, 190px) clamp(40px, 5vw, 72px);
  background: var(--paddy-deep) var(--pattern-dark);
  color: var(--on-dark);
}
.pr-end__kicker { color: var(--sprout); }
.pr-end__title {
  margin-top: 16px;
  max-width: 11em;
  font-weight: 500;
  font-size: clamp(2.6rem, 1.2rem + 6vw, 8rem);
  line-height: .93;
  letter-spacing: -.045em;
  text-wrap: balance;
}
.pr-end__lead { margin-top: 22px; color: var(--on-dark-2); }
.pr-end__cards { display: grid; gap: 14px; margin-top: clamp(40px, 6vw, 88px); }
.ecard {
  position: relative;
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) 40px;
  align-items: center;
  gap: 16px;
  padding: 12px 16px 12px 12px;
  border-radius: 14px;
  background: rgba(243, 238, 226, .05);
  box-shadow: inset 0 0 0 1px var(--line-dark);
  transition: background-color .45s var(--ease-out), box-shadow .45s;
}
.ecard__art {
  position: relative;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(243, 238, 226, .07);
  overflow: hidden;
}
.ecard__art::before { content: ""; grid-area: 1 / 1; background: rgba(226, 207, 147, .22); transition: opacity .6s; }
.ecard__art--panel::before { width: 52%; aspect-ratio: 1; border-radius: 3px; }
.ecard__art--tile::before { width: 58%; aspect-ratio: 1.1547; clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%); }
.ecard__art:has(.rimg.is-loaded)::before { opacity: 0; }
.ecard .rimg { transition: opacity .6s var(--ease-out), transform .9s var(--ease-out); }
.ecard__name { font-size: clamp(1.3rem, 1rem + 1.1vw, 2.2rem); font-weight: 500; letter-spacing: -.025em; line-height: 1.08; }
.ecard__kind { margin-top: 3px; font-size: var(--t-sm); color: var(--on-dark-2); }
.ecard__price { margin-top: 10px; font-size: var(--t-sm); color: var(--on-dark-2); }
.ecard__price strong { color: var(--straw); font-weight: 600; }
.ecard__arr { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line-dark); transition: background-color .4s, color .4s, transform .5s var(--ease-out); }
.ecard__arr svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) {
  .ecard:hover { background: rgba(243, 238, 226, .1); }
  .ecard:hover .rimg.is-loaded { transform: scale(1.06); }
  .ecard:hover .ecard__arr { background: var(--sprout); color: var(--paddy-deep); transform: translateX(3px); }
}
.pr-end__foot { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.pr-end__credits { margin-top: clamp(56px, 7vw, 110px); padding-top: 16px; border-top: 1px solid var(--line-dark); font-size: var(--t-xs); line-height: 1.5; color: var(--on-dark-2); max-width: 60em; }
@media (min-width: 760px) {
  .pr-end__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .ecard { grid-template-columns: minmax(0, 1fr) 44px; grid-template-rows: auto auto; align-items: end; gap: 18px; padding: 16px 20px 20px 16px; border-radius: 18px; }
  .ecard__art { grid-column: 1 / -1; aspect-ratio: 16 / 10; border-radius: 12px; }
  .ecard__art--panel::before { width: 30%; }
  .ecard__art--tile::before { width: 33%; }
  .ecard__arr { width: 44px; height: 44px; }
}
@media (min-width: 1024px) {
  .pr-end__head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-areas: "k k" "t l"; column-gap: clamp(32px, 5vw, 96px); align-items: end; }
  .pr-end__kicker { grid-area: k; }
  .pr-end__title { grid-area: t; }
  .pr-end__lead { grid-area: l; margin: 0 0 .6em; }
}

/* ---------- Chapter pill (fixed, bottom) ---------- */
.pill {
  position: fixed;
  left: 50%;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  z-index: 40;
  width: min(340px, calc(100% - 32px));
  transform: translate(-50%, calc(100% + 40px));
  transition: transform .7s var(--ease);
  color: var(--rice);
}
.pill.is-on { transform: translate(-50%, 0); }
.pill__btn {
  position: relative;
  width: 100%;
  height: 52px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 24px;
  align-items: center;
  gap: 12px;
  padding: 0 16px 0 20px;
  border-radius: 999px;
  background: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(243, 238, 226, .1), 0 10px 30px -10px rgba(20, 26, 8, .55);
  overflow: hidden;
  text-align: left;
}
.pill__no { font-family: var(--f-cond); font-weight: 600; font-size: var(--t-sm); letter-spacing: .04em; }
.pill__no b { font-weight: 600; color: var(--sprout); }
.pill__no span { color: rgba(243, 238, 226, .5); }
.pill__name { font-weight: 500; font-size: .98rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pill__ico { position: relative; width: 24px; height: 24px; display: grid; place-items: center; }
.pill__ico i { position: absolute; width: 10px; height: 1.5px; background: currentColor; transition: transform .45s var(--ease); }
.pill__ico i:first-child { transform: translateX(-3px) rotate(-40deg); }
.pill__ico i:last-child { transform: translateX(3px) rotate(40deg); }
.pill.is-open .pill__ico i:first-child { transform: translateX(-3px) rotate(40deg); }
.pill.is-open .pill__ico i:last-child { transform: translateX(3px) rotate(-40deg); }
.pill__bar { position: absolute; left: 20px; right: 20px; bottom: 0; height: 2px; background: rgba(243, 238, 226, .14); }
.pill__bar i { display: block; height: 100%; background: var(--sprout); transform: scaleX(0); transform-origin: 0 50%; }
.pill__list {
  margin-bottom: 8px;
  padding: 8px;
  border-radius: 20px;
  background: var(--ink);
  box-shadow: 0 16px 40px -12px rgba(20, 26, 8, .6);
}
.pill__list a {
  display: grid;
  grid-template-columns: 2.4em minmax(0, 1fr);
  align-items: baseline;
  gap: 8px;
  padding: 11px 12px;
  border-radius: 12px;
  font-weight: 500;
  transition: background-color .25s;
}
.pill__list a .num { font-family: var(--f-cond); font-weight: 600; font-size: var(--t-xs); letter-spacing: .06em; color: rgba(243, 238, 226, .5); }
.pill__list a:hover { background: rgba(243, 238, 226, .08); }
.pill__list a[aria-current="true"] { background: rgba(169, 188, 85, .16); }
.pill__list a[aria-current="true"] .num { color: var(--sprout); }
@media (min-width: 1024px) {
  .pill { left: auto; right: max(var(--gutter), env(safe-area-inset-right, 0px)); bottom: 20px; transform: translateY(calc(100% + 40px)); width: 320px; }
  .pill.is-on { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .pr-hero__img { animation: none; transform: scale(1.04); }
}
