:root,
[data-theme="light"] {
  --font-display: "General Sans", "Helvetica Neue", sans-serif;
  --font-body: "Satoshi", "Helvetica Neue", sans-serif;
  --text-xs: clamp(0.75rem, 0.71rem + 0.15vw, 0.85rem);
  --text-sm: clamp(0.875rem, 0.82rem + 0.22vw, 0.975rem);
  --text-base: clamp(1rem, 0.95rem + 0.2vw, 1.075rem);
  --text-lg: clamp(1.2rem, 1rem + 0.7vw, 1.55rem);
  --text-xl: clamp(1.7rem, 1.15rem + 1.7vw, 2.95rem);
  --text-2xl: clamp(2.6rem, 1.3rem + 4.1vw, 5.75rem);
  --text-hero: clamp(3.6rem, 1rem + 6.5vw, 8.2rem);
  --paper: #ece8dd;
  --ink: #11110f;
  --muted: #746f65;
  --faint: #a8a297;
  --blue: #1639dc;
  --blue-soft: #cbd2ff;
  --line: rgb(17 17 15 / 18%);
  --surface: #ded9cc;
  --gutter: clamp(20px, 4vw, 64px);
  --ease: 420ms cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="dark"] {
  --paper: #0c0c0b;
  --ink: #eeeae0;
  --muted: #8e8a81;
  --faint: #57554f;
  --blue: #526cff;
  --blue-soft: #172262;
  --line: rgb(238 234 224 / 18%);
  --surface: #141412;
}

body {
  transition: color var(--ease), background var(--ease);
}

.header {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  min-height: 80px;
  padding-inline: var(--gutter);
  border-bottom: 1px solid transparent;
  transition: background var(--ease), border-color var(--ease);
}

.header.is-scrolled {
  background: color-mix(in oklab, var(--paper) 92%, transparent);
  border-color: var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  width: fit-content;
  gap: 12px;
  font-size: var(--text-xs);
  font-weight: 600;
  line-height: 1.05;
  text-transform: uppercase;
}

.brand svg {
  width: 38px;
  color: var(--blue);
  fill: none;
  stroke: currentColor;
  stroke-width: 0.8;
}

.nav {
  display: flex;
  gap: 36px;
  color: var(--muted);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.nav a:hover {
  color: var(--blue);
}

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

.theme-button,
.menu-button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.project-link {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 48px;
  padding-inline: 20px;
  border: 1px solid var(--line);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  white-space: nowrap;
}

.project-link:hover,
.theme-button:hover {
  color: #f3f0e6;
  background: var(--blue);
  border-color: var(--blue);
}

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

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 61% 39%;
  min-height: 100svh;
  padding-top: 80px;
  overflow: hidden;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 32px var(--gutter);
}

.hero-meta {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.hero h1 {
  position: relative;
  z-index: 2;
  width: 125%;
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: 500;
  letter-spacing: -0.085em;
  line-height: 0.8;
}

.hero h1 span {
  display: block;
  white-space: nowrap;
}

.hero h1 span:last-child {
  padding-left: 8vw;
}

.hero h1 i {
  color: var(--blue);
  font-style: normal;
  font-weight: 300;
  letter-spacing: -0.095em;
}

.hero-foot {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.hero-foot p {
  max-width: 46ch;
  color: var(--muted);
  font-size: var(--text-sm);
}

.hero-foot a {
  display: flex;
  gap: 32px;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-foot a:hover {
  color: var(--blue);
}

.hero-image {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  background: var(--blue);
}

.hero-image::after {
  position: absolute;
  inset: 0;
  content: "";
  background: var(--blue);
  mix-blend-mode: color;
  opacity: 0.76;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.65) contrast(1.08);
}

.hero-image figcaption {
  position: absolute;
  z-index: 2;
  right: 24px;
  bottom: 24px;
  left: 24px;
  display: flex;
  justify-content: space-between;
  color: #f3f0e6;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hero-axis {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 6%;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #f3f0e6;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  transform: translate(-50%, -50%) rotate(90deg);
}

.hero-axis i {
  display: block;
  width: 72px;
  height: 1px;
  background: currentColor;
}

.section-label {
  display: flex;
  gap: 20px;
  color: var(--muted);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.manifesto {
  display: grid;
  grid-template-columns: 0.45fr 1.55fr;
  gap: 56px;
  padding: 128px var(--gutter);
}

.manifesto h2,
.section-header h2,
.expertise h2,
.contact h2 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 500;
  letter-spacing: -0.075em;
  line-height: 0.9;
}

.manifesto h2 em,
.section-header h2 em,
.expertise h2 em,
.contact h2 em {
  color: var(--blue);
  font-style: normal;
  font-weight: 300;
}

.manifesto-copy {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 48px;
  margin-top: 96px;
}

.manifesto-copy p {
  max-width: 50ch;
  color: var(--muted);
}

.orbit {
  width: 120px;
  color: var(--blue);
}

.orbit svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 0.75;
  animation: turn 22s linear infinite;
}

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

.work {
  padding: 112px var(--gutter);
  color: #f0ede5;
  background: #11110f;
}

.section-header {
  display: grid;
  grid-template-columns: 0.65fr 1fr 0.65fr;
  align-items: end;
  gap: 48px;
  margin-bottom: 80px;
}

.section-header .section-label,
.section-header > p {
  color: #89867e;
}

.section-header > p {
  max-width: 36ch;
  font-size: var(--text-sm);
}

.section-header h2 em {
  color: #93a2ff;
}

.project {
  margin-bottom: 88px;
}

.project a {
  position: relative;
  display: block;
}

.project figure {
  position: relative;
  overflow: hidden;
  background: #232321;
}

.project img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.8);
  transition: transform 900ms cubic-bezier(0.16, 1, 0.3, 1), filter var(--ease);
}

