/* ==========================================================================
   TUSSNA — tussna.net
   Design system, built directly from the Tussna Identity System v1.0.

   Palette      Carbon #0B0F17 · Slate #1E293B · Clay #E07A5F (primary)
                Signal #F1F5F9 · Studio #F9FAFB
   Type         Archivo (wdth 112) · IBM Plex Mono · IBM Plex Sans Arabic
   Geometry     8-unit grid · miter joins · 2–4px radii · hairline rules
   Direction    Logical properties throughout, so RTL is structural, not patched
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand */
  --carbon:      #0B0F17;
  --carbon-lift: #0E141F;
  --carbon-deep: #070A11;
  --slate:       #1E293B;
  --slate-lift:  #243044;
  --clay:        #E07A5F;
  --clay-deep:   #C2410C;
  --clay-soft:   #F0B9A6;
  --clay-wash:   #FBEFEA;
  --signal:      #F1F5F9;
  --studio:      #F9FAFB;
  --paper:       #FFFFFF;

  /* Text */
  --ink:         #0B0F17;
  --ink-2:       #334155;
  --ink-3:       #475569;
  --muted:       #64748B;
  --on-dark:     #F1F5F9;
  --on-dark-2:   #CBD5E1;
  --on-dark-3:   #94A3B8;

  /* Lines */
  --line:        #E2E8F0;
  --line-soft:   #EEF2F6;
  --line-dark:   #1E293B;

  /* Type */
  --font-sans: "Archivo", "Tifinagh Tussna", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --font-tifinagh: "Tifinagh Tussna", "Noto Sans Tifinagh", var(--font-sans);
  --wdth: 112%;

  /* Space — 8-unit grid */
  --s1: 4px;   --s2: 8px;   --s3: 12px;  --s4: 16px;  --s5: 20px;
  --s6: 24px;  --s7: 32px;  --s8: 40px;  --s9: 48px;  --s10: 64px;
  --s11: 80px; --s12: 96px; --s13: 128px;

  --gutter: clamp(20px, 5vw, 44px);
  --container: 1240px;
  --container-narrow: 860px;
  --section-y: clamp(72px, 9vw, 128px);

  --radius: 3px;
  --radius-sm: 2px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur: 220ms;
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-block-start: 92px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.65;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; }
img, video { height: auto; display: block; }

h1, h2, h3, h4 {
  margin: 0;
  font-stretch: var(--wdth);
  font-weight: 600;
  letter-spacing: -0.018em;
  line-height: 1.1;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }
figure { margin: 0; }
ul, ol { margin: 0; padding: 0; }
li { list-style: none; }

a { color: inherit; text-decoration: none; }

button, input, select, textarea {
  font: inherit;
  color: inherit;
  margin: 0;
}

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

::selection { background: var(--clay); color: var(--carbon); }

.skip-link {
  position: absolute;
  inset-block-start: -100px;
  inset-inline-start: var(--s4);
  z-index: 200;
  background: var(--clay);
  color: var(--carbon);
  padding: 12px 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  transition: inset-block-start 160ms var(--ease);
}
.skip-link:focus { inset-block-start: var(--s4); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* --------------------------------------------------------------------------
   3. Layout primitives
   -------------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--narrow { max-width: var(--container-narrow); }

.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: clamp(56px, 6.5vw, 88px); }

/* Grounds */
.ground-paper  { background: var(--paper);  color: var(--ink); }
.ground-studio { background: var(--studio); color: var(--ink); }
.ground-carbon {
  background: var(--carbon);
  color: var(--on-dark);
}
.ground-carbon h1, .ground-carbon h2, .ground-carbon h3, .ground-carbon h4 { color: var(--signal); }

.rule { height: 1px; background: var(--line); border: 0; margin: 0; }
.ground-carbon .rule, .rule--dark { background: var(--line-dark); }

