/* ==========================================================================
   Tuemmeler — Modern Bauhaus meets Tropical Minimalism
   ========================================================================== */

:root {
  --bg: #F8F7F4;
  --bg-alt: #F1EFEA;
  --ink: #1A1A1A;
  --ink-soft: #4A4A48;
  --ink-mute: #6E6C67;
  --prussian: #003153;
  --prussian-deep: #00243D;
  --terracotta: #C85A32;
  --ochre: #D9A441;
  --stone: #E2DFD7;
  --white: #FFFFFF;

  --font-head: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(72px, 10vw, 140px);
  --radius: 2px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --nav-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 3px; }

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.5rem, 6vw, 4.75rem); }
h2 { font-size: clamp(2rem, 4vw, 3.25rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1.075rem, 1.4vw, 1.25rem); color: var(--ink-soft); max-width: 58ch; }
em, .de { font-style: italic; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }
.section--alt { background: var(--bg-alt); }
.section--tight { padding: calc(var(--section) * .6) 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-size: .8rem; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase; color: var(--terracotta);
  margin-bottom: 20px;
}
.eyebrow::before { content: ""; width: 10px; height: 10px; background: currentColor; }
.eyebrow--circle::before { border-radius: 50%; }

.section-head { display: grid; gap: 24px; margin-bottom: clamp(40px, 6vw, 72px); }
@media (min-width: 1024px) {
  .section-head--split { grid-template-columns: 1fr 1fr; align-items: end; }
  .section-head--split .lead { justify-self: end; }
}

.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 10px 16px; z-index: 200; }
.skip-link:focus { left: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 28px; border: 1px solid transparent; border-radius: var(--radius);
  font-family: var(--font-head); font-weight: 500; font-size: 1rem; letter-spacing: .01em;
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease);
}
.btn svg { width: 18px; height: 18px; transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--primary { background: var(--prussian); color: var(--bg); }
.btn--primary:hover { background: var(--ink); }
.btn--accent { background: var(--terracotta); color: var(--white); }
.btn--accent:hover { background: #A94824; }
.btn--ghost { border-color: var(--ink); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--bg); }
.btn--light { background: var(--bg); color: var(--prussian); }
.btn--light:hover { background: var(--white); }
.btn--outline-light { border-color: rgba(248,247,244,.5); color: var(--bg); }
.btn--outline-light:hover { border-color: var(--bg); background: rgba(248,247,244,.08); }
.btn--pill { border-radius: 999px; padding: 11px 22px; font-size: .925rem; }
.btn--block { width: 100%; justify-content: center; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 500; color: var(--prussian);
  border-bottom: 1px solid currentColor; padding-bottom: 2px;
  transition: gap .35s var(--ease), color .35s var(--ease);
}
.link-arrow:hover { gap: 14px; color: var(--terracotta); }

/* ---------- Navbar ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--nav-h);
  transition: background .4s var(--ease), box-shadow .4s var(--ease), backdrop-filter .4s var(--ease);
}
.nav.is-scrolled {
  background: rgba(248, 247, 244, .78);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 1px 0 var(--stone);
}
.nav__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand__mark { width: 34px; height: 34px; flex: none; }
.brand__word { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; letter-spacing: .22em; }
.nav__links { display: none; list-style: none; margin: 0; padding: 0; gap: 36px; }
.nav__links a {
  position: relative; font-size: .95rem; font-weight: 500; color: var(--ink-soft); padding: 6px 0;
  transition: color .3s var(--ease);
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1.5px; width: 100%;
  background: var(--terracotta); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease);
}
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--ink); }
.nav__links a:hover::after, .nav__links a[aria-current="page"]::after { transform: scaleX(1); }
.nav__cta { display: none; }
.nav__cta.btn--primary { background: var(--ink); }
.nav__cta.btn--primary:hover { background: var(--prussian); }

.nav__toggle {
  width: 44px; height: 44px; border: 1px solid var(--stone); background: transparent; border-radius: 50%;
  display: grid; place-items: center; position: relative; z-index: 120;
}
.nav__toggle span, .nav__toggle span::before, .nav__toggle span::after {
  display: block; width: 18px; height: 1.5px; background: var(--ink); position: relative; transition: transform .35s var(--ease), background .2s;
}
.nav__toggle span::before, .nav__toggle span::after { content: ""; position: absolute; left: 0; }
.nav__toggle span::before { top: -6px; }
.nav__toggle span::after { top: 6px; }
.nav__toggle[aria-expanded="true"] span { background: transparent; }
.nav__toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 110; background: var(--bg);
  padding: calc(var(--nav-h) + 32px) var(--gutter) 40px;
  display: flex; flex-direction: column; justify-content: space-between;
  opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility .4s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; }
.mobile-menu ul { list-style: none; margin: 0; padding: 0; }
.mobile-menu li { border-bottom: 1px solid var(--stone); }
.mobile-menu li a {
  display: flex; justify-content: space-between; align-items: center; padding: 20px 0;
  font-family: var(--font-head); font-size: 1.9rem; font-weight: 500;
}
.mobile-menu li a[aria-current="page"] { color: var(--terracotta); }
body.menu-open { overflow: hidden; }

@media (min-width: 1024px) {
  .nav__links { display: flex; }
  .nav__cta { display: inline-flex; }
  .nav__toggle, .mobile-menu { display: none; }
}

/* ---------- Geometry accents ---------- */
.geo { position: absolute; pointer-events: none; }
.geo--circle { border-radius: 50%; }
.geo--quarter { border-radius: 100% 0 0 0; }
.geo--half { border-radius: 999px 999px 0 0; }

/* ---------- Hero (home) ---------- */
.hero { position: relative; padding: calc(var(--nav-h) + clamp(40px, 7vw, 96px)) 0 clamp(64px, 8vw, 112px); overflow: hidden; }
.hero__grid { display: grid; gap: 56px; align-items: center; }
.hero h1 { max-width: 14ch; }
.hero h1 .accent { color: var(--prussian); }
.hero__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 36px; }
.hero__meta { display: flex; gap: 32px; margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--stone); flex-wrap: wrap; }
.hero__meta div { font-size: .9rem; color: var(--ink-mute); }
.hero__meta strong { display: block; font-family: var(--font-head); font-size: 1.6rem; color: var(--ink); font-weight: 600; }

