:root {
  --bg: #0b0b0c;
  --text: #efece6;
  --muted: #9a968d;
  --accent: #3ce0d0;
  --line: rgba(239, 236, 230, 0.16);
  --gutter: clamp(20px, 5vw, 56px);
  --max: 1120px;
  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --sans: "Hanken Grotesk", "Segoe UI", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,
h2,
h3,
p,
dl,
dd,
ul {
  margin: 0;
  padding: 0;
}

ul {
  list-style: none;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
}

/* 3D background */

#bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  display: block;
}

.veil {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(11, 11, 12, 0.85) 0%, rgba(11, 11, 12, 0.4) 45%, transparent 75%),
    linear-gradient(180deg, transparent 60%, rgba(11, 11, 12, 0.7) 100%);
}

/* Navigation */

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 20;
  padding: 10px 16px;
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
}

.skip-link:focus {
  top: 16px;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 16px var(--gutter);
  border-bottom: 1px solid var(--line);
  background: rgba(11, 11, 12, 0.82);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.nav_inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: var(--max);
  margin: 0 auto;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--display);
  font-size: 1.6rem;
  line-height: 1;
  text-decoration: none;
}

.wordmark_mark {
  width: 22px;
  height: 22px;
}

.nav_links {
  display: flex;
  gap: 28px;
}

.nav_links a {
  color: var(--muted);
  font-size: 0.95rem;
  text-decoration: none;
}

.nav_links a:hover {
  color: var(--text);
}

/* Hero */

.hero {
  display: flex;
  align-items: center;
  min-height: 86vh;
  min-height: 86svh;
  padding: 72px var(--gutter) 96px;
}

.kicker {
  color: var(--muted);
}

.hero_title {
  max-width: 12ch;
  margin-top: 18px;
  font-family: var(--display);
  font-size: clamp(3rem, 9.4vw, 7.25rem);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.hero_title em {
  font-style: normal;
  color: var(--accent);
}

.hero_lead {
  max-width: 33rem;
  margin-top: 28px;
  color: var(--muted);
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px;
  margin-top: 40px;
}

.button {
  display: inline-block;
  padding: 14px 24px;
  border-radius: 6px;
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
  text-decoration: none;
}

.button:hover {
  background: #fff;
}

.text-link {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.text-link:hover {
  color: var(--accent);
}

/* Sections */

.section {
  padding: clamp(64px, 10vw, 120px) var(--gutter);
  border-top: 1px solid var(--line);
  scroll-margin-top: 56px;
}

.label {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.95rem;
}

.section_title {
  font-family: var(--display);
  font-size: clamp(2.3rem, 5.2vw, 3.75rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.split {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 48px;
}

.rows .row {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 24px;
  align-items: baseline;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.rows .row:last-child {
  border-bottom: 1px solid var(--line);
}

.rows dt {
  font-family: var(--display);
  font-size: 1.7rem;
  line-height: 1.1;
}

.rows dd,
.note {
  color: var(--muted);
}

.lead {
  max-width: 30rem;
  font-family: var(--display);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  line-height: 1.2;
}

.note {
  max-width: 34rem;
  margin-top: 16px;
}

/* Work */

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: clamp(32px, 5vw, 56px);
}

.work p {
  color: var(--muted);
}

.work_frame {
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #121213;
  text-decoration: none;
}

.work_frame:hover {
  border-color: rgba(239, 236, 230, 0.45);
}

.work_bar {
  padding: 8px 12px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.work_frame img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top;
}

.work_title {
  margin-top: 18px;
  font-family: var(--display);
  font-size: 1.7rem;
  font-weight: 600;
  line-height: 1.15;
}

.work .text-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.95rem;
}

/* How we work */

.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 8px;
}

.principles li {
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-family: var(--display);
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  line-height: 1.15;
}

/* Contact */

.contact-link {
  display: inline-block;
  margin-top: 28px;
  font-family: var(--display);
  font-size: clamp(1.9rem, 6vw, 4rem);
  line-height: 1.1;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.14em;
  overflow-wrap: anywhere;
}

.contact-link:hover {
  color: var(--accent);
}

/* Footer */

.footer {
  padding: 36px var(--gutter) 44px;
  border-top: 1px solid var(--line);
}

.footer_inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.footer_entry {
  color: var(--muted);
  font-size: 0.95rem;
}

.footer_entry strong {
  margin-right: 4px;
  color: var(--text);
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 600;
}

.footer_pron {
  white-space: nowrap;
}

.footer_meta {
  color: var(--muted);
  font-size: 0.875rem;
}

.wordmark,
.rows dt,
.lead,
.principles li,
.contact-link {
  font-weight: 600;
  letter-spacing: -0.025em;
}

.wordmark {
  font-size: 1.35rem;
}

.rows dt,
.work_title {
  font-size: 1.4rem;
}

/* Responsive */

@media (max-width: 860px) {
  .split,
  .work-grid,
  .principles {
    grid-template-columns: 1fr;
  }

  .split {
    gap: 28px;
  }

  .principles {
    gap: 0;
  }

  .principles li {
    padding: 16px 0;
  }

  .veil {
    background: linear-gradient(180deg, rgba(11, 11, 12, 0.55) 0%, rgba(11, 11, 12, 0.35) 50%, rgba(11, 11, 12, 0.75) 100%);
  }
}

@media (max-width: 480px) {
  .nav_links {
    gap: 16px;
  }

  .nav_links a {
    font-size: 0.9rem;
  }

  .wordmark span {
    display: none;
  }

  .rows .row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

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