/* =========================================================
   Forever Still Studio — Columbia, SC landing
   Modular vanilla CSS · mobile-first · FSS brand system
   (matches foreverstillstudio.com + the .app product landings)
   ========================================================= */

/* ---------- Design tokens ---------- */
:root {
  /* Brand */
  --ink:        #121212;   /* primary dark background */
  --ink-2:      #1c1a18;   /* warm raised panels */
  --ink-3:      #232323;
  --gold:       #C8A96A;   /* the one accent — never #D4AF37 */
  --gold-soft:  #d8bf90;
  --gold-ink:   #7a6228;   /* AA-legible gold on cream */
  --cream:      #F4EFE6;   /* primary text on dark / cream-section bg */
  --cream-2:    #fffaf3;   /* cream-section cards */
  --ink-text:   #1A1A1A;   /* text on cream */
  --ink-soft:   #4a423a;   /* body text on cream */
  --blush:      #d8b9b3;   /* dusty rose — hero italic, soft accents */
  --muted:      #b9ad9f;   /* secondary text on dark */
  --line:       rgba(200, 169, 106, 0.30);

  /* Contextual (dark by default; flipped in .section--cream) */
  --c-bg:      var(--ink);
  --c-surface: var(--ink-2);
  --c-head:    var(--cream);
  --c-body:    var(--muted);
  --c-strong:  var(--cream);
  --c-eyebrow: var(--gold);
  --c-line:    var(--line);
  --c-cardline:var(--line);

  /* Type */
  --serif:  "Cormorant Garamond", Georgia, serif;
  --sans:   "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --script: "Tangerine", cursive;

  /* Fluid spacing scale */
  --space-1: clamp(0.5rem, 1vw, 0.75rem);
  --space-2: clamp(0.75rem, 2vw, 1.25rem);
  --space-3: clamp(1.25rem, 3vw, 2rem);
  --space-4: clamp(2rem, 5vw, 3.5rem);
  --space-5: clamp(3.25rem, 8vw, 6.5rem);

  --maxw: 1120px;
  --maxw-narrow: 760px;
  --radius: 14px;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.45);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.7;
  color: var(--cream);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--gold); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--gold-soft); }
/* Elegant, thin display headings — the FSS signature */
h1, h2, h3 { font-family: var(--serif); font-weight: 300; line-height: 1.12; margin: 0; letter-spacing: 0.01em; }
p { margin: 0 0 1rem; }
em { font-style: italic; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--gold); color: var(--ink); padding: 0.6rem 1rem;
}
.skip-link:focus { left: 0; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1.25rem, 5vw, 2.5rem); }
.narrow { max-width: var(--maxw-narrow); }
.center { text-align: center; }
section { padding-block: var(--space-5); position: relative; }

/* Eyebrow + gold rule above each section title (eyebrow → rule → title) */
.eyebrow {
  font-family: var(--sans); font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.28em; text-transform: uppercase; color: var(--c-eyebrow);
  margin: 0 0 var(--space-2);
}
.eyebrow-gold { color: var(--c-eyebrow); }

.section-title {
  font-size: clamp(2rem, 1.3rem + 3.2vw, 3.2rem);
  letter-spacing: 0.005em; margin-bottom: var(--space-3); max-width: 20ch;
  color: var(--c-head);
}
.section-title::before {
  content: ""; display: block; width: 48px; height: 1px;
  background: var(--gold); margin: 0 0 1.4rem;
}
.center .section-title { margin-inline: auto; }
.center .section-title::before { margin-inline: auto; }
.section-lead { color: var(--c-body); max-width: 60ch; font-size: 1.08rem; margin-bottom: var(--space-4); }
.center .section-lead { margin-inline: auto; }

