/* sections.css: the layout and look of each section, in page order.
   Home (receipts wall) · About · Services (bento) · Portfolio · Q&A · Contact · Footer */

/* ---------- Shared section scaffolding ---------- */
.section {
  position: relative;
  z-index: var(--z-content);
  padding-block: clamp(5rem, 10vw, 8.5rem);
}
.section-head {
  display: grid;
  gap: var(--space-4);
  max-width: 780px;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section-title {
  font-size: var(--fs-h2);
  line-height: 1.04;
  letter-spacing: -0.035em;
}
.section-title .dot { color: var(--red); }
.section-lead {
  max-width: 56ch;
  font-size: var(--fs-lead);
  color: var(--text-muted);
}
.sub-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: var(--space-3) var(--space-6);
  margin: clamp(4rem, 8vw, 6.5rem) 0 var(--space-6);
}
.sub-head h3 { font-size: var(--fs-h3); letter-spacing: -0.03em; }
.sub-head p { max-width: 48ch; color: var(--text-muted); font-size: var(--fs-small); }

/* "Whole card is clickable" pattern: the real button is in the title,
   and its ::after stretches over the card. */
.card-link {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  text-align: inherit;
  cursor: pointer;
}
.card-link::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.card-link:focus-visible { outline: none; }
.card-link:focus-visible::after { outline: 2px solid var(--red-text); outline-offset: 3px; }

.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; margin: 0; padding: 0; }
.chips li {
  padding: 0.38rem 0.75rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.02);
  font-size: var(--fs-small);
  line-height: 1.3;
  color: var(--text-muted);
}
.chips.is-mono li { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.02em; }

/* ========== 1. HOME: one big number over a wall of real screenshots ========== */
.hero {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: calc(var(--header-h) + var(--space-7)) 0 var(--space-8);
  overflow: clip;
  text-align: center;
}

/* The wall: four slow columns of the six receipts, tilted, far in the background */
.hero-wall-wrap { position: absolute; inset: 0; z-index: -2; pointer-events: none; }
.hero-wall {
  position: absolute;
  inset: -25% -12%;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  transform: rotate(-8deg);
  opacity: 0.3;
}
.wall-col { overflow: hidden; }
.wall-track { display: flex; flex-direction: column; animation: wall-up 110s linear infinite; }
.wall-track img {
  width: 100%;
  height: auto;
  margin-bottom: 28px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
}
.wall-col:nth-child(2) .wall-track { animation-name: wall-down; animation-duration: 130s; }
.wall-col:nth-child(3) .wall-track { animation-duration: 120s; }
.wall-col:nth-child(4) .wall-track { animation-name: wall-down; animation-duration: 140s; }
@keyframes wall-up { to { transform: translateY(-50%); } }
@keyframes wall-down { from { transform: translateY(-50%); } to { transform: translateY(0); } }
.hero-wall.is-paused .wall-track { animation-play-state: paused; }
html.motion-off .wall-track { animation: none; }

/* Darken the middle so the words sit on near-black; fade the wall at the edges */
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(58% 52% at 50% 50%, rgba(7, 7, 10, 0.94) 0%, rgba(7, 7, 10, 0.8) 45%, rgba(7, 7, 10, 0.35) 78%, rgba(7, 7, 10, 0.85) 100%),
    linear-gradient(to bottom, var(--bg) 0%, transparent 22%, transparent 78%, var(--bg) 100%);
}
.hero-glow {
  position: absolute;
  left: 0;
  top: 0;
  z-index: -1;
  width: 70vmax;
  height: 70vmax;
  translate: -50% -50%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(229, 37, 33, 0.17), rgba(229, 37, 33, 0.05) 50%, transparent 72%);
  pointer-events: none;
}

.hero-inner { display: grid; justify-items: center; gap: var(--space-5); max-width: 940px; }

/* The second receipt under the big number: the systems half of the stack.
   A solid, slightly see-through background keeps it readable over the moving wall. */
