/* ===========================================================
   Z2A Holdings
   =========================================================== */

:root {
  --ink: #0a0d12;
  --ink-2: #10151d;
  --ink-3: #171f2a;
  --line: rgba(201, 168, 106, 0.18);
  --line-soft: rgba(255, 255, 255, 0.08);
  --paper: #f6f4ee;
  --paper-dim: #cfd3da;
  --gold: #c9a26a;
  --gold-bright: #e2c48c;
  --text-hi: #f3f1ea;
  --text-mid: #b9bfc9;
  --text-low: #7c8494;
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --maxw: 1240px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--text-mid);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 48px;
}

@media (max-width: 720px) {
  .wrap { padding: 0 24px; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--gold);
  display: inline-block;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--text-hi);
  font-weight: 500;
  letter-spacing: 0.01em;
}

section { position: relative; }

/* ---------- Texture backdrop ---------- */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 500;
  padding: 28px 0;
  transition: padding 0.4s ease, background 0.4s ease, border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  padding: 16px 0;
  background: rgba(10, 13, 18, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}

.nav .wrap { display: flex; align-items: center; justify-content: space-between; }

.wordmark {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--serif);
  font-size: 24px;
  letter-spacing: 0.06em;
  color: var(--text-hi);
}

.wordmark .mark {
  width: auto;
  height: 30px;
  flex: 0 0 auto;
  object-fit: contain;
}

.wordmark small {
  display: block;
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 0.3em;
  color: var(--text-low);
  margin-top: 2px;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-mid);
}

.nav-links a { position: relative; padding-bottom: 4px; transition: color 0.25s ease; }
.nav-links a:hover { color: var(--gold-bright); }

.nav-cta {
  border: 1px solid var(--gold);
  color: var(--gold-bright) !important;
  padding: 10px 22px;
  font-size: 12px;
}
.nav-cta:hover { background: var(--gold); color: var(--ink) !important; }

.nav-toggle { display: none; }

@media (max-width: 900px) {
  /* The panel takes a full row, so the button is ordered up beside the
     wordmark rather than being pushed below the links it opens. */
  .nav .wrap { flex-wrap: wrap; }
  .wordmark { order: 0; }
  .nav-toggle { order: 1; }
  .nav-links { order: 2; display: none; }
  .nav-toggle {
    display: block;
    background: none; border: none; color: var(--text-hi);
    font-size: 24px; cursor: pointer;
    line-height: 1;
  }

  /* The button used to be decorative. It now opens the links as a panel
     under the bar, which is the only way to reach the sections on a phone. */
  .nav.open {
    background: rgba(10, 13, 18, 0.96);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line-soft);
  }
  .nav.open .nav-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 22px;
    width: 100%;
    padding: 30px 0 12px;
  }
  .nav.open .nav-cta { text-align: center; }
}

/* ---------- Hero ---------- */
.hero {
  /* Positioned so the grid overlay, the cursor glow, and the scroll cue
     anchor to the hero itself rather than to the initial containing block. */
  position: relative;
  min-height: calc(100vh - 90px);
  display: flex;
  align-items: center;
  padding: 72px 0 96px;
  background:
    radial-gradient(ellipse 80% 60% at 15% 0%, rgba(201,162,106,0.10), transparent 60%),
    radial-gradient(ellipse 60% 50% at 90% 10%, rgba(201,162,106,0.06), transparent 60%),
    linear-gradient(180deg, #0a0d12 0%, #0c1017 60%, #0a0d12 100%);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 30%, black 0%, transparent 75%);
  opacity: 0.5;
}

.hero-inner { position: relative; z-index: 2; max-width: 880px; }

.hero h1 {
  font-size: clamp(40px, 5.4vw, 70px);
  line-height: 1.06;
  margin: 22px 0 24px;
}

.hero h1 em {
  font-style: italic;
  color: var(--gold-bright);
}

.hero p.lede {
  font-size: 18px;
  color: var(--text-mid);
  max-width: 560px;
  margin-bottom: 36px;
  line-height: 1.65;
}

.btn-row { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--gold);
  color: var(--ink);
  background: var(--gold);
  transition: all 0.3s ease;
}
.btn:hover { background: transparent; color: var(--gold-bright); }

.btn-ghost {
  background: transparent;
  color: var(--text-hi);
  border: 1px solid var(--line-soft);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-bright); }

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 48px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-low);
}
.hero-scroll .line { width: 40px; height: 1px; background: var(--text-low); }

