/* ============================================================================
   Erebos Core — premium redesign
   Stack: vanilla HTML/CSS + GSAP (no build step)
   Brand: void-black + violet, Cinzel display DNA. Built in the dark.
   ============================================================================ */

:root {
  /* Surfaces (deepened for OLED richness, still in the brand family) */
  --void:        #08080A;
  --void-2:      #0C0C10;
  --ink:         #121217;
  --ink-2:       #16161C;

  /* Glass / hairlines */
  --glass:        rgba(255, 255, 255, 0.035);
  --glass-2:      rgba(255, 255, 255, 0.06);
  --hairline:     rgba(239, 234, 225, 0.09);
  --hairline-lit: rgba(255, 255, 255, 0.14);
  --inner-hi:     inset 0 1px 0 rgba(255, 255, 255, 0.08);

  /* Brand violet */
  --daylight-violet: #6B46E5;
  --night-violet:    #9B82FF;
  --violet-soft:     rgba(155, 130, 255, 0.16);

  /* Ink-on-dark text */
  --bone:       #EFEAE1;
  --bone-dim:   #B9B4AA;
  --bone-faint: rgba(185, 180, 170, 0.55);

  /* Feedback */
  --rose: #E5717A;

  /* Tinted shadows (carry the void hue, never pure black) */
  --shadow-card: 0 24px 60px -28px rgba(8, 6, 20, 0.9);
  --shadow-violet: 0 28px 80px -30px rgba(107, 70, 229, 0.45);

  /* Radii scale (squircle family) */
  --r-xl: 28px;
  --r-lg: 20px;
  --r-md: 14px;
  --r-sm: 10px;
  --r-pill: 999px;

  /* Easing */
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* Fonts */
  --font-brand:   "Cinzel", serif;
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body:    "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;

  --maxw: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--void);
  color: var(--bone);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: rgba(155, 130, 255, 0.28); color: #fff; }

a { color: inherit; }

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

/* ------------------------------------------------- Global ambient backdrop */

/* Fixed layers behind everything: blueprint grid + film grain */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: -10;
  pointer-events: none;
}

.backdrop-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(239, 234, 225, 0.022) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(239, 234, 225, 0.022) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 30%, transparent 80%);
          mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 30%, transparent 80%);
}

.backdrop-grain {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.72' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23g)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
}

/* ----------------------------------------------------------------- Header */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  padding: 1.1rem 1.25rem 0;
  pointer-events: none;
}

.nav-pill {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  width: 100%;
  max-width: var(--maxw);
  padding: 0.6rem 0.7rem 0.6rem 1.2rem;
  background: rgba(12, 12, 16, 0.72);
  border: 1px solid var(--hairline);
  border-radius: var(--r-pill);
  box-shadow: var(--inner-hi), 0 18px 40px -24px rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  transition: transform 600ms var(--ease), box-shadow 600ms var(--ease);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-mark { width: 30px; height: 30px; flex-shrink: 0; }
.site-footer .brand-mark { width: 28px; height: 28px; }

.brand-word {
  font-family: var(--font-brand);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--bone);
  white-space: nowrap;
}

.brand-word em {
  font-style: normal;
  color: var(--night-violet);
  letter-spacing: 0.28em;
  font-size: 0.85em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.6rem, 2vw, 1.7rem);
}

.site-nav a {
  color: var(--bone-dim);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: color 200ms var(--ease);
}

.site-nav a:not(.nav-cta):hover { color: var(--bone); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  color: var(--bone) !important;
  background: var(--glass-2);
  border: 1px solid var(--hairline-lit);
  border-radius: var(--r-pill);
  padding: 0.5rem 1.15rem;
  box-shadow: var(--inner-hi);
  transition: transform 400ms var(--ease), background 300ms var(--ease), box-shadow 300ms var(--ease);
}

.nav-cta:hover {
  background: var(--daylight-violet);
  box-shadow: var(--shadow-violet);
}

.nav-cta:active { transform: scale(0.97); }

/* ------------------------------------------------------------------- Buttons */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.97rem;
  letter-spacing: 0.005em;
  border: none;
  border-radius: var(--r-pill);
  padding: 0.85rem 0.9rem 0.85rem 1.5rem;
  cursor: pointer;
  transition: transform 400ms var(--ease), background 300ms var(--ease), box-shadow 300ms var(--ease), color 300ms var(--ease);
}

.btn:active { transform: scale(0.975); }

/* Button-in-button trailing icon */
.btn .btn-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: var(--r-pill);
  background: rgba(0, 0, 0, 0.22);
  transition: transform 400ms var(--ease), background 300ms var(--ease);
}

