:root {
  --ink: #090706;
  --paper: #eee9df;
  --muted: rgba(238, 233, 223, 0.58);
  --line: rgba(238, 233, 223, 0.24);
  --acid: #d8ff45;
  --panel: rgba(9, 7, 6, 0.82);
  --active-color: var(--acid);
  --font: "Syne", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--ink);
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.4;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--acid);
  color: var(--ink);
}

a,
button,
input {
  font: inherit;
}

a {
  color: inherit;
}

button {
  color: inherit;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.65rem 0.9rem;
  background: var(--paper);
  color: var(--ink);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

#plasma {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background: #130807;
}

.texture {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.23;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.83' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.28'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1;
  width: 26rem;
  height: 26rem;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.13;
  background: radial-gradient(circle, color-mix(in srgb, var(--cursor-color, #ff4f72) 62%, transparent), transparent 68%);
  filter: blur(20px);
  mix-blend-mode: screen;
  transform: translate3d(calc(var(--cursor-x, 50vw) - 50%), calc(var(--cursor-y, 50vh) - 50%), 0);
  transition: opacity 220ms ease, background 520ms ease;
  will-change: transform;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 1.6rem;
  color: var(--paper);
  transition: background 180ms ease, backdrop-filter 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(9, 7, 6, 0.62);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px rgba(238, 233, 223, 0.08), 0 1.5rem 4rem rgba(0, 0, 0, 0.18);
}

.mini-mark {
  font-weight: 800;
  text-decoration: none;
  font-size: 1.05rem;
  letter-spacing: -0.06em;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.4vw, 2.5rem);
}

.site-header nav a,
.private-link {
  position: relative;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--paper);
  text-decoration: none;
  font-size: 0.83rem;
  font-weight: 600;
  cursor: pointer;
}

.site-header nav a::after,
.private-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -0.3rem;
  height: 1px;
  background: currentColor;
  transition: right 180ms ease;
}

.site-header nav a:hover::after,
.site-header nav a:focus-visible::after,
.site-header nav a.is-current::after,
.private-link:hover::after,
.private-link:focus-visible::after {
  right: 0;
}

.site-header nav a.is-current {
  color: var(--paper);
  text-shadow: 0 0 1.4rem color-mix(in srgb, var(--acid) 48%, transparent);
}

.private-dot {
  display: inline-block;
  margin-left: 0.16rem;
  color: var(--acid);
  font-size: 0.42rem;
  line-height: 1;
  vertical-align: 0.18em;
}

main,
footer {
  position: relative;
  z-index: 2;
}

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 4, 3, 0.1), transparent 42%, rgba(5, 4, 3, 0.46)),
    radial-gradient(circle at 50% 45%, transparent 10%, rgba(5, 4, 3, 0.12) 75%);
}

.hero::after {
  content: "";
  position: absolute;
  right: -16vw;
  bottom: -22vw;
  width: 72vw;
  height: 72vw;
  border-radius: 29% 71% 62% 38% / 61% 34% 66% 39%;
  background:
    conic-gradient(from 30deg, transparent, rgba(255, 104, 142, 0.1), transparent 34%, rgba(112, 46, 154, 0.08), transparent 72%);
  filter: blur(34px);
  opacity: 0.62;
  transform: rotate(calc(-18deg + var(--scroll-shift, 0deg)));
  animation: aura-turn 22s linear infinite;
  pointer-events: none;
}

@keyframes aura-turn {
  to { transform: rotate(calc(342deg + var(--scroll-shift, 0deg))); }
}

.hero-title {
  position: absolute;
  inset: 0;
  margin: 0;
  color: var(--paper);
  font-weight: 800;
  letter-spacing: -0.095em;
  line-height: 0.72;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.18);
  pointer-events: none;
  will-change: transform;
  opacity: var(--hero-opacity, 1);
  filter: blur(var(--hero-blur, 0px));
  transform: translate3d(
    var(--hero-x, 0px),
    calc(var(--hero-y, 0px) - var(--hero-lift, 0px)),
    0
  ) scale(var(--hero-scale, 1));
  transform-origin: center bottom;
}

