/* Lívia Novais — estilos do site
   Identidade monocromática (preto, grafite, cinza e branco editorial),
   renda francesa como detalhe de assinatura. Sem framework, sem build. */

/* ---------- Fontes (servidas pelo próprio site) ---------- */

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/assets/fonts/cormorant-garamond-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 400 600;
  font-display: swap;
  src: url("/assets/fonts/cormorant-garamond-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("/assets/fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */

:root {
  /* Paleta */
  --black: #101010;
  --black-deep: #080808;
  --graphite: #242424;
  --graphite-soft: #1a1a1a;
  --gray: #474747;
  --gray-mid: #969696;
  --paper: #f8f8f6;
  --white: #ffffff;
  --mist: #ededea;
  --divider: #d6d6d6;
  --card-paper: #f7f4ef;

  --font-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-sans: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --gutter: clamp(20px, 5vw, 72px);
  --section-y: clamp(72px, 10vw, 144px);
  --header-h: 72px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* Tom padrão (claro) */
  --bg: var(--paper);
  --fg: var(--black);
  --fg-2: #474747;
  --fg-3: #5c5c5c;
  --line: var(--divider);
  --line-strong: rgba(16, 16, 16, 0.38);
  --tint: rgba(16, 16, 16, 0.05);
  --btn-bg: var(--black);
  --btn-fg: var(--white);
  --btn-hover: #333333;
  --frame-line: rgba(16, 16, 16, 0.22);
  --focus: var(--black);
}

/* Tons de seção: cada seção define seu fundo e herda as cores corretas. */
.tone-paper,
.tone-white,
.tone-mist {
  --fg: var(--black);
  --fg-2: #474747;
  --fg-3: #5c5c5c;
  --line: var(--divider);
  --line-strong: rgba(16, 16, 16, 0.38);
  --tint: rgba(16, 16, 16, 0.05);
  --btn-bg: var(--black);
  --btn-fg: var(--white);
  --btn-hover: #333333;
  --frame-line: rgba(16, 16, 16, 0.22);
  --focus: var(--black);
  background: var(--bg);
  color: var(--fg);
}

.tone-paper { --bg: var(--paper); }
.tone-white { --bg: var(--white); }
.tone-mist { --bg: var(--mist); --line: #cfcfcb; }

.tone-ink,
.tone-deep,
.tone-graphite {
  --fg: var(--paper);
  --fg-2: rgba(248, 248, 246, 0.76);
  --fg-3: rgba(248, 248, 246, 0.62);
  --line: rgba(255, 255, 255, 0.14);
  --line-strong: rgba(255, 255, 255, 0.42);
  --tint: rgba(255, 255, 255, 0.07);
  --btn-bg: var(--paper);
  --btn-fg: var(--black);
  --btn-hover: #d9d9d5;
  --frame-line: rgba(255, 255, 255, 0.26);
  --focus: var(--paper);
  background: var(--bg);
  color: var(--fg);
}

.tone-ink { --bg: var(--black); }
.tone-deep { --bg: var(--black-deep); }
.tone-graphite { --bg: var(--graphite-soft); }

/* ---------- Base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--black);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

img,
svg {
  display: block;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

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

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 500;
}

p,
figure,
blockquote {
  margin: 0;
}

address {
  font-style: normal;
}

em {
  font-style: italic;
}

h1 em,
h2 em,
h3 em {
  font-family: var(--font-serif);
  font-weight: 400;
}

.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;
}

.skip-link {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 12px 18px;
  background: var(--paper);
  color: var(--black);
  font-size: 14px;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

/* ---------- Layout ---------- */

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}

.section {
  position: relative;
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
}

.center {
  text-align: center;
}

.center .lead,
.center .body {
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Tipografia ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 24px;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 11.5px;
  line-height: 1.5;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--fg-2);
}

