/* =====================================================================
   SUBHASH PHAL DESSAI — bespoke design system
   "Coastal Calm": soft rounded, airy coastal Goa. Teal + coral on
   warm white. Big radii, pill controls, diffused shadows, gentle lifts.
   Original work — not derived from any other site.
   ===================================================================== */

/* ---------- tokens ---------- */
:root {
  /* palette — coastal teal + coral on airy warm white */
  --teal-900: #0a4f4d;
  --teal-700: #0e7a77;
  --teal:     #0E9C99;   /* primary accent */
  --teal-200: #bfe7e5;
  --teal-50:  #eef9f8;

  --coral:    #FF6B5E;   /* bright secondary accent */
  --coral-soft:#ffb3aa;
  --coral-50: #fff1ef;

  --sand:     #FBF7F1;   /* page warm white */
  --sand-2:   #F4EEE4;   /* card warm */
  --shell:    #ffffff;

  --ink:      #1c2b2a;   /* deep teal-charcoal text */
  --ink-soft: #4f6361;
  --ink-faint:#7c8e8c;
  --line:     #e6ded2;

  /* engine theming hooks */
  --mf-accent: var(--teal);
  --mf-foot-bg: #0a4f4d;
  --mf-foot-fg: #e8f6f4;
  --mf-ink: var(--ink);
  --mf-paper: var(--sand);

  /* radii — generous */
  --r-xl: 40px;
  --r-lg: 30px;
  --r-md: 22px;
  --r-sm: 16px;
  --r-pill: 999px;

  /* soft diffused shadows */
  --sh-1: 0 6px 22px rgba(18, 74, 72, .07);
  --sh-2: 0 16px 44px rgba(18, 74, 72, .10);
  --sh-3: 0 30px 70px rgba(18, 74, 72, .14);
  --sh-coral: 0 14px 34px rgba(255, 107, 94, .28);
  --sh-teal: 0 14px 34px rgba(14, 156, 153, .26);

  --maxw: 1200px;
  --gut: clamp(20px, 5vw, 64px);

  --ff-display: "Hanken Grotesk", system-ui, sans-serif;
  --ff-body: "Manrope", system-ui, sans-serif;
  --ff-hindi: "Mukta", system-ui, sans-serif;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--ff-body);
  color: var(--ink);
  background: var(--sand);
  line-height: 1.65;
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body[data-lang="hi"] { font-family: var(--ff-hindi); line-height: 1.78; }
body[data-lang="hi"] h1, body[data-lang="hi"] h2, body[data-lang="hi"] h3,
body[data-lang="hi"] .h-display { font-family: var(--ff-hindi); }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }

h1, h2, h3, h4 { font-family: var(--ff-display); font-weight: 800; line-height: 1.06; letter-spacing: -0.02em; color: var(--ink); }

/* warm decorative background wash */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60vw 50vw at 88% -8%, rgba(255,107,94,.10), transparent 60%),
    radial-gradient(55vw 50vw at -8% 8%, rgba(14,156,153,.12), transparent 60%),
    var(--sand);
}

