:root {
  color-scheme: dark;
  --bg: #050608;
  --ink: #f7f4ec;
  --muted: rgba(247, 244, 236, 0.72);
  --soft: rgba(247, 244, 236, 0.12);
  --line: rgba(247, 244, 236, 0.18);
  --panel: rgba(10, 12, 16, 0.68);
  --blue: #6bb6ff;
  --green: #79d8a6;
  --amber: #f2b15f;
  --red: #ff766f;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", Inter, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.45;
  letter-spacing: 0;
}

body.menu-open {
  overflow: hidden;
}

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

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

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(107, 182, 255, 0.55);
  outline-offset: 4px;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 clamp(18px, 4vw, 52px);
  border-bottom: 1px solid rgba(247, 244, 236, 0.1);
  background: rgba(5, 6, 8, 0.62);
  backdrop-filter: blur(18px);
}

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

.brand-mark img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(15px, 2.4vw, 30px);
  color: rgba(247, 244, 236, 0.76);
  font-size: 12px;
  font-weight: 600;
}

.site-nav a {
  transition: color 180ms ease;
}

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

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(247, 244, 236, 0.08);
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
}

.scroll3d-track {
  position: relative;
  min-height: 720vh;
  background:
    linear-gradient(180deg, rgba(5, 6, 8, 0.15) 0%, rgba(5, 6, 8, 0.82) 80%),
    #050608;
}

.scene-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  margin-bottom: -100vh;
  overflow: hidden;
  background:
    linear-gradient(110deg, rgba(13, 17, 24, 0.96), rgba(5, 6, 8, 1) 42%, rgba(16, 20, 24, 0.96));
}

#process-scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.scene-feature-video {
  position: absolute;
  z-index: 2;
  right: clamp(54px, 7vw, 120px);
  top: 50%;
  width: min(42vw, 640px);
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid rgba(247, 244, 236, 0.28);
  border-radius: 8px;
  box-shadow: 0 38px 110px rgba(0, 0, 0, 0.46);
  transform: translateY(-50%) perspective(1200px) rotateY(-17deg) rotateX(2deg);
  transform-origin: center;
  opacity: 0.82;
  transition: opacity 240ms ease;
}

.scene-grid,
.scene-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.scene-grid {
  opacity: 0.24;
  background-image:
    linear-gradient(rgba(247, 244, 236, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(247, 244, 236, 0.07) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
}

.scene-shade {
  z-index: 3;
  background:
    linear-gradient(90deg, rgba(5, 6, 8, 0.84), transparent 22%, transparent 78%, rgba(5, 6, 8, 0.72)),
    linear-gradient(0deg, rgba(5, 6, 8, 0.8), transparent 34%, transparent 74%, rgba(5, 6, 8, 0.72));
}

.scene-progress {
  position: absolute;
  right: clamp(18px, 4vw, 52px);
  top: 50%;
  width: 2px;
  height: min(360px, 48vh);
  transform: translateY(-50%);
  background: rgba(247, 244, 236, 0.18);
}

.scene-progress span {
  display: block;
  width: 100%;
  height: calc(var(--progress, 0) * 100%);
  background: linear-gradient(var(--blue), var(--green), var(--amber));
}

.story-panel {
  position: relative;
  z-index: 4;
  min-height: 100vh;
  display: grid;
  align-items: center;
  padding: 96px clamp(18px, 6vw, 76px);
  pointer-events: none;
}

.story-copy {
  width: min(640px, 100%);
  min-width: 0;
  max-width: calc(100vw - 36px);
  overflow-wrap: break-word;
  padding: clamp(22px, 4vw, 36px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(18px);
  pointer-events: auto;
}

.story-intro .story-copy {
  width: min(760px, 100%);
  margin-top: 4vh;
  background: rgba(5, 6, 8, 0.58);
}

.story-panel.right {
  justify-items: end;
}

.story-copy.compact {
  width: min(520px, 100%);
}

.eyebrow,
.step-kicker,
.card-label {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.step-kicker {
  color: var(--amber);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 11ch;
  margin-bottom: 22px;
  font-size: clamp(46px, 8.2vw, 110px);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(32px, 5vw, 66px);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.08;
}

.story-copy p,
.section-heading p,
.work-card p,
.process-grid span,
.contact-copy p {
  color: var(--muted);
  font-size: clamp(16px, 1.45vw, 19px);
}

.action-row,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

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

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  border-color: transparent;
  background: var(--ink);
  color: #06070a;
}

.button.secondary {
  background: rgba(247, 244, 236, 0.08);
}

.focus-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(120px, 1fr));
  gap: 1px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--line);
}

