/* ============================================================
   TransIndia Group — HTML site
   Palette: brand gold (#bf8f00) on a light, cinematic structure
   modelled on House of Hiranandani. Serif display + grotesk sans.
   ============================================================ */
:root {
  --bg: #ffffff;
  --cream: #f7efe0;
  --cream-deep: #efe2cb;
  --gold: #bf8f00;
  --gold-deep: #9a7100;
  --gold-soft: #d9b84e;
  --ink: #1a1a1a;
  --ink-soft: #2b2b2b;
  --muted: #6b6b6b;
  --line: #e7e0d2;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Outfit", system-ui, -apple-system, sans-serif;
  --maxw: 1280px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--gold); color: #fff; }

/* Lenis smooth-scroll baseline */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* ── Typography helpers ─────────────────────────── */
.font-display { font-family: var(--serif); font-weight: 500; letter-spacing: -0.01em; line-height: 1.05; }
.eyebrow {
  font-family: var(--sans); text-transform: uppercase;
  letter-spacing: 0.22em; font-size: 0.72rem; font-weight: 500;
  color: var(--gold-deep); margin: 0;
}
.eyebrow.light { color: var(--gold-soft); }

h1, h2, h3 { margin: 0; }
.section { padding: 6rem 1.5rem; }
@media (min-width: 1024px) { .section { padding: 8rem 5rem; } }
.container { max-width: var(--maxw); margin: 0 auto; }
.bg-cream { background: var(--cream); }
.bg-ink { background: var(--ink); color: #fff; }

/* ── Buttons ────────────────────────────────────── */
.btn {
  display: inline-block; border-radius: 999px; padding: 0.85rem 2rem;
  font-size: 0.9rem; font-weight: 500; cursor: pointer;
  transition: background .3s, color .3s, border-color .3s; border: 1px solid transparent;
}
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: var(--gold-deep); }
.btn-outline-gold { border-color: var(--gold); color: var(--gold); }
.btn-outline-gold:hover { background: var(--gold); color: #fff; }
.btn-outline-white { border-color: rgba(255,255,255,.6); color: #fff; }
.btn-outline-white:hover { background: #fff; color: var(--ink); }

/* ── "Let's Connect" style button (HoH-inspired) ──────────────
   Normal: rectangular, thin outline, uppercase white text.
   Hover:  fills gold, text stays white, an arrow slides in from the
   left with a smooth transition. Rectangular (not pill). */
.btn-connect {
  display: inline-flex; align-items: center; gap: 0;
  border-radius: 2px; padding: 0.6rem 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.55);
  color: #fff; background: transparent;
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  cursor: pointer; overflow: hidden;
  transition: background .45s ease, border-color .45s ease, color .45s ease, padding .45s ease;
}
.btn-connect .arrow {
  display: inline-block;
  max-width: 0; opacity: 0; transform: translateX(-6px);
  overflow: hidden; white-space: nowrap;
  transition: max-width .45s ease, opacity .45s ease, transform .45s ease, margin-left .45s ease;
}
.btn-connect:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
}
.btn-connect:hover .arrow {
  max-width: 2rem; opacity: 1; transform: translateX(0); margin-left: 0.7rem;
}
/* On the solid (cream) header the outline/text switch to gold/ink so it
   stays visible against the light bar. */
.header.solid .btn-connect { border-color: var(--gold); color: var(--gold-deep); }
.header.solid .btn-connect:hover { border-color: var(--gold); color: #fff; }

/* Gold-outline variant — for buttons on LIGHT backgrounds (white/cream).
   Same fill-gold + arrow-slide behaviour on hover. */
.btn-connect--gold { border-color: var(--gold); color: var(--gold-deep); }
.btn-connect--gold:hover { background: var(--gold); border-color: var(--gold); color: #fff; }

/* White-outline variant — for buttons on DARK / image backgrounds. */
.btn-connect--white { border-color: rgba(255,255,255,.6); color: #fff; }
.btn-connect--white:hover { background: var(--gold); border-color: var(--gold); color: #fff; }

/* Larger size for in-page CTAs (the header button stays small). */
.btn-connect--lg { padding: 0.9rem 2rem; font-size: 0.8rem; }

/* ── Header ─────────────────────────────────────── */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .5s, box-shadow .5s, backdrop-filter .5s;
}
.header-inner {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.6rem 1.5rem;
}
@media (min-width: 1024px) { .header-inner { padding: 0.6rem 2.5rem; } }
.header.solid { background: rgba(247,239,224,.95); backdrop-filter: blur(10px); box-shadow: 0 1px 0 rgba(0,0,0,.06); }
.logo-img { height: 4.5rem; width: auto; }
.nav { display: none; align-items: center; gap: 2.25rem; }
@media (min-width: 768px) { .nav { display: flex; } }
.nav a { font-size: .9rem; font-weight: 500; letter-spacing: .02em; color: var(--ink); transition: color .3s; }
.header:not(.solid) .nav a { color: #fff; }
.nav a:hover, .nav a.active { color: var(--gold); }
.header:not(.solid) .nav a.active { color: var(--gold-soft); }
.nav .btn { padding: .55rem 1.35rem; }
.menu-toggle { display: block; background: none; border: 0; cursor: pointer; }
@media (min-width: 768px) { .menu-toggle { display: none; } }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; }
.header:not(.solid) .menu-toggle span { background: #fff; }
.header:not(.solid) .menu-toggle span:last-child { width: 16px; }
.mobile-nav { display: none; flex-direction: column; background: var(--cream); border-top: 1px solid var(--line); padding: .5rem 1.5rem 1.5rem; }
.mobile-nav.open { display: flex; }
.mobile-nav a { padding: .75rem 0; font-size: 1.1rem; }

/* ── Hero ───────────────────────────────────────── */
.hero { position: relative; height: 100vh; width: 100%; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; will-change: transform; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,.4), rgba(0,0,0,.25) 40%, rgba(0,0,0,.55)); }
.hero-content { position: relative; z-index: 10; height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 0 1.5rem; color: #fff; }
@media (min-width: 1024px) { .hero-content { padding: 0 5rem; } }
.hero h1 { font-family: var(--serif); font-weight: 500; line-height: .95; font-size: clamp(3.5rem, 9vw, 8rem); margin-top: 1rem; }
.hero h1 .italic { font-style: italic; color: var(--gold-soft); display: block; }
.hero-sub { max-width: 36rem; margin-top: 1.75rem; font-size: 1.1rem; color: rgba(255,255,255,.82); }
.hero-cta { margin-top: 2.25rem; display: flex; gap: 1rem; flex-wrap: wrap; }
.scroll-hint { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); z-index: 10; font-size: .72rem; letter-spacing: .3em; text-transform: uppercase; color: rgba(255,255,255,.6); }

/* ── Reveal animation primitive ─────────────────── */
.reveal { opacity: 0; will-change: transform, opacity; }

/* ── Grid utilities ─────────────────────────────── */
.grid { display: grid; gap: 3.5rem; }
.two-col { grid-template-columns: 1fr; align-items: center; }
@media (min-width: 1024px) { .two-col { grid-template-columns: 1fr 1fr; } }

/* ── Philosophy section + medallion ─────────────── */
/* Section is tall enough to fully contain the medallion (no top/bottom
   clipping): extra vertical padding + a min-height; the medallion is
   sized to the section height so the whole circle shows. */
.philosophy { position: relative; overflow: hidden; padding-top: 9rem; padding-bottom: 9rem; min-height: 90vh; display: flex; align-items: center; }
@media (min-width: 1024px) { .philosophy { padding-top: 11rem; padding-bottom: 11rem; } }
/* Wrapper: GSAP drives its position/opacity (slide-in from left edge). */
.medallion-wrap {
  position: absolute; left: 0; top: 50%;
  height: 88%; width: auto; max-width: none;
  opacity: 0; pointer-events: none; user-select: none; will-change: transform, opacity;
}
/* Inner image: slow, continuous in-place rotation. */
.medallion-img {
  height: 100%; width: auto; display: block;
  animation: medallion-spin 60s linear infinite;
  will-change: transform;
}
@keyframes medallion-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .medallion-img { animation: none; } }
.philosophy .container { width: 100%; }
/* Left column reserved for the medallion; all text stacks on the right. */
.philo-layout { display: grid; grid-template-columns: 1fr; gap: 0; }
.philo-spacer { display: none; }
@media (min-width: 1024px) {
  .philo-layout { grid-template-columns: 1fr 1.4fr; gap: 4rem; align-items: center; }
  .philo-spacer { display: block; }
}
.philo-text { max-width: 42rem; }
/* Shift the content right so it clears the medallion watermark on the left. */
@media (min-width: 1024px) { .philosophy .container { padding-left: 8rem; } }
.philosophy .container { position: relative; z-index: 1; }
.lead-h2 { font-family: var(--serif); font-weight: 500; line-height: 1.1; font-size: clamp(2.25rem, 4vw, 3rem); color: var(--ink); margin-top: 1rem; }
.body-lg { font-size: 1.1rem; color: var(--muted); }
.three-e { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2rem; }
.three-e h3 { font-family: var(--serif); font-weight: 600; font-size: 1.5rem; color: var(--gold); }
.three-e p { font-size: .85rem; color: var(--muted); margin-top: .5rem; }

/* ── Our Associates (logo grid on dark background) ────────────── */
.associates { background: var(--ink); }
.associates .sec-head h2 { color: #fff; }
.assoc-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem 1.5rem; align-items: center; margin-top: 3.5rem;
}
@media (min-width: 640px) { .assoc-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .assoc-grid { grid-template-columns: repeat(5, 1fr); gap: 3.5rem 2rem; } }
.assoc-logo {
  display: flex; align-items: center; justify-content: center;
  height: 96px;
}
.assoc-logo img {
  max-height: 100%; max-width: 92%; width: auto; object-fit: contain;
  opacity: .85; transition: opacity .3s, transform .3s;
}
.assoc-logo img:hover { opacity: 1; transform: scale(1.05); }

/* ── Horizontal scroll-pinned project gallery (HoH-style) ──────
   The .hscroll section is pinned by GSAP while the .hscroll-track
   (a flex row of full-bleed panels) translates right→left, driven by
   scroll. White background; serif two-word labels bottom-left. */
.hscroll { background: var(--bg); }
/* The section pins; the whole track — heading panel + project cards —
   translates right→left together as the user scrolls. */
.hscroll-viewport { overflow: hidden; }
.hscroll-track { display: flex; align-items: center; gap: 1.5rem; padding: 1.5rem; min-height: 100vh; will-change: transform; }
@media (min-width: 1024px) { .hscroll-track { padding: 2rem 5rem; gap: 2rem; } }
/* Heading is now the first item in the track (scrolls with the cards). */
.hscroll-head {
  flex: 0 0 auto;
  width: 80vw; max-width: 480px;
  padding-right: 1.5rem;
}
@media (min-width: 768px) { .hscroll-head { width: 36vw; } }
.hscroll-head h2 { margin-top: 1rem; }
.hpanel {
  position: relative; flex: 0 0 auto;
  width: 80vw; max-width: 760px; aspect-ratio: 4/3;
  overflow: hidden; border-radius: 2px;
  text-decoration: none;
}
@media (min-width: 768px) { .hpanel { width: 58vw; } }
@media (min-width: 1024px) { .hpanel { width: 44vw; } }
.hpanel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s ease; }
.hpanel:hover img { transform: scale(1.04); }
.hpanel-grad { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.65), rgba(0,0,0,.05) 55%, transparent); }
.hpanel-cap { position: absolute; left: 1.75rem; bottom: 1.5rem; color: #fff; }
.hpanel-cap .l1 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.75rem, 3vw, 2.5rem); line-height: 1.05; display: block; }
.hpanel-cap .l2 { font-family: var(--serif); font-weight: 600; font-style: italic; font-size: clamp(1.75rem, 3vw, 2.5rem); line-height: 1.05; display: block; }
.hpanel-cap .loc { font-family: var(--sans); font-size: .8rem; color: rgba(255,255,255,.75); margin-top: .4rem; }
.hpanel-tag { position: absolute; right: 1.25rem; bottom: 1.25rem; font-size: .7rem; letter-spacing: .05em; color: rgba(255,255,255,.6); }