/* ---------- layout helpers ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gut); }
.section { padding-block: clamp(3.5rem, 8vw, 7rem); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--ff-display);
  font-weight: 700; font-size: .76rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--teal-700);
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--teal), var(--coral));
}
body[data-lang="hi"] .eyebrow { letter-spacing: .08em; }

.lede { font-size: clamp(1.08rem, 1rem + 0.5vw, 1.32rem); color: var(--ink-soft); line-height: 1.6; }

.section-title { font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3.2rem); margin-block: .6rem .4rem; }
.section-head { max-width: 56ch; margin-bottom: clamp(2rem, 4vw, 3.2rem); }

/* ---------- buttons / pills ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--ff-display); font-weight: 700; font-size: .98rem;
  min-height: 50px; padding: .8rem 1.6rem;
  border-radius: var(--r-pill); border: 0; cursor: pointer;
  transition: transform .25s cubic-bezier(.16,1,.3,1), box-shadow .25s, background .25s;
}
.btn--primary { background: var(--teal); color: #fff; box-shadow: var(--sh-teal); }
.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 20px 40px rgba(14,156,153,.34); }
.btn--coral { background: var(--coral); color: #fff; box-shadow: var(--sh-coral); }
.btn--coral:hover { transform: translateY(-3px); box-shadow: 0 20px 40px rgba(255,107,94,.36); }
.btn--ghost { background: var(--shell); color: var(--ink); box-shadow: var(--sh-1); }
.btn--ghost:hover { transform: translateY(-3px); box-shadow: var(--sh-2); }
.btn--lg { min-height: 56px; padding: 1rem 2rem; font-size: 1.02rem; }

.chip {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--shell); color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: .5rem 1rem; font-size: .86rem; font-weight: 600;
  box-shadow: var(--sh-1);
}
.chip__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--coral); }
.chip--teal .chip__dot { background: var(--teal); }

/* ============================================================
   HEADER  (mobile-first, collapses to hamburger)
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 900;
  padding: .7rem 0;
  background: rgba(251, 247, 241, .82);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid rgba(230, 222, 210, .8);
}
.header-bar {
  max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gut);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.brand { display: inline-flex; align-items: center; gap: .7rem; min-width: 0; }
.brand__mark {
  width: 46px; height: 46px; border-radius: 14px; flex: none;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--teal), var(--teal-700));
  color: #fff; font-family: var(--ff-display); font-weight: 800; font-size: 1.15rem;
  box-shadow: var(--sh-teal);
}
.brand__txt { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.brand__name { font-family: var(--ff-display); font-weight: 800; font-size: 1.05rem; color: var(--ink); white-space: nowrap; }
.brand__role { font-size: .72rem; color: var(--ink-faint); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.nav-wrap { display: flex; align-items: center; gap: 1rem; }
.nav-links { display: flex; align-items: center; gap: .15rem; }
.nav-links a {
  font-family: var(--ff-display); font-weight: 600; font-size: .92rem;
  color: var(--ink-soft); padding: .55rem .8rem; border-radius: var(--r-pill);
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--teal-900); background: var(--teal-50); }
.nav-links a[aria-current="page"] { color: var(--teal-900); background: var(--teal-50); }

.lang-switch { display: inline-flex; background: var(--sand-2); border-radius: var(--r-pill); padding: 3px; gap: 2px; }
.lang-switch a {
  font-family: var(--ff-display); font-weight: 700; font-size: .8rem;
  padding: .4rem .75rem; border-radius: var(--r-pill); color: var(--ink-faint);
  min-height: 36px; display: inline-flex; align-items: center;
}
.lang-switch a.is-active { background: var(--shell); color: var(--teal-900); box-shadow: var(--sh-1); }

.hamburger {
  display: none;
  width: 48px; height: 48px; border-radius: 14px; border: 1px solid var(--line);
  background: var(--shell); cursor: pointer; padding: 0;
  align-items: center; justify-content: center; box-shadow: var(--sh-1);
}
.hamburger span, .hamburger span::before, .hamburger span::after {
  content: ""; display: block; width: 22px; height: 2.4px; border-radius: 2px;
  background: var(--ink); transition: transform .3s, opacity .2s;
}
.hamburger span { position: relative; }
.hamburger span::before { position: absolute; top: -7px; }
.hamburger span::after { position: absolute; top: 7px; }
.hamburger[aria-expanded="true"] span { background: transparent; }
.hamburger[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }

/* mobile drawer (hidden on desktop) */
.mobile-panel { display: none; }

/* ============================================================
   HERO — rounded image card beside warm headline
   ============================================================ */
.hero { padding-top: clamp(2rem, 5vw, 4rem); padding-bottom: clamp(2.5rem, 6vw, 5rem); position: relative; }
.hero__grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.6rem, 4vw, 3.5rem); align-items: center;
}
.hero__copy { max-width: 36rem; }
.hero h1 {
  font-size: clamp(2.4rem, 1.5rem + 5vw, 4.6rem);
  margin-block: 1.1rem 1.2rem;
}
.hero h1 .accent { color: var(--teal); }
.hero h1 .accent-coral { color: var(--coral); }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.hero__meta { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.8rem; }

