:root {
  --bg: #f9fafb;
  --bg-elevated: #ffffff;
  --bg-soft: #e5e7eb;
  --border-subtle: rgba(15, 23, 42, 0.06);
  --text: #020617;
  --text-soft: #4b5563;
  --accent: #8b5cf6; /* purple */
  --accent-soft: rgba(139, 92, 246, 0.12);
  --accent-strong: #ec4899; /* pink-magenta */
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.12);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 12px;
  --blur-glass: 18px;
  --transition-fast: 160ms ease-out;
  --transition-medium: 220ms ease-out;
}

/* Dark scheme default: auto */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #020617;
    --bg-elevated: rgba(15, 23, 42, 0.9);
    --bg-soft: rgba(15, 23, 42, 0.98);
    --border-subtle: rgba(148, 163, 184, 0.25);
    --text: #e5e7eb;
    --text-soft: #9ca3af;
    --accent: #a855f7;
    --accent-soft: rgba(88, 28, 135, 0.55);
    --accent-strong: #f472b6;
    --shadow-soft: 0 24px 60px rgba(15, 23, 42, 0.85);
  }
}

/* Manual overrides via data-theme on html */
html[data-theme="light"] {
  --bg: #f9fafb;
  --bg-elevated: #ffffff;
  --bg-soft: #e5e7eb;
  --border-subtle: rgba(15, 23, 42, 0.06);
  --text: #020617;
  --text-soft: #4b5563;
  --accent: #8b5cf6;
  --accent-soft: rgba(139, 92, 246, 0.12);
  --accent-strong: #ec4899;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.12);
}

html[data-theme="dark"] {
  --bg: #020617;
  --bg-elevated: rgba(15, 23, 42, 0.9);
  --bg-soft: rgba(15, 23, 42, 0.98);
  --border-subtle: rgba(148, 163, 184, 0.25);
  --text: #e5e7eb;
  --text-soft: #9ca3af;
  --accent: #a855f7;
  --accent-soft: rgba(88, 28, 135, 0.55);
  --accent-strong: #f472b6;
  --shadow-soft: 0 24px 60px rgba(15, 23, 42, 0.85);
}

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background:
    radial-gradient(circle at top, rgba(30, 64, 175, 0.35), transparent 55%),
    radial-gradient(circle at bottom, rgba(76, 29, 149, 0.45), transparent 55%),
    var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Layout */

.page-shell {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Floating background orbs */

.orb {
  position: fixed;
  z-index: -1;
  width: 360px;
  height: 360px;
  border-radius: 999px;
  filter: blur(70px);
  opacity: 0.7;
  pointer-events: none;
  background: radial-gradient(circle at 30% 30%, var(--accent-strong), transparent 60%);
  animation: floatOrb 26s ease-in-out infinite alternate;
}

.orb-1 {
  top: -80px;
  right: -140px;
}
.orb-2 {
  bottom: -140px;
  left: -160px;
  animation-delay: -6s;
}
.orb-3 {
  top: 45%;
  left: 50%;
  transform: translateX(-50%);
  width: 260px;
  height: 260px;
  opacity: 0.28;
  animation-delay: -12s;
}

@keyframes floatOrb {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  100% {
    transform: translate3d(28px, -32px, 0) scale(1.05);
  }
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: transparent;
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

html[data-theme="light"] .site-header {
  background: transparent;
  border-bottom-color: rgba(15, 23, 42, 0.12);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: inherit;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, var(--accent-strong), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.brand-orb {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.15);
  border: 1px solid rgba(248, 250, 252, 0.6);
  box-shadow: 0 0 18px rgba(248, 250, 252, 0.9);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.brand-subtitle {
  font-size: 0.75rem;
  color: var(--text-soft);
}

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

.nav-link {
  font-size: 0.88rem;
  text-decoration: none;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  color: var(--text-soft);
  transition: color var(--transition-fast), background var(--transition-fast), transform var(--transition-fast);
}

.nav-link:hover {
  color: var(--text);
  background: rgba(148, 163, 184, 0.12);
  transform: translateY(-1px);
}

.nav-link-pill {
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.45);
}

/* Header controls */

.header-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Theme toggle */

.theme-toggle {
  border: none;
  padding: 0.3rem 0.5rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.7);
  color: #e5e7eb;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.15rem;
  font-size: 0.8rem;
  transition: background var(--transition-medium), transform var(--transition-medium), box-shadow var(--transition-medium);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.6);
}

