/* =====================================================================
   SUM UP SAT — STYLES
   Colors, fonts, and spacing live in the :root block right below.
   Change a color there and it updates across the whole site.
   ===================================================================== */

:root {
  /* Base tones */
  --sand:      #F7F3EC;   /* main background (ivory / light sand) */
  --sand-deep: #EFE8DC;   /* alternate sections */
  --card:      #FFFCF7;   /* card surface (warm, not pure white) */
  --navy:      #0F1B2D;   /* hero, featured card, booking card */
  --navy-2:    #172840;
  --navy-deep: #0A1320;   /* footer */

  /* Brand */
  --teal:       #0E7C7B;  /* main color */
  --teal-text:  #0B6564;  /* teal for text on light backgrounds (AA) */
  --teal-light: #7FDCD3;  /* teal for text on navy (AA) */
  --teal-wash:  #E1EFEB;
  --gold:       #E8B65A;  /* accent: buttons + small highlights */
  --gold-deep:  #D9A441;
  --gold-wash:  #F6E6C4;

  /* Text */
  --ink:      #0F1B2D;
  --text:     #34404F;
  --muted:    #5E6875;
  --ivory:    #F7F3EC;
  --ivory-2:  #C9CED6;    /* body text on navy */
  --line:     rgba(15, 27, 45, .09);
  --line-dark: rgba(247, 243, 236, .12);

  /* Type */
  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --label-spacing: .16em;

  /* Shape */
  --radius-sm: 12px;
  --radius:    20px;
  --radius-lg: 28px;
  --shadow-sm: 0 1px 2px rgba(15, 27, 45, .04), 0 2px 6px rgba(15, 27, 45, .04);
  --shadow:    0 1px 2px rgba(15, 27, 45, .04), 0 6px 16px rgba(15, 27, 45, .05), 0 18px 40px rgba(15, 27, 45, .07);
  --shadow-lg: 0 2px 4px rgba(15, 27, 45, .05), 0 12px 28px rgba(15, 27, 45, .09), 0 32px 64px rgba(15, 27, 45, .12);

  /* Layout + motion */
  --container: 1140px;
  --nav-h: 84px;
  --nav-h-small: 66px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  /* Logo colors (light areas) */
  --logo-ink: #0F1B2D;
  --logo-teal: #0E7C7B;
  --logo-teal-2: #0A5E5D;
  --logo-gold: #C9922E;
  --logo-on-teal: #F7F3EC;
}

/* Logo colors when sitting on navy */
.on-dark, .site-footer, .logo-dark {
  --logo-ink: #F7F3EC;
  --logo-teal: #5CC8C0;
  --logo-teal-2: #14928F;
  --logo-gold: #E8B65A;
}
.on-dark .lg-1, .site-footer .lg-1, .logo-dark .lg-1 { --logo-teal: #14928F; --logo-teal-2: #0E7C7B; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h-small) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--sand);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-head);
  font-optical-sizing: auto;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 .5em;
  letter-spacing: -.015em;
}

p { margin: 0 0 1em; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: var(--teal-text); text-underline-offset: 3px; }
a:hover { color: var(--teal); }

:focus-visible {
  outline: 3px solid var(--gold-deep);
  outline-offset: 3px;
  border-radius: 6px;
}

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 28px; }
.container-narrow { max-width: 820px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  left: 16px; top: -60px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--gold);
  color: var(--ink);
  border-radius: var(--radius-sm);
  font-weight: 700;
  transition: top .2s;
}
.skip-link:focus { top: 12px; color: var(--ink); }

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 120;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold));
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
}

/* ---------- Logo ---------- */
.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--logo-ink);
}
.lg { display: inline-flex; align-items: center; gap: .55em; white-space: nowrap; }
.lg-mark { display: inline-flex; flex: none; }
.lg-mark svg { width: 1.75em; height: 1.75em; overflow: visible; transition: transform .4s var(--ease); }
.lg-4 .lg-mark svg { width: 1.9em; height: 1.9em; }
.lg-word { line-height: 1; }
.lg-fill { stroke-width: 0; }
.logo:hover .lg-mark svg { transform: rotate(-6deg) scale(1.04); }
.logo-fallback { font-family: var(--font-head); font-weight: 600; color: var(--logo-ink); }

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  padding: .85em 1.5em;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  letter-spacing: .01em;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: transform .25s var(--ease), box-shadow .3s var(--ease), background-color .25s, color .25s, border-color .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); transition-duration: .1s; }

