/* ==========================================================================
   Main Solutions — site styles
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --bg: #f6f4ef;
  --bg-alt: #efece4;
  --surface: #fffefb;
  --ink: #16181d;
  --ink-2: #474c55;
  --ink-3: #666a72;
  --line: #e2ddd2;
  --line-strong: #cdc7ba;
  --accent: #1f7a55;
  --accent-hover: #17623f;
  --accent-ink: #ffffff;
  --accent-soft: #dcebe2;
  --accent-text: #1b6d4c;

  /* Terminal card */
  --term-bg: #16181d;
  --term-border: #16181d;
  --term-ink: #e9e7e1;
  --term-muted: #8b9099;
  --term-line: #33373e;
  --term-hash: #e0b563;
  --term-accent: #5fd39c;

  /* Dark contact band + footer */
  --band-bg: #16181d;
  --band-ink: #f3f1ec;
  --band-muted: #a9aaa9;
  --band-line: #2d3036;
  --band-accent: #5fd39c;

  --font-display: "Newsreader", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  --radius: 16px;
  --container: 72rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --header-h: 4rem;
  --shadow-card: 0 30px 60px -30px rgb(22 24 29 / 0.45);

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1113;
    --bg-alt: #13161a;
    --surface: #171a1e;
    --ink: #ecebe6;
    --ink-2: #b7b4ac;
    --ink-3: #8f8c84;
    --line: #262a2f;
    --line-strong: #373c42;
    --accent: #4cc38a;
    --accent-hover: #6fd4a3;
    --accent-ink: #07140e;
    --accent-soft: #15291f;
    --accent-text: #5fd39c;

    --term-bg: #171a1e;
    --term-border: #2b3036;

    --band-bg: #171a1e;
    --band-ink: #ecebe6;
    --band-muted: #9d9a93;
    --band-line: #2b3036;

    --shadow-card: 0 30px 60px -30px rgb(0 0 0 / 0.7);

    color-scheme: dark;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-optical-sizing: auto;
  line-height: 1.1;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

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

[id] {
  scroll-margin-top: calc(var(--header-h) + 1rem);
}

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

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

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

.skip-link:focus {
  top: 1rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.35rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font: 500 0.9375rem/1.2 var(--font-body);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.btn svg {
  width: 1.1em;
  height: 1.1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.18s ease;
}

.btn:hover .arrow {
  transform: translateX(3px);
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-ghost {
  border-color: var(--line-strong);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--ink-3);
  background: var(--surface);
}

.btn-ink {
  background: var(--ink);
  color: var(--bg);
}

.btn-ink:hover {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn-small {
  padding: 0.55rem 1rem;
  font-size: 0.875rem;
}

.btn-large {
  padding: 1rem 1.55rem;
  font-size: 1.0625rem;
}

.btn-band {
  border-color: var(--band-line);
  background: transparent;
  color: var(--band-ink);
}

.btn-band:hover {
  border-color: var(--band-muted);
}

.btn-band.is-copied {
  border-color: var(--band-accent);
  color: var(--band-accent);
}

@media (max-width: 480px) {
  .hero-actions .btn,
  .contact-actions .btn {
    flex: 1 1 100%;
  }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  width: 28px;
  height: 28px;
  flex: none;
}

.brand-mark rect {
  fill: var(--accent);
}

.brand-mark path {
  fill: none;
  stroke: var(--accent-ink);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-nav {
  display: flex;
  gap: 2rem;
  margin-left: auto;
}

.site-nav a {
  color: var(--ink-2);
  font-size: 0.9375rem;
  text-decoration: none;
  transition: color 0.15s ease;
}

.site-nav a:hover {
  color: var(--ink);
}

@media (max-width: 760px) {
  .site-nav {
    display: none;
  }

  .header-inner > .btn {
    margin-left: auto;
  }
}

/* Smallest phones: keep the brand and CTA on one line */
@media (max-width: 374px) {
  .header-inner {
    gap: 1rem;
  }

  .site-header .brand {
    gap: 0.5rem;
    font-size: 0.9375rem;
  }

  .site-header .brand-mark {
    width: 24px;
    height: 24px;
  }

  .header-inner > .btn-small {
    padding-inline: 0.8rem;
  }
}

/* ---------- Hero ---------- */
.hero {
  padding-top: clamp(3.5rem, 8vw, 6.5rem);
}

.hero-grid {
  display: grid;
  align-items: center;
  gap: clamp(2.75rem, 5vw, 4.5rem);
}

@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.9fr);
  }
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-2);
  font: 500 0.8125rem/1 var(--font-mono);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2.4s ease-out infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 50%, transparent);
  }
  70%,
  100% {
    box-shadow: 0 0 0 8px color-mix(in srgb, var(--accent) 0%, transparent);
  }
}