html[data-theme="light"] .theme-toggle {
  background: #e5e7eb;
  color: #0f172a;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.16);
}

.theme-toggle:hover {
  transform: translateY(-1px);
}

.theme-icon {
  display: block;
  line-height: 1;
}

html[data-theme="dark"] .theme-icon-sun {
  opacity: 0.35;
}
html[data-theme="light"] .theme-icon-moon {
  opacity: 0.35;
}

/* Mobile nav toggle */

.nav-toggle {
  display: none;
  border: none;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.7);
  color: #e5e7eb;
  cursor: pointer;
  flex-direction: column;
  gap: 0.18rem;
  transition: background var(--transition-medium), transform var(--transition-medium), box-shadow var(--transition-medium);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.6);
}

html[data-theme="light"] .nav-toggle {
  background: #e5e7eb;
  color: #0f172a;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.16);
}

.nav-toggle span {
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform var(--transition-medium), opacity var(--transition-medium);
}

html.nav-open .nav-toggle span:first-child {
  transform: translateY(2px) rotate(45deg);
}
html.nav-open .nav-toggle span:last-child {
  transform: translateY(-2px) rotate(-45deg);
}

/* Hero */

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

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.2fr);
  gap: 3rem;
  align-items: center;
}

.eyebrow {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-soft);
  margin-bottom: 0.7rem;
}

.hero h1 {
  font-size: clamp(2.4rem, 3.3vw, 3rem);
  line-height: 1.1;
  margin: 0 0 0.9rem;
}

.accent {
  background-image: linear-gradient(to right, var(--accent), var(--accent-strong));
  -webkit-background-clip: text;
  color: transparent;
}

.hero-text {
  margin: 0 0 1.4rem;
  color: var(--text-soft);
  max-width: 36rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.2rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.3rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background var(--transition-medium), color var(--transition-medium), box-shadow var(--transition-medium), transform var(--transition-medium), border-color var(--transition-medium);
}

.btn-primary {
  background: linear-gradient(120deg, var(--accent), var(--accent-strong));
  color: #f9fafb;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.55);
}

.btn-primary:hover {
  transform: translateY(-1px) scale(1.01);
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.8);
}

.btn-ghost {
  background: rgba(15, 23, 42, 0.06);
  color: var(--text);
  border-color: rgba(148, 163, 184, 0.35);
}

html[data-theme="dark"] .btn-ghost {
  background: rgba(15, 23, 42, 0.85);
}

.btn-ghost:hover {
  background: rgba(148, 163, 184, 0.14);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  font-size: 0.85rem;
  color: var(--text-soft);
}

.divider-dot {
  opacity: 0.65;
}

.hero-panel {
  display: flex;
  justify-content: flex-end;
}

.hero-card {
  width: 100%;
  max-width: 360px;
  border-radius: 28px;
  padding: 1.3rem 1.25rem 1.15rem;
  background: radial-gradient(circle at top left, rgba(76, 29, 149, 0.7), var(--bg-elevated));
  border: 1px solid rgba(168, 85, 247, 0.6);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(var(--blur-glass));
}

html[data-theme="light"] .hero-card {
  background: radial-gradient(circle at top left, rgba(221, 214, 254, 0.8), #ffffff);
}

.hero-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.8rem;
}

.hero-card-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-soft);
}

.hero-card-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, #f97316, #22c55e);
  box-shadow: 0 0 10px rgba(236, 72, 153, 0.9);
  animation: pulseDot 4s ease-in-out infinite alternate;
}

