:root {
  --ink: #050505;
  --paper: #f1eee7;
  --muted: rgba(241, 238, 231, 0.68);
  --line: rgba(241, 238, 231, 0.16);
  --accent: #d9ff60;
  --accent-2: #ff593f;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--paper);
  background: var(--ink);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--ink);
}

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

.loader {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  background: var(--ink);
  animation: loaderExit 900ms ease 900ms forwards;
}

.loader span {
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

@keyframes loaderExit {
  to {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-18px);
  }
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px clamp(20px, 4vw, 64px);
  color: var(--paper);
  mix-blend-mode: difference;
}

.brand,
nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  font-weight: 900;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 12px;
}

nav {
  gap: clamp(18px, 3vw, 38px);
  font-size: 13px;
  text-transform: uppercase;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid currentColor;
  border-radius: 4px;
  font-weight: 900;
  text-transform: uppercase;
}

.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  padding: 126px clamp(20px, 4vw, 64px) 56px;
}

#motion-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.82;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(5, 5, 5, 0.92), rgba(5, 5, 5, 0.48), rgba(5, 5, 5, 0.94));
}

.hero-grid {
  position: relative;
  z-index: 1;
  min-height: calc(100vh - 182px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  align-items: end;
  gap: clamp(32px, 6vw, 90px);
}

.hero-copy {
  max-width: 1120px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 1180px;
  margin-bottom: 26px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(56px, 11vw, 184px);
  line-height: 0.82;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 22px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(44px, 8vw, 138px);
  line-height: 0.86;
}

h3 {
  margin-bottom: 10px;
  font-size: clamp(24px, 3vw, 44px);
}

p {
  color: var(--muted);
  font-size: clamp(16px, 1.5vw, 22px);
  line-height: 1.65;
}

.hero-text {
  max-width: 620px;
}

.hero-panel {
  border-top: 1px solid var(--paper);
  padding-top: 24px;
}

.hero-panel span {
  display: block;
  margin-bottom: 28px;
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}

.hero-panel strong {
  display: block;
  margin-bottom: 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
}

.work,
.process,
.stats,
.contact {
  padding: clamp(72px, 10vw, 150px) clamp(20px, 4vw, 64px);
}

.section-intro {
  max-width: 920px;
  margin-bottom: clamp(38px, 6vw, 80px);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.work-grid article {
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px;
  border: 1px solid var(--line);
  overflow: hidden;
}

.work-visual {
  min-height: 340px;
  margin: -22px -22px 28px;
  border-bottom: 1px solid var(--line);
}

.visual-one {
  background:
    linear-gradient(135deg, rgba(217, 255, 96, 0.9), transparent 42%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.16) 0 1px, transparent 1px 18px),
    #161616;
}

.visual-two {
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 89, 63, 0.86), transparent 34%),
    linear-gradient(45deg, rgba(241, 238, 231, 0.14), transparent),
    #101010;
}

.visual-three {
  background:
    conic-gradient(from 180deg at 50% 50%, #d9ff60, #050505, #ff593f, #050505, #d9ff60);
}

.work-grid span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

.process .eyebrow,
.process p {
  color: rgba(5, 5, 5, 0.72);
}

.process-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(28px, 6vw, 92px);
  margin-bottom: clamp(54px, 8vw, 100px);
}

.process-heading h2 {
  margin-bottom: 0;
  font-size: clamp(72px, 13vw, 190px);
  text-transform: uppercase;
}

.process-heading p {
  max-width: 460px;
  margin-bottom: 0;
  font-weight: 700;
}

.process-list {
  border-top: 1px solid var(--ink);
}

.process-item {
  border-bottom: 1px solid var(--ink);
}

.process-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(18px, 4vw, 64px);
  padding: clamp(26px, 4vw, 48px) 8px clamp(26px, 4vw, 48px) 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.process-trigger span {
  width: clamp(48px, 7vw, 92px);
  flex: 0 0 auto;
  color: rgba(5, 5, 5, 0.48);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 14px;
}

.process-trigger strong {
  flex: 1;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(36px, 6vw, 92px);
  font-style: italic;
  font-weight: 400;
  line-height: 0.92;
  transition: transform 420ms ease;
}

.process-trigger:hover strong {
  transform: translateX(14px);
}

.process-trigger em {
  width: 34px;
  flex: 0 0 auto;
  font-size: 34px;
  font-style: normal;
  line-height: 1;
  text-align: center;
}

.process-panel {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 620ms ease, opacity 420ms ease;
}

.process-item.is-open .process-panel {
  grid-template-rows: 1fr;
  opacity: 1;
}

.process-panel p {
  overflow: hidden;
  max-width: 760px;
  margin-bottom: 0;
  padding: 0 0 clamp(28px, 4vw, 52px) clamp(72px, 10vw, 150px);
  color: rgba(5, 5, 5, 0.72);
  font-size: clamp(18px, 2vw, 28px);
  line-height: 1.55;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  padding-top: 1px;
  background: var(--line);
}

.stats div {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(20px, 4vw, 42px);
  background: var(--ink);
}

.stats strong {
  color: var(--accent);
  font-size: clamp(54px, 10vw, 150px);
  line-height: 0.8;
}

.stats span {
  color: var(--muted);
  font-weight: 800;
  text-transform: uppercase;
}

.contact {
  min-height: 78vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: var(--accent);
  color: var(--ink);
}

.contact .eyebrow {
  color: var(--ink);
}

.contact h2 {
  max-width: 1120px;
}

.contact a {
  width: fit-content;
  padding: 16px 22px;
  border: 1px solid var(--ink);
  border-radius: 4px;
  font-weight: 900;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 760ms ease, transform 760ms ease;
}

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

@media (max-width: 900px) {
  .site-header {
    position: absolute;
    flex-wrap: wrap;
    mix-blend-mode: normal;
  }

  nav {
    width: 100%;
    justify-content: space-between;
  }

  .hero-grid,
  .work-grid,
  .stats {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    min-height: calc(100vh - 172px);
  }

  .work-grid article {
    min-height: auto;
  }

  .process-heading {
    display: block;
  }

  .process-heading p {
    margin-top: 22px;
  }

  .process-panel p {
    padding-left: 0;
  }
}
