:root {
  color-scheme: dark;
  --bg: #05080b;
  --panel: #0b1117;
  --panel-2: #101821;
  --line: #26323d;
  --line-strong: #40505f;
  --text: #f4f6f8;
  --muted: #9ca8b3;
  --muted-2: #72808c;
  --accent: #2aabee;
  --accent-ink: #041018;
  --signal: #b8ff45;
  --danger: #ff5a52;
  --route-red: #c83f38;
  --route-red-line: #ff7d75;
  --route-blue: #315fe8;
  --radius-sm: 12px;
  --radius-md: 22px;
  --radius-lg: 34px;
  --page: min(1240px, calc(100vw - 48px));
  --header: 78px;
  --section: clamp(72px, 8vw, 118px);
  font-family: Inter, "SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
  max-width: 100%;
}

body {
  margin: 0;
  min-width: 0;
  max-width: 100%;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.55;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cpath d='M0 .5H64M.5 0V64' fill='none' stroke='%23ffffff' stroke-opacity='.035'/%3E%3C/svg%3E");
  content: "";
  pointer-events: none;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  color: inherit;
}

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

[hidden] {
  display: none !important;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  clip-path: inset(50%);
  border-radius: 999px;
  background: var(--text);
  color: var(--accent-ink);
  padding: 12px 18px;
  font-weight: 760;
  text-decoration: none;
}

.skip-link:focus {
  clip-path: none;
}

:focus-visible {
  outline: 3px solid var(--signal);
  outline-offset: 4px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 8, 11, 0.94);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: var(--page);
  min-height: var(--header);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand {
  min-height: 44px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  color: var(--text);
  font-size: 29px;
  font-weight: 850;
  letter-spacing: -0.075em;
  line-height: 1;
  text-decoration: none;
}

.desktop-nav {
  min-width: 0;
  flex: 1 1 auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list a,
.footer-nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  color: var(--muted);
  padding: 0 14px;
  font-size: 14px;
  font-weight: 680;
  text-decoration: none;
  white-space: nowrap;
}

.nav-list a:hover,
.footer-nav a:hover {
  color: var(--text);
}

.header-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0 22px;
  background: transparent;
  color: var(--text);
  font-weight: 790;
  letter-spacing: -0.02em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: translate 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.button:hover {
  translate: 0 -2px;
}

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

.button-primary:hover {
  background: #55bdf2;
}

.button-secondary {
  border-color: var(--line-strong);
  background: var(--panel);
}

.button-secondary:hover {
  border-color: var(--muted);
}

.button-quiet {
  min-height: 44px;
  color: var(--muted);
  padding-inline: 14px;
}

.button svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.menu-button {
  position: relative;
  width: 48px;
  height: 48px;
  display: none;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--panel);
  cursor: pointer;
}

.menu-button span,
.menu-button::before,
.menu-button::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 1px;
  display: block;
  background: currentColor;
  content: "";
  transition: rotate 160ms ease, translate 160ms ease, opacity 160ms ease;
}

.menu-button::before {
  translate: -50% -6px;
}

.menu-button span {
  margin: 0;
  translate: -50% 0;
}

.menu-button::after {
  translate: -50% 6px;
}

.menu-button[aria-expanded="true"] span {
  opacity: 0;
}

.menu-button[aria-expanded="true"]::before {
  translate: -50% 0;
  rotate: 45deg;
}

.menu-button[aria-expanded="true"]::after {
  translate: -50% 0;
  rotate: -45deg;
}

.mobile-menu {
  width: var(--page);
  margin: 0 auto;
  padding: 8px 0 20px;
}

.mobile-menu a {
  min-height: 52px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-size: 18px;
  font-weight: 720;
  text-decoration: none;
}

.mobile-menu .button {
  margin-top: 16px;
  border-bottom: 0;
}

.shell {
  width: var(--page);
  margin: 0 auto;
}

.hero {
  min-height: min(820px, calc(100svh - var(--header)));
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(440px, 1.08fr);
  align-items: center;
  gap: clamp(48px, 7vw, 104px);
  padding: clamp(60px, 8vh, 96px) 0 72px;
}

.eyebrow,
.section-kicker,
.timecode,
.proof-status,
.card-index {
  color: var(--muted);
  font-size: 12px;
  font-weight: 790;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.eyebrow::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--signal);
  content: "";
}

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

h1,
h2,
h3 {
  min-width: 0;
  overflow-wrap: normal;
  word-break: normal;
  text-wrap: balance;
}

h1 {
  max-width: 770px;
  margin: 26px 0 26px;
  font-size: clamp(4rem, 6.2vw, 7.2rem);
  font-weight: 830;
  letter-spacing: -0.075em;
  line-height: 0.91;
}

.hero-lead {
  max-width: 630px;
  margin-bottom: 30px;
  color: #bdc6cf;
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.48;
}

.hero-actions,
.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.handoff-note {
  max-width: 630px;
  margin: 16px 0 0;
  color: var(--muted-2);
  font-size: 13px;
}

.hero-visual {
  position: relative;
  overflow: hidden;
  min-height: 570px;
  display: grid;
  place-items: center;
  perspective: 1100px;
}

.hero-visual::before {
  position: absolute;
  width: min(540px, 92%);
  aspect-ratio: 1;
  border: 1px solid #17435a;
  border-radius: 50%;
  content: "";
}

.hero-visual::after {
  position: absolute;
  width: 72%;
  aspect-ratio: 1;
  border: 1px solid #172a35;
  border-radius: 50%;
  content: "";
}

.production-stage {
  --rx: 0deg;
  --ry: 0deg;
  position: relative;
  z-index: 2;
  width: min(570px, 94%);
  aspect-ratio: 1.05;
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition: transform 220ms ease-out;
}

.production-stage .frame {
  position: absolute;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 26px;
  background: #0a1016;
}

