/* LUCA — portfolio. 4 switchable themes, Clash Display + Satoshi. */
:root, [data-theme="signal"] {
  --bg: #0a0a0b; --bg-2: #101012;
  --ink: #f2f2ef; --mut: rgba(242,242,239,.55); --mut2: rgba(242,242,239,.22);
  --acc: #c8f542; --acc-ink: #0a0a0b;
  --hair: rgba(242,242,239,.14);
  --m1: 0.039,0.039,0.043; --m2: 0.075,0.078,0.055; --m3: 0.784,0.961,0.259;
}
[data-theme="ember"] {
  --bg: #140e09; --bg-2: #1c1410;
  --ink: #f4ede4; --mut: rgba(244,237,228,.55); --mut2: rgba(244,237,228,.22);
  --acc: #d98e36; --acc-ink: #140e09;
  --hair: rgba(244,237,228,.14);
  --m1: 0.078,0.055,0.035; --m2: 0.125,0.086,0.055; --m3: 0.851,0.557,0.212;
}
[data-theme="bone"] {
  --bg: #f1ece3; --bg-2: #e7e0d3;
  --ink: #171310; --mut: rgba(23,19,16,.6); --mut2: rgba(23,19,16,.3);
  --acc: #8c1d18; --acc-ink: #f1ece3;
  --hair: rgba(23,19,16,.16);
  --m1: 0.945,0.925,0.890; --m2: 0.890,0.863,0.812; --m3: 0.549,0.114,0.094;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: auto; }
body {
  background: var(--bg); color: var(--ink);
  font-family: "Satoshi", sans-serif;
  overflow-x: hidden; -webkit-font-smoothing: antialiased;
  cursor: none;
  transition: background .5s ease, color .5s ease;
}
a { color: inherit; text-decoration: none; cursor: none; }
@media (pointer: coarse) { body, a { cursor: auto; } }
.accent { color: var(--acc); }

/* loader */
.loader { position: fixed; inset: 0; z-index: 200; background: var(--bg);
  display: flex; align-items: flex-end; justify-content: space-between; padding: 4vw 4.5vw; }
.loader-mark { font-family: "Clash Display", sans-serif; font-weight: 600; letter-spacing: .08em; font-size: 15px; color: var(--mut); }
.loader-mark span { color: var(--acc); }
.loader-count { font-family: "Clash Display", sans-serif; font-weight: 500; font-size: clamp(90px, 16vw, 230px); line-height: .8; }

/* grain */
.grain { position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='256' height='256'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.78' numOctaves='2'/%3E%3C/filter%3E%3Crect width='256' height='256' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 7s steps(8) infinite; }
@keyframes grain { 0%,100%{transform:translate(0,0)} 20%{transform:translate(-3%,2%)} 40%{transform:translate(2%,-3%)} 60%{transform:translate(-2%,-2%)} 80%{transform:translate(3%,3%)} }

/* cursor */
.cursor { position: fixed; top: 0; left: 0; z-index: 150; pointer-events: none;
  width: 13px; height: 13px; border-radius: 50%; background: var(--acc);
  mix-blend-mode: difference; transform: translate(-50%,-50%);
  transition: width .25s ease, height .25s ease; }
.cursor.is-link { width: 52px; height: 52px; }
@media (pointer: coarse) { .cursor { display: none; } }

/* theme switcher */
.themes { position: fixed; right: 4.5vw; bottom: 4.5vh; z-index: 120; display: flex; gap: 12px; }
.th { width: 26px; height: 26px; border-radius: 50%; cursor: none; border: 2px solid var(--hair);
  background: linear-gradient(135deg, var(--b) 50%, var(--c) 50%); transition: transform .2s ease; }
.th:hover { transform: scale(1.2); }
.th.active { outline: 2px solid var(--ink); outline-offset: 3px; }

/* nav */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; justify-content: space-between; align-items: center;
  padding: 24px 4.5vw; mix-blend-mode: difference; color: #fff; }
.nav-mark { font-family: "Clash Display", sans-serif; font-weight: 600; letter-spacing: .14em; font-size: 13px; }
.nav-cta { font-weight: 700; font-size: 12px; letter-spacing: .14em; border-bottom: 1px solid currentColor; padding-bottom: 2px; }

/* hero */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; }
.meshbg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-inner { position: relative; z-index: 2; width: 100%; padding: 0 4.5vw 5vh; }
.hero-kicker { font-size: clamp(11px, 1vw, 14px); font-weight: 700; letter-spacing: .26em;
  text-transform: uppercase; color: var(--mut); margin-bottom: 3vh; }
