/* ClobalAI · Unified Editorial Dark Design System (aligned with Meta Astryx UI/UX criteria). */
@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/ibm-plex-sans-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: dark light;

  /* 4px modular spacing scale */
  --space-1: 0.25rem;  /* 4px */
  --space-2: 0.5rem;   /* 8px */
  --space-3: 0.75rem;  /* 12px */
  --space-4: 1rem;     /* 16px */
  --space-5: 1.25rem;  /* 20px */
  --space-6: 1.5rem;   /* 24px */
  --space-8: 2rem;     /* 32px */
  --space-10: 2.5rem;  /* 40px */
  --space-12: 3rem;    /* 48px */
  --space-14: 3.5rem;  /* 56px */
  --space-16: 4rem;    /* 64px */

  /* 60-30-10 Night palette: 60% calm obsidian canvas, 30% structural slate, 10% conversion CTA */
  --color-bg-body: #0b0e14;
  --color-bg-subtle: #0e1219;
  --color-bg-surface: #121620;
  --color-bg-raised: #171c28;
  --color-bg-control: #1c2230;
  --color-bg-control-hover: #242c3d;
  --color-bg-header: rgba(11, 14, 20, 0.92);
  --color-bg-nav-hover: rgba(255, 255, 255, 0.05);
  --color-bg-code: #090c12;
  --color-ambient-glow: transparent;

  --color-text-primary: #f8fafc;
  --color-text-secondary: #cbd5e1;
  --color-text-muted: #94a3b8;
  --color-text-link: #e2e8f0;

  --color-border-subtle: rgba(203, 213, 225, 0.12);
  --color-border-strong: rgba(203, 213, 225, 0.24);
  --color-border-hover: rgba(203, 213, 225, 0.42);
  --color-border-accent: rgba(203, 213, 225, 0.24);

  --color-accent: #00d4eb;
  --color-accent-hover: #3ce6f9;
  --color-accent-ink: #041318;
  --color-accent-shadow: rgba(0, 212, 235, 0.24);
  --color-accent-soft: rgba(203, 213, 225, 0.08);
  --color-status-success: #76c9a9;
  --color-selection: rgba(0, 212, 235, 0.24);
  --color-selection-ink: #ffffff;
  --scrollbar-thumb: #2d3848;

  /* Concentric shape radii */
  --radius-container: 16px;
  --radius-card: 12px;
  --radius-element: 8px;
  --radius-inner: 4px;
  --radius-pill: 999px;

  /* Elevation shadows & predictable z-index stack */
  --shadow-low: 0 2px 8px rgba(0, 0, 0, 0.20);
  --shadow-med: 0 12px 28px rgba(0, 0, 0, 0.28);
  --z-base: 0;
  --z-sticky: 20;
  --z-header: 30;
  --z-skip: 100;

  /* Aliases */
  --bg: var(--color-bg-body);
  --surface: var(--color-bg-surface);
  --surface-raised: var(--color-bg-raised);
  --surface-inset: var(--color-bg-subtle);
  --text: var(--color-text-primary);
  --muted: var(--color-text-secondary);
  --quiet: var(--color-text-muted);
  --line: var(--color-border-subtle);
  --line-strong: var(--color-border-strong);
  --cyan: var(--color-accent);
  --cyan-hover: var(--color-accent-hover);
  --cyan-ink: var(--color-accent-ink);
  --cyan-soft: var(--color-accent-soft);
  --success: var(--color-status-success);
  --radius: var(--radius-container);
  --radius-md: var(--radius-card);
  --radius-sm: var(--radius-element);

  --font: "IBM Plex Sans", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
  --text-xs: 0.75rem;    /* 12px */
  --text-sm: 0.875rem;   /* 14px */
  --text-base: 1rem;     /* 16px */
  --text-lg: 1.25rem;    /* 20px */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

