@font-face {
  font-family: "Druk Wide";
  src: url("assets/fonts/druk-wide-heavy.otf") format("opentype");
  font-display: swap;
}

@font-face {
  font-family: "Giorgio Sans";
  src: url("assets/fonts/giorgio-regular.otf") format("opentype");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Giorgio Sans";
  src: url("assets/fonts/giorgio-medium.otf") format("opentype");
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "MTS Extended";
  src: url("assets/fonts/mts-extended-medium.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "MTS Compact";
  src: url("assets/fonts/mts-compact-regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #f5f7fb;
  --ink-soft: rgba(245, 247, 251, 0.76);
  --muted: rgba(245, 247, 251, 0.58);
  --quiet: rgba(245, 247, 251, 0.38);
  --base: #07090d;
  --base-2: #0d1118;
  --glass: rgba(255, 255, 255, 0.095);
  --glass-strong: rgba(255, 255, 255, 0.15);
  --glass-line: rgba(255, 255, 255, 0.22);
  --accent: #bfe8ff;
  --accent-2: #f6efe7;
  --pearl: #f3f0e9;
  --pearl-dim: rgba(243, 240, 233, 0.72);
  --shadow: rgba(0, 0, 0, 0.42);
  --font-display: "Druk Wide", "Arial Black", Impact, sans-serif;
  --font-body: "Giorgio Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-label: "MTS Extended", "Giorgio Sans", system-ui, sans-serif;
  --font-readable: "MTS Compact", "Giorgio Sans", system-ui, sans-serif;
  --max: 1180px;
  --header-h: 74px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-width: 320px;
  overflow-x: clip;
  color: var(--ink);
  background:
    linear-gradient(180deg, #07090d 0%, #080a0f 42%, #07090d 100%);
  font-family: var(--font-body);
  letter-spacing: 0;
}

main {
  display: flex;
  flex-direction: column;
}

body::selection {
  color: #071017;
  background: var(--accent);
}

a,
button {
  font: inherit;
}

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

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

button {
  border: 0;
  color: inherit;
  background: transparent;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: #071017;
  background: var(--accent);
  border-radius: 999px;
  transform: translateY(-160%);
}

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.site-header {
  position: fixed;
  inset: max(14px, env(safe-area-inset-top)) clamp(14px, 3vw, 34px) auto;
  z-index: 50;
  display: grid;
  align-items: center;
  min-height: var(--header-h);
  padding: 12px clamp(14px, 2vw, 24px);
  border: 1px solid var(--glass-line);
  border-radius: 28px;
  background: rgba(8, 11, 17, 0.42);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(22px) saturate(1.35);
  -webkit-backdrop-filter: blur(22px) saturate(1.35);
  transition:
    min-height 220ms ease,
    background-color 220ms ease,
    transform 220ms ease;
}

.site-header.is-compact {
  min-height: 58px;
  background: rgba(8, 11, 17, 0.66);
}

.site-nav {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: center;
  gap: clamp(6px, 1vw, 12px);
  width: 100%;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 12px clamp(10px, 1.6vw, 18px);
  border-radius: 18px;
  color: var(--ink-soft);
  font-family: var(--font-label);
  font-size: 11px;
  letter-spacing: 0.03em;
  text-align: center;
  text-transform: uppercase;
  transition:
    color 180ms ease,
    background-color 180ms ease,
    transform 180ms ease;
}

.site-nav a:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.09);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--glass-line);
  border-radius: 16px;
}

.nav-toggle span[aria-hidden="true"],
.nav-toggle span[aria-hidden="true"]::before,
.nav-toggle span[aria-hidden="true"]::after {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  border-radius: 2px;
  background: var(--ink);
  content: "";
}

.nav-toggle span[aria-hidden="true"]::before {
  transform: translateY(-6px);
}

.nav-toggle span[aria-hidden="true"]::after {
  transform: translateY(4px);
}

.hero {
  position: relative;
  min-height: 100svh;
  background: #080b11;
  padding:
    calc(var(--header-h) + 72px + env(safe-area-inset-top))
    clamp(20px, 5vw, 72px)
    clamp(42px, 7vw, 76px);
  overflow: hidden;
  isolation: isolate;
}

.hero::after {
  content: none;
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(
      180deg,
      rgba(8, 10, 14, 0) 0%,
      rgba(8, 10, 14, 0) 56%,
      rgba(8, 10, 14, 0.2) 72%,
      rgba(8, 10, 14, 0.48) 86%,
      rgba(8, 10, 14, 0.76) 100%
    );
  content: "";
}

.hero-media,
.hero-media video,
.hero-vignette {
  position: absolute;
  inset: 0;
}

.hero-media {
  z-index: -3;
  overflow: hidden;
  background: #11161c;
}

.hero-media::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(
      180deg,
      rgba(8, 10, 14, 0) 0%,
      rgba(8, 10, 14, 0) 46%,
      rgba(8, 10, 14, 0.34) 62%,
      rgba(8, 10, 14, 0.62) 74%,
      rgba(8, 10, 14, 0.84) 86%,
      rgba(8, 10, 14, 0.94) 94%,
      rgba(8, 10, 14, 0.98) 100%
    );
  content: "";
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 34%;
  transform: scale(1.1);
  transform-origin: center center;
  filter: saturate(1.08) contrast(1.02) brightness(1.14);
}

.hero-vignette {
  z-index: -2;
  background:
    linear-gradient(100deg, rgba(7, 9, 13, 0.2) 0%, rgba(7, 9, 13, 0.06) 48%, rgba(7, 9, 13, 0.01) 82%);
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: end;
  width: min(100%, 1370px);
  min-height: calc(100svh - var(--header-h) - 132px);
  margin: 0 auto;
}