.eyebrow::before {
  content: "";
  flex: none;
  width: 32px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.eyebrow--plain::before,
.eyebrow--plain::after {
  display: none !important;
}

.center .eyebrow::after {
  content: "";
  flex: none;
  width: 32px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.display {
  font-size: clamp(44px, 4.9vw, 78px);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.display .line {
  display: block;
}

.h1 {
  font-size: clamp(40px, 5vw, 74px);
  line-height: 1.02;
  letter-spacing: -0.018em;
  text-wrap: balance;
}

.h2 {
  font-size: clamp(34px, 4.4vw, 60px);
  line-height: 1.06;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.h2-xl {
  font-size: clamp(60px, 11vw, 168px);
  line-height: 0.9;
  letter-spacing: -0.03em;
}

.h3 {
  font-size: clamp(25px, 2.2vw, 30px);
  line-height: 1.18;
  letter-spacing: -0.005em;
}

.lead {
  max-width: 50ch;
  font-size: clamp(17px, 1.35vw, 19px);
  line-height: 1.7;
  color: var(--fg-2);
  text-wrap: pretty;
}

.body {
  max-width: 62ch;
  font-size: 16px;
  line-height: 1.8;
  color: var(--fg-2);
  text-wrap: pretty;
}

.small {
  font-size: 14px;
  line-height: 1.6;
  color: var(--fg-3);
}

.stack > * + * {
  margin-top: 20px;
}

/* ---------- Botões e links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 54px;
  padding: 0 30px;
  border: 1px solid transparent;
  border-radius: 1px;
  background: transparent;
  color: inherit;
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.btn svg {
  flex: none;
}

.btn-solid {
  background: var(--btn-bg);
  border-color: var(--btn-bg);
  color: var(--btn-fg);
}

.btn-solid:hover {
  background: var(--btn-hover);
  border-color: var(--btn-hover);
  color: var(--btn-fg);
}

.btn-line {
  border-color: var(--line-strong);
  color: var(--fg);
}

.btn-line:hover {
  border-color: var(--fg);
  background: var(--tint);
  color: var(--fg);
}

.btn-sm {
  min-height: 46px;
  padding: 0 22px;
}

.btn-icon {
  width: 46px;
  height: 46px;
  min-height: 46px;
  padding: 0;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
}

.center .actions {
  justify-content: center;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--fg);
  background: linear-gradient(currentColor, currentColor) left calc(100% - 8px) / 100% 1px no-repeat;
  transition: background-size 0.35s var(--ease);
}

.link-arrow::after {
  content: "→";
  font-size: 15px;
  letter-spacing: 0;
  transition: transform 0.35s var(--ease);
}

.link-arrow:hover {
  background-size: 0% 1px;
  background-position: right calc(100% - 8px);
}

.link-arrow:hover::after {
  transform: translateX(4px);
}

/* ---------- Fotografias ---------- */

/* Fotos nunca são cortadas: largura total da moldura, altura automática. */
.photo {
  position: relative;
  isolation: isolate;
}

.photo img {
  width: 100%;
  height: auto;
}

.photo__clip {
  overflow: hidden;
  background: var(--graphite);
}

/* Moldura fina deslocada atrás da foto. */
.photo--offset {
  margin: 0 22px 22px 0;
}

.photo--offset::before {
  content: "";
  position: absolute;
  inset: 22px -22px -22px 22px;
  z-index: -1;
  border: 1px solid var(--frame-line);
}

.photo figcaption {
  margin-top: 14px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-3);
}

/* ---------- Renda francesa (detalhe de assinatura) ---------- */

.lace {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  background-repeat: no-repeat;
  background-size: 100% auto;
  opacity: var(--lace-opacity, 1);
}

.lace--black {
  background-image: url("/assets/img/renda-vertical-preta.webp");
}

.lace--white {
  background-image: url("/assets/img/renda-vertical-branca.webp");
}

/* Bordas recortadas da renda voltadas para dentro da página. */
.lace--from-right {
  transform: scaleX(-1);
}

/* ---------- Cabeçalho ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(8, 8, 8, 0.95);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  backdrop-filter: blur(16px) saturate(120%);
  color: var(--paper);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  --focus: var(--paper);
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.6vw, 40px);
  min-height: var(--header-h);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 44px;
  margin-right: auto;
  color: var(--paper);
  text-decoration: none;
}

.nav__logo img {
  width: auto;
  height: 34px;
}


.nav__links {
  display: none;
  align-items: center;
  gap: clamp(22px, 2.6vw, 40px);
}

.nav__link {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 44px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(248, 248, 246, 0.72);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.25s var(--ease);
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease);
}

.nav__link:hover,
.nav__link[aria-current="page"] {
  color: var(--paper);
}

.nav__link:hover::after,
.nav__link[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav__cta {
  --line-strong: rgba(255, 255, 255, 0.4);
  --fg: var(--paper);
  --tint: rgba(255, 255, 255, 0.08);
  min-height: 44px;
  padding: 0 20px;
}

.nav-toggle {
  --line-strong: rgba(255, 255, 255, 0.3);
  --fg: var(--paper);
  --tint: rgba(255, 255, 255, 0.08);
}

@media (min-width: 960px) {
  .nav__links {
    display: flex;
  }

  .nav-toggle {
    display: none;
  }
}


/* ---------- Menu mobile ---------- */

.menu {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0 max(var(--gutter), env(safe-area-inset-right)) calc(24px + env(safe-area-inset-bottom)) max(var(--gutter), env(safe-area-inset-left));
  background: var(--black-deep);
  color: var(--paper);
  --fg: var(--paper);
  --fg-2: rgba(248, 248, 246, 0.76);
  --fg-3: rgba(248, 248, 246, 0.62);
  --line: rgba(255, 255, 255, 0.14);
  --line-strong: rgba(255, 255, 255, 0.42);
  --tint: rgba(255, 255, 255, 0.07);
  --btn-bg: var(--paper);
  --btn-fg: var(--black);
  --btn-hover: #d9d9d5;
  --focus: var(--paper);
  animation: menu-in 0.4s var(--ease-out) both;
}

.menu[hidden] {
  display: none;
}

.menu__lace {
  top: 0;
  right: 0;
  width: 92px;
  height: 100%;
  --lace-opacity: 0.16;
  background-size: 100% auto;
  background-repeat: repeat-y;
}

.menu > :not(.lace) {
  position: relative;
  z-index: 1;
}

.menu__top {
  display: flex;
  align-items: center;
  min-height: var(--header-h);
}

.menu__top img {
  width: auto;
  height: 34px;
  margin-right: auto;
}

.menu__list {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: menu;
}

.menu__list li {
  border-top: 1px solid var(--line);
  counter-increment: menu;
  animation: rise 0.5s var(--ease-out) both;
  animation-delay: calc(0.06s * var(--i, 0) + 0.08s);
}

.menu__list li:last-child {
  border-bottom: 1px solid var(--line);
}

.menu__list a {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 16px 0;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(34px, 9vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--paper);
  text-decoration: none;
}

.menu__list a::before {
  content: "0" counter(menu);
  min-width: 24px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--fg-3);
}

.menu__list a[aria-current="page"] {
  font-style: italic;
  font-weight: 400;
}

.menu__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: auto;
  padding-top: 40px;
}

.menu__actions .btn {
  white-space: normal;
  text-align: center;
}

.menu__insta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  font-size: 14px;
  color: var(--fg-2);
  text-decoration: none;
}

