:root {
  --black: #05070b;
  --charcoal: #0b111a;
  --charcoal-2: #111a25;
  --ink: #101827;
  --text: #f6f8ff;
  --muted: #aab7c9;
  --paper: #f5f7fb;
  --white: #ffffff;
  --blue: #2f80ff;
  --blue-2: #6eb6ff;
  --warm: #f3c766;
  --line: rgba(255, 255, 255, 0.18);
  --dark-line: rgba(13, 27, 42, 0.12);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.18);
  --max: 1220px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: clip;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

body.no-scroll,
body.is-loading {
  overflow: hidden;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

section {
  scroll-margin-top: 118px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  transform: translateY(-160%);
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--black);
  background: var(--white);
  font-weight: 800;
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.loader-wrap {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: grid;
  place-items: center;
  color: var(--white);
  background: #05070b;
  transition: opacity 0.7s var(--ease), visibility 0.7s var(--ease);
}

body.is-ready .loader-wrap {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.7s var(--ease), visibility 0s linear 0.7s;
}

.loader-wrap-heading {
  display: grid;
  gap: 14px;
  text-align: center;
}

.load-text {
  display: flex;
  justify-content: center;
  gap: clamp(7px, 1.1vw, 18px);
  overflow: hidden;
  color: rgba(237, 246, 255, 0.86);
  font-size: clamp(1.4rem, 4.8vw, 5rem);
  font-weight: 900;
  line-height: 0.9;
}

.load-text span {
  display: inline-block;
  animation: loader-letter 1.15s var(--ease-soft) both;
}

.load-text:nth-child(2) span {
  color: var(--blue-2);
  animation-delay: 0.1s;
}

.load-text span:nth-child(2) { animation-delay: 0.08s; }
.load-text span:nth-child(3) { animation-delay: 0.14s; }
.load-text span:nth-child(4) { animation-delay: 0.2s; }
.load-text span:nth-child(5) { animation-delay: 0.26s; }
.load-text span:nth-child(6) { animation-delay: 0.32s; }
.load-text span:nth-child(7) { animation-delay: 0.38s; }

@keyframes loader-letter {
  from {
    opacity: 0;
    transform: translateY(110%) rotate(3deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotate(0deg);
  }
}

.custom-cursor,
.progress-wrap {
  display: none;
}

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: auto minmax(340px, 1fr) auto auto;
  align-items: center;
  gap: 22px;
  padding: 28px max(24px, calc((100vw - var(--max)) / 2));
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(5, 7, 11, 0.82), rgba(5, 7, 11, 0.48));
  backdrop-filter: blur(16px);
  transition: padding 0.35s var(--ease), background 0.35s var(--ease), border-color 0.35s var(--ease);
}

.site-header.is-scrolled {
  padding-top: 16px;
  padding-bottom: 16px;
  border-color: rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, rgba(5, 7, 11, 0.94), rgba(5, 7, 11, 0.68));
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-width: 0;
  color: var(--white);
  text-decoration: none;
}

.brand-logo-plate {
  display: inline-grid;
  width: clamp(214px, 21vw, 294px);
  height: 64px;
  place-items: center;
  overflow: hidden;
  padding: 6px 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
}

.brand-logo-plate img {
  justify-self: center;
  align-self: center;
  display: block;
  width: auto;
  height: calc(100% - 8px);
  max-width: calc(100% - 8px);
  object-fit: contain;
  transform: translateY(-4px);
}

.main-nav {
  justify-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  min-height: 58px;
  padding: 5px;
  border: 1px solid rgba(210, 224, 247, 0.28);
  border-radius: 999px;
  background: rgba(13, 21, 29, 0.34);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(18px);
}

.main-nav a {
  min-width: 104px;
  padding: 14px 18px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.98rem;
  font-weight: 760;
  text-align: center;
  text-decoration: none;
  transition: color 0.25s var(--ease), background 0.25s var(--ease), transform 0.25s var(--ease);
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  outline: none;
  transform: translateY(-1px);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 58px;
  padding: 0 26px;
  border-radius: 999px;
  color: #111;
  background: var(--white);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
  font-weight: 850;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}

.header-cta:hover,
.header-cta:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 22px 58px rgba(47, 128, 255, 0.26);
}

.header-cta svg,
.button svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.menu-button {
  display: inline-grid;
  width: 46px;
  height: 46px;
  padding: 0;
  place-items: center;
  border: 0;
  color: var(--white);
  background: transparent;
  cursor: pointer;
  transition: transform 0.3s var(--ease);
}

.menu-button:hover,
.menu-button:focus-visible {
  transform: scale(1.06);
}

.menu-button span {
  display: block;
  width: 26px;
  height: 2px;
  margin: 3px 0;
  background: currentColor;
}

.hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  overflow: clip;
  overflow-clip-margin: 140px;
  color: var(--white);
  background: var(--black);
}

.hero-image,
.hero-scrim {
  position: absolute;
  inset: 0;
}