.hero-title span {
  position: absolute;
  display: block;
  font-size: clamp(7.5rem, 18vw, 18rem);
  white-space: nowrap;
  will-change: transform;
}

.word-half {
  top: 34%;
  left: 1.35rem;
  animation: drift-half 9s ease-in-out infinite alternate;
}

.word-woods {
  right: 1.35rem;
  bottom: 3.5rem;
  animation: drift-woods 11s ease-in-out infinite alternate;
}

@keyframes drift-half {
  from { transform: translate3d(0, -4px, 0) rotate(-0.2deg); }
  to { transform: translate3d(8px, 7px, 0) rotate(0.45deg); }
}

@keyframes drift-woods {
  from { transform: translate3d(5px, 4px, 0) rotate(0.25deg); }
  to { transform: translate3d(-7px, -5px, 0) rotate(-0.4deg); }
}

.hero-jump {
  position: absolute;
  right: 1.65rem;
  bottom: 1.2rem;
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  border: 1px solid rgba(238, 233, 223, 0.52);
  border-radius: 50%;
  color: var(--paper);
  text-decoration: none;
  opacity: var(--jump-opacity, 1);
  box-shadow: 0 0 2.5rem rgba(255, 92, 114, 0.16);
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
  animation: jump-breathe 3.4s ease-in-out infinite;
}

@keyframes jump-breathe {
  50% { box-shadow: 0 0 3.8rem rgba(255, 92, 114, 0.3); }
}

.hero-jump:hover,
.hero-jump:focus-visible {
  background: var(--paper);
  color: var(--ink);
  transform: translateY(0.25rem);
}

.work-section,
.about-section {
  background: rgba(9, 7, 6, 0.74);
  backdrop-filter: blur(22px) saturate(1.08);
}

.work-section {
  position: relative;
  min-height: 100svh;
  padding: 7rem 1.6rem 8rem;
  border-top: 1px solid var(--line);
  overflow: hidden;
  isolation: isolate;
}

.work-section::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 5%;
  right: -10%;
  width: 72vw;
  height: 76%;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 62% 36%, color-mix(in srgb, var(--active-color) 16%, transparent), transparent 50%),
    linear-gradient(112deg, transparent 28%, color-mix(in srgb, var(--active-color) 5%, transparent) 48%, transparent 66%);
  filter: blur(18px);
  opacity: 0.9;
  transition: background 620ms ease;
}

.section-intro {
  display: grid;
  grid-template-columns: 4rem 1fr;
  align-items: baseline;
  margin-bottom: clamp(3rem, 6vw, 6rem);
}

.section-number {
  margin: 0;
  color: var(--acid);
  font-size: 0.7rem;
  font-weight: 700;
}

.section-intro h2 {
  margin: 0;
  font-size: clamp(3.8rem, 9vw, 8.5rem);
  font-weight: 700;
  letter-spacing: -0.075em;
  line-height: 0.84;
}

.work-section > .section-intro {
  margin-bottom: clamp(4rem, 8vw, 7rem);
}

.work-section > .section-intro h2 {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1;
}

.work-layout {
  position: relative;
  min-height: auto;
}

.project-index {
  position: relative;
  z-index: 3;
  width: min(100%, 74rem);
  border-top: 1px solid var(--line);
}

.project-row {
  position: relative;
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr) 9rem 1.2rem;
  gap: 1rem;
  align-items: center;
  min-height: clamp(6.5rem, 10vw, 9.6rem);
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  text-decoration: none;
  transition: color 180ms ease, padding-left 320ms cubic-bezier(0.16, 1, 0.3, 1);
}

.project-row::before {
  content: "";
  position: absolute;
  inset: 0 100% 0 0;
  z-index: -1;
  background: rgba(238, 233, 223, 0.045);
  transition: right 320ms cubic-bezier(0.16, 1, 0.3, 1);
}

