/* ========================================================================
   Shapers Academy — redesign
   Editorial dark/light theme flips · Clash Display + General Sans + Instrument Serif
   ======================================================================== */

:root {
  --ink: #0a0a0c;
  --bone: #f4f1ea;
  --red: #df3b3b;
  --ease: cubic-bezier(0.65, 0.05, 0, 1);
  --nav-h: 72px;
  --pad: clamp(20px, 5vw, 80px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  font-family: 'General Sans', system-ui, sans-serif;
  background: var(--ink);
  color: var(--bone);
  transition: background-color 0.7s var(--ease), color 0.7s var(--ease);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body[data-theme='light'] { background: var(--bone); color: var(--ink); }
body[data-theme='red'] { background: var(--red); color: var(--bone); }

::selection { background: var(--red); color: var(--bone); }

img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { color: inherit; text-decoration: none; }
em { font-family: 'Instrument Serif', serif; font-style: italic; font-weight: 400; }

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 100;
  background: var(--ink); color: var(--bone);
  display: flex; align-items: flex-end;
}
.loader__inner {
  width: 100%; display: flex; justify-content: space-between; align-items: flex-end;
  padding: var(--pad);
}
.loader__word { font-family: 'Clash Display', sans-serif; font-weight: 600; font-size: clamp(1.2rem, 3vw, 2rem); }
.loader__count { font-family: 'Clash Display', sans-serif; font-weight: 600; font-size: clamp(4rem, 14vw, 11rem); line-height: 0.85; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 var(--pad);
  transition: transform 0.5s var(--ease);
}
.nav::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  mask-image: linear-gradient(to bottom, black 60%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent);
}
.nav--hidden { transform: translateY(-100%); }
.nav__logo { font-family: 'Clash Display', sans-serif; font-weight: 600; font-size: 0.95rem; letter-spacing: 0.01em; white-space: nowrap; }
.nav__logo-mark { color: var(--red); font-size: 0.6rem; vertical-align: middle; margin-right: 4px; }
.nav__logo-sub { opacity: 0.5; font-weight: 500; }
.nav__links { display: flex; gap: clamp(14px, 2.5vw, 32px); }
.nav__links a {
  font-size: 0.85rem; font-weight: 500; opacity: 0.7;
  transition: opacity 0.3s;
}
.nav__links a:hover { opacity: 1; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'Clash Display', sans-serif; font-weight: 600; font-size: 1rem;
  padding: 16px 30px; border-radius: 100px;
  background: var(--bone); color: var(--ink);
  transition: background 0.35s var(--ease), color 0.35s var(--ease), transform 0.35s var(--ease);
  will-change: transform;
}
.btn__arrow { transition: transform 0.35s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(5px); }
.btn--primary { background: var(--red); color: var(--bone); }
.btn--primary:hover { background: var(--bone); color: var(--ink); }
.btn--small { padding: 10px 20px; font-size: 0.85rem; background: var(--red); color: var(--bone); }
.btn--small:hover { background: var(--bone); color: var(--ink); }
.btn--outline { background: transparent; color: inherit; border: 1px solid currentColor; }
.btn--outline:hover { background: var(--red); border-color: var(--red); color: var(--bone); }
.btn--invert { background: var(--ink); color: var(--bone); font-size: 1.15rem; padding: 20px 40px; }
.btn--invert:hover { background: var(--bone); color: var(--ink); }