.hero__media { position: relative; }
.hero__card {
  position: relative; border-radius: var(--r-xl); overflow: hidden;
  box-shadow: var(--sh-3); aspect-ratio: 4/5; background: var(--sand-2);
}
.hero__card img { width: 100%; height: 100%; object-fit: cover; }
.hero__badge {
  position: absolute; left: -14px; bottom: 26px;
  background: var(--shell); border-radius: var(--r-md); padding: 1rem 1.2rem;
  box-shadow: var(--sh-2); display: flex; align-items: center; gap: .85rem;
  max-width: 78%;
}
.hero__badge .num { font-family: var(--ff-display); font-weight: 800; font-size: 1.9rem; color: var(--teal); line-height: 1; }
.hero__badge .lab { font-size: .82rem; color: var(--ink-soft); font-weight: 600; line-height: 1.25; }
.hero__float {
  position: absolute; right: -10px; top: 28px;
  background: var(--coral); color: #fff;
  border-radius: var(--r-pill); padding: .65rem 1.1rem;
  font-family: var(--ff-display); font-weight: 700; font-size: .82rem;
  box-shadow: var(--sh-coral);
}
.hero__blob {
  position: absolute; inset: -8% -10% auto auto; width: 60%; aspect-ratio: 1; z-index: -1;
  background: radial-gradient(circle at 30% 30%, var(--teal-200), transparent 70%);
  filter: blur(6px); border-radius: 50%;
}

/* ---------- stat ribbon ---------- */
.ribbon {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line); border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--sh-1);
}
.ribbon__cell { background: var(--shell); padding: clamp(1.3rem, 3vw, 2rem); text-align: center; }
.ribbon__num { font-family: var(--ff-display); font-weight: 800; font-size: clamp(1.7rem, 1rem + 2.4vw, 2.6rem); color: var(--teal); line-height: 1; }
.ribbon__num span { color: var(--coral); }
.ribbon__lab { margin-top: .5rem; font-size: .84rem; color: var(--ink-soft); font-weight: 600; }

/* ============================================================
   CARDS / PANELS
   ============================================================ */
.card {
  background: var(--shell); border-radius: var(--r-lg); padding: clamp(1.5rem, 3vw, 2.2rem);
  box-shadow: var(--sh-1); border: 1px solid rgba(230,222,210,.6);
  transition: transform .3s cubic-bezier(.16,1,.3,1), box-shadow .3s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--sh-2); }
.card__icon {
  width: 54px; height: 54px; border-radius: 18px; display: grid; place-items: center;
  background: var(--teal-50); color: var(--teal-700); margin-bottom: 1.1rem;
  font-size: 1.5rem;
}
.card--coral .card__icon { background: var(--coral-50); color: var(--coral); }
.card h3 { font-size: 1.28rem; margin-bottom: .55rem; }
.card p { color: var(--ink-soft); }

/* split feature: image panel + text */
.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.6rem, 4vw, 3.4rem);
  align-items: center;
}
.split--rev .split__media { order: 2; }
.split__media {
  border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--sh-2);
  aspect-ratio: 4/3; background: var(--sand-2); position: relative;
}
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.split__media .tag {
  position: absolute; left: 18px; bottom: 18px;
  background: rgba(255,255,255,.92); backdrop-filter: blur(6px);
  border-radius: var(--r-pill); padding: .5rem 1rem; font-size: .82rem; font-weight: 700;
  font-family: var(--ff-display); color: var(--teal-900);
}
.split__body h2 { font-size: clamp(1.6rem, 1.1rem + 2.2vw, 2.6rem); margin-bottom: 1rem; }
.split__body p { color: var(--ink-soft); margin-bottom: 1rem; }