.project-row::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 1px;
  opacity: 0;
  background: linear-gradient(90deg, transparent, var(--row-color, var(--acid)) 30%, transparent 86%);
  box-shadow: 0 0 1.5rem var(--row-color, var(--acid));
  transition: opacity 240ms ease;
}

.project-row:hover,
.project-row:focus-visible,
.project-row.is-active {
  padding-left: 1rem;
  color: var(--paper);
}

.project-row:hover::before,
.project-row:focus-visible::before,
.project-row.is-active::before {
  right: 0;
}

.project-row:hover::after,
.project-row:focus-visible::after,
.project-row.is-active::after {
  opacity: 0.55;
}

.project-number,
.project-kind,
.project-arrow {
  font-size: 0.72rem;
  font-weight: 600;
}

.project-number {
  color: var(--row-color, var(--acid));
  text-shadow: 0 0 1.1rem color-mix(in srgb, var(--row-color, var(--acid)) 60%, transparent);
}

.project-row strong {
  font-size: clamp(2.4rem, 5.2vw, 5.8rem);
  font-weight: 600;
  letter-spacing: -0.07em;
  line-height: 0.88;
}

.project-kind {
  color: currentColor;
  white-space: nowrap;
}

.project-arrow {
  transition: transform 180ms ease;
}

.project-row:hover .project-arrow,
.project-row:focus-visible .project-arrow {
  transform: translate(0.2rem, -0.2rem);
}

.about-section {
  position: relative;
  display: grid;
  grid-template-columns: minmax(13rem, 0.48fr) minmax(20rem, 1.52fr);
  gap: clamp(2rem, 8vw, 10rem);
  align-items: start;
  min-height: 72svh;
  padding: 8rem 1.6rem;
  border-top: 1px solid var(--line);
  overflow: hidden;
  isolation: isolate;
}

.about-section::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -20%;
  background:
    radial-gradient(circle at var(--about-x, 70%) var(--about-y, 50%), rgba(210, 75, 134, 0.18), transparent 24%),
    radial-gradient(ellipse at 16% 90%, rgba(88, 43, 115, 0.14), transparent 34%);
  filter: blur(20px);
  transition: background 180ms linear;
}

.about-section::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -16vw;
  bottom: -28vw;
  width: 62vw;
  height: 62vw;
  border-radius: 34% 66% 71% 29% / 61% 37% 63% 39%;
  background: conic-gradient(from 220deg, transparent, rgba(194, 74, 143, 0.06), transparent 46%);
  filter: blur(32px);
  opacity: 0.72;
  transform: rotate(18deg);
  pointer-events: none;
}

.about-section .section-intro {
  grid-template-columns: 4rem 1fr;
  margin: 0;
}

.about-section .section-intro h2 {
  font-size: clamp(3.6rem, 7vw, 7rem);
}

.about-statements {
  display: grid;
  gap: clamp(3rem, 6vw, 6rem);
}

.about-statements p {
  margin: 0;
}

.about-lead {
  max-width: 14ch;
  font-size: clamp(3.2rem, 6.6vw, 7.2rem);
  font-weight: 600;
  letter-spacing: -0.072em;
  line-height: 0.9;
  text-wrap: balance;
}

.about-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 5rem);
  max-width: 68rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.about-details p {
  max-width: 32ch;
  color: rgba(238, 233, 223, 0.78);
  font-size: clamp(1.05rem, 1.45vw, 1.35rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.45;
}

.about-details p:last-child {
  grid-column: 2;
  color: var(--paper);
}

.plain-link {
  grid-column: 2;
  justify-self: start;
  text-underline-offset: 0.3rem;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration-color: color-mix(in srgb, var(--acid) 72%, transparent);
  transition: color 180ms ease, text-shadow 180ms ease;
}

.plain-link:hover,
.plain-link:focus-visible {
  color: var(--acid);
  text-shadow: 0 0 1.4rem color-mix(in srgb, var(--acid) 38%, transparent);
}

footer {
  display: flex;
  justify-content: space-between;
  padding: 1.4rem 1.6rem;
  border-top: 1px solid var(--line);
  background: var(--ink);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
}

footer a {
  color: var(--paper);
  text-underline-offset: 0.25rem;
}

.private-dialog {
  width: min(92vw, 34rem);
  padding: 0;
  border: 1px solid var(--line);
  background: #0c0908;
  color: var(--paper);
}

.private-dialog::backdrop {
  background: rgba(4, 3, 2, 0.76);
  backdrop-filter: blur(14px);
}

.private-card {
  position: relative;
  padding: 2.5rem;
}

.dialog-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  border: 0;
  background: none;
  font-size: 1.5rem;
  cursor: pointer;
}

