/* =========================================================================
   InstaDesign — rebuild
   Design system + homepage styles
   ========================================================================= */

/* ---------- 1. Tokens ---------- */
:root {
  /* Brand — evolved from the existing logo blue/red */
  --ink:        #0A1622;
  --ink-800:    #10243A;
  --ink-700:    #17324D;

  --blue-700:   #075A96;
  --blue-600:   #0B74BE;
  --blue-500:   #128FE0;
  --blue-300:   #6EC4F2;
  --blue-100:   #D6ECFA;
  --blue-050:   #EFF7FD;

  --red:        #E8232A;
  --red-dark:   #C4141B;

  /* Neutrals — slightly cool, reads as "technical" */
  --paper:      #FFFFFF;
  --paper-2:    #F5F7FA;
  --paper-3:    #ECF0F5;
  --line:       #DDE4EC;
  --line-soft:  #E9EEF4;
  --grey-600:   #5A6B7D;
  --grey-500:   #7A8899;

  /* Type */
  --font-display: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-body:    "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Rhythm */
  --gutter: clamp(20px, 5vw, 64px);
  --maxw: 1320px;
  --section-y: clamp(72px, 9vw, 148px);
  --radius: 4px;
  --radius-lg: 10px;

  /* Motion */
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* ---------- 2. Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

::selection { background: var(--blue-500); color: #fff; }

:focus-visible {
  outline: 2px solid var(--blue-500);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 999;
  background: var(--ink);
  color: #fff;
  padding: 12px 18px;
  border-radius: var(--radius);
}
.skip-link:focus { left: 12px; }

/* ---------- 3. Layout helpers ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); position: relative; }

.section--tight { padding-block: clamp(48px, 6vw, 88px); }

/* Blueprint grid — the recurring "engineering drawing" motif */
.grid-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(10, 22, 34, .045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(10, 22, 34, .045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 100%);
  pointer-events: none;
}

.grid-bg--dark::before {
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, .06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, .06) 1px, transparent 1px);
}

/* ---------- 4. Type utilities ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--blue-600);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
  opacity: .55;
}
.eyebrow--light { color: var(--blue-300); }

.h-xl { font-size: clamp(40px, 6.6vw, 88px); }
.h-lg { font-size: clamp(32px, 4.4vw, 60px); }
.h-md { font-size: clamp(24px, 2.6vw, 36px); }
.h-sm { font-size: clamp(19px, 1.6vw, 23px); letter-spacing: -0.015em; }

.lede {
  font-size: clamp(17px, 1.35vw, 20px);
  line-height: 1.65;
  color: var(--grey-600);
}
.lede--light { color: rgba(255, 255, 255, .72); }

.muted { color: var(--grey-600); }

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .82fr);
  gap: clamp(24px, 4vw, 72px);
  align-items: end;
  margin-bottom: clamp(36px, 4.5vw, 68px);
}
@media (max-width: 860px) {
  .section-head { grid-template-columns: 1fr; align-items: start; }
}
.section-head__title { margin-top: 18px; }

/* ---------- 5. Buttons ---------- */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: #fff;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 15px 26px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border-radius: 999px;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.01em;
  overflow: hidden;
  isolation: isolate;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--blue-600);
  transform: translateY(101%);
  transition: transform .45s var(--ease-out);
  z-index: -1;
}
.btn:hover::before { transform: translateY(0); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px -12px rgba(11, 116, 190, .65); }

.btn__arrow { transition: transform .35s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }

.btn--accent { --btn-bg: var(--red); }
.btn--accent::before { background: var(--red-dark); }
.btn--accent:hover { box-shadow: 0 12px 28px -12px rgba(232, 35, 42, .6); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  border: 1px solid var(--line);
}
.btn--ghost::before { background: var(--ink); }
.btn--ghost:hover { --btn-fg: #fff; border-color: var(--ink); }

.btn--ghost-light {
  --btn-bg: transparent;
  --btn-fg: #fff;
  border: 1px solid rgba(255, 255, 255, .28);
}
.btn--ghost-light::before { background: #fff; }
.btn--ghost-light:hover { --btn-fg: var(--ink); border-color: #fff; }

/* Text link with animated rule */
.link-line {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 500;
  font-size: 15px;
  color: var(--blue-600);
  padding-bottom: 3px;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size .4s var(--ease-out);
}
.link-line:hover { background-size: 100% 1px; }

/* ---------- 6. Header ---------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: transform .45s var(--ease), background .35s var(--ease), box-shadow .35s var(--ease);
}
.header::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
  opacity: 0;
  transition: opacity .35s var(--ease);
  z-index: -1;
}
.header.is-stuck::after { opacity: 1; }
.header.is-hidden { transform: translateY(-100%); }

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 78px;
}

.logo { display: flex; align-items: center; }
.logo img { height: 26px; width: auto; }

.nav { display: flex; align-items: center; gap: 4px; }

.nav__item { position: relative; }

.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  border-radius: var(--radius);
  transition: color .25s var(--ease), background .25s var(--ease);
}
.nav__link:hover { color: var(--blue-600); background: var(--blue-050); }

.nav__caret { transition: transform .3s var(--ease); }
.nav__item:hover .nav__caret { transform: rotate(180deg); }

/* Dropdown */
.nav__panel {
  position: absolute;
  top: calc(100% + 10px);
  left: -8px;
  min-width: 292px;
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 48px -24px rgba(10, 22, 34, .28);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .28s var(--ease), transform .28s var(--ease), visibility .28s;
}
.nav__item:hover .nav__panel,
.nav__item:focus-within .nav__panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav__panel a {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 11px 14px;
  border-radius: var(--radius);
  transition: background .22s var(--ease);
}
.nav__panel a:hover { background: var(--paper-2); }
.nav__panel strong { font-size: 14.5px; font-weight: 550; }
.nav__panel span { font-size: 12.5px; color: var(--grey-500); line-height: 1.45; }

.header__actions { display: flex; align-items: center; gap: 14px; }

.lang {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
}
.lang a,
.lang .lang__current {
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--grey-500);
  transition: background .25s var(--ease), color .25s var(--ease);
}
.lang a:hover { color: var(--ink); background: var(--paper-2); }
.lang .lang__current { background: var(--ink); color: #fff; }

.burger { display: none; width: 42px; height: 42px; align-items: center; justify-content: center; }
.burger span {
  display: block;
  width: 20px; height: 1.5px;
  background: var(--ink);
  position: relative;
  transition: background .2s var(--ease);
}
.burger span::before, .burger span::after {
  content: ""; position: absolute; left: 0;
  width: 20px; height: 1.5px; background: var(--ink);
  transition: transform .35s var(--ease);
}
.burger span::before { top: -6px; }
.burger span::after  { top: 6px; }
body.nav-open .burger span { background: transparent; }
body.nav-open .burger span::before { transform: translateY(6px) rotate(45deg); }
body.nav-open .burger span::after  { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1080px) {
  .nav, .header__actions .btn { display: none; }
  .burger { display: flex; }
}

/* Mobile drawer */
.drawer {
  position: fixed;
  inset: 78px 0 0 0;
  background: #fff;
  z-index: 99;
  padding: 28px var(--gutter) 48px;
  overflow-y: auto;
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
}
body.nav-open .drawer { opacity: 1; visibility: visible; transform: translateY(0); }
body.nav-open { overflow: hidden; }
.drawer a {
  display: block;
  padding: 15px 0;
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
}
.drawer .drawer__sub a {
  font-family: var(--font-body);
  font-size: 15.5px;
  font-weight: 400;
  color: var(--grey-600);
  padding: 11px 0 11px 18px;
}
.drawer .btn { margin-top: 26px; width: 100%; justify-content: center; }

/* ---------- 7. Hero ---------- */
.hero {
  position: relative;
  padding-top: clamp(120px, 15vh, 168px);
  padding-bottom: clamp(56px, 7vw, 96px);
  background:
    radial-gradient(120% 90% at 82% 8%, var(--blue-050) 0%, transparent 58%),
    linear-gradient(180deg, #fff 0%, var(--paper-2) 100%);
  overflow: hidden;
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 60px);
  align-items: center;
}
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; }
}

.hero__title { margin-top: 22px; }
.hero__title .accent { color: var(--blue-600); }

.hero__lede { margin-top: 24px; max-width: 52ch; }

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

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 24px clamp(28px, 3.4vw, 52px);
  margin-top: clamp(40px, 5vw, 64px);
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.hero__meta dt {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--grey-500);
  margin-bottom: 6px;
}
.hero__meta dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 600;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

/* Hero visual — brand film (or a product render) inside a technical frame */
.hero__visual { position: relative; aspect-ratio: 1 / 0.94; }
.hero__visual--video { aspect-ratio: 16 / 9; }

