/* Smart Interactive Media — Course Site
   Design System
   ──────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Familjen+Grotesk:wght@400;500;600;700&family=Source+Serif+4:ital,opsz,wght@0,8..60,400;0,8..60,500;0,8..60,600;1,8..60,400&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* ── Palette ── (warm cream + plum + muted red) */
  --bg:          #f5f1ea;
  --bg-elev:    #fbf8f2;
  --bg-sunken:  #ece7dc;
  --ink:         #1f1d1c;
  --ink-2:       #2b2a28;
  --ink-3:       #5b554c;
  --ink-4:       #9a9388;
  --hairline:   #d8d2c6;
  --hairline-2: #c6bfb1;

  --plum:        #3a1f3d;
  --plum-2:      #2a1228;
  --plum-soft:   #5e3960;

  --red:         #b04a3f;
  --red-2:       #8e3a31;
  --red-soft:    #d8786d;

  /* ── Type ── */
  --f-display: 'Familjen Grotesk', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --f-body:    'Familjen Grotesk', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --f-edit:    'Source Serif 4', Georgia, 'Times New Roman', serif;
  --f-mono:    'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* ── Spacing scale ── */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px;  --s-4: 16px;
  --s-5: 24px; --s-6: 32px; --s-7: 48px;  --s-8: 64px;
  --s-9: 96px; --s-10: 128px;

  /* ── Layout ── */
  --maxw: 1240px;
  --gutter: clamp(20px, 4vw, 48px);

  /* ── Density (overridden by tweaks) ── */
  --density-y: 1;

  /* ── Card style (overridden by tweaks) ── */
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink-2);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

::selection { background: var(--plum); color: var(--bg); }

/* ── Type scale ── */
.h-display {
  font-family: var(--f-display);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.02;
  color: var(--plum);
  font-size: clamp(40px, 6.4vw, 88px);
}
.h1 {
  font-family: var(--f-display);
  font-weight: 500;
  letter-spacing: -0.018em;
  line-height: 1.05;
  color: var(--plum);
  font-size: clamp(34px, 4.6vw, 56px);
  margin: 0;
}
.h2 {
  font-family: var(--f-display);
  font-weight: 500;
  letter-spacing: -0.014em;
  line-height: 1.1;
  color: var(--plum);
  font-size: clamp(26px, 3vw, 36px);
  margin: 0;
}
.h3 {
  font-family: var(--f-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--plum);
  font-size: 20px;
  margin: 0;
}
.h4 {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0;
  color: var(--ink);
  margin: 0;
}
.lede {
  font-family: var(--f-edit);
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.55;
  color: var(--ink-3);
  font-weight: 400;
  max-width: 62ch;
}
.body-edit {
  font-family: var(--f-edit);
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink-2);
  max-width: 64ch;
}
.body-edit p { margin: 0 0 1.1em; }
.body-edit p:last-child { margin-bottom: 0; }

.eyebrow {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
}
.meta {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-3);
}

/* ── Layout containers ── */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.section {
  padding: calc(var(--s-9) * var(--density-y)) 0;
}
.section--tight { padding: calc(var(--s-7) * var(--density-y)) 0; }
.section + .section { border-top: 1px solid var(--hairline); }

.row { display: flex; gap: var(--s-4); }
.col { display: flex; flex-direction: column; }
.stack-2 > * + * { margin-top: var(--s-2); }
.stack-3 > * + * { margin-top: var(--s-3); }
.stack-4 > * + * { margin-top: var(--s-4); }
.stack-5 > * + * { margin-top: var(--s-5); }
.stack-6 > * + * { margin-top: var(--s-6); }
.stack-7 > * + * { margin-top: var(--s-7); }

/* ── Top bar / utility ── */
.utility {
  border-bottom: 1px solid var(--hairline);
  background: var(--bg-elev);
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--ink-3);
}
.utility .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 32px;
  letter-spacing: 0.04em;
}
.utility a { color: var(--ink-3); }
.utility a:hover { color: var(--plum); }
.utility .util-links { display: flex; gap: var(--s-5); }

