/* ============================================================
   Luceris — provisional teaser site
   Brand: prism refracting scattered light into one focused beam.
   Palette sampled from the brand logo.
   ============================================================ */

:root {
  /* Brand colours */
  --gold:        #EFC817;   /* brand gold — exact value from the logo vector */
  --gold-bright: #FBD738;   /* hover / highlight */
  --gold-deep:   #C9A50E;
  --paper:       #FFFFFF;   /* the prism / wordmark in the dark logo variant */

  /* Charcoal foundation (brand "80% black", enriched for depth) */
  --bg:          #1E201D;
  --bg-elev:     #262824;
  --ink:         #2D2E2D;   /* brand charcoal */

  /* Text */
  --text:        #ECEBE4;
  --muted:       #9EA09A;
  --faint:       #6E706A;
  --line:        rgba(245, 244, 239, 0.10);

  --maxw: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------------- reset ---------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background:
    radial-gradient(1200px 700px at 50% -10%, #2a2c27 0%, transparent 60%),
    radial-gradient(900px 900px at 85% 120%, #24261f 0%, transparent 55%),
    var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* subtle film grain over everything */
.grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  opacity: 0.035; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  padding: clamp(1rem, 2.4vw, 1.5rem) clamp(1.25rem, 4vw, 3rem);
  transition: background 0.4s var(--ease), backdrop-filter 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(20, 21, 19, 0.72);
  backdrop-filter: blur(12px) saturate(120%);
  -webkit-backdrop-filter: blur(12px) saturate(120%);
  border-bottom-color: var(--line);
}

.brand {
  display: inline-flex; align-items: center;
  text-decoration: none; color: var(--text);
}

.site-nav { display: flex; align-items: center; gap: 1.6rem; }
.nav-anchor {
  font-size: 0.9rem; font-weight: 500; color: var(--muted); text-decoration: none;
  transition: color 0.3s;
}
.nav-anchor:hover { color: var(--gold); }
.nav-link {
  font-size: 0.9rem; font-weight: 500; letter-spacing: 0.01em;
  text-decoration: none; color: var(--text);
  padding: 0.5rem 0.9rem; border-radius: 999px;
  border: 1px solid var(--line);
  transition: border-color 0.3s, color 0.3s, background 0.3s;
}
.nav-link:hover { border-color: var(--gold); color: var(--gold); }

/* header logo (real vector, from the brand PDF) */
.brand__logo { height: 30px; width: auto; display: block; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; z-index: 2;
  flex: 1;
  display: flex; align-items: center; justify-content: center;
  padding: clamp(2rem, 6vh, 5rem) clamp(1.25rem, 4vw, 3rem) clamp(2.5rem, 6vh, 4rem);
  overflow: hidden;
}

.hero__ambient {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: -1; pointer-events: none;
  opacity: 0.5;
  -webkit-mask-image: radial-gradient(120% 90% at 40% 50%, #000 0%, transparent 78%);
          mask-image: radial-gradient(120% 90% at 40% 50%, #000 0%, transparent 78%);
}
.hero__ambient-rays polygon { fill: url(#ambientRay); opacity: 0.10; }

.hero__inner {
  max-width: 820px;
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
}

.kicker {
  font-size: clamp(0.7rem, 1.4vw, 0.82rem);
  font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: clamp(1.6rem, 4vh, 2.4rem);
}

.hero-logo {
  width: clamp(280px, 44vw, 468px);
  height: auto; display: block; overflow: visible;
  margin-bottom: clamp(1.8rem, 4.5vh, 2.8rem);
}

.headline {
  font-size: clamp(2rem, 5.2vw, 3.6rem);
  line-height: 1.05; font-weight: 600; letter-spacing: -0.02em;
  color: var(--text);
  max-width: 16ch;
}
.headline::after {
  content: ""; display: block;
  width: 54px; height: 3px; margin: clamp(1.1rem, 2.6vh, 1.6rem) auto 0;
  background: var(--gold); border-radius: 2px;
}

.subhead {
  margin-top: clamp(1.1rem, 2.6vh, 1.6rem);
  font-size: clamp(1.05rem, 2.1vw, 1.32rem);
  color: var(--text); font-weight: 400;
  max-width: 44ch; text-wrap: balance;
}

.lede {
  margin-top: clamp(0.9rem, 2vh, 1.25rem);
  font-size: clamp(0.98rem, 1.7vw, 1.06rem);
  color: var(--muted);
  max-width: 52ch; text-wrap: pretty;
}

.cta {
  margin-top: clamp(1.8rem, 4vh, 2.6rem);
  display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap;
}
.hero .cta { justify-content: center; }
.cta--center { justify-content: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: inherit; font-size: 1rem; font-weight: 600;
  text-decoration: none; cursor: pointer;
  padding: 0.92rem 2.1rem; border-radius: 999px; border: 1px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.3s var(--ease), background 0.3s;
}
.btn--primary {
  background: var(--gold); color: #24251f;
  box-shadow: 0 10px 30px -12px rgba(239, 200, 23, 0.6);
}
.btn--primary:hover {
  background: var(--gold-bright);
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -14px rgba(239, 200, 23, 0.75);
}
.btn--primary:active { transform: translateY(0); }

.cta__ghost {
  font-size: 0.95rem; font-weight: 500; color: var(--text); text-decoration: none;
  padding-bottom: 2px; border-bottom: 1px solid var(--line);
  transition: color 0.3s, border-color 0.3s;
}
.cta__ghost:hover { color: var(--gold); border-color: var(--gold); }
.cta__mail {
  font-size: 0.98rem; font-weight: 500; color: var(--gold); text-decoration: none;
  border-bottom: 1px solid transparent; transition: border-color 0.3s;
}
.cta__mail:hover { border-color: var(--gold); }

/* ============================================================
   SECTIONS (shared)
   ============================================================ */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 3rem); }

.section {
  position: relative; z-index: 2;
  padding-block: clamp(4rem, 10vh, 7.5rem);
  scroll-margin-top: 90px;
}
.section--alt {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.015), rgba(255,255,255,0.015)),
    rgba(0,0,0,0.18);
  border-block: 1px solid var(--line);
}

.eyebrow {
  font-size: 0.76rem; font-weight: 600; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1rem;
}
.section__head { max-width: 40ch; margin-bottom: clamp(2.4rem, 5vh, 3.5rem); }
.section__title {
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  line-height: 1.14; font-weight: 600; letter-spacing: -0.015em; color: var(--text);
  text-wrap: balance;
}

/* ---- Focus cards ---- */
.cards {
  display: grid; gap: clamp(1rem, 2vw, 1.6rem);
  grid-template-columns: repeat(3, 1fr);
}
.card {
  position: relative;
  padding: clamp(1.6rem, 2.6vw, 2.2rem);
  border: 1px solid var(--line); border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.008));
  overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), background 0.4s var(--ease);
}
.card::before {
  content: ""; position: absolute; left: 0; top: 0; height: 100%; width: 3px;
  background: linear-gradient(180deg, var(--gold), transparent);
  opacity: 0; transition: opacity 0.4s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(239, 200, 23, 0.35);
  background: linear-gradient(180deg, rgba(239,200,23,0.06), rgba(255,255,255,0.01));
}
.card:hover::before { opacity: 1; }
.card__no {
  display: inline-block; font-family: "Poppins", sans-serif; font-weight: 600;
  font-size: 0.9rem; letter-spacing: 0.08em; color: var(--gold);
  margin-bottom: 1.1rem;
}
.card__title { font-size: 1.2rem; font-weight: 600; color: var(--text); margin-bottom: 0.6rem; }
.card__body { font-size: 0.98rem; color: var(--muted); }