/* ── Stats band ─────────────────────────────────── */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 3rem 1.5rem; }
@media (min-width: 768px) { .stats { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .stats { grid-template-columns: repeat(6, 1fr); } }
.stat { text-align: center; }
.stat-num { font-family: "Fraunces", var(--serif); font-weight: 600; font-size: clamp(2.75rem, 5vw, 3.75rem); color: var(--gold); line-height: 1; letter-spacing: -0.01em; font-optical-sizing: auto; }
.stat-num .suffix { font-size: .6em; }
.stat-label { margin-top: .5rem; font-size: .85rem; color: var(--muted); }
/* On the dark stats band, lift label colour + brighten the gold numbers. */
.stats-section .stat-label { color: rgba(255,255,255,.65); }
.stats-section .stat-num { color: var(--gold-soft); }

/* ── Section heading ────────────────────────────── */
.sec-head { max-width: 42rem; }
.sec-head h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(2.25rem, 4vw, 3rem); color: var(--ink); margin-top: 1rem; line-height: 1.1; }
.sec-head.center { margin: 0 auto; text-align: center; }

/* ── "Four principles" — pillar layout (HoH-style) ─────────────
   Centered heading; a tall pillar image down the middle with two
   principle blocks on the left and two on the right. */
/* The pillar rises from and rests flush against the section's bottom edge. */
.pillar-section { overflow: hidden; padding-bottom: 0; }
.pillar-layout {
  display: grid; grid-template-columns: 1fr; gap: 3rem;
  margin-top: 3rem; align-items: center;
}
@media (min-width: 900px) {
  /* Centre column is wide (the big pillar); text columns hug it and
     are vertically centred so the two blocks balance around the capital. */
  .pillar-layout { grid-template-columns: 1fr minmax(360px, 520px) 1fr; gap: 2.5rem; align-items: stretch; }
  .pillar-col { align-content: center; }
}
.pillar-col { display: grid; gap: 5rem; }
.pillar-col.left { text-align: left; }
@media (min-width: 900px) { .pillar-col.left { text-align: right; } }
.pillar-block .eyebrow { color: var(--gold-deep); }
.pillar-block h3 { font-family: var(--serif); font-weight: 600; font-size: clamp(1.5rem, 2.5vw, 2rem); color: var(--gold-deep); }
.pillar-block p { color: var(--muted); margin-top: .75rem; line-height: 1.7; }
/* small gold divider ornament under each block */
.pillar-div { display: flex; align-items: center; gap: .5rem; margin-top: 1.25rem; color: var(--gold); }
.pillar-col.left .pillar-div { justify-content: flex-start; }
@media (min-width: 900px) { .pillar-col.left .pillar-div { justify-content: flex-end; } }
.pillar-div::before, .pillar-div::after { content: ""; height: 1px; background: var(--gold); flex: 1; max-width: 70px; opacity: .5; }
.pillar-div span { transform: rotate(45deg); display: inline-block; width: 7px; height: 7px; border: 1px solid var(--gold); }
/* Pillar bigger + anchored to the bottom edge of the section. */
.pillar-img { justify-self: center; align-self: end; width: 100%; }
.pillar-img img { width: 100%; max-width: 520px; height: auto; display: block; margin: 0 auto; }

