/* ============================================
   A COMFORTING HOME — SENIOR LIVING, SAN JOSE
   Premium Website — CSS Foundation
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  /* Brand Colors */
  --color-primary: #4D735D;
  --color-primary-dark: #2D4A3A;
  --color-secondary: #1B3A5C;
  --color-accent: #C9A96E;
  --color-accent-secondary: #159189;

  /* Neutrals */
  --color-white: #FFFFFF;
  --color-cream: #F7F5F0;
  --color-cream-deep: #EFE9DD;
  --color-paper: #FAF8F3;
  --color-sand: #E8E4DD;
  --color-sage-mist: #C8D4CC;
  --color-charcoal: #2C2C2C;
  --color-black: #1A1A1A;
  --color-gold-glow: rgba(201, 169, 110, 0.18);

  /* Atmosphere */
  --noise-bg: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");

  /* Typography */
  --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  /* Spacing Scale */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --space-3xl: 8rem;

  /* Container */
  --container-max: 1200px;
  --container-wide: 1400px;
  --container-narrow: 800px;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --duration-fast: 0.2s;
  --duration-normal: 0.4s;
  --duration-slow: 0.8s;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 24px 60px rgba(0, 0, 0, 0.16);

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

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

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

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-charcoal);
  background-color: var(--color-white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--color-accent-secondary);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}

a:hover {
  color: var(--color-primary);
}

a:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 2px;
}

button:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 2px;
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--color-black);
  line-height: 1.2;
  font-weight: 500;
  font-feature-settings: "liga", "kern", "dlig";
  text-rendering: optimizeLegibility;
}

h1 {
  font-size: clamp(2.8rem, 6vw, 5.2rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.0;
}

h2 {
  font-size: clamp(2.2rem, 4.4vw, 3.6rem);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.05;
}

h3 {
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
}

h4 {
  font-size: 1.1rem;
  font-family: var(--font-body);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-primary);
}

h1 em, h2 em, h3 em, .pillar__title em, .pillars__title em {
  font-style: italic;
  font-weight: 400;
  color: var(--color-primary);
  font-feature-settings: "liga", "dlig";
}
.hero__title em {
  /* Brighter gold than the body --color-accent so it reads on busy hero imagery. */
  color: #EFD394;
  font-style: italic;
  font-weight: 400;
}

p {
  max-width: 70ch;
}

