/* Sterna. Layout concept: a chaptered editorial. Each chapter sits on its own ground
   (cool paper or blue, hard cut), type hangs off a 12-column grid, corners are sharp.
   The structure is the accepted earlier mockup; the Sterna identity is at the end of this file. */
:root {
  /* measured from the business card photograph: blue #1B4F92, tern white #F0FCFC, beak #F7515C, pale blue #9BCBE7 */
  --paper: #F1F5F7;
  --paper-2: #E4ECF1;
  --ink: #10305F;
  --blue: #1B4F92;
  --deep: #0B2347;
  --sky: #9BCBE7;
  --red: #F7515C;
  --bone: #F2F9FB;
  --mist: #B7CCE2;
  --soft: #46618A;
  --bar-h: 60px;
  /* the typefaces are stand-ins until the brand files arrive: change these three lines to swap them */
  --display: var(--font-outfit), system-ui, sans-serif;
  --text: var(--font-source-sans-3), system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: var(--font-cormorant-garamond), Georgia, "Times New Roman", serif;

  --sc-canvas: var(--paper);
  --sc-surface: var(--paper-2);
  --sc-ink: var(--ink);
  --sc-ink-soft: var(--soft);
  --sc-accent: var(--ink);
  --sc-accent-ink: var(--bone);
  --sc-font-display: var(--display);
  --sc-font-text: var(--text);
  --sc-r-sm: 0px;
  --hair: rgba(16, 48, 95, 0.28);
  color-scheme: light;
}
html { scroll-behavior: auto; }
body { background: var(--paper); color: var(--ink); font-family: var(--text); }
h1, h2, h3, p, figure, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { height: auto; }
button { cursor: pointer; }

/* ---- grounds: restate color wherever the tokens change ---- */
.g-paper, .g-paper2 {
  --sc-canvas: var(--paper); --sc-ink: var(--ink); --sc-ink-soft: var(--soft);
  --sc-accent: var(--ink); --sc-accent-ink: var(--bone); --hair: rgba(16, 48, 95, 0.28);
  background: var(--paper); color: var(--ink);
}
.g-paper2 { --sc-canvas: var(--paper-2); background: var(--paper-2); }
.g-ink, .g-deep {
  --sc-canvas: var(--ink); --sc-ink: var(--bone); --sc-ink-soft: var(--mist);
  --sc-accent: var(--sky); --sc-accent-ink: var(--ink); --hair: rgba(242, 249, 251, 0.24);
  background: var(--ink); color: var(--bone);
}
.g-deep { --sc-canvas: var(--deep); background: var(--deep); }

/* ---- type ---- */
.d0, .d1, .d2, .d3 { font-family: var(--display); font-weight: 400; text-wrap: balance; }
.d0 { font-size: clamp(3.3rem, 14.2vw, 15rem); line-height: 0.86; letter-spacing: -0.05em; }
.d1 { font-size: clamp(2.5rem, 6.2vw, 6.25rem); line-height: 0.97; letter-spacing: -0.04em; }
.d2 { font-size: clamp(1.9rem, 3.9vw, 3.6rem); line-height: 1.02; letter-spacing: -0.032em; }
.d3 { font-size: clamp(1.4rem, 2.1vw, 2rem); line-height: 1.1; letter-spacing: -0.02em; }
.lede { font-size: clamp(1.15rem, 1.45vw, 1.4rem); line-height: 1.42; letter-spacing: -0.01em; max-width: 34em; text-wrap: pretty; }
.body { font-size: 1.0625rem; line-height: 1.6; color: var(--sc-ink-soft); max-width: 34rem; text-wrap: pretty; }
.cap { font-size: 0.875rem; line-height: 1.4; color: var(--sc-ink-soft); }
.g-ink .body, .g-deep .body { font-weight: 400; letter-spacing: 0.005em; }

/* ---- controls ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
  padding: 0 1.5rem; border: 1.5px solid var(--sc-accent); background: var(--sc-accent);
  color: var(--sc-accent-ink); font: 500 1rem/1 var(--text); text-decoration: none; white-space: nowrap;
  transition: background-color 160ms var(--sc-ease-out), color 160ms var(--sc-ease-out), transform 120ms var(--sc-ease-out);
}
.btn:hover { background: transparent; color: var(--sc-accent); }
.btn:active { transform: translateY(1px); }
.btn--line { background: transparent; color: var(--sc-accent); }
.btn--line:hover { background: var(--sc-accent); color: var(--sc-accent-ink); }
.btn--sm { min-height: 44px; padding: 0 1rem; font-size: 0.9375rem; }
.tlink {
  display: inline-flex; align-items: center; min-height: 44px; color: inherit; font-weight: 500;
  text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 0.28em;
}
.tlink:hover { text-decoration-color: var(--sc-accent); color: var(--sc-accent); }
.g-ink .tlink:hover, .g-deep .tlink:hover { color: var(--sky); }

/* ---- folio bar ---- */
.folio {
  --bar-bg: var(--paper); --bar-fg: var(--ink); --bar-hair: rgba(16, 48, 95, 0.2); --mark: var(--ink);
  --sc-accent: var(--bar-fg); --sc-accent-ink: var(--bar-bg);
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  height: calc(var(--bar-h) + env(safe-area-inset-top, 0px)); padding-top: env(safe-area-inset-top, 0px);
  padding-left: max(var(--sc-gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--sc-gutter), env(safe-area-inset-right, 0px));
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 1.5rem;
  background: var(--bar-bg); color: var(--bar-fg); border-bottom: 1px solid var(--bar-hair);
  transition: background-color 260ms var(--sc-ease-out), color 260ms var(--sc-ease-out), border-color 260ms var(--sc-ease-out);
}
.folio[data-over="paper2"] { --bar-bg: var(--paper-2); }
.folio[data-over="ink"] { --bar-bg: var(--ink); --bar-fg: var(--bone); --bar-hair: rgba(242, 249, 251, 0.18); --mark: var(--sky); }
.folio[data-over="deep"], .folio[data-over="media"] { --bar-bg: var(--deep); --bar-fg: var(--bone); --bar-hair: rgba(242, 249, 251, 0.18); --mark: var(--sky); }
.logo { display: block; height: 34px; width: auto; color: inherit; }
.logo .logo__mark { fill: var(--mark, var(--sky)); transition: fill 260ms var(--sc-ease-out); }
.folio__home { display: inline-flex; align-items: center; min-height: 44px; color: inherit; }
.folio__chap { justify-self: center; font-size: 0.875rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.folio__right { display: flex; align-items: center; gap: 0.5rem; }
.folio__btn {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 0.9rem; background: none;
  border: 0; color: inherit; font: 500 0.9375rem/1 var(--text); text-decoration: none;
}
.folio__btn:hover { text-decoration: underline; text-underline-offset: 0.3em; }
.folio .btn { min-height: 40px; padding: 0 1.1rem; font-size: 0.9375rem; }
@media (max-width: 900px) { .folio__chap { display: none; } .folio { grid-template-columns: auto 1fr; } .folio__right { justify-self: end; } }
@media (max-width: 560px) { .folio .btn, .folio__lang { display: none; } .logo { height: 30px; } }

/* ---- index overlay ---- */
.index {
  position: fixed; inset: 0; z-index: 70; overflow-y: auto; overscroll-behavior: contain;
  padding: calc(var(--bar-h) + 2rem + env(safe-area-inset-top, 0px)) max(var(--sc-gutter), env(safe-area-inset-right, 0px)) 3rem max(var(--sc-gutter), env(safe-area-inset-left, 0px));
  clip-path: inset(0 0 100% 0); visibility: hidden;
  transition: clip-path 520ms var(--sc-ease-drawer), visibility 0s linear 520ms;
}
.index.is-open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path 520ms var(--sc-ease-drawer), visibility 0s; }
.index__close { position: absolute; top: calc(8px + env(safe-area-inset-top, 0px)); right: max(var(--sc-gutter), env(safe-area-inset-right, 0px)); }
.index__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr); gap: 3rem clamp(1.5rem, 4vw, 4rem); max-width: var(--sc-maxw); margin-inline: auto; }
.index h2 { font: 500 0.875rem/1.2 var(--text); color: var(--mist); margin-bottom: 1rem; }
.index__big a { display: block; padding-block: 0.28em; font: 400 clamp(1.8rem, 3.6vw, 3.2rem)/1.05 var(--display); letter-spacing: -0.03em; color: inherit; text-decoration: none; }
.index__list a { display: flex; align-items: center; min-height: 44px; font-size: 1.125rem; color: inherit; text-decoration: none; }
.index a:hover { color: var(--sky); }
@media (max-width: 860px) { .index__grid { grid-template-columns: minmax(0, 1fr); gap: 2.25rem; } }

