@import url("https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Manrope:wght@400;500;600;700;800&family=Space+Grotesk:wght@500;600;700&display=swap");

:root {
  --ink: #0b0d18;
  --ink-soft: #16192a;
  --paper: #f4f0e9;
  --muted: #878594;
  --line: rgba(244, 240, 233, 0.16);
  --acid: #c8ff43;
  --violet: #7e5cff;
  --cyan: #74e9d4;
  --serif: "Space Grotesk", sans-serif;
  --sans: "Manrope", sans-serif;
  --mono: "DM Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  overflow-x: hidden;
}

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

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

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

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

/* Background */

.site-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 40;
  opacity: 0.08;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.6'/%3E%3C/svg%3E");
}

.site-grid {
  position: fixed;
  inset: 0;
  z-index: -2;
  opacity: 0.23;
  pointer-events: none;
  background-image:
    linear-gradient(
      rgba(244, 240, 233, 0.055) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(244, 240, 233, 0.055) 1px,
      transparent 1px
    );
  background-size: 80px 80px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}

.site-orb {
  position: fixed;
  z-index: -1;
  pointer-events: none;
  border-radius: 999px;
  filter: blur(100px);
  opacity: 0.16;
}

.site-orb.one {
  width: 36vw;
  height: 36vw;
  background: var(--violet);
  top: -12vw;
  right: -8vw;
}

.site-orb.two {
  width: 26vw;
  height: 26vw;
  background: var(--cyan);
  top: 42%;
  left: -14vw;
  opacity: 0.09;
}

/* Navigation */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  height: 82px;
  display: flex;
  align-items: center;
  padding: 0 clamp(20px, 5vw, 76px);
  border-bottom: 1px solid transparent;
  transition: 0.35s ease;
}

.site-header.scrolled {
  height: 68px;
  background: rgba(11, 13, 24, 0.78);
  backdrop-filter: blur(18px);
  border-color: var(--line);
}

.nav-inner {
  width: 100%;
  max-width: 1440px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: -0.08em;
  font-size: 1.2rem;
}

.brand-mark {
  width: 28px;
  height: 28px;
  object-fit: cover;
  border-radius: 7px;
}

.brand-dot {
  color: var(--acid);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 48px);
  color: #aaa8b4;
  font: 500 0.7rem var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.nav-links a {
  transition: color 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--acid);
}

.nav-cta {
  color: var(--ink);
  border: 0;
  background: var(--acid);
  padding: 11px 18px;
  border-radius: 999px;
  font: 500 0.68rem var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: transform 0.25s ease, background 0.25s ease;
}

.nav-cta:hover {
  transform: translateY(-2px);
  background: #d7ff7d;
}

.mobile-menu {
  display: none;
  background: none;
  border: 0;
  color: var(--paper);
  font: 500 0.7rem var(--mono);
  text-transform: uppercase;
}

.mobile-menu .menu-icon {
  font-size: 1.25rem;
  line-height: 0;
}

.mobile-navigation {
  display: none;
}

/* Common Layout */

.wrap {
  width: min(100% - 40px, 1288px);
  margin: auto;
}

.section {
  padding: 155px 0;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 30px;
  margin-bottom: 62px;
}

.eyebrow {
  color: var(--acid);
  font: 500 0.68rem var(--mono);
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.section-title {
  max-width: 730px;
  margin: 18px 0 0;
  font: 600 clamp(2.6rem, 5.8vw, 6rem) / 0.94 var(--serif);
  letter-spacing: -0.095em;
}

.section-aside {
  max-width: 265px;
  color: var(--muted);
  line-height: 1.65;
  font-size: 0.9rem;
}

/* Hero */

.hero {
  min-height: 100svh;
  padding: 170px 0 108px;
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  align-items: end;
  gap: 8vw;
}

.hero-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #aaa8b4;
  font: 0.7rem var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.pulse {
  width: 7px;
  height: 7px;
  background: var(--acid);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(200, 255, 67, 0.12);
}

.hero h1 {
  max-width: 900px;
  margin: 0;
  font: 600 clamp(4.4rem, 10.4vw, 10.8rem) / 0.84 var(--serif);
  letter-spacing: -0.105em;
}

.hero h1 em,
.page-title em {
  color: var(--acid);
  font-style: normal;
}

.hero-deck {
  max-width: 440px;
  margin: 34px 0 0 7px;
  color: #b1afbb;
  font-size: clamp(1rem, 1.5vw, 1.22rem);
  line-height: 1.65;
}

.hero-rail {
  align-self: end;
  padding-bottom: 3px;
}

.hero-rail-card {
  position: relative;
  min-height: 310px;
  padding: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #111426;
}

.hero-rail-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(126, 92, 255, 0.16),
    transparent 55%
  );
  pointer-events: none;
}

