/* Canvas & Core Labs: editorial dark theme */

:root {
  --bg: #08090c;
  --bg-2: #0e1014;
  --bg-3: #15181e;
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.18);
  --edge: rgba(255, 255, 255, 0.13); /* hairline around artwork so dark pieces read on the dark page */
  --text: #f2f3f5;
  --soft: #d6dae1;
  --muted: #a3a9b5;
  --dim: #6f7682;
  --accent: #4aa8ff;
  --display: "Inter Tight", "Inter", system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Inter", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --gutter: clamp(20px, 4vw, 56px);
  --max: 1440px;
  --r: 14px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --hdr: 72px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--hdr) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: 500; }
button { font: inherit; color: inherit; }
::selection { background: var(--accent); color: #04101f; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -999px; top: 12px; z-index: 100; background: var(--text); color: var(--bg); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 16px; }

/* ── Type ─────────────────────────────────────────────── */
.label {
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1.2rem;
}
.label__n { color: var(--accent); }
.display {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2.6rem, 6.2vw, 6.4rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  margin: 0 0 clamp(28px, 4vw, 52px);
  text-wrap: pretty;
}
.display--hero { font-size: clamp(2.8rem, 7.4vw, 8rem); }
.display--cs { font-size: clamp(2.4rem, 5.4vw, 5.6rem); }
.display em, .h2 em, .cta__title em, .mission em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  font-size: 1.04em;
}
.h2 { font-family: var(--display); font-weight: 500; font-size: clamp(2rem, 4.2vw, 4rem); line-height: 1; letter-spacing: -0.035em; text-wrap: pretty; }
.h3 { font-family: var(--display); font-weight: 500; font-size: clamp(1.45rem, 2.3vw, 2.1rem); line-height: 1.1; letter-spacing: -0.03em; margin-bottom: 14px; }
.lede { font-size: clamp(1.05rem, 1.3vw, 1.24rem); line-height: 1.55; color: var(--muted); max-width: 58ch; margin: 0; }
.note { font-size: 0.88rem; color: var(--dim); max-width: 86ch; margin-top: clamp(40px, 5vw, 64px); }

/* ── Buttons & links ──────────────────────────────────── */
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 50px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.95rem;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.25s var(--ease);
}
.btn--light { background: var(--text); color: var(--bg); }
.btn--light:hover { background: #fff; transform: translateY(-1px); }
.btn--ghost { border-color: var(--line-2); color: var(--text); background: transparent; }
.btn--ghost:hover { border-color: var(--text); }
.btn--sm { height: 40px; padding: 0 18px; font-size: 0.88rem; }
.btn--block { width: 100%; }
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  font-size: 0.95rem;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line-2);
  transition: border-color 0.2s;
}
.arrow-link span { transition: transform 0.3s var(--ease); }
.arrow-link:hover { border-color: var(--text); }
.arrow-link:hover span { transform: translateX(4px); }

/* ── Header ───────────────────────────────────────────── */
.hdr {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(8, 9, 12, 0.74);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.hdr.is-scrolled { border-bottom-color: var(--line); }
.hdr__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--hdr); }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 600; font-size: 1.04rem; letter-spacing: -0.015em; flex-shrink: 0; }
.brand img { border-radius: 8px; }
.brand i, .ftr__word i { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--accent); }
.nav { display: flex; align-items: center; gap: 30px; }
.nav__link { font-size: 0.93rem; color: var(--muted); transition: color 0.2s; }
.nav__link:hover, .nav__link.is-active { color: var(--text); }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 999px; background: none; cursor: pointer; position: relative; }
.nav-toggle span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--text); transition: transform 0.3s var(--ease), top 0.3s var(--ease); }
.nav-toggle span:first-child { top: 17px; }
.nav-toggle span:last-child { top: 25px; }
.nav-toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* ── Heroes ───────────────────────────────────────────── */
.hero { padding-top: clamp(64px, 10vw, 150px); padding-bottom: clamp(48px, 6vw, 90px); }
.page-hero { padding-top: clamp(56px, 8vw, 120px); padding-bottom: clamp(24px, 3vw, 40px); }
.hero__foot, .page-hero__foot, .cta__foot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px 48px;
  align-items: end;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}

