:root {
  --ink: #0b1f25;
  --ink-soft: #3d5153;
  --cream: #f7f2ea;
  --paper: #fffdf8;
  --teal: #0c5d62;
  --teal-light: #147a7a;
  --teal-dark: #072f34;
  --mist: #d3e1e5;
  --mist-deep: #8eaeb7;
  --terracotta: #ba7256;
  --iris: #6576ad;
  --sage: #738d7f;
  --copper: #c57948;
  --gold: #dfb772;
  --blue: #244d8f;
  --line: rgba(11, 31, 37, 0.12);
  --shadow: 0 24px 70px rgba(11, 31, 37, 0.13);
  --radius: 30px;
  --sans: "Plus Jakarta Sans", Arial, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 3% 32%, rgba(197, 121, 72, 0.065), transparent 25%),
    radial-gradient(circle at 95% 55%, rgba(12, 93, 98, 0.06), transparent 30%),
    var(--cream);
  font-family: var(--sans);
}

body.menu-open {
  overflow: hidden;
}

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

p {
  margin: 0;
  line-height: 1.7;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.055em;
}

button,
input,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.sr-only {
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.page-noise {
  position: fixed;
  z-index: 20;
  inset: 0;
  pointer-events: none;
  opacity: 0.17;
  background-image: radial-gradient(rgba(12, 36, 40, 0.35) 0.6px, transparent 0.6px);
  background-size: 4px 4px;
  mask-image: radial-gradient(circle, transparent 0%, #000 72%);
}

.cursor-halo {
  position: fixed;
  z-index: 0;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  border-radius: 50%;
  pointer-events: none;
  box-shadow: 0 0 190px 145px rgba(197, 121, 72, 0.1);
  transform: translate(var(--mouse-x, -500px), var(--mouse-y, -500px));
  transition: transform 100ms linear;
}

.site-header {
  --header-accent: var(--teal);
  position: fixed;
  z-index: 30;
  top: 18px;
  left: max(20px, calc((100% - 1320px) / 2));
  right: max(20px, calc((100% - 1320px) / 2));
  display: flex;
  align-items: center;
  gap: 30px;
  height: 74px;
  padding: 8px 10px 8px 19px;
  border: 1px solid rgba(255, 253, 248, 0.42);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.33);
  box-shadow: 0 16px 38px rgba(11, 31, 37, 0.035);
  backdrop-filter: blur(16px);
  transition: background 260ms ease, border-color 260ms ease, box-shadow 260ms ease;
}

.site-header.is-scrolled {
  background: rgba(255, 253, 248, 0.72);
  border-color: rgba(11, 31, 37, 0.07);
  box-shadow: 0 18px 44px rgba(11, 31, 37, 0.065);
  backdrop-filter: blur(18px);
}

.brand {
  flex: 0 0 auto;
  width: clamp(196px, 18vw, 225px);
  height: 52px;
}

.brand img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.navigation {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(17px, 1.8vw, 28px);
  margin-left: auto;
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 600;
}

.navigation a {
  position: relative;
  padding: 12px 0;
}

.navigation .nav-mobile-only {
  display: none;
}

.navigation a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 5px;
  left: 0;
  height: 1px;
  background: var(--header-accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 240ms ease;
}

.navigation a:hover::after,
.navigation a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 55px;
  padding: 0 27px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: var(--teal);
  font-size: 0.92rem;
  font-weight: 700;
  transition: transform 200ms ease, background 200ms ease, box-shadow 200ms ease;
  cursor: pointer;
}

.button:hover,
.button:focus-visible {
  background: var(--teal-light);
  transform: translateY(-2px);
  box-shadow: 0 15px 28px rgba(12, 93, 98, 0.2);
}

.button-small {
  min-height: 53px;
  padding: 0 23px;
  font-size: 0.86rem;
}

.site-header .header-cta {
  background: var(--header-accent);
}

.button-light {
  color: var(--teal);
  background: var(--paper);
}

.button-light:hover,
.button-light:focus-visible {
  color: #fff;
}

.menu-toggle {
  display: none;
}

.section {
  width: min(calc(100% - 48px), 1240px);
  margin: 0 auto;
}

.serif {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--copper);
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  line-height: 1.5;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  padding: clamp(150px, 17vh, 182px) max(24px, calc((100% - 1240px) / 2)) 86px;
  overflow: hidden;
}

.hero-backdrop {
  position: absolute;
  z-index: -1;
  inset: 0;
}

.hero-backdrop::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 66% 47%, rgba(223, 183, 114, 0.18), transparent 27%),
    linear-gradient(103deg, var(--cream) 0%, var(--cream) 49%, #e9e0d3 100%);
}

.home-page {
  background: #d3e1e5;
}

.home-page .site-header {
  --header-accent: var(--teal);
}

.home-page .hero-backdrop::before {
  background:
    radial-gradient(circle at 78% 28%, rgba(255, 253, 248, 0.7), transparent 34%),
    linear-gradient(118deg, #d3e1e5 0%, #d3e1e5 46%, #e5ecec 100%);
}

.home-page .site-header:not(.is-scrolled) .navigation {
  color: rgba(11, 31, 37, 0.78);
}

.home-page .hero-content {
  width: min(505px, 41%);
  padding-top: clamp(26px, 5vh, 54px);
}

.home-page .hero-title {
  font-size: clamp(3.55rem, 5.7vw, 5.45rem);
  line-height: 0.96;
}

.home-page .hero-title .serif {
  padding-top: 8px;
  padding-left: 0;
  color: var(--iris);
}

.home-page .hero-description {
  max-width: 450px;
}

.home-page .hero-scene {
  top: clamp(126px, 15vh, 156px);
  width: min(56%, 720px);
  height: min(650px, calc(100svh - 180px));
  min-height: 500px;
}

.academy-visual {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
  overflow: hidden;
  border-radius: 34px;
  background: rgba(255, 253, 248, 0.33);
  box-shadow: 0 22px 70px rgba(11, 31, 37, 0.09);
}

.academy-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 253, 248, 0.54);
  border-radius: inherit;
  pointer-events: none;
}

.academy-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.025);
  transition: transform 700ms ease;
}

.academy-visual:hover img {
  transform: scale(1.055);
}

.academy-film {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 700ms ease;
}

.academy-visual-film:hover .academy-film {
  transform: scale(1.025);
}

.academy-hotspot {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 15px;
  border: 1px solid rgba(223, 183, 114, 0.65);
  border-radius: 999px;
  color: var(--paper);
  background: rgba(7, 47, 52, 0.93);
  font-size: 0.72rem;
  font-weight: 700;
  box-shadow: 0 12px 27px rgba(11, 31, 37, 0.18);
}

.academy-hotspot::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(223, 183, 114, 0.18);
}

.hotspot-accueil {
  top: 55%;
  left: 18%;
}

.hotspot-salle {
  top: 40%;
  left: 51%;
}

.hotspot-bar {
  top: 19%;
  right: 15%;
}

.academy-badge {
  position: absolute;
  z-index: 2;
  top: 26px;
  left: 26px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 17px;
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 253, 248, 0.86);
  font-size: 0.72rem;
  font-weight: 700;
  backdrop-filter: blur(8px);
}

.academy-caption {
  position: absolute;
  z-index: 2;
  bottom: 23px;
  left: 27px;
  padding: 11px 16px;
  border-radius: 999px;
  color: rgba(255, 253, 248, 0.92);
  background: rgba(7, 47, 52, 0.66);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.academy-quick-actions {
  display: none;
}

.home-page .marquee {
  background: rgba(255, 253, 248, 0.18);
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
}

.orb-one {
  top: 11%;
  right: 16%;
  width: 320px;
  height: 320px;
  border: 1px solid rgba(197, 121, 72, 0.22);
  animation: breathe 8s ease-in-out infinite;
}

.orb-two {
  right: 0;
  bottom: 8%;
  width: 420px;
  height: 420px;
  background: rgba(12, 93, 98, 0.06);
}

.hero-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(50% - 1px);
  width: 1px;
  background: linear-gradient(transparent 9%, rgba(11, 31, 37, 0.07) 15%, rgba(11, 31, 37, 0.07) 80%, transparent);
}

.hero-content {
  width: min(580px, 49%);
  padding-top: clamp(32px, 7vh, 74px);
}

.hero-title {
  max-width: 620px;
  margin: 24px 0;
  font-size: clamp(3.9rem, 7.2vw, 6.6rem);
  line-height: 0.91;
}

.hero-title .serif {
  display: block;
  padding-left: clamp(22px, 6vw, 70px);
  color: var(--teal);
}

.hero-description {
  width: min(490px, 100%);
  color: var(--ink-soft);
  font-size: clamp(0.96rem, 1.3vw, 1.06rem);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 40px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  color: var(--teal);
  font-size: 0.94rem;
  font-weight: 700;
}

.text-link span {
  transition: transform 200ms ease;
}

.text-link:hover span {
  transform: translateX(5px);
}

.hero-scene {
  position: absolute;
  top: clamp(138px, 17vh, 170px);
  right: max(24px, calc((100% - 1240px) / 2));
  width: min(45%, 520px);
  height: min(650px, calc(100svh - 198px));
  min-height: 530px;
}

.scene-frame {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 160px 160px 26px 26px;
  background:
    linear-gradient(180deg, rgba(12, 93, 98, 0.95), rgba(10, 35, 39, 0.98)),
    var(--teal);
  box-shadow: var(--shadow);
}

.scene-frame::before {
  content: "";
  position: absolute;
  top: 16%;
  left: 17%;
  width: 66%;
  height: 48%;
  border: 1px solid rgba(247, 242, 234, 0.12);
  border-radius: 50%;
}

.scene-glow {
  position: absolute;
  top: 14%;
  left: 18%;
  width: 65%;
  height: 51%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(223, 183, 114, 0.42), transparent 68%);
}

.service-counter {
  position: absolute;
  top: 40px;
  left: 42px;
  display: flex;
  flex-direction: column;
  color: rgba(247, 242, 234, 0.8);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.service-counter strong {
  color: rgba(247, 242, 234, 0.2);
  font-size: 4.4rem;
  font-weight: 500;
  letter-spacing: -0.08em;
  line-height: 0.92;
}

.scene-card {
  position: absolute;
  z-index: 1;
  display: flex;
  background: var(--paper);
  box-shadow: 0 18px 36px rgba(4, 19, 23, 0.17);
}

.card-certification {
  top: 29%;
  right: 28px;
  flex-direction: column;
  gap: 4px;
  min-width: 154px;
  padding: 16px 18px;
  border-radius: 18px;
  color: var(--ink-soft);
  font-size: 0.67rem;
  animation: float 5s ease-in-out infinite;
}

.card-certification strong {
  color: var(--blue);
  font-size: 1.14rem;
}

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #37b98a;
  box-shadow: 0 0 0 5px rgba(55, 185, 138, 0.13);
}

.plate {
  position: absolute;
  top: 44%;
  left: 50%;
  width: min(58%, 274px);
  aspect-ratio: 1;
  border: 1px solid rgba(247, 242, 234, 0.48);
  border-radius: 50%;
  transform: translateX(-50%);
}

.plate::before {
  content: "";
  position: absolute;
  inset: 19%;
  border: 1px solid rgba(247, 242, 234, 0.23);
  border-radius: 50%;
}

.plate-center {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 34%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, var(--gold), var(--copper));
  transform: translate(-50%, -50%);
}

.cutlery {
  position: absolute;
  top: 7%;
  bottom: 7%;
  width: 2px;
  border-radius: 9px;
  background: rgba(247, 242, 234, 0.46);
}

.cutlery-left {
  left: -26px;
}

.cutlery-right {
  right: -26px;
}

.card-result {
  right: 30px;
  bottom: 68px;
  flex-direction: column;
  gap: 3px;
  padding: 18px 22px;
  border-radius: 18px;
  color: var(--ink-soft);
  font-size: 0.74rem;
  animation: float 5s ease-in-out 1.2s infinite;
}

.card-result strong {
  color: var(--teal);
  font-size: 1.45rem;
  letter-spacing: -0.06em;
}

.card-kicker {
  color: var(--copper);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.scene-caption {
  position: absolute;
  bottom: 43px;
  left: 38px;
  color: rgba(247, 242, 234, 0.74);
  font-family: var(--serif);
  font-size: 1.25rem;
  font-style: italic;
}

.marquee {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  overflow: hidden;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 38px;
  width: max-content;
  color: rgba(11, 31, 37, 0.56);
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.1vw, 1.7rem);
  font-style: italic;
  animation: ticker 24s linear infinite;
}

.marquee-track i {
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--copper);
}

.signature {
  position: relative;
  display: grid;
  grid-template-columns: 0.84fr 1.16fr;
  gap: clamp(44px, 7vw, 84px);
  padding: 112px 0 108px;
}

.signature::before {
  content: "P";
  position: absolute;
  z-index: -1;
  top: 39px;
  left: -42px;
  color: rgba(11, 31, 37, 0.035);
  font-family: var(--serif);
  font-size: clamp(15rem, 27vw, 25rem);
  font-style: italic;
  line-height: 0.8;
}

.signature-statement blockquote {
  margin: 29px 0 30px;
  font-size: clamp(2.15rem, 3.5vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.065em;
  line-height: 1.08;
}

.signature-statement blockquote .serif {
  color: var(--teal);
}

.signature-note {
  max-width: 390px;
  padding-left: 27px;
  border-left: 1px solid rgba(197, 121, 72, 0.48);
  color: var(--ink-soft);
  font-size: 0.91rem;
}

.signature-services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: start;
  gap: 12px;
}

.campus-portals {
  padding: 10px 0 108px;
}

.training-callout {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  margin-top: 18px;
  padding: 22px 29px;
  border: 1px solid rgba(115, 141, 127, 0.2);
  border-radius: 20px;
  background: rgba(255, 253, 248, 0.44);
  color: var(--ink-soft);
}

.training-callout p {
  font-weight: 600;
}

.portal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 55px;
}

.portal {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 350px;
  padding: 33px 30px;
  overflow: hidden;
  border-radius: var(--radius);
  transition: transform 250ms ease, box-shadow 250ms ease;
}

.portal::after {
  content: "";
  position: absolute;
  right: -58px;
  bottom: -66px;
  width: 174px;
  height: 174px;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: 0.16;
  transform: perspective(420px) rotateX(62deg);
}

.portal:hover {
  transform: translateY(-7px);
  box-shadow: 0 22px 52px rgba(11, 31, 37, 0.09);
}

.portal-ecole {
  background: var(--mist);
}

.portal-alternance {
  color: var(--paper);
  background: var(--terracotta);
}

.portal-ai {
  color: var(--paper);
  background:
    radial-gradient(circle at 82% 12%, rgba(255, 253, 248, 0.2), transparent 33%),
    var(--iris);
}

.portal-tag {
  margin-bottom: auto;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  opacity: 0.72;
}

.portal h3 {
  margin-bottom: 16px;
  font-family: var(--serif);
  font-size: clamp(2.2rem, 3.5vw, 2.8rem);
  font-weight: 400;
}

.portal p {
  max-width: 295px;
  margin-bottom: 31px;
  font-size: 0.88rem;
  opacity: 0.76;
}

.portal-link {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 0.84rem;
  font-weight: 700;
}

.portal-link b {
  font-weight: 600;
  transition: transform 200ms ease;
}

.portal:hover .portal-link b {
  transform: translateX(6px);
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 284px;
  padding: 23px 20px 25px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 110px 110px 18px 18px;
  background: rgba(255, 253, 248, 0.78);
  transition: transform 260ms ease, box-shadow 260ms ease;
}

.service-card:nth-child(2) {
  margin-top: 38px;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 44px rgba(11, 31, 37, 0.08);
}

.service-card-dark {
  color: var(--paper);
  border-color: transparent;
  background: var(--teal);
}

.service-index {
  align-self: center;
  color: var(--copper);
  font-family: var(--serif);
  font-size: 2.7rem;
  font-style: italic;
}

.service-card-dark .service-index {
  color: var(--gold);
}

.service-rule {
  display: block;
  width: 1px;
  height: 64px;
  margin: 15px auto 20px;
  background: var(--copper);
}

.service-card-dark .service-rule {
  background: rgba(223, 183, 114, 0.7);
}

.service-card h3 {
  margin-top: auto;
  margin-bottom: 9px;
  font-size: 1.3rem;
}

.service-card p {
  color: var(--ink-soft);
  font-size: 0.77rem;
  line-height: 1.55;
}

.service-card-dark p {
  color: rgba(255, 253, 248, 0.72);
}

.section-heading {
  max-width: 850px;
}

.section-heading h2 {
  margin-top: 22px;
  font-size: clamp(2.25rem, 4.6vw, 4rem);
  line-height: 1.08;
}

.section-heading .serif {
  display: inline;
  color: var(--teal);
}

.manifesto {
  position: relative;
  padding: 88px 0 92px;
}

.manifesto::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: 27px;
  right: 0;
  bottom: 39px;
  left: 36%;
  border-radius: 42px 0 0 42px;
  background: rgba(255, 253, 248, 0.48);
}

.pillars {
  display: grid;
  grid-template-columns: 1.1fr 0.96fr 0.96fr;
  gap: 15px;
  margin-top: 62px;
}

.pillar {
  min-height: 305px;
  padding: 32px 31px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.46);
  transition: transform 250ms ease, border-color 250ms ease;
}

.pillar:hover {
  transform: translateY(-6px);
  border-color: rgba(12, 93, 98, 0.25);
}

.pillar-accent {
  color: var(--paper);
  margin-top: 34px;
  background:
    radial-gradient(circle at 82% 14%, rgba(223, 183, 114, 0.2), transparent 34%),
    var(--teal);
}

.pillar-number {
  display: block;
  margin-bottom: 52px;
  color: var(--copper);
  font-family: var(--serif);
  font-size: 2.1rem;
}

.pillar h3 {
  margin-bottom: 17px;
  font-size: 1.48rem;
}