/* ── Project cards ──────────────────────────────── */
.cards { display: grid; gap: 1.5rem; margin-top: 3.5rem; }
.cards.two { grid-template-columns: 1fr; }
.cards.three { grid-template-columns: 1fr; }
@media (min-width: 640px) { .cards.three { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) { .cards.two { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cards.three { grid-template-columns: repeat(3, 1fr); } }
.card { position: relative; aspect-ratio: 4/5; overflow: hidden; border-radius: 2px; display: block; }
.card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s ease; }
.card:hover img { transform: scale(1.05); }
.card-grad { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.7), rgba(0,0,0,.05) 60%, transparent); }
.card-badge { position: absolute; left: 1rem; top: 1rem; background: rgba(255,255,255,.9); color: var(--ink); border-radius: 999px; padding: .25rem .75rem; font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .05em; }
.card-body { position: absolute; inset: auto 0 0 0; padding: 1.5rem; color: #fff; }
.card-body h3 { font-family: var(--serif); font-weight: 500; font-size: 1.5rem; }
.card-body p { font-size: .85rem; color: rgba(255,255,255,.75); margin: .25rem 0 0; }
.card-link { margin-top: .75rem; font-size: .85rem; font-weight: 500; color: var(--gold-soft); opacity: 0; transition: opacity .3s; }
.card:hover .card-link { opacity: 1; }
.center-cta { text-align: center; margin-top: 3rem; }

/* ── Testimonials (Swiper) ──────────────────────── */
.t-quote { font-family: var(--serif); font-weight: 500; font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.5; color: var(--ink-soft); text-align: center; max-width: 48rem; margin: 0 auto; }
.t-author { margin-top: 1.75rem; text-align: center; }
.t-author b { display: block; color: var(--gold-deep); font-weight: 500; }
.t-author span { font-size: .85rem; color: var(--muted); }
.swiper { padding-bottom: 3.5rem !important; }
.swiper-pagination-bullet-active { background: var(--gold) !important; }

/* ── CTA ────────────────────────────────────────── */
.cta { text-align: center; }
.cta h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(2.25rem, 4vw, 3rem); margin-top: 1rem; }
.cta p { color: rgba(255,255,255,.7); font-size: 1.1rem; margin-top: 1.25rem; }
.cta .small { color: rgba(255,255,255,.5); font-size: .9rem; margin-top: 1.5rem; }