/* --- Utility Classes --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.container--wide {
  max-width: var(--container-wide);
}

.container--narrow {
  max-width: var(--container-narrow);
}

.section {
  padding: var(--space-3xl) 0;
}

.section--cream {
  background-color: var(--color-cream);
  position: relative;
  isolation: isolate;
}
.section--cream::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--noise-bg);
  background-size: 240px 240px;
  opacity: 0.35;
  pointer-events: none;
  mix-blend-mode: multiply;
  z-index: 0;
}
.section--cream > * { position: relative; z-index: 1; }

/* --- Editorial Eyebrow Component --- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font-family: var(--font-body);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: var(--space-md);
}
.text-center .eyebrow,
.pillars__header .eyebrow { justify-content: center; }
.eyebrow__num {
  font-family: var(--font-display);
  font-size: 1rem;
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--color-accent);
  font-feature-settings: "lnum";
}
.eyebrow__divider {
  display: inline-block;
  width: 36px;
  height: 1px;
  background: currentColor;
  opacity: 0.45;
}
.eyebrow__text { display: inline-block; }
.section--dark .eyebrow,
.hero .eyebrow,
.page-hero .eyebrow { color: rgba(255, 255, 255, 0.85); }
.section--dark .eyebrow__num,
.hero .eyebrow__num,
.page-hero .eyebrow__num { color: var(--color-accent); }

.section--dark {
  background-color: var(--color-primary-dark);
  color: var(--color-white);
}

.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: var(--color-white);
}

.section--dark p {
  color: rgba(255, 255, 255, 0.85);
}

.section--navy {
  background-color: var(--color-secondary);
  color: var(--color-white);
}

.section--navy h2,
.section--navy h3 {
  color: var(--color-white);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.text-center {
  text-align: center;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: var(--space-sm) 0;
  --nav-bg-opacity: 0;
  background-color: rgba(255, 255, 255, calc(0.95 * var(--nav-bg-opacity)));
  backdrop-filter: blur(calc(20px * var(--nav-bg-opacity)));
  -webkit-backdrop-filter: blur(calc(20px * var(--nav-bg-opacity)));
  transition: box-shadow var(--duration-normal) var(--ease-out),
              padding var(--duration-normal) var(--ease-out);
}

.nav--scrolled {
  box-shadow: var(--shadow-sm);
  padding: 0.6rem 0;
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.nav__logo {
  display: flex;
  align-items: center;
}

.nav__logo-img {
  height: 110px;
  width: auto;
  transition: height var(--duration-normal) var(--ease-out),
              filter var(--duration-normal) var(--ease-out);
  filter: drop-shadow(0 0 6px rgba(255,255,255,0.9))
          drop-shadow(0 0 12px rgba(255,255,255,0.6))
          drop-shadow(0 0 2px rgba(255,255,255,1));
}

.nav--scrolled .nav__logo-img {
  height: 80px;
  filter: none;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.nav__link {
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.9);
  transition: color var(--duration-fast) var(--ease-out);
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background-color: var(--color-accent);
  transition: width var(--duration-normal) var(--ease-out);
}

.nav__link:hover::after {
  width: 100%;
}

.nav--scrolled .nav__link {
  color: var(--color-charcoal);
}

.nav__link:hover {
  color: var(--color-accent);
}

.nav__phone {
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.05em;
}

.nav--scrolled .nav__phone {
  color: var(--color-charcoal);
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.7rem;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--color-white);
  background-color: var(--color-primary);
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: transform var(--duration-fast) var(--ease-out),
              box-shadow var(--duration-fast) var(--ease-out),
              background-color var(--duration-fast) var(--ease-out);
  will-change: transform;
}

.nav__cta:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  background-color: var(--color-primary-dark);
  color: var(--color-white);
}

/* Mobile Navigation */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-white);
  transition: all var(--duration-normal) var(--ease-out);
}

.nav--scrolled .nav__hamburger span {
  background-color: var(--color-charcoal);
}

.nav__hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav__hamburger.active span:nth-child(2) {
  opacity: 0;
}

.nav__hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.nav__mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  /* Explicit viewport sizing — parent .nav uses backdrop-filter, which creates
     a containing block and would otherwise clip this overlay to nav height. */
  width: 100vw;
  height: 100dvh;
  background-color: var(--color-primary-dark);
  z-index: 1001; /* above .nav (1000) so it can fully cover the header */
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
  overflow-y: auto;
  opacity: 0;
  transition: opacity var(--duration-normal) var(--ease-out);
}

.nav__mobile-overlay.active {
  display: flex;
  opacity: 1;
}

.nav__mobile-overlay .nav__link {
  font-size: 1.5rem;
  color: var(--color-white);
}

.nav__mobile-overlay .nav__cta {
  margin-top: var(--space-md);
  font-size: 1rem;
  padding: 1rem 2rem;
}

.nav__close {
  position: absolute;
  top: max(1.2rem, env(safe-area-inset-top, 1.2rem));
  right: 1.2rem;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--color-white);
  cursor: pointer;
  padding: 0;
  border-radius: 50%;
  transition: background-color var(--duration-fast, 0.2s) var(--ease-out);
}

.nav__close:hover,
.nav__close:focus-visible {
  background-color: rgba(255, 255, 255, 0.12);
  outline: none;
}

.nav__close svg {
  width: 26px;
  height: 26px;
}

/* When the menu is open: hide hamburger + mobile bottom bar so only the
   explicit X (and the menu itself) is visible. */
