/* Forge Automatic Photo Check. Earthy modern: haulm green, loam brown, potato-flower yellow. */

:root {
  --bg: #F2F5EA;
  --surface: #FFFFFF;
  --surface-2: #E2EAD2;
  --ink: #241A12;
  --ink-soft: #574C40;
  --line: color-mix(in srgb, #241A12 18%, transparent);
  --leaf: #1E6B34;
  --on-leaf: #FFFFFF;
  --flower: #F4C430;
  --on-flower: #241A12;
  --tuber: #D2A253;
  --soil: #3A2A1E;
  --on-soil: #F4F0E4;
  --soil-fill: #6B4A33;
  --pattern: #1E6B34;
  --shadow: 0 18px 40px -22px rgba(36, 26, 18, .45);

  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-text: "Instrument Sans", "Segoe UI", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --pad: clamp(20px, 5vw, 64px);
  --max: 1240px;
  --hdr-h: 84px;
  --hdr-c: 60px;
  --rows-svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='24' viewBox='0 0 48 24'%3E%3Cpath d='M0 19c6 0 6-8 12-8s6 8 12 8 6-8 12-8 6 8 12 8' fill='none' stroke='black' stroke-width='2'/%3E%3Cpath d='M12 11V5M12 8C10 7 9 5 9 4c2 0 3 2 3 4zM12 7c2-1 3-3 3-4-2 0-3 2-3 4z' fill='none' stroke='black' stroke-width='1.3'/%3E%3C/svg%3E");

  --chatbot-color: #1E6B34;
  --chatbot-on-color: #FFFFFF;
  --chatbot-background: #F2F5EA;
  --chatbot-surface: #FFFFFF;
  --chatbot-text: #241A12;
  --chatbot-font: "Instrument Sans", "Segoe UI", system-ui, sans-serif;
  --chatbot-radius: 14px;

  color-scheme: light;
}

html[data-theme="dark"] {
  --bg: #15110C;
  --surface: #211A13;
  --surface-2: #2C241A;
  --ink: #F0F2E6;
  --ink-soft: #C2BBAA;
  --line: color-mix(in srgb, #F0F2E6 20%, transparent);
  --leaf: #7CCB86;
  --on-leaf: #0F2414;
  --flower: #F4C430;
  --on-flower: #241A12;
  --tuber: #D9AE62;
  --soil: #0E0B08;
  --on-soil: #F0F2E6;
  --soil-fill: #5A3F2C;
  --pattern: #7CCB86;
  --shadow: 0 18px 40px -22px rgba(0, 0, 0, .8);

  --chatbot-color: #7CCB86;
  --chatbot-on-color: #0F2414;
  --chatbot-background: #15110C;
  --chatbot-surface: #211A13;
  --chatbot-text: #F0F2E6;

  color-scheme: dark;
}

@media (max-width: 760px) {
  :root { --hdr-h: 68px; --hdr-c: 56px; }
}

/* Base */

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

html {
  overflow-x: clip;
  scroll-padding-top: calc(var(--hdr-c) + 24px);
  scrollbar-color: var(--leaf) var(--surface-2);
  -webkit-text-size-adjust: 100%;
}
html::-webkit-scrollbar { width: 13px; height: 13px; }
html::-webkit-scrollbar-track { background: var(--surface-2); }
html::-webkit-scrollbar-thumb { background: var(--leaf); border-radius: 10px; border: 3px solid var(--surface-2); }
html::-webkit-scrollbar-thumb:hover { background: color-mix(in srgb, var(--leaf) 80%, var(--ink)); }

body {
  margin: 0;
  overflow-x: clip;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color .3s, color .3s;
}
html.nav-open body { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: .08em; text-underline-offset: .2em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 750;
  line-height: 1.02;
  letter-spacing: -.02em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h2 { font-size: clamp(2rem, 4.2vw, 3.5rem); font-stretch: 88%; }
h3 { font-size: clamp(1.25rem, 1.8vw, 1.5rem); line-height: 1.15; letter-spacing: -.01em; }

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

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--pad); }
.narrow { max-width: 40rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip {
  position: fixed; left: 12px; top: -80px; z-index: 100;
  background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 8px;
}
.skip:focus { top: 12px; }

/* Ridge-and-sprout pattern. Varied by size per placement. */
.rows {
  background-color: var(--pattern);
  -webkit-mask-image: var(--rows-svg); mask-image: var(--rows-svg);
  -webkit-mask-size: var(--rows-size, 48px 24px); mask-size: var(--rows-size, 48px 24px);
  -webkit-mask-repeat: repeat; mask-repeat: repeat;
  pointer-events: none;
}
.rows--dense { --rows-size: 28px 14px; }
.rows--wide { --rows-size: 96px 48px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px;
  border-radius: 12px; border: 2px solid transparent;
  font: 600 1rem/1.1 var(--font-text);
  text-decoration: none; cursor: pointer;
  transition: transform .2s var(--ease), background-color .2s, color .2s, border-color .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--leaf); color: var(--on-leaf); box-shadow: 0 6px 0 -2px color-mix(in srgb, var(--leaf) 45%, var(--soil)); }
.btn-primary:hover { box-shadow: 0 8px 0 -2px color-mix(in srgb, var(--leaf) 45%, var(--soil)); }
.btn-quiet { background: transparent; color: var(--ink); border-color: color-mix(in srgb, var(--ink) 40%, transparent); }
.btn-quiet:hover { border-color: var(--ink); background: color-mix(in srgb, var(--ink) 6%, transparent); }
.btn-flower { background: var(--flower); color: var(--on-flower); box-shadow: 0 6px 0 -2px #A88112; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }

/* Header */
.header-slot { height: var(--hdr-h); }

.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  height: var(--hdr-h);
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  transition: height .28s var(--ease), background-color .28s, box-shadow .28s;
}
.site-header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -7px; height: 7px;
  background-color: var(--leaf);
  -webkit-mask: var(--rows-svg) repeat-x 0 100% / 22px 11px; mask: var(--rows-svg) repeat-x 0 100% / 22px 11px;
  opacity: .45; transition: opacity .28s;
  pointer-events: none;
}
.site-header.is-compact {
  height: var(--hdr-c);
  background: var(--bg);
  box-shadow: 0 1px 0 var(--line), 0 10px 24px -18px rgba(36, 26, 18, .55);
}
.site-header.is-compact::after { opacity: .9; }