.hero-proof {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.75rem;
  max-width: 100%;
  padding: 0.45rem 1.1rem 0.45rem 0.45rem;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background: rgba(14, 14, 18, 0.86);
  color: var(--text);
  text-align: center;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: border-color var(--dur-base) var(--ease-out), background-color var(--dur-base) var(--ease-out);
}
.hero-proof:hover { border-color: rgba(255, 90, 84, 0.5); background: rgba(40, 12, 12, 0.9); }
.hero-proof-num {
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-pill);
  background: rgba(229, 37, 33, 0.18);
  font-family: var(--font-mono);
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.hero-proof-label { font-size: var(--fs-small); line-height: 1.35; color: var(--text-muted); }

/* One number, big enough to be the whole argument. It opens its own screenshot. */
.big-stat {
  display: grid;
  justify-items: center;
  gap: var(--space-2);
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.big-stat-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(5rem, 17vw, 13.5rem);
  line-height: 0.9;
  letter-spacing: -0.06em;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  text-shadow: 0 0 80px rgba(229, 37, 33, 0.5);
}
.big-stat-label {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 0.4rem 0.75rem;
  font-size: var(--fs-lead);
  color: var(--text-muted);
}
.big-stat:hover .stat-proof,
.big-stat:focus-visible .stat-proof { text-decoration: underline; text-underline-offset: 3px; }

.hero-title {
  margin-top: var(--space-4);
  font-size: clamp(1.875rem, 3.8vw, 3.375rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
}
.hero-title .dot { color: var(--red); }
.hero-lead {
  max-width: 46ch;
  margin-inline: auto;
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: var(--text-muted);
}
.hero-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-3); }
.hero-toggle { position: absolute; right: var(--gutter); bottom: var(--space-5); }

@media (max-width: 700px) {
  .hero-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); inset: -15% -35%; opacity: 0.22; }
  .wall-col:nth-child(n + 3) { display: none; }
  /* Text covers most of a phone screen, so the shade covers it all evenly */
  .hero-shade {
    background:
      radial-gradient(95% 60% at 50% 50%, rgba(7, 7, 10, 0.9) 0%, rgba(7, 7, 10, 0.82) 60%, rgba(7, 7, 10, 0.6) 100%),
      linear-gradient(to bottom, var(--bg) 0%, transparent 18%, transparent 82%, var(--bg) 100%);
  }
  .hero-toggle { position: static; margin-top: var(--space-5); }
}

/* ========== 2. ABOUT ========== */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
/* The photo rides along while the story scrolls, centered in the space below the header */
.about-photo {
  position: sticky;
  top: var(--header-h);
  height: calc(100vh - var(--header-h));
  display: grid;
  align-content: center;
  gap: var(--space-3);
  margin: 0;
}
/* Never taller than the screen: the width follows the height that's available (the photo is 4:5) */
.about-photo-frame,
.about-photo figcaption { width: min(100%, calc((100vh - var(--header-h) - 7rem) * 0.8)); }
.about-photo-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 0 120px -40px var(--glow);
}
.about-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 22%; }
.about-photo figcaption {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* The story, one beat per step, on a thin line with a dot for each */
.timeline { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line-strong); }
.beat { position: relative; display: grid; gap: var(--space-2); padding: 0 0 var(--space-7) var(--space-6); }
.beat:last-child { padding-bottom: 0; }
.beat::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 0.35rem;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--surface-2);
}
.beat.is-now::before { border-color: transparent; background: var(--red); box-shadow: 0 0 14px 2px var(--glow); }
.beat-when {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red-text);
}
.beat h3 { font-size: var(--fs-h3); letter-spacing: -0.03em; }
.beat p { max-width: 52ch; color: var(--text-muted); }

.about-snaps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); margin-top: var(--space-8); }
.about-snaps img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-md); border: 1px solid var(--line); }

@media (max-width: 1023px) {
  .about-grid { grid-template-columns: minmax(0, 1fr); }
  .about-photo { position: static; height: auto; max-width: 520px; }
  .about-photo-frame,
  .about-photo figcaption { width: 100%; }
}

