/* Crystal Carnation landing page V2 - dark premium.
   Direction settled by the client's own company profile (black + champagne gold).
   No web fonts, no CDN: a government or university buyer may be on a slow institutional
   connection, and every external request is a failure point. Icons are a local
   Font Awesome Free subset sprite (assets/icons.svg); the WordPress build swaps them
   for the FA plugin 1:1. All motion respects prefers-reduced-motion. */

*, *::before, *::after { box-sizing: border-box; }

:root {
  --gold: #E8D0B8;
  --gold-deep: #C9A97F;
  --bg: #0A0A0B;
  --bg-alt: #111113;
  --ink: #EDEAE5;
  --ink-soft: #A9A49C;
  --rule: #26241F;
  --card: #141416;
  --max: 1140px;
  --pad: 24px;
  --r: 4px;
  --gold-ink: #8A6A42;
  --accent: var(--gold);
  --accent-ink: #0A0A0B;
  --logo-pad: transparent;
  --serif: Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.22,.61,.36,1);
}

html { scroll-behavior: smooth; }

/* Light palette - the client compares both before choosing. Accent flips from
   champagne (needs dark behind it) to a deep gold that holds contrast on white. */
body[data-theme="light"] {
  --bg: #FFFFFF;
  --bg-alt: #F7F4EF;
  --ink: #17171A;
  --ink-soft: #5C5A56;
  --rule: #E2DDD4;
  --card: #FFFFFF;
  --accent: var(--gold-ink);
  --accent-ink: #FFFFFF;
  --logo-pad: #0A0A0B;
}
body[data-theme="light"] .hero-art { filter: brightness(.55) saturate(1.3); }
body[data-theme="light"] .card:hover { box-shadow: 0 18px 40px rgba(23,23,26,.12); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }

.ic { width: 1em; height: 1em; fill: currentColor; vertical-align: -.12em; }

.skip {
  position: absolute; left: -9999px; top: 0; background: var(--accent);
  color: var(--accent-ink); padding: 10px 16px; z-index: 99;
}
.skip:focus { left: 8px; top: 8px; }

/* ---------- reveal-on-scroll ----------
   Hidden ONLY under body.js (set by app.js as its first act). If JavaScript never
   runs - old browser, blocked script, crawler without render budget - every element
   stays visible and the page degrades to a static layout instead of a black void. */
