/* =========================================================================
   campus.training — homepage
   Aesthetic: editorial, academic-modern. Fraunces + Instrument Sans.
   Warm cream canvas, terracotta accent, forest green, ink black.
   ========================================================================= */

/* ---------- Tokens ---------- */
:root {
  --paper:       #F2EDDF;   /* canvas */
  --paper-2:     #EBE3D2;   /* section alt */
  --ink:         #181513;   /* near-black, slightly warm */
  --ink-soft:    #3A332C;
  --mute:        #8C8274;
  --line:        #1815131f;
  --accent:      #C03E1C;   /* terracotta */
  --accent-ink:  #842713;
  --moss:        #2B4132;   /* deep forest green */
  --sand:        #D9C8A3;   /* warm tan */
  --sky:         #3A4E63;

  --f-serif: 'Fraunces', 'Times New Roman', serif;
  --f-sans:  'Instrument Sans', -apple-system, Helvetica, Arial, sans-serif;

  --radius: 14px;
  --shadow: 0 1px 0 #1815130f, 0 16px 40px -20px #181513aa;

  --container: 1280px;
  --pad-x: clamp(20px, 4vw, 64px);
}

/* ---------- Reset & base ---------- */
*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: 19px;
  line-height: 1.55;
  font-variation-settings: "wght" 420;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.09  0 0 0 0 0.08  0 0 0 0 0.07  0 0 0 0.04 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: 220px 220px;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
img { max-width: 100%; display: block; }
svg { display: block; }

/* ---------- Layout primitives ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--pad-x);
}

.eyebrow {
  font-family: var(--f-sans);
  font-size: 16px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 28px; height: 1px; background: var(--ink);
  display: inline-block;
}

h1, h2, h3, h4 {
  font-family: var(--f-serif);
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0;
}

.display {
  font-family: var(--f-serif);
  font-variation-settings: "opsz" 144, "wght" 380, "SOFT" 30, "WONK" 0;
  font-size: clamp(59px, 10.5vw, 179px);
  line-height: 0.94;
  letter-spacing: -0.035em;
}
.display em {
  font-style: italic;
  font-variation-settings: "opsz" 144, "wght" 350, "SOFT" 100, "WONK" 1;
  color: var(--accent);
}

.sub {
  font-family: var(--f-sans);
  font-size: clamp(19px, 1.2vw, 22px);
  max-width: 44ch;
  color: var(--ink-soft);
}

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: color-mix(in oklab, var(--paper) 86%, transparent);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 68px;
}
.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  font-family: var(--f-serif);
  font-size: 25px;
  letter-spacing: -0.01em;
  font-variation-settings: "opsz" 48, "wght" 500, "SOFT" 60, "WONK" 1;
}
.brand em {
  font-style: italic;
  font-variation-settings: "opsz" 48, "wght" 450, "SOFT" 100, "WONK" 1;
  color: var(--accent);
}
.brand__dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  display: inline-block;
  margin-inline: 4px 2px;
  transform: translateY(-6px);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 36px;
  font-size: 17px;
  font-weight: 500;
}
.nav__links a {
  position: relative;
  padding-block: 8px;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 2px;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 240ms ease;
}
.nav__links a:hover::after { transform: scaleX(1); }

.nav__cta { display: flex; gap: 10px; align-items: center; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 999px;
  font-family: var(--f-sans);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.01em;
  transition: transform 220ms cubic-bezier(.2,.7,.2,1), background 240ms, color 240ms;
  will-change: transform;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary {
  background: var(--ink);
  color: var(--paper);
}
.btn--primary:hover { background: var(--accent); color: #fff; }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--link {
  padding: 0;
  border-radius: 0;
  background: transparent;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 4px;
}
.btn .arrow {
  display: inline-block;
  transition: transform 220ms cubic-bezier(.2,.7,.2,1);
}
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- Hero ---------- */
.hero {
  padding-block: clamp(48px, 7vw, 120px) clamp(48px, 7vw, 110px);
  position: relative;
  overflow: hidden;
}
.hero::after {
  /* decorative corner glyph */
  content: "§";
  position: absolute;
  right: calc(var(--pad-x) - 6px);
  top: 80px;
  font-family: var(--f-serif);
  font-style: italic;
  font-variation-settings: "opsz" 144, "wght" 400, "SOFT" 100, "WONK" 1;
  font-size: clamp(123px, 18vw, 263px);
  color: var(--accent);
  opacity: 0.08;
  line-height: 1;
  pointer-events: none;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}
