/* Marcos Estima — Private Jiu-Jitsu · tokens from DESIGN.md */
:root {
  --paper: #F3F1EC;
  --paper-2: #E9E6DF;
  --ink: #0D0D0C;
  --ink-2: #1A1A18;
  --muted: #5E5B55;
  --muted-dark: #A8A49B;
  --line: #D6D2C9;
  --line-dark: #2C2B28;
  --signal: #C7372F;
  --success: #2F7A4B;
  --error: #B42318;

  --sans: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", Georgia, serif;

  --w: 1240px;
  --gutter: 24px;
  --section: 128px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}
@media (max-width: 768px) { :root { --section: 80px; } }
@media (max-width: 480px) { :root { --gutter: 16px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 18px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }

:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 2px; }

.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 999px; text-decoration: none; }
.skip:focus { top: 16px; }

.wrap { width: 100%; max-width: calc(var(--w) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }
.dark { background: var(--ink); color: var(--paper); }
.alt { background: var(--paper-2); }

.label {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; line-height: 1.4; font-weight: 500;
  text-transform: uppercase; letter-spacing: .14em;
  color: var(--muted);
}
.dark .label { color: var(--muted-dark); }
.label::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--signal); }

h1, h2, h3 { margin: 0; font-weight: 500; letter-spacing: -0.035em; }
.h2 { font-size: clamp(40px, 5.4vw, 64px); line-height: 1.02; }
.h3 { font-size: 32px; line-height: 1.15; letter-spacing: -0.025em; }
.lead { font-size: 22px; line-height: 1.45; letter-spacing: -0.01em; }
.muted { color: var(--muted); }
.dark .muted { color: var(--muted-dark); }
p { margin: 0 0 1em; max-width: 62ch; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--ink); --fg: var(--paper);
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 56px; padding: 0 28px;
  border: 1px solid var(--bg); border-radius: 999px;
  background: var(--bg); color: var(--fg);
  font-size: 16px; font-weight: 500; letter-spacing: -0.005em;
  text-decoration: none; cursor: pointer;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.btn svg { width: 18px; height: 18px; transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn:hover { --bg: #000; }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn--light { --bg: var(--paper); --fg: var(--ink); }
.btn--light:hover { --bg: #fff; }
.btn--ghost { background: transparent; color: var(--bg); }
.btn--ghost:hover { background: var(--bg); color: var(--fg); }
.btn--ghost-light { --bg: var(--paper); --fg: var(--ink); background: transparent; color: var(--paper); border-color: rgba(243,241,236,.5); }
.btn--ghost-light:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }

.link { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.link:hover { text-decoration-thickness: 2px; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  color: var(--paper);
  transition: background .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-solid { background: rgba(243,241,236,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: var(--ink); border-color: var(--line); }
.nav__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; }
.brand { font-weight: 600; font-size: 15px; letter-spacing: .18em; text-transform: uppercase; text-decoration: none; white-space: nowrap; }
.nav__links { display: flex; gap: 32px; list-style: none; margin: 0; padding: 0; font-size: 15px; }
.nav__links a { text-decoration: none; opacity: .8; transition: opacity .2s; }
.nav__links a:hover { opacity: 1; }
.nav__right { display: flex; align-items: center; gap: 12px; }
.nav .btn { min-height: 44px; padding: 0 20px; font-size: 15px; }
.nav:not(.is-solid) .btn { --bg: var(--paper); --fg: var(--ink); }

.lang { display: inline-flex; border: 1px solid currentColor; border-radius: 999px; padding: 3px; opacity: .9; }
.lang button {
  border: 0; background: transparent; cursor: pointer;
  font-size: 12px; font-weight: 600; letter-spacing: .1em;
  padding: 7px 11px; border-radius: 999px; min-width: 40px; min-height: 30px;
}
.lang button[aria-pressed="true"] { background: currentColor; }
.lang button[aria-pressed="true"] span { color: var(--ink); }
.nav.is-solid .lang button[aria-pressed="true"] span { color: var(--paper); }

@media (max-width: 960px) { .nav__links { display: none; } }
@media (max-width: 520px) { .nav .btn--nav { display: none; } .brand { font-size: 13px; letter-spacing: .14em; } }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; color: var(--paper); overflow: hidden; background: var(--ink); }
.hero__img { position: absolute; inset: -8% 0 0; will-change: transform; }
.hero__img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; filter: grayscale(1) contrast(1.05); }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13,13,12,.55) 0%, rgba(13,13,12,.1) 30%, rgba(13,13,12,.25) 55%, rgba(13,13,12,.92) 100%); }
@media (max-width: 899px) {
  .hero { display: block; min-height: 0; }
  .hero::after { display: none; }
  .hero__img { position: relative; inset: auto; height: 66svh; min-height: 420px; transform: none !important; }
  .hero__img img { object-position: 50% 30%; }
  .hero__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13,13,12,.55) 0%, transparent 18%, transparent 50%, var(--ink) 100%); }
  .hero__content { padding-top: 0; margin-top: -96px; padding-bottom: 48px; }
  .hero__kicker { margin-bottom: 16px; }
}
@media (min-width: 900px) {
  .hero__img { left: 40%; }
  .hero__img img { object-position: 50% 20%; }
  .hero::after { background:
    linear-gradient(90deg, var(--ink) 40%, rgba(13,13,12,.6) 50%, rgba(13,13,12,0) 72%),
    linear-gradient(180deg, rgba(13,13,12,.5) 0%, transparent 22%, transparent 62%, rgba(13,13,12,.9) 100%); }
}
.hero__content { position: relative; z-index: 2; width: 100%; padding-top: 140px; padding-bottom: 56px; }
.hero__kicker { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.hero .label { color: rgba(243,241,236,.8); }
.display { font-size: clamp(52px, 10vw, 128px); line-height: .92; letter-spacing: -0.05em; font-weight: 500; max-width: 12ch; }
.display em { letter-spacing: -0.02em; }
.hero__bottom { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: end; margin-top: 40px; padding-top: 32px; border-top: 1px solid rgba(243,241,236,.22); }
.hero__bottom p { margin: 0; font-size: 19px; color: rgba(243,241,236,.82); max-width: 46ch; }
.hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 820px) { .hero__bottom { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .hero__ctas .btn { width: 100%; } }


/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 5fr 7fr; gap: 80px; align-items: center; }
.about__photo { position: relative; aspect-ratio: 4/5; overflow: hidden; }
.about__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
.about__photo figcaption { position: absolute; left: 0; bottom: 0; background: var(--paper); padding: 10px 16px 0 0; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.about .h2 { margin: 20px 0 32px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; margin-top: 48px; border-top: 1px solid var(--line); }
.fact { padding: 24px 24px 24px 0; border-bottom: 1px solid var(--line); }
.fact:nth-child(odd) { border-right: 1px solid var(--line); }
.fact:nth-child(even) { padding-left: 24px; }
.fact strong { display: block; font-size: 32px; line-height: 1.1; font-weight: 500; letter-spacing: -0.03em; }
.fact span { font-size: 15px; color: var(--muted); }
@media (max-width: 900px) { .about { grid-template-columns: 1fr; gap: 48px; } .about__photo { max-width: 520px; } }
@media (max-width: 420px) { .fact strong { font-size: 26px; } }

/* ---------- Audience ---------- */
.split-head { display: grid; grid-template-columns: 5fr 7fr; gap: 80px; align-items: end; margin-bottom: 64px; }
.split-head p { margin: 0; }
@media (max-width: 900px) { .split-head { grid-template-columns: 1fr; gap: 24px; margin-bottom: 40px; } }
.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: 80px 5fr 7fr; gap: 24px; align-items: baseline; padding: 32px 0; border-bottom: 1px solid var(--line); transition: padding .4s var(--ease); }
.row:hover { padding-left: 12px; }
.row__n { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.row h3 { font-size: 28px; line-height: 1.2; letter-spacing: -0.025em; }
.row p { margin: 0; color: var(--muted); }
@media (max-width: 760px) { .row { grid-template-columns: 48px 1fr; } .row p { grid-column: 2; } }

/* ---------- Formats ---------- */
.formats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); }
.format { padding: 40px 32px 40px 0; display: flex; flex-direction: column; gap: 16px; min-height: 320px; }
.format + .format { padding-left: 32px; border-left: 1px solid var(--line-dark); }
.format__tag { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-dark); }
.format p { color: var(--muted-dark); margin: 0; font-size: 17px; }
.format__price { margin-top: auto; padding-top: 24px; font-size: 15px; display: flex; align-items: center; gap: 10px; }
.format__price::before { content: ""; width: 24px; height: 1px; background: var(--signal); }
@media (max-width: 900px) {
  .formats { grid-template-columns: 1fr; }
  .format { min-height: 0; padding: 32px 0; }
  .format + .format { padding-left: 0; border-left: 0; border-top: 1px solid var(--line-dark); }
}
.where { display: grid; grid-template-columns: 1fr 1fr auto; gap: 32px; align-items: center; margin-top: 56px; }
.where div { display: flex; flex-direction: column; gap: 4px; }
.where strong { font-size: 22px; font-weight: 500; letter-spacing: -0.02em; }
.where span { color: var(--muted-dark); font-size: 16px; }
@media (max-width: 820px) { .where { grid-template-columns: 1fr; gap: 24px; } }