.btn .btn-ico svg { width: 14px; height: 14px; }

.btn:hover .btn-ico { transform: translate(2px, -1px) scale(1.06); }

.btn-primary {
  background: var(--daylight-violet);
  color: #fff;
  box-shadow: var(--inner-hi), 0 10px 30px -12px rgba(107, 70, 229, 0.6);
}

.btn-primary:hover {
  background: #7a57f0;
  box-shadow: var(--shadow-violet);
}

.btn-ghost {
  color: var(--bone);
  background: var(--glass);
  border: 1px solid var(--hairline);
  box-shadow: var(--inner-hi);
  padding: 0.85rem 1.5rem;
}

.btn-ghost:hover { border-color: var(--hairline-lit); background: var(--glass-2); }

.btn-lg { font-size: 1.02rem; padding: 0.95rem 0.95rem 0.95rem 1.7rem; }
.btn-lg .btn-ico { width: 34px; height: 34px; }

/* --------------------------------------------------------------------- Hero */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-height: 100dvh;
  padding: 9rem 1.5rem 6rem;
  padding: clamp(8rem, 18vh, 11rem) 1.5rem clamp(4rem, 10vh, 7rem);
  overflow: hidden;
  isolation: isolate;
}

.hero-aurora {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -2;
}

.aurora-blob { position: absolute; border-radius: 50%; filter: blur(80px); }

.aurora-blob--1 {
  width: 620px; height: 620px;
  background: radial-gradient(circle, rgba(107,70,229,0.30) 0%, transparent 70%);
  top: -180px; left: 50%; transform: translateX(-50%);
  animation: drift-1 18s ease-in-out infinite alternate;
}
.aurora-blob--2 {
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(155,130,255,0.16) 0%, transparent 70%);
  bottom: -60px; right: 4%;
  animation: drift-2 22s ease-in-out infinite alternate;
}
.aurora-blob--3 {
  width: 340px; height: 340px;
  background: radial-gradient(circle, rgba(107,70,229,0.13) 0%, transparent 70%);
  bottom: 4%; left: -4%;
  animation: drift-2 28s ease-in-out infinite alternate-reverse;
}

@keyframes drift-1 {
  from { transform: translateX(-50%) translateY(0) scale(1); }
  to   { transform: translateX(-50%) translateY(34px) scale(1.08); }
}
@keyframes drift-2 {
  from { transform: translateY(0) scale(1); }
  to   { transform: translateY(-26px) scale(1.06); }
}

/* Oversized ghost glyph watermark behind hero */
.hero-ghost {
  position: absolute;
  top: 48%;
  left: 50%;
  width: min(120vw, 1100px);
  transform: translate(-50%, -50%);
  z-index: -3;
  opacity: 0.05;
  pointer-events: none;
}

.hero-mark {
  width: 116px;
  height: 116px;
  margin-bottom: 2.2rem;
  filter: drop-shadow(0 0 30px rgba(107, 70, 229, 0.4));
}

.glyph-outer, .glyph-inner, .glyph-diamond {
  transform-box: view-box;
  transform-origin: 50% 50%;
}
.glyph-outer   { animation: glyph-cw  40s linear infinite; }
.glyph-inner   { animation: glyph-ccw 26s linear infinite; }
.glyph-diamond { animation: diamond-pulse 3.5s ease-in-out infinite; }

@keyframes glyph-cw  { to { transform: rotate( 360deg); } }
@keyframes glyph-ccw { to { transform: rotate(-360deg); } }
@keyframes diamond-pulse {
  0%, 100% { transform: scale(1);    opacity: 1;    }
  50%      { transform: scale(1.18); opacity: 0.75; }
}

/* Eyebrow pill */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--night-violet);
  background: var(--violet-soft);
  border: 1px solid rgba(155, 130, 255, 0.22);
  border-radius: var(--r-pill);
  padding: 0.4rem 0.9rem;
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--night-violet);
  box-shadow: 0 0 10px var(--night-violet);
}

.hero-headline {
  margin-top: 1.6rem;
  max-width: 16ch;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.6rem, 7vw, 5rem);
  letter-spacing: -0.03em;
  line-height: 1.02;
  color: var(--bone);
  text-wrap: balance;
}
.hero-headline em {
  font-style: normal;
  color: var(--night-violet);
}

.hero-sub {
  margin-top: 1.6rem;
  max-width: 38rem;
  font-size: 1.1rem;
  color: var(--bone-dim);
}

