/* ===== Tokens ===== */
:root {
  --ease-smooth: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --bg-base: #0A0E13;
  --bg-elevated: #10161D;
  --bg-elevated-hover: #151D26;
  --hairline: #232B35;
  --hairline-soft: #1A2129;
  --text-primary: #E8ECF1;
  --text-secondary: #8B96A5;
  --text-tertiary: #5C6774;
  --accent-signal: #5B8DEF;
  --accent-signal-dim: #3A5A96;
  --accent-alert: #E8A23D;
  --accent-verified: #4FBE8B;
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'IBM Plex Sans', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
  --max-w: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* ===== Intro boot sequence ===== */
.intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--bg-base);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s var(--ease-smooth), visibility 0.5s var(--ease-smooth);
}
.intro-overlay.intro-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.intro-box {
  width: 100%;
  max-width: 560px;
  padding: 0 28px;
}
.intro-lines {
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.9;
  color: var(--text-secondary);
  min-height: 220px;
}
.intro-lines .iline { opacity: 0; transform: translateY(4px); transition: opacity 0.3s ease, transform 0.3s ease; }
.intro-lines .iline.in { opacity: 1; transform: translateY(0); }
.intro-lines .iok { color: var(--accent-verified); }
.intro-lines .icmd { color: var(--text-primary); }
.intro-lines .isignal { color: var(--accent-signal); }
.intro-skip {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-tertiary);
  margin-top: 18px;
  opacity: 0;
  transition: opacity 0.6s ease 0.8s;
}
.intro-skip.in { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .intro-overlay { display: none; }
}

::selection { background: var(--accent-signal-dim); color: #fff; }

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

/* subtle grain overlay for texture */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ===== Topbar ===== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 14, 19, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline-soft);
}
.topbar-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 18px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.02em;
}
.mark-dot { color: var(--accent-signal); }
.topnav { display: flex; gap: 28px; }
.topnav a {
  font-size: 14px;
  color: var(--text-secondary);
  transition: color 0.25s var(--ease-smooth);
  position: relative;
}
.topnav a:hover { color: var(--text-primary); }
.topnav a.active { color: var(--accent-signal); }
.topnav a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: var(--accent-signal);
  border-radius: 2px;
}

/* ===== Hero ===== */
.hero {
  padding: 48px 28px 0;
  max-width: 1400px;
  margin: 0 auto;
}

.hero-visual-zone {
  position: relative;
  padding: 8px 0 28px;
}

#netCanvas {
  position: absolute;
  top: -24px;
  left: -28px;
  right: -28px;
  bottom: -12px;
  width: calc(100% + 56px);
  height: calc(100% + 36px);
  z-index: 0;
  pointer-events: none;
}

.hero-fade {
  position: absolute;
  top: -24px;
  left: -28px;
  width: 64%;
  height: calc(100% + 36px);
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(90deg, var(--bg-base) 18%, rgba(10, 14, 19, 0.62) 58%, transparent 100%);
}

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

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--accent-signal);
  text-transform: uppercase;
  margin: 0 0 18px;
}

.hero-name {
  font-family: var(--font-display);
  font-size: clamp(42px, 7vw, 68px);
  font-weight: 700;
  line-height: 1.02;
  margin: 0 0 20px;
  letter-spacing: -0.01em;
}

.hero-name-caret {
  display: inline-block;
  color: var(--accent-signal);
  animation: heroCaretBlink 0.9s step-end infinite;
  margin-left: 2px;
}
.hero-name-caret.done { display: none; }
@keyframes heroCaretBlink { 50% { opacity: 0; } }

.hero-stage {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.6s var(--ease-smooth), transform 0.6s var(--ease-smooth);
}
.hero-stage.in { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .hero-stage { transition: none; opacity: 1; transform: none; }
  .hero-name-caret { animation: none; }
}

.hero-role {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 0 36px;
}

.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 64px; }

.btn {
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 12px 20px;
  border-radius: 6px;
  border: 1px solid var(--hairline);
  transition: all 0.25s var(--ease-smooth);
  display: inline-flex;
  align-items: center;
}
.btn-primary {
  background: var(--accent-signal);
  color: #06101F;
  border-color: var(--accent-signal);
  font-weight: 500;
}
.btn-primary:hover { background: #6f9cf2; border-color: #6f9cf2; transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--text-primary);
}
.btn-ghost:hover { border-color: var(--accent-signal); color: var(--accent-signal); transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(0.97); }