.production-stage .frame::before {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='54' height='54' viewBox='0 0 54 54'%3E%3Cpath d='M0 .5H54M.5 0V54' fill='none' stroke='%232aabee' stroke-opacity='.18'/%3E%3C/svg%3E");
  content: "";
}

.frame-main {
  inset: 7% 9% 25% 1%;
  z-index: 1;
  transform: translateZ(24px) rotate(-3deg);
}

.frame-side {
  inset: 31% 2% 16% 26%;
  z-index: 2;
  transform: translateZ(72px) rotate(3deg);
}

.frame-side[data-has-media="true"]::before {
  display: none;
}

.hero-reel {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #071019;
  object-fit: cover;
  object-position: center 42%;
  z-index: 1;
}

.hero-reel-backdrop {
  position: absolute;
  inset: -8%;
  width: 116%;
  height: 116%;
  object-fit: cover;
  filter: blur(18px) saturate(.8);
  opacity: .34;
}

.hero-reel[data-orientation="vertical"] {
  background:
    radial-gradient(circle at 50% 44%, rgb(42 171 238 / 16%), transparent 45%),
    #050a0f;
  object-fit: contain;
  object-position: center;
}

.frame-side[data-has-media="true"]::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 58%, rgb(3 8 12 / 48%));
  pointer-events: none;
  z-index: 2;
  content: "";
}

.frame-key {
  inset: 57% 46% 4% 8%;
  z-index: 3;
  display: grid;
  align-content: center;
  padding: 20px;
  border-color: #35434e;
  background: #101a22;
  color: #eeefeb;
  transform: translateZ(112px) rotate(-1deg);
}

.frame-key::before {
  display: none;
}

.frame-key strong {
  display: block;
  font-size: clamp(22px, 2.2vw, 34px);
  letter-spacing: -0.05em;
  line-height: 1;
}

.stage-label {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #070b0f;
  padding: 9px 13px;
  color: #dce3e9;
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stage-label::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--danger);
  content: "";
}

.frame-main .stage-label {
  top: 18px;
  left: 18px;
}

.frame-side .stage-label {
  right: 18px;
  bottom: 18px;
}

.frame-side .stage-label::before {
  background: var(--signal);
}

.aperture {
  position: absolute;
  inset: 14% 13%;
  display: grid;
  place-items: center;
  border: 1px solid #2b617e;
  border-radius: 50%;
}

.aperture::before,
.aperture::after {
  position: absolute;
  border: 1px solid #28516a;
  border-radius: 50%;
  content: "";
}

.aperture::before {
  inset: 18%;
}

.aperture::after {
  inset: 36%;
  background: #0d2632;
}

.crosshair {
  position: absolute;
  inset: 50% 8% auto;
  height: 1px;
  background: #2b617e;
}

.crosshair::after {
  position: absolute;
  top: -110px;
  left: 50%;
  width: 1px;
  height: 220px;
  background: #2b617e;
  content: "";
}

.stage-meta {
  position: absolute;
  z-index: 4;
  right: 2%;
  bottom: 1%;
  display: grid;
  justify-items: end;
  gap: 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 720;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.stage-meta strong {
  color: var(--text);
  font-size: 14px;
}

.section {
  padding: var(--section) 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: calc(var(--header) + 16px);
}

.section-head {
  max-width: 900px;
  margin-bottom: clamp(36px, 5vw, 64px);
}

.section-head h2,
.split-intro h2,
.cta-panel h2,
.team-hero h1 {
  margin: 14px 0 18px;
  font-size: clamp(2.7rem, 5vw, 5.7rem);
  font-weight: 820;
  letter-spacing: -0.065em;
  line-height: 0.96;
}

.section-head p,
.split-intro p,
.cta-panel > p,
.team-hero p {
  max-width: 730px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(17px, 1.45vw, 21px);
}

.task-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.7fr);
  gap: 24px;
  align-items: start;
}

.task-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.task-card {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--panel);
  padding: 26px;
  transition: border-color 180ms ease, translate 180ms ease;
}

.task-card:hover {
  translate: 0 -3px;
  border-color: var(--line-strong);
}

.task-card:has([aria-pressed="true"]) {
  border-color: var(--accent);
  background: #0c1820;
}

.task-card h3 {
  margin: 30px 0 10px;
  font-size: clamp(24px, 2vw, 31px);
  letter-spacing: -0.045em;
  line-height: 1.02;
}

.task-card p {
  margin-bottom: 24px;
  color: var(--muted);
}

.task-select {
  min-height: 46px;
  align-self: flex-start;
  margin-top: auto;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  padding: 0 16px;
  font-weight: 760;
  cursor: pointer;
}

.task-select[aria-pressed="true"] {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
}

.task-select[aria-pressed="true"]::before {
  margin-right: 8px;
  content: "✓";
}

.task-output {
  position: sticky;
  top: calc(var(--header) + 22px);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  background: #111a22;
  padding: 30px;
}

.task-output h3 {
  margin-bottom: 22px;
  font-size: 28px;
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.check-list {
  display: grid;
  gap: 0;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

.check-list li {
  min-height: 52px;
  display: grid;
  grid-template-columns: 20px 1fr;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--line);
  color: #d5dce2;
}

.check-list li::before {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--signal);
  color: #0d1803;
  content: "✓";
  font-size: 12px;
  font-weight: 900;
}

.task-output .button {
  width: 100%;
}

.proof-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 18px;
}

.portfolio-tools {
  margin: -20px 0 28px;
  border: 1px solid #6e552a;
  border-radius: var(--radius-md);
  background: #151108;
  padding: 20px;
}

.portfolio-tools > p {
  max-width: 840px;
  margin-bottom: 18px;
  color: #d8c9a9;
}

.portfolio-tools strong {
  color: #f4e7c9;
}

.case-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.case-filters button {
  min-height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #090d11;
  padding: 0 16px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
  cursor: pointer;
}

.case-filters button[aria-pressed="true"] {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
}

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