.hero-image {
  background-image: url("assets/imaginethis-hero-portrait.png");
  background-position: center right;
  background-size: cover;
  transform: scale(1.035);
  will-change: transform;
}

.hero-scrim {
  background:
    linear-gradient(90deg, rgba(3, 7, 12, 0.96) 0%, rgba(4, 8, 13, 0.82) 34%, rgba(3, 6, 11, 0.18) 70%, rgba(3, 6, 11, 0.2) 100%),
    linear-gradient(180deg, rgba(3, 7, 12, 0.32) 0%, rgba(3, 7, 12, 0.02) 54%, rgba(3, 7, 12, 0.86) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  align-self: center;
  width: min(760px, calc(100vw - 48px));
  padding: 118px 0 168px max(24px, calc((100vw - var(--max)) / 2));
}

.hero h1 {
  margin: 0;
  color: rgba(231, 241, 255, 0.82);
  font-size: clamp(4.35rem, 7.7vw, 7rem);
  font-weight: 900;
  line-height: 0.84;
  letter-spacing: 0;
}

.hero h1 span {
  display: block;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.9), rgba(111, 178, 255, 0.72) 54%, rgba(255, 255, 255, 0.35));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 18px 58px rgba(0, 0, 0, 0.42);
}

.js .hero h1 span,
.js .hero-copy,
.js .hero-actions,
.js .hero-preview {
  opacity: 0;
  transform: translateY(38px);
  transition: opacity 0.9s var(--ease-soft), transform 0.9s var(--ease-soft);
}

.js body.is-ready .hero h1 span,
.js body.is-ready .hero-copy,
.js body.is-ready .hero-actions,
.js body.is-ready .hero-preview {
  opacity: 1;
  transform: translateY(0);
}

.js body.is-ready .hero h1 span:nth-child(2) { transition-delay: 0.08s; }
.js body.is-ready .hero h1 span:nth-child(3) { transition-delay: 0.16s; }
.js body.is-ready .hero h1 span:nth-child(4) { transition-delay: 0.24s; }
.js body.is-ready .hero h1 span:nth-child(5) { transition-delay: 0.32s; }
.js body.is-ready .hero-copy { transition-delay: 0.44s; }
.js body.is-ready .hero-actions { transition-delay: 0.54s; }
.js body.is-ready .hero-preview { transition-delay: 0.66s; }

.hero-copy {
  max-width: 590px;
  margin: 28px 0 0;
  color: rgba(238, 244, 255, 0.76);
  font-size: clamp(1rem, 1.7vw, 1.36rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 54px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 0.96rem;
  font-weight: 850;
  text-decoration: none;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
}

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

.button-blue {
  color: var(--white);
  background: linear-gradient(135deg, #2467dc, #458fff);
  box-shadow: 0 22px 50px rgba(47, 128, 255, 0.28);
}

.button-ghost {
  color: var(--white);
  background: transparent;
}

.button-ghost svg {
  width: 42px;
  height: 42px;
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
}

.button-light {
  color: var(--black);
  background: var(--white);
}

.hero-preview {
  position: absolute;
  right: max(24px, calc((100vw - var(--max)) / 2));
  bottom: -124px;
  left: max(24px, calc((100vw - var(--max)) / 2));
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr 1.5fr 1fr;
  gap: 28px;
  min-height: 116px;
  padding: 28px 34px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-bottom: 0;
  border-radius: 34px 34px 0 0;
  background: rgba(12, 20, 27, 0.82);
  backdrop-filter: blur(22px);
}

.hero-preview div {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--blue-2);
  font-weight: 850;
}

.line {
  width: 32px;
  height: 4px;
  border-radius: 999px;
  background: var(--blue);
}

.hero-preview p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

.hero-preview ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-preview li {
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.8rem;
  font-weight: 800;
}

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

.motion-section {
  position: relative;
}

.section-lift {
  z-index: 2;
  margin-top: -84px;
  padding-top: 132px;
  border-radius: 58px 58px 0 0;
  box-shadow: 0 -28px 80px rgba(0, 0, 0, 0.28);
}

.js .reveal-item {
  opacity: 0;
  transform: translateY(56px);
  transition: opacity 0.85s var(--ease-soft), transform 0.85s var(--ease-soft);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

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

.section-intro {
  max-width: 880px;
  margin-bottom: 36px;
}

.section-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-mark::before {
  display: inline-block;
  width: 30px;
  height: 4px;
  border-radius: 999px;
  content: "";
  background: currentColor;
}

h2,
h3,
p {
  letter-spacing: 0;
}

h2,
h3 {
  margin: 0;
  line-height: 1;
}

h2 {
  max-width: 900px;
  font-size: clamp(2.6rem, 5.4vw, 5.5rem);
  font-weight: 900;
}

h3 {
  font-size: clamp(1.35rem, 2.1vw, 2rem);
}

.section-intro p,
.split-intro > p {
  margin: 22px 0 0;
  color: #526073;
  font-size: 1.08rem;
}

.split-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 42px;
  max-width: none;
  align-items: end;
}

.creative {
  color: var(--white);
  background:
    radial-gradient(circle at 86% 0%, rgba(47, 128, 255, 0.16), transparent 34%),
    linear-gradient(180deg, #070b10 0%, #0a1018 72%, #0d151f 100%);
}

.creative h2 {
  color: var(--white);
}

.creative .section-intro p {
  color: rgba(239, 246, 255, 0.68);
}

.price-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  margin: 26px 0 44px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
}

.price-strip article {
  min-height: 168px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.055);
  transition: transform 0.35s var(--ease), background 0.35s var(--ease), border-color 0.35s var(--ease);
}

