/* ══════════════════════════════════════════════════════════════════
   TRIENITY ONE — An Address That Defines You
   Theme: TRIENITY brand — deep navy · sky blue #1C9ACC · signal red #EC1D24
   Design system: Fraunces / Manrope / IBM Plex Mono
   ══════════════════════════════════════════════════════════════════ */

/* ── Tokens ─────────────────────────────────────────────────────── */
:root {
  --ink: #091620;
  --ink-2: #0C1F2C;
  --ink-3: #06111B;
  --paper: #F2F6F8;
  --paper-2: #FAFCFD;
  --paper-warm: #E8EFF3;
  --fog: #E3EBF0;
  --sky: #1C9ACC;
  /* all text blues now the exact logo blue — the old light/deep
     variants are aliased to it */
  --sky-2: #1C9ACC;
  --sky-deep: #1C9ACC;
  --red: #EC1D24;
  --red-deep: #C2161B;
  --stone: #7C8A93;

  --cream-85: rgba(242, 246, 248, .85);
  --cream-70: rgba(242, 246, 248, .7);
  --cream-55: rgba(242, 246, 248, .55);
  --cream-35: rgba(242, 246, 248, .35);
  --cream-14: rgba(242, 246, 248, .14);
  --ink-70: rgba(9, 22, 32, .7);
  --ink-60: rgba(9, 22, 32, .6);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", Consolas, monospace;

  --gutter: clamp(1.25rem, 5vw, 3.25rem);
  --ease-out: cubic-bezier(.22, .61, .21, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.6;
  overflow-x: clip;
  -webkit-tap-highlight-color: transparent;
}

img { max-width: 100%; display: block; height: auto; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
a { color: inherit; }

::selection { background: var(--sky-2); color: var(--ink-3); }

a:focus-visible, button:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--sky-2);
  outline-offset: 3px;
  border-radius: 2px;
}

/* film grain */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 2000;
  pointer-events: none;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--paper); }
::-webkit-scrollbar-thumb { background: #2E4552; border-radius: 8px; border: 2px solid var(--paper); }
html { scrollbar-color: #2E4552 var(--paper); scrollbar-width: thin; }

/* ── Utilities ──────────────────────────────────────────────────── */
.vh {
  position: absolute; width: 1px; height: 1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}
.skip-link {
  position: fixed; top: -4rem; left: 1rem; z-index: 600;
  background: var(--ink); color: var(--paper);
  padding: .7rem 1.2rem; border-radius: .4rem;
  font-family: var(--font-mono); font-size: .8rem;
  transition: top .3s;
}
.skip-link:focus { top: 1rem; }

/* ── Shared section chrome ──────────────────────────────────────── */
.section { padding: clamp(4.5rem, 9vw, 7.5rem) var(--gutter); position: relative; }

.section-head { margin-bottom: clamp(2.5rem, 5vw, 3.75rem); max-width: 900px; }

.kicker {
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--sky);
  margin-bottom: 1.35rem;
}
.kicker-accent { color: var(--sky-2); }

.display {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.4rem, 5.6vw, 4.4rem);
  line-height: 1.05;
  letter-spacing: -.015em;
  color: var(--ink);
  max-width: 22ch;
}
.display em {
  display: inline-block;
  font-style: italic;
  font-weight: 300;
  color: var(--sky-deep);
}

.lede {
  margin-top: 1.5rem;
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--ink-70);
  max-width: 58ch;
}

/* reveal-on-scroll */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .9s ease, transform .9s var(--ease-out);
}
.reveal.in { opacity: 1; transform: none; }
html:not(.js) .reveal, html:not(.js) .stagger > .reveal { opacity: 1; transform: none; }
html:not(.js) .after-tagline .w { opacity: 1; transform: none; }
html:not(.js) .after-rule { transform: scaleX(1); }
html:not(.js) .after-tagline .w { opacity: 1; transform: none; }

