/* ==========================================================================
   Litoral Capital ÔÇö site stylesheet (normalized)
   Single source of truth. Organized: tokens Ôćĺ reset Ôćĺ typography Ôćĺ
   buttons Ôćĺ layout/containers Ôćĺ header Ôćĺ sections Ôćĺ components Ôćĺ
   footer Ôćĺ modals Ôćĺ motion Ôćĺ responsive.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  /* Palette */
  --navy: #081423;
  --midnight: #0D1B2A;
  --deep-sea: #15263D;
  --ivory: #F3EEE6;
  --sand: #D8C9B6;
  --gold: #C8A76A;
  --line: rgba(216, 201, 182, 0.14);
  --line-bright: rgba(216, 201, 182, 0.28);

  /* Layout */
  --max: 1200px;                         /* content width cap */
  --gutter: clamp(20px, 5vw, 48px);      /* responsive side padding */
  /* Reduced section padding by ~10% */
  --section-y: clamp(47px, 5.85vw, 77px);  /* vertical section rhythm */

  /* Type families */
  --font-sans: 'Outfit', system-ui, -apple-system, sans-serif;
  --font-serif: 'Cormorant Garamond', Georgia, serif;

  /* Motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --transition: 0.5s var(--ease);
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  background: var(--navy);
  color: var(--ivory);
  font-family: var(--font-sans);
  font-weight: 300;
  letter-spacing: 0.02em;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, picture, video, canvas, svg { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; }
p, h1, h2, h3, h4, h5, h6 { overflow-wrap: break-word; }
a { color: inherit; text-decoration: none; }
button { background: none; border: none; cursor: pointer; }

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

:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }

/* Bilingual visibility (driven by data-current-lang on <html>) */
[data-current-lang="en"] .lang-es { display: none; }
[data-current-lang="es"] .lang-en { display: none; }

.site-shell {
  min-height: 100vh;
  min-height: 100dvh;
  background: linear-gradient(180deg, var(--navy) 0%, var(--midnight) 100%);
  overflow-x: hidden;
}

/* --------------------------------------------------------------------------
   3. Typography system  (Ôëł6 styles total)
   -------------------------------------------------------------------------- */
/* (1) Display ÔÇö hero headline */
h1 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1.04;
  letter-spacing: 0;
  color: var(--ivory);
}

/* (2) Section title ÔÇö the section label ("About Us", "Solutions"ÔÇŽ) */
.section-num {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(30px, 3.4vw, 52px);
  line-height: 1.08;
  letter-spacing: 0;
  color: var(--gold);
  margin: 0 0 20px;
}

/* (3) Subtitle ÔÇö hero lead AND each section's lead statement (h2).
   Section h2 statements are normalized to match the hero subtitle exactly. */
.hero-copy,
.section-wrap h2,
.sdg-heading-copy h2 {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: clamp(18px, 1.7vw, 26px);
  line-height: 1.6;
  letter-spacing: 0.01em;
  color: var(--ivory);
  margin: 0 0 23px;
}

/* (4) Body paragraph.
   Excludes the label paragraphs (.section-num / .eyebrow) which carry their
   own type styles ÔÇö otherwise this two-class selector would outrank them. */
.section-wrap p:not(.section-num):not(.eyebrow),
.sdg-heading-copy p,
.stat p,
.contact-copy {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: clamp(15px, 1vw, 17px);
  line-height: 1.8;
  letter-spacing: 0.02em;
  color: var(--sand);
}
.section-wrap p:not(.section-num):not(.eyebrow) + p:not(.section-num):not(.eyebrow) { margin-top: 18px; }

/* (5) Eyebrow / label ÔÇö uppercase micro labels */
.eyebrow,
.stat strong,
.team-experience-title > span,
.sdg-icon-card > span,
.site-nav,
.footer-legal,
.footer-copy {
  font-family: var(--font-sans);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.25em;
  font-size: 11px;
  line-height: 1.4;
}
.eyebrow { color: var(--gold); margin: 0 0 16px; }

/* (6) Card / sub heading */
.simple-list h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.15;
  letter-spacing: 0.01em;
  color: var(--ivory);
  margin: 0 0 8px;
}

/* Inline anchors inside copy */
.section-wrap p a,
.contact-copy a,
.portal-card p a { color: var(--gold); text-decoration: underline; text-underline-offset: 2px; }

/* --------------------------------------------------------------------------
   4. Unified button system  (modeled on the Subscribe button)
   -------------------------------------------------------------------------- */
