/* =========================================================================
   FOOLISH — Teaser site styles
   Brand: near-black #010011 · electric purple #695FF9 · yellow #F4B311
          red #D82412 · olive #407C39
   Type:  Image Future (geometric display) · Universal Sans Display (body)
          Wordmark uses a bubbly placeholder until the real FOOLISH SVG lands.
   ========================================================================= */

/* ---- Fonts -------------------------------------------------------------- */
@font-face {
  font-family: "Image Future";
  src: url("fonts/ImageFuture-Black.otf") format("opentype");
  font-weight: 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Image Future";
  src: url("fonts/ImageFuture-Bold.otf") format("opentype");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Image Future";
  src: url("fonts/ImageFuture-Medium.otf") format("opentype");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Image Future";
  src: url("fonts/ImageFuture-Regular.otf") format("opentype");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Universal Sans";
  src: url("fonts/UniversalSansDisplay-250.ttf") format("truetype");
  font-weight: 250; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Universal Sans";
  src: url("fonts/UniversalSansDisplay-550.ttf") format("truetype");
  font-weight: 550; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Universal Sans";
  src: url("fonts/UniversalSansDisplay-250Italic.ttf") format("truetype");
  font-weight: 250; font-style: italic; font-display: swap;
}

/* ---- Tokens ------------------------------------------------------------- */
:root {
  --black:   #010011;
  --ink-1:   #0a0918;   /* raised panel */
  --ink-2:   #12102a;   /* hairlines / fills */
  --purple:  #695FF9;
  --purple-soft: #8b84ff;
  --yellow:  #F4B311;
  --red:     #D82412;
  --olive:   #407C39;
  --white:   #FBFBFF;
  --mute:    #9a98b5;

  --accent:  var(--purple);     /* driven by Tweaks */

  --font-display: "Image Future", system-ui, sans-serif;
  --font-body:    "Universal Sans", system-ui, sans-serif;
  --font-wordmark: "Image Future", system-ui, sans-serif;

  --edge: clamp(20px, 5vw, 80px);
  --maxw: 1500px;

  --wordmark-size: clamp(62px, 13vw, 250px);
  --logo-w: clamp(300px, 62vw, 1040px);   /* hero logo SVG width, driven by mood/layout */
  --eye-travel: 0.30;          /* fraction of eye radius the pupil can roam */
  --bob: 1;                    /* looping bob multiplier, killed for reduced-motion */
}

/* ---- Reset -------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 250;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

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

/* ---- Shared type helpers ----------------------------------------------- */
.eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: clamp(11px, 1vw, 14px);
  color: var(--accent);
}
.display {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: .92;
  letter-spacing: -.01em;
}
.lede {
  font-family: var(--font-body);
  font-weight: 250;
  color: var(--mute);
  line-height: 1.45;
}

/* =========================================================================
   NAV
   ========================================================================= */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: center;
  padding: clamp(16px, 2.4vw, 30px) var(--edge);
  mix-blend-mode: difference;          /* stays legible over any bg */
}
.nav__mark {
  font-family: var(--font-wordmark);
  font-weight: 800;
  font-size: clamp(20px, 2vw, 26px);
  letter-spacing: -.02em;
  color: #fff;
}
.nav__mark sup { font-size: .42em; vertical-align: super; font-weight: 800; }
.nav__right {
  display: flex; align-items: center; gap: clamp(14px, 2vw, 28px);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(12px, 1.05vw, 14px);
  text-transform: uppercase; letter-spacing: .12em;
  color: #fff;
}
.nav__status { display: inline-flex; align-items: center; gap: .55em; }
.nav__dot {
  width: .55em; height: .55em; border-radius: 50%;
  background: #fff;
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{ opacity:.35; transform:scale(.85);} 50%{ opacity:1; transform:scale(1);} }

/* =========================================================================
   HERO
   ========================================================================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  isolation: isolate;
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: -2; }
#starfield { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero__nebula {
  position: absolute; inset: -20%;
  z-index: -1;
  background:
    radial-gradient(40% 38% at 30% 42%, color-mix(in oklch, var(--accent) 55%, transparent), transparent 70%),
    radial-gradient(46% 40% at 72% 60%, color-mix(in oklch, var(--accent) 38%, transparent), transparent 72%);
  filter: blur(40px) saturate(1.1);
  opacity: .9;
  animation: drift 26s ease-in-out infinite alternate;
}
@keyframes drift {
  0%   { transform: translate3d(-2%, -1%, 0) scale(1.02); }
  100% { transform: translate3d(3%, 2%, 0) scale(1.12); }
}
/* optional dropped art behind the wordmark */
.hero__art {
  position: absolute; inset: 0; z-index: -1;
  width: 100%; height: 100%;
  opacity: 0;            /* shown only in 'art' bg mode */
  transition: opacity .5s ease;
}
.hero__art image-slot { width: 100%; height: 100%; }