.hero-name { display: flex; flex-direction: column; line-height: .88; margin-bottom: 3.2vh; }
.hero-name .line { overflow: hidden; display: block; white-space: nowrap; }
.hero-name .split-me { display: inline-block; font-family: "Clash Display", sans-serif; }
.hero-name .line:nth-child(1) .split-me { font-weight: 600; font-size: clamp(70px, 17vw, 330px); letter-spacing: -0.01em; }
.hero-name .line:nth-child(2) .split-me {
  font-weight: 500; font-size: clamp(42px, 10.2vw, 200px); letter-spacing: .015em;
  color: transparent; -webkit-text-stroke: 2px var(--acc);
}
.hero-roles { display: flex; align-items: baseline; gap: 14px; margin-bottom: 5vh;
  font-size: clamp(18px, 2.2vw, 34px); font-weight: 500; }
.roles-static { color: var(--mut); }
.roles-rot { font-family: "Clash Display", sans-serif; font-weight: 600; color: var(--acc); display: inline-block; min-width: 9ch; }
.hero-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; }
.hero-tag { font-size: 12.5px; line-height: 1.6; letter-spacing: .08em; color: var(--mut); text-transform: uppercase; font-weight: 700; }
.hero-tag.right { text-align: right; }
.scroll-cue { display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--mut2); }
.scroll-cue span { width: 1px; height: 54px; background: linear-gradient(var(--acc), transparent); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0%{transform:scaleY(0);transform-origin:top} 50%{transform:scaleY(1);transform-origin:top} 51%{transform-origin:bottom} 100%{transform:scaleY(0);transform-origin:bottom} }

/* marquee */
.marquee { overflow: hidden; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); padding: 20px 0; background: var(--bg-2); transition: background .5s ease; }
.marquee-track { display: flex; width: max-content; white-space: nowrap; will-change: transform; }
.marquee-track span { font-family: "Clash Display", sans-serif; font-weight: 600;
  font-size: clamp(18px, 2.3vw, 32px); letter-spacing: .1em; padding-right: 12px; }

/* manifesto */
.manifesto-pin { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: 0 4.5vw; }
.manifesto-line { display: flex; flex-wrap: wrap; gap: 0 2vw; line-height: 1.04; max-width: 1300px; }
.mword { font-family: "Clash Display", sans-serif; font-weight: 500;
  font-size: clamp(46px, 8vw, 140px); letter-spacing: -0.01em; }
.mword.accent { color: var(--acc); }
.manifesto-sub { margin-top: 5vh; font-size: 14px; letter-spacing: .2em; text-transform: uppercase; color: var(--mut); font-weight: 700; }

/* section label */
.sect-label { display: flex; align-items: center; gap: 16px;
  font-size: 12px; font-weight: 900; letter-spacing: .3em; color: var(--mut);
  padding: 0 4.5vw; margin-bottom: 7vh; }
.tick { width: 36px; height: 2px; background: var(--acc); }

/* work */
.work { padding: 15vh 0 8vh; }
.proj { display: grid; grid-template-columns: 1.15fr .85fr; gap: 4vw; align-items: center;
  padding: 0 4.5vw; margin-bottom: 15vh; }
.proj.flip .proj-vis { order: 2; }
.proj.flip .proj-info { order: 1; text-align: right; }
.proj-vis { position: relative; overflow: hidden; aspect-ratio: 16/10; border: 1px solid var(--hair); }
.vis { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 18px; }