.hero__visual { position: relative; aspect-ratio: 4 / 5; max-width: 560px; width: 100%; justify-self: center; }
.hero__visual .hero__arch {
  position: absolute; inset: 0 0 0 12%; border-radius: 999px 999px 0 0; overflow: hidden; background: var(--stone);
}
.hero__arch img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.9) sepia(.08); }
.hero__visual .geo--circle { width: 30%; aspect-ratio: 1; background: var(--terracotta); left: 0; bottom: 12%; mix-blend-mode: multiply; }
.hero__visual .geo--sq { width: 18%; aspect-ratio: 1; background: var(--prussian); right: -4%; top: 8%; }
.hero__visual .geo--line { left: 4%; top: 18%; width: 1px; height: 50%; background: var(--ink); }
.hero__badge {
  position: absolute; right: 0; bottom: 6%; background: var(--bg); padding: 16px 20px; border: 1px solid var(--stone);
  font-size: .85rem; display: flex; align-items: center; gap: 12px; box-shadow: 0 20px 40px -24px rgba(0,0,0,.25);
}
.hero__badge b { font-family: var(--font-head); font-size: 1.05rem; display: block; color: var(--ink); }
.hero__badge .dot { width: 10px; height: 10px; border-radius: 50%; background: #3BA55C; box-shadow: 0 0 0 4px rgba(59,165,92,.18); flex: none; }

@media (min-width: 1024px) {
  .hero__grid { grid-template-columns: 7fr 5fr; }
  .hero__visual { justify-self: end; }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; padding: calc(var(--nav-h) + clamp(48px, 8vw, 110px)) 0 clamp(48px, 7vw, 96px); border-bottom: 1px solid var(--stone); overflow: hidden; }
.page-hero h1 { max-width: 16ch; }
.page-hero .geo--quarter { width: clamp(140px, 22vw, 300px); aspect-ratio: 1; background: var(--prussian); right: 0; bottom: 0; opacity: .95; }
.page-hero .geo--circle { width: clamp(50px, 7vw, 96px); aspect-ratio: 1; background: var(--terracotta); right: clamp(160px, 25vw, 340px); bottom: clamp(30px, 5vw, 70px); }
@media (max-width: 719px) { .page-hero .geo { opacity: .18; } }

/* ---------- Pillars ---------- */
.pillars { display: grid; border-top: 1px solid var(--ink); }
.pillar { padding: 40px 0; border-bottom: 1px solid var(--stone); position: relative; }
.pillar__num { font-family: var(--font-head); font-size: .85rem; color: var(--ink-mute); letter-spacing: .1em; }
.pillar__icon { width: 52px; height: 52px; margin: 28px 0 24px; }
.pillar p { color: var(--ink-soft); margin: 0; }
@media (min-width: 900px) {
  .pillars { grid-template-columns: repeat(3, 1fr); }
  .pillar { padding: 44px 40px 48px; border-bottom: 0; border-right: 1px solid var(--stone); }
  .pillar:first-child { padding-left: 0; }
  .pillar:last-child { border-right: 0; padding-right: 0; }
}

/* ---------- Roadmap ---------- */
.roadmap { position: relative; --progress: 0; }
.roadmap__track { position: absolute; background: var(--stone); }
.roadmap__fill { position: absolute; background: var(--prussian); transition: transform .15s linear; }
.roadmap__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 40px; position: relative; }
.milestone { position: relative; padding-left: 64px; }
.milestone__node {
  position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 50%;
  border: 1.5px solid var(--stone); background: var(--bg); display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 600; font-size: .9rem; color: var(--ink-mute);
  transition: background .5s var(--ease), border-color .5s var(--ease), color .5s var(--ease);
}
.milestone.is-active .milestone__node { background: var(--prussian); border-color: var(--prussian); color: var(--bg); }
.milestone__level { font-family: var(--font-head); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--terracotta); }
.milestone h3 { margin: 6px 0 10px; }
.milestone p { color: var(--ink-soft); font-size: .975rem; margin-bottom: 14px; }
.milestone__weeks { display: inline-block; font-size: .8rem; font-weight: 500; padding: 4px 12px; border: 1px solid var(--stone); border-radius: 999px; color: var(--ink-soft); }
.milestone { opacity: .45; transition: opacity .6s var(--ease); }
.milestone.is-active { opacity: 1; }

/* vertical (mobile) */
.roadmap__track, .roadmap__fill { left: 21px; top: 22px; bottom: 22px; width: 1.5px; }
.roadmap__fill { transform-origin: top; transform: scaleY(var(--progress)); }
@media (min-width: 900px) {
  .roadmap__list { grid-template-columns: repeat(4, 1fr); gap: 32px; }
  .milestone { padding-left: 0; padding-top: 72px; }
  .roadmap__track, .roadmap__fill { left: 22px; right: 22px; top: 21px; bottom: auto; width: auto; height: 1.5px; }
  .roadmap__fill { transform-origin: left; transform: scaleX(var(--progress)); }
}
.roadmap__cta { margin-top: 56px; }