body.menu-open .nav__hamburger,
body.menu-open .mobile-bottom-bar {
  display: none !important;
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: var(--color-primary-dark);
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  /* Stronger center darkening so hero copy reads cleanly over busy photos. */
  background:
    radial-gradient(ellipse at center, rgba(20, 28, 24, 0.55) 0%, rgba(20, 28, 24, 0.35) 60%, rgba(20, 28, 24, 0.65) 100%),
    linear-gradient(to bottom, rgba(15, 22, 18, 0.45) 0%, rgba(15, 22, 18, 0.25) 40%, rgba(15, 22, 18, 0.65) 100%);
  z-index: 2;
}

/* Soft fade from hero into the white scroll-animation section below */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 38vh;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0) 0%,
    rgba(247, 245, 240, 0.08) 25%,
    rgba(247, 245, 240, 0.28) 50%,
    rgba(255, 255, 255, 0.6) 75%,
    rgba(255, 255, 255, 0.92) 92%,
    rgba(255, 255, 255, 1) 100%
  );
  z-index: 2;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 900px;
  padding: 0 var(--space-md);
}

.hero__eyebrow-italic {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.6vw, 1.4rem);
  font-style: italic;
  /* Brighter gold + tighter shadow for legibility against busy hero imagery. */
  color: #E8C98A;
  margin-bottom: var(--space-sm);
  letter-spacing: 0.01em;
  font-weight: 500;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7), 0 2px 20px rgba(0, 0, 0, 0.55);
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 0.5rem 1.2rem;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-white);
  margin-bottom: var(--space-md);
}

.hero__badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-accent);
}

.hero__title {
  color: var(--color-white);
  margin-bottom: var(--space-md);
  text-shadow: 0 2px 50px rgba(0, 0, 0, 0.5), 0 0 1px rgba(0, 0, 0, 0.4);
}

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.hero__cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.hero__awards {
  position: absolute;
  bottom: var(--space-xl);
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  opacity: 0.9;
}

.hero__award-img {
  height: 70px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.8;
  transition: opacity var(--duration-fast) var(--ease-out);
}

.hero__award-img:hover {
  opacity: 1;
}

.hero__scroll-hint {
  position: absolute;
  bottom: var(--space-md);
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(45, 74, 58, 0.55);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(45, 74, 58, 0.55), transparent);
  animation: scrollPulse 2s var(--ease-in-out) infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1.15rem 2.4rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: color var(--duration-normal) var(--ease-out),
              border-color var(--duration-normal) var(--ease-out),
              box-shadow var(--duration-normal) var(--ease-out);
  text-decoration: none;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.btn--primary {
  color: var(--color-white);
  background-color: var(--color-primary-dark);
}

.btn--primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--color-accent);
  transform: translateX(-101%);
  transition: transform 0.55s var(--ease-out);
  z-index: -1;
}

.btn--primary:hover::before {
  transform: translateX(0);
}

.btn--primary:hover {
  color: var(--color-primary-dark);
  background-color: var(--color-primary-dark);
  box-shadow: var(--shadow-md);
}

.btn--secondary {
  color: var(--color-white);
  background-color: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
}

.btn--secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.8);
  color: var(--color-white);
}

.btn--outline {
  color: var(--color-primary);
  background-color: transparent;
  border: 1.5px solid var(--color-primary);
}

.btn--outline:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--accent {
  color: var(--color-black);
  background-color: var(--color-accent);
}

.btn--accent:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn__arrow {
  transition: transform var(--duration-fast) var(--ease-out);
}

.btn:hover .btn__arrow {
  transform: translateX(4px);
}

/* --- Trust Bar (Editorial) --- */
.trust-bar {
  background: linear-gradient(180deg, var(--color-paper) 0%, var(--color-white) 100%);
  border-bottom: 1px solid var(--color-sand);
  border-top: 1px solid var(--color-sand);
  padding: var(--space-2xl) 0;
}

.trust-bar__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  align-items: stretch;
}

.trust-bar__item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-md) var(--space-lg);
  gap: 0;
}

.trust-bar__item + .trust-bar__item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 18%;
  bottom: 18%;
  width: 1px;
  background: var(--color-sand);
}

.trust-bar__number {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 4vw, 3.6rem);
  font-weight: 500;
  color: var(--color-primary-dark);
  line-height: 0.9;
  font-feature-settings: "lnum", "tnum";
  margin-bottom: 0.5rem;
}

.trust-bar__divider {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--color-accent);
  margin: 0.4rem auto 0.6rem;
}

.trust-bar__label-italic {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--color-primary);
  display: block;
  margin-bottom: 3px;
  font-weight: 400;
}

.trust-bar__label {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-charcoal);
  opacity: 0.55;
  display: block;
  font-weight: 500;
}

/* --- Living Options Section --- */
.living-options__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  margin-top: var(--space-2xl);
  align-items: start;
  perspective: 1000px;
}

.living-card--offset:nth-child(2) {
  margin-top: var(--space-2xl);
}

.living-card {
  position: relative;
  border-radius: 2px;
  overflow: hidden;
  aspect-ratio: 4/5;
  cursor: pointer;
  will-change: transform;
}

.living-card__image {
  position: absolute;
  inset: 0;
}

.living-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out);
}

.living-card:hover .living-card__image img {
  transform: scale(1.04);
}

.living-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
    rgba(20,32,24,0.88) 0%,
    rgba(20,32,24,0.45) 38%,
    rgba(20,32,24,0) 65%);
  z-index: 1;
}

.living-card__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-xl);
  z-index: 2;
  color: var(--color-white);
}

.living-card__overline {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.92rem;
  color: var(--color-accent);
  margin-bottom: var(--space-xs);
  letter-spacing: 0.02em;
  font-weight: 400;
}

.living-card__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  color: var(--color-white);
  margin-bottom: var(--space-xs);
  font-weight: 500;
}

.living-card__title::after {
  content: '';
  display: block;
  width: 36px;
  height: 1px;
  background: var(--color-accent);
  margin-top: var(--space-xs);
  margin-bottom: var(--space-sm);
}

.living-card__desc {
  font-size: 0.95rem;
  opacity: 0.9;
  margin-bottom: var(--space-sm);
  max-width: 40ch;
}

.living-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  transition: gap var(--duration-fast) var(--ease-out);
}

.living-card:hover .living-card__link {
  gap: 0.7rem;
}

/* --- Difference / Features Section (Editorial) --- */
.difference__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: var(--space-2xl);
  border-top: 1px solid var(--color-sand);
  border-bottom: 1px solid var(--color-sand);
}

.difference-card {
  position: relative;
  text-align: left;
  padding: var(--space-2xl) var(--space-lg);
  border-right: 1px solid var(--color-sand);
}

.difference-card:last-child { border-right: none; }

.difference-card--featured {
  background: var(--color-paper);
}

.difference-card__number {
  position: absolute;
  top: var(--space-lg);
  right: var(--space-lg);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 5rem;
  font-weight: 400;
  color: var(--color-primary);
  opacity: 0.08;
  line-height: 1;
  pointer-events: none;
  font-feature-settings: "lnum";
}

.difference-card__icon-frame {
  width: 64px;
  height: 64px;
  border: 1px solid var(--color-sand);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
  background: var(--color-white);
  position: relative;
}

.difference-card--featured .difference-card__icon-frame {
  border-color: var(--color-accent);
}

.difference-card__icon-frame svg {
  width: 32px;
  height: 32px;
  stroke: var(--color-primary);
  fill: none;
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.difference-card__title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--color-black);
  margin-bottom: var(--space-xs);
}

.difference-card__rule {
  display: block;
  width: 28px;
  height: 1px;
  background: var(--color-accent);
  margin: var(--space-xs) 0 var(--space-md);
}

.difference-card__text {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--color-charcoal);
  opacity: 0.8;
  max-width: 32ch;
}

/* --- Gallery Section --- */
.gallery {
  padding: var(--space-3xl) 0;
  overflow: hidden;
  position: relative;
  background: var(--color-white);
}

.gallery::before, .gallery::after {
  content: '';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  height: 480px;
  width: 100px;
  pointer-events: none;
  z-index: 2;
}

@media (max-width: 768px) {
  .gallery::before, .gallery::after {
    width: 30px;
    height: 380px;
  }
}

.gallery::before {
  left: 0;
  background: linear-gradient(to right, var(--color-white) 10%, transparent);
}

.gallery::after {
  right: 0;
  background: linear-gradient(to left, var(--color-white) 10%, transparent);
}

.gallery__track {
  display: flex;
  gap: var(--space-md);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0 var(--space-md);
  margin-top: var(--space-xl);
}

.gallery__track::-webkit-scrollbar {
  display: none;
}

.gallery__item {
  flex: 0 0 auto;
  width: 360px;
  height: 460px;
  border-radius: 2px;
  overflow: hidden;
  scroll-snap-align: start;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out);
}

.gallery__item:hover img {
  transform: scale(1.05);
}

.gallery__dots {
  display: none;
}

/* --- Testimonial Section (Editorial dropcap) --- */
.testimonial {
  background: var(--color-cream);
  padding: var(--space-3xl) 0;
  position: relative;
  isolation: isolate;
}

.testimonial::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--noise-bg);
  background-size: 240px 240px;
  opacity: 0.3;
  pointer-events: none;
  mix-blend-mode: multiply;
  z-index: 0;
}

.testimonial--featured {
  background: var(--color-cream-deep);
}

.testimonial__inner {
  position: relative;
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
  padding: 0 var(--space-xl);
  z-index: 1;
}

.testimonial__dropcap {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(11rem, 22vw, 20rem);
  line-height: 0.7;
  color: var(--color-accent);
  opacity: 0.18;
  position: absolute;
  top: -0.15em;
  left: var(--space-md);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.testimonial__inner > *:not(.testimonial__dropcap) {
  position: relative;
  z-index: 1;
}

.testimonial__quote-mark { display: none; }

.testimonial__text {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  font-style: italic;
  line-height: 1.45;
  color: var(--color-primary-dark);
  font-weight: 400;
  max-width: 38ch;
  margin: var(--space-2xl) auto var(--space-lg);
}

.testimonial__author {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--color-primary);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
}

.testimonial__author::before {
  content: '— ';
  color: var(--color-accent);
}

.testimonial__role {
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-charcoal);
  opacity: 0.5;
  margin-top: 0.4rem;
}

/* --- Three Pillars Section (replaces removed nano + stats) --- */
.pillars {
  background: var(--color-cream);
  padding: var(--space-3xl) 0;
}

.pillars__header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto var(--space-3xl);
}

.pillars__title {
  font-size: clamp(2.2rem, 4.6vw, 3.8rem);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.05;
}

.pillars__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  position: relative;
}

.pillar {
  text-align: center;
  padding: 0 var(--space-md);
  position: relative;
}

.pillar__numeral {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 3.4rem;
  font-weight: 400;
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: var(--space-sm);
  font-feature-settings: "lnum";
}

.pillar__title {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 500;
  color: var(--color-black);
  margin-bottom: var(--space-sm);
  line-height: 1.2;
}

.pillar + .pillar::before {
  content: '';
  position: absolute;
  left: calc(var(--space-xl) / -2);
  top: 18%;
  bottom: 18%;
  width: 1px;
  background: var(--color-sand);
}

.pillar__body {
  font-size: 0.96rem;
  line-height: 1.7;
  color: var(--color-charcoal);
  opacity: 0.78;
  max-width: 30ch;
  margin: 0 auto;
}

