/* ============================================================
   EduRobotics Moldova — Homepage Redesign (standalone)
   Editorial/engineering aesthetic. Not layered on Bootstrap.
   ============================================================ */

:root {
  --red: #E4002B;
  --blue: #0033A0;
  --ink: #0A0A0A;
  --paper: #F5F3EE;
  --paper-2: #EBE7DD;
  --line: rgba(10, 10, 10, 0.14);
  --line-strong: rgba(10, 10, 10, 0.7);
  --mute: rgba(10, 10, 10, 0.55);

  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}
body { overflow-x: hidden; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* ====== Engineering grid backdrop ====== */
.grid-bg {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 40%, transparent 90%);
}

/* ====== Layout primitives ====== */
.page { position: relative; z-index: 1; }
.container-rw { max-width: 1480px; margin: 0 auto; padding: 0 32px; }

.mono { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mute); }
.mono-strong { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); }

/* ====== Top bar ====== */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
/* Two columns since the header carries no action button: identity left, navigation
   right. A centred nav in the leftover space would read as accidentally off-centre. */
.topbar-inner {
  display: grid; grid-template-columns: auto 1fr; align-items: center;
  gap: 40px; padding: 14px 32px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 34px; height: 34px; position: relative;
  display: grid; place-items: center;
  background: var(--ink); color: var(--paper);
  font-family: var(--font-mono); font-weight: 700; font-size: 13px;
}
.brand-mark::after {
  content: ''; position: absolute; inset: -3px;
  border: 1px solid var(--ink); pointer-events: none;
}
.brand-text { line-height: 1; }
.brand-text .t1 { font-family: var(--font-display); font-weight: 600; font-size: 15px; letter-spacing: -0.01em; }
.brand-text .t2 { font-family: var(--font-mono); font-size: 10px; color: var(--mute); letter-spacing: 0.12em; text-transform: uppercase; margin-top: 3px; }

.nav-rw { display: flex; gap: 28px; justify-content: flex-end; }
.nav-rw a { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); opacity: 0.7; transition: opacity .15s; }
.nav-rw a:hover { opacity: 1; }

.lang-switch { display: flex; gap: 4px; font-family: var(--font-mono); font-size: 11px; }
.lang-switch span { padding: 4px 7px; color: var(--mute); cursor: pointer; }
.lang-switch span.on { background: var(--ink); color: var(--paper); }

/* ====== Buttons ====== */
.btn-rw {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 20px; font-family: var(--font-mono); font-size: 12px;
  letter-spacing: 0.08em; text-transform: uppercase;
  border: 1px solid var(--ink); background: var(--ink); color: var(--paper);
  transition: transform .15s ease, background .15s;
  position: relative;
}
.btn-rw:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--ink); }
.btn-rw.ghost { background: transparent; color: var(--ink); }
.btn-rw.ghost:hover { background: var(--ink); color: var(--paper); }
.btn-rw.red { background: var(--red); border-color: var(--red); color: #fff; }
.btn-rw.red:hover { box-shadow: 4px 4px 0 var(--red); }
.btn-rw .arrow { display: inline-block; transition: transform .15s; }
.btn-rw:hover .arrow { transform: translateX(3px); }

/* ====== Hero ====== */
.hero { position: relative; padding: 28px 0 80px; }
.hero-meta {
  display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 0; align-items: center;
  padding: 10px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  margin-bottom: 40px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
}
.hero-meta > .sep { height: 14px; width: 1px; background: var(--line); }
.hero-meta > div:not(.sep) { padding: 0 14px; color: var(--mute); }
.hero-meta .blink {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--red);
  animation: blink 1.4s infinite; margin-right: 8px; vertical-align: middle;
}
@keyframes blink { 50% { opacity: 0.2; } }

.hero .h-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(260px, 32%, 420px);
  grid-template-areas:
    "headline figure"
    "bottom   bottom";
  column-gap: 56px;
  row-gap: 48px;
  align-items: start;
}
.hero-headline { grid-area: headline; }
.hero-bottom { grid-area: bottom; }
.hero-figure {
  grid-area: figure;
  align-self: center;
  justify-self: center;
  width: 100%;
  max-width: 360px;
  animation: hero-figure-in .9s cubic-bezier(.25, .1, .25, 1) .15s both;
}
.hero-figure svg { width: 100%; height: auto; display: block; }
@keyframes hero-figure-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(56px, 10vw, 168px);
  line-height: 0.92; letter-spacing: -0.04em; font-weight: 500;
  max-width: 15ch;
}
.hero-headline em {
  font-style: normal; color: var(--red);
  position: relative; display: inline-block;
}
.hero-headline em::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0.08em;
  height: 0.08em; background: var(--red);
}
.hero-headline .outline {
  -webkit-text-stroke: 2px var(--ink); color: transparent;
}
.hero-bottom {
  display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 40px; align-items: end;
  padding-top: 32px; border-top: 1px solid var(--line);
}
.hero-lede { font-size: 17px; line-height: 1.5; max-width: 48ch; color: var(--ink); }
.hero-lede strong { font-weight: 600; }
.hero-ctas { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.hero-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mute); margin-bottom: 4px; }