/* ── staggered reveals (JS adds transition-delay to children) ───── */
.stagger > .reveal {
  opacity: 0;
  transform: translateY(26px) scale(.985);
}
.stagger > .reveal.in { opacity: 1; transform: none; }
html:not(.js) .reveal, html:not(.js) .stagger > .reveal { opacity: 1; transform: none; }
html:not(.js) .after-tagline .w { opacity: 1; transform: none; }
html:not(.js) .after-rule { transform: scaleX(1); }
html:not(.js) .after-tagline .w { opacity: 1; transform: none; }

/* ══════════════════════════════════════════════════════════════════
   HEADER — Trienity logo in white chip · left, project logo · right.
   Transparent over the whole day→night hero, solid white after.
   ══════════════════════════════════════════════════════════════════ */
.topbar {
  position: fixed; top: 0; inset-inline: 0; z-index: 500;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.05rem var(--gutter);
  background: transparent;
  border-bottom: none;
  transition: background .45s ease, padding .45s ease, box-shadow .45s ease;
}
/* transparent the whole time the day→night hero is on screen; white after */
.topbar.scrolled {
  background: #FFFFFF;
  padding-block: .65rem;
  box-shadow: 0 1px 0 rgba(9, 22, 32, .06);
}
.topbar-link {
  line-height: 0;
  background: #FFFFFF;
  padding: .5rem .85rem;
  border-radius: .55rem;
  box-shadow: 0 4px 18px rgba(6, 17, 27, .28);
  animation: topbar-in 1.1s var(--ease-out) both .2s;
  transition: box-shadow .45s ease;
}
.topbar.scrolled .topbar-link { box-shadow: none; }
@keyframes topbar-in { from { opacity: 0; transform: translateY(-14px); } }
.topbar-logo {
  width: clamp(7rem, 10.5vw, 10rem);
  height: auto;
  transition: width .45s ease;
}
.topbar.scrolled .topbar-logo { width: clamp(6.2rem, 9vw, 8.2rem); }

/* project logo — right end of the bar, bare (no box), kept modest:
   the strip reads wide at any size, so it sits clearly smaller than
   the boxed Trienity mark. */
.topbar-project { background: none; padding: 0; box-shadow: none; }
.topbar-logo-project { width: clamp(9.5rem, 13.5vw, 12rem); }
.topbar.scrolled .topbar-logo-project { width: clamp(8.4rem, 12vw, 10.6rem); }

.hero { height: 240vh; position: relative; }

.hero-sticky {
  position: sticky; top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}

.hero-stack { position: absolute; inset: 0; }
.hero-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-day { z-index: 0; filter: brightness(1.28) saturate(1.12); }
.hero-night { z-index: 1; opacity: var(--dn, 0); }

/* slow living parallax drift on the elevation */
@media (prefers-reduced-motion: no-preference) {
  .hero-day, .hero-night { animation: hero-drift 26s ease-in-out infinite alternate; }
  @keyframes hero-drift {
    from { object-position: 50% 46%; }
    to   { object-position: 50% 54%; }
  }
}

.hero-scrim {
  position: absolute; inset: 0; z-index: 2;
  background:
    /* light edge vignettes only — toggle & cue legibility, nothing more */
    radial-gradient(120% 90% at 50% 45%, transparent 44%, rgba(6, 17, 27, .2) 100%),
    linear-gradient(to top, rgba(6, 17, 27, .4) 0%, rgba(6, 17, 27, .1) 16%, transparent 34%),
    linear-gradient(to bottom, rgba(6, 17, 27, .32) 0%, transparent 18%);
}