.grid { display: grid; gap: var(--s7); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.stack { display: flex; flex-direction: column; }
.stack-2 { gap: var(--s2); } .stack-3 { gap: var(--s3); }
.stack-4 { gap: var(--s4); } .stack-5 { gap: var(--s5); }
.stack-6 { gap: var(--s6); } .stack-7 { gap: var(--s7); }
.stack-8 { gap: var(--s8); } .stack-9 { gap: var(--s9); }
.stack-10 { gap: var(--s10); }

/* --------------------------------------------------------------------------
   4. Typography
   -------------------------------------------------------------------------- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--clay);
  margin: 0;
}
.eyebrow::before {
  content: "";
  inline-size: 22px;
  block-size: 1px;
  background: currentColor;
  flex: none;
  opacity: 0.7;
}
.eyebrow--plain::before { display: none; }
.ground-carbon .eyebrow { color: var(--clay); }

.display {
  font-size: clamp(42px, 6.6vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.028em;
}
.h1 { font-size: clamp(36px, 5vw, 58px); line-height: 1.03; letter-spacing: -0.025em; }
.h2 { font-size: clamp(28px, 3.5vw, 42px); line-height: 1.08; letter-spacing: -0.022em; }
.h3 { font-size: clamp(21px, 2.1vw, 26px); line-height: 1.22; letter-spacing: -0.015em; }
.h4 { font-size: 18px; line-height: 1.35; letter-spacing: -0.01em; font-weight: 600; }

.lead {
  font-size: clamp(18px, 1.55vw, 21px);
  line-height: 1.6;
  color: var(--ink-3);
  max-width: 62ch;
}
.ground-carbon .lead { color: var(--on-dark-2); }

.body-copy { color: var(--ink-3); max-width: 68ch; }
.ground-carbon .body-copy { color: var(--on-dark-2); }

.small { font-size: 15px; line-height: 1.6; color: var(--muted); }
.ground-carbon .small { color: var(--on-dark-3); }

.mono {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.ground-carbon .mono { color: var(--on-dark-3); }

.ico-only {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  inline-size: 22px;
  block-size: 22px;
  border-radius: 5px;
}
.ico-only img {
  inline-size: 22px;
  block-size: 22px;
  display: block;
  opacity: 0.88;
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease);
}
.ico-only:hover img,
.ico-only:focus-visible img { opacity: 1; transform: translateY(-1px); }

.ico-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: inherit;
}
.ico-link img {
  inline-size: 15px;
  block-size: 15px;
  flex: none;
  opacity: 0.78;
  transition: opacity 0.18s ease;
}
.ico-link:hover img,
.ico-link:focus-visible img { opacity: 1; }

.linkline {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--clay);
  text-underline-offset: 3px;
  transition: color var(--dur) var(--ease);
}
.linkline:hover { color: var(--clay); }
.footer-col a[href^="mailto:"] { text-decoration: underline; text-decoration-color: var(--slate-lift); text-underline-offset: 3px; }

.mono-num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--clay);
}

.clay { color: var(--clay); }
.tifinagh {
  font-family: var(--font-tifinagh);
  letter-spacing: 0.08em;
  font-weight: 400;
}

/* Heading with the descending clay stem — the logomark, reduced to a device */

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  font-stretch: 105%;
  letter-spacing: 0.005em;
  line-height: 1.2;
  cursor: pointer;
  text-align: center;
  transition: background-color var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              color var(--dur) var(--ease),
              transform var(--dur) var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn .arrow { transition: transform var(--dur) var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
[dir="rtl"] .btn .arrow { transform: scaleX(-1); }
[dir="rtl"] .btn:hover .arrow { transform: scaleX(-1) translateX(3px); }

.btn-primary { background: var(--clay); color: var(--carbon); border-color: var(--clay); }
.btn-primary:hover { background: var(--clay-deep); border-color: var(--clay-deep); color: var(--signal); }

.btn-dark { background: var(--carbon); color: var(--signal); border-color: var(--carbon); }
.btn-dark:hover { background: var(--slate); border-color: var(--slate); }

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.ground-carbon .btn-ghost { color: var(--signal); border-color: var(--slate-lift); }
.ground-carbon .btn-ghost:hover { border-color: var(--clay); color: var(--clay); }

.btn-sm { padding: 10px 18px; font-size: 13.5px; }

.btn:disabled,
.btn[aria-disabled="true"] {
  cursor: not-allowed;
  transform: none;
  background: transparent;
  color: var(--muted);
  border: 1px dashed var(--line);
}
.btn:disabled:hover,
.btn[aria-disabled="true"]:hover { transform: none; background: transparent; }
.ground-carbon .btn:disabled,
.ground-carbon .btn[aria-disabled="true"] { color: var(--on-dark-3); border-color: var(--slate-lift); }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; }

/* Status chip */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--paper);
}
.chip::before {
  content: "";
  inline-size: 5px; block-size: 5px;
  border-radius: 50%;
  background: var(--muted);
  flex: none;
}
.chip--soon { color: var(--clay-deep); border-color: var(--clay-soft); background: var(--clay-wash); }
.chip--soon::before { background: var(--clay); }
.chip--live { color: var(--ink); border-color: var(--line); }
.chip--live::before { background: var(--clay); }
.ground-carbon .chip { background: transparent; border-color: var(--slate-lift); color: var(--on-dark-3); }
.ground-carbon .chip--soon { color: var(--clay); border-color: rgba(224,122,95,.4); background: rgba(224,122,95,.08); }

