:root {
  --ink: #f5f7fb;
  --paper: #07090d;
  --muted: #8d95a3;
  --line: rgba(222, 231, 255, 0.12);
  --panel: rgba(16, 20, 29, 0.72);
  --panel-strong: rgba(21, 27, 39, 0.92);
  --acid: #d8c68a;
  --coral: #8eb5ff;
  --cyan: #7ce7d2;
  --violet: #9b8cff;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.38);
  --content-max: 1680px;
  --page-gutter: max(clamp(24px, 7vw, 92px), calc((100vw - var(--content-max)) / 2));
  --header-gutter: max(clamp(18px, 4vw, 44px), calc((100vw - var(--content-max)) / 2));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 78% 10%, rgba(64, 111, 255, 0.2), transparent 28%),
    radial-gradient(circle at 15% 26%, rgba(124, 231, 210, 0.08), transparent 24%),
    linear-gradient(180deg, #090b10 0%, #07090d 44%, #0d1017 100%),
    var(--paper);
  color: var(--ink);
  font-family: "Inter", "Noto Sans SC", system-ui, sans-serif;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.is-previewing {
  overflow: hidden;
}

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

button {
  font: inherit;
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 20;
  opacity: 0.11;
  background-image:
    linear-gradient(90deg, rgba(222, 231, 255, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(222, 231, 255, 0.05) 1px, transparent 1px);
  background-size: 32px 32px;
  mix-blend-mode: screen;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  padding: 0 var(--header-gutter);
  border-bottom: 1px solid transparent;
  background: transparent;
  color: var(--ink);
  backdrop-filter: none;
  transition: background 220ms ease, border-color 220ms ease, box-shadow 220ms ease, backdrop-filter 220ms ease;
}

.site-header.is-scrolled {
  background: rgba(7, 9, 13, 0.86);
  border-bottom-color: rgba(222, 231, 255, 0.1);
  box-shadow: 0 16px 60px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(22px) saturate(145%);
}

.brand,
.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand {
  font-weight: 800;
}

.brand-avatar {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  padding: 2px;
  border-radius: 50%;
  background: conic-gradient(from 145deg, #6c8dff, #7ce7d2, #d8c68a, #9b8cff, #6c8dff);
  box-shadow: 0 0 26px rgba(108, 141, 255, 0.35);
}

.brand-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  border: 2px solid #10141d;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 35%;
}

.nav-links a {
  color: rgba(245, 247, 251, 0.72);
  font-size: 14px;
  font-weight: 700;
}

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

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  overflow: hidden;
  border-bottom: 0;
  background:
    radial-gradient(circle at 74% 58%, rgba(73, 107, 211, 0.24), transparent 30%),
    radial-gradient(circle at 52% 34%, rgba(124, 231, 210, 0.08), transparent 22%),
    #05070b;
  color: var(--ink);
  isolation: isolate;
}

.hero-backdrop {
  position: absolute;
  inset: -6svh 0 -6svh;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  transform: translate3d(0, calc(var(--hero-shift, 0px) * 0.45), 0) scale(1.08);
  opacity: 0.97;
  filter: saturate(1.04) contrast(1.06) brightness(0.96);
  will-change: transform;
}

.hero-backdrop::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  width: auto;
  height: auto;
  background:
    radial-gradient(circle at 75% 52%, rgba(118, 145, 255, 0.08), transparent 34%),
    linear-gradient(90deg, rgba(5, 7, 11, 0.82) 0%, rgba(5, 7, 11, 0.64) 39%, rgba(5, 7, 11, 0.16) 72%, rgba(5, 7, 11, 0.38) 100%);
  transform: none;
  opacity: 1;
}

