/* ==========================================================================
   Bellemain Operations — landing page
   Compiled stylesheet (Tailwind-compatible utility layer + components).
   Regenerate with:  npx tailwindcss -i src/input.css -o assets/css/styles.css --minify
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Fonts (self-hosted, latin subset — no third-party request)
   -------------------------------------------------------------------------- */
@font-face {
  font-family: "Geist";
  src: url("../fonts/geist-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Fragment Mono";
  src: url("../fonts/fragment-mono-latin.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+02C6, U+02DA,
    U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --------------------------------------------------------------------------
   2. Design tokens (extracted 1:1 from the live site)
   -------------------------------------------------------------------------- */
:root {
  --ink: #081014;          /* near-black — headings, dark sections           */
  --paper: #f2f3f5;        /* page background                                */
  --white: #ffffff;
  --muted: #707070;        /* body copy on light                             */
  --muted-invert: #c8c8c8; /* body copy on dark                              */
  --line: rgba(8, 16, 20, 0.12);
  --line-invert: rgba(255, 255, 255, 0.12);
  --radius: 10px;      /* cards, media          */
  --radius-btn: 0;     /* buttons, inputs       */
  --container: 1200px;
  --gutter: 20px;

  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "Fragment Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* --------------------------------------------------------------------------
   3. Base / reset
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; border: 0 solid var(--line); }

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background-color: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; background: none; }
button { cursor: pointer; }
ul, ol { list-style: none; padding: 0; }
h1, h2, h3, h4, h5, h6 { font-size: inherit; font-weight: inherit; }

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--ink); color: var(--white); }

/* Skip link */
/* Hidden by transform, never by a negative offset: in RTL a -9999px inset
   is not clipped, it becomes 9999px of horizontal scroll. */