/* ---- chapters ---- */
.ch { padding-block: var(--sc-section); }
.grid12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(1rem, 2.2vw, 2.25rem); row-gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.stack { display: grid; gap: 1.1rem; align-content: start; }
.stack--loose { gap: 1.75rem; }
.fig img { display: block; width: 100%; height: auto; }
.fig figcaption { margin-top: 0.65rem; }
.ratio-43 img { aspect-ratio: 4 / 3; object-fit: cover; }
.ratio-169 img { aspect-ratio: 16 / 9; object-fit: cover; }
.ratio-45 img { aspect-ratio: 4 / 5; object-fit: cover; }
@media (max-width: 860px) { .grid12 > * { grid-column: 1 / -1 !important; margin-top: 0 !important; } }

/* V. measured */
.nums__big { font: 400 clamp(6.5rem, 19vw, 19rem)/0.8 var(--display); letter-spacing: -0.06em; color: var(--sky); font-variant-numeric: tabular-nums; }
.ledger { display: grid; }
.ledger div { display: grid; grid-template-columns: minmax(9.5rem, 0.9fr) minmax(0, 1.5fr); gap: 1.25rem; align-items: baseline; padding-block: 1.15rem; border-top: 1px solid var(--hair); }
.ledger dt { white-space: nowrap; font: 400 clamp(2.2rem, 4.4vw, 4rem)/1 var(--display); letter-spacing: -0.035em; color: var(--sky); font-variant-numeric: tabular-nums; }
.ledger dd { font-size: 1.0625rem; line-height: 1.45; }
.ledger--text div { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }
.ledger--text dt { white-space: normal; color: var(--ink); font-size: clamp(1.5rem, 2.4vw, 2.2rem); line-height: 1.08; }
.plate { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; padding: 1.25rem; background: var(--bone); }
.plate img { height: 46px; width: auto; }
@media (max-width: 560px) { .ledger div { grid-template-columns: minmax(0, 1fr); gap: 0.2rem; } }

/* VI. doors */
.doors { border-bottom: 1px solid var(--hair); }
.door { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) auto; gap: 0.75rem clamp(1rem, 3vw, 3rem); align-items: center; padding-block: clamp(1.4rem, 3.2vw, 2.75rem); border-top: 1px solid var(--hair); color: inherit; text-decoration: none; }
.door__t { font: 400 clamp(2rem, 4.8vw, 4.6rem)/1 var(--display); letter-spacing: -0.04em; transition: transform 320ms var(--sc-ease-out); }
.door__go { font-weight: 500; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 0.28em; white-space: nowrap; }
.door__thumb { display: none; }
@media (hover: hover) and (pointer: fine) { .door:hover .door__t { transform: translateX(0.9rem); } }
.doorpic { position: fixed; left: 0; top: 0; z-index: 40; width: min(24rem, 30vw); aspect-ratio: 4 / 3; pointer-events: none; opacity: 0; overflow: hidden; transition: opacity 220ms var(--sc-ease-out); will-change: transform, opacity; }
.doorpic.is-on { opacity: 1; }
.doorpic img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) {
  .door { grid-template-columns: minmax(0, 1fr); }
  .door__thumb { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; margin-bottom: 0.4rem; }
}

/* colophon */
.colophon { padding-block: var(--sc-section) 2.5rem; }
.colophon p.lede a { color: inherit; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 0.26em; }
.colophon p.lede a:hover { color: var(--sky); }
.foot { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 2rem; margin-top: clamp(4rem, 9vw, 8rem); padding-top: 1.75rem; border-top: 1px solid var(--hair); font-size: 0.9375rem; line-height: 1.5; }
.foot h3 { font: 500 0.875rem/1.2 var(--text); color: var(--mist); margin-bottom: 0.6rem; }
.foot a { display: flex; align-items: center; min-height: 36px; color: inherit; text-decoration: none; }
.foot a:hover { color: var(--sky); }
.foot p { color: var(--mist); max-width: 26rem; }
@media (max-width: 860px) { .foot { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .foot > :first-child { grid-column: 1 / -1; } }

/* ---- inner pages ---- */
.view { min-height: 100svh; }
.page-head { padding-block: calc(var(--bar-h) + clamp(3rem, 8vw, 7rem)) clamp(2.5rem, 6vw, 5rem); }
.fam { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 2rem clamp(1.5rem, 4vw, 4rem); padding-block: clamp(2.5rem, 6vw, 5rem); border-top: 1px solid var(--hair); }
.fam__text { position: sticky; top: calc(var(--bar-h) + 1.5rem); align-self: start; }
.lineup { display: grid; grid-template-columns: repeat(auto-fill, minmax(12.5rem, 1fr)); row-gap: 2.5rem; }
.lineup .pk { width: auto; }
.lineup .pk__stand { height: 17rem; }
@media (max-width: 860px) { .fam { grid-template-columns: minmax(0, 1fr); } .fam__text { position: static; } }

.fgrid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 2.5rem clamp(1.5rem, 5vw, 5rem); align-items: start; }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem 1.25rem; padding: clamp(1.25rem, 3vw, 2.5rem); background: var(--bone); }
.form .full { grid-column: 1 / -1; }
.field { display: grid; gap: 0.4rem; font-size: 0.9375rem; font-weight: 500; }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 0.6rem 0.8rem; border: 1.5px solid rgba(16, 48, 95, 0.5); border-radius: 0; background: #FFFFFF; color: var(--ink); font: 400 1rem/1.4 var(--text); }
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.field small { font-weight: 400; color: var(--soft); }
.check { display: flex; gap: 0.75rem; align-items: flex-start; font-size: 0.9375rem; line-height: 1.45; }
.check input { width: 22px; height: 22px; margin: 0; flex: none; accent-color: var(--ink); }
.choice { display: flex; flex-wrap: wrap; gap: 0.6rem; border: 0; padding: 0; margin: 0; }
.choice legend { padding: 0; margin-bottom: 0.5rem; font-size: 0.9375rem; font-weight: 500; }
.choice label { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 48px; padding: 0 1rem; border: 1.5px solid rgba(16, 48, 95, 0.5); background: #FFFFFF; }
.form__msg { font-size: 0.9375rem; line-height: 1.45; padding: 0.8rem 1rem; background: var(--ink); color: var(--bone); }
.steps { display: grid; gap: 1.1rem; counter-reset: s; }
.steps li { display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); gap: 0.9rem; align-items: start; line-height: 1.45; }
.steps li::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; border: 1.5px solid currentColor; font: 400 1.1rem/1 var(--display); }
.ph { display: grid; place-items: center; min-height: 12rem; background: repeating-linear-gradient(135deg, rgba(16, 48, 95, 0.07) 0 12px, rgba(16, 48, 95, 0.13) 12px 24px); font-size: 0.875rem; color: var(--soft); text-align: center; padding: 1rem; }
.proj { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem clamp(1rem, 2.2vw, 2.25rem); }
.proj article { display: grid; gap: 0.7rem; align-content: start; }
@media (max-width: 860px) { .fgrid, .proj { grid-template-columns: minmax(0, 1fr); } .form { grid-template-columns: minmax(0, 1fr); } }

