/* ============================================================
   BRAND HUB — Mike & Matty / Increator Company
   v1.1 — real fonts wired
   ============================================================ */

/* ---------- FONT FACES (real licensed files, served locally) ---------- */
@font-face { font-family: 'Larken'; src: url('fonts/Larken-Thin.woff2') format('woff2'), url('fonts/Larken-Thin.woff') format('woff'); font-weight: 100; font-style: normal; font-display: swap; }
@font-face { font-family: 'Larken'; src: url('fonts/Larken-ThinItalic.woff2') format('woff2'), url('fonts/Larken-ThinItalic.woff') format('woff'); font-weight: 100; font-style: italic; font-display: swap; }
@font-face { font-family: 'Larken'; src: url('fonts/Larken-Light.woff2') format('woff2'), url('fonts/Larken-Light.woff') format('woff'); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: 'Larken'; src: url('fonts/Larken-LightItalic.woff2') format('woff2'), url('fonts/Larken-LightItalic.woff') format('woff'); font-weight: 300; font-style: italic; font-display: swap; }
@font-face { font-family: 'Larken'; src: url('fonts/Larken-Regular.woff2') format('woff2'), url('fonts/Larken-Regular.woff') format('woff'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Larken'; src: url('fonts/Larken-Italic.woff2') format('woff2'), url('fonts/Larken-Italic.woff') format('woff'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Larken'; src: url('fonts/Larken-Medium.woff2') format('woff2'), url('fonts/Larken-Medium.woff') format('woff'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Larken'; src: url('fonts/Larken-MediumItalic.woff2') format('woff2'), url('fonts/Larken-MediumItalic.woff') format('woff'); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: 'Larken'; src: url('fonts/Larken-Bold.woff2') format('woff2'), url('fonts/Larken-Bold.woff') format('woff'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Larken'; src: url('fonts/Larken-BoldItalic.woff2') format('woff2'), url('fonts/Larken-BoldItalic.woff') format('woff'); font-weight: 700; font-style: italic; font-display: swap; }
@font-face { font-family: 'Larken'; src: url('fonts/Larken-ExtraBold.woff2') format('woff2'), url('fonts/Larken-ExtraBold.woff') format('woff'); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: 'Larken'; src: url('fonts/Larken-ExtraBoldItalic.woff2') format('woff2'), url('fonts/Larken-ExtraBoldItalic.woff') format('woff'); font-weight: 800; font-style: italic; font-display: swap; }
@font-face { font-family: 'Larken'; src: url('fonts/Larken-Black.woff2') format('woff2'), url('fonts/Larken-Black.woff') format('woff'); font-weight: 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Larken'; src: url('fonts/Larken-BlackItalic.woff2') format('woff2'), url('fonts/Larken-BlackItalic.woff') format('woff'); font-weight: 900; font-style: italic; font-display: swap; }

@font-face { font-family: 'TWK Lausanne'; src: url('fonts/TWKLausanne-250Italic.woff2') format('woff2'), url('fonts/TWKLausanne-250Italic.woff') format('woff'); font-weight: 250; font-style: italic; font-display: swap; }
@font-face { font-family: 'TWK Lausanne'; src: url('fonts/TWKLausanne-550.woff2') format('woff2'), url('fonts/TWKLausanne-550.woff') format('woff'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'TWK Lausanne'; src: url('fonts/TWKLausanne-700Italic.woff2') format('woff2'), url('fonts/TWKLausanne-700Italic.woff') format('woff'); font-weight: 700; font-style: italic; font-display: swap; }
@font-face { font-family: 'TWK Lausanne'; src: url('fonts/TWKLausanne-800.woff2') format('woff2'), url('fonts/TWKLausanne-800.woff') format('woff'); font-weight: 800; font-style: normal; font-display: swap; }

/* ---------- TOKENS ---------- */
:root {
  /* Palette — Tier 1 */
  --buttermilk: #fafaf3;
  --buttermilk-2: #f3f0e8;
  --buttermilk-3: #ecebdf;
  --pepper: #211f20;
  --pepper-2: #181617;
  --pepper-3: #0c0b0b;
  --emerald: #1e4c48;
  --emerald-glow: #2fa89a;
  --emerald-deep: #0b2321;

  /* Palette — Tier 2 (warm earthy) */
  --carnelian: #b74a00;
  --walnut: #a66f00;
  --forest: #7a7f2a;
  --indigo: #2a2f74;
  --plum: #691c4a;
  --brick: #8f2f2f;
  --ash: #797875;

  /* Palette — Tier 3 (brights) */
  --clementine: #ffa70b;
  --honey: #fac53a;
  --stone: #dbd6d2;
  --smoke: #b1afaa;
  --mint: #81d3c6;

  /* Type — real licensed fonts
     Rule: Lausanne is the voice. Larken italic is reserved for emphasized
     words/short phrases inside headings — magazine / editorial pull-quote feel.
     --font-display and --font-body both point to Lausanne on purpose.
     --font-accent = Larken; apply via <em>, <i>, or .accent inside a heading. */
  --font-display: 'TWK Lausanne', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'TWK Lausanne', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-accent: 'Larken', Georgia, 'Fraunces', serif;

  /* Fluid sizes */
  --text-xs: clamp(0.75rem, 0.7rem + 0.2vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.25vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.4rem + 2.2vw, 3.25rem);
  --text-3xl: clamp(2.75rem, 1.8rem + 3.5vw, 5.25rem);

  /* Spacing */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.25rem;
  --s-6: 1.5rem;
  --s-8: 2rem;
  --s-10: 2.5rem;
  --s-12: 3rem;
  --s-16: 4rem;
  --s-20: 5rem;
  --s-24: 6rem;

  /* Radius & motion */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 24px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --tr: 260ms var(--ease);

  /* Mode-dependent — default DARK (Mike & Matty) */
  --bg: var(--pepper);
  --bg-2: var(--pepper-2);
  --bg-3: var(--pepper-3);
  --ink: var(--buttermilk);
  --ink-2: #d7d3c8;
  --ink-3: #8a8680;
  --line: rgba(250, 250, 243, 0.08);
  --line-strong: rgba(250, 250, 243, 0.18);
  --accent: var(--emerald);
  --accent-glow: var(--emerald-glow);
  --emphasis: var(--honey);
  --code-bg: rgba(250, 250, 243, 0.06);
}

html[data-mode='light'] {
  --bg: var(--buttermilk);
  --bg-2: var(--buttermilk-2);
  --bg-3: var(--buttermilk-3);
  --ink: #1c1917;
  --ink-2: #3d3a36;
  --ink-3: #78756f;
  --line: rgba(28, 25, 23, 0.08);
  --line-strong: rgba(28, 25, 23, 0.2);
  --accent: var(--emerald);
  --accent-glow: #2a6e67;
  --emphasis: var(--carnelian);
  --code-bg: rgba(28, 25, 23, 0.05);
}

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  min-height: 100dvh;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  transition: background var(--tr), color var(--tr);
}

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

button {
  cursor: pointer;
  background: none;
  border: none;
  font: inherit;
  color: inherit;
}

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

h1,
h2,
h3,
h4 {
  font-family: var(--font-display); /* Lausanne */
  font-weight: 500;                  /* Lausanne 550 */
  line-height: 1.08;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

/* Larken italic — editorial emphasis ONLY.
   Applies anywhere <em>, <i>, or .accent appears inside a heading or body. */
em,
i,
.accent,
h1 em, h2 em, h3 em, h4 em,
h1 i,  h2 i,  h3 i,  h4 i,
h1 .accent, h2 .accent, h3 .accent, h4 .accent {
  font-family: var(--font-accent); /* Larken */
  font-style: italic;
  font-weight: 400;
  color: var(--emphasis);
  letter-spacing: -0.005em;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}

code {
  font-family: 'SF Mono', 'Monaco', 'Menlo', monospace;
  font-size: 0.85em;
  background: var(--code-bg);
  padding: 2px 6px;
  border-radius: var(--r-sm);
}

.lede {
  color: var(--ink-2);
  font-size: var(--text-lg);
  max-width: 62ch;
  line-height: 1.5;
}

/* ---------- GATE ---------- */
.gate {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: var(--s-8);
  background:
    radial-gradient(ellipse 70% 50% at 50% 45%, rgba(30, 76, 72, 0.18), transparent 70%),
    linear-gradient(180deg, var(--pepper-2) 0%, var(--pepper-3) 100%);
  color: var(--buttermilk);
}

.gate__inner {
  max-width: 440px;
  text-align: center;
  animation: fadeUp 600ms var(--ease) both;
}

.gate__logo {
  display: block;
  width: 120px;
  height: 120px;
  margin: 0 auto var(--s-6);
  border-radius: 50%;
  object-fit: cover;
  box-shadow:
    0 0 0 1px rgba(250, 250, 243, 0.08),
    0 12px 48px rgba(0, 0, 0, 0.5),
    0 0 60px rgba(30, 76, 72, 0.25);
}

.gate__title--kit {
  font-family: var(--font-sans);
  font-weight: 550;
  letter-spacing: -0.02em;
  font-style: normal;
}
.gate__title--kit::after { content: none; }

.gate__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.1;
  margin-top: var(--s-3);
  margin-bottom: var(--s-4);
  font-weight: 400;
}
.gate__title .amp {
  font-style: italic;
  color: var(--ink-3);
}
.gate__title em {
  color: var(--honey);
}

.gate__lede {
  color: rgba(250, 250, 243, 0.65);
  font-size: var(--text-base);
  margin-bottom: var(--s-8);
}

.gate__form {
  display: flex;
  gap: var(--s-2);
  background: rgba(250, 250, 243, 0.06);
  border: 1px solid rgba(250, 250, 243, 0.14);
  border-radius: var(--r-md);
  padding: var(--s-2);
  transition: border-color var(--tr);
}
.gate__form:focus-within {
  border-color: var(--emerald-glow);
  box-shadow: 0 0 0 4px rgba(47, 168, 154, 0.15);
}
.gate__form input {
  flex: 1;
  border: none;
  background: transparent;
  padding: var(--s-3) var(--s-4);
  font-size: var(--text-base);
  color: var(--buttermilk);
  outline: none;
}
.gate__form input::placeholder {
  color: rgba(250, 250, 243, 0.4);
}
.gate__form button {
  background: var(--emerald);
  color: var(--buttermilk);
  padding: var(--s-3) var(--s-5);
  border-radius: var(--r-sm);
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: background var(--tr), transform var(--tr);
}
.gate__form button:hover {
  background: var(--emerald-glow);
  transform: translateY(-1px);
}

.gate__error {
  margin-top: var(--s-3);
  color: #ff8f8f;
  font-size: var(--text-sm);
}

.gate__hint {
  margin-top: var(--s-6);
  color: rgba(250, 250, 243, 0.35);
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- HEADER ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto auto;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-6);
  padding: var(--s-4) clamp(var(--s-5), 4vw, var(--s-10));
  background: var(--bg);
  box-shadow: 0 1px 0 var(--line), 0 8px 24px -12px rgba(0, 0, 0, 0.4);
  border-bottom: 1px solid var(--line);
}

.header__brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.header__nav {
  display: flex;
  gap: var(--s-5);
  justify-self: end;
  font-size: var(--text-sm);
  color: var(--ink-2);
}
.header__nav a {
  transition: color var(--tr);
}
.header__nav a:hover {
  color: var(--ink);
}

@media (max-width: 900px) {
  .header {
    grid-template-columns: 1fr auto;
    gap: var(--s-3);
    padding: var(--s-3) var(--s-4);
  }
  .header__nav {
    display: none;
  }
  .mode-toggle {
    justify-self: end;
  }
  .header__brand .brand-mark {
    width: 18px;
    height: 18px;
  }
  .header__brand {
    font-size: var(--text-sm);
  }
}

/* ---------- MODE TOGGLE ---------- */
.mode-toggle {
  justify-self: center;
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.mode-toggle__btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: var(--s-2) var(--s-4);
  border-radius: 999px;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--ink-3);
  transition: background var(--tr), color var(--tr);
}
.mode-toggle__btn small {
  font-weight: 400;
  color: var(--ink-3);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.mode-toggle__btn.is-active {
  background: var(--ink);
  color: var(--bg);
}
.mode-toggle__btn.is-active small {
  color: color-mix(in oklab, var(--bg) 70%, var(--ink));
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid currentColor;
}
.dot--light {
  background: var(--buttermilk);
}
.dot--dark {
  background: var(--pepper);
}

@media (max-width: 900px) {
  .mode-toggle__btn {
    padding: 6px 10px;
    font-size: 13px;
    white-space: nowrap;
  }
  .mode-toggle__btn small {
    display: none;
  }
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: var(--s-3) var(--s-5);
  border-radius: var(--r-sm);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: background var(--tr), color var(--tr), transform var(--tr),
    border-color var(--tr);
}
.btn--primary {
  background: var(--accent);
  color: var(--buttermilk);
}
.btn--primary:hover {
  background: var(--accent-glow);
  transform: translateY(-1px);
}
.btn--ghost {
  color: var(--ink);
  border: 1px solid var(--line-strong);
}
.btn--ghost:hover {
  background: var(--bg-2);
}
.btn--link {
  padding: 0;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}
.btn--link:hover {
  color: var(--accent-glow);
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  padding: clamp(var(--s-16), 14vh, var(--s-24)) clamp(var(--s-5), 4vw, var(--s-10))
    var(--s-20);
  overflow: hidden;
}

.hero__content {
  max-width: 960px;
  position: relative;
  z-index: 2;
}

.hero__title {
  font-size: var(--text-3xl);
  line-height: 0.98;
  letter-spacing: -0.025em;
  margin: var(--s-4) 0 var(--s-6);
}

.hero__lede {
  color: var(--ink-2);
  font-size: var(--text-lg);
  max-width: 62ch;
  margin-bottom: var(--s-8);
}

.hero__actions {
  display: flex;
  gap: var(--s-3);
  flex-wrap: wrap;
}

.hero__glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(30, 76, 72, 0.28), transparent 55%),
    radial-gradient(circle at 80% 80%, rgba(255, 197, 51, 0.06), transparent 55%);
  pointer-events: none;
  z-index: 0;
}
html[data-mode='light'] .hero__glow {
  background:
    radial-gradient(circle at 20% 30%, rgba(30, 76, 72, 0.08), transparent 55%),
    radial-gradient(circle at 80% 80%, rgba(183, 74, 0, 0.05), transparent 55%);
}

