:root {
  --paper: #f2eee5;
  --paper-deep: #e7e0d4;
  --ink: #161715;
  --muted: #6f6d66;
  --line: rgba(22, 23, 21, 0.16);
  --acid: #d8ff45;
  --violet: #6c52ff;
  --orange: #ff6433;
  --serif: "Newsreader", Georgia, serif;
  --sans: "Manrope", Arial, sans-serif;
  --mono: "DM Mono", monospace;
}

* {
  box-sizing: border-box;
}

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

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

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

.grain {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  opacity: 0.1;
  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='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.32'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

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

button {
  color: inherit;
  font: inherit;
}

.section-shell {
  width: min(100% - 64px, 1440px);
  margin-inline: auto;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 15;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  padding: 20px 32px;
  transition: transform 0.4s ease, background 0.3s ease, backdrop-filter 0.3s ease;
}

.site-header.header-scrolled {
  background: rgba(242, 238, 229, 0.85);
  backdrop-filter: blur(14px);
}

.site-header.header-hidden {
  transform: translateY(-105%);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 39px;
  aspect-ratio: 1;
  border: 1px solid var(--ink);
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 14px;
  font-style: italic;
}

.brand-name {
  font-size: 10px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.desktop-nav {
  display: flex;
  gap: 36px;
  padding: 11px 18px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.35);
}

.desktop-nav a {
  position: relative;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -4px;
  left: 0;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.25s ease;
}

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

.header-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 14px;
}

.sound-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  cursor: pointer;
}

.sound-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 0 rgba(255, 100, 51, 0.5);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  50% { box-shadow: 0 0 0 5px rgba(255, 100, 51, 0); }
}

.menu-button,
.mobile-menu {
  display: none;
}

.hero {
  position: relative;
  display: flex;
  min-height: 100svh;
  flex-direction: column;
  justify-content: center;
  padding-top: 130px;
  padding-bottom: 48px;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 38%;
  width: 1px;
  height: 100%;
  background: linear-gradient(transparent, var(--line) 18%, var(--line) 82%, transparent);
}

.hero-meta {
  position: absolute;
  top: 105px;
  right: 0;
  left: 0;
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.availability {
  display: flex;
  align-items: center;
  gap: 8px;
}

.availability i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #5ebc5b;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 1140px;
}

.eyebrow,
.section-index,
.project-type {
  margin: 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 22px 0 0;
  font-size: clamp(59px, 8vw, 132px);
  font-weight: 500;
  line-height: 0.86;
  letter-spacing: -0.068em;
}

h1 em,
h2 em {
  font-family: var(--serif);
  font-weight: 400;
}

.scribble-wrap {
  position: relative;
  display: inline-block;
  font-family: var(--serif);
  font-style: italic;
}

.scribble-wrap::after {
  content: "";
  position: absolute;
  right: -4px;
  bottom: 0.08em;
  left: 0;
  height: 0.09em;
  border-radius: 50%;
  background: var(--orange);
  transform: rotate(-2deg);
}

.hero-bottom {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  width: 57%;
  margin-top: 68px;
}

.hero-bottom > p {
  width: min(100%, 480px);
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.round-link {
  display: flex;
  width: 94px;
  aspect-ratio: 1;
  flex-shrink: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  font-family: var(--mono);
  font-size: 9px;
  text-transform: uppercase;
  transition: color 0.3s ease, background 0.3s ease, transform 0.3s ease;
}

.round-link:hover {
  color: var(--paper);
  background: var(--ink);
  transform: rotate(-7deg);
}

.round-link svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
}

.orbit-visual {
  position: absolute;
  right: 1%;
  bottom: 3%;
  width: min(38vw, 510px);
  aspect-ratio: 1;
}

.orbit {
  position: absolute;
  inset: 8%;
  border: 1px solid var(--line);
  border-radius: 50%;
  animation: orbit 18s linear infinite;
}

.orbit span {
  position: absolute;
  top: 12%;
  left: 4%;
  display: grid;
  place-items: center;
  width: 34px;
  aspect-ratio: 1;
  border-radius: 50%;
  color: white;
  background: var(--violet);
  font-family: var(--mono);
  font-size: 9px;
}

.orbit-two {
  inset: 23%;
  animation-duration: 13s;
  animation-direction: reverse;
}

.orbit-two span {
  top: auto;
  right: -6%;
  bottom: 17%;
  left: auto;
  color: var(--ink);
  background: var(--acid);
}

