/* =========================================================
   35 Mules × Eduba
   Brand tokens (from brand-pack.json)
   ========================================================= */
:root {
  --c-primary: #009DE0;
  --c-secondary: #00486A;
  --c-accent: #1A9299;
  --c-navy: #0C2739;
  --c-neutral-light: #F4F6F8;
  --c-bg: #FFFFFF;
  --c-text: #333333;
  --c-heading: #0C2739;
  --c-rule: #D9E2E8;
  --c-rule-soft: #E8EEF2;

  --r-sm: 2px;
  --r-md: 4px;
  --r-lg: 6px;

  --s-unit: 8px;
  --s-section: 64px;

  --shadow-subtle: 0 1px 2px rgba(12, 39, 57, 0.08);
  --shadow-medium: 0 4px 12px rgba(12, 39, 57, 0.12);

  --font-body: 'Open Sans', 'Segoe UI', Arial, sans-serif;
  --font-head: 'Open Sans', 'Segoe UI', Arial, sans-serif;

  --wrap-max: 1120px;
}

/* =========================================================
   Reset / base
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: var(--c-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--c-heading);
  font-weight: 600;
  letter-spacing: 0;
  margin: 0;
}

p { margin: 0 0 1em; }

.wrap {
  max-width: var(--wrap-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* =========================================================
   Masthead
   ========================================================= */
.masthead {
  background: var(--c-navy);
  color: #fff;
}
.masthead__inner {
  max-width: var(--wrap-max);
  margin: 0 auto;
  padding: 22px 24px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.masthead__logo img {
  height: 44px;
  width: auto;
}
.masthead__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  gap: 2px;
}
.masthead__kicker {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  font-weight: 600;
}
.masthead__for {
  font-size: 14px;
  color: rgba(255,255,255,0.92);
  font-weight: 500;
}
.masthead__rule {
  height: 3px;
  background: var(--c-primary);
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
  padding: 72px 0 48px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-secondary);
  font-weight: 600;
  padding: 6px 14px 6px 10px;
  border: 1px solid var(--c-rule);
  border-radius: var(--r-sm);
  background: var(--c-bg);
}
.eyebrow__dot {
  width: 8px; height: 8px;
  background: var(--c-primary);
  border-radius: 50%;
  display: inline-block;
}
.eyebrow__sep {
  color: var(--c-rule);
}

h1#headline {
  margin: 28px 0 24px;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.15;
  font-weight: 600;
  color: var(--c-heading);
  max-width: 880px;
}
.headline__turn {
  display: block;
  color: var(--c-secondary);
  font-weight: 400;
  margin-top: 8px;
}

.hero__standfirst {
  max-width: 760px;
  font-size: 18px;
  line-height: 1.65;
  color: var(--c-text);
  margin: 0;
}

/* =========================================================
   Stat bar
   ========================================================= */
.statbar {
  border-top: 1px solid var(--c-rule);
  border-bottom: 1px solid var(--c-rule);
  background: var(--c-neutral-light);
  margin-top: 48px;
}
.statbar__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.stat {
  padding: 28px 20px;
  border-right: 1px solid var(--c-rule);
  background: var(--c-bg);
  position: relative;
}
.stat:last-child { border-right: 0; }
.stat::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--c-primary);
  opacity: 0;
  transition: opacity 160ms ease;
}
.stat:hover::before { opacity: 1; }
.stat__num {
  font-size: 32px;
  font-weight: 700;
  color: var(--c-heading);
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.stat__label {
  font-size: 13px;
  color: var(--c-secondary);
  margin-top: 6px;
  line-height: 1.4;
}

/* =========================================================
   Section rhythm
   ========================================================= */
section.frame,
section.case,
section.paper,
section.cred,
section.cta {
  padding: var(--s-section) 0;
  border-bottom: 1px solid var(--c-rule-soft);
}
section.cta { border-bottom: 0; }

.section-label {
  font-family: var(--font-head);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-primary);
  font-weight: 700;
  margin-bottom: 18px;
  display: inline-block;
  padding-left: 14px;
  position: relative;
}
.section-label::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 8px; height: 1px;
  background: var(--c-primary);
}
.section-label--light { color: rgba(255,255,255,0.85); }
.section-label--light::before { background: rgba(255,255,255,0.85); }

.h2 {
  font-size: clamp(24px, 3.2vw, 32px);
  line-height: 1.25;
  font-weight: 600;
  color: var(--c-heading);
  max-width: 760px;
  margin-bottom: 18px;
}

