/* ═══════════════════════════════════════════════════════════════════════════
   LIVING CITIES EARTH — DESIGN SYSTEM
   Portable brand sheet: tokens, type scale, surfaces and .lce-* components.
   Single source of truth for LCE styling outside the site repository.

   Everything is local. No CDN, no webfont service, no remote image.
   Fonts resolve from assets/fonts/ by relative path, so the whole folder can be
   copied next to an HTML file and opened from file:// with nothing else around.

   Prefix: every class is .lce-* so this sheet can sit next to other CSS.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Fonts: loaded separately, because the path differs between a page served
   from the site and this folder opened from disk. See fonts.css next door.
   ── Fonts ─────────────────────────────────────────────────────────────────
   Montserrat, self-hosted variable, three subsets. Only three weights are ever
   used in LCE communication: 300 body, 400 headings, 700 one-word statements.
   The Cyrillic subset is mandatory — LCE copy is bilingual.                  */

/* ── Tokens ────────────────────────────────────────────────────────────────
   Colour is derived, never invented: greens from the logo mark, earths from the
   identity guide collage, teal from the live site's action colour.            */

:root {
  /* Ink — warm near-black with a green undertone */
  --lce-ink:        #1c1f1a;  /* headings, primary text */
  --lce-ink-mid:    #4a4f46;  /* body copy */
  --lce-ink-dim:    #7a8572;  /* captions, meta, secondary — 18px and up only */

  /* Leaf — the brand accent, taken from the logo mark */
  --lce-leaf:       #8eb040;  /* totem, underlines, markers. Never small text on white */
  --lce-leaf-deep:  #557431;  /* hover, and accent-coloured small text */
  --lce-moss:       #2f401c;  /* dark surface, rare bands */

  /* Teal — the action colour, inherited from the live site */
  --lce-teal:       #05827c;  /* buttons, links */
  --lce-teal-deep:  #026451;  /* emphasised paragraphs, button hover */

  /* Light surfaces */
  --lce-mint:       #e7f3ee;  /* light surface */
  --lce-ice:        #f1fefd;  /* lighter still */
  --lce-line:       #adebe8;  /* hairlines, card borders */
  --lce-paper:      #fbfbf9;  /* default surface, warm white */

  /* Earths — for gestures, gradients and photographic tie-ins */
  --lce-sand:       #c0956d;  /* earthy accent inside gestures */
  --lce-straw:      #d2d0a9;  /* light earth */
  --lce-bark:       #614541;  /* dark earth */
  --lce-ember:      #f5914f;  /* rare warm accent */

  /* Alphas, derived from the tokens above. Do not add new hues here. */
  --lce-on-dark:        rgba(255, 255, 255, 0.96);
  --lce-on-dark-mid:    rgba(255, 255, 255, 0.78);
  --lce-on-dark-dim:    rgba(255, 255, 255, 0.58);
  --lce-border-dark:    rgba(255, 255, 255, 0.30);
  --lce-leaf-wash:      rgba(142, 176, 64, 0.35);  /* the emphasising brush */
  --lce-ink-wash:       rgba(28, 31, 26, 0.08);

  /* Gestures — soft diagonal gradients that separate bands without a hard rule.
     They never sit over text. */
  --lce-gesture-leaf:  linear-gradient(148deg, rgba(142,176,64,0) 0%, rgba(142,176,64,0.32) 46%, rgba(5,130,124,0.17) 100%);
  --lce-gesture-earth: linear-gradient(148deg, rgba(210,208,169,0) 0%, rgba(192,149,109,0.38) 52%, rgba(97,69,65,0.16) 100%);
  --lce-gesture-mint:  linear-gradient(180deg, var(--lce-paper) 0%, var(--lce-mint) 100%);

  /* The totem as a mask image. Inlined as a data URI on purpose: a mask that
     points at a separate .svg file is blocked by CORS when the page is opened
     from file://, and LCE material has to survive being double-clicked or
     mailed as a folder. assets/totem.svg stays on disk for inline and <img> use. */
  --lce-totem-mask: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><g fill='none' stroke='black' stroke-width='6' stroke-linecap='round'><g><path d='M50 50L50 34'/><circle cx='50' cy='23' r='10'/></g><g transform='rotate(72 50 50)'><path d='M50 50L50 34'/><circle cx='50' cy='23' r='10'/></g><g transform='rotate(144 50 50)'><path d='M50 50L50 34'/><circle cx='50' cy='23' r='10'/></g><g transform='rotate(216 50 50)'><path d='M50 50L50 34'/><circle cx='50' cy='23' r='10'/></g><g transform='rotate(288 50 50)'><path d='M50 50L50 34'/><circle cx='50' cy='23' r='10'/></g></g><circle cx='50' cy='50' r='5' fill='black'/></svg>");

  /* Photographic veil — the only correct way to put copy over an image */
  --lce-veil: linear-gradient(180deg, rgba(28,31,26,0.20) 0%, rgba(28,31,26,0.55) 100%);

  /* Type */
  --lce-font: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --lce-w-text:      300;  /* Light — all running text */
  --lce-w-head:      400;  /* Regular — all headings */
  --lce-w-statement: 700;  /* Bold — one-word statements only */

  /* Rhythm — 4px base grid */
  --lce-space-1:   4px;
  --lce-space-2:   8px;
  --lce-space-3:  12px;
  --lce-space-4:  16px;
  --lce-space-6:  24px;
  --lce-space-8:  32px;
  --lce-space-10: 40px;
  --lce-space-14: 56px;
  --lce-space-20: 80px;
  --lce-band: clamp(64px, 8vw, 140px);   /* vertical padding of a section band */
  --lce-gutter: 24px;
  --lce-width: 1200px;                   /* default container */
  --lce-width-narrow: 760px;             /* reading container */

  /* Shape */
  --lce-radius-lg: 20px;   /* large cards and photographs */
  --lce-radius-sm: 12px;   /* small cards, inputs, thumbnails */
  --lce-radius-pill: 999px;
  --lce-hairline: 1px;

  /* Shadow — soft and rare */
  --lce-shadow:      0 1px 2px rgba(28, 31, 26, 0.04);
  --lce-shadow-lift: 0 10px 28px rgba(28, 31, 26, 0.10);

  /* Motion */
  --lce-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --lce-hover: 200ms ease-in-out;
  --lce-reveal-dur: 400ms;
}

