/* ============================================================
   sbor/ka — landing
   Strict 126px square module. No borders. Gutters via gap.
   Page width: 1512px = 12 × 126px modules.
   ============================================================ */

:root {
  --m: 126px;            /* module */
  --gap: 0px;            /* no gutters — modules butt directly */
  --pad: 24px;           /* inner padding equals 1/4 module */
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--sb-bone);
  color: var(--sb-ink);
  font-family: var(--sb-font-ui);
  overflow-x: clip;
}
a { color: inherit; text-decoration: none; }
button { border: 0; background: transparent; padding: 0; cursor: pointer; font: inherit; color: inherit; }
img, svg, canvas, video { display: block; max-width: 100%; }

/* ===== layout shell ===== */
.shell {
  width: calc(var(--m) * 12);
  max-width: calc(var(--m) * 12);
  margin: 0 auto;
  background: var(--sb-bone);
  display: flex; flex-direction: column;
  gap: var(--m);
  padding: 0;
}
.shell > * { max-width: 100%; }
.shell > .nav { max-width: none; }

.shell :where(
  .section,
  .section-head,
  .hero,
  .courses,
  .jur,
  .free-banner,
  .media,
  .events,
  .bigcta,
  .footer-top,
  .footer-cols,
  .footer-bottom,
  .stats,
  .courses-grid,
  .media-list,
  .events-grid,
  [class$="-grid"]
) > * {
  min-width: 0;
  max-width: 100%;
}

/* ===== nav ===== */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: grid;
  grid-template-columns: repeat(12, var(--m));
  grid-template-rows: var(--m);
  height: var(--m);
  background: var(--sb-bone);
  gap: 0;
}
.nav .brand {
  grid-column: 1 / 3;
  display: flex; align-items: center; padding: 0 var(--pad);
  cursor: pointer;
}
.nav .brand img { height: 32px; display: block; }

.nav .links {
  grid-column: 3 / 9;
  display: flex; align-items: center;
}
.nav .links a {
  display: flex; align-items: center;
  height: var(--m);
  padding: 0 28px;
  font-family: var(--sb-font-display);
  font-size: 22px;
  letter-spacing: -0.02em;
  text-transform: lowercase;
  color: var(--sb-ink);
  transition: color 120ms cubic-bezier(0.2,0,0,1), background 120ms cubic-bezier(0.2,0,0,1);
}
.nav .links a:hover { color: var(--sb-red); }
.nav .links a.active { background: var(--sb-ink); color: var(--sb-bone); }

.nav .end {
  grid-column: 9 / 13;
  display: flex; justify-content: flex-end; align-items: center;
}
.nav .nav-kit {
  font-family: var(--sb-font-ui); font-size: 12px; letter-spacing: 0.02em;
  text-transform: lowercase; color: var(--sb-ink); opacity: 0.55;
  padding: 0 20px; white-space: nowrap;
  transition: opacity 120ms, color 120ms;
}
.nav .nav-kit:hover { opacity: 1; color: var(--sb-red); }
.nav .lang {
  display: grid;
  grid-template-columns: repeat(2, calc(var(--m) / 2));
  grid-template-rows: repeat(2, calc(var(--m) / 2));
  width: var(--m);
  height: var(--m);
  font-family: var(--sb-font-ui);
  font-size: 15px; letter-spacing: 0.02em;
  text-transform: lowercase;
}
.nav .lang button {
  display: flex; align-items: center; justify-content: center;
  transition: background 120ms cubic-bezier(0.2,0,0,1), color 120ms;
}
.nav .lang button:hover { background: var(--sb-yellow); }
.nav .lang button.on { background: var(--sb-ink); color: var(--sb-bone); }
.nav-toggle,
.nav-panel,
.nav-backdrop { display: none; }

.nav-toggle {
  width: var(--m);
  height: var(--m);
  align-items: center;
  justify-content: center;
  transition: background 120ms cubic-bezier(0.2,0,0,1), color 120ms cubic-bezier(0.2,0,0,1);
}

.nav-toggle:hover { background: var(--sb-yellow); }
.nav.mobile-open .nav-toggle { background: transparent; color: var(--sb-ink); }

.nav-toggle-bars {
  width: 24px;
  height: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.nav-toggle-bars span {
  display: block;
  height: 2px;
  background: currentColor;
  transform-origin: center;
  transition: transform 160ms cubic-bezier(0.2,0,0,1), opacity 160ms cubic-bezier(0.2,0,0,1);
}

.nav.mobile-open .nav-toggle-bars span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav.mobile-open .nav-toggle-bars span:nth-child(2) { opacity: 0; }
.nav.mobile-open .nav-toggle-bars span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.nav-panel {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  max-height: calc(100dvh - var(--m));
  overflow: auto;
  background: var(--sb-bone);
  color: var(--sb-ink);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
  transition: opacity 160ms cubic-bezier(0.2,0,0,1), transform 160ms cubic-bezier(0.2,0,0,1);
}

.nav.mobile-open .nav-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-panel-main {
  display: flex;
  flex-direction: column;
}

.nav-panel-link {
  min-height: var(--m);
  padding: 0 var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--sb-font-display);
  font-size: 30px;
  line-height: 0.9;
  letter-spacing: -0.03em;
  text-transform: lowercase;
  transition: background 120ms cubic-bezier(0.2,0,0,1), color 120ms cubic-bezier(0.2,0,0,1);
}