/* ---------- Buttons (sharp, uppercase — FSS) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--sans); font-weight: 500; font-size: 0.72rem;
  letter-spacing: 0.18em; text-transform: uppercase;
  padding: 1.05rem 2rem; border: 1px solid currentColor; border-radius: 0;
  cursor: pointer; transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  line-height: 1; text-align: center;
}
.btn-primary { background: var(--gold); color: #121212; border-color: var(--gold); }
.btn-primary:hover { background: transparent; color: var(--gold); }
.btn-ghost { background: transparent; border-color: var(--gold); color: var(--gold); }
.btn-ghost:hover { background: var(--gold); color: #121212; }
.btn-ghost-light { background: transparent; border-color: rgba(244,239,230,0.45); color: var(--cream); }
.btn-ghost-light:hover { background: var(--cream); color: #121212; border-color: var(--cream); }
.btn-block { width: 100%; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(18, 18, 18, 0.85); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; padding-block: 0.9rem; }
.brand { display: flex; flex-direction: row; align-items: center; gap: 12px; line-height: 1.05; }
.brand-logo { width: 56px; height: auto; aspect-ratio: 1/1; flex: none; }
.brand-text { display: flex; flex-direction: column; }
.brand-mark { font-family: var(--serif); font-size: 1.4rem; font-weight: 400; color: var(--cream); }
.brand-sub { font-size: 0.58rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); margin-top: 4px; }
@media (max-width: 480px) { .brand-text { display: none; } }

.nav { display: flex; align-items: center; }
.nav-menu { list-style: none; display: flex; gap: 1.7rem; margin: 0; padding: 0; align-items: center; }
.nav-menu a { color: var(--cream); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; }
.nav-menu a:hover { color: var(--gold); }
.nav-menu .nav-cta {
  color: var(--gold); background: transparent; border: 1px solid var(--gold);
  padding: 0.7rem 1.2rem; text-transform: uppercase; transition: background 0.2s, color 0.2s;
}
.nav-menu .nav-cta:hover { background: var(--gold); color: #121212; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--cream); transition: transform 0.25s, opacity 0.25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; display: flex; align-items: center;
  background: var(--ink);
  min-height: clamp(580px, 90vh, 920px);
  padding-block: clamp(4rem, 10vw, 7.5rem);
}
/* Layered hero: sunset sky (back) → drifting clouds → building cutout (front) → overlay → content */
.hero-base, .hero-cutout {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center bottom; pointer-events: none; user-select: none;
}
.hero-base { z-index: 0; }
.hero-cutout { z-index: 2; }
.hero-overlay {
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  /* Light touch — only scrim the left/bottom behind the headline; leave the upper-right
     sky clear so the drifting clouds stay vivid (the Mill used no overlay at all). */
  background:
    linear-gradient(90deg, rgba(18,18,18,0.62) 0%, rgba(18,18,18,0.30) 38%, rgba(18,18,18,0) 64%),
    linear-gradient(0deg, rgba(18,18,18,0.70) 0%, rgba(18,18,18,0.10) 32%, rgba(18,18,18,0) 56%);
}
.hero-sparkles { position: absolute; inset: 0; z-index: 4; pointer-events: none; overflow: hidden; }
.hero-sparkles .spk { position: absolute; color: var(--gold); opacity: 0; animation: spkFloat var(--dur, 10s) ease-in-out infinite; animation-delay: var(--delay, 0s); }
.hero-sparkles .spk svg { display: block; width: 100%; height: 100%; fill: currentColor; }
@keyframes spkFloat {
  0% { opacity: 0; transform: translateY(12px) scale(.6); }
  20%, 80% { opacity: var(--max, .5); }
  50% { opacity: var(--max, .5); transform: translateY(-14px) scale(1) rotate(18deg); }
  100% { opacity: 0; transform: translateY(-34px) scale(.6); }
}
/* Drifting clouds (ported from the Mill) — two tiling layers, different speeds, masked down the sky */
.hero-sky {
  position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden;
  /* Clouds drift across the whole frame; the building cutout (z2) covers everything
     below the skyline, so they only ever show in the sky. Fade out toward the horizon. */
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 40%, rgba(0,0,0,0) 64%);
          mask-image: linear-gradient(to bottom, #000 0%, #000 40%, rgba(0,0,0,0) 64%);
}
.hero-sky .cloud {
  position: absolute; top: 0; left: 0; width: 200%; height: 100%;
  background: url("../assets/clouds.svg") repeat; background-size: 50% 100%; will-change: transform;
}
.hero-sky .cloud.a { opacity: 0.70; mix-blend-mode: soft-light; animation: cloudDrift 42s linear infinite; }
.hero-sky .cloud.b { opacity: 0.50; mix-blend-mode: screen; background-position: 25% 0; animation: cloudDrift 66s linear infinite reverse; }
@keyframes cloudDrift { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.hero-inner { position: relative; z-index: 5; max-width: 880px; }
.hero-script { font-family: var(--script); font-weight: 700; font-size: clamp(2.6rem, 5.4vw, 3.8rem); line-height: 1; color: var(--gold); display: block; margin-bottom: 0.1rem;
  text-shadow: 0 1px 2px rgba(18,18,18,0.55), 0 3px 22px rgba(18,18,18,0.65); }
.hero .eyebrow { color: var(--gold); text-shadow: 0 1px 10px rgba(18,18,18,0.6); }
.hero-title {
  font-size: clamp(2.5rem, 1.4rem + 5.4vw, 4.6rem);
  font-weight: 300; letter-spacing: 0.005em; margin-bottom: var(--space-3); color: var(--cream);
  text-shadow: 0 1px 2px rgba(18,18,18,0.45), 0 2px 24px rgba(18,18,18,0.55);
}
.hero-title em { font-style: italic; color: var(--blush); }
.hero-sub { font-size: clamp(1.05rem, 1rem + 0.5vw, 1.28rem); font-weight: 300; color: var(--cream); max-width: 56ch; margin-bottom: var(--space-4);
  text-shadow: 0 1px 14px rgba(18,18,18,0.6); }
.hero-sub strong { color: var(--gold); font-weight: 500; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-bottom: var(--space-5); }

.social-proof { border-top: 1px solid var(--line); padding-top: var(--space-3); }
.proof-label { display: block; font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-bottom: 1rem; }
.proof-logos { list-style: none; display: flex; flex-wrap: wrap; gap: 1.5rem 2.5rem; margin: 0; padding: 0; }
.proof-logo { color: var(--muted); font-weight: 600; font-size: 0.95rem; opacity: 0.7; }

/* =========================================================
   Cream section theme — flips the contextual vars (FSS alternation)
   Applied via class="… section--cream"
   ========================================================= */
.section--cream {
  --c-bg: var(--cream);
  --c-surface: var(--cream-2);
  --c-head: var(--ink-text);
  --c-body: var(--ink-soft);
  --c-strong: var(--ink-text);
  --c-eyebrow: var(--gold-ink);
  --c-line: rgba(168, 137, 74, 0.28);
  --c-cardline: rgba(168, 137, 74, 0.28);
  background: var(--c-bg); color: var(--c-body);
  border-block: 1px solid var(--c-line);
}
.section--cream h2, .section--cream h3 { color: var(--c-head); }
.section--cream p { color: var(--c-body); }
.section--cream em { color: var(--gold-ink); }
.section--cream strong { color: var(--c-strong); }
.section--cream a:not(.btn) { color: var(--gold-ink); }
.section--cream a:not(.btn):hover { color: var(--gold); }

/* ---------- Local Wedge ---------- */
.wedge-body { max-width: 70ch; font-size: 1.12rem; }
.wedge-poc { margin-top: var(--space-3); font-style: italic; }
.wedge-poc strong { font-style: normal; }
.section--cream .wedge-poc { color: var(--gold-ink); }

/* ---------- Trust band ("Blast Radius") ---------- */
.trust { padding-block: var(--space-4); }
.trust-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-3); }
.trust-card {
  background: var(--c-surface); border: 1px solid var(--c-cardline);
  border-radius: var(--radius); padding: var(--space-3);
}
.trust-icon { width: 40px; height: 40px; color: var(--gold); margin-bottom: 1rem; }
.section--cream .trust-icon { color: var(--gold-ink); }
.trust-icon svg { width: 100%; height: 100%; }
.trust-card h3 { font-size: 1.4rem; font-weight: 400; margin-bottom: 0.4rem; color: var(--c-head); }
.trust-card p { color: var(--c-body); margin: 0; font-size: 0.97rem; }