.btn,
.outline-cta,
.nav-button,
.contact-portal-button,
.footer-signup-button,
.portal-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--gold);
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
  transition: background var(--transition), border-color var(--transition),
              color var(--transition), transform 0.2s ease;
}
.btn:hover,
.outline-cta:hover,
.nav-button:hover,
.contact-portal-button:hover,
.footer-signup-button:hover,
.portal-submit:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
}
.btn:active,
.outline-cta:active,
.nav-button:active,
.contact-portal-button:active,
.footer-signup-button:active,
.portal-submit:active { transform: translateY(1px); }

/* arrow glyph inside CTAs inherits color */
.outline-cta span span,
.contact-portal-button span span,
.portal-submit span span { font-size: 1.15em; line-height: 0; }

/* --------------------------------------------------------------------------
   5. Shared container  (the 1200px cap + responsive gutter)
   -------------------------------------------------------------------------- */
.header-inner,
.hero-content,
.stats-inner,
.section-shell .section-wrap,
.footer-inner {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* --------------------------------------------------------------------------
   6. Header / navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  z-index: 50;
  inset: 0 0 auto 0;
  height: 106px;
  background: linear-gradient(180deg, rgba(8,20,35,.92) 0%, rgba(8,20,35,0) 100%);
  transition: height var(--transition), background var(--transition), border-color var(--transition);
}
.site-header.is-scrolled {
  height: 76px;
  background: rgba(8,20,35,.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  height: 100%;
  padding-block: 12px;
}
.brand-logo {
  width: clamp(120px, 12vw, 150px);
  max-height: 100%;
  height: auto;
  object-fit: contain;
  object-position: left center;
}
.site-header.is-scrolled .brand { padding-block: 10px; }
.site-header.is-scrolled .brand-logo { width: clamp(112px, 10.6vw, 138px); }

.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(16px, 1.8vw, 30px);
  color: var(--sand);
  white-space: nowrap;
}
.site-nav a:not(.nav-button) {
  position: relative;
  padding: 8px 0;
  opacity: 0.82;
  letter-spacing: 0.25em;
  font-size: 10px;
  transition: opacity 0.3s ease, color 0.3s ease;
}
.site-nav a:not(.nav-button):hover { opacity: 1; color: var(--gold); }
.site-nav a:not(.nav-button)::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}
.site-nav a:not(.nav-button):hover::after { transform: scaleX(1); transform-origin: left; }

.lang-switcher { display: flex; align-items: center; gap: 4px; font-size: 10px; color: var(--sand); }
.lang-btn { color: inherit; font-size: inherit; padding: 6px; opacity: 0.45; letter-spacing: 0.08em; }
.lang-btn.active { opacity: 1; color: var(--gold); font-weight: 600; }
.lang-divider { color: var(--line-bright); }

.menu-toggle { display: none; width: 32px; height: 32px; position: relative; }
.menu-toggle span {
  position: absolute; left: 4px; right: 4px;
  display: block; height: 2px; background: var(--sand);
  transition: transform 0.3s var(--ease), opacity 0.3s ease, top 0.3s ease;
}
.menu-toggle span:nth-child(1) { top: 10px; }
.menu-toggle span:nth-child(2) { top: 16px; }
.menu-toggle span:nth-child(3) { top: 22px; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { top: 16px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { top: 16px; transform: rotate(-45deg); }

/* --------------------------------------------------------------------------
   7. Section scaffolding
   -------------------------------------------------------------------------- */
.section-shell { position: relative; padding-block: var(--section-y); }
.section-shell .section-wrap { position: relative; z-index: 2; }
.section-shell:not(.hero):not(#contact) .section-wrap { text-align: left; }

/* Full justification for titles/subtitles/paragraphs across sections
   (exclude Hero + Contact which remain centered) */
.section-shell:not(.hero):not(#contact) .section-num,
.section-shell:not(.hero):not(#contact) .section-wrap h2,
.section-shell:not(.hero):not(#contact) .section-wrap p,
.section-shell:not(.hero):not(#contact) .sdg-heading-copy h2,
.section-shell:not(.hero):not(#contact) .sdg-heading-copy p,
.section-shell:not(.hero):not(#contact) .simple-list h3,
.section-shell:not(.hero):not(#contact) .simple-list p {
  text-align: justify;
  text-justify: inter-word;
}

.section-bg { background-size: cover; background-repeat: no-repeat; background-position: center; overflow: hidden; }
.section-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(8,20,35,.92) 0%, rgba(8,20,35,.78) 16%, rgba(8,20,35,.64) 68%, rgba(8,20,35,.94) 100%),
    linear-gradient(90deg, rgba(8,20,35,.90) 0%, rgba(8,20,35,.74) 52%, rgba(8,20,35,.56) 100%);
  pointer-events: none;
}

/* Section background images */
.bg-water     { background-image: url('assets/about-wave-hq.jpg'); }
.bg-approach  { background-image: url('assets/approach-sky-hq.jpg'); }
.bg-focus     { background-image: url('assets/focus-city-hq.jpg'); }
.bg-solutions { background-image: url('assets/solutions-shore-hq.jpg'); }
.bg-insights  { background-image: url('assets/insights-sunset-hq.jpg'); }
.bg-contact   { background-image: url('assets/about-wave-hq.jpg'); background-color: var(--navy); }

/* --------------------------------------------------------------------------
   8. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 86vh;
  min-height: 86dvh;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  padding-block: 0;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, var(--navy) 0%, rgba(8,20,35,.96) 24%, rgba(8,20,35,.78) 48%, rgba(8,20,35,.30) 74%, rgba(8,20,35,.10) 100%),
    linear-gradient(180deg, rgba(8,20,35,.08) 0%, rgba(8,20,35,.82) 100%),
    url('assets/hero.png') right center / cover no-repeat;
}
.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 135px;
  padding-bottom: 72px;
}
.hero-content > * { max-width: 640px; }
.title-rule { display: block; width: 60px; height: 1px; background: var(--gold); margin: 27px 0 25px; }
.hero-copy { color: var(--ivory); margin-bottom: 34px; }
.hero-portal-cta { margin-top: 4px; }

/* --------------------------------------------------------------------------
   9. Stats band
   -------------------------------------------------------------------------- */
.stats { border-block: 1px solid var(--line); background: var(--midnight); }
.stats-inner {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  padding-block: clamp(40px, 4.5vw, 52px);
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding-inline: clamp(18px, 2vw, 30px);
  border-right: 1px solid var(--line);
}
.stat:first-child { padding-left: 0; }
.stat:last-child { border-right: 0; padding-right: 0; }
.stat-number {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(46px, 5vw, 72px);
  line-height: 0.86;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}
.stat strong { display: block; color: var(--ivory); margin-bottom: 8px; letter-spacing: 0.28em; }
.stat p { max-width: 230px; }

/* --------------------------------------------------------------------------
   10. About ÔÇö team experience logo marquee
   -------------------------------------------------------------------------- */
.logo-band { width: 100%; margin: clamp(36px, 4.5vw, 58px) auto 0; padding-top: 12px; }
.team-experience-title {
  width: min(760px, 100%);
  margin: 0 auto clamp(22px, 3vw, 34px);
  display: grid;
  grid-template-columns: minmax(28px, 1fr) auto minmax(28px, 1fr);
  align-items: center;
  column-gap: clamp(16px, 3vw, 36px);
}
.team-experience-title::before,
.team-experience-title::after {
  content: "";
  display: block;
  height: 1px;
  background: var(--line-bright);
}
.team-experience-title > span {
  grid-column: 2;
  color: rgba(243, 238, 230, 0.92);
  text-align: center;
  white-space: nowrap;
  letter-spacing: clamp(3px, 0.6vw, 7px);
}
.logo-marquee {
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}
.logo-track {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  width: max-content;
  min-width: max-content;
  animation: logoMarquee 20s linear infinite;
  animation-play-state: running;
  transform: translate3d(0, 0, 0);
  will-change: transform;
}
/* Keep marquee moving continuously (no pause on hover) */
.logo-item {
  flex: 0 0 auto;
  width: clamp(128px, 11vw, 168px);
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 clamp(14px, 2vw, 28px);
}
.logo-mark {
  width: 120px; height: 120px;
  object-fit: contain;
  opacity: 0.82;
  filter: grayscale(1) invert(1) brightness(1.16) contrast(.88);
  mix-blend-mode: screen;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.logo-item:hover .logo-mark { opacity: 1; transform: translateY(-1px); }
@keyframes logoMarquee {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

/* --------------------------------------------------------------------------
   11. Solutions list
   -------------------------------------------------------------------------- */
.simple-list { display: grid; gap: 18px; margin-top: clamp(32px, 4vw, 48px); }
.simple-list article {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 24px;
  padding: 28px 24px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(21,38,61,.62), rgba(8,20,35,.78));
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.simple-list article:hover {
  border-color: rgba(200, 167, 106, 0.58);
  box-shadow: inset 0 0 26px rgba(255,255,255,.025);
}
.simple-list article > span {
  font-family: var(--font-serif);
  color: var(--gold);
  font-size: 34px;
  line-height: 1;
}
.simple-list p { margin: 0; }

/* --------------------------------------------------------------------------
   12. SDG section
   -------------------------------------------------------------------------- */
.section-shell#sdgs {
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 18%, rgba(200,167,106,.18), transparent 32%),
    radial-gradient(circle at 82% 22%, rgba(255,255,255,.08), transparent 26%),
    linear-gradient(180deg, rgba(6,20,38,.96) 0%, rgba(7,24,44,.92) 100%);
}
.sdg-background {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6,20,38,.42), rgba(6,20,38,.78)),
    url('assets/solutions-coast.png') center / cover no-repeat;
  opacity: 0.26;
  pointer-events: none;
}
.sdg-header { display: grid; gap: clamp(24px, 3.2vw, 40px); }
.sdg-title-row { display: block; }
.sdg-un-logo {
  width: min(210px, 100%);
  height: auto;
  opacity: 0.78;
  filter: grayscale(1) invert(1) brightness(1.2) contrast(.8);
  mix-blend-mode: screen;
}
.sdg-heading-copy {
  min-width: 0;
  width: 100%;
  max-width: none;
}
.sdg-heading-copy h2 { margin-bottom: 12px; }
.sdg-heading-copy p { margin: 0; }
.sdg-icon-grid {
  display: grid;
  grid-template-columns: minmax(180px, 220px) repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 20px);
  margin-top: clamp(24px, 3vw, 38px);
  align-items: stretch;
}
.sdg-icon-grid > .sdg-un-logo-wrap {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  margin: 0;
  padding-top: 10px;
}
.sdg-icon-card {
  display: grid;
  grid-template-rows: auto 1fr;
  align-items: start;
  gap: 18px;
  min-height: 180px;
  padding: clamp(16px, 1.6vw, 22px);
  background: rgba(8,20,35,.30);
  border: 1px solid rgba(216, 201, 182, 0.20);
  box-shadow: inset 0 0 26px rgba(255,255,255,.025);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.sdg-icon-card:hover {
  border-color: rgba(200, 167, 106, 0.58);
  box-shadow: inset 0 0 26px rgba(255,255,255,.04);
}
.sdg-card-top { display: flex; align-items: flex-start; gap: 14px; width: 100%; }
.sdg-card-number {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(44px, 3.6vw, 58px);
  line-height: 0.82;
  letter-spacing: -0.04em;
  color: var(--gold);
}
.sdg-card-label {
  color: var(--ivory);
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: 0;
  font-size: clamp(13px, 1vw, 15px);
  line-height: 1.18;
  text-transform: none;
  max-width: 12ch;
}
.sdg-icon-card img {
  width: min(100%, 104px);
  aspect-ratio: 1/1;
  height: auto;
  object-fit: contain;
  align-self: end;
  justify-self: center;
}

/* --------------------------------------------------------------------------
   13. Contact  (centered heading + paragraph + CTA)
   -------------------------------------------------------------------------- */
#contact .section-wrap {
  max-width: 960px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
#contact .section-num { display: none; }       /* contact uses its <h2> as the title */
#contact h2 { display: none; }
#contact .contact-copy,
#contact p {
  max-width: min(820px, 100%);
  margin: 0 auto 36px;
  text-align: center;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.14;
  letter-spacing: 0.01em;
  color: var(--sand);
}
#contact .contact-copy a,
#contact p a {
  color: inherit;
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   14. Footer
   -------------------------------------------------------------------------- */
.site-footer { background: var(--navy); border-top: 1px solid var(--line); }
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 34px;
  padding-block: clamp(43px, 5.4vw, 58px);
}
.footer-logo, .footer-logo-alt {
  width: clamp(120px, 12vw, 150px);
  max-height: 100%;
  height: auto;
  object-fit: contain;
}
.footer-signup {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  width: min(420px, 100%);
}
.footer-signup-field input {
  width: 100%;
  height: 46px;
  padding: 0 16px;
  background: rgba(8,20,35,.28);
  border: 1px solid var(--line-bright);
  color: var(--ivory);
  letter-spacing: 0.02em;
}
.footer-signup-field input::placeholder { color: rgba(216,201,182,.58); }
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 14px clamp(18px, 3vw, 32px);
  color: var(--sand);
  letter-spacing: 0.2em;
  font-size: 10px;
  text-transform: uppercase;
}
.footer-legal-link {
  color: var(--sand);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.3s ease;
  text-transform: uppercase;
}
.footer-legal-link:hover { color: var(--gold); }
.footer-legal-sep { color: var(--line-bright); }
.footer-legal-icon { width: 15px; height: 15px; }
.footer-copy { color: var(--sand); letter-spacing: 0.06em; text-transform: none; font-weight: 300; font-size: 12px; }

/* --------------------------------------------------------------------------
   15. Modals ÔÇö portal (contact) & legal
   -------------------------------------------------------------------------- */
.portal-modal, .legal-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
}
.portal-modal.is-open, .legal-modal.is-open { display: block; }
.portal-backdrop, .legal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8,20,35,.70);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.portal-card, .legal-card {
  position: relative;
  z-index: 1;
  width: min(570px, calc(100% - 36px));
  margin: 10vh auto 0;
  max-height: 84vh;
  overflow-y: auto;
  padding: 38px;
  background: var(--midnight);
  border: 1px solid var(--line-bright);
  color: var(--ivory);
  box-shadow: 0 34px 80px rgba(8,20,35,.44);
}
.portal-close, .legal-close {
  position: absolute;
  right: 22px; top: 16px;
  color: var(--sand);
  font-size: 30px;
  line-height: 1;
}
.portal-logo { width: min(150px, 100%); height: auto; margin: 0 0 16px; opacity: 0.95; }
.portal-card h2, .legal-card h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.1;
  letter-spacing: 0;
  color: var(--ivory);
  margin: 0 0 24px;
}
.portal-card label {
  display: block;
  color: var(--sand);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 18px;
}
.portal-card input, .portal-card textarea {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 12px 14px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--line);
  color: var(--ivory);
  outline: none;
  resize: vertical;
}
.portal-card input { height: 46px; padding: 0 14px; }
.portal-card textarea { min-height: 120px; line-height: 1.5; }
.portal-card input:focus, .portal-card textarea:focus { border-color: var(--gold); }
.portal-card p { font-size: 13px; line-height: 1.65; color: var(--sand); margin-top: 6px; }
.portal-status {
  min-height: 22px;
  margin: 12px 0 0;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sand);
}
.portal-status[data-state="ok"] { color: #b9d59a; }
.portal-status[data-state="warn"] { color: #e4c07d; }
.portal-status[data-state="error"] { color: #f1a3a3; }
.portal-submit { width: 100%; margin-top: 8px; }
.legal-body h3 { font-family: var(--font-sans); font-size: 14px; letter-spacing: 0.04em; color: var(--gold); margin: 18px 0 6px; }
.legal-body p { font-size: 14px; line-height: 1.7; color: var(--sand); }

/* --------------------------------------------------------------------------
   16. Motion ÔÇö scroll reveal
   -------------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .logo-track { animation: logoMarquee 20s linear infinite !important; }
}

/* --------------------------------------------------------------------------
   17. Responsive ÔÇö 3 breakpoints
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .menu-toggle { display: block; }
  .site-nav {
    position: fixed;
    top: 76px; left: 0; right: 0;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 32px;
    background: rgba(8,20,35,.98);
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .nav-button { min-width: 200px; }
  .sdg-icon-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sdg-icon-grid > .sdg-un-logo-wrap {
    grid-column: 1 / -1;
    padding-top: 0;
    margin-bottom: 8px;
  }
}

@media (max-width: 768px) {
  .stats-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 34px; }
  .stat { padding-inline: 0; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(odd) { padding-right: 20px; border-right: 1px solid var(--line); }
  .stat:nth-child(even) { padding-left: 20px; }
  .sdg-icon-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sdg-icon-grid > .sdg-un-logo-wrap { grid-column: 1 / -1; margin-bottom: 8px; }
  .simple-list article { grid-template-columns: 56px 1fr; gap: 16px; }
}

@media (max-width: 480px) {
  .stats-inner { grid-template-columns: 1fr; row-gap: 0; }
  .stat { padding: 26px 0 !important; border-right: 0 !important; border-top: 1px solid var(--line); }
  .stat:first-child { border-top: 0; }
  .sdg-icon-grid { grid-template-columns: 1fr; }
  .sdg-icon-grid > .sdg-un-logo-wrap { grid-column: 1; margin-bottom: 6px; }
  .simple-list article { grid-template-columns: 1fr; gap: 10px; }
  .footer-signup { grid-template-columns: 1fr; }
  .footer-signup-button { width: 100%; }
  .team-experience-title { column-gap: 12px; }
}
