/* Shkirap — base styles */
:root {
  --bg: oklch(0.97 0.005 85);
  --bg-deep: oklch(0.94 0.006 85);
  --ink: oklch(0.18 0.01 60);
  --ink-soft: oklch(0.38 0.01 60);
  --ink-faint: oklch(0.62 0.008 60);
  --rule: oklch(0.85 0.008 60);
  --accent: oklch(0.45 0.18 255);
  --accent-soft: oklch(0.45 0.18 255 / 0.12);
  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Inter Tight", "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

[data-theme="dark"] {
  --bg: oklch(0.16 0.008 60);
  --bg-deep: oklch(0.13 0.008 60);
  --ink: oklch(0.96 0.005 85);
  --ink-soft: oklch(0.78 0.008 60);
  --ink-faint: oklch(0.52 0.008 60);
  --rule: oklch(0.32 0.008 60);
  --accent-soft: oklch(0.65 0.18 255 / 0.15);
  --accent: oklch(0.72 0.16 255);
}

[data-accent="gold"] {
  --accent: oklch(0.65 0.13 80);
  --accent-soft: oklch(0.65 0.13 80 / 0.14);
}
[data-accent="ember"] {
  --accent: oklch(0.58 0.17 35);
  --accent-soft: oklch(0.58 0.17 35 / 0.14);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
html { scroll-behavior: auto; }
body { font-size: 17px; line-height: 1.55; letter-spacing: -0.005em; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

/* Typography */
.serif { font-family: var(--serif); font-weight: 400; letter-spacing: -0.02em; }
.sans  { font-family: var(--sans); }
.mono  { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }

.display {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(56px, 9.5vw, 168px);
  line-height: 0.92;
  letter-spacing: -0.035em;
}
.italic { font-style: italic; }

/* Layout */
.wrap { max-width: 1440px; margin: 0 auto; padding: 0 48px; }
@media (max-width: 720px) { .wrap { padding: 0 24px; } }

/* Top nav */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 48px;
  mix-blend-mode: difference;
  color: white;
  pointer-events: none;
}
.nav > * { pointer-events: auto; }
.nav .brand {
  font-family: var(--serif); font-size: 22px; letter-spacing: -0.02em;
}
.nav .brand .dot { color: var(--accent); }
.nav .links { display: flex; gap: 28px; font-family: var(--sans); font-size: 13px; letter-spacing: 0.01em; opacity: 0.85; }
.nav .links a { transition: opacity 0.3s ease; }
.nav .links a:hover { opacity: 0.5; }
@media (max-width: 720px) { .nav { padding: 18px 24px; } .nav .links { display: none; } }

/* Reveal primitive */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 900ms cubic-bezier(.2,.7,.2,1), transform 900ms cubic-bezier(.2,.7,.2,1);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 80ms; }
.reveal-delay-2 { transition-delay: 160ms; }
.reveal-delay-3 { transition-delay: 240ms; }
.reveal-delay-4 { transition-delay: 320ms; }
.reveal-delay-5 { transition-delay: 400ms; }

/* Word reveal — opacity + translate stagger, no clipping (safe under screenshot tools) */
.word-mask {
  display: inline-block;
  vertical-align: baseline;
}
.word-mask > span {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.6em);
  transition: opacity 800ms cubic-bezier(.2,.7,.2,1), transform 900ms cubic-bezier(.2,.7,.2,1);
  will-change: opacity, transform;
}
.in .word-mask > span,
.word-mask.in > span { opacity: 1; transform: none; }

/* Hero is above-the-fold — always render at full opacity, no transition gating.
   Reveal animations are reserved for sections below the fold (IntersectionObserver). */