.skip-link {
  position: absolute; inset-inline-start: 0; top: 0; z-index: 100;
  padding: 12px 20px; background: var(--ink); color: var(--white);
  border-start-start-radius: 0; border-end-end-radius: var(--radius);
  transform: translateY(-200%);
  transition: transform 0.2s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

/* --------------------------------------------------------------------------
   4. Typography scale (mirrors the original breakpoints: <810 / 810–1199 / 1200+)
   -------------------------------------------------------------------------- */
.h1, .h2, .h3, .h4 { font-weight: 400; text-wrap: balance; }

.h1 { font-size: 36px; line-height: 1.1; letter-spacing: -0.06em; }
.h2 { font-size: 32px; line-height: 1.1; letter-spacing: -0.06em; }
.h3 { font-size: 24px; line-height: 1.15; letter-spacing: -0.04em; }
.h4 { font-size: 20px; line-height: 1.2;  letter-spacing: -0.02em; }

.lead { font-size: 16px; line-height: 1.6; color: var(--muted); text-wrap: pretty; }
.on-dark .lead, .lead-invert { color: var(--muted-invert); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.on-dark .eyebrow { color: var(--muted-invert); }

.numeral {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

@media (min-width: 810px) {
  .h1 { font-size: 58px; }
  .h2 { font-size: 42px; }
}
@media (min-width: 1200px) {
  .h1 { font-size: 72px; }
}

/* --------------------------------------------------------------------------
   5. Layout primitives
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: 80px; }
@media (min-width: 810px)  { .section { padding-block: 120px; } }

.on-dark { background-color: var(--ink); color: var(--white); }
.on-dark .h1, .on-dark .h2, .on-dark .h3, .on-dark .h4 { color: var(--white); }

/* --------------------------------------------------------------------------
   6. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-radius: var(--radius-btn);
  font-size: 15px;
  line-height: 1;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease),
              border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn .btn-arrow { transition: transform 0.25s var(--ease); }
.btn:hover .btn-arrow { transform: translateX(3px); }

.btn-primary { background-color: var(--white); color: var(--ink); }
.btn-primary:hover { background-color: var(--muted-invert); }

.btn-dark { background-color: var(--ink); color: var(--white); }
.btn-dark:hover { background-color: #16242b; }

.btn-outline { border: 1px solid var(--line); color: var(--ink); }
.btn-outline:hover { background-color: var(--ink); color: var(--white); border-color: var(--ink); }

.btn-outline-invert { border: 1px solid var(--line-invert); color: var(--white); }
.btn-outline-invert:hover { background-color: var(--white); color: var(--ink); }

/* --------------------------------------------------------------------------
   7. Header / navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background-color 0.3s var(--ease), backdrop-filter 0.3s var(--ease),
              border-color 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background-color: rgba(8, 16, 20, 0.72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: var(--line-invert);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
}

.nav-logo img { width: 101px; height: auto; }

.nav-cta { display: none; }

.nav-links {
  display: none;
  align-items: center;
  gap: 28px;
}
.nav-link {
  position: relative;
  font-size: 15px;
  letter-spacing: -0.01em;
  color: var(--white);
  transition: color 0.2s var(--ease);
}
.nav-link:hover { color: var(--muted-invert); }
.nav-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 1px;
  background: currentColor;
}

/* Services dropdown */
.nav-item { position: relative; }
.nav-trigger {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 15px; letter-spacing: -0.01em; color: var(--white);
  transition: color 0.2s var(--ease);
}
.nav-trigger:hover { color: var(--muted-invert); }
.nav-trigger svg { transition: transform 0.25s var(--ease); }
.nav-item.is-open .nav-trigger svg { transform: rotate(180deg); }

.nav-panel {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  width: 320px;
  padding: 8px;
  background: var(--ink);
  border: 1px solid var(--line-invert);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.7);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -6px);
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0.22s;
}
.nav-item.is-open .nav-panel { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

.nav-panel-item {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px; border-radius: 8px;
  transition: background-color 0.2s var(--ease);
}
.nav-panel-item:hover { background-color: rgba(255, 255, 255, 0.06); }
.nav-panel-item img { width: 20px; height: 20px; flex: none; margin-top: 2px; }
.nav-panel-title { font-size: 15px; color: var(--white); letter-spacing: -0.01em; }
.nav-panel-desc { font-size: 13px; line-height: 1.45; color: var(--muted-invert); margin-top: 2px; }

/* Burger */
.nav-burger {
  display: inline-flex; flex-direction: column; justify-content: center;
  gap: 5px; width: 44px; height: 44px; padding: 10px;
  border-radius: var(--radius-btn); border: 1px solid var(--line-invert);
  margin-inline-start: auto;
}
.nav-burger span {
  display: block; height: 1.5px; width: 100%; background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile drawer */
.mobile-menu {
  position: fixed;
  inset: 76px 0 0 0;
  z-index: 45;
  background: var(--ink);
  padding: 24px var(--gutter) 40px;
  overflow-y: auto;
  overscroll-behavior: contain;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.28s var(--ease), transform 0.28s var(--ease), visibility 0.28s;
  /* Set on the container, never on `.mobile-menu a`: a descendant selector
     would outrank .btn-primary and paint the CTA white on white. */
  color: var(--white);
}
.mobile-menu.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
.mobile-nav-link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0; font-size: 22px; letter-spacing: -0.03em;
  border-bottom: 1px solid var(--line-invert);
}
.mobile-sub-link {
  display: block; padding: 10px 0;
  padding-inline-start: 16px;
  font-size: 15px; color: var(--muted-invert);
  border-inline-start: 1px solid var(--line-invert);
}
.mobile-sub-link:hover { color: var(--white); }

@media (min-width: 1200px) {
  .nav-links   { display: flex; }
  .nav-cta     { display: inline-flex; }
  .nav-burger  { display: none; }
  .mobile-menu { display: none; }
}

body.is-locked { overflow: hidden; }

/* --------------------------------------------------------------------------
   8. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100svh;
  padding-block: 140px 60px;
  background-color: var(--ink);
  overflow: hidden;
}
/* Entrance: the shot starts dark and pulled back, then brightens and moves in.
   The resting values sit on the element itself, so if the animation never runs
   (reduced motion, no CSS animation) the hero is simply already in its end state. */
@keyframes hero-approach {
  from { opacity: 0.10; transform: scale(1); }
  to   { opacity: 0.55; transform: scale(1.08); }
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.55;
  transform: scale(1.08);
  transform-origin: center;
  animation: hero-approach 2.6s var(--ease) both;
}
/* Inner pages get the same move, shorter and shallower */
.page-hero .hero-bg { animation-duration: 1.8s; }

.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,16,20,0.75) 0%, rgba(8,16,20,0.35) 45%, var(--ink) 100%);
}
.hero > .container { position: relative; z-index: 1; }
.hero-copy { max-width: 900px; }
.hero-tagline {
  display: flex; flex-wrap: wrap; gap: 8px 28px;
  font-family: var(--font-mono); font-size: 12px;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted-invert);
}
.hero-tagline li { display: flex; align-items: center; gap: 10px; }
.hero-tagline li::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: var(--muted-invert); flex: none;
}

