/* ═══════════════════════════════════════════════════════════════
   ALBORA — Administración de Fincas & Conserjería
   Brand system per Brand Guide v1.0
   ═══════════════════════════════════════════════════════════════ */

:root {
  /* VILLESTRA — field & surface grounds, azur acts, brass is line only */
  --field:#E9E6DE;             /* limestone & lime plaster — the ground */
  --surface:#D8D4C9;           /* the same stone in shade — panels */
  --azur:#5E8CAC;              /* the sea at midday — only things that act */
  --deep-azur:#2E4B60;         /* full panels; the mark reverses out of it */
  --ink:#1D2A31;               /* almost black, with a little blue in it */
  --brass:#B2A47A;             /* hairlines & edges — ~1% of a page */

  --sand:var(--field);
  --chalk:var(--surface);
  --fill:#CFCABE;
  --mist:#D9DEE4;
  --seaglass:#C6C2B6;          /* hairlines on stone */
  --eucalyptus:#857F72;        /* labels */
  --apricot:var(--brass);
  --apricot-text:#8A7C50;      /* brass, text-safe on stone */
  --pine:var(--ink);
  --pine-hover:var(--deep-azur);
  --ink-soft:#4A545C;

  --font-display:"Marcellus", Georgia, serif;
  --font-identity:"Marcellus", Georgia, serif;
  --font-text:"Karla", system-ui, sans-serif;
  --font-mono:"Karla", system-ui, sans-serif;
  --space-1:4px; --space-2:8px; --space-3:14px; --space-4:22px;
  --space-5:26px; --space-6:40px; --space-7:64px; --space-8:88px;
  --measure:640px; --page-max:1440px;
  --margin:64px;
  --noise:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}
/* Marcellus has no italic — keep identity moments upright, tracked */
.hero2__title em, .gal__name, .quote__property,
.fcard__hello, .founder__initials { font-style: normal; letter-spacing: 0.04em; }

/* ═══════════════════════════════════════════════════════════════
   Palette B — the earlier sand & pine look, kept for comparison.
   ═══════════════════════════════════════════════════════════════ */
  --mist:#DDE3D9;  --seaglass:#B9C7BA; --eucalyptus:#7E8F72;
  --apricot:#E8B98A; --apricot-text:#C08A52; --pine:#2D3A3A;
  --pine-hover:#3D4C4A;
  --ink-soft:#4B5654;
  --font-identity:"Bodoni Moda",serif;
  --font-display:"Newsreader",serif;
  --font-mono:"JetBrains Mono",monospace;
}
/* Marcellus has no italic — keep identity moments upright, tracked */

/* azur carries actions */
      rgba(113, 145, 184, calc(var(--glow-intensity) * 0.95)) 0%,
      rgba(113, 145, 184, calc(var(--glow-intensity) * 0.45)) 35%,
      transparent 65%);
}
      rgba(113, 145, 184, 0.16) 0%,
      rgba(113, 145, 184, 0.07) 35%,
      transparent 70%);
}

  font-family: "Marcellus", Georgia, serif;
  font-size: clamp(34px, 5vw, 64px);
  letter-spacing: 0.34em;
  color: var(--pine);
  border-top: 1px solid var(--apricot);
  padding-top: 26px;
}
  display: block;
  font-family: "Marcellus", Georgia, serif;
  font-size: 26px;
  letter-spacing: 0.3em;
  color: var(--pine);
  margin-bottom: var(--space-4);
}
/* svg presentation attributes need explicit overrides */

/* the internal A/B switcher chip */

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: auto; }
body {
  margin: 0;
  font-family: var(--font-text);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.75;
  color: var(--pine);
  background: var(--sand);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
button { font: inherit; background: none; border: none; cursor: pointer; color: inherit; }
::selection { background: var(--apricot); color: var(--pine); }
:focus-visible { outline: 2px solid var(--apricot-text); outline-offset: 3px; }

/* ── Type roles ────────────────────────────────────────────── */
h1, h2, h3, .section__title {
  font-family: var(--font-display);
  font-weight: 500;
}
.label {
  font-family: var(--font-text);
  font-weight: 400;
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--eucalyptus);
}
.mono { font-family: var(--font-mono); font-weight: 400; }
.num  { font-family: var(--font-mono); font-size: 12px; color: var(--apricot-text); }
.lead { font-weight: 300; font-size: 18px; line-height: 1.7; max-width: var(--measure); }

a { color: inherit; text-decoration: none; }
p a, .footer a, .contact__detail a, .menu__foot a {
  text-decoration: underline;
  text-decoration-color: var(--seaglass);
  text-underline-offset: 4px;
  transition: text-decoration-color .3s ease;
}
p a:hover, .footer a:hover, .contact__detail a:hover, .menu__foot a:hover {
  text-decoration-color: var(--apricot);
}

/* ── Layout primitives ─────────────────────────────────────── */
.container {
  max-width: var(--page-max);
  margin: 0 auto;
  padding-left: var(--margin);
  padding-right: var(--margin);
}
.section { padding-top: var(--space-8); padding-bottom: var(--space-8); }
.section--sand  { background: var(--sand); }
.section--chalk { background: var(--chalk); }

.section__head { margin-bottom: var(--space-7); }
.section__head .label { margin-bottom: var(--space-3); }
.section__head .num { margin-right: var(--space-3); }
.section__title {
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  max-width: 720px;
}

/* Asset 01 · Line of light */
.lol {
  display: block;
  width: 96px;
  height: 2px;
  background: var(--apricot);
  margin-bottom: var(--space-4);
  transform-origin: left center;
}

/* Asset 02 · Arch crop */
.arch { overflow: hidden; }

/* Asset 03 · The index */
.index__row {
  display: grid;
  grid-template-columns: 40px 220px 1fr;
  align-items: baseline;
  gap: var(--space-3);
  padding: var(--space-4) 0;
  border-top: 1px solid var(--seaglass);
}
.index__row h3 { font-size: 20px; letter-spacing: -0.01em; }
.index__row p  { color: var(--ink-soft); }

/* ── Buttons — square, no radius ───────────────────────────── */
.btn {
  display: inline-block;
  font-family: var(--font-text);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1;
  padding: 17px 28px;
  /* the 44px touch target is the whole box, padding included — as a plain
     min-height it was added to the padding and made every button 78px */
  box-sizing: border-box;
  min-height: 44px;
  text-align: center;
  transition: background .3s ease, color .3s ease, border-color .3s ease;
}
.btn--primary { background: var(--pine); color: var(--sand); }
/* first light — used where a call to action has to lift off a dark ground */
.btn--apricot { background: #E8B98A; color: #1D2A31; }
.btn--apricot:hover { background: #F0C89F; }
.btn--primary:hover { background: var(--pine-hover); }
.btn--outline { border: 1px solid var(--pine); color: var(--pine); padding: 16px 27px; }
.btn--outline:hover { border-color: var(--apricot-text); color: var(--apricot-text); }
.btn--underline { padding: 17px 0; border-bottom: 1px solid var(--seaglass); transition: border-color .3s ease; }
.btn--underline:hover { border-color: var(--apricot); }
.btn--outline-light { border: 1px solid rgba(250, 244, 233, 0.55); color: var(--sand); padding: 16px 27px; }
.btn--outline-light:hover { border-color: var(--apricot); color: var(--apricot); }
.cta-row {
  margin-top: var(--space-6);
  display: flex; align-items: center; gap: var(--space-6);
  flex-wrap: wrap;
}
.night__after-cta { margin-top: var(--space-5); }

/* ═══════════════════════════════════════════════════════════════
   Preloader — the logo writes itself, then flies to the header
   ═══════════════════════════════════════════════════════════════ */
.loader {
  position: fixed; inset: 0; z-index: 200;
  background: var(--sand);
  display: flex; align-items: center; justify-content: center;
}
.loader__logo {
  width: min(38vw, 340px);
  height: auto;
}

/* ═══════════════════════════════════════════════════════════════
   Cursor & scroll-progress sun
   ═══════════════════════════════════════════════════════════════ */
/* The custom cursor is the ring that appears over interactive elements
   only. At rest it carries no fill: the small dot that used to trail the
   pointer lagged 0.18s behind it by design, which read as a stray mark
   rather than a cursor. */
.cursor {
  position: fixed; top: 0; left: 0; z-index: 300;
  width: 10px; height: 10px; border-radius: 50%;
  background: transparent;
  pointer-events: none;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: width .25s ease, height .25s ease, background .25s ease, opacity .3s ease;
}
.cursor.is-active {
  width: 40px; height: 40px;
  background: transparent;
  border: 1px solid var(--apricot-text);
}
@media (pointer: coarse) { .cursor { display: none; } }

.progress {
  position: fixed; right: 28px; bottom: 22px; z-index: 90;
  width: 120px;
  opacity: 0;
  transition: opacity .5s ease;
  pointer-events: none;
}
.progress.is-visible { opacity: 1; }
@media (max-width: 900px) { .progress { display: none; } }

/* ═══════════════════════════════════════════════════════════════
   Header
   ═══════════════════════════════════════════════════════════════ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .4s ease, transform .4s ease, border-color .4s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  /* the bar carries the page's own light rather than a cream panel of its
     own — at the old value it read as a rectangle drawn round the mark */
  background: rgba(233,230,222, 0.86);
  background: color-mix(in srgb, var(--field) 86%, transparent);
  backdrop-filter: blur(10px);
  border-bottom-color: transparent;
}
.nav.is-hidden { transform: translateY(-100%); }
.nav__inner {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 var(--margin);
  height: 84px;
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-6);
}
.nav__logo-img { height: 46px; width: auto; }
.nav__links { display: flex; gap: var(--space-6); }
.nav__links a {
  font-weight: 400; font-size: 11px;
  letter-spacing: 0.18em; text-transform: uppercase;
  padding: var(--space-2) 0;
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease;
}
.nav__links a:hover { border-bottom-color: var(--apricot); }
.nav__num { font-size: 9px; color: var(--apricot-text); margin-right: 6px; vertical-align: 2px; }
.nav__actions { display: flex; align-items: center; gap: var(--space-4); }
.nav__cta { padding: 13px 22px; min-height: 0; }

/* ── the language switch: a flag that opens the four options ── */
.langsw { position: relative; display: inline-flex; }
.langsw__current {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  background: none;
  border: 0;
  padding: 6px 4px;
  cursor: pointer;
  color: inherit;
  font: inherit;
  line-height: 1;
}
.langsw__flag {
  width: 30px; height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  overflow: hidden;
  background: rgba(29,42,49, 0.08);
  background: color-mix(in srgb, var(--pine) 8%, transparent);
  border: 1px solid var(--seaglass);
  transition: border-color .3s ease, transform .3s ease;
  flex: 0 0 auto;
}
.langsw__code {
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--eucalyptus);
  transition: color .3s ease;
}
.langsw:hover .langsw__current .langsw__flag,
.langsw__current:focus-visible .langsw__flag { border-color: var(--apricot-text); transform: scale(1.06); }
.langsw:hover .langsw__code { color: var(--apricot-text); }
.langsw__current:focus-visible { outline: 2px solid var(--apricot-text); outline-offset: 3px; }