.hero-rail-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.62;
  mix-blend-mode: screen;
  filter: saturate(0.75) contrast(1.1);
}

.hero-rail-info {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 22px;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: end;
}

.hero-rail-info strong {
  display: block;
  font: 600 1.45rem var(--serif);
  letter-spacing: -0.05em;
}

.hero-rail-info small {
  display: block;
  color: #b1afbb;
  margin-top: 4px;
  font: 0.66rem var(--mono);
  text-transform: uppercase;
}

.index-number {
  color: var(--acid);
  font: 0.7rem var(--mono);
}

.scroll-note {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 46px;
  color: var(--muted);
  font: 0.64rem var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.scroll-line {
  height: 1px;
  width: 58px;
  background: var(--acid);
}

/* Ticker */

.ticker {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
  background: rgba(255, 255, 255, 0.015);
}

.ticker-track {
  width: max-content;
  display: flex;
  gap: 42px;
  animation: ticker 28s linear infinite;
}

.ticker-item {
  color: #9a98a7;
  font: 0.68rem var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

.ticker-item::before {
  content: "✦";
  color: var(--acid);
  margin-right: 42px;
}

@keyframes ticker {
  to {
    transform: translateX(-50%);
  }
}

/* Projects */

.projects {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}

.project-card {
  position: relative;
  overflow: hidden;
  min-height: 470px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border: 1px solid var(--line);
  background: var(--ink-soft);
  transition:
    transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1),
    border-color 0.35s ease;
}

.projects-featured .project-card:nth-child(1) {
  grid-column: span 7;
  min-height: 600px;
}

.projects-featured .project-card:nth-child(2) {
  grid-column: span 5;
  min-height: 600px;
}

.projects-all .project-card:nth-child(1),
.projects-all .project-card:nth-child(4),
.projects-all .project-card:nth-child(5),
.projects-all .project-card:nth-child(8),
.projects-all .project-card:nth-child(9) {
  grid-column: span 7;
}

.projects-all .project-card:nth-child(2),
.projects-all .project-card:nth-child(3),
.projects-all .project-card:nth-child(6),
.projects-all .project-card:nth-child(7),
.projects-all .project-card:nth-child(10) {
  grid-column: span 5;
}

.project-card:hover {
  transform: translateY(-8px);
  border-color: rgba(200, 255, 67, 0.65);
}

.project-image,
.project-placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-image {
  transition:
    transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1),
    filter 0.5s ease;
  filter: saturate(0.72) contrast(1.08);
}

.project-card:hover .project-image {
  transform: scale(1.07);
  filter: saturate(1) contrast(1.05);
}

.project-mark {
  object-fit: contain;
  padding: 16%;
  opacity: 0.8;
}

.project-placeholder {
  display: grid;
  place-items: center;
  background:
    radial-gradient(
      circle at 70% 30%,
      rgba(116, 233, 212, 0.45),
      transparent 35%
    ),
    linear-gradient(135deg, #171532, #0d1223);
}

.project-placeholder.warm {
  background:
    radial-gradient(
      circle at 30% 25%,
      rgba(200, 255, 67, 0.26),
      transparent 35%
    ),
    linear-gradient(135deg, #2b231c, #0d1223);
}

.project-placeholder span {
  font: 600 clamp(5rem, 12vw, 10rem) / 1 var(--serif);
  letter-spacing: -0.12em;
  color: rgba(244, 240, 233, 0.16);
}

.project-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 25%,
    rgba(8, 10, 20, 0.22) 47%,
    rgba(8, 10, 20, 0.95) 100%
  );
}