.hero-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background-image:
    linear-gradient(rgba(222, 231, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(222, 231, 255, 0.045) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: linear-gradient(90deg, black, black 74%, transparent);
  opacity: 0.46;
}

.hero-showcase {
  position: absolute;
  inset: 7vh -9vw auto auto;
  width: min(920px, 62vw);
  aspect-ratio: 16 / 10;
  z-index: 0;
  animation: heroVisualReveal 900ms ease both;
}

.hero-showcase img {
  position: absolute;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  border: 1px solid rgba(245, 242, 235, 0.16);
  background: #edf2f4;
  box-shadow: 0 38px 100px rgba(0, 0, 0, 0.38);
}

.showcase-main {
  right: 0;
  top: 7%;
  width: 82%;
  transform: rotate(-2deg);
}

.showcase-side {
  width: 44%;
  opacity: 0.92;
}

.side-a {
  left: 0;
  top: 0;
  transform: rotate(3deg);
}

.side-b {
  left: 8%;
  bottom: 0;
  transform: rotate(-4deg);
}

.hero-orbit {
  position: absolute;
  right: min(4vw, 60px);
  top: 52%;
  z-index: 0;
  width: min(760px, 46vw);
  aspect-ratio: 1;
  perspective: 1000px;
  transform: translateY(-50%) translate3d(0, var(--hero-shift, 0px), 0);
  transform-style: preserve-3d;
  filter: drop-shadow(0 50px 110px rgba(73, 107, 211, 0.25));
  animation: heroVisualReveal 900ms ease both;
}

.hero-canvas {
  position: absolute;
  inset: -10%;
  width: 120%;
  height: 120%;
  transform: translateZ(46px);
  opacity: 0.82;
}

.orb,
.orbit-ring {
  position: absolute;
  display: block;
  border-radius: 999px;
}

.orb {
  background:
    radial-gradient(circle at 28% 24%, rgba(255, 255, 255, 0.95), rgba(169, 185, 210, 0.68) 18%, rgba(64, 100, 205, 0.84) 54%, rgba(9, 12, 20, 0.08));
  box-shadow: inset 0 0 32px rgba(255, 255, 255, 0.34), 0 28px 80px rgba(73, 107, 211, 0.36);
  transform-style: preserve-3d;
}

.orb-one {
  width: 34%;
  height: 34%;
  left: 42%;
  top: 34%;
  transform: translateZ(92px) rotateX(0deg);
  animation: orbitPulse 5s ease-in-out infinite;
}

.orb-two {
  width: 16%;
  height: 16%;
  left: 16%;
  top: 21%;
  transform: translateZ(180px);
  animation: orbitFloat 7s ease-in-out infinite;
}

.orb-three {
  width: 12%;
  height: 12%;
  right: 7%;
  bottom: 15%;
  transform: translateZ(52px);
  animation: orbitFloat 8s ease-in-out infinite reverse;
}

.orb-four {
  width: 9%;
  height: 9%;
  left: 28%;
  bottom: 16%;
  transform: translateZ(140px);
  animation: orbitFloat 6.5s ease-in-out infinite;
}

.orb-five {
  width: 7%;
  height: 7%;
  right: 26%;
  top: 10%;
  transform: translateZ(210px);
  animation: orbitFloat 9s ease-in-out infinite reverse;
}

.orbit-ring {
  inset: 10%;
  border: 1px solid rgba(222, 231, 255, 0.22);
  transform: rotateX(64deg) rotateZ(-18deg) translateZ(12px);
  animation: orbitSpin 18s linear infinite;
}

.ring-two {
  inset: 25%;
  border-color: rgba(124, 231, 210, 0.32);
  transform: rotateX(62deg) rotateZ(24deg) translateZ(70px);
  animation-duration: 24s;
  animation-direction: reverse;
}

.ring-three {
  inset: 4%;
  border-color: rgba(216, 198, 138, 0.22);
  transform: rotateX(72deg) rotateZ(56deg) translateZ(35px);
  animation-duration: 32s;
}

.ring-four {
  inset: 35%;
  border-color: rgba(155, 140, 255, 0.28);
  transform: rotateX(48deg) rotateZ(-62deg) translateZ(150px);
  animation-duration: 15s;
  animation-direction: reverse;
}

.interface-sheet {
  position: absolute;
  border: 1px solid rgba(23, 23, 19, 0.14);
  box-shadow: var(--shadow);
}

.sheet-one {
  right: 6vw;
  top: 16vh;
  width: min(560px, 46vw);
  min-height: 330px;
  padding: 20px;
  background: var(--panel);
  transform: rotate(-2.5deg);
  animation: softFloat 8s ease-in-out infinite;
}

.sheet-toolbar {
  height: 44px;
  border-bottom: 1px solid var(--line);
}

.sheet-toolbar::before {
  content: "";
  display: block;
  width: 160px;
  height: 12px;
  margin-top: 8px;
  background: var(--ink);
}

.sheet-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.8fr;
  gap: 14px;
  margin-top: 22px;
}

.sheet-grid span {
  min-height: 92px;
  background:
    linear-gradient(135deg, transparent 48%, rgba(17, 17, 15, 0.12) 49%, transparent 50%),
    #f7f7f4;
  border: 1px solid var(--line);
}

.sheet-grid span:nth-child(1) {
  grid-row: span 2;
  background: var(--cyan);
}

.sheet-grid span:nth-child(4) {
  background: var(--coral);
}

.sheet-flow {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.sheet-flow i {
  display: block;
  height: 16px;
  flex: 1;
  background: var(--ink);
}

.sheet-flow i:nth-child(2) {
  flex: 0.6;
  background: var(--acid);
}

.sheet-two {
  right: 38vw;
  bottom: 8vh;
  width: 178px;
  height: 308px;
  padding: 16px;
  background: var(--acid);
  transform: rotate(5deg);
  animation: softFloat 9s ease-in-out infinite reverse;
}

.mobile-shell {
  display: grid;
  gap: 14px;
  height: 100%;
  padding: 22px 14px;
  background: var(--ink);
  border-radius: 26px;
}

.mobile-shell span {
  background: #f4f1e8;
  border-radius: 18px;
}

.mobile-shell span:first-child {
  background: var(--coral);
}

.sheet-three {
  right: 5vw;
  bottom: 13vh;
  width: 260px;
  padding: 18px;
  background: #f4f1e8;
  transform: rotate(2deg);
  animation: softFloat 7s ease-in-out infinite;
}

.metric-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.metric-row:last-child {
  border-bottom: 0;
}

.metric-row b {
  font-size: 34px;
  letter-spacing: 0;
}

.metric-row span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(var(--content-max), calc(100% - var(--page-gutter) * 2));
  margin-left: var(--page-gutter);
  padding: 78px 0 104px;
  animation: heroReveal 780ms ease both;
}

.eyebrow {
  margin: 0 0 18px;
  color: rgba(245, 247, 251, 0.58);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--acid);
}

.hero-position {
  max-width: 1460px;
  margin: 0 0 30px;
  color: rgba(245, 247, 251, 0.94);
  font-size: clamp(50px, 4.8vw, 72px);
  font-weight: 650;
  line-height: 1.16;
  letter-spacing: 0;
  text-wrap: balance;
}

.hero-role {
  margin: 16px 0 0;
  color: rgba(171, 198, 255, 0.9);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1,
.section h2,
.case-study h2,
.about-section h2,
.footer h2 {
  margin: 0;
  max-width: 880px;
  font-size: 50px;
  line-height: 1.12;
  letter-spacing: 0;
  text-wrap: balance;
}

.hero-copy {
  max-width: 560px;
  margin: 28px 0 0;
  color: rgba(245, 247, 251, 0.7);
  font-size: 15px;
  line-height: 1.72;
}

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

.button {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid rgba(222, 231, 255, 0.18);
  font-weight: 800;
  transition: transform 160ms ease, background 160ms ease;
}

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

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

.button.secondary {
  background: var(--acid);
}

.hero .button {
  border-color: rgba(245, 242, 235, 0.22);
}

.hero .button.primary {
  background: #f5f7fb;
  color: #07090d;
}

.hero .button.secondary {
  background: rgba(245, 242, 235, 0.08);
  color: var(--paper);
}

.ticker {
  margin-top: 0;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #05070b;
  color: rgba(245, 247, 251, 0.9);
}

.ticker div {
  display: flex;
  width: max-content;
  gap: clamp(18px, 5vw, 72px);
  padding: 15px var(--page-gutter);
  animation: tickerLoop 28s linear infinite;
  will-change: transform;
}

.ticker span {
  min-width: max-content;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

@keyframes tickerLoop {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(-33.333%, 0, 0);
  }
}

.reference-strip {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: baseline;
  padding: 22px var(--page-gutter);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.58);
}