.hero__grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.18;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.4 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  mix-blend-mode: soft-light;
}
html[data-mode='light'] .hero__grain {
  opacity: 0.08;
}

.hero__orbs {
  position: absolute;
  right: -60px;
  top: 40%;
  transform: translateY(-50%);
  pointer-events: none;
}
.orb {
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
}
.orb--emerald {
  background: var(--emerald);
  right: 40px;
  top: 0;
}
.orb--amber {
  background: var(--honey);
  right: 180px;
  top: 120px;
  opacity: 0.25;
}

/* ---------- SECTIONS ---------- */
.section {
  padding: clamp(var(--s-16), 10vh, var(--s-24)) clamp(var(--s-5), 4vw, var(--s-10));
  max-width: 1280px;
  margin: 0 auto;
}
.section--alt {
  background: var(--bg-2);
  max-width: none;
  margin: 0;
  padding-left: clamp(var(--s-5), 4vw, var(--s-10));
  padding-right: clamp(var(--s-5), 4vw, var(--s-10));
}
.section--alt > * {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

.section__head {
  margin-bottom: var(--s-12);
  max-width: 780px;
}
.section__head h2 {
  font-size: var(--text-2xl);
  margin: var(--s-3) 0 var(--s-4);
}

/* ---------- IDENTITY ---------- */
.identity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--s-6);
  margin-bottom: var(--s-10);
}

.identity-card {
  display: grid;
  grid-template-rows: 280px auto;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  transition: transform var(--tr), border-color var(--tr);
}
.identity-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
}

.identity-card__preview {
  background: var(--buttermilk);
  color: var(--pepper);
  padding: var(--s-8);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}
.identity-card__preview--dark {
  background: var(--pepper);
  color: var(--buttermilk);
  background-image: radial-gradient(
    ellipse 80% 60% at 50% 50%,
    rgba(30, 76, 72, 0.2),
    transparent 70%
  );
}

.logo-slot__label {
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: color-mix(in oklab, currentColor 50%, transparent);
}
.logo-slot__mark {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1;
  letter-spacing: -0.01em;
  margin-top: var(--s-3);
}
.logo-slot--dark .logo-slot__mark {
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.24em;
}
.logo-slot--dark .logo-slot__mark .amp {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--honey);
}

.identity-card__swatches {
  display: flex;
  gap: 6px;
}
.identity-card__swatches span {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.identity-card__body {
  padding: var(--s-6) var(--s-8);
  background: var(--bg);
}
.identity-card__body h3 {
  font-size: var(--text-xl);
  margin: var(--s-2) 0 var(--s-3);
}
.identity-card__body p {
  color: var(--ink-2);
  max-width: 48ch;
}

.tag-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin-top: var(--s-4);
}
.tag-list li {
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding: 4px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
}

.voice-card {
  margin-top: var(--s-12);
  padding: var(--s-10) var(--s-8);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.voice-card__quote {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  line-height: 1.15;
  margin: var(--s-4) auto var(--s-5);
  max-width: 22ch;
  letter-spacing: -0.02em;
}
.voice-card__caption {
  color: var(--ink-3);
  font-size: var(--text-sm);
  letter-spacing: 0.02em;
  max-width: 56ch;
  margin: 0 auto;
}

/* ---------- COLOR / SWATCHES ---------- */
.palette-block {
  margin-bottom: var(--s-12);
}
.palette-block__head {
  margin-bottom: var(--s-6);
  max-width: 680px;
}
.palette-block__head h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--s-2);
}
.palette-block__head p {
  color: var(--ink-2);
}

.swatch-grid {
  display: grid;
  gap: var(--s-3);
}
.swatch-grid--hero {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.swatch-grid--7,
.swatch-grid--8 {
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}

.swatch {
  display: grid;
  grid-template-columns: 48px 1fr;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-3);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--bg);
  text-align: left;
  transition: border-color var(--tr), transform var(--tr);
}
.swatch:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}
.swatch__chip {
  width: 48px;
  height: 48px;
  border-radius: var(--r-sm);
  border: 1px solid rgba(0, 0, 0, 0.08);
}
.swatch__meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.swatch__meta strong {
  font-weight: 500;
  font-size: var(--text-sm);
}
.swatch__meta code {
  font-size: 11px;
  background: none;
  padding: 0;
  color: var(--ink-3);
}

.swatch--buttermilk .swatch__chip {
  background: var(--buttermilk);
}
.swatch--pepper .swatch__chip {
  background: var(--pepper);
}
.swatch--emerald .swatch__chip {
  background: var(--emerald);
  box-shadow: 0 0 24px rgba(30, 76, 72, 0.4);
}

.swatch-grid--hero .swatch {
  grid-template-columns: 1fr;
  grid-template-rows: 120px auto;
  padding: 0;
  overflow: hidden;
}
.swatch-grid--hero .swatch__chip {
  width: 100%;
  height: 100%;
  border-radius: 0;
  border: none;
}
.swatch-grid--hero .swatch__meta {
  padding: var(--s-3) var(--s-4);
}

