/* =========================================================================
   Passporta Group — design system
   Institutional / premium one-pager. Deep navy + warm gold + per-brand accents.
   ========================================================================= */

:root {
  /* Core palette */
  --ink: #0C1A2B;          /* deep navy base */
  --ink-2: #122538;        /* raised navy */
  --paper: #F7F4EF;        /* warm off-white */
  --paper-2: #FFFFFF;
  --gold: #C8A24B;         /* refined institutional accent */
  --gold-soft: #E4CE96;
  --text: #1B2733;
  --muted: #5E6B78;
  --muted-light: rgba(247, 244, 239, 0.72);
  --line: rgba(12, 26, 43, 0.10);
  --line-light: rgba(247, 244, 239, 0.16);

  /* Per-brand accents (taken from each brand's real logo) */
  --evisa: #7C152A;        /* Evisa Express burgundy */
  --passporta: #1B4DB1;    /* Passporta EU blue */
  --comfort: #0555FF;      /* ComfortPass blue */
  --tp-green: #00B67A;     /* Trustpilot green */

  /* Type */
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Layout */
  --maxw: 1180px;
  --pad: clamp(20px, 5vw, 48px);
  --radius: 16px;
  --radius-sm: 10px;

  /* Motion / depth */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-card: 0 18px 44px rgba(12, 26, 43, .12);
  --shadow-lift: 0 28px 70px rgba(12, 26, 43, .18);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  background: var(--paper);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { margin: 0; line-height: 1.1; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: inherit; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--gold); color: var(--ink); padding: 10px 16px; border-radius: 0 0 8px 0; font-weight: 600;
}
.skip-link:focus { left: 0; }

/* ---------- intro curtain ---------- */
.intro {
  position: fixed; inset: 0; z-index: 1000; display: none;
  align-items: center; justify-content: center;
  background: linear-gradient(180deg, #0C1A2B 0%, #0E1F32 100%);
  will-change: transform;
}
.is-animate .intro { display: flex; }
.intro__inner { display: inline-flex; align-items: center; gap: 13px; }
.intro .brandmark__glyph { width: 42px; height: 42px; font-size: 23px; border-radius: 11px; }
.intro__word { font-family: var(--sans); font-weight: 700; font-size: 22px; letter-spacing: -0.01em; color: var(--paper); }
.intro__word .brandmark__group { color: var(--gold); margin-left: 4px; }

/* ---------- shared typographic helpers ---------- */
.eyebrow {
  text-transform: uppercase; letter-spacing: 0.18em; font-size: 12.5px; font-weight: 600;
  color: var(--gold); margin: 0 0 18px;
}
.eyebrow--light { color: var(--gold-soft); }

.section-title {
  font-family: var(--serif); font-weight: 500; font-size: clamp(28px, 4.4vw, 46px);
  letter-spacing: -0.02em; color: var(--ink);
}
.section-title--light { color: var(--paper); }

.section-intro { max-width: 60ch; margin-top: 16px; font-size: 18px; }
.muted { color: var(--muted); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--sans); font-weight: 600; font-size: 15px; line-height: 1;
  padding: 14px 24px; border-radius: 999px; text-decoration: none;
  border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--gold { background: var(--gold); color: var(--ink); box-shadow: 0 8px 22px rgba(200, 162, 75, .28); }
.btn--gold:hover { background: var(--gold-soft); }
.btn--ghost { background: transparent; color: var(--paper); border-color: var(--line-light); }
.btn--ghost:hover { border-color: var(--gold-soft); color: #fff; }
.btn--ghost.btn--dark { color: var(--ink); border-color: var(--line); }
.btn--ghost.btn--dark:hover { border-color: var(--gold); }
.btn--block { width: 100%; }

/* ============================== NAV (transparent over hero → dark glass on scroll) ============================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: transparent; border-bottom: 1px solid transparent;
  transition: background .35s var(--ease-soft), border-color .35s var(--ease-soft), backdrop-filter .35s var(--ease-soft);
}
.nav.is-scrolled {
  background: rgba(12, 26, 43, 0.7);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom-color: var(--line-light);
}
.nav__inner { display: flex; align-items: center; height: 70px; }

.brandmark { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font-weight: 700; }
.brandmark__glyph {
  width: 34px; height: 34px; flex: none; display: grid; place-items: center;
  background: var(--ink); color: var(--gold); font-family: var(--serif); font-weight: 600;
  border: 1px solid var(--line-light); border-radius: 9px; font-size: 19px;
}
.brandmark__text { font-size: 18px; letter-spacing: -0.01em; color: var(--paper); }
.brandmark__group { color: var(--gold); margin-left: 4px; font-weight: 600; }

/* ============================== HERO ============================== */
.hero { position: relative; background: var(--ink); color: var(--paper); overflow: hidden; }
.hero__bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(900px 520px at 78% -8%, rgba(200, 162, 75, .20), transparent 60%),
    radial-gradient(620px 440px at 6% 108%, rgba(27, 77, 177, .22), transparent 60%),
    linear-gradient(180deg, #0C1A2B 0%, #0E1F32 100%);
}
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(247,244,239,.05) 1px, transparent 1px);
  background-size: 100% 38px; mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
  opacity: .5;
}
.hero__inner {
  position: relative; padding: clamp(92px, 10vw, 116px) 0 clamp(40px, 5vw, 64px);
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center;
}
.hero__title {
  font-family: var(--serif); font-weight: 400; font-size: clamp(46px, 8.6vw, 104px);
  letter-spacing: -0.035em; line-height: 0.98; margin-bottom: 26px;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.04em; }