.hero__frame {
  position: absolute;
  inset: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(to right, rgba(10, 22, 34, .04) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(to bottom, rgba(10, 22, 34, .04) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(160deg, #fff 20%, var(--blue-050) 100%);
  overflow: hidden;
}

/* Corner registration ticks */
.tick {
  position: absolute;
  width: 14px; height: 14px;
  border: 1px solid var(--blue-500);
  opacity: .8;
}
.tick--tl { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.tick--tr { top: -1px; right: -1px; border-left: 0; border-bottom: 0; }
.tick--bl { bottom: -1px; left: -1px; border-right: 0; border-top: 0; }
.tick--br { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }

.hero__img {
  position: absolute;
  inset: 8% 6% 10%;
  object-fit: contain;
  width: auto; height: auto;
  max-width: 88%; max-height: 82%;
  margin: auto;
  filter: drop-shadow(0 30px 50px rgba(10, 22, 34, .18));
  animation: float 9s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}

/* Sit the film against the middle of the copy column rather than its top —
   high enough to feel like the focal point, low enough not to crowd the nav. */
.hero__visual--video { align-self: start; margin-top: clamp(38px, 9vw, 132px); }

/* The stage carries the film plus the team tiles that overlap its edges.
   Nudged right so the collage clears the headline; the shift is applied here
   rather than on .hero__visual, which carries .reveal and whose transform is
   already spoken for by the reveal animation. It eases off on narrower
   viewports, where there is no room to give. */
.hero__stage {
  position: relative;
  height: 100%;
  transform: translateX(clamp(0px, 3.6vw, 50px));
}
@media (max-width: 980px) { .hero__stage { transform: none; } }

/* Dot field, echoing the drafting-paper motif elsewhere on the page */
.hero__dots {
  position: absolute;
  top: -26px; right: -18px;
  width: 42%; height: 46%;
  background-image: radial-gradient(var(--blue-300) 1.4px, transparent 1.4px);
  background-size: 13px 13px;
  opacity: .5;
  pointer-events: none;
}

/* The film fills its frame edge to edge; the registration ticks sit on top of
   it, so they switch to white to stay legible against the footage. */
.hero__frame--video { background: var(--ink); z-index: 1; }  /* stays absolute+inset:0 from .hero__frame */
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero__frame--video .tick { border-color: rgba(255, 255, 255, .85); z-index: 2; }

/* Reduced motion: JS pauses the film and exposes controls so it stays playable
   by choice rather than by default. */
.hero__video[controls] { object-fit: contain; background: var(--ink); }

.hero__spec {
  position: absolute;
  left: 20px; bottom: 18px;
  display: flex;
  gap: 18px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--grey-500);
}
.hero__spec span { display: inline-flex; align-items: center; gap: 6px; }
.hero__spec span::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: var(--blue-500);
}

/* Dimension line ornament */
.dimline {
  position: absolute;
  top: 22px; right: 20px;
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--blue-600);
  letter-spacing: .1em;
}
.dimline::before,
.dimline::after {
  content: ""; height: 1px; width: 30px; background: var(--blue-500); opacity: .6;
}

/* ---------- 8. Client marquee (dark band, light logos) ---------- */
.clients {
  background: var(--ink);
  color: #fff;
  padding-block: clamp(40px, 5vw, 62px);
  position: relative;
  overflow: hidden;
}
.clients__label {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .5);
  margin-bottom: 34px;
}

.marquee {
  display: flex;
  gap: 0;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: flex;
  align-items: center;
  gap: clamp(44px, 6vw, 82px);
  padding-right: clamp(44px, 6vw, 82px);
  flex: 0 0 auto;
  animation: scroll-x 42s linear infinite;
}
.clients:hover .marquee__track { animation-play-state: paused; }
@keyframes scroll-x {
  from { transform: translateX(0); }
  to   { transform: translateX(-100%); }
}
/* Source logos are inconsistent (some coloured, some greyscale), so they are
   normalised to a single white silhouette. Swap in clean SVGs when the client
   supplies them and this filter can go. */
.marquee__track img {
  height: clamp(26px, 2.8vw, 34px);
  width: auto;
  filter: brightness(0) invert(1);
  opacity: .55;
  transition: opacity .3s var(--ease);
}
.marquee__track img:hover { opacity: 1; }

/* ---------- 9. Intro + stats ---------- */
.intro__grid {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: clamp(32px, 5vw, 88px);
  align-items: start;
}
@media (max-width: 900px) { .intro__grid { grid-template-columns: 1fr; } }

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

.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: clamp(44px, 5vw, 72px);
}
@media (min-width: 760px) { .stats { grid-template-columns: repeat(4, 1fr); } }

.stat {
  background: #fff;
  padding: clamp(24px, 3vw, 36px);
  position: relative;
  transition: background .3s var(--ease);
}
.stat:hover { background: var(--blue-050); }
.stat__num {
  font-family: var(--font-display);
  font-size: clamp(38px, 4.6vw, 58px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  display: flex;
  align-items: baseline;
  gap: 2px;
}
.stat__suffix { color: var(--blue-600); }
.stat__label {
  margin-top: 12px;
  font-size: 14px;
  color: var(--grey-600);
  line-height: 1.45;
}

/* ---------- 10. Services ---------- */
.services { background: var(--paper-2); position: relative; }

.svc-list {
  border-top: 1px solid var(--line);
}

.svc {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) minmax(0, 1fr) 56px;
  gap: clamp(16px, 3vw, 40px);
  align-items: center;
  padding: clamp(26px, 3.2vw, 44px) 0;
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: padding-inline .45s var(--ease-out);
}
.svc::before {
  content: "";
  position: absolute;
  inset: 0 -24px;
  background: #fff;
  border-radius: var(--radius-lg);
  opacity: 0;
  transform: scaleY(.94);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
  z-index: 0;
  box-shadow: 0 22px 44px -28px rgba(10, 22, 34, .3);
}
.svc:hover::before { opacity: 1; transform: scaleY(1); }
.svc > * { position: relative; z-index: 1; }
.svc:hover { padding-inline: 24px; }