/* day / night toggle */
.dn-toggle {
  position: absolute; right: var(--gutter); bottom: 1.55rem; z-index: 4;
  display: flex;
  width: 9.25rem;
  border: 1px solid var(--cream-35);
  border-radius: 999px;
  padding: 3px;
  background: rgba(6, 17, 27, .38);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

/* bright pool behind the header logos — lightens the sky strip at the top
   so both marks read clearly. Fades out with the sunset (tracks --dn). */
.hero-headglow {
  position: absolute; inset: 0; z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(58% 22% at 50% 0%, rgba(255, 255, 255, .45) 0%, rgba(255, 255, 255, .18) 46%, transparent 76%);
  opacity: calc(1 - var(--dn, 0));
}

.dn-opt {
  flex: 1; position: relative; z-index: 1;
  font-family: var(--font-mono);
  font-size: .62rem;
  letter-spacing: .18em;
  text-align: center;
  padding: .52rem 0;
  color: var(--cream-70);
  transition: color .35s;
  pointer-events: none;
}
.dn-toggle[aria-pressed="false"] .dn-opt[data-opt="day"],
.dn-toggle[aria-pressed="true"] .dn-opt[data-opt="night"] { color: var(--ink-3); }
.dn-thumb {
  position: absolute; top: 3px; left: 3px; z-index: 0;
  width: calc(50% - 3px); height: calc(100% - 6px);
  background: var(--paper);
  border-radius: 999px;
  transform: translateX(calc(var(--dn, 0) * 100%));
  transition: transform .35s var(--ease-out);
  box-shadow: 0 2px 8px rgba(6, 17, 27, .3);
}

/* scroll cue */
.scroll-cue {
  position: absolute; left: 50%; bottom: 1.35rem; z-index: 4;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .55rem;
  text-decoration: none;
  color: var(--paper);
  transition: color .3s;
}
.scroll-cue:hover { color: var(--sky-2); }
.cue-label {
  font-family: var(--font-mono);
  font-size: .56rem;
  letter-spacing: .26em;
  color: var(--cream-85);
}
.cue-arrow { width: 11px; height: 40px; }
@keyframes cue-bob {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(6px); opacity: .55; }
}
.cue-arrow { animation: cue-bob 2.4s ease-in-out infinite; }

/* ══════════════════════════════════════════════════════════════════
   TAGLINE + CREDIT — centred strip after the hero
   word-pop cascade · sweeping rule · em uses the exact logo blue
   ══════════════════════════════════════════════════════════════════ */
.hero-after {
  padding: clamp(3.4rem, 7vw, 6rem) var(--gutter) clamp(3.6rem, 7vw, 6.2rem);
  text-align: center;
}

.after-tagline {
  font-family: var(--font-display);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(2.5rem, 6.5vw, 4.75rem);
  color: var(--ink);
  letter-spacing: .01em;
  line-height: 1.15;
  /* the words animate — cancel the paragraph-level reveal */
  opacity: 1;
  transform: none;
}
/* "that defines you." — EXACT blue of the features heading em */
.after-tagline .emw { color: var(--sky-deep); }

/* word-pop: each word vaults up with a spring overshoot, 120ms apart */
.after-tagline .w {
  display: inline-block;
  opacity: 0;
  transform: translateY(.55em) scale(.94);
}
.after-tagline.in .w { animation: word-pop .75s cubic-bezier(.34, 1.4, .42, 1) both; }
.after-tagline.in .w:nth-child(1) { animation-delay: .00s; }
.after-tagline.in .w:nth-child(2) { animation-delay: .12s; }
.after-tagline.in .w:nth-child(3) { animation-delay: .24s; }
.after-tagline.in .w:nth-child(4) { animation-delay: .36s; }
.after-tagline.in .w:nth-child(5) { animation-delay: .48s; }
@keyframes word-pop {
  0%   { opacity: 0; transform: translateY(.55em) scale(.94); }
  60%  { opacity: 1; transform: translateY(-.07em) scale(1.02); }
  100% { opacity: 1; transform: none; }
}

/* brand-blue rule that sweeps open beneath the tagline */
.after-rule {
  display: block;
  width: min(320px, 46vw);
  height: 2px;
  margin: 1.5rem auto 1.35rem;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--sky-deep) 28%, var(--sky-deep) 72%, transparent);
  opacity: 1;
  transform: scaleX(0);
  transition: transform 1.1s var(--ease-out) .35s;
}
.after-rule.in { transform: scaleX(1); }

.after-credit {
  margin-top: 1.35rem;
  font-family: var(--font-display);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(1.75rem, 4vw, 3rem);
  line-height: 1.3;
  color: var(--ink-70);
  letter-spacing: .01em;
}
.after-credit strong {
  font-weight: 500;
  color: var(--red);
  padding-left: .1em;
}

