/* ==========================================================
   Moad En-Nadif — identity
   Navy of the suit, mustard of the tie, glass of the office.
   ========================================================== */

:root {
  --glass: #E8ECEB;      /* page */
  --paper: #F5F7F6;      /* raised surfaces */
  --navy: #13213A;       /* ink + dark chapters */
  --navy-2: #1D2F4F;
  --slate: #56616F;      /* secondary text on light */
  --mist: #A9B4C2;       /* secondary text on dark */
  --rule: #C7CFD2;
  --signal: #D4A017;     /* the one accent: the decision */
  --signal-ink: #8A6608; /* accent when used as text on light */

  --display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;

  --wrap: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--glass);
  color: var(--navy);
  font-family: var(--display);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ol, ul { list-style: none; }

:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 300;
  background: var(--navy); color: var(--glass);
  padding: 10px 16px; border-radius: 6px; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- Type ---------- */

.display-1 {
  font-family: var(--display);
  font-weight: 700;
  font-variation-settings: "wdth" 80, "opsz" 96;
  font-size: clamp(44px, 7vw, 104px);
  line-height: .92;
  letter-spacing: -0.035em;
}

.display-2 {
  font-family: var(--display);
  font-weight: 650;
  font-variation-settings: "wdth" 85, "opsz" 72;
  font-size: clamp(34px, 4.4vw, 60px);
  line-height: 1;
  letter-spacing: -0.03em;
}

.prose, .prose-lg {
  font-family: var(--serif);
  max-width: 62ch;
}
.prose { font-size: 18px; line-height: 1.65; color: var(--slate); }
.prose-lg {
  font-size: clamp(21px, 2vw, 26px);
  line-height: 1.5;
  font-variation-settings: "opsz" 40;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-family: var(--display);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
  white-space: nowrap;
}
.btn-ink { background: var(--navy); color: var(--glass); border: 1.5px solid var(--navy); }
.btn-ink:hover { background: var(--navy-2); }
.btn-line { border: 1.5px solid var(--navy); color: var(--navy); }
.btn-line:hover { background: var(--navy); color: var(--glass); }
.btn-signal { background: var(--signal); color: var(--navy); border: 1.5px solid var(--signal); }
.btn-signal:hover { background: #E6B52C; }

/* ---------- Progress + Nav ---------- */

.progress {
  position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 200;
  pointer-events: none;
}
.progress span {
  display: block; height: 100%; width: 100%;
  background: var(--signal);
  transform-origin: 0 50%;
  transform: scaleX(0);
}

.nav {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--glass) 86%, transparent);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.nav.scrolled { border-bottom-color: var(--rule); }

.nav-row {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; gap: 24px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; font-weight: 650; font-size: 17px; letter-spacing: -0.01em;
}
.nav-links { display: flex; gap: 32px; }
.nav-links a {
  text-decoration: none; font-size: 15px; color: var(--slate);
  position: relative; padding: 6px 0;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--signal); transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--navy); }
.nav-links a.active::after, .nav-links a:hover::after { transform: scaleX(1); }

