/* Shared styles — every page loads this first, then its own stylesheet */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg: #F5F5F5;
  --bg-dark: #000000;
  --bg-card: #EBEBEB;
  --bg-warm: #111111;
  --fg: #111111;
  --fg2: #666666;
  --fg3: #999999;
  --warm: #111111;
  --warm-dark: #333333;
  --warm-light: #E8E8E8;
  --bd: #DDDDDD;
  --sans: 'Inter', -apple-system, sans-serif;
  --serif: 'Instrument Serif', Georgia, serif;
}
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
section[id] { scroll-margin-top: 64px; }
body { background: var(--bg); color: var(--fg); font-family: var(--sans); font-weight: 400; line-height: 1.5; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
.container { max-width: 1240px; margin: 0 auto; padding: 0 40px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* NAV */
nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 40px; height: 64px;
  background: rgba(245,245,245,0.85);
  backdrop-filter: blur(20px) saturate(1.4); -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--bd);
  transition: box-shadow 0.3s ease;
}
nav.scrolled { box-shadow: 0 8px 24px rgba(0,0,0,0.06); }
.nav-logo { display: block; transition: opacity 0.2s; }
.nav-logo:hover { opacity: 0.65; }
.nav-logo img { height: 26px; display: block; }
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a { position: relative; font-size: 11px; font-weight: 500; letter-spacing: 0.1em; text-transform: capitalize; color: #666; transition: color 0.2s; padding: 4px 0; }
.nav-links a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--fg); transform: scaleX(0); transform-origin: left; transition: transform 0.3s cubic-bezier(0.22, 0.61, 0.36, 1); }
.nav-links a:hover, .nav-links a.active { color: var(--fg); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-actions { display: flex; gap: 20px; align-items: center; }
.nav-signin { font-size: 13px; color: #666; transition: color 0.2s; }
.nav-signin:hover { color: var(--fg); }
.btn-nav { display: inline-flex; align-items: center; font-size: 13px; font-weight: 500; padding: 9px 22px; border-radius: 4px; background: #111; color: #fff; transition: background 0.2s, transform 0.2s; border: none; cursor: pointer; font-family: var(--sans); }
.btn-nav:hover { background: #333; transform: translateY(-1px); }

/* Nav — menu toggle and the Sign in row it reveals; both only show in the mobile layout */
.nav-links-signin { display: none; }
.nav-toggle { display: none; position: relative; width: 44px; height: 44px; }
.nav-toggle span { position: absolute; left: 12px; right: 12px; top: 50%; height: 1.5px; margin-top: -1px; background: var(--fg); transition: transform 0.3s cubic-bezier(0.22, 0.61, 0.36, 1); }
.nav-toggle span:first-child { transform: translateY(-3.5px); }
.nav-toggle span:last-child { transform: translateY(3.5px); }
.menu-open .nav-toggle span:first-child { transform: rotate(45deg); }
.menu-open .nav-toggle span:last-child { transform: rotate(-45deg); }

/* BUTTONS */
.btn { font-family: var(--sans); font-size: 14px; font-weight: 500; padding: 14px 32px; border-radius: 4px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: all 0.2s; white-space: nowrap; letter-spacing: 0.01em; }
.btn-solid { background: #111; color: #fff; border: none; }
.btn-solid:hover { background: #333; transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--fg); border: 1.5px solid var(--fg); }
.btn-outline:hover { background: var(--fg); color: var(--bg); }
.btn-outline-light { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,0.35); }
.btn-outline-light:hover { border-color: rgba(255,255,255,0.8); }
.btn-light { background: #F7F4EF; color: #111; border: none; }
.btn-light:hover { background: #fff; transform: translateY(-1px); }

/* HERO — dark, dramatic */
.hero {
  background: var(--bg-dark); color: #F7F4EF;
  padding: 140px 40px 120px; text-align: center; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 50% at 50% 110%, rgba(200,120,58,0.18) 0%, transparent 70%);
  pointer-events: none;
  animation: heroGlow 14s ease-in-out infinite alternate;
}
@keyframes heroGlow {
  from { opacity: 0.85; transform: scale(1); }
  to { opacity: 1; transform: scale(1.07); }
}
.hero-eyebrow { font-family: var(--serif); font-style: italic; font-size: 22px; color: #666; margin-bottom: 24px; display: block; }
.hero h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(60px, 10vw, 140px);
  line-height: 0.95; letter-spacing: -0.03em;
  margin-bottom: 36px; max-width: 1100px; margin-left: auto; margin-right: auto;
}
.hero h1 em, .section-title em, .final-cta h2 em {
  font-style: italic;
  background: linear-gradient(135deg, #888 0%, #C8783A 20%, #FF2D78 45%, #E8C547 70%, #7B8FB0 90%, #888 100%);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 8s ease infinite;
}
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.hero-sub {
  font-size: clamp(17px, 1.6vw, 21px); font-weight: 300;
  line-height: 1.55; color: rgba(247,244,239,0.55);
  max-width: 560px; margin: 0 auto 52px;
  text-wrap: balance;
}
.hero-cta { display: flex; gap: 14px; justify-content: center; margin-bottom: 96px; flex-wrap: wrap; align-items: center; }
.signal-row {
  display: flex; justify-content: center; gap: 48px; flex-wrap: wrap;
  font-size: 11px; color: rgba(247,244,239,0.35); letter-spacing: 0.1em; text-transform: uppercase;
  padding-top: 40px; border-top: 1px solid rgba(255,255,255,0.06); max-width: 760px; margin: 0 auto;
}

/* Hero — load-in cascade */
@keyframes heroRise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: translateY(0); } }
.js .hero-eyebrow, .js .hero h1, .js .hero-sub, .js .hero-cta, .js .signal-row { animation: heroRise 0.9s cubic-bezier(0.22, 0.61, 0.36, 1) both; }
.js .hero h1 { animation-delay: 0.08s; }
.js .hero-sub { animation-delay: 0.18s; }
.js .hero-cta { animation-delay: 0.28s; }
.js .signal-row { animation-delay: 0.45s; }

/* SECTION BASICS */
.label { font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--warm); display: block; margin-bottom: 16px; }
.section-title { font-family: var(--serif); font-weight: 400; font-size: clamp(44px, 6vw, 82px); line-height: 1.01; letter-spacing: -0.025em; max-width: 900px; margin: 0 auto; }
.section-desc { font-size: 18px; color: var(--fg2); max-width: 580px; margin: 24px auto 0; line-height: 1.6; font-weight: 300; }
.section-head { text-align: center; margin-bottom: 80px; }

/* REVIEWS */
.reviews-section { background: var(--bg); padding: 130px 0; }
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--bd); margin-top: 80px; }
.review { padding: 52px 44px; background: var(--bg); display: flex; flex-direction: column; transition: background 0.2s; }
.review:hover { background: var(--bg-card); }
.review-stars { font-size: 13px; color: #00B67A; letter-spacing: 5px; margin-bottom: 28px; }
.tp-rating { display: inline-flex; align-items: baseline; gap: 12px; margin-top: 34px; }
.tp-rating-star { color: #00B67A; font-size: 14px; }
.tp-rating-label { font-size: 11px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg2); transition: color 0.25s; }
.tp-rating-word { position: relative; font-family: var(--serif); font-style: italic; font-size: 27px; line-height: 1; color: var(--fg); padding: 0 2px; }
.tp-rating-word::after { content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: #00B67A; transform: scaleX(0); transform-origin: left; transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1); }
.tp-rating:hover .tp-rating-label { color: var(--fg); }
.tp-rating:hover .tp-rating-word::after { transform: scaleX(1); }
.reviews-footer { text-align: center; margin-top: 48px; }
.tp-all-link { font-size: 14px; color: #111; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; border-bottom: 1px solid var(--fg); padding-bottom: 2px; }
.tp-all-link::after { content: '→'; }
.review-quote { font-family: var(--serif); font-size: 27px; font-weight: 400; line-height: 1.25; letter-spacing: -0.015em; margin-bottom: 44px; flex: 1; text-indent: -0.4em; }
.review-quote::before { content: '“'; }
.review-quote::after { content: '”'; }
.review-author { display: flex; align-items: center; gap: 14px; padding-top: 28px; border-top: 1px solid var(--bd); }
.review-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--fg); color: var(--bg); display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 18px; flex-shrink: 0; }
.review-name { font-size: 14px; font-weight: 500; }
.review-role { font-size: 12px; color: var(--fg2); margin-top: 3px; }

/* Reviews — scroll reveal */
.js .review { opacity: 0; transform: translateY(28px); transition: opacity 0.8s cubic-bezier(0.22, 0.61, 0.36, 1), transform 0.8s cubic-bezier(0.22, 0.61, 0.36, 1), background 0.2s; }
.js .review:nth-child(2) { transition: opacity 0.8s cubic-bezier(0.22, 0.61, 0.36, 1) 0.1s, transform 0.8s cubic-bezier(0.22, 0.61, 0.36, 1) 0.1s, background 0.2s; }
.js .review:nth-child(3) { transition: opacity 0.8s cubic-bezier(0.22, 0.61, 0.36, 1) 0.2s, transform 0.8s cubic-bezier(0.22, 0.61, 0.36, 1) 0.2s, background 0.2s; }
.js .review.in-view { opacity: 1; transform: translateY(0); }

/* FINAL CTA */
.final-cta { background: #ffffff; padding: 180px 40px; text-align: center; }
.final-cta h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(56px,9vw,128px); line-height: 0.95; letter-spacing: -0.03em; color: #111; margin-bottom: 32px; max-width: 1000px; margin-left: auto; margin-right: auto; }
.final-cta p { font-size: 18px; color: #666; margin-bottom: 52px; max-width: 460px; margin-left: auto; margin-right: auto; line-height: 1.6; font-weight: 300; }
.final-cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.final-cta-signals { display: flex; gap: 36px; justify-content: center; flex-wrap: wrap; margin-top: 44px; font-size: 11px; color: #AAA; letter-spacing: 0.1em; text-transform: uppercase; }

/* Final CTA — staggered reveal */
.final-cta .reveal:nth-child(2) { transition-delay: 0.06s; }
.final-cta .reveal:nth-child(3) { transition-delay: 0.12s; }
.final-cta .reveal:nth-child(4) { transition-delay: 0.18s; }
.final-cta .reveal:nth-child(5) { transition-delay: 0.24s; }

/* Generic reveal */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s cubic-bezier(0.22, 0.61, 0.36, 1), transform 0.8s cubic-bezier(0.22, 0.61, 0.36, 1); }
.js .reveal.in-view { opacity: 1; transform: translateY(0); }

/* FOOTER */
footer { background: #080706; padding: 72px 40px 44px; }
.footer-inner { max-width: 1240px; margin: 0 auto; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 64px; gap: 48px; flex-wrap: wrap; }
.footer-logo { display: block; margin-bottom: 14px; }
.footer-logo img { height: 26px; display: block; filter: invert(1); opacity: 0.9; }
.footer-tagline { font-size: 13px; color: rgba(247,244,239,0.28); max-width: 240px; line-height: 1.55; }
.footer-cols { display: grid; grid-template-columns: repeat(4, auto); gap: 64px; }
.footer-col h4 { font-size: 11px; font-weight: 600; color: rgba(247,244,239,0.85); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 18px; }
.footer-col a { display: block; font-size: 13px; color: rgba(247,244,239,0.32); padding: 5px 0; transition: color 0.15s; }
.footer-col a:hover { color: rgba(247,244,239,0.75); }
.footer-bottom { padding-top: 32px; border-top: 1px solid rgba(255,255,255,0.05); display: flex; justify-content: space-between; font-size: 12px; color: rgba(247,244,239,0.25); gap: 20px; flex-wrap: wrap; }
.footer-bottom-links { display: flex; gap: 24px; }
.footer-bottom-links a:hover { color: rgba(247,244,239,0.55); }

/* REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
  .js .review, .js .reveal { opacity: 1; transform: none; transition: none; }
  .js .hero-eyebrow, .js .hero h1, .js .hero-sub, .js .hero-cta, .js .signal-row { animation: none; }
  .hero::before { animation: none; }
}

/* MOBILE */
@media (max-width: 900px) {
  nav { padding: 0 20px; }
  nav.menu-open { background: var(--bg); }
  .nav-links { display: none; }
  .nav-signin { display: none; }
  .nav-actions { margin-left: auto; }

  /* Menu — the toggle needs JS, so the links only become a drop-down panel when it's there */
  .js .nav-toggle { display: block; order: 1; margin: 0 -12px 0 8px; }
  .js .nav-links {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; top: 100%; left: 0; right: 0; padding: 0 20px;
    max-height: calc(100dvh - 64px); overflow-y: auto;
    background: var(--bg); border-top: 1px solid var(--bd); border-bottom: 1px solid var(--bd);
    box-shadow: 0 16px 24px rgba(0,0,0,0.06);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
  }
  /* Only opening is animated — a transition on the closed state would also flash the panel
     whenever the layout crosses over from desktop (a resize, a tablet turning to portrait) */
  .js .menu-open .nav-links { visibility: visible; opacity: 1; transform: none; transition: opacity 0.25s ease, transform 0.25s ease; }
  .nav-links li + li { border-top: 1px solid var(--bd); }
  .nav-links-signin { display: block; }
  .nav-links a { display: flex; align-items: center; min-height: 56px; padding: 0; font-size: 12px; }
  .nav-links a::after { display: none; }

  /* Hero — dramatically smaller type */
  .hero { padding: 72px 24px 64px; }
  .hero h1 { font-size: clamp(40px, 11vw, 56px); margin-bottom: 20px; }
  .hero-sub { font-size: 16px; margin-bottom: 28px; }
  .hero-cta { flex-direction: column; align-items: center; gap: 12px; margin-bottom: 48px; }
  .hero-cta .btn { width: 100%; justify-content: center; max-width: 320px; }
  .signal-row { gap: 16px; font-size: 11px; padding-top: 24px; }

  /* Sections */
  .container { padding: 0 20px; }
  .reviews-section { padding: 72px 0; }
  .final-cta { padding: 80px 24px; }
  .section-head { margin-bottom: 40px; }
  .section-title { font-size: clamp(34px, 9vw, 48px); }

  /* Reviews */
  .reviews { grid-template-columns: 1fr; }
  .review { padding: 36px 24px; }
  .review-quote { font-size: 22px; }

  /* Final CTA */
  .final-cta h2 { font-size: clamp(40px, 11vw, 56px); }
  .final-cta-actions { flex-direction: column; align-items: center; gap: 12px; }
  .final-cta-actions .btn { width: 100%; justify-content: center; max-width: 320px; }
  .final-cta-signals { gap: 14px 20px; margin-top: 32px; }

  /* Footer */
  .footer-top { flex-direction: column; gap: 32px; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 12px; }
  .footer-bottom-links { flex-wrap: wrap; gap: 14px; }
}
