:root {
  color-scheme: dark;
  --bg: #0f1115;
  --panel: #171b22;
  --panel-2: #20252d;
  --line: #333b47;
  --text: #f4f1e8;
  --muted: #b7bdc8;
  --teal: #41d6c3;
  --amber: #f4b860;
  --coral: #ff8066;
  --green: #9bdc7d;
  --ink: #111318;
  --max: 1180px;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(90deg, rgba(244, 241, 232, 0.025) 1px, transparent 1px),
    linear-gradient(180deg, rgba(244, 241, 232, 0.02) 1px, transparent 1px),
    linear-gradient(180deg, rgba(65, 214, 195, 0.08), transparent 360px),
    radial-gradient(circle at top right, rgba(244, 184, 96, 0.14), transparent 430px),
    var(--bg);
  background-size: 42px 42px, 42px 42px, auto, auto, auto;
  color: var(--text);
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.page-shell {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 14px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 14px 0 48px;
  padding: 12px;
  border: 1px solid rgba(244, 241, 232, 0.12);
  border-radius: 8px;
  background: rgba(15, 17, 21, 0.78);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 190px;
}

.brand-mark {
  position: relative;
  overflow: hidden;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  background: var(--teal);
  color: var(--ink);
  font-family: "SFMono-Regular", Menlo, Consolas, monospace;
  font-weight: 800;
}

.brand-mark img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-mark img[src=""],
.brand-mark img:not([src]) {
  display: none;
}

.brand-mark span {
  position: relative;
  z-index: 1;
}

.brand-mark img + span {
  opacity: 0;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
  margin-top: 2px;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: clamp(12px, 2vw, 28px);
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 600;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(244, 241, 232, 0.14);
  border-radius: 8px;
  background: rgba(244, 241, 232, 0.04);
  color: var(--text);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--text);
}

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid rgba(244, 241, 232, 0.16);
  border-radius: 8px;
  font-weight: 700;
}

.nav-cta {
  color: var(--teal);
}

.button.primary {
  border-color: transparent;
  background: var(--teal);
  color: var(--ink);
}

.button.secondary {
  background: rgba(244, 241, 232, 0.05);
  color: var(--text);
}

.button:hover,
.button:focus-visible,
.nav-cta:hover,
.nav-cta:focus-visible {
  transform: translateY(-1px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(360px, 0.92fr) minmax(420px, 1.08fr);
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
  min-height: calc(100vh - 132px);
  padding: 18px 0 58px;
}

.terminal-stage {
  grid-column: 1 / -1;
  width: 100%;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--amber);
  font-family: "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(2.25rem, 5vw, 4.7rem);
  line-height: 1.04;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 3.6vw, 3.4rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.08rem;
  line-height: 1.25;
}

.intro-terminal {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 210px;
  min-width: 100%;
  min-height: 210px;
  max-width: 100%;
  max-height: 560px;
  margin-bottom: 0;
  border: 1px solid rgba(65, 214, 195, 0.28);
  border-radius: 8px;
  background: rgba(8, 11, 14, 0.86);
  resize: vertical;
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.25);
}

.intro-terminal::after {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 18px;
  height: 18px;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(135deg, transparent 52%, rgba(65, 214, 195, 0.35) 52%, rgba(65, 214, 195, 0.35) 58%, transparent 58%),
    linear-gradient(135deg, transparent 68%, rgba(65, 214, 195, 0.55) 68%, rgba(65, 214, 195, 0.55) 74%, transparent 74%);
}

.intro-terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 12px;
  border-bottom: 1px solid rgba(244, 241, 232, 0.1);
  background: rgba(244, 241, 232, 0.045);
  color: var(--muted);
  font-family: "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.78rem;
}

.window-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.window-dot:nth-child(1) {
  background: var(--coral);
}

.window-dot:nth-child(2) {
  background: var(--amber);
}

.window-dot:nth-child(3) {
  background: var(--green);
}

.intro-terminal-bar strong {
  margin-left: 6px;
  font-weight: 700;
}

.resize-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  color: rgba(183, 189, 200, 0.72);
}