.project a:hover img {
  filter: saturate(1);
  transform: scale(1.025);
}

.project-blue figure {
  aspect-ratio: 16 / 8;
}

.project-blue figure::after {
  position: absolute;
  inset: 0;
  content: "";
  background: #1639dc;
  mix-blend-mode: color;
  opacity: 0.28;
}

.project-number {
  position: absolute;
  z-index: 2;
  top: 20px;
  right: 20px;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  color: #11110f;
  background: #f0ede5;
  border-radius: 50%;
  font-size: var(--text-xs);
}

.project-info {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  align-items: baseline;
  gap: 24px;
  padding-top: 18px;
  border-top: 1px solid rgb(240 237 229 / 22%);
}

.project-info h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 500;
  letter-spacing: -0.055em;
}

.project-info p,
.project-info > span {
  color: #89867e;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.project-duo {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(32px, 8vw, 128px);
}

.project-duo figure {
  aspect-ratio: 4 / 5;
}

.project-shift {
  margin-top: 128px;
}

.project-final {
  width: 74%;
  margin-left: auto;
}

.project-final figure {
  aspect-ratio: 16 / 9;
}

.expertise {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  color: #f3f0e6;
  background: var(--blue);
}

.expertise-heading {
  padding: 72px var(--gutter);
  border-right: 1px solid rgb(243 240 230 / 26%);
}

.expertise .section-label {
  color: #b9c2ff;
}

.expertise h2 {
  position: sticky;
  top: 152px;
  margin-top: 112px;
}

.expertise h2 em {
  color: #b9c2ff;
}

.expertise-heading > p {
  max-width: 36ch;
  margin-top: 48px;
  color: #b9c2ff;
  font-size: var(--text-sm);
}

.expertise ol {
  list-style: none;
}

.expertise li {
  border-bottom: 1px solid rgb(243 240 230 / 26%);
}

