/* Portanova Scans & Shreds — archival, calm, local */

:root {
  --primary: #1B2D1B;
  --secondary: #F2F6FC;
  --tertiary: #091309;
  --white: #ffffff;
  --muted: #4a5a4a;
  --border: rgba(27, 45, 27, 0.12);
  --shadow: 0 8px 28px rgba(9, 19, 9, 0.06);
  --shadow-soft: 0 2px 12px rgba(9, 19, 9, 0.04);
  --radius: 10px;
  --header-h: 4.25rem;
  --font-display: "Cormorant Garamond", "Palatino Linotype", Palatino, Georgia, serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
  --max: 68rem;
  --ease: cubic-bezier(0.33, 0.05, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--tertiary);
  background-color: var(--secondary);
  background-image:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(27, 45, 27, 0.04), transparent 55%),
    linear-gradient(180deg, #f7f9fc 0%, var(--secondary) 40%, #eef2f8 100%);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color 0.25s var(--ease), opacity 0.25s var(--ease);
}

a:hover {
  color: var(--tertiary);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--primary);
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.25rem, 5vw, 3.35rem); }
h2 { font-size: clamp(1.85rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.35rem, 2.5vw, 1.65rem); }

p {
  margin: 0 0 1em;
}

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

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

/* —— Header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(242, 246, 252, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1.25rem;
  min-height: var(--header-h);
  padding-block: 0.55rem;
}

.logo-link {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-right: auto;
  text-decoration: none;
}

.logo-link img {
  display: block;
  height: clamp(2rem, 4.5vw, 2.65rem);
  width: auto;
  max-width: min(240px, 52vw);
  margin: 0;
}

.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  color: var(--primary);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav-toggle svg {
  width: 1.35rem;
  height: 1.35rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  margin-left: auto;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--primary);
  text-decoration: none;
  padding: 0.25rem 0;
  border-bottom: 1px solid transparent;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  border-bottom-color: rgba(27, 45, 27, 0.35);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.35rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  border-radius: 8px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.btn-primary:hover {
  background: var(--tertiary);
  color: var(--white);
  border-color: var(--tertiary);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.55);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border-color: var(--white);
}

.btn-light {
  background: var(--white);
  color: var(--primary);
  border-color: var(--white);
}

.btn-light:hover {
  background: var(--secondary);
  color: var(--primary);
  border-color: var(--secondary);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: rgba(27, 45, 27, 0.35);
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.btn-nav {
  padding: 0.55rem 1.1rem;
  font-size: 0.9rem;
  white-space: nowrap;
}

.btn[disabled] {
  cursor: wait;
}

.quote-form .btn[type="submit"] {
  min-width: 12.5rem;
  min-height: 2.85rem;
  text-align: center;
  line-height: 1.3;
  transition:
    background 0.35s var(--ease),
    color 0.35s var(--ease),
    border-color 0.35s var(--ease),
    opacity 0.35s var(--ease);
}

.quote-form .btn[type="submit"].is-sending {
  opacity: 0.85;
}

.quote-form .btn[type="submit"].is-error {
  background: #5c2e2e;
  border-color: #5c2e2e;
  color: var(--white);
  cursor: pointer;
  white-space: normal;
  max-width: 22rem;
  padding-block: 0.75rem;
}

.quote-panel {
  position: relative;
}

.quote-success {
  padding: 2rem 1.5rem;
  border: 1px solid rgba(27, 45, 27, 0.18);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-soft);
  text-align: center;
  animation: quote-success-in 0.55s var(--ease);
}

.quote-success[hidden] {
  display: none;
}

.quote-success-eyebrow {
  margin: 0 0 0.45rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  opacity: 0.7;
}

.quote-success-title {
  margin: 0 0 0.55rem;
  font-size: clamp(1.6rem, 3vw, 2rem);
  color: var(--primary);
}

.quote-success-copy {
  margin: 0 0 1.35rem;
  color: var(--muted);
  font-size: 1.08rem;
}

@keyframes quote-success-in {
  from {
    opacity: 0;
    transform: translateY(0.6rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .quote-success {
    animation: none;
  }
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: min(88vh, 42rem);
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-color: var(--primary);
  background-image: url("../images/hero-media.jpg");
  background-size: cover;
  background-position: center;
  filter: blur(2.5px);
  transform: scale(1.04);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(160deg, rgba(9, 19, 9, 0.72) 0%, rgba(27, 45, 27, 0.62) 45%, rgba(9, 19, 9, 0.7) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(100% - 2.5rem, 52rem);
  margin-inline: auto;
  padding: 5rem 0 4.5rem;
  text-align: center;
}

.hero-rotator {
  position: relative;
  display: grid;
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 3.6vw, 3rem);
  font-weight: 600;
  line-height: 1.25;
  color: var(--white);
}

.hero-line {
  grid-area: 1 / 1;
  margin: 0;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.65s var(--ease);
  pointer-events: none;
}

.hero-line.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero-line.is-final.is-active {
  font-weight: 700;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 24px rgba(9, 19, 9, 0.35);
}

.hero-sub {
  margin: 0 auto 2rem;
  max-width: 32rem;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  font-weight: 400;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.92);
  opacity: 0;
  transition: opacity 1.2s var(--ease);
}

.hero-sub.is-visible {
  opacity: 1;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
  opacity: 0;
  transition: opacity 1.2s var(--ease);
}

.hero-actions.is-visible {
  opacity: 1;
}

/* —— Sections —— */
.section {
  padding: clamp(3.5rem, 8vw, 5.5rem) 0;
}

