/* Mr A Tech — single stylesheet, no build step.
   This file does not include the site domain. See SITE-CONFIG.md. */

:root {
  --bg: #F5F5F7;
  --bg-elevated: #FFFFFF;
  --text: #111114;
  --text-2: #3A3A40;
  --muted: #6B6B73;
  --faint: #8E8E96;
  --line: rgba(17, 17, 20, 0.08);
  --line-strong: rgba(17, 17, 20, 0.12);
  --accent: #155EEF;
  --accent-hover: #0B4FD6;
  --accent-2: #4F46E5;
  --accent-soft: #EEF3FF;
  --glow: rgba(21, 94, 239, 0.28);
  --glass: rgba(255, 255, 255, 0.72);
  --glass-2: rgba(255, 255, 255, 0.92);
  --shadow-sm: 0 1px 2px rgba(17, 17, 20, 0.04);
  --shadow: 0 1px 2px rgba(17, 17, 20, 0.04), 0 12px 32px rgba(17, 17, 20, 0.06);
  --shadow-hover: 0 1px 2px rgba(17, 17, 20, 0.05), 0 18px 40px rgba(17, 17, 20, 0.10);
  --shadow-glow: 0 0 0 1px rgba(21, 94, 239, 0.32), 0 0 24px rgba(21, 94, 239, 0.18), 0 18px 40px rgba(17, 17, 20, 0.08);
  --radius: 20px;
  --radius-sm: 14px;
  --font-display: Geist, Inter, ui-sans-serif, system-ui, sans-serif;
  --font-body: Geist, Inter, ui-sans-serif, system-ui, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --max: 1120px;
  --header-h: 64px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 1.0625rem;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(820px 540px at 82% -10%, rgba(21, 94, 239, 0.16), transparent 62%),
    radial-gradient(620px 460px at 8% 6%, rgba(79, 70, 229, 0.09), transparent 58%),
    radial-gradient(540px 420px at 50% 110%, rgba(21, 94, 239, 0.07), transparent 70%),
    var(--bg);
}

.page-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(17, 17, 20, 0.09) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(ellipse at 50% 12%, #000 12%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 12%, #000 12%, transparent 72%);
  animation: grid-shift 28s linear infinite;
}

.page-bg::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 140px;
  background: linear-gradient(to bottom, transparent, rgba(21, 94, 239, 0.045), transparent);
  animation: scanline 11s ease-in-out infinite;
  pointer-events: none;
}

@keyframes grid-shift {
  from { background-position: 0 0; }
  to { background-position: 22px 22px; }
}

@keyframes scanline {
  0% { top: -140px; }
  100% { top: 100%; }
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 80;
  background: var(--text);
  color: var(--bg-elevated);
  padding: 0.6rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
}

.skip:focus { top: 1rem; }

.wrap {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  display: flex;
  align-items: center;
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  background: rgba(245, 245, 247, 0.72);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
}

.logo-link {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  text-decoration: none;
}

.logo-link img {
  height: 32px;
  width: auto;
}

.nav-toggle { display: none; }

.nav-burger {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-burger span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.15rem 1.35rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 0.3rem 0;
  transition: color 0.2s ease;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: -0.015em;
  border-radius: 12px;
  padding: 0.8rem 1.2rem;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn-primary {
  color: #fff;
  background: var(--accent);
  box-shadow: 0 1px 2px rgba(21, 94, 239, 0.18), 0 8px 20px rgba(21, 94, 239, 0.22);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(21, 94, 239, 0.4), 0 0 22px rgba(21, 94, 239, 0.35), 0 12px 24px rgba(21, 94, 239, 0.28);
}

.btn-ghost {
  color: var(--text);
  background: var(--bg-elevated);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: rgba(21, 94, 239, 0.45);
  box-shadow: 0 0 0 1px rgba(21, 94, 239, 0.22), 0 0 18px rgba(21, 94, 239, 0.16);
}

.btn-sm { padding: 0.5rem 0.95rem; font-size: 0.875rem; border-radius: 10px; }

.hero {
  padding: 5.5rem 0 4.75rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: lowercase;
  color: var(--accent);
  margin-bottom: 1.2rem;
}

.section-kicker { margin-bottom: 0.75rem; }

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(21, 94, 239, 0.16);
  animation: pulse-dot 2.4s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 4px rgba(21, 94, 239, 0.16); }
  50% { box-shadow: 0 0 0 6px rgba(21, 94, 239, 0.08), 0 0 12px rgba(21, 94, 239, 0.45); }
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.5rem, 5.8vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.055em;
  max-width: 12ch;
  margin-bottom: 1rem;
  color: var(--text);
}

.hero-prompt {
  font-family: var(--font-mono);
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: -0.02em;
  margin-bottom: 1.15rem;
  min-height: 1.5em;
}