/* specificity locks — these two own their choreography, not the generic
   .stagger > .reveal fade (0,2,0 would otherwise beat the 0,1,0 rules) */
.stagger > .reveal.after-tagline { opacity: 1; transform: none; transition: none; }
.stagger > .reveal.after-rule {
  opacity: 1;
  transform: scaleX(0);
  transition: transform 1.1s var(--ease-out) .35s;
}
.stagger > .reveal.after-rule.in { transform: scaleX(1); }

/* ══════════════════════════════════════════════════════════════════
   01 · FEATURES — no numbers, bigger icons
   ══════════════════════════════════════════════════════════════════ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.75rem 3rem;
}

.feature-card {
  border-top: 1px solid rgba(9, 22, 32, .18);
  padding-top: 1.7rem;
  transition: transform .55s var(--ease-out), border-color .55s;
}
.feature-card:hover { transform: translateY(-6px); border-color: var(--sky); }

.feature-icon {
  width: 3rem; height: 3rem;
  color: var(--sky);
  margin-bottom: 1.15rem;
  transition: transform .5s var(--ease-out), color .4s;
}
.feature-card:hover .feature-icon { transform: scale(1.12) translateY(-2px); color: var(--sky-deep); }

.feature-card h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.5rem;
  margin: 0 0 .55rem;
  letter-spacing: -.01em;
}
.feature-card p { font-size: .95rem; line-height: 1.7; color: var(--ink-70); max-width: 36ch; }

/* ══════════════════════════════════════════════════════════════════
   02 · OFFICES — interactive floor plan (road north)
   ══════════════════════════════════════════════════════════════════ */
.offices {
  background: var(--ink);
  color: var(--paper);
  background-image: radial-gradient(58% 42% at 72% 0%, rgba(28, 154, 204, .07), transparent 70%);
}
.offices .display { color: var(--paper); }
.offices .lede { color: var(--cream-70); }
.offices .display em { color: var(--sky-2); }

.plate-block { margin-top: 0; }

.plate-frame {
  border: 1px solid var(--cream-14);
  border-radius: .8rem;
  background: rgba(6, 17, 27, .55);
  padding: 1.15rem 1.25rem;
  overflow-x: auto;
  max-width: 560px;
  margin-inline: auto;
}
/* portrait plate — fits a phone width without horizontal scroll */
.plate { display: block; width: 100%; height: auto; }

/* — the road (north) — */
.fp-road-bed {
  fill: rgba(28, 154, 204, .08);
  stroke: rgba(28, 154, 204, .4);
  stroke-width: 1.4;
}
.fp-road-edge { stroke: rgba(28, 154, 204, .5); stroke-width: 1.4; }
.fp-road-dash {
  stroke: rgba(28, 154, 204, .75);
  stroke-width: 2.4;
  stroke-dasharray: 18 14;
  stroke-linecap: round;
  animation: road-flow 2.6s linear infinite;
}
@keyframes road-flow { to { stroke-dashoffset: -32; } }
.fp-road-label {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .34em;
  fill: var(--sky-2);
  text-anchor: middle;
}

/* — shell & internal walls — */
.fp-outline { stroke: var(--cream-70); stroke-width: 2.6; fill: none; }
.fp-shell { stroke: var(--sky-2); stroke-width: 3; }
.fp-divider { stroke: var(--cream-35); stroke-width: 1.4; fill: none; }

/* — offices — */
.fp-unit { cursor: pointer; }
.fp-unit text { pointer-events: none; transition: fill .35s; }
.fp-box {
  fill: rgba(242, 246, 248, .04);
  stroke: transparent;
  stroke-width: 1.2;
  transition: fill .35s, stroke .35s, opacity .35s;
}
.fp-unit:hover .fp-box { fill: rgba(28, 154, 204, .16); }
.fp-unit:hover .fp-name { fill: var(--sky-2); }

/* selected office — colour change */
.fp-unit[aria-pressed="true"] .fp-box { fill: var(--sky); }
.fp-unit[aria-pressed="true"] .fp-name { fill: var(--ink-3); }
.fp-unit[aria-pressed="true"] .fp-area { fill: var(--ink-3); }
.fp-unit[aria-pressed="true"] .fp-sqft { fill: rgba(6, 17, 27, .75); }