/* ---------- Sections (shared) ---------- */
.section { padding: clamp(90px, 14vh, 180px) var(--pad); max-width: 1500px; margin: 0 auto; }
.section__head { margin-bottom: clamp(36px, 6vh, 72px); }
.section__index {
  font-size: 0.8rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.16em;
  opacity: 0.55; margin-bottom: 18px;
}
.section__title {
  font-family: 'Clash Display', sans-serif; font-weight: 600;
  font-size: clamp(2.4rem, 6.5vw, 5.5rem); line-height: 1.02; letter-spacing: -0.02em;
}
.section__title em, .hero__title em, .cta__title em, .city__sub em { color: var(--red); }
body[data-theme='red'] .section__title em, body[data-theme='red'] .cta__title em { color: var(--ink); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: calc(var(--nav-h) + 24px) var(--pad) clamp(40px, 7vh, 80px);
  overflow: hidden;
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero__content { position: relative; z-index: 1; }
.hero__eyebrow {
  font-size: 0.85rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.16em;
  margin-bottom: clamp(18px, 3vh, 32px);
}
.hero__eyebrow .tick { color: var(--red); font-size: 0.6rem; vertical-align: middle; margin-right: 6px; }
.hero__title {
  font-family: 'Clash Display', sans-serif; font-weight: 600;
  font-size: clamp(3rem, 10.5vw, 9.5rem); line-height: 0.96; letter-spacing: -0.025em;
  text-transform: none;
}
.hero__bottom {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 32px;
  margin-top: clamp(28px, 5vh, 56px); flex-wrap: wrap;
}
.hero__sub { max-width: 420px; font-size: clamp(1rem, 1.4vw, 1.2rem); line-height: 1.5; opacity: 0.85; }
.hero__sub strong { color: var(--red); font-weight: 600; }
.hero__cta { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.hero__deadline { font-size: 0.82rem; opacity: 0.6; letter-spacing: 0.04em; }
.hero__scroll-hint {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  width: 1px; height: 48px; overflow: hidden; z-index: 1; opacity: 0.5;
}
.hero__scroll-hint span {
  display: block; width: 100%; height: 100%;
  background: currentColor;
  animation: scrollhint 1.8s var(--ease) infinite;
}
@keyframes scrollhint {
  0% { transform: translateY(-100%); }
  55% { transform: translateY(0); }
  100% { transform: translateY(100%); }
}

/* ---------- Marquee ---------- */
.marquee-section { padding: clamp(40px, 8vh, 80px) 0; border-top: 1px solid rgba(244, 241, 234, 0.12); }
.marquee-label {
  text-align: center; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.16em;
  opacity: 0.5; margin-bottom: 28px; padding: 0 var(--pad);
}
.marquee { overflow: hidden; white-space: nowrap; }
.marquee__track { display: inline-flex; align-items: center; gap: 56px; padding-right: 56px; will-change: transform; }
.marquee__track span {
  font-family: 'Clash Display', sans-serif; font-weight: 500;
  font-size: clamp(1.6rem, 3.5vw, 3rem); opacity: 0.85;
}
.marquee__track i { color: var(--red); font-style: normal; font-size: 1rem; }

/* ---------- Offer ---------- */
.offer__lead, .work__lead, .community__lead, .city__lead {
  max-width: 760px; font-size: clamp(1.05rem, 1.6vw, 1.35rem); line-height: 1.55; opacity: 0.85;
}
.offer__numbers {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: rgba(244, 241, 234, 0.14);
  border-top: 1px solid rgba(244, 241, 234, 0.14);
  border-bottom: 1px solid rgba(244, 241, 234, 0.14);
  margin: clamp(48px, 8vh, 90px) 0;
}
.offer__num { background: var(--ink); padding: clamp(24px, 3vw, 48px) clamp(16px, 2vw, 32px); transition: background-color 0.7s var(--ease); }
.offer__num-val {
  display: block; font-family: 'Clash Display', sans-serif; font-weight: 600;
  font-size: clamp(3rem, 6.5vw, 6rem); line-height: 1; color: var(--red);
}
.offer__num-label { display: block; margin-top: 12px; font-size: 0.9rem; opacity: 0.65; }
.offer__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.offer__card {
  border: 1px solid rgba(244, 241, 234, 0.16); border-radius: 16px;
  padding: clamp(20px, 2.5vw, 36px);
  transition: border-color 0.4s, transform 0.4s var(--ease);
}
.offer__card:hover { border-color: var(--red); transform: translateY(-4px); }
.offer__card h3 {
  font-size: 0.78rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.14em;
  opacity: 0.55; margin-bottom: 14px;
}
.offer__card p { font-family: 'Clash Display', sans-serif; font-weight: 500; font-size: clamp(1.05rem, 1.5vw, 1.35rem); line-height: 1.3; }
.offer__card p span { font-family: 'General Sans', sans-serif; font-weight: 400; font-size: 0.85rem; opacity: 0.6; }

/* ---------- Countdown ---------- */
.countdown { margin-top: clamp(48px, 8vh, 90px); text-align: center; }
.countdown__label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.16em; opacity: 0.55; margin-bottom: 22px; }
.countdown__units { display: flex; justify-content: center; gap: clamp(20px, 5vw, 64px); }
.countdown__units div { display: flex; flex-direction: column; align-items: center; }
.countdown__units b {
  font-family: 'Clash Display', sans-serif; font-weight: 600;
  font-size: clamp(2.4rem, 7vw, 6rem); line-height: 1;
  font-variant-numeric: tabular-nums;
}
.countdown__units i { font-style: normal; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.14em; opacity: 0.55; margin-top: 8px; }

/* ---------- Work (light) ---------- */
.work__cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 64px); margin-top: clamp(40px, 7vh, 80px); }
.work__col h3 {
  font-family: 'Clash Display', sans-serif; font-weight: 600; font-size: clamp(1.5rem, 2.6vw, 2.4rem);
  margin-bottom: 28px;
}
.work__col--yes h3 { color: var(--red); }
.work__col--no h3 { opacity: 0.4; }
.work__col ul { list-style: none; }
.work__col li {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 22px 0; border-top: 1px solid rgba(10, 10, 12, 0.15);
  font-size: clamp(1rem, 1.4vw, 1.15rem); line-height: 1.5;
}
.work__col li span {
  flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.85rem; margin-top: 2px;
}
.work__col--yes li span { background: var(--red); color: var(--bone); }
.work__col--no li span { border: 1px solid rgba(10, 10, 12, 0.3); }
.work__col--no li { opacity: 0.55; }