/* ---------- About / story ---------- */
.about p { color: var(--c-body); font-size: 1.1rem; max-width: 68ch; }
.together { margin: var(--space-4) auto 0; max-width: 620px; }
.together img { width: 100%; border-radius: var(--radius); border: 1px solid var(--c-cardline); }
.together figcaption {
  margin-top: 1rem; text-align: center; font-family: var(--serif); font-style: italic;
  font-size: clamp(1.1rem, 1rem + 0.6vw, 1.35rem); line-height: 1.4;
}
.section--cream .together figcaption { color: var(--gold-ink); }
/* Handwritten "Two states / One mission..." treatment with heart */
.together figcaption.together-caption { margin-top: 1.25rem; text-align: center; font-style: normal; font-family: var(--sans); }
.together-caption .tc-script {
  display: block; font-family: var(--script); font-style: normal; color: var(--gold-ink);
  font-size: clamp(2.6rem, 1.7rem + 3.8vw, 4.1rem); line-height: 1.02; font-weight: 700;
}
.together-caption .tc-rule { display: block; width: 70px; height: 0; margin: 0.55rem auto 0.6rem; border-top: 1px solid var(--gold-ink); opacity: 0.45; }
.together-caption .tc-tag { display: block; font-family: var(--sans); font-style: normal; font-size: 0.72rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold-ink); }
.together-caption .tc-heart { font-size: 0.95em; letter-spacing: 0; }