.price-strip article:hover {
  background: rgba(255, 255, 255, 0.09);
  transform: translateY(-3px);
}

.price-strip span {
  display: block;
  color: var(--blue);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.price-strip strong {
  display: block;
  margin-top: 12px;
  color: var(--white);
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  line-height: 0.9;
}

.price-strip p {
  margin: 18px 0 0;
  color: rgba(239, 246, 255, 0.64);
}

.gallery-shell {
  margin-top: 42px;
  padding: 30px;
  border-radius: 8px;
  color: var(--white);
  background: var(--charcoal);
  transition: transform 0.45s var(--ease), border-color 0.45s var(--ease), box-shadow 0.45s var(--ease);
}

.gallery-shell-light {
  color: var(--ink);
  background: #eef3fb;
}

.logo-showcase {
  width: 100vw;
  margin-right: calc(50% - 50vw);
  margin-left: calc(50% - 50vw);
  padding: 0 max(16px, calc((100vw - 1320px) / 2)) 38px;
  scroll-margin-top: 118px;
  border-radius: 0;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(95, 0, 20, 0.86), rgba(5, 7, 11, 0.98) 16%, rgba(5, 7, 11, 0.98) 84%, rgba(95, 0, 20, 0.86));
  box-shadow: none;
}

.logo-showcase .gallery-head {
  min-height: 68px;
  margin: 0;
  padding: 18px 22px;
  color: var(--white);
  background: #05070b;
}

.logo-showcase .gallery-head h3 {
  font-size: 1.15rem;
  line-height: 1;
  text-transform: uppercase;
}

.logo-showcase .gallery-head p {
  max-width: 420px;
  font-size: 0.92rem;
}

.gallery-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.gallery-head p {
  max-width: 360px;
  margin: 0;
  color: currentColor;
  opacity: 0.68;
}

.media-rail {
  display: grid;
  grid-auto-columns: minmax(210px, 250px);
  grid-auto-flow: column;
  gap: 18px;
  overflow-x: auto;
  padding: 4px 4px 18px;
  scroll-snap-type: x proximity;
  scrollbar-color: var(--blue) transparent;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
}

.media-rail.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
}

.gallery-item {
  scroll-snap-align: start;
  min-height: 320px;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.2);
  transition: transform 0.45s var(--ease), border-color 0.45s var(--ease), box-shadow 0.45s var(--ease);
}

.gallery-shell-light .gallery-item {
  border-color: rgba(17, 29, 44, 0.1);
  background: var(--white);
  box-shadow: 0 18px 45px rgba(15, 28, 44, 0.09);
}

.gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  user-select: none;
  transition: transform 0.8s var(--ease);
  -webkit-user-drag: none;
}

.gallery-item:hover {
  border-color: rgba(110, 182, 255, 0.44);
  transform: translateY(-5px);
  box-shadow: 0 26px 64px rgba(0, 0, 0, 0.28);
}

.gallery-item:hover img {
  transform: scale(1.045);
}

.logo-rail {
  grid-auto-columns: minmax(190px, 220px);
}

.logo-item {
  display: grid;
  place-items: center;
  min-height: 220px;
  padding: 18px;
}

.logo-item img {
  max-height: 170px;
  min-height: 0;
  object-fit: contain;
}

.logo-mosaic {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top: 0;
  background: #080b10;
}

.logo-mosaic .logo-item {
  position: relative;
  min-height: 0;
  aspect-ratio: 1 / 1.05;
  padding: clamp(14px, 2.1vw, 30px);
  border: 0;
  border-radius: 0;
  color: var(--white);
  background:
    radial-gradient(circle at 50% 38%, rgba(255, 255, 255, 0.1), transparent 54%),
    #101722;
  box-shadow: none;
  cursor: pointer;
  isolation: isolate;
}

.logo-mosaic .logo-item:nth-child(6n + 2) {
  background:
    radial-gradient(circle at 44% 34%, rgba(47, 128, 255, 0.22), transparent 58%),
    #07111f;
}

.logo-mosaic .logo-item:nth-child(6n + 3) {
  background:
    radial-gradient(circle at 56% 32%, rgba(243, 199, 102, 0.2), transparent 52%),
    #15100c;
}

.logo-mosaic .logo-item:nth-child(6n + 4) {
  background:
    radial-gradient(circle at 45% 45%, rgba(95, 0, 20, 0.28), transparent 60%),
    #120910;
}

.logo-mosaic .logo-item:nth-child(6n + 5) {
  background:
    radial-gradient(circle at 52% 40%, rgba(110, 182, 255, 0.2), transparent 55%),
    #10141a;
}