.menu__insta:hover {
  color: var(--paper);
}

html.menu-aberto,
html.menu-aberto body {
  overflow: hidden;
}

/* ---------- Botão WhatsApp flutuante (só mobile) ---------- */

.whats-float {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 55;
  min-height: 52px;
  padding: 0 20px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(16, 16, 16, 0.94);
  color: var(--paper);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
}

.whats-float:hover {
  background: var(--graphite);
  color: var(--paper);
}

html.menu-aberto .whats-float {
  display: none;
}

@media (min-width: 960px) {
  .whats-float {
    display: none;
  }
}

/* ---------- Hero do Início ---------- */

.hero-home {
  position: relative;
  overflow: hidden;
  padding-top: clamp(48px, 7vw, 88px);
  padding-bottom: clamp(56px, 7vw, 96px);
}

.hero-home__grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 56px;
  align-items: center;
}

.hero-home__mono {
  width: auto;
  height: 48px;
  margin-bottom: 28px;
}

.hero-home .lead {
  margin-top: 28px;
  max-width: 44ch;
}

.hero-home__region {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  max-width: 44ch;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-3);
}

.hero-home__figure {
  position: relative;
  justify-self: center;
  width: min(100%, 460px);
}

.hero-home__lace {
  top: 6%;
  right: calc(-1 * var(--gutter) - 40px);
  width: 200px;
  height: 92%;
  --lace-opacity: 0.32;
  background-size: 100% auto;
  background-repeat: repeat-y;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 78%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 78%, transparent);
}