/* --------------------------------------------------------------------------
   6. Header / navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  inset-block-start: 0;
  z-index: 100;
  background: var(--carbon);
  border-block-end: 1px solid var(--line-dark);
}
.nav {
  display: flex;
  align-items: center;
  gap: var(--s6);
  block-size: 74px;
}

.brand { display: inline-flex; align-items: center; gap: 12px; flex: none; }
.brand svg { inline-size: 26px; block-size: 26px; overflow: visible; flex: none; }
.brand-name {
  font-size: 18px;
  font-weight: 600;
  font-stretch: var(--wdth);
  letter-spacing: 0.055em;
  text-transform: uppercase;
  line-height: 1;
  color: var(--signal);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-inline-start: auto;
}
.nav-link {
  padding: 9px 14px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--on-dark-2);
  border-radius: var(--radius-sm);
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease);
  position: relative;
}
.nav-link:hover { color: var(--signal); background: rgba(255,255,255,.05); }
.nav-link[aria-current="page"] { color: var(--signal); }
.nav-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  inset-block-end: -2px;
  inset-inline-start: 14px;
  inline-size: 14px;
  block-size: 2px;
  background: var(--clay);
}

.nav-tools { display: flex; align-items: center; gap: var(--s4); flex: none; }

.lang-switch {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid var(--slate);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.lang-btn {
  background: transparent;
  border: 0;
  padding: 7px 11px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--on-dark-3);
  cursor: pointer;
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.lang-btn + .lang-btn { border-inline-start: 1px solid var(--slate); }
.lang-btn:hover { color: var(--signal); background: rgba(255,255,255,.05); }
.lang-btn[aria-pressed="true"] { background: var(--clay); color: var(--carbon); }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  inline-size: 42px; block-size: 38px;
  background: transparent;
  border: 1px solid var(--slate);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.nav-toggle span {
  position: relative;
  display: block;
  inline-size: 16px; block-size: 1.5px;
  background: var(--signal);
  transition: background-color 120ms var(--ease);
}
.nav-toggle span::before, .nav-toggle span::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  inline-size: 16px; block-size: 1.5px;
  background: var(--signal);
  transition: transform var(--dur) var(--ease);
}
.nav-toggle span::before { inset-block-start: -5px; }
.nav-toggle span::after  { inset-block-start: 5px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { transform: translateY(-5px) rotate(-45deg); }

/* Mobile drawer */
.nav-drawer {
  display: none;
  background: var(--carbon);
  border-block-start: 1px solid var(--line-dark);
}
.nav-drawer.is-open { display: block; }
.nav-drawer .wrap { padding-block: var(--s6) var(--s8); }
.nav-drawer .nav-link {
  display: block;
  padding: 14px 0;
  font-size: 20px;
  font-weight: 600;
  font-stretch: var(--wdth);
  letter-spacing: -0.01em;
  border-block-end: 1px solid var(--line-dark);
  border-radius: 0;
}
.nav-drawer .nav-link:hover { background: transparent; color: var(--clay); }
.nav-drawer .nav-link[aria-current="page"]::after { display: none; }
.nav-drawer .nav-link[aria-current="page"] { color: var(--clay); }

/* --------------------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------------------- */
.hero {
  background: var(--carbon);
  color: var(--on-dark);
  position: relative;
  overflow: hidden;
  border-block-end: 1px solid var(--line-dark);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(30,41,59,.5) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(30,41,59,.5) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(120% 90% at 50% 0%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 20%, transparent 78%);
  pointer-events: none;
}
.hero > .wrap { position: relative; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding-block: clamp(64px, 8vw, 116px);
}
.hero-copy { display: flex; flex-direction: column; gap: var(--s6); }
.hero h1 { color: var(--signal); }
.hero .lead { color: var(--on-dark-2); max-width: 46ch; }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3) var(--s6);
  padding-block-start: var(--s5);
  border-block-start: 1px solid var(--line-dark);
  margin-block-start: var(--s2);
}
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta span::before {
  content: "";
  inline-size: 4px; block-size: 4px;
  background: var(--clay);
  flex: none;
}

/* Page hero (interior pages) */
.page-hero { background: var(--carbon); color: var(--on-dark); border-block-end: 1px solid var(--line-dark); position: relative; overflow: hidden; }
.page-hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(30,41,59,.45) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(30,41,59,.45) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(100% 100% at 100% 0%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(100% 100% at 100% 0%, #000 0%, transparent 70%);
}
.page-hero > .wrap { position: relative; padding-block: clamp(56px, 7vw, 104px); }
.page-hero .lead { color: var(--on-dark-2); }
.page-hero-inner { display: flex; flex-direction: column; gap: var(--s6); max-width: 58ch; }

/* A page-hero that is the whole page (contact). Taller, so the footer
   does not ride up under a short block of copy. */
.page-hero--solo > .wrap {
  padding-block: clamp(72px, 10vw, 132px);
  min-block-size: calc(62svh - 74px);
  display: flex;
  align-items: center;
}
.contact-lines {
  display: flex;
  flex-direction: column;
  gap: var(--s4);
  margin-block-start: var(--s2);
  font-size: 19px;
  line-height: 1.5;
}
.contact-lines a.linkline { color: var(--signal); }

/* --------------------------------------------------------------------------
   8. Panels, cards, figures
   -------------------------------------------------------------------------- */
.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  padding: clamp(24px, 3vw, 36px);
}
.ground-carbon .panel,
.panel--dark {
  border-color: var(--line-dark);
  background: var(--carbon-lift);
  color: var(--on-dark-2);
}
.panel--flush { padding: 0; overflow: hidden; }

