:root {
  --bg: #07080a;
  --bg-soft: #0d0f13;
  --line: rgba(255, 255, 255, 0.08);
  --ink: #f4f5f7;
  --ink-dim: #9aa1ad;
  --ink-faint: #5c6371;
  --accent: #c9a227;
  --accent-soft: rgba(201, 162, 39, 0.16);
  --radius: 12px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html, body { height: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

/* ---------- Background layers ---------- */

#field {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.spotlight {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(
    340px circle at var(--mx, 50%) var(--my, 50%),
    rgba(201, 162, 39, 0.10),
    transparent 65%
  );
  transition: opacity 0.6s var(--ease);
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.035;
  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.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Layout: the page is split in half ---------- */

.shell {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100svh;
}

.pane {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(1.75rem, 3.5vw, 3.5rem);
}

.pane--type {
  justify-content: space-between;
  gap: 2rem;
  border-right: 1px solid var(--line);
  background: linear-gradient(120deg, rgba(13, 15, 19, 0.82), rgba(7, 8, 10, 0.42));
  backdrop-filter: blur(2px);
}

.pane--visual {
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* ---------- Brand ---------- */

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  color: var(--accent);
}

.brand__mark svg { width: 100%; height: 100%; }

.brand__name {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.brand__eg {
  margin-left: 0.4em;
  color: var(--accent);
}

/* ---------- Statement ---------- */

.statement { max-width: 34rem; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1.25rem;
  padding: 0.35rem 0.8rem 0.35rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--ink-dim);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.pulse {
  position: relative;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.pulse::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s var(--ease) infinite;
}

@keyframes pulse {
  0%   { transform: scale(1);   opacity: 0.7; }
  100% { transform: scale(3.4); opacity: 0; }
}

.headline {
  margin: 0 0 1.5rem;
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  font-size: clamp(3.2rem, 7.2vw, 7rem);
  line-height: 0.94;
  letter-spacing: -0.02em;
}

.headline__line { display: block; }

.headline__line--accent {
  font-style: italic;
  color: var(--accent);
}

/* per-character reveal, driven by main.js */
.char {
  display: inline-block;
  transform: translateY(0.9em) rotate(2deg);
  opacity: 0;
  animation: charIn 0.9s var(--ease) forwards;
  animation-delay: var(--d, 0ms);
}

@keyframes charIn {
  to { transform: translateY(0) rotate(0); opacity: 1; }
}

.lede {
  margin: 0 0 2rem;
  max-width: 30rem;
  color: var(--ink-dim);
  font-size: clamp(0.95rem, 1.1vw, 1.05rem);
}

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

.foot {
  display: flex;
  align-items: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--ink-faint);
  font-size: 0.78rem;
}

/* ---------- Right pane: the orb ---------- */

.orb {
  position: relative;
  display: grid;
  place-items: center;
  width: min(30vw, 26rem);
  aspect-ratio: 1;
  transform: translate3d(var(--tx, 0px), var(--ty, 0px), 0);
  transition: transform 0.9s var(--ease);
}

.orb__ring {
  position: absolute;
  border: 1px solid var(--line);
  border-radius: 50%;
  inset: 0;
}

.orb__ring--1 {
  border-top-color: var(--accent);
  animation: spin 18s linear infinite;
}

.orb__ring--2 {
  inset: 12%;
  border-left-color: rgba(201, 162, 39, 0.5);
  animation: spin 26s linear infinite reverse;
}

.orb__ring--3 {
  inset: 24%;
  border-bottom-color: rgba(255, 255, 255, 0.3);
  animation: spin 34s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.orb__core {
  width: 34%;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, #f6e2a0, var(--accent) 42%, #6d5610 78%, #241c05);
  box-shadow: 0 0 60px rgba(201, 162, 39, 0.35);
  animation: breathe 6s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.06); }
}

.orb__glow {
  position: absolute;
  inset: -30%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 162, 39, 0.16), transparent 62%);
  filter: blur(24px);
  pointer-events: none;
}

/* ---------- Ticker ---------- */

.ticker {
  position: absolute;
  bottom: clamp(1.75rem, 3.5vw, 3.5rem);
  left: 0;
  right: 0;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.ticker__track {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  width: max-content;
  color: var(--ink-faint);
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  animation: marquee 28s linear infinite;
}

.ticker__track i {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.6;
}

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

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

[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  animation: reveal 0.8s var(--ease) forwards;
  animation-delay: var(--rd, 0ms);
}

@keyframes reveal {
  to { opacity: 1; transform: none; }
}

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

@media (max-width: 900px) {
  body { overflow-y: auto; }

  .shell { grid-template-columns: 1fr; }

  .pane--type {
    order: 2;
    border-right: 0;
    min-height: 100svh;
    justify-content: space-between;
  }

  .pane--visual {
    order: 1;
    min-height: 38svh;
    border-bottom: 1px solid var(--line);
  }

  .orb { width: min(60vw, 15rem); }

  .ticker { bottom: 1rem; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  [data-reveal], .char { opacity: 1; transform: none; }
  .spotlight { display: none; }
}