.header-bar {
  display: flex; align-items: center; gap: 16px;
  height: 100%; max-width: calc(var(--max) + 80px); margin-inline: auto; padding-inline: var(--pad);
}

.brand { display: flex; align-items: center; gap: 12px; min-width: 0; text-decoration: none; color: var(--ink); border-radius: 10px; }
.brand-mark {
  flex: none; width: 42px; height: 42px;
  fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
  transition: transform .28s var(--ease);
  transform-origin: left center;
}
.brand-mark .bm-tuber { fill: var(--tuber); stroke: var(--ink); }
.brand-mark .bm-leaf, .brand-mark .bm-stem { stroke: var(--leaf); }
.brand-mark .bm-leaf { fill: color-mix(in srgb, var(--leaf) 25%, transparent); }
.is-compact .brand-mark { transform: scale(.84); }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-name { font-family: var(--font-display); font-weight: 750; font-size: 1.14rem; line-height: 1.08; letter-spacing: -.01em; transition: font-size .28s var(--ease); }
.brand-sub { font-size: .84rem; color: var(--ink-soft); line-height: 1.3; transition: opacity .2s; }
.is-compact .brand-name { font-size: 1.04rem; }
.is-compact .brand-sub { opacity: 0; height: 0; overflow: hidden; }

.nav-desktop { display: none; margin-left: auto; }
.nav-desktop ul { display: flex; gap: clamp(14px, 1.8vw, 28px); }
.nav-desktop a {
  position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 2px;
  text-decoration: none; font-weight: 550; white-space: nowrap;
}
.nav-desktop a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 3px; border-radius: 3px;
  background: var(--leaf); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.nav-desktop a:hover::after { transform: scaleX(.5); }
.nav-desktop a[aria-current="page"]::after { transform: scaleX(1); }
.nav-desktop a[aria-current="page"] { color: var(--leaf); }

.header-tools { display: flex; align-items: center; gap: 10px; margin-left: auto; flex: none; }
.header-cta { display: none; }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-width: 44px; min-height: 44px; padding: 0 10px;
  border: 2px solid color-mix(in srgb, var(--ink) 25%, transparent); border-radius: 12px;
  background: transparent; color: var(--ink); font: 600 .95rem var(--font-text); cursor: pointer;
  transition: border-color .2s, background-color .2s;
}
.icon-btn:hover { border-color: var(--ink); }
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.i-sun { display: none; }
html[data-theme="dark"] .i-sun { display: inline; }
html[data-theme="dark"] .i-moon { display: none; }