.case-card {
  min-width: 0;
  display: inline-block;
  width: 100%;
  break-inside: avoid;
  margin: 0 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--panel);
}

.case-open {
  position: relative;
  width: 100%;
  min-height: 180px;
  display: block;
  overflow: hidden;
  border: 0;
  background: #030506;
  padding: 0;
  cursor: pointer;
}

.case-open::after {
  position: absolute;
  right: 14px;
  bottom: 14px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(3, 5, 7, 0.84);
  padding: 0 15px;
  color: #fff;
  content: "Смотреть";
  font-size: 12px;
  font-weight: 780;
}

.case-open img,
.case-preview-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  object-fit: cover;
  transition: transform 220ms ease;
}

.case-card[data-orientation="vertical"] :is(.case-open img, .case-preview-video) {
  aspect-ratio: 9 / 16;
}

.case-card[data-orientation="square"] :is(.case-open img, .case-preview-video) {
  aspect-ratio: 1;
}

.case-card:hover :is(.case-open img, .case-preview-video) {
  transform: scale(1.015);
}

.case-photo-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 3px;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #030506;
}

.case-photo-grid img {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  display: block;
  object-fit: cover;
}

.case-photo-grid img:first-child {
  grid-row: 1 / -1;
}

.case-preview-video {
  pointer-events: none;
  background: #030506;
}

.case-watermark {
  position: absolute;
  z-index: 2;
  top: 14px;
  right: 14px;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(3, 5, 7, 0.76);
  padding: 0 12px;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.case-card[data-preview-error="true"] .case-open::after {
  content: "Открыть видео";
}

.case-copy {
  padding: 20px 22px 22px;
}

.case-card h3 {
  margin-bottom: 8px;
  font-size: clamp(21px, 2vw, 28px);
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.case-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.proof-board,
.nda-card {
  min-height: 420px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  padding: clamp(28px, 4vw, 52px);
}

.proof-board {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: 32px;
}

.proof-board::after {
  position: absolute;
  right: -60px;
  bottom: -90px;
  width: 310px;
  aspect-ratio: 1;
  border: 1px solid #25546c;
  border-radius: 50%;
  content: "";
}

.proof-board h3,
.nda-card h3 {
  margin: 46px 0 16px;
  font-size: clamp(2rem, 3.2vw, 3.8rem);
  letter-spacing: -0.06em;
  line-height: 0.98;
}

.proof-board p,
.nda-card p {
  color: var(--muted);
}

.proof-ledger {
  position: relative;
  z-index: 2;
  display: grid;
  align-content: start;
  gap: 8px;
}

.proof-ledger span {
  min-height: 43px;
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 14px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 740;
  text-transform: uppercase;
}

.proof-ledger span::before {
  width: 7px;
  height: 7px;
  margin-right: 9px;
  border-radius: 50%;
  background: var(--signal);
  content: "";
}

.nda-card {
  display: flex;
  flex-direction: column;
  border-color: #2b4657;
  background: #0a141b;
}

.nda-card .button {
  align-self: flex-start;
  margin-top: auto;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.process-step {
  min-height: 290px;
  padding: 28px;
  background: var(--panel);
}

.process-step + .process-step {
  border-left: 1px solid var(--line);
}

.process-step h3 {
  margin: 66px 0 12px;
  font-size: 25px;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.process-step p {
  margin-bottom: 0;
  color: var(--muted);
}

.boundary-note {
  margin-top: 18px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #090e13;
  padding: 24px 28px;
}

.boundary-note strong {
  color: var(--signal);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.boundary-note p {
  max-width: 880px;
  margin: 0;
  color: var(--muted);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.work-card {
  min-height: 410px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--panel);
  padding: clamp(30px, 4vw, 52px);
}

.work-card-primary {
  border-color: var(--route-red-line);
  background: var(--route-red);
  color: #fff;
}

.work-card-primary .card-index,
.work-card-primary p {
  color: #ffe8e5;
}

.work-card h3 {
  margin: 58px 0 18px;
  font-size: clamp(2.25rem, 4vw, 4.5rem);
  letter-spacing: -0.065em;
  line-height: 0.95;
}

.work-card p {
  max-width: 520px;
  margin-bottom: 32px;
  color: var(--muted);
}

.work-card.work-card-primary p {
  color: #ffe8e5;
}

.work-card .button {
  align-self: flex-start;
  margin-top: auto;
}

.work-card-primary .button {
  border-color: #07090d;
  background: #07090d;
  color: #fff;
}

.capability-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.capability {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--panel);
}

.capability summary {
  min-height: 116px;
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 24px;
  list-style: none;
  cursor: pointer;
}

.capability summary::-webkit-details-marker {
  display: none;
}

.capability-number {
  color: var(--accent);
  font-size: 13px;
  font-weight: 820;
}

.capability h3 {
  margin: 0;
  font-size: 23px;
  letter-spacing: -0.035em;
}

.capability summary::after {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  content: "+";
  font-size: 22px;
}

.capability[open] summary::after {
  content: "–";
}

.capability p {
  margin: -4px 24px 26px 84px;
  color: var(--muted);
}

.team-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(270px, 0.48fr);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--panel);
}

.team-copy,
.team-signal {
  min-height: 410px;
  padding: clamp(32px, 5vw, 64px);
}

.team-copy h2 {
  max-width: 700px;
  margin: 14px 0 20px;
  font-size: clamp(2.8rem, 5vw, 5.8rem);
  letter-spacing: -0.065em;
  line-height: 0.95;
}

.team-copy p {
  max-width: 690px;
  color: var(--muted);
  font-size: 18px;
}

.team-copy .section-actions {
  margin-top: 30px;
}

.team-signal {
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  border-left: 1px solid var(--line);
  background: #09141a;
}

.team-signal::before,
.team-signal::after {
  position: absolute;
  border: 1px solid #25546c;
  border-radius: 50%;
  content: "";
}

.team-signal::before {
  width: 280px;
  height: 280px;
}

.team-signal::after {
  width: 150px;
  height: 150px;
}

.team-signal strong {
  z-index: 2;
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--signal);
  color: #0c1703;
  font-size: 32px;
}

.cta-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 46px;
  border: 1px solid var(--accent);
  border-radius: var(--radius-lg);
  background: #0a141b;
  padding: clamp(36px, 6vw, 74px);
}

