/* =========================================================
   SethRicks.org — editorial light theme
   Bone paper · warm ink · electric cobalt · vermilion
   ========================================================= */

/* ---------- Self-hosted core fonts (latin, variable) ----------
   The four always-used families are served same-origin so the LCP text swaps in fast —
   no third-party CSS hop, files preloaded from index.html. Fraunces + Playfair Display
   (Summer/Music vibes only) still come from Google Fonts on demand. */
@font-face {
  font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("/assets/fonts/manrope-var.woff2?v=1") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/assets/fonts/instrument-serif.woff2?v=1") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("/assets/fonts/instrument-serif-italic.woff2?v=1") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/assets/fonts/inter-var.woff2?v=1") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono"; font-style: normal; font-weight: 100 800; font-display: swap;
  src: url("/assets/fonts/jetbrains-mono-var.woff2?v=1") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Metric-matched local fallbacks — text lays out on (almost) the same grid before and after the
   webfont swap, so the swap doesn't re-wrap the hero and shift the page (CLS). */
@font-face { font-family: "Manrope-fb"; src: local("Arial"); size-adjust: 103%; ascent-override: 104%; descent-override: 29%; line-gap-override: 0%; }
/* Inter's fallback deliberately overshoots (size-adjust 109%): the swap can only SHRINK the text,
   and a shrinking paint never re-records LCP — so body copy doesn't need a preload. */
@font-face { font-family: "Inter-fb"; src: local("Arial"); size-adjust: 109%; ascent-override: 88.5%; descent-override: 22%; line-gap-override: 0%; }
@font-face { font-family: "InstrumentSerif-fb"; src: local("Georgia"); size-adjust: 94%; ascent-override: 96%; descent-override: 26%; line-gap-override: 0%; }

:root {
  /* Palette — warm paper, NOT cold AI white */
  --paper: #f1ede4;
  --paper-2: #e9e3d6;
  --surface: #faf8f2;
  --ink: #16130f;
  --ink-soft: #595149;
  --ink-faint: #8a8073;
  --line: rgba(22, 19, 15, 0.12);
  --line-soft: rgba(22, 19, 15, 0.07);

  /* Accents — editorial complementary pair */
  --cobalt: #2540e0;
  --cobalt-deep: #1c33c0;
  --vermilion: #e2492a;
  --vermilion-soft: #ef6845;

  --accent: var(--cobalt);
  --glow-cobalt: rgba(37, 64, 224, 0.36);
  --glow-verm: rgba(226, 73, 42, 0.34);

  --shadow-sm: 0 1px 3px rgba(22, 19, 15, 0.05), 0 6px 16px -10px rgba(22, 19, 15, 0.12);
  --shadow-md: 0 18px 40px -24px rgba(22, 19, 15, 0.28);
  --shadow-lg: 0 40px 80px -36px rgba(22, 19, 15, 0.36);
  --shadow-card: 0 26px 60px -32px rgba(22, 19, 15, 0.32);

  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 22px;

  --font-display: "Manrope", "Manrope-fb", system-ui, sans-serif;
  --font-serif: "Instrument Serif", "InstrumentSerif-fb", Georgia, serif;
  --font-body: "Inter", "Inter-fb", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --maxw: 1240px;
  --ease: cubic-bezier(0.19, 1, 0.22, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; min-width: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; width: 100%; max-width: 100%; overflow-x: clip; }

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: none;
}

/* warm ambient wash */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(50vw 50vw at 8% -8%, rgba(37, 64, 224, 0.07), transparent 60%),
    radial-gradient(46vw 46vw at 98% 4%, rgba(226, 73, 42, 0.06), transparent 60%);
}

a { color: inherit; text-decoration: none; }
img, svg, canvas { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.018em; line-height: 1.07; }
em { font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: 0; }

::selection { background: var(--cobalt); color: #fff; }

/* ---------- Film grain ---------- */
.grain {
  position: fixed; inset: -50%; z-index: 9000; pointer-events: none; opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 8s steps(6) infinite; mix-blend-mode: multiply;
}
@keyframes grain {
  0%,100% { transform: translate(0,0); } 10% { transform: translate(-5%,-5%); }
  30% { transform: translate(3%,-8%); } 50% { transform: translate(-4%,4%); }
  70% { transform: translate(5%,3%); } 90% { transform: translate(-3%,6%); }
}

.scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0%; z-index: 1000;
  background: var(--cobalt);
}

/* ---------- Vertical spine ---------- */
.spine {
  position: fixed; left: 22px; top: 50%; transform: translateY(-50%) rotate(180deg); z-index: 800;
  writing-mode: vertical-rl; display: flex; align-items: center; gap: 16px;
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .25em; color: var(--ink-faint);
  text-transform: uppercase; pointer-events: none;
}
.spine i { width: 1px; height: 60px; background: var(--line); }
@media (max-width: 1100px) { .spine { display: none; } }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(38px); }
.reveal.in { opacity: 1; transform: none; transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal[data-delay="1"].in { transition-delay: .08s; }
.reveal[data-delay="2"].in { transition-delay: .16s; }
.reveal[data-delay="3"].in { transition-delay: .24s; }
.reveal[data-delay="4"].in { transition-delay: .32s; }
/* The hero enters via pure CSS so first paint never waits for script.js to download and run
   (JS-gated reveals kept for everything below the fold). The JS observer still adds .in later,
   but the element is already at its final state, so nothing re-animates. */
.hero .reveal { opacity: 1; transform: none; animation: heroEnter 1s var(--ease) both; }
.hero .reveal[data-delay="2"] { animation-delay: .08s; }
.hero .reveal[data-delay="3"] { animation-delay: .16s; }
.hero .reveal[data-delay="4"] { animation-delay: .24s; }
/* transform-only rise (no opacity fade): text that first paints transparent is disqualified as an
   LCP candidate, which made Lighthouse report the tiny nav logo as the page's largest paint */
@keyframes heroEnter { from { transform: translateY(30px); } to { transform: none; } }

/* =========================================================
   NAV
   ========================================================= */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 900; transition: background .4s var(--ease), box-shadow .4s var(--ease); }
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 22px clamp(20px, 5vw, 56px);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.nav.scrolled {
  background: rgba(241, 237, 228, 0.78);
  backdrop-filter: blur(16px) saturate(150%); -webkit-backdrop-filter: blur(16px) saturate(150%);
  box-shadow: 0 1px 0 var(--line);
}
.nav.scrolled .nav-inner { padding-top: 13px; padding-bottom: 13px; }

.nav-logo { display: flex; align-items: center; gap: 9px; font-family: var(--font-display); font-weight: 700; font-size: 1.14rem; }
.logo-mark { color: var(--vermilion); transition: transform .5s var(--ease); display: inline-block; }
.nav-logo:hover .logo-mark { transform: rotate(180deg); }

