/* ===== Reset + typography + components (bright theme) ===== */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 96px; /* sticky-nav offset for anchor jumps */
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-body);
  background: var(--page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: rgba(251, 146, 60, .15);
}

/* keep floating mobile CTA from covering content */
@media (max-width: 1023px) {
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.12;
  color: var(--ink);
  text-wrap: balance;
}
p { margin: 0; }
a  { color: inherit; text-decoration: none; transition: color .2s var(--ease-out); }
img, svg { display: block; max-width: 100%; height: auto; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 4px; }

/* Layout shells */
body .container { max-width: var(--container-w); width: 100%; margin: 0 auto; padding-left: var(--section-px); padding-right: var(--section-px); }
.content   { max-width: var(--content-w); margin: 0 auto; }

/* Eyebrow / section label — readable Inter (no cramped mono) */
.eyebrow,
.badge-dot {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-label);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-700);
}
.badge-dot::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 999px;
  background: var(--teal);
  box-shadow: 0 0 0 4px rgba(251, 146, 60, .16);
  flex: none;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--teal); flex: none; }
.eyebrow.on-dark, .badge-dot.on-dark { color: var(--mint-accent); }
.badge-dot.on-dark::before { background: var(--mint-accent); box-shadow: 0 0 0 4px rgba(253, 186, 116, .22); }

.gold-rule { width: 24px; height: 2px; background: var(--teal); }
.divider   { width: 100%; height: 1px; background: var(--border); }

/* Headlines */
.h-display { font-size: clamp(40px, 6vw, 84px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.02; }
.h-section { font-size: clamp(28px, 3.6vw, 48px); font-weight: 700; letter-spacing: -0.022em; line-height: 1.1; }
.h-card    { font-size: clamp(20px, 2.2vw, 28px); font-weight: 700; letter-spacing: -0.012em; line-height: 1.2; }
.h-accent  { color: var(--teal); }
section.dark .h-accent, .on-dark .h-accent { color: var(--mint-accent); }

.lead { font-size: clamp(17px, 1.4vw, 19px); line-height: 1.65; color: var(--ink-body); max-width: 60ch; font-weight: 400; }
.lead.on-dark { color: var(--on-dark-muted); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px;
  padding: 13px 26px;
  font-family: var(--font-body); font-size: 15px; font-weight: 600; letter-spacing: 0.01em;
  border-radius: 999px;
  transition: all .3s var(--ease-out);
}
.btn .arrow { transition: transform .3s var(--ease-out); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-primary       { background: var(--teal); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--teal-700); box-shadow: var(--shadow); }
.btn-outline       { border: 1.5px solid var(--teal); color: var(--teal-700); background: #fff; }
.btn-outline:hover { background: var(--mint-tint); }
.btn-on-dark       { border: 1.5px solid rgba(255,255,255,.5); color: #fff; }
.btn-on-dark:hover { background: rgba(255,255,255,.12); border-color: #fff; }
/* legacy aliases */
.btn-gold { background: var(--teal); color: #fff; }
.btn-gold:hover { background: var(--teal-700); }
.btn-outline-dark { border: 1.5px solid rgba(255,255,255,.5); color: #fff; }
.btn-outline-dark:hover { background: rgba(255,255,255,.12); }
.btn-outline-light { border: 1.5px solid var(--teal); color: var(--teal-700); }
.btn-outline-light:hover { background: var(--mint-tint); }

/* Chip */
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border: 1px solid var(--border-strong); border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--ink); background: #fff; }
.chip.accent, .chip.gold { border-color: var(--teal); color: var(--teal-700); background: var(--mint-tint); }
.chip.on-dark { border-color: var(--border-on-dark); color: var(--on-dark); background: transparent; }
.chip-dot { width: 6px; height: 6px; border-radius: 999px; background: var(--teal); }

/* Sections */
section { padding: var(--section-py) 0; }
section.dark { background: var(--teal-deep); color: var(--on-dark); }
section.deep { background: var(--teal-deep); color: var(--on-dark); }
section.cream { background: var(--surface); }
section.dark h1, section.dark h2, section.dark h3, section.dark h4,
section.deep h1, section.deep h2, section.deep h3, section.deep h4 { color: var(--on-dark); }

/* Image wrap */
.img-wrap { position: relative; overflow: hidden; border-radius: var(--radius); }
.img-wrap img { width: 100%; height: 100%; object-fit: cover; transform: translateZ(0); backface-visibility: hidden; }
.img-wrap:hover img { transform: scale(1.04) translateZ(0); }

/* Photo brightener */
.photo-bright       { filter: brightness(1.06) saturate(1.08) contrast(1.02); }
.photo-bright-soft  { filter: brightness(1.03) saturate(1.04); }
.photo-bright-strong{ filter: brightness(1.10) saturate(1.12) contrast(1.03); }
.img-overlay-label { position: absolute; left: 18px; bottom: 18px; padding: 9px 15px; background: rgba(0, 0, 0, .72); backdrop-filter: blur(6px); color: #fff; font-family: var(--font-label); font-size: 12px; font-weight: 600; letter-spacing: .04em; border-radius: 999px; display: flex; gap: 8px; align-items: center; }
.img-overlay-label .dot { width: 5px; height: 5px; border-radius: 999px; background: var(--mint-accent); }

/* Stat cell */
.stat-cell { padding: 24px 0 0; border-top: 2px solid var(--border-strong); }
.stat-cell .num { font-family: var(--font-heading); font-size: clamp(34px, 4vw, 46px); font-weight: 800; letter-spacing: -0.025em; line-height: 1; color: var(--ink); }
.stat-cell .num.gold, .stat-cell .num.accent { color: var(--teal); }
.stat-cell .lbl { margin-top: 10px; font-family: var(--font-label); font-size: 13px; font-weight: 500; letter-spacing: .02em; color: var(--ink-muted); }

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

/* Scroll-x helper */
.scroll-x { overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.scroll-x::-webkit-scrollbar { height: 6px; }
.scroll-x::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 999px; }

/* Bleed image */
.bleed-right { margin-right: calc(-1 * var(--section-px)); }
.bleed-left  { margin-left:  calc(-1 * var(--section-px)); }

/* Stamp — floating caption tile */
.stamp {
  display: inline-flex; flex-direction: column; gap: 6px;
  background: #fff; color: var(--ink);
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--teal);
  box-shadow: var(--shadow);
}
.stamp .k { font-family: var(--font-label); font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--teal-700); }
.stamp .v { font-family: var(--font-heading); font-size: 22px; font-weight: 700; line-height: 1; }
.stamp.light { background: #fff; color: var(--ink); }

/* Pull headline — oversized number */
.pull-num {
  font-family: var(--font-heading);
  font-size: clamp(96px, 16vw, 220px);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: .85;
  color: var(--teal);
}

/* Big quote mark */
.q-mark { font-family: var(--font-heading); font-size: 140px; line-height: .8; color: var(--teal); display: block; font-weight: 800; }

/* Vertical label */
.label-v {
  writing-mode: vertical-rl; transform: rotate(180deg);
  font-family: var(--font-label); font-size: 12px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink-muted);
}
.label-v.on-dark { color: var(--on-dark-muted); }

/* Numbered chip */
.num-chip {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px;
  border: 1.5px solid var(--teal);
  color: var(--teal-700);
  font-family: var(--font-heading); font-size: 14px; font-weight: 700;
  border-radius: 999px; flex: none;
}
.on-dark .num-chip, section.dark .num-chip { border-color: var(--mint-accent); color: var(--mint-accent); }

/* Image mosaic grid */
.grid-mosaic { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 90px; gap: 14px; }
@media (max-width: 768px) { .grid-mosaic { grid-template-columns: repeat(6, 1fr); grid-auto-rows: 70px; gap: 10px; } }
.tile { position: relative; overflow: hidden; background: var(--teal-deep); border-radius: var(--radius-sm); }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); transform: translateZ(0); backface-visibility: hidden; }
.tile:hover img { transform: scale(1.08) translateZ(0); }
.tile .cap {
  position: absolute; left: 14px; bottom: 14px; right: 14px;
  color: #fff; font-family: var(--font-label); font-size: 12px; font-weight: 600;
  letter-spacing: .03em; display: flex; align-items: center; gap: 8px; z-index: 2;
}
.tile .cap::before { content: ""; width: 5px; height: 5px; border-radius: 999px; background: var(--mint-accent); flex: none; }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.78) 0%, rgba(0,0,0,0) 55%); pointer-events: none; }