.hero h1 {
  margin-top: 1.5rem;
  font-size: clamp(2.6rem, 1.55rem + 3.9vw, 4.4rem);
  line-height: 1.03;
  letter-spacing: -0.025em;
}

.hero h1 em {
  color: var(--accent-text);
  font-style: italic;
}

.lede {
  max-width: 36rem;
  margin-top: 1.5rem;
  color: var(--ink-2);
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.25rem;
}

/* Terminal card */
.terminal {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--term-border);
  border-radius: var(--radius);
  background: var(--term-bg);
  box-shadow: var(--shadow-card);
  color: var(--term-ink);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.7;
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--term-line);
}

.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #3a3f46;
}

.terminal-title {
  flex: 1;
  margin-right: calc(30px + 0.9rem);
  color: var(--term-muted);
  font-size: 0.75rem;
  text-align: center;
}

.terminal-body {
  padding: 1.25rem 1.4rem 1.4rem;
}

.terminal-prompt {
  color: var(--term-ink);
}

.terminal-sign {
  color: var(--term-accent);
}

.commits {
  position: relative;
  margin-top: 0.85rem;
}

/* Vertical branch line connecting the commit nodes */
.commits::before {
  content: "";
  position: absolute;
  top: 1.05rem;
  bottom: 1.05rem;
  left: 4px;
  width: 2px;
  background: var(--term-line);
}

.commits li {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 0.8rem;
  padding: 0.35rem 0 0.35rem 1.6rem;
}

.commits li::before {
  content: "";
  position: absolute;
  top: calc(0.35rem + 0.85em - 5px);
  left: 0;
  width: 10px;
  height: 10px;
  border: 2px solid var(--term-muted);
  border-radius: 50%;
  background: var(--term-bg);
}

.commits li:first-child::before {
  border-color: var(--term-accent);
  background: var(--term-accent);
}

.hash {
  color: var(--term-hash);
}

.ref {
  color: var(--term-accent);
}

.terminal-checks {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--term-line);
  color: var(--term-accent);
}

/* Tech stack strip */
.stack {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.9rem 2rem;
  margin-top: clamp(3.5rem, 7vw, 5rem);
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}

.stack-label {
  color: var(--ink-3);
  font: 500 0.75rem/1 var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.stack-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.6rem;
  color: var(--ink-2);
  font: 400 0.875rem/1.4 var(--font-mono);
}

/* Hero entrance */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > *,
  .terminal {
    animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }

  .hero-copy > :nth-child(2) { animation-delay: 0.06s; }
  .hero-copy > :nth-child(3) { animation-delay: 0.12s; }
  .hero-copy > :nth-child(4) { animation-delay: 0.18s; }
  .terminal { animation-delay: 0.2s; }

  /* Commits appear oldest-first, like a project coming together */
  .commits li,
  .terminal-checks {
    animation: rise 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }

  .commits li:nth-child(4) { animation-delay: 0.45s; }
  .commits li:nth-child(3) { animation-delay: 0.6s; }
  .commits li:nth-child(2) { animation-delay: 0.75s; }
  .commits li:nth-child(1) { animation-delay: 0.9s; }
  .terminal-checks { animation-delay: 1.1s; }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Sections ---------- */
.section {
  padding-block: clamp(4.5rem, 9vw, 7.5rem);
}

.section-alt {
  border-block: 1px solid var(--line);
  background: var(--bg-alt);
}

.section-head {
  max-width: 42rem;
  margin-bottom: clamp(2.5rem, 5vw, 3.75rem);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--accent-text);
  font: 500 0.75rem/1 var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow::after {
  content: "";
  width: 2.5rem;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}