.reference-strip h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1;
}

.reference-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.reference-links a {
  padding: 8px 12px;
  border: 1px solid rgba(23, 23, 19, 0.1);
  background: rgba(255, 255, 255, 0.5);
  color: #2768d8;
  font-size: 15px;
  font-weight: 800;
}

.reference-links a:hover {
  border-color: rgba(39, 104, 216, 0.28);
  background: rgba(39, 104, 216, 0.08);
}

@keyframes drift {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-40%);
  }
}

@keyframes heroReveal {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroImageReveal {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes heroVisualReveal {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes orbitSpin {
  to {
    rotate: 360deg;
  }
}

@keyframes orbitFloat {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 12px -18px;
  }
}

@keyframes orbitPulse {
  0%,
  100% {
    scale: 1;
  }
  50% {
    scale: 1.06;
  }
}

@keyframes softFloat {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -10px;
  }
}

.section,
.case-study,
.about-section,
.footer {
  padding: clamp(64px, 8vw, 112px) var(--page-gutter);
  position: relative;
}

.compact-work {
  padding-top: 72px;
}

.work-section {
  background:
    radial-gradient(circle at 88% 12%, rgba(142, 181, 255, 0.12), transparent 26%),
    radial-gradient(circle at 16% 70%, rgba(216, 198, 138, 0.06), transparent 25%),
    #07090d;
  background-attachment: fixed;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
  margin-bottom: 36px;
}

.section-heading .eyebrow {
  justify-self: end;
  margin-bottom: 10px;
}

.work-section .section-heading {
  grid-template-columns: minmax(0, 1fr) auto;
  margin-bottom: 24px;
}

.work-section .section-heading h2 {
  color: #f5f7fb;
}

.work-section .filters {
  grid-column: 1 / -1;
  position: relative;
  z-index: 2;
}

[data-parallax-speed] {
  transform: translate3d(0, var(--parallax-y, 0px), 0);
  will-change: transform;
}

.section-heading h2,
.case-study h2,
.about-section h2,
.footer h2 {
  font-size: 42px;
}

.section-heading h2 {
  color: #f5f7fb;
}

.capability-section {
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 18% 18%, rgba(124, 231, 210, 0.06), transparent 26%),
    #080b11;
  background-attachment: fixed;
}

.experience-section {
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(13, 18, 28, 0.9), rgba(7, 9, 13, 0.94)),
    #07090d;
  background-attachment: fixed;
}

.experience-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.42fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 86px);
  align-items: stretch;
}

.profile-card {
  position: relative;
  top: auto;
  display: flex;
  flex-direction: column;
  align-self: stretch;
  min-height: 100%;
  padding: 22px;
  border: 1px solid rgba(222, 231, 255, 0.12);
  border-radius: 32px;
  background:
    linear-gradient(145deg, rgba(245, 247, 251, 0.08), rgba(245, 247, 251, 0.025)),
    var(--panel);
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.18);
}

.profile-card img {
  display: block;
  width: 100%;
  height: min(360px, 56vw);
  object-fit: cover;
  object-position: center 28%;
  border: 1px solid rgba(222, 231, 255, 0.12);
  border-radius: 20px;
  background: #111827;
}

.profile-card h3 {
  margin: 26px 0 8px;
  font-size: 28px;
  line-height: 1.15;
}

.profile-card p {
  margin: 0 0 26px;
  color: rgba(245, 247, 251, 0.74);
  font-size: 16px;
}

.profile-card ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.profile-card li {
  padding-top: 12px;
  border-top: 1px solid rgba(222, 231, 255, 0.1);
  color: var(--muted);
  line-height: 1.65;
}

.experience-timeline {
  position: relative;
  display: grid;
  gap: 42px;
}

.experience-timeline::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 10px;
  bottom: 10px;
  width: 1px;
  background: repeating-linear-gradient(
    to bottom,
    rgba(142, 181, 255, 0.78) 0 8px,
    transparent 8px 18px
  );
}

.experience-timeline article {
  position: relative;
  display: grid;
  grid-template-columns: 36px 72px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.experience-timeline article::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 15px;
  width: 13px;
  height: 13px;
  border: 5px solid #2f72ff;
  border-radius: 50%;
  background: #dce7ff;
  box-shadow: 0 0 22px rgba(47, 114, 255, 0.5);
}

.company-mark {
  display: grid;
  grid-column: 2;
  grid-row: 1;
  width: 54px;
  height: 54px;
  place-items: center;
  margin-left: 0;
  border-radius: 16px;
  overflow: hidden;
  background: #f5f7fb;
  box-shadow: 0 16px 46px rgba(0, 0, 0, 0.28);
}

.company-mark + div {
  grid-column: 3;
  grid-row: 1;
}

.company-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.experience-timeline h3 {
  margin: 5px 0 18px;
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: 0;
}

.experience-timeline h3 > strong {
  font-size: 30px;
  letter-spacing: 0;
}

.experience-timeline h3 > span {
  margin-left: 12px;
  color: var(--muted);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0;
}

.experience-timeline p {
  max-width: none;
  margin: 0;
  color: rgba(207, 216, 232, 0.76);
  font-size: 16px;
  line-height: 1.9;
}

.capability-matrix {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 22px;
  align-items: center;
  justify-content: flex-start;
  border: 0;
}