/* --------------------------------------------------------------------------
   Mobile hero: keep the subject's face clear
   On a narrow screen the portrait sits in the upper third, and centred content
   landed straight across it. Three changes, all scoped to mobile:
     - content is pinned to the bottom instead of centred
     - the image is brighter (0.72 instead of 0.55)
     - the scrim is nearly transparent over the face, and only darkens under
       the text that needs the contrast
   -------------------------------------------------------------------------- */
@media (max-width: 809px) {
  .hero {
    align-items: flex-end;
    padding-block: 100px 56px;
  }
  /* The two brand lines are decorative and the least useful thing on a phone.
     Hiding them frees ~12% of the hero, which is what lets the headline sit
     clear of the subject's face. Remove this rule to bring them back — the
     headline will then overlap the portrait again. */
  .hero .hero-tagline { display: none; }
  .hero::after {
    background: linear-gradient(
      180deg,
      rgba(8, 16, 20, 0.55) 0%,
      rgba(8, 16, 20, 0.12) 32%,
      rgba(8, 16, 20, 0.72) 58%,
      var(--ink) 92%
    );
  }
  .hero-bg {
    opacity: 0.72;
    object-position: 68% 22%;   /* follow the face, not the middle of the frame */
    animation-name: hero-approach-mobile;
  }
  @keyframes hero-approach-mobile {
    from { opacity: 0.14; transform: scale(1); }
    to   { opacity: 0.72; transform: scale(1.08); }
  }
}

/* --------------------------------------------------------------------------
   9. Metrics band
   -------------------------------------------------------------------------- */
.metrics {
  background-color: var(--ink);
  padding-bottom: 20px;
}
.metrics-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line-invert);
  border: 1px solid var(--line-invert);
  border-radius: var(--radius);
  overflow: hidden;
}
.metric {
  background: var(--ink);
  padding: 28px 24px;
  display: flex; flex-direction: column; gap: 6px;
}
.metric-value {
  font-size: 36px; line-height: 1; letter-spacing: -0.06em; color: var(--white);
  font-variant-numeric: tabular-nums;
}
.metric-label {
  font-family: var(--font-mono); font-size: 12px;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted-invert);
}
@media (min-width: 810px) {
  .metrics-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .metric-value { font-size: 42px; }
}

/* --------------------------------------------------------------------------
   10. Pillars
   -------------------------------------------------------------------------- */
.pillars-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: start;
}
@media (min-width: 1200px) {
  .pillars-layout { grid-template-columns: 1fr 1fr; gap: 40px; }
  .pillars-media { position: sticky; top: 110px; }
}

.pillar {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 4px 16px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.pillar + .pillar { margin-top: 28px; }
.pillar-num {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em;
  color: var(--muted); padding-top: 5px;
}
.pillar p { margin-top: 10px; }

.pillars-media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 991 / 1000;
}
.pillars-media > img {
  width: 100%; height: 100%; object-fit: cover;
}
.founder-card {
  position: absolute;
  inset: auto 0 0 0;
  display: flex; align-items: center; gap: 14px;
  padding: 20px;
  background: linear-gradient(180deg, rgba(8,16,20,0) 0%, rgba(8,16,20,0.92) 62%, var(--ink) 100%);
  color: var(--white);
}
.founder-card img {
  width: 60px; height: 60px; border-radius: 8px; object-fit: cover; flex: none;
}
.founder-name { font-size: 18px; letter-spacing: -0.02em; }
.founder-role { font-size: 13px; color: var(--muted-invert); }
.founder-cta {
  margin-inline-start: auto;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; white-space: nowrap;
  padding: 10px 14px; border-radius: var(--radius-btn);
  border: 1px solid var(--line-invert);
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease);
}
.founder-card:hover .founder-cta { background: var(--white); color: var(--ink); }