.section h2 {
  margin-top: 1.1rem;
  font-size: clamp(2.1rem, 1.5rem + 2.4vw, 3.25rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
}

.section-lede {
  margin-top: 1.1rem;
  color: var(--ink-2);
  font-size: 1.125rem;
}

.section-lede a {
  color: var(--accent-text);
  text-underline-offset: 3px;
}

/* ---------- Services ---------- */
.services {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 760px) {
  .services {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.service {
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.service-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.6rem;
}

.service-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-text);
}

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

.service-num {
  color: var(--ink-3);
  font: 500 0.75rem/1 var(--font-mono);
}

.service h3 {
  font-size: 1.75rem;
  letter-spacing: -0.01em;
}

.service > p {
  margin: 0.75rem 0 1.5rem;
  color: var(--ink-2);
}

.service ul {
  display: grid;
  gap: 0.55rem;
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.service li {
  position: relative;
  padding-left: 1.4rem;
  font-size: 0.9375rem;
}

.service li::before {
  content: "";
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 2px;
  background: var(--accent);
}

/* ---------- Principles ---------- */
.principles {
  display: grid;
  gap: 2.5rem;
}

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

@media (min-width: 1024px) {
  .principles {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2rem;
  }
}

.principle {
  padding-top: 1.25rem;
  border-top: 2px solid var(--ink);
}

.principle-num {
  color: var(--ink-3);
  font: 500 0.75rem/1 var(--font-mono);
}

.principle h3 {
  margin-top: 1rem;
  font-size: 1.5rem;
}

.principle p {
  margin-top: 0.7rem;
  color: var(--ink-2);
  font-size: 1rem;
}

/* ---------- Process ---------- */
.steps {
  position: relative;
  display: grid;
  gap: 2.5rem;
}

/* Branch line through the step nodes (vertical on mobile) */
.steps::before {
  content: "";
  position: absolute;
  top: 9px;
  bottom: 9px;
  left: 8px;
  width: 2px;
  background: var(--line-strong);
}

.step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-left: 2.6rem;
}

.step::before {
  content: "";
  position: absolute;
  top: 1px;
  left: 0;
  width: 18px;
  height: 18px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  background: var(--bg);
}

.step:last-child::before {
  background: var(--accent);
}

@media (min-width: 900px) {
  .steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2rem;
  }

  .steps::before {
    top: 8px;
    right: 0;
    bottom: auto;
    left: 9px;
    width: auto;
    height: 2px;
    background: linear-gradient(to right, var(--line-strong) 78%, transparent);
  }

  .step {
    padding-top: 2.6rem;
    padding-left: 0;
  }

  .step::before {
    top: 0;
  }
}

.step-num {
  color: var(--ink-3);
  font: 500 0.75rem/1 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.step h3 {
  margin-top: 0.75rem;
  font-size: 1.6rem;
}

.step p {
  margin: 0.7rem 0 1rem;
  color: var(--ink-2);
  font-size: 1rem;
}

.step-meta {
  margin-top: auto;
  padding: 0.4rem 0.65rem;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent-text);
  font: 500 0.75rem/1 var(--font-mono);
}

/* Engagement models */
.engagements {
  margin-top: clamp(4rem, 8vw, 6rem);
}

.engagements-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  margin-bottom: 1.75rem;
}

.engagements-head h3 {
  font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem);
}

.engagements-head p {
  color: var(--ink-2);
}

.engagement-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 820px) {
  .engagement-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.engagement {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 1.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.engagement h4 {
  font: 600 1.0625rem/1.3 var(--font-body);
  letter-spacing: -0.01em;
}

.engagement p {
  color: var(--ink-2);
  font-size: 0.975rem;
}

.engagement .best-for {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.9rem;
}

.best-for span {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--ink-3);
  font: 500 0.6875rem/1 var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  align-items: center;
  gap: clamp(2.5rem, 6vw, 5rem);
}

@media (min-width: 880px) {
  .about-grid {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  }
}

.portrait,
.portrait-photo {
  width: 100%;
  max-width: 26rem;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
}

.portrait-photo {
  object-fit: cover;
}

.portrait {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  background-color: var(--accent-soft);
  background-image: radial-gradient(color-mix(in srgb, var(--accent) 28%, transparent) 1px, transparent 1.5px);
  background-size: 18px 18px;
}

.portrait-mark {
  width: 42%;
}

.portrait-mark path {
  fill: none;
  stroke: var(--accent-text);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.portrait-caption {
  position: absolute;
  bottom: 1.1rem;
  left: 1.25rem;
  color: var(--accent-text);
  font: 500 0.75rem/1 var(--font-mono);
}

@media (max-width: 879px) {
  .portrait {
    max-width: 16rem;
    aspect-ratio: 1;
  }

  .portrait-caption {
    display: none;
  }
}

.about-copy h2 {
  margin-bottom: 1.5rem;
}

.about-copy > p:not(.eyebrow) {
  max-width: 38rem;
  color: var(--ink-2);
}

.about-copy > p + p:not(.eyebrow) {
  margin-top: 1rem;
}

.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem 2rem;
  max-width: 38rem;
  margin: 2.25rem 0 0;
}

.facts div {
  padding-top: 0.85rem;
  border-top: 1px solid var(--line-strong);
}

.facts dt {
  color: var(--ink-3);
  font: 500 0.6875rem/1 var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.facts dd {
  margin: 0.45rem 0 0;
  font-size: 0.975rem;
  font-weight: 500;
}

@media (max-width: 480px) {
  .facts {
    grid-template-columns: 1fr;
  }
}

/* ---------- FAQ ---------- */
.faq-grid {
  display: grid;
  gap: 0;
}

@media (min-width: 960px) {
  .faq-grid {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr);
    align-items: start;
    gap: 4rem;
  }

  .faq-head {
    position: sticky;
    top: calc(var(--header-h) + 2rem);
  }
}

.faq-list {
  border-top: 1px solid var(--line-strong);
}

.faq-item {
  border-bottom: 1px solid var(--line-strong);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.4rem 0;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 1.1rem + 0.4vw, 1.4rem);
  line-height: 1.3;
  list-style: none;
  cursor: pointer;
}

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

