:root {
  --ink: #201b16;
  --ink-soft: #3b3129;
  --muted: #766b5f;
  --paper: #d8cabe;
  --paper-light: #f2e7d7;
  --cream: #fbf3e7;
  --olive: #4a5936;
  --gold: #80622d;
  --clay: #9f6543;
  --plum: #3f2d3b;
  --line: rgba(32, 27, 22, 0.16);
  --line-strong: rgba(32, 27, 22, 0.28);
  --shadow: 0 26px 90px rgba(57, 42, 28, 0.16);
  --font-body: "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(128, 98, 45, 0.12), transparent 28rem),
    linear-gradient(120deg, var(--paper-light), var(--paper) 48%, #cab8a8);
  font-family: var(--font-body);
  letter-spacing: 0;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  content: "";
  opacity: 0.14;
  background-image:
    linear-gradient(rgba(32, 27, 22, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(32, 27, 22, 0.03) 1px, transparent 1px);
  background-size: 42px 42px;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a,
summary {
  -webkit-tap-highlight-color: transparent;
}

.formation-header {
  position: sticky;
  top: 0;
  z-index: 8;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: clamp(14px, 3vw, 36px);
  align-items: center;
  padding: 14px clamp(16px, 4vw, 46px);
  border-bottom: 1px solid rgba(32, 27, 22, 0.12);
  background: rgba(242, 231, 215, 0.86);
  backdrop-filter: blur(18px);
}

.brand-mark {
  min-width: 138px;
}

.brand-mark span,
.formation-footer > span {
  color: var(--gold);
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3vw, 2.45rem);
  font-weight: 500;
  letter-spacing: 0.12em;
  line-height: 0.9;
  text-transform: uppercase;
}

.formation-nav {
  display: flex;
  justify-content: center;
  gap: clamp(12px, 2.6vw, 34px);
  color: var(--muted);
  font-size: 0.94rem;
}

.formation-nav a,
.header-cta,
.inline-link,
.formation-footer a {
  transition: color 220ms ease, transform 220ms ease, background 220ms ease;
}

.formation-nav a:hover,
.inline-link:hover,
.formation-footer a:hover {
  color: var(--ink);
}

.header-cta {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 0 17px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(251, 243, 231, 0.72);
  font-size: 0.9rem;
}

.header-cta:hover {
  background: var(--ink);
  color: var(--cream);
}

.formation-hero,
.pensum-hero,
.section-grid,
.audience-section,
.structure-section,
.image-led,
.ai-marketing,
.ethics-certification,
.certification-spotlight,
.interest-section,
.pensum-section,
.electives-section,
.deliverables-section,
.certification-section,
.faq-section,
.final-cta {
  width: min(100% - 32px, 1240px);
  margin-inline: auto;
}

.formation-hero {
  display: block;
  min-height: calc(100dvh - 72px);
  padding: clamp(24px, 4vw, 46px) 0 clamp(44px, 7vw, 86px);
}

.hero-panel {
  position: absolute;
  left: clamp(18px, 5vw, 72px);
  bottom: clamp(28px, 7vw, 92px);
  z-index: 2;
  width: min(760px, calc(100% - clamp(36px, 10vw, 144px)));
  padding: clamp(22px, 4vw, 44px);
  border: 1px solid rgba(251, 243, 231, 0.3);
  border-radius: 8px;
  background: linear-gradient(130deg, rgba(32, 27, 22, 0.72), rgba(32, 27, 22, 0.42));
  box-shadow: 0 26px 90px rgba(14, 11, 9, 0.28);
  backdrop-filter: blur(18px);
}

.kicker {
  margin: 0 0 16px;
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 760;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: var(--font-display);
  font-weight: 420;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: clamp(2.7rem, 6vw, 5.6rem);
  line-height: 0.92;
}

h2 {
  margin-bottom: 20px;
  font-size: clamp(2.2rem, 4.6vw, 4.9rem);
  line-height: 0.96;
}

h3 {
  margin-bottom: 10px;
  font-size: clamp(1.14rem, 1.5vw, 1.35rem);
  line-height: 1.15;
}

p,
li {
  color: var(--muted);
  font-size: clamp(1rem, 1.2vw, 1.08rem);
  line-height: 1.7;
}

.hero-lede {
  max-width: 66ch;
  font-size: clamp(1.04rem, 1.5vw, 1.2rem);
}

.hero-panel h1,
.hero-panel .hero-lede {
  color: var(--cream);
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.28);
}

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

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 720;
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease, color 220ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button:active {
  transform: translateY(0) scale(0.98);
}

.button.primary {
  color: var(--cream);
  background: var(--ink);
}

.button.secondary {
  border-color: var(--line-strong);
  color: var(--ink);
  background: rgba(251, 243, 231, 0.6);
}

.hero-panel .button.primary {
  background: var(--cream);
  color: var(--ink);
}

.hero-panel .button.secondary {
  border-color: rgba(251, 243, 231, 0.44);
  color: var(--cream);
  background: rgba(251, 243, 231, 0.12);
}

.hero-visual {
  position: relative;
  min-height: clamp(660px, calc(100dvh - 118px), 880px);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-visual picture {
  display: block;
  height: 100%;
}

.hero-visual img {
  filter: brightness(1.14) contrast(1.02) saturate(1.05);
  transform: scale(1.012);
}

.hero-visual::before,
.hero-visual::after,
.image-led-photo::after {
  position: absolute;
  inset: 0;
  content: "";
}

.hero-visual::before {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(21, 16, 14, 0.52), rgba(21, 16, 14, 0.18) 48%, rgba(21, 16, 14, 0.38)),
    linear-gradient(180deg, rgba(18, 13, 11, 0.08), transparent 35%, rgba(18, 13, 11, 0.56));
}

.hero-visual::after,
.image-led-photo::after {
  background: linear-gradient(180deg, transparent 48%, rgba(32, 27, 22, 0.38));
}

.thesis-band {
  overflow: hidden;
  border-block: 1px solid rgba(32, 27, 22, 0.14);
  background: var(--ink);
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
}

.thesis-track {
  display: flex;
  width: max-content;
  gap: clamp(28px, 5vw, 76px);
  padding: 22px 0;
  color: var(--cream);
  animation: formation-drift 16s ease-in-out infinite alternate;
  will-change: transform;
}

.thesis-band.is-marquee-enhanced .thesis-track {
  animation: none;
}

.thesis-band.is-dragging {
  cursor: grabbing;
}

.thesis-track span {
  flex: 0 0 auto;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5.8vw, 6rem);
  line-height: 0.9;
  white-space: nowrap;
}

