/* Landing page. Builds on site.css. */

/* 1. Hero */
.hero { padding: clamp(104px, 14vh, 150px) var(--gutter) clamp(40px, 6vh, 72px); background:
  radial-gradient(48% 52% at 80% 34%, rgba(231, 184, 102, 0.42), transparent 70%),
  radial-gradient(40% 40% at 4% 0%, rgba(255, 255, 255, 0.9), transparent 70%); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr); gap: clamp(20px, 3vw, 56px); align-items: center; min-height: min(68vh, 720px); }
.hero__title { margin: 18px 0 22px; }
.hero__origin { font-family: var(--serif); font-style: italic; font-size: clamp(22px, 2.2vw, 32px); line-height: 1.2; color: var(--emerald); }
.hero__urdu { font-size: clamp(20px, 1.9vw, 27px); color: var(--ink-soft); text-align: left; margin-top: 4px; }
.hero__three { display: grid; gap: 0; margin-top: 26px; border-top: 1px solid var(--hair); max-width: 56ch; }
.hero__three > div { display: grid; grid-template-columns: 190px 1fr; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--hair); }
.hero__three dt { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--amber-deep); padding-top: 3px; }
.hero__three dd { font-size: 15.5px; color: var(--ink-soft); line-height: 1.5; }

.hero__scene { position: relative; height: min(70vh, 720px); min-height: 420px; }
.hero__scene canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
.hero__fallback { display: none; position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__scene.no-webgl canvas { display: none; }
.hero__scene.no-webgl .hero__fallback { display: block; }
.hero__scene.no-webgl .scene-label { display: none; }
.scene-label { position: absolute; left: 0; top: 0; margin: -14px 0 0 12px; opacity: 0; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.03em; padding: 5px 10px; border-radius: 999px; white-space: nowrap; background: rgba(247, 244, 238, 0.88); border: 1px solid var(--hair); pointer-events: none; will-change: transform; }
.scene-label::before { content: ""; position: absolute; left: -13px; top: 50%; width: 12px; height: 1px; background: var(--ink); }
.scene-label.is-placed { opacity: 1; transition: opacity 0.6s; }
.hero__cap { position: absolute; left: 0; right: 0; bottom: -4px; font-size: 12.5px; line-height: 1.45; color: var(--ink-soft); max-width: 62ch; }

.doors { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(36px, 6vh, 64px); border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.doors > li + li { border-left: 1px solid var(--hair); }
.door { display: grid; gap: 10px; align-content: start; height: 100%; padding: 26px 24px 24px; text-decoration: none; position: relative; transition: background-color 0.4s, color 0.4s; }
.door__who { font-family: var(--serif); font-size: clamp(25px, 2.3vw, 34px); line-height: 1.05; letter-spacing: -0.01em; }
.door__text { font-size: 15px; color: var(--ink-soft); line-height: 1.5; transition: color 0.4s; }
.door__go { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--amber-deep); margin-top: 6px; transition: color 0.4s; }
.door__go::after { content: " →"; display: inline-block; transition: transform 0.4s var(--ease); }
.door:hover, .door:focus-visible { background: var(--deep); color: var(--on-deep); }
.door:hover .door__text, .door:focus-visible .door__text { color: var(--on-deep-soft); }
.door:hover .door__go, .door:focus-visible .door__go { color: var(--amber-lit); }
.door:hover .door__go::after { transform: translateX(6px); }

/* 2. National picture */
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); }
.metric { padding: 30px 26px 8px 0; display: grid; gap: 14px; align-content: start; }
.metric + .metric { padding-left: 26px; border-left: 1px solid var(--hair); }
.metric__fig { font-size: clamp(42px, 4.6vw, 76px); line-height: 0.95; font-weight: 500; color: var(--ink); }
.metric__fig small { font-size: 0.26em; letter-spacing: 0; font-weight: 400; color: var(--ink-soft); }
.metric p { font-size: 15.5px; line-height: 1.5; }
.metric .note { font-size: 13px; }
.viz { width: 100%; height: auto; max-width: 340px; overflow: visible; }
.viz text { font-family: var(--mono); font-size: 11px; fill: var(--ink-soft); }
.viz .num { font-size: 11.5px; font-weight: 500; }
.viz .bar--a { fill: var(--emerald); }
.viz .bar--b { fill: var(--amber-deep); }
.viz .dot { fill: var(--emerald); }
.viz .dot--k { fill: var(--amber); stroke: var(--deep); stroke-width: 1; }
.viz .axis { stroke: var(--hair); stroke-width: 1; fill: none; }
.viz .trend { stroke: var(--amber-deep); stroke-width: 3; fill: none; stroke-linecap: round; }
.viz--line circle { fill: var(--amber-deep); }
.motion .metric .bar { transform: scaleX(0); transform-origin: left; transform-box: fill-box; }
.motion .metric.is-in .bar { transform: scaleX(1); transition: transform 1.4s var(--ease) 0.2s; }
.motion .metric .trend { stroke-dasharray: 1; stroke-dashoffset: 1; }
.motion .metric.is-in .trend { stroke-dashoffset: 0; transition: stroke-dashoffset 1.6s var(--ease) 0.2s; }
.motion .metric .dot { opacity: 0; }
.motion .metric.is-in .dot { opacity: 1; transition: opacity 0.4s; }
.key { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin: 0 6px 0 0; vertical-align: -1px; }
.key--n { background: var(--emerald); }
.key--k { background: var(--amber); border: 1px solid var(--deep); margin-left: 14px; }
.national__src { margin-top: 36px; max-width: 110ch; }