.nav-collapse { display: contents; }
.nav-links { display: flex; gap: 4px; list-style: none; }
.nav-link {
  position: relative; padding: 8px 14px; font-size: .9rem; font-weight: 500;
  color: var(--ink-soft); transition: color .25s; display: inline-flex; align-items: baseline; gap: 6px;
}
.nl-num { font-family: var(--font-mono); font-size: .65rem; color: var(--cobalt); }
.nav-link::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px;
  background: var(--cobalt); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.nav-link:hover { color: var(--ink); }
.nav-link:hover::after { transform: scaleX(1); }

.nav-cta {
  padding: 14px 30px; font-weight: 700; font-size: 1.02rem; color: #fff;
  background: var(--ink); border-radius: 999px; position: relative; overflow: hidden;
  transition: box-shadow .3s var(--ease);
}
.nav-cta::before { content: ""; position: absolute; inset: 0; background: var(--cobalt); opacity: 0; transition: opacity .35s; }
.nav-cta span, .nav-cta { position: relative; z-index: 1; }
.nav-cta:hover { box-shadow: 0 12px 28px -8px var(--glow-cobalt); }
.nav-cta:hover::before { opacity: 1; }

/* Client login + CTA grouped at the right; login is a larger outline button to the CTA's left */
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-login {
  padding: 9px 16px; font-weight: 600; font-size: .85rem; color: var(--ink-soft);
  background: transparent; border: 1px solid var(--line); border-radius: 999px; white-space: nowrap;
  transition: background .25s var(--ease), color .25s var(--ease), box-shadow .3s var(--ease), border-color .25s var(--ease);
}
.nav-login:hover { background: var(--ink); color: var(--surface); box-shadow: 0 12px 28px -12px rgba(22, 19, 15, 0.35); }

.nav-burger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav-burger span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .3s; }

/* =========================================================
   HERO — asymmetric / editorial
   ========================================================= */
.hero {
  position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: center;
  padding: 150px clamp(22px, 7vw, 110px) 70px; overflow: hidden;
}
.hero-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 13%, #000 64%, transparent 99%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 13%, #000 64%, transparent 99%);
}
.hero-spotlight {
  position: absolute; z-index: 0; width: 620px; height: 620px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(37,64,224,0.11), rgba(226,73,42,0.06) 42%, transparent 70%);
  /* Anchored at 0/0 and placed purely via transform in viewport units: transform moves are
     CLS-exempt, and vw/svh don't reflow when the webfonts swap in (percentage offsets against
     the hero's fallback-font height caused a 0.3 layout shift). JS keeps moving it via transform. */
  left: 0; top: 0; transform: translate(calc(60vw - 50%), calc(45svh - 50%)); will-change: transform;
}
.hero-blob { position: absolute; border-radius: 50%; filter: blur(80px); z-index: 0; pointer-events: none; opacity: .32; }
.hero-blob--a { width: 340px; height: 340px; background: rgba(37,64,224,.16); top: 8%; right: 6%; animation: float1 18s ease-in-out infinite; }
.hero-blob--b { width: 260px; height: 260px; background: rgba(226,73,42,.10); bottom: 10%; left: 5%; animation: float2 20s ease-in-out infinite; }

.hero-content { position: relative; z-index: 2; max-width: 960px; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 9px; padding: 7px 16px; margin-bottom: 30px;
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .06em; color: var(--ink-soft);
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow-sm);
}
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--vermilion); position: relative; }
.pulse-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; background: var(--vermilion); opacity: .5; animation: pulse 2s var(--ease) infinite; }
@keyframes pulse { 0% { transform: scale(.6); opacity: .6; } 100% { transform: scale(2.4); opacity: 0; } }

.hero-title { font-size: clamp(2.9rem, 10.5vw, 7.4rem); margin-bottom: 30px; letter-spacing: -0.022em; line-height: 1.04; }
.hero-line { display: block; color: var(--ink); }
.hero-line--serif { font-family: var(--font-serif); font-weight: 400; letter-spacing: -0.01em; color: var(--ink-soft); font-size: .92em; }
.hero-line--serif em { color: var(--vermilion); }
.hero-rotator {
  display: block; position: relative; min-height: 1.02em; color: var(--cobalt);
}
.rotator-word { display: inline-block; }
.rotator-caret { display: inline-block; width: 4px; height: .8em; margin-left: 8px; background: var(--cobalt); vertical-align: -0.06em; animation: blink 1.1s step-end infinite; opacity: .85; }
@keyframes blink { 50% { opacity: 0; } }

.hero-sub { font-size: clamp(1.05rem, 2.2vw, 1.4rem); color: var(--ink-soft); max-width: 600px; margin-bottom: 42px; }
.hero-sub em { color: var(--ink); font-size: 1.12em; }

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-meta {
  position: relative; z-index: 2; display: flex; gap: clamp(28px, 6vw, 70px); margin-top: 60px;
  border-top: 1px solid var(--line); padding-top: 26px;
}
.hero-meta-item { display: flex; flex-direction: column; }
.hero-meta-item b { font-family: var(--font-display); font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 700; }
.hero-meta-item span { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .05em; color: var(--ink-faint); text-transform: uppercase; }

@keyframes float1 { 0%,100%{ transform: translate(0,0);} 50%{ transform: translate(-30px,40px);} }
@keyframes float2 { 0%,100%{ transform: translate(0,0);} 50%{ transform: translate(34px,-30px);} }

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 9px; justify-content: center;
  padding: 16px 30px; font-family: var(--font-display); font-weight: 600; font-size: 1rem;
  border-radius: 999px; overflow: hidden; will-change: transform;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.btn-label, .btn-arrow { position: relative; z-index: 2; }
.btn-primary { color: #fff; background: var(--ink); box-shadow: var(--shadow-md); }
.btn-primary .btn-glow { position: absolute; inset: 0; z-index: 1; background: var(--cobalt); opacity: 0; transition: opacity .4s var(--ease); }
.btn-primary:hover { box-shadow: 0 22px 50px -14px var(--glow-cobalt); transform: translateY(-2px); }
.btn-primary:hover .btn-glow { opacity: 1; }

.btn-ghost { color: var(--ink); background: transparent; border: 1.5px solid var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); transform: translateY(-2px); }
.btn-ghost .btn-arrow { transition: transform .35s var(--ease); }
.btn-ghost:hover .btn-arrow { transform: translateY(3px); }

.btn-outline { width: 100%; color: var(--ink); background: transparent; border: 1.5px solid var(--line); }
.btn-outline:hover { border-color: var(--cobalt); color: var(--cobalt); background: rgba(37,64,224,0.05); }