.hero .reveal,
.hero .word-mask > span {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}
/* Stagger words within a heading by source order */
.word-mask:nth-of-type(1) > span { transition-delay: 0ms; }
.word-mask:nth-of-type(2) > span { transition-delay: 90ms; }
.word-mask:nth-of-type(3) > span { transition-delay: 180ms; }
.word-mask:nth-of-type(4) > span { transition-delay: 270ms; }
.word-mask:nth-of-type(5) > span { transition-delay: 360ms; }
.word-mask:nth-of-type(6) > span { transition-delay: 450ms; }

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 48px 64px;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-bg .glyph {
  position: absolute;
  top: 8%; right: -8%;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(360px, 60vw, 980px);
  line-height: 0.8;
  background: linear-gradient(160deg,
    oklch(0.92 0.005 85) 0%,
    oklch(0.86 0.06 82) 45%,
    oklch(0.78 0.10 80) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  user-select: none;
  will-change: transform;
}
.hero-bg .wash {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 70% 40%, oklch(0.78 0.18 82 / 0.18), transparent 55%),
    radial-gradient(ellipse at 30% 80%, oklch(0.65 0.15 75 / 0.10), transparent 60%);
  opacity: 0.85;
}
.hero-meta {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-top: 48px;
  gap: 48px;
}
.hero-meta .lede {
  max-width: 460px;
  font-size: 17px;
  color: var(--ink-soft);
  line-height: 1.5;
}
.hero-meta .meta-right { text-align: right; color: var(--ink-faint); }
.hero-meta .meta-right .row { display: block; }

.scroll-cue {
  position: absolute; left: 48px; bottom: 28px;
  display: flex; align-items: center; gap: 10px;
  color: var(--ink-faint);
}
.scroll-cue .line {
  display: block; width: 28px; height: 1px; background: currentColor;
  position: relative; overflow: hidden;
}
.scroll-cue .line::after {
  content: ""; position: absolute; inset: 0;
  background: var(--ink); transform: translateX(-100%);
  animation: cue 2.4s cubic-bezier(.5,0,.5,1) infinite;
}
@keyframes cue { 0% { transform: translateX(-100%); } 50% { transform: translateX(0); } 100% { transform: translateX(110%); } }
@media (max-width: 720px) { .scroll-cue { left: 24px; } .hero { padding: 0 24px 56px; } }

/* Section header */
.section { position: relative; padding: 160px 0; }
.section-eyebrow { display: flex; align-items: center; gap: 12px; color: var(--ink-faint); margin-bottom: 28px; }
.section-eyebrow .num { color: var(--accent); }
.section-eyebrow .rule { flex: none; width: 48px; height: 1px; background: var(--ink-faint); opacity: 0.5; }

/* Credibility bar */
.creds {
  padding: 96px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.creds-line {
  display: flex; align-items: center; flex-wrap: wrap; gap: 18px 28px;
  font-family: var(--serif);
  font-size: clamp(28px, 4.2vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--ink-soft);
}
.creds-line .step {
  opacity: 0; transform: translateY(20px);
  transition: opacity 700ms ease-out, transform 700ms ease-out;
}
.creds-line.in .step { opacity: 1; transform: none; }
.creds-line .step:nth-child(1) { transition-delay: 0ms; }
.creds-line .step:nth-child(2) { transition-delay: 100ms; }
.creds-line .step:nth-child(3) { transition-delay: 200ms; }
.creds-line .step:nth-child(4) { transition-delay: 300ms; }
.creds-line .step:nth-child(5) { transition-delay: 400ms; }
.creds-line .step:nth-child(6) { transition-delay: 500ms; }
.creds-line .step:nth-child(7) { transition-delay: 600ms; }
.creds-line .step:nth-child(8) { transition-delay: 700ms; }
.creds-line .step:nth-child(9) { transition-delay: 800ms; }
.creds-line .arrow { color: var(--ink-faint); font-style: italic; font-size: 0.7em; }
.creds-line .name { font-style: italic; }
.creds-line .role { color: var(--ink); font-style: normal; }
.creds-caption { margin-top: 24px; color: var(--ink-faint); max-width: 480px; }

/* Marquee logos */
.marquee-wrap { padding: 120px 0; overflow: hidden; }
.marquee-head { display: flex; justify-content: space-between; align-items: baseline; padding: 0 48px; margin-bottom: 56px; }
.marquee-head h3 { font-family: var(--serif); font-size: clamp(28px, 3.4vw, 44px); letter-spacing: -0.02em; max-width: 620px; line-height: 1.05; }
.marquee-head .count { color: var(--ink-faint); }
.marquee {
  display: flex;
  gap: 0;
  width: max-content;
  animation: marqueeL 60s linear infinite;
  padding: 18px 0;
}
.marquee.right { animation: marqueeR 70s linear infinite; }
.marquee:hover { animation-play-state: paused; }
.logo-cell {
  flex: none;
  display: flex; align-items: center; justify-content: center;
  height: 64px;
  padding: 0 56px;
  border-right: 1px solid var(--rule);
  font-family: var(--sans);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--ink-faint);
  transition: color 250ms ease-out, transform 250ms ease-out;
  white-space: nowrap;
  cursor: default;
}
.logo-cell:hover { color: var(--accent); transform: translateY(-2px); }
.logo-cell .dot { color: var(--ink-faint); margin-left: 2px; transition: color 250ms ease-out; }
.logo-cell:hover .dot { color: var(--accent); }
.logo-cell .acquired { font-size: 11px; color: var(--ink-faint); margin-left: 10px; font-family: var(--mono); letter-spacing: 0.06em; text-transform: uppercase; }