/* ── Nav ── */
.nav {
  border-bottom: 1px solid var(--hairline);
  background: var(--bg);
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(8px);
  background: color-mix(in oklab, var(--bg) 88%, transparent);
}
.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--f-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--plum);
  font-size: 17px;
  line-height: 1.15;
}
.brand > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.brand-mark {
  width: 28px; height: 28px;
  background: var(--plum);
  position: relative;
  flex-shrink: 0;
}
.brand-mark::after {
  content: '';
  position: absolute;
  right: -3px; bottom: -3px;
  width: 10px; height: 10px;
  background: var(--red);
}
.brand small {
  display: block;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-family: var(--f-mono);
  font-weight: 500;
  margin-top: 2px;
}
.nav-links {
  display: flex;
  gap: var(--s-6);
  align-items: center;
}
.nav-links a {
  font-size: 15px;
  color: var(--ink-2);
  font-weight: 500;
  position: relative;
  padding: 6px 0;
}
.nav-links a:hover { color: var(--plum); }
.nav-links a.active { color: var(--plum); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: var(--red);
}
.nav-burger {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--hairline);
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
}
.nav-burger span {
  display: block;
  width: 18px; height: 1.5px;
  background: var(--ink-2);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  font-family: var(--f-display);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 120ms ease, color 120ms ease, border-color 120ms ease;
  text-decoration: none;
  background: transparent;
  white-space: nowrap;
}
.btn--primary {
  background: var(--red);
  color: var(--bg-elev);
}
.btn--primary:hover { background: var(--red-2); }
.btn--secondary {
  background: var(--plum);
  color: var(--bg-elev);
}
.btn--secondary:hover { background: var(--plum-2); }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--hairline-2);
}
.btn--ghost:hover { border-color: var(--plum); color: var(--plum); }
.btn--link {
  padding: 0;
  background: transparent;
  color: var(--plum);
  border-bottom: 1px solid var(--plum);
  border-radius: 0;
  padding-bottom: 2px;
}
.btn--link:hover { color: var(--red); border-color: var(--red); }
.btn .arrow { transition: transform 160ms ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ── Tag / chip ── */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.03em;
  color: var(--ink-3);
  background: transparent;
  border: 1px solid var(--hairline-2);
}
.tag--solid {
  background: var(--bg-sunken);
  border-color: transparent;
}
.tag--plum {
  color: var(--plum);
  border-color: color-mix(in oklab, var(--plum) 30%, transparent);
  background: color-mix(in oklab, var(--plum) 6%, transparent);
}

/* ── Card (default style: hairline) ── */
.card {
  background: var(--bg-elev);
  border: 1px solid var(--hairline);
  display: flex; flex-direction: column;
  transition: border-color 160ms ease, transform 220ms ease;
  position: relative;
}
.card:hover { border-color: var(--plum); }
.card-media {
  aspect-ratio: 16/10;
  background: var(--bg-sunken);
  border-bottom: 1px solid var(--hairline);
  position: relative;
  overflow: hidden;
}
.card-media .placeholder {
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(
      45deg,
      transparent 0 14px,
      color-mix(in oklab, var(--ink-4) 10%, transparent) 14px 15px
    );
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-3);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
}
.card-body {
  padding: 24px;
  display: flex; flex-direction: column; gap: 14px;
  flex: 1;
}
.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.card-title {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--plum);
  line-height: 1.18;
}
.card-summary {
  color: var(--ink-3);
  font-size: 14.5px;
  line-height: 1.55;
}
.card-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.card-actions {
  display: flex; gap: 14px;
  padding-top: 12px;
  margin-top: auto;
  border-top: 1px solid var(--hairline);
  align-items: center;
}
.card-actions .btn--link { font-size: 13px; }

/* Card variants — controlled by .cards[data-style] */
.cards[data-style="topline"] .card {
  border: none;
  border-top: 2px solid var(--plum);
  background: transparent;
  padding-top: 0;
}
.cards[data-style="topline"] .card:hover { border-top-color: var(--red); }
.cards[data-style="topline"] .card-media {
  border: 1px solid var(--hairline);
  border-top: 0;
}
.cards[data-style="topline"] .card-body { padding-left: 0; padding-right: 0; }
.cards[data-style="topline"] .card-actions { border-top: 1px solid var(--hairline); padding-left: 0; padding-right: 0; }

.cards[data-style="split"] .card { flex-direction: row; }
.cards[data-style="split"] .card-media {
  flex: 0 0 42%;
  aspect-ratio: auto;
  border-bottom: 0;
  border-right: 1px solid var(--hairline);
}
.cards[data-style="split"] .card-body { flex: 1; }
@media (max-width: 720px) {
  .cards[data-style="split"] .card { flex-direction: column; }
  .cards[data-style="split"] .card-media {
    aspect-ratio: 16/10;
    border-right: 0;
    border-bottom: 1px solid var(--hairline);
  }
}