.project-copy {
  position: relative;
  z-index: 1;
  padding: 26px;
}

.project-meta {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  color: var(--acid);
  font: 0.63rem var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.project-name {
  margin: 20px 0 7px;
  font: 600 clamp(2rem, 3.4vw, 3.8rem) / 0.9 var(--serif);
  letter-spacing: -0.08em;
}

.project-summary {
  max-width: 390px;
  margin: 0;
  color: #c0bdc7;
  font-size: 0.84rem;
  line-height: 1.55;
}

.project-arrow {
  position: absolute;
  right: 26px;
  bottom: 26px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(244, 240, 233, 0.35);
  border-radius: 50%;
  font-size: 1.15rem;
  transition: 0.3s;
}

.project-card:hover .project-arrow {
  background: var(--acid);
  color: var(--ink);
  transform: rotate(45deg);
}

.project-tag {
  display: inline-flex;
  padding: 6px 9px;
  border: 1px solid rgba(244, 240, 233, 0.22);
  color: #d4d0d7;
  font: 0.6rem var(--mono);
  text-transform: uppercase;
}

/* Buttons */

.section-action {
  display: flex;
  justify-content: center;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font: 500 0.69rem var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: 0.25s;
}

.button:hover {
  transform: translateY(-3px);
  background: transparent;
  color: var(--ink);
}

.button.outline {
  background: transparent;
  color: var(--paper);
  border-color: var(--paper);
}

.button.outline:hover {
  background: var(--acid);
  border-color: var(--acid);
  color: var(--ink);
}

/* Manifesto */

.manifesto {
  padding: 130px 0 160px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.manifesto-line {
  max-width: 1040px;
  margin: 0;
  font: 600 clamp(3rem, 8.4vw, 9rem) / 0.9 var(--serif);
  letter-spacing: -0.11em;
}

.manifesto-line .faded {
  color: #484959;
}

.manifesto-footer {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  margin-top: 60px;
}

.manifesto-footer p {
  max-width: 330px;
  color: #aaa8b4;
  font-size: 0.88rem;
  line-height: 1.65;
}

/* Process */

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  border-top: 1px solid var(--line);
}

.process-item {
  min-height: 300px;
  padding: 26px 25px 30px 0;
  border-bottom: 1px solid var(--line);
}

.process-item + .process-item {
  padding-left: 28px;
  border-left: 1px solid var(--line);
}

.process-number {
  color: var(--acid);
  font: 0.68rem var(--mono);
}

.process-item h3 {
  margin: 70px 0 14px;
  font: 600 2rem var(--serif);
  letter-spacing: -0.07em;
}

.process-item p {
  max-width: 275px;
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.65;
}

/* People */

.people {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 9vw;
  align-items: start;
}

.people-intro {
  position: sticky;
  top: 120px;
}

.people-intro .section-title {
  font-size: clamp(3rem, 6vw, 6.5rem);
}

.people-list {
  border-top: 1px solid var(--line);
}

.person {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  gap: 24px;
  align-items: start;
  padding: 28px 0 34px;
  border-bottom: 1px solid var(--line);
}

.person-index,
.team-number {
  color: var(--acid);
  font: 0.68rem var(--mono);
}

.person h3 {
  margin: 0;
  font: 600 clamp(1.8rem, 3vw, 3rem) var(--serif);
  letter-spacing: -0.08em;
}

.person p {
  max-width: 380px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.person-role {
  color: #aaa8b4;
  font: 0.66rem var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  text-align: right;
}

.text-link {
  display: inline-block;
  margin-top: 30px;
  color: var(--acid);
  font: 0.68rem var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Team Page */

.team-page-section {
  padding-top: 45px;
}

.team-list {
  border-top: 1px solid var(--line);
}

.team-member {
  display: grid;
  grid-template-columns: 90px minmax(0, 650px);
  gap: 28px;
  padding: 48px 0;
  border-bottom: 1px solid var(--line);
}

.team-member h2 {
  margin: 0;
  font: 600 clamp(3rem, 6vw, 6.5rem) / 0.9 var(--serif);
  letter-spacing: -0.1em;
}

.team-member p {
  max-width: 480px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

.team-member .person-role {
  margin: 12px 0 0;
  color: var(--acid);
  text-align: left;
}

.skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 25px;
}

.skill-list span {
  padding: 8px 10px;
  border: 1px solid var(--line);
  color: #c0bdc7;
  font: 0.65rem var(--mono);
  text-transform: uppercase;
}

/* Contact */

.contact-section {
  padding: 150px 0 110px;
}

.contact-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 6vw, 78px);
  background: var(--acid);
  color: var(--ink);
}

.contact-panel::before {
  content: "";
  position: absolute;
  width: 340px;
  height: 340px;
  right: -100px;
  top: -180px;
  border-radius: 50%;
  border: 1px solid rgba(11, 13, 24, 0.22);
  box-shadow:
    0 0 0 32px rgba(11, 13, 24, 0.06),
    0 0 0 64px rgba(11, 13, 24, 0.05);
}

.contact-panel .eyebrow {
  color: #3f5417;
}

.contact-panel h2 {
  max-width: 760px;
  margin: 20px 0 32px;
  font: 600 clamp(3.5rem, 8vw, 8.5rem) / 0.86 var(--serif);
  letter-spacing: -0.11em;
}

.contact-panel > p {
  max-width: 440px;
  color: #3c4c1d;
  line-height: 1.55;
  font-size: 0.93rem;
}

.contact-form {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin-top: 38px;
}

.contact-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
}