:root[data-theme="light"] {
  color-scheme: light;
  --color-bg-body: #f4f6f9;
  --color-bg-subtle: #eaeef4;
  --color-bg-surface: #ffffff;
  --color-bg-raised: #f8fafc;
  --color-bg-control: #ffffff;
  --color-bg-control-hover: #eef2f6;
  --color-bg-header: rgba(255, 255, 255, 0.94);
  --color-bg-nav-hover: rgba(15, 23, 42, 0.05);
  --color-bg-code: #edf2f7;
  --color-ambient-glow: transparent;

  --color-text-primary: #0f172a;
  --color-text-secondary: #334155;
  --color-text-muted: #475569;
  --color-text-link: #1e293b;

  --color-border-subtle: rgba(15, 23, 42, 0.10);
  --color-border-strong: rgba(15, 23, 42, 0.20);
  --color-border-hover: rgba(15, 23, 42, 0.36);
  --color-border-accent: rgba(15, 23, 42, 0.20);

  --color-accent: #007d91;
  --color-accent-hover: #006270;
  --color-accent-ink: #ffffff;
  --color-accent-shadow: rgba(0, 125, 145, 0.24);
  --color-accent-soft: rgba(15, 23, 42, 0.05);
  --color-status-success: #15803d;
  --color-selection: rgba(0, 125, 145, 0.18);
  --color-selection-ink: #0f172a;
  --scrollbar-thumb: #94a3b8;

  --shadow-low: 0 1px 3px rgba(15, 23, 42, 0.06), 0 4px 12px rgba(15, 23, 42, 0.04);
  --shadow-med: 0 10px 28px rgba(15, 23, 42, 0.10), 0 2px 6px rgba(15, 23, 42, 0.05);
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --color-bg-body: #f4f6f9;
    --color-bg-subtle: #eaeef4;
    --color-bg-surface: #ffffff;
    --color-bg-raised: #f8fafc;
    --color-bg-control: #ffffff;
    --color-bg-control-hover: #eef2f6;
    --color-bg-header: rgba(255, 255, 255, 0.94);
    --color-bg-nav-hover: rgba(15, 23, 42, 0.05);
    --color-bg-code: #edf2f7;
    --color-ambient-glow: transparent;

    --color-text-primary: #0f172a;
    --color-text-secondary: #334155;
    --color-text-muted: #475569;
    --color-text-link: #1e293b;

    --color-border-subtle: rgba(15, 23, 42, 0.10);
    --color-border-strong: rgba(15, 23, 42, 0.20);
    --color-border-hover: rgba(15, 23, 42, 0.36);
    --color-border-accent: rgba(15, 23, 42, 0.20);

    --color-accent: #007d91;
    --color-accent-hover: #006270;
    --color-accent-ink: #ffffff;
    --color-accent-shadow: rgba(0, 125, 145, 0.24);
    --color-accent-soft: rgba(15, 23, 42, 0.05);
    --color-status-success: #15803d;
    --color-selection: rgba(0, 125, 145, 0.18);
    --color-selection-ink: #0f172a;
    --scrollbar-thumb: #94a3b8;

    --shadow-low: 0 1px 3px rgba(15, 23, 42, 0.06), 0 4px 12px rgba(15, 23, 42, 0.04);
    --shadow-med: 0 10px 28px rgba(15, 23, 42, 0.10), 0 2px 6px rgba(15, 23, 42, 0.05);
  }
}

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

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  scrollbar-color: var(--scrollbar-thumb) var(--bg);
  scrollbar-width: thin;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  caret-color: var(--cyan);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 580px;
  pointer-events: none;
  z-index: -1;
  background: radial-gradient(ellipse at 72% 24%, var(--color-ambient-glow), transparent 58%);
}

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

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
  text-underline-offset: 4px;
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: default;
}

::selection {
  background: var(--color-selection);
  color: var(--color-selection-ink);
}

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

.container {
  width: min(1200px, calc(100% - 64px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  left: var(--space-5);
  top: var(--space-3);
  z-index: var(--z-skip);
  transform: translateY(-180%);
  background: var(--text);
  color: var(--bg);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-element);
  font-size: var(--text-sm);
  font-weight: 600;
}

.skip-link:focus {
  transform: translateY(0);
}

/* Header & Navigation */
.site-header {
  min-height: 76px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: var(--color-bg-header);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  min-height: 76px;
  gap: var(--space-4);
}

.brand {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  min-height: 44px;
  margin-right: auto;
}

.brand img {
  width: 174px;
  height: 36px;
  object-fit: contain;
}

.brand-logo--dark {
  mix-blend-mode: screen;
}

.brand-logo--light {
  display: none;
  mix-blend-mode: normal;
}

:root[data-theme="light"] .brand-logo--dark {
  display: none;
}

:root[data-theme="light"] .brand-logo--light {
  display: block;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .brand-logo--dark {
    display: none;
  }

  :root:not([data-theme="dark"]) .brand-logo--light {
    display: block;
  }
}

.main-nav {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  flex-shrink: 0;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 40px;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-element);
  border: 1px solid var(--line-strong);
  background: var(--color-bg-control);
  color: var(--text);
  font-size: var(--text-xs);
  font-weight: 600;
  line-height: 1;
  transition: background 0.18s var(--ease-out), border-color 0.18s var(--ease-out);
}

.theme-toggle:hover {
  background: var(--color-bg-control-hover);
  border-color: var(--color-border-hover);
}

.theme-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.theme-icon--moon {
  display: none;
}

:root[data-theme="light"] .theme-icon--sun {
  display: none;
}

:root[data-theme="light"] .theme-icon--moon {
  display: block;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .theme-icon--sun {
    display: none;
  }

  :root:not([data-theme="dark"]) .theme-icon--moon {
    display: block;
  }
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 14px;
  font-size: var(--text-sm);
  font-weight: 500;
  line-height: 1.3;
  color: var(--muted);
  border-radius: var(--radius-sm);
  position: relative;
  transition: color 0.18s var(--ease-out), background 0.18s var(--ease-out);
}