body.js .rv { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
body.js .rv.in { opacity: 1; transform: none; }
/* stagger siblings inside grids */
.grid .rv.in:nth-child(2) { transition-delay: .08s; }
.grid .rv.in:nth-child(3) { transition-delay: .16s; }
.grid .rv.in:nth-child(4) { transition-delay: .24s; }
.grid .rv.in:nth-child(5) { transition-delay: .32s; }
.grid .rv.in:nth-child(6) { transition-delay: .40s; }
.grid .rv.in:nth-child(7) { transition-delay: .48s; }
.grid .rv.in:nth-child(8) { transition-delay: .56s; }
.grid .rv.in:nth-child(9) { transition-delay: .64s; }

/* hero load-in sequence - same no-JS guard as .rv */
body.js .ld { opacity: 0; transform: translateY(22px); }
body.ready .ld { animation: ldup .8s var(--ease) forwards; }
body.ready .ld1 { animation-delay: .1s; }
body.ready .ld2 { animation-delay: .25s; }
body.ready .ld3 { animation-delay: .45s; }
body.ready .ld4 { animation-delay: .6s; }
body.ready .ld5 { animation-delay: .75s; }
@keyframes ldup { to { opacity: 1; transform: none; } }

/* ---------- header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
  transition: background .3s;
}
.head-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 76px; transition: min-height .3s var(--ease);
}
.site-head.scrolled .head-inner { min-height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 40px; height: auto; padding: 3px; border-radius: 3px;
  background: var(--logo-pad); transition: width .3s var(--ease); }
.site-head.scrolled .brand img { width: 32px; }
.brand-word {
  font-family: var(--serif); font-size: 19px; letter-spacing: .06em;
  color: var(--ink); white-space: nowrap;
}
.nav { display: flex; align-items: center; gap: 26px; }
.nav a {
  color: var(--ink-soft); text-decoration: none; font-size: 14px;
  letter-spacing: .06em; text-transform: uppercase; transition: color .2s;
}
.nav a:hover { color: var(--accent); }
.nav .nav-cta {
  color: var(--accent); border: 1px solid var(--accent);
  padding: 9px 18px; border-radius: var(--r); transition: background .2s, color .2s;
}
.nav .nav-cta:hover { background: var(--accent); color: var(--accent-ink); }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 118px 0 96px; }
.hero-glow {
  position: absolute; right: -12%; top: -18%; width: 780px; height: 780px;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 14%, transparent) 0%, transparent 62%);
  animation: glowpulse 9s ease-in-out infinite;
  pointer-events: none;
}
@keyframes glowpulse { 0%,100% { opacity: .75; } 50% { opacity: 1; transform: scale(1.06); } }
.hero-art {
  position: absolute; inset: 0; display: flex; justify-content: flex-end; align-items: center;
  pointer-events: none;
}
.hero-art svg { width: min(760px, 92%); height: 100%; transform: translateX(22%); }
/* hexagons draw themselves in, then breathe */
body.js .hx { stroke-dasharray: 1500; stroke-dashoffset: 1500; }
body.ready .hx { animation: hxdraw 2.6s var(--ease) forwards, hxfloat 14s ease-in-out 2.6s infinite; }
body.ready .hx2 { animation-delay: .3s, 2.9s; }
body.ready .hx3 { animation-delay: .6s, 3.2s; }
body.ready .hx4 { animation-delay: .9s, 3.5s; }
@keyframes hxdraw { to { stroke-dashoffset: 0; } }
@keyframes hxfloat {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}
.hero-inner { position: relative; max-width: 800px; }

.eyebrow {
  margin: 0 0 22px; color: var(--accent); font-size: 12.5px;
  letter-spacing: .22em; text-transform: uppercase; font-weight: 600;
}
h1 {
  margin: 0 0 24px; font-family: var(--serif); font-weight: 400;
  font-size: clamp(34px, 6vw, 60px); line-height: 1.1; letter-spacing: -.01em;
}
.lede { margin: 0 0 34px; font-size: clamp(17px, 2vw, 19.5px); color: var(--ink-soft); max-width: 62ch; }

.cta-row { display: flex; flex-wrap: wrap; gap: 14px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 30px; border-radius: var(--r);
  text-decoration: none; font-size: 15px; font-weight: 600; letter-spacing: .03em;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s, filter .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.07); box-shadow: 0 8px 28px color-mix(in srgb, var(--accent) 25%, transparent); }
.btn-ghost { border-color: var(--rule); color: var(--ink); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-block { width: 100%; justify-content: center; }

.trust-chips {
  list-style: none; display: flex; flex-wrap: wrap; gap: 10px 26px;
  margin: 34px 0 0; padding: 0;
}
.trust-chips li { font-size: 14px; color: var(--ink-soft); display: flex; align-items: center; gap: 8px; }
.trust-chips .ic { color: var(--accent); }

/* ---------- stats ---------- */
.stats { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); background: var(--bg-alt); }
.stats-inner {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
  padding: 38px var(--pad);
}
.stat { text-align: center; }
.stat-n {
  display: block; font-family: var(--serif); font-size: clamp(30px, 4vw, 44px);
  color: var(--accent); line-height: 1.1;
}
.stat-l {
  display: block; margin-top: 6px; font-size: 12.5px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-soft);
}

/* ---------- bands ---------- */
.band { padding: 96px 0; border-top: 1px solid var(--rule); }
.band.alt { background: var(--bg-alt); }
.center { text-align: center; }

.kicker {
  margin: 0 0 14px; color: var(--accent); font-size: 12px;
  letter-spacing: .2em; text-transform: uppercase; font-weight: 600;
  position: relative; padding-left: 42px;
}
.kicker::before {
  content: ""; position: absolute; left: 0; top: 50%; width: 30px; height: 1px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform .8s var(--ease) .2s;
}
.kicker.in::before { transform: scaleX(1); }
.center .kicker { padding-left: 0; }
.center .kicker::before { display: none; }

h2 {
  margin: 0 0 18px; font-family: var(--serif); font-weight: 400;
  font-size: clamp(26px, 3.6vw, 38px); line-height: 1.2;
}
h3 { margin: 0 0 10px; font-size: 18px; font-weight: 600; letter-spacing: .01em; }
.prose p { margin: 0 0 18px; color: var(--ink-soft); }
.prose p:last-child { margin-bottom: 0; }