@keyframes formation-drift {
  from {
    transform: translate3d(-3vw, 0, 0);
  }
  to {
    transform: translate3d(-28vw, 0, 0);
  }
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(320px, 1fr);
  gap: clamp(28px, 7vw, 96px);
  padding: clamp(78px, 10vw, 140px) 0;
}

.section-title {
  max-width: 640px;
}

.copy-stack {
  display: grid;
  gap: 18px;
  align-self: end;
}

.audience-section {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
  gap: 18px;
  padding-bottom: clamp(32px, 5vw, 70px);
}

.audience-panel {
  padding: clamp(24px, 4vw, 46px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(251, 243, 231, 0.56);
}

.audience-panel.for-you {
  background: var(--olive);
}

.audience-panel.for-you .kicker,
.audience-panel.for-you li {
  color: var(--cream);
}

.audience-panel.not-for-you {
  background: rgba(63, 45, 59, 0.12);
}

ul,
ol {
  margin: 0;
  padding-left: 1.1rem;
}

li + li {
  margin-top: 12px;
}

.build-section {
  width: min(100% - 32px, 1320px);
  margin-inline: auto;
  padding: clamp(70px, 9vw, 138px) 0 clamp(78px, 10vw, 150px);
  border-top: 1px solid var(--line);
}

.build-section .section-title {
  width: min(100%, 900px);
  margin: 0 auto clamp(32px, 6vw, 72px);
  text-align: center;
}

.build-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.build-grid span {
  min-height: 112px;
  padding: 20px;
  color: var(--ink);
  background: rgba(251, 243, 231, 0.62);
  line-height: 1.35;
}

.structure-section,
.pensum-section,
.faq-section {
  padding: clamp(78px, 10vw, 150px) 0;
}

.section-head {
  max-width: 850px;
  margin-bottom: clamp(30px, 5vw, 64px);
}

.quarter-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 14px;
}

.quarter-card {
  min-height: 260px;
  padding: clamp(22px, 4vw, 40px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(251, 243, 231, 0.62);
}

.quarter-card:nth-child(2),
.quarter-card:nth-child(3) {
  background: rgba(32, 27, 22, 0.86);
}

.quarter-card:nth-child(2) *,
.quarter-card:nth-child(3) * {
  color: var(--cream);
}

.quarter-card span,
.certificate-panel span,
.ethics-promise span,
.program-summary span {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.inline-link {
  display: inline-flex;
  margin-top: 26px;
  color: var(--gold);
  font-weight: 800;
}

.certification-spotlight {
  padding: 0 0 clamp(70px, 9vw, 130px);
}

.certification-spotlight .certificate-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 5vw, 58px);
  background:
    linear-gradient(135deg, rgba(63, 45, 59, 0.98), rgba(74, 53, 72, 0.9)),
    var(--plum);
  box-shadow: 0 26px 90px rgba(63, 45, 59, 0.2);
}

