/* ============================================================
   ENVIRTUAL3D — SPATIAL SYSTEM
   sections.css — All section styles + responsive breakpoints
   ============================================================ */

/* ============================================================
   S1 — HERO
   100svh · void bg · geometry overlay · scan reveal
   ============================================================ */

#hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  background: var(--void);
  overflow: hidden;
  padding-top: var(--nav-h);
}

/* Full-bleed background image — starts hidden via clip-path */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  clip-path: inset(100% 0 0 0);
  overflow: hidden;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transform: scale(1.06);
  animation: hero-drift 20s ease-in-out infinite alternate;
  will-change: transform;
}

/* Dark overlay on top of image and video */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  background: var(--overlay-dark);
  pointer-events: none;
}

/* Hero background drift */
@keyframes hero-drift {
  0%   { transform: scale(1.06) translate(0%,0%); }
  50%  { transform: scale(1.08) translate(-1.5%,-0.5%); }
  100% { transform: scale(1.06) translate(1%,-1%); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-bg img { animation: none; transform: scale(1.0); }
  .hero-video { display: none !important; }
}

/* Cinematic video background — stacked layers, JS rotates via is-active */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 1;
  opacity: 0;
  transition: opacity 1.5s ease;
}
.hero-video.is-active { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .hero-video { display: none !important; }
}

/* Main content */
.hero-container {
  position: relative;
  z-index: 5;
  width: 100%;
  padding-top: var(--space-4xl);
  padding-bottom: var(--space-4xl);
}

.hero-content {
  max-width: 760px;
}

.hero-logobar {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: var(--space-xl);
  opacity: 0;
}

.hero-headline {
  font-family: var(--font-display);
  font-weight: 300;
  font-style: italic;
  font-size: var(--text-hero);
  color: var(--void-text);
  line-height: 1.0;
  letter-spacing: 0em;
  margin-bottom: var(--space-xl);
  opacity: 0;
}

.hero-sub {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.9rem;
  color: rgba(232,230,226,0.72);
  line-height: 1.7;
  margin-bottom: var(--space-2xl);
  max-width: 52ch;
  opacity: 0;
}

.hero-ctas {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin-bottom: var(--space-xl);
  opacity: 0;
}

.hero-meta {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: rgba(232,230,226,0.82);
  opacity: 0;
}

/* ============================================================
   S2 — PROOF STRIP
   void bg · 4 stat cols · no heading · thin integrated strip
   ============================================================ */

#proof-strip {
  background: var(--void);
  border-top: 1px solid var(--void-border);
  border-bottom: 1px solid var(--void-border);
  padding: var(--space-2xl) 0;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--void-border);
  border: 1px solid var(--void-border);
}

.proof-item {
  background: var(--void);
  padding: clamp(1.5rem, 3vw, 2.5rem) clamp(1rem, 2vw, 2rem);
}

.proof-number {
  font-family: var(--font-display);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(3rem, 6vw, 5rem);
  color: var(--steel);
  line-height: 1.0;
  display: block;
  margin-bottom: var(--space-sm);
  transition: color var(--duration-slow) ease;
}

.proof-number.is-counted { color: var(--void-text); }

.proof-label {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.875rem;
  color: var(--void-text);
  margin-bottom: var(--space-xs);
  line-height: 1.4;
}

.proof-source {
  font-family: var(--font-data);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  color: var(--void-muted);
  line-height: 1.5;
}

/* ============================================================
   S3 — WORK CARDS
   white bg · responsive card grid · full-viewport tour overlay
   ============================================================ */

#work {
  background: var(--white);
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.work-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--border);
  margin-top: clamp(2rem, 4vw, 3.5rem);
}

.work-card {
  background: var(--white);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.work-card.is-revealed { opacity: 1; transform: translateY(0); }

.work-card-img { aspect-ratio: 16/9; overflow: hidden; position: relative; }

.work-card-img img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.6s ease;
}

.work-card:hover .work-card-img img { transform: scale(1.03); }