.orbit-three {
  inset: 0;
  border-style: dashed;
  animation-duration: 28s;
}

.orbit-three span {
  top: 60%;
  right: -2%;
  left: auto;
  color: var(--ink);
  background: var(--paper-deep);
  border: 1px solid var(--ink);
}

.core {
  position: absolute;
  inset: 33%;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
}

.core::before {
  content: "";
  position: absolute;
  inset: -12%;
  border: 1px solid var(--ink);
  border-radius: 44% 56% 49% 51% / 60% 39% 61% 40%;
  animation: orbit 10s linear infinite reverse;
}

.core svg {
  width: 68%;
  fill: none;
  stroke: var(--paper);
  stroke-linecap: round;
  stroke-width: 1.4;
}

@keyframes orbit {
  to { transform: rotate(360deg); }
}

.marquee {
  overflow: hidden;
  padding: 18px 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  color: var(--paper);
  background: var(--ink);
}

.marquee-track {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 34px;
  animation: marquee 28s linear infinite;
}

.marquee span {
  font-family: var(--serif);
  font-size: 23px;
  font-style: italic;
}

.marquee i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--acid);
}

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

.about,
.work,
.mindset,
.offscreen {
  padding-top: 130px;
  padding-bottom: 130px;
}

.section-index {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8vw;
  padding: 90px 0 84px;
}

h2 {
  margin: 14px 0 0;
  font-size: clamp(48px, 5.4vw, 84px);
  font-weight: 500;
  line-height: 0.96;
  letter-spacing: -0.055em;
}

.about-copy {
  max-width: 610px;
  padding-top: 15px;
  color: var(--muted);
}

.about-copy p {
  margin: 0 0 23px;
}

.about-copy .lead {
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(26px, 2.4vw, 38px);
  line-height: 1.12;
}

.facts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  padding: 1px;
  background: var(--line);
}

.fact-card {
  display: flex;
  min-height: 245px;
  flex-direction: column;
  justify-content: space-between;
  padding: 25px;
  background: var(--paper);
}

.fact-number {
  font-family: var(--serif);
  font-size: 78px;
  font-style: italic;
  line-height: 1;
}

.fact-card p {
  margin: 0;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
}

.card-accent { background: var(--acid); }
.card-dark { color: var(--paper); background: var(--ink); }

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

.work-heading {
  display: grid;
  grid-template-columns: 2fr 1fr;
  align-items: end;
  gap: 70px;
  padding: 80px 0 70px;
}

.work-heading > p {
  max-width: 410px;
  margin: 0 0 6px;
  color: var(--muted);
}

.project {
  position: relative;
  display: grid;
  grid-template-columns: 80px minmax(300px, 1fr) 330px 52px;
  gap: 30px;
  align-items: center;
  min-height: 250px;
  padding: 34px 0;
  border-top: 1px solid var(--ink);
  transition: padding 0.35s ease, background 0.35s ease;
}

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

.project.expanded {
  padding: 48px 30px;
  background: var(--paper-deep);
}

.project-number {
  align-self: start;
  font-family: var(--mono);
  font-size: 11px;
}

.project-main h3 {
  margin: 10px 0 13px;
  font-family: var(--serif);
  font-size: clamp(34px, 3.3vw, 50px);
  font-weight: 400;
  line-height: 1;
}

.project-main > p:not(.project-type) {
  max-width: 590px;
  margin: 0;
  color: var(--muted);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-height: 0;
  margin-top: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.35s ease, opacity 0.35s ease, margin 0.35s ease;
}

.expanded .tags {
  max-height: 50px;
  margin-top: 20px;
  opacity: 1;
}

.tags span {
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 99px;
  font-family: var(--mono);
  font-size: 9px;
  text-transform: uppercase;
}

.project-art {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
  border-radius: 2px;
  background: #ded7cc;
}

.network-art {
  background: #262522;
}

.network-art svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: rgba(216, 255, 69, 0.5);
  stroke-width: 1;
}

.node {
  position: absolute;
  z-index: 2;
  width: 10px;
  height: 10px;
  border: 2px solid #262522;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 0 1px var(--acid);
}

.n1 { top: 17%; left: 10%; } .n2 { top: 47%; left: 48%; }
.n3 { top: 16%; right: 11%; } .n4 { bottom: 17%; left: 21%; }
.n5 { right: 8%; bottom: 16%; } .n6 { right: 29%; bottom: 45%; background: var(--orange); box-shadow: 0 0 0 1px var(--orange); }