/* ── Base ────────────────────────────────────────────────────────────────── */

.lce, .lce * { box-sizing: border-box; }

.lce {
  font-family: var(--lce-font);
  font-weight: var(--lce-w-text);
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.65;
  color: var(--lce-ink-mid);
  background: var(--lce-paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* :where() keeps the link rule at zero specificity for the element itself, so a
   button class on an <a> still wins. Without it a .lce-btn--solid link inherits
   teal text on a teal fill and the label disappears. */
.lce :where(a) { color: var(--lce-teal); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.lce :where(a):hover { color: var(--lce-teal-deep); }
.lce img { max-width: 100%; height: auto; display: block; }

/* ── Layout ──────────────────────────────────────────────────────────────── */

.lce-container {
  width: 100%;
  max-width: var(--lce-width);
  margin-inline: auto;
  padding-inline: var(--lce-gutter);
}
.lce-container--narrow { max-width: calc(var(--lce-width-narrow) + var(--lce-gutter) * 2); }

/* Section band. Adjacent bands must not repeat the same surface — that
   alternation is what separates blocks in an LCE layout. */
.lce-band { padding-block: var(--lce-band); position: relative; }
.lce-band--tight { padding-block: clamp(40px, 5vw, 72px); }

/* ── Surfaces ────────────────────────────────────────────────────────────── */

.lce-surface--paper { background: var(--lce-paper); color: var(--lce-ink-mid); }
.lce-surface--mint  { background: var(--lce-mint);  color: var(--lce-ink-mid); }
.lce-surface--ice   { background: var(--lce-ice);   color: var(--lce-ink-mid); }

.lce-surface--moss { background: var(--lce-moss); color: var(--lce-on-dark-mid); }
.lce-surface--moss h1, .lce-surface--moss h2, .lce-surface--moss h3,
.lce-surface--moss .lce-display, .lce-surface--moss .lce-h1,
.lce-surface--moss .lce-h2, .lce-surface--moss .lce-h3,
.lce-surface--moss .lce-statement { color: var(--lce-on-dark); }
.lce-surface--moss .lce-eyebrow { color: var(--lce-on-dark-mid); }
.lce-surface--moss :where(a) { color: var(--lce-line); }
.lce-surface--moss .lce-rule { background: var(--lce-border-dark); }

/* Photographic band. Set the picture with --lce-image on the element:
   style="--lce-image: url('photo.jpg')". The veil is not optional — copy never
   sits on bare photography. */
.lce-surface--image {
  position: relative;
  isolation: isolate;
  background-image: var(--lce-veil), var(--lce-image, none);
  background-size: cover, cover;
  background-position: center, center;
  background-color: var(--lce-moss);
  color: var(--lce-on-dark);
}
.lce-surface--image h1, .lce-surface--image h2, .lce-surface--image h3,
.lce-surface--image .lce-display, .lce-surface--image .lce-h1,
.lce-surface--image .lce-h2, .lce-surface--image .lce-statement { color: var(--lce-on-dark); }
.lce-surface--image .lce-lead, .lce-surface--image .lce-body { color: var(--lce-on-dark-mid); }
.lce-surface--image .lce-eyebrow { color: var(--lce-on-dark-mid); }

/* ── Type scale ──────────────────────────────────────────────────────────── */

.lce-display { font-weight: var(--lce-w-head); font-size: clamp(40px, 6vw, 64px);  line-height: 1.08; letter-spacing: -0.01em; color: var(--lce-ink); margin: 0; max-width: 20ch; }
.lce-h1      { font-weight: var(--lce-w-head); font-size: clamp(32px, 4.5vw, 48px); line-height: 1.15; color: var(--lce-ink); margin: 0; max-width: 24ch; }
.lce-h2      { font-weight: var(--lce-w-head); font-size: clamp(26px, 3.2vw, 36px); line-height: 1.20; color: var(--lce-ink); margin: 0; max-width: 26ch; }
.lce-h3      { font-weight: var(--lce-w-head); font-size: clamp(20px, 2.2vw, 24px); line-height: 1.30; color: var(--lce-ink); margin: 0; max-width: 30ch; }
.lce-lead    { font-weight: var(--lce-w-text); font-size: clamp(18px, 2vw, 22px);   line-height: 1.55; margin: 0; }
.lce-body    { font-weight: var(--lce-w-text); font-size: clamp(16px, 1.4vw, 18px); line-height: 1.65; margin: 0; }
.lce-small   { font-weight: var(--lce-w-text); font-size: 15px; line-height: 1.55; margin: 0; }

/* Bold exists for exactly one purpose: a single-word assertion standing alone. */
.lce-statement {
  font-weight: var(--lce-w-statement);
  font-size: clamp(48px, 9vw, 96px);
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: var(--lce-ink);
  margin: 0;
  text-wrap: balance;
}

/* Measured reading width — 62 to 72 characters. */
.lce-measure { max-width: 68ch; }

/* Prose block: measured width plus the vertical rhythm between paragraphs.
   Order matters here — the reset is written first and at the same specificity as
   the rhythm rule, so the rhythm is not silently cancelled by an element reset. */
.lce-prose { max-width: 68ch; }
.lce-prose > * { margin: 0; }
.lce-prose > * + * { margin-top: var(--lce-space-6); }
.lce-prose > * + :is(h2, h3) { margin-top: var(--lce-space-10); }
.lce-prose p { font-weight: var(--lce-w-text); font-size: clamp(16px, 1.4vw, 18px); line-height: 1.65; }
/* Emphasis inside prose is Regular teal, never Bold. */
.lce-prose strong, .lce-prose b { font-weight: var(--lce-w-head); color: var(--lce-teal-deep); }

/* Prose bullets carry the totem instead of a disc. */
.lce-prose ul { list-style: none; padding: 0; }
.lce-prose ul li { position: relative; padding-left: 28px; }
.lce-prose ul li + li { margin-top: var(--lce-space-3); }
.lce-prose ul li::before {
  content: '';
  position: absolute; left: 0; top: 0.5em;
  width: 13px; height: 13px;
  background: var(--lce-leaf);
  -webkit-mask: var(--lce-totem-mask) center / contain no-repeat;
  mask: var(--lce-totem-mask) center / contain no-repeat;
}

/* ── Identity: totem ─────────────────────────────────────────────────────── */

/* The totem is a single-colour shape, so it is painted with currentColor and
   masked from assets/totem.svg. An empty <span class="lce-totem"> is enough —
   no inline SVG, no <img> that refuses to take the brand colour.
   One totem per section, no more. */
.lce-totem {
  display: inline-block;
  width: 22px; height: 22px;
  flex: 0 0 auto;
  color: var(--lce-leaf);
  background: currentColor;
  -webkit-mask: var(--lce-totem-mask) center / contain no-repeat;
  mask: var(--lce-totem-mask) center / contain no-repeat;
}
.lce-totem--sm { width: 14px; height: 14px; }
.lce-totem--lg { width: 44px; height: 44px; }
/* Inline <svg class="lce-totem-svg"> is the alternative when the mark has to be
   part of the document (print, email clients without mask support). */
.lce-totem-svg { display: inline-block; width: 22px; height: 22px; flex: 0 0 auto; color: var(--lce-leaf); }

/* Totem as a band divider, centred on a hairline. */
.lce-totem-rule { display: flex; align-items: center; gap: var(--lce-space-4); color: var(--lce-line); }
.lce-totem-rule::before, .lce-totem-rule::after {
  content: ''; flex: 1 1 auto; height: var(--lce-hairline); background: currentColor;
}
.lce-totem-rule .lce-totem { color: var(--lce-leaf); }

/* ── Identity: eyebrow ───────────────────────────────────────────────────── */

.lce-eyebrow {
  display: inline-flex; align-items: center; gap: var(--lce-space-3);
  font-weight: var(--lce-w-head);
  font-size: 12px;
  letter-spacing: 0.18em;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--lce-leaf-deep);
  margin: 0 0 var(--lce-space-6);
}
.lce-eyebrow .lce-totem { width: 16px; height: 16px; color: var(--lce-leaf); }

/* ── Identity: section head ──────────────────────────────────────────────── */

.lce-section-head { margin-bottom: clamp(32px, 4vw, 56px); }
.lce-section-head .lce-lead { margin-top: var(--lce-space-6); color: var(--lce-ink-mid); max-width: 60ch; }
.lce-section-head--centre { text-align: center; }
.lce-section-head--centre .lce-display,
.lce-section-head--centre .lce-h1,
.lce-section-head--centre .lce-h2,
.lce-section-head--centre .lce-lead { margin-inline: auto; }

/* ── Identity: emphasising brush ─────────────────────────────────────────── */

/* A stroke of leaf behind a key word, 0.35em tall, sitting on the baseline.
   Behind the text, never over it. */
.lce-mark {
  background-image: linear-gradient(var(--lce-leaf-wash), var(--lce-leaf-wash));
  background-repeat: no-repeat;
  background-size: 100% 0.35em;
  background-position: 0 88%;
  padding-inline: 0.08em;
}

/* ── Identity: gesture ───────────────────────────────────────────────────── */

/* Soft diagonal wash between bands. Decorative only: no text inside, and it is
   hidden from assistive technology with aria-hidden. */
.lce-gesture { height: clamp(72px, 10vw, 140px); background: var(--lce-gesture-leaf); }
.lce-gesture--earth { background: var(--lce-gesture-earth); }
.lce-gesture--mint  { background: var(--lce-gesture-mint); }
.lce-gesture--flip  { transform: scaleX(-1); }

/* Hairline rule — the restrained alternative to a gesture. */
.lce-rule { height: var(--lce-hairline); background: var(--lce-line); border: 0; margin: 0; }

/* ── Buttons ─────────────────────────────────────────────────────────────── */

.lce-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--lce-space-2);
  font-family: var(--lce-font);
  font-weight: var(--lce-w-head);
  font-size: 15px;
  line-height: 1;
  letter-spacing: 0.02em;
  padding: 16px 32px;
  border: var(--lce-hairline) solid transparent;
  border-radius: var(--lce-radius-pill);
  text-decoration: none;
  cursor: pointer;
  transition: background var(--lce-hover), color var(--lce-hover),
              border-color var(--lce-hover), transform var(--lce-hover),
              box-shadow var(--lce-hover);
}
.lce-btn:focus-visible { outline: 2px solid var(--lce-teal-deep); outline-offset: 3px; }