.capability-matrix > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 158px;
  min-height: 54px;
  padding: 0 24px 0 18px;
  border: 1px solid rgba(142, 181, 255, 0.22);
  border-radius: 999px;
  background:
    radial-gradient(circle at 18% 16%, rgba(142, 181, 255, 0.18), transparent 42%),
    rgba(245, 247, 251, 0.045);
  color: rgba(245, 247, 251, 0.82);
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(245, 247, 251, 0.08);
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.capability-matrix > span:hover {
  background:
    radial-gradient(circle at 18% 16%, rgba(142, 181, 255, 0.28), transparent 46%),
    rgba(245, 247, 251, 0.075);
  border-color: rgba(142, 181, 255, 0.5);
  color: #f5f7fb;
  transform: translateY(-2px);
}

.capability-text {
  display: inline;
  font: inherit;
  letter-spacing: 0;
}

.capability-icon {
  display: inline-flex;
  flex: none;
  width: 22px;
  height: 22px;
  align-items: center;
  justify-content: center;
  color: #8eb5ff;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  width: fit-content;
  padding: 0;
  border: 0;
  background: transparent;
  backdrop-filter: none;
}

.filter {
  position: relative;
  min-height: 34px;
  padding: 6px 2px;
  border: 0;
  background: transparent;
  color: rgba(245, 247, 251, 0.48);
  cursor: pointer;
  font-size: 18px;
  font-weight: 800;
  transition: color 180ms ease;
}

.filter::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: #8eb5ff;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.filter.active {
  background: transparent;
  color: #f5f7fb;
}

.filter:hover {
  color: #f5f7fb;
}

.filter.active::after,
.filter:hover::after {
  transform: scaleX(1);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(44px, 6vw, 88px) clamp(24px, 4vw, 56px);
  align-items: start;
  padding-top: 24px;
}

.project-card {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
  overflow: visible;
  min-height: auto;
  border: 0;
  background: transparent;
  backdrop-filter: none;
  cursor: pointer;
}

.project-card:hover {
  z-index: 2;
  transform: none;
}

.project-card.wide {
  grid-column: auto;
  grid-template-columns: 1fr;
}

.feature-large {
  grid-column: auto;
}

.feature-offset {
  grid-column: auto;
  margin-top: 0;
}

.feature-small {
  grid-column: auto;
  margin-top: 0;
}

.feature-tall {
  grid-column: auto;
  margin-top: 0;
}

.project-card:nth-child(4n + 3) {
  transform: translateY(var(--project-offset, 0));
}

.project-card:nth-child(4n + 3):hover {
  transform: translateY(var(--project-offset, 0));
}

.project-visual {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(222, 231, 255, 0.12);
  border-radius: 32px;
  background:
    radial-gradient(circle at 72% 18%, rgba(142, 181, 255, 0.15), transparent 34%),
    rgba(16, 20, 29, 0.78);
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.28);
  transform: translateZ(0);
  transition:
    transform 520ms cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 520ms ease,
    border-color 520ms ease,
    filter 520ms ease;
  transform-origin: center center;
  will-change: transform;
}

.project-card:hover .project-visual {
  border-color: rgba(142, 181, 255, 0.3);
  box-shadow: 0 50px 118px rgba(0, 0, 0, 0.44);
  filter: brightness(1.025);
  transform: translateY(-10px) scale(1.05);
}

.project-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(142, 181, 255, 0.08), transparent 42%);
  opacity: 0;
  transition: opacity 520ms ease;
}

.project-card:hover .project-visual::after {
  opacity: 1;
}

.image-visual {
  aspect-ratio: 16 / 9;
  padding: 0;
  background: #0f1521;
}

.image-visual img,
.image-visual video {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  border: 0;
  box-shadow: none;
  transition: filter 520ms ease;
}

.project-card:hover .image-visual img,
.project-card:hover .image-visual video {
  filter: saturate(1.025);
}

.single-shot {
  display: grid;
  place-items: center;
}

.single-shot img {
  max-width: 100%;
  max-height: 100%;
}

.cover-shot {
  padding: 0;
  background: #0f1521;
}

.cover-shot img {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: transparent;
}

.shot-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.shot-gallery img {
  height: auto;
  min-height: 0;
  object-fit: contain;
  object-position: top center;
}

.shot-gallery img:first-child {
  grid-row: auto;
}

.shot-gallery img:not(:first-child) {
  display: none;
}

.wide .project-visual {
  border-right: 1px solid var(--line);
  border-bottom: 0;
}

.visual-one {
  background: #e8eee9;
}

.visual-two {
  background: #20201b;
}

.visual-three {
  background: var(--acid);
}

.dashboard-window {
  position: absolute;
  inset: 12% 8%;
  padding: 20px;
  background: var(--paper);
  border: 1px solid var(--ink);
  box-shadow: 12px 12px 0 rgba(23, 23, 19, 0.88);
}

.window-bar {
  height: 38px;
  border-bottom: 1px solid var(--line);
}

.chart-stack {
  display: grid;
  grid-template-columns: 0.7fr 1fr 0.85fr;
  gap: 12px;
  align-items: end;
  height: 176px;
  margin-top: 22px;
}

.chart-stack span {
  display: block;
  background: var(--ink);
}

.chart-stack span:nth-child(1) {
  height: 45%;
  background: var(--coral);
}

.chart-stack span:nth-child(2) {
  height: 88%;
}

.chart-stack span:nth-child(3) {
  height: 62%;
  background: var(--violet);
}