@media (min-width: 960px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.85fr);
    align-items: end;
    gap: 64px;
  }
}

.hero__eyebrow-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
  gap: 24px;
  flex-wrap: wrap;
}
.hero__meta {
  font-size: 16px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--mute);
  font-weight: 600;
}

.hero h1 {
  animation: rise 900ms cubic-bezier(.2,.7,.2,1) both;
}
.hero h1 > span {
  display: inline-block;
  opacity: 0;
  transform: translateY(24px);
  animation: rise 900ms cubic-bezier(.2,.7,.2,1) forwards;
}
.hero h1 > span:nth-child(1) { animation-delay: 80ms; }
.hero h1 > span:nth-child(2) { animation-delay: 160ms; }
.hero h1 > span:nth-child(3) { animation-delay: 240ms; }
.hero h1 > span:nth-child(4) { animation-delay: 320ms; }
.hero h1 > span:nth-child(5) { animation-delay: 400ms; }

.hero__lede {
  margin-top: 28px;
  max-width: 52ch;
  font-size: clamp(20px, 1.3vw, 23px);
  line-height: 1.5;
  color: var(--ink-soft);
  opacity: 0;
  transform: translateY(18px);
  animation: rise 900ms 560ms cubic-bezier(.2,.7,.2,1) forwards;
}
.hero__ctas {
  margin-top: 32px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(18px);
  animation: rise 900ms 680ms cubic-bezier(.2,.7,.2,1) forwards;
}

/* Hero card (right) */
.card-hero {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
  transform: rotate(-1.4deg);
  box-shadow: var(--shadow);
  opacity: 0;
  animation: rise 900ms 800ms cubic-bezier(.2,.7,.2,1) forwards;
}
.card-hero::before {
  content: "n.º 001";
  position: absolute;
  top: 12px; right: 14px;
  font-size: 16px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mute);
  font-weight: 600;
}
.card-hero__tag {
  font-family: var(--f-serif);
  font-style: italic;
  font-variation-settings: "opsz" 14, "wght" 440, "SOFT" 100, "WONK" 1;
  font-size: 16px;
  color: var(--accent);
  margin-bottom: 14px;
}
.card-hero__title {
  font-family: var(--f-serif);
  font-variation-settings: "opsz" 96, "wght" 500, "SOFT" 40;
  font-size: clamp(29px, 2.2vw, 37px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}
.card-hero__rule { height: 1px; background: var(--line); margin: 14px 0; }
.card-hero__meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  font-size: 16px;
  color: var(--ink-soft);
}
.card-hero__meta dt {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 16px;
  color: var(--mute);
  font-weight: 600;
  margin-bottom: 4px;
}
.card-hero__meta dd { margin: 0; font-weight: 500; }
.card-hero__footer {
  margin-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 16px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.05em;
  background: var(--moss);
  color: var(--paper);
}
.pill__dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #BCE7A0;
  animation: pulse 1.8s infinite ease-in-out;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%,100% { opacity: 1; }
  50%     { opacity: 0.35; }
}

/* ---------- Marquee ---------- */
.marquee {
  background: var(--ink);
  color: var(--paper);
  border-block: 1px solid var(--ink);
  overflow: hidden;
  padding-block: 18px;
  font-family: var(--f-serif);
  font-variation-settings: "opsz" 48, "wght" 380, "SOFT" 80;
  font-size: clamp(31px, 3.2vw, 47px);
  letter-spacing: -0.01em;
}
.marquee__track {
  display: inline-flex;
  gap: 48px;
  white-space: nowrap;
  padding-left: 48px;
  animation: scroll 38s linear infinite;
}
.marquee__track em {
  font-style: italic;
  color: var(--accent);
  font-variation-settings: "opsz" 48, "wght" 350, "SOFT" 100, "WONK" 1;
}
.marquee__track span {
  font-family: var(--f-sans);
  font-size: 21px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.6;
  align-self: center;
}
@keyframes scroll {
  to { transform: translateX(-50%); }
}