/* Scan-line sweep on hover — thin steel line top→bottom */
.work-card-img::after {
  content: '';
  position: absolute;
  left: 0; right: 0; height: 2px; top: -2px;
  background: linear-gradient(to right, transparent 0%, rgba(72,145,189,0.75) 50%, transparent 100%);
  pointer-events: none;
  opacity: 0;
}
.work-card:hover .work-card-img::after {
  opacity: 1;
  animation: work-card-scan 0.85s ease-out forwards;
}
@keyframes work-card-scan {
  0%   { top: -2px; opacity: 1; }
  80%  { opacity: 0.5; }
  100% { top: calc(100% + 2px); opacity: 0; }
}

/* Whole card is clickable when it has a tour URL */
.work-card[data-tour-url]:not([data-tour-url=""]) { cursor: pointer; }

.work-card-body { padding: var(--space-lg) var(--space-xl); }

.work-card-header { display: flex; align-items: baseline; gap: var(--space-md); margin-bottom: 2px; }

.work-card-num {
  font-family: var(--font-data);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.work-card-title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--graphite);
}

.work-card-meta {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: var(--space-sm);
}

.work-card-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: var(--space-lg); }

.work-chip {
  font-family: var(--font-data);
  font-size: 0.55rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  background: rgba(0,0,0,0.04);
  padding: 2px 6px;
  border: 1px solid var(--border);
}

.work-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-data);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--steel);
  background: none;
  border: 1px solid var(--steel-wire);
  padding: var(--space-sm) var(--space-lg);
  cursor: pointer;
  transition: background var(--duration-fast), color var(--duration-fast);
}

.work-card-cta:hover { background: var(--steel); color: var(--white); }

/* Tour overlay */
.work-tour-overlay {
  position: fixed; inset: 0; z-index: 9000; background: #000;
  display: flex; flex-direction: column;
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease;
}

.work-tour-overlay.is-open { opacity: 1; pointer-events: all; }

.work-tour-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.75rem 1.25rem;
  background: rgba(10,11,13,0.95);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
}

.work-tour-project-name {
  font-family: var(--font-data);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: rgba(232,230,226,0.55);
}

.work-tour-close {
  background: none;
  border: 1px solid rgba(255,255,255,0.18);
  color: rgba(232,230,226,0.8);
  width: 2rem; height: 2rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}

.work-tour-close:hover { background: rgba(255,255,255,0.12); }

.work-tour-iframe { width: 100%; flex: 1; border: none; display: block; }

@media (min-width: 640px)  { .work-cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .work-cards { grid-template-columns: 1fr 1fr 1fr; } }

/* ============================================================
   S4 — SECTORS  Sector Index
   void bg · tap-expand rows (mobile) · list + sticky float (desktop)
   ============================================================ */

#sectors .section-title { color: var(--void-text); }
#sectors .section-sub   { color: var(--void-muted); }

#sectors {
  background: var(--void);
  padding: clamp(4rem, 8vw, 7rem) 0 0;
}

.sector-index {
  margin-top: clamp(2rem, 4vw, 3.5rem);
  border-top: 1px solid var(--void-border);
}

.sector-row {
  border-bottom: 1px solid var(--void-border);
  cursor: pointer;
  transition: background var(--duration-fast);
}

.sector-row:focus-visible {
  outline: 2px solid var(--steel);
  outline-offset: -2px;
}

.sector-row-hd {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  padding: var(--space-xl) clamp(1.25rem, 5vw, 4rem);
  min-height: 64px;
}

.sector-row-num {
  font-family: var(--font-data);
  font-size: 0.625rem;
  letter-spacing: 0.2em;
  color: var(--steel);
  flex-shrink: 0;
  width: 2rem;
}

.sector-row-name {
  flex: 1;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.4rem, 4vw, 2rem);
  color: var(--void-text);
  line-height: 1.1;
  transition: color var(--duration-fast);
}

.sector-row-toggle {
  flex-shrink: 0;
  color: var(--void-muted);
  transition: transform var(--duration-base) var(--ease-out-smooth), color var(--duration-fast);
  display: flex;
  align-items: center;
}

.sector-row.is-open .sector-row-toggle {
  transform: rotate(180deg);
  color: var(--steel);
}