.cta-panel h2 {
  max-width: 850px;
}

.cta-panel .handoff-note {
  margin-top: 18px;
}

.selected-case {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 20px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--panel);
  padding: 8px 10px 8px 16px;
  color: var(--muted);
}

.selected-case strong {
  color: var(--text);
}

.selected-case button {
  min-width: 58px;
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  background: #1a242d;
  color: var(--text);
  font-weight: 750;
  cursor: pointer;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 0 50px;
}

.footer-inner {
  width: var(--page);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(150px, 0.3fr) minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}

.footer-wordmark {
  color: var(--text);
  font-size: 22px;
  font-weight: 820;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.footer-nav {
  justify-self: end;
  display: grid;
  grid-template-columns: repeat(3, max-content);
  gap: 4px;
}

.footer-meta {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 30px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
  color: var(--muted-2);
  font-size: 13px;
}

.footer-meta p {
  margin: 0;
}

.route-dialog-overlay,
.case-dialog-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  overflow: auto;
  background: rgba(0, 0, 0, 0.82);
  padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
}

.route-dialog-panel {
  position: relative;
  width: min(1120px, 100%);
  max-height: calc(100dvh - 32px);
  display: grid;
  grid-template-columns: minmax(320px, 0.82fr) minmax(0, 1.18fr);
  overflow: auto;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: #080c11;
  color: var(--text);
}

.route-dialog-close {
  position: absolute;
  top: 14px;
  right: 14px;
  float: none;
  margin: 0;
}

.route-figure {
  min-height: 610px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-right: 1px solid var(--line);
  background: #121821;
  padding: 34px 20px 18px;
}

.route-figure svg {
  width: min(470px, 100%);
  overflow: visible;
}

.route-orb-red {
  fill: #63211f;
}

.route-orb-blue {
  fill: #193b80;
}

.route-shadow {
  fill: #070a0e;
}

.route-body,
.route-jacket {
  fill: #151d28;
}

.route-neck,
.route-face,
.route-hand {
  fill: #9a5f3b;
}

.route-hair {
  fill: #070a0f;
}

.route-shirt {
  fill: #263242;
}

.route-arm {
  fill: #1c2734;
}

.route-glasses rect,
.route-glasses path {
  fill: #080b0f;
  stroke-width: 5;
}

.route-lens-red {
  stroke: var(--danger);
}

.route-lens-blue {
  stroke: #4777ff;
}

.route-glasses path {
  fill: none;
  stroke: #d7dce2;
  stroke-width: 4;
  stroke-linecap: round;
}

.route-pill rect {
  stroke: rgba(255, 255, 255, 0.34);
  stroke-width: 2;
}

.route-pill path {
  fill: none;
  stroke: rgba(255, 255, 255, 0.56);
  stroke-width: 2;
}

.route-pill-red rect {
  fill: #f34843;
}

.route-pill-blue rect {
  fill: #356cff;
}

.route-dialog-copy {
  align-self: center;
  padding: 72px clamp(30px, 5vw, 64px) 54px;
}

.route-dialog-copy h2 {
  margin: 14px 0 16px;
  font-size: clamp(3rem, 5.3vw, 5.5rem);
  letter-spacing: -0.07em;
  line-height: 0.9;
}

.route-dialog-copy h2 span {
  display: block;
}

.route-dialog-lead {
  max-width: 640px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 17px;
}

.route-context {
  margin: 0 0 18px;
  border-left: 2px solid var(--accent);
  padding-left: 12px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.45;
}

.route-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.route-option {
  min-width: 0;
  min-height: 285px;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius-md);
  padding: 24px;
  color: #fff;
  text-decoration: none;
  transition: translate 160ms ease, border-color 160ms ease;
}

.route-option:hover {
  translate: 0 -3px;
  border-color: rgba(255, 255, 255, 0.65);
}

.route-option-red {
  background: var(--route-red);
}

.route-option-blue {
  background: var(--route-blue);
}

.route-option > span {
  font-size: 11px;
  font-weight: 780;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.route-option h3 {
  min-height: 2.05em;
  margin: 44px 0 12px;
  font-size: clamp(23px, 2.2vw, 31px);
  letter-spacing: -0.045em;
  line-height: 1.02;
}

.route-option p {
  margin-bottom: 20px;
  color: #fff;
}

.route-option strong {
  margin-top: auto;
  font-size: 14px;
}

.case-dialog-panel {
  width: min(960px, 100%);
  max-height: calc(100dvh - 32px);
  overflow: auto;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--panel);
  color: var(--text);
}

.dialog-close {
  position: sticky;
  top: 14px;
  z-index: 3;
  width: 48px;
  height: 48px;
  float: right;
  display: grid;
  place-items: center;
  margin: 14px 14px -62px 0;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: #080c10;
  font-size: 24px;
  cursor: pointer;
}

.dialog-close.route-dialog-close {
  position: absolute;
  top: 14px;
  right: 14px;
  float: none;
  margin: 0;
}

.dialog-media {
  background: #020304;
}

.dialog-media video {
  width: 100%;
  max-height: 62dvh;
  object-fit: contain;
}

.media-error {
  margin: 0;
  border-top: 1px solid var(--danger);
  background: #211012;
  padding: 12px 18px;
  color: var(--text);
  font-size: 14px;
  text-align: center;
}

.dialog-copy {
  clear: both;
  padding: 28px clamp(24px, 5vw, 48px) calc(32px + env(safe-area-inset-bottom));
}

