/* ============================================================================
   GVG / Gila Ventures Group — styles.css  (v1.0)
   Shared by the USA root page and the /mx page.
   Order: 1) fonts  2) tokens  3) base  4) layout  5) header  6) photo sections
          7) sections  8) components  9) footer  10) motion  11) responsive  12) print
   Font and image URLs resolve relative to /styles.css, so they work on /mx too.
   Palette is strictly grayscale: no blue, no accent color.
   ========================================================================== */


/* ============================================================================
   1. FONTS — drop the .otf files into /assets/fonts/ (see its README).
   ========================================================================== */

@font-face { font-family: "Cera Pro"; src: url("assets/fonts/CeraPro-Regular.otf") format("opentype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Cera Pro"; src: url("assets/fonts/CeraPro-Medium.otf")  format("opentype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Radikal";  src: url("assets/fonts/Radikal-Thin.otf")    format("opentype"); font-weight: 200; font-display: swap; }
@font-face { font-family: "Radikal";  src: url("assets/fonts/Radikal-Light.otf")   format("opentype"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Radikal";  src: url("assets/fonts/Radikal-Bold.otf")    format("opentype"); font-weight: 700; font-display: swap; }


/* ============================================================================
   2. DESIGN TOKENS — edit here first.
   ========================================================================== */

:root {
  /* Grayscale palette */
  --c-black:      #0a0a0a;   /* brand black, matches the logo */
  --c-graphite:   #181817;   /* base dark surface             */
  --c-charcoal:   #101010;   /* deeper dark surface           */
  --c-paper:      #ecebe6;   /* warm off-white                */
  --c-white:      #ffffff;

  /* Semantic tokens (light sections re-map these, see .section--alt) */
  --c-bg:          var(--c-graphite);
  --c-bg-alt:      var(--c-charcoal);
  --c-text:        #ecebe8;
  --c-text-muted:  #a3a19b;
  --c-text-faint:  #77756f;
  --c-line:        rgba(255, 255, 255, 0.12);
  --c-line-strong: rgba(255, 255, 255, 0.28);
  --c-fill-soft:   rgba(255, 255, 255, 0.04);

  /* Type */
  --f-display: "Radikal", "Cera Pro", "Helvetica Neue", Arial, sans-serif;
  --f-text:    "Cera Pro", "Helvetica Neue", Arial, sans-serif;

  --fs-hero:    clamp(2.6rem, 5.8vw, 5.25rem);
  --fs-h2:      clamp(1.9rem, 3.6vw, 3.1rem);
  --fs-h3:      clamp(1.2rem, 1.8vw, 1.5rem);
  --fs-lede:    clamp(1.05rem, 1.35vw, 1.25rem);
  --fs-body:    1rem;
  --fs-small:   0.9rem;
  --fs-label:   0.75rem;
  --lh-tight:   1.04;
  --lh-normal:  1.6;
  --ls-label:   0.14em;

  /* Spacing */
  --sp-1: 0.5rem;
  --sp-2: 1rem;
  --sp-3: 1.5rem;
  --sp-4: 2rem;
  --sp-5: 3rem;
  --sp-6: 4.5rem;
  --sp-7: 7.5rem;

  /* Layout */
  --w-max:    1320px;
  --gutter:   clamp(1.25rem, 4vw, 3.5rem);
  --rail:     240px;
  --header-h: 76px;
  --radius:   2px;

  /* Motion */
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
}


/* ============================================================================
   3. BASE
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--f-text);
  font-size: var(--fs-body);
  line-height: var(--lh-normal);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: var(--f-display);
  font-weight: 300;
  line-height: var(--lh-tight);
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}
h2 { font-size: var(--fs-h2); }

p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 2px solid var(--c-text); outline-offset: 3px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--c-white); color: var(--c-black);
  padding: var(--sp-2) var(--sp-3);
}
.skip-link:focus { left: 0; }

.hp { position: absolute; left: -9999px; }   /* form honeypot */


/* ============================================================================
   4. LAYOUT — .wrap (width + gutters), .sheet (label rail | content)
   ========================================================================== */

.wrap {
  width: 100%;
  max-width: var(--w-max);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.section {
  position: relative;
  padding-block: var(--sp-7);
}

.sheet {
  display: grid;
  grid-template-columns: var(--rail) minmax(0, 1fr);
  gap: var(--sp-4);
}
.sheet-label {
  grid-column: 1;
  align-self: start;
  padding-top: 0.6rem;
  border-top: 1px solid currentColor;
  font-size: var(--fs-label);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--c-text-faint);
}
.sheet-body,
.sheet > .facts { grid-column: 2; }

.lede {
  margin-top: var(--sp-3);
  max-width: 58ch;
  font-size: var(--fs-lede);
  color: var(--c-text-muted);
}

/* Light sections re-map the tokens so every child adapts */
.section--alt {
  --c-bg:          var(--c-paper);
  --c-text:        #141413;
  --c-text-muted:  #4f4d49;
  --c-text-faint:  #77756f;
  --c-line:        rgba(10, 10, 10, 0.14);
  --c-line-strong: rgba(10, 10, 10, 0.34);
  --c-fill-soft:   rgba(10, 10, 10, 0.04);
  background: var(--c-bg);
  color: var(--c-text);
}

/* Faint topographic contour lines (Sonoran terrain), light sections only */
.section--topo {
  background-image: url("assets/images/topo-lines.svg");
  background-size: cover;
  background-position: center;
}


/* ============================================================================
   5. HEADER — fixed; transparent over the hero, solid after scroll
   ========================================================================== */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 0.4s ease, border-color 0.4s ease;
}
.site-header.is-scrolled {
  background: rgba(16, 16, 16, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom-color: var(--c-line);
}

.header-inner {
  max-width: var(--w-max);
  margin: 0 auto;
  padding-inline: var(--gutter);
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  color: var(--c-white);
}
.brand img { height: 52px; width: auto; }   /* full lockup: GVG + Gila Ventures Group */

.market-switch {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: var(--fs-small);
  color: rgba(255, 255, 255, 0.72);   /* header always sits on a dark or photo background */
}
.market-link { white-space: nowrap; padding-block: 0.2rem; border-bottom: 1px solid transparent; }
.market-link:hover { color: var(--c-white); }
.market-link.is-current { color: var(--c-white); border-bottom-color: var(--c-white); }
.market-divider { color: rgba(255, 255, 255, 0.3); }

/* Thin bar that fills left to right as the page scrolls */
.scroll-progress {
  position: absolute;
  left: 0; bottom: -1px;
  width: 100%; height: 1px;
  background: var(--c-white);
  transform: scaleX(var(--progress, 0));
  transform-origin: left center;
  opacity: 0.7;
}


/* ============================================================================
   6. PHOTO SECTIONS — full-bleed grayscale image + dark overlay
   ========================================================================== */

.section--photo {
  overflow: hidden;
  background: var(--c-black);
  color: var(--c-text);
}

.section-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.section-media img {
  position: absolute;
  left: 0; top: -8%;
  width: 100%;
  height: 116%;                /* extra height gives parallax room */
  object-fit: cover;
  will-change: transform;
}
.section-media::after {        /* legibility overlay, tuned per section below */
  content: "";
  position: absolute;
  inset: 0;
}

.section--photo > .wrap { position: relative; z-index: 1; }


/* ============================================================================
   7. SECTIONS
   ========================================================================== */

/* --- 01 Hero --- */
.section--hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--header-h) + var(--sp-6)) 0 var(--sp-5);
}
.section--hero .section-media img { object-position: center 70%; }
.section--hero .section-media::after {
  background:
    linear-gradient(180deg, rgba(10,10,10,0.55) 0%, rgba(10,10,10,0) 22%),
    linear-gradient(90deg, rgba(10,10,10,0.78) 0%, rgba(10,10,10,0.42) 50%, rgba(10,10,10,0.05) 100%),
    linear-gradient(0deg,  rgba(10,10,10,0.9) 0%, rgba(10,10,10,0) 42%);
}
.section--hero .sheet-label { color: rgba(255, 255, 255, 0.6); }

.display {
  font-size: var(--fs-hero);
  max-width: 17ch;
  color: var(--c-white);
}
.section--hero .lede { color: rgba(255, 255, 255, 0.78); max-width: 52ch; }

.lede--follow { margin-top: var(--sp-2); }

.actions {
  margin-top: var(--sp-4);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}

.facts {
  margin: var(--sp-6) 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-3);
  padding-top: var(--sp-3);
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}
.fact dt {
  font-size: var(--fs-label);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}