/* Signature element: live signal ticker */
.ticker-wrap {
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: 14px 0;
  overflow: hidden;
  position: relative;
  background: linear-gradient(180deg, rgba(91,141,239,0.03), transparent);
}
.ticker-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-tertiary);
  letter-spacing: 0.1em;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-verified);
  box-shadow: 0 0 0 0 rgba(79,190,139,0.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(79,190,139,0.5); }
  70% { box-shadow: 0 0 0 6px rgba(79,190,139,0); }
  100% { box-shadow: 0 0 0 0 rgba(79,190,139,0); }
}
.ticker-track {
  display: flex;
  white-space: nowrap;
  width: max-content;
  animation: scrollTicker 110s linear infinite;
}
.ticker-wrap:hover .ticker-track { animation-play-state: paused; }
.ticker-group {
  display: flex;
  gap: 40px;
  padding-right: 40px;
}
.ticker-group span {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-secondary);
}
.ticker-group .sev-high { color: var(--accent-alert); }
.ticker-group .sev-ok { color: var(--accent-verified); }
@keyframes scrollTicker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; overflow-x: auto; }
  .dot { animation: none; }
  html { scroll-behavior: auto; }
}

/* ===== Sections ===== */
.section {
  padding: 88px 28px;
  border-bottom: 1px solid var(--hairline-soft);
}
.section-inner { max-width: var(--max-w); margin: 0 auto; }
.section-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 4vw, 34px);
  font-weight: 600;
  margin: 0 0 40px;
  max-width: 640px;
}

/* reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease-smooth), transform 0.7s var(--ease-smooth);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; transition-delay: 0s !important; }
}

/* ===== About ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 56px;
}
.about-lead p {
  color: var(--text-secondary);
  font-size: 16px;
  margin: 0 0 18px;
}
.about-facts {
  display: flex;
  flex-direction: column;
  gap: 20px;
  border-left: 1px solid var(--hairline);
  padding-left: 24px;
}
.fact { display: flex; flex-direction: column; gap: 4px; }
.fact-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.fact-value { font-size: 15px; color: var(--text-primary); }

@media (max-width: 720px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-facts { border-left: none; padding-left: 0; border-top: 1px solid var(--hairline); padding-top: 20px; }
}

/* ===== Case grid (projects) ===== */
.case-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--hairline-soft);
  border: 1px solid var(--hairline-soft);
}
.case-card {
  background: var(--bg-base);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: background 0.3s var(--ease-smooth), transform 0.3s var(--ease-smooth), box-shadow 0.3s var(--ease-smooth);
  position: relative;
  z-index: 1;
}
.case-card:hover {
  background: var(--bg-elevated);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
  z-index: 2;
}
.case-id {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-signal);
  letter-spacing: 0.08em;
}
.case-card h3 {
  font-family: var(--font-display);
  font-size: 19px;
  margin: 0;
  font-weight: 600;
}
.case-card p {
  color: var(--text-secondary);
  font-size: 14px;
  margin: 0;
  flex-grow: 1;
}
.case-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-tertiary);
  border: 1px solid var(--hairline);
  border-radius: 4px;
  padding: 3px 8px;
}
.case-link {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--accent-signal);
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.case-link:hover { color: #8fb1f5; }

@media (max-width: 720px) {
  .case-grid { grid-template-columns: 1fr; }
}

/* ===== Timeline (experience) ===== */
.timeline { display: flex; flex-direction: column; }
.tl-item {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 24px;
  padding: 28px 0;
  border-top: 1px solid var(--hairline);
}
.tl-item:last-child { border-bottom: 1px solid var(--hairline); }
.tl-date {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-tertiary);
  padding-top: 3px;
}
.tl-role { font-weight: 600; font-size: 17px; margin: 0 0 2px; }
.tl-org { color: var(--accent-signal); font-size: 14px; margin: 0 0 10px; }
.tl-desc { color: var(--text-secondary); font-size: 14.5px; margin: 0; max-width: 620px; }