/* 3. Problems */
.pb { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.pb__tabs { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; border-bottom: 1px solid var(--hair); padding-bottom: 18px; }
.pb__tab { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 20px; border-radius: 999px; background: transparent; border: 1px solid var(--hair); font-weight: 600; font-size: 15px; cursor: pointer; transition: background-color 0.3s, color 0.3s, border-color 0.3s; }
.pb__tab .fig { font-size: 12px; opacity: 0.7; }
.pb__tab:hover { border-color: var(--ink); }
.pb__tab.is-on { background: var(--deep); color: var(--on-deep); border-color: var(--deep); }
.pb__soil { width: 100%; height: auto; border-radius: var(--radius); overflow: hidden; background: var(--clay); }
.pb__soil .sky { fill: #F3EEE2; }
.pb__soil .ground { fill: #C3A680; }
.pb__soil .topsoil { fill: #7A5E3C; }
.pb__soil .limes circle { fill: #F4EEDF; }
.pb__soil .rootp { fill: none; stroke: #EFE3C8; stroke-width: 3; stroke-linecap: round; }
.pb__soil .leafp { fill: none; stroke: var(--emerald); stroke-width: 7; stroke-linecap: round; }
.pb__soil text { font-family: var(--mono); font-size: 13px; fill: var(--ink); }
.pb__soil .ph { fill: #4B3A22; font-size: 12px; }
.pb__soil .ov { opacity: 0; transition: opacity 0.6s var(--ease); }
.pb__soil[data-problem="1"] .ov-1, .pb__soil[data-problem="2"] .ov-2, .pb__soil[data-problem="3"] .ov-3 { opacity: 1; }
.pb__soil .gran circle { fill: #F4F1E8; stroke: #9A8E78; stroke-width: 1.5; }
.pb__soil .up path, .pb__soil .down path, .pb__soil .bind path, .pb__soil .pull path { fill: none; stroke: #9C3F2C; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 6 7; animation: flow 1.6s linear infinite; }
.pb__soil .up .head, .pb__soil .down .head { stroke-dasharray: none; animation: none; }
.pb__soil .pull path { stroke: var(--emerald); }
.pb__soil .pgran circle { fill: #A9815A; stroke: #6B4B2C; stroke-width: 2; }
.pb__soil .bind circle { fill: #F4EEDF; stroke: #9C3F2C; stroke-width: 2; }
.pb__soil .kdots circle { fill: var(--amber); stroke: #6B4B2C; stroke-width: 1.5; }
@keyframes flow { to { stroke-dashoffset: -26; } }
.pb__panel { display: grid; gap: 14px; align-content: start; }
.pb__panel[hidden] { display: none; }
.pb__product { display: grid; gap: 4px; padding: 16px 0; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.pb__product b { font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1.1; }
.pb__product .fig { font-size: 13px; color: var(--ink-soft); letter-spacing: 0; }
.pb__more { margin-top: 22px; }

/* 4. Method */
.method { background: var(--canvas); overflow-x: hidden; overflow-x: clip; }
.method__pin { overflow-x: hidden; overflow-x: clip; }
.method__pin { padding: clamp(48px, 7vh, 80px) 0 clamp(40px, 6vh, 64px); }
.method__head { padding: 0 var(--gutter); display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(24px, 5vw, 80px); align-items: end; margin-bottom: clamp(28px, 5vh, 56px); }
.method__head .eyebrow { display: block; margin-bottom: 16px; }
.method__track { display: flex; gap: 0; padding: 0 var(--gutter); width: max-content; border-top: 1px solid var(--hair); will-change: transform; }
.step { flex: none; width: clamp(280px, 27vw, 400px); padding: 26px 30px 12px 0; display: grid; gap: 10px; align-content: start; }
.step + .step { padding-left: 30px; border-left: 1px solid var(--hair); }
.step__n { font-size: 13px; color: var(--amber-deep); }
.step__tag { font-size: 12px; letter-spacing: 0; text-transform: uppercase; color: var(--emerald); }
.step p { font-size: 15.5px; color: var(--ink-soft); line-height: 1.55; }
.step .step__tag { color: var(--emerald); font-size: 12px; }
.method__rail { margin: 28px var(--gutter) 0; height: 2px; background: var(--hair); overflow: hidden; display: none; }
.method__rail i { display: block; height: 100%; background: var(--amber); transform: scaleX(0.02); transform-origin: left; }
.method.is-pinned .method__pin { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding-top: clamp(84px, 11vh, 120px); padding-bottom: 28px; }
.method.is-pinned .method__rail { display: block; }
.method:not(.is-pinned) .method__pin { padding-top: clamp(32px, 5vh, 56px); }
.method:not(.is-pinned) .method__track { width: auto; overflow-x: auto; scroll-padding-left: var(--gutter); scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; padding-bottom: 16px; scrollbar-width: none; }
.method:not(.is-pinned) .method__track::-webkit-scrollbar { display: none; }
.method:not(.is-pinned) .step { scroll-snap-align: start; width: min(80vw, 360px); }

/* 5. Verify */
.verify__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(24px, 5vw, 80px); align-items: center; margin-bottom: clamp(40px, 7vh, 72px); }
.verify .h-lg { margin: 16px 0 20px; }
.stamp { display: grid; gap: 14px; padding: clamp(22px, 3vw, 36px); border: 1px dashed rgba(247, 244, 238, 0.5); border-radius: var(--radius); background: rgba(247, 244, 238, 0.04); }
.stamp__line { font-size: 12px; letter-spacing: 0.08em; color: var(--amber-lit); }
.stamp__label { font-size: 14px; font-weight: 600; }
.stamp__input { min-height: 56px; padding: 0 18px; border-radius: 12px; border: 1px solid rgba(247, 244, 238, 0.4); background: rgba(247, 244, 238, 0.08); color: var(--on-deep); font-size: 18px; letter-spacing: 0.02em; }
.stamp__input::placeholder { color: rgba(247, 244, 238, 0.5); }
.stamp__input:focus-visible { outline: 2px solid var(--amber-lit); outline-offset: 2px; }
.verify__blind { margin-top: 30px; max-width: 78ch; color: var(--on-deep-soft); }

.footer__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 26px; }

@media (max-width: 1000px) {
  .hero__grid { grid-template-columns: 1fr; min-height: 0; }
  .hero__scene { height: 52vh; min-height: 340px; order: -1; margin-bottom: 76px; }
  .hero__cap { top: 100%; bottom: auto; margin-top: 8px; }
  .hero { padding-top: 96px; }
  .doors { grid-template-columns: repeat(2, 1fr); }
  .doors > li:nth-child(3) { border-left: 0; }
  .doors > li:nth-child(n+3) { border-top: 1px solid var(--hair); }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .metric:nth-child(3) { padding-left: 0; border-left: 0; }
  .metric:nth-child(n+3) { border-top: 1px solid var(--hair); }
  .pb { grid-template-columns: 1fr; }
  .method__head, .verify__grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .hero__three > div { grid-template-columns: 1fr; gap: 4px; }
  .doors, .metrics { grid-template-columns: 1fr; }
  .doors > li + li { border-left: 0; border-top: 1px solid var(--hair); }
  .metric, .metric + .metric { padding: 26px 0 8px; border-left: 0; }
  .metric + .metric { border-top: 1px solid var(--hair); }
  .hero__scene { margin-bottom: 96px; }
  .hero__scene { height: 46vh; }
  .scene-label { font-size: 10.5px; }
  .stamp .btn, .pb__more .btn { width: 100%; }
}

.stamp__batch { font-size: clamp(22px, 2.4vw, 32px); letter-spacing: 0.02em; padding: 14px 18px; border-radius: 12px; border: 1px solid rgba(247, 244, 238, 0.4); background: rgba(247, 244, 238, 0.08); }
.stamp__batch span { display: block; font-size: 11px; letter-spacing: 0.1em; color: var(--amber-lit); margin-bottom: 4px; }
.method__note { padding: 14px var(--gutter) 0; }


/* ---- 26 Nov 2026: Tahir's review of the live page ---- */
/* The caption sits below the drawing, never on it. The figure is a grid: drawing in row 1, caption in row 2. */
.hero__scene { height: auto; min-height: 0; display: grid; grid-template-rows: auto auto; align-content: start; }
.hero__scene canvas, .hero__scene .hero__fallback { position: relative; inset: auto; grid-area: 1 / 1; width: 100%; height: min(62vh, 640px); min-height: 360px; }
.hero__cap { position: static; grid-area: 2 / 1; margin-top: 10px; }
/* Labels: plain text font, kept inside the drawing; landing-scene.js moves them apart when they would overlap. */
.scene-label { font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: 0; padding: 6px 12px; background: rgba(247, 244, 238, 0.94); }
.hero__three dt { font-family: var(--serif); font-size: 21px; letter-spacing: -0.01em; text-transform: none; color: var(--emerald); padding-top: 0; }
.hero__three > div { grid-template-columns: 150px 1fr; }
.door__go { font-family: var(--sans); font-weight: 700; }

/* The 7 product families */
.fams { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.fams li + li { border-left: 1px solid var(--hair); }
.fams a { display: grid; gap: 6px; align-content: start; height: 100%; padding: 22px 18px 20px; text-decoration: none; transition: background-color 0.3s, color 0.3s; }
.fams__n { font-family: var(--serif); font-size: clamp(36px, 3.4vw, 52px); line-height: 1; color: var(--amber-deep); }
.fams__t { font-size: 15px; font-weight: 600; line-height: 1.3; }
.fams a:hover, .fams a:focus-visible { background: var(--deep); color: var(--on-deep); }
.fams a:hover .fams__n, .fams a:focus-visible .fams__n { color: var(--amber-lit); }
.fams__note { margin-top: 10px; }
.pb__intro { margin-top: clamp(40px, 6vh, 64px); }
.pb__introlead { color: var(--ink-soft); margin: 8px 0 22px; max-width: 60ch; }

/* Questions growers ask */
.qs { margin-top: clamp(44px, 7vh, 72px); display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: clamp(20px, 4vw, 64px); align-items: start; }
.qs__list { border-top: 1px solid var(--hair); }
.qs__list > div { padding: 18px 0; border-bottom: 1px solid var(--hair); display: grid; gap: 6px; }
.qs__list dt { font-family: var(--serif); font-size: clamp(19px, 1.6vw, 23px); line-height: 1.25; }
.qs__list dd { color: var(--ink-soft); font-size: 15.5px; }

/* Find the plan for your crop: a short dark band over a field photograph. The full finder is on crops.html. */
.crops { position: relative; overflow: hidden; background: var(--deep); color: var(--on-deep); padding: clamp(72px, 11vh, 120px) var(--gutter); }
.crops__photo { position: absolute; inset: -8% 0; margin: 0; }
.crops__photo img { width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.crops::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(17, 20, 16, 0.9) 0%, rgba(17, 20, 16, 0.72) 45%, rgba(17, 20, 16, 0.35) 100%); }
.crops__grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: clamp(24px, 5vw, 72px); align-items: center; }
.crops__copy .eyebrow { display: block; margin-bottom: 14px; }
.crops__copy .h-lg { color: var(--on-deep); }
.crops__month { margin-top: 26px; }
.crops__mh { font-family: var(--serif); font-size: clamp(21px, 1.9vw, 28px); margin-bottom: 14px; color: var(--on-deep); }
.crops__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chiplink { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px 0 12px; border-radius: 999px; background: rgba(247, 244, 238, 0.12); border: 1px solid rgba(247, 244, 238, 0.28); color: var(--on-deep); text-decoration: none; font-weight: 600; font-size: 14.5px; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: background-color 0.3s, color 0.3s, transform 0.3s var(--ease); }
.chiplink::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--g, var(--amber-lit)); }
.chiplink:hover, .chiplink:focus-visible { background: var(--on-deep); color: var(--deep); transform: translateY(-2px); }
.crops__go { margin-top: 30px; }
.crops__wheel { display: grid; gap: 12px; justify-items: center; margin: 0; padding: clamp(16px, 2vw, 28px); border-radius: 50%; }
.crops__wheel svg { width: min(100%, 440px); height: auto; overflow: visible; filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.45)); }
.crops__wheel figcaption { font-size: 14px; color: var(--on-deep-soft); }
.wheel__seg { cursor: pointer; outline: none; }
.wheel__seg path { fill: rgba(247, 244, 238, calc(0.1 + var(--k) * 0.55)); stroke: rgba(17, 20, 16, 0.6); stroke-width: 2; transition: fill 0.3s, transform 0.45s var(--ease); transform-origin: 210px 210px; }
.wheel__seg text { font-size: 14px; font-weight: 700; fill: var(--deep); pointer-events: none; }
.wheel__dot { stroke: rgba(17, 20, 16, 0.5); stroke-width: 1; pointer-events: none; }
.wheel__seg:hover path, .wheel__seg:focus-visible path { fill: var(--amber-lit); transform: scale(1.045); }
.wheel__seg.is-on path { fill: var(--amber-lit); }
.wheel__seg:focus-visible path { stroke: var(--on-deep); stroke-width: 3; }
.wheel__needle line { stroke: var(--amber-lit); stroke-width: 2.5; stroke-linecap: round; }
.wheel__needle circle { fill: var(--amber-lit); }
.wheel__m { font-family: var(--serif); font-size: 32px; fill: var(--on-deep); }
.wheel__n { font-size: 15px; fill: var(--on-deep-soft); }
.crops__credit { position: absolute; right: var(--gutter); bottom: 12px; z-index: 2; margin: 0; font-size: 11.5px; color: rgba(247, 244, 238, 0.55); }

@media (max-width: 1100px) {
  .fams { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .fams li:nth-child(5) { border-left: 0; }
  .fams li:nth-child(n+5) { border-top: 1px solid var(--hair); }
}
@media (max-width: 1000px) {
  .crops__grid, .qs { grid-template-columns: 1fr; }
  .crops__wheel svg { width: min(100%, 360px); }
  .crops::before { background: linear-gradient(180deg, rgba(17, 20, 16, 0.88), rgba(17, 20, 16, 0.7)); }
  .hero__scene { margin-bottom: 24px; height: auto; }
  .hero__scene canvas, .hero__scene .hero__fallback { height: 48vh; min-height: 320px; }
}
@media (max-width: 640px) {
  .fams { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fams li:nth-child(odd) { border-left: 0; }
  .fams li:nth-child(n+3) { border-top: 1px solid var(--hair); }
  .hero__three > div { grid-template-columns: 1fr; }
  .hero__scene { margin-bottom: 24px; }
}
/* The pinned method section starts under the menu, not in the middle of the screen, so no blank band shows above it. */
.method.is-pinned .method__pin { justify-content: flex-start; padding-top: clamp(88px, 12vh, 112px); }
.qs { padding-bottom: 0; }
@media (max-width: 640px) {
  .crops__wheel svg { width: min(100%, 300px); }
}

/* Full-width photo breaks between sections (our own photographs only). */
.pbreak { position: relative; z-index: 2; margin: 0; height: clamp(360px, 62vh, 640px); overflow: hidden; background: var(--deep); }
.pbreak img { position: absolute; left: 0; top: -12%; width: 100%; height: 124%; object-fit: cover; will-change: transform; }
.pbreak::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(17, 20, 16, 0.05) 30%, rgba(17, 20, 16, 0.78) 100%); }
.pbreak__copy { position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(28px, 6vh, 56px); z-index: 2; color: var(--on-deep); }
.pbreak__line { font-family: var(--serif); font-size: clamp(28px, 3.4vw, 54px); line-height: 1.1; letter-spacing: -0.02em; max-width: 24ch; }
.pbreak__cap { margin-top: 14px; font-size: 13px; color: rgba(247, 244, 238, 0.72); }
.pbreak--lab { height: clamp(320px, 52vh, 560px); }

/* Pack pictures in the family tiles */
.fams a { position: relative; overflow: hidden; }
.fams__pack { width: 100%; max-width: 120px; height: 120px; object-fit: contain; margin: -4px 0 6px; filter: drop-shadow(0 14px 18px rgba(23, 26, 22, 0.22)); transition: transform 0.5s var(--ease); }
.fams a:hover .fams__pack, .fams a:focus-visible .fams__pack { transform: translateY(-6px) rotate(-3deg) scale(1.04); }

/* The batch panel looks like the printed panel on a bag */
.stamp { background: linear-gradient(180deg, #FBF8F1, #EFE8DA); color: var(--deep); border: 0; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.8), inset 0 0 0 1px rgba(23, 26, 22, 0.08); position: relative; overflow: hidden; }
.stamp::before { content: ""; position: absolute; inset: 0; opacity: 0.35; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(23, 26, 22, 0.035) 0 1px, transparent 1px 4px), repeating-linear-gradient(90deg, rgba(23, 26, 22, 0.03) 0 1px, transparent 1px 5px); }
.stamp > * { position: relative; }
.stamp .stamp__line { color: var(--amber-deep); font-weight: 700; }
.stamp .note { color: var(--ink-soft); }
.stamp__batch { display: grid; gap: 10px; padding: 16px 18px; border: 2px solid var(--deep); border-radius: 10px; background: transparent; }
.stamp__k { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; color: var(--deep); }
.stamp__code { display: flex; gap: 6px; }
.stamp__code i { font-style: normal; display: grid; place-items: center; width: clamp(34px, 3.2vw, 46px); height: clamp(44px, 4.2vw, 58px); border-radius: 6px; background: var(--deep); color: #FBF8F1; font-family: var(--sans); font-weight: 700; font-size: clamp(20px, 2vw, 28px); font-variant-numeric: tabular-nums; }
.full .stamp.is-in .stamp__code i { animation: stampIn 0.6s var(--ease) both; }
.stamp__code i:nth-child(2) { animation-delay: 0.06s !important; } .stamp__code i:nth-child(3) { animation-delay: 0.12s !important; } .stamp__code i:nth-child(4) { animation-delay: 0.18s !important; } .stamp__code i:nth-child(5) { animation-delay: 0.24s !important; } .stamp__code i:nth-child(6) { animation-delay: 0.3s !important; } .stamp__code i:nth-child(7) { animation-delay: 0.36s !important; }
@keyframes stampIn { from { transform: translateY(14px) rotateX(70deg); opacity: 0; } to { transform: none; opacity: 1; } }
.stamp__bars { height: 34px; background: repeating-linear-gradient(90deg, var(--deep) 0 2px, transparent 2px 4px, var(--deep) 4px 5px, transparent 5px 8px, var(--deep) 8px 11px, transparent 11px 12px); opacity: 0.85; }
.stamp .btn--amber { background: var(--deep); color: #FBF8F1; }
.stamp .btn--amber:hover { background: var(--emerald); }
@media (max-width: 640px) { .fams__pack { height: 92px; } .stamp__code { gap: 4px; } }
.chiplink::before { box-shadow: 0 0 0 2px rgba(247, 244, 238, 0.55); }
.pbreak--quiet { height: clamp(260px, 44vh, 480px); }
.pbreak--quiet::after { background: linear-gradient(180deg, transparent 60%, rgba(17, 20, 16, 0.55) 100%); }

/* ---- 1 Dec 2026: design audit fixes ---- */
@media (max-width: 1000px) {
  /* Finding 4: on phones the headline comes first and the drawing follows it, at a smaller size. */
  .hero__scene { order: 0; margin: 28px 0 8px; }
  .hero__scene canvas, .hero__scene .hero__fallback { height: 32vh; min-height: 220px; max-height: 300px; }
  .hero { padding-top: 96px; }
}
@media (max-width: 560px) {
  /* The 4 doors as a 2 by 2 grid of short tiles. */
  .doors { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .doors > li + li { border-top: 0; border-left: 0; }
  .doors > li:nth-child(even) { border-left: 1px solid var(--hair); }
  .doors > li:nth-child(n+3) { border-top: 1px solid var(--hair); }
  .door { padding: 18px 12px 16px; gap: 6px; }
  .door__who { font-size: 21px; }
  .door__text { font-size: 14px; }
}
/* Finding 7: the method steps sit in a plain 3-column grid on wide screens instead of a pinned sideways track. */
@media (min-width: 1001px) {
  .method:not(.is-pinned) .method__track { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: auto; overflow: visible; scroll-snap-type: none; padding-bottom: 0; }
  .method:not(.is-pinned) .step { width: auto; scroll-snap-align: none; }
  .method:not(.is-pinned) .step:nth-child(3n+1) { border-left: 0; padding-left: 0; }
  .method:not(.is-pinned) .step:nth-child(n+4) { border-top: 1px solid var(--hair); }
}

/* ---- 1 Dec 2026: 5 doors (the Soil Atlas door, Tahir) ---- */
.doors { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.door { padding: 24px 20px 22px; }
.door__who { font-size: clamp(22px, 1.9vw, 30px); }
@media (max-width: 1000px) {
  .doors { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .doors > li + li { border-left: 0; }
  .doors > li:nth-child(even) { border-left: 1px solid var(--hair); }
  .doors > li:nth-child(n+3) { border-top: 1px solid var(--hair); }
  .doors > li:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