.hero-side-data { display: flex; flex-direction: column; gap: 18px; }
.hero-side-row { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; padding-bottom: 10px; border-bottom: 1px dashed var(--line); color: var(--ink); }
.hero-side-row b { font-weight: 700; }

/* ====== Ticker ====== */
.ticker-outer {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--ink); color: var(--paper); overflow: hidden;
}
.ticker {
  display: flex; gap: 80px; padding: 14px 0;
  animation: scroll 60s linear infinite;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  white-space: nowrap;
}
.ticker span { display: inline-flex; align-items: center; gap: 14px; }
.ticker .dot { width: 6px; height: 6px; background: var(--red); border-radius: 50%; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ====== Section header ====== */
.section { padding: 120px 0; position: relative; }
.section.alt { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-head { display: grid; grid-template-columns: 80px 1fr auto; gap: 32px; align-items: end; padding-bottom: 40px; border-bottom: 1px solid var(--ink); margin-bottom: 56px; }
.sec-head .num { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; color: var(--mute); }
.sec-head .title { font-family: var(--font-display); font-size: clamp(40px, 5vw, 72px); line-height: 0.98; letter-spacing: -0.03em; font-weight: 500; max-width: 18ch; }
.sec-head .meta { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mute); text-align: right; }

/* ====== Programs ====== */
.programs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--ink); }
.prog {
  padding: 40px; border-right: 1px solid var(--line); position: relative;
  min-height: 460px; display: flex; flex-direction: column; justify-content: space-between;
  background: var(--paper); transition: background .25s, color .25s;
}
.prog:last-child { border-right: 0; }
.prog:hover { background: var(--ink); color: var(--paper); }
.prog:hover .prog-age { color: rgba(255, 255, 255, 0.6); border-color: rgba(255, 255, 255, 0.3); }
.prog:hover .prog-num, .prog:hover .prog-arrow { color: var(--paper); }
/* Reserve the badge's footprint (60px circle inset 40px from the right) so the label
   cannot run underneath it — at four columns the cards are narrow enough to collide. */
/* Two lines are always reserved: the longer labels wrap at four columns and the
   shorter ones must not ride up, or the card titles stop sharing a baseline. */
.prog-num { font-family: var(--font-mono); font-size: 11px; color: var(--mute); letter-spacing: 0.1em; padding-right: 72px; min-height: 2.4em; }
.prog-name { font-family: var(--font-display); font-size: 40px; letter-spacing: -0.02em; font-weight: 500; line-height: 1; margin-top: 18px; }
.prog-age { display: inline-block; margin-top: 14px; padding: 4px 10px; border: 1px solid var(--line-strong); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; width: fit-content; }
.prog-desc { font-size: 14px; line-height: 1.55; margin-top: 24px; max-width: 36ch; }
.prog-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 32px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.prog-arrow { font-size: 18px; }
.prog-badge {
  position: absolute; top: 40px; right: 40px;
  width: 60px; height: 60px; border: 1px solid currentColor; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em;
  opacity: 0.5;
}

/* ====== Open championships / team registration ======
   Rendered as a ruled register rather than a card grid: this is a list of live
   deadlines a teacher scans top-down, so the dossier language of the rest of the
   page (mono labels, dashed rules, numbered rows) carries it better than boxes. */
.champ-block { margin-top: 80px; border-top: 2px solid var(--ink); padding-top: 28px; }
.champ-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 8px; }
.champ-label {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--mute); margin-bottom: 8px;
}
.champ-head h3 {
  font-family: var(--font-display); font-size: 36px; font-weight: 500;
  letter-spacing: -0.02em; line-height: 1.05;
}
.champ-count {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--red); white-space: nowrap;
}

