:root {
  --paper: #EFEEE9;
  --ink: #101014;
  --accent: #2438FF;
  --muted: #878782;
  --line: rgba(16, 16, 20, 0.14);
  --card: #E7E6E0;
  --pad: clamp(20px, 4vw, 64px);
}

html.dark {
  --paper: #0E0E11;
  --ink: #EFEEE9;
  --accent: #5A68FF;
  --muted: #6E6E74;
  --line: rgba(239, 238, 233, 0.16);
  --card: #16161B;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Archivo', sans-serif;
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
  transition: background 0.5s ease, color 0.5s ease;
  cursor: none;
}

@media (hover: none) {
  body {
    cursor: auto;
  }
}

::selection {
  background: var(--accent);
  color: var(--paper);
}

a {
  color: inherit;
  text-decoration: none;
  cursor: none;
}

@media (hover: none) {
  a {
    cursor: auto;
  }
}
.mono {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mono.dim {
  color: var(--muted);
}
.rv {
  opacity: 0;
  transform: translateY(40px);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  body {
    cursor: auto;
  }
}
@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(0.5);
    opacity: 0.4;
  }
}

@keyframes drip {
  to {
    top: 100%;
  }
}
.cursor,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  border-radius: 50%;
}

.cursor {
  width: 8px;
  height: 8px;
  background: var(--accent);
  transform: translate(-50%, -50%);
}

.cursor-ring {
  width: 34px;
  height: 34px;
  border: 1px solid var(--accent);
  transform: translate(-50%, -50%);
  opacity: 0.55;
  transition: width 0.25s, height 0.25s, opacity 0.25s;
}

.cursor-ring.hovering {
  width: 56px;
  height: 56px;
  opacity: 1;
}

@media (hover: none) {
  .cursor,
  .cursor-ring {
    display: none;
  }
}
#loader {
  position: fixed;
  inset: 0;
  background: var(--ink);
  color: var(--paper);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
}

#loader .big {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(48px, 10vw, 120px);
  letter-spacing: -0.02em;
  display: flex;
  overflow: hidden;
}

#loader .big span {
  display: inline-block;
  transform: translateY(110%);
}

#loader .big .bang {
  color: var(--accent);
}

#loader .pct {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.2em;
}
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px var(--pad);
  mix-blend-mode: difference;
  color: #EFEEE9;
}

header .logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
}

header nav {
  display: flex;
  gap: 28px;
  align-items: center;
}

header .mono {
  color: #EFEEE9;
}

header a.navlink {
  position: relative;
}

header a.navlink::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 1px;
  background: #EFEEE9;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s cubic-bezier(0.65, 0, 0.35, 1);
}

header a.navlink:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

#themeToggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: #EFEEE9;
  cursor: none;
  padding: 4px 0;
}

.theme-toggle-icon {
  font-size: 15px;
  line-height: 1;
}

.theme-toggle-label {
  text-transform: uppercase;
}

@media (hover: none) {
  #themeToggle {
    cursor: pointer;
  }
}

.hud {
  position: fixed;
  bottom: 18px;
  z-index: 100;
  mix-blend-mode: difference;
  color: #EFEEE9;
}

.hud.left {
  left: var(--pad);
}

.hud.right {
  right: var(--pad);
  text-align: right;
}

#footer {
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-top: 16vh;
  padding-bottom: 110px;
}

#footer .cta-title {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(52px, 11vw, 180px);
  line-height: 0.92;
  letter-spacing: -0.04em;
}

#footer .cta-title .bang {
  color: var(--accent);
}

.magnet {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 6vh;
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 20px 34px;
  font-family: 'Space Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.06em;
  position: relative;
  overflow: hidden;
  transition: color 0.35s;
}

.magnet::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: translateY(101%);
  transition: transform 0.45s cubic-bezier(0.65, 0, 0.35, 1);
  border-radius: 999px;
}

.magnet:hover::before {
  transform: translateY(0);
}

.magnet span {
  position: relative;
  z-index: 1;
}

.magnet:hover {
  color: var(--paper);
  border-color: var(--accent);
}

.foot-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 10vh;
}

.foot-grid .links {
  display: flex;
  gap: 26px;
}

.foot-grid a {
  position: relative;
}

.foot-grid a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s;
}

.foot-grid a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}
#gl {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

main {
  position: relative;
  z-index: 1;
}

section {
  padding: 0 var(--pad);
}
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.hero-eyebrow {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 2.5vh;
}