.menu-lines { position: relative; width: 20px; height: 12px; }
.menu-lines span { position: absolute; left: 0; right: 0; height: 2px; background: currentColor; border-radius: 2px; transition: transform .25s var(--ease), top .25s var(--ease); }
.menu-lines span:first-child { top: 0; }
.menu-lines span:last-child { top: 10px; }
[aria-expanded="true"] .menu-lines span:first-child { top: 5px; transform: rotate(45deg); }
[aria-expanded="true"] .menu-lines span:last-child { top: 5px; transform: rotate(-45deg); }

.menu-panel {
  position: absolute; top: 100%; left: 0; right: 0;
  height: calc(100dvh - 100%); overflow-y: auto; overscroll-behavior: contain;
  background: var(--bg); border-top: 1px solid var(--line);
  padding: 28px var(--pad) 40px;
}
.menu-panel[hidden] { display: none; }
.menu-panel ul { display: grid; gap: 4px; margin-bottom: 28px; }
.menu-panel a:not(.btn) {
  display: flex; align-items: center; min-height: 56px;
  font-family: var(--font-display); font-weight: 700; font-size: clamp(1.6rem, 7vw, 2.2rem); letter-spacing: -.02em;
  text-decoration: none; border-bottom: 1px solid var(--line);
}
.menu-panel a[aria-current="page"] { color: var(--leaf); }
.menu-cta { width: 100%; }
.menu-note { margin-top: 18px; color: var(--ink-soft); font-size: .95rem; }

@media (min-width: 560px) { .header-cta { display: inline-flex; } }
@media (min-width: 1180px) {
  .nav-desktop { display: block; }
  .header-tools { margin-left: 8px; }
  .menu-btn { display: none; }
  .menu-panel { display: none !important; }
}
@media (max-width: 1279px) { .brand-sub { display: none; } }
@media (max-width: 760px) {
  .brand-mark { width: 34px; height: 34px; }
  .brand-name { font-size: 1rem; }
  .is-compact .brand-name { font-size: .95rem; }
}
@media (max-width: 420px) {
  .menu-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .header-bar { gap: 10px; }
  .brand { gap: 8px; }
}

/* Reveal groups. Hidden states only exist once motion.js reports ready. */
html[data-motion="ready"] [data-reveal] { transition: opacity .7s var(--ease), transform .75s var(--ease), clip-path .8s var(--ease); }
html[data-motion="ready"] .rv-mask:not(.is-visible) { clip-path: inset(0 0 100% 0); transform: translateY(32px); }
html[data-motion="ready"] .rv-crop { transition: clip-path .85s var(--ease); }
html[data-motion="ready"] .rv-crop img { transition: transform 1.1s var(--ease); }
html[data-motion="ready"] .rv-crop:not(.is-visible) { clip-path: inset(12% 9% 12% 9% round 18px); }
html[data-motion="ready"] .rv-crop:not(.is-visible) img { transform: scale(1.14); }
html[data-motion="ready"] .rv-rows > * { transition: opacity .6s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i, 0) * 110ms); }
html[data-motion="ready"] .rv-rows:not(.is-visible) > * { opacity: 0; transform: translateX(-36px); }

/* Home: hero */
.home { position: relative; }
.hero {
  position: relative; isolation: isolate;
  margin-top: calc(var(--hdr-h) * -1);
  min-height: min(100svh, 980px);
  display: grid; align-items: end;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; overflow: hidden; background: var(--surface-2); }