.sector-row.is-open { background: rgba(72,145,189,0.08); }

.sector-row.is-open .sector-row-name { color: #fff; }

.sector-row-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.6s var(--ease-out-smooth);
}

.sector-row.is-open .sector-row-body { max-height: 700px; }

.sector-row-img { width: 100%; overflow: hidden; }

.sector-row-img img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.sector-row-desc {
  padding: var(--space-lg) clamp(1.25rem, 5vw, 4rem) var(--space-2xl);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.9rem;
  color: rgba(232,230,226,0.82);
  line-height: 1.7;
  max-width: 60ch;
}

/* Float panel: hidden on mobile */
.sector-float { display: none; }

/* ---- Desktop (≥1024px) ---- */
@media (min-width: 1024px) {
  .sector-index {
    display: grid;
    grid-template-columns: 55% 45%;
    align-items: start;
    border-top: none;
  }

  .sector-list {
    border-top: 1px solid var(--void-border);
    border-right: 1px solid var(--void-border);
  }

  /* Descriptions always open on desktop */
  .sector-row-body { max-height: none !important; }
  .sector-row-img  { display: none; }
  .sector-row-desc { padding-top: 0; padding-bottom: var(--space-xl); }
  .sector-row-hd   { padding-top: var(--space-2xl); padding-bottom: var(--space-lg); }
  .sector-row-name { font-size: clamp(1.6rem, 2.2vw, 2.4rem); }
  .sector-row-toggle { display: none; }

  .sector-row:hover { background: rgba(72,145,189,0.03); }
  .sector-row.is-open { background: rgba(72,145,189,0.10); }
  .sector-row.is-open .sector-row-hd { border-left: 2px solid var(--steel); }

  /* Sticky float panel */
  .sector-float {
    display: block;
    position: sticky;
    top: calc(var(--nav-h) + 2rem);
    height: calc(80svh - var(--nav-h));
    max-height: 680px;
    overflow: hidden;
  }

  .sector-float-track { position: absolute; inset: 0; }

  .sector-float-img {
    position: absolute; inset: 0;
    opacity: 0;
    transition: opacity 0.4s ease;
  }

  .sector-float-img.is-active { opacity: 1; }

  .sector-float-img img {
    width: 100%; height: 100%; object-fit: cover; display: block;
  }

  .sector-float-scan {
    position: absolute;
    left: 0; right: 0; height: 2px;
    background: linear-gradient(to right, transparent, var(--steel) 30%, rgba(72,145,189,0.9) 50%, var(--steel) 70%, transparent);
    top: -2px;
    pointer-events: none; opacity: 0; z-index: 6;
  }

  .sector-float-scan.is-scanning {
    animation: sectorScan 0.5s ease-out forwards;
  }

  .sector-float-geo {
    position: absolute; inset: 0;
    pointer-events: none; z-index: 5;
  }
}

@keyframes sectorScan {
  0%   { top: -2px; opacity: 1; }
  85%  { opacity: 0.6; }
  100% { top: calc(100% + 2px); opacity: 0; }
}

/* ============================================================
   S5 -- SERVICES  Mobile-first card grid
   ============================================================ */

#services { background: var(--white); padding: clamp(4rem, 8vw, 7rem) 0 0; }

.service-entries {
  margin-top: clamp(2rem, 4vw, 3.5rem);
  display: grid; gap: 1px; background: var(--border);
}

.service-entry {
  position: relative; overflow: hidden;
  background: var(--white); padding: 0;
  display: flex; flex-direction: column;
}

.service-entry-ghost { display: none; }

.service-entry-media {
  display: block; order: -1; position: relative; overflow: hidden;
}

.service-entry-media img {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block;
  transition: transform 0.6s ease;
}

.service-entry:hover .service-entry-media img { transform: scale(1.03); }

.service-entry-media::after {
  content: ''; position: absolute;
  left: 0; right: 0; height: 2px; top: -2px;
  background: linear-gradient(to right, transparent 0%, rgba(72,145,189,0.75) 50%, transparent 100%);
  pointer-events: none; opacity: 0;
}
.service-entry:hover .service-entry-media::after {
  opacity: 1; animation: work-card-scan 0.85s ease-out forwards;
}