.champ-list { display: grid; gap: 0; margin-top: 24px; }
.champ-row {
  display: grid; grid-template-columns: 52px 1fr auto auto; gap: 28px;
  align-items: center; padding: 26px 0; border-bottom: 1px dashed var(--line);
}
.champ-row:first-child { border-top: 1px solid var(--ink); }
.champ-n {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em;
  color: var(--mute);
}
.champ-tag {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--mute); margin-bottom: 6px;
}
.champ-name {
  font-family: var(--font-display); font-size: 22px; font-weight: 500;
  letter-spacing: -0.01em; line-height: 1.15;
}
.champ-deadline { text-align: right; }
.champ-dl-label {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--mute); margin-bottom: 6px;
}
.champ-dl-value { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.04em; }
.champ-dl-open { color: var(--mute); }
.champ-cta { white-space: nowrap; }

/* Empty state carries the same rules as a populated list, so the section keeps its
   shape and reads as "nothing open right now" rather than as a broken block. */
.champ-empty { border-top: 1px solid var(--ink); margin-top: 24px; padding: 48px 0 8px; }
.champ-empty-mark {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.3em;
  color: var(--mute); margin-bottom: 18px;
}
.champ-empty-title {
  font-family: var(--font-display); font-size: 24px; font-weight: 500;
  letter-spacing: -0.01em; line-height: 1.2; max-width: 30ch;
}
.champ-empty-sub { font-size: 15px; color: var(--mute); margin-top: 12px; max-width: 56ch; }

@media (max-width: 860px) {
  .champ-row { grid-template-columns: 40px 1fr; gap: 8px 16px; }
  .champ-deadline { grid-column: 2; text-align: left; margin-top: 12px; }
  .champ-cta { grid-column: 2; margin-top: 16px; justify-self: start; }
  .champ-head { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* ====== Teacher path (steps + sticky form) ====== */
.teacher-path { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.steps { display: grid; gap: 0; border-top: 1px solid var(--ink); }
.step { display: grid; grid-template-columns: 60px 1fr auto; gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--line); align-items: start; }
.step .n { font-family: var(--font-mono); font-size: 12px; color: var(--mute); padding-top: 4px; }
.step h4 { font-family: var(--font-display); font-size: 24px; letter-spacing: -0.01em; font-weight: 500; margin-bottom: 6px; }
.step p { font-size: 14px; line-height: 1.55; color: var(--ink); max-width: 48ch; }
.step .time { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mute); padding-top: 8px; }

.teacher-card {
  border: 1px solid var(--ink); padding: 40px; background: var(--paper);
  position: sticky; top: 100px;
}
.teacher-card h4 { font-family: var(--font-display); font-size: 28px; letter-spacing: -0.02em; font-weight: 500; }
.teacher-card .form { display: grid; gap: 14px; margin-top: 24px; }
.teacher-card label { display: grid; gap: 6px; }
.teacher-card .lbl { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mute); }
.teacher-card input, .teacher-card select {
  border: 0; border-bottom: 1px solid var(--ink); background: transparent; padding: 10px 0;
  font-family: var(--font-body); font-size: 15px; color: var(--ink); outline: 0;
  transition: border-color .15s;
}
.teacher-card input:focus, .teacher-card select:focus { border-bottom-color: var(--red); border-bottom-width: 2px; }
.teacher-card .foot { margin-top: 16px; display: flex; justify-content: space-between; align-items: center; }
.teacher-card .counter { font-family: var(--font-mono); font-size: 11px; color: var(--mute); }

/* ====== Stats band ====== */
.stats-band { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.stat-cell { padding: 48px 32px; border-right: 1px solid var(--line); position: relative; }
.stat-cell:last-child { border-right: 0; }
.stat-cell .k { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mute); }
.stat-cell .v { font-family: var(--font-display); font-size: 84px; font-weight: 500; line-height: 1; letter-spacing: -0.03em; margin-top: 16px; }
.stat-cell .s { font-size: 13px; color: var(--mute); margin-top: 12px; max-width: 22ch; line-height: 1.4; }
.stat-cell .tl { position: absolute; top: 16px; right: 16px; font-family: var(--font-mono); font-size: 10px; color: var(--mute); }

/* ====== Timeline ====== */
.timeline { position: relative; }
.tl-row { display: grid; grid-template-columns: 140px 1fr 1fr; gap: 40px; padding: 32px 0; border-top: 1px solid var(--line); transition: background .2s; }
.tl-row:hover { background: color-mix(in srgb, var(--ink) 4%, transparent); }
.tl-row:last-child { border-bottom: 1px solid var(--line); }
.tl-year { font-family: var(--font-display); font-size: 48px; letter-spacing: -0.02em; font-weight: 500; line-height: 1; }
.tl-year .m { display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mute); margin-top: 6px; font-weight: 400; }
.tl-title { font-family: var(--font-display); font-size: 22px; letter-spacing: -0.01em; font-weight: 500; line-height: 1.2; }
.tl-desc { font-size: 14px; line-height: 1.55; max-width: 52ch; color: var(--ink); }
.tl-tag { display: inline-block; margin-top: 10px; padding: 3px 10px; background: var(--ink); color: var(--paper); font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; }
.tl-tag.red { background: var(--red); }