.hero-bg img {
  position: absolute; left: 0; top: -6%; width: 100%; height: 112%;
  object-fit: cover; object-position: 50% 62%;
  transform: translate3d(0, calc(var(--hero-p, 0) * 8%), 0);
  will-change: transform;
}
.hero-rows {
  position: absolute; left: 0; right: 0; bottom: 0; height: 120px; z-index: -1;
  --rows-size: 64px 32px; opacity: .5;
  transform: translate3d(0, calc(var(--hero-p, 0) * -40px), 0);
}
.hero-inner {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 32px; align-items: end;
  padding-top: calc(var(--hdr-h) + 12vh);
}
.hero-copy {
  background: var(--bg);
  margin-left: calc(var(--wrap-l, var(--pad)) * -1);
  padding: clamp(28px, 4vw, 52px) clamp(24px, 4vw, 56px) clamp(32px, 4vw, 48px) var(--wrap-l, var(--pad));
  border-radius: 0 28px 0 0;
}
.hero-kicker { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: var(--leaf); margin-bottom: 18px; }
.hero-kicker::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--flower); box-shadow: 0 0 0 3px color-mix(in srgb, var(--flower) 35%, transparent); }
.hero-title {
  font-size: clamp(2.9rem, 7.4vw, 6.6rem); font-stretch: 82%; line-height: .9; letter-spacing: -.035em;
  margin-bottom: 24px;
}
.hero-title .ln { display: block; overflow: hidden; padding-bottom: .07em; margin-bottom: -.07em; }
.hero-title .ln > span { display: inline-block; }
.hero-lede { font-size: clamp(1.05rem, 1.4vw, 1.2rem); max-width: 34rem; color: var(--ink-soft); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

.hero-inset {
  justify-self: end; align-self: end; width: 100%; max-width: 380px;
  margin-bottom: clamp(48px, 12vh, 140px);
  transform: translate3d(0, calc(var(--hero-p, 0) * -110px), 0);
}
.hero-inset img {
  aspect-ratio: 4 / 3; object-fit: cover; width: 100%;
  border: 6px solid var(--bg); border-radius: 20px; box-shadow: var(--shadow);
}
.hero-inset figcaption {
  display: inline-block; margin-top: 10px; padding: 4px 10px; border-radius: 8px;
  background: var(--bg); color: var(--ink-soft); font-size: .85rem;
}

html[data-motion="ready"] .hero-bg { animation: hero-push 1.6s var(--ease) both; }
html[data-motion="ready"] .hero-title .ln > span { animation: line-up .95s var(--ease) both; }
html[data-motion="ready"] .hero-title .ln:nth-child(2) > span { animation-delay: .1s; }
html[data-motion="ready"] .hero-title .ln:nth-child(3) > span { animation-delay: .2s; }
html[data-motion="ready"] .hero-inset img { animation: crop-in 1.1s .25s var(--ease) both; }
@keyframes hero-push { from { transform: scale(1.09); } to { transform: scale(1); } }
@keyframes line-up { from { transform: translateY(105%); } to { transform: translateY(0); } }
@keyframes crop-in { from { clip-path: inset(30% 0 0 0 round 20px); transform: translateY(40px); } to { clip-path: inset(0 0 0 0 round 20px); transform: none; } }

@media (max-width: 900px) {
  .hero { display: block; min-height: 0; }
  .hero-bg { bottom: auto; height: calc(var(--hdr-h) + 58svh); }
  .hero-rows { top: calc(var(--hdr-h) + 58svh - 70px); bottom: auto; height: 70px; }
  .hero-inner { grid-template-columns: 1fr; gap: 0; padding-top: calc(var(--hdr-h) + 18svh); }
  .hero-inset { order: -1; width: 46%; max-width: 240px; margin: 0 0 18px; }
  .hero-inset figcaption { font-size: .78rem; }
  .hero-copy { margin-right: calc(var(--pad) * -1); border-radius: 26px 26px 0 0; padding-right: var(--pad); }
}

/* Home: ledger */
.ledger { padding: clamp(72px, 10vw, 136px) 0 clamp(48px, 7vw, 96px); }
.ledger-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.ledger-intro p { max-width: 30rem; color: var(--ink-soft); }
.crate-tag {
  position: relative; background: var(--surface); border: 2px solid var(--ink); border-radius: 16px;
  padding: 38px clamp(20px, 3vw, 36px) 20px; box-shadow: 8px 8px 0 var(--surface-2);
}
.crate-tag-edge { position: absolute; left: 0; right: 0; top: 0; height: 18px; border-radius: 14px 14px 0 0; opacity: .7; }
.tag-list > div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px dashed var(--line); }
.tag-list > div:first-child { border-top: 0; }
.tag-list dt { color: var(--ink-soft); }
.tag-list dd { margin: 0; font-weight: 600; text-align: right; }
.tag-list > div:first-child dd { font-family: var(--font-display); font-size: 1.5rem; color: var(--leaf); line-height: 1.1; }

/* Home: focus zone */
.focus-intro { padding: clamp(40px, 6vw, 72px) 0 clamp(28px, 4vw, 48px); }
.focus-intro-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(24px, 5vw, 80px); align-items: end; }
.focus-intro-grid h2 { margin: 0; }
.focus-intro-grid p { margin: 0; color: var(--ink-soft); max-width: 34rem; }

.focus { position: relative; }
.focus-sticky { max-width: var(--max); margin-inline: auto; padding: 0 var(--pad) clamp(48px, 7vw, 96px); }
.focus-stage { display: none; }
.focus-panels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 4vw, 48px); }
.panel-fig { margin-bottom: 16px; border-radius: 16px; overflow: hidden; background: var(--surface-2); }
.panel-fig img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.focus-panel:nth-child(1) .panel-fig img { object-position: 50% 100%; transform: scale(1.3); transform-origin: 50% 100%; }
.panel-step { font-size: .9rem; font-weight: 600; color: var(--leaf); margin-bottom: 6px; }
.focus-panel p:last-child { color: var(--ink-soft); max-width: 34rem; }
@media (max-width: 700px) { .focus-panels { grid-template-columns: 1fr; } }