.cards[data-style="indexed"] .card {
  border-left: 0; border-right: 0; border-top: 0;
  background: transparent;
  padding-top: 24px;
}
.cards[data-style="indexed"] .card-media {
  aspect-ratio: 4/3;
  background: var(--bg-elev);
}
.cards[data-style="indexed"] .card::before {
  content: attr(data-index);
  position: absolute;
  top: 24px; right: 0;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--ink-4);
  letter-spacing: 0.1em;
}

/* ── Grid ── */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
@media (max-width: 1000px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .cards { grid-template-columns: 1fr; gap: 24px; }
}

/* ── Hero ── */
.hero {
  padding: clamp(48px, 9vw, 130px) 0 clamp(48px, 7vw, 96px);
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 64px;
  align-items: end;
}
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
}
.hero-aside {
  border-left: 1px solid var(--hairline);
  padding-left: 32px;
  display: flex; flex-direction: column; gap: 24px;
}
@media (max-width: 880px) {
  .hero-aside { border-left: 0; padding-left: 0; border-top: 1px solid var(--hairline); padding-top: 24px; }
}

/* ── Featured row (homepage) ── */
.featured {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: stretch;
}
@media (max-width: 900px) { .featured { grid-template-columns: 1fr; } }
.featured-main {
  background: var(--bg-elev);
  border: 1px solid var(--hairline);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-height: 380px;
}
.featured-main .preview {
  flex: 1;
  background: var(--bg-sunken);
  margin-top: 16px;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-3);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  background-image:
    repeating-linear-gradient(45deg, transparent 0 14px, color-mix(in oklab, var(--ink-4) 10%, transparent) 14px 15px);
}
.featured-side {
  display: flex; flex-direction: column; gap: 20px;
}
.featured-side .mini {
  border: 1px solid var(--hairline);
  background: var(--bg-elev);
  padding: 22px;
  flex: 1;
  display: flex; flex-direction: column; gap: 10px;
  cursor: pointer;
  transition: border-color 160ms ease;
}
.featured-side .mini:hover { border-color: var(--plum); }

/* ── Slide viewer ── */
.viewer {
  background: var(--bg-elev);
  border: 1px solid var(--hairline);
}
.viewer-stage {
  aspect-ratio: 16/9;
  background: #1c1518;
  position: relative;
  overflow: hidden;
}
.viewer-slide {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 48px;
  background: var(--bg);
  opacity: 0;
  transition: opacity 220ms ease;
}
.viewer-slide.active { opacity: 1; }
.viewer-slide.placeholder {
  background-image:
    repeating-linear-gradient(45deg, transparent 0 14px, color-mix(in oklab, var(--ink-4) 8%, transparent) 14px 15px);
}
.viewer-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-top: 1px solid var(--hairline);
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--ink-3);
}
.viewer-btn {
  width: 36px; height: 36px;
  border: 1px solid var(--hairline-2);
  background: transparent;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink-2);
  transition: all 120ms ease;
}
.viewer-btn:hover { border-color: var(--plum); color: var(--plum); }
.viewer-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.filmstrip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.thumb {
  aspect-ratio: 16/9;
  background: var(--bg-elev);
  border: 1px solid var(--hairline);
  cursor: pointer;
  position: relative;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--ink-3);
  transition: all 120ms ease;
}
.thumb:hover { border-color: var(--plum-soft); }
.thumb.current { border-color: var(--red); border-width: 2px; }
.thumb-num {
  position: absolute;
  top: 4px; left: 6px;
  font-size: 9px;
  color: var(--ink-4);
}

/* ── Footer ── */
.footer {
  border-top: 1px solid var(--hairline);
  padding: 64px 0 48px;
  background: var(--bg-elev);
  margin-top: 64px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}
@media (max-width: 880px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
.footer h5 {
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 16px;
}
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer a { color: var(--ink-2); font-size: 14.5px; }
.footer a:hover { color: var(--plum); }
.footer-bottom {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
  display: flex;
  justify-content: space-between;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.04em;
}

/* ── Page header (sub-page heroes) ── */
.page-head {
  padding: 80px 0 56px;
  border-bottom: 1px solid var(--hairline);
  background: var(--bg-elev);
}
.page-head .breadcrumbs {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  margin-bottom: 18px;
  text-transform: uppercase;
}
.page-head .breadcrumbs a:hover { color: var(--plum); }

/* ── Detail layout ── */
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 80px;
  align-items: start;
}
@media (max-width: 980px) {
  .detail-grid { grid-template-columns: 1fr; gap: 32px; }
}
.toc {
  position: sticky; top: 96px;
  border-left: 1px solid var(--hairline);
  padding-left: 24px;
  font-size: 13.5px;
}
.toc h5 {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 14px;
  font-weight: 500;
}
.toc ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.toc a { color: var(--ink-3); }
.toc a:hover, .toc a.active { color: var(--plum); }