.dialog-label,
.private-card label {
  font-size: 0.72rem;
  font-weight: 600;
}

.dialog-label {
  margin: 0 0 2.5rem;
  color: var(--acid);
}

.private-card h2 {
  margin: 0 0 3rem;
  font-size: clamp(3rem, 10vw, 6rem);
  letter-spacing: -0.075em;
  line-height: 0.85;
}

.private-card label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--muted);
}

.password-row {
  display: grid;
  grid-template-columns: 1fr auto;
  border-bottom: 1px solid var(--paper);
}

.password-row input,
.password-row button {
  min-height: 3.25rem;
  border: 0;
  background: transparent;
  color: var(--paper);
}

.password-row input:focus {
  outline: 0;
}

.password-row button {
  padding: 0 0 0 1rem;
  cursor: pointer;
}

.private-error {
  min-height: 1.2rem;
  margin: 0.7rem 0 0;
  color: #ff8b72;
  font-size: 0.72rem;
  font-weight: 600;
}

:focus-visible {
  outline: 2px solid var(--acid);
  outline-offset: 4px;
}

@media (max-width: 820px) {
  .cursor-glow {
    display: none;
  }
  .site-header {
    align-items: flex-start;
    padding: 1.1rem 1rem;
  }

  .site-header nav {
    display: grid;
    grid-template-columns: repeat(2, auto);
    gap: 0.6rem 1.2rem;
    justify-items: start;
  }

  .hero-title {
    inset: 0;
  }

  .hero-title span {
    position: absolute;
    display: block;
    line-height: 0.67;
  }

  .hero-title .word-half {
    top: auto;
    right: auto;
    bottom: 10.4rem;
    left: 0.65rem;
    font-size: clamp(6.5rem, 31vw, 8rem);
  }

  .hero-title .word-woods {
    right: auto;
    bottom: 3.8rem;
    left: 0.65rem;
    font-size: clamp(3.6rem, 16vw, 4.8rem);
  }

  .hero-jump {
    right: 1rem;
    bottom: 0.75rem;
    width: 2.25rem;
    height: 2.25rem;
  }

  .work-section {
    padding: 6rem 1rem 4rem;
  }

  .section-intro {
    grid-template-columns: 2.5rem 1fr;
  }

  .work-layout {
    display: block;
    min-height: auto;
  }

  .project-index {
    width: 100%;
  }

  .project-row {
    grid-template-columns: 2rem minmax(0, 1fr) 1rem;
    gap: 0.65rem;
    min-height: 5.4rem;
    padding: 1.2rem 0;
  }

  .project-row strong {
    font-size: clamp(2rem, 9vw, 3.2rem);
  }

  .project-row:hover,
  .project-row:focus-visible,
  .project-row.is-active {
    padding-left: 0.35rem;
  }

  .project-kind {
    display: none;
  }

  .about-section {
    display: block;
    min-height: auto;
    padding: 6rem 1rem;
  }

  .about-section .section-intro {
    grid-template-columns: 2.5rem 1fr;
    margin-bottom: 4rem;
  }

  .about-statements {
    gap: 3.5rem;
  }

  .about-lead {
    max-width: 12ch;
    font-size: clamp(3.2rem, 15vw, 5.6rem);
  }

  .about-details {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }

  .about-details p {
    max-width: 34ch;
    font-size: 1.05rem;
  }

  .about-details p:last-child {
    grid-column: 1;
  }

  .plain-link {
    display: inline-block;
    margin-top: 3rem;
  }

  footer {
    padding-inline: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