.lce-btn--solid { background: var(--lce-teal); color: #ffffff; border-color: var(--lce-teal); }
.lce-btn--solid:hover { background: var(--lce-teal-deep); border-color: var(--lce-teal-deep); color: #ffffff; transform: translateY(-2px); box-shadow: var(--lce-shadow-lift); }

.lce-btn--outline { background: transparent; color: var(--lce-teal-deep); border-color: var(--lce-line); }
.lce-btn--outline:hover { border-color: var(--lce-teal); color: var(--lce-teal); transform: translateY(-2px); }

/* Ghost belongs on photography and on the moss surface, nowhere else. */
.lce-btn--ghost { background: transparent; color: var(--lce-on-dark); border-color: var(--lce-border-dark); }
.lce-btn--ghost:hover { background: var(--lce-on-dark); color: var(--lce-teal-deep); border-color: var(--lce-on-dark); transform: translateY(-2px); }

.lce-btn-row { display: flex; flex-wrap: wrap; gap: var(--lce-space-4); align-items: center; }

/* ── Container card ──────────────────────────────────────────────────────── */

.lce-card {
  background: var(--lce-paper);
  border: var(--lce-hairline) solid var(--lce-line);
  border-radius: var(--lce-radius-lg);
  padding: clamp(24px, 3vw, 40px);
  box-shadow: var(--lce-shadow);
  transition: transform var(--lce-hover), box-shadow var(--lce-hover), border-color var(--lce-hover);
  overflow: hidden;
}
.lce-card:hover { transform: translateY(-2px); box-shadow: var(--lce-shadow-lift); }
.lce-card .lce-h3 { margin-bottom: var(--lce-space-3); }
.lce-card .lce-body { color: var(--lce-ink-mid); }

/* Card with a photograph: the picture goes edge to edge, so the card drops its
   padding and the copy takes its own. */
.lce-card--media { padding: 0; }
.lce-card--media > img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 0; }
.lce-card__body { padding: clamp(24px, 3vw, 36px); }

.lce-grid { display: grid; gap: clamp(20px, 2.4vw, 32px); }
.lce-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lce-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lce-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ── Numeric block ───────────────────────────────────────────────────────── */

/* For figures pulled out of running copy: 75%, 1 in 4, 1 billion.
   The figure is Regular, not Bold — Bold belongs to one-word statements. */
.lce-stats { display: grid; gap: clamp(24px, 3vw, 40px); grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.lce-stat { border-top: var(--lce-hairline) solid var(--lce-line); padding-top: var(--lce-space-6); }
.lce-stat__figure {
  font-weight: var(--lce-w-head);
  font-size: clamp(40px, 5vw, 56px);
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: var(--lce-teal-deep);
  margin: 0;
}
.lce-stat__label { font-size: 15px; font-weight: var(--lce-w-text); line-height: 1.5; color: var(--lce-ink-mid); margin: var(--lce-space-3) 0 0; max-width: 32ch; }

/* ── Pull quote ──────────────────────────────────────────────────────────── */

.lce-quote {
  border-left: 2px solid var(--lce-leaf);
  padding-left: clamp(20px, 3vw, 36px);
  margin: 0;
  max-width: 46ch;
}
.lce-quote p {
  font-weight: var(--lce-w-text);
  font-size: clamp(20px, 2.4vw, 28px);
  line-height: 1.4;
  color: var(--lce-ink);
  margin: 0;
}
.lce-quote cite, .lce-quote__cite {
  display: block;
  margin-top: var(--lce-space-4);
  font-style: normal;
  font-size: 15px;
  color: var(--lce-ink-mid);
}

/* ── Accordion ───────────────────────────────────────────────────────────── */

/* Built on details/summary: it works without a line of JavaScript. */
.lce-accordion { border-top: var(--lce-hairline) solid var(--lce-line); }
.lce-acc { border-bottom: var(--lce-hairline) solid var(--lce-line); }
.lce-acc > summary {
  display: flex; align-items: center; gap: var(--lce-space-4);
  list-style: none;
  cursor: pointer;
  padding: var(--lce-space-6) 0;
  font-weight: var(--lce-w-head);
  font-size: clamp(17px, 1.8vw, 20px);
  line-height: 1.4;
  color: var(--lce-ink);
  transition: color var(--lce-hover);
}
.lce-acc > summary::-webkit-details-marker { display: none; }
.lce-acc > summary:hover { color: var(--lce-teal-deep); }
.lce-acc > summary::after {
  content: '';
  margin-left: auto; flex: 0 0 auto;
  width: 10px; height: 10px;
  border-right: 1.5px solid var(--lce-ink-dim);
  border-bottom: 1.5px solid var(--lce-ink-dim);
  transform: rotate(45deg);
  transition: transform var(--lce-hover);
}
.lce-acc[open] > summary::after { transform: rotate(225deg); }
/* The totem marks the open question — one small signal, not a decoration. */
.lce-acc > summary .lce-totem { opacity: 0; transition: opacity var(--lce-hover); }
.lce-acc[open] > summary .lce-totem { opacity: 1; }
.lce-acc__body { padding: 0 0 var(--lce-space-6); max-width: 68ch; }
.lce-acc__body > * { margin: 0; }
.lce-acc__body > * + * { margin-top: var(--lce-space-4); }
.lce-acc__body p { font-size: clamp(16px, 1.4vw, 18px); line-height: 1.65; }

/* ── Logo grid ───────────────────────────────────────────────────────────── */

/* Partner marks rest in greyscale and take their colour back on hover. */
.lce-logos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}
.lce-logos img {
  max-height: 56px; width: auto; margin-inline: auto;
  filter: grayscale(1); opacity: 0.6;
  transition: filter var(--lce-hover), opacity var(--lce-hover);
}
.lce-logos a:hover img, .lce-logos img:hover { filter: grayscale(0); opacity: 1; }

/* ── Person card ─────────────────────────────────────────────────────────── */

/* Faces are real photographs of real people. Stock portraits are forbidden. */
.lce-person { text-align: left; }
.lce-person img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover;
  border-radius: var(--lce-radius-lg);
  margin-bottom: var(--lce-space-4);
}
.lce-person__name { font-weight: var(--lce-w-head); font-size: 18px; line-height: 1.3; color: var(--lce-ink); margin: 0; }
.lce-person__role { font-size: 15px; line-height: 1.5; color: var(--lce-ink-mid); margin: var(--lce-space-1) 0 0; max-width: 30ch; }