.svc__num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--blue-600);
}
.svc__title { transition: color .3s var(--ease); }
.svc:hover .svc__title { color: var(--blue-600); }
.svc__desc { font-size: 15.5px; color: var(--grey-600); line-height: 1.6; }

.svc__go {
  width: 46px; height: 46px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  justify-self: end;
  transition: background .35s var(--ease), border-color .35s var(--ease), color .35s var(--ease), transform .35s var(--ease);
}
.svc:hover .svc__go {
  background: var(--blue-600);
  border-color: var(--blue-600);
  color: #fff;
  transform: rotate(-45deg);
}

@media (max-width: 820px) {
  .svc {
    grid-template-columns: 1fr auto;
    grid-template-areas: "num go" "title title" "desc desc";
    gap: 10px 16px;
    align-items: start;
  }
  .svc__num { grid-area: num; }
  .svc__go { grid-area: go; width: 40px; height: 40px; }
  .svc__title { grid-area: title; }
  .svc__desc { grid-area: desc; }
}

/* ---------- 11. Projects ---------- */
.proj-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(14px, 1.6vw, 22px);
}
@media (min-width: 1000px) {
  .proj-grid { grid-template-columns: repeat(6, 1fr); }
  .proj:nth-child(-n+2)  { grid-column: span 3; }  /* two wide leads */
  .proj:nth-child(n+3)   { grid-column: span 2; }  /* then rows of three */
}

.proj {
  position: relative;
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(to right, rgba(10, 22, 34, .035) 1px, transparent 1px) 0 0 / 36px 36px,
    linear-gradient(to bottom, rgba(10, 22, 34, .035) 1px, transparent 1px) 0 0 / 36px 36px,
    linear-gradient(155deg, #fff 25%, var(--paper-3) 100%);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  transition: border-color .4s var(--ease), transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.proj:hover {
  border-color: var(--blue-300);
  transform: translateY(-4px);
  box-shadow: 0 28px 52px -30px rgba(10, 22, 34, .4);
}

.proj__img {
  position: absolute;
  inset: 12% 10% 22%;
  width: auto; height: auto;
  max-width: 80%; max-height: 100%;
  margin: auto;
  object-fit: contain;
  transition: transform .6s var(--ease-out);
}
.proj:hover .proj__img { transform: scale(1.05) translateY(-6px); }

.proj__meta {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 18px 20px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  background: linear-gradient(to top, rgba(255, 255, 255, .96) 45%, transparent);
}
.proj__cat {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue-600);
  display: block;
  margin-bottom: 4px;
}
.proj__name {
  font-family: var(--font-display);
  font-size: clamp(17px, 1.5vw, 21px);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.proj__arrow {
  flex: 0 0 auto;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid; place-items: center;
  background: #fff;
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease);
}
.proj:hover .proj__arrow {
  background: var(--ink); color: #fff; border-color: var(--ink);
  transform: rotate(-45deg);
}

/* ---------- 12. Why us ---------- */
.why { background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.why .lede { color: rgba(255, 255, 255, .68); }

.why__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(232px, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.why__card {
  background: var(--ink);
  padding: clamp(26px, 2.6vw, 36px);
  transition: background .4s var(--ease);
  position: relative;
}
.why__card:hover { background: var(--ink-800); }
.why__icon {
  width: 40px; height: 40px;
  border-radius: 8px;
  background: rgba(18, 143, 224, .14);
  border: 1px solid rgba(110, 196, 242, .28);
  display: grid; place-items: center;
  color: var(--blue-300);
  margin-bottom: 22px;
}
.why__card h3 { font-size: 18px; margin-bottom: 10px; letter-spacing: -0.02em; }
.why__card p { font-size: 14.5px; color: rgba(255, 255, 255, .62); line-height: 1.6; }

/* ---------- 13. Process ---------- */
.process__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: clamp(20px, 2.4vw, 34px);
  counter-reset: step;
}
.step { position: relative; padding-top: 30px; border-top: 1px solid var(--line); }
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: -1px; left: 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .12em;
  color: var(--blue-600);
  padding-top: 10px;
}
.step::after {
  content: "";
  position: absolute;
  top: -1px; left: 0;
  width: 0; height: 2px;
  background: var(--blue-600);
  transition: width .8s var(--ease-out);
}
.step.is-in::after { width: 46px; }
.step h3 { font-size: 20px; margin-bottom: 10px; }
.step p { font-size: 14.5px; color: var(--grey-600); line-height: 1.6; }

/* ---------- 14. Case study ---------- */
.case {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .82fr);
}
@media (max-width: 900px) { .case { grid-template-columns: 1fr; } }