.ripple { position: absolute; border-radius: 50%; background: rgba(255,255,255,.45); transform: scale(0); animation: ripple .65s var(--ease); pointer-events: none; z-index: 3; }
@keyframes ripple { to { transform: scale(3.2); opacity: 0; } }

/* =========================================================
   SECTION SHELL — asymmetric heads with index numbers
   ========================================================= */
.section { max-width: var(--maxw); margin: 0 auto; padding: clamp(80px, 13vw, 160px) clamp(22px, 6vw, 64px); }
.section-head { display: grid; grid-template-columns: auto 1fr; gap: clamp(20px, 5vw, 60px); align-items: start; margin-bottom: clamp(48px, 7vw, 84px); }
.index {
  font-family: var(--font-mono); font-size: clamp(1.7rem, 4vw, 2.9rem); font-weight: 400; line-height: 1;
  color: var(--ink-faint); opacity: .4; position: relative; top: -2px; letter-spacing: -0.02em;
}
.eyebrow {
  display: inline-block; margin-bottom: 18px; font-family: var(--font-mono); font-weight: 500;
  font-size: .76rem; letter-spacing: .2em; text-transform: uppercase; color: var(--vermilion);
}
.eyebrow::before { content: "— "; }
.section-title { font-size: clamp(2.1rem, 6vw, 4rem); margin-bottom: 22px; }
.section-title em { color: var(--cobalt); }
.section-lead { font-size: clamp(1rem, 1.9vw, 1.2rem); color: var(--ink-soft); max-width: 560px; }

/* =========================================================
   WHY — tilt cards with hard offset shadow
   ========================================================= */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.tilt-card { perspective: 1000px; }
.tilt-inner {
  position: relative; height: 100%; padding: 34px 28px 32px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); overflow: hidden; transform-style: preserve-3d; will-change: transform;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), background .4s, border-color .4s;
}
.tilt-inner::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .4s; pointer-events: none;
  background: radial-gradient(440px circle at var(--mx, 50%) var(--my, 0%), rgba(37,64,224,0.08), transparent 48%);
}
.tilt-card:hover .tilt-inner { box-shadow: var(--shadow-lg); border-color: rgba(37,64,224,.35); }
.tilt-card:hover .tilt-inner::before { opacity: 1; }

.why-num { position: absolute; top: 16px; right: 20px; font-family: var(--font-mono); font-size: .8rem; color: var(--ink-faint); transform: translateZ(20px); }
.why-icon {
  width: 52px; height: 52px; border-radius: 12px; margin-bottom: 22px; display: grid; place-items: center;
  background: var(--paper-2); border: 1px solid var(--line); transform: translateZ(40px); transition: background .35s, border-color .35s;
}
.tilt-card:hover .why-icon { background: var(--cobalt); border-color: var(--cobalt); }
.why-icon svg { width: 25px; height: 25px; fill: none; stroke: var(--ink); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; transition: stroke .35s; }
.tilt-card:hover .why-icon svg { stroke: #fff; }
.tilt-inner h3 { font-size: 1.28rem; margin-bottom: 10px; transform: translateZ(28px); }
.tilt-inner p { font-size: .94rem; color: var(--ink-soft); transform: translateZ(16px); }

/* =========================================================
   SERVICES — two-up band (reuses the why-card/tilt idiom)
   ========================================================= */
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.services-grid .tilt-inner { padding: 40px 36px 38px; }
.services-grid .tilt-inner p { margin-bottom: 24px; }
.card-link {
  display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--cobalt);
  border-bottom: 1px solid transparent; transform: translateZ(20px);
  transition: border-color .3s, gap .3s var(--ease);
}
.card-link:hover { border-color: var(--cobalt); gap: 10px; }
.services-grid .btn { transform: translateZ(20px); }

/* =========================================================
   PRICING — glass cards on paper
   ========================================================= */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; align-items: center; }
.glass-card { perspective: 1200px; }
.glass-card .glass-inner {
  position: relative; height: 100%; padding: 38px 32px 36px; border-radius: var(--radius-lg);
  transform-style: preserve-3d; will-change: transform; overflow: hidden;
  background: rgba(250, 248, 242, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
  transition: box-shadow .5s var(--ease), transform .5s var(--ease);
}
.glass-card .glass-inner::after {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .4s; pointer-events: none;
  background: radial-gradient(520px circle at var(--mx,50%) var(--my,0%), rgba(37,64,224,0.09), transparent 52%);
}
.glass-card:hover .glass-inner { box-shadow: var(--shadow-lg); }
.glass-card:hover .glass-inner::after { opacity: 1; }

.glass-card--featured { z-index: 2; }
.glass-card--featured .glass-inner {
  background: var(--surface); border: 2px solid var(--cobalt);
  box-shadow: 0 40px 80px -28px var(--glow-cobalt), var(--shadow-card);
  transform: translateY(-22px);
}

.featured-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%); z-index: 5;
  padding: 7px 18px; font-family: var(--font-display); font-weight: 600; font-size: .78rem;
  color: #fff; background: var(--cobalt); border-radius: 999px; white-space: nowrap;
  box-shadow: 0 8px 20px -10px var(--glow-cobalt);
}

.price-head { margin-bottom: 24px; }
.price-icon {
  display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 16px;
  border-radius: 12px; background: var(--paper-2); border: 1px solid var(--line); transition: background .35s, border-color .35s;
}
.price-icon svg { width: 24px; height: 24px; fill: none; stroke: var(--ink); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; transition: stroke .35s; }
.glass-card:hover .price-icon { background: var(--cobalt); border-color: var(--cobalt); }
.glass-card:hover .price-icon svg { stroke: #fff; }
.glass-card--featured .price-icon { background: var(--cobalt); border-color: var(--cobalt); }
.glass-card--featured .price-icon svg { stroke: #fff; }
.price-head h3 { font-size: 1.5rem; margin-bottom: 12px; }
.price-amount { font-family: var(--font-display); font-weight: 700; font-size: 3.4rem; line-height: 1; }
.price-amount .dollar { font-size: 1.5rem; vertical-align: super; color: var(--ink-faint); margin-right: 2px; }
.price-amount .price-from { font-family: var(--font-body); font-size: .92rem; font-weight: 500; text-transform: lowercase; color: var(--ink-faint); vertical-align: super; margin-right: 6px; }
.price-tag { font-size: .9rem; color: var(--ink-faint); margin-top: 10px; font-family: var(--font-serif); font-size: 1.05rem; }

.price-features { list-style: none; margin-bottom: 22px; display: grid; gap: 11px; }
.price-features li { position: relative; padding-left: 28px; font-size: .94rem; color: var(--ink-soft); }
.price-features li::before {
  content: ""; position: absolute; left: 0; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--cobalt);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/13px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/13px no-repeat;
}
.price-features li b { color: var(--ink); font-weight: 600; }
.price-addon { font-family: var(--font-mono); font-size: .78rem; color: var(--ink-faint); margin-bottom: 22px; padding: 11px 12px; background: var(--paper-2); border-radius: var(--radius); text-align: center; }
.price-addon b { color: var(--ink); }
.price-addon .addon-note { opacity: .68; font-style: italic; margin-left: 2px; }
.price-note { text-align: center; margin-top: 42px; color: var(--ink-faint); }
.price-note a { color: var(--cobalt); font-weight: 600; border-bottom: 1px solid transparent; transition: border-color .3s; }
.price-note a:hover { border-color: var(--cobalt); }

/* Bordered, quiet band for custom/app quotes — distinct from the 3 fixed-price cards above */
.pricing-custom {
  margin-top: 42px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding: clamp(28px, 4vw, 40px) clamp(24px, 4vw, 44px);
  border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface);
}
.pricing-custom-text { max-width: 480px; }
.pricing-custom h3 { font-size: 1.3rem; margin-bottom: 6px; }
.pricing-custom p { color: var(--ink-soft); font-size: .95rem; }