.hero__title .line > span { display: block; will-change: transform; }
.hero__title em { font-style: italic; color: var(--gold-soft); }
.hero__lead { max-width: 56ch; font-size: clamp(17px, 2.2vw, 21px); color: var(--muted-light); }

/* Hero credibility cluster (image page — proof of a stable, established group) */
.hero__trust { margin-top: 40px; }
.hero__rating { display: inline-flex; align-items: center; gap: 14px; }
.hero__rating .tp-stars { flex: none; }
.hero__rating-text { font-size: 14px; line-height: 1.45; color: var(--muted-light); }
.hero__rating-text strong { color: var(--paper); font-weight: 600; }
.hero__rating-tp { color: var(--paper); font-weight: 600; white-space: nowrap; }
.hero__rating-tp .tp-star { color: var(--tp-green); margin-right: 3px; }

.hero__proof {
  list-style: none; margin: 26px 0 0; padding: 26px 0 0; border-top: 1px solid var(--line-light);
  display: flex; flex-wrap: wrap; gap: 14px 28px;
}
.hero__proof li {
  position: relative; font-size: 12.5px; text-transform: uppercase; letter-spacing: .1em;
  color: rgba(247, 244, 239, 0.6);
}
.hero__proof li strong { color: var(--paper); font-weight: 600; letter-spacing: .04em; }
.hero__proof li:not(:last-child)::after {
  content: ""; position: absolute; right: -15px; top: 50%; width: 3px; height: 3px;
  margin-top: -1.5px; border-radius: 50%; background: var(--gold);
}
.hero__proof li::before { content: ""; display: none; }

.tp-stars { --score: 5; position: relative; display: inline-block; width: 108px; height: 20px;
  background: rgba(255,255,255,.16); border-radius: 3px; overflow: hidden; }
.tp-stars__fill { position: absolute; inset: 0; width: calc(var(--score) / 5 * 100%); background: var(--tp-green); }
.tp-stars::after {
  content: "★ ★ ★ ★ ★"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: space-between;
  padding: 0 3px; color: #fff; font-size: 13px; letter-spacing: -1px; mix-blend-mode: screen;
}

