/* ==========================================================================
   t-lem.com — The League of Extraordinary Minds
   1. Fonts & tokens   2. Base   3. Components   4. Header & footer
   5. Home sections    6. Content pages          7. Motion & responsive
   ========================================================================== */

/* 1. Fonts & tokens ------------------------------------------------------ */

@font-face { font-family: "Bricolage Grotesque"; src: url("/assets/fonts/bricolage-latin.woff2") format("woff2"); font-weight: 200 800; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD; }
@font-face { font-family: "Bricolage Grotesque"; src: url("/assets/fonts/bricolage-latin-ext.woff2") format("woff2"); font-weight: 200 800; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113; }
@font-face { font-family: "Mulish"; src: url("/assets/fonts/mulish-latin.woff2") format("woff2"); font-weight: 200 1000; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD; }
@font-face { font-family: "Mulish"; src: url("/assets/fonts/mulish-latin-ext.woff2") format("woff2"); font-weight: 200 1000; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113; }
@font-face { font-family: "JetBrains Mono"; src: url("/assets/fonts/jetbrains-mono-latin.woff2") format("woff2"); font-weight: 100 800; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD; }
@font-face { font-family: "JetBrains Mono"; src: url("/assets/fonts/jetbrains-mono-latin-ext.woff2") format("woff2"); font-weight: 100 800; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113; }

:root {
  /* Brand: navy and cyan come straight from the logo. */
  --navy-950: #07141f;
  --navy-900: #0c1f31;
  --navy-800: #14304b;
  --navy: #1e4261;
  --cyan: #00aeca;
  --cyan-700: #007a8e;
  --cyan-200: #8fe1ee;
  --cyan-50: #e6f7fa;
  --yellow: #ffc53d;
  --green: #37b45f;
  --coral: #ff7355;

  --ink: var(--navy-900);
  --muted: #4d6276;
  --paper: #f3f6f9;
  --white: #fff;
  --line: #d4dde6;
  --shadow: rgb(30 66 97 / 22%);   /* resting offset shadow under cards and buttons */

  --font-display: "Bricolage Grotesque", "Mulish", system-ui, sans-serif;
  --font-body: "Mulish", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --radius: 16px;
  --stroke: 2px solid var(--ink);
  --shell: 1200px;
  --header-height: 80px;

  /* Halftone dot, the comic-print texture used across the site. */
  --dots: radial-gradient(circle at center, currentColor 0 1.6px, transparent 1.9px);
}

/* 2. Base ---------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 1rem); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
main { display: block; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 800; line-height: 1.08; letter-spacing: -0.015em; text-wrap: balance; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-size: 1.25rem; font-weight: 700; line-height: 1.25; }
p { margin: 0 0 1rem; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--focus, var(--cyan)); outline-offset: 3px; border-radius: 4px; }

.shell { width: min(var(--shell), 100% - 3rem); margin-inline: auto; }
.skip-link { position: fixed; top: -5rem; left: 1rem; z-index: 100; padding: .7rem 1rem; background: var(--yellow); border: var(--stroke); border-radius: 10px; font-weight: 800; text-decoration: none; }
.skip-link:focus { top: 1rem; }
.lead { font-size: 1.2rem; color: var(--muted); }
.icon { flex: none; }

/* 3. Components ---------------------------------------------------------- */

.btn {
  --btn-shadow: var(--shadow);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .8rem 1.25rem;
  background: var(--white);
  color: var(--ink);
  border: var(--stroke);
  border-radius: 12px;
  box-shadow: 4px 4px 0 var(--btn-shadow);
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .14s ease, box-shadow .14s ease, background-color .14s ease, color .14s ease;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--btn-shadow); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--btn-shadow); }
.btn .icon { transition: transform .14s ease; }
.btn:hover .icon { transform: translateX(3px); }
.btn--yellow { background: var(--yellow); }
.btn--dark { --btn-shadow: var(--cyan); background: var(--ink); color: var(--white); }
.btn--white { background: var(--white); }
.btn--light { --btn-shadow: transparent; background: transparent; border-color: var(--white); color: var(--white); }
.btn--light:hover { background: var(--white); color: var(--ink); }
.btn--plain { background: transparent; border-color: transparent; box-shadow: none; padding-inline: .5rem; }
.btn--plain:hover, .btn--plain:active { transform: none; box-shadow: none; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; text-decoration-color: var(--cyan); }
.btn--small { padding: .55rem .95rem; font-size: .93rem; box-shadow: 3px 3px 0 var(--btn-shadow); }
.hero .btn--yellow, .section--navy .btn--yellow { --btn-shadow: var(--cyan); }

/* Comic speech bubble */
.bubble {
  position: relative;
  margin: 0;
  padding: 1.35rem 1.5rem;
  background: var(--white);
  color: var(--ink);
  border: var(--stroke);
  border-radius: 20px;
  box-shadow: 5px 5px 0 var(--shadow);
}
.bubble::after {
  content: "";
  position: absolute;
  left: 2rem;
  bottom: -11px;
  width: 20px;
  height: 20px;
  background: inherit;
  border-right: var(--stroke);
  border-bottom: var(--stroke);
  transform: skewX(18deg) rotate(45deg);
}
.bubble p:last-child { margin-bottom: 0; }

/* Cards (blog, projects, archives) */
.card { background: var(--white); border: var(--stroke); border-radius: var(--radius); box-shadow: 5px 5px 0 var(--shadow); overflow: hidden; transition: transform .16s ease, box-shadow .16s ease; }
.card:hover { transform: translate(-3px, -3px); box-shadow: 8px 8px 0 var(--cyan); }
.card__link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.card__image { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-bottom: var(--stroke); background: var(--paper); }
.card__body { display: flex; flex: 1; flex-direction: column; gap: .6rem; padding: 1.35rem 1.4rem 1.4rem; }
.card__meta { margin: 0; color: var(--cyan-700); font-family: var(--font-mono); font-size: .78rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.card__meta:empty { display: none; }
.card__summary { margin: 0; color: var(--muted); font-size: .98rem; }
.card__more { display: inline-flex; align-items: center; gap: .45rem; margin-top: auto; padding-top: .5rem; font-family: var(--font-display); font-weight: 700; }
.card__more .icon { color: var(--cyan-700); transition: transform .16s ease; }
.card:hover .card__more .icon { transform: translateX(4px); }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 1.75rem; }

