/* ============================================================
   ZEYNEL KOÇ — v.2026.04 · COLOR-BLOCK / KINETIC EDITION
   Acid green · hot pink · electric blue · neon yellow · black
   ============================================================ */

:root {
  /* THEME PALETTE */
  --acid:    #c4ff45;
  --pink:    #ff3a8c;
  --yellow:  #ffd700;
  --blue:    #1f3eff;
  --cream:   #f5f0e3;
  --black:   #0a0a0a;
  --white:   #ffffff;
  --neon:    #b8ff3a;

  --ink:     #0a0a0a;
  --paper:   #f5f0e3;

  /* Active theme (set by section observers via :root) */
  --bg:      var(--acid);
  --fg:      var(--black);
  --fg-2:    rgba(10,10,10,0.65);
  --line:    rgba(10,10,10,0.18);

  --font-display: "Fraunces", "Times New Roman", serif;
  --font-sans:    "Space Grotesk", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, monospace;
  --font-arabic:  "Noto Naskh Arabic", serif;

  --ease: cubic-bezier(.2,.7,.2,1);
  --pad-x: clamp(20px, 5vw, 80px);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background .6s var(--ease), color .6s var(--ease);
}
body.no-cursor { cursor: none; }
a { color: inherit; text-decoration: none; }
img, svg, canvas { display: block; max-width: 100%; }
::selection { background: var(--ink); color: var(--neon); }

.mono { font-family: var(--font-mono); }

/* ── INTRO LOADER ────────────────────────────────────────────── */
.intro {
  position: fixed; inset: 0;
  z-index: 999;
  display: grid; place-items: center;
  background: var(--black);
  color: var(--neon);
  pointer-events: none;
  transition: opacity .8s var(--ease) .8s, transform .9s var(--ease) .8s;
}
.intro-text {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(3rem, 12vw, 11rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  font-variation-settings: "opsz" 144;
  transform: translateY(20px);
  opacity: 0;
  animation: introIn .9s var(--ease) .15s forwards;
}
@keyframes introIn {
  to { transform: none; opacity: 1; }
}
body.is-loaded .intro { opacity: 0; transform: translateY(-100%); }

/* ── NAV ─────────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 90;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(16px, 3vw, 28px);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  mix-blend-mode: difference;
  color: var(--white);
}
.nav-logo {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
  font-variation-settings: "opsz" 32;
}
.nav nav { display: inline-flex; gap: 18px; flex-wrap: wrap; justify-content: center; }
.nav nav a { transition: opacity .2s var(--ease); }
.nav nav a:hover { opacity: .65; }
.nav-time { opacity: .9; }
@media (max-width: 720px) {
  .nav { font-size: 10.5px; gap: 10px; }
  .nav nav { gap: 10px; }
  .nav-time { display: none; }
}

/* ── SECTION FRAME ───────────────────────────────────────────── */
.sec {
  position: relative;
  padding: clamp(64px, 12vw, 160px) var(--pad-x);
  min-height: 80vh;
  display: grid;
  align-content: center;
  isolation: isolate;
  transition: background .7s var(--ease), color .7s var(--ease);
}

/* Theme application via :root + smooth transitions per section */
[data-theme="acid"]   { background: var(--acid);   color: var(--black); }
[data-theme="pink"]   { background: var(--pink);   color: var(--black); }
[data-theme="yellow"] { background: var(--yellow); color: var(--black); }
[data-theme="blue"]   { background: var(--blue);   color: var(--white); }
[data-theme="cream"]  { background: var(--cream);  color: var(--black); }
[data-theme="black"]  { background: var(--black);  color: var(--neon); }

.sec-num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: .6;
  margin-bottom: 14px;
}
.sec-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(3rem, 9vw, 7rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
  font-variation-settings: "opsz" 144;
  margin-bottom: clamp(28px, 5vw, 64px);
}
.sec-title em {
  font-style: italic;
  font-weight: 400;
  font-variation-settings: "opsz" 144;
}

