/* hallmark · v2.0.0 · theme: custom · idea: "Pure white Swiss architectural glass gallery with jet-black Helvetica framing a polychrome 3D open-book landing onto a miniature library desk across all devices" · vibe: "pure white studio, black Helvetica, colorful 3D diorama" · posture: light/grotesk-heavy/neutral · axes: light/helvetica-bold/achromatic */
/* critique: Pure white studio ground, crisp black ink, adaptive 3D camera viewport lanes, and >=44px touch controls ensure comfortable reading and 3D clarity from 360px phones to ultrawide monitors. */

@font-face {
  font-family: "Helvetica Neue Custom";
  src: url("./assets/fonts/Helvetica-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

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

@font-face {
  font-family: "Helvetica Neue Custom";
  src: url("./assets/fonts/Helvetica-Oblique.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

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

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

:root {
  /* DEFAULT: PURE WHITE STUDIO + CRISP BLACK INK (Zero-Chroma Glassmorphism) */
  --color-bg: oklch(0.99 0 0);
  --color-bg-elevated: oklch(0.945 0 0);
  --color-glass: oklch(1 0 0 / 0.7);
  --color-glass-strong: oklch(1 0 0 / 0.88);
  --color-glass-hover: oklch(1 0 0 / 0.94);
  --color-code-bg: oklch(0.955 0 0 / 0.9);
  --color-pill-bg: oklch(0 0 0 / 0.055);
  --color-pill-hover: oklch(0 0 0 / 0.11);

  --color-border: oklch(0 0 0 / 0.11);
  --color-border-strong: oklch(0 0 0 / 0.34);
  --color-hairline: oklch(0 0 0 / 0.08);

  --color-ink: oklch(0.07 0 0);
  --color-ink-muted: oklch(0.31 0 0);
  --color-ink-subtle: oklch(0.46 0 0);

  --color-btn-bg: oklch(0.07 0 0);
  --color-btn-ink: oklch(0.99 0 0);
  --color-btn-hover: oklch(0.22 0 0);
  --color-focus: oklch(0.07 0 0);

  --shadow-glass: 0 22px 56px oklch(0 0 0 / 0.075), inset 0 1px 0 oklch(1 0 0 / 0.96);
  --shadow-bar: 0 12px 32px oklch(0 0 0 / 0.065), inset 0 1px 0 oklch(1 0 0 / 0.96);

  /* Curated Helvetica System */
  --font-display: "Helvetica Neue Custom", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-body: "Helvetica Neue Custom", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-compressed: "Helvetica Compressed Custom", "Helvetica Neue Custom", Impact, sans-serif;
  --font-mono: ui-monospace, "Cascadia Mono", "SFMono-Regular", Consolas, monospace;

  /* Spacing & Layout Scale */
  --container-max: 80rem;
  --gutter: clamp(1rem, 3.5vw, 3rem);
  --gap-grid: clamp(0.875rem, 2vw, 1.5rem);
  --radius-lg: 1.25rem;
  --radius-md: 0.875rem;
  --radius-sm: 0.5rem;
  --radius-pill: 999px;
  --blur-glass: blur(22px) saturate(140%);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 160ms;
  --dur-med: 320ms;
}

[data-theme="obsidian"] {
  --color-bg: oklch(0.07 0 0);
  --color-bg-elevated: oklch(0.15 0 0);
  --color-glass: oklch(0.11 0 0 / 0.62);
  --color-glass-strong: oklch(0.09 0 0 / 0.82);
  --color-glass-hover: oklch(0.17 0 0 / 0.74);
  --color-code-bg: oklch(0.04 0 0 / 0.78);
  --color-pill-bg: oklch(1 0 0 / 0.075);
  --color-pill-hover: oklch(1 0 0 / 0.15);

  --color-border: oklch(1 0 0 / 0.14);
  --color-border-strong: oklch(1 0 0 / 0.34);
  --color-hairline: oklch(1 0 0 / 0.09);

  --color-ink: oklch(0.985 0 0);
  --color-ink-muted: oklch(0.76 0 0);
  --color-ink-subtle: oklch(0.56 0 0);

  --color-btn-bg: oklch(0.985 0 0);
  --color-btn-ink: oklch(0.07 0 0);
  --color-btn-hover: oklch(0.86 0 0);
  --color-focus: oklch(1 0 0);

  --shadow-glass: 0 24px 64px oklch(0 0 0 / 0.52), inset 0 1px 0 oklch(1 0 0 / 0.18);
  --shadow-bar: 0 14px 40px oklch(0 0 0 / 0.45), inset 0 1px 0 oklch(1 0 0 / 0.16);
}

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

html {
  overflow-x: clip;
  scroll-behavior: smooth;
  font-synthesis: none;
  background-color: var(--color-bg);
  color: var(--color-ink);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: clip;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.55;
  background-color: var(--color-bg);
  color: var(--color-ink);
  -webkit-font-smoothing: antialiased;
  transition: background-color var(--dur-med) var(--ease-out), color var(--dur-med) var(--ease-out);
}

:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 3px;
  transition: none;
}

/* Fixed 3D Stage & Clean White Daylight Gallery Backdrop */
.stage-wrap {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(circle at 60% 42%, var(--color-bg) 0%, var(--color-bg-elevated) 100%);
}

#webgl-stage {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
}

body.is-orbiting .stage-wrap {
  pointer-events: auto;
  cursor: grab;
}

body.is-orbiting .stage-wrap:active {
  cursor: grabbing;
}

/* Left Reading Progress Hairline */
.scroll-spine {
  position: fixed;
  inset-block: 0;
  left: max(0.75rem, 1.4vw);
  width: 2px;
  background: var(--color-hairline);
  z-index: 20;
  pointer-events: none;
}

.scroll-spine__fill {
  position: absolute;
  inset: 0;
  background: var(--color-ink);
  transform-origin: top;
  transform: scaleY(0);
}

/* Sticky Top Frosted White Glass Navbar (Safe-Area Aware) */
.topbar {
  position: fixed;
  top: max(0.75rem, env(safe-area-inset-top));
  inset-inline: 0;
  z-index: 40;
  padding-inline: var(--gutter);
  pointer-events: none;
}

.topbar__inner {
  max-width: var(--container-max);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.5rem 0.65rem 0.5rem 0.85rem;
  background: var(--color-glass-strong);
  backdrop-filter: var(--blur-glass);
  -webkit-backdrop-filter: var(--blur-glass);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-bar);
  pointer-events: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--color-ink);
  min-width: 0;
  min-height: 2.5rem;
}