.service-entry-body {
  padding: var(--space-lg) var(--space-xl);
  position: relative; z-index: 1; max-width: none; order: 0;
}

.service-entry-code {
  display: block; font-family: var(--font-data);
  font-size: 0.6rem; letter-spacing: 0.18em;
  color: var(--muted); margin-bottom: var(--space-sm);
}

.service-entry-name {
  font-family: var(--font-display); font-style: italic; font-weight: 300;
  font-size: clamp(1.1rem, 4vw, 1.5rem); color: var(--graphite);
  line-height: 1.1; margin-bottom: var(--space-md);
}

.service-entry-desc {
  font-family: var(--font-body); font-weight: 300; font-size: 0.9rem;
  color: var(--dim); line-height: 1.75;
  margin-bottom: var(--space-lg); max-width: 52ch;
}

.service-item-tags {
  display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: var(--space-lg);
}

.service-tag {
  font-family: var(--font-data); font-size: 0.55rem; letter-spacing: 0.1em;
  color: var(--muted); background: rgba(0,0,0,0.04); padding: 2px 6px;
  border: 1px solid var(--border);
}

.service-entry-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font: 600 0.875rem/1 var(--font-body);
  color: var(--white);
  background: var(--steel);
  padding: 0.9rem 1.75rem;
  border: none;
  text-decoration: none;
  white-space: nowrap;
  margin-top: var(--space-md);
  cursor: pointer;
  transition: background var(--duration-fast) ease;
}

.service-entry-cta:hover {
  background: var(--steel-2);
}

@media (min-width: 1024px) {
  .service-entries { display: block; background: transparent; }

  .service-entry {
    display: grid; grid-template-columns: 58% 42%;
    grid-template-rows: 1fr; align-items: center; gap: var(--space-3xl);
    border-top: 1px solid var(--border);
    padding: clamp(3rem, 6vw, 5rem) clamp(1.25rem, 5vw, 4rem);
  }

  .service-entry:last-child { border-bottom: 1px solid var(--border); }

  .service-entry-ghost {
    display: block; position: absolute;
    top: 50%; right: clamp(1.25rem, 5vw, 4rem); transform: translateY(-50%);
    font-family: var(--font-display); font-weight: 300;
    font-size: clamp(10rem, 18vw, 20rem); line-height: 1;
    color: var(--graphite); opacity: 0.035;
    pointer-events: none; user-select: none; z-index: 0;
  }

  .service-entry-body { grid-column: 1; padding: 0; max-width: none; order: 0; }

  .service-entry-media {
    grid-column: 2; order: 0; display: block;
    position: relative; z-index: 1; overflow: hidden;
  }

  .service-entry-media img {
    width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block;
  }

  .service-entry-name { font-size: clamp(2rem, 2.8vw, 3.2rem); margin-bottom: var(--space-lg); }
  .service-entry-desc { font-size: 0.95rem; margin-bottom: var(--space-xl); }
  .service-item-tags { gap: 5px; margin-bottom: var(--space-xl); }
}


/* ============================================================
   S6 — PROCESS
   void bg · vertical timeline · scrub draw
   ============================================================ */

#process {
  background: var(--void);
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.process-sub {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 2rem;
  color: var(--steel);
  margin-top: var(--space-sm);
  line-height: 1.1;
}

.process-layout {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 0;
  margin-top: clamp(3rem, 6vw, 5rem);
  position: relative;
}

/* Vertical connector line */
.process-line-wrap {
  position: relative;
  display: flex;
  justify-content: center;
}

.process-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--void-border);
}

.process-line-fill {
  position: absolute;
  top: 0;
  width: 2px;
  background: var(--steel);
  transform: scaleY(0);
  transform-origin: top;
  will-change: transform;
}

/* Steps */
.process-steps { padding-left: var(--space-xl); }

.step {
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
  position: relative;
}

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