/* feature strip — asymmetric, not identical 3-grid */
.feature-strip { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 1.2rem; }
.feature-strip .card:first-child { grid-row: span 1; }
.feature-big {
  grid-column: 1; grid-row: span 2;
  background: linear-gradient(160deg, var(--teal-900), var(--teal-700));
  color: #fff; display: flex; flex-direction: column; justify-content: space-between;
}
.feature-big h3 { color: #fff; font-size: 1.6rem; }
.feature-big p { color: rgba(255,255,255,.82); }
.feature-big .card__icon { background: rgba(255,255,255,.14); color: #fff; }

/* pull / quote */
.pull {
  background: var(--teal-900); color: #fff; border-radius: var(--r-xl);
  padding: clamp(2.2rem, 5vw, 4rem); position: relative; overflow: hidden;
  box-shadow: var(--sh-2);
}
.pull::after {
  content: "”"; position: absolute; right: clamp(1rem,4vw,3rem); top: -1.5rem;
  font-family: var(--ff-display); font-size: 12rem; color: rgba(255,255,255,.08); line-height: 1;
}
.pull__q { font-family: var(--ff-display); font-weight: 700; font-size: clamp(1.4rem, 1rem + 1.8vw, 2.2rem); line-height: 1.3; max-width: 30ch; position: relative; z-index: 1; }
.pull__by { margin-top: 1.4rem; color: var(--teal-200); font-weight: 600; }

/* ---------- prose (long content pages) ---------- */
.prose { max-width: 72ch; }
.prose p { margin-bottom: 1.15rem; color: var(--ink-soft); }
.prose p.first { font-size: 1.18rem; color: var(--ink); }
.prose h2 { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.1rem); margin: 2.4rem 0 1rem; }
.prose h3 { font-size: 1.25rem; margin: 1.8rem 0 .7rem; color: var(--teal-900); }
.prose ul.ticks { margin: 1rem 0 1.4rem; display: grid; gap: .7rem; }
.prose ul.ticks li { position: relative; padding-left: 2rem; color: var(--ink-soft); }
.prose ul.ticks li::before {
  content: "✦"; position: absolute; left: 0; top: 0; color: var(--coral); font-size: 1rem;
}
.prose strong { color: var(--ink); font-weight: 700; }

/* two-column content with sticky aside */
.doc-grid { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: clamp(2rem,5vw,4rem); align-items: start; }
.aside-card { position: sticky; top: 90px; display: grid; gap: 1.2rem; }
.fact-box { background: var(--shell); border-radius: var(--r-lg); padding: 1.6rem; box-shadow: var(--sh-1); border: 1px solid rgba(230,222,210,.6); }
.fact-box h4 { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--teal-700); margin-bottom: 1rem; }
.fact-row { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-bottom: 1px dashed var(--line); }
.fact-row:last-child { border-bottom: 0; }
.fact-row dt { color: var(--ink-faint); font-size: .86rem; font-weight: 600; }
.fact-row dd { color: var(--ink); font-size: .9rem; font-weight: 700; text-align: right; }

/* image in prose page */
.media-round { border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--sh-2); aspect-ratio: 4/3; margin-bottom: 2rem; }
.media-round img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- page hero (interior) ---------- */
.page-hero { padding-top: clamp(2rem, 5vw, 3.5rem); padding-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.page-hero h1 { font-size: clamp(2.1rem, 1.4rem + 3.4vw, 3.6rem); margin-block: .8rem .9rem; }
.page-hero .lede { max-width: 60ch; }
.breadcrumb { font-size: .82rem; color: var(--ink-faint); font-weight: 600; }
.breadcrumb a { color: var(--teal-700); }

/* ============================================================
   TIMELINE  (alternating, rounded nodes)
   ============================================================ */
.tl { position: relative; max-width: 920px; margin: 0 auto; padding-left: 0; }
.tl::before {
  content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(var(--teal-200), var(--coral-soft)); transform: translateX(-50%); border-radius: 3px;
}
.tl__item { position: relative; width: 50%; padding: 0 2.6rem 2.4rem 0; }
.tl__item:nth-child(even) { margin-left: 50%; padding: 0 0 2.4rem 2.6rem; }
.tl__dot {
  position: absolute; top: 6px; right: -11px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--shell); border: 4px solid var(--teal); box-shadow: var(--sh-1);
}
.tl__item:nth-child(even) .tl__dot { right: auto; left: -11px; border-color: var(--coral); }
.tl__card { background: var(--shell); border-radius: var(--r-md); padding: 1.4rem 1.6rem; box-shadow: var(--sh-1); border: 1px solid rgba(230,222,210,.6); transition: transform .3s, box-shadow .3s; }
.tl__card:hover { transform: translateY(-4px); box-shadow: var(--sh-2); }
.tl__yr { font-family: var(--ff-display); font-weight: 800; color: var(--coral); font-size: .9rem; letter-spacing: .04em; }
.tl__item:nth-child(odd) .tl__yr { color: var(--teal); }
.tl__card h3 { font-size: 1.16rem; margin: .3rem 0 .4rem; }
.tl__card p { color: var(--ink-soft); font-size: .94rem; }

