/* ==========================================================================
   El-Ma3sara — the whole sheet.
   Tokens follow DESIGN.md. If a value here is not in DESIGN.md it is a bug.
   ========================================================================== */

@font-face {
  font-family: 'Figtree';
  src: url('fonts/figtree-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2122, U+2190-21BB;
}
@font-face {
  font-family: 'Figtree';
  src: url('fonts/figtree-700.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2122, U+2190-21BB;
}
@font-face {
  font-family: 'Cairo';
  src: url('fonts/cairo-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF;
}
@font-face {
  font-family: 'Cairo';
  src: url('fonts/cairo-700.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF;
}

:root {
  /* palette */
  --cane-green: #276B44;
  --leaf:       #7BC47F;
  --juice:      #E3D886;
  --juice-deep: #A8983F;
  --foam:       #FFFBE3;
  --ice:        #BFE3F5;
  --steel:      #C9CDD3;

  --ground-mint:   #DDF3E4;
  --ground-butter: #FFF0B8;
  --ground-lilac:  #E7E0FF;
  --ground-peach:  #FFE1D1;
  --paper:         #FFFFFF;

  --ink:      #1B1F24;
  --ink-soft: #3E464F;   /* on white only — see the per-ground values below */
  --blue:     #2B5DF5;
  --blue-ink: #1B3FBE;

  /* shape */
  --r-card: 28px;
  --r-tile: 20px;
  --r-btn:  999px;

  /* space */
  --s1: 4px;  --s2: 8px;  --s3: 12px; --s4: 16px; --s5: 24px;
  --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px; --s10: 128px;

  /* grid */
  --content: 1200px;
  --gutter: 24px;
  --margin: 32px;
  --col: calc((var(--content) - 11 * var(--gutter)) / 12);

  /* stream */
  --stream-w: 34px;
  --lane: 46px;      /* the pour's clearance on narrow screens */

  /* type */
  --font-latin: 'Figtree', ui-sans-serif, system-ui, 'Segoe UI', Arial, sans-serif;
  --font-arabic: 'Cairo', 'Segoe UI', Tahoma, sans-serif;
  --font: var(--font-latin);

  --t-display: 76px;
  --t-h2: 44px;
  --t-h3: 22px;
  --t-body: 18px;
  --t-small: 15px;
  --t-eyebrow: 14px;
  --lh-body: 1.6;

  /* motion */
  --ease: cubic-bezier(.2, .6, .2, 1);
}

html[lang="ar"] {
  --font: var(--font-arabic);
  --lh-body: 1.8;
  --t-display: 68px;
}

@media (max-width: 900px) {
  :root {
    --t-display: 42px; --t-h2: 30px; --t-h3: 20px;
    --t-body: 17px; --t-small: 14px; --t-eyebrow: 13px;
    --margin: 14px; --stream-w: 20px; --lane: 26px;
  }
  html[lang="ar"] { --t-display: 38px; }
}

/* --------------------------------------------------------------- reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  position: relative;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--t-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select { font: inherit; color: inherit; }
a { color: inherit; }

:where(a, button, input, select, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 6px;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: var(--margin); top: -100px; z-index: 60;
  background: var(--ink); color: var(--paper);
  padding: var(--s3) var(--s5); border-radius: var(--r-btn);
  text-decoration: none; font-weight: 700;
  transition: top 140ms ease-out;
}
.skip:focus { top: var(--s3); }

/* ------------------------------------------------------------ structure */
/* The page margin lives on the band, not on the wrap, so every coloured ground
   really does inset its content instead of only appearing to. */
.wrap { width: 100%; max-width: var(--content); margin-inline: auto; }
.band, .nav, .foot { padding-inline: var(--margin); }

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gutter);
}

/* The stream owns column 9 (LTR) / column 4 (RTL). Nothing else may sit in it. */
.band { padding-block: var(--s9); position: relative; }
/* Secondary text is never neutral grey on a coloured ground — it is that
   ground's own hue, taken down until it clears the contrast floor. Measured in
   docs/contrast.md. */
.band--mint   { background: var(--ground-mint);   --ink-soft: #2F4A3C; }
.band--butter { background: var(--ground-butter); --ink-soft: #5A4A21; }
.band--lilac  { background: var(--ground-lilac);  --ink-soft: #453D63; }
.band--peach  { background: var(--ground-peach);  --ink-soft: #5E4033; }
.band--paper  { background: var(--paper); }
.contact      { --ink-soft: #2F4A3C; }

@media (max-width: 900px) {
  .band { padding-block: var(--s7); }
  /* stacked, the pour weaves down one edge or the other, so content keeps
     clear of both */
  .band > .wrap { padding-inline: var(--lane); }
}


h1, .display {
  font-size: var(--t-display); font-weight: 700; line-height: 1.05;
  letter-spacing: -0.02em;
}
html[lang="ar"] h1, html[lang="ar"] .display { letter-spacing: normal; line-height: 1.25; }

h2 {
  font-size: var(--t-h2); font-weight: 700; line-height: 1.15;
  letter-spacing: -0.015em;
}
html[lang="ar"] h2 { letter-spacing: normal; line-height: 1.4; }

h3 { font-size: var(--t-h3); font-weight: 700; line-height: 1.3; }

.lede { font-size: calc(var(--t-body) + 2px); color: var(--ink-soft); max-width: 46ch; }
.spec { font-size: var(--t-small); color: var(--ink-soft); }

.section-head { grid-column: 1 / span 7; max-width: 42ch; margin-bottom: var(--s7); }
.section-head--narrow { grid-column: 1 / span 3; }
.section-head p { color: var(--ink-soft); margin-top: var(--s4); }

/* --------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--s2);
  min-height: 48px; padding: 0 var(--s6);
  border-radius: var(--r-btn); border: 2px solid transparent;
  font-weight: 700; font-size: var(--t-body); text-decoration: none;
  cursor: pointer; transition: transform 140ms ease-out, background-color 140ms ease-out;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-ink); }

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }

.btn--wa { background: var(--cane-green); color: #fff; }
.btn--wa:hover { background: #23603C; }

.btn--wide { width: 100%; }

/* ------------------------------------------------------------------- nav */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--steel);
}
.nav__in {
  display: flex; align-items: center; gap: var(--s6);
  min-height: 72px;
}
.brand {
  display: flex; align-items: center; gap: var(--s3);
  font-weight: 700; font-size: 20px; text-decoration: none;
  letter-spacing: -0.01em; white-space: nowrap;
}
html[lang="ar"] .brand { letter-spacing: normal; }
.brand svg { flex: none; }

.nav__links { display: flex; gap: var(--s6); margin-inline-start: auto; }
.nav__links a {
  text-decoration: none; font-size: var(--t-small); font-weight: 700;
  color: var(--ink-soft); padding-block: var(--s2);
  border-bottom: 2px solid transparent;
}
.nav__links a:hover { color: var(--ink); border-bottom-color: var(--cane-green); }

.nav__tail { display: flex; align-items: center; gap: var(--s3); }

.langtoggle {
  display: inline-flex; align-items: center; gap: var(--s2);
  min-height: 40px; padding: 0 var(--s4);
  background: transparent; border: 2px solid var(--steel);
  border-radius: var(--r-btn); cursor: pointer;
  font-size: var(--t-small); font-weight: 700;
  transition: border-color 140ms ease-out;
}
.langtoggle:hover { border-color: var(--ink); }
.langtoggle__sep { color: var(--ink-soft); font-weight: 400; }
.langtoggle__note { color: var(--ink-soft); font-weight: 400; }

@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__in { gap: var(--s3); }
  .langtoggle__note { display: none; }
  .btn { white-space: nowrap; }
  .nav .btn--primary { padding-inline: var(--s5); }
}
/* on the narrowest phones the wordmark gives up its text to the glass mark */
@media (max-width: 430px) {
  .brand span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .foot .brand span { position: static; width: auto; height: auto; clip: auto; }
  .langtoggle { padding-inline: var(--s3); }
}

/* ----------------------------------------------------------------- hero */
.hero { padding-block: var(--s8) 0; }
.hero__in { align-items: center; }
/* Explicit grid lines already mirror under dir="rtl" — column 1 is the start
   column, whichever side that is. So there is no RTL override anywhere below. */
.hero__copy { grid-column: 1 / span 6; padding-bottom: var(--s8); }
.hero__art  { grid-column: 8 / span 5; align-self: end; }

.hero h1 { margin-bottom: var(--s5); }
.hero .lede { margin-bottom: var(--s7); }
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--s3); margin-bottom: var(--s6); }

.pill {
  display: inline-flex; align-items: center; gap: var(--s2);
  font-size: var(--t-small); font-weight: 700; color: var(--ink-soft);
}
.pill__dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--cane-green); flex: none;
}

