/* ==========================================================================
   VeraFlux — meetveraflux.com
   Palette: near-black + warm gold. No third color (deliberate exception:
   the AI & The Future pillar keeps its cool blue as differentiation).
   ========================================================================== */

:root {
  --ink:        #07070F;
  --ink-2:      #0C0C17;
  --ink-3:      #12121F;
  --line:       rgba(232, 178, 77, 0.16);
  --gold:       #E0A43C;
  --gold-bright:#FFD98A;
  --gold-deep:  #8A6420;
  --paper:      #F1EDE3;
  --muted:      #A79F92;
  --ai-blue:    #7FB2E5;          /* hover accent, AI card only */

  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body:    "Inter", -apple-system, "Segoe UI", sans-serif;

  --w-max: 1180px;
  --pad-x: clamp(1.25rem, 4vw, 3rem);
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: var(--gold); text-decoration: none; }

:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- shared type ---------- */

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; }

.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

.gold { color: var(--gold); }

.section-head { text-align: center; margin-bottom: clamp(2rem, 5vw, 3.25rem); }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); }
.section-sub {
  margin-top: 0.6rem;
  color: var(--gold);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.75rem 1.6rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}
.btn__icon { width: 1.1em; height: 1.1em; flex: none; }

.btn--gold {
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  color: #1B1405;
  box-shadow: 0 4px 22px rgba(224, 164, 60, 0.28);
}
.btn--gold:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(224, 164, 60, 0.42); }

.btn--ghost {
  border: 1px solid rgba(241, 237, 227, 0.35);
  color: var(--paper);
  background: rgba(7, 7, 15, 0.35);
  backdrop-filter: blur(4px);
}
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-bright); transform: translateY(-2px); }

.arrow { display: inline-block; transition: transform 0.18s ease; }
a:hover .arrow { transform: translateX(4px); }

/* ---------- navigation ---------- */

.nav {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--w-max);
  margin-inline: auto;
  padding: 1.4rem var(--pad-x);
}

.nav__brand { display: inline-flex; align-items: center; }
.nav__logo { height: 128px; width: auto; }

.nav__links { display: flex; align-items: center; gap: 2rem; }
.nav__links a {
  color: var(--paper);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  opacity: 0.85;
  transition: opacity 0.15s ease, color 0.15s ease;
  padding: 0.5rem 0;
}
.nav__links a:hover { opacity: 1; color: var(--gold-bright); }

.nav__cta {
  border: 1px solid var(--gold);
  border-radius: 5px;
  padding: 0.5rem 1.1rem !important;
  color: var(--gold) !important;
  opacity: 1 !important;
}
.nav__cta:hover { background: rgba(224, 164, 60, 0.12); }

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: clamp(560px, 86vh, 820px);
  display: flex;
  align-items: center;
}

.hero__ambient {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero__media,
.hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero__media img { object-fit: cover; object-position: right center; }

.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7,7,15,0.94) 0%, rgba(7,7,15,0.78) 34%, rgba(7,7,15,0.25) 62%, rgba(7,7,15,0.05) 100%),
    linear-gradient(180deg, rgba(7,7,15,0.55) 0%, rgba(7,7,15,0) 22%, rgba(7,7,15,0) 70%, rgba(7,7,15,0.9) 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: var(--w-max);
  width: 100%;
  margin-inline: auto;
  padding: 6.5rem var(--pad-x) 2.75rem;
}
.hero__content > * { max-width: 560px; }

.hero__title {
  font-size: clamp(2.5rem, 5.4vw, 4.1rem);
  margin: 0.9rem 0 1.4rem;
}

.hero__lead { font-size: 1.06rem; color: var(--paper); }

.hero__values {
  margin-top: 1.1rem;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.06em;
  font-size: 0.98rem;
}

.hero__body { margin-top: 1.1rem; color: var(--muted); font-size: 0.98rem; }

.hero__anchor {
  margin-top: 1.3rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--gold-bright);
}

.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2rem; }

/* ---------- signature flare divider ---------- */

.flare {
  position: relative;
  height: 2px;
  max-width: min(880px, 82vw);
  margin: 0 auto;
  background: linear-gradient(90deg, transparent, var(--gold) 30%, var(--gold-bright) 50%, var(--gold) 70%, transparent);
}
.flare::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 120px; height: 26px;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center, rgba(255, 217, 138, 0.85), rgba(255, 217, 138, 0) 70%);
  filter: blur(2px);
  pointer-events: none;
  animation: flare-breathe 7s ease-in-out infinite;
}

@keyframes flare-breathe {
  0%, 100% { opacity: 0.55; transform: translate(-50%, -50%) scaleX(0.92); }
  50%      { opacity: 1;    transform: translate(-50%, -50%) scaleX(1.06); }
}

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

/* ---------- manifesto / video ---------- */

