:root {
  color-scheme: dark;
  --ink: #050505;
  --ink-soft: #111111;
  --paper: #f7f5ef;
  --muted: #a9aaa8;
  --line: rgba(247, 245, 239, 0.18);
  --red: #ff3434;
  --cyan: #28d9ff;
  --gold: #f5c84b;
  --green: #7cff6b;
  --max: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

section[id] {
  scroll-margin-top: 112px;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--ink);
  color: var(--paper);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

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

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

button {
  color: inherit;
  font: inherit;
}

::selection {
  background: var(--red);
  color: var(--paper);
}

.grain,
.cursor-light,
.scroll-progress {
  pointer-events: none;
  position: fixed;
  z-index: 50;
}

.grain {
  inset: 0;
  opacity: 0.16;
  mix-blend-mode: overlay;
  background-image:
    linear-gradient(0deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 3px 3px;
}

.cursor-light {
  width: 420px;
  height: 420px;
  left: var(--cursor-x, 50%);
  top: var(--cursor-y, 45%);
  border-radius: 50%;
  opacity: 0.34;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(40, 217, 255, 0.18), rgba(255, 52, 52, 0.08) 35%, transparent 68%);
  filter: blur(18px);
}

.scroll-progress {
  inset: 0 auto auto 0;
  width: var(--scroll-progress, 0%);
  height: 3px;
  background: linear-gradient(90deg, var(--red), var(--cyan), var(--gold));
  z-index: 80;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 36px, var(--max));
  margin: 18px auto 0;
  padding: 12px 14px;
  border: 1px solid rgba(247, 245, 239, 0.2);
  border-radius: 6px;
  background: rgba(5, 5, 5, 0.54);
  backdrop-filter: blur(22px);
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.22);
}

.brand,
.site-nav,
.nav-toggle {
  position: relative;
  z-index: 2;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.brand-mark {
  width: 22px;
  height: 22px;
  background:
    linear-gradient(135deg, transparent 0 35%, var(--red) 35% 54%, transparent 54%),
    linear-gradient(45deg, var(--paper) 0 47%, transparent 47%);
  border: 1px solid rgba(247, 245, 239, 0.65);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a,
.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 5px;
}

.site-nav a {
  padding: 0 13px;
  color: rgba(247, 245, 239, 0.78);
  font-size: 0.9rem;
  transition:
    color 220ms ease,
    background 220ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--paper);
  background: rgba(247, 245, 239, 0.08);
  outline: none;
}

.site-nav .nav-cta {
  margin-left: 4px;
  border: 1px solid rgba(247, 245, 239, 0.22);
  color: var(--paper);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(247, 245, 239, 0.22);
  border-radius: 5px;
  background: transparent;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: var(--paper);
  transition:
    transform 260ms var(--ease),
    opacity 260ms ease;
}

.nav-open .nav-toggle span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.nav-open .nav-toggle span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

.hero {
  position: relative;
  min-height: 88svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
  padding: 128px max(24px, calc((100vw - var(--max)) / 2)) 68px;
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  z-index: -3;
  object-fit: cover;
  transform: scale(1.02) translate3d(calc(var(--mx, 0) * -10px), calc(var(--my, 0) * -10px), 0);
  transition: transform 500ms var(--ease);
}

.hero-shade {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(5, 5, 5, 0.96) 0%, rgba(5, 5, 5, 0.78) 38%, rgba(5, 5, 5, 0.34) 68%, rgba(5, 5, 5, 0.2) 100%),
    linear-gradient(0deg, rgba(5, 5, 5, 0.95) 0%, rgba(5, 5, 5, 0.24) 36%, rgba(5, 5, 5, 0.1) 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 32%;
  z-index: -1;
  background: linear-gradient(0deg, var(--ink), transparent);
}

.hero-content {
  width: min(760px, 100%);
}