.contact-fields input,
.contact-fields textarea {
  width: 100%;
  border: 1px solid rgba(11, 13, 24, 0.34);
  border-radius: 0;
  background: rgba(244, 240, 233, 0.32);
  color: var(--ink);
  padding: 13px 14px;
  outline: none;
}

.contact-fields input::placeholder,
.contact-fields textarea::placeholder {
  color: #53602e;
}

.contact-fields input:focus,
.contact-fields textarea:focus {
  border-color: var(--ink);
  background: rgba(244, 240, 233, 0.7);
}

.contact-fields textarea {
  grid-column: 1 / -1;
  resize: vertical;
  min-height: 92px;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 35px;
}

.contact-panel .button {
  border-color: var(--ink);
}

.contact-panel .button.outline {
  color: var(--ink);
  border-color: var(--ink);
}

.contact-status {
  margin-top: 15px;
  color: #3c4c1d;
  font: 500 0.7rem var(--mono);
}

/* Page Footer */

.site-footer {
  padding: 26px 0 32px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font: 0.65rem var(--mono);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}

.footer-links {
  display: flex;
  gap: 23px;
}

.footer-links a:hover {
  color: var(--acid);
}

/* Page Hero */

.page-hero {
  min-height: 620px;
  padding: 205px 0 100px;
  display: flex;
  flex-direction: column;
  justify-content: end;
}

.page-title {
  max-width: 850px;
  margin: 22px 0 28px;
  font: 600 clamp(4.2rem, 10vw, 9rem) / 0.85 var(--serif);
  letter-spacing: -0.11em;
}

.page-lede {
  max-width: 470px;
  margin: 0;
  color: #aaa8b4;
  font-size: 1.05rem;
  line-height: 1.65;
}

.work-page-section {
  padding-top: 45px;
}

.work-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 34px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.work-count {
  color: var(--muted);
  font: 0.7rem var(--mono);
  text-transform: uppercase;
}

/* Animations */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  animation: reveal 0.8s both;
}

.delay-1 {
  animation-delay: 0.1s;
}