/* ---------- Feature band (Prussian) ---------- */
.band { background: var(--prussian); color: var(--bg); position: relative; overflow: hidden; }
.band .eyebrow { color: var(--ochre); }
.band .lead { color: rgba(248,247,244,.78); }
.band__grid { display: grid; gap: 56px; }
.band__features { display: grid; gap: 0; border-top: 1px solid rgba(248,247,244,.2); }
.band__feature { display: grid; grid-template-columns: 56px 1fr; gap: 20px; padding: 28px 0; border-bottom: 1px solid rgba(248,247,244,.2); }
.band__feature svg { width: 40px; height: 40px; }
.band__feature h3 { margin-bottom: 6px; font-size: 1.25rem; }
.band__feature p { margin: 0; color: rgba(248,247,244,.72); font-size: .975rem; }
.band__stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; margin-top: 48px; }
.stat strong { display: block; font-family: var(--font-head); font-size: clamp(2.25rem, 4vw, 3.25rem); font-weight: 600; line-height: 1; letter-spacing: -.03em; }
.stat span { font-size: .9rem; color: rgba(248,247,244,.7); }
.band__image { position: relative; aspect-ratio: 4/5; overflow: hidden; border-radius: 0 0 0 999px; background: var(--prussian-deep); }
.band__image img { width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.band .geo--circle { width: 260px; height: 260px; border: 1.5px solid rgba(248,247,244,.12); right: -80px; top: -80px; }
@media (min-width: 1024px) {
  .band__grid { grid-template-columns: 6fr 5fr; gap: 96px; align-items: center; }
}

/* ---------- Cards (stories) ---------- */
.cards { display: grid; gap: 28px; }
@media (min-width: 720px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--white); border: 1px solid var(--stone); display: flex; flex-direction: column; transition: border-color .4s var(--ease), transform .5s var(--ease); }
.card:hover { border-color: #CFCABE; transform: translateY(-4px); }
.media { overflow: hidden; background: var(--stone); position: relative; }
.media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.media:hover img, .card:hover .media img { transform: scale(1.03); }
.card .media { aspect-ratio: 16/10; }
.card__tag { position: absolute; left: 16px; top: 16px; background: var(--bg); padding: 6px 12px; font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.card__body { padding: 28px; display: flex; flex-direction: column; flex: 1; }
.card__quote { font-family: var(--font-head); font-size: 1.15rem; line-height: 1.45; margin-bottom: 28px; flex: 1; }
.card__person { display: flex; align-items: center; gap: 14px; padding-top: 20px; border-top: 1px solid var(--stone); }
.avatar {
  width: 46px; height: 46px; border-radius: 50%; flex: none; display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 600; font-size: .95rem; color: var(--bg); background: var(--prussian);
}
.avatar--t { background: var(--terracotta); }
.avatar--i { background: var(--ink); }
.card__person b { display: block; font-family: var(--font-head); font-weight: 600; }
.card__person span { font-size: .85rem; color: var(--ink-mute); }

.metrics { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--ink); margin-top: 64px; }
.metric { padding: 28px 0; border-bottom: 1px solid var(--stone); }
.metric:nth-child(odd) { padding-right: 16px; }
.metric strong { display: block; font-family: var(--font-head); font-size: clamp(2rem, 4vw, 3rem); font-weight: 600; line-height: 1.1; color: var(--prussian); letter-spacing: -.03em; }
.metric span { font-size: .9rem; color: var(--ink-mute); }
@media (min-width: 900px) {
  .metrics { grid-template-columns: repeat(4, 1fr); }
  .metric { padding: 32px 28px; border-bottom: 0; border-right: 1px solid var(--stone); }
  .metric:first-child { padding-left: 0; }
  .metric:last-child { border-right: 0; }
}

/* ---------- CTA banner ---------- */
.cta-banner { background: var(--ink); color: var(--bg); position: relative; overflow: hidden; }
.cta-banner__grid { display: grid; gap: 48px; align-items: end; }
.cta-banner h2 { max-width: 16ch; }
.cta-banner .lead { color: rgba(248,247,244,.72); }
.cta-banner .geo--half { width: 220px; height: 110px; background: var(--terracotta); right: var(--gutter); top: 0; }
.batches { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(248,247,244,.2); }
.batches li { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; border-bottom: 1px solid rgba(248,247,244,.2); font-size: .95rem; }
.batches li b { font-family: var(--font-head); font-weight: 500; font-size: 1.05rem; }
.batches li span { color: rgba(248,247,244,.65); }
.batches .seats { font-size: .78rem; padding: 4px 10px; border: 1px solid rgba(248,247,244,.3); border-radius: 999px; white-space: nowrap; color: var(--bg); }
.batches .seats--low { border-color: var(--terracotta); color: #F0A585; }
.cta-banner__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 36px; }
@media (min-width: 1024px) { .cta-banner__grid { grid-template-columns: 1.1fr 1fr; gap: 96px; } }

/* ---------- Courses: sticky subnav ---------- */
.subnav { position: sticky; top: var(--nav-h); z-index: 50; background: rgba(248,247,244,.9); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--stone); }
.subnav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.subnav ul::-webkit-scrollbar { display: none; }
.subnav a {
  display: block; padding: 18px 16px; font-family: var(--font-head); font-weight: 500; font-size: .95rem; color: var(--ink-mute);
  white-space: nowrap; position: relative; transition: color .3s var(--ease);
}
.subnav a::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: -1px; height: 2px; background: var(--terracotta); transform: scaleX(0); transition: transform .4s var(--ease); }
.subnav a.is-active, .subnav a:hover { color: var(--ink); }
.subnav a.is-active::after { transform: scaleX(1); }

