/* AlSeraj Almuodea · "From darkness to light"
   The page opens at night; the brand element assembles and the light it makes floods the page. Every chapter
   after that is lit: warm paper and sand grounds like the brand's letterhead, green type, gold details. Night
   returns twice on purpose: inside the house (its lights are off until you switch them on) and, on request, in
   the finale. The 3D element only ever lives in the hero and finale stage boxes, never behind text. */
@property --ar { syntax: "<number>"; inherits: false; initial-value: 1; }

:root {
  --night: #0b110d;
  --night-2: #121a15;
  --paper: #fbf8f3;
  --sand: #f3ece3;
  --line: rgba(44, 57, 48, 0.13);
  --line-2: rgba(44, 57, 48, 0.24);
  --line-night: rgba(242, 236, 226, 0.12);
  --green: #2c3930;
  --green-2: #3f4f44;
  --gold-l: #d1be96;
  --gold: #b99b77;
  --gold-d: #a57c5c;
  --gold-ink: #7a5b3e;      /* gold for small text on light grounds (5.8:1) */
  --warm: #ffd9a0;           /* the colour of a lamp that is on */
  --ink: #231f20;
  --ink-2: #4c4640;
  --muted: #6b6158;          /* 5.7:1 on paper */
  --ink-night: #f2ece2;
  --muted-night: #b4b8ad;
  --gradient-gold: linear-gradient(180deg, var(--gold-l), var(--gold-d));
  --rule-gold: linear-gradient(90deg, var(--gold-l), var(--gold-d));
  --font: "29LT Bukra", Tajawal, "Segoe UI", Tahoma, sans-serif;
  --gutter: max(20px, 5vw);
  --bar-h: 76px;
  --shadow-photo: 0 40px 80px -42px rgba(44, 57, 48, 0.55);
  --ease-out: cubic-bezier(.2, .7, .2, 1);
  --ease-io: cubic-bezier(.7, 0, .2, 1);
  color-scheme: light;
  --start: right;            /* reading start: right in Arabic, left in English */
  --flip: -1;                /* sign of a movement toward the reading end */
}
[dir="ltr"] { --start: left; --flip: 1; }

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--paper); -webkit-text-size-adjust: 100%; }
html.menu-open { overflow: hidden; }
/* English is shown only once its strings are in (lang.js), so Arabic never flashes in an LTR layout */
.i18n-wait .bar, .i18n-wait main, .i18n-wait .foot { visibility: hidden; }
body {
  margin: 0; background: transparent; color: var(--ink);
  font-family: var(--font); font-size: 17px; line-height: 1.75;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip;
  -webkit-tap-highlight-color: transparent;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
a, button { touch-action: manipulation; }
h1, h2, h3 { margin: 0; font-weight: 800; text-wrap: balance; color: var(--green); }
p { margin: 0; text-wrap: pretty; }
ol, ul { margin: 0; padding: 0; list-style: none; }
.ltr { direction: ltr; unicode-bidi: isolate; font-variant-numeric: tabular-nums; }
:focus-visible { outline: 2px solid var(--gold-d); outline-offset: 3px; }
.lede { color: var(--muted); font-size: clamp(1.05rem, 0.95rem + 0.45vw, 1.3rem); line-height: 1.85; max-width: 36em; }

.skip { position: fixed; inset-inline-start: 12px; top: -60px; z-index: 60; padding: 10px 16px; background: var(--green); color: #fff; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }

/* Layers: sky (page colour behind the 3D) → 3D canvas → content → veil → menu → header */
.sky {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; --flood: 0; --fx: 50%; --fy: 45%;
  background:
    radial-gradient(circle at var(--fx) var(--fy),
      var(--paper) calc(var(--flood) * 108vmax),
      #f4e2c4 calc(var(--flood) * 128vmax),
      rgba(251, 248, 243, 0) calc(var(--flood) * 150vmax)),
    var(--night);
}
.sky.is-day { background: var(--paper); }
.sky.is-night { background: radial-gradient(70% 60% at 50% 40%, #16201a, var(--night)); }
#gl { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: 0; pointer-events: none; transition: opacity 0.6s ease; }
#gl.is-on { opacity: 1; }
main, .foot { position: relative; z-index: 1; }
.grain {
  position: fixed; inset: -50%; z-index: 40; pointer-events: none; opacity: 0.035; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* Section jumps: the lights go out, then open again from the middle of the screen */
.veil {
  position: fixed; inset: 0; z-index: 27; display: grid; place-items: center; background: var(--night);
  opacity: 0; visibility: hidden; pointer-events: none; --hole: 0%;
  -webkit-mask-image: radial-gradient(circle at 50% 50%, transparent var(--hole), #000 calc(var(--hole) + 14%));
  mask-image: radial-gradient(circle at 50% 50%, transparent var(--hole), #000 calc(var(--hole) + 14%));
}
.veil__mark { width: 64px; height: auto; opacity: 0; filter: drop-shadow(0 0 22px rgba(255, 196, 120, 0.7)); }

/* ---------- Header ---------- */
.bar {
  position: fixed; inset: 0 0 auto; z-index: 30; height: calc(var(--bar-h) + env(safe-area-inset-top));
  display: flex; align-items: center; gap: clamp(16px, 3vw, 40px);
  padding-inline: max(var(--gutter), env(safe-area-inset-right)) max(var(--gutter), env(safe-area-inset-left));
  padding-top: env(safe-area-inset-top);
  color: var(--green);
  background: rgba(251, 248, 243, 0.84);
  backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3);
  border-bottom: 1px solid var(--line);
  transition: background 0.5s ease, color 0.5s ease, border-color 0.5s ease, transform 0.5s var(--ease-out);
}
.bar.is-dark { background: rgba(11, 17, 13, 0); border-color: transparent; color: var(--ink-night); backdrop-filter: none; -webkit-backdrop-filter: none; }
.bar.is-hidden { transform: translateY(-110%); }
.bar__brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.bar__icon { width: 40px; height: auto; }
.bar__type { position: relative; display: block; width: 130px; height: 40px; }
.bar__type img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: opacity 0.5s ease; }
.bar__type-light { opacity: 0; }
.bar.is-dark .bar__type-light { opacity: 1; }
.bar.is-dark .bar__type-dark { opacity: 0; }
.bar__nav { display: flex; align-items: center; gap: clamp(16px, 2.2vw, 32px); margin-inline: auto; }
.bar__nav a { position: relative; text-decoration: none; font-weight: 500; font-size: 0.98rem; padding: 6px 0; opacity: 0.82; transition: opacity 0.2s; }
.bar__nav a::after {
  content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 2px; background: var(--rule-gold);
  transform: scaleX(0); transform-origin: var(--start); transition: transform 0.35s var(--ease-out);
}
.bar__nav a:hover, .bar__nav a.is-active { opacity: 1; }
.bar__nav a.is-active::after, .bar__nav a:hover::after { transform: scaleX(1); }
.bar__actions { display: flex; align-items: center; gap: 12px; flex: none; }
.bar__lang {
  display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 10px;
  border: 1px solid currentColor; border-radius: 2px; text-decoration: none; font-weight: 700; font-size: 0.92rem; line-height: 1;
  opacity: 0.85; transition: opacity 0.2s, background 0.25s;
}
.bar__lang:hover { opacity: 1; background: rgba(209, 190, 150, 0.16); }
.bar__cta {
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding-inline: 12px 18px; border-radius: 2px;
  background: var(--green); color: #fff; text-decoration: none; font-weight: 700; transition: background 0.25s, color 0.25s;
}
.bar__cta svg { width: 28px; height: 28px; color: var(--gold-l); }
.bar__cta:hover { background: var(--green-2); }
.bar.is-dark .bar__cta { background: var(--gradient-gold); color: var(--green); }
.bar.is-dark .bar__cta svg { color: var(--green); }
.bar__menu {
  display: none; position: relative; width: 44px; height: 44px; border: 1px solid currentColor; border-radius: 2px;
  background: none; color: inherit; cursor: pointer; padding: 0;
}
.bar__menu span { position: absolute; inset-inline: 12px; height: 1.5px; background: currentColor; transition: transform 0.4s var(--ease-io), top 0.4s var(--ease-io); }
.bar__menu span:first-child { top: 17px; }
.bar__menu span:last-child { top: 25px; }
.bar__menu[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.bar__menu[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }
.bar__progress { position: absolute; inset: auto 0 -1px; height: 2px; background: var(--rule-gold); transform: scaleX(0); transform-origin: var(--start); }

/* ---------- Menu (phones and tablets) ---------- */
.menu {
  position: fixed; inset: 0; z-index: 28; display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 24px;
  padding: calc(var(--bar-h) + env(safe-area-inset-top) + 16px) var(--gutter) calc(24px + env(safe-area-inset-bottom));
  background:
    radial-gradient(120% 60% at 50% 0%, rgba(209, 190, 150, 0.12), transparent 60%),
    var(--night);
  color: var(--ink-night);
  clip-path: circle(0px at var(--mx, 90%) var(--my, 38px)); visibility: hidden;
  transition: clip-path 0.7s var(--ease-io), visibility 0s linear 0.7s;
}
.menu.is-open { clip-path: circle(160vmax at var(--mx, 90%) var(--my, 38px)); visibility: visible; transition: clip-path 0.75s var(--ease-io), visibility 0s; }
.menu__nav { display: grid; align-content: center; }
.menu__nav a {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px 0; border-bottom: 1px solid var(--line-night); text-decoration: none;
  font-size: clamp(1.7rem, 1.1rem + 3vw, 2.4rem); font-weight: 800; line-height: 1.3;
  opacity: 0; transform: translateY(18px); transition: opacity 0.4s ease, transform 0.5s var(--ease-out), color 0.25s;
}
.menu__nav a::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: rgba(242, 236, 226, 0.16); transition: background 0.3s, box-shadow 0.3s; }
.menu__nav a:hover::after, .menu__nav a:focus-visible::after, .menu__nav a.is-active::after { background: var(--warm); box-shadow: 0 0 16px 4px rgba(255, 190, 110, 0.55); }
.menu.is-open .menu__nav a { opacity: 1; transform: none; transition-delay: calc(0.22s + var(--i) * 0.055s); }
.menu__foot { display: grid; gap: 10px; opacity: 0; transition: opacity 0.4s ease; }
.menu.is-open .menu__foot { opacity: 1; transition-delay: 0.5s; }
.menu__social { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 6px; color: var(--muted-night); font-size: 0.95rem; }
.menu__social a { color: var(--ink-night); font-weight: 700; text-decoration: none; }

/* ---------- Dock: quick contact on phones ---------- */
.dock { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 8px 18px; padding-inline-start: 14px;
  border: 1px solid var(--gold-d); border-radius: 2px; text-decoration: none; font-weight: 700; color: var(--f-ink, var(--green));
  background: rgba(251, 248, 243, 0.6); transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.25s var(--ease-out);
}
.btn svg { width: 30px; height: 30px; flex: none; color: var(--gold-d); }
.btn:hover { background: rgba(209, 190, 150, 0.22); }
.btn:active { transform: scale(0.98); }
.btn--primary { background: var(--green); border-color: var(--green); color: #fff; }
.btn--primary svg { color: var(--gold-l); }
.btn--primary:hover { background: var(--green-2); }
.btn--primary .ltr { font-weight: 500; opacity: 0.8; }
.btn--ghost { padding-inline: 24px; }
.btn--night { background: transparent; color: var(--ink-night); border-color: rgba(209, 190, 150, 0.5); }
.btn--night svg { color: var(--gold-l); }
.menu .btn--primary { background: var(--gradient-gold); border-color: transparent; color: var(--green); }
.menu .btn--primary svg { color: var(--green); }

/* ---------- 1 · Hero: one scene, night to day ---------- */
.hero { position: relative; --hero-ink: var(--ink-night); --hero-muted: var(--muted-night); color: var(--hero-ink); }
.hero.is-day { --hero-ink: var(--green); --hero-muted: var(--muted); }
.hero__inner {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; gap: clamp(24px, 4vw, 72px);
  padding: calc(var(--bar-h) + 24px) var(--gutter) clamp(56px, 9vh, 96px);
}
.hero__copy { display: grid; gap: clamp(16px, 2.4vh, 26px); justify-items: start; max-width: 660px; }
.hero__eyebrow { display: inline-flex; align-items: center; gap: 12px; color: var(--hero-muted); font-weight: 500; font-size: 0.98rem; transition: color 0.8s ease; }
.rule { width: 28px; height: 1px; background: currentColor; flex: none; }
.hero__title { color: var(--hero-ink); font-size: clamp(2.5rem, 1.2rem + 4vw, 5.4rem); line-height: 1.12; transition: color 0.8s ease; }
.hero__line { display: block; }
.hero__line--gold { background: var(--gradient-gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__text { color: var(--hero-muted); font-size: clamp(1.02rem, 0.95rem + 0.35vw, 1.24rem); line-height: 1.8; max-width: 33em; transition: color 0.8s ease; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.intro .hero__line, .intro .hero__eyebrow, .intro .hero__text, .intro .hero__actions, .intro .hero__hint { opacity: 0; }
.stage { position: relative; min-height: 0; }
.stage--hero { width: 100%; height: min(74vh, 700px); }
.stage__fallback { display: none; position: absolute; inset: 0; margin: auto; width: min(60%, 320px); height: auto; }
.no-gl .stage__fallback { display: block; }
.hero__hint {
  position: absolute; bottom: 18px; inset-inline: 0; margin-inline: auto; width: max-content;
  display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--hero-muted); font-size: 0.88rem;
}
.hero__hint i { width: 1px; height: 34px; background: linear-gradient(currentColor, transparent); transform-origin: top; animation: drip 2.2s ease-in-out infinite; }
@keyframes drip { 0% { transform: scaleY(0); opacity: 1; } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- 2 · Statement ---------- */
.statement { position: relative; background: var(--paper); }
.statement__pin {
  min-height: 100vh; min-height: 100svh; display: grid; align-content: center;
  padding: calc(var(--bar-h) + 40px) var(--gutter) 80px; max-width: 1320px; margin: 0 auto;
}
.statement__text { font-size: clamp(2rem, 0.9rem + 4.4vw, 5.1rem); font-weight: 800; line-height: 1.38; max-width: 16em; color: var(--green); }
.motion .statement__text .w { color: #ddd5ca; }

/* Section titles switch on like a lamp when they reach you */
.motion .lit:not(.is-done) { color: rgba(44, 57, 48, 0.16); }
.motion .lit.is-lit { animation: lamp 1.2s linear both; }
@keyframes lamp {
  0% { color: rgba(44, 57, 48, 0.16); text-shadow: none; }
  7% { color: var(--green); text-shadow: 0 0 26px rgba(255, 190, 110, 0.55); }
  11% { color: rgba(44, 57, 48, 0.24); text-shadow: none; }
  19% { color: var(--green); text-shadow: 0 0 26px rgba(255, 190, 110, 0.55); }
  24% { color: rgba(44, 57, 48, 0.4); }
  36% { color: var(--green); text-shadow: 0 0 34px rgba(255, 190, 110, 0.6); }
  100% { color: var(--green); text-shadow: 0 0 0 rgba(255, 190, 110, 0); }
}

/* ---------- 3 · Light up the home: night inside the house ---------- */
.house { position: relative; background: var(--night); color: var(--ink-night); --hpad: 28px; }
.house__dusk { height: 42vh; background: linear-gradient(var(--paper), #4d4a42 55%, var(--night)); }
.house__dawn { height: 42vh; background: linear-gradient(var(--night), #6f6a60 50%, var(--sand)); }
.house__pin {
  height: 100vh; height: 100svh; padding-top: calc(var(--bar-h) + env(safe-area-inset-top));
  display: grid; grid-template-columns: minmax(340px, 0.78fr) minmax(0, 1.22fr); background: var(--night);
}
.house__panel {
  display: flex; flex-direction: column; gap: clamp(14px, 2.4vh, 26px); min-height: 0; overflow: hidden;
  padding: clamp(20px, 4vh, 48px) var(--gutter); padding-inline-end: clamp(24px, 3vw, 52px);
}
.house__head { display: grid; gap: 10px; }
.house__head h2 { color: var(--ink-night); font-size: clamp(1.5rem, 1rem + 1.2vw, 2.2rem); line-height: 1.25; }
.house__lede { color: var(--muted-night); font-size: 0.95rem; line-height: 1.75; max-width: 30em; }
.house__tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: auto; }
.house__tabs button {
  display: grid; gap: 10px; padding: 8px 0; border: 0; background: none; cursor: pointer; text-align: start;
  color: var(--muted-night); font: 500 0.9rem/1.3 var(--font); transition: color 0.3s;
}
.house__tabs button:hover, .house__tabs button[aria-current="true"] { color: var(--ink-night); }
.house__tabs button[aria-current="true"] { font-weight: 700; }
.house__tabs i { position: relative; display: block; height: 2px; background: rgba(242, 236, 226, 0.14); overflow: hidden; }
.house__tabs b { position: absolute; inset: 0; background: linear-gradient(90deg, var(--warm), var(--gold-d)); transform: scaleX(0); transform-origin: var(--start); }
.house__now { display: grid; gap: 12px; }
.house__room { color: var(--ink-night); font-size: clamp(2.4rem, 1.3rem + 2.8vw, 4.4rem); line-height: 1.05; }
.house__caption { color: #d9d3c7; font-size: clamp(1rem, 0.95rem + 0.3vw, 1.2rem); line-height: 1.7; min-height: 3.4em; max-width: 28em; }
.house__switches { display: grid; border-top: 1px solid var(--line-night); }
.sw {
  display: grid; grid-template-columns: 12px minmax(0, 1fr) auto auto; align-items: center; gap: 14px;
  padding: 14px 2px; border: 0; border-bottom: 1px solid var(--line-night); background: none; cursor: pointer;
  color: var(--ink-night); font: 500 1rem/1.4 var(--font); text-align: start;
}
.sw__dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(242, 236, 226, 0.2); transition: background 0.3s, box-shadow 0.4s; }
.sw__state { font-size: 0.8rem; color: var(--muted-night); }
.sw__state .is-on, .sw[aria-pressed="true"] .sw__state .is-off { display: none; }
.sw[aria-pressed="true"] .sw__state .is-on { display: inline; color: var(--warm); }
.sw__track { position: relative; width: 42px; height: 24px; border-radius: 99px; background: rgba(242, 236, 226, 0.16); transition: background 0.3s; }
.sw__thumb {
  position: absolute; top: 3px; inset-inline-start: 3px; width: 18px; height: 18px; border-radius: 50%;
  background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35); transition: transform 0.35s cubic-bezier(.3, 1.5, .5, 1);
}
.sw[aria-pressed="true"] .sw__dot { background: var(--warm); box-shadow: 0 0 0 4px rgba(255, 200, 120, 0.14), 0 0 18px 4px rgba(255, 190, 100, 0.55); }
.sw[aria-pressed="true"] .sw__track { background: linear-gradient(90deg, var(--gold-l), var(--gold-d)); }
.sw[aria-pressed="true"] .sw__thumb { transform: translateX(calc(var(--flip) * 18px)); }
.sw:hover .sw__track { background-color: rgba(242, 236, 226, 0.24); }
.house__spec { color: var(--gold-l); font-size: 0.82rem; line-height: 1.6; min-height: 1.6em; opacity: 0; transition: opacity 0.6s ease; }
.house__spec.is-on { opacity: 1; }

.house__view { position: relative; min-height: 0; overflow: hidden; background: #050605; }
.house__view canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.house__still {
  position: absolute; inset: var(--hpad); margin: auto; width: auto; height: auto; display: none;
  max-width: calc(100% - 2 * var(--hpad)); max-height: calc(100% - 2 * var(--hpad));
  border-radius: 45% 45% 18px 18px / 33.75% 33.75% 18px 18px;
  box-shadow: 0 0 0 1px rgba(209, 190, 150, 0.35), 0 0 0 14px rgba(5, 6, 5, 1), 0 0 0 15px rgba(209, 190, 150, 0.6);
}
.no-gl .house__still, .reduced .house__still { display: block; }
.reduced .house__pins, .no-gl .house__pins { display: none; }
/* markers on the fixtures themselves; their names appear when they switch on */
.house__pins { position: absolute; inset: 0; pointer-events: none; }
.hp {
  position: absolute; left: -18px; top: -18px; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%;
  background: none; cursor: pointer; pointer-events: auto; opacity: 0; transition: opacity 0.5s ease;
}
.hp.is-placed { opacity: 1; }
.hp::before, .hp::after { content: ""; position: absolute; border-radius: 50%; }
.hp::before { inset: 11px; border: 1.5px solid rgba(255, 255, 255, 0.75); background: rgba(11, 17, 13, 0.35); box-shadow: 0 0 0 5px rgba(11, 17, 13, 0.25); transition: background 0.4s, border-color 0.4s, box-shadow 0.4s; }
.hp::after { inset: 4px; border: 1px solid rgba(255, 255, 255, 0.35); opacity: 0; }
.motion .hp:not(.is-on)::after { animation: ping 2.4s ease-out infinite; }
.hp.is-on::before { background: #ffe9c4; border-color: #fff; box-shadow: 0 0 0 4px rgba(255, 210, 140, 0.25), 0 0 26px 8px rgba(255, 190, 110, 0.65); }
@keyframes ping { 0% { transform: scale(0.6); opacity: 0.9; } 100% { transform: scale(1.5); opacity: 0; } }
.hp__label {
  position: absolute; top: 50%; left: calc(100% + 4px); transform: translate(-6px, -50%);
  padding: 6px 12px; border-radius: 999px; white-space: nowrap; pointer-events: none;
  background: rgba(11, 17, 13, 0.74); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 217, 160, 0.35); color: var(--ink-night); font: 700 0.8rem/1.2 var(--font);
  opacity: 0; transition: opacity 0.45s ease, transform 0.45s var(--ease-out);
}
.hp.is-left .hp__label { left: auto; right: calc(100% + 4px); transform: translate(6px, -50%); }
.hp.is-on .hp__label { opacity: 1; transform: translate(0, -50%); }

/* the small switch next to each light-type photo */
.switch--mini {
  display: inline-grid; grid-template-columns: 40px auto; align-items: center; gap: 10px; flex: none; padding: 7px 12px; padding-inline-start: 8px;
  border: 1px solid rgba(165, 124, 92, 0.45); border-radius: 4px; background: linear-gradient(160deg, #ffffff, #f2ebe1);
  font: 500 0.85rem/1.4 var(--font); color: var(--muted); cursor: pointer; min-height: 44px;
}
.switch__rocker {
  position: relative; width: 40px; height: 26px; border-radius: 4px;
  background: linear-gradient(#e7dfd3, #f7f2ea); box-shadow: inset 0 2px 5px rgba(60, 45, 30, 0.22), 0 1px 0 #fff;
}
.switch__rocker::after {
  content: ""; position: absolute; inset: 4px; border-radius: 3px;
  background: linear-gradient(#ffffff, #ece4d8); box-shadow: 0 4px 6px -2px rgba(60, 45, 30, 0.3);
  transform: perspective(70px) rotateX(22deg); transition: transform 0.28s cubic-bezier(.3, 1.6, .5, 1), background 0.3s;
}
.switch--mini[aria-pressed="true"] { color: var(--green); }
.switch--mini[aria-pressed="true"] .switch__rocker::after { transform: perspective(70px) rotateX(-22deg); background: linear-gradient(#e2cfa6, #a57c5c); }

/* ---------- 4 · Types ---------- */
.types { position: relative; background: var(--sand); padding: clamp(80px, 14vh, 150px) var(--gutter) clamp(100px, 16vh, 170px); }
.types__head { display: grid; gap: 18px; margin-bottom: clamp(40px, 7vh, 72px); max-width: 1320px; }
.types__head h2 { font-size: clamp(2.2rem, 1.2rem + 3.6vw, 4.6rem); line-height: 1.15; }
.types__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(28px, 3vw, 44px) clamp(18px, 2.4vw, 32px); align-items: start; }
.tile { margin: 0; display: grid; gap: 16px; }
.tile--spots { grid-column: span 5; }
.tile--track { grid-column: span 7; margin-top: clamp(40px, 10vh, 120px); }
.tile--sconces { grid-column: span 7; }
.tile--outdoor { grid-column: span 5; margin-top: clamp(40px, 8vh, 90px); }
.tile__frame { position: relative; overflow: hidden; isolation: isolate; aspect-ratio: var(--ar); border-radius: 22px; background: #050706; box-shadow: var(--shadow-photo); }
/* the photo opens like a beam of light, then the lamp in it flickers on */
.motion .tile__frame { clip-path: inset(0 47% 0 47% round 22px); transition: clip-path 1.2s var(--ease-io); }
.motion .tile.is-in .tile__frame { clip-path: inset(-90px -90px -90px -90px round 22px); }
.tile__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile__dark { filter: brightness(0.13) saturate(0.45) hue-rotate(160deg); opacity: 1; transition: opacity 0.5s ease; }
.tile.is-on .tile__dark { opacity: 0; }
.motion .tile.is-on .tile__dark { animation: ignite 1.2s linear both; }
@keyframes ignite {
  0% { opacity: 1; } 7% { opacity: 0.45; } 11% { opacity: 0.95; } 18% { opacity: 0.3; }
  24% { opacity: 0.85; } 34% { opacity: 0.15; } 60% { opacity: 0.05; } 100% { opacity: 0; }
}
.tile figcaption { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.tile h3 { font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem); margin-bottom: 6px; }
.tile p { color: var(--muted); max-width: 34em; }

/* ---------- 5 · Pieces ---------- */
.pieces { position: relative; background: var(--paper); overflow: hidden; }
.pieces__pin { min-height: 100vh; min-height: 100svh; display: grid; grid-template-rows: auto minmax(0, 1fr); padding-top: calc(var(--bar-h) + 32px); padding-bottom: 5vh; }
.pieces__head { padding-inline: var(--gutter); margin-bottom: 4vh; max-width: 1200px; }
.pieces__head h2 { font-size: clamp(1.9rem, 1.1rem + 2.6vw, 3.6rem); line-height: 1.25; }
.pieces__track { display: flex; gap: clamp(28px, 4vw, 64px); padding-inline: var(--gutter); width: max-content; align-items: end; }
.piece { margin: 0; display: grid; gap: 14px; }
.piece__frame {
  position: relative; overflow: hidden; isolation: isolate; height: min(62vh, 640px); aspect-ratio: 3 / 4; background: #050706; box-shadow: var(--shadow-photo);
  border-radius: 50% 50% 22px 22px / 37.5% 37.5% 22px 22px;
}
.piece__frame img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); }
.piece h3 { font-size: clamp(1.3rem, 1.05rem + 0.8vw, 1.8rem); }
.piece p { color: var(--muted); max-width: 26em; }

/* ---------- 6 · Identity ---------- */
.sig { position: relative; background: var(--sand); }
.sig__pin {
  min-height: 100vh; min-height: 100svh; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 88px); align-items: center; padding: calc(var(--bar-h) + 32px) var(--gutter) 48px;
}
.sig__copy { display: grid; gap: clamp(24px, 4vh, 40px); }
.sig__copy h2 { font-size: clamp(2rem, 1.1rem + 2.8vw, 3.8rem); line-height: 1.25; }
.sig__steps { display: grid; gap: 4px; counter-reset: step; }
.sig__steps li {
  counter-increment: step; position: relative; display: grid; grid-template-columns: 2.4em minmax(0, 1fr); gap: 0 14px;
  padding: 14px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: clamp(1rem, 0.95rem + 0.3vw, 1.18rem); line-height: 1.75;
  transition: color 0.5s ease;
}
.sig__steps li::before { content: counter(step, decimal); grid-row: span 2; font-weight: 800; font-size: 1.4em; line-height: 1.2; color: var(--line-2); transition: color 0.5s ease; }
.sig__steps li b { display: block; color: var(--ink-2); font-weight: 700; transition: color 0.5s ease; }
.sig__steps li.is-on { color: var(--ink-2); }
.sig__steps li.is-on::before { color: var(--gold-d); }
.sig__steps li.is-on b { color: var(--green); }
/* the art floats as a hexagonal lantern (the element's own shape), with warm light pooling behind it */
.sig__art { position: relative; aspect-ratio: 1 / 1; max-height: calc(100svh - var(--bar-h) - 80px); width: 100%; justify-self: center; }
.sig__art::before {
  content: ""; position: absolute; inset: 6%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 214, 160, 0.55), rgba(255, 214, 160, 0.18) 55%, transparent);
  filter: blur(18px);
}
.sig__art svg { position: relative; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 34px 38px rgba(44, 57, 48, 0.16)); }
#sig .sig__plate { fill: url(#sig-bg); }
#sig .sig__frame { fill: none; stroke: url(#sig-gold); stroke-width: 3.2; stroke-linejoin: round; }
#sig .sig__frame2 { fill: none; stroke: var(--gold-d); stroke-width: 1.3; opacity: 0.5; stroke-linejoin: round; }
#sig .lines path { fill: none; stroke: var(--gold-d); stroke-width: 2.2; stroke-linejoin: miter; }

/* ---------- 7 · Showrooms: the map visits each one as you scroll ---------- */
.branches { position: relative; background: var(--sand); }
.branches__pin {
  height: 100vh; height: 100svh; padding-top: calc(var(--bar-h) + env(safe-area-inset-top));
  display: grid; grid-template-columns: minmax(360px, 0.8fr) minmax(0, 1.2fr);
}
.branches__side {
  display: flex; flex-direction: column; gap: clamp(12px, 2vh, 20px); min-height: 0; overflow: hidden;
  padding: clamp(20px, 4vh, 44px) var(--gutter); padding-inline-end: clamp(24px, 3vw, 48px);
}
.branches__head { display: grid; gap: 12px; }
.branches__head h2 { font-size: clamp(2rem, 1.1rem + 2.6vw, 3.6rem); line-height: 1.1; }
.branches__head .lede { font-size: 1rem; line-height: 1.75; }
.branches__count { color: var(--gold-ink); font-weight: 700; font-size: 0.9rem; min-height: 1.6em; }
.branches__list { display: grid; border-top: 1px solid var(--line-2); }
.branch { border-bottom: 1px solid var(--line-2); }
.branch__head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 12px 0;
  border: 0; background: none; cursor: pointer; text-align: start; color: var(--ink-2); font: 700 1.05rem/1.4 var(--font);
}
.branch__head::after { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); transition: background 0.3s, box-shadow 0.4s; }
.branch.is-on .branch__head { color: var(--green); }
.branch.is-on .branch__head::after { background: var(--gold-d); box-shadow: 0 0 0 4px rgba(209, 190, 150, 0.35), 0 0 16px 4px rgba(255, 190, 110, 0.5); }
.branch__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.55s var(--ease-io); }
.branch.is-on .branch__body { grid-template-rows: 1fr; }
.branch__inner { min-height: 0; overflow: hidden; display: grid; gap: 10px; }
.branch__inner > :last-child { margin-bottom: 14px; }
.branch address { font-style: normal; color: var(--muted); font-size: 0.95rem; line-height: 1.6; }
.branch__phones { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.branch__phones a { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; text-decoration: none; font-weight: 500; color: var(--green); }
.branch__phones a:hover { color: var(--gold-ink); }
.branch__phones svg { width: 22px; height: 22px; color: var(--gold-d); flex: none; }
.branch__go { justify-self: start; display: inline-flex; align-items: center; min-height: 36px; font-size: 0.9rem; font-weight: 700; color: var(--gold-ink); text-decoration: underline; text-underline-offset: 4px; }
.branches__note { font-size: 0.8rem; color: var(--muted); margin-top: auto; }
.branches__map { position: relative; min-height: 0; }
#map { position: absolute; inset: 0; background: #e9e4dc; z-index: 0; }
@media (min-width: 901px) { .branches__map { margin: 18px; margin-inline-start: 0; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-photo); } }
.leaflet-container { font-family: var(--font); }
.leaflet-tile-pane { filter: sepia(0.18) brightness(1.03); }
.leaflet-tooltip { font-family: var(--font); font-weight: 700; color: var(--green); border-color: rgba(165, 124, 92, 0.5); padding: 6px 10px; }
.leaflet-control-attribution { font-size: 10px; }
.pin { position: relative; width: 44px; height: 44px; }
.leaflet-container .pin { opacity: 0; transform: translateY(-34px) scale(0.6); transition: opacity 0.35s ease, transform 0.7s cubic-bezier(.3, 1.6, .5, 1); }
.leaflet-container .pin.is-shown { opacity: 1; transform: none; }
.leaflet-container .pin img { position: absolute; inset: 9px; width: 26px; height: auto; filter: drop-shadow(0 4px 6px rgba(44, 57, 48, 0.35)); transition: transform 0.3s ease; }
.pin::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 196, 120, 0.55), transparent); transform: scale(0.6); opacity: 0.8; }
.motion .pin::before { animation: pulse 2.4s ease-out infinite; }
.leaflet-container .pin.is-on img { transform: scale(1.4); }
.pin.is-on::before { background: radial-gradient(closest-side, rgba(255, 180, 90, 0.9), transparent); }
@keyframes pulse { 0% { transform: scale(0.5); opacity: 0.9; } 100% { transform: scale(1.6); opacity: 0; } }

/* ---------- 8 · Finale ---------- */
.finale { position: relative; --f-ink: var(--green); --f-muted: var(--muted); }
.finale.is-night { --f-ink: var(--ink-night); --f-muted: var(--muted-night); }
.no-gl .finale, .reduced .finale { background: var(--paper); }
.finale__inner {
  min-height: 100vh; min-height: 100svh; display: grid; grid-template-rows: minmax(260px, 46vh) auto; justify-items: center; text-align: center;
  padding: calc(var(--bar-h) + 24px) var(--gutter) 90px; position: relative;
}
.stage--finale { width: min(100%, 520px); height: 100%; }
.finale__copy { display: grid; gap: 18px; justify-items: center; }
.finale__copy h2 { color: var(--f-ink); font-size: clamp(2.2rem, 1.2rem + 3.6vw, 4.6rem); line-height: 1.2; transition: color 0.8s; }
.finale__copy .lede { color: var(--f-muted); text-align: center; transition: color 0.8s; }
.cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 10px; }
.finale.is-night .btn { background: rgba(11, 17, 13, 0.4); }
.finale.is-night .btn--primary { background: var(--green); }
.cord {
  position: absolute; top: var(--bar-h); inset-inline-end: clamp(16px, 8vw, 140px);
  display: grid; justify-items: center; gap: 6px; padding: 0 6px 6px; background: none; border: 0; color: var(--f-muted);
  cursor: grab; font: 500 0.85rem/1.4 var(--font); touch-action: none;
}
.cord__line { width: 2px; height: clamp(120px, 22vh, 200px); background: linear-gradient(var(--gold-d), var(--gold-l)); transform-origin: top; }
.cord__knob { width: 16px; height: 22px; background: var(--gradient-gold); clip-path: polygon(50% 0, 100% 30%, 100% 100%, 0 100%, 0 30%); }
.cord__label { max-width: 8em; }

/* ---------- Footer ---------- */
.foot { background: var(--sand); color: var(--ink-2); }
.foot::before {
  content: ""; display: block; height: 64px; opacity: 0.5;
  background: url("../img/pattern-tile.svg") 0 50% / 150px auto repeat-x;
  border-bottom: 1px solid var(--line);
}
.foot__main {
  display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 64px);
  padding: clamp(48px, 8vh, 80px) var(--gutter);
}
.foot__brand { display: grid; gap: 18px; align-content: start; }
.foot__brand img { width: 170px; height: auto; }
.foot__brand p { color: var(--muted); max-width: 26em; }
.foot__col { display: grid; gap: 10px; align-content: start; }
.foot__col h3 { font-size: 1rem; margin-bottom: 4px; }
.foot__col a { text-decoration: none; color: var(--ink-2); }
.foot__col a:hover { color: var(--gold-ink); }
.foot__col p { color: var(--muted); }
.foot__bar {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px;
  padding: 18px var(--gutter) calc(18px + env(safe-area-inset-bottom)); background: var(--green); color: #e9e5dc; font-size: 0.9rem;
}
.foot__credit { display: inline-flex; align-items: center; gap: 8px; }
.foot__credit span { opacity: 0.75; }
.foot__maker { color: var(--gold-l); font-weight: 700; text-decoration: none; }
a.foot__maker:hover { text-decoration: underline; }
.flag { width: 30px; height: 20px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35); }

/* ---------- Without motion: everything in place, nothing pinned ---------- */
.reduced .house__pin, .reduced .branches__pin { height: auto; }
.reduced .branches__map { position: sticky; top: var(--bar-h); align-self: start; height: calc(100svh - var(--bar-h)); }
.reduced .house__view { min-height: 70vh; }
.reduced .house__dusk, .reduced .house__dawn { height: 12vh; }

/* ---------- English ---------- */
:lang(en) body { line-height: 1.6; }
:lang(en) .lede, :lang(en) .hero__text { line-height: 1.65; }
:lang(en) h1, :lang(en) h2, :lang(en) h3, :lang(en) .statement__text { letter-spacing: -0.012em; }
:lang(en) .hero__title { line-height: 1.06; }
:lang(en) .statement__text { line-height: 1.18; }
:lang(en) .types__head h2, :lang(en) .branches__head h2, :lang(en) .house__room { line-height: 1.04; }

/* ---------- Tablets and phones ---------- */
@media (max-width: 1100px) {
  .bar__nav { gap: 16px; }
  .bar__nav a { font-size: 0.92rem; }
}
@media (max-width: 900px) {
  :root { --bar-h: 64px; --gutter: 20px; }
  body { font-size: 16px; }

  /* header: brand, language, menu. Contact moves to the dock and the menu. */
  .bar { gap: 10px; }
  .bar__nav, .bar__cta { display: none; }
  .bar__actions { margin-inline-start: auto; gap: 10px; }
  .bar__icon { width: 36px; }
  .bar__type { width: 112px; height: 34px; }
  .bar__menu { display: block; }
  .bar__lang { min-width: 44px; padding: 0 8px; }

  .dock {
    position: fixed; inset: auto 0 0; z-index: 26; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px;
    padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
    background: rgba(251, 248, 243, 0.92); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3);
    border-top: 1px solid var(--line); box-shadow: 0 -12px 30px -20px rgba(44, 57, 48, 0.4);
    transform: translateY(115%); visibility: hidden; transition: transform 0.45s var(--ease-out), visibility 0s linear 0.45s;
  }
  .dock.is-on { transform: none; visibility: visible; transition: transform 0.45s var(--ease-out), visibility 0s; }
  .reduced .dock { visibility: visible; }
  .dock__btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 16px;
    border: 1px solid var(--gold-d); border-radius: 2px; color: var(--green); font-weight: 700; font-size: 0.98rem; text-decoration: none;
  }
  .dock__btn svg { width: 26px; height: 26px; color: var(--gold-d); flex: none; }
  .dock__btn--wa { background: var(--green); border-color: var(--green); color: #fff; }
  .dock__btn--wa svg { color: var(--gold-l); }
  .reduced .dock { transform: none; }
  .reduced .foot__bar { padding-bottom: calc(86px + env(safe-area-inset-bottom)); }

  /* hero: the element on top, the words under it, thumbs reach the actions */
  .hero__inner {
    grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; align-items: stretch; gap: 6px;
    padding: calc(var(--bar-h) + env(safe-area-inset-top) + 4px) var(--gutter) calc(22px + env(safe-area-inset-bottom));
    text-align: center;
  }
  .stage--hero { order: -1; height: auto; min-height: 28svh; }
  .hero__copy { justify-items: center; max-width: none; gap: 14px; }
  .hero__eyebrow { font-size: 0.88rem; text-wrap: balance; }
  .hero__eyebrow .rule { display: none; }
  .hero__title { font-size: clamp(2.1rem, 1.3rem + 4vw, 3rem); }
  .hero__text { font-size: 0.96rem; line-height: 1.7; }
  .hero__actions { width: 100%; display: grid; grid-template-columns: 1fr; gap: 10px; }
  .hero__actions .btn { min-height: 52px; }
  .hero__hint { display: none; }

  .statement__pin { padding-top: calc(var(--bar-h) + 24px); padding-bottom: 48px; }

  /* house: the room on top, the switchboard under it */
  .house { --hpad: 10px; }
  .house__dusk, .house__dawn { height: 30vh; }
  .house__pin { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; }
  .house__view { order: -1; }
  .house__panel { padding: 12px var(--gutter) calc(14px + env(safe-area-inset-bottom)); gap: 10px; overflow: visible; }
  .house__lede, .house__spec { display: none; }
  .house__head h2 { font-size: 0.95rem; color: var(--gold-l); font-weight: 700; }
  .house__tabs { margin-top: 0; gap: 10px; }
  .house__tabs button { font-size: 0.8rem; padding: 4px 0; gap: 8px; }
  .house__now { gap: 4px; }
  .house__room { font-size: 1.6rem; }
  .house__caption { font-size: 0.9rem; line-height: 1.6; min-height: 3.2em; }
  .house__switches { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; border: 0; }
  .sw {
    grid-template-columns: 1fr; justify-items: center; gap: 8px; padding: 10px 6px; text-align: center;
    border: 1px solid var(--line-night); border-radius: 12px; font-size: 0.76rem; line-height: 1.3;
  }
  .sw__dot, .sw__state { display: none; }
  .sw__label { min-height: 2.6em; display: grid; place-items: center; }
  .sw__track { width: 36px; height: 20px; }
  .sw__thumb { width: 14px; height: 14px; }
  .sw[aria-pressed="true"] { border-color: rgba(255, 217, 160, 0.45); background: rgba(255, 217, 160, 0.06); }
  .sw[aria-pressed="true"] .sw__thumb { transform: translateX(calc(var(--flip) * 16px)); }
  /* on a small photo, only the name of the light that just came on */
  .hp.is-on:not(.is-latest) .hp__label { opacity: 0; }
  .hp__label { font-size: 0.74rem; padding: 5px 10px; }

  .types { padding-top: 72px; padding-bottom: 88px; }
  .types__grid { grid-template-columns: 1fr; gap: 44px; }
  .tile--spots, .tile--track, .tile--sconces, .tile--outdoor { grid-column: auto; margin-top: 0; }
  .tile figcaption { align-items: center; }

  /* chandeliers: a row you swipe, the next one always peeking */
  .pieces__pin { min-height: 0; padding-top: 72px; padding-bottom: 72px; }
  .pieces__track {
    width: auto; gap: 14px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter); padding-bottom: 6px; scrollbar-width: none; align-items: start;
  }
  .pieces__track::-webkit-scrollbar { display: none; }
  .piece { flex: 0 0 min(78vw, 340px); scroll-snap-align: start; }
  .piece__frame { height: auto; width: 100%; aspect-ratio: 4 / 5; border-radius: 50% 50% 18px 18px / 40% 40% 18px 18px; }
  .piece__frame img { transform: none; }

  .sig__pin { grid-template-columns: 1fr; align-content: center; gap: 18px; }
  .sig__art { height: 42svh; width: auto; max-height: none; }
  .sig__copy h2 { font-size: 1.6rem; }
  .sig__steps li { padding: 8px 0; font-size: 0.95rem; }
  .motion .sig__steps li:not(.is-on) { display: none; }

  /* showrooms: the map on top, the showroom you are visiting under it */
  .branches__pin { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; }
  .branches__map { order: -1; }
  .branches__side { padding: 14px var(--gutter) calc(16px + env(safe-area-inset-bottom)); gap: 8px; overflow: visible; }
  .branches__head .lede, .branches__note { display: none; }
  .branches__head h2 { font-size: 1.5rem; }
  .branches__count { font-size: 0.82rem; min-height: 1.4em; }
  .branches.is-single .branch:not(.is-on) { display: none; }
  .branches.is-single .branches__list { border-top: 0; }
  .branch__head { padding: 10px 0; font-size: 1rem; }
  .reduced .branches__pin { grid-template-rows: auto auto; }

  .foot__main { grid-template-columns: 1fr 1fr; }
  .foot__brand { grid-column: span 2; }
  .cord { inset-inline-end: 6px; top: calc(var(--bar-h) - 6px); font-size: 0.72rem; }
  .cord__line { height: 84px; }
  .cord__label { max-width: 4.6em; }
  .finale__inner { grid-template-rows: minmax(200px, 34vh) auto; padding-bottom: 64px; }
  .stage--finale { width: 66%; }
  .btn { flex: 1 1 calc(50% - 12px); }
  .btn--primary { flex-basis: 100%; }
}
@media (max-width: 520px) {
  .foot__main { grid-template-columns: 1fr; }
  .foot__brand { grid-column: auto; }
  .foot__bar { justify-content: center; text-align: center; }
}
@media (max-width: 360px) {
  .bar__type { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
