:root {
  /* Base — cool charcoal (depth vs flat #0a0a0a) */
  --bg: #07080b;
  --bg-elevated: #10131a;
  --bg-surface: #161a24;
  --bg-card: rgba(22, 26, 36, 0.78);
  --bg-header: rgba(7, 8, 11, 0.88);

  /* Atmospheric gradient stops */
  --glow-violet: #1a1f35;
  --glow-teal: #0d1f1a;
  /** Pinch of blue — optional accent; remove --blue-* and related rules if reverting */
  --blue-ambient: rgba(59, 130, 246, 0.065);
  --blue-edge: rgba(96, 165, 250, 0.12);

  /* Borders — luminance-based for cohesion on dark UI */
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.14);
  --border-accent: rgba(94, 234, 168, 0.22);

  /* Text ramp */
  --text: #f1f3f6;
  --text-muted: #9ca3af;
  --text-dim: #6b7280;

  /* Brand green — keep #00ff87 for recognition; tiered use */
  --accent-brand: #00ff87;
  --accent: #5eeaa8;
  --accent-strong: #00ff87;
  --accent-on-dark: #042a1c;
  --accent-dim: rgba(94, 234, 168, 0.1);
  --accent-glow: rgba(0, 255, 135, 0.18);
  --accent-gradient-end: #00c978;

  /* Secondary — links / writing (not competing with product CTA) */
  --link: #93c5fd;
  --link-hover: #bfdbfe;

  --radius: 12px;
  --radius-lg: 16px;
  --container: 1120px;
  --header-h: 72px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --transition: 0.25s ease;
}

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

html {
  scroll-behavior: smooth;
}

@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;
  }
}

body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

.gradient-bg {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 55% at 50% -15%, var(--glow-violet) 0%, transparent 55%),
    radial-gradient(ellipse 60% 40% at 85% 20%, var(--glow-teal) 0%, transparent 50%),
    radial-gradient(ellipse 50% 35% at 10% 60%, rgba(26, 31, 53, 0.4) 0%, transparent 45%),
    radial-gradient(ellipse 45% 32% at 92% 88%, var(--blue-ambient) 0%, transparent 55%),
    var(--bg);
  z-index: -2;
  pointer-events: none;
}

.grid-overlay {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  z-index: -1;
  pointer-events: none;
  mask-image: linear-gradient(to bottom, black 0%, transparent 100%);
}

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.muted {
  color: var(--text-muted);
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 1000;
  padding: 0.75rem 1rem;
  background: var(--accent-strong);
  color: var(--accent-on-dark);
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 1rem;
  outline: 2px solid #fff;
  outline-offset: 2px;
}

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-header);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 0 rgba(96, 165, 250, 0.04);
}

/* Blur on a pseudo-element so fixed mobile .nav-menu uses the viewport, not the header box */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  pointer-events: none;
  z-index: -1;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1rem;
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent-brand);
  text-decoration: none;
  flex-shrink: 0;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links {
  display: flex;
  gap: 1.75rem;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 0.5rem 0;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.nav-links a:hover {
  color: var(--accent-strong);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  margin-inline: auto;
  background: var(--text);
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.625rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), border-color var(--transition);
}

@media (prefers-reduced-motion: no-preference) {
  .btn:hover {
    transform: translateY(-1px);
  }
}

.btn-primary {
  background: linear-gradient(145deg, var(--accent-strong) 0%, var(--accent-gradient-end) 100%);
  color: var(--accent-on-dark);
  box-shadow: 0 4px 24px var(--accent-glow);
}

.btn-primary:hover {
  box-shadow: 0 6px 32px var(--accent-glow);
  filter: brightness(1.04);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-ghost:hover {
  border-color: var(--border-accent);
  color: var(--accent-strong);
  background: var(--accent-dim);
}

.btn-icon .btn-icon-label {
  display: none;
}

@media (min-width: 640px) {
  .btn-icon .btn-icon-label {
    display: inline;
  }
}

/* Sections */
.section {
  padding: 4rem 0;
}

.section-heading {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.subsection-heading {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-muted);
  margin: 2.5rem 0 1.25rem;
}

.section-intro {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  max-width: 42rem;
}

/* Hero */
.hero {
  padding-top: 3rem;
  padding-bottom: 2rem;
}

.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.hero-eyebrow::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 0.5rem;
  border-radius: 50%;
  background: var(--accent-strong);
  box-shadow: 0 0 8px var(--accent-glow);
  vertical-align: middle;
}

.hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 0.75rem;
  background: linear-gradient(135deg, var(--text) 0%, #cdd8ea 40%, var(--accent-strong) 92%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.hero-tagline {
  font-size: 1.0625rem;
  color: var(--text-muted);
  max-width: 36rem;
  margin-bottom: 0.5rem;
}

