/* ============================================================
   Renaissance Realty Trust - styles.css
   Original layout: dark navy blue, white, and cool blue accents.
   Vanilla CSS. No build step.
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  --cream:        #F3F6FA;
  --cream-deep:   #FFFFFF;  /* section background (now white) */
  --forest:       #13274D;  /* dark navy blue (primary / dark sections) */
  --forest-deep:  #0B1832;  /* deeper navy (footer / gradients) */
  --gold:         #385780;
  --gold-bright:  #B9CBE3;
  --ink:          #18283E;
  --muted:        #536176;
  --muted-light:  #626F82;
  --oxblood:      #13274D;
  --line:         rgba(24, 40, 62, 0.14);
  --line-light:   rgba(243, 246, 250, 0.18);

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans:  "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --maxw: 1180px;
  --pad: clamp(1.25rem, 5vw, 4rem);
  --section-y: clamp(4.5rem, 9vw, 8.5rem);

  --shadow-sm: 0 1px 3px rgba(24,40,62,.08), 0 8px 24px rgba(24,40,62,.06);
  --shadow-md: 0 4px 12px rgba(24,40,62,.10), 0 24px 60px rgba(24,40,62,.10);

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px; /* sticky nav offset */
  -webkit-text-size-adjust: 100%;
}

/* Lenis smooth-scroll (active only when JS initializes it) */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-scrolling iframe { pointer-events: none; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: clamp(1rem, 0.55vw + 0.9rem, 1.0625rem);
  line-height: 1.65;
  color: var(--ink);
  background: #FFFFFF;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  overflow-wrap: break-word;
}

img, svg, video { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.6rem, 6vw, 4.75rem); font-weight: 500; }
h2 { font-size: clamp(2rem, 4vw, 3.25rem); }
h3 { font-size: clamp(1.4rem, 2vw, 1.85rem); }

p { margin: 0 0 1.1rem; }
p:last-child { margin-bottom: 0; }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: clamp(3rem, 6vw, 5.5rem); }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1.15rem;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}
.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--gold);
  opacity: 0.7;
}

.lead {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  line-height: 1.4;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.005em;
}

.section-head { max-width: 720px; margin-bottom: clamp(2.5rem, 4vw, 3.75rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  padding: 1rem 1.9rem;
  border: 1px solid var(--gold);
  border-radius: 2px;
  background: var(--gold);
  color: #fff;
  cursor: pointer;
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease);
}
.btn:hover { background: transparent; color: var(--gold-bright); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--cream); border-color: rgba(243,246,250,.55); }
.btn--ghost:hover { background: var(--cream); color: var(--forest); border-color: var(--cream); }
.btn .arrow { transition: transform .35s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem var(--pad);
  transition: background .4s var(--ease), padding .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--line);
  padding-block: 0.75rem;
  box-shadow: 0 6px 24px rgba(24,40,62,.06);
}

.brand { display: flex; align-items: center; gap: 0.7rem; line-height: 1; }
.brand__mark {
  width: 44px; height: 44px; flex: none;
  border-radius: 6px;
  background: #fff;
  border: 1px solid var(--gold);
  object-fit: contain;
  padding: 3px;
  transition: transform .4s var(--ease);
}
.brand:hover .brand__mark { transform: scale(1.06); }
.brand__name {
  font-family: var(--serif);
  font-size: 1.18rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--cream);
  transition: color .4s var(--ease);
}
.brand__sub {
  display: block;
  font-family: var(--sans);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(243,246,250,.7);
  margin-top: 2px;
  transition: color .4s var(--ease);
}
.nav.scrolled .brand__name { color: var(--forest); }
.nav.scrolled .brand__sub { color: var(--muted-light); }

.nav__links { display: flex; align-items: center; gap: 2rem; list-style: none; margin: 0; padding: 0; }
.nav__links a {
  position: relative;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(243,246,250,.88);
  padding-block: 0.35rem;
  transition: color .3s var(--ease);
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 1px;
  background: var(--gold-bright);
  transition: width .35s var(--ease);
}
.nav__links a:hover, .nav__links a.active { color: var(--gold-bright); }
.nav.scrolled .nav__links a { color: var(--muted); }
.nav.scrolled .nav__links a:hover, .nav.scrolled .nav__links a.active { color: var(--gold); }
.nav__links a:hover::after, .nav__links a.active::after { width: 100%; }