/* Apps band — two flat-quote software products inside the same bordered band */
.pricing-custom--apps { flex-direction: column; align-items: stretch; gap: 0; }
.pc-head { max-width: 560px; margin-bottom: 28px; }
.pc-head h3 { font-size: 1.5rem; margin-bottom: 4px; }
.pc-products { border-top: 1px solid var(--line); }
.pc-product {
  display: flex; align-items: center; justify-content: space-between; gap: 28px;
  padding: 28px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap;
}
.pc-product-main { max-width: 480px; flex: 1 1 320px; }
.pc-product-main h4 { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.pc-product-main h4 .pc-sub { font-weight: 500; color: var(--ink-faint); font-size: .82em; }
.pc-tagline { color: var(--ink-soft); font-size: .95rem; line-height: 1.55; margin-bottom: 10px; }
.pc-care { font-family: var(--font-mono); font-size: .78rem; color: var(--ink-faint); }
.pc-care b { color: var(--ink); }
.pc-product-cta { display: flex; align-items: center; gap: 22px; flex: 0 0 auto; }
.pc-price { font-family: var(--font-display); font-weight: 700; font-size: 1.7rem; color: var(--ink); white-space: nowrap; }
.pc-price .price-from { font-size: .78rem; }
.pc-foot { color: var(--ink-faint); font-size: .82rem; line-height: 1.5; margin-top: 20px; }
.pc-foot + .pc-foot { margin-top: 8px; }

/* =========================================================
   THE WORK — stats + device showcase
   ========================================================= */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-bottom: clamp(50px, 7vw, 84px); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); box-shadow: var(--shadow-sm); }
.stat { text-align: left; padding: 32px 28px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: none; }
.stat-num { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1; color: var(--cobalt); }
.stat-label { margin-top: 8px; font-family: var(--font-mono); font-size: .76rem; color: var(--ink-faint); text-transform: uppercase; letter-spacing: .04em; }

.showcase { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 44px); box-shadow: var(--shadow-sm); }
.showcase-head { max-width: 560px; margin-bottom: 28px; }
.showcase-head h3 { font-size: 1.6rem; margin-bottom: 10px; }
.showcase-head p { color: var(--ink-soft); font-size: .95rem; }

/* ---- device-frame showcase (laptop + phone, cycling vibe screenshots) ---- */
.devices { position: relative; width: min(94%, 680px); margin: 0 auto; padding-bottom: 8px; }
.device-laptop { position: relative; width: 100%; }
.laptop-screen {
  position: relative; aspect-ratio: 16 / 10; overflow: hidden;
  background: #0a0c10; border: 12px solid #14161c; border-radius: 16px;
  box-shadow: 0 34px 70px -34px rgba(0,0,0,.55), inset 0 0 0 1px rgba(255,255,255,.05);
}
.laptop-screen .shot {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: top center;
  opacity: 0; transition: opacity .8s var(--ease);
}
.laptop-screen .shot.is-active { opacity: 1; }
.laptop-base {
  width: 116%; height: 13px; position: relative; left: 50%; transform: translateX(-50%);
  background: linear-gradient(180deg, #e8e6e0, #c1beb5); border-radius: 0 0 13px 13px;
  box-shadow: 0 16px 26px -16px rgba(0,0,0,.45);
}
.laptop-base::after { content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 14%; height: 5px; background: rgba(0,0,0,.13); border-radius: 0 0 6px 6px; }
.device-phone { position: absolute; right: -3%; bottom: -4px; width: clamp(92px, 18%, 130px); z-index: 3; }
.phone-screen {
  position: relative;
  aspect-ratio: 9 / 19.5; overflow: hidden; background: #0a0c10;
  border: 6px solid #14161c; border-radius: 22px;
  box-shadow: 0 22px 40px -18px rgba(0,0,0,.5);
}
.phone-screen .shot {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: top center;
  opacity: 0; transition: opacity .8s var(--ease);
}
.phone-screen .shot.is-active { opacity: 1; }
@media (max-width: 560px) { .device-phone { width: 92px; right: 0; } }

/* =========================================================
   CONTACT
   ========================================================= */
.contact { position: relative; overflow: hidden; }
.contact-orb { position: absolute; border-radius: 50%; filter: blur(90px); z-index: 0; pointer-events: none; }
.contact-orb--1 { width: 380px; height: 380px; background: rgba(37,64,224,.12); top: 6%; left: -6%; animation: float1 17s ease-in-out infinite; }
.contact-orb--2 { width: 320px; height: 320px; background: rgba(226,73,42,.08); bottom: 4%; right: -5%; animation: float2 19s ease-in-out infinite; }
.contact-wrap { position: relative; z-index: 2; }

.contact-form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 720px; margin: 0 auto;
  padding: clamp(28px, 4vw, 44px);
  background: rgba(250, 248, 242, 0.68); border: 1px solid var(--line); border-radius: var(--radius-lg);
  backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: var(--shadow-lg);
}
.field { position: relative; }
.field--full { grid-column: 1 / -1; }
.field input, .field select, .field textarea {
  width: 100%; padding: 18px 16px 14px; font-family: inherit; font-size: 1rem; color: var(--ink);
  background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius);
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease); outline: none; resize: vertical;
}
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%238a8073' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; cursor: pointer; }
.field label { position: absolute; left: 16px; top: 17px; font-size: 1rem; color: var(--ink-faint); pointer-events: none; transition: all .25s var(--ease); }
.field label.label-float { top: -9px; left: 12px; font-size: .72rem; background: var(--surface); padding: 0 6px; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--cobalt);
  box-shadow: 0 0 0 4px rgba(37,64,224,0.14), 0 0 22px -6px var(--glow-cobalt);
}
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label {
  top: -9px; left: 12px; font-size: .72rem; color: var(--cobalt); background: var(--surface); padding: 0 6px;
}
.field select:focus ~ label, .field select:valid ~ label { color: var(--cobalt); }