.brand__logo {
  width: 1.95rem;
  height: 1.95rem;
  display: block;
  flex-shrink: 0;
  transition: filter var(--dur-med) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}

.brand:hover .brand__logo {
  transform: rotate(-6deg) scale(1.05);
}

[data-theme="obsidian"] .brand__logo {
  filter: invert(1);
}

.brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  color: var(--color-ink-muted);
  text-decoration: none;
  font-size: 0.875rem;
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-pill);
  transition: color var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out);
}

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

.topbar__actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.chip-btn {
  appearance: none;
  border: 1px solid var(--color-border);
  background: var(--color-pill-bg);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 400;
  min-height: 2.5rem;
  padding: 0.4rem 0.78rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.38rem;
  white-space: nowrap;
  touch-action: manipulation;
  transition: background-color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}

.chip-btn:hover {
  background: var(--color-pill-hover);
  border-color: var(--color-border-strong);
}

.chip-btn:active {
  transform: scale(0.97);
}

.chip-btn[aria-pressed="true"] {
  background: var(--color-btn-bg);
  color: var(--color-btn-ink);
  border-color: var(--color-btn-bg);
  font-weight: 700;
}

/* Floating Bottom-Right 3D Stage HUD (Touch & Safe-Area Ready) */
.stage-hud {
  position: fixed;
  right: var(--gutter);
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 45;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.45rem 0.85rem;
  background: var(--color-glass-strong);
  backdrop-filter: var(--blur-glass);
  -webkit-backdrop-filter: var(--blur-glass);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-bar);
  font-size: 0.8rem;
  color: var(--color-ink-muted);
}

