/* =============================================
   CV-Site v2 — Design System
   ============================================= */

/* ---- Tokens: dark (default) ---- */
:root {
  --bg: #070b14;
  --bg-alt: #0b111e;
  --bg-card: rgba(255, 255, 255, 0.035);
  --bg-card-hover: rgba(255, 255, 255, 0.055);
  --text: #eef2f8;
  --text-muted: #8b95a9;
  --text-faint: #5c6677;
  --border: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.12);
  --accent: #7dd3fc;
  --accent-2: #a5b4fc;
  --accent-3: #6ee7b7;
  --glow: rgba(125, 211, 252, 0.06);
  --glow-2: rgba(165, 180, 252, 0.04);
  --page-top: #060913;
  --page-mid: #070b14;
  --page-bottom: #080e1a;
  --header-bg: rgba(6, 9, 19, 0.72);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.35);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-pill: 999px;
  --max: 1120px;
  --font: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ---- Light mode ---- */
html[data-theme='light'] {
  --bg: #f5f7fa;
  --bg-alt: #eef1f6;
  --bg-card: rgba(255, 255, 255, 0.82);
  --bg-card-hover: rgba(255, 255, 255, 0.94);
  --text: #0f1729;
  --text-muted: #4a5568;
  --text-faint: #718096;
  --border: rgba(15, 23, 42, 0.08);
  --border-strong: rgba(15, 23, 42, 0.15);
  --accent: #3b82f6;
  --accent-2: #6366f1;
  --accent-3: #059669;
  --glow: rgba(59, 130, 246, 0.08);
  --glow-2: rgba(99, 102, 241, 0.06);
  --page-top: #f8fafc;
  --page-mid: #f5f7fa;
  --page-bottom: #eef2f6;
  --header-bg: rgba(245, 247, 250, 0.78);
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 16px rgba(15, 23, 42, 0.07);
  --shadow-lg: 0 8px 32px rgba(15, 23, 42, 0.08);
}

/* ---- Reset & base ---- */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(ellipse at 50% 0%, var(--glow), transparent 40rem),
    radial-gradient(ellipse at 80% 100%, var(--glow-2), transparent 30rem),
    linear-gradient(180deg, var(--page-top) 0%, var(--page-mid) 40%, var(--page-bottom) 100%);
  line-height: 1.65;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ---- Skip link ---- */
.skip-link {
  position: absolute;
  top: -100px;
  left: 20px;
  z-index: 99;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--text);
  color: var(--bg);
  font-weight: 700;
  font-size: 0.9rem;
}
.skip-link:focus { top: 20px; }

/* ---- Utilities ---- */
.shell {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
  position: relative;
}

.hidden { display: none !important; }

/* =============================================
   Three.js canvas container
   ============================================= */
#three-canvas {
  position: fixed;
  top: 0;
  right: 0;
  width: 55vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
  mask-image: linear-gradient(to left, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.72) 52%, transparent 78%);
  -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.72) 52%, transparent 78%);
}

#three-canvas canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