.dialog-copy h2 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 5vw, 4rem);
  letter-spacing: -0.055em;
  line-height: 1;
}

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

.preview-case-note {
  border-left: 2px solid #b68a3d;
  padding-left: 14px;
  color: #d8c9a9 !important;
}

.dialog-open,
.menu-open {
  overflow: hidden;
}

.legal-main,
.team-main {
  min-height: 70vh;
}

.legal-hero,
.team-hero {
  padding: clamp(64px, 8vw, 110px) 0 clamp(44px, 6vw, 80px);
}

.legal-hero h1 {
  max-width: 980px;
  margin-bottom: 24px;
  font-size: clamp(3rem, 6vw, 6.5rem);
}

.legal-hero p {
  max-width: 760px;
  color: var(--muted);
  font-size: 18px;
}

.legal-date {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
}

.legal-notice {
  border: 1px solid #735c2b;
  border-radius: var(--radius-sm);
  background: #171207;
  padding: 18px 20px;
  color: #e5d7b6;
}

.legal-body {
  max-width: 880px;
  padding-bottom: var(--section);
}

.legal-body section {
  padding: 34px 0;
  border-top: 1px solid var(--line);
}

.legal-body h2 {
  margin-bottom: 14px;
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  letter-spacing: -0.04em;
}

.legal-body h3 {
  margin: 24px 0 8px;
}

.legal-body p,
.legal-body li {
  color: #bac3cb;
}

.legal-body li + li {
  margin-top: 8px;
}

.team-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.6fr);
  align-items: end;
  gap: 70px;
}

.team-hero h1 {
  max-width: 860px;
}

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

.role-card {
  min-height: 250px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--panel);
  padding: 26px;
}

.role-card h3 {
  margin: 54px 0 10px;
  font-size: 25px;
  letter-spacing: -0.04em;
}

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