.lede {
  font-size: 17px;
  line-height: 1.65;
  max-width: 760px;
  color: var(--c-text);
  margin-bottom: 32px;
}

/* =========================================================
   Frame section (60/30/10 split)
   ========================================================= */
.split {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 48px;
  align-items: start;
  margin-top: 16px;
}
.split__text p {
  font-size: 16px;
  line-height: 1.7;
}

.layermap {
  border: 1px solid var(--c-rule);
  border-top: 3px solid var(--c-primary);
  border-radius: var(--r-lg);
  background: var(--c-bg);
  padding: 24px;
  box-shadow: var(--shadow-subtle);
}
.layermap__head {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--c-rule);
}
.layermap__head > span:first-child {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--c-heading);
  font-size: 20px;
  letter-spacing: 0.02em;
}
.layermap__subhead {
  font-size: 12px;
  color: var(--c-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.layermap__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.layermap__band {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 8px 12px;
  border-radius: var(--r-sm);
  background: var(--c-neutral-light);
  border-left: 3px solid var(--c-primary);
}
.layermap__band > span {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 16px;
  color: var(--c-heading);
  min-width: 44px;
}
.layermap__band em {
  font-style: normal;
  font-weight: 500;
  color: var(--c-secondary);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.layermap__band--60 { border-left-color: var(--c-navy); }
.layermap__band--30 { border-left-color: var(--c-secondary); }
.layermap__band--10 { border-left-color: var(--c-primary); }

.layermap__note {
  font-size: 13.5px;
  color: var(--c-text);
  padding: 0 4px 4px 14px;
  line-height: 1.5;
}

/* =========================================================
   Case study
   ========================================================= */
.case__card {
  border: 1px solid var(--c-rule);
  border-top: 3px solid var(--c-primary);
  background: var(--c-bg);
  border-radius: var(--r-lg);
  padding: 32px;
  box-shadow: var(--shadow-subtle);
}
.case__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--c-secondary);
  margin-bottom: 16px;
}
.case__tag {
  background: var(--c-navy);
  color: #fff;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--r-sm);
  letter-spacing: 0.04em;
  font-size: 12px;
  text-transform: uppercase;
}
.case__rule {
  width: 18px;
  height: 1px;
  background: var(--c-rule);
}
.case__meta-item { font-weight: 500; }

.case__body {
  font-size: 17px;
  line-height: 1.65;
  color: var(--c-text);
  max-width: 820px;
  margin-bottom: 28px;
}

.case__translate {
  border-top: 1px solid var(--c-rule);
  padding-top: 20px;
}
.case__translate-head {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-secondary);
  font-weight: 700;
  margin-bottom: 14px;
}
.translate-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.translate-list li {
  display: grid;
  grid-template-columns: 1fr auto 1.25fr;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--c-rule);
  font-size: 15px;
}
.translate-list li:last-child { border-bottom: 0; }
.translate-list__from {
  color: var(--c-secondary);
  font-weight: 500;
}
.translate-list__arrow {
  color: var(--c-primary);
  font-weight: 600;
  font-size: 18px;
}
.translate-list__to {
  color: var(--c-heading);
  font-weight: 600;
}

/* =========================================================
   Paper
   ========================================================= */
.paper__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: center;
  margin-top: 8px;
}
.paper__body p {
  font-size: 16.5px;
  line-height: 1.7;
}
.paper__body p em {
  font-style: italic;
  color: var(--c-heading);
  font-weight: 500;
}
.paper__repo {
  background: var(--c-neutral-light);
  padding: 12px 14px;
  border-left: 3px solid var(--c-accent);
  border-radius: var(--r-sm);
  font-size: 14px;
  color: var(--c-text);
  margin: 8px 0 0;
}
.paper__repo-label {
  font-weight: 700;
  color: var(--c-secondary);
  margin-right: 6px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 12px;
}
.paper__repo-url {
  font-family: Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
  color: var(--c-navy);
  word-break: break-all;
}

.paper__badge {
  border: 1px solid var(--c-rule);
  background: var(--c-bg);
  padding: 32px 24px;
  text-align: center;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-subtle);
  max-width: 320px;
  margin-left: auto;
}
.paper__badge-rule {
  height: 2px;
  background: var(--c-primary);
  margin: 0 auto 18px;
  width: 40px;
}
.paper__badge-rule:last-child {
  margin: 18px auto 0;
}
.paper__badge-title {
  font-family: var(--font-head);
  font-size: 42px;
  font-weight: 700;
  color: var(--c-heading);
  letter-spacing: 0.04em;
}
.paper__badge-sub {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-secondary);
  font-weight: 600;
  margin-top: 4px;
}

