:root {
  --ink: #10100f;
  --paper: #f3f0e7;
  --acid: #e9ff55;
  --coral: #ff6542;
  --blue: #8db8ff;
  --line: rgba(16, 16, 15, 0.16);
  --pad: clamp(1.25rem, 4vw, 4.5rem);
  --radius: clamp(1.25rem, 2vw, 2rem);
  --display: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: -5rem;
  left: 1rem;
  z-index: 100;
  border-radius: 100px;
  background: var(--acid);
  padding: 0.75rem 1rem;
  color: var(--ink);
  font-weight: 800;
  opacity: 0;
  pointer-events: none;
}

.skip-link:focus {
  top: 1rem;
  opacity: 1;
  pointer-events: auto;
}

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 20;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem var(--pad);
  color: var(--paper);
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.brand-mark {
  width: 2.15rem;
  fill: currentColor;
}

.brand-mark circle {
  fill: var(--coral);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.2rem, 3vw, 3rem);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.site-nav > a:not(.nav-contact) {
  position: relative;
}

.site-nav > a:not(.nav-contact)::after {
  position: absolute;
  bottom: -0.35rem;
  left: 0;
  width: 100%;
  height: 1px;
  transform: scaleX(0);
  transform-origin: right;
  background: currentColor;
  content: "";
  transition: transform 250ms ease;
}

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

.nav-contact {
  border: 1px solid rgba(243, 240, 231, 0.28);
  border-radius: 100px;
  padding: 0.72rem 1rem;
  transition: background 180ms ease, color 180ms ease;
}

.nav-contact:hover {
  background: var(--acid);
  color: var(--ink);
}

.menu-toggle {
  display: none;
}

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  background:
    radial-gradient(circle at 67% 42%, rgba(233, 255, 85, 0.1), transparent 24rem),
    var(--ink);
  color: var(--paper);
  isolation: isolate;
}

#lab-canvas,
.hero-grid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

#lab-canvas {
  z-index: -1;
  opacity: 0.9;
}

