:root {
  --orange: #ff4b12;
  --orange-bright: #ff6a00;
  --cream: #f7f3ec;
  --paper: #fffdf8;
  --ink: #111214;
  --ink-soft: #26282d;
  --line: rgba(17, 18, 20, 0.16);
  --muted: rgba(17, 18, 20, 0.62);
  --display: "Anton", Impact, sans-serif;
  --body: "Inter", "Noto Sans SC", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body,
button,
a {
  letter-spacing: 0;
}

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

button {
  font: inherit;
}

img {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p,
figure {
  margin: 0;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.13;
  mix-blend-mode: overlay;
  background-image: repeating-radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.24) 0 1px, transparent 1px 4px);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  min-height: 4.5rem;
  padding: 0 clamp(1rem, 3vw, 2.5rem);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.site-header.is-scrolled {
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  background: rgba(247, 243, 236, 0.92);
  backdrop-filter: blur(14px);
}

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

.brand {
  justify-self: start;
  gap: 0.55rem;
  font-size: 0.88rem;
}

.brand-mark {
  font-size: 1.45rem;
  line-height: 0;
}

.nav-links {
  justify-self: center;
  gap: clamp(1.4rem, 4vw, 4rem);
}

.nav-links a,
.header-cta {
  opacity: 0.82;
  transition: opacity 160ms ease;
}

.nav-links a:hover,
.header-cta:hover {
  opacity: 1;
}

.header-cta {
  justify-self: end;
  gap: 0.7rem;
}

.circle-arrow {
  display: grid;
  width: 1.65rem;
  height: 1.65rem;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 0.9rem;
}

.hero {
  position: relative;
  min-height: 88svh;
  overflow: hidden;
  color: #fff;
  background: var(--orange);
}

.hero-media,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 52% 40%;
  transform: scale(1.015);
  transition: transform 220ms ease-out;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(38, 8, 0, 0.68) 0%, rgba(38, 8, 0, 0.08) 46%, rgba(38, 8, 0, 0.05) 100%),
    linear-gradient(0deg, rgba(24, 5, 0, 0.7) 0%, transparent 48%),
    linear-gradient(180deg, rgba(14, 3, 0, 0.4) 0%, transparent 28%);
}