/* ── HERO ────────────────────────────────────────────────────── */
.sec-hero {
  min-height: 100vh;
  padding-top: 80px;
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 18px;
}
.hero-pre { padding-top: 8px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 6px 12px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: rgba(10,10,10,0.05);
  letter-spacing: 0.06em;
}
.pill i {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--ink);
  animation: pulse 1.6s var(--ease) infinite;
}
@keyframes pulse {
  0%,100% { transform: scale(1); opacity: 1; }
  50%     { transform: scale(.55); opacity: .55; }
}

.mega {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(4rem, 22vw, 18rem);
  line-height: 0.78;
  letter-spacing: -0.06em;
  font-variation-settings: "opsz" 144, "wght" 600;
  word-wrap: break-word;
  align-self: center;
  margin-top: -2vw;
}
.mega .word { display: inline-block; transition: transform .6s var(--ease), color .3s var(--ease); }
.mega .word.kink {
  font-style: italic;
  font-weight: 400;
  display: inline-block;
  transform-origin: bottom left;
  animation: kinkSpin 6s var(--ease) infinite;
}
@keyframes kinkSpin {
  0%,100% { transform: rotate(0); }
  50%     { transform: rotate(-9deg); }
}

.hero-meta {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: 10px;
  align-self: end;
}
.hero-meta .dot { font-size: 8px; opacity: .5; }

.hero-cta {
  position: absolute;
  right: var(--pad-x);
  bottom: clamp(40px, 8vw, 100px);
  display: inline-flex; align-items: center; gap: 12px;
  padding: 14px 22px 14px 18px;
  background: var(--ink);
  color: var(--acid);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  transition: transform .3s var(--ease), background .3s var(--ease);
}
.hero-cta:hover { transform: translateY(-3px) rotate(-2deg); background: #1f1f1f; }
.cta-arrow {
  display: inline-grid; place-items: center;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--acid);
  color: var(--ink);
  animation: bounceY 1.4s var(--ease) infinite;
}
@keyframes bounceY {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(3px); }
}

.hero-mark {
  position: absolute;
  left: var(--pad-x);
  bottom: clamp(40px, 8vw, 100px);
  display: grid; gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  opacity: .7;
}
.hm-spin {
  font-size: 14px;
  display: inline-block;
  animation: hmSpin 14s linear infinite;
  letter-spacing: 0.4em;
}
@keyframes hmSpin {
  from { transform: rotate(0); }
  to   { transform: rotate(360deg); }
}
@media (max-width: 720px) {
  .hero-cta { right: var(--pad-x); bottom: 40px; }
  .hero-mark { display: none; }
}

.blob-canvas {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  z-index: -1;
  opacity: .9;
  mix-blend-mode: multiply;
  pointer-events: none;
}

/* ── MARQUEE ─────────────────────────────────────────────────── */
.sec-marquee {
  min-height: auto;
  padding: clamp(28px, 4vw, 50px) 0;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  background: var(--ink);
  color: var(--neon);
  display: block;
  overflow: hidden;
}
.marquee {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  white-space: nowrap;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(2rem, 6vw, 5.5rem);
  letter-spacing: -0.02em;
  font-variation-settings: "opsz" 144;
  animation: marqueeX 40s linear infinite;
}
.marquee .m-sep {
  font-style: normal;
  font-family: var(--font-sans);
  font-size: 0.5em;
  vertical-align: middle;
  opacity: .8;
}
@keyframes marqueeX {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── THESIS (split into wiggling words) ──────────────────────── */
.sec-thesis {
  text-align: center;
  padding-block: clamp(80px, 14vw, 200px);
  position: relative;
}
.thesis {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.4rem, 8vw, 7rem);
  line-height: 1;
  letter-spacing: -0.04em;
  font-variation-settings: "opsz" 144;
  max-width: 18ch;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.18em 0.32em;
  justify-content: center;
}
.thesis [data-w] {
  display: inline-block;
  transform-origin: center;
  transition: transform .3s var(--ease), color .25s var(--ease);
}
.thesis [data-w]:hover {
  transform: rotate(-3deg) scale(1.04);
  color: var(--white);
}
.thesis .serif em {
  font-style: italic;
  font-weight: 400;
  font-variation-settings: "opsz" 144;
  white-space: nowrap;
}
.thesis-tag {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: clamp(28px, 4vw, 50px);
  opacity: .65;
}