/* ── Experience marquee: one bar, studio work then founder's in-house experience ── */
.marquee { padding: clamp(30px, 3.4vw, 46px) 0; border-block: 1px solid var(--line); }
.marquee__viewport { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.marquee__track { display: flex; width: max-content; animation: marquee 80s linear infinite; }
.marquee ul { display: flex; align-items: center; gap: clamp(36px, 4.5vw, 68px); list-style: none; margin: 0; padding: 0 clamp(18px, 2.2vw, 34px); }
.marquee li { white-space: nowrap; }
.marquee__name { font-family: var(--display); font-weight: 500; font-size: clamp(1.35rem, 2.2vw, 2.1rem); letter-spacing: -0.025em; }
.marquee__name--studio { color: var(--text); }
.marquee__name--prior { color: var(--muted); }
.marquee__tag { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; }
.marquee__tag--studio { color: var(--accent); border-color: currentColor; }
.marquee__tag--prior { color: var(--muted); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ── Sections ─────────────────────────────────────────── */
.section { padding-block: clamp(72px, 10vw, 150px); }
.section--tight { padding-block: clamp(24px, 4vw, 56px); }
.section--panel { background: var(--bg-2); border-block: 1px solid var(--line); }
.sec-head { margin-bottom: clamp(36px, 5vw, 64px); }
.sec-head .label { margin-bottom: clamp(18px, 2vw, 26px); }
.sec-head__main { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 24px 56px; align-items: end; }
.sec-head__side p { color: var(--muted); margin-bottom: 14px; }

/* ── Work tiles ───────────────────────────────────────── */
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(48px, 6vw, 96px) clamp(20px, 3vw, 48px); }
.tiles--stagger { padding-bottom: clamp(0px, 9vw, 140px); }
.tiles--stagger .tile:nth-child(even) { position: relative; top: clamp(0px, 9vw, 140px); }
.tile { display: block; }
.tile.is-hidden, .grid-divider.is-hidden { display: none; }
.grid-divider { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px clamp(20px, 3vw, 40px); padding-top: clamp(18px, 2vw, 26px); border-top: 1px solid var(--line); }
.grid-divider .label { margin: 0; color: var(--text); }
.grid-divider__note { margin: 0; font-size: 0.88rem; color: var(--dim); max-width: 64ch; }
.tile__media { position: relative; overflow: hidden; border-radius: var(--r); background: var(--bg-3); aspect-ratio: 4 / 3; box-shadow: 0 0 0 1px var(--edge); }
.tile__media img, .tile__media video { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.tile:hover .tile__media img, .tile:hover .tile__media video { transform: scale(1.035); }
.tile__media .tile__img--top { object-position: 50% 0; }
.tile__media .tile__img--bottom { object-position: 50% 100%; }
.tile__media .tile__img--left { object-position: 0 50%; }
.tile__phones { display: flex; align-items: center; justify-content: center; gap: 2.5%; height: 100%; padding: 7% 4%; transition: transform 1s var(--ease); }
.tile__media .tile__phones img { width: auto; height: 100%; min-width: 0; object-fit: contain; border-radius: 6%/2.8%; transform: none; }
.tile:hover .tile__phones { transform: scale(1.035); }
.tile:hover .tile__media .tile__phones img { transform: none; }
.badge {
  position: absolute;
  left: 16px;
  top: 16px;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  background: rgba(8, 9, 12, 0.7);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line-2);
  padding: 6px 11px;
  border-radius: 999px;
}
.tile__meta { display: flex; justify-content: space-between; gap: 16px; margin: 20px 0 8px; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); }
.tile__title { font-family: var(--display); font-weight: 500; font-size: clamp(1.3rem, 1.9vw, 1.8rem); line-height: 1.15; letter-spacing: -0.022em; max-width: 30ch; transition: color 0.2s; }

.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: clamp(32px, 4vw, 56px); }
.chip { height: 42px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--muted); font-size: 0.9rem; font-weight: 500; cursor: pointer; transition: color 0.2s, background 0.2s, border-color 0.2s; }
.chip:hover { color: var(--text); border-color: var(--text); }
.chip.is-on { background: var(--text); color: var(--bg); border-color: var(--text); }

/* ── Stats ────────────────────────────────────────────── */
.stats { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); border-block: 1px solid var(--line); }
.stat { display: flex; flex-direction: column; gap: 12px; padding: clamp(26px, 3vw, 40px) 24px clamp(26px, 3vw, 40px) 0; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--line); }
.stat__v { font-family: var(--display); font-weight: 500; font-size: clamp(2.4rem, 4.6vw, 4.6rem); line-height: 1; letter-spacing: -0.045em; }
.stat__l { color: var(--muted); font-size: 0.95rem; max-width: 24ch; }