.section-intro {
  max-width: 36rem;
  margin-bottom: 2.5rem;
}

.section-intro-center {
  max-width: none;
  text-align: center;
  margin-inline: auto;
}

.section-intro-center p,
.section-lead-oneline {
  max-width: none;
  margin-inline: auto;
}

.section-lead-oneline {
  white-space: nowrap;
  font-size: clamp(0.92rem, 1.35vw, 1.1rem);
}

.section-intro p,
.lead {
  color: var(--muted);
  font-size: 1.1rem;
}

.section-alt {
  background: rgba(255, 255, 255, 0.45);
  border-block: 1px solid var(--border);
}

/* Soft sage wash — distinct from pale page and white cards */
.section-process {
  background: linear-gradient(180deg, #dce4dc 0%, #d0dad0 100%);
  border-block: 1px solid rgba(27, 45, 27, 0.14);
}

.section-process .section-intro h2 {
  color: var(--primary);
}

.section-process .reassure {
  color: var(--muted);
}

.section-cta {
  margin-top: 2.5rem;
  text-align: center;
}

.reassure-center {
  text-align: center;
}

/* —— Service cards —— */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.6rem 1.5rem;
  box-shadow: var(--shadow-soft);
  transition: box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

.service-card:hover {
  box-shadow: var(--shadow);
  border-color: rgba(27, 45, 27, 0.22);
}

.card-icon {
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 1.1rem;
  color: var(--primary);
}

.card-icon svg {
  width: 100%;
  height: 100%;
}

.service-card h3 {
  margin-bottom: 0.5rem;
}

.service-card p {
  color: var(--muted);
  font-size: 1rem;
  margin-bottom: 1.15rem;
}

.card-link {
  align-self: flex-start;
  margin-top: auto;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(27, 45, 27, 0.3);
}

.card-link:hover {
  border-bottom-color: var(--primary);
}

/* —— How it works —— */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  counter-reset: step;
  margin: 2rem 0 1.25rem;
  list-style: none;
  padding: 0;
}

.steps-centered .step {
  text-align: center;
}

.steps-centered .step::before {
  margin-inline: auto;
}

.step {
  position: relative;
  padding-top: 0.25rem;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  margin-bottom: 0.85rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--primary);
  background: var(--white);
  border: 1px solid rgba(27, 45, 27, 0.16);
  border-radius: 50%;
  box-shadow: var(--shadow-soft);
}

.step h3 {
  font-size: 1.25rem;
  margin-bottom: 0.35rem;
}

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

.reassure {
  margin-top: 1.5rem;
  font-style: italic;
  color: var(--muted);
}

/* —— CTA / Contact band —— */
.cta-band {
  background:
    linear-gradient(165deg, rgba(27, 45, 27, 0.04), transparent 50%),
    var(--white);
  border-block: 1px solid var(--border);
}

.cta-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3rem;
  align-items: start;
}

.cta-copy .btn {
  margin-top: 0.5rem;
}

.privacy-note {
  margin-top: 1rem;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.5;
}

/* —— Forms —— */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.15rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-field.full {
  grid-column: 1 / -1;
}