/* --------------------------------------------------------------------------
   11. Service cards
   -------------------------------------------------------------------------- */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px 10px;
}
@media (min-width: 810px) {
  .services-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.service-card { display: flex; flex-direction: column; gap: 16px; }
.service-media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--ink);
}
.service-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s var(--ease), opacity 0.4s var(--ease);
}
.service-card:hover .service-media img { transform: scale(1.04); }
.service-media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,16,20,0) 45%, rgba(8,16,20,0.85) 100%);
}
.service-title {
  position: absolute; inset-inline: 20px; bottom: 18px; z-index: 1;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  color: var(--white); font-size: 24px; letter-spacing: -0.04em; line-height: 1.1;
}
.service-title svg { flex: none; transition: transform 0.3s var(--ease); }
.service-card:hover .service-title svg { transform: translate(3px, -3px); }

/* --------------------------------------------------------------------------
   12. Framework (3 steps)
   -------------------------------------------------------------------------- */
.framework-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
}
.framework-step {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 6px 16px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.framework-step p { margin-top: 8px; }
@media (min-width: 810px) {
  .framework-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    border-top: 0;
  }
  .framework-step {
    display: flex; flex-direction: column; gap: 12px;
    padding: 32px 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.55);
  }
}

/* --------------------------------------------------------------------------
   13. Approach + FAQ (accordions)
   -------------------------------------------------------------------------- */
.split-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: start;
}
@media (min-width: 1200px) {
  .split-layout { grid-template-columns: 1fr 1fr; gap: 60px; }
  .split-layout.faq { grid-template-columns: 0.85fr 1fr; gap: 112px; }
  .split-sticky { position: sticky; top: 110px; }
}

.approach-media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 786 / 1040;
  max-height: 620px;
}
.approach-media img { width: 100%; height: 100%; object-fit: cover; }
.approach-media .btn {
  position: absolute; inset-inline-end: 12px; bottom: 12px; z-index: 1;
}

.accordion { border-top: 1px solid var(--line); }
.on-dark .accordion { border-top-color: var(--line-invert); }

.accordion-item { border-bottom: 1px solid var(--line); }
.on-dark .accordion-item { border-bottom-color: var(--line-invert); }

.accordion-trigger {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  width: 100%;
  padding: 22px 0;
  text-align: start;
  color: var(--ink);
  transition: color 0.2s var(--ease);
}
.accordion-trigger:hover { color: var(--muted); }
.accordion-num {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em;
  color: var(--muted); padding-top: 6px; flex: none; min-width: 20px;
}
.accordion-label { flex: 1; }
.accordion-icon {
  flex: none; width: 20px; height: 20px; margin-top: 4px;
  position: relative;
}
.accordion-icon::before,
.accordion-icon::after {
  content: "";
  position: absolute; top: 50%; left: 50%;
  width: 13px; height: 1.5px;
  background: currentColor;
  transform: translate(-50%, -50%);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.accordion-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.accordion-trigger[aria-expanded="true"] .accordion-icon::after {
  transform: translate(-50%, -50%) rotate(0deg);
  opacity: 0;
}

.accordion-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.38s var(--ease);
}
.accordion-panel > div { overflow: hidden; }
.accordion-item.is-open .accordion-panel { grid-template-rows: 1fr; }
.accordion-body {
  padding-block: 0 24px;
  padding-inline: 36px;
  color: var(--muted);
  max-width: 62ch;
}
.on-dark .accordion-body { color: var(--muted-invert); }