.logo-mosaic .logo-item::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background: rgba(3, 7, 12, 0.58);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}

.logo-mosaic .logo-item img {
  position: relative;
  z-index: 0;
  width: 100%;
  height: 100%;
  max-height: none;
  min-height: 0;
  object-fit: contain;
  filter: saturate(0.96) contrast(1.03);
  transition: transform 0.55s var(--ease), opacity 0.35s var(--ease), filter 0.35s var(--ease);
}

.logo-mosaic .logo-item span {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  color: var(--white);
  background: rgba(5, 7, 11, 0.58);
  font-size: 0.74rem;
  font-weight: 900;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.28s var(--ease), transform 0.28s var(--ease);
  backdrop-filter: blur(10px);
}

.logo-mosaic:hover .logo-item:not(:hover) img {
  opacity: 0.42;
  transform: scale(0.98);
  filter: grayscale(0.25) saturate(0.75);
}

.logo-mosaic .logo-item:hover,
.logo-mosaic .logo-item:focus-visible {
  z-index: 3;
  transform: none;
  box-shadow: none;
  outline-offset: -4px;
}

.logo-mosaic .logo-item:hover::before,
.logo-mosaic .logo-item:focus-visible::before {
  opacity: 1;
}

.logo-mosaic .logo-item:hover img,
.logo-mosaic .logo-item:focus-visible img {
  opacity: 1;
  transform: scale(1.1);
  filter: saturate(1.18) contrast(1.08);
}

.logo-mosaic .logo-item:hover span,
.logo-mosaic .logo-item:focus-visible span {
  opacity: 1;
  transform: translateY(0);
}

.studio {
  color: var(--white);
  background: linear-gradient(180deg, var(--charcoal) 0%, #080d14 100%);
}

.studio .section-intro p,
.studio .split-intro > p {
  color: rgba(255, 255, 255, 0.68);
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
}

.capability-grid article {
  min-height: 310px;
  padding: 30px;
  background: rgba(255, 255, 255, 0.05);
  transition: transform 0.35s var(--ease), background 0.35s var(--ease);
}

.capability-grid article:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-4px);
}

.capability-grid span,
.project-card span {
  display: inline-flex;
  margin-bottom: 28px;
  color: var(--blue-2);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.capability-grid p {
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.68);
}

.work {
  background: var(--paper);
}

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

.project-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 520px;
  border: 1px solid var(--dark-line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 18px 45px rgba(14, 27, 43, 0.06);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.project-card:hover {
  border-color: rgba(47, 128, 255, 0.32);
  transform: translateY(-6px);
  box-shadow: 0 24px 68px rgba(14, 27, 43, 0.12);
}

.project-media {
  position: relative;
  display: block;
  aspect-ratio: 1.45 / 1;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(47, 128, 255, 0.16), rgba(5, 7, 11, 0.04)),
    #e8edf5;
  text-decoration: none;
}

.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.5s var(--ease), filter 0.5s var(--ease);
}

.project-card:hover .project-media img {
  transform: scale(1.045);
  filter: saturate(1.06) contrast(1.02);
}

.project-media-fallback img {
  opacity: 0.34;
  filter: grayscale(0.2);
}

.project-copy {
  padding: 24px 24px 0;
}

.project-card p {
  margin: 18px 0 0;
  color: #536174;
}

.project-card footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: auto 24px 0;
  padding-top: 20px;
  padding-bottom: 24px;
  border-top: 1px solid var(--dark-line);
}

.project-card small {
  min-width: 0;
  color: #697586;
  font-weight: 760;
}

.project-card footer a,
.project-card footer em {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  color: var(--white);
  background: var(--charcoal);
  font-size: 0.84rem;
  font-style: normal;
  font-weight: 850;
  text-decoration: none;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease);
}

.project-card footer a:hover,
.project-card footer a:focus-visible {
  background: var(--blue);
  transform: translateY(-1px);
}

.project-media:hover,
.project-media:focus-visible {
  transform: none;
}

.websites {
  color: var(--white);
  background: #091019;
}

.websites .section-intro p {
  color: rgba(255, 255, 255, 0.68);
}

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

.website-grid a {
  position: relative;
  display: flex;
  min-height: 310px;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: var(--charcoal);
  text-decoration: none;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), background 0.35s var(--ease);
}

.website-grid a::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(180deg, rgba(5, 7, 11, 0.02) 0%, rgba(5, 7, 11, 0.38) 48%, rgba(5, 7, 11, 0.95) 100%),
    linear-gradient(135deg, rgba(47, 128, 255, 0.18), rgba(255, 255, 255, 0.02));
  transition: opacity 0.35s var(--ease);
}

.website-grid img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  opacity: 0.82;
  transition: transform 0.55s var(--ease), opacity 0.35s var(--ease), filter 0.35s var(--ease);
}

.website-grid a:hover,
.website-grid a:focus-visible {
  border-color: rgba(110, 182, 255, 0.42);
  transform: translateY(-5px);
}