.btn-gold {
  background: var(--gold);
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(15, 27, 45, .1), 0 6px 18px rgba(232, 182, 90, .28);
}
.btn-gold:hover {
  background: #EDC170;
  color: var(--ink);
  box-shadow: 0 0 0 6px rgba(232, 182, 90, .14), 0 10px 30px rgba(232, 182, 90, .45);
}

/* Shine sweep (main booking buttons) */
.btn-shine::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .55) 48%, transparent 66%);
  transform: translateX(-120%);
  pointer-events: none;
}
.btn-shine:hover::after { transition: transform .8s var(--ease); transform: translateX(120%); }
.intro-run .hero .btn-shine::after { animation: shine 1.1s var(--ease) 1.6s 1 both; }
@keyframes shine { from { transform: translateX(-120%); } to { transform: translateX(120%); } }

.btn-outline {
  background: transparent;
  color: var(--teal-text);
  border-color: rgba(14, 124, 123, .45);
}
.btn-outline:hover {
  background: var(--teal-wash);
  color: var(--teal-text);
  border-color: var(--teal);
  box-shadow: 0 8px 22px rgba(14, 124, 123, .16);
}

.btn-glass {
  background: rgba(247, 243, 236, .06);
  color: var(--ivory);
  border-color: rgba(247, 243, 236, .25);
}
.btn-glass:hover {
  background: rgba(247, 243, 236, .12);
  color: var(--ivory);
  border-color: rgba(247, 243, 236, .5);
  box-shadow: 0 0 0 6px rgba(247, 243, 236, .05), 0 10px 28px rgba(0, 0, 0, .25);
}

.btn-sm { padding: .62em 1.15em; font-size: .93rem; }
.btn-lg { padding: 1em 1.8em; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  color: var(--ink);
}
/* Frosted glass layer (kept on a pseudo-element so the mobile panel can be full height) */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(247, 243, 236, .72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 30px rgba(15, 27, 45, .06);
  opacity: 0;
  transition: opacity .35s var(--ease), background-color .35s;
}
.site-header.is-scrolled::before { opacity: 1; }
.site-header.on-dark { color: var(--ivory); }
.site-header.on-dark::before {
  background: rgba(15, 27, 45, .62);
  border-bottom-color: var(--line-dark);
  box-shadow: 0 8px 30px rgba(0, 0, 0, .2);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  transition: height .35s var(--ease);
}
.is-scrolled .nav { height: var(--nav-h-small); }
.is-scrolled .logo { font-size: 1.28rem; }
.logo { transition: font-size .35s var(--ease); }

.nav-menu { display: flex; align-items: center; gap: 26px; }
.nav-links { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  position: relative;
  display: block;
  padding: 8px 10px;
  color: inherit;
  font-weight: 500;
  font-size: .96rem;
  text-decoration: none;
  opacity: .86;
  transition: opacity .2s;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 10px; right: 10px; bottom: 3px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--gold-deep);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform .35s var(--ease);
}
.on-dark .nav-links a::after { background: var(--gold); }
.nav-links a:hover, .nav-links a.is-active { opacity: 1; color: inherit; }
.nav-links a:hover::after, .nav-links a.is-active::after { transform: scaleX(1); transform-origin: left center; }