/* Numbered feature card */
.feature {
  display: flex;
  flex-direction: column;
  gap: var(--s3);
  padding: var(--s7) 0 var(--s6);
  border-block-start: 1px solid var(--line);
  position: relative;
}
.ground-carbon .feature { border-block-start-color: var(--line-dark); }
.feature::before {
  content: "";
  position: absolute;
  inset-block-start: -1px;
  inset-inline-start: 0;
  inline-size: 32px; block-size: 2px;
  background: var(--clay);
  transform: scaleX(0);
  transform-origin: inline-start;
  transition: transform 420ms var(--ease);
}
.feature.is-visible::before { transform: scaleX(1); }
.feature-idx { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; color: var(--clay); }
.feature h3 { font-size: 19px; letter-spacing: -0.01em; }
.feature p { font-size: 15.5px; line-height: 1.62; color: var(--ink-3); }
.ground-carbon .feature p { color: var(--on-dark-3); }

/* Course card */
.course-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  overflow: hidden;
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.course-card:hover { border-color: var(--clay); transform: translateY(-3px); }
.course-card__visual {
  background: var(--carbon);
  border-block-end: 1px solid var(--line);
  padding: var(--s7);
  display: flex;
  align-items: center;
  justify-content: center;
  min-block-size: 190px;
  position: relative;
  overflow: hidden;
}
.course-card__body { padding: clamp(22px, 2.6vw, 30px); display: flex; flex-direction: column; gap: var(--s4); flex: 1; }
.course-card__body h3 { font-size: 22px; }
.course-card__foot { margin-block-start: auto; padding-block-start: var(--s5); border-block-start: 1px solid var(--line-soft); }

.course-card--ghost {
  border-style: dashed;
  background: transparent;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(36px, 5vw, 64px) var(--s7);
  gap: var(--s4);
  min-block-size: 300px;
}
.course-card--ghost:hover { transform: none; border-color: var(--line); }

/* Spec list — key / value rows */
.spec { display: grid; gap: 0; }
.spec-row {
  display: grid;
  grid-template-columns: minmax(120px, 0.42fr) minmax(0, 1fr);
  gap: var(--s4);
  padding-block: 13px;
  border-block-end: 1px solid var(--line-soft);
  align-items: baseline;
}
.spec-row:first-child { border-block-start: 1px solid var(--line-soft); }
.ground-carbon .spec-row,
.ground-carbon .spec-row:first-child { border-color: var(--line-dark); }
.spec-key {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.ground-carbon .spec-key { color: var(--on-dark-3); }
.spec-val { font-size: 15.5px; line-height: 1.5; color: var(--ink); }
.ground-carbon .spec-val { color: var(--signal); }

/* Programme table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.ground-carbon .table-wrap { border-color: var(--line-dark); }
table.data { inline-size: 100%; border-collapse: collapse; min-inline-size: 620px; }
table.data th, table.data td {
  text-align: start;
  padding: 15px 20px;
  border-block-end: 1px solid var(--line-soft);
  vertical-align: top;
}
table.data thead th {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--studio);
  border-block-end-color: var(--line);
  white-space: nowrap;
}
table.data tbody tr:last-child td { border-block-end: 0; }
table.data td { font-size: 15px; line-height: 1.5; color: var(--ink-3); }
table.data td:first-child {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--clay);
  white-space: nowrap;
  letter-spacing: 0.04em;
}
table.data td.strong { color: var(--ink); font-weight: 600; font-family: var(--font-sans); font-size: 15.5px; letter-spacing: 0; }
.ground-carbon table.data thead th { background: var(--carbon-deep); color: var(--on-dark-3); border-block-end-color: var(--line-dark); }
.ground-carbon table.data th, .ground-carbon table.data td { border-block-end-color: var(--line-dark); }
.ground-carbon table.data td { color: var(--on-dark-2); }
.ground-carbon table.data td.strong { color: var(--signal); }

/* Concept grid (the twelve) */
.concept {
  padding: var(--s5) 0;
  border-block-start: 1px solid var(--line-dark);
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.concept-idx { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.16em; color: var(--clay); }
.concept h3, .concept h4 { color: var(--signal); font-size: 16.5px; line-height: 1.3; letter-spacing: -0.01em; }
.concept p { font-size: 14.5px; line-height: 1.58; color: var(--on-dark-3); }

/* Ticked list */
.ticks { display: flex; flex-direction: column; gap: var(--s3); }
.ticks li {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink-3);
}
.ticks li::before {
  content: "";
  flex: none;
  inline-size: 8px; block-size: 8px;
  margin-block-start: 8px;
  border-inline-start: 2px solid var(--clay);
  border-block-end: 2px solid var(--clay);
  transform: rotate(-45deg);
}
.ground-carbon .ticks li { color: var(--on-dark-2); }

/* Numbered steps */
.steps { counter-reset: step; display: flex; flex-direction: column; }
.steps > li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: var(--s5);
  padding-block: var(--s5);
  border-block-end: 1px solid var(--line-soft);
}
.steps > li:first-child { border-block-start: 1px solid var(--line-soft); }
.steps > li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--clay);
  padding-block-start: 3px;
}
.steps h4 { margin-block-end: 5px; }
.steps p { font-size: 15px; line-height: 1.6; color: var(--ink-3); }
.ground-carbon .steps > li, .ground-carbon .steps > li:first-child { border-color: var(--line-dark); }
.ground-carbon .steps p { color: var(--on-dark-3); }