.focus[data-capture-active="true"] { height: 380vh; }
.focus[data-capture-active="true"] .focus-sticky {
  position: sticky; top: var(--hdr-c);
  height: calc(100svh - var(--hdr-c));
  max-width: none; padding: 16px var(--pad) 20px;
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(24px, 4vw, 64px); align-items: center;
}
.focus[data-capture-active="true"] .focus-stage {
  display: block; position: relative; height: 100%; overflow: hidden;
  border-radius: 24px; background: var(--soil);
}
.focus[data-capture-active="true"] .focus-panels { display: grid; grid-template-columns: 1fr; }
.focus[data-capture-active="true"] .focus-panel {
  grid-area: 1 / 1;
  transition: opacity .45s var(--ease), transform .6s var(--ease), visibility 0s;
}
.focus[data-capture-active="true"] .focus-panel[data-active="false"] {
  opacity: 0; transform: translateY(28px); visibility: hidden;
  transition: opacity .3s, transform .4s, visibility 0s .4s;
}
.focus[data-capture-active="true"] .panel-fig { display: none; }
.focus[data-capture-active="true"] .focus-panel h3 { font-size: clamp(1.7rem, 3vw, 2.7rem); line-height: 1.02; }
.focus[data-capture-active="true"] .focus-panel p:last-child { font-size: 1.1rem; }

.stage-layer { position: absolute; inset: 0; overflow: hidden; }
.stage-layer img { width: 100%; height: 100%; object-fit: cover; }
.focus-stage { --fs: 1.38; }
.focus-stage[data-state="1"], .focus-stage[data-state="2"], .focus-stage[data-state="3"] { --fs: 1.04; }
.stage-field img {
  object-position: 50% 100%; transform-origin: 46% 96%;
  transform: translate3d(0, calc(var(--capture-progress, 0) * -3%), 0) scale(var(--fs));
  transition: transform 1s var(--ease);
}
.stage-soil { clip-path: inset(100% 0 0 0); transition: clip-path .9s var(--ease); }
.stage-soil img { transform: scale(1.12); transition: transform 1.2s var(--ease); }
.stage-crate { clip-path: inset(0 0 0 100%); transition: clip-path .9s var(--ease); }
.stage-crate img { transform: scale(1.1); transition: transform 1.2s var(--ease); }
.focus-stage[data-state="2"] .stage-soil, .focus-stage[data-state="3"] .stage-soil { clip-path: inset(0 0 0 0); }
.focus-stage[data-state="2"] .stage-soil img { transform: scale(1); }
.focus-stage[data-state="3"] .stage-crate { clip-path: inset(0 0 0 0); }
.focus-stage[data-state="3"] .stage-crate img { transform: scale(1); }

