/* Hallmark · shape: kept · genre: editorial · theme: brand · redesign: restyle · job: hire · copy: verbatim
 * paper: oklch(0.977 0.008 80) · accent: oklch(0.77 0.16 75) · display: Cormorant Garamond · body: Poppins · hero: Poster, a whole orange over the grove that peels under the scroll · nav: edge-aligned, clear over the hero and paper once scrolled · footer: mast, the wordmark over the links on grove green · signature: the scroll-driven peel over the farm
 * axes: light/roman-serif/warm · posture: Poster (/), Banner (inner pages) · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S4 R5 V3 · weakest: V, the section order is the owner's and stays; variety comes from paper, sand and grove bands and from splits, rows, a rail and steps. Kept the scroll film at the owner's request. Cut to earn R: the drifting cut-outs, the ticker, the tilt and the six colour fields */
/* Hallmark · dropped button.motion-toggle, img.float, section.ticker · the owner asked for the drifting cut-outs and the ticker to be toned down, and nothing now moves on its own that needs a pause */
/* Hallmark · dismissed 19 · All Rights Reserved is the owner's own footer line from the draft */
/* Hallmark · answered F20 · the close carries the owner's three actions, and the third sits under the first two on its own line */
/* Hallmark · answered F15 · splits part by 96px and grids by 32px, two gaps for two jobs; the 24px is the form */
/* Hallmark · waive 59 · a band of one line, once a page · the four facts sit as one slim line between the hero film and the first section */
/* Hallmark · waive 83 · three post cards, one photograph each · the blog index lists its posts and every post leads with its own picture */
/* Hallmark · dismissed 58 · the owner asked to keep the draft's whole message, so the long pages carry its words */
/* Apeeling site styles: one calm system (cream paper, grove green, amber) shared by all seven pages. */
@import url("./tokens.css");
@import url("./base.css");

:root { --fg: var(--color-ink); --fg-2: var(--color-ink-2); --quiet: var(--color-muted); --line: var(--color-rule); --ring: var(--color-focus); --surface: var(--color-paper); }
.sheet--grove, .field, .film, .band, .lens, .panel, .footer, .panel-card { --fg: var(--color-on-grove); --fg-2: var(--color-on-grove-2); --quiet: var(--color-on-grove-2); --line: var(--color-rule-on-grove); --ring: var(--color-focus-on-grove); --surface: var(--color-grove); background: var(--surface); color: var(--fg); }
.form-card, .dialog, .nav.is-scrolled, .nav.is-open { --fg: var(--color-ink); --fg-2: var(--color-ink-2); --quiet: var(--color-muted); --line: var(--color-rule); --ring: var(--color-focus); --surface: var(--color-paper); background: var(--surface); color: var(--fg); }
:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
img { max-width: 100%; height: auto; display: block; }
p { color: var(--fg-2); }
.lead { color: var(--fg); }
.small, small { font-size: var(--text-sm); color: var(--quiet); }
ul, ol, dl, dd, figure { margin: 0; padding: 0; list-style: none; }

/* Controls */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 var(--space-lg); border: 1px solid var(--color-accent); border-radius: var(--radius-input); background: var(--color-accent); color: var(--color-accent-ink); font: 500 var(--text-md)/1 var(--font-body); white-space: nowrap; text-decoration: none; cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
.btn:hover { background: var(--color-accent-hover); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn[aria-busy="true"] { cursor: progress; }
.link { display: inline-flex; align-items: center; min-height: 44px; color: var(--fg); font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.3em; white-space: nowrap; transition: text-decoration-color var(--dur-short) var(--ease-out); }
.link:hover { text-decoration-color: var(--color-accent); }
.link:active { color: var(--fg-2); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-md) var(--space-xl); margin-top: var(--space-xl); }
.skip { position: absolute; left: var(--space-md); top: calc(-1 * var(--space-4xl)); z-index: var(--z-toast); padding: var(--space-xs) var(--space-md); background: var(--color-ink); color: var(--color-paper); }
.skip:focus-visible { top: var(--space-md); }