.vis-argus { background: linear-gradient(150deg, var(--bg-2), transparent 70%); align-items: flex-start; justify-content: flex-end; padding: 3vw; }
.vis-lines { display: flex; flex-direction: column; gap: 12px; font-family: ui-monospace, "Cascadia Mono", monospace; font-size: clamp(11px, 1.1vw, 16px); color: var(--mut); }
.vis-lines span::before { content: "▮ "; color: var(--acc); }
.vis-lines span:last-child { color: var(--acc); }

.vis-lockout { background: radial-gradient(80% 120% at 70% 20%, var(--bg-2), transparent); }
.vis-big { font-family: "Clash Display", sans-serif; font-weight: 700; font-size: clamp(54px, 6.5vw, 110px); line-height: .9; letter-spacing: .02em; text-align: center; color: transparent; -webkit-text-stroke: 1.5px var(--ink); }
.vis-pill { font-size: clamp(10px, 1vw, 14px); font-weight: 700; letter-spacing: .12em; border: 1px solid var(--hair); padding: 10px 20px; border-radius: 999px; color: var(--mut); }
.vis-pill::before { content: "● "; color: var(--acc); }

.vis-sibyl { background: linear-gradient(220deg, var(--bg-2), transparent 70%); }
.vis-wave { display: flex; align-items: center; gap: 6px; height: 90px; }
.vis-wave i { width: 4px; border-radius: 2px; background: var(--acc); height: 18%; animation: wv 1.2s ease-in-out infinite; }
.vis-wave i:nth-child(3n) { height: 64%; animation-delay: .15s; }
.vis-wave i:nth-child(3n+1) { height: 38%; animation-delay: .3s; }
.vis-wave i:nth-child(4n) { height: 86%; animation-delay: .45s; }
.vis-wave i:nth-child(5n) { height: 28%; animation-delay: .6s; }
@keyframes wv { 0%,100% { transform: scaleY(.55) } 50% { transform: scaleY(1) } }

.proj-idx { font-family: "Clash Display", sans-serif; font-weight: 500; font-size: 20px; color: var(--acc); display: block; margin-bottom: 2vh; }
.proj-info h3 { font-family: "Clash Display", sans-serif; font-weight: 600;
  font-size: clamp(38px, 4.6vw, 80px); letter-spacing: -0.01em; line-height: 1; }
.proj-role { font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--acc); font-weight: 700; margin-top: 14px; }
.proj-desc { font-size: clamp(15px, 1.25vw, 18.5px); line-height: 1.65; color: var(--mut); margin-top: 16px; max-width: 480px; }
.proj.flip .proj-desc { margin-left: auto; }
.proj-stack { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--mut2); margin-top: 16px; font-weight: 700; }

/* coach */
.coach { background: var(--acc); color: var(--acc-ink); padding: 15vh 0; transition: background .5s ease; }
.coach .sect-label { color: var(--acc-ink); opacity: .65; }
.coach .tick { background: var(--acc-ink); }
.coach-line { font-family: "Clash Display", sans-serif; font-weight: 600;
  font-size: clamp(30px, 4.6vw, 70px); line-height: 1.06; letter-spacing: -0.01em;
  padding: 0 4.5vw; max-width: 1250px; }
.coach-line em { font-style: normal; border-bottom: 4px solid var(--acc-ink); }
.certs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; padding: 0 4.5vw; margin-top: 8vh; max-width: 1250px; }
.cert { border: 2px solid var(--acc-ink); padding: 26px; }
.cert b { font-family: "Clash Display", sans-serif; font-weight: 700; font-size: clamp(34px, 3.6vw, 58px); display: block; line-height: 1; }
.cert span { font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; opacity: .75; display: block; margin-top: 10px; }

/* lens */
.lens-pin { min-height: 90svh; display: flex; flex-direction: column; justify-content: center; }
.lens-big { font-family: "Clash Display", sans-serif; font-weight: 700;
  font-size: clamp(56px, 10.5vw, 210px); line-height: .9; letter-spacing: -0.01em; padding: 0 4.5vw; white-space: nowrap; }