.delay-2 {
  animation-delay: 0.2s;
}

.delay-3 {
  animation-delay: 0.3s;
}

.observe-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.observe-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Tablet */

@media (max-width: 820px) {
  .nav-links,
  .nav-cta {
    display: none;
  }

  .mobile-menu {
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }

  .mobile-navigation {
    position: absolute;
    top: 68px;
    left: 14px;
    right: 14px;
    display: grid;
    padding: 10px;
    border: 1px solid var(--line);
    background: rgba(17, 20, 38, 0.96);
    backdrop-filter: blur(16px);
  }

  .mobile-navigation[hidden] {
    display: none;
  }

  .mobile-navigation a {
    padding: 15px 12px;
    border-bottom: 1px solid var(--line);
    color: var(--paper);
    font: 500 0.7rem var(--mono);
    text-transform: uppercase;
    letter-spacing: 0.08em;
  }

  .mobile-navigation a:last-child {
    border-bottom: 0;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 145px;
    gap: 48px;
  }

  .hero h1 {
    font-size: clamp(4rem, 17vw, 7.6rem);
  }

  .hero-rail {
    max-width: 500px;
    width: 100%;
  }

  .section {
    padding: 100px 0;
  }

  .section-heading {
    display: block;
    margin-bottom: 40px;
  }

  .section-aside {
    margin-top: 25px;
  }

  .projects {
    display: block;
  }

  .project-card,
  .projects-featured .project-card,
  .projects-all .project-card {
    min-height: 460px;
    margin-bottom: 16px;
  }

  .process-grid {
    grid-template-columns: 1fr;
  }

  .process-item,
  .process-item + .process-item {
    min-height: 225px;
    padding: 25px 0;
    border-left: 0;
  }

  .process-item h3 {
    margin-top: 45px;
  }

  .people {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .people-intro {
    position: static;
  }

  .manifesto {
    padding: 100px 0;
  }

  .manifesto-footer {
    display: block;
  }

  .page-hero {
    min-height: 530px;
    padding-top: 145px;
  }

  .team-member {
    grid-template-columns: 45px 1fr;
    gap: 14px;
  }
}

/* Mobile */

@media (max-width: 520px) {
  .wrap {
    width: min(100% - 28px, 1288px);
  }

  .site-header {
    height: 68px;
    padding: 0 16px;
  }
}

/* Motion upgrade */
:root {
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.22, 1.2, 0.36, 1);
}

body {
  isolation: isolate;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  background: var(--acid);
  transform: scaleY(1);
  transform-origin: top;
  animation: page-curtain 1.15s var(--ease-expo) 0.05s forwards;
}

.site-grid {
  animation: grid-breathe 12s ease-in-out infinite alternate;
}

.site-orb.one {
  animation: orb-drift-one 16s ease-in-out infinite alternate;
}

.site-orb.two {
  animation: orb-drift-two 19s ease-in-out infinite alternate;
}

.brand-mark {
  transition: transform 0.65s var(--ease-spring), border-radius 0.35s ease;
}

.brand:hover .brand-mark {
  transform: rotate(-12deg) scale(1.14);
  border-radius: 12px;
}

.nav-links a,
.footer-links a,
.text-link {
  position: relative;
}

.nav-links a::after,
.footer-links a::after,
.text-link::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -6px;
  left: 0;
  height: 1px;
  background: var(--acid);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease-expo);
}

.nav-links a:hover::after,
.nav-links a.active::after,
.footer-links a:hover::after,
.text-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.hero h1 {
  animation: hero-title-in 1.25s var(--ease-expo) 0.24s both;
}

.hero h1 em {
  display: inline-block;
  animation: accent-float 5s ease-in-out 1.4s infinite;
}

.pulse {
  animation: pulse-ring 2s ease-out infinite;
}

.scroll-line {
  transform-origin: left;
  animation: line-pulse 2.4s ease-in-out infinite;
}

.hero-rail-card {
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.35s ease-out, border-color 0.35s ease, box-shadow 0.35s ease;
}

