/* ============ DESIGN TOKENS ============ */
:root {
  --accent: #e8372a;
  --accent-a: #d1301f; /* AA-accessible shade for text/buttons */
  --accent-rgb: 232, 55, 42;
  --mono-glow: #6ee7b7;

  --bg: #fdfcfb;
  --bg-alt: #f4f2ef;
  --surface: #ffffff;
  --ink: #15141a;
  --ink-soft: #57545f;
  --line: #e7e4df;
  --shadow: 0 10px 30px rgba(21, 20, 26, 0.06);
  --code-bg: #14141a;
  --code-ink: #e9e8ec;
  --code-line: #2a2932;

  --font-display: "Sora", sans-serif;
  --font-body: "DM Sans", sans-serif;
  --font-mono: "JetBrains Mono", monospace;

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-pill: 999px;
  --container: 1140px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}
[data-theme="dark"] {
  --bg: #111015;
  --bg-alt: #17161c;
  --surface: #1b1a21;
  --ink: #f3f2f6;
  --ink-soft: #a7a3b0;
  --line: #2c2b33;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  --code-bg: #0b0b0f;
  --code-ink: #e9e8ec;
  --code-line: #242330;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  transition:
    background 0.25s var(--ease),
    color 0.25s var(--ease);
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.15;
  margin: 0;
}
p {
  margin: 0;
}
ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
button {
  font-family: inherit;
  cursor: pointer;
}
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-a);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
[data-theme="dark"] .eyebrow {
  color: #ff8a7a;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: currentColor;
  display: inline-block;
}
h2.section-title {
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}
.section-lede {
  color: var(--ink-soft);
  font-size: 1.05rem;
  max-width: 640px;
  margin-bottom: 44px;
}
section {
  padding: 88px 0;
}
.section-alt {
  background: var(--bg-alt);
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--accent-a);
  color: #fff;
  padding: 12px 18px;
  border-radius: var(--r-sm);
  z-index: 999;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
}

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

/* ============ NAVBAR ============ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
}
.brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.2s var(--ease);
  position: relative;
}
.nav-links a:hover {
  color: var(--ink);
}
.nav-links a[aria-current="page"] {
  color: var(--accent-a);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    border-color 0.2s var(--ease),
    transform 0.15s var(--ease);
}
.icon-btn:hover {
  border-color: var(--accent-a);
  transform: translateY(-1px);
}
.icon-btn svg {
  width: 19px;
  height: 19px;
  stroke: var(--ink);
}
.theme-icon-dark,
[data-theme="dark"] .theme-icon-light {
  display: none;
}
[data-theme="dark"] .theme-icon-dark {
  display: block;
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 42px;
  height: 42px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--surface);
  align-items: center;
  justify-content: center;
}
.hamburger span {
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition:
    transform 0.25s var(--ease),
    opacity 0.2s var(--ease);
}
body.nav-open .hamburger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
body.nav-open .hamburger span:nth-child(2) {
  opacity: 0;
}
body.nav-open .hamburger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-panel {
  display: none;
  position: fixed;
  inset: 72px 0 0 0;
  background: var(--bg);
  z-index: 99;
  padding: 28px 24px;
  overflow-y: auto;
}
body.nav-open .mobile-panel {
  display: block;
}
.mobile-panel ul {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mobile-panel a {
  display: block;
  padding: 16px 4px;
  font-size: 1.15rem;
  font-weight: 600;
  border-bottom: 1px solid var(--line);
}
.mobile-panel a[aria-current="page"] {
  color: var(--accent-a);
}

/* Breadcrumb */
.breadcrumb {
  padding: 18px 0 0;
}
.breadcrumb ol {
  display: flex;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.85rem;
  color: var(--ink-soft);
}
.breadcrumb a {
  color: var(--ink-soft);
}
.breadcrumb a:hover {
  color: var(--accent-a);
}
.breadcrumb li:not(:last-child)::after {
  content: "/";
  margin-left: 8px;
  color: var(--line);
}
.breadcrumb li[aria-current] {
  color: var(--ink);
  font-weight: 600;
}