.form-status { grid-column: 1/-1; text-align: center; font-size: .92rem; min-height: 1.2em; color: var(--cobalt); font-weight: 500; }
.form-status.error { color: var(--vermilion); }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { border-top: 1px solid var(--line); background: var(--surface); overflow: hidden; }
.footer-inner { max-width: var(--maxw); margin: 0 auto; padding: 70px clamp(22px,6vw,64px) 40px; }
.footer-big {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(2.6rem, 12vw, 9rem);
  line-height: .92; letter-spacing: -0.045em; color: var(--paper-2);
  margin-bottom: 30px;
}
.footer-big span { color: var(--cobalt); opacity: .85; }
.footer-cols { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { font-weight: 500; position: relative; }
.footer-links a::after { content:""; position:absolute; left:0; right:0; bottom:-3px; height:1.5px; background: var(--cobalt); transform: scaleX(0); transform-origin:left; transition: transform .3s var(--ease); }
.footer-links a:hover::after { transform: scaleX(1); }
.footer-copy { margin-top: 22px; font-family: var(--font-mono); font-size: .76rem; color: var(--ink-faint); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 920px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .price-grid { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; }
  .glass-card--featured .glass-inner { transform: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 760px) {
  /* nav → slide-down sheet */
  .nav-inner { padding: 16px 20px; }
  .nav-collapse { display: none; }
  .nav-burger { display: flex; }
  .nav { background: rgba(241,237,228,0.82); backdrop-filter: blur(14px) saturate(150%); -webkit-backdrop-filter: blur(14px) saturate(150%); box-shadow: 0 1px 0 var(--line); }
  .nav.mobile-open { background: rgba(241,237,228,0.98); }
  .nav.mobile-open .nav-collapse {
    display: flex; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0;
    padding: 8px 20px 22px; background: rgba(241,237,228,0.98); box-shadow: 0 20px 40px -24px rgba(22,19,15,.4);
    animation: navsheet .35s var(--ease);
  }
  @keyframes navsheet { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }
  .nav.mobile-open .nav-links { display: flex; flex-direction: column; gap: 0; margin-right: 0; }
  .nav.mobile-open .nav-link { padding: 16px 2px; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav.mobile-open .nav-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
  .nav.mobile-open .nav-login, .nav.mobile-open .nav-cta { display: inline-flex; justify-content: center; padding: 15px 22px; width: 100%; }
  .nav.mobile-open .nav-burger span:nth-child(1){ transform: translateY(7px) rotate(45deg);}
  .nav.mobile-open .nav-burger span:nth-child(2){ opacity:0;}
  .nav.mobile-open .nav-burger span:nth-child(3){ transform: translateY(-7px) rotate(-45deg);}

  /* hero */
  .hero { padding: 124px 22px 64px; }
  .hero-title { font-size: clamp(2.9rem, 14vw, 4.6rem); }
  .hero-sub { font-size: 1.08rem; margin-bottom: 34px; }
  .hero-actions { flex-direction: column; align-items: stretch; gap: 12px; }
  .btn { padding: 17px 28px; font-size: 1.02rem; }
  .hero-meta { gap: 18px 30px; flex-wrap: wrap; margin-top: 46px; padding-top: 22px; }
  .hero-meta-item { flex: 0 0 auto; min-width: 26%; }
  .hero-blob--a { width: 220px; height: 220px; opacity: .6; }
  .hero-blob--b { width: 180px; height: 180px; opacity: .55; }

  /* layout */
  .why-grid { grid-template-columns: 1fr; gap: 14px; }
  .services-grid { grid-template-columns: 1fr; gap: 14px; }
  .price-grid { gap: 18px; }
  .pricing-custom { flex-direction: column; align-items: flex-start; }
  .pc-product { flex-direction: column; align-items: flex-start; gap: 16px; padding: 24px 0; }
  .pc-product-cta { width: 100%; justify-content: space-between; }
  .section-head { grid-template-columns: 1fr; gap: 8px; }
  .index { top: 0; }
  .contact-form { grid-template-columns: 1fr; gap: 14px; }
  .footer-cols { flex-direction: column; align-items: flex-start; gap: 18px; }
}
@media (max-width: 440px) {
  .section { padding-top: 72px; padding-bottom: 72px; }
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: none; border-bottom: 1px solid var(--line); padding: 24px 22px; }
  .stat:last-child { border-bottom: none; }
  .price-amount { font-size: 3rem; }
  .hero-meta-item b { font-size: 1.8rem; }
}

/* lighten the grain a touch on small screens (perf + clarity) */
@media (max-width: 760px) {
  .grain { opacity: 0.025; animation: none; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .15s !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .grain { display: none; }
}

/* =========================================================
   VIBE SWITCHER + MULTI-THEME SYSTEM
   ========================================================= */
:root { --vibe-h: 46px; }

/* smooth crossfade when the vibe changes.
   NOTE: deliberately excludes .tilt-inner/.glass-inner/.btn so their existing
   transform transitions (tilt + magnetic feel) are not clobbered. */
body, .nav, .vibe-switch, .vibe-seg, .vibe-btn,
.stat, .stats, .showcase, .contact-form, .footer, .field input, .field select,
.field textarea, .price-addon, .why-icon, .price-icon, .eyebrow, .section-title em {
  transition-property: background-color, color, border-color;
  transition-duration: .5s; transition-timing-function: var(--ease);
}

/* nav sits just below the switcher bar */
.nav { top: var(--vibe-h); }

/* ---- switcher bar ---- */
.vibe-switch {
  position: fixed; top: 0; left: 0; right: 0; z-index: 950; height: var(--vibe-h);
  display: flex; align-items: center; justify-content: center;
  background: var(--surface); border-bottom: 1px solid var(--line);
}
.vibe-inner { display: flex; align-items: center; gap: 16px; }
.vibe-label {
  font-family: "JetBrains Mono", ui-monospace, monospace; font-size: .66rem; letter-spacing: .2em;
  text-transform: uppercase; color: var(--ink-faint);
}
.vibe-seg {
  position: relative; display: flex; gap: 2px; padding: 3px;
  background: var(--paper-2); border: 1px solid var(--line); border-radius: 999px;
}
.vibe-btn {
  position: relative; z-index: 1; padding: 6px 18px; border-radius: 999px;
  font-family: "Manrope", system-ui, sans-serif; font-weight: 600; font-size: .82rem;
  color: var(--ink-soft); transition: color .35s var(--ease);
}
.vibe-btn[aria-pressed="true"] { color: #fff; }
.vibe-short { display: none; }
.vibe-thumb {
  position: absolute; top: 3px; bottom: 3px; left: 3px; width: 0; z-index: 0;
  background: var(--accent); border-radius: 999px;
  box-shadow: 0 6px 16px -8px var(--glow-cobalt);
  transition: left .42s var(--ease), width .42s var(--ease), background .5s var(--ease);
}

/* ---- summer hero photo (hidden unless summer) ---- */
.hero-photo, .hero-photo-veil { position: absolute; inset: 0; z-index: 0; opacity: 0; pointer-events: none; transition: opacity .6s var(--ease); }
/* image is attached only under [data-theme="summer"] so it never downloads on other vibes */
.hero-photo { background: center/cover no-repeat; }
.hero-photo-veil {
  background:
    linear-gradient(95deg, rgba(255,247,236,.95), rgba(255,247,236,.6) 42%, rgba(255,247,236,0) 78%),
    linear-gradient(0deg, rgba(255,247,236,.9), rgba(255,247,236,0) 42%);
}

/* ---- summer photographic band (hidden unless summer) ---- */
.summer-band { display: none; }

/* =========================================================
   THEME: PROFESSIONAL  (clean / crisp / corporate blue)
   ========================================================= */
[data-theme="pro"] {
  --paper: #ffffff; --paper-2: #f3f5f8; --surface: #ffffff;
  --ink: #0f172a; --ink-soft: #475569; --ink-faint: #94a3b8;
  --line: rgba(15, 23, 42, 0.10); --line-soft: rgba(15, 23, 42, 0.06);
  --cobalt: #2563eb; --cobalt-deep: #1d4ed8; --vermilion: #2563eb; --vermilion-soft: #3b82f6;
  --accent: #2563eb; --glow-cobalt: rgba(37, 99, 235, 0.26); --glow-verm: rgba(37, 99, 235, 0.26);
  --shadow-sm: 0 1px 2px rgba(15,23,42,.06), 0 4px 12px -8px rgba(15,23,42,.12);
  --shadow-md: 0 10px 28px -18px rgba(15,23,42,.20);
  --shadow-lg: 0 24px 56px -30px rgba(15,23,42,.26);
  --shadow-card: 0 16px 40px -26px rgba(15,23,42,.22);
  --radius: 10px; --radius-sm: 8px; --radius-lg: 12px;
  --font-display: "Inter", system-ui, sans-serif;
  --font-serif: var(--font-body);
}
/* kill decorative layers + heavy texture */
[data-theme="pro"] .grain,
[data-theme="pro"] .hero-canvas,
[data-theme="pro"] .hero-blob,
[data-theme="pro"] .hero-spotlight,
[data-theme="pro"] .hero-photo,
[data-theme="pro"] .hero-photo-veil { display: none; }
[data-theme="pro"] .hero { background: linear-gradient(180deg, #ffffff 0%, #f5f8fc 100%); }
/* neutralise the playful serif accents → clean bold */
[data-theme="pro"] em,
[data-theme="pro"] .hero-line--serif { font-family: var(--font-body); font-style: normal; font-weight: 700; }
[data-theme="pro"] .hero-line--serif { color: var(--ink-soft); }
[data-theme="pro"] .hero-line--serif em,
[data-theme="pro"] .section-title em { color: var(--accent); }
/* flat clean cards (no glass) */
[data-theme="pro"] .glass-card .glass-inner {
  background: var(--surface); backdrop-filter: none; -webkit-backdrop-filter: none;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
[data-theme="pro"] .glass-card--featured .glass-inner { border: 2px solid var(--accent); box-shadow: var(--shadow-md); }
[data-theme="pro"] .featured-badge { background: var(--accent); box-shadow: none; }
/* solid blue CTA */
[data-theme="pro"] .btn-primary { background: var(--accent); }
[data-theme="pro"] .btn-primary .btn-glow { background: var(--cobalt-deep); }
[data-theme="pro"] .contact-form { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--surface); }
[data-theme="pro"] .contact-orb { display: none; }

/* =========================================================
   THEME: SUMMER  (warm / outdoorsy / photos)
   ========================================================= */
[data-theme="summer"] {
  --paper: #fff7ec; --paper-2: #ffedd6; --surface: #fffaf3;
  --ink: #2b2018; --ink-soft: #6f5d4d; --ink-faint: #a8917c;
  --line: rgba(43, 32, 24, 0.14); --line-soft: rgba(43, 32, 24, 0.07);
  --cobalt: #ef6a3a; --cobalt-deep: #d8542a; --vermilion: #13a39c; --vermilion-soft: #33b8b0;
  --accent: #ef6a3a; --sun: #f6b53d;
  --glow-cobalt: rgba(239, 106, 58, 0.32); --glow-verm: rgba(19, 163, 156, 0.30);
  --shadow-md: 0 18px 40px -24px rgba(120, 70, 30, 0.30);
  --shadow-lg: 0 40px 80px -36px rgba(120, 70, 30, 0.34);
  --shadow-card: 0 26px 60px -32px rgba(120, 70, 30, 0.30);
  --radius: 20px; --radius-sm: 14px; --radius-lg: 26px;
}
[data-theme="summer"] .grain,
[data-theme="summer"] .hero-canvas,
[data-theme="summer"] .hero-spotlight { display: none; }
/* photo hero — heavily oversized so it can parallax dramatically on scroll (JS translates + scales) */
[data-theme="summer"] .hero-photo { background-image: url("assets/summer/lake-hq.webp"); opacity: 1; inset: -28% 0; will-change: transform; }
[data-theme="summer"] .hero-photo-veil { opacity: 1; }
/* warm sun-glow blobs */
[data-theme="summer"] .hero-blob--a { background: rgba(246, 181, 61, 0.30); opacity: .55; }
[data-theme="summer"] .hero-blob--b { background: rgba(19, 163, 156, 0.20); opacity: .5; }
/* solid warm cards (no glass) */
[data-theme="summer"] .glass-card .glass-inner {
  background: var(--surface); backdrop-filter: none; -webkit-backdrop-filter: none;
  border: 1px solid var(--line); box-shadow: var(--shadow-card);
}
[data-theme="summer"] .glass-card--featured .glass-inner { border: 2px solid var(--accent); }
[data-theme="summer"] .contact-form { background: rgba(255, 250, 243, 0.78); }
/* photographic band — inner .band-img layer is oversized + parallaxed by JS */
[data-theme="summer"] .summer-band {
  display: block; position: relative; overflow: hidden;
  height: clamp(440px, 72vh, 780px); margin: clamp(40px, 7vw, 90px) 0;
}
.summer-band .band-img {
  position: absolute; left: 0; right: 0; top: -36%; height: 172%;
  background: center/cover no-repeat; will-change: transform;
}
[data-theme="summer"] .summer-band .band-img { background-image: url("assets/summer/meadow-hq.webp"); }
[data-theme="summer"] .summer-band-overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end;
  padding: clamp(24px, 5vw, 56px); color: #fff;
  background: linear-gradient(0deg, rgba(43,32,24,.62), rgba(43,32,24,.05) 55%, rgba(43,32,24,.18));
}
.summer-band-kicker { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; opacity: .9; margin-bottom: 8px; }
.summer-band-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.6rem, 4.5vw, 3rem); max-width: 18ch; }
/* contact gets a coastal backdrop */
[data-theme="summer"] .contact { background: url("assets/summer/coast-hq.webp") center/cover no-repeat; }
[data-theme="summer"] .contact::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,247,236,.86), rgba(255,247,236,.7));
}
[data-theme="summer"] .contact-orb { display: none; }