.hero-copy {
  min-width: 0;
  max-width: 930px;
}

.section-label,
.role-meta,
.tile-copy span,
.phone-frame span {
  color: var(--accent);
  font-family: var(--font-label);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  display: grid;
  gap: 2px;
  max-width: 760px;
  font-family: var(--font-display);
  font-size: clamp(42px, 5.8vw, 96px);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}

h1 span:last-child {
  max-width: 17ch;
  color: rgba(245, 247, 251, 0.82);
  font-size: clamp(18px, 0.42em, 44px);
  line-height: 0.96;
  letter-spacing: -0.018em;
}

section[id] {
  scroll-margin-top: calc(var(--header-h) + 48px);
}

#companies {
  scroll-margin-top: calc(var(--header-h) + 28px);
}

.hero-line {
  max-width: 66ch;
  margin-top: 26px;
  color: rgba(255, 255, 255, 0.94);
  font-family: var(--font-label);
  font-size: clamp(12px, 1.1vw, 16px);
  line-height: 1.46;
  letter-spacing: 0.07em;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.5);
  text-transform: uppercase;
}

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

.primary-link,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 999px;
  font-family: var(--font-label);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.primary-link {
  padding: 0 18px;
  color: #07090d;
  background: linear-gradient(180deg, #fffdfa 0%, var(--pearl) 54%, #d7dde2 100%);
  box-shadow:
    0 14px 42px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.text-link {
  padding: 0 16px;
  border: 1px solid var(--glass-line);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  overflow-wrap: anywhere;
}

.glass,
.work-tile,
.phone-frame,
.glass-image,
.method-grid article,
.contact-shell,
.company-stage {
  position: relative;
  border: 1px solid var(--glass-line);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.055));
  box-shadow:
    0 22px 76px var(--shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(20px) saturate(1.32);
  -webkit-backdrop-filter: blur(20px) saturate(1.32);
}

.glass::before,
.work-tile::before,
.phone-frame::before,
.glass-image::before,
.method-grid article::before,
.contact-shell::before,
.company-stage::before {
  position: absolute;
  inset: 1px;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(130deg, rgba(255, 255, 255, 0.24), transparent 32%);
  content: "";
}

.section-pad {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(78px, 10vw, 142px) 0;
}

.companies.section-pad {
  position: relative;
  isolation: isolate;
  z-index: 2;
  margin-top: 0;
  padding-top: clamp(74px, 8vw, 112px);
}

.companies.section-pad::before,
.companies.section-pad::after {
  position: absolute;
  left: 50%;
  width: 100vw;
  pointer-events: none;
  transform: translateX(-50%);
  content: "";
}

.companies.section-pad::before {
  top: 0;
  bottom: 0;
  z-index: 0;
  background: #07090d;
}

.companies.section-pad::after {
  content: none;
}

.companies.section-pad > * {
  position: relative;
  z-index: 1;
}

.about {
  padding-top: clamp(54px, 7vw, 96px);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(150px, 0.35fr) minmax(0, 1fr);
  gap: clamp(24px, 6vw, 84px);
  align-items: start;
  margin-bottom: 36px;
}

.companies .section-head {
  grid-template-columns: minmax(140px, 0.24fr) minmax(0, 0.76fr);
  width: min(100%, 920px);
  margin-inline: auto;
}

.companies .projects-head {
  display: block;
  width: min(100%, 920px);
  margin-inline: auto;
  text-align: center;
}

.companies .section-head h2 {
  max-width: 13ch;
}

.companies .projects-head h2 {
  max-width: none;
  margin-inline: auto;
  text-transform: none;
}

.section-head h2,
.about h2,
.method h2,
.contact h2 {
  max-width: 900px;
  font-family: var(--font-display);
  font-size: clamp(34px, 5.2vw, 82px);
  line-height: 0.92;
  letter-spacing: -0.035em;
  overflow-wrap: anywhere;
  text-transform: uppercase;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(280px, 0.74fr);
  gap: clamp(28px, 6vw, 82px);
  align-items: center;
}

.about-copy {
  max-width: min(100%, 760px);
}

.about-copy h2 {
  max-width: 21ch;
  color: rgba(245, 247, 251, 0.94);
  font-family: var(--font-readable);
  font-size: clamp(32px, 4.2vw, 60px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 0;
  text-transform: none;
  text-wrap: balance;
}

.about-copy p {
  max-width: 62ch;
  color: rgba(245, 247, 251, 0.92);
  font-family: var(--font-readable);
  font-size: clamp(17px, 1.16vw, 21px);
  line-height: 1.6;
  letter-spacing: 0;
  text-wrap: pretty;
}

.about p,
.section-head + p,
.vertical-copy p:last-child,
.method-grid p,
.contact-shell p {
  color: var(--ink-soft);
  font-size: clamp(17px, 1.65vw, 22px);
  line-height: 1.38;
}

.about h2 + p {
  max-width: 620px;
  margin-top: 28px;
}

.about-copy h2 + p {
  max-width: 62ch;
  margin-top: clamp(18px, 2.4vw, 32px);
}

.about-copy p + p {
  margin-top: 18px;
}

.about-proof-list {
  display: grid;
  max-width: 62ch;
  padding: 0;
  margin: clamp(24px, 3vw, 34px) 0 0;
  border-top: 1px solid rgba(245, 247, 251, 0.16);
  list-style: none;
}

.about-proof-list li {
  display: grid;
  grid-template-columns: minmax(112px, 0.32fr) minmax(0, 1fr);
  gap: 18px;
  padding: 15px 0;
  border-bottom: 1px solid rgba(245, 247, 251, 0.13);
}

.about-proof-list span {
  color: var(--accent);
  font-family: var(--font-label);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.about-proof-list strong {
  color: rgba(245, 247, 251, 0.9);
  font-family: var(--font-readable);
  font-size: clamp(14px, 0.98vw, 16px);
  font-weight: 400;
  line-height: 1.48;
}

.glass-image {
  overflow: hidden;
  border-radius: 36px;
}

.glass-image img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}

.about-media {
  position: relative;
  width: min(100%, 498px);
  margin-left: auto;
  padding: clamp(10px, 1.4vw, 14px);
  border-radius: 38px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background:
    radial-gradient(circle at 16% -10%, rgba(191, 232, 255, 0.24), transparent 44%),
    linear-gradient(165deg, rgba(13, 17, 25, 0.94), rgba(7, 10, 15, 0.98));
  box-shadow:
    0 26px 96px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.about-photo-shell {
  position: relative;
  z-index: 1;
  min-height: clamp(420px, 58vw, 680px);
  border-radius: 30px;
  isolation: isolate;
}

.about-photo-shell img {
  min-height: 0;
  height: 100%;
  object-position: 54% 42%;
  filter: saturate(0.96) contrast(1.05) brightness(0.9);
}

.about-media-note {
  position: absolute;
  inset: auto 14px 14px;
  display: grid;
  gap: 5px;
  padding: 12px 14px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(7, 10, 15, 0.42), rgba(7, 10, 15, 0.82));
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px) saturate(1.18);
  -webkit-backdrop-filter: blur(12px) saturate(1.18);
}

.about-media-note span {
  color: rgba(191, 232, 255, 0.94);
  font-family: var(--font-label);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.about-media-note strong {
  color: rgba(245, 247, 251, 0.95);
  font-family: var(--font-readable);
  font-size: clamp(13px, 0.94vw, 15px);
  font-weight: 400;
  line-height: 1.35;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(230px, auto);
  gap: 14px;
}

.work-tile {
  min-width: 0;
  min-height: 320px;
  overflow: hidden;
  border-radius: 32px;
  isolation: isolate;
}

.work-tile-large {
  grid-column: span 7;
  grid-row: span 2;
  min-height: 610px;
}

.work-tile:not(.work-tile-large) {
  grid-column: span 5;
  min-height: 0;
  aspect-ratio: 16 / 9;
}

.work-video {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.04) brightness(0.72);
  transition:
    filter 260ms ease,
    transform 420ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.work-tile::after,
.phone-frame::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, rgba(7, 9, 13, 0.9), rgba(7, 9, 13, 0.08) 64%);
  content: "";
}

