:root {
  color-scheme: dark;
  --bg: #050505;
  --bg-soft: #0d0d0f;
  --ink: #f7f5ee;
  --muted: #a6a6a6;
  --line: rgba(255, 255, 255, 0.16);
  --cyan: #38d8ff;
  --green: #78ff96;
  --amber: #ffb84d;
  --rose: #ff5a7a;
  --panel: rgba(14, 15, 17, 0.78);
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
  --header-height: 76px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    #050505;
  background-size: 80px 80px, 80px 80px, auto;
  color: var(--ink);
}

body.menu-open {
  overflow: hidden;
}

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

button,
input,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

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

.page-progress {
  position: fixed;
  z-index: 90;
  top: 0;
  left: 0;
  width: var(--progress, 0%);
  height: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--amber), var(--green));
  transform-origin: left;
}

.site-header {
  position: fixed;
  z-index: 80;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 44px;
  border-bottom: 1px solid transparent;
  background: rgba(5, 5, 5, 0.34);
  backdrop-filter: blur(18px);
  transition: border-color 200ms ease, background 200ms ease;
}

.site-header.is-scrolled {
  border-color: var(--line);
  background: rgba(5, 5, 5, 0.82);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-weight: 700;
  letter-spacing: 0;
}

.brand-mark {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(56, 216, 255, 0.7);
  border-radius: 8px;
  color: var(--cyan);
  font-size: 0.66rem;
  letter-spacing: 0;
  box-shadow: inset 0 0 22px rgba(56, 216, 255, 0.16), 0 0 28px rgba(56, 216, 255, 0.14);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 34px;
  font-weight: 700;
  font-size: 0.95rem;
}

.site-nav a {
  position: relative;
  padding: 10px 0;
  color: rgba(247, 245, 238, 0.84);
  transition: color 180ms ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 3px;
  left: 0;
  height: 2px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--ink);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-toggle span + span {
  margin-top: 6px;
}

body.menu-open .menu-toggle span:first-child {
  transform: translateY(4px) rotate(45deg);
}

body.menu-open .menu-toggle span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: grid;
  align-items: end;
  padding: 150px 44px 42px;
  cursor: pointer;
  isolation: isolate;
}

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

.hero-video {
  z-index: -4;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate3d(0, calc(var(--hero-scroll, 0) * 1px), 0) scale(1.06);
  filter: saturate(1.05) contrast(1.06);
}

.hero-shade {
  z-index: -3;
  background:
    linear-gradient(90deg, rgba(5, 5, 5, 0.85) 0%, rgba(5, 5, 5, 0.2) 45%, rgba(5, 5, 5, 0.82) 100%),
    linear-gradient(180deg, rgba(5, 5, 5, 0.28) 0%, rgba(5, 5, 5, 0.06) 44%, #050505 100%);
}

.hero-grid {
  display: none;
}

.hero-copy {
  position: relative;
  z-index: 4;
  width: min(680px, 100%);
  padding-bottom: 152px;
  cursor: auto;
}

.eyebrow,
.section-label,
.panel-kicker {
  margin: 0 0 14px;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.hero h1 {
  margin: 0;
  max-width: 9ch;
  font-size: 5.9rem;
  line-height: 0.9;
  letter-spacing: 0;
}

.hero-subtitle {
  margin: 24px 0 0;
  max-width: 630px;
  color: rgba(247, 245, 238, 0.82);
  font-size: 1.2rem;
  line-height: 1.7;
}

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

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 20px;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  font-weight: 800;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.12);
}

.button.primary {
  border-color: rgba(56, 216, 255, 0.62);
  background: var(--cyan);
  color: #021014;
}

.button.secondary {
  color: var(--ink);
}

.hero-word {
  position: absolute;
  z-index: 2;
  right: 32px;
  bottom: 128px;
  color: rgba(247, 245, 238, 0.1);
  font-size: 8.8rem;
  line-height: 0.84;
  font-weight: 900;
  text-align: right;
  pointer-events: none;
}

.feature-panel {
  position: absolute;
  z-index: 5;
  right: 44px;
  bottom: 160px;
  width: min(420px, calc(100% - 88px));
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  cursor: auto;
}