/* ── Concept blocks (key concepts grid) ── */
.concepts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
}
@media (max-width: 720px) {
  .concepts { grid-template-columns: 1fr; }
}
.concept {
  background: var(--bg-elev);
  padding: 28px;
}
.concept .num {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--red);
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}
.concept h4 {
  font-family: var(--f-display);
  font-size: 19px;
  font-weight: 500;
  color: var(--plum);
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.concept p {
  margin: 0;
  font-size: 14.5px;
  color: var(--ink-3);
  line-height: 1.55;
}

/* ── Glossary list ── */
.glossary {
  display: flex; flex-direction: column;
  border-top: 1px solid var(--hairline);
}
.glossary dt {
  font-family: var(--f-display);
  font-weight: 600;
  color: var(--plum);
  font-size: 16px;
  margin-top: 24px;
}
.glossary .item {
  padding: 24px 0;
  border-bottom: 1px solid var(--hairline);
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
}
@media (max-width: 720px) {
  .glossary .item { grid-template-columns: 1fr; gap: 8px; }
}
.glossary .item .term {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 17px;
  color: var(--plum);
  letter-spacing: -0.01em;
}
.glossary .item .def {
  font-family: var(--f-edit);
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.55;
}

/* ── Takeaways list ── */
.takeaways { counter-reset: tk; list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; }
.takeaways li {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 24px;
  padding: 24px 0;
  border-top: 1px solid var(--hairline);
  align-items: baseline;
}
.takeaways li:last-child { border-bottom: 1px solid var(--hairline); }
.takeaways li::before {
  counter-increment: tk;
  content: counter(tk, decimal-leading-zero);
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--red);
  letter-spacing: 0.05em;
  padding-top: 4px;
}
.takeaways li p {
  margin: 0;
  font-family: var(--f-edit);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-2);
}

/* ── Pull quote / callout ── */
.callout {
  padding: 28px 32px;
  border-left: 3px solid var(--red);
  background: var(--bg-elev);
  font-family: var(--f-edit);
  font-style: italic;
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-2);
}

/* ── Hero stats / numbers grid ── */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--hairline);
}
@media (max-width: 720px) { .stats { grid-template-columns: 1fr; } }
.stats > div {
  padding: 20px 0;
  border-right: 1px solid var(--hairline);
  padding-right: 24px;
}
.stats > div:last-child { border-right: 0; }
@media (max-width: 720px) {
  .stats > div { border-right: 0; border-bottom: 1px solid var(--hairline); padding-right: 0; }
  .stats > div:last-child { border-bottom: 0; }
}
.stats .num {
  font-family: var(--f-display);
  font-size: 40px;
  color: var(--plum);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
}
.stats .lbl {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--ink-3);
  margin-top: 8px;
  text-transform: uppercase;
}

/* ── Resources / future placeholders ── */
.future-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 880px) { .future-grid { grid-template-columns: 1fr; } }
.future-card {
  border: 1px dashed var(--hairline-2);
  padding: 36px 28px;
  background: transparent;
  display: flex; flex-direction: column; gap: 14px;
  position: relative;
  min-height: 220px;
}
.future-card .badge {
  position: absolute; top: 16px; right: 16px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--ink-4);
  text-transform: uppercase;
}
.future-card h4 {
  font-family: var(--f-display);
  font-size: 22px;
  color: var(--ink);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0;
}
.future-card p {
  color: var(--ink-3);
  margin: 0;
  font-size: 14.5px;
  line-height: 1.5;
}
.future-card .tag {
  margin-top: auto;
  align-self: flex-start;
}

/* ── About / definition list ── */
.dl {
  border-top: 1px solid var(--hairline);
  display: grid;
  grid-template-columns: 1fr;
}
.dl > div {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 32px;
  padding: 20px 0;
  border-bottom: 1px solid var(--hairline);
}
.dl dt {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 4px 0 0;
}
.dl dd {
  margin: 0;
  font-family: var(--f-edit);
  color: var(--ink-2);
  font-size: 17px;
}
@media (max-width: 720px) {
  .dl > div { grid-template-columns: 1fr; gap: 6px; }
}