.nav-panel-link:hover { background: var(--sb-yellow); }
.nav-panel-link.active { background: var(--sb-ink); color: var(--sb-bone); }
.nav-panel-link .arr { font-size: 26px; }

.nav-panel-lang {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.nav-panel-lang button {
  min-height: calc(var(--m) * 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sb-font-ui);
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  transition: background 120ms cubic-bezier(0.2,0,0,1), color 120ms cubic-bezier(0.2,0,0,1);
}

.nav-panel-lang button:hover { background: var(--sb-yellow); }
.nav-panel-lang button.on { background: var(--sb-ink); color: var(--sb-bone); }

.nav-panel-kit {
  min-height: calc(var(--m) * 0.72);
  padding: 0 var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--sb-font-ui);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  opacity: 0.65;
  transition: background 120ms cubic-bezier(0.2,0,0,1), color 120ms cubic-bezier(0.2,0,0,1), opacity 120ms cubic-bezier(0.2,0,0,1);
}

.nav-panel-kit:hover {
  background: var(--sb-yellow);
  color: var(--sb-ink);
  opacity: 1;
}

.nav-backdrop {
  position: fixed;
  inset: var(--m) 0 0;
  background: rgba(17, 17, 17, 0.08);
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms cubic-bezier(0.2,0,0,1);
}

.nav.mobile-open .nav-backdrop {
  opacity: 1;
  pointer-events: auto;
}

/* ===== shared section frame ===== */
.section {
  position: relative;
}

/* section heads sit OUTSIDE colored panels, on dark page bg */
.section-head {
  display: grid;
  grid-template-columns: repeat(12, var(--m));
  align-items: end;
  padding-bottom: var(--pad);
  color: var(--sb-ink);
}
.section-head .num {
  grid-column: 1 / 3;
  padding-left: var(--pad);
  font-family: var(--sb-font-display);
  font-size: 22px; letter-spacing: -0.02em;
  color: var(--sb-red);
}
.section-head .lab {
  grid-column: 3 / 9;
  font-family: var(--sb-font-display);
  font-size: 22px; letter-spacing: -0.02em;
  text-transform: lowercase;
  color: var(--sb-ink); opacity: 0.55;
}
.section-head .meta {
  grid-column: 9 / 13;
  padding-right: var(--pad);
  font-family: var(--sb-font-ui);
  font-size: 12px; letter-spacing: 0.02em;
  text-transform: lowercase;
  color: var(--sb-ink); opacity: 0.55;
  text-align: right;
}

/* ===== hero =====
   12 cols × 5 rows of 126px = 1512 × 630
*/
.hero {
  display: grid;
  grid-template-columns: repeat(12, var(--m));
  grid-auto-rows: var(--m);
  gap: var(--gap);
  background: var(--sb-bone);
}
.hero > * { background: var(--sb-bone); }

.hero-head {
  grid-column: 1 / 9;
  grid-row: 1 / 4;
  padding: var(--pad) var(--pad) var(--pad);
  display: flex; flex-direction: column; gap: 28px;
  justify-content: flex-end;
}
.hero-head .stamp {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--sb-font-ui);
  font-size: 12px; letter-spacing: 0.04em;
  text-transform: lowercase;
}
.hero-head .stamp .dot { width: 8px; height: 8px; background: var(--sb-red); display: inline-block; }
.hero-h1 {
  font-family: var(--sb-font-display);
  font-weight: 400;
  font-size: 120px;
  line-height: 0.82;
  letter-spacing: -0.045em;
  margin: 0;
  text-wrap: balance;
}
.hero-h1 em { font-style: normal; color: var(--sb-red); }

.hero-pattern {
  grid-column: 9 / 13;
  grid-row: 1 / 4;
  position: relative;
  overflow: hidden;
  background: var(--sb-coral);
}

.hero-body {
  grid-column: 1 / 7;
  grid-row: 4 / 6;
  padding: var(--pad);
  display: flex; flex-direction: column; gap: 24px;
  justify-content: center;
}
.hero-body p {
  font-family: var(--sb-font-display);
  font-size: 28px; line-height: 1.0;
  letter-spacing: -0.025em;
  margin: 0;
  max-width: 580px;
}