/* hero content grid */
.hero__inner {
  position: relative; z-index: 1;
  width: 100%; max-width: var(--maxw); margin: 0 auto;
  padding: 0 var(--edge);
  align-self: center;
  display: grid;
  justify-items: center;
  text-align: center;
  gap: clamp(22px, 3.6vh, 48px);
  padding-top: 12vh; padding-bottom: 10vh;
}
.hero__tagline {
  max-width: 42ch;
  font-size: clamp(17px, 1.9vw, 26px);
  font-weight: 250;
  color: color-mix(in oklch, var(--white) 86%, transparent);
  line-height: 1.4;
  text-wrap: balance;
}
.hero__tagline b { font-weight: 550; color: var(--white); }
.hero__meta {
  display: flex; gap: clamp(16px, 3vw, 40px); flex-wrap: wrap;
  justify-content: center; align-items: center;
  font-family: var(--font-display);
  text-transform: uppercase; letter-spacing: .16em;
  font-size: clamp(11px, 1vw, 13px);
  font-weight: 700;
  color: var(--mute);
}
.hero__meta span { display: inline-flex; align-items: center; gap: .6em; }
.hero__meta .tick { color: var(--accent); }

/* scroll cue */
.scrollcue {
  position: absolute; left: 50%; bottom: clamp(18px, 4vh, 40px);
  transform: translateX(-50%);
  z-index: 2;
  display: grid; justify-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 500;
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--mute);
}
.scrollcue__line {
  width: 1px; height: 46px;
  background: linear-gradient(var(--mute), transparent);
  position: relative; overflow: hidden;
}
.scrollcue__line::after {
  content: ""; position: absolute; left: 0; top: 0; width: 1px; height: 50%;
  background: var(--white);
  animation: cue 1.8s ease-in-out infinite;
}
@keyframes cue { 0%{ transform: translateY(-100%);} 60%,100%{ transform: translateY(220%);} }

/* =========================================================================
   WORDMARK + EYES
   ========================================================================= */
/* hero logo — the hybrid SVG engine mounts here; aspect-ratio set by JS */
.hero-logo {
  width: var(--logo-w);
  max-width: 96vw;
  margin-inline: auto;
  line-height: 0;
  cursor: default;
}
.hero-logo .foolish-svg { display: block; }

.wordmark {
  --wm: var(--wordmark-size);
  font-family: var(--font-wordmark);
  font-weight: 800;
  font-size: var(--wm);
  line-height: .8;
  color: #fff;
  display: inline-flex;
  align-items: center;
  letter-spacing: -.04em;
  user-select: none;
  position: relative;
  transform-style: preserve-3d;
  will-change: transform;
}
.wordmark__inner {
  display: inline-flex;
  align-items: center;
  animation: bob calc(7s / var(--bob)) ease-in-out infinite;
}
@keyframes bob {
  0%,100% { transform: translateY(0) rotate(0deg); }
  50%     { transform: translateY(calc(-0.018em * var(--bob))) rotate(calc(-0.25deg * var(--bob))); }
}
.wm-letter { display: inline-block; }
.wm-reg {
  font-size: .2em;
  align-self: flex-start;
  margin-top: .35em;
  margin-left: .04em;
  font-weight: 800;
}

/* an eye = the bubbly O. White disc, black tracking pupil.
   Sized to the cap height of the placeholder letters and nudged down so it
   sits on the same optical line. */
.wm-eye {
  position: relative;
  width: .74em; height: .74em;
  border-radius: 50%;
  background: #fff;
  display: inline-block;
  margin: .07em -.012em 0;
  flex: none;
  transform: translateZ(0);
}
.wm-pupil {
  position: absolute;
  left: 50%; top: 50%;
  width: .2em; height: .32em;
  border-radius: 50%;
  background: var(--black);
  transform: translate(-50%, -50%);
  will-change: transform;
}
/* blink — squash the whole eye briefly (applied via inline animation in JS) */
@keyframes blink {
  0%,100% { transform: translateZ(0) scaleY(1); }
  50%     { transform: translateZ(0) scaleY(.08); }
}

/* placeholder letters rely on the bubbly font's own roundness — no goo */

/* =========================================================================
   SECTION SHELL
   ========================================================================= */
.section {
  position: relative;
  padding: clamp(90px, 16vh, 200px) var(--edge);
}
.wrap { max-width: var(--maxw); margin: 0 auto; }

/* ---- Statement beat ---- */
.statement { text-align: left; }
.statement__big {
  font-family: var(--font-wordmark);
  font-weight: 800;
  font-size: clamp(40px, 8.5vw, 168px);
  line-height: .94;
  letter-spacing: -.03em;
  text-wrap: balance;
}
.statement__big .glow { color: var(--accent); }
.statement__sub {
  margin-top: clamp(28px, 5vh, 64px);
  max-width: 52ch;
  font-size: clamp(18px, 2vw, 30px);
  line-height: 1.4;
  color: var(--mute);
}
.statement__sub b { color: var(--white); font-weight: 550; }

