/* ==========================================================================
   LabA — landing page
   Tokens come straight from the LabA design system (tokens.json):
   5 colours, Space Grotesk, 4px spacing scale, radius 0 everywhere.
   ========================================================================== */

@font-face { font-family: "Space Grotesk"; font-weight: 300; font-display: swap; src: url("assets/fonts/SpaceGrotesk-Light.ttf") format("truetype"); }
@font-face { font-family: "Space Grotesk"; font-weight: 400; font-display: swap; src: url("assets/fonts/SpaceGrotesk-Regular.ttf") format("truetype"); }
@font-face { font-family: "Space Grotesk"; font-weight: 500; font-display: swap; src: url("assets/fonts/SpaceGrotesk-Medium.ttf") format("truetype"); }
@font-face { font-family: "Space Grotesk"; font-weight: 600; font-display: swap; src: url("assets/fonts/SpaceGrotesk-SemiBold.ttf") format("truetype"); }
@font-face { font-family: "Space Grotesk"; font-weight: 700; font-display: swap; src: url("assets/fonts/SpaceGrotesk-Bold.ttf") format("truetype"); }

:root {
  /* colour */
  --white: #ffffff;
  --jet-black: #272d2d;
  --sandy-brown: #fcab64;
  --tea-green: #cdf0c2;
  --grey-olive: #9a9a9a; /* decorative only: hairlines */

  /* spacing (4px scale) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;

  --font: "Space Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1360px;
  --nav-h: 64px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--nav-h); }
body {
  margin: 0;
  background: var(--white);
  color: var(--jet-black);
  font-family: var(--font);
  font-size: 16px;
  line-height: 24px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
p, h1, h2, h3, h4, ol, ul, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
strong { font-weight: 600; }

:focus-visible { outline: 2px solid var(--jet-black); outline-offset: 3px; }
.foot :focus-visible { outline-color: var(--white); }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: var(--space-4); top: -100px; z-index: 100; background: var(--jet-black); color: var(--white); padding: var(--space-3) var(--space-4); }
.skip:focus { top: var(--space-4); }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

/* --------------------------------------------------------------------------
   Type scale (design-system sizes; scaled down fluidly on small screens)
   -------------------------------------------------------------------------- */
.display { font-size: clamp(48px, 8.6vw, 96px); line-height: 0.96; font-weight: 700; letter-spacing: -0.02em; }
.h1 { font-size: clamp(40px, 5vw, 60px); line-height: 1.07; font-weight: 700; letter-spacing: -0.015em; }
.h2 { font-size: clamp(32px, 3.6vw, 40px); line-height: 1.2; font-weight: 600; letter-spacing: -0.01em; }
.h3 { font-size: clamp(22px, 2.4vw, 28px); line-height: 1.286; font-weight: 600; }
.h4 { font-size: clamp(19px, 1.9vw, 22px); line-height: 1.273; font-weight: 500; }
.body-lg { font-size: 18px; line-height: 28px; }
.body { font-size: 16px; line-height: 24px; }
.body-sm { font-size: 14px; line-height: 20px; }
.caption { font-size: 12px; line-height: 16px; font-weight: 500; }
.label { font-size: 13px; line-height: 16px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.02em; }
.kicker { margin-bottom: var(--space-4); }

/* --------------------------------------------------------------------------
   Buttons — accent fill, jet-black text, square corners
   -------------------------------------------------------------------------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  background: var(--sandy-brown);
  color: var(--jet-black);
  font-weight: 600;
  font-size: 16px;
  line-height: 24px;
  text-decoration: none;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.35s var(--ease);
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--jet-black);
  transform: translateY(101%);
  transition: transform 0.45s var(--ease);
  z-index: -1;
}
.btn:hover, .btn:focus-visible { color: var(--white); }
.btn:hover::before, .btn:focus-visible::before { transform: translateY(0); }
.btn__arrow { transition: transform 0.35s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }
.btn--sm { padding: var(--space-2) var(--space-4); font-size: 14px; line-height: 20px; }
.foot .btn:hover, .foot .btn:focus-visible { color: var(--jet-black); }
.foot .btn::before { background: var(--tea-green); }

.link { display: inline-block; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; text-decoration-color: var(--sandy-brown); transition: text-decoration-color 0.25s; }
.link:hover { text-decoration-color: var(--jet-black); }

.tag { display: inline-block; padding: var(--space-1) var(--space-3); background: var(--sandy-brown); color: var(--jet-black); margin-bottom: var(--space-3); }

/* --------------------------------------------------------------------------
   Nav
   -------------------------------------------------------------------------- */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 60; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--jet-black); transform-origin: 0 50%; transform: scaleX(0); }