/* ============ HERO ============ */
.hero {
  padding: 56px 0 56px;
}
.hero-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 56px;
  align-items: center;
}
.hero-photo-wrap {
  position: relative;
  width: 240px;
  height: 240px;
}
.hero-photo {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: linear-gradient(155deg, var(--accent) 0%, #7a1710 130%);
  box-shadow: var(--shadow);
}
.hero-photo-initial {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 4.6rem;
  color: #fff;
  opacity: 0.92;
}
.hero-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-frame {
  position: absolute;
  inset: -10px;
  border-radius: calc(var(--r-lg) + 6px);
  pointer-events: none;
}
.hero-frame::before,
.hero-frame::after {
  content: "";
  position: absolute;
  width: 26px;
  height: 26px;
  border-color: var(--accent-a);
}
.hero-frame::before {
  top: -4px;
  left: -4px;
  border-top: 3px solid;
  border-left: 3px solid;
  border-radius: 6px 0 0 0;
}
.hero-frame::after {
  bottom: -4px;
  right: -4px;
  border-bottom: 3px solid;
  border-right: 3px solid;
  border-radius: 0 0 6px 0;
}
.hero-copy .eyebrow {
  margin-bottom: 18px;
}
.hero-copy h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.hero-copy h1 span {
  color: var(--accent-a);
}
.hero-intro {
  font-size: 1.2rem;
  color: var(--ink-soft);
  margin-top: 16px;
  max-width: 520px;
}
.hero-social {
  display: flex;
  gap: 12px;
  margin-top: 28px;
}
.social-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 18px 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-size: 0.9rem;
  font-weight: 600;
  background: var(--surface);
  transition:
    border-color 0.2s var(--ease),
    transform 0.15s var(--ease);
}
.social-pill:hover {
  border-color: var(--accent-a);
  transform: translateY(-2px);
}
.social-pill svg {
  width: 17px;
  height: 17px;
}
.hero-status {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin-top: 30px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.hero-status .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18);
}

/* ============ ABOUT ME ============ */
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.about-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 28px;
  transition:
    transform 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}
.about-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.about-card .k {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-a);
  margin-bottom: 12px;
  display: block;
}
.about-card p {
  color: var(--ink-soft);
  font-size: 0.98rem;
}
.about-card p + p {
  margin-top: 10px;
}
.about-card strong {
  color: var(--ink);
}

/* ============ JOURNEY TIMELINE ============ */
.timeline {
  position: relative;
  max-width: 760px;
}
.timeline-item {
  position: relative;
  padding-left: 44px;
  padding-bottom: 44px;
}
.timeline-item:last-child {
  padding-bottom: 0;
}
.timeline-item::before {
  /* rail */
  content: "";
  position: absolute;
  left: 9px;
  top: 26px;
  bottom: -18px;
  width: 2px;
  background: var(--line);
}
.timeline-item:last-child::before {
  display: none;
}
.timeline-dot {
  position: absolute;
  left: 0;
  top: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--accent-a);
  display: flex;
  align-items: center;
  justify-content: center;
}
.timeline-dot::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-a);
}
.timeline-item h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.timeline-item p {
  color: var(--ink-soft);
}
.timeline-item .tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-a);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 6px;
}

/* ============ ABOUT PDFMASTER + COMPARISON ============ */
.pm-lede {
  color: var(--ink-soft);
  font-size: 1.05rem;
  max-width: 700px;
  margin-bottom: 20px;
}
.pm-lede + .pm-lede {
  margin-top: -8px;
}
.compare {
  margin-top: 40px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.compare-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
}
.compare-row + .compare-row {
  border-top: 1px solid var(--line);
}
.compare-row > div {
  padding: 16px 20px;
  font-size: 0.92rem;
}
.compare-row.head {
  background: var(--bg-alt);
}
.compare-row.head > div {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
  font-weight: 600;
}
.compare-row.head > div:last-child {
  color: var(--accent-a);
}
.compare-row > div:first-child {
  font-weight: 600;
  color: var(--ink);
}
.compare-row > div:nth-child(2) {
  color: var(--ink-soft);
}
.compare-row > div:nth-child(2)::before {
  content: "✕ ";
  color: #c94b3f;
}
.compare-row > div:last-child {
  color: var(--ink);
  font-weight: 600;
  background: rgba(var(--accent-rgb), 0.06);
}
.compare-row > div:last-child::before {
  content: "✓ ";
  color: var(--accent-a);
}
.compare-row.head > div:nth-child(2)::before,
.compare-row.head > div:last-child::before {
  content: "";
}