/* Nav: clear over the dark hero, paper once the page scrolls */
.nav { position: absolute; inset: 0 0 auto 0; z-index: var(--z-sticky-nav); color: var(--color-on-grove); --ring: var(--color-focus-on-grove); transition: background-color var(--dur-short) var(--ease-out); }
.js .nav { position: fixed; }
.nav.is-scrolled, .nav.is-open { border-bottom: 1px solid var(--line); }
.nav__pill { display: flex; align-items: center; gap: var(--space-xl); min-height: var(--nav-h); }
.brand { display: flex; align-items: center; gap: var(--space-xs); margin-right: auto; }
.brand img { height: 40px; width: auto; }
.brand .brand__ink, .brand .brand__cream { height: 22px; }
.brand__ink, .nav.is-scrolled .brand__cream, .nav.is-open .brand__cream { display: none; }
.nav.is-scrolled .brand__ink, .nav.is-open .brand__ink { display: block; }
.nav__links { display: flex; gap: var(--space-lg); }
.nav__links a, .nav__cta { display: inline-flex; align-items: center; min-height: 44px; font-size: var(--text-sm); font-weight: 500; text-decoration: none; white-space: nowrap; }
.nav__links a:hover { text-decoration: underline; text-underline-offset: 0.4em; }
.nav__links a:active, .nav__cta:active { opacity: 0.8; }
.nav__cta { padding: 0 var(--space-md); border: 1px solid currentColor; border-radius: var(--radius-input); transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out); }
.nav__cta:hover { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-accent-ink); }
.nav__toggle { display: none; min-height: 44px; padding: 0 var(--space-md); border: 1px solid currentColor; border-radius: var(--radius-input); background: transparent; color: inherit; font-size: var(--text-sm); font-weight: 500; cursor: pointer; }
.nav__toggle:active { opacity: 0.8; }

/* Home hero, the film: the grove behind, the orange in front, and the scroll peels it */
.film { position: relative; }
.film__stick { position: relative; display: flex; align-items: center; min-height: 100dvh; overflow: hidden; }
.motion .film { height: 440dvh; }
.motion .film__stick { position: sticky; top: 0; height: 100dvh; }
.film__farm { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 40%; }
.film__fruit { position: absolute; left: 70%; top: 50%; height: min(112dvh, 58vw); aspect-ratio: 7 / 6; transform: translate(-39.4%, -50%); pointer-events: none; }
.motion .film__fruit { will-change: transform; }
@media (min-width: 1600px) { .film__fruit { left: 76%; } }
.film__poster, .film__canvas { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; }
.film__canvas { display: none; }
.motion .film__canvas { display: block; }
.film.is-live .film__poster { visibility: hidden; }
.film__scrim { position: absolute; inset: 0; background: linear-gradient(90deg, var(--shade-high) 0%, var(--shade-low) 34%, var(--shade-none) 62%), linear-gradient(180deg, var(--shade-high) 0, var(--shade-low) 60px, var(--shade-soft) 130px, var(--shade-faint) 200px, var(--shade-none) 280px); pointer-events: none; }
.film__text { position: relative; z-index: var(--z-raised); max-width: 58%; padding-top: var(--space-xl); }
.film__text h1 { max-width: 21ch; font-size: clamp(2.5rem, min(4.4vw, 8.5dvh), 4.5rem); line-height: 1.04; }
.film__text .lead { margin-top: var(--space-lg); max-width: 30ch; }
.nb { white-space: nowrap; }
.film__after { position: absolute; z-index: var(--z-raised); left: 0; right: 0; bottom: var(--space-3xl); visibility: hidden; }
.motion .film__after { visibility: visible; opacity: 0; }
.film__after p { max-width: 14ch; color: var(--fg); font: var(--display-weight) clamp(2.5rem, min(4.8vw, 9dvh), 5rem)/1 var(--font-display); letter-spacing: var(--tracking-display); }
.scroll-hint { position: absolute; z-index: var(--z-raised); left: max(var(--gutter), calc((100% - var(--container)) / 2 + var(--gutter))); bottom: var(--space-lg); font-size: var(--text-sm); font-weight: 500; }
html:not(.motion) .scroll-hint { display: none; }