.pagefoot { padding-block: 2rem; border-top: 1px solid var(--hair); font-size: 0.9375rem; display: flex; flex-wrap: wrap; gap: 0.75rem 2rem; justify-content: space-between; }
.pagefoot a { color: inherit; }

/* ---- motion floor ---- */
@media (prefers-reduced-motion: reduce) {
  .index, .rail .r-let, .rail .r-bead, .door__t, .doorpic { transition: none; }
  .doorpic { display: none; }
}

/* ================= v4: two lines, one reservoir (built on the distributor price list) ================= */
html[data-line="agri"] [data-for="land"], html[data-line="land"] [data-for="agri"] { display: none !important; }
body, .g-paper, .g-paper2 { transition: background-color 520ms var(--sc-ease-out); }

/* the line switch */
.lineswitch { justify-self: center; display: inline-flex; border: 1.5px solid var(--bar-fg); }
.lineswitch button { min-height: 40px; padding: 0 1.1rem; border: 0; background: transparent; color: var(--bar-fg); font: 500 0.9375rem/1 var(--text); white-space: nowrap; transition: background-color 160ms var(--sc-ease-out), color 160ms var(--sc-ease-out); }
.lineswitch button[aria-pressed="true"] { background: var(--bar-fg); color: var(--bar-bg); }
.lineswitch button:not([aria-pressed="true"]):hover { text-decoration: underline; text-underline-offset: 0.3em; }
@media (max-width: 900px) { .folio { grid-template-columns: auto minmax(0, 1fr) auto; gap: 0.75rem; } }
@media (max-width: 700px) {
  :root { --bar-h: 104px; }
  .folio { grid-template-columns: auto minmax(0, 1fr); grid-template-rows: 56px 48px; row-gap: 0; }
  .folio__right { grid-column: 2; grid-row: 1; justify-self: end; }
  .lineswitch { grid-column: 1 / -1; grid-row: 2; justify-self: stretch; display: grid; grid-template-columns: 1fr 1fr; border-width: 1.5px 0 0; margin-inline: calc(-1 * var(--sc-gutter)); }
  .lineswitch button { min-height: 46px; }
}

/* hero */
.hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); min-height: 100svh; padding-top: var(--bar-h); }
.hero__text { display: grid; align-content: end; gap: clamp(1.1rem, 2.6vh, 2rem); padding: 2.5rem clamp(1.5rem, 3vw, 3.5rem) clamp(2rem, 6vh, 4.5rem) var(--sc-gutter); }
.hero__h { font: 400 clamp(2.5rem, 5.1vw, 5.5rem)/0.98 var(--display); letter-spacing: -0.04em; text-wrap: balance; }
.hero__swap { font-size: 0.9375rem; color: var(--soft); }
.hero__swap .tlink { background: none; border: 0; padding: 0; font: inherit; font-weight: 500; color: var(--ink); }
.hero__pic { position: relative; overflow: hidden; min-height: 44svh; }
.hero__pic img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; opacity: 0; transition: opacity 700ms var(--sc-ease-out); }
html[data-line="agri"] .hero__pic img[data-pic="agri"], html[data-line="land"] .hero__pic img[data-pic="land"] { opacity: 1; }
@media (max-width: 860px) {
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hero__pic { order: -1; height: 42svh; min-height: 0; }
  .hero__text { padding: 1.75rem var(--sc-gutter) 2.5rem; }
}

/* granule and aqua */
.twoforms { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 5vw, 5rem); align-items: start; }
.cap--leaf { color: var(--sky); font-size: 0.9375rem; }
.season { display: grid; gap: 1.25rem; padding-top: 2rem; border-top: 1px solid var(--hair); }
.season .d3 { max-width: 28em; }
.season__rows { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: 1rem; align-items: center; }
.season__lab { font-size: 0.9375rem; }
.season__track { position: relative; height: 16px; }
.season__bar { position: absolute; inset: 0; background: var(--sky); }
.season__track--dots { display: flex; justify-content: space-around; align-items: center; border-bottom: 1px solid var(--hair); }
.season__track--dots i { width: 12px; height: 12px; border-radius: 50%; background: var(--bone); }
@media (max-width: 860px) { .twoforms { grid-template-columns: minmax(0, 1fr); } .twoforms > article { margin-top: 0 !important; } }

/* the field diary (pan) */
.diary-stage { padding-top: var(--bar-h); }
.diary { height: 100%; align-items: center; gap: clamp(1rem, 2vw, 2rem); padding-inline: var(--sc-gutter); }
.diary__lead { flex: none; width: min(30rem, 80vw); padding-right: clamp(1rem, 4vw, 4rem); }
.diary__end { flex: none; width: min(22rem, 70vw); padding-left: clamp(1rem, 4vw, 4rem); }
.shot { flex: none; width: clamp(17rem, 34vw, 32rem); display: grid; gap: 0.7rem; }
.shot img { width: 100%; height: min(50vh, 30rem); object-fit: cover; }
.shot--tall { width: clamp(14rem, 23vw, 21rem); }
.shot--tall img { height: min(60vh, 35rem); }
.shot figcaption { font-size: 0.9375rem; line-height: 1.4; color: var(--soft); }
.shot figcaption b { color: var(--ink); font-weight: 500; }
@media (max-width: 700px) { .shot img { height: 40vh; } .shot--tall img { height: 46vh; } }