.prompt-prefix {
  color: var(--faint);
  margin-right: 0.15rem;
}

.cursor {
  display: inline-block;
  width: 0.55ch;
  height: 1.05em;
  margin-left: 0.08em;
  background: var(--accent);
  vertical-align: text-bottom;
  animation: blink 1.1s steps(1) infinite;
}

@keyframes blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

.hero-lead {
  max-width: 36rem;
  color: var(--muted);
  font-size: 1.125rem;
  line-height: 1.65;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.hero-visual {
  position: relative;
  min-height: 340px;
}

.circuit {
  position: absolute;
  inset: -18px -10px;
  width: calc(100% + 20px);
  height: calc(100% + 36px);
  pointer-events: none;
  z-index: 0;
}

.circuit .node {
  animation: node-pulse 2.8s ease-in-out infinite;
}

.circuit .node-delay { animation-delay: 1.1s; }

@keyframes node-pulse {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

.browser-frame {
  position: relative;
  z-index: 1;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow), 0 0 0 1px rgba(21, 94, 239, 0.04);
  overflow: hidden;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.browser-frame:hover {
  border-color: rgba(21, 94, 239, 0.28);
  box-shadow: var(--shadow-glow);
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.85rem;
  border-bottom: 1px solid var(--line);
  background: #F7F7F9;
}

.browser-dots { display: flex; gap: 6px; flex: 0 0 auto; }

.browser-dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #D1D1D6;
}

.browser-dots i:nth-child(1) { background: #FF5F57; }
.browser-dots i:nth-child(2) { background: #FEBC2E; }
.browser-dots i:nth-child(3) { background: #28C840; }

.browser-url {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.3rem 0.6rem;
  letter-spacing: 0.01em;
}

.url-lock {
  width: 8px;
  height: 8px;
  border: 1.4px solid var(--faint);
  border-radius: 2px 2px 1px 1px;
  position: relative;
  flex: 0 0 auto;
}

.url-lock::before {
  content: "";
  position: absolute;
  width: 5px;
  height: 4px;
  border: 1.3px solid var(--faint);
  border-bottom: 0;
  border-radius: 4px 4px 0 0;
  left: 0.3px;
  top: -4px;
}

.terminal {
  position: relative;
  padding: 1.35rem 1.4rem 1.25rem;
  min-height: 248px;
  background:
    linear-gradient(180deg, rgba(21, 94, 239, 0.03), transparent 42%),
    repeating-linear-gradient(
      to bottom,
      transparent 0 27px,
      rgba(17, 17, 20, 0.025) 27px 28px
    ),
    #fff;
  font-family: var(--font-mono);
}

.term-cmd {
  color: var(--text-2);
  font-size: 0.92rem;
  margin-bottom: 1.1rem;
}

.term-prompt {
  color: var(--accent);
  margin-right: 0.45rem;
}

.term-status {
  list-style: none;
  display: grid;
  gap: 0.7rem;
}

.term-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.92rem;
  color: var(--text);
  letter-spacing: -0.01em;
  opacity: 0;
  animation: term-in 0.45s ease forwards;
  animation-delay: calc(0.45s + var(--d, 0) * 0.2s);
}

@keyframes term-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.check {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1px solid rgba(21, 94, 239, 0.28);
  position: relative;
  flex: 0 0 auto;
}

.check::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 2px;
  width: 5px;
  height: 9px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg);
}

.term-cursor-line {
  margin-top: 1.15rem;
  min-height: 1.1em;
}

.section { padding: 4.5rem 0; }

.section-head {
  max-width: 38rem;
  margin-bottom: 2.35rem;
}

h2 {
  font-family: var(--font-display);
  font-weight: 650;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  letter-spacing: -0.04em;
  line-height: 1.12;
  margin-bottom: 0.75rem;
}

.section-head p,
.prose p { color: var(--muted); }

.prose p + p { margin-top: 1rem; }

.prose a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid rgba(21, 94, 239, 0.45);
}

.prose a:hover { color: var(--accent); border-bottom-color: var(--accent); }

.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.1rem;
}

.card {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem 1.55rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(21, 94, 239, 0.4);
  box-shadow: var(--shadow-glow);
}

.icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 1.1rem;
  background: var(--accent-soft);
  border: 1px solid rgba(21, 94, 239, 0.12);
  color: var(--accent);
}

.icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: -0.03em;
  font-weight: 600;
  margin-bottom: 0.45rem;
}

.card p {
  color: var(--muted);
  font-size: 0.98rem;
}