/* ── Footer ─────────────────────────────────────── */
.footer { background: var(--ink); color: rgba(255,255,255,.8); padding: 4rem 1.5rem; }
@media (min-width: 1024px) { .footer { padding: 4rem 5rem; } }
.footer-grid { max-width: var(--maxw); margin: 0 auto; display: grid; gap: 3rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; } }
.footer img { height: 3rem; width: auto; filter: brightness(0) invert(1); }
.footer p { font-size: .9rem; color: rgba(255,255,255,.6); line-height: 1.7; }
.footer h4 { font-family: var(--serif); font-size: 1.2rem; color: var(--gold-soft); margin: 0 0 1rem; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: .5rem; font-size: .9rem; }
.footer a:hover { color: var(--gold); }
.footer .links { display: flex; gap: 1rem; margin-top: 1.5rem; font-size: .9rem; }
.footer-bottom { max-width: var(--maxw); margin: 3.5rem auto 0; border-top: 1px solid rgba(255,255,255,.1); padding-top: 1.5rem; font-size: .75rem; color: rgba(255,255,255,.4); }

/* ── Page hero (inner pages) ────────────────────── */
.page-hero { position: relative; height: 100vh; min-height: 560px; display: flex; align-items: flex-end; overflow: hidden; }
.page-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero .grad { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.7), rgba(0,0,0,.3) 50%, rgba(0,0,0,.4)); }
.page-hero .inner { position: relative; z-index: 1; max-width: var(--maxw); margin: 0 auto; width: 100%; padding: 0 1.5rem 4rem; color: #fff; }
@media (min-width: 1024px) { .page-hero .inner { padding: 0 5rem 4rem; } }
.page-hero h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(3rem, 7vw, 5.5rem); margin-top: .75rem; }