.data-table {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.data-table i {
  display: block;
  height: 10px;
  background: rgba(17, 17, 15, 0.16);
}

.app-stack {
  position: absolute;
  inset: 48px 0 0;
  display: flex;
  justify-content: center;
  gap: 18px;
}

.phone-card {
  width: 136px;
  height: 282px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 28px;
  background:
    linear-gradient(var(--coral) 0 22%, transparent 22%),
    linear-gradient(90deg, transparent 12%, rgba(255, 255, 255, 0.18) 12% 88%, transparent 88%),
    var(--paper);
}

.phone-card:nth-child(2) {
  margin-top: 38px;
  background:
    linear-gradient(var(--cyan) 0 32%, transparent 32%),
    linear-gradient(90deg, transparent 12%, rgba(17, 17, 15, 0.12) 12% 88%, transparent 88%),
    var(--paper);
}

.phone-card:nth-child(3) {
  margin-top: 76px;
  background:
    linear-gradient(var(--acid) 0 26%, transparent 26%),
    linear-gradient(90deg, transparent 12%, rgba(17, 17, 15, 0.12) 12% 88%, transparent 88%),
    var(--paper);
}

.token-board {
  position: absolute;
  inset: 44px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.token-board span {
  border: 1px solid var(--ink);
  background: var(--paper);
}

.token-board span:nth-child(2) {
  background: var(--ink);
}

.token-board span:nth-child(3) {
  background: var(--coral);
}

.token-board span:nth-child(4) {
  background: var(--cyan);
}

.token-board span:nth-child(6) {
  background: var(--violet);
}

.system-board span:nth-child(1) {
  background: #fffdf8;
}

.system-board span:nth-child(2) {
  background: #171713;
}

.system-board span:nth-child(3) {
  background: #d7c99f;
}

.system-board span:nth-child(4) {
  background: #b9c9c3;
}

.system-board span:nth-child(5) {
  background: #a8664d;
}

.system-board span:nth-child(6) {
  background: #676779;
}

.project-info {
  display: grid;
  align-content: start;
  gap: 14px;
  min-width: 0;
  padding: 22px 0 0;
}

.project-tag {
  color: var(--coral);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.project-info h3 {
  margin: 0;
  max-width: 620px;
  font-size: clamp(26px, 3vw, 48px);
  line-height: 1.1;
  text-wrap: balance;
}

.project-info p {
  max-width: none;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.62;
  white-space: nowrap;
}

.project-info dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 10px 0 0;
}

.project-info dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.project-info dd {
  margin: 6px 0 0;
  font-weight: 900;
}

.case-study {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1.15fr);
  gap: clamp(28px, 5vw, 72px);
  border-block: 1px solid var(--line);
  background:
    radial-gradient(circle at 80% 20%, rgba(155, 140, 255, 0.1), transparent 28%),
    #090d14;
}

.case-copy p:last-child {
  max-width: 560px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

.case-timeline {
  display: grid;
  border-top: 1px solid var(--ink);
}

.case-timeline div {
  display: grid;
  grid-template-columns: 48px 116px 1fr;
  gap: 16px;
  align-items: baseline;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.case-timeline span,
.process-grid span {
  color: var(--coral);
  font-size: 12px;
  font-weight: 900;
}

.case-timeline b {
  font-size: 20px;
}

.case-timeline p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.split-timeline b {
  color: var(--ink);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.process-section,
.about-section {
  background:
    linear-gradient(180deg, rgba(10, 14, 22, 0.96), rgba(7, 9, 13, 0.98)),
    #07090d;
  background-attachment: fixed;
}

.process-grid article {
  min-height: 330px;
  padding: 24px 22px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(245, 247, 251, 0.06), rgba(245, 247, 251, 0.018)),
    rgba(14, 18, 27, 0.7);
}

.process-grid h3 {
  margin: 50px 0 16px;
  font-size: 22px;
  line-height: 1.18;
}

.process-grid p,
.about-heading p,
.about-copy p,
.about-copy li {
  color: var(--muted);
  line-height: 1.75;
}

.about-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.about-heading {
  display: grid;
  gap: 22px;
}

.about-title-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: end;
}

.about-heading > p {
  max-width: none;
  margin: 0;
  font-size: 17px;
  white-space: nowrap;
}

.capability-label {
  justify-self: end;
  margin: 0 0 10px;
  white-space: nowrap;
}

.about-section .capability-matrix {
  grid-column: 1 / -1;
  margin-top: clamp(8px, 1.8vw, 22px);
}

.about-copy {
  padding-top: 14px;
}

.about-copy p {
  margin: 0 0 24px;
  font-size: 17px;
}

.about-copy ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.about-copy li {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  font-weight: 800;
}

.footer {
  display: grid;
  justify-items: center;
  gap: 16px;
  min-height: 360px;
  align-content: center;
  text-align: center;
  background:
    radial-gradient(circle at 20% 0%, rgba(142, 181, 255, 0.16), transparent 26%),
    #05070b;
  color: var(--ink);
}

.footer h2 {
  font-size: clamp(30px, 4.2vw, 56px);
}

.footer .reveal-item {
  opacity: 1;
  transform: none;
  transition: none;
}

.reveal-item {
  opacity: 0;
  transform: translate3d(0, 86px, 0) skewY(2.4deg);
  transition: opacity 860ms ease, transform 1040ms cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.reveal-item.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) skewY(0deg);
}

.reveal-item.reveal-left {
  transform: translate3d(-92px, 72px, 0) skewY(2deg);
}

.reveal-item.reveal-right {
  transform: translate3d(92px, 72px, 0) skewY(-2deg);
}

.reveal-item.reveal-left.is-visible,
.reveal-item.reveal-right.is-visible {
  transform: translate3d(0, 0, 0) skewY(0deg);
}

.type-token {
  display: inline-block;
  white-space: nowrap;
}

.type-char {
  display: inline-block;
  opacity: 0;
  filter: blur(5px);
  transform: translate3d(0, 0.32em, 0);
}

.type-sequence.is-typing .type-char {
  animation: typeCharacter 620ms cubic-bezier(0.16, 1, 0.3, 1) var(--char-delay, 0ms) forwards;
}

@keyframes typeCharacter {
  to {
    opacity: 1;
    filter: blur(0);
    transform: translate3d(0, 0, 0);
  }
}

.footer .reveal-item,
.footer .reveal-item.reveal-left,
.footer .reveal-item.reveal-right {
  opacity: 1;
  transform: none;
  transition: none;
}

.footer-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0 22px;
  max-width: 1100px;
  margin: 10px auto 0;
  padding: 16px 0;
  border-top: 1px solid rgba(245, 247, 251, 0.16);
  border-bottom: 1px solid rgba(245, 247, 251, 0.16);
  color: rgba(245, 247, 251, 0.9);
  font-size: 16px;
  line-height: 1.8;
  text-align: left;
}