.two-col { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; }

/* about photo */
.photo-frame { position: relative; margin: 0; }
.photo-frame img { border-radius: var(--r); border: 1px solid var(--rule); }
.photo-frame::after {
  content: ""; position: absolute; inset: 14px -14px -14px 14px;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); border-radius: var(--r);
  pointer-events: none; z-index: -1;
}
.badge-est {
  /* sits on the photo, which is dark in both themes - stays champagne literally */
  position: absolute; left: 18px; bottom: 18px;
  background: rgba(10,10,11,.85); backdrop-filter: blur(6px);
  border: 1px solid rgba(232,208,184,.4); border-radius: var(--r);
  padding: 9px 14px; font-size: 12.5px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--gold);
}

.grid { list-style: none; margin: 34px 0 0; padding: 0; display: grid; gap: 20px; }
.cards { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--card); border: 1px solid var(--rule);
  border-radius: var(--r); padding: 30px 26px; position: relative; overflow: hidden;
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
}
.card::before {
  content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent 70%);
  transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease);
}
.card:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--accent) 45%, transparent); box-shadow: 0 18px 40px rgba(0,0,0,.45); }
.card:hover::before { transform: scaleX(1); }
.card p { margin: 0; color: var(--ink-soft); font-size: 15.5px; }
.card-ic {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; margin-bottom: 18px;
  color: var(--accent); font-size: 22px;
  background: color-mix(in srgb, var(--accent) 7%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
  transition: background .3s, transform .3s var(--ease);
}
.card:hover .card-ic { background: color-mix(in srgb, var(--accent) 16%, transparent); transform: rotate(-6deg) scale(1.06); }

.chips { grid-template-columns: repeat(3, 1fr); gap: 12px; }
.chips li {
  border: 1px solid var(--rule); border-radius: var(--r);
  padding: 16px 18px; font-size: 15px; background: var(--card);
  display: flex; align-items: center; gap: 12px;
  transition: border-color .25s, transform .25s var(--ease);
}
.chips li:hover { border-color: color-mix(in srgb, var(--accent) 45%, transparent); transform: translateX(4px); }
.chips .ic { color: var(--accent); font-size: 17px; flex: none; }

/* ---------- photo statement band ---------- */
/* the statement band is a dark photograph in both themes - its colors are literal */
.statement { position: relative; overflow: hidden; padding: 130px 0; background: #0A0A0B; }
.statement-bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: .5;
}
.statement::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, var(--bg) 0%, transparent 34%, transparent 66%, var(--bg) 100%);
}
.statement .wrap { position: relative; }
.statement-line {
  margin: 0; max-width: 30ch; font-family: var(--serif);
  font-size: clamp(24px, 3.4vw, 36px); line-height: 1.35; color: #EDEAE5;
  text-shadow: 0 2px 30px rgba(0,0,0,.8);
}

/* ---------- why ---------- */
.why { grid-template-columns: repeat(3, 1fr); gap: 34px; }
.why li { border-top: 2px solid var(--accent); padding-top: 24px; }
.why-ic { display: inline-flex; color: var(--accent); font-size: 26px; margin-bottom: 14px; }
.why p { margin: 0; color: var(--ink-soft); font-size: 15.5px; }

/* ---------- mid CTA ---------- */
.midcta { background: linear-gradient(180deg, var(--bg-alt), var(--bg)); border-top: 1px solid var(--rule); }
.midcta-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  flex-wrap: wrap; padding-top: 52px; padding-bottom: 52px;
}
.midcta-line { margin: 0; font-family: var(--serif); font-size: clamp(20px, 2.6vw, 27px); }