/* ── ABOUT ───────────────────────────────────────────────────── */
.sec-about { background: var(--cream); color: var(--ink); }

/* Byline (portrait + role) */
.byline {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: clamp(28px, 4vw, 48px);
  padding-bottom: clamp(20px, 3vw, 32px);
  border-bottom: 2px solid var(--ink);
}
.avatar-wrap {
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
}
.avatar-wrap::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--pink), var(--yellow), var(--blue), var(--neon), var(--pink));
  z-index: 0;
  animation: avatarRing 8s linear infinite;
  filter: blur(.5px);
  opacity: .85;
}
.avatar-wrap::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: var(--cream);
  z-index: 0;
}
.avatar {
  position: relative;
  z-index: 1;
  width: 72px; height: 72px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  filter: contrast(1.05) saturate(.92);
  transition: transform .35s var(--ease), filter .35s var(--ease);
}
.avatar:hover {
  transform: scale(1.05) rotate(-3deg);
  filter: contrast(1.12) saturate(1);
}
@keyframes avatarRing {
  to { transform: rotate(360deg); }
}
.byline-meta {
  display: grid;
  gap: 4px;
  flex: 1 1 auto;
  min-width: 0;
}
.byline-meta strong {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  letter-spacing: -0.01em;
  font-variation-settings: "opsz" 32;
  line-height: 1;
}
.byline-meta span {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(10,10,10,0.55);
}
.byline-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  background: var(--ink);
  color: var(--neon);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  white-space: nowrap;
}
.byline-pill i {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--neon);
  box-shadow: 0 0 8px var(--neon);
  animation: pulse 1.6s var(--ease) infinite;
}
@media (max-width: 560px) {
  .byline { gap: 12px; flex-wrap: wrap; }
  .byline-pill { order: 3; flex: 0 0 auto; }
  .byline-meta strong { font-size: 1.2rem; }
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 4vw, 56px);
}
@media (min-width: 900px) {
  .about-grid { grid-template-columns: 7fr 4fr; align-items: start; }
}
.about-text p {
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.5;
  margin-bottom: 1.1em;
  color: var(--ink);
  max-width: 56ch;
}
.about-text strong {
  font-weight: 700;
  background: var(--pink);
  color: var(--black);
  padding: 0 8px;
  margin: 0 -2px;
  display: inline-block;
  transform: rotate(-1.2deg);
}

.about-tags {
  list-style: none;
  display: flex; flex-wrap: wrap; gap: 8px;
  align-content: start;
}
.about-tags li {
  padding: 7px 14px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--cream);
  transition: background .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.about-tags li:hover { background: var(--ink); color: var(--neon); transform: translateY(-2px) rotate(-2deg); }
.about-tags li:nth-child(3n)   { transform: rotate(-1.5deg); }
.about-tags li:nth-child(3n+1) { transform: rotate(1deg); }
.about-tags li:nth-child(3n+2) { transform: rotate(-0.5deg); }

/* ── STATS ───────────────────────────────────────────────────── */
.sec-stats { background: var(--black); color: var(--neon); }
.sec-stats .sec-title { color: var(--white); }
.sec-stats .sec-title em { color: var(--neon); }

.stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 4vw, 56px);
  margin-bottom: clamp(64px, 8vw, 100px);
}
@media (min-width: 800px) {
  .stats { grid-template-columns: repeat(3, 1fr); }
}
.stat {
  position: relative;
  border-top: 2px solid var(--neon);
  padding-top: 22px;
  display: grid; gap: 10px;
}
.stat-num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(6rem, 14vw, 12rem);
  line-height: 0.85;
  letter-spacing: -0.06em;
  font-variation-settings: "opsz" 144;
  color: var(--neon);
  font-feature-settings: "tnum"; font-variant-numeric: tabular-nums;
}
.stat-num sup {
  font-size: 0.4em;
  vertical-align: super;
  color: var(--white);
  font-weight: 400;
  margin-left: 4px;
}
.stat-lab {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--white);
}
.stat-cap {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 16px;
  color: var(--neon);
  opacity: .85;
  font-variation-settings: "opsz" 32;
  max-width: 28ch;
}

/* Languages */
.langs {
  border-top: 2px solid var(--neon);
  padding-top: 22px;
  display: grid;
  gap: 16px;
  max-width: 700px;
}
.langs-head {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--white);
}
.langs ol { list-style: none; display: grid; gap: 14px; }
.langs li {
  display: grid;
  grid-template-columns: 130px 1fr 80px;
  align-items: center;
  gap: 18px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  font-variation-settings: "opsz" 32;
  color: var(--neon);
}
.langs li[lang="ar"], .lg-name[lang="ar"] {
  font-family: var(--font-arabic);
  font-style: normal;
  font-weight: 700;
}
.langs .lg-bar {
  display: block;
  height: 10px;
  background: rgba(184,255,58,0.15);
  border-radius: 999px;
  overflow: hidden;
}
.langs .lg-bar i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--neon);
  border-radius: 999px;
  transition: width 1.2s var(--ease);
}
.sec-stats.is-visible .lg-bar i { width: var(--w); }
.langs li:nth-child(1) .lg-bar i { transition-delay: .1s; }
.langs li:nth-child(2) .lg-bar i { transition-delay: .25s; }
.langs li:nth-child(3) .lg-bar i { transition-delay: .4s; }
.langs .lg-pct {
  font-family: var(--font-mono); font-style: normal;
  font-size: 11px; letter-spacing: 0.08em;
  text-align: right; color: var(--white);
}
@media (max-width: 600px) {
  .langs li { grid-template-columns: 1fr 60px; gap: 12px; }
  .langs .lg-bar { grid-column: 1 / -1; order: 3; }
}

/* ── WORK / SERVICES ─────────────────────────────────────────── */
.sec-work .sec-title em { color: var(--blue); }
.work-list {
  list-style: none;
  border-top: 2px solid var(--ink);
}
.work-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: clamp(16px, 3vw, 32px);
  padding: clamp(22px, 3vw, 32px) clamp(8px, 1.5vw, 20px);
  border-bottom: 2px solid var(--ink);
  cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease);
}
.work-item:hover { background: var(--ink); color: var(--yellow); }
.w-num {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding-top: 14px;
  opacity: .7;
}
.w-body {
  display: grid;
  gap: 8px;
  min-width: 0;
}
.w-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.8rem, 5vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-variation-settings: "opsz" 144;
  margin: 0;
}
.w-desc {
  font-size: 15.5px;
  line-height: 1.55;
  max-width: 60ch;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity .35s var(--ease), max-height .4s var(--ease), margin-top .35s var(--ease);
  margin-top: 0;
}
.w-tags {
  display: inline-block;
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--blue);
  opacity: .65;
  transition: color .25s var(--ease), opacity .25s var(--ease);
}
.work-item:hover .w-desc {
  opacity: 1;
  max-height: 14em;
  margin-top: 10px;
}
.work-item:hover .w-tags {
  color: var(--yellow);
  opacity: .95;
}
@media (max-width: 700px) {
  .work-item { grid-template-columns: 50px 1fr; gap: 14px; padding-block: 20px; }
  .w-title { font-size: clamp(1.5rem, 7vw, 2.4rem); }
  .w-desc { opacity: 1; max-height: none; margin-top: 10px; }
  .work-item:hover { background: transparent; color: var(--ink); }
  .work-item:hover .w-tags { color: var(--blue); opacity: .8; }
}