/* the options, hung under the flag */
.langsw__menu {
  position: absolute;
  top: 100%; right: 0;
  margin: 0; padding: 6px;
  list-style: none;
  min-width: 168px;
  background: var(--chalk);
  border: 1px solid var(--seaglass);
  box-shadow: 0 18px 40px -20px rgba(29, 42, 49, 0.45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .22s ease, transform .22s ease, visibility .22s;
  z-index: 120;
}
/* a bridge across the gap, so the pointer can travel to the menu */
.langsw::after {
  content: "";
  position: absolute;
  top: 100%; right: 0;
  width: 100%; height: 12px;
}
.langsw:hover .langsw__menu,
.langsw:focus-within .langsw__menu,
.langsw.is-open .langsw__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.langsw__opt {
  display: flex;
  align-items: center;
  gap: .7em;
  width: 100%;
  padding: 7px 9px;
  background: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  text-align: left;
  color: var(--pine);
  transition: background .2s ease;
}
.langsw__opt:hover,
.langsw__opt:focus-visible { background: rgba(29,42,49, 0.06);
  background: color-mix(in srgb, var(--pine) 6%, transparent); outline: none; }
.langsw__opt .langsw__flag { width: 24px; height: 24px; font-size: 14px; }
.langsw__name { font-size: 13px; letter-spacing: 0.01em; }
.langsw__opt[aria-current="true"] .langsw__name { color: var(--apricot-text); }
.langsw__opt[aria-current="true"] .langsw__flag { border-color: var(--apricot-text); }

/* over the hero film the closed state reads light, like the rest of the bar */
.nav--overlay:not(.is-scrolled) .langsw__current .langsw__flag {
  background: rgba(250, 244, 233, 0.14);
  border-color: rgba(250, 244, 233, 0.45);
}
.nav--overlay:not(.is-scrolled) .langsw__code { color: var(--sand); }

@media (max-width: 900px) {
  .langsw__code { display: none; }
  .langsw__current { padding: 6px 2px; }
  .langsw__menu { min-width: 152px; }
}

.nav__burger {
  display: none;
  width: 44px; height: 44px;
  flex-direction: column; align-items: center; justify-content: center; gap: 6px;
}
.nav__burger span { display: block; width: 24px; height: 1px; background: var(--pine); transition: transform .3s ease; }
.nav__burger[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child  { transform: translateY(-3.5px) rotate(-45deg); }

/* Mobile menu */
.menu {
  position: fixed; inset: 0; z-index: 90;
  background: var(--sand);
  display: flex; flex-direction: column; justify-content: center;
  padding: var(--space-7) 24px var(--space-6);
  opacity: 0; visibility: hidden;
}
.menu__links { display: flex; flex-direction: column; }
.menu__links a {
  font-family: var(--font-display); font-weight: 500;
  font-size: 30px; letter-spacing: -0.015em;
  padding: var(--space-4) 0;
  border-top: 1px solid var(--seaglass);
}
.menu__links a:last-child { border-bottom: 1px solid var(--seaglass); }
.menu__links .mono { font-size: 12px; color: var(--apricot-text); margin-right: var(--space-3); vertical-align: 8px; }
.menu__foot { margin-top: var(--space-7); display: flex; justify-content: space-between; align-items: baseline; }
.menu__foot .mono { font-size: 10px; letter-spacing: 0.18em; color: var(--eucalyptus); }

/* ═══════════════════════════════════════════════════════════════
   Film placeholders (arch media) — swap for real footage later
   ═══════════════════════════════════════════════════════════════ */
.film { position: relative; }
.film__frame { position: absolute; inset: 0; }
.film__frame::before {
  content: "";
  position: absolute; inset: 0;
  background-image: var(--noise);
  opacity: 0.14;
  mix-blend-mode: soft-light;
}
.film__frame::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 30%;
  height: 1px;
  background: rgba(250, 244, 233, 0.5);
}
.film__sun {
  position: absolute; left: 50%; bottom: 30%;
  width: 15%; aspect-ratio: 1;
  transform: translate(-50%, 50%);
  border-radius: 50%;
  background: var(--apricot);
}
.film__sun::after {
  content: "";
  position: absolute; left: 50%; top: 118%;
  width: 120%; height: 8%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: rgba(232, 185, 138, 0.45);
}
.film__frame--app { background: linear-gradient(180deg, #4B5654 0%, #7E8F72 40%, #B9C7BA 62%, #E8B98A 82%, #FAF4E9 100%); }
.film__frame--dev { background: linear-gradient(180deg, #2D3A3A 0%, #4B5654 42%, #C08A52 74%, #E8B98A 88%, #EDE3D0 100%); }
.film__tag {
  position: absolute; left: var(--space-3); bottom: var(--space-3);
  z-index: 2;
  font-size: 10px; letter-spacing: 0.12em;
  color: var(--pine);
  background: rgba(250, 244, 233, 0.88);
  padding: 6px 10px;
}
.film__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }

/* ═══════════════════════════════════════════════════════════════
   Hero 2 — the film, held (index)
   ═══════════════════════════════════════════════════════════════ */
.hero2 {
  position: relative;
  height: 100vh;
  min-height: 620px;
  overflow: hidden;
  /* the ground under the film is the exact opening light of the section
     that follows (07:00 · #EDEAE1), so the frame dissolves straight into
     the next page with no seam at all */
  background: #EDEAE1;
  display: flex; align-items: center; justify-content: center;
}
.hero2__bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  /* a touch of soft focus so the type carries the frame; scaled up so the
     blur's feathered edge never reaches the viewport border */
  filter: blur(1px);
  transform: scale(1.03);
  transform-origin: center;
}
.hero2__grade {
  position: absolute; inset: 0;
  background:
    /* a genuine brass wash — a real, almost transparent layer of the brand
       colour laid over the film, not a saturation trick on the video */
    linear-gradient(180deg, rgba(178, 164, 122, 0.07) 0%, rgba(178, 164, 122, 0.05) 100%),
    linear-gradient(180deg, rgba(45, 58, 58, 0.45) 0%, rgba(45, 58, 58, 0.12) 30%, rgba(45, 58, 58, 0.18) 65%, rgba(45, 58, 58, 0.55) 100%),
    radial-gradient(ellipse 90% 70% at 50% 50%, rgba(45, 58, 58, 0.28) 0%, rgba(45, 58, 58, 0) 60%);
  pointer-events: none;
}
.hero2__content {
  position: relative; z-index: 2;
  text-align: center;
  padding: 0 24px;
  max-width: 1040px;
}
.hero2__kicker { color: var(--sand); margin-bottom: var(--space-5); }
/* the eyebrow sits on its own deep-azur plate */
/* Marcellus has no Cyrillic, so a Russian page would silently fall back to
   a system serif. Cormorant Garamond carries Cyrillic and sits close in
   feel, and is only used where the language needs it. */
:root[lang="ru"] {
  --font-display: "Cormorant Garamond", "Marcellus", Georgia, serif;
  --font-identity: "Cormorant Garamond", "Marcellus", Georgia, serif;
}
:root[lang="ru"] .hero2__title,
:root[lang="ru"] .section__title,
:root[lang="ru"] .ehour__title,
:root[lang="ru"] .devs__title,
:root[lang="ru"] .conc__title { font-weight: 500; letter-spacing: -0.005em; }

.label--plate {
  display: inline-block;
  padding: 8px 17px;
  background: rgba(46,75,96, 0.84);
  background: color-mix(in srgb, var(--deep-azur, #2E4B60) 84%, transparent);
  color: #F6F8FA;
  font-size: 11px;
  letter-spacing: 0.18em;
  opacity: 1;
}
@media (max-width: 760px) {
  /* Marcellus has no Cyrillic, so a Russian page would silently fall back to
   a system serif. Cormorant Garamond carries Cyrillic and sits close in
   feel, and is only used where the language needs it. */
:root[lang="ru"] {
  --font-display: "Cormorant Garamond", "Marcellus", Georgia, serif;
  --font-identity: "Cormorant Garamond", "Marcellus", Georgia, serif;
}
:root[lang="ru"] .hero2__title,
:root[lang="ru"] .section__title,
:root[lang="ru"] .ehour__title,
:root[lang="ru"] .devs__title,
:root[lang="ru"] .conc__title { font-weight: 500; letter-spacing: -0.005em; }

.label--plate { padding: 6px 12px; font-size: 9px; letter-spacing: 0.14em; }
}
.hero2__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(38px, 5.2vw, 78px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--sand);
  text-wrap: balance;
}
.hero2__title em {
  display: block;
  font-family: var(--font-identity);
  font-style: italic;
  font-weight: 400;
  font-size: 0.52em;
  letter-spacing: 0.01em;
  color: var(--apricot);
  margin-top: 0.18em;
}
.hero2__sub {
  margin: var(--space-5) auto 0;
  max-width: 30em;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(17px, 1.55vw, 23px);
  line-height: 1.5;
  letter-spacing: 0.005em;
  color: var(--sand);
  opacity: 0.9;
  text-wrap: balance;
}
.hero2__sub em {
  font-family: inherit;
  font-style: inherit;
  color: inherit;
}
.hero2__pill { margin-top: var(--space-6); }
.btn--pill {
  display: inline-block;
  font-family: var(--font-text);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sand);
  border: 1px solid rgba(250, 244, 233, 0.55);
  border-radius: 999px;
  padding: 15px 34px;
  transition: background .35s ease, border-color .35s ease, color .35s ease;
}
.btn--pill:hover, .btn--pill:focus-visible {
  background: rgba(250, 244, 233, 0.12);
  border-color: var(--sand);
  outline: none;
}
.hero2__cue {
  position: absolute; bottom: 34px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  font-size: 10px; letter-spacing: 0.34em;
  color: rgba(250, 244, 233, 0.65);
}

/* nav over dark film: sand text + light logo until scrolled */
.nav__logo-img--light { display: none; }
.nav--overlay:not(.is-scrolled) .nav__logo-img--dark { display: none; }
.nav--overlay:not(.is-scrolled) .nav__logo-img--light { display: block; }
.nav--overlay:not(.is-scrolled) .nav__links a { color: var(--sand); }
.nav--overlay:not(.is-scrolled) .nav__num { color: var(--apricot); }
.nav--overlay:not(.is-scrolled) .nav__burger span { background: var(--sand); }
.nav--overlay:not(.is-scrolled) .nav__cta { background: rgba(250, 244, 233, 0.14); }

/* ═══════════════════════════════════════════════════════════════
   The Experience — the door, and the white veil through it
   ═══════════════════════════════════════════════════════════════ */
.exp {
  position: relative;
  height: 100vh;
  min-height: 620px;
  overflow: hidden;
  background: var(--sand);
  display: flex; align-items: center; justify-content: center;
}
.exp__content {
  position: relative; z-index: 2;
  text-align: center;
  padding: 0 24px;
  max-width: 900px;
}
.exp__figure {
  position: relative;
  width: min(280px, 52vw);
  aspect-ratio: 4 / 5;
  margin: var(--space-6) auto 0;
  border-radius: 50% 50% 0 0 / 40% 40% 0 0;
  overflow: hidden;
  background: linear-gradient(180deg, #7E8F72 0%, #B9C7BA 45%, #E8B98A 82%, #EDE3D0 100%);
}
.exp__figure video, .exp__figure img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.exp__chip {
  display: inline-block;
  background: var(--apricot);
  color: var(--pine);
  font-family: var(--font-text);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 9px 16px;
  margin-bottom: var(--space-5);
}
.exp__sub {
  margin: var(--space-4) auto 0;
  max-width: 560px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-soft);
}
.exp__line {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(32px, 4.6vw, 64px);
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--pine);
  text-wrap: balance;
  will-change: transform;
}
.exp__hint {
  margin-top: var(--space-6);
  font-size: 10px; letter-spacing: 0.34em;
  color: var(--eucalyptus);
}

.veil {
  position: fixed; inset: 0;
  background: #FFFFFF;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 150;
}

/* ═══════════════════════════════════════════════════════════════
   Hero — the film lives inside the letters
   ═══════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 150px 0 var(--space-8);
}
.hero > .container { width: 100%; }   /* auto margins must not shrink-wrap flex children */
.hero { isolation: isolate; }
.hero__filmbg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  z-index: -1;
  pointer-events: none;
}
.hero__head { width: 100%; }
.hero__kicker { margin-bottom: var(--space-5); }
.hero__title {
  font-size: clamp(42px, 6.6vw, 102px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  max-width: 15ch;
}
/* index lockup: one monumental word, answered in Bodoni italic */
.hero__title--split { max-width: none; font-size: 1em; }
.hero__word {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(58px, 10.6vw, 158px);
  line-height: 0.98;
  letter-spacing: -0.03em;
}
.hero__title2 {
  display: block;
  font-family: var(--font-identity);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(26px, 3.4vw, 50px);
  line-height: 1.15;
  letter-spacing: 0.01em;
  color: var(--pine);
  margin: clamp(8px, 1.4vw, 20px) 0 0 clamp(48px, 30vw, 460px);
}

/* Masked headline — media clipped by the glyphs */
.masked { position: relative; }
.masked.is-on .masked__measure { color: transparent; }
.masked__measure { position: relative; z-index: 1; }
.masked__word { display: inline-block; white-space: pre; }
.masked__base { display: inline-block; width: 0; height: 0; }
.masked__defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.masked__layer {
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: 0;
}
.masked.is-on .masked__layer { opacity: 1; }
.masked__clip { position: absolute; inset: 0; }
.masked__zoom { position: absolute; inset: 0; will-change: transform; }
.masked__media {
  --tint: 1;
  position: absolute; inset: -12%;
  will-change: transform;
  background:
    radial-gradient(ellipse 42% 30% at 72% 68%, rgba(192, 138, 82, 0.7) 0%, rgba(192, 138, 82, 0) 70%),
    linear-gradient(180deg, #2D3A3A 0%, #3D4C4A 40%, #5C6B60 62%, #7E8F72 78%, #C08A52 92%, #B57F47 100%);
}
.masked__media::before {           /* pine tint up top keeps the first line legible */
  content: "";
  position: absolute; inset: 0;
  z-index: 2;
  background: linear-gradient(180deg,
      rgba(45, 58, 58, 0.6) 0%,
      rgba(45, 58, 58, 0.3) 42%,
      rgba(192, 138, 82, 0.08) 68%,
      rgba(192, 138, 82, 0) 85%);
  opacity: var(--tint, 1);
  pointer-events: none;
}
/* portal hero: the letters are a literal window — no grade, no crop bias.
   A heavier tint keeps the type reading as dark glass until the dive begins. */
.masked--still .masked__video { object-position: 50% 50%; filter: none; }
.masked--still .masked__media::before {
  background: linear-gradient(180deg,
      rgba(45, 58, 58, 0.82) 0%,
      rgba(45, 58, 58, 0.62) 48%,
      rgba(45, 58, 58, 0.42) 100%);
}
.masked__media::after {
  content: "";
  position: absolute; inset: 0;
  z-index: 3;
  background-image: var(--noise);
  opacity: 0.12;
  mix-blend-mode: soft-light;
}
.masked__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 72%;        /* bias toward the warm horizon band */
  filter: brightness(0.94) contrast(1.16) saturate(1.5);
  z-index: 1;
}

/* The horizon rule that sits under the headline — logo geometry, page-wide */
.hero__horizon {
  width: 100%;
  height: clamp(60px, 9vw, 130px);
  margin-top: calc(-1 * var(--space-4));
}
.hero__below { margin-top: var(--space-5); }
.hero__copy { max-width: 560px; }
.hero__lol { margin-bottom: var(--space-5); }
.hero__lead { margin-bottom: var(--space-6); }
.hero__ctas { display: flex; align-items: center; gap: var(--space-6); flex-wrap: wrap; }

.hero__scrollcue {
  position: absolute; left: var(--margin); bottom: var(--space-6);
  display: flex; align-items: center; gap: var(--space-3);
}
.hero__scrollcue .mono { font-size: 10px; letter-spacing: 0.3em; color: var(--eucalyptus); }
.hero__scrollline { width: 56px; height: 1px; background: var(--seaglass); position: relative; overflow: hidden; }
.hero__scrollline::after {
  content: "";
  position: absolute; top: 0; left: 0;
  width: 40%; height: 100%;
  background: var(--apricot);
  animation: scrollcue 2.4s ease-in-out infinite;
}
@keyframes scrollcue {
  0%   { transform: translateX(-110%); }
  55%  { transform: translateX(280%); }
  100% { transform: translateX(280%); }
}

/* ═══════════════════════════════════════════════════════════════
   01 · The idea — word-by-word scroll reveal
   ═══════════════════════════════════════════════════════════════ */
.idea__text {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(26px, 3.2vw, 40px);
  line-height: 1.4;
  letter-spacing: -0.01em;
  max-width: 880px;
}
.idea__text .word { color: rgba(45, 58, 58, 0.15); }

/* Founders — a letter from the two of us, lying on the drawing board */
.idea { position: relative; }
.idea__head { margin-bottom: var(--space-6); }
.idea__sub { color: var(--ink-soft); margin-top: var(--space-2); }

/* architectural frame lines on the backdrop */
.frame__line {
  position: absolute; left: 24px; right: 24px;
  height: 1px;
  background: rgba(185, 199, 186, 0.55);
}
.frame__line--top { top: 56px; }
.frame__line--bottom { bottom: 56px; }
.frame__tick {
  position: absolute;
  width: 1px; height: 16px;
  background: rgba(185, 199, 186, 0.8);
}
.frame__tick--tl { top: 49px; left: 10%; }
.frame__tick--tr { top: 49px; right: 10%; }
.frame__tick--bl { bottom: 49px; left: 10%; }
.frame__tick--br { bottom: 49px; right: 10%; }

.fcard {
  position: relative;
  max-width: 940px;
  margin: 0 auto;
}
.fcard__bg { width: 100%; height: auto; display: block; }
.fcard__content {
  position: absolute;
  left: 7.5%; top: 8%; bottom: 11%;
  width: 50%;
  transform: rotate(-1.4deg);
  transform-origin: top left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.fcard__wave { font-style: normal; font-size: 0.85em; }
.fcard__foot { margin-top: var(--space-4); }
.fcard__hello {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(26px, 2.8vw, 40px);
  letter-spacing: -0.015em;
  margin-bottom: var(--space-3);
}
.fcard__intro { color: var(--pine); margin-bottom: var(--space-4); }
.fcard__p {
  color: var(--ink-soft);
  line-height: 1.65;
  margin-bottom: var(--space-3);
}
.fcard__sigs {
  display: flex;
  gap: var(--space-6);
  margin-bottom: var(--space-4);
  flex-wrap: wrap;
}
.fcard__sig svg { width: 168px; height: auto; }
.fcard__sig .label { font-size: 9px; }
.fcard__cta {
  display: flex; align-items: center; gap: var(--space-5);
  flex-wrap: wrap;
}
.fcard__cta .btn--primary { padding: 14px 22px; min-height: 0; }
.fcard__cta .btn--underline { padding: 8px 0; text-transform: none; letter-spacing: 0.04em; font-size: 13px; }

@media (max-width: 1100px) {
  .fcard__p { font-size: 13px; line-height: 1.55; margin-bottom: var(--space-2); }
  .fcard__hello { margin-bottom: var(--space-2); }
  .fcard__sig svg { width: 130px; }
  .fcard__sigs { gap: var(--space-4); }
}
@media (max-width: 900px) {
  .fcard__content {
    position: static;
    width: auto;
    transform: none;
    background: #fff;
    border: 1px solid var(--seaglass);
    padding: var(--space-5);
    margin-bottom: var(--space-3);
  }
  .fcard__p { font-size: 15px; line-height: 1.65; }
  .frame__tick { display: none; }
}

/* ═══════════════════════════════════════════════════════════════
   02 · Services — the tile grid, ported from the moments design.
   Static by intent: every explainer is shown at rest. No hover,
   no spotlight, no transitions.
   ═══════════════════════════════════════════════════════════════ */
#bento.bento {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: clamp(150px, 21vh, 220px);
  grid-template-areas:
    "lead lead m2 m3"
    "lead lead m4 m5"
    "m6 m7 m8 m8";
}
#bento .bento__card:nth-child(1) { grid-area: lead; }
#bento .bento__card:nth-child(2) { grid-area: m2; }
#bento .bento__card:nth-child(3) { grid-area: m3; }
#bento .bento__card:nth-child(4) { grid-area: m4; }
#bento .bento__card:nth-child(5) { grid-area: m5; }
#bento .bento__card:nth-child(6) { grid-area: m6; }
#bento .bento__card:nth-child(7) { grid-area: m7; }
#bento .bento__card:nth-child(8) { grid-area: m8; }

#bento .bento__card {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  isolation: isolate;
}

/* the photograph (or its stand-in gradient) */
#bento .bento__media {
  position: absolute; inset: 0;
  display: block;
  background: linear-gradient(165deg, #2E4B60 0%, #4A6A80 40%, #B2A47A 82%, #D8D4C9 100%);
  transform: scale(1);
  transition: transform 900ms cubic-bezier(0.22, 1, 0.36, 1);
}
#bento .bento__card:nth-child(2) .bento__media { background: linear-gradient(150deg, #3A5A70 0%, #5E8CAC 46%, #C3B78F 88%, #E9E6DE 100%); }
#bento .bento__card:nth-child(3) .bento__media { background: linear-gradient(190deg, #1D2A31 0%, #2E4B60 52%, #4A6A80 100%); }
#bento .bento__card:nth-child(4) .bento__media { background: linear-gradient(140deg, #1D2A31 0%, #24333C 55%, #4A6A80 100%); }
#bento .bento__card:nth-child(5) .bento__media { background: linear-gradient(170deg, #2E4B60 0%, #5E8CAC 42%, #B2A47A 86%, #E9E6DE 100%); }
#bento .bento__card:nth-child(6) .bento__media { background: linear-gradient(155deg, #4A6A80 0%, #5E8CAC 44%, #C3B78F 90%, #E9E6DE 100%); }
#bento .bento__card:nth-child(7) .bento__media { background: linear-gradient(175deg, #2E4B60 0%, #4A6A80 48%, #B2A47A 88%, #D8D4C9 100%); }
#bento .bento__card:nth-child(8) .bento__media { background: linear-gradient(145deg, #1D2A31 0%, #2E4B60 58%, #5E8CAC 100%); }
#bento .bento__media > img,
#bento .bento__media > video {
  /* held back a touch — at full strength the pictures pull focus from the
     captions and the grid reads as eight competing photographs */
  filter: brightness(0.86) saturate(0.92);
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

/* a permanent foot of shade so the standing caption always reads */
#bento .bento__card::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(29, 42, 49, 0.62) 0%, rgba(29, 42, 49, 0.12) 34%, rgba(29, 42, 49, 0) 58%);
  z-index: 1;
  pointer-events: none;
  transition: opacity 600ms ease;
}

/* the veil: deep azur at the foot, dissolving to nothing at the top.
   It waits just below the tile and is drawn up on hover. */
#bento .bento__veil {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(0deg,
      rgba(46, 75, 96, 0.97) 0%,
      rgba(46, 75, 96, 0.92) 34%,
      rgba(46, 75, 96, 0.72) 62%,
      rgba(94, 140, 172, 0.32) 84%,
      rgba(94, 140, 172, 0) 100%);
  transform: translateY(100%);
  transition: transform 720ms cubic-bezier(0.22, 1, 0.36, 1);
}

#bento .bento__body {
  position: absolute; left: 0; right: 0; bottom: 0;
  z-index: 3;
  /* the plate sits into the bottom-left corner, held off the edge */
  padding: var(--space-5) var(--space-5) var(--space-5) var(--space-5);
  text-align: left;
}
#bento .bento__copy {
  position: relative;
  transform: translateY(0);
  transition: transform 720ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* the caption plate */
#bento .bento__name {
  display: inline-block;
  max-width: 100%;
  padding: 8px 15px;
  background: rgba(46, 75, 96, 0.94);
  font-family: var(--font-text);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #F6F8FA;
  margin-bottom: var(--space-3);
}

/* the explainer is taken out of flow so it reserves no space at rest —
   the caption sits at the foot of the tile until hover lifts it. */
#bento .bento__reveal {
  position: absolute;
  left: 0; right: 0;
  top: 100%;
  margin-top: var(--space-3);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 420ms ease 120ms,
              transform 720ms cubic-bezier(0.22, 1, 0.36, 1) 60ms;
}
#bento .bento__desc {
  max-width: 46ch;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(233, 230, 222, 0.92);
  margin-bottom: var(--space-2);
}
#bento .bento__agents {
  font-size: 9px;
  letter-spacing: 0.14em;
  color: rgba(233, 230, 222, 0.62);
}

/* ── the hover: veil rises, caption is pulled up, the explainer follows ── */
#bento .bento__card:hover .bento__veil,
#bento .bento__card:focus-within .bento__veil { transform: translateY(0); }

#bento .bento__card:hover .bento__copy,
#bento .bento__card:focus-within .bento__copy { transform: translateY(calc(-1 * var(--bento-lift, 0px))); }

#bento .bento__card:hover .bento__reveal,
#bento .bento__card:focus-within .bento__reveal { opacity: 1; transform: translateY(0); }

#bento .bento__card:hover .bento__media,
#bento .bento__card:focus-within .bento__media { transform: scale(1.045); }

#bento .bento__card:hover::before,
#bento .bento__card:focus-within::before { opacity: 0; }

/* the lead tile carries more room, so its copy can breathe */
#bento .bento__card--lead .bento__body { padding: var(--space-6); }
#bento .bento__card--lead .bento__name { font-size: 15px; padding: 8px 16px; }
#bento .bento__card--lead .bento__desc { font-size: 15px; max-width: 40ch; }

.services__lead { margin-top: var(--space-4); max-width: none; }
/* the grid section holds a screen and fades up as the card arrives, so it
   does not present itself as a wall the moment the estate lets go */
.services {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
html.has-morph .services { opacity: 0; transition: opacity .1s linear; }
.services__note {
  margin-top: var(--space-5);
  font-size: 13px;
  color: var(--eucalyptus);
  max-width: 560px;
}

@media (max-width: 1080px) {
  #bento.bento {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 200px;
    grid-template-areas:
      "lead lead"
      "m2 m3"
      "m4 m5"
      "m6 m7"
      "m8 m8";
  }
}
@media (max-width: 640px) {
  #bento.bento {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    grid-template-areas: "lead" "m2" "m3" "m4" "m5" "m6" "m7" "m8";
  }
  #bento .bento__card { min-height: 190px; }
  /* no hover on touch: the explainer is simply always shown, back in flow */
  #bento .bento__reveal { position: static; opacity: 1; transform: none; margin-top: var(--space-3); }
  #bento .bento__veil { transform: translateY(0); }
  #bento .bento__copy { transform: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  #bento .bento__veil, #bento .bento__copy,
  #bento .bento__reveal, #bento .bento__media { transition-duration: 1ms; }
}

/* ═══════════════════════════════════════════════════════════════
   A thin strip of a call to action — one line, no section weight.
   ═══════════════════════════════════════════════════════════════ */
.strip {
  display: block;
  background: var(--pine);
  color: var(--sand);
}
.strip__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  padding-top: var(--space-4);
  padding-bottom: var(--space-4);
  flex-wrap: wrap;
}
.strip__text {
  font-family: var(--font-display);
  font-size: clamp(15px, 1.35vw, 20px);
  line-height: 1.3;
  color: var(--sand);
  margin: 0;
}
.strip__cta {
  background: var(--sand);
  color: var(--pine);
  flex: 0 0 auto;
}
.strip__cta:hover { background: #FFFFFF; }

@media (max-width: 640px) {
  .strip__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-4);
    padding-top: var(--space-5);
    padding-bottom: var(--space-5);
  }
  .strip__cta { width: 100%; }
}

/* ═══════════════════════════════════════════════════════════════
   Conserjería — the quiet between. After the density of the grid and
   before the film, the eye is given somewhere to rest: one picture,
   one thought, and a great deal of air.
   ═══════════════════════════════════════════════════════════════ */
.conc {
  background: var(--field);
  /* generous air on both sides — this section exists to let the eye rest
     between the density of the grid and the film that follows */
  padding-top: clamp(140px, 19vw, 260px);
  padding-bottom: clamp(140px, 19vw, 260px);
}
.conc__inner { text-align: center; }

.conc__head { max-width: 44rem; margin: 0 auto; }
.conc__head .lol { display: block; margin: 0 auto var(--space-4); }
.conc__head .label { margin-bottom: var(--space-4); }
.conc__head .label .num { margin-right: .7em; }
.conc__title {
  font-family: var(--font-display);
  font-size: clamp(32px, 3.6vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.015em;
}
.conc__lead {
  margin-top: var(--space-5);
  font-size: clamp(15px, 1.15vw, 18px);
  line-height: 1.72;
  color: var(--ink-soft);
}

/* three quiet columns, divided by brass hairlines only */
.conc__list {
  list-style: none;
  margin: clamp(64px, 9vw, 120px) auto 0;
  padding: 0;
  max-width: 78rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
}
.conc__item {
  padding: var(--space-5) clamp(1.2rem, 3vw, 3rem);
  text-align: left;
  border-left: 1px solid rgba(178,164,122,0.34);
  border-left: 1px solid color-mix(in srgb, var(--brass) 34%, transparent);
}
.conc__item:first-child { border-left: 0; }
.conc__num {
  display: block;
  font-size: 10px;
  letter-spacing: 0.24em;
  color: var(--apricot-text);
  margin-bottom: var(--space-4);
}
.conc__item h3 {
  font-family: var(--font-display);
  font-size: clamp(17px, 1.45vw, 22px);
  line-height: 1.2;
  margin-bottom: var(--space-3);
}
.conc__item p { font-size: 14px; line-height: 1.65; color: var(--ink-soft); }

.conc__foot {
  margin: clamp(56px, 8vw, 104px) auto 0;
  max-width: 40rem;
  font-size: 13px;
  line-height: 1.7;
  color: var(--eucalyptus);
}

@media (max-width: 860px) {
  .conc__list { grid-template-columns: 1fr; max-width: 34rem; }
  .conc__item {
    border-left: 0;
    border-top: 1px solid rgba(178,164,122,0.34);
    border-top: 1px solid color-mix(in srgb, var(--brass) 34%, transparent);
    padding-left: 0; padding-right: 0;
  }
  .conc__item:first-child { border-top: 0; }
}

/* ═══════════════════════════════════════════════════════════════
   07 · For developers — the flyover carries the section.
   ═══════════════════════════════════════════════════════════════ */
.devs {
  position: relative;
  overflow: hidden;
  background: var(--ink, #1D2A31);
  color: #F1EFEA;
  padding-top: var(--space-7);
  padding-bottom: var(--space-7);
}
.devs__film {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.devs__grade {
  position: absolute; inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(29,42,49,.86) 0%, rgba(29,42,49,.62) 42%, rgba(29,42,49,.90) 100%),
    linear-gradient(90deg, rgba(29,42,49,.70) 0%, rgba(29,42,49,.20) 60%);
}
.devs__inner { position: relative; z-index: 2; }
.devs__head { max-width: 100rem; }
.devs .lol { background: var(--brass, #B2A47A); }
.label--onfilm { color: rgba(241,239,234,.72); }
.label--onfilm .num { margin-right: .7em; color: var(--brass, #B2A47A); }
.devs__title {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.4vw, 50px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin-top: var(--space-3);
  color: #F6F4EF;
}
.devs__lead {
  margin-top: var(--space-4);
  font-size: clamp(15px, 1.15vw, 18px);
  line-height: 1.7;
  color: rgba(241,239,234,.86);
  max-width: 50rem;
}
.devs__pillars {
  margin-top: var(--space-6);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.4rem, 3vw, 3rem);
}
.devs__pillar { border-top: 1px solid rgba(178,164,122,.5); padding-top: var(--space-4); }
.devs__pillar h3 {
  font-family: var(--font-display);
  font-size: clamp(18px, 1.5vw, 23px);
  letter-spacing: -0.005em;
  color: #F6F4EF;
  margin-bottom: var(--space-3);
}
.devs__pillar p { font-size: 14px; line-height: 1.62; color: rgba(241,239,234,.80); }
.devs__foot {
  margin-top: var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  flex-wrap: wrap;
  border-top: 1px solid rgba(241,239,234,.18);
  padding-top: var(--space-5);
}
.devs__note { font-size: 14px; line-height: 1.6; color: rgba(241,239,234,.78); max-width: 44rem; }

@media (max-width: 900px) {
  .devs__pillars { grid-template-columns: 1fr; gap: var(--space-5); }
  .devs__foot { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .devs__film { display: none; }
}

/* ═══════════════════════════════════════════════════════════════
   03 · One day on the estate — the drawn compound, lit hour by hour.
   Ported 1:1 from the "One day on the estate" concept: the story
   column scrolls, the plan is sticky beside it, and each hour lights
   its own spots, routes and photograph on the drawing.
   ═══════════════════════════════════════════════════════════════ */
.estate {
  /* the live values are written by main.js as the day passes; the tokens
     below are the fallback for no-JS and reduced motion */
  --e-accent: var(--e-accent-live, var(--azur, #5E8CAC));
  --e-brass: var(--brass, #B2A47A);
  --e-fg: var(--e-fg-live, var(--pine, #1D2A31));
  --e-field: var(--e-field-live, var(--chalk, #D8D4C9));
  background: var(--e-field);
  color: var(--e-fg);
  transition: background-color .5s linear, color .5s linear;
  --e-fg-60: rgba(29,42,49,0.60);
  --e-fg-60: color-mix(in srgb, var(--e-fg) 60%, transparent);
  --e-fg-45: rgba(29,42,49,0.45);
  --e-fg-45: color-mix(in srgb, var(--e-fg) 45%, transparent);
  --e-fg-30: rgba(29,42,49,0.30);
  --e-fg-30: color-mix(in srgb, var(--e-fg) 30%, transparent);
  --e-line-soft: rgba(29,42,49,0.09);
  --e-line-soft: color-mix(in srgb, var(--e-fg) 9%, transparent);
  --e-brass-60: rgba(178,164,122,0.62);
  --e-brass-60: color-mix(in srgb, var(--e-brass) 62%, transparent);
  --e-ease-out: cubic-bezier(.16, 1, .3, 1);
  --e-ease-in-out: cubic-bezier(.65, 0, .35, 1);
  position: relative;
}
.estate__head { max-width: 60rem; }
.estate__lead { margin-top: var(--space-4); color: rgba(29,42,49, 0.74);
  color: color-mix(in srgb, var(--e-fg) 74%, transparent); }
.estate__lead + .estate__lead { margin-top: var(--space-4); }
/* the hand-off into the day itself */
.estate__cue {
  margin-top: var(--space-6);
  display: inline-flex;
  align-items: center;
  gap: .8em;
  font-size: 10px;
  letter-spacing: 0.24em;
  color: var(--apricot-text);
}
.estate__cue::after {
  content: "";
  width: 42px; height: 1px;
  background: currentColor;
  opacity: .6;
}
.estate .label, .estate .section__title { color: var(--e-fg); }
.estate .label { color: var(--e-fg-60); }
.estate .estage__title .mono { color: var(--e-fg-60); }

/* the story scrolls; the plan stays */
.estate__day {
  display: grid;
  grid-template-columns: minmax(0, 11fr) minmax(0, 13fr);
  column-gap: clamp(2rem, 5vw, 6rem);
  padding: 0 var(--margin);
  align-items: start;
  max-width: var(--page-max);
  margin: 0 auto;
}
.estate__story { min-width: 0; }

.ehour {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 14vh 0 12vh;
  max-width: 36rem;
}
/* the closing hour carries a tail of its own, so the drawing is held while
   it is read and the whole section then leaves the screen together */
.ehour:last-child { padding-bottom: 62vh; }
.ehour__time {
  color: var(--e-fg);
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5.4vw, 5rem);
  line-height: 1;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
  margin-bottom: 1.4rem;
}
.ehour__time i { font-style: normal; color: var(--e-brass); }
.ehour__time--word { font-size: clamp(2.2rem, 4.2vw, 3.8rem); letter-spacing: -.01em; }
.ehour .label { margin-bottom: 1.4rem; }
.ehour__title {
  color: var(--e-fg);
  font-family: var(--font-display);
  font-size: clamp(28px, 2.8vw, 42px);
  line-height: 1.14;
  letter-spacing: -0.01em;
}
.ehour__copy {
  margin-top: 1.6rem;
  color: rgba(29,42,49, 0.74);
  color: color-mix(in srgb, var(--e-fg) 74%, transparent);
  max-width: 34rem;
  font-size: clamp(17px, 1.25vw, 20px);
  line-height: 1.62;
}
.ehour__inline { display: none; }

/* in person · on the platform · what the estate gets */
.ehow { margin-top: 2.2rem; display: grid; gap: 0; }
.ehow > div {
  display: grid;
  grid-template-columns: minmax(0, 9rem) minmax(0, 1fr);
  gap: var(--space-4);
  padding: var(--space-3) 0;
  border-top: 1px solid var(--e-line-soft);
}
.ehow dt {
  font-family: var(--font-text);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--e-fg-60);
}
.ehow dd { margin: 0; font-size: 16px; line-height: 1.58; color: rgba(29,42,49, 0.74);
  color: color-mix(in srgb, var(--e-fg) 74%, transparent); }

/* ── problem → solution: what an estate lives with today, and what
      replaces it. Two rows, the second carried in azur. ── */
.ehow--ps > div { padding: var(--space-4) 0; align-items: start; }
.ehow--ps .ehow__problem dt { color: var(--e-fg-45); }
.ehow--ps .ehow__problem dd { color: var(--e-fg-60); }
.ehow--ps .ehow__solution {
  border-top-color: var(--e-accent);
  position: relative;
}
.ehow--ps .ehow__solution dt { color: var(--e-accent); font-weight: 500; }
.ehow--ps .ehow__solution dd { color: var(--e-fg); }

/* the morning's ledger */
.eledger { margin-top: 2.2rem; border-top: 1px solid var(--e-line-soft); }
.eledger__row {
  display: grid;
  grid-template-columns: 4.2rem minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, .9fr);
  gap: var(--space-3);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--e-line-soft);
  font-size: 12px;
  line-height: 1.4;
  color: var(--ink-soft);
}
.eledger__row--head, .eledger .mono {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.eledger__row--head { color: var(--e-fg-45); }
.eledger__row--foot { color: var(--e-fg); }

/* ── the stage: the drawing, held in view ── */
/* Native sticky is the reference behaviour and is kept as the fallback —
   it works whenever ScrollSmoother is absent (reduced motion, no GSAP).
   When the smoother IS running its transform on #smooth-content breaks
   sticky, so main.js pins this with ScrollTrigger and marks it .is-pinned. */
.estage {
  position: sticky;
  top: 84px;
  height: calc(100vh - 84px);
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}
.estage.is-pinned { position: relative; top: auto; }
.estage__box {
  position: relative;
  height: calc(100vh - 84px - 9vh);
  max-width: 100%;
  aspect-ratio: 600 / 720;
}
.plan { width: 100%; height: 100%; overflow: visible; }
.plan text { font-family: var(--font-text); }
.plan__label { font-size: 8.5px; letter-spacing: .16em; text-transform: uppercase; fill: var(--e-fg-60); font-weight: 400; }
.plan__num { font-size: 6.5px; letter-spacing: .06em; fill: var(--e-fg-45); }
.plan__coast { fill: rgba(94,140,172, 0.12);
  fill: color-mix(in srgb, var(--e-accent) 12%, transparent); stroke: rgba(94,140,172, 0.55);
  stroke: color-mix(in srgb, var(--e-accent) 55%, transparent); stroke-width: 1; }
.plan__wave { fill: none; stroke: rgba(94,140,172, 0.28);
  stroke: color-mix(in srgb, var(--e-accent) 28%, transparent); stroke-width: .8; }
.plan__road { fill: none; stroke: var(--e-line-soft); stroke-width: 12; stroke-linecap: round; stroke-linejoin: round; }
.plan__roadline { fill: none; stroke: var(--e-brass-60); stroke-width: .7; stroke-dasharray: 3 4; }
.plan__path { fill: none; stroke: var(--e-fg-30); stroke-width: .9; stroke-dasharray: 2 3; }
.plan__thin { stroke: var(--e-fg-30); stroke-width: .6; }
.plan__gate rect { fill: var(--e-fg-60); }
.plan .plot { fill: none; stroke: var(--e-fg-30); stroke-width: .7; }
.plan .villa { fill: rgba(29,42,49, 0.14);
  fill: color-mix(in srgb, var(--e-fg) 14%, transparent); stroke: var(--e-fg-45); stroke-width: .7; }
.plan .pool-s { fill: rgba(94,140,172, 0.26);
  fill: color-mix(in srgb, var(--e-accent) 26%, transparent); stroke: rgba(94,140,172, 0.55);
  stroke: color-mix(in srgb, var(--e-accent) 55%, transparent); stroke-width: .6; }
.plan .pool { fill: rgba(94,140,172, 0.20);
  fill: color-mix(in srgb, var(--e-accent) 20%, transparent); stroke: rgba(94,140,172, 0.55);
  stroke: color-mix(in srgb, var(--e-accent) 55%, transparent); stroke-width: .8; }
.plan .loungers rect { fill: var(--e-fg-30); }
.plan .court { fill: none; stroke: var(--e-fg-45); stroke-width: .8; }
.plan .club { fill: rgba(29,42,49, 0.12);
  fill: color-mix(in srgb, var(--e-fg) 12%, transparent); stroke: var(--e-fg-45); stroke-width: .8; }

/* ── what is live at this hour ── */
.live { opacity: 0; transition: opacity .9s var(--e-ease-out); }
.live.is-on { opacity: 1; }
.live__dot {
  fill: var(--e-accent);
  transform-box: fill-box; transform-origin: center;
  transform: scale(0);
  transition: transform .5s var(--e-ease-out);
}
.live.is-on .live__dot { transform: scale(1); }
.live__halo {
  fill: none; stroke: var(--e-accent); stroke-width: 1;
  transform-box: fill-box; transform-origin: center;
  animation: ehalo 2.6s var(--e-ease-out) infinite;
}
@keyframes ehalo { 0% { transform: scale(.25); opacity: 1 } 100% { transform: scale(1.6); opacity: 0 } }
/* every drawn mark carries pathLength="1", so 1 unit = the whole line and
   the dash offset can be animated from 1 (unseen) to 0 (fully drawn). */
.live__link {
  stroke: var(--e-brass); stroke-width: .8;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.2s var(--e-ease-out) .55s;
}
.live.is-on .live__link { stroke-dashoffset: 0; }

.live__route {
  fill: none; stroke: var(--e-accent); stroke-width: 1.4;
  stroke-linecap: round;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  transition: stroke-dashoffset 2.2s var(--e-ease-in-out) .25s;
}
.live.is-on .live__route { stroke-dashoffset: 0; }

/* the irrigation line, found before the report is routed */
.live__trace {
  fill: none; stroke: var(--e-accent); stroke-width: 1.2;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  opacity: .8;
  transition: stroke-dashoffset 1.1s var(--e-ease-out) .15s;
}
.live.is-on .live__trace { stroke-dashoffset: 0; }
/* the report itself sets off once the leak has been located */
.live__route--long { transition-duration: 2.6s; transition-delay: 1.1s; }
/* the technician travels the service path back out to the villa */
.live__route--service { transition-duration: 2.2s; transition-delay: .3s; }
/* the evening walk: a full circuit of the estate, drawn at walking pace */
.live__route--walk { transition-duration: 4.2s; transition-delay: .25s; }
/* the morning round: the same circuit, walked before the estate wakes */
.live__route--round { transition-duration: 3.8s; transition-delay: .3s; }

/* the far dot only lands once the line reaches it */
.live__dot { transition: opacity .4s ease; }
.live__dot--late { opacity: 0; transition: opacity .5s ease 3.4s; }
.live.is-on .live__dot--late { opacity: 1; }
.live__far { fill: var(--e-accent); }

/* 07:00 — the pool plant is highlighted as an area, not a point */
.live__zone {
  fill: rgba(94,140,172, 0.18);
  fill: color-mix(in srgb, var(--e-accent) 18%, transparent);
  stroke: var(--e-accent);
  stroke-width: 1.1;
  stroke-dasharray: 3 3;
  transform-box: fill-box; transform-origin: center;
  transform: scale(.9);
  opacity: 0;
  transition: transform .8s var(--e-ease-out) .1s, opacity .6s ease .1s;
}
.live.is-on .live__zone { transform: scale(1); opacity: 1; }
/* the longer report route is given room to travel */
.live__route--long { transition-duration: 2.8s; }

/* ── the photograph pinned to the drawing ── */
.epins { position: absolute; inset: 0; pointer-events: none; }
.epin {
  position: absolute; width: 46%; margin: 0;
  opacity: 0; transform: translateY(14px);
  transition: opacity .9s var(--e-ease-out), transform .9s var(--e-ease-out);
  outline: 6px solid var(--e-field);
  background: var(--e-field);
  transition: outline-color .5s linear, background-color .5s linear;
}
.epin img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.epin figcaption {
  display: flex; justify-content: space-between; gap: .6rem;
  padding: .5rem .1rem 0;
  font-size: 9px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--e-fg-60);
}
.epin figcaption .mono { font-size: 9px; color: var(--e-fg); }
.epin.is-on { opacity: 1; transform: none; }
.epin--a { left: 3%; top: 58%; }
.epin--b { left: 51%; top: 58%; }

/* the clone in flight between the plan and the bento */
.epin--flyer {
  position: fixed;
  top: 0; left: 0;
  z-index: 40;
  margin: 0;
  opacity: 0;
  pointer-events: none;
  outline: 6px solid var(--e-field);
  background: var(--e-field);
  overflow: hidden;
  /* the card is lifted off the page, so it is composited on its own layer
     and its edges stay clean through the scale */
  will-change: transform, width, height, opacity;
  transform-origin: center center;
  backface-visibility: hidden;
}
.epin--flyer img { width: 100%; height: 100%; object-fit: cover; display: block; }
.epin--flyer figcaption { display: none; }
/* the destination tile's picture waits for the clone to arrive — the slot
   is empty until the card lands in it. Only where the morph runs; without
   JS or below the desktop breakpoint the tile is simply itself. */
#bentoOnsite .bento__media { transition: opacity .3s ease; }
/* the waiting slot: the tile keeps its footprint in the grid but is
   emptied — no picture, no plate — so the card has somewhere to land */
html.has-morph #bentoOnsite { background: var(--fill); }
html.has-morph #bentoOnsite .bento__media,
html.has-morph #bentoOnsite .bento__veil,
html.has-morph #bentoOnsite .bento__body { opacity: 0; }
html.has-morph #bentoOnsite .bento__body { transition: opacity .4s ease .1s; }

.estage__title {
  position: absolute; left: .4rem; right: .4rem; bottom: -1.6rem;
  display: flex; justify-content: space-between;
}
.estage__title .mono { font-size: 9px; letter-spacing: .16em; text-transform: uppercase; color: var(--e-fg-60); }

/* ── stacked: the drawing leads, each hour carries its own photograph ── */
@media (max-width: 1024px) {
  .estate__day { grid-template-columns: 1fr; padding: 0 var(--margin); }
  /* The drawing is held at the top of the screen and the story runs under
     it, so the hour-by-hour lighting still plays — the whole point of the
     section — instead of the plan being dumped above the text as a still. */
  /* On a phone the drawing simply sits at the head of its section and
     stays there — no hold, nothing that can slide out of step with the
     copy. The drawing itself still lights and draws per hour; only the
     scroll choreography is dropped. Desktop is untouched. */
  /* the original stage is spent once every hour carries its own copy */
  .estage--spent { display: none; }
  .estage--inline {
    position: static;
    display: block;
    height: auto;
    width: 100%;
    margin: 0 0 var(--space-6);
    background: none;
    box-shadow: none;
    padding: 0;
  }
  .estage--inline .estage__box {
    width: min(100%, 380px);
    margin: 0 auto;
  }
  .estage {
    position: static;
    order: -1;
    height: auto;
    margin-bottom: var(--space-5);
    z-index: 3;
    /* the held drawing sits on the section's own light, so the copy
       scrolling beneath it never shows through */
    background: var(--e-field);
    box-shadow: 0 18px 24px -18px color-mix(in srgb, var(--e-fg) 30%, transparent);
    transition: background-color .5s linear;
  }
  /* the drawing is kept compact so the photograph, the caption and the
     day rail all sit inside the held block without touching */
  .estage__box {
    height: auto;
    width: min(84%, 320px);
    padding-bottom: var(--space-4);
  }
  .ehour {
    min-height: 78vh;
    padding: var(--space-6) 0 var(--space-7);
    max-width: none;
  }
  .ehour:last-child { padding-bottom: var(--space-7); }
  /* the photograph rides the plan on mobile too, pinned to its foot */
  .epins { display: block; }
  /* the photograph rides the foot of the plan, small enough to stay a
     detail on it rather than covering the drawing */
  .epin {
    position: absolute;
    left: 6%; right: 34%;
    top: auto; bottom: 5%;
    width: auto;
    outline-width: 4px;
  }
  .epin img { aspect-ratio: 4 / 3; }
  .epin figcaption { font-size: 7px; padding-top: .3rem; letter-spacing: .1em; }
  .epin--a { left: 5%; right: 44%; top: 52%; bottom: auto; }
  .epin--b { left: 44%; right: 5%; top: 52%; bottom: auto; }
  /* the pinned photograph is the one on show — the inline copy beneath
     the story would only repeat it */
  .ehour__inline { display: none; }
  /* the story clears the held drawing, its caption and the day rail */
  .ehour { padding-top: var(--space-7); }
  .estage__box { padding-bottom: var(--space-5); }
  .ehour__time { font-size: clamp(2.2rem, 11vw, 3rem); }
  /* when ScrollTrigger holds it, sticky must not fight the pin */
  /* the drawing is the first row of the grid and the story the second, so
     the story naturally starts beneath it — the hours then scroll past the
     held drawing rather than behind it */
  .estate__story { padding-top: var(--space-6); }
  .estate__day { grid-template-rows: auto 1fr; }
  /* the section beneath rides over the held drawing as it arrives, so the
     plan is covered rather than left hanging across the next heading */
  .services, .conc, .devs, .band, .vision, .contact { position: relative; z-index: 6; }
  .estate { z-index: 1; }
  /* the caption plates wrap inside the card instead of running past it */
  #bento .bento__name {
    display: block;
    width: fit-content;
    max-width: 100%;
    font-size: 11px;
    letter-spacing: .12em;
    padding: 7px 12px;
  }
  #bento .bento__card--lead .bento__name { font-size: 12px; }
  #bento .bento__desc { font-size: 13px; }
}
@media (max-width: 640px) {
  .estate__day { padding: 0 var(--space-5); }
  /* the drawing stays held here too — the old `position: static` predates
     the mobile hold and was silently cancelling it */
  .eledger__row { grid-template-columns: 3.6rem minmax(0, 1fr); }
  .eledger__row > span:nth-child(3), .eledger__row > span:nth-child(4) { grid-column: 2; }
  .ehow > div { grid-template-columns: 1fr; gap: var(--space-1); }
}
@media (prefers-reduced-motion: reduce) {
  .live, .epin { transition-duration: 1ms; }
  .live__halo { animation: none; }
  .live__route, .live__link { transition: none; stroke-dashoffset: 0; }
}

/* ═══════════════════════════════════════════════════════════════
   03 · In person — a vertical rail, the statement, and a figure
        walking out of the image. 80vh, copy bleeding over the photo.
   ═══════════════════════════════════════════════════════════════ */
.inperson {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: stretch;
  background: var(--chalk);
  overflow: hidden;
}

/* the labelled rail down the left edge */
.inperson__rail {
  position: relative;
  z-index: 2;
  flex: 0 0 clamp(64px, 7vw, 108px);
  background: var(--fill);
  border-right: 1px solid var(--apricot);
  display: flex;
  align-items: center;
  justify-content: center;
}
.inperson__rail-label {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  font-size: 10px;
  letter-spacing: 0.4em;
  color: var(--eucalyptus);
}

.inperson__body {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  align-items: center;
  padding: var(--space-8) clamp(28px, 5vw, 92px);
}
.inperson__copy { max-width: min(58ch, 52vw); }
.inperson .label { display: flex; align-items: baseline; gap: var(--space-3); }
.inperson__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(30px, 3.9vw, 62px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin-top: var(--space-4);
  white-space: nowrap;        /* holds one line, per the reference */
}
.inperson__rule {
  display: block;
  width: 92px; height: 1px;
  background: var(--apricot);
  margin: var(--space-5) 0;
}
.inperson__text { color: var(--ink-soft); max-width: 46ch; }
.inperson__cta { margin-top: var(--space-6); }

/* the photograph, held to the right and dissolving into the ground */
.inperson__media {
  position: absolute;
  inset: 0 0 0 auto;
  width: 70%;
  background: var(--inperson-img, var(--inperson-fallback)) center right / cover no-repeat;
  opacity: 0.38;
  filter: grayscale(0.3);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,.35) 46%, #000 82%);
          mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,.35) 46%, #000 82%);
  pointer-events: none;
  z-index: 1;
}
/* until the real photograph lands, an existing frame stands in so the
   section never reads as empty */
/* placeholder until the real photograph lands */
.inperson__media::after {
  content: "IN-PERSON PHOTOGRAPH";
  position: absolute; right: 8%; bottom: 12%;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--eucalyptus);
}
.inperson__media.is-loaded::after { content: none; }

@media (max-width: 1100px) {
  .inperson__title { white-space: normal; }   /* let it wrap when space runs out */
}
@media (max-width: 900px) {
  .inperson { min-height: 0; }
  .inperson__rail { flex-basis: 46px; }
  .inperson__body { padding: var(--space-7) var(--space-5); }
  .inperson__media { width: 100%; opacity: 0.16; -webkit-mask-image: none; mask-image: none; }
}

/* ═══════════════════════════════════════════════════════════════
   01 · Vision — the statement, and the two who stand behind it
   ═══════════════════════════════════════════════════════════════ */
/* Section one holds the full screen — the statement gets the whole stage. */
.vision {
  min-height: 100vh;
  display: flex;
  align-items: center;
}
.vision > .container { width: 100%; }
/* ═══════════════════════════════════════════════════════════════
   Our answer — the statement, written.
   The sentence is traced as the section is scrolled and unwritten on
   the way back. It is the whole screen; the founders arrive after.
   ═══════════════════════════════════════════════════════════════ */
.vision {
  background: var(--chalk);
  padding: 0;
}
.vision__stage {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-8) var(--margin);
}
.vision__eyebrow { margin-bottom: var(--space-6); }
.vision__eyebrow .num { margin-right: .7em; }

.vision__write { width: min(100%, 1180px); margin: 0 auto; }
/* before the script takes over, the sentence is simply set — so it is
   readable with no JS and for anyone on reduced motion */
.vision__plain {
  font-family: "Parisienne", "Dancing Script", cursive;
  font-style: normal;
  font-weight: 400;
  font-size: clamp(36px, 6.8vw, 96px);
  line-height: 1.06;
  letter-spacing: -0.015em;
  color: var(--pine);
}
.vision__write.is-live .vision__plain { display: none; }
.vwrite { width: 100%; height: auto; display: block; overflow: visible; }
.vwrite__text {
  /* written by hand, but meant to be read: open letterforms and a steady
     baseline rather than the tangled loops of a formal copperplate */
  font-family: "Parisienne", "Dancing Script", cursive;
  font-style: normal;
  font-weight: 400;
  font-size: 96px;
  letter-spacing: 0.005em;
  fill: var(--pine);
}

/* the founders, quiet and small, once the sentence stands */
.vision__team {
  width: 100%;
  margin-top: var(--space-8);
  display: flex;
  gap: clamp(2rem, 5vw, 5rem);
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  will-change: opacity, transform;
}
.vperson {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-align: left;
  max-width: 21rem;
}
.vperson__photo {
  flex: 0 0 auto;
  width: 46px; height: 46px;
  margin: 0;
  border-radius: 50%;
  background: var(--fill) var(--vperson-img, none) center/cover no-repeat;
  border: 1px solid var(--seaglass);
}
.vperson__name {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0;
  margin-bottom: 2px;
}
.vperson__role { font-size: 12px; line-height: 1.45; color: var(--ink-soft); }

@media (max-width: 760px) {
  .vision__stage { padding: var(--space-7) var(--space-5); min-height: 0; }
  .vision__write { width: 100%; }
  .vwrite__text { font-size: 74px; }
  .vision__team { margin-top: var(--space-6); gap: var(--space-4); flex-direction: column; align-items: flex-start; }
  .vperson { max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  .vision__team { opacity: 1 !important; transform: none !important; }
}

.vision__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(40px, 7vw, 110px);
  align-items: start;
}
/* SplitText wraps each line; the mask clips it so it rises from nothing */
.vline__mask { display: block; overflow: hidden; }
.vline { display: block; will-change: transform; }

.vision__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(38px, 5.2vw, 78px);
  line-height: 1.06;
  letter-spacing: -0.025em;
  margin-top: var(--space-4);
  max-width: 13ch;
}
.vision__eyebrow {
  max-width: 34ch;
  line-height: 1.65;
  margin-bottom: var(--space-6);
}
.vfounder {
  display: grid;
  grid-template-columns: 148px 1fr;
  gap: var(--space-5);
  align-items: start;
  padding: var(--space-5) 0;
}
.vfounder + .vfounder {
  --rule-scale: 1;
  position: relative;
  border-top: 0;
}
.vfounder + .vfounder::before {          /* divider, drawn on arrival */
  content: "";
  position: absolute; top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--seaglass);
  transform: scaleX(var(--rule-scale));
  transform-origin: left center;
}
.vfounder__photo {
  position: relative;
  aspect-ratio: 1 / 1;
  border: 1px dashed var(--seaglass);
  background: var(--fill) center / cover no-repeat;
  display: flex; align-items: center; justify-content: center;
}
.vfounder__photo.is-loaded { border-style: solid; border-color: var(--seaglass); }
.vfounder__photo.is-loaded .vfounder__ph { display: none; }
.vfounder__ph {
  font-size: 8px;
  letter-spacing: 0.18em;
  color: var(--eucalyptus);
  text-align: center;
  padding: 0 8px;
}
.vfounder__name {
  font-size: 19px;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-2);
}
.vfounder__text { color: var(--ink-soft); }

/* portraits lift a touch when the reader is on them */
.vfounder__photo {
  transition: transform .6s cubic-bezier(.22,.61,.36,1),
              border-color .5s ease;
  will-change: transform;
}
.vfounder:hover .vfounder__photo {
  transform: translateY(-4px);
  border-color: var(--apricot);
}
.vfounder__name { transition: color .4s ease; }
.vfounder:hover .vfounder__name { color: var(--apricot-text); }

@media (max-width: 900px) {
  .vision__grid { grid-template-columns: 1fr; gap: var(--space-7); }
  .vision__title { max-width: none; }
  .vfounder { grid-template-columns: 110px 1fr; }
}

/* ═══════════════════════════════════════════════════════════════
   Services index (privada)
   ═══════════════════════════════════════════════════════════════ */
.svc__row {
  display: grid;
  grid-template-columns: 56px 1fr 1fr;
  align-items: baseline;
  gap: var(--space-4);
  border-top: 1px solid var(--seaglass);
  padding: var(--space-5) 0;
}
.svc__row:last-of-type { border-bottom: 1px solid var(--seaglass); }
.svc__name {
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  transition: color .35s ease;
}
.svc__row:hover .svc__name { color: var(--apricot-text); }
.svc__tags {
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--eucalyptus);
  margin-top: var(--space-2);
}
.svc__desc { color: var(--ink-soft); max-width: 440px; }