@media (max-width: 1180px) {
  .desktop-nav,
  .header-actions .button-quiet {
    display: none;
  }

  .menu-button {
    display: grid;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .hero-copy {
    max-width: 800px;
  }

  .hero-visual {
    min-height: 590px;
  }

  .task-layout,
  .proof-grid {
    grid-template-columns: 1fr;
  }

  .task-output {
    position: static;
  }

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

  .process-step:nth-child(3) {
    border-left: 0;
  }

  .process-step:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .cta-panel {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .footer-nav {
    grid-template-columns: repeat(2, max-content);
  }
}

@media (max-width: 900px) {
  .route-dialog-panel {
    grid-template-columns: 1fr;
  }

  .route-figure {
    min-height: 330px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 8px 20px 0;
  }

  .route-figure svg {
    width: min(330px, 74%);
    margin-bottom: -92px;
  }

  .route-dialog-copy {
    padding-top: 42px;
  }

  .portfolio-tools {
    margin-top: -12px;
    padding: 18px;
  }

  .case-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-color: var(--line-strong) transparent;
  }

  .case-filters button {
    flex: 0 0 auto;
  }

  .case-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  .case-card {
    display: block;
    width: auto;
    margin: 0;
    scroll-snap-align: start;
  }
}

@media (max-width: 760px) {
  :root {
    --page: min(100% - 32px, 620px);
    --header: 68px;
    --section: 56px;
  }

  body::before {
    background-size: 42px 42px;
  }

  .header-actions > .button {
    display: none;
  }

  h1 {
    margin-block: 20px;
    font-size: clamp(3.25rem, 15.5vw, 5.2rem);
    line-height: 0.92;
  }

  .eyebrow {
    font-size: 10px;
    letter-spacing: 0.12em;
  }

  .hero {
    gap: 36px;
    padding: 52px 0 56px;
  }

  .hero-actions,
.section-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

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

  .hero-visual {
    min-height: clamp(390px, 100vw, 620px);
    margin-inline: -10px;
  }

  .production-stage {
    width: min(570px, 100%);
    overflow: hidden;
    border-radius: 28px;
  }

  .frame-key {
    inset: 60% 43% 1% 4%;
  }

  .frame-main {
    left: 3%;
    transform: translateZ(18px) rotate(-2deg);
  }

  .frame-side {
    right: 12%;
    transform: translateZ(40px);
  }

  .stage-meta {
    display: none;
  }

  .section-head h2,
  .split-intro h2,
  .cta-panel h2,
  .team-copy h2,
  .team-hero h1 {
    font-size: clamp(2.55rem, 10.8vw, 4.4rem);
  }

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

  .task-grid,
  .role-grid {
    display: grid;
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: min(82vw, 310px);
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline mandatory;
    scrollbar-color: var(--line-strong) transparent;
    padding-bottom: 10px;
  }

  .task-card,
  .role-card {
    scroll-snap-align: start;
  }

  .task-card {
    min-height: 246px;
  }

  .proof-board {
    grid-template-columns: 1fr;
  }

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

  .proof-board::after {
    right: -20px;
    bottom: -40px;
    width: 190px;
  }

  .process-grid {
    display: grid;
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: min(82vw, 310px);
    overflow-x: auto;
    border: 0;
    border-radius: 0;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline mandatory;
    scrollbar-color: var(--line-strong) transparent;
    padding-bottom: 10px;
  }

  .process-step + .process-step,
  .process-step:nth-child(3) {
    border: 1px solid var(--line);
  }

  .process-step {
    min-height: 230px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    scroll-snap-align: start;
  }

  .process-step h3 {
    margin-top: 44px;
  }

  .boundary-note {
    grid-template-columns: 1fr;
  }

  .work-card {
    min-height: 330px;
  }

  .capability summary {
    grid-template-columns: 34px 1fr auto;
    padding: 20px;
  }

  .capability h3 {
    font-size: 20px;
  }

  .capability p {
    margin: -2px 20px 22px 54px;
  }

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

  .team-hero {
    gap: 28px;
  }

  .team-copy,
  .team-signal {
    min-height: 300px;
  }

  .team-signal {
    min-height: 230px;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .cta-panel {
    padding: 30px 24px;
  }

  .route-dialog-overlay,
  .case-dialog-overlay {
    place-items: start center;
  }

  .route-dialog-panel {
    border-radius: 24px;
  }

  .route-figure {
    min-height: 280px;
  }

  .route-figure svg {
    width: min(290px, 82%);
    margin-bottom: -82px;
  }

  .route-dialog-copy {
    padding: 36px 22px calc(24px + env(safe-area-inset-bottom));
  }

  .route-dialog-copy h2 {
    font-size: clamp(2.7rem, 14vw, 4.2rem);
  }

  .route-options {
    grid-template-columns: 1fr;
  }

  .route-option {
    min-height: 250px;
  }

  .route-option h3 {
    min-height: 0;
    margin-top: 36px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-nav {
    justify-self: start;
    grid-template-columns: 1fr;
  }

  .footer-nav a {
    padding-inline: 0 18px;
  }

  .footer-meta {
    display: grid;
  }
}

.section-actions-spaced {
  margin-top: 24px;
}

@media (max-width: 420px) {
  .proof-ledger {
    grid-template-columns: 1fr;
  }

  .proof-board,
  .nda-card,
  .task-card,
  .task-output {
    padding: 24px;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (forced-colors: active) {
  .button,
  .task-card,
  .work-card,
  .capability,
  .process-grid,
  .proof-board,
  .nda-card {
    border: 1px solid ButtonText;
  }
}

/* v5 editorial candidate: cinematic identity without generator-like UI decoration */
:root {
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --section: clamp(64px, 7vw, 96px);
}

body::before {
  background: linear-gradient(115deg, rgba(42, 171, 238, 0.035), transparent 32%, transparent 70%, rgba(42, 171, 238, 0.025));
}

.nav-list a,
.footer-nav a {
  border-radius: 8px;
}

.button {
  min-height: 52px;
  border-radius: 14px;
  padding-inline: 24px;
}

.button:hover {
  translate: 0 -1px;
}

.button-quiet {
  padding-inline: 12px;
}

.hero {
  min-height: min(760px, calc(100svh - var(--header)));
  grid-template-columns: minmax(0, 0.95fr) minmax(430px, 1.05fr);
  gap: clamp(38px, 6vw, 84px);
  padding: clamp(46px, 7vh, 76px) 0 58px;
}

h1 {
  max-width: 720px;
  margin: 0 0 26px;
  font-size: clamp(3.65rem, 5.6vw, 6.35rem);
  letter-spacing: -0.045em;
  line-height: 1;
}

.hero-lead {
  max-width: 650px;
  font-size: clamp(18px, 1.35vw, 21px);
}

.handoff-note {
  max-width: 580px;
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.45;
}

.hero-visual {
  overflow: visible;
  min-height: 540px;
}

.production-stage .frame {
  border-radius: 18px;
}

.frame-key {
  inset: 57% 45% 3% 8%;
  padding: 24px;
}

.frame-key strong {
  max-width: 9ch;
  font-size: clamp(24px, 2.2vw, 36px);
  line-height: 0.98;
}

.section-head {
  max-width: 920px;
  margin-bottom: clamp(30px, 4vw, 50px);
}

.section-head-wide {
  max-width: 1040px;
}

.section-head h2,
.split-intro h2,
.cta-panel h2,
.team-hero h1 {
  margin: 0 0 18px;
  font-size: clamp(2.7rem, 4.6vw, 5.25rem);
  letter-spacing: -0.058em;
  line-height: 0.98;
}

.section-head p,
.split-intro p,
.cta-panel p,
.team-hero p {
  line-height: 1.52;
}

.section-projects {
  padding-top: clamp(54px, 6vw, 78px);
}

.portfolio-tools {
  margin: 0 0 24px;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
}

.case-filters {
  gap: 7px;
}

.case-filters button {
  min-height: 46px;
  border-radius: 10px;
  background: #080c10;
  padding-inline: 15px;
  font-size: 14px;
}

.case-grid {
  column-gap: 16px;
  margin-bottom: 0;
}

.case-card {
  margin-bottom: 16px;
  border-radius: 14px;
  background: #090e13;
}

.case-open::after {
  right: 12px;
  bottom: 12px;
  min-height: 40px;
  border-radius: 9px;
  padding-inline: 13px;
  font-size: 13px;
}

.case-watermark {
  top: 12px;
  right: 12px;
  min-height: 30px;
  border-radius: 8px;
  padding-inline: 10px;
  font-size: 11px;
}

.case-copy {
  padding: 20px 20px 22px;
}

.case-card h3 {
  font-size: clamp(22px, 1.8vw, 27px);
}

.case-card p {
  font-size: 16px;
  line-height: 1.5;
}

.portfolio-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 36px;
  margin-top: 34px;
  border-block: 1px solid var(--line-strong);
  padding: 34px 0;
}

.portfolio-cta h3 {
  max-width: 760px;
  margin-bottom: 12px;
  font-size: clamp(2rem, 3.2vw, 3.7rem);
  letter-spacing: -0.05em;
  line-height: 1;
}

.portfolio-cta p {
  max-width: 790px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 17px;
}

.task-layout {
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.55fr);
  gap: 18px;
}

.task-grid {
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--line);
}

.task-card {
  min-height: 240px;
  border: 0;
  border-radius: 0;
  padding: 28px;
}

.task-card:hover {
  translate: 0;
  background: #0d151c;
}

.task-card h3 {
  margin: 0 0 12px;
  font-size: clamp(24px, 2vw, 31px);
}

.task-card p {
  line-height: 1.5;
}

.task-select {
  min-height: 44px;
  border-radius: 10px;
}

.task-output {
  position: static;
  height: 100%;
  border-radius: 18px;
  padding: 30px;
}

.task-output h3 {
  font-size: clamp(25px, 2.2vw, 31px);
}

.check-list li {
  min-height: 58px;
  line-height: 1.35;
}

.check-list li::before {
  border-radius: 6px;
}

.process-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  border-radius: 18px;
  background: var(--line);
}

.process-step,
.process-step + .process-step,
.process-step:nth-child(n + 3) {
  min-height: 210px;
  border: 0;
  padding: 32px;
}

.process-step h3 {
  max-width: 16ch;
  margin: 0 0 14px;
  font-size: clamp(25px, 2.3vw, 34px);
  line-height: 1.02;
}

.process-step p {
  max-width: 52ch;
  font-size: 16px;
  line-height: 1.5;
}

.boundary-note {
  margin-top: 16px;
  grid-template-columns: minmax(180px, 0.32fr) minmax(0, 1fr);
  border-radius: 12px;
  padding: 24px 28px;
}

.boundary-note strong {
  color: var(--text);
  font-size: 16px;
  letter-spacing: -0.01em;
  text-transform: none;
}

.capability-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.capability {
  border-radius: 14px;
}

.capability summary {
  min-height: 104px;
  grid-template-columns: 1fr auto;
  gap: 18px;
  padding: 26px 28px;
}

.capability h3 {
  font-size: clamp(22px, 2vw, 29px);
  line-height: 1.05;
}

.capability summary::after {
  border-radius: 10px;
}

.capability p {
  max-width: 60ch;
  margin: -2px 64px 26px 28px;
  font-size: 16px;
  line-height: 1.5;
}

.modular-note {
  display: grid;
  grid-template-columns: minmax(250px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(28px, 5vw, 76px);
  margin-top: 18px;
  border-top: 1px solid var(--accent);
  padding: clamp(28px, 4vw, 46px) 0 0;
}

.modular-note h3 {
  margin: 0;
  font-size: clamp(2rem, 3.1vw, 3.6rem);
  letter-spacing: -0.052em;
  line-height: 1;
}

.modular-note p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.team-strip {
  display: block;
  border-radius: 20px;
}

.team-copy {
  min-height: 0;
  padding: clamp(36px, 5vw, 62px);
}

.team-copy h2 {
  margin-top: 0;
}

.cta-panel {
  border-radius: 20px;
  padding: clamp(36px, 5vw, 64px);
}

.route-dialog-overlay,
.case-dialog-overlay {
  background: rgba(0, 0, 0, 0.88);
}

.route-dialog-panel {
  width: min(1140px, 100%);
  border-radius: 22px;
  background: #070a0e;
}

.route-figure {
  min-height: 600px;
  background: #151b24;
}

.route-dialog-copy {
  padding: 68px clamp(32px, 5vw, 62px) 48px;
}

.route-dialog-copy h2 {
  margin: 0 0 18px;
  font-size: clamp(3rem, 5.1vw, 5.25rem);
}

.route-dialog-lead {
  line-height: 1.5;
}

.route-context {
  border-left: 0;
  border-radius: 10px;
  background: #101821;
  padding: 12px 14px;
  font-size: 15px;
}

.route-option {
  min-height: 190px;
  border-radius: 16px;
  padding: 26px;
  transition: transform 180ms ease, filter 180ms ease;
}

.route-option:hover {
  translate: 0;
  transform: translateY(-3px);
  filter: brightness(1.07);
}

.route-option h3 {
  min-height: 0;
  margin: 0 0 16px;
  font-size: clamp(26px, 2.4vw, 34px);
}

.route-option p {
  font-size: 16px;
  line-height: 1.45;
}

.route-option strong {
  min-height: 46px;
  display: flex;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.35);
  padding-top: 14px;
  font-size: 15px;
}

.team-hero {
  gap: clamp(36px, 6vw, 80px);
}

.role-grid {
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--line);
}