.manifesto {
  max-width: 900px;
  margin-inline: auto;
  padding: clamp(2.4rem, 5vw, 3.4rem) var(--pad-x) clamp(2rem, 4vw, 2.8rem);
  text-align: center;
}

.manifesto__quote p {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.9vw, 1.45rem);
  font-weight: 500;
  font-style: italic;
  line-height: 1.4;
  color: var(--paper);
  opacity: 0.92;
}

.video { margin-top: clamp(1.4rem, 3vw, 2rem); }

.video__placeholder {
  position: relative;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: 10px;
  background:
    radial-gradient(ellipse 70% 60% at 50% 100%, rgba(224, 164, 60, 0.10), transparent 70%),
    var(--ink-2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  overflow: hidden;
}

.video__flare {
  position: absolute;
  left: 10%; right: 10%; top: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(224,164,60,0.5) 40%, rgba(255,217,138,0.9) 50%, rgba(224,164,60,0.5) 60%, transparent);
  opacity: 0.55;
}

.video__label {
  position: relative;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--gold-bright);
  background: var(--ink-2);
  padding: 0 1.2rem;
}
.video__note {
  position: relative;
  font-size: 0.85rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.video iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 10px;
  display: block;
}

/* youtube facade (lite embed) */
.video__facade {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--line);
  background: #000 center / cover no-repeat;
  width: 100%;
  padding: 0;
  display: block;
}
.video__facade::after {
  content: "";
  position: absolute; inset: 0;
  background: rgba(7,7,15,0.25);
  transition: background 0.2s ease;
}
.video__facade:hover::after { background: rgba(7,7,15,0.05); }
.video__play {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 76px; height: 54px;
  z-index: 2;
  filter: drop-shadow(0 4px 18px rgba(0,0,0,0.5));
}

/* ---------- themes / pillar cards ---------- */

.themes {
  max-width: var(--w-max);
  margin-inline: auto;
  padding: clamp(1.8rem, 3.5vw, 2.6rem) var(--pad-x) clamp(2.6rem, 5vw, 3.6rem);
}

/* LOCKED: four cards in ONE row on desktop AND tablet; single column mobile. */
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(0.8rem, 2vw, 1.6rem);
}

.card {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}
.card:hover {
  transform: translateY(-5px);
  border-color: rgba(232, 178, 77, 0.45);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.5);
}
/* deliberate exception: AI card hovers cool blue */
.card--ai:hover { border-color: rgba(127, 178, 229, 0.55); }
.card--ai .card__link { color: var(--ai-blue); }

.card__media {
  aspect-ratio: 4 / 3.4;
  overflow: hidden;
}
.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.card:hover .card__media img { transform: scale(1.04); }

.card__body {
  padding: clamp(0.9rem, 1.8vw, 1.4rem);
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.55rem;
}
.card__body h3 {
  font-size: clamp(1.05rem, 1.7vw, 1.4rem);
  line-height: 1.2;
}
.card__body p {
  font-size: clamp(0.78rem, 1.1vw, 0.9rem);
  color: var(--muted);
  flex: 1;
}
.card__link {
  font-size: clamp(0.78rem, 1.1vw, 0.88rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 32px;
}

/* ---------- why ---------- */

.why {
  max-width: 980px;
  margin-inline: auto;
  padding: clamp(1.8rem, 3.5vw, 2.6rem) var(--pad-x) clamp(1.4rem, 2.5vw, 2rem);
}

/* tighter head inside this section only — it's an information beat,
   not a destination */
.why .section-head { margin-bottom: clamp(1.4rem, 3vw, 2.1rem); }

.why__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.2rem, 2.5vw, 2rem);
  align-items: start; /* a wrapped line can never stagger the row */
  text-align: center;
}

.why__icon {
  width: 42px;
  height: 42px;
  color: var(--gold);
  margin: 0 auto 0.8rem;
}
.why__item h3 { font-size: 1.25rem; margin-bottom: 0.45rem; }
.why__item p { color: var(--muted); font-size: 0.9rem; max-width: 280px; margin-inline: auto; }

.why__support {
  margin: clamp(1.3rem, 2.5vw, 1.8rem) auto 0;
  max-width: 620px;
  text-align: center;
  color: var(--paper);
  font-size: 0.95rem;
  opacity: 0.85;
}

/* ---------- final cta band ---------- */

.bottom {
  position: relative;
  background: var(--ink) url("../assets/vera_bottom.webp") center bottom / cover no-repeat;
}
.bottom::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 46%;
  background: linear-gradient(180deg, var(--ink) 0%, rgba(7,7,15,0.55) 45%, rgba(7,7,15,0) 100%);
  pointer-events: none;
}
.bottom::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 130px;
  background: linear-gradient(180deg, rgba(4,4,8,0) 0%, rgba(4,4,8,0.5) 100%);
  pointer-events: none;
}