/* ---------- Meet Trina ---------- */
.meet { background: var(--ink-2); border-block: 1px solid var(--line); }
.meet-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-4); align-items: start; }
.meet-photo {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center top;
  border-radius: var(--radius); border: 1px solid var(--line);
}
.meet-body p { color: var(--cream); font-size: 1.08rem; max-width: 58ch; }
.meet-role { color: var(--gold); font-style: italic; margin-bottom: 1rem; }
.meet-quote {
  margin: var(--space-3) 0 0; padding-left: 1.4rem; border-left: 2px solid var(--gold);
  font-family: var(--serif); font-size: clamp(1.4rem, 1.1rem + 1vw, 1.8rem);
  font-weight: 300; line-height: 1.4; color: var(--cream); font-style: italic;
}
.meet-quote cite {
  display: block; font-family: var(--sans); font-style: normal; font-size: 0.8rem;
  color: var(--muted); margin-top: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase;
}
@media (min-width: 760px) {
  .meet-grid { grid-template-columns: 0.85fr 1.15fr; gap: var(--space-5); }
}

/* ---------- Services grid ---------- */
.card-grid { display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--c-cardline); border: 1px solid var(--c-cardline); }
.service-card {
  position: relative; background: var(--c-surface); padding: var(--space-3);
  transition: background 0.2s ease;
}
.service-card:hover { background: var(--c-bg); }
.card-num { font-family: var(--serif); font-style: italic; font-size: 1.6rem; color: var(--gold); display: block; margin-bottom: 0.6rem; line-height: 1; }
.section--cream .card-num { color: var(--gold-ink); }
.service-card h3 { font-size: 1.5rem; font-weight: 400; margin-bottom: 0.6rem; color: var(--c-head); }
.service-card p { color: var(--c-body); margin: 0; }
.pricing-note { margin-top: var(--space-4); color: var(--c-body); }
.pricing-note strong { color: var(--c-head); }