.case__body { padding: clamp(30px, 4vw, 62px); }
.case__quote {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 500;
  line-height: 1.28;
  letter-spacing: -0.025em;
  margin: 22px 0 26px;
}
.case__points { margin: 26px 0 30px; display: grid; gap: 12px; }
.case__points li {
  position: relative;
  padding-left: 28px;
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--grey-600);
}
.case__points li::before {
  content: "";
  position: absolute;
  left: 0; top: 7px;
  width: 15px; height: 9px;
  border-left: 1.8px solid var(--blue-600);
  border-bottom: 1.8px solid var(--blue-600);
  transform: rotate(-45deg);
}

.case__media {
  position: relative;
  min-height: 300px;
  background:
    linear-gradient(to right, rgba(10, 22, 34, .04) 1px, transparent 1px) 0 0 / 34px 34px,
    linear-gradient(to bottom, rgba(10, 22, 34, .04) 1px, transparent 1px) 0 0 / 34px 34px,
    linear-gradient(150deg, #fff, var(--blue-050));
  border-left: 1px solid var(--line);
}
@media (max-width: 900px) { .case__media { border-left: 0; border-top: 1px solid var(--line); } }
.case__media img {
  position: absolute; inset: 10%;
  margin: auto;
  max-width: 82%; max-height: 80%;
  width: auto; height: auto;
  object-fit: contain;
}

/* ---------- 15. Careers ---------- */
.careers {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
}
@media (max-width: 860px) { .careers { grid-template-columns: 1fr; } }

.roles { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 26px; }
.role {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .04em;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--grey-600);
  transition: border-color .3s var(--ease), color .3s var(--ease), background .3s var(--ease);
}
.role:hover { border-color: var(--blue-300); color: var(--blue-700); background: var(--blue-050); }

.careers__photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 4 / 3;
}
.careers__photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- 16. CTA ---------- */
.cta {
  background: var(--blue-700);
  background-image: linear-gradient(140deg, var(--blue-700) 0%, var(--ink) 78%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta__inner { position: relative; z-index: 1; text-align: center; }
.cta__title { max-width: 18ch; margin-inline: auto; }
.cta__lede { margin: 22px auto 0; max-width: 56ch; color: rgba(255, 255, 255, .72); }
.cta__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }
.cta .btn { --btn-bg: #fff; --btn-fg: var(--ink); }
.cta .btn::before { background: var(--red); }
.cta .btn:hover { --btn-fg: #fff; }
.cta .btn--ghost-light { --btn-bg: transparent; --btn-fg: #fff; }

.cta__contact {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px 40px;
  margin-top: 44px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, .16);
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .04em;
  color: rgba(255, 255, 255, .78);
}
.cta__contact a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }

/* ---------- 17. Footer ---------- */
.footer { background: var(--ink); color: rgba(255, 255, 255, .62); padding-block: clamp(52px, 6vw, 80px) 34px; }
.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 56px);
  padding-bottom: 46px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}
@media (max-width: 900px) { .footer__top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__top { grid-template-columns: 1fr; } }

.footer__logo img { height: 26px; width: auto; margin-bottom: 20px; }
.footer__blurb { font-size: 14.5px; line-height: 1.65; max-width: 40ch; }

.footer h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .42);
  margin-bottom: 18px;
}
.footer li { margin-bottom: 11px; }
.footer li a {
  font-size: 14.5px;
  color: rgba(255, 255, 255, .74);
  transition: color .25s var(--ease);
}
.footer li a:hover { color: #fff; }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  padding-top: 26px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .05em;
  color: rgba(255, 255, 255, .45);
}
.footer__social { display: flex; gap: 10px; }
.footer__social a {
  width: 36px; height: 36px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 50%;
  display: grid; place-items: center;
  color: rgba(255, 255, 255, .7);
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.footer__social a:hover { background: #fff; color: var(--ink); border-color: #fff; }

/* ---------- 18. Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
  transition-delay: var(--d, 0ms);
}
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* =========================================================================
   19. Inner pages
   ========================================================================= */

/* ---------- Page hero ---------- */
.page-hero {
  position: relative;
  padding-top: clamp(118px, 14vh, 164px);
  padding-bottom: clamp(44px, 5.5vw, 74px);
  background:
    radial-gradient(110% 90% at 78% 0%, var(--blue-050) 0%, transparent 60%),
    linear-gradient(180deg, #fff 0%, var(--paper-2) 100%);
  overflow: hidden;
  border-bottom: 1px solid var(--line-soft);
}
.page-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .85fr);
  gap: clamp(26px, 4vw, 68px);
  align-items: end;
}
@media (max-width: 900px) {
  .page-hero__inner { grid-template-columns: 1fr; align-items: start; }
}
.page-hero__title { margin-top: 20px; }
.page-hero__lede { margin-top: 20px; }
.page-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* Breadcrumb */
.crumb {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--grey-500);
  margin-bottom: 20px;
}
.crumb a { color: var(--blue-600); }
.crumb a:hover { text-decoration: underline; text-underline-offset: 3px; }
.crumb span[aria-hidden] { opacity: .5; }