.website-grid a:hover img,
.website-grid a:focus-visible img {
  opacity: 1;
  filter: saturate(1.08) contrast(1.03);
  transform: scale(1.045);
}

.website-grid span {
  position: relative;
  margin: 0 22px;
  color: var(--blue-2);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.website-grid strong {
  position: relative;
  display: block;
  margin: 12px 22px 0;
  font-size: 1.2rem;
  line-height: 1.15;
}

.website-grid small {
  position: relative;
  display: block;
  margin: 8px 22px 22px;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 760;
}

.website-card-fallback img {
  opacity: 0.32;
  filter: grayscale(0.15);
}

.case-body {
  background: var(--paper);
}

.case-main {
  background: var(--paper);
}

.case-hero {
  min-height: 760px;
  padding: 148px max(24px, calc((100vw - var(--max)) / 2)) 72px;
  color: var(--white);
  background:
    radial-gradient(circle at 78% 18%, rgba(47, 128, 255, 0.24), transparent 38%),
    linear-gradient(135deg, #05070b 0%, #09111c 54%, #111a25 100%);
}

.case-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(420px, 1.08fr);
  align-items: center;
  gap: 54px;
}

.case-back {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  margin-bottom: 28px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.82rem;
  font-weight: 850;
  text-decoration: none;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease);
}

.case-back:hover,
.case-back:focus-visible {
  border-color: rgba(110, 182, 255, 0.46);
  color: var(--white);
  transform: translateY(-1px);
}

.case-hero h1 {
  max-width: 680px;
  margin: 0;
  color: rgba(240, 246, 255, 0.94);
  font-size: clamp(3.9rem, 6.3vw, 6.4rem);
  font-weight: 920;
  letter-spacing: 0;
  line-height: 0.88;
}

.case-lede {
  max-width: 720px;
  margin: 28px 0 0;
  color: rgba(238, 244, 255, 0.78);
  font-size: clamp(1.08rem, 1.6vw, 1.35rem);
}

.case-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  margin-top: 34px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
}

.case-meta div {
  min-height: 112px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.06);
}

.case-meta span {
  display: block;
  color: var(--blue-2);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.case-meta strong {
  display: block;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.98rem;
  line-height: 1.25;
}

.case-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 30px;
}

.case-ghost {
  border-color: rgba(255, 255, 255, 0.2);
}

.case-hero-media {
  position: relative;
  overflow: hidden;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 34px 88px rgba(0, 0, 0, 0.36);
}

.case-hero-media::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.case-hero-media img {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: contain;
  object-position: top center;
  background: #f7f9fc;
}

.case-hero-media-fallback img {
  opacity: 0.36;
  filter: grayscale(0.1);
}

.case-content {
  display: grid;
  gap: 74px;
}

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

.case-panel {
  min-height: 250px;
  padding: 28px;
  border: 1px solid var(--dark-line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 18px 45px rgba(14, 27, 43, 0.06);
}

.case-panel span,
.case-detail-grid span,
.case-cta-band span,
.related-grid span {
  display: inline-flex;
  margin-bottom: 20px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.case-panel p {
  margin: 0;
  color: #425066;
  font-size: 1.03rem;
}

.case-section {
  display: grid;
  gap: 28px;
}

.case-section-head {
  max-width: 760px;
}

.case-section h2,
.case-cta-band h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2.6rem, 5vw, 5.1rem);
  line-height: 0.93;
}

.case-detail-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.case-detail-grid article {
  min-height: 230px;
  padding: 24px;
  border: 1px solid var(--dark-line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 16px 40px rgba(14, 27, 43, 0.05);
}

.case-detail-grid p {
  margin: 0;
  color: #4a596d;
}

.case-two-column {
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.62fr);
  align-items: start;
  padding: 44px;
  border: 1px solid var(--dark-line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 22px 60px rgba(14, 27, 43, 0.08);
}

.case-two-column ul,
.case-scope ul {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.case-two-column li,
.case-scope li {
  position: relative;
  padding-left: 22px;
  color: #425066;
}

.case-two-column li::before,
.case-scope li::before {
  position: absolute;
  top: 0.68em;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  content: "";
  background: var(--blue);
}

.case-scope {
  padding: 28px;
  border-radius: 8px;
  color: var(--white);
  background:
    radial-gradient(circle at top right, rgba(110, 182, 255, 0.28), transparent 40%),
    var(--charcoal);
}

.case-scope h3 {
  margin: 0;
  color: var(--white);
  font-size: 1.45rem;
}

.case-scope li {
  color: rgba(255, 255, 255, 0.76);
}

.case-cta-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 30px;
  overflow: hidden;
  padding: 48px;
  border-radius: 8px;
  color: var(--white);
  background:
    radial-gradient(circle at 85% 20%, rgba(110, 182, 255, 0.28), transparent 34%),
    linear-gradient(135deg, #05070b, #101a29);
}

.case-cta-band h2 {
  max-width: 860px;
  color: var(--white);
}

.case-cta-band p {
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.68);
}

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

.related-grid a,
.case-suggestions a {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--dark-line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 16px 42px rgba(14, 27, 43, 0.06);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

.related-grid a:hover,
.related-grid a:focus-visible,
.case-suggestions a:hover,
.case-suggestions a:focus-visible {
  border-color: rgba(47, 128, 255, 0.34);
  transform: translateY(-4px);
  box-shadow: 0 24px 58px rgba(14, 27, 43, 0.12);
}

.related-grid img {
  width: 100%;
  aspect-ratio: 1.65 / 1;
  object-fit: cover;
  object-position: top center;
}

.related-grid span,
.related-grid strong {
  margin-right: 22px;
  margin-left: 22px;
}

.related-grid span {
  margin-top: 22px;
}

.related-grid strong {
  display: block;
  margin-bottom: 24px;
  font-size: 1.15rem;
  line-height: 1.15;
}

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

.case-suggestions a {
  min-height: 130px;
  align-items: end;
  padding: 22px;
  font-weight: 850;
}

.academy {
  background: var(--white);
}

.academy-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.7fr) auto;
  align-items: end;
  gap: 36px;
  padding: 44px;
  border-radius: 8px;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(47, 128, 255, 0.28), rgba(243, 199, 102, 0.14)),
    var(--charcoal);
}