/* ---------- TYPE ---------- */
.type-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: var(--s-6);
  margin-bottom: var(--s-10);
}
.type-card {
  padding: var(--s-8);
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.type-card h3 {
  font-size: var(--text-2xl);
  margin-top: var(--s-2);
}
.type-card__meta {
  font-size: var(--text-xs);
  color: var(--ink-3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: var(--s-2);
}

.type-sample {
  padding: var(--s-6) 0;
  margin: var(--s-5) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.type-sample--larken {
  font-family: var(--font-display);
}
.type-sample--lausanne {
  font-family: var(--font-body);
}

.sample-xl {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: var(--s-3);
}
.type-sample--larken .sample-xl em {
  color: var(--emphasis);
}
.sample-lg {
  font-size: var(--text-lg);
  color: var(--ink-2);
  margin-bottom: var(--s-2);
}
.sample-md {
  font-size: var(--text-sm);
  color: var(--ink-3);
}

.glyphs {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--ink-2);
  letter-spacing: 0.04em;
  margin-bottom: var(--s-6);
}
.glyphs em {
  color: var(--emphasis);
}
.glyphs--sans {
  font-family: var(--font-body);
  font-weight: 500;
  letter-spacing: -0.01em;
}

.pairing-demo {
  padding: var(--s-16) var(--s-8);
  background: var(--pepper);
  border-radius: var(--r-lg);
  text-align: center;
  color: var(--buttermilk);
  position: relative;
  overflow: hidden;
}
.pairing-demo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 60% 50% at 50% 60%,
    rgba(30, 76, 72, 0.25),
    transparent 70%
  );
}
.pairing-demo > * {
  position: relative;
}
.pairing-demo .eyebrow {
  color: rgba(250, 250, 243, 0.5);
}
.pairing-demo__headline {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(1.75rem, 4vw, 3.25rem);
  letter-spacing: -0.01em;
  margin: var(--s-4) 0 var(--s-5);
  text-shadow: 0 0 40px rgba(30, 76, 72, 0.5);
}
.pairing-demo__headline em {
  color: var(--honey);
  text-shadow: 0 0 30px rgba(255, 197, 51, 0.35);
}
.pairing-demo__caption {
  color: rgba(250, 250, 243, 0.55);
  font-size: var(--text-sm);
  max-width: 48ch;
  margin: 0 auto;
}
.pairing-demo__caption--light { display: none; }

/* Light-mode override of the signature pairing card */
html[data-mode="light"] .pairing-demo {
  background: var(--buttermilk);
  color: var(--pepper);
  border: 1px solid rgba(33, 31, 32, 0.08);
}
html[data-mode="light"] .pairing-demo::before {
  background: none;
}
html[data-mode="light"] .pairing-demo .eyebrow {
  color: rgba(33, 31, 32, 0.55);
}
html[data-mode="light"] .pairing-demo__headline {
  text-shadow: none;
}
html[data-mode="light"] .pairing-demo__headline em {
  color: var(--carnelian);
  text-shadow: none;
}
html[data-mode="light"] .pairing-demo__caption {
  color: rgba(33, 31, 32, 0.62);
}
html[data-mode="light"] .pairing-demo__caption--dark { display: none; }
html[data-mode="light"] .pairing-demo__caption--light { display: block; }

/* ---------- LOGO RULES ---------- */
.logo-rules {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--s-5);
}
.logo-rules__card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}
.logo-demo {
  aspect-ratio: 4/3;
  display: grid;
  place-items: center;
  background: var(--buttermilk);
  color: var(--pepper);
  position: relative;
  overflow: hidden;
}
.logo-demo--ok {
  background: var(--buttermilk);
}
.logo-demo--bad {
  background: var(--buttermilk-3);
}
.logo-demo--photo {
  background:
    linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.5) 100%),
    linear-gradient(135deg, #3e3833, #1a1614);
  color: var(--buttermilk);
}
.logo-demo--crowded {
  background: var(--buttermilk);
  padding: 4px;
}
.logo-demo .logo-mark {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  letter-spacing: 0.22em;
}
.logo-demo .logo-mark .amp {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--honey);
  padding: 0 4px;
}

.logo-clearspace {
  position: relative;
  padding: var(--s-8);
  outline: 1px dashed rgba(30, 76, 72, 0.4);
}
.cs-guide {
  position: absolute;
  background: rgba(30, 76, 72, 0.35);
}
.cs-guide--top,
.cs-guide--bottom {
  left: 10%;
  right: 10%;
  height: 1px;
}
.cs-guide--top {
  top: 2px;
}
.cs-guide--bottom {
  bottom: 2px;
}
.cs-guide--left,
.cs-guide--right {
  top: 10%;
  bottom: 10%;
  width: 1px;
}
.cs-guide--left {
  left: 2px;
}
.cs-guide--right {
  right: 2px;
}

.logo-rules__label {
  padding: var(--s-4) var(--s-5);
  font-size: var(--text-sm);
  color: var(--ink-2);
  display: flex;
  align-items: flex-start;
  gap: var(--s-2);
  border-top: 1px solid var(--line);
}

.pill {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  flex-shrink: 0;
}
.pill--good {
  background: rgba(30, 76, 72, 0.15);
  color: var(--emerald);
}
.pill--bad {
  background: rgba(247, 62, 62, 0.12);
  color: #ff6b6b;
}
html[data-mode='light'] .pill--bad {
  color: #c62828;
}

/* ---------- MOTION ---------- */
.motion-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: var(--s-6);
  margin-bottom: var(--s-12);
}
.motion-card {
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg);
}
.motion-preview {
  aspect-ratio: 16/9;
  position: relative;
  overflow: hidden;
}

/* Vox style */
.motion-preview--vox {
  background: radial-gradient(ellipse 60% 50% at 50% 50%, #1c2f2c 0%, #0b0d0d 100%);
}
.vox-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 50% 50%,
    transparent 30%,
    rgba(0, 0, 0, 0.6) 100%
  );
}
.vox-timeline {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 0 15%;
}
.vox-node {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-2);
  z-index: 2;
}
.vox-node em {
  font-family: var(--font-body);
  font-style: normal;
  color: var(--buttermilk);
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  text-shadow: 0 0 12px rgba(250, 250, 243, 0.5);
}
.vox-node::after {
  content: '';
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--emerald-glow);
  box-shadow:
    0 0 0 3px rgba(250, 250, 243, 0.9),
    0 0 20px rgba(47, 168, 154, 0.8);
}
.vox-line {
  flex: 1;
  height: 2px;
  background: var(--emerald-glow);
  box-shadow: 0 0 14px rgba(47, 168, 154, 0.7);
  margin: 0 -6px;
  z-index: 1;
  margin-top: 24px;
}

/* Sketched Luminescence */
.motion-preview--sketch {
  background: linear-gradient(180deg, #1a2235 0%, #0c1320 100%);
  position: relative;
}
.sketch-grain {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.5 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  opacity: 0.25;
  mix-blend-mode: overlay;
}
.sketch-bulbs {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: space-around;
  padding-top: 10%;
}
.bulb {
  width: 30px;
  height: 48px;
  border-radius: 50% 50% 45% 45%;
  border: 1.2px solid rgba(250, 250, 243, 0.28);
  position: relative;
  transform: translateY(0);
}
.bulb::before {
  content: '';
  position: absolute;
  top: -14px;
  left: 50%;
  width: 1px;
  height: 14px;
  background: rgba(250, 250, 243, 0.35);
}
.bulb--off {
  opacity: 0.45;
}
.bulb--cool {
  background: radial-gradient(circle at 50% 55%, #a8e5dc 0%, transparent 70%);
  border-color: rgba(168, 229, 220, 0.5);
  box-shadow: 0 0 30px rgba(168, 229, 220, 0.4);
}
.bulb--warm {
  background: radial-gradient(circle at 50% 55%, #ffd477 0%, transparent 70%);
  border-color: rgba(255, 212, 119, 0.55);
  box-shadow: 0 0 40px rgba(255, 181, 66, 0.55);
}
.sketch-cap {
  position: absolute;
  bottom: 12%;
  left: 8%;
  right: 8%;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(0.9rem, 1.6vw, 1.15rem);
  color: var(--buttermilk);
  text-shadow: 0 0 12px rgba(0, 0, 0, 0.6);
}
.sketch-cap em {
  color: var(--honey);
  text-shadow: 0 0 18px rgba(255, 181, 66, 0.35);
}

.motion-card__body {
  padding: var(--s-6) var(--s-8) var(--s-8);
}
.motion-card__body h3 {
  font-size: var(--text-xl);
  margin: var(--s-2) 0 var(--s-3);
}
.motion-card__body p {
  color: var(--ink-2);
  margin-bottom: var(--s-4);
}

.rule-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  font-size: var(--text-sm);
  color: var(--ink-2);
}
.rule-list li {
  padding-left: var(--s-4);
  position: relative;
}
.rule-list li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  position: absolute;
  left: 0;
  top: 9px;
}
.rule-list strong {
  color: var(--ink);
  font-weight: 500;
}

.motion-rules h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--s-6);
}
.motion-rules__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: var(--s-4);
}
.rule-card {
  padding: var(--s-5);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.rule-card p {
  font-size: var(--text-sm);
  color: var(--ink-2);
}

/* ---------- THUMBNAILS ---------- */
.thumb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--s-5);
  margin-bottom: var(--s-10);
}
.thumb {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.thumb__img {
  aspect-ratio: 16/9;
  border-radius: var(--r-md);
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
}
.thumb__img--good-1 {
  background:
    radial-gradient(circle at 65% 55%, rgba(255, 181, 66, 0.4) 0%, transparent 50%),
    linear-gradient(135deg, #1a1614 0%, #2d2520 100%);
}
.thumb__img--good-2 {
  background:
    radial-gradient(circle at 30% 50%, rgba(30, 76, 72, 0.45) 0%, transparent 55%),
    linear-gradient(135deg, #0e1e1c 0%, #1a1614 100%);
}
.thumb__img--bad-1 {
  background:
    linear-gradient(135deg, #2a1a4a 0%, #4a1a2a 100%);
}
.thumb__img--bad-2 {
  background: var(--buttermilk);
  color: var(--pepper);
}
.thumb__copy {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(1rem, 2.2vw, 1.4rem);
  color: var(--buttermilk);
  line-height: 1.1;
  padding: 0 var(--s-5);
}
.thumb__copy em {
  color: var(--honey);
  font-size: 1.1em;
}
.thumb__copy--center {
  text-align: center;
}
.thumb__logo {
  position: absolute;
  bottom: var(--s-3);
  right: var(--s-3);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--buttermilk);
  opacity: 0.7;
}
.thumb figcaption {
  font-size: var(--text-sm);
  color: var(--ink-2);
  display: flex;
  align-items: flex-start;
  gap: var(--s-2);
}

.thumb-formula {
  padding: var(--s-8);
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-lg);
  background: var(--bg);
  text-align: center;
}
.thumb-formula h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--s-5);
}
.formula-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--s-3);
  margin-bottom: var(--s-4);
}
.formula-chip {
  padding: var(--s-2) var(--s-4);
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: var(--text-sm);
  font-weight: 500;
}
.formula-chip--out {
  background: var(--accent);
  color: var(--buttermilk);
  border-color: var(--accent);
}
.formula-plus,
.formula-equals {
  color: var(--ink-3);
  font-weight: 300;
}
.formula-note {
  color: var(--ink-3);
  font-size: var(--text-sm);
  max-width: 56ch;
  margin: 0 auto;
}