/* ═══════════════════════════════════════════════════════════════
   03 · The night shift — pine band, scrubbed by scroll
   ═══════════════════════════════════════════════════════════════ */
.night { background: var(--pine); color: var(--chalk); }
.night__stage {
  position: relative;
  height: 100vh;
  overflow: hidden;
  display: flex;
}

/* FILM 02 — dusk-to-dawn timelapse, scrubbed by scroll when present */
.night__film { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: none; }
.night__scrim { position: absolute; inset: 0; display: none; background: linear-gradient(90deg, rgba(45, 58, 58, 0.82) 0%, rgba(45, 58, 58, 0.5) 46%, rgba(45, 58, 58, 0.06) 100%); }
.night__stage.has-film .night__film { display: block; }
.night__stage.has-film .night__scrim { display: block; }
.night__stage.has-film .night__sky,
.night__stage.has-film .night__glow,
.night__stage.has-film .night__horizon { display: none; }

.night__glow {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 90% 55% at 50% 100%, rgba(232, 185, 138, 0.5) 0%, rgba(192, 138, 82, 0.18) 45%, transparent 72%);
  opacity: 0;
  pointer-events: none;
}
.night__sky {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, #F8F8F5 0%, #FAF4E9 40%, #F3D9B8 72%, #E8B98A 100%);
  opacity: 0;
  pointer-events: none;
}
.night__horizon { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 42vh; pointer-events: none; }
.night__inner { position: relative; width: 100%; padding-top: 132px; display: flex; flex-direction: column; }
.night__head { margin-bottom: var(--space-6); }
.label--onpine { color: var(--seaglass); }
.label--apricot { color: var(--apricot); font-size: 14px; letter-spacing: 0.18em; }
.label--dawn { color: var(--apricot-text); font-size: 14px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 400; }
.night__title { color: var(--chalk); }