/* --------------------------------------------------------------------------
   14. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  position: relative;
  background-color: var(--ink);
  color: var(--white);
  overflow: hidden;
}
.footer-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0.28;
}
.site-footer::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, var(--ink) 0%, rgba(8,16,20,0.75) 40%, var(--ink) 100%);
}
.site-footer > .container { position: relative; z-index: 1; }

.footer-cta { padding-block: 100px 80px; text-align: center; }
.footer-cta .h2 { max-width: 18ch; margin-inline: auto; }
.footer-cta p { max-width: 62ch; margin-inline: auto; }

.form-note { font-size: 12px; line-height: 1.5; color: var(--muted-invert); margin-top: 12px; }
.form-status { font-size: 14px; margin-top: 12px; min-height: 1.2em; }
.form-status[data-state="ok"]    { color: #7fd39b; }
.form-status[data-state="error"] { color: #f0918f; }

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding-block: 60px;
  border-top: 1px solid var(--line-invert);
}
@media (min-width: 810px)  { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; } }
@media (min-width: 1200px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; gap: 60px; } }

.footer-heading {
  font-family: var(--font-mono); font-size: 12px;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted-invert); margin-bottom: 18px;
}
.footer-list li + li { margin-top: 10px; }
.footer-list a, .footer-address {
  font-size: 15px; color: var(--muted-invert);
  transition: color 0.2s var(--ease);
}
.footer-list a:hover { color: var(--white); }
.footer-address { font-style: normal; line-height: 1.6; }
.footer-address strong { display: block; color: var(--white); font-weight: 400; margin-bottom: 4px; }

.footer-bottom {
  display: flex; flex-direction: column; gap: 20px;
  align-items: flex-start; justify-content: space-between;
  padding-block: 28px 40px;
  border-top: 1px solid var(--line-invert);
}
@media (min-width: 810px) { .footer-bottom { flex-direction: row; align-items: center; } }
.footer-bottom img { width: 101px; }
.footer-copy { font-size: 13px; color: var(--muted-invert); }

/* --------------------------------------------------------------------------
   15. Scroll reveal (progressive enhancement — no JS = fully visible)
   -------------------------------------------------------------------------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

.js [data-reveal-words] .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.4em);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  transition-delay: calc(var(--i, 0) * 38ms);
}
.js [data-reveal-words].is-visible .word { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js [data-reveal],
  .js [data-reveal-words] .word { opacity: 1 !important; transform: none !important; }
}

/* --------------------------------------------------------------------------
   17. Multilingual: Arabic (RTL) and CJK typography
   -------------------------------------------------------------------------- */
@font-face {
  font-family: "Noto Sans Arabic";
  src: url("../fonts/noto-sans-arabic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+08A0-08FF,
    U+FB50-FDFF, U+FE70-FEFF, U+200C-200E, U+2010-2011, U+204F, U+2E41;
}

/* Arabic: Noto first, Geist keeps the latin fragments (RevPAR, PMS, OTA…) */
[lang="ar"], :root:has(html[lang="ar"]) {
  --font-sans: "Noto Sans Arabic", "Geist", ui-sans-serif, system-ui, sans-serif;
}
html[lang="ar"] body {
  font-family: "Noto Sans Arabic", "Geist", ui-sans-serif, system-ui, sans-serif;
  line-height: 1.7;
}
/* Arabic script has no uppercase and its tight tracking looks broken */
html[lang="ar"] .h1, html[lang="ar"] .h2,
html[lang="ar"] .h3, html[lang="ar"] .h4 { letter-spacing: 0; }
html[lang="ar"] .eyebrow,
html[lang="ar"] .footer-heading,
html[lang="ar"] .metric-label { text-transform: none; letter-spacing: 0; font-family: var(--font-sans); }
html[lang="ar"] .numeral,
html[lang="ar"] .pillar-num,
html[lang="ar"] .accordion-num { font-family: var(--font-mono); }

/* Chinese: system CJK faces — a webfont here would cost several megabytes */
html[lang="zh"] body {
  font-family: "Geist", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    "Noto Sans SC", ui-sans-serif, system-ui, sans-serif;
  line-height: 1.75;
}
html[lang="zh"] .h1, html[lang="zh"] .h2,
html[lang="zh"] .h3, html[lang="zh"] .h4 { letter-spacing: -0.01em; }
html[lang="zh"] .eyebrow,
html[lang="zh"] .footer-heading,
html[lang="zh"] .metric-label { letter-spacing: 0.04em; }
/* CJK has no spaces — never break a heading mid-word */
html[lang="zh"] .h1, html[lang="zh"] .h2 { word-break: normal; line-break: strict; }

/* RTL corrections that logical properties can't express */
[dir="rtl"] .btn-arrow,
[dir="rtl"] .founder-cta svg,
[dir="rtl"] .inline-link svg,
[dir="rtl"] .pill-link svg { transform: scaleX(-1); }
[dir="rtl"] .btn:hover .btn-arrow { transform: scaleX(-1) translateX(3px); }
[dir="rtl"] .service-title svg { transform: scaleX(-1); }
[dir="rtl"] .service-card:hover .service-title svg { transform: scaleX(-1) translate(3px, -3px); }

/* --------------------------------------------------------------------------
   18. Inner-page hero
   -------------------------------------------------------------------------- */
.page-hero {
  position: relative;
  background-color: var(--ink);
  overflow: hidden;
  padding-block: 150px 80px;
}
.page-hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,16,20,0.86) 0%, rgba(8,16,20,0.6) 50%, var(--ink) 100%);
}
.page-hero > .container { position: relative; z-index: 1; }
.page-hero .h1 { max-width: 20ch; }
@media (min-width: 810px) { .page-hero { padding-block: 190px 110px; } }