/* ---------- press / cards grid ---------- */
.press-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.4rem; }
.press-card { background: var(--shell); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-1); border: 1px solid rgba(230,222,210,.6); transition: transform .3s, box-shadow .3s; display: flex; flex-direction: column; }
.press-card:hover { transform: translateY(-6px); box-shadow: var(--sh-2); }
.press-card__img { aspect-ratio: 16/10; overflow: hidden; background: var(--sand-2); }
.press-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.press-card:hover .press-card__img img { transform: scale(1.05); }
.press-card__body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.press-card__meta { font-size: .76rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--teal-700); margin-bottom: .6rem; }
.press-card h3 { font-size: 1.16rem; margin-bottom: .5rem; }
.press-card p { color: var(--ink-soft); font-size: .92rem; flex: 1; }
.press-card__tag { margin-top: 1rem; font-size: .82rem; font-weight: 700; color: var(--coral); }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(1.6rem,4vw,3rem); align-items: start; }
.contact-card { background: var(--shell); border-radius: var(--r-lg); padding: clamp(1.6rem,3vw,2.4rem); box-shadow: var(--sh-1); border: 1px solid rgba(230,222,210,.6); margin-bottom: 1.2rem; }
.contact-card h3 { font-size: 1.2rem; margin-bottom: .3rem; }
.contact-row { display: flex; gap: 1rem; align-items: flex-start; padding: .9rem 0; border-bottom: 1px dashed var(--line); }
.contact-row:last-child { border-bottom: 0; }
.contact-row .ic { width: 44px; height: 44px; border-radius: 14px; background: var(--teal-50); color: var(--teal-700); display: grid; place-items: center; flex: none; font-size: 1.15rem; }
.contact-row .lab { font-size: .76rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-faint); font-weight: 700; }
.contact-row .val { color: var(--ink); font-weight: 600; }
.contact-row .val a { color: var(--teal-700); }
.map-card { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-1); aspect-ratio: 4/3; background: var(--sand-2); }
.map-card img { width: 100%; height: 100%; object-fit: cover; }

.note { font-size: .84rem; color: var(--ink-faint); font-style: italic; margin-top: 1rem; }

/* press: meta label inside a text card (no image) */
.card .press-card__meta { display: block; margin: -.2rem 0 .45rem; font-size: .76rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--teal-700); }
.card--coral .press-card__meta { color: var(--coral); }

/* contact map iframe fills the rounded card */
.map-card iframe { width: 100%; height: 100%; border: 0; display: block; }