.nav-toggle {
  display: none;
  position: relative;
  z-index: 3;
  width: 46px; height: 46px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.nav-toggle-bar {
  position: absolute;
  left: 12px; right: 12px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .35s var(--ease), opacity .2s;
}
.nav-toggle-bar:nth-of-type(2) { top: 16px; }
.nav-toggle-bar:nth-of-type(3) { top: 22px; }
.nav-toggle-bar:nth-of-type(4) { top: 28px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-of-type(2) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-of-type(3) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-of-type(4) { transform: translateY(-6px) rotate(-45deg); }

.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1;
  background: rgba(10, 19, 32, .45);
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s var(--ease), visibility 0s linear .35s;
}

/* ---------- Sections ---------- */
.section { padding: 112px 0; position: relative; }
.section-deep { background: var(--sand-deep); }

.section-head { text-align: center; max-width: 660px; margin: 0 auto 60px; }
.section-title { font-size: clamp(2.1rem, 4.2vw, 3rem); }
.section-sub { color: var(--muted); margin: 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  color: var(--teal-text);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: var(--label-spacing);
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1.5px;
  background: var(--gold-deep);
}
.section-head .eyebrow::after {
  content: "";
  width: 26px; height: 1.5px;
  background: var(--gold-deep);
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

/* Lift + tilt toward cursor (tilt values set by JS on desktop) */
.tilt {
  transform: perspective(900px) translateY(var(--lift, 0px)) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out);
  will-change: transform;
}
.tilt:hover { --lift: -5px; box-shadow: var(--shadow); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: calc(var(--nav-h) + 72px) 0 128px;
  overflow: hidden;
  background:
    radial-gradient(700px 480px at 82% 28%, rgba(14, 124, 123, .38), transparent 70%),
    radial-gradient(600px 420px at 8% 100%, rgba(232, 182, 90, .12), transparent 70%),
    var(--navy);
  color: var(--ivory-2);
}
.hero-pattern {
  position: absolute;
  inset: -20% 0 -20% 0;
  pointer-events: none;
  opacity: .055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cg fill='%23F7F3EC' font-family='Georgia,serif'%3E%3Ctext x='18' y='52' font-size='34'%3E%CE%A3%3C/text%3E%3Ctext x='140' y='70' font-size='26'%3E%2B%3C/text%3E%3Ctext x='88' y='136' font-size='30' font-style='italic'%3E%CF%80%3C/text%3E%3Ctext x='192' y='176' font-size='30'%3E%CE%A3%3C/text%3E%3Ctext x='36' y='206' font-size='24'%3E%2B%3C/text%3E%3C/g%3E%3C/svg%3E");
  background-size: 240px 240px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 30%, transparent 85%);
  mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 30%, transparent 85%);
  will-change: transform;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  align-items: center;
  gap: 64px;
}
.hero .eyebrow { color: var(--teal-light); }
.hero .eyebrow::before { background: var(--gold); }
.hero-title {
  font-size: clamp(2.6rem, 5.8vw, 4.4rem);
  font-weight: 600;
  letter-spacing: -.025em;
  line-height: 1.05;
  color: var(--ivory);
  margin-bottom: .5em;
}
.hero-line { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.hero-line > span { display: inline-block; }
.highlight { font-style: italic; font-weight: 500; color: var(--teal-light); }
.hero-lead { font-size: 1.2rem; max-width: 34em; color: var(--ivory-2); }
.score-pill {
  display: inline-block;
  padding: 0 .55em;
  border-radius: 999px;
  background: var(--gold);
  color: var(--ink);
  font-weight: 700;
  white-space: nowrap;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 36px 0 18px; }
.hero-note { color: #A9B2BF; font-size: .92rem; margin: 0; letter-spacing: .02em; }

.hero-visual { position: relative; display: grid; place-items: center; min-height: 400px; }
.score-card {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(320px, 100%);
  padding: 44px 32px 38px;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(247, 243, 236, .1), rgba(247, 243, 236, .03));
  border: 1px solid rgba(247, 243, 236, .16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 30px 60px rgba(0, 0, 0, .35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transform: rotate(-3deg);
}
.score-card-label {
  font-weight: 700;
  font-size: .75rem;
  letter-spacing: var(--label-spacing);
  text-transform: uppercase;
  color: #A9B2BF;
}
.score-card-number {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 6.2rem;
  line-height: 1;
  color: var(--ivory);
  margin: 10px 0 4px;
  letter-spacing: -.03em;
}
.score-card-out { color: #A9B2BF; font-size: .95rem; }
.score-bar {
  width: 100%;
  height: 6px;
  margin-top: 26px;
  border-radius: 999px;
  background: rgba(247, 243, 236, .1);
  overflow: hidden;
}
.score-bar span {
  display: block;
  height: 100%;
  width: var(--fill);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--teal-light));
  transform-origin: left;
}
.intro-run .score-bar span { animation: grow 1.2s var(--ease-out) 1.2s both; }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.float-symbol {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  border-radius: 16px;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 1.55rem;
  color: var(--ivory);
  background: rgba(247, 243, 236, .07);
  border: 1px solid rgba(247, 243, 236, .14);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .25);
  animation: float 7s ease-in-out infinite;
}
.s1 { top: 6%;  left: 8%;   background: var(--gold); color: var(--ink); border-color: transparent; }
.s2 { top: 2%;  right: 10%; animation-delay: -1.5s; color: var(--teal-light); }
.s3 { bottom: 10%; left: 2%; animation-delay: -3s; font-style: italic; }
.s4 { bottom: 4%; right: 6%; animation-delay: -4.5s; font-size: 1.2rem; color: var(--gold); }
.s5 { top: 46%; right: -2%; width: 42px; height: 42px; font-size: 1.2rem; animation-delay: -2.2s; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-9px); }
}