/* ---------- Prose ---------- */
.prose { max-width: 68ch; }
.prose > * + * { margin-top: 20px; }
.prose p { font-size: 16.5px; line-height: 1.72; color: var(--grey-600); }
.prose h2 { font-size: clamp(24px, 2.4vw, 32px); margin-top: 46px; color: var(--ink); }
.prose h3 { font-size: clamp(19px, 1.7vw, 23px); margin-top: 34px; color: var(--ink); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose ul { display: grid; gap: 11px; }
.prose ul li {
  position: relative;
  padding-left: 26px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--grey-600);
}
.prose ul li::before {
  content: "";
  position: absolute;
  left: 2px; top: 10px;
  width: 7px; height: 7px;
  border-radius: 1px;
  background: var(--blue-500);
  transform: rotate(45deg);
}
.prose a:not(.btn):not(.link-line) {
  color: var(--blue-600);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

/* Two-column: sticky rail + body */
.split {
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
  gap: clamp(28px, 5vw, 84px);
  align-items: start;
}
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.split__rail { position: sticky; top: 106px; }
@media (max-width: 900px) { .split__rail { position: static; } }

/* ---------- Feature cards ---------- */
.feat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(248px, 1fr));
  gap: clamp(14px, 1.6vw, 22px);
}
.feat {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 2.4vw, 32px);
  background: #fff;
  transition: border-color .35s var(--ease), transform .45s var(--ease-out), box-shadow .45s var(--ease-out);
}
.feat:hover {
  border-color: var(--blue-300);
  transform: translateY(-3px);
  box-shadow: 0 24px 44px -30px rgba(10, 22, 34, .4);
}
.feat__num {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .12em;
  color: var(--blue-600);
  display: block;
  margin-bottom: 16px;
}
.feat h3 { font-size: 18.5px; margin-bottom: 10px; }
.feat p { font-size: 14.5px; line-height: 1.6; color: var(--grey-600); }

/* ---------- Spec / deliverables table ---------- */
.spec {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.spec th, .spec td {
  text-align: left;
  padding: 15px 20px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 14.5px;
  vertical-align: top;
}
.spec tr:last-child th, .spec tr:last-child td { border-bottom: 0; }
.spec th {
  width: 38%;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--grey-500);
  white-space: nowrap;
}
.spec td { color: var(--grey-600); }

/* ---------- Team ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.disc {
  background: #fff;
  padding: clamp(22px, 2.4vw, 32px);
  transition: background .3s var(--ease);
}
.disc:hover { background: var(--blue-050); }
.disc__count {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.2vw, 42px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--blue-600);
}
.disc h3 { font-size: 16.5px; margin: 14px 0 8px; }
.disc p { font-size: 13.5px; line-height: 1.55; color: var(--grey-600); }

/* Pull quote */
.pull {
  border-left: 2px solid var(--blue-500);
  padding: 6px 0 6px 26px;
  margin: clamp(30px, 4vw, 48px) 0;
}
.pull blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(21px, 2.2vw, 30px);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.pull cite {
  display: block;
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-style: normal;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--grey-500);
}

/* ---------- Jobs ---------- */
.jobs { border-top: 1px solid var(--line); }
.job {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 170px 130px 46px;
  gap: clamp(14px, 2.4vw, 32px);
  align-items: center;
  padding: clamp(20px, 2.4vw, 30px) 0;
  border-bottom: 1px solid var(--line);
  transition: padding-inline .4s var(--ease-out);
}
.job:hover { padding-inline: 20px; }
.job h3 { font-size: clamp(17px, 1.5vw, 20px); transition: color .3s var(--ease); }
.job:hover h3 { color: var(--blue-600); }
.job__meta {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--grey-500);
}
.job__go {
  width: 42px; height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid; place-items: center;
  justify-self: end;
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease);
}
.job:hover .job__go {
  background: var(--blue-600); border-color: var(--blue-600); color: #fff;
  transform: rotate(-45deg);
}
@media (max-width: 820px) {
  .job {
    grid-template-columns: minmax(0, 1fr) 42px;
    grid-template-areas: "title go" "meta1 meta1" "meta2 meta2";
    gap: 8px 14px;
    align-items: start;
  }
  .job h3 { grid-area: title; }
  .job__go { grid-area: go; }
  .job__meta:nth-of-type(1) { grid-area: meta1; }
  .job__meta:nth-of-type(2) { grid-area: meta2; }
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .82fr);
  gap: clamp(30px, 5vw, 76px);
  align-items: start;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.form { display: grid; gap: 18px; }
.field { display: grid; gap: 7px; }
.field label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--grey-500);
}
.field input,
.field select,
.field textarea {
  font: inherit;
  font-size: 15.5px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 13px 15px;
  width: 100%;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.field textarea { min-height: 132px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(18, 143, 224, .14);
}
.field--row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 620px) { .field--row { grid-template-columns: 1fr; } }
.form__note { font-size: 13px; color: var(--grey-500); }