/* Accordion — use cases */
.acc { border-block-start: 1px solid var(--line); }
.acc-item { border-block-end: 1px solid var(--line); }
.acc-head {
  inline-size: 100%;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--s4);
  padding: var(--s6) 0;
  background: transparent;
  border: 0;
  cursor: pointer;
  text-align: start;
  transition: color var(--dur) var(--ease);
}
.acc-head:hover { color: var(--clay-deep); }
.acc-idx { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.1em; color: var(--clay); }
.acc-title { font-size: clamp(17px, 1.8vw, 21px); font-weight: 600; font-stretch: var(--wdth); letter-spacing: -0.015em; line-height: 1.25; }
.acc-side { display: flex; align-items: center; gap: var(--s4); }
.acc-dur { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; color: var(--muted); white-space: nowrap; }
.acc-sign { position: relative; inline-size: 14px; block-size: 14px; flex: none; }
.acc-sign::before, .acc-sign::after {
  content: ""; position: absolute; background: var(--clay);
  inset-block-start: 50%; inset-inline-start: 0;
  inline-size: 14px; block-size: 2px; margin-block-start: -1px;
  transition: transform var(--dur) var(--ease);
}
.acc-sign::after { transform: rotate(90deg); }
.acc-head[aria-expanded="true"] .acc-sign::after { transform: rotate(0deg); }
.acc-panel { display: none; padding-block: 0 var(--s8); }
.acc-panel.is-open { display: block; }
.acc-body { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: var(--s4); }
.acc-body > div { display: flex; flex-direction: column; gap: var(--s6); max-width: 74ch; }

/* Figure frames */
.figure {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--carbon);
  overflow: hidden;
  position: relative;
}
.figure svg { display: block; inline-size: 100%; block-size: auto; }
.figure figcaption {
  padding: 12px 18px;
  border-block-start: 1px solid var(--line-dark);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-dark-3);
  background: var(--carbon);
}

/* Honest asset placeholder */
.slot {
  border: 1px dashed var(--slate-lift);
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(-45deg, rgba(30,41,59,.28) 0 1px, transparent 1px 9px),
    var(--carbon-lift);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--s3);
  padding: var(--s8) var(--s6);
  min-block-size: 190px;
  text-align: center;
}
.slot .mono { color: var(--on-dark-3); }
.slot svg { opacity: .5; }
.slot--light {
  border-color: var(--line);
  background:
    repeating-linear-gradient(-45deg, rgba(226,232,240,.7) 0 1px, transparent 1px 9px),
    var(--studio);
}
.slot--light .mono { color: var(--muted); }