.stage-hud__act {
  font-family: var(--font-compressed);
  font-size: 0.98rem;
  color: var(--color-ink);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.stage-hud__sep {
  width: 1px;
  height: 0.9rem;
  background: var(--color-border);
  flex-shrink: 0;
}

.hud-exit-btn {
  display: none;
  appearance: none;
  border: none;
  background: var(--color-btn-bg);
  color: var(--color-btn-ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.75rem;
  padding: 0.35rem 0.7rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  white-space: nowrap;
}

body.is-orbiting .hud-exit-btn {
  display: inline-flex;
  align-items: center;
}

/* Main Foreground Content Layer & Orbit Fade */
.page-content {
  position: relative;
  z-index: 10;
  transition: opacity var(--dur-med) var(--ease-out);
}

body.is-orbiting .page-content {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* 12-Column Swiss Spatial Grid */
.act-section {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
  min-height: 100svh;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: center;
  gap: var(--gap-grid);
  padding-block: clamp(5.5rem, 10vh, 7.5rem);
}

.act-section--hero {
  padding-top: clamp(6.25rem, 11vh, 8rem);
  padding-bottom: clamp(3rem, 6vh, 4.5rem);
}

/* Counterbalanced Spatial Lanes so Glass UI Never Collides with 3D Models on Desktop */
.lane-left {
  grid-column: 1 / 6;
}

.lane-left-wide {
  grid-column: 1 / 7;
}

.lane-right {
  grid-column: 7 / 13;
}

.lane-right-wide {
  grid-column: 7 / 13;
}

.lane-center {
  grid-column: 3 / 11;
}

/* Glassmorphic Surfaces */
.glass-panel {
  background: var(--color-glass);
  backdrop-filter: var(--blur-glass);
  -webkit-backdrop-filter: var(--blur-glass);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-glass);
  padding: clamp(1.25rem, 3vw, 2.45rem);
  min-width: 0;
}

.glass-card {
  background: var(--color-glass);
  backdrop-filter: var(--blur-glass);
  -webkit-backdrop-filter: var(--blur-glass);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-glass);
  padding: clamp(1rem, 2vw, 1.3rem);
  min-width: 0;
  transition: background-color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}

.glass-card:hover {
  background: var(--color-glass-hover);
  border-color: var(--color-border-strong);
  transform: translateY(-2px);
}

/* Typography Hierarchy */
.section-kicker {
  margin: 0 0 0.55rem;
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--color-ink-muted);
}

.display-hero {
  margin: 0 0 0.9rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4.4vw, 4.05rem);
  line-height: 1.03;
  letter-spacing: -0.035em;
  overflow-wrap: break-word;
  min-width: 0;
}

.display-section {
  margin: 0 0 0.8rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.65rem, 3.1vw, 2.8rem);
  line-height: 1.07;
  letter-spacing: -0.03em;
  overflow-wrap: break-word;
  min-width: 0;
}

.lead-copy {
  margin: 0 0 1.35rem;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(0.98rem, 1.28vw, 1.18rem);
  line-height: 1.52;
  color: var(--color-ink-muted);
  max-width: 52ch;
}

/* Command Copy Bar — Zero Mid-Word Clipping */
.cmd-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.62rem 0.65rem 0.62rem 0.95rem;
  background: var(--color-code-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: 1.2rem;
  min-width: 0;
}

.cmd-bar__code {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--color-ink);
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
  min-width: 0;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