.rule-l { border-left: 2px solid var(--border-strong); padding-left: 20px; }
.rule-l.gold, .rule-l.accent { border-left-color: var(--teal); }
.sticky-col { position: sticky; top: 100px; }

/* Marquee band */
.marquee-band { background: var(--teal-deep); color: var(--on-dark); padding: 15px 0; font-family: var(--font-label); font-size: 14px; font-weight: 600; letter-spacing: .05em; }
.marquee-band.mint { background: var(--surface); color: var(--teal-700); }
.marquee-band.gold { background: var(--teal); color: #fff; }

/* FAQ accordion (native details/summary — accessible, zero-JS) */
/* enable animating block-size:auto on supporting browsers (Chrome/Edge) */
@supports (interpolate-size: allow-keywords) { :root { interpolate-size: allow-keywords; } }

.faq-item { transition: border-color .3s var(--ease-out), box-shadow .3s var(--ease-out); }
.faq-item[open] { border-color: var(--teal); box-shadow: var(--shadow-sm); }
.faq-q { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; font-family: var(--font-heading); font-weight: 700; font-size: 17px; line-height: 1.35; color: var(--ink); }
.faq-q::-webkit-details-marker { display: none; }
/* "+" rotates smoothly into "×" — no content-swap snap */
.faq-q::after { content: "+"; font-family: var(--font-heading); font-weight: 400; font-size: 26px; line-height: 1; color: var(--teal); transition: transform .3s var(--ease-out); flex: none; }
.faq-item[open] .faq-q::after { transform: rotate(135deg); }
.faq-a { padding: 0 0 18px; font-size: 15px; line-height: 1.65; color: var(--ink-body); max-width: 64ch; }

/* Smooth open/close (height animates; snaps gracefully where unsupported) */
.faq-item::details-content {
  block-size: 0;
  overflow: clip;
  transition: block-size .35s var(--ease-out), content-visibility .35s allow-discrete;
}
.faq-item[open]::details-content { block-size: auto; }