.nav-tools { display: flex; align-items: center; gap: 8px; }
.lang {
  min-width: 44px; height: 36px; padding: 0 12px;
  border: 1.5px solid var(--navy); border-radius: 999px;
  font-size: 13px; font-weight: 700; letter-spacing: .02em;
}
.lang:hover { background: var(--navy); color: var(--glass); }
.menu { display: none; height: 36px; padding: 0 14px; font-weight: 600; font-size: 14px; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: calc(100svh - 68px);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 48px 0 40px;
  overflow: hidden;
}
.hero-chart {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: auto 1fr auto;
  column-gap: 24px;
  flex: 1;
}
.hero-role {
  grid-column: 1 / 7; grid-row: 1;
  display: grid; gap: 4px;
  font-size: 15px; line-height: 1.45; color: var(--slate);
}
.hero-role strong {
  font-weight: 650; font-variation-settings: "wdth" 85;
  font-size: clamp(20px, 1.8vw, 24px); letter-spacing: -0.015em;
  color: var(--navy);
  display: flex; align-items: center; gap: 10px;
}
.hero-role strong::before {
  content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--signal); flex: none;
}
.portrait {
  grid-column: 10 / 13; grid-row: 1 / 3;
  align-self: start;
  margin-top: 8px;
}
.portrait img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 55% 30%;
  border-radius: 4px;
  box-shadow: 0 30px 60px -30px rgba(19, 33, 58, .55);
}
.hero-text { grid-column: 1 / 13; grid-row: 3; }
.hero-name {
  font-family: var(--display);
  font-weight: 750;
  font-variation-settings: "wdth" 75, "opsz" 96;
  font-size: clamp(64px, min(12.5vw, 19vh), 188px);
  line-height: .84;
  letter-spacing: -0.045em;
  margin-left: -0.04em;
}
.hero-name span { display: inline-block; }
.hero-lede {
  font-family: var(--serif);
  font-size: clamp(19px, 1.8vw, 24px);
  line-height: 1.45;
  max-width: 40ch;
  margin-top: 28px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

@media (min-width: 1025px) {
  .hero-grid { row-gap: 20px; }
  .hero-text { margin-top: 24px;
    display: grid;
    grid-template-columns: 1fr minmax(0, calc((100% - 11 * 24px) / 12 * 3 + 2 * 24px));
    column-gap: 24px;
    align-items: end;
  }
  .hero-name { grid-column: 1; grid-row: 1 / 4; }
  .hero-lede { grid-column: 2; grid-row: 1; font-size: 20px; margin-top: 0; }
  .hero-actions { grid-column: 2; grid-row: 2; margin-top: 24px; }
  .hero-links { grid-column: 2; grid-row: 3; padding-bottom: .9em; }
  .hero-actions .btn { padding: 0 20px; }
}
.hero-note {
  position: relative;
  font-family: var(--serif); font-style: italic;
  font-size: 15px; color: var(--slate);
  display: flex; align-items: center; gap: 12px;
}
.hero-note::before {
  content: ""; flex: none; width: 32px; height: 10px;
  background:
    linear-gradient(var(--navy), var(--navy)) 0 50% / 100% 1.5px no-repeat,
    radial-gradient(circle, var(--signal) 4px, transparent 4.5px) 100% 50% / 10px 10px no-repeat;
}

/* hero load choreography (single orchestrated moment) */
.js .hero-name span, .js .hero-lede, .js .hero-actions, .js .hero-role, .js .portrait, .js .hero-links, .js .hero-foot {
  opacity: 0; transform: translateY(24px);
}
.ready .hero-name span, .ready .hero-lede, .ready .hero-actions, .ready .hero-role, .ready .portrait, .ready .hero-links, .ready .hero-foot {
  opacity: 1; transform: none;
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.ready .hero-role { transition-delay: .05s; }
.ready .hero-name span:nth-child(1) { transition-delay: .15s; }
.ready .hero-name span:nth-child(2) { transition-delay: .25s; }
.ready .portrait { transition-delay: .4s; }
.ready .hero-links { transition-delay: .75s; }
.ready .hero-foot { transition-delay: .9s; }
.ready .hero-lede { transition-delay: .55s; }
.ready .hero-actions { transition-delay: .65s; }

@media (prefers-reduced-motion: reduce) {
  .js .hero-name span, .js .hero-lede, .js .hero-actions, .js .hero-role, .js .portrait, .js .hero-links, .js .hero-foot { opacity: 1; transform: none; }
  .js .portrait img { clip-path: none; }
}

/* ---------- Sections common ---------- */

.thesis, .work, .method, .path, .toolkit, .contact { padding: clamp(80px, 11vw, 150px) 0; }

.section-head {
  display: grid; grid-template-columns: 5fr 7fr; gap: 24px;
  align-items: end;
  margin-bottom: clamp(40px, 6vw, 72px);
}
.section-head .prose { justify-self: end; max-width: 46ch; }

/* ---------- Thesis ---------- */

.thesis-grid {
  display: grid; grid-template-columns: 4fr 1fr 7fr;
}
.thesis-grid > h2 { grid-column: 1; position: sticky; top: 110px; align-self: start; }
.thesis-body { grid-column: 3; }
.thesis-body .prose-lg { margin-bottom: 24px; }
.thesis-body .prose { margin-bottom: 56px; }

.principles { border-top: 1.5px solid var(--navy); }
.principles > div {
  display: grid; grid-template-columns: 5fr 7fr; gap: 24px;
  padding: 24px 0; border-bottom: 1px solid var(--rule);
}
.principles dt { font-weight: 650; font-size: 19px; letter-spacing: -0.01em; }
.principles dd { font-family: var(--serif); font-size: 17px; line-height: 1.6; color: var(--slate); }

/* ---------- Work ledger ---------- */

.work { background: var(--paper); border-top: 1px solid var(--rule); }

.ledger { border-top: 1.5px solid var(--navy); counter-reset: case; }
.case { border-bottom: 1px solid var(--rule); counter-increment: case; }

.case-row {
  width: 100%;
  display: grid;
  grid-template-columns: 56px 5fr 2fr 3fr 40px;
  align-items: center; gap: 16px;
  padding: 26px 0;
  text-align: left;
  position: relative;
}
.case-row::before {
  content: counter(case, decimal-leading-zero);
  font-size: 14px; font-weight: 600; color: var(--slate);
  font-variant-numeric: tabular-nums;
}
.case-title {
  font-weight: 650; font-variation-settings: "wdth" 85;
  font-size: clamp(22px, 2.4vw, 32px); line-height: 1.1; letter-spacing: -0.025em;
  transition: transform .35s var(--ease);
}
.case-domain { font-size: 15px; color: var(--navy); }
.case-tools { font-size: 14px; color: var(--slate); }
.case-toggle {
  justify-self: end;
  width: 36px; height: 36px; border-radius: 50%;
  border: 1.5px solid var(--navy);
  position: relative;
  transition: background-color .25s, transform .35s var(--ease);
}
.case-toggle::before, .case-toggle::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 12px; height: 1.5px; background: currentColor;
  transform: translate(-50%, -50%);
}
.case-toggle::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .35s var(--ease); }
.case-row:hover .case-title { transform: translateX(6px); }
.case-row:hover .case-toggle { background: var(--navy); color: var(--glass); }
.case-row[aria-expanded="true"] .case-toggle { background: var(--signal); border-color: var(--signal); color: var(--navy); }
.case-row[aria-expanded="true"] .case-toggle::after { transform: translate(-50%, -50%) rotate(0deg); }

.case-panel { overflow: hidden; }
.case-panel.animating { transition: height .5s var(--ease); }
.case-inner {
  display: grid;
  grid-template-columns: 56px 6fr 5fr;
  gap: 16px;
  padding: 0 0 40px;
}
.case-copy { grid-column: 2; padding-right: 24px; }
.case-copy h3 {
  font-family: var(--serif); font-weight: 500; font-style: italic;
  font-size: clamp(22px, 2.2vw, 28px); line-height: 1.3;
  margin-bottom: 16px; max-width: 30ch;
}
.case-copy p { font-family: var(--serif); font-size: 17px; line-height: 1.65; color: var(--slate); max-width: 56ch; }
.case-copy .case-use { margin-top: 12px; color: var(--navy); font-family: var(--display); font-size: 15px; }
.case-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }

.case-figure {
  grid-column: 3;
  background: var(--glass);
  border-radius: 4px;
  align-self: start;
  padding: 32px 28px;
}
.case-figure svg { width: 100%; height: auto; overflow: visible; display: block; }

/* ---------- Method (dark) ---------- */

.method { background: var(--navy); color: var(--glass); }
.method .prose { color: var(--mist); }

/* ---------- Path ---------- */

.path-grid { display: grid; grid-template-columns: 4fr 1fr 7fr; }
.path-intro { grid-column: 1; position: sticky; top: 110px; align-self: start; }
.path-intro .prose { margin-top: 20px; }
/* ---------- Toolkit ---------- */

.toolkit { background: var(--paper); border-top: 1px solid var(--rule); }
/* ---------- Contact (dark) ---------- */

.contact { background: var(--navy); color: var(--glass); }
.contact .prose { color: var(--mist); margin-top: 28px; }
.contact-grid { display: grid; grid-template-columns: 7fr 1fr 4fr; align-items: end; }
.contact-grid > div { grid-column: 1; }
.contact-form { grid-column: 3; }


.contact-grid.no-form > div { grid-column: 1 / -1; }
.contact-form { display: grid; gap: 18px; }
.contact-form[hidden] { display: none; }
.contact-form label { display: grid; gap: 6px; font-size: 14px; color: var(--mist); }
.contact-form input, .contact-form textarea {
  font: inherit; font-size: 16px; color: var(--glass);
  background: transparent;
  border: 0; border-bottom: 1.5px solid rgba(232,236,235,.3);
  padding: 10px 0;
  transition: border-color .2s;
  border-radius: 0;
}
.contact-form textarea { resize: vertical; min-height: 110px; font-family: var(--serif); }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-bottom-color: var(--signal); }
.contact-form [aria-invalid="true"] { border-bottom-color: #F08A7E; }
.contact-form .btn { justify-self: start; margin-top: 8px; }
.form-status { font-size: 14px; color: var(--mist); min-height: 1.5em; }

/* ---------- Footer ---------- */

.footer { background: var(--navy); color: var(--mist); border-top: 1px solid rgba(232,236,235,.12); }
.footer-row { display: flex; justify-content: space-between; padding-block: 28px; font-size: 14px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--glass); }

/* ---------- Dashboard dialog ---------- */

.dash {
  width: min(1240px, 94vw); height: min(860px, 88vh);
  max-width: none; max-height: none;
  margin: auto;
  border: 0; border-radius: 8px;
  background: var(--paper); color: var(--navy);
  padding: 0;
  overflow: hidden;
  box-shadow: 0 40px 120px -20px rgba(0,0,0,.5);
}
.dash[open] { display: flex; flex-direction: column; animation: dash-in .45s var(--ease); }
.dash::backdrop { background: rgba(19, 33, 58, .78); backdrop-filter: blur(4px); }
@keyframes dash-in { from { opacity: 0; transform: translateY(16px) scale(.985); } }
@media (prefers-reduced-motion: reduce) { .dash[open] { animation: none; } }

.dash-head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 16px 14px 24px; border-bottom: 1px solid var(--rule);
}
.dash-head h2 { font-size: 17px; font-weight: 650; letter-spacing: -0.01em; }
.dash-tools { display: flex; align-items: center; gap: 12px; }
.dash-open { font-size: 14px; color: var(--slate); }
.dash-open:hover { color: var(--navy); }
.dash-close {
  width: 40px; height: 40px; border-radius: 50%;
  font-size: 24px; line-height: 1;
}
.dash-close:hover { background: var(--glass); }
.dash-body { flex: 1; position: relative; background: var(--glass); }
.dash-body iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.dash-loading {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 15px; color: var(--slate);
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .portrait { grid-column: 9 / 13; }
}

@media (max-width: 820px) {
  .menu { display: inline-flex; align-items: center; }
  .nav-links {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--glass); border-bottom: 1px solid var(--rule);
    padding: 8px var(--gutter) 20px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 0; font-size: 18px; border-bottom: 1px solid var(--rule); }
  .nav-links a::after { display: none; }

  .hero { min-height: auto; padding-top: 28px; }
  .hero-grid { grid-template-rows: auto auto auto; row-gap: 28px; }
  .hero-role { grid-column: 1 / 8; }
  .portrait { grid-column: 8 / 13; grid-row: 1 / 3; margin-top: 0; }
  .hero-text { grid-row: 3; }


  .section-head, .thesis-grid, .path-grid, .contact-grid { grid-template-columns: 1fr; }
  .section-head .prose { justify-self: start; }
  .thesis-grid > h2, .path-intro { position: static; margin-bottom: 36px; }
  .thesis-body, .journey, .contact-form, .contact-grid > div { grid-column: 1; }
  .contact-form { margin-top: 56px; }

  .case-row { grid-template-columns: 36px 1fr 40px; row-gap: 6px; padding: 22px 0; }
  .case-row::before { grid-row: 1; align-self: start; padding-top: 6px; }
  .case-title { grid-column: 2; }
  .case-domain { grid-column: 2; grid-row: 2; }
  .case-tools { display: none; }
  .case-toggle { grid-column: 3; grid-row: 1; }
  .case-inner { grid-template-columns: 1fr; }
  .case-copy, .case-figure { grid-column: 1; padding-right: 0; }
  .case-figure { order: -1; }


  .principles > div { grid-template-columns: 1fr; gap: 6px; }
}