/* a strip of small word-tokens that scroll/marquee */
.marquee {
  margin-top: clamp(40px, 8vh, 96px);
  border-top: 1px solid var(--ink-2);
  border-bottom: 1px solid var(--ink-2);
  overflow: hidden;
  white-space: nowrap;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: inline-flex; gap: 0;
  animation: scroll 28s linear infinite;
}
.marquee__track span {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(20px, 3vw, 44px);
  text-transform: uppercase; letter-spacing: -.01em;
  padding: clamp(14px, 2vh, 26px) clamp(20px, 3vw, 46px);
  color: color-mix(in oklch, var(--white) 18%, transparent);
}
.marquee__track span em {
  font-style: normal; color: var(--accent);
}
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---- About ---- */
.about {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(36px, 6vw, 100px);
  align-items: center;
}
.about__label { margin-bottom: clamp(22px, 4vh, 40px); }
.about__title {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(30px, 4.4vw, 76px);
  line-height: .98; letter-spacing: -.02em;
  margin: 0 0 clamp(20px, 3vh, 34px);
}
.about__body p {
  font-size: clamp(16px, 1.35vw, 21px);
  line-height: 1.6;
  color: color-mix(in oklch, var(--white) 80%, transparent);
  max-width: 46ch;
  margin: 0 0 1.1em;
}
.about__body p.is-placeholder { color: var(--mute); }
.about__media {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 6px;
  overflow: hidden;
  background: var(--ink-1);
  border: 1px solid var(--ink-2);
}
.about__media image-slot { width: 100%; height: 100%; }
.about__tag {
  position: absolute; left: 14px; bottom: 14px; z-index: 3;
  font-family: var(--font-display); font-weight: 700;
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--white);
  background: color-mix(in oklch, var(--black) 60%, transparent);
  backdrop-filter: blur(6px);
  padding: 7px 11px; border-radius: 100px;
  pointer-events: none;
}

/* =========================================================================
   FOOTER / NOTIFY
   ========================================================================= */
.footer {
  border-top: 1px solid var(--ink-2);
  padding: clamp(64px, 12vh, 130px) var(--edge) clamp(34px, 6vh, 56px);
  position: relative;
  overflow: hidden;
}
.footer__cta { max-width: 760px; }
.footer__cta h2 {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(30px, 5.5vw, 86px);
  line-height: .96; letter-spacing: -.02em; margin: 0 0 .5em;
}
.notify {
  display: flex; gap: 10px; flex-wrap: wrap;
  max-width: 520px; margin-top: clamp(20px, 4vh, 36px);
}
.notify__field {
  flex: 1 1 240px;
  display: flex; align-items: center;
  background: var(--ink-1);
  border: 1px solid var(--ink-2);
  border-radius: 100px;
  padding: 4px 4px 4px 22px;
  transition: border-color .2s ease;
}
.notify__field:focus-within { border-color: var(--accent); }
.notify input {
  flex: 1; min-width: 0;
  background: none; border: none; outline: none;
  color: var(--white);
  font-family: var(--font-body); font-weight: 250;
  font-size: 16px;
  padding: 14px 6px;
}
.notify input::placeholder { color: var(--mute); }
.notify__btn {
  flex: none;
  border: none; cursor: pointer;
  background: var(--accent); color: #fff;
  font-family: var(--font-display); font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em; font-size: 13px;
  padding: 0 26px; height: 48px; border-radius: 100px;
  transition: transform .18s ease, filter .18s ease;
}
.notify__btn:hover { transform: translateY(-1px); filter: brightness(1.08); }
.notify__note {
  margin-top: 14px; font-size: 13px; color: var(--mute);
  min-height: 1.2em;
}
.notify.is-done .notify__btn { background: var(--olive); }

.footer__base {
  margin-top: clamp(56px, 10vh, 110px);
  display: flex; justify-content: space-between; align-items: flex-end;
  flex-wrap: wrap; gap: 24px;
}
.footer__big {
  font-family: var(--font-wordmark); font-weight: 800;
  font-size: clamp(54px, 16vw, 280px);
  line-height: .8; letter-spacing: -.04em; color: #fff;
  opacity: .07;
  position: absolute; left: var(--edge); bottom: -.16em; z-index: 0;
  pointer-events: none;
}
.footer__links {
  display: flex; gap: clamp(14px, 2vw, 26px); position: relative; z-index: 1;
  font-family: var(--font-display); font-weight: 500;
  text-transform: uppercase; letter-spacing: .12em; font-size: 13px;
}
.footer__links a { color: var(--mute); transition: color .18s ease; }
.footer__links a:hover { color: var(--white); }
.footer__copy {
  position: relative; z-index: 1;
  font-family: var(--font-display); font-weight: 500;
  font-size: 12px; letter-spacing: .08em; color: var(--mute);
}