.nav-link:hover {
  color: var(--text);
  background: var(--color-bg-nav-hover);
}

.nav-link[aria-current="page"],
.nav-link.is-active {
  color: var(--text);
  font-weight: 600;
}

.nav-link[aria-current="page"]::after,
.nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 6px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
}

.menu-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 14px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  font-weight: 500;
}

.menu-toggle svg {
  width: 18px;
  height: 18px;
}

/* Typography */
h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1,
h2,
h3,
h4 {
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.25rem, 4.1vw, 3.5rem);
  margin-bottom: 20px;
  max-width: 640px;
}

h2 {
  font-size: clamp(1.625rem, 2.8vw, 2.25rem);
  margin-bottom: 12px;
}

h3 {
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

p {
  text-wrap: pretty;
}

/* Controls & Links */
.hero-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 11px 22px;
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1.35;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  transition: background 0.18s var(--ease-out), border-color 0.18s var(--ease-out), transform 0.18s var(--ease-out);
  white-space: normal;
  text-align: center;
}

.button svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.button-primary {
  color: var(--cyan-ink);
  background: var(--cyan);
  box-shadow: 0 8px 24px var(--color-accent-shadow);
}

.button-primary:hover {
  background: var(--cyan-hover);
  transform: translateY(-1px);
}

.button-compact {
  min-height: 44px;
  padding: var(--space-2) var(--space-4);
}

.button-small {
  min-height: 44px;
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  background: var(--color-bg-control);
  color: var(--text);
  border-color: var(--line-strong);
}

.button-small:hover {
  border-color: var(--color-border-hover);
  background: var(--color-bg-control-hover);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 36px;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-link);
  transition: color 0.18s var(--ease-out);
}

.text-link:hover {
  color: var(--text);
  text-decoration: underline;
}

.text-link svg {
  height: 14px;
  width: 14px;
}

/* Sections & Headings */
.section {
  padding-block: clamp(48px, 6vw, 68px);
  border-top: 1px solid var(--line);
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 24px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.section-heading h2 {
  margin: 0;
}

.section-heading p {
  font-size: var(--text-sm);
  line-height: 1.65;
  color: var(--muted);
  max-width: 420px;
  margin: 0;
}

.section-heading .text-link {
  margin-left: auto;
}

/* Project Directory Cards */
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.project-card {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-container);
  background: var(--surface);
  box-shadow: var(--shadow-low);
  transition: transform 0.22s var(--ease-out), border-color 0.22s var(--ease-out), background 0.22s var(--ease-out), box-shadow 0.22s var(--ease-out);
}

.project-card:hover {
  transform: translateY(-3px);
  background: var(--surface-raised);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-med);
}

.project-visual {
  display: block;
  position: relative;
  overflow: hidden;
  width: 100%;
  flex-shrink: 0;
  aspect-ratio: 1.65;
  background: var(--surface-inset);
  border-bottom: 1px solid var(--line);
}

.project-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}

.project-card:hover .project-visual img {
  transform: scale(1.03);
}

.project-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 24px;
}

.project-kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--quiet);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.availability {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: var(--text-xs);
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
}

.availability::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
}

.project-title {
  margin: 0 0 12px;
  font-size: 1.375rem;
  line-height: 1.2;
}

.project-title a:hover {
  color: var(--color-text-link);
}

.project-summary {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--muted);
  margin-bottom: 24px;
}

.project-actions {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  flex-wrap: wrap;
}

/* Compact Project Blogs on Home */
.blog-home-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.blog-index-card {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: var(--space-5);
  align-items: center;
  padding: var(--space-3);
  border: 1px solid var(--line);
  border-radius: var(--radius-container);
  background: var(--surface);
  box-shadow: var(--shadow-low);
  transition: border-color 0.2s var(--ease-out), background 0.2s var(--ease-out);
}

.blog-index-card:hover {
  border-color: var(--line-strong);
  background: var(--surface-raised);
}

.blog-index-thumb {
  display: block;
  aspect-ratio: 16 / 10;
  /* Concentric shape: outer container (16px) - card padding (12px) = 4px */
  border-radius: calc(var(--radius-container) - var(--space-3));
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface-inset);
}

.blog-index-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-index-body {
  min-width: 0;
}

.blog-index-kind {
  display: block;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--quiet);
  margin-bottom: 6px;
}

.blog-index-body h3 {
  font-size: 1.1875rem;
  margin-bottom: 6px;
}

.blog-index-body h3 a:hover {
  color: var(--color-text-link);
}

.blog-index-body p {
  font-size: var(--text-sm);
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 10px;
}