.contact-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper-2);
  padding: clamp(24px, 3vw, 36px);
}
.contact-card + .contact-card { margin-top: 18px; }
.contact-card h3 {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--grey-500);
  margin-bottom: 14px;
}
.contact-card p, .contact-card a { font-size: 16px; line-height: 1.6; }
.contact-card a { color: var(--blue-600); }
.contact-card a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Blog ---------- */
.post-list { display: grid; gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
.post {
  background: #fff;
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr) 46px;
  gap: clamp(16px, 3vw, 40px);
  align-items: center;
  padding: clamp(22px, 2.6vw, 34px) 0;
  transition: background .35s var(--ease), padding-inline .4s var(--ease-out);
}
.post:hover { background: var(--paper-2); padding-inline: 20px; }
.post__date {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--grey-500);
}
.post h3 { font-size: clamp(18px, 1.7vw, 23px); margin-bottom: 8px; transition: color .3s var(--ease); }
.post:hover h3 { color: var(--blue-600); }
.post p { font-size: 14.5px; color: var(--grey-600); line-height: 1.6; }
.post__go {
  width: 42px; height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid; place-items: center;
  justify-self: end;
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease);
}
.post:hover .post__go {
  background: var(--ink); border-color: var(--ink); color: #fff; transform: rotate(-45deg);
}
@media (max-width: 760px) {
  .post {
    grid-template-columns: minmax(0, 1fr) 42px;
    grid-template-areas: "date go" "body body";
    gap: 10px 14px;
    align-items: start;
  }
  .post__date { grid-area: date; }
  .post__body { grid-area: body; }
  .post__go { grid-area: go; }
}

/* Article */
.article { max-width: 74ch; margin-inline: auto; }
.article__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--grey-500);
  padding-bottom: 26px;
  margin-bottom: 34px;
  border-bottom: 1px solid var(--line);
}
.article__figure { margin: 40px 0; }
.article__figure .frame {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  aspect-ratio: 16 / 10;
  background:
    linear-gradient(to right, rgba(10, 22, 34, .035) 1px, transparent 1px) 0 0 / 36px 36px,
    linear-gradient(to bottom, rgba(10, 22, 34, .035) 1px, transparent 1px) 0 0 / 36px 36px,
    linear-gradient(155deg, #fff 25%, var(--paper-3) 100%);
  overflow: hidden;
}
.article__figure img {
  position: absolute; inset: 10%;
  margin: auto;
  max-width: 80%; max-height: 80%;
  width: auto; height: auto;
  object-fit: contain;
}
.article__figure figcaption {
  margin-top: 12px;
  font-size: 13px;
  color: var(--grey-500);
}

/* ---------- Project detail ---------- */
.proj-hero__frame {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(to right, rgba(10, 22, 34, .035) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(to bottom, rgba(10, 22, 34, .035) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(155deg, #fff 25%, var(--blue-050) 100%);
  overflow: hidden;
}
.proj-hero__frame img {
  position: absolute; inset: 8%;
  margin: auto;
  max-width: 72%; max-height: 84%;
  width: auto; height: auto;
  object-fit: contain;
  filter: drop-shadow(0 26px 44px rgba(10, 22, 34, .18));
}

/* Next / previous */
.pager {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

/* ---------- Figures (real, sourced metrics) ---------- */
.figs {
  display: flex;
  flex-wrap: wrap;
  gap: 30px 44px;
  margin: 28px 0 30px;
}
.figs__n {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(30px, 3.4vw, 46px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--blue-600);
}
.figs__l {
  display: block;
  margin-top: 8px;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--grey-600);
  max-width: 22ch;
}

/* Testimonial */
.quote-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper-2);
  padding: clamp(26px, 3.4vw, 46px);
}
.quote-card blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(19px, 1.9vw, 25px);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.quote-card footer {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--grey-600);
}
.quote-card footer strong { display: block; color: var(--ink); font-weight: 600; }


/* ---------- Hero team tiles ---------- */
/* Cut-out headshots on brand-coloured blocks, overlapping the film. Each links
   to the team page. The subject overflows its block slightly, which is what
   keeps the arrangement from reading as a tidy grid of avatars. */
.crew {
  position: absolute;
  z-index: 2;
  width: clamp(84px, 10.5vw, 132px);
  aspect-ratio: 1;
  display: block;
  transform: rotate(var(--rot, 0deg));
  animation: crew-drift var(--dur, 7s) ease-in-out var(--delay, 0s) infinite;
  transition: transform .45s var(--ease-out);
}
.crew__bg {
  position: absolute;
  inset: 0;
  background: var(--tile, var(--blue-600));
  border-radius: 6px;
  box-shadow: 0 18px 34px -18px rgba(10, 22, 34, .5);
}
.crew__img {
  position: relative;
  width: 112%;
  height: auto;
  margin-left: -6%;
  /* Lift the subject above the block so the head breaks the top edge. */
  margin-top: -14%;
  filter: drop-shadow(0 10px 16px rgba(10, 22, 34, .22));
}

.crew--1 { --tile: var(--blue-300); --rot: -4deg;  --dur: 7s;   --delay: 0s;    top: -26%;  left: 15%; }
.crew--2 { --tile: var(--red);      --rot: 3.5deg; --dur: 8.5s; --delay: -2.4s; bottom: 6%; left: -16%; }
.crew--3 { --tile: var(--ink);      --rot: 4.5deg; --dur: 9.5s; --delay: -4.8s; top: 34%;  right: -9%; }

@keyframes crew-drift {
  0%, 100% { transform: rotate(var(--rot, 0deg)) translate3d(0, 0, 0); }
  50%      { transform: rotate(calc(var(--rot, 0deg) * -0.55)) translate3d(0, -9px, 0); }
}

.crew:hover,
.crew:focus-visible {
  animation-play-state: paused;
  transform: rotate(0deg) translateY(-6px) scale(1.06);
  z-index: 3;
}
.crew:hover .crew__bg,
.crew:focus-visible .crew__bg { box-shadow: 0 24px 44px -18px rgba(10, 22, 34, .6); }

/* Tighter, smaller and fewer once the hero stacks into one column */
@media (max-width: 980px) {
  .hero__visual--video { margin-top: clamp(30px, 7vw, 64px); }
  .crew--1 { top: -24%;  left: 10%; }
  .crew--2 { bottom: 4%; left: -7%; }
  .crew--3 { top: 34%;   right: -8%; }
}
@media (max-width: 560px) {
  .crew { width: clamp(66px, 20vw, 88px); }
  .crew--1 { top: -24%; left: 6%; }
  .crew--2 { display: none; }
  .crew--3 { top: 40%; right: -5%; }
  .hero__dots { display: none; }
}

/* =========================================================================
   20. Team members
   Ported from the SSZ team cards and retoned to the InstaDesign palette:
   square portrait, name, mono uppercase role in the accent, contact pills.
   The portrait sits on a brand colour rather than a neutral surface, so a
   mixed set of supplied headshots reads as one set however they were shot.
   ========================================================================= */
.team-people {
  display: grid;
  grid-template-columns: repeat(var(--team-cols, 3), minmax(0, 1fr));
  gap: clamp(20px, 2.6vw, 34px);
}
@media (max-width: 1040px) { .team-people { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px)  { .team-people { grid-template-columns: minmax(0, 1fr); } }

.member { display: flex; flex-direction: column; }

.member__photo {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 18px;
  background: var(--tile, var(--blue-600));
  border: 1px solid var(--line);
}
/* Faint drafting grid over the colour, tying the portraits to the rest of the page */
.member__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, .07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, .07) 1px, transparent 1px);
  background-size: 34px 34px;
}
/* Portrait and tile are both square, so object-position has nothing to crop
   against — the face just sits wherever it was shot. Each portrait therefore
   carries its own zoom and offset (--s/--tx/--ty, computed from a face
   detection pass) so every face lands at the same point, the same size. */