/* =============================================
   Header / Navigation
   ============================================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: var(--header-bg);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: -0.02em;
  color: var(--text);
  transition: opacity 0.2s;
}
.brand:hover { opacity: 0.75; }

.brand-avatar {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  object-fit: contain;
  object-position: center bottom;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: linear-gradient(145deg, rgba(125, 211, 252, 0.12), rgba(165, 180, 252, 0.06));
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

.brand:hover .brand-avatar {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-picker {
  display: flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.04);
}

.lang-btn {
  appearance: none;
  border: 0;
  border-radius: var(--radius-pill);
  padding: 6px 10px;
  cursor: pointer;
  color: var(--text-muted);
  background: transparent;
  font-weight: 700;
  font-size: 0.78rem;
  transition: color 0.15s, background 0.15s;
}
.lang-btn:hover { color: var(--text); }
.lang-btn[aria-checked='true'] {
  color: var(--bg);
  background: var(--accent);
}

.theme-toggle {
  appearance: none;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  cursor: pointer;
  background: rgba(255,255,255,0.04);
  color: var(--text-muted);
  font-size: 1rem;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.theme-toggle:hover {
  color: var(--text);
  border-color: var(--border-strong);
}
.theme-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* =============================================
   Hero
   ============================================= */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 100px 0 80px;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.hero-eyebrow {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.hero-title {
  font-size: clamp(3.2rem, 8vw, 6.5rem);
  line-height: 0.92;
  letter-spacing: -0.065em;
  font-weight: 900;
  margin-bottom: 24px;
  color: var(--text);
}

.hero-lead {
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  line-height: 1.5;
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.centered { justify-content: center; }

/* ---- Scroll hint ---- */
.hero-scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.scroll-dot {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.5;
  animation: scrollPulse 2.4s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.2; transform: translateY(0); }
  50% { opacity: 0.7; transform: translateY(6px); }
}

/* =============================================
   Buttons
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.92rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
  color: #070b14;
  box-shadow: 0 2px 12px rgba(125, 211, 252, 0.25);
}
.btn-primary:hover { box-shadow: 0 4px 20px rgba(125, 211, 252, 0.35); }

.btn-secondary {
  background: var(--bg-card);
  border-color: var(--border);
  color: var(--text);
}
.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-strong);
}

.btn-ghost {
  color: var(--text-muted);
  border-color: transparent;
}
.btn-ghost:hover {
  color: var(--text);
  background: var(--bg-card);
}

/* =============================================
   Snapshot bar
   ============================================= */
.snapshot-bar {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 20px;
  padding: 28px 32px;
  margin-bottom: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
}

.snapshot-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.snapshot-label {
  color: var(--text-faint);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
}

.snapshot-value {
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.45;
}

.snapshot-divider {
  width: 1px;
  background: var(--border);
  flex-shrink: 0;
}

/* =============================================
   Sections
   ============================================= */
.section {
  position: relative;
  z-index: 2;
  padding: 90px 0;
}

.section-heading {
  margin-bottom: 32px;
  max-width: 800px;
}

.section-text {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 720px;
  line-height: 1.7;
}

.eyebrow {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.76rem;
  font-weight: 700;
  margin-bottom: 14px;
}

h1, h2, h3 { margin-top: 0; }

h2 {
  font-size: clamp(1.8rem, 3.6vw, 3.2rem);
  line-height: 1.04;
  letter-spacing: -0.05em;
  font-weight: 800;
  color: var(--text);
}

/* =============================================
   From evidence to decision
   ============================================= */
.process-section { padding-top: 54px; }
.process-flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 26px minmax(0, 1fr) 26px minmax(0, 1fr) 26px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  perspective: 1000px;
}
.process-stage {
  position: relative;
  min-height: 240px;
  overflow: hidden;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  transform-style: preserve-3d;
  transition: transform 0.35s ease, border-color 0.35s ease, background 0.35s ease;
}
.process-stage:nth-of-type(1) { transform: rotateY(5deg) translateZ(6px); }
.process-stage:nth-of-type(2) { transform: rotateY(2deg) translateZ(16px); }
.process-stage:nth-of-type(3) { transform: rotateY(-2deg) translateZ(16px); }
.process-stage:nth-of-type(4) { transform: rotateY(-5deg) translateZ(6px); }
.process-stage:hover { transform: translateY(-6px) translateZ(24px); border-color: var(--accent); background: var(--bg-card-hover); }
.process-index { display: block; color: var(--accent); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.12em; margin-bottom: 24px; }
.process-stage h3 { position: relative; z-index: 1; font-size: 1rem; margin-bottom: 8px; }
.process-stage p { position: relative; z-index: 1; color: var(--text-muted); font-size: 0.86rem; line-height: 1.55; }
.process-connector { color: var(--accent); font-size: 1.25rem; text-align: center; opacity: 0.65; }
.process-motif { position: absolute; inset: auto 14px 14px auto; width: 86px; height: 86px; opacity: 0.62; }
.process-motif--fragments { background: radial-gradient(circle at 15% 20%, var(--accent) 0 3px, transparent 4px), radial-gradient(circle at 62% 12%, var(--accent-2) 0 4px, transparent 5px), radial-gradient(circle at 38% 52%, var(--accent-3) 0 3px, transparent 4px), radial-gradient(circle at 80% 68%, var(--accent) 0 3px, transparent 4px), radial-gradient(circle at 14% 82%, var(--accent-2) 0 4px, transparent 5px); }
.process-motif--grid { background-image: linear-gradient(var(--accent) 1px, transparent 1px), linear-gradient(90deg, var(--accent) 1px, transparent 1px); background-size: 17px 17px; mask-image: linear-gradient(135deg, transparent, #000 35%); }
.process-motif--contours { border-radius: 48% 52% 44% 56%; border: 1px solid var(--accent); box-shadow: inset 0 0 0 12px transparent, inset 0 0 0 13px var(--accent-2), inset 0 0 0 25px transparent, inset 0 0 0 26px var(--accent-3); transform: rotate(-18deg); }
.process-motif--output { border: 1px solid var(--accent); border-radius: 8px; box-shadow: inset 14px 0 0 var(--accent), inset 24px 0 0 transparent, inset 24px 18px 0 rgba(125,211,252,0.18); }

/* =============================================
   Cards grid (strengths)
   ============================================= */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.card-number {
  display: inline-flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  background: rgba(255,255,255,0.06);
  color: var(--accent);
  font-weight: 800;
  font-size: 0.85rem;
}

.card h3 {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  color: var(--text);
}

.card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* =============================================
   Career trajectory
   ============================================= */
.trajectory {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 30px 0 24px;
  padding-top: 18px;
}
.trajectory-stop { position: relative; min-width: 0; padding-top: 28px; }
/* Join marker centres, not percentages of the overall container. */
.trajectory-stop:not(:last-child)::before {
  content: '';
  position: absolute;
  top: 11px;
  left: 8.5px;
  width: calc(100% + 18px);
  height: 1px;
  background: var(--accent);
}
/* The final marker is 21px wide instead of 17px: its centre is 2px farther right. */
.trajectory-stop:nth-last-child(2)::before { width: calc(100% + 20px); }
/* A quiet continuation beyond the current role, fading into the future. */
.trajectory-stop:last-child::after {
  content: '';
  position: absolute;
  top: 11px;
  left: 10.5px;
  width: min(70%, 160px);
  height: 1px;
  background: linear-gradient(to right, var(--accent-3) 0%, transparent 100%);
}
.trajectory-dot {
  position: absolute;
  z-index: 1;
  top: 3px;
  left: 0;
  width: 17px;
  height: 17px;
  border: 4px solid var(--bg);
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 0 18px var(--glow);
}
.trajectory-stop:nth-child(4) .trajectory-dot { background: var(--accent-3); box-shadow: 0 0 0 1px var(--accent-3), 0 0 18px var(--glow); width: 21px; height: 21px; top: 1px; }
.trajectory-year, .trajectory-org { display: block; color: var(--text-muted); font-size: 0.72rem; line-height: 1.35; }
.trajectory-year { color: var(--accent); font-weight: 800; letter-spacing: 0.08em; margin-bottom: 7px; }
.trajectory-stop strong { display: block; min-height: 42px; margin-bottom: 5px; font-size: 0.93rem; line-height: 1.35; }

/* =============================================
   Timeline
   ============================================= */
.timeline {
  display: grid;
  gap: 12px;
}

.timeline-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: background 0.2s, border-color 0.2s;
  position: relative;
}
.timeline-item:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-strong);
}

.timeline-kicker {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 10px;
}

.timeline-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.timeline-org {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.85rem;
}

.timeline-loc {
  color: var(--text-faint);
  font-size: 0.78rem;
  font-weight: 500;
}

.timeline-date {
  color: var(--text-faint);
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}

.timeline-item h3 {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
  color: var(--text);
}

.timeline-item p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* =============================================
   Fit grid
   ============================================= */
.fit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.fit-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: background 0.2s, border-color 0.2s;
}
.fit-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-strong);
}

.fit-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--text);
}

.fit-card ul,
.clean-list {
  list-style: none;
  display: grid;
  gap: 8px;
}

.fit-card li,
.clean-list li {
  color: var(--text-muted);
  font-size: 0.88rem;
  position: relative;
  padding-left: 18px;
  line-height: 1.5;
}
.fit-card li::before,
.clean-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-3);
  opacity: 0.6;
}

/* =============================================
   Tag panel (toolkit)
   ============================================= */
.tag-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.tag {
  display: inline-flex;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 600;
  font-size: 0.82rem;
  transition: background 0.2s, border-color 0.2s;
}
.tag:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent);
}

/* =============================================
   Work style
   ============================================= */
.style-block {
  display: grid;
  gap: 32px;
}

.style-points {
  display: grid;
  gap: 12px;
}