/* Video slot */
.video-slot {
  position: relative;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: var(--carbon-lift);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-slot::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(30,41,59,.55) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(30,41,59,.55) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(70% 70% at 50% 50%, #000, transparent);
  -webkit-mask-image: radial-gradient(70% 70% at 50% 50%, #000, transparent);
}
.video-slot__inner { position: relative; display: flex; flex-direction: column; align-items: center; gap: var(--s5); }
.play {
  inline-size: 64px; block-size: 64px;
  border: 1px solid var(--clay);
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.play::after {
  content: "";
  inline-size: 0; block-size: 0;
  border-block-start: 8px solid transparent;
  border-block-end: 8px solid transparent;
  border-inline-start: 13px solid var(--clay);
  margin-inline-start: 4px;
}
[dir="rtl"] .play::after { transform: scaleX(-1); margin-inline-start: 0; margin-inline-end: 4px; }

/* Callout */
.callout {
  border-inline-start: 2px solid var(--clay);
  padding: var(--s2) 0 var(--s2) var(--s6);
  padding-inline-start: var(--s6);
  display: flex;
  flex-direction: column;
  gap: var(--s2);
}
.callout p { font-size: 16px; line-height: 1.6; color: var(--ink-2); }
.ground-carbon .callout p { color: var(--on-dark-2); }

/* Quote / statement band */
.statement {
  font-size: clamp(24px, 3.1vw, 38px);
  line-height: 1.22;
  font-weight: 500;
  font-stretch: var(--wdth);
  letter-spacing: -0.022em;
  max-width: 22ch;
}

/* Big number stat */
.stat { display: flex; flex-direction: column; gap: 6px; }
.stat-fig {
  font-size: clamp(30px, 3.4vw, 42px);
  font-weight: 600;
  font-stretch: var(--wdth);
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--clay);
}
.stat-lab { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.ground-carbon .stat-lab { color: var(--on-dark-3); }

/* --------------------------------------------------------------------------
   9. Forms
   -------------------------------------------------------------------------- */
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input, .field textarea, .field select {
  inline-size: 100%;
  padding: 13px 15px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 15.5px;
  transition: border-color var(--dur) var(--ease);
}
.field textarea { resize: vertical; min-block-size: 140px; }
.field input:hover, .field textarea:hover, .field select:hover { border-color: #CBD5E1; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--clay); outline: none; }
.field input::placeholder, .field textarea::placeholder { color: #94A3B8; }

.form-note {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  padding: var(--s4) var(--s5);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: var(--studio);
}
.form-note p { font-size: 14px; line-height: 1.55; color: var(--muted); }

/* --------------------------------------------------------------------------
   10. Footer
   -------------------------------------------------------------------------- */
.site-footer { background: var(--carbon); color: var(--on-dark-2); }
.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: var(--s8);
  padding-block: clamp(40px, 4vw, 60px) var(--s9);
}
.footer-brand { display: flex; flex-direction: column; gap: var(--s5); max-width: 34ch; }
.footer-col { display: flex; flex-direction: column; gap: var(--s4); }
.footer-col h4, .footer-col .footer-h {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--on-dark-3);
}
.footer-col ul { display: flex; flex-direction: column; gap: 11px; }
.footer-col a, .footer-col span { font-size: 14.5px; color: var(--on-dark-2); transition: color var(--dur) var(--ease); }
.footer-col a:hover { color: var(--clay); }
.footer-col .ph { color: var(--on-dark-3); font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s4) var(--s7);
  padding-block: var(--s6) var(--s8);
  border-block-start: 1px solid var(--line-dark);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--on-dark-3);
}
.footer-bottom .spacer { margin-inline-start: auto; }

/* --------------------------------------------------------------------------
   11. Motion
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 640ms var(--ease), transform 640ms var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }

.draw path, .draw line, .draw circle, .draw rect.dw {
  stroke-dasharray: var(--len, 400);
  stroke-dashoffset: var(--len, 400);
  animation: draw 1500ms var(--ease) forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .draw path, .draw line, .draw circle, .draw rect.dw { stroke-dashoffset: 0; }
}

/* --------------------------------------------------------------------------
   12. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .footer-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s9) var(--s8); }
  .footer-brand { grid-column: 1 / -1; max-width: none; }
}

@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-cta { display: none; }   /* lives in the drawer below this width */
  .nav { gap: var(--s4); }
  .nav-tools { margin-inline-start: auto; gap: var(--s3); }

  .hero-grid { grid-template-columns: 1fr; gap: var(--s9); padding-block: var(--s10) var(--s11); }
  .hero-copy { max-width: none; }
  .hero-visual-wrap { max-width: 460px; margin-inline: auto; inline-size: 100%; }

  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: 1fr !important; gap: var(--s8) !important; }
}

@media (max-width: 700px) {
  body { font-size: 16px; }
  :root { --section-y: clamp(56px, 11vw, 80px); }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .grid { gap: var(--s6); }
  .hero-meta { flex-direction: column; gap: var(--s2); }
  .spec-row { grid-template-columns: 1fr; gap: 4px; padding-block: 12px; }
  .steps > li { grid-template-columns: 30px minmax(0, 1fr); gap: var(--s4); }
  .acc-head { grid-template-columns: 30px minmax(0, 1fr) auto; gap: var(--s3); padding-block: var(--s5); }
  .acc-body { grid-template-columns: 1fr; }
  .acc-side .acc-dur { display: none; }
  .footer-top { grid-template-columns: 1fr; gap: var(--s8); }
  .btn { inline-size: 100%; }
  .btn-row { gap: var(--s3); }
  .btn-row .btn { inline-size: 100%; }
  .btn-sm { inline-size: auto; }
  .lang-btn { padding: 7px 9px; font-size: 10.5px; }
  .brand-name { font-size: 16px; }
  .statement { max-width: none; }
}

@media (max-width: 400px) {
  .brand svg { inline-size: 22px; block-size: 22px; }
  .nav { block-size: 66px; }
}