/* ---- Approach ---- */
.approach {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.approach__body {
  margin-top: 1.4rem; font-size: clamp(1.02rem, 1.6vw, 1.14rem);
  color: var(--muted); max-width: 52ch;
}
.creds { list-style: none; padding: 0; display: grid; gap: 0; }
.creds li { padding: 1.15rem 0; border-top: 1px solid var(--line); }
.creds li:last-child { border-bottom: 1px solid var(--line); }
.creds__k {
  display: block; font-family: "Poppins", sans-serif; font-weight: 600;
  font-size: 1.02rem; color: var(--paper); letter-spacing: -0.005em;
}
.creds__v { display: block; margin-top: 0.2rem; font-size: 0.9rem; color: var(--faint); }

/* ---- CTA band ---- */
.cta-band { text-align: center; overflow: hidden; }
.cta-band::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(600px 300px at 50% 40%, rgba(239,200,23,0.10), transparent 70%);
}
.cta-band__inner { display: flex; flex-direction: column; align-items: center; }
.cta-band__title {
  font-size: clamp(1.7rem, 4vw, 2.7rem); font-weight: 600; letter-spacing: -0.02em;
  color: var(--text); max-width: 18ch; text-wrap: balance;
  margin-bottom: 2rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  gap: 1rem;
  padding: clamp(1.1rem, 2.4vw, 1.4rem) clamp(1.25rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
  font-size: 0.84rem; color: var(--faint);
}
.foot--left { justify-self: start; }
.foot--center { justify-self: center; text-align: center; color: var(--muted); }
.foot--center em { color: var(--gold); font-style: italic; }
.foot--right { justify-self: end; display: inline-flex; align-items: center; gap: 0.55rem; }
.foot--right a { color: var(--muted); text-decoration: none; transition: color 0.3s; }
.foot--right a:hover { color: var(--gold); }
.dot { color: var(--faint); }

.linklike {
  background: none; border: 0; padding: 0; cursor: pointer;
  font: inherit; color: var(--muted); text-decoration: none;
  transition: color 0.3s;
}
.linklike:hover { color: var(--gold); }

/* ============================================================
   IMPRINT dialog
   ============================================================ */
.imprint {
  width: min(560px, calc(100vw - 2rem));
  margin: auto;                 /* restore native modal centering (our reset zeroes margins) */
  border: 1px solid var(--line); border-radius: 16px;
  background: var(--bg-elev); color: var(--text);
  padding: 0; box-shadow: 0 40px 120px -30px rgba(0, 0, 0, 0.8);
}
.imprint::backdrop { background: rgba(10, 11, 9, 0.6); backdrop-filter: blur(4px); }
.imprint[open] { animation: pop 0.3s var(--ease); }
.imprint__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.4rem 1.6rem 1rem;
  border-bottom: 1px solid var(--line);
}
.imprint__head h2 { font-family: "Poppins", sans-serif; font-size: 1.15rem; font-weight: 600; }
.imprint__head h2 span { color: var(--faint); font-weight: 500; }
.imprint__close {
  background: none; border: 0; color: var(--muted); cursor: pointer;
  font-size: 1.6rem; line-height: 1; padding: 0.1rem 0.4rem; border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}
