/* ============ Story Bridge Partners ============ */
:root {
  /* Brand palette (SBP-Colors) */
  --slate: #111B1E;      /* Deep Slate */
  --taupe: #A18062;      /* Warm Taupe */
  --warm-cream: #E1D1C2; /* Warm Cream */
  --stone: #DDD4CA;      /* Stone */
  --black: #010101;      /* Soft Black */

  /* Roles */
  --navy: var(--slate);
  --navy-2: #1a272b;
  --navy-card: rgba(225, 209, 194, 0.06);
  --gold: var(--taupe);
  --gold-deep: #85674c;  /* taupe darkened for small text on light backgrounds (AA contrast) */
  --gold-soft: var(--warm-cream);
  --cream: #F6F1EB;      /* page background: light tint of Warm Cream */
  --cream-2: var(--warm-cream);
  --ink: var(--slate);
  --muted: #3f4a4e;
  --line: #d3c6b8;
  --serif: "Playfair", "Playfair Display", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --script: "Allison", cursive;
  --max: 1180px;
  --radius: 10px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-tap-highlight-color: transparent; }
body { margin: 0; font-family: var(--sans); font-weight: 300; color: var(--ink); background: var(--cream); line-height: 1.65; font-size: 16px; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.15; margin: 0 0 .5em; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.4rem); }
p { margin: 0 0 1em; }
em { color: var(--gold); font-style: italic; font-weight: 400; }
strong, b { font-weight: 600; }
.gold { color: var(--gold-deep); }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.eyebrow { font-family: var(--sans); font-size: .76rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: .9em; }
/* Brush strokes (generated by tools/brushes.py), tinted via currentColor */
.brush { display: block; background: currentColor; color: var(--taupe); -webkit-mask: var(--brush) center / contain no-repeat; mask: var(--brush) center / contain no-repeat; pointer-events: none; }
.brush-circle { --brush: url("images/brush/circle.svg"); aspect-ratio: 1; }
.brush-arc { --brush: url("images/brush/arc.svg"); aspect-ratio: 220 / 120; }
.brush-stroke { --brush: url("images/brush/stroke.svg"); aspect-ratio: 40 / 200; }
.rule { display: block; width: 120px; height: 12px; margin: 16px 0 18px -4px; background: var(--taupe); -webkit-mask: url("images/brush/swash.svg") left center / contain no-repeat; mask: url("images/brush/swash.svg") left center / contain no-repeat; }
.section-head p { color: var(--muted); }
.script { font-family: var(--script); font-size: 3.2rem; line-height: 1; color: var(--gold-deep); margin: 0 0 .1em; }
.section-head.center { text-align: center; max-width: 640px; margin: 0 auto 40px; }