/* ---------- Level accordion cards ---------- */
.levels { display: grid; gap: 20px; }
.level { background: var(--white); border: 1px solid var(--stone); scroll-margin-top: calc(var(--nav-h) + 80px); transition: border-color .4s var(--ease); }
.level.is-open { border-color: var(--prussian); }
.level__head {
  width: 100%; background: none; border: 0; text-align: left; color: inherit;
  display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center; padding: 28px clamp(20px, 3vw, 40px);
}
.level__badge {
  width: 64px; height: 64px; display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; font-size: 1.35rem;
  background: var(--bg-alt); color: var(--prussian); transition: background .4s var(--ease), color .4s var(--ease);
}
.level:nth-child(2) .level__badge { border-radius: 50%; }
.level:nth-child(3) .level__badge { border-radius: 999px 999px 0 0; }
.level:nth-child(4) .level__badge { border-radius: 0 999px 999px 0; }
.level.is-open .level__badge { background: var(--prussian); color: var(--bg); }
.level__title small { display: block; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--terracotta); font-family: var(--font-head); font-weight: 500; margin-bottom: 4px; }
.level__title h3 { margin: 0; }
.level__title .meta { display: block; font-family: var(--font-body); font-size: .9rem; color: var(--ink-mute); margin-top: 6px; }
.level__icon { width: 40px; height: 40px; border: 1px solid var(--stone); border-radius: 50%; position: relative; flex: none; }
.level__icon::before, .level__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.5px; background: var(--ink); transform: translate(-50%, -50%); transition: transform .4s var(--ease); }
.level__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.level.is-open .level__icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.level__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s var(--ease); }
.level.is-open .level__panel { grid-template-rows: 1fr; }
.level__panel > div { overflow: hidden; }
.level__content { padding: 0 clamp(20px, 3vw, 40px) 40px; display: grid; gap: 32px; border-top: 1px solid var(--stone); padding-top: 32px; margin: 0 clamp(20px, 3vw, 40px); padding-left: 0; padding-right: 0; }
.level__content h4 { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-mute); font-weight: 500; margin-bottom: 14px; }
.modules { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.modules li { display: flex; gap: 12px; align-items: baseline; }
.modules li::before { content: ""; width: 7px; height: 7px; background: var(--terracotta); flex: none; transform: translateY(-2px); }
.facts { display: grid; gap: 14px; margin: 0; }
.facts div { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 12px; border-bottom: 1px dashed var(--stone); font-size: .95rem; }
.facts dt { color: var(--ink-mute); }
.facts dd { margin: 0; font-weight: 500; text-align: right; }
.outcome { background: var(--bg-alt); padding: 20px 24px; border-left: 3px solid var(--prussian); font-size: .975rem; }
.outcome b { font-family: var(--font-head); }
@media (min-width: 900px) { .level__content { grid-template-columns: 1.3fr 1fr; gap: 56px; } .level__content .outcome { grid-column: 1 / -1; } }

/* ---------- Exams ---------- */
.exams { display: grid; gap: 0; border-top: 1px solid var(--ink); }
.exam { padding: 36px 0; border-bottom: 1px solid var(--stone); }
.exam__logo { font-family: var(--font-head); font-weight: 700; font-size: 1.6rem; letter-spacing: -.02em; color: var(--prussian); margin-bottom: 4px; }
.exam small { color: var(--terracotta); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 500; }
.exam p { color: var(--ink-soft); margin: 14px 0 0; font-size: .975rem; }
@media (min-width: 900px) {
  .exams { grid-template-columns: repeat(3, 1fr); }
  .exam { padding: 40px 36px; border-bottom: 0; border-right: 1px solid var(--stone); }
  .exam:first-child { padding-left: 0; } .exam:last-child { border-right: 0; padding-right: 0; }
}

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--stone); background: var(--white); -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; min-width: 640px; font-size: .95rem; }
.table th, .table td { text-align: left; padding: 18px 24px; border-bottom: 1px solid var(--stone); vertical-align: top; }
.table thead th { font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; background: var(--bg-alt); }
.table thead th:not(:first-child) { color: var(--prussian); }
.table tbody th { font-weight: 500; color: var(--ink-mute); width: 28%; }
.table tr:last-child th, .table tr:last-child td { border-bottom: 0; }
.tag { display: inline-block; font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: var(--bg-alt); color: var(--ink-soft); }
.tag--open { background: #E4F1E8; color: #23663A; }
.tag--few { background: #F7E4DB; color: #9A3E1A; }
.tag--wait { background: var(--stone); color: var(--ink-soft); }

/* ---------- About ---------- */
.split { display: grid; gap: 56px; align-items: center; }
@media (min-width: 1024px) { .split { grid-template-columns: 1fr 1fr; gap: 96px; } .split--rev > :first-child { order: 2; } }
.story-media { position: relative; display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; }
.story-media .media:first-child { aspect-ratio: 3/4; border-radius: 999px 999px 0 0; }
.story-media .media:last-child { aspect-ratio: 3/4; align-self: end; margin-bottom: -40px; }
.story-media figcaption { font-size: .8rem; color: var(--ink-mute); margin-top: 8px; }
.story-timeline { list-style: none; margin: 32px 0 0; padding: 0; border-top: 1px solid var(--stone); }
.story-timeline li { display: grid; grid-template-columns: 80px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--stone); font-size: .95rem; }
.story-timeline b { font-family: var(--font-head); color: var(--prussian); }

.skills { display: grid; gap: 0; border-top: 1px solid var(--ink); border-left: 1px solid var(--stone); }
@media (min-width: 640px) { .skills { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .skills { grid-template-columns: repeat(4, 1fr); } }
.skill { padding: 36px 28px 40px; border-right: 1px solid var(--stone); border-bottom: 1px solid var(--stone); background: var(--bg); transition: background .4s var(--ease); }
.skill:hover { background: var(--white); }
.skill__shape { width: 56px; height: 56px; margin-bottom: 32px; }
.skill h3 { margin-bottom: 2px; }
.skill .skill__langs { font-size: .85rem; color: var(--terracotta); font-weight: 500; letter-spacing: .06em; text-transform: uppercase; display: block; margin-bottom: 14px; }
.skill p { color: var(--ink-soft); font-size: .95rem; margin: 0; }

.faculty { display: grid; gap: 40px 28px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
@media (min-width: 900px) { .faculty { grid-template-columns: repeat(3, 1fr); gap: 56px 40px; } }
.person .media { aspect-ratio: 4/5; margin-bottom: 20px; }
.person:nth-child(3n+1) .media { border-radius: 999px 999px 0 0; }
.person h3 { font-size: 1.2rem; margin-bottom: 4px; }
.person .role { font-size: .9rem; color: var(--ink-mute); margin-bottom: 10px; }
.person .creds { display: flex; flex-wrap: wrap; gap: 6px; }

.mosaic { display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); }
.mosaic figure { margin: 0; position: relative; }
.mosaic .media { height: 100%; min-height: 200px; }
.mosaic figcaption {
  position: absolute; left: 0; bottom: 0; background: var(--bg); padding: 10px 16px; font-family: var(--font-head); font-weight: 500; font-size: .9rem;
}
.mosaic figcaption i { color: var(--ink-mute); font-weight: 400; font-family: var(--font-body); font-size: .8rem; display: block; font-style: italic; }
.mosaic .m-wide { grid-column: span 2; }
@media (min-width: 900px) {
  .mosaic { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; }
  .mosaic .m-tall { grid-row: span 2; }
  .mosaic .m-wide { grid-column: span 2; }
  .mosaic .media { min-height: 0; }
}

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 48px; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 1.25fr 1fr; gap: 72px; align-items: start; } }
.form-card { background: var(--white); border: 1px solid var(--stone); padding: clamp(24px, 4vw, 48px); }
.form-card h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.form-grid { display: grid; gap: 22px; margin-top: 28px; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }
.field label, .field legend { display: block; font-size: .85rem; font-weight: 500; margin-bottom: 8px; color: var(--ink-soft); }
.field label .req { color: var(--terracotta); }
.field input, .field select {
  width: 100%; padding: 14px 16px; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--bg); border: 1px solid var(--stone); border-radius: var(--radius); appearance: none;
  transition: border-color .3s var(--ease), background .3s var(--ease), box-shadow .3s var(--ease);
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%231A1A1A' stroke-width='1.5'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--prussian); background: var(--white); box-shadow: 0 0 0 3px rgba(0,49,83,.1); }
.field.has-error input, .field.has-error select { border-color: var(--terracotta); }
.field .error { display: none; font-size: .8rem; color: #A94824; margin-top: 6px; }
.field.has-error .error { display: block; }
fieldset.field { border: 0; padding: 0; margin: 0; min-width: 0; }
.segmented { position: relative; display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--stone); border-radius: var(--radius); background: var(--bg); padding: 4px; gap: 4px; }
.segmented input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.segmented label { margin: 0; text-align: center; padding: 11px 8px; cursor: pointer; font-size: .95rem; font-weight: 500; color: var(--ink-soft); border-radius: 1px; transition: background .3s var(--ease), color .3s var(--ease); }
.segmented input:checked + label { background: var(--prussian); color: var(--bg); }
.segmented input:focus-visible + label { outline: 2px solid var(--terracotta); outline-offset: 2px; }
.form-note { font-size: .8rem; color: var(--ink-mute); margin: 16px 0 0; text-align: center; }