/* --- CTA / Contact Section --- */
.cta-section {
  padding: var(--space-3xl) 0;
  background-color: var(--color-white);
}

.cta-section__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: start;
}

.cta-section__info h2 {
  margin-bottom: var(--space-md);
}

.cta-section__details {
  margin-top: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.cta-section__detail {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
}

.cta-section__detail-icon {
  width: 24px;
  height: 24px;
  color: var(--color-primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.cta-section__detail-icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}

.contact-form {
  background-color: var(--color-cream);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
}

.contact-form__title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin-bottom: var(--space-md);
  color: var(--color-black);
}

.form-group {
  margin-bottom: var(--space-sm);
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-charcoal);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.8rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-charcoal);
  background-color: var(--color-white);
  border: 1.5px solid var(--color-sand);
  border-radius: var(--radius-sm);
  transition: border-color var(--duration-fast) var(--ease-out),
              box-shadow var(--duration-fast) var(--ease-out);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(77, 115, 93, 0.1);
}

.form-group textarea {
  min-height: 100px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
}

.form-group input.invalid,
.form-group textarea.invalid,
.form-group select.invalid {
  border-color: #c0392b;
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.1);
}

.form-error {
  font-size: 0.78rem;
  color: #c0392b;
  margin-top: 0.3rem;
}

.form-status {
  margin-top: var(--space-sm);
  padding: 1rem 1.2rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  display: none;
}

.form-status--success {
  display: block;
  background-color: rgba(77, 115, 93, 0.1);
  color: var(--color-primary-dark);
  border: 1px solid var(--color-primary);
}

.form-status--error {
  display: block;
  background-color: rgba(192, 57, 43, 0.08);
  color: #c0392b;
  border: 1px solid #c0392b;
}

.btn--loading {
  pointer-events: none;
  opacity: 0.7;
}

/* --- Footer --- */
.footer {
  background-color: var(--color-primary-dark);
  color: rgba(255, 255, 255, 0.6);
  padding: var(--space-3xl) 0 var(--space-lg);
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 1px;
  background: var(--color-accent);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.footer__brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-style: italic;
  font-weight: 500;
  color: var(--color-white);
  margin-bottom: var(--space-sm);
}

.footer__desc {
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 30ch;
}

.footer__title {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-white);
  margin-bottom: var(--space-sm);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer__link {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--duration-fast) var(--ease-out);
}

.footer__link:hover {
  color: var(--color-accent);
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8rem;
}

.footer__social {
  display: flex;
  gap: var(--space-sm);
}

.footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
  transition: all var(--duration-fast) var(--ease-out);
}

.footer__social a:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.footer__social svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* --- Assisted Living Page --- */
.page-hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background-color: var(--color-primary-dark);
}

.page-hero__bg {
  position: absolute;
  inset: 0;
}

.page-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,26,26,0.8) 0%, rgba(26,26,26,0.1) 60%);
}

.page-hero__content {
  position: relative;
  z-index: 2;
  padding: var(--space-2xl) var(--space-md);
  max-width: var(--container-max);
  margin: 0 auto;
  width: 100%;
}

.page-hero__title {
  color: var(--color-white);
  margin-bottom: var(--space-sm);
}

.page-hero__subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 60ch;
}

/* --- Icon Feature List --- */
.features__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg) var(--space-2xl);
  margin-top: var(--space-xl);
}

.feature-item {
  display: flex;
  gap: var(--space-sm);
}

.feature-item__icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  color: var(--color-primary);
}

.feature-item__icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}

.feature-item__content h3 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
  color: var(--color-black);
}

.feature-item__content p {
  font-size: 0.9rem;
  opacity: 0.75;
}

/* --- Program Callout --- */
.program-callout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
  padding: var(--space-3xl) 0;
}

.program-callout__image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
}

.program-callout__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.program-callout__content h4 {
  margin-bottom: var(--space-xs);
}