.hero-home__figure .photo {
  z-index: 1;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 18px;
  z-index: 2;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 8px;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--fg-3);
  text-decoration: none;
  transform: translateX(-50%);
}

.scroll-cue span {
  display: block;
  width: 1px;
  height: 40px;
  background: currentColor;
  transform-origin: top;
}

.scroll-cue:hover {
  color: var(--fg);
}

@media (min-width: 900px) {
  .hero-home {
    min-height: calc(100svh - var(--header-h));
    display: flex;
    align-items: center;
    padding-bottom: clamp(88px, 9vw, 120px);
  }

  .hero-home__grid {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: clamp(48px, 6vw, 96px);
  }

  .hero-home__figure {
    justify-self: end;
    width: clamp(300px, calc((100svh - var(--header-h) - 150px) * 0.5625), 440px);
  }

  .hero-home__lace {
    width: 240px;
  }

  .scroll-cue {
    display: flex;
  }
}

/* ---------- Heros das páginas internas ---------- */

.page-hero {
  position: relative;
  overflow: hidden;
  padding-top: clamp(48px, 7vw, 104px);
  padding-bottom: clamp(64px, 8vw, 120px);
}

.page-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(48px, 6vw, 96px);
  align-items: center;
}

.page-hero .lead {
  margin-top: 32px;
}

.page-hero__figure {
  width: min(100%, 440px);
  justify-self: center;
}

@media (min-width: 900px) {
  .page-hero__grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  }

  .page-hero__figure {
    justify-self: end;
  }
}

/* Hero editorial (Cursos): título largo, texto lateral, foto à direita. */
.hero-ed__grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 48px clamp(40px, 5vw, 80px);
}

.hero-ed__aside .lead {
  margin-top: 0;
  font-size: 17px;
}

.hero-ed__figure {
  width: min(100%, 420px);
  justify-self: center;
}

@media (min-width: 900px) {
  .hero-ed__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 0.9fr);
    grid-template-areas:
      "title title figure"
      ". aside figure";
    align-items: start;
  }

  .hero-ed__title {
    grid-area: title;
    align-self: end;
  }

  .hero-ed__aside {
    grid-area: aside;
  }

  .hero-ed__figure {
    grid-area: figure;
    justify-self: end;
    margin-top: 12px;
  }
}

/* ---------- Seção centralizada de apresentação ---------- */

.intro__head {
  max-width: 900px;
  margin: 0 auto;
}

.intro__head .lead {
  margin-top: 28px;
  max-width: 58ch;
}

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 0 clamp(24px, 4vw, 64px);
  margin: clamp(56px, 7vw, 96px) auto 0;
  padding: 0;
  list-style: none;
}

.facts li {
  padding: 28px 0 8px;
  border-top: 1px solid var(--line);
}

.facts__value {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(40px, 4.4vw, 60px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
}

.facts__value em {
  font-weight: 400;
}

.facts__label {
  display: block;
  margin-top: 16px;
  max-width: 32ch;
  font-size: 15px;
  line-height: 1.65;
  color: var(--fg-2);
}

/* ---------- Frentes de atuação (Início) ---------- */

.fronts__head {
  display: grid;
  gap: 24px 64px;
  margin-bottom: clamp(48px, 6vw, 88px);
}

.fronts__head .lead {
  max-width: 42ch;
}

@media (min-width: 900px) {
  .fronts__head {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    align-items: end;
  }
}

.fronts {
  display: grid;
  gap: 40px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.front {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  color: var(--fg);
  text-decoration: none;
}

.front:nth-child(even) .front__media {
  order: 2;
}

.front__media {
  overflow: hidden;
  background: var(--mist);
}

.front__media img {
  width: 100%;
  height: auto;
  transition: transform 1.1s var(--ease-out);
}

.front:hover .front__media img {
  transform: scale(1.03);
}

.front__num {
  display: block;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 22px;
  line-height: 1;
  color: var(--fg-3);
}

.front__kicker {
  display: block;
  margin-top: 14px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-2);
}

.front__title {
  display: block;
  margin-top: 10px;
  font-family: var(--font-serif);
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 500;
  line-height: 1.12;
}

.front__text {
  display: block;
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--fg-2);
}

