/* ============================================================
   ideaSquared marketing site -component styles
   Ported from the design-bundle React prototype to vanilla CSS.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg-body); }
img { display: block; max-width: 100%; }

/* ---------- Layout primitives ---------- */
.container { max-width: 1192px; margin-inline: auto; padding-inline: 24px; }

.eyebrow {
  font-family: var(--font-sans);
  font-size: var(--t-eyebrow);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-muted);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: currentColor;
}
.eyebrow.signal { color: var(--i2-signal-500); }

/* ---------- Buttons ---------- */
.btn {
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: -0.005em;
  border-radius: 999px;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background var(--dur-base) var(--ease-out),
              color var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out),
              transform var(--dur-base) var(--ease-out);
}
.btn-md { font-size: 14px; padding: 11px 22px; }
.btn-lg { font-size: 16px; padding: 14px 28px; }
.btn-sm { font-size: 12px; padding: 7px 14px; }

.btn-primary { background: var(--i2-signal-500); color: var(--i2-navy-900); }
.btn-primary:hover { background: var(--i2-signal-600); color: #fff; transform: translateY(-1px); }

.btn-secondary { background: var(--i2-navy-900); color: #fff; }
.btn-secondary:hover { background: var(--i2-navy-800); transform: translateY(-1px); }

.btn-ghost { background: transparent; color: var(--fg); border-color: var(--line-strong); }
.btn-ghost:hover { background: #fff; border-color: var(--i2-navy-900); }

.btn-ghost-dark { background: transparent; color: #fff; border-color: rgba(255,255,255,0.2); }
.btn-ghost-dark:hover { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.6); }

.btn:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
}

/* ---------- Focus rings (WCAG 2.4.7) ---------- */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
}
.project-card:focus-visible { outline-offset: 4px; }
.nav-links a:focus-visible { outline-offset: 2px; }
.on-dark a:focus-visible,
.hero a:focus-visible,
.quote a:focus-visible {
  outline-color: var(--i2-signal-400);
}

/* ---------- Skip link (WCAG 2.4.1) ---------- */
.skip-link {
  position: absolute;
  left: 16px;
  top: 16px;
  background: var(--i2-navy-900);
  color: #fff;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
  z-index: 100;
  transition: transform var(--dur-base) var(--ease-out);
}
.skip-link:focus { transform: translateY(0); color: #fff; }

/* ---------- Chips ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 1px solid;
  background: #fff;
  color: var(--fg);
  border-color: var(--line-strong);
}
.chip::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 999px;
  background: currentColor;
}
.chip.success { background: #e6f5f1; color: var(--i2-circuit-700); border-color: #b3e0d4; }
.chip.signal  { background: var(--i2-signal-50); color: var(--i2-signal-800); border-color: var(--i2-signal-200); }
.chip.equity  { background: #f1e8f7; color: #4d2c6c; border-color: #d8c3e6; }

/* ---------- Sticky nav ---------- */
.nav {
  position: sticky;
  top: 16px;
  z-index: 50;
  margin: 16px auto 0;
  max-width: 1240px;
  padding: 0 24px;
}
.nav-inner {
  background: rgba(247, 246, 242, 0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  border-radius: 999px;
  height: 60px;
  display: flex;
  align-items: center;
  padding: 0 12px 0 22px;
  gap: 14px;
  transition: background var(--dur-base) var(--ease-out);
}
.nav.is-scrolled .nav-inner { background: rgba(247, 246, 242, 0.85); }
.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--fg);
}
.nav-brand img { height: 30px; width: 30px; flex-shrink: 0; }
.brand-text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.018em;
  line-height: 1;
  color: inherit;
}
.brand-text em { font-style: italic; font-weight: 400; }
.nav-links { display: flex; gap: 4px; margin-left: 22px; flex: 1; }
.nav-links a {
  text-decoration: none;
  color: var(--fg);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 999px;
  transition: background 180ms;
}
.nav-links a:hover { background: rgba(8,24,42,0.05); }
.nav-links a.is-active { background: rgba(8,24,42,0.08); }
.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  margin: 32px auto 0;
  border-radius: 28px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 22% 18%, #1a3a5e 0%, #0f2238 40%, #08182a 75%, #04121f 100%);
  color: #fff;
  min-height: 560px;
  max-width: 1192px;
}
.hero::before {
  /* Squared-dots mark backdrop, dark-surface variant */
  content: "";
  position: absolute;
  top: -80px; right: -80px;
  width: 640px; height: 640px;
  background: url("../assets/logo-mark-on-dark.svg") no-repeat center / contain;
  opacity: 0.18;
  pointer-events: none;
}
.hero-circuit {
  position: absolute;
  inset: auto 0 0 0;
  width: 100%;
  opacity: 0.18;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  padding: 96px 72px 72px;
  max-width: 920px;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(56px, 7.6vw, 104px);
  letter-spacing: -0.025em;
  line-height: 0.97;
  margin: 20px 0 24px;
  color: #fff;
  font-variation-settings: "opsz" 144;
  text-wrap: balance;
}
.hero h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--i2-signal-400);
}
.hero-lede {
  font-size: 21px;
  line-height: 1.5;
  color: #d8d3c5;
  max-width: 620px;
  margin: 0 0 36px;
  text-wrap: pretty;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Stats strip ---------- */
.stats {
  margin: 96px auto 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}
.stat {
  padding: 32px 28px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.stat:last-child { border-right: none; }
.stat-n {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 56px;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--fg);
  font-feature-settings: "tnum" 1, "lnum" 1;
  font-variation-settings: "opsz" 144;
}
.stat-label { font-size: 14px; font-weight: 600; color: var(--fg); margin-top: 8px; }
.stat-note  { font-size: 13px; color: var(--fg-muted); }

/* ---------- Projects grid ---------- */
.projects { margin: 96px auto 0; }
.projects-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.projects-head .copy { max-width: 620px; }
.section-h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(36px, 5vw, 56px);
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 16px 0 12px;
  color: var(--fg);
  font-variation-settings: "opsz" 96;
}
.section-lede {
  font-size: 17px;
  line-height: 1.55;
  color: var(--fg-body);
  margin: 0;
}
.filter { display: flex; gap: 8px; flex-wrap: wrap; }
.filter button {
  background: #fff;
  color: var(--fg);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: all 180ms;
}
.filter button:hover { border-color: var(--i2-navy-900); }
.filter button.is-active {
  background: var(--i2-navy-900);
  color: #fff;
  border-color: var(--i2-navy-900);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.project-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 240px;
  text-decoration: none;
  color: inherit;
  transition: transform var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out);
}
.project-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.project-card.dark {
  background: var(--i2-navy-800);
  border-color: rgba(255,255,255,0.12);
  color: #fff;
  box-shadow: none;
}
.project-card.dark .project-name { color: #fff; }
.project-card.dark .project-meta,
.project-card.dark .project-stake-label { color: #c0c8d2; }
.project-card.dark .project-desc { color: #e6e1d3; }
.project-card.dark .project-foot { border-top-color: rgba(255,255,255,0.16); }
.project-card.dark .project-stake-n { color: #fff; }
.project-card.dark .chip { background: var(--i2-navy-700); border-color: rgba(255,255,255,0.18); color: #fff; }
.project-card.dark .chip.success { background: #11423a; color: #7fd4c5; border-color: #1a655a; }
.project-card.dark .chip.signal { background: #4a2d05; color: #fbd9a3; border-color: #7a4805; }

.project-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.project-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-muted);
}
.project-name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 28px;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 8px 0 0;
  font-variation-settings: "opsz" 96;
}
.project-desc {
  font-size: 15px;
  line-height: 1.55;
  color: var(--fg-body);
  margin: 0;
}
.project-foot {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.project-stake-label { font-size: 12px; color: var(--fg-muted); }
.project-stake-n {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--fg);
}

/* ---------- How it works ---------- */
.how {
  background: var(--bg-sunken);
  margin-top: 96px;
  padding: 96px 0;
}
.how-head { max-width: 620px; margin-bottom: 56px; }
.how-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 240px;
}
.step-top { display: flex; align-items: center; justify-content: space-between; }
.step-n {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--i2-signal-500);
  font-weight: 700;
  letter-spacing: 0.06em;
}
.step h4 {
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--fg);
}
.step p { font-size: 14px; line-height: 1.55; color: var(--fg-body); margin: 0; }

/* ---------- Pull quote ---------- */
.quote {
  margin: 96px auto 0;
  padding: 72px;
  border-radius: 28px;
  background: radial-gradient(ellipse at 80% 20%, #14304d 0%, #08182a 60%, #04121f 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
  max-width: 1192px;
}
.quote blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: #fff;
  margin: 20px 0 32px;
  max-width: 820px;
  text-wrap: balance;
  font-variation-settings: "opsz" 144;
}
.quote-attrib { display: flex; align-items: center; gap: 12px; }
.quote-avatar {
  width: 44px; height: 44px;
  border-radius: 999px;
  background: linear-gradient(135deg, #2fa692, #146557);
  flex-shrink: 0;
}
.quote-name { font-weight: 600; font-size: 14px; color: #fff; }
.quote-role { font-size: 13px; color: rgba(255,255,255,0.65); }

/* ---------- Footer ---------- */
.footer {
  max-width: 1192px;
  margin: 96px auto 0;
  padding: 48px 24px 40px;
  border-top: 1px solid var(--line);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 48px;
}
.footer-brand .brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.footer-brand img { height: 32px; width: 32px; flex-shrink: 0; }
.footer-brand .brand-text { font-size: 24px; }
.footer-brand p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--fg-body);
  margin-top: 14px;
  max-width: 320px;
}
.footer-col h5 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin: 0 0 16px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  font-size: 14px;
  color: var(--fg);
  text-decoration: none;
}
.footer-col a:hover { color: var(--i2-signal-600); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--fg-muted);
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom .links { display: flex; gap: 18px; }
.footer-bottom .links a { color: inherit; text-decoration: none; }
.footer-bottom .links a:hover { color: var(--i2-signal-600); }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--i2-navy-900);
  color: #fff;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-base) var(--ease-out),
              transform var(--dur-base) var(--ease-out);
}
.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, -8px);
}

