/* ═══════════════════════════════════════════════════════════════
   Nekapps — www.nekapps.com
   Type: Fraunces (display) · Inter (text) · IBM Plex Mono (accents)
   ═══════════════════════════════════════════════════════════════ */

/* ── Tokens ───────────────────────────────────────────────────── */
:root {
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-text: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "IBM Plex Mono", "SF Mono", Menlo, Consolas, monospace;

  --wrap: 1120px;
  --gutter: clamp(20px, 4vw, 40px);
  --radius: 14px;

  --ease-out: cubic-bezier(.22, 1, .36, 1);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0A0D12;
  --bg-alt: #0E1219;
  --bg-elev: #121724;
  --text: #EDEFF4;
  --text-2: #9AA3B5;
  --line: rgba(235, 240, 255, .09);
  --line-strong: rgba(235, 240, 255, .16);
  --accent: #2DE0BC;
  --accent-ink: #08101B;
  --accent-2: #FF7059;
  --grad: linear-gradient(92deg, #2DE0BC 0%, #4E9CFF 60%, #8F7BFF 100%);
  --aurora-a: rgba(45, 224, 188, .16);
  --aurora-b: rgba(78, 156, 255, .14);
  --aurora-c: rgba(143, 123, 255, .10);
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, .6);
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #FAF9F6;
  --bg-alt: #F2F1EC;
  --bg-elev: #FFFFFF;
  --text: #171A21;
  --text-2: #5B6272;
  --line: rgba(23, 26, 33, .10);
  --line-strong: rgba(23, 26, 33, .2);
  --accent: #0C9C82;
  --accent-ink: #FFFFFF;
  --accent-2: #E14B31;
  --grad: linear-gradient(92deg, #0C9C82 0%, #2467E8 60%, #6D50E0 100%);
  --aurora-a: rgba(12, 156, 130, .12);
  --aurora-b: rgba(36, 103, 232, .10);
  --aurora-c: rgba(109, 80, 224, .08);
  --shadow: 0 24px 60px -30px rgba(23, 26, 33, .25);
}

/* ── Reset & base ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-text);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color .35s, color .35s;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
ul { list-style: none; }

::selection { background: var(--accent); color: var(--accent-ink); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.mono {
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.skip-link {
  position: fixed; top: -60px; left: 16px; z-index: 200;
  padding: 10px 16px; border-radius: 8px;
  background: var(--accent); color: var(--accent-ink);
  font-weight: 600; text-decoration: none;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

/* Film grain — texture without images */
.grain {
  position: fixed; inset: -50%;
  z-index: 90;
  pointer-events: none;
  opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .04 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
:root[data-theme="light"] .grain { opacity: .35; filter: invert(1); }

/* ── Typography ───────────────────────────────────────────────── */
h1, h2, h3 { font-weight: 500; text-wrap: balance; }

h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -.015em;
}
h2 em { font-style: italic; color: var(--accent); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: .76rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

.section__lead {
  max-width: 560px;
  margin-top: 18px;
  font-size: 1.06rem;
  color: var(--text-2);
}

/* ── Buttons & links ──────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 26px;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font-weight: 600; font-size: .95rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform .25s var(--ease-out), background-color .25s, color .25s, box-shadow .25s;
}
.btn:hover {
  background: var(--accent);
  color: var(--accent-ink);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px -12px var(--accent);
}
.btn--sm { padding: 9px 18px; font-size: .86rem; }
.btn--lg { padding: 16px 34px; font-size: 1.02rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: .95rem;
  text-decoration: none;
  color: var(--text-2);
  transition: color .2s;
}
.link-arrow::after {
  content: "→";
  transition: transform .25s var(--ease-out);
}
.link-arrow:hover { color: var(--text); }
.link-arrow:hover::after { transform: translateX(5px); }

/* ── Nav ──────────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background-color .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.brand {
  display: flex; align-items: center; gap: 11px;
  text-decoration: none;
}
.brand__name {
  font-family: var(--font-display);
  font-size: 1.22rem; font-weight: 600;
  letter-spacing: -.01em;
}
.nav__links { display: flex; gap: 30px; }
.nav__links a {
  font-size: .9rem; font-weight: 500;
  color: var(--text-2);
  text-decoration: none;
  transition: color .2s;
}
.nav__links a:hover { color: var(--text); }
.nav__actions { display: flex; align-items: center; gap: 14px; }

.theme-toggle {
  display: grid; place-items: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: none; color: var(--text-2);
  cursor: pointer;
  transition: color .2s, border-color .2s, transform .3s var(--ease-out);
}
.theme-toggle:hover { color: var(--text); border-color: var(--text-2); transform: rotate(15deg); }
:root[data-theme="dark"] .i-sun { display: block; }
:root[data-theme="dark"] .i-moon { display: none; }
:root[data-theme="light"] .i-sun { display: none; }
:root[data-theme="light"] .i-moon { display: block; }

/* ── Hero ─────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 92svh;
  display: flex; align-items: center;
  padding: 140px 0 80px;
  overflow: clip;
}
.hero__aurora {
  position: absolute; inset: 0;
  pointer-events: none;
  background:
    radial-gradient(42% 50% at 18% 28%, var(--aurora-a), transparent 70%),
    radial-gradient(38% 46% at 78% 22%, var(--aurora-b), transparent 70%),
    radial-gradient(50% 55% at 55% 82%, var(--aurora-c), transparent 72%);
  animation: aurora 16s ease-in-out infinite alternate;
}
@keyframes aurora {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(0, -3%, 0) scale(1.08); }
}

.hero__inner { position: relative; }

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.9rem, 8.4vw, 6.4rem);
  line-height: 1.02;
  letter-spacing: -.02em;
  margin-top: 6px;
}
.hero__line2 { display: block; }
.hero__title em { font-style: italic; }

/* Rotating word — grid-stacked so width = widest word, no layout shift */
.rotator {
  display: inline-grid;
  vertical-align: bottom;
}
.rotator > span {
  grid-area: 1 / 1;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  /* Paint box must cover ascenders + descenders: the h1's tight line-height
     (1.02) would otherwise clip glyphs on background-clip: text words
     ("shops", "stages"). Padding extends the painted area; negative margins
     give the space back so layout and baseline stay identical. */
  padding-block: .18em;
  margin-block: -.18em;
  opacity: 0;
  transform: translateY(.35em);
  transition: opacity .45s var(--ease-out), transform .45s var(--ease-out);
  will-change: opacity, transform;
}
.rotator > span.is-on { opacity: 1; transform: none; }
.rotator > span.is-off { opacity: 0; transform: translateY(-.3em); }

.hero__lead {
  max-width: 590px;
  margin-top: 30px;
  font-size: clamp(1.02rem, 1.4vw, 1.16rem);
  color: var(--text-2);
}
.hero__lead em { font-style: italic; color: var(--text); }

.hero__cta {
  display: flex; align-items: center; gap: 28px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.hero__scroll {
  position: absolute; left: 50%; bottom: 26px;
  translate: -50% 0;
  width: 26px; height: 42px;
  border: 1.5px solid var(--line-strong);
  border-radius: 999px;
}
.hero__scroll span {
  position: absolute; left: 50%; top: 8px;
  width: 3px; height: 8px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: var(--text-2);
  animation: scrollcue 1.8s ease-in-out infinite;
}
@keyframes scrollcue {
  0%, 100% { transform: translateY(0); opacity: 1; }
  70%      { transform: translateY(12px); opacity: 0; }
}

/* ── Ticker ───────────────────────────────────────────────────── */
.ticker {
  overflow: hidden;
  border-block: 1px solid var(--line);
  padding: 16px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker__track {
  display: flex; align-items: center; gap: 34px;
  width: max-content;
  animation: ticker 38s linear infinite;
}
.ticker__track--rev { animation-direction: reverse; }
@keyframes ticker {
  to { transform: translateX(-50%); }
}
.ticker span {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--text-2);
  white-space: nowrap;
}
.ticker i { font-style: normal; font-size: .7rem; color: var(--accent); }

.ticker--stack { margin-top: 54px; border-block: 1px solid var(--line); }
.ticker--stack span {
  font-family: var(--font-mono);
  font-style: normal;
  font-size: .88rem;
  letter-spacing: .04em;
}

/* ── Sections ─────────────────────────────────────────────────── */
.section { padding: clamp(90px, 12vw, 150px) 0; }
.section--alt { background: var(--bg-alt); }
.section__head { max-width: 720px; margin-bottom: clamp(48px, 7vw, 80px); }
.section__head--center { text-align: center; margin-inline: auto; margin-bottom: 0; }
.section__head--center .section__lead { margin-inline: auto; }

/* ── Domains (editorial list) ─────────────────────────────────── */
.domains { border-top: 1px solid var(--line); }
.domain {
  display: grid;
  grid-template-columns: 70px 300px 1fr;
  gap: 24px;
  align-items: baseline;
  padding: 26px 8px;
  border-bottom: 1px solid var(--line);
  transition: background-color .3s, padding-left .35s var(--ease-out);
}
.domain:hover {
  background: color-mix(in srgb, var(--accent) 4%, transparent);
  padding-left: 20px;
}
.domain__num {
  font-family: var(--font-mono);
  font-size: .8rem;
  color: var(--text-2);
  transition: color .3s;
}
.domain:hover .domain__num { color: var(--accent); }
.domain__name {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  letter-spacing: -.01em;
}
.domain__desc {
  color: var(--text-2);
  font-size: .96rem;
  max-width: 520px;
}

.note {
  margin-top: 34px;
  font-size: .92rem;
  color: var(--text-2);
}
.note a { color: var(--accent); text-decoration: none; }
.note a:hover { text-decoration: underline; }

/* ── How we build ─────────────────────────────────────────────── */
.how {
  display: grid;
  grid-template-columns: minmax(280px, 5fr) 7fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: start;
}
.how__head { position: sticky; top: 110px; }

.how__list { display: grid; gap: 8px; }
.principle {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  padding: 26px 24px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: border-color .3s, background-color .3s, transform .3s var(--ease-out);
}
.principle:hover {
  background: var(--bg-elev);
  border-color: var(--line);
  transform: translateX(6px);
}
.principle__num {
  font-family: var(--font-mono);
  font-size: .8rem;
  color: var(--accent);
  padding-top: 5px;
}
.principle h3 {
  font-family: var(--font-display);
  font-size: 1.28rem;
  margin-bottom: 8px;
}
.principle p { color: var(--text-2); font-size: .95rem; max-width: 520px; }

/* ── About ────────────────────────────────────────────────────── */
.about {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: start;
}
.about__text p { margin-top: 20px; color: var(--text-2); max-width: 560px; }
.about__text h2 + p { margin-top: 26px; }
.about__wordplay {
  border-left: 2px solid var(--accent);
  padding-left: 18px;
  font-family: var(--font-display);
  font-size: 1.12rem;
  color: var(--text) !important;
}
.about__wordplay .mono { color: var(--accent); font-size: .95rem; text-transform: none; }
.about__wordplay em { font-style: italic; }

.glance {
  position: sticky; top: 110px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow);
}
.glance h3 { color: var(--accent); margin-bottom: 20px; }
.glance dl > div {
  display: grid;
  gap: 3px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
}
.glance dt {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-2);
}
.glance dd { font-size: .95rem; }

/* ── Contact ──────────────────────────────────────────────────── */
.contact { position: relative; overflow: clip; }
.contact::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(60% 80% at 50% 110%, var(--aurora-b), transparent 70%);
  pointer-events: none;
}
.contact__inner {
  position: relative;
  text-align: center;
  max-width: 720px;
}
.contact h2 { font-size: clamp(2.4rem, 6vw, 4.4rem); }
.contact .section__lead { margin-inline: auto; }
.contact .btn { margin-top: 36px; }
.contact__note { margin-top: 22px; color: var(--text-2); }

/* ── Footer ───────────────────────────────────────────────────── */
.footer { border-top: 1px solid var(--line); padding: 34px 0; }
.footer__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.footer__brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
}
.footer__meta { color: var(--text-2); }
.footer__meta a { color: var(--text-2); text-decoration: none; }
.footer__meta a:hover { color: var(--text); }

/* ── Reveal on scroll ─────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
}
.reveal.is-in { opacity: 1; transform: none; }

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 900px) {
  .how { grid-template-columns: 1fr; }
  .how__head { position: static; }
  .about { grid-template-columns: 1fr; }
  .glance { position: static; }
  .domain { grid-template-columns: 44px 1fr; gap: 8px 24px; }
  .domain__desc { grid-column: 2; }
}

@media (max-width: 640px) {
  .nav__links { display: none; }
  .hero { min-height: 86svh; padding-top: 120px; }
  .hero__scroll { display: none; }
  .principle { padding: 20px 14px; }
  .footer__inner { justify-content: center; text-align: center; }
}

/* ── Reduced motion ───────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .rotator > span { opacity: 0; transform: none; }
  .rotator > span.is-on { opacity: 1; }
  .ticker__track { animation: none; }
}