/* ---------- Software Edge (the moat — stays dark) ---------- */
.software { background: var(--ink); }
.edge-list { display: grid; grid-template-columns: 1fr; gap: var(--space-3); }
.edge-item {
  background: var(--ink-2); border: 1px solid var(--line); border-left: 2px solid var(--gold);
  border-radius: var(--radius); padding: var(--space-3);
}
.edge-item h3 { font-size: 1.4rem; font-weight: 400; color: var(--cream); margin-bottom: 0.5rem; }
.edge-name { color: var(--gold); font-style: italic; }
a.edge-name { text-decoration: none; border-bottom: 1px solid rgba(200,169,106,0.4); transition: border-color .2s ease, opacity .2s ease; }
a.edge-name:hover, a.edge-name:focus-visible { border-bottom-color: var(--gold); opacity: 0.85; }
a.edge-name::after { content: " \2197"; font-style: normal; font-size: 0.7em; opacity: 0.7; }
.edge-item > p { color: var(--cream); }
.proof {
  margin: 1rem 0 0; padding: 0.9rem 1.1rem; background: rgba(200,169,106,0.07);
  border-radius: 10px; font-size: 0.95rem; color: var(--muted); font-style: italic;
}
.proof strong { color: var(--gold); font-style: normal; }
.edge-item-wide { border-left-color: var(--blush); }

/* ---------- Work / testimonials / portfolio ---------- */
.testimonials { display: grid; grid-template-columns: 1fr; gap: var(--space-3); margin-bottom: var(--space-4); }
.testimonial { margin: 0; background: var(--c-surface); border: 1px solid var(--c-cardline); border-radius: var(--radius); padding: var(--space-3); }
.testimonial blockquote { margin: 0 0 1rem; font-family: var(--serif); font-size: 1.4rem; font-style: italic; line-height: 1.45; color: var(--c-head); }
.testimonial figcaption { color: var(--c-body); font-size: 0.85rem; letter-spacing: 0.04em; }
.testimonial figcaption strong { color: var(--gold); }
.section--cream .testimonial figcaption strong { color: var(--gold-ink); }

.portfolio-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-3); }
.portfolio-card { display: block; background: var(--c-surface); border: 1px solid var(--c-cardline); border-radius: var(--radius); padding: 1rem; transition: transform 0.2s, border-color 0.2s; }
.portfolio-card:hover { transform: translateY(-4px); border-color: var(--gold); }
.portfolio-thumb {
  aspect-ratio: 16/10; display: grid; place-items: center; border-radius: 10px; margin-bottom: 1rem;
  background: repeating-linear-gradient(45deg, var(--ink-3), var(--ink-3) 10px, var(--ink-2) 10px, var(--ink-2) 20px);
  color: var(--muted); font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase;
}
.section--cream .portfolio-thumb { background: repeating-linear-gradient(45deg, #ece3d2, #ece3d2 10px, #f4efe6 10px, #f4efe6 20px); color: var(--ink-soft); }
img.portfolio-thumb { width: 100%; object-fit: cover; object-position: top center; background: var(--ink-2); }
.portfolio-card h3 { font-size: 1.25rem; font-weight: 400; color: var(--c-head); margin-bottom: 0.3rem; }
.portfolio-result { color: var(--c-body); font-size: 0.92rem; margin: 0; font-style: italic; }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 0.75rem; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); background: var(--ink-2); overflow: hidden; }
.faq-item summary {
  cursor: pointer; list-style: none; padding: 1.2rem 1.4rem; font-weight: 500; color: var(--cream);
  font-size: 1.05rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--gold); font-size: 1.5rem; line-height: 1; transition: transform 0.2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-answer { padding: 0 1.4rem 1.3rem; }
.faq-answer p { color: var(--muted); margin: 0; }
.faq-answer strong { color: var(--cream); }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: radial-gradient(700px 360px at 50% 0%, rgba(200,169,106,0.18), transparent 60%), var(--ink-2);
  border-block: 1px solid var(--line);
}
.cta-title { font-size: clamp(2.1rem, 1.4rem + 3vw, 3.4rem); font-weight: 300; margin-bottom: var(--space-3); color: var(--cream); }
.cta-title::before { content: ""; display: block; width: 48px; height: 1px; background: var(--gold); margin: 0 auto 1.4rem; }
.cta-banner p { color: var(--cream); max-width: 58ch; margin-inline: auto; }
.cta-buttons { display: flex; flex-wrap: wrap; gap: 0.9rem; justify-content: center; margin-top: var(--space-4); }