/* The four facts under the hero: one centred line, parted by the brand's own orange */
.band { padding-block: var(--space-xl); }
.band__facts { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--space-sm) var(--space-md); }
.band__facts li { display: flex; align-items: center; gap: var(--space-md); color: var(--fg); font: var(--display-weight) var(--text-xl)/1.2 var(--font-display); white-space: nowrap; }
.band__facts li + li::before { content: ""; flex: none; width: 22px; height: 25px; background: url("/assets/logo-mark.png") center / contain no-repeat; }

/* Inner page heroes */
.field { position: relative; isolation: isolate; overflow: clip; display: grid; align-items: end; min-height: 64svh; padding-block: calc(var(--nav-h) + var(--space-3xl)) var(--space-3xl); }
.field h1 { max-width: 18ch; font-size: var(--text-display-s); }
.field .lead { margin-top: var(--space-lg); }
.field__bg { position: absolute; inset: -8% 0 auto 0; z-index: -2; width: 100%; height: 116%; max-width: none; object-fit: cover; }
.field__scrim { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--shade-strong) 0%, var(--shade-high) 36%, var(--shade-soft) 72%, var(--shade-faint) 100%), linear-gradient(180deg, var(--shade-high) 0, var(--shade-low) 60px, var(--shade-soft) 130px, var(--shade-none) 240px); }
@keyframes drift { to { transform: translateY(10%); } }
@supports (animation-timeline: view()) { .field__bg { animation: drift linear both; animation-timeline: view(); animation-range: exit; } }

/* Sections */
.sheet { padding-block: var(--section-gap-s); }
.sheet--paper { background: var(--color-paper); }
.sheet--paper + .sheet--paper { padding-top: 0; }
.sheet--gold, .sheet--tangerine { background: var(--color-paper-2); }
section.field { background: var(--color-grove); color: var(--color-on-grove); }
.sheet h2 + .lead { max-width: 46ch; }
h2.lit { max-width: 24ch; font-size: var(--text-display-s); }
.big-copy { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap-columns); margin-top: var(--space-2xl); padding-top: var(--space-xl); border-top: 1px solid var(--line); }
.big-copy p { max-width: 46ch; font-size: var(--text-lead); line-height: 1.5; color: var(--fg); }

/* The peel the hero drops lands here, beside the line it illustrates */
.intro > .container { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-2xl) var(--space-3xl); align-items: center; }
.intro .big-copy { grid-template-columns: minmax(0, 1fr); gap: var(--space-lg); margin-top: var(--space-xl); }
.intro__peel { position: relative; z-index: var(--z-raised); justify-self: center; width: min(100%, 460px); pointer-events: none; }
.motion .intro__peel { will-change: transform; }

.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2xl) var(--space-3xl); align-items: center; }
.duo__text > * + * { margin-top: var(--space-lg); }
.photo { aspect-ratio: 5 / 4; border-radius: var(--radius-card); }
.photo > img { outline: 1px solid color-mix(in oklab, var(--color-ink) 8%, transparent); outline-offset: -1px; }

.rows { margin-top: var(--space-2xl); }
.rows li { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-xs) var(--gap-columns); align-items: baseline; padding-block: var(--space-xl); border-top: 1px solid var(--line); }
.rows li:last-child { border-bottom: 1px solid var(--line); }
.rows p { font-size: var(--text-lead); line-height: 1.5; }

.facts { margin-top: var(--space-xl); }
.facts > div { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 5fr); gap: var(--space-md); padding-block: var(--space-md); border-top: 1px solid var(--line); }
.facts > div:last-child { border-bottom: 1px solid var(--line); }
.facts dt { font-size: var(--text-sm); color: var(--quiet); }
.facts dd { color: var(--fg); }
.facts a { display: inline-flex; align-items: center; min-height: 44px; }

.panel-stack { display: grid; gap: var(--space-lg); }
.panel-card { padding: var(--space-xl); border-radius: var(--radius-card); }
.panel-card > * + * { margin-top: var(--space-md); }
.panel-card li { padding-block: var(--space-sm); border-top: 1px solid var(--line); }
.panel-card li:last-child { border-bottom: 1px solid var(--line); }

