:root {
  color-scheme: dark;
  --bg: #12121d;
  --bg-2: #171725;
  --panel: rgba(31, 30, 49, 0.72);
  --panel-solid: #1f1e31;
  --ink: #eef0ff;
  --muted: #a9add0;
  --soft: #7f84aa;
  --line: #34334d;
  --line-2: #45445f;
  --blue: #b4befe;
  --green: #a6e3a1;
  --pink: #f38ba8;
  --amber: #f9e2af;
  --sky: #89dceb;
  --shadow: 0 24px 80px rgba(4, 5, 14, 0.45);
  --radius: 16px;
  --max: 1140px;
  --sans: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  background:
    radial-gradient(ellipse 60rem 30rem at 15% -8%, rgba(180, 190, 254, 0.10), transparent),
    radial-gradient(ellipse 50rem 28rem at 90% 0%, rgba(166, 227, 161, 0.06), transparent),
    var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(180, 190, 254, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(180, 190, 254, 0.04) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}

::selection {
  background: rgba(180, 190, 254, 0.35);
  color: var(--ink);
}

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

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

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

/* ---------- progress bar ---------- */

.progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 3000;
  background: transparent;
}

#progress-bar {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--blue), var(--sky), var(--green));
}

.skip-link {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 4000;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--bg);
  font-weight: 700;
  transform: translateY(-250%);
}

.skip-link:focus { transform: translateY(0); }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: grid;
  grid-template-columns: minmax(0, auto) 1fr auto;
  align-items: center;
  gap: 18px;
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  padding: 18px 0 14px;
  background: linear-gradient(to bottom, rgba(18, 18, 29, 0.96), rgba(18, 18, 29, 0.78) 70%, transparent);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 0.95rem;
  font-weight: 700;
  white-space: nowrap;
}

.brand-name { color: var(--blue); }
.path { color: var(--soft); }

.cursor {
  width: 9px;
  height: 18px;
  margin-left: 2px;
  background: var(--blue);
  animation: blink 1.1s steps(2) infinite;
}

@keyframes blink { 50% { opacity: 0; } }

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 600;
}

.nav-links span { color: rgba(127, 132, 170, 0.4); }

.nav-links a {
  color: var(--muted);
  padding: 2px 1px;
  border-bottom: 1px dashed transparent;
  transition: color 140ms ease, border-color 140ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a.is-current {
  color: var(--ink);
  border-bottom-color: rgba(180, 190, 254, 0.6);
}

.nav-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 6px 14px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(15, 15, 25, 0.7);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
  transition: border-color 140ms ease, color 140ms ease;
}

.nav-action:hover,
.nav-action:focus-visible {
  border-color: rgba(180, 190, 254, 0.45);
  color: var(--ink);
}

.nav-action-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(166, 227, 161, 0.12);
  animation: pulse 2.6s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(166, 227, 161, 0.12); }
  50% { box-shadow: 0 0 0 7px rgba(166, 227, 161, 0.05); }
}

/* ---------- typography ---------- */

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

h1 {
  margin-bottom: 20px;
  font-size: clamp(2.6rem, 5.6vw, 4.3rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.02em;
}

h1 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--blue), var(--sky) 60%, var(--green));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.015em;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
}