/* =========================================================================
   MOOD VARIANTS  (data-mood on <html>)
   ========================================================================= */
/* LOUD — default-ish: max scale, multicolor, energetic */
[data-mood="loud"] {
  --logo-w: clamp(340px, 72vw, 1180px);
}
[data-mood="loud"] .statement__big .w1 { color: var(--purple); }
[data-mood="loud"] .statement__big .w2 { color: var(--yellow); }

/* MYSTERIOUS — restrained, mostly black, slow */
[data-mood="mysterious"] {
  --logo-w: clamp(260px, 52vw, 820px);
  --bob: .5;
}
[data-mood="mysterious"] .hero__nebula { opacity: .5; filter: blur(70px) saturate(.9); }
[data-mood="mysterious"] .hero__tagline { color: color-mix(in oklch, var(--white) 60%, transparent); }
[data-mood="mysterious"] .statement__big { color: color-mix(in oklch, var(--white) 90%, transparent); }
[data-mood="mysterious"] .statement__big .glow { color: var(--accent); }

/* PLAYFUL — bouncy, yellow+purple, rounded */
[data-mood="playful"] {
  --accent: var(--purple);
  --bob: 1.7;
}
[data-mood="playful"] .hero__nebula {
  background:
    radial-gradient(38% 36% at 28% 40%, color-mix(in oklch, var(--yellow) 40%, transparent), transparent 70%),
    radial-gradient(46% 42% at 74% 62%, color-mix(in oklch, var(--purple) 55%, transparent), transparent 72%);
}
[data-mood="playful"] .statement__big .glow { color: var(--yellow); }
[data-mood="playful"] .notify__btn { border-radius: 100px; }

/* EDITORIAL — gallery, lots of space, single accent, refined */
[data-mood="editorial"] {
  --logo-w: clamp(240px, 44vw, 720px);
  --bob: .6;
}
[data-mood="editorial"] .hero__nebula { opacity: .35; }
[data-mood="editorial"] .hero__inner { gap: clamp(30px, 5vh, 70px); }
[data-mood="editorial"] .statement__big { font-family: var(--font-display); font-weight: 900; }

/* =========================================================================
   LAYOUT VARIANTS  (data-layout on <html>) — hero treatment
   ========================================================================= */
/* CENTERED is the base. */

/* STACKED-LEFT */
[data-layout="left"] .hero__inner {
  justify-items: start; text-align: left;
  align-content: center;
}
[data-layout="left"] .hero__meta { justify-content: flex-start; }
[data-layout="left"] .hero-logo { margin-inline: 0; }
[data-layout="left"] .hero__tagline { max-width: 30ch; }

/* BLEED — oversized wordmark spilling past the viewport */
[data-layout="bleed"] {
  --logo-w: clamp(440px, 94vw, 1500px);
}
[data-layout="bleed"] .hero__inner { gap: clamp(18px, 2.4vh, 32px); }
[data-layout="bleed"] .hero-logo { max-width: 100vw; }
[data-layout="bleed"] .hero__tagline { max-width: 50ch; }

/* =========================================================================
   BACKGROUND MODES (data-bg on <html>)
   ========================================================================= */
[data-bg="art"]   .hero__art { opacity: 1; }
[data-bg="art"]   .hero__nebula { opacity: .35; mix-blend-mode: screen; }
[data-bg="solid"] .hero__nebula,
[data-bg="solid"] #starfield { display: none; }
[data-bg="gradient"] #starfield { opacity: .25; }
[data-bg="gradient"] .hero__nebula { opacity: 1; filter: blur(30px) saturate(1.3); animation-duration: 14s; }

/* =========================================================================
   REVEAL ON SCROLL
   ========================================================================= */
/* Content is always visible (opacity untouched); entrance is transform-only,
   so even if the animation doesn't run, nothing is ever hidden. */
.reveal { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
.reveal[data-d="1"] { animation-delay: .09s; }
.reveal[data-d="2"] { animation-delay: .18s; }
.reveal[data-d="3"] { animation-delay: .27s; }
@keyframes rise {
  from { transform: translateY(22px); }
  to   { transform: none; }
}

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 860px) {
  .about { grid-template-columns: 1fr; }
  .about__media { aspect-ratio: 16 / 11; }
  .nav__right .nav__menu { display: none; }
  .footer__base { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  :root { --bob: 0.001; }
  .hero__nebula, .marquee__track, .scrollcue__line::after, .nav__dot { animation: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1 !important; animation: none !important; transform: none !important; }
}

/* SVG filter host (goo) lives in the HTML; this just hides its container */
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