.faq-item summary:hover {
  color: var(--accent-text);
}

.faq-icon {
  position: relative;
  flex: none;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--ink);
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 11px;
  height: 1.5px;
  background: currentColor;
  transform: translate(-50%, -50%);
}

.faq-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
  transition: transform 0.2s ease;
}

.faq-item[open] .faq-icon {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--bg);
}

.faq-item[open] .faq-icon::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.faq-answer {
  max-width: 42rem;
  padding: 0 3.5rem 1.6rem 0;
  color: var(--ink-2);
}

/* ---------- Contact ---------- */
.contact {
  position: relative;
  overflow: hidden;
  padding-block: clamp(5rem, 11vw, 8.5rem) clamp(4.5rem, 9vw, 7rem);
  background: var(--band-bg);
  color: var(--band-ink);
}

.contact-inner {
  position: relative;
}

.contact .eyebrow {
  color: var(--band-accent);
}

.contact h2 {
  max-width: 14ch;
  margin-top: 1.25rem;
  font-size: clamp(2.75rem, 1.6rem + 5vw, 5.5rem);
  line-height: 1;
  letter-spacing: -0.03em;
}

.contact-lede {
  max-width: 34rem;
  margin-top: 1.5rem;
  color: var(--band-muted);
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.5rem;
}

.contact .btn-primary {
  background: var(--band-accent);
  color: #07140e;
}

.contact .btn-primary:hover {
  background: #7fe0b2;
}

.contact-note {
  max-width: 36rem;
  margin-top: 2rem;
  color: var(--band-muted);
  font-size: 0.9375rem;
}

/* Decorative branch-and-merge graph */
.contact-art {
  position: absolute;
  top: 50%;
  right: max(2rem, calc((100vw - var(--container)) / 2));
  width: auto;
  height: 82%;
  transform: translateY(-50%);
}

.contact-art-line {
  fill: none;
  stroke: var(--band-line);
  stroke-width: 2;
}

.contact-art-node {
  fill: var(--band-bg);
  stroke: #454a52;
  stroke-width: 2;
}

.contact-art-node.is-head {
  fill: var(--band-accent);
  stroke: var(--band-accent);
}

@media (max-width: 899px) {
  .contact-art {
    display: none;
  }
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--band-line);
  background: var(--band-bg);
  color: var(--band-muted);
  font-size: 0.875rem;
}

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

.site-footer .brand {
  color: var(--band-ink);
}

.site-footer .brand-mark {
  width: 24px;
  height: 24px;
}

.site-footer .brand-mark rect {
  fill: var(--band-accent);
}

.site-footer .brand-mark path {
  stroke: #07140e;
}

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

.footer-nav a {
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-nav a:hover {
  color: var(--band-ink);
}

/* ---------- 404 page ---------- */
.notfound {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding-block: 4rem;
}

.notfound h1 {
  margin-top: 1.25rem;
  font-size: clamp(2.6rem, 1.6rem + 4vw, 4.5rem);
  letter-spacing: -0.025em;
}

.notfound h1 em {
  color: var(--accent-text);
}

.notfound .btn {
  margin-top: 2.25rem;
}

.notfound-hint {
  margin-top: 1.5rem;
  color: var(--ink-3);
  font: 400 0.8125rem/1 var(--font-mono);
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