/* News & Blog Post Cards */
.news-section {
  padding-block: clamp(48px, 6vw, 64px);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.news-card {
  display: flex;
  flex-direction: column;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  min-width: 0;
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--quiet);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.news-meta time {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.news-card h3 {
  font-size: 1.1875rem;
  line-height: 1.35;
  margin-bottom: 10px;
}

.news-card h3 a:hover {
  color: var(--color-text-link);
}

.news-card p {
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.65;
  margin-bottom: 16px;
}

.news-card .text-link {
  margin-top: auto;
  align-self: flex-start;
}

.empty-state {
  padding: 28px 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--muted);
  font-size: var(--text-base);
}

.empty-state--compact {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 24px;
  padding: 24px 28px;
}

.empty-state h2,
.empty-state h3 {
  color: var(--text);
  font-size: 1.25rem;
  margin-bottom: 6px;
}

.empty-state p {
  margin-bottom: 0;
  font-size: 0.9375rem;
  color: var(--muted);
}

.empty-state .text-link {
  margin-top: 12px;
}

.empty-state--compact .text-link {
  margin-top: 0;
}

/* About Strip */
.about-strip {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  gap: var(--space-8);
  padding: var(--space-8) var(--space-10);
  border: 1px solid var(--line);
  border-radius: var(--radius-container);
  background: var(--surface);
  box-shadow: var(--shadow-low);
}

.about-copy {
  flex: 1;
  min-width: 0;
}

.about-copy h2 {
  font-size: clamp(1.375rem, 2.2vw, 1.75rem);
  margin-bottom: var(--space-3);
}

.about-copy > p {
  max-width: 65ch;
  font-size: var(--text-base);
  line-height: 1.75;
  color: var(--muted);
  margin-bottom: var(--space-5);
}

.about-pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}

.about-pillar {
  padding: var(--space-4);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface-inset);
}

.about-pillar strong {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text);
  margin-bottom: var(--space-1);
}

.about-pillar span {
  display: block;
  font-size: var(--text-xs);
  line-height: 1.5;
  color: var(--quiet);
}

/* Founder Profile (Home mini strip & Sobre ClobalAI full card) */
.founder-mini {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--line);
}

.founder-mini--card {
  margin-top: var(--space-8);
  padding: var(--space-5);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-low);
}

.founder-mini-avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-pill);
  object-fit: cover;
  object-position: center top;
  border: 1px solid var(--line-strong);
  flex-shrink: 0;
}

.founder-mini-copy {
  min-width: 0;
  margin-right: auto;
}

.founder-mini-copy strong {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
}

.founder-mini-copy span {
  display: block;
  font-size: var(--text-xs);
  color: var(--quiet);
  line-height: 1.45;
}

.founder-mini-links {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
}

.founder-card {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: var(--space-6);
  align-items: start;
  padding: var(--space-6);
  margin-bottom: var(--space-8);
  border: 1px solid var(--line);
  border-radius: var(--radius-container);
  background: var(--surface);
  box-shadow: var(--shadow-low);
}

.founder-avatar {
  margin: 0;
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface-inset);
  aspect-ratio: 1 / 1;
}

.founder-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.founder-body {
  min-width: 0;
}

.founder-role {
  display: block;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--quiet);
  margin-bottom: var(--space-1);
}

.founder-body h2 {
  font-size: clamp(1.375rem, 2.2vw, 1.75rem);
  margin: 0 0 var(--space-1);
  color: var(--text);
}

.founder-location {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--muted);
  margin: 0 0 var(--space-3);
}

.founder-bio {
  font-size: var(--text-sm);
  line-height: 1.65;
  color: var(--muted);
  margin: 0 0 var(--space-4);
}

.founder-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.founder-stack {
  margin: var(--space-4) 0 var(--space-5);
  padding-left: 0;
}

.post-byline a {
  color: var(--text);
  font-weight: 500;
}

.post-byline a:hover {
  text-decoration: underline;
}

.meta-list dd .text-link {
  min-height: 0;
  font-weight: 500;
}

.about-mark {
  width: 84px;
  height: 84px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #0d1017;
}

.about-mark img {
  max-width: 54px;
  max-height: 54px;
  mix-blend-mode: screen;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 28px;
  color: var(--quiet);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 0.8125rem;
}

.footer-inner p {
  margin: 0;
  color: var(--muted);
}

.site-footer .brand {
  min-height: 44px;
  margin-right: 0;
}

.site-footer .brand img {
  width: 196px;
  height: auto;
  opacity: 0.94;
}

.site-footer .brand-logo--light {
  mix-blend-mode: normal;
  opacity: 1;
}

.footer-inner > div {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
}

.footer-inner a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
}

.footer-inner a:hover {
  color: var(--text);
  text-decoration: underline;
}

.social-links {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  width: 40px;
  height: 40px;
  min-height: 40px;
  padding: 0;
  border-radius: var(--radius-element);
  border: 1px solid var(--line-strong);
  background: var(--color-bg-control);
  color: var(--text);
  text-decoration: none;
  transition: background 0.18s var(--ease-out), border-color 0.18s var(--ease-out), transform 0.18s var(--ease-out);
}