.front__more {
  display: inline-flex;
  margin-top: 16px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 4px;
  transition: border-color 0.3s var(--ease);
}

.front:hover .front__more {
  border-color: var(--fg);
}

@media (max-width: 559px) {
  .front__text {
    display: none;
  }
}

@media (min-width: 900px) {
  .fronts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(28px, 4vw, 64px);
    align-items: start;
  }

  .front {
    grid-template-columns: 1fr;
    gap: 28px;
    align-items: start;
  }

  .front:nth-child(even) .front__media {
    order: 0;
  }

  /* Ritmo editorial: colunas em alturas diferentes. */
  .fronts li:nth-child(2) {
    margin-top: 96px;
  }

  .fronts li:nth-child(3) {
    margin-top: 40px;
  }
}

/* ---------- Bloco de destaque (fundo escuro, frase única) ---------- */

.statement {
  position: relative;
  overflow: hidden;
  padding-top: clamp(96px, 13vw, 184px);
  padding-bottom: clamp(96px, 13vw, 184px);
  text-align: center;
}

.statement__mono {
  width: auto;
  height: 64px;
  margin: 0 auto 48px;
}

.statement__text {
  max-width: 24ch;
  margin: 0 auto;
  font-size: clamp(32px, 4.6vw, 66px);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.statement .eyebrow {
  margin: 48px 0 0;
}

.statement__note {
  max-width: 52ch;
  margin: 32px auto 0;
  font-size: 16px;
  line-height: 1.75;
  color: var(--fg-2);
}

/* ---------- História com foto à esquerda (Início, Sobre) ---------- */

.story {
  overflow: hidden;
}

.story {
  --story-pad: var(--section-y);
}

.page-hero.story {
  --story-pad: clamp(48px, 7vw, 104px);
}

.story__lace {
  top: calc(var(--story-pad) + 24px);
  left: 0;
  width: 60px;
  /* Acompanha a altura da foto ao lado, sem invadir o texto abaixo. */
  height: calc(min(82vw, 440px) * 1.6);
  --lace-opacity: 0.9;
  background-repeat: repeat-y;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 10%, #000 75%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 10%, #000 75%, transparent);
}

.story__grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 56px;
  align-items: center;
}

.story__figure {
  width: min(82%, 440px);
  margin-left: 28px;
}

.story__text .lead {
  margin-top: 28px;
}

.story__text .body {
  margin-top: 20px;
}

.story__text .link-arrow {
  margin-top: 28px;
}

@media (min-width: 900px) {
  .story__lace {
    top: 0;
    width: clamp(150px, 15vw, 230px);
    height: 100%;
    background-repeat: repeat-y;
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent);
    mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent);
  }

  .story__grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(56px, 7vw, 120px);
  }

  .story__figure {
    width: min(100%, 460px);
    margin-left: clamp(40px, 6vw, 96px);
  }
}

/* ---------- Endereço em composição editorial ---------- */

.place__grid {
  display: grid;
  gap: 40px clamp(40px, 6vw, 96px);
}

.place__info {
  display: grid;
  gap: 22px;
  align-content: end;
  padding-top: 28px;
  border-top: 1px solid var(--line-strong);
}

.place__address {
  font-family: var(--font-serif);
  font-size: clamp(26px, 2.4vw, 32px);
  line-height: 1.25;
}

.place__info .actions {
  margin-top: 6px;
}

@media (min-width: 900px) {
  .place__grid {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    align-items: end;
  }
}

/* ---------- Convite com envelope de renda ---------- */

.invite {
  overflow: hidden;
}

.invite__grid {
  display: grid;
  gap: 72px clamp(48px, 7vw, 120px);
  align-items: center;
}

.invite__text .lead {
  margin-top: 28px;
  max-width: 44ch;
}

.invite__text .small {
  margin-top: 16px;
  max-width: 48ch;
}

.invite__text .actions .btn {
  white-space: normal;
  text-align: center;
}