@keyframes marqueeL {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes marqueeR {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}

/* Pillars */
.pillars { display: flex; flex-direction: column; }
.pillar {
  display: grid;
  grid-template-columns: 180px 1fr 1fr;
  gap: 64px;
  padding: 64px 0;
  border-top: 1px solid var(--rule);
  align-items: start;
}
.pillar:last-child { border-bottom: 1px solid var(--rule); }
.pillar .num {
  font-family: var(--serif);
  font-size: 72px;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1;
  font-feature-settings: "lnum";
}
.pillar .num .dot { color: var(--accent); }
.pillar h3 {
  font-family: var(--serif);
  font-size: clamp(28px, 3.2vw, 42px);
  letter-spacing: -0.02em;
  line-height: 1.05;
  font-weight: 400;
}
.pillar p {
  color: var(--ink-soft);
  max-width: 520px;
  font-size: 17px;
  line-height: 1.55;
}
.pillar .body ul { list-style: none; margin-top: 20px; display: flex; flex-direction: column; gap: 8px; color: var(--ink-faint); font-size: 14px; }
.pillar .body li { padding-left: 18px; position: relative; }
.pillar .body li::before { content: "—"; position: absolute; left: 0; color: var(--ink-faint); }
@media (max-width: 980px) {
  .pillar { grid-template-columns: 1fr; gap: 20px; padding: 48px 0; }
  .pillar .num { font-size: 56px; }
}

/* Manifesto */
.manifesto { padding: 200px 0; position: relative; }
.manifesto-quote {
  font-family: var(--serif);
  font-size: clamp(36px, 5vw, 80px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  max-width: 1180px;
}
.manifesto-quote em { font-style: italic; color: var(--accent); }
.manifesto-attr { margin-top: 64px; display: flex; justify-content: space-between; align-items: end; gap: 32px; color: var(--ink-faint); }
.manifesto-attr .signed { font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--ink); }

/* Engagement */
.eng-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
  max-width: 1100px;
  margin: 0 auto;
}
.eng-card {
  padding: 64px 56px 72px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  display: flex; flex-direction: column; gap: 24px;
  position: relative;
  min-height: 420px;
  transition: background 320ms ease-out;
}
.eng-card:last-child { border-right: none; }
.eng-card:hover { background: var(--bg-deep); }
.eng-card .index { color: var(--ink-faint); }
.eng-card h4 { font-family: var(--serif); font-size: 32px; letter-spacing: -0.02em; line-height: 1.05; font-weight: 400; }
.eng-card p { color: var(--ink-soft); font-size: 15px; line-height: 1.55; }
.eng-card .meta { margin-top: auto; padding-top: 28px; display: flex; gap: 24px; color: var(--ink-faint); font-size: 12px; font-family: var(--mono); letter-spacing: 0.08em; text-transform: uppercase; }
.eng-card .meta b { color: var(--ink); font-weight: 500; }
@media (max-width: 980px) {
  .eng-grid { grid-template-columns: 1fr; }
  .eng-card { border-right: none; }
}