.social-btn:hover {
  background: var(--color-bg-control-hover);
  border-color: var(--color-border-hover);
  text-decoration: none;
  transform: translateY(-1px);
}

.social-btn--labeled {
  width: auto;
  height: auto;
  min-height: 36px;
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-xs);
  font-weight: 600;
}

.social-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.button .social-icon {
  width: 17px;
  height: 17px;
}

/* Internal Pages (Astryx-aligned LayoutHeader + Content-Only Structure) */
.page-heading {
  padding-block: clamp(32px, 5vw, 48px) clamp(24px, 4vw, 36px);
  border-bottom: 1px solid var(--line);
  margin-bottom: 0;
}

.page-heading + .section {
  border-top: 0;
  padding-top: clamp(32px, 4vw, 44px);
}

.page-heading h1 {
  font-size: clamp(2rem, 3.8vw, 3.125rem);
  max-width: 820px;
  margin-bottom: var(--space-3);
}

.page-lead {
  font-size: 1.0625rem;
  color: var(--muted);
  max-width: 65ch;
  margin: 0;
  line-height: 1.75;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-3);
  margin-bottom: var(--space-3);
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--muted);
  font-size: var(--text-xs);
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.03em;
}

.badge-row .meta-pill {
  margin-bottom: 0;
}

.meta-pill--accent {
  border-color: var(--line-strong);
  background: var(--surface-raised);
  color: var(--muted);
}

.page-header-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

/* Project Root Animated Hero (shares hero-video.js with home banner) */
.project-hero {
  position: relative;
  background: #0c1015;
  border-bottom: 1px solid var(--line);
}

.project-hero + .section {
  border-top: 0;
  padding-top: clamp(32px, 4vw, 44px);
}

.project-hero-stage {
  position: relative;
  display: grid;
  align-items: center;
  min-height: clamp(440px, 46vw, 560px);
  padding-block: var(--space-10) var(--space-16);
  isolation: isolate;
  overflow: clip;
}

.project-hero-world {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.project-hero .journey-picture,
.project-hero-poster,
.project-hero .hero-background-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
}

.project-hero .hero-background-video {
  opacity: 0;
  transition: opacity 0.25s ease;
}

.project-hero .is-video-ready .hero-background-video {
  opacity: 1;
}

.project-hero .is-video-ready .journey-picture {
  opacity: 0;
}

.project-hero-vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(12, 16, 21, 0.94) 0%, rgba(12, 16, 21, 0.84) 36%, rgba(12, 16, 21, 0.42) 66%, rgba(12, 16, 21, 0.22) 100%),
    linear-gradient(180deg, rgba(12, 16, 21, 0.45) 0%, rgba(12, 16, 21, 0.12) 26%, rgba(12, 16, 21, 0.16) 72%, rgba(12, 16, 21, 0.84) 100%);
}

.project-hero-content {
  position: relative;
  z-index: 2;
}

.project-hero-content h1 {
  font-size: clamp(2rem, 3.8vw, 3.125rem);
  color: #f5f7fa;
  max-width: 680px;
  margin-bottom: var(--space-3);
}

.project-hero-content .page-lead {
  color: #d6e0ec;
  max-width: 54ch;
}

.project-hero-content .breadcrumb {
  color: #bcc8d8;
}

.project-hero-content .breadcrumb [aria-current="page"] {
  color: #f5f7fa;
}

.project-hero-content .breadcrumb a:hover {
  color: #ffffff;
}

.project-hero-content .meta-pill {
  background: rgba(11, 14, 20, 0.78);
  border-color: rgba(203, 213, 225, 0.24);
  color: #cbd5e1;
}

.project-hero-content .meta-pill--accent {
  background: rgba(11, 14, 20, 0.78);
  border-color: rgba(203, 213, 225, 0.28);
  color: #f8fafc;
}

.project-hero-content .button-primary {
  background: #00d4eb;
  border-color: #00d4eb;
  color: #041318;
  box-shadow: 0 8px 24px rgba(0, 212, 235, 0.24);
}

.project-hero-content .button-primary:hover {
  background: #3ce6f9;
  border-color: #3ce6f9;
}

.project-hero-content .button-small {
  background: rgba(13, 16, 23, 0.76);
  border-color: rgba(184, 201, 226, 0.36);
  color: #f5f7fa;
}

.project-hero-content .button-small:hover {
  background: rgba(24, 30, 41, 0.92);
  border-color: rgba(184, 201, 226, 0.58);
}

.project-hero-bottom {
  position: absolute;
  bottom: var(--space-4);
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.project-hero-scene {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #bcc8d8;
  text-shadow: 0 1px 10px rgba(12, 16, 21, 0.9);
}

.project-hero .motion-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-xs);
  font-weight: 500;
  border: 1px solid rgba(184, 201, 226, 0.32);
  border-radius: var(--radius-element);
  background: rgba(12, 16, 21, 0.86);
  color: #e2eaf4;
  white-space: nowrap;
}