/* ---------- Process ---------- */
.process__steps { position: relative; max-width: 880px; }
.process__line {
  position: absolute; top: 0; bottom: 0; left: 27px; width: 1px;
  background: rgba(244, 241, 234, 0.14);
}
.process__line span { display: block; width: 100%; height: 100%; background: var(--red); transform-origin: top; transform: scaleY(0); }
.process__step {
  position: relative; display: flex; gap: clamp(24px, 4vw, 56px);
  padding: clamp(28px, 4vh, 48px) 0;
}
.process__num {
  flex-shrink: 0; width: 56px; height: 56px; border-radius: 50%;
  background: var(--ink); border: 1px solid rgba(244, 241, 234, 0.3);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Clash Display', sans-serif; font-weight: 600; font-size: 1.2rem;
  position: relative; z-index: 1;
  transition: background-color 0.7s var(--ease);
}
.process__step--final .process__num { background: var(--red); border-color: var(--red); }
.process__step h3 { font-family: 'Clash Display', sans-serif; font-weight: 600; font-size: clamp(1.3rem, 2.2vw, 1.9rem); margin-bottom: 12px; }
.process__step p { max-width: 600px; line-height: 1.55; opacity: 0.75; font-size: clamp(0.95rem, 1.3vw, 1.1rem); }

