/* Daniel Gracie Jiu-Jitsu Miami: one stylesheet for the whole site.
   Map of the system (extend it, don't fork it):
   1. Tokens          colours, type, spacing
   2. Base            reset, body, links, focus
   3. Layout          .wrap, .section (+ --ink / --bone / --paper / --tight), .grid-2
   4. Type            .eyebrow, .display (+ --xl / --lg / --md), .lede, .serif, .accent, .prose
   5. Signature       .snake (coral-snake band), .ring-text (rotating circle text)
   6. Buttons         .btn (+ --gold / --ghost / --light / --block), .text-link
   7. Header + nav    .site-header, .brand, .site-nav, .nav-toggle, .nav-cta
   8. Hero            .hero (home) and .page-hero (inner pages)
   9. Components      .creds, .program-card, .lineage, .coach, .reels/.reel, .voices/.voice,
                      .roots, .visit, .facts-list, .media-frame
                      inner pages: .chips, .pillars, .flow, .photo-row, .duo, .faq, .stats,
                      .path, .camp-coach, .camp-next, .mosaic, .map-frame, .trio
   10. Lead form      .trial, .lead-form, .field, .form-note, .form-error
   11. Footer         .site-footer
   12. Landing pages  .lp (for /lp/lead and /lp/book), .lp-hero, .lp-proof, .lp-book
   13. Utilities      .visually-hidden, .center, .mt-*, reveal motion */

/* 1. Tokens */
:root {
  --ink: #15120e;
  --ink-2: #1f1a15;
  --ink-3: #2c251e;
  --bone: #f3ecdf;
  --paper: #faf6ee;
  --gold: #e8a826;
  --gold-soft: #f2c867;
  --gold-deep: #9c6a08;
  --coral: #cc1f2d;
  --text: #1b1713;
  --text-soft: #5b5248;
  --text-on-ink: #f3ecdf;
  --text-on-ink-soft: #b9ae9d;
  --line: rgba(27, 23, 19, 0.14);
  --line-on-ink: rgba(243, 236, 223, 0.16);

  --font-display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;

  --gutter: clamp(16px, 4.5vw, 48px);
  --max: 1240px;
  --section-pad: clamp(64px, 10vw, 128px);
  --radius: 4px;
  --header-h: 68px;
  --shadow: 0 24px 60px -24px rgba(21, 18, 14, 0.45);
}

/* 2. Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
::selection { background: var(--gold); color: var(--ink); }

/* 3. Layout */
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section-pad) 0; position: relative; }
.section--tight { padding: clamp(40px, 6vw, 72px) 0; }
.section--ink { background: var(--ink); color: var(--text-on-ink); }
.section--ink-2 { background: var(--ink-2); color: var(--text-on-ink); }
.section--bone { background: var(--bone); }
.section--paper { background: var(--paper); }
.section__head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.section__head--center { margin-left: auto; margin-right: auto; text-align: center; }
.grid-2 { display: grid; gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (min-width: 900px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-2--wide-left { grid-template-columns: 1.15fr 0.85fr; }
  .grid-2--wide-right { grid-template-columns: 0.85fr 1.15fr; }
}

/* 4. Type */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold-deep); margin: 0 0 18px;
}
.eyebrow::before { content: ""; width: 26px; height: 6px; background: linear-gradient(90deg, var(--coral) 0 40%, var(--gold) 40% 60%, var(--ink) 60%); border-radius: 1px; }
.section--ink .eyebrow, .section--ink-2 .eyebrow, .hero .eyebrow, .page-hero .eyebrow { color: var(--gold); }
.section--ink .eyebrow::before, .section--ink-2 .eyebrow::before, .hero .eyebrow::before, .page-hero .eyebrow::before { background: linear-gradient(90deg, var(--coral) 0 40%, var(--gold) 40% 60%, var(--bone) 60%); }

.display {
  font-family: var(--font-display);
  font-weight: 900;
  font-variation-settings: "wdth" 68;
  text-transform: uppercase;
  line-height: 0.9;
  letter-spacing: -0.005em;
}
.display--xl { font-size: clamp(56px, 13.5vw, 148px); }
.display--lg { font-size: clamp(42px, 8vw, 92px); }
.display--md { font-size: clamp(32px, 5.2vw, 60px); line-height: 0.95; }
.display--sm { font-size: clamp(24px, 3vw, 32px); line-height: 1; }
.accent { color: var(--gold); }
.section--paper .accent, .section--bone .accent { color: var(--coral); }
.lede { font-size: clamp(18px, 2vw, 21px); line-height: 1.55; color: var(--text-soft); max-width: 60ch; }
.section--ink .lede, .section--ink-2 .lede, .hero .lede, .page-hero .lede, .roots .lede { color: var(--text-on-ink-soft); }
.serif { font-family: var(--font-serif); font-style: italic; font-weight: 400; }
.prose p { max-width: 62ch; }
.prose strong { font-weight: 700; }
.section--ink .prose, .section--ink-2 .prose { color: var(--text-on-ink-soft); }
.section--ink .prose strong, .section--ink-2 .prose strong { color: var(--text-on-ink); }