@media (max-width: 640px) {
  .tl-item { grid-template-columns: 1fr; gap: 8px; }
}

/* ===== Stack ===== */
.stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
}
.stack-group h4 {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-verified);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 14px;
}
.stack-group ul { list-style: none; padding: 0; margin: 0; }
.stack-group li {
  font-size: 14.5px;
  color: var(--text-secondary);
  padding: 6px 0;
  border-bottom: 1px solid var(--hairline-soft);
}

/* ===== Education ===== */
.edu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.edu-card {
  border: 1px solid var(--hairline);
  border-radius: 8px;
  padding: 24px;
}
.edu-dates {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-tertiary);
}
.edu-card h3 { margin: 10px 0 6px; font-family: var(--font-display); font-size: 18px; }
.edu-card p { margin: 0; color: var(--text-secondary); font-size: 14.5px; }
.cert-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }

@media (max-width: 640px) {
  .edu-grid { grid-template-columns: 1fr; }
}

/* ===== Contact ===== */
.contact-section { border-bottom: none; text-align: left; }
.contact-copy { color: var(--text-secondary); font-size: 16px; max-width: 520px; margin: 0 0 32px; }
.contact-links { display: flex; gap: 12px; flex-wrap: wrap; }

/* ===== Footer ===== */
.footer { padding: 32px 28px 48px; }
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-tertiary);
}

/* ===== Hero grid + laptop showcase ===== */
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
}

.laptop-showcase {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  padding-top: 8px;
}

.showcase-callout {
  position: relative;
  background: var(--bg-elevated);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  padding: 12px 18px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-primary);
  max-width: 320px;
  min-height: 92px;
  box-sizing: border-box;
  text-align: center;
}
.showcase-callout::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -7px;
  width: 12px;
  height: 12px;
  background: var(--bg-elevated);
  border-right: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  transform: translateX(-50%) rotate(45deg);
}

.laptop {
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  width: 100%;
  max-width: 500px;
  display: block;
  position: relative;
}
.laptop:hover .laptop-screen { border-color: var(--accent-signal); }

.contact-pill {
  position: absolute;
  top: -14px;
  right: -8px;
  z-index: 3;
  font-family: var(--font-mono);
  font-size: 11px;
  color: #06101F;
  background: var(--accent-signal);
  padding: 7px 13px;
  border-radius: 20px;
  font-weight: 500;
  box-shadow: 0 6px 18px rgba(91, 141, 239, 0.35);
}

.laptop-screen {
  position: relative;
  background: #0C1016;
  border: 1px solid var(--hairline);
  border-radius: 14px 14px 4px 4px;
  padding: 22px 22px 14px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  transition: border-color 0.25s var(--ease-smooth), transform 0.25s var(--ease-smooth);
}
.screen-glow {
  position: absolute;
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(91,141,239,0.18), transparent 70%);
  pointer-events: none;
}
.avatar-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
  position: relative;
  z-index: 1;
  display: block;
  background: #0C1016;
}

.laptop-base {
  height: 12px;
  background: linear-gradient(180deg, #1a222c, #0d1218);
  border: 1px solid var(--hairline);
  border-top: none;
  border-radius: 0 0 10px 10px;
  position: relative;
}
.laptop-notch {
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 5px;
  background: var(--bg-base);
  border-radius: 0 0 6px 6px;
}

.caret {
  display: inline-block;
  color: var(--accent-signal);
  animation: caretBlink 1s step-end infinite;
}
@keyframes caretBlink { 50% { opacity: 0; } }

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

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .laptop-showcase { order: -1; margin-bottom: 8px; }
  .laptop { max-width: 300px; }
  .hero-fade { width: 100%; background: rgba(10, 14, 19, 0.55); }
}