/* ============ MISSION ============ */
.mission-wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: start;
}
.mission-copy p {
  color: var(--ink-soft);
  font-size: 1.02rem;
}
.mission-copy p + p {
  margin-top: 16px;
}
.mission-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.pledge {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent-a);
  border-radius: var(--r-sm);
  padding: 18px 20px;
}
.pledge b {
  display: block;
  font-family: var(--font-display);
  font-size: 0.98rem;
  margin-bottom: 4px;
}
.pledge span {
  color: var(--ink-soft);
  font-size: 0.9rem;
}

/* ============ SKILLS ============ */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.skill-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 24px;
}
.skill-card h3 {
  font-size: 1.02rem;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.skill-card h3::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--accent-a);
  border-radius: 2px;
  flex-shrink: 0;
}
.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.skill-tags span {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  padding: 5px 11px;
  border-radius: var(--r-pill);
  color: var(--ink-soft);
}

/* ============ OPEN SOURCE ============ */
.oss-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 32px;
  display: flex;
  align-items: center;
  gap: 24px;
  justify-content: space-between;
  flex-wrap: wrap;
}
.oss-card-text h3 {
  font-size: 1.15rem;
  margin-bottom: 6px;
}
.oss-card-text p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  max-width: 480px;
}
.oss-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-a);
  color: #fff;
  padding: 12px 22px;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: 0.92rem;
  flex-shrink: 0;
  transition:
    transform 0.15s var(--ease),
    box-shadow 0.15s var(--ease);
}
.oss-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(var(--accent-rgb), 0.3);
}

/* ============ ACHIEVEMENTS ============ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 26px 22px;
  text-align: left;
}
.stat-num {
  font-family: var(--font-mono);
  font-size: 2.1rem;
  font-weight: 600;
  color: var(--accent-a);
  letter-spacing: -0.02em;
}
.stat-label {
  color: var(--ink-soft);
  font-size: 0.88rem;
  margin-top: 6px;
}
.stats-more {
  margin-top: 20px;
  text-align: center;
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 0.88rem;
}

/* ============ FAQ ============ */
.faq-list {
  max-width: 760px;
}
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  background: none;
  border: none;
  padding: 22px 4px;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--ink);
}
.faq-q .plus {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  position: relative;
}
.faq-q .plus::before,
.faq-q .plus::after {
  content: "";
  position: absolute;
  background: var(--accent-a);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.faq-q .plus::before {
  width: 14px;
  height: 2px;
}
.faq-q .plus::after {
  width: 2px;
  height: 14px;
  transition: transform 0.25s var(--ease);
}
.faq-item.open .faq-q .plus::after {
  transform: translate(-50%, -50%) rotate(90deg) scaleY(0);
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s var(--ease);
}
.faq-a p {
  color: var(--ink-soft);
  padding: 0 4px 22px;
  font-size: 0.96rem;
  max-width: 640px;
}
.faq-item.open .faq-a {
  max-height: 240px;
}

/* ============ CONTACT ============ */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.contact-card svg {
  width: 22px;
  height: 22px;
  stroke: var(--accent-a);
}
.contact-card h3 {
  font-size: 1rem;
}
.contact-card a.value,
.contact-card span.value {
  color: var(--ink-soft);
  font-size: 0.92rem;
  word-break: break-word;
}
.copy-btn {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent-a);
  background: none;
  border: 1px solid var(--line);
  padding: 6px 12px;
  border-radius: var(--r-pill);
}
.copy-btn:hover {
  border-color: var(--accent-a);
}

/* ============ PHILOSOPHY / TERMINAL SIGNATURE ============ */
.terminal {
  max-width: 760px;
  margin: 0 auto;
  background: var(--code-bg);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--code-line);
}
.terminal-bar span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.terminal-bar span:nth-child(1) {
  background: #ff5f56;
}
.terminal-bar span:nth-child(2) {
  background: #ffbd2e;
}
.terminal-bar span:nth-child(3) {
  background: #27c93f;
}
.terminal-bar .path {
  margin-left: 10px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #8a889a;
}
.terminal-body {
  padding: 30px 28px 36px;
  font-family: var(--font-mono);
  font-size: 1.02rem;
  line-height: 1.8;
  color: var(--code-ink);
}
.terminal-body .comment {
  color: #7d7a8c;
}
.terminal-body .quote {
  color: #fff;
}
.terminal-body .accentword {
  color: var(--mono-glow);
}
.cursor {
  display: inline-block;
  width: 9px;
  height: 1.1em;
  background: var(--mono-glow);
  vertical-align: text-bottom;
  animation: blink 1.1s step-end infinite;
  margin-left: 2px;
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}