@media (max-width: 560px) {
  .brand span { display: none; }
  .hero-role { grid-column: 1 / 13; grid-row: 1; }
  .portrait { grid-column: 1 / 8; grid-row: 2; }
  .hero-name { font-size: clamp(60px, 21vw, 110px); }
  .hero-actions .btn { flex: 1; }
  .footer-row { flex-direction: column; gap: 8px; }
}

/* ==========================================================
   Additions: status, method stepper, toolkit tiles
   ========================================================== */

.case-title .status {
  display: inline-flex; align-items: center; gap: 6px;
  vertical-align: middle; margin-left: 10px;
  padding: 4px 10px 4px 8px; border-radius: 999px;
  background: rgba(212, 160, 23, .16); color: var(--signal-ink);
  font-style: normal; font-size: 13px; font-weight: 600; letter-spacing: 0;
  font-variation-settings: "wdth" 100;
}
.case-title .status::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--signal);
  animation: live 1.8s ease-in-out infinite;
}
@keyframes live { 50% { opacity: .25; } }
.case-note { margin-top: 20px; font-size: 15px !important; font-style: italic; }
.case-figure svg .live-panel { animation: live 1.8s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) {
  .case-title .status::before, .case-figure svg .live-panel { animation: none; }
}

/* ---- Method stepper ---- */
.method-grid {
  display: grid; grid-template-columns: 4fr 8fr; gap: 48px;
  align-items: start;
}
.step-tabs { display: grid; border-top: 1px solid rgba(232,236,235,.18); }
.step-tab {
  display: flex; align-items: center; gap: 18px;
  padding: 22px 0; text-align: left;
  border-bottom: 1px solid rgba(232,236,235,.18);
  color: var(--mist);
  transition: color .25s var(--ease);
}
.step-tab .step-n {
  flex: none; display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1.5px solid rgba(232,236,235,.35);
  font-weight: 700; font-size: 15px;
  transition: background-color .25s, border-color .25s, color .25s;
}
.step-tab .step-name {
  font-weight: 650; font-variation-settings: "wdth" 85;
  font-size: clamp(20px, 1.9vw, 26px); letter-spacing: -0.02em; line-height: 1.15;
}
.step-tab:hover { color: var(--glass); }
.step-tab[aria-selected="true"] { color: var(--glass); }
.step-tab[aria-selected="true"] .step-n { background: var(--signal); border-color: var(--signal); color: var(--navy); }

.uncertainty { margin-top: 28px; display: grid; gap: 10px; }
.u-label { font-size: 13px; color: var(--mist); }
.u-track { display: block; height: 6px; border-radius: 3px; background: rgba(232,236,235,.12); overflow: hidden; }
.u-fill {
  display: block; height: 100%; width: 100%;
  background: linear-gradient(90deg, var(--signal), rgba(212,160,23,.4));
  transform-origin: 0 50%;
  transition: transform .6s var(--ease);
}

.step-panel {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
  background: var(--navy-2);
  border-radius: 8px;
  padding: clamp(24px, 3vw, 40px);
}
.step-panel[hidden] { display: none; }
.step-panel.enter { animation: step-in .45s var(--ease); }
@keyframes step-in { from { opacity: 0; transform: translateY(10px); } }
@media (prefers-reduced-motion: reduce) { .step-panel.enter { animation: none; } }

.step-visual { display: flex; align-items: center; }
.step-visual svg { width: 100%; height: auto; display: block; }
.step-copy p { font-family: var(--serif); font-size: 17px; line-height: 1.6; color: var(--mist); }
.step-copy .step-q {
  font-style: italic; color: var(--glass);
  font-size: clamp(20px, 1.9vw, 24px); line-height: 1.35;
  margin-bottom: 16px;
}
.step-meta { margin-top: 24px; display: grid; gap: 14px; }
.step-meta div { padding-top: 12px; border-top: 1px solid rgba(232,236,235,.15); }
.step-meta dt { font-size: 13px; color: var(--mist); margin-bottom: 2px; }
.step-meta dd { font-size: 16px; font-weight: 550; color: var(--glass); }

/* step 1: brief card */
.brief {
  width: 100%;
  background: var(--paper); color: var(--navy);
  border-radius: 6px; padding: 22px 22px 16px;
  box-shadow: 0 24px 50px -24px rgba(0,0,0,.6);
  transform: rotate(-1.2deg);
}
.brief-head { font-weight: 700; font-size: 15px; padding-bottom: 12px; border-bottom: 1.5px solid var(--navy); }
.brief dl > div { padding: 10px 0; border-bottom: 1px solid var(--rule); }
.brief dt { font-size: 12px; color: var(--slate); }
.brief dd { font-family: var(--serif); font-size: 15px; line-height: 1.35; }
.brief-foot { margin-top: 10px; font-size: 12px; color: var(--slate); font-style: italic; }

/* step 2: schema */
.schema .links line { stroke: rgba(232,236,235,.35); stroke-width: 1.5; stroke-dasharray: 4 4; }
.schema .dim rect { fill: var(--navy-2); stroke: rgba(232,236,235,.5); stroke-width: 1.5; }
.schema .fact rect { fill: var(--signal); }
.schema text { fill: var(--glass); font-family: var(--display); font-size: 15px; font-weight: 600; text-anchor: middle; }
.schema .fact text { fill: var(--navy); }
.schema .fact .sub { font-size: 12px; font-weight: 500; }