/* ---------- Sections ---------- */
.section {
  padding-block: clamp(64px, 8vw, 140px);
  position: relative;
}
.section--alt {
  background: var(--paper-2);
  border-block: 1px solid var(--line);
}
.section__head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 56px;
}
@media (min-width: 900px) {
  .section__head {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: end;
  }
}
.section__title {
  font-family: var(--f-serif);
  font-variation-settings: "opsz" 144, "wght" 400, "SOFT" 30;
  font-size: clamp(43px, 5.6vw, 87px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  max-width: 14ch;
}
.section__title em {
  font-style: italic;
  font-variation-settings: "opsz" 144, "wght" 380, "SOFT" 100, "WONK" 1;
  color: var(--accent);
}
.section__lede {
  max-width: 52ch;
  color: var(--ink-soft);
  font-size: clamp(19px, 1.15vw, 21px);
  line-height: 1.55;
}

/* ---------- Roles ---------- */
.roles {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 720px) { .roles { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1080px) { .roles { grid-template-columns: repeat(3, 1fr); } }

.role {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 320ms cubic-bezier(.2,.7,.2,1), box-shadow 320ms, border-color 320ms;
  overflow: hidden;
}
.role:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: var(--ink);
}
.role__num {
  position: absolute;
  top: 18px; right: 22px;
  font-family: var(--f-serif);
  font-style: italic;
  font-variation-settings: "opsz" 14, "wght" 420, "SOFT" 100, "WONK" 1;
  font-size: 16px;
  color: var(--mute);
}
.role__name {
  font-family: var(--f-serif);
  font-variation-settings: "opsz" 96, "wght" 480, "SOFT" 30;
  font-size: 33px;
  line-height: 1;
  letter-spacing: -0.02em;
}
.role__name em {
  font-style: italic;
  font-variation-settings: "opsz" 96, "wght" 440, "SOFT" 100, "WONK" 1;
  color: var(--accent);
}
.role__desc {
  color: var(--ink-soft);
  font-size: 17.5px;
  line-height: 1.55;
  margin: 0;
}
.role__list {
  margin: 0; padding: 0; list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 16.5px;
}
.role__list li {
  display: flex;
  gap: 10px;
  color: var(--ink-soft);
  border-top: 1px dashed var(--line);
  padding-top: 6px;
}
.role__list li::before {
  content: "→";
  color: var(--accent);
  font-family: var(--f-serif);
  font-style: italic;
}
.role__cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.role__cta::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--ink);
  transform-origin: left;
  transform: scaleX(0.18);
  transition: transform 360ms cubic-bezier(.2,.7,.2,1);
}
.role:hover .role__cta::after { transform: scaleX(1); }

/* role color variants via dataset */
.role[data-role="formandos"]     { --tone: var(--accent); }
.role[data-role="encarregados"]  { --tone: var(--moss); }
.role[data-role="formadores"]    { --tone: var(--sky); }
.role[data-role="coordenadores"] { --tone: #A64F0C; }
.role[data-role="admin"]         { --tone: #5A3E26; }
.role[data-role="superadmin"]    { --tone: var(--ink); }

.role__badge {
  position: absolute;
  left: 22px; bottom: -18px;
  font-family: var(--f-serif);
  font-style: italic;
  font-variation-settings: "opsz" 144, "wght" 380, "SOFT" 100, "WONK" 1;
  font-size: 123px;
  line-height: 1;
  color: var(--tone);
  opacity: 0.08;
  pointer-events: none;
}

/* ---------- Numbers ---------- */
.numbers {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
@media (min-width: 720px) { .numbers { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1080px) { .numbers { grid-template-columns: repeat(4, 1fr); } }

.stat {
  border-top: 1px solid var(--ink);
  padding: 28px 8px 28px 0;
}
.stat__n {
  font-family: var(--f-serif);
  font-variation-settings: "opsz" 144, "wght" 360, "SOFT" 20;
  font-size: clamp(59px, 6vw, 99px);
  line-height: 0.9;
  letter-spacing: -0.04em;
}
.stat__n em {
  font-style: italic;
  font-variation-settings: "opsz" 144, "wght" 380, "SOFT" 100, "WONK" 1;
  color: var(--accent);
}
.stat__label {
  margin-top: 16px;
  font-size: 16.5px;
  color: var(--ink-soft);
  max-width: 32ch;
  line-height: 1.5;
}

/* ---------- How it works ---------- */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
}
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); } }