.certification-spotlight .certificate-panel::after {
  position: absolute;
  right: clamp(22px, 5vw, 64px);
  bottom: clamp(18px, 4vw, 46px);
  width: clamp(88px, 12vw, 150px);
  height: clamp(88px, 12vw, 150px);
  border: 1px solid rgba(251, 243, 231, 0.18);
  border-radius: 999px;
  content: "";
}

.certification-spotlight h2 {
  max-width: 980px;
  margin-bottom: 18px;
  color: var(--cream);
  font-size: clamp(2rem, 4.4vw, 4.3rem);
}

.certification-spotlight p {
  max-width: 760px;
  margin-bottom: 0;
  color: rgba(251, 243, 231, 0.78);
}

.pensum-preview,
.route-map-section,
.project-final-section {
  width: min(100% - 32px, 1240px);
  margin-inline: auto;
}

.pensum-preview {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(360px, 1.18fr);
  gap: clamp(28px, 7vw, 90px);
  align-items: center;
  padding: clamp(78px, 10vw, 150px) 0;
  border-top: 1px solid var(--line);
}

.pensum-preview-copy {
  max-width: 620px;
}

.pensum-preview-map {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.pensum-preview-map .map-line {
  position: absolute;
  top: 50%;
  left: 8%;
  right: 8%;
  height: 1px;
  background: rgba(32, 27, 22, 0.24);
  transform: translateY(-50%);
}

.pensum-preview-map article {
  position: relative;
  min-height: 190px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(251, 243, 231, 0.74);
  box-shadow: 0 20px 60px rgba(57, 42, 28, 0.08);
}

.pensum-preview-map article:nth-of-type(2),
.pensum-preview-map article:nth-of-type(4) {
  transform: translateY(30px);
  background: rgba(32, 27, 22, 0.9);
}

.pensum-preview-map article:nth-of-type(2) h3,
.pensum-preview-map article:nth-of-type(2) p,
.pensum-preview-map article:nth-of-type(4) h3,
.pensum-preview-map article:nth-of-type(4) p {
  color: var(--cream);
}

.pensum-preview-map strong,
.route-map span {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--gold);
  background: rgba(251, 243, 231, 0.72);
  font-size: 0.84rem;
}

.image-led {
  display: grid;
  grid-template-columns: minmax(360px, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(28px, 7vw, 90px);
  align-items: center;
  padding: clamp(60px, 8vw, 120px) 0;
}

.image-led-photo {
  position: relative;
  display: block;
  min-height: clamp(380px, 48vw, 640px);
  overflow: hidden;
  border-radius: 8px;
}

.image-led-photo img {
  position: absolute;
  inset: 0;
  filter: brightness(1.16) contrast(1.04) saturate(1.05);
  object-position: center;
}

.image-led-copy {
  max-width: 620px;
}

.ai-marketing {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(28px, 7vw, 86px);
  align-items: center;
  padding: clamp(80px, 10vw, 150px) 0;
  border-top: 1px solid var(--line);
}

.tool-orbit {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-content: start;
}

.tool-orbit span,
.electives-grid span {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(251, 243, 231, 0.6);
}

.ethics-certification,
.certification-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  gap: 18px;
  padding: clamp(80px, 10vw, 150px) 0;
}

.ethics-copy,
.certificate-panel,
.ethics-promise,
.certificate-list {
  padding: clamp(24px, 4vw, 46px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(251, 243, 231, 0.62);
}

.certificate-panel,
.ethics-promise {
  background: var(--plum);
}

.certificate-panel h2,
.certificate-panel h3,
.certificate-panel p,
.ethics-promise h3,
.ethics-promise p {
  color: var(--cream);
}

.interest-section {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(360px, 1.14fr);
  gap: clamp(28px, 7vw, 90px);
  align-items: start;
  padding: clamp(84px, 10vw, 154px) 0;
  border-top: 1px solid var(--line);
}

.interest-copy {
  position: sticky;
  top: 98px;
}

.interest-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: clamp(20px, 4vw, 36px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(251, 243, 231, 0.68);
  box-shadow: var(--shadow);
}

label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 720;
}

label.full,
.button.full,
.form-note.full {
  grid-column: 1 / -1;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(32, 27, 22, 0.2);
  border-radius: 8px;
  background: rgba(255, 249, 239, 0.82);
  color: var(--ink);
  outline: none;
}