.kicker {
  margin: 0 0 18px;
  color: var(--soft);
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.eyebrow {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 12px;
  color: var(--blue);
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.sec-index {
  color: var(--soft);
  font-weight: 600;
}

.sec-index::after {
  content: " /";
  color: rgba(127, 132, 170, 0.5);
}

.intro {
  max-width: 600px;
  margin-bottom: 26px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.65;
}

.role-sub {
  color: var(--soft);
  font-size: 0.88rem;
  font-weight: 500;
}

.section-note {
  margin: -10px 0 0;
  color: var(--soft);
  font-size: 0.9rem;
}

/* ---------- hero ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  padding: 72px 0 64px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 20px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: rgba(31, 30, 49, 0.8);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
  border-color: rgba(180, 190, 254, 0.45);
  box-shadow: 0 8px 30px rgba(4, 5, 14, 0.4);
}

.button.primary {
  border-color: transparent;
  background: linear-gradient(120deg, var(--blue), #c7cdfe);
  color: #14141f;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
}

.tags span {
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(31, 30, 49, 0.6);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 600;
}

/* ---------- terminal ---------- */

.hero-side {
  display: grid;
  gap: 12px;
}

.terminal {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(14, 14, 24, 0.92);
  box-shadow: var(--shadow);
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(23, 23, 37, 0.9);
}

.t-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.t-dot.red { background: #f38ba8; }
.t-dot.amber { background: #f9e2af; }
.t-dot.green { background: #a6e3a1; }

.terminal-title {
  margin-left: 8px;
  color: var(--soft);
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 600;
}

.terminal-body {
  min-height: 218px;
  padding: 16px 18px;
  font-family: var(--mono);
  font-size: 0.82rem;
  line-height: 1.75;
  white-space: pre-wrap;
  word-break: break-word;
}

.terminal-body .t-prompt { color: var(--green); }
.terminal-body .t-cmd { color: var(--ink); }
.terminal-body .t-out { color: var(--muted); }
.terminal-body .t-accent { color: var(--blue); }
.terminal-body .t-ok { color: var(--green); }
.terminal-body .t-warn { color: var(--amber); }

.terminal-caret {
  display: inline-block;
  width: 8px;
  height: 14px;
  vertical-align: -2px;
  background: var(--blue);
  animation: blink 1.1s steps(2) infinite;
}

/* ---------- stats ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
  box-shadow: var(--shadow);
}

.stats > a {
  min-height: 122px;
  padding: 22px;
  background: rgba(24, 24, 38, 0.92);
  transition: background 160ms ease;
}

.stats > a:hover,
.stats > a:focus-visible {
  background: rgba(37, 36, 58, 0.95);
}

.stats > a:hover strong {
  color: var(--sky);
}

.stats strong {
  display: block;
  color: var(--blue);
  font-family: var(--mono);
  font-size: clamp(1.9rem, 3.4vw, 2.9rem);
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.stats > a > span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

/* ---------- sections ---------- */

.section {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  padding: 68px 0;
  border-top: 1px solid rgba(52, 51, 77, 0.6);
}

.section-head {
  max-width: 720px;
  margin-bottom: 34px;
}

/* ---------- cards (shared) ---------- */

.service-list article,
.timeline article,
.work-grid article,
.stack-grid article,
.contact-card,
.location-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

/* ---------- services ---------- */

.service-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.service-list article {
  position: relative;
  overflow: hidden;
  padding: 22px;
  transition: transform 180ms ease, border-color 180ms ease;
}

.service-list article:hover {
  transform: translateY(-3px);
  border-color: rgba(180, 190, 254, 0.35);
}

.service-list article > span {
  display: block;
  margin-bottom: 16px;
  color: var(--blue);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
  opacity: 0.75;
}

.service-list article::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), transparent);
  opacity: 0;
  transition: opacity 180ms ease;
}

.service-list article:hover::after { opacity: 1; }

.service-list p {
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
}

/* ---------- timeline ---------- */

.timeline {
  position: relative;
  display: grid;
  gap: 14px;
}

.timeline article {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 26px;
  padding: 24px;
}

.timeline-meta {
  display: grid;
  align-content: start;
  gap: 5px;
}

.timeline time {
  color: var(--blue);
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 700;
}

.timeline time[data-needs-date] {
  justify-self: start;
  padding: 1px 7px;
  border-radius: 5px;
  background: rgba(249, 226, 175, 0.12);
  color: var(--amber);
}

.employer {
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 600;
}

.timeline p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

/* ---------- work ---------- */

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

.work-grid article {
  display: flex;
  flex-direction: column;
  padding: 20px;
  transition: transform 180ms ease, border-color 180ms ease;
}

.work-grid article:hover {
  transform: translateY(-3px);
  border-color: rgba(166, 227, 161, 0.35);
}

.work-grid article > span {
  display: block;
  margin-bottom: 14px;
  color: var(--sky);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.work-grid p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.88rem;
}

.work-result {
  margin-top: auto !important;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  color: var(--green) !important;
  font-family: var(--mono);
  font-size: 0.76rem !important;
  font-weight: 600;
}

/* ---------- stack ---------- */

.stack-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.stack-grid article { padding: 20px; }

.stack-grid article > span {
  display: block;
  margin-bottom: 14px;
  color: var(--blue);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.chips li {
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(37, 36, 58, 0.65);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.75rem;
  transition: color 140ms ease, border-color 140ms ease;
}

.chips li:hover {
  border-color: rgba(180, 190, 254, 0.4);
  color: var(--ink);
}

/* ---------- reviews marquee ---------- */

.reviews-section { padding-bottom: 30px; }

.marquee {
  display: grid;
  gap: 14px;
  padding: 6px 0 60px;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 6%, black 94%, transparent);
}

.marquee-row { overflow: hidden; }

.marquee-track {
  display: flex;
  gap: 14px;
  width: max-content;
  animation: marquee 52s linear infinite;
}

.marquee-track.reverse { animation: marquee-rev 44s linear infinite; }

.marquee-row:hover .marquee-track { animation-play-state: paused; }

@keyframes marquee {
  to { transform: translateX(calc(-50% - 7px)); }
}

@keyframes marquee-rev {
  from { transform: translateX(calc(-50% - 7px)); }
  to { transform: translateX(0); }
}

.marquee blockquote {
  flex-shrink: 0;
  max-width: 400px;
  margin: 0;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.marquee blockquote p {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 0.9rem;
}

.marquee blockquote p::before { content: "\201C"; color: var(--blue); }
.marquee blockquote p::after { content: "\201D"; color: var(--blue); }

.marquee cite {
  color: var(--soft);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 600;
}

/* ---------- contact ---------- */

.contact-section {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 26px;
  align-items: start;
}

.contact-card { padding: 30px; }

.contact-card p { color: var(--muted); }

.contact-methods {
  display: grid;
  gap: 10px;
  margin: 24px 0;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(37, 36, 58, 0.65);
  transition: border-color 160ms ease, transform 160ms ease;
}

.contact-method:hover,
.contact-method:focus-visible {
  border-color: rgba(180, 190, 254, 0.45);
  transform: translateY(-2px);
}

.contact-method svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  fill: none;
  stroke: var(--blue);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.contact-method-text {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.contact-method-text small {
  color: var(--soft);
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-method-text strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contact-warning {
  margin: 0;
  padding: 12px 14px;
  border: 1px dashed rgba(249, 226, 175, 0.5);
  border-radius: 10px;
  background: rgba(249, 226, 175, 0.07);
  color: var(--amber);
  font-size: 0.85rem;
}

.contact-side {
  display: grid;
  gap: 14px;
}

/* ---------- location / map ---------- */

.location-card { overflow: hidden; }

.location-title {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 9px;
  padding: 12px 14px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(15, 15, 25, 0.55);
  color: var(--soft);
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}

.pin-icon {
  width: 7px;
  height: 7px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 0 4px rgba(243, 139, 168, 0.15);
}

.map-card {
  position: relative;
  height: 170px;
  background: #0e0e18;
}

.map-loading {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  color: var(--soft);
  font-family: var(--mono);
  font-size: 0.76rem;
}

.map-label {
  position: absolute;
  bottom: 8px;
  left: 12px;
  z-index: 500;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  pointer-events: none;
  text-shadow: 0 1px 8px rgba(4, 5, 14, 0.95);
}

.location-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 14px;
  border-top: 1px solid var(--line);
}

.location-place {
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

.location-place:hover { color: var(--blue); }

.location-row .mono {
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
}

.leaflet-container {
  background: #0e0e18;
  font-family: var(--mono);
}

.leaflet-tile-pane { filter: saturate(0.5) brightness(0.75) contrast(1.06); }

.leaflet-control-attribution {
  background: rgba(15, 15, 25, 0.7) !important;
  color: var(--soft) !important;
  font-size: 9px !important;
}

.leaflet-control-attribution a { color: var(--soft) !important; }

.leaflet-control-zoom a {
  border-color: var(--line) !important;
  background: rgba(18, 18, 29, 0.92) !important;
  color: var(--muted) !important;
}

.leaflet-control-zoom a:hover {
  background: rgba(31, 30, 49, 0.95) !important;
  color: var(--ink) !important;
}

.map-marker {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 0 5px rgba(243, 139, 168, 0.25), 0 0 0 10px rgba(243, 139, 168, 0.1);
}

/* ---------- certs ---------- */

.certs {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.certs a,
.cert-progress,
.cert-static {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--panel);
  color: var(--ink);
}

.certs a,
.cert-static { transition: border-color 140ms ease, transform 140ms ease; }

.certs a:hover,
.certs a:focus-visible,
.cert-static:hover {
  border-color: rgba(180, 190, 254, 0.45);
  transform: translateY(-1px);
}

.certs span { font-weight: 600; font-size: 0.92rem; }

.certs em {
  color: var(--soft);
  font-family: var(--mono);
  font-size: 0.74rem;
  font-style: normal;
  white-space: nowrap;
}

.cert-progress {
  border-style: dashed;
  opacity: 0.85;
}

.cert-progress em { color: var(--amber); }

/* ---------- footer ---------- */

.site-footer {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  padding: 10px 0 46px;
  color: var(--muted);
}

.footer-pill {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(15, 15, 25, 0.6);
  color: var(--soft);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.footer-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 70px;
  padding: 18px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(15, 15, 25, 0.7);
  font-size: 0.88rem;
}

.footer-cluster {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.footer-separator { color: var(--line-2); }

.nominal {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.nominal i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(166, 227, 161, 0.12);
}

.footer-signal {
  color: var(--soft);
  font-family: var(--mono);
  font-size: 0.78rem;
}

.session,
#commit-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-variant-numeric: tabular-nums;
}

#commit-link:hover,
#commit-link:focus-visible { color: var(--blue); }

.footer-signal svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-links svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

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

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

/* ---------- reveal ---------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms cubic-bezier(0.2, 0.7, 0.3, 1), transform 600ms cubic-bezier(0.2, 0.7, 0.3, 1);
}

[data-reveal].revealed {
  opacity: 1;
  transform: none;
}

.no-observer [data-reveal] {
  opacity: 1;
  transform: none;
}

/* ---------- responsive ---------- */

@media (max-width: 1060px) {
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .service-list, .stack-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 920px) {
  .hero { grid-template-columns: 1fr; padding-top: 52px; }
  .hero-side { max-width: 560px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .contact-section { grid-template-columns: 1fr; }
  .timeline article { grid-template-columns: 1fr; gap: 12px; }
  .site-header { grid-template-columns: 1fr auto; row-gap: 8px; }
  .nav-links { grid-column: 1 / -1; order: 3; justify-content: flex-start; }
}

@media (max-width: 640px) {
  body { font-size: 15.5px; }

  .site-header { width: calc(100% - 32px); padding-top: 14px; }

  .nav-links {
    gap: 9px;
    overflow-x: auto;
    padding-bottom: 4px;
    font-size: 0.8rem;
    scrollbar-width: none;
  }

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

  .hero, .section, .site-footer, .stats { width: calc(100% - 32px); }

  .stats, .service-list, .work-grid, .stack-grid { grid-template-columns: 1fr; }

  .button { flex: 1; }

  .marquee blockquote { max-width: 300px; }

  .footer-bar { flex-direction: column; align-items: flex-start; }
}

/* ---------- reduced motion ---------- */

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

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

  .marquee-track,
  .marquee-track.reverse { animation: none; }

  .marquee-row { overflow-x: auto; }

  [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- print ---------- */

@media print {
  body { background: #fff; color: #111; font-size: 10.5pt; }

  body::before,
  .progress,
  .site-header,
  .skip-link,
  .actions,
  .terminal,
  .hero-status,
  .location-card,
  .marquee,
  .footer-pill,
  .footer-signal,
  .footer-links { display: none !important; }

  .hero { grid-template-columns: 1fr; padding-top: 0; }

  .section { padding: 14pt 0; break-inside: avoid; }

  .service-list article,
  .timeline article,
  .work-grid article,
  .stack-grid article,
  .contact-card,
  .stats,
  .footer-bar,
  .certs a,
  .cert-progress {
    border-color: #ccc;
    background: #fff !important;
    box-shadow: none;
    break-inside: avoid;
  }

  h1 em { color: #111; background: none; }

  .eyebrow, .stats strong, .service-list article > span,
  .work-grid article > span, .timeline time { color: #1a3a8f !important; }

  .work-result { color: #1a6b2a !important; }

  .intro, .service-list p, .timeline p, .work-grid p,
  .chips li, .contact-card p { color: #333 !important; }

  .service-list, .stack-grid { grid-template-columns: repeat(2, 1fr); }
  .work-grid { grid-template-columns: repeat(2, 1fr); }

  a { color: #111; }
  h1 { font-size: 22pt; }
  h2 { font-size: 14pt; }

  .contact-form { display: none !important; }
}

/* ---------- contact form ---------- */

.contact-form {
  display: grid;
  gap: 14px;
  margin: 22px 0 0;
}

.contact-form[hidden] { display: none; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.contact-form label {
  display: grid;
  gap: 6px;
}

.contact-form label > span {
  color: var(--soft);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: rgba(15, 15, 25, 0.6);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.95rem;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

.contact-form textarea {
  resize: vertical;
  min-height: 110px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: rgba(180, 190, 254, 0.55);
  box-shadow: 0 0 0 3px rgba(180, 190, 254, 0.12);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--soft);
}

.hp-field {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.form-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.form-foot .button {
  border: 0;
  cursor: pointer;
}

.form-foot .button:disabled {
  opacity: 0.6;
  cursor: wait;
  transform: none;
}

.form-status {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--soft);
}

.form-status.is-ok { color: var(--green); }
.form-status.is-error { color: var(--pink); }

@media (max-width: 680px) {
  .form-row { grid-template-columns: 1fr; }
}