.program-callout__content h2 {
  margin-bottom: var(--space-md);
}

.program-callout__content p {
  margin-bottom: var(--space-lg);
  opacity: 0.8;
}

/* --- Map Section --- */
.map-section {
  height: 400px;
  width: 100%;
  background-color: var(--color-sand);
}

.map-section iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
  }
}

@media (max-width: 768px) {
  .section {
    padding: var(--space-2xl) 0;
  }

  .nav__logo-img {
    height: 56px;
  }

  .nav--scrolled .nav__logo-img {
    height: 48px;
  }

  .nav__links {
    display: none;
  }

  .nav__phone {
    display: none;
  }

  .nav__hamburger {
    display: flex;
  }

  .hero {
    min-height: 90vh;
  }

  .trust-bar__inner {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md) 0;
  }

  .trust-bar__item {
    padding: var(--space-md) var(--space-sm);
  }

  .trust-bar__item:nth-child(3)::before {
    display: none;
  }

  .difference__grid {
    grid-template-columns: 1fr;
  }

  .difference-card {
    border-right: none;
    border-bottom: 1px solid var(--color-sand);
    padding: var(--space-xl) var(--space-md);
  }

  .difference-card:last-child {
    border-bottom: none;
  }

  .pillars__grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .pillar + .pillar::before {
    display: none;
  }

  .hero__awards {
    gap: var(--space-sm);
    bottom: var(--space-lg);
  }

  .hero__award-img {
    height: 50px;
  }

  .living-options__grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .living-card--offset:nth-child(2) {
    margin-top: 0;
  }

  .living-card {
    aspect-ratio: 3/4;
  }

  .gallery__item {
    width: 280px;
    height: 380px;
  }

  .gallery__dots {
    display: flex;
    justify-content: center;
    gap: var(--space-xs);
    padding: var(--space-md) var(--space-md) 0;
    z-index: 3;
    position: relative;
  }

  .gallery__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--color-sand);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background-color var(--duration-fast) var(--ease-out),
                transform var(--duration-fast) var(--ease-out);
    flex-shrink: 0;
  }

  .gallery__dot--active {
    background-color: var(--color-accent);
    transform: scale(1.25);
  }

  .cta-section__inner {
    grid-template-columns: 1fr;
  }

  .program-callout {
    grid-template-columns: 1fr;
  }

  .features__grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .footer__bottom {
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
  }

}

@media (max-width: 480px) {
  :root {
    --space-3xl: 5rem;
    --space-2xl: 3.5rem;
  }

  .hero__scroll-hint {
    display: none;
  }

  .hero__cta-group {
    flex-direction: column;
    width: 100%;
  }

  .hero__cta-group .btn {
    width: 100%;
    justify-content: center;
  }
}

/* --- Mobile Bottom Bar --- */
.mobile-bottom-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 998;
  background-color: var(--color-white);
  box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.1);
  padding: 0.8rem var(--space-md);
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.mobile-bottom-bar--visible {
  transform: translateY(0);
}

.mobile-bottom-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
}

.mobile-bottom-bar__phone {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--color-charcoal);
}

.mobile-bottom-bar__phone svg {
  width: 18px;
  height: 18px;
  stroke: var(--color-primary);
  fill: none;
  stroke-width: 2;
}

.mobile-bottom-bar .btn {
  flex: 1;
  justify-content: center;
  padding: 0.8rem;
}

@media (max-width: 768px) {
  .mobile-bottom-bar {
    display: block;
  }

  body.bottom-bar-active {
    padding-bottom: 70px;
  }
}

/* --- Split-text word reveal --- */
h2 .word {
  display: inline-block;
}

/* --- Prefers Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .hero__scroll-line {
    animation: none;
  }
}

/* --- Reveal animations (JS-gated so content stays visible without JS) --- */
.reveal {
  opacity: 1;
  transform: none;
}