.hero__art img {
  width: 100%; height: auto; border-radius: var(--r-card) var(--r-card) 0 0;
}

@media (max-width: 900px) {
  .hero { padding-block: var(--s7) 0; }
  .hero__copy, .hero__art { grid-column: 1 / -1; }
  .hero__copy { padding-bottom: var(--s7); }
  .hero__art { max-width: 460px; margin-inline: auto; }
}

/* -------------------------------------------------------------- trusted */
.trusted { padding-block: var(--s8) var(--s7); border-bottom: 1px solid var(--steel); }
.trusted__label {
  font-size: var(--t-eyebrow); font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink-soft); margin-bottom: var(--s5);
}
html[lang="ar"] .trusted__label { letter-spacing: normal; text-transform: none; }
.trusted__row {
  grid-column: 1 / span 7;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s5) var(--s6);
  align-items: center;
}
.trusted__label { grid-column: 1 / span 7; }
@media (max-width: 900px) {
  .trusted__row { grid-column: 1 / -1; grid-template-columns: 1fr; }
  .trusted__label { grid-column: 1 / -1; }
}
.mark {
  display: flex; align-items: center; gap: var(--s3);
  font-weight: 700; font-size: 17px; color: var(--ink);
  letter-spacing: -0.01em; line-height: 1.2;
}
html[lang="ar"] .mark { letter-spacing: normal; }
.mark svg { flex: none; }
.mark span small {
  display: block; font-size: 12px; font-weight: 400; color: var(--ink-soft);
  letter-spacing: 0;
}
@media (max-width: 900px) { .trusted__row { gap: var(--s5) var(--s7); } }