.btn-primary {
  appearance: none;
  border: 1px solid var(--color-btn-bg);
  background: var(--color-btn-bg);
  color: var(--color-btn-ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  min-height: 2.75rem;
  padding: 0.68rem 1.25rem;
  border-radius: var(--radius-pill);
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  touch-action: manipulation;
  transition: background-color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}

.btn-primary:hover {
  background: var(--color-btn-hover);
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-ghost {
  appearance: none;
  border: 1px solid var(--color-border-strong);
  background: transparent;
  color: var(--color-ink);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.9rem;
  min-height: 2.75rem;
  padding: 0.68rem 1.15rem;
  border-radius: var(--radius-pill);
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  touch-action: manipulation;
  transition: background-color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}

.btn-ghost:hover {
  background: var(--color-pill-hover);
}

/* Fact Strip inside Hero */
.fact-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--color-hairline);
}

.fact-item__num {
  display: block;
  font-family: var(--font-compressed);
  font-size: 1.8rem;
  line-height: 1;
  color: var(--color-ink);
  margin-bottom: 0.2rem;
}

.fact-item__label {
  font-size: 0.78rem;
  color: var(--color-ink-muted);
  line-height: 1.3;
}

/* Environments Stack (Act 02) */
.env-stack {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.15rem;
}

.env-row {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  gap: 0.85rem;
  align-items: start;
}

.index-num {
  font-family: var(--font-compressed);
  font-size: 1.95rem;
  line-height: 0.95;
  color: var(--color-ink);
  opacity: 0.92;
}

.env-row__title {
  margin: 0 0 0.25rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: -0.015em;
}

.env-row__desc {
  margin: 0;
  font-size: 0.88rem;
  color: var(--color-ink-muted);
}

/* 6 Specialist Skills Grid (Act 03) */
.skills-header {
  margin-bottom: 1.15rem;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.skill-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.85rem;
}

.skill-card__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.skill-card__id {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-ink-muted);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  background: var(--color-pill-bg);
  border: 1px solid var(--color-hairline);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.skill-card__title {
  margin: 0.3rem 0 0.3rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.04rem;
  letter-spacing: -0.015em;
}

.skill-card__desc {
  margin: 0;
  font-size: 0.86rem;
  color: var(--color-ink-muted);
}

.skill-card__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--color-hairline);
}

.mini-link {
  font-size: 0.82rem;
  color: var(--color-ink);
  font-weight: 700;
  text-decoration: none;
  min-height: 2.5rem;
  padding-inline: 0.4rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  opacity: 0.9;
  transition: opacity var(--dur-fast) var(--ease-out);
}

.mini-link:hover {
  opacity: 1;
  text-decoration: underline;
}

/* CLI Auditor Console (Act 04) */
.tab-strip {
  display: flex;
  overflow-x: auto;
  gap: 0.4rem;
  margin-bottom: 0.9rem;
  padding-bottom: 0.2rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.tab-strip::-webkit-scrollbar {
  display: none;
}

.tab-btn {
  appearance: none;
  border: 1px solid var(--color-border);
  background: var(--color-pill-bg);
  color: var(--color-ink-muted);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  min-height: 2.5rem;
  padding: 0.45rem 0.8rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}

.tab-btn[aria-selected="true"] {
  background: var(--color-btn-bg);
  color: var(--color-btn-ink);
  border-color: var(--color-btn-bg);
  font-weight: 700;
}

.terminal-box {
  background: var(--color-code-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1rem 1.1rem;
  overflow-x: auto;
}

.terminal-box pre {
  margin: 0;
  font-family: var(--font-mono);
  font-size: clamp(0.74rem, 1vw, 0.8125rem);
  line-height: 1.58;
  color: var(--color-ink);
  white-space: pre-wrap;
  word-break: break-word;
}

/* Finale Install & Download Matrix (Act 05) */
.install-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  margin-block: 1.25rem;
}

.zip-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
  margin-top: 0.9rem;
}

.zip-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.65rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: var(--color-pill-bg);
  color: var(--color-ink);
  text-decoration: none;
  font-size: 0.825rem;
  transition: background-color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}

.zip-pill:hover {
  background: var(--color-pill-hover);
  border-color: var(--color-border-strong);
  transform: translateY(-1px);
}

.zip-pill__name {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Footer */
.site-footer {
  max-width: var(--container-max);
  margin-inline: auto;
  padding: 2rem var(--gutter) calc(4.75rem + env(safe-area-inset-bottom));
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  font-size: 0.82rem;
  color: var(--color-ink-subtle);
  border-top: 1px solid var(--color-hairline);
}

/* Copy Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(4.25rem + env(safe-area-inset-bottom));
  transform: translate(-50%, 16px);
  opacity: 0;
  pointer-events: none;
  z-index: 60;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-pill);
  background: var(--color-btn-bg);
  color: var(--color-btn-ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.825rem;
  white-space: nowrap;
  transition: opacity var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.icon-svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  stroke: currentColor;
  stroke-width: 1.65;
  fill: none;
}

/* ==========================================================================
   ALL-DEVICE RESPONSIVE ARCHITECTURE (Tablet, Large Phone, Small Phone 360px, Landscape)
   ========================================================================== */

/* Tablet & Below (<= 1024px):
   - Reserve an unobstructed upper 3D Stage Viewport Window between each section
     so as users scroll on tablets & phones, the 3D Book-to-Desk & Library Tour
     stays 100% visible in the upper half of the screen! */
@media (max-width: 64rem) {
  .nav-links {
    display: none;
  }

  .lane-left,
  .lane-left-wide,
  .lane-right,
  .lane-right-wide,
  .lane-center {
    grid-column: 1 / -1;
  }

  .act-section {
    min-height: auto;
    /* Top margin creates a dedicated clear viewing window for the 3D transition between cards! */
    padding-top: clamp(15rem, 36svh, 21rem);
    padding-bottom: 2.5rem;
  }

  .act-section--hero {
    /* Hero leaves upper ~42svh open for the 3D Open Book right below the topbar */
    padding-top: clamp(16.5rem, 43svh, 23rem);
    padding-bottom: 2.5rem;
  }
}

/* Phones (<= 704px) */
@media (max-width: 44rem) {
  .brand__name {
    font-size: 1.1rem;
  }

  .topbar__inner {
    padding: 0.4rem 0.5rem 0.4rem 0.55rem;
  }

  .chip-btn {
    padding: 0.38rem 0.65rem;
    font-size: 0.76rem;
  }

  .skills-grid,
  .install-grid,
  .zip-grid {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .btn-row > .btn-primary,
  .btn-row > .btn-ghost {
    flex: 1 1 calc(50% - 0.35rem);
  }

  .scroll-spine {
    display: none;
  }

  .stage-hud {
    left: var(--gutter);
    right: var(--gutter);
    justify-content: space-between;
    bottom: max(0.65rem, env(safe-area-inset-bottom));
    padding: 0.42rem 0.75rem;
    font-size: 0.74rem;
  }

  .stage-hud__status-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

/* Extra-Small Phones (<= 380px, e.g. 360px Android / iPhone SE) */
@media (max-width: 23.75rem) {
  .display-hero {
    font-size: 1.78rem;
  }

  .display-section {
    font-size: 1.48rem;
  }

  .cmd-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .cmd-bar .chip-btn {
    width: 100%;
  }

  .btn-row > .btn-primary,
  .btn-row > .btn-ghost {
    flex: 1 1 100%;
  }
}

/* Short Landscape Mobile Viewports (e.g. rotated phone <= 500px tall) */
@media (max-height: 32rem) and (orientation: landscape) {
  .act-section,
  .act-section--hero {
    padding-top: 5.25rem;
    padding-bottom: 2rem;
  }

  .lane-left,
  .lane-left-wide {
    grid-column: 1 / 8;
  }

  .lane-right,
  .lane-right-wide {
    grid-column: 6 / 13;
  }
}

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

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