@keyframes pulseDot {
  0% {
    background: radial-gradient(circle at 30% 30%, #f97316, #22c55e);
    box-shadow: 0 0 8px rgba(244, 114, 182, 0.8);
  }
  50% {
    background: radial-gradient(circle at 30% 30%, var(--accent-strong), var(--accent));
    box-shadow: 0 0 12px rgba(168, 85, 247, 0.9);
  }
  100% {
    background: radial-gradient(circle at 30% 30%, #22c55e, #06b6d4);
    box-shadow: 0 0 10px rgba(45, 212, 191, 0.9);
  }
}

.hero-metrics {
  list-style: none;
  margin: 0 0 0.9rem;
  padding: 0;
}

.hero-metrics li {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  padding: 0.4rem 0;
  border-bottom: 1px dashed rgba(148, 163, 184, 0.3);
}

.hero-metrics li:last-child {
  border-bottom: none;
}

.metric-label {
  color: var(--text-soft);
}

.metric-value {
  font-weight: 500;
}

.hero-card-footer {
  font-size: 0.86rem;
  color: var(--text-soft);
}

/* Sections */

.section {
  padding: 3.5rem 0;
}

.section-heading {
  max-width: 640px;
  margin-bottom: 2.5rem;
}

.section-heading h2 {
  margin: 0 0 0.5rem;
  font-size: 1.6rem;
}

.section-heading p {
  margin: 0;
  color: var(--text-soft);
}

.section-heading-inline {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.8rem;
}

.section-heading-inline h2 {
  margin: 0;
  font-size: 1.2rem;
}

.section-heading-inline p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-soft);
}

/* Logos */

.section-logos {
  padding-top: 1.5rem;
}

.logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 1rem;
}

.logo-card {
  border-radius: var(--radius-lg);
  border: 1px dashed rgba(148, 163, 184, 0.5);
  padding: 0.8rem 1rem;
  font-size: 0.85rem;
  color: var(--text-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(10px);
}

html[data-theme="dark"] .logo-card {
  background: rgba(15, 23, 42, 0.78);
}

.logo-card img {
  max-height: 32px;
  max-width: 100%;
  width: auto;
  object-fit: contain;
  display: block;
}

/* Services */

.section-services {
  padding-top: 2.2rem;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.service-card {
  border-radius: var(--radius-xl);
  padding: 1.4rem 1.4rem 1.2rem;
  background: rgba(15, 23, 42, 0.05);
  backdrop-filter: blur(var(--blur-glass));
  border: 1px solid var(--border-subtle);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.18);
  transform-origin: center;
  transition: transform var(--transition-medium), box-shadow var(--transition-medium), border-color var(--transition-medium), background var(--transition-medium);
}

html[data-theme="dark"] .service-card {
  background: rgba(15, 23, 42, 0.83);
  border-color: rgba(148, 163, 184, 0.3);
}

.service-card h3 {
  margin-top: 0;
  margin-bottom: 0.45rem;
  font-size: 1.1rem;
}

.service-card p {
  margin-top: 0;
  margin-bottom: 0.7rem;
  color: var(--text-soft);
  font-size: 0.93rem;
}

.service-card ul {
  list-style: none;
  padding-left: 0;
  margin: 0 0 0.8rem;
  font-size: 0.88rem;
  color: var(--text-soft);
}

.service-card ul li::before {
  content: "•";
  margin-right: 0.4rem;
  color: var(--accent);
}

.service-tag {
  display: inline-flex;
  align-items: center;
  font-size: 0.78rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid rgba(139, 92, 246, 0.6);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.38);
  border-color: rgba(139, 92, 246, 0.9);
}

/* About */

.section-about {
  padding-top: 2.8rem;
}

.about-inner {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.3fr);
  gap: 2.4rem;
  align-items: start;
}

.about-text p {
  margin-top: 0;
  margin-bottom: 0.7rem;
  color: var(--text-soft);
}

.about-panel {
  display: flex;
  justify-content: flex-end;
}