.stage-diagram {
  position: absolute; left: clamp(12px, 2vw, 24px); bottom: clamp(60px, 9vh, 84px);
  width: clamp(170px, 32%, 300px); padding: 10px 12px 8px; border-radius: 16px;
  background: color-mix(in srgb, var(--bg) 92%, transparent); box-shadow: var(--shadow);
  transform: translate3d(0, calc((var(--capture-progress, 0) - .5) * -56px), 0);
}
.stage-diagram svg { width: 100%; height: auto; display: block; overflow: visible; }
.d-air { stroke: var(--line); stroke-width: 1.5; stroke-dasharray: 3 5; fill: none; }
.d-ridge { fill: var(--soil-fill); }
.d-shoot path { fill: none; stroke: var(--leaf); stroke-width: 3; stroke-linecap: round; }
.d-shoot path:nth-child(2n) { fill: color-mix(in srgb, var(--leaf) 30%, transparent); stroke-width: 2; }
.d-shoot circle { fill: #FFFFFF; stroke: var(--flower); stroke-width: 2.5; }
.d-seed ellipse { fill: color-mix(in srgb, var(--tuber) 60%, var(--soil-fill)); stroke: var(--soil); stroke-width: 1.5; }
.d-stolon { fill: none; stroke: #E8D9B5; stroke-width: 1.6; }
.d-tubers ellipse { fill: var(--tuber); stroke: var(--soil); stroke-width: 1.5; }
.d-shoot, .d-seed, .d-tubers { transition: opacity .6s var(--ease), transform .8s var(--ease); transform-box: fill-box; }
.d-shoot { opacity: 0; transform: translateY(14px); transform-origin: 50% 100%; }
.d-tubers { opacity: 0; transform: scale(.4); transform-origin: 50% 0; }
.focus-stage[data-state="1"] .d-shoot, .focus-stage[data-state="2"] .d-shoot { opacity: 1; transform: none; }
.focus-stage[data-state="2"] .d-tubers { opacity: 1; transform: none; }
.focus-stage[data-state="2"] .d-seed, .focus-stage[data-state="3"] .d-seed { opacity: .25; }
.focus-stage[data-state="3"] .d-tubers { opacity: 1; transform: translateY(-62px); }
.focus-stage[data-state="3"] .d-stolon { opacity: 0; }

.stage-ticks {
  position: absolute; right: clamp(12px, 2vw, 24px); bottom: clamp(12px, 2vw, 20px); left: clamp(12px, 2vw, 24px);
  display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 6px;
}
.stage-ticks li {
  padding: 6px 12px; border-radius: 999px; font-size: .88rem; font-weight: 600;
  background: color-mix(in srgb, var(--soil) 72%, transparent); color: var(--on-soil);
  transition: background-color .3s, color .3s;
}
.focus-stage[data-state="0"] .stage-ticks li:nth-child(1),
.focus-stage[data-state="1"] .stage-ticks li:nth-child(2),
.focus-stage[data-state="2"] .stage-ticks li:nth-child(3),
.focus-stage[data-state="3"] .stage-ticks li:nth-child(4) { background: var(--flower); color: var(--on-flower); }

@media (max-width: 900px) {
  .focus-intro-grid { grid-template-columns: 1fr; }
  .focus[data-capture-active="true"] { height: 360vh; }
  .focus[data-capture-active="true"] .focus-sticky {
    grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto;
    gap: 16px; align-items: stretch; padding: 12px var(--pad) 18px;
  }
  .focus[data-capture-active="true"] .focus-panel h3 { font-size: clamp(1.4rem, 6vw, 1.9rem); margin-bottom: .35em; }
  .focus[data-capture-active="true"] .focus-panel p:last-child { font-size: 1rem; margin: 0; }
  .focus[data-capture-active="true"] .panel-step { margin-bottom: 2px; }
  .stage-diagram { width: clamp(140px, 42%, 220px); bottom: 56px; }
  .stage-ticks li { font-size: .78rem; padding: 5px 9px; }
}
@media (max-height: 560px) and (max-width: 900px) {
  .stage-diagram { display: none; }
}

/* Home: next */
.next { padding: clamp(80px, 11vw, 150px) 0 clamp(64px, 9vw, 120px); }
.next-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.next-fig { border-radius: 22px; overflow: hidden; }
.next-fig img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; }
.next-fig figcaption, .page-head-fig figcaption, .aside-fig figcaption, .photo-set figcaption {
  font-size: .88rem; color: var(--ink-soft); padding-top: 10px;
}
.next-list li { border-top: 2px solid var(--ink); }
.next-list li:last-child { border-bottom: 2px solid var(--ink); }
.next-list a { display: grid; gap: 4px; padding: 20px 0; text-decoration: none; }
.next-name { font-family: var(--font-display); font-weight: 750; font-size: clamp(1.5rem, 2.4vw, 2rem); letter-spacing: -.02em; transition: color .2s, transform .3s var(--ease); }
.next-desc { color: var(--ink-soft); }
.next-list a:hover .next-name { color: var(--leaf); transform: translateX(8px); }

/* Home: closer */
.closer { padding: 0 0 clamp(80px, 10vw, 140px); }
.closer-frame {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--soil); color: var(--on-soil);
  border-radius: 28px; padding: clamp(40px, 6vw, 84px) clamp(24px, 6vw, 84px) clamp(96px, 10vw, 132px);
}
.closer-frame::after {
  content: ""; position: absolute; left: clamp(24px, 6vw, 84px); right: clamp(24px, 6vw, 84px); top: 0; height: 6px;
  background: var(--flower); border-radius: 0 0 6px 6px;
  transform-origin: left; transition: transform 1s var(--ease);
}
html[data-motion="ready"] .closer-frame:not(.is-reached)::after { transform: scaleX(0); }
.closer-rows { position: absolute; left: 0; right: 0; bottom: 0; height: 96px; z-index: -1; background-color: var(--flower); opacity: .35; }
.closer h2 { max-width: 18ch; font-size: clamp(2.2rem, 5vw, 4rem); }
.closer p { max-width: 36rem; color: color-mix(in srgb, var(--on-soil) 82%, transparent); margin-bottom: 28px; }