/* ====== News ====== */
.news-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.news { padding: 32px; border-right: 1px solid var(--line); position: relative; display: flex; flex-direction: column; }
.news:last-child { border-right: 0; }
.news .date { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mute); }
.news .cat { display: inline-block; margin-left: 10px; padding: 2px 8px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; border: 1px solid var(--line-strong); }
.news .img { aspect-ratio: 4/3; margin-top: 20px; border: 1px solid var(--line); background: repeating-linear-gradient(135deg, var(--paper-2), var(--paper-2) 8px, var(--paper) 8px, var(--paper) 16px); position: relative; overflow: hidden; }
.news h3 { font-family: var(--font-display); font-size: 24px; letter-spacing: -0.02em; font-weight: 500; line-height: 1.12; margin-top: 20px;
  display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.news p { font-size: 14px; line-height: 1.55; color: var(--mute); margin-top: 14px;
  display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.news .img img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.news:hover .img img { transform: scale(1.03); }
.news .img span {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--font-mono); font-size: 10px; color: var(--mute); letter-spacing: 0.1em; text-transform: uppercase;
  padding: 12px; text-align: center;
}
.news .read { margin-top: 16px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.news .read::after { content: ' \2192'; }
.news a.read-link { position: absolute; inset: 0; }

/* ====== Events ====== */
.events { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--ink); }
.event-row { display: grid; grid-template-columns: 120px 160px 1fr 180px 160px; gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--line); align-items: center; }
.event-row .date { font-family: var(--font-mono); font-size: 13px; }
.event-row .date b { display: block; font-family: var(--font-display); font-size: 32px; font-weight: 500; line-height: 1; letter-spacing: -0.02em; }
.event-row .kind { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mute); }
.event-row .ev-title { font-family: var(--font-display); font-size: 20px; letter-spacing: -0.01em; font-weight: 500; }
.event-row .ev-title small { display: block; font-family: var(--font-body); font-size: 13px; color: var(--mute); margin-top: 4px; font-weight: 400; letter-spacing: 0; }
.event-row .where { font-size: 13px; color: var(--mute); }
.event-row .status { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; text-align: right; }
.event-row .status.open { color: var(--red); }
.event-row .status.open::before { content: '\25CF  '; }
.event-row .status.soon { color: var(--mute); }
.event-row .status.done { color: var(--mute); }

/* ====== Teams ====== */
.teams { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--ink); }
.team { padding: 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); min-height: 280px; display: flex; flex-direction: column; justify-content: space-between; position: relative; }
.team:nth-child(4n) { border-right: 0; }
.team:nth-last-child(-n+4) { border-bottom: 0; }
.team .tid { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mute); }
.team h4 { font-family: var(--font-display); font-size: 26px; letter-spacing: -0.02em; font-weight: 500; line-height: 1; margin-top: 40px; }
.team .tchip { margin-top: 14px; padding: 4px 10px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; border: 1px solid var(--line-strong); width: fit-content; }
.team .tfoot { margin-top: auto; display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mute); padding-top: 24px; border-top: 1px dashed var(--line); }
.team .medal { position: absolute; top: 20px; right: 20px; font-family: var(--font-mono); font-size: 10px; color: var(--red); }
.team.dark { background: var(--ink); color: var(--paper); }
.team.dark .tid { color: rgba(245, 243, 238, 0.6); }
.team.dark .tfoot { color: rgba(245, 243, 238, 0.6); border-top-color: rgba(245, 243, 238, 0.2); }
.team.dark h4 { margin-top: 60px; }

/* ====== Gallery ====== */
.gallery { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 180px; gap: 8px; }
.gi { position: relative; overflow: hidden; background: var(--paper-2); border: 1px solid var(--line); display: block; }
.gi-bg {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(45deg, var(--paper-2), var(--paper-2) 10px, var(--paper) 10px, var(--paper) 20px);
}
.gi-cover {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transition: transform .3s ease;
}
.gi:hover .gi-cover { transform: scale(1.05); }
.gi-label { position: absolute; left: 12px; bottom: 12px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--paper); background: rgba(10, 10, 10, 0.7); padding: 4px 8px; }
.gi-tag { position: absolute; right: 12px; top: 12px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; background: var(--ink); color: var(--paper); padding: 3px 8px; }
.gi-1 { grid-column: span 3; grid-row: span 2; }
.gi-2 { grid-column: span 2; }
.gi-3 { grid-column: span 1; grid-row: span 2; }
.gi-4 { grid-column: span 2; }
.gi-5 { grid-column: span 2; }
.gi-6 { grid-column: span 2; }
.gi-7 { grid-column: span 2; }
.gi-8 { grid-column: span 2; }