/* ── Capability rows & cards ──────────────────────────── */
.caprows { list-style: none; margin-top: 0; margin-bottom: 0; }
.caprows li { border-top: 1px solid var(--line); }
.caprows li:last-child { border-bottom: 1px solid var(--line); }
.caprow { display: grid; grid-template-columns: 64px minmax(0, 1.3fr) minmax(0, 1fr) 40px; gap: 24px; align-items: center; padding: clamp(22px, 2.6vw, 36px) 0; transition: padding 0.4s var(--ease); }
.caprow__n { font-family: var(--mono); font-size: 0.8rem; color: var(--dim); transition: color 0.25s; }
.caprow__title { font-family: var(--display); font-weight: 500; font-size: clamp(1.5rem, 3vw, 2.7rem); line-height: 1.05; letter-spacing: -0.03em; }
.caprow__body { color: var(--muted); font-size: 0.98rem; }
.caprow__arrow { justify-self: end; font-size: 1.4rem; color: var(--dim); transition: transform 0.3s var(--ease), color 0.25s; }
.caprow:hover { padding-left: 14px; }
.caprow:hover .caprow__n, .caprow:hover .caprow__arrow { color: var(--accent); }
.caprow:hover .caprow__arrow { transform: translateX(6px); }

.capcards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(32px, 4vw, 56px) clamp(20px, 2.4vw, 32px); }
.capcard__media { overflow: hidden; border-radius: var(--r); aspect-ratio: 4 / 3; background: var(--bg-3); }
.capcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.capcard:hover .capcard__media img { transform: scale(1.035); }
.capcard h3 { font-family: var(--display); font-size: 1.45rem; letter-spacing: -0.022em; margin: 20px 0 6px; }
.capcard p { color: var(--muted); font-size: 0.93rem; margin: 0; }