/* ========== 3. SERVICES: the six-service stack, as a bento grid ========== */
.bento {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-template-areas:
    "s1 s1 s2   s2   s3   s3"
    "s4 s4 s4   s5   s5   s5"
    "s6 s6 goal goal goal goal";
  gap: var(--space-4);
}
.tile {
  position: relative;
  isolation: isolate;
  display: grid;
  align-content: start;
  gap: var(--space-3);
  min-height: 200px;
  padding: clamp(1.25rem, 2.4vw, 2rem);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 55%), var(--surface);
  transition: border-color var(--dur-base) var(--ease-out);
}
/* Spotlight: a soft red light that follows the cursor (main.js sets --mx and --my) */
.tile::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, -30%), rgba(229, 37, 33, 0.14), transparent 45%);
  opacity: 0;
  transition: opacity var(--dur-base) var(--ease-out);
  pointer-events: none;
}
.tile:hover::before,
.tile:focus-within::before { opacity: 1; }
.tile:hover { border-color: rgba(255, 90, 84, 0.28); }

.tile-kicker {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--red-text);
}
.tile h3 { font-size: clamp(1.375rem, 2.1vw, 1.75rem); line-height: 1.1; letter-spacing: -0.03em; }
.tile-copy { max-width: 44ch; color: var(--text-muted); }

.svc-1 { grid-area: s1; }
.svc-2 { grid-area: s2; }
.svc-3 { grid-area: s3; }
.svc-4 { grid-area: s4; }
.svc-5 { grid-area: s5; }
.svc-6 { grid-area: s6; }
.tile-goal { grid-area: goal; }

.svc-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: var(--space-2);
  border: 1px solid rgba(255, 90, 84, 0.32);
  border-radius: 14px;
  background: rgba(229, 37, 33, 0.08);
  color: var(--red-text);
}
.svc-icon svg { width: 22px; height: 22px; }
.svc .stat { margin-top: var(--space-3); padding-top: var(--space-4); border-top: 1px solid var(--line); }
.svc .stat-value { font-size: clamp(2.25rem, 4vw, 3.25rem); }

/* Where the six services lead: the one tile with a call to action */
.tile-goal {
  align-content: space-between;
  gap: var(--space-5);
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(229, 37, 33, 0.32), transparent 60%),
    var(--surface);
}
.goal-text { display: grid; gap: var(--space-3); }
.tile-goal h3 { max-width: 20ch; font-size: clamp(1.75rem, 3.2vw, 2.75rem); line-height: 1.04; letter-spacing: -0.04em; }
.tile-goal .btn { justify-self: start; }
.journey { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; margin: 0; padding: 0; }
.journey li {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: rgba(7, 7, 10, 0.35);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--text);
}
.journey li:not(:last-child)::after { content: "→"; color: var(--red-text); }

/* The automation tile's flow: four steps that light up in order */
.flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-3);
  list-style: none;
  margin: var(--space-3) 0 0;
  padding: 0;
}
.flow-step {
  position: relative;
  display: grid;
  justify-items: start;
  align-content: start;
  gap: var(--space-3);
  padding: var(--space-4);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.02);
  transition: border-color var(--dur-slow) var(--ease-out), background-color var(--dur-slow) var(--ease-out), box-shadow var(--dur-slow) var(--ease-out);
}
/* the connector to the next step */
.flow-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: calc(-1 * var(--space-3));
  width: var(--space-3);
  height: 1px;
  background: var(--line-strong);
}
.flow-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  color: var(--text-muted);
  transition: color var(--dur-slow) var(--ease-out), background-color var(--dur-slow) var(--ease-out), border-color var(--dur-slow) var(--ease-out);
}
.flow-icon svg { width: 20px; height: 20px; }
.flow-label { font-size: var(--fs-small); font-weight: 600; line-height: 1.3; }
.flow-meta { font-family: var(--font-mono); font-size: 0.6875rem; color: var(--text-faint); }
.flow-step.is-lit { border-color: rgba(255, 90, 84, 0.45); background: rgba(229, 37, 33, 0.07); box-shadow: 0 0 40px -12px var(--glow); }
.flow-step.is-lit .flow-icon { color: var(--on-red); background: var(--red); border-color: transparent; }