@media print {
  .site-header, .site-footer, .nav-drawer { display: none; }
  body { color: #000; background: #fff; }
  .reveal { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   13. Dark surfaces — one contract for every carbon context
   .ground-carbon (section), .hero / .page-hero, and .panel--dark (a dark
   panel sitting on a light section) all resolve to the same rules, so a
   component never has to know which ground it landed on.
   -------------------------------------------------------------------------- */
.panel--dark {
  background: var(--carbon-lift);
  border-color: var(--line-dark);
  color: var(--on-dark-2);
}

.hero, .page-hero, .panel--dark { color-scheme: dark; }

.hero h1, .hero h2, .hero h3, .hero h4,
.page-hero h1, .page-hero h2, .page-hero h3, .page-hero h4,
.panel--dark h1, .panel--dark h2, .panel--dark h3, .panel--dark h4 { color: var(--signal); }

.hero .body-copy, .page-hero .body-copy, .panel--dark .body-copy,
.hero .lead, .page-hero .lead, .panel--dark .lead { color: var(--on-dark-2); }

.hero .small, .page-hero .small, .panel--dark .small,
.hero .mono, .page-hero .mono, .panel--dark .mono { color: var(--on-dark-3); }

.hero .rule, .page-hero .rule, .panel--dark .rule { background: var(--line-dark); }

.hero .spec-row, .page-hero .spec-row, .panel--dark .spec-row,
.hero .spec-row:first-child, .page-hero .spec-row:first-child, .panel--dark .spec-row:first-child { border-color: var(--line-dark); }
.hero .spec-key, .page-hero .spec-key, .panel--dark .spec-key { color: var(--on-dark-3); }
.hero .spec-val, .page-hero .spec-val, .panel--dark .spec-val { color: var(--signal); }

.hero .ticks li, .page-hero .ticks li, .panel--dark .ticks li { color: var(--on-dark-2); }
.hero .feature, .page-hero .feature, .panel--dark .feature { border-block-start-color: var(--line-dark); }
.hero .feature p, .page-hero .feature p, .panel--dark .feature p { color: var(--on-dark-3); }
.hero .callout p, .page-hero .callout p, .panel--dark .callout p { color: var(--on-dark-2); }
.hero .steps > li, .page-hero .steps > li, .panel--dark .steps > li,
.hero .steps > li:first-child, .page-hero .steps > li:first-child, .panel--dark .steps > li:first-child { border-color: var(--line-dark); }
.hero .steps p, .page-hero .steps p, .panel--dark .steps p { color: var(--on-dark-3); }

/* Buttons on dark ground */
.hero .btn-ghost, .page-hero .btn-ghost, .panel--dark .btn-ghost {
  color: var(--signal);
  border-color: var(--slate-lift);
  background: transparent;
}
.hero .btn-ghost:hover, .page-hero .btn-ghost:hover, .panel--dark .btn-ghost:hover {
  border-color: var(--clay);
  color: var(--clay);
}
.hero .btn:disabled, .page-hero .btn:disabled, .panel--dark .btn:disabled,
.hero .btn[aria-disabled="true"], .page-hero .btn[aria-disabled="true"], .panel--dark .btn[aria-disabled="true"] {
  color: var(--on-dark-3);
  border-color: var(--slate-lift);
}

/* Chips on dark ground */
.hero .chip, .page-hero .chip, .panel--dark .chip {
  background: transparent; border-color: var(--slate-lift); color: var(--on-dark-3);
}
.hero .chip--soon, .page-hero .chip--soon, .panel--dark .chip--soon {
  color: var(--clay); border-color: rgba(224, 122, 95, .42); background: rgba(224, 122, 95, .08);
}

/* --------------------------------------------------------------------------
   14. Photography
   Images sit in the brand rather than on top of it: a carbon wash, slightly
   lifted contrast, and the same hairline frame every other panel uses.
   Drop a real photograph in at the documented path and it inherits all of it.
   -------------------------------------------------------------------------- */
.figure.photo { background: var(--carbon); position: relative; }
.figure.photo img {
  inline-size: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  filter: saturate(0.95) contrast(1.02);
}
.figure.photo::after {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline: 0;
  block-size: 100%;
  background: linear-gradient(180deg, rgba(11,15,23,0) 55%, rgba(11,15,23,.42) 100%);
  pointer-events: none;
}
.figure.photo figcaption { position: relative; z-index: 1; }

/* Some photographs are much wider than the 4:3 default. This keeps their own
   shape instead of cropping the sides off. */
.figure.photo--wide img { aspect-ratio: 1800 / 956; }

/* Slot waiting for a photograph. Same frame as a real .figure.photo. */
.ph-box {
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    repeating-linear-gradient(135deg, transparent 0 14px, rgba(148,163,184,.07) 14px 15px),
    var(--carbon-lift);
  border: 1px dashed var(--line-dark);
}
.ph-box .mono { color: var(--on-dark-3); }
.ground-paper .ph-box, .ground-studio .ph-box {
  background:
    repeating-linear-gradient(135deg, transparent 0 14px, rgba(11,15,23,.05) 14px 15px),
    var(--studio);
  border-color: var(--line);
}
.ground-paper .ph-box .mono, .ground-studio .ph-box .mono { color: var(--muted); }
.order-first { order: -1; }
@media (max-width: 860px) {
  .order-first { order: 0; }
}

/* Full width band */
.band { background: var(--carbon); line-height: 0; }
.band img {
  inline-size: 100%;
  block-size: clamp(240px, 34vw, 460px);
  object-fit: cover;
  filter: saturate(0.9) contrast(1.03);
}

/* Course card photo header */
.course-card__visual--photo { padding: 0; min-block-size: 0; display: block; }
.course-card__visual--photo img {
  inline-size: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  filter: saturate(0.95) contrast(1.02);
}

/* The homepage hero is the only section on the page, so it sits up under the
   header rather than being centred in a full viewport box. The picture takes
   the wider column and both columns start at the top, which puts the image
   high on the page and gives the headline room to set on two lines. */
.hero--full .hero-grid {
  min-block-size: 0;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.22fr);
  gap: clamp(28px, 3.6vw, 56px);
  align-items: start;
  align-content: start;
  padding-block: clamp(28px, 3.4vw, 52px) clamp(24px, 3vw, 44px);
}
.hero--full .hero-copy { max-width: none; }
/* Top of the image lines up with the cap height of the headline's first
   letter: eyebrow row (42px) + the leading above the cap in the h1 line box
   (~0.21 of its font size, which is the same clamp used on .display). */
.hero--full .hero-visual-wrap {
  align-self: start;
  margin-block-start: calc(41px + 0.21 * clamp(38px, 4.4vw, 60px));
}
.hero--full .lead { max-width: none; }
.hero--full .display { font-size: clamp(38px, 4.4vw, 60px); line-height: 1.03; }

@media (max-width: 960px) {
  .hero--full .hero-grid {
    grid-template-columns: 1fr;
    padding-block: var(--s8) var(--s10);
  }
  .hero--full .hero-copy { max-width: none; }
  .hero--full .hero-visual-wrap { margin-block-start: 0; }
}

/* --------------------------------------------------------------------------
   Training page: segmented toggle + wide session cards
   -------------------------------------------------------------------------- */
.toggle-band {
  background: var(--carbon);
  border-block-end: 1px solid var(--line-dark);
  padding-block: clamp(26px, 3.2vw, 44px);
}
.toggle-band .wrap { display: flex; justify-content: center; }

.seg {
  display: inline-flex;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-sm);
  overflow: hidden;
  align-self: start;
}
.seg-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--on-dark-2);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 12px 22px;
  cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.seg-btn + .seg-btn { border-inline-start: 1px solid var(--line-dark); }