.form-field label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary);
}

.form-field .optional {
  font-weight: 400;
  color: var(--muted);
}

.form-field input,
.form-field textarea,
.form-field select {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--secondary);
  color: var(--tertiary);
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.form-field input:hover,
.form-field textarea:hover,
.form-field select:hover {
  border-color: rgba(27, 45, 27, 0.28);
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  background: var(--white);
}

.form-field textarea {
  min-height: 7rem;
  resize: vertical;
}

.need-fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.need-fieldset legend {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.55rem;
  padding: 0;
}

.need-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem 1rem;
}

.need-option {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--tertiary);
  cursor: pointer;
  line-height: 1.35;
}

.need-option input {
  margin-top: 0.2rem;
  accent-color: var(--primary);
  flex-shrink: 0;
}

.form-actions {
  margin-top: 0.35rem;
}

.form-status {
  margin-top: 0.85rem;
  font-size: 0.95rem;
  color: var(--primary);
  display: none;
}

.form-status.is-visible {
  display: block;
}

/* —— Page hero (inner pages) —— */
.page-hero {
  padding: clamp(2.75rem, 6vw, 4rem) 0 1.5rem;
}

.page-hero p {
  max-width: 36rem;
  color: var(--muted);
  font-size: 1.12rem;
  margin: 0;
}

.page-hero p.page-hero-lead {
  max-width: none;
  width: max-content;
  max-width: 100%;
  margin: 0;
  color: var(--muted);
  font-size: clamp(0.88rem, 0.95vw, 1.08rem);
  letter-spacing: -0.01em;
  white-space: nowrap;
}

@media (max-width: 600px) {
  .page-hero p.page-hero-lead {
    width: auto;
    white-space: normal;
    max-width: 36rem;
    font-size: 1.05rem;
    letter-spacing: normal;
  }
}

/* —— Service tiles (services page) —— */
.service-offerings {
  padding-top: 1rem;
}