.hero-eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s infinite;
}

h1.hero-title {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(88px, 24vw, 340px);
  line-height: 0.86;
  letter-spacing: -0.04em;
  display: flex;
  align-items: baseline;
  user-select: none;
}

h1 .l {
  display: inline-block;
  overflow: hidden;
}

h1 .l span {
  display: inline-block;
  transform: translateY(115%);
}

h1 .bang span {
  color: var(--accent);
}

.hero-sub {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 4vh;
}

.hero-sub .tag {
  font-family: 'Syne', sans-serif;
  font-weight: 500;
  font-size: clamp(18px, 2.4vw, 30px);
  letter-spacing: -0.01em;
  max-width: 520px;
  line-height: 1.2;
}

.hero-sub .tag em {
  font-style: normal;
  color: var(--accent);
}

.scrollcue {
  display: flex;
  align-items: center;
  gap: 10px;
}

.scrollcue .bar {
  width: 1px;
  height: 44px;
  background: var(--ink);
  overflow: hidden;
  position: relative;
}

.scrollcue .bar::after {
  content: "";
  position: absolute;
  left: 0;
  top: -100%;
  width: 100%;
  height: 100%;
  background: var(--accent);
  animation: drip 1.6s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}
#manifesto {
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.manifesto-inner {
  max-width: 1100px;
}

.def {
  margin-bottom: 5vh;
}

.def .word {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: clamp(28px, 4vw, 52px);
  letter-spacing: -0.02em;
}

.def .word .han {
  color: var(--accent);
  font-weight: 500;
}

.manifesto-text {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: clamp(28px, 4.6vw, 64px);
  line-height: 1.14;
  letter-spacing: -0.02em;
}

.manifesto-text .w {
  opacity: 0.14;
  display: inline-block;
  transition: none;
}

.manifesto-text .hl {
  color: var(--accent);
}

.manifesto-voice {
  display: block;
  margin-top: 0.55em;
  padding: 0.45em 0 0 0.65em;
  border-left: 2px solid color-mix(in srgb, var(--accent) 55%, transparent);
  font-family: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 0.93em;
  line-height: 1.32;
  letter-spacing: 0.012em;
  color: color-mix(in srgb, var(--ink) 82%, var(--muted));
}

.manifesto-text .manifesto-voice .hl {
  font-style: italic;
  font-weight: 400;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--accent) 45%, transparent);
  text-underline-offset: 0.14em;
  text-decoration-thickness: 1px;
}

.manifesto-emoji {
  display: inline-block;
  font-style: normal;
  font-family: 'Archivo', sans-serif;
  transform: rotate(-6deg);
  margin-left: 0.08em;
}
#work-wrap {
  overflow: visible;
  padding: 0;
}

#work-head {
  padding: 14vh var(--pad) 6vh;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 20px;
}

.sec-title {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(40px, 7vw, 110px);
  letter-spacing: -0.03em;
  line-height: 0.95;
}

.htrack {
  display: flex;
  gap: clamp(16px, 2vw, 32px);
  padding: 0 var(--pad);
  will-change: transform;
}

.wcard {
  flex: 0 0 auto;
  width: clamp(300px, 34vw, 480px);
  height: clamp(420px, 62vh, 560px);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.65, 0, 0.35, 1);
}

.wcard:hover {
  transform: translateY(-10px);
}

.wcard .fill {
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: translateY(101%);
  transition: transform 0.5s cubic-bezier(0.65, 0, 0.35, 1);
}

.wcard:hover .fill {
  transform: translateY(0);
}

.wcard > * {
  position: relative;
  z-index: 1;
}

.wcard .top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.wcard .num {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
}

.wcard h3 {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(26px, 2.6vw, 40px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin-top: 8px;
}

.wcard p {
  margin-top: 14px;
  max-width: 34ch;
  color: var(--muted);
  font-size: 15px;
}

.wcard .meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.wcard:hover h3,
.wcard:hover p,
.wcard:hover .num,
.wcard:hover .meta .mono {
  color: var(--paper);
}

.wcard:hover .meta .mono.dim {
  color: color-mix(in srgb, var(--paper) 70%, transparent);
}

.wcard .arrow {
  position: absolute;
  right: 24px;
  bottom: 24px;
  font-family: 'Syne', sans-serif;
  font-size: 28px;
  opacity: 0;
  transform: translate(-8px, 8px);
  transition: 0.35s;
}

.wcard:hover .arrow {
  opacity: 1;
  transform: translate(0, 0);
  color: var(--paper);
}
#room {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6vw;
  padding-top: 18vh;
  padding-bottom: 18vh;
}