.hero-ctas {
  grid-column: 7 / 13;
  grid-row: 4 / 6;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
}
.hero-ctas .cta {
  padding: var(--pad);
  display: flex; flex-direction: column; justify-content: space-between;
  gap: 16px;
  font-family: var(--sb-font-display);
  text-align: left;
  cursor: pointer;
  transition: background 140ms cubic-bezier(0.2,0,0,1), color 140ms;
  position: relative;
}
.hero-ctas .cta .lab {
  font-family: var(--sb-font-ui); font-size: 12px;
  letter-spacing: 0.04em; text-transform: lowercase;
}
.hero-ctas .cta .big {
  font-size: 48px; line-height: 0.88; letter-spacing: -0.04em;
}
.hero-ctas .cta .arr {
  font-family: var(--sb-font-display); font-size: 30px;
  letter-spacing: -0.02em;
  align-self: flex-end;
}
.hero-ctas .cta.primary { background: var(--sb-ink); color: var(--sb-bone); }
.hero-ctas .cta.primary:hover { background: var(--sb-red); }
.hero-ctas .cta.secondary { background: var(--sb-red); color: var(--sb-bone); }
.hero-ctas .cta.secondary:hover { background: var(--sb-ink); }

/* ===== stats =====
   8 stats? No — 4 stats × 3 cols each = 12 cols, 2 rows of 126px = 252
*/
.stats {
  display: grid;
  grid-template-columns: repeat(4, calc(var(--m) * 3));
  grid-auto-rows: calc(var(--m) * 2);
  gap: var(--gap);
}
/* stat cards themselves: see css/ui-kit.css → .stat-card (UI.StatCard).
   On the landing the .num is sized up to fill the 252px tall module. */
.stats .stat-card { min-height: 0; }
.stats .stat-card .num { font-size: 110px; }

/* ===== courses =====
   12 cols. Intro: cols 1-6 × 4 rows. Grid: cols 7-12, 3×2 of 126 squares
*/
.courses {
  display: grid;
  grid-template-columns: repeat(12, var(--m));
  grid-template-rows: repeat(4, var(--m));
  gap: var(--gap);
  height: calc(var(--m) * 4);
}
.courses-intro { min-height: 0; overflow: hidden; }
.courses-intro {
  grid-column: 1 / 7;
  grid-row: 1 / 5;
  padding: var(--pad);
  display: flex; flex-direction: column; gap: 28px;
  background: var(--sb-bone);
  position: relative;
}
.courses-intro .kicker {
  font-family: var(--sb-font-display); font-size: 22px;
  letter-spacing: -0.02em; color: var(--sb-red);
}
.courses-intro h2 {
  font-family: var(--sb-font-display); font-weight: 400;
  font-size: 84px; line-height: 0.78; letter-spacing: -0.04em;
  margin: 0;
}
.courses-intro p {
  font-family: var(--sb-font-display);
  font-size: 26px; line-height: 1.0;
  letter-spacing: -0.025em;
  max-width: 480px;
}
.courses-intro .cta-wrap {
  margin-top: auto;
  display: flex; gap: var(--gap);
}

/* buttons live in the kit: css/ui-kit.css → .btn (UI.Button). */

/* level cards: 2x2 each = 252×252 squares; 3 across × 2 down */
.courses-grid {
  grid-column: 7 / 13;
  grid-row: 1 / 5;
  display: grid;
  grid-template-columns: repeat(3, calc(var(--m) * 2));
  grid-template-rows: repeat(2, calc(var(--m) * 2));
  gap: var(--gap);
  min-height: 0;
}
/* course level cards live in the kit: css/ui-kit.css → .course-card (UI.CourseCard).
   On the landing the level code is sized up to fill the 252px module. */
.courses-grid .course-card { min-height: 0; }
.courses-grid .course-card .code { font-size: 87px; }
.courses-grid .course-card.bone {
  background: var(--sb-bronze);
  color: var(--sb-bone);
}
.courses-grid .course-card.bone:hover .code { color: var(--sb-yellow); }

/* ===== jur help =====
   pattern 1-4 (504 wide × 504 tall = 4×4 of 126); text 5-8; services 9-12
*/
.jur {
  display: grid;
  grid-template-columns: repeat(12, var(--m));
  grid-template-rows: repeat(4, var(--m));
  gap: var(--gap);
  height: calc(var(--m) * 4);
}
.jur-text, .jur-services { min-height: 0; overflow: hidden; }
.jur-pattern {
  grid-column: 1 / 5;
  grid-row: 1 / 5;
  background: var(--sb-bone);
  overflow: hidden;
}

.jur-text {
  grid-column: 5 / 9;
  grid-row: 1 / 5;
  padding: var(--pad);
  display: flex; flex-direction: column; gap: 24px;
  background: var(--sb-bone);
}
.jur-text .kicker {
  font-family: var(--sb-font-display); font-size: 22px;
  letter-spacing: -0.02em; color: var(--sb-red);
}
.jur-text h2 {
  font-family: var(--sb-font-display); font-weight: 400;
  font-size: 70px; line-height: 0.78; letter-spacing: -0.04em;
  margin: 0;
}
.jur-text p {
  font-family: var(--sb-font-display);
  font-size: 22px; line-height: 1.05; letter-spacing: -0.02em;
  margin: 0;
  max-width: 380px;
}
.jur-text .cta-wrap { margin-top: auto; display: flex; gap: var(--gap); }

