/* =========================================================================
   THOMSON RESERVE — liquid-glass landing page
   Web approximation of Apple's "liquid glass" material: backdrop-filter +
   layered hairline borders + inner highlights. No official liquid-glass.css.
   Mobile-first; scales to desktop. One radius scale, one accent.
   ========================================================================= */

@font-face {
  font-family: "Manrope";
  src: url("assets/fonts/manrope-var.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
  font-style: normal;
}
/* serif reserved for the single brand-wordmark moment (section 06) — matches the
   mockup's elegant serif identity; intentional exception to the sans default. */
@font-face {
  font-family: "Cormorant Garamond";
  src: url("assets/fonts/cormorant-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
  font-style: normal;
}

:root {
  --font-sans: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Manrope", "Helvetica Neue", system-ui, sans-serif;
  --font-serif: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", "Menlo", monospace;

  /* one accent, locked */
  --accent: #5e8aa0;
  --accent-bright: #8fb6c9;

  /* dark-section ink (default state for photo sections) */
  --ink: rgba(255, 255, 255, .96);
  --ink-dim: rgba(255, 255, 255, .68);
  --ink-faint: rgba(255, 255, 255, .46);

  /* glass */
  --glass-bg: rgba(255, 255, 255, .10);
  --glass-border: rgba(255, 255, 255, .26);
  --glass-hi: rgba(255, 255, 255, .50);
  --glass-shadow: 0 30px 70px -28px rgba(7, 18, 26, .65);

  /* radius scale (locked) */
  --r-card: 22px;
  --r-frame: 20px;
  --r-pill: 999px;

  --pad-x: clamp(1.25rem, 5vw, 2.5rem);
  --maxw: 1240px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; }
/* clip horizontal overflow at the ROOT (the document scroller) so the GSAP
   left/right reveal transforms can sit off-screen without creating a
   horizontal scrollbar / swipe. clip > hidden: it reliably clips transformed
   descendants and does not create a scroll container that would fight ScrollTrigger. */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: #0c1822;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  max-width: 100%;
}

img { display: block; max-width: 100%; }

/* ambient wash that sits under the whole document */
.page-aura {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(120% 80% at 80% -10%, rgba(120, 165, 185, .35), transparent 60%),
    radial-gradient(120% 90% at -10% 110%, rgba(208, 196, 170, .30), transparent 55%),
    linear-gradient(176deg, #0e1b24 0%, #16323f 30%, #4f7587 52%, #9fb1ad 72%, #ddd6c4 100%);
}
.page-grain {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .035;
  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='.8' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 200;
  background: #fff; color: #12222c; padding: .6rem 1rem; border-radius: 10px;
  font-weight: 600; transition: top .2s;
}
.skip-link:focus { top: 1rem; }

/* ---------- typography ---------- */
.display { font-weight: 250; letter-spacing: -.02em; line-height: 1.04; margin: 0; }
.mono {
  font-family: var(--font-mono);
  font-size: .75rem; letter-spacing: .2em; text-transform: uppercase;
  font-weight: 500; color: var(--ink-dim); margin: 0;
}
.lede { font-size: clamp(1.05rem, 1rem + 1vw, 1.4rem); font-weight: 350; line-height: 1.5; color: var(--ink-dim); margin: 0; max-width: 34ch; }
.body-lg { font-size: clamp(1rem, .95rem + .7vw, 1.22rem); font-weight: 350; line-height: 1.6; color: var(--ink); margin: 0; }
.dim { color: var(--ink-dim); }

/* ---------- layout helpers ---------- */
.section-pad { padding-inline: var(--pad-x); }
.measure { max-width: 680px; margin-inline: auto; }
.measure-wide { max-width: var(--maxw); margin-inline: auto; }
.center-col { max-width: 760px; margin-inline: auto; text-align: center; }
.section-no { color: var(--accent-bright); margin-bottom: 1rem; }
/* darker accent on light sections so numbered labels clear WCAG AA */
.section-light .section-no, .block-sky .section-no { color: #2e5160; }

/* =======================  GLASS  ======================= */
.glass {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(22px) saturate(1.6);
  backdrop-filter: blur(22px) saturate(1.6);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-card);
  box-shadow:
    inset 0 1px 0 var(--glass-hi),
    inset 0 -1px 0 rgba(255, 255, 255, .06),
    var(--glass-shadow);
}
.glass-frame {
  border-radius: var(--r-frame);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), var(--glass-shadow);
  background: rgba(255, 255, 255, .06);
}
.glass-frame img { width: 100%; height: 100%; object-fit: cover; }
.card { padding: clamp(1.4rem, 4vw, 2.2rem); }
.pad-card { padding: clamp(1.5rem, 5vw, 2.4rem); }

/* light-section glass needs more fill to read on a bright bg */
.section-light .glass,
.block-sky .glass {
  background: rgba(255, 255, 255, .5);
  border-color: rgba(255, 255, 255, .72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .85), 0 28px 60px -30px rgba(40, 60, 72, .4);
}
.section-light .glass-frame, .block-sky .glass-frame { border-color: rgba(255, 255, 255, .7); }

/* =======================  SECTION INK GOVERNANCE  ======================= */
.section-light { --ink: #1f2a30; --ink-dim: rgba(31, 42, 48, .68); --ink-faint: rgba(31, 42, 48, .42); color: var(--ink); }
.block-sky     { --ink: #233039; --ink-dim: rgba(35, 48, 57, .70); --ink-faint: rgba(35, 48, 57, .45); color: var(--ink); }
.block-sky .body-lg, .section-light .body-lg { color: var(--ink); }

/* =======================  PILLS  ======================= */
.pill {
  --pb: rgba(255, 255, 255, .18);
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem; font-family: var(--font-sans); font-weight: 500;
  font-size: 1rem; letter-spacing: .01em; line-height: 1;
  color: #fff; text-decoration: none;
  padding: .95rem 1.7rem; border-radius: var(--r-pill);
  background: var(--pb);
  border: 1px solid rgba(255, 255, 255, .55);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), inset 0 -2px 8px rgba(255, 255, 255, .12), 0 16px 34px -14px rgba(0, 0, 0, .55);
  transition: transform .25s var(--ease-out), background .25s, box-shadow .25s;
  cursor: pointer; text-shadow: 0 1px 12px rgba(8, 20, 28, .35);
}
.pill:hover { background: rgba(255, 255, 255, .30); transform: translateY(-2px); }
.pill:active { transform: translateY(0) scale(.985); }
.pill:focus-visible { outline: 2px solid var(--accent-bright); outline-offset: 3px; }
/* visible keyboard focus across every interactive element */
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent-bright); outline-offset: 3px; border-radius: 6px; }
.pill-lg { padding: 1.1rem 2.1rem; font-size: 1.08rem; }
.pill-sm { padding: .6rem 1.15rem; font-size: .9rem; }

/* ghost pill for light sections (charcoal, bordered) */
.pill-ghost {
  color: #1f2a30; background: rgba(255, 255, 255, .4);
  border: 1px solid rgba(31, 42, 48, .35); text-shadow: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), 0 14px 30px -16px rgba(40, 60, 72, .4);
}
.pill-ghost:hover { background: rgba(255, 255, 255, .62); }

.text-link {
  display: inline-flex; align-items: center; gap: .45rem;
  color: var(--ink); text-decoration: none; font-weight: 500;
  width: fit-content; min-height: 44px;             /* a11y: 44px tap target */
  transition: gap .25s var(--ease-out), opacity .25s;
}
.text-link .tl-label { border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.text-link .arrow { color: var(--accent); transition: transform .25s var(--ease-out); }
.text-link:hover .arrow { transform: translateX(5px); }

/* =======================  NAV  ======================= */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  /* always-on top scrim so nav links keep contrast over the bright hero sky */
  background: linear-gradient(180deg, rgba(8, 16, 22, .5), rgba(8, 16, 22, 0));
  transition: background .3s, backdrop-filter .3s, box-shadow .3s;
}
.nav-inner {
  max-width: var(--maxw); margin-inline: auto;
  display: flex; align-items: center; gap: 1rem;
  padding: clamp(.85rem, 2vw, 1.15rem) var(--pad-x);
}
.nav.scrolled {
  background: rgba(14, 24, 32, .8);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  backdrop-filter: blur(20px) saturate(1.4);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .08), 0 12px 30px -22px rgba(0, 0, 0, .8);
}
.wordmark { text-decoration: none; color: #fff; margin-right: auto; }
.wordmark-main { font-size: 1.12rem; font-weight: 450; letter-spacing: -.01em; text-shadow: 0 1px 14px rgba(8, 20, 28, .4); }
.nav-links { display: none; gap: clamp(1rem, 2.2vw, 2rem); }
.nav-links a { color: rgba(255, 255, 255, .92); text-decoration: none; font-size: .95rem; font-weight: 400; transition: color .2s; text-shadow: 0 1px 14px rgba(8, 20, 28, .55); }
.nav-links a:hover { color: #fff; }
.nav-cta { display: none; }

.nav-toggle {
  display: inline-flex; flex-direction: column; gap: 5px; justify-content: center;
  width: 44px; height: 44px; padding: 0 10px; margin-right: -10px;
  background: transparent; border: 0; cursor: pointer;
}
.nav-toggle span { height: 1.5px; width: 100%; background: #fff; border-radius: 2px; transition: transform .3s, opacity .3s; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.25px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.25px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0 0 auto 0; z-index: 99; padding: 5.5rem var(--pad-x) 2rem;
  background: rgba(14, 24, 32, .72);
  -webkit-backdrop-filter: blur(26px) saturate(1.4);
  backdrop-filter: blur(26px) saturate(1.4);
  box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .7);
  transform: translateY(-12px); opacity: 0; transition: opacity .3s, transform .3s;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu.open { transform: translateY(0); opacity: 1; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 1.3rem; }
.mobile-menu a { color: #fff; text-decoration: none; font-size: 1.35rem; font-weight: 300; display: flex; align-items: center; min-height: 44px; }
.mobile-menu .pill { margin-top: .6rem; align-self: flex-start; }

/* =======================  HERO  ======================= */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-bottom: clamp(3rem, 12vh, 7rem); padding-top: 6rem;
  overflow: hidden;
}
.hero-photo, .feature-photo, .cta-photo { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-photo img, .feature-photo img, .cta-photo img { width: 100%; height: 100%; object-fit: cover; }
/* parallax slack: oversize the image so a ±7% shift never exposes an edge */
[data-parallax] img { height: 120%; margin-top: -10%; }
.photo-scrim { position: absolute; inset: 0; }
.hero-scrim {
  background:
    linear-gradient(180deg, rgba(10, 20, 28, .35) 0%, rgba(10, 20, 28, 0) 30%, rgba(10, 20, 28, .25) 62%, rgba(8, 16, 23, .8) 100%),
    radial-gradient(80% 50% at 20% 100%, rgba(8, 16, 23, .55), transparent 70%);
}
.hero-content { position: relative; z-index: 2; max-width: var(--maxw); margin-inline: auto; width: 100%; }
.hero-title { font-size: clamp(2.7rem, 1.6rem + 8vw, 6.2rem); max-width: 16ch; margin-bottom: clamp(1.1rem, 3vw, 1.8rem); text-shadow: 0 2px 30px rgba(6, 14, 20, .45); }
.hero-sub { margin-bottom: clamp(1.6rem, 4vw, 2.2rem); color: rgba(255, 255, 255, .9); max-width: 40ch; }
.hero-actions { margin-bottom: 1.5rem; }
.hero-trust { color: rgba(255, 255, 255, .62); }

.scroll-cue { position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%); z-index: 2; width: 24px; height: 38px; border: 1.5px solid rgba(255, 255, 255, .4); border-radius: 12px; }
.scroll-cue span { position: absolute; top: 7px; left: 50%; width: 3px; height: 7px; margin-left: -1.5px; background: rgba(255, 255, 255, .8); border-radius: 2px; animation: cue 1.8s var(--ease-out) infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 70% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }
@media (prefers-reduced-motion: reduce) { .scroll-cue span { animation: none; } }

/* =======================  GENERIC BLOCK  ======================= */
.block { position: relative; padding-block: clamp(4.5rem, 12vh, 9rem); overflow-x: clip; }
/* opaque light gradients — these sit over a fixed dark page-aura, so a
   transparent top made headings/labels render dark-on-dark. Opaque = always legible. */
.block-sky { background: linear-gradient(180deg, #c6d4d5 0%, #b2c3c5 48%, #c9d2cb 100%); }
.section-light { background: linear-gradient(180deg, #ebe4d5 0%, #ddd4c3 100%); }
.block-deep.section-dark {
  background:
    radial-gradient(110% 70% at 50% 0%, rgba(58, 92, 104, .5), transparent 60%),
    linear-gradient(180deg, #0f2029, #15333f 60%, #173a44);
}
.block h2.display { font-size: clamp(2rem, 1.3rem + 3.4vw, 3.6rem); margin-bottom: 1.4rem; }
.block .glass.card { margin-top: 1.6rem; }

/* overview */
.block-sky#overview { padding-top: clamp(5rem, 14vh, 9rem); }

/* developers */
.brand-line { font-family: var(--font-serif); font-size: clamp(2.4rem, 1.3rem + 5.6vw, 4.6rem); font-weight: 500; text-transform: uppercase; letter-spacing: .12em; line-height: 1.08; margin: .5rem 0 2rem; }
.dev-card { display: flex; flex-direction: column; gap: 1.6rem; align-items: center; padding: clamp(1.8rem, 5vw, 2.6rem); }
.dev-row { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(1.6rem, 5vw, 3.2rem); width: 100%; }
.dev-row li { display: flex; align-items: center; }
.dev-logo { height: clamp(22px, 5vw, 30px); width: auto; filter: brightness(0) saturate(100%); opacity: .72; }
.track-record { color: #2a3942; text-align: center; }
.block-deep .glass.dev-card { background: rgba(255, 255, 255, .6); border-color: rgba(255, 255, 255, .75); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 30px 60px -28px rgba(0, 0, 0, .55); }

/* =======================  FEATURE (photo) SECTIONS  ======================= */
.feature {
  position: relative; min-height: 92svh;
  display: flex; align-items: flex-end;
  padding-block: clamp(3rem, 9vh, 6rem); overflow: hidden;
}
.feature-photo .photo-scrim {
  background:
    linear-gradient(180deg, rgba(8, 18, 25, .3) 0%, transparent 28%, rgba(8, 18, 25, .15) 55%, rgba(6, 14, 20, .82) 100%),
    radial-gradient(90% 60% at 10% 100%, rgba(6, 14, 20, .55), transparent 72%);
}
.feature-content { position: relative; z-index: 2; max-width: var(--maxw); margin-inline: auto; width: 100%; }
.feature-h { font-size: clamp(2.1rem, 1.3rem + 4.2vw, 4.2rem); max-width: 14ch; margin-bottom: 1rem; text-shadow: 0 2px 26px rgba(6, 14, 20, .5); }
.feature .lede { color: rgba(255, 255, 255, .82); }

/* =======================  SPLIT (residences)  ======================= */
.split {
  position: relative; display: grid; grid-template-columns: 1fr; gap: clamp(2rem, 6vw, 3.5rem);
  align-items: center; padding-block: clamp(4.5rem, 12vh, 9rem); overflow-x: clip;
}
.split-text { display: flex; flex-direction: column; align-items: flex-start; gap: 1.1rem; max-width: 620px; margin-inline: auto; width: 100%; }
.split-text h2 { font-size: clamp(2.2rem, 1.4rem + 4vw, 3.8rem); }
.split-media { padding-inline: var(--pad-x); }
.split-media .glass-frame { aspect-ratio: 4 / 3; max-width: 620px; margin-inline: auto; }

/* =======================  FLOOR PLANS  ======================= */
.plan-grid {
  display: grid; gap: clamp(.9rem, 2.5vw, 1.4rem); margin: 2.2rem 0;
  grid-template-columns: 1fr;
}
.plan { aspect-ratio: 4 / 3; }
.plan img { transition: transform .9s var(--ease-out); }
.plan:hover img { transform: scale(1.05); }

/* =======================  FACILITIES  ======================= */
.facilities-grid {
  list-style: none; margin: 2rem 0 0; padding: 0;
  display: grid; gap: clamp(.8rem, 2.2vw, 1.2rem);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.facility {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .85rem;
  padding: clamp(1.4rem, 5vw, 2.1rem) 1rem; text-align: center; aspect-ratio: 1 / 1;
  min-width: 0;
}
.facility span { font-size: clamp(.95rem, 2.6vw, 1.1rem); font-weight: 450; color: var(--ink); }
.fic { width: clamp(28px, 7vw, 38px); height: clamp(28px, 7vw, 38px); fill: none; stroke: var(--accent); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }

/* =======================  FINAL CTA  ======================= */
.cta { position: relative; min-height: 96svh; display: flex; align-items: center; justify-content: center; padding-block: clamp(4rem, 12vh, 8rem); overflow: hidden; }
.cta-photo img { object-position: center 30%; }
.cta-scrim {
  background:
    linear-gradient(180deg, rgba(8, 18, 25, .55), rgba(8, 18, 25, .35) 45%, rgba(6, 14, 20, .78)),
    radial-gradient(70% 50% at 50% 50%, rgba(6, 14, 20, .35), transparent 75%);
}
.cta-content { position: relative; z-index: 2; width: 100%; max-width: 720px; margin-inline: auto; text-align: center; }
.cta-card { display: flex; flex-direction: column; align-items: center; gap: 1.6rem; padding: clamp(2rem, 7vw, 3.4rem) clamp(1.4rem, 5vw, 2.6rem); }
.cta-h { font-size: clamp(2rem, 1.3rem + 3.8vw, 3.7rem); max-width: 16ch; }
.cta-line { color: rgba(255, 255, 255, .66); }
.block-deep .cta-card, .cta .glass.cta-card { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .28); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), var(--glass-shadow); }

/* =======================  FOOTER  ======================= */
.site-footer { background: #0b1620; padding-block: clamp(2.5rem, 6vh, 4rem); }
.footnote { font-size: .8rem; line-height: 1.6; color: rgba(255, 255, 255, .55); max-width: 60ch; margin: 0 auto .5rem; text-align: center; }
.footnote.dim { color: rgba(255, 255, 255, .55); }

/* =======================  REVEAL (set by JS; static fallback below)  ======================= */
/* will-change is applied per-tween by main.js (animIn) and cleared on settle,
   so it never sits permanently on ~30 elements. */

/* =======================  RESPONSIVE  ======================= */
@media (min-width: 768px) {
  .facilities-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .plan-grid { grid-template-columns: repeat(3, 1fr); }
  .lede { max-width: 42ch; }
}
@media (min-width: 880px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .nav-toggle { display: none; }
  .mobile-menu { display: none !important; }
  .split { grid-template-columns: 1.05fr 1fr; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad-x); }
  .split-text { margin-inline: 0; padding-inline: 0; }
  .split-media { padding-inline: 0; }
  .split-media .glass-frame { margin-inline: 0; }
}
@media (min-width: 1024px) {
  .feature-h { max-width: 16ch; }
}

/* =======================  A11Y FALLBACKS  ======================= */
@media (prefers-reduced-transparency: reduce) {
  .glass, .section-light .glass, .block-sky .glass, .block-deep .glass.dev-card { background: rgba(245, 247, 248, .96); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .block-deep .glass.dev-card, .cta .glass.cta-card { background: rgba(20, 34, 43, .94); }
  .nav.scrolled { background: rgba(14, 24, 32, .95); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .pill { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(255, 255, 255, .9); color: #12222c; text-shadow: none; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
  .plan img { transition: none; }
}
/* progressive-enhancement guard: if JS runs, it hides .reveal until animated */
.js-anim .reveal { opacity: 0; }