.lens-big .split-lens { display: inline-block; }
.lens-big em { font-style: normal; font-weight: 400; color: transparent; -webkit-text-stroke: 2px var(--ink); display: inline-block; }
.lens-sub { padding: 0 4.5vw; margin-top: 4vh; font-size: 15px; color: var(--mut); max-width: 460px; line-height: 1.7; }

/* stats */
.statband { display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.stat { padding: 6vh 2vw; text-align: center; border-left: 1px solid var(--hair); }
.stat:first-child { border-left: none; }
.stat b { font-family: "Clash Display", sans-serif; font-weight: 600; font-size: clamp(44px, 6.5vw, 110px); line-height: 1; }
.stat i { font-family: "Clash Display", sans-serif; font-style: normal; font-size: clamp(30px, 4.5vw, 76px); color: var(--acc); }
.stat span { display: block; margin-top: 12px; font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--mut); font-weight: 700; }

/* footer */
.cta { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 10vh 4.5vw; position: relative; }
.cta-kicker { font-size: 14px; letter-spacing: .3em; text-transform: uppercase; color: var(--mut); font-weight: 700; margin-bottom: 4vh; }
.cta-big { display: block; line-height: .92; white-space: nowrap; }
.cta-big .split-me2 { font-family: "Clash Display", sans-serif; font-weight: 700;
  font-size: clamp(60px, 13.5vw, 270px); letter-spacing: -0.02em; display: inline-block; }
.cta-big:hover .split-me2 { color: var(--acc); transition: color .4s ease; }
.cta-row { display: flex; gap: 22px; align-items: center; margin-top: 6vh; font-weight: 700; font-size: clamp(15px, 1.5vw, 21px); }
.cta-row .mag-inner { border-bottom: 1px solid var(--mut2); padding-bottom: 3px; }
.dotsep { color: var(--acc); }
.foot-legal { position: absolute; bottom: 4vh; left: 0; right: 0; font-size: 11px; letter-spacing: .08em; color: var(--mut2); padding: 0 4.5vw; }

/* magnetic */
.mag { display: inline-block; }
.mag .mag-inner { display: inline-block; }

/* reveal base */
[data-reveal] { opacity: 0; transform: translateY(26px); }

/* mobile */
@media (max-width: 860px) {
  .nav { padding: 18px 5vw; }
  .nav-mark { font-size: 11px; }
  .nav-cta { font-size: 10.5px; }
  .hero-name .line:nth-child(1) .split-me { font-size: 24vw; }
  .hero-name .line:nth-child(2) .split-me { font-size: 12.8vw; -webkit-text-stroke-width: 1.4px; }
  .hero-roles { flex-direction: column; gap: 4px; }
  .hero-foot { flex-direction: column; align-items: flex-start; gap: 22px; }
  .hero-tag.right { text-align: left; }
  .scroll-cue { display: none; }
  .mword { font-size: 11vw; }
  .proj, .proj.flip { grid-template-columns: 1fr; gap: 24px; margin-bottom: 12vh; }
  .proj.flip .proj-vis { order: 0; }
  .proj.flip .proj-info { order: 1; text-align: left; }
  .proj.flip .proj-desc { margin-left: 0; }
  .certs { grid-template-columns: 1fr; }
  .lens-big { white-space: normal; font-size: 19vw; }
  .statband { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: none; }
  .stat { border-top: 1px solid var(--hair); }
  .stat:nth-child(-n+2) { border-top: none; }
  .cta-big { white-space: normal; }
  .cta-big .split-me2 { font-size: 19vw; line-height: 1; }
  .cta-row { flex-direction: column; gap: 14px; }
  .dotsep { display: none; }
  .foot-legal { position: static; margin-top: 8vh; }
  .themes { right: auto; left: 5vw; bottom: 3vh; }
}

@media (prefers-reduced-motion: reduce) {
  .grain, .scroll-cue span, .vis-wave i { animation: none; }
  .cursor { display: none; }
  body, a { cursor: auto; }
  [data-reveal] { opacity: 1; transform: none; }
}