.hero-location {
  font-size: 0.9375rem;
  margin-bottom: 1.75rem;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

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

.hero-visual {
  order: -1;
}

@media (min-width: 900px) {
  .hero-visual {
    order: 0;
  }
}

.visual-placeholder {
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background:
    linear-gradient(145deg, var(--accent-dim) 0%, transparent 50%),
    linear-gradient(var(--bg-elevated), var(--bg-elevated));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.5rem;
  text-align: center;
}

.visual-placeholder-label {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent-strong);
}

.visual-placeholder-hint {
  font-size: 0.75rem;
  color: var(--text-dim);
  max-width: 16rem;
}

.visual-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.visual-placeholder--loaded {
  padding: 0;
  background: var(--bg-elevated);
}

/* Proof strip */
.proof-strip {
  padding: 1.5rem 0 2rem;
}

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

@media (min-width: 768px) {
  .proof-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

.proof-item {
  padding: 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.proof-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent-strong);
  line-height: 1.2;
  margin-bottom: 0.25rem;
}

.proof-value a {
  color: inherit;
  text-decoration: none;
}

.proof-value a:hover {
  text-decoration: underline;
}

.proof-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Focus areas */
.focus-grid {
  display: grid;
  gap: 1rem;
  list-style: none;
}

@media (min-width: 768px) {
  .focus-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.focus-card {
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-card);
}

@media (prefers-reduced-motion: no-preference) {
  .focus-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
  }
}

.focus-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text);
}

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

/* Work cards */
.work-section {
  padding-top: 2rem;
}

.project-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-card);
  overflow: hidden;
  margin-bottom: 1.5rem;
}

@media (prefers-reduced-motion: no-preference) {
  .project-card:hover {
    border-color: var(--border-hover);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  }
}

.project-card--featured {
  border-color: var(--border-accent);
  box-shadow: 0 0 0 1px var(--accent-dim), 0 20px 50px rgba(0, 0, 0, 0.35);
}

.project-card-inner {
  display: grid;
  gap: 0;
}

@media (min-width: 768px) {
  .project-card-inner {
    grid-template-columns: 1.2fr 1fr;
  }

  .project-card--reverse .project-card-inner {
    direction: rtl;
  }

  .project-card--reverse .project-card-inner > * {
    direction: ltr;
  }
}

.project-card-body {
  padding: 1.75rem;
}

.project-card-visual {
  min-height: 200px;
  border-top: 1px solid var(--border);
}

@media (min-width: 768px) {
  .project-card-visual {
    border-top: none;
    border-left: 1px solid var(--border);
    min-height: 100%;
  }
}

.project-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.badge {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  background: var(--accent-dim);
  color: var(--accent-strong);
  border: 1px solid var(--border-accent);
}