.hero-actions {
  margin-top: 2.4rem;
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* --------------------------------------------------------------- Marquee */

.marquee-strip {
  overflow: hidden;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: 1rem 0;
  background: var(--void-2);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  width: max-content;
  animation: marquee 36s linear infinite;
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--bone-dim);
  text-transform: uppercase;
}
.marquee-sep { color: var(--night-violet); font-size: 1rem; line-height: 1; }

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------------------------------------------------------------- Sections */

.section {
  position: relative;
  padding: clamp(5.5rem, 13vh, 9rem) clamp(1.25rem, 5vw, 3rem);
}

.section-alt { background: var(--void-2); }

.section-inner { max-width: var(--maxw); margin: 0 auto; width: 100%; }

.kicker {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--night-violet);
  margin-bottom: 1.1rem;
}

.section h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  letter-spacing: -0.025em;
  line-height: 1.05;
  color: var(--bone);
  text-wrap: balance;
}

.section-head { max-width: 40rem; margin-bottom: 3.5rem; }
.section-head h2 { margin-bottom: 0; }

.prose { max-width: 44rem; color: var(--bone-dim); margin-top: 1.6rem; }
.prose p { font-size: 1.05rem; }
.prose p + p { margin-top: 1.1rem; }

/* Shared double-bezel surface (outer shell + inner core) */
.bezel {
  position: relative;
  height: 100%;
  background: var(--glass);
  border: 1px solid var(--hairline);
  border-radius: var(--r-xl);
  padding: 7px;
  box-shadow: var(--inner-hi);
}
.bezel-core {
  position: relative;
  height: 100%;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.12)), var(--ink);
  border-radius: calc(var(--r-xl) - 7px);
  box-shadow: var(--inner-hi);
  overflow: hidden;
}

/* ------------------------------------------------------------- Work / bento */

.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-flow: dense;
  gap: 1.1rem;
}

.bento .card { margin: 0; }
.card-feature { grid-column: span 4; grid-row: span 2; }
.card-sm      { grid-column: span 2; }

.card { display: block; }

.card .bezel-core {
  padding: 1.7rem 1.6rem;
  transition: transform 500ms var(--ease), box-shadow 500ms var(--ease), border-color 500ms var(--ease);
}

/* Spotlight that follows the cursor (vars set in JS) */
.card .bezel-core::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(155,130,255,0.16), transparent 60%);
  transition: opacity 400ms var(--ease);
  pointer-events: none;
}
.card:hover .bezel { border-color: rgba(155,130,255,0.4); }
.card:hover .bezel-core { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.card:hover .bezel-core::before { opacity: 1; }

.card-index {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--night-violet);
  font-variant-numeric: tabular-nums;
}

.card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
  margin: 1.4rem 0 0.7rem;
  color: var(--bone);
}
.card-feature h3 { font-size: 1.75rem; margin-top: 2.2rem; }

.card p { color: var(--bone-dim); font-size: 0.98rem; }
.card-feature p { font-size: 1.08rem; max-width: 32ch; }

/* faint glyph motif inside the feature card */
.card-feature .card-glyph {
  position: absolute;
  right: -40px;
  bottom: -40px;
  width: 220px;
  opacity: 0.06;
  pointer-events: none;
}

/* ------------------------------------------------------------------- FAQ */

.faq-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.faq-aside { position: sticky; top: 7rem; }
.faq-aside h2 { margin-bottom: 1rem; }
.faq-aside p { color: var(--bone-dim); max-width: 26ch; }

.faq-list { display: flex; flex-direction: column; }

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

.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.45rem 0.2rem;
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 500;
  color: var(--bone);
  transition: color 240ms var(--ease);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--night-violet); }

.faq-item summary .q-ico {
  position: relative;
  flex-shrink: 0;
  width: 18px; height: 18px;
}
.faq-item summary .q-ico::before,
.faq-item summary .q-ico::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  background: var(--night-violet);
  transition: transform 320ms var(--ease), opacity 320ms var(--ease);
}
.faq-item summary .q-ico::before { width: 16px; height: 2px; transform: translate(-50%, -50%); }
.faq-item summary .q-ico::after  { width: 2px; height: 16px; transform: translate(-50%, -50%); }
.faq-item[open] summary .q-ico::after  { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }
.faq-item[open] summary .q-ico::before { transform: translate(-50%, -50%) rotate(180deg); }

/* Smooth open via grid-template-rows (no-JS friendly) */
.faq-answer { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 420ms var(--ease); }
.faq-item[open] .faq-answer { grid-template-rows: 1fr; }
.faq-answer > div { overflow: hidden; }
.faq-answer p { color: var(--bone-dim); font-size: 0.99rem; max-width: 56ch; padding: 0 0 1.5rem; }

/* ----------------------------------------------------------------- Process */

.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 1.1rem;
}