/* Furrow follow-me line (home) */
.furrow { position: absolute; left: 0; top: 0; z-index: 3; pointer-events: none; overflow: visible; }
.furrow-base { fill: none; stroke: var(--ink-soft); stroke-opacity: .45; stroke-width: 2; stroke-dasharray: 2 8; stroke-linecap: round; }
.furrow-live { fill: none; stroke: var(--leaf); stroke-width: 3.5; stroke-linecap: round; }
.furrow-branch { fill: none; stroke: var(--ink-soft); stroke-opacity: .5; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: stroke .4s, stroke-opacity .4s; }
.furrow-branch.is-on { stroke: var(--leaf); stroke-opacity: 1; }
.furrow-marker { fill: var(--tuber); stroke: var(--soil); stroke-width: 2; }
html[data-theme="dark"] .furrow-marker { stroke: var(--bg); }
.furrow.is-still .furrow-marker { display: none; }
@media (max-width: 760px) {
  .home .wrap { --wrap-l: max(var(--pad), 38px); padding-left: var(--wrap-l); }
  .furrow-live { stroke-width: 3; }
}

/* Inner pages */
.page-head { position: relative; padding: clamp(48px, 7vw, 96px) 0 clamp(72px, 9vw, 120px); }
.page-head--slim { padding-bottom: clamp(64px, 8vw, 104px); }
.page-head-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 88px); align-items: end; }
.page-head h1 { font-size: clamp(2.8rem, 7vw, 5.8rem); font-stretch: 82%; line-height: .92; letter-spacing: -.035em; margin-bottom: 24px; }
.lede { font-size: clamp(1.08rem, 1.5vw, 1.25rem); max-width: 38rem; color: var(--ink-soft); }
.page-head-fig img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 22px; }
.page-head-rows { position: absolute; left: 0; right: 0; bottom: 0; height: 40px; opacity: .35; }

.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--tint { background: var(--surface-2); }
.section--tint + .section { padding-top: clamp(72px, 10vw, 128px); }
.split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(28px, 6vw, 96px); align-items: start; }
.split--flip { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: center; }
.split-side p { color: var(--ink-soft); max-width: 26rem; }
.split-fig img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: 22px; }
.prose { max-width: 40rem; }
.prose p:last-child { margin-bottom: 0; }
.prose-intro { font-weight: 600; }
.band { max-width: 52rem; }
.band p { color: var(--ink-soft); max-width: 36rem; }
.band-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.spec-wrap { overflow-x: auto; }
.spec { width: 100%; border-collapse: collapse; font-size: 1rem; }
.spec th, .spec td { text-align: left; padding: 14px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec thead th { font-size: .9rem; color: var(--ink-soft); font-weight: 600; border-bottom: 2px solid var(--ink); }
.spec tbody th { font-weight: 550; }
.spec td { color: var(--ink-soft); white-space: nowrap; }
.spec tr.is-set th, .spec tr.is-set td { color: var(--leaf); font-weight: 700; }
.spec tr.is-set td { font-family: var(--font-display); font-size: 1.25rem; }

.ask-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 28px clamp(20px, 3vw, 36px); margin-top: 40px; }
.ask-list li { border-top: 4px solid var(--leaf); padding-top: 18px; }
.ask-list li:nth-child(odd) { border-top-color: var(--tuber); }
.ask-list p { color: var(--ink-soft); margin: 0; }

.plain-list { margin-bottom: 8px; }
.plain-list li { padding: 14px 0 14px 34px; border-top: 1px solid var(--line); position: relative; }
.plain-list li::before { content: ""; position: absolute; left: 4px; top: 22px; width: 14px; height: 10px; border-radius: 50%; background: var(--tuber); border: 2px solid var(--soil); }

.photo-set { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: auto auto; gap: clamp(16px, 2.4vw, 28px); margin-top: 40px; }
.photo-set img { width: 100%; height: 100%; object-fit: cover; border-radius: 18px; }
.photo-a { grid-column: 1 / 3; grid-row: 1 / 3; }
.photo-a img { aspect-ratio: 16 / 10; }
.photo-b img, .photo-c img { aspect-ratio: 3 / 2; }

.status-board > div {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 20px;
  padding: 16px 0; border-top: 1px solid var(--line);
}
.status-board > div:last-child { border-bottom: 1px solid var(--line); }
.status-board dt { font-weight: 550; }
.status-board dd { margin: 0; padding: 4px 12px; border-radius: 999px; background: var(--surface-2); color: var(--ink); font-size: .92rem; font-weight: 600; }
.section--tint .status-board dd { background: var(--surface); }
.status-board--compact > div { padding: 12px 0; }