/* ------------------------------------------------------------------ how */

.card {
  background: var(--paper); border: 2px solid var(--ink);
  border-radius: var(--r-card); padding: var(--s6);
}
.band--paper .card { background: var(--ground-mint); border-color: transparent; }


@media (max-width: 900px) {
}

/* ------------------------------------------------------------- features */
.bento { grid-column: 1 / -1; display: grid; gap: var(--gutter); grid-template-columns: repeat(12, minmax(0, 1fr)); }
.bento > * { grid-column: span 4; }

.tile {
  background: var(--paper); border-radius: var(--r-tile);
  padding: var(--s6); display: flex; flex-direction: column; gap: var(--s3);
}
.tile figure { margin: 0 0 var(--s2); }
.tile h3 { font-size: var(--t-h3); }
.tile p { color: var(--ink-soft); font-size: var(--t-small); margin: 0; }
.tile--full > div { max-width: 52ch; }

@media (max-width: 900px) {
  .bento { grid-template-columns: 1fr; }
  .bento > *, .bento > .tile--full { grid-column: 1 / -1; }
}

/* -------------------------------------------------------------- metrics */
.metrics { grid-column: 5 / span 8; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gutter); }

.metric { display: flex; flex-direction: column; gap: var(--s2); }
.metric__v {
  font-size: 52px; font-weight: 700; line-height: 1; letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
html[lang="ar"] .metric__v { letter-spacing: normal; }
.metric__k { font-size: var(--t-small); color: var(--ink-soft); font-weight: 700; }
.metric__glass { margin-bottom: var(--s3); }

@media (max-width: 900px) {
  .metrics { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s7) var(--gutter); }
  .metric__v { font-size: 38px; }
}

/* -------------------------------------------------------------- pricing */
/* The popular tier is the wide one, and its top edge is what the stream hits. */
.tiers {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gutter); align-items: start;
}
.tiers > .tier { grid-column: span 4; }

.tier {
  background: var(--paper); border: 2px solid var(--steel);
  border-radius: var(--r-card); padding: var(--s6);
  display: flex; flex-direction: column; gap: var(--s4);
  position: relative;
}
.tier--pop { border-color: var(--ink); }
.tier__badge {
  position: absolute; inset-block-start: calc(var(--s5) * -1);
  inset-inline-start: var(--s6);
  background: var(--ink); color: var(--paper);
  font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: var(--s1) var(--s3); border-radius: var(--r-btn);
}
html[lang="ar"] .tier__badge { letter-spacing: normal; text-transform: none; font-size: 13px; }

.tier__name { font-size: var(--t-h3); font-weight: 700; }
.tier__price { font-size: 46px; font-weight: 700; line-height: 1; letter-spacing: -0.03em; }
html[lang="ar"] .tier__price { letter-spacing: normal; }
.tier__price small { font-size: var(--t-small); font-weight: 700; color: var(--ink-soft); letter-spacing: 0; }
.tier__note { font-size: var(--t-small); color: var(--ink-soft); }
.tier ul { display: flex; flex-direction: column; gap: var(--s3); }
.tier li { display: flex; gap: var(--s3); font-size: var(--t-small); align-items: flex-start; }
.tier li svg { flex: none; margin-top: 3px; }