.feature-panel h2 {
  margin: 0;
  font-size: 1.55rem;
}

.feature-panel p:last-child {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.thumb-rail {
  position: absolute;
  z-index: 6;
  right: 44px;
  bottom: 42px;
  left: 44px;
  display: grid;
  grid-template-columns: repeat(10, minmax(68px, 1fr));
  gap: 10px;
  cursor: auto;
}

.thumb-button {
  position: relative;
  height: 86px;
  min-height: 74px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  padding: 0;
  background: #111;
  cursor: pointer;
}

.thumb-button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.52;
  transform: scale(1.04);
  transition: opacity 180ms ease, transform 180ms ease;
}

.thumb-button span {
  position: absolute;
  right: 8px;
  bottom: 7px;
  left: 8px;
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 800;
  text-align: left;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.74);
}

.thumb-button.is-active {
  border-color: var(--cyan);
}

.thumb-button.is-active img,
.thumb-button:hover img,
.thumb-button:focus-visible img {
  opacity: 0.92;
  transform: scale(1.0);
}

.intro-section,
.work-section,
.case-band,
.process-section {
  width: min(1200px, calc(100% - 88px));
  margin: 0 auto;
}

.intro-section {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 48px;
  padding: 110px 0 86px;
  border-bottom: 1px solid var(--line);
}

.intro-copy h2,
.section-heading h2,
.case-copy h2,
.process-section h2 {
  margin: 0;
  font-size: 2.8rem;
  line-height: 1;
  letter-spacing: 0;
}

.intro-copy p {
  max-width: 760px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.8;
}

.stat-strip {
  grid-column: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.stat-strip div {
  min-height: 130px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.stat-strip strong {
  display: block;
  color: var(--amber);
  font-size: 2.4rem;
  line-height: 1;
}

.stat-strip span {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-weight: 700;
}

.work-section {
  padding: 88px 0 118px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 34px;
}

.section-heading h2 {
  max-width: 780px;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.filter-button {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(247, 245, 238, 0.76);
  cursor: pointer;
  font-weight: 800;
}

.filter-button:hover,
.filter-button:focus-visible,
.filter-button.is-active {
  border-color: rgba(56, 216, 255, 0.72);
  color: var(--ink);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}

.work-card {
  position: relative;
  grid-column: span 4;
  min-height: 470px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-soft);
  cursor: pointer;
  isolation: isolate;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 450ms ease, transform 450ms ease, border-color 180ms ease;
}

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

.work-card.is-featured {
  grid-column: span 8;
}

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

.work-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  height: 55%;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.9));
  pointer-events: none;
}

.work-card:hover,
.work-card:focus-within {
  border-color: rgba(255, 255, 255, 0.34);
}

.card-media,
.card-media img,
.card-media video {
  width: 100%;
  height: 100%;
}

.card-media {
  position: absolute;
  inset: 0;
}

.card-media img,
.card-media video {
  object-fit: cover;
}

.card-media video {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 180ms ease;
}

.work-card.is-previewing .card-media video {
  opacity: 1;
}

.work-card.is-previewing .card-media img {
  opacity: 0;
}

.card-copy {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 24px;
}

.card-copy h3 {
  margin: 0;
  font-size: 1.6rem;
  line-height: 1.05;
}

.card-copy p {
  max-width: 520px;
  margin: 12px 0 0;
  color: rgba(247, 245, 238, 0.74);
  line-height: 1.6;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.card-meta span,
.tag-row span {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  padding: 7px 9px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(247, 245, 238, 0.78);
  font-size: 0.76rem;
  font-weight: 800;
}

.card-button {
  position: absolute;
  z-index: 4;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.42);
  color: var(--ink);
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
}

.case-band {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 36px;
  padding: 88px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.case-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.case-columns article,
.process-track article {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.045);
}

.case-columns span,
.process-track span {
  display: inline-block;
  margin-bottom: 34px;
  color: var(--green);
  font-weight: 900;
}

.case-columns h3,
.process-track h3 {
  margin: 0;
  font-size: 1.25rem;
}