.info-block { padding: 28px 0; border-bottom: 1px solid var(--stone); }
.info-block:first-child { padding-top: 0; }
.info-block h3 { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-mute); font-weight: 500; font-family: var(--font-head); margin-bottom: 12px; }
.info-block address { font-style: normal; font-size: 1.05rem; line-height: 1.6; }
.info-block .big { font-family: var(--font-head); font-size: 1.5rem; font-weight: 500; display: block; }
.map {
  position: relative; aspect-ratio: 16/10; margin-top: 20px; background: #EDEAE3; overflow: hidden; border: 1px solid var(--stone);
}
.map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.map__pin { position: absolute; left: 52%; top: 46%; transform: translate(-50%, -100%); }
.map__pin span { display: block; width: 26px; height: 26px; background: var(--terracotta); border-radius: 50% 50% 50% 0; transform: rotate(-45deg); box-shadow: 0 6px 14px -4px rgba(0,0,0,.35); }
.map__pin span::after { content: ""; position: absolute; inset: 8px; background: var(--bg); border-radius: 50%; }
.map__pulse { position: absolute; left: 52%; top: 46%; width: 60px; height: 60px; border-radius: 50%; background: rgba(200,90,50,.18); transform: translate(-50%, -50%); animation: pulse 2.6s var(--ease) infinite; }
@keyframes pulse { 0% { transform: translate(-50%,-50%) scale(.3); opacity: 1; } 100% { transform: translate(-50%,-50%) scale(1.6); opacity: 0; } }
.map__label { position: absolute; left: 12px; bottom: 12px; background: var(--bg); padding: 6px 12px; font-size: .78rem; font-weight: 500; }
.btn--wa { background: #1F7A4D; color: #fff; }
.btn--wa:hover { background: #17603C; }
.hours { display: grid; gap: 8px; font-size: .95rem; margin: 0; }
.hours div { display: flex; justify-content: space-between; }
.hours dt { color: var(--ink-mute); }
.hours dd { margin: 0; font-weight: 500; }

/* FAQ */
.faq { border-top: 1px solid var(--ink); max-width: 880px; }
.faq details { border-bottom: 1px solid var(--stone); }
.faq summary {
  list-style: none; cursor: pointer; padding: 26px 56px 26px 0; position: relative;
  font-family: var(--font-head); font-size: clamp(1.05rem, 1.6vw, 1.25rem); font-weight: 500;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after, .faq summary::before { content: ""; position: absolute; right: 12px; top: 50%; width: 16px; height: 1.5px; background: var(--ink); transition: transform .4s var(--ease); }
.faq summary::before { transform: rotate(90deg); }
.faq details[open] summary::before { transform: rotate(0); }
.faq details[open] summary { color: var(--prussian); }
.faq details p { padding: 0 56px 26px 0; color: var(--ink-soft); margin: 0; }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: var(--gutter); visibility: hidden; opacity: 0; transition: opacity .4s var(--ease), visibility .4s; }
.modal.is-open { visibility: visible; opacity: 1; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(26,26,26,.55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.modal__dialog { position: relative; background: var(--bg); max-width: 460px; width: 100%; padding: 48px 40px 40px; text-align: center; transform: translateY(20px); transition: transform .5s var(--ease); overflow: hidden; }
.modal.is-open .modal__dialog { transform: translateY(0); }
.modal__dialog::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--prussian) 0 60%, var(--terracotta) 60% 85%, var(--ochre) 85%); }
.modal__check { width: 64px; height: 64px; border-radius: 50%; background: var(--prussian); color: var(--bg); display: grid; place-items: center; margin: 0 auto 24px; }
.modal__check svg { width: 28px; height: 28px; }
.modal h2 { font-size: 1.75rem; }
.modal p { color: var(--ink-soft); }
.demo-pill { display: inline-block; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; padding: 4px 10px; border: 1px dashed var(--terracotta); color: #A94824; border-radius: 999px; margin-bottom: 24px; }
.modal__close { position: absolute; right: 14px; top: 14px; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--stone); background: transparent; font-size: 1.2rem; line-height: 1; color: var(--ink); }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: rgba(248,247,244,.72); padding: clamp(64px, 8vw, 96px) 0 0; font-size: .95rem; }
.footer a { transition: color .3s var(--ease); }
.footer a:hover { color: var(--bg); }
.footer__grid { display: grid; gap: 48px; padding-bottom: 64px; }
@media (min-width: 720px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer__grid { grid-template-columns: 1.6fr 1fr 1.2fr 1fr; gap: 56px; } }
.footer .brand { color: var(--bg); margin-bottom: 20px; }
.footer h4 { font-family: var(--font-head); font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--bg); font-weight: 500; margin-bottom: 20px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.footer address { font-style: normal; line-height: 1.7; }
.socials { display: flex; gap: 10px; margin-top: 24px; }
.socials a { width: 40px; height: 40px; border: 1px solid rgba(248,247,244,.22); border-radius: 50%; display: grid; place-items: center; }
.socials a:hover { border-color: var(--bg); }
.socials svg { width: 16px; height: 16px; }
.footer__bar { border-top: 1px solid rgba(248,247,244,.14); padding: 24px 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .825rem; color: rgba(248,247,244,.5); }
.footer__disclaimer { display: inline-flex; align-items: center; gap: 8px; }
.footer__disclaimer::before { content: ""; width: 8px; height: 8px; background: var(--terracotta); }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* Image fallback (if a remote photo fails) */
.media.is-fallback { background: repeating-linear-gradient(135deg, var(--stone) 0 14px, var(--bg-alt) 14px 28px); }
.media.is-fallback img { visibility: hidden; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   MOTION v2 — animated Bauhaus geometry + Material-inspired UI
   (all loops are slow; everything is neutralised under prefers-reduced-motion)
   ========================================================================== */
:root {
  --spring: cubic-bezier(.3, 1.45, .55, 1);
  --emphasized: cubic-bezier(.2, 0, 0, 1);
}

/* ---------- Hero geometry ---------- */
.hero__visual .geo { transition: translate .9s var(--ease); }
.hero__visual .geo--circle {
  translate: calc(var(--px, 0) * 18px) calc(var(--py, 0) * 18px);
  animation: orbit 16s ease-in-out infinite;
}
.hero__visual .geo--sq {
  translate: calc(var(--px, 0) * -26px) calc(var(--py, 0) * -26px);
  animation: morphSquare 12s var(--emphasized) infinite;
}
.hero__visual .geo--line { transform-origin: top; animation: drawLine 1.4s var(--ease) .5s both; }
.hero__visual .hero__arch img { translate: calc(var(--px, 0) * -8px) calc(var(--py, 0) * -8px); scale: 1.04; transition: translate .9s var(--ease); }
.hero__badge { animation: floatY 6s ease-in-out infinite; }
@keyframes orbit {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(14px, -22px); }
  50% { transform: translate(30px, -6px); }
  75% { transform: translate(10px, 14px); }
}
@keyframes morphSquare {
  0%, 18% { transform: rotate(0deg); border-radius: 0; }
  30%, 45% { transform: rotate(90deg); border-radius: 50%; }
  58%, 72% { transform: rotate(180deg); border-radius: 50% 50% 0 0; }
  85%, 100% { transform: rotate(360deg); border-radius: 0; }
}
@keyframes drawLine { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ---------- Bauhaus ticker ---------- */
.ticker { overflow: hidden; border-block: 1px solid var(--stone); background: var(--bg); padding: 18px 0; }
.ticker__track { display: flex; width: max-content; animation: ticker 48s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__group { display: flex; align-items: center; gap: 36px; padding-right: 36px; }
.ticker__word { font-family: var(--font-head); font-size: 1.35rem; font-weight: 500; letter-spacing: -.01em; white-space: nowrap; }
.ticker__word i { color: var(--ink-mute); font-weight: 400; font-size: .95rem; margin-left: 6px; }
.t-shape { width: 18px; height: 18px; flex: none; display: block; }
.t-circle { border-radius: 50%; background: var(--terracotta); }
.t-square { background: var(--prussian); animation: spin 8s linear infinite; }
.t-half { border-radius: 18px 18px 0 0; height: 9px; background: var(--ochre); }
.t-quarter { border-radius: 100% 0 0 0; background: var(--prussian); }
.t-ring { border-radius: 50%; border: 2px solid var(--terracotta); }
@keyframes ticker { to { transform: translateX(-50%); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Page-hero geometry ---------- */
.page-hero .geo--quarter {
  transform-origin: 100% 100%;
  rotate: calc(var(--scroll, 0) * -28deg);
  animation: sweepIn 1.4s var(--emphasized) .15s both;
}
.page-hero .geo--circle {
  translate: calc(var(--scroll, 0) * -60px) calc(var(--scroll, 0) * 40px);
  animation: rollIn 1.6s var(--spring) .55s both, bob 7s ease-in-out 2.4s infinite;
}
@keyframes sweepIn { from { transform: rotate(-90deg); } to { transform: rotate(0); } }
@keyframes rollIn { from { transform: translate(260px, 120px) scale(.4); opacity: 0; } to { transform: none; } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

/* ---------- Skill cards (About) ---------- */
.skill { position: relative; }
.skill.reveal {
  transition: opacity .9s var(--ease) var(--d, 0s), transform .9s var(--ease) var(--d, 0s),
              translate .5s var(--emphasized), box-shadow .5s var(--ease), background .4s var(--ease);
}
.skill::before {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: var(--terracotta);
  transform: scaleX(0); transform-origin: left; transition: transform .6s var(--emphasized);
}
.skill:hover { translate: 0 -4px; box-shadow: 0 1px 2px rgba(0,49,83,.06), 0 18px 40px -20px rgba(0,49,83,.3); z-index: 1; }
.skill:hover::before { transform: scaleX(1); }
.skill .skill__langs { transition: letter-spacing .5s var(--emphasized); }
.skill:hover .skill__langs { letter-spacing: .12em; }

.skill__shape { overflow: visible; }
.skill__shape * { transform-box: fill-box; transform-origin: center; transition: transform .8s var(--spring) calc(var(--d, 0s) + .35s); }
.skill:hover .skill__shape * { transition-delay: 0s; }

/* Entrance: icon pieces assemble once the card is revealed */
:root:not(.no-js) .skill.reveal:not(.is-visible) .sk-hole  { transform: scale(0); }
:root:not(.no-js) .skill.reveal:not(.is-visible) .sk-quad  { transform: translate(26px, 26px); }
:root:not(.no-js) .skill.reveal:not(.is-visible) .sk-nib   { transform: scaleY(0); }
:root:not(.no-js) .skill.reveal:not(.is-visible) .sk-voice { transform: translateY(-26px); }

/* Listening: sound waves ripple out, the ear opening pulses */
.sk-wave { opacity: 0; vector-effect: non-scaling-stroke; }
.skill--listen:hover .sk-wave { animation: skWave 1.8s var(--ease) infinite; }
.skill--listen:hover .sk-wave--2 { animation-delay: .6s; }
.skill--listen:hover .sk-hole { animation: skHole 1.8s ease-in-out infinite; }
@keyframes skWave { 0% { transform: scale(1); opacity: .55; } 100% { transform: scale(1.75); opacity: 0; } }
@keyframes skHole { 0%, 100% { transform: scale(1); } 50% { transform: scale(.6); } }

/* Reading: the dark block scans the page clockwise, corner to corner */
.skill--read:hover .sk-quad { animation: skScan 2s var(--emphasized); }
@keyframes skScan {
  0%, 4%    { transform: translate(0, 0); }
  22%, 28%  { transform: translate(26px, 0); }
  46%, 52%  { transform: translate(26px, 26px); }
  70%, 76%  { transform: translate(0, 26px); }
  94%, 100% { transform: translate(0, 0); }
}

/* Writing: the inner stroke is drawn up from the baseline, the nib tilts */
.sk-nib { transform-origin: center bottom; }
.skill--write:hover .sk-nib { animation: skWrite 1s var(--spring); }
.skill--write .skill__shape { transform-origin: 50% 100%; transition: rotate .7s var(--spring); }
.skill--write:hover .skill__shape { rotate: -6deg; }
@keyframes skWrite { 0% { transform: scaleY(.1); } 100% { transform: scaleY(1); } }

/* Speaking: the voice dot bounces like syllables */
.skill--speak:hover .sk-voice { animation: skTalk 1.1s var(--ease); }
@keyframes skTalk {
  0%, 100% { transform: translateY(0); }
  18% { transform: translateY(-9px) scale(1.1); }
  36% { transform: translateY(0) scale(.92, 1.08); }
  56% { transform: translateY(-5px); }
  76% { transform: translateY(0); }
}

/* ---------- Band + CTA geometry ---------- */
.band .geo--circle { border: 1.5px dashed rgba(248,247,244,.18); animation: spin 60s linear infinite; }
.band::after {
  content: ""; position: absolute; width: 14px; height: 14px; border-radius: 50%; background: var(--terracotta);
  right: 40px; top: 40px; animation: orbitBig 22s linear infinite; pointer-events: none;
}
@keyframes orbitBig { from { transform: rotate(0) translateX(118px) rotate(0); } to { transform: rotate(360deg) translateX(118px) rotate(-360deg); } }
.cta-banner .geo--half { transform: translateY(-101%); transition: transform 1.6s var(--emphasized) .2s; }
.cta-banner.in-view .geo--half { transform: translateY(0); }

/* ---------- Roadmap pop ---------- */
.milestone__node { isolation: isolate; }
.milestone__node::after { content: ""; position: absolute; inset: -1.5px; border-radius: 50%; border: 1.5px solid var(--prussian); opacity: 0; z-index: -1; }
.milestone.is-active .milestone__node { animation: nodePop .6s var(--spring); }
.milestone.is-active .milestone__node::after { animation: nodeRing 1s var(--ease) .1s; }
@keyframes nodePop { 0% { transform: scale(1); } 45% { transform: scale(1.18); } 100% { transform: scale(1); } }
@keyframes nodeRing { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.9); opacity: 0; } }

/* ---------- Ripple ---------- */
.ripple-host { position: relative; overflow: hidden; isolation: isolate; }
.ripple {
  position: absolute; border-radius: 50%; pointer-events: none; background: currentColor; opacity: .22;
  transform: scale(0); animation: ripple .65s var(--emphasized) forwards; z-index: -1;
}
@keyframes ripple { to { transform: scale(1); opacity: 0; } }

/* ---------- Morphing, springy buttons ---------- */
.btn { transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), border-radius .45s var(--emphasized), transform .45s var(--spring), box-shadow .35s var(--ease); }
.btn:hover { border-radius: 28px; }
.btn:active { transform: scale(.96); transition-duration: .12s; }
.btn--primary:hover, .btn--accent:hover { box-shadow: 0 8px 22px -10px rgba(0,49,83,.55); }

/* ---------- Sliding indicators ---------- */
.nav__links { position: relative; }
.nav__links.has-indicator a::after { display: none; }
.nav__indicator, .subnav__indicator {
  position: absolute; bottom: 0; left: 0; height: 2px; background: var(--terracotta); border-radius: 2px; pointer-events: none;
  transition: transform .5s var(--emphasized), width .5s var(--emphasized), opacity .3s;
}
.nav__indicator { bottom: -1px; }
.subnav ul { position: relative; }
.subnav.has-indicator a::after { display: none; }
.subnav__indicator { bottom: 0; height: 3px; border-radius: 3px 3px 0 0; }

/* ---------- Segmented control: sliding thumb ---------- */
.segmented__thumb {
  position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 6px); background: var(--prussian); border-radius: 1px;
  transition: transform .45s var(--spring); z-index: 0;
}
.segmented:has(#m-online:checked) .segmented__thumb { transform: translateX(calc(100% + 4px)); }
.segmented label { position: relative; z-index: 1; }
.segmented input:checked + label { background: transparent; }

/* ---------- Floating labels (Material outlined) ---------- */
.field--float { position: relative; }
.field--float input, .field--float select { background-color: var(--white); padding-top: 16px; padding-bottom: 16px; }
.field--float label {
  position: absolute; left: 12px; top: 16px; margin: 0; padding: 0 5px; pointer-events: none; font-size: 1rem; line-height: 1.4;
  color: var(--ink-mute); background: var(--white); transform-origin: left top;
  white-space: nowrap; max-width: calc(100% - 24px); overflow: hidden; text-overflow: ellipsis;
  transition: transform .3s var(--emphasized), color .3s var(--ease);
}
.field--float input:focus + label,
.field--float input:not(:placeholder-shown) + label,
.field--float select + label { transform: translateY(-26px) scale(.78); }
.field--float input:focus + label, .field--float select:focus + label { color: var(--prussian); }
.field--float.has-error label { color: #A94824; }
.field--float input:focus, .field--float select:focus { box-shadow: 0 0 0 1px var(--prussian); }
.field.shake input, .field.shake select { animation: shake .42s var(--ease); }
@keyframes shake { 20% { transform: translateX(-6px); } 40% { transform: translateX(5px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(2px); } }

/* ---------- Cards: tonal elevation + tilt ---------- */
.card.reveal.is-visible { transition: opacity .9s var(--ease), transform .5s var(--emphasized), box-shadow .5s var(--ease), border-color .4s var(--ease); }
.card.reveal.is-visible:hover {
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-6px);
  box-shadow: 0 1px 2px rgba(0,49,83,.08), 0 18px 40px -18px rgba(0,49,83,.35);
}
.person .media { transition: border-radius .7s var(--emphasized); }
.person:hover .media { border-radius: 40px; }
.person:nth-child(3n+1):hover .media { border-radius: 999px 999px 40px 40px; }

/* ---------- FAB ---------- */
.fab {
  position: fixed; right: 16px; bottom: 16px; z-index: 90;
  display: inline-flex; align-items: center; height: 56px; padding: 0 16px;
  background: var(--terracotta); color: var(--white); border-radius: 18px;
  font-family: var(--font-head); font-weight: 500; white-space: nowrap; overflow: hidden;
  box-shadow: 0 6px 18px -6px rgba(200,90,50,.6), 0 2px 6px rgba(0,0,0,.12);
  transform: translateY(120%) scale(.6); opacity: 0; pointer-events: none;
  transition: transform .5s var(--spring), opacity .3s var(--ease), border-radius .4s var(--emphasized), background .3s;
}
.fab.is-shown { transform: none; opacity: 1; pointer-events: auto; }
.fab:hover { background: #A94824; border-radius: 28px; }
.fab svg { width: 24px; height: 24px; flex: none; }
.fab__label { max-width: 160px; margin-left: 10px; transition: max-width .45s var(--emphasized), margin .45s var(--emphasized), opacity .3s; }
.fab.is-collapsed .fab__label { max-width: 0; margin-left: 0; opacity: 0; }
@media (min-width: 1024px) { .fab { right: 32px; bottom: 32px; } }

/* ---------- Snackbar ---------- */
.snackbar {
  position: fixed; left: 50%; bottom: 24px; z-index: 320; display: flex; align-items: center; gap: 20px;
  width: max-content; max-width: calc(100vw - 32px); padding: 12px 12px 12px 20px; background: var(--ink); color: var(--bg);
  border-radius: 4px; font-size: .95rem; box-shadow: 0 10px 30px -10px rgba(0,0,0,.4);
  transform: translate(-50%, 160%); transition: transform .5s var(--spring);
}
.snackbar.is-shown { transform: translate(-50%, 0); }
.snackbar button { background: none; border: 0; color: #F0A585; font-family: var(--font-head); font-weight: 600; letter-spacing: .04em; padding: 8px 10px; border-radius: 4px; }

@media (hover: none), (pointer: coarse) {
  .card.reveal.is-visible:hover { transform: translateY(-4px); }
}

@media (prefers-reduced-motion: reduce) {
  .hero__visual .geo, .hero__visual .hero__arch img { translate: none !important; }
  .ticker__track, .t-square, .band .geo--circle, .band::after, .hero__badge, .skill__shape *,
  .hero__visual .geo--circle, .hero__visual .geo--sq, .page-hero .geo { animation: none !important; }
  .page-hero .geo--quarter, .page-hero .geo--circle { rotate: none !important; translate: none !important; }
  .cta-banner .geo--half { transform: none; }
  .skill:hover { translate: none; }
  .skill--write:hover .skill__shape { rotate: none; }
}

/* ==========================================================================
   MULTI-LANGUAGE v3 — dropdown nav, language grid, switchers, course tabs
   ========================================================================== */

/* ---------- Nav: Courses dropdown ---------- */
.nav__drop { position: relative; display: flex; align-items: center; gap: 4px; }
.nav__drop-btn {
  width: 22px; height: 22px; display: grid; place-items: center; padding: 0; border: 0; background: none; color: var(--ink-soft); border-radius: 50%;
}
.nav__drop-btn svg { width: 12px; height: 12px; transition: transform .35s var(--emphasized); }
.nav__drop:hover .nav__drop-btn svg, .nav__drop.is-open .nav__drop-btn svg { transform: rotate(180deg); }
.nav__menu {
  position: absolute; top: 100%; left: -20px; margin: 18px 0 0; padding: 8px; list-style: none; min-width: 260px;
  background: var(--bg); border: 1px solid var(--stone); box-shadow: 0 24px 48px -24px rgba(0,49,83,.35);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .3s var(--ease), transform .4s var(--emphasized), visibility .3s;
}
.nav__menu::before { content: ""; position: absolute; left: 0; right: 0; top: -20px; height: 20px; }
.nav__drop:hover .nav__menu, .nav__drop:focus-within .nav__menu, .nav__drop.is-open .nav__menu { opacity: 1; visibility: visible; transform: none; }
.nav__drop.is-closed .nav__menu { opacity: 0; visibility: hidden; transform: translateY(8px); }
.nav__menu a {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; color: var(--ink); font-size: .95rem;
  transition: background .25s var(--ease);
}
.nav__links .nav__menu a::after { display: none; }
.nav__menu a:hover, .nav__menu a:focus-visible { background: var(--bg-alt); }
.nav__menu small { margin-left: auto; font-size: .78rem; color: var(--ink-mute); font-weight: 400; }
.nav__menu-all { border-top: 1px solid var(--stone); margin-top: 6px; padding-top: 6px; }
.nav__menu-all a { color: var(--prussian); font-family: var(--font-head); font-weight: 500; }

/* Bauhaus glyph per language (shared) */
.lang-glyph { display: inline-block; flex: none; width: 14px; height: 14px; }
.lang-glyph--de { background: var(--prussian); }
.lang-glyph--fr { background: var(--terracotta); border-radius: 50%; }
.lang-glyph--es { background: var(--ochre); border-radius: 999px 999px 0 0; height: 7px; }
.lang-glyph--en { background: var(--ink); border-radius: 100% 0 0 0; }
.lang-glyph--ja { border: 2px solid var(--terracotta); border-radius: 50%; }

/* Mobile menu: language chips under Courses */
.mobile-menu { overflow-y: auto; }
.mobile-menu__langs { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 0 20px; }
.mobile-menu .mobile-menu__langs a {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--stone); border-radius: 999px;
  font-family: var(--font-body); font-size: .9rem; font-weight: 500;
}

/* ---------- Languages grid (home) ---------- */
.langs { display: grid; border-top: 1px solid var(--ink); border-left: 1px solid var(--stone); }
@media (min-width: 640px) { .langs { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .langs { grid-template-columns: repeat(5, 1fr); } }
.lang {
  position: relative; display: flex; flex-direction: column; padding: 32px 26px 30px; background: var(--bg);
  border-right: 1px solid var(--stone); border-bottom: 1px solid var(--stone); color: inherit;
}
.lang.reveal { transition: opacity .9s var(--ease) var(--d, 0s), transform .9s var(--ease) var(--d, 0s), background .4s var(--ease), translate .5s var(--emphasized), box-shadow .5s var(--ease); }
.lang::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 3px; background: var(--terracotta); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--emphasized); }
.lang:hover { background: var(--white); translate: 0 -4px; box-shadow: 0 18px 40px -20px rgba(0,49,83,.3); z-index: 1; }
.lang:hover::before, .lang:focus-visible::before { transform: scaleX(1); }
.lang__glyph { width: 48px; height: 48px; margin-bottom: 28px; overflow: visible; }
.lang__glyph * { transform-box: fill-box; transform-origin: center; transition: transform .7s var(--spring); }
.lang:hover .lang__glyph .g-move { transform: rotate(90deg); }
.lang:hover .lang__glyph .g-slide { transform: translateX(8px); }
.lang:hover .lang__glyph .g-scale { transform: scale(.7); }
.lang__native { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--terracotta); font-family: var(--font-head); font-weight: 500; }
.lang h3 { margin: 4px 0 12px; }
.lang p { color: var(--ink-soft); font-size: .95rem; margin-bottom: 20px; flex: 1; }
.lang__exams { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 24px; }
.lang__more { font-family: var(--font-head); font-weight: 500; color: var(--prussian); display: inline-flex; gap: 8px; transition: gap .35s var(--ease), color .35s var(--ease); }
.lang:hover .lang__more { gap: 14px; color: var(--terracotta); }

/* ---------- Language switcher (roadmap + course tabs) ---------- */
.lang-switch { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 48px; padding: 0; list-style: none; }
.lang-switch button {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px; border: 1px solid var(--stone); border-radius: 999px;
  background: var(--bg); color: var(--ink-soft); font-family: var(--font-head); font-weight: 500; font-size: .95rem;
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.lang-switch button:hover { border-color: var(--ink); color: var(--ink); }
.lang-switch button[aria-selected="true"], .lang-switch button[aria-pressed="true"] { background: var(--prussian); border-color: var(--prussian); color: var(--bg); }
.lang-switch button[aria-selected="true"] .lang-glyph--en, .lang-switch button[aria-pressed="true"] .lang-glyph--en,
.lang-switch button[aria-selected="true"] .lang-glyph--de, .lang-switch button[aria-pressed="true"] .lang-glyph--de { background: var(--bg); }
.lang-switch .lang-glyph { width: 12px; height: 12px; }
.lang-switch .lang-glyph--es { height: 6px; }

/* Roadmap content swap */
.roadmap__list { transition: opacity .3s var(--ease), transform .3s var(--ease); }
.roadmap.is-swapping .roadmap__list { opacity: 0; transform: translateY(8px); }
.roadmap__note { font-size: .9rem; color: var(--ink-mute); margin: 40px 0 0; max-width: 70ch; }
.milestone__node { font-size: .82rem; }

/* ---------- Stories: five cards (3 + 2) ---------- */
@media (min-width: 720px) and (max-width: 1023px) { .cards--five > :last-child { grid-column: 1 / -1; } .cards--five > :last-child .media { aspect-ratio: 21/9; } }
@media (min-width: 1024px) {
  .cards--five { grid-template-columns: repeat(6, 1fr); }
  .cards--five > * { grid-column: span 2; }
  .cards--five > :nth-child(4) { grid-column: 2 / span 2; }
  .cards--five > :nth-child(5) { grid-column: 4 / span 2; }
}

/* ---------- Courses: two-row subnav + tab panels ---------- */
.subnav__langs { padding: 12px 0 2px; overflow-x: auto; scrollbar-width: none; }
.subnav__langs::-webkit-scrollbar { display: none; }
.subnav .lang-switch { margin: 0; flex-wrap: nowrap; width: max-content; }
.subnav .lang-switch button { padding: 7px 15px; white-space: nowrap; font-size: .9rem; }
.subnav__levels[hidden] { display: none; }
.lang-panel[hidden] { display: none; }
.no-js .lang-panel[hidden] { display: block; }
.no-js .subnav__langs { display: none; }
.lang-panel { scroll-margin-top: calc(var(--nav-h) + 110px); }
.lang-panel + .lang-panel { border-top: 1px solid var(--stone); }
.lang-panel__head { display: grid; gap: 20px; margin-bottom: 48px; }
.lang-panel__head h2 { margin: 0; }
.lang-panel__head .lead { margin: 0; }
@media (min-width: 1024px) { .lang-panel__head { grid-template-columns: 1fr 1fr; align-items: end; } .lang-panel__head .lead { justify-self: end; } }
.level { scroll-margin-top: calc(var(--nav-h) + 130px); }
.level__badge { font-size: 1.15rem; text-align: center; line-height: 1.05; }
.level__badge--sm { font-size: .78rem; letter-spacing: -.01em; padding: 0 4px; }
.panel-exams { margin-top: clamp(56px, 7vw, 96px); scroll-margin-top: calc(var(--nav-h) + 130px); }
.panel-exams > h3 { font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--terracotta); font-weight: 500; margin-bottom: 20px; font-family: var(--font-head); }
.panel-note { margin-top: 28px; font-size: .9rem; color: var(--ink-mute); max-width: 75ch; }
.schedule-filter { margin-bottom: 24px; }
.schedule-filter button { padding: 8px 16px; font-size: .9rem; }
.table tr[hidden] { display: none; }
.skill .skill__langs { text-transform: none; letter-spacing: .02em; font-size: .85rem; }
.skill:hover .skill__langs { letter-spacing: .05em; }

@media (prefers-reduced-motion: reduce) {
  .lang:hover { translate: none; }
  .lang__glyph * { transform: none !important; }
}