/* Sections */
.section { position: relative; padding-block: clamp(4rem, 8vw, 6.75rem); }
.section--paper { background: var(--paper); }
.section--navy { background: var(--navy-900); color: var(--white); }
.section--cyan { background: var(--cyan-50); }
.section__title { margin-bottom: clamp(2rem, 4vw, 3rem); max-width: 22ch; }
.section__head { display: flex; align-items: end; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section__head .section__title { margin-bottom: 0; }
.section__cta { margin: 2.5rem 0 0; }

.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; gap: clamp(2rem, 6vw, 5.5rem); }
.split__copy h2 { margin-bottom: 1.5rem; }
.split__copy .btn { margin-top: 1rem; }
.split__media { position: relative; }
.split__media img { position: relative; width: 100%; filter: drop-shadow(0 22px 32px rgb(12 31 49 / 18%)); }
.split__media--dots::before {
  content: "";
  position: absolute;
  inset: -9% auto auto -7%;
  width: 62%;
  aspect-ratio: 1;
  color: var(--yellow);
  background: var(--dots) 0 0 / 15px 15px;
  border-radius: 50%;
  -webkit-mask-image: radial-gradient(circle, #000 35%, transparent 70%);
  mask-image: radial-gradient(circle, #000 35%, transparent 70%);
}
.split--reverse .split__media { order: 2; }

/* 4. Header & footer ----------------------------------------------------- */

.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: var(--stroke); transition: box-shadow .2s ease; }
.site-header.is-scrolled { box-shadow: 0 10px 30px rgb(12 31 49 / 12%); }
.site-header__inner { display: flex; align-items: center; gap: 1.25rem; min-height: var(--header-height); }
.brand { flex: none; display: block; }
.brand img { width: 252px; }
.site-menu { display: flex; align-items: center; gap: 1.1rem; margin-left: auto; }
.main-nav { display: flex; align-items: center; gap: 1.05rem; }
.main-nav a { position: relative; padding-block: .4rem; font-size: .93rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.main-nav > a::after, .nav-group > summary::after { content: ""; position: absolute; inset: auto 0 0; height: 3px; background: var(--cyan); border-radius: 2px; transform: scaleX(0); transform-origin: left; transition: transform .18s ease; }
.main-nav > a:hover::after, .main-nav > a[aria-current="page"]::after, .nav-group > summary:hover::after, .nav-group.is-current > summary::after, .nav-group[open] > summary::after { transform: scaleX(1); }
.main-nav > a[aria-current="page"], .nav-group.is-current > summary { color: var(--cyan-700); }
.nav-group { position: relative; }
.nav-group > summary { position: relative; display: inline-flex; align-items: center; gap: .35rem; padding-block: .4rem; font-size: .93rem; font-weight: 700; white-space: nowrap; cursor: pointer; list-style: none; user-select: none; }
.nav-group > summary::-webkit-details-marker { display: none; }
.chevron { flex: none; transition: rotate .15s ease; }
details[open] > summary .chevron { rotate: 180deg; }
.nav-group > ul { position: absolute; top: calc(100% + .9rem); left: -0.8rem; z-index: 60; min-width: 15rem; padding: .45rem; background: var(--white); border: var(--stroke); border-radius: 14px; box-shadow: 6px 6px 0 var(--shadow); }
.nav-group > ul a { display: block; padding: .6rem .8rem; border-radius: 9px; font-size: .95rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.nav-group > ul a:hover { background: var(--paper); }
.nav-group > ul a[aria-current="page"] { background: var(--cyan-50); color: var(--cyan-700); }
.lang { position: relative; }
.lang summary { display: inline-flex; align-items: center; gap: .4rem; padding: .42rem .6rem; border: 2px solid var(--line); border-radius: 10px; font-family: var(--font-mono); font-size: .8rem; font-weight: 700; text-transform: uppercase; cursor: pointer; list-style: none; user-select: none; transition: border-color .15s ease; }
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover, .lang[open] summary { border-color: var(--ink); }
.lang__list { position: absolute; top: calc(100% + .6rem); right: 0; z-index: 60; width: max-content; min-width: 12.5rem; max-width: min(40rem, 100vw - 2rem); max-height: min(70vh, 30rem); overflow-y: auto; padding: .45rem; background: var(--white); border: var(--stroke); border-radius: 14px; box-shadow: 6px 6px 0 var(--shadow); column-gap: .3rem; }
.lang__list:has(li:nth-child(9)) { columns: 2; }
.lang__list:has(li:nth-child(19)) { columns: 3; }
.lang__list li { break-inside: avoid; }
.lang__list a { display: flex; align-items: center; gap: .7rem; padding: .5rem .7rem; border-radius: 9px; font-size: .95rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.lang__list a:hover { background: var(--paper); }
.lang__list a[aria-current] { background: var(--cyan-50); }
.lang__code { min-width: 1.9rem; color: var(--cyan-700); font-family: var(--font-mono); font-size: .76rem; text-transform: uppercase; }
.site-menu__actions { display: flex; align-items: center; gap: .35rem; }
.menu-toggle { display: none; align-items: center; gap: .6rem; margin-left: auto; padding: .5rem .8rem; background: var(--white); border: var(--stroke); border-radius: 10px; box-shadow: 3px 3px 0 var(--shadow); font-family: var(--font-display); font-weight: 700; cursor: pointer; }
.menu-toggle__bars, .menu-toggle__bars::before, .menu-toggle__bars::after { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.menu-toggle__bars { position: relative; }
.menu-toggle__bars::before, .menu-toggle__bars::after { content: ""; position: absolute; left: 0; }
.menu-toggle__bars::before { top: -6px; }
.menu-toggle__bars::after { top: 6px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

.site-footer { background: var(--navy-950); color: #c3d1de; font-size: .98rem; }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { color: var(--cyan-200); text-decoration: underline; text-underline-offset: 4px; }
.site-footer__grid { display: grid; grid-template-columns: minmax(0, 1.7fr) repeat(3, minmax(0, 1fr)); gap: 2.5rem; padding-block: clamp(3rem, 6vw, 4.5rem) 3rem; }
.site-footer__brand img { width: 240px; margin-bottom: 1.4rem; }
.site-footer__brand p { max-width: 38ch; }
.site-footer__col h2 { margin-bottom: 1.1rem; color: var(--cyan-200); font-family: var(--font-mono); font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.site-footer__col li + li { margin-top: .6rem; }
.site-footer__hours { color: #8ea3b6; font-family: var(--font-mono); font-size: .82rem; }
.site-footer__cta { display: inline-flex; align-items: center; gap: .45rem; font-weight: 800; }
.social { display: flex; gap: .6rem; margin-top: 1.4rem; }
.social a { display: grid; place-items: center; width: 42px; height: 42px; border: 2px solid #284763; border-radius: 12px; transition: background-color .15s ease, color .15s ease, border-color .15s ease; }
.social a:hover { background: var(--cyan); border-color: var(--cyan); color: var(--navy-950); }
.social svg { width: 20px; height: 20px; fill: currentColor; }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 2rem; padding-block: 1.4rem 1.8rem; border-top: 1px solid #1b364f; color: #8ea3b6; font-size: .88rem; }
.site-footer__bottom p { margin: 0; }
.site-footer__bottom ul { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.site-footer__bottom a { color: #c3d1de; }

/* 5. Home sections ------------------------------------------------------- */

.hero { position: relative; background: var(--navy-900); color: var(--white); }
.hero::before, .hero::after { content: ""; position: absolute; pointer-events: none; background: var(--dots) 0 0 / 16px 16px; }
.hero::before { inset: 0 0 0 42%; color: var(--cyan); opacity: .55; -webkit-mask-image: radial-gradient(ellipse 75% 85% at 78% 22%, #000 0%, transparent 72%); mask-image: radial-gradient(ellipse 75% 85% at 78% 22%, #000 0%, transparent 72%); }
.hero::after { inset: 45% 62% 0 0; color: var(--yellow); opacity: .32; -webkit-mask-image: radial-gradient(ellipse 80% 80% at 8% 92%, #000 0%, transparent 70%); mask-image: radial-gradient(ellipse 80% 80% at 8% 92%, #000 0%, transparent 70%); }
.hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr); align-items: center; gap: clamp(2rem, 5vw, 4.5rem); padding-top: clamp(3rem, 6.5vw, 5.5rem); }
.hero__eyebrow { display: inline-flex; align-items: center; gap: .7rem; margin-bottom: 1.4rem; color: var(--cyan-200); font-family: var(--font-mono); font-size: .82rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.hero__eyebrow::before { content: ""; width: 2.2rem; height: 2px; background: var(--cyan); }
.hero__title { font-size: clamp(2.5rem, 5.2vw, 4.5rem); line-height: 1.02; letter-spacing: -0.025em; }
.hero__title mark { display: inline-block; padding: 0 .16em .04em; background: var(--yellow); color: var(--ink); border-radius: .14em; rotate: -2deg; }
.hero__lead { max-width: 46ch; margin: 1.6rem 0 0; color: #c9d7e4; font-size: 1.2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.hero__visual { position: relative; }
.hero__shot { width: 114%; max-width: none; margin-left: -6%; filter: drop-shadow(0 28px 38px rgb(0 0 0 / 40%)); }
.hero__bubble { position: absolute; top: -1.2rem; right: 3%; padding: .7rem 1.1rem; box-shadow: 4px 4px 0 var(--cyan); font-family: var(--font-display); font-size: 1.25rem; font-weight: 800; line-height: 1.1; rotate: 6deg; }
.hero__bubble::after { left: 1.4rem; }

.stats { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: clamp(2.5rem, 5vw, 4rem) 0 -3.4rem; background: var(--white); color: var(--ink); border: var(--stroke); border-radius: 20px; box-shadow: 6px 6px 0 var(--cyan); }
.stat { display: flex; flex-direction: column-reverse; padding: 1.35rem clamp(1.1rem, 3vw, 2.2rem); }
.stat + .stat { border-left: 2px dashed var(--line); }
.stat dt { color: var(--muted); font-family: var(--font-mono); font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.stat dd { margin: 0; font-family: var(--font-display); font-size: clamp(2rem, 4.4vw, 3.3rem); font-weight: 800; line-height: 1.05; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }

.learn { padding-top: calc(clamp(4rem, 8vw, 6.75rem) + 3.4rem); }
.learn__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; gap: clamp(2rem, 6vw, 5.5rem); }
.learn__copy h2 { margin-bottom: 1rem; }
.course-tabs { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.75rem 0 2.25rem; }
.course-tab { padding: .7rem 1rem; background: var(--white); border: var(--stroke); border-radius: 14px; box-shadow: 3px 3px 0 var(--shadow); cursor: pointer; transition: transform .14s ease, box-shadow .14s ease, background-color .14s ease; }
.course-tab img { width: auto; height: 46px; mix-blend-mode: multiply; }
.course-tab:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--shadow); }
.course-tab[aria-selected="true"] { background: var(--cyan-50); box-shadow: 5px 5px 0 var(--cyan); transform: translate(-2px, -2px); }

.code-panel { background: var(--navy-950); color: #d8e5f1; border: var(--stroke); border-radius: 20px; box-shadow: 9px 9px 0 var(--yellow); font-family: var(--font-mono); overflow: hidden; }
.code-panel__bar { display: flex; align-items: center; gap: 1rem; padding: .8rem 1.2rem; background: var(--navy-800); font-size: .8rem; color: #a9bdd0; }
.code-panel__dots { display: flex; gap: .4rem; }
.code-panel__dots i { width: 11px; height: 11px; border-radius: 50%; background: var(--coral); }
.code-panel__dots i:nth-child(2) { background: var(--yellow); }
.code-panel__dots i:nth-child(3) { background: var(--green); }
.code-panel__code { margin: 0; padding: 1.5rem 1.4rem; min-height: 12.5rem; overflow-x: auto; font-family: inherit; font-size: clamp(.82rem, 1.25vw, 1rem); line-height: 1.85; counter-reset: line; }
.code-panel__code .line { display: block; min-height: 1.85em; white-space: pre; }
.code-panel__code .line::before { counter-increment: line; content: counter(line); display: inline-block; width: 1.6em; margin-right: 1.2em; color: #46627c; text-align: right; }
.code-panel .k { color: var(--cyan-200); font-weight: 600; }
.code-panel .s { color: #ffd874; }
.code-panel .n { color: #ffa48c; }
.code-panel .f { color: #a8eda0; }
.code-panel .o { color: #9fb4c8; }
.code-panel__result { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; padding: 1rem 1.4rem; border-top: 2px dashed #24415c; font-size: .92rem; }
.code-panel__output { color: var(--white); }
.code-panel__status { display: inline-flex; align-items: center; gap: .45rem; padding: .32rem .8rem .32rem .6rem; background: var(--green); color: #04220f; border-radius: 12px; font-family: var(--font-body); font-size: .86rem; font-weight: 800; line-height: 1.3; }
.code-panel__status::before { content: ""; width: .95rem; height: .95rem; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3.2L13 4.8' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3.2L13 4.8' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }

.ticker { position: relative; z-index: 3; margin-block: -1.5rem; background: var(--yellow); border-block: var(--stroke); rotate: -1.3deg; scale: 1.03; overflow: hidden; }
.ticker__track { display: flex; width: max-content; animation: ticker 46s linear infinite; }
.ticker span { display: inline-flex; align-items: center; gap: 2.4rem; padding: .7rem 0 .7rem 2.4rem; font-family: var(--font-display); font-size: 1.05rem; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; white-space: nowrap; }
.ticker span::after { content: ""; width: .6rem; height: .6rem; background: var(--ink); rotate: 45deg; }
@keyframes ticker { to { transform: translateX(-50%); } }

.teach { padding-top: calc(clamp(4rem, 8vw, 6.75rem) + 1rem); }
.teach p { color: var(--muted); }

.principles { overflow: hidden; }
.principles::before { content: ""; position: absolute; inset: 0 55% 0 0; color: var(--cyan); opacity: .35; background: var(--dots) 0 0 / 16px 16px; -webkit-mask-image: radial-gradient(ellipse 80% 70% at 0% 100%, #000 0%, transparent 70%); mask-image: radial-gradient(ellipse 80% 70% at 0% 100%, #000 0%, transparent 70%); pointer-events: none; }
.principles .shell { position: relative; }
.principles .split__media img { filter: drop-shadow(0 24px 34px rgb(0 0 0 / 38%)); }
.checks { display: grid; gap: .9rem; margin-bottom: 1.25rem; }
.checks li { position: relative; padding: .95rem 1.2rem .95rem 3.3rem; background: var(--white); color: var(--ink); border-radius: 14px; box-shadow: 4px 4px 0 var(--cyan); font-weight: 800; line-height: 1.35; transition: rotate .18s ease; }
.checks li:nth-child(odd) { rotate: -.7deg; }
.checks li:nth-child(even) { rotate: .6deg; }
.checks li:hover { rotate: 0deg; }
.checks li::before { content: ""; position: absolute; left: 1rem; top: 50%; width: 1.55rem; height: 1.55rem; translate: 0 -50%; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.4l2.6 2.6L12 5.6' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 72% no-repeat; border-radius: 50%; }

.offer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 280px)); justify-content: center; gap: 1.6rem; }
.offer { display: flex; flex-direction: column; background: var(--white); color: inherit; border: var(--stroke); border-radius: var(--radius); box-shadow: 5px 5px 0 var(--shadow); overflow: hidden; text-decoration: none; transition: transform .16s ease, box-shadow .16s ease; }
.offer:hover { transform: translate(-3px, -3px); box-shadow: 8px 8px 0 var(--cyan); }
.offer--school:hover { box-shadow: 8px 8px 0 var(--yellow); }
.offer img { order: -1; width: 100%; aspect-ratio: 7 / 10; object-fit: cover; border-bottom: var(--stroke); }
.offer__tag { align-self: flex-start; margin: 1.1rem 1.2rem 0; padding: .18rem .6rem; background: var(--cyan-50); border-radius: 999px; color: var(--cyan-700); font-family: var(--font-mono); font-size: .7rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; }
.offer--school .offer__tag { background: #fff1c9; color: #7a5600; }
.offer__body { display: grid; gap: .3rem; padding: .7rem 1.2rem 1.3rem; }
.offer__title { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; line-height: 1.2; }
.offer__price { color: var(--cyan-700); font-family: var(--font-display); font-size: 1.02rem; font-weight: 700; font-variant-numeric: tabular-nums; }

.expert-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.75rem; }
.expert { background: var(--white); border: var(--stroke); border-radius: var(--radius); overflow: hidden; }
.expert img { width: 100%; aspect-ratio: 380 / 193; object-fit: cover; border-bottom: var(--stroke); }
.expert h3 { display: flex; align-items: center; gap: .6rem; margin: 1.3rem 1.4rem .7rem; }
.expert h3::before { content: ""; flex: none; width: 1.4rem; height: 1.4rem; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.4l2.6 2.6L12 5.6' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 72% no-repeat; border-radius: 50%; }
.expert p { margin: 0 1.4rem 1.5rem; color: var(--muted); font-size: .98rem; }
.footnote { margin: 1.5rem 0 0; color: var(--muted); font-family: var(--font-mono); font-size: .85rem; }

.reviews { overflow: hidden; }
.reviews::before { content: ""; position: absolute; inset: 0 0 0 50%; color: var(--cyan); opacity: .5; background: var(--dots) 0 0 / 16px 16px; -webkit-mask-image: radial-gradient(ellipse 70% 80% at 100% 0%, #000 0%, transparent 70%); mask-image: radial-gradient(ellipse 70% 80% at 100% 0%, #000 0%, transparent 70%); pointer-events: none; }
.reviews .shell { position: relative; }
.review-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: 2rem; }
.review { margin: 0; }
.review:nth-child(2) { margin-top: 1.75rem; }
.review figcaption { display: grid; gap: .1rem; margin: 1.5rem 0 0 1.4rem; }
.review figcaption strong { font-family: var(--font-display); font-size: 1.1rem; }
.review figcaption span { color: var(--muted); font-family: var(--font-mono); font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; }

.project-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 1.75rem; }
.project-card .card__image { aspect-ratio: 16 / 10; }
.project-card .card__image, .card__image--top { object-position: top; }

.join { position: relative; background: var(--cyan); border-block: var(--stroke); overflow: hidden; --focus: var(--ink); }
.join::before { content: ""; position: absolute; inset: 0 0 0 45%; color: var(--ink); opacity: .22; background: var(--dots) 0 0 / 15px 15px; -webkit-mask-image: linear-gradient(to left, #000, transparent); mask-image: linear-gradient(to left, #000, transparent); }
.join__inner { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; padding-block: clamp(2.5rem, 5vw, 3.75rem); }
.join h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); }
.join__actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.join .btn--dark { --btn-shadow: var(--yellow); }

.award-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.6rem; }
.award { display: flex; flex-direction: column; align-items: flex-start; gap: .7rem; padding: 1.6rem; background: var(--white); border: var(--stroke); border-radius: var(--radius); box-shadow: 5px 5px 0 var(--shadow); }
.award__mark { display: flex; align-items: center; height: 104px; margin-bottom: .4rem; }
.award__mark img { width: auto; max-width: 100%; height: 100%; object-fit: contain; }
.award__badge { display: grid; place-items: center; width: 104px; height: 104px; background: var(--yellow); border: var(--stroke); border-radius: 50%; box-shadow: 4px 4px 0 var(--shadow); font-family: var(--font-display); font-size: 1.25rem; font-weight: 800; line-height: 1; text-align: center; transform: rotate(-6deg); }
.award h3 { font-size: 1.25rem; font-weight: 800; }
.award p { margin: 0; color: var(--muted); }
.award__link { color: inherit; text-decoration: none; }
.award__link:hover .icon { transform: translateX(4px); }

.funding { padding-block: 2.75rem 3rem; }
.funding h2 { margin-bottom: .6rem; font-family: var(--font-mono); font-size: .82rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.funding p { max-width: 95ch; color: var(--muted); font-size: .9rem; }
.funding img { width: min(100%, 940px); margin-inline: auto; }

/* 6. Content pages ------------------------------------------------------- */

.page-hero { position: relative; background: var(--navy-900); color: var(--white); overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0 0 0 50%; color: var(--cyan); opacity: .5; background: var(--dots) 0 0 / 16px 16px; -webkit-mask-image: radial-gradient(ellipse 75% 110% at 95% 10%, #000 0%, transparent 70%); mask-image: radial-gradient(ellipse 75% 110% at 95% 10%, #000 0%, transparent 70%); }
.page-hero .shell { position: relative; padding-block: clamp(2.25rem, 5vw, 3.75rem) clamp(2.5rem, 5vw, 4rem); }
.page-hero h1 { max-width: 24ch; font-size: clamp(2rem, 4.4vw, 3.5rem); }
.page-hero__meta { margin: 1.1rem 0 0; color: var(--cyan-200); font-family: var(--font-mono); font-size: .85rem; }
.breadcrumbs { margin-bottom: 1.2rem; font-family: var(--font-mono); font-size: .78rem; letter-spacing: .03em; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: .3rem .6rem; }
.breadcrumbs li + li::before { content: "/"; margin-right: .6rem; color: #5d7a94; }
.breadcrumbs a { color: var(--cyan-200); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs span { color: #a9bdd0; }

.page-body { padding-block: clamp(2.5rem, 5vw, 4.5rem) clamp(3.5rem, 7vw, 6rem); }
.page-cover { width: min(980px, 100% - 3rem); max-height: 460px; margin: 0 auto clamp(2rem, 4vw, 3rem); object-fit: cover; border: var(--stroke); border-radius: var(--radius); box-shadow: 7px 7px 0 var(--cyan); }
.prose { width: min(760px, 100% - 3rem); margin-inline: auto; font-size: 1.1rem; line-height: 1.75; overflow-wrap: anywhere; }
.prose--flush { width: auto; margin: 0; }
.prose > :first-child { margin-top: 0; }
.prose h2 { margin: 2.6rem 0 1rem; font-size: clamp(1.55rem, 2.6vw, 2rem); }
.prose h3, .prose h4, .prose h5, .prose h6 { margin: 2rem 0 .8rem; font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; line-height: 1.25; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.15rem; }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: .35rem; }
.prose li::marker { color: var(--cyan-700); font-weight: 800; }
.prose a { color: var(--cyan-700); font-weight: 700; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.prose a:hover { color: var(--ink); }
.prose img { margin-block: 1.5rem; border-radius: 12px; }
.prose blockquote { margin: 2rem 0; padding: 1.1rem 1.4rem; background: var(--cyan-50); border-left: 5px solid var(--cyan); border-radius: 0 12px 12px 0; }
.prose table { width: 100%; margin: 1.5rem 0; border-collapse: collapse; font-size: .98rem; }
.prose th, .prose td { padding: .65rem .8rem; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { background: var(--paper); font-family: var(--font-display); }

.product { display: grid; grid-template-columns: 280px minmax(0, 1fr); align-items: start; gap: clamp(1.75rem, 5vw, 4rem); max-width: 980px; }
.product__cover { border: var(--stroke); border-radius: var(--radius); box-shadow: 7px 7px 0 var(--yellow); }
.product__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }

/* Block pages */
.shell--narrow { width: min(760px, 100% - 3rem); }
.shell--mid { width: min(960px, 100% - 3rem); }
.rich { color: var(--muted); }
.rich > :last-child { margin-bottom: 0; }
.rich ul, .rich ol { margin: 0 0 1rem; padding-left: 1.3rem; }
.rich ul { list-style: disc; }
.rich ol { list-style: decimal; }
.rich li + li { margin-top: .3rem; }
.rich li::marker { color: var(--cyan-700); }
.rich h3, .rich h4 { margin: 1.4rem 0 .5rem; color: var(--ink); font-size: 1.15rem; }
.rich a { color: var(--cyan-700); font-weight: 700; text-underline-offset: 3px; }
.rich strong, .rich b { color: var(--ink); }

.page-hero--rich .shell { padding-block: clamp(2rem, 4.5vw, 3.5rem) clamp(2.5rem, 5.5vw, 4.5rem); }
.page-hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; gap: clamp(2rem, 5vw, 4.5rem); }
.page-hero__grid--solo { grid-template-columns: minmax(0, 1fr); }
.page-hero__lead { max-width: 46ch; margin: 1.3rem 0 0; color: #c9d7e4; font-size: 1.2rem; }
.page-hero .hero__actions:empty { display: none; }
.page-hero .btn--yellow { --btn-shadow: var(--cyan); }
.page-hero__media img { width: 100%; max-height: 380px; object-fit: contain; filter: drop-shadow(0 24px 34px rgb(0 0 0 / 38%)); }
.page-hero__media video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; border: 2px solid var(--cyan); border-radius: var(--radius); box-shadow: 7px 7px 0 rgb(0 174 202 / 35%); }

.block-stats { background: linear-gradient(var(--navy-900) 50%, transparent 50%); }
.stats--inline { margin: 0; }
.block-split { padding-block: clamp(2.25rem, 4.5vw, 3.75rem); }
.block-split .split__media img { max-height: 420px; object-fit: contain; }
.block-title { padding-block: clamp(3rem, 6vw, 4.5rem) .5rem; text-align: center; }
.block-title h2 { margin-inline: auto; max-width: 26ch; }
.block-title h2::after { content: ""; display: block; width: 4.5rem; height: 5px; margin: 1.1rem auto 0; background: var(--yellow); border-radius: 3px; }
.block-text h2 { margin-bottom: 1.2rem; }
.block-text .rich { font-size: 1.1rem; }
.block-text .btn { margin-top: 1.5rem; }

.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 1.5rem; }
.feature { padding: 1.6rem 1.5rem 1.5rem; background: var(--white); border: var(--stroke); border-radius: var(--radius); box-shadow: 5px 5px 0 var(--shadow); }
.feature img { width: 56px; height: 56px; margin-bottom: 1.1rem; object-fit: contain; }
.feature h3 { margin-bottom: .6rem; }
.feature p { margin: 0; color: var(--muted); font-size: .98rem; }

.block-highlight { padding-block: clamp(1.5rem, 3vw, 2.5rem); }
.highlight { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2.5rem; padding: clamp(1.75rem, 4vw, 3rem) clamp(1.5rem, 4vw, 3.25rem); background: var(--navy-900); color: var(--white); border-radius: 24px; overflow: hidden; }
.highlight::before { content: ""; position: absolute; inset: 0 0 0 55%; color: var(--cyan); opacity: .5; background: var(--dots) 0 0 / 16px 16px; -webkit-mask-image: linear-gradient(to left, #000, transparent); mask-image: linear-gradient(to left, #000, transparent); }
.highlight > * { position: relative; margin: 0; }
.highlight__number { color: var(--yellow); font-family: var(--font-display); font-size: clamp(3.5rem, 9vw, 6.5rem); font-weight: 800; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.highlight__text { flex: 1 1 20rem; font-family: var(--font-display); font-size: clamp(1.25rem, 2.4vw, 1.8rem); font-weight: 700; line-height: 1.25; text-wrap: balance; }

.table-scroll { overflow-x: auto; background: var(--white); border: var(--stroke); border-radius: var(--radius); box-shadow: 5px 5px 0 var(--shadow); }
.pricing { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 1rem; }
.pricing th, .pricing td { padding: .8rem 1rem; border-bottom: 1px solid var(--line); text-align: center; vertical-align: middle; }
.pricing thead th { padding-block: 1.4rem 1.1rem; vertical-align: bottom; font-family: var(--font-display); font-size: 1.15rem; }
.pricing thead th:first-child { color: var(--muted); font-family: var(--font-mono); font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.pricing__poster { display: block; width: min(100%, 300px); min-width: 170px; margin: 0 auto .8rem; }
.pricing__poster img { width: 100%; border: var(--stroke); border-radius: 12px; transition: transform .16s ease, box-shadow .16s ease; }
.pricing__poster:hover img { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--cyan); }
.pricing th:first-child, .pricing td:first-child { text-align: left; }
.pricing tbody th { font-weight: 700; }
.pricing tbody tr:nth-child(odd) { background: var(--paper); }
.pricing tbody tr:last-child td, .pricing tbody tr:last-child th { font-family: var(--font-display); font-size: 1.1rem; font-weight: 800; }
.pricing tfoot td { padding-block: 1.2rem 1.4rem; border-bottom: 0; }
.tick { display: inline-block; width: 1.5rem; height: 1.5rem; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.4l2.6 2.6L12 5.6' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 72% no-repeat; border-radius: 50%; vertical-align: middle; }
.pricing__note { max-width: 80ch; margin-top: 1.75rem; }

.accordion { display: grid; gap: .9rem; }
.accordion__item { background: var(--white); border: var(--stroke); border-radius: 14px; box-shadow: 4px 4px 0 var(--shadow); }
.accordion__item summary { display: flex; align-items: center; gap: 1rem; padding: 1.05rem 1.3rem; font-family: var(--font-display); font-size: 1.12rem; font-weight: 700; line-height: 1.3; cursor: pointer; list-style: none; }
.accordion__item summary::-webkit-details-marker { display: none; }
.accordion__item summary span { flex: 1; }
.accordion__item summary small { color: var(--cyan-700); font-family: var(--font-mono); font-size: .76rem; font-weight: 600; text-transform: uppercase; white-space: nowrap; }
.accordion__item summary::after { content: ""; flex: none; width: 1.9rem; height: 1.9rem; background: var(--yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 3.5v9M3.5 8h9' fill='none' stroke='%230c1f31' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / 60% no-repeat; border: var(--stroke); border-radius: 50%; transition: rotate .2s ease; }
.accordion__item[open] summary::after { rotate: 45deg; }
.accordion__item[open] summary { border-bottom: 2px dashed var(--line); }
.accordion__body { padding: 1.2rem 1.3rem 1.4rem; }
.syllabus { display: grid; grid-template-columns: 170px minmax(0, 1fr); align-items: start; gap: 1.5rem; }
.syllabus--plain { grid-template-columns: minmax(0, 1fr); }
.syllabus__cover { border: var(--stroke); border-radius: 10px; }
.syllabus > div > p { color: var(--muted); }
.syllabus__modules { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); gap: .9rem; margin-top: 1.2rem; counter-reset: module; }
.syllabus__modules > li { padding: .9rem 1rem; background: var(--paper); border-radius: 12px; counter-increment: module; }
.syllabus__modules p { display: flex; justify-content: space-between; gap: .75rem; margin: 0 0 .4rem; line-height: 1.3; }
.syllabus__modules p strong::before { content: counter(module, decimal-leading-zero) " "; color: var(--cyan-700); font-family: var(--font-mono); font-size: .8rem; }
.syllabus__modules p span { color: var(--muted); font-family: var(--font-mono); font-size: .78rem; white-space: nowrap; }
.syllabus__modules ul { padding-left: 1.1rem; color: var(--muted); font-size: .9rem; list-style: disc; }

.course-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(460px, 100%), 1fr)); gap: 1.6rem; }
.course { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 1.4rem; padding: 1.2rem; background: var(--white); border: var(--stroke); border-radius: var(--radius); box-shadow: 5px 5px 0 var(--shadow); }
.course > img { width: 100%; border: var(--stroke); border-radius: 10px; }
.course__body { display: flex; flex-direction: column; gap: .6rem; }
.course__body p { margin: 0; color: var(--muted); font-size: .96rem; }
.course__prices { display: flex; flex-wrap: wrap; gap: .5rem; }
.course__prices:empty { display: none; }
.course__prices li { display: inline-flex; align-items: baseline; gap: .5rem; padding: .25rem .7rem; background: var(--cyan-50); border-radius: 999px; font-size: .88rem; }
.course__prices span { color: var(--muted); }
.course__prices strong { color: var(--cyan-700); font-family: var(--font-display); }
.course__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-top: auto; padding-top: .5rem; }

.section__lead { max-width: 75ch; margin: -1rem 0 2.25rem; }
.training-list { display: grid; gap: 1.75rem; }
.training { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 330px); background: var(--white); border: var(--stroke); border-radius: var(--radius); box-shadow: 5px 5px 0 var(--shadow); overflow: hidden; }
.training__main { padding: clamp(1.25rem, 3vw, 2rem); }
.training__image { float: right; width: min(38%, 240px); margin: 0 0 1rem 1.5rem; border: var(--stroke); border-radius: 12px; }
.training__main h3 { margin-bottom: 1rem; font-size: clamp(1.35rem, 2.4vw, 1.75rem); font-weight: 800; }
.training__main .rich h3 { clear: both; margin-top: 1.5rem; font-size: 1.05rem; }
.training__main .rich ul { columns: 2 16rem; column-gap: 2.5rem; }
.training__main .rich li { break-inside: avoid; }
.training__side { display: flex; flex-direction: column; align-items: flex-start; gap: .7rem; padding: clamp(1.25rem, 3vw, 2rem); background: var(--cyan-50); border-left: var(--stroke); }
.training__label { margin: 0; color: var(--cyan-700); font-family: var(--font-mono); font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.training__price { margin: 0; font-family: var(--font-display); font-size: 2.1rem; font-weight: 800; line-height: 1; }
.training__discount { font-size: .92rem; }
.training__side .btn { margin-top: .3rem; }
.training__info { width: 100%; font-size: .9rem; }
.training__info summary { color: var(--cyan-700); font-weight: 800; cursor: pointer; }
.training__info .rich { margin-top: .6rem; }
@media (max-width: 640px) {
  .training__image { float: none; width: 100%; max-height: 190px; margin: 0 0 1.1rem; object-fit: cover; }
}

.form-card { padding: clamp(1.25rem, 3vw, 2rem); background: var(--white); color: var(--ink); border: var(--stroke); border-radius: var(--radius); box-shadow: 5px 5px 0 var(--shadow); }
.block-contact .form-card { border-color: transparent; box-shadow: 6px 6px 0 var(--cyan); }
.form__intro { margin-bottom: 1.5rem; }
.form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.25rem; }
.field { display: grid; gap: .35rem; min-width: 0; margin: 0; padding: 0; border: 0; }
.field--wide { grid-column: 1 / -1; }
.field > span, .field > legend { padding: 0; font-size: .9rem; font-weight: 700; }
.field input, .field textarea { width: 100%; padding: .7rem .85rem; background: var(--white); color: var(--ink); border: 2px solid var(--line); border-radius: 10px; font: inherit; }
.field textarea { resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #8a9aab; }
.field input:focus, .field textarea:focus { border-color: var(--cyan); outline: 3px solid rgb(0 174 202 / 25%); }
.choice { display: flex; align-items: flex-start; gap: .6rem; font-size: .92rem; line-height: 1.5; cursor: pointer; }
.choice input { flex: none; width: 1.15rem; height: 1.15rem; margin: .15rem 0 0; padding: 0; accent-color: var(--cyan-700); }
fieldset.field { gap: .5rem; }
fieldset.field .choice { display: inline-flex; margin-right: 1.5rem; }
.form__info { padding: 1rem 1.15rem; background: #fff6da; border: 2px solid var(--yellow); border-radius: 12px; font-size: .95rem; }
.form__info .form__date { margin: .15rem 0 .4rem; font-family: var(--font-display); font-size: 1.45rem; font-weight: 800; line-height: 1.2; }
.form__info p { margin: 0; overflow-wrap: anywhere; }
.form__foot { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem 1.25rem; margin-top: 1.5rem; }
.form__foot small { color: var(--muted); }
.form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.block-logos { padding-block: clamp(2rem, 4vw, 3rem); text-align: center; }
.block-logos h2 { margin-bottom: 1.5rem; }
.logo-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
.logo-row li { display: grid; place-items: center; min-width: 9.5rem; padding: 1rem 1.5rem; background: var(--white); border: var(--stroke); border-radius: 14px; box-shadow: 4px 4px 0 var(--shadow); }
.logo-row img { height: 52px; width: auto; }

.block-cta { padding-block: clamp(1.5rem, 3vw, 2.5rem); }
.cta-band { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem 2.5rem; padding: clamp(1.75rem, 4vw, 2.75rem) clamp(1.5rem, 4vw, 3rem); background: var(--cyan); border: var(--stroke); border-radius: 24px; overflow: hidden; --focus: var(--ink); }
.cta-band::before { content: ""; position: absolute; inset: 0 0 0 50%; color: var(--ink); opacity: .2; background: var(--dots) 0 0 / 15px 15px; -webkit-mask-image: linear-gradient(to left, #000, transparent); mask-image: linear-gradient(to left, #000, transparent); }
.cta-band > * { position: relative; }
.cta-band h2 { flex: 1 1 18rem; font-size: clamp(1.5rem, 3vw, 2.2rem); }
.block-actions { padding-block: clamp(1.5rem, 3vw, 2.5rem); }
.block-actions__row { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }

.block-contact { overflow: hidden; }
.contact { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: start; gap: clamp(2rem, 5vw, 4rem); }
.contact__side { display: grid; gap: 2rem; }
.contact__copy p { margin: 1rem 0 0; color: #c9d7e4; font-size: 1.2rem; }
.contact__cards { display: grid; gap: 1.25rem; }
.contact__card { display: grid; gap: .3rem; padding: 1.4rem 1.5rem; background: var(--white); color: var(--ink); border-radius: var(--radius); box-shadow: 5px 5px 0 var(--cyan); text-decoration: none; transition: transform .16s ease, box-shadow .16s ease; }
.contact__card:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--cyan); }
.contact__card span { color: var(--cyan-700); font-family: var(--font-mono); font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.contact__card strong { font-family: var(--font-display); font-size: clamp(1.15rem, 2vw, 1.45rem); overflow-wrap: anywhere; }
.contact__card small { color: var(--muted); font-size: .88rem; }

/* 7. Motion & responsive ------------------------------------------------- */

.js .reveal { opacity: 0; translate: 0 18px; transition: opacity .55s ease, translate .55s ease, transform .16s ease, box-shadow .16s ease; }
.js .reveal.is-visible { opacity: 1; translate: 0 0; }
.js .code-panel.is-ready .line { opacity: 0; translate: -8px 0; transition: opacity .25s ease, translate .25s ease; }
.js .code-panel.is-ready .line.is-in { opacity: 1; translate: 0 0; }
.js .code-panel.is-ready .code-panel__output, .js .code-panel.is-ready .code-panel__status { opacity: 0; }
.js .code-panel.is-done .code-panel__output { opacity: 1; transition: opacity .2s ease; }
.js .code-panel.is-done .code-panel__status { opacity: 1; animation: stamp .45s cubic-bezier(.2, 1.6, .4, 1) .15s backwards; }
@keyframes stamp { from { opacity: 0; scale: 1.5; rotate: -8deg; } }

.hero__copy > * { animation: rise .7s cubic-bezier(.2, .7, .2, 1) backwards; }
.hero__copy > :nth-child(2) { animation-delay: .08s; }
.hero__copy > :nth-child(3) { animation-delay: .16s; }
.hero__copy > :nth-child(4) { animation-delay: .24s; }
.hero__visual { animation: rise .9s cubic-bezier(.2, .7, .2, 1) .2s backwards; }
.hero__bubble { animation: pop .5s cubic-bezier(.2, 1.6, .4, 1) .9s backwards; }
@keyframes rise { from { opacity: 0; translate: 0 22px; } }
@keyframes pop { from { opacity: 0; scale: .4; } }

@media (max-width: 1259px) {
  .menu-toggle { display: inline-flex; }
  .site-menu { position: absolute; inset: 100% 0 auto; display: none; flex-direction: column; align-items: stretch; gap: 1.25rem; margin: 0; padding: 1.25rem 1.5rem 1.75rem; background: var(--white); border-bottom: var(--stroke); box-shadow: 0 18px 30px rgb(12 31 49 / 16%); }
  .site-menu.is-open { display: flex; }
  .main-nav { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav a { padding: .8rem 0; border-bottom: 1px solid var(--line); font-size: 1.1rem; }
  .main-nav > a::after, .nav-group > summary::after { display: none; }
  .nav-group > summary { display: flex; justify-content: space-between; padding: .8rem 0; border-bottom: 1px solid var(--line); font-size: 1.1rem; }
  .nav-group > ul { position: static; min-width: 0; padding: .3rem 0 .5rem 1rem; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; box-shadow: none; }
  .nav-group > ul a { padding: .55rem .6rem; font-size: 1rem; }
  .lang { align-self: flex-start; }
  .lang__list { position: static; width: auto; max-width: none; max-height: 16rem; margin-top: .6rem; box-shadow: none; }
  .site-menu__actions { flex-wrap: wrap; gap: .75rem; }
}

@media (max-width: 900px) {
  .hero__grid, .learn__grid, .split { grid-template-columns: minmax(0, 1fr); }
  .hero__visual { max-width: 620px; margin-top: 1rem; }
  .hero__shot { width: 100%; margin-left: 0; }
  .split--reverse .split__media { order: 0; }
  .split__media { max-width: 560px; }
  .expert-grid, .review-grid, .page-hero__grid, .contact, .training { grid-template-columns: minmax(0, 1fr); }
  .training__side { border-left: 0; border-top: var(--stroke); }
  .page-hero__media { max-width: 560px; }
  .review:nth-child(2) { margin-top: 0; }
  .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer__brand { grid-column: 1 / -1; }
  .product { grid-template-columns: minmax(0, 1fr); }
  .product__cover { max-width: 240px; }
}

@media (max-width: 560px) {
  .form__grid { grid-template-columns: minmax(0, 1fr); }
  body { font-size: 1rem; }
  .shell { width: min(var(--shell), 100% - 2rem); }
  .brand img { width: 200px; }
  .btn { white-space: normal; text-align: left; }
  .btn--small { white-space: nowrap; }
  .hero__bubble { top: -1.6rem; right: 0; font-size: 1.05rem; }
  .stats { grid-template-columns: minmax(0, 1fr); }
  .stat { flex-direction: row-reverse; align-items: baseline; justify-content: space-between; padding-block: .9rem; }
  .stat + .stat { border-left: 0; border-top: 2px dashed var(--line); }
  .offer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
  .offer__body { padding-inline: .9rem; }
  .offer__tag { margin-inline: .9rem; }
  .offer__title { font-size: 1.05rem; }
  .offer__price { font-size: .9rem; }
  .site-footer__grid { grid-template-columns: minmax(0, 1fr); }
  .prose, .page-cover, .shell--narrow, .shell--mid { width: min(760px, 100% - 2rem); }
  .syllabus { grid-template-columns: minmax(0, 1fr); }
  .syllabus__cover { max-width: 150px; }
  .course { grid-template-columns: 96px minmax(0, 1fr); gap: 1rem; padding: 1rem; }
  .accordion__item summary small { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; translate: none; }
}
