/* ============================================================
   TAYLOR MANOR — SITE STYLES
   Palette pulled from brand mockup
   ============================================================ */

/* Noto Serif — variable font (wght 100–900, wdth 62.5–100).
   Licensed under the SIL Open Font License 1.1; see /fonts/NotoSerif-OFL.txt */
@font-face {
  font-family: 'Noto Serif';
  src: url('/fonts/NotoSerif-VariableFont_wdth,wght.ttf') format('truetype-variations');
  font-weight: 100 900;
  font-stretch: 62.5% 100%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Noto Serif';
  src: url('/fonts/NotoSerif-Italic-VariableFont_wdth,wght.ttf') format('truetype-variations');
  font-weight: 100 900;
  font-stretch: 62.5% 100%;
  font-style: italic;
  font-display: swap;
}


:root {
  /* Brand — 4-color palette: navy, sky, cream, sand */
  --navy: #0e2a3b;
  --navy-deep: #071b27;
  --sky-core: #a6cbdf;
  --sand: #d4c8ae;
  --cream-core: #f4eee3;

  /* Interactive blue bridges navy and sky (brand has no mid-steel) */
  --steel: #2c5067;
  --steel-deep: #1c3d52;
  --steel-darker: #0e2a3b;
  --sky: #a6cbdf;
  --sky-soft: #cadeeb;
  --cream: #d4c8ae;
  --cream-warm: #e4dcc8;
  --cream-pale: #f4eee3;

  /* Neutrals */
  --paper: #f8f4ec;
  --paper-warm: #f1eadd;
  --ink: #0e2a3b;
  --ink-soft: #3e5161;
  --ink-mute: #75899a;
  --line: #d9d0c0;
  --line-soft: #ece4d5;
  --white: #ffffff;

  /* Gradients — modern, clean, brand-derived */
  --grad-deep: linear-gradient(142deg, #0e2a3b 0%, #1c3d52 48%, #2c5067 100%);
  --grad-sky: linear-gradient(142deg, #2c5067 0%, #5683a0 55%, #a6cbdf 100%);
  --grad-dawn: linear-gradient(142deg, #0e2a3b 0%, #2c5067 55%, #6f9bb4 100%);
  --grad-sky-soft: linear-gradient(160deg, #cadeeb 0%, #a6cbdf 100%);
  /* Grayscale noise tile — applied via a blend-mode overlay to dither
     gradients and remove visible banding (see .grain-dither). */
  --noise: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='160'%20height='160'%3E%3Cfilter%20id='n'%3E%3CfeTurbulence%20type='fractalNoise'%20baseFrequency='0.8'%20numOctaves='3'%20stitchTiles='stitch'/%3E%3CfeColorMatrix%20type='saturate'%20values='0'/%3E%3C/filter%3E%3Crect%20width='100%25'%20height='100%25'%20filter='url(%23n)'/%3E%3C/svg%3E");

  /* Type */
  --serif: 'Noto Serif', Georgia, 'Times New Roman', serif;
  --display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --brand: 'Fahkwang', 'Plus Jakarta Sans', Georgia, serif;
  --noto: 'Noto Serif Display', 'Fahkwang', Georgia, serif;

  /* Radii — bento language */
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
}

* , *::before , *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* Scroll progress indicator — on-brand, driven by Lenis */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--sky) 0%, #5683a0 55%, var(--steel) 100%);
  z-index: 200;
  pointer-events: none;
  will-change: transform;
}
html { overflow-x: hidden; }
body {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a   { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

::selection { background: var(--steel); color: var(--paper); }

/* ----- Layout ----- */
.container       { max-width: 1280px; margin: 0 auto; padding: 0 1.75rem; }
.container-narrow{ max-width: 920px;  margin: 0 auto; padding: 0 1.75rem; }
.container-wide  { max-width: 1480px; margin: 0 auto; padding: 0 1.75rem; }

/* ----- Typography ----- */
.serif         { font-family: var(--serif); font-weight: 500; letter-spacing: -0.005em; }
.eyebrow       {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--steel);
  padding-bottom: 0.5rem;
  position: relative;
}
.eyebrow::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -0.2rem;
  width: 32px;
  height: 1px;
  background: var(--steel);
  opacity: 0.5;
}
.eyebrow.on-dark      { color: var(--sky); }
.eyebrow.on-dark::after { background: var(--sky); opacity: 0.7; }

.section-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.08;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink);
  margin-top: 1rem;
}
.section-lede {
  font-family: var(--sans);
  font-size: clamp(1.05rem, 1.4vw, 1.18rem);
  line-height: 1.6;
  color: var(--ink-soft);
  margin-top: 1.4rem;
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.95rem 1.6rem;
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  border-radius: 999px;
  transition: all 0.35s var(--ease-out);
  position: relative;
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn-primary    {
  background: var(--steel);
  color: var(--paper);
}
.btn-primary:hover {
  background: var(--steel-deep);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -10px rgba(45, 73, 108, 0.45);
}
.btn-outline {
  border-color: var(--ink);
  color: var(--ink);
  background: transparent;
}
.btn-outline:hover {
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-2px);
}
.btn-ghost {
  color: var(--steel);
  padding: 0.5rem 0;
  border-radius: 0;
}
.btn-ghost::after {
  content: '→';
  margin-left: 0.5rem;
  transition: transform 0.35s var(--ease-out);
  display: inline-block;
}
.btn-ghost:hover::after { transform: translateX(6px); }
.btn-light {
  background: var(--paper);
  color: var(--steel-darker);
}
.btn-light:hover { background: var(--white); transform: translateY(-2px); }
.btn-on-blue-outline {
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--paper);
}
.btn-on-blue-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--paper);
  transform: translateY(-2px);
}

/* ============================================================
   NAVIGATION — floating pill
   ============================================================ */
nav.topbar {
  position: fixed;
  top: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  width: min(calc(100% - 2.5rem), 1220px);
  padding: 0.5rem 0.5rem 0.5rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(26, 36, 51, 0.65);
  backdrop-filter: blur(22px) saturate(1.5);
  -webkit-backdrop-filter: blur(22px) saturate(1.5);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  box-shadow:
    0 8px 32px -8px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
  transition:
    background 0.5s var(--ease-soft),
    border-color 0.5s var(--ease-soft),
    box-shadow 0.5s var(--ease-soft),
    top 0.5s var(--ease-soft);
}
nav.topbar.scrolled {
  background: rgba(250, 248, 243, 0.94);
  border-color: rgba(209, 201, 186, 0.6);
  box-shadow:
    0 12px 40px -12px rgba(43, 63, 84, 0.18),
    0 2px 6px rgba(43, 63, 84, 0.06);
  top: 1rem;
}

/* Text colours: white on dark pill, dark on light scrolled pill */
nav.topbar .nav-link       { color: var(--paper); }
nav.topbar .nav-lockup     { color: var(--paper); }
nav.topbar.scrolled .nav-link       { color: var(--ink); }
nav.topbar.scrolled .nav-lockup     { color: var(--ink); }
nav.topbar.on-dark { color: var(--paper); }

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  transition: opacity 0.3s;
}
.nav-brand:hover { opacity: 0.75; }
.nav-lockup {
  height: 26px;
  width: auto;
  flex-shrink: 0;
  transition: color 0.4s var(--ease-soft);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}
.nav-link {
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 500;
  position: relative;
  padding: 0.35rem 0;
  transition: opacity 0.3s;
}
.nav-link:hover { opacity: 0.7; }
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: currentColor;
  opacity: 0.55;
  transition: width 0.4s var(--ease-out);
}
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }
.nav-link.active { opacity: 1; }
nav.topbar.scrolled .nav-link.active { color: var(--steel); }

.nav-cta {
  background: rgba(255, 255, 255, 0.15);
  color: var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.26);
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 0.84rem;
  font-weight: 500;
  transition: all 0.3s var(--ease-out);
  white-space: nowrap;
}
.nav-cta:hover {
  background: rgba(255, 255, 255, 0.26);
  transform: translateY(-1px);
}
nav.topbar.scrolled .nav-cta {
  background: var(--steel);
  color: var(--paper);
  border-color: var(--steel);
}
nav.topbar.scrolled .nav-cta:hover { background: var(--steel-deep); transform: translateY(-1px); }

.nav-phone {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--paper);
  font-family: var(--sans);
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  transition: all 0.3s var(--ease-out);
}
.nav-phone svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  opacity: 0.85;
}
.nav-phone:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-1px);
}
nav.topbar.scrolled .nav-phone {
  color: var(--ink);
  border-color: var(--line);
}
nav.topbar.scrolled .nav-phone:hover {
  background: var(--cream-pale);
  border-color: var(--steel);
  color: var(--steel);
  transform: translateY(-1px);
}

.nav-menu-btn {
  display: none;
  width: 36px; height: 36px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  z-index: 110;
}
.nav-menu-btn span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--paper);
  transition: transform 0.4s var(--ease-out), opacity 0.3s, background 0.3s;
}
nav.topbar.scrolled .nav-menu-btn span { background: var(--ink); }
.nav-menu-btn.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-menu-btn.open span:nth-child(2) { opacity: 0; }
.nav-menu-btn.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile drawer */
.nav-drawer {
  position: fixed;
  top: 0; right: 0;
  width: 100%;
  max-width: 420px;
  height: 100vh;
  background: var(--steel-darker);
  color: var(--paper);
  padding: 6rem 2.5rem 3rem;
  transform: translateX(100%);
  transition: transform 0.55s var(--ease-out);
  z-index: 99;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.nav-drawer.open { transform: translateX(0); }
.nav-drawer a {
  font-family: var(--brand);
  font-size: 2rem;
  font-weight: 400;
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out), color 0.3s;
}
.nav-drawer.open a {
  opacity: 1;
  transform: translateX(0);
}
.nav-drawer.open a:nth-child(1) { transition-delay: 0.15s; }
.nav-drawer.open a:nth-child(2) { transition-delay: 0.20s; }
.nav-drawer.open a:nth-child(3) { transition-delay: 0.25s; }
.nav-drawer.open a:nth-child(4) { transition-delay: 0.30s; }
.nav-drawer.open a:nth-child(5) { transition-delay: 0.35s; }
.nav-drawer.open a:nth-child(6) { transition-delay: 0.40s; }
.nav-drawer.open a:nth-child(7) { transition-delay: 0.45s; }
.nav-drawer a:hover { color: var(--sky); }
.nav-drawer-foot {
  margin-top: auto;
  font-family: var(--sans);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
  opacity: 0;
  transition: opacity 0.5s var(--ease-out) 0.55s;
}
.nav-drawer.open .nav-drawer-foot { opacity: 1; }
.nav-drawer-foot a { font-family: var(--sans); font-size: 0.85rem; border: 0; padding: 0; display: inline; opacity: 1; transform: none; }
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 36, 51, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
  z-index: 98;
  backdrop-filter: blur(4px);
}
.drawer-overlay.open { opacity: 1; pointer-events: auto; }

@media (max-width: 960px) {
  .nav-links, .nav-cta, .nav-phone { display: none; }
  .nav-menu-btn { display: flex; }
  nav.topbar { padding: 0.55rem 0.55rem 0.55rem 1.2rem; }
}
@media (max-width: 480px) {
  nav.topbar { width: calc(100% - 1.5rem); }
}

/* ============================================================
   PAGE HEADER (for inner pages)
   ============================================================ */
.page-header {
  /* Light sky at the top of every page (theme: sky up top, sea at the bottom) */
  background: linear-gradient(180deg, var(--sky-soft) 0%, #aec3d5 100%);
  color: var(--ink);
  padding: 11rem 0 6rem;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 820px 600px at 82% 4%, rgba(255, 255, 255, 0.55), transparent 62%),
    radial-gradient(ellipse 720px 600px at 8% 104%, rgba(14, 42, 59, 0.08), transparent 60%);
  pointer-events: none;
}
.page-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(rgba(14, 42, 59, 0.06) 1px, transparent 1px);
  background-size: 24px 24px;
  background-position: -2px -2px;
  pointer-events: none;
  opacity: 0.5;
  mask-image: radial-gradient(ellipse at center, black, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black, transparent 70%);
}
.page-header-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 4rem;
  align-items: end;
}
.page-header h1 {
  font-family: var(--noto);
  font-weight: 600;
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  line-height: 1.08;
  text-transform: none;
  letter-spacing: -0.01em;
  margin-top: 1rem;
  color: var(--ink);
}
.page-header h1 em { color: var(--steel); }
.page-header .eyebrow.on-dark { color: var(--steel); }
.page-header .eyebrow.on-dark::after { background: var(--steel); opacity: 0.5; }
.page-header-sub {
  font-family: var(--sans);
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 42ch;
}
.page-header-crumbs {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 0.8rem;
}
.page-header-crumbs a { color: inherit; opacity: 0.7; transition: opacity 0.3s; }
.page-header-crumbs a:hover { opacity: 1; }
.page-header-crumbs .sep { margin: 0 0.6rem; opacity: 0.4; }

@media (max-width: 800px) {
  .page-header { padding: 8.5rem 0 4.5rem; }
  .page-header-inner { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* ============================================================
   GENERAL SECTIONS
   ============================================================ */
section { padding: 7rem 0; position: relative; }
section.tight { padding: 4.5rem 0; }
section.bg-cream { background: var(--cream-pale); }
section.bg-paper-warm { background: var(--paper-warm); }
section.bg-steel { background: var(--grad-dawn); color: var(--paper); }
section.bg-steel-deep { background: var(--grad-deep); color: var(--paper); }
section.bg-sky-soft { background: var(--sky-soft); }
section.bg-sky-grad { background: linear-gradient(180deg, var(--sky-soft) 0%, #9cc0d6 100%); }
section.bg-steel .section-title,
section.bg-steel-deep .section-title { color: var(--paper); }
section.bg-steel .section-lede,
section.bg-steel-deep .section-lede { color: rgba(250, 248, 243, 0.75); }

@media (max-width: 700px) { section { padding: 4.5rem 0; } }

/* ----- Reveal animation ----- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.95s var(--ease-out), transform 0.95s var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.85s var(--ease-out), transform 0.85s var(--ease-out);
}
.reveal-stagger.visible > *               { opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(1)  { transition-delay: 0.0s; }
.reveal-stagger.visible > *:nth-child(2)  { transition-delay: 0.08s; }
.reveal-stagger.visible > *:nth-child(3)  { transition-delay: 0.16s; }
.reveal-stagger.visible > *:nth-child(4)  { transition-delay: 0.24s; }
.reveal-stagger.visible > *:nth-child(5)  { transition-delay: 0.32s; }
.reveal-stagger.visible > *:nth-child(6)  { transition-delay: 0.40s; }
.reveal-stagger.visible > *:nth-child(7)  { transition-delay: 0.48s; }
.reveal-stagger.visible > *:nth-child(8)  { transition-delay: 0.56s; }
.reveal-stagger.visible > *:nth-child(9)  { transition-delay: 0.64s; }
.reveal-stagger.visible > *:nth-child(10) { transition-delay: 0.72s; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-stagger > * { opacity: 1; transform: none; transition: none; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ============================================================
   FOOTER
   ============================================================ */
/* ============================================================
   SITE DESCENT — the bottom region (final CTA + footer) lives in ONE
   gradient element so the blue→navy fade is a single unbroken ramp with
   no seam between the bar and the footer. Top color varies per page
   (light sky on home, steel on inner pages) via --descent-top.
   ============================================================ */
.site-descent {
  position: relative;
  isolation: isolate;
  background: linear-gradient(180deg, var(--descent-top, #2c5067) 0%, var(--navy) 100%);
}
.site-descent::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: var(--noise);
  background-size: 160px 160px;
  opacity: 0.3;
  mix-blend-mode: overlay;
}
.site-descent > * { position: relative; z-index: 1; }
/* Sections inside the descent go transparent so the single gradient shows */
.site-descent .cta-band,
.site-descent #team-preview,
.site-descent footer.site-footer { background: transparent; }
.site-descent .cta-band::before,
.site-descent .cta-band::after { display: none; }
body[data-page="home"] { --descent-top: #aabfd2; }

footer.site-footer {
  background: transparent;
  color: rgba(250, 248, 243, 0.78);
  padding: 5.5rem 0 2.5rem;
  font-size: 0.92rem;
  position: relative;
  overflow: hidden;
}
/* Faded brand-mark watermark — warmth in the background */
footer.site-footer::before {
  content: '';
  position: absolute;
  right: -60px;
  bottom: -90px;
  width: 420px;
  height: 420px;
  background-color: var(--sky);
  -webkit-mask: url("/images/taylor-manor-mark.svg") center / contain no-repeat;
  mask: url("/images/taylor-manor-mark.svg") center / contain no-repeat;
  opacity: 0.05;
  pointer-events: none;
}
footer.site-footer .container { position: relative; z-index: 1; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 4rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-brand-sub {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sky);
  margin-bottom: 1.5rem;
}
.footer-brand-text {
  max-width: 32ch;
  line-height: 1.65;
  color: rgba(250, 248, 243, 0.65);
}
.footer-lockup {
  height: 34px;
  width: auto;
  color: var(--paper);
  margin-bottom: 1rem;
}
.footer-col h5 {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sky);
  margin-bottom: 1.25rem;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.7rem; }
.footer-col a {
  color: rgba(250, 248, 243, 0.72);
  transition: color 0.3s;
}
.footer-col a:hover { color: var(--paper); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-top: 2.5rem;
  font-size: 0.82rem;
  color: rgba(250, 248, 243, 0.5);
}
.footer-social {
  display: flex;
  gap: 0.8rem;
}
.footer-social a {
  width: 38px; height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s var(--ease-out);
}
.footer-social a:hover {
  background: var(--sky);
  color: var(--steel-darker);
  border-color: var(--sky);
  transform: translateY(-2px);
}
.footer-social svg { width: 16px; height: 16px; }
.footer-powered {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: rgba(250, 248, 243, 0.55);
  font-size: 0.82rem;
}
.footer-powered a { color: var(--paper); border-bottom: 1px solid rgba(255,255,255,0.2); padding-bottom: 1px; transition: border-color 0.3s; }
.footer-powered a:hover { border-color: var(--sky); }

.footer-bottom-right {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  flex-wrap: wrap;
}
.footer-bottom-right .footer-powered { white-space: nowrap; }
.footer-bottom-divider {
  width: 1px;
  height: 18px;
  background: rgba(255, 255, 255, 0.18);
}
.footer-mozart-link {
  display: inline-flex;
  align-items: center;
  opacity: 0.8;
  transition: opacity 0.3s;
}
.footer-mozart-link:hover { opacity: 1; }
.footer-mozart {
  height: 17px;
  width: auto;
  display: block;
}

/* Mini map preview in the footer */
.footer-map {
  position: relative;
  display: block;
  margin-top: 1.1rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--steel-deep);
  aspect-ratio: 16 / 9;
}
.footer-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  pointer-events: none;
  filter: grayscale(0.25) contrast(1.05);
}
.footer-map-pin {
  position: absolute;
  left: 0.6rem;
  bottom: 0.6rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(14, 42, 59, 0.82);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: var(--paper);
  font-size: 0.74rem;
  font-weight: 500;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
}
.footer-map:hover .footer-map-pin { background: var(--steel); }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
}
@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* ============================================================
   PAGE-TRANSITION FADE
   ============================================================ */
body.fade-leaving {
  opacity: 0;
  transition: opacity 0.32s var(--ease-soft);
}
body {
  animation: pageEnter 0.65s var(--ease-out);
}
@keyframes pageEnter {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}

/* ============================================================
   UTILITIES
   ============================================================ */
.divider-soft {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--line), transparent);
  border: 0;
  margin: 0;
}
.shadow-soft {
  box-shadow:
    0 2px 4px rgba(43, 63, 84, 0.04),
    0 14px 38px -16px rgba(43, 63, 84, 0.18);
}
.rounded-frame {
  border-radius: var(--radius-md);
  overflow: hidden;
}

/* ============================================================
   CTA BAND (reusable)
   ============================================================ */
/* Clean vertical block that bottoms out in navy, so it flows seamlessly
   into the navy footer below (no seam, no banding). */
.cta-band {
  background: linear-gradient(180deg, #2c5067 0%, #244861 55%, #1c3d52 100%);
  color: var(--paper);
  text-align: center;
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
/* Grain dither over the gradient to kill banding (inner-page CTAs;
   the home descent carries its own dither). */
.cta-band:not(.is-sky-top)::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: var(--noise);
  background-size: 160px 160px;
  opacity: 0.28;
  mix-blend-mode: overlay;
}
.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 760px 480px at 50% -15%, rgba(166, 203, 223, 0.14), transparent 60%);
  pointer-events: none;
}
.cta-band-inner { position: relative; z-index: 1; }

/* Home variant: just extra top padding so the heading sits lower in the
   descent gradient (the gradient itself is provided by .site-descent). */
.cta-band.is-sky-top { padding-top: 9rem; }
@media (max-width: 700px) {
  .cta-band.is-sky-top { padding-top: 7rem; }
}
.cta-band h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  max-width: 22ch;
  margin: 0 auto 1.3rem;
}
.cta-band p {
  max-width: 64ch;
  margin: 0 auto 2.2rem;
  color: rgba(250, 248, 243, 0.78);
  font-size: 1.05rem;
  line-height: 1.6;
}
.cta-band-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   FEATURE LIST  (used by amenities/services pages)
   ============================================================ */
.feature-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0;
  border-top: 1px solid var(--line-soft);
}
.feature-list li {
  padding: 1.4rem 1.6rem;
  border-bottom: 1px solid var(--line-soft);
  border-right: 1px solid var(--line-soft);
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  font-size: 0.98rem;
  color: var(--ink);
  background: var(--paper);
  transition: background 0.3s, transform 0.3s;
}
.feature-list li:hover { background: var(--cream-pale); }
.feature-list li::before {
  content: '';
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  background-color: var(--steel);
  -webkit-mask: url("/images/taylor-manor-mark.svg") center / contain no-repeat;
  mask: url("/images/taylor-manor-mark.svg") center / contain no-repeat;
  margin-top: 0.18rem;
  opacity: 0.7;
  transition: opacity 0.3s, transform 0.3s;
}
.feature-list li:hover::before { opacity: 1; transform: scale(1.12); }
@media (max-width: 600px) { .feature-list li { border-right: 0; } }

/* =========================================================
   BRAND TYPE — Plus Jakarta Sans (heavy weight display)
   Weight 800 uppercase with tight tracking for all display type.
   ========================================================= */

/* Hero headline */
.hero-title {
  font-family: var(--noto);
  font-weight: 600;
  text-transform: none;
  letter-spacing: -0.01em;
  line-height: 1.08;
}
.hero-title em {
  font-style: italic;
  font-weight: 500;
  color: var(--steel);
}

/* Page-header h1 (About, Visit, Amenities, etc.) */
.page-header h1,
.page-h1,
h1.serif {
  font-family: var(--noto);
  font-weight: 600;
  text-transform: none;
  letter-spacing: -0.01em;
  line-height: 1.08;
}
.page-header h1 em,
.page-h1 em,
h1 em {
  font-style: italic;
  font-weight: 500;
  color: var(--steel);
}

/* Section titles — Noto Serif Display for warmth */
.section-title {
  font-family: var(--noto);
  font-weight: 600;
  text-transform: none;
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.section-title em {
  font-style: italic;
  font-weight: 500;
}

/* Subhead-level headings */
h2 { font-weight: 600; line-height: 1.15; text-transform: uppercase; letter-spacing: 0.05em; }
h3 { font-weight: 600; line-height: 1.2; text-transform: uppercase; letter-spacing: 0.04em; }
h4 { font-weight: 500; line-height: 1.25; letter-spacing: 0.02em; }

/* Stat numerals */
.intro-stat-num,
.approach-num,
.vivo-pillar-num {
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* CTA band headline */
.cta-band h2 {
  font-family: var(--noto);
  font-weight: 600;
  text-transform: none;
  letter-spacing: -0.01em;
  line-height: 1.12;
}

/* Pull-quotes */
blockquote, .quote, .pullquote {
  font-weight: 400;
  letter-spacing: -0.01em;
}

/* .serif utility */
.serif {
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: -0.015em;
}

/* Character split spans injected by JS */
.char {
  display: inline-block;
  will-change: transform, opacity, filter;
}