.role-card {
  min-height: 230px;
  border: 0;
  border-radius: 0;
  padding: 30px;
}

.role-card h3 {
  margin: 0 0 14px;
  font-size: clamp(24px, 2.2vw, 32px);
}

.team-roles-note {
  max-width: 980px;
  margin: -10px 0 34px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

@media (max-width: 1180px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .task-layout { grid-template-columns: minmax(0, 1fr); }

  .hero-copy {
    max-width: 900px;
  }

  .hero-visual {
    min-height: 570px;
  }

  .portfolio-cta,
  .modular-note {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  :root {
    --page: min(100% - 30px, 620px);
    --section: 52px;
  }

  h1 {
    font-size: clamp(3rem, 13.4vw, 4.65rem);
    line-height: 0.96;
  }

  .hero {
    gap: 22px;
    padding: 24px 0 44px;
  }

  .hero-lead {
    font-size: 17px;
  }

  .hero-visual {
    min-height: clamp(370px, 96vw, 520px);
    margin-inline: 0;
  }

  .production-stage {
    overflow: visible;
    border-radius: 0;
  }

  .frame-key {
    inset: 60% 42% 2% 3%;
  }

  .section-head h2,
  .cta-panel h2,
  .team-copy h2,
  .team-hero h1 {
    font-size: clamp(2.45rem, 10.2vw, 3.8rem);
  }

  .task-grid,
  .role-grid,
  .process-grid {
    display: grid;
    grid-template-columns: 1fr;
    grid-auto-flow: row;
    grid-auto-columns: auto;
    overflow: hidden;
    scroll-snap-type: none;
    padding-bottom: 0;
  }

  .task-card,
  .role-card,
  .process-step {
    min-height: 0;
    scroll-snap-align: none;
  }

  .task-card {
    padding: 24px;
  }

  .task-card p {
    margin-bottom: 20px;
  }

  .process-step,
  .process-step + .process-step,
  .process-step:nth-child(3) {
    min-height: 0;
    border: 0;
    border-radius: 0;
    padding: 26px 24px;
  }

  .process-step h3 {
    max-width: none;
    margin-top: 0;
    font-size: 26px;
  }

  .boundary-note {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  .capability-list {
    grid-template-columns: 1fr;
  }

  .capability summary {
    min-height: 88px;
    grid-template-columns: 1fr auto;
    padding: 22px;
  }

  .capability p {
    margin: -2px 54px 22px 22px;
  }

  .modular-note p,
  .team-roles-note {
    font-size: 17px;
  }

  .portfolio-cta {
    align-items: start;
    gap: 24px;
  }

  .portfolio-cta .button {
    width: 100%;
  }

  .route-dialog-copy {
    padding: 16px 16px calc(16px + env(safe-area-inset-bottom));
  }

  .route-dialog-copy h2 {
    font-size: clamp(1.7rem, 7vw, 2.5rem);
    line-height: 1.06;
    letter-spacing: -0.035em;
    margin-bottom: 10px;
  }

  .route-option {
    min-height: 100px;
    padding: 16px;
  }

  .route-option h3 { font-size: 22px; line-height: 1.1; margin: 0 0 8px; }
  .route-option p { margin: 0; }
  .route-dialog-lead { margin-bottom: 12px; font-size: 16px; }
  .route-context { margin-bottom: 12px; padding: 8px; font-size: 16px; }
  .route-figure { min-height: 0; height: 68px; padding: 0; }
  .route-figure svg { width: 58px; height: 68px; margin: 0; }

  .footer-nav {
    width: 100%;
  }

  .footer-nav a {
    width: 100%;
    white-space: normal;
  }
}

.case-empty { border-block: 1px solid var(--line); padding: 32px 0; }
.case-empty p { font-size: 18px; }
.handoff-note { font-size: 16px; color: var(--muted); }
.footer-wordmark { display: inline-flex; align-items: center; min-height: 44px; }
.route-option-red { box-shadow: inset 3px 0 0 #ffb3ad; }
[data-case-handoff-status] { color: var(--muted); font-size: 16px; }
.case-card[data-preview-error="true"] video { object-fit: contain; }
.hero-copy, .dialog-copy, .role-card, .task-card { min-width: 0; }
h1, h2, h3, .button { overflow-wrap: break-word; }

@media (min-width: 761px) and (max-width: 900px) {
  .route-figure { min-height: 0; height: 120px; padding: 0; }
  .route-figure svg { width: 100px; height: 116px; margin: 0; }
  .route-dialog-copy { padding: 24px; }
  .route-dialog-copy h2 { font-size: 44px; }
}

@media (max-width: 360px) {
  .hero h1 { font-size: 44px; letter-spacing: -0.045em; margin-bottom: 18px; }
  .hero-lead { margin-bottom: 22px; }
  .hero-actions .button { min-height: 48px; }
}

@media (max-width: 420px) {
  .hero-actions,
  .section-actions {
    gap: 9px;
  }

  .frame-key {
    padding: 17px;
  }

  .frame-key strong {
    font-size: 21px;
  }

  .task-output,
  .cta-panel {
    padding: 24px 20px;
  }
}

/* Natural card height: no stretched rows or flexible card bodies. */
.case-card { display:block; width:100%; height:auto; min-height:0; align-self:start; margin:0; }
.case-copy { flex:none; height:auto; min-height:0; }
.case-open { min-height:0; }
.case-photo-grid { display:block; aspect-ratio:4/5; }
.case-card[data-orientation="wide"] .case-photo-grid { aspect-ratio:16/9; }
.case-card:hover :is(.case-open img,.case-preview-video) { transform:none; }
@media(max-width:600px) { .case-grid { grid-template-columns:minmax(0,1fr); } }

.case-photo-grid { border:0; padding:0; cursor:zoom-in; color:inherit; }
.case-photo-grid:focus-visible { outline:3px solid #659ae7; outline-offset:-3px; }
.photo-dialog { box-sizing:border-box; max-width:calc(100vw - 24px); max-height:calc(100dvh - 24px); padding:12px; border:1px solid #303b44; border-radius:12px; background:#090e13; color:#fff; }
.photo-dialog::backdrop { background:rgba(0,0,0,.88); }
.photo-dialog img { display:block; max-width:100%; max-height:calc(100dvh - 110px); width:auto; height:auto; object-fit:contain; }
.photo-dialog button { display:block; margin:0 0 10px auto; }

/* Controlled portrait frames; preserve the entire film, including its titles. */
.case-grid .case-card[data-orientation="vertical"] .case-preview-video { aspect-ratio:4/5; object-fit:contain; background:#030506; }

/* Center the hero caption inside its existing blue frame. */
.production-stage .frame-key { display:flex; align-items:center; justify-content:center; text-align:center; padding:clamp(14px,2vw,24px); }
.production-stage .frame-key strong { max-width:100%; width:auto; margin:0; line-height:1.04; text-align:center; }
.production-stage .frame-key strong span { display:block; white-space:nowrap; }

/* Keep the two-word route title readable without breaking a single letter. */
.route-option h3 {
  overflow-wrap: normal;
  word-break: normal;
  font-size: clamp(24px, 2vw, 30px);
}
.route-option h3 span { display:block; white-space:nowrap; }

/* Selected hero composition: a real portrait screen, not a portrait clip inside a wide card. */
.production-stage .frame-side[data-hero-media] {
  inset: 3% 18% 2% 31%;
  border-radius: 24px;
  background: #050a0f;
  box-shadow: 0 30px 80px rgb(0 0 0 / 58%);
  transform: translateZ(72px) rotate(2deg);
}

.production-stage .frame-side[data-hero-media] .hero-reel {
  object-fit: cover;
  object-position: center;
}

.production-stage .hero-reel-backdrop {
  display: none;
}

@media (max-width: 760px) {
  .production-stage .frame-side[data-hero-media] {
    inset: 2% 19% 1% 27%;
    border-radius: 20px;
  }
}