/* ---------- partners marquee ---------- */
.marquee { overflow: hidden; margin-top: 38px; border-block: 1px solid var(--rule); padding: 26px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track {
  display: flex; align-items: center; gap: 54px; width: max-content;
  animation: slide 26s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }
.marquee-track span {
  font-family: var(--serif); font-size: 26px; color: var(--accent);
  letter-spacing: .05em; white-space: nowrap;
}
.marquee-track b { color: var(--rule); font-size: 13px; }
.note { margin: 20px 0 0; font-size: 13.5px; color: var(--ink-soft); }

.trusted-line {
  margin: 0; font-family: var(--serif); font-size: clamp(19px, 2.6vw, 27px); line-height: 1.5;
}
.trusted-line b { color: var(--accent); font-weight: 400; padding: 0 6px; }

/* ---------- contact ---------- */
.contact-list { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 12px; align-items: baseline; color: var(--ink-soft); font-size: 16px; }
.contact-list .ic { color: var(--accent); flex: none; }
.contact-list a { color: var(--accent); text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }

.form {
  background: var(--card); border: 1px solid var(--rule);
  border-radius: var(--r); padding: 30px;
}
.field { margin-bottom: 16px; }
.field label {
  display: block; margin-bottom: 7px; font-size: 12.5px;
  letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft);
}
.field input, .field textarea {
  width: 100%; padding: 12px 14px; font: inherit; font-size: 15.5px;
  color: var(--ink); background: var(--bg);
  border: 1px solid var(--rule); border-radius: var(--r);
  transition: border-color .2s;
}
.field input:focus, .field textarea:focus {
  outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent;
}
.field textarea { resize: vertical; }
.form .btn { margin-top: 6px; }
.form-note { margin: 14px 0 0; font-size: 12.5px; color: var(--ink-soft); }

/* ---------- footer ---------- */
.site-foot { border-top: 1px solid var(--rule); padding: 46px 0; }
.foot-inner { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.foot-logo { width: 150px; height: auto; padding: 12px; border-radius: 3px; background: var(--logo-pad); }
.foot-legal { margin: 14px 0 0; font-size: 13.5px; color: var(--ink-soft); line-height: 1.7; }
.foot-copy { margin: 0; font-size: 13px; color: var(--ink-soft); }

/* ---------- floating WhatsApp ---------- */
.fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 50;
  width: 58px; height: 58px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent); color: var(--accent-ink); font-size: 26px;
  box-shadow: 0 10px 30px rgba(0,0,0,.5);
  transition: transform .2s var(--ease);
}
.fab:hover { transform: scale(1.08); }
.fab-ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--accent) 70%, transparent);
  animation: ring 2.6s ease-out infinite;
}
@keyframes ring {
  0% { transform: scale(1); opacity: .8; }
  100% { transform: scale(1.7); opacity: 0; }
}

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .two-col { grid-template-columns: 1fr; gap: 38px; }
  .cards, .why { grid-template-columns: repeat(2, 1fr); }
  .chips { grid-template-columns: repeat(2, 1fr); }
  .stats-inner { grid-template-columns: repeat(2, 1fr); gap: 28px 12px; }
  .hero-art svg { transform: translateX(34%); opacity: .5; }
  .photo-frame::after { display: none; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .band { padding: 66px 0; }
  .hero { padding: 84px 0 66px; }
  .nav { gap: 14px; }
  .nav a:not(.nav-cta) { display: none; }
  .brand-word { font-size: 16px; }
  .cards, .why, .chips { grid-template-columns: 1fr; }
  .why li { padding-top: 18px; }
  .form { padding: 22px; }
  .foot-inner { align-items: flex-start; }
  .statement { padding: 92px 0; }
  .midcta-inner { justify-content: center; text-align: center; }
}

@media (max-width: 460px) {
  :root { --pad: 18px; }
  .btn { width: 100%; justify-content: center; }
  .cta-row { gap: 10px; }
  .hero-art { display: none; }
  .hero-glow { display: none; }
  .fab { right: 16px; bottom: 16px; width: 54px; height: 54px; }
}

/* ---------- reduced motion: kill everything ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rv, .ld { opacity: 1 !important; transform: none !important; }
  .hx { stroke-dashoffset: 0 !important; }
  .marquee-track { transform: none; }
}

/* ---------- REVIEW ONLY: theme comparison toggle (remove after the client picks) ---------- */
.theme-toggle {
  position: fixed; left: 22px; bottom: 22px; z-index: 50;
  display: flex; border: 1px solid var(--rule); border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(8px);
  overflow: hidden;
}
.theme-toggle button {
  border: 0; background: transparent; color: var(--ink-soft);
  font: 600 12px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase;
  padding: 11px 16px; cursor: pointer;
}
.theme-toggle button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
@media (max-width: 460px) { .theme-toggle { left: 12px; bottom: 12px; } }