/* ---------- Mentor (light) ---------- */
.mentor__grid { display: grid; grid-template-columns: minmax(280px, 460px) 1fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.mentor__photo { border-radius: 20px; overflow: hidden; aspect-ratio: 4/5; position: relative; }
.mentor__photo img { height: 115%; }
.mentor__photo figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 18px;
  font-size: 0.8rem; color: var(--bone);
  background: linear-gradient(to top, rgba(10, 10, 12, 0.75), transparent);
}
.mentor__bio p { font-size: clamp(1.05rem, 1.5vw, 1.3rem); line-height: 1.6; margin-bottom: 24px; opacity: 0.85; }
.mentor__chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.mentor__chips span {
  font-size: 0.82rem; font-weight: 500; padding: 9px 18px; border-radius: 100px;
  border: 1px solid rgba(10, 10, 12, 0.25);
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.mentor__chips span:hover { background: var(--red); border-color: var(--red); color: var(--bone); }

/* ---------- Community ---------- */
.community__cards {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  margin: clamp(40px, 7vh, 80px) 0;
}
.community__card {
  border: 1px solid rgba(244, 241, 234, 0.16); border-radius: 16px;
  padding: clamp(22px, 2.5vw, 36px);
  display: flex; flex-direction: column; gap: 14px;
  transition: border-color 0.4s, transform 0.4s var(--ease);
}
.community__card:hover { border-color: var(--red); transform: translateY(-4px); }
.community__card span { font-family: 'Clash Display', sans-serif; color: var(--red); font-weight: 600; }
.community__card h3 { font-family: 'Clash Display', sans-serif; font-weight: 600; font-size: clamp(1.05rem, 1.4vw, 1.3rem); line-height: 1.2; }
.community__card p { font-size: 0.92rem; line-height: 1.55; opacity: 0.7; }

/* ---------- Image strips ---------- */
.img-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: clamp(32px, 5vh, 56px); }
.img-strip figure { border-radius: 16px; overflow: hidden; aspect-ratio: 4/3; }
.parallax-img { overflow: hidden; }
.parallax-img img { height: 120%; will-change: transform; }

/* ---------- City (light) ---------- */
.ticker {
  display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center;
  margin-top: clamp(28px, 4vh, 48px);
  font-family: 'Clash Display', sans-serif; font-weight: 500;
  font-size: clamp(0.95rem, 1.5vw, 1.25rem);
}
.ticker i { color: var(--red); font-style: normal; font-size: 0.75rem; }
.city__backyard { margin-top: clamp(80px, 12vh, 140px); }
.city__sub { font-family: 'Clash Display', sans-serif; font-weight: 600; font-size: clamp(2rem, 4.5vw, 3.8rem); margin-bottom: 24px; }
.city__backyard > p { max-width: 760px; font-size: clamp(1rem, 1.5vw, 1.3rem); line-height: 1.55; opacity: 0.85; }

/* ---------- Webinar ---------- */
.webinar__box {
  border: 1px solid rgba(244, 241, 234, 0.18); border-radius: 24px;
  padding: clamp(36px, 6vw, 90px);
  background:
    radial-gradient(ellipse at 85% 15%, rgba(223, 59, 59, 0.22), transparent 55%),
    radial-gradient(ellipse at 10% 90%, rgba(223, 59, 59, 0.1), transparent 50%);
}
.webinar__box p { max-width: 560px; line-height: 1.55; opacity: 0.8; margin: 20px 0 32px; font-size: clamp(1rem, 1.4vw, 1.2rem); }

/* ---------- FAQ ---------- */
.faq .section__head { text-align: center; }
.faq__list { max-width: 1080px; margin: 0 auto; }
.faq__list details { border-top: 1px solid rgba(244, 241, 234, 0.16); }
.faq__list details:last-child { border-bottom: 1px solid rgba(244, 241, 234, 0.16); }
.faq__list summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: clamp(20px, 3vh, 30px) 0;
  font-family: 'Clash Display', sans-serif; font-weight: 500;
  font-size: clamp(1.05rem, 1.8vw, 1.5rem);
  transition: color 0.3s;
}
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary:hover { color: var(--red); }
.faq__icon { position: relative; flex-shrink: 0; width: 16px; height: 16px; }
.faq__icon::before, .faq__icon::after {
  content: ''; position: absolute; background: currentColor;
  transition: transform 0.4s var(--ease);
}
.faq__icon::before { left: 0; right: 0; top: 7px; height: 2px; }
.faq__icon::after { top: 0; bottom: 0; left: 7px; width: 2px; }
details[open] .faq__icon::after { transform: scaleY(0); }
.faq__a { overflow: hidden; }
.faq__a p { padding: 0 0 28px; max-width: 700px; line-height: 1.6; opacity: 0.75; font-size: clamp(0.95rem, 1.3vw, 1.1rem); }

