/* Hallmark · shape: Bento Grid (draw e0de79, map diagram close) · genre: editorial · theme: Hedgerow (deal 1/3, seed garden-landscaping-firm-lewes-30fd·edf77d59·2026-12-03·r0) · job: hire · draw: e0de79
 * hero: Ledge · nav: floating pill · footer: mast · imagery: photographs (their own) · signature: routes draw out from Lewes to every town they cover, and the town checker answers · hedgerow: hedge
 * axes: dark/high-contrast-serif/chromatic-green · posture: drenched · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S4 R4 V4 · weakest: E, the fees table carries the page's only prices so it sits first, and the map earns the close */
@import url("./tokens.css");
@import url("./base.css");

:root { --concept-h: 56px; --nav-h: 76px; --color-scrim: oklch(14% 0.03 158 / 0.7); }

.skip { position: absolute; left: var(--space-md); top: -100px; z-index: var(--z-modal); background: var(--color-accent); color: var(--color-accent-ink); padding: var(--space-xs) var(--space-md); border-radius: var(--radius-pill); font-weight: 700; }
.skip:focus-visible { top: var(--space-md); }

/* controls */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs); min-height: 48px; border: 1.5px solid var(--color-accent); border-radius: var(--radius-pill); padding: var(--space-sm) var(--space-lg); font-family: var(--font-body); font-size: var(--text-sm); font-weight: 700; line-height: 1.2; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out); }
.btn--primary { background: var(--color-accent); color: var(--color-accent-ink); }
.btn--primary:hover { background: var(--color-accent-2); border-color: var(--color-accent-2); }
.btn--secondary { background: transparent; color: var(--color-accent); }
.btn--secondary:hover { background: color-mix(in oklab, var(--color-accent) 14%, transparent); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn--sm { min-height: 44px; padding: var(--space-xs) var(--space-md); }
.btn:focus-visible, .link:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.acts { display: flex; flex-wrap: wrap; gap: var(--space-sm); }
.link { background: none; border: 0; padding: 0; color: var(--color-ink); font-weight: 500; text-decoration: underline; text-decoration-color: var(--color-accent); text-underline-offset: 0.2em; cursor: pointer; transition: text-decoration-thickness var(--dur-short) var(--ease-out); }
.link:hover { text-decoration-thickness: 2px; }
a { text-decoration-color: var(--color-accent); }
a:hover { text-decoration-thickness: 2px; }

/* concept bar */
.concept { background: var(--color-paper-2); border-bottom: var(--rule-hair) solid var(--color-rule); }
.concept__in { min-height: var(--concept-h); display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); }
.concept p { font-size: var(--text-sm); color: var(--color-ink-2); }
.concept b { color: var(--color-ink); font-weight: 700; }
.concept .short { display: none; }

/* nav: a floating pill, solid, flat */
.nav { position: sticky; top: 0; z-index: var(--z-sticky-nav); height: var(--nav-h); display: flex; align-items: center; background: var(--color-paper); }
.pill { display: flex; align-items: center; gap: var(--space-lg); background: var(--color-paper-3); border-radius: var(--radius-pill); padding: var(--space-xs) var(--space-xs) var(--space-xs) var(--space-lg); }
.brand { display: flex; align-items: center; gap: var(--space-sm); text-decoration: none; font-family: var(--font-display); font-size: var(--text-lg); margin-right: auto; }
.brand img { width: 34px; height: auto; }
.pill ul { display: flex; gap: var(--space-lg); list-style: none; margin: 0; padding: 0; }
.pill ul a { font-size: var(--text-sm); font-weight: 500; text-decoration: none; color: var(--color-ink-2); transition: color var(--dur-short) var(--ease-out); }
.pill ul a:hover { color: var(--color-accent); }
.pill a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 4px; border-radius: var(--radius-pill); }

/* hero: the Ledge */
.hero { position: relative; height: calc(100svh - var(--nav-h) - var(--concept-h)); min-height: 600px; display: grid; grid-template-rows: minmax(0, 1fr) auto; overflow: clip; background: var(--color-paper); color: var(--color-ink); }
.field { position: relative; overflow: clip; }
.plane { position: absolute; inset: 0; }
.plane img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 58%; }
.plane--far { transform-origin: 50% 40%; }
.plane--ground { transform-origin: 50% 100%; }
.plane--near { transform-origin: 6% 86%; }
.ledge { position: relative; z-index: var(--z-raised); background: var(--color-paper); border-top: 1.5px solid var(--color-accent); }
.ledge__in { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: var(--space-3xl); align-items: end; padding-block: var(--space-xl) var(--space-xl); }
.ledge h1 { font-size: min(var(--text-display), 5.4vw); line-height: 1.04; max-width: none; }
.ledge__side { display: grid; gap: var(--space-lg); padding-bottom: var(--space-2xs); }
.ledge .lead { color: var(--color-ink-2); }