/* Hero visual (image + floating cards) */
.hero__visual { position: relative; justify-self: center; width: 100%; max-width: 460px; }
.hero__photo {
  width: 100%; height: auto; aspect-ratio: 4 / 4.4; object-fit: cover;
  border-radius: 20px; border: 1px solid var(--line-light);
  box-shadow: 0 30px 70px rgba(0,0,0,.45);
}
.hero__float {
  position: absolute; background: rgba(14, 31, 50, .82); backdrop-filter: blur(10px);
  border: 1px solid var(--line-light); border-radius: 14px; padding: 14px 18px;
  box-shadow: 0 16px 40px rgba(0,0,0,.35);
}
.hero__float--stat { left: -22px; top: 36px; text-align: left; }
.hero__float-num { display: block; font-family: var(--serif); font-size: 30px; color: var(--gold-soft); line-height: 1; }
.hero__float-label { display: block; margin-top: 4px; font-size: 12.5px; color: var(--muted-light); }
.hero__float--rating { right: -20px; bottom: 30px; display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted-light); }
.hero__float--rating strong { color: var(--paper); font-size: 17px; }
.hero__float--rating small { color: rgba(247,244,239,.55); font-size: 11px; }
.tp-mini-star { color: var(--tp-green); font-size: 26px; line-height: 1; }

/* Hero brand-logo row */
.hero__logos {
  position: relative; display: flex; align-items: center; gap: clamp(22px, 4vw, 46px); flex-wrap: wrap;
  padding-top: 30px; padding-bottom: clamp(34px, 5vw, 56px); margin-top: 8px;
  border-top: 1px solid var(--line-light);
}
.hero__logos-label { font-size: 12px; text-transform: uppercase; letter-spacing: .14em; color: rgba(247,244,239,.5); margin-right: 6px; }
/* Render all three brand wordmarks as uniform white on the dark hero */
.hero__logo { height: 26px; width: auto; filter: brightness(0) invert(1); opacity: .82; transition: opacity .2s ease; }
.hero__logo:hover { opacity: 1; }
.hero__logo--evisa { height: 30px; }

/* ============================== DECADE / 10 YEARS ============================== */
.decade { background: var(--paper); padding: clamp(74px, 11vw, 140px) 0; overflow: hidden; }
.decade .eyebrow { margin: 0 0 10px; }
.decade__grid {
  display: grid; grid-template-columns: auto 1fr; gap: clamp(32px, 7vw, 92px); align-items: center;
}
.decade__figure { display: flex; align-items: flex-start; gap: 8px; }
.decade__num {
  font-family: var(--serif); font-weight: 500; font-size: clamp(140px, 24vw, 300px);
  line-height: 0.74; letter-spacing: -0.05em; color: var(--ink);
}
.decade__unit {
  font-family: var(--serif); font-style: italic; font-size: clamp(22px, 3vw, 42px);
  color: var(--gold); margin-top: 0.35em; white-space: nowrap;
}
.decade__title {
  font-family: var(--serif); font-weight: 500; font-size: clamp(26px, 3.6vw, 46px);
  letter-spacing: -0.02em; line-height: 1.08; color: var(--ink); margin: 0;
}
.decade__lead { margin-top: 20px; max-width: 54ch; font-size: clamp(16px, 1.6vw, 19px); color: var(--muted); }

/* ============================== TRUST BAND ============================== */
.trustband { background: var(--ink-2); color: var(--paper); padding: clamp(48px, 7vw, 84px) 0; }
.trustband__head { text-align: center; margin-bottom: 42px; }
.trustband__head .section-title { color: var(--paper); }
.trustband__head .muted { color: var(--muted-light); margin-top: 8px; }

.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line-light); border: 1px solid var(--line-light); border-radius: var(--radius); overflow: hidden;
}
.stat { background: var(--ink-2); padding: 30px 22px; text-align: center; }
.stat__num {
  display: block; font-family: var(--serif); font-weight: 500; font-size: clamp(30px, 4vw, 42px);
  color: var(--gold-soft); letter-spacing: -0.02em;
}
.stat__label { display: block; margin-top: 8px; font-size: 13.5px; color: var(--muted-light); letter-spacing: .01em; }