.cta-band {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: clamp(3rem, 7vw, 5rem) var(--pad-x) clamp(1.75rem, 4vw, 3rem);
}
.cta-band h2 { font-size: clamp(1.9rem, 4.4vw, 2.9rem); }
.cta-band p { margin: 1rem 0 2rem; color: var(--paper); opacity: 0.88; }

/* ---------- footer ---------- */

.footer {
  position: relative;
  z-index: 2;
  background: transparent;
  padding: 0rem var(--pad-x) 3.5rem;
  text-align: center;
}

.footer__logo {
  width: min(280px, 64vw);
  margin: 0 auto 3.5rem;
  height: auto;
  filter: drop-shadow(0 2px 12px rgba(4, 4, 8, 0.7));
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.9rem;
  font-size: 0.85rem;
}
.footer__links a,
.footer__about,
.footer__text {
  color: #C9C2B4;
  text-shadow: 0 1px 8px rgba(4, 4, 8, 0.8);
  transition: color 0.15s ease;
  padding: 0.4rem 0.1rem;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
}
.footer__links a:hover, .footer__about:hover { color: var(--gold-bright); }
.footer__sep { color: rgba(167, 159, 146, 0.35); }

.footer__about {
  background: none;
  border: none;
  font: inherit;
  cursor: pointer;
}

/* ---------- modal ---------- */

.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 1.25rem; }
.modal[hidden] { display: none; }

.modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(4, 4, 8, 0.82);
  backdrop-filter: blur(3px);
}

.modal__panel {
  position: relative;
  max-width: 560px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  background: var(--ink-3);
  border: 1px solid rgba(232, 178, 77, 0.28);
  border-radius: 12px;
  padding: clamp(1.6rem, 4vw, 2.5rem);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.7);
}
.modal__panel h2 {
  font-size: 1.7rem;
  color: var(--gold-bright);
  margin-bottom: 1.1rem;
}
.modal__panel p { margin-bottom: 0.9rem; font-size: 0.94rem; color: var(--paper); }
.modal__legal { color: var(--muted); font-size: 0.8rem !important; margin-top: 1.3rem; }

.modal__close {
  position: absolute;
  top: 0.8rem; right: 0.9rem;
  width: 44px; height: 44px;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 6px;
}
.modal__close:hover { color: var(--paper); }

/* ---------- reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .card, .btn, .card__media img { transition: none; }
}

/* ==========================================================================
   TABLET  768–1023px — LOCKED: cards stay 4-in-a-row, compact
   ========================================================================== */
@media (max-width: 1023px) and (min-width: 768px) {
  .nav__logo { height: 72px; }
  .hero__content { padding-top: 6rem; }
  .hero__content > * { max-width: 480px; }

  .card__media { aspect-ratio: 3 / 4; }
  .card__body { padding: 0.75rem; gap: 0.45rem; }
  .card__body h3 { font-size: 0.98rem; }
  .card__body p { font-size: 0.74rem; line-height: 1.45; }
  .card__link { font-size: 0.74rem; }

  .why__grid { gap: 1.4rem; }
  .why__item p { font-size: 0.86rem; }
}

/* ==========================================================================
   MOBILE  <768px
   ========================================================================== */
@media (max-width: 767px) {
  /* nav: hide anchors (page is short), keep brand + CTA */
  .nav__links a:not(.nav__cta) { display: none; }
  .nav { padding: 1rem 1.25rem; }
  .nav__logo { height: 56px; }
  .nav__cta { font-size: 0.8rem; padding: 0.45rem 0.85rem !important; }

  /* dedicated mobile hero: portrait image, text over darkened lower region */
  .hero {
    min-height: 100svh;
    align-items: flex-end;
  }
  .hero__media img { object-position: center top; }
  .hero__scrim {
    background:
      linear-gradient(180deg, rgba(7,7,15,0.45) 0%, rgba(7,7,15,0.05) 26%, rgba(7,7,15,0.28) 48%, rgba(7,7,15,0.92) 72%, var(--ink) 100%);
  }
  .hero__content { padding: 4rem 1.4rem 3rem; }
  .hero__title { font-size: clamp(2.1rem, 9vw, 2.6rem); }
  .hero__body { font-size: 0.92rem; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; justify-content: center; }

  /* cards: single column, full width */
  .cards { grid-template-columns: 1fr; gap: 1.4rem; }
  .card__media { aspect-ratio: 16 / 10; }
  .card__body h3 { font-size: 1.35rem; }
  .card__body p { font-size: 0.92rem; }
  .card__link { font-size: 0.9rem; }

  .why__grid { grid-template-columns: 1fr; gap: 2.4rem; }

  .cta-band .btn { width: 100%; max-width: 340px; justify-content: center; }

  .footer__links { flex-direction: column; gap: 0.15rem; }
  .footer__sep { display: none; }
}

.flare--seam {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(880px, 82vw);
  margin: 0;
  z-index: 3;
}

@media (min-width: 1800px) {
  .nav, .hero__content { max-width: 1560px; }
}