/* ====== Partners ====== */
.partners { display: grid; grid-template-columns: repeat(6, 1fr); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.partner { padding: 40px 20px; border-right: 1px solid var(--line); display: grid; place-items: center; min-height: 120px; transition: background .2s; text-align: center; }
.partner:last-child { border-right: 0; }
.partner:hover { background: var(--paper-2); }
.partner .p-name { font-family: var(--font-display); font-size: 16px; font-weight: 500; line-height: 1.1; letter-spacing: -0.01em; }
.partner .p-tier { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--mute); margin-top: 6px; }

/* ====== Final CTA ====== */
.final {
  background: var(--ink); color: var(--paper); padding: 120px 0;
  border-top: 1px solid var(--line); position: relative; overflow: hidden;
}
.final .container-rw { position: relative; z-index: 2; }
.final-huge {
  font-family: var(--font-display);
  font-size: clamp(48px, 9vw, 148px); line-height: 0.92; letter-spacing: -0.04em; font-weight: 500;
  max-width: 16ch;
}
.final-huge em { font-style: normal; color: var(--red); position: relative; }
.final-sub { margin-top: 32px; font-size: 18px; max-width: 56ch; color: rgba(245, 243, 238, 0.8); line-height: 1.5; }
.final-cta { margin-top: 48px; display: flex; gap: 14px; flex-wrap: wrap; }
.final .btn-rw { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.final .btn-rw.ghost { background: transparent; color: var(--paper); border-color: var(--paper); }
.final .btn-rw.red { background: var(--red); border-color: var(--red); color: #fff; }
.final-lines {
  position: absolute; inset: 0; opacity: 0.06;
  background-image: linear-gradient(transparent 95%, #fff 95%), linear-gradient(90deg, transparent 95%, #fff 95%);
  background-size: 40px 40px;
  pointer-events: none;
}

/* ====== Footer ====== */
.footer-rw { background: var(--paper); border-top: 1px solid var(--line); padding: 60px 0 32px; }
.foot-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--line); }
.foot-top h5 { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mute); margin-bottom: 14px; }
.foot-top ul { list-style: none; display: grid; gap: 8px; font-size: 14px; }
.foot-top a:hover { color: var(--red); }
.foot-bot { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mute); }

/* ====== Responsive ====== */
@media (max-width: 1100px) {
  .programs, .teams { grid-template-columns: 1fr 1fr; }
  /* In the 2x2 layout the right-hand card's own border would double up against the
     container border, so drop it on every second card and rule the first row instead. */
  .prog:nth-child(2n) { border-right: 0; }
  .prog:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
  .stats-band, .partners { grid-template-columns: 1fr 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .news { border-right: 0; border-bottom: 1px solid var(--line); }
  .hero-bottom { grid-template-columns: 1fr; gap: 24px; }
  .hero .h-body {
    grid-template-columns: 1fr;
    grid-template-areas: "headline" "bottom";
    column-gap: 0;
  }
  .hero-figure { display: none; }
  .teacher-path { grid-template-columns: 1fr; }
  .event-row { grid-template-columns: 1fr 1fr; row-gap: 8px; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gi-1, .gi-2, .gi-3, .gi-4, .gi-5, .gi-6, .gi-7, .gi-8 { grid-column: span 1; grid-row: span 1; }
}
@media (max-width: 700px) {
  .container-rw { padding: 0 20px; }
  .nav-rw { display: none; }
  .programs, .teams, .stats-band, .partners { grid-template-columns: 1fr; }
  .sec-head { grid-template-columns: 1fr; gap: 12px; }
  .hero-meta { grid-template-columns: 1fr; gap: 4px; }
  .hero-meta > .sep { display: none; }
  .hero-meta > div:not(.sep) { padding: 4px 0; }
  .tl-row { grid-template-columns: 1fr; gap: 12px; }
  .foot-top { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .ticker { animation: none; }
  .hero-meta .blink { animation: none; }
  .btn-rw, .prog, .gi-cover, .tl-row { transition: none; }
}