/* ============================== BRANDS ============================== */
.brands { padding: clamp(64px, 9vw, 110px) 0; }
.brands .section-intro { margin-bottom: 48px; }

.brand-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.brand-card {
  position: relative; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px 26px; display: flex; flex-direction: column;
  transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--ty, 0px));
  transform-style: preserve-3d;
  transition: transform .3s var(--ease-out), box-shadow .35s var(--ease-soft), border-color .3s var(--ease-soft);
  overflow: hidden;
}
.brand-card::before {
  content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 100%; background: var(--accent);
}
.brand-card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(420px 220px at var(--mx, 50%) 0%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 70%);
  transition: opacity .35s var(--ease-soft);
}
.brand-card:hover { --ty: -6px; box-shadow: var(--shadow-lift); border-color: transparent; }
.brand-card:hover::after { opacity: 1; }

.brand-card__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; min-height: 34px; }
.brand-card__logo { height: 28px; width: auto; max-width: 60%; object-fit: contain; object-position: left center; }
.brand-card__name { font-family: var(--serif); font-weight: 600; font-size: 24px; color: var(--accent); letter-spacing: -0.01em; }
.brand-card__chip {
  font-size: 12px; font-weight: 600; white-space: nowrap; color: var(--text);
  background: rgba(0, 182, 122, .10); border: 1px solid rgba(0,182,122,.30); color: #0a7a55;
  padding: 5px 10px; border-radius: 999px;
}
.brand-card__tag { font-family: var(--serif); font-style: italic; font-size: 17px; color: var(--ink); margin-bottom: 14px; }
.brand-card__desc { color: var(--muted); font-size: 15.5px; }
.brand-card__stat {
  margin: 20px 0 22px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14.5px; color: var(--muted);
}
.brand-card__stat strong { font-family: var(--serif); font-size: 22px; color: var(--ink); display: inline-block; margin-right: 4px; }
.brand-card__link {
  margin-top: auto; text-decoration: none; font-weight: 600; font-size: 15px; color: var(--accent);
  display: inline-flex; align-items: center; gap: 8px;
}
.brand-card__link span { transition: transform .2s ease; }
.brand-card__link:hover span { transform: translateX(4px); }

/* ============================== ABOUT / LEADERSHIP ============================== */
.about { padding: clamp(64px, 9vw, 110px) 0; background: var(--paper); }
.about__inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(36px, 5vw, 72px); align-items: center; }
.about__lead { font-family: var(--serif); font-style: italic; font-size: clamp(19px, 2.4vw, 24px); color: var(--ink); line-height: 1.4; margin: 18px 0 18px; }
.about__copy .muted { max-width: 52ch; }

.about__team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.leader { margin: 0; }
.leader__frame {
  overflow: hidden; border-radius: 14px; border: 1px solid var(--line);
  aspect-ratio: 3 / 3.4; background: var(--ink-2);
}
.leader img {
  width: 100%; height: 100%; object-fit: cover; filter: grayscale(.6) contrast(1.02);
  transition: filter .5s var(--ease-soft), transform .6s var(--ease-out);
}
.leader:hover img { filter: grayscale(0); transform: scale(1.05); }
.leader figcaption { margin-top: 12px; }
.leader figcaption strong { display: block; font-family: var(--serif); font-weight: 600; font-size: 16px; color: var(--ink); }
.leader figcaption span { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }

/* ============================== RESILIENCE ============================== */
.resilience {
  position: relative; overflow: hidden; background: var(--ink); color: var(--paper);
  padding: clamp(80px, 13vw, 150px) 0; text-align: center;
}
.resilience__bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(820px 480px at 78% -14%, rgba(200, 162, 75, .18), transparent 60%),
    radial-gradient(620px 440px at 8% 116%, rgba(27, 77, 177, .20), transparent 60%),
    linear-gradient(180deg, #0C1A2B 0%, #0E1F32 100%);
}
.resilience__inner { position: relative; }
.resilience .eyebrow { margin: 0 0 18px; }
.resilience__word {
  font-family: var(--serif); font-weight: 400; font-size: clamp(56px, 14vw, 168px);
  line-height: 0.92; letter-spacing: -0.045em; color: var(--paper); margin: 0;
}
.resilience__dot { color: var(--gold-soft); }
.resilience__lead {
  max-width: 62ch; margin: clamp(28px, 4vw, 46px) auto 0;
  font-size: clamp(16px, 2vw, 20px); line-height: 1.65; color: var(--muted-light);
}

/* ============================== REVIEWS ============================== */
.reviews { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: clamp(64px, 9vw, 104px) 0; }
.reviews .section-intro { margin-bottom: 44px; }
/* Full-width stacked brand blocks — each Trustpilot carousel spans the whole
   section so it can show several review cards across the row. */
.review-grid { display: grid; grid-template-columns: 1fr; gap: 22px; }
.review-col {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 26px 24px; border-top: 4px solid var(--accent);
}
.review-col__head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  margin-bottom: 8px; flex-wrap: wrap;
}
.review-col__name { font-family: var(--serif); font-weight: 600; font-size: 21px; color: var(--ink); }
.review-col__link {
  font-weight: 600; font-size: 14px; color: var(--accent); text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px;
}
.review-col__link span { transition: transform .2s ease; }
.review-col__link:hover span { transform: translateX(4px); }
/* Holds the official Trustpilot carousel iframe (or the static fallback band) */
.tp-slot { width: 100%; }
.tp-slot .trustpilot-widget { width: 100%; }

/* Static Trustpilot fallback — a full-width horizontal trust band (used when a
   brand's review count is too low for the carousel widget to render). */
.tp-card {
  width: 100%; display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 14px 30px; text-align: center; padding: 22px 0 8px;
}
.tp-card__logo { font-weight: 700; color: var(--ink); display: inline-flex; align-items: center; gap: 7px; font-size: 16px; }
.tp-card__logo .tp-star { color: var(--tp-green); font-size: 19px; }
.tp-card .tp-stars { width: 150px; height: 28px; margin: 0; }
.tp-card .tp-stars::after { font-size: 18px; }
.tp-card__score { font-family: var(--serif); font-size: 18px; color: var(--ink); }
.tp-card__score strong { font-size: 24px; }
.tp-card__meta { color: var(--muted); font-size: 14px; margin: 0; }
.tp-card__link { font-weight: 600; font-size: 14px; color: var(--tp-green); text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 1px; }

/* ============================== PARTNERS ============================== */
.partners { background: var(--ink); color: var(--paper); padding: clamp(64px, 9vw, 110px) 0; }
.partners .section-title { margin-bottom: 48px; }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pillar {
  position: relative; background: rgba(255,255,255,.03); border: 1px solid var(--line-light); border-radius: var(--radius);
  padding: 30px 28px; overflow: hidden;
  transition: border-color .3s var(--ease-soft), background .3s var(--ease-soft), transform .3s var(--ease-out);
}
.pillar::before {
  content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 0; background: var(--gold);
  transition: width .4s var(--ease-out);
}
.pillar:hover { border-color: var(--gold-soft); background: rgba(255,255,255,.05); transform: translateY(-4px); }
.pillar:hover::before { width: 100%; }
.pillar__num {
  display: block; font-family: var(--serif); font-weight: 500; font-size: 15px;
  color: var(--gold); letter-spacing: .12em; margin-bottom: 16px;
}
.pillar h3 { font-family: var(--serif); font-weight: 500; font-size: 21px; margin: 0 0 10px; color: var(--paper); }
.pillar p { color: var(--muted-light); font-size: 15px; }