.portfolio { margin-top: var(--space-2xl); }
.portfolio li { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--space-xs) var(--space-lg); padding-block: var(--space-lg); border-top: 1px solid var(--line); font: var(--display-weight) var(--text-3xl)/1.1 var(--font-display); }
.portfolio li:last-child { border-bottom: 1px solid var(--line); }
.portfolio li { padding-inline: var(--space-lg); justify-content: flex-start; align-items: center; transition: background-color var(--dur-short) var(--ease-out); }
.portfolio small { margin-left: auto; padding: var(--space-2xs) var(--space-sm); border: 1px solid var(--line); border-radius: var(--radius-pill); font: 500 var(--text-sm)/1.4 var(--font-body); }
.portfolio li:has(.portfolio__go) small { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-accent-ink); }
.portfolio li:has(.portfolio__go):hover { background: var(--color-paper-3); }
.portfolio__go { display: inline-flex; align-items: center; min-height: 44px; font: 500 var(--text-sm)/1.4 var(--font-body); text-underline-offset: 0.3em; white-space: nowrap; }
.portfolio__go:active { color: var(--fg-2); }

.pills { display: flex; flex-wrap: wrap; gap: var(--space-xs); margin-top: var(--space-lg); }
.pills li { padding: var(--space-2xs) var(--space-sm); border: 1px solid var(--line); border-radius: var(--radius-pill); font-size: var(--text-sm); color: var(--fg-2); }

/* The granules: words beside the close-up */
.lens, .pour { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; }
.lens > .container, .pour > .container { grid-area: 1 / 1; max-width: calc(var(--container) / 2); margin-right: 0; padding-right: var(--space-2xl); }
.lens > .container { grid-area: 1 / 2; margin-inline: 0 auto; padding-inline: var(--space-2xl) var(--gutter); }
.lens__img { grid-area: 1 / 1; display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: var(--space-xs); min-height: 560px; height: 100%; }
.lens__img figure { position: relative; overflow: hidden; }
.lens__img figure:first-child { grid-row: 1 / -1; }
.lens__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lens__body { padding-block: var(--section-gap-s); }
.lens__body .lead { margin-top: var(--space-lg); }

/* Industries: tabs across the top, one wide card underneath */
.rail { padding-block: var(--section-gap-s); background: var(--color-paper); }
.rail__head { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--space-lg) var(--space-3xl); align-items: end; }
.rail__scroller { margin-top: var(--space-2xl); padding-inline: max(var(--gutter), calc((100% - var(--container)) / 2 + var(--gutter))); }
.rail__tabs { display: flex; flex-wrap: wrap; gap: var(--space-xs); margin-bottom: var(--space-lg); }
.rail__tab { min-height: 44px; padding: 0 var(--space-lg); border: 1px solid var(--line); border-radius: var(--radius-pill); background: transparent; color: var(--fg); font-size: var(--text-md); font-weight: 500; white-space: nowrap; cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out); }
.rail__tab:hover { border-color: var(--color-accent); }
.rail__tab:active { background: var(--color-paper-3); }
.rail__tab[aria-selected="true"] { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-accent-ink); }
.rail__track { display: grid; gap: var(--space-lg); }
.panel { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; border-radius: var(--radius-card); overflow: clip; }
.rail.is-live .panel:not(.is-on) { display: none; }
.panel .photo { order: -1; aspect-ratio: auto; height: 100%; min-height: 340px; border-radius: 0; }
.panel__text { padding: var(--space-xl) var(--space-2xl); }
.panel h3 { color: var(--color-accent); }
.panel__text p { margin-top: var(--space-sm); max-width: 52ch; font-size: var(--text-lead); line-height: 1.5; color: var(--fg); }