.footer-contact span,
.footer-contact a,
.footer-contact b {
  font-weight: 500;
}

.footer-contact span {
  color: var(--acid);
}

.footer-contact span:not(:first-child)::before {
  content: "";
  display: inline-block;
  width: 1px;
  height: 22px;
  margin: 0 22px 0 0;
  background: rgba(245, 247, 251, 0.24);
  vertical-align: middle;
}

.copyright {
  position: absolute;
  right: var(--page-gutter);
  bottom: 32px;
  left: var(--page-gutter);
  margin: 0;
  color: rgba(243, 241, 235, 0.56);
  font-size: 13px;
}

.project-card.is-hidden {
  display: none;
}

.preview-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  grid-template-rows: 68px minmax(0, 1fr);
  background: #05070b;
  color: #f5f7fb;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

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

.modal-nav {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(18px, 4vw, 48px);
  border-bottom: 1px solid rgba(245, 247, 251, 0.12);
  background: rgba(14, 16, 21, 0.96);
  backdrop-filter: blur(18px);
}

.modal-close {
  position: static;
  width: auto;
  height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(245, 242, 235, 0.18);
  border-radius: 999px;
  background: rgba(245, 247, 251, 0.06);
  color: #f5f7fb;
  cursor: pointer;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
}

.modal-source {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(142, 181, 255, 0.42);
  border-radius: 999px;
  background: rgba(142, 181, 255, 0.1);
  color: #f5f7fb;
  font-size: 14px;
  font-weight: 800;
}

.modal-source[hidden] {
  display: none;
}

.case-detail {
  overflow-y: auto;
  padding: clamp(32px, 5vw, 72px) clamp(18px, 6vw, 72px) clamp(64px, 8vw, 112px);
  background:
    radial-gradient(circle at 85% 5%, rgba(142, 181, 255, 0.13), transparent 28%),
    #07090d;
}

.case-detail-hero,
.case-value,
.case-context,
.case-results,
.case-evidence {
  width: min(1280px, 100%);
  margin-inline: auto;
}

.case-detail-hero {
  display: grid;
  grid-template-columns: minmax(290px, 0.78fr) minmax(380px, 1fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}

.case-kicker,
.case-value > span,
.case-context > section > span,
.case-results header > span,
.case-evidence header > div > span {
  display: block;
  margin: 0 0 14px;
  color: #8eb5ff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.case-detail-heading h2 {
  max-width: 560px;
  margin: 0;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.08;
  letter-spacing: 0;
}

.case-summary {
  max-width: 520px;
  margin: 20px 0 0;
  color: rgba(245, 247, 251, 0.68);
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.72;
}

.case-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 28px;
}

.case-tags span {
  padding: 8px 12px;
  border: 1px solid rgba(142, 181, 255, 0.2);
  border-radius: 999px;
  color: rgba(245, 247, 251, 0.78);
  font-size: 12px;
  font-weight: 700;
}

.case-media {
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(222, 231, 255, 0.14);
  border-radius: 32px;
  background: #0f1521;
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.3);
}

.case-media img,
.case-media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.case-value {
  margin-top: clamp(56px, 8vw, 86px);
  padding: clamp(28px, 4vw, 44px) 0;
  border-top: 1px solid rgba(245, 247, 251, 0.14);
  border-bottom: 1px solid rgba(245, 247, 251, 0.14);
}

.case-value p {
  max-width: none;
  margin: 0;
  color: rgba(245, 247, 251, 0.68);
  font-size: 16px;
  line-height: 1.8;
}

.case-context {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 5vw, 72px);
  margin-top: clamp(44px, 6vw, 72px);
}

.case-value h3,
.case-context h3,
.case-results h3,
.case-evidence h3 {
  margin: 0 0 16px;
  font-size: clamp(23px, 2vw, 28px);
  line-height: 1.25;
}

.case-context p {
  max-width: 520px;
  margin: 0;
  color: rgba(245, 247, 251, 0.68);
  font-size: 16px;
  line-height: 1.8;
}

.case-results,
.case-evidence {
  margin-top: clamp(54px, 8vw, 86px);
}

.case-evidence:focus,
.case-evidence:focus-visible {
  outline: 0;
}

.case-results header,
.case-evidence header {
  margin-bottom: 30px;
}

.case-evidence header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.case-fullscreen {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(142, 181, 255, 0.4);
  border-radius: 999px;
  background: rgba(142, 181, 255, 0.08);
  color: #f5f7fb;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  transition: background 200ms ease, border-color 200ms ease;
}

.case-fullscreen:hover {
  border-color: rgba(142, 181, 255, 0.7);
  background: rgba(142, 181, 255, 0.14);
}

.case-fullscreen[hidden] {
  display: none;
}

.case-fullscreen svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.case-fullscreen span {
  display: inline;
  margin: 0;
  color: #f5f7fb;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: 0;
  line-height: 1;
  text-transform: none;
}

.case-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid rgba(245, 247, 251, 0.14);
}

.case-metrics article {
  min-height: 196px;
  padding: 28px clamp(16px, 3vw, 30px) 22px 0;
  border-bottom: 1px solid rgba(245, 247, 251, 0.14);
}

.case-metrics article:not(:first-child) {
  padding-left: clamp(16px, 3vw, 30px);
  border-left: 1px solid rgba(245, 247, 251, 0.14);
}