/* hamburger */
.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  background: none; border: none; cursor: pointer;
  padding: 0;
}
.nav__toggle span {
  display: block; width: 26px; height: 2px; margin-inline: auto;
  background: var(--cream);
  transition: transform .35s var(--ease), opacity .25s var(--ease), background .4s var(--ease);
}
.nav.scrolled .nav__toggle span { background: var(--forest); }
body.menu-open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.menu-open .nav__toggle span:nth-child(2) { opacity: 0; }
body.menu-open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
body.menu-open .nav__toggle span { background: var(--cream); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--cream);
  isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero__media video,
.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  will-change: transform;
}
/* Polished fallback so the hero looks finished even with no video asset */
.hero__media::after {
  content: "";
  position: absolute; inset: -10%;
  z-index: -1;
  background:
    radial-gradient(120% 90% at 20% 10%, rgba(120,150,190,.18), transparent 55%),
    radial-gradient(120% 120% at 90% 90%, rgba(11,24,50,.5), transparent 60%),
    linear-gradient(155deg, #0A1730 0%, #13274D 45%, #1C3563 100%);
}
.hero__media.has-grain::before {
  content: "";
  position: absolute; inset: 0; z-index: 1;
  opacity: .5; mix-blend-mode: overlay;
  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='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}
.hero__scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(10,22,46,.55) 0%, rgba(10,22,46,.30) 35%, rgba(10,22,46,.62) 100%),
    linear-gradient(90deg, rgba(10,22,46,.55) 0%, rgba(10,22,46,0) 60%);
}

/* D.C. skyline silhouette - self-contained, sits behind the headline.
   Hidden automatically when a real <video> background is present. */
.hero__skyline {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: -1;
  width: 100%;
  height: clamp(150px, 30vh, 320px);
  pointer-events: none;
}
.hero__skyline svg { width: 100%; height: 100%; display: block; }
.hero__skyline .win { animation: winflicker 6s var(--ease) infinite; }
.hero__skyline .win:nth-of-type(3n) { animation-delay: 1.6s; }
.hero__skyline .win:nth-of-type(3n+1) { animation-delay: 3.1s; }
@keyframes winflicker { 0%,100% { opacity: .55; } 45% { opacity: .9; } 70% { opacity: .35; } }
.hero:has(video[data-bg]) .hero__skyline { display: none; }

.hero__inner { padding-block: 9rem 6rem; max-width: 880px; }
.hero h1 { margin-bottom: 0.4em; }
.hero .hero__sub {
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  line-height: 1.55;
  color: rgba(243,246,250,.9);
  max-width: 640px;
  margin-bottom: 2.2rem;
  font-weight: 300;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }

.hero__scroll {
  position: absolute;
  left: 50%; bottom: 2rem;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
  font-family: var(--sans);
  font-size: 0.62rem; letter-spacing: 0.25em; text-transform: uppercase;
  color: rgba(243,246,250,.65);
  z-index: 1;
}
.hero__scroll .line {
  width: 1px; height: 46px;
  background: linear-gradient(var(--gold-bright), transparent);
  animation: scrollline 2.4s var(--ease) infinite;
  transform-origin: top;
}
@keyframes scrollline {
  0% { transform: scaleY(0); opacity: 0; }
  40% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1) translateY(46px); opacity: 0; }
}

/* Cinematic hero intro: eyebrow, headline lines, sub, CTAs rise in on load (pure CSS) */
.hero h1 .hl { display: block; }
.hero__inner > .eyebrow,
.hero__inner h1 .hl,
.hero__inner .hero__sub,
.hero__inner .hero__cta {
  opacity: 0;
  animation: heroRise 1s var(--ease) forwards;
}
.hero__inner > .eyebrow          { animation-delay: .15s; }
.hero__inner h1 .hl:nth-child(1) { animation-delay: .30s; }
.hero__inner h1 .hl:nth-child(2) { animation-delay: .45s; }
.hero__inner .hero__sub          { animation-delay: .65s; }
.hero__inner .hero__cta          { animation-delay: .80s; }
@keyframes heroRise {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: none; }
}

/* Slow Ken Burns drift behind the hero (composes with the parallax on the wrapper) */
.hero__media video,
.hero__media img {
  animation: kenburns 30s ease-out forwards;
}
@keyframes kenburns {
  from { transform: scale(1.0); }
  to   { transform: scale(1.1); }
}

/* ============================================================
   GENERIC SECTION DECOR
   ============================================================ */
.section--forest { background: var(--forest); color: var(--cream); }
.section--forest .eyebrow { color: var(--gold-bright); }
.section--forest .lead { color: var(--cream); }
.section--cream-deep { background: var(--cream-deep); }

.rule {
  width: 60px; height: 2px; background: var(--gold);
  margin: 0 0 1.6rem;
}
.section-head.center .rule { margin-inline: auto; }