/* The circular model */
.cycle { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-2xl) var(--space-3xl); align-items: center; }
.cycle-diagram { position: relative; width: min(100%, 400px); aspect-ratio: 1; margin-inline: auto; }
.cycle-diagram svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ring { fill: none; stroke: var(--line); stroke-width: 0.4; }
.marker { fill: none; stroke: var(--color-accent); stroke-width: 1.4; stroke-linecap: round; transform-origin: 50px 50px; transition: transform var(--dur-long) var(--ease-in-out); }
.cycle__core { position: absolute; inset: 20%; }
.cycle__core img { width: 100%; height: 100%; object-fit: contain; transition: transform var(--dur-long) var(--ease-in-out); }
.cycle-node { position: absolute; display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--space-md); border: 1px solid var(--line); border-radius: var(--radius-pill); background: var(--color-grove-2); color: var(--fg); font-size: var(--text-sm); font-weight: 500; white-space: nowrap; cursor: pointer; transform: translate(-50%, -50%); transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out); }
.cycle-node:nth-of-type(1) { left: 50%; top: 7%; }
.cycle-node:nth-of-type(2) { left: 93%; top: 50%; }
.cycle-node:nth-of-type(3) { left: 50%; top: 93%; }
.cycle-node:nth-of-type(4) { left: 7%; top: 50%; }
.cycle-node:hover { border-color: var(--color-accent); }
.cycle-node:active { background: var(--color-grove); }
.cycle-node[aria-pressed="true"] { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-accent-ink); }
.cycle__list { margin-top: var(--space-xl); }
.cycle__list li { padding-block: var(--space-md); border-top: 1px solid var(--line); }
.cycle__list li:last-child { border-bottom: 1px solid var(--line); }
.cycle__list p { margin-top: var(--space-2xs); }
.js .cycle__list li { opacity: 0.62; transition: opacity var(--dur-short) var(--ease-out); }
.js .cycle__list li.is-on { opacity: 1; }

/* The four steps */
.stack { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-2xl) var(--gap-columns); margin-top: var(--space-2xl); }
.card { display: grid; align-content: start; gap: var(--space-lg); }
.card .photo { order: -1; }
.card__num { display: block; margin-bottom: var(--space-xs); color: var(--quiet); font: var(--display-weight) var(--text-3xl)/1 var(--font-display); font-variant-numeric: lining-nums; }
.card__text p { margin-top: var(--space-sm); }

/* The four steps on one path: the amber line draws across as the row scrolls in, and each step lights when it arrives */
.stack { position: relative; }
.stack::before, .stack::after { content: ""; position: absolute; top: 19px; left: 0; right: 0; height: 2px; background: var(--line); }
.stack::after { background: var(--color-accent); transform-origin: left; transform: scaleX(var(--p, 1)); }
.card { position: relative; padding-top: calc(var(--space-2xl) - var(--space-xs)); transition: opacity var(--dur-long) var(--ease-out); }
.card .photo { aspect-ratio: 4 / 3; }
.card__num { position: absolute; z-index: var(--z-base); top: 0; left: 0; display: grid; place-items: center; width: 40px; height: 40px; margin: 0; border: 2px solid var(--color-accent); border-radius: var(--radius-pill); background: var(--color-accent); color: var(--color-accent-ink); font-size: var(--text-lg); transition: background-color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out); }
.stack.is-live .card:not(.is-on) { opacity: 0.3; }
.stack.is-live .card:not(.is-on) .card__num { border-color: var(--line); background: var(--color-paper); color: var(--quiet); }

/* Statement bands: the line, and one picture beside it */
.statement-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-2xl) var(--space-3xl); align-items: center; }
.statement-grid .lead { margin-block: var(--space-lg); max-width: 44ch; }
.statement__art { justify-self: center; width: min(100%, 360px); }
.lit .w { display: inline-block; }