input,
select {
  min-height: 48px;
  padding: 0 14px;
}

textarea {
  resize: vertical;
  padding: 14px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(128, 98, 45, 0.16);
}

.consent {
  grid-template-columns: 20px 1fr;
  align-items: start;
  font-weight: 500;
}

.consent input {
  min-height: auto;
  margin-top: 4px;
}

.form-note {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--olive);
  font-weight: 720;
}

.formation-footer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 22px;
  align-items: center;
  padding: 30px clamp(16px, 4vw, 46px);
  border-top: 1px solid var(--line);
  background: rgba(32, 27, 22, 0.92);
}

.formation-footer p,
.formation-footer a {
  color: rgba(251, 243, 231, 0.74);
}

.formation-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.whatsapp-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9;
  display: inline-flex;
  width: 58px;
  height: 58px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(251, 243, 231, 0.32);
  border-radius: 999px;
  color: var(--cream);
  background: var(--olive);
  box-shadow: var(--shadow);
  font-weight: 820;
}

.pensum-page {
  background:
    radial-gradient(circle at 85% 4%, rgba(63, 45, 59, 0.16), transparent 26rem),
    linear-gradient(120deg, #efe2d1, #d4c2b3 54%, #c8b4a0);
}

.pensum-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.54fr);
  gap: clamp(26px, 7vw, 86px);
  align-items: end;
  padding: clamp(62px, 9vw, 128px) 0 clamp(42px, 7vw, 84px);
}

.pensum-hero-copy {
  max-width: 880px;
}

.program-summary {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.pensum-side {
  display: grid;
  gap: 14px;
}

.program-summary div {
  padding: 22px;
  background: rgba(251, 243, 231, 0.7);
}

.program-summary strong {
  display: block;
  font-size: 1.12rem;
  line-height: 1.25;
}

.pensum-seal {
  min-height: 174px;
  padding: 24px;
  border: 1px solid rgba(251, 243, 231, 0.24);
  border-radius: 8px;
  color: var(--cream);
  background:
    linear-gradient(135deg, rgba(74, 89, 54, 0.92), rgba(63, 45, 59, 0.9)),
    var(--olive);
}

.pensum-seal span {
  display: block;
  margin-bottom: 18px;
  color: #dfc080;
  font-size: 0.8rem;
  font-weight: 820;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.pensum-seal strong {
  display: block;
  max-width: 21ch;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 2.6vw, 2.55rem);
  font-weight: 420;
  line-height: 1;
}

.format-band {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  width: min(100% - 32px, 1240px);
  margin: 0 auto;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.format-band span {
  padding: 18px;
  background: rgba(32, 27, 22, 0.88);
  color: var(--cream);
  line-height: 1.3;
}

.route-map-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(360px, 1.2fr);
  gap: clamp(28px, 7vw, 90px);
  align-items: start;
  padding: clamp(76px, 9vw, 140px) 0;
}

.route-map-copy {
  position: sticky;
  top: 98px;
}

.route-map {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.route-map article {
  display: grid;
  grid-template-columns: 70px 0.34fr 1fr;
  gap: 18px;
  align-items: center;
  min-height: 138px;
  padding: 22px;
  background: rgba(251, 243, 231, 0.68);
}

.route-map article:nth-child(even) {
  background: rgba(32, 27, 22, 0.88);
}

.route-map article:nth-child(even) h3,
.route-map article:nth-child(even) p {
  color: var(--cream);
}

.route-map span {
  margin-bottom: 0;
}

.curriculum-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.curriculum-tab {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(251, 243, 231, 0.68);
  cursor: pointer;
}

.curriculum-tab.is-active {
  color: var(--cream);
  background: var(--ink);
}

.curriculum-root {
  display: grid;
  gap: 18px;
}

.quarter-detail {
  display: none;
  grid-template-columns: minmax(0, 0.46fr) minmax(0, 1fr);
  gap: 18px;
}

.quarter-detail.is-active {
  display: grid;
}

.quarter-summary,
.weeks-list,
.lab-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(251, 243, 231, 0.64);
}

.quarter-summary {
  position: sticky;
  top: 90px;
  align-self: start;
  padding: clamp(22px, 4vw, 36px);
}

.quarter-summary h3 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 3rem);
  font-weight: 420;
}

.weeks-list {
  overflow: hidden;
}

.week-item {
  border-bottom: 1px solid var(--line);
}

.week-item:last-child {
  border-bottom: 0;
}