/* ---------- APPLICATIONS ---------- */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--s-5);
}
.app-card {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.app-card__preview {
  aspect-ratio: 16/9;
  border-radius: var(--r-md);
  padding: var(--s-5);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
}
.app-card__preview--deck {
  background: linear-gradient(135deg, #1a1614 0%, #0e0c0b 100%);
  color: var(--buttermilk);
  justify-content: space-between;
}
.app-card__preview--carousel {
  aspect-ratio: 1/1;
  background: radial-gradient(ellipse at 50% 50%, rgba(30, 76, 72, 0.3), #0e0c0b);
  color: var(--buttermilk);
  text-align: center;
  justify-content: center;
}
.app-card__preview--infographic {
  aspect-ratio: 4/3;
  background: radial-gradient(ellipse at 50% 50%, #1c2f2c, #0b0d0d);
  color: var(--buttermilk);
  padding-bottom: var(--s-6);
}
.app-card__preview--lowerthird {
  background:
    linear-gradient(135deg, #2a1f18 0%, #0d0a07 60%, #1a1713 100%);
  color: var(--buttermilk);
  justify-content: flex-end;
  padding-bottom: var(--s-5);
}
.app-card__eyebrow {
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  color: rgba(250, 250, 243, 0.4);
  text-transform: uppercase;
}
.app-card__title {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.1;
}
.app-card__hook {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--text-xl);
  line-height: 1;
}
.app-card__sub {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--text-xl);
  line-height: 1;
  margin-top: var(--s-2);
  color: rgba(250, 250, 243, 0.7);
}
.app-card__foot {
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  color: rgba(250, 250, 243, 0.35);
  text-transform: uppercase;
  margin-top: var(--s-4);
}
.lt-scrim {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.7) 100%);
}
.lt-text {
  position: relative;
  z-index: 1;
}
.lt-name {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--text-lg);
}
.lt-name em {
  color: var(--honey);
}
.lt-role {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: rgba(250, 250, 243, 0.65);
  margin-top: 4px;
}
.app-card__caption {
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  color: var(--ink-3);
  text-transform: uppercase;
}

/* ---------- DOWNLOADS ---------- */
.downloads-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--s-4);
  margin-bottom: var(--s-12);
}
.download-card {
  padding: var(--s-6);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  transition: border-color var(--tr), transform var(--tr);
}
.download-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}
.download-card__icon {
  font-size: 28px;
  margin-bottom: var(--s-2);
}
.download-card h3 {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--text-base);
  letter-spacing: -0.01em;
}
.download-card p {
  font-size: var(--text-sm);
  color: var(--ink-2);
  flex: 1;
}
.download-card__cta {
  color: var(--accent);
  font-size: var(--text-sm);
  font-weight: 500;
  margin-top: var(--s-3);
}
.download-card--soon {
  opacity: 0.55;
  pointer-events: none;
}
.download-card--soon .download-card__cta {
  color: var(--ink-3);
}

/* Quick copy */
.quick-copy h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--s-2);
}
.quick-copy > p {
  color: var(--ink-2);
  margin-bottom: var(--s-5);
}
.quick-copy__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--s-3);
}
.qc {
  display: flex;
  flex-direction: column;
  gap: var(--s-1);
  align-items: flex-start;
  padding: var(--s-4);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  text-align: left;
  transition: border-color var(--tr), transform var(--tr);
}
.qc:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.qc__label {
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  color: var(--ink-3);
  text-transform: uppercase;
}
.qc__val {
  font-weight: 500;
  font-size: var(--text-base);
}

/* ---------- FOOTER ---------- */
.footer {
  padding: var(--s-10) clamp(var(--s-5), 4vw, var(--s-10));
  border-top: 1px solid var(--line);
  text-align: center;
}
.footer__mark {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  margin-bottom: var(--s-2);
}
.footer__meta {
  font-size: var(--text-xs);
  color: var(--ink-3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ---------- TOAST ---------- */
.toast {
  position: fixed;
  bottom: var(--s-8);
  left: 50%;
  transform: translate(-50%, 20px);
  background: var(--pepper);
  color: var(--buttermilk);
  padding: var(--s-3) var(--s-5);
  border-radius: 999px;
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.01em;
  opacity: 0;
  transition: opacity var(--tr), transform var(--tr);
  pointer-events: none;
  z-index: 80;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
}
.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- RESPONSIVE POLISH ---------- */
@media (max-width: 640px) {
  .mode-toggle {
    justify-self: end;
  }
  .mode-toggle__btn small {
    display: none;
  }
  .identity-card {
    grid-template-rows: 220px auto;
  }
  .identity-card__preview,
  .identity-card__body {
    padding: var(--s-5);
  }
}

/* ============================================================
   MOTION KIT — section styles (three render modes)
   v1.1 — emerald · lime · carnelian across dark/halo/flat
   ============================================================ */

/* Mode heads (the three description rows above the tabs) */
.mk-mode-head {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--s-5);
  margin-bottom: var(--s-8);
}
.mk-mode {
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
  padding: var(--s-4) var(--s-5);
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.02);
}
.mk-mode__dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  flex: 0 0 22px;
  margin-top: 2px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
}
.mk-mode__name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 16px;
  margin: 0 0 2px;
  color: var(--ink);
}
.mk-mode__desc {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 12.5px;
  color: var(--ink-3);
  line-height: 1.45;
  margin: 0;
}

/* Tabs (switcher) */
.mk-switcher {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  margin-bottom: var(--s-6);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,0.02);
}
.mk-tab {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--ink-3);
  background: transparent;
  border: 0;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: all var(--tr);
}
.mk-tab:hover { color: var(--ink); }
.mk-tab.is-active {
  background: var(--ink);
  color: var(--bg);
}

/* Grid */
.mk-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-5);
  margin-bottom: var(--s-10);
}
.mk-cell { margin: 0; display: flex; flex-direction: column; gap: var(--s-2); }
.mk-cell--wide { grid-column: span 2; }
.mk-cell--wide .mk-scene { aspect-ratio: 24/9; }
.mk-cap {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0;
}

/* Scene — the 16:10 canvas */
.mk-scene {
  aspect-ratio: 16/10;
  border-radius: var(--r-md);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: background 260ms var(--ease);
}

/* Components inside a scene (default dark palette) */
.mk-headline {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(22px, 1.2vw + 16px, 34px);
  line-height: 1.18;
  text-align: center;
  letter-spacing: -0.005em;
  margin: 0;
  padding: 0 40px;
  color: #e8ece0;
  text-wrap: balance;
}
.mk-headline em {
  font-style: italic;
  font-weight: 400;
  color: #d4a636;
  text-shadow: 0 0 18px rgba(212,166,54,0.5);
}
.mk-caret {
  display: inline-block;
  width: 0.08em;
  height: 1em;
  background: #e8ece0;
  margin-left: 0.08em;
  vertical-align: -0.1em;
  animation: mk-blink 1s steps(2) infinite;
}
@keyframes mk-blink { 0%,49% {opacity:1} 50%,100% {opacity:0} }

.mk-slider { width: 78%; }
.mk-slider-labels {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: 12px;
}