/* ---------- Stats ---------- */
.stats {
  padding: 120px 0;
  background: var(--ink);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 64px;
}
@media (max-width: 900px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
/* The pillars carry a word rather than a figure, and a word needs a
   column it fits in. One per row on a phone. */
@media (max-width: 560px) {
  .stats-grid { grid-template-columns: 1fr; gap: 34px; }
}
.stat { border-left: 1px solid var(--line); padding-left: 24px; }
.stat .num {
  font-family: var(--serif);
  font-size: 48px;
  color: var(--gold-bright);
  line-height: 1;
  margin-bottom: 14px;
}
.stat .label {
  font-size: 13px;
  color: var(--text-mid);
  letter-spacing: 0.02em;
  line-height: 1.5;
}

.section-head {
  max-width: 680px;
}
.section-head h2 {
  font-size: clamp(32px, 4vw, 46px);
  margin-top: 20px;
  line-height: 1.15;
}
.section-head p {
  margin-top: 22px;
  font-size: 17px;
  color: var(--text-mid);
  line-height: 1.75;
}

/* ---------- Services ---------- */
.services { padding: 140px 0; background: var(--ink-2); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }

.service-grid {
  margin-top: 72px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
}
@media (max-width: 800px) {
  .service-grid { grid-template-columns: 1fr; }
}

.service-card {
  background: var(--ink-2);
  padding: 56px 48px;
  transition: background 0.35s ease;
}
.service-card:hover { background: var(--ink-3); }

.service-card .index {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--gold);
  letter-spacing: 0.1em;
}

.service-card h3 {
  font-size: 27px;
  margin: 22px 0 18px;
}

.service-card p { font-size: 15.5px; line-height: 1.75; color: var(--text-mid); }

/* ---------- Philosophy / quote ---------- */
.philosophy {
  padding: 160px 0;
  position: relative;
  background:
    radial-gradient(ellipse 70% 60% at 80% 20%, rgba(201,162,106,0.08), transparent 60%),
    var(--ink);
}

.quote-block { max-width: 900px; margin: 0 auto; text-align: center; }

.quote-block .mark-lg {
  font-family: var(--serif);
  font-size: 100px;
  color: var(--gold);
  opacity: 0.35;
  line-height: 1;
}

.quote-block blockquote {
  font-family: var(--serif);
  font-size: clamp(26px, 3.4vw, 40px);
  color: var(--text-hi);
  line-height: 1.4;
  font-style: italic;
  margin: 10px 0 34px;
}

.quote-block cite {
  font-style: normal;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ---------- Approach steps ---------- */
.approach { padding: 140px 0; background: var(--ink); }
.steps {
  margin-top: 72px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

.step .num {
  font-family: var(--serif);
  font-size: 34px;
  color: var(--gold);
  margin-bottom: 18px;
}
.step h4 { font-size: 19px; margin-bottom: 12px; }
.step p { font-size: 14.5px; color: var(--text-mid); line-height: 1.7; }

/* ---------- CTA band ---------- */
.cta-band {
  padding: 130px 0;
  text-align: center;
  border-top: 1px solid var(--line-soft);
  background: linear-gradient(180deg, var(--ink-2), var(--ink));
}
.cta-band h2 {
  font-size: clamp(32px, 5vw, 54px);
  max-width: 760px;
  margin: 22px auto 40px;
  line-height: 1.2;
}
.cta-band .eyebrow { justify-content: center; }
.cta-band .btn-row { justify-content: center; }

/* ---------- Contact ---------- */
.contact {
  padding: 140px 0 100px;
  background: var(--ink-2);
  border-top: 1px solid var(--line-soft);
}
.contact-grid {
  margin-top: 64px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 90px;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 56px; } }

.info-item { margin-bottom: 34px; }
.info-item .lbl {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.info-item .val { font-size: 18px; color: var(--text-hi); font-family: var(--serif); }
.info-item .sub { font-size: 13.5px; color: var(--text-low); margin-top: 4px; }

form { display: flex; flex-direction: column; gap: 22px; }
.field { display: flex; flex-direction: column; gap: 10px; }
.field label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-low);
}
.field input, .field textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line-soft);
  padding: 12px 2px;
  color: var(--text-hi);
  font-family: var(--sans);
  font-size: 15px;
  transition: border-color 0.25s ease;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.field textarea { resize: vertical; min-height: 100px; }

form .btn { align-self: flex-start; margin-top: 8px; cursor: pointer; font-family: var(--sans); }

/* ---------- Footer ---------- */
footer {
  padding: 56px 0 40px;
  background: var(--ink);
  border-top: 1px solid var(--line-soft);
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: 40px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--line-soft);
}
.footer-links { display: flex; gap: 32px; font-size: 13px; color: var(--text-mid); flex-wrap: wrap; }
.footer-links a:hover { color: var(--gold-bright); }

/* Unused since the Form ADV disclosure came out. Kept in case a short
   non-advisory notice goes back in. */
.disclosure {
  font-size: 11.5px;
  line-height: 1.8;
  color: var(--text-low);
  max-width: 980px;
}