.jur-services {
  grid-column: 9 / 13;
  grid-row: 1 / 5;
  display: grid;
  grid-template-rows: repeat(4, 1fr);
  gap: var(--gap);
  background: var(--sb-bone);
}
.jur-svc {
  padding: var(--pad);
  display: flex; flex-direction: column; gap: 8px;
  background: var(--sb-bone);
  position: relative;
  cursor: pointer;
  transition: background 120ms cubic-bezier(0.2,0,0,1);
}
.jur-svc:hover { background: var(--sb-yellow); }
.jur-svc .name {
  font-family: var(--sb-font-display); font-weight: 400;
  font-size: 26px; line-height: 0.95; letter-spacing: -0.03em;
}
.jur-svc .desc {
  font-family: var(--sb-font-ui); font-size: 13px;
  line-height: 1.4; letter-spacing: 0;
  max-width: 320px; opacity: 0.7;
}
.jur-svc .arr {
  position: absolute; right: var(--pad); top: var(--pad);
  font-family: var(--sb-font-display); font-size: 22px;
}

/* free consultation banner: 12×2 of 126 */
.free-banner {
  display: grid;
  grid-template-columns: repeat(12, var(--m));
  grid-template-rows: calc(var(--m) * 2);
  align-items: end;
  gap: 0;
  padding: 0;
  background: var(--sb-periwinkle);
  height: calc(var(--m) * 2);
}
.free-banner .l-wrap { padding: var(--pad); }
.free-banner .right { padding: var(--pad); }
.free-banner .l-wrap { grid-column: 1 / 9; align-self: end; }
.free-banner .l { font-family: var(--sb-font-ui); font-size: 12px; letter-spacing: 0.04em; text-transform: lowercase; color: var(--sb-bone); margin-bottom: 8px; }
.free-banner .word {
  font-family: var(--sb-font-display);
  font-size: 110px; line-height: 0.82; letter-spacing: -0.045em;
  color: var(--sb-bone);
}
.free-banner .right {
  grid-column: 9 / 13;
  display: flex; gap: 8px; flex-wrap: wrap;
  justify-content: flex-end;
  align-self: end;
  align-items: flex-end;
}
.free-banner .right .pill { padding: 8px 14px; background: var(--sb-bone); color: var(--sb-ink); font-family: var(--sb-font-display); font-size: 17px; letter-spacing: -0.02em; }

/* ===== media =====
   head 1-8 (4×2 = 504×252) + thursday 9-12 (4×2)
   then media-list: 4 cards × 3cols each × 3 rows tall  = 12×3
*/
.media {
  display: grid;
  grid-template-columns: repeat(12, var(--m));
  grid-template-rows: repeat(2, var(--m)) repeat(3, var(--m));
  gap: var(--gap);
  background: var(--sb-bone);
  height: calc(var(--m) * 5);
}
.media-head, .media-thursday { min-height: 0; overflow: hidden; }
.media-head {
  grid-column: 1 / 9;
  grid-row: 1 / 3;
  padding: var(--pad);
  display: flex; flex-direction: column; gap: 24px; justify-content: center;
  background: var(--sb-bone);
}
.media-head h2 {
  font-family: var(--sb-font-display); font-weight: 400;
  font-size: 84px; line-height: 0.78; letter-spacing: -0.04em;
  margin: 0;
}
.media-head .lead {
  font-family: var(--sb-font-display);
  font-size: 26px; line-height: 1.0; letter-spacing: -0.025em;
  max-width: 540px;
}

.media-thursday {
  grid-column: 9 / 13;
  grid-row: 1 / 3;
  background: var(--sb-teal);
  color: var(--sb-bone);
  padding: var(--pad);
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 18px;
}
.media-thursday .l { font-family: var(--sb-font-ui); font-size: 12px; letter-spacing: 0.04em; text-transform: lowercase; }
.media-thursday .day {
  font-family: var(--sb-font-display);
  font-size: 84px; line-height: 0.78; letter-spacing: -0.04em;
  color: var(--sb-ink);
  align-self: end;
}
.media-thursday .btn {
  align-self: end;
  justify-self: start;
}

/* 4 cards, each 3 cols wide × 3 rows tall = 378×378 */
.media-list {
  grid-column: 1 / 13;
  grid-row: 3 / 6;
  display: grid;
  grid-template-columns: repeat(4, calc(var(--m) * 3));
  grid-template-rows: calc(var(--m) * 3);
  gap: var(--gap);
  height: calc(var(--m) * 3);
}
.media-list .art-card.bone { background: var(--sb-sky); }
/* editorial cards live in the kit: css/ui-kit.css → .art-card (UI.ArtCard). */