/* ---------- Lead form ---------- */
.lead { background: var(--ink); }
.lead-form { display: grid; gap: 1.2rem; max-width: 620px; }
.field { display: grid; gap: 0.4rem; }
.field-row { display: grid; gap: 1.2rem; }
.field label { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); }
.field .optional { color: var(--muted); font-weight: 400; text-transform: none; letter-spacing: 0; }
.field input {
  font-family: var(--sans); font-size: 1rem; color: var(--cream);
  background: var(--ink-2); border: 1px solid var(--line); border-radius: 0; padding: 0.9rem 1rem;
  transition: border-color 0.2s, background 0.2s;
}
.field input::placeholder { color: var(--muted); }
.field input:focus { outline: none; border-color: var(--gold); background: #211d16; }
.form-fineprint { text-align: center; color: var(--muted); font-size: 0.88rem; margin: 0.5rem 0 0; }
.form-done { text-align: center; padding: var(--space-4) var(--space-3); background: var(--ink-2); border: 1px solid var(--gold); border-radius: var(--radius); }
.form-done h3 { font-size: 1.8rem; font-weight: 300; color: var(--gold); margin-bottom: 0.5rem; }
.form-done p { color: var(--cream); margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-2); border-top: 1px solid var(--line); padding-block: var(--space-4) var(--space-3); }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-3); }
.footer-name { font-family: var(--serif); font-size: 1.6rem; font-weight: 400; color: var(--cream); margin: 0; }
.footer-tag { color: var(--gold); font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; margin: 0.3rem 0 0; }
.footer-label { color: var(--gold); font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; margin: 0 0 0.5rem; }
.footer-area p, .footer-contact p { color: var(--muted); margin: 0 0 0.3rem; }
.footer-contact a { color: var(--cream); }
.footer-contact a:hover { color: var(--gold); }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin: 0 0 0.4rem; }
.footer-links a { color: var(--muted); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--gold); }

/* Cursor sparkle (gold trail) — desktop only, see js/main.js */
.sparkle-layer { position: fixed; inset: 0; pointer-events: none; z-index: 9999; overflow: hidden; }
.sparkle {
  position: fixed; transform: translate(-50%, -50%); color: var(--gold); line-height: 1;
  opacity: 0; will-change: transform, opacity; text-shadow: 0 0 6px rgba(200,169,106,0.6);
  animation: sparkleFade 0.75s ease-out forwards;
}
@keyframes sparkleFade {
  0%   { opacity: 0;   transform: translate(-50%, -50%) scale(0.3) rotate(0deg); }
  35%  { opacity: 0.95; transform: translate(-50%, -50%) scale(1) rotate(25deg); }
  100% { opacity: 0;   transform: translate(-50%, -62%) scale(0.45) rotate(50deg); }
}

/* =========================================================
   Free Audit — Web X-Ray scanner (dark section)
   ========================================================= */