.project-hero .motion-toggle:hover {
  color: #ffffff;
  border-color: rgba(184, 201, 226, 0.56);
  background: rgba(20, 27, 36, 0.94);
}

.project-hero .motion-toggle[hidden] {
  display: none;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 0.8125rem;
  color: var(--quiet);
  margin-bottom: 20px;
}

.breadcrumb time {
  font-variant-numeric: tabular-nums;
}

.breadcrumb a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
}

.breadcrumb a:hover {
  color: var(--text);
  text-decoration: underline;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 48px;
  padding-bottom: 64px;
}

.detail-main {
  min-width: 0;
}

.detail-cover {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
  margin: 0 0 32px;
}

.detail-cover img {
  display: block;
  width: 100%;
  height: auto;
}

.detail-cover figcaption {
  padding: 10px 16px;
  font-size: var(--text-xs);
  color: var(--quiet);
  background: var(--surface);
  border-top: 1px solid var(--line);
}

.detail-aside {
  align-self: start;
  padding: var(--space-6);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-low);
  position: sticky;
  top: 96px;
  z-index: var(--z-sticky);
}

.detail-aside h2,
.detail-aside h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-4);
}

.detail-aside p {
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: 1.65;
}

.aside-actions {
  display: grid;
  gap: var(--space-3);
  margin-top: var(--space-5);
}

.detail-aside .button {
  width: 100%;
  margin-top: 0;
}

.aside-contact-copy {
  margin: var(--space-4) 0;
}

.aside-back {
  margin-top: var(--space-4);
}

.project-highlights {
  margin-top: var(--space-8);
  padding: var(--space-6);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
}

.project-highlights h2 {
  font-size: var(--text-lg);
  margin: 0 0 var(--space-4);
  color: var(--text);
}

.highlight-list {
  margin: 0;
  padding-left: var(--space-5);
  display: grid;
  gap: var(--space-3);
  color: var(--muted);
  font-size: var(--text-base);
  line-height: 1.65;
}

.highlight-list li::marker {
  color: var(--quiet);
}

.meta-list {
  margin: 0 0 8px;
  padding: 0;
  list-style: none;
}

.meta-list li,
.meta-list > div {
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
  font-size: var(--text-sm);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 15px;
}

.meta-list dt {
  color: var(--quiet);
  font-size: var(--text-sm);
}

.meta-list dd {
  margin: 0;
  color: var(--text);
  font-weight: 500;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.meta-list li:last-child,
.meta-list > div:last-child {
  border-bottom: 0;
}

/* Long-form Prose */
.prose {
  max-width: 65ch;
  font-size: var(--text-base);
  line-height: 1.75;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.prose h2 {
  font-size: clamp(1.375rem, 2.2vw, 1.75rem);
  margin-block: 36px 14px;
  color: var(--text);
}

.prose h3 {
  font-size: 1.25rem;
  color: var(--text);
  margin-block: 28px 12px;
}

.prose p {
  margin-bottom: 20px;
}

.prose ul,
.prose ol {
  padding-left: 22px;
  margin-block: 20px;
}

.prose li {
  margin-block: 8px;
}

.prose a {
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 4px;
  color: var(--text);
}

.prose a:hover {
  color: var(--text);
  text-decoration-color: var(--text);
}

.prose a.button {
  text-decoration: none;
}

.prose a.button-primary {
  color: var(--cyan-ink);
}

.prose img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 24px 0;
}

.prose figure {
  width: 100%;
  margin: 28px 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  overflow: hidden;
}

.prose figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0;
  margin: 0;
}

.prose figcaption {
  padding: 10px 16px;
  font-size: var(--text-xs);
  line-height: 1.5;
  color: var(--quiet);
  border-top: 1px solid var(--line);
}

.prose blockquote {
  margin: 24px 0;
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-style: italic;
}

.prose blockquote p:last-child {
  margin-bottom: 0;
}

.prose pre {
  overflow-x: auto;
  padding: 20px;
  background: var(--color-bg-code);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.prose code {
  font-family: var(--font-mono);
  font-size: 0.9em;
}

.post-meta-block {
  margin-top: 36px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  font-size: var(--text-sm);
  color: var(--muted);
  display: grid;
  gap: 20px;
}

.post-meta-line {
  margin-bottom: 8px;
}

.post-meta-group {
  display: grid;
  gap: 10px;
}

.post-meta-heading {
  margin: 0;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--quiet);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tag-chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface-raised);
  color: var(--text);
  font-size: var(--text-xs);
  font-weight: 500;
}

.source-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 0;
  padding-left: 18px;
  color: var(--quiet);
}

.source-list a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.source-list a:hover {
  color: var(--color-text-link);
}

.article-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 28px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

/* Blog Index & Post Cards With Covers */
.blog-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.posts-grid {
  align-items: stretch;
}