@media (max-width: 1023px) {
  .bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "s1   s2"
      "s3   s4"
      "s5   s5"
      "s6   s6"
      "goal goal";
  }
}
@media (max-width: 640px) {
  .bento { grid-template-columns: minmax(0, 1fr); grid-template-areas: "s1" "s2" "s3" "s4" "s5" "s6" "goal"; }
  .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow-step:not(:last-child)::after { display: none; }
}

/* ========== 4. PORTFOLIO ========== */

/* 4a. Flamingo Cards results: the number first, the screenshot as proof */
.results-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
  list-style: none;
  margin: 0;
  padding: 0;
}
.result {
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: var(--space-2);
  width: 100%;
  height: 100%;
  padding: var(--space-5);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 55%), var(--surface);
  text-align: left;
  cursor: pointer;
  transition: border-color var(--dur-base) var(--ease-out), transform var(--dur-slow) var(--ease-out);
}
.result:hover { border-color: rgba(255, 90, 84, 0.35); transform: translateY(-3px); }
.result-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.25rem, 4.2vw, 3.5rem);
  line-height: 1;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}
.result-label { font-size: var(--fs-small); line-height: 1.45; color: var(--text-muted); }
.result-shot {
  display: block;
  align-self: end;
  aspect-ratio: 1;
  margin-top: var(--space-4);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: #000;
}
.result-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--focus, 50% 10%);
  transition: transform var(--dur-slow) var(--ease-out);
}
.result-shot.is-light img { filter: brightness(0.86); }
.result:hover .result-shot img { transform: scale(1.03); }

@media (max-width: 1023px) {
  .results-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .results-grid { gap: var(--space-3); }
  .result { padding: var(--space-4); }
  .result-num { font-size: 1.875rem; }
  .result-label { font-size: 0.8125rem; }
}

/* 4c. Systems I've built: video cards and dashboard cards */
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
  list-style: none;
  margin: 0;
  padding: 0;
}
.work-card {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  transition: border-color var(--dur-base) var(--ease-out), transform var(--dur-slow) var(--ease-out);
}
.work-card:hover { border-color: rgba(255, 90, 84, 0.35); transform: translateY(-3px); }
.work-thumb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #000; }
.work-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 0;
  filter: brightness(0.86);
  transition: transform var(--dur-slow) var(--ease-out), filter var(--dur-slow) var(--ease-out);
}
.work-card:hover .work-thumb img { transform: scale(1.03); filter: brightness(1); }
.play-badge {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  translate: -50% -50%;
  border-radius: 50%;
  background: rgba(229, 37, 33, 0.92);
  box-shadow: 0 0 0 8px rgba(229, 37, 33, 0.16), 0 10px 30px rgba(0, 0, 0, 0.45);
  color: var(--on-red);
  transition: transform var(--dur-base) var(--ease-out);
}
.play-badge svg { width: 18px; height: 18px; margin-left: 3px; }
.work-card:hover .play-badge { transform: scale(1.06); }
.duration {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.78);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text);
}
.work-body { display: grid; align-content: start; gap: 0.45rem; padding: var(--space-4) var(--space-5) var(--space-5); }
.work-body h4 { font-family: var(--font-display); font-size: 1.125rem; letter-spacing: -0.02em; line-height: 1.25; }
.work-body p { font-size: var(--fs-small); color: var(--text-muted); }
.work-body .chips { margin-top: var(--space-2); }
.work-card.is-image .work-thumb { cursor: zoom-in; }