.case-metrics strong {
  display: block;
  margin-bottom: 18px;
  color: #d8c68a;
  font-size: clamp(27px, 3vw, 40px);
  line-height: 1.08;
}

.case-metrics h4 {
  margin: 0 0 12px;
  font-size: 17px;
}

.case-metrics p {
  margin: 0;
  color: rgba(245, 247, 251, 0.62);
  font-size: 14px;
  line-height: 1.7;
}

.case-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 22px);
}

.case-gallery figure {
  overflow: hidden;
  margin: 0;
  aspect-ratio: 16 / 10;
  border-radius: 20px;
  background: #10151f;
}

.case-gallery img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-gallery.is-document-preview {
  display: block;
  container-type: inline-size;
}

.case-pdf-preview {
  --pdf-toolbar-height: 64px;
  position: relative;
  display: flex;
  width: 100%;
  height: min(calc((100vw - 80px) * 9 / 16 + var(--pdf-toolbar-height)), 86svh);
  height: min(calc(100cqw * 9 / 16 + var(--pdf-toolbar-height)), 86svh);
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(245, 247, 251, 0.12);
  border-radius: 32px;
  background: #05070b;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.28);
  outline: 0;
}

.case-pdf-preview.is-native-pdf {
  display: block;
}

.case-pdf-preview object,
.case-pdf-preview iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #10151f;
  pointer-events: auto;
  overflow-x: hidden;
}

.case-pdf-preview iframe:fullscreen,
.case-pdf-preview iframe:-webkit-full-screen {
  width: 100vw;
  height: 100vh;
  background: #fff;
}

.pdf-presentation-stage {
  position: fixed;
  inset: 0;
  z-index: -1;
  display: none;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #000;
  outline: 0;
  opacity: 0;
  pointer-events: none;
}

.pdf-presentation-stage canvas {
  display: block;
  max-width: calc(100vw - 48px);
  max-height: calc(100vh - 48px);
  background: #fff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.pdf-presentation-stage iframe {
  display: none;
  width: 100vw;
  height: 100vh;
  border: 0;
  background: #000;
}

.pdf-presentation-stage.is-native canvas {
  display: none;
}

.pdf-presentation-stage.is-native iframe {
  display: block;
}

.pdf-presentation-page {
  position: fixed;
  top: 20px;
  right: 24px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  pointer-events: none;
}

.pdf-presentation-stage:fullscreen,
.pdf-presentation-stage:-webkit-full-screen,
.case-evidence.is-expanded .pdf-presentation-stage {
  z-index: 100;
  display: flex;
  opacity: 1;
  pointer-events: auto;
}

body.is-case-expanded {
  overflow: hidden;
}

.case-evidence.is-expanded {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: clamp(14px, 2vw, 22px);
  width: 100vw;
  max-width: none;
  height: 100svh;
  margin: 0;
  padding: clamp(16px, 2.2vw, 28px);
  background: #05070b;
  outline: 0;
}

.case-evidence.is-expanded .case-gallery,
.case-evidence.is-expanded .case-pdf-preview {
  height: 100%;
  min-height: 0;
}

.case-evidence.is-expanded .case-pdf-preview {
  aspect-ratio: auto;
  border-radius: 18px;
  box-shadow: none;
}

.case-evidence.is-expanded .case-pdf-preview object,
.case-evidence.is-expanded .case-pdf-preview iframe,
.case-evidence:fullscreen .case-pdf-preview object,
.case-evidence:fullscreen .case-pdf-preview iframe,
.case-evidence:-webkit-full-screen .case-pdf-preview object,
.case-evidence:-webkit-full-screen .case-pdf-preview iframe {
  width: 100%;
  height: 100%;
}

.case-evidence:fullscreen,
.case-evidence:-webkit-full-screen {
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  gap: 0;
  width: 100%;
  max-width: none;
  height: 100vh;
  margin: 0;
  padding: 0;
  background: #05070b;
  outline: 0;
}

.case-evidence:fullscreen header,
.case-evidence:-webkit-full-screen header {
  display: none;
}

.case-evidence:fullscreen .case-gallery,
.case-evidence:-webkit-full-screen .case-gallery,
.case-evidence:fullscreen .case-pdf-preview,
.case-evidence:-webkit-full-screen .case-pdf-preview {
  height: 100%;
  min-height: 0;
}