.year { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; margin-top: 48px; position: relative; }
.year li { position: relative; padding: 34px 18px 0 0; }
.year li::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 12px;
  background-color: var(--leaf);
  -webkit-mask: var(--rows-svg) repeat-x 0 100% / 24px 12px; mask: var(--rows-svg) repeat-x 0 100% / 24px 12px;
}
.year li::after { content: ""; position: absolute; left: 0; top: -4px; width: 16px; height: 12px; border-radius: 50%; background: var(--tuber); border: 2px solid var(--soil); }
.year-when { font-weight: 700; color: var(--leaf); margin-bottom: 6px; }
.year h3 { font-size: 1.2rem; }
.year p:last-child { color: var(--ink-soft); font-size: .98rem; margin: 0; }
@media (max-width: 1100px) {
  .year { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 40px; }
}
@media (max-width: 640px) {
  .year { grid-template-columns: 1fr; row-gap: 0; }
  .year li { padding: 0 0 28px 34px; }
  .year li::before { left: 6px; right: auto; top: 14px; bottom: 0; width: 3px; height: auto; -webkit-mask: none; mask: none; border-radius: 3px; }
  .year li:last-child::before { display: none; }
  .year li::after { top: 4px; }
}

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.form-card { background: var(--surface); border: 2px solid var(--ink); border-radius: 20px; padding: clamp(24px, 4vw, 44px); box-shadow: 8px 8px 0 var(--surface-2); }
.form-card h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.field { display: grid; gap: 6px; margin-bottom: 18px; }
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.field-pair .field { margin-bottom: 6px; }
.field label { font-weight: 600; }
.field input, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  border: 2px solid color-mix(in srgb, var(--ink) 45%, transparent); border-radius: 10px;
  background: var(--bg); color: var(--ink); font: inherit;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus-visible, .field textarea:focus-visible { outline: none; border-color: var(--leaf); box-shadow: 0 0 0 3px color-mix(in srgb, var(--leaf) 35%, transparent); }
.field input:user-invalid, .field textarea:user-invalid { border-color: #B3261E; }
html[data-theme="dark"] .field input:user-invalid, html[data-theme="dark"] .field textarea:user-invalid { border-color: #FF8A80; }
.hint { font-size: .92rem; color: var(--ink-soft); margin-bottom: 18px; }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.inquiry { position: relative; }
.form-status { margin: 16px 0 0; min-height: 1.6em; font-weight: 600; }
.form-status:not(:empty) { padding: 12px 14px; border-radius: 10px; background: var(--surface-2); border-left: 4px solid var(--tuber); }
.contact-aside h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.contact-aside > p { color: var(--ink-soft); }
.aside-fig { margin-top: 28px; }
.aside-fig img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 18px; }

/* Footer */
.site-footer { position: relative; background: var(--soil); color: var(--on-soil); padding: 72px 0 48px; overflow: hidden; }
.footer-rows { position: absolute; left: 0; right: 0; top: 0; height: 48px; background-color: var(--flower); opacity: .3; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 3fr) minmax(0, 3fr); gap: 40px; align-items: start; }
.footer-name { font-family: var(--font-display); font-weight: 750; font-size: 1.5rem; line-height: 1.1; margin-bottom: 12px; }
.footer-brand p:last-child { max-width: 34rem; color: color-mix(in srgb, var(--on-soil) 80%, transparent); font-size: .95rem; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.footer-links a:hover, .footer-links a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--flower); }
.site-footer .btn-quiet { color: var(--on-soil); border-color: color-mix(in srgb, var(--on-soil) 45%, transparent); }
.site-footer :focus-visible { outline-color: var(--flower); }

/* Responsive layout */
@media (max-width: 900px) {
  .ledger-grid, .next-grid, .page-head-grid, .split, .split--flip, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
  .photo-set { grid-template-columns: 1fr 1fr; }
  .photo-a { grid-column: 1 / -1; grid-row: auto; }
}
@media (max-width: 560px) {
  .field-pair { grid-template-columns: 1fr; }
  .photo-set { grid-template-columns: 1fr; }
  .tag-list > div { flex-direction: column; gap: 2px; }
  .tag-list dd { text-align: left; }
  .spec td { white-space: normal; }
  .hero-actions .btn, .band-actions .btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; scroll-behavior: auto !important; }
  .site-header, .brand-mark, .brand-name { transition-duration: .01s; }
  .btn:hover, .next-list a:hover .next-name { transform: none; }
}