.academy-inner p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 0.8fr);
  gap: 60px;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(3, 7, 12, 0.92), rgba(3, 7, 12, 0.72)),
    url("assets/imaginethis-hero-portrait.png") center right / cover;
}

.contact-copy p:not(.section-mark) {
  max-width: 620px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.1rem;
}

.contact-panel {
  display: grid;
  gap: 12px;
  align-self: stretch;
}

.contact-link {
  display: grid;
  gap: 4px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  text-decoration: none;
  backdrop-filter: blur(10px);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.contact-link:hover,
.contact-link:focus-visible {
  border-color: rgba(110, 182, 255, 0.42);
  transform: translateX(6px);
}

.contact-link span {
  color: var(--blue-2);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-link strong {
  font-size: clamp(1rem, 2vw, 1.35rem);
  overflow-wrap: anywhere;
}

.primary-contact {
  background: rgba(47, 128, 255, 0.22);
}

.email-link {
  background: rgba(243, 199, 102, 0.12);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 34px max(24px, calc((100vw - var(--max)) / 2));
  color: rgba(255, 255, 255, 0.72);
  background: var(--black);
}

.footer-brand .brand-logo-plate {
  width: 260px;
  height: 58px;
  box-shadow: none;
}

.site-footer p {
  max-width: 680px;
  margin: 0;
  text-align: right;
}

.logo-lightbox[hidden] {
  display: none;
}

.logo-lightbox {
  position: fixed;
  inset: 0;
  z-index: 560;
  display: grid;
  place-items: center;
  padding: 24px;
  color: var(--white);
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: rgba(2, 5, 10, 0.82);
  backdrop-filter: blur(18px);
}

.lightbox-panel {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(1080px, calc(100vw - 48px));
  max-height: calc(100svh - 48px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 20%, rgba(47, 128, 255, 0.18), transparent 46%),
    #05070b;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.48);
}

.lightbox-topbar {
  display: flex;
  min-height: 78px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(5, 7, 11, 0.86);
}

.lightbox-topbar span,
.lightbox-count {
  color: var(--blue-2);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lightbox-topbar h3 {
  margin-top: 7px;
  font-size: clamp(1.15rem, 2.4vw, 2rem);
  line-height: 1.05;
}

.lightbox-close,
.lightbox-nav {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
  transition: transform 0.28s var(--ease), background 0.28s var(--ease), border-color 0.28s var(--ease);
}

.lightbox-close {
  width: 48px;
  height: 48px;
}

.lightbox-close svg,
.lightbox-nav svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.lightbox-close:hover,
.lightbox-close:focus-visible,
.lightbox-nav:hover,
.lightbox-nav:focus-visible {
  border-color: rgba(110, 182, 255, 0.54);
  background: rgba(47, 128, 255, 0.2);
  transform: scale(1.06);
}

.lightbox-stage {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  padding: clamp(20px, 4vw, 46px);
}

.lightbox-stage figure {
  display: grid;
  min-height: min(58svh, 620px);
  margin: 0;
  place-items: center;
  padding: clamp(18px, 3vw, 40px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.04);
}

.lightbox-stage img {
  display: block;
  max-width: 100%;
  max-height: min(58svh, 620px);
  object-fit: contain;
  filter: drop-shadow(0 22px 50px rgba(0, 0, 0, 0.38));
}

.lightbox-nav {
  width: 54px;
  height: 54px;
}

.lightbox-count {
  margin: 0;
  padding: 0 22px 22px;
  text-align: center;
}

@media (hover: hover) and (pointer: fine) {
  html.has-custom-cursor,
  html.has-custom-cursor a,
  html.has-custom-cursor button,
  html.has-custom-cursor .media-rail {
    cursor: none;
  }

  .custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 600;
    display: block;
    width: 1px;
    height: 1px;
    pointer-events: none;
    opacity: 0;
    transform: translate3d(var(--cursor-x, -120px), var(--cursor-y, -120px), 0);
    transition: opacity 0.18s ease;
    mix-blend-mode: difference;
  }

  .custom-cursor.is-active {
    opacity: 1;
  }

  .cursor-dot,
  .cursor-ring,
  .cursor-label {
    position: absolute;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
  }

  .cursor-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--white);
    transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
  }

  .cursor-ring {
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 50%;
    transition: width 0.25s var(--ease), height 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease);
  }

  .cursor-label {
    min-width: 62px;
    padding: 8px 12px;
    border-radius: 999px;
    color: var(--black);
    background: var(--white);
    font-size: 0.72rem;
    font-weight: 900;
    line-height: 1;
    text-align: center;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.82);
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
  }

  .custom-cursor.is-pointer .cursor-ring {
    width: 62px;
    height: 62px;
    border-color: rgba(255, 255, 255, 0.92);
    background: rgba(255, 255, 255, 0.08);
  }

  .custom-cursor.is-labeled .cursor-ring,
  .custom-cursor.is-labeled .cursor-dot {
    opacity: 0;
  }

  .custom-cursor.is-labeled .cursor-label {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

.progress-wrap {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 180;
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--white);
  background: rgba(5, 7, 11, 0.68);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.22);
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px);
  transition: opacity 0.28s var(--ease), transform 0.28s var(--ease), background 0.28s var(--ease);
  backdrop-filter: blur(14px);
}