/* rates and figures on light grounds */
.ledger--ink dt, .nums__big--ink { color: var(--ink); }
.ledger dd b { font-weight: 600; }
#ch-rates .ledger div { grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); }
#ch-rates .ledger dt { white-space: normal; font-size: clamp(1.6rem, 2.7vw, 2.5rem); line-height: 1.05; }
@media (max-width: 560px) { #ch-rates .ledger div { grid-template-columns: minmax(0, 1fr); } }

/* products */
.prodgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(1.5rem, 4vw, 4rem); border-bottom: 1px solid var(--hair); }
.prodgrid--one { grid-template-columns: minmax(0, 1fr); }
.prod { display: grid; grid-template-columns: clamp(6rem, 11vw, 9.5rem) minmax(0, 1fr); gap: clamp(1rem, 2.5vw, 2rem); padding-block: clamp(1.5rem, 3vw, 2.5rem); border-top: 1px solid var(--hair); align-items: start; }
.prod__pack { display: flex; gap: 0.3rem; align-items: flex-end; justify-content: center; }
.prod__pack img { min-width: 0; flex: 1 1 0; width: 100%; height: auto; max-height: 15rem; object-fit: contain; filter: drop-shadow(0 10px 12px rgba(16, 48, 95, 0.2)); }
.prod__info { display: grid; gap: 0.5rem; }
.prod__info .body { max-width: 30rem; }
.sizes { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.5rem; }
.size { min-height: 44px; padding: 0 0.9rem; border: 1.5px solid var(--ink); background: transparent; color: var(--ink); font: 500 0.9375rem/1 var(--text); transition: background-color 140ms var(--sc-ease-out), color 140ms var(--sc-ease-out); }
.size[aria-pressed="true"] { background: var(--ink); color: var(--bone); }
.prod__buy { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.famshot img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.fam__text .famshot { max-width: 17rem; margin-top: 0.75rem; }
@media (max-width: 860px) { .prodgrid { grid-template-columns: minmax(0, 1fr); } }

/* bio+ and company */
.biopack { display: flex; align-items: flex-end; justify-content: center; gap: 1rem; }
.biopack img { height: clamp(11rem, 21vw, 19rem); width: auto; max-width: 48%; object-fit: contain; }
.jobs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem 2rem; padding-top: 1.75rem; border-top: 1px solid var(--hair); }
.jobs dt { font: 400 1.35rem/1.15 var(--display); letter-spacing: -0.02em; margin-bottom: 0.4rem; }
.jobs dd { font-size: 0.9375rem; line-height: 1.45; color: var(--mist); }
@media (max-width: 860px) { .jobs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .jobs { grid-template-columns: minmax(0, 1fr); } }
#ch-measured .ledger div { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
#ch-measured .ledger dt { font-size: clamp(2rem, 3.4vw, 3.2rem); }
@media (max-width: 560px) { #ch-measured .ledger div { grid-template-columns: minmax(0, 1fr); } }

/* ================= v5: mission first (drought and flood) ================= */
.hero__stand { display: flex; align-items: center; gap: 0.7rem; font: 500 0.9375rem/1.2 var(--text); color: var(--soft); }
.hero__stand::before { content: ""; width: 1.75rem; height: 1.5px; background: currentColor; }
.hero__h { font-size: clamp(2.3rem, 4.5vw, 4.9rem); }
.hero__text .body { color: var(--ink); max-width: 31rem; }

/* why now: the film behind the statement */
.why { position: relative; min-height: 100svh; display: grid; align-items: end; overflow: hidden; isolation: isolate; }
.why__vid { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; z-index: -2; }
.why__scrim { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(11, 35, 71, 0.3) 0%, rgba(11, 35, 71, 0.62) 42%, rgba(11, 35, 71, 0.94) 100%); }
.why__in { display: grid; gap: clamp(1.5rem, 4vw, 3rem); width: 100%; padding-block: calc(var(--bar-h) + 5rem) clamp(2.5rem, 6vw, 5rem); }
.why__in .d1 { max-width: 11.5em; }
.why__cols { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 2rem clamp(1.5rem, 5vw, 5rem); align-items: end; }
.why__facts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem; margin: 0; }
.why__facts dt { font: 400 clamp(2.6rem, 5.4vw, 5rem)/0.95 var(--display); letter-spacing: -0.04em; color: var(--sky); white-space: nowrap; }
.why__facts dd { margin-top: 0.5rem; font-size: 1rem; line-height: 1.4; color: var(--bone); max-width: 14rem; }
.why .cap { color: var(--mist); }
@media (max-width: 860px) { .why__cols { grid-template-columns: minmax(0, 1fr); } }

/* how it works: the drought-to-rain dial */
.dial { --wet: 0.2; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 2rem clamp(1.5rem, 4vw, 4rem); align-items: stretch; }
.dial__scene { position: relative; overflow: hidden; height: clamp(21rem, 42vw, 33rem); background: var(--deep); }
.dial__sky { position: absolute; inset: 0 0 auto 0; height: 34%; background: var(--bone); overflow: hidden; }
.dial__sky::after { content: ""; position: absolute; inset: 0; background: var(--mist); opacity: var(--wet); }
.dial__sun { position: absolute; z-index: 1; right: 11%; top: 20%; width: clamp(2.6rem, 5vw, 4rem); aspect-ratio: 1; border-radius: 50%; border: 2px solid var(--ink); opacity: clamp(0, calc((0.55 - var(--wet)) * 2.6), 1); }
.dial__rain { position: absolute; z-index: 1; inset: -40% -10% 0 -10%; background: repeating-linear-gradient(104deg, transparent 0 13px, rgba(16, 48, 95, 0.6) 13px 14.5px); opacity: clamp(0, calc((var(--wet) - 0.5) * 2.4), 1); animation: dial-rain 0.7s linear infinite; }
@keyframes dial-rain { to { transform: translate3d(-12px, 48px, 0); } }
.dial__soil { position: absolute; inset: 34% 0 0 0; background: var(--deep); border-top: 2px solid var(--ink); }
.dial__water { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(183, 204, 226, 0.36), rgba(183, 204, 226, 0.08)); opacity: clamp(0, calc((var(--wet) - 0.6) * 2.5), 1); }
.gran { position: absolute; width: var(--g); aspect-ratio: 1; border-radius: 47% 53% 51% 49% / 52% 48% 52% 48%; background: radial-gradient(circle at 34% 30%, rgba(242, 249, 251, 0.95), rgba(183, 204, 226, 0.6) 52%, rgba(183, 204, 226, 0.28)); box-shadow: inset 0 0 0 1px rgba(242, 249, 251, 0.55); transform: translate(-50%, -50%) scale(calc(0.2 + 0.8 * var(--wet))); will-change: transform; }
.dial__plant { position: absolute; z-index: 2; left: 50%; top: calc(34% - 6rem); width: 18rem; height: 26rem; transform: translateX(-50%); color: var(--ink); pointer-events: none; }
.dial__roots { stroke: rgba(242, 249, 251, 0.7); }
.dial__side { display: grid; align-content: space-between; gap: 2rem; }
.dial__says { display: grid; }
.dial__say { grid-area: 1 / 1; opacity: 0; transition: opacity 320ms var(--sc-ease-out); }
.dial[data-state="dry"] [data-say="dry"], .dial[data-state="wet"] [data-say="wet"] { opacity: 1; }
.dial__read { font: 400 clamp(1.4rem, 2.1vw, 2rem)/1.1 var(--display); letter-spacing: -0.02em; }
.dial__read b { display: inline-block; min-width: 2ch; text-align: right; font-weight: 400; font-variant-numeric: tabular-nums; }
.dial__ctl { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 0.9rem; align-items: center; font-size: 0.9375rem; font-weight: 500; }
.dial__ctl input { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; margin: 0; background: transparent; cursor: ew-resize; }
.dial__ctl input::-webkit-slider-runnable-track { height: 2px; background: var(--ink); }
.dial__ctl input::-moz-range-track { height: 2px; background: var(--ink); }
.dial__ctl input::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 30px; height: 30px; margin-top: -14px; border-radius: 50%; background: var(--ink); border: 0; }
.dial__ctl input::-moz-range-thumb { width: 30px; height: 30px; border-radius: 50%; background: var(--ink); border: 0; }
.dial__ctl input:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
@media (max-width: 860px) {
  .dial { grid-template-columns: minmax(0, 1fr); }
  .dial__scene { height: 21rem; }
  .dial__plant { width: 14rem; height: 20.2rem; top: calc(34% - 4.67rem); }
  .gran { width: calc(var(--g) * 0.72); }
  .dial__side { gap: 1.5rem; }
}
@media (prefers-reduced-motion: reduce) { .dial__rain { animation: none; } }
.twoforms--paper { padding-top: clamp(2rem, 5vw, 4rem); border-top: 1px solid var(--hair); }
.formnote { font-size: 0.9375rem; font-weight: 500; }