/* Lucide icons */
[data-lucide], .lucide { width: 28px; height: 28px; stroke-width: 1.5; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: .5em; padding: .85em 1.6em; border-radius: 999px; font-weight: 600; font-family: var(--sans); font-size: .95rem; text-decoration: none; border: 2px solid transparent; transition: transform .15s ease, background .2s ease, box-shadow .2s ease; cursor: pointer; }
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--taupe); color: var(--slate); box-shadow: 0 6px 18px rgba(161, 128, 98, .3); }
.btn-gold:hover { background: #b08f71; box-shadow: 0 8px 24px rgba(161, 128, 98, .45); }
.btn-outline-light { border-color: rgba(255,255,255,.85); color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,.1); }
.btn-sm { padding: .6em 1.2em; font-size: .85rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 28px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(17, 27, 30, 0); color: #fff; transition: background .35s ease, box-shadow .35s ease, backdrop-filter .35s ease; }
.site-header.scrolled { background: rgba(17, 27, 30, .9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 6px 24px rgba(0,0,0,.18); }
.header-inner { transition: height .35s ease; }
.site-header.scrolled .header-inner { height: 62px; }
.logo img { transition: height .35s ease; }
.site-header.scrolled .logo img { height: 44px; }
.header-book { display: none; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: block; line-height: 0; }
.logo img { height: 52px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav a:not(.btn) { text-decoration: none; font-size: .9rem; font-weight: 400; opacity: .9; }
.site-nav a:not(.btn):hover { opacity: 1; color: var(--gold-soft); }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff; margin-top: -72px; padding: 150px 0 90px; min-height: 640px; display: flex; align-items: center;
  background:
    linear-gradient(90deg, rgba(17, 27, 30, .92) 0%, rgba(17, 27, 30, .75) 40%, rgba(17, 27, 30, .2) 75%, rgba(17, 27, 30, .1) 100%),
    radial-gradient(ellipse at 75% 40%, #7a6049 0%, #3a3129 40%, #111B1E 80%);
}
.hero { overflow: hidden; }
.hero-inner { position: relative; z-index: 1; }
.hero-enso-wrap { position: absolute; width: min(56vw, 640px); right: -6vw; top: 50%; transform: translateY(calc(-46% + var(--py, 0px))); opacity: .6; pointer-events: none; }
.hero-enso { width: 100%; transform: rotate(-12deg); }
.hero-copy { max-width: 600px; }
.hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); }
.hero h1 em { display: inline-block; }
.hero-sub { font-family: var(--serif); font-style: italic; font-size: clamp(1.15rem, 2vw, 1.45rem); line-height: 1.35; }
.hero-body { opacity: .92; font-weight: 300; max-width: 540px; }

/* ---------- Sound Familiar ---------- */
.familiar { background: var(--cream); border-bottom: 1px solid var(--line); }
.familiar-grid { display: grid; grid-template-columns: 1fr 1.25fr .9fr; max-width: 1440px; margin: 0 auto; }
.familiar-head { padding: 56px 40px 56px max(24px, calc((100vw - var(--max)) / 2 + 24px)); border-right: 1px solid var(--line); }
.familiar-head h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.familiar-body { padding: 56px 40px; font-size: .95rem; color: var(--muted); }
.callout { font-family: var(--serif); font-size: 1.2rem; color: var(--gold-deep); }
.img-mountains { min-height: 260px; background: linear-gradient(180deg, #E1D1C2 0%, #A18062 40%, #5b4d42 65%, #1a272b 100%); }

/* ---------- All Eyes ---------- */
.all-eyes { background: var(--navy); color: #fff; padding: 60px 0 56px; text-align: center; }
.band-title { font-family: var(--serif); font-size: clamp(1.15rem, 2.2vw, 1.6rem); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 32px; }
.eyes-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.eye-card { background: var(--navy-card); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius); padding: 30px 22px; }
.eye-card .lucide { width: 40px; height: 40px; margin-bottom: 14px; }
.eye-card p { margin: 0; font-weight: 400; font-size: 1.02rem; }
.eyes-note { max-width: 820px; margin: 30px auto 0; opacity: .85; font-size: .95rem; }

/* ---------- Question band ---------- */
.question { padding: 36px 0; background: var(--cream); }
.question-box { display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 36px; background: var(--cream-2); border-radius: var(--radius); padding: 22px 36px; }
.question-box .eyebrow { margin: 0; }
.q-stroke { height: 64px; color: var(--taupe); }
.question-box blockquote { margin: 0; font-family: var(--serif); font-style: italic; font-size: clamp(1.15rem, 2.2vw, 1.6rem); }

/* ---------- Process ---------- */
.process { padding: 56px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.process-grid { display: grid; grid-template-columns: 260px 1fr; gap: 40px; align-items: center; }
.process .section-head { border-right: 1px solid var(--line); padding-right: 32px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.steps li { text-align: center; position: relative; }
.steps li:not(:last-child)::after { content: "→"; position: absolute; top: 26px; right: -18px; color: var(--gold-deep); font-size: 1.4rem; }
.step-icon { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 76px; height: 76px; color: var(--ink); margin-bottom: 10px; }
.step-icon::before { content: ""; position: absolute; inset: 0; background: var(--taupe); -webkit-mask: url("images/brush/circle.svg") center / contain no-repeat; mask: url("images/brush/circle.svg") center / contain no-repeat; transform: rotate(var(--r, 0deg)); }
.steps li:nth-child(2) .step-icon { --r: 70deg; }
.steps li:nth-child(3) .step-icon { --r: 150deg; }
.steps li:nth-child(4) .step-icon { --r: 220deg; }
.steps li:nth-child(5) .step-icon { --r: 300deg; }
.steps h3 { font-family: var(--sans); font-size: .85rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-bottom: .3em; }
.steps p { font-size: .85rem; color: var(--muted); margin: 0; }

/* ---------- Ecosystem ---------- */
.ecosystem { padding: 64px 0; border-bottom: 1px solid var(--line); }
.eco-grid { display: grid; grid-template-columns: 220px 1fr 1.1fr; gap: 40px; align-items: start; }
.ecosystem .section-head { border-right: 1px solid var(--line); padding-right: 24px; min-height: 100%; }
.eco-copy h3 { font-family: var(--sans); font-weight: 700; font-size: 1.3rem; line-height: 1.3; }
.eco-copy p { font-size: .95rem; color: var(--muted); }
.eco-diagram { margin: 0; text-align: center; }
.eco-client { display: flex; flex-direction: column; align-items: center; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.eco-client .lucide { width: 26px; height: 26px; margin-top: 4px; }
.eco-arc { width: 120px; margin: 10px auto -4px; color: var(--slate); }
.eco-hub { font-family: var(--serif); font-size: 1.25rem; letter-spacing: .06em; text-transform: uppercase; color: var(--gold-deep); line-height: 1.2; margin: 10px 0 4px; }
.eco-lines { width: 100%; height: 60px; color: var(--muted); display: block; }
.eco-partners { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; }
.eco-partners li { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: .62rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.eco-diagram figcaption { margin-top: 18px; font-size: .68rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-deep); }

/* ---------- Case study ---------- */
.case { display: grid; grid-template-columns: .9fr 1.1fr 2fr; background: var(--cream); border-bottom: 1px solid var(--line); }
.case-intro { background: var(--navy); color: #fff; padding: 40px 32px 40px max(24px, calc((100vw - var(--max)) / 2 + 24px)); }
.case-intro { position: relative; }
.case-intro .eyebrow { color: var(--taupe); }
.case-intro h2 { font-size: clamp(1.6rem, 2.6vw, 2rem); }
.case-tag { font-family: var(--serif); font-style: italic; font-size: .95rem; opacity: .9; margin: 0; }
.img-hcch { min-height: 280px; background: linear-gradient(160deg, #DDD4CA 0%, #8a8178 45%, #1a272b 100%); }
.case-cols { display: grid; grid-template-columns: repeat(3, 1fr); padding: 40px max(24px, calc((100vw - var(--max)) / 2 + 24px)) 40px 0; }
.case-cols > div { padding: 0 28px; border-right: 1px solid var(--line); }
.case-cols > div:last-child { border-right: 0; }
.case-cols .lucide { color: var(--gold-deep); width: 32px; height: 32px; margin-bottom: 10px; }
.case-cols h3 { font-family: var(--sans); font-size: .82rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.case-cols p { font-size: .9rem; color: var(--muted); margin: 0; }

/* ---------- Benefits ---------- */
.benefits { padding: 56px 0; }
.benefits-grid { display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: center; }
.benefits h2 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); }
.benefits-lead { color: var(--muted); }
.benefit-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); }
.benefit-list li { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; font-weight: 500; font-size: .88rem; padding: 0 10px; border-right: 1px solid var(--line); }
.benefit-list li:last-child { border-right: 0; }
.benefit-list .lucide { color: var(--gold-deep); width: 32px; height: 32px; }

/* ---------- Closing ---------- */
.closing {
  color: #fff; padding: 80px 0;
  background:
    linear-gradient(90deg, rgba(17, 27, 30, .9) 0%, rgba(17, 27, 30, .7) 55%, rgba(17, 27, 30, .35) 100%),
    linear-gradient(180deg, #1a272b 0%, #4b4038 55%, #A18062 85%, #E1D1C2 100%);
}
.closing { position: relative; overflow: hidden; }
.closing > .container { position: relative; z-index: 1; }
.closing-enso { position: absolute; width: 560px; right: -300px; top: 50%; transform: translateY(-50%) rotate(40deg); opacity: .3; }
.closing .eyebrow { color: var(--gold); }
.closing h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
.closing-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: center; }
.closing-copy { border-left: 1px solid rgba(255,255,255,.25); padding-left: 40px; font-size: .95rem; opacity: .95; }
.closing-copy .strong { font-weight: 500; }

/* ---------- Booking ---------- */
.book { padding: 80px 0; background: var(--cream); }
.book-embed { max-width: 900px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 20px 50px rgba(17, 27, 30, .08); overflow: hidden; }
.book-placeholder { text-align: center; padding: 64px 24px; }
.book-placeholder .lucide { width: 48px; height: 48px; color: var(--gold-deep); margin-bottom: 12px; }
.book-placeholder p { color: var(--muted); }
.book-placeholder .btn { margin-top: 8px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: rgba(255,255,255,.85); padding: 36px 0; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.footer-brand { display: flex; align-items: center; gap: 18px; line-height: 0; }
.footer-mono { height: 54px; width: auto; }
.footer-logo { height: 36px; width: auto; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-nav a { text-decoration: none; font-size: .88rem; }
.footer-nav a:hover { color: var(--gold-soft); }
.copyright { margin: 0; font-size: .8rem; opacity: .7; width: 100%; text-align: center; }

/* ============ Responsive ============ */
@media (max-width: 1080px) {
  .familiar-grid { grid-template-columns: 1fr 1.3fr; }
  .familiar-img { grid-column: 1 / -1; min-height: 220px; }
  .eco-grid { grid-template-columns: 1fr 1fr; }
  .ecosystem .section-head { grid-column: 1 / -1; border-right: 0; padding-right: 0; min-height: 0; }
  .case { grid-template-columns: 1fr 1fr; }
  .case-cols { grid-column: 1 / -1; padding: 36px 24px; }
  .eco-partners { grid-template-columns: repeat(3, 1fr); row-gap: 16px; }
  .eco-lines { display: none; }
  .eco-hub { margin-bottom: 20px; }
}

@media (max-width: 900px) {

  .hero { padding: 130px 0 70px; min-height: 0;
    background:
      linear-gradient(180deg, rgba(17, 27, 30, .85) 0%, rgba(17, 27, 30, .8) 100%),
      radial-gradient(ellipse at 75% 40%, #7a6049 0%, #3a3129 40%, #111B1E 80%); }

  .eyes-grid { grid-template-columns: 1fr 1fr; }
  .process-grid, .benefits-grid, .closing-grid { grid-template-columns: 1fr; }
  .process .section-head { border-right: 0; padding-right: 0; }
  .steps { grid-template-columns: repeat(3, 1fr); row-gap: 32px; }
  .steps li::after { display: none; }
  .closing-copy { border-left: 0; padding-left: 0; border-top: 1px solid rgba(255,255,255,.25); padding-top: 28px; }
  .benefit-list { grid-template-columns: repeat(3, 1fr); row-gap: 24px; }
  .benefit-list li:nth-child(3) { border-right: 0; }
}

@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .familiar-grid { grid-template-columns: 1fr; }
  .familiar-head { padding: 44px 16px 8px; border-right: 0; }
  .familiar-body { padding: 16px 16px 40px; }
  .eyes-grid { grid-template-columns: 1fr; }
  .question-box { grid-template-columns: 1fr; gap: 12px; padding: 22px; }
  .q-stroke { display: none; }
  .steps { grid-template-columns: 1fr 1fr; }
  .eco-grid { grid-template-columns: 1fr; }
  .eco-partners { grid-template-columns: repeat(3, 1fr); row-gap: 16px; }
  .eco-lines { display: none; }
  .case { grid-template-columns: 1fr; }
  .case-intro { padding: 40px 16px; }
  .case-cols { grid-template-columns: 1fr; gap: 28px; padding: 36px 16px; }
  .case-cols > div { padding: 0; border-right: 0; }
  .benefit-list { grid-template-columns: 1fr 1fr; }
  .benefit-list li { border-right: 0; }
  .btn-row .btn { width: 100%; justify-content: center; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-nav { justify-content: center; }
}

/* =====================================================================
   MOTION — brush draw-in, hero entrance, scroll reveals
   Everything here is skipped for visitors who prefer reduced motion.
   ===================================================================== */
@property --sweep { syntax: "<angle>"; inherits: false; initial-value: 360deg; }

/* A brush that "paints" itself in: a conic sweep inside the brush mask.
   The circle stroke starts ~20° clockwise from 12 o'clock. */
.brush.draw { background: conic-gradient(from 20deg, currentColor var(--sweep), transparent var(--sweep)); }
.step-icon::before { background: conic-gradient(from 20deg, var(--taupe) var(--sweep), transparent var(--sweep)); }

@media (prefers-reduced-motion: no-preference) {
  /* Hero entrance */
  .hero-enso { --sweep: 0deg; animation: brush-draw 2.6s cubic-bezier(.55, .05, .25, 1) .35s forwards, enso-settle 3.2s cubic-bezier(.2, .7, .2, 1) .2s both; }
  .hero h1 .line { display: block; opacity: 0; transform: translateY(26px); animation: rise .9s cubic-bezier(.2, .7, .2, 1) forwards; }
  .hero h1 .line:nth-child(1) { animation-delay: .15s; }
  .hero h1 .line:nth-child(2) { animation-delay: .3s; }
  .hero h1 .line:nth-child(3) { animation-delay: .45s; }
  .hero h1 .line:nth-child(4) { animation-delay: .6s; }
  .hero .rule { clip-path: inset(0 100% 0 0); animation: wipe 1s cubic-bezier(.6, 0, .2, 1) 1s forwards; }
  .hero-sub, .hero-body, .hero .btn-row { opacity: 0; transform: translateY(18px); animation: rise .9s cubic-bezier(.2, .7, .2, 1) forwards; }
  .hero-sub { animation-delay: 1.05s; }
  .hero-body { animation-delay: 1.2s; }
  .hero .btn-row { animation-delay: 1.35s; }

  /* Scroll reveals (only hidden when JS is running to reveal them) */
  .js [data-reveal]:not([data-reveal="stagger"]) { opacity: 0; transform: translateY(28px); transition: opacity .9s ease, transform .9s cubic-bezier(.2, .7, .2, 1); }
  .js [data-reveal="stagger"] > * { opacity: 0; transform: translateY(24px); transition: opacity .7s ease calc(var(--i, 0) * 110ms), transform .8s cubic-bezier(.2, .7, .2, 1) calc(var(--i, 0) * 110ms); }
  .js [data-reveal].is-in:not([data-reveal="stagger"]), .js [data-reveal="stagger"].is-in > * { opacity: 1; transform: none; }

  /* Underline swashes wipe in */
  .js [data-reveal] .rule { clip-path: inset(0 100% 0 0); transition: clip-path 1s cubic-bezier(.6, 0, .2, 1) .35s; }
  .js [data-reveal].is-in .rule { clip-path: inset(0 0 0 0); }

  /* Process rings paint in one after another */
  .js .steps .step-icon::before { --sweep: 0deg; transition: --sweep 1.3s cubic-bezier(.55, .05, .25, 1) calc(var(--i, 0) * 180ms + 150ms); }
  .js .steps.is-in .step-icon::before { --sweep: 360deg; }

  /* Closing circle + ecosystem arc/lines */
  .js [data-draw] { --sweep: 0deg; transition: --sweep 2.2s cubic-bezier(.55, .05, .25, 1) .2s; }
  .js [data-draw].is-in { --sweep: 360deg; }
  .js .eco-diagram .eco-arc { clip-path: inset(0 100% 0 0); transition: clip-path 1.1s cubic-bezier(.6, 0, .2, 1) .3s; }
  .js .eco-diagram.is-in .eco-arc { clip-path: inset(0 0 0 0); }
  .js .eco-diagram .eco-lines { clip-path: inset(0 0 100% 0); transition: clip-path 1s ease .7s; }
  .js .eco-diagram.is-in .eco-lines { clip-path: inset(0 0 0 0); }

  .btn:active, .tabbar a:active { transform: scale(.96); }
}

@keyframes brush-draw { to { --sweep: 360deg; } }
@keyframes enso-settle { from { transform: rotate(-40deg) scale(.94); opacity: .4; } to { transform: rotate(-12deg) scale(1); opacity: 1; } }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes wipe { to { clip-path: inset(0 0 0 0); } }

.count { font-variant-numeric: tabular-nums; }

/* =====================================================================
   MOBILE APP LAYOUT (≤ 900px): bottom tab bar, compact header,
   swipeable card rows
   ===================================================================== */
.tabbar { display: none; }

@media (max-width: 900px) {
  html { scroll-padding-top: 66px; }
  body { padding-bottom: calc(74px + env(safe-area-inset-bottom)); }
  .site-nav { display: none; }
  .header-inner { height: 64px; }
  .logo img { height: 42px; }
  .site-header.scrolled .header-inner { height: 56px; }
  .site-header.scrolled .logo img { height: 36px; }
  .header-book { display: inline-flex; padding: .55em 1.1em; font-size: .8rem; box-shadow: none; }
  .hero { margin-top: -64px; padding-top: 110px; }

  .tabbar {
    display: grid; grid-template-columns: repeat(5, 1fr); align-items: end;
    position: fixed; z-index: 60; left: 0; right: 0; bottom: 0;
    padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
    background: rgba(17, 27, 30, .94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid rgba(225, 209, 194, .12);
  }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 4px 0; color: rgba(255,255,255,.62); text-decoration: none; font-size: .66rem; font-weight: 500; letter-spacing: .02em; transition: color .2s ease, transform .15s ease; }
  .tabbar a .lucide { width: 23px; height: 23px; }
  .tabbar a.active { color: var(--warm-cream); }
  .tabbar a.active .lucide { color: var(--taupe); }
  .tab-book { position: relative; }
  .tab-book-btn { display: grid; place-items: center; width: 54px; height: 54px; margin-top: -26px; border-radius: 50%; background: var(--taupe); color: var(--slate); box-shadow: 0 8px 22px rgba(0,0,0,.35), 0 0 0 4px var(--slate); }
  .tab-book-btn .lucide { width: 25px; height: 25px; }
  .tabbar a.tab-book.active .lucide { color: var(--slate); }
  .tabbar a.tab-book { color: var(--warm-cream); }
}

@media (max-width: 640px) {
  .hero { padding: 100px 0 56px; }
  .hero h1 { font-size: 2.15rem; }
  .hero-enso-wrap { width: 115vw; right: -55vw; top: 34%; opacity: .32; }

  /* Swipeable rows */
  .snap-row {
    display: grid !important; grid-template-columns: none !important; grid-auto-flow: column; grid-auto-columns: 80%;
    gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    margin-left: -16px; margin-right: -16px; padding: 6px 16px 10px; scroll-padding: 0 16px;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .snap-row::-webkit-scrollbar { display: none; }
  .snap-row > * { scroll-snap-align: start; }
  .snap-dots { display: flex; justify-content: center; gap: 7px; margin-top: 10px; }
  .snap-dots span { width: 6px; height: 6px; border-radius: 999px; background: currentColor; opacity: .25; transition: width .25s ease, opacity .25s ease; }
  .snap-dots span.on { width: 18px; opacity: .8; }
  .all-eyes .snap-dots { color: var(--warm-cream); }
  .snap-dots { color: var(--taupe); }

  .eye-card { text-align: left; padding: 26px 22px; }
  .eye-card p { font-size: 1.05rem; }

  .steps { counter-reset: step; }
  .steps li { counter-increment: step; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 24px 20px; text-align: left; }
  .steps h3::before { content: "Step " counter(step) " · "; color: var(--gold-deep); }
  .steps p { font-size: .95rem; }

  .case-cols { padding: 28px 16px 36px; gap: 14px; }
  .case-cols > div { background: #fff; border: 1px solid var(--line) !important; border-radius: 16px; padding: 22px 20px !important; }
  .case-cols p { font-size: .95rem; }

  .benefit-list { grid-auto-columns: 44%; margin-top: 8px; }
  .benefit-list li { background: #fff; border: 1px solid var(--line) !important; border-radius: 14px; padding: 18px 10px; }

  .eco-partners li { font-size: .68rem; }
  .question { padding: 24px 0; }
  .book { padding: 56px 0 64px; }
  .book-embed { border-radius: 20px; }
  .closing-enso { width: 360px; right: -200px; }
  .footer-nav { display: none; }
  .site-footer { padding: 28px 0 22px; }
}