.night__clockwrap { margin-bottom: var(--space-6); }
.night__clock {
  font-size: clamp(56px, 9vw, 128px);
  line-height: 1;
  color: var(--apricot);
  font-variant-numeric: tabular-nums;
  transition: color .5s ease;
}
.night__clock.is-dawn { color: var(--apricot-text); }

.night__steps { position: relative; min-height: 200px; max-width: 560px; }
.night__step { position: absolute; top: 0; left: 0; right: 0; opacity: 0; }
.night__step .label--apricot,
.night__step .label--dawn { margin-bottom: var(--space-3); text-transform: uppercase; }
.night__text { font-size: 18px; line-height: 1.7; color: rgba(248, 248, 245, 0.92); }
.night__step--dawn .night__text { color: var(--pine); }
.night__stage.has-film .night__step--dawn .night__text { color: rgba(248, 248, 245, 0.92); }

.night__after { border-top: 1px solid rgba(185, 199, 186, 0.25); }
.night__after-grid {
  padding-top: var(--space-8);
  padding-bottom: var(--space-8);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-7);
  align-items: start;
}
.night__after-title { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.15; letter-spacing: -0.01em; color: var(--chalk); }
.night__after-text { color: rgba(248, 248, 245, 0.8); max-width: var(--measure); font-size: 16px; }

/* ═══════════════════════════════════════════════════════════════
   04 · One system + easy to reach
   ═══════════════════════════════════════════════════════════════ */
.sys__grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: var(--space-7);
  align-items: start;
}
.sys__copy .lead { margin-bottom: var(--space-6); }
.sys__index { margin-bottom: var(--space-6); }
.channels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--seaglass);
  border-left: 1px solid var(--seaglass);
}
.channels__cell {
  border-right: 1px solid var(--seaglass);
  border-bottom: 1px solid var(--seaglass);
  padding: var(--space-4);
}
.channels__cell .label { display: block; margin-bottom: var(--space-2); color: var(--apricot-text); }
.channels__cell p { color: var(--ink-soft); }
.sys__media {
  aspect-ratio: 3 / 4;
  width: 100%;
  max-width: 440px;
  justify-self: end;
  border-radius: 50% 50% 0 0 / 37.5% 37.5% 0 0;
  position: sticky;
  top: 132px;
}

/* ═══════════════════════════════════════════════════════════════
   06 · Figures
   ═══════════════════════════════════════════════════════════════ */
.figures__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-6); }
.figures__cell {
  border-left: 1px solid var(--seaglass);
  padding-left: var(--space-4);
  display: flex; flex-direction: column; gap: var(--space-3);
}
.figures__value {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(48px, 5vw, 72px);
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.figures__value em { font-style: normal; font-size: 0.36em; margin-left: 6px; color: var(--apricot-text); }

/* ═══════════════════════════════════════════════════════════════
   Pull quote — Bodoni Moda, identity use
   ═══════════════════════════════════════════════════════════════ */
.quote__inner { max-width: 880px; text-align: center; }
.quote__text {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(26px, 3.4vw, 42px);
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-6);
}
.quote__attr { text-align: center; }
.quote__property { font-family: var(--font-identity); font-style: italic; text-transform: none; letter-spacing: 0.02em; font-size: 13px; }

/* ═══════════════════════════════════════════════════════════════
   07 · References — accordion gallery
   ═══════════════════════════════════════════════════════════════ */