/* sections */
section:not(.hero) { padding-block: var(--section-gap); }
.head { display: grid; gap: var(--space-md); margin-bottom: var(--space-2xl); }
.head .lead { color: var(--color-ink-2); }

/* fees: a ledger */
.fees { padding-top: var(--section-gap-s) !important; }
.ledger { width: 100%; border-collapse: collapse; border-top: 1.5px solid var(--color-accent); }
.ledger thead th { text-align: left; font-size: var(--text-sm); font-weight: 500; color: var(--color-muted); padding: var(--space-md) 0; border-bottom: var(--rule-hair) solid var(--color-rule); }
.ledger tbody th { text-align: left; font-family: var(--font-display); font-weight: 400; font-size: var(--text-title); padding: var(--space-lg) var(--space-lg) var(--space-lg) 0; white-space: nowrap; }
.ledger td { color: var(--color-ink-2); padding: var(--space-lg) var(--space-lg) var(--space-lg) 0; }
.ledger td.num, .ledger th.num { text-align: right; padding-right: 0; }
.ledger td.num { font-family: var(--font-display); font-size: var(--text-title); color: var(--color-ink); white-space: nowrap; font-variant-numeric: lining-nums tabular-nums; }
.ledger tbody tr { border-bottom: var(--rule-hair) solid var(--color-rule); transition: border-color var(--dur-short) var(--ease-out); }
.ledger tbody tr:hover { border-bottom-color: var(--color-accent); }
.fees__note { margin-top: var(--space-md); font-size: var(--text-sm); color: var(--color-muted); }

/* work: the bento */
.work { background: var(--color-paper-2); }
.work h2 { margin-bottom: var(--space-2xl); }
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: 300px; gap: var(--gap-columns); }
.tile { margin: 0; display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: var(--space-xs); min-width: 0; }
.tile img { width: 100%; height: 100%; object-fit: cover; outline: var(--rule-hair) solid color-mix(in oklab, var(--color-ink) 8%, transparent); outline-offset: -1px; filter: saturate(0.95) contrast(1.06) brightness(0.96); }
.tile figcaption { font-size: var(--text-sm); color: var(--color-muted); }
.tile--lead { grid-column: 1 / 7; grid-row: 1 / 3; }
.tile:nth-child(2) { grid-column: 7 / 13; grid-row: 1; }
.tile:nth-child(3) { grid-column: 7 / 10; grid-row: 2; }
.tile--tall { grid-column: 10 / 13; grid-row: 2 / 4; }
.tile--wide { grid-column: 1 / 6; grid-row: 3; }
.tile:nth-child(6) { grid-column: 6 / 10; grid-row: 3; }
.tile--lead figcaption { font-family: var(--font-display); font-size: var(--text-title); color: var(--color-ink); }

/* team: one picture held while three people scroll past */
.team__in { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--space-3xl); align-items: start; }
.team__pic { position: sticky; top: calc(var(--nav-h) + var(--space-xl)); aspect-ratio: 4 / 3; overflow: clip; }
.team__pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; clip-path: inset(100% 0 0 0); transition: clip-path var(--dur-long) var(--ease-out); }
.team__pic img.on { clip-path: inset(0 0 0 0); }
.team__pic img[data-pic="0"] { clip-path: inset(0 0 0 0); }
.panels { list-style: none; margin: var(--space-2xl) 0 0; padding: 0; border-top: 1.5px solid var(--color-accent); }
.panels li { min-height: 40vh; padding-block: var(--space-xl); border-bottom: var(--rule-hair) solid var(--color-rule); display: grid; align-content: start; gap: var(--space-md); }
.panels h3 { font-size: var(--text-2xl); }
.panels p { color: var(--color-ink-2); font-size: var(--text-lead); line-height: 1.45; max-width: 34ch; }
.panel__pic { display: none; }