.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h); background: var(--white); transition: transform 0.5s var(--ease); }
.nav.is-hidden { transform: translateY(-100%); }
.nav::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--grey-olive); opacity: 0; transition: opacity 0.3s; }
.nav.is-stuck::after { opacity: 1; }
.nav__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--space-5); }
.nav__logo img { height: 26px; width: auto; }
.nav__links { display: flex; gap: var(--space-6); margin-left: auto; }
.nav__links a { font-size: 14px; line-height: 20px; font-weight: 500; text-decoration: none; position: relative; padding-block: var(--space-1); }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--jet-black); transform: scaleX(0); transform-origin: 0 50%; transition: transform 0.35s var(--ease); }
.nav__links a:hover::after { transform: scaleX(1); }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero { padding-top: calc(var(--nav-h) + var(--space-8)); }
.hero__eyebrow { margin-bottom: var(--space-5); }
.hero__title { font-size: clamp(30px, 8.4vw, 96px); }
.hero__title .ln { display: block; }
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.w > span { display: inline-block; }

.hero__row { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--space-7); align-items: end; margin-top: var(--space-7); margin-bottom: var(--space-8); }
.hero__sub { max-width: 38em; }
.hero__cta { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-4); }
.hero__note { max-width: 32em; }

.hero__media { position: relative; }
.cycle__frame { position: relative; overflow: hidden; background: var(--grey-olive); aspect-ratio: var(--ar, 21/9); }
.hero__media .cycle__frame { --ar: 2.35/1; }
.cycle__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity 0.9s ease, transform 5s linear; }
.cycle__frame img.is-active { opacity: 1; transform: scale(1); z-index: 1; }
.cycle__cap { display: flex; justify-content: space-between; gap: var(--space-4); padding-top: var(--space-3); }
.hero__media .cycle__cap { padding-inline: var(--gutter); }
.cycle__count { font-variant-numeric: tabular-nums; }
.cycle__count b { font-weight: 700; }

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.section { padding-block: var(--space-9); }
.section--tight { padding-block: var(--space-8); }
.split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--space-7); }
.split--tight { margin-bottom: var(--space-7); }
.split__head { position: sticky; top: calc(var(--nav-h) + var(--space-5)); align-self: start; }
.split--tight .split__head { position: static; }
.prose { display: flex; flex-direction: column; gap: var(--space-5); max-width: 46em; }
.prose .lead { margin-bottom: var(--space-3); }

.bleed { margin-block: 0 var(--space-2); }
.bleed__frame { position: relative; overflow: hidden; height: clamp(280px, 46vw, 640px); }
.bleed__frame img { position: absolute; left: 0; top: -10%; width: 100%; height: 120%; object-fit: cover; }
.bleed figcaption, .film__media figcaption { padding-top: var(--space-3); }

/* Como funciona (from the "Como ajudamos" mockup) */
.how { background: var(--white); }
.how__grid { display: flex; flex-direction: column; }
.how__item { padding-block: 11px; }
.how__item:first-child { padding-top: 0; }
.how__item p { padding-bottom: var(--space-4); border-bottom: 1px solid var(--jet-black); }
.how__item:last-child p { border-bottom: 0; padding-bottom: 0; }

/* Full-width image */
.wide { margin: 0; }
.wide__frame { width: 100%; overflow: hidden; }
.wide__frame img { width: 100%; height: auto; }

/* --------------------------------------------------------------------------
   Roadmap — vertical timeline (from the "Roadmap do programa" mockup)
   -------------------------------------------------------------------------- */