/* ── Motion ──────────────────────────────────────────────────────────────── */

/* Reveal on scroll: 8px up, 400ms, once. Add .is-in from an IntersectionObserver
   (snippet in SKILL.md). Stagger neighbours with --lce-delay: 60ms, 120ms, … */
.lce-reveal {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--lce-reveal-dur) var(--lce-ease),
              transform var(--lce-reveal-dur) var(--lce-ease);
  transition-delay: var(--lce-delay, 0ms);
}
.lce-reveal.is-in { opacity: 1; transform: none; }

/* Hover lift on a photograph. Scale stays at or under 1.02. */
.lce-hover-zoom { overflow: hidden; }
.lce-hover-zoom img { transition: transform 400ms var(--lce-ease); }
.lce-hover-zoom:hover img { transform: scale(1.02); }

/* Reduced motion is not an option, it is the rule. Nothing being read moves. */
@media (prefers-reduced-motion: reduce) {
  .lce-reveal { opacity: 1; transform: none; transition: none; }
  .lce-hover-zoom img, .lce-hover-zoom:hover img { transform: none; transition: none; }
  .lce *, .lce *::before, .lce *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ── Logo lockups ────────────────────────────────────────────────────────── */

.lce-logo { height: 56px; width: auto; }
.lce-logo--sm { height: 36px; }
.lce-logo--lg { height: 88px; }
/* The full-colour lockup never goes on a dark surface: use the mark on its own,
   or the wordmark knocked out to white. */
.lce-surface--moss .lce-wordmark, .lce-surface--image .lce-wordmark { filter: brightness(0) invert(1); }

/* ── Responsive ──────────────────────────────────────────────────────────── */

@media (max-width: 900px) {
  .lce-grid--3, .lce-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  :root { --lce-gutter: 20px; }
  .lce-grid--2, .lce-grid--3, .lce-grid--4 { grid-template-columns: minmax(0, 1fr); }
  .lce-btn { width: 100%; }
  .lce-btn-row { flex-direction: column; align-items: stretch; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   v2 — brand objects, imagery-derived colour, louder rhythm
   Added after the operator asked for a page with more life in it: the molecule
   family from the brandbook scattered across the bands, colour sampled off the
   brand's own imagery collage, and a clearer step between one band and the next.
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  /* Sampled from the brandbook's colour collage — flat values derived from
     photography, exactly as the guide asks. */
  --lce-gorse:   #ebcc11; /* gorse flowers */
  --lce-crocus:  #fab11b; /* crocus */
  --lce-clay:    #be4118; /* fired clay red */
  --lce-navy:    #1a2940; /* deep blue of the perforated panel */
  --lce-navy-lift: #26375a;
  --lce-meadow:  #84a05b; /* meadow grass */
  --lce-forest:  #144a21; /* deep conifer */
  --lce-blossom: #f3aec3; /* cherry blossom */
  --lce-sky:     #86b8e2; /* spring sky */
  --lce-mint-deep: #d8ecdf;
  --lce-ice-deep:  #e4f7fa;
}

/* ── The object layer ────────────────────────────────────────────────────────
   Molecules, rings and strokes lifted from the brandbook sheet. The ink shapes
   are masks, so any of them can take any brand colour; the photographic ones
   keep their own. Never interactive, never announced, always behind the copy. */

.lce-objects {
  position: absolute; inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.lce-object {
  position: absolute;
  display: block;
  width: var(--o-size, 160px);
  aspect-ratio: 1;
  background-color: var(--o-colour, var(--lce-leaf));
  -webkit-mask-image: var(--o-shape);
  mask-image: var(--o-shape);
  -webkit-mask-size: contain; mask-size: contain;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center;
  opacity: var(--o-alpha, 0.12);
  transform: translate3d(0, var(--o-shift, 0px), 0) rotate(var(--o-rot, 0deg));
  transition: transform 600ms var(--lce-ease);
}

.lce-object--photo {
  background: none;
  -webkit-mask-image: none; mask-image: none;
  object-fit: contain;
}

/* Bands hold the layer; their content floats above it. */
/* The band only needs a positioning context: the object layer clips itself.
   Clipping here as well would quietly kill `position: sticky` inside the band. */
.lce-band { position: relative; }
.lce-band > .lce-container,
.lce-band > .lce-section-head,
.lce-band > .lce-prose { position: relative; z-index: 1; }

/* ── Bands read as separate rooms ───────────────────────────────────────── */

.lce-surface--paper { background: var(--lce-paper); }
.lce-surface--mint {
  background: linear-gradient(180deg, var(--lce-mint) 0%, var(--lce-mint-deep) 100%);
}
.lce-surface--ice {
  background: linear-gradient(180deg, var(--lce-ice) 0%, var(--lce-ice-deep) 100%);
}

/* A hairline of brand colour on top of a band — the seam between two rooms. */
.lce-band--seam::before {
  content: "";
  position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg,
    var(--lce-leaf) 0%, var(--lce-gorse) 22%, var(--lce-crocus) 44%,
    var(--lce-teal) 68%, var(--lce-sky) 100%);
  opacity: 0.85;
  z-index: 2;
}

/* ── Eyebrow: a label you can actually see ──────────────────────────────── */

.lce-eyebrow {
  gap: 10px;
  padding: 9px 18px 9px 14px;
  font-size: 13px;
  letter-spacing: 0.16em;
  color: var(--lce-forest);
  background: rgba(142, 176, 64, 0.18);
  border-radius: var(--lce-radius-pill);
  transition: background var(--lce-hover);
}
.lce-eyebrow .lce-totem { width: 20px; height: 20px; color: var(--lce-leaf-deep); transition: transform 400ms var(--lce-ease); }
.lce-eyebrow:hover { background: rgba(142, 176, 64, 0.28); }
.lce-eyebrow:hover .lce-totem { transform: rotate(72deg); }
.lce-surface--moss .lce-eyebrow,
.lce-surface--image .lce-eyebrow,
.lce-surface--night .lce-eyebrow {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
}
.lce-surface--moss .lce-eyebrow .lce-totem,
.lce-surface--image .lce-eyebrow .lce-totem,
.lce-surface--night .lce-eyebrow .lce-totem { color: var(--lce-leaf); }


/* ── The closing band: night blue, so the green mark carries ─────────────── */

.lce-surface--night {
  background:
    radial-gradient(120% 140% at 15% 0%, var(--lce-navy-lift) 0%, var(--lce-navy) 62%),
    var(--lce-navy);
  color: rgba(255, 255, 255, 0.78);
}
.lce-surface--night h1, .lce-surface--night h2, .lce-surface--night h3,
.lce-surface--night .lce-display, .lce-surface--night .lce-h1,
.lce-surface--night .lce-h2, .lce-surface--night .lce-h3 { color: #ffffff; }
.lce-surface--night a { color: #ffffff; }
.lce-surface--night .lce-wordmark { filter: brightness(0) invert(1); }

/* ── A little more life on hover ─────────────────────────────────────────── */

.lce-card--media > img { transition: transform 600ms var(--lce-ease); }
.lce-card--media:hover > img { transform: scale(1.03); }

.lce-prose a:not(.lce-btn) {
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 300ms var(--lce-ease);
}
.lce-prose a:not(.lce-btn):hover { background-size: 100% 1px; }

@media (prefers-reduced-motion: reduce) {
  .lce-object,
  .lce-card--media > img,
  .lce-eyebrow .lce-totem { transition: none !important; transform: none !important; }
}

/* On a phone there is no empty half of the screen to decorate: the photographic
   molecules step aside and the ink ones shrink to a whisper behind the copy. */
@media (max-width: 900px) {
  .lce-object { width: calc(var(--o-size, 160px) * 0.62); opacity: calc(var(--o-alpha, 0.12) * 0.55); }
  .lce-objects .lce-object--photo { display: none !important; }
}

/* ── A logo as a door ────────────────────────────────────────────────────────
   When a page points at a sibling project, the mark does the talking: no title,
   no address, just the logo in a tile that lifts and warms under the cursor.
   Two marks of different proportion are balanced by hand — see the modifiers. */

.lce-logocard {
  position: relative;
  display: grid; place-items: center;
  min-height: 210px;
  padding: clamp(28px, 3.5vw, 48px);
  background: var(--lce-paper);
  border: var(--lce-hairline) solid var(--lce-line);
  border-radius: var(--lce-radius-lg);
  text-decoration: none;
  overflow: hidden;
  transition: transform var(--lce-hover), box-shadow var(--lce-hover), border-color var(--lce-hover);
}

.lce-logocard::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(120% 120% at 50% 120%, rgba(5, 130, 124, 0.1) 0%, rgba(5, 130, 124, 0) 62%);
  opacity: 0;
  transition: opacity var(--lce-hover);
}

.lce-logocard:hover {
  transform: translateY(-3px);
  box-shadow: var(--lce-shadow-lift);
  border-color: var(--lce-teal);
}

.lce-logocard:hover::before { opacity: 1; }

.lce-logocard__logo {
  position: relative;
  width: auto; max-width: 100%;
  object-fit: contain;
  transition: transform 400ms var(--lce-ease);
}

.lce-logocard:hover .lce-logocard__logo { transform: scale(1.035); }

/* Wide lockups are held by width, tall ones by height, so both read the same. */
.lce-logocard--wide .lce-logocard__logo { max-width: 300px; max-height: 92px; }
.lce-logocard--tall .lce-logocard__logo { max-height: 176px; }

@media (prefers-reduced-motion: reduce) {
  .lce-logocard,
  .lce-logocard__logo { transition: none !important; transform: none !important; }
}