/* what we stand for */
.stand__k { color: var(--mist); padding-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.stand { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); grid-template-rows: auto 1fr; gap: 1.5rem clamp(1.5rem, 6vw, 7rem); padding-block: clamp(2rem, 5vw, 4.5rem); border-top: 1px solid var(--hair); }
.stand__w { grid-column: 1; grid-row: 1; font: 400 clamp(3.2rem, 8.4vw, 8.5rem)/0.9 var(--display); letter-spacing: -0.05em; }
.stand__t { grid-column: 1; grid-row: 2; max-width: 38rem; }
.stand__f { grid-column: 2; grid-row: 1 / span 2; align-self: start; }
.stand__f img, .stand__f video { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.stand__f figcaption { margin-top: 0.6rem; }
.stand:nth-of-type(even) { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); }
.stand:nth-of-type(even) .stand__w, .stand:nth-of-type(even) .stand__t { grid-column: 2; }
.stand:nth-of-type(even) .stand__f { grid-column: 1; }
.sdg { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.sdg li { display: inline-flex; gap: 0.55rem; align-items: baseline; padding: 0.5rem 0.75rem; border: 1px solid var(--hair); font-size: 0.875rem; line-height: 1.2; }
.sdg b { font: 400 1.05rem/1 var(--display); color: var(--sky); }
.sdg--ink b { color: var(--ink); }
.mini { display: flex; flex-wrap: wrap; gap: 1rem clamp(1.5rem, 4vw, 3rem); margin: 0; }
.mini dt { font: 400 clamp(2rem, 3.4vw, 3rem)/1 var(--display); letter-spacing: -0.035em; color: var(--sky); font-variant-numeric: tabular-nums; }
.mini dd { margin-top: 0.3rem; font-size: 0.9375rem; color: var(--mist); }
@media (max-width: 860px) {
  .stand, .stand:nth-of-type(even) { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
  .stand .stand__w, .stand .stand__t, .stand .stand__f, .stand:nth-of-type(even) .stand__w, .stand:nth-of-type(even) .stand__t, .stand:nth-of-type(even) .stand__f { grid-column: 1; grid-row: auto; }
  .stand__f { max-width: 22rem; }
}

/* three kinds of land (pan) */
.terr { flex: none; width: min(25rem, 78vw); padding-inline: clamp(0.5rem, 2.5vw, 2.5rem) clamp(0.5rem, 1.5vw, 1.5rem); }
.terr .d2 { font-size: clamp(1.8rem, 3.1vw, 2.9rem); }
.diary > [data-terr="a"] { order: 1; }
.diary > [data-terr="b"] { order: 2; }
.diary > [data-terr="c"] { order: 3; }
.diary > .diary__end { order: 9; }
html[data-line="land"] .diary > [data-terr="a"] { order: 2; }
html[data-line="land"] .diary > [data-terr="b"] { order: 1; }
#ch-measured .ledger dt { white-space: nowrap; }
.doors { display: grid; }
html[data-line="land"] .doors .door:nth-child(2) { order: -1; }

/* environmental projects page */
.banner { margin-bottom: clamp(2.5rem, 6vw, 5rem); }
.banner video { display: block; width: 100%; height: auto; aspect-ratio: 21 / 9; object-fit: cover; }
.banner figcaption { margin-top: 0.6rem; }
.proj + .cap { margin-top: 0.5rem; }
.fam > .d2 + .proj { margin-top: 0.5rem; }
@media (max-width: 700px) { .banner video { aspect-ratio: 4 / 3; } }

/* ================= v6: top navigation, site footer, further pages ================= */
:root { --bar-h: 100px; }
.folio { display: block; height: auto; padding: env(safe-area-inset-top, 0px) 0 0; }
.folio__main, .folio__sub { padding-left: max(var(--sc-gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--sc-gutter), env(safe-area-inset-right, 0px)); }
.folio__main { height: 60px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 1.5rem; }
.folio__sub { height: 40px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--bar-hair); }
.nav { justify-self: center; display: flex; align-items: center; gap: clamp(0.9rem, 1.7vw, 1.75rem); }
.nav a { display: inline-flex; align-items: center; min-height: 44px; color: inherit; font: 500 0.9375rem/1 var(--text); text-decoration: none; white-space: nowrap; }
.nav a:hover, .nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 0.5em; }
.folio__main .folio__right { grid-column: 3; justify-self: end; }
.folio__menu { display: none; }
.folio__for { display: flex; align-items: center; gap: 0.75rem; }
.folio__forlab { font-size: 0.8125rem; opacity: 0.78; }
.folio__sub .lineswitch { border-width: 1px; }
.folio__sub .lineswitch button { min-height: 28px; padding: 0 0.8rem; font-size: 0.8125rem; }
.folio .folio__lang { display: inline-flex; min-height: 36px; padding: 0; font-size: 0.8125rem; }
@media (max-width: 1100px) { .nav { display: none; } .folio__menu { display: inline-flex; } }
@media (max-width: 700px) {
  :root { --bar-h: 104px; }
  .folio__main { height: 56px; gap: 0.75rem; }
  .folio__sub { height: 48px; padding: 0; }
  .folio__for { flex: 1; }
  .folio__forlab, .folio .folio__lang { display: none; }
  .folio__sub .lineswitch { flex: 1; display: grid; grid-template-columns: 1fr 1fr; margin: 0; border-width: 0; }
  .folio__sub .lineswitch button { min-height: 47px; font-size: 0.9375rem; }
}
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* site footer, on every page */
.colophon { padding-bottom: clamp(3rem, 8vw, 7rem); }
.sitefoot { padding-block: clamp(3rem, 7vw, 6rem) 2rem; border-top: 1px solid rgba(242, 249, 251, 0.16); }
.sitefoot .logo { height: 40px; color: var(--bone); --mark: var(--sky); }
.sitefoot__top { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 2.5rem clamp(2rem, 6vw, 6rem); align-items: start; }
.sitefoot__lead .lede { max-width: 26em; }
.sitefoot__news { display: grid; gap: 0.9rem; }
.sitefoot__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.5rem; }
.sitefoot__row input { min-height: 48px; padding: 0 0.9rem; border: 1.5px solid rgba(242, 249, 251, 0.5); border-radius: 0; background: transparent; color: var(--bone); font: 400 1rem/1.2 var(--text); }
.sitefoot__row input::placeholder { color: var(--mist); }
.sitefoot__row input:focus-visible { outline: 2px solid var(--sky); outline-offset: 2px; }
.sitefoot .check { color: var(--mist); font-size: 0.875rem; }
.sitefoot .check input { accent-color: var(--sky); }
.sitefoot .form__msg { color: var(--sky); font-size: 0.9375rem; }
.check a, .form a, .faq a, .legal a, .contactlist a { color: inherit; }
.sitefoot__cols { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2rem; margin-top: clamp(3rem, 6vw, 5rem); padding-top: 2rem; border-top: 1px solid var(--hair); font-size: 0.9375rem; }
.sitefoot__cols h3 { font: 500 0.875rem/1.2 var(--text); color: var(--mist); margin-bottom: 0.6rem; }
.sitefoot__cols a { display: flex; align-items: center; min-height: 36px; color: inherit; text-decoration: none; }
.sitefoot__cols a:hover, .sitefoot__links a:hover { color: var(--sky); }
.sitefoot__legal { display: grid; gap: 0.75rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--hair); font-size: 0.875rem; line-height: 1.5; color: var(--mist); }
.sitefoot__links { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; align-items: center; }
.sitefoot__links a { display: inline-flex; align-items: center; min-height: 36px; color: var(--bone); }
@media (max-width: 860px) {
  .sitefoot__top { grid-template-columns: minmax(0, 1fr); }
  .sitefoot__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* further pages */
.cta { display: grid; gap: 1.5rem; padding-block: clamp(3rem, 7vw, 6rem); border-top: 1px solid var(--hair); }
.cycle { display: grid; counter-reset: c; border-bottom: 1px solid var(--hair); }
.cycle li { display: grid; grid-template-columns: 4.5rem minmax(0, 12rem) minmax(0, 1fr); gap: 0.5rem 1.5rem; align-items: baseline; padding-block: 1.4rem; border-top: 1px solid var(--hair); }
.cycle li::before { counter-increment: c; content: counter(c); font: 400 clamp(2rem, 3.4vw, 3rem)/1 var(--display); letter-spacing: -0.04em; }
@media (max-width: 700px) { .cycle li { grid-template-columns: 3rem minmax(0, 1fr); } .cycle li .body { grid-column: 2; } }
.jobs--ink { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.jobs--ink dd { color: var(--soft); }
.faq { border-bottom: 1px solid var(--hair); }
.faq details { border-top: 1px solid var(--hair); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 64px; padding-block: 0.9rem; cursor: pointer; list-style: none; font: 400 clamp(1.25rem, 1.9vw, 1.7rem)/1.15 var(--display); letter-spacing: -0.02em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font: 400 1.6rem/1 var(--text); }
.faq details[open] summary::after { content: "\2212"; }
.faq summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.faq details .body { padding-bottom: 1.4rem; max-width: 40rem; }
.chan { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border-top: 1px solid var(--hair); }
.chan__one { padding: clamp(1.75rem, 4vw, 3.5rem) clamp(1rem, 3vw, 3rem) clamp(1.75rem, 4vw, 3.5rem) 0; }
.chan__one + .chan__one { padding-left: clamp(1rem, 3vw, 3rem); padding-right: 0; border-left: 1px solid var(--hair); }
.chan__one .btn { justify-self: start; margin-top: 0.5rem; }
@media (max-width: 700px) {
  .chan { grid-template-columns: minmax(0, 1fr); }
  .chan__one, .chan__one + .chan__one { padding-inline: 0; border-left: 0; }
  .chan__one + .chan__one { border-top: 1px solid var(--hair); }
}
.plist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(1.5rem, 4vw, 4rem); border-bottom: 1px solid var(--hair); }
.plist__grp { padding-block: 1.4rem; border-top: 1px solid var(--hair); }
.plist ul { display: grid; margin-top: 0.6rem; }
.plist li { display: flex; justify-content: space-between; gap: 1rem; padding-block: 0.35rem; font-variant-numeric: tabular-nums; }
.plist li b { font-weight: 500; }
@media (max-width: 700px) { .plist { grid-template-columns: minmax(0, 1fr); } }
.docs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(1rem, 2.2vw, 2.25rem); border-top: 1px solid var(--hair); }
.docs--list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.doc { display: grid; gap: 0.5rem; align-content: start; padding-block: 1.5rem 1.75rem; border-bottom: 1px solid var(--hair); color: inherit; text-decoration: none; }
a.doc:hover .d3 { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 0.2em; }
@media (max-width: 860px) { .docs, .docs--list { grid-template-columns: minmax(0, 1fr); } }
.legal { display: grid; gap: 1.5rem; max-width: 56rem; padding-bottom: clamp(3rem, 8vw, 7rem); }
.legal--text { gap: 0.9rem; }
.legal--text h2 { margin-top: 1.5rem; }
.legal--text .body { max-width: 44rem; color: var(--ink); }
.contactlist dt { font-size: clamp(1.2rem, 1.7vw, 1.5rem); }
.contactlist dd { line-height: 1.55; }
.howlink { justify-self: start; }