.ui-icon {
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.intro-terminal-body {
  display: flex;
  height: calc(100% - 38px);
  min-height: 0;
  flex-direction: column;
  padding: 16px;
  font-family: "SFMono-Regular", Menlo, Consolas, monospace;
}

.terminal-history {
  display: grid;
  max-height: 118px;
  overflow-y: auto;
  gap: 12px;
  padding-right: 8px;
  scrollbar-color: rgba(65, 214, 195, 0.42) transparent;
}

.history-entry {
  display: grid;
  gap: 6px;
}

.history-command,
.history-system,
.terminal-form {
  display: flex;
  align-items: center;
  color: var(--text);
  font-size: clamp(0.86rem, 1.5vw, 1rem);
  line-height: 1.55;
}

.history-command {
  align-items: flex-start;
}

.history-output {
  display: grid;
  gap: 4px;
  padding-left: 20px;
  color: var(--muted);
  font-size: clamp(0.8rem, 1.2vw, 0.92rem);
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.history-system {
  color: var(--amber);
}

.terminal-form {
  min-height: 38px;
  margin-top: auto;
  padding-top: 14px;
}

.prompt {
  flex: 0 0 auto;
  margin-right: 10px;
  color: var(--green);
  font-weight: 800;
}

.terminal-form input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--teal);
  caret-color: var(--amber);
  font: inherit;
  overflow-wrap: anywhere;
}

.terminal-form input::placeholder {
  color: rgba(183, 189, 200, 0.58);
}

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

.hero-summary,
.section p,
.timeline-item p {
  color: var(--muted);
  line-height: 1.72;
}

.hero-summary {
  max-width: 650px;
  font-size: 1.02rem;
}

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

.impact-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 28px;
}

.impact-strip article {
  min-height: 96px;
  padding: 16px;
  border: 1px solid rgba(244, 241, 232, 0.11);
  border-radius: 8px;
  background: rgba(244, 241, 232, 0.04);
}

.signal-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding: 0 0 76px;
}

.signal-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  min-height: 180px;
  padding: 18px;
  border: 1px solid rgba(244, 241, 232, 0.12);
  border-radius: 8px;
  background: rgba(244, 241, 232, 0.045);
}

.signal-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(65, 214, 195, 0.32);
  border-radius: 8px;
  color: var(--teal);
  background: rgba(65, 214, 195, 0.08);
}

.signal-icon .ui-icon {
  width: 20px;
  height: 20px;
}

.signal-card span {
  display: block;
  margin-bottom: 8px;
  color: var(--amber);
  font-family: "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.signal-card h3 {
  margin-bottom: 8px;
  font-size: 1rem;
}

.signal-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.58;
}

.impact-strip strong {
  display: block;
  color: var(--green);
  font-family: "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: clamp(1.6rem, 2.7vw, 2.4rem);
  line-height: 1;
}

.impact-strip span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.35;
}

.ops-panel {
  overflow: hidden;
  border: 1px solid rgba(244, 241, 232, 0.13);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(32, 37, 45, 0.98), rgba(18, 21, 27, 0.98));
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.34);
}

.panel-topbar {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 14px;
  border-bottom: 1px solid rgba(244, 241, 232, 0.1);
  color: var(--muted);
  font-family: "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.82rem;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(155, 220, 125, 0.12);
}

.icon-button {
  display: grid;
  width: 32px;
  height: 32px;
  margin-left: auto;
  place-items: center;
  border: 1px solid rgba(244, 241, 232, 0.14);
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-family: "SFMono-Regular", Menlo, Consolas, monospace;
  font-weight: 800;
}

.topology-wrap {
  position: relative;
  min-height: 500px;
}

#topology-canvas {
  display: block;
  width: 100%;
  height: 500px;
}

.node-card {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: min(280px, calc(100% - 36px));
  padding: 13px;
  border: 1px solid rgba(244, 241, 232, 0.14);
  border-radius: 8px;
  background: rgba(15, 17, 21, 0.88);
  backdrop-filter: blur(12px);
}

.node-card .node-label {
  display: inline-flex;
  margin-bottom: 6px;
  color: var(--teal);
  font-family: "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.node-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 0.98rem;
}

.node-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.42;
}

.terminal {
  display: grid;
  gap: 8px;
  padding: 16px;
  border-top: 1px solid rgba(244, 241, 232, 0.1);
  background: #101319;
  font-family: "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.8rem;
}

.terminal-line {
  color: var(--muted);
  white-space: normal;
}

.terminal-line span {
  color: var(--green);
  margin-right: 8px;
}

.section {
  padding: 86px 0;
}

.role-band {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(280px, 1fr);
  gap: 48px;
  align-items: start;
  border-top: 1px solid rgba(244, 241, 232, 0.12);
  border-bottom: 1px solid rgba(244, 241, 232, 0.12);
}

.section-heading {
  max-width: 780px;
  margin-bottom: 30px;
}

.readiness-section {
  border-top: 1px solid rgba(244, 241, 232, 0.1);
}

.readiness-carousel {
  overflow: hidden;
}