/* face-safe default: keep faces in frame if an image has no inline object-position */
.hero__card img, .split__media img, .media-round img, .press-card__img img { object-position: center 25%; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(140deg, var(--teal-900), var(--teal-700));
  border-radius: var(--r-xl); padding: clamp(2.4rem, 6vw, 4.5rem); color: #fff;
  text-align: center; box-shadow: var(--sh-2); position: relative; overflow: hidden;
}
.cta-band::before { content: ""; position: absolute; inset: auto -10% -40% auto; width: 50%; aspect-ratio: 1; background: radial-gradient(circle, rgba(255,107,94,.4), transparent 70%); }
.cta-band h2 { color: #fff; font-size: clamp(1.7rem, 1.2rem + 2vw, 2.8rem); margin-bottom: .9rem; }
.cta-band p { color: rgba(255,255,255,.85); max-width: 50ch; margin: 0 auto 1.8rem; }

/* small util */
.mt-0 { margin-top: 0; }
.center { text-align: center; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.stack { display: grid; gap: 1.4rem; }

/* ============================================================
   ENGINE OVERRIDES — footer + gate themed to match
   The engine injects a <style> AFTER this sheet that sets the
   default --mf-* vars on :root. We win the cascade with a higher-
   specificity selector (html:root) and direct color declarations.
   ============================================================ */
html:root {
  --mf-accent: #0E9C99;
  --mf-foot-bg: #0a4f4d;
  --mf-foot-fg: #e8f6f4;
}
.mf-footer { background: #0a4f4d; color: #e8f6f4; }
.mf-footer__in { gap: 2.6rem; }
.mf-footer__base { border-top-color: rgba(255,255,255,.16); }
.mf-gate { background: #0a4f4d; color: #e8f6f4; }
.mf-gate__mark { border-radius: 18px; background: #0E9C99; }
.mf-gate form { border-radius: var(--r-pill); border-color: rgba(255,255,255,.28); }
.mf-gate button { background: #0E9C99; }
.mf-gate .mf-err { color: #ffd0c8; }

/* Reveal: keep a gentle entrance, but never leave content invisible if
   the observer hasn't fired (e.g. fast scroll, print, no-JS). Higher
   specificity (body .reveal) beats the engine's injected .reveal rule. */
body .reveal { opacity: 1; transform: translateY(18px); transition: transform .8s cubic-bezier(.16,1,.3,1); }
body .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { body .reveal { transform: none; } }

/* ============================================================
   RESPONSIVE  (mobile-first hardening)
   ============================================================ */
@media (max-width: 1000px) {
  .feature-strip { grid-template-columns: 1fr 1fr; }
  .feature-big { grid-column: 1 / -1; grid-row: auto; }
  .doc-grid { grid-template-columns: 1fr; }
  .aside-card { position: static; }
}

@media (max-width: 860px) {
  /* collapse nav into hamburger */
  .nav-links { display: none; }
  .lang-switch { display: none; }
  .hamburger { display: inline-flex; }

  .header-bar { position: relative; }

  .mobile-panel {
    display: block;
    position: absolute; top: calc(100% + .5rem); left: var(--gut); right: var(--gut);
    background: var(--shell); border-radius: var(--r-lg); box-shadow: var(--sh-3);
    border: 1px solid var(--line);
    padding: 1rem; z-index: 950;
    transform: translateY(-10px) scale(.98); opacity: 0; pointer-events: none;
    transition: transform .28s cubic-bezier(.16,1,.3,1), opacity .22s;
    max-height: calc(100vh - 90px); overflow: auto;
  }
  .mobile-panel.open { transform: none; opacity: 1; pointer-events: auto; }
  .mobile-panel a.m-link {
    display: block; padding: .9rem 1rem; border-radius: var(--r-md);
    font-family: var(--ff-display); font-weight: 700; font-size: 1.05rem; color: var(--ink);
    min-height: 48px;
  }
  .mobile-panel a.m-link:hover, .mobile-panel a.m-link[aria-current="page"] { background: var(--teal-50); color: var(--teal-900); }
  .mobile-lang { display: flex; gap: .5rem; margin-top: .8rem; padding-top: .8rem; border-top: 1px solid var(--line); }
  .mobile-lang a { flex: 1; text-align: center; padding: .8rem; border-radius: var(--r-pill); background: var(--sand-2); font-family: var(--ff-display); font-weight: 700; min-height: 48px; display: flex; align-items: center; justify-content: center; }
  .mobile-lang a.is-active { background: var(--teal); color: #fff; }

  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { order: -1; max-width: 460px; margin-inline: auto; width: 100%; }
  .hero__card { aspect-ratio: 4/3; }
  .split { grid-template-columns: 1fr; }
  .split--rev .split__media { order: -1; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .ribbon { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  :root { --gut: 18px; }
  .brand__role { display: none; }
  .feature-strip { grid-template-columns: 1fr; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .press-grid { grid-template-columns: 1fr; }

  /* single-rail timeline on mobile */
  .tl::before { left: 11px; }
  .tl__item, .tl__item:nth-child(even) { width: 100%; margin-left: 0; padding: 0 0 2rem 2.4rem; }
  .tl__dot, .tl__item:nth-child(even) .tl__dot { left: 0; right: auto; }
}

@media (max-width: 430px) {
  .hero__badge { left: 0; max-width: 86%; }
  .hero__float { right: 0; }
  .ribbon { grid-template-columns: 1fr; }
}