.week-item summary {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 16px;
  align-items: start;
  padding: 20px;
  cursor: pointer;
  list-style: none;
}

.week-item summary::-webkit-details-marker {
  display: none;
}

.week-number {
  color: var(--gold);
  font-weight: 820;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.week-title {
  color: var(--ink);
  font-weight: 820;
  line-height: 1.25;
}

.week-body {
  padding: 0 20px 22px 124px;
}

.week-body p {
  margin-bottom: 12px;
}

.lab-panel {
  margin-top: 18px;
  padding: 22px;
  background: rgba(74, 89, 54, 0.12);
}

.electives-section {
  display: grid;
  grid-template-columns: minmax(0, 0.84fr) minmax(320px, 1.16fr);
  gap: clamp(28px, 7vw, 86px);
  padding: clamp(78px, 10vw, 150px) 0;
  border-top: 1px solid var(--line);
}

.electives-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.deliverables-section {
  padding: clamp(78px, 10vw, 150px) 0;
}

.deliverable-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.deliverable-columns ul {
  padding: clamp(24px, 4vw, 40px);
  background: rgba(251, 243, 231, 0.66);
}

.project-final-section {
  display: grid;
  grid-template-columns: minmax(360px, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(28px, 7vw, 88px);
  align-items: center;
  padding: clamp(76px, 9vw, 140px) 0;
  border-top: 1px solid var(--line);
}

.project-final-photo {
  min-height: clamp(360px, 48vw, 620px);
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.project-final-copy {
  max-width: 680px;
}

.project-final-copy ul {
  margin-top: 24px;
}

.certificate-list {
  background: rgba(251, 243, 231, 0.62);
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-list details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(251, 243, 231, 0.68);
}

.faq-list summary {
  padding: 20px;
  color: var(--ink);
  font-weight: 820;
  cursor: pointer;
}

.faq-list p {
  margin: 0;
  padding: 0 20px 22px;
}

.final-cta {
  display: grid;
  place-items: center;
  min-height: 56dvh;
  padding: clamp(70px, 12vw, 160px) 0;
  text-align: center;
}

.final-cta h2 {
  max-width: 840px;
}

.reveal {
  opacity: 0;
  transform: translate3d(0, 20px, 0);
  transition: opacity 700ms cubic-bezier(0.16, 1, 0.3, 1), transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

@media (max-width: 980px) {
  .formation-header,
  .formation-footer {
    grid-template-columns: 1fr;
  }

  .formation-nav {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .formation-hero,
  .pensum-hero,
  .section-grid,
  .audience-section,
  .pensum-preview,
  .image-led,
  .ai-marketing,
  .ethics-certification,
  .interest-section,
  .quarter-detail,
  .route-map-section,
  .electives-section,
  .project-final-section,
  .certification-section {
    grid-template-columns: 1fr;
  }

  .interest-copy,
  .quarter-summary,
  .route-map-copy {
    position: static;
  }

  .hero-visual {
    min-height: 820px;
  }

  .build-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quarter-grid,
  .pensum-preview-map,
  .deliverable-columns {
    grid-template-columns: 1fr;
  }

  .pensum-preview-map .map-line {
    top: 7%;
    bottom: 7%;
    left: 28px;
    right: auto;
    width: 1px;
    height: auto;
    transform: none;
  }

  .pensum-preview-map article:nth-of-type(2),
  .pensum-preview-map article:nth-of-type(4) {
    transform: none;
  }

  .route-map article {
    grid-template-columns: 62px 1fr;
  }

  .route-map article p {
    grid-column: 2;
  }
}

@media (max-width: 640px) {
  .formation-hero,
  .pensum-hero {
    padding-top: 44px;
  }

  .hero-visual {
    display: flex;
    flex-direction: column;
    min-height: auto;
    padding-top: min(72vw, 320px);
  }

  .hero-visual picture {
    position: absolute;
    inset: 0 0 auto;
    height: min(72vw, 320px);
  }

  .hero-panel {
    position: relative;
    inset: auto;
    width: auto;
    margin: 12px;
  }

  .hero-panel {
    order: 3;
    padding: 22px;
  }

  .image-led-photo {
    min-height: 340px;
  }

  .project-final-photo {
    min-height: 320px;
  }

  .interest-form,
  .build-grid {
    grid-template-columns: 1fr;
  }

  .route-map article {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .route-map article p {
    grid-column: auto;
  }

  .week-item summary {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .week-body {
    padding: 0 20px 22px;
  }

  .thesis-track {
    gap: 28px;
  }

  .button {
    width: 100%;
  }

  .whatsapp-float {
    width: 54px;
    height: 54px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}