.hero-grid {
  z-index: -2;
  background-image:
    linear-gradient(rgba(243, 240, 231, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(243, 240, 231, 0.045) 1px, transparent 1px);
  background-size: clamp(3rem, 5vw, 5.5rem) clamp(3rem, 5vw, 5.5rem);
  mask-image: radial-gradient(circle at 68% 48%, #000 5%, transparent 68%);
}

.hero-copy {
  display: flex;
  min-height: 100svh;
  max-width: 110rem;
  margin: 0 auto;
  flex-direction: column;
  justify-content: flex-end;
  padding: 8.5rem var(--pad) clamp(2rem, 5vw, 5.5rem);
}

.eyebrow,
.section-kicker {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.pulse {
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 0 0 rgba(233, 255, 85, 0.4);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  60% { box-shadow: 0 0 0 0.65rem rgba(233, 255, 85, 0); }
  100% { box-shadow: 0 0 0 0 rgba(233, 255, 85, 0); }
}

h1,
.display,
.contact h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 750;
  letter-spacing: -0.065em;
  line-height: 0.94;
  text-transform: uppercase;
}

h1 {
  max-width: 15ch;
  margin-top: clamp(1.8rem, 4vh, 3.5rem);
  font-size: clamp(3.35rem, 7.8vw, 9.2rem);
}

h1 em {
  color: var(--acid);
  font-style: normal;
}

.hero-bottom {
  display: flex;
  width: min(48rem, 54%);
  margin-top: clamp(2rem, 5vh, 4rem);
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
}

.hero-bottom p {
  max-width: 30rem;
  margin: 0;
  color: rgba(243, 240, 231, 0.68);
  font-size: clamp(1rem, 1.35vw, 1.25rem);
  line-height: 1.45;
}

.round-link {
  display: grid;
  width: 7rem;
  height: 7rem;
  flex: 0 0 auto;
  grid-template-columns: 1fr auto;
  align-items: center;
  border-radius: 50%;
  background: var(--coral);
  padding: 1.15rem;
  color: var(--ink);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-transform: uppercase;
  transition: transform 250ms cubic-bezier(0.2, 0.8, 0.2, 1), background 250ms ease;
}

.round-link svg {
  width: 1.2rem;
  align-self: end;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.8;
}

.round-link:hover {
  transform: rotate(-7deg) scale(1.06);
  background: var(--acid);
}

.orbit-label {
  position: absolute;
  color: rgba(243, 240, 231, 0.3);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  writing-mode: vertical-rl;
}

.orbit-label--one { top: 24%; right: 4%; }
.orbit-label--two { top: 17%; left: 52%; }

.ticker {
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--acid);
  padding: 1.05rem 0;
}

.ticker-track {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 2rem;
  animation: ticker 28s linear infinite;
  font-family: var(--display);
  font-size: clamp(1rem, 1.7vw, 1.45rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.ticker-track i {
  color: var(--coral);
  font-style: normal;
}

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

.section {
  padding: clamp(5rem, 10vw, 10rem) var(--pad);
}

.section-kicker {
  border-top: 1px solid var(--line);
  padding-top: 0.9rem;
}

.about-layout {
  display: grid;
  margin-top: clamp(3rem, 6vw, 6.5rem);
  grid-template-columns: minmax(0, 1.8fr) minmax(18rem, 0.7fr);
  align-items: end;
  gap: clamp(2rem, 7vw, 9rem);
}

.display {
  font-size: clamp(3rem, 6.3vw, 7.6rem);
}

.display span {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--ink);
}

.about-copy {
  padding-bottom: 0.5rem;
  font-size: clamp(1.05rem, 1.45vw, 1.35rem);
  line-height: 1.55;
}

.about-copy p:first-child {
  font-weight: 750;
}

.about-copy p:last-child {
  color: rgba(16, 16, 15, 0.6);
}

.principles {
  display: grid;
  margin-top: clamp(4rem, 8vw, 8rem);
  border-top: 1px solid var(--line);
  grid-template-columns: repeat(3, 1fr);
}

.principle {
  min-height: 16rem;
  padding: 1.4rem clamp(1rem, 2.5vw, 2.5rem) 1rem 0;
  border-right: 1px solid var(--line);
}

.principle + .principle {
  padding-left: clamp(1rem, 2.5vw, 2.5rem);
}

.principle:last-child { border-right: 0; }

.principle > span,
.project-number {
  color: rgba(16, 16, 15, 0.42);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.68rem;
}

.principle h3 {
  max-width: 13ch;
  margin: 4rem 0 1rem;
  font-family: var(--display);
  font-size: clamp(1.7rem, 2.6vw, 2.7rem);
  letter-spacing: -0.05em;
  line-height: 1;
  text-transform: uppercase;
}

.principle p {
  max-width: 24rem;
  margin: 0;
  color: rgba(16, 16, 15, 0.58);
}

.work {
  background: var(--ink);
  color: var(--paper);
}

.work .section-kicker { border-color: rgba(243, 240, 231, 0.18); }

.work-heading {
  display: flex;
  margin: clamp(3rem, 6vw, 6rem) 0 clamp(2.5rem, 5vw, 5rem);
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
}

.work-heading p {
  max-width: 27rem;
  margin: 0 0 0.7rem;
  color: rgba(243, 240, 231, 0.58);
  font-size: 1.05rem;
}

.project-list {
  display: grid;
  gap: 1rem;
}

.project {
  position: relative;
  display: flex;
  min-height: clamp(28rem, 48vw, 43rem);
  overflow: hidden;
  transform: perspective(1200px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  flex-direction: column;
  justify-content: space-between;
  border-radius: var(--radius);
  padding: clamp(1.25rem, 3vw, 3rem);
  color: var(--ink);
  transition: transform 180ms ease;
}

.project--live { background: #fff4df; }
.project--collab { background: var(--blue); }
.project--next { background: var(--coral); }

.project-meta,
.project-main {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
}

.project-meta {
  align-items: start;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 100px;
  background: var(--ink);
  padding: 0.55rem 0.75rem;
  color: var(--paper);
}

.status i {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 0.6rem var(--acid);
}

.status--soft i { background: var(--blue); box-shadow: 0 0 0.6rem var(--blue); }
.status--dark i { background: var(--coral); box-shadow: 0 0 0.6rem var(--coral); }

.project-main {
  align-items: end;
}

.project-main > div { max-width: 56rem; }

.project-number { margin: 0 0 1rem; }

.project h3 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(3rem, 7vw, 8.2rem);
  letter-spacing: -0.065em;
  line-height: 0.92;
  text-transform: uppercase;
}

.project-main p:last-child {
  max-width: 39rem;
  margin: 1.4rem 0 0;
  font-size: clamp(1rem, 1.45vw, 1.3rem);
}

.project-action {
  flex: 0 0 auto;
  border-bottom: 1px solid currentColor;
  padding: 0 0 0.3rem;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.project-action b { margin-left: 0.4rem; font-size: 1rem; }

.project-logo {
  position: absolute;
  z-index: 1;
  display: block;
  height: auto;
  pointer-events: none;
  user-select: none;
}

.project-logo--oefen {
  top: 11%;
  right: 9%;
  width: clamp(13rem, 28vw, 28rem);
  filter: drop-shadow(0 2rem 3rem rgba(113, 64, 16, 0.17));
  animation: float 6s ease-in-out infinite;
}

.project-logo--exequisite {
  top: 24%;
  right: 6%;
  width: min(66%, 58rem);
  filter: drop-shadow(0 1.5rem 2rem rgba(16, 16, 15, 0.12));
}

@keyframes float {
  50% { transform: translateY(-1rem) rotate(2deg); }
}

.signal {
  position: absolute;
  top: 8%;
  right: 8%;
  display: flex;
  width: clamp(14rem, 28vw, 27rem);
  height: 47%;
  align-items: end;
  justify-content: space-between;
  gap: 5%;
}

.signal i {
  width: 20%;
  border: 1px solid rgba(16, 16, 15, 0.66);
  border-radius: 100px;
  background: rgba(243, 240, 231, 0.2);
  animation: signal 2.8s ease-in-out infinite alternate;
}

.signal i:nth-child(1) { height: 22%; }
.signal i:nth-child(2) { height: 78%; animation-delay: -0.7s; }
.signal i:nth-child(3) { height: 46%; animation-delay: -1.4s; }
.signal i:nth-child(4) { height: 100%; animation-delay: -2.1s; }

@keyframes signal { to { height: 30%; } }

.contact {
  position: relative;
  overflow: hidden;
  background: var(--paper);
}

.contact .section-kicker { position: relative; z-index: 2; }

.contact h2 {
  position: relative;
  z-index: 2;
  margin: clamp(4rem, 8vw, 8rem) 0 3rem;
  font-size: clamp(4rem, 11vw, 12rem);
}

.email-link {
  position: relative;
  z-index: 2;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  padding: clamp(1.2rem, 2.5vw, 2.4rem) 0;
  font-family: var(--display);
  font-size: clamp(1.3rem, 3.7vw, 4.4rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  transition: color 180ms ease, padding 180ms ease;
}

.email-link svg {
  width: clamp(1.6rem, 3vw, 3rem);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

.email-link:hover {
  padding-right: 1rem;
  padding-left: 1rem;
  color: var(--coral);
}

.contact-note {
  position: relative;
  z-index: 2;
  display: flex;
  margin-top: 1rem;
  justify-content: space-between;
  color: rgba(16, 16, 15, 0.55);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.contact-orb {
  position: absolute;
  right: -8vw;
  bottom: -15vw;
  width: 45vw;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--acid);
  filter: blur(1px);
  opacity: 0.8;
}

.site-footer {
  display: grid;
  min-height: 18rem;
  padding: 3rem var(--pad) 2rem;
  grid-template-columns: 1fr 2fr 1fr;
  align-items: start;
  gap: 2rem;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.72rem;
}

.legal {
  color: rgba(243, 240, 231, 0.54);
}

.legal p { margin: 0 0 0.35rem; }
.legal span { color: var(--acid); }
.site-footer > a { justify-self: end; border-bottom: 1px solid rgba(243,240,231,0.4); }
.copyright { grid-column: 1 / -1; align-self: end; margin: 0; color: rgba(243, 240, 231, 0.36); }

.js .reveal {
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity 700ms cubic-bezier(0.2, 0.8, 0.2, 1) var(--delay, 0ms), transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1) var(--delay, 0ms);
}

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

@media (max-width: 800px) {
  .site-header { padding-top: 1.15rem; }
  .menu-toggle {
    position: relative;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    border: 1px solid rgba(243, 240, 231, 0.25);
    border-radius: 100px;
    background: transparent;
    padding: 0.58rem 0.75rem;
    color: inherit;
    font: inherit;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
  }
  .menu-toggle i,
  .menu-toggle i::after {
    display: block;
    width: 0.9rem;
    height: 1px;
    background: currentColor;
    content: "";
    transition: transform 200ms ease;
  }
  .menu-toggle i::after { transform: translateY(4px); }
  .menu-toggle[aria-expanded="true"] i { transform: rotate(45deg); }
  .menu-toggle[aria-expanded="true"] i::after { transform: rotate(-90deg); }
  .site-nav {
    position: absolute;
    top: 0.65rem;
    right: calc(var(--pad) - 0.5rem);
    display: none;
    min-width: 13rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border-radius: 1.4rem;
    background: var(--paper);
    padding: 4rem 0.7rem 0.7rem;
    color: var(--ink);
    box-shadow: 0 1rem 4rem rgba(0, 0, 0, 0.3);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 0.8rem; }
  .nav-contact { margin-top: 0.3rem; background: var(--acid); }
  .hero-copy { justify-content: center; padding-top: 11rem; }
  h1 { font-size: clamp(3.2rem, 16vw, 6.5rem); }
  .hero-bottom { width: 100%; margin-top: 2.2rem; align-items: end; }
  .hero-bottom p { max-width: 19rem; }
  .round-link { width: 5.7rem; height: 5.7rem; padding: 0.9rem; }
  .orbit-label { display: none; }
  .about-layout { grid-template-columns: 1fr; }
  .about-copy { max-width: 32rem; }
  .principles { grid-template-columns: 1fr; }
  .principle,
  .principle + .principle { min-height: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 1.4rem 0 2.2rem; }
  .principle h3 { margin-top: 2.5rem; }
  .work-heading { align-items: start; flex-direction: column; }
  .project { min-height: 33rem; }
  .project-main { align-items: start; flex-direction: column; }
  .project-logo--oefen,
  .signal { top: 16%; right: 4%; opacity: 0.75; }
  .project-logo--exequisite { top: 25%; right: 5%; width: 88%; }
  .contact-note { align-items: start; flex-direction: column; gap: 0.35rem; }
  .site-footer { grid-template-columns: 1fr 1fr; }
  .legal { grid-column: 1 / -1; grid-row: 2; }
  .site-footer > a { grid-column: 2; grid-row: 1; }
}

@media (max-width: 420px) {
  :root { --pad: 1rem; }
  .brand { font-size: 0.9rem; }
  .brand-mark { width: 1.8rem; }
  .hero { min-height: 44rem; }
  .hero-copy { min-height: 44rem; padding-bottom: 2rem; }
  .eyebrow { max-width: 18rem; font-size: 0.6rem; }
  h1 { font-size: clamp(2.95rem, 14.8vw, 3.85rem); line-height: 0.96; }
  .hero-bottom { gap: 1rem; }
  .hero-bottom p { font-size: 0.88rem; }
  .round-link { width: 5rem; height: 5rem; font-size: 0.56rem; }
  .display { font-size: clamp(2.55rem, 12.8vw, 3.55rem); }
  .project { min-height: 31rem; }
  .project-meta > span:last-child { text-align: right; }
  .project h3 { font-size: clamp(2.35rem, 12vw, 3.35rem); }
  .project--live h3 { font-size: clamp(2.05rem, 10.5vw, 2.9rem); }
  .project-main p:last-child { font-size: 0.94rem; }
  .project-logo--oefen, .signal { width: 12rem; }
  .project-logo--exequisite { width: 90%; }
  .project-action { font-size: 0.64rem; }
  .contact h2 { font-size: clamp(3.2rem, 17vw, 4.4rem); }
  .email-link { font-size: 1.15rem; }
  .site-footer { min-height: 20rem; grid-template-columns: 1fr; }
  .site-footer > a { grid-column: 1; grid-row: auto; justify-self: start; }
  .legal { grid-column: 1; grid-row: auto; }
}

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