.energy-art {
  display: grid;
  place-items: center;
  background: var(--violet);
}

.energy-ring {
  display: grid;
  width: 135px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(255,255,255,.4);
  border-radius: 50%;
  color: white;
  line-height: 1;
}

.energy-ring::before {
  content: "";
  position: absolute;
  width: 165px;
  aspect-ratio: 1;
  border: 1px dashed rgba(255,255,255,.25);
  border-radius: 50%;
  animation: orbit 15s linear infinite;
}

.energy-ring span { font-size: 18px; }
.energy-ring strong { font-family: var(--serif); font-size: 39px; font-weight: 400; }
.energy-ring small { font-family: var(--mono); font-size: 8px; text-transform: uppercase; }

.puzzle-art {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 3px;
  padding: 15px 75px;
  background: var(--orange);
}

.tile {
  display: grid;
  place-items: center;
  border: 1px solid rgba(22,23,21,.6);
  background: var(--paper);
  font-family: var(--serif);
  font-size: 20px;
}

.tile.accent { background: var(--acid); }
.tile.blank { background: transparent; }

.project-toggle {
  display: grid;
  width: 45px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: transparent;
  font-size: 25px;
  font-weight: 300;
  cursor: pointer;
  transition: color .25s ease, background .25s ease, transform .25s ease;
}

.project-toggle:hover {
  color: var(--paper);
  background: var(--ink);
  transform: rotate(90deg);
}

.mindset {
  color: var(--paper);
  background: var(--ink);
  box-shadow: 0 0 0 100vmax var(--ink);
  clip-path: inset(0 -100vmax);
}

.mindset .section-index { color: #8d8a82; border-color: rgba(242,238,229,.2); }

.mindset-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 10vw;
  padding-top: 90px;
}

.mindset-copy > p:last-child {
  max-width: 540px;
  margin: 42px 0 0;
  color: #aaa79f;
  font-size: 17px;
}

.method-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.method-list li {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 20px;
  padding: 26px 0;
  border-top: 1px solid rgba(242,238,229,.2);
}

.method-list li:last-child { border-bottom: 1px solid rgba(242,238,229,.2); }
.method-list li > span { color: var(--acid); font-family: var(--mono); font-size: 10px; }
.method-list strong { display: block; margin-bottom: 7px; font-family: var(--serif); font-size: 28px; font-weight: 400; }
.method-list p { margin: 0; color: #8d8a82; font-size: 14px; }

.offscreen-layout {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 8vw;
  padding-top: 85px;
}

.offscreen-quote {
  position: relative;
  align-self: start;
}

.quote-mark {
  position: absolute;
  top: -70px;
  left: -6px;
  color: var(--orange);
  font-family: var(--serif);
  font-size: 180px;
  line-height: 1;
  opacity: 0.85;
}

.offscreen-quote p {
  position: relative;
  margin: 35px 0 0;
  font-family: var(--serif);
  font-size: clamp(42px, 4.5vw, 70px);
  line-height: 0.98;
}

.interest-cards {
  border-top: 1px solid var(--ink);
}

.interest-cards article {
  display: grid;
  grid-template-columns: 50px 1fr 1fr;
  gap: 18px;
  align-items: baseline;
  padding: 29px 0;
  border-bottom: 1px solid var(--ink);
}

.interest-cards span { font-family: var(--mono); font-size: 10px; }
.interest-cards h3 { margin: 0; font-family: var(--serif); font-size: 29px; font-weight: 400; }
.interest-cards p { margin: 0; color: var(--muted); font-size: 13px; }

.contact {
  color: var(--paper);
  background: var(--violet);
  box-shadow: 0 0 0 100vmax var(--violet);
  clip-path: inset(0 -100vmax);
}

.contact-kicker {
  padding: 32px 0;
  border-bottom: 1px solid rgba(255,255,255,.3);
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
}

.contact-main {
  display: flex;
  min-height: 520px;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}

.contact-main p {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(46px, 6.6vw, 98px);
  line-height: .94;
}

.contact-orb {
  display: flex;
  width: min(32vw, 340px);
  aspect-ratio: 1;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  gap: 20px;
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 50%;
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 44px);
  transition: color .35s ease, background .35s ease, transform .35s ease;
}

.contact-orb:hover {
  color: var(--ink);
  background: var(--acid);
  transform: rotate(-4deg);
}

.contact-orb svg {
  width: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.2;
}