.case-columns p,
.process-track p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.process-section {
  padding: 104px 0 114px;
}

.process-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1200px, calc(100% - 88px));
  margin: 0 auto;
  padding: 36px 0 48px;
  border-top: 1px solid var(--line);
  color: rgba(247, 245, 238, 0.58);
  font-weight: 700;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--ink);
}

.video-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.video-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(16px);
}

.modal-window {
  position: relative;
  z-index: 1;
  width: min(1080px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #090909;
  box-shadow: var(--shadow);
}

.modal-window video {
  width: 100%;
  max-height: 64vh;
  background: #000;
}

.modal-copy {
  padding: 24px;
}

.modal-copy h2 {
  margin: 0;
  font-size: 2rem;
}

.modal-copy p {
  color: var(--muted);
  line-height: 1.7;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.modal-close {
  position: absolute;
  z-index: 2;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.58);
  color: var(--ink);
  cursor: pointer;
  font-size: 1.4rem;
}

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

  .hero-word {
    font-size: 6.2rem;
  }

  .feature-panel {
    position: relative;
    right: auto;
    bottom: auto;
    width: min(520px, 100%);
    margin-bottom: 126px;
  }

  .thumb-rail {
    grid-template-columns: repeat(5, 1fr);
  }

  .work-card,
  .work-card.is-featured {
    grid-column: span 6;
  }

  .case-band,
  .process-track {
    grid-template-columns: 1fr;
  }

  .case-columns {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 820px) {
  :root {
    --header-height: 72px;
  }

  .site-header {
    padding: 0 24px;
  }

  .menu-toggle {
    display: grid;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-height) 0 auto;
    display: grid;
    gap: 0;
    padding: 22px 24px 30px;
    border-bottom: 1px solid var(--line);
    background: rgba(5, 5, 5, 0.96);
    transform: translateY(-120%);
    transition: transform 220ms ease;
  }

  body.menu-open .site-nav {
    transform: translateY(0);
  }

  .site-nav a {
    padding: 16px 0;
    font-size: 1.15rem;
  }

  .hero {
    min-height: 100svh;
    padding: 118px 24px 28px;
  }

  .hero-copy {
    padding-bottom: 24px;
  }

  .hero h1 {
    max-width: 7ch;
    font-size: 3.45rem;
  }

  .hero-subtitle {
    font-size: 1rem;
    line-height: 1.65;
  }

  .hero-word {
    right: 18px;
    bottom: 345px;
    font-size: 3.5rem;
  }

  .feature-panel {
    margin-top: 20px;
    margin-bottom: 112px;
    padding: 18px;
  }

  .thumb-rail {
    right: 24px;
    bottom: 28px;
    left: 24px;
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: none;
  }

  .thumb-rail::-webkit-scrollbar {
    display: none;
  }

  .thumb-button {
    flex: 0 0 118px;
  }

  .intro-section,
  .work-section,
  .case-band,
  .process-section,
  .site-footer {
    width: min(100% - 48px, 1200px);
  }

  .intro-section {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 72px 0 64px;
  }

  .intro-copy h2,
  .section-heading h2,
  .case-copy h2,
  .process-section h2 {
    font-size: 2.2rem;
  }

  .stat-strip {
    grid-column: auto;
    grid-template-columns: 1fr;
  }

  .section-heading {
    display: grid;
    align-items: start;
  }

  .filter-bar {
    justify-content: flex-start;
  }

  .work-section {
    padding: 68px 0 86px;
  }

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

  .work-card,
  .work-card.is-featured {
    grid-column: auto;
    min-height: 430px;
  }

  .case-band {
    padding: 70px 0;
  }

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

  .process-section {
    padding: 76px 0 90px;
  }

  .site-footer {
    display: grid;
    gap: 16px;
  }
}

@media (max-width: 520px) {
  .brand span:last-child {
    display: none;
  }

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

  .hero-word {
    display: none;
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .feature-panel {
    width: 100%;
  }

  .work-card,
  .work-card.is-featured {
    min-height: 390px;
  }

  .card-copy {
    padding: 18px;
  }

  .card-copy h3 {
    font-size: 1.35rem;
  }
}

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