/* step 3: validation */
.validate .holdout { fill: rgba(212,160,23,.1); }
.validate .holdout-label { fill: var(--signal); font-size: 13px; font-weight: 600; text-anchor: middle; font-family: var(--display); }
.validate .axis { stroke: rgba(232,236,235,.3); }
.validate .actual { fill: none; stroke: var(--glass); stroke-width: 2.5; stroke-linejoin: round; }
.validate .pred { fill: none; stroke: var(--signal); stroke-width: 2.5; stroke-dasharray: 6 5; }
.validate .legend text { fill: var(--mist); font-size: 13px; font-family: var(--display); }

/* step 4: dashboard */
.board .frame { fill: var(--paper); }
.board .kpi rect:first-child, .board .panel { fill: var(--glass); }
.board .bar-s { fill: var(--rule); }
.board .num { fill: var(--navy); }
.board .kpi.hot rect:first-child { fill: rgba(212,160,23,.22); }
.board .kpi.hot .num { fill: var(--signal-ink); }
.board .trend { fill: none; stroke: var(--navy); stroke-width: 2.5; stroke-linejoin: round; }
.board .hbars rect { fill: var(--navy); opacity: .75; }
.board .hbars rect:first-child { fill: var(--signal); opacity: 1; }

/* ---- Toolkit ---- */
.kit-group { margin-bottom: 48px; }
.kit-group h3, .kit-foot h3 {
  font-size: 15px; font-weight: 600; color: var(--slate);
  padding-bottom: 14px; margin-bottom: 18px;
  border-bottom: 1.5px solid var(--navy);
}
.tools {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.tools li {
  display: grid; grid-template-columns: 44px 1fr; grid-template-rows: auto auto;
  column-gap: 14px; align-items: center;
  padding: 16px;
  background: var(--glass);
  border: 1px solid transparent;
  border-radius: 10px;
  transition: border-color .25s var(--ease), background-color .25s var(--ease);
}
.tools li:hover { border-color: var(--navy); background: #fff; }
.tools .logo, .tools .mono { grid-row: 1 / 3; width: 44px; height: 44px; }
.tools .logo { object-fit: contain; padding: 4px; }
.tools .mono {
  display: grid; place-items: center;
  border-radius: 10px; background: var(--navy); color: var(--glass);
  font-weight: 700; font-size: 14px; letter-spacing: -0.01em;
}
.tools strong { font-weight: 650; font-size: 17px; letter-spacing: -0.01em; align-self: end; line-height: 1.2; }
.tools span:not(.mono) { font-size: 14px; color: var(--slate); align-self: start; }

.kit-foot { display: grid; grid-template-columns: 2fr 1fr; gap: 48px; }
.kit-foot p { font-size: 18px; line-height: 1.5; font-weight: 500; letter-spacing: -0.01em; max-width: 60ch; }

@media (max-width: 1024px) {
  .method-grid { grid-template-columns: 1fr; gap: 28px; }
  .step-tabs { grid-template-columns: repeat(4, 1fr); border-top: 0; gap: 8px; }
  .step-tab { flex-direction: column; align-items: flex-start; gap: 10px; padding: 0 0 16px; border-bottom: 2px solid rgba(232,236,235,.18); }
  .step-tab[aria-selected="true"] { border-bottom-color: var(--signal); }
  .step-tab .step-name { font-size: 16px; }
  .uncertainty { grid-column: 1 / -1; margin-top: 8px; }
}
@media (max-width: 820px) {
  .step-panel { grid-template-columns: 1fr; gap: 24px; }
  .kit-foot { grid-template-columns: 1fr; gap: 32px; }
  .case-title .status { margin-left: 0; margin-top: 6px; display: flex; width: fit-content; }
}
@media (max-width: 560px) {
  .step-tab .step-name { font-size: 13px; }
  .step-tab .step-n { width: 32px; height: 32px; font-size: 13px; }
  .tools { grid-template-columns: 1fr 1fr; }
  .tools li { grid-template-columns: 1fr; row-gap: 10px; }
  .tools .logo, .tools .mono { grid-row: auto; width: 36px; height: 36px; }
}

/* ---- Email chooser ---- */
.mailer {
  width: min(480px, calc(100vw - 32px));
  margin: auto; border: 0; border-radius: 10px;
  background: var(--paper); color: var(--navy);
  padding: 24px;
  box-shadow: 0 40px 120px -20px rgba(0,0,0,.5);
}
.mailer[open] { animation: dash-in .35s var(--ease); }
.mailer::backdrop { background: rgba(19, 33, 58, .7); backdrop-filter: blur(3px); }
@media (prefers-reduced-motion: reduce) { .mailer[open] { animation: none; } }
.mailer-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.mailer-title { font-size: 22px; font-weight: 650; letter-spacing: -0.02em; }
.mailer-close { width: 40px; height: 40px; border-radius: 50%; font-size: 24px; line-height: 1; }
.mailer-close:hover { background: var(--glass); }
.mailer-lede { margin: 6px 0 18px; font-family: var(--serif); font-size: 16px; color: var(--slate); }
.mailer-options { display: grid; gap: 8px; }
.m-option {
  display: grid; gap: 2px;
  padding: 14px 16px; border-radius: 8px;
  background: var(--glass); border: 1.5px solid transparent;
  text-decoration: none;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.m-option:hover { border-color: var(--navy); background: #fff; }
.m-option strong { font-size: 16px; font-weight: 650; }
.m-option span { font-size: 14px; color: var(--slate); }
.mailer-copy {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--rule);
}
.m-address { font-weight: 600; font-size: 15px; word-break: break-all; user-select: all; }
.mailer-copy .btn { min-height: 40px; padding: 0 16px; font-size: 14px; }
.m-status { min-height: 1.4em; margin-top: 8px; font-size: 14px; color: var(--signal-ink); }

/* ==========================================================
   Hero refinements
   ========================================================== */

/* availability */
.avail {
  display: inline-flex; align-items: center; gap: 8px; width: fit-content;
  margin-bottom: 14px;
  padding: 6px 12px 6px 10px; border-radius: 999px;
  background: var(--paper); border: 1px solid var(--rule);
  font-size: 13px; font-weight: 550; color: var(--navy);
}
.avail::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: #2E9E6B; box-shadow: 0 0 0 3px rgba(46,158,107,.18);
}

/* portrait: revealed by a wipe, framed by an offset rule */
.portrait { position: relative; }
.portrait::after {
  content: ""; position: absolute; inset: 14px -14px -14px 14px;
  border: 1.5px solid var(--navy); border-radius: 4px;
  z-index: -1; opacity: .18;
}
.js .portrait img { clip-path: inset(100% 0 0 0); }
.ready .portrait img { clip-path: inset(0 0 0 0); transition: clip-path 1.1s var(--ease) .35s; }

/* secondary links */
.hero-links { display: flex; gap: 20px; margin-top: 18px; font-size: 15px; font-weight: 600; }
.hero-links a {
  text-decoration: none; padding-bottom: 2px;
  background: linear-gradient(var(--signal), var(--signal)) 0 100% / 0 2px no-repeat;
  transition: background-size .3s var(--ease);
}
.hero-links a:hover { background-size: 100% 2px; }

/* footer bar of the hero */
.hero-foot {
  position: relative;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  margin-top: 44px; padding-top: 18px;
}
.hero-foot::before {
  content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter);
  height: 1px; background: var(--rule);
}
.scroll-cue {
  flex: none; display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; text-decoration: none; color: var(--slate);
}
.scroll-cue::after {
  content: ""; width: 1.5px; height: 22px; background: var(--navy);
  transform-origin: top; animation: cue 2.2s var(--ease) infinite;
}
.scroll-cue:hover { color: var(--navy); }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
@media (prefers-reduced-motion: reduce) { .scroll-cue::after { animation: none; } }

/* chart annotations (positioned by script) */
.chart-labels { position: absolute; inset: 0; pointer-events: none; }
.cl {
  position: absolute; left: 0; top: 0;
  font-size: 12px; font-weight: 600; letter-spacing: .01em; color: var(--slate);
  white-space: nowrap;
  opacity: 0; transition: opacity .6s var(--ease);
}
.cl.on { opacity: 1; }
.cl-now { transform: translate(-50%, -100%); padding-bottom: 6px; }
.cl-fan { transform: translate(-50%, 0); }
.cl-fan span { transition: opacity .5s var(--ease); }
.cl-fan .cl-tight { position: absolute; left: 50%; top: 0; transform: translateX(-50%); opacity: 0; }
.cl-fan.narrow .cl-wide { opacity: 0; }
.cl-fan.narrow .cl-tight { opacity: 1; }
.cl-dec {
  transform: translate(-50%, -100%); padding-bottom: 22px;
  font-size: 13px; font-weight: 700; color: var(--signal-ink);
}
.chart-tip {
  position: absolute; left: 0; top: 0;
  padding: 6px 10px; border-radius: 6px;
  background: var(--navy); color: var(--glass);
  font-size: 12px; font-weight: 600; white-space: nowrap;
  transform: translate(12px, -130%);
  opacity: 0; transition: opacity .15s;
}
.chart-tip.on { opacity: 1; }

@media (max-width: 820px) {
  .cl-hist, .cl-fan, .cl-now, .chart-tip { display: none; }
  .cl-dec { transform: translate(calc(-100% - 16px), -50%); padding-bottom: 0; }
  .hero-foot { margin-top: 32px; }
  .scroll-cue { display: none; }
  .portrait::after { inset: 10px -10px -10px 10px; }
}

/* short laptop screens: keep name, lede and actions above the fold */
@media (min-width: 1025px) and (max-height: 860px) {
  .hero { padding-top: 28px; padding-bottom: 28px; }
  .avail { margin-bottom: 10px; }
  .portrait { grid-column: 11 / 13; }
  .hero-lede { font-size: 18px; line-height: 1.42; }
  .hero-actions { margin-top: 18px; }
  .hero-actions .btn { min-height: 42px; }
  .hero-links { margin-top: 12px; }
  .hero-foot { margin-top: 28px; }
}

/* ==========================================================
   Method: scroll-driven stepper
   ========================================================== */
.method-scroll { position: relative; }
.scroll-mode .method-scroll { height: 330vh; }
.scroll-mode .method-grid {
  position: sticky;
  top: calc(68px + max(24px, (100vh - 68px - var(--mg-h, 560px)) / 2));
}
.step-tab { position: relative; }
.step-tab::after {
  content: ""; position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%;
  background: var(--signal);
  transform-origin: 0 50%; transform: scaleX(var(--fill, 0));
}
.stacked .step-tabs { display: none; }
.stacked .step-panels { display: grid; gap: 16px; }
.stacked .step-panel[hidden] { display: grid; }
.stacked .method-grid { grid-template-columns: 1fr; }
.panel-label { display: none; }
.stacked .panel-label {
  display: flex; align-items: center; gap: 12px; grid-column: 1 / -1;
  font-weight: 650; font-size: 20px; letter-spacing: -0.015em; color: var(--glass);
}
.stacked .panel-label span {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--signal); color: var(--navy); font-size: 14px; font-weight: 700;
}