.posts-grid--pair {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.posts-grid--single {
  grid-template-columns: minmax(0, 1fr);
}

.post-card--with-cover {
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  transition: border-color 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}

.post-card--with-cover:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.post-card-media {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--surface-inset);
  border-bottom: 1px solid var(--line);
}

.post-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s var(--ease-out);
}

.post-card--with-cover:hover .post-card-media img {
  transform: scale(1.03);
}

.post-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 22px 24px 24px;
}

.posts-grid--single .post-card--with-cover {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: stretch;
}

.posts-grid--single .post-card-media {
  aspect-ratio: 16 / 10;
  height: 100%;
  border-bottom: 0;
  border-right: 1px solid var(--line);
}

.posts-grid--single .post-card-body {
  padding: clamp(24px, 3vw, 36px);
}

.posts-grid--single .post-card h3 {
  font-size: clamp(1.375rem, 2.2vw, 1.75rem);
}

/* Editorial Post Layout */
.post-byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-top: 20px;
  font-size: var(--text-sm);
  color: var(--quiet);
  font-variant-numeric: tabular-nums;
}

.post-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: clamp(32px, 4vw, 52px);
  align-items: start;
}

.post-main {
  min-width: 0;
}

.post-cover {
  width: 100%;
  margin: 0 0 32px;
}

.post-prose {
  max-width: 100%;
  font-size: 1.0625rem;
  line-height: 1.75;
  text-align: left;
}

.post-prose :is(p, li, blockquote, h2, h3, h4, figcaption, pre, code, th, td) {
  text-align: left;
}

.post-prose h2 {
  font-size: clamp(1.5rem, 2.4vw, 1.875rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.025em;
  color: var(--text);
  margin-block: var(--space-12) var(--space-4);
  padding-top: var(--space-6);
  border-top: 1px solid var(--line-strong);
}

.post-prose h2:target {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 8px;
}

.post-prose > h2:first-child {
  margin-top: var(--space-4);
  padding-top: 0;
  border-top: 0;
}

.post-prose h2 + figure {
  margin-top: var(--space-4);
}

.post-prose h2[id],
.post-prose h3[id] {
  scroll-margin-top: 96px;
}

.post-aside {
  display: grid;
  gap: var(--space-5);
  position: sticky;
  top: 96px;
  z-index: var(--z-sticky);
}

.post-aside-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.post-aside-title {
  margin: 0 0 14px;
  font-size: var(--text-base);
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--text);
}

.post-aside-copy {
  margin: 0 0 14px;
  font-size: var(--text-sm);
  line-height: 1.6;
  color: var(--muted);
}

.post-toc ol {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 2px;
  color: var(--quiet);
  font-size: var(--text-sm);
}

.post-toc a {
  display: block;
  padding: 6px 0;
  line-height: 1.45;
  color: var(--muted);
  transition: color 0.16s var(--ease-out);
}

.post-toc a:hover {
  color: var(--text);
}

.post-aside-actions {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.post-aside-actions .button {
  width: 100%;
}

/* Pagination */
.pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
  margin-block: 36px 8px;
  font-variant-numeric: tabular-nums;
}

.pagination a,
.pagination span {
  display: grid;
  place-items: center;
  min-width: 44px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  font-weight: 500;
}

.pagination a:hover {
  border-color: var(--line-strong);
  background: var(--surface);
}

.pagination [aria-current="page"],
.pagination .active {
  color: var(--bg);
  background: var(--text);
  border-color: var(--text);
  font-weight: 700;
}

.notice {
  padding: 16px 20px;
  border: 1px solid var(--line-strong);
  background: var(--surface-raised);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: var(--text-sm);
  margin-block: 20px;
}

/* Error Page */
.error-page {
  text-align: center;
  padding-block: 80px 96px;
  max-width: 650px;
  border-top: 0;
}

.error-code {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--quiet);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.error-page h1 {
  margin-inline: auto;
}

.error-page .page-lead {
  margin-inline: auto;
  margin-bottom: 28px;
}

.error-page .hero-actions {
  justify-content: center;
}