footer {
  display: flex;
  justify-content: space-between;
  padding: 26px 0;
  border-top: 1px solid rgba(255,255,255,.3);
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
}

footer p { margin: 0; }
.back-top { padding: 0; border: 0; color: inherit; background: transparent; cursor: pointer; }

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 30;
  padding: 12px 16px;
  border-radius: 2px;
  color: var(--paper);
  background: var(--ink);
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(15px);
  transition: opacity .25s ease, transform .25s ease;
  pointer-events: none;
}

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

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1);
}

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

.focus-mode .orbit-visual,
.focus-mode .marquee,
.focus-mode .offscreen {
  filter: grayscale(1);
}

.focus-mode .grain { opacity: .04; }

@media (max-width: 980px) {
  .section-shell { width: min(100% - 40px, 900px); }
  .site-header { padding: 18px 20px; }
  .desktop-nav, .sound-toggle { display: none; }
  .site-header { grid-template-columns: 1fr auto; }
  .menu-button {
    display: flex;
    width: 42px;
    height: 42px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1px solid var(--ink);
    border-radius: 50%;
    background: var(--paper);
    cursor: pointer;
  }
  .menu-button span { width: 16px; height: 1px; background: var(--ink); transition: transform .3s ease; }
  .menu-button.open span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .menu-button.open span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .mobile-menu {
    position: fixed;
    inset: 0;
    z-index: -1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 90px 24px 40px;
    background: var(--acid);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility .3s ease;
  }
  .mobile-menu.open { opacity: 1; visibility: visible; }
  .mobile-menu a { padding: 10px 0; font-family: var(--serif); font-size: 13vw; line-height: 1; }
  .hero { min-height: 900px; }
  .hero h1 { font-size: clamp(57px, 10.8vw, 100px); }
  .hero-bottom { width: 100%; }
  .orbit-visual { right: -7%; bottom: 1%; width: 51vw; opacity: .6; }
  .about-grid, .mindset-grid, .offscreen-layout { grid-template-columns: 1fr; }
  .about-grid { gap: 55px; }
  .facts-grid { grid-template-columns: repeat(2, 1fr); }
  .work-heading { grid-template-columns: 1fr; gap: 30px; }
  .project { grid-template-columns: 48px 1fr 240px 45px; gap: 18px; }
  .offscreen-layout { gap: 90px; }
}

@media (max-width: 680px) {
  .section-shell { width: calc(100% - 28px); }
  .brand-name { display: none; }
  .hero { min-height: 790px; justify-content: flex-start; padding-top: 170px; }
  .hero::before { left: 67%; }
  .hero-meta { top: 95px; }
  .hero-meta > span:first-child { display: none; }
  .hero-meta { justify-content: flex-end; }
  .hero h1 { font-size: clamp(52px, 16.4vw, 82px); line-height: .9; }
  .hero-bottom { align-items: flex-start; margin-top: 45px; }
  .hero-bottom > p { max-width: 290px; font-size: 14px; }
  .round-link { display: none; }
  .orbit-visual { right: -16%; bottom: 1%; width: 73vw; }
  .marquee span { font-size: 18px; }
  .about, .work, .mindset, .offscreen { padding-top: 85px; padding-bottom: 85px; }
  .about-grid { padding: 60px 0; }
  h2 { font-size: 47px; }
  .facts-grid { grid-template-columns: 1fr 1fr; }
  .fact-card { min-height: 185px; padding: 18px; }
  .fact-number { font-size: 57px; }
  .fact-card p { font-size: 8px; }
  .work-heading { padding: 55px 0 45px; }
  .project { grid-template-columns: 32px 1fr 42px; min-height: 0; padding: 30px 0; }
  .project.expanded { padding: 30px 14px; }
  .project-art { grid-column: 2 / -1; grid-row: 2; height: 170px; margin-top: 6px; }
  .project-toggle { grid-column: 3; grid-row: 1; }
  .project-main h3 { font-size: 33px; }
  .project-main > p:not(.project-type) { font-size: 13px; }
  .mindset-grid { gap: 65px; padding-top: 60px; }
  .method-list strong { font-size: 24px; }
  .interest-cards article { grid-template-columns: 35px 1fr; }
  .interest-cards p { grid-column: 2; }
  .contact-main { min-height: 590px; flex-direction: column; align-items: flex-start; justify-content: center; gap: 60px; }
  .contact-orb { align-self: flex-end; width: 230px; }
}

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