.work-tile:hover .work-video,
.phone-frame:hover .work-video,
.company-reel:hover .work-video {
  filter: saturate(1.06) contrast(1.08) brightness(0.86);
  transform: scale(1.03);
}

.tile-copy {
  position: absolute;
  inset: auto 20px 20px;
  max-width: min(520px, calc(100% - 40px));
}

.tile-copy h3,
.phone-frame h3,
.method-grid h3,
.company-story h3 {
  margin-top: 10px;
  font-family: var(--font-display);
  font-size: clamp(23px, 2.7vw, 42px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  overflow-wrap: anywhere;
  text-transform: uppercase;
}

.tile-copy p,
.phone-frame p {
  max-width: min(430px, 100%);
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.3;
}

.company-stage {
  display: grid;
  width: 100%;
  margin-inline: auto;
  gap: clamp(14px, 1.4vw, 20px);
  padding: clamp(14px, 1.5vw, 22px);
  border-radius: 34px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.105), rgba(255, 255, 255, 0.036));
}

.company-stage-copy {
  display: flex;
  justify-content: center;
  padding: 2px clamp(6px, 1.5vw, 16px) 0;
  text-align: center;
}

.company-stage-copy p {
  max-width: 58ch;
  color: rgba(245, 247, 251, 0.88);
  font-family: var(--font-readable);
  font-size: clamp(15px, 1.18vw, 18px);
  line-height: 1.52;
  letter-spacing: 0.01em;
}

.company-card-deck {
  display: grid;
  grid-template-columns: minmax(0, 1fr) repeat(4, clamp(78px, 6vw, 112px));
  gap: clamp(8px, 1vw, 14px);
  min-height: clamp(610px, 70svh, 740px);
  height: auto;
  align-items: stretch;
}

.company-card {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.055);
  isolation: isolate;
  transition:
    filter 360ms var(--ease-out),
    transform 360ms var(--ease-out);
}

.company-card:nth-child(1) {
  order: 1;
}

.company-card:nth-child(2) {
  order: 2;
}

.company-card:nth-child(3) {
  order: 3;
}

.company-card:nth-child(4) {
  order: 4;
}

.company-card:nth-child(5) {
  order: 5;
}

.company-card.is-active {
  order: 0;
}

.company-card::before,
.company-card::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
}

.company-card::before {
  z-index: -2;
  background:
    radial-gradient(circle at 18% 14%, rgba(191, 232, 255, 0.18), transparent 46%),
    linear-gradient(152deg, rgba(20, 26, 37, 0.86), rgba(8, 11, 17, 0.92) 58%, rgba(12, 17, 26, 0.94));
  filter: saturate(0.96) contrast(1.04) brightness(0.72);
  opacity: 0.72;
  transition:
    opacity 420ms var(--ease-out),
    filter 420ms var(--ease-out),
    transform 760ms var(--ease-out);
}