/* ==========================================================
   Background: scroll-driven journey
   ========================================================== */
.path-intro .path-progress {
  display: flex; align-items: center; gap: 12px; margin-top: 36px;
  font-size: 14px; font-weight: 650; color: var(--slate); font-variant-numeric: tabular-nums;
}
.pp-year { color: var(--navy); }
.pp-bar { flex: 1; max-width: 220px; height: 4px; border-radius: 2px; background: var(--rule); overflow: hidden; }
.pp-bar span { display: block; height: 100%; background: var(--signal); transform-origin: 0 50%; transform: scaleX(var(--rail, 0)); }

.journey { grid-column: 3; position: relative; }
.journey::before, .journey::after {
  content: ""; position: absolute; left: 27px; top: 28px; bottom: 60px; width: 2px; z-index: 0;
}
.journey::before { background: var(--rule); }
.journey::after {
  background: var(--signal);
  transform-origin: top; transform: scaleY(var(--rail, 1));
}

.stop { position: relative; padding: 0 0 72px 88px; }
.stop:last-child { padding-bottom: 0; }
.stop-head { display: block; margin-bottom: 16px; }
.school-logo {
  position: absolute; left: 0; top: 0; z-index: 2;
  width: 56px; height: 56px; border-radius: 14px;
  background: var(--paper); border: 1.5px solid var(--rule);
  display: grid; place-items: center; overflow: hidden;
  transition: border-color .4s var(--ease), box-shadow .4s var(--ease), transform .4s var(--ease);
}
.school-logo img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.school-logo .mono { font-weight: 750; font-size: 13px; letter-spacing: -0.01em; color: var(--navy); }
.school-logo.next { border-style: dashed; background: var(--glass); }
.school-logo.next::after { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--signal); }