.eyebrow,
.section-kicker,
.work-meta,
.team-role,
.hero-panel p,
.site-footer {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero h1,
.statement h2,
.section-heading h2,
.contact h2 {
  margin: 0;
  font-family: Impact, Haettenschweiler, "Arial Black", sans-serif;
  font-weight: 900;
  line-height: 0.92;
  text-transform: uppercase;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 760px;
  margin-top: 18px;
  font-size: 6.8rem;
}

.hero-copy {
  max-width: 610px;
  margin: 28px 0 0;
  color: rgba(247, 245, 239, 0.78);
  font-size: 1.18rem;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.button {
  min-width: 156px;
  padding: 0 19px;
  border: 1px solid transparent;
  font-weight: 900;
  text-transform: uppercase;
  transition:
    transform 240ms var(--ease),
    background 240ms ease,
    border-color 240ms ease,
    color 240ms ease;
}

.button::after {
  content: ">";
  margin-left: 12px;
  font-weight: 900;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

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

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--red);
  color: var(--paper);
}

.button-ghost {
  border-color: rgba(247, 245, 239, 0.22);
  background: rgba(247, 245, 239, 0.06);
}

.button-ghost:hover,
.button-ghost:focus-visible {
  border-color: rgba(247, 245, 239, 0.58);
  background: rgba(247, 245, 239, 0.12);
}

.hero-panel {
  position: absolute;
  right: max(24px, calc((100vw - var(--max)) / 2));
  bottom: 70px;
  width: 300px;
  padding: 16px;
  border: 1px solid rgba(247, 245, 239, 0.2);
  border-radius: 6px;
  background: rgba(5, 5, 5, 0.42);
  backdrop-filter: blur(18px);
}

.hero-panel dl {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 14px 0 0;
}

.hero-panel div {
  border-top: 2px solid var(--line);
  padding-top: 12px;
}

.hero-panel dt {
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.hero-panel dd {
  margin: 5px 0 0;
  font-family: Impact, Haettenschweiler, "Arial Black", sans-serif;
  font-size: 2.2rem;
  line-height: 1;
}

.ticker-band {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 24s linear infinite;
}

.ticker-track span {
  display: inline-flex;
  align-items: center;
  min-height: 54px;
  padding-inline: 24px;
  font-family: Impact, Haettenschweiler, "Arial Black", sans-serif;
  font-size: 1.75rem;
  text-transform: uppercase;
}

.ticker-track span::after {
  content: "";
  width: 9px;
  height: 9px;
  margin-left: 24px;
  background: var(--red);
}

.section {
  padding: 112px max(24px, calc((100vw - var(--max)) / 2));
}

.statement {
  background:
    linear-gradient(180deg, var(--ink), #0c0c0c 68%, var(--ink)),
    var(--ink);
}

.statement-grid {
  display: grid;
  grid-template-columns: 0.72fr 2fr;
  gap: 52px;
  align-items: start;
}

.statement h2 {
  max-width: 980px;
  font-size: 4.9rem;
}

.statement-copy {
  grid-column: 2;
  max-width: 660px;
  margin: 0;
  color: rgba(247, 245, 239, 0.7);
  font-size: 1.08rem;
  line-height: 1.7;
}

.section-heading {
  display: grid;
  grid-template-columns: 0.72fr 2fr;
  gap: 52px;
  align-items: end;
  margin-bottom: 38px;
}

.section-heading h2 {
  max-width: 820px;
  font-size: 4.4rem;
}

.work {
  background: #090909;
}

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

.work-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #101010;
  overflow: hidden;
  transition:
    transform 280ms var(--ease),
    border-color 280ms ease,
    background 280ms ease;
}

.work-card:hover,
.work-card:focus-within {
  transform: translateY(-8px);
  border-color: rgba(247, 245, 239, 0.4);
  background: #151515;
}

.work-card a {
  display: block;
  min-height: 100%;
}

.work-card figure {
  position: relative;
  aspect-ratio: 1.08 / 1;
  margin: 0;
  overflow: hidden;
  background: #050505;
}

.work-card-tall {
  margin-top: 46px;
}

.work-card-tall figure {
  aspect-ratio: 0.9 / 1;
}

.work-card figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, transparent 0 58%, rgba(255, 52, 52, 0.22) 58% 60%, transparent 60%),
    linear-gradient(0deg, rgba(5, 5, 5, 0.48), transparent 48%);
  opacity: 0;
  transition: opacity 280ms ease;
}

.work-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 500ms var(--ease);
}

.work-card:hover img,
.work-card:focus-within img {
  transform: scale(1.08);
}

.work-card:hover figure::after,
.work-card:focus-within figure::after {
  opacity: 1;
}

.work-card h3,
.team-card h3,
.capability-row h3 {
  margin: 0;
  font-family: Impact, Haettenschweiler, "Arial Black", sans-serif;
  font-size: 2.25rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

.work-card h3,
.work-card p,
.work-meta {
  padding-inline: 18px;
}

.work-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding-top: 18px;
}

.work-card h3 {
  margin-top: 10px;
}

.work-card p {
  min-height: 92px;
  margin: 10px 0 0;
  padding-bottom: 24px;
  color: rgba(247, 245, 239, 0.66);
  line-height: 1.55;
}

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

.capabilities .section-kicker,
.capabilities .capability-row span {
  color: rgba(5, 5, 5, 0.58);
}

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

.capability-row {
  display: grid;
  grid-template-columns: 0.18fr 0.72fr 1.35fr;
  gap: 28px;
  align-items: center;
  min-height: 128px;
  border-bottom: 1px solid rgba(5, 5, 5, 0.18);
}

.capability-row span {
  font-weight: 900;
}

.capability-row p {
  margin: 0;
  color: rgba(5, 5, 5, 0.68);
  line-height: 1.6;
}