/* ===== events =====
   head 12×2; then 4 cards × 3cols × 3 rows
*/
.events {
  display: grid;
  grid-template-columns: repeat(12, var(--m));
  grid-template-rows: repeat(2, var(--m)) calc(var(--m) * 3);
  gap: var(--gap);
  height: calc(var(--m) * 5);
}
.events-head { min-height: 0; overflow: hidden; }
.events-head {
  grid-column: 1 / 13;
  grid-row: 1 / 3;
  padding: var(--pad);
  display: flex; align-items: end; justify-content: space-between;
  gap: 32px;
  background: var(--sb-bone);
}
.events-head h2 {
  font-family: var(--sb-font-display); font-weight: 400;
  font-size: 72px; line-height: 0.78; letter-spacing: -0.04em;
  margin: 0;
}
.events-head .lead {
  font-family: var(--sb-font-display);
  font-size: 22px; line-height: 1.05; letter-spacing: -0.02em;
  max-width: 380px;
}

.events-grid {
  grid-column: 1 / 13;
  grid-row: 3 / 6;
  display: grid;
  grid-template-columns: repeat(4, calc(var(--m) * 3));
  grid-template-rows: calc(var(--m) * 3);
  gap: var(--gap);
  height: calc(var(--m) * 3);
}
/* event cards live in the kit: css/ui-kit.css → .event-card (UI.EventCard). */

/* ===== big cta =====
   art 1-5 × 4 rows; text 5-12 × 4 rows
*/
.bigcta {
  display: grid;
  grid-template-columns: repeat(12, var(--m));
  grid-template-rows: repeat(4, var(--m));
  gap: var(--gap);
  background: var(--sb-ink);
  color: var(--sb-bone);
  height: calc(var(--m) * 4);
}
.bigcta-text { min-height: 0; overflow: hidden; }
.bigcta-art {
  grid-column: 1 / 5;
  grid-row: 1 / 5;
  position: relative;
  overflow: hidden;
  background: var(--sb-coral);
}
.bigcta-text {
  grid-column: 5 / 13;
  grid-row: 1 / 5;
  padding: var(--pad);
  display: flex; flex-direction: column; gap: 24px;
  justify-content: space-between;
  background: var(--sb-ink);
}
.bigcta-text h2 {
  font-family: var(--sb-font-display); font-weight: 400;
  font-size: 110px; line-height: 0.82; letter-spacing: -0.045em;
  margin: 0;
}
.bigcta-text h2 em { font-style: normal; color: var(--sb-yellow); }
.bigcta-text .lead {
  font-family: var(--sb-font-display);
  font-size: 28px; line-height: 1.0; letter-spacing: -0.025em;
  max-width: 540px; opacity: 0.85;
}
.bigcta-text .actions { display: flex; gap: var(--gap); flex-wrap: wrap; }
/* .btn.bone / .btn.yellow-cta / .btn.ghost-light now live in css/ui-kit.css */

/* ===== footer ===== */
.footer {
  background: var(--sb-bone);
}
.footer-top {
  display: grid;
  grid-template-columns: repeat(12, var(--m));
  grid-template-rows: repeat(3, var(--m));
  gap: var(--gap);
  background: var(--sb-bone);
  height: calc(var(--m) * 3);
}
.footer-brand, .footer-cols { min-height: 0; overflow: hidden; }
.footer-brand {
  grid-column: 1 / 5;
  grid-row: 1 / 4;
  padding: var(--pad);
  background: var(--sb-bone);
  display: flex; flex-direction: column; gap: 24px;
  justify-content: space-between;
}
.footer-brand .mark { line-height: 0; }
.footer-brand .mark img { display: block; width: auto; height: 40px; }
.footer-brand .tag { font-family: var(--sb-font-display); font-size: 22px; letter-spacing: -0.02em; max-width: 320px; line-height: 1.05; }
.footer-brand .small { font-family: var(--sb-font-ui); font-size: 12px; letter-spacing: 0.02em; text-transform: lowercase; opacity: 0.55; }

.footer-cols {
  grid-column: 5 / 13;
  grid-row: 1 / 4;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
}
.footer-col {
  padding: var(--pad);
  background: var(--sb-bone);
  display: flex; flex-direction: column; gap: 12px;
}
.footer-col .h {
  font-family: var(--sb-font-ui); font-size: 12px;
  letter-spacing: 0.04em; text-transform: lowercase;
  opacity: 0.55; margin-bottom: 8px;
}
.footer-col a {
  font-family: var(--sb-font-display); font-size: 22px;
  letter-spacing: -0.02em; line-height: 1; text-transform: lowercase;
  transition: color 120ms cubic-bezier(0.2,0,0,1);
}
.footer-col a:hover { color: var(--sb-red); }

