/* Jenile UAE: night to light. Contract in .impeccable/surfaces/src-index-html.md, facts in PRODUCT.md. */

/* Fonts are served from the site itself, so a visit contacts no other company (see privacy.html). */
@font-face { font-family: "Barlow"; font-weight: 400; font-display: swap; src: url("fonts/barlow-400.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow"; font-weight: 500; font-display: swap; src: url("fonts/barlow-500.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow"; font-weight: 600; font-display: swap; src: url("fonts/barlow-600.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-display: swap; src: url("fonts/barlow-condensed-700.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Sans Arabic"; font-weight: 400; font-display: swap; src: url("fonts/plex-arabic-400.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: "IBM Plex Sans Arabic"; font-weight: 600; font-display: swap; src: url("fonts/plex-arabic-600.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FEFC; }

@property --sig { syntax: "<color>"; inherits: true; initial-value: #0b4a39; }
@property --glow { syntax: "<number>"; inherits: true; initial-value: 0; }
@property --flash { syntax: "<color>"; inherits: true; initial-value: #ff4e4e; }
@property --lit { syntax: "<number>"; inherits: true; initial-value: 0; }

:root {
  --night-0: #02140f;
  --night-1: #042018;
  --night-2: #0a3a2d;
  --night-3: #0b4a39;
  --teal: #0e6e54;
  --green: #1a9a6c;
  --lime: #98bf1e;
  --lime-hi: #b2d93a;
  --mint-0: #f3fbf7;
  --mint-1: #e2f4ec;
  --mint-2: #cdebd9;
  --ink: #042018;
  --ink-soft: #2f514a;
  --on-dark: #eaf7f2;
  --on-dark-soft: #a7c9c0;
  --mono: #0d0f0f;
  --mono-soft: #b3b8b6;
  --sig-green: #2bd98a;
  --sig-red: #ff4e4e;
  --sig-blue: #5b8cff;

  --g-night: radial-gradient(120% 85% at 50% 108%, var(--night-3) 0%, var(--night-1) 48%, var(--night-0) 100%); /* taste-skill-ignore: the gradient world the client asked for */
  --g-dusk: radial-gradient(130% 100% at 85% 0%, #0f5a46 0%, var(--night-2) 38%, var(--night-1) 70%, var(--night-0) 100%); /* taste-skill-ignore: the gradient world the client asked for */
  --g-day: linear-gradient(165deg, var(--mint-0) 0%, var(--mint-1) 55%, var(--mint-2) 100%); /* taste-skill-ignore: the gradient world the client asked for */
  --g-duo-a: linear-gradient(160deg, #0b4a39 0%, #0e6e54 60%, #1a9a6c 100%); /* taste-skill-ignore: the gradient world the client asked for */
  --g-duo-b: linear-gradient(200deg, #063a2c 0%, #0f6e57 55%, #3f8f2a 100%); /* taste-skill-ignore: the gradient world the client asked for */

  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-text: "Barlow", system-ui, sans-serif;
  --font-ar: "IBM Plex Sans Arabic", "Noto Sans Arabic", sans-serif;

  --step-small: 0.875rem;
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-sub: clamp(1.875rem, 1.1rem + 2vw, 3rem);
  --step-head: clamp(2.5rem, 1.2rem + 5vw, 5.5rem);
  --step-display: clamp(4rem, 1rem + 11.5vw, 13rem);

  --pad: clamp(16px, 2.6vw, 32px);
  --hdr: 64px;
  --radius: 16px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: dark; -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: rgba(152, 191, 30, 0.25); scroll-padding-top: var(--hdr); scrollbar-color: var(--teal) var(--night-0); accent-color: var(--lime); }
a, button, input, select, textarea, label { touch-action: manipulation; }
body {
  margin: 0; background: var(--night-0); color: var(--on-dark);
  font: 400 var(--step-body) / 1.55 var(--font-text);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; caret-color: var(--lime);
  overflow-x: clip;
}
::selection { background: var(--lime); color: var(--ink); }
img, video { display: block; max-width: 100%; }
img, video { height: auto; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-underline-offset: 0.28em; text-decoration-thickness: 1px; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; border-radius: 6px; }
[lang="ar"] { font-family: var(--font-ar); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 100; padding: 12px 18px; border-radius: 999px; background: var(--lime); color: var(--ink); font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* type voices */
.display, .h-head { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: -0.02em; line-height: 0.9; text-wrap: balance; }
.display { font-size: var(--step-display); }
.h-head { font-size: var(--step-head); }
.lead { font-size: var(--step-lead); line-height: 1.35; }
.small { font-size: var(--step-small); line-height: 1.45; }
p { text-wrap: pretty; }

/* controls */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border: 0; border-radius: 999px;
  font: 600 1rem/1 var(--font-text); letter-spacing: 0.01em; text-decoration: none; cursor: pointer;
  transition: background-color 150ms var(--ease-out), transform 150ms var(--ease-out), color 150ms;
}
.btn:active { transform: scale(0.97); }
.btn--lime { background: var(--lime); color: var(--ink); }
.btn--lime:hover { background: var(--lime-hi); }
.btn--ink { background: var(--ink); color: var(--mint-0); }
.btn--ink:hover { background: var(--teal); }
.btn--quiet { background: rgba(234, 247, 242, 0.12); color: var(--on-dark); }
.btn--quiet:hover { background: rgba(234, 247, 242, 0.22); }
.link {
  display: inline-flex; align-items: baseline; gap: 10px; font-weight: 600; text-decoration: underline;
  text-decoration-thickness: 2px; text-underline-offset: 6px; transition: text-underline-offset 150ms var(--ease-out), color 150ms;
}
.link::after { content: "\2192"; transition: transform 150ms var(--ease-out); }
.link:hover { text-underline-offset: 9px; }
.link:hover::after { transform: translateX(4px); }

/* ---------- header ---------- */

.nav {
  position: sticky; top: 0; z-index: 60; height: var(--hdr);
  display: flex; align-items: center; gap: 28px; padding: 0 var(--pad);
  background: var(--night-0); color: var(--on-dark);
}
.nav__brand { display: flex; align-items: center; flex-shrink: 0; height: 100%; }
.nav__brand img { height: 44px; width: auto; }
.nav__links { margin-left: auto; display: flex; gap: 4px; }
.nav__links a {
  display: block; padding: 10px 14px; border-radius: 999px; font-weight: 500; text-decoration: none;
  color: var(--on-dark-soft); transition: color 150ms, background-color 150ms;
}
.nav__links a:hover { color: var(--on-dark); background: rgba(234, 247, 242, 0.08); }
.nav__links a[aria-current="page"] { color: var(--on-dark); text-decoration: underline; text-decoration-color: var(--lime); text-decoration-thickness: 2px; text-underline-offset: 8px; }
.nav__cta { min-height: 44px; padding: 0 20px; }
.nav__menu { display: none; min-height: 44px; padding: 0 18px; border: 0; border-radius: 999px; background: rgba(234, 247, 242, 0.12); font-weight: 600; cursor: pointer; }
.nav__links .nav__panel-cta { display: none; }
@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__menu { display: inline-flex; align-items: center; margin-left: auto; }
  .nav__cta { display: none; }
  .nav.is-open .nav__links {
    display: flex; flex-direction: column; gap: 0; position: fixed; inset: var(--hdr) 0 0 0; z-index: 59;
    padding: 24px var(--pad) 40px; background: var(--g-night); background-color: var(--night-0); overflow-y: auto; overscroll-behavior: contain;
  }
  .nav.is-open .nav__links a { padding: 14px 0; border-radius: 0; font: 700 clamp(2.25rem, 9vw, 3.5rem)/1 var(--font-display); text-transform: uppercase; color: var(--on-dark); }
  .nav.is-open .nav__links .nav__panel-cta { display: inline-flex; margin-top: 28px; align-self: flex-start; padding: 0 26px; border-radius: 999px; font: 600 1rem/1 var(--font-text); text-transform: none; color: var(--ink); }
}

/* pinned stages sit under the sticky header, not behind it */
html.js .scene.is-live > .scene-stage { top: var(--hdr); height: calc(100svh - var(--hdr)); }

/* ---------- hero: the Light Cube scene ---------- */

.hero {
  --sig: #0b4a39; --glow: 0;
  --cube-h: min(calc((100svh - var(--hdr)) * 0.8), 44vw);
  --cube-w: calc(var(--cube-h) * 0.8);
  background: var(--night-0);
  transition: --sig 700ms var(--ease-out), --glow 700ms var(--ease-out);
}
.hero[data-state="green"] { --sig: var(--sig-green); --glow: 1; }
.hero[data-state="red"] { --sig: var(--sig-red); --glow: 1; }
.hero[data-state="blue"] { --sig: var(--sig-blue); --glow: 1; }
.hero__stage {
  position: relative; min-height: calc(100svh - var(--hdr)); overflow: clip; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 1fr) var(--cube-w) minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto;
  column-gap: clamp(24px, 3vw, 48px); padding: 0 var(--pad);
}
html.js .hero.is-live .hero__stage { min-height: 0; }
.hero__fields, .hero__fields span { position: absolute; inset: 0; }
.hero__fields { z-index: -2; }
.hero__fields span { opacity: 0; transition: opacity 800ms var(--ease-out); }
.hero__field--night { background: var(--g-night); opacity: 1 !important; }
.hero__field--green { background: radial-gradient(110% 90% at 50% 78%, #10804f 0%, #06402a 42%, #02150d 100%); } /* taste-skill-ignore: the gradient world the client asked for */
.hero__field--red { background: radial-gradient(110% 90% at 50% 78%, #9a1d1d 0%, #470b0b 42%, #160404 100%); } /* taste-skill-ignore: the gradient world the client asked for */
.hero__field--blue { background: radial-gradient(110% 90% at 50% 78%, #2348b0 0%, #0d2257 42%, #040a1c 100%); } /* taste-skill-ignore: the gradient world the client asked for */
.hero[data-state="green"] .hero__field--green,
.hero[data-state="red"] .hero__field--red,
.hero[data-state="blue"] .hero__field--blue { opacity: 1; }

.hero__title {
  grid-column: 1 / -1; grid-row: 1; position: relative; z-index: 3; margin-top: clamp(16px, 3svh, 40px);
  text-align: center; font-size: min(var(--step-display), 24svh); color: var(--on-dark); white-space: nowrap;
}
.hero__cube {
  grid-column: 2; grid-row: 1 / -1; align-self: end; position: relative; z-index: 1;
  width: var(--cube-w); height: var(--cube-h); transform-origin: 50% 100%;
}
.hero__halo {
  position: absolute; inset: -30% -75%; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in oklab, var(--sig) 60%, transparent), transparent 72%); /* taste-skill-ignore: the gradient world the client asked for */
  opacity: calc(var(--glow) * 0.9);
}
.hero__photo { position: relative; height: 100%; border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; filter: brightness(calc(0.8 + var(--glow) * 0.08)) saturate(0.9); }
/* The cube lights the way the real one does (the client's photos, October 2026): the band just above
   the ports stays lit in the sound's colour, and the top flashes through other colours to catch the
   eye. A mask of each zone, drawn on this exact photo, shapes two layers: multiply colours the white
   plastic and hard-light makes it glow, brightest where the LEDs sit. */
.hero__zone, .hero__zone::before, .hero__zone::after, .hero__spill, .hero__spill::before, .hero__spill::after { position: absolute; inset: 0; pointer-events: none; }
.hero__zone::before, .hero__zone::after { content: ""; -webkit-mask: var(--mask) center / 100% 100% no-repeat; mask: var(--mask) center / 100% 100% no-repeat; }
.hero__zone::before { background: var(--c); mix-blend-mode: multiply; opacity: calc(var(--on) * 0.75); }
.hero__zone::after { background: var(--core), var(--c); mix-blend-mode: hard-light; opacity: var(--on); }
.hero__zone--band {
  --mask: url("img/photos/light-cube-frame-band.svg"); --c: var(--sig); --on: var(--glow);
  --core: radial-gradient(24% 6.5% at 64% 68.5%, color-mix(in oklab, var(--c) 55%, white), transparent), radial-gradient(14% 6.5% at 31% 68%, color-mix(in oklab, var(--c) 62%, white), transparent); /* taste-skill-ignore: the light inside the cube */
}
.hero__zone--top {
  --mask: url("img/photos/light-cube-frame-top.svg"); --c: var(--flash); --on: var(--lit);
  --core: radial-gradient(24% 9% at 64% 45%, color-mix(in oklab, var(--c) 62%, white), transparent), radial-gradient(15% 9% at 31% 45%, color-mix(in oklab, var(--c) 68%, white), transparent), radial-gradient(26% 4% at 49% 37.5%, color-mix(in oklab, var(--c) 50%, white), transparent); /* taste-skill-ignore: the light inside the cube */
}
/* the band's light on the table, and each flash's light in the room */
.hero__spill::before, .hero__spill::after { content: ""; mix-blend-mode: screen; }
.hero__spill::before { background: radial-gradient(52% 13% at 50% 88%, var(--sig), transparent 75%); opacity: calc(var(--glow) * 0.6); } /* taste-skill-ignore: light thrown by the cube */
.hero__spill::after { background: radial-gradient(48% 26% at 50% 40%, var(--flash), transparent 70%); opacity: calc(var(--lit) * 0.4); } /* taste-skill-ignore: light thrown by the cube */
/* Four flashes in 2.4 s, red, blue, white and violet, each on for about 0.3 s. That is under two flashes
   a second, below the three a second that WCAG 2.3.1 allows. The colour changes while the top is dark.
   Under reduced motion the animation is off, so the top stays dark and only the band lights. */
.hero:is([data-state="green"], [data-state="red"], [data-state="blue"]) .hero__cube { animation: flash 2.4s linear infinite; }
.hero.is-away .hero__cube { animation-play-state: paused; }
@keyframes flash {
  0%, 18.75% { --flash: #ff4e4e; }
  25%, 43.75% { --flash: #5b8cff; }
  50%, 68.75% { --flash: #dde6f2; }
  75%, 93.75% { --flash: #b07cff; }
  100% { --flash: #ff4e4e; }
  0%, 18.75%, 25%, 43.75%, 50%, 68.75%, 75%, 93.75%, 100% { --lit: 0; }
  2.5%, 15%, 27.5%, 40%, 52.5%, 65%, 77.5%, 90% { --lit: 1; }
}
/* the smoke alarm's buzz: the receiver vibrates, so the picture shakes for under a second */
.hero[data-state="red"] .hero__photo { animation: buzz 80ms linear 10 alternate; }
@keyframes buzz { from { transform: translate(-2px, 1px) rotate(-0.3deg); } to { transform: translate(2px, -1px) rotate(0.3deg); } }

.hero__picker { grid-column: 3; grid-row: 2; align-self: center; justify-self: end; position: relative; z-index: 2; width: min(300px, 100%); display: grid; gap: 8px; }
.hero__picker-label { font-size: var(--step-small); color: var(--on-dark-soft); margin-bottom: 4px; }
.sound {
  display: grid; grid-template-columns: 18px 1fr; column-gap: 14px; align-items: center; text-align: left;
  width: 100%; min-height: 64px; padding: 12px 18px; border: 0; border-radius: 14px; cursor: pointer;
  background: rgba(234, 247, 242, 0.08); color: var(--on-dark);
  transition: background-color 200ms var(--ease-out), transform 150ms var(--ease-out);
}
.sound:hover { background: rgba(234, 247, 242, 0.15); }
.sound:active { transform: scale(0.98); }
.sound__dot { grid-row: span 2; width: 14px; height: 14px; border-radius: 50%; background: var(--c); }
.sound b { font-weight: 600; }
.sound span:last-child { font-size: var(--step-small); color: var(--on-dark-soft); }
.sound[data-signal="green"] { --c: var(--sig-green); }
.sound[data-signal="red"] { --c: var(--sig-red); }
.sound[data-signal="blue"] { --c: var(--sig-blue); }
.hero[data-state="green"] .sound[data-signal="green"],
.hero[data-state="red"] .sound[data-signal="red"],
.hero[data-state="blue"] .sound[data-signal="blue"] { background: color-mix(in oklab, var(--c) 30%, rgba(2, 20, 15, 0.6)); }
.hero[data-state="green"] .sound[data-signal="green"] .sound__dot,
.hero[data-state="red"] .sound[data-signal="red"] .sound__dot,
.hero[data-state="blue"] .sound[data-signal="blue"] .sound__dot { /* taste-skill-ignore: the dot glows like the receiver it stands for */ box-shadow: 0 0 0 5px color-mix(in oklab, var(--c) 35%, transparent), 0 0 18px var(--c); }

.hero__lede { grid-column: 1; grid-row: 3; align-self: end; position: relative; z-index: 2; max-width: 30ch; margin-bottom: clamp(24px, 5svh, 56px); font-size: var(--step-lead); line-height: 1.35; }
.hero__cta { grid-column: 3; grid-row: 3; align-self: end; justify-self: end; position: relative; z-index: 2; margin-bottom: clamp(24px, 5svh, 56px); }

/* short laptop screens */
@media (min-width: 1100px) and (max-height: 700px) {
  .sound { min-height: 54px; padding-block: 8px; }
  .hero__lede { font-size: var(--step-body); }
}
/* landscape tablets, unfolded phones held sideways, small laptops: the cube left, the words beside it */
@media (min-width: 600px) and (max-width: 1099px) and (orientation: landscape) {
  .hero { --cube-h: min(calc((100svh - var(--hdr)) * 0.66), 46vw); }
  .hero__stage { grid-template-columns: var(--cube-w) minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto auto auto minmax(0, 1fr); }
  .hero__title { font-size: min(var(--step-display), 18svh); }
  .hero__cube { grid-column: 1; grid-row: 2 / -1; }
  .hero__picker, .hero__lede, .hero__cta { grid-column: 2; align-self: start; justify-self: start; margin: 0; }
  .hero__lede { grid-row: 3; max-width: 34ch; font-size: var(--step-lead); }
  .hero__picker { grid-row: 4; margin-top: 26px; width: min(420px, 100%); }
  .hero__cta { grid-row: 5; margin-top: 22px; }
}
/* phones, portrait tablets and folding phones: one column, and the cube takes the room that is left */
@media (max-width: 1099px) and (orientation: portrait), (max-width: 599px) {
  .hero__stage { display: flex; flex-direction: column; align-items: center; gap: clamp(10px, 1.8svh, 18px); padding: clamp(12px, 2svh, 28px) var(--pad) clamp(16px, 2.6svh, 32px); }
  .hero__title { margin: 0; font-size: min(19vw, 11svh); white-space: normal; line-height: 0.88; }
  .hero__cube { flex: 1 1 0; min-height: 120px; width: auto; height: auto; max-width: 100%; aspect-ratio: 4 / 5; transform-origin: 50% 50%; }
  .hero:not(.is-live) .hero__cube { flex: none; width: min(62vw, 380px, 42svh); }
  .hero__photo { border-radius: var(--radius); }
  .hero__halo { inset: -25% -45%; }
  .hero__picker { width: 100%; max-width: 640px; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .hero__picker-label { grid-column: 1 / -1; margin: 0; text-align: center; }
  .sound { grid-template-columns: 1fr; justify-items: center; row-gap: 4px; min-height: 56px; padding: 8px 6px; text-align: center; }
  .sound__dot { grid-row: auto; }
  .hero__lede { max-width: 36ch; margin: 0; font-size: var(--step-lead); line-height: 1.35; text-align: center; }
  .hero__cta { margin: 0; }
  .hero__cube, .hero__lede, .hero__cta { align-self: center; }
}
@media (min-width: 600px) and (max-width: 1099px) and (orientation: portrait) {
  .hero__title { font-size: min(12vw, 11svh); white-space: nowrap; }
  .hero__lede { font-size: var(--step-lead); line-height: 1.35; }
}
@media (max-width: 340px) {
  .hero__lede { font-size: 1rem; line-height: 1.45; }
}
@media (max-width: 599px) {
  .sound span:last-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* ---------- hotels: one frame, three moments ---------- */

.hotels { background: var(--g-dusk); background-color: var(--night-1); }
.hotels__stage { position: relative; padding: clamp(72px, 9vw, 140px) var(--pad); }
.hotels__a, .hotels__b { display: block; }
.hotels__title { text-align: center; font-size: var(--step-head); }

/* the finished composition (no script, reduced motion, tablets, phones): three moments, each over its step */
.hotels__frame, .hotels__steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 2vw, 24px); max-width: 1200px; margin-inline: auto; }
.hotels__frame { margin-top: clamp(32px, 5vw, 56px); }
.hotels__img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); background: var(--night-2); }
.hotels__steps { margin-top: 22px; }
.hotels__steps li { display: grid; gap: 6px; align-content: start; }
.hotels__steps b { font: 700 var(--step-lead)/1.1 var(--font-display); text-transform: uppercase; }
.hotels__steps span { color: var(--on-dark-soft); }
.hotels__note { display: grid; gap: 16px; justify-items: start; max-width: 1200px; margin: clamp(40px, 6vw, 72px) auto 0; }
.hotels__note > p { max-width: 56ch; }
.hotels__date { font: 700 var(--step-lead)/1.1 var(--font-display); text-transform: uppercase; color: var(--lime); }
.hotels__note p:not(.hotels__date) { color: var(--on-dark-soft); }
@media (max-width: 599px) {
  .hotels__frame { gap: 8px; }
  .hotels__img { aspect-ratio: 3 / 4; border-radius: 12px; }
  .hotels__steps { grid-template-columns: 1fr; gap: 22px; margin-top: 28px; }
}

/* live, on wide screens: the stage holds while three film stills take turns in one frame */
html.js .hotels.is-live .hotels__stage {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: auto minmax(0, 1fr) auto;
  column-gap: 24px; align-items: center; padding: 2svh var(--pad) 3svh;
}
html.js .hotels.is-live .hotels__title { display: contents; }
html.js .hotels.is-live .hotels__a { grid-column: 1 / -1; grid-row: 1; position: relative; z-index: 2; margin-bottom: -0.3em; text-align: center; }
html.js .hotels.is-live .hotels__b { grid-column: 1 / -1; grid-row: 3; position: relative; z-index: 2; margin-top: -0.3em; text-align: center; }
html.js .hotels.is-live .hotels__frame {
  grid-column: 5 / span 4; grid-row: 2; display: block; position: relative; justify-self: center;
  height: 100%; width: min(100%, calc((100svh - 14rem) * 0.8)); max-width: none; margin: 0;
  border-radius: var(--radius); overflow: hidden; background: var(--night-2);
}
html.js .hotels.is-live .hotels__img { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; border-radius: 0; opacity: 0; scale: 1.06; transition: opacity 700ms var(--ease-out), scale 1200ms var(--ease-out); }
html.js .hotels.is-live:not([data-beat]) .hotels__img:first-child,
html.js .hotels.is-live[data-beat="0"] .hotels__img:nth-child(1),
html.js .hotels.is-live[data-beat="1"] .hotels__img:nth-child(2),
html.js .hotels.is-live[data-beat="2"] .hotels__img:nth-child(3) { opacity: 1; scale: 1; }
html.js .hotels.is-live .hotels__steps { grid-column: 1 / span 4; grid-row: 2; grid-template-columns: none; gap: 28px; max-width: none; margin: 0; }
html.js .hotels.is-live .hotels__steps li { max-width: 30ch; opacity: 0.75; transition: opacity 400ms var(--ease-out), translate 400ms var(--ease-out); }
html.js .hotels.is-live:not([data-beat]) .hotels__steps li:first-child,
html.js .hotels.is-live[data-beat="0"] .hotels__steps li:nth-child(1),
html.js .hotels.is-live[data-beat="1"] .hotels__steps li:nth-child(2),
html.js .hotels.is-live[data-beat="2"] .hotels__steps li:nth-child(3) { opacity: 1; translate: 8px 0; }
html.js .hotels.is-live .hotels__note { grid-column: 10 / span 3; grid-row: 2; max-width: none; margin: 0; }

/* ---------- how it works: one verb at a time, each panel laid over the last ---------- */

.verbs { background: var(--night-0); }
.verb { position: sticky; top: var(--hdr); height: calc(100svh - var(--hdr)); color: #fff; }
.verb:not(:last-of-type) { margin-bottom: 20svh; }
.verb__inner { position: relative; height: 100%; display: grid; place-items: center; overflow: clip; transform-origin: 50% 0; }
.verb__inner::after { content: ""; position: absolute; inset: 0; z-index: 3; background: var(--night-0); opacity: var(--dim, 0); pointer-events: none; }
.verb__media { position: absolute; inset: 0; background: var(--g-duo-a); }
.verb:nth-of-type(even) .verb__media { background: var(--g-duo-b); }
.verb__media::after { content: ""; position: absolute; inset: 0; background: radial-gradient(55% 45% at 50% 50%, rgba(2, 20, 15, 0.42), transparent 78%); } /* taste-skill-ignore: a neutral scrim over a photo */
.verb__media img, .verb__media video { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: luminosity; opacity: 0.62; }
.verb__media video { mix-blend-mode: normal; opacity: 0.85; }
.verb__word { position: relative; z-index: 1; margin: 0; text-align: center; font-size: var(--step-display); }
.verb__text {
  position: absolute; z-index: 2; left: var(--pad); bottom: clamp(24px, 5svh, 56px); max-width: 38ch; padding: 22px 26px;
  border-radius: 14px; background: rgba(2, 20, 15, 0.72); font-size: var(--step-lead); line-height: 1.35;
}
.verb__pause { position: absolute; z-index: 2; right: var(--pad); bottom: clamp(24px, 5svh, 56px); }
@media (max-width: 767px) {
  .verb__word { font-size: min(19vw, 11svh); }
  .verb__text { right: var(--pad); padding: 18px 20px; font-size: var(--step-body); }
  .verb__pause { top: 16px; bottom: auto; }
}

/* ---------- one system, every room ---------- */

.rooms { background: var(--g-day); background-color: var(--mint-0); color: var(--ink); padding: clamp(96px, 11vw, 180px) var(--pad); }
.rooms__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
.rooms__head { grid-column: 1 / span 4; align-self: start; position: sticky; top: calc(var(--hdr) + 40px); display: grid; gap: 24px; }
.rooms__title { font-size: var(--step-head); }
.rooms__intro { max-width: 28ch; font-size: var(--step-lead); line-height: 1.35; }
.rooms__key { display: grid; gap: 12px; }
.rooms__key li { display: grid; grid-template-columns: 16px auto; column-gap: 14px; align-items: center; }
.rooms__key i { width: 16px; height: 16px; border-radius: 50%; background: var(--c); }
.rooms__key b { font-weight: 600; }
.rooms__key [data-c="red"] { --c: var(--sig-red); }
.rooms__key [data-c="green"] { --c: var(--sig-green); }
.rooms__key [data-c="blue"] { --c: var(--sig-blue); }
.rooms__key [data-c="white"] { --c: #fff; border: 1.5px solid rgba(4, 32, 28, 0.5); }
.rooms__list { grid-column: 6 / span 7; display: grid; gap: clamp(64px, 7vw, 112px); }
.room { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 3vw, 44px); align-items: center; }
.room__img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); background: var(--mint-2); }
.room:nth-child(even) .room__img { order: 2; }
.room__body { display: grid; gap: 18px; justify-items: start; }
.room h3 { font: 700 var(--step-sub)/0.95 var(--font-display); text-transform: uppercase; letter-spacing: -0.01em; }
.room ul { display: grid; gap: 12px; }
.room li { position: relative; padding-left: 22px; }
.room li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 9px; height: 9px; border-radius: 50%; background: var(--teal); }
.room .link { margin-top: 4px; color: var(--ink); }
@media (max-width: 1199px) {
  .room { grid-template-columns: 1fr; }
  .room:nth-child(even) .room__img { order: 0; }
  .room__img { aspect-ratio: 16 / 10; }
}
@media (max-width: 900px) {
  .rooms__grid { display: block; }
  .rooms__head { position: static; margin-bottom: 64px; }
  .rooms__key { grid-template-columns: repeat(2, max-content); column-gap: 32px; }
}
@media (min-width: 600px) and (max-width: 900px) {
  .room { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .room:nth-child(even) .room__img { order: 2; }
  .room__img { aspect-ratio: 1; }
}
@media (max-width: 599px) {
  .rooms__key { grid-template-columns: 1fr; }
  .room__img { aspect-ratio: 4 / 3; }
}

/* ---------- the moving band of sounds ---------- */

.band { background: var(--lime); color: var(--ink); overflow: clip; }
.band__track { display: flex; width: max-content; padding-block: clamp(28px, 4.5svh, 56px) clamp(16px, 2.5svh, 32px); }
.band__run { display: flex; align-items: center; gap: 0.45em; padding-right: 0.45em; flex-shrink: 0; font: 700 var(--step-display)/0.9 var(--font-display); text-transform: uppercase; letter-spacing: -0.02em; white-space: nowrap; }
.band__run i { display: inline-block; width: 0.22em; height: 0.22em; border-radius: 50%; background: var(--ink); }
.band__note { max-width: calc(52ch + 2 * var(--pad)); padding: 0 var(--pad) clamp(36px, 5.5svh, 72px); font-size: var(--step-lead); line-height: 1.35; }

/* ---------- founders: a pinned title, portraits pass ---------- */

.founders { background: radial-gradient(90% 70% at 50% 40%, #1d2120 0%, var(--mono) 70%); background-color: var(--mono); color: #f2f2f2; } /* taste-skill-ignore: the gradient world the client asked for */
.founders__stage {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(48px, 6vw, 80px) clamp(24px, 4vw, 64px);
  max-width: 1240px; margin-inline: auto; padding: clamp(80px, 10vw, 140px) var(--pad) clamp(40px, 5vw, 64px);
}
.founders__title { grid-column: 1 / -1; font-size: min(var(--step-display), 22svh); line-height: 0.85; text-align: center; color: #fff; }
.person img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 22%; border-radius: var(--radius); filter: grayscale(1) contrast(1.05); background: #222; }
.person--wide img { aspect-ratio: auto; }
.person figcaption { display: grid; gap: 4px; max-width: 40ch; margin-top: 18px; }
.person b { font-size: var(--step-lead); font-weight: 600; }
.person .small { color: var(--mono-soft); }
.person p:not(.small) { margin-top: 8px; color: #e1e3e2; }
@media (max-width: 599px) {
  .founders__stage { grid-template-columns: 1fr; }
  .founders__title { font-size: min(var(--step-display), 17vw); }
}

/* live, on wide screens: the title holds in the middle while the portraits rise through it */
html.js .founders.is-live .founders__stage { display: block; max-width: none; margin: 0; padding: 0; }
html.js .founders.is-live .founders__title { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; mix-blend-mode: difference; pointer-events: none; }
html.js .founders.is-live .person { position: absolute; inset: 0; pointer-events: none; }
html.js .founders.is-live .person img { position: absolute; top: 0; left: 7vw; width: min(26vw, 400px); will-change: transform; }
html.js .founders.is-live .person:nth-of-type(even) img { left: auto; right: 7vw; }
html.js .founders.is-live .person figcaption {
  position: absolute; left: 50%; bottom: clamp(24px, 5svh, 56px); translate: -50% 0; width: min(40ch, 30vw); margin: 0;
  justify-items: center; text-align: center; opacity: 0; transition: opacity 500ms var(--ease-out);
}
html.js .founders.is-live:not([data-beat]) .person:nth-of-type(1) figcaption,
html.js .founders.is-live[data-beat="0"] .person:nth-of-type(1) figcaption,
html.js .founders.is-live[data-beat="1"] .person:nth-of-type(2) figcaption,
html.js .founders.is-live[data-beat="2"] .person:nth-of-type(3) figcaption,
html.js .founders.is-live[data-beat="3"] .person:nth-of-type(4) figcaption { opacity: 1; }

.founders-close { background: var(--mono); color: #f2f2f2; padding: clamp(24px, 4vw, 56px) var(--pad) clamp(80px, 9vw, 140px); }
.founders-close > div { display: grid; gap: 18px; justify-items: start; max-width: 1240px; margin-inline: auto; }
.founders-close p { max-width: 44ch; font-size: var(--step-lead); line-height: 1.35; }
.founders-close [lang="ar"] { color: var(--lime); }

/* ---------- the close: last photograph, text beside ---------- */

.close { position: relative; min-height: 90svh; display: grid; align-items: end; overflow: clip; background: var(--night-0); }
.close__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 40%; filter: brightness(0.85); }
.close::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(2, 20, 15, 0.9) 0%, rgba(2, 20, 15, 0.6) 38%, rgba(2, 20, 15, 0) 62%); } /* taste-skill-ignore: a neutral scrim over a photo */
.close__text { position: relative; z-index: 2; display: grid; gap: 22px; justify-items: start; max-width: min(760px, 56vw); padding: 0 var(--pad) clamp(48px, 9svh, 110px); }
.close__title { font-size: var(--step-head); }
.close__text p { max-width: 40ch; font-size: var(--step-lead); line-height: 1.35; color: var(--on-dark); }
@media (max-width: 767px) {
  .close { display: block; min-height: 0; }
  .close__img { position: relative; height: 62svh; object-position: 72% 35%; }
  .close::before { display: none; }
  .close__text { max-width: none; padding: 32px var(--pad) 56px; background: var(--night-0); }
}

/* ---------- footer: photograph half, menu half ---------- */

.foot { display: grid; grid-template-columns: 1fr 1fr; min-height: 100svh; background: var(--g-night); background-color: var(--night-0); }
.foot__photo { position: relative; overflow: hidden; }
.foot__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }
.foot__menu { display: flex; flex-direction: column; gap: 40px; padding: clamp(40px, 6vw, 80px) var(--pad) 28px clamp(28px, 5vw, 72px); }
.foot__logo { align-self: flex-start; width: auto; height: 64px; }
.foot__links { display: grid; gap: 6px; }
.foot__links a { display: inline-block; font: 700 var(--step-sub)/1.05 var(--font-display); text-transform: uppercase; text-decoration: none; transition: transform 150ms var(--ease-out), color 150ms; }
.foot__links:hover a { color: var(--on-dark-soft); }
.foot__links a:hover, .foot__links a:focus-visible { color: var(--on-dark); transform: translateX(12px); }
.foot__blocks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; font-size: var(--step-small); color: var(--on-dark-soft); }
.foot__blocks h2 { margin-bottom: 10px; font: 600 var(--step-small)/1.4 var(--font-text); color: var(--on-dark); }
.foot__blocks li + li { margin-top: 6px; }
.foot__blocks a { text-decoration: none; }
.foot__blocks a:hover { text-decoration: underline; }
.foot__blocks address { font-style: normal; }
.foot__blocks address + address { margin-top: 10px; }
.foot__tag { font-size: var(--step-lead); line-height: 1.35; }
.foot__tag [lang="ar"] { display: block; color: var(--lime); }
.foot__legal { margin-top: auto; font-size: var(--step-small); color: var(--on-dark-soft); }
@media (max-width: 900px) {
  .foot { grid-template-columns: 1fr; min-height: 0; }
  .foot__photo { height: 36svh; }
  .foot__menu { padding: 40px var(--pad); }
}
@media (max-width: 560px) { .foot__blocks { grid-template-columns: 1fr; } }

/* ==================== inner pages ==================== */

/* the opening: each page in its own signal colour, its title, one action and a real picture */
.phero {
  --f1: var(--night-3); --f2: var(--night-1);
  position: relative; overflow: clip; isolation: isolate; background-color: var(--night-0);
  background-image: radial-gradient(95% 85% at 78% 100%, var(--f1) 0%, var(--f2) 46%, var(--night-0) 100%); /* taste-skill-ignore: the gradient world the client asked for */
}
.phero[data-signal="green"] { --f1: #0f7a4c; --f2: #053a26; }
.phero[data-signal="red"] { --f1: #7d1a1a; --f2: #360909; }
.phero[data-signal="blue"] { --f1: #2146a6; --f2: #0c1f50; }
.phero[data-signal="mono"] { --f1: #2b2f2e; --f2: #151817; }
.phero__grid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 40px; align-items: center;
  min-height: min(calc(92svh - var(--hdr)), 920px); padding: clamp(48px, 7vw, 104px) var(--pad);
  max-width: calc(1240px + 2 * var(--pad)); margin-inline: auto; /* the same column as the sections below */
}
.phero__text { grid-column: 1 / span 6; display: grid; gap: 26px; justify-items: start; }
.phero__title { font-size: var(--step-head); }
.phero__lede { max-width: 36ch; font-size: var(--step-lead); line-height: 1.35; }
.phero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 4px; }
.phero__media { grid-column: 8 / span 5; position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--night-2); }
.phero__media img { width: 100%; height: 100%; object-fit: cover; }
.phero--text .phero__grid { min-height: 0; padding-block: clamp(72px, 10vw, 150px) clamp(48px, 6vw, 88px); }
.phero--text .phero__text { grid-column: 1 / span 9; }
/* a text hero with a summary card in place of a picture (privacy) */
.phero--split .phero__text { grid-column: 1 / span 6; }
.phero__aside { grid-column: 8 / span 5; display: grid; gap: 22px; padding: clamp(24px, 3vw, 40px); border-radius: var(--radius); background: rgba(234, 247, 242, 0.07); }
/* the showreel in place of a picture (videos) */
.phero--reel .phero__text { grid-column: 1 / span 5; }
.phero__reel { grid-column: 7 / span 6; display: grid; gap: 14px; margin: 0; }
.phero__reel video { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radius); background: var(--night-2); }
.phero__reel figcaption { max-width: 60ch; font-size: var(--step-small); color: var(--on-dark-soft); }
.phero__reel figcaption b { color: var(--on-dark); font-weight: 600; }
@media (max-width: 900px) {
  .phero__grid { grid-template-columns: 1fr; min-height: 0; }
  .phero__text, .phero--text .phero__text, .phero--split .phero__text, .phero--reel .phero__text, .phero__media, .phero__aside, .phero__reel { grid-column: 1 / -1; }
  .phero__media { aspect-ratio: 4 / 3; }
}

/* sections */
.sect { padding: clamp(80px, 10vw, 150px) var(--pad); }
.sect--dusk { background: var(--g-dusk); background-color: var(--night-1); }
.sect--day { background: var(--g-day); background-color: var(--mint-0); color: var(--ink); }
.sect--mono { background: var(--mono); color: #f2f2f2; }
.sect--lime { background: var(--lime); color: var(--ink); }
.wrap { max-width: 1240px; margin-inline: auto; }
.sect__head { display: grid; gap: 20px; max-width: 1240px; margin: 0 auto clamp(40px, 5vw, 72px); }
.sect__head > p { max-width: 50ch; font-size: var(--step-lead); line-height: 1.35; }
.sect__after { max-width: 1240px; margin: clamp(32px, 4vw, 56px) auto 0; }
.h-sub { font: 700 var(--step-sub)/0.95 var(--font-display); text-transform: uppercase; letter-spacing: -0.01em; text-wrap: balance; }
.soft { color: var(--on-dark-soft); }
.sect--day .soft { color: var(--ink-soft); }
.sect--mono .soft { color: var(--mono-soft); }

.dots { display: grid; gap: 12px; }
.dots li { position: relative; padding-left: 22px; }
.dots li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 9px; height: 9px; border-radius: 50%; background: var(--lime); }
.sect--day .dots li::before, .sect--lime .dots li::before { background: var(--teal); }

.cols { display: grid; grid-template-columns: repeat(var(--n, 2), minmax(0, 1fr)); gap: clamp(36px, 4vw, 64px); max-width: 1240px; margin-inline: auto; }
.cols > * { display: grid; gap: 18px; align-content: start; justify-items: start; }
.cols--3 { --n: 3; }
.cols--4 { --n: 4; }
@media (max-width: 900px) { .cols--3, .cols--4 { --n: 2; } }
@media (max-width: 599px) { .cols, .cols--3, .cols--4 { --n: 1; } }

/* a picture beside its words */
.split { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 40px; align-items: center; max-width: 1240px; margin-inline: auto; }
.split__media { grid-column: 1 / span 6; }
.split__text { grid-column: 8 / span 5; display: grid; gap: 22px; justify-items: start; }
.split--flip .split__media { grid-column: 7 / span 6; grid-row: 1; }
.split--flip .split__text { grid-column: 1 / span 5; grid-row: 1; }
.split__media img, .split__media video { width: 100%; border-radius: var(--radius); }
.split__media--tall { width: 100%; max-width: 420px; justify-self: center; }
.split__lead { font-size: var(--step-lead); line-height: 1.35; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split__media, .split__text, .split--flip .split__media, .split--flip .split__text { grid-column: 1 / -1; grid-row: auto; }
}
.figure { max-width: 1240px; margin-inline: auto; }
.figure img { width: 100%; border-radius: var(--radius); background: #fff; }
.figure figcaption { max-width: 56ch; margin-top: 16px; }

/* products as picture cards */
.items { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: clamp(32px, 3vw, 44px) clamp(16px, 2vw, 28px); max-width: 1240px; margin-inline: auto; }
.item { display: grid; gap: 10px; align-content: start; }
.item[hidden] { display: none; }
.item__img { aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; background: #fff; }
.item__img img { width: 100%; height: 100%; object-fit: cover; }
.item__img--small img { object-fit: contain; padding: 14%; }
.item__img--type { display: grid; place-items: center; background: var(--teal); color: var(--mint-0); }
.item__img--type span { font: 700 var(--step-sub)/1 var(--font-display); text-transform: uppercase; }
.item__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 6px; font-size: var(--step-small); }
.item__code { font-weight: 600; }
.item__name { font: 700 var(--step-lead)/1.05 var(--font-display); text-transform: uppercase; }
.item__where { font-size: var(--step-small); }
.item p:not(.item__meta) { color: var(--on-dark-soft); }
.sect--day .item p:not(.item__meta) { color: var(--ink-soft); }
.item__where b { font-weight: 600; color: var(--on-dark); }
.sect--day .item__where b { color: var(--ink); }
.sig { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; white-space: nowrap; }
.sig i { width: 10px; height: 10px; border-radius: 50%; background: var(--c, currentColor); }
.sig--red { --c: var(--sig-red); }
.sig--green { --c: var(--sig-green); }
.sig--blue { --c: var(--sig-blue); }
.sig--white i { background: #fff; border: 1.5px solid rgba(4, 32, 28, 0.45); }
.sig--all { gap: 3px; }
.sig--all i:nth-of-type(1) { --c: var(--sig-red); }
.sig--all i:nth-of-type(2) { --c: var(--sig-green); }
.sig--all i:nth-of-type(3) { --c: var(--sig-blue); margin-right: 3px; }
.sig--vibration i, .sig--none i { background: none; border: 2px solid currentColor; }

/* the catalogue's filters */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; max-width: 1240px; margin: 0 auto clamp(32px, 4vw, 48px); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter { min-height: 44px; padding: 0 18px; border: 0; border-radius: 999px; background: rgba(4, 32, 28, 0.08); color: var(--ink); font-weight: 600; cursor: pointer; transition: background-color 150ms var(--ease-out), color 150ms; }
.filter:hover { background: rgba(4, 32, 28, 0.14); }
.filter[aria-pressed="true"] { background: var(--ink); color: var(--mint-0); }

/* packs */
.packs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(20px, 3vw, 40px); max-width: 1240px; margin-inline: auto; }
/* each pack shares its rows with its neighbours, so titles, lists and buttons line up across the row */
.pack { grid-row: span 5; display: grid; grid-template-rows: subgrid; row-gap: 16px; justify-items: start; margin-bottom: clamp(40px, 4vw, 56px); }
.pack .btn { align-self: end; }
.pack__img { width: 100%; aspect-ratio: 1; object-fit: contain; padding: 6%; border-radius: var(--radius); background: #fff; }
.pack__code { font-size: var(--step-small); font-weight: 600; }
@media (max-width: 900px) { .packs { grid-template-columns: 1fr; max-width: 520px; } }

/* films and clips */
.reels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(36px, 4vw, 56px) clamp(20px, 3vw, 40px); max-width: 1240px; margin-inline: auto; }
.reels--tall { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 1040px; }
.reels + .reels { margin-top: clamp(48px, 6vw, 88px); }
.reel { display: grid; gap: 8px; align-content: start; }
.reel video { width: 100%; aspect-ratio: 16 / 9; margin-bottom: 8px; border-radius: var(--radius); background: #000; }
.reels--tall .reel video { aspect-ratio: 9 / 16; }
.reel h3 { font: 700 var(--step-lead)/1.05 var(--font-display); text-transform: uppercase; }
@media (max-width: 767px) {
  .reels { grid-template-columns: 1fr; }
  .reels--tall { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 479px) { .reels--tall { grid-template-columns: 1fr; max-width: 340px; } }

.resource { display: grid; gap: 18px; justify-items: start; }
.resource p { max-width: 60ch; }

/* a date that matters */
.when { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 28px; align-items: end; max-width: 1240px; margin-inline: auto; }
.when__date { grid-column: 1 / span 7; font-size: var(--step-head); }
.when__text { grid-column: 8 / span 5; display: grid; gap: 20px; justify-items: start; }
.when__text p { font-size: var(--step-lead); line-height: 1.35; }
@media (max-width: 900px) { .when { grid-template-columns: 1fr; } .when__date, .when__text { grid-column: 1 / -1; } }

/* about: the journey and the founders */
.journey { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(28px, 3vw, 44px); max-width: 1240px; margin-inline: auto; }
.journey b { display: block; margin-bottom: 12px; font: 700 var(--step-sub)/1 var(--font-display); text-transform: uppercase; color: var(--lime); }
@media (max-width: 900px) { .journey { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 479px) { .journey { grid-template-columns: 1fr; } }
.founder { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 32px; align-items: center; max-width: 1240px; margin-inline: auto; }
.founder + .founder { margin-top: clamp(72px, 9vw, 130px); }
.founder__img { grid-column: 1 / span 5; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; border-radius: var(--radius); filter: grayscale(1) contrast(1.05); background: #222; }
.founder__text { grid-column: 7 / span 6; display: grid; gap: 18px; justify-items: start; }
.founder--flip .founder__img { grid-column: 8 / span 5; grid-row: 1; }
.founder--flip .founder__text { grid-column: 1 / span 6; grid-row: 1; }
@media (max-width: 900px) {
  .founder { grid-template-columns: 1fr; }
  .founder__img, .founder__text, .founder--flip .founder__img, .founder--flip .founder__text { grid-column: 1 / -1; grid-row: auto; }
  .founder__img { max-width: 440px; }
}

/* contact */
.contact { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 56px; align-items: start; max-width: 1240px; margin-inline: auto; }
.channels { display: grid; gap: 8px; width: 100%; }
.contact .channels { grid-column: 1 / span 5; }
.channel { display: grid; gap: 2px; padding: 16px 20px; border-radius: 14px; background: rgba(234, 247, 242, 0.06); text-decoration: none; transition: background-color 150ms var(--ease-out); }
a.channel:hover { background: rgba(234, 247, 242, 0.12); }
.channel b { font-size: var(--step-lead); font-weight: 600; }
.channel span { color: var(--on-dark-soft); }
.form { grid-column: 7 / span 6; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.form h2, .form > p { grid-column: 1 / -1; }
.field { display: grid; gap: 8px; align-content: start; }
.field--full, .form__note, .form__status { grid-column: 1 / -1; }
.field label { font-weight: 600; }
.field small { font-weight: 400; color: var(--on-dark-soft); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 13px 16px; border: 2px solid transparent; border-radius: 12px;
  background: rgba(234, 247, 242, 0.08); color: var(--on-dark); font: inherit;
  transition: border-color 150ms var(--ease-out), background-color 150ms;
}
.field textarea { min-height: 170px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--lime); background: rgba(234, 247, 242, 0.12); }
.field input:user-invalid, .field select:user-invalid, .field textarea:user-invalid { border-color: var(--sig-red); }
.field select { background-color: #0d2a24; color: var(--on-dark); }
.field select option { background-color: var(--night-1); color: var(--on-dark); }
.field ::placeholder { color: var(--on-dark-soft); opacity: 0.8; }
.form .btn { justify-self: start; }
.form__note, .form__status { font-size: var(--step-small); color: var(--on-dark-soft); }
.form__status { color: var(--on-dark); }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } .contact .channels, .form { grid-column: 1 / -1; } }
@media (max-width: 559px) { .form { grid-template-columns: 1fr; } }
.offices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(36px, 4vw, 64px); max-width: 1240px; margin-inline: auto; }
.office { display: grid; gap: 14px; justify-items: start; }
.office address { font-style: normal; font-size: var(--step-lead); line-height: 1.4; }
@media (max-width: 767px) { .offices { grid-template-columns: 1fr; } }

/* guides and stories: the title is the link and its hit area covers the card */
.reads { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(36px, 4vw, 56px) clamp(20px, 3vw, 40px); max-width: 1240px; margin-inline: auto; }
.read { position: relative; display: grid; gap: 20px; align-content: start; }
.read__img { aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--night-2); }
.read__img img { width: 100%; height: 100%; object-fit: cover; transition: scale 700ms var(--ease-out); }
.read:hover .read__img img { scale: 1.04; }
.read__body { display: grid; gap: 14px; justify-items: start; }
.read__title a { color: inherit; text-decoration: none; }
.read__title a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.read__title a:focus-visible { outline: none; }
.read__title a:focus-visible::after { outline: 3px solid var(--lime); outline-offset: 6px; }
.read p { max-width: 52ch; }
.sect--day .read p { color: var(--ink-soft); }
.reads--one .read { grid-column: 1 / -1; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: center; }
.reads--one .read__img { grid-column: 1 / span 6; }
.reads--one .read__body { grid-column: 8 / span 5; }
@media (max-width: 900px) { .reads { grid-template-columns: repeat(2, minmax(0, 1fr)); } .reads--one .read__img, .reads--one .read__body { grid-column: 1 / -1; } }
@media (max-width: 599px) { .reads { grid-template-columns: 1fr; } }

/* privacy: each part is a row, its heading on the left and its text on the right */
.legal { display: grid; gap: clamp(48px, 6vw, 88px); max-width: 1240px; margin-inline: auto; }
.legal section { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 14px; align-items: start; }
.legal h2 { grid-column: 1 / span 4; }
.legal section > :not(h2) { grid-column: 6 / span 7; max-width: 64ch; }
.legal p, .legal li { color: var(--ink-soft); }
.legal a { color: var(--ink); text-underline-offset: 3px; }
@media (max-width: 900px) { .legal h2, .legal section > :not(h2) { grid-column: 1 / -1; } }

@media (prefers-reduced-motion: no-preference) {
  html:not(.is-smooth) { scroll-behavior: smooth; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation: none !important; }
}