/* ---------- Feature cards (The Firm) ---------- */
.cards {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(3, 1fr);
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 2.25rem 1.9rem;
  box-shadow: var(--shadow-sm);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: rgba(56,87,128,.4); }
.card__num {
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--gold);
  margin-bottom: 1rem;
  letter-spacing: .1em;
}
.card h3 { margin-bottom: 0.5rem; }
.card p { color: var(--muted); font-size: 0.97rem; margin: 0; }

/* ---------- Two-pillar strategy ---------- */
.pillars { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); grid-template-columns: 1fr 1fr; }
.pillar {
  background: rgba(255,255,255,.55);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  border-radius: 4px;
  padding: clamp(2rem, 3vw, 3rem);
}
.section--forest .pillar {
  background: rgba(255,255,255,.04);
  border-color: var(--line-light);
  border-top-color: var(--gold-bright);
}
.pillar .pillar__tag {
  font-size: 0.7rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 0.9rem;
}
.pillar h3 { margin-bottom: 0.8rem; }
.pillar ul { list-style: none; margin: 1.4rem 0 0; padding: 0; }
.pillar li {
  position: relative; padding-left: 1.5rem; margin-bottom: 0.7rem;
  font-size: 0.96rem; color: var(--muted);
}
.section--forest .pillar li { color: rgba(243,246,250,.8); }
.pillar li::before {
  content: ""; position: absolute; left: 0; top: 0.62em;
  width: 7px; height: 7px; border: 1px solid var(--gold); transform: rotate(45deg);
}

/* ---------- UPREIT steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: clamp(2rem,4vw,3rem); counter-reset: step; }
.step { position: relative; padding-top: 2.6rem; }
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  position: absolute; top: 0; left: 0;
  font-family: var(--serif); font-size: 2.4rem; font-weight: 600;
  color: var(--gold-bright); opacity: .85; line-height: 1;
}
.step h3 { font-size: 1.3rem; margin-bottom: 0.4rem; }
.step p { color: rgba(243,246,250,.78); font-size: 0.95rem; margin: 0; }
.step:not(:last-child)::after {
  content: ""; position: absolute; top: 1rem; right: -0.9rem;
  width: 1.2rem; height: 1px; background: var(--line-light);
}

/* ---------- Markets ---------- */
.markets { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,5rem); align-items: start; }
.market-group h3 { font-size: 1.15rem; color: var(--gold); margin-bottom: 1.2rem; font-family: var(--sans); font-weight: 600; letter-spacing: .04em; }
.market-list { list-style: none; margin: 0; padding: 0; }
.market-list li {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  font-weight: 500;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
  display: flex; align-items: baseline; gap: 0.9rem;
  transition: color .3s var(--ease), padding-left .35s var(--ease);
}
.market-list li:hover { color: var(--gold); padding-left: 0.5rem; }
.market-list li .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); flex: none; transform: translateY(-0.35em); }
.market-list--muted li { color: var(--muted); }
.market-note { margin-top: 1.4rem; font-size: 0.9rem; color: var(--muted-light); font-style: italic; }

/* ---------- Leadership ---------- */
.leaders { display: grid; gap: clamp(2.5rem, 5vw, 4.5rem); }
.leader {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}
.leader__photo {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 4px;
  overflow: hidden;
  background: linear-gradient(160deg, var(--forest) 0%, var(--forest-deep) 100%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}
.leader__photo img { width: 100%; height: 100%; object-fit: cover; }
.leader__monogram {
  position: absolute; inset: 0;
  display: grid; place-items: center;
}
.leader__monogram span {
  width: 110px; height: 110px; border-radius: 50%;
  border: 1.5px solid var(--gold);
  display: grid; place-items: center;
  font-family: var(--serif); font-size: 2.6rem; font-weight: 500;
  color: var(--gold-bright);
  letter-spacing: .04em;
}
.leader__role { color: var(--gold); font-size: 0.78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 0.5rem; }
.leader h3 { font-size: clamp(1.8rem, 3vw, 2.5rem); margin-bottom: 0.7rem; }
.leader p { color: var(--muted); }
.leader .tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.3rem; }
.leader .tag {
  font-size: 0.72rem; letter-spacing: .04em;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--muted);
  background: rgba(255,255,255,.5);
}