/* ---------- Desmos (card inside How it works) ---------- */
.desmos-card {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: 56px;
  margin-top: 26px;
  padding: 48px;
  border-radius: var(--radius-lg);
}
.desmos-title { font-size: clamp(1.7rem, 2.8vw, 2.2rem); }
.desmos-copy > p { font-size: 1.08rem; }
.desmos-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.desmos-list li { position: relative; padding-left: 34px; }
.desmos-list li::before {
  content: "";
  position: absolute;
  left: 0; top: .32em;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--teal-wash) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.6 2.6L14 7.5' fill='none' stroke='%230B6564' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat;
}
.desmos-list strong { color: var(--ink); }

.graph-card {
  position: relative;
  padding: 18px;
  border-radius: var(--radius-lg);
  background: var(--sand);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  color: var(--ink);
}
.graph-exprs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.graph-expr {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 10px;
  background: var(--sand);
  border: 1px solid var(--line);
  font-family: var(--font-head);
  font-style: italic;
  font-size: .98rem;
  color: var(--ink);
}
.dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.dot-teal { background: var(--teal); }
.dot-gold { background: var(--gold-deep); }
.graph { display: block; width: 100%; height: auto; }

/* Graph draws itself when it scrolls into view */
.js .desmos-visual.reveal:not(.is-visible) .graph-draw { stroke-dasharray: 1 1; stroke-dashoffset: 1; }
.js .desmos-visual.reveal:not(.is-visible) .graph-points,
.js .desmos-visual.reveal:not(.is-visible) .graph-labels { opacity: 0; }
.desmos-visual.is-visible .graph-draw { stroke-dasharray: 1 1; animation: draw 1.2s var(--ease) .35s both; }
.desmos-visual.is-visible .graph-draw-2 { animation-delay: .7s; }
.desmos-visual.is-visible .graph-points { animation: fade .5s var(--ease) 1.6s both; }
.desmos-visual.is-visible .graph-labels { animation: fade .5s var(--ease) 1.8s both; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: .85fr 1.15fr; align-items: center; gap: 80px; }
.photo-frame {
  position: relative;
  aspect-ratio: 6 / 7;
  max-width: 440px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.photo-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%; height: 100%;
  background:
    radial-gradient(circle at 30% 18%, rgba(14, 124, 123, .55), transparent 60%),
    var(--navy);
  color: var(--ivory);
}
.photo-initials {
  display: grid;
  place-items: center;
  width: 128px; height: 128px;
  border-radius: 50%;
  border: 1.5px solid rgba(232, 182, 90, .7);
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 2.9rem;
  letter-spacing: .02em;
}
.photo-caption { font-size: .78rem; font-weight: 700; letter-spacing: var(--label-spacing); text-transform: uppercase; color: #A9B2BF; }

.about-copy p { font-size: 1.13rem; }
.about-facts { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 30px 0 0; }
.about-facts li {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--line);
  font-weight: 500;
  font-size: .94rem;
  color: var(--ink);
}