.expertise li > a {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  min-height: 136px;
  padding-inline: var(--gutter);
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.expertise li > a::after {
  content: "↗";
  justify-self: end;
  font-size: var(--text-sm);
  opacity: 0;
  transform: translate(-6px, 6px);
  transition: opacity 300ms ease, transform 300ms ease;
}

.expertise li > a:hover::after,
.expertise li > a:focus-visible::after {
  opacity: 1;
  transform: translate(0, 0);
}

.expertise li > a > span,
.expertise li > a p {
  color: #b9c2ff;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.expertise li > a h3 {
  padding-left: 32px;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 500;
  letter-spacing: -0.055em;
}

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

.metrics > div {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 300px;
  padding: 32px var(--gutter);
  border-right: 1px solid var(--line);
}

.metrics > div:last-child {
  border-right: 0;
}

.metrics strong {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 500;
  letter-spacing: -0.075em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.metrics span {
  color: var(--muted);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.contact {
  padding: 96px var(--gutter) 128px;
}

.contact-main {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  align-items: end;
  gap: 72px;
  margin-top: 128px;
}

.contact-side p {
  max-width: 36ch;
  margin-bottom: 48px;
  color: var(--muted);
}

.contact-side a {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-block: 20px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: var(--text-sm);
}

.contact-side a:hover {
  padding-inline: 12px;
  color: #f3f0e6;
  background: var(--blue);
}

footer {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  align-items: end;
  gap: 32px;
  padding: 48px var(--gutter);
  color: #f3f0e6;
  background: #11110f;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

footer > div {
  display: flex;
  flex-direction: column;
}

.footer-brand svg {
  color: #93a2ff;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 850ms cubic-bezier(0.16, 1, 0.3, 1), transform 850ms cubic-bezier(0.16, 1, 0.3, 1);
}

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

@media (max-width: 900px) {
  .header {
    grid-template-columns: 1fr auto;
  }

  .nav,
  .project-link {
    display: none;
  }

  .menu-button {
    display: grid;
    gap: 5px;
  }

  .menu-button span {
    width: 17px;
    height: 1px;
    background: currentColor;
    transition: transform var(--ease);
  }

  .menu-button[aria-expanded="true"] span:first-child {
    transform: translateY(3px) rotate(45deg);
  }

  .menu-button[aria-expanded="true"] span:last-child {
    transform: translateY(-3px) rotate(-45deg);
  }

  .menu {
    position: fixed;
    z-index: 90;
    inset: 0;
    display: flex;
    align-items: end;
    padding: 120px var(--gutter) 48px;
    color: #f3f0e6;
    background: #11110f;
    visibility: hidden;
    opacity: 0;
    transition: opacity var(--ease), visibility var(--ease);
  }

  .menu.is-open {
    visibility: visible;
    opacity: 1;
  }

  .menu nav {
    width: 100%;
  }

  .menu a {
    display: flex;
    gap: 24px;
    padding-block: 10px;
    border-bottom: 1px solid rgb(243 240 230 / 22%);
    font-family: var(--font-display);
    font-size: var(--text-2xl);
  }

  .menu a span {
    color: #89867e;
    font-family: var(--font-body);
    font-size: var(--text-xs);
  }

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

  .hero-copy {
    min-height: 68svh;
    padding-block: 32px;
  }

  .hero h1 {
    width: 100%;
  }

  .hero-image {
    min-height: 52svh;
  }

  .hero-axis {
    display: none;
  }

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

  .section-header {
    grid-template-columns: 1fr 1fr;
  }

  .section-header > p {
    grid-column: 2;
  }

  .expertise,
  .contact-main {
    grid-template-columns: 1fr;
  }

  .expertise-heading {
    border-right: 0;
    border-bottom: 1px solid rgb(243 240 230 / 26%);
  }

  .expertise h2 {
    position: static;
  }
}

@media (max-width: 640px) {
  .hero-meta span:last-child {
    display: none;
  }

  .hero-copy {
    min-height: 650px;
  }

  .hero h1 span:last-child {
    padding-left: 0;
  }

  .hero-foot {
    grid-template-columns: 1fr;
  }

  .hero-foot a {
    justify-content: space-between;
  }

  .manifesto,
  .work,
  .contact {
    padding-block: 80px;
  }

  .manifesto-copy {
    grid-template-columns: 1fr;
    margin-top: 64px;
  }

  .orbit {
    justify-self: end;
  }

  .section-header {
    grid-template-columns: 1fr;
    margin-bottom: 48px;
  }

  .section-header > p {
    grid-column: auto;
  }

  .project-duo {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .project-shift {
    margin-top: 0;
  }

  .project-final {
    width: 100%;
  }

  .project-blue figure,
  .project-final figure {
    aspect-ratio: 4 / 5;
  }

  .project-info {
    grid-template-columns: 1fr auto;
  }

  .project-info p {
    grid-column: 1;
  }

  .project-info > span {
    grid-column: 2;
    grid-row: 1;
  }

  .expertise li > a {
    grid-template-columns: auto 1fr;
    min-height: 104px;
  }

  .expertise li > a::after {
    display: none;
  }

  .expertise li > a p {
    display: none;
  }

  .expertise li > a h3 {
    padding-left: 18px;
  }

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

  .metrics > div {
    min-height: 210px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .contact-main {
    margin-top: 80px;
  }

  footer {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}