/* The blog */
.posts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3xl) var(--gap-columns); }
.post-card { display: grid; gap: var(--space-lg); align-content: start; color: inherit; text-decoration: none; }
.post-card--lead { grid-column: 1 / -1; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-lg) var(--space-3xl); align-items: center; }
.post-card__img { aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--radius-card); }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; }
.post-card h3 { font-size: var(--text-3xl); }
.post-card--lead h3 { font-size: var(--text-section); }
.post-card p { margin-top: var(--space-sm); font-size: var(--text-lead); line-height: 1.5; }
.post-card__more { display: inline-flex; align-items: center; min-height: 44px; margin-top: var(--space-sm); font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.3em; transition: text-decoration-color var(--dur-short) var(--ease-out); }
.post-card:hover .post-card__more { text-decoration-color: var(--color-accent); }
.post-card:active .post-card__more { color: var(--fg-2); }
.article { padding-block: var(--section-gap-s); }
.article__body { max-width: 68ch; margin-inline: auto; }
.article__body p { max-width: none; font-size: var(--text-lg); line-height: 1.65; }
.article__body p + p, .article__body h2 + p { margin-top: var(--space-md); }
.article__body h2 { margin-top: var(--space-2xl); font-size: var(--text-2xl); }

/* The close */
.pour { background: var(--color-paper-3); overflow: clip; }
.pour__body { padding-block: var(--section-gap-s); }
.pour__body .lead { margin-top: var(--space-lg); }
.pour__fruit { grid-area: 1 / 2; justify-self: center; width: min(100%, 560px); padding: var(--space-xl); }

/* Footer */
.footer { padding-block: var(--space-3xl) var(--space-xl); }
.footer > .container { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-areas: "mark links" "line links" "base base"; gap: var(--space-lg) var(--gap-columns); }
.footer__mark { grid-area: mark; width: 220px; }
.footer__line { grid-area: line; max-width: 22ch; color: var(--fg); font: var(--display-weight) var(--text-title)/1.2 var(--font-display); }
.footer__links { grid-area: links; display: grid; grid-template-columns: repeat(2, max-content); gap: 0 var(--space-2xl); align-content: start; }
.footer__links a, .footer__base a { white-space: nowrap; display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.footer__links a:hover, .footer__base a:hover { text-decoration: underline; text-underline-offset: 0.3em; }
.footer__links a:active, .footer__base a:active { opacity: 0.8; }
.footer__base { grid-area: base; display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2xs) var(--space-xl); margin-top: var(--space-xl); padding-top: var(--space-lg); border-top: 1px solid var(--line); font-size: var(--text-sm); color: var(--quiet); }

/* Forms */
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-2xl) var(--space-3xl); align-items: start; }
.form-card { padding: var(--space-xl); border-radius: var(--radius-card); }
.form { display: grid; gap: var(--space-lg); margin-top: var(--space-lg); }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-lg); }
.form-field { display: grid; gap: var(--space-xs); }
.form-field label { font-size: var(--text-sm); font-weight: 500; color: var(--fg); }
.form-field input, .form-field select, .form-field textarea { width: 100%; min-height: 48px; padding: 0 var(--space-md); border: 1px solid var(--color-muted); border-radius: var(--radius-input); background: var(--color-paper); color: var(--color-ink); outline: 2px solid transparent; outline-offset: -3px; }
.form-field textarea { padding-block: var(--space-sm); resize: vertical; }
.form-field input:hover, .form-field select:hover, .form-field textarea:hover { border-color: var(--color-ink); }
.form-field input:focus-visible, .form-field select:focus-visible, .form-field textarea:focus-visible { outline-color: var(--ring); }
.form-field [aria-invalid="true"] { border-color: var(--color-error); }
.form-field input:disabled, .form-field select:disabled, .form-field textarea:disabled { opacity: 0.55; cursor: not-allowed; background: var(--color-paper-2); }
.form .btn { justify-self: start; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.progress { height: 2px; background: var(--line); opacity: 0; overflow: hidden; }
.progress.is-on { opacity: 1; }
.progress span { display: block; height: 100%; background: var(--color-accent); transform-origin: left; transform: scaleX(0); }
.progress.is-on span { animation: fill 1.6s var(--ease-out) forwards; }
.progress.is-done span { animation: none; transform: scaleX(1); }
@keyframes fill { to { transform: scaleX(0.9); } }
.form__help { min-height: 1lh; font-size: var(--text-sm); color: var(--quiet); }
.form__help[data-state="error"] { color: var(--color-error); }
.form__help[data-state="done"] { color: var(--color-success); }
.dialog { width: min(100% - var(--space-xl), 480px); padding: var(--space-xl); border: 0; border-radius: var(--radius-card); }
.dialog::backdrop { background: var(--shade-mid); }
.dialog__head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-lg); margin-bottom: var(--space-sm); }
.dialog h2 { font-size: var(--text-3xl); }
.dialog__x { min-height: 44px; padding: 0 var(--space-sm); border: 0; background: transparent; color: var(--fg); font-size: var(--text-sm); text-decoration: underline; text-underline-offset: 0.3em; cursor: pointer; }
.dialog__x:active { color: var(--fg-2); }