/* ── Pillars / team (about) ─────────────────────── */
.pillars { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .pillars { grid-template-columns: repeat(2, 1fr); } }
.pillar { border: 1px solid var(--line); background: var(--bg); padding: 2rem; border-radius: 2px; }
.pillar h3 { font-family: var(--serif); font-size: 1.5rem; margin-top: .5rem; }
.pillar p { color: var(--muted); margin: .75rem 0 0; }
.team { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
@media (min-width: 768px) { .team { grid-template-columns: repeat(4, 1fr); } }
.team-card { border: 1px solid var(--line); background: var(--bg); padding: 1.5rem; border-radius: 2px; }
.team-card h3 { font-family: var(--serif); font-size: 1.25rem; }
.team-card p { font-size: .85rem; color: var(--gold-deep); margin: .25rem 0 0; }
.founder-img { position: relative; aspect-ratio: 4/5; overflow: hidden; border-radius: 2px; }
.founder-img img { width: 100%; height: 100%; object-fit: cover; object-position: center; }

/* ── Awards (dark, continuous one-direction marquee) ─────────── */
.awards-section { background: var(--ink); }
.awards-section .sec-head h2 { color: #fff; }
.awards-marquee { margin-top: 3rem; overflow: hidden; width: 100%; -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent); }
.awards-track { display: flex; width: max-content; gap: 2.5rem; animation: awards-scroll 45s linear infinite; }
.awards-marquee:hover .awards-track { animation-play-state: paused; }
.awards-item { flex: 0 0 auto; width: 300px; height: 340px; display: flex; align-items: center; justify-content: center; }
.awards-item img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 2px; }
@keyframes awards-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); } /* track is duplicated, so -50% = one full set */
}