/* Contact */
.contact {
  padding: 200px 0 80px;
  text-align: left;
}
.contact .ask {
  font-family: var(--serif);
  font-size: clamp(48px, 7vw, 120px);
  line-height: 0.95;
  letter-spacing: -0.03em;
}
.contact .ask em { font-style: italic; }
.contact-cta {
  margin-top: 48px;
  display: inline-flex; align-items: center; gap: 14px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--ink);
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 40px);
  letter-spacing: -0.02em;
  position: relative;
  transition: color 300ms ease-out;
}
.contact-cta:hover { color: var(--accent); border-bottom-color: var(--accent); }
.contact-cta .arrow { display: inline-block; transition: transform 400ms cubic-bezier(.2,.7,.2,1); }
.contact-cta:hover .arrow { transform: translateX(8px); }
.contact-meta { margin-top: 96px; display: flex; justify-content: space-between; gap: 32px; color: var(--ink-faint); font-size: 13px; }
.contact-meta .alt { display: flex; gap: 32px; }

/* Footer */
.footer {
  border-top: 1px solid var(--rule);
  padding: 32px 48px;
  display: flex; justify-content: space-between; align-items: center;
  color: var(--ink-faint); font-size: 12px;
  font-family: var(--mono); letter-spacing: 0.08em; text-transform: uppercase;
}
@media (max-width: 720px) { .footer { padding: 24px; flex-direction: column; gap: 12px; align-items: flex-start; } }

/* Cursor dot */
.cursor {
  position: fixed; top: 0; left: 0;
  width: 12px; height: 12px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 30%,
      oklch(0.96 0.12 92) 0%,
      oklch(0.86 0.18 84) 38%,
      oklch(0.62 0.18 72) 100%);
  box-shadow:
    0 0 14px oklch(0.82 0.18 82 / 0.55),
    0 0 36px oklch(0.78 0.18 80 / 0.30),
    inset 0 0 4px oklch(0.98 0.10 92 / 0.7);
  pointer-events: none;
  z-index: 100;
  transform: translate(-50%, -50%);
  transition: width 240ms ease-out, height 240ms ease-out, opacity 240ms ease-out, box-shadow 240ms ease-out;
  opacity: 0;
  animation: cursorPulse 2.4s ease-in-out infinite;
}
.cursor.active { opacity: 1; }
.cursor.hover {
  width: 44px; height: 44px;
  box-shadow:
    0 0 28px oklch(0.82 0.18 82 / 0.65),
    0 0 64px oklch(0.78 0.18 80 / 0.35),
    inset 0 0 8px oklch(0.98 0.10 92 / 0.7);
}
@keyframes cursorPulse {
  0%, 100% { filter: brightness(1)    saturate(1); }
  50%      { filter: brightness(1.18) saturate(1.15); }
}
@media (hover: none) { .cursor { display: none; } }

/* Parallax holders */
.parallax { will-change: transform; }

/* Selection */
::selection { background: var(--accent); color: var(--bg); }

/* Shimmering gold treatment — animated gradient sweep across gold tones */
.gold-shimmer {
  display: inline-block;
  background: linear-gradient(
    100deg,
    oklch(0.50 0.17 68) 0%,
    oklch(0.72 0.20 80) 18%,
    oklch(0.92 0.18 88) 36%,
    oklch(0.78 0.20 82) 50%,
    oklch(0.55 0.18 70) 68%,
    oklch(0.86 0.19 86) 84%,
    oklch(0.62 0.18 74) 100%
  );
  background-size: 240% 100%;
  background-position: 0% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: goldShimmer 4.2s cubic-bezier(.5, 0, .5, 1) infinite;
  text-shadow: 0 0 30px oklch(0.78 0.18 82 / 0.18);
  padding-right: 0.04em;
}
@keyframes goldShimmer {
  0%   { background-position:   0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position:   0% 50%; }
}
@media (prefers-reduced-motion: reduce) {
  .gold-shimmer { animation: none; background-position: 30% 50%; }
}