/* 4d. What clients say */
.quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); }
.quote-feature {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.quote-feature .work-thumb { aspect-ratio: auto; min-height: 320px; }
.quote-panel {
  position: relative;
  display: grid;
  align-content: center;
  gap: var(--space-5);
  padding: clamp(1.5rem, 3.5vw, 2.75rem);
}
.quote-panel::before {
  content: "";
  position: absolute;
  top: -30%;
  right: -20%;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, var(--glow-soft), transparent 70%);
  pointer-events: none;
}
.quote-text {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.25rem, 2.2vw, 1.625rem);
  line-height: 1.35;
  letter-spacing: -0.02em;
}
.quote-text::before { content: "“"; color: var(--red); }
.quote-text::after { content: "”"; color: var(--red); }
.quote-who strong { display: block; font-weight: 600; }
.quote-who span { font-size: var(--fs-small); color: var(--text-muted); }
.quote-card .quote-text { font-size: 1.0625rem; font-weight: 600; font-family: var(--font-body); letter-spacing: 0; line-height: 1.55; }
.quote-card .work-body { gap: var(--space-4); }

@media (max-width: 1023px) {
  .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quote-feature { grid-template-columns: minmax(0, 1fr); }
  .quote-feature .work-thumb { aspect-ratio: 16 / 9; min-height: 0; }
  .quotes { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .work-grid, .quotes { grid-template-columns: minmax(0, 1fr); }
}

/* ========== 5. Q&A ========== */
.qa-list { max-width: 880px; border-top: 1px solid var(--line); }
.qa-item { border-bottom: 1px solid var(--line); }
.qa-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  padding: var(--space-5) 0;
  list-style: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.125rem, 1.8vw, 1.375rem);
  letter-spacing: -0.02em;
  line-height: 1.3;
}
.qa-item summary::-webkit-details-marker { display: none; }
.qa-item summary:hover { color: var(--text); }
.qa-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  transition: transform var(--dur-base) var(--ease-out), background-color var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}
.qa-icon svg { width: 14px; height: 14px; }
.qa-item[open] .qa-icon { transform: rotate(45deg); background: var(--red); border-color: transparent; color: var(--on-red); }
.qa-answer { max-width: 64ch; padding-bottom: var(--space-5); color: var(--text-muted); }
.qa-answer p + p { margin-top: var(--space-3); }

/* Smooth open and close in browsers that support it; others just open instantly */
@supports (interpolate-size: allow-keywords) {
  :root { interpolate-size: allow-keywords; }
  .qa-item::details-content {
    block-size: 0;
    overflow: clip;
    transition: block-size var(--dur-slow) var(--ease-out), content-visibility var(--dur-slow) allow-discrete;
  }
  .qa-item[open]::details-content { block-size: auto; }
}

/* ========== 6. CONTACT ========== */
.contact { overflow: clip; isolation: isolate; text-align: center; }
.contact-glow {
  position: absolute;
  left: 50%;
  top: 55%;
  z-index: -1;
  width: min(1100px, 140vw);
  aspect-ratio: 1;
  translate: -50% -50%;
  background: radial-gradient(closest-side, rgba(229, 37, 33, 0.22), rgba(229, 37, 33, 0.06) 55%, transparent 72%);
  pointer-events: none;
}
.contact .section-head { margin-inline: auto; justify-items: center; }
.contact-title {
  max-width: 15ch;
  font-size: clamp(2.5rem, 6.4vw, 5.5rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
}
.contact-title .dot { color: var(--red); }
.contact-lead { margin-inline: auto; }
.contact-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-3); }
.btn-lg { --btn-h: 60px; padding: 0 2rem; font-size: 1.0625rem; }
.socials { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-3); list-style: none; margin: var(--space-7) 0 0; padding: 0; }
.socials a {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--text-muted);
  transition: color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out);
}
.socials a:hover { color: var(--text); border-color: rgba(255, 90, 84, 0.5); background: rgba(229, 37, 33, 0.08); }
.socials svg { width: 20px; height: 20px; }

/* ========== Footer ========== */
.site-footer { position: relative; z-index: var(--z-content); border-top: 1px solid var(--line); padding-block: var(--space-6); }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  font-size: var(--fs-small);
  color: var(--text-faint);
}
.footer-inner a { display: inline-block; margin-block: -12px; padding-block: 12px; color: var(--text-muted); text-decoration: none; }
.footer-inner a:hover { color: var(--text); }
