@font-face {
  font-family: "DM Sans";
  src: url("/assets/fonts/DMSans-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "DM Sans";
  src: url("/assets/fonts/DMSans-Italic.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "DM Sans";
  src: url("/assets/fonts/DMSans-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "DM Sans";
  src: url("/assets/fonts/DMSans-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Lack;
  src: url("/assets/fonts/Lack-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --bg: #f7f7f8;
  --bg-elevated: #ffffff;
  --ink: #0b0b0b;
  --muted: #6b6b73;
  --muted-2: #52525b;
  --rule: rgba(11, 11, 11, 0.1);
  --rule-strong: rgba(11, 11, 11, 0.18);
  --soft: #ececef;
  --hover: #f0f0f2;
  --maxw: 1128px;
  --nav-h: 70px;
  --font-sans: "DM Sans", system-ui, sans-serif;
  --font-display: Lack, "DM Sans", system-ui, sans-serif;

  /* Liquid Glass materials */
  --glass-dark: rgba(14, 14, 16, 0.52);
  --glass-dark-strong: rgba(14, 14, 16, 0.78);
  --glass-light: rgba(255, 255, 255, 0.58);
  --glass-light-strong: rgba(255, 255, 255, 0.78);
  --glass-blur: 22px;
  --glass-saturate: 1.55;
  --glass-edge: rgba(255, 255, 255, 0.72);
  --glass-edge-soft: rgba(255, 255, 255, 0.26);
  --glass-rim: inset 0 1px 0 rgba(255, 255, 255, 0.65);
  --glass-rim-strong: inset 0 1px 0 rgba(255, 255, 255, 0.88);
  --glass-outline: 0 0 0 1px rgba(11, 11, 11, 0.06);
  --radius-control: 12px;
  --radius-panel: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent;
}

a {
  color: var(--ink);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

a:hover {
  opacity: 0.65;
}

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

strong {
  font-weight: 700;
}

em {
  font-style: italic;
}

*:focus:not(:focus-visible) {
  outline: none;
}

*:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

/* ---------- Shell / nav ---------- */

.page-shell {
  min-height: 100vh;
  background:
    radial-gradient(ellipse 52% 38% at 8% 6%, rgba(165, 180, 205, 0.28), transparent 62%),
    radial-gradient(ellipse 70% 48% at 92% -8%, rgba(120, 145, 190, 0.22), transparent 58%),
    radial-gradient(ellipse 48% 32% at 48% 52%, rgba(190, 198, 212, 0.16), transparent 72%),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 36%, #eef0f4 100%);
}

.page-topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: #0e0e10;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  color: #ffffff;
}

.page-topbar-inner,
.workspace-link,
.breadcrumb {
  width: min(var(--maxw), calc(100vw - 48px));
  margin: 0 auto;
}

.page-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 24px;
}

.brand-cluster {
  display: flex;
  align-items: center;
  gap: 28px;
  min-width: 0;
}

.brand,
.workspace-link,
.breadcrumb-home {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #ffffff;
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.brand:hover,
.workspace-link:hover,
.breadcrumb-home:hover {
  opacity: 0.7;
}

.brand-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand-links a {
  color: rgba(255, 255, 255, 0.78);
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.01em;
  line-height: 1;
  white-space: nowrap;
}

.brand-links a:hover {
  color: #ffffff;
}

.brand img,
.workspace-link img,
.breadcrumb-home img {
  width: auto;
  height: 28px;
  filter: invert(1);
}

.brand-mark {
  width: 48px;
  height: 42px;
  flex: 0 0 auto;
}

.brand .brand-mark {
  height: 42px;
}

.brand-word {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  color: #ffffff;
  font-size: 16px;
  letter-spacing: 0.02em;
  line-height: 1;
}

.designs-link {
  display: none;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.breadcrumb-separator {
  color: rgba(255, 255, 255, 0.35);
  opacity: 1;
}

.breadcrumb-current {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.62);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 16px;
}

/* ---------- Content ---------- */

.page-content {
  width: min(var(--maxw), calc(100vw - 48px));
  margin: 0 auto;
  padding: 48px 0 120px;
}

.home-hero {
  padding: 48px 0 72px;
}

.home-kicker {
  margin: 0 0 28px;
  color: var(--muted-2);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-hero h1 {
  max-width: 17ch;
  margin: 0 0 28px;
  font-family: var(--font-display);
  font-size: clamp(44px, 7vw, 72px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.home-lead {
  max-width: 38em;
  margin: 0 0 36px;
  color: var(--muted-2);
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.5;
}

.type-target.is-typing::after {
  content: "";
  display: inline-block;
  width: 0.06em;
  height: 0.85em;
  margin-left: 0.06em;
  background: currentColor;
  vertical-align: -0.04em;
  animation: caret-blink 700ms step-end infinite;
}

.home-reveal {
  opacity: 1;
  transition: opacity 280ms ease;
}

.home-hero.is-typing-sequence:not(.is-revealed) .home-reveal {
  opacity: 0;
}

.home-hero.is-revealed .home-reveal {
  opacity: 1;
}

.home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid rgba(11, 11, 11, 0.1);
  border-radius: var(--radius-control);
  background: var(--glass-light);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  box-shadow:
    var(--glass-rim-strong),
    var(--glass-outline),
    0 1px 2px rgba(11, 11, 11, 0.04);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  transition:
    background 200ms ease,
    border-color 200ms ease,
    box-shadow 200ms ease,
    color 200ms ease,
    opacity 200ms ease;
}

.btn:hover {
  opacity: 1;
  background: var(--glass-light-strong);
  border-color: rgba(11, 11, 11, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 0 0 1px rgba(255, 255, 255, 0.35),
    var(--glass-outline),
    0 10px 28px rgba(11, 11, 11, 0.07);
  color: var(--ink);
}

.btn-primary {
  background: var(--glass-dark-strong);
  border-color: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  backdrop-filter: blur(20px) saturate(1.5);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 6px 20px rgba(11, 11, 11, 0.18);
}

.btn-primary:hover {
  opacity: 1;
  background: rgba(14, 14, 16, 0.9);
  border-color: rgba(255, 255, 255, 0.22);
  color: #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 12px 28px rgba(11, 11, 11, 0.22);
}

.home-note {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.section {
  padding: 72px 0;
  border-top: 1px solid var(--rule);
  animation: rise 800ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.section:nth-of-type(2) { animation-delay: 80ms; }
.section:nth-of-type(3) { animation-delay: 140ms; }
.section:nth-of-type(4) { animation-delay: 200ms; }
.section:nth-of-type(5) { animation-delay: 260ms; }

.section-label {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.section h2 {
  margin: 0 0 28px;
  font-family: var(--font-display);
  font-size: clamp(32px, 4.5vw, 44px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.initiative-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.initiative {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 280px;
  padding: 28px;
  border: 1px solid var(--glass-edge);
  border-radius: var(--radius-panel);
  background: var(--glass-light);
  -webkit-backdrop-filter: blur(20px) saturate(1.35);
  backdrop-filter: blur(20px) saturate(1.35);
  box-shadow:
    var(--glass-rim-strong),
    var(--glass-outline),
    0 1px 0 rgba(11, 11, 11, 0.04),
    0 10px 32px rgba(11, 11, 11, 0.04);
  text-decoration: none;
  transition:
    background 200ms ease,
    border-color 200ms ease,
    box-shadow 200ms ease;
}

.initiative-stamp {
  position: absolute;
  top: 22px;
  right: 18px;
  z-index: 1;
  padding: 7px 10px;
  border: 2px solid rgba(11, 11, 11, 0.55);
  border-radius: 3px;
  color: rgba(11, 11, 11, 0.62);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  transform: rotate(8deg);
  pointer-events: none;
  user-select: none;
}

.initiative:hover {
  opacity: 1;
  background: var(--glass-light-strong);
  border-color: rgba(255, 255, 255, 0.82);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 0 0 1px rgba(255, 255, 255, 0.25),
    var(--glass-outline),
    0 16px 40px rgba(11, 11, 11, 0.08);
}

.initiative-index {
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.initiative h3 {
  margin: 48px 0 12px;
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 400;
  line-height: 1.1;
}

.initiative p {
  margin: 0;
  color: var(--muted-2);
  font-size: 16px;
  line-height: 1.5;
}

.store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 15px;
}

.experiment-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.experiment {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 180px;
  padding: 24px;
  border: 1px solid var(--glass-edge);
  border-radius: var(--radius-panel);
  background: var(--glass-light);
  -webkit-backdrop-filter: blur(20px) saturate(1.35);
  backdrop-filter: blur(20px) saturate(1.35);
  box-shadow:
    var(--glass-rim),
    var(--glass-outline),
    0 1px 0 rgba(11, 11, 11, 0.04),
    0 8px 24px rgba(11, 11, 11, 0.03);
  text-decoration: none;
  transition:
    background 200ms ease,
    border-color 200ms ease,
    box-shadow 200ms ease;
}

.experiment:hover {
  opacity: 1;
  background: var(--glass-light-strong);
  border-color: rgba(255, 255, 255, 0.82);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 0 0 1px rgba(255, 255, 255, 0.25),
    var(--glass-outline),
    0 12px 32px rgba(11, 11, 11, 0.07);
}

.experiment-index {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.experiment h3 {
  margin: 28px 0 10px;
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 400;
  line-height: 1.1;
}

.experiment p {
  margin: 0;
  color: var(--muted-2);
  font-size: 15px;
  line-height: 1.5;
}

.store-row a {
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

.press-list {
  display: grid;
  gap: 12px;
}

.beliefs {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: belief;
}

.beliefs li {
  counter-increment: belief;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  padding: 28px 0;
  border-bottom: 1px solid var(--rule);
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.beliefs li:first-child {
  border-top: 1px solid var(--rule);
}

.beliefs li::before {
  content: counter(belief, decimal-leading-zero);
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  padding-top: 10px;
}

.split {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 40px;
}

.split p,
.split li {
  color: var(--muted-2);
}

.split ul {
  margin: 0;
  padding-left: 1.2rem;
}

.split li + li {
  margin-top: 0.45rem;
}

.values {
  margin: 0 0 28px;
  color: var(--ink);
  font-size: 18px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.footer-grid.stack {
  grid-template-columns: 1fr;
}

.quick-links {
  margin-top: 20px;
  display: grid;
  gap: 10px;
  max-width: 420px;
}

.group-label {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 15px;
}

.group-label.spaced {
  margin-top: 18px;
}

.connect-block {
  margin-top: 12px;
}

.footer-col h3 {
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 700;
}

.footer-col hr {
  margin: 0 0 20px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: var(--muted-2);
}

.site-footer {
  width: min(var(--maxw), calc(100vw - 48px));
  margin: 0 auto;
  padding: 0 0 80px;
  color: var(--muted);
  font-size: 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px 32px;
}

.site-footer p {
  margin: 0;
}

.site-footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.site-footer-nav a {
  color: var(--muted-2);
  font-size: 14px;
}

.page-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 14px;
}

.page-breadcrumb a {
  color: var(--muted-2);
}

.page-breadcrumb .breadcrumb-separator {
  color: var(--muted);
}

/* ---------- Shared typography for inner pages ---------- */

.page-icon-wrap {
  margin-bottom: 28px;
}

.page-icon {
  width: 72px;
  height: 72px;
  border-radius: 16px;
}

.page-icon-emoji {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--soft);
  border: 1px solid var(--rule);
  font-size: 36px;
}

h1,
h2,
h3,
.page-title {
  color: var(--ink);
  font-weight: 400;
}

h1,
.page-title,
.redirect-card h1 {
  margin: 0 0 20px;
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 60px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h2 {
  margin: 48px 0 16px;
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h3 {
  margin: 28px 0 12px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
}

p,
ul,
ol {
  margin: 0 0 16px;
}

ul,
ol {
  padding-left: 1.35rem;
}

li + li {
  margin-top: 0.35rem;
}

hr {
  margin: 28px 0;
  border: 0;
  border-top: 1px solid var(--rule);
}

.page-lead {
  max-width: 40em;
  margin: 0 0 16px;
  color: var(--muted-2);
  font-size: 21px;
}

.page-subtle,
.page-footer {
  color: var(--muted);
}

.downloads-note {
  font-size: 21px;
  line-height: 1.42;
}

.callout {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  align-items: start;
  margin: 18px 0 8px;
  padding: 16px;
  border-radius: var(--radius-control);
  border: 1px solid var(--glass-edge);
  background: rgba(255, 255, 255, 0.42);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  backdrop-filter: blur(14px) saturate(1.3);
  box-shadow: var(--glass-rim), var(--glass-outline);
}

.callout-icon {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(11, 11, 11, 0.06);
  color: var(--muted);
  font-size: 14px;
}

.callout-body strong {
  display: block;
  margin-bottom: 4px;
}

.callout-body p {
  margin: 0;
  color: var(--muted-2);
}

.columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  margin: 12px 0 6px;
}

.column {
  min-width: 0;
}

.page-card {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  margin-bottom: 10px;
  padding: 12px 14px;
  border: 1px solid var(--glass-edge);
  border-radius: var(--radius-control);
  color: var(--ink);
  background: var(--glass-light);
  -webkit-backdrop-filter: blur(16px) saturate(1.35);
  backdrop-filter: blur(16px) saturate(1.35);
  box-shadow:
    var(--glass-rim),
    var(--glass-outline),
    0 1px 2px rgba(11, 11, 11, 0.03);
  text-decoration: none;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.page-card:hover {
  opacity: 1;
  background: var(--glass-light-strong);
  border-color: rgba(255, 255, 255, 0.8);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    var(--glass-outline),
    0 8px 24px rgba(11, 11, 11, 0.06);
}

.page-card-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.page-card-icon-emoji {
  display: inline-grid;
  place-items: center;
  font-size: 16px;
  line-height: 1;
}

.page-card-icon-image {
  border-radius: 4px;
  object-fit: cover;
}

.page-card-icon-fallback {
  border-radius: 4px;
  background: rgba(11, 11, 11, 0.06);
}

.page-card-title {
  min-width: 0;
}

.bookmark-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 16px;
  align-items: stretch;
  margin-bottom: 12px;
  padding: 16px;
  border: 1px solid var(--glass-edge);
  border-radius: var(--radius-panel);
  background: var(--glass-light);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  backdrop-filter: blur(18px) saturate(1.3);
  box-shadow:
    var(--glass-rim),
    var(--glass-outline),
    0 8px 28px rgba(11, 11, 11, 0.04);
  color: var(--ink);
  text-decoration: none;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.bookmark-card:hover {
  opacity: 1;
  background: var(--glass-light-strong);
  border-color: rgba(255, 255, 255, 0.8);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    var(--glass-outline),
    0 14px 36px rgba(11, 11, 11, 0.07);
}

.bookmark-cover {
  grid-column: 2;
  grid-row: 1;
  width: 100%;
  height: 110px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--soft);
}

.bookmark-body {
  grid-column: 1;
  min-width: 0;
}

.bookmark-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.2;
}

.bookmark-icon {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  flex: 0 0 auto;
}

.bookmark-source {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bookmark-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.35;
}

.bookmark-card span {
  display: block;
  color: var(--muted);
}

.notion-image {
  width: 100%;
  margin: 22px 0;
}

.notion-image img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid var(--rule);
  background: var(--soft);
}

.redirect-page {
  min-height: 100vh;
}

.redirect-card {
  width: min(var(--maxw), calc(100vw - 48px));
  margin: 0 auto;
  padding: 88px 0 80px;
}

.redirect-card p {
  max-width: 40em;
  color: var(--muted);
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid rgba(11, 11, 11, 0.1);
  border-radius: var(--radius-control);
  background: var(--glass-light);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  backdrop-filter: blur(14px) saturate(1.3);
  box-shadow: var(--glass-rim), var(--glass-outline);
  color: var(--ink);
  text-decoration: none;
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.button:hover {
  opacity: 1;
  background: var(--glass-light-strong);
  border-color: rgba(11, 11, 11, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    var(--glass-outline),
    0 8px 20px rgba(11, 11, 11, 0.06);
}

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

@keyframes caret-blink {
  50% {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .section {
    animation: none;
  }

  .type-target.is-typing::after {
    content: none;
    animation: none;
  }

  .home-reveal {
    opacity: 1;
    transition: none;
  }

  .page-topbar,
  .btn,
  .btn-primary,
  .initiative,
  .experiment,
  .page-card,
  .bookmark-card,
  .button,
  .callout {
    transition: none;
  }
}

/* Opaque fallbacks when backdrop-filter is unavailable */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .btn,
  .button,
  .initiative,
  .experiment,
  .page-card,
  .bookmark-card,
  .callout {
    background: rgba(255, 255, 255, 0.92);
  }

  .btn-primary {
    background: rgba(14, 14, 16, 0.94);
  }
}

@media (max-width: 860px) {
  :root {
    --nav-h: 56px;
  }

  .page-topbar {
    position: static;
  }

  .page-topbar-inner,
  .workspace-link,
  .breadcrumb,
  .page-content,
  .site-footer,
  .redirect-card {
    width: min(var(--maxw), calc(100vw - 32px));
  }

  .nav-links {
    gap: 18px;
  }

  .nav-links a {
    font-size: 14px;
  }

  .brand-mark,
  .brand .brand-mark {
    width: 32px;
    height: 28px;
  }

  .brand-word {
    font-size: 18px;
  }

  .brand-cluster {
    gap: 16px;
  }

  .brand-links {
    gap: 14px;
  }

  .brand-links a {
    font-size: 13px;
  }

  .page-content {
    padding-top: 28px;
  }

  .home-hero {
    padding-top: 20px;
    padding-bottom: 48px;
  }

  .initiative-grid,
  .experiment-grid,
  .split,
  .footer-grid,
  .columns {
    grid-template-columns: 1fr;
  }

  .initiative,
  .experiment {
    min-height: 0;
  }

  .initiative-stamp {
    top: 18px;
    right: 14px;
    padding: 6px 9px;
    font-size: 11px;
  }

  .initiative h3 {
    margin-top: 28px;
  }

  .experiment h3 {
    margin-top: 20px;
  }

  .beliefs li {
    grid-template-columns: 40px 1fr;
    font-size: 22px;
  }

  .bookmark-card {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .bookmark-body,
  .bookmark-cover {
    grid-column: 1;
  }

  .bookmark-cover {
    grid-row: 1;
    height: 180px;
  }

  .bookmark-body {
    grid-row: 2;
  }
}

@media (max-width: 520px) {
  :root {
    --nav-h: 48px;
  }

  .nav-links a:nth-child(n + 3) {
    display: none;
  }

  .brand-cluster {
    gap: 12px;
  }

  .brand-links {
    gap: 10px;
  }

  .brand-links a {
    font-size: 11px;
  }

  .brand-word {
    display: none;
  }

  .brand-mark,
  .brand .brand-mark {
    width: 28px;
    height: 24px;
  }
}