.hero-rail-card::before,
.project-card::before {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    115deg,
    transparent 25%,
    rgba(200, 255, 67, 0.16) 48%,
    transparent 68%
  );
  transform: translateX(-120%);
  transition: transform 0.9s var(--ease-expo);
}

.hero-rail-card:hover {
  border-color: rgba(200, 255, 67, 0.55);
  box-shadow: 0 24px 80px rgba(126, 92, 255, 0.2);
}

.hero-rail-card:hover::before,
.project-card:hover::before {
  transform: translateX(120%);
}

.hero-rail-img {
  transition: transform 1.2s var(--ease-expo), filter 0.6s ease;
}

.hero-rail-card:hover .hero-rail-img {
  transform: scale(1.08) rotate(2deg);
  filter: saturate(1.05) contrast(1.12);
}

.project-card {
  transform: translateY(0) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transform-style: preserve-3d;
  will-change: transform;
}

.project-card:hover {
  transform: translateY(-10px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
}

.project-copy {
  transform: translateZ(24px);
}

.project-meta,
.project-name,
.project-summary,
.project-arrow {
  transition: transform 0.55s var(--ease-expo), opacity 0.4s ease;
}

.project-card:hover .project-meta {
  transform: translateY(-5px);
}

.project-card:hover .project-name {
  transform: translateX(7px);
}

.project-card:hover .project-summary {
  transform: translateY(-3px);
}

.project-card:hover .project-arrow {
  transform: rotate(45deg) scale(1.12);
}

.process-item,
.person,
.team-member {
  transition: background 0.45s ease, padding-left 0.45s var(--ease-expo), border-color 0.35s ease;
}

.process-item:hover,
.person:hover,
.team-member:hover {
  background: rgba(200, 255, 67, 0.035);
}

.process-item:hover {
  padding-left: 12px;
}

.process-item + .process-item:hover {
  padding-left: 40px;
}

.person:hover,
.team-member:hover {
  padding-left: 14px;
  border-color: rgba(200, 255, 67, 0.42);
}

.process-number,
.person-index,
.team-number {
  transition: letter-spacing 0.4s ease, transform 0.4s var(--ease-spring);
}

.process-item:hover .process-number,
.person:hover .person-index,
.team-member:hover .team-number {
  letter-spacing: 0.2em;
}

.skill-list span {
  transition: color 0.3s ease, background 0.3s ease, border-color 0.3s ease, transform 0.35s var(--ease-spring);
}

.skill-list span:hover {
  color: var(--ink);
  background: var(--acid);
  border-color: var(--acid);
  transform: translateY(-4px) rotate(-2deg);
}

.manifesto-line .faded {
  transition: color 0.6s ease;
}

.manifesto:hover .manifesto-line .faded {
  color: var(--acid);
}

.button,
.nav-cta {
  position: relative;
  overflow: hidden;
}

.button::before,
.nav-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, 0.3), transparent 80%);
  transform: translateX(-130%);
  transition: transform 0.6s var(--ease-expo);
}

.button:hover::before,
.nav-cta:hover::before {
  transform: translateX(130%);
}

.button > *,
.nav-cta > * {
  position: relative;
}

.contact-panel {
  box-shadow: 0 0 0 rgba(200, 255, 67, 0);
  transition: box-shadow 0.7s ease;
}

.contact-panel:hover {
  box-shadow: 0 30px 100px rgba(200, 255, 67, 0.12);
}

.contact-panel::before {
  animation: ring-spin 18s linear infinite;
}

.contact-fields input,
.contact-fields textarea {
  transition: transform 0.3s var(--ease-spring), background 0.3s ease, border-color 0.3s ease;
}

.contact-fields input:focus,
.contact-fields textarea:focus {
  transform: translateY(-3px);
}

.page-hero .eyebrow,
.page-hero .page-title,
.page-hero .page-lede,
.work-toolbar {
  animation: reveal-up 0.9s var(--ease-expo) both;
}

.page-hero .page-title {
  animation-delay: 0.13s;
}