body.js-enabled .reveal {
  opacity: 0;
  transform: translateY(14px);
}

body.js-enabled .reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* --- Page Hero Short (Contact) --- */
.page-hero--short {
  min-height: 45vh;
}

/* --- FAQ Accordion --- */
.faq__item {
  border-bottom: 1px solid var(--color-sand);
}

.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) 0;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--color-black);
  list-style: none;
  transition: color var(--duration-fast) var(--ease-out);
}

.faq__question::-webkit-details-marker {
  display: none;
}

.faq__question::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--color-primary);
  transition: transform var(--duration-normal) var(--ease-out);
  flex-shrink: 0;
  margin-left: var(--space-sm);
}

details[open] .faq__question::after {
  content: '\2212';
  transform: rotate(180deg);
}

.faq__question:hover {
  color: var(--color-primary);
}

.faq__answer {
  padding-bottom: var(--space-md);
  color: var(--color-charcoal);
  line-height: 1.8;
}

.faq__answer p {
  max-width: 65ch;
}

@media (max-width: 768px) {
  .faq__question {
    font-size: 1.1rem;
  }

  .page-hero--short {
    min-height: 35vh;
  }
}

/* ============================================
   3D SCROLL-DRIVEN ANIMATION
   ============================================ */

/* --- Frame Loader --- */
#frameLoader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background-color: var(--color-primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease;
}

#frameLoader.loaded {
  opacity: 0;
  pointer-events: none;
}

.frame-loader__content {
  text-align: center;
}

.frame-loader__logo {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 500;
  color: var(--color-white);
  margin-bottom: var(--space-md);
  letter-spacing: 0.02em;
}

.frame-loader__text {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: var(--space-sm);
}

.frame-loader__bar-track {
  width: 200px;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 100px;
  margin: 0 auto;
  overflow: hidden;
}

.frame-loader__bar-fill {
  width: 0%;
  height: 100%;
  background: var(--color-accent);
  border-radius: 100px;
  transition: width 0.3s ease;
}

/* --- Scroll Progress Bar --- */
#scrollProgress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-secondary));
  z-index: 10000;
  transition: width 0.1s linear;
}

/* --- Scroll Animation Section --- */
.scroll-animation {
  height: 500vh;
  position: relative;
  background-color: var(--color-white);
}

.scroll-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
}

#frameCanvas {
  position: absolute;
  top: 0;
  left: 0;
}

/* --- Annotation Cards --- */
.annotation-card {
  position: absolute;
  bottom: 8vh;
  left: 5vw;
  max-width: 380px;
  background: rgba(45, 74, 58, 0.96);
  border: 1px solid rgba(201, 169, 110, 0.3);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 2px;
  padding: 32px 36px;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
  z-index: 10;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.35);
}

.annotation-card.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.annotation-card__number {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.annotation-card__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-style: italic;
  font-weight: 500;
  color: var(--color-white);
  margin-bottom: 8px;
  line-height: 1.3;
}

.annotation-card__desc {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  margin-bottom: 18px;
  max-width: none;
}

.annotation-card__stat {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 14px;
}

.annotation-card__stat-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--color-accent);
  display: block;
  line-height: 1.1;
}

.annotation-card__stat-label {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.5);
  display: block;
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* --- Scroll Animation Responsive --- */
@media (max-width: 1024px) {
  .scroll-animation {
    height: 400vh;
  }
}

@media (max-width: 768px) {
  .scroll-animation {
    height: 300vh;
  }

  .annotation-card {
    bottom: 2vh;
    left: 3vw;
    right: 3vw;
    max-width: none;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    border-radius: var(--radius-lg);
  }

  .annotation-card__desc,
  .annotation-card__stat {
    display: none;
  }

  .annotation-card__number {
    margin-bottom: 0;
    font-size: 0.65rem;
  }

  .annotation-card__title {
    font-size: 1rem;
    margin-bottom: 0;
  }
}