.member__photo img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  transform-origin: 0 0;
  transform: translate(var(--tx, 0%), var(--ty, 0%)) scale(var(--s, 1));
  transition: transform .7s var(--ease-out);
}
.member:hover .member__photo img {
  transform: translate(var(--tx, 0%), var(--ty, 0%)) scale(calc(var(--s, 1) * 1.045));
}

/* Two of the supplied portraits are black and white. True colourisation needs
   a model we don't have offline, so they get a warming pass instead: enough to
   sit alongside the colour photos without pretending to be one. */
.member__photo--mono img {
  filter: sepia(.55) saturate(1.7) hue-rotate(-12deg) contrast(1.02);
}

/* No portrait yet: the frame holds its place rather than collapsing. */
.member__photo--pending { display: grid; place-items: center; padding: 18px; text-align: center; }
.member__photo--pending span {
  position: relative;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .72);
}

.member__name {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -.022em;
  line-height: 1.2;
  color: var(--ink);
}
.member__role {
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue-600);
}
/* Awaiting the client's roster — deliberately flagged, not quietly invented. */
.member__name--pending,
.member__role--pending { color: var(--grey-500); }
.member__name--pending {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 500;
}

.member__bio { margin-top: 12px; font-size: 14px; line-height: 1.6; color: var(--grey-600); flex: 1; }

.member__links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.member__link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--grey-600);
  transition: border-color .25s var(--ease), color .25s var(--ease), background .25s var(--ease);
}
.member__link:hover {
  border-color: var(--blue-600);
  color: var(--blue-600);
  background: var(--blue-050);
}
.member__link svg { width: 14px; height: 14px; flex: none; }
.member__link svg.is-stroke { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.member__link svg.is-fill { fill: currentColor; }

/* Standing note about content the client still owes us */
.roster-note {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px 20px;
  margin-bottom: clamp(28px, 3vw, 40px);
  border: 1px dashed var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper-2);
  font-size: 14px;
  line-height: 1.55;
  color: var(--grey-600);
}
.roster-note strong { color: var(--ink); font-weight: 600; }