/* reviews: the cream band */
.reviews { background: var(--color-ink); color: var(--color-paper); --color-rule: color-mix(in oklab, var(--color-paper) 22%, var(--color-ink)); }
.reviews h2 { font-size: var(--text-section); max-width: 22ch; color: var(--color-paper); }
.reviews .figure { color: var(--color-accent-deep); font-variant-numeric: lining-nums; }
.quotes { list-style: none; margin: var(--space-2xl) 0 var(--space-xl); padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap-columns); }
.quotes li { border-top: 1.5px solid var(--color-accent-deep); padding-top: var(--space-lg); display: grid; grid-template-rows: 1fr auto; gap: var(--space-lg); }
.quotes blockquote { margin: 0; }
.quotes blockquote p { font-family: var(--font-display); font-size: var(--text-xl); line-height: 1.35; text-indent: -0.4em; }
.quotes small { font-size: var(--text-sm); color: color-mix(in oklab, var(--color-paper) 72%, var(--color-ink)); }
.reviews .link { color: var(--color-paper); text-decoration-color: var(--color-accent-deep); min-height: 44px; }
.reviews .link:focus-visible { outline-color: var(--color-paper); }

/* map: the signature */
.map__in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-3xl); align-items: center; }
.map__copy { display: grid; gap: var(--space-md); }
.map__copy .lead { color: var(--color-ink-2); }
.check { display: grid; gap: var(--space-xs); margin-top: var(--space-xl); }
.check label { font-size: var(--text-sm); font-weight: 500; color: var(--color-muted); }
.check__row { display: flex; gap: var(--space-sm); }
input, textarea { width: 100%; min-height: 48px; background: var(--color-paper-2); color: var(--color-ink); border: var(--rule-hair) solid var(--color-muted); border-radius: 0; padding: var(--space-sm) var(--space-md); font-size: var(--text-md); }
input:focus-visible, textarea:focus-visible { outline-offset: -2px; }
input::placeholder { color: var(--color-muted); }
.check__out { min-height: 3lh; margin-top: var(--space-sm); color: var(--color-ink-2); }
.check__out b { color: var(--color-accent); font-weight: 700; }
.map__fig { margin: 0; }
.map__fig figcaption { margin-top: var(--space-sm); font-size: var(--text-sm); color: var(--color-muted); }
.map svg { width: 100%; height: auto; overflow: hidden; }
.towns text.end { text-anchor: end; }
.coast { fill: none; stroke: var(--color-muted); stroke-width: 1.2; stroke-dasharray: 2 7; stroke-linecap: round; }
.sea { fill: var(--color-muted); font-family: var(--font-body); font-size: 22px; }
.routes path { fill: none; stroke: var(--color-accent); stroke-width: 2.4; stroke-linecap: round; }
.towns circle { fill: var(--color-paper); stroke: var(--color-accent); stroke-width: 2.4; }
.towns .home circle { fill: var(--color-accent); }
.towns .village circle { stroke: var(--color-ink-2); stroke-width: 1.6; }
.towns text { fill: var(--color-ink); font-family: var(--font-display); font-size: 32px; paint-order: stroke; stroke: var(--color-paper); stroke-width: 8px; stroke-linejoin: round; }
.towns .home text { font-size: 40px; }
.towns .village text { fill: var(--color-ink-2); font-family: var(--font-body); font-size: 25px; }
.towns .hit circle { fill: var(--color-accent); stroke: var(--color-accent); }
.towns .hit text { fill: var(--color-accent); }

/* close */
.quote { background: var(--color-paper-2); }
.quote__in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-3xl); align-items: start; }
.quote__copy { display: grid; gap: var(--space-2xl); }
.contact { margin: 0; display: grid; gap: var(--space-lg); border-top: 1.5px solid var(--color-accent); padding-top: var(--space-lg); }
.contact dt { font-size: var(--text-sm); font-weight: 500; color: var(--color-muted); }
.contact dd { margin: 0; font-family: var(--font-display); font-size: var(--text-xl); white-space: nowrap; }
.contact a { text-decoration-color: var(--color-accent); }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-lg); }
.field2 { display: grid; gap: var(--space-xs); }
.field2 label { font-size: var(--text-sm); font-weight: 500; color: var(--color-ink-2); }
.field2--wide { grid-column: 1 / -1; }
.form .btn { justify-self: start; }

/* the Djenius band */
.dj { background: var(--color-paper-3); padding-block: var(--space-3xl); }
.dj__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-xl); }
.dj h2 { font-size: var(--text-3xl); margin-bottom: var(--space-xs); }
.dj p { color: var(--color-ink-2); }

