/* NOCTA · design showcase by Buldogs Web Design */
:root {
  --bg: #0b0907;
  --ink: #f4ede4;
  --mute: rgba(244, 237, 228, .58);
  --line: rgba(244, 237, 228, .14);
  --accent: 255, 138, 61;          /* set live by JS (mood / kelvin) */
  --pad: clamp(20px, 4.2vw, 64px);
  --display: "Jost", "Inter", system-ui, sans-serif;
  --text: "Inter", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .7, .1, 1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html, body { overflow-x: clip; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.6 var(--text);
  -webkit-font-smoothing: antialiased;
  transition: background-color .9s var(--ease), color .9s var(--ease);
}
body.is-loading { overflow: hidden; }
a { color: inherit; }
::selection { background: rgb(var(--accent)); color: #000; }

/* ---------- layers ---------- */
.stage { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.glow {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(40% 38% at var(--gx, 50%) var(--gy, 46%), rgba(var(--accent), .28), transparent 70%),
    radial-gradient(70% 60% at 0% 100%, rgba(var(--accent), .10), transparent 70%);
  transition: opacity .9s var(--ease);
}
.grain {
  position: fixed; inset: 0; z-index: 50; pointer-events: none; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
main { position: relative; }
/* sections sit above the 3D canvas, except the giant hero word which sits BEHIND the ring */
main > section { z-index: 1; }
main > .hero { z-index: auto; }
.hero > * { position: relative; z-index: 1; }
.hero > .hero__title { z-index: -1; }

/* ---------- loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center;
  background: var(--bg); transition: opacity .8s var(--ease), visibility .8s;
}
.loader__word { width: min(86vw, 900px); overflow: visible; }
.loader__word text { font: 600 200px/1 var(--display); letter-spacing: -.02em; }
.loader__stroke {
  fill: none; stroke: rgba(244, 237, 228, .85); stroke-width: 1.2;
  stroke-dasharray: 900; stroke-dashoffset: 900;
  animation: draw 1.6s var(--ease) .15s forwards;
}
.loader__fill { fill: var(--ink); opacity: 0; animation: fill .7s ease 1.45s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fill { to { opacity: 1; } }
.loader__handles { position: absolute; inset: 0; pointer-events: none; }
.loader__handles span {
  position: absolute; width: 7px; height: 7px; margin: -3.5px; border: 1px solid rgb(var(--accent));
  background: var(--bg); opacity: 0; animation: pop .35s var(--ease) forwards;
}
.loader__handles span.dot { border-radius: 50%; background: rgb(var(--accent)); }
.loader__handles svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.loader__handles line { stroke: rgba(var(--accent), .7); stroke-width: 1; stroke-dasharray: 2 3; opacity: 0; animation: pop .35s var(--ease) forwards; }
@keyframes pop { from { opacity: 0; transform: scale(.2); } to { opacity: 1; transform: none; } }
.loader__count { position: absolute; bottom: var(--pad); right: var(--pad); font: 500 13px/1 var(--text); letter-spacing: .12em; color: var(--mute); }
.loader.is-out { opacity: 0; visibility: hidden; }
.loader.is-out .loader__handles { opacity: 0; transition: opacity .3s; }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  display: flex; align-items: center; gap: 28px; padding: 22px var(--pad);
  mix-blend-mode: difference; color: #fff;
}
.nav__logo { font: 700 20px/1 var(--display); letter-spacing: .08em; text-decoration: none; }
.nav__links { display: flex; gap: 26px; margin-left: auto; }
.nav__links a, .nav__cta { font: 500 12px/1 var(--text); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; opacity: .8; transition: opacity .2s; }
.nav__links a:hover, .nav__cta:hover { opacity: 1; }
.nav__cta { border: 1px solid currentColor; padding: 10px 16px; border-radius: 99px; opacity: 1; }

/* ---------- type ---------- */
.eyebrow { font: 500 12px/1 var(--text); letter-spacing: .22em; text-transform: uppercase; color: rgb(var(--accent)); margin-bottom: 22px; transition: color .6s; }
.big { font: 600 clamp(44px, 7.4vw, 124px)/.95 var(--display); letter-spacing: -.035em; }
.mid { font: 600 clamp(34px, 4.4vw, 68px)/1 var(--display); letter-spacing: -.03em; }
.big em, .mid em { font-style: normal; color: transparent; background: linear-gradient(100deg, var(--ink) 10%, rgb(var(--accent)) 90%); -webkit-background-clip: text; background-clip: text; }

/* echo / stacked reflection under giant words */
.echo { position: absolute; left: 0; right: 0; pointer-events: none; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- hero ---------- */
section { position: relative; padding: 0 var(--pad); }
.hero { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding-top: 90px; padding-bottom: 40px; }
.hero__title { position: relative; font: 700 clamp(84px, 22vw, 380px)/.8 var(--display); letter-spacing: -.05em; width: 100%; }
.hero__main { position: relative; display: block; color: var(--ink); text-shadow: 0 0 80px rgba(var(--accent), .35); }
.hero__title .echo { top: 0; color: var(--ink); -webkit-mask: linear-gradient(transparent 20%, #000 85%); mask: linear-gradient(transparent 20%, #000 85%); }
.hero__title .echo:nth-child(1) { transform: translateY(var(--e1, 18%)); opacity: .14; }
.hero__title .echo:nth-child(2) { transform: translateY(var(--e2, 36%)); opacity: .07; }
.hero__title .echo:nth-child(3) { transform: translateY(var(--e3, 54%)); opacity: .035; }
.hero__foot { width: 100%; display: flex; justify-content: space-between; align-items: flex-end; margin-top: clamp(80px, 16vh, 180px); text-align: left; }
.hero__lead { max-width: 360px; color: var(--mute); font-size: 15px; }
.scrollhint { display: flex; align-items: center; gap: 12px; font: 500 11px/1 var(--text); letter-spacing: .2em; text-transform: uppercase; text-decoration: none; color: var(--mute); }
.scrollhint i { width: 22px; height: 34px; border: 1px solid var(--line); border-radius: 12px; position: relative; }
.scrollhint i::after { content: ""; position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: rgb(var(--accent)); animation: wheel 1.8s ease-in-out infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(10px); opacity: 0; } 100% { opacity: 0; } }

/* ---------- statement ---------- */
.statement { min-height: 140vh; display: grid; grid-template-columns: 1.2fr 1fr; align-content: center; gap: 40px; }
.statement__side { grid-column: 1; max-width: 420px; color: var(--mute); font-size: 17px; }

/* ---------- moods (pinned) ---------- */
.moods { height: 420vh; padding: 0; }
.moods__pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.moods__head { position: absolute; left: var(--pad); top: 50%; transform: translateY(-50%); z-index: 3; max-width: 28vw; }
.moods__title { font: 600 clamp(30px, 3.4vw, 56px)/1 var(--display); letter-spacing: -.03em; }
.moods__title span { display: block; color: var(--mute); }
.moods__word { display: block; color: rgb(var(--accent)); transition: color .6s; }
.moods__rail { position: absolute; top: 50%; left: 50%; display: flex; gap: 3vw; transform: translate(var(--rx, 0px), -50%); will-change: transform; }
.card { position: relative; flex: none; width: min(34vh, 300px); aspect-ratio: 3 / 4.2; transition: transform .7s var(--ease), opacity .7s var(--ease), filter .7s; transform: scale(.72); opacity: .4; filter: saturate(.4); }
.card.is-on { transform: scale(1); opacity: 1; filter: none; }
.card span { position: absolute; left: 0; right: 0; bottom: -34px; text-align: center; font: 500 11px/1 var(--text); letter-spacing: .24em; text-transform: uppercase; color: var(--mute); }
.scene { position: absolute; inset: 0; overflow: hidden; border-radius: 4px; }
/* transparent "window" in the middle: the 3D ring shows through it */
.scene::before { content: ""; position: absolute; inset: 0; background: var(--sky); -webkit-mask: radial-gradient(circle at 50% 46%, transparent 0 27%, #000 40%); mask: radial-gradient(circle at 50% 46%, transparent 0 27%, #000 40%); }
.scene i { position: absolute; left: -10%; right: -10%; bottom: 0; height: 30%; background: var(--floor); }
.scene b { position: absolute; inset: 0; background: radial-gradient(60% 40% at 50% 48%, var(--halo), transparent 70%); mix-blend-mode: screen; }
.scene--amber   { --sky: linear-gradient(170deg, #2a160b 0%, #6b2f12 55%, #1a0d06 100%); --floor: linear-gradient(#3b1d0c, #120804); --halo: rgba(255, 140, 60, .35); }
.scene--glacier { --sky: linear-gradient(170deg, #0b1a24 0%, #24506a 55%, #08121a 100%); --floor: linear-gradient(#18394a, #050c11); --halo: rgba(120, 200, 255, .35); }
.scene--rose    { --sky: linear-gradient(170deg, #2a0f18 0%, #7a2f48 55%, #1a0910 100%); --floor: linear-gradient(#4a1a2a, #12060a); --halo: rgba(255, 120, 160, .35); }
.scene--forest  { --sky: linear-gradient(170deg, #0d1a10 0%, #2d5a35 55%, #08120a 100%); --floor: linear-gradient(#1c3a22, #050c06); --halo: rgba(140, 230, 140, .3); }
.frame { position: absolute; top: 50%; left: 50%; width: calc(min(34vh, 300px) + 36px); aspect-ratio: 3 / 4.2; transform: translate(-50%, -50%); border: 1px dashed rgba(244, 237, 228, .35); pointer-events: none; z-index: 2; }
.frame i { position: absolute; width: 9px; height: 9px; border: 1px solid var(--ink); background: var(--bg); }
.frame i:nth-child(1) { left: -5px; top: -5px; } .frame i:nth-child(2) { right: -5px; top: -5px; }
.frame i:nth-child(3) { left: -5px; bottom: -5px; } .frame i:nth-child(4) { right: -5px; bottom: -5px; }
.moods__chips { position: absolute; left: 50%; bottom: 5vh; transform: translateX(-50%); display: flex; gap: 8px; z-index: 3; }
.moods__chips button { font: 500 11px/1 var(--text); letter-spacing: .16em; text-transform: uppercase; color: var(--mute); background: rgba(255, 255, 255, .04); border: 1px solid var(--line); padding: 10px 14px; border-radius: 99px; cursor: pointer; transition: all .3s; }
.moods__chips button.is-on, .moods__chips button:hover { color: #000; background: rgb(var(--accent)); border-color: transparent; }

/* ---------- tech ---------- */
.tech { min-height: 150vh; display: flex; align-items: center; }
.tech__panel { position: relative; z-index: 2; max-width: 520px; padding: 48px 0; }
.specs { margin-top: 44px; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.specs div { padding: 22px 0; border-bottom: 1px solid var(--line); }
.specs dt { font: 500 11px/1 var(--text); letter-spacing: .18em; text-transform: uppercase; color: var(--mute); margin-bottom: 10px; }
.specs dd { font: 600 clamp(26px, 2.6vw, 38px)/1 var(--display); letter-spacing: -.02em; }
.blueprint { position: fixed; left: var(--bx, 70vw); top: var(--by, 50vh); width: var(--bw, 600px); transform: translate(-50%, -50%); pointer-events: none; z-index: 0; fill: none; stroke: rgba(var(--accent), .45); stroke-width: 1; opacity: var(--bp, 0); transition: opacity .3s; }
.blueprint circle, .blueprint line { stroke-dasharray: 4 6; }
.blueprint .dim { stroke: rgba(244, 237, 228, .5); stroke-dasharray: none; }
.blueprint text { fill: rgba(244, 237, 228, .65); stroke: none; font: 500 13px var(--text); letter-spacing: .1em; }

/* ---------- kelvin ---------- */
.kelvin { min-height: 150vh; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; text-align: center; padding-bottom: 22vh; }
.kelvin__ctrl { width: min(560px, 100%); margin-top: 48px; }
.kelvin input { width: 100%; -webkit-appearance: none; appearance: none; height: 3px; border-radius: 3px; background: linear-gradient(90deg, #ff7a2a, #ffd6a0, #f4f7ff, #bcd7ff); outline: none; cursor: pointer; }
.kelvin input::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; border-radius: 50%; background: var(--bg); border: 2px solid rgb(var(--accent)); box-shadow: 0 0 24px rgba(var(--accent), .8); }
.kelvin input::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; background: var(--bg); border: 2px solid rgb(var(--accent)); box-shadow: 0 0 24px rgba(var(--accent), .8); }
.kelvin output { display: block; margin-top: 22px; font: 600 40px/1 var(--display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.kelvin__scale { display: flex; justify-content: space-between; margin-top: 14px; font: 500 11px/1 var(--text); letter-spacing: .18em; text-transform: uppercase; color: var(--mute); }

/* ---------- eco (light) ---------- */
body.is-light { --bg: #efe8dd; --ink: #16120e; --mute: rgba(22, 18, 14, .6); --line: rgba(22, 18, 14, .15); background: #efe8dd; color: #16120e; }
body.is-light .glow { opacity: .35; }
.eco { min-height: 130vh; display: flex; flex-direction: column; justify-content: center; padding-top: 10vh; }
.eco__word { position: relative; font: 700 clamp(64px, 15.5vw, 270px)/.85 var(--display); letter-spacing: -.04em; margin-left: -.04em; white-space: nowrap; }
.eco__main { position: relative; display: block; }
.eco__word .echo { top: 0; color: rgb(var(--accent)); opacity: .22; transform: translate(var(--ex, 0px), 14%); }
.eco__text { max-width: 400px; margin: 7vh 0 0 auto; color: var(--mute); font-size: 17px; }

/* ---------- cta ---------- */
.cta { min-height: 120vh; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 44px; }
.btn { display: inline-block; text-decoration: none; font: 600 14px/1 var(--text); letter-spacing: .06em; color: #0b0907; background: rgb(var(--accent)); padding: 20px 30px; border-radius: 99px; box-shadow: 0 10px 60px rgba(var(--accent), .45); transition: transform .3s var(--ease), box-shadow .3s; }
.btn:hover { transform: translateY(-3px); box-shadow: 0 16px 80px rgba(var(--accent), .65); }
.cta__note { max-width: 520px; color: var(--mute); font-size: 13px; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__cta { margin-left: auto; }
  .hero__foot { flex-direction: column; align-items: flex-start; gap: 28px; }
  .statement { grid-template-columns: 1fr; align-content: start; padding-top: 18vh; min-height: 150vh; }
  .moods__head { top: 11vh; transform: none; max-width: none; right: var(--pad); text-align: center; }
  .moods__title span, .moods__word { display: inline; }
  .card, .frame { width: min(56vw, 260px); }
  .frame { width: calc(min(56vw, 260px) + 28px); }
  .tech { align-items: flex-end; padding-bottom: 12vh; }
  .tech__panel::before { content: ""; position: absolute; z-index: -1; inset: -20px calc(-1 * var(--pad)); background: linear-gradient(0deg, rgba(11, 9, 7, .92) 60%, transparent); }
  .specs { grid-template-columns: 1fr 1fr; }
  .eco__word { font-size: 17vw; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .loader { display: none; }
}