.progress-wrap.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.progress-wrap:hover,
.progress-wrap:focus-visible {
  background: rgba(47, 128, 255, 0.82);
}

.progress-circle {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.progress-track,
.progress-path {
  fill: none;
  stroke-width: 7;
}

.progress-track {
  stroke: rgba(255, 255, 255, 0.17);
}

.progress-path {
  stroke: var(--blue-2);
  stroke-linecap: round;
  transition: stroke-dashoffset 0.08s linear;
}

.progress-arrow {
  position: relative;
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }

  .loader-wrap,
  .custom-cursor,
  .progress-wrap {
    display: none !important;
  }

  .js .hero h1 span,
  .js .hero-copy,
  .js .hero-actions,
  .js .hero-preview,
  .js .reveal-item {
    opacity: 1 !important;
    transform: none !important;
  }
}

@media (max-width: 1120px) {
  .site-header {
    grid-template-columns: auto 1fr auto;
  }

  .main-nav {
    position: fixed;
    top: 92px;
    right: 24px;
    left: 24px;
    display: none;
    width: calc(100vw - 48px);
    min-height: auto;
    flex-direction: column;
    align-items: stretch;
    border-radius: 18px;
    background: rgba(7, 13, 20, 0.96);
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    min-width: 0;
  }

  .header-cta {
    justify-self: end;
  }

  .capability-grid,
  .website-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

  .case-hero-media {
    max-width: 860px;
  }

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

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

  .logo-mosaic {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

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

  .section-lift {
    margin-top: -62px;
    padding-top: 108px;
    border-radius: 42px 42px 0 0;
  }
}

@media (min-width: 841px) {
  .hero {
    height: 100svh;
    min-height: 720px;
  }
}

@media (max-width: 900px) {
  html.has-custom-cursor,
  html.has-custom-cursor a,
  html.has-custom-cursor button,
  html.has-custom-cursor .media-rail {
    cursor: auto;
  }

  .custom-cursor {
    display: none !important;
  }
}

@media (max-height: 820px) and (min-width: 841px) {
  .hero-content {
    padding-top: 104px;
    padding-bottom: 122px;
  }

  .hero h1 {
    font-size: clamp(4rem, 6.35vw, 5.75rem);
    line-height: 0.86;
  }

  .hero-copy {
    margin-top: 20px;
    font-size: 1.06rem;
  }

  .hero-actions {
    margin-top: 22px;
  }

  .hero-preview {
    min-height: 98px;
    padding: 22px 30px;
  }
}

@media (max-width: 840px) {
  .site-header {
    padding-top: 18px;
    padding-bottom: 18px;
    gap: 12px;
  }

  .brand-logo-plate {
    width: clamp(180px, 42vw, 238px);
    height: 54px;
    padding: 4px 12px;
  }

  .header-cta {
    min-height: 46px;
    padding: 0 16px;
  }

  .header-cta span {
    display: none;
  }

  .hero-image {
    background-position: 62% center;
  }

  .hero-scrim {
    background:
      linear-gradient(90deg, rgba(3, 7, 12, 0.98) 0%, rgba(3, 7, 12, 0.82) 48%, rgba(3, 7, 12, 0.45) 100%),
      linear-gradient(180deg, rgba(3, 7, 12, 0.28), rgba(3, 7, 12, 0.86));
  }

  .hero-content {
    align-self: start;
    padding-top: 128px;
    padding-bottom: 230px;
  }

  .hero h1 {
    font-size: clamp(3.9rem, 17.4vw, 5.4rem);
    line-height: 0.86;
  }

  .hero-preview {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 24px;
  }

  .section-lift {
    margin-top: -42px;
    padding-top: 94px;
    border-radius: 30px 30px 0 0;
  }

  .section-pad {
    padding-top: 78px;
    padding-bottom: 78px;
  }

  .split-intro,
  .contact {
    grid-template-columns: 1fr;
  }

  .price-strip,
  .project-grid,
  .capability-grid,
  .website-grid {
    grid-template-columns: 1fr;
  }

  .case-hero {
    min-height: auto;
    padding-top: 128px;
  }

  .case-hero h1 {
    font-size: clamp(3.8rem, 14.6vw, 6.5rem);
  }

  .case-meta,
  .case-story-grid,
  .case-two-column,
  .case-cta-band,
  .related-grid {
    grid-template-columns: 1fr;
  }

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

  .case-two-column,
  .case-cta-band {
    padding: 28px;
  }

  .case-cta-band {
    align-items: start;
  }

  .logo-showcase {
    padding-bottom: 24px;
  }

  .logo-showcase .gallery-head {
    display: flex;
    min-height: 64px;
    align-items: center;
  }

  .logo-mosaic {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .logo-mosaic .logo-item {
    aspect-ratio: 1 / 1;
  }

  .lightbox-stage {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .lightbox-nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 46px;
    height: 46px;
    transform: translateY(-50%);
  }

  .lightbox-nav:hover,
  .lightbox-nav:focus-visible {
    transform: translateY(-50%) scale(1.06);
  }

  .lightbox-nav.prev {
    left: 12px;
  }

  .lightbox-nav.next {
    right: 12px;
  }

  .gallery-head {
    display: grid;
  }

  .academy-inner {
    padding: 28px;
  }

  .site-footer {
    display: grid;
  }

  .site-footer p {
    text-align: left;
  }
}

@media (max-width: 540px) {
  .site-header {
    grid-template-columns: 1fr auto auto;
    padding-inline: 16px;
  }

  .main-nav {
    top: 82px;
    right: 16px;
    left: 16px;
    width: calc(100vw - 32px);
  }

  .brand-logo-plate {
    width: min(176px, 44vw);
    height: 48px;
    padding: 4px 8px;
    border-radius: 8px;
  }

  .footer-brand .brand-logo-plate {
    width: min(230px, 80vw);
    height: 54px;
  }

  .hero-content {
    width: auto;
    padding-inline: 18px;
  }

  .hero h1 {
    font-size: clamp(3.45rem, 16.3vw, 4.5rem);
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero .button-ghost {
    display: none;
  }

  .button {
    width: 100%;
  }

  .button-ghost {
    justify-content: flex-start;
  }

  .hero-preview {
    right: 16px;
    left: 16px;
    border-radius: 22px 22px 0 0;
  }

  .progress-wrap {
    right: 16px;
    bottom: 16px;
    width: 48px;
    height: 48px;
  }

  .section-pad {
    padding-inline: 18px;
  }

  h2 {
    font-size: clamp(2.2rem, 13vw, 3.7rem);
  }

  .gallery-shell {
    margin-inline: -18px;
    border-radius: 0;
    padding: 22px 18px;
  }

  .logo-showcase {
    margin-inline: calc(50% - 50vw);
    padding: 0 16px 20px;
  }

  .logo-showcase .gallery-head {
    padding: 16px;
  }

  .media-rail {
    grid-auto-columns: minmax(180px, 72vw);
  }

  .logo-mosaic {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .case-hero {
    padding-right: 18px;
    padding-left: 18px;
  }

  .case-hero h1 {
    font-size: clamp(3.35rem, 16.2vw, 4.8rem);
  }

  .case-meta,
  .case-actions,
  .project-card footer {
    display: grid;
  }

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

  .case-section h2,
  .case-cta-band h2 {
    font-size: clamp(2.15rem, 12vw, 3.25rem);
  }

  .logo-mosaic .logo-item {
    padding: 12px;
  }

  .logo-mosaic .logo-item span {
    right: 8px;
    bottom: 8px;
    min-height: 30px;
    padding: 0 10px;
  }

  .logo-lightbox {
    padding: 14px;
  }

  .lightbox-panel {
    width: calc(100vw - 28px);
    max-height: calc(100svh - 28px);
  }

  .lightbox-topbar {
    min-height: 68px;
    padding: 14px 16px;
  }

  .lightbox-close {
    width: 42px;
    height: 42px;
  }

  .lightbox-stage {
    padding: 16px;
  }

  .lightbox-stage figure {
    min-height: 52svh;
    padding: 16px;
  }

  .lightbox-stage img {
    max-height: 52svh;
  }

  .project-card,
  .capability-grid article,
  .price-strip article {
    padding: 22px;
  }

  .project-card {
    padding: 0;
  }

  .project-copy {
    padding: 22px 22px 0;
  }

  .project-card footer {
    margin-right: 22px;
    margin-left: 22px;
    padding-bottom: 22px;
  }
}