.fp-unit:focus { outline: none; }
.fp-unit:focus-visible .fp-box { stroke: var(--red); stroke-width: 2.4; }

.fp-name {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: .14em;
  fill: var(--cream-85);
  text-anchor: middle;
}
.fp-area {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 26px;
  fill: var(--paper);
  text-anchor: middle;
  opacity: 0;
  transition: opacity .4s ease;
}
.fp-unit:hover .fp-area,
.fp-unit[aria-pressed="true"] .fp-area { opacity: 1; }
.fp-sqft {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .22em;
  fill: var(--cream-55);
}

/* — lobby / lifts & staircase — */
.fp-box-common { stroke: rgba(28, 154, 204, .4); stroke-width: 1.2; }
.fp-label {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 12.5px;
  letter-spacing: .24em;
  fill: var(--sky-2);
  text-anchor: middle;
}

/* plan draw-in when it scrolls into view */
@media (prefers-reduced-motion: no-preference) {
  .plate-frame { opacity: 0; transform: translateY(24px); transition: opacity 1s ease, transform 1s var(--ease-out); }
  .plate-block.in .plate-frame { opacity: 1; transform: none; }
  .fp-shell, .fp-divider {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    transition: stroke-dashoffset 1.6s var(--ease-out);
  }
  .plate-block.in .fp-shell, .plate-block.in .fp-divider { stroke-dashoffset: 0; }
  .fp-unit, .fp-common { opacity: 0; transition: opacity .7s ease; }
  .plate-block.in .fp-unit { opacity: 1; }
  .plate-block.in .fp-common { opacity: 1; transition-delay: .5s; }
}

.fp-note {
  margin-top: .9rem;
  font-family: var(--font-mono);
  font-size: .6rem;
  letter-spacing: .24em;
  color: var(--cream-35);
  text-align: center;
}






/* ══════════════════════════════════════════════════════════════════
   03 · THE HOUSE
   ══════════════════════════════════════════════════════════════════ */
.legacy { background: var(--paper-warm); }

.legacy-grid {
  display: grid;
  grid-template-columns: 1.35fr .9fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

.legacy-para {
  font-size: 1.02rem;
  line-height: 1.85;
  color: var(--ink-70);
  max-width: 62ch;
}
.legacy-para + .legacy-para { margin-top: 1.6rem; }

.pull-quote {
  margin-top: 2.75rem;
  padding-top: 2.1rem;
  border-top: 1px solid rgba(9, 22, 32, .16);
}
.pull-quote p {
  font-family: var(--font-display);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  line-height: 1.3;
  color: var(--sky-deep);
}

.legacy-logo {
  background: #FFFFFF;
  border-radius: .6rem;
  padding: 1.15rem 1.4rem;
  margin-bottom: 2.4rem;
}
.legacy-logo img {
  max-height: 6.5rem;
  width: 100%;
  object-fit: contain;
}

.timeline {
  list-style: none;
  border-left: 1px solid rgba(9, 22, 32, .2);
  padding-left: 1.7rem;
  display: flex; flex-direction: column; gap: 1.7rem;
}
.t-item { position: relative; }
.t-item::before {
  content: "";
  position: absolute;
  left: calc(-1.7rem - 4.5px);
  top: .4rem;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--sky);
}
.t-year {
  display: block;
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .16em;
  color: var(--sky-deep);
  margin-bottom: .35rem;
}
.t-text { font-size: .92rem; color: var(--ink-70); line-height: 1.6; }

/* ══════════════════════════════════════════════════════════════════
   04 · LOCATION & CONTACT — map left · two cards right
   ══════════════════════════════════════════════════════════════════ */
.location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto 1fr;
  gap: 2rem;
  margin-top: 1rem;
  align-items: stretch;
}

/* map spans the full left half (both rows) */
.map-card { grid-column: 1; grid-row: 1 / 3; display: flex; flex-direction: column; }