/* ============================== CONTACT ============================== */
.contact { padding: clamp(64px, 9vw, 110px) 0; }
.contact__card {
  position: relative; overflow: hidden;
  background: var(--ink); color: var(--paper);
  border: 1px solid var(--line-light); border-radius: 28px;
  padding: clamp(52px, 7vw, 84px) clamp(28px, 6vw, 80px);
  text-align: center; box-shadow: var(--shadow-lift);
}
.contact__card-bg { position: absolute; inset: 0; background: var(--ink); }
.contact__card-img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 30%;
  opacity: .92; filter: grayscale(.08);
}
/* Light overall tint + a focused scrim behind the centre text — keeps the team
   photo clearly visible while the headline/email stay readable. */
.contact__card-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(820px 500px at 50% 46%, rgba(12, 26, 43, .74) 0%, rgba(12, 26, 43, .30) 56%, rgba(12, 26, 43, 0) 100%),
    radial-gradient(640px 420px at 85% -12%, rgba(200, 162, 75, .14), transparent 60%),
    linear-gradient(180deg, rgba(12, 26, 43, .22) 0%, rgba(12, 26, 43, .46) 100%);
}
.contact__card-inner { position: relative; display: flex; flex-direction: column; align-items: center; }
.contact__card .eyebrow { margin: 0 0 16px; }
.contact__title {
  font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 6.4vw, 76px);
  letter-spacing: -0.03em; line-height: 1; color: var(--paper); margin: 0;
}
.contact__email {
  display: inline-flex; align-items: center; gap: 12px; margin-top: 22px;
  font-family: var(--serif); font-weight: 500; font-size: clamp(21px, 3.4vw, 38px);
  letter-spacing: -0.015em; color: var(--gold-soft); text-decoration: none;
  position: relative; transition: color .3s var(--ease-soft);
}
.contact__email::after {
  content: ""; position: absolute; left: 0; right: 34px; bottom: -2px; height: 2px;
  background: var(--gold-soft); transform: scaleX(0); transform-origin: left center;
  transition: transform .45s var(--ease-out);
}
.contact__email:hover { color: #fff; }
.contact__email:hover::after { transform: scaleX(1); background: #fff; }
.contact__email-arrow { flex: none; transition: transform .3s var(--ease-out); }
.contact__email:hover .contact__email-arrow { transform: translateX(5px); }

/* ============================== LEGAL ENTITIES ============================== */
.legal { padding: clamp(56px, 8vw, 96px) 0; background: var(--paper); border-top: 1px solid var(--line); }
.legal .section-intro { margin-bottom: 42px; }
/* Three side-by-side entity cards (~1/3 width each) with a vertical detail list */
.legal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: start; }
.legal-entity {
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(22px, 2vw, 28px);
}
.legal-entity__head { margin-bottom: 18px; }
.legal-entity__name { font-family: var(--serif); font-weight: 600; font-size: 18px; color: var(--ink); margin: 0 0 7px; letter-spacing: -0.01em; line-height: 1.2; }
.legal-entity__addr { color: var(--muted); font-size: 13px; line-height: 1.45; margin: 0; }

/* Vertical label-over-value list */
.legal-meta { display: flex; flex-direction: column; gap: 13px; margin: 0; padding-top: 18px; border-top: 1px solid var(--line); }
.legal-meta__item { min-width: 0; }
.legal-meta dt { margin: 0 0 3px; font-size: 10px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.legal-meta dd { margin: 0; font-size: 13.5px; font-weight: 600; color: var(--ink); line-height: 1.4; }
.legal-note { margin-top: 26px; max-width: 78ch; font-size: 12.5px; line-height: 1.6; color: var(--muted); }

/* ============================== FOOTER ============================== */
.footer { background: var(--ink-2); color: var(--muted-light); padding: clamp(56px, 7vw, 80px) 0 36px; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px; }
.footer__about { max-width: 40ch; }
.brandmark--footer .brandmark__text { color: var(--paper); }
.footer__tagline { margin: 16px 0 14px; color: var(--muted-light); }
.footer__disclaimer { font-size: 13px; color: rgba(247,244,239,.5); line-height: 1.55; }
.footer__col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .12em; color: var(--gold-soft); margin-bottom: 16px; }
.footer__col ul { list-style: none; padding: 0; margin: 0; }
.footer__col li { margin-bottom: 11px; }
.footer__col a { color: var(--muted-light); text-decoration: none; font-size: 15px; }
.footer__col a:hover { color: var(--paper); }

.footer__legal { margin-top: 48px; padding-top: 26px; border-top: 1px solid var(--line-light); display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; }
.footer__entities { font-size: 12.5px; color: rgba(247,244,239,.55); line-height: 1.6; max-width: 78ch; }
.footer__entities strong { color: var(--muted-light); }
.todo { color: var(--gold-soft); }
.footer__copy { font-size: 13px; color: rgba(247,244,239,.5); white-space: nowrap; }

/* ============================== CRAFT LAYER: GRAIN, PROGRESS, REVEALS ============================== */

/* Fixed film-grain overlay for tactile depth (very subtle, non-interactive) */
.grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  opacity: .035; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Scroll-progress bar pinned under the sticky nav */
.scroll-progress {
  position: fixed; left: 0; top: 0; z-index: 101; height: 2px; width: 100%;
  transform: scaleX(0); transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft));
  will-change: transform;
}

