:root {
  --bg: #070709;
  --surface: rgba(255, 255, 255, 0.055);
  --text: #f5f5f7;
  --muted: #a1a1aa;
  --line: rgba(255, 255, 255, 0.11);
  --glass: rgba(8, 8, 11, 0.7);
  --accent: #9d7cff;
}

:root[data-theme="light"] {
  --bg: #f5f5f7;
  --surface: rgba(255, 255, 255, 0.72);
  --text: #111114;
  --muted: #5c5c66;
  --line: rgba(15, 15, 20, 0.11);
  --glass: rgba(245, 245, 247, 0.75);
  --accent: #6741d9;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", Arial, Helvetica, sans-serif;
  transition: background .35s ease, color .35s ease;
}
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.shell { width: min(1180px, calc(100% - 44px)); margin-inline: auto; }

.cursorGlow {
  position: fixed;
  z-index: -1;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(157,124,255,.15), transparent 68%);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.nav {
  position: sticky;
  top: 14px;
  z-index: 20;
  margin-top: 14px;
  height: 58px;
  padding: 8px 10px 8px 14px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--glass);
  backdrop-filter: blur(22px) saturate(140%);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: var(--text);
  color: var(--bg);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -.04em;
}
.navLinks { display: flex; gap: 28px; color: var(--muted); font-size: 14px; font-weight: 600; }
.navLinks a { transition: color .2s ease; }
.navLinks a:hover { color: var(--text); }
.themeButton {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  cursor: pointer;
  transition: transform .2s ease;
}
.themeButton:hover { transform: rotate(18deg); }
.navTools { display: flex; align-items: center; gap: 8px; }
.commandButton {
  height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.hero { position: relative; min-height: 780px; padding: 170px 0 100px; overflow: hidden; }
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(3px);
  pointer-events: none;
  opacity: .75;
  animation: drift 12s ease-in-out infinite alternate;
}
.orbOne {
  width: 460px; height: 460px; right: -180px; top: 90px;
  background: radial-gradient(circle at 30% 30%, #9068ff, transparent 68%);
}
.orbTwo {
  width: 330px; height: 330px; right: 120px; bottom: -160px;
  background: radial-gradient(circle at 50% 50%, #1fc6ba, transparent 68%);
  animation-delay: -4s;
}
@keyframes drift { to { transform: translate3d(-30px, 28px, 0) scale(1.08); } }
.kicker {
  margin: 0 0 20px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.hero h1 {
  position: relative;
  z-index: 2;
  max-width: 990px;
  margin: 0;
  font-size: clamp(58px, 9vw, 122px);
  line-height: .88;
  letter-spacing: -.075em;
}
.hero h1 span {
  display: block;
  color: transparent;
  background: linear-gradient(90deg, #f1f1f5 5%, #8e8e9b 48%, #8e6fff);
  background-clip: text;
  -webkit-background-clip: text;
}
[data-theme="light"] .hero h1 span { background-image: linear-gradient(90deg, #27272e, #777784 55%, #6741d9); }
.heroCopy {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: 38px 0 0;
  color: var(--muted);
  font-size: clamp(19px, 2.4vw, 25px);
  line-height: 1.5;
  letter-spacing: -.025em;
}
.heroActions { display: flex; gap: 12px; margin-top: 38px; }
.primaryButton, .secondaryButton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 16px;
  font-weight: 800;
  font-size: 15px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.primaryButton { background: var(--text); color: var(--bg); gap: 16px; }
.secondaryButton { border: 1px solid var(--line); background: var(--surface); }
.primaryButton:hover, .secondaryButton:hover { transform: translateY(-3px); box-shadow: 0 15px 34px rgba(0, 0, 0, .18); }
.heroMeta { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 100px; color: var(--muted); font-size: 13px; }
.heroMeta span { display: flex; align-items: baseline; gap: 8px; }
.heroMeta b { color: var(--text); font-size: 22px; }
.reveal { opacity: 0; transform: translateY(22px); animation: reveal .8s cubic-bezier(.2,.8,.2,1) forwards; }
.delayOne { animation-delay: .08s; }
.delayTwo { animation-delay: .16s; }
.delayThree { animation-delay: .24s; }
@keyframes reveal { to { opacity: 1; transform: none; } }

.marquee {
  overflow: hidden;
  padding: 18px 0;
  border-block: 1px solid var(--line);
  color: var(--muted);
  white-space: nowrap;
}
.marquee div { display: inline-flex; align-items: center; gap: 28px; min-width: max-content; animation: marquee 28s linear infinite; }
.marquee span { font-size: 12px; font-weight: 800; letter-spacing: .12em; }
.marquee i { color: var(--accent); font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }

.section { padding: 130px 0; border-top: 1px solid var(--line); }
.sectionHeader { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 42px; }
.section h2, .contact h2 { margin: 0; max-width: 780px; font-size: clamp(42px, 6vw, 78px); line-height: .98; letter-spacing: -.055em; }
.filters { display: flex; padding: 5px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); }
.filters button {
  padding: 9px 13px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}
.filters button.active { background: var(--text); color: var(--bg); }
.projectGrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.projectCard {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
  transition: transform .3s ease, border-color .3s ease;
}
.projectCard:hover { transform: translateY(-7px); border-color: rgba(157, 124, 255, .5); }
.projectCard.filteredOut { display: none; }
.projectVisual { position: relative; height: 260px; overflow: hidden; border-bottom: 1px solid var(--line); }
.projectVisual::before, .projectVisual::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(4px);
  transition: transform .5s ease;
}
.projectVisual::before { width: 270px; height: 270px; right: -60px; top: -70px; background: var(--project-gradient); }
.projectVisual::after { width: 180px; height: 180px; left: -50px; bottom: -80px; background: var(--project-gradient); opacity: .55; }
.projectCard:hover .projectVisual::before { transform: scale(1.16) translate(-12px, 14px); }
.violet { --project-gradient: radial-gradient(circle, #9b78ff, transparent 68%); background: #171126; }
.gold { --project-gradient: radial-gradient(circle, #f6c35b, transparent 68%); background: #211a0f; }
.blue { --project-gradient: radial-gradient(circle, #4287ff, transparent 68%); background: #0c172b; }
.cyan { --project-gradient: radial-gradient(circle, #27c5ca, transparent 68%); background: #091d22; }
.red { --project-gradient: radial-gradient(circle, #ff5c6f, transparent 68%); background: #251015; }
.orange { --project-gradient: radial-gradient(circle, #ff8a45, transparent 68%); background: #24150c; }
.projectMark {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 82px;
  font-weight: 900;
  letter-spacing: -.09em;
  color: rgba(255, 255, 255, .9);
  text-shadow: 0 20px 80px rgba(0,0,0,.45);
}
.windowChrome { position: absolute; z-index: 2; top: 20px; left: 20px; display: flex; gap: 6px; }
.windowChrome i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.35); }
.visualLines { position: absolute; z-index: 2; left: 26px; right: 26px; bottom: 22px; display: grid; gap: 7px; }
.visualLines span { width: 36%; height: 4px; border-radius: 3px; background: rgba(255,255,255,.2); }
.visualLines span:nth-child(2) { width: 58%; }
.visualLines span:nth-child(3) { width: 25%; }
.projectBody { padding: 30px; }
.eyebrow { margin: 0 0 9px; color: var(--accent); font-size: 11px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.projectBody h3, .videoSlot h3 { margin: 0; font-size: 29px; letter-spacing: -.045em; }
.projectBody > p:not(.eyebrow), .videoSlot p:not(.eyebrow) { min-height: 68px; color: var(--muted); line-height: 1.55; }
.tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 20px; }
.tags span { padding: 7px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 11px; font-weight: 700; }
.projectLinks { display: flex; gap: 18px; margin-top: 26px; font-size: 13px; font-weight: 800; }
.projectLinks a { border-bottom: 1px solid transparent; }
.projectLinks a:hover { border-color: currentColor; }
.detailButton {
  padding: 0;
  border: 0;
  border-bottom: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}
.detailButton:hover { border-color: currentColor; }
.videoSlot {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 18px;
  padding: 32px;
  border: 1px dashed var(--line);
  border-radius: 25px;
  background: linear-gradient(110deg, var(--surface), transparent);
}
.playGlyph { flex: 0 0 auto; width: 70px; height: 70px; display: grid; place-items: center; border-radius: 50%; background: var(--text); color: var(--bg); padding-left: 4px; }
.soonPill { margin-left: auto; padding: 8px 12px; border-radius: 999px; background: var(--surface); color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }

.archiveGrid { border-top: 1px solid var(--line); }
.archiveGrid a {
  display: grid;
  grid-template-columns: 50px 1fr auto;
  gap: 25px;
  align-items: center;
  padding: 27px 10px;
  border-bottom: 1px solid var(--line);
  transition: padding .25s ease, background .25s ease;
}
.archiveGrid a:hover { padding-inline: 22px; background: var(--surface); }
.archiveGrid span, .archiveGrid p, .archiveGrid i { color: var(--muted); }
.archiveGrid b { font-size: 19px; }
.archiveGrid p { margin: 6px 0 0; font-size: 13px; }
.archiveGrid i { font-style: normal; }

.timeline { position: relative; border-left: 1px solid var(--line); margin-left: 70px; }
.timeline article { display: grid; grid-template-columns: 110px 1fr; gap: 35px; padding: 0 0 70px 35px; }
.timeline article:last-child { padding-bottom: 0; }
.timeline article::before { content: ""; position: absolute; left: -6px; width: 11px; height: 11px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 8px var(--bg); }
.timeline article > span { color: var(--accent); font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .1em; }
.timeline h3 { margin: 0 0 10px; font-size: 29px; letter-spacing: -.04em; }
.timeline article p:last-child { max-width: 700px; margin: 0; color: var(--muted); line-height: 1.65; }

.aboutGrid { display: grid; grid-template-columns: 1fr .8fr; gap: 80px; align-items: start; }
.aboutCopy { color: var(--muted); font-size: 20px; line-height: 1.65; }
.aboutCopy p:first-child { margin-top: 0; }
.identityGrid { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 80px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.identityGrid div { min-height: 210px; padding: 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.identityGrid span { color: var(--accent); font-size: 12px; font-weight: 800; }
.identityGrid b { display: block; margin-top: 58px; font-size: 22px; }
.identityGrid p { color: var(--muted); font-size: 13px; line-height: 1.5; }
.stackPanel { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 28px; overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: var(--line); }
.stackPanel > div { min-height: 210px; padding: 27px; background: var(--bg); }
.stackPanel span { display: inline-block; margin: 0 7px 8px 0; padding: 7px 10px; border-radius: 999px; background: var(--surface); color: var(--muted); font-size: 12px; }
.sectionNote { max-width: 300px; color: var(--muted); line-height: 1.5; }
.credentialList { border-top: 1px solid var(--line); }
.credentialList a {
  display: grid;
  grid-template-columns: .7fr 1.8fr auto;
  gap: 24px;
  align-items: center;
  padding: 25px 8px;
  border-bottom: 1px solid var(--line);
  transition: padding .25s ease, background .25s ease;
}
.credentialList a:hover { padding-inline: 18px; background: var(--surface); }
.credentialList span, .credentialList i { color: var(--muted); font-size: 12px; font-style: normal; }
.credentialList b { font-size: 18px; }
.creativeCard { position: relative; overflow: hidden; padding: clamp(34px, 6vw, 75px); border: 1px solid var(--line); border-radius: 34px; background: linear-gradient(135deg, rgba(157,124,255,.15), var(--surface) 48%, rgba(31,198,186,.1)); }
.creativeCard::after { content: "♪"; position: absolute; right: 4%; top: 0; color: rgba(157,124,255,.12); font-size: 240px; font-weight: 900; line-height: 1; }
.creativeCard h2, .creativeCard > p { position: relative; z-index: 1; max-width: 780px; }
.creativeCard > p:not(.kicker) { color: var(--muted); font-size: 19px; line-height: 1.6; }
.creativeStats { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 55px; }
.creativeStats span { padding: 20px; border: 1px solid var(--line); border-radius: 17px; background: rgba(0,0,0,.12); color: var(--muted); font-size: 12px; }
.creativeStats b { display: block; margin-bottom: 8px; color: var(--text); font-size: 18px; }
.contact { padding: 150px 0; text-align: center; }
.contact h2 { max-width: none; }
.contact > p:not(.kicker) { margin: 18px 0 34px; color: var(--muted); font-size: 20px; }
footer { display: flex; justify-content: space-between; padding: 28px 0 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
footer div { display: flex; gap: 18px; }
footer a:hover { color: var(--text); }
.centered { justify-content: center; }

dialog {
  color: var(--text);
}
.projectDialog, .commandDialog {
  width: min(650px, calc(100% - 30px));
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(16,16,21,.94);
  color: #f5f5f7;
  box-shadow: 0 35px 100px rgba(0,0,0,.55);
  backdrop-filter: blur(28px);
}
.projectDialog { padding: 38px; }
.projectDialog::backdrop, .commandDialog::backdrop { background: rgba(0,0,0,.68); backdrop-filter: blur(8px); }
.projectDialog h2 { margin: 0 0 14px; font-size: clamp(38px, 7vw, 60px); letter-spacing: -.055em; }
.projectDialog > p:not(.eyebrow) { color: #aaaab5; line-height: 1.65; }
.dialogClose { position: absolute; top: 17px; right: 17px; width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; background: rgba(255,255,255,.07); cursor: pointer; }
.dialogPoints { display: grid; gap: 9px; margin-top: 25px; }
.dialogPoints span { padding: 13px 15px; border-radius: 13px; background: rgba(255,255,255,.06); color: #c7c7cf; font-size: 13px; }
.commandDialog { padding: 12px; }
.commandHead { display: flex; justify-content: space-between; padding: 12px 13px 18px; color: #aaaab5; font-size: 12px; font-weight: 800; }
.commandHead button { border: 0; background: transparent; color: #aaaab5; cursor: pointer; }
.commandDialog > a { display: flex; gap: 20px; padding: 16px; border-radius: 14px; font-weight: 750; }
.commandDialog > a:hover { background: rgba(255,255,255,.08); }
.commandDialog > a span { color: #8e6fff; font-size: 11px; }

.observe { opacity: 0; transform: translateY(25px); transition: opacity .75s ease, transform .75s cubic-bezier(.2,.8,.2,1); }
.observe.inView { opacity: 1; transform: none; }

@media (max-width: 820px) {
  .navLinks { display: none; }
  .hero { min-height: auto; padding-top: 130px; }
  .hero h1 { font-size: clamp(55px, 18vw, 88px); }
  .heroMeta { margin-top: 70px; gap: 18px; }
  .section { padding: 90px 0; }
  .sectionHeader { align-items: start; flex-direction: column; }
  .projectGrid { grid-template-columns: 1fr; }
  .aboutGrid { grid-template-columns: 1fr; gap: 35px; }
  .identityGrid { grid-template-columns: 1fr 1fr; }
  .stackPanel { grid-template-columns: 1fr; }
  .creativeStats { grid-template-columns: 1fr 1fr; }
  .credentialList a { grid-template-columns: 1fr auto; }
  .credentialList span { grid-column: 1 / -1; }
}

@media (max-width: 520px) {
  .shell { width: min(100% - 28px, 1180px); }
  .heroActions { align-items: stretch; flex-direction: column; }
  .heroMeta { flex-direction: column; }
  .filters { width: 100%; overflow-x: auto; }
  .projectVisual { height: 220px; }
  .projectBody { padding: 24px; }
  .videoSlot { align-items: start; flex-direction: column; }
  .soonPill { margin-left: 0; }
  .identityGrid { grid-template-columns: 1fr; }
  .timeline { margin-left: 5px; }
  .timeline article { grid-template-columns: 1fr; gap: 12px; padding-left: 25px; }
  .creativeStats { grid-template-columns: 1fr; }
  .credentialList a { grid-template-columns: 1fr; gap: 8px; }
  footer { flex-direction: column; gap: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