/* ---------- Credentials ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.stat-card { padding: 44px 22px 40px; text-align: center; position: relative; overflow: hidden; }
.stat-card:nth-child(4)::before { background: var(--gold); }
/* Word instead of a number (e.g. "Commended"): same height as the numbers so labels line up */
.stat-number.stat-word {
  display: flex;
  align-items: center;
  justify-content: center;
  height: clamp(3rem, 5.4vw, 3.9rem);
  font-size: clamp(1.9rem, 2.6vw, 2.35rem);
  letter-spacing: -.02em;
}
.stat-card::before {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  width: 56px; height: 3px;
  margin-left: -28px;
  border-radius: 0 0 3px 3px;
  background: var(--teal);
}
.stat-card:nth-child(2)::before { background: var(--gold); }
.stat-number {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(3rem, 5.4vw, 3.9rem);
  line-height: 1;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums lining-nums;
  color: var(--ink);
  margin: 0 0 14px;
}
.stat-out { font-size: .42em; color: var(--muted); margin-left: 3px; letter-spacing: 0; }
.stat-label {
  font-family: var(--font-body);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: var(--label-spacing);
  text-transform: uppercase;
  color: var(--teal-text);
  margin: 0;
}

/* ---------- Results (ready for later) ---------- */
.results-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.result-card { padding: 34px; }
.result-quote { font-family: var(--font-head); font-size: 1.2rem; color: var(--ink); }
.result-name { margin: 0; font-weight: 600; color: var(--muted); }