.enterprise {
  grid-column: 1 / -1; margin-top: var(--gutter); position: relative; z-index: 4;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: var(--s5);
  background: var(--paper);
  border: 2px dashed var(--steel); border-radius: var(--r-card); padding: var(--s6);
}
.enterprise div { max-width: 46ch; }
.enterprise p { color: var(--ink-soft); font-size: var(--t-small); margin-top: var(--s1); }

.footnote { grid-column: 1 / -1; margin-top: var(--s5); font-size: var(--t-small); color: var(--ink-soft); }

@media (max-width: 900px) {
  .tiers { grid-template-columns: 1fr; gap: var(--s7); }
  .tiers > .tier, .tiers > .tier--pop, .tiers > .tier:last-child { grid-column: 1 / -1; }
}

/* --------------------------------------------------------- testimonials */
.voices { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gutter); }
.voices > * { grid-column: span 4; }
.endorse { grid-column: 1 / span 8; }

.voice {
  background: var(--paper); border-radius: var(--r-card); padding: var(--s6);
  display: flex; flex-direction: column; gap: var(--s5);
}
.voice blockquote { margin: 0; font-size: calc(var(--t-body) + 2px); font-weight: 700; line-height: 1.35; }
html[lang="ar"] .voice blockquote { line-height: 1.6; }
.voice figcaption { display: flex; align-items: center; gap: var(--s3); margin-top: auto; }
.voice__who { font-size: var(--t-small); }
.voice__who b { display: block; }
.voice__who span { color: var(--ink-soft); }

.endorse {
  margin-top: var(--s6);
  display: flex; align-items: center; gap: var(--s6);
  background: var(--ground-mint); border-radius: var(--r-card);
  padding: var(--s5) var(--s6);
}
.endorse img { width: 88px; height: 88px; border-radius: 50%; flex: none; }
.endorse p { font-weight: 700; }
.endorse span { display: block; font-weight: 400; font-size: var(--t-small); color: var(--ink-soft); margin-top: var(--s1); }

@media (max-width: 900px) {
  .endorse { grid-column: 1 / -1; }
  .voices { grid-template-columns: 1fr; }
  .voices > * { grid-column: 1 / -1; }
}

/* ------------------------------------------------------------ locations */

@media (max-width: 900px) {
}

/* ------------------------------------------------------------------ faq */
/* The rules run the full width; the stream passes behind them. */
.faq { grid-column: 5 / span 8; }

.qa { border-top: 1px solid var(--steel); padding-block: var(--s3); }
.qa:last-child { border-bottom: 1px solid var(--steel); }
.qa summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s5);
  padding-block: var(--s3); cursor: pointer; list-style: none;
  font-weight: 700; font-size: var(--t-h3); line-height: 1.4;
}
.qa summary::-webkit-details-marker { display: none; }
.qa__icon { flex: none; transition: transform 220ms var(--ease); }
.qa[open] .qa__icon { transform: rotate(45deg); }
.qa__a { padding-bottom: var(--s5); color: var(--ink-soft); max-width: 56ch; }

@media (max-width: 900px) { .faq { grid-column: 1 / -1; } }

/* -------------------------------------------------------------- careers */
.job {
  grid-column: 1 / span 7; position: relative; z-index: 4;
  background: var(--paper); border-radius: var(--r-card); padding: var(--s7);
  display: grid; grid-template-columns: 1fr auto; gap: var(--s6); align-items: center;
}
.job__meta { display: flex; flex-wrap: wrap; gap: var(--s2); margin-block: var(--s3) var(--s4); }
.chip {
  font-size: 13px; font-weight: 700; padding: var(--s1) var(--s3);
  border-radius: var(--r-btn); background: var(--ground-mint); color: var(--ink);
}
.job p { color: var(--ink-soft); font-size: var(--t-small); max-width: 52ch; }
.job__req { margin-top: var(--s4); font-weight: 700; font-size: var(--t-small); color: var(--ink); }

@media (max-width: 900px) {
  .job { grid-column: 1 / -1; grid-template-columns: 1fr; padding: var(--s6); }
}