/* One reveal, and only with scripting on */
.js [data-reveal] { opacity: 0; transform: translateY(8px); transition: opacity var(--dur-long) var(--ease-out), transform var(--dur-long) var(--ease-out); transition-delay: calc(var(--i, 0) * 60ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

@media (max-width: 60rem) {
  .nav__toggle { display: inline-flex; align-items: center; }
  .nav__pill { flex-wrap: wrap; gap: 0 var(--space-md); }
  .nav__links, .nav__cta { display: none; }
  .nav.is-open .nav__links { display: grid; flex-basis: 100%; order: 3; padding-block: var(--space-sm); }
  .nav.is-open .nav__cta { display: inline-flex; order: 4; margin-bottom: var(--space-lg); }
  .film__fruit { left: 50%; top: 27%; height: min(60dvh, 118vw); }
  .film__scrim { background: linear-gradient(0deg, var(--shade-strong) 0%, var(--shade-mid) 42%, var(--shade-none) 68%), linear-gradient(180deg, var(--shade-high) 0, var(--shade-low) 56px, var(--shade-soft) 110px, var(--shade-none) 200px); }
  .film__stick { align-items: end; padding-bottom: var(--space-3xl); }
  .film__text { max-width: 100%; padding-top: 42dvh; }
  .film__text h1 { font-size: clamp(2.25rem, 8.5vw, 3.5rem); }
  .film__after { bottom: var(--space-2xl); }
  .field { min-height: 0; padding-block: calc(var(--nav-h) + var(--space-2xl)) var(--space-2xl); }
  .panel, .intro > .container, .duo, .cycle, .statement-grid, .posts, .post-card--lead, .contact-grid, .rail__head, .big-copy, .rows li, .lens, .pour { grid-template-columns: minmax(0, 1fr); }
  .lens > .container, .pour > .container { max-width: none; padding-right: var(--gutter); }
  .lens > .container { grid-area: auto; padding-left: var(--gutter); }
  .lens__img, .pour__fruit { grid-area: auto; }
  .intro__peel, .statement__art { width: min(70%, 320px); }
  .panel .photo { min-height: 0; aspect-ratio: 4 / 3; }
  .panel__text { padding: var(--space-lg); }
  .lens__img { min-height: 0; aspect-ratio: 4 / 3; }
  .lens__body, .pour__body { padding-block: var(--section-gap-s) var(--space-xl); }
  .pour__fruit { width: min(100%, 420px); }
  .stack { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stack::before, .stack::after { display: none; }
  .footer > .container { grid-template-columns: minmax(0, 1fr); grid-template-areas: "mark" "line" "links" "base"; }
}
@media (max-width: 40rem) {
  .stack, .form__row, .facts > div, .footer__links { grid-template-columns: minmax(0, 1fr); }
  .cycle-diagram { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-xs); width: 100%; aspect-ratio: auto; }
  .cycle-diagram svg { display: none; }
  .cycle__core { position: static; width: 200px; margin-inline: auto; }
  .cycle-diagram .cycle-node { position: static; justify-content: center; transform: none; }
  .actions { gap: var(--space-xs) var(--space-lg); }
  .portfolio li { padding-inline: 0; }
  .portfolio small { margin-left: 0; }
  .link { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  .btn, .link, .nav, .nav__cta, .cycle-node, .marker, .cycle__core img, .js .cycle__list li, .rail__tab, .card, .card__num, .post-card__more { transition: none; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .progress.is-on span { animation: none; transform: scaleX(0.9); }
  .field__bg { animation: none; }
}