.focus-strip span {
  min-height: 74px;
  display: grid;
  place-items: center;
  padding: 16px;
  background: #080a0d;
  color: rgba(247, 244, 236, 0.76);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.section {
  padding: clamp(72px, 12vw, 140px) clamp(18px, 6vw, 76px);
  background: #f3f0e8;
  color: #090a0c;
}

.section-heading {
  max-width: var(--max);
  margin: 0 auto clamp(34px, 5vw, 64px);
}

.section-heading .eyebrow,
.contact-copy .eyebrow {
  color: #0f7e58;
}

.section-heading h2,
.contact-copy h2 {
  max-width: 850px;
  color: #090a0c;
}

.section-heading p,
.work-card p,
.process-grid span,
.contact-copy p {
  color: rgba(9, 10, 12, 0.68);
}

.work-grid {
  width: min(var(--max), 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.work-card {
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(9, 10, 12, 0.14);
  border-radius: 8px;
  background: #fffaf0;
  transition: transform 180ms ease, border-color 180ms ease;
}

.work-card:hover {
  transform: translateY(-4px);
  border-color: rgba(9, 10, 12, 0.34);
}

.work-card img,
.work-card video {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #111;
}

.work-card div {
  padding: 22px;
}

.work-card .card-label {
  color: #aa5d0c;
}

.process-section {
  background: #14181d;
  color: var(--ink);
}

.process-section .section-heading h2,
.process-section .section-heading p,
.ai-section .section-heading h2,
.ai-section .section-heading p {
  color: var(--ink);
}

.process-section .section-heading p,
.ai-section .section-heading p {
  color: var(--muted);
}

.process-grid {
  width: min(var(--max), 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.process-grid div {
  min-height: 180px;
  padding: 24px;
  background: #0c0f13;
}

.process-grid strong {
  display: block;
  margin-bottom: 14px;
  color: var(--green);
  font-size: 15px;
}

.process-grid span {
  display: block;
  color: var(--muted);
}

.ai-section {
  background: #0f1116;
  color: var(--ink);
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: end;
  background: #f3f0e8;
}

.contact-copy {
  max-width: 780px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(18px, 6vw, 76px);
  border-top: 1px solid var(--line);
  background: #050608;
  color: rgba(247, 244, 236, 0.74);
  font-size: 13px;
}

.site-footer p {
  margin: 0;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px 22px;
}

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

@media (max-width: 980px) {
  .site-nav {
    position: fixed;
    inset: 64px 0 auto 0;
    display: none;
    padding: 18px;
    border-bottom: 1px solid var(--line);
    background: rgba(5, 6, 8, 0.94);
  }

  .site-nav.is-open {
    display: grid;
    gap: 12px;
  }

  .site-nav a {
    min-height: 42px;
    display: flex;
    align-items: center;
  }

  .menu-toggle {
    display: block;
  }

  .story-panel,
  .story-panel.right {
    justify-items: start;
    padding-inline: 18px;
  }

  .story-copy,
  .story-copy.compact,
  .story-intro .story-copy {
    width: calc(100vw - 36px);
    max-width: calc(100vw - 36px);
  }

  .scene-feature-video {
    right: 50%;
    top: 52%;
    width: min(78vw, 520px);
    opacity: 0.42;
    transform: translate(50%, -50%) perspective(900px) rotateY(-9deg) rotateX(2deg);
  }

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

  .work-grid,
  .process-grid,
  .contact-section {
    grid-template-columns: 1fr;
  }

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

  .site-footer nav {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .brand-mark span {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .scroll3d-track {
    min-height: 650vh;
  }

  .story-copy {
    padding: 18px;
  }

  .story-copy,
  .story-copy.compact,
  .story-intro .story-copy {
    width: min(330px, calc(100vw - 54px));
    max-width: min(330px, calc(100vw - 54px));
  }

  h1 {
    max-width: 8.5ch;
    font-size: clamp(38px, 11.5vw, 56px);
  }

  h2 {
    font-size: clamp(30px, 10vw, 48px);
  }

  .scene-progress {
    right: 12px;
    height: 32vh;
  }
}

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

  .button,
  .work-card,
  .site-nav a {
    transition: none;
  }
}