.company-card::after {
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(7, 9, 13, 0.22), rgba(7, 9, 13, 0.86)),
    linear-gradient(90deg, rgba(191, 232, 255, 0.13), transparent 42%);
}

.company-card.is-active::before {
  opacity: 0.52;
  filter: saturate(1.05) contrast(1.04) brightness(0.82);
  transform: scale(1.04);
}

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

.company-card-trigger {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 16px;
  width: 100%;
  min-height: 100%;
  padding: 22px;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.company-card.is-active .company-card-trigger {
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-rows: 1fr;
  align-items: center;
  min-height: clamp(124px, 13vw, 160px);
  padding: clamp(20px, 2.4vw, 30px) clamp(20px, 3vw, 34px) 12px;
}

.company-card.is-active .company-tab-mark {
  grid-column: 1;
  justify-self: start;
}

.company-card.is-active .company-trigger-copy {
  grid-column: 2;
  align-self: end;
}

.company-card.is-active .company-prime {
  grid-column: 3;
  align-self: end;
}

.company-kicker,
.company-trigger-copy > span,
.company-prime,
.company-reel span {
  color: var(--accent);
  font-family: var(--font-label);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.company-tab-mark {
  --logo-slot: clamp(42px, 3.2vw, 56px);
  --logo-surface:
    radial-gradient(circle at 22% 18%, rgba(191, 232, 255, 0.19), transparent 52%),
    radial-gradient(circle at 78% 78%, rgba(243, 240, 233, 0.09), transparent 56%);
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  width: var(--logo-slot);
  height: var(--logo-slot);
  padding: 0;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background:
    radial-gradient(circle at 17% 12%, rgba(255, 255, 255, 0.18), transparent 56%),
    linear-gradient(155deg, rgba(12, 15, 20, 0.66), rgba(255, 255, 255, 0.04));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 0 0 1px rgba(243, 240, 233, 0.06),
    0 14px 28px rgba(0, 0, 0, 0.26);
  opacity: 0.82;
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    opacity 220ms ease,
    background 220ms ease;
  background-blend-mode: soft-light;
}

.company-tab-mark img {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  object-position: center;
  object-fit: fill;
  filter: saturate(0.95) brightness(1.04) contrast(0.99);
  opacity: 0.95;
  transform: translateZ(0);
}

.company-tab-mark::before {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-image: var(--logo-surface);
  background-size: clamp(100px, 11vw, 155px);
  background-repeat: repeat;
  background-position: center;
  mix-blend-mode: soft-light;
  opacity: 0.4;
  filter: saturate(0.62) contrast(1.06);
  pointer-events: none;
  content: "";
}

.company-tab-mark::after {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.24) 0%, rgba(255, 255, 255, 0.02) 52%, rgba(255, 255, 255, 0) 100%),
    radial-gradient(120px at 28% 10%, rgba(191, 232, 255, 0.18), transparent 64%);
  opacity: 0.66;
  pointer-events: none;
  mix-blend-mode: screen;
  content: "";
}

.company-card:nth-child(1) .company-tab-mark {
  --logo-surface:
    linear-gradient(rgba(11, 14, 18, 0.18), rgba(11, 14, 18, 0.08)),
    url("assets/brands/aurora/texture.png");
}

.company-card:nth-child(2) .company-tab-mark {
  --logo-surface:
    linear-gradient(rgba(11, 14, 18, 0.16), rgba(11, 14, 18, 0.04)),
    url("assets/brands/chexx/pattern.png");
}

.company-card:nth-child(3) .company-tab-mark {
  --logo-surface:
    linear-gradient(rgba(11, 14, 18, 0.16), rgba(11, 14, 18, 0.04)),
    url("assets/brands/amkal/pattern.png");
}

.company-card:nth-child(4) .company-tab-mark,
.company-card:nth-child(5) .company-tab-mark {
  --logo-surface:
    radial-gradient(circle at 20% 28%, rgba(191, 232, 255, 0.1), transparent 48%),
    radial-gradient(circle at 74% 78%, rgba(243, 240, 233, 0.09), transparent 62%);
}

.company-card.is-active .company-tab-mark {
  --logo-slot: clamp(56px, 5.2vw, 80px);
  opacity: 0.92;
  box-shadow:
    0 20px 38px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 0 0 1px rgba(243, 240, 233, 0.12);
}

.company-card:not(.is-active) .company-tab-mark {
  transform: translateY(1px);
}

.company-card:not(.is-active) .company-tab-mark::before {
  opacity: 0.35;
}

.company-trigger-copy {
  display: grid;
  gap: 8px;
  align-self: end;
  min-width: 0;
}

.company-trigger-copy strong {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 38px);
  line-height: 0.96;
  letter-spacing: -0.035em;
  overflow-wrap: anywhere;
  text-transform: uppercase;
}

.company-trigger-copy > span:last-child {
  color: rgba(245, 247, 251, 0.62);
}

.company-prime {
  display: grid;
  align-self: end;
  gap: 4px;
  color: rgba(245, 247, 251, 0.72);
}