/* ── Motion & YouTube ─────────────────────────────────── */
.motion { display: grid; gap: clamp(16px, 2vw, 28px); }
.motion__more { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.yt-item { margin: 0; }
.yt { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; border-radius: var(--r); overflow: hidden; background: #000; cursor: pointer; }
.yt img { width: 100%; height: 100%; object-fit: cover; opacity: 0.9; transition: transform 1s var(--ease), opacity 0.3s; }
.yt:hover img { transform: scale(1.03); opacity: 1; }
.yt__play { position: absolute; left: 50%; top: 50%; width: 68px; height: 68px; margin: -34px 0 0 -34px; border-radius: 50%; background: rgba(255, 255, 255, 0.94); transition: transform 0.3s var(--ease); }
.yt__play::after { content: ""; position: absolute; left: 27px; top: 22px; border-style: solid; border-width: 12px 0 12px 19px; border-color: transparent transparent transparent var(--bg); }
.yt-item--feature .yt__play { width: 96px; height: 96px; margin: -48px 0 0 -48px; }
.yt-item--feature .yt__play::after { left: 38px; top: 32px; border-width: 16px 0 16px 25px; }
.yt:hover .yt__play { transform: scale(1.08); }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-item figcaption { margin-top: 14px; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); }
.yt-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); margin-top: clamp(24px, 3vw, 40px); }
.yt-grid--wide { grid-template-columns: 1fr; max-width: 1080px; margin-inline: auto; }
.yt-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ── Packages & services ──────────────────────────────── */
.pkgs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); align-items: stretch; }
.pkg { position: relative; display: flex; flex-direction: column; background: var(--bg-2); border: 1px solid var(--line); border-radius: 18px; padding: clamp(26px, 2.6vw, 38px); scroll-margin-top: calc(var(--hdr) + 32px); }
.pkg--featured { background: linear-gradient(180deg, #111724, var(--bg-2) 70%); border-color: rgba(74, 168, 255, 0.55); }
.pkg__flag { position: absolute; top: -12px; left: clamp(26px, 2.6vw, 38px); font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; background: var(--accent); color: #04101f; padding: 5px 11px; border-radius: 999px; }
.pkg__name { font-family: var(--display); font-size: 1.65rem; letter-spacing: -0.025em; }
.pkg__hook { color: var(--muted); margin: 6px 0 0; }
.pkg__price { font-family: var(--display); font-weight: 500; font-size: clamp(1.9rem, 2.7vw, 2.5rem); line-height: 1.1; letter-spacing: -0.035em; margin: 30px 0 4px; }
.pkg__time { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.07em; text-transform: uppercase; color: var(--dim); margin-bottom: 26px; }
.pkg__intro { padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.95rem; }
.pkg .checks { margin-bottom: 24px; }
.pkg__best { margin-top: auto; font-size: 0.92rem; color: var(--muted); }
.pkg__best strong { display: block; font-family: var(--mono); font-weight: 500; font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text); margin-bottom: 4px; }
.pkg .btn--block { margin-top: 20px; }
.pkg > .arrow-link { margin-top: auto; align-self: flex-start; }

.checks { list-style: none; margin: 0 0 1em; padding: 0; display: grid; gap: 11px; }
.checks li { position: relative; padding-left: 26px; font-size: 0.95rem; color: var(--soft); }
.checks li::before { content: ""; position: absolute; left: 1px; top: 0.48em; width: 11px; height: 6px; border-left: 1.5px solid var(--accent); border-bottom: 1.5px solid var(--accent); transform: rotate(-45deg); }

.build { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: center; border: 1px solid var(--line); border-radius: 18px; padding: clamp(28px, 3.4vw, 52px); background: radial-gradient(120% 160% at 100% 0%, rgba(74, 168, 255, 0.13), transparent 55%), var(--bg-2); }
.build p { color: var(--muted); max-width: 64ch; margin: 0; }
.build .label { margin-bottom: 14px; }
.build__side { display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }
.build .build__price { font-family: var(--display); font-size: 1.15rem; color: var(--text); white-space: nowrap; }

.tiers, .reasons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }
.tier, .step { border-top: 1px solid var(--line-2); padding-top: 24px; }
.tier h3, .step h3 { font-family: var(--display); font-size: 1.4rem; letter-spacing: -0.02em; margin-bottom: 8px; }
.tier__price { font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.04em; color: var(--accent); margin-bottom: 12px; }
.tier p:last-child, .step p { color: var(--muted); font-size: 0.95rem; margin: 0; }
.steps { list-style: none; margin-top: 0; margin-bottom: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }
.step__n, .reason__n { display: block; font-family: var(--mono); font-size: 0.78rem; color: var(--accent); margin-bottom: 30px; }
.reason { background: var(--bg-2); border: 1px solid var(--line); border-radius: 18px; padding: clamp(26px, 2.6vw, 38px); }
.reason h3 { font-family: var(--display); font-size: clamp(1.35rem, 1.9vw, 1.7rem); line-height: 1.12; letter-spacing: -0.025em; margin-bottom: 12px; }
.reason p { color: var(--muted); margin: 0; }

.team { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 48px); }
.person { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 22px; border-top: 1px solid var(--line-2); padding-top: 28px; }
.person__avatar { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-weight: 600; color: #fff; background: linear-gradient(135deg, var(--accent), #1a3557); }
.person h3 { font-family: var(--display); font-size: 1.55rem; letter-spacing: -0.022em; }
.person__role { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.07em; text-transform: uppercase; color: var(--accent); margin: 6px 0 12px; }
.person p:last-child { color: var(--muted); margin: 0; }

.mission { font-family: var(--display); font-weight: 500; font-size: clamp(1.7rem, 3.6vw, 3.3rem); line-height: 1.12; letter-spacing: -0.03em; max-width: 30ch; margin: 0; }

/* ── CTA & footer ─────────────────────────────────────── */
.cta { padding-block: clamp(90px, 12vw, 180px); }
.cta__title { font-family: var(--display); font-weight: 500; font-size: clamp(3rem, 8.4vw, 9rem); line-height: 0.95; letter-spacing: -0.045em; margin-bottom: clamp(28px, 4vw, 52px); }
.ftr { border-top: 1px solid var(--line); padding-top: clamp(48px, 6vw, 84px); overflow: hidden; }
.ftr__top { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 32px; margin-bottom: clamp(56px, 8vw, 120px); }
.ftr__pitch { font-family: var(--display); font-weight: 500; font-size: clamp(1.3rem, 2vw, 1.8rem); line-height: 1.2; letter-spacing: -0.02em; max-width: 24ch; margin: 0; }
.ftr__nav { display: grid; gap: 10px; align-content: start; }
.ftr__nav a { color: var(--muted); transition: color 0.2s; }
.ftr__nav a:hover { color: var(--text); }
.ftr__contact .label { margin-bottom: 10px; }
.ftr__contact a { font-size: 1.05rem; border-bottom: 1px solid var(--line-2); padding-bottom: 3px; }
.ftr__word { font-family: var(--display); font-weight: 600; font-size: clamp(2.4rem, 11vw, 10.2rem); line-height: 0.86; letter-spacing: -0.05em; white-space: nowrap; margin: 0; }
.ftr__legal { font-family: var(--mono); font-size: 0.72rem; color: var(--dim); border-top: 1px solid var(--line); margin: 28px 0 0; padding-block: 22px 30px; }

/* ── Case studies ─────────────────────────────────────── */
.cs-hero { padding-top: clamp(36px, 5vw, 80px); }
.back { display: inline-block; font-size: 0.9rem; color: var(--muted); margin-bottom: clamp(28px, 4vw, 56px); transition: color 0.2s; }
.back:hover { color: var(--text); }
.cs-hero__grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); border-top: 1px solid var(--line); padding-top: 28px; }
.facts { margin: 0; }
.facts div { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.facts div:first-child { padding-top: 0; }
.facts dt { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); padding-top: 4px; }
.facts dd { margin: 0; font-size: 0.95rem; color: var(--soft); }
.cs-cover { margin-block: clamp(40px, 5vw, 72px); }
.cs-cover img, .cs-cover video { display: block; width: 100%; height: auto; border-radius: var(--r); box-shadow: 0 0 0 1px var(--edge); }
.cs-blocks { display: grid; gap: clamp(36px, 4vw, 56px); padding-block: clamp(16px, 3vw, 48px); }
.cs-block { display: grid; grid-template-columns: minmax(170px, 3fr) 9fr; gap: 24px; border-top: 1px solid var(--line); padding-top: 24px; }
.cs-block__h { font-family: var(--mono); font-weight: 400; font-size: 0.76rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding-top: 0.6em; }
.cs-block p { font-size: clamp(1.1rem, 1.5vw, 1.36rem); line-height: 1.55; color: var(--soft); max-width: 60ch; }
.cs-block .checks li { font-size: 1.02rem; }
.cs-metric { display: flex; flex-direction: column; gap: 10px; padding-block: 16px 32px; }
.stats--cs { margin-block: clamp(24px, 4vw, 56px); }
/* Five stats in one row: smaller figures, each kept on one line */
.stats--5 .stat__v { font-size: clamp(2rem, 3.4vw, 3.4rem); white-space: nowrap; }
.comps { display: grid; gap: clamp(16px, 2vw, 28px); }
section.comps { margin-block: clamp(24px, 4vw, 56px); }
.cs-sec > .comps, .cs-sec > .phones, .cs-sec > .yt-grid { margin-top: clamp(28px, 3vw, 44px); }
.comp { margin: 0; border-radius: var(--r); overflow: hidden; background: var(--bg-3); box-shadow: 0 0 0 1px var(--edge); }
.comp img, .comp video { width: 100%; }
/* White boards get the same breathing room as on the portfolio; prepadded overrides carry their own */
.comp--white { background: #fff; padding: clamp(20px, 3vw, 52px); }
.comp--white.comp--prepadded { padding: 0; }
.comp--pad { padding: clamp(16px, 3vw, 48px); background: var(--bg-2); }
.comp--scroll { background: var(--bg-2); padding: clamp(12px, 2vw, 24px); }
.comp--scroll figcaption { text-align: center; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); padding-top: 14px; }
.scrollframe { height: min(78vh, 820px); overflow-y: auto; overscroll-behavior: contain; border-radius: 10px; }
.scrollframe--mobile { max-width: 420px; margin-inline: auto; }
.cs-sec { padding-top: clamp(64px, 8vw, 120px); }
.cs-sec__head { display: grid; grid-template-columns: minmax(170px, 3fr) 9fr; gap: 24px; border-top: 1px solid var(--line); padding-top: 28px; margin-bottom: 22px; }
/* Fortinet: no rule above the first section, right under the stats band */
.case-fortinet section[aria-label="Results"] + .cs-sec .cs-sec__head { border-top: 0; padding-top: 0; }
.cs-sec__n { font-family: var(--mono); font-size: 0.85rem; color: var(--accent); padding-top: 0.9em; }
.cs-sec__head .label { margin: 14px 0 0; }
.cs-sec__body { margin-left: calc((100% - 24px) / 4 + 24px); max-width: 68ch; }
.cs-sec__body p { color: var(--muted); font-size: 1.05rem; line-height: 1.7; }
.cs-sub { display: grid; grid-template-columns: minmax(170px, 3fr) 9fr; gap: 8px 24px; margin-top: clamp(48px, 6vw, 84px); }
.cs-sub > .h3 { font-size: clamp(1.3rem, 1.8vw, 1.6rem); }
.cs-sub p { color: var(--muted); max-width: 66ch; }
.cs-sub > .phones { grid-column: 1 / -1; margin-top: 24px; }
.phones { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(16px, 2.4vw, 36px); padding: clamp(28px, 4vw, 60px); background: var(--bg-2); border: 1px solid var(--line); border-radius: 18px; }
.phone { margin: 0; width: clamp(140px, 15vw, 230px); }
.phone img { width: 100%; border-radius: 20px; box-shadow: 0 0 0 1px var(--edge), 0 30px 60px -30px rgba(0, 0, 0, 0.85); }
.site-frame { margin: clamp(28px, 3vw, 44px) auto 0; max-width: 1080px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line-2); background: #0d0f13; box-shadow: 0 50px 100px -50px rgba(0, 0, 0, 0.9); }
.site-frame__bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: #14171d; border-bottom: 1px solid var(--line); }
.site-frame__bar i { width: 11px; height: 11px; border-radius: 50%; background: #2b3038; }
.site-frame__bar span { margin-left: 12px; font-family: var(--mono); font-size: 0.74rem; color: var(--muted); background: var(--bg); padding: 5px 14px; border-radius: 999px; }
.site-frame__view { height: min(74vh, 720px); overflow-y: auto; overscroll-behavior: contain; }
.site-frame__view img { width: 100%; }
.site-frame__foot { display: flex; justify-content: center; align-items: center; gap: 20px; margin-top: 20px; }
.site-frame__foot .label { margin: 0; }
.cs-next { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); gap: clamp(24px, 4vw, 64px); align-items: center; margin-top: clamp(80px, 10vw, 150px); padding-top: 32px; border-top: 1px solid var(--line); }
.cs-next__title { font-family: var(--display); font-weight: 500; font-size: clamp(1.8rem, 3.6vw, 3.4rem); line-height: 1.02; letter-spacing: -0.035em; margin: 0; }
.cs-next__title span { display: inline-block; transition: transform 0.35s var(--ease); }
.cs-next:hover .cs-next__title span { transform: translateX(8px); }
.cs-next__media { overflow: hidden; border-radius: var(--r); aspect-ratio: 16 / 10; background: var(--bg-3); box-shadow: 0 0 0 1px var(--edge); }
.cs-next__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.cs-next:hover .cs-next__media img { transform: scale(1.035); }