.imprint__close:hover { color: var(--gold); background: rgba(255, 255, 255, 0.05); }
.imprint__body { padding: 1.3rem 1.6rem 1.6rem; font-size: 0.92rem; }
.imprint__note { color: var(--muted); margin-bottom: 1rem; }
.imprint dl {
  display: grid; grid-template-columns: minmax(120px, 34%) 1fr;
  gap: 0.55rem 1rem;
}
.imprint dt { color: var(--faint); font-size: 0.82rem; letter-spacing: 0.02em; }
.imprint dd { color: var(--text); }
.imprint dd a { color: var(--gold); text-decoration: none; }
.imprint__todo { margin-top: 1.2rem; font-size: 0.8rem; color: var(--gold-deep); }

/* ============================================================
   Entrance animation
   ============================================================ */
.reveal { opacity: 0; transform: translateY(16px); }
.is-ready .reveal { animation: reveal 0.9s var(--ease) forwards; }
.is-ready .reveal:nth-child(1) { animation-delay: 0.05s; }
.is-ready .reveal:nth-child(2) { animation-delay: 0.18s; }
.is-ready .reveal:nth-child(3) { animation-delay: 0.34s; }
.is-ready .reveal:nth-child(4) { animation-delay: 0.46s; }
.is-ready .reveal:nth-child(5) { animation-delay: 0.56s; }
.is-ready .reveal:nth-child(6) { animation-delay: 0.66s; }

@keyframes reveal { to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(0.98); } }

/* Scroll-triggered reveal for below-the-fold sections */
.rise { opacity: 0; transform: translateY(22px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.rise.in { opacity: 1; transform: none; }
.cards .card { transition: opacity 0.8s var(--ease), transform 0.8s var(--ease),
                           border-color 0.4s var(--ease), background 0.4s var(--ease); }
.cards .card.rise { transition-delay: calc(var(--d, 0) * 0.12s); }
.cards .card:nth-child(2) { --d: 1; }
.cards .card:nth-child(3) { --d: 2; }
.cards .card:hover { transition-delay: 0s; }

/* Subtle light-ray shimmer on the real logo */
.hero-logo .lx-ray {
  animation: shimmer 5.5s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.35s);
}
.hero-logo .lx-beam { animation: beamGlow 4s ease-in-out infinite; }

@keyframes shimmer {
  0%, 100% { opacity: 0.68; }
  45%      { opacity: 1; }
}
@keyframes beamGlow {
  0%, 100% { opacity: 0.9; }
  50%      { opacity: 1; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 920px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .approach { grid-template-columns: 1fr; gap: 2.5rem; }
  .approach__body { max-width: none; }
}
@media (max-width: 720px) {
  .site-footer { grid-template-columns: 1fr; justify-items: center; gap: 0.5rem; text-align: center; }
  .foot--left, .foot--right { justify-self: center; }
  .foot--center { order: -1; }
  .brand__word { font-size: 1.18rem; }
  .cards { grid-template-columns: 1fr; }
  .nav-anchor { display: none; }
}
@media (max-width: 420px) {
  .nav-link { padding: 0.45rem 0.75rem; font-size: 0.82rem; }
  .cta { gap: 1rem; }
}

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