/* ---------- Band image ---------- */
.band { position: relative; height: min(78vh, 720px); overflow: hidden; background: var(--ink); }
.band img { position: absolute; inset: -10% 0; width: 100%; height: 120%; object-fit: cover; filter: grayscale(1); will-change: transform; }
.band__quote { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; color: var(--paper); padding-bottom: 48px; }
.band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(13,13,12,.8)); }
.band__quote p { font-family: var(--serif); font-style: italic; font-size: clamp(32px, 4.6vw, 60px); line-height: 1.05; letter-spacing: -0.02em; max-width: 20ch; margin: 0; }

/* ---------- Process ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; counter-reset: step; }
.step { border-top: 1px solid var(--ink); padding-top: 24px; }
.step__n { font-family: var(--serif); font-style: italic; font-size: 72px; line-height: 1; color: var(--muted); display: block; margin-bottom: 24px; }
.step h3 { font-size: 26px; line-height: 1.2; letter-spacing: -0.02em; margin-bottom: 12px; }
.step p { color: var(--muted); font-size: 17px; margin: 0; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; gap: 40px; } .step__n { font-size: 56px; margin-bottom: 12px; } }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 120px; gap: 12px; }
.gallery figure { margin: 0; overflow: hidden; position: relative; background: var(--ink); }
.gallery img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); transform: scale(1.02); transition: filter .8s var(--ease), transform 1.2s var(--ease); }
@media (hover: hover) { .gallery figure:hover img { filter: grayscale(0); transform: scale(1.06); } }
.g1 { grid-column: 1 / 6; grid-row: span 5; }
.g2 { grid-column: 6 / 13; grid-row: span 3; }
.g3 { grid-column: 6 / 9; grid-row: span 2; }
.g4 { grid-column: 9 / 13; grid-row: span 2; }
.g5 { grid-column: 1 / 8; grid-row: span 3; }
.g6 { grid-column: 8 / 13; grid-row: span 3; }
.g1 img { object-position: 50% 20%; }
@media (max-width: 760px) {
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 140px; gap: 8px; }
  .g1 { grid-column: 1 / 2; grid-row: span 3; }
  .g2 { grid-column: 2 / 3; grid-row: span 2; }
  .g3 { grid-column: 2 / 3; grid-row: span 1; }
  .g4 { grid-column: 1 / 3; grid-row: span 2; }
  .g5 { grid-column: 1 / 2; grid-row: span 2; }
  .g6 { grid-column: 2 / 3; grid-row: span 2; }
}

/* ---------- Testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.quote { margin: 0; padding: 32px 0 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 24px; }
.quote blockquote { margin: 0; font-family: var(--serif); font-style: italic; font-size: 26px; line-height: 1.25; letter-spacing: -0.01em; }
.quote figcaption { margin-top: auto; font-size: 15px; color: var(--muted); }
.quote figcaption strong { display: block; color: var(--ink); font-weight: 500; }
.placeholder-chip { align-self: flex-start; font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; }

/* Gracie Barra methodology (on dark) */
.gb-method { display: grid; grid-template-columns: 4fr 8fr; gap: 80px; margin-top: 96px; align-items: start; }
.gb-method .h3 { margin-bottom: 16px; }
.dark .rows { border-color: var(--line-dark); }
.dark .row { border-color: var(--line-dark); grid-template-columns: 64px 4fr 7fr; }
.dark .row h3 { font-size: 24px; }
.dark .row p, .dark .row__n { color: var(--muted-dark); }
.dark .row__n { letter-spacing: .08em; font-weight: 500; }
@media (max-width: 900px) { .gb-method { grid-template-columns: 1fr; gap: 24px; margin-top: 64px; } }
@media (max-width: 760px) { .dark .row { grid-template-columns: 48px 1fr; } }
.todo { color: var(--signal); font-size: .85em; font-weight: 500; }
@media (max-width: 900px) { .quotes { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 28px 0; font-size: 22px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.3; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus { flex-shrink: 0; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; transition: transform .4s var(--ease), background .3s, border-color .3s; }
.faq summary .plus svg { width: 14px; height: 14px; }
.faq details[open] summary .plus { transform: rotate(45deg); background: var(--ink); color: var(--paper); border-color: var(--ink); }
.faq details p { color: var(--muted); padding: 0 56px 28px 0; margin: 0; }

/* ---------- Final CTA ---------- */
.final { position: relative; overflow: hidden; color: var(--paper); background: var(--ink); }
.final__bg { position: absolute; inset: 0; }
.final__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; filter: grayscale(1); opacity: .35; }
.final .wrap { position: relative; z-index: 2; }
.final__in { padding: 160px 0; max-width: 820px; }
.final .h2 { font-size: clamp(48px, 7vw, 96px); margin: 24px 0 32px; letter-spacing: -0.045em; }
.final p { color: rgba(243,241,236,.82); font-size: 20px; margin-bottom: 40px; }
@media (max-width: 768px) { .final__in { padding: 112px 0; } }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: var(--paper); border-top: 1px solid var(--line-dark); padding: 48px 0 40px; }
.footer__word { font-size: clamp(28px, 3vw, 40px); line-height: 1; letter-spacing: -0.04em; font-weight: 500; margin: 0 0 28px; }
.footer__word em { color: var(--muted-dark); }
.footer__row { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; font-size: 15px; color: var(--muted-dark); }
.footer__row a { color: var(--paper); text-decoration: none; display: inline-flex; gap: 8px; align-items: center; }
.footer__row a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer__row svg { width: 18px; height: 18px; }