/* =========================================================
   SWITCHER — responsive
   ========================================================= */
@media (max-width: 640px) {
  :root { --vibe-h: 44px; }
  .vibe-inner { max-width: 100%; padding: 0 8px; }
  .vibe-label { display: none; }
  .vibe-seg { max-width: 100%; }
  .vibe-btn { padding: 7px 12px; font-size: .76rem; }
  .vibe-full { display: none; }
  .vibe-short { display: inline; }
}
@media (max-width: 380px) {
  .vibe-btn { padding: 7px 9px; font-size: .7rem; }
  .vibe-seg { gap: 0; }
}

/* =========================================================
   PER-VIBE LAYOUTS
   Modern = left editorial · Pro = centered · Summer = right-anchored + staggered
   ========================================================= */

/* ---- PROFESSIONAL: centered & symmetric ---- */
[data-theme="pro"] .spine { display: none; }
[data-theme="pro"] .hero { align-items: center; text-align: center; }
[data-theme="pro"] .hero-sub { margin-left: auto; margin-right: auto; }
[data-theme="pro"] .hero-actions { justify-content: center; }
[data-theme="pro"] .hero-meta { justify-content: center; }
[data-theme="pro"] .section-head { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 6px; }
[data-theme="pro"] .section-lead { margin-left: auto; margin-right: auto; }
[data-theme="pro"] .showcase-head { margin-left: auto; margin-right: auto; text-align: center; }
[data-theme="pro"] .footer-inner { text-align: center; }
[data-theme="pro"] .footer-big { text-align: center; }
[data-theme="pro"] .footer-cols { justify-content: center; }