.footer-bottom {
  grid-column: 1 / 13;
  grid-row: 4 / 5;
  display: flex;
  justify-content: space-between;
  padding: 0 var(--pad);
  height: var(--m);
  background: var(--sb-bone);
  align-items: center;
}
.footer-bottom .leg {
  font-family: var(--sb-font-ui); font-size: 12px; letter-spacing: 0.02em;
  text-transform: lowercase; opacity: 0.65;
  display: flex; gap: 24px;
}
.footer-tools {
  display: flex;
  align-items: center;
  gap: 24px;
}
.footer-kit,
.footer-bottom .insta {
  font-family: var(--sb-font-ui); font-size: 12px; letter-spacing: 0.02em;
  text-transform: lowercase;
}
.footer-kit {
  opacity: 0.65;
  transition: color 120ms cubic-bezier(0.2,0,0,1), opacity 120ms cubic-bezier(0.2,0,0,1);
}
.footer-kit:hover {
  color: var(--sb-red);
  opacity: 1;
}
.footer-bottom .insta {
  text-align: right;
}
.footer-bottom .insta a:hover { color: var(--sb-red); }

/* ===== motif primitives ===== */
.dots-quad { width: 100%; height: 100%; position: relative; overflow: hidden; }
.dots-quad .e { position: absolute; width: 50%; height: 50%; border-radius: 50%; }
.dots-quad .e:nth-child(1) { left: -25%; top: -25%; }
.dots-quad .e:nth-child(2) { right: -25%; top: -25%; }
.dots-quad .e:nth-child(3) { left: -25%; bottom: -25%; }
.dots-quad .e:nth-child(4) { right: -25%; bottom: -25%; }

.tile-stripes-h {
  width: 100%; height: 100%;
  background: repeating-linear-gradient(to bottom,
    var(--c1, var(--sb-red)) 0 12.5%,
    var(--c2, var(--sb-yellow)) 12.5% 25%);
}
.tile-stripes-v {
  width: 100%; height: 100%;
  background: repeating-linear-gradient(to right,
    var(--c1, var(--sb-red)) 0 12.5%,
    var(--c2, var(--sb-yellow)) 12.5% 25%);
}

.tile-checker-3 {
  display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr);
  width: 100%; height: 100%;
}
.tile-grid-3 { display: grid; grid-template-columns: repeat(3,1fr); grid-template-rows: repeat(3,1fr); width: 100%; height: 100%; }

.minisq { width: 14px; height: 14px; display: inline-block; }

@media (max-width: 1511px) and (min-width: 901px) {
  :root {
    --m: calc((100vw - 32px) / 12);
    --pad: clamp(16px, calc(var(--m) * 0.18), 24px);
  }
}