/* Reveal system — content is visible by default (no-JS / reduced-motion safe).
   The .is-animate flag (added by JS only when motion is allowed) arms the
   hidden start-state; GSAP then animates each element into view. */
.is-animate [data-reveal],
.is-animate [data-reveal-group] > * { opacity: 0; transform: translateY(22px); will-change: transform, opacity; }
.is-animate [data-parallax] { will-change: transform; }

/* SplitType kinetic parts (words / chars) */
.word, .char { display: inline-block; will-change: transform, opacity; }

/* Hero line-mask reveal — pure CSS transition toggled by JS (.is-in), kept
   independent of GSAP so a font-load reflow or ScrollTrigger refresh can't
   freeze it mid-flight. */
.is-animate .hero__title .line > span {
  transform: translateY(110%); transition: transform 1s var(--ease-out); will-change: transform;
}
.is-animate .hero__title.is-in .line > span { transform: translateY(0); }
.is-animate .hero__title.is-in .line:nth-child(2) > span { transition-delay: .14s; }

/* ============================== RESPONSIVE ============================== */
@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { max-width: 380px; margin-top: 8px; }
  .about__inner { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .brand-grid, .pillars { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .footer__about { grid-column: 1 / -1; max-width: none; }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  .brand-grid, .pillars { grid-template-columns: 1fr; }
  .decade__grid { grid-template-columns: 1fr; gap: 10px; }
  .legal-grid { grid-template-columns: 1fr; }
  .hero__visual { max-width: 320px; }
  .hero__proof { flex-direction: column; gap: 11px; }
  .hero__proof li { padding-left: 16px; }
  .hero__proof li:not(:last-child)::after { display: none; }
  .hero__proof li::before {
    display: block; position: absolute; left: 0; top: 50%; margin-top: -1.5px;
    width: 3px; height: 3px; border-radius: 50%; background: var(--gold);
  }
  .hero__float--stat { left: 0; }
  .hero__float--rating { right: 0; }
  .about__team { gap: 12px; }
  .leader figcaption strong { font-size: 14px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__legal { flex-direction: column; gap: 12px; }
}

@media (max-width: 420px) {
  .stats { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
  /* Never hide content when motion is off */
  .is-animate [data-reveal],
  .is-animate [data-reveal-group] > * { opacity: 1 !important; transform: none !important; }
  .is-animate .hero__title .line > span { transform: none !important; }
}