.company-prime strong {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(20px, 2vw, 30px);
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.company-card:not(.is-active) .company-card-trigger {
  position: relative;
  grid-row: 1 / -1;
  grid-template-rows: auto 1fr;
  align-self: stretch;
  height: 100%;
  min-height: 100%;
  padding: clamp(18px, 2vw, 26px) 8px;
  text-align: center;
}

.company-card:not(.is-active) .company-tab-mark {
  position: absolute;
  top: clamp(220px, 33vh, 364px);
  left: 50%;
  opacity: 0.78;
  transform: translate(-50%, -50%);
}

.company-card:not(.is-active) .company-trigger-copy {
  grid-row: 1;
  align-self: start;
  justify-items: center;
  gap: 3px;
  width: 100%;
}

.company-card:not(.is-active) .company-trigger-copy strong {
  max-width: 100%;
  font-family: var(--font-label);
  font-size: clamp(10px, 0.72vw, 12px);
  line-height: 1.16;
  letter-spacing: 0.04em;
  hyphens: none;
  overflow-wrap: normal;
  text-align: center;
  writing-mode: initial;
  word-break: normal;
  transform: none;
}

.company-title-line {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
}

.company-card.is-active .company-title-line {
  justify-content: flex-start;
}

.company-card:not(.is-active) .company-kicker,
.company-card:not(.is-active) .company-trigger-copy > span:last-child,
.company-card:not(.is-active) .company-prime {
  display: none;
}

.company-card-panel {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(290px, 0.72fr);
  gap: clamp(20px, 4vw, 54px);
  align-items: stretch;
  padding: 0 clamp(20px, 3vw, 34px) clamp(20px, 3vw, 34px);
  animation: panel-rise 680ms var(--ease-out) both;
}

#company-aurora-panel {
  overflow: hidden;
  border-radius: 28px;
}

#company-aurora-panel::before,
#company-aurora-panel::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
}

#company-aurora-panel::before {
  z-index: 0;
  background:
    radial-gradient(circle at 22% 24%, rgba(79, 199, 190, 0.22), transparent 48%),
    radial-gradient(circle at 76% 72%, rgba(191, 232, 255, 0.14), transparent 56%),
    linear-gradient(140deg, rgba(12, 18, 29, 0.92), rgba(8, 12, 19, 0.96));
  opacity: 1;
}

#company-aurora-panel::after {
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(7, 10, 15, 0.5), rgba(7, 10, 15, 0.86)),
    linear-gradient(100deg, rgba(79, 199, 190, 0.14), transparent 56%);
}

#company-aurora-panel > * {
  position: relative;
  z-index: 1;
}

@media (min-width: 1440px) {
  .companies.section-pad {
    width: min(1760px, calc(100% - clamp(32px, 4vw, 72px)));
  }

  .company-card-deck {
    grid-template-columns: minmax(0, 1fr) repeat(4, clamp(88px, 5.4vw, 124px));
  }

  .company-story {
    max-width: 560px;
  }

  .company-proof {
    width: 100%;
    max-width: 590px;
    justify-self: end;
  }
}

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

.company-story {
  align-self: end;
  max-width: 650px;
}

.company-story h3 {
  max-width: 100%;
  font-size: clamp(30px, 3.2vw, 48px);
  overflow-wrap: normal;
  text-wrap: balance;
}

.company-story p:not(.role-meta) {
  margin-top: 18px;
  max-width: 48ch;
  color: rgba(245, 247, 251, 0.9);
  font-family: var(--font-readable);
  font-size: clamp(15px, 1.14vw, 18px);
  line-height: 1.58;
  letter-spacing: 0.01em;
}

.company-bullets,
.company-metrics {
  padding: 0;
  margin: 0;
  list-style: none;
}

.company-bullets {
  display: grid;
  gap: 10px;
  margin-top: 24px;
  color: rgba(245, 247, 251, 0.86);
  font-family: var(--font-readable);
  font-size: clamp(14px, 0.98vw, 16px);
  line-height: 1.56;
  letter-spacing: 0.01em;
}

.company-bullets li {
  position: relative;
  padding-left: 18px;
}

.company-bullets li::before {
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent);
  content: "";
}

.company-proof {
  display: grid;
  align-content: end;
  gap: 12px;
  min-width: 0;
}

.company-reel {
  position: relative;
  min-height: 250px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.08);
  isolation: isolate;
}

#company-chexx-panel .company-reel {
  aspect-ratio: 1 / 1;
  justify-self: stretch;
}

#company-csnews-panel .company-reel {
  aspect-ratio: 1 / 1;
  justify-self: stretch;
}

#company-amkal-panel .company-reel {
  justify-self: stretch;
}

#company-fissure-panel .company-reel {
  aspect-ratio: 16 / 9;
  justify-self: stretch;
}

#company-fissure-panel .company-reel > div {
  gap: 6px;
  inset: auto 16px 14px;
}

#company-fissure-panel .company-reel span {
  font-size: 12px;
  line-height: 1.2;
}

#company-fissure-panel .company-reel strong {
  font-family: var(--font-display);
  font-size: clamp(15px, 1.4vw, 20px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

#company-amkal-panel .company-reel .work-video {
  object-fit: cover;
  object-position: center center;
  transform: translateY(20%) scale(2.1);
  transform-origin: center center;
}

#company-amkal-panel .company-reel:hover .work-video {
  transform: translateY(20%) scale(2.16);
}

.company-reel::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, rgba(7, 9, 13, 0.88), rgba(7, 9, 13, 0.08) 64%);
  content: "";
}

.company-reel img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.95) contrast(1.04) brightness(0.78);
  transition:
    filter 320ms var(--ease-out),
    transform 560ms var(--ease-out);
}

.company-reel:hover img {
  filter: saturate(1.06) contrast(1.08) brightness(0.9);
  transform: scale(1.03);
}

.company-reel > div {
  position: absolute;
  inset: auto 18px 18px;
  display: grid;
  gap: 8px;
}

.company-reel strong {
  font-family: var(--font-display);
  font-size: clamp(20px, 2vw, 32px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.company-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(142px, 1fr));
  gap: 10px;
}