.road__note { margin-top: var(--space-5); }
.tl { position: relative; display: flex; flex-direction: column; max-width: 832px; }
.step { position: relative; display: flex; gap: var(--space-6); align-items: flex-start; padding-bottom: var(--space-9); }
.step:last-child { padding-bottom: 0; }
.step__node { position: relative; z-index: 1; flex: 0 0 64px; width: 64px; height: 64px; display: flex; align-items: center; justify-content: center; background: var(--jet-black); color: var(--white); font-size: 24px; font-weight: 700; }
.step--accent .step__node { background: var(--sandy-brown); color: var(--jet-black); }
.step__line { position: absolute; left: 31px; top: 32px; height: 100%; width: 0; border-left: 2px dashed var(--jet-black); transform-origin: 50% 0; }
.step__body { flex: 1 1 auto; display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-2); padding-top: var(--space-1); }
.step__head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); }
.step__dur { text-transform: none; letter-spacing: 0; display: inline-block; padding: var(--space-1) var(--space-3); background: var(--tea-green); color: var(--jet-black); white-space: nowrap; }
.step__body p { max-width: 640px; }
.step__by { font-weight: 500; }
.road__foot { max-width: 832px; margin-top: var(--space-6); padding-top: var(--space-5); border-top: 1px solid var(--grey-olive); }

/* --------------------------------------------------------------------------
   Mentors + filmography
   -------------------------------------------------------------------------- */
.mentor { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--space-7); align-items: start; padding-top: var(--space-5); border-top: 1px solid var(--grey-olive); }
.mentor--flip { margin-top: var(--space-9); }
.mentor__photo { overflow: hidden; aspect-ratio: 1; border-radius: 50%; background: var(--white); }
.mentor__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.mentor__photo:hover img { transform: scale(1.04); }
.mentor__text { display: flex; flex-direction: column; gap: var(--space-5); max-width: 46em; }
.filmo { margin: var(--space-8) 0 var(--space-5); }

.film { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--space-7); padding-block: var(--space-7); border-top: 1px solid var(--grey-olive); align-items: start; }
.film--flip { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }
.film--flip .film__info { order: 2; }
.film--flip .film__media { order: 1; }
.film__info { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-3); }
.film__info .h3 { margin-bottom: var(--space-1); }
.film__alt { font-weight: 400; }
.film__laurels { width: 100%; max-width: 520px; margin: var(--space-3) auto 0; }
.film__laurels img { display: block; width: 100%; height: auto; margin-inline: auto; mix-blend-mode: multiply; }
.film__cta { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); width: 100%; margin-top: var(--space-4); padding-bottom: var(--space-1); border-bottom: 3px solid var(--sandy-brown); font-size: 14px; line-height: 20px; font-weight: 600; text-decoration: none; transition: border-color 0.3s var(--ease); }
.film__cta:hover, .film__cta:focus-visible { border-color: var(--jet-black); }
.film__cta-arrow { flex: none; width: 12px; height: 12px; transition: transform 0.35s var(--ease); }
.film__cta:hover .film__cta-arrow { transform: translate(2px, -2px); }
.film__media { position: sticky; top: calc(var(--nav-h) + var(--space-5)); }

/* Credentials */
.creds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--space-6); }
.creds li { display: flex; flex-direction: column; gap: var(--space-3); padding-block: var(--space-5) var(--space-7); border-top: 1px solid var(--grey-olive); }

/* --------------------------------------------------------------------------
   Apply (Tally)
   -------------------------------------------------------------------------- */