.hero-topline {
  position: absolute;
  z-index: 3;
  top: 6.8rem;
  left: clamp(1rem, 4vw, 4rem);
  right: clamp(1rem, 4vw, 4rem);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-copy {
  position: absolute;
  z-index: 3;
  left: clamp(1rem, 4vw, 4rem);
  bottom: clamp(7.5rem, 15vh, 10rem);
  width: min(52rem, 70vw);
}

.hero-kicker {
  max-width: 28rem;
  margin-bottom: 1.2rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(0.9rem, 1.25vw, 1.08rem);
  font-weight: 700;
  line-height: 1.55;
}

.hero h1 {
  font-family: var(--display);
  font-size: clamp(5rem, 11vw, 10.8rem);
  font-weight: 400;
  line-height: 0.88;
  text-transform: uppercase;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: 3.25rem;
  padding: 0 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: #fff;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  transition: background-color 160ms ease, color 160ms ease;
}

.primary-button:hover {
  background: var(--orange);
  color: #fff;
}

.text-link {
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-index {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  min-height: 4.7rem;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(44, 9, 0, 0.18);
  backdrop-filter: blur(8px);
}

.hero-index span {
  display: flex;
  align-items: center;
  padding: 0 clamp(1rem, 4vw, 4rem);
  border-right: 1px solid rgba(255, 255, 255, 0.2);
  font-size: clamp(0.7rem, 1vw, 0.84rem);
  font-weight: 800;
  text-transform: uppercase;
}

.hero-index span:last-child {
  border-right: 0;
}

.project-section,
.experiments-section {
  padding: clamp(5rem, 9vw, 9rem) clamp(1rem, 4vw, 4rem);
}

.project-section {
  background: var(--cream);
}

.section-intro {
  max-width: 92rem;
  margin: 0 auto clamp(3rem, 6vw, 5rem);
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(18rem, 0.65fr);
  gap: clamp(2rem, 7vw, 8rem);
  align-items: end;
}

.eyebrow {
  margin-bottom: 1.1rem;
  color: var(--orange);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.eyebrow.light {
  color: rgba(255, 255, 255, 0.7);
}

.section-intro h2,
.about-title h2,
.experiments-heading h2,
.contact-section h2 {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
}

.section-intro h2 {
  font-size: clamp(3.6rem, 6vw, 6.8rem);
  line-height: 0.94;
}

.section-description {
  color: var(--muted);
  font-size: clamp(0.98rem, 1.3vw, 1.12rem);
  font-weight: 600;
  line-height: 1.75;
}

.project-toolbar {
  max-width: 92rem;
  margin: 0 auto 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.filter-control {
  display: inline-flex;
  border: 1px solid var(--line);
}

.filter-button {
  min-height: 2.65rem;
  padding: 0 1rem;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 800;
}

.filter-button:last-child {
  border-right: 0;
}

.filter-button.is-active {
  background: var(--ink);
  color: #fff;
}

.project-count {
  font-size: 0.72rem;
  font-weight: 800;
}

.project-grid {
  max-width: 92rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.project-card {
  min-width: 0;
  border: 1px solid var(--line);
  background: var(--paper);
  transition: transform 220ms ease, box-shadow 220ms ease, opacity 180ms ease;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 1.5rem 3rem rgba(23, 18, 13, 0.1);
}

.project-card[hidden] {
  display: none;
}

.project-card > a {
  display: flex;
  height: 100%;
  flex-direction: column;
}

.project-card--wide {
  grid-column: 1 / -1;
}

.project-card--wide > a {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(20rem, 0.75fr);
}

.project-visual {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #e5e1d9;
}

.project-card--wide .project-visual {
  aspect-ratio: 16 / 8.4;
}

.project-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 500ms cubic-bezier(0.2, 0.75, 0.25, 1);
}

.project-card:hover .project-visual img {
  transform: scale(1.025);
}

.project-number {
  position: absolute;
  top: 0.8rem;
  left: 0.8rem;
  display: grid;
  width: 2.45rem;
  height: 2.45rem;
  place-items: center;
  background: var(--orange);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 900;
}

.project-info {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: space-between;
  gap: 2.5rem;
  padding: clamp(1.2rem, 2.5vw, 2rem);
}

.project-type {
  margin-bottom: 0.85rem;
  color: var(--orange);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.project-info h3 {
  margin-bottom: 0.85rem;
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 400;
  line-height: 0.98;
  text-transform: uppercase;
}

.project-info p:not(.project-type) {
  max-width: 38rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.65;
}

.project-open {
  align-self: flex-start;
  padding-bottom: 0.2rem;
  border-bottom: 1px solid currentColor;
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.about-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(22rem, 0.75fr);
  gap: clamp(3rem, 9vw, 10rem);
  padding: clamp(5rem, 9vw, 9rem) clamp(1rem, 4vw, 4rem);
  background: var(--ink);
  color: #fff;
}

.about-title h2 {
  font-size: clamp(3.5rem, 8vw, 8rem);
  line-height: 0.94;
}

.about-lead {
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
  color: rgba(255, 255, 255, 0.74);
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  font-weight: 600;
  line-height: 1.75;
}

.capability-list {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.capability-list div {
  display: grid;
  grid-template-columns: 2rem minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 1rem;
  align-items: center;
  min-height: 4.6rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.capability-list span,
.capability-list em {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.72rem;
  font-style: normal;
}

.capability-list strong {
  font-size: 0.86rem;
  text-transform: uppercase;
}

.metric-strip {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.metric-strip div {
  display: flex;
  min-height: 10rem;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
  padding: 1.5rem;
}

.metric-strip div:last-child {
  border-right: 0;
}

.metric-strip strong {
  font-family: var(--display);
  font-size: clamp(3.5rem, 7vw, 7rem);
  font-weight: 400;
  line-height: 1;
}

.metric-strip span {
  margin-top: 0.55rem;
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.68rem;
  font-weight: 800;
}

.experiments-section {
  background: var(--paper);
}

.experiments-heading,
.experiment-list {
  max-width: 92rem;
  margin-left: auto;
  margin-right: auto;
}

.experiments-heading {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.experiments-heading h2 {
  font-size: clamp(3rem, 7vw, 7rem);
  line-height: 0.95;
}

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

.experiment-list a {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr) minmax(10rem, 0.55fr) 2rem;
  gap: 1rem;
  align-items: center;
  min-height: 5.4rem;
  border-bottom: 1px solid var(--line);
  transition: background-color 160ms ease, padding 160ms ease;
}

.experiment-list a:hover {
  padding-left: 1rem;
  background: var(--orange);
  color: #fff;
}

.experiment-index,
.experiment-list a > span:nth-of-type(2) {
  color: var(--muted);
  font-size: 0.74rem;
}

.experiment-list a:hover span {
  color: rgba(255, 255, 255, 0.72);
}

.experiment-list strong {
  font-size: clamp(1.1rem, 2vw, 1.45rem);
}

.experiment-list b {
  font-size: 1.2rem;
}

.contact-section {
  min-height: 78svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(5rem, 9vw, 9rem) clamp(1rem, 4vw, 4rem) 2rem;
  background: var(--orange);
  color: #fff;
}

.contact-section h2 {
  max-width: 12ch;
  font-size: clamp(4rem, 10vw, 10rem);
  line-height: 0.9;
}

.contact-section > a {
  align-self: flex-start;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: clamp(2rem, 5vw, 4rem);
  padding-bottom: 0.35rem;
  border-bottom: 2px solid currentColor;
  font-size: clamp(1rem, 2vw, 1.5rem);
  font-weight: 800;
}

.contact-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: auto;
  padding-top: 5rem;
  font-size: 0.68rem;
  font-weight: 800;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms ease, transform 600ms ease;
}

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

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

  .nav-links {
    display: none;
  }

  .hero-media img {
    object-position: 58% 38%;
  }

  .hero-copy {
    width: calc(100% - 2rem);
  }

  .hero h1 {
    max-width: 6ch;
  }

  .section-intro,
  .about-section {
    grid-template-columns: 1fr;
  }

  .project-card--wide > a {
    display: flex;
  }

  .project-card--wide .project-visual {
    aspect-ratio: 16 / 10;
  }

  .capability-list div {
    grid-template-columns: 2rem minmax(0, 1fr);
  }

  .capability-list em {
    grid-column: 2;
    padding-bottom: 1rem;
  }
}

@media (max-width: 680px) {
  .hero {
    min-height: 84svh;
  }

  .hero-media img {
    object-position: 58% 32%;
  }

  .hero-shade {
    background:
      linear-gradient(0deg, rgba(29, 6, 0, 0.82) 0%, rgba(29, 6, 0, 0.12) 68%),
      linear-gradient(180deg, rgba(14, 3, 0, 0.48) 0%, transparent 30%);
  }

  .hero-topline span:last-child,
  .header-cta span:first-child {
    display: none;
  }

  .hero-copy {
    bottom: 7rem;
  }

  .hero-kicker {
    max-width: 18rem;
    font-size: 0.82rem;
  }

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

  .hero-actions {
    margin-top: 1.4rem;
  }

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

  .hero-index span {
    padding: 0 1rem;
  }

  .hero-index span:nth-child(2) {
    border-right: 0;
  }

  .hero-index span:last-child {
    display: none;
  }

  .project-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .filter-control {
    width: 100%;
    overflow-x: auto;
  }

  .filter-button {
    flex: 0 0 auto;
  }

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

  .project-card--wide {
    grid-column: auto;
  }

  .metric-strip {
    grid-template-columns: 1fr;
  }

  .metric-strip div {
    min-height: 7rem;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }

  .metric-strip div:last-child {
    border-bottom: 0;
  }

  .experiment-list a {
    grid-template-columns: 2.2rem minmax(0, 1fr) 1.5rem;
    min-height: 4.8rem;
  }

  .experiment-list a > span:nth-of-type(2) {
    display: none;
  }

  .contact-section {
    min-height: 68svh;
  }

  .contact-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-media img,
  .project-visual img,
  .project-card {
    transition: none;
  }
}