.about-card {
  border-radius: var(--radius-xl);
  padding: 1.3rem 1.4rem 1.1rem;
  background: rgba(15, 23, 42, 0.06);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(var(--blur-glass));
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.25);
}

html[data-theme="dark"] .about-card {
  background: rgba(15, 23, 42, 0.86);
  border-color: rgba(148, 163, 184, 0.4);
}

.about-card h3 {
  margin-top: 0;
  margin-bottom: 0.4rem;
}

.about-card ul {
  margin: 0 0 0.6rem;
  padding-left: 1rem;
  font-size: 0.9rem;
  color: var(--text-soft);
}

.about-footnote {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-soft);
}

/* Case studies */

.section-cases {
  padding-top: 3rem;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.case-card {
  display: block;
  border-radius: var(--radius-xl);
  padding: 1.3rem 1.4rem 1.1rem;
  background: linear-gradient(135deg, rgba(76, 29, 149, 0.9), rgba(24, 24, 27, 0.98));
  border: 1px solid rgba(168, 85, 247, 0.7);
  box-shadow: var(--shadow-soft);
  text-decoration: none;
  color: inherit;
  transition: transform var(--transition-medium), box-shadow var(--transition-medium), border-color var(--transition-medium), background var(--transition-medium);
}

html[data-theme="light"] .case-card {
  background: linear-gradient(135deg, #ede9fe, #f9fafb);
}

.case-card h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
}

.case-card p {
  margin-top: 0;
  margin-bottom: 0.7rem;
  font-size: 0.92rem;
  color: var(--text-soft);
}

.case-card ul {
  margin: 0 0 0.8rem;
  padding-left: 1.1rem;
  font-size: 0.88rem;
  color: var(--text-soft);
}

.case-tag {
  display: inline-flex;
  font-size: 0.78rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  color: #e5e7eb;
  border: 1px solid rgba(148, 163, 184, 0.7);
}

html[data-theme="light"] .case-tag {
  background: #111827;
}

.case-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.5);
  border-color: rgba(168, 85, 247, 0.95);
}

/* Process */

.section-process {
  padding-top: 1.8rem;
}

.process-steps {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.process-step {
  position: relative;
  padding-left: 2.3rem;
  padding-bottom: 1.6rem;
}

.process-step:last-child {
  padding-bottom: 0;
}

/* vertical line between steps, but not past the last */
.process-step::before {
  content: "";
  position: absolute;
  left: 0.3rem;
  top: 0.1rem;
  bottom: -1.6rem;
  width: 1px;
  background: repeating-linear-gradient(
    to bottom,
    rgba(148, 163, 184, 0.7),
    rgba(148, 163, 184, 0.7) 4px,
    transparent 4px,
    transparent 8px
  );
}

.process-step:last-child::before {
  bottom: 0;
}

.process-step-number {
  position: absolute;
  left: -0.2rem;
  top: 0;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  background: radial-gradient(circle at 30% 30%, var(--accent-strong), var(--accent));
  color: #f9fafb;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.6);
}

.process-step h3 {
  margin: 0 0 0.2rem;
  font-size: 1rem;
}

.process-step p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-soft);
}

/* Contact */

.section-contact {
  padding-top: 3rem;
  padding-bottom: 4.2rem;
}

.contact-stack {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.contact-copy h2 {
  margin-top: 0;
  margin-bottom: 0.6rem;
}

.contact-copy p {
  margin-top: 0;
  margin-bottom: 0.7rem;
  color: var(--text-soft);
}

.contact-highlights {
  margin: 0 0 1.1rem;
  padding-left: 1.1rem;
  font-size: 0.9rem;
  color: var(--text-soft);
}

.contact-form {
  width: 100%;
  border-radius: var(--radius-xl);
  padding: 1.4rem 1.4rem 1.25rem;
  background: rgba(15, 23, 42, 0.06);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(var(--blur-glass));
  box-shadow: 0 16px 45px rgba(15, 23, 42, 0.35);
}

html[data-theme="dark"] .contact-form {
  background: rgba(15, 23, 42, 0.88);
  border-color: rgba(148, 163, 184, 0.4);
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 0.85rem;
}

.form-row label {
  font-size: 0.85rem;
  color: var(--text-soft);
}

.form-row input,
.form-row textarea {
  border-radius: 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.7);
  padding: 0.55rem 0.7rem;
  font-size: 0.9rem;
  font-family: inherit;
  background: rgba(15, 23, 42, 0.04);
  color: var(--text);
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast), transform var(--transition-fast);
}