.page-hero .page-lede {
  animation-delay: 0.25s;
}

.work-toolbar {
  animation-delay: 0.18s;
}

.projects .project-card:nth-child(1) {
  --card-delay: 0.12s;
}

.projects .project-card:nth-child(2) {
  --card-delay: 0.2s;
}

.projects .project-card:nth-child(3) {
  --card-delay: 0.28s;
}

.projects .project-card:nth-child(4) {
  --card-delay: 0.36s;
}

.projects .project-card:nth-child(5) {
  --card-delay: 0.44s;
}

.projects .project-card:nth-child(6) {
  --card-delay: 0.52s;
}

.projects .project-card:nth-child(7) {
  --card-delay: 0.6s;
}

.projects .project-card {
  animation: card-in 0.9s var(--ease-expo) var(--card-delay, 0.1s) both;
}

.cursor-dot,
.cursor-ring,
.scroll-progress,
.route-wipe {
  position: fixed;
  pointer-events: none;
}

.cursor-dot,
.cursor-ring {
  z-index: 90;
  top: 0;
  left: 0;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.2s ease, background 0.25s ease, border-color 0.25s ease;
}

.cursor-dot {
  width: 7px;
  height: 7px;
  background: var(--acid);
  transform: translate3d(-50%, -50%, 0);
}

.cursor-ring {
  z-index: 89;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(200, 255, 67, 0.7);
  transform: translate3d(-50%, -50%, 0);
}

body.cursor-ready .cursor-dot,
body.cursor-ready .cursor-ring {
  opacity: 1;
}

body.cursor-hover .cursor-ring {
  width: 58px;
  height: 58px;
  background: rgba(200, 255, 67, 0.08);
  border-color: var(--acid);
}

.scroll-progress {
  z-index: 88;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--acid);
  box-shadow: 0 0 14px var(--acid);
}

.route-wipe {
  z-index: 101;
  inset: 0;
  background: var(--acid);
  transform: scaleY(0);
  transform-origin: bottom;
}

body.is-leaving .route-wipe {
  animation: page-curtain-in 0.62s var(--ease-expo) forwards;
}

@keyframes page-curtain {
  to { transform: scaleY(0); }
}

@keyframes page-curtain-in {
  to { transform: scaleY(1); }
}