.service-tile {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.service-tile img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.service-tile-body {
  padding: 1.15rem 1.3rem 1.35rem;
}

.service-tile h3 {
  min-height: 2.4em;
  margin-bottom: 0.4rem;
  font-size: 1.4rem;
}

.service-tile p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

.scope-note {
  margin-top: 2.5rem;
  padding: 1.25rem 1.4rem;
  border-left: 3px solid rgba(27, 45, 27, 0.25);
  background: rgba(255, 255, 255, 0.55);
  color: var(--muted);
  font-size: 0.98rem;
}

.scope-note-heading {
  margin: 0 0 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

/* —— Blog —— */
.blog-list {
  display: grid;
  gap: 1.25rem;
}

.blog-item {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}

.blog-item:first-child {
  border-top: 1px solid var(--border);
}

.blog-item time {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.blog-item h2 {
  font-size: 1.45rem;
  margin-bottom: 0.4rem;
}

.blog-item h2 a {
  text-decoration: none;
  color: var(--primary);
}

.blog-item h2 a:hover {
  color: var(--tertiary);
}

.blog-item p {
  margin: 0;
  color: var(--muted);
}

.blog-empty {
  padding: 2rem 0;
  color: var(--muted);
}

.blog-item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.85rem;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

/* —— Article —— */
.article {
  padding-bottom: clamp(3.5rem, 8vw, 5.5rem);
}

.article .container {
  width: min(100% - 2.5rem, 44rem);
}

.article-header {
  padding: clamp(2.75rem, 6vw, 4rem) 0 1.5rem;
}

.article-kicker {
  display: inline-block;
  margin: 0 0 0.85rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
}

.article-kicker:hover {
  color: var(--primary);
}

.article-header h1 {
  margin-bottom: 0.4rem;
}

.article-sub {
  margin: 0 0 1.15rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.article-hero-image {
  margin: 0 0 2.25rem;
}

.article-hero-image img {
  width: 100%;
  max-height: 28rem;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.article-hero-image figcaption {
  margin-top: 0.65rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.article-body {
  max-width: none;
}

.article-body h2 {
  margin-top: 2rem;
  font-size: clamp(1.45rem, 2.4vw, 1.75rem);
}

.article-body p,
.article-body li {
  color: var(--muted);
  font-size: 1.08rem;
}

.article-body p + p {
  margin-top: 1em;
}

.article-body ul,
.article-body ol {
  margin: 1em 0;
  padding-left: 1.25rem;
}

.article-body li + li {
  margin-top: 0.4rem;
}

.article-figure {
  margin: 1.75rem 0;
}

.article-figure img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.article-figure figcaption {
  margin-top: 0.65rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.article-crosslinks {
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
}

.article-crosslinks h2 {
  font-size: 1.35rem;
}

.article-crosslinks ul {
  margin: 0;
  padding-left: 1.15rem;
}

.article-note {
  margin-top: 2rem;
}

.article-cta {
  margin-top: 2.5rem;
  padding: 1.5rem 1.6rem;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.article-cta h2 {
  font-size: 1.35rem;
  margin-bottom: 0.4rem;
}

.article-cta p {
  margin: 0 0 1.1rem;
  color: var(--muted);
}

/* —— Story / prose —— */
.story-layout {
  display: grid;
  grid-template-columns: min(13.5rem, 34%) 1fr;
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: start;
  max-width: 52rem;
}

.story-founder {
  margin: 0;
}

.story-founder img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.story-founder figcaption {
  margin-top: 0.8rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--primary);
  text-align: center;
}

.prose {
  max-width: 40rem;
}

.prose p {
  color: var(--muted);
  font-size: 1.08rem;
}

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

/* —— Footer —— */
.site-footer {
  background: var(--primary);
  color: rgba(242, 246, 252, 0.88);
  padding: 3rem 0 2rem;
  margin-top: auto;
}

.site-footer a {
  color: rgba(242, 246, 252, 0.92);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--white);
  text-decoration: underline;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-brand img {
  height: 2.4rem;
  width: auto;
  max-width: 220px;
  filter: brightness(0) invert(1);
  opacity: 0.92;
  margin-bottom: 1rem;
}

.footer-brand .dba {
  font-size: 0.88rem;
  line-height: 1.5;
  opacity: 0.8;
  margin-bottom: 0.75rem;
}

.footer-brand .privacy-line {
  font-size: 0.9rem;
  font-style: italic;
  opacity: 0.78;
  margin: 0;
}

.footer-col h3 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(242, 246, 252, 0.65);
  margin-bottom: 0.85rem;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li + li {
  margin-top: 0.45rem;
}

.footer-col p {
  margin: 0 0 0.4rem;
  font-size: 0.95rem;
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(242, 246, 252, 0.15);
  font-size: 0.88rem;
  opacity: 0.75;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
}

/* —— 404 —— */
.error-page {
  min-height: 55vh;
  display: flex;
  align-items: center;
  padding: 4rem 0;
}

.error-page .container {
  text-align: center;
  max-width: 34rem;
}

.error-page h1 {
  margin-bottom: 1rem;
}

.error-page-lead {
  color: var(--muted);
  font-size: 1.08rem;
  margin: 0 0 1rem;
}

.error-page-support {
  color: var(--text);
  font-size: 1rem;
  font-weight: 500;
  margin: 0 0 1.75rem;
}

.error-page-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
}

/* —— Responsive —— */
@media (max-width: 900px) {
  .card-grid,
  .steps,
  .cta-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .steps {
    gap: 1.35rem;
  }

  .footer-grid {
    gap: 2rem;
  }

  .service-tiles {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .service-tiles {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .site-nav {
    margin-left: 0;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem 1.25rem 1.25rem;
    background: rgba(242, 246, 252, 0.98);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

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

  .nav-links a {
    display: block;
    padding: 0.85rem 0.25rem;
    border-bottom: 1px solid var(--border);
  }

  .nav-links a:hover,
  .nav-links a[aria-current="page"] {
    border-bottom-color: var(--border);
  }

  .btn-nav {
    width: 100%;
    margin-top: 0.85rem;
  }

  .header-inner {
    position: relative;
  }

  .hero-rotator {
    font-size: clamp(1.55rem, 6.8vw, 2.25rem);
  }

  .hero-line {
    white-space: normal;
  }

  .section-lead-oneline {
    white-space: normal;
    font-size: 1.02rem;
    max-width: 36rem;
  }

  .need-options {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .story-layout {
    grid-template-columns: 1fr;
    max-width: 40rem;
  }

  .story-founder {
    max-width: 13.5rem;
    margin-inline: auto;
  }
}

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

  .hero-bg {
    filter: none;
    transform: none;
  }
}