.company-metrics li {
  display: grid;
  align-content: center;
  min-width: 0;
  min-height: 112px;
  padding: 15px;
  border: 1px solid rgba(243, 240, 233, 0.2);
  border-radius: 22px;
  background:
    radial-gradient(circle at 18% 0%, rgba(243, 240, 233, 0.16), transparent 42%),
    rgba(255, 255, 255, 0.078);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 12px 34px rgba(0, 0, 0, 0.14);
}

.company-metrics strong {
  display: inline-flex;
  max-width: 100%;
  color: var(--pearl);
  font-family: var(--font-display);
  font-size: clamp(17px, 1.22vw, 26px);
  line-height: 0.96;
  letter-spacing: -0.028em;
  overflow-wrap: normal;
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.24);
  white-space: nowrap;
  word-break: keep-all;
}

.company-metrics span {
  display: block;
  margin-top: 7px;
  color: var(--pearl-dim);
  font-family: var(--font-readable);
  font-size: 13px;
  line-height: 1.35;
  letter-spacing: 0.01em;
}

.vertical-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(220px, 0.7fr) minmax(280px, 1fr);
  gap: 16px;
  align-items: stretch;
}

.phone-frame {
  min-height: 560px;
  overflow: hidden;
  border-radius: 38px;
  aspect-ratio: 9 / 16;
}

.phone-frame > div {
  position: absolute;
  inset: auto 18px 18px;
}

.vertical-copy {
  display: grid;
  align-content: end;
  min-height: 560px;
  padding: clamp(24px, 4vw, 44px);
  border-radius: 36px;
}

.vertical-copy p:last-child {
  margin-top: 18px;
  font-size: clamp(24px, 3.2vw, 42px);
  line-height: 1.08;
}

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

.method-grid article {
  min-width: 0;
  min-height: 320px;
  padding: 24px;
  border-radius: 32px;
}

.method-grid span {
  color: var(--accent);
  font-family: var(--font-label);
  font-size: 11px;
}

.method-grid p {
  margin-top: 18px;
  font-size: 17px;
}

.contact {
  padding-bottom: clamp(64px, 9vw, 128px);
}

.contact-shell {
  min-height: 420px;
  padding: clamp(28px, 6vw, 72px);
  border-radius: 40px;
}

.mail-link {
  display: inline-block;
  margin-top: 30px;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: clamp(25px, 4.5vw, 70px);
  line-height: 0.98;
  letter-spacing: -0.04em;
  overflow-wrap: anywhere;
  text-transform: uppercase;
}

[data-reveal] {
  opacity: 1;
  transform: none;
}