/* ---------- Sticky mobile CTA ---------- */
.sticky-cta { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 40; transform: translateY(140%); transition: transform .5s var(--ease); display: none; }
.sticky-cta .btn { width: 100%; box-shadow: 0 10px 30px rgba(0,0,0,.25); border-color: rgba(243,241,236,.35); }
.sticky-cta.is-visible { transform: none; }
@media (max-width: 760px) { .sticky-cta { display: block; } }

/* ---------- Modal ---------- */
dialog.optin {
  width: min(640px, calc(100% - 24px)); max-height: calc(100svh - 24px);
  padding: 0; border: 0; border-radius: 0;
  background: var(--paper); color: var(--ink);
  overflow: auto;
}
dialog.optin::backdrop { background: rgba(13,13,12,.72); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
dialog.optin[open] { animation: rise .5s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }
.optin__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 32px 32px 0; }
.optin__head h2 { font-size: clamp(30px, 4vw, 40px); line-height: 1.05; margin-top: 14px; }
.optin__head p { margin: 12px 0 0; color: var(--muted); font-size: 16px; }
.optin__close { flex-shrink: 0; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: transparent; cursor: pointer; display: grid; place-items: center; transition: background .2s, color .2s; }
.optin__close:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.optin__close svg { width: 16px; height: 16px; }
.form { padding: 28px 32px 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field > label, .field legend { font-size: 14px; font-weight: 500; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 14px;
  font: 400 16px/1.4 var(--sans); color: var(--ink);
  background: var(--paper-2); border: 1px solid var(--line); border-radius: 4px;
  transition: border-color .2s, background .2s;
  appearance: none; -webkit-appearance: none;
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230D0D0C' stroke-width='1.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 44px; }
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); background: #fff; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }
.field [aria-invalid="true"] { border-color: var(--error); }
.field .err { font-size: 13px; color: var(--error); min-height: 0; }
.field .err:empty { display: none; }
fieldset.field { border: 0; margin: 0; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; font-size: 15px; cursor: pointer; transition: all .2s; background: var(--paper); }
.chip span:hover { border-color: var(--ink); }
.chip input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip input:focus-visible + span { outline: 2px solid var(--signal); outline-offset: 2px; }
.consent { grid-column: 1 / -1; display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--muted); line-height: 1.5; }
.consent input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--ink); flex-shrink: 0; }
.form__foot { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 8px; }
.form__foot small { color: var(--muted); font-size: 13px; }
.form__status { grid-column: 1 / -1; font-size: 14px; color: var(--error); }
.form__status:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 560px) {
  .form { grid-template-columns: 1fr; padding: 24px 20px 24px; }
  .optin__head { padding: 24px 20px 0; }
  .form__foot .btn { width: 100%; }
}
.spinner { width: 18px; height: 18px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; display: none; }
.is-loading .spinner { display: inline-block; }
.is-loading .arrow { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Thank-you page ---------- */
.thanks { min-height: 100svh; display: grid; grid-template-columns: 1fr 1fr; background: var(--ink); color: var(--paper); }
.thanks__img { position: relative; overflow: hidden; }
.thanks__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; filter: grayscale(1); }
.thanks__body { display: flex; flex-direction: column; justify-content: space-between; padding: 40px clamp(24px, 6vw, 88px); gap: 48px; }
.thanks__top { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.thanks .display { font-size: clamp(52px, 7vw, 104px); max-width: 10ch; margin: 24px 0 32px; }
.thanks p { color: rgba(243,241,236,.82); font-size: 19px; }
.thanks .steps-mini { list-style: none; padding: 0; margin: 40px 0; border-top: 1px solid var(--line-dark); }
.thanks .steps-mini li { display: grid; grid-template-columns: 40px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line-dark); color: var(--muted-dark); font-size: 17px; }
.thanks .steps-mini li span { font-family: var(--serif); font-style: italic; color: var(--paper); font-size: 22px; line-height: 1.2; }
.thanks__ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.check { width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--line-dark); display: grid; place-items: center; color: var(--signal); }
.check svg { width: 24px; height: 24px; stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw .8s .3s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@media (max-width: 900px) { .thanks { grid-template-columns: 1fr; } .thanks__img { height: 42vh; order: -1; } }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal[data-delay="1"] { transition-delay: .1s; }
.js .reveal[data-delay="2"] { transition-delay: .2s; }
.js .reveal[data-delay="3"] { transition-delay: .3s; }
.hero .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero .line > span { display: block; }
.js .hero .line > span { transform: translateY(105%); transition: transform 1.1s var(--ease); }
.js.is-loaded .hero .line > span { transform: none; }
.js.is-loaded .hero .line:nth-child(2) > span { transition-delay: .12s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal, .js .hero .line > span { opacity: 1; transform: none; }
  .hero__img, .band img { transform: none !important; }
}

/* =========================================================
   Motion layer
   ========================================================= */

/* Scroll progress: thin signal line at the very top */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60; background: var(--signal); transform: scaleX(0); transform-origin: 0 50%; pointer-events: none; }