.stop-years {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-size: 15px; font-weight: 650; color: var(--slate); font-variant-numeric: tabular-nums;
}
.stop-status {
  padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 650;
}
.stop-status.live { background: rgba(212,160,23,.18); color: var(--signal-ink); }
.stop-status.done { background: rgba(19,33,58,.08); color: var(--navy); }
.stop h3 {
  margin-top: 6px;
  font-weight: 700; font-variation-settings: "wdth" 85;
  font-size: clamp(26px, 2.6vw, 36px); line-height: 1.05; letter-spacing: -0.03em;
}
.stop-degree { margin-top: 6px; font-size: 17px; font-weight: 550; }
.stop-text { font-family: var(--serif); font-size: 17px; line-height: 1.6; color: var(--slate); max-width: 56ch; margin-bottom: 20px; }
.stop-next .btn { margin-top: 4px; }

.subjects { display: flex; flex-wrap: wrap; gap: 8px; }
.subjects li {
  padding: 7px 12px; border-radius: 8px;
  background: var(--paper); border: 1px solid var(--rule);
  font-size: 14px; font-weight: 550; line-height: 1.2;
}
.subjects li.key {
  background: rgba(212,160,23,.16); border-color: rgba(212,160,23,.55);
  color: var(--navy); font-weight: 650;
  display: inline-flex; align-items: center; gap: 7px;
}
.subjects li.key::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--signal); }

.terms { border-top: 1px solid var(--rule); }
.term {
  display: grid; grid-template-columns: 130px 1fr; gap: 16px; align-items: start;
  padding: 14px 0; border-bottom: 1px solid var(--rule);
}
.term-name { font-size: 14px; font-weight: 650; color: var(--slate); padding-top: 7px; }
.term.current .term-name { color: var(--navy); display: flex; align-items: center; gap: 8px; }
.term.current .term-name::after {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--signal);
  box-shadow: 0 0 0 4px rgba(212,160,23,.22);
}

/* scroll states (only when the script runs) */
.journey-live .stop > *:not(.school-logo) { transition: opacity .5s var(--ease), transform .5s var(--ease); }
.journey-live .stop:not(.seen) > *:not(.school-logo) { opacity: .35; }
.journey-live .stop.active .school-logo {
  border-color: var(--navy); transform: scale(1.06);
  box-shadow: 0 0 0 6px var(--glass), 0 10px 24px -10px rgba(19,33,58,.45);
}
.journey-live .term .subjects li { transition: opacity .4s var(--ease); }