/* ---------- Final CTA (red) ---------- */
.cta { text-align: center; padding-top: clamp(110px, 18vh, 220px); padding-bottom: clamp(110px, 18vh, 220px); }
.cta__title {
  font-family: 'Clash Display', sans-serif; font-weight: 600;
  font-size: clamp(3rem, 9.5vw, 8.5rem); line-height: 0.98; letter-spacing: -0.02em;
}
.cta__title em { color: var(--ink); }
.cta .btn { margin-top: clamp(36px, 6vh, 64px); }
.countdown--cta { margin-top: clamp(40px, 7vh, 72px); }

/* ---------- Footer ---------- */
.footer { padding: clamp(60px, 10vh, 110px) var(--pad) 36px; max-width: 1500px; margin: 0 auto; }
.footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 64px); }
.footer__cols h4 {
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.16em;
  opacity: 0.5; margin-bottom: 16px; font-weight: 500;
}
.footer__cols p { font-size: 0.92rem; line-height: 1.55; opacity: 0.7; margin-bottom: 14px; max-width: 300px; }
.footer__cols a { font-family: 'Clash Display', sans-serif; font-weight: 500; border-bottom: 1px solid var(--ink); padding-bottom: 2px; transition: opacity 0.3s; }
.footer__cols a:hover { opacity: 0.6; }
.footer__bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  margin-top: clamp(48px, 8vh, 80px); padding-top: 24px;
  border-top: 1px solid rgba(244, 241, 234, 0.14);
  font-size: 0.8rem;
}
.footer__bottom > span { opacity: 0.5; }
.footer__credit { display: inline-flex; align-items: baseline; gap: 0.4em; opacity: 0.65; transition: opacity 0.3s; }
.footer__credit:hover { opacity: 1; }

/* ---------- Sonce wordmark ---------- */
.sonce { font-weight: 600; letter-spacing: -0.01em; }

/* ---------- Reveal helpers ---------- */
.split .line, .split-lines .line, #heroTitle .line, #ctaTitle .line { overflow: hidden; }
html.js .reveal-line { opacity: 0; }

/* ========================================================================
   Responsive
   ======================================================================== */
@media (max-width: 1024px) {
  .offer__numbers, .offer__grid, .community__cards { grid-template-columns: repeat(2, 1fr); }
  .footer__cols { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav__links { display: none; }
  .nav__logo-sub { display: none; }
  .nav__logo { font-size: 0.85rem; }
  .hero__bottom { flex-direction: column; align-items: flex-start; }
  .hero__title { font-size: clamp(2.6rem, 13.5vw, 4.5rem); }
  .work__cols { grid-template-columns: 1fr; }
  .mentor__grid { grid-template-columns: 1fr; }
  .mentor__photo { max-width: 420px; }
  .img-strip { grid-template-columns: 1fr; }
  .img-strip figure { aspect-ratio: 16/10; }
  .process__line { left: 21px; }
  .process__num { width: 44px; height: 44px; font-size: 1rem; }
  .footer__cols { grid-template-columns: 1fr; }
  .countdown__units b { font-size: clamp(2.2rem, 11vw, 3.4rem); }
  .hero__scroll-hint { display: none; }
}

@media (max-width: 480px) {
  .offer__numbers, .offer__grid, .community__cards { grid-template-columns: 1fr; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