/* ------------------------------------------------------- sustainability */
/* The buffalo is drawn as open shapes, so the pour runs on past her. */
.planet { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gutter); align-items: center; }
.planet > div { grid-column: 5 / span 8; }
.planet > figure { grid-column: 1 / span 3; margin: 0; align-self: center; }
.planet p { color: var(--ink-soft); margin-top: var(--s4); }

@media (max-width: 900px) {
  .planet { grid-template-columns: 1fr; gap: var(--s6); }
  .planet > div, .planet > figure { grid-column: 1 / -1; }
  .section-head, .section-head--narrow { grid-column: 1 / -1; }
}

/* -------------------------------------------------------------- contact */
.contact { background: var(--ground-mint); }
.contact__in { align-items: center; }
/* The glass sits under the stream column, so the pour lands almost straight. */
/* the pour comes straight down the middle and lands; the form sits under it */
.contact__glass { grid-column: 5 / span 4; grid-row: 1; display: flex; justify-content: center; }
.contact__form  { grid-column: 3 / span 8; grid-row: 2; margin-top: var(--s8); }

/* The photograph is opaque, so the juice cannot sit behind it. It sits on top
   and multiplies instead: the ribs, the rim and the base all still read
   through the liquid, which is how a glass of anything actually looks.
   The trapezoid is measured off the photograph itself — see tools/glass.js. */
.glassbox { position: relative; width: 100%; max-width: 320px; isolation: isolate; }
.glassbox img { width: 100%; height: auto; position: relative; z-index: 1; }
.glassbox__fill {
  position: absolute; inset: 0; z-index: 2; overflow: hidden;
  clip-path: polygon(4.9% 4.5%, 95.1% 4.5%, 85.5% 95%, 13.6% 95%);
  mix-blend-mode: multiply;
}
.glassbox__liquid {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, #F4F0A6 0%, #D8CB6E 100%);
  transform: translateY(100%);
  will-change: transform;
}
.glassbox__foam {
  position: absolute; left: 0; right: 0; top: 0; height: 10px;
  background: #FFFBE2;
}

.field { display: flex; flex-direction: column; gap: var(--s2); margin-bottom: var(--s5); }
.field label { font-size: var(--t-small); font-weight: 700; }
.field input, .field select {
  min-height: 52px; padding: 0 var(--s4);
  background: var(--paper); border: 2px solid var(--steel); border-radius: 14px;
  transition: border-color 140ms ease-out;
}
.field input:hover, .field select:hover { border-color: var(--ink-soft); }
.field input::placeholder { color: var(--ink-soft); opacity: 1; }
.pourform { margin-top: var(--s7); }
.hours {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s5); margin-top: var(--s8);
  border-top: 1px solid var(--steel); padding-top: var(--s6);
}
.hours li b { display: block; font-size: var(--t-small); }
.hours li span { display: block; font-size: var(--t-small); color: var(--ink-soft); margin-top: var(--s1); }
@media (max-width: 900px) { .hours { grid-template-columns: 1fr; gap: var(--s4); } }

.form__note { font-size: var(--t-small); color: var(--ink-soft); margin-top: var(--s4); }
.form__row { display: flex; gap: var(--s3); flex-wrap: wrap; }
.form__row > * { flex: 1 1 200px; }

@media (max-width: 900px) {
  .contact__glass { grid-column: 1 / -1; grid-row: 1; margin-bottom: var(--s6); }
  .contact__form { grid-column: 1 / -1; grid-row: 2; margin-top: 0; }
  .glassbox { max-width: 220px; }
}