.readiness-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 360px);
  gap: 14px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2px 2px 12px;
  scroll-padding-inline: 2px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.readiness-track::-webkit-scrollbar,
.proof-track::-webkit-scrollbar {
  display: none;
}

.readiness-track:focus-visible {
  outline: 2px solid rgba(65, 214, 195, 0.65);
  outline-offset: 4px;
}

.readiness-track.is-auto-moving,
.proof-track.is-auto-moving {
  scroll-snap-type: none;
}

.readiness-card {
  display: grid;
  gap: 14px;
  min-height: 260px;
  padding: 18px;
  border: 1px solid rgba(244, 241, 232, 0.12);
  border-radius: 8px;
  background: rgba(244, 241, 232, 0.045);
  scroll-snap-align: start;
}

.readiness-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.readiness-topline h3 {
  margin-bottom: 0;
}

.readiness-topline strong {
  color: var(--green);
  font-family: "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 1.1rem;
}

.score-track {
  overflow: hidden;
  height: 9px;
  border-radius: 999px;
  background: rgba(244, 241, 232, 0.1);
}

.score-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--green));
}

.readiness-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.readiness-card b {
  color: var(--text);
}

.roadmap-panel {
  display: grid;
  grid-template-columns: minmax(240px, 0.7fr) minmax(0, 1.3fr);
  gap: 24px;
  margin-top: 16px;
  padding: 22px;
  border: 1px solid rgba(65, 214, 195, 0.2);
  border-radius: 8px;
  background: rgba(65, 214, 195, 0.055);
}

.roadmap-panel h3 {
  font-size: clamp(1.4rem, 2.4vw, 2.1rem);
}

.roadmap-list {
  display: grid;
  gap: 10px;
}

.roadmap-list article {
  padding: 14px;
  border-radius: 8px;
  background: rgba(15, 17, 21, 0.62);
}

.roadmap-list span {
  display: block;
  margin-bottom: 6px;
  color: var(--amber);
  font-family: "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.roadmap-list strong {
  display: block;
  margin-bottom: 6px;
}

.roadmap-list p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.proof-section {
  padding-top: 24px;
}

.proof-carousel {
  overflow: hidden;
}

.proof-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(360px, calc((100% - 16px) / 2));
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2px 2px 4px;
  scroll-padding-inline: 2px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.proof-track:focus-visible {
  outline: 2px solid rgba(65, 214, 195, 0.65);
  outline-offset: 4px;
}

.proof-card {
  overflow: hidden;
  border: 1px solid rgba(244, 241, 232, 0.12);
  border-radius: 8px;
  background: rgba(244, 241, 232, 0.045);
  scroll-snap-align: start;
}

.proof-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1200 / 760;
  object-fit: cover;
  border-bottom: 1px solid rgba(244, 241, 232, 0.1);
  background: #0f1115;
}

.proof-card div {
  padding: 18px;
}

.proof-card h3 {
  margin-bottom: 8px;
}

.proof-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.58;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.project-card {
  display: flex;
  min-height: 280px;
  flex-direction: column;
  align-items: flex-start;
  padding: 20px;
  border: 1px solid rgba(244, 241, 232, 0.12);
  border-radius: 8px;
  background: rgba(244, 241, 232, 0.045);
  cursor: pointer;
  transition: border-color 180ms ease, transform 180ms ease, background 180ms ease;
}

.project-card:hover,
.project-card:focus-within,
.project-card.active {
  border-color: rgba(65, 214, 195, 0.72);
  background: rgba(65, 214, 195, 0.07);
  transform: translateY(-3px);
}

.project-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--coral);
  font-family: "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.76rem;
  font-weight: 700;
}

.project-kicker .ui-icon {
  width: 18px;
  height: 18px;
}

.project-card p {
  flex: 1;
  margin-bottom: 20px;
  font-size: 0.94rem;
}

.project-card button {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(244, 241, 232, 0.16);
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-weight: 700;
}

.project-detail {
  margin-top: 16px;
  padding: 22px;
  border: 1px solid rgba(244, 241, 232, 0.12);
  border-radius: 8px;
  background: var(--panel);
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(220px, 0.8fr);
  gap: 22px;
}

.detail-grid h3 {
  display: flex;
  align-items: center;
  gap: 10px;
}

.detail-grid h3 .ui-icon {
  width: 22px;
  height: 22px;
  color: var(--teal);
}

.detail-grid ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.75;
}

.case-result {
  display: grid;
  gap: 6px;
  margin: 18px 0;
  padding: 16px;
  border-left: 3px solid var(--green);
  border-radius: 0 8px 8px 0;
  background: rgba(155, 220, 125, 0.07);
}