/* who we work with: the picture sits in its own place in the row and appears on hover.
   It no longer follows the pointer (owner, 2026-11-22: "annoying"). */
.doorpic { display: none; }
@media (min-width: 861px) {
  .door { grid-template-columns: minmax(0, 1.5fr) clamp(8rem, 13vw, 12rem) minmax(0, 1fr) auto; }
  .door__t { grid-column: 1; grid-row: 1; font-size: clamp(2rem, 3.5vw, 3.2rem); }
  .door .body { grid-column: 3; grid-row: 1; }
  .door__go { grid-column: 4; grid-row: 1; }
  .door__thumb { display: block; grid-column: 2; grid-row: 1; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; opacity: 0; clip-path: inset(0 100% 0 0); transition: opacity 260ms var(--sc-ease-out), clip-path 420ms var(--sc-ease-out); }
  .door:hover .door__thumb, .door:focus-visible .door__thumb { opacity: 1; clip-path: inset(0 0 0 0); }
  .door:hover .door__t { transform: none; }
}
@media (min-width: 861px) and (hover: none) { .door__thumb { opacity: 1; clip-path: none; } }
@media (prefers-reduced-motion: reduce) { .door__thumb { transition: none; } }

/* documents are downloaded from the site itself */
.doc__go { justify-self: start; margin-top: 0.25rem; font-weight: 500; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 0.28em; }
a.doc:hover .doc__go { text-decoration-thickness: 2.5px; }
.doc__note { font-size: 0.875rem; color: var(--soft); }
.doc__note:empty { display: none; }

/* films are played by the visitor: a card with the film's picture opens the player on the page */
.film { display: grid; gap: 0.6rem; width: 100%; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; align-content: start; }
.film__pic { position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 9; background: var(--deep); }
.film__pic img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 520ms var(--sc-ease-out); }
.film:hover .film__pic img { transform: scale(1.03); }
.film__play { position: absolute; left: 1rem; bottom: 1rem; display: grid; place-items: center; width: 3.5rem; height: 3.5rem; border-radius: 50%; background: var(--bone); }
.film__play::before { content: ""; margin-left: 0.2rem; border-style: solid; border-width: 0.55rem 0 0.55rem 0.9rem; border-color: transparent transparent transparent var(--ink); }
.film__t { font: 400 clamp(1.25rem, 1.9vw, 1.7rem)/1.15 var(--display); letter-spacing: -0.02em; }
.film:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.film--small { max-width: 17rem; margin-top: 0.75rem; }
.film--small .film__play { width: 2.6rem; height: 2.6rem; left: 0.7rem; bottom: 0.7rem; }
.film--small .film__t { font-size: 1.2rem; }
.films { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem clamp(1rem, 2.2vw, 2.25rem); }
@media (max-width: 860px) { .films { grid-template-columns: minmax(0, 1fr); } }
.why__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; }
.playbtn::before { content: ""; margin-right: 0.7rem; border-style: solid; border-width: 0.4rem 0 0.4rem 0.65rem; border-color: transparent transparent transparent currentColor; }
.cinema { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: clamp(1rem, 4vw, 3rem); background: rgba(11, 35, 71, 0.95); color: var(--bone); }
.cinema[hidden] { display: none; }
.cinema__box { display: grid; gap: 0.9rem; width: min(100%, 1100px); }
.cinema__bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.cinema__frame { aspect-ratio: 16 / 9; background: #000; }
.cinema__frame video, .cinema__frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.cinema__note { font-size: 0.9375rem; line-height: 1.45; color: var(--mist); }
.cinema__note:empty { display: none; }
.cinema__note a { color: var(--bone); }
@media (prefers-reduced-motion: reduce) { .film__pic img { transition: none; } }

/* How it works opens with a film that follows the scroll */
.howfilm__scrim { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(11, 35, 71, 0.25) 0%, rgba(11, 35, 71, 0.5) 45%, rgba(11, 35, 71, 0.93) 100%); }
.howfilm__in { position: absolute; inset: auto 0 0 0; z-index: var(--sc-z-copy, 2); display: grid; padding-bottom: clamp(2.5rem, 7vh, 5rem); color: var(--bone); }
.howfilm__a, .howfilm__b { grid-area: 1 / 1; align-self: end; max-width: 46rem; }
.howfilm__b .cap { color: var(--mist); }
.page-head--after { padding-top: clamp(3rem, 7vw, 6rem); align-items: center; }