/* Tablet & Small Desktop */
@media (max-width: 1024px) {
  .container {
    width: min(1200px, calc(100% - 48px));
  }

  .project-grid,
  .news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .blog-home-grid,
  .about-pillars {
    grid-template-columns: minmax(0, 1fr);
  }

  .founder-card {
    grid-template-columns: minmax(0, 1fr);
    padding: var(--space-5);
    gap: var(--space-4);
  }

  .founder-avatar {
    max-width: 140px;
  }

  .founder-mini-links {
    width: 100%;
  }

  .detail-layout {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 32px;
  }

  .post-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .post-aside {
    position: static;
  }

  .posts-grid--single {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Mobile */
@media (max-width: 680px) {
  html {
    scroll-padding-top: 84px;
  }

  .container {
    width: calc(100% - 36px);
  }

  .site-header {
    min-height: 68px;
  }

  .header-inner {
    min-height: 68px;
    gap: var(--space-3);
    flex-wrap: wrap;
  }

  .brand {
    order: 1;
    margin-right: auto;
  }

  .brand img {
    width: 132px;
    height: 28px;
  }

  .header-actions {
    order: 2;
  }

  .theme-toggle {
    min-width: 44px;
    min-height: 44px;
    padding: 0;
  }

  .theme-toggle-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .js .menu-toggle {
    display: inline-flex;
  }

  .js .main-nav {
    display: none;
  }

  .js .main-nav.is-open {
    display: flex;
  }

  .main-nav {
    order: 3;
    flex-basis: 100%;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 8px 0 16px;
    border-top: 1px solid var(--line);
  }

  .nav-link {
    width: 100%;
    padding: 10px 12px;
    font-size: var(--text-base);
  }

  .nav-link[aria-current="page"]::after,
  .nav-link.is-active::after {
    left: 12px;
    right: auto;
    width: 24px;
    bottom: 6px;
  }

  .section {
    padding-block: 36px;
  }

  .section-heading {
    display: block;
    margin-bottom: 22px;
  }

  .section-heading h2 {
    margin-bottom: 8px;
  }

  .section-heading .text-link {
    margin-top: 8px;
  }

  .project-grid,
  .news-grid,
  .blog-home-grid,
  .posts-grid--pair,
  .posts-grid--single .post-card--with-cover {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .posts-grid--single .post-card-media {
    aspect-ratio: 16 / 9;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .post-prose {
    font-size: var(--text-base);
  }

  .blog-index-card {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .project-visual {
    aspect-ratio: 1.78;
  }

  .project-body {
    padding: 20px;
  }

  .project-actions .button-small {
    min-height: 44px;
  }

  .project-actions .text-link {
    min-height: 44px;
  }

  .about-strip {
    flex-direction: column;
    align-items: flex-start;
    padding: var(--space-6);
    gap: var(--space-5);
  }

  .about-pillars {
    grid-template-columns: minmax(0, 1fr);
  }

  .founder-card {
    grid-template-columns: minmax(0, 1fr);
    padding: var(--space-5);
    gap: var(--space-4);
  }

  .founder-avatar {
    max-width: 140px;
  }

  .founder-mini-links {
    width: 100%;
  }

  .about-mark {
    width: 60px;
    height: 60px;
    border-radius: 14px;
  }

  .about-mark img {
    max-width: 38px;
    max-height: 38px;
  }

  .detail-layout {
    display: block;
    padding-bottom: 44px;
  }

  .detail-aside {
    position: static;
    margin-top: 32px;
    max-width: 100%;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .footer-inner > div {
    gap: 12px 18px;
  }

  .footer-inner a {
    min-height: 44px;
  }

  .project-hero-stage {
    min-height: 440px;
    padding-block: var(--space-8) var(--space-16);
  }

  .project-hero-vignette {
    background: linear-gradient(
      180deg,
      rgba(12, 16, 21, 0.72) 0%,
      rgba(12, 16, 21, 0.84) 50%,
      rgba(12, 16, 21, 0.95) 100%
    );
  }

  .project-hero-bottom {
    bottom: var(--space-3);
  }

  .project-hero-scene {
    display: none;
  }

  .project-hero .motion-toggle {
    margin-left: auto;
    min-height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .project-hero .hero-background-video {
    display: none;
  }

  .project-hero .journey-picture {
    opacity: 1 !important;
  }

  .project-card,
  .project-visual img,
  .post-card--with-cover,
  .post-card-media img,
  .button,
  .nav-link,
  .text-link,
  .post-toc a,
  .blog-index-card {
    transition: none;
  }

  .project-card:hover,
  .project-card:hover .project-visual img,
  .post-card--with-cover:hover,
  .post-card--with-cover:hover .post-card-media img,
  .button-primary:hover {
    transform: none;
  }

  .motion-toggle {
    display: none;
  }
}

@media print {
  body {
    background: #ffffff;
    color: #111111;
  }

  .site-header,
  .site-footer,
  .motion-toggle,
  .hero-actions,
  .page-header-actions,
  .project-hero-world,
  .project-hero-vignette,
  .project-hero-bottom,
  .menu-toggle {
    display: none;
  }

  .project-hero {
    background: #ffffff;
  }

  .project-hero-stage {
    min-height: 0;
    padding-block: 24px;
  }

  .project-hero-content h1,
  .project-hero-content .page-lead,
  .project-hero-content .breadcrumb {
    color: #111111;
  }

  .container {
    width: 100%;
  }

  .project-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .project-card {
    break-inside: avoid;
    background: #ffffff;
    color: #111111;
  }

  .project-summary,
  .page-lead,
  .prose {
    color: #333333;
  }

  .detail-layout,
  .post-layout {
    display: block;
  }

  .detail-aside,
  .post-aside {
    position: static;
  }

  .button {
    border: 1px solid #999999;
    color: #111111;
    background: #ffffff;
  }
}