.apply { background: var(--tea-green); padding-block: var(--space-9); }
.apply__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-8); align-items: start; }
.apply__intro { position: sticky; top: calc(var(--nav-h) + var(--space-6)); display: flex; flex-direction: column; gap: var(--space-5); }
.apply__intro .kicker { margin-bottom: 0; }
.apply__facts { display: flex; flex-direction: column; gap: var(--space-3); margin-top: var(--space-3); }
.apply__facts li { padding-top: var(--space-3); border-top: 1px solid var(--jet-black); font-size: 14px; line-height: 20px; }
.apply__form iframe { display: block; width: 100%; min-height: 560px; border: 0; }
.apply__fallback { margin-top: var(--space-4); }
.apply__fallback a { font-weight: 600; text-underline-offset: 3px; }

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */
.faq { border-bottom: 1px solid var(--grey-olive); }
.qa { border-top: 1px solid var(--grey-olive); }
.qa__q button { all: unset; box-sizing: border-box; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--space-5); width: 100%; padding: var(--space-5) 0; font-size: clamp(19px, 1.9vw, 22px); line-height: 1.273; font-weight: 500; }
.qa__q button:focus-visible { outline: 2px solid var(--jet-black); outline-offset: 3px; }
.qa__q button:hover span { text-decoration: underline; text-decoration-color: var(--sandy-brown); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.qa__q i { position: relative; flex: 0 0 24px; width: 24px; height: 24px; }
.qa__q i::before, .qa__q i::after { content: ""; position: absolute; left: 2px; right: 2px; top: 11px; height: 2px; background: var(--jet-black); transition: transform 0.4s var(--ease); }
.qa__q i::after { transform: rotate(90deg); }
.qa__q button[aria-expanded="true"] i::after { transform: rotate(0); }
.qa__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.5s var(--ease); }
.qa__a > div { overflow: hidden; }
.qa__a p { padding: 0 var(--space-8) var(--space-5) 0; max-width: 40em; }
.qa:has(button[aria-expanded="true"]) .qa__a { grid-template-rows: 1fr; }

/* --------------------------------------------------------------------------
   Footer (true jet-black → logo may be reversed)
   -------------------------------------------------------------------------- */
.foot { background: var(--jet-black); color: var(--white); padding-top: var(--space-9); }
.foot__grid { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: var(--space-7); align-items: end; }
.foot__title { max-width: 12ch; }
.foot__side { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-4); }
.foot__bar { display: grid; grid-template-columns: 1fr auto auto; gap: var(--space-7); align-items: end; margin-top: var(--space-9); padding-block: var(--space-6) var(--space-7); border-top: 1px solid var(--grey-olive); }
.foot__logo { width: 144px; height: auto; filter: invert(1); }

/* --------------------------------------------------------------------------
   Motion: only hide things when JS is running and motion is allowed
   -------------------------------------------------------------------------- */
.js [data-reveal], .js [data-hero="fade"] { opacity: 0; }
.js .hero__title .w > span { visibility: hidden; }
.js [data-hero="media"] .cycle__frame { clip-path: inset(0 0 100% 0); }

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal], .js [data-hero="fade"] { opacity: 1; }
  .js .hero__title .w > span { visibility: visible; }
  .js [data-hero="media"] .cycle__frame { clip-path: none; }
  .cycle__frame img { transition: opacity 0.3s; transform: none; }
  .btn::before, .btn__arrow, .qa__a, .qa__q i::before, .qa__q i::after { transition: none; }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero__row { grid-template-columns: 1fr; gap: var(--space-5); }
  .creds { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot__grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__inner { justify-content: space-between; }
  .split, .mentor, .film, .film--flip, .apply__grid { grid-template-columns: 1fr; gap: var(--space-6); }
  .split__head, .apply__intro, .film__media { position: static; }
  .film--flip .film__info { order: 0; }
  .film--flip .film__media { order: 0; }
  .film__media { order: -1; }
  .film--flip .film__media { order: -1; }
  .mentor__photo { max-width: 320px; }
  .mentor--flip { margin-top: var(--space-8); }
  .section { padding-block: var(--space-8); }
  .apply { padding-block: var(--space-8); }
  .step { gap: var(--space-4); padding-bottom: var(--space-8); }
  .step__node { flex-basis: 48px; width: 48px; height: 48px; font-size: 20px; }
  .step__line { left: 23px; top: 24px; }

}

@media (max-width: 700px) {
  .film__laurels { max-width: none; }
  .hero__media .cycle__frame { --ar: 4/3; }
  .bleed__frame { height: 60vw; }
}

@media (max-width: 560px) {
  .creds { grid-template-columns: 1fr; }
  .foot__bar { grid-template-columns: 1fr; gap: var(--space-4); }
  .hero { padding-top: calc(var(--nav-h) + var(--space-6)); }
  .qa__a p { padding-right: 0; }
  .btn--sm { min-height: 44px; }
  .btn--sm span { white-space: nowrap; }
}