.map-card {
  background: var(--paper-2);
  border: 1px solid rgba(9, 22, 32, .12);
  border-radius: .9rem;
  overflow: hidden;
}
.map-frame {
  position: relative;
  flex: 1;
  min-height: 460px;
  background: var(--fog);
}
.map-frame iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
  filter: saturate(.88);
}
.map-strip {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
  padding: 1.15rem 1.35rem;
  border-top: 1px solid rgba(9, 22, 32, .1);
}
.map-addr { font-size: .92rem; color: var(--ink-70); line-height: 1.55; }
.map-directions {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .18em;
  text-decoration: none;
  color: var(--sky-deep);
  white-space: nowrap;
  border-bottom: 1px solid transparent;
  transition: color .3s, border-color .3s;
}
.map-directions:hover { color: var(--red); border-bottom-color: var(--red); }

.contact-card {
  background: var(--paper-2);
  border: 1px solid rgba(9, 22, 32, .12);
  border-radius: .9rem;
  padding: clamp(1.75rem, 4vw, 2.5rem);
  display: flex; flex-direction: column;
}
.contact-rows { list-style: none; margin-top: .5rem; }
.contact-rows li {
  display: grid;
  grid-template-columns: 5.6rem 1fr;
  align-items: baseline;
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid rgba(9, 22, 32, .1);
}
.cr-key {
  font-family: var(--font-mono);
  font-size: .6rem;
  letter-spacing: .2em;
  color: var(--ink-60);
}
.cr-val { font-weight: 600; font-size: .98rem; text-decoration: none; transition: color .3s; }
a.cr-val:hover { color: var(--sky-deep); }


.rera-card {
  background: var(--ink-3);
  color: var(--cream-85);
  border-radius: .9rem;
  padding: clamp(1.75rem, 4vw, 2.5rem);
  display: flex; flex-direction: column;
}
.rera-body { display: flex; flex-direction: column; }
.rera-visuals {
  display: flex; align-items: center; justify-content: center;
  gap: clamp(1.25rem, 3vw, 2.25rem);
  padding-bottom: 1.35rem;
  border-bottom: 1px solid var(--cream-14);
}
/* QR + MahaRERA logo — same rendered size */
.rera-qr {
  width: clamp(120px, 16vw, 148px);
  height: auto;
  aspect-ratio: 1 / 1;
  flex: none;
  background: #FFFFFF;
  padding: .55rem;
  border-radius: .5rem;
}
.rera-logo {
  width: clamp(120px, 16vw, 148px);
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  flex: none;
  background: #FFFFFF;
  padding: .55rem;
  border-radius: .5rem;
}
.rera-text {
  margin-top: 1.4rem;
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
}
.rera-label {
  font-family: var(--font-mono);
  font-size: .58rem;
  letter-spacing: .2em;
  color: var(--cream-55);
  margin-bottom: .45rem;
}
.rera-number {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 1.12rem;
  letter-spacing: .06em;
  color: var(--red);
}
.rera-site { margin-top: 1.1rem; }
.rera-site-key {
  display: block;
  font-family: var(--font-mono);
  font-size: .56rem;
  letter-spacing: .22em;
  color: var(--cream-55);
  margin-bottom: .3rem;
}
.rera-site-link {
  font-family: var(--font-mono);
  font-size: .92rem;
  letter-spacing: .04em;
  color: var(--sky-2);
  text-decoration: none;
  border-bottom: 1px solid rgba(28, 154, 204, .4);
  padding-bottom: 2px;
  transition: color .3s, border-color .3s;
}
.rera-site-link:hover { color: var(--sky-2); border-bottom-color: var(--sky-2); }