.mk-phase { width: 84%; }
.mk-phase-labels {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.mk-phase-labels .mk-active { font-weight: 700; }

.mk-dots { display: flex; gap: 32px; align-items: center; }
.mk-dot { width: 16px; height: 16px; border-radius: 50%; display: inline-block; }

.mk-pills { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.mk-pill {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 7px 13px;
  border-radius: 999px;
}

/* Strokes / nodes (default = dark mode) */
.mk-rail { stroke: rgba(255,255,255,0.12); fill: none; }
.mk-line { stroke: #a2b342; fill: none; filter: drop-shadow(0 0 6px rgba(162,179,66,0.45)) drop-shadow(0 0 12px rgba(162,179,66,0.45)); }
.mk-halo { fill: rgba(255,255,255,0.95); }
.mk-core { fill: #a2b342; }
.mk-ink { color: #e8ece0; }
.mk-mute { color: #7d8a77; }

.mk-dot--accent { background: #a2b342; box-shadow: 0 0 8px rgba(162,179,66,0.55), 0 0 16px rgba(162,179,66,0.35); }
.mk-dot--emph { background: #d4a636; box-shadow: 0 0 8px rgba(212,166,54,0.6), 0 0 16px rgba(212,166,54,0.4); }
.mk-dot--bulb { background: #fafaf3; box-shadow: 0 0 10px rgba(255,255,255,0.5), 0 0 24px rgba(255,255,255,0.3); }

.mk-pill {
  border: 1px solid rgba(255,255,255,0.18);
  color: #7d8a77;
}
.mk-pill.mk-active {
  border-color: #a2b342;
  color: #e8ece0;
  box-shadow: 0 0 0 2px rgba(162,179,66,0.15), 0 0 18px rgba(162,179,66,0.45);
}

/* --- Dark mode scene background --- */
.mk-grid[data-mode="dark"] .mk-scene {
  background: radial-gradient(ellipse 80% 70% at 50% 55%, #0c2219 0%, #071511 60%, #030605 100%);
}

/* --- LIGHT HALO mode (uses real Emerald paper-gradient JPG) --- */
.mk-grid[data-mode="halo"] .mk-scene {
  background: url("assets/gradients/emerald.jpg") center/cover no-repeat, #1E4C48;
  position: relative;
}
.mk-grid[data-mode="halo"] .mk-scene::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 75% 65% at 50% 60%, rgba(255,252,238,0.92) 0%, rgba(255,252,238,0.65) 45%, rgba(255,252,238,0) 80%);
  pointer-events: none;
}
.mk-grid[data-mode="halo"] .mk-scene > * { position: relative; z-index: 1; }
.mk-grid[data-mode="halo"] .mk-headline { color: #211F20; }
.mk-grid[data-mode="halo"] .mk-headline em { color: #B74A00; text-shadow: 0 0 16px rgba(183,74,0,0.18); }
.mk-grid[data-mode="halo"] .mk-caret { background: #211F20; }
.mk-grid[data-mode="halo"] .mk-rail { stroke: rgba(33,31,32,0.15); }
.mk-grid[data-mode="halo"] .mk-line {
  stroke: #1E4C48;
  filter: drop-shadow(0 0 5px rgba(30,76,72,0.45)) drop-shadow(0 0 10px rgba(30,76,72,0.25));
}
.mk-grid[data-mode="halo"] .mk-halo { fill: #FAFAF3; }
.mk-grid[data-mode="halo"] .mk-core { fill: #1E4C48; }
.mk-grid[data-mode="halo"] .mk-ink { color: #211F20; }
.mk-grid[data-mode="halo"] .mk-mute { color: #8a7f72; }
.mk-grid[data-mode="halo"] .mk-dot--accent {
  background: #1E4C48;
  box-shadow: 0 0 8px rgba(30,76,72,0.45), 0 0 14px rgba(30,76,72,0.3);
}
.mk-grid[data-mode="halo"] .mk-dot--emph {
  background: #B74A00;
  box-shadow: 0 0 6px rgba(183,74,0,0.35), 0 0 14px rgba(183,74,0,0.22);
}
.mk-grid[data-mode="halo"] .mk-dot--bulb {
  background: #FFFCEE;
  border: 1px solid rgba(33,31,32,0.18);
  box-shadow: 0 0 10px rgba(255,197,51,0.35);
}
.mk-grid[data-mode="halo"] .mk-pill { border-color: rgba(33,31,32,0.2); color: #8a7f72; }
.mk-grid[data-mode="halo"] .mk-pill.mk-active {
  border-color: #1E4C48;
  color: #211F20;
  box-shadow: 0 0 0 2px rgba(30,76,72,0.15), 0 0 14px rgba(30,76,72,0.22);
}

/* --- LIGHT FLAT mode (no glow, print-ready) --- */
.mk-grid[data-mode="flat"] .mk-scene { background: #FAFAF3; }
.mk-grid[data-mode="flat"] .mk-headline { color: #211F20; }
.mk-grid[data-mode="flat"] .mk-headline em { color: #B74A00; text-shadow: none; }
.mk-grid[data-mode="flat"] .mk-caret { background: #211F20; }
.mk-grid[data-mode="flat"] .mk-rail { stroke: rgba(33,31,32,0.15); }
.mk-grid[data-mode="flat"] .mk-line { stroke: #1E4C48; filter: none; }
.mk-grid[data-mode="flat"] .mk-halo { fill: #FAFAF3; stroke: #211F20; stroke-width: 0.5; }
.mk-grid[data-mode="flat"] .mk-core { fill: #1E4C48; }
.mk-grid[data-mode="flat"] .mk-ink { color: #211F20; }
.mk-grid[data-mode="flat"] .mk-mute { color: #8a7f72; }
.mk-grid[data-mode="flat"] .mk-dot--accent { background: #1E4C48; box-shadow: none; }
.mk-grid[data-mode="flat"] .mk-dot--emph { background: #B74A00; box-shadow: none; }
.mk-grid[data-mode="flat"] .mk-dot--bulb { background: #FAFAF3; border: 1px solid #211F20; box-shadow: none; }
.mk-grid[data-mode="flat"] .mk-pill { border-color: rgba(33,31,32,0.2); color: #8a7f72; }
.mk-grid[data-mode="flat"] .mk-pill.mk-active {
  border-color: #1E4C48;
  color: #211F20;
  box-shadow: 0 0 0 2px rgba(30,76,72,0.12);
}

/* Responsive */
@media (max-width: 900px) {
  .mk-mode-head { grid-template-columns: 1fr; }
  .mk-grid { grid-template-columns: 1fr; }
  .mk-cell--wide { grid-column: span 1; }
}

/* ================================================================
   IDENTITY CARDS — real wordmark version
   ================================================================ */
.identity-card__logo {
  width: 80%;
  max-width: 360px;
  height: auto;
  display: block;
  margin: 0 auto;
}
.identity-card__preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 56px 32px 36px;
}
.identity-card__preview--dark .identity-card__logo {
  /* logo is already buttermilk-colored in the SVG */
}

/* ================================================================
   CANVASES SECTION
   ================================================================ */
.canvas-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 32px;
}
.canvas-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.4s ease;
}
.canvas-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 60px -28px rgba(0,0,0,0.35);
}
.canvas-card__art {
  position: relative;
  aspect-ratio: 16/9;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.canvas-card__chip {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 6px 12px;
  background: rgba(33,31,32,0.78);
  color: #FAFAF3;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 550;
  letter-spacing: 0.14em;
  border-radius: 999px;
  backdrop-filter: blur(8px);
}
.canvas-card__body {
  padding: 24px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.canvas-card__body h3 {
  font-family: var(--font-display);
  font-weight: 550;
  font-size: 22px;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--ink);
}
.canvas-card__body p {
  margin: 0;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.55;
}
.canvas-rules { margin-top: 40px; }
.canvas-rules__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 16px;
}

@media (max-width: 800px) {
  .canvas-grid, .canvas-rules__grid { grid-template-columns: 1fr; }
}

/* ================================================================
   LOGO TIER (3-tier system)
   ================================================================ */
.logo-tier {
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}
.logo-tier:first-of-type { margin-top: 32px; padding-top: 0; border-top: 0; }
.logo-tier__head {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 28px;
}
.logo-tier__num {
  font-family: var(--font-display);
  font-weight: 550;
  font-size: 48px;
  line-height: 1;
  color: var(--line-strong);
  opacity: 0.6;
  flex: 0 0 auto;
  letter-spacing: -0.04em;
}
.logo-tier__head h3 {
  font-family: var(--font-display);
  font-weight: 550;
  font-size: 26px;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.logo-tier__sub {
  color: var(--ink-3);
  font-size: 16px;
  font-weight: 400;
}
.logo-tier__head p {
  margin: 0;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.6;
  max-width: 56ch;
}

.logo-row { margin-top: 28px; }
.logo-row__label {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 11px;
  color: var(--ink-3);
  margin: 0 0 14px;
  font-weight: 550;
  font-family: var(--font-display);
}
.logo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.logo-grid--stacked { grid-template-columns: repeat(4, 1fr); }
.logo-tile {
  border-radius: 14px;
  border: 1px solid var(--line);
  padding: 28px 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 140px;
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
}
.logo-tile--tall { aspect-ratio: 3/4; min-height: 200px; }
.logo-tile img {
  max-width: 75%;
  max-height: 60%;
  height: auto;
  width: auto;
  object-fit: contain;
  display: block;
  margin: auto 0;
}
.logo-tile--tall img { max-width: 70%; max-height: 65%; }
.logo-tile__cap {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(33,31,32,0.55);
  text-transform: uppercase;
  text-align: center;
  flex: 0 0 auto;
}
.logo-tile--buttermilk { background: #FAFAF3; }
.logo-tile--pepper { background: #211F20; }
.logo-tile--pepper .logo-tile__cap { color: rgba(255,255,255,0.55); }
.logo-tile--emerald { background: #1E4C48; }
.logo-tile--emerald .logo-tile__cap { color: rgba(255,255,255,0.6); }
.logo-tile--photo {
  background: url("assets/photos/wide/wide-01.jpg") center/cover no-repeat, #211F20;
  position: relative;
}
.logo-tile--photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.15), rgba(0,0,0,0.55));
  pointer-events: none;
}
.logo-tile--photo > * { position: relative; z-index: 1; }
.logo-tile--photo .logo-tile__cap { color: rgba(255,255,255,0.7); }

/* Sticker tiles */
.sticker-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 8px;
}
.sticker-tile {
  border-radius: 14px;
  padding: 32px 28px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  border: 1px solid var(--line);
}
.sticker-tile--pepper {
  background: #211F20;
}
.sticker-tile--pepper .logo-tile__cap { color: rgba(255,255,255,0.55); }
.sticker-tile--card {
  background: #FAFAF3;
}
.sticker-tile img {
  max-width: 220px;
  width: 60%;
  height: auto;
  display: block;
}
.channel-card {
  background: rgba(0,0,0,0.04);
  padding: 14px 18px 14px 14px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
}
.channel-card__avatar {
  width: 48px !important;
  height: 48px;
  border-radius: 999px;
  object-fit: cover;
}
.channel-card__name {
  font-family: var(--font-display);
  font-weight: 550;
  font-size: 15px;
  color: #211F20;
  margin: 0;
}
.channel-card__subs {
  font-family: var(--font-display);
  font-size: 12px;
  color: rgba(33,31,32,0.55);
  margin: 2px 0 0;
}

/* Plain text tiles */
.plaintext-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 8px;
}
.plaintext-tile {
  border-radius: 14px;
  padding: 56px 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  border: 1px solid var(--line);
  min-height: 200px;
  justify-content: space-between;
}
.plaintext-tile--dark { background: #211F20; }
.plaintext-tile--dark .logo-tile__cap { color: rgba(255,255,255,0.55); }
.plaintext-tile--light { background: #FAFAF3; }
.plaintext-mark {
  font-family: var(--font-display);
  font-weight: 550;
  font-size: 32px;
  letter-spacing: -0.01em;
  margin: 0;
}
.plaintext-tile--dark .plaintext-mark { color: #FAFAF3; }
.plaintext-tile--light .plaintext-mark { color: #211F20; }

@media (max-width: 800px) {
  .logo-grid, .logo-grid--stacked { grid-template-columns: repeat(2, 1fr); }
  .sticker-row, .plaintext-row { grid-template-columns: 1fr; }
}

/* ================================================================
   THUMBNAILS — Recipe A / B with real images
   ================================================================ */
.thumb-recipe {
  margin-top: 40px;
}
.thumb-recipe:first-of-type { margin-top: 32px; }
.thumb-recipe__head {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 24px;
}
.thumb-recipe__num {
  font-family: var(--font-display);
  font-weight: 550;
  font-size: 56px;
  line-height: 1;
  color: var(--line-strong);
  opacity: 0.55;
  flex: 0 0 auto;
  letter-spacing: -0.04em;
}
.thumb-recipe__head h3 {
  font-family: var(--font-display);
  font-weight: 550;
  font-size: 24px;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.thumb-recipe__sub {
  color: var(--ink-3);
  font-size: 16px;
  font-weight: 400;
}
.thumb-recipe__head h3 { color: var(--ink); }
.thumb-recipe__head p {
  margin: 0;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.6;
  max-width: 56ch;
}
.thumb-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.thumb-row figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.thumb-row img {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 10px;
  background: var(--pepper);
  border: 1px solid var(--line);
}
.thumb-row figcaption {
  font-family: var(--font-display);
  font-size: 12px;
  color: var(--ink-3);
  text-align: center;
  letter-spacing: 0.02em;
}
.thumb-recipe:nth-child(2) .thumb-row { grid-template-columns: repeat(3, 1fr); }
.thumb-bad-grid { margin-top: 48px; }
.thumb-bad-grid h3 {
  font-family: var(--font-display);
  font-weight: 550;
  font-size: 18px;
  margin: 0 0 16px;
  color: var(--ink-2);
}

@media (max-width: 800px) {
  .thumb-row { grid-template-columns: repeat(2, 1fr) !important; }
}

/* ================================================================
   PHOTOGRAPHY SECTION
   ================================================================ */
.photo-hero {
  position: relative;
  margin-top: 32px;
  border-radius: 18px;
  overflow: hidden;
  background: #211F20;
}
.photo-hero img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16/9;
  object-fit: cover;
}
.photo-hero__caption {
  position: absolute;
  bottom: 28px;
  left: 28px;
  right: 28px;
  background: rgba(33,31,32,0.78);
  color: #FAFAF3;
  padding: 18px 22px;
  border-radius: 12px;
  backdrop-filter: blur(8px);
  max-width: 540px;
}
.photo-hero__caption .eyebrow { color: #FAC53A; margin-bottom: 6px; }
.photo-hero__caption p { margin: 0; font-size: 14px; line-height: 1.55; color: rgba(255,255,255,0.85); }

.photo-recipe { margin-top: 48px; }
.photo-recipe h3, .photo-rules h3, .canvas-rules h3 {
  font-family: var(--font-display);
  font-weight: 550;
  font-size: 18px;
  letter-spacing: -0.005em;
  margin: 0 0 20px;
  color: var(--ink);
}
.photo-recipe__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.recipe-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px 22px 22px;
}
.recipe-card .eyebrow {
  color: var(--accent);
  margin-bottom: 8px;
}
.recipe-card strong { color: var(--ink); }
.recipe-card p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-2);
}

.photo-feature {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.photo-feature__card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.photo-feature__card img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}
.photo-feature__meta {
  padding: 18px 22px 22px;
}
.photo-feature__meta .eyebrow { margin-bottom: 8px; color: var(--accent); }
.photo-feature__note {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-2);
}

.photo-gallery { margin-top: 40px; }
.photo-gallery__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 14px;
}
.photo-gallery__head h3 {
  font-family: var(--font-display);
  font-weight: 550;
  font-size: 18px;
  margin: 0;
  color: var(--ink);
}
.photo-gallery__count {
  color: var(--ink-3);
  font-size: 13px;
  font-weight: 400;
  margin-left: 10px;
}
.photo-strip {
  display: grid;
  grid-template-columns: repeat(11, 1fr);
  gap: 8px;
}
.photo-strip img {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 6px;
  background: #211F20;
  cursor: pointer;
  transition: transform 0.3s ease;
}
.photo-strip img:hover {
  transform: scale(1.04);
  z-index: 2;
}
.photo-strip--wide {
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.photo-strip--wide img { border-radius: 12px; }

.photo-rules { margin-top: 56px; }
.photo-rules__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

@media (max-width: 1100px) {
  .photo-recipe__grid { grid-template-columns: repeat(2, 1fr); }
  .photo-feature { grid-template-columns: 1fr; }
  .photo-strip { grid-template-columns: repeat(6, 1fr); }
  .photo-rules__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .photo-strip { grid-template-columns: repeat(3, 1fr); }
  .photo-strip--wide { grid-template-columns: 1fr; }
  .photo-rules__grid { grid-template-columns: 1fr; }
  .photo-recipe__grid { grid-template-columns: 1fr; }
  .photo-hero__caption { position: static; margin: 16px; max-width: none; }
}

/* ===========================================================
   HAMBURGER NAV (Edit 5)
   =========================================================== */
.header__nav-wrap {
  position: relative;
  justify-self: end;
}
.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: var(--text-sm);
  font-weight: 500;
  cursor: pointer;
  transition: background var(--tr), border-color var(--tr);
}
.nav-toggle:hover { background: var(--bg-3, rgba(127,127,127,0.08)); }
.nav-toggle__bars {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
  width: 16px;
}
.nav-toggle__bars span {
  display: block;
  height: 1.5px;
  width: 100%;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) {
  transform: translateY(4.5px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) {
  transform: translateY(-4.5px) rotate(-45deg);
}

/* Override old nav styles — always overlay dropdown */
.header__nav {
  display: flex !important;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  flex-direction: column;
  gap: 2px;
  padding: 10px;
  min-width: 200px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 24px 56px -16px rgba(0, 0, 0, 0.55), 0 2px 0 rgba(255,255,255,0.02) inset;
  z-index: 50;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
}
.header__nav:not([hidden]) {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.header__nav[hidden] { display: flex !important; }
.header__nav a {
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--ink-2);
  font-size: var(--text-sm);
  transition: background var(--tr), color var(--tr);
}
.header__nav a:hover {
  background: var(--bg-2);
  color: var(--ink);
}

@media (max-width: 900px) {
  .header__nav { right: 0; }
}

/* ===========================================================
   IDENTITY CARDS AS MODE SWITCHERS (Edits 3 + 4)
   =========================================================== */
.identity-card.mode-card {
  cursor: pointer;
  position: relative;
  user-select: none;
  outline: none;
}
.identity-card.mode-card:focus-visible {
  box-shadow: 0 0 0 3px rgba(30, 76, 72, 0.55);
}
.identity-card.mode-card::after {
  content: 'Click to switch';
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(30, 76, 72, 0.12);
  color: var(--accent);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.22s ease, transform 0.22s ease;
  z-index: 3;
  pointer-events: none;
}
.identity-card.mode-card:hover::after {
  opacity: 1;
  transform: translateY(0);
}
.identity-card.mode-card.is-active::after {
  content: '✓ Active mode';
  opacity: 1;
  transform: translateY(0);
  background: var(--accent);
  color: var(--buttermilk);
}
.identity-card.mode-card.is-active {
  box-shadow: 0 0 0 2px var(--accent), 0 24px 60px -20px rgba(30, 76, 72, 0.45);
}

/* ===========================================================
   CANVAS TAB VISIBILITY BY MODE (Edit 2)
   =========================================================== */
html[data-mode="light"] .mk-tab[data-room="dark"],
html[data-mode="light"] .mk-mode[data-room="dark"] {
  display: none !important;
}
html[data-mode="dark"] .mk-tab[data-room="light"],
html[data-mode="dark"] .mk-mode[data-room="light"] {
  display: none !important;
}

/* ===========================================================
   REPLAY BUTTONS + MOTION ANIMATIONS (Edit 1)
   =========================================================== */
.mk-scene { position: relative; }
.mk-replay {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px 5px 8px;
  border-radius: 999px;
  background: rgba(10, 14, 13, 0.55);
  color: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-family: inherit;
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.mk-scene:hover .mk-replay,
.mk-replay:focus-visible {
  opacity: 1;
  transform: translateY(0);
}
.mk-replay:hover {
  background: rgba(30, 76, 72, 0.85);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}
.mk-replay svg {
  transition: transform 0.4s ease;
}
.mk-replay:active svg {
  transform: rotate(-180deg);
}

/* Light-canvas replay button variant */
.mk-grid[data-mode="halo"] .mk-replay,
.mk-grid[data-mode="flat"] .mk-replay {
  background: rgba(250, 250, 243, 0.8);
  color: #211F20;
  border-color: rgba(33, 31, 32, 0.14);
}
.mk-grid[data-mode="halo"] .mk-replay:hover,
.mk-grid[data-mode="flat"] .mk-replay:hover {
  background: var(--accent);
  color: #FAFAF3;
}

/* --- Animations --- */
@keyframes mkFadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes mkEmph {
  0%   { opacity: 0; transform: translateY(6px) scale(0.96); filter: blur(4px); }
  60%  { opacity: 1; transform: translateY(0) scale(1.02); filter: blur(0); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes mkSliderFill {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}
@keyframes mkSliderHandle {
  from { transform: translateX(-300px); }
  to   { transform: translateX(0); }
}
@keyframes mkHaloPulse {
  0%, 100% { r: 5; opacity: 0.95; }
  50%      { r: 8; opacity: 0.55; }
}
@keyframes mkPhaseFill {
  from { transform: scaleX(0); transform-origin: left center; }
  to   { transform: scaleX(1); transform-origin: left center; }
}
@keyframes mkGraphDraw {
  from { stroke-dashoffset: 600; }
  to   { stroke-dashoffset: 0; }
}
@keyframes mkGraphDot {
  from { opacity: 0; transform: scale(0); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes mkDotGlow {
  from { opacity: 0; transform: scale(0.4); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes mkPillIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes mkCaretBlink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}
@keyframes mkTypeReveal {
  from { clip-path: inset(0 100% 0 0); }
  to   { clip-path: inset(0 0 0 0); }
}

/* Headline word-stagger — each word ascends in sequence */
@keyframes mkWordRise {
  from { opacity: 0; transform: translateY(0.45em); filter: blur(2px); }
  to   { opacity: 1; transform: translateY(0); filter: blur(0); }
}
.mk-cell[data-kind="headline"] .mk-headline.mk-anim {
  animation: none;
}
.mk-cell[data-kind="headline"] .mk-word {
  display: inline-block;
  opacity: 0;
  animation: mkWordRise 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(var(--i, 0) * 110ms);
}
.mk-cell[data-kind="headline"] .mk-word em {
  display: inline-block;
}

/* Typewriter */
.mk-tw__text {
  display: inline-block;
  animation: mkTypeReveal 2s steps(28, end) both;
}
.mk-caret {
  animation: mkCaretBlink 1s steps(1) infinite;
}

/* Slider */
.mk-slider__fill {
  transform-origin: left center;
  animation: mkSliderFill 1.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.mk-slider__halo,
.mk-slider__core {
  animation: mkSliderHandle 1.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.mk-slider__halo {
  animation: mkSliderHandle 1.4s cubic-bezier(0.22, 1, 0.36, 1) both,
             mkHaloPulse 2.6s 1.4s ease-in-out infinite;
}

/* Phase timeline */
.mk-phase__fill {
  animation: mkPhaseFill 1.25s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.mk-phase__halo {
  animation: mkDotGlow 0.65s 1.1s ease-out both,
             mkHaloPulse 2.4s 1.75s ease-in-out infinite;
}
.mk-phase__core {
  animation: mkDotGlow 0.65s 1.1s ease-out both;
}

/* Line graph */
.mk-graph__path {
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  animation: mkGraphDraw 2s cubic-bezier(0.65, 0, 0.35, 1) both;
}
.mk-graph__dot {
  transform-origin: center;
  transform-box: fill-box;
  animation: mkGraphDot 0.5s var(--d, 0.25s) ease-out both;
}

/* Glow dots */
.mk-anim .mk-dot {
  animation: mkDotGlow 0.65s ease-out both;
}
.mk-anim .mk-dot:nth-child(1) { animation-delay: 0.12s; }
.mk-anim .mk-dot:nth-child(2) { animation-delay: 0.44s; }
.mk-anim .mk-dot:nth-child(3) { animation-delay: 0.75s; }

/* Pills */
.mk-anim .mk-pill {
  animation: mkPillIn 0.55s ease-out both;
}
.mk-anim .mk-pill:nth-child(1) { animation-delay: 0.06s; }
.mk-anim .mk-pill:nth-child(2) { animation-delay: 0.25s; }
.mk-anim .mk-pill:nth-child(3) { animation-delay: 0.44s; }
.mk-anim .mk-pill:nth-child(4) { animation-delay: 0.62s; }

/* Replaying class forces animation restart */
.mk-scene.is-replaying .mk-anim,
.mk-scene.is-replaying .mk-tw,
.mk-scene.is-replaying .mk-anim *,
.mk-scene.is-replaying .mk-tw *,
.mk-scene.is-replaying .mk-headline,
.mk-scene.is-replaying .mk-headline *,
.mk-scene.is-replaying .mk-word {
  animation: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .mk-replay { display: none; }
  .mk-anim, .mk-anim *, .mk-tw, .mk-tw *, .mk-word {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ==========================================================
   BATCH 3 — Theme switch, before/after sliders, lightbox
   ========================================================== */

/* Header brand layout (logo + theme switch) */
.header__left {
  display: inline-flex;
  align-items: center;
  gap: 18px;
}
.header__brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.header__logo {
  height: 22px;
  width: auto;
  display: block;
}
/* Show only the logo that matches the current mode */
html[data-mode="dark"] .header__logo--light { display: none; }
html[data-mode="light"] .header__logo--dark { display: none; }

/* Theme switch pill */
.theme-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 62px;
  height: 30px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition: background 220ms ease, border-color 220ms ease;
  flex-shrink: 0;
}
html[data-mode="light"] .theme-switch {
  background: rgba(33, 31, 32, 0.06);
  border-color: rgba(33, 31, 32, 0.14);
}
.theme-switch__icon {
  position: relative;
  z-index: 2;
  width: 14px;
  height: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.55;
  transition: opacity 220ms ease, color 220ms ease;
  color: var(--buttermilk);
}
html[data-mode="light"] .theme-switch__icon { color: var(--pepper); }
.theme-switch__icon svg { width: 14px; height: 14px; display: block; }
/* Active icon (indicates selected mode) */
html[data-mode="dark"] .theme-switch__icon--moon { opacity: 1; color: var(--honey); }
html[data-mode="light"] .theme-switch__icon--sun { opacity: 1; color: var(--carnelian); }

.theme-switch__thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--buttermilk);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  transition: transform 260ms cubic-bezier(0.33, 1, 0.68, 1), background 220ms ease;
  z-index: 1;
}
html[data-mode="light"] .theme-switch__thumb {
  background: var(--pepper);
  transform: translateX(32px);
}
html[data-mode="dark"] .theme-switch__thumb { transform: translateX(0); }
.theme-switch:hover { border-color: rgba(255, 255, 255, 0.28); }
html[data-mode="light"] .theme-switch:hover { border-color: rgba(33, 31, 32, 0.28); }
.theme-switch:focus-visible {
  outline: 2px solid var(--emerald);
  outline-offset: 2px;
}

/* ------- Before/After slider ------- */
.thumb-real.ba { position: relative; }
.ba__stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 12px;
  background: #000;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  cursor: ew-resize;
  --ba-pos: 50%;
}
.ba__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}
.ba__img--before { z-index: 1; }
.ba__img--after {
  z-index: 2;
  clip-path: inset(0 0 0 var(--ba-pos));
  -webkit-clip-path: inset(0 0 0 var(--ba-pos));
}
.ba__handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--ba-pos);
  width: 2px;
  transform: translateX(-1px);
  z-index: 4;
  cursor: ew-resize;
  outline: none;
}
.ba__line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  background: var(--buttermilk, #FAFAF3);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25);
}
.ba__grip {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 32px;
  height: 32px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--buttermilk, #FAFAF3);
  color: var(--pepper, #211F20);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(0, 0, 0, 0.15);
  transition: transform 140ms ease, box-shadow 140ms ease;
}
.ba__stage:hover .ba__grip,
.ba__stage.is-dragging .ba__grip,
.ba__handle:focus-visible .ba__grip {
  transform: translate(-50%, -50%) scale(1.08);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.55), 0 0 0 3px var(--emerald, #1E4C48);
}
.ba__label {
  position: absolute;
  bottom: 10px;
  z-index: 3;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.14em;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--buttermilk, #FAFAF3);
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  pointer-events: none;
}
.ba__label--before { left: 10px; }
.ba__label--after { right: 10px; }

/* ------- Lightbox ------- */
body.has-lightbox { overflow: hidden; }
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 32px;
}
.lightbox.is-open { display: flex; }
.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 10, 10, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  animation: lbFadeIn 200ms ease-out both;
}
.lightbox__stage {
  position: relative;
  z-index: 1;
  max-width: 92vw;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  animation: lbZoomIn 260ms cubic-bezier(0.2, 0.7, 0.25, 1) both;
}
.lightbox__img {
  max-width: 88vw;
  max-height: 82vh;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 14px;
  box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.lightbox__caption {
  margin: 0;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--buttermilk, #FAFAF3);
  opacity: 0.78;
  max-width: 80vw;
  text-align: center;
  letter-spacing: 0.02em;
}
.lightbox__close {
  position: absolute;
  top: -44px;
  right: -4px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: var(--buttermilk, #FAFAF3);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 160ms ease, transform 160ms ease;
  padding: 0;
}
.lightbox__close:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: scale(1.05);
}
@keyframes lbFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes lbZoomIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

/* Hover affordance for zoomable items */
[data-zoomable] {
  cursor: zoom-in;
  transition: transform 220ms ease, box-shadow 220ms ease;
}
.photo-strip [data-zoomable]:hover,
.photo-hero [data-zoomable]:hover,
.photo-feature__card [data-zoomable]:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px -18px rgba(0, 0, 0, 0.55);
}

@media (prefers-reduced-motion: reduce) {
  .lightbox__backdrop, .lightbox__stage { animation: none; }
  .ba__grip, [data-zoomable] { transition: none; }
}

/* Hero compact variant — used after removing eyebrow + lede (batch 3 Edit 2) */
.hero--compact { padding-top: 72px; padding-bottom: 72px; min-height: auto; }
.hero--compact .hero__content { max-width: 900px; }
.hero--compact .hero__title { margin-bottom: 34px; }
@media (min-width: 900px) {
  .hero--compact { padding-top: 110px; padding-bottom: 110px; }
}

/* ==========================================================
   BATCH 4 — recipe single, bad-3/4 backgrounds, carousel restraint
   ========================================================== */

/* Single-recipe variant: drop the big number badge, tighter rhythm */
.thumb-recipe--single .thumb-recipe__num { display: none; }
.thumb-recipe--single .thumb-recipe__head { gap: 0; }
.thumb-recipe--single .thumb-recipe__head h3 { margin-bottom: 8px; }

/* Two new bad-card backgrounds */
.thumb__img--bad-3 {
  background:
    radial-gradient(circle at 70% 30%, rgba(247, 62, 62, 0.55) 0%, transparent 55%),
    linear-gradient(135deg, #1f0a0a 0%, #2a1a14 100%);
}
.thumb__img--bad-4 {
  background:
    radial-gradient(circle at 30% 70%, rgba(216, 84, 239, 0.35) 0%, transparent 55%),
    linear-gradient(135deg, #2a1a4a 0%, #1a0f2a 100%);
}

/* Carousel preview: flat editorial frame, no halo, tighter type */
.app-card__preview--carousel {
  /* Override the prior radial gradient with a flat editorial canvas */
  background: #181617 !important;
  /* Subtle editorial frame */
  position: relative;
}
.app-card__preview--carousel::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(250, 250, 243, 0.08);
  border-radius: 6px;
  pointer-events: none;
}
.app-card__preview--carousel .app-card__hook,
.app-card__preview--carousel .app-card__sub {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  line-height: 1.18;
  letter-spacing: -0.005em;
  text-align: left;
  width: 100%;
  padding: 0 22px;
}
.app-card__preview--carousel .app-card__sub {
  color: rgba(250, 250, 243, 0.55);
  margin-top: 4px;
}
.app-card__preview--carousel .app-card__hook em,
.app-card__preview--carousel .app-card__sub em {
  font-family: var(--font-display, 'Larken', Georgia, serif);
  font-style: italic;
  font-weight: 400;
  color: var(--honey, #FAC53A);
}
.app-card__preview--carousel .app-card__foot {
  align-self: flex-start;
  margin-left: 22px;
  margin-top: 18px;
  font-size: 9px;
  letter-spacing: 0.18em;
  color: rgba(250, 250, 243, 0.3);
}
/* Force the carousel to align content to bottom-left for editorial feel */
.app-card__preview--carousel {
  justify-content: flex-end !important;
  align-items: stretch !important;
  padding-bottom: 22px;
  text-align: left !important;
}

/* Fix: bad-2 card needs dark text on the buttermilk canvas */
.thumb__img--bad-2 .thumb__copy { color: var(--pepper); }

/* =========================================================
   APRIL 2026 SYNC — Style A storyboards + Style B briefs +
   Vocabulary section + Accent rules + Motion canvases
   ========================================================= */

/* --- Tier 2 accent rules --- */
.accent-rules {
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid rgba(0,0,0,0.08);
}
[data-mode="dark"] .accent-rules { border-top-color: rgba(255,255,255,0.1); }
.accent-rules__title {
  font-family: var(--font-sans, "Inter", sans-serif);
  font-weight: 550;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 16px;
  opacity: 0.7;
}
.accent-rules__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 720px) { .accent-rules__grid { grid-template-columns: 1fr; } }
.accent-rules__card {
  padding: 22px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.08);
}
[data-mode="dark"] .accent-rules__card { border-color: rgba(255,255,255,0.1); }
.accent-rules__card--dark {
  background: #211F20;
  color: #FAFAF3;
  border-color: rgba(255,255,255,0.12);
}
.accent-rules__card--light {
  background: #FAFAF3;
  color: #211F20;
}
.accent-rules__card p { margin: 8px 0 14px; line-height: 1.5; font-size: 14px; }
.accent-rules__card code {
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 12px;
  padding: 1px 5px;
  border-radius: 3px;
  background: rgba(127,127,127,0.15);
}
.accent-rules__chips {
  display: flex; gap: 8px;
}
.accent-chip {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  display: inline-block;
}

/* --- Motion canvas block --- */
.motion-canvas-block { margin-top: 56px; }
.motion-canvas-block h3 {
  font-family: var(--font-serif, "Fraunces", serif);
  font-size: 28px;
  font-weight: 400;
  margin: 0 0 8px;
}
.motion-canvas-block__lede {
  margin: 0 0 24px;
  font-size: 16px;
  line-height: 1.55;
  opacity: 0.8;
  max-width: 640px;
}
.motion-canvas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 860px) { .motion-canvas-grid { grid-template-columns: 1fr; } }
.motion-canvas {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(127,127,127,0.18);
  background: rgba(127,127,127,0.04);
}
.motion-canvas--default {
  border-color: #1E4C48;
  box-shadow: 0 0 0 2px rgba(30,76,72,0.2);
}
.motion-canvas__swatch {
  height: 140px;
  background-size: cover;
  background-position: center;
}
.motion-canvas__swatch--vignette {
  background: radial-gradient(ellipse at center, #1C2F2C 0%, #0B0D0D 100%);
}
.motion-canvas__body { padding: 18px 20px 22px; }
.motion-canvas__body h4 {
  margin: 6px 0 8px;
  font-family: var(--font-serif, "Fraunces", serif);
  font-size: 20px;
  font-weight: 400;
}
.motion-canvas__body p { margin: 0; font-size: 14px; line-height: 1.5; opacity: 0.8; }
.motion-canvas__body code {
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 12px;
  padding: 1px 4px;
  border-radius: 3px;
  background: rgba(127,127,127,0.15);
}

/* --- Brief code blocks --- */
.brief-block {
  margin: 0 0 56px;
  padding: 28px 30px;
  border-radius: 14px;
  background: rgba(30,76,72,0.06);
  border-left: 3px solid #1E4C48;
}
[data-mode="dark"] .brief-block { background: rgba(30,76,72,0.18); }
.brief-block h3, .brief-block h4 {
  font-family: var(--font-serif, "Fraunces", serif);
  font-size: 22px;
  font-weight: 400;
  margin: 0 0 6px;
}
.brief-block__lede {
  margin: 0 0 16px;
  font-size: 14px;
  opacity: 0.8;
  max-width: 600px;
}
.brief-code {
  margin: 0;
  padding: 18px 22px;
  background: #0B0D0D;
  color: #E9E67B;
  border-radius: 8px;
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 13px;
  line-height: 1.6;
  overflow-x: auto;
}
.brief-code code { color: inherit; background: none; padding: 0; }
.brief-block--styleA { margin-top: 28px; margin-bottom: 0; }

/* --- Style A storyboard block --- */
.styleA-block { margin-top: 56px; }
.styleA-block h3 {
  font-family: var(--font-serif, "Fraunces", serif);
  font-size: 28px;
  font-weight: 400;
  margin: 0 0 8px;
}
.styleA-block__lede {
  margin: 0 0 28px;
  font-size: 16px;
  line-height: 1.55;
  opacity: 0.8;
  max-width: 700px;
}
.styleA-block__lede a {
  color: inherit;
  border-bottom: 1px solid currentColor;
  text-decoration: none;
}
.styleA-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 32px;
}
@media (max-width: 920px) { .styleA-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .styleA-grid { grid-template-columns: 1fr; } }
.styleA-card {
  padding: 22px 22px 24px;
  border-radius: 12px;
  background: rgba(127,127,127,0.05);
  border: 1px solid rgba(127,127,127,0.15);
}
.styleA-card .eyebrow {
  font-size: 11px;
  letter-spacing: 0.16em;
  opacity: 0.55;
  margin-bottom: 8px;
}
.styleA-card h4 {
  margin: 0 0 8px;
  font-family: var(--font-sans, "Inter", sans-serif);
  font-weight: 550;
  font-size: 16px;
}
.styleA-card p { margin: 0; font-size: 14px; line-height: 1.5; opacity: 0.85; }
.styleA-card code {
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 12px;
  padding: 1px 5px;
  border-radius: 3px;
  background: rgba(127,127,127,0.18);
}

/* --- Worked examples --- */
.worked-block { margin-top: 56px; }
.worked-block h3 {
  font-family: var(--font-serif, "Fraunces", serif);
  font-size: 28px;
  font-weight: 400;
  margin: 0 0 8px;
}
.worked-block__lede {
  margin: 0 0 28px;
  font-size: 16px;
  opacity: 0.8;
}
.worked-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 920px) { .worked-grid { grid-template-columns: 1fr; } }
.worked-card {
  display: flex;
  flex-direction: column;
  padding: 24px 24px 22px;
  border-radius: 14px;
  background: rgba(30,76,72,0.08);
  border: 1px solid rgba(30,76,72,0.25);
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s cubic-bezier(0.22,1,0.36,1), box-shadow 0.18s;
}
[data-mode="dark"] .worked-card { background: rgba(30,76,72,0.22); }
.worked-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(30,76,72,0.18);
}
.worked-card .eyebrow {
  font-size: 10px;
  letter-spacing: 0.18em;
  opacity: 0.6;
  margin-bottom: 8px;
}
.worked-card h4 {
  font-family: var(--font-serif, "Fraunces", serif);
  font-size: 22px;
  font-weight: 400;
  margin: 0 0 10px;
}
.worked-card p { margin: 0 0 16px; font-size: 14px; line-height: 1.5; opacity: 0.85; }
.worked-card__cta {
  margin-top: auto !important;
  font-family: var(--font-sans, "Inter", sans-serif);
  font-weight: 550;
  font-size: 13px;
  color: #1E4C48;
  letter-spacing: 0.02em;
}
[data-mode="dark"] .worked-card__cta { color: #FAC53A; }

/* --- Vocabulary section --- */
.vocab-block { margin-bottom: 48px; }
.vocab-block h3 {
  font-family: var(--font-serif, "Fraunces", serif);
  font-size: 26px;
  font-weight: 400;
  margin: 0 0 8px;
}
.vocab-block__lede {
  margin: 0 0 20px;
  font-size: 15px;
  opacity: 0.8;
  max-width: 640px;
}
.vocab-table {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(127,127,127,0.18);
}
.vocab-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  padding: 14px 22px;
  border-top: 1px solid rgba(127,127,127,0.12);
  font-size: 14px;
  line-height: 1.5;
}
.vocab-row:first-child { border-top: none; }
.vocab-row--head {
  background: rgba(127,127,127,0.06);
  font-family: var(--font-sans, "Inter", sans-serif);
  font-weight: 550;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.65;
  padding: 12px 22px;
}
.vocab-row strong { font-family: var(--font-sans, "Inter", sans-serif); font-weight: 550; }
@media (max-width: 600px) {
  .vocab-row { grid-template-columns: 1fr; gap: 4px; }
}

/* --- Camera arc cards --- */
.arc-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
@media (max-width: 720px) { .arc-grid { grid-template-columns: 1fr; } }
.arc-card {
  padding: 22px;
  border-radius: 12px;
  background: rgba(127,127,127,0.05);
  border: 1px solid rgba(127,127,127,0.15);
}
.arc-card .eyebrow {
  font-size: 11px;
  letter-spacing: 0.16em;
  margin-bottom: 8px;
  color: #1E4C48;
}
[data-mode="dark"] .arc-card .eyebrow { color: #FAC53A; }
.arc-card p { margin: 0; font-size: 14px; line-height: 1.55; opacity: 0.85; }

/* --- What Computer can read --- */
.inputs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 18px;
}
@media (max-width: 860px) { .inputs-grid { grid-template-columns: 1fr; } }
.input-card {
  padding: 22px;
  border-radius: 12px;
  background: rgba(127,127,127,0.05);
  border: 1px solid rgba(127,127,127,0.15);
}
.input-card .pill { margin-bottom: 12px; display: inline-block; }
.input-card ul { margin: 0; padding-left: 18px; }
.input-card li { font-size: 14px; line-height: 1.5; margin-bottom: 6px; opacity: 0.9; }
.input-card--yes { border-color: rgba(30,76,72,0.35); }
.input-card--partial { border-color: rgba(166,111,0,0.4); }
.input-card--no { border-color: rgba(143,47,47,0.35); }

/* Pill warn variant for "Partial" */
.pill--warn {
  background: rgba(166,111,0,0.18);
  color: #A66F00;
}
[data-mode="dark"] .pill--warn { color: #FAC53A; background: rgba(250,197,58,0.18); }