.js [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 620ms ease,
    transform 620ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

@keyframes panel-rise {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.js .company-stage .company-card {
  opacity: 0;
}

.js .company-stage.is-visible .company-card {
  animation: deck-card-in 760ms var(--ease-out) forwards;
  animation-delay: calc(110ms + var(--i) * 90ms);
}

@keyframes deck-card-in {
  to {
    opacity: 1;
  }
}

@media (max-width: 1040px) {
  .hero-layout,
  .about-grid,
  .company-card-panel,
  .vertical-grid {
    grid-template-columns: 1fr;
  }

  .hero-layout {
    align-items: end;
  }

  .work-tile-large,
  .work-tile:not(.work-tile-large) {
    grid-column: span 12;
    aspect-ratio: auto;
    min-height: 420px;
  }

  .company-card-deck {
    grid-template-columns: minmax(0, 1fr) repeat(4, minmax(70px, 88px));
    min-height: 640px;
    height: auto;
  }

  .company-card-panel {
    align-items: end;
  }

  .company-proof {
    grid-template-columns: minmax(0, 0.88fr) minmax(250px, 0.72fr);
  }

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

  .vertical-copy {
    grid-column: 1 / -1;
  }

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

  .about-copy {
    max-width: min(100%, 690px);
  }

  .about-copy h2 {
    max-width: 12ch;
  }

  .about-proof-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 clamp(18px, 4vw, 36px);
    max-width: 100%;
  }

  .about-proof-list li {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 12px 0;
  }

  .about-proof-list strong {
    font-size: clamp(13px, 1.35vw, 15px);
    line-height: 1.42;
  }

  .about-media {
    margin-left: 0;
    width: min(100%, 560px);
  }

}

@media (max-width: 760px) {
  .company-stage {
    border-radius: 34px;
  }

  .company-stage-copy {
    justify-content: flex-start;
    padding: 4px 6px 0;
  }

  .company-card-deck {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    min-height: 0;
  }

  .company-card,
  .company-card.is-active {
    order: initial;
    min-width: 0;
    min-height: 128px;
    border-radius: 28px;
  }

  .company-card:hover {
    transform: none;
  }

  .company-card-trigger,
  .company-card.is-active .company-card-trigger {
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 12px;
    min-height: 128px;
    padding: 20px;
  }

  .company-tab-mark {
    grid-column: 2;
    grid-row: 1 / span 2;
    --logo-slot: clamp(34px, 9vw, 40px);
    padding: 4px;
    border-radius: 12px;
  }

  .company-card.is-active .company-tab-mark {
    --logo-slot: clamp(40px, 10vw, 44px);
  }

  .company-card:not(.is-active) .company-tab-mark {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
  }

  .company-trigger-copy {
    grid-column: 3;
  }

  .company-card:not(.is-active) .company-card-trigger {
    place-items: initial;
    text-align: left;
  }

  .company-prime {
    grid-column: 3;
  }

  .company-card:not(.is-active) .company-trigger-copy {
    align-self: end;
    justify-items: start;
  }

  .company-card:not(.is-active) .company-title-line,
  .company-card.is-active .company-title-line {
    justify-content: flex-start;
  }

  .company-card:not(.is-active) .company-trigger-copy strong {
    writing-mode: initial;
    transform: none;
  }

  .company-card:not(.is-active) .company-kicker,
  .company-card:not(.is-active) .company-trigger-copy > span:last-child,
  .company-card:not(.is-active) .company-prime {
    display: none;
  }

  .company-card-panel {
    grid-template-columns: 1fr;
    padding: 0 20px 20px;
  }

  .company-story h3 {
    overflow-wrap: anywhere;
  }

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

@media (max-width: 720px) {
  :root {
    --header-h: 64px;
  }

  .site-header {
    grid-template-columns: minmax(0, 1fr) auto;
    border-radius: 24px;
  }

  .nav-toggle {
    display: grid;
    place-items: center;
    justify-self: end;
  }

  .site-nav {
    position: absolute;
    inset: calc(100% + 10px) 0 auto;
    display: none;
    grid-template-columns: 1fr;
    align-items: stretch;
    padding: 10px;
    border: 1px solid var(--glass-line);
    border-radius: 24px;
    background: rgba(8, 11, 17, 0.78);
    backdrop-filter: blur(22px) saturate(1.25);
    -webkit-backdrop-filter: blur(22px) saturate(1.25);
  }

  .site-header.nav-open .site-nav {
    display: grid;
  }

  .site-nav a {
    justify-content: center;
    text-align: center;
  }

  .hero {
    min-height: 94svh;
    padding-inline: 20px;
  }

  .hero-layout {
    min-height: calc(94svh - var(--header-h) - 118px);
  }

  h1 {
    font-size: clamp(31px, 8.9vw, 44px);
    line-height: 1;
    letter-spacing: -0.045em;
  }

  .hero-line {
    font-size: 12px;
    line-height: 1.5;
  }

  .section-pad {
    width: min(100% - 32px, var(--max));
    padding-block: 74px;
  }

  .section-head {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .section-head h2,
  .about h2,
  .method h2,
  .contact h2 {
    font-size: clamp(28px, 8.2vw, 42px);
    line-height: 0.98;
  }

  .about-copy h2 {
    max-width: 21ch;
    font-size: clamp(28px, 8.2vw, 38px);
    line-height: 1.1;
  }

  .about-copy p {
    max-width: 62ch;
    font-size: clamp(17px, 4.5vw, 20px);
    line-height: 1.58;
  }

  .about-proof-list li {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 14px 0;
  }

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

  .about-media {
    width: 100%;
    border-radius: 30px;
    padding: 8px;
  }

  .about-photo-shell {
    min-height: clamp(360px, 112vw, 560px);
    border-radius: 24px;
  }

  .about-media-note {
    inset: auto 10px 10px;
    padding: 10px 12px;
  }

  .work-tile,
  .work-tile-large,
  .work-tile:not(.work-tile-large) {
    min-height: 360px;
    border-radius: 28px;
  }

  .company-card-panel {
    min-height: 0;
    padding: 0 18px 18px;
  }

  .company-metrics {
    grid-template-columns: 1fr;
  }

  .company-metrics li {
    min-height: 108px;
  }

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

  .phone-frame,
  .vertical-copy {
    min-height: 520px;
  }

  .contact-shell {
    min-height: 360px;
  }
}

@media (max-width: 380px) {
  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-link,
  .text-link {
    width: 100%;
  }

  .text-link {
    font-family: var(--font-body);
    font-size: 0;
    letter-spacing: 0;
    text-transform: none;
  }

  .text-link::after {
    content: "Email Zinaida";
    font-family: var(--font-label);
    font-size: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  h1 {
    font-size: clamp(28px, 8.4vw, 38px);
  }

  .section-head h2,
  .about h2,
  .method h2,
  .contact h2 {
    font-size: clamp(25px, 7.6vw, 34px);
  }

  .about-copy h2 {
    font-size: clamp(25px, 8.6vw, 34px);
  }

  .about-copy p {
    font-size: 16px;
    line-height: 1.58;
  }

  .tile-copy {
    inset: auto 16px 16px;
  }
}

@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;
  }

  .hero-video,
  .work-video {
    transform: none !important;
  }
}

.company-case-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin-top: 18px;
  padding: 12px 16px;
  border: 1px solid var(--glass-line);
  border-radius: 999px;
  color: var(--ink);
  font-family: var(--font-label);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: border-color 180ms ease, color 180ms ease;
  width: fit-content;
}

.company-case-link:hover,
.company-case-link:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
}

.company-case-link span {
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 0;
}

body.case-open {
  overflow: hidden;
}

.case-modal {
  width: min(100vw, 100%);
  max-width: none;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  overflow: hidden;
}

.case-modal::backdrop {
  background: rgba(3, 5, 9, 0.78);
  backdrop-filter: blur(28px) saturate(1.15);
  -webkit-backdrop-filter: blur(28px) saturate(1.15);
  animation: case-backdrop-in 320ms var(--ease-out, ease-out) both;
}

@keyframes case-backdrop-in {
  from { opacity: 0; backdrop-filter: blur(0) saturate(1); -webkit-backdrop-filter: blur(0) saturate(1); }
  to   { opacity: 1; }
}

.case-modal[open] .case-modal-shell {
  animation: case-shell-in 420ms var(--ease-soft, cubic-bezier(0.22, 1, 0.36, 1)) both;
}