@keyframes reveal-up {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes hero-title-in {
  from { opacity: 0; transform: translateY(42px) skewY(3deg); filter: blur(8px); }
  to { opacity: 1; transform: translateY(0) skewY(0); filter: blur(0); }
}

@keyframes card-in {
  from { opacity: 0; transform: translateY(36px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes pulse-ring {
  0%, 100% { box-shadow: 0 0 0 5px rgba(200, 255, 67, 0.12); }
  50% { box-shadow: 0 0 0 11px rgba(200, 255, 67, 0); }
}

@keyframes line-pulse {
  0%, 100% { transform: scaleX(0.65); opacity: 0.55; }
  50% { transform: scaleX(1); opacity: 1; }
}

@keyframes grid-breathe {
  from { background-position: 0 0; opacity: 0.18; }
  to { background-position: 40px 40px; opacity: 0.32; }
}

@keyframes orb-drift-one {
  to { transform: translate3d(-7vw, 8vh, 0) scale(1.18); }
}

@keyframes orb-drift-two {
  to { transform: translate3d(9vw, -6vh, 0) scale(0.82); }
}

@keyframes accent-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

@keyframes ring-spin {
  to { transform: rotate(360deg); }
}

/* Login page */
.auth-wrap {
  min-height: calc(100svh - 170px);
  display: grid;
  place-items: center;
  padding: 150px 20px 80px;
}

.auth-card {
  width: min(100%, 520px);
  animation: reveal-up 0.9s var(--ease-expo) 0.12s both;
}

.auth-card .card {
  border: 1px solid var(--line);
  background: rgba(17, 20, 38, 0.82);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

.auth-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 34px;
}

.auth-tab {
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 0 0 13px;
  margin-right: 18px;
  background: transparent;
  color: var(--muted);
  font: 0.72rem var(--mono);
  cursor: pointer;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.auth-tab.active,
.auth-tab:hover {
  color: var(--acid);
  border-color: var(--acid);
}

.auth-title {
  margin: 0;
  font: 600 clamp(2.4rem, 6vw, 4.8rem) / 0.95 var(--serif);
  letter-spacing: -0.09em;
}

.auth-sub,
.hint {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.field {
  margin-top: 22px;
}

.field label {
  display: block;
  margin-bottom: 8px;
  color: var(--acid);
  font: 0.66rem var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.field input {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(244, 240, 233, 0.04);
  color: var(--paper);
  padding: 14px;
  outline: none;
  transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s var(--ease-spring);
}

.field input:focus {
  border-color: var(--acid);
  background: rgba(200, 255, 67, 0.05);
  transform: translateY(-2px);
}

.form-err {
  display: none;
  color: #ff8d8d;
  font-size: 0.75rem;
}

.form-err.show {
  display: block;
  animation: shake 0.45s ease;
}

.block {
  width: 100%;
  justify-content: center;
  margin-top: 22px;
}

.hint a {
  color: var(--acid);
}

footer {
  color: var(--muted);
}

.f-in {
  width: min(100% - 40px, 1288px);
  margin: auto;
  padding: 26px 0 32px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  border-top: 1px solid var(--line);
  font: 0.65rem var(--mono);
}

.f-links {
  display: flex;
  gap: 18px;
}

.f-links a:hover {
  color: var(--acid);
}

#toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 120;
  padding: 14px 18px;
  border: 1px solid rgba(200, 255, 67, 0.4);
  background: var(--acid);
  color: var(--ink);
  font: 0.7rem var(--mono);
  transform: translateY(20px);
  opacity: 0;
  transition: 0.45s var(--ease-expo);
}

#toast.show {
  transform: translateY(0);
  opacity: 1;
}

@keyframes shake {
  25% { transform: translateX(-6px); }
  50% { transform: translateX(6px); }
  75% { transform: translateX(-3px); }
}

@media (max-width: 700px) {
  .cursor-dot,
  .cursor-ring {
    display: none;
  }

  .f-in {
    display: block;
    line-height: 1.8;
  }

  .f-links {
    margin-top: 10px;
  }
}

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

  body::before {
    display: none;
  }
}

/* Shared user account controls (public pages only). */
[data-auth-slot] { position: relative; display: inline-flex; }
.public-avatar { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--acid); background: var(--ink-soft); color: var(--acid); font: 500 .68rem var(--mono); }
.public-account-menu { position: absolute; top: 45px; right: 0; width: 220px; padding: 14px; background: var(--ink-soft); border: 1px solid var(--line); box-shadow: 0 18px 45px rgba(0,0,0,.45); z-index: 80; }

/* Performance mode: preserve the design while avoiding costly continuous compositing. */
@media (max-width: 900px), (prefers-reduced-motion: reduce) {
  .site-orb { filter: none; opacity: .08; }
  .site-header.scrolled, .auth-card .card { backdrop-filter: none; }
  .site-grid, .site-orb.one, .site-orb.two, .hero h1 em, .pulse, .scroll-line, .contact-panel::before { animation: none !important; }
  .hero-rail-card, .project-card { transform: none !important; will-change: auto; }
  body::before { display: none; }
}

@media (prefers-reduced-data: reduce) {
  .site-noise { display: none; }
  .site-orb { display: none; }
  .hero-rail-img, .project-image { filter: none; }
}
.public-account-menu strong,.public-account-menu small { display:block; }.public-account-menu small{color:var(--muted);margin:4px 0 10px}.public-account-menu a,.public-account-menu button{display:block;width:100%;padding:9px 0;border:0;border-top:1px solid var(--line);background:transparent;color:var(--paper);text-align:left;font:500 .7rem var(--mono)}.public-account-menu a:hover,.public-account-menu button:hover{color:var(--acid)}