/* ---------- Vision band ---------- */
.vision { text-align: center; }
.vision .lead { max-width: 760px; margin-inline: auto; }
.vision__meta {
  display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(2rem, 6vw, 5rem);
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
.vision__stat { text-align: center; }
.vision__stat .n { font-family: var(--serif); font-size: clamp(2.2rem, 4vw, 3.2rem); color: var(--gold-bright); display: block; line-height: 1; }
.vision__stat .l { font-size: 0.72rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(243,246,250,.7); margin-top: 0.7rem; display: block; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2.5rem, 5vw, 5rem); align-items: center; }
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { padding: 1.3rem 0; border-bottom: 1px solid var(--line); }
.contact-list li:first-child { padding-top: 0; }
.contact-list .k { font-size: 0.72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.4rem; }
.contact-list .v { font-family: var(--serif); font-size: clamp(1.2rem, 2.2vw, 1.7rem); font-weight: 500; overflow-wrap: anywhere; }
.contact-list a.v { transition: color .3s var(--ease); }
.contact-list a.v:hover { color: var(--gold); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--forest-deep); color: rgba(243,246,250,.78); padding-block: clamp(3rem, 5vw, 4.5rem) 2rem; }
.footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; padding-bottom: 2.5rem; border-bottom: 1px solid var(--line-light); }
.footer .brand__name { color: var(--cream); }
.footer__links { display: flex; flex-wrap: wrap; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
.footer__links a { font-size: 0.8rem; letter-spacing: .08em; text-transform: uppercase; color: rgba(243,246,250,.7); transition: color .3s var(--ease); }
.footer__links a:hover { color: var(--gold-bright); }
.footer__legal { padding-top: 2rem; font-size: 0.78rem; line-height: 1.7; color: rgba(243,246,250,.5); max-width: 900px; }
.footer__legal p { margin-bottom: 0.9rem; }
.footer__copy { margin-top: 1.5rem; font-size: 0.78rem; color: rgba(243,246,250,.45); }

/* ============================================================
   COOKIE CONSENT
   ============================================================ */
.cookie {
  position: fixed;
  left: clamp(1rem, 4vw, 2rem);
  bottom: clamp(1rem, 4vw, 2rem);
  z-index: 90;
  width: min(420px, calc(100vw - 2rem));
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  border-radius: 4px;
  box-shadow: var(--shadow-md);
  padding: 1.5rem 1.6rem 1.4rem;
  transform: translateY(150%);
  opacity: 0;
  visibility: hidden;
  transition: transform .6s var(--ease), opacity .6s var(--ease), visibility .6s;
}
.cookie.is-visible { transform: none; opacity: 1; visibility: visible; }
.cookie__text { font-size: 0.92rem; line-height: 1.6; color: var(--muted); margin: 0 0 1.15rem; }
.cookie__text strong { color: var(--ink); font-weight: 600; }
.cookie__actions { display: flex; gap: 0.75rem; }
.cookie__actions .btn { flex: 1; padding: 0.75rem 1.2rem; font-size: 0.72rem; }
.cookie__decline {
  flex: 1;
  font-family: var(--sans);
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.13em; text-transform: uppercase;
  padding: 0.75rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.cookie__decline:hover { border-color: var(--forest); color: var(--forest); }

/* ============================================================
   MOTION - scroll reveals
   ============================================================ */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay: var(--delay, 0ms);
  will-change: opacity, transform;
}
.js .reveal.r-left  { transform: translateX(-44px); }
.js .reveal.r-right { transform: translateX(44px); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* The gold eyebrow rule "draws" in as its section enters */
.js .reveal .eyebrow::before {
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .8s var(--ease) .25s;
}
.js .reveal.is-visible .eyebrow::before { transform: scaleX(1); }

/* Market rows + vision stats cascade after their group reveals */
.js .market-group .market-list li {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.js .market-group.is-visible .market-list li { opacity: 1; transform: none; }
.js .market-group.is-visible .market-list li:nth-child(1) { transition-delay: .12s; }
.js .market-group.is-visible .market-list li:nth-child(2) { transition-delay: .26s; }
.js .market-group.is-visible .market-list li:nth-child(3) { transition-delay: .40s; }
.vision__meta .vision__stat:nth-child(2) { --delay: 130ms; }
.vision__meta .vision__stat:nth-child(3) { --delay: 260ms; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .cards { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 2rem; }
  .step:not(:last-child)::after { display: none; }
  .markets { grid-template-columns: 1fr; gap: 2.5rem; }
  .leader { grid-template-columns: 1fr; }
  .leader__photo { max-width: 280px; }
  .contact-grid { grid-template-columns: 1fr; }
  /* stacked layout: directional reveals fall back to a vertical rise (no sideways shift) */
  .js .reveal.r-left, .js .reveal.r-right { transform: translateY(28px); }
  .js .reveal.r-left.is-visible, .js .reveal.r-right.is-visible { transform: none; }
}

@media (max-width: 760px) {
  .nav__toggle { display: flex; }
  .nav__links {
    position: fixed;
    top: 0;
    right: 0;
    left: auto;
    height: 100vh;            /* fallback */
    height: 100dvh;           /* full viewport even if an ancestor (nav backdrop-filter) is a containing block */
    width: min(82vw, 340px);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0.3rem;
    padding: 5rem 1.8rem 2rem;
    background: var(--forest);
    box-shadow: -20px 0 60px rgba(0,0,0,.35);
    transform: translateX(100%);
    transition: transform .45s var(--ease);
    overflow-y: auto;
  }
  body.menu-open .nav__links { transform: translateX(0); }
  /* remove the nav's backdrop-filter while open so it can't act as a containing block for the fixed panel */
  body.menu-open .nav { -webkit-backdrop-filter: none; backdrop-filter: none; }
  body.menu-open { overflow: hidden; }
  /* tap-outside scrim */
  body.menu-open::after {
    content: "";
    position: fixed; inset: 0; z-index: 95;
    background: rgba(8, 18, 40, .55);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
  }
  .nav__links a, .nav.scrolled .nav__links a {
    color: var(--cream);
    font-size: 1.05rem;
    width: 100%;
    padding: 0.7rem 0;          /* ~44px tap targets */
    border-bottom: 1px solid rgba(243, 246, 250, .1);
  }
  .nav__links a::after { display: none; }
  .nav__links a:hover, .nav.scrolled .nav__links a:hover { color: var(--gold-bright); }
  .hero__inner { padding-block: 7.5rem 5rem; }
  .vision__meta { gap: 2rem 3rem; }
  /* the scroll cue collides with the stacked CTA buttons on phones; not needed on touch */
  .hero__scroll { display: none; }
}

/* Small phones */
@media (max-width: 600px) {
  .brand__name { font-size: 1.02rem; }
  .brand__sub { font-size: 0.55rem; letter-spacing: 0.2em; }
  .brand__mark { width: 38px; height: 38px; }
  .section-head { margin-bottom: 2.25rem; }
  .leader__photo { max-width: 240px; }
}

@media (max-width: 480px) {
  .brand__sub { display: none; }          /* keep the wordmark from crowding the menu button */
  .brand__name { font-size: 1rem; letter-spacing: 0; }
  .hero h1 { font-size: 2.4rem; }
  .hero__cta { flex-direction: column; align-items: stretch; gap: 0.8rem; }
  .hero__cta .btn { justify-content: center; }
  .card { padding: 1.9rem 1.5rem; }
  .pillar { padding: 1.8rem 1.5rem; }
  .contact-list .v { font-size: 1.15rem; }
}

/* ============================================================
   ACCESSIBILITY - reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .js .reveal, .js .reveal.r-left, .js .reveal.r-right { opacity: 1; transform: none; }
  .js .market-group .market-list li { opacity: 1; transform: none; }
  .hero__scroll .line { animation: none; }
}

/* Focus visibility for keyboard users */
a:focus-visible, button:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
}

/* Color refresh: retain the original layout, typography, and motion. */
.btn:hover { color: var(--forest); border-color: var(--forest); }
.hero .btn:not(.btn--ghost) { background: var(--cream); border-color: var(--cream); color: var(--forest); }
.hero .btn:not(.btn--ghost):hover { background: #D8E3F1; border-color: #D8E3F1; }
.hero .btn--ghost:hover { color: var(--forest); }
.section--forest { --gold: #B9CBE3; }
.section--forest .eyebrow::before { background: var(--gold-bright); }
.footer__legal, .footer__copy { color: #B9C6D9; }
a:focus-visible, button:focus-visible, .btn:focus-visible { outline-color: #607DAE; }

/* Media coverage */
.media-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem; }
.media-article { border-top: 2px solid var(--gold); padding-top: 1.5rem; display: flex; flex-direction: column; align-items: flex-start; }
.media-meta, .media-author { font-size: .82rem; color: var(--muted); }
.media-meta { margin-bottom: 1rem; }
.media-article h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.2; }
.media-article h3 a:hover { text-decoration: underline; text-underline-offset: .15em; }
.media-author { margin-bottom: 1.5rem; }
.media-link { margin-top: auto; color: var(--gold); font-size: .85rem; font-weight: 600; text-decoration: underline; text-underline-offset: .3em; }
.media-link:hover { color: var(--forest); }
@media (max-width: 760px) { .media-grid { grid-template-columns: 1fr; gap: 2.5rem; } }