.card-more {
  display: inline-block;
  margin-top: 0.15rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.card-more:hover,
.card-more:focus-visible {
  color: var(--accent-hover, #1248c4);
  border-bottom-color: currentColor;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.5rem;
  align-items: stretch;
}

.profile {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.15rem;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.22s ease, box-shadow 0.22s ease;
}

.profile:hover {
  border-color: rgba(21, 94, 239, 0.32);
  box-shadow: var(--shadow-glow);
}

.profile-top {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.avatar {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.05em;
  font-size: 1.05rem;
  color: #fff;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  flex: 0 0 auto;
}

.profile h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: -0.03em;
  font-weight: 600;
}

.profile .role { color: var(--muted); font-size: 0.92rem; }

.profile dl { display: grid; gap: 0.75rem; }

.profile dt {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  font-weight: 500;
  margin-bottom: 0.15rem;
}

.profile dd { font-size: 0.98rem; color: var(--text-2); }

.profile a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid rgba(21, 94, 239, 0.35);
}

.profile a:hover { border-bottom-color: var(--accent); color: var(--accent); }

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  list-style: none;
}

.step {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.15rem 1.45rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.step:hover {
  transform: translateY(-3px);
  border-color: rgba(21, 94, 239, 0.4);
  box-shadow: var(--shadow-glow);
}

.step-num {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.9rem;
}

.step h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: -0.03em;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.step p { color: var(--muted); font-size: 0.95rem; }

.faq-list { display: grid; gap: 0.7rem; }

.faq-list details {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0 1.15rem;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-list details[open],
.faq-list details:hover {
  border-color: rgba(21, 94, 239, 0.32);
  box-shadow: 0 0 0 1px rgba(21, 94, 239, 0.08), 0 0 18px rgba(21, 94, 239, 0.1);
}

.faq-list summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.025em;
  padding: 1.05rem 1.8rem 1.05rem 0;
  position: relative;
}

.faq-list summary::-webkit-details-marker { display: none; }

.faq-list summary::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s ease;
}

.faq-list details[open] summary::after {
  transform: translateY(-20%) rotate(225deg);
}

.faq-list details p {
  color: var(--muted);
  padding: 0 0 1.15rem;
}

.contact-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 2.1rem;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.contact-panel::before {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  right: -80px;
  bottom: -100px;
  background: radial-gradient(circle, rgba(21, 94, 239, 0.14), rgba(79, 70, 229, 0.08), transparent 70%);
  pointer-events: none;
}

.contact-methods {
  display: grid;
  gap: 0.8rem;
  position: relative;
  align-content: center;
}

.contact-link {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  text-decoration: none;
  padding: 1rem 1.1rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--bg);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-link:hover,
.contact-link:focus-visible {
  border-color: rgba(21, 94, 239, 0.45);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.contact-link span {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
  font-weight: 500;
}

.contact-link strong {
  font-family: var(--font-display);
  font-size: 1.12rem;
  letter-spacing: -0.03em;
  font-weight: 600;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0 2.4rem;
  margin-top: 1rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
  align-items: center;
}

.footer-brand { display: flex; flex-direction: column; gap: 0.7rem; }

.footer-brand img { height: 28px; width: auto; }

.footer-meta, .footer-meta a {
  color: var(--faint);
  font-size: 0.875rem;
  text-decoration: none;
}

.footer-meta a:hover { color: var(--text); }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1.2rem;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-links a:hover { color: var(--text); }

.page-404 {
  min-height: calc(100vh - var(--header-h) - 8rem);
  display: grid;
  align-content: center;
  padding: 4rem 0;
}

.page-404 h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.4rem);
  letter-spacing: -0.05em;
  font-weight: 700;
  margin: 0.4rem 0 1rem;
}

.page-404 p { color: var(--muted); max-width: 32rem; margin-bottom: 1.6rem; }

code, .mono { font-family: var(--font-mono); }

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

/* Scroll reveal — only hidden when JS is available */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.js .reveal.is-visible,
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }

@media (max-width: 900px) {
  .cards, .steps { grid-template-columns: 1fr 1fr; }
  .about-grid, .contact-panel, .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; min-height: 0; }
  .hero h1 { max-width: none; }
  .terminal { min-height: 220px; }
}

@media (max-width: 720px) {
  :root { --header-h: 60px; }

  .nav-burger { display: flex; }

  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem 1.25rem 1.1rem;
    background: var(--glass-2);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line);
  }

  .site-nav a, .site-nav .btn { width: 100%; }
  .site-nav a { padding: 0.7rem 0.2rem; }

  .nav-toggle:checked ~ .site-nav { display: flex; }

  .nav-toggle:checked + .nav-burger span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .nav-toggle:checked + .nav-burger span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked + .nav-burger span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

  .hero { padding: 2.5rem 0 3rem; }
  .cards, .steps { grid-template-columns: 1fr; }
  .contact-panel { padding: 1.35rem; }
  .circuit { display: none; }
  .terminal { min-height: 200px; padding: 1.1rem 1.1rem 1rem; }
}

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

  .js .reveal,
  .card,
  .step,
  .btn,
  .contact-link,
  .nav-burger span,
  .term-row,
  .page-bg::before,
  .page-bg::after,
  .cursor,
  .eyebrow-dot,
  .circuit .node {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }
}