.metrics-grid-4 { grid-template-columns: 1fr; }
@media (min-width: 560px)  { .metrics-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .metrics-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* --------------------------------------------------------------------------
   19. Content blocks
   -------------------------------------------------------------------------- */
.inline-link {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: opacity 0.2s var(--ease);
}
.inline-link:hover { opacity: 0.6; }
.on-dark .inline-link { color: var(--white); }

.quote-block {
  border-top: 1px solid var(--line);
  padding-top: 40px;
}
.quote-block .h2 { max-width: 22ch; }

.fact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }

.fact-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  padding: 28px 0;
  border-block: 1px solid var(--line);
}
@media (min-width: 560px)  { .fact-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .fact-row { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.fact p { font-size: 15px; }

.cta-band {
  display: flex; flex-direction: column; gap: 20px;
  align-items: flex-start; justify-content: space-between;
  padding: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.6);
}
.cta-band .h3 { max-width: 24ch; }
@media (min-width: 810px) { .cta-band { flex-direction: row; align-items: center; } }

.check-list, .dash-list { display: grid; gap: 12px; }
.check-list li, .dash-list li {
  display: grid; grid-template-columns: 20px 1fr; gap: 12px;
  align-items: start;
  color: var(--muted);
  line-height: 1.55;
}
.check-list li svg { margin-top: 5px; color: var(--ink); }
.on-dark .check-list li svg { color: var(--white); }
.dash-list li svg { display: none; }
.dash-list li { grid-template-columns: 14px 1fr; }
.dash-list li::before {
  content: ""; margin-top: 11px; height: 1px; width: 10px; background: var(--muted);
}
.on-dark .check-list li, .on-dark .dash-list li { color: var(--muted-invert); }

.pill-row { display: flex; flex-wrap: wrap; gap: 10px; }
.pill-link {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 18px; font-size: 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius-btn);
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease);
}
.pill-link:hover { background: var(--ink); color: var(--white); }

/* --------------------------------------------------------------------------
   20. Pricing
   -------------------------------------------------------------------------- */
.pricing-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 1200px) { .pricing-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.price-card {
  display: flex; flex-direction: column;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.6);
}
.price-card.is-featured {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}
.price-card.is-featured .h3,
.price-card.is-featured .price-amount { color: var(--white); }
.price-card.is-featured .lead,
.price-card.is-featured .eyebrow,
.price-card.is-featured .price-size,
.price-card.is-featured .price-period,
.price-card.is-featured .check-list li { color: var(--muted-invert); }
.price-card.is-featured .check-list li svg { color: var(--white); }
.price-card.is-featured .price-row { border-color: var(--line-invert); }
.price-card.is-featured .btn-dark { background: var(--white); color: var(--ink); }
.price-card.is-featured .btn-dark:hover { background: var(--muted-invert); }

.price-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.price-badge {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em;
  text-transform: uppercase; padding: 5px 10px;
  background: rgba(255, 255, 255, 0.14); color: var(--white);
  white-space: nowrap;
}
.price-rows { margin-top: 24px; display: grid; gap: 1px; }
.price-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding: 14px 0; border-top: 1px solid var(--line);
}
.price-size { font-size: 14px; color: var(--muted); }
.price-amount { font-size: 24px; letter-spacing: -0.04em; color: var(--ink); font-variant-numeric: tabular-nums; }
.price-period { font-size: 13px; letter-spacing: 0; color: var(--muted); }
.price-card .check-list { margin-top: 14px; margin-bottom: 28px; }
.price-card .btn { margin-top: auto; }

/* --------------------------------------------------------------------------
   21. Portfolio + case studies
   -------------------------------------------------------------------------- */