.fact dd { margin: 0.35rem 0 0; font-size: var(--fs-small); color: var(--c-white); }

/* --- 02 What we are --- */
.pillars {
  margin-top: var(--sp-5);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--c-line-strong);
}
.pillars li {
  padding: var(--sp-3) var(--sp-3) var(--sp-3) 0;
  border-bottom: 1px solid var(--c-line);
  font-size: var(--fs-lede);
  font-family: var(--f-display);
  font-weight: 300;
  color: var(--c-text);
}

/* --- 03 Cross-border: the dashed line is the border --- */
.section--border .section-media::after {
  background:
    linear-gradient(180deg, rgba(10,10,10,0.88) 0%, rgba(10,10,10,0.62) 45%, rgba(10,10,10,0.78) 100%);
}
.section--border .lede { color: rgba(255, 255, 255, 0.75); }

.regions {
  position: relative;
  margin-top: var(--sp-7);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 20rem) minmax(0, 1fr);
  align-items: center;
  gap: var(--sp-4);
}
.regions::before {               /* the border line, running to the section edge */
  content: "";
  position: absolute;
  left: 50%;
  top: calc(-1 * var(--sp-6));
  bottom: calc(-1 * var(--sp-7));
  border-left: 1px dashed rgba(255, 255, 255, 0.45);
}
.region { position: relative; }
.region--us { text-align: right; }
.region--line {
  z-index: 1;
  padding: var(--sp-3);
  background: rgba(10, 10, 10, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.28);
  text-align: center;
}
.region-name {
  font-size: var(--fs-h3);
  color: var(--c-white);
}
.region--line .region-name { font-size: var(--fs-small); font-family: var(--f-text); font-weight: 500; letter-spacing: 0; }
.region-copy {
  margin-top: 0.6rem;
  font-size: var(--fs-small);
  color: rgba(255, 255, 255, 0.7);
}
.region--us .region-copy { margin-left: auto; max-width: 32ch; }
.region--mx .region-copy { max-width: 32ch; }

/* --- 04 Operating model --- */
.flow {
  margin-top: var(--sp-5);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--c-line-strong);
}
.flow-step {
  position: relative;
  padding: var(--sp-3) var(--sp-3) var(--sp-4) 0;
  border-bottom: 1px solid var(--c-line);
}
.flow-step + .flow-step:not(:nth-child(3n + 1)) { padding-left: var(--sp-3); border-left: 1px solid var(--c-line); }
.flow-step::before {             /* short tick marking each stage */
  content: "";
  position: absolute;
  top: -2px; left: 0;
  width: 28px; height: 3px;
  background: var(--c-text);
}
.flow-step + .flow-step:not(:nth-child(3n + 1))::before { left: var(--sp-3); }
.flow-index { display: block; font-size: var(--fs-label); letter-spacing: var(--ls-label); color: var(--c-text-faint); }
.flow-name  { display: block; margin-top: var(--sp-1); font-weight: 500; }
.flow-note  { display: block; margin-top: 0.4rem; font-size: var(--fs-small); color: var(--c-text-muted); max-width: 30ch; }

/* --- 05 Business units: photo panels --- */
#business-units { background: var(--c-graphite); }

.units {
  margin-top: var(--sp-5);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-4);
}
.unit { display: flex; flex-direction: column; }

.unit-media {
  position: relative;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: var(--c-black);
}
.unit-media > img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.001);
  transition: transform 1.4s var(--ease-out), filter 1.4s var(--ease-out);
  filter: brightness(0.82);
}
.unit-media--link { display: block; cursor: pointer; }
.unit-media--link:hover > img,
.unit-media--link:focus-visible > img { transform: scale(1.045); filter: brightness(0.95); }
.unit-media--link:focus-visible { outline: 2px solid var(--c-white); outline-offset: 4px; }

/* Small always-visible tag: tells touch users the panel opens the unit's site */
.unit-visit {
  position: absolute;
  top: var(--sp-3); right: var(--sp-3);
  z-index: 1;
  padding: 0.35rem 0.7rem;
  font-size: var(--fs-label);
  letter-spacing: 0.04em;
  color: var(--c-white);
  background: rgba(10, 10, 10, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: background-color 0.3s ease, color 0.3s ease;
}
.unit-media--link:hover .unit-visit,
.unit-media--link:focus-visible .unit-visit { background: var(--c-white); color: var(--c-black); }

/* One unit only (Mexico page): wide panorama */
.units--single { grid-template-columns: minmax(0, 1fr); }
.units--single .unit-media { aspect-ratio: 21 / 9; }
.units--single .unit-logo--supply { width: clamp(130px, 14vw, 190px); }
.unit-media::after {             /* gradient behind the logo */
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(10,10,10,0.85) 0%, rgba(10,10,10,0) 55%);
  pointer-events: none;
}

.unit-name {
  position: absolute;
  left: var(--sp-4); bottom: var(--sp-4);
  z-index: 1;
  margin: 0;
}
.unit-logo { height: auto; }
.unit-logo--gilaconn { width: clamp(150px, 16vw, 220px); }
.unit-logo--supply   { width: clamp(110px, 11vw, 150px); }

.unit-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: var(--sp-3) 0 0;
  border-bottom: 1px solid var(--c-line);
  padding-bottom: var(--sp-3);
}
.unit-status {
  font-size: var(--fs-label);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--c-text-faint);
}
.unit-copy {
  margin-top: var(--sp-2);
  color: var(--c-text-muted);
  max-width: 46ch;
}
.unit-note {
  margin-top: var(--sp-2);
  font-size: var(--fs-label);
  line-height: 1.5;
  color: var(--c-text-faint);
  max-width: 52ch;
}
.unit-link {
  margin-top: var(--sp-3);
  align-self: flex-start;
  font-size: var(--fs-small);
  border-bottom: 1px solid var(--c-line-strong);
  transition: border-color 0.3s ease;
}
.unit-link:hover { border-bottom-color: var(--c-text); }

.units-next {
  margin-top: var(--sp-5);
  display: grid;
  grid-template-columns: minmax(0, 13rem) minmax(0, 1fr);
  gap: var(--sp-2);
  padding: var(--sp-3) 0;
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
}
.units-next-label {
  padding-top: 0.15rem;
  font-size: var(--fs-label);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--c-text-faint);
}
.units-next-copy { font-size: var(--fs-small); color: var(--c-text-muted); max-width: 60ch; }

/* --- 06 Philosophy --- */
.principles { margin-top: var(--sp-5); max-width: 72ch; }
.principles li {
  display: grid;
  grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
  gap: var(--sp-2);
  padding: var(--sp-2) 0;
  border-top: 1px solid var(--c-line);
  font-size: var(--fs-small);
  color: var(--c-text-muted);
}
.principles li:last-child { border-bottom: 1px solid var(--c-line); }
.principle-name { color: var(--c-text); font-weight: 500; }

/* Single discreet line about internal systems (GVG Core) */
.core-note {
  margin-top: var(--sp-4);
  max-width: 62ch;
  font-size: var(--fs-small);
  color: var(--c-text-faint);
}

/* --- 07 Contact --- */
.section--contact { padding-bottom: var(--sp-4); }
.section--contact .section-media img {   /* anchored, no parallax: the saguaros close the page */
  top: 0; height: 100%;
  object-position: 85% bottom;          /* keep the saguaros on the right in frame */
}
.section--contact .form-note { color: rgba(255, 255, 255, 0.62); }
.section--contact .form-note a { color: rgba(255, 255, 255, 0.9); }
.section--contact .section-media::after {
  background:
    linear-gradient(0deg,  rgba(10,10,10,0.5) 0%, rgba(10,10,10,0) 18%),
    linear-gradient(90deg, rgba(10,10,10,0.8) 0%, rgba(10,10,10,0.45) 55%, rgba(10,10,10,0.1) 100%);
}

/* Page end: logo + legal line on the desert horizon */
.page-end {
  position: relative;
  z-index: 1;
  margin-top: clamp(7rem, 18vw, 15rem);
  padding-top: var(--sp-3);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-4);
}
.page-end::before {              /* rule aligned with the content, not the gutters */
  content: "";
  position: absolute;
  top: 0;
  left: var(--gutter); right: var(--gutter);
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}
.page-end--plain::before { display: none; }
.page-end-logo { width: clamp(96px, 9vw, 130px); }
.page-end-meta {
  display: grid;
  gap: 0.3rem;
  max-width: 52ch;
  text-align: right;
  font-size: var(--fs-label);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.6);
}
.page-end-meta a { color: rgba(255, 255, 255, 0.85); border-bottom: 1px solid rgba(255, 255, 255, 0.3); transition: border-color 0.3s ease; }
.page-end-meta a:hover { border-bottom-color: var(--c-white); }
.page-end--plain { margin-top: 0; border-top: 0; padding-top: 0; }
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--sp-5);
}
.section--contact .lede { color: rgba(255, 255, 255, 0.75); }
.contact-email { margin-top: var(--sp-4); font-size: var(--fs-lede); }
.contact-email a { border-bottom: 1px solid var(--c-line-strong); transition: border-color 0.3s ease; }
.contact-email a:hover { border-bottom-color: var(--c-text); }


/* ============================================================================
   8. COMPONENTS
   ========================================================================== */

.btn {
  display: inline-block;
  padding: 0.85rem 1.6rem;
  font-family: var(--f-text);
  font-size: var(--fs-small);
  line-height: 1.2;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.btn--solid { background: var(--c-text); color: var(--c-bg); }
.btn--solid:hover { background: var(--c-text-muted); }
.btn--ghost { border-color: var(--c-line-strong); color: var(--c-text); }
.btn--ghost:hover { border-color: var(--c-text); background: var(--c-fill-soft); }

.section--hero .btn--solid { background: var(--c-white); color: var(--c-black); }
.section--hero .btn--solid:hover { background: #cfcdc7; }
.section--hero .btn--ghost { border-color: rgba(255,255,255,0.45); color: var(--c-white); }


/* Form */
.form { display: grid; gap: var(--sp-3); align-content: start; }
.field { display: grid; gap: 0.4rem; }
.field label {
  font-size: var(--fs-label);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--c-text-muted);
}
.field input,
.field textarea {
  width: 100%;
  padding: 0.8rem 0.9rem;
  background: rgba(10, 10, 10, 0.55);
  border: 1px solid var(--c-line-strong);
  border-radius: var(--radius);
  color: var(--c-text);
  font: inherit;
  font-size: var(--fs-small);
  transition: border-color 0.3s ease, background-color 0.3s ease;
}
.field textarea { resize: vertical; }
.field input:focus,
.field textarea:focus { border-color: var(--c-text); background: rgba(10, 10, 10, 0.75); outline: none; }
.form .btn { justify-self: start; }
.form-note { font-size: var(--fs-label); line-height: 1.5; color: var(--c-text-faint); }
.form-note a { color: var(--c-text-muted); border-bottom: 1px solid var(--c-line-strong); }
.form-note a:hover { color: var(--c-text); }
.form-status { font-size: var(--fs-small); color: var(--c-text-muted); min-height: 1.4em; }


/* ============================================================================
   9. FOOTER — only /privacy uses a separate footer band; the landing pages
   end inside the contact section (.page-end above).
   ========================================================================== */

.site-footer {
  background: var(--c-charcoal);
  border-top: 1px solid var(--c-line);
  padding-block: var(--sp-5);
}


/* ============================================================================
   10. MOTION
   Only active when JS is available (html.js) and the user allows motion.
   - Hero: one load sequence (image settles, then text rises in order)
   - [data-reveal]: content fades up once as it enters the viewport
   - [data-parallax]: background images drift slowly (script.js)
   ========================================================================== */

@media (prefers-reduced-motion: no-preference) {

  /* Hero load sequence */
  .js .section--hero .section-media img { animation: hero-settle 2.6s var(--ease-out) both; }
  .js .hero-seq > *,
  .js .hero-seq .sheet-body > * { animation: rise-in 1s var(--ease-out) both; }
  .js .hero-seq .sheet-label          { animation-delay: 0.35s; }
  .js .hero-seq .display              { animation-delay: 0.5s; }
  .js .hero-seq .lede                 { animation-delay: 0.7s; }
  .js .hero-seq .actions              { animation-delay: 0.85s; }
  .js .hero-seq .facts                { animation-delay: 1.05s; }
  .js .hero-seq > .sheet-body         { animation: none; }

  /* Scroll reveal */
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
    transition-delay: var(--d, 0ms);
  }
  .js [data-reveal].is-visible { opacity: 1; transform: none; }

  /* The border line draws downward when the cross-border section appears */
  .js .regions::before { transform: scaleY(0); transform-origin: top; transition: transform 1.6s var(--ease-out) 0.3s; }
  .js .regions.is-visible::before { transform: scaleY(1); }
}

@keyframes hero-settle {
  from { opacity: 0; transform: scale(1.08); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes rise-in {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}


/* ============================================================================
   11. RESPONSIVE — 1024px (tablet), 720px (mobile)
   ========================================================================== */

@media (max-width: 1024px) {
  :root { --rail: 170px; --sp-7: 5.5rem; }
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .regions { grid-template-columns: minmax(0, 1fr) minmax(0, 16rem) minmax(0, 1fr); gap: var(--sp-3); }
}

@media (max-width: 720px) {
  :root { --sp-7: 4.25rem; --header-h: 64px; }

  .sheet { grid-template-columns: minmax(0, 1fr); gap: var(--sp-3); }
  .sheet-label, .sheet-body, .sheet > .facts { grid-column: 1; }

  .brand img { height: 44px; }
  .market-switch { font-size: 0.8rem; gap: 0.4rem; }

  .section--hero { padding-bottom: var(--sp-4); }
  .section--hero .section-media::after {
    background: linear-gradient(0deg, rgba(10,10,10,0.94) 0%, rgba(10,10,10,0.6) 55%, rgba(10,10,10,0.35) 100%);
  }
  .facts { grid-template-columns: minmax(0, 1fr); gap: var(--sp-2); margin-top: var(--sp-5); }

  .pillars { grid-template-columns: minmax(0, 1fr); }

  /* Border device stacks; the line runs down the left edge instead */
  .regions { grid-template-columns: minmax(0, 1fr); margin-top: var(--sp-5); padding-left: var(--sp-3); gap: var(--sp-3); }
  .regions::before { left: 0; top: 0; bottom: 0; }
  .region--us { text-align: left; }
  .region--us .region-copy { margin-left: 0; }
  .region--line { text-align: left; }

  .flow { grid-template-columns: minmax(0, 1fr); }
  .flow-step + .flow-step:not(:nth-child(3n + 1)) { padding-left: 0; border-left: 0; }
  .flow-step + .flow-step:not(:nth-child(3n + 1))::before { left: 0; }

  .units { grid-template-columns: minmax(0, 1fr); gap: var(--sp-5); }
  .unit-name { left: var(--sp-3); bottom: var(--sp-3); }
  .units-next { grid-template-columns: minmax(0, 1fr); }

  .principles li { grid-template-columns: minmax(0, 1fr); gap: 0.2rem; }
  .page-end { flex-direction: column; align-items: flex-start; }
  .page-end-meta { text-align: left; }
  .units--single .unit-media { aspect-ratio: 16 / 10; }

  /* No parallax drift on small screens */
  .section-media img { top: 0; height: 100%; }
}


/* ============================================================================
   12. PRINT
   ========================================================================== */

@media print {
  .site-header, .section-media, .form { display: none; }
  body, .section--photo { background: #fff; color: #000; }
}


/* ============================================================================
   13. MEXICO PAGE EXTRAS
   ========================================================================== */

.mx-supply-logo { width: clamp(180px, 22vw, 280px); }
.mx-note { margin-top: var(--sp-4); }


/* ============================================================================
   14. LEGAL PAGES (/privacy)
   ========================================================================== */

.page-legal .legal { padding-top: calc(var(--header-h) + var(--sp-6)); }
.legal-title { font-size: var(--fs-h2); }
.legal-body { max-width: 72ch; }

.legal-meta {
  margin: var(--sp-4) 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-5);
  padding-block: var(--sp-2);
  border-block: 1px solid var(--c-line);
  font-size: var(--fs-small);
}
.legal-meta dt { font-size: var(--fs-label); letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--c-text-faint); }
.legal-meta dd { margin: 0.2rem 0 0; }

.legal-toc { margin-top: var(--sp-5); }
.legal-toc-title { font-family: var(--f-text); font-size: var(--fs-small); font-weight: 500; letter-spacing: 0; }
.legal-toc ol {
  margin-top: var(--sp-2);
  columns: 2;
  column-gap: var(--sp-4);
  list-style: decimal-leading-zero;
  padding-left: 2rem;
  font-size: var(--fs-small);
  color: var(--c-text-faint);
}
.legal-toc li { margin-bottom: 0.35rem; }
.legal-toc a { color: var(--c-text-muted); border-bottom: 1px solid transparent; }
.legal-toc a:hover { color: var(--c-text); border-bottom-color: var(--c-line-strong); }

.legal-section {
  margin-top: var(--sp-5);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--c-line);
  scroll-margin-top: calc(var(--header-h) + var(--sp-2));
}
.legal-section h2 { font-size: var(--fs-h3); display: flex; gap: var(--sp-2); align-items: baseline; }
.legal-num { font-family: var(--f-text); font-size: var(--fs-label); letter-spacing: var(--ls-label); color: var(--c-text-faint); }
.legal-section h3 { margin-top: var(--sp-3); font-family: var(--f-text); font-size: var(--fs-body); font-weight: 500; letter-spacing: 0; }
.legal-section p,
.legal-section li { margin-top: var(--sp-2); color: var(--c-text-muted); }
.legal-section ul { list-style: disc; padding-left: 1.25rem; }
.legal-section li { margin-top: 0.5rem; }
.legal-section strong { color: var(--c-text); font-weight: 500; }
.legal-section a,
.legal-address a { color: var(--c-text); border-bottom: 1px solid var(--c-line-strong); }
.legal-address { margin-top: var(--sp-2); font-style: normal; color: var(--c-text-muted); line-height: 1.8; }

@media (max-width: 720px) {
  .legal-toc ol { columns: 1; }
}