.team {
  background:
    linear-gradient(180deg, var(--ink), #101010 48%, var(--ink)),
    var(--ink);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.team-card {
  display: grid;
  gap: 20px;
  min-height: 440px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0e0e0e;
  transition:
    transform 280ms var(--ease),
    border-color 280ms ease;
}

.team-card:hover,
.team-card:focus-within {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--accent), white 14%);
}

.portrait {
  position: relative;
  display: grid;
  place-items: end start;
  aspect-ratio: 0.86 / 1;
  overflow: hidden;
  border-radius: 6px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent), black 24%) 0 2px, transparent 2px 22px),
    radial-gradient(circle at 52% 25%, color-mix(in srgb, var(--accent), white 18%), transparent 24%),
    linear-gradient(155deg, #191919, #050505);
  background-size: 100% 100%, 100% 100%, 100% 100%;
}

.portrait::before {
  content: "";
  position: absolute;
  inset: 20% 13% -14%;
  border: 1px solid color-mix(in srgb, var(--accent), white 18%);
  border-radius: 999px 999px 8px 8px;
  background:
    linear-gradient(135deg, transparent 0 48%, color-mix(in srgb, var(--accent), transparent 40%) 48% 54%, transparent 54%),
    linear-gradient(180deg, rgba(247, 245, 239, 0.08), transparent);
}

.portrait span {
  position: relative;
  z-index: 1;
  padding: 10px;
  font-family: Impact, Haettenschweiler, "Arial Black", sans-serif;
  font-size: 3rem;
  line-height: 0.9;
}

.team-card p {
  margin: 0;
  color: rgba(247, 245, 239, 0.68);
  line-height: 1.55;
}

.team-role {
  margin-bottom: 8px;
}

.contact {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line);
  background: #080808;
}

.contact::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 0 38%, rgba(255, 52, 52, 0.16) 38% 39%, transparent 39%),
    linear-gradient(135deg, transparent 0 64%, rgba(40, 217, 255, 0.12) 64% 65%, transparent 65%);
}

.contact-inner {
  position: relative;
  max-width: 900px;
}

.contact h2 {
  margin-top: 16px;
  margin-bottom: 30px;
  font-size: 5.2rem;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 22px max(24px, calc((100vw - var(--max)) / 2));
  border-top: 1px solid var(--line);
}

.site-footer a {
  color: var(--paper);
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 700ms var(--ease),
    transform 700ms var(--ease);
}

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

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

@media (max-width: 1080px) {
  .hero h1 {
    font-size: 5.4rem;
  }

  .statement h2,
  .contact h2 {
    font-size: 4.2rem;
  }

  .section-heading h2 {
    font-size: 3.7rem;
  }

  .hero-panel {
    display: none;
  }

  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .site-header {
    width: min(100% - 24px, var(--max));
    margin-top: 12px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    inset: 76px 12px auto;
    display: grid;
    gap: 6px;
    padding: 10px;
    border: 1px solid rgba(247, 245, 239, 0.2);
    border-radius: 6px;
    background: rgba(5, 5, 5, 0.94);
    opacity: 0;
    transform: translateY(-12px);
    pointer-events: none;
    transition:
      opacity 220ms ease,
      transform 220ms var(--ease);
  }

  .nav-open .site-nav {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .site-nav a {
    justify-content: flex-start;
    min-height: 48px;
  }

  .site-nav .nav-cta {
    margin-left: 0;
  }

  .hero {
    min-height: 86svh;
    padding: 112px 20px 54px;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(5, 5, 5, 0.94), rgba(5, 5, 5, 0.44)),
      linear-gradient(0deg, rgba(5, 5, 5, 0.96) 0%, rgba(5, 5, 5, 0.26) 52%, rgba(5, 5, 5, 0.18) 100%);
  }

  .hero h1 {
    font-size: 4rem;
  }

  .hero-copy {
    font-size: 1rem;
  }

  .section {
    padding: 82px 20px;
  }

  .statement-grid,
  .section-heading {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .statement h2,
  .section-heading h2,
  .contact h2 {
    font-size: 3.2rem;
  }

  .statement-copy {
    grid-column: auto;
  }

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

  .work-card-tall {
    margin-top: 0;
  }

  .work-card-tall figure,
  .work-card figure {
    aspect-ratio: 1.22 / 1;
  }

  .capability-row {
    grid-template-columns: 1fr;
    gap: 10px;
    align-items: start;
    padding: 22px 0;
  }
}

@media (max-width: 540px) {
  .cursor-light {
    display: none;
  }

  .brand {
    font-size: 0.92rem;
  }

  .hero h1 {
    font-size: 3.15rem;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .ticker-track span {
    min-height: 46px;
    padding-inline: 16px;
    font-size: 1.24rem;
  }

  .ticker-track span::after {
    margin-left: 16px;
  }

  .statement h2,
  .section-heading h2,
  .contact h2 {
    font-size: 2.55rem;
  }

  .work-card h3,
  .team-card h3,
  .capability-row h3 {
    font-size: 1.9rem;
  }

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

  .site-footer {
    display: grid;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

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