@media (min-width: 900px) {
  .invite__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

.envelope {
  position: relative;
  width: min(100%, 520px);
  margin: 0 auto;
}

/* Espaço acima do envelope para o cartão subir. */
.envelope__stage {
  position: relative;
  margin-top: 13%;
  aspect-ratio: 775 / 715;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.envelope__back,
.envelope__front {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  user-select: none;
}

.envelope__back {
  z-index: 1;
  mix-blend-mode: multiply;
}

.envelope__front {
  z-index: 3;
}

/* O cartão ocupa exatamente o lugar do cartão da foto e sobe ao abrir. */
.envelope__card {
  position: absolute;
  z-index: 2;
  left: 18.6%;
  width: 62.4%;
  top: -12%;
  height: 80%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 7% 6% 0;
  background: var(--card-paper);
  color: var(--black);
  text-align: center;
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.35);
  transition: transform 0.95s var(--ease-out), box-shadow 0.95s var(--ease-out);
}

.envelope__card-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: opacity 0.5s var(--ease) 0.35s, visibility 0s linear 0s;
}

.envelope__mono {
  width: auto;
  height: clamp(26px, 4.4vw, 38px);
}

.envelope__title {
  margin-top: clamp(8px, 2vw, 16px);
  font-family: var(--font-serif);
  font-size: clamp(25px, 4.2vw, 38px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.envelope__title em {
  font-weight: 400;
}

.envelope__card .btn {
  margin-top: clamp(12px, 2.6vw, 22px);
  min-height: 44px;
  padding: 0 clamp(12px, 2.4vw, 22px);
  font-size: clamp(10.5px, 1.6vw, 12px);
  letter-spacing: 0.12em;
  --btn-bg: var(--black);
  --btn-fg: var(--white);
  --btn-hover: #333333;
  --focus: var(--black);
}

.envelope__toggle {
  position: absolute;
  z-index: 4;
  left: 0;
  right: 0;
  bottom: 0;
  height: 52%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.envelope__toggle:focus-visible {
  outline: 2px solid var(--black);
  outline-offset: 6px;
}

.envelope__hint {
  margin-top: 22px;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-align: center;
  color: var(--fg-3);
  transition: opacity 0.4s var(--ease);
}

.envelope__toggle,
.envelope__hint {
  display: none;
}

/* Com JavaScript, o envelope começa fechado e abre ao toque/clique.
   Sem JavaScript, o cartão já aparece aberto e o botão continua acessível. */
.js .envelope__toggle,
.js .envelope__hint {
  display: block;
}

.js .envelope:not(.is-open) .envelope__card {
  transform: translateY(34.5%);
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
}

.js .envelope:not(.is-open) .envelope__card-inner {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s var(--ease), visibility 0s linear 0.2s;
}

.js .envelope:not(.is-open) .envelope__stage:hover .envelope__card {
  transform: translateY(31%);
}

.js .envelope.is-open .envelope__hint {
  opacity: 0;
}

/* ---------- Colunas numeradas ---------- */

.numbered {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 0 clamp(28px, 4vw, 64px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.numbered li {
  padding: 32px 0 12px;
  border-top: 1px solid var(--line-strong);
}

.numbered__num {
  display: block;
  margin-bottom: 28px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(56px, 6vw, 88px);
  font-weight: 400;
  line-height: 0.9;
  color: var(--fg-3);
}

.numbered .h3 {
  margin-bottom: 12px;
}

.numbered p {
  max-width: 36ch;
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--fg-2);
}

.section-head {
  margin-bottom: clamp(48px, 6vw, 88px);
}

.section-head.center {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

.section-head .lead {
  margin-top: 24px;
}

/* ---------- Composição foto + texto (genérica) ---------- */

.split {
  display: grid;
  gap: 56px clamp(48px, 7vw, 120px);
  align-items: center;
}

.split__figure {
  width: min(100%, 440px);
  justify-self: center;
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .split--top {
    align-items: start;
  }

  .split--photo-right .split__figure {
    order: 2;
    justify-self: end;
  }

  .split--photo-left .split__figure {
    justify-self: start;
  }
}

/* ---------- Passos (Distribuição) ---------- */

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  display: grid;
  grid-template-columns: clamp(72px, 9vw, 120px) 1fr;
  gap: 16px;
  padding: 32px 0;
  border-top: 1px solid var(--line-strong);
}

.steps li:last-child {
  border-bottom: 1px solid var(--line-strong);
}

.steps__num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(48px, 5vw, 72px);
  font-weight: 400;
  line-height: 0.9;
  color: var(--fg-3);
}

.steps h3 {
  margin-bottom: 10px;
  font-size: clamp(24px, 2.2vw, 30px);
  line-height: 1.2;
}

.steps p {
  max-width: 42ch;
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--fg-2);
}

/* ---------- Nomes de convidados (Cursos) ---------- */

.names {
  display: grid;
  justify-items: center;
  max-width: 1000px;
  margin: 56px auto 0;
  padding: 0;
  list-style: none;
}

.names li {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(34px, 5.4vw, 72px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.names li + li::before {
  content: "";
  display: block;
  width: 28px;
  height: 1px;
  margin: 14px auto 12px;
  background: var(--line-strong);
}

/* ---------- Galeria editorial ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

.gallery figure:first-child {
  grid-column: 1 / -1;
  width: min(100%, 420px);
  justify-self: center;
}

@media (min-width: 720px) {
  .gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(20px, 3vw, 48px);
  }

  .gallery figure:first-child {
    grid-column: auto;
    width: auto;
  }

  .gallery figure:nth-child(2) {
    margin-top: clamp(48px, 8vw, 128px);
  }

  .gallery figure:nth-child(3) {
    margin-top: clamp(24px, 4vw, 56px);
  }
}

/* ---------- Leitura longa (Sobre) ---------- */

.chapters {
  display: grid;
  gap: clamp(56px, 7vw, 96px);
}

.chapter {
  display: grid;
  gap: 16px clamp(40px, 6vw, 96px);
}

.chapter__label {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(30px, 3vw, 40px);
  font-weight: 400;
  line-height: 1.1;
}

.chapter__label small {
  display: block;
  margin-bottom: 12px;
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-3);
}

.chapter .body {
  font-size: 17px;
}

@media (min-width: 900px) {
  .chapter {
    grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  }
}

.manifesto {
  max-width: 30ch;
  margin: 0 auto;
  font-family: var(--font-serif);
  font-size: clamp(26px, 3.2vw, 42px);
  font-weight: 400;
  line-height: 1.32;
  text-align: left;
  text-wrap: pretty;
}

/* ---------- Próximas turmas (Cursos) ---------- */

.notice {
  position: relative;
  max-width: 880px;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 80px) clamp(24px, 6vw, 88px);
  border: 1px solid var(--line-strong);
  text-align: center;
}

.notice::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid var(--line);
  pointer-events: none;
}

.notice .lead {
  margin-top: 24px;
}

.notice .small {
  margin-top: 16px;
}

/* ---------- Faixa de contato (páginas internas) ---------- */

.band {
  position: relative;
  overflow: hidden;
  padding-top: clamp(80px, 11vw, 152px);
  padding-bottom: clamp(80px, 11vw, 152px);
  text-align: center;
}

.band__inner {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto;
}

.band .lead {
  margin-top: 24px;
}

.band .actions .btn {
  white-space: normal;
  text-align: center;
}


/* ---------- Rodapé ---------- */

.site-footer {
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer__lace {
  top: 0;
  right: 0;
  width: clamp(60px, 9vw, 140px);
  height: 100%;
  --lace-opacity: 0.12;
  background-repeat: repeat-y;
}

.footer__top {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 48px;
  padding-top: clamp(64px, 9vw, 120px);
  padding-bottom: clamp(48px, 6vw, 72px);
  border-bottom: 1px solid var(--line);
}

.footer__brand img {
  width: min(280px, 72vw);
  height: auto;
}

.footer__about {
  max-width: 36ch;
  margin-top: 28px;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--fg-2);
}

.footer__cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  gap: 40px clamp(24px, 4vw, 56px);
}