/* 5. Signature: the coral-snake band from the ring around the jaguar */
.snake {
  height: 12px; width: 100%;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.18), rgba(0,0,0,0) 40%, rgba(0,0,0,0.22)),
    repeating-linear-gradient(90deg,
      var(--ink) 0 26px,
      var(--gold) 26px 31px,
      var(--coral) 31px 49px,
      var(--gold) 49px 54px);
}
.snake--thin { height: 6px; }
.snake--short { width: 108px; height: 8px; border-radius: 2px; }
.ring-text { width: 168px; height: 168px; animation: ring-spin 38s linear infinite; }
.ring-text text { font-family: var(--font-display); font-weight: 800; font-size: 12.5px; letter-spacing: 0.22em; text-transform: uppercase; fill: currentColor; }
@keyframes ring-spin { to { transform: rotate(360deg); } }

/* 6. Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  font-family: var(--font-display); font-weight: 800; font-size: 16px;
  font-variation-settings: "wdth" 85; letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none; border: 2px solid transparent; border-radius: var(--radius);
  cursor: pointer; transition: transform 0.18s ease, background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--gold { background: var(--gold); color: var(--ink); }
.btn--gold:hover { background: var(--gold-soft); }
.btn--ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn--ghost:hover { background: rgba(232, 168, 38, 0.12); }
.btn--dark { background: var(--ink); color: var(--bone); }
.btn--dark:hover { background: var(--ink-3); }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.text-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; text-decoration: none; letter-spacing: 0.02em;
  border-bottom: 2px solid var(--gold); padding-bottom: 2px;
}
.text-link:hover { color: var(--gold-deep); }
.section--ink .text-link:hover, .section--ink-2 .text-link:hover { color: var(--gold); }

/* 7. Header + nav */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(21, 18, 14, 0.94);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: var(--text-on-ink);
  border-bottom: 1px solid var(--line-on-ink);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.brand img { width: 40px; height: auto; flex: none; }
.brand__name { display: flex; flex-direction: column; line-height: 1; font-family: var(--font-display); text-transform: uppercase; }
.brand__name b { font-weight: 900; font-size: 18px; font-variation-settings: "wdth" 72; letter-spacing: 0.02em; }
.brand__name span { font-weight: 600; font-size: 11px; letter-spacing: 0.24em; color: var(--gold); margin-top: 4px; }
.site-nav { display: none; }
.site-nav ul { display: flex; align-items: center; gap: 4px; }
.site-nav a {
  display: block; padding: 10px 12px; text-decoration: none;
  font-weight: 600; font-size: 15px; color: var(--text-on-ink-soft); border-radius: var(--radius);
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text-on-ink); }
.site-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--gold); border-radius: 0; }
.nav-cta { min-height: 42px; padding: 0 18px; font-size: 14px; }
.site-header .nav-cta { display: none; }
.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center; flex-direction: column; gap: 5px;
  width: 46px; height: 46px; background: transparent; border: 1px solid var(--line-on-ink); border-radius: var(--radius);
  color: var(--bone); cursor: pointer;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: currentColor; transition: transform 0.2s ease, opacity 0.2s ease; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-nav {
  display: none; position: fixed; inset: var(--header-h) 0 0 0; z-index: 49;
  background: var(--ink); color: var(--bone); padding: 28px var(--gutter) 40px; overflow-y: auto;
}
.nav-open .mobile-nav { display: flex; flex-direction: column; gap: 28px; }
.nav-open { overflow: hidden; }
.mobile-nav ul { display: flex; flex-direction: column; }
.mobile-nav a.mobile-nav__link {
  display: block; padding: 14px 0; border-bottom: 1px solid var(--line-on-ink); text-decoration: none;
  font-family: var(--font-display); font-weight: 900; font-variation-settings: "wdth" 70; text-transform: uppercase;
  font-size: 34px; line-height: 1;
}
.mobile-nav a.mobile-nav__link:hover { color: var(--gold); }
.mobile-nav__meta { color: var(--text-on-ink-soft); font-size: 15px; }
.mobile-nav__meta a { color: var(--bone); }
@media (min-width: 1080px) {
  .site-nav { display: block; }
  .site-header .nav-cta { display: inline-flex; }
  .nav-toggle, .mobile-nav, .nav-open .mobile-nav { display: none; }
  .nav-open { overflow: visible; }
}

/* 8. Hero (home) */
.hero { background: var(--ink); color: var(--text-on-ink); position: relative; overflow: hidden; }
.hero__grid { display: grid; gap: 0; }
.hero__media { position: relative; margin: 0 calc(var(--gutter) * -1); }
.hero__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 40%; }
.hero__media::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 45%;
  background: linear-gradient(180deg, rgba(21,18,14,0), var(--ink));
}
.hero__tag {
  position: absolute; left: var(--gutter); bottom: 14px; z-index: 2;
  font-size: 12px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--bone);
  display: inline-flex; gap: 8px; align-items: center;
}
.hero__tag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 4px rgba(204,31,45,0.25); }
.hero__copy { padding: 18px 0 clamp(48px, 7vw, 96px); position: relative; z-index: 2; }
.hero__title { margin-bottom: 22px; }
.hero__title .line { display: block; }
.hero .lede { margin-bottom: 30px; }
.hero__phone { margin-top: 18px; font-size: 15px; color: var(--text-on-ink-soft); }
.hero__phone a { color: var(--bone); font-weight: 700; text-decoration: none; border-bottom: 1px solid var(--gold); }
@media (min-width: 960px) {
  .hero__grid { grid-template-columns: 1.1fr 1fr; align-items: stretch; min-height: min(calc(100vh - var(--header-h)), 820px); }
  .hero .display--xl { font-size: clamp(64px, 6.6vw, 104px); }
  .hero__copy { order: 1; padding: clamp(56px, 7vw, 104px) 48px clamp(56px, 7vw, 96px) 0; align-self: center; }
  .hero__media { order: 2; margin: 0 calc(var(--gutter) * -1) 0 0; }
  .hero__media img { height: 100%; aspect-ratio: auto; object-position: 50% 30%; }
  .hero__media::after { inset: 0 auto 0 0; width: 34%; height: 100%; background: linear-gradient(90deg, var(--ink), rgba(21,18,14,0)); }
  .hero__tag { left: auto; right: 24px; bottom: 22px; }
}
@media (min-width: 1240px) {
  .hero__media { margin-right: calc((100vw - var(--max)) / -2 - var(--gutter)); }
}

/* Inner-page hero: builder 2 uses this on program, coach, camps and contact pages */
.page-hero { background: var(--ink); color: var(--text-on-ink); position: relative; overflow: hidden; }
.page-hero__grid { display: grid; gap: 32px; padding-top: clamp(48px, 8vw, 112px); padding-bottom: clamp(48px, 7vw, 96px); align-items: end; }
.page-hero__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.page-hero .lede { margin-top: 20px; }
.page-hero .btn-row { margin-top: 28px; }
@media (min-width: 960px) { .page-hero__grid { grid-template-columns: 1.1fr 0.9fr; gap: 64px; } }

/* 9. Components */

/* Credentials strip under the hero */
.creds { background: var(--bone); border-bottom: 1px solid var(--line); }
.creds ul { display: grid; grid-template-columns: 1fr 1fr; }
.creds li { padding: 22px 12px 22px 0; border-top: 1px solid var(--line); }
.creds li:nth-child(-n+2) { border-top: 0; }
.creds b { display: block; font-family: var(--font-display); font-weight: 900; font-variation-settings: "wdth" 70; text-transform: uppercase; font-size: clamp(22px, 3vw, 30px); line-height: 1; }
.creds span { display: block; margin-top: 6px; font-size: 14px; color: var(--text-soft); line-height: 1.35; }
@media (min-width: 900px) {
  .creds ul { grid-template-columns: repeat(4, 1fr); }
  .creds li { border-top: 0; padding: 30px 24px; border-left: 1px solid var(--line); }
  .creds li:first-child { border-left: 0; padding-left: 0; }
}

/* Program cards */
.programs { display: grid; gap: 20px; }
@media (min-width: 900px) { .programs { grid-template-columns: repeat(2, 1fr); gap: 24px; } }
@media (min-width: 1200px) { .programs { grid-template-columns: repeat(4, 1fr); } }
.program-card {
  position: relative; display: flex; flex-direction: column; background: var(--ink); color: var(--text-on-ink);
  text-decoration: none; border-radius: var(--radius); overflow: hidden; min-height: 460px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.program-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.program-card__img { position: absolute; inset: 0; }
.program-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.program-card:hover .program-card__img img { transform: scale(1.04); }
.program-card__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(21,18,14,0.05) 20%, rgba(21,18,14,0.92) 72%); }
.program-card__body { position: relative; margin-top: auto; padding: 26px 24px 26px; }
.program-card__age {
  display: inline-block; margin-bottom: 14px; padding: 6px 10px; background: var(--gold); color: var(--ink);
  font-size: 12px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; border-radius: 2px;
}
.program-card h3 { font-family: var(--font-display); font-weight: 900; font-variation-settings: "wdth" 68; text-transform: uppercase; font-size: clamp(34px, 4vw, 44px); line-height: 0.92; margin-bottom: 12px; }
.program-card p { color: var(--text-on-ink-soft); font-size: 16px; margin-bottom: 18px; }
.program-card__more { font-weight: 700; color: var(--gold); display: inline-flex; gap: 8px; align-items: center; }
.program-card__more::after { content: "\2192"; transition: transform 0.2s ease; }
.program-card:hover .program-card__more::after { transform: translateX(4px); }

/* Lineage: rings on a line, from the snake ring in the logo */
.lineage { display: grid; gap: 0; position: relative; counter-reset: lineage; }
.lineage__step { position: relative; display: grid; grid-template-columns: 72px 1fr; gap: 18px; padding-bottom: 36px; }
.lineage__step::before {
  content: ""; position: absolute; left: 35px; top: 72px; bottom: 0; width: 2px;
  background: repeating-linear-gradient(180deg, var(--gold) 0 6px, transparent 6px 12px);
}
.lineage__step:last-child { padding-bottom: 0; }
.lineage__step:last-child::before { display: none; }
.lineage__ring {
  width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center;
  background: var(--paper); border: 6px solid var(--ink); box-shadow: 0 0 0 3px var(--gold);
  font-family: var(--font-display); font-weight: 900; font-variation-settings: "wdth" 70; font-size: 22px; text-transform: uppercase;
}
.lineage__step--you .lineage__ring { background: var(--gold); border-color: var(--coral); box-shadow: 0 0 0 3px var(--ink); }
.lineage__name { font-family: var(--font-display); font-weight: 900; font-variation-settings: "wdth" 72; text-transform: uppercase; font-size: 26px; line-height: 1; margin: 6px 0 6px; }
.lineage__role { font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--coral); margin-bottom: 8px; }
.lineage__text { color: var(--text-soft); font-size: 16px; margin: 0; max-width: 46ch; }
@media (min-width: 960px) {
  .lineage { grid-template-columns: repeat(4, 1fr); gap: 28px; }
  .lineage__step { grid-template-columns: 1fr; gap: 14px; padding-bottom: 0; align-content: start; }
  .lineage__step::before { left: 84px; right: -28px; top: 35px; bottom: auto; width: auto; height: 2px; background: repeating-linear-gradient(90deg, var(--gold) 0 6px, transparent 6px 12px); }
}

/* Coach feature */
.coach { display: grid; gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (min-width: 900px) { .coach { grid-template-columns: 0.8fr 1.2fr; } }
.media-frame { position: relative; }
.media-frame img { width: 100%; border-radius: var(--radius); }
.media-frame::before {
  content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 2px solid var(--gold); border-radius: var(--radius); z-index: 0;
}
.media-frame > * { position: relative; z-index: 1; }
.media-frame__caption { margin-top: 30px; font-size: 13px; color: var(--text-on-ink-soft); letter-spacing: 0.04em; }
.coach__name { margin-bottom: 8px; }
.coach__title { font-weight: 700; letter-spacing: 0.14em; font-size: 13px; text-transform: uppercase; color: var(--gold); margin-bottom: 26px; }
.coach .prose p { font-size: 17px; }
.pull {
  margin: 30px 0; padding: 22px 0 22px 24px; border-left: 4px solid var(--coral);
  font-family: var(--font-serif); font-style: italic; font-size: clamp(20px, 2.4vw, 26px); line-height: 1.35;
}
.pull cite { display: block; margin-top: 10px; font-family: var(--font-body); font-style: normal; font-size: 14px; letter-spacing: 0.06em; opacity: 0.75; }
.facts-list { display: grid; gap: 10px; margin: 0 0 28px; }
.facts-list li { position: relative; padding-left: 22px; }
.facts-list li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 10px; height: 10px; background: var(--gold); transform: rotate(45deg); }

/* Reels: vertical technique videos. Only one plays at a time (site.js) */
.reels { display: grid; grid-auto-flow: column; grid-auto-columns: 72%; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; margin: 0 calc(var(--gutter) * -1); padding-left: var(--gutter); padding-right: var(--gutter); scroll-padding-inline: var(--gutter); scrollbar-width: thin; }
@media (min-width: 700px) { .reels { grid-auto-columns: 40%; } }
@media (min-width: 1000px) { .reels { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); overflow: visible; margin: 0; padding: 0; } }
.reel { scroll-snap-align: start; position: relative; margin: 0; }
.reel__frame { position: relative; aspect-ratio: 9 / 16; border-radius: var(--radius); overflow: hidden; background: var(--ink-3); }
.reel video, .reel__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reel__play {
  position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, rgba(21,18,14,0) 50%, rgba(21,18,14,0.8)); border: 0; cursor: pointer; color: var(--bone); padding: 0;
}
.reel__play::before {
  content: ""; width: 68px; height: 68px; border-radius: 50%; background: var(--gold);
  box-shadow: 0 0 0 8px rgba(232,168,38,0.25); transition: transform 0.2s ease;
}
.reel__play::after { content: ""; position: absolute; border-style: solid; border-width: 12px 0 12px 19px; border-color: transparent transparent transparent var(--ink); margin-left: 5px; }
.reel__play:hover::before { transform: scale(1.08); }
.reel.is-playing .reel__play { display: none; }
.reel figcaption { margin-top: 12px; font-weight: 700; font-size: 15px; line-height: 1.3; }
.reel figcaption span { display: block; font-weight: 500; font-size: 13px; color: var(--text-on-ink-soft); margin-top: 2px; }

/* Voices: Google reviews, English y español */
.voices { columns: 1; column-gap: 20px; }
@media (min-width: 720px) { .voices { columns: 2; } }
@media (min-width: 1060px) { .voices { columns: 3; } }
.voice { break-inside: avoid; margin: 0 0 20px; padding: 28px 26px 24px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); position: relative; }
.voice::before { content: ""; position: absolute; top: -1px; left: 26px; width: 54px; height: 5px; background: repeating-linear-gradient(90deg, var(--coral) 0 18px, var(--gold) 18px 22px, var(--ink) 22px 36px, var(--gold) 36px 40px); }
.voice blockquote { margin: 0 0 16px; font-family: var(--font-serif); font-style: italic; font-size: 19px; line-height: 1.45; }
.voice figcaption { font-size: 14px; font-weight: 700; letter-spacing: 0.04em; }
.voice figcaption span { font-weight: 500; color: var(--text-soft); }
.voice--lang blockquote::after { content: attr(data-lang); }
.voices__note { margin-top: 16px; font-size: 14px; color: var(--text-soft); }

/* Roots: the Costa Rica story */
.roots { position: relative; overflow: hidden; background: #10140f; color: var(--text-on-ink); }
.roots__bg { position: absolute; inset: 0; }
.roots__bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.38; }
.roots__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(16,20,15,0.96) 0%, rgba(16,20,15,0.78) 55%, rgba(16,20,15,0.45) 100%); }
.roots .wrap { position: relative; }
.roots__grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .roots__grid { grid-template-columns: 1.2fr 0.8fr; } }
.roots__ring { justify-self: center; position: relative; color: var(--gold); }
.roots__ring img { position: absolute; inset: 0; margin: auto; width: 76px; }
.places { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 30px; }
.places li { padding: 7px 12px; border: 1px solid var(--line-on-ink); border-radius: 999px; font-size: 14px; font-weight: 600; }

/* Visit */
.visit__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.visit__list { display: grid; gap: 20px; margin: 28px 0 32px; }
.visit__list dt { font-size: 12px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--coral); margin-bottom: 4px; }
.visit__list dd { margin: 0; font-size: 19px; font-weight: 600; line-height: 1.35; }
.visit__list a { text-decoration: none; border-bottom: 2px solid var(--gold); }

/* Inner pages (programs, coaches, camps, contact) */
.page-hero__media--portrait img { aspect-ratio: 4 / 5; max-width: 460px; margin-left: auto; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chips li { padding: 7px 12px; border: 1px solid var(--line-on-ink); border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--bone); }
.chips li:first-child { background: var(--gold); border-color: var(--gold); color: var(--ink); }

.pillars { display: grid; gap: 28px; }
@media (min-width: 860px) { .pillars { grid-template-columns: repeat(3, 1fr); gap: 32px; } .pillars--2 { grid-template-columns: 1fr 1fr; } }
.pillar { padding-top: 22px; border-top: 3px solid var(--ink); }
.pillar__num { display: block; font-size: 13px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--coral); }
.pillar h3 { font-family: var(--font-display); font-weight: 900; font-variation-settings: "wdth" 70; text-transform: uppercase; font-size: clamp(26px, 2.8vw, 32px); line-height: 0.95; margin: 10px 0 12px; }
.pillar p { margin: 0; color: var(--text-soft); max-width: 46ch; }
.section--ink .pillar, .section--ink-2 .pillar { border-color: var(--gold); }
.section--ink .pillar p, .section--ink-2 .pillar p { color: var(--text-on-ink-soft); }

.flow { display: grid; counter-reset: flow; }
.flow li { counter-increment: flow; display: grid; grid-template-columns: 64px 1fr; gap: 16px; padding: 24px 0; border-top: 1px solid var(--line); }
.flow li::before { content: "0" counter(flow); font-family: var(--font-display); font-weight: 900; font-variation-settings: "wdth" 70; font-size: 44px; line-height: 0.85; color: var(--gold-deep); }
.flow h3 { font-family: var(--font-display); font-weight: 900; font-variation-settings: "wdth" 70; text-transform: uppercase; font-size: 30px; line-height: 1; margin-bottom: 8px; }
.flow p { margin: 0; color: var(--text-soft); }
@media (min-width: 900px) {
  .flow { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .flow li { grid-template-columns: 1fr; gap: 14px; border-top: 3px solid var(--ink); }
  .flow li::before { font-size: 64px; }
}

.photo-row { display: grid; gap: 18px; }
@media (min-width: 760px) { .photo-row { grid-template-columns: 1fr 1fr; } }
.photo-row figure, .trio figure { margin: 0; }
.photo-row img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); }
.photo-row figcaption, .trio figcaption { margin-top: 10px; font-size: 14px; color: var(--text-soft); }
.trio figcaption b { color: var(--text); }
.photo-stack img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }

.duo { display: grid; gap: 20px; }
@media (min-width: 820px) { .duo { grid-template-columns: 1fr 1fr; gap: 28px; } }
.duo__card { margin: 0; background: var(--paper); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.duo__card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.duo__card figcaption { padding: 24px 24px 26px; }
.duo__card h3 { font-family: var(--font-display); font-weight: 900; font-variation-settings: "wdth" 70; text-transform: uppercase; font-size: 34px; line-height: 1; margin-bottom: 10px; }
.duo__card p { margin: 0; color: var(--text-soft); }

.pull--big { font-size: clamp(24px, 3.4vw, 38px); max-width: 30ch; margin: 0 0 40px; }
.voices--on-ink .voice { background: var(--ink-2); border-color: var(--line-on-ink); }
.voices--on-ink .voice figcaption span { color: var(--text-on-ink-soft); }

.faq-wrap { align-items: start; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; position: relative; padding: 22px 48px 22px 0; font-weight: 700; font-size: 19px; line-height: 1.35; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-family: var(--font-display); font-weight: 900; font-size: 30px; line-height: 1; color: var(--coral); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0 0 24px; color: var(--text-soft); max-width: 62ch; }

.reels--two { grid-auto-columns: 72%; }
@media (min-width: 700px) { .reels--two { grid-auto-columns: 46%; } }
@media (min-width: 1000px) { .reels--two { grid-template-columns: repeat(2, 1fr); } }

.coach__title--dark { color: var(--gold-deep); }
.ariel { align-items: start; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); margin: 28px 0 8px; }
.stats div { background: var(--paper); padding: 18px 16px; }
.stats b { display: block; font-family: var(--font-display); font-weight: 900; font-variation-settings: "wdth" 70; text-transform: uppercase; font-size: 30px; line-height: 1; }
.stats span { display: block; margin-top: 6px; font-size: 14px; line-height: 1.35; color: var(--text-soft); }
.path { position: relative; }
.path li { position: relative; padding: 0 0 30px 44px; }
.path li::before { content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%; background: var(--paper); border: 5px solid var(--ink); box-shadow: 0 0 0 2px var(--gold); }
.path li::after { content: ""; position: absolute; left: 10px; top: 32px; bottom: 4px; width: 2px; background: repeating-linear-gradient(180deg, var(--gold) 0 6px, transparent 6px 12px); }
.path li:last-child { padding-bottom: 0; }
.path li:last-child::after { display: none; }
.path .path__now::before { background: var(--gold); border-color: var(--coral); box-shadow: 0 0 0 2px var(--ink); }
.path__place { margin: 0; font-size: 12px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--coral); }
.path h3 { font-family: var(--font-display); font-weight: 900; font-variation-settings: "wdth" 72; text-transform: uppercase; font-size: 26px; line-height: 1; margin: 6px 0 8px; }
.path li > p:last-child { margin: 0; color: var(--text-soft); max-width: 56ch; }
@media (min-width: 900px) { .coach--daniel { grid-template-columns: 0.6fr 1.4fr; } }
.media-frame--small { max-width: 380px; }
.camp-coach { display: grid; gap: 24px; align-items: center; padding: clamp(20px, 3vw, 32px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--bone); }
.camp-coach img { width: 100%; max-width: 260px; aspect-ratio: 1; object-fit: cover; object-position: 50% 20%; border-radius: var(--radius); }
.camp-coach p { color: var(--text-soft); max-width: 62ch; }
.camp-coach .display { margin-bottom: 12px; }
@media (min-width: 760px) { .camp-coach { grid-template-columns: 220px 1fr; gap: 36px; } }

.page-hero--jungle, .section--jungle { background: #10140f; color: var(--text-on-ink); }
.section--jungle .eyebrow { color: var(--gold); }
.section--jungle .eyebrow::before { background: linear-gradient(90deg, var(--coral) 0 40%, var(--gold) 40% 60%, var(--bone) 60%); }
.camp-motto { margin: 22px 0 0; font-size: clamp(22px, 2.6vw, 28px); color: var(--gold-soft); }
.camp-next { display: grid; gap: 24px; padding: clamp(26px, 5vw, 56px); background: var(--gold); color: var(--ink); border-radius: var(--radius); position: relative; overflow: hidden; }
.camp-next::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 10px; background: repeating-linear-gradient(90deg, var(--ink) 0 26px, var(--gold-soft) 26px 31px, var(--coral) 31px 49px, var(--gold-soft) 49px 54px); }
.camp-next__label { margin: 0 0 10px; font-size: 13px; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; }
.camp-next__date { font-family: var(--font-display); font-weight: 900; font-variation-settings: "wdth" 66; text-transform: uppercase; font-size: clamp(64px, 12vw, 150px); line-height: 0.85; }
.camp-next__date span { display: block; margin-top: 14px; font-size: clamp(22px, 3vw, 34px); font-variation-settings: "wdth" 75; line-height: 1; }
.camp-next__text { font-size: 18px; max-width: 40ch; }
@media (min-width: 900px) { .camp-next { grid-template-columns: 1.3fr 1fr; align-items: end; } }
.places--dark li { border-color: var(--line); background: var(--paper); }
.mosaic { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mosaic figure { margin: 0; overflow: hidden; border-radius: var(--radius); }
.mosaic img { width: 100%; height: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.mosaic .is-wide { grid-column: span 2; }
@media (min-width: 900px) {
  .mosaic { grid-template-columns: repeat(4, 1fr); gap: 14px; }
  .mosaic .is-tall { grid-row: span 2; }
  .mosaic .is-tall img { aspect-ratio: auto; }
}
.mosaic__note { margin: 16px 0 0; font-size: 13px; color: var(--text-on-ink-soft); }
.media-frame--light::before { border-color: var(--coral); }

.contact-grid { align-items: start; }
.map-frame { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.map-frame iframe { display: block; width: 100%; aspect-ratio: 4 / 3; border: 0; }
.trio { display: grid; gap: 18px; }
@media (min-width: 760px) { .trio { grid-template-columns: repeat(3, 1fr); } }
.trio img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }

/* 10. Lead form (shared by home, contact, program pages and /lp/lead) */
.trial { background: var(--ink); color: var(--text-on-ink); position: relative; overflow: hidden; }
.trial__grid { display: grid; gap: 40px; align-items: start; }
@media (min-width: 960px) { .trial__grid { grid-template-columns: 1fr 0.9fr; gap: 72px; align-items: center; } }
.trial__steps { display: grid; gap: 14px; margin-top: 28px; counter-reset: step; }
.trial__steps li { counter-increment: step; display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: baseline; color: var(--text-on-ink-soft); }
.trial__steps li::before { content: counter(step); font-family: var(--font-display); font-weight: 900; font-variation-settings: "wdth" 70; font-size: 30px; color: var(--gold); line-height: 1; }
.trial__steps b { color: var(--bone); }
.lead-form {
  background: var(--paper); color: var(--text); border-radius: var(--radius); padding: clamp(24px, 4vw, 40px);
  box-shadow: 0 30px 80px -30px rgba(0,0,0,0.6); position: relative;
}
.lead-form::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 8px; border-radius: var(--radius) var(--radius) 0 0; background: repeating-linear-gradient(90deg, var(--ink) 0 26px, var(--gold) 26px 31px, var(--coral) 31px 49px, var(--gold) 49px 54px); }
.lead-form__title { font-family: var(--font-display); font-weight: 900; font-variation-settings: "wdth" 70; text-transform: uppercase; font-size: 30px; line-height: 1; margin: 6px 0 6px; }
.lead-form__sub { color: var(--text-soft); font-size: 15px; margin-bottom: 22px; }
.field { display: block; margin-bottom: 16px; }
.field__label { display: block; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 6px; }
.field__label i { font-style: normal; font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--text-soft); }
.field input, .field select {
  width: 100%; min-height: 52px; padding: 12px 14px; font: inherit; font-size: 17px; color: var(--text);
  background: #fff; border: 1.5px solid #cfc5b4; border-radius: var(--radius); appearance: none; -webkit-appearance: none;
}
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 44px; }
.field input:focus, .field select:focus { outline: none; border-color: var(--gold-deep); box-shadow: 0 0 0 3px rgba(232,168,38,0.35); }
.field input[aria-invalid="true"] { border-color: var(--coral); }
.lead-form .btn { margin-top: 6px; }
.form-error { display: none; margin: 12px 0 0; padding: 10px 12px; background: #fbe7e8; color: #8d1520; border-radius: var(--radius); font-size: 15px; }
.form-error.is-visible { display: block; }
.form-note { margin: 14px 0 0; font-size: 13px; color: var(--text-soft); text-align: center; }
.lead-form.is-sending .btn { opacity: 0.7; pointer-events: none; }

/* 11. Footer */
.site-footer { background: var(--ink); color: var(--text-on-ink-soft); font-size: 15px; }
.site-footer__top { display: grid; gap: 36px; padding-top: 64px; padding-bottom: 40px; }
@media (min-width: 900px) { .site-footer__top { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; } }
.site-footer .brand { margin-bottom: 18px; color: var(--bone); }
.site-footer h3 { font-size: 12px; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { text-decoration: none; color: var(--text-on-ink); }
.site-footer a:hover { color: var(--gold); }
.site-footer address { font-style: normal; line-height: 1.6; }
.site-footer__bottom { display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; padding-top: 22px; padding-bottom: 30px; border-top: 1px solid var(--line-on-ink); font-size: 13px; }
.site-footer__bottom a { border-bottom: 1px solid var(--gold); }

/* 12. Landing pages (/lp/lead, /lp/book): no nav, no links off the page */
.lp { min-height: 100vh; display: flex; flex-direction: column; background: var(--ink); color: var(--text-on-ink); }
.lp__header { padding: 22px 0; display: flex; justify-content: center; }
.lp__header .brand { pointer-events: none; }
.lp__main { flex: 1; }
.lp__footer { padding: 24px 0 32px; text-align: center; font-size: 13px; color: var(--text-on-ink-soft); }
.lp__footer a { color: var(--bone); text-decoration: none; border-bottom: 1px solid var(--gold); }

.lp__header .brand { color: var(--bone); }
.lp-hero__grid { display: grid; gap: 36px; padding-top: clamp(32px, 6vw, 72px); padding-bottom: clamp(40px, 6vw, 72px); align-items: start; }
@media (min-width: 960px) {
  .lp-hero__grid { grid-template-columns: 1.05fr 0.95fr; grid-template-areas: "head form" "more form"; column-gap: 64px; row-gap: 0; }
  .lp-hero__head { grid-area: head; }
  .lp-hero__more { grid-area: more; }
  .lp-hero__form { grid-area: form; position: sticky; top: 24px; }
}
.trial .lede, .lp .lede { color: var(--text-on-ink-soft); }
.lp-hero .display--xl { font-size: clamp(52px, 8vw, 104px); }
.lp-hero .lede { margin-top: 20px; color: var(--text-on-ink-soft); }
.lp-hero .eyebrow, .lp-book .eyebrow { color: var(--gold); }
.lp-hero .eyebrow::before, .lp-book .eyebrow::before { background: linear-gradient(90deg, var(--coral) 0 40%, var(--gold) 40% 60%, var(--bone) 60%); }
.lp-proof { display: grid; gap: 10px; margin: 26px 0 0; }
.lp-proof li { position: relative; padding-left: 22px; color: var(--text-on-ink-soft); }
.lp-proof li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 10px; height: 10px; background: var(--gold); transform: rotate(45deg); }
.lp-proof b { color: var(--bone); }
.lp-hero__img { margin: 30px 0 0; }
.lp-hero__img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: 50% 35%; border-radius: var(--radius); }
.lp-quote { margin: 26px 0 0; padding-left: 20px; border-left: 4px solid var(--coral); font-family: var(--font-serif); font-style: italic; font-size: 19px; line-height: 1.45; color: var(--bone); }
.lp-quote cite { display: block; margin-top: 8px; font-family: var(--font-body); font-style: normal; font-size: 13px; letter-spacing: 0.06em; color: var(--text-on-ink-soft); }
.lp-book { padding: clamp(28px, 5vw, 56px) 0 24px; }
.lp-book__head { text-align: center; margin-bottom: 28px; }
.lp-book__head .lede { margin: 16px auto 0; }
.lp-book__embed { background: #fff; width: 100%; max-width: 1240px; margin: 0 auto; }
.lp-book__embed iframe { display: block; min-height: 720px; }
.lp-book__note { margin: 20px 0 0; text-align: center; font-size: 14px; color: var(--text-on-ink-soft); }

/* 13. Utilities */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.nowrap { white-space: nowrap; }
.center { text-align: center; }
.mt-s { margin-top: 16px; } .mt-m { margin-top: 32px; } .mt-l { margin-top: 56px; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .ring-text { animation: none; }
  .btn, .program-card, .program-card__img img { transition: none; }
}