.seg-btn:hover { color: var(--signal); }
.seg-btn[aria-selected="true"] { background: var(--clay); color: var(--carbon); }

.view[hidden] { display: none; }

.scards { display: flex; flex-direction: column; gap: var(--s5); }

.scard {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr) auto;
  gap: clamp(20px, 2.6vw, 36px);
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--s6);
}
.scard-art {
  inline-size: 200px;
  block-size: 150px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  display: block;
}
.scard-body { display: flex; flex-direction: column; gap: 10px; }
.scard-date { color: var(--clay); letter-spacing: 0.14em; }
.scard-desc { color: var(--ink-3); max-width: 62ch; }

.scard-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px var(--s6);
  margin-block-start: 4px;
}
.scard-meta li {
  display: flex;
  gap: 10px;
  align-items: baseline;
  font-size: 14.5px;
  color: var(--ink-2);
}
.scard-meta .mono { flex: none; inline-size: 82px; font-size: 10.5px; color: var(--muted); }

.scard-act { display: flex; justify-content: flex-end; }
.btn-static { cursor: default; white-space: nowrap; }

@media (max-width: 1040px) {
  .scard { grid-template-columns: 160px minmax(0, 1fr); }
  .scard-art { inline-size: 160px; block-size: 120px; }
  .scard-act { grid-column: 1 / -1; justify-content: flex-start; }
}
@media (max-width: 660px) {
  .scard { grid-template-columns: 1fr; padding: var(--s5); }
  .scard-art { inline-size: 100%; block-size: auto; aspect-ratio: 4 / 3; }
  .scard-meta { grid-template-columns: 1fr; }
  .seg { inline-size: 100%; }
  .seg-btn { flex: 1; padding-inline: 12px; }
}

/* Broken or missing image should not leave a white gap */
img[src^="assets/img/photo-"] { background: var(--carbon-lift); color: var(--on-dark-3); font-size: 12px; }