/* --------------------------------------------------------------- footer */
.foot { background: var(--ink); color: var(--paper); padding-block: var(--s8); }
.foot a { color: var(--paper); }
.brand--light { color: var(--paper); }
.foot__in { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gutter); }
.foot__brand { grid-column: 1 / span 4; }
.foot__nav { grid-column: 6 / span 3; }
.foot__rw { grid-column: 9 / span 4; }
.foot h3 { font-size: var(--t-small); margin: 0 0 var(--s4); letter-spacing: .06em; text-transform: uppercase; color: #C9CDD3; }
html[lang="ar"] .foot h3 { letter-spacing: normal; text-transform: none; }
.foot ul { display: flex; flex-direction: column; gap: var(--s3); }
.foot li a { font-size: var(--t-small); text-decoration: none; color: #D6D9DC; }
.foot li a:hover { color: var(--paper); text-decoration: underline; }
.foot__legal { margin-top: var(--s8); font-size: var(--t-small); color: #C9CDD3; }
.rw {
  border: 1px solid rgba(255, 255, 255, .28); border-radius: var(--r-tile);
  padding: var(--s5);
}
.rw p { font-size: var(--t-small); margin-bottom: var(--s4); }
.rw .btn { background: var(--paper); color: var(--ink); min-height: 44px; font-size: var(--t-small); }

@media (max-width: 900px) {
  .foot__brand, .foot__nav, .foot__rw { grid-column: 1 / -1; }
  .foot__nav { margin-top: var(--s6); }
  .foot__rw { margin-top: var(--s6); }
}

/* ---------------------------------------------------------- the stream */
#stream {
  position: absolute; inset-block-start: 0; inset-inline-start: 0;
  width: 100%; height: 100%;
  pointer-events: none; z-index: 3;
  overflow: visible;
}
#stream path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.stream__body { stroke: var(--juice); }
.stream__hi   { stroke: var(--foam); opacity: .85; }
.stream__sh   { stroke: var(--juice-deep); opacity: .75; }

/* Ground < stream (3) < content (4). The bands must NOT take a z-index of
   their own: that would trap their content in a lower stacking context and
   the stream would paint over the words. */
.band, .foot { position: relative; }
.band > .wrap, .foot > .wrap { position: relative; z-index: 4; }
.nav { z-index: 40; }

.splash { pointer-events: none; }
.splash circle { fill: var(--juice); opacity: 0; }

/* ---------------------------------------------------------------- modal */
.promo {
  border: none; padding: 0; background: transparent;
  max-width: min(560px, calc(100vw - 32px)); width: 100%;
}
.promo::backdrop { background: rgba(27, 31, 36, .55); }
.promo__card {
  background: var(--paper); border-radius: var(--r-card);
  padding: var(--s8); position: relative;
}
.promo__close {
  position: absolute; inset-block-start: var(--s4); inset-inline-end: var(--s4);
  width: 40px; height: 40px; border-radius: 50%;
  border: 2px solid var(--steel); background: transparent; cursor: pointer;
  display: grid; place-items: center;
}
.promo__close:hover { border-color: var(--ink); }
.promo h2 { font-size: var(--t-h2); margin-bottom: var(--s4); }
.promo__lede { color: var(--ink-soft); margin-bottom: var(--s6); }
.promo .btn { margin-bottom: var(--s6); }
.promo form { border-top: 1px solid var(--steel); padding-top: var(--s6); }

@media (max-width: 900px) { .promo__card { padding: var(--s7) var(--s6); } }

/* ------------------------------------------------------------------ 404 */
.oops {
  min-height: 100vh; display: grid; place-items: center;
  background: var(--ground-mint); text-align: center; padding: var(--s7);
}
.oops img { width: 180px; margin: 0 auto var(--s7); }
.oops h1 { margin-bottom: var(--s5); }
.oops p { color: var(--ink-soft); margin-bottom: var(--s7); }


/* ------------------------------------------------------------- tablet */
/* Between a phone and the grid proper: two up, not one, and the hours row
   keeps its three columns. The pour still weaves down the edges. */
@media (min-width: 600px) and (max-width: 900px) {
  :root { --t-display: 52px; --t-h2: 34px; --margin: 24px; --lane: 34px; }
  html[lang="ar"] { --t-display: 46px; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento > * { grid-column: span 1; }
  .bento > .tile--full { grid-column: span 2; }
  .voices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .voices > * { grid-column: span 1; }
  .voices > :first-child { grid-column: span 2; }
  .metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tiers { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gutter); }
  .tiers > .tier { grid-column: span 1; }
  .tiers > .tier--pop { grid-column: span 2; }
  .hours { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .job { grid-template-columns: 1fr auto; }
  .planet { grid-template-columns: 1fr 1fr; }
  .planet > div { grid-column: 1 / span 1; }
  .planet > figure { grid-column: 2 / span 1; }
  .trusted__row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact__glass { margin-bottom: var(--s7); }
}

/* ------------------------------------------------------- entrance + rm */
/* Content is visible by default. The entrance only exists when scripting is on
   and motion is welcome — a reveal must never be the reason something is unseen. */
html.anim .rise { opacity: 0; transform: translateY(16px); }
html.anim .rise.in { opacity: 1; transform: none; transition: opacity 420ms var(--ease), transform 420ms var(--ease); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  html.anim .rise { opacity: 1; transform: none; }
  .glassbox__liquid { transform: translateY(0) !important; }
}