.step {
  padding: 28px 24px;
  border: 1px solid var(--line);
  background: var(--paper);
  position: relative;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.step + .step { border-left: 0; }
@media (max-width: 899px) {
  .step + .step { border-left: 1px solid var(--line); border-top: 0; }
}
.step__n {
  font-family: var(--f-serif);
  font-variation-settings: "opsz" 144, "wght" 320, "SOFT" 0;
  font-size: 59px;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--accent);
}
.step__title {
  font-family: var(--f-serif);
  font-variation-settings: "opsz" 96, "wght" 500, "SOFT" 30;
  font-size: 25px;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.step__desc {
  margin: 0;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.55;
}

/* ---------- Course highlight ---------- */
.course-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 960px) {
  .course-panel { grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: stretch; }
}

.course-list { display: flex; flex-direction: column; gap: 0; }
.course {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: padding 320ms ease, color 320ms ease;
}
.course:first-child { border-top: 1px solid var(--line); }
.course:hover {
  padding-left: 12px;
}
.course:hover .course__t { color: var(--accent); }
.course__n {
  font-family: var(--f-serif);
  font-style: italic;
  font-variation-settings: "opsz" 96, "wght" 380, "SOFT" 100, "WONK" 1;
  font-size: 31px;
  color: var(--mute);
}
.course__t {
  font-family: var(--f-serif);
  font-variation-settings: "opsz" 96, "wght" 500, "SOFT" 30;
  font-size: clamp(25px, 2vw, 33px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  transition: color 280ms ease;
}
.course__meta {
  display: flex;
  gap: 12px;
  font-size: 16px;
  color: var(--mute);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.course__arrow {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 27px;
  color: var(--ink);
  transition: transform 280ms ease;
}
.course:hover .course__arrow { transform: translateX(6px); }

.course-aside {
  background: var(--moss);
  color: var(--paper);
  padding: 32px;
  border-radius: var(--radius);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 380px;
  overflow: hidden;
}
.course-aside::after {
  content: "";
  position: absolute;
  inset: auto -60px -40px auto;
  width: 220px; height: 220px;
  background: radial-gradient(circle at 30% 30%, #D9C8A3 0%, transparent 70%);
  opacity: 0.3;
  pointer-events: none;
}
.course-aside__eyebrow {
  font-size: 16px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--sand);
}
.course-aside__title {
  font-family: var(--f-serif);
  font-variation-settings: "opsz" 144, "wght" 380, "SOFT" 30;
  font-size: clamp(33px, 3vw, 47px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin-top: 18px;
}
.course-aside__title em {
  font-style: italic;
  font-variation-settings: "opsz" 144, "wght" 360, "SOFT" 100, "WONK" 1;
  color: var(--sand);
}
.course-aside__note {
  font-size: 17px;
  line-height: 1.55;
  color: color-mix(in oklab, var(--paper) 85%, transparent);
  margin-top: 16px;
}
.course-aside .btn {
  margin-top: 24px;
  align-self: flex-start;
  background: var(--paper);
  color: var(--moss);
}
.course-aside .btn:hover { background: var(--accent); color: var(--paper); }

/* ---------- Testimonial ---------- */
.quote {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
}
@media (min-width: 900px) {
  .quote { grid-template-columns: 1fr 1.6fr; gap: 64px; }
}
.quote__portrait {
  aspect-ratio: 3 / 4;
  background:
    radial-gradient(ellipse at 40% 30%, #E8CDA3 0%, transparent 62%),
    linear-gradient(140deg, #A64F0C 0%, #5A3E26 60%, #2B2118 100%);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  transform: rotate(-2deg);
}
.quote__portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.96  0 0 0 0 0.92  0 0 0 0 0.84  0 0 0 0.08 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  mix-blend-mode: overlay;
}
.quote__portrait-tag {
  position: absolute;
  left: 18px; bottom: 18px;
  color: var(--paper);
  font-family: var(--f-serif);
  font-style: italic;
  font-variation-settings: "opsz" 14, "wght" 420, "SOFT" 100, "WONK" 1;
  font-size: 17px;
  letter-spacing: 0.02em;
}
.quote__text {
  font-family: var(--f-serif);
  font-variation-settings: "opsz" 144, "wght" 360, "SOFT" 30;
  font-size: clamp(31px, 3.6vw, 55px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin: 0;
}
.quote__text em {
  font-style: italic;
  font-variation-settings: "opsz" 144, "wght" 340, "SOFT" 100, "WONK" 1;
  color: var(--accent);
}
.quote__meta {
  margin-top: 22px;
  font-size: 16px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 600;
}

/* ---------- Final CTA ---------- */
.cta {
  background: var(--ink);
  color: var(--paper);
  padding-block: clamp(72px, 9vw, 160px);
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute;
  inset: -2px;
  background:
    radial-gradient(ellipse 900px 600px at 10% 20%, rgba(192,62,28,0.18), transparent 60%),
    radial-gradient(ellipse 800px 500px at 90% 80%, rgba(43,65,50,0.35), transparent 60%);
  pointer-events: none;
}
.cta__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: end;
}
@media (min-width: 900px) {
  .cta__inner { grid-template-columns: 1.5fr 1fr; gap: 64px; }
}
.cta__title {
  font-family: var(--f-serif);
  font-variation-settings: "opsz" 144, "wght" 360, "SOFT" 30;
  font-size: clamp(55px, 8vw, 131px);
  line-height: 0.94;
  letter-spacing: -0.035em;
  color: var(--paper);
}
.cta__title em {
  font-style: italic;
  font-variation-settings: "opsz" 144, "wght" 340, "SOFT" 100, "WONK" 1;
  color: var(--sand);
}
.cta__lede {
  color: color-mix(in oklab, var(--paper) 78%, transparent);
  font-size: 20px;
  max-width: 40ch;
  line-height: 1.55;
}
.cta__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}
.cta .btn--primary {
  background: var(--paper);
  color: var(--ink);
}
.cta .btn--primary:hover { background: var(--accent); color: #fff; }
.cta .btn--ghost {
  color: var(--paper);
  border-color: color-mix(in oklab, var(--paper) 40%, transparent);
}
.cta .btn--ghost:hover {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}

/* ---------- Footer ---------- */
.foot {
  background: var(--paper-2);
  padding-block: 56px 32px;
  border-top: 1px solid var(--line);
}
.foot__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 780px) {
  .foot__grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px; }
}
.foot__brand {
  font-family: var(--f-serif);
  font-variation-settings: "opsz" 48, "wght" 450, "SOFT" 50, "WONK" 1;
  font-size: clamp(31px, 3vw, 43px);
  letter-spacing: -0.02em;
  line-height: 1;
}
.foot__brand em {
  font-style: italic;
  font-variation-settings: "opsz" 48, "wght" 420, "SOFT" 100, "WONK" 1;
  color: var(--accent);
}
.foot__note {
  color: var(--ink-soft);
  font-size: 17px;
  max-width: 40ch;
  margin-top: 12px;
  line-height: 1.55;
}
.foot h4 {
  font-family: var(--f-sans);
  font-size: 16px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--mute);
  margin: 0 0 16px;
}
.foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 17px; }
.foot ul a { border-bottom: 1px solid transparent; padding-bottom: 2px; }
.foot ul a:hover { border-color: var(--ink); }

.foot__rule {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 16px;
  color: var(--mute);
}

/* ---------- Reveal on scroll ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 800ms cubic-bezier(.2,.7,.2,1), transform 800ms cubic-bezier(.2,.7,.2,1);
  will-change: opacity, transform;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Utilities ---------- */
.grid-line {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--line);
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}