/* ---- vibe-switch transition animation (fires only on user toggle) ---- */
@keyframes vibeReveal {
  0%   { opacity: 0; transform: translateY(10px); }
  100% { opacity: 1; transform: none; }
}
html.vibe-anim .hero,
html.vibe-anim main > *,
html.vibe-anim .footer { animation: vibeReveal .5s var(--ease) both; }
html.vibe-anim main > *:nth-child(2) { animation-delay: .04s; }
html.vibe-anim main > *:nth-child(3) { animation-delay: .08s; }
html.vibe-anim main > *:nth-child(4) { animation-delay: .12s; }
html.vibe-anim main > *:nth-child(n+5) { animation-delay: .16s; }
/* suspend expensive backdrop blur during the switch so it doesn't recompute every frame */
html.vibe-anim .glass-card .glass-inner,
html.vibe-anim .contact-form,
html.vibe-anim .nav.scrolled { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }

/* ---- SUMMER: hero unchanged; scrolling sections re-anchored right + staggered ---- */
@media (min-width: 761px) {
  [data-theme="summer"] .section-head { grid-template-columns: 1fr auto; text-align: right; align-items: start; }
  [data-theme="summer"] .section-head-text { order: 1; }
  [data-theme="summer"] .index { order: 2; }
  [data-theme="summer"] .section-lead { margin-left: auto; }
  [data-theme="summer"] .showcase-head { margin-left: auto; text-align: right; }
  /* cascade the value cards for a dynamic, non-rigid feel */
  [data-theme="summer"] .why-grid > article:nth-child(even) { transform: translateY(38px); }
}

/* =========================================================
   THEME-SPECIFIC DISPLAY FONTS (each vibe gets its own voice)
   Modern = Manrope (default) · Pro = Inter (in its block)
   ========================================================= */
[data-theme="summer"] { --font-display: "Fraunces", Georgia, serif; --font-serif: "Fraunces", Georgia, serif; }
[data-theme="music"]  { --font-display: "Playfair Display", Georgia, serif; --font-serif: "Playfair Display", Georgia, serif; --font-mono: "Inter", system-ui, sans-serif; }

/* =========================================================
   THEME: MUSIC  (elegant Suzuki violin studio · ivory · burgundy + gold)
   clean / professional / classical — not tech, no typewriter
   ========================================================= */
[data-theme="music"] {
  --paper: #f6f1e8; --paper-2: #ece3d3; --surface: #fbf8f1;
  --ink: #2a241d; --ink-soft: #6a6155; --ink-faint: #9c9384;
  --line: rgba(42, 36, 29, 0.14); --line-soft: rgba(42, 36, 29, 0.07);
  --cobalt: #7c2f3e; --cobalt-deep: #5f2230; --vermilion: #b08d57; --vermilion-soft: #c4a574;
  --accent: #7c2f3e; --glow-cobalt: rgba(124, 47, 62, 0.20); --glow-verm: rgba(176, 141, 87, 0.22);
  --shadow-sm: 0 1px 3px rgba(60,40,20,.05), 0 8px 22px -16px rgba(60,40,20,.16);
  --shadow-md: 0 18px 44px -26px rgba(60,40,20,.24);
  --shadow-lg: 0 40px 80px -38px rgba(60,40,20,.28);
  --shadow-card: 0 24px 60px -34px rgba(60,40,20,.24);
  --radius: 8px; --radius-sm: 6px; --radius-lg: 12px;
}
[data-theme="music"] body::before {
  background:
    radial-gradient(50vw 50vw at 8% -8%, rgba(124,47,62,0.06), transparent 60%),
    radial-gradient(46vw 46vw at 98% 4%, rgba(176,141,87,0.08), transparent 60%);
}
/* classical & clean — no tech motifs, no web-dev demo block */
[data-theme="music"] .grain,
[data-theme="music"] .hero-canvas,
[data-theme="music"] .hero-spotlight,
[data-theme="music"] .hero-blob,
[data-theme="music"] .showcase { display: none; }
/* The app/custom-build upsell band doesn't fit the violin-studio narrative even reworded,
   so it's hidden outright in Music (unlike #services, which gets full MUSIC_COPY text). */