@media (max-width: 1200px) and (min-width: 901px) {
  .hero-h1 { font-size: clamp(78px, 8.8vw, 104px); }
  .hero-body p,
  .courses-intro p,
  .media-head .lead,
  .bigcta-text .lead { font-size: 24px; }
  .courses-intro h2,
  .media-head h2 { font-size: clamp(64px, 6.8vw, 78px); }
  .jur-text h2,
  .events-head h2 { font-size: clamp(56px, 5.8vw, 68px); }
  .media-thursday .day { font-size: clamp(64px, 6.6vw, 78px); }
  .free-banner .word,
  .bigcta-text h2 { font-size: clamp(78px, 8.6vw, 98px); }
  .stats .stat-card .num { font-size: clamp(78px, 7.5vw, 98px); }

  .footer-top {
    height: auto;
    grid-template-rows: auto auto;
  }

  .footer-brand {
    grid-column: 1 / 5;
    grid-row: 1 / 2;
    min-height: calc(var(--m) * 2);
  }

  .footer-cols {
    grid-column: 1 / 13;
    grid-row: 2 / 3;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-bottom {
    height: auto;
    min-height: calc(var(--m) * 0.85);
    padding-top: 18px;
    padding-bottom: 18px;
  }
}

@media (max-width: 900px) {
  :root {
    --m: calc((100vw - 32px) / 4);
    --pad: 16px;
    --nav-h: clamp(72px, calc(var(--m) * 0.72), 88px);
    --section-gap-mobile: clamp(28px, calc(var(--m) * 0.38), 40px);
    --section-head-bottom-mobile: 8px;
    --section-title-min-mobile: clamp(88px, calc(var(--m) * 1.15), 120px);
    --hero-head-min-mobile: clamp(180px, calc(var(--m) * 2.25), 280px);
  }

  .shell {
    width: 100%;
    max-width: none;
    gap: var(--section-gap-mobile);
    padding: 0 16px 0;
  }

  .nav {
    position: sticky;
    top: 0;
    left: 0;
    width: auto;
    max-width: none;
    margin-left: -16px;
    margin-right: -16px;
    grid-template-columns: minmax(0, 1fr) var(--nav-h);
    grid-template-rows: var(--nav-h);
    height: var(--nav-h);
    align-items: stretch;
    overflow: visible;
    z-index: 200;
    background: var(--sb-bone);
  }

  .sb-menu-open .shell {
    padding-top: var(--nav-h);
  }

  .sb-menu-open .nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: auto;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
  }

  .nav .brand {
    grid-column: 1 / 2;
    padding: 0 var(--pad);
    position: relative;
    z-index: 3;
  }

  .nav .brand img { height: 22px; }

  .nav .links,
  .nav .end { display: none; }

  .nav-toggle {
    grid-column: 2 / 3;
    display: flex;
    position: relative;
    z-index: 3;
    width: var(--nav-h);
    height: var(--nav-h);
  }

  .nav-panel,
  .nav-backdrop { display: block; }

  .nav-panel {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    width: auto;
    max-height: calc(100dvh - var(--nav-h));
    z-index: 190;
    border-top: 1px solid rgba(17, 17, 17, 0.08);
    box-shadow: 0 1px 0 rgba(0,0,0,0.08), 0 20px 40px rgba(0,0,0,0.08);
  }

  .nav .brand,
  .nav-toggle { z-index: 201; }

  .nav-backdrop {
    z-index: 180;
    inset: var(--nav-h) 0 0;
  }

  .section-head {
    width: 100%;
    max-width: 100%;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    row-gap: 8px;
    padding-bottom: var(--section-head-bottom-mobile);
  }

  .section-head .num {
    grid-column: 1 / 2;
    padding-left: var(--pad);
    font-size: 20px;
  }

  .section-head .lab {
    grid-column: 2 / 5;
    font-size: 20px;
  }

  .section-head .meta {
    grid-column: 1 / 5;
    padding: 0 var(--pad);
    text-align: left;
  }

  .hero {
    width: 100%;
    max-width: 100%;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: minmax(var(--m), auto);
    height: auto;
  }

  .hero-head {
    grid-column: 1 / 5;
    grid-row: 1 / 2;
    gap: 14px;
    min-height: 0;
    justify-content: flex-start;
  }

  .hero-h1 {
    font-size: clamp(42px, 16vw, 60px);
    line-height: 0.86;
    letter-spacing: -0.035em;
    overflow-wrap: anywhere;
    text-wrap: balance;
  }

  .hero-head,
  .hero-body,
  .courses-intro,
  .jur-text,
  .jur-services,
  .media-head,
  .media-thursday,
  .events-head,
  .bigcta-text,
  .footer-brand,
  .footer-cols {
    overflow: visible;
  }

  .hero-pattern {
    grid-column: 1 / 5;
    grid-row: 2 / 3;
    min-height: 0;
    height: auto;
    aspect-ratio: 4 / 3;
    padding: 0 var(--pad);
    align-self: start;
  }

  .hero-body {
    grid-column: 1 / 5;
    grid-row: 3 / 4;
  }

  .hero-body p {
    font-size: 18px;
    line-height: 1.08;
    max-width: none;
    overflow-wrap: anywhere;
  }

  .hero-ctas {
    grid-column: 1 / 5;
    grid-row: 4 / 6;
    grid-template-columns: 1fr;
  }

  .hero-ctas .cta { min-height: calc(var(--m) * 1.35); }
  .hero-ctas .cta .big { font-size: 32px; }

  .stats {
    width: 100%;
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }

  .courses {
    width: 100%;
    max-width: 100%;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: minmax(var(--m), auto);
    grid-template-rows: none;
    height: auto;
  }

  .courses-intro {
    grid-column: 1 / 5;
    grid-row: 1 / 4;
    gap: 18px;
  }

  .courses-intro h2 {
    font-size: clamp(42px, 15vw, 54px);
    line-height: 0.86;
    letter-spacing: -0.035em;
  }

  .courses-intro p {
    font-size: 18px;
    line-height: 1.08;
    max-width: none;
    overflow-wrap: anywhere;
  }

  .courses-intro .cta-wrap,
  .jur-text .cta-wrap,
  .bigcta-text .actions {
    flex-direction: column;
    align-items: stretch;
  }

  .courses-intro .cta-wrap .btn,
  .jur-text .cta-wrap .btn,
  .bigcta-text .actions .btn {
    width: 100%;
    justify-content: space-between;
  }

  .courses-grid {
    grid-column: 1 / 5;
    grid-row: 4 / 10;
    grid-template-columns: 1fr;
    grid-template-rows: none;
    grid-auto-rows: minmax(calc(var(--m) * 1.85), auto);
  }

  .jur {
    width: 100%;
    max-width: 100%;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: minmax(var(--m), auto);
    grid-template-rows: none;
    height: auto;
  }

  .jur-pattern {
    grid-column: 1 / 5;
    grid-row: 1 / 3;
    min-height: calc(var(--m) * 2);
  }

  .jur-text {
    grid-column: 1 / 5;
    grid-row: 3 / 6;
    gap: 18px;
  }

  .jur-text h2 {
    font-size: clamp(40px, 14vw, 50px);
    line-height: 0.86;
    letter-spacing: -0.035em;
  }

  .jur-text p {
    font-size: 18px;
    line-height: 1.08;
    max-width: none;
    overflow-wrap: anywhere;
  }

  .jur-services {
    grid-column: 1 / 5;
    grid-row: 6 / 10;
    grid-template-columns: repeat(4, var(--m));
    grid-template-rows: none;
    grid-auto-rows: minmax(var(--m), auto);
  }

  .jur-svc {
    grid-column: 1 / 5;
    min-height: calc(var(--m) * 1.2);
  }

  .jur-svc .name { font-size: 22px; }

  .free-banner {
    width: 100%;
    max-width: 100%;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: none;
    height: auto;
  }

  .free-banner .l-wrap {
    grid-column: 1 / 5;
    align-self: stretch;
  }

  .free-banner .word { font-size: clamp(42px, 16vw, 60px); }

  .free-banner .right {
    grid-column: 1 / 5;
    justify-content: flex-start;
    align-self: stretch;
    padding-top: 0;
  }

  .free-banner .right .pill {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .media {
    width: 100%;
    max-width: 100%;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: minmax(var(--m), auto);
    grid-template-rows: none;
    height: auto;
  }

  .media-head {
    grid-column: 1 / 5;
    grid-row: 1 / 3;
    gap: 18px;
  }

  .media-head h2 {
    font-size: clamp(42px, 15vw, 56px);
    line-height: 0.86;
    letter-spacing: -0.035em;
  }

  .media-head .lead {
    font-size: 18px;
    line-height: 1.08;
    max-width: none;
    overflow-wrap: anywhere;
  }

  .media-thursday {
    grid-column: 1 / 5;
    grid-row: 3 / 5;
  }

  .media-thursday .day {
    font-size: clamp(42px, 17vw, 58px);
    line-height: 0.86;
    letter-spacing: -0.035em;
  }

  .media-thursday .btn {
    width: 100%;
    justify-content: space-between;
  }

  .media-list {
    grid-column: 1 / 5;
    grid-row: 5 / 9;
    grid-template-columns: 1fr;
    grid-template-rows: none;
    grid-auto-rows: minmax(calc(var(--m) * 2.1), auto);
    height: auto;
  }

  .events {
    width: 100%;
    max-width: 100%;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: minmax(var(--m), auto);
    grid-template-rows: none;
    height: auto;
  }

  .events-head {
    grid-column: 1 / 5;
    grid-row: 1 / 3;
    align-items: flex-start;
    justify-content: flex-end;
    flex-direction: column;
    gap: 16px;
  }

  .events-head h2 {
    font-size: clamp(40px, 14vw, 52px);
    line-height: 0.86;
    letter-spacing: -0.035em;
  }

  .events-head .lead {
    font-size: 18px;
    line-height: 1.08;
    max-width: none;
    overflow-wrap: anywhere;
  }

  .events-grid {
    grid-column: 1 / 5;
    grid-row: 3 / 7;
    grid-template-columns: 1fr;
    grid-template-rows: none;
    grid-auto-rows: minmax(calc(var(--m) * 2.15), auto);
    height: auto;
  }

  .bigcta {
    width: 100%;
    max-width: 100%;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: minmax(var(--m), auto);
    grid-template-rows: none;
    height: auto;
  }

  .bigcta-art {
    grid-column: 1 / 5;
    grid-row: 1 / 3;
    min-height: calc(var(--m) * 2);
  }

  .bigcta-text {
    grid-column: 1 / 5;
    grid-row: 3 / 7;
    gap: 18px;
  }

  .bigcta-text h2 {
    font-size: clamp(42px, 16vw, 58px);
    line-height: 0.86;
    letter-spacing: -0.035em;
  }

  .bigcta-text .lead {
    font-size: 18px;
    line-height: 1.08;
    max-width: none;
    overflow-wrap: anywhere;
  }

  .footer-top {
    width: 100%;
    max-width: 100%;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: none;
    grid-auto-rows: auto;
    height: auto;
  }

  .footer-brand {
    grid-column: 1 / 5;
    grid-row: auto;
    gap: 18px;
    min-height: calc(var(--m) * 2);
  }

  .footer-brand .mark img { height: 32px; }
  .footer-brand .tag { font-size: 20px; }

  .footer-brand .tag,
  .footer-col a,
  .footer-bottom .leg,
  .footer-kit,
  .footer-bottom .insta {
    overflow-wrap: anywhere;
  }

  .footer-cols {
    grid-column: 1 / 5;
    grid-row: auto;
    grid-template-columns: 1fr;
  }

  .footer-col {
    min-height: calc(var(--m) * 1.35);
    justify-content: flex-start;
  }

  .footer-col a {
    font-size: 18px;
    line-height: 0.95;
  }

  .footer-bottom {
    height: auto;
    padding: 16px var(--pad) 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .footer-bottom .leg {
    flex-wrap: wrap;
    gap: 12px;
  }

  .footer-tools {
    flex-wrap: wrap;
    gap: 12px;
  }

  .footer-bottom .insta { text-align: left; }
}