/* ══════════════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════════════ */
.footer {
  background: var(--ink-3);
  color: var(--cream-85);
  padding: 4rem var(--gutter) 0;
}
.foot-brand {
  display: flex; flex-direction: column; align-items: center;
  gap: 1.1rem;
  padding-bottom: 3.25rem;
}
.foot-logo {
  width: clamp(9rem, 16vw, 15rem);
  filter: drop-shadow(0 2px 12px rgba(28, 154, 204, .12));
  transition: transform .6s var(--ease-out);
}
.foot-logo:hover { transform: scale(1.04); }
.foot-bar {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 1.5rem; flex-wrap: wrap;
  border-top: 1px solid var(--cream-14);
  padding: 1.5rem 0 1.9rem;
}
.disclaimer {
  font-size: .74rem;
  line-height: 1.8;
  color: rgba(242, 246, 248, .45);
  max-width: 64ch;
}
.fl-rera { color: var(--sky-2); }
.fl-priv { color: var(--sky-2); text-decoration: none; }
.fl-priv:hover { text-decoration: underline; }
.foot-meta {
  font-family: var(--font-mono);
  font-size: .62rem;
  letter-spacing: .12em;
  color: var(--cream-55);
  white-space: nowrap;
}

/* ══════════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .features-grid { grid-template-columns: 1fr 1fr; gap: 2.4rem 2.5rem; }
}

@media (max-width: 920px) {
  .legacy-grid { grid-template-columns: 1fr; }
  .legacy-side { max-width: 560px; }

  .location-grid { grid-template-columns: 1fr; grid-template-rows: auto auto auto; }
  .map-card { grid-column: 1 / -1; grid-row: auto; }
  .map-frame { min-height: 380px; }

  .rera-visuals { gap: 1rem; }
  .rera-qr, .rera-logo { width: clamp(108px, 34vw, 132px); }
}

@media (max-width: 640px) {
  .features-grid { grid-template-columns: 1fr; }

  .hero { height: 220vh; }

  .dn-toggle { right: 1.1rem; bottom: 8.6rem; width: 8.25rem; }
  .scroll-cue { bottom: 1.1rem; }
  .cue-label { font-size: .5rem; }

  .section { padding-inline: 1.25rem; }

  /* MOBILE: header logos keep their full (desktop) size everywhere —
     hero and scrolled sections alike. Trienity mark capped at 34vw and the
     project strip at 46vw so the pair always fits a phone screen side by side. */
  .topbar-logo { width: clamp(5.2rem, 34vw, 10rem); }
  .topbar-logo-project { width: clamp(7rem, 46vw, 12rem); }
  .topbar.scrolled .topbar-logo { width: clamp(5.2rem, 34vw, 10rem); }
  .topbar.scrolled .topbar-logo-project { width: clamp(7rem, 46vw, 12rem); }
  .topbar { padding: .8rem 1rem; }
  .topbar-link { padding: .35rem .6rem; }

  .after-tagline { font-size: clamp(1.6rem, 8vw, 2.1rem); }
  .after-credit { font-size: clamp(1.2rem, 6vw, 1.6rem); }
  .after-rule { width: min(240px, 56vw); margin: 1.1rem auto 1rem; }

  /* portrait plan fills the phone width */
  .plate-frame { padding: .8rem .65rem; max-width: none; }

  /* footer logo bigger on phones — ~54% of screen width */
  .foot-logo { width: clamp(11rem, 54vw, 15rem); }

  .foot-bar { flex-direction: column; align-items: flex-start; gap: .9rem; }
  .foot-meta { white-space: normal; }

  .map-strip { flex-direction: column; align-items: flex-start; gap: .8rem; }

  .contact-rows li { grid-template-columns: 4.6rem 1fr; }
}

/* ══════════════════════════════════════════════════════════════════
   REDUCED MOTION
   ══════════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cue-arrow { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .stagger > .reveal { opacity: 1; transform: none; }
  .dn-thumb { transition: none; }
  .feature-card, .fp-unit rect, .t-item, .topbar-link { transition: none; }
  .after-tagline .w { animation: none; opacity: 1; transform: none; }
  .stagger > .reveal.after-rule { transform: scaleX(1); transition: none; }
  .after-tagline .w { opacity: 1; transform: none; transition: none; }
  .topbar-link { animation: none; }
  .fp-road-dash { animation: none; }
  .plate-frame, .fp-shell, .fp-divider, .fp-unit, .fp-common { opacity: 1; transform: none; transition: none; stroke-dashoffset: 0; stroke-dasharray: none; }
  .foot-logo { transition: none; }
}