.case-result strong {
  color: var(--green);
  font-family: "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.76rem;
  text-transform: uppercase;
}

.case-result span {
  color: var(--text);
  line-height: 1.55;
}

.metric-list {
  display: grid;
  gap: 10px;
}

.metric-list div {
  padding: 14px;
  border-radius: 8px;
  background: rgba(244, 241, 232, 0.055);
}

.metric-list strong {
  display: block;
  color: var(--amber);
  font-family: "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 1.15rem;
}

.stack-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.stack-list span {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding: 0 10px;
  border: 1px solid rgba(65, 214, 195, 0.2);
  border-radius: 8px;
  background: rgba(65, 214, 195, 0.06);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 700;
}

.skill-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.skill-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 780px;
  margin-bottom: 22px;
}

.skill-heading h2 {
  margin-bottom: 0;
}

.skill-menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(244, 241, 232, 0.14);
  border-radius: 8px;
  background: rgba(244, 241, 232, 0.04);
  color: var(--text);
  cursor: pointer;
}

.skill-menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.skill-controls button {
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid rgba(244, 241, 232, 0.14);
  border-radius: 8px;
  background: rgba(244, 241, 232, 0.04);
  color: var(--muted);
  cursor: pointer;
  font-weight: 700;
}

.skill-controls button.active {
  border-color: transparent;
  background: var(--amber);
  color: var(--ink);
}

.skill-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-cloud > span {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid rgba(244, 241, 232, 0.12);
  border-radius: 8px;
  background: rgba(244, 241, 232, 0.05);
  color: var(--text);
  font-weight: 700;
  transition: opacity 160ms ease, transform 160ms ease;
}

.skill-cloud > span .ui-icon {
  width: 16px;
  height: 16px;
  color: var(--teal);
}

.skill-cloud > span.dimmed {
  opacity: 0.22;
  transform: scale(0.98);
}

.skill-expand {
  display: none;
  min-height: 42px;
  margin-top: 14px;
  padding: 0 16px;
  border: 1px solid rgba(65, 214, 195, 0.24);
  border-radius: 8px;
  background: rgba(65, 214, 195, 0.07);
  color: var(--teal);
  cursor: pointer;
  font-weight: 800;
}

.timeline {
  display: grid;
  gap: 18px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 28px;
  padding: 24px;
  border-left: 4px solid var(--teal);
  border-radius: 0 8px 8px 0;
  background: rgba(244, 241, 232, 0.045);
}

.timeline-item time {
  color: var(--amber);
  font-family: "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.84rem;
  font-weight: 700;
}

.company {
  margin-bottom: 10px;
  color: var(--text) !important;
  font-weight: 700;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
  gap: 36px;
  align-items: center;
  margin-bottom: 42px;
  padding: 34px;
  border: 1px solid rgba(244, 241, 232, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(65, 214, 195, 0.12), transparent 48%),
    rgba(244, 241, 232, 0.04);
}

.contact-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(130px, 1fr));
  gap: 12px;
  justify-content: stretch;
  margin-top: 0;
}

.contact-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 86px;
  padding: 14px;
  border: 1px solid rgba(244, 241, 232, 0.14);
  border-radius: 8px;
  background: rgba(15, 17, 21, 0.72);
  transition: border-color 180ms ease, transform 180ms ease, background 180ms ease;
}

.contact-card:hover,
.contact-card:focus-visible {
  border-color: rgba(65, 214, 195, 0.68);
  background: rgba(65, 214, 195, 0.08);
  transform: translateY(-2px);
}

.contact-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(65, 214, 195, 0.28);
  border-radius: 8px;
  color: var(--teal);
  background: rgba(65, 214, 195, 0.08);
}

.contact-icon .ui-icon {
  width: 20px;
  height: 20px;
}

.contact-card strong,
.contact-card small {
  display: block;
}

.contact-card strong {
  color: var(--text);
  font-size: 0.98rem;
}