@media (min-width: 900px) {
  .footer__top {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr);
  }
}

.footer__title {
  margin: 0 0 16px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-3);
}

.footer__list {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer__list--contact {
  gap: 16px;
}

.footer__list--contact li {
  display: grid;
  justify-items: start;
}

.footer__page {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  font-size: 15px;
  color: var(--fg);
  text-decoration: none;
  transition: color 0.25s var(--ease);
}

.footer__page:hover {
  color: var(--fg-2);
}

.footer__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg);
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
  transition: border-color 0.25s var(--ease);
}

.footer__cta:hover {
  border-color: var(--fg);
}

.footer__hint {
  margin-top: 4px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--fg-3);
}

.footer__address {
  font-size: 15px;
  line-height: 1.7;
  color: var(--fg-2);
}

.footer__address + .footer__cta {
  margin-top: 10px;
}

.footer__bottom {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 28px;
  /* Espaço para o botão flutuante no mobile. */
  padding-bottom: calc(112px + env(safe-area-inset-bottom));
  font-size: 12.5px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: var(--fg-3);
}

@media (min-width: 960px) {
  .footer__bottom {
    padding-bottom: 40px;
  }
}

/* ---------- 404 ---------- */

.not-found {
  min-height: calc(100svh - var(--header-h));
  display: flex;
  align-items: center;
  padding-top: clamp(72px, 12vw, 160px);
  padding-bottom: clamp(72px, 12vw, 160px);
}