/* ---------- Subpage hero (for stub pages) ---------- */
.subpage-hero {
  max-width: 1192px;
  margin: 64px auto 0;
  padding: 0 24px 32px;
}
.subpage-hero h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(48px, 7vw, 88px);
  letter-spacing: -0.025em;
  line-height: 1;
  margin: 16px 0 20px;
  color: var(--fg);
  font-variation-settings: "opsz" 144;
  text-wrap: balance;
}
.subpage-hero p {
  font-size: 19px;
  line-height: 1.55;
  color: var(--fg-body);
  max-width: 640px;
  margin: 0;
}
.subpage-body {
  max-width: 1192px;
  margin: 56px auto 0;
  padding: 0 24px;
}
.placeholder-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 48px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}
.placeholder-card h3 { margin: 0; }
.placeholder-card p { margin: 0; max-width: 580px; }

/* ---------- Venture detail page ---------- */
.venture-hero {
  position: relative;
  margin: 32px auto 0;
  border-radius: 28px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 22% 18%, #1a3a5e 0%, #0f2238 40%, #08182a 75%, #04121f 100%);
  color: #fff;
  max-width: 1192px;
}
.venture-hero-inner {
  position: relative;
  padding: 80px 72px 64px;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 48px;
  align-items: end;
}
.venture-hero h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(48px, 6.4vw, 88px);
  letter-spacing: -0.025em;
  line-height: 1;
  margin: 16px 0 20px;
  color: #fff;
  font-variation-settings: "opsz" 144;
  text-wrap: balance;
}
.venture-hero .lede {
  font-size: 19px;
  line-height: 1.5;
  color: #d8d3c5;
  margin: 0 0 28px;
  text-wrap: pretty;
  max-width: 560px;
}
.venture-hero .meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.venture-hero .cta { display: flex; gap: 12px; flex-wrap: wrap; }
.venture-hero-side {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 18px;
  padding: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 20px;
}
.venture-stat .label {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #c0c8d2;
  margin-bottom: 6px;
}
.venture-stat .value {
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 600;
  color: #fff;
  font-feature-settings: "tnum" 1, "lnum" 1;
}