.contact-card small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.78rem;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 540ms ease, transform 540ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .site-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .nav-links {
    grid-column: 1 / -1;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding: 4px 0 2px;
  }

  .hero,
  .role-band,
  .contact-section {
    grid-template-columns: 1fr;
  }

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

  .roadmap-panel {
    grid-template-columns: 1fr;
  }

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

  .contact-actions {
    grid-template-columns: 1fr;
  }
}

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

  .proof-track {
    grid-auto-columns: minmax(300px, 82vw);
  }

  .project-card {
    min-height: 220px;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 22px, var(--max));
  }

  .site-header {
    top: 8px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    margin-bottom: 24px;
  }

  .brand {
    min-width: 0;
  }

  .brand-mark {
    width: 48px;
    height: 48px;
  }

  .brand strong {
    font-size: 1rem;
  }

  .brand small {
    font-size: 0.74rem;
  }

  .menu-toggle {
    display: grid;
  }

  .nav-links {
    display: none;
    grid-column: 1 / -1;
    width: 100%;
    grid-template-columns: 1fr;
    gap: 6px;
    order: unset;
    padding: 8px 0 0;
    overflow: visible;
  }

  .site-header.nav-open .nav-links {
    display: grid;
  }

  .nav-links a {
    padding: 12px;
    border: 1px solid rgba(244, 241, 232, 0.1);
    border-radius: 8px;
    background: rgba(244, 241, 232, 0.04);
  }

  .nav-cta {
    padding: 0 14px;
  }

  .hero {
    min-height: auto;
    padding-top: 10px;
    gap: 24px;
  }

  .intro-terminal {
    width: 100%;
    height: 240px;
    min-width: 100%;
    min-height: 220px;
    max-height: 520px;
    resize: vertical;
  }

  .intro-terminal-body {
    padding: 15px;
  }

  .terminal-form {
    align-items: flex-start;
  }

  h1 {
    font-size: clamp(1.9rem, 10vw, 2.9rem);
  }

  h2 {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
  }

  .hero-summary,
  .section p,
  .timeline-item p {
    line-height: 1.62;
  }

  .impact-strip,
  .signal-board,
  .project-grid,
  .detail-grid,
  .timeline-item {
    grid-template-columns: 1fr;
  }

  .impact-strip article {
    min-height: 88px;
  }

  .signal-card,
  .readiness-card {
    min-height: auto;
  }

  .readiness-track {
    grid-auto-columns: minmax(252px, 82vw);
  }

  .proof-card div {
    padding: 16px;
  }

  .proof-track {
    grid-auto-columns: minmax(270px, 88vw);
  }

  .topology-wrap {
    min-height: 360px;
  }

  #topology-canvas {
    height: 360px;
  }

  .node-card {
    position: static;
    width: auto;
    margin: 0 14px 14px;
  }

  .section {
    padding: 62px 0;
  }

  .contact-section {
    padding: 24px;
  }
}

@media (max-width: 520px) {
  body {
    background-size: 34px 34px, 34px 34px, auto, auto, auto;
  }

  .page-shell {
    width: min(100% - 16px, var(--max));
  }

  .site-header {
    gap: 10px;
    padding: 10px;
  }

  .brand {
    gap: 10px;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
  }

  .brand strong {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .nav-cta {
    min-height: 40px;
    padding: 0 12px;
    font-size: 0.88rem;
  }

  .menu-toggle {
    width: 40px;
    height: 40px;
  }

  .intro-terminal {
    height: 250px;
    resize: vertical;
  }

  .intro-terminal-bar strong {
    max-width: 190px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .terminal-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .prompt {
    margin-right: 0;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .impact-strip {
    gap: 8px;
  }

  .readiness-track {
    grid-auto-columns: minmax(236px, 86vw);
    padding-bottom: 10px;
  }

  .topology-wrap {
    min-height: 330px;
  }

  #topology-canvas {
    height: 330px;
  }

  .terminal {
    font-size: 0.72rem;
  }

  .skill-controls {
    display: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 14px;
  }

  .skill-heading {
    margin-bottom: 14px;
  }

  .skill-heading h2 {
    font-size: clamp(1.7rem, 8vw, 2.2rem);
  }

  .skill-menu-toggle {
    display: grid;
  }

  .skills-section.skill-menu-open .skill-controls {
    display: grid;
  }

  .skill-controls button {
    padding: 0 10px;
    font-size: 0.86rem;
  }

  .skill-cloud {
    max-height: 232px;
    overflow: hidden;
    gap: 8px;
  }

  .skill-cloud > span {
    min-height: 36px;
    padding: 0 10px;
    font-size: 0.86rem;
  }

  .skill-cloud > span[data-mobile-priority="secondary"] {
    display: none;
  }

  .skills-section.skills-expanded .skill-cloud {
    max-height: none;
  }

  .skills-section.skills-expanded .skill-cloud > span[data-mobile-priority="secondary"] {
    display: inline-flex;
  }

  .skill-expand {
    display: inline-flex;
    width: 100%;
    align-items: center;
    justify-content: center;
  }

  .contact-card {
    min-height: 76px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
