/* Apex Creative — launch page
   Type: General Sans (display) + Switzer (text), both from Fontshare.
   Palette pulled from the studio itself: plaster, curtain taupe, walnut. */

:root {
  --paper: #fbf9f5;
  --plaster: #f1ece4;
  --sand: #e4d8c8;
  --clay: #cdb9a2;
  --ink: #1d1814;
  --ink-2: #4a413a;
  --muted: #776a60;
  --line: #e5ddd2;
  --walnut: #2a211b;

  --display: "General Sans", "Helvetica Neue", Arial, sans-serif;
  --text: "Switzer", "Helvetica Neue", Arial, sans-serif;

  --wrap: 72rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 14px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
s { color: var(--muted); font-weight: 400; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip { position: absolute; left: 1rem; top: -3rem; padding: .5rem 1rem; background: var(--ink); color: var(--paper); border-radius: 8px; z-index: 10; }
.skip:focus { top: 1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 3rem; padding: 0 1.4rem;
  background: var(--ink); color: var(--paper);
  border: 1px solid var(--ink); border-radius: 8px;
  font: 500 1rem/1 var(--text); text-decoration: none;
  transition: background-color .2s var(--ease), transform .2s var(--ease);
}
.btn:hover { background: #3a3029; }
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 2.5rem; padding: 0 1rem; font-size: .9375rem; }
.btn-ghost { background: transparent; color: var(--ink); border-color: #cfc4b6; }
.btn-ghost:hover { background: var(--plaster); }
.btn-light { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn-light:hover { background: var(--sand); }
.btn-block { width: 100%; }

/* ---------- Notice + header ---------- */
.notice {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .5rem 1rem;
  width: fit-content; max-width: calc(100% - 2rem);
  margin: .9rem auto 0; padding: .45rem .5rem .45rem 1rem;
  background: var(--plaster); border: 1px solid var(--line); border-radius: 999px;
  font-size: .875rem; color: var(--ink-2);
}
.notice p { display: flex; align-items: center; gap: .55rem; }
.notice-dot { width: .5rem; height: .5rem; border-radius: 50%; background: #5b8a5a; box-shadow: 0 0 0 3px rgba(91,138,90,.18); flex: none; }
.notice a { padding: .3rem .8rem; background: var(--ink); color: var(--paper); border-radius: 999px; text-decoration: none; font-weight: 500; }

.header {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  width: min(100% - 2 * var(--gutter), var(--wrap)); margin: 0 auto; padding: 1.25rem 0;
}
.wordmark { font: 600 1.125rem/1 var(--display); letter-spacing: .2em; text-decoration: none; white-space: nowrap; }
.wordmark span { font-weight: 500; color: var(--muted); }
.wordmark-light span { color: #a8998c; }
.nav { display: flex; gap: 2rem; font-size: .9375rem; color: var(--ink-2); }
.nav a { text-decoration: none; }
.nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: .3em; }

/* ---------- Hero ---------- */
.hero {
  width: min(100% - 2 * var(--gutter), var(--wrap)); margin: 0 auto;
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(3rem, 6vw, 5rem);
  text-align: center;
}
.eyebrow {
  font: 500 .8125rem/1.4 var(--text); letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 1.1rem;
}
.hero h1 {
  max-width: 15ch; margin: 0 auto;
  font-size: clamp(2.5rem, 6.2vw, 4.75rem); line-height: 1.02; letter-spacing: -.035em;
}
.lede { max-width: 36rem; margin: 1.5rem auto 0; font-size: clamp(1.0625rem, 1.6vw, 1.1875rem); color: var(--ink-2); }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: 2rem; }

.showcase { position: relative; margin-top: clamp(2.5rem, 6vw, 4.5rem); }
.showcase-frame {
  padding: clamp(.75rem, 3vw, 2.5rem);
  background: linear-gradient(160deg, var(--sand), var(--clay));
  border-radius: calc(var(--radius) + 6px);
}
.showcase-video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); box-shadow: 0 30px 60px -30px rgba(42,33,27,.55); background: var(--walnut); }

.ratecard {
  position: absolute; right: clamp(1.5rem, 5vw, 4rem); bottom: clamp(-2rem, -3vw, -1rem);
  width: 17rem; padding: 1.25rem 1.25rem 1rem;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 20px 40px -20px rgba(42,33,27,.35);
  text-align: left;
}
.ratecard-label { font: 600 .8125rem/1 var(--text); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: .75rem; }
.ratecard ul { list-style: none; margin: 0; padding: 0; }
.ratecard li { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .6rem 0; border-top: 1px solid var(--line); font-weight: 500; }
.ratecard li small { display: block; font-weight: 400; color: var(--muted); font-size: .8125rem; }
.amount { font-family: var(--display); font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.amount s { font-family: var(--text); font-size: .875rem; margin-left: .2rem; }
.ratecard-link { display: block; margin-top: .4rem; padding-top: .75rem; border-top: 1px solid var(--line); font-weight: 500; text-decoration: none; }
.ratecard-link:hover span { margin-left: .2rem; }
.ratecard-link span { transition: margin .2s var(--ease); }

/* ---------- Sections ---------- */
.section { width: min(100% - 2 * var(--gutter), var(--wrap)); margin: 0 auto; padding: clamp(4rem, 9vw, 7rem) 0; }
.section h2 { font-size: clamp(2rem, 4.2vw, 3.25rem); line-height: 1.05; letter-spacing: -.03em; }
.center-head { max-width: 40rem; margin: 0 auto clamp(2.5rem, 5vw, 3.5rem); text-align: center; }
.center-head p:not(.eyebrow) { margin-top: 1.1rem; color: var(--ink-2); font-size: 1.125rem; }

.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(.75rem, 2vw, 1.25rem); }
.tile { margin: 0; position: relative; overflow: hidden; border-radius: var(--radius); background: var(--sand); }
.tile video, .tile img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.tile figcaption {
  position: absolute; left: .75rem; bottom: .75rem;
  padding: .35rem .7rem; border-radius: 999px;
  background: rgba(251,249,245,.92); backdrop-filter: blur(6px);
  font-size: .8125rem; font-weight: 500;
}

.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2.5rem, 7vw, 6rem); align-items: center; }
.split-copy > p:not(.eyebrow) { margin-top: 1.25rem; color: var(--ink-2); font-size: 1.125rem; max-width: 34rem; }
.split-media { margin: 0; }
.split-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.panel-sand {
  display: grid; justify-items: center; gap: .9rem;
  padding: clamp(1.5rem, 4vw, 3rem);
  background: var(--plaster); border-radius: calc(var(--radius) + 6px);
}
.panel-sand video { width: min(100%, 19rem); aspect-ratio: 9 / 16; object-fit: cover; border-radius: var(--radius); box-shadow: 0 24px 50px -24px rgba(42,33,27,.5); background: var(--walnut); }
.panel-sand figcaption { font-size: .875rem; color: var(--muted); }