/* ── TIMELINE ────────────────────────────────────────────────── */
.sec-time { background: var(--blue); color: var(--white); }
.sec-time .sec-title em { color: var(--acid); }
.tl {
  list-style: none;
  border-top: 2px solid var(--white);
}
.tl li {
  display: grid;
  gap: 12px;
  padding: clamp(22px, 3vw, 36px) clamp(8px, 1.5vw, 16px);
  border-bottom: 2px solid rgba(255,255,255,0.25);
  transition: background .25s var(--ease);
}
.tl li:hover { background: rgba(255,255,255,0.06); }
.tl-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 18px;
}
.tl-date {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--acid);
  flex: 0 0 auto;
}
.tl h4 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-variation-settings: "opsz" 72;
  margin: 0;
}
.tl p {
  font-size: 15.5px;
  max-width: 75ch;
  color: rgba(255,255,255,0.82);
  line-height: 1.55;
  margin: 0;
}
.tl .now .tl-date::after {
  content: " ●";
  display: inline-block;
  color: var(--acid);
  animation: pulse 1.4s var(--ease) infinite;
  margin-left: 6px;
}

/* ── CONTACT ─────────────────────────────────────────────────── */
.sec-contact { text-align: center; min-height: 90vh; }
.contact-mega {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(4rem, 16vw, 13rem);
  line-height: 0.85;
  letter-spacing: -0.05em;
  font-variation-settings: "opsz" 144;
  margin-bottom: clamp(40px, 6vw, 80px);
}
.contact-mega em {
  font-style: italic;
  font-weight: 400;
  color: var(--ink);
  font-variation-settings: "opsz" 144;
}
.big-mail {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.6rem, 5vw, 3.6rem);
  letter-spacing: -0.03em;
  border-bottom: 4px solid var(--ink);
  padding-bottom: 8px;
  font-variation-settings: "opsz" 72;
  transition: color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.big-mail span { display: inline-block; transition: transform .25s var(--ease); }
.big-mail:hover { color: var(--white); border-color: var(--white); transform: translateY(-3px); }
.big-mail:hover span { transform: translate(4px, -4px); }

.socials {
  list-style: none;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  justify-content: center;
  margin-top: clamp(36px, 6vw, 60px);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
}
.socials a { padding: 8px 0; transition: opacity .2s var(--ease); }
.socials a:hover { opacity: .55; }