.case-grid { display: grid; grid-template-columns: 1fr; gap: 40px 20px; }
@media (min-width: 810px) { .case-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.case-card { display: flex; flex-direction: column; gap: 18px; }
.case-media {
  display: block; position: relative; overflow: hidden;
  border-radius: var(--radius); aspect-ratio: 4 / 3; background: var(--ink);
}
.case-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.case-card:hover .case-media img { transform: scale(1.04); }

.case-body { display: flex; flex-direction: column; align-items: flex-start; }

.case-hero-media {
  border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 16 / 9; background: var(--ink);
}
.case-hero-media img { width: 100%; height: 100%; object-fit: cover; }

.initiative-grid { display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
@media (min-width: 810px) { .initiative-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.initiative { background: var(--paper); padding: 28px 24px; }

.result-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.result { background: var(--paper); padding: 24px 20px; }
.result-value { font-size: 22px; letter-spacing: -0.04em; line-height: 1.15; display: block; }

/* --------------------------------------------------------------------------
   22. Contact
   -------------------------------------------------------------------------- */
@media (min-width: 1200px) { .split-layout.contact-layout { grid-template-columns: 1.15fr 0.85fr; gap: 60px; } }
.contact-aside { display: grid; gap: 16px; }
.info-card { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255, 255, 255, 0.6); }

.field-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 560px) { .field-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 13px; color: var(--muted); }
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 13px 15px;
  font-size: 15px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-btn);
  transition: border-color 0.2s var(--ease);
}
.contact-form textarea { resize: vertical; min-height: 130px; }
.contact-form input:focus,
.contact-form textarea:focus { outline: none; border-color: var(--ink); }
.contact-form input:user-invalid,
.contact-form textarea:user-invalid { border-color: #b4494b; }
.contact-form .form-status[data-state="ok"]    { color: #1f7a45; }
.contact-form .form-status[data-state="error"] { color: #b4494b; }

/* --------------------------------------------------------------------------
   23. Legal pages
   -------------------------------------------------------------------------- */
.legal-body { max-width: 74ch; }
.legal-section { margin-top: 44px; }
.legal-section .h3 { max-width: none; }
.legal-section .dash-list { margin-top: 16px; }

/* --------------------------------------------------------------------------
   24. Language switcher
   -------------------------------------------------------------------------- */
.lang-item .nav-trigger { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; }
.lang-panel { width: 190px; padding: 6px; }
.lang-option {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; font-size: 15px; color: var(--white);
  transition: background-color 0.2s var(--ease);
}
.lang-option:hover { background: rgba(255, 255, 255, 0.06); }
.lang-option[aria-current="true"] { color: var(--muted-invert); }
.lang-code {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em;
  color: var(--muted-invert); min-width: 22px;
}
.mobile-langs { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line-invert); display: flex; flex-wrap: wrap; gap: 8px 18px; }
.mobile-langs .footer-heading { width: 100%; }
.mobile-lang { font-size: 15px; color: var(--muted-invert); }
.mobile-lang:hover { color: var(--white); }

/* 4-up step grid for service pages */
@media (min-width: 810px)  { .framework-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .framework-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* --------------------------------------------------------------------------
   25. Page transitions
   Native cross-document View Transitions where supported (no JS, no delay).
   Browsers without them fall back to a JS-driven fade in assets/js/main.js.
   -------------------------------------------------------------------------- */
@view-transition { navigation: auto; }

@keyframes page-out { to   { opacity: 0; } }
@keyframes page-in  { from { opacity: 0; transform: translateY(10px); } }

::view-transition-old(root) { animation: page-out 0.18s var(--ease) both; }
::view-transition-new(root) { animation: page-in  0.42s var(--ease) both; }

/* Fallback: animate the content, not <body> — animating body would make it the
   containing block for the fixed header and the nav would jump mid-transition. */
.js.no-vt #main,
.js.no-vt .site-footer { animation: page-in 0.42s var(--ease) both; }
.js.no-vt.is-leaving #main,
.js.no-vt.is-leaving .site-footer { animation: page-out 0.18s var(--ease) both; }

@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) { animation: none !important; }
  .js.no-vt #main, .js.no-vt .site-footer,
  .js.no-vt.is-leaving #main, .js.no-vt.is-leaving .site-footer { animation: none !important; }
}

/* --------------------------------------------------------------------------
   16. Utilities (Tailwind-named subset actually used in the markup)
   -------------------------------------------------------------------------- */
.hp-field {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); clip-path: inset(50%);
  white-space: nowrap; border: 0;
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border-width: 0;
}
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }
.hidden { display: none; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-5 { gap: 20px; }
.gap-6 { gap: 24px; }
.gap-8 { gap: 32px; }
.gap-10 { gap: 40px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mt-5 { margin-top: 20px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.mt-10 { margin-top: 40px; }
.mt-12 { margin-top: 48px; }
.mb-4 { margin-bottom: 16px; }
.max-w-prose { max-width: 62ch; }
.text-center { text-align: center; }
.w-full { width: 100%; }