.copyright {
  margin-top: 28px;
  font-size: 12px;
  color: var(--text-low);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Reveal animation ----------
   Content is visible by default. Only the `js` class, set by an inline
   script in <head>, opts into the hidden starting state, so a script
   failure degrades to a fully readable page instead of a blank one. */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.js .reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- Placeholder banner ---------- */
.placeholder-note {
  background: #3a2c12;
  color: #ffe7b0;
  font-size: 12.5px;
  text-align: center;
  padding: 4px 8px;
}

/* ===========================================================
   Motion + performance layer
   Aceternity-style effects rebuilt dependency-free.
   =========================================================== */

/* Cursor-tracked spotlight on the hero. Driven by CSS vars set in JS. */
.hero {
  --mx: 50%;
  --my: 40%;
}

.hero-spot {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(
    520px circle at var(--mx) var(--my),
    rgba(201, 162, 106, 0.10),
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.6s ease;
}
.hero:hover .hero-spot { opacity: 1; }

/* Cursor-tracked glow on service cards */
.service-card {
  position: relative;
  --cx: 50%;
  --cy: 50%;
}
.service-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.45s ease;
  background: radial-gradient(
    360px circle at var(--cx) var(--cy),
    rgba(201, 162, 106, 0.09),
    transparent 65%
  );
}
.service-card:hover::after { opacity: 1; }
.service-card > * { position: relative; z-index: 1; }

/* Gold rule that draws itself in under a section heading */
.section-head h2 { position: relative; }
.section-head h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -18px;
  height: 1px;
  width: 0;
  background: linear-gradient(90deg, var(--gold), transparent);
  transition: width 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.25s;
}
.section-head.in h2::after { width: 180px; }

/* Stat figures count up from a subtle blur */
.stat .num {
  transition: filter 0.9s ease, opacity 0.9s ease;
}
.js .reveal:not(.in) .num { filter: blur(6px); opacity: 0; }

/* Staggered reveal children */
.stats-grid .reveal.in { transition-delay: calc(var(--i, 0) * 90ms); }
.service-grid .reveal.in { transition-delay: calc(var(--i, 0) * 90ms); }
.steps .reveal.in { transition-delay: calc(var(--i, 0) * 90ms); }

/* Buttons get a soft lift instead of a color flash */
.btn { will-change: transform; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

/* Nav links draw an underline from the left */
.nav-links a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  height: 1px; width: 0;
  background: var(--gold);
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-links a:not(.nav-cta):hover::after { width: 100%; }

/* Respect users who ask for less motion. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
  .reveal:not(.in) .num { filter: none; opacity: 1; }
  .hero-spot, .service-card::after { display: none; }
  .section-head h2::after { width: 180px; }
}

/* Contact email reads as a link rather than static text */
.info-item a.val { transition: color 0.25s ease; border-bottom: 1px solid var(--line); padding-bottom: 2px; }
.info-item a.val:hover { color: var(--gold-bright); border-color: var(--gold); }

.form-note {
  margin-top: 14px;
  font-family: var(--sans);
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-mid);
  padding-left: 14px;
  border-left: 1px solid var(--line-soft);
}

.form-note--ok {
  color: var(--gold-bright);
  border-left-color: var(--gold);
}

.form-note--warn {
  color: #e6b4a2;
  border-left-color: #b4705a;
}

/* Optional-field marker beside a label. */
.field label .opt {
  color: var(--text-low);
  text-transform: none;
  letter-spacing: 0;
}

/* Honeypot. Off screen for people, still reachable for bots. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ===========================================================
   Lantern
   The mark carries meaning, so it appears at four weights:
   the wordmark, a ghost behind the hero, the plate in its own
   section, and a watermark behind the closing call.
   =========================================================== */

/* Ghost behind the hero. Low enough to read as light in the
   room rather than as a logo placed on the page. */
.hero::after {
  content: "";
  position: absolute;
  right: 7%;
  top: 50%;
  transform: translateY(-50%);
  width: 290px;
  height: 384px;
  background: url("assets/logo/z2a-lantern-gold-1024.png") center / contain no-repeat;
  opacity: 0.09;
  pointer-events: none;
  z-index: 0;
}
@media (max-width: 1180px) {
  .hero::after { display: none; }
}

/* ---------- The mark, in its own section ---------- */
.mark-band {
  padding: 140px 0;
  background: var(--ink-2);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.mark-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 90px;
  align-items: center;
}

@media (max-width: 900px) {
  .mark-grid { grid-template-columns: 1fr; gap: 52px; }
  .mark-art { max-width: 190px; }
}

.mark-art { position: relative; }

/* A soft field of light behind the lamp, so it sits in the page
   instead of floating on it. */
.mark-art::before {
  content: "";
  position: absolute;
  inset: -26% -34%;
  background: radial-gradient(circle at 50% 42%, rgba(201, 162, 106, 0.16), transparent 68%);
  pointer-events: none;
}

.mark-art img {
  position: relative;
  width: 100%;
  height: auto;
}

/* ---------- Watermark behind the closing call ---------- */
.cta-band { position: relative; overflow: hidden; }

.cta-band::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 661px;
  background: url("assets/logo/z2a-lantern-gold-1024.png") center / contain no-repeat;
  opacity: 0.05;
  pointer-events: none;
}

.cta-band .wrap { position: relative; z-index: 1; }

/* ---------- Pillars ---------- */
/* The three columns under Why Z2A now carry a word rather than a
   figure, so the serif drops to a size a word can hold. */
.stat .num.word {
  font-size: clamp(26px, 2.4vw, 34px);
  letter-spacing: 0.01em;
}

.stat .label {
  font-size: 14px;
  line-height: 1.65;
}