/* Step dot on line */
.step::before {
  content: '';
  position: absolute;
  left: calc(-1 * var(--space-xl) - 25px);
  top: 0.35em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--void-border);
  border: 1.5px solid var(--void-border);
  transition: background var(--duration-base) ease, border-color var(--duration-base) ease;
}

.step.is-active::before {
  background: var(--steel);
  border-color: var(--steel);
}

.step-content { opacity: 0; }

.step-header {
  display: flex;
  align-items: baseline;
  gap: var(--space-lg);
  margin-bottom: var(--space-sm);
}

.step-number {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 2.5rem;
  color: var(--steel);
  line-height: 1;
  flex-shrink: 0;
}

.step-title {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-h3);
  color: var(--void-text);
  line-height: 1.2;
}

.step-desc {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: var(--text-body-lg);
  color: var(--void-muted);
  line-height: 1.7;
  margin-bottom: var(--space-sm);
  max-width: 56ch;
}

.step-meta {
  font-family: var(--font-data);
  font-size: var(--text-data);
  letter-spacing: 0.12em;
  color: var(--void-muted);
}

/* ============================================================
   S7 — PARTNERS / SOCIAL PROOF
   void bg · logo marquee · 3 testimonial cards
   ============================================================ */

#partners {
  background: var(--void);
  padding: clamp(4rem, 8vw, 7rem) 0;
  overflow: hidden;
}

.partners-eyebrow {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--void-muted);
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

/* Logo marquee */
.results-marquee-label {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--void-muted);
  margin-bottom: var(--space-lg);
}

.marquee-overflow {
  overflow: hidden;
  padding: var(--space-xl) 0;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee-track {
  display: flex;
  gap: clamp(2.5rem, 5vw, 4rem);
  width: max-content;
  will-change: transform;
  animation: ev3d-marquee 40s linear infinite;
}

.marquee-track:hover { animation-play-state: paused; }

.marquee-item {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Logo images — white treatment on dark background */
.marquee-item img {
  height: 22px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.45;
  transition: opacity 0.3s ease;
  display: block;
}
.marquee-item:hover img { opacity: 0.8; }
.marquee-item img.no-filter { filter: none; opacity: 0.7; height: 30px; }
.marquee-item:hover img.no-filter { opacity: 0.95; }

/* Testimonials */
.results-testimonials-label {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--void-muted);
  margin-bottom: var(--space-xl);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--void-border);
  border: 1px solid var(--void-border);
}

.testimonial-card {
  background: var(--void-2);
  padding: clamp(1.5rem, 3vw, 2.5rem);
}

.testimonial-quote {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: var(--text-body-lg);
  color: var(--void-text);
  line-height: 1.7;
  margin-bottom: var(--space-xl);
  font-style: italic;
}

.testimonial-author {
  border-top: 1px solid var(--void-border);
  padding-top: var(--space-md);
}

.testimonial-name {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--void-text);
  margin-bottom: var(--space-xs);
}

.testimonial-role {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: var(--text-xs);
  color: var(--void-muted);
  line-height: 1.5;
}

/* ============================================================
   S8 — CONTACT
   white bg · single-column centered form
   ============================================================ */

#contact {
  background: var(--white);
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.contact-form-wrap {
  max-width: 740px;
  margin-top: clamp(2rem, 4vw, 3.5rem);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
}

.form-group {
  margin-bottom: var(--space-xl);
}

.form-label {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--space-sm);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  color: var(--graphite);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--wire);
  padding: var(--space-sm) 0;
  outline: none;
  transition: border-color var(--duration-fast) ease;
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-bottom-color: var(--steel);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.65;
}

.form-select {
  cursor: pointer;
}

.form-submit {
  margin-top: var(--space-xl);
}

.form-note {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: var(--text-xs);
  color: var(--muted);
  margin-top: var(--space-md);
}

/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */

/* ---- 1024px — reduce some padding --------------------------------- */

@media (max-width: 1024px) {
  .footer-grid   { grid-template-columns: 1fr 1fr; gap: var(--space-2xl); }
}

/* ---- 768px — two-column grids ------------------------------------- */