@media (max-width: 820px) {
  .journey { grid-column: 1; }
  .path-intro .path-progress { display: none; }
  .stop { padding-left: 68px; padding-bottom: 56px; }
  .school-logo { width: 46px; height: 46px; border-radius: 12px; }
  .journey::before, .journey::after { left: 22px; }
  .term { grid-template-columns: 1fr; gap: 8px; }
  .term-name { padding-top: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .journey-live .stop:not(.seen) > *:not(.school-logo) { opacity: 1; }
}

/* AI touches */
.step-meta .ai-line dt { color: var(--signal); }
.kit-note { font-family: var(--serif); font-size: 17px; line-height: 1.6; color: var(--slate); max-width: 64ch; margin: -4px 0 18px; }
.kit-ai .tools li { background: linear-gradient(var(--glass), var(--glass)) padding-box, linear-gradient(120deg, rgba(212,160,23,.55), rgba(19,33,58,.15)) border-box; border: 1px solid transparent; }
.kit-ai .tools li:hover { background: linear-gradient(#fff, #fff) padding-box, linear-gradient(120deg, var(--signal), var(--navy)) border-box; }

.journey-live .term:not(.seen) .subjects li { opacity: .4; }
@media (prefers-reduced-motion: reduce) { .journey-live .term:not(.seen) .subjects li { opacity: 1; } }

/* method on short laptop screens */
@media (min-width: 821px) and (max-height: 860px) {
  .step-panel { padding: 24px 28px; gap: 28px; }
  .step-copy .step-q { font-size: 19px; margin-bottom: 10px; }
  .step-copy p { font-size: 15.5px; line-height: 1.5; }
  .step-meta { margin-top: 14px; gap: 8px; }
  .step-meta div { padding-top: 8px; }
  .step-meta dd { font-size: 14.5px; }
  .step-tab { padding: 16px 0; }
}

/* ==========================================================
   Contact cards with icons
   ========================================================== */
.contact-links {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px;
  margin-top: 40px; max-width: 640px;
}
.contact-card {
  display: grid; grid-template-columns: 44px 1fr 18px; align-items: center; gap: 14px;
  padding: 14px 16px; border-radius: 12px;
  background: rgba(232,236,235,.05); border: 1px solid rgba(232,236,235,.14);
  text-decoration: none; color: var(--glass);
  transition: background-color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.contact-card:hover { background: rgba(232,236,235,.1); border-color: rgba(212,160,23,.7); transform: translateY(-2px); }
.contact-card:focus-visible { outline-offset: 2px; }
.cc-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(232,236,235,.08); color: var(--glass);
}
.cc-icon .ic { width: 22px; height: 22px; fill: currentColor; }
.cc-icon .ic [stroke], .cc-icon .ic g[fill="none"] { fill: none; }
.cc-text { display: grid; gap: 2px; min-width: 0; }
.cc-text strong { font-size: 16px; font-weight: 650; }
.cc-value { font-size: 14px; color: var(--mist); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cc-arrow { width: 18px; height: 18px; color: var(--mist); transition: transform .25s var(--ease), color .25s; }
.contact-card:hover .cc-arrow { transform: translate(2px, -2px); color: var(--signal); }
.contact-card.primary { grid-column: 1 / -1; background: var(--signal); border-color: var(--signal); color: var(--navy); }
.contact-card.primary .cc-icon { background: rgba(19,33,58,.12); color: var(--navy); }
.contact-card.primary .cc-value { color: rgba(19,33,58,.75); }
.contact-card.primary .cc-arrow { color: var(--navy); }
.contact-card.primary:hover { background: #E6B52C; border-color: #E6B52C; }
@media (max-width: 560px) { .contact-links { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .contact-card:hover { transform: none; } }

/* ==========================================================
   Learning tools
   ========================================================== */
.tools li { position: relative; }
.tools li.learning { border-style: dashed; }
.tools li.learning { grid-template-rows: auto auto auto; }
.tools li.learning .logo, .tools li.learning .mono { grid-row: 1 / 4; }
.learn-tag {
  grid-column: 2; justify-self: start; margin-top: 6px;
  padding: 2px 8px; border-radius: 999px;
  background: var(--navy); color: var(--glass);
  font-style: normal; font-size: 11px; font-weight: 650;
}
.kit-ai .tools li.learning { background: var(--glass); border: 1px dashed rgba(19,33,58,.35); }

/* ==========================================================
   Certificates
   ========================================================== */
.certificates { padding: clamp(80px, 11vw, 150px) 0; border-top: 1px solid var(--rule); }
.cert-grid { display: grid; grid-template-columns: 4fr 1fr 7fr; }
.cert-grid .section-head-col .prose { margin-top: 20px; }
.certs { grid-column: 3; border-top: 1.5px solid var(--navy); }
.cert {
  display: grid; grid-template-columns: 40px 1fr auto; gap: 18px; align-items: center;
  padding: 22px 0; border-bottom: 1px solid var(--rule);
}
.cert-mark {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1.5px solid var(--navy); position: relative;
}
.cert-mark::after {
  content: ""; position: absolute; left: 50%; top: 46%;
  width: 12px; height: 7px; border-left: 2px solid var(--navy); border-bottom: 2px solid var(--navy);
  transform: translate(-50%, -50%) rotate(-45deg);
}
.cert-live .cert-mark { border-style: dashed; border-color: var(--signal-ink); }
.cert-live .cert-mark::after { border: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--signal); transform: translate(-50%, -40%); }
.cert h3 { font-size: 20px; font-weight: 650; letter-spacing: -0.015em; line-height: 1.25; }
.cert-meta { margin-top: 4px; font-size: 15px; color: var(--slate); }
.cert-year { margin-left: 8px; font-variant-numeric: tabular-nums; }
.cert-side { display: flex; align-items: center; gap: 14px; }
.cert-link { font-size: 14px; font-weight: 600; }
@media (max-width: 820px) {
  .cert-grid { grid-template-columns: 1fr; }
  .certs { grid-column: 1; margin-top: 36px; }
  .cert { grid-template-columns: 40px 1fr; }
  .cert-side { grid-column: 2; }
}
@media (max-width: 560px) {
  .tools li.learning { grid-template-rows: none; }
  .tools li.learning .logo, .tools li.learning .mono { grid-row: auto; }
  .learn-tag { grid-column: auto; }
}