/* ── Capability galleries ─────────────────────────────── */
.split { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); margin-top: clamp(24px, 4vw, 48px); }
.split .h3, .cap-block .h3 { margin-bottom: 24px; }
.cap-block { margin-top: clamp(48px, 6vw, 96px); }
.masonry { columns: 3; column-gap: clamp(12px, 1.6vw, 20px); }
.masonry--2 { columns: 2; }
.stack { display: grid; gap: clamp(12px, 1.6vw, 20px); align-content: start; }
.twocol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 20px); }
.gtile { display: block; break-inside: avoid; margin-bottom: clamp(12px, 1.6vw, 20px); border-radius: 10px; overflow: hidden; background: var(--bg-3); cursor: zoom-in; }
.stack .gtile { margin-bottom: 0; }
.gtile img, .gtile video { width: 100%; transition: transform 0.8s var(--ease); }
.gtile:hover img { transform: scale(1.02); }
.lb { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 4vh 4vw; background: rgba(5, 6, 8, 0.94); cursor: zoom-out; }
.lb img, .lb video { max-width: 100%; max-height: 92vh; width: auto; border-radius: 8px; }

/* ── Products ─────────────────────────────────────────── */
.product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; padding-block: clamp(56px, 8vw, 110px); border-top: 1px solid var(--line); }
.product__tagline { font-family: var(--display); font-size: 1.4rem; letter-spacing: -0.02em; margin: 14px 0 18px; }
.product__copy > p { color: var(--muted); }
.product__copy .checks { margin: 24px 0 28px; }
.product__copy .more-links { margin: -8px 0 28px; }
.more-links a { color: var(--text); border-bottom: 1px solid var(--line-2); transition: border-color 0.2s; }
.more-links a:hover { border-color: var(--accent); }
.product__screens { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); max-width: 540px; width: 100%; justify-self: center; }
.product__screens .phone { width: auto; }
.badges { display: flex; gap: 12px; margin-top: 22px; }
.badges img { height: 40px; width: auto; }