/* ============ CTA BANNER ============ */
.cta-banner {
  background: linear-gradient(135deg, var(--accent-a) 0%, #8f1c12 100%);
  border-radius: var(--r-lg);
  padding: 52px 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  color: #fff;
}
.cta-banner h2 {
  color: #fff;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
}
.cta-banner p {
  color: #ffffff;
  font-size: 0.98rem;
  margin-top: 8px;
  max-width: 420px;
}
.cta-btn {
  background: #fff;
  color: var(--accent-a);
  padding: 14px 26px;
  border-radius: var(--r-pill);
  font-weight: 700;
  font-size: 0.95rem;
  flex-shrink: 0;
  transition: transform 0.15s var(--ease);
}
.cta-btn:hover {
  transform: translateY(-2px);
}

/* ============ FOOTER ============ */
footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  padding: 64px 0 28px;
  margin-top: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 12px;
}
.footer-brand img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}
.footer-tag {
  color: var(--ink-soft);
  font-size: 0.9rem;
  max-width: 260px;
}
.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}
.footer-col h3 {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  margin-bottom: 16px;
  font-weight: 600;
}
.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.footer-col a {
  color: var(--ink-soft);
  font-size: 0.92rem;
}
.footer-col a:hover {
  color: var(--accent-a);
}
.footer-bottom {
  margin-top: 52px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* ============ BACK TO TOP / TOAST ============ */
.back-to-top {
  position: fixed;
  bottom: 26px;
  right: 26px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-a);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 22px rgba(var(--accent-rgb), 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s var(--ease);
  z-index: 90;
}
.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top svg {
  width: 20px;
  height: 20px;
  stroke: #fff;
}
.toast {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translate(-50%, 20px);
  background: var(--ink);
  color: var(--bg);
  padding: 13px 22px;
  border-radius: var(--r-pill);
  font-size: 0.88rem;
  font-weight: 600;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s var(--ease);
  z-index: 95;
}
.toast.show {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

/* ============ SCROLL REVEAL ============ */
.rv {
  opacity: 1;
  transform: none;
}
.rv-visible {
  opacity: 1;
  transform: none;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1140px) {
  .container {
    padding: 0 20px;
  }
}
@media (max-width: 1024px) {
  .nav-links {
    display: none;
  }
  .hamburger {
    display: flex;
  }
  .hero-grid {
    gap: 40px;
  }
  .hero-photo-wrap {
    width: 200px;
    height: 200px;
  }
  .about-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .skills-grid {
    grid-template-columns: 1fr;
  }
  .mission-wrap {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}
@media (max-width: 768px) {
  section {
    padding: 64px 0;
  }
  .hero {
    padding: 40px 0 40px;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-photo-wrap {
    width: 170px;
    height: 170px;
    margin: 0 auto;
  }
  .hero-photo-initial {
    font-size: 3.4rem;
  }
  .hero-social {
    justify-content: center;
  }
  .hero-intro {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-status {
    margin-left: auto;
    margin-right: auto;
  }
  .eyebrow {
    justify-content: center;
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
  .compare-row {
    grid-template-columns: 1fr;
  }
  .compare-row > div:first-child {
    background: var(--bg-alt);
    font-family: var(--font-mono);
    font-size: 0.78rem;
    text-transform: uppercase;
  }
  .compare-row.head {
    display: none;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .oss-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .cta-banner {
    flex-direction: column;
    text-align: center;
  }
  .cta-banner p {
    margin-left: auto;
    margin-right: auto;
  }
}
@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }
  h2.section-title {
    font-size: 1.5rem;
  }
  .hero-photo-wrap {
    width: 150px;
    height: 150px;
  }
  .hero-photo-initial {
    font-size: 3rem;
  }
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .terminal-body {
    padding: 22px 18px 28px;
    font-size: 0.9rem;
  }
  .back-to-top {
    bottom: 18px;
    right: 18px;
    width: 44px;
    height: 44px;
  }
}
@media (max-width: 375px) {
  .hero-copy h1 {
    font-size: 2rem;
  }
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
  .stat-num {
    font-size: 1.7rem;
  }
}