.venture-section { max-width: 1192px; margin: 80px auto 0; padding: 0 24px; }
.venture-section .head { max-width: 760px; margin-bottom: 32px; }
.venture-section h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(32px, 4.4vw, 48px);
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 12px 0 12px;
  color: var(--fg);
  font-variation-settings: "opsz" 96;
}
.venture-section p { font-size: 16px; line-height: 1.6; color: var(--fg-body); }
.venture-section blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.3;
  color: var(--fg);
  border-left: 2px solid var(--i2-signal-500);
  padding-left: 20px;
  margin: 24px 0;
  max-width: 720px;
}
.venture-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.venture-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.venture-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.venture-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.venture-card h4 {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
  color: var(--fg);
}
.venture-card p { font-size: 14px; line-height: 1.55; margin: 0; color: var(--fg-body); }
.venture-card .num {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 40px;
  line-height: 1;
  color: var(--fg);
  font-variation-settings: "opsz" 96;
  font-feature-settings: "tnum" 1, "lnum" 1;
  margin-bottom: 4px;
}
.venture-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  font-size: 14px;
}
.venture-table caption,
.table-label {
  text-align: left;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-muted);
  font-weight: 600;
  margin: 0 0 12px;
}
.venture-table th,
.venture-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.venture-table th {
  background: var(--bg-sunken);
  font-size: 12px;
  font-weight: 600;
  color: var(--fg);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.venture-table tr:last-child td { border-bottom: none; }
.venture-table .num-col { font-family: var(--font-mono); font-feature-settings: "tnum" 1, "lnum" 1; }

.callout {
  background: var(--i2-signal-50);
  border: 1px solid var(--i2-signal-200);
  border-radius: 18px;
  padding: 24px 28px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  color: var(--i2-signal-800);
  margin: 24px 0;
}
.callout strong { color: var(--i2-ink-900); }
.callout .icon {
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1;
  color: var(--i2-signal-600);
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .venture-hero-inner { grid-template-columns: 1fr; padding: 64px 40px 48px; gap: 32px; }
  .venture-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .venture-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat { border-right: none; border-bottom: 1px solid var(--line); }
  .stat:nth-last-child(-n+2) { border-bottom: none; }
  .stat:nth-child(odd) { border-right: 1px solid var(--line); }
  .project-grid { grid-template-columns: repeat(2, 1fr); }
  .how-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-inner { padding: 72px 40px 56px; }
  .quote { padding: 56px 40px; }
}

@media (max-width: 640px) {
  .venture-hero-inner { padding: 48px 28px 40px; }
  .venture-hero-side { grid-template-columns: 1fr; }
  .venture-grid-4, .venture-grid-3, .venture-grid-2 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat, .stat:nth-child(odd) { border-right: none; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: none; }
  .project-grid { grid-template-columns: 1fr; }
  .how-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .hero { margin: 24px 16px 0; }
  .hero-inner { padding: 56px 28px 48px; }
  .nav { top: 8px; padding: 0 16px; }
  .nav-inner { padding: 0 8px 0 16px; gap: 8px; }
  .nav-links { display: none; gap: 0; flex-direction: column; position: absolute; top: 68px; left: 16px; right: 16px; background: var(--bg); border: 1px solid var(--line); border-radius: 18px; padding: 8px; box-shadow: var(--shadow-md); }
  .nav.is-open .nav-links { display: flex; }
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    border-radius: 999px;
    background: transparent;
    border: 1px solid var(--line-strong);
    cursor: pointer;
    margin-left: auto;
  }
  .nav .btn-secondary { display: none; }
  .nav-brand .brand-text { display: none; }
  .quote { padding: 48px 24px; margin: 64px 16px 0; }
  .container { padding-inline: 16px; }
  .footer { padding: 40px 16px 32px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .project-card:hover, .btn-primary:hover, .btn-secondary:hover { transform: none; }
}