/* ── Founder section (dark, gold offset frame, full bio) ──────── */
.founder-section { background: var(--ink); color: #fff; }
/* Gold square offset behind the photo (top-right), photo sits over it. */
.founder-frame { position: relative; max-width: 460px; }
.founder-frame::before {
  content: ""; position: absolute; inset: -1.25rem -1.25rem auto auto;
  width: 100%; height: 100%; border: 2px solid var(--gold);
  border-radius: 2px; z-index: 0;
}
.founder-frame img {
  position: relative; z-index: 1; width: 100%; height: auto;
  display: block; border-radius: 2px;
}
.founder-name { font-family: var(--serif); font-weight: 600; font-size: clamp(2rem, 3.5vw, 2.75rem); color: var(--gold-soft); }
.founder-role { font-weight: 600; font-size: 1.05rem; color: #fff; margin: .5rem 0 0; }
.founder-bio { color: rgba(255,255,255,.7); line-height: 1.8; margin-top: 1.25rem; }

/* ── Project detail ─────────────────────────────── */
.detail-hero { position: relative; height: 80vh; min-height: 520px; display: flex; align-items: flex-end; overflow: hidden; }
.detail-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.detail-hero .grad { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.75), rgba(0,0,0,.25) 50%, rgba(0,0,0,.4)); }
.detail-hero .inner { position: relative; z-index: 1; max-width: var(--maxw); margin: 0 auto; width: 100%; padding: 0 1.5rem 4rem; color: #fff; }
@media (min-width: 1024px) { .detail-hero .inner { padding: 0 5rem 4rem; } }
.detail-hero h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(3rem, 7vw, 5.5rem); margin-top: .75rem; }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 2px; overflow: hidden; }
.fact { background: var(--cream); padding: 1.5rem; }
.fact .l { font-size: .85rem; color: var(--muted); }
.fact .v { font-family: var(--serif); font-size: 1.5rem; color: var(--gold-deep); margin-top: .25rem; }
.config-row { display: flex; justify-content: space-between; padding: .75rem 0; border-bottom: 1px solid var(--line); }
.config-row:first-child { border-top: 1px solid var(--line); }
.amenities { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem 1.5rem; color: var(--muted); list-style: none; padding: 0; margin: 1.5rem 0 0; }
.amenities li { display: flex; gap: .5rem; align-items: flex-start; }
.amenities li::before { content: ""; width: 6px; height: 6px; border-radius: 999px; background: var(--gold); margin-top: .6rem; flex: none; }
.highlight-row { display: flex; gap: 1rem; align-items: baseline; border-bottom: 1px solid var(--line); padding-bottom: 1rem; margin-top: 1rem; }
.highlight-row .n { font-family: var(--serif); font-size: 1.25rem; color: var(--gold); }
.highlight-row .t { font-size: 1.1rem; color: var(--ink-soft); }