/* ---------- How it works ---------- */
.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.step { padding: 38px 32px; }
.step h3 { font-size: 1.45rem; }
.step p { margin: 0; }
.step-num {
  display: grid;
  place-items: center;
  width: 50px; height: 50px;
  margin-bottom: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--teal);
  color: var(--teal-text);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.3rem;
}
.step:nth-child(2) .step-num { border-color: var(--gold-deep); color: #8A6118; }
.step:nth-child(3) .step-num { background: var(--navy); border-color: var(--navy); color: var(--ivory); }

/* ---------- Pricing ---------- */
.availability {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.availability-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px var(--teal-wash); }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 410px));
  justify-content: center;
  gap: 28px;
  align-items: stretch;
}
.price-card { position: relative; display: flex; flex-direction: column; padding: 44px 36px 36px; }
.price-card-featured {
  background: linear-gradient(165deg, var(--navy-2), var(--navy));
  border-color: transparent;
  color: var(--ivory-2);
  box-shadow: var(--shadow-lg);
}
.price-card-featured .price-name,
.price-card-featured .price { color: var(--ivory); }
.price-card-featured .price-unit { color: #A9B2BF; }
.price-card-featured .price-desc { color: var(--ivory-2); }
.price-card-featured .price-desc strong { color: var(--ivory); }
.price-card-featured .price-features li::before { background: rgba(232, 182, 90, .16); color: var(--gold); }
.price-card-featured.tilt:hover { box-shadow: 0 2px 4px rgba(15, 27, 45, .08), 0 20px 40px rgba(15, 27, 45, .18), 0 40px 80px rgba(15, 27, 45, .2); }
.badge {
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  margin: 0;
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--ink);
  font-weight: 700;
  font-size: .72rem;
  letter-spacing: var(--label-spacing);
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(232, 182, 90, .35);
}
.price-name {
  font-family: var(--font-body);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: var(--label-spacing);
  text-transform: uppercase;
  color: var(--teal-text);
  margin-bottom: 14px;
}
.price-card-featured .price-name { color: var(--teal-light); }
.price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 3.3rem;
  line-height: 1.05;
  letter-spacing: -.03em;
  color: var(--ink);
}
.price-unit { font-family: var(--font-body); font-weight: 500; font-size: 1rem; letter-spacing: 0; color: var(--muted); }
.price [data-price="package"]:not(.is-set) { font-size: 1.4rem; letter-spacing: 0; opacity: .7; }
.price-features { list-style: none; padding: 0; margin: 6px 0 30px; flex-grow: 1; }
.price-features li { position: relative; padding: 7px 0 7px 32px; }
.price-features li::before {
  content: "✓";
  position: absolute;
  left: 0; top: 9px;
  display: grid;
  place-items: center;
  width: 21px; height: 21px;
  border-radius: 50%;
  background: var(--teal-wash);
  color: var(--teal-text);
  font-size: .7rem;
  font-weight: 700;
}
.pricing-footnote { text-align: center; margin: 44px 0 0; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 14px; }
.faq-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow .3s var(--ease), border-color .3s;
}
.faq-item:hover { box-shadow: var(--shadow); }
.faq-item[open] { border-color: rgba(14, 124, 123, .25); box-shadow: var(--shadow); }
.faq-item summary {
  position: relative;
  padding: 24px 68px 24px 28px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before,
.faq-item summary::after {
  /* plus / minus icon */
  content: "";
  position: absolute;
  right: 30px; top: 50%;
  width: 14px; height: 1.75px;
  margin-top: -1px;
  border-radius: 2px;
  background: var(--teal);
  transition: transform .35s var(--ease);
}
.faq-item summary::after { transform: rotate(90deg); }
.faq-item[open] summary::after { transform: rotate(0deg); }
.faq-answer { padding: 0 28px 24px; }
.faq-answer p:last-child, .faq-answer ul { margin-bottom: 0; }
.faq-answer ul { padding-left: 1.2em; }
.faq-answer li { margin: 4px 0; }

/* ---------- Contact ---------- */
.contact-card {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 56px;
  align-items: center;
  padding: 64px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(600px 400px at 0% 0%, rgba(14, 124, 123, .35), transparent 70%),
    linear-gradient(165deg, var(--navy-2), var(--navy));
  border: 0;
  color: var(--ivory-2);
  box-shadow: var(--shadow-lg);
}
.contact-card .section-title { color: var(--ivory); }
.contact-card .eyebrow { color: var(--teal-light); }
.contact-card .eyebrow::before { background: var(--gold); }
.contact-copy p { font-size: 1.13rem; margin-bottom: 30px; }
.contact-list { margin: 0; display: grid; gap: 12px; }
.contact-row {
  display: flex;
  flex-direction: column;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  background: rgba(247, 243, 236, .05);
  border: 1px solid var(--line-dark);
}
.contact-row dt {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: var(--label-spacing);
  text-transform: uppercase;
  color: #A9B2BF;
}
.contact-row dd { margin: 3px 0 0; font-weight: 600; color: var(--ivory); overflow-wrap: anywhere; }
.contact-row a { color: var(--teal-light); }
.contact-row a:hover { color: var(--ivory); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: #A9B2BF; padding: 72px 0 34px; }
.footer-grid { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 32px; }
.footer-tag { margin: 16px 0 0; max-width: 32em; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 26px; list-style: none; margin: 0; padding: 0; }
.site-footer a { color: var(--ivory); text-decoration: none; }
.site-footer a:hover { color: var(--teal-light); }
.footer-bottom { margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line-dark); font-size: .9rem; }
.footer-bottom p { margin: 0 0 6px; }
.footer-legal { color: #8D97A5; font-size: .8rem; }

/* ===================================================================
   MOTION
   =================================================================== */

/* Scroll reveal: fade + slide, staggered via --delay set in JS */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
  transition-delay: var(--delay, 0s);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* Page-load intro: logo draws in, then the hero reveals line by line.
   Elements wait hidden in .intro and play when .intro-run is added. */
.intro:not(.intro-run) [data-intro],
.intro:not(.intro-run) .hero-line > span,
.intro:not(.intro-run) .site-header .lg-word,
.intro:not(.intro-run) .site-header .lg-pop,
.intro:not(.intro-run) .site-header .lg-fade { opacity: 0; }
.intro:not(.intro-run) .site-header .lg-draw { stroke-dasharray: 1 1; stroke-dashoffset: 1; }

.intro-run .site-header .lg-pop  { animation: pop .6s var(--ease-out) both; transform-origin: center; transform-box: fill-box; }
.intro-run .site-header .lg-fade { animation: fade .6s var(--ease) .5s both; }
.intro-run .site-header .lg-draw { stroke-dasharray: 1 1; animation: draw .9s var(--ease) .1s both; }
.intro-run .site-header .lg-late { animation-delay: .55s; }
.intro-run .site-header .lg-fill { animation: draw .9s var(--ease) .1s both, fill-in .45s var(--ease) .7s both; }
.intro-run .site-header .lg-word { animation: slide-in .7s var(--ease-out) .35s both; }
.intro-run [data-intro] { animation: rise .8s var(--ease-out) var(--d, 0s) both; }
.intro-run .hero-line > span { animation: line-up .9s var(--ease-out) var(--d, 0s) both; }

@keyframes draw    { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes fill-in { from { fill-opacity: 0; stroke-width: 1.4; } to { fill-opacity: 1; stroke-width: 0; } }
@keyframes pop     { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: none; } }
@keyframes fade    { from { opacity: 0; } to { opacity: 1; } }
@keyframes slide-in { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }
@keyframes rise    { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes line-up { from { opacity: 0; transform: translateY(100%); } to { opacity: 1; transform: none; } }
/* fill-in needs the starting fill hidden */
.intro:not(.intro-run) .site-header .lg-fill { fill-opacity: 0; }

/* ===================================================================
   RESPONSIVE
   =================================================================== */
@media (max-width: 960px) {
  .hero-grid, .about-grid { grid-template-columns: 1fr; gap: 56px; }
  .desmos-card { grid-template-columns: 1fr; gap: 36px; padding: 40px 32px; max-width: 520px; margin-inline: auto; }
  .desmos-visual { width: 100%; }
  .hero { padding: calc(var(--nav-h) + 40px) 0 96px; }
  .hero-visual { min-height: 330px; }
  .about-photo { justify-self: center; width: 100%; max-width: 380px; }
  .steps { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); max-width: 640px; margin-inline: auto; }
  .contact-card { grid-template-columns: 1fr; padding: 44px 34px; gap: 40px; }
  .section { padding: 88px 0; }
}

@media (max-width: 1080px) {
  :root { --nav-h: 72px; --nav-h-small: 62px; }
  .nav-toggle { display: block; }
  .nav-menu {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    z-index: 2;
    width: min(86vw, 360px);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 22px;
    padding: calc(var(--nav-h) + 16px) 28px 32px;
    background: var(--sand);
    color: var(--ink);
    box-shadow: -24px 0 60px rgba(10, 19, 32, .25);
    transform: translateX(100%);
    visibility: hidden;
    transition: transform .45s var(--ease-out), visibility 0s linear .45s;
  }
  .nav-menu.is-open { transform: none; visibility: visible; transition: transform .45s var(--ease-out), visibility 0s; }
  .menu-open .nav-backdrop { opacity: 1; visibility: visible; transition: opacity .35s var(--ease), visibility 0s; }
  .menu-open .nav-toggle { color: var(--ink); }
  .nav-links { flex-direction: column; gap: 0; }
  .nav-links li { border-bottom: 1px solid var(--line); }
  .nav-links a { padding: 15px 2px; font-family: var(--font-head); font-size: 1.35rem; font-weight: 500; opacity: 1; }
  .nav-links a::after { left: 2px; right: auto; width: 32px; bottom: 10px; }
  .nav-menu .btn { width: 100%; padding: 1em 1.2em; }
  /* stagger links as the panel slides in */
  .nav-menu li, .nav-menu .btn { opacity: 0; transform: translateX(16px); transition: opacity .35s var(--ease), transform .45s var(--ease-out); }
  .nav-menu.is-open li, .nav-menu.is-open .btn { opacity: 1; transform: none; }
  .nav-menu.is-open li:nth-child(1) { transition-delay: .08s; }
  .nav-menu.is-open li:nth-child(2) { transition-delay: .12s; }
  .nav-menu.is-open li:nth-child(3) { transition-delay: .16s; }
  .nav-menu.is-open li:nth-child(4) { transition-delay: .2s; }
  .nav-menu.is-open li:nth-child(5) { transition-delay: .24s; }
  .nav-menu.is-open li:nth-child(6) { transition-delay: .28s; }
  .nav-menu.is-open li:nth-child(7) { transition-delay: .32s; }
  .nav-menu.is-open .btn { transition-delay: .36s; }
}

@media (max-width: 720px) {
  .pricing-grid { grid-template-columns: minmax(0, 440px); }
  .pricing-grid .price-card-featured { order: -1; }
}

@media (max-width: 560px) {
  .container { padding: 0 18px; }
  body { font-size: 1rem; }
  .stat-grid { grid-template-columns: 1fr; max-width: 420px; }
  .logo { font-size: 1.22rem; }
  .is-scrolled .logo { font-size: 1.15rem; }
  .hero-lead { font-size: 1.07rem; }
  .hero-actions .btn { width: 100%; }
  .score-card-number { font-size: 4.8rem; }
  .float-symbol { width: 46px; height: 46px; font-size: 1.3rem; border-radius: 13px; }
  .s5 { display: none; }
  .section { padding: 72px 0; }
  .section-head { margin-bottom: 44px; }
  .price-card { padding: 40px 24px 28px; }
  .contact-card { padding: 36px 22px; }
  .desmos-card { padding: 30px 20px; }
  .graph-card { padding: 12px; }
  .faq-item summary { padding: 20px 58px 20px 20px; font-size: 1.08rem; }
  .faq-item summary::before, .faq-item summary::after { right: 22px; }
  .faq-answer { padding: 0 20px 20px; }
}

/* ===================================================================
   REDUCED MOTION: turn animations and transitions off
   =================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .tilt, .tilt:hover, .btn:hover { transform: none; }
  .hero-pattern { transform: none !important; }
}

/* Keep nav labels on one line */
.nav-links a, .nav-menu .btn { white-space: nowrap; }

/* Link inside the hero sentence (Desmos) */
.hero-link { color: var(--teal-light); text-decoration: underline; text-decoration-color: rgba(127, 220, 211, .45); text-underline-offset: 4px; transition: color .2s, text-decoration-color .2s; }
.hero-link:hover { color: var(--ivory); text-decoration-color: var(--gold); }

/* Pricing card buttons (Pay + free-call link) */
.price-actions { display: grid; gap: 14px; }
.price-alt {
  justify-self: center;
  font-size: .95rem;
  font-weight: 600;
  color: var(--teal-text);
  text-decoration: underline;
  text-decoration-color: rgba(14, 124, 123, .35);
  text-underline-offset: 4px;
}
.price-alt:hover { color: var(--teal); text-decoration-color: currentColor; }
.price-card-featured .price-alt { color: var(--teal-light); text-decoration-color: rgba(127, 220, 211, .4); }
.price-card-featured .price-alt:hover { color: var(--ivory); }

/* Cancellation policy note (under pricing) */
.policy-note {
  max-width: 620px;
  margin: 14px auto 0;
  text-align: center;
  font-size: .92rem;
  color: var(--muted);
}
.policy-note strong { color: var(--ink); }

/* Footer Instagram icon */
.footer-social {
  display: inline-grid;
  place-items: center;
  width: 40px; height: 40px;
  margin-top: 16px;
  border-radius: 12px;
  border: 1px solid var(--line-dark);
  color: var(--ivory);
  transition: background-color .2s, color .2s, transform .25s var(--ease);
}
.site-footer .footer-social:hover { background: rgba(247, 243, 236, .08); color: var(--gold); transform: translateY(-2px); text-decoration: none; }