/* a film whose file is not in hand yet: its picture with a clear way to play it elsewhere */
.cinema__poster { position: relative; display: block; width: 100%; height: 100%; color: var(--ink); text-decoration: none; }
.cinema__poster img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cinema__cta { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 0.9rem; padding: 0.6rem 1.4rem 0.6rem 0.6rem; background: var(--bone); font: 500 1.0625rem/1 var(--text); white-space: nowrap; }
.cinema__cta .film__play { position: static; width: 2.75rem; height: 2.75rem; background: var(--ink); }
.cinema__cta .film__play::before { border-left-color: var(--bone); }

/* =====================================================================================
   STERNA. The identity comes from the business card: a blue ground, a white tern with a
   red beak, a wide serif wordmark, one short red rule, two lines of spaced capitals.
   Rules of use on this site:
   - red is the beak. It appears only as the beak and as the short rule, never as text.
   - the serif is the wordmark. Headings stay in the geometric sans.
   - spaced capitals are the card's two lines. They label the hero and the pillars, nothing else.
   Colours are measured from the card photograph and will be replaced by the brand files.
   ===================================================================================== */

/* ---- grounds ---- */
.g-ink { --sc-canvas: var(--blue); background: var(--blue); }
.g-ink, .g-deep { --sc-accent: var(--bone); --sc-accent-ink: var(--ink); }
.folio[data-over="ink"] { --bar-bg: var(--blue); }
html[data-line="land"] { --paper: #EEF4EF; --paper-2: #E1ECE4; }

/* ---- type ---- */
.d0, .d1, .hero__h, .stand__w, .nums__big, .door__t, .index__big a { font-weight: 300; }
.d0 { letter-spacing: -0.045em; }
.d1 { letter-spacing: -0.035em; line-height: 1; }
.d2 { letter-spacing: -0.025em; line-height: 1.05; }
.body { font-size: 1.125rem; line-height: 1.55; }
.cap { font-size: 0.9375rem; }
.title__cta { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.pk__price { font: 400 1.9rem/1.1 var(--display); letter-spacing: -0.02em; margin-top: 0.3rem; font-variant-numeric: tabular-nums; }
.pk__note { min-height: 1.3em; font-size: 0.875rem; color: var(--sc-ink-soft); }
@media (max-width: 760px) { .d0 { font-size: 16.6vw; } }

/* ---- the mark and the wordmark ---- */
.tern { display: block; aspect-ratio: 716 / 332; height: auto; overflow: visible; }
.brand { gap: 0.8rem; text-decoration: none; }
.brand__mark { width: 3.4rem; }
.brand__word { font: 500 1.32rem/1 var(--serif); letter-spacing: 0.34em; text-transform: uppercase; }
@media (max-width: 560px) { .brand__mark { width: 2.9rem; } .brand__word { font-size: 1.15rem; } }
.nav a:hover, .nav a[aria-current="page"] { text-decoration-color: var(--red); }

/* ---- hero: the card, opened ---- */
@media (min-width: 861px) { .hero { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.hero__text { grid-template-rows: minmax(0, 1fr) auto; align-content: stretch; gap: clamp(1.5rem, 4vh, 3rem); padding: clamp(1rem, 3vh, 2.5rem) clamp(1.5rem, 4vw, 4.5rem) clamp(2rem, 6vh, 4.5rem) var(--sc-gutter); }
.hero__tern { width: clamp(9rem, 16vw, 15rem); color: var(--bone); align-self: center; justify-self: start; }
.hero__stack { display: grid; gap: clamp(1.1rem, 2.4vh, 1.9rem); }
.hero__stand { color: var(--mist); font: 600 0.8125rem/1.2 var(--text); letter-spacing: 0.2em; text-transform: uppercase; gap: 0.9rem; }
.hero__stand::before { width: 2.75rem; height: 2px; background: var(--red); }
.hero__h { font-size: clamp(2.3rem, 4.7vw, 5.1rem); line-height: 1; letter-spacing: -0.035em; max-width: 12em; }
.hero .lede { color: var(--bone); max-width: 35em; }
.hero__swap { color: var(--mist); }
.hero__swap .tlink { color: var(--bone); }
.hero__pic { margin: clamp(1rem, 3vh, 2.5rem) var(--sc-gutter) clamp(2rem, 6vh, 4.5rem) 0; }
@media (max-width: 860px) {
  .hero__text { grid-template-rows: auto auto; padding: 1.75rem var(--sc-gutter) 2.5rem; }
  .hero__tern { width: 7.5rem; }
  .hero__pic { margin: 0; }
}
/* one authored moment on load: the tern glides in and settles, the plate opens, the lines follow */
@keyframes tern-in { from { opacity: 0; transform: translate3d(-14vw, 10vh, 0) rotate(-10deg) scale(0.8); } to { opacity: 1; transform: none; } }
@keyframes plate-in { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes line-in { from { opacity: 0; transform: translate3d(0, 1.1rem, 0); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .hero__tern { animation: tern-in 1900ms cubic-bezier(0.16, 1, 0.3, 1) 150ms both; }
  .hero__pic { animation: plate-in 1500ms cubic-bezier(0.16, 1, 0.3, 1) 250ms both; }
  .hero__stack > * { animation: line-in 900ms var(--sc-ease-out) both; }
  .hero__stack > :nth-child(1) { animation-delay: 650ms; }
  .hero__stack > :nth-child(2) { animation-delay: 760ms; }
  .hero__stack > :nth-child(3) { animation-delay: 870ms; }
  .hero__stack > :nth-child(4) { animation-delay: 980ms; }
  .hero__stack > :nth-child(n + 5) { animation-delay: 1090ms; }
}

/* ---- what Sterna does ---- */
.does { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 2.5rem clamp(2rem, 7vw, 7rem); align-items: start; }
.does__lead { position: sticky; top: calc(var(--bar-h) + 2rem); }
.does__rows { display: grid; border-bottom: 1px solid var(--hair); }
.role { display: grid; gap: 0.9rem; padding-block: clamp(1.75rem, 3.4vw, 3rem); border-top: 1px solid var(--hair); }
.role .tlink { justify-self: start; }
@media (max-width: 860px) { .does { grid-template-columns: minmax(0, 1fr); } .does__lead { position: static; } }

/* ---- what we stand for: each word takes the full measure ---- */
.stand__k { display: flex; align-items: center; gap: 0.9rem; font: 600 0.8125rem/1.2 var(--text); letter-spacing: 0.2em; text-transform: uppercase; color: var(--mist); }
.stand__k::before { content: ""; flex: none; width: 2.75rem; height: 2px; background: var(--red); }
.stand__w { font-size: clamp(2.6rem, 9.6vw, 9.75rem); line-height: 0.92; letter-spacing: -0.045em; }
@media (min-width: 861px) {
  .stand { grid-template-rows: auto auto; row-gap: clamp(1.5rem, 3vw, 3rem); }
  .stand .stand__w, .stand:nth-of-type(even) .stand__w { grid-column: 1 / -1; grid-row: 1; }
  .stand .stand__t, .stand:nth-of-type(even) .stand__t { grid-row: 2; }
  .stand .stand__f, .stand:nth-of-type(even) .stand__f { grid-row: 2; }
}

/* ---- the catalogue: the next material ---- */
.soon { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 5fr) minmax(0, 4fr); gap: 1.5rem clamp(1.5rem, 4vw, 4rem); align-items: start; padding: clamp(1.5rem, 3.5vw, 3rem); }
.soon .tlink { grid-column: 2; justify-self: start; }
.uses { display: grid; gap: 0.7rem; margin: 0; }
.uses div { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); gap: 1rem; align-items: baseline; }
.uses dt { font: 400 1.35rem/1.1 var(--display); letter-spacing: -0.02em; color: var(--sky); }
.uses dd { font-size: 1.0625rem; line-height: 1.4; }
@media (max-width: 860px) { .soon { grid-template-columns: minmax(0, 1fr); } .soon .tlink { grid-column: 1; } }

/* ---- small corrections that follow from the new grounds ---- */
.form { background: var(--paper-2); }
.season__bar { background: var(--ink); }
.season__track--dots i { background: var(--paper); border: 1.5px solid var(--ink); }
.films--two { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 50rem; }
@media (max-width: 860px) { .films--two { grid-template-columns: minmax(0, 1fr); } }
.cta .body { max-width: 40rem; }

/* photographs are graded a little cooler so that pictures from many sites read as one set.
   Pack shots are left exactly as the manufacturer supplies them. */
.hero__pic img, .fig:not(.famshot) img, .shot img, .stand__f img, .stand__f video, .door__thumb, .banner video, .why__vid { filter: saturate(0.86) contrast(1.03); }

/* ---- the page ends as the business card ---- */
.sitefoot__top { align-items: end; }
.endmark { display: grid; justify-items: center; gap: clamp(0.9rem, 1.8vw, 1.6rem); margin-top: clamp(3rem, 7vw, 6rem); padding-block: clamp(3rem, 8vw, 7rem) clamp(1.5rem, 4vw, 3.5rem); border-top: 1px solid var(--hair); text-align: center; }
.endmark__tern { width: clamp(8rem, 21vw, 19rem); color: var(--bone); }
.endmark__word { margin-top: clamp(0.5rem, 1.5vw, 1.5rem); font: 500 clamp(2.5rem, 10.5vw, 10.5rem)/1 var(--serif); letter-spacing: 0.3em; margin-right: -0.3em; text-transform: uppercase; color: var(--bone); }
.endmark__rule { width: clamp(3rem, 7vw, 6rem); height: 3px; margin-block: clamp(0.25rem, 1vw, 1rem); background: var(--red); }
.endmark__line { font: 600 clamp(0.75rem, 1.1vw, 1rem)/1.2 var(--text); letter-spacing: 0.22em; margin-right: -0.22em; text-transform: uppercase; color: var(--bone); }

/* ================= site (row 6): Products and Buy ================= */
/* "Tell me when it opens" on the Buy page is a link to the launch list (it works with scripts off), where the mockup
   has a <button>: a button does not inherit the page's letter spacing and text rendering, a link does, which made the
   link 1.9 px narrower at 1440 px. These give the link the button's own values.
   Row 8: limited to the Buy page's channel cards (.chan); "Propose a project" on Projects is a link in the mockup too,
   and the rule made it 1.5 px wider than the mockup's. */
.chan a.btn[data-scroll] { letter-spacing: normal; text-rendering: auto; }

/* ================= site (row 10): quality pass ================= */
/* The rules that apply only with scripts off moved to public/noscript.css (loaded inside <noscript>). */
/* Jumps from another page (and, with scripts off, on the same page) to a block below the fixed header stop 16 px below
   it, as the mockup's data-scroll does. The header is one pixel taller than --bar-h (its bottom hairline): 101 px over
   700 px wide, 105 px at 700 and below. site.js writes the header's measured height into --folio-h; with scripts off the
   value below stands. Only these targets: the home page's sections keep the mockup's own landing.
   Row 10b: #carbon (Products) and #advice (Projects) join, as the new links of the frame point at them. */
:root { --folio-h: calc(var(--bar-h) + 1px + env(safe-area-inset-top, 0px)); }
#launch, #ch-rates, #propose, #advice, #carbon, #cookies { scroll-margin-top: calc(var(--folio-h) + 16px); }

/* "Skip to content": the first link of every page, shown only while it has the keyboard focus. Fixed, so it moves
   nothing on the page. */
.skip { position: fixed; top: 0.5rem; left: max(var(--sc-gutter), env(safe-area-inset-left, 0px)); z-index: 100; padding: 0.75rem 1.1rem; background: var(--ink); color: var(--bone); font: 500 0.9375rem/1 var(--text); text-decoration: none; }
/* the ring sits inside the dark box, so it shows on every ground the header can take (light or dark) */
.skip:focus-visible { outline: 2px solid var(--sky); outline-offset: -5px; }
.skip:not(:focus) { width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* the film player lies on the dark ground but is not one of its sections: the focus ring there takes the dark grounds'
   colour (sky), as everywhere else on the dark grounds; the inherited ink ring was hardly visible on it */
.cinema :focus-visible { outline-color: var(--sky); }

/* the film player's last Tab stop (it sends the focus back to Close): no box, no place in the player's grid */
.cinema__end { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ================= site (row 11): the forms ================= */
/* The limit, count, error and status lines added by the form service (packet ROW11 C4). They take the existing small
   hint style (.field small) and the existing ink and mist colours. Errors take one colour that reads on the paper
   ground (6.2:1 on the form's bone ground) and, in the dark footer, the site's own red (4.7:1 on the deep ground). */
.form, .sitefoot__news { --err: #B3261E; }
.sitefoot__news { --err: var(--red); }
.field__count { font-variant-numeric: tabular-nums; }
.form__err { font-size: 0.875rem; font-weight: 500; line-height: 1.4; color: var(--err); }
.form__err:not(small) { margin: 0; }
/* the hint rule .field small (grey, 400) is more specific than .form__err: the error line of a field keeps its colour */
.field .form__err, .choice .form__err { font-weight: 500; color: var(--err); }
/* a field whose neighbour in the row has more lines under it keeps its own height: its lines stack from the top */
.form > .field { align-content: start; }
.field [aria-invalid="true"], .sitefoot__row input[aria-invalid="true"] { border-color: var(--err); }
.choice:has([aria-invalid="true"]) label { border-color: var(--err); }
.form__status { margin: 0; font-size: 0.9375rem; font-weight: 500; line-height: 1.45; color: var(--ink); }
.sitefoot .form__status { color: var(--sky); }
.form__status:empty { display: none; }
.form__status:focus { outline: none; }
.form__status:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.form__check { max-width: 100%; min-width: 0; }
.form__check:empty { display: none; }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.btn[disabled]:hover { background: var(--sc-accent); color: var(--sc-accent-ink); }
/* the trap field for robots: out of sight for every visitor, out of the tab order, read by no screen reader */
.form__trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