/* Screenshot mode: show final state, no blinking cursor, no motion */
html.screenshot .js .reveal,
html.screenshot .term-row {
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
  transition: none !important;
}

html.screenshot .cursor,
html.screenshot .eyebrow-dot,
html.screenshot .page-bg::before,
html.screenshot .page-bg::after,
html.screenshot .circuit .node {
  animation: none !important;
}

html.screenshot .cursor { opacity: 1; }

/* keep primary button text white everywhere (nav included) */
a.btn-primary, a.btn-primary:visited, .nav a.btn-primary, header a.btn-primary { color: #fff !important; }

/* Article / guide pages (staging) */
.article-wrap {
  width: min(46rem, calc(100% - 2.5rem));
  margin-inline: auto;
}
.article-hero { padding: 3.6rem 0 1.6rem; }
.article-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.15rem);
  letter-spacing: -0.05em;
  font-weight: 700;
  line-height: 1.08;
  margin: 0.45rem 0 1.15rem;
}
.article-lead {
  font-size: 1.125rem;
  color: var(--text-2);
  line-height: 1.7;
}
.article-lead + .article-lead { margin-top: 1rem; }
.article-byline {
  margin-top: 1.3rem;
  font-size: 0.92rem;
  color: var(--muted);
}
.article-body { padding: 0.5rem 0 4.5rem; }
.article-body .prose p { color: var(--text-2); }
.article-body h2 {
  margin-top: 2.55rem;
  margin-bottom: 0.85rem;
}
.article-body h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: -0.03em;
  font-weight: 600;
  margin: 1.7rem 0 0.55rem;
}
.article-body ul,
.article-body ol {
  color: var(--text-2);
  margin: 0.85rem 0 1.1rem 1.2rem;
}
.article-body li + li { margin-top: 0.45rem; }
.article-body .faq-list { margin-top: 1.25rem; }
.article-cta { margin-top: 2.8rem; }
.article-crumbs {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 1rem;
}
.article-crumbs a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.article-crumbs a:hover { color: var(--text); border-bottom-color: var(--line-strong); }
@media (max-width: 1100px) {
  .site-nav { gap: 0.1rem 1rem; }
  .site-nav a { font-size: 0.88rem; }
}


/* Blog index and article answer summary */
.article-answer {
  margin: 1.25rem 0 0;
  padding: 1.15rem 1.25rem 1.2rem;
  background: var(--accent-soft);
  border: 1px solid rgba(21, 94, 239, 0.14);
  border-radius: var(--radius-sm);
}
.article-answer-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.45rem;
}
.article-answer > p:not(.article-answer-label) {
  color: var(--text-2);
  font-size: 1.05rem;
  line-height: 1.7;
}
.blog-index { padding: 3.6rem 0 4.5rem; }
.blog-intro {
  width: min(46rem, 100%);
}
.blog-intro h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.15rem);
  letter-spacing: -0.05em;
  font-weight: 700;
  line-height: 1.08;
  margin: 0.45rem 0 1.15rem;
}
.blog-intro .article-lead { margin-bottom: 2rem; }
.blog-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.15rem;
}
.blog-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.55rem 1.5rem 1.45rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}
.blog-card:hover,
.blog-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(21, 94, 239, 0.4);
  box-shadow: var(--shadow-glow);
}
.blog-card-meta {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 0.7rem;
}
.blog-card h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: -0.04em;
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 0.65rem;
}
.blog-card p {
  color: var(--text-2);
  font-size: 0.98rem;
  flex: 1;
}
.blog-card-more {
  margin-top: 1.1rem;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--accent);
}
@media (max-width: 720px) {
  .blog-cards { grid-template-columns: 1fr; }
}

/* Client portal link (discreet) */
.footer-links a.footer-client-login { opacity: .72; }
.footer-links a.footer-client-login:hover { opacity: 1; }

/* Client login button (header) */
.btn-outline {
  color: var(--accent);
  background: transparent;
  border-color: var(--accent);
}
.site-nav a.btn-outline { color: var(--accent); padding: 0.3rem 0.9rem; }
.btn-outline:hover,
.btn-outline:focus-visible {
  color: var(--accent-hover);
  background: var(--accent-soft);
  border-color: var(--accent-hover);
}
.site-nav a.btn-outline:hover, .site-nav a.btn-outline:focus-visible { color: var(--accent-hover); }
@media (max-width: 720px) {
  .site-nav a.nav-client-login { margin: 0.5rem 0 0.5rem; padding: 0.7rem 0.95rem; }
}