/* ── FOOTER ──────────────────────────────────────────────────── */
.foot {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 22px var(--pad-x);
  background: var(--ink);
  color: rgba(255,255,255,0.55);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.foot-mid { opacity: .4; }

/* ── CUSTOM CURSOR (blob) ────────────────────────────────────── */
.cur-blob {
  position: fixed;
  top: 0; left: 0;
  width: 26px; height: 26px;
  background: var(--ink);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
  transition: width .25s var(--ease), height .25s var(--ease), background .2s var(--ease);
  opacity: 0;
}
body.is-loaded .cur-blob { opacity: 1; }
body.cur-hover .cur-blob {
  width: 76px; height: 76px;
  background: var(--neon);
}
@media (hover: none), (pointer: coarse) {
  .cur-blob { display: none; }
  body { cursor: auto !important; }
}

/* ────────────────────────────────────────────────────────────
   WATERMARK · giant outlined section numbers
   ──────────────────────────────────────────────────────────── */
.sec { overflow: hidden; }
.watermark {
  position: absolute;
  bottom: -8%;
  right: -3%;
  z-index: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(14rem, 32vw, 38rem);
  line-height: 0.85;
  letter-spacing: -0.07em;
  font-variation-settings: "opsz" 144;
  color: transparent;
  -webkit-text-stroke: 1.4px currentColor;
  pointer-events: none;
  user-select: none;
  opacity: .07;
  white-space: nowrap;
}
[data-theme="black"] .watermark,
[data-theme="blue"] .watermark { opacity: .11; }
[data-theme="acid"] .watermark { opacity: .12; }
.sec > *:not(.watermark):not(.blob-canvas) { position: relative; z-index: 1; }
@media (max-width: 700px) {
  .watermark { font-size: clamp(12rem, 50vw, 22rem); right: -8%; bottom: -4%; }
}

/* ────────────────────────────────────────────────────────────
   FLOURISHES · scattered decorative SVG marks
   ──────────────────────────────────────────────────────────── */
.flourish {
  position: absolute;
  pointer-events: none;
  z-index: 1;
  opacity: .9;
  color: var(--ink);
}

/* Hero star + arrow */
.flourish-star {
  width: 56px; height: 56px;
  top: 110px;
  right: clamp(20px, 5vw, 80px);
  color: var(--ink);
  animation: spin 18s linear infinite;
  opacity: .85;
}
.flourish-arrow {
  width: 110px; height: 60px;
  bottom: 38%;
  left: 8%;
  color: var(--ink);
  transform: rotate(-12deg);
  opacity: .55;
}
@media (max-width: 760px) {
  .flourish-star { width: 38px; height: 38px; top: 70px; }
  .flourish-arrow { display: none; }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Thesis sparks */
.sec-thesis .flourish { color: var(--black); }
.flourish-spark {
  width: 28px; height: 28px;
  animation: sparkPulse 3s var(--ease) infinite;
}
.flourish-spark.s1 { top: 18%; left: 9%; animation-delay: 0s; }
.flourish-spark.s2 { top: 22%; right: 12%; animation-delay: .9s; width: 36px; height: 36px; }
.flourish-spark.s3 { bottom: 24%; left: 18%; animation-delay: 1.7s; width: 22px; height: 22px; }
.flourish-spark.cs { bottom: 22%; right: 12%; animation-delay: .4s; width: 32px; height: 32px; color: var(--ink); }
@keyframes sparkPulse {
  0%, 100% { transform: scale(1) rotate(0); opacity: .9; }
  50%      { transform: scale(1.3) rotate(45deg); opacity: 1; }
}

.flourish-squiggle {
  width: 180px; height: 30px;
  bottom: 14%;
  right: 10%;
  color: var(--black);
  transform: rotate(-8deg);
  opacity: .65;
}
@media (max-width: 760px) {
  .flourish-spark.s2, .flourish-squiggle { display: none; }
}

/* Contact circles */
.flourish-circle {
  color: var(--ink);
  animation: spin 30s linear infinite;
}
.flourish-circle.c1 {
  width: 110px; height: 110px;
  top: 14%; left: 8%;
  opacity: .7;
}
.flourish-circle.c2 {
  width: 70px; height: 70px;
  bottom: 18%; right: 10%;
  opacity: .55;
  animation-direction: reverse;
  animation-duration: 22s;
}
@media (max-width: 700px) {
  .flourish-circle.c1 { width: 60px; height: 60px; top: 10%; }
  .flourish-circle.c2 { width: 50px; height: 50px; }
}

/* ────────────────────────────────────────────────────────────
   PYROTECHNICS · scroll bar, dot nav, trail, ripple, glow
   ──────────────────────────────────────────────────────────── */

/* Scroll progress bar */
.scroll-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  z-index: 95;
  pointer-events: none;
  background: rgba(255,255,255,0.06);
  mix-blend-mode: difference;
}
.scroll-bar i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--neon), var(--pink), var(--yellow), var(--blue), var(--neon));
  background-size: 200% 100%;
  animation: barShift 6s linear infinite;
  box-shadow: 0 0 12px rgba(184,255,58,0.65), 0 0 24px rgba(255,58,140,0.35);
  transition: width .12s var(--ease);
}
@keyframes barShift {
  from { background-position: 0 0; }
  to   { background-position: 200% 0; }
}