.pillar p {
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.pillar-accent p {
  color: rgba(255, 253, 248, 0.72);
}

.numbers {
  display: grid;
  grid-template-columns: 0.8fr 1fr 1fr 1.4fr;
  align-items: stretch;
  margin-bottom: 106px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stat,
.numbers-copy {
  padding: 44px 28px 42px 0;
}

.stat:not(:first-child),
.numbers-copy {
  padding-left: 31px;
  border-left: 1px solid var(--line);
}

.stat strong {
  color: var(--teal);
  font-size: clamp(3.4rem, 6vw, 4.3rem);
  letter-spacing: -0.09em;
  line-height: 1;
}

.stat p {
  max-width: 180px;
  margin-top: 16px;
  color: var(--ink-soft);
  font-size: 0.86rem;
}

.numbers-copy {
  display: flex;
  align-items: center;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.numbers-copy strong {
  color: var(--teal);
}

.quality-proof {
  display: grid;
  grid-template-columns: 0.84fr 1.16fr;
  align-items: center;
  gap: clamp(34px, 7vw, 78px);
  margin-bottom: 96px;
  padding: clamp(30px, 5vw, 52px);
  border-radius: 30px;
  background: rgba(255, 253, 248, 0.62);
}

.quality-copy h2 {
  margin: 22px 0 18px;
  font-size: clamp(2rem, 3.8vw, 3.2rem);
  line-height: 1.05;
}

.quality-copy h2 .serif {
  color: var(--blue);
}

.quality-copy > p:last-child {
  color: var(--ink-soft);
  font-size: 0.91rem;
}

.quality-logo {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.journey {
  padding-bottom: 100px;
}

.journey-layout {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 56px;
  margin-top: 60px;
}

.journey-tabs {
  display: flex;
  flex-direction: column;
}

.journey-tab {
  display: flex;
  align-items: center;
  gap: 27px;
  padding: 25px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: rgba(11, 31, 37, 0.36);
  background: transparent;
  font-size: clamp(1.15rem, 2vw, 1.42rem);
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: color 220ms ease;
}

.journey-tab strong {
  color: inherit;
  font-family: var(--serif);
  font-size: 2.2rem;
  font-weight: 400;
}

.journey-tab.is-active,
.journey-tab:hover {
  color: var(--teal);
}

.journey-panel {
  position: relative;
  min-height: 350px;
  padding: clamp(32px, 5vw, 52px);
  overflow: hidden;
  border-radius: var(--radius);
  color: var(--paper);
  background:
    radial-gradient(circle at 84% 15%, rgba(223, 183, 114, 0.12), transparent 34%),
    var(--ink);
}

.journey-panel::after {
  content: "";
  position: absolute;
  top: -30%;
  right: -25%;
  width: 300px;
  height: 300px;
  border: 1px solid rgba(223, 183, 114, 0.23);
  border-radius: 50%;
}

.panel-tag {
  margin-bottom: 28px;
  color: var(--gold);
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.journey-panel h3 {
  position: relative;
  z-index: 1;
  margin-bottom: 18px;
  font-size: clamp(1.8rem, 3vw, 2.45rem);
}

.journey-panel > p:not(.panel-tag) {
  position: relative;
  z-index: 1;
  max-width: 510px;
  color: rgba(255, 253, 248, 0.72);
}

.panel-detail {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 26px;
  margin-top: 37px;
  padding-top: 24px;
  border-top: 1px solid rgba(247, 242, 234, 0.15);
  font-size: 0.88rem;
}

.panel-detail span {
  color: var(--gold);
}

.audiences {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 18px;
  padding-bottom: 100px;
}

.audience {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 448px;
  padding: clamp(34px, 5vw, 54px);
  border-radius: var(--radius);
  overflow: hidden;
}

.audience h2 {
  max-width: 510px;
  margin: 28px 0 22px;
  font-size: clamp(2rem, 3.8vw, 3rem);
  line-height: 1.12;
}

.audience > p:not(.eyebrow) {
  max-width: 520px;
  margin-bottom: auto;
  color: inherit;
  opacity: 0.78;
}

.audience-business {
  color: var(--paper);
  background:
    radial-gradient(circle at 88% 17%, rgba(223, 183, 114, 0.2), transparent 35%),
    var(--teal);
}

.audience-business .eyebrow {
  color: var(--gold);
}

.audience-candidate {
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 92% 10%, rgba(197, 121, 72, 0.12), transparent 37%),
    var(--paper);
}

.audience-label {
  position: absolute;
  right: -2px;
  bottom: -31px;
  opacity: 0.08;
  font-family: var(--serif);
  font-size: clamp(5.2rem, 10vw, 8.5rem);
  font-style: italic;
  letter-spacing: -0.07em;
  pointer-events: none;
}

.partnership {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(30px, 7vw, 86px);
  align-items: center;
  padding: 12px 0 100px;
}

.partnership-copy h2 {
  margin: 23px 0 19px;
  font-size: clamp(2.3rem, 4vw, 3.6rem);
}

.partnership-copy > p:last-child {
  color: var(--ink-soft);
}

.partnership-card {
  position: relative;
  overflow: hidden;
  padding: clamp(29px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 20px 55px rgba(11, 31, 37, 0.05);
}

.partnership-card::before {
  content: "";
  position: absolute;
  right: -74px;
  bottom: -122px;
  width: 224px;
  height: 224px;
  border: 1px solid rgba(197, 121, 72, 0.2);
  border-radius: 50%;
}

.flow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 13px;
  margin-bottom: 33px;
}

.flow-box {
  padding: 17px clamp(12px, 2.4vw, 25px);
  border-radius: 100px;
  color: var(--teal);
  background: rgba(12, 93, 98, 0.07);
  font-weight: 700;
  white-space: nowrap;
}

.flow-box-accent {
  color: #fff;
  background: var(--teal);
}

.flow-arrow {
  color: var(--copper);
}

.partnership-card p {
  padding-top: 27px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
}

.partnership-link {
  margin-top: 28px;
}

.press-proof {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(36px, 7vw, 86px);
  margin-bottom: 102px;
  padding: clamp(32px, 5vw, 58px);
  overflow: hidden;
  border-radius: 36px;
  color: #fff;
  background:
    radial-gradient(circle at 92% 12%, rgba(223, 183, 114, 0.24), transparent 29%),
    radial-gradient(circle at 8% 92%, rgba(211, 225, 229, 0.13), transparent 31%),
    var(--blue);
  box-shadow: 0 28px 75px rgba(36, 77, 143, 0.19);
}

.press-proof::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -105px;
  bottom: -130px;
  width: 330px;
  height: 330px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 50%;
}

.press-source {
  grid-column: 1 / -1;
  display: flex;
  align-items: baseline;
  gap: 17px;
  padding-bottom: 23px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.press-source-label {
  color: var(--gold);
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

.press-source strong {
  font-size: clamp(1.35rem, 2.6vw, 2rem);
  letter-spacing: -0.05em;
}

.press-source time {
  margin-left: auto;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.76rem;
}

.press-copy .eyebrow {
  color: var(--gold);
}

.press-copy h2 {
  max-width: 690px;
  margin: 24px 0 20px;
  font-size: clamp(2.35rem, 4.7vw, 4.3rem);
  line-height: 0.99;
}

.press-copy h2 .serif {
  color: #d9e6e9;
}

.press-copy > p:not(.eyebrow) {
  max-width: 670px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.93rem;
}

.press-button {
  gap: 11px;
  margin-top: 31px;
  color: var(--blue);
  background: var(--paper);
}

.press-button:hover,
.press-button:focus-visible {
  color: var(--blue);
  background: #fff;
  box-shadow: 0 15px 30px rgba(7, 22, 48, 0.22);
}

.press-quote {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 330px;
  margin: 0;
  padding: clamp(31px, 4vw, 43px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(12px);
}

.press-quote-mark {
  color: var(--gold);
  font-family: var(--serif);
  font-size: 5rem;
  line-height: 0.6;
}

.press-quote p {
  margin: 25px 0 auto;
  font-family: var(--serif);
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  font-style: italic;
  line-height: 1.12;
}

.press-quote footer {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 36px;
}

.press-quote footer strong {
  font-size: 0.85rem;
}

.press-quote footer span {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.7rem;
}

.press-proof-compact {
  margin-top: 22px;
  margin-bottom: 24px;
}

.press-proof-compact .press-copy h2 {
  font-size: clamp(2.25rem, 4.2vw, 3.65rem);
}

.testimonials {
  padding-bottom: 102px;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 54px;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  min-height: 262px;
  padding: 30px 30px 28px;
  border-radius: 25px;
  background: rgba(255, 253, 248, 0.56);
}

.testimonial-card p {
  margin-bottom: auto;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 1.35rem;
  font-style: italic;
  line-height: 1.32;
}

.testimonial-card strong {
  margin-top: 30px;
  font-size: 0.9rem;
}

.testimonial-card span {
  margin-top: 5px;
  color: var(--ink-soft);
  font-size: 0.75rem;
}

.faq {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(34px, 7vw, 86px);
  padding-bottom: 100px;
}

.faq-list details {
  border-top: 1px solid var(--line);
}

.faq-list details:last-child {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  position: relative;
  padding: 27px 54px 27px 0;
  list-style: none;
  font-weight: 700;
  cursor: pointer;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  position: absolute;
  top: 25px;
  right: 9px;
  color: var(--teal);
  font-size: 1.35rem;
  font-weight: 400;
}

.faq-list details[open] summary::after {
  content: "-";
}

.faq-list details p {
  padding: 0 46px 27px 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.appointments {
  padding-bottom: clamp(58px, 9vw, 105px);
}

.appointments .section-heading {
  max-width: 720px;
  margin-bottom: clamp(33px, 5vw, 48px);
}

.appointments .section-heading > p:last-child {
  max-width: 610px;
  margin-top: 18px;
  color: var(--ink-soft);
}

.appointment-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.appointment-card {
  display: flex;
  flex-direction: column;
  min-height: 350px;
  padding: clamp(29px, 4vw, 45px);
  border-radius: 30px;
  background: var(--paper);
}

.appointment-business {
  color: var(--paper);
  background: var(--blue);
}

.appointment-tag {
  margin-bottom: auto;
  color: var(--copper);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.appointment-business .appointment-tag {
  color: #dce8ff;
}

.appointment-card h3 {
  margin: 36px 0 14px;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
}

.appointment-card > p:not(.appointment-tag) {
  margin-bottom: 28px;
  color: var(--ink-soft);
}

.appointment-business > p:not(.appointment-tag) {
  color: rgba(255, 253, 248, 0.76);
}

.appointment-card .button {
  align-self: flex-start;
}

.appointment-candidate .button {
  background: var(--blue);
}

.appointment-candidate .button:hover,
.appointment-candidate .button:focus-visible {
  background: #183966;
}

.contact {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: clamp(35px, 6vw, 70px);
  margin-bottom: 34px;
  padding: clamp(38px, 6vw, 72px);
  border-radius: 38px;
  color: var(--paper);
  background:
    radial-gradient(circle at 8% 100%, rgba(101, 118, 173, 0.34), transparent 42%),
    radial-gradient(circle at 88% -20%, rgba(255, 253, 248, 0.16), transparent 40%),
    linear-gradient(130deg, #173a72 0%, var(--blue) 55%, #1c4079 100%);
}

.contact::before {
  content: "";
  position: absolute;
  top: -228px;
  left: -220px;
  width: 430px;
  height: 430px;
  border: 1px solid rgba(255, 253, 248, 0.17);
  border-radius: 50%;
}

.contact-copy .eyebrow {
  color: rgba(255, 253, 248, 0.82);
}

.contact-copy h2 {
  margin: 24px 0;
  font-size: clamp(2.25rem, 4.2vw, 3.5rem);
  line-height: 1.1;
}

.contact-copy h2 .serif {
  color: #dce8ff;
}

.contact-copy > p:not(.eyebrow) {
  color: rgba(247, 242, 234, 0.7);
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 30px;
  color: rgba(247, 242, 234, 0.86);
  font-size: 0.88rem;
}

.contact-details a:hover {
  color: #dce8ff;
}

.contact-badge {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 40px;
  color: rgba(247, 242, 234, 0.8);
  font-size: 0.86rem;
}

.contact-actions {
  display: grid;
  gap: 14px;
  align-content: center;
}

.contact-action {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(23px, 3vw, 30px);
  border: 1px solid rgba(255, 253, 248, 0.19);
  border-radius: 20px;
  background: rgba(255, 253, 248, 0.09);
  transition: background 200ms ease, transform 200ms ease;
}

.contact-action:hover,
.contact-action:focus-visible {
  background: rgba(255, 253, 248, 0.16);
  transform: translateY(-2px);
}

.contact-action span {
  color: rgba(255, 253, 248, 0.7);
  font-size: 0.8rem;
}

.contact-action strong {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  font-size: clamp(1rem, 2vw, 1.12rem);
}

.contact-action b {
  color: #dce8ff;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  padding: clamp(23px, 3vw, 34px);
  border-radius: 24px;
  color: var(--ink);
  background: var(--paper);
}

.profile-choice {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 7px;
  padding: 0;
  border: 0;
}

.profile-choice legend {
  width: 100%;
  margin-bottom: 11px;
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 700;
}

.profile-choice input {
  position: absolute;
  opacity: 0;
}

.profile-choice label span {
  display: block;
  padding: 12px 20px;
  border: 1px solid var(--line);
  border-radius: 99px;
  color: var(--ink-soft);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
}

.profile-choice input:checked + span {
  border-color: var(--blue);
  color: #fff;
  background: var(--blue);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.field span {
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 16px 17px;
  border: 1px solid var(--line);
  border-radius: 13px;
  outline: none;
  color: var(--ink);
  background: #fff;
  resize: vertical;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.field select {
  appearance: none;
  padding-right: 48px;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--blue) 50%),
    linear-gradient(135deg, var(--blue) 50%, transparent 50%);
  background-position:
    calc(100% - 24px) 52%,
    calc(100% - 18px) 52%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(36, 77, 143, 0.11);
}

.field-full {
  grid-column: 1 / -1;
}

.contact-form .button {
  width: 100%;
  margin-top: 4px;
  background: var(--blue);
}

.contact-form .button:hover,
.contact-form .button:focus-visible {
  background: #183966;
  box-shadow: 0 15px 28px rgba(36, 77, 143, 0.23);
}

.form-message {
  display: none;
  grid-column: 1 / -1;
  padding: 13px 15px;
  border-radius: 11px;
  color: var(--blue);
  background: rgba(36, 77, 143, 0.09);
  font-size: 0.85rem;
}

.form-message.is-visible {
  display: block;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 30px;
  width: min(calc(100% - 48px), 1240px);
  margin: 0 auto;
  padding: 33px 0 38px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-brand img {
  width: 184px;
  height: auto;
  object-fit: contain;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  font-weight: 600;
}

.copyright {
  justify-self: end;
}

/* Interior pages: each world uses the shared Pacala language with its own accent. */
.academy-page {
  --world-bg: var(--mist);
  --world-accent: var(--teal);
  --world-accent-soft: rgba(12, 93, 98, 0.11);
  background: var(--world-bg);
}

.page-workstudy {
  --world-bg: #f6eee7;
  --world-accent: var(--terracotta);
  --world-accent-soft: rgba(186, 114, 86, 0.12);
}

.page-training {
  --world-bg: #edf0ea;
  --world-accent: var(--sage);
  --world-accent-soft: rgba(115, 141, 127, 0.13);
}

.page-ai {
  --world-bg: #edf0f7;
  --world-accent: var(--iris);
  --world-accent-soft: rgba(101, 118, 173, 0.13);
}

.page-partners {
  --world-bg: #e7edf0;
  --world-accent: var(--blue);
  --world-accent-soft: rgba(36, 77, 143, 0.11);
}

.page-legal {
  --world-bg: #edf1f2;
  --world-accent: var(--blue);
  --world-accent-soft: rgba(36, 77, 143, 0.1);
}

.academy-page .navigation .is-current::after {
  transform: scaleX(1);
}

.page-school .site-header {
  --header-accent: var(--teal);
}

.page-training .site-header {
  --header-accent: var(--sage);
}

.page-workstudy .site-header {
  --header-accent: var(--terracotta);
}

.page-ai .site-header {
  --header-accent: var(--iris);
}

.page-partners .site-header {
  --header-accent: var(--blue);
}

.page-legal .site-header {
  --header-accent: var(--blue);
}

.academy-page .eyebrow {
  color: var(--world-accent);
}

.academy-page .button {
  background: var(--world-accent);
}

.academy-page .site-footer {
  margin-top: 88px;
}

.world-main {
  padding-top: 115px;
}

.world-hero {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  align-items: center;
  gap: clamp(35px, 6vw, 82px);
  min-height: min(780px, calc(100svh - 116px));
  padding: 48px 0 74px;
}

.world-copy h1 {
  margin: 25px 0 25px;
  font-size: clamp(3.2rem, 5.8vw, 5.2rem);
  line-height: 0.98;
}

.world-copy h1 .serif {
  display: block;
  color: var(--world-accent);
}

.world-copy > p:not(.eyebrow) {
  max-width: 470px;
  margin-bottom: 40px;
  color: var(--ink-soft);
}

.world-visual {
  position: relative;
  height: min(575px, 65vw);
  min-height: 490px;
  overflow: hidden;
  border-radius: 38px;
  box-shadow: 0 24px 70px rgba(11, 31, 37, 0.09);
}

.world-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 253, 248, 0.52);
  border-radius: inherit;
  pointer-events: none;
}

.world-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms ease;
}

.world-visual:hover img {
  transform: scale(1.045);
}

.school-world-visual img {
  object-position: center;
}

.workstudy-world-visual img {
  object-position: center;
}

.ai-world-visual img {
  object-position: center;
}

.training-world-visual img {
  object-position: center;
}

.partners-world-visual .world-hotspot {
  background: rgba(24, 46, 82, 0.92);
}

.world-hotspot {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 15px;
  border: 1px solid rgba(223, 183, 114, 0.78);
  border-radius: 999px;
  color: var(--paper);
  background: rgba(7, 47, 52, 0.91);
  font-size: 0.68rem;
  font-weight: 700;
  box-shadow: 0 12px 24px rgba(11, 31, 37, 0.18);
}

.world-hotspot::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
}

.school-hotspot-one {
  top: 40%;
  left: 18%;
}

.school-hotspot-two {
  top: 23%;
  right: 15%;
}

.school-hotspot-three {
  bottom: 24%;
  left: 43%;
}

.training-world-visual .world-hotspot {
  background: rgba(50, 70, 61, 0.93);
}

.training-hotspot-one {
  top: 39%;
  left: 11%;
}

.training-hotspot-two {
  top: 42%;
  left: 44%;
}

.training-hotspot-three {
  top: 25%;
  right: 11%;
}

.workstudy-world-visual .world-hotspot {
  background: rgba(117, 57, 42, 0.92);
}

.work-hotspot-one {
  top: 30%;
  left: 13%;
}

.work-hotspot-two {
  top: 49%;
  left: 44%;
}

.work-hotspot-three {
  top: 29%;
  right: 12%;
}

.ai-world-visual .world-hotspot {
  background: rgba(33, 41, 77, 0.88);
}

.ai-hotspot-one {
  left: 9%;
  bottom: 37%;
}

.ai-hotspot-two {
  top: 28%;
  right: 11%;
}

.ai-hotspot-three {
  bottom: 23%;
  right: 20%;
}

.school-model,
.bridge-model,
.ai-model {
  position: relative;
  height: min(575px, 65vw);
  min-height: 490px;
  overflow: hidden;
  border-radius: 38px;
  background: rgba(255, 253, 248, 0.36);
  perspective: 900px;
}

.model-caption {
  position: absolute;
  bottom: 27px;
  left: 30px;
  color: var(--ink-soft);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.school-model {
  background:
    radial-gradient(circle at 48% 32%, rgba(255, 253, 248, 0.72), transparent 34%),
    linear-gradient(145deg, rgba(255, 253, 248, 0.42), rgba(142, 174, 183, 0.18));
}

.model-floor {
  position: absolute;
  top: 48%;
  left: 17%;
  width: 66%;
  height: 39%;
  background: #eadbc8;
  transform: rotateX(60deg) rotateZ(-34deg);
  box-shadow: 22px 28px 38px rgba(11, 31, 37, 0.12);
}

.model-wall {
  position: absolute;
  display: flex;
  align-items: end;
  padding: 22px;
  color: rgba(255, 253, 248, 0.72);
  background: var(--teal);
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transform-style: preserve-3d;
}

.wall-one {
  top: 25%;
  left: 31%;
  width: 37%;
  height: 31%;
  transform: skewY(-2deg) rotateY(-25deg);
}

.wall-two {
  top: 31%;
  left: 63%;
  width: 21%;
  height: 31%;
  background: var(--teal-dark);
  transform: rotateY(-58deg);
  transform-origin: left;
}

.model-desk {
  position: absolute;
  top: 55%;
  left: 43%;
  width: 26%;
  height: 48px;
  background: var(--terracotta);
  transform: skewX(-34deg);
  box-shadow: 0 29px 0 #8a4c38;
}

.model-table {
  position: absolute;
  width: 53px;
  height: 53px;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: 0 14px 0 #cbad86, 0 17px 28px rgba(11, 31, 37, 0.15);
  transform: rotateX(58deg);
}

.table-one {
  top: 55%;
  left: 26%;
}

.table-two {
  top: 65%;
  left: 34%;
}

.model-light {
  position: absolute;
  top: 25%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 34px 18px rgba(223, 183, 114, 0.34);
  animation: float 4.6s ease-in-out infinite;
}

.light-one {
  left: 45%;
}

.light-two {
  left: 57%;
  animation-delay: 1s;
}

.bridge-model {
  background:
    radial-gradient(circle at 58% 40%, rgba(223, 183, 114, 0.23), transparent 37%),
    rgba(255, 253, 248, 0.48);
}

.bridge-stage {
  position: absolute;
  top: 40%;
  width: 136px;
  height: 128px;
  padding: 19px;
  border-radius: 14px;
  color: var(--paper);
  background: var(--terracotta);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transform: perspective(660px) rotateY(-18deg);
  box-shadow: 0 29px 0 rgba(110, 52, 34, 0.2);
}

.stage-school {
  left: 10%;
}

.stage-house {
  right: 10%;
  background: var(--teal);
  transform: perspective(660px) rotateY(18deg);
}

.bridge-path {
  position: absolute;
  top: 56%;
  left: 32%;
  display: flex;
  gap: 10px;
  width: 36%;
  height: 43px;
  transform: perspective(620px) rotateX(62deg);
}

.bridge-path i {
  flex: 1;
  background: var(--gold);
  border-radius: 5px;
  animation: bridgeLight 1.8s ease-in-out infinite;
}

.bridge-path i:nth-child(2) {
  animation-delay: 0.25s;
}

.bridge-path i:nth-child(3) {
  animation-delay: 0.5s;
}

.bridge-path i:nth-child(4) {
  animation-delay: 0.75s;
}

.bridge-person {
  position: absolute;
  top: calc(56% - 28px);
  left: 48%;
  width: 24px;
  height: 42px;
  border-radius: 16px 16px 6px 6px;
  background: var(--ink);
  animation: crossBridge 5s ease-in-out infinite;
}

.bridge-person::before {
  content: "";
  position: absolute;
  top: -18px;
  left: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--gold);
}

.ai-model {
  color: var(--paper);
  background:
    radial-gradient(circle at 50% 45%, rgba(101, 118, 173, 0.58), transparent 36%),
    var(--ink);
}

.ai-orb {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-content: center;
  width: 224px;
  height: 224px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(223, 183, 114, 0.4), rgba(101, 118, 173, 0.2) 52%, transparent 65%);
  transform: translate(-50%, -50%);
  transform-style: preserve-3d;
}

.ai-orb strong {
  color: var(--paper);
  font-size: 2.2rem;
}

.orbit {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(223, 183, 114, 0.45);
  border-radius: 50%;
  animation: spinOrb 11s linear infinite;
}

.orbit-two {
  transform: rotateX(68deg);
  animation-name: spinOrbX;
  animation-direction: reverse;
}

.orbit-three {
  transform: rotateY(68deg);
  animation-name: spinOrbY;
  animation-duration: 8s;
}

.node {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 24px var(--gold);
}

.node-one { top: 7px; left: 103px; }
.node-two { top: 80px; right: 3px; }
.node-three { right: 43px; bottom: 28px; }
.node-four { left: 13px; bottom: 75px; }

.ai-chip {
  position: absolute;
  padding: 14px 18px;
  border: 1px solid rgba(255, 253, 248, 0.13);
  border-radius: 99px;
  background: rgba(255, 253, 248, 0.09);
  font-size: 0.73rem;
  backdrop-filter: blur(7px);
}

.chip-one { top: 26%; left: 12%; }
.chip-two { top: 37%; right: 12%; }
.chip-three { bottom: 29%; left: 16%; }
.page-ai .model-caption { color: rgba(255, 253, 248, 0.62); }

.chapter-menu {
  display: grid;
  grid-template-columns: 0.84fr 1.16fr;
  gap: clamp(36px, 7vw, 80px);
  padding: clamp(58px, 8vw, 88px);
  border-radius: 36px;
  background: rgba(255, 253, 248, 0.34);
}

.chapter-menu h2 {
  margin-top: 27px;
  font-size: clamp(2.1rem, 4vw, 3.15rem);
  line-height: 1.1;
}

.chapter-menu h2 .serif {
  color: var(--world-accent);
}

.chapter-links {
  display: flex;
  flex-direction: column;
}

.chapter-links a {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(11, 31, 37, 0.11);
  font-size: clamp(1.08rem, 2.2vw, 1.45rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  transition: color 190ms ease, padding-left 190ms ease;
}

.chapter-links a:hover {
  padding-left: 12px;
  color: var(--world-accent);
}

.chapter-links span {
  color: var(--world-accent);
  font-size: 0.9em;
}

.story-grid,
.timeline,
.ai-axes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding-top: 64px;
}

.page-workstudy .timeline {
  grid-template-columns: repeat(4, 1fr);
}

#etapes.timeline {
  grid-template-columns: repeat(5, 1fr);
}

#schema-recrutement {
  padding-top: clamp(70px, 9vw, 110px);
}

#schema-recrutement .section-heading > p:not(.eyebrow) {
  max-width: 62ch;
  margin-top: 18px;
  color: var(--ink-soft);
}

.recruit-flow,
.recruit-branches,
.recruit-converge {
  margin-top: 44px;
}

.recruit-track {
  display: flex;
  align-items: stretch;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 10px;
}

.recruit-step {
  display: flex;
  flex: 1 1 0;
  min-width: 184px;
  flex-direction: column;
  gap: 9px;
  padding: 24px 22px;
  border: 1px solid rgba(12, 93, 98, 0.14);
  border-radius: 22px;
  background: rgba(255, 253, 248, 0.6);
}

.recruit-step .recruit-num {
  color: var(--teal);
  font-family: var(--serif);
  font-size: 1.7rem;
  line-height: 1;
}

.recruit-step h3 {
  margin: 0;
  font-size: 1.05rem;
}

.recruit-step p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.recruit-step-accent {
  border-color: var(--gold);
  background: var(--gold);
}

.recruit-step-accent .recruit-num {
  color: var(--terracotta);
}

.recruit-step-accent h3,
.recruit-step-accent p {
  color: var(--ink);
}

.recruit-step-accent .recruit-tag {
  align-self: flex-start;
  margin-top: 2px;
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--paper);
  background: var(--terracotta);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.recruit-arrow {
  flex: 0 0 auto;
  align-self: center;
  color: var(--terracotta);
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1;
}

.recruit-branches {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.recruit-voie {
  padding: 22px;
  border: 1px dashed rgba(12, 93, 98, 0.24);
  border-radius: 24px;
  background: rgba(12, 93, 98, 0.05);
}

.recruit-voie-label {
  margin: 0 0 16px;
  color: var(--teal);
  font-weight: 800;
  letter-spacing: 0.02em;
}

.recruit-track-sub .recruit-step {
  min-width: 150px;
  background: var(--paper);
}

.recruit-converge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.recruit-arrow-down {
  color: var(--terracotta);
  font-size: 1.7rem;
}

.recruit-step-final {
  flex: 0 0 auto;
  min-width: 280px;
  align-items: center;
  border-color: var(--teal);
  color: var(--paper);
  background: var(--teal);
  text-align: center;
}

.recruit-step-final .recruit-num {
  color: var(--gold);
}

.recruit-step-final h3 {
  color: var(--paper);
}

.recruit-step-final p {
  color: rgba(255, 253, 248, 0.8);
}

.workstudy-promise {
  display: grid;
  grid-template-columns: 0.55fr 1.45fr;
  gap: clamp(26px, 6vw, 70px);
  align-items: center;
  padding: clamp(34px, 5vw, 54px);
  border-radius: 32px;
  background: rgba(255, 253, 248, 0.7);
}

.promise-badge {
  display: grid;
  place-items: center;
  min-height: 250px;
  padding: 26px;
  color: var(--paper);
  text-align: center;
  border-radius: 28px;
  background: var(--terracotta);
}

.promise-badge span {
  font-family: var(--serif);
  font-size: clamp(5.2rem, 10vw, 7.5rem);
  line-height: 0.85;
}

.promise-badge p {
  max-width: 210px;
  margin-top: 18px;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.workstudy-promise h2,
.workstudy-followup h2,
.workstudy-cta h2 {
  margin: 21px 0 18px;
  font-size: clamp(2.15rem, 4.3vw, 3.45rem);
  line-height: 1.08;
}

.workstudy-promise .serif,
.workstudy-followup .serif,
.workstudy-cta .serif {
  color: var(--terracotta);
}

.workstudy-promise p:not(.eyebrow),
.workstudy-cta p {
  max-width: 670px;
  color: var(--ink-soft);
}

.workstudy-promise small {
  display: block;
  max-width: 650px;
  margin-top: 22px;
  color: var(--ink-soft);
  font-size: 0.76rem;
}

.workstudy-actors {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding-top: 64px;
}

.workstudy-actor {
  min-height: 310px;
  padding: clamp(27px, 4vw, 35px);
  border-radius: 26px;
  background: rgba(255, 253, 248, 0.56);
}

.workstudy-actor span {
  color: var(--terracotta);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.workstudy-actor h3 {
  margin: 62px 0 15px;
  font-size: clamp(1.32rem, 2.4vw, 1.65rem);
}

.workstudy-actor p {
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.workstudy-actor-featured {
  color: var(--paper);
  background: var(--terracotta);
  transform: translateY(28px);
}

.workstudy-actor-featured span {
  color: var(--gold);
}

.workstudy-actor-featured p {
  color: rgba(255, 253, 248, 0.75);
}

.training-modules {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding-top: 64px;
}

.training-card {
  min-height: 305px;
  padding: clamp(27px, 4vw, 35px);
  border-radius: 26px;
  background: rgba(255, 253, 248, 0.6);
}

.training-card strong {
  color: var(--sage);
  font-family: var(--serif);
  font-size: 3rem;
  font-weight: 400;
}

.training-card h3 {
  margin: 44px 0 14px;
  font-size: 1.55rem;
}

.training-card p {
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.training-card-featured {
  color: var(--paper);
  background: var(--sage);
  transform: translateY(26px);
}

.training-card-featured strong {
  color: var(--gold);
}

.training-card-featured p {
  color: rgba(255, 253, 248, 0.75);
}

.training-filter {
  display: grid;
  grid-template-columns: minmax(260px, 0.58fr) minmax(0, 1.42fr);
  gap: 36px;
  align-items: end;
  margin-top: 68px;
  padding: clamp(25px, 3vw, 34px);
  border: 1px solid rgba(115, 141, 127, 0.16);
  border-radius: 26px;
  background: rgba(255, 253, 248, 0.66);
}

.training-filter-copy h2 {
  margin-top: 12px;
  font-size: clamp(1.65rem, 3vw, 2.45rem);
}

.training-filter-copy > p:last-child {
  max-width: 470px;
  margin-top: 12px;
  color: var(--ink-soft);
  font-size: 0.82rem;
  line-height: 1.6;
}

.training-filter-options {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.training-filter-options button {
  min-height: 44px;
  padding: 10px 17px;
  border: 1px solid rgba(12, 36, 44, 0.2);
  border-radius: 999px;
  color: var(--ink);
  background: transparent;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 800;
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease;
}

.training-filter-options button:hover,
.training-filter-options button:focus-visible {
  border-color: var(--sage);
}

.training-filter-options button.is-active {
  border-color: var(--sage);
  color: var(--paper);
  background: var(--sage);
}

.training-filter-count {
  margin-top: 13px;
  color: var(--ink-soft);
  font-size: 0.76rem;
  font-weight: 700;
}

[data-training-item][hidden] {
  display: none !important;
}

.program-catalog {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  padding-top: 28px;
}

.program-catalog.is-filtered {
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
}

.program-catalog.is-filtered .program-card {
  grid-column: auto !important;
}

.program-card {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  min-height: 320px;
  padding: clamp(25px, 3vw, 33px);
  border: 1px solid rgba(115, 141, 127, 0.11);
  border-radius: 26px;
  background: rgba(255, 253, 248, 0.6);
}

.program-card:nth-child(4) {
  grid-column: 2 / span 2;
}

.program-type {
  margin-bottom: auto;
  color: var(--sage);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.program-card h3 {
  margin: 34px 0 15px;
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
  line-height: 1.18;
}

.program-card > p:not(.program-type) {
  margin-bottom: 25px;
  color: var(--ink-soft);
  font-size: 0.86rem;
  line-height: 1.65;
}

.program-meta {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.76rem;
}

.program-meta strong {
  color: var(--sage);
  font-size: 0.95rem;
}

.program-featured {
  color: var(--paper);
  background: radial-gradient(circle at 90% 12%, rgba(223, 183, 114, 0.2), transparent 32%), var(--sage);
}

.program-featured .program-type,
.program-featured .program-meta strong {
  color: var(--gold);
}

.program-featured > p:not(.program-type),
.program-featured .program-meta {
  color: rgba(255, 253, 248, 0.77);
}

.program-featured .program-meta {
  border-color: rgba(255, 253, 248, 0.18);
}

.course-sheets {
  padding: 86px 0 34px;
}

.course-sheets .section-heading {
  max-width: 670px;
  margin-bottom: 48px;
}

.course-sheet {
  display: grid;
  grid-template-columns: 1fr 1.06fr;
  gap: clamp(25px, 5vw, 58px);
  margin-bottom: 14px;
  padding: clamp(27px, 4vw, 42px);
  border: 1px solid rgba(115, 141, 127, 0.12);
  border-radius: 28px;
  background: rgba(255, 253, 248, 0.6);
  scroll-margin-top: 104px;
}

.course-sheet-head h3 {
  margin: 17px 0 15px;
  font-size: clamp(1.7rem, 3.2vw, 2.2rem);
}

.course-sheet-head > p:not(.program-type):not(.course-updated) {
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.course-updated {
  margin-top: 13px;
  color: var(--ink-soft);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.course-modules {
  display: flex;
  flex-wrap: wrap;
  align-content: start;
  gap: 8px;
}

.course-modules span {
  padding: 10px 13px;
  border-radius: 999px;
  color: #506e60;
  background: rgba(115, 141, 127, 0.12);
  font-size: 0.72rem;
  font-weight: 700;
}

.course-note {
  grid-column: 1 / -1;
  padding: 18px 20px;
  border-left: 2px solid var(--sage);
  color: var(--ink-soft);
  background: rgba(115, 141, 127, 0.08);
  font-size: 0.86rem;
}

.course-facts {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 8px 0 2px;
}

.course-facts div {
  min-height: 126px;
  padding: 18px;
  border: 1px solid rgba(115, 141, 127, 0.12);
  border-radius: 18px;
  background: rgba(245, 241, 232, 0.72);
}

.course-facts div:nth-child(4n + 2),
.course-facts div:nth-child(4n + 3) {
  background: rgba(225, 235, 231, 0.62);
}

.course-facts dt {
  margin-bottom: 9px;
  color: #506e60;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.course-facts dd {
  margin: 0;
  color: var(--ink);
  font-size: 0.78rem;
  line-height: 1.55;
}

.course-accessibility {
  grid-column: 1 / -1;
  margin: 2px 0 0;
  padding: 15px 18px;
  border-radius: 16px;
  color: var(--ink-soft);
  background: rgba(47, 85, 151, 0.07);
  font-size: 0.8rem;
  line-height: 1.55;
}

.course-accessibility a {
  color: var(--blue);
  font-weight: 800;
}

@media (max-width: 1040px) {
  .course-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .course-facts {
    grid-template-columns: 1fr;
  }

  .course-facts div,
  .course-facts div:nth-child(4n + 2),
  .course-facts div:nth-child(4n + 3) {
    min-height: 0;
    background: rgba(245, 241, 232, 0.72);
  }

  .course-facts div:nth-child(even) {
    background: rgba(225, 235, 231, 0.62);
  }
}

.course-actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-top: 5px;
}

.course-actions .button {
  background: var(--sage);
}

.course-update {
  color: var(--ink-soft);
  font-size: 0.86rem;
  font-weight: 600;
}

.course-list {
  display: grid;
  gap: 10px;
  margin: 6px 0 4px;
  list-style: none;
}

.course-list li {
  position: relative;
  padding-left: 22px;
  color: var(--ink-soft);
  line-height: 1.5;
}

.course-list li::before {
  position: absolute;
  top: -1px;
  left: 4px;
  color: var(--teal);
  font-size: 1.1em;
  font-weight: 800;
  content: "\203A";
}

.training-proofs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding: 56px 0 20px;
}

.proof-card {
  padding: 30px 30px 32px;
  border-radius: 24px;
  background: var(--world-accent-soft);
}

.proof-card strong {
  color: var(--sage);
  font-family: var(--serif);
  font-size: 3.2rem;
  font-weight: 400;
}

.proof-card h3 {
  margin: 18px 0 10px;
  font-size: 1.25rem;
}

.proof-card p {
  color: var(--ink-soft);
  font-size: 0.85rem;
}

.proof-card-qualiopi img {
  display: block;
  width: 100%;
  max-width: 250px;
  height: auto;
  margin-bottom: 18px;
}

.proof-card-qualiopi h3 {
  margin-top: 0;
}

.story-card,
.timeline-card,
.axis-card {
  min-height: 310px;
  padding: clamp(27px, 4vw, 35px);
  border-radius: 26px;
  background: rgba(255, 253, 248, 0.55);
}

.story-card h2 {
  margin: 29px 0 19px;
  font-size: clamp(1.43rem, 2.4vw, 1.85rem);
  line-height: 1.17;
}

.story-card p:last-child,
.timeline-card p,
.axis-card p:last-child {
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.story-card-dark {
  color: var(--paper);
  background: var(--teal);
}

.story-card-dark p:last-child {
  color: rgba(255, 253, 248, 0.72);
}

.story-card-dark .eyebrow {
  color: var(--gold);
}

.school-about {
  display: grid;
  grid-template-columns: 0.84fr 1.16fr;
  align-items: start;
  gap: clamp(34px, 7vw, 86px);
  padding-top: clamp(78px, 9vw, 110px);
}

.school-about-copy h2,
.school-heading h2,
.network-copy h2 {
  margin: 24px 0 20px;
  font-size: clamp(2.12rem, 4vw, 3.15rem);
  line-height: 1.1;
}

.school-about-copy .serif,
.school-heading .serif,
.network-copy .serif {
  color: var(--teal);
  font-family: var(--serif);
  font-weight: 400;
}

.school-about-copy > p:last-child,
.school-heading > p:last-child,
.network-copy > p:not(.eyebrow) {
  max-width: 520px;
  color: var(--ink-soft);
  font-size: 0.94rem;
}

.school-principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.school-principles article {
  min-height: 275px;
  padding: clamp(24px, 3vw, 29px);
  border-radius: 24px;
  background: rgba(255, 253, 248, 0.53);
}

.school-principles article:nth-child(2) {
  color: var(--paper);
  background: var(--teal);
  transform: translateY(30px);
}

.school-principles strong {
  color: var(--teal);
  font-family: var(--serif);
  font-size: 2.7rem;
  font-weight: 400;
}

.school-principles article:nth-child(2) strong {
  color: var(--gold);
}

.school-principles h3 {
  margin: 48px 0 12px;
  font-size: 1.28rem;
}

.school-principles p {
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.school-principles article:nth-child(2) p {
  color: rgba(255, 253, 248, 0.74);
}

.faculty {
  padding-top: clamp(105px, 12vw, 152px);
}

.school-method {
  display: grid;
  grid-template-columns: 0.77fr 1.23fr;
  gap: clamp(36px, 7vw, 84px);
  padding: clamp(100px, 11vw, 145px) 0 clamp(10px, 2vw, 28px);
}

.school-method-intro h2 {
  margin-top: 24px;
  font-size: clamp(2.12rem, 4vw, 3.15rem);
  line-height: 1.1;
}

.school-method-intro .serif {
  color: var(--teal);
  font-family: var(--serif);
  font-weight: 400;
}

.method-steps {
  padding-top: 6px;
}

.method-step {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 20px;
  padding: 0 0 26px;
  margin-bottom: 27px;
  border-bottom: 1px solid rgba(11, 31, 37, 0.12);
}

.method-step strong {
  color: var(--teal);
  font-family: var(--serif);
  font-size: 2.6rem;
  font-weight: 400;
}

.method-step h3 {
  margin: 4px 0 8px;
  font-size: 1.3rem;
}

.method-step p {
  max-width: 540px;
  color: var(--ink-soft);
  font-size: 0.86rem;
}

.school-heading {
  display: grid;
  grid-template-columns: 0.45fr 1fr 0.72fr;
  align-items: end;
  gap: clamp(18px, 4vw, 45px);
  margin-bottom: clamp(40px, 6vw, 58px);
}

.school-heading h2 {
  margin: 0;
}

.faculty-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.faculty-card {
  min-height: 285px;
  padding: clamp(25px, 3vw, 31px);
  border-radius: 26px;
  background: rgba(255, 253, 248, 0.55);
}

.faculty-domain {
  color: var(--teal);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.faculty-card h3 {
  margin: 89px 0 15px;
  font-size: clamp(1.25rem, 2vw, 1.5rem);
}

.faculty-card > p:last-child {
  color: var(--ink-soft);
  font-size: 0.84rem;
}

.faculty-card-dark {
  color: var(--paper);
  background: var(--teal);
}

.faculty-card-dark .faculty-domain {
  color: var(--gold);
}

.faculty-card-dark > p:last-child {
  color: rgba(255, 253, 248, 0.74);
}

.network {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: clamp(35px, 7vw, 80px);
  align-items: center;
  padding-top: clamp(86px, 10vw, 126px);
}

.network-copy .button {
  margin-top: 32px;
}

.network-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 13px;
}

.network-card {
  min-height: 274px;
  padding: clamp(24px, 3vw, 29px);
  border: 1px solid rgba(12, 93, 98, 0.08);
  border-radius: 25px;
  background: rgba(255, 253, 248, 0.5);
}

.network-card strong {
  color: var(--teal);
  font-family: var(--serif);
  font-size: 3rem;
  font-weight: 400;
}

.network-card h3 {
  margin: 37px 0 12px;
  font-size: 1.2rem;
}

.network-card p {
  color: var(--ink-soft);
  font-size: 0.8rem;
}

.partner-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding: 82px 0 96px;
}

.partner-pillar {
  min-height: 295px;
  padding: clamp(27px, 3vw, 36px);
  border: 1px solid rgba(36, 77, 143, 0.1);
  border-radius: 26px;
  background: rgba(255, 253, 248, 0.66);
}

.partner-pillar-featured {
  color: var(--paper);
  background: var(--blue);
  transform: translateY(-14px);
}

.partner-pillar strong {
  display: block;
  color: var(--blue);
  font-family: var(--serif);
  font-size: clamp(3.2rem, 5vw, 4.2rem);
  font-weight: 400;
  line-height: 1;
}

.partner-pillar-featured strong {
  color: #dce8ff;
}

.partner-pillar h3 {
  margin: 56px 0 14px;
  font-size: 1.4rem;
}

.partner-pillar p {
  color: var(--ink-soft);
  font-size: 0.91rem;
}

.partner-pillar-featured p {
  color: rgba(255, 253, 248, 0.74);
}

.establishments {
  padding: 0 0 88px;
}

.establishments-heading {
  display: grid;
  grid-template-columns: 0.95fr 1.1fr 0.9fr;
  align-items: end;
  gap: clamp(24px, 4vw, 55px);
  margin-bottom: clamp(35px, 5vw, 56px);
}

.establishments-heading h2 {
  font-size: clamp(2.2rem, 4.2vw, 3.5rem);
}

.establishments-heading h2 .serif {
  display: block;
  color: var(--blue);
}

.establishments-heading > p:last-child {
  color: var(--ink-soft);
  font-size: 0.91rem;
}

.establishments-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.establishment-card {
  min-height: 255px;
  padding: 21px 22px 23px;
  border: 1px solid rgba(36, 77, 143, 0.1);
  border-radius: 20px;
  background: rgba(255, 253, 248, 0.66);
}

.establishment-card span {
  color: var(--sage);
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.establishment-card h3 {
  margin: 25px 0 9px;
  font-size: clamp(0.96rem, 1.3vw, 1.08rem);
}

.establishment-card address {
  min-height: 37px;
  color: var(--blue);
  font-size: 0.77rem;
  font-style: normal;
  font-weight: 700;
  line-height: 1.45;
}

.establishment-card p {
  margin-top: 17px;
  color: var(--ink-soft);
  font-size: 0.77rem;
  line-height: 1.62;
}

.groups-heading {
  max-width: 700px;
  margin: clamp(64px, 8vw, 92px) 0 clamp(32px, 4vw, 44px);
}

.groups-heading h2 {
  margin-top: 19px;
  font-size: clamp(2.1rem, 4vw, 3.35rem);
}

.groups-heading .serif {
  color: var(--blue);
}

.groups-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.group-card {
  display: flex;
  flex-direction: column;
  min-height: 302px;
  padding: clamp(27px, 3vw, 35px);
  border: 1px solid rgba(36, 77, 143, 0.1);
  border-radius: 26px;
  background: rgba(255, 253, 248, 0.72);
}

.group-card > span {
  color: var(--sage);
  font-size: 0.71rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.group-card h3 {
  margin: 50px 0 17px;
  font-size: clamp(1.38rem, 2.2vw, 1.7rem);
}

.group-card p {
  margin-bottom: 27px;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.group-card a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  margin-top: auto;
  color: var(--blue);
  font-size: 0.83rem;
  font-weight: 700;
}

.group-card b {
  font-size: 1.1rem;
}

.group-card-featured {
  color: var(--paper);
  background: var(--blue);
  transform: translateY(-12px);
}

.group-card-featured > span,
.group-card-featured a {
  color: #dce8ff;
}

.group-card-featured p {
  color: rgba(255, 253, 248, 0.74);
}

.partner-join {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: clamp(26px, 6vw, 76px);
  margin-bottom: 52px;
  padding: clamp(32px, 5vw, 54px);
  border-radius: 31px;
  background: var(--paper);
}

.partner-join h2 {
  margin: 22px 0 18px;
  font-size: clamp(2rem, 4vw, 3.25rem);
}

.partner-join h2 .serif {
  display: block;
  color: var(--blue);
}

.partner-join > div > p:last-child {
  max-width: 590px;
  color: var(--ink-soft);
}

.partner-join .button {
  flex: 0 0 auto;
}

.project-targets {
  padding: 32px 0 86px;
}

.project-targets .section-heading {
  max-width: 620px;
  margin-bottom: 39px;
}

.target-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
  border: 1px solid rgba(36, 77, 143, 0.1);
  border-radius: 27px;
  background: rgba(255, 253, 248, 0.62);
}

.target-grid article {
  padding: clamp(22px, 3vw, 33px);
}

.target-grid article:not(:first-child) {
  border-left: 1px solid rgba(36, 77, 143, 0.1);
}

.target-grid strong {
  color: var(--blue);
  font-family: var(--serif);
  font-size: clamp(3rem, 5vw, 3.8rem);
  font-weight: 400;
}

.target-grid p {
  margin-top: 12px;
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.target-disclaimer {
  margin-top: 17px;
  color: var(--ink-soft);
  font-size: 0.78rem;
}

.legal-main {
  padding-top: 142px;
}

.legal-hero {
  padding: clamp(42px, 7vw, 76px) 0 clamp(42px, 6vw, 68px);
}

.legal-hero h1 {
  max-width: 860px;
  margin: 24px 0 20px;
  font-size: clamp(3rem, 7vw, 5.5rem);
  line-height: 0.96;
}

.legal-hero h1 .serif {
  display: block;
  color: var(--blue);
}

.legal-hero > p:not(.eyebrow) {
  max-width: 630px;
  margin-bottom: 29px;
  color: var(--ink-soft);
}

.legal-hero > span {
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 600;
}

.legal-content {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  padding-bottom: 80px;
}

.legal-card {
  padding: clamp(27px, 4vw, 40px);
  border-radius: 26px;
  background: rgba(255, 253, 248, 0.72);
}

.legal-card-wide {
  grid-column: 1 / -1;
}

.legal-card h2 {
  margin-bottom: 23px;
  font-size: clamp(1.45rem, 3vw, 1.75rem);
}

.legal-card p {
  margin-bottom: 16px;
  color: var(--ink-soft);
  font-size: 0.93rem;
}

.legal-card a {
  color: var(--blue);
  font-weight: 700;
}

.legal-note {
  margin-top: 23px;
  padding: 17px 18px;
  border-radius: 14px;
  color: var(--ink) !important;
  background: rgba(36, 77, 143, 0.08);
  font-size: 0.85rem !important;
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 25px 0 8px;
}

.legal-links a {
  padding: 12px 17px;
  border-radius: 999px;
  background: var(--world-accent-soft);
  font-size: 0.82rem;
}

.legal-certification {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  align-items: center;
  gap: clamp(26px, 5vw, 60px);
}

.legal-certification img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.timeline-card strong {
  color: var(--terracotta);
  font-family: var(--serif);
  font-size: 3rem;
  font-weight: 400;
}

.timeline-card h3,
.axis-card h3 {
  margin: 40px 0 14px;
  font-size: 1.55rem;
}

.timeline-card:nth-child(2) {
  color: var(--paper);
  background: var(--terracotta);
  transform: translateY(27px);
}

.timeline-card:nth-child(2) strong {
  color: var(--gold);
}

.timeline-card:nth-child(2) p {
  color: rgba(255, 253, 248, 0.75);
}

.workstudy-followup {
  display: grid;
  grid-template-columns: 0.74fr 1.26fr;
  gap: clamp(30px, 6vw, 70px);
  padding-top: clamp(90px, 11vw, 130px);
}

.followup-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.followup-grid article {
  padding: 25px 26px;
  border-radius: 22px;
  background: rgba(255, 253, 248, 0.58);
}

.followup-grid strong {
  color: var(--terracotta);
  font-family: var(--serif);
  font-size: 2.6rem;
  font-weight: 400;
}

.followup-grid p {
  margin-top: 28px;
  color: var(--ink-soft);
  font-size: 0.84rem;
}

.workstudy-cta {
  display: grid;
  justify-items: center;
  gap: 26px;
  margin: 80px 0 52px;
  padding: clamp(32px, 5vw, 54px);
  border-radius: 31px;
  background: var(--paper);
  text-align: center;
}

.workstudy-cta > div:first-child {
  max-width: 760px;
  margin: 0 auto;
}

.workstudy-cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.workstudy-cta .button-light {
  color: var(--terracotta);
  background: rgba(186, 114, 86, 0.13);
}

.axis-card {
  color: var(--paper);
  background: var(--ink);
}

.axis-card:nth-child(2) {
  background: var(--iris);
}

.axis-card p:last-child {
  color: rgba(255, 253, 248, 0.72);
}

.axis-card .eyebrow {
  color: var(--gold);
}

.ai-modules {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding-top: 66px;
}

.ai-module {
  display: flex;
  flex-direction: column;
  min-height: 325px;
  padding: clamp(25px, 3vw, 32px);
  border: 1px solid rgba(101, 118, 173, 0.12);
  border-radius: 26px;
  background: rgba(255, 253, 248, 0.58);
}

.ai-module-tag {
  margin-bottom: auto;
  color: var(--iris);
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.ai-module h3 {
  margin: 48px 0 14px;
  font-size: clamp(1.28rem, 2vw, 1.55rem);
}

.ai-module > p:not(.ai-module-tag) {
  margin-bottom: 25px;
  color: var(--ink-soft);
  font-size: 0.84rem;
}

.ai-module span {
  padding-top: 17px;
  border-top: 1px solid var(--line);
  color: var(--iris);
  font-size: 0.72rem;
  font-weight: 700;
}

.ai-module-featured {
  color: var(--paper);
  background: radial-gradient(circle at 88% 10%, rgba(223, 183, 114, 0.22), transparent 34%), var(--iris);
  transform: translateY(26px);
}

.ai-module-featured .ai-module-tag,
.ai-module-featured span {
  color: var(--gold);
}

.ai-module-featured > p:not(.ai-module-tag) {
  color: rgba(255, 253, 248, 0.76);
}

.ai-module-featured span {
  border-color: rgba(255, 253, 248, 0.2);
}

.ai-promise {
  margin-top: clamp(92px, 12vw, 125px);
  padding: clamp(45px, 7vw, 72px);
  border-radius: 34px;
  text-align: center;
  background: rgba(101, 118, 173, 0.12);
}

.ai-promise h2 {
  max-width: 910px;
  margin: 25px auto 36px;
  font-size: clamp(2rem, 4vw, 3.15rem);
  line-height: 1.13;
}

.ai-promise .serif {
  color: var(--iris);
  font-family: var(--serif);
  font-weight: 400;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms ease, transform 650ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

@keyframes breathe {
  50% {
    transform: scale(1.08);
  }
}

@keyframes float {
  50% {
    transform: translateY(-9px);
  }
}

@keyframes ticker {
  to {
    transform: translateX(calc(-50% - 19px));
  }
}

@keyframes bridgeLight {
  50% {
    opacity: 0.28;
    transform: translateY(3px);
  }
}

@keyframes crossBridge {
  0%,
  100% {
    transform: translateX(-80px);
  }
  50% {
    transform: translateX(80px);
  }
}

@keyframes spinOrb {
  to {
    transform: rotateZ(360deg);
  }
}

@keyframes spinOrbX {
  from {
    transform: rotateX(68deg) rotateZ(0);
  }
  to {
    transform: rotateX(68deg) rotateZ(360deg);
  }
}

@keyframes spinOrbY {
  from {
    transform: rotateY(68deg) rotateZ(0);
  }
  to {
    transform: rotateY(68deg) rotateZ(360deg);
  }
}

@media (max-width: 1040px) {
  .site-header {
    gap: 17px;
  }

  .navigation {
    gap: 16px;
  }

  .header-cta {
    padding: 0 18px;
  }

  .hero-content {
    width: 52%;
  }

  .hero-scene {
    width: 43%;
  }

  .home-page .hero-content {
    width: 47%;
  }

  .home-page .hero-scene {
    width: min(49%, 590px);
  }

  .academy-hotspot {
    padding: 8px 12px;
    font-size: 0.67rem;
  }

  .numbers {
    grid-template-columns: repeat(3, 1fr);
  }

  .numbers-copy {
    grid-column: 1 / -1;
    padding: 27px 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .partnership,
  .faq,
  .signature,
  .portal-grid,
  .testimonial-grid,
  .press-proof {
    grid-template-columns: 1fr;
  }

  .signature-services {
    max-width: 620px;
  }

  .portal {
    min-height: 286px;
  }

  .world-hero {
    grid-template-columns: 1fr;
  }

  .world-copy {
    max-width: 680px;
  }

  .school-model,
  .bridge-model,
  .ai-model,
  .world-visual {
    width: min(100%, 710px);
    height: 530px;
  }

  .chapter-menu {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .page-noise,
  .cursor-halo {
    display: none;
  }

  .site-header {
    top: 12px;
    right: 15px;
    left: 15px;
    height: 66px;
    padding: 6px 9px 6px 14px;
    background: rgba(255, 253, 248, 0.7);
    border-color: rgba(255, 253, 248, 0.48);
  }

  body.menu-open .site-header {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    align-items: flex-start;
    height: auto;
    padding: 18px 15px;
    border: 0;
    border-radius: 0;
    background: #e6eff2;
    box-shadow: none;
    backdrop-filter: none;
  }

  .brand {
    width: 190px;
    height: 47px;
  }

  body.menu-open .brand,
  body.menu-open .menu-toggle {
    position: relative;
    z-index: 3;
  }

  .menu-toggle {
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 47px;
    height: 47px;
    margin-left: auto;
    border: 0;
    border-radius: 50%;
    background: color-mix(in srgb, var(--header-accent) 11%, transparent);
    cursor: pointer;
  }

  .menu-toggle span:not(.sr-only) {
    width: 19px;
    height: 2px;
    margin: 0 auto;
    background: var(--header-accent);
    transition: transform 200ms ease, opacity 200ms ease;
  }

  .menu-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(7px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .navigation {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    flex-direction: column;
    gap: 15px;
    justify-content: center;
    color: var(--ink);
    background: #e6eff2;
    font-size: 1.3rem;
    z-index: 1;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-20px);
    transition: visibility 220ms ease, opacity 220ms ease, transform 220ms ease;
  }

  .navigation.is-open {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }

  .navigation .nav-mobile-only {
    display: block;
  }

  body.menu-open .navigation {
    position: absolute;
  }

  .header-cta {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 122px 24px 86px;
  }

  .hero-line {
    display: none;
  }

  .hero-content {
    width: 100%;
    padding-top: 0;
  }

  .hero-title {
    font-size: clamp(3.3rem, 15.8vw, 5.4rem);
  }

  .hero-scene {
    position: relative;
    top: auto;
    right: auto;
    width: 100%;
    height: 520px;
    min-height: 0;
    margin: 54px auto 10px;
  }

  .home-page .hero {
    display: flex;
    flex-direction: column;
    padding-top: 116px;
  }

  .home-page .hero-content {
    width: 100%;
  }

  .home-page .hero-title {
    font-size: clamp(3.05rem, 14.7vw, 4.7rem);
  }

  .home-page .hero-scene {
    position: relative;
    top: auto;
    right: auto;
    width: 100%;
    height: min(67vw, 485px);
    min-height: 350px;
    order: -1;
    margin-top: 0;
    margin-bottom: 38px;
  }

  .academy-visual {
    border-radius: 24px;
  }

  .academy-badge {
    top: 15px;
    left: 15px;
  }

  .academy-caption {
    right: 15px;
    bottom: 14px;
    left: 15px;
    text-align: center;
  }

  .home-page .academy-caption {
    display: none;
  }

  .academy-quick-actions {
    position: absolute;
    z-index: 3;
    right: 13px;
    bottom: 16px;
    left: 13px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .academy-quick-actions a {
    min-height: 44px;
    padding: 13px 9px;
    border-radius: 999px;
    color: #fff;
    background: var(--blue);
    font-size: 0.73rem;
    font-weight: 700;
    text-align: center;
  }

  .academy-quick-actions a:last-child {
    color: var(--ink);
    background: rgba(255, 253, 248, 0.94);
  }

  .academy-hotspot {
    padding: 7px 10px;
    font-size: 0.62rem;
  }

  .hotspot-accueil {
    top: 54%;
    left: 10%;
  }

  .hotspot-salle {
    top: 41%;
    left: 48%;
  }

  .hotspot-bar {
    top: 20%;
    right: 8%;
  }

  .scene-frame {
    border-radius: 120px 120px 22px 22px;
  }

  .marquee {
    position: relative;
    margin-top: 50px;
  }

  .manifesto {
    padding-top: 66px;
  }

  .signature {
    gap: 42px;
    padding: 74px 0 72px;
  }

  .campus-portals {
    padding-bottom: 70px;
  }

  .training-callout {
    flex-direction: column;
    align-items: flex-start;
  }

  .signature::before {
    display: none;
  }

  .signature-services {
    gap: 9px;
  }

  .service-card {
    min-height: 236px;
    padding-right: 14px;
    padding-left: 14px;
    border-radius: 80px 80px 16px 16px;
  }

  .service-card:nth-child(2) {
    margin-top: 25px;
  }

  .service-rule {
    height: 42px;
  }

  .pillars,
  .journey-layout,
  .audiences,
  .quality-proof,
  .appointment-grid,
  .contact {
    grid-template-columns: 1fr;
  }

  .quality-proof {
    margin-bottom: 66px;
    padding: 27px 22px;
  }

  .pillar {
    min-height: auto;
  }

  .manifesto::after {
    display: none;
  }

  .pillar-accent {
    margin-top: 0;
  }

  .pillar-number {
    margin-bottom: 30px;
  }

  .numbers {
    grid-template-columns: 1fr;
  }

  .stat,
  .stat:not(:first-child) {
    padding: 28px 0;
    border-left: 0;
    border-bottom: 1px solid var(--line);
  }

  .journey-layout {
    gap: 34px;
  }

  .journey-tabs {
    flex-direction: row;
    gap: 10px;
  }

  .journey-tab {
    flex: 1;
    flex-direction: column;
    gap: 7px;
    padding: 15px 6px;
    font-size: 0.87rem;
    text-align: center;
  }

  .journey-tab strong {
    font-size: 1.8rem;
  }

  .audience {
    min-height: 375px;
  }

  .flow {
    flex-wrap: wrap;
    justify-content: center;
  }

  .contact {
    padding: 34px 23px;
  }

  .appointment-card {
    min-height: 292px;
  }

  .site-footer {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .site-footer nav {
    flex-wrap: wrap;
    max-width: 100%;
    row-gap: 14px;
  }

  .copyright {
    justify-self: start;
  }

  .world-main {
    padding-top: 97px;
  }

  .world-hero {
    min-height: auto;
    padding-top: 29px;
    padding-bottom: 55px;
  }

  .school-model,
  .bridge-model,
  .ai-model,
  .world-visual {
    height: 465px;
    min-height: 0;
    border-radius: 28px;
  }

  .world-hero .world-visual {
    order: -1;
  }

  .chapter-menu {
    padding: 39px 25px;
    border-radius: 25px;
  }

  .story-grid,
  .timeline,
  .ai-axes,
  .ai-modules,
  .training-modules,
  .workstudy-promise,
  .workstudy-actors,
  .workstudy-followup,
  .followup-grid,
  .program-catalog,
  .course-sheet,
  .target-grid,
  .training-proofs,
  .workstudy-cta,
  .page-workstudy .timeline {
    grid-template-columns: 1fr;
    padding-top: 35px;
  }

  #etapes.timeline,
  .recruit-branches {
    grid-template-columns: 1fr;
  }

  .recruit-track {
    flex-direction: column;
  }

  .recruit-arrow {
    align-self: flex-start;
    margin-left: 24px;
    transform: rotate(90deg);
  }

  .school-about,
  .school-method,
  .network,
  .school-heading {
    grid-template-columns: 1fr;
  }

  .school-about,
  .school-method,
  .faculty,
  .network {
    padding-top: 64px;
  }

  .school-principles,
  .faculty-grid,
  .network-grid,
  .partner-pillars {
    grid-template-columns: 1fr;
  }

  .school-principles article,
  .faculty-card,
  .network-card {
    min-height: auto;
  }

  .school-principles article:nth-child(2) {
    transform: none;
  }

  .partner-pillars {
    padding-top: 55px;
    padding-bottom: 60px;
  }

  .establishments {
    padding-bottom: 62px;
  }

  .establishments-heading {
    grid-template-columns: 1fr;
  }

  .establishments-grid {
    grid-template-columns: 1fr;
  }

  .establishment-card {
    min-height: auto;
    padding: 16px 15px;
  }

  .establishment-card h3 {
    margin-top: 15px;
    font-size: 0.89rem;
  }

  .groups-heading {
    margin-top: 55px;
  }

  .groups-grid {
    grid-template-columns: 1fr;
  }

  .group-card {
    min-height: auto;
    padding: 26px 24px;
  }

  .group-card h3 {
    margin-top: 29px;
  }

  .group-card-featured {
    transform: none;
  }

  .project-targets {
    padding-bottom: 62px;
  }

  .target-grid {
    padding-top: 0;
  }

  .target-grid article:not(:first-child) {
    border-top: 1px solid rgba(36, 77, 143, 0.1);
    border-left: 0;
  }

  .partner-pillar {
    min-height: auto;
  }

  .partner-pillar-featured {
    transform: none;
  }

  .partner-pillar h3 {
    margin-top: 30px;
  }

  .partner-join {
    flex-direction: column;
    align-items: stretch;
    margin-bottom: 35px;
  }

  .legal-main {
    padding-top: 102px;
  }

  .legal-content {
    grid-template-columns: 1fr;
    padding-bottom: 46px;
  }

  .legal-card-wide {
    grid-column: auto;
  }

  .legal-certification {
    display: grid;
    grid-template-columns: 1fr;
  }

  .school-principles h3,
  .faculty-card h3,
  .network-card h3 {
    margin-top: 29px;
  }

  .school-heading {
    gap: 20px;
    margin-bottom: 32px;
  }

  .program-card,
  .program-card:nth-child(4) {
    grid-column: auto;
    min-height: auto;
  }

  .training-filter {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .training-filter-options {
    justify-content: flex-start;
  }

  .course-sheets {
    padding-top: 58px;
  }

  .course-sheet {
    padding-top: 27px;
  }

  .course-note,
  .course-actions {
    grid-column: auto;
  }

  .course-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .story-card,
  .timeline-card,
  .axis-card {
    min-height: auto;
  }

  .timeline-card:nth-child(2) {
    transform: none;
  }

  .workstudy-promise {
    padding: 24px;
  }

  .promise-badge {
    min-height: 205px;
  }

  .workstudy-actor,
  .followup-grid article {
    min-height: auto;
  }

  .workstudy-actor-featured {
    transform: none;
  }

  .workstudy-followup {
    padding-top: 62px;
  }

  .workstudy-cta {
    margin-top: 58px;
  }

  .workstudy-cta-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .ai-module {
    min-height: auto;
  }

  .ai-module-featured {
    transform: none;
  }

  .ai-module h3 {
    margin-top: 29px;
  }

  .training-card-featured {
    transform: none;
  }
}

@media (max-width: 560px) {
  .section {
    width: min(calc(100% - 32px), 1240px);
  }

  .training-filter {
    margin-top: 48px;
    padding: 22px 20px;
  }

  .training-filter-options {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    scroll-snap-type: x proximity;
  }

  .training-filter-options button {
    flex: 0 0 auto;
    scroll-snap-align: start;
  }

  .press-proof {
    gap: 31px;
    margin-bottom: 68px;
    padding: 27px 23px 23px;
    border-radius: 25px;
  }

  .press-source {
    flex-wrap: wrap;
    gap: 8px 13px;
    padding-bottom: 18px;
  }

  .press-source time {
    flex-basis: 100%;
    margin-left: 0;
  }

  .press-copy h2 {
    margin-top: 19px;
    font-size: clamp(2.2rem, 12vw, 3rem);
  }

  .press-button {
    width: 100%;
    padding: 0 18px;
  }

  .press-quote {
    min-height: 278px;
    padding: 28px 25px;
    border-radius: 21px;
  }

  .press-quote p {
    font-size: 1.75rem;
  }

  .press-proof-compact {
    margin-bottom: 6px;
  }

  .hero {
    padding-right: 16px;
    padding-left: 16px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .text-link {
    justify-content: center;
  }

  .hero-scene {
    height: 474px;
  }

  .signature-services {
    grid-template-columns: 1fr;
  }

  .service-card,
  .service-card:nth-child(2) {
    min-height: 205px;
    margin-top: 0;
    border-radius: 72px 72px 16px 16px;
  }

  .service-counter {
    top: 33px;
    left: 29px;
  }

  .card-certification {
    right: 15px;
    min-width: 140px;
  }

  .plate {
    width: 55%;
  }

  .card-result {
    right: 16px;
    bottom: 71px;
  }

  .scene-caption {
    bottom: 30px;
    left: 27px;
    font-size: 1rem;
  }

  .contact-form {
    grid-template-columns: 1fr;
  }

  .world-copy h1 {
    font-size: clamp(2.7rem, 14vw, 3.3rem);
  }

  .school-model,
  .bridge-model,
  .ai-model,
  .world-visual {
    height: 386px;
  }

  .world-hotspot {
    padding: 7px 10px;
    font-size: 0.59rem;
  }

  .training-hotspot-one {
    left: 5%;
  }

  .training-hotspot-two {
    left: 36%;
  }

  .training-hotspot-three {
    right: 5%;
  }

  .school-hotspot-one {
    left: 8%;
  }

  .school-hotspot-three {
    bottom: 20%;
    left: 36%;
  }

  .work-hotspot-one {
    left: 6%;
  }

  .work-hotspot-three {
    right: 5%;
  }

  .model-floor {
    left: 12%;
    width: 77%;
  }

  .wall-one {
    left: 23%;
    width: 45%;
  }

  .wall-two {
    left: 66%;
  }

  .model-table {
    width: 40px;
    height: 40px;
  }

  .bridge-stage {
    top: 39%;
    width: 92px;
    height: 94px;
    padding: 12px;
    font-size: 0.57rem;
  }

  .stage-school {
    left: 6%;
  }

  .stage-house {
    right: 6%;
  }

  .bridge-person {
    left: 46%;
  }

  .ai-orb {
    width: 180px;
    height: 180px;
  }

  .node-one {
    left: 82px;
  }

  .ai-chip {
    padding: 11px 12px;
    font-size: 0.65rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    scroll-behavior: auto !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .academy-film {
    display: none;
  }
}

/* Pacala opening sequence */
body.intro-active {
  overflow: hidden;
}

.pacala-intro {
  position: fixed;
  z-index: 100;
  inset: 0;
  overflow: hidden;
  color: #fff;
  background: #061d25;
  opacity: 1;
  transition: opacity 650ms ease, visibility 650ms ease;
}

.pacala-intro.is-closing {
  visibility: hidden;
  opacity: 0;
}

.intro-stage,
.intro-room,
.intro-grid {
  position: absolute;
  inset: 0;
}

.intro-grid {
  z-index: 1;
  opacity: 0.26;
  background-image:
    linear-gradient(rgba(154, 204, 211, 0.17) 1px, transparent 1px),
    linear-gradient(90deg, rgba(154, 204, 211, 0.17) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(circle, #000 0%, transparent 72%);
  transform: perspective(700px) rotateX(62deg) scale(1.55) translateY(20%);
  transform-origin: center bottom;
}

.intro-room {
  z-index: 2;
  overflow: hidden;
  opacity: 0;
  background: #071f25;
  clip-path: inset(49.8% 49.8% round 34px);
  transform: scale(1.18);
}

.intro-room::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(2, 17, 22, 0.46), transparent 37%, rgba(2, 17, 22, 0.62)),
    radial-gradient(circle at center, transparent 30%, rgba(2, 17, 22, 0.43) 100%);
}

.intro-room img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.intro-logo-shell {
  position: absolute;
  z-index: 5;
  top: 50%;
  left: 50%;
  width: min(700px, 76vw);
  height: min(205px, 24vw);
  min-height: 132px;
  border: 1px solid rgba(255, 255, 255, 0.66);
  border-radius: 34px;
  background: rgba(241, 247, 248, 0.97);
  box-shadow: 0 0 0 1px rgba(101, 166, 176, 0.18), 0 32px 90px rgba(0, 0, 0, 0.42);
  transform: translate(-50%, -50%);
  perspective: 1100px;
}

.intro-logo-half {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  overflow: hidden;
  background: rgba(241, 247, 248, 0.98);
  backface-visibility: hidden;
}

.intro-logo-half img {
  position: absolute;
  top: 12%;
  width: 200%;
  height: 76%;
  object-fit: contain;
  max-width: none;
}

.intro-logo-half-left {
  left: 0;
  border-radius: 33px 0 0 33px;
  transform-origin: left center;
}

.intro-logo-half-left img {
  left: 0;
}

.intro-logo-half-right {
  right: 0;
  border-radius: 0 33px 33px 0;
  transform-origin: right center;
}

.intro-logo-half-right img {
  right: 0;
}

.intro-logo-core {
  position: absolute;
  z-index: 3;
  top: -9%;
  bottom: -9%;
  left: 50%;
  width: 2px;
  background: #8dd5df;
  box-shadow: 0 0 14px #8dd5df, 0 0 42px rgba(141, 213, 223, 0.95);
  transform: translateX(-50%) scaleY(0);
}

.intro-tool-card {
  position: absolute;
  z-index: 4;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 13px;
  min-width: 245px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 19px;
  background: rgba(6, 35, 42, 0.62);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.28);
  opacity: 0;
  transform: translateY(18px) scale(0.94);
  backdrop-filter: blur(16px);
}

.intro-tool-card > span {
  grid-row: 1 / 3;
  align-self: center;
  color: #8dd5df;
  font-family: var(--serif);
  font-size: 1.5rem;
  font-style: italic;
}

.intro-tool-card strong {
  font-size: 0.88rem;
}

.intro-tool-card small {
  color: rgba(255, 255, 255, 0.67);
  font-size: 0.66rem;
}

.intro-tool-one {
  top: 20%;
  left: 7%;
}

.intro-tool-two {
  top: 34%;
  right: 6%;
}

.intro-tool-three {
  bottom: 18%;
  left: 9%;
}

.intro-final {
  position: absolute;
  z-index: 5;
  right: 7%;
  bottom: 9%;
  width: min(570px, 48vw);
  text-align: right;
  opacity: 0;
  transform: translateY(22px);
}

.intro-final > p {
  margin-bottom: 12px;
  color: #a8dce2;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.intro-final h2 {
  font-size: clamp(3rem, 5.2vw, 5.8rem);
  letter-spacing: -0.065em;
  line-height: 0.88;
  text-shadow: 0 12px 45px rgba(0, 0, 0, 0.34);
}

.intro-final h2 span {
  display: block;
  color: #c7e4e8;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
}

.intro-enter,
.intro-skip {
  border: 1px solid rgba(255, 255, 255, 0.36);
  color: #fff;
  background: rgba(6, 35, 42, 0.52);
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
  backdrop-filter: blur(14px);
}

.intro-enter {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  min-height: 54px;
  margin-top: 26px;
  padding: 0 25px;
  border-radius: 999px;
}

.intro-enter i {
  font-style: normal;
  transition: transform 200ms ease;
}

.intro-enter:hover i,
.intro-enter:focus-visible i {
  transform: translateX(5px);
}

.intro-skip {
  position: absolute;
  z-index: 8;
  top: 25px;
  right: 27px;
  padding: 11px 16px;
  border-radius: 999px;
  font-size: 0.7rem;
}

.pacala-intro.is-playing .intro-logo-core {
  animation: introCore 4.8s cubic-bezier(0.7, 0, 0.2, 1) both;
}

.pacala-intro.is-playing .intro-logo-half-left {
  animation: introDoorLeft 4.8s cubic-bezier(0.72, 0, 0.17, 1) both;
}

.pacala-intro.is-playing .intro-logo-half-right {
  animation: introDoorRight 4.8s cubic-bezier(0.72, 0, 0.17, 1) both;
}

.pacala-intro.is-playing .intro-logo-shell {
  animation: introShell 4.8s ease both;
}

.pacala-intro.is-playing .intro-room {
  animation: introRoomReveal 5.2s cubic-bezier(0.7, 0, 0.16, 1) both;
}

.pacala-intro.is-playing .intro-tool-one {
  animation: introToolIn 650ms 2.8s ease-out both;
}

.pacala-intro.is-playing .intro-tool-two {
  animation: introToolIn 650ms 3.08s ease-out both;
}

.pacala-intro.is-playing .intro-tool-three {
  animation: introToolIn 650ms 3.36s ease-out both;
}

.pacala-intro.is-playing .intro-final {
  animation: introFinalIn 720ms 3.8s ease-out both;
}

@keyframes introCore {
  0%, 10% { transform: translateX(-50%) scaleY(0); opacity: 0; }
  20%, 38% { transform: translateX(-50%) scaleY(1); opacity: 1; }
  60%, 100% { transform: translateX(-50%) scaleY(1); opacity: 0; }
}

@keyframes introDoorLeft {
  0%, 24% { transform: translateX(0) rotateY(0); opacity: 1; }
  52% { transform: translateX(-48vw) rotateY(64deg); opacity: 0.82; }
  70%, 100% { transform: translateX(-60vw) rotateY(74deg); opacity: 0; }
}

@keyframes introDoorRight {
  0%, 24% { transform: translateX(0) rotateY(0); opacity: 1; }
  52% { transform: translateX(48vw) rotateY(-64deg); opacity: 0.82; }
  70%, 100% { transform: translateX(60vw) rotateY(-74deg); opacity: 0; }
}

@keyframes introShell {
  0%, 34% { border-color: rgba(255, 255, 255, 0.66); background: rgba(241, 247, 248, 0.97); }
  52% { border-color: transparent; background: transparent; box-shadow: none; }
  70%, 100% { visibility: hidden; border-color: transparent; background: transparent; box-shadow: none; }
}

@keyframes introRoomReveal {
  0%, 24% { opacity: 0; clip-path: inset(49.8% 49.8% round 34px); transform: scale(1.18); }
  50% { opacity: 1; clip-path: inset(8% 7% round 34px); transform: scale(1.09); }
  75%, 100% { opacity: 1; clip-path: inset(0 round 0); transform: scale(1.015); }
}

@keyframes introToolIn {
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes introFinalIn {
  to { opacity: 1; transform: translateY(0); }
}

/* The homepage header becomes three lighter floating elements. */
.home-page .site-header {
  height: 64px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.home-page .site-header .brand {
  width: 218px;
  height: 62px;
  padding: 8px 17px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 999px;
  background: rgba(242, 247, 248, 0.91);
  box-shadow: 0 15px 38px rgba(11, 31, 37, 0.09);
  backdrop-filter: blur(18px);
}

.home-page .site-header .navigation {
  min-height: 54px;
  padding: 0 23px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 999px;
  background: rgba(242, 247, 248, 0.72);
  box-shadow: 0 15px 38px rgba(11, 31, 37, 0.065);
  backdrop-filter: blur(18px);
}

.home-page .site-header .header-cta {
  min-height: 58px;
  box-shadow: 0 15px 38px rgba(11, 31, 37, 0.12);
}

@media (max-width: 820px) {
  .intro-logo-shell {
    width: calc(100% - 44px);
    height: 132px;
    min-height: 0;
    border-radius: 25px;
  }

  .intro-logo-half-left {
    border-radius: 24px 0 0 24px;
  }

  .intro-logo-half-right {
    border-radius: 0 24px 24px 0;
  }

  .intro-tool-card {
    min-width: 0;
    width: min(225px, calc(100% - 48px));
    padding: 13px 15px;
  }

  .intro-tool-card small {
    display: none;
  }

  .intro-tool-one {
    top: 18%;
    left: 20px;
  }

  .intro-tool-two {
    top: 37%;
    right: 20px;
  }

  .intro-tool-three {
    bottom: 37%;
    left: 20px;
  }

  .intro-final {
    right: 20px;
    bottom: 8%;
    left: 20px;
    width: auto;
    text-align: left;
  }

  .intro-final h2 {
    font-size: clamp(3rem, 15vw, 4.8rem);
  }

  .intro-skip {
    top: 16px;
    right: 16px;
  }

  .home-page .site-header {
    height: 56px;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .home-page .site-header .brand {
    width: 178px;
    height: 56px;
    padding: 7px 13px;
  }

  body.menu-open.home-page .site-header {
    height: 100dvh;
    padding: 18px 15px;
    background: #e6eff2;
  }
}

@media (prefers-reduced-motion: reduce) {
  .intro-logo-shell {
    display: none;
  }

  .intro-room {
    opacity: 1;
    clip-path: none;
    transform: none;
  }

  .intro-tool-card,
  .intro-final {
    opacity: 1;
    transform: none;
  }
}

/* Detailed logo assembly: book, gear, bolts, then the restaurant. */
.intro-build-status {
  position: absolute;
  z-index: 7;
  top: 28px;
  left: 30px;
  display: grid;
  grid-template-columns: 10px auto;
  gap: 2px 10px;
  color: rgba(255, 255, 255, 0.78);
  opacity: 0;
}

.intro-build-status > span {
  grid-row: 1 / 3;
  align-self: center;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #8dd5df;
  box-shadow: 0 0 0 5px rgba(141, 213, 223, 0.13), 0 0 22px rgba(141, 213, 223, 0.8);
}

.intro-build-status strong {
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.intro-build-status small {
  color: rgba(255, 255, 255, 0.43);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
}

.intro-rail {
  position: absolute;
  z-index: 4;
  left: 50%;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #8dd5df 20%, #fff 50%, #8dd5df 80%, transparent);
  box-shadow: 0 0 18px rgba(141, 213, 223, 0.8);
  transform: translateX(-50%);
}

.intro-rail-top { top: calc(50% - min(130px, 14vw)); }
.intro-rail-bottom { top: calc(50% + min(130px, 14vw)); }

.intro-logo-panel {
  position: absolute;
  z-index: 1;
  top: 0;
  bottom: 0;
  width: 50%;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.72), transparent 35%),
    rgba(241, 247, 248, 0.98);
  backface-visibility: hidden;
}

.intro-logo-panel-left {
  left: 0;
  border-radius: 33px 0 0 33px;
  transform-origin: left center;
}

.intro-logo-panel-right {
  right: 0;
  border-radius: 0 33px 33px 0;
  transform-origin: right center;
}

.intro-logo-assembly {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(24px, 4vw, 47px);
  padding: 24px 40px;
}

.intro-emblem-wrap {
  position: relative;
  flex: 0 0 auto;
  width: clamp(92px, 11vw, 132px);
  aspect-ratio: 1;
}

.intro-emblem {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.intro-emblem-ring {
  position: absolute;
  z-index: 1;
  inset: 4%;
  border: 1px solid rgba(36, 77, 143, 0.2);
  border-top-color: #6fa9b4;
  border-right-color: #244d8f;
  border-radius: 50%;
  opacity: 0;
}

.intro-book,
.intro-hub,
.intro-gear {
  transform-box: fill-box;
  transform-origin: center;
}

.intro-wordmark {
  display: flex;
  flex-direction: column;
  min-width: 0;
  color: #244d8f;
}

.intro-wordmark strong {
  display: flex;
  gap: 0.045em;
  font-size: clamp(2.1rem, 4.4vw, 4.1rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 0.9;
}

.intro-wordmark strong span {
  display: inline-block;
  opacity: 0;
  transform: translateY(24px) rotateX(-70deg);
  transform-origin: center bottom;
}

.intro-wordmark small {
  margin-top: 13px;
  font-size: clamp(0.55rem, 1.05vw, 0.9rem);
  font-weight: 600;
  letter-spacing: 0.32em;
  opacity: 0;
}

.intro-bolts i {
  position: absolute;
  z-index: 4;
  width: 17px;
  height: 17px;
  border: 2px solid rgba(36, 77, 143, 0.58);
  border-radius: 50%;
  opacity: 0;
  box-shadow: inset 0 0 0 3px rgba(36, 77, 143, 0.09), 0 0 0 1px rgba(255, 255, 255, 0.8);
}

.intro-bolts i::before,
.intro-bolts i::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 1px;
  background: rgba(36, 77, 143, 0.72);
  transform: translate(-50%, -50%);
}

.intro-bolts i::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.intro-bolts i:nth-child(1) { top: 14px; left: 15px; }
.intro-bolts i:nth-child(2) { top: 14px; right: 15px; }
.intro-bolts i:nth-child(3) { bottom: 14px; left: 15px; }
.intro-bolts i:nth-child(4) { right: 15px; bottom: 14px; }

.pacala-intro.is-playing .intro-build-status {
  animation: introStatus 5.3s ease both;
}

.pacala-intro.is-playing .intro-rail-top,
.pacala-intro.is-playing .intro-rail-bottom {
  animation: introRail 4.7s 1.6s ease both;
}

.pacala-intro.is-playing .intro-book {
  animation: introBookBuild 4.4s ease both;
}

.pacala-intro.is-playing .intro-hub {
  animation: introHubBuild 4.5s 0.35s ease both;
}

.pacala-intro.is-playing .intro-gear {
  animation: introGearBuild 4.6s 0.58s cubic-bezier(0.6, 0, 0.2, 1) both;
}

.pacala-intro.is-playing .intro-emblem-ring {
  animation: introRing 4.5s 0.72s ease both;
}

.pacala-intro.is-playing .intro-wordmark strong span {
  animation: introLetterBuild 3.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.pacala-intro.is-playing .intro-wordmark strong span:nth-child(1) { animation-delay: 1.05s; }
.pacala-intro.is-playing .intro-wordmark strong span:nth-child(2) { animation-delay: 1.13s; }
.pacala-intro.is-playing .intro-wordmark strong span:nth-child(3) { animation-delay: 1.21s; }
.pacala-intro.is-playing .intro-wordmark strong span:nth-child(4) { animation-delay: 1.29s; }
.pacala-intro.is-playing .intro-wordmark strong span:nth-child(5) { animation-delay: 1.37s; }
.pacala-intro.is-playing .intro-wordmark strong span:nth-child(6) { animation-delay: 1.45s; }

.pacala-intro.is-playing .intro-wordmark small {
  animation: introSubmarkBuild 3.4s 1.78s ease both;
}

.pacala-intro.is-playing .intro-bolts i {
  animation: introBoltLock 3.15s 1.25s ease both;
}

.pacala-intro.is-playing .intro-bolts i:nth-child(2) { animation-delay: 1.38s; }
.pacala-intro.is-playing .intro-bolts i:nth-child(3) { animation-delay: 1.51s; }
.pacala-intro.is-playing .intro-bolts i:nth-child(4) { animation-delay: 1.64s; }

.pacala-intro.is-playing .intro-logo-panel-left {
  animation: introDetailedDoorLeft 6.3s cubic-bezier(0.72, 0, 0.17, 1) both;
}

.pacala-intro.is-playing .intro-logo-panel-right {
  animation: introDetailedDoorRight 6.3s cubic-bezier(0.72, 0, 0.17, 1) both;
}

.pacala-intro.is-playing .intro-logo-core {
  animation: introDetailedCore 6.3s ease both;
}

.pacala-intro.is-playing .intro-logo-shell {
  animation: introDetailedShell 6.3s ease both;
}

.pacala-intro.is-playing .intro-room {
  animation: introDetailedRoom 6.45s cubic-bezier(0.7, 0, 0.16, 1) both;
}

.pacala-intro.is-playing .intro-tool-one { animation: introToolIn 650ms 4.65s ease-out both; }
.pacala-intro.is-playing .intro-tool-two { animation: introToolIn 650ms 4.98s ease-out both; }
.pacala-intro.is-playing .intro-tool-three { animation: introToolIn 650ms 5.31s ease-out both; }
.pacala-intro.is-playing .intro-final { animation: introFinalIn 760ms 5.82s ease-out both; }

@keyframes introStatus {
  0% { opacity: 0; transform: translateY(-8px); }
  10%, 72% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-8px); }
}

@keyframes introRail {
  0% { width: 0; opacity: 0; }
  18%, 63% { width: min(840px, 88vw); opacity: 0.85; }
  100% { width: 100vw; opacity: 0; }
}

@keyframes introBookBuild {
  0% { opacity: 0; transform: translateX(-34px) rotateY(-74deg) scale(0.75); }
  20%, 66% { opacity: 1; transform: translateX(0) rotateY(0) scale(1); }
  100% { opacity: 0; transform: translateX(-84px) rotateY(58deg) scale(0.72); }
}

@keyframes introHubBuild {
  0% { opacity: 0; transform: scale(0.2); }
  22%, 66% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.65); }
}

@keyframes introGearBuild {
  0% { opacity: 0; transform: translateX(58px) rotate(0) scale(0.45); }
  31% { opacity: 1; transform: translateX(0) rotate(-540deg) scale(1); }
  66% { opacity: 1; transform: translateX(0) rotate(-430deg) scale(1); }
  100% { opacity: 0; transform: translateX(96px) rotate(220deg) scale(0.5); }
}

@keyframes introRing {
  0% { opacity: 0; transform: scale(0.6) rotate(0); }
  24%, 70% { opacity: 1; transform: scale(1) rotate(360deg); }
  100% { opacity: 0; transform: scale(1.5) rotate(640deg); }
}

@keyframes introLetterBuild {
  0% { opacity: 0; transform: translateY(24px) rotateX(-70deg); }
  22%, 68% { opacity: 1; transform: translateY(0) rotateX(0); }
  100% { opacity: 0; transform: translateY(-30px) rotateX(54deg); }
}

@keyframes introSubmarkBuild {
  0% { opacity: 0; letter-spacing: 0.6em; }
  24%, 66% { opacity: 1; letter-spacing: 0.32em; }
  100% { opacity: 0; letter-spacing: 0.68em; }
}

@keyframes introBoltLock {
  0% { opacity: 0; transform: scale(2.2) rotate(0); }
  22%, 66% { opacity: 1; transform: scale(1) rotate(270deg); }
  100% { opacity: 0; transform: scale(0.35) rotate(620deg); }
}

@keyframes introDetailedDoorLeft {
  0%, 45% { transform: translateX(0) rotateY(0); opacity: 1; }
  68% { transform: translateX(-48vw) rotateY(67deg); opacity: 0.86; }
  84%, 100% { transform: translateX(-62vw) rotateY(76deg); opacity: 0; }
}

@keyframes introDetailedDoorRight {
  0%, 45% { transform: translateX(0) rotateY(0); opacity: 1; }
  68% { transform: translateX(48vw) rotateY(-67deg); opacity: 0.86; }
  84%, 100% { transform: translateX(62vw) rotateY(-76deg); opacity: 0; }
}

@keyframes introDetailedCore {
  0%, 30% { transform: translateX(-50%) scaleY(0); opacity: 0; }
  40%, 59% { transform: translateX(-50%) scaleY(1); opacity: 1; }
  76%, 100% { transform: translateX(-50%) scaleY(1); opacity: 0; }
}

@keyframes introDetailedShell {
  0%, 55% { border-color: rgba(255, 255, 255, 0.66); background: rgba(241, 247, 248, 0.97); }
  72% { border-color: transparent; background: transparent; box-shadow: none; }
  86%, 100% { visibility: hidden; border-color: transparent; background: transparent; box-shadow: none; }
}

@keyframes introDetailedRoom {
  0%, 43% { opacity: 0; clip-path: inset(49.8% 49.8% round 34px); transform: scale(1.18); }
  69% { opacity: 1; clip-path: inset(8% 7% round 34px); transform: scale(1.09); }
  84%, 100% { opacity: 1; clip-path: inset(0 round 0); transform: scale(1.015); }
}

@media (max-width: 820px) {
  .intro-logo-assembly {
    gap: 16px;
    padding: 20px 25px;
  }

  .intro-emblem-wrap {
    width: 82px;
  }

  .intro-wordmark strong {
    font-size: clamp(1.75rem, 9.4vw, 2.65rem);
  }

  .intro-wordmark small {
    margin-top: 9px;
    font-size: 0.48rem;
  }

  .intro-build-status {
    top: 18px;
    left: 18px;
  }

  .intro-build-status small {
    display: none;
  }

  .intro-rail-top { top: calc(50% - 82px); }
  .intro-rail-bottom { top: calc(50% + 82px); }
}

@media (prefers-reduced-motion: reduce) {
  .intro-build-status,
  .intro-rail,
  .intro-logo-assembly,
  .intro-bolts,
  .intro-mechanics,
  .intro-sequence {
    display: none;
  }
}

/* Mechanical detail pass: every Pacala element arrives as a separate part. */
.intro-book-left,
.intro-book-right,
.intro-book-page,
.intro-book-spine,
.intro-book-lines {
  transform-box: fill-box;
  transform-origin: center;
}

.intro-book-lines {
  stroke-dasharray: 16;
  stroke-dashoffset: 16;
}

.intro-mechanics {
  position: absolute;
  z-index: 3;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
}

.intro-arm {
  position: absolute;
  top: 50%;
  width: 27%;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(36, 77, 143, 0.1), #244d8f 32%, #8dd5df 78%, #fff);
  box-shadow: 0 0 16px rgba(111, 169, 180, 0.42);
  opacity: 0;
}

.intro-arm::before,
.intro-arm::after,
.intro-arm i {
  content: "";
  position: absolute;
  top: 50%;
  border: 2px solid #244d8f;
  border-radius: 50%;
  background: #f1f7f8;
  box-shadow: 0 0 0 4px rgba(36, 77, 143, 0.08);
  transform: translateY(-50%);
}

.intro-arm::before {
  width: 15px;
  height: 15px;
}

.intro-arm::after {
  width: 8px;
  height: 8px;
  border-color: #6fa9b4;
}

.intro-arm i {
  width: 26px;
  height: 26px;
}

.intro-arm-left {
  left: -29%;
}

.intro-arm-left::before { right: -7px; }
.intro-arm-left::after { right: 26%; }
.intro-arm-left i { right: 11%; }

.intro-arm-right {
  right: -29%;
  background: linear-gradient(270deg, rgba(36, 77, 143, 0.1), #244d8f 32%, #8dd5df 78%, #fff);
}

.intro-arm-right::before { left: -7px; }
.intro-arm-right::after { left: 26%; }
.intro-arm-right i { left: 11%; }

.intro-cog {
  position: absolute;
  z-index: 2;
  top: 50%;
  width: 46px;
  height: 46px;
  color: #244d8f;
  opacity: 0;
  filter: drop-shadow(0 9px 15px rgba(36, 77, 143, 0.22));
}

.intro-cog-left { left: 13%; }
.intro-cog-right { right: 13%; width: 34px; height: 34px; color: #6fa9b4; }

.intro-nut {
  position: absolute;
  z-index: 3;
  width: 19px;
  height: 17px;
  background: linear-gradient(145deg, #244d8f, #6fa9b4 68%, #d6edf0);
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
  opacity: 0;
  filter: drop-shadow(0 7px 7px rgba(36, 77, 143, 0.2));
}

.intro-nut::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: #f1f7f8;
}

.intro-nut-one { top: 22%; left: 28%; }
.intro-nut-two { top: 28%; right: 31%; }
.intro-nut-three { bottom: 20%; left: 35%; }
.intro-nut-four { right: 24%; bottom: 23%; }
.intro-nut-five { top: 17%; left: 50%; }
.intro-nut-six { right: 43%; bottom: 15%; }

.intro-energy-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 76px;
  height: 76px;
  border: 1px solid #8dd5df;
  border-radius: 50%;
  opacity: 0;
  box-shadow: 0 0 24px rgba(141, 213, 223, 0.72), inset 0 0 24px rgba(141, 213, 223, 0.28);
  transform: translate(-50%, -50%) scale(0.35);
}

.intro-scan-line {
  position: absolute;
  z-index: 5;
  top: 8%;
  bottom: 8%;
  left: 0;
  width: 2px;
  background: linear-gradient(180deg, transparent, #8dd5df 20%, #fff 50%, #8dd5df 80%, transparent);
  opacity: 0;
  box-shadow: 0 0 18px #8dd5df;
}

.intro-sequence {
  position: absolute;
  z-index: 6;
  right: 16px;
  bottom: -31px;
  left: 16px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-align: center;
  text-transform: uppercase;
}

.intro-sequence span {
  position: relative;
  padding-top: 9px;
  opacity: 0;
}

.intro-sequence span::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #8dd5df, transparent);
  transform: scaleX(0);
}

.pacala-intro.is-playing .intro-book-left {
  animation: introBookLeftV2 5.35s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.pacala-intro.is-playing .intro-book-right {
  animation: introBookRightV2 5.35s 0.12s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.pacala-intro.is-playing .intro-book-page {
  animation: introPageV2 5.15s 0.28s ease both;
}

.pacala-intro.is-playing .intro-book-spine {
  animation: introSpineV2 5.15s 0.42s ease both;
}

.pacala-intro.is-playing .intro-book-lines {
  animation: introBookLinesV2 4.75s 0.62s ease both;
}

.pacala-intro.is-playing .intro-arm-left {
  animation: introArmLeft 3.55s 0.88s cubic-bezier(0.2, 0.75, 0.2, 1) both;
}

.pacala-intro.is-playing .intro-arm-right {
  animation: introArmRight 3.55s 1.03s cubic-bezier(0.2, 0.75, 0.2, 1) both;
}

.pacala-intro.is-playing .intro-cog-left {
  animation: introCogLeft 4.15s 0.72s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.pacala-intro.is-playing .intro-cog-right {
  animation: introCogRight 3.95s 1.05s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.pacala-intro.is-playing .intro-nut {
  animation: introNutLock 3.15s 1.42s ease both;
}

.pacala-intro.is-playing .intro-nut-two { animation-delay: 1.55s; }
.pacala-intro.is-playing .intro-nut-three { animation-delay: 1.68s; }
.pacala-intro.is-playing .intro-nut-four { animation-delay: 1.81s; }
.pacala-intro.is-playing .intro-nut-five { animation-delay: 1.94s; }
.pacala-intro.is-playing .intro-nut-six { animation-delay: 2.07s; }

.pacala-intro.is-playing .intro-energy-ring {
  animation: introEnergyLock 2.35s 3.15s ease-out both;
}

.pacala-intro.is-playing .intro-scan-line {
  animation: introScan 1.45s 3.32s ease-in-out both;
}

.pacala-intro.is-playing .intro-sequence span {
  animation: introSequenceStep 1.65s 0.35s ease both;
}

.pacala-intro.is-playing .intro-sequence span:nth-child(2) { animation-delay: 1.35s; }
.pacala-intro.is-playing .intro-sequence span:nth-child(3) { animation-delay: 3.95s; }
.pacala-intro.is-playing .intro-sequence span:nth-child(4) { animation-delay: 5.55s; }

.pacala-intro.is-playing .intro-build-status { animation: introStatus 6.45s ease both; }
.pacala-intro.is-playing .intro-rail-top,
.pacala-intro.is-playing .intro-rail-bottom { animation: introRail 5.55s 2.05s ease both; }
.pacala-intro.is-playing .intro-book { animation: introBookContainerV2 6.05s ease both; }
.pacala-intro.is-playing .intro-hub { animation: introHubBuildV2 5.4s 0.78s ease both; }
.pacala-intro.is-playing .intro-gear { animation: introGearBuildV2 5.35s 1.05s cubic-bezier(0.6, 0, 0.2, 1) both; }
.pacala-intro.is-playing .intro-emblem-ring { animation: introRingV2 5.15s 1.18s ease both; }
.pacala-intro.is-playing .intro-wordmark strong span { animation: introLetterBuildV2 4.25s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.pacala-intro.is-playing .intro-wordmark strong span:nth-child(1) { animation-delay: 2.05s; }
.pacala-intro.is-playing .intro-wordmark strong span:nth-child(2) { animation-delay: 2.15s; }
.pacala-intro.is-playing .intro-wordmark strong span:nth-child(3) { animation-delay: 2.25s; }
.pacala-intro.is-playing .intro-wordmark strong span:nth-child(4) { animation-delay: 2.35s; }
.pacala-intro.is-playing .intro-wordmark strong span:nth-child(5) { animation-delay: 2.45s; }
.pacala-intro.is-playing .intro-wordmark strong span:nth-child(6) { animation-delay: 2.55s; }
.pacala-intro.is-playing .intro-wordmark small { animation: introSubmarkBuildV2 3.8s 2.85s ease both; }
.pacala-intro.is-playing .intro-bolts i { animation: introBoltLockV2 3.65s 2.28s ease both; }
.pacala-intro.is-playing .intro-bolts i:nth-child(2) { animation-delay: 2.42s; }
.pacala-intro.is-playing .intro-bolts i:nth-child(3) { animation-delay: 2.56s; }
.pacala-intro.is-playing .intro-bolts i:nth-child(4) { animation-delay: 2.7s; }
.pacala-intro.is-playing .intro-logo-panel-left { animation: introDoorLeftV2 7.55s cubic-bezier(0.72, 0, 0.17, 1) both; }
.pacala-intro.is-playing .intro-logo-panel-right { animation: introDoorRightV2 7.55s cubic-bezier(0.72, 0, 0.17, 1) both; }
.pacala-intro.is-playing .intro-logo-core { animation: introCoreV2 7.55s ease both; }
.pacala-intro.is-playing .intro-logo-shell { animation: introShellV2 7.55s ease both; }
.pacala-intro.is-playing .intro-room { animation: introRoomV2 7.65s cubic-bezier(0.7, 0, 0.16, 1) both; }
.pacala-intro.is-playing .intro-tool-one { animation: introToolIn 650ms 5.78s ease-out both; }
.pacala-intro.is-playing .intro-tool-two { animation: introToolIn 650ms 6.08s ease-out both; }
.pacala-intro.is-playing .intro-tool-three { animation: introToolIn 650ms 6.38s ease-out both; }
.pacala-intro.is-playing .intro-final { animation: introFinalIn 760ms 6.92s ease-out both; }

@keyframes introBookContainerV2 {
  0%, 76% { opacity: 1; transform: none; }
  100% { opacity: 0; transform: translateX(-72px) rotateY(52deg) scale(0.74); }
}

@keyframes introBookLeftV2 {
  0% { opacity: 0; transform: translateX(-22px) rotateY(-86deg) scale(0.78); }
  13%, 80% { opacity: 1; transform: translateX(0) rotateY(0) scale(1); }
  100% { opacity: 1; transform: translateX(0) rotateY(0) scale(1); }
}

@keyframes introBookRightV2 {
  0% { opacity: 0; transform: translateX(15px) rotateY(84deg) scale(0.78); }
  14%, 100% { opacity: 1; transform: translateX(0) rotateY(0) scale(1); }
}

@keyframes introPageV2 {
  0% { opacity: 0; transform: translateX(-8px) scaleY(0.2); }
  14%, 100% { opacity: 1; transform: translateX(0) scaleY(1); }
}

@keyframes introSpineV2 {
  0% { opacity: 0; transform: scaleY(0); }
  13%, 100% { opacity: 1; transform: scaleY(1); }
}

@keyframes introBookLinesV2 {
  0% { opacity: 0; stroke-dashoffset: 16; }
  15%, 100% { opacity: 1; stroke-dashoffset: 0; }
}

@keyframes introArmLeft {
  0% { opacity: 0; transform: translateX(0); }
  18%, 66% { opacity: 0.9; transform: translateX(104%); }
  100% { opacity: 0; transform: translateX(126%); }
}

@keyframes introArmRight {
  0% { opacity: 0; transform: translateX(0); }
  18%, 66% { opacity: 0.9; transform: translateX(-104%); }
  100% { opacity: 0; transform: translateX(-126%); }
}

@keyframes introCogLeft {
  0% { opacity: 0; transform: translate(-80px, -50%) rotate(0) scale(0.25); }
  22%, 64% { opacity: 1; transform: translate(0, -50%) rotate(520deg) scale(1); }
  100% { opacity: 0; transform: translate(115px, -50%) rotate(860deg) scale(0.24); }
}

@keyframes introCogRight {
  0% { opacity: 0; transform: translate(80px, -50%) rotate(0) scale(0.25); }
  22%, 64% { opacity: 1; transform: translate(0, -50%) rotate(-480deg) scale(1); }
  100% { opacity: 0; transform: translate(-115px, -50%) rotate(-790deg) scale(0.24); }
}

@keyframes introNutLock {
  0% { opacity: 0; transform: translateY(-24px) rotate(0) scale(1.9); }
  25%, 66% { opacity: 0.92; transform: translateY(0) rotate(240deg) scale(1); }
  100% { opacity: 0; transform: translateY(6px) rotate(520deg) scale(0.2); }
}

@keyframes introEnergyLock {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.25); }
  38% { opacity: 1; transform: translate(-50%, -50%) scale(1.9); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(7); }
}

@keyframes introScan {
  0% { left: 0; opacity: 0; }
  16%, 82% { opacity: 0.9; }
  100% { left: 100%; opacity: 0; }
}

@keyframes introSequenceStep {
  0% { opacity: 0; transform: translateY(5px); }
  18%, 66% { opacity: 1; transform: translateY(0); color: #d9f3f5; }
  100% { opacity: 0.34; transform: translateY(0); }
}

.pacala-intro.is-playing .intro-sequence span::before {
  animation: introSequenceLine 1.65s ease both;
}

.pacala-intro.is-playing .intro-sequence span:nth-child(1)::before { animation-delay: 0.35s; }
.pacala-intro.is-playing .intro-sequence span:nth-child(2)::before { animation-delay: 1.35s; }
.pacala-intro.is-playing .intro-sequence span:nth-child(3)::before { animation-delay: 3.95s; }
.pacala-intro.is-playing .intro-sequence span:nth-child(4)::before { animation-delay: 5.55s; }

@keyframes introSequenceLine {
  0% { transform: scaleX(0); opacity: 0; }
  28%, 72% { transform: scaleX(1); opacity: 1; }
  100% { transform: scaleX(1); opacity: 0.25; }
}

@keyframes introHubBuildV2 {
  0% { opacity: 0; transform: scale(0.15) rotate(-90deg); }
  18%, 76% { opacity: 1; transform: scale(1) rotate(0); }
  100% { opacity: 0; transform: scale(1.7) rotate(80deg); }
}

@keyframes introGearBuildV2 {
  0% { opacity: 0; transform: translateX(58px) rotate(0) scale(0.25); }
  24%, 76% { opacity: 1; transform: translateX(0) rotate(-620deg) scale(1); }
  100% { opacity: 0; transform: translateX(105px) rotate(260deg) scale(0.35); }
}

@keyframes introRingV2 {
  0% { opacity: 0; transform: scale(0.5) rotate(0); }
  22%, 76% { opacity: 1; transform: scale(1) rotate(420deg); }
  100% { opacity: 0; transform: scale(1.65) rotate(760deg); }
}

@keyframes introLetterBuildV2 {
  0% { opacity: 0; transform: translateY(27px) rotateX(-76deg); }
  20%, 72% { opacity: 1; transform: translateY(0) rotateX(0); }
  100% { opacity: 0; transform: translateY(-34px) rotateX(58deg); }
}

@keyframes introSubmarkBuildV2 {
  0% { opacity: 0; letter-spacing: 0.7em; }
  22%, 71% { opacity: 1; letter-spacing: 0.32em; }
  100% { opacity: 0; letter-spacing: 0.75em; }
}

@keyframes introBoltLockV2 {
  0% { opacity: 0; transform: scale(2.5) rotate(0); }
  22%, 73% { opacity: 1; transform: scale(1) rotate(360deg); }
  100% { opacity: 0; transform: scale(0.28) rotate(720deg); }
}

@keyframes introDoorLeftV2 {
  0%, 55% { transform: translateX(0) rotateY(0); opacity: 1; }
  72% { transform: translateX(-48vw) rotateY(67deg); opacity: 0.86; }
  88%, 100% { transform: translateX(-62vw) rotateY(76deg); opacity: 0; }
}

@keyframes introDoorRightV2 {
  0%, 55% { transform: translateX(0) rotateY(0); opacity: 1; }
  72% { transform: translateX(48vw) rotateY(-67deg); opacity: 0.86; }
  88%, 100% { transform: translateX(62vw) rotateY(-76deg); opacity: 0; }
}

@keyframes introCoreV2 {
  0%, 38% { transform: translateX(-50%) scaleY(0); opacity: 0; }
  47%, 67% { transform: translateX(-50%) scaleY(1); opacity: 1; }
  82%, 100% { transform: translateX(-50%) scaleY(1); opacity: 0; }
}

@keyframes introShellV2 {
  0%, 64% { border-color: rgba(255, 255, 255, 0.66); background: rgba(241, 247, 248, 0.97); }
  77% { border-color: transparent; background: transparent; box-shadow: none; }
  89%, 100% { visibility: hidden; border-color: transparent; background: transparent; box-shadow: none; }
}

@keyframes introRoomV2 {
  0%, 53% { opacity: 0; clip-path: inset(49.8% 49.8% round 34px); transform: scale(1.18); }
  73% { opacity: 1; clip-path: inset(8% 7% round 34px); transform: scale(1.09); }
  88%, 100% { opacity: 1; clip-path: inset(0 round 0); transform: scale(1.015); }
}

@media (max-width: 820px) {
  .intro-cog { width: 34px; height: 34px; }
  .intro-cog-right { width: 27px; height: 27px; }
  .intro-nut { width: 15px; height: 13px; }
  .intro-nut::after { inset: 4px; }
  .intro-arm { width: 31%; }
  .intro-sequence {
    right: 5px;
    bottom: -27px;
    left: 5px;
    gap: 3px;
    font-size: 0.42rem;
    letter-spacing: 0.06em;
  }
}

/* Complete intro story: blue emblem, mechanical opening, magical room assembly. */
.intro-brand-start,
.intro-construction {
  position: absolute;
  inset: 0;
}

.pacala-intro .intro-skip {
  z-index: 20;
}

.intro-brand-start {
  z-index: 12;
  display: grid;
  place-items: center;
  overflow: hidden;
  pointer-events: none;
}

.intro-brand-start::before,
.intro-brand-start::after {
  content: "";
  position: absolute;
  z-index: 0;
  top: 0;
  bottom: 0;
  width: 50.15%;
  background: #244a83;
}

.intro-brand-start::before { left: 0; }
.intro-brand-start::after { right: 0; }

.intro-brand-start img {
  position: absolute;
  z-index: 2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  box-shadow: none;
}

.intro-brand-start > span {
  position: absolute;
  z-index: 2;
  bottom: 9%;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.intro-training-story {
  position: absolute;
  z-index: 15;
  right: 24px;
  bottom: 5.5%;
  left: 24px;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.intro-training-line {
  grid-area: 1 / 1;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  max-width: min(680px, calc(100vw - 48px));
  margin: 0;
  padding: 11px 18px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  color: #fff;
  background: rgba(5, 28, 47, 0.58);
  box-shadow: 0 16px 44px rgba(2, 14, 29, 0.24);
  font-size: clamp(0.82rem, 1.25vw, 1.05rem);
  letter-spacing: -0.015em;
  opacity: 0;
  transform: translateY(12px) scale(0.96);
  backdrop-filter: blur(15px);
}

.intro-training-line span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border-radius: 50%;
  color: #163f74;
  background: #d9f3f5;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.intro-training-line strong {
  font-weight: 700;
}

.pacala-intro.is-playing .intro-training-line-gestures {
  animation: introTrainingLine 2.7s 2.45s ease both;
}

.pacala-intro.is-playing .intro-training-line-practice {
  animation: introTrainingLine 4.15s 5.65s ease both;
}

.pacala-intro.is-playing .intro-training-line-ready {
  animation: introTrainingLine 3.15s 10.35s ease both;
}

@keyframes introTrainingLine {
  0%, 100% { opacity: 0; transform: translateY(12px) scale(0.96); }
  14%, 76% { opacity: 1; transform: translateY(0) scale(1); }
}

.intro-construction {
  z-index: 3;
  display: grid;
  place-items: center;
  overflow: hidden;
  opacity: 0;
  background:
    radial-gradient(circle at 50% 52%, rgba(50, 116, 127, 0.26), transparent 48%),
    linear-gradient(180deg, #061e25, #092b32);
  pointer-events: none;
}

.intro-construction > svg {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.intro-build-room-lines,
.intro-build-floor,
.intro-build-bar,
.intro-build-bottles,
.intro-build-glasses,
.intro-build-table,
.intro-build-chairs,
.intro-build-settings {
  display: none;
}

.intro-construction .intro-person {
  display: none;
}

.intro-room-build {
  position: absolute;
  z-index: 1;
  inset: 0;
  overflow: hidden;
}

.intro-room-piece {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  filter: saturate(0.88) brightness(0.82);
  transform-origin: center;
}

.intro-room-architecture {
  clip-path: polygon(8% 3%, 48% 1%, 50% 29%, 8% 36%);
}

.intro-room-floor {
  clip-path: polygon(28% 51%, 72% 48%, 79% 72%, 34% 79%);
}

.intro-room-door {
  clip-path: polygon(0 30%, 20% 27%, 21% 68%, 0 72%);
}

.intro-room-lamps {
  clip-path: ellipse(18% 10% at 40% 28%);
}

.intro-room-left-service {
  clip-path: polygon(17% 28%, 53% 25%, 53% 46%, 17% 53%);
}

.intro-room-backbar {
  clip-path: polygon(72% 16%, 100% 13%, 100% 38%, 70% 41%);
}

.intro-room-bar {
  clip-path: polygon(63% 39%, 100% 35%, 100% 55%, 61% 54%);
}

.intro-room-table-one {
  clip-path: ellipse(16% 12% at 37% 48%);
}

.intro-room-table-two {
  clip-path: ellipse(17% 13% at 65% 48%);
}

.intro-room-table-three {
  clip-path: ellipse(17% 14% at 52% 63%);
}

.intro-room-service-island {
  clip-path: polygon(74% 56%, 100% 52%, 100% 85%, 70% 84%);
}

.intro-room-stairs {
  clip-path: polygon(0 68%, 55% 65%, 52% 95%, 0 100%);
}

.intro-room-seam {
  position: absolute;
  z-index: 3;
  height: 1px;
  background: linear-gradient(90deg, transparent, #d9f3f5, #8dd5df, transparent);
  opacity: 0;
  box-shadow: 0 0 15px #8dd5df;
  transform-origin: center;
}

.intro-room-seam-one {
  top: 50%;
  left: 11%;
  width: 44%;
  transform: rotate(-7deg);
}

.intro-room-seam-two {
  top: 56%;
  right: 6%;
  width: 46%;
  transform: rotate(5deg);
}

.intro-construction svg > g,
.intro-build-bottles > g,
.intro-build-glasses > path,
.intro-chair,
.intro-person,
.intro-ai-tool {
  transform-box: fill-box;
  transform-origin: center;
}

.intro-build-room-lines {
  stroke-dasharray: 1800;
  stroke-dashoffset: 1800;
  opacity: 0;
}

.intro-build-floor,
.intro-build-bar,
.intro-build-table,
.intro-chair,
.intro-build-settings,
.intro-build-bottles,
.intro-build-bottles > g,
.intro-build-glasses > path,
.intro-person,
.intro-ai-tool {
  opacity: 0;
}

.intro-build-floor { transform-origin: center bottom; }
.intro-build-bar { transform-origin: right bottom; }
.intro-build-table { transform-origin: center bottom; }
.intro-chair { transform-origin: center bottom; }
.intro-build-settings { transform-origin: center; }
.intro-build-bottles { transform-origin: center; }
.intro-person { transform-origin: center bottom; }

.intro-construction-caption {
  position: absolute;
  top: 7%;
  left: 50%;
  display: grid;
  grid-template-columns: 10px auto;
  gap: 2px 10px;
  min-width: max-content;
  color: rgba(255, 255, 255, 0.82);
  opacity: 0;
  transform: translateX(-50%);
}

.intro-construction-caption > span {
  grid-row: 1 / 3;
  align-self: center;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #8dd5df;
  box-shadow: 0 0 0 6px rgba(141, 213, 223, 0.12), 0 0 24px #8dd5df;
}

.intro-construction-caption strong {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.intro-construction-caption small {
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
}

.intro-magic-particles {
  position: absolute;
  z-index: 4;
  inset: 0;
  overflow: hidden;
}

.intro-magic-particles i {
  --mote-size: 4px;
  --mote-x: 0px;
  --mote-y: -100px;
  position: absolute;
  width: var(--mote-size);
  height: var(--mote-size);
  border-radius: 50%;
  background: #d9f3f5;
  box-shadow: 0 0 12px #8dd5df, 0 0 26px rgba(141, 213, 223, 0.8);
  opacity: 0;
}

.intro-magic-particles i:nth-child(1) { top: 29%; left: 16%; --mote-x: 190px; --mote-y: 130px; }
.intro-magic-particles i:nth-child(2) { top: 68%; left: 12%; --mote-x: 260px; --mote-y: -170px; --mote-size: 3px; }
.intro-magic-particles i:nth-child(3) { top: 17%; left: 31%; --mote-x: 90px; --mote-y: 260px; --mote-size: 5px; }
.intro-magic-particles i:nth-child(4) { top: 78%; left: 34%; --mote-x: -70px; --mote-y: -230px; }
.intro-magic-particles i:nth-child(5) { top: 24%; left: 52%; --mote-x: 170px; --mote-y: 180px; --mote-size: 3px; }
.intro-magic-particles i:nth-child(6) { top: 73%; left: 57%; --mote-x: 120px; --mote-y: -240px; --mote-size: 6px; }
.intro-magic-particles i:nth-child(7) { top: 18%; left: 72%; --mote-x: -210px; --mote-y: 190px; }
.intro-magic-particles i:nth-child(8) { top: 64%; left: 83%; --mote-x: -240px; --mote-y: -120px; --mote-size: 3px; }
.intro-magic-particles i:nth-child(9) { top: 42%; left: 90%; --mote-x: -270px; --mote-y: 40px; --mote-size: 5px; }
.intro-magic-particles i:nth-child(10) { top: 89%; left: 72%; --mote-x: -150px; --mote-y: -270px; }
.intro-magic-particles i:nth-child(11) { top: 52%; left: 44%; --mote-x: -180px; --mote-y: -170px; --mote-size: 3px; }
.intro-magic-particles i:nth-child(12) { top: 35%; left: 62%; --mote-x: 190px; --mote-y: -90px; --mote-size: 5px; }

.intro-final-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 11px;
  margin-top: 26px;
}

.intro-final-actions .intro-enter {
  margin-top: 0;
  text-decoration: none;
}

.intro-enter-primary {
  border-color: rgba(255, 255, 255, 0.72);
  color: #0a3038;
  background: #f8fbfb;
}

.intro-enter-secondary {
  background: rgba(6, 35, 42, 0.68);
}

.pacala-intro .intro-tool-card {
  display: none;
}

.pacala-intro.is-playing .intro-brand-start::before { animation: introBluePageLeft 2.85s cubic-bezier(0.72, 0, 0.2, 1) both; }
.pacala-intro.is-playing .intro-brand-start::after { animation: introBluePageRight 2.85s cubic-bezier(0.72, 0, 0.2, 1) both; }
.pacala-intro.is-playing .intro-brand-start img { animation: introBrandMarkV3 2.45s ease both; }
.pacala-intro.is-playing .intro-brand-start > span { animation: introBrandLineV3 2.1s 0.28s ease both; }

.pacala-intro.is-playing .intro-logo-shell { animation: introShellV3 8.1s ease both; }
.pacala-intro.is-playing .intro-logo-panel-left { animation: introDoorLeftV3 8.1s cubic-bezier(0.72, 0, 0.17, 1) both; }
.pacala-intro.is-playing .intro-logo-panel-right { animation: introDoorRightV3 8.1s cubic-bezier(0.72, 0, 0.17, 1) both; }
.pacala-intro.is-playing .intro-logo-core { animation: introCoreV3 8.1s ease both; }
.pacala-intro.is-playing .intro-build-status { animation: introStatusV3 4.65s 1.1s ease both; }
.pacala-intro.is-playing .intro-book { animation: introBookContainerV3 5.75s 1.62s ease both; }
.pacala-intro.is-playing .intro-book-left { animation: introBookLeftV2 4.85s 1.62s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.pacala-intro.is-playing .intro-book-right { animation: introBookRightV2 4.85s 1.78s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.pacala-intro.is-playing .intro-book-page { animation: introPageV2 4.55s 1.94s ease both; }
.pacala-intro.is-playing .intro-book-spine { animation: introSpineV2 4.55s 2.08s ease both; }
.pacala-intro.is-playing .intro-book-lines { animation: introBookLinesV2 4.25s 2.22s ease both; }
.pacala-intro.is-playing .intro-arm-left { animation: introArmLeft 3.05s 3.04s cubic-bezier(0.2, 0.75, 0.2, 1) both; }
.pacala-intro.is-playing .intro-arm-right { animation: introArmRight 3.05s 3.2s cubic-bezier(0.2, 0.75, 0.2, 1) both; }
.pacala-intro.is-playing .intro-cog-left { animation: introCogLeft 3.35s 2.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.pacala-intro.is-playing .intro-cog-right { animation: introCogRight 3.25s 3.16s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.pacala-intro.is-playing .intro-hub { animation: introHubBuildV2 4.2s 2.92s ease both; }
.pacala-intro.is-playing .intro-gear { animation: introGearBuildV2 4.05s 3.12s cubic-bezier(0.6, 0, 0.2, 1) both; }
.pacala-intro.is-playing .intro-emblem-ring { animation: introRingV2 3.9s 3.2s ease both; }
.pacala-intro.is-playing .intro-nut { animation: introNutLock 2.75s 3.34s ease both; }
.pacala-intro.is-playing .intro-nut-two { animation-delay: 3.46s; }
.pacala-intro.is-playing .intro-nut-three { animation-delay: 3.58s; }
.pacala-intro.is-playing .intro-nut-four { animation-delay: 3.7s; }
.pacala-intro.is-playing .intro-nut-five { animation-delay: 3.82s; }
.pacala-intro.is-playing .intro-nut-six { animation-delay: 3.94s; }
.pacala-intro.is-playing .intro-wordmark strong span { animation: introLetterBuildV2 4.2s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.pacala-intro.is-playing .intro-wordmark strong span:nth-child(1) { animation-delay: 3.64s; }
.pacala-intro.is-playing .intro-wordmark strong span:nth-child(2) { animation-delay: 3.74s; }
.pacala-intro.is-playing .intro-wordmark strong span:nth-child(3) { animation-delay: 3.84s; }
.pacala-intro.is-playing .intro-wordmark strong span:nth-child(4) { animation-delay: 3.94s; }
.pacala-intro.is-playing .intro-wordmark strong span:nth-child(5) { animation-delay: 4.04s; }
.pacala-intro.is-playing .intro-wordmark strong span:nth-child(6) { animation-delay: 4.14s; }
.pacala-intro.is-playing .intro-wordmark small { animation: introSubmarkBuildV2 3.2s 4.34s ease both; }
.pacala-intro.is-playing .intro-bolts i { animation: introBoltLockV2 2.75s 3.72s ease both; }
.pacala-intro.is-playing .intro-bolts i:nth-child(2) { animation-delay: 3.84s; }
.pacala-intro.is-playing .intro-bolts i:nth-child(3) { animation-delay: 3.96s; }
.pacala-intro.is-playing .intro-bolts i:nth-child(4) { animation-delay: 4.08s; }
.pacala-intro.is-playing .intro-energy-ring { animation: introEnergyLock 2.15s 4.72s ease-out both; }
.pacala-intro.is-playing .intro-scan-line { animation: introScan 1.35s 4.9s ease-in-out both; }
.pacala-intro.is-playing .intro-rail-top,
.pacala-intro.is-playing .intro-rail-bottom { animation: introRail 5.25s 3.12s ease both; }

.pacala-intro.is-playing .intro-construction { animation: introConstructionStage 7.05s 5.35s ease both; }
.pacala-intro.is-playing .intro-room-architecture { animation: introRoomArchitecture 2.05s 5.35s cubic-bezier(0.2, 0.72, 0.2, 1.12) both; }
.pacala-intro.is-playing .intro-room-floor { animation: introRoomFloorPiece 2.05s 5.62s cubic-bezier(0.2, 0.72, 0.2, 1.12) both; }
.pacala-intro.is-playing .intro-room-left-service { animation: introRoomLeftPiece 1.8s 6.02s cubic-bezier(0.2, 0.72, 0.2, 1.15) both; }
.pacala-intro.is-playing .intro-room-bar { animation: introRoomBarPiece 1.9s 6.26s cubic-bezier(0.2, 0.72, 0.2, 1.15) both; }
.pacala-intro.is-playing .intro-room-table-one { animation: introRoomTableOne 1.6s 6.62s cubic-bezier(0.2, 0.72, 0.2, 1.18) both; }
.pacala-intro.is-playing .intro-room-table-two { animation: introRoomTableTwo 1.6s 6.88s cubic-bezier(0.2, 0.72, 0.2, 1.18) both; }
.pacala-intro.is-playing .intro-room-table-three { animation: introRoomTableThree 1.7s 7.14s cubic-bezier(0.2, 0.72, 0.2, 1.18) both; }
.pacala-intro.is-playing .intro-room-service-island { animation: introRoomIslandPiece 1.85s 7.48s cubic-bezier(0.2, 0.72, 0.2, 1.16) both; }
.pacala-intro.is-playing .intro-room-apprenant-photo { animation: introRoomPersonLeft 1.75s 8.08s cubic-bezier(0.2, 0.72, 0.2, 1.14) both; }
.pacala-intro.is-playing .intro-room-restaurateur-photo { animation: introRoomPersonRight 1.8s 8.34s cubic-bezier(0.2, 0.72, 0.2, 1.14) both; }
.pacala-intro.is-playing .intro-room-apprenant-tag { animation: introRoomTag 1.9s 8.82s ease both; }
.pacala-intro.is-playing .intro-room-restaurateur-tag { animation: introRoomTag 1.9s 9.02s ease both; }
.pacala-intro.is-playing .intro-room-seam-one { animation: introRoomSeamOne 2.2s 7.52s ease-out both; }
.pacala-intro.is-playing .intro-room-seam-two { animation: introRoomSeamTwo 2.2s 7.72s ease-out both; }
.pacala-intro.is-playing .intro-ai-tool { animation: introAiTool 1.5s 9.15s cubic-bezier(0.2, 0.72, 0.2, 1.18) both; }
.pacala-intro.is-playing .intro-construction-caption { animation: introConstructionCaption 5.6s 5.55s ease both; }
.pacala-intro.is-playing .intro-magic-particles i { animation: introMagicMote 3.1s 6s ease-in-out both; }
.pacala-intro.is-playing .intro-magic-particles i:nth-child(2n) { animation-delay: 6.55s; animation-duration: 3.45s; }
.pacala-intro.is-playing .intro-magic-particles i:nth-child(3n) { animation-delay: 7.05s; animation-duration: 3.05s; }
.pacala-intro.is-playing .intro-room { animation: introRoomV3 12.35s cubic-bezier(0.7, 0, 0.16, 1) both; }
.pacala-intro.is-playing .intro-final { animation: introFinalIn 820ms 10.85s ease-out both; }

.pacala-intro.is-playing .intro-sequence span:nth-child(1) { animation: introSequenceStep 2.15s 1.35s ease both; }
.pacala-intro.is-playing .intro-sequence span:nth-child(2) { animation: introSequenceStep 2.35s 2.85s ease both; }
.pacala-intro.is-playing .intro-sequence span:nth-child(3) { animation: introSequenceStep 1.75s 5.2s ease both; }
.pacala-intro.is-playing .intro-sequence span:nth-child(4) { animation: introSequenceStep 1.75s 6.35s ease both; }
.pacala-intro.is-playing .intro-sequence span:nth-child(1)::before { animation-delay: 1.35s; animation-duration: 2.15s; }
.pacala-intro.is-playing .intro-sequence span:nth-child(2)::before { animation-delay: 2.85s; animation-duration: 2.35s; }
.pacala-intro.is-playing .intro-sequence span:nth-child(3)::before { animation-delay: 5.2s; animation-duration: 1.75s; }
.pacala-intro.is-playing .intro-sequence span:nth-child(4)::before { animation-delay: 6.35s; animation-duration: 1.75s; }

@keyframes introBluePageLeft {
  0%, 55% { transform: translateX(0); }
  82%, 100% { transform: translateX(-102%); }
}

@keyframes introBluePageRight {
  0%, 55% { transform: translateX(0); }
  82%, 100% { transform: translateX(102%); }
}

@keyframes introBrandMarkV3 {
  0% { opacity: 0; transform: scale(1.05); filter: blur(9px); }
  18%, 49% { opacity: 1; transform: scale(1); filter: blur(0); }
  68%, 100% { opacity: 0; transform: scale(1.08); filter: blur(4px); }
}

@keyframes introBrandLineV3 {
  0% { opacity: 0; transform: translateY(12px); }
  22%, 63% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-10px); }
}

@keyframes introShellV3 {
  0%, 15% { visibility: visible; opacity: 0; transform: translate(-50%, -50%) scale(0.68); border-color: rgba(255, 255, 255, 0.66); background: rgba(241, 247, 248, 0.97); }
  23%, 65% { opacity: 1; transform: translate(-50%, -50%) scale(1); border-color: rgba(255, 255, 255, 0.66); background: rgba(241, 247, 248, 0.97); }
  79% { opacity: 1; border-color: transparent; background: transparent; box-shadow: none; }
  90%, 100% { visibility: hidden; opacity: 0; border-color: transparent; background: transparent; box-shadow: none; }
}

@keyframes introDoorLeftV3 {
  0%, 62% { transform: translateX(0) rotateY(0); opacity: 1; }
  79% { transform: translateX(-48vw) rotateY(67deg); opacity: 0.86; }
  91%, 100% { transform: translateX(-62vw) rotateY(76deg); opacity: 0; }
}

@keyframes introDoorRightV3 {
  0%, 62% { transform: translateX(0) rotateY(0); opacity: 1; }
  79% { transform: translateX(48vw) rotateY(-67deg); opacity: 0.86; }
  91%, 100% { transform: translateX(62vw) rotateY(-76deg); opacity: 0; }
}

@keyframes introCoreV3 {
  0%, 45% { transform: translateX(-50%) scaleY(0); opacity: 0; }
  54%, 74% { transform: translateX(-50%) scaleY(1); opacity: 1; }
  88%, 100% { transform: translateX(-50%) scaleY(1); opacity: 0; }
}

@keyframes introStatusV3 {
  0% { opacity: 0; transform: translateY(-8px); }
  10%, 74% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-8px); }
}

@keyframes introBookContainerV3 {
  0%, 75% { opacity: 1; transform: none; }
  100% { opacity: 0; transform: translateX(-82px) translateY(-25px) rotateY(58deg) scale(0.7); }
}

@keyframes introConstructionStage {
  0% { opacity: 0; transform: scale(1.05); }
  9%, 76% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.025); }
}

@keyframes introRoomLinesV3 {
  0% { opacity: 0; stroke-dashoffset: 1800; }
  18%, 76% { opacity: 0.72; }
  72% { stroke-dashoffset: 0; }
  100% { opacity: 0.12; stroke-dashoffset: 0; }
}

@keyframes introRoomArchitecture {
  0% { opacity: 0; transform: translate(-18%, -24%) rotate(-5deg) scale(0.82); filter: saturate(0.62) brightness(0.58) blur(5px); }
  56% { opacity: 0.82; transform: translate(1.5%, -1%) rotate(1deg) scale(1.025); filter: saturate(0.5) brightness(0.46) blur(0); }
  100% { opacity: 0.78; transform: translate(0) rotate(0) scale(1); filter: saturate(0.52) brightness(0.44) blur(0); }
}

@keyframes introRoomFloorPiece {
  0% { opacity: 0; transform: translate(12%, 30%) rotate(7deg) scale(0.76); filter: saturate(0.62) brightness(0.56) blur(5px); }
  58% { opacity: 0.82; transform: translate(-1%, -1%) rotate(-1deg) scale(1.025); filter: saturate(0.5) brightness(0.44) blur(0); }
  100% { opacity: 0.78; transform: translate(0) rotate(0) scale(1); filter: saturate(0.52) brightness(0.42) blur(0); }
}

@keyframes introRoomLeftPiece {
  0% { opacity: 0; transform: translate(-36%, -18%) rotate(-11deg) scale(0.58); }
  58% { opacity: 1; transform: translate(1%, -1.2%) rotate(1.4deg) scale(1.035); }
  100% { opacity: 1; transform: translate(0) rotate(0) scale(1); }
}

@keyframes introRoomBarPiece {
  0% { opacity: 0; transform: translate(38%, -24%) rotate(13deg) scale(0.55); }
  58% { opacity: 1; transform: translate(-1%, -1.2%) rotate(-1.5deg) scale(1.035); }
  100% { opacity: 1; transform: translate(0) rotate(0) scale(1); }
}

@keyframes introRoomTableOne {
  0% { opacity: 0; transform: translate(-35%, -34%) rotate(-24deg) scale(0.36); }
  62% { opacity: 1; transform: translate(1%, -1.5%) rotate(3deg) scale(1.08); }
  100% { opacity: 1; transform: translate(0) rotate(0) scale(1); }
}

@keyframes introRoomTableTwo {
  0% { opacity: 0; transform: translate(34%, -35%) rotate(26deg) scale(0.36); }
  62% { opacity: 1; transform: translate(-1%, -1.5%) rotate(-3deg) scale(1.08); }
  100% { opacity: 1; transform: translate(0) rotate(0) scale(1); }
}

@keyframes introRoomTableThree {
  0% { opacity: 0; transform: translate(-10%, 40%) rotate(-16deg) scale(0.32); }
  62% { opacity: 1; transform: translate(0, -1.5%) rotate(2deg) scale(1.08); }
  100% { opacity: 1; transform: translate(0) rotate(0) scale(1); }
}

@keyframes introRoomIslandPiece {
  0% { opacity: 0; transform: translate(42%, 32%) rotate(14deg) scale(0.48); }
  60% { opacity: 1; transform: translate(-1%, -1%) rotate(-2deg) scale(1.05); }
  100% { opacity: 1; transform: translate(0) rotate(0) scale(1); }
}

@keyframes introRoomPersonLeft {
  0% { opacity: 0; transform: translate(-32%, 24%) rotate(-9deg) scale(0.58); filter: saturate(0.7) brightness(0.68) blur(4px); }
  58% { opacity: 1; transform: translate(1%, -1.5%) rotate(2deg) scale(1.06); filter: saturate(0.92) brightness(0.9) blur(0); }
  100% { opacity: 1; transform: translate(0) rotate(0) scale(1); filter: saturate(0.96) brightness(0.94) blur(0); }
}

@keyframes introRoomPersonRight {
  0% { opacity: 0; transform: translate(36%, 18%) rotate(10deg) scale(0.56); filter: saturate(0.7) brightness(0.68) blur(4px); }
  58% { opacity: 1; transform: translate(-1%, -1.5%) rotate(-2deg) scale(1.06); filter: saturate(0.92) brightness(0.9) blur(0); }
  100% { opacity: 1; transform: translate(0) rotate(0) scale(1); filter: saturate(0.96) brightness(0.94) blur(0); }
}

@keyframes introRoomTag {
  0% { opacity: 0; transform: translateY(10px) scale(0.86); }
  24%, 76% { opacity: 1; transform: translateY(0) scale(1); }
  100% { opacity: 0; transform: translateY(-7px) scale(0.98); }
}

@keyframes introRoomSeamOne {
  0% { opacity: 0; transform: rotate(-7deg) scaleX(0); }
  28%, 64% { opacity: 1; transform: rotate(-7deg) scaleX(1); }
  100% { opacity: 0; transform: rotate(-7deg) scaleX(1.15); }
}

@keyframes introRoomSeamTwo {
  0% { opacity: 0; transform: rotate(5deg) scaleX(0); }
  28%, 64% { opacity: 1; transform: rotate(5deg) scaleX(1); }
  100% { opacity: 0; transform: rotate(5deg) scaleX(1.15); }
}

@keyframes introMagicFloor {
  0% { opacity: 0; transform: translateY(190px) rotateX(42deg) scale(0.6); }
  58% { opacity: 1; transform: translateY(-13px) rotateX(-3deg) scale(1.035); }
  78% { transform: translateY(7px) rotateX(1deg) scale(0.99); }
  100% { opacity: 1; transform: translateY(0) rotateX(0) scale(1); }
}

@keyframes introMagicTable {
  0% { opacity: 0; transform: translate(-270px, -180px) rotate(-22deg) scale(0.4); }
  52% { opacity: 1; transform: translate(20px, -24px) rotate(6deg) scale(1.08); }
  76% { transform: translate(-8px, 9px) rotate(-2deg) scale(0.98); }
  100% { opacity: 1; transform: translate(0) rotate(0) scale(1); }
}

@keyframes introMagicBar {
  0% { opacity: 0; transform: translate(310px, -210px) rotate(18deg) scale(0.42); }
  52% { opacity: 1; transform: translate(-18px, -25px) rotate(-5deg) scale(1.06); }
  76% { transform: translate(8px, 8px) rotate(2deg) scale(0.99); }
  100% { opacity: 1; transform: translate(0) rotate(0) scale(1); }
}

@keyframes introMagicObject {
  0% { opacity: 0; transform: translate(var(--fly-x), var(--fly-y)) rotate(var(--fly-r)) scale(0.35); }
  58% { opacity: 1; transform: translate(10px, -17px) rotate(5deg) scale(1.09); }
  79% { transform: translate(-5px, 7px) rotate(-2deg) scale(0.98); }
  100% { opacity: 1; transform: translate(0) rotate(0) scale(1); }
}

@keyframes introMagicSettings {
  0% { opacity: 0; transform: translateY(-180px) rotate(28deg) scale(0.35); }
  58% { opacity: 1; transform: translateY(-9px) rotate(-4deg) scale(1.1); }
  78% { transform: translateY(4px) rotate(2deg) scale(0.98); }
  100% { opacity: 1; transform: translateY(0) rotate(0) scale(1); }
}

@keyframes introMagicSmallObject {
  0% { opacity: 0; transform: translate(130px, -150px) rotate(32deg) scale(0.25); }
  60% { opacity: 1; transform: translate(-4px, -9px) rotate(-7deg) scale(1.12); }
  100% { opacity: 1; transform: translate(0) rotate(0) scale(1); }
}

@keyframes introMagicBottleRack {
  0% { opacity: 0; transform: translate(190px, -180px) rotate(14deg) scale(0.42); }
  56% { opacity: 1; transform: translate(-9px, -14px) rotate(-4deg) scale(1.09); }
  78% { transform: translate(4px, 5px) rotate(2deg) scale(0.98); }
  100% { opacity: 1; transform: translate(0) rotate(0) scale(1); }
}

@keyframes introMagicGlass {
  0% { opacity: 0; transform: translate(-140px, -120px) rotate(-38deg) scale(0.3); }
  62% { opacity: 1; transform: translate(5px, -8px) rotate(6deg) scale(1.1); }
  100% { opacity: 1; transform: translate(0) rotate(0) scale(1); }
}

@keyframes introPersonArrivesLeft {
  0% { opacity: 0; transform: translate(-270px, 120px) rotate(-8deg) scale(0.72); }
  57% { opacity: 1; transform: translate(14px, -15px) rotate(2deg) scale(1.04); }
  100% { opacity: 1; transform: translate(0) rotate(0) scale(1); }
}

@keyframes introPersonArrivesRight {
  0% { opacity: 0; transform: translate(310px, 105px) rotate(8deg) scale(0.72); }
  57% { opacity: 1; transform: translate(-14px, -15px) rotate(-2deg) scale(1.04); }
  100% { opacity: 1; transform: translate(0) rotate(0) scale(1); }
}

@keyframes introPersonArrivesTop {
  0% { opacity: 0; transform: translate(40px, -240px) rotate(6deg) scale(0.7); }
  57% { opacity: 1; transform: translate(-7px, 12px) rotate(-2deg) scale(1.04); }
  100% { opacity: 1; transform: translate(0) rotate(0) scale(1); }
}

@keyframes introAiTool {
  0% { opacity: 0; transform: translate(130px, -160px) rotate(18deg) scale(0.3); }
  58% { opacity: 1; transform: translate(-8px, -12px) rotate(-5deg) scale(1.12); }
  100% { opacity: 1; transform: translate(0) rotate(0) scale(1); }
}

@keyframes introConstructionCaption {
  0% { opacity: 0; transform: translate(-50%, -10px); }
  12%, 75% { opacity: 1; transform: translate(-50%, 0); }
  100% { opacity: 0; transform: translate(-50%, -8px); }
}

@keyframes introMagicMote {
  0% { opacity: 0; transform: translate(0) scale(0.4); }
  18% { opacity: 0.9; }
  62% { opacity: 0.75; transform: translate(var(--mote-x), var(--mote-y)) scale(1.35); }
  100% { opacity: 0; transform: translate(var(--mote-x), var(--mote-y)) scale(0.2); }
}

@keyframes introRoomV3 {
  0%, 73% { opacity: 0; clip-path: inset(8% 7% round 36px); transform: scale(1.08); }
  86% { opacity: 1; clip-path: inset(3% 2% round 28px); transform: scale(1.035); }
  94%, 100% { opacity: 1; clip-path: inset(0 round 0); transform: scale(1.015); }
}

@media (max-width: 820px) {
  .intro-brand-start img { width: 100%; }
  .intro-brand-start > span { bottom: 14%; font-size: 0.52rem; letter-spacing: 0.17em; }
  .intro-training-story { right: 16px; bottom: 7.5%; left: 16px; }
  .intro-training-line {
    gap: 10px;
    max-width: calc(100vw - 32px);
    padding: 9px 14px;
    font-size: 0.8rem;
    text-align: left;
  }
  .intro-training-line span { width: 25px; height: 25px; flex-basis: 25px; }
  .intro-construction > svg { width: 128%; max-width: none; }
  .intro-construction-caption { top: 10%; }
  .intro-construction-caption small { display: none; }
  .intro-final-actions { justify-content: flex-start; margin-top: 19px; }
  .intro-final-actions .intro-enter { min-height: 48px; padding: 0 18px; font-size: 0.82rem; }
}

@media (max-width: 520px) {
  .intro-final-actions { display: grid; grid-template-columns: 1fr; width: min(280px, 100%); }
  .intro-final-actions .intro-enter { justify-content: space-between; }
}

@media (prefers-reduced-motion: reduce) {
  .intro-brand-start,
  .intro-construction,
  .intro-training-story {
    display: none;
  }
}

/* Blue mechanical chapter: the opening keeps the visual language of the avatar. */
.pacala-intro .intro-logo-shell {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transform: none;
}

.pacala-intro .intro-logo-panel {
  background:
    radial-gradient(circle at center, rgba(66, 105, 163, 0.36), transparent 46%),
    #244a83;
}

.pacala-intro .intro-logo-panel-left,
.pacala-intro .intro-logo-panel-right {
  border-radius: 0;
}

.pacala-intro .intro-logo-assembly {
  gap: clamp(22px, 4.5vw, 58px);
  padding: 8vh 7vw;
}

.pacala-intro .intro-emblem-wrap {
  width: clamp(112px, 17vw, 190px);
}

.pacala-intro .intro-book-left,
.pacala-intro .intro-book-right,
.pacala-intro .intro-hub,
.pacala-intro .intro-gear {
  fill: #fffdf8;
}

.pacala-intro .intro-book-page,
.pacala-intro .intro-book-spine {
  fill: #244a83;
}

.pacala-intro .intro-book-lines {
  stroke: #8dd5df;
}

.pacala-intro .intro-emblem-ring {
  border-color: rgba(217, 243, 245, 0.26);
  border-top-color: #fff;
  border-right-color: #8dd5df;
}

.pacala-intro .intro-wordmark {
  color: #fffdf8;
}

.pacala-intro .intro-wordmark strong {
  font-size: clamp(2.25rem, 6.2vw, 5.6rem);
}

.pacala-intro .intro-wordmark small {
  color: rgba(255, 255, 255, 0.7);
}

.pacala-intro .intro-arm,
.pacala-intro .intro-bolts {
  display: none;
}

.pacala-intro .intro-cog {
  color: #fffdf8;
  filter: drop-shadow(0 0 18px rgba(141, 213, 223, 0.44));
}

.pacala-intro .intro-cog-left { left: 25%; }
.pacala-intro .intro-cog-right { right: 25%; color: #8dd5df; }
.pacala-intro .intro-cog circle:nth-of-type(1) { fill: #244a83; }
.pacala-intro .intro-cog circle:nth-of-type(2) { fill: #8dd5df; }

.pacala-intro .intro-nut {
  background: linear-gradient(145deg, #fffdf8, #8dd5df 72%, #6fa9b4);
  filter: drop-shadow(0 0 12px rgba(141, 213, 223, 0.52));
}

.pacala-intro .intro-nut::after {
  background: #244a83;
}

.pacala-intro .intro-nut-one { top: 35%; left: 38%; }
.pacala-intro .intro-nut-two { top: 34%; right: 37%; }
.pacala-intro .intro-nut-three { bottom: 35%; left: 40%; }
.pacala-intro .intro-nut-four { right: 34%; bottom: 37%; }
.pacala-intro .intro-nut-five { top: 28%; left: 50%; }
.pacala-intro .intro-nut-six { right: 46%; bottom: 29%; }

.pacala-intro .intro-logo-core {
  top: 11%;
  bottom: 11%;
}

.pacala-intro .intro-rail-top { top: calc(50% - min(170px, 18vw)); }
.pacala-intro .intro-rail-bottom { top: calc(50% + min(170px, 18vw)); }

.pacala-intro .intro-sequence {
  right: 27%;
  bottom: 11%;
  left: 27%;
  grid-template-columns: repeat(2, 1fr);
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.58rem;
}

.pacala-intro .intro-sequence span:nth-child(n + 3) {
  display: none;
}

.pacala-intro.is-playing .intro-logo-shell {
  animation: introShellBlueV4 8.1s ease both;
}

.pacala-intro.is-playing .intro-logo-panel-left {
  animation: introDoorLeftBlueV4 8.1s cubic-bezier(0.72, 0, 0.17, 1) both;
}

.pacala-intro.is-playing .intro-logo-panel-right {
  animation: introDoorRightBlueV4 8.1s cubic-bezier(0.72, 0, 0.17, 1) both;
}

.pacala-intro.is-playing .intro-logo-assembly {
  animation: introAssemblyExitV4 6.15s ease both;
}

.pacala-intro.is-playing .intro-sequence {
  animation: introSequenceExitV4 5.7s ease both;
}

.pacala-intro.is-playing .intro-emblem-wrap {
  animation: introEmblemTravel 4.9s 1.35s cubic-bezier(0.2, 0.72, 0.2, 1) both;
}

.intro-construction::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  background: url("./academy-hero-3d-clean.webp") center / cover no-repeat;
  opacity: 0;
  filter: grayscale(0.5) brightness(0.35) contrast(1.05) blur(1px);
}

.pacala-intro.is-playing .intro-construction::before {
  animation: introRoomGuide 6.65s 5.35s ease both;
}

.pacala-intro.is-playing .intro-room-door {
  animation: introRoomDoorPiece 1.55s 5.82s cubic-bezier(0.2, 0.72, 0.2, 1.18) both;
}

.pacala-intro.is-playing .intro-room-lamps {
  animation: introRoomLampPiece 1.55s 6.04s cubic-bezier(0.2, 0.72, 0.2, 1.18) both;
}

.pacala-intro.is-playing .intro-room-backbar {
  animation: introRoomBackbarPiece 1.7s 6.32s cubic-bezier(0.2, 0.72, 0.2, 1.16) both;
}

.pacala-intro.is-playing .intro-room-stairs {
  animation: introRoomStairsPiece 1.75s 7.62s cubic-bezier(0.2, 0.72, 0.2, 1.16) both;
}

@keyframes introShellBlueV4 {
  0%, 14% { visibility: visible; opacity: 0; }
  21%, 88% { visibility: visible; opacity: 1; }
  96%, 100% { visibility: hidden; opacity: 0; }
}

@keyframes introDoorLeftBlueV4 {
  0%, 61% { transform: translateX(0) rotateY(0); opacity: 1; }
  73% { transform: translateX(-88%) rotateY(46deg); opacity: 0.76; }
  82%, 100% { transform: translateX(-108%) rotateY(58deg); opacity: 0; }
}

@keyframes introDoorRightBlueV4 {
  0%, 61% { transform: translateX(0) rotateY(0); opacity: 1; }
  73% { transform: translateX(88%) rotateY(-46deg); opacity: 0.76; }
  82%, 100% { transform: translateX(108%) rotateY(-58deg); opacity: 0; }
}

@keyframes introAssemblyExitV4 {
  0%, 76% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(0.88); }
}

@keyframes introSequenceExitV4 {
  0%, 78% { opacity: 1; }
  100% { opacity: 0; }
}

@keyframes introEmblemTravel {
  0%, 31% { transform: translateX(clamp(82px, 16vw, 158px)); }
  52%, 100% { transform: translateX(0); }
}

@keyframes introRoomGuide {
  0% { opacity: 0; transform: scale(1.04); }
  16%, 72% { opacity: 0.12; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.015); }
}

@keyframes introRoomDoorPiece {
  0% { opacity: 0; transform: translate(-38%, -12%) rotate(-14deg) scale(0.48); }
  60% { opacity: 1; transform: translate(1%, -1%) rotate(2deg) scale(1.06); }
  100% { opacity: 1; transform: translate(0) rotate(0) scale(1); }
}

@keyframes introRoomLampPiece {
  0% { opacity: 0; transform: translate(2%, -42%) rotate(11deg) scale(0.42); }
  60% { opacity: 1; transform: translate(-1%, 1%) rotate(-2deg) scale(1.08); }
  100% { opacity: 1; transform: translate(0) rotate(0) scale(1); }
}

@keyframes introRoomBackbarPiece {
  0% { opacity: 0; transform: translate(43%, -24%) rotate(13deg) scale(0.44); }
  60% { opacity: 1; transform: translate(-1%, 1%) rotate(-2deg) scale(1.06); }
  100% { opacity: 1; transform: translate(0) rotate(0) scale(1); }
}

@keyframes introRoomStairsPiece {
  0% { opacity: 0; transform: translate(-28%, 38%) rotate(-12deg) scale(0.52); }
  60% { opacity: 1; transform: translate(1%, -1%) rotate(2deg) scale(1.05); }
  100% { opacity: 1; transform: translate(0) rotate(0) scale(1); }
}

@media (max-width: 820px) {
  .pacala-intro .intro-logo-assembly {
    gap: 17px;
    padding: 9vh 22px 16vh;
  }

  .pacala-intro .intro-emblem-wrap {
    width: clamp(105px, 25vw, 150px);
  }

  .pacala-intro .intro-wordmark strong {
    font-size: clamp(2rem, 9vw, 3.55rem);
  }

  .pacala-intro .intro-wordmark small {
    font-size: 0.48rem;
  }

  .pacala-intro .intro-cog-left { left: 16%; }
  .pacala-intro .intro-cog-right { right: 16%; }
  .pacala-intro .intro-sequence { right: 20%; bottom: 12%; left: 20%; font-size: 0.45rem; }
}

/* Final intro pass: a complete gear and a true twelve-piece room assembly. */
.pacala-intro .intro-cog,
.pacala-intro .intro-ai-tool {
  display: none;
}

.intro-gear-assembly {
  transform-box: fill-box;
  transform-origin: center;
  filter: drop-shadow(0 0 5px rgba(141, 213, 223, 0.45));
}

.pacala-intro .intro-gear {
  fill: #fffdf8;
}

.pacala-intro .intro-gear-cutout {
  fill: #244a83;
}

.pacala-intro .intro-gear-ring {
  fill: none;
  stroke: #8dd5df;
  stroke-width: 3;
  opacity: 0.72;
}

.pacala-intro .intro-gear-center {
  fill: #8dd5df;
}

.pacala-intro.is-playing .intro-gear,
.pacala-intro.is-playing .intro-hub {
  animation: none;
}

.pacala-intro.is-playing .intro-gear-assembly {
  animation: introGearAssemblyV5 4.45s 2.88s cubic-bezier(0.2, 0.72, 0.2, 1) both;
}

.intro-puzzle-piece {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transform-origin: var(--p-origin);
  backface-visibility: hidden;
  will-change: transform, opacity, filter;
}

.intro-puzzle-clips {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.intro-puzzle-01 {
  --p-origin: 12.5% 16.67%;
  --p-x: -46vw;
  --p-y: -31vh;
  --p-r: -11deg;
  --p-delay: 5.42s;
  clip-path: polygon(0 0, 25% 0, 25% 11%, 28.2% 11%, 28.2% 22%, 25% 22%, 25% 33.333%, 17% 33.333%, 17% 37%, 9% 37%, 9% 33.333%, 0 33.333%);
}

.intro-puzzle-02 {
  --p-origin: 37.5% 16.67%;
  --p-x: -8vw;
  --p-y: -43vh;
  --p-r: 9deg;
  --p-delay: 5.74s;
  clip-path: polygon(25% 0, 50% 0, 50% 11%, 46.8% 11%, 46.8% 22%, 50% 22%, 50% 33.333%, 42% 33.333%, 42% 29.5%, 34% 29.5%, 34% 33.333%, 25% 33.333%, 25% 22%, 28.2% 22%, 28.2% 11%, 25% 11%);
}

.intro-puzzle-03 {
  --p-origin: 62.5% 16.67%;
  --p-x: 22vw;
  --p-y: -39vh;
  --p-r: -8deg;
  --p-delay: 6.06s;
  clip-path: polygon(50% 0, 75% 0, 75% 11%, 78.2% 11%, 78.2% 22%, 75% 22%, 75% 33.333%, 67% 33.333%, 67% 37%, 59% 37%, 59% 33.333%, 50% 33.333%, 50% 22%, 46.8% 22%, 46.8% 11%, 50% 11%);
}

.intro-puzzle-04 {
  --p-origin: 87.5% 16.67%;
  --p-x: 47vw;
  --p-y: -18vh;
  --p-r: 12deg;
  --p-delay: 6.38s;
  clip-path: polygon(75% 0, 100% 0, 100% 33.333%, 92% 33.333%, 92% 29.5%, 84% 29.5%, 84% 33.333%, 75% 33.333%, 75% 22%, 78.2% 22%, 78.2% 11%, 75% 11%);
}

.intro-puzzle-05 {
  --p-origin: 12.5% 50%;
  --p-x: -49vw;
  --p-y: 2vh;
  --p-r: 10deg;
  --p-delay: 6.7s;
  clip-path: polygon(0 33.333%, 9% 33.333%, 9% 37%, 17% 37%, 17% 33.333%, 25% 33.333%, 25% 45%, 21.8% 45%, 21.8% 55%, 25% 55%, 25% 66.666%, 17% 66.666%, 17% 62.8%, 9% 62.8%, 9% 66.666%, 0 66.666%);
}

.intro-puzzle-06 {
  --p-origin: 37.5% 50%;
  --p-x: -17vw;
  --p-y: 28vh;
  --p-r: -9deg;
  --p-delay: 7.02s;
  clip-path: polygon(25% 33.333%, 34% 33.333%, 34% 29.5%, 42% 29.5%, 42% 33.333%, 50% 33.333%, 50% 45%, 53.2% 45%, 53.2% 55%, 50% 55%, 50% 66.666%, 42% 66.666%, 42% 70.4%, 34% 70.4%, 34% 66.666%, 25% 66.666%, 25% 55%, 21.8% 55%, 21.8% 45%, 25% 45%);
}

.intro-puzzle-07 {
  --p-origin: 62.5% 50%;
  --p-x: 19vw;
  --p-y: 33vh;
  --p-r: 8deg;
  --p-delay: 7.34s;
  clip-path: polygon(50% 33.333%, 59% 33.333%, 59% 37%, 67% 37%, 67% 33.333%, 75% 33.333%, 75% 45%, 71.8% 45%, 71.8% 55%, 75% 55%, 75% 66.666%, 67% 66.666%, 67% 62.8%, 59% 62.8%, 59% 66.666%, 50% 66.666%, 50% 55%, 53.2% 55%, 53.2% 45%, 50% 45%);
}

.intro-puzzle-08 {
  --p-origin: 87.5% 50%;
  --p-x: 50vw;
  --p-y: 7vh;
  --p-r: -12deg;
  --p-delay: 7.66s;
  clip-path: polygon(75% 33.333%, 84% 33.333%, 84% 29.5%, 92% 29.5%, 92% 33.333%, 100% 33.333%, 100% 66.666%, 92% 66.666%, 92% 70.4%, 84% 70.4%, 84% 66.666%, 75% 66.666%, 75% 55%, 71.8% 55%, 71.8% 45%, 75% 45%);
}

.intro-puzzle-09 {
  --p-origin: 12.5% 83.33%;
  --p-x: -43vw;
  --p-y: 37vh;
  --p-r: -9deg;
  --p-delay: 7.98s;
  clip-path: polygon(0 66.666%, 9% 66.666%, 9% 62.8%, 17% 62.8%, 17% 66.666%, 25% 66.666%, 25% 79%, 28.2% 79%, 28.2% 88%, 25% 88%, 25% 100%, 0 100%);
}

.intro-puzzle-10 {
  --p-origin: 37.5% 83.33%;
  --p-x: -10vw;
  --p-y: 46vh;
  --p-r: 10deg;
  --p-delay: 8.3s;
  clip-path: polygon(25% 66.666%, 34% 66.666%, 34% 70.4%, 42% 70.4%, 42% 66.666%, 50% 66.666%, 50% 79%, 46.8% 79%, 46.8% 88%, 50% 88%, 50% 100%, 25% 100%, 25% 88%, 28.2% 88%, 28.2% 79%, 25% 79%);
}

.intro-puzzle-11 {
  --p-origin: 62.5% 83.33%;
  --p-x: 23vw;
  --p-y: 43vh;
  --p-r: -8deg;
  --p-delay: 8.62s;
  clip-path: polygon(50% 66.666%, 59% 66.666%, 59% 62.8%, 67% 62.8%, 67% 66.666%, 75% 66.666%, 75% 79%, 78.2% 79%, 78.2% 88%, 75% 88%, 75% 100%, 50% 100%, 50% 88%, 46.8% 88%, 46.8% 79%, 50% 79%);
}

.intro-puzzle-12 {
  --p-origin: 87.5% 83.33%;
  --p-x: 47vw;
  --p-y: 34vh;
  --p-r: 11deg;
  --p-delay: 8.94s;
  clip-path: polygon(75% 66.666%, 84% 66.666%, 84% 70.4%, 92% 70.4%, 92% 66.666%, 100% 66.666%, 100% 100%, 75% 100%, 75% 88%, 78.2% 88%, 78.2% 79%, 75% 79%);
}

.intro-puzzle-01 { clip-path: url(#intro-puzzle-01-clip); }
.intro-puzzle-02 { clip-path: url(#intro-puzzle-02-clip); }
.intro-puzzle-03 { clip-path: url(#intro-puzzle-03-clip); }
.intro-puzzle-04 { clip-path: url(#intro-puzzle-04-clip); }
.intro-puzzle-05 { clip-path: url(#intro-puzzle-05-clip); }
.intro-puzzle-06 { clip-path: url(#intro-puzzle-06-clip); }
.intro-puzzle-07 { clip-path: url(#intro-puzzle-07-clip); }
.intro-puzzle-08 { clip-path: url(#intro-puzzle-08-clip); }
.intro-puzzle-09 { clip-path: url(#intro-puzzle-09-clip); }
.intro-puzzle-10 { clip-path: url(#intro-puzzle-10-clip); }
.intro-puzzle-11 { clip-path: url(#intro-puzzle-11-clip); }
.intro-puzzle-12 { clip-path: url(#intro-puzzle-12-clip); }

.pacala-intro.is-playing .intro-puzzle-piece {
  animation: introPuzzlePieceV5 1.58s var(--p-delay) cubic-bezier(0.2, 0.72, 0.2, 1.08) both;
}

.pacala-intro.is-playing .intro-construction {
  animation: introConstructionPuzzleV5 8.7s 5.3s ease both;
}

.pacala-intro.is-playing .intro-construction::before {
  animation: introPuzzleGuideV5 7.2s 5.32s ease both;
}

.pacala-intro.is-playing .intro-construction-caption {
  animation: introConstructionCaption 6.6s 5.55s ease both;
}

.pacala-intro.is-playing .intro-magic-particles i {
  animation: introMagicMote 3.8s 5.8s ease-in-out both;
}

.pacala-intro.is-playing .intro-magic-particles i:nth-child(2n) {
  animation-delay: 6.7s;
  animation-duration: 4.1s;
}

.pacala-intro.is-playing .intro-magic-particles i:nth-child(3n) {
  animation-delay: 7.55s;
  animation-duration: 3.75s;
}

.pacala-intro.is-playing .intro-room {
  animation: introRoomPuzzleFinalV5 13.35s cubic-bezier(0.7, 0, 0.16, 1) both;
}

.pacala-intro.is-playing .intro-final {
  animation: introFinalIn 820ms 12.15s ease-out both;
}

@keyframes introGearAssemblyV5 {
  0% {
    opacity: 0;
    transform: translate(78px, -15px) rotate(118deg) scale(0.48);
  }
  34% {
    opacity: 1;
    transform: translate(-3px, 2px) rotate(-9deg) scale(1.06);
  }
  48%, 76% {
    opacity: 1;
    transform: translate(0) rotate(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(72px, -22px) rotate(82deg) scale(0.68);
  }
}

@keyframes introPuzzlePieceV5 {
  0% {
    opacity: 0;
    filter: saturate(0.55) brightness(0.52) blur(4px) drop-shadow(0 0 16px rgba(141, 213, 223, 0.86));
    transform: translate(var(--p-x), var(--p-y)) rotate(var(--p-r)) scale(0.52);
  }
  58% {
    opacity: 1;
    filter: saturate(0.9) brightness(0.9) blur(0) drop-shadow(0 0 18px rgba(141, 213, 223, 0.9));
    transform: translate(0, -7px) rotate(1.2deg) scale(1.025);
  }
  78% {
    transform: translate(0, 3px) rotate(-0.45deg) scale(0.995);
  }
  100% {
    opacity: 1;
    filter: saturate(0.9) brightness(0.84) blur(0) drop-shadow(0 0 0 rgba(141, 213, 223, 0));
    transform: translate(0) rotate(0) scale(1);
  }
}

@keyframes introConstructionPuzzleV5 {
  0% { opacity: 0; transform: scale(1.035); }
  6%, 63% { opacity: 1; transform: scale(1); }
  84%, 100% { opacity: 0; transform: scale(1.018); }
}

@keyframes introPuzzleGuideV5 {
  0% { opacity: 0; transform: scale(1.025); }
  10%, 70% { opacity: 0.075; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.01); }
}

@keyframes introRoomPuzzleFinalV5 {
  0%, 77% { opacity: 0; clip-path: inset(5% 4% round 30px); transform: scale(1.055); }
  87% { opacity: 1; clip-path: inset(1.5% 1% round 22px); transform: scale(1.025); }
  94%, 100% { opacity: 1; clip-path: inset(0 round 0); transform: scale(1.015); }
}

/* Diorama scene: the puzzle now assembles a focused Pacala training restaurant. */
.pacala-intro .intro-construction {
  background:
    radial-gradient(circle at 50% 48%, rgba(141, 213, 223, 0.2), transparent 38%),
    linear-gradient(155deg, #244a83 0%, #183e72 46%, #0c274a 100%);
}

.pacala-intro .intro-construction::before {
  inset: 50% auto auto 50%;
  width: min(1280px, 98vw, 126vh);
  aspect-ratio: 3 / 2;
  background: url("./pacala-academy-diorama-v2.png") center / contain no-repeat;
  filter: grayscale(0.28) brightness(0.55) contrast(1.08) blur(0.6px);
  transform: translate(-50%, -54%);
}

.pacala-intro .intro-room-build {
  inset: 50% auto auto 50%;
  width: min(1280px, 98vw, 126vh);
  height: auto;
  aspect-ratio: 3 / 2;
  overflow: visible;
  transform: translate(-50%, -54%);
}

.pacala-intro .intro-puzzle-piece {
  object-fit: contain;
  filter: none;
}

.pacala-intro .intro-room {
  background:
    radial-gradient(circle at 50% 44%, rgba(141, 213, 223, 0.18), transparent 41%),
    linear-gradient(155deg, #244a83 0%, #183e72 48%, #0a2444 100%);
}

.pacala-intro .intro-room::after {
  background:
    linear-gradient(180deg, rgba(5, 22, 45, 0.05), transparent 48%, rgba(5, 18, 37, 0.44)),
    radial-gradient(circle at 50% 46%, transparent 38%, rgba(4, 17, 34, 0.24) 100%);
}

.pacala-intro .intro-room img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(1280px, 98vw, 126vh);
  height: auto;
  max-width: none;
  object-fit: contain;
  object-position: center;
  transform: translate(-50%, -54%);
  filter: drop-shadow(0 30px 58px rgba(2, 12, 28, 0.34));
}

.pacala-intro .intro-scene-logo {
  position: absolute;
  z-index: 6;
  top: clamp(20px, 4.5vh, 48px);
  left: 50%;
  display: grid;
  place-items: center;
  width: clamp(260px, 23vw, 340px);
  padding: 14px 24px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background: rgba(248, 251, 252, 0.94);
  box-shadow: 0 16px 40px rgba(5, 19, 38, 0.2);
  opacity: 0;
  transform: translate(-50%, -52px) scale(0.82);
  backdrop-filter: blur(14px);
}

.pacala-intro .intro-scene-logo img {
  display: block;
  width: 100%;
  height: auto;
}

.pacala-intro.is-playing .intro-scene-logo {
  animation: introSceneLogoV1 1.12s 12.78s cubic-bezier(0.2, 0.72, 0.2, 1.12) both;
}

.pacala-intro .intro-staff-layer {
  position: absolute;
  z-index: 4;
  top: 50%;
  left: 50%;
  width: min(1280px, 98vw, 126vh);
  height: auto;
  aspect-ratio: 3 / 2;
  pointer-events: none;
  transform: translate(-50%, -54%);
}

.pacala-intro .intro-staff-person {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  opacity: 0;
  will-change: transform, opacity, filter;
}

.pacala-intro .intro-staff-waiter {
  transform-origin: 18% 56%;
  -webkit-mask-image: radial-gradient(ellipse 6.5% 20% at 18% 56%, #000 58%, transparent 78%);
  mask-image: radial-gradient(ellipse 6.5% 20% at 18% 56%, #000 58%, transparent 78%);
}

.pacala-intro .intro-staff-bartender {
  transform-origin: 75% 43%;
  -webkit-mask-image: radial-gradient(ellipse 6% 16% at 75% 43%, #000 58%, transparent 80%);
  mask-image: radial-gradient(ellipse 6% 16% at 75% 43%, #000 58%, transparent 80%);
}

.pacala-intro .intro-staff-manager {
  transform-origin: 49.5% 58%;
  -webkit-mask-image: radial-gradient(ellipse 4.7% 18% at 49.5% 58%, #000 60%, transparent 82%);
  mask-image: radial-gradient(ellipse 4.7% 18% at 49.5% 58%, #000 60%, transparent 82%);
}

.pacala-intro .intro-staff-owner {
  transform-origin: 56.5% 60%;
  -webkit-mask-image: radial-gradient(ellipse 4.7% 19% at 56.5% 60%, #000 60%, transparent 82%);
  mask-image: radial-gradient(ellipse 4.7% 19% at 56.5% 60%, #000 60%, transparent 82%);
}

.pacala-intro .intro-role-label {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 999px;
  color: #244a83;
  background: rgba(249, 252, 252, 0.94);
  box-shadow: 0 10px 24px rgba(5, 20, 40, 0.24);
  font-size: clamp(0.54rem, 0.72vw, 0.68rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0;
  backdrop-filter: blur(12px);
}

.pacala-intro .intro-role-label::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #72adb5;
  box-shadow: 0 0 0 4px rgba(114, 173, 181, 0.16);
}

.pacala-intro .intro-role-waiter { top: 67%; left: 12%; }
.pacala-intro .intro-role-bartender { top: 52%; left: 72%; }
.pacala-intro .intro-role-manager { top: 72%; left: 42%; }
.pacala-intro .intro-role-owner { top: 73%; left: 56%; }
.pacala-intro .intro-role-ai {
  top: 22%;
  left: 44%;
  color: #0b5a68;
  border-color: rgba(141, 213, 223, 0.9);
  background: rgba(237, 251, 253, 0.96);
  box-shadow: 0 10px 28px rgba(7, 82, 95, 0.3);
}

.pacala-intro .intro-role-ai::before {
  background: #43b9c8;
  box-shadow: 0 0 0 4px rgba(67, 185, 200, 0.18), 0 0 16px rgba(67, 185, 200, 0.72);
}

.pacala-intro.is-playing .intro-staff-waiter { animation: introStaffArriveV1 760ms 10.72s cubic-bezier(0.2, 0.72, 0.2, 1.15) both; }
.pacala-intro.is-playing .intro-staff-bartender { animation: introStaffArriveV1 760ms 10.96s cubic-bezier(0.2, 0.72, 0.2, 1.15) both; }
.pacala-intro.is-playing .intro-staff-manager { animation: introStaffArriveV1 760ms 11.2s cubic-bezier(0.2, 0.72, 0.2, 1.15) both; }
.pacala-intro.is-playing .intro-staff-owner { animation: introStaffArriveV1 760ms 11.44s cubic-bezier(0.2, 0.72, 0.2, 1.15) both; }
.pacala-intro.is-playing .intro-role-waiter { animation: introRoleLabelV1 560ms 11.12s ease-out both; }
.pacala-intro.is-playing .intro-role-bartender { animation: introRoleLabelV1 560ms 11.36s ease-out both; }
.pacala-intro.is-playing .intro-role-manager { animation: introRoleLabelV1 560ms 11.6s ease-out both; }
.pacala-intro.is-playing .intro-role-owner { animation: introRoleLabelV1 560ms 11.84s ease-out both; }
.pacala-intro.is-playing .intro-role-ai { animation: introRoleLabelV1 560ms 12.08s ease-out both; }

.pacala-intro.is-playing .intro-final {
  animation: introFinalIn 820ms 14s ease-out both;
}

.intro-puzzle-01 { --p-x: -29vw; --p-y: -19vh; --p-r: -8deg; }
.intro-puzzle-02 { --p-x: -8vw; --p-y: -27vh; --p-r: 6deg; }
.intro-puzzle-03 { --p-x: 9vw; --p-y: -27vh; --p-r: -6deg; }
.intro-puzzle-04 { --p-x: 29vw; --p-y: -18vh; --p-r: 8deg; }
.intro-puzzle-05 { --p-x: -33vw; --p-y: -1vh; --p-r: 7deg; }
.intro-puzzle-06 { --p-x: -17vw; --p-y: 11vh; --p-r: -6deg; }
.intro-puzzle-07 { --p-x: 16vw; --p-y: 12vh; --p-r: 6deg; }
.intro-puzzle-08 { --p-x: 33vw; --p-y: 1vh; --p-r: -8deg; }
.intro-puzzle-09 { --p-x: -29vw; --p-y: 22vh; --p-r: -7deg; }
.intro-puzzle-10 { --p-x: -9vw; --p-y: 29vh; --p-r: 7deg; }
.intro-puzzle-11 { --p-x: 10vw; --p-y: 29vh; --p-r: -6deg; }
.intro-puzzle-12 { --p-x: 29vw; --p-y: 22vh; --p-r: 8deg; }

@keyframes introPuzzleGuideV5 {
  0% { opacity: 0; transform: translate(-50%, -54%) scale(1.025); }
  10%, 70% { opacity: 0.1; transform: translate(-50%, -54%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -54%) scale(1.01); }
}

@keyframes introSceneLogoV1 {
  0% { opacity: 0; filter: blur(5px); transform: translate(-50%, -52px) scale(0.82) rotate(-1.5deg); }
  68% { opacity: 1; filter: blur(0); transform: translate(-50%, 5px) scale(1.035) rotate(0.3deg); }
  84% { opacity: 1; filter: blur(0); transform: translate(-50%, -2px) scale(0.99) rotate(0); }
  100% { opacity: 1; filter: blur(0); transform: translate(-50%, 0) scale(1) rotate(0); }
}

@keyframes introStaffArriveV1 {
  0% { opacity: 0; filter: blur(4px) brightness(1.2); transform: translateY(-24px) scale(0.84); }
  68% { opacity: 1; filter: blur(0) brightness(1.04); transform: translateY(3px) scale(1.035); }
  100% { opacity: 1; filter: blur(0) brightness(1); transform: translateY(0) scale(1); }
}

@keyframes introRoleLabelV1 {
  0% { opacity: 0; transform: translateY(8px) scale(0.9); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 820px) {
  .pacala-intro .intro-room-build,
  .pacala-intro .intro-construction::before,
  .pacala-intro .intro-room img,
  .pacala-intro .intro-staff-layer {
    width: min(98vw, 116vh);
    transform: translate(-50%, -62%);
  }

  .pacala-intro .intro-final {
    bottom: 6%;
  }
}

@media (max-width: 520px) {
  .pacala-intro .intro-scene-logo {
    top: 16px;
    left: 50%;
    width: min(220px, 62vw);
    padding: 11px 17px;
    transform: translate(-50%, -44px) scale(0.82);
  }

  .pacala-intro.is-playing .intro-scene-logo {
    animation-name: introSceneLogoMobileV1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pacala-intro .intro-staff-person,
  .pacala-intro .intro-role-label {
    opacity: 1;
    transform: none;
  }

  .pacala-intro .intro-scene-logo {
    opacity: 1;
    transform: translateX(-50%);
  }
}

@keyframes introSceneLogoMobileV1 {
  0% { opacity: 0; filter: blur(5px); transform: translate(-50%, -44px) scale(0.82); }
  68% { opacity: 1; filter: blur(0); transform: translate(-50%, 5px) scale(1.035); }
  84% { opacity: 1; filter: blur(0); transform: translate(-50%, -2px) scale(0.99); }
  100% { opacity: 1; filter: blur(0); transform: translate(-50%, 0) scale(1); }
}