.style-point {
  padding: 20px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: background 0.2s, border-color 0.2s;
}
.style-point:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-strong);
}

.style-point h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text);
}

.style-point p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* =============================================
   Education grid
   ============================================= */
.education-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.info-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: background 0.2s, border-color 0.2s;
}
.info-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-strong);
}

.info-card h2 {
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  margin-bottom: 16px;
}

.info-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

/* =============================================
   CTA block
   ============================================= */
.cta-block {
  text-align: center;
  padding: 100px 0;
}

.cta-block .section-heading {
  margin-inline: auto;
}

.cta-block .section-text {
  margin-inline: auto;
  margin-bottom: 32px;
}

/* =============================================
   Footer
   ============================================= */
.site-footer {
  position: relative;
  z-index: 2;
  padding: 40px 0 60px;
  text-align: center;
  color: var(--text-faint);
  font-size: 0.85rem;
  border-top: 1px solid var(--border);
}

/* =============================================
   Reveal animation
   ============================================= */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =============================================
   Focus
   ============================================= */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

html[data-theme='light'] #three-canvas {
  mask-image: linear-gradient(to left, rgba(0,0,0,0.98) 0%, rgba(0,0,0,0.92) 52%, transparent 78%);
  -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,0.98) 0%, rgba(0,0,0,0.92) 52%, transparent 78%);
}


@media (max-width: 980px) {
  #three-canvas {
    width: 100vw;
    /* On dark mobile displays, 20% × a 30% mask made the scene effectively invisible. */
    opacity: 0.5 !important;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,0.8) 0%, transparent 84%);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.8) 0%, transparent 84%);
  }

  .hero-title { font-size: clamp(2.4rem, 12vw, 4rem); }
  .hero { min-height: 80vh; padding-top: 80px; }

  .cards-grid,
  .fit-grid { grid-template-columns: 1fr 1fr; }

  .process-flow { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .process-connector { transform: rotate(90deg); min-height: 20px; }
  .process-stage,
  .process-stage:nth-of-type(1),
  .process-stage:nth-of-type(2),
  .process-stage:nth-of-type(3),
  .process-stage:nth-of-type(4) { transform: none; }

  .education-grid { grid-template-columns: 1fr; }

  .snapshot-bar { flex-direction: column; gap: 16px; }
  .snapshot-divider { display: none; }
  .snapshot-item { border-bottom: 1px solid var(--border); padding-bottom: 16px; }
  .snapshot-item:last-child { border-bottom: 0; padding-bottom: 0; }
}

@media (max-width: 640px) {
  .shell { width: min(100% - 24px, var(--max)); }

  .nav { min-height: 56px; }
  .brand { font-size: 0.9rem; }

  .cards-grid,
  .fit-grid { grid-template-columns: 1fr; }

  .trajectory { grid-template-columns: 1fr 1fr; gap: 18px 12px; }
  .trajectory-stop::before,
  .trajectory-stop:last-child::after { display: none; }
  .trajectory-stop { padding-top: 24px; }
  .trajectory-stop strong { min-height: 0; }

  .hero { min-height: 100svh; min-height: 100dvh; padding-top: 72px; }
  .hero-title { font-size: clamp(2rem, 14vw, 3.2rem); }

  .snapshot-bar { padding: 20px; }

  .section { padding: 60px 0; }
  .cta-block { padding: 60px 0; }
}