/* Dot nav (right edge) */
.dot-nav {
  position: fixed;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 80;
  display: grid;
  gap: 14px;
  mix-blend-mode: difference;
  color: var(--white);
}
.dot-nav a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 4px 0;
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.dot-nav .d {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  transition: background .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.dot-nav .dl {
  opacity: 0;
  transform: translateX(6px);
  transition: opacity .25s var(--ease), transform .25s var(--ease);
  pointer-events: none;
}
.dot-nav a:hover .dl,
.dot-nav a.active .dl { opacity: 1; transform: none; }
.dot-nav a.active .d {
  background: currentColor;
  box-shadow: 0 0 0 4px rgba(255,255,255,0.15);
  transform: scale(1.15);
}
@media (max-width: 760px) {
  .dot-nav { display: none; }
}

/* Trail canvas */
.trail-canvas {
  position: fixed;
  inset: 0;
  width: 100%; height: 100%;
  z-index: 70;
  pointer-events: none;
  mix-blend-mode: screen;
}
@media (hover: none), (pointer: coarse) {
  .trail-canvas { display: none; }
}

/* Click ripple */
.ripple {
  position: fixed;
  pointer-events: none;
  width: 8px; height: 8px;
  border: 2px solid var(--neon);
  border-radius: 50%;
  z-index: 9998;
  transform: translate(-50%, -50%);
  animation: rippleOut .7s var(--ease) forwards;
  mix-blend-mode: difference;
}
@keyframes rippleOut {
  0%   { width: 8px; height: 8px; opacity: 1; }
  100% { width: 240px; height: 240px; opacity: 0; }
}

/* Stat number neon glow + flicker */
.stat-num {
  text-shadow: 0 0 0 transparent;
  transition: text-shadow .8s var(--ease);
}
.sec-stats.is-visible .stat-num {
  text-shadow:
    0 0 10px rgba(184,255,58,0.55),
    0 0 30px rgba(184,255,58,0.32),
    0 0 60px rgba(184,255,58,0.18);
  animation: flicker 5s var(--ease) 1.6s infinite;
}
@keyframes flicker {
  0%, 9%, 11%, 100%  { opacity: 1; }
  10%                 { opacity: .82; }
  41%, 43%            { opacity: 1; }
  42%                 { opacity: .92; }
}

/* Magnetic hover hint — slight glow on key CTAs */
.hero-cta, .big-mail, .nav-cta {
  will-change: transform;
}
.hero-cta::after, .big-mail::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: inherit;
  background: radial-gradient(circle, rgba(184,255,58,0.35), transparent 70%);
  opacity: 0;
  transition: opacity .3s var(--ease);
  z-index: -1;
}
.hero-cta { position: relative; }
.big-mail { position: relative; display: inline-block; }
.hero-cta:hover::after, .big-mail:hover::after { opacity: 1; }

/* Tilt-able cards */
.stat, .work-item {
  transform-style: preserve-3d;
  transform: perspective(900px) rotateX(0) rotateY(0);
  will-change: transform;
  transition: transform .25s var(--ease);
}

/* Section enter flash — when a section comes into view */
.sec.flash::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.06);
  pointer-events: none;
  animation: flashFade .45s var(--ease) forwards;
}
@keyframes flashFade {
  from { opacity: 1; }
  to   { opacity: 0; }
}

/* Hero pill subtle outer ring */
.pill {
  position: relative;
}
.pill::before {
  content: "";
  position: absolute; inset: -3px;
  border-radius: 999px;
  background: conic-gradient(from 0deg, transparent, var(--ink), transparent 30%);
  z-index: -1;
  animation: pillRing 4s linear infinite;
  opacity: .35;
}
@keyframes pillRing {
  to { transform: rotate(360deg); }
}

/* ── A11Y ────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .cur-blob, .blob-canvas, .trail-canvas, .scroll-bar, .ripple { display: none !important; }
  body { cursor: auto !important; }
  html { scroll-behavior: auto; }
}
:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }
