/* ==========================================================================
   Jiacai Liu — Architectural Technical Editorial Design System
   Light: Cold Stone Paper (#F4F5F3) / Ink (#111315) / Signal Orange (#D9480F)
   Dark:  Machined Graphite (#0E1012) / Crisp Paper (#F1F3F5) / Signal Orange (#F0652F)
   ========================================================================== */

:root {
  color-scheme: light;

  /* Surface & Ink Tokens */
  --bg-page: #f4f5f3;
  --bg-surface: #ffffff;
  --bg-surface-subtle: #eaece8;
  --bg-nav-scrolled: rgba(244, 245, 243, 0.88);
  --bg-code: #121518;

  --text-primary: #111315;
  --text-secondary: #464d54;
  --text-muted: #586069;
  --text-on-accent: #ffffff;

  --accent: #d9480f;
  --accent-hover: #b83a09;
  --accent-subtle: rgba(217, 72, 15, 0.1);

  --border: #d8dcd6;
  --border-strong: #111315;
  --grid-line: rgba(17, 19, 21, 0.055);

  /* Syntax Tokens (always dark editor canvas for crisp code contrast) */
  --code-text: #e6ebf0;
  --code-muted: #8b949e;
  --code-keyword: #f0652f;
  --code-symbol: #79c0ff;
  --code-type: #d2a8ff;
  --code-string: #a5d6a7;
  --code-key: #ffd580;

  /* Typography Discipline: 2 Families, 3 Body Steps */
  --font-sans: "Space Grotesk", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  --text-heading: clamp(1.5rem, 2.2vw, 1.875rem);
  --text-body: 1rem;
  --text-sm: 0.875rem;

  /* Layout & Motion */
  --container-max: 1120px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --radius-sm: 4px;
  --radius-md: 8px;
}

:root[data-theme="dark"] {
  color-scheme: dark;

  --bg-page: #0e1012;
  --bg-surface: #15181c;
  --bg-surface-subtle: #1c2026;
  --bg-nav-scrolled: rgba(14, 16, 18, 0.88);
  --bg-code: #0a0c0e;

  --text-primary: #f1f3f5;
  --text-secondary: #a8b0b9;
  --text-muted: #8d96a0;
  --text-on-accent: #0e1012;

  --accent: #f0652f;
  --accent-hover: #ff7c47;
  --accent-subtle: rgba(240, 101, 47, 0.14);

  --border: #262b32;
  --border-strong: #f1f3f5;
  --grid-line: rgba(241, 243, 245, 0.045);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;

    --bg-page: #0e1012;
    --bg-surface: #15181c;
    --bg-surface-subtle: #1c2026;
    --bg-nav-scrolled: rgba(14, 16, 18, 0.88);
    --bg-code: #0a0c0e;

    --text-primary: #f1f3f5;
    --text-secondary: #a8b0b9;
    --text-muted: #8d96a0;
    --text-on-accent: #0e1012;

    --accent: #f0652f;
    --accent-hover: #ff7c47;
    --accent-subtle: rgba(240, 101, 47, 0.14);

    --border: #262b32;
    --border-strong: #f1f3f5;
    --grid-line: rgba(241, 243, 245, 0.045);
  }
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--bg-page);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: var(--text-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 200ms var(--ease-out), color 200ms var(--ease-out);
}

::selection {
  background-color: var(--accent);
  color: #ffffff;
}

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

img,
svg {
  display: block;
}

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

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

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

.mono {
  font-family: var(--font-mono);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ==========================================================================
   Navigation (Single compact line, borderless at y=0, separated on scroll)
   ========================================================================== */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  background-color: transparent;
  transition: background-color 200ms var(--ease-out), border-color 200ms var(--ease-out), backdrop-filter 200ms var(--ease-out);
}

.site-nav.is-scrolled {
  background-color: var(--bg-nav-scrolled);
  border-bottom-color: var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 4.25rem;
}

.brand-wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 0.45rem;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  white-space: nowrap;
  transition: color 180ms var(--ease-out);
}

.brand-wordmark:hover {
  color: var(--accent);
}

.brand-mark {
  width: 0.5rem;
  height: 0.5rem;
  background-color: var(--accent);
  display: inline-block;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
}

.nav-link {
  position: relative;
  padding-block: 0.25rem;
  white-space: nowrap;
  transition: color 160ms var(--ease-out);
}

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

.nav-link-accent {
  color: var(--text-primary);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link-accent:hover {
  color: var(--accent);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  background-color: var(--bg-surface);
  transition: border-color 180ms var(--ease-out), color 180ms var(--ease-out), transform 180ms var(--ease-out);
}

.theme-toggle:hover {
  border-color: var(--text-primary);
  color: var(--text-primary);
}

.theme-toggle svg {
  width: 1rem;
  height: 1rem;
}

.icon-sun {
  display: none;
}

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

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

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

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

/* ==========================================================================
   Hero — Monumental Full-Width Architectural Masthead (bleeds to y = 0)
   ========================================================================== */
.hero {
  position: relative;
  padding-top: clamp(7rem, 13vh, 9.5rem);
  padding-bottom: clamp(4rem, 9vh, 6.5rem);
  border-bottom: 1px solid var(--border);
  background-image:
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: top center;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 80% 70% at 50% 0%, transparent 45%, var(--bg-page) 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero-title {
  margin: 0;
  font-size: clamp(3.1rem, 8.2vw, 6.75rem);
  font-weight: 700;
  line-height: 0.94;
  letter-spacing: -0.045em;
  color: var(--text-primary);
  max-width: 15ch;
}

.hero-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.22em;
}

.hero-portrait-token {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 0.84em;
  height: 0.84em;
  border-radius: 0.14em;
  overflow: hidden;
  border: 2px solid var(--border-strong);
  background-color: var(--bg-surface-subtle);
  flex-shrink: 0;
  transform: translateY(0.03em);
  transition: transform 240ms var(--ease-out), border-color 200ms var(--ease-out);
}

.hero-portrait-token:hover {
  transform: translateY(0.03em) scale(1.04);
  border-color: var(--accent);
}

.hero-portrait-token img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-accent {
  color: var(--accent);
}

.hero-footer {
  margin-top: clamp(2rem, 5vh, 3.25rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 2rem 3rem;
}

.hero-summary {
  margin: 0;
  max-width: 54ch;
  font-size: var(--text-body);
  color: var(--text-secondary);
  line-height: 1.65;
}

.hero-cta-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 1.4rem;
  background-color: var(--accent);
  color: var(--text-on-accent);
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: background-color 180ms var(--ease-out), transform 180ms var(--ease-out);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-1px);
}

.btn-primary svg {
  width: 1rem;
  height: 1rem;
  transition: transform 180ms var(--ease-out);
}

.btn-primary:hover svg {
  transform: translateX(3px);
}

.social-inline {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.75rem;
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 500;
  transition: color 160ms var(--ease-out);
}

.social-link:hover {
  color: var(--accent);
}

.social-link-meta {
  color: var(--text-muted);
  font-weight: 400;
}

/* ==========================================================================
   Main Sections — Shared Rhythm & Strict 3-Size Hierarchy
   ========================================================================== */
.site-main {
  padding-bottom: clamp(4rem, 8vw, 6.5rem);
}

.section {
  padding-top: clamp(3.75rem, 7vw, 5.5rem);
}

.section + .section {
  border-top: 1px solid var(--border);
  margin-top: clamp(3.75rem, 7vw, 5.5rem);
}

.section-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-bottom: clamp(1.75rem, 3.5vw, 2.5rem);
}

.section-title {
  margin: 0;
  font-size: var(--text-heading);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.section-subtitle {
  margin: 0.4rem 0 0;
  font-size: var(--text-body);
  color: var(--text-secondary);
  max-width: 60ch;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-strong);
  padding-bottom: 0.15rem;
  transition: color 160ms var(--ease-out), border-color 160ms var(--ease-out);
}

.text-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ==========================================================================
   About + identity.clj Asymmetric Editorial Split
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 4.5vw, 4rem);
  align-items: start;
}

.prose {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  max-width: 65ch;
  color: var(--text-secondary);
}

.prose p {
  margin: 0;
  font-size: var(--text-body);
}

.prose strong {
  color: var(--text-primary);
  font-weight: 600;
}

.focus-line {
  margin-top: 0.5rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--border);
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.focus-line strong {
  color: var(--text-primary);
  font-weight: 600;
  margin-right: 0.4rem;
}

.code-panel {
  background-color: var(--bg-code);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.code-panel-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: var(--text-sm);
  color: var(--code-muted);
}

.code-filename {
  color: var(--code-text);
  font-weight: 500;
}

.code-copy-btn {
  font-size: var(--text-sm);
  color: var(--code-muted);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
  transition: color 160ms var(--ease-out), background-color 160ms var(--ease-out);
}

.code-copy-btn:hover {
  color: var(--code-text);
  background-color: rgba(255, 255, 255, 0.08);
}

.code-pre {
  margin: 0;
  padding: 1.25rem 1.1rem;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  line-height: 1.7;
  color: var(--code-text);
}

.tok-kw { color: var(--code-keyword); font-weight: 600; }
.tok-sym { color: var(--code-symbol); }
.tok-type { color: var(--code-type); font-weight: 600; }
.tok-str { color: var(--code-string); }
.tok-key { color: var(--code-key); }

/* ==========================================================================
   Live Services — Architectural Dual-Stage Strip
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--border);
  background-color: var(--bg-surface);
}

.service-item {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  transition: background-color 200ms var(--ease-out);
}

.service-item + .service-item {
  border-left: 1px solid var(--border);
}

.service-item:hover {
  background-color: var(--bg-surface-subtle);
}

.service-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.service-visual {
  width: 3.25rem;
  height: 3.25rem;
  color: var(--accent);
  flex-shrink: 0;
}

.service-arrow {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--text-muted);
  transition: transform 200ms var(--ease-out), color 200ms var(--ease-out);
}

.service-item:hover .service-arrow {
  color: var(--accent);
  transform: translate(3px, -3px);
}

.service-title {
  margin: 0;
  font-size: var(--text-body);
  font-weight: 700;
  color: var(--text-primary);
}

.service-host {
  margin: 0.2rem 0 0;
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.service-desc {
  margin: 1rem 0 0;
  font-size: var(--text-body);
  color: var(--text-secondary);
  max-width: 52ch;
}

.service-meta {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.service-action {
  color: var(--accent);
  font-weight: 600;
}

/* ==========================================================================
   Projects — Connected Segmented Filter + Swiss Editorial Index Rows
   ========================================================================== */
.projects-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.segmented {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background-color: var(--bg-surface);
  padding: 0.2rem;
}

.segmented-tab {
  padding: 0.42rem 0.9rem;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: 3px;
  transition: background-color 160ms var(--ease-out), color 160ms var(--ease-out);
}

.segmented-tab:hover {
  color: var(--text-primary);
}

.segmented-tab[aria-selected="true"] {
  background-color: var(--text-primary);
  color: var(--bg-page);
  font-weight: 600;
}

.project-index {
  border-top: 1px solid var(--border-strong);
}

.project-row {
  display: grid;
  grid-template-columns: minmax(11rem, 15rem) minmax(0, 1fr) minmax(8rem, 11rem) auto;
  align-items: baseline;
  gap: 0.75rem 2rem;
  padding: 1.25rem 0.75rem;
  border-bottom: 1px solid var(--border);
  position: relative;
  transition: background-color 180ms var(--ease-out);
}

.project-row::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background-color: var(--accent);
  transform: scaleY(0);
  transform-origin: center;
  transition: transform 200ms var(--ease-out);
}

.project-row:hover {
  background-color: var(--bg-surface);
}

.project-row:hover::before {
  transform: scaleY(1);
}

.project-row[hidden] {
  display: none;
}

.project-name-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.project-name {
  margin: 0;
  font-size: var(--text-body);
  font-weight: 700;
  color: var(--text-primary);
  transition: color 160ms var(--ease-out);
}

.project-row:hover .project-name {
  color: var(--accent);
}

.project-stars {
  font-size: var(--text-sm);
  color: var(--accent);
  font-weight: 600;
}

.project-desc {
  margin: 0;
  font-size: var(--text-body);
  color: var(--text-secondary);
  max-width: 60ch;
}