/* ── Reveal on scroll ─────────────────────────────────── */
.js .rv { opacity: 0; transform: translateY(22px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.js .rv.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js .rv { opacity: 1; transform: none; transition: none; }
  .marquee__track { animation: none; }
  * { scroll-behavior: auto !important; }
}

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 1080px) {
  .nav { position: fixed; inset: var(--hdr) 0 auto 0; flex-direction: column; align-items: flex-start; gap: 4px; padding: 20px var(--gutter) 32px; background: var(--bg); border-bottom: 1px solid var(--line); display: none; }
  .nav.is-open { display: flex; }
  .nav__link { font-family: var(--display); font-size: 1.9rem; letter-spacing: -0.02em; color: var(--text); padding: 4px 0; }
  .nav .btn { margin-top: 16px; }
  .nav-toggle { display: block; }
  .hero__foot, .page-hero__foot, .cta__foot { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .sec-head__main, .cs-block, .cs-sec__head, .cs-sub, .cs-hero__grid { grid-template-columns: minmax(0, 1fr); }
  .cs-block__h, .cs-sec__n { padding-top: 0; }
  .cs-sec__body { margin-left: 0; }
  .pkgs, .reasons, .tiers { grid-template-columns: minmax(0, 1fr); max-width: 680px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .stats:not(.stats--cs) .stat:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .capcards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .caprow { grid-template-columns: 44px minmax(0, 1fr) 28px; grid-template-areas: "n t a" ". b ."; row-gap: 8px; }
  .caprow__n { grid-area: n; }
  .caprow__title { grid-area: t; }
  .caprow__body { grid-area: b; }
  .caprow__arrow { grid-area: a; }
  .split, .product, .cs-next { grid-template-columns: minmax(0, 1fr); }
  .masonry { columns: 2; }
  .ftr__top { grid-template-columns: 1fr 1fr; }
  .ftr__pitch { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  .tiles { grid-template-columns: minmax(0, 1fr); }
  .tiles--stagger { padding-bottom: 0; }
  .tiles--stagger .tile:nth-child(even) { top: 0; }
  .hero__foot, .page-hero__foot, .cta__foot, .build { grid-template-columns: minmax(0, 1fr); }
  .build__side { align-items: flex-start; }
  .team, .steps, .capcards, .twocol { grid-template-columns: minmax(0, 1fr); }
  .motion__more, .yt-grid, .yt-grid--3 { grid-template-columns: minmax(0, 1fr); }
  .masonry, .masonry--2 { columns: 1; }
  .stat { padding-right: 12px; }
  .stat + .stat { padding-left: 12px; }
  .stat:nth-child(3) { padding-left: 0; }
  .tile__meta { flex-direction: column; gap: 4px; }
  .facts div { grid-template-columns: 96px minmax(0, 1fr); }
  .ftr__top { grid-template-columns: minmax(0, 1fr); }
  .site-frame__foot { flex-direction: column; }
  .phone { width: calc(50% - 12px); }
}
.note--top { margin-top: 0; }
/* Email column scrolls inside the height of the ads column */
.split > div:last-child { contain: size; display: flex; flex-direction: column; }
.scrollbox { flex: 1 1 0; min-height: 0; overflow-y: auto; overscroll-behavior: contain; border-radius: 10px; }
.scroll-hint { margin: 14px 0 0; text-align: center; color: var(--dim); }
@media (max-width: 1080px) {
  .split > div:last-child { contain: none; }
  .scrollbox { flex: none; max-height: 80vh; }
}

/* ── Capability pages: case-study groups, then more work ── */
.caplabel { margin-top: clamp(40px, 5vw, 64px); }
.caplabel .label { color: var(--accent); }
.caplabel--more { margin-top: clamp(96px, 11vw, 160px); }
.caplabel--more .label { padding-top: 28px; border-top: 1px solid var(--line-2); }
.capproj-wrap { margin-top: clamp(56px, 7vw, 96px); }
.capproj { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; padding-top: 24px; border-top: 1px solid var(--line-2); }
.capproj .h3 { margin: 8px 0 0; }
.capproj-wrap + .cs-sec { padding-top: clamp(28px, 3vw, 44px); }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); margin-top: clamp(28px, 3vw, 44px); }
.grid2 .comp { margin: 0; }
.person__cred { display: inline-flex; align-items: center; margin: 10px 0 8px; padding: 6px 14px; border-radius: 999px; border: 1px solid rgba(74, 168, 255, 0.45); background: rgba(74, 168, 255, 0.1); color: #a9d4ff; font-size: 0.86rem; font-weight: 600; }
@media (max-width: 760px) {
  .grid2 { grid-template-columns: minmax(0, 1fr); }
  .capproj { flex-direction: column; align-items: flex-start; }
}
.captiles { margin-top: clamp(24px, 3vw, 40px); }
.comp--light, .comp--pad.comp--light { background: #eceef2; }
.cs-sec > .cs-twocol { margin-top: clamp(28px, 3vw, 44px); }

/* ── Contact ──────────────────────────────────────────── */
.contact { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.cform { display: grid; gap: 26px; }
.cform__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.field { display: grid; gap: 10px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field label, .field legend { font-family: var(--mono); font-size: 0.76rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding: 0; }
.field legend { margin-bottom: 10px; }
.field__hint { color: var(--dim); text-transform: none; letter-spacing: 0; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--text); background: var(--bg-2);
  border: 1px solid var(--line-2); border-radius: 10px; padding: 14px 16px; transition: border-color 0.2s;
}
.field textarea { resize: vertical; min-height: 150px; line-height: 1.5; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 44px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field ::placeholder { color: var(--dim); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.field .chip-opt { position: relative; font-family: var(--sans); font-size: inherit; letter-spacing: 0; text-transform: none; color: inherit; }
.chip-opt input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.chip-opt span { display: inline-flex; align-items: center; height: 42px; padding: 0 18px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 0.93rem; color: var(--soft); cursor: pointer; transition: border-color 0.2s, background 0.2s, color 0.2s; }
.chip-opt input:checked + span { background: var(--text); border-color: var(--text); color: var(--bg); }
.chip-opt input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }
.cform__trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.cform__foot { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.cform__status { margin: 0; font-size: 0.95rem; color: var(--muted); }
.cform__status.is-ok { color: #8ff5c1; }
.cform__status.is-err { color: #ff9b8f; }
.cform.is-sent .field, .cform.is-sent .cform__row { opacity: 0.5; pointer-events: none; }
.contact__side { border-top: 1px solid var(--line); padding-top: 22px; position: sticky; top: calc(var(--hdr) + 32px); }
.contact__email { font-family: var(--display); font-size: clamp(1.25rem, 1.9vw, 1.6rem); letter-spacing: -0.01em; margin: 0 0 18px; word-break: break-word; }
.contact__email a:hover { color: var(--accent); }
@media (max-width: 860px) {
  .contact { grid-template-columns: minmax(0, 1fr); }
  .contact__side { position: static; }
}
@media (max-width: 560px) {
  .cform__row { grid-template-columns: minmax(0, 1fr); }
}
.pkgs__more { margin-top: clamp(20px, 2.4vw, 32px); }
.field .check-opt { position: relative; display: inline-flex; align-items: center; gap: 12px; margin-top: 16px; font-family: var(--sans); font-size: 0.95rem; letter-spacing: 0; text-transform: none; color: var(--soft); cursor: pointer; }
.check-opt input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.check-opt > span::before { content: ""; display: inline-block; width: 20px; height: 20px; margin-right: 12px; vertical-align: -4px; border: 1px solid var(--line-2); border-radius: 6px; background: var(--bg-2) center / 12px no-repeat; transition: background-color 0.2s, border-color 0.2s; }
.check-opt input:checked + span::before { background-color: var(--text); border-color: var(--text); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.3l2.3 2.3 4.7-5' fill='none' stroke='%2308090c' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.check-opt input:focus-visible + span::before { outline: 2px solid var(--accent); outline-offset: 3px; }