@media (max-width: 768px) {
  .proof-grid    { grid-template-columns: repeat(2, 1fr); }

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

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

  .process-layout { grid-template-columns: 24px 1fr; }
}

/* ---- 375px — mobile nav + hero ------------------------------------ */

@media (max-width: 375px) {
  .hero-ctas     { flex-direction: column; align-items: flex-start; }
  .hero-ctas .btn-primary,
  .hero-ctas .btn-ghost { width: 100%; justify-content: center; }

  .proof-grid    { grid-template-columns: 1fr 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }

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

  .step-header   { flex-direction: column; gap: var(--space-sm); }
  .step-number   { font-size: 1.75rem; }
}

/* ---- 320px — minimum floor ---------------------------------------- */

@media (max-width: 320px) {
  :root {
    --container-pad: 1rem;
  }
  .nav-logo      { font-size: 0.8rem; }
  .hero-headline { letter-spacing: -0.01em; }
  .proof-grid    { grid-template-columns: 1fr; }
}

/* ===== HOMEPAGE JOURNAL SECTION ===== */
.section-journal {
  background: var(--white);
  padding: var(--space-4xl) 0;
}
.journal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}
.journal-cta {
  text-align: center;
}
@media (max-width: 900px) {
  .journal-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .journal-grid { grid-template-columns: 1fr; }
}

/* ===== HOMEPAGE FAQ SECTION ===== */
.section-faq {
  background: var(--white);
  padding: var(--space-4xl) 0;
  border-top: 1px solid var(--wire);
}
.faq-layout {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: start;
}
.faq-header {
  position: sticky;
  top: calc(var(--nav-h) + 2rem);
}
.faq-title {
  line-height: 1.1;
}
.faq-header-sub {
  font-family: var(--font-body);
  font-size: var(--text-body);
  color: var(--dim);
  margin-top: var(--space-xl);
  margin-bottom: var(--space-lg);
}
.faq-header-cta {
  display: inline-flex;
}

/* ── Accordion ── */
.faq-accordion {
  display: flex;
  flex-direction: column;
}
.faq-item {
  border-bottom: 1px solid var(--wire);
}
.faq-item:first-child {
  border-top: 1px solid var(--wire);
}
.faq-question {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  width: 100%;
  padding: var(--space-xl) 0;
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: color var(--duration-fast);
}
.faq-question::-webkit-details-marker,
.faq-question::marker {
  display: none;
  content: "";
}
.faq-question:hover {
  color: var(--steel);
}
.faq-num {
  font-family: var(--font-data);
  font-size: var(--text-xs);
  color: var(--steel);
  letter-spacing: 0.06em;
  flex-shrink: 0;
  width: 2rem;
}
.faq-q-text {
  font-family: var(--font-body);
  font-size: var(--text-body-lg);
  font-weight: 500;
  color: var(--graphite);
  flex: 1;
  transition: color var(--duration-fast);
}
.faq-question:hover .faq-q-text {
  color: var(--steel);
}
.faq-chevron {
  flex-shrink: 0;
  color: var(--muted);
  transition: transform var(--duration-base) var(--ease-out-smooth),
              color var(--duration-fast);
}
.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
  color: var(--steel);
}

/* ── Answer ── */
.faq-answer {
  overflow: hidden;
  padding: 0 0 var(--space-xl) calc(2rem + var(--space-lg));
  animation: faqReveal var(--duration-base) var(--ease-out-smooth);
}
@keyframes faqReveal {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.faq-answer p {
  font-family: var(--font-body);
  font-size: var(--text-body);
  color: var(--dim);
  line-height: 1.7;
  max-width: 540px;
}
.faq-answer a {
  color: var(--steel);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--duration-fast);
}
.faq-answer a:hover {
  color: var(--steel-2);
}
.faq-answer strong {
  color: var(--graphite);
  font-weight: 600;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .faq-layout {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }
  .faq-header {
    position: static;
  }
}
@media (max-width: 560px) {
  .faq-question {
    gap: var(--space-md);
    padding: var(--space-lg) 0;
  }
  .faq-answer {
    padding-left: calc(2rem + var(--space-md));
    padding-bottom: var(--space-lg);
  }
}