.project-stack {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.project-arrow {
  width: 1.1rem;
  height: 1.1rem;
  color: var(--text-muted);
  align-self: center;
  transition: transform 180ms var(--ease-out), color 180ms var(--ease-out);
}

.project-row:hover .project-arrow {
  color: var(--accent);
  transform: translate(3px, -3px);
}

/* ==========================================================================
   Podcasts — Editorial Media Pair with Acoustic Waveforms
   ========================================================================== */
.podcast-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}

.podcast-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-top: 1.5rem;
  border-top: 2px solid var(--border-strong);
}

.podcast-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.podcast-title {
  margin: 0;
  font-size: var(--text-body);
  font-weight: 700;
  color: var(--text-primary);
}

.podcast-domain {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.podcast-wave {
  width: 100%;
  height: 2.25rem;
  margin-bottom: 1.1rem;
  color: var(--accent);
}

.podcast-desc {
  margin: 0;
  font-size: var(--text-body);
  color: var(--text-secondary);
  max-width: 54ch;
}

.podcast-foot {
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: var(--text-sm);
  color: var(--text-muted);
}

/* ==========================================================================
   Career Experience — Precision Chronological Ledger
   ========================================================================== */
.career-list {
  border-top: 1px solid var(--border-strong);
}

.career-row {
  display: grid;
  grid-template-columns: minmax(12rem, 16rem) minmax(0, 1fr);
  gap: 0.75rem 2.5rem;
  padding-block: 1.75rem;
  border-bottom: 1px solid var(--border);
}

.career-period {
  font-size: var(--text-sm);
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.career-period-current {
  color: var(--accent);
  font-weight: 600;
}

.career-body {
  max-width: 65ch;
}

.career-company {
  margin: 0;
  font-size: var(--text-body);
  font-weight: 700;
  color: var(--text-primary);
}

.career-role {
  margin: 0.15rem 0 0;
  font-size: var(--text-body);
  font-weight: 500;
  color: var(--text-secondary);
}

.career-desc {
  margin: 0.75rem 0 0;
  font-size: var(--text-body);
  color: var(--text-secondary);
}

.career-desc strong {
  color: var(--text-primary);
  font-weight: 600;
}

.career-focus {
  margin: 0.75rem 0 0;
  font-size: var(--text-sm);
  color: var(--text-muted);
}

/* ==========================================================================
   Writing / Blog Closing Feature Band
   ========================================================================== */
.writing-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.5rem 3rem;
  padding: clamp(2rem, 4vw, 3rem);
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
}

.writing-title {
  margin: 0;
  font-size: var(--text-heading);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.writing-desc {
  margin: 0.75rem 0 0;
  font-size: var(--text-body);
  color: var(--text-secondary);
  max-width: 60ch;
}

.writing-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--border);
  padding-block: 2.5rem;
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem 2rem;
}

.footer-meta p {
  margin: 0;
}

.footer-meta p + p {
  margin-top: 0.35rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
}

.footer-links a {
  transition: color 160ms var(--ease-out);
}

.footer-links a:hover {
  color: var(--accent);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 900px) {
  .about-grid,
  .services-grid,
  .podcast-grid,
  .writing-band {
    grid-template-columns: minmax(0, 1fr);
  }

  .service-item + .service-item {
    border-left: 0;
    border-top: 1px solid var(--border);
  }

  .project-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.45rem 1rem;
  }

  .project-name-wrap {
    grid-column: 1 / 2;
  }

  .project-arrow {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
  }

  .project-desc,
  .project-stack {
    grid-column: 1 / -1;
  }

  .career-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.5rem;
  }

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

@media (max-width: 680px) {
  .nav-inner {
    gap: 0.75rem;
  }

  .nav-links {
    gap: 0.9rem;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .nav-hide-sm {
    display: none;
  }

  .hero-title {
    font-size: clamp(2.4rem, 11vw, 3.5rem);
  }

  .segmented {
    width: 100%;
    overflow-x: auto;
  }

  .segmented-tab {
    flex: 1 0 auto;
    text-align: center;
  }
}

/* ==========================================================================
   Reduced Motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