/* ── Contact ────────────────────────────────────── */
.office { border-left: 2px solid var(--gold); padding-left: 1.25rem; margin-bottom: 2rem; }
.office h3 { font-family: var(--serif); font-size: 1.25rem; }
.office p { color: var(--muted); margin: .5rem 0; line-height: 1.6; }
.form-card { border: 1px solid var(--line); background: var(--cream); padding: 2rem; border-radius: 2px; }
@media (min-width: 1024px) { .form-card { padding: 2.5rem; } }
.field { width: 100%; border: 0; border-bottom: 1px solid var(--line); background: transparent; padding: .75rem 0; font-family: var(--sans); font-size: 1rem; color: var(--ink); outline: none; margin-bottom: 1.5rem; }
.field:focus { border-color: var(--gold); }
.field::placeholder { color: rgba(107,107,107,.7); }
.form-row { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.form-msg { font-size: .9rem; margin-top: 1rem; }
.form-msg.ok { color: var(--gold-deep); }

.mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-4 { margin-top: 1.5rem; }
.muted { color: var(--muted); }

/* ── Page transition: grid of vertical panels (Cipher-style) ─────
   Panels cover the screen on exit (sweep down) and reveal on load
   (sweep up), staggered column by column. */
#page-transition {
  position: fixed; inset: 0; z-index: 9999;
  display: grid; grid-template-columns: repeat(5, 1fr);
  pointer-events: none;
}
#page-transition .pt-col {
  background: var(--cream);          /* cream sandal panels */
  transform: scaleY(0);              /* default: collapsed, invisible */
  transform-origin: top;             /* grows downward from the top */
  transition: transform .8s cubic-bezier(.76,0,.24,1);
}
/* COVER (link click): panels grow DOWN from the top to fill the screen. */
#page-transition.cover .pt-col {
  transform: scaleY(1);
  transform-origin: top;
}
/* REVEAL (on load): panels begin fully covering, then OPEN by collapsing
   DOWNWARD off the bottom — the grid "opens" to show the new page. */
#page-transition.reveal-start .pt-col {
  transform: scaleY(1);
  transform-origin: bottom;
  transition: none;                  /* snap to covered, no animation */
}
#page-transition.reveal-go .pt-col {
  transform: scaleY(0);
  transform-origin: bottom;          /* collapses downward, opening up */
  transition: transform .85s cubic-bezier(.76,0,.24,1);
}
/* Per-column stagger so the grid sweeps across, not all at once. */
#page-transition .pt-col:nth-child(1) { transition-delay: 0s; }
#page-transition .pt-col:nth-child(2) { transition-delay: .1s; }
#page-transition .pt-col:nth-child(3) { transition-delay: .2s; }
#page-transition .pt-col:nth-child(4) { transition-delay: .3s; }
#page-transition .pt-col:nth-child(5) { transition-delay: .4s; }

/* ============================================================
   LEGACY & MILESTONES — luxury editorial section.
   Deep black / charcoal, champagne gold, oversized transparent years,
   alternating image|content rows, a glowing "Golden Legacy Line", and a
   dramatic "Future Begins Here" finale card.
   ============================================================ */
.legacy-section {
  position: relative;
  background: #070707;
  color: #f5f5f5;
  padding: 8rem 1.5rem 9rem;
  overflow: hidden;
}
@media (min-width: 1024px) { .legacy-section { padding: 10rem 5rem 11rem; } }
.legacy-inner { max-width: 1240px; margin: 0 auto; position: relative; z-index: 2; }