/* Nav hides on scroll down, returns on scroll up */
.nav { transition: background .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease), transform .5s var(--ease); }
.nav.is-hidden { transform: translateY(-100%); }

/* Hero photo settles in on load */
.js .hero__img img { transform: scale(1.14); transition: transform 2.6s var(--ease); }
.js.is-loaded .hero__img img { transform: scale(1); }
.js .hero__kicker, .js .hero__bottom { opacity: 0; transform: translateY(16px); transition: opacity 1s var(--ease) .5s, transform 1s var(--ease) .5s; }
.js.is-loaded .hero__kicker, .js.is-loaded .hero__bottom { opacity: 1; transform: none; }
.js.is-loaded .hero__bottom { transition-delay: .7s; }

/* Headlines: each word rises out of a mask */
.js .reveal.split { opacity: 1; transform: none; }
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.w > span { display: inline-block; transform: translateY(110%); transition: transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 45ms); }
.split.is-in .w > span { transform: none; }

/* Photos: wipe up from the bottom, image eases out of a zoom */
.js .reveal.wipe { opacity: 1; transform: none; clip-path: inset(100% 0 0 0); transition: clip-path 1.3s var(--ease); }
.js .reveal.wipe.is-in { clip-path: inset(0 0 0 0); }
.js .reveal.wipe img { transform: scale(1.18); transition: transform 1.8s var(--ease), filter .8s var(--ease); }
.js .reveal.wipe.is-in img { transform: scale(1.02); }
@media (hover: hover) { .js .gallery figure.is-in:hover img { transform: scale(1.07); } }