@keyframes case-shell-in {
  from { opacity: 0; transform: translateY(24px) scale(0.986); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.case-modal-shell {
  position: relative;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  background:
    radial-gradient(ellipse at 50% -30%, rgba(191, 232, 255, 0.12), transparent 50%),
    linear-gradient(180deg, #05070c 0%, #0b0f16 45%, #060809 100%);
  scroll-behavior: smooth;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.case-modal-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 14px clamp(16px, 3vw, 28px);
  background: rgba(6, 8, 12, 0.7);
  backdrop-filter: blur(22px) saturate(1.3);
  -webkit-backdrop-filter: blur(22px) saturate(1.3);
  border-bottom: 1px solid var(--glass-line);
}

.case-modal-crumb {
  font-family: var(--font-label);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.case-modal-nav {
  display: flex;
  justify-content: center;
  gap: 4px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.case-modal-nav::-webkit-scrollbar {
  display: none;
}

.case-modal-nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 9px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: rgba(245, 247, 251, 0.68);
  font-family: var(--font-label);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease;
}

.case-modal-nav-link:hover,
.case-modal-nav-link:focus-visible {
  border-color: rgba(245, 247, 251, 0.2);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
}

.case-modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--glass-line);
  border-radius: 999px;
  background: rgba(8, 11, 17, 0.55);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1;
  transition: border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.case-modal-close:hover,
.case-modal-close:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
  transform: rotate(90deg);
}

.case-modal-body {
  display: block;
}

.case-modal-loading {
  padding: clamp(80px, 18vh, 160px) 24px;
  font-family: var(--font-label);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-align: center;
  color: var(--ink-soft);
}

.case-modal .brand-back,
.case-modal .site-header,
.case-modal .skip-link {
  display: none !important;
}

.case-modal .brand-hero {
  min-height: clamp(440px, 64vh, 720px);
  padding-top: clamp(80px, 10vh, 120px);
}

@media (prefers-reduced-motion: reduce) {
  .case-modal::backdrop,
  .case-modal[open] .case-modal-shell {
    animation: none;
  }
  .case-modal-close {
    transition: none;
  }
}

@media (max-width: 760px) {
  .case-modal-header {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px 12px;
    padding: 12px 14px;
  }

  .case-modal-crumb {
    grid-column: 1;
    grid-row: 1;
  }

  .case-modal-close {
    grid-column: 2;
    grid-row: 1;
  }

  .case-modal-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    margin-inline: -2px;
    padding-bottom: 2px;
  }

  .case-modal-nav-link {
    min-height: 40px;
    padding-inline: 8px;
    font-size: 9px;
    letter-spacing: 0.07em;
  }
}

.company-case-rail {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: clamp(10px, 1vw, 16px);
  margin-top: clamp(12px, 1.4vw, 20px);
}

.company-case-rail-item {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(14px, 1.6vw, 20px);
  width: 100%;
  padding: clamp(18px, 2vw, 24px) clamp(20px, 2.2vw, 26px);
  border: 1px solid rgba(191, 232, 255, 0.3);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(191, 232, 255, 0.08) 0%, rgba(191, 232, 255, 0.18) 100%);
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  isolation: isolate;
  transition:
    transform 280ms var(--ease-out),
    border-color 280ms var(--ease-out),
    background 280ms var(--ease-out);
}

.company-case-rail-item::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 100% 0%, rgba(191, 232, 255, 0.28), transparent 60%);
  opacity: 0;
  transition: opacity 280ms var(--ease-out);
  z-index: -1;
  pointer-events: none;
}

.company-case-rail-item:hover,
.company-case-rail-item:focus-visible {
  transform: translateY(-2px);
  border-color: var(--accent);
  background: linear-gradient(135deg, rgba(191, 232, 255, 0.16) 0%, rgba(191, 232, 255, 0.32) 100%);
}

.company-case-rail-item:hover::before,
.company-case-rail-item:focus-visible::before {
  opacity: 1;
}

.company-case-rail-item:active {
  transform: translateY(0);
}

.company-case-rail-mark {
  position: relative;
  width: 10px;
  height: 10px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--accent);
}

.company-case-rail-mark::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  opacity: 0;
  animation: case-rail-pulse 2400ms var(--ease-out) infinite;
}

@keyframes case-rail-pulse {
  0%   { transform: scale(0.5); opacity: 0.6; }
  100% { transform: scale(2.2); opacity: 0; }
}

.company-case-rail-body {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.company-case-rail-eyebrow {
  font-family: var(--font-label);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}

.company-case-rail-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.1;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  color: var(--ink);
}

.company-case-rail-proof {
  font-family: var(--font-readable);
  font-size: 12px;
  line-height: 1.35;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.company-case-rail-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.company-case-rail-badge {
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--base);
  font-family: var(--font-label);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
}

.company-case-rail-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  color: var(--accent);
  font-size: 14px;
  background: transparent;
  transition:
    transform 260ms var(--ease-soft),
    background-color 260ms var(--ease-soft),
    color 260ms var(--ease-soft);
}

.company-case-rail-item:hover .company-case-rail-arrow,
.company-case-rail-item:focus-visible .company-case-rail-arrow {
  transform: translate(3px, -3px);
  background: var(--accent);
  color: var(--base);
}

@media (max-width: 980px) {
  .company-case-rail {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .company-case-rail-item {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: auto auto;
    row-gap: 10px;
  }
  .company-case-rail-body {
    grid-column: 2;
  }
  .company-case-rail-cta {
    grid-column: 1 / -1;
    justify-self: flex-end;
  }
  .company-case-rail-proof {
    -webkit-line-clamp: 3;
  }
}

@media (prefers-reduced-motion: reduce) {
  .company-case-rail-item,
  .company-case-rail-item::before,
  .company-case-rail-arrow {
    transition: none;
  }
  .company-case-rail-mark::after {
    animation: none;
  }
}