.not-found .lead {
  margin-top: 28px;
}

/* ---------- Movimento ---------- */

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes unveil {
  from {
    opacity: 0.001;
    clip-path: inset(100% 0 0 0);
  }
  to {
    opacity: 1;
    clip-path: inset(0 0 0 0);
  }
}

@keyframes lace-in {
  from {
    opacity: 0;
    transform: translateY(-28px);
  }
  to {
    opacity: var(--lace-opacity, 1);
    transform: none;
  }
}

@keyframes lace-in-flip {
  from {
    opacity: 0;
    transform: scaleX(-1) translateY(-28px);
  }
  to {
    opacity: var(--lace-opacity, 1);
    transform: scaleX(-1);
  }
}

@keyframes cue {
  from {
    transform: scaleY(0);
  }
  to {
    transform: scaleY(1);
  }
}

@keyframes menu-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Abertura: sequência curta (≈1,2 s). O conteúdo nunca depende de rolagem. */
.intro-seq > * {
  animation: rise 0.8s var(--ease-out) both;
  animation-delay: var(--d, 0s);
}

.intro-seq > .intro-seq__mono {
  animation-name: fade;
  animation-duration: 0.7s;
}

.intro-photo {
  animation: unveil 1s var(--ease-out) 0.2s both;
}

.intro-lace {
  animation: lace-in 1.4s var(--ease-out) 0.35s both;
}

.intro-lace.lace--from-right {
  animation-name: lace-in-flip;
}

.scroll-cue {
  animation: fade 0.6s var(--ease) 0.9s both;
}

.scroll-cue span {
  animation: cue 0.9s var(--ease-out) 1s both;
}

/* Revelação ao rolar: só com JavaScript ativo (classe .js no <html>). */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: var(--d, 0s);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

.js [data-reveal="photo"] {
  transform: none;
  clip-path: inset(12% 0 0 0);
  transition: opacity 1s var(--ease-out), clip-path 1.2s var(--ease-out);
  transition-delay: var(--d, 0s);
}

.js [data-reveal="photo"].is-visible {
  clip-path: inset(0 0 0 0);
}

.js [data-reveal="lace"] {
  opacity: 0;
  transform: translateY(-28px);
  transition: opacity 1.6s var(--ease-out), transform 1.8s var(--ease-out);
}

.js [data-reveal="lace"].is-visible {
  opacity: var(--lace-opacity, 1);
  transform: none;
}

.js [data-reveal="lace"].lace--from-right {
  transform: scaleX(-1) translateY(-28px);
}

.js [data-reveal="lace"].lace--from-right.is-visible {
  transform: scaleX(-1);
}

.js [data-reveal="mono"] {
  transform: translateY(10px);
  transition-duration: 1.4s;
}

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

  .js [data-reveal] {
    opacity: 1;
    transform: none;
    clip-path: none;
  }

  .js [data-reveal="lace"] {
    opacity: var(--lace-opacity, 1);
  }

  .js [data-reveal="lace"].lace--from-right {
    transform: scaleX(-1);
  }

  .front:hover .front__media img {
    transform: none;
  }
}