/* Process steps: the top rule draws itself */
.step { border-top: 0; position: relative; }
.step::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--ink); transform-origin: 0 50%; transition: transform 1.2s var(--ease) .1s; }
.js .step::before { transform: scaleX(0); }
.js .step.is-in::before { transform: scaleX(1); }

/* Rows and formats respond to the pointer */
.row h3 { transition: transform .45s var(--ease); }
.row:hover h3 { transform: translateX(6px); }
.format__price::before { transition: width .45s var(--ease); }
.format:hover .format__price::before { width: 48px; }
.format h3 { transition: transform .45s var(--ease); }
.format:hover h3 { transform: translateY(-3px); }

/* Magnetic buttons need a smooth return */
.btn { transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .35s var(--ease); }

@media (prefers-reduced-motion: reduce) {
  .js .hero__img img, .js .reveal.wipe img { transform: none; }
  .js .hero__kicker, .js .hero__bottom { opacity: 1; transform: none; }
  .w > span { transform: none; }
  .js .reveal.wipe { clip-path: none; }
  .js .step::before { transform: none; }
  .nav.is-hidden { transform: none; }
}

/* Gracie Barra: photo + facts */
.gb-grid { display: grid; grid-template-columns: 7fr 5fr; gap: 64px; align-items: stretch; }
.gb-photo { position: relative; margin: 0; overflow: hidden; min-height: 560px; background: var(--ink-2); }
.gb-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 45% 40%; filter: grayscale(1) contrast(1.05); }
.gb-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(13,13,12,.75)); }
.gb-photo figcaption { position: absolute; left: 24px; right: 24px; bottom: 20px; z-index: 2; display: flex; justify-content: space-between; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: rgba(243,241,236,.85); }
.gb-facts { display: flex; flex-direction: column; justify-content: space-between; border-top: 1px solid var(--line-dark); }
.gb-fact { display: flex; flex-direction: column; gap: 12px; padding: 28px 0; border-bottom: 1px solid var(--line-dark); flex: 1; justify-content: center; }
.gb-fact p { color: var(--muted-dark); font-size: 17px; margin: 0; }
.gb-fact .h3 { font-size: 28px; }
@media (max-width: 900px) {
  .gb-grid { grid-template-columns: 1fr; gap: 32px; }
  .gb-photo { min-height: 0; aspect-ratio: 4 / 3; max-width: 100%; }
}

/* Balanced line breaks: no lonely words */
h1, h2, h3, .lead, blockquote, .faq summary span { text-wrap: balance; }
p, li, figcaption { text-wrap: pretty; }
.nw { white-space: nowrap; }

/* =========================================================
   Hover layer (desktop with mouse only)
   ========================================================= */
@media (hover: hover) and (pointer: fine) {
  /* Nav links: underline slides in from the left */
  .nav__links a { position: relative; }
  .nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
  .nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }

  /* Photos: colour returns and the image follows the cursor slightly */
  .about__photo img, .gb-photo img, .gallery img { translate: var(--mx, 0) var(--my, 0); transition: transform 1.8s var(--ease), filter .8s var(--ease), translate .7s var(--ease); }
  .about__photo:hover img, .gb-photo:hover img { filter: grayscale(0) contrast(1); }
  .gb-photo figcaption span { transition: transform .5s var(--ease); }
  .gb-photo:hover figcaption span:first-child { transform: translateX(6px); }
  .gb-photo:hover figcaption span:last-child { transform: translateX(-6px); }

  /* Facts: number nudges, label brightens */
  .fact strong { transition: transform .45s var(--ease); }
  .fact:hover strong { transform: translateX(6px); }
  .fact span { transition: color .3s; }
  .fact:hover span { color: var(--ink); }

  /* Gracie Barra facts */
  .gb-fact .h3 { transition: transform .45s var(--ease); }
  .gb-fact:hover .h3 { transform: translateX(8px); }
  .gb-fact .format__tag { transition: color .3s; }
  .gb-fact:hover .format__tag { color: var(--paper); }

  /* Steps: numeral comes forward */
  .step__n { transition: transform .5s var(--ease), color .3s; }
  .step:hover .step__n { transform: translateX(8px); color: var(--ink); }

  /* Testimonials: a red rule draws across the top */
  .quote { position: relative; }
  .quote::before { content: ""; position: absolute; top: -1px; left: 0; height: 1px; width: 100%; background: var(--signal); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
  .quote:hover::before { transform: scaleX(1); }
  .quote blockquote { transition: transform .5s var(--ease); }
  .quote:hover blockquote { transform: translateY(-4px); }

  /* FAQ: question shifts, plus button fills */
  .faq summary > span:first-child { transition: transform .4s var(--ease); }
  .faq summary:hover > span:first-child { transform: translateX(8px); }
  .faq summary:hover .plus { border-color: var(--ink); }

  /* Footer Instagram */
  .footer__row a svg { transition: transform .5s var(--ease); }
  .footer__row a:hover svg { transform: rotate(-12deg) scale(1.1); }

}

/* Final CTA: photo on the right on wide screens, so the face stays clear of the text */
@media (min-width: 900px) {
  .final__bg { left: 42%; }
  .final__bg img { opacity: .6; object-position: 50% 30%; }
  .final__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--ink) 0%, rgba(13,13,12,.6) 25%, rgba(13,13,12,0) 60%); }
}

/* About photo: fills the full height of the text column, caption on the photo */
.about { align-items: stretch; }
.about__photo { aspect-ratio: auto; height: 100%; min-height: 560px; }
.about__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 35%; }
.about__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 65%, rgba(13,13,12,.6)); pointer-events: none; }
.about__photo figcaption { left: 24px; right: 24px; bottom: 20px; z-index: 2; background: none; padding: 0; color: rgba(243,241,236,.9); display: flex; justify-content: space-between; }
@media (max-width: 900px) {
  .about__photo { height: auto; min-height: 0; aspect-ratio: 4 / 5; }
}