.gal {
  display: flex;
  gap: 10px;
  height: clamp(380px, 52vh, 520px);
}
.gal__panel {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
  cursor: pointer;
  outline-offset: -2px;
}
.gal__mediawrap { position: absolute; inset: 0; overflow: hidden; }
.gal__media {
  position: absolute; inset: 0;
}
.gal__media::after {
  content: "";
  position: absolute; inset: 0;
  background-image: var(--noise);
  opacity: 0.15;
  mix-blend-mode: soft-light;
}
.gal__media video, .gal__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gal__media--r1 { background: linear-gradient(180deg, #2D3A3A 0%, #5C6B60 45%, #C08A52 78%, #E8B98A 100%); }
.gal__media--r2 { background: linear-gradient(180deg, #7E8F72 0%, #B9C7BA 48%, #E8B98A 84%, #EDE3D0 100%); }
.gal__media--r3 { background: linear-gradient(180deg, #4B5654 0%, #7E8F72 52%, #DDC9A8 86%, #EDE3D0 100%); }
.gal__media--r4 { background: linear-gradient(180deg, #3D4C4A 0%, #7E8F72 40%, #C08A52 82%, #E8B98A 100%); }
.gal__media--r5 { background: linear-gradient(180deg, #5C6B60 0%, #B9C7BA 50%, #E8B98A 88%, #FAF4E9 100%); }

/* pine scrim: full on inactive panels, lifted on the active one */
.gal__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(45, 58, 58, 0) 40%, rgba(45, 58, 58, 0.72) 100%);
  opacity: 1;
}
.gal__panel::before {          /* resting dim */
  content: "";
  position: absolute; inset: 0; z-index: 1;
  background: rgba(45, 58, 58, 0.28);
  opacity: var(--gal-dim, 1);
  transition: opacity .5s ease;
  pointer-events: none;
}
.gal__panel.is-active::before { opacity: 0; }

.gal__spec {
  position: absolute; right: var(--space-3); top: var(--space-3);
  z-index: 3;
  font-size: 9px; letter-spacing: 0.12em;
  color: var(--sand);
  background: rgba(45, 58, 58, 0.38);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  padding: 5px 8px;
}
/* Glass plate — blurred pine gradient, revealed on the active panel */
.gal__label {
  position: absolute; left: 0; right: 0; bottom: 0;
  z-index: 2;
  display: flex; flex-direction: column; gap: var(--space-2);
  padding: var(--space-5) var(--space-5) var(--space-4);
  background: linear-gradient(180deg,
      rgba(45, 58, 58, 0.04) 0%,
      rgba(45, 58, 58, 0.3) 45%,
      rgba(45, 58, 58, 0.52) 100%);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
  backdrop-filter: blur(14px) saturate(1.15);
  border-top: 1px solid rgba(250, 244, 233, 0.18);
  pointer-events: none;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .5s ease, transform .55s cubic-bezier(.22,1,.36,1);
}
.gal__panel.is-active .gal__label { opacity: 1; transform: none; }
.gal__line { display: block; width: 96px; height: 2px; background: var(--apricot); opacity: 0; }
.gal__name {
  font-family: var(--font-identity);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(20px, 2vw, 28px);
  color: var(--sand);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0;
}
.gal__teaser {
  font-weight: 300;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(250, 244, 233, 0.85);
  max-width: 420px;
  opacity: 0;
}
.gal__loc { font-size: 9px; letter-spacing: 0.22em; color: var(--apricot); opacity: 0; }

@media (max-width: 900px) {
  .gal { flex-direction: column; height: auto; }
  .gal__panel { min-height: 72px; height: auto; flex: 1 1 auto; }
  .gal__panel.is-active { min-height: 300px; }
}

/* ═══════════════════════════════════════════════════════════════
   Privada — while-away band, teaser band, concept chip
   ═══════════════════════════════════════════════════════════════ */
.concept {
  display: inline-block;
  margin-left: var(--space-3);
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--apricot-text);
  border: 1px solid var(--seaglass);
  padding: 3px 8px;
  vertical-align: 1px;
}
.away { background: var(--pine); color: var(--chalk); }
.away .section__title { color: var(--chalk); }
.away__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(185, 199, 186, 0.3);
  border-left: 1px solid rgba(185, 199, 186, 0.3);
}
.away__cell {
  border-right: 1px solid rgba(185, 199, 186, 0.3);
  border-bottom: 1px solid rgba(185, 199, 186, 0.3);
  padding: var(--space-5);
}
.away__cell .label--apricot { display: block; margin-bottom: var(--space-2); }
.away__cell p { color: rgba(248, 248, 245, 0.85); }
.away__note { margin-top: var(--space-6); color: rgba(248, 248, 245, 0.7); max-width: var(--measure); }
@media (max-width: 900px) { .away__grid { grid-template-columns: 1fr; } }

.band { background: var(--mist); padding: var(--space-7) 0; }
.band__inner {
  display: flex; justify-content: space-between; align-items: center;
  gap: var(--space-6); flex-wrap: wrap;
}
.band__inner .label { margin-bottom: var(--space-2); }
.band__inner .label .num { margin-right: .7em; }
.band__copy { max-width: 46rem; }
.band__text {
  margin-top: var(--space-3);
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
}
.band__title { font-size: clamp(24px, 2.6vw, 32px); letter-spacing: -0.01em; }

.index__row--last { border-bottom: 1px solid var(--seaglass); }

/* ═══════════════════════════════════════════════════════════════
   08 · Developers — carries the single apricot edge
   ═══════════════════════════════════════════════════════════════ */
.devs--edge { border-top: 7px solid var(--apricot); }
.devs__grid { display: grid; grid-template-columns: 7fr 5fr; gap: var(--space-7); align-items: start; }
.devs__copy .lead { margin-bottom: var(--space-6); }
.devs__index { margin-bottom: var(--space-6); }
.devs__index .index__row:last-child { border-bottom: 1px solid var(--seaglass); }
.devs__media {
  aspect-ratio: 3 / 4;
  width: 100%;
  max-width: 440px;
  justify-self: end;
  border-radius: 50% 50% 0 0 / 37.5% 37.5% 0 0;
  position: sticky;
  top: 132px;
}

/* ═══════════════════════════════════════════════════════════════
   09 · Contact
   ═══════════════════════════════════════════════════════════════ */
.contact__grid { display: grid; grid-template-columns: 5fr 6fr; gap: var(--space-8); align-items: start; }
.contact__copy .lead { margin-bottom: var(--space-7); }
.contact__details { display: flex; flex-direction: column; }
.contact__detail {
  display: grid;
  grid-template-columns: 120px 1fr;
  align-items: baseline;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  border-top: 1px solid var(--seaglass);
}
.contact__detail:last-child { border-bottom: 1px solid var(--seaglass); }

.contact__form { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5) var(--space-4); }
.field { display: flex; flex-direction: column; gap: var(--space-2); }
.field--full { grid-column: 1 / -1; }
.field input, .field select, .field textarea {
  font-family: var(--font-text);
  font-weight: 300;
  font-size: 15px;
  color: var(--pine);
  background: transparent;
  border: 1px solid var(--seaglass);
  border-radius: 0;
  padding: 12px 14px;
  transition: border-color .3s ease;
  appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%232D3A3A' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--pine); }
.field textarea { resize: vertical; min-height: 120px; }
.contact__form .btn { grid-column: 1 / -1; justify-self: start; }

/* the honeypot: off-screen rather than display:none, because some bots
   skip hidden inputs but fill anything they can find in the DOM */
.field--trap {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}
.contact__note { font-size: 11px; color: var(--eucalyptus); grid-column: 1 / -1; min-height: 1em; }

/* ═══════════════════════════════════════════════════════════════
   Footer
   ═══════════════════════════════════════════════════════════════ */
.footer { background: var(--fill); padding-top: var(--space-8); }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--space-7); padding-bottom: var(--space-8); }
.footer__logo { height: 56px; width: auto; margin-bottom: var(--space-4); }
.footer__col { display: flex; flex-direction: column; gap: var(--space-2); }
.footer__coltitle { margin-bottom: var(--space-3); }
.footer__col a, .footer__col span { font-size: 14px; }
.footer__bottom {
  border-top: 1px solid var(--seaglass);
  padding: var(--space-4) 0;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--space-3);
}
.footer__bottom .mono { font-size: 10px; letter-spacing: 0.14em; color: var(--ink-soft); }

/* ═══════════════════════════════════════════════════════════════
   Responsive
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .sys__grid, .devs__grid { grid-template-columns: 1fr; }
  .sys__media, .devs__media { justify-self: start; max-width: 400px; position: static; }
  .contact__grid { grid-template-columns: 1fr; gap: var(--space-7); }
  .figures__grid { grid-template-columns: repeat(2, 1fr); row-gap: var(--space-7); }
  .night__after-grid { grid-template-columns: 1fr; gap: var(--space-5); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .svc__row { grid-template-columns: 40px 1fr; }
  .svc__desc { grid-column: 2; max-width: var(--measure); }
}

@media (max-width: 900px) {
  :root { --margin: 24px; }
  .section { padding-top: 44px; padding-bottom: 44px; }
  .nav__links, .nav__cta { display: none; }
  /* ── the language switch: a round flag in the header ── */
.langsw {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  background: none;
  border: 0;
  padding: 6px 4px;
  cursor: pointer;
  color: inherit;
  font: inherit;
  line-height: 1;
}
.langsw__flag {
  width: 30px; height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  /* the emoji is clipped to a disc so it reads as a coin, not a sticker */
  overflow: hidden;
  background: rgba(29,42,49, 0.08);
  background: color-mix(in srgb, var(--pine) 8%, transparent);
  border: 1px solid var(--seaglass);
  transition: border-color .3s ease, transform .3s ease;
}
.langsw__code {
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--eucalyptus);
  transition: color .3s ease;
}
.langsw:hover .langsw__flag { border-color: var(--apricot-text); transform: scale(1.06); }
.langsw:hover .langsw__code { color: var(--apricot-text); }
.langsw:focus-visible { outline: 2px solid var(--apricot-text); outline-offset: 3px; }

/* over the hero film the switch reads light, like the rest of the bar */
.nav--overlay:not(.is-scrolled) .langsw__flag {
  background: rgba(250, 244, 233, 0.14);
  border-color: rgba(250, 244, 233, 0.45);
}
.nav--overlay:not(.is-scrolled) .langsw__code { color: var(--sand); }

@media (max-width: 900px) {
  .langsw__code { display: none; }
  .langsw { padding: 6px 2px; }
}

.nav__burger { display: flex; }
  .nav__inner { height: 68px; }
  .nav__logo-img { height: 38px; }
  .hero { padding-top: 120px; }
  .hero__scrollcue { display: none; }
  .index__row { grid-template-columns: 32px 1fr; }
  .index__row p { grid-column: 2; }
  .night__inner { padding-top: 100px; }
  .night__steps { min-height: 260px; }
  .contact__form { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: var(--space-6); }
  .channels { grid-template-columns: 1fr; border-left: none; }
  .channels__cell { border-right: none; padding-left: 0; }
}

/* ═══════════════════════════════════════════════════════════════
   Reduced motion — everything readable, nothing pinned
   ═══════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  .loader, .cursor, .progress, .hero__scrollline::after { display: none; }
  .night__stage { height: auto; padding-bottom: var(--space-8); }
  .night__steps { min-height: 0; max-width: var(--measure); }
  .night__step { position: static; opacity: 1; margin-bottom: var(--space-6); }
  .night__step--dawn .night__text { color: rgba(248, 248, 245, 0.92); }
  .night__clockwrap { display: none; }
  .night__horizon, .night__sky, .night__glow, .night__film, .night__scrim { display: none; }
  .gal { flex-direction: column; height: auto; }
  .gal__panel { min-height: 220px; }
  .gal__panel::before { opacity: 0; }
  .gal__line, .gal__name, .gal__teaser, .gal__loc { opacity: 1; }
  .idea__text .word { color: var(--pine); }
  .bento__spotlight { display: none; }
  .bento__card::after { display: none; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ═══════════════════════════════════════════════════════════════
   Mobile — built for the small screen rather than shrunk onto it.
   The held drawing carries a progress rail so the day reads as a
   day; the problem/solution rows arrive as cards; the hours are
   given their own rhythm.
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  /* the day, as a line: how far through the estate's day you are */
  .estage__box::after {
    content: "";
    position: absolute;
    left: 6%; right: 6%; bottom: -14px;
    height: 2px;
    background: rgba(29,42,49, 0.12);
  background: color-mix(in srgb, var(--e-fg) 12%, transparent);
  }
  .estage__box::before {
    content: "";
    position: absolute;
    left: 6%; bottom: -14px;
    height: 2px;
    width: calc(var(--day-progress, 0) * 88%);
    background: var(--e-accent);
    z-index: 2;
    transition: width .6s var(--e-ease-out);
  }
  /* room for the caption and the rail beneath the drawing */
  .estage { padding-bottom: var(--space-5); }
  .estage__box { padding-bottom: var(--space-6); }
  .estage__title { bottom: 4px; }

  /* problem and solution read as two cards, not two table rows */
  .ehow--ps > div {
    grid-template-columns: 1fr;
    gap: var(--space-2);
    padding: var(--space-4);
    border-top: 0;
    background: rgba(29,42,49, 0.04);
  background: color-mix(in srgb, var(--e-fg) 4%, transparent);
    margin-bottom: var(--space-3);
  }
  .ehow--ps .ehow__solution {
    background: rgba(94,140,172, 0.10);
  background: color-mix(in srgb, var(--e-accent) 10%, transparent);
    border-left: 2px solid var(--e-accent);
  }
  .ehow--ps dt { font-size: 10px; }
  .ehow--ps dd { font-size: 15px; }

  /* the concierge columns keep their brass, stacked */
  .conc { padding-top: clamp(80px, 16vw, 130px); padding-bottom: clamp(80px, 16vw, 130px); }

  /* the hero settles sooner, so the fade is not half the page */
  .hero2__sub { max-width: 24em; }
}