/* ===== Terminal ===== */
.terminal {
  margin: 28px 0 0;
  border: 1px solid var(--hairline);
  border-radius: 10px;
  overflow: hidden;
  background: #080B0F;
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 14px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--hairline);
}
.tdot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.td-red { background: #E8636B; }
.td-yellow { background: var(--accent-alert); }
.td-green { background: var(--accent-verified); }
.terminal-title {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-tertiary);
  margin-left: 8px;
}
.terminal-body {
  padding: 16px 18px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: var(--text-secondary);
  max-height: 220px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.tline { line-height: 1.6; white-space: pre-wrap; }
.tline .thl { color: var(--accent-signal); cursor: pointer; border-bottom: 1px dotted var(--accent-signal); }
.tline .thl:hover { color: #8fb1f5; border-bottom-style: solid; }
.tline.tcmd { color: var(--text-primary); }
.tline.terr { color: var(--accent-alert); }
.terminal-input-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-top: 1px solid var(--hairline-soft);
}
.prompt {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent-signal);
  white-space: nowrap;
}
.terminal-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: var(--text-primary);
}
.terminal-input::placeholder { color: var(--text-tertiary); }

/* ===== Filter bar ===== */
.filter-hint { color: var(--text-tertiary); font-size: 13.5px; margin: -20px 0 18px; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filter-chip {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid var(--hairline);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s var(--ease-smooth);
}
.filter-chip:hover { border-color: var(--accent-signal); color: var(--text-primary); }
.filter-chip.active {
  background: var(--accent-signal);
  border-color: var(--accent-signal);
  color: #06101F;
  font-weight: 500;
}

.case-card { cursor: pointer; }
.case-card.hidden-by-filter { display: none; }
.case-card.filtering-out { opacity: 0; transform: scale(0.96) translateY(6px); pointer-events: none; }
.case-link { position: relative; z-index: 2; }

/* ===== Modal ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 9, 13, 0);
  backdrop-filter: blur(0px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 24px;
  transition: background 0.28s var(--ease-smooth), backdrop-filter 0.28s var(--ease-smooth);
}
.modal-overlay[hidden] { display: none; }
.modal-overlay.is-open {
  background: rgba(6, 9, 13, 0.78);
  backdrop-filter: blur(3px);
}
.modal {
  position: relative;
  background: var(--bg-elevated);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 36px;
  max-width: 560px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  transform: scale(0.94) translateY(10px);
  opacity: 0;
  transition: transform 0.32s var(--ease-smooth), opacity 0.28s var(--ease-smooth);
}
.modal-overlay.is-open .modal {
  transform: scale(1) translateY(0);
  opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
  .modal-overlay, .modal { transition: none; }
}
.modal h3 {
  font-family: var(--font-display);
  font-size: 24px;
  margin: 10px 0 14px;
}
.modal p { color: var(--text-secondary); font-size: 15px; margin: 0 0 20px; }
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: 1px solid var(--hairline);
  color: var(--text-secondary);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
}
.modal-close:hover { border-color: var(--accent-signal); color: var(--accent-signal); }
.modal .case-tags { margin-bottom: 24px; }

/* ===== Skill meters ===== */
.stack-group ul { list-style: none; padding: 0; margin: 0; }
.skill-row {
  padding: 10px 0;
  border-bottom: 1px solid var(--hairline-soft);
}
.skill-row-top {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 6px;
}
.skill-meter {
  height: 4px;
  background: var(--hairline-soft);
  border-radius: 2px;
  overflow: hidden;
}
.skill-meter-fill {
  height: 100%;
  width: 0%;
  background: var(--accent-verified);
  border-radius: 2px;
  transition: width 1s cubic-bezier(.2,.7,.3,1);
}

@media (max-width: 640px) {
  .greeter { flex-direction: column; align-items: flex-start; }
}

/* ===== Text motion ===== */

.hero-role .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(14px) rotateX(-45deg);
  transform-origin: bottom center;
  transition: opacity 0.55s var(--ease-out), transform 0.55s var(--ease-out);
}
.hero-role.words-in .word {
  opacity: 1;
  transform: none;
}

/* Scrambling swaps in narrower glyphs; reserve a line so short labels hold place. */
.eyebrow,
.section-title { min-height: 1em; }

/* The hero web reacts to the pointer, so hint that the area is live. */
.hero-visual-zone { cursor: crosshair; }
.hero-visual-zone a,
.hero-visual-zone button,
.hero-visual-zone input { cursor: auto; }

@media (prefers-reduced-motion: reduce) {
  .hero-role .word { opacity: 1; transform: none; transition: none; }
  .hero-visual-zone { cursor: auto; }
}