/* footer: a mast */
.foot { padding-block: var(--space-3xl) var(--space-2xl); border-top: var(--rule-hair) solid var(--color-muted); }
.foot__mark { font-family: var(--font-display); font-size: clamp(2.5rem, 9vw, 8rem); line-height: 1; max-width: none; }
.foot__row { margin-top: var(--space-xl); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-lg); align-items: end; }
.foot ul { display: flex; flex-wrap: wrap; gap: var(--space-lg); list-style: none; margin: 0; padding: 0; }
.foot a { text-decoration: none; color: var(--color-ink-2); }
.foot a:hover { color: var(--color-accent); }
.foot small { font-size: var(--text-sm); color: var(--color-muted); max-width: 52ch; }

/* dialogs */
dialog { border: 0; padding: 0; background: var(--color-paper-3); color: var(--color-ink); max-width: min(30rem, calc(100vw - 32px)); width: 100%; }
dialog::backdrop { background: var(--color-scrim); }
.dlg { position: relative; display: grid; gap: var(--space-md); padding: var(--space-xl); }
.dlg h3 { font-size: var(--text-2xl); padding-right: var(--space-xl); }
.dlg p { color: var(--color-ink-2); }
.x { position: absolute; top: var(--space-md); right: var(--space-md); width: 44px; height: 44px; display: grid; place-items: center; background: transparent; border: 0; color: var(--color-ink); cursor: pointer; border-radius: var(--radius-pill); transition: background-color var(--dur-short) var(--ease-out); }
.x:hover { background: var(--color-paper-2); }
.x:focus-visible { outline: 2px solid var(--color-focus); }
.x svg { width: 20px; height: 20px; }

/* scroll mechanics, desktop with motion only: the hero pins while its planes part */
@media (min-width: 60rem) and (prefers-reduced-motion: no-preference) {
  .js .hero-run { height: calc(100svh + 70svh); }
  .js .hero-run .hero { position: sticky; top: var(--nav-h); }
  .js .plane--far { transform: scale(calc(1 + var(--p, 0) * 0.05)); }
  .js .plane--ground { transform: translateY(calc(var(--p, 0) * -2%)) scale(calc(1 + var(--p, 0) * 0.16)); }
  .js .plane--near { transform: scale(calc(1 + var(--p, 0) * 0.32)); }
  .js .ledge { transform: translateY(calc(var(--p, 0) * -9vh)); }
  .js .routes path { stroke-dasharray: var(--len) var(--len); stroke-dashoffset: calc(var(--len) * (1 - var(--d, 1))); }
}

@media (max-width: 60rem) {
  .pill ul { display: none; }
  .ledge__in, .map__in, .quote__in, .team__in { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); }
  .hero { height: auto; min-height: 0; grid-template-rows: auto auto; }
  .field { aspect-ratio: 4 / 3; }
  .plane img { object-position: 46% 60%; }
  .ledge__in { padding-block: var(--space-xl) var(--space-2xl); }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 220px; }
  .bento .tile { grid-column: auto !important; grid-row: auto !important; }
  .bento .tile--lead { grid-column: 1 / -1 !important; grid-row: span 2 !important; }
  .team__pic { display: none; }
  .panel__pic { display: block; width: 100%; height: auto; }
  .panels li { min-height: 0; }
  .quotes { grid-template-columns: minmax(0, 1fr); }
  .ledger thead { display: none; }
  .ledger tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; padding-block: var(--space-md); }
  .ledger tbody th, .ledger td { padding: 0; }
  .ledger tbody th { white-space: normal; }
  .ledger td:not(.num) { grid-column: 1 / -1; grid-row: 2; margin-top: var(--space-xs); }
  .ledger td.num { grid-column: 2; grid-row: 1; }
}
@media (max-width: 40rem) {
  .concept .long { display: none; }
  .concept .short { display: inline; }
  .concept__in { padding-block: var(--space-xs); }
  .concept .acts { gap: var(--space-xs); }
  .concept .btn--sm { padding-inline: var(--space-sm); font-size: var(--text-xs); }
  .brand span { display: none; }
  .bento { grid-template-columns: minmax(0, 1fr); grid-auto-rows: 260px; }
  .bento .tile--lead { grid-column: auto !important; grid-row: auto !important; }
  .form { grid-template-columns: minmax(0, 1fr); }
  .check__row .btn { flex-shrink: 0; }
  .contact dd { font-size: var(--text-lg); }
  .quotes blockquote p { text-indent: 0; }
  .towns text { font-size: 56px; stroke-width: 12px; }
  .towns .home text { font-size: 66px; }
  .towns .village text { display: none; }
  .sea { font-size: 40px; }
}