#room .sticky {
  position: sticky;
  top: 18vh;
  align-self: start;
  height: fit-content;
}

#room .sticky .sec-title em {
  font-style: normal;
  color: var(--accent);
}

.point {
  border-top: 1px solid var(--line);
  padding: 5vh 0;
}

.point:last-child {
  border-bottom: 1px solid var(--line);
}

.point h4 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: clamp(22px, 2.4vw, 34px);
  letter-spacing: -0.02em;
  margin: 10px 0 12px;
}

.point p {
  color: var(--muted);
  max-width: 46ch;
}

@media (max-width: 820px) {
  #room {
    grid-template-columns: 1fr;
  }

  #room .sticky {
    position: static;
    margin-bottom: 6vh;
  }
}
#marquee {
  padding: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  white-space: nowrap;
}

.mq {
  display: inline-flex;
  gap: 0;
  padding: 2.2vh 0;
  will-change: transform;
}

.mq span {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(36px, 6vw, 84px);
  letter-spacing: -0.03em;
  padding-right: 6vw;
}

.mq span:nth-child(even) {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--ink);
}

/* ---------- mobile ---------- */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0;
    background: #101014;
    mix-blend-mode: normal;
    border-bottom: none;
  }

  header .logo {
    color: #EFEEE9;
    font-size: clamp(22px, 6vw, 28px);
    text-align: center;
    padding: 18px var(--pad) 16px;
  }

  header nav {
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 18px;
    width: 100%;
    background: var(--paper);
    padding: 14px var(--pad);
    border-bottom: 1px solid var(--line);
  }

  header nav .mono,
  header nav a.navlink,
  header nav #themeToggle {
    color: var(--accent);
  }

  header nav a.navlink::after {
    background: var(--accent);
  }

  header nav #themeToggle {
    padding: 6px 0;
    cursor: pointer;
  }

  .hud.right {
    display: none;
  }

  .hud.left {
    bottom: 14px;
    font-size: 10px;
  }

  #hero {
    min-height: auto;
    padding-top: clamp(130px, 24vh, 170px);
    padding-bottom: 6vh;
  }

  h1.hero-title {
    display: none;
  }

  .hero-eyebrow {
    margin-bottom: 1.5vh;
  }

  .hero-sub {
    flex-direction: column;
    align-items: stretch;
    gap: 32px;
    margin-top: 0;
  }

  .hero-sub .tag {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: clamp(40px, 11vw, 72px);
    line-height: 1.04;
    letter-spacing: -0.03em;
    max-width: none;
  }

  .hero-sub .scrollcue {
    align-self: flex-start;
  }

  #manifesto {
    min-height: auto;
    padding-top: 4vh;
    padding-bottom: 8vh;
  }

  .manifesto-text {
    font-size: clamp(40px, 11vw, 72px);
    line-height: 1.06;
    letter-spacing: -0.03em;
  }

  .manifesto-voice {
    padding-left: 0.5em;
    font-size: 0.92em;
  }

  #work-head {
    flex-direction: column;
    align-items: flex-start;
    padding-top: 10vh;
    padding-bottom: 4vh;
  }

  #hpin {
    padding-bottom: 6vh;
  }

  .htrack {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    transform: none !important;
    will-change: auto;
  }

  .wcard {
    width: 100%;
    height: auto;
    min-height: 300px;
  }

  .wcard p {
    max-width: none;
  }

  @media (hover: none) {
    .wcard:active {
      transform: translateY(-6px);
    }

    .wcard:active .fill {
      transform: translateY(0);
    }

    .wcard:active h3,
    .wcard:active p,
    .wcard:active .num,
    .wcard:active .meta .mono {
      color: var(--paper);
    }

    .wcard:active .arrow {
      opacity: 1;
      transform: translate(0, 0);
      color: var(--paper);
    }
  }

  #footer {
    min-height: auto;
    padding-top: 12vh;
    padding-bottom: 80px;
  }

  .foot-grid {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    width: 100%;
  }

  .foot-grid > .mono.dim {
    width: 100%;
    text-align: center;
  }

  .foot-grid .links {
    justify-content: center;
    flex-wrap: wrap;
    gap: 18px;
  }

  .magnet {
    width: 100%;
    justify-content: center;
    padding: 18px 24px;
  }
}