.checks { list-style: none; margin: 1.75rem 0 0; padding: 0; display: grid; gap: .7rem; }
.checks li { position: relative; padding-left: 1.85rem; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 1.2rem; height: 1.2rem; border-radius: 50%;
  background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2 7 10.6l4.6-5' fill='none' stroke='%23fbf9f5' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}
.checks-sm { margin-top: 1.25rem; gap: .5rem; font-size: .9375rem; }

.prices { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin-top: 2rem; max-width: 30rem; }
.price-card {
  display: grid; gap: .35rem; padding: 1.1rem 1.15rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none;
  transition: border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.price-card:hover { border-color: var(--ink); transform: translateY(-2px); box-shadow: 0 14px 30px -18px rgba(42,33,27,.4); }
.price-name { font-weight: 500; }
.price-name small { display: block; color: var(--muted); font-weight: 400; font-size: .8125rem; }
.price-figure { font: 600 1.75rem/1.1 var(--display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.price-figure s { font: 400 .9375rem var(--text); margin-left: .25rem; letter-spacing: 0; }
.price-cta { font-size: .9375rem; font-weight: 500; margin-top: .35rem; }

/* ---------- Founders ---------- */
.founders { padding-top: 0; }
.founders-inner {
  display: grid; grid-template-columns: minmax(0, 22rem) 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center;
  padding: clamp(1.5rem, 4vw, 3rem);
  background: var(--plaster); border-radius: calc(var(--radius) + 6px);
}
.founders-photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 20%; border-radius: var(--radius); }
.quote-mark { color: var(--clay); margin-bottom: 1.25rem; }
.founders blockquote { margin: 0; }
.founders blockquote p { font: 500 clamp(1.5rem, 2.8vw, 2.25rem)/1.2 var(--display); letter-spacing: -.02em; }
.founders-name { display: flex; flex-direction: column; margin-top: 1.75rem; }
.founders-name span { color: var(--muted); font-size: .9375rem; }

/* ---------- Dark course block ---------- */
.dark {
  width: 100%; max-width: none;
  background: var(--walnut); color: var(--paper);
  padding-left: var(--gutter); padding-right: var(--gutter);
}
.dark .split { width: min(100%, var(--wrap)); margin: 0 auto; }
.dark .eyebrow { color: #b6a596; }
.dark .split-copy > p:not(.eyebrow) { color: #ddd2c6; }
.dark .checks li::before { background-color: var(--paper); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2 7 10.6l4.6-5' fill='none' stroke='%232a211b' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.buy { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 2.25rem; padding-top: 2rem; border-top: 1px solid rgba(251,249,245,.14); }
.buy-price { font: 600 2.75rem/1 var(--display); letter-spacing: -.03em; display: flex; align-items: baseline; gap: .75rem; }
.buy-price span { font: 400 .9375rem var(--text); letter-spacing: 0; color: #b6a596; }
.buy-price s { color: #b6a596; }
.buy-note { width: 100%; font-size: .875rem; color: #b6a596; }
.buy-note a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.buy-fine { width: 100%; font-size: .78rem; line-height: 1.55; color: #9a8b7e; max-width: 34rem; }
.dark .split-copy > p.need-title { margin-top: 2rem; font: 600 .8125rem var(--text); letter-spacing: .08em; text-transform: uppercase; color: #b6a596; }

/* ---------- Service cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.card {
  display: flex; flex-direction: column;
  padding: 1.75rem; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius);
}
.card-tag { align-self: flex-start; padding: .25rem .65rem; background: var(--plaster); border-radius: 999px; font-size: .8125rem; font-weight: 500; color: var(--ink-2); margin-bottom: 1.25rem; }
.card h3 { font-size: 1.5rem; letter-spacing: -.02em; line-height: 1.15; }
.card > p:not(.card-tag) { margin-top: .6rem; color: var(--ink-2); }
.card-foot { margin-top: auto; padding-top: 1.75rem; }
.card-price { font: 600 2.25rem/1 var(--display); letter-spacing: -.03em; margin-bottom: 1rem; font-variant-numeric: tabular-nums; }
.card-price s { font: 400 1rem var(--text); letter-spacing: 0; margin-left: .3rem; }

/* ---------- Closing ---------- */
.closing { padding-top: 0; }
.closing-box {
  max-width: 46rem; margin: 0 auto; padding: clamp(2.5rem, 6vw, 4rem) clamp(1.5rem, 5vw, 4rem);
  text-align: center; background: #fff; border: 1px solid var(--line); border-radius: calc(var(--radius) + 6px);
  box-shadow: 0 30px 60px -40px rgba(42,33,27,.35);
}
.closing-box p { max-width: 32rem; margin: 1rem auto 2rem; color: var(--ink-2); font-size: 1.125rem; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #d9cfc4; padding: 3.5rem var(--gutter) 2rem; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; width: min(100%, var(--wrap)); margin: 0 auto; }
.footer-inner .wordmark { color: var(--paper); }
.footer-inner p { margin-top: .9rem; font-size: .9375rem; color: #a8998c; }
.footer nav { display: grid; gap: .6rem; align-content: start; font-size: .9375rem; }
.footer nav a { text-decoration: none; }
.footer nav a:hover { color: var(--paper); text-decoration: underline; text-underline-offset: .3em; }
.footer-legal { width: min(100%, var(--wrap)); margin: 3rem auto 0; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.1); font-size: .8125rem; color: #8d7f73; }

/* ---------- Reveal on scroll ---------- */
.js-reveal .reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js-reveal .reveal.is-in { opacity: 1; transform: none; }
.js-reveal .tiles .reveal:nth-child(2), .js-reveal .cards .reveal:nth-child(2) { transition-delay: .08s; }
.js-reveal .tiles .reveal:nth-child(3), .js-reveal .cards .reveal:nth-child(3) { transition-delay: .16s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .split, .founders-inner { grid-template-columns: 1fr; }
  .split-media img { aspect-ratio: 4 / 3; }
  .founders-photo { max-width: 22rem; }
  .cards { grid-template-columns: 1fr; max-width: 30rem; margin: 0 auto; }
  .ratecard { position: static; width: auto; max-width: 24rem; margin: -2.5rem auto 0; z-index: 1; }
}
@media (max-width: 720px) {
  .notice-more, .hide-sm { display: none; }
  .notice { flex-wrap: nowrap; }
  .panel-sand video { width: min(100%, 15rem); }
  .nav { display: none; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .prices { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-inner > div:first-child { grid-column: span 2; }
  .showcase-frame { border-radius: var(--radius); }
  .ratecard { margin: -1.5rem 1rem 0; position: relative; }
}

/* WhatsApp glyph on booking buttons */
.wa { width: 1.1em; height: 1.1em; flex: none; }
.price-cta { display: inline-flex; align-items: center; gap: .4rem; }
.price-cta .wa { color: #25a35a; }
.btn { white-space: nowrap; }

/* Set tiles */
.tile figcaption span { color: var(--muted); margin-right: .3rem; font-weight: 500; }
.tile .pos-top { object-position: center 25%; }
.tile .pos-mid { object-position: center 40%; }
.js-reveal .tiles .reveal:nth-child(4) { transition-delay: .24s; }
@media (max-width: 960px) and (min-width: 721px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
.tile figcaption { border-radius: 10px; padding: .45rem .7rem; line-height: 1.25; right: auto; max-width: calc(100% - 1.5rem); }
.tile figcaption span { display: block; margin: 0 0 .1rem; font-size: .6875rem; letter-spacing: .1em; text-transform: uppercase; }