.case-evidence:fullscreen .case-pdf-preview,
.case-evidence:-webkit-full-screen .case-pdf-preview {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

@media (max-width: 980px) {
  .hero-backdrop::before {
    inset: 0;
    width: auto;
    height: auto;
    opacity: 1;
  }

  .hero-showcase {
    inset: auto -18vw 4vh auto;
    width: min(760px, 82vw);
    opacity: 0.42;
  }

  .hero-orbit {
    right: -12vw;
    width: min(520px, 58vw);
    opacity: 0.54;
  }

  .sheet-one {
    top: auto;
    right: -14vw;
    bottom: 10vh;
    width: 68vw;
    min-height: 250px;
    opacity: 0.72;
  }

  .sheet-two,
  .sheet-three {
    display: none;
  }

  .project-card.wide,
  .case-study,
  .about-section {
    grid-template-columns: 1fr;
  }

  .wide .project-visual {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

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

  .capability-matrix {
    gap: 12px;
  }

  .experience-layout {
    grid-template-columns: 1fr;
  }

  .profile-card {
    position: relative;
    top: auto;
  }

  .hero h1 {
    max-width: 680px;
    font-size: 42px;
  }

  .hero-position {
    font-size: clamp(34px, 5.3vw, 48px);
  }

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

  .case-detail-heading {
    order: 1;
  }

  .case-media {
    order: 0;
  }

  .case-value {
    padding-block: 28px;
  }

  .section-heading h2,
  .case-study h2,
  .about-section h2,
  .footer h2 {
    font-size: 38px;
  }

  .about-heading p {
    white-space: normal;
  }
}

@media (max-width: 1180px) {
  .project-grid {
    grid-template-columns: 1fr;
    width: 100%;
    overflow: hidden;
  }

  .project-card,
  .project-card:nth-child(4n + 3),
  .project-card:nth-child(4n + 3):hover {
    transform: none;
  }

  .project-card:hover .project-visual {
    transform: none;
  }

  .project-info h3,
  .project-info p {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: break-word;
  }
}

@media (max-width: 680px) {
  .site-header {
    padding: 0 18px;
  }

  .nav-links {
    gap: 8px;
  }

  .nav-links a {
    font-size: 11px;
  }

  .brand span:last-child {
    display: none;
  }

  .hero {
    min-height: 88svh;
  }

  .hero-video {
    object-position: 62% center;
    transform: translate3d(0, var(--hero-shift, 0px), 0) scale(1.08);
  }

  .hero-showcase {
    inset: auto -36vw 3vh auto;
    width: 118vw;
    opacity: 0.24;
  }

  .hero-orbit {
    right: -32vw;
    width: 104vw;
    opacity: 0.22;
  }

  .showcase-side {
    display: none;
  }

  .hero-content {
    width: calc(100% - 36px);
    margin-left: 18px;
    padding: 56px 0 112px;
  }

  .hero h1 {
    font-size: 30px;
    line-height: 1.08;
  }

  .hero-position {
    margin-bottom: 24px;
    font-size: 30px;
    line-height: 1.24;
  }

  .hero-copy {
    max-width: 100%;
    font-size: 14px;
    line-height: 1.68;
  }

  .section,
  .case-study,
  .about-section,
  .footer {
    padding: 56px 18px;
  }

  .section-heading h2,
  .case-study h2,
  .about-section h2,
  .footer h2 {
    font-size: 32px;
    line-height: 1.12;
  }

  .section-heading {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }

  .work-section {
    padding-top: 48px;
  }

  .work-section .section-heading {
    justify-items: stretch;
    gap: 12px 16px;
    margin-bottom: 28px;
    text-align: left;
    transform: none !important;
  }

  .capability-matrix {
    justify-content: center;
  }

  .work-section .section-heading .eyebrow {
    justify-self: end;
    order: 0;
    margin: 0 0 8px;
  }

  .work-section .filters {
    justify-content: flex-start;
    margin-top: 10px;
  }

  .reference-strip {
    grid-template-columns: 1fr;
    padding: 20px 18px;
  }

  .project-grid {
    grid-template-columns: 1fr;
    width: 100%;
    overflow: hidden;
  }

  .project-card,
  .project-card:nth-child(4n + 3),
  .project-card:nth-child(4n + 3):hover {
    transform: none;
  }

  .project-card {
    width: 100%;
    min-width: 0;
    min-height: auto;
  }

  .project-card:hover .project-visual {
    transform: none;
  }

  .project-visual,
  .case-media {
    width: 100%;
    max-width: 100%;
    border-radius: 32px;
  }

  .project-info {
    min-width: 0;
  }

  .project-info h3,
  .project-info p {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: break-word;
  }

  .modal-nav {
    gap: 10px;
    padding: 0 12px;
  }

  .modal-close,
  .modal-source {
    padding: 0 12px;
    font-size: 12px;
  }

  .case-detail {
    padding-top: 22px;
  }

  .case-detail-heading h2 {
    font-size: 30px;
  }

  .case-context,
  .case-metrics,
  .case-gallery {
    grid-template-columns: 1fr;
  }

  .case-metrics article:not(:first-child) {
    padding-left: 0;
    border-left: 0;
  }

  .case-evidence header {
    align-items: center;
  }

  .case-fullscreen {
    min-height: 40px;
    padding-inline: 13px;
  }

  .case-pdf-preview {
    height: min(calc(100cqw * 9 / 16 + var(--pdf-toolbar-height)), 86svh);
    border-radius: 32px;
  }

  .shot-gallery {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }

  .shot-gallery img:first-child {
    grid-row: auto;
  }

  .shot-gallery img {
    height: auto;
    max-height: none;
  }

  .dashboard-window {
    inset: 38px 22px;
    box-shadow: 10px 10px 0 var(--ink);
  }

  .app-stack {
    transform: scale(0.85);
    transform-origin: top center;
  }

  .case-timeline div {
    grid-template-columns: 42px 1fr;
  }

  .case-timeline p {
    grid-column: 2;
  }

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

  .footer-contact {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    justify-content: start;
    justify-items: start;
    gap: 10px 18px;
    margin: 10px 0 0;
    text-align: left;
  }

  .footer-contact span:not(:first-child)::before {
    content: none;
  }

  .capability-matrix {
    gap: 10px;
  }

  .experience-timeline article {
    grid-template-columns: 32px 54px minmax(180px, 1fr);
    gap: 16px;
  }

  .company-mark {
    width: 46px;
    height: 46px;
    margin-left: 0;
    border-radius: 14px;
  }

  .experience-timeline h3 {
    font-size: 22px;
    word-break: keep-all;
    overflow-wrap: normal;
  }

  .experience-timeline h3 span {
    display: inline;
    margin: 0 0 0 10px;
    font-size: 15px;
    white-space: nowrap;
  }

  .experience-timeline h3 strong {
    white-space: nowrap;
  }

  .reveal-item,
  .reveal-item.reveal-left,
  .reveal-item.reveal-right {
    transform: translate3d(0, 26px, 0);
  }

  .process-grid article {
    min-height: 220px;
  }

  .project-info h3 {
    font-size: 26px;
  }

  .project-info dl {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .nav-links a {
    font-size: 10px;
  }

  .brand-avatar {
    width: 36px;
    height: 36px;
  }

  .hero h1 {
    font-size: 34px;
  }

}

@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-item {
    opacity: 1 !important;
    transform: none !important;
  }

  .type-char {
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
    animation: none !important;
  }
}