.process-step .bezel-core { padding: 1.6rem 1.5rem; height: 100%; }

.process-num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--night-violet);
  font-variant-numeric: tabular-nums;
}
.process-step h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 1rem 0 0.5rem;
}
.process-step p { color: var(--bone-dim); font-size: 0.95rem; }

.process-note {
  margin-top: 2.6rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  color: var(--bone-dim);
  font-size: 1rem;
}
.process-note a {
  color: var(--night-violet);
  text-decoration: none;
  border-bottom: 1px solid rgba(155,130,255,0.4);
  transition: border-color 200ms var(--ease);
}
.process-note a:hover { border-color: var(--night-violet); }

/* -------------------------------------------------------------- Principles */

.principles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1.1rem;
}

.principle .bezel-core { padding: 1.8rem 1.6rem; height: 100%; }
.principle-num {
  font-family: var(--font-display);
  color: var(--night-violet);
  letter-spacing: 0.18em;
  font-size: 0.8rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.principle h3 {
  font-family: var(--font-display);
  margin: 0.9rem 0 0.55rem;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.principle p { color: var(--bone-dim); font-size: 0.97rem; }

/* ----------------------------------------------------------------- Contact */

.section-contact { position: relative; overflow: hidden; }
.section-contact .section-inner { position: relative; z-index: 1; }

.contact-glow {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 60% 60% at 50% 120%, rgba(107,70,229,0.28), transparent 70%);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.contact-copy h2 { margin-bottom: 1.2rem; }
.contact-lead { color: var(--bone-dim); max-width: 34rem; font-size: 1.06rem; }

.contact-alt {
  margin-top: 2rem;
  color: var(--bone-dim);
  font-size: 0.96rem;
}
.contact-alt a {
  color: var(--night-violet);
  text-decoration: none;
  border-bottom: 1px solid rgba(155,130,255,0.4);
  transition: border-color 200ms var(--ease);
}
.contact-alt a:hover { border-color: var(--night-violet); }

/* Form as an elevated island */
.form-island .bezel-core { padding: clamp(1.6rem, 3vw, 2.4rem); }

.contact-form { text-align: left; }

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

.field { display: flex; flex-direction: column; gap: 0.45rem; margin-bottom: 1.05rem; }

.field label {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--bone-dim);
}
.field-opt { color: var(--bone-faint); font-weight: 400; }

.field input,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.98rem;
  color: var(--bone);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  padding: 0.8rem 0.95rem;
  box-shadow: var(--inner-hi);
  transition: border-color 240ms var(--ease), box-shadow 240ms var(--ease), background 240ms var(--ease);
}
.field input::placeholder,
.field textarea::placeholder { color: var(--bone-faint); }

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

.field input:focus,
.field textarea:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(155, 130, 255, 0.65);
  box-shadow: var(--inner-hi), 0 0 0 4px rgba(107, 70, 229, 0.18);
}

.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] { border-color: var(--rose); }

.field-error { font-size: 0.8rem; color: var(--rose); min-height: 1em; }

.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.form-submit { margin-top: 0.4rem; width: 100%; justify-content: space-between; }
.form-submit:disabled { opacity: 0.6; cursor: progress; }

.form-status { margin-top: 1rem; font-size: 0.92rem; min-height: 1.2em; }
.form-status.is-success { color: var(--night-violet); }
.form-status.is-error { color: var(--rose); }

/* ------------------------------------------------------------------ Footer */

.site-footer {
  border-top: 1px solid var(--hairline);
  padding: 2.4rem clamp(1.25rem, 5vw, 3rem);
  background: var(--void-2);
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-note { color: var(--bone-faint); font-size: 0.85rem; }

/* ----------------------------------------------------------- Scroll reveal */

/* Hidden state is applied ONLY by JS (.reveal-init), and JS always reveals
   (IntersectionObserver + a timeout safety net). So if JS fails, the CSS
   is stale/mismatched, or these rules are missing, all content stays visible.
   Text can never get permanently stuck hidden. */
[data-reveal].reveal-init {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(6px);
  will-change: transform, opacity;
}
[data-reveal].reveal-init.is-in {
  opacity: 1;
  transform: none;
  filter: none;
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out), filter 0.8s var(--ease-out);
}

/* --------------------------------------------------------- Responsive / a11y */

@media (max-width: 900px) {
  .bento { grid-template-columns: 1fr; }
  .card-feature, .card-sm { grid-column: auto; grid-row: auto; }
  .faq-layout { grid-template-columns: 1fr; gap: 2rem; }
  .faq-aside { position: static; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .site-nav a:not(.nav-cta) { display: none; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; }
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1 !important; transform: none !important; filter: none !important; }
}