/* =========================================================
   Credibility list
   ========================================================= */
.cred__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--c-rule);
  border-left: 1px solid var(--c-rule);
}
.cred__list li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 22px;
  border-right: 1px solid var(--c-rule);
  border-bottom: 1px solid var(--c-rule);
  background: var(--c-bg);
  font-size: 15px;
  line-height: 1.55;
  color: var(--c-text);
  min-height: 90px;
}
.cred__num {
  font-family: Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  color: var(--c-primary);
  font-weight: 700;
  letter-spacing: 0.08em;
  padding-top: 2px;
  flex-shrink: 0;
}

/* =========================================================
   CTA
   ========================================================= */
.cta__card {
  background: var(--c-navy);
  color: #fff;
  border-radius: var(--r-lg);
  padding: 48px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: center;
  box-shadow: var(--shadow-medium);
  position: relative;
  overflow: hidden;
}
.cta__card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--c-primary);
}
.cta__head {
  color: #fff;
  font-size: clamp(22px, 2.8vw, 30px);
  line-height: 1.25;
  font-weight: 600;
  margin: 6px 0 16px;
}
.cta__copy {
  color: rgba(255,255,255,0.82);
  font-size: 16px;
  line-height: 1.65;
  max-width: 520px;
  margin-bottom: 12px;
}
.cta__copy--thin {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 0;
}
.cta__right {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
}
.cta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--c-primary);
  color: #fff;
  font-weight: 600;
  padding: 18px 22px;
  border-radius: var(--r-md);
  text-decoration: none;
  font-size: 16px;
  letter-spacing: 0.01em;
  transition: background 180ms ease, transform 180ms ease;
  box-shadow: 0 2px 0 rgba(0,0,0,0.15);
}
.cta__btn:hover {
  background: #0089C4;
  text-decoration: none;
  transform: translateY(-1px);
}
.cta__btn-arrow {
  font-size: 20px;
  line-height: 1;
}
.cta__link {
  text-align: center;
  font-size: 12px;
  line-height: 1.5;
}
.cta__link-label {
  display: block;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 2px;
}
.cta__link-url {
  display: block;
  font-family: Menlo, Monaco, Consolas, monospace;
  color: rgba(255,255,255,0.75);
  font-size: 13px;
  word-break: break-all;
}

/* =========================================================
   Footer
   ========================================================= */
.foot {
  border-top: 1px solid var(--c-rule);
  background: var(--c-bg);
  padding: 24px 0 32px;
}
.foot__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--c-secondary);
}
.foot__left {
  font-weight: 600;
  color: var(--c-heading);
}
.foot__right {
  color: var(--c-text);
  opacity: 0.75;
}

/* =========================================================
   Focus states
   ========================================================= */
a:focus-visible,
.cta__btn:focus-visible {
  outline: 2px solid var(--c-primary);
  outline-offset: 3px;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 32px; }
  .paper__grid { grid-template-columns: 1fr; gap: 32px; }
  .paper__badge { margin: 0 auto; }
  .cta__card { grid-template-columns: 1fr; padding: 36px; }
  .statbar__grid { grid-template-columns: repeat(2, 1fr); }
  .stat { border-bottom: 1px solid var(--c-rule); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(3), .stat:nth-child(4) { border-bottom: 0; }
  .cred__list { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .wrap { padding: 0 18px; }
  .masthead__inner { padding: 16px 18px 14px; gap: 14px; }
  .masthead__logo img { height: 36px; }
  .masthead__kicker { font-size: 10px; }
  .masthead__for { font-size: 12px; }

  .hero { padding: 48px 0 32px; }
  h1#headline { font-size: 30px; margin: 20px 0 18px; }
  .hero__standfirst { font-size: 16px; }

  section.frame, section.case, section.paper, section.cred, section.cta {
    padding: 48px 0;
  }

  .case__card { padding: 24px 20px; }
  .translate-list li {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 10px 0;
  }
  .translate-list__arrow { display: none; }
  .translate-list__from { font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; }

  .cta__card { padding: 28px 22px; }
  .cta__head { font-size: 22px; }

  .stat { padding: 20px 16px; }
  .stat__num { font-size: 26px; }
  .stat__label { font-size: 12px; }

  .paper__badge { padding: 24px 20px; }
  .paper__badge-title { font-size: 34px; }

  .foot__inner { flex-direction: column; align-items: flex-start; gap: 6px; }
}

@media (max-width: 380px) {
  .masthead__meta { display: none; }
  .statbar__grid { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--c-rule); }
  .stat:last-child { border-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