.audit-section { background: var(--ink-2); padding-block: var(--space-5); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.audit-section .section-lead { max-width: 560px; }

.xray { max-width: 1000px; margin: var(--space-4) auto 0; }
.xray__inputbox { background: rgba(255,255,255,0.03); border: 1px solid rgba(200,169,106,0.14); border-radius: 8px; padding: 1.75rem; margin-bottom: 2.5rem; }
.xray__inputwrap { display: flex; align-items: stretch; flex-wrap: wrap; border: 1px solid rgba(200,169,106,0.3); border-radius: 6px; overflow: hidden; }
.xray__protocol { background: rgba(255,255,255,0.03); padding: 0.85rem 1.1rem; display: flex; align-items: center; color: var(--muted); font-family: var(--sans); font-size: 14px; }
.xray__input { flex: 1; min-width: 150px; background: transparent; border: none; padding: 0.85rem 1.1rem; color: var(--cream); font-family: var(--sans); font-size: 15px; }
.xray__input:focus { outline: none; }
.xray__scan { background: var(--gold); color: #1a1a1a; border: none; font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; padding: 0.85rem 1.75rem; cursor: pointer; transition: background 0.2s ease; }
.xray__scan:hover { background: #d8bd84; }
.xray__scan:disabled { background: rgba(255,255,255,0.08); color: var(--muted); cursor: not-allowed; }
.xray__note { font-size: 11px; color: var(--muted); margin-top: 0.75rem; text-align: center; }

.xray__grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 2.5rem; align-items: stretch; }
@media (max-width: 820px) { .xray__grid { grid-template-columns: 1fr; } }

.xray__framewrap { display: flex; justify-content: center; }
.xray__browser { width: 100%; max-width: 380px; background: #1c1f20; border: 1px solid rgba(255,255,255,0.1); border-radius: 8px; overflow: hidden; box-shadow: 0 20px 40px rgba(0,0,0,0.4); }
.xray__browserbar { background: #141617; padding: 0.7rem 0.9rem; display: flex; align-items: center; gap: 0.4rem; border-bottom: 1px solid rgba(255,255,255,0.05); }
.xray__dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.xray__dot--r { background: hsl(0,72%,60%); }
.xray__dot--y { background: hsl(45,85%,55%); }
.xray__dot--g { background: hsl(145,55%,49%); }
.xray__url { flex: 1; background: rgba(0,0,0,0.25); font-size: 10px; color: var(--muted); padding: 4px 10px; border-radius: 4px; text-align: center; margin-left: 0.75rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xray__viewport { height: 440px; position: relative; background: #fdfdfd; color: #333; overflow: hidden; }
.xray__laser { position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: linear-gradient(to right, transparent, var(--gold), transparent); box-shadow: 0 0 10px var(--gold), 0 0 20px var(--gold); z-index: 10; display: none; }
@keyframes xrayScan { 0% { top: 0; } 50% { top: 100%; } 100% { top: 0; } }
.xray__shot { position: absolute; top: 0; left: 0; width: 100%; height: auto; display: none; z-index: 5; background: #fff; animation: xrayShotFade 0.5s ease both; }
@keyframes xrayShotFade { from { opacity: 0; } to { opacity: 1; } }
.xray__mock { padding: 1.4rem; font-family: Arial, sans-serif; height: 100%; display: flex; flex-direction: column; gap: 1.3rem; }
.xray__mhead { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #ddd; padding-bottom: 10px; font-size: 18px; color: #333; }
.xray__mlogo { font-weight: bold; font-size: 14px; }
.xray__mhero { background: #f2f2f2; padding: 1.3rem; border-radius: 4px; text-align: center; }
.xray__mtitle { font-weight: 800; font-size: 16px; margin-bottom: 8px; color: #333; }
.xray__mtext { font-size: 11px; color: #555; margin-bottom: 12px; }
.xray__mbox { background: #ddd; height: 70px; border-radius: 4px; }
.xray__mgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.xray__mcell { background: #e9ecef; height: 55px; border-radius: 4px; }

.xray__console { background: #0d0f10; border: 1px solid rgba(255,255,255,0.05); border-radius: 8px; padding: 1.75rem; display: flex; flex-direction: column; min-height: 440px; }
.xray__log { flex: 1; font-family: 'SFMono-Regular','Consolas','Liberation Mono',Menlo,monospace; font-size: 12px; line-height: 1.85; color: var(--muted); overflow-y: auto; max-height: 440px; display: flex; flex-direction: column; gap: 0.4rem; }
.term-line { word-break: break-word; white-space: pre-wrap; animation: termFade 0.25s ease both; }
.term-line.info   { color: #c8c8c8; }
.term-line.warn   { color: hsl(45,85%,62%); }
.term-line.error  { color: hsl(0,72%,64%); }
.term-line.ok     { color: hsl(145,55%,57%); }
.term-line.system { color: var(--gold); font-style: italic; }
@keyframes termFade { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: translateY(0); } }

.xray__dash { display: none; }
.xray__dash.show { display: block; animation: xraySlide 0.6s cubic-bezier(0.16,1,0.3,1) both; }
@keyframes xraySlide { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.xray__dashhead { display: flex; align-items: center; gap: 1.25rem; margin-bottom: 1.75rem; border-bottom: 1px solid rgba(255,255,255,0.08); padding-bottom: 1.25rem; }
.xray__grade { font-family: var(--serif); font-size: 4rem; font-weight: 300; line-height: 1; transition: color 0.4s ease, text-shadow 0.4s ease; }
.xray__dashtitle { font-size: 14px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gold); margin: 0; }
.xray__dashurl { font-size: 14px; color: var(--cream); margin: 2px 0 0; }
.xray__dashsub { font-size: 11px; color: var(--muted); margin: 2px 0 0; }
.xray__meters { display: flex; flex-direction: column; gap: 1.1rem; margin-bottom: 1.75rem; }
.xray__meterlbl { display: flex; justify-content: space-between; font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 0.5rem; color: rgba(244,237,224,0.8); }
.xray__metertrack { height: 6px; background: rgba(255,255,255,0.06); border-radius: 3px; overflow: hidden; }
.xray__meterfill { height: 100%; border-radius: 3px; width: 0; transition: width 1.4s cubic-bezier(0.16,1,0.3,1) 0.3s; }
.xray__meterfill.red    { background: hsl(0,72%,60%); }
.xray__meterfill.yellow { background: hsl(45,85%,55%); }
.xray__meterfill.green  { background: hsl(145,55%,49%); }
.xray__checks { margin-bottom: 1.5rem; }
.xray__check { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
.xray__check .ic { font-weight: 700; font-size: 15px; width: 18px; text-align: center; flex: none; }
.xray__check .lbl { font-size: 13px; color: var(--cream); }
.xray__check .det { font-size: 12px; color: var(--muted); }
.xray__issues { background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.05); border-radius: 6px; padding: 1.4rem; margin-bottom: 1.75rem; }
.xray__issues h5 { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); margin: 0 0 1rem; }
.xray__issues ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.7rem; }
.xray__issues li { font-size: 13px; color: var(--muted); line-height: 1.4; padding-left: 14px; border-left: 2px solid rgba(200,169,106,0.3); }
.xray__cta { text-align: center; }

@media (prefers-reduced-motion: reduce) {
  .term-line, .xray__dash.show { animation: none; }
  .xray__meterfill { transition: none; }
  .xray__laser { display: none !important; }
}
.footer-bottom { margin-top: var(--space-3); padding-top: var(--space-3); border-top: 1px solid var(--line); }
.footer-bottom p { color: var(--muted); font-size: 0.82rem; letter-spacing: 0.04em; margin: 0; }

/* =========================================================
   Breakpoints — enhance up from mobile
   ========================================================= */
@media (min-width: 560px) {
  .field-row { grid-template-columns: 1fr 1fr; }
  .testimonials { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 760px) {
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1.1fr 1.1fr; }
}
@media (min-width: 1024px) {
  .trust-grid { grid-template-columns: repeat(4, 1fr); }
  .edge-list { grid-template-columns: repeat(2, 1fr); }
  .edge-item-wide { grid-column: 1 / -1; }
}

/* ---------- Mobile nav ---------- */
@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ink); border-bottom: 1px solid var(--line);
    padding: 0.5rem 1.25rem 1.25rem;
    max-height: 0; overflow: hidden; visibility: hidden;
    transition: max-height 0.3s ease, visibility 0.3s;
  }
  .nav-menu.open { max-height: 460px; visibility: visible; }
  .nav-menu li { width: 100%; }
  .nav-menu a { display: block; padding: 0.95rem 0; border-bottom: 1px solid var(--line); }
  .nav-menu .nav-cta { text-align: center; margin-top: 0.85rem; border: 1px solid var(--gold); }
}

/* ---------- Motion prefs ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