/* Header */
.legacy-head { text-align: center; max-width: 50rem; margin: 0 auto 6rem; }
.legacy-head .eyebrow { color: #d4af37; }
.legacy-head h2 {
  font-family: var(--serif); font-weight: 500; color: #f5f5f5;
  font-size: clamp(2.5rem, 5vw, 4.25rem); line-height: 1.05; margin-top: 1rem;
  letter-spacing: -0.01em;
}
.legacy-head p { margin-top: 1.5rem; color: rgba(245,245,245,.6); font-size: 1.1rem; line-height: 1.7; }

/* The glowing Golden Legacy Line — a vertical thread down the centre. */
.legacy-line {
  position: absolute; left: 50%; top: 0; transform: translateX(-50%);
  width: 1px; height: 100%; z-index: 1;
  background: linear-gradient(180deg, rgba(212,175,55,0) 0%, rgba(212,175,55,.55) 12%, rgba(212,175,55,.55) 88%, rgba(212,175,55,0) 100%);
}
.legacy-line::after {
  content: ""; position: absolute; left: 50%; top: 0; transform: translateX(-50%);
  width: 5px; height: 100%; filter: blur(6px);
  background: linear-gradient(180deg, rgba(212,175,55,0), rgba(212,175,55,.45), rgba(212,175,55,0));
}
@media (max-width: 899px) { .legacy-line { left: 1.5rem; } }

/* Milestone rows — alternating image / content. */
.milestone {
  position: relative; display: grid; grid-template-columns: 1fr; gap: 2.5rem;
  align-items: center; margin: 0 auto 9rem; max-width: 1100px;
}
.milestone:last-of-type { margin-bottom: 0; }
@media (min-width: 900px) {
  .milestone { grid-template-columns: 1fr 1fr; gap: 5rem; }
  .milestone.flip .m-media { order: 2; }
  .milestone.flip .m-content { order: 1; text-align: right; }
}

/* Oversized, semi-transparent year sitting behind the content. */
.m-content { position: relative; }
.m-year {
  font-family: var(--serif); font-weight: 600; line-height: .8;
  font-size: clamp(6rem, 14vw, 13rem);
  color: rgba(212,175,55,.10);
  position: absolute; top: -3.5rem; left: -1rem; z-index: 0; pointer-events: none;
  white-space: nowrap;
}
.milestone.flip .m-year { left: auto; right: -1rem; }
.m-content .inner { position: relative; z-index: 1; }
.m-tag { color: #d4af37; font-size: .72rem; letter-spacing: .28em; text-transform: uppercase; }
.m-title { font-family: var(--serif); font-weight: 500; color: #f5f5f5; font-size: clamp(1.75rem, 3vw, 2.75rem); line-height: 1.1; margin-top: 1rem; }
.m-text { margin-top: 1.25rem; color: rgba(245,245,245,.62); line-height: 1.85; font-size: 1.02rem; }
/* subtle gold divider */
.m-divider { width: 0; height: 1px; background: linear-gradient(90deg, #d4af37, rgba(212,175,55,0)); margin-top: 1.75rem; }
.milestone.flip .m-divider { margin-left: auto; background: linear-gradient(270deg, #d4af37, rgba(212,175,55,0)); }

/* Cinematic media frame. */
.m-media { position: relative; aspect-ratio: 4/3; overflow: hidden; border-radius: 3px; box-shadow: 0 30px 80px -30px rgba(0,0,0,.8); }
.m-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 1.1s cubic-bezier(.2,.7,.2,1); will-change: transform; }
.m-media:hover img { transform: scale(1.1); }
.m-media .m-veil { position: absolute; inset: 0; background: linear-gradient(to top, rgba(7,7,7,.45), transparent 55%); }

/* Gold node where the line meets each milestone. */
.m-node { position: absolute; left: 50%; top: 50%; width: 11px; height: 11px; border-radius: 50%; background: #d4af37; transform: translate(-50%,-50%); z-index: 3; box-shadow: 0 0 0 6px rgba(212,175,55,.12), 0 0 22px rgba(212,175,55,.7); }
@media (max-width: 899px) { .m-node { left: 1.5rem; } }

/* ── Future Begins Here — dramatic finale card ── */
.future-card {
  position: relative; max-width: 1100px; margin: 7rem auto 0;
  border-radius: 4px; overflow: hidden; text-align: center;
  min-height: 70vh; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 40px 120px -40px rgba(212,175,55,.25);
}
.future-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.05); transition: transform 1.4s ease; }
.future-card:hover img { transform: scale(1.1); }
.future-card .f-veil { position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(7,7,7,.55), rgba(7,7,7,.82)); }
.future-card .f-glow { position: absolute; inset: 0; background: radial-gradient(circle at 50% 60%, rgba(212,175,55,.25), transparent 55%); mix-blend-mode: screen; }
.future-card .f-content { position: relative; z-index: 2; padding: 3rem 1.5rem; }
.future-card .eyebrow { color: #d4af37; }
.future-card h2 { font-family: var(--serif); font-weight: 500; color: #f5f5f5; font-size: clamp(2.25rem, 5vw, 4rem); line-height: 1.05; margin-top: 1rem; text-shadow: 0 0 60px rgba(212,175,55,.3); }
.future-card .cta { margin-top: 2.5rem; }