[data-theme="music"] .pricing-custom { display: none; }
/* typewriter off → static elegant serif headline on */
[data-theme="music"] .hero-title { display: none; }
[data-theme="music"] .hero-music-title { display: block; }
/* photographic hero */
[data-theme="music"] .hero-photo { display: block; background-image: url("assets/music/violin.webp?v=2"); opacity: 1; }
[data-theme="music"] .hero-photo-veil {
  display: block; opacity: 1;
  background:
    linear-gradient(95deg, rgba(246,241,232,.96), rgba(246,241,232,.72) 44%, rgba(246,241,232,.12) 80%),
    linear-gradient(0deg, rgba(246,241,232,.85), rgba(246,241,232,0) 42%);
}
[data-theme="music"] .nav.scrolled { background: rgba(246,241,232,0.84); box-shadow: 0 1px 0 var(--line); }
[data-theme="music"] .nav.mobile-open { background: rgba(246,241,232,0.98); }
[data-theme="music"] .glass-card .glass-inner {
  background: var(--surface); backdrop-filter: none; -webkit-backdrop-filter: none;
  border: 1px solid var(--line); box-shadow: var(--shadow-card);
}
[data-theme="music"] .glass-card--featured .glass-inner { border: 1.5px solid var(--accent); }
[data-theme="music"] .contact-form { background: rgba(251,248,241,0.82); }
[data-theme="music"] .contact-orb { display: none; }
[data-theme="music"] .eyebrow { font-family: var(--font-body); letter-spacing: .22em; }
[data-theme="music"] .btn-primary { background: var(--accent); color: #fff; }
[data-theme="music"] .btn-primary .btn-glow { background: var(--cobalt-deep); }
[data-theme="music"] .footer-manage { display: none; }

/* static elegant Music headline (replaces the typewriter) */
.hero-music-title { display: none; }
[data-theme="music"] .hero-music-title {
  font-family: var(--font-display); font-weight: 600; letter-spacing: -0.01em; line-height: 1.08;
  font-size: clamp(2.5rem, 6.5vw, 5rem); color: var(--ink); margin-bottom: 28px; max-width: 17ch;
}
[data-theme="music"] .hero-music-title em { color: var(--accent); font-style: italic; }

/* Music photographic band (between Why & Pricing) */
.music-band { display: none; }
[data-theme="music"] .music-band {
  display: block; position: relative; overflow: hidden;
  height: clamp(260px, 36vw, 420px); margin: clamp(20px, 5vw, 60px) 0;
  background: url("assets/music/recital.webp") center 40%/cover no-repeat;
}
[data-theme="music"] .music-band-overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end;
  padding: clamp(24px, 5vw, 56px); color: #fff;
  background: linear-gradient(0deg, rgba(30,18,14,.66), rgba(30,18,14,.05) 55%, rgba(30,18,14,.2));
}
.music-band-kicker { font-family: var(--font-body); font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; opacity: .9; margin-bottom: 8px; }
.music-band-title { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.7rem, 4.5vw, 3rem); max-width: 20ch; }

/* ---- hero rotator: Pro = crossfade · Summer = swipe reveal ---- */
.rotator-word { transition: opacity .42s var(--ease); }
.rotator-word.is-out { opacity: 0; }
.rotator-word.rot-swipe { animation: rotSwipe .65s var(--ease) both; }
@keyframes rotSwipe {
  from { -webkit-clip-path: inset(0 100% 0 0); clip-path: inset(0 100% 0 0); }
  to   { -webkit-clip-path: inset(0 0 0 0);   clip-path: inset(0 0 0 0); }
}

/* photo heroes: darken the sub-headline for legibility over the image */
[data-theme="summer"] .hero-sub,
[data-theme="music"] .hero-sub { color: var(--ink); }

/* =========================================================
   PRE-CHECKOUT AGREEMENT MODAL (theme-aware, informational)
   ========================================================= */
.agree-overlay {
  position: fixed; inset: 0; z-index: 200; display: none;
  align-items: center; justify-content: center; padding: 22px;
  background: rgba(22, 19, 15, 0.46); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  opacity: 0; transition: opacity .28s var(--ease);
}
.agree-overlay.is-open { display: flex; opacity: 1; }
.agree-card {
  position: relative; width: min(540px, 100%); max-height: 90vh; overflow-y: auto;
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: clamp(26px, 4vw, 40px);
  transform: translateY(12px) scale(.98); transition: transform .3s var(--ease);
}
.agree-overlay.is-open .agree-card { transform: none; }
.agree-close {
  position: absolute; top: 12px; right: 14px; width: 36px; height: 36px;
  border-radius: 50%; font-size: 1.5rem; line-height: 1; color: var(--ink-soft);
  background: transparent; display: grid; place-items: center; transition: background .2s var(--ease);
}
.agree-close:hover { background: var(--paper-2); }
.agree-title { font-family: var(--font-display); font-size: clamp(1.3rem, 3vw, 1.7rem); letter-spacing: -0.01em; margin-bottom: 6px; padding-right: 28px; }
.agree-sub { color: var(--ink-soft); margin-bottom: 16px; font-size: .98rem; }
.agree-list { list-style: none; display: grid; gap: 11px; margin-bottom: 18px; }
.agree-list li { position: relative; padding-left: 26px; color: var(--ink-soft); line-height: 1.55; font-size: .95rem; }
.agree-list li::before {
  content: ""; position: absolute; left: 4px; top: .5em; width: 8px; height: 8px;
  border-radius: 50%; background: var(--accent);
}
.agree-list li b { color: var(--ink); }
.agree-fine { font-size: .85rem; color: var(--ink-faint); line-height: 1.55; margin-bottom: 22px; }
.agree-fine a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.agree-fine b { color: var(--ink-soft); }
.agree-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }
.agree-actions .btn { margin: 0; }
@media (prefers-reduced-motion: reduce) {
  .agree-overlay, .agree-card { transition: none; }
}

/* =========================================================
   MOBILE polish (small phones) — prevent clipping/overflow
   ========================================================= */
@media (max-width: 600px) {
  /* mobile nav sheet scrolls instead of overflowing in landscape */
  .nav.mobile-open .nav-collapse { max-height: calc(100dvh - var(--vibe-h) - 56px); overflow-y: auto; }
}
@media (max-width: 480px) {
  .hero-title { font-size: clamp(2.45rem, 12vw, 4.6rem); overflow-wrap: anywhere; }
  .laptop-base { width: 104%; }   /* trim the showcase base bleed on phones */
}
@media (max-width: 400px) {
  .footer-big { font-size: clamp(1.85rem, 12vw, 9rem); overflow-wrap: anywhere; }
  .vibe-btn { padding: 7px 8px; font-size: .68rem; }   /* keep all 4 vibe buttons on one row */
  .vibe-seg { gap: 0; }
}