/* Mobile nav drawer */
@media (max-width: 800px) {
  .nav-burger { display: inline-flex; }
  .nav-links {
    position: absolute;
    top: 72px; left: 0; right: 0;
    flex-direction: column;
    background: var(--bg-elev);
    border-bottom: 1px solid var(--hairline);
    padding: 16px var(--gutter);
    gap: 16px;
    transform: translateY(-150%);
    transition: transform 220ms ease;
    align-items: flex-start;
  }
  .nav-links.open { transform: translateY(0); }
  .utility .util-links { display: none; }
}

/* View transition between pages */
.page { display: none; }
.page.active { display: block; animation: pageIn 280ms ease both; }
@keyframes pageIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Card-style override via root attr (so tweak applies globally) ── */
[data-card-style] .cards { /* hook */ }

/* ── Density modes ── */
[data-density="compact"]  { --density-y: 0.65; }
[data-density="regular"]  { --density-y: 1; }
[data-density="spacious"] { --density-y: 1.25; }

/* ── Placeholder system ── */
.ph-banner {
  background: color-mix(in oklab, var(--red) 8%, var(--bg-elev));
  border-bottom: 1px solid color-mix(in oklab, var(--red) 25%, var(--hairline));
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--ink-2);
}
.ph-banner .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 36px;
}
.ph-banner .ph-dot {
  display: inline-block;
  width: 7px; height: 7px;
  background: var(--red);
  border-radius: 50%;
  margin-right: 10px;
  vertical-align: middle;
  animation: ph-pulse 2s ease-in-out infinite;
}
@keyframes ph-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}
.ph-banner button {
  background: transparent;
  border: 1px solid color-mix(in oklab, var(--red) 30%, transparent);
  color: var(--red);
  padding: 4px 10px;
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  cursor: pointer;
  text-transform: uppercase;
}
.ph-banner button:hover { background: color-mix(in oklab, var(--red) 12%, transparent); }
@media (max-width: 640px) {
  .ph-banner .ph-text { font-size: 10.5px; }
  .ph-banner button { display: none; }
}

/* Inline placeholder marker (chip) */
.ph-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px 3px 7px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  background: color-mix(in oklab, var(--red) 8%, transparent);
  border: 1px solid color-mix(in oklab, var(--red) 25%, transparent);
  vertical-align: middle;
  margin-left: 8px;
  font-weight: 500;
}
.ph-chip::before {
  content: '';
  width: 5px; height: 5px;
  background: var(--red);
  border-radius: 50%;
}

/* Placeholder block — gives a section a subtle dashed treatment */
.ph-block {
  position: relative;
}
.ph-block[data-ph]::after {
  content: attr(data-ph);
  position: absolute;
  top: -10px; right: 0;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  background: var(--bg);
  padding: 0 8px;
}

/* Highlight when "show placeholders" mode is on */
html[data-ph-highlight="true"] .ph-mark {
  background: color-mix(in oklab, var(--red) 13%, transparent) !important;
  outline: 2px dashed color-mix(in oklab, var(--red) 60%, transparent) !important;
  outline-offset: 4px;
  position: relative;
}
html[data-ph-highlight="true"] .ph-mark::before {
  content: "PLACEHOLDER";
  position: absolute;
  top: -18px; left: 0;
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--red);
  background: var(--bg-elev);
  padding: 1px 6px;
  border: 1px solid color-mix(in oklab, var(--red) 35%, transparent);
  white-space: nowrap;
  z-index: 10;
  pointer-events: none;
}
html[data-ph-highlight="true"] .ph-section {
  outline: 2px dashed color-mix(in oklab, var(--red) 50%, transparent) !important;
  outline-offset: 8px;
  background: color-mix(in oklab, var(--red) 5%, transparent) !important;
}
html[data-ph-highlight="true"] .ph-block[data-ph]::after {
  outline: 1px dashed color-mix(in oklab, var(--red) 45%, transparent);
  outline-offset: 2px;
}

/* ── Placeholder ribbons (for slide content) ── */
.slide-mock {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  padding: 8% 10%;
  gap: 16px;
  background: var(--bg);
  color: var(--ink-2);
}
.slide-mock .sm-eyebrow {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
}
.slide-mock .sm-title {
  font-family: var(--f-display);
  font-size: clamp(22px, 3vw, 36px);
  color: var(--plum);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.slide-mock .sm-body {
  color: var(--ink-3);
  font-size: 14.5px;
  max-width: 60ch;
}
.slide-mock .sm-divider {
  width: 56px; height: 2px; background: var(--red); margin: 8px 0;
}
.slide-mock.cover { justify-content: flex-end; }
.slide-mock.cover .sm-title { font-size: clamp(28px, 4.6vw, 56px); }