html[data-theme="dark"] .form-row input,
html[data-theme="dark"] .form-row textarea {
  background: rgba(15, 23, 42, 0.96);
}

.form-row input:focus,
.form-row textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(129, 140, 248, 0.5);
}

.btn-full {
  width: 100%;
  margin-top: 0.2rem;
}

.contact-alt {
  margin: 0.6rem 0 0;
  font-size: 0.84rem;
  color: var(--text-soft);
}

/* Footer */

.site-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.3);
  padding: 0.9rem 0 1.1rem;
  backdrop-filter: blur(10px);
}

html[data-theme="light"] .site-footer {
  border-top-color: rgba(15, 23, 42, 0.06);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.7rem;
  font-size: 0.82rem;
  color: var(--text-soft);
}

.footer-meta {
  opacity: 0.8;
}

/* Reveal animations */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 500ms ease-out, transform 500ms ease-out;
}

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

/* Article layout for case studies */

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 1.7fr);
  gap: 2.2rem;
  align-items: flex-start;
}

.article-main h1 {
  font-size: 2rem;
}

.article-main h2 {
  margin-top: 1.6rem;
  margin-bottom: 0.4rem;
}

.article-main h3 {
  margin-top: 1.2rem;
  margin-bottom: 0.4rem;
}

.article-main p {
  margin-top: 0.4rem;
  margin-bottom: 0.7rem;
  color: var(--text-soft);
}

.article-main ul,
.article-main ol {
  margin-top: 0.3rem;
  margin-bottom: 0.8rem;
  padding-left: 1.1rem;
  color: var(--text-soft);
  font-size: 0.93rem;
}

.article-aside .about-card {
  margin-bottom: 1rem;
}

.article-backlink a {
  font-size: 0.88rem;
  color: var(--accent);
  text-decoration: none;
}

.article-backlink a:hover {
  text-decoration: underline;
}

/* Responsive */

@media (max-width: 960px) {
  .hero-inner,
  .about-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-panel,
  .about-panel {
    justify-content: flex-start;
  }

  .hero {
    padding-top: 4.5rem;
  }

  .article-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 768px) {
  .nav {
    position: fixed;
    inset: 3.1rem 1.25rem auto;
    border-radius: 18px;
    padding: 0.75rem;
    background: rgba(15, 23, 42, 0.98);
    border: 1px solid rgba(148, 163, 184, 0.4);
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    transform: translateY(-16px);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-medium), transform var(--transition-medium);
  }

  html[data-theme="light"] .nav {
    background: rgba(248, 250, 252, 0.98);
    border-color: rgba(15, 23, 42, 0.1);
  }

  .nav-link {
    width: 100%;
  }

  .nav-link-pill {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  html.nav-open .nav {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .header-inner {
    align-items: center;
  }

  .hero-inner {
    gap: 2.2rem;
  }

  .section {
    padding: 3rem 0;
  }
}

@media (max-width: 640px) {
  .contact-stack {
    gap: 1rem;
  }
}
.contact-stack {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.contact-alt {
  margin: 0.6rem 0 0;
  font-size: 0.84rem;
  color: var(--text-soft);
}

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

/* success / error states */
.contact-status.success {
  color: #16a34a; /* green */
}

.contact-status.error {
  color: #dc2626; /* red */
}

@media (max-width: 640px) {
  .contact-stack {
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .logo-card {
    font-size: 0.78rem;
  }
}