.project-tagline {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.project-description {
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-size: 0.9375rem;
}

.project-role {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.project-highlights {
  margin: 0 0 1rem 1.25rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.project-highlights li {
  margin-bottom: 0.35rem;
}

.project-sections {
  margin-bottom: 1rem;
}

.project-section-item {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.project-section-item strong {
  color: var(--text);
}

.project-confidential {
  font-size: 0.8125rem;
  font-style: italic;
  color: var(--text-dim);
  margin-top: 1rem;
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}

.tech-tag {
  font-size: 0.75rem;
  padding: 0.25rem 0.625rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.project-actions {
  margin-top: 1rem;
}

.work-grid {
  display: grid;
  gap: 1.5rem;
}

.work-grid--two {
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .work-grid--two {
    grid-template-columns: repeat(2, 1fr);
  }
}

.work-grid--others {
  margin-top: 2rem;
}

@media (min-width: 768px) {
  .work-grid--others {
    grid-template-columns: repeat(2, 1fr);
  }
}

.project-card--compact .project-card-inner {
  grid-template-columns: 1fr;
}

.project-card--compact .project-card-visual {
  display: none;
}

.project-card--nda.project-card--has-visual .project-card-visual {
  min-height: 160px;
}

@media (min-width: 768px) {
  .project-card--nda:not(.project-card--has-visual) .project-card-inner {
    grid-template-columns: 1fr;
  }
}

/* Writing */
.writing-list {
  list-style: none;
}

.writing-list li {
  border-bottom: 1px solid var(--border);
}

.writing-list .writing-link {
  padding: 1rem 0;
  color: var(--text);
  text-decoration: none;
  min-height: 44px;
}

.writing-list .writing-link:hover {
  color: var(--link-hover);
}

.writing-list .writing-link:hover .writing-link-title {
  color: var(--link-hover);
}

.writing-list .post-date {
  font-size: 0.875rem;
  color: var(--text-dim);
  flex-shrink: 0;
}

.writing-footer-link {
  margin-top: 1.5rem;
}

.writing-footer-link a {
  color: var(--link);
  font-weight: 600;
  text-decoration: none;
}

.writing-footer-link a:hover {
  text-decoration: underline;
}

/* About */
.about-content {
  max-width: 42rem;
}

.about-content p {
  margin-bottom: 1rem;
  color: var(--text-muted);
}

.about-focus,
.about-background {
  margin-top: 1rem;
}

/* Contact */
.contact-card {
  max-width: 42rem;
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.contact-secondary {
  margin-bottom: 1.5rem;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.contact-form {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px dashed var(--border);
  display: none;
  gap: 1rem;
}

.contact-form.is-open {
  display: block;
}

.contact-form-row {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .contact-form-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.contact-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.contact-field label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
}

.contact-field input,
.contact-field select,
.contact-field textarea {
  font: inherit;
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.85);
  color: var(--text);
  outline: none;
  min-height: 44px;
}

.contact-field textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-field input:focus,
.contact-field select:focus,
.contact-field textarea:focus {
  border-color: var(--border-accent);
  box-shadow: 0 0 0 1px var(--accent-dim);
}

.contact-field--honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-footer {
  margin-top: 0.25rem;
}

.contact-status {
  margin-top: 0.5rem;
  font-size: 0.875rem;
}

.contact-status--error {
  color: #fecaca;
}

.contact-status--success {
  color: #bbf7d0;
}

/* Footer */
.site-footer {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
  margin-top: 2rem;
}

.footer-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: flex-start;
}

@media (min-width: 768px) {
  .footer-grid {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
  }
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.footer-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9375rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.footer-nav a:hover {
  color: var(--accent-strong);
}

.footer-copy {
  font-size: 0.8125rem;
  color: var(--text-dim);
  width: 100%;
}

@media (min-width: 768px) {
  .footer-copy {
    width: auto;
    margin-left: auto;
  }
}

.noscript-notice {
  padding: 2rem 0;
  color: var(--text-muted);
}

/* Icons */
.icon {
  flex-shrink: 0;
  width: 1.125rem;
  height: 1.125rem;
  color: var(--accent-strong);
}

.icon--heading {
  width: 1.375rem;
  height: 1.375rem;
  margin-right: 0.5rem;
  vertical-align: -0.2em;
}

.icon--subheading {
  width: 1.125rem;
  height: 1.125rem;
  margin-right: 0.35rem;
  vertical-align: -0.15em;
  color: var(--text-muted);
}

.icon--after {
  color: var(--text-dim);
  margin-left: auto;
}

.icon--list {
  width: 1rem;
  height: 1rem;
  color: var(--accent);
  margin-top: 0.2rem;
}

.icon--badge {
  width: 0.75rem;
  height: 0.75rem;
  margin-right: 0.25rem;
  vertical-align: -0.1em;
}

.icon--brand {
  width: 1.125rem;
  height: 1.125rem;
  object-fit: contain;
  filter: invert(1) brightness(0.95);
  opacity: 0.9;
}

.with-icon {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn.with-icon {
  display: inline-flex;
}

.nav-links a.with-icon,
.footer-nav a.with-icon {
  gap: 0.4rem;
}

.section-heading--icon {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-location.with-icon {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.hero-location .icon {
  margin-top: 0.2rem;
  color: var(--text-muted);
}

.icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius);
  background: var(--accent-dim);
  border: 1px solid var(--border-accent);
  flex-shrink: 0;
}

.icon-box .icon {
  width: 1.25rem;
  height: 1.25rem;
}

.icon-box--project {
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-lg);
}

.icon-box--proof {
  width: 2.5rem;
  height: 2.5rem;
}

.icon-box--focus {
  margin-bottom: 1rem;
}

.proof-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.proof-content {
  flex: 1;
  min-width: 0;
}

.project-card-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.project-card-heading h3 {
  font-size: 1.375rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.project-card-heading .project-tagline {
  margin-bottom: 0;
}

.project-highlights li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.project-highlights li span {
  flex: 1;
}

.project-role.with-icon,
.project-confidential.with-icon {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.project-confidential .icon {
  color: var(--text-dim);
  margin-top: 0.15rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
}

.writing-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
}

.writing-link-title {
  flex: 1;
  min-width: 0;
}

.writing-list a:hover .icon--after {
  color: var(--accent-strong);
  transform: translateX(2px);
}

.about-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
}

.about-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--link);
  text-decoration: none;
  font-weight: 500;
}

.about-link:hover {
  color: var(--link-hover);
}

.writing-footer-link a.with-icon {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.focus-card {
  display: flex;
  flex-direction: column;
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(20px);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }

  .reveal.is-visible {
    transition: none;
  }
}

/* Mobile nav */
@media (max-width: 767px) {
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1100;
    flex-direction: column;
    align-items: stretch;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--bg-header);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transform: translateX(100%);
    transition: transform var(--transition);
    overflow: hidden;
    overscroll-behavior: none;
  }

  .nav-menu.is-open {
    transform: translateX(0);
  }

  .nav-links {
    flex-direction: column;
    gap: 0;
  }

  .nav-links a {
    font-size: 1.125rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
    width: 100%;
  }

  .nav-cta {
    width: 100%;
    justify-content: center;
  }
}
