/* ==========================================================================
   Grey Media design system
   Signature: two-tone headlines (ink → grey), full-bleed authentic imagery,
   soft grey modules, hairline grids, one typeface.
   Tokens → base → layout → components → pages
   ========================================================================== */

@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-latin-var.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --ink: #17191e;          /* charcoal: text, dark sections */
  --ink-2: #23262e;        /* raised surface on dark */
  --grey: #868b95;         /* headline second tone on light (large text, 3.5:1) */
  --grey-dark: #8d929c;    /* headline second tone on dark (5.6:1) */
  --muted: #5b606b;        /* secondary text on light (6.3:1) */
  --muted-dark: #a5a9b2;   /* secondary text on dark (7.4:1) */
  --paper: #f4f5f6;        /* modules */
  --paper-2: #eceef0;
  --line: #e4e6e9;
  --line-dark: #343842;
  --white: #ffffff;
  --accent: #5577b8;       /* graphics, dots, focus */
  --accent-ink: #3f5f9e;   /* links on light (6.3:1) */
  --accent-light: #93abda; /* links on dark */
  --tbc: #7a4f00;
  --tbc-bg: #fff6e0;
  --tbc-line: #d9a640;
  --error: #b42318;
  --success: #146c43;

  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --t-xs: 0.75rem;
  --t-sm: 0.875rem;
  --t-base: 1rem;
  --t-md: 1.125rem;
  --t-lg: clamp(1.125rem, 1rem + 0.4vw, 1.3125rem);
  --t-xl: clamp(1.375rem, 1.2rem + 0.8vw, 1.875rem);
  --t-2xl: clamp(2rem, 1.5rem + 2.2vw, 3.5rem);
  --t-3xl: clamp(2.5rem, 1.6rem + 3.8vw, 5rem);
  --t-hero: clamp(2.75rem, 1.4rem + 6vw, 7rem);

  --container: 1280px;
  --gutter: clamp(1rem, 0.4rem + 2.6vw, 3rem);
  --section: clamp(4.5rem, 3rem + 6vw, 9rem);
  --radius: 8px;
  --radius-lg: 16px;
  --header-h: 68px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------------------------------------------------------------- base -- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1rem); }
body {
  margin: 0; font-family: var(--font); font-size: var(--t-base); line-height: 1.6;
  color: var(--ink); background: var(--white);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  font-feature-settings: 'cv11', 'ss01'; overflow-x: clip;
}
img, svg { display: block; max-width: 100%; height: auto; }
picture { display: block; }
h1, h2, h3, h4 { font-weight: 550; line-height: 1.05; letter-spacing: -0.035em; margin: 0 0 1rem; text-wrap: balance; }
h1 { font-size: var(--t-3xl); }
h2 { font-size: var(--t-2xl); }
h3 { font-size: var(--t-xl); line-height: 1.2; letter-spacing: -0.02em; }
h4 { font-size: var(--t-md); line-height: 1.3; letter-spacing: -0.01em; font-weight: 600; }
p { margin: 0 0 1rem; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
a { color: var(--accent-ink); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.dark :focus-visible { outline-color: var(--accent-light); }

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100; background: var(--ink); color: var(--white);
  padding: 0.6rem 1rem; border-radius: var(--radius); font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 1rem; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* -------------------------------------------------------------- layout -- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 820px; }
.section { padding-block: var(--section); }
.section--flush-top { padding-top: 0; }
.dark { background: var(--ink); color: var(--white); }
.dark a:where(:not([class])) { color: var(--accent-light); }

/* Two-tone headline: the Grey Media signature */
.tt { display: block; }
.tt__grey { color: var(--grey); display: block; }
.dark .tt__grey, .hero .tt__grey { color: var(--grey-dark); }
.tt--inline .tt__grey { display: inline; }

.label {
  display: inline-flex; align-items: center; gap: 0.55rem; margin: 0 0 1.25rem;
  font-size: var(--t-xs); font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted);
}
.label::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.dark .label { color: var(--muted-dark); }

.lead { font-size: var(--t-lg); line-height: 1.55; color: var(--muted); max-width: 46ch; }
.dark .lead { color: var(--muted-dark); }

.head { display: grid; gap: 1.5rem; margin-bottom: clamp(2.5rem, 2rem + 2vw, 4.5rem); }
@media (min-width: 900px) { .head--split { grid-template-columns: 1.25fr 1fr; align-items: end; gap: 4rem; } }
.head h2 { margin: 0; }
.head .lead { margin: 0; }
.head--center { text-align: center; justify-items: center; }
.head--center .lead { margin-inline: auto; }

.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* -------------------------------------------------------------- header -- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.92); color: var(--ink);
  border-bottom: 1px solid var(--line);
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
}
@supports (backdrop-filter: blur(10px)) { .site-header { backdrop-filter: blur(14px) saturate(160%); } }
.site-header__inner { display: flex; align-items: center; gap: 2rem; height: var(--header-h); }
/* Overlay header on the home hero */
.site-header--overlay { position: fixed; left: 0; right: 0; background: transparent; color: var(--white); border-color: transparent; backdrop-filter: none; }
.site-header--overlay.is-scrolled { background: rgba(255,255,255,0.92); color: var(--ink); border-color: var(--line); }
@supports (backdrop-filter: blur(10px)) { .site-header--overlay.is-scrolled { backdrop-filter: blur(14px) saturate(160%); } }

.brand { display: inline-flex; align-items: center; gap: 0.7rem; color: inherit; text-decoration: none; margin-right: auto; }
.brand__mark { width: 36px; }
.brand__word { font-weight: 650; font-size: 0.9375rem; letter-spacing: 0.16em; line-height: 1; }

.primary-nav { display: none; }
.primary-nav ul { list-style: none; display: flex; gap: 0.25rem; }
.primary-nav a {
  display: block; padding: 0.5rem 0.9rem; border-radius: 999px; color: inherit; text-decoration: none;
  font-size: var(--t-sm); font-weight: 500; transition: background-color 0.2s;
}
.primary-nav a:hover { background: rgba(127,130,140,0.14); }
.primary-nav a[aria-current] { background: rgba(127,130,140,0.18); }
.header-cta { display: none; }

.nav-toggle {
  display: inline-flex; align-items: center; gap: 0.6rem; min-height: 44px; padding: 0.5rem 0.95rem;
  border: 1px solid currentColor; border-radius: 999px; background: none; color: inherit; font-size: var(--t-sm); font-weight: 600; cursor: pointer;
}
.nav-toggle__bars { width: 16px; height: 10px; position: relative; }
.nav-toggle__bars span { position: absolute; left: 0; width: 100%; height: 1.5px; background: currentColor; transition: transform 0.25s var(--ease), opacity 0.2s; }
.nav-toggle__bars span:nth-child(1) { top: 0; }
.nav-toggle__bars span:nth-child(2) { top: 4.25px; }
.nav-toggle__bars span:nth-child(3) { top: 8.5px; }
.nav-toggle[aria-expanded='true'] .nav-toggle__bars span:nth-child(1) { transform: translateY(4.25px) rotate(45deg); }
.nav-toggle[aria-expanded='true'] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded='true'] .nav-toggle__bars span:nth-child(3) { transform: translateY(-4.25px) rotate(-45deg); }
body.nav-open .site-header { background: var(--white); color: var(--ink); border-color: var(--line); }

.mobile-nav {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 49; background: var(--white); color: var(--ink);
  padding: 1.5rem var(--gutter) 2.5rem; overflow-y: auto; display: flex; flex-direction: column; justify-content: space-between; gap: 2rem;
}
.mobile-nav[hidden] { display: none; }
.mobile-nav ul { list-style: none; }
.mobile-nav li { border-bottom: 1px solid var(--line); }
.mobile-nav a:not(.btn) { display: block; padding: 0.9rem 0; color: var(--ink); text-decoration: none; font-size: 2rem; font-weight: 550; letter-spacing: -0.03em; }
.mobile-nav a[aria-current]:not(.btn) { color: var(--grey); }
.mobile-nav__foot { display: grid; gap: 1rem; }
.mobile-nav__foot p { color: var(--muted); font-size: var(--t-sm); }
body.nav-open { overflow: hidden; }

@media (min-width: 900px) {
  .primary-nav, .header-cta { display: block; }
  .nav-toggle, .mobile-nav { display: none !important; }
}

/* ------------------------------------------------------------- buttons -- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem; min-height: 46px; padding: 0.7rem 1.3rem;
  border-radius: 999px; border: 1px solid transparent; font-size: var(--t-sm); font-weight: 600; text-decoration: none; cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.btn svg { width: 15px; height: 15px; transition: transform 0.25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--primary { background: var(--ink); color: var(--white); }
.btn--primary:hover { background: #2e323b; }
.btn--secondary { background: var(--paper-2); color: var(--ink); }
.btn--secondary:hover { background: #dfe2e6; }
.dark .btn--primary, .hero .btn--primary, .site-header--overlay:not(.is-scrolled) .btn--primary { background: var(--white); color: var(--ink); }
.dark .btn--primary:hover, .hero .btn--primary:hover, .site-header--overlay:not(.is-scrolled) .btn--primary:hover { background: #e3e6ea; }
.dark .btn--secondary, .hero .btn--secondary { background: rgba(255,255,255,0.12); color: var(--white); border-color: rgba(255,255,255,0.28); }
.dark .btn--secondary:hover, .hero .btn--secondary:hover { background: rgba(255,255,255,0.22); }
.site-header .btn { min-height: 40px; padding: 0.5rem 1.05rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.arrow-link { display: inline-flex; align-items: center; gap: 0.45rem; font-weight: 600; text-decoration: none; color: var(--ink); font-size: var(--t-sm); }
.arrow-link svg { width: 15px; height: 15px; transition: transform 0.25s var(--ease); }
.arrow-link:hover svg { transform: translateX(4px); }
.dark .arrow-link { color: var(--white); }

/* ---------------------------------------------------------------- hero -- */
.hero { position: relative; min-height: min(100svh, 980px); display: flex; flex-direction: column; color: var(--white); background: var(--ink); overflow: hidden; }
.hero__media { position: absolute; inset: 0; }
.hero__media picture, .hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media img { filter: saturate(0.7) brightness(0.72) contrast(1.05); }
.hero__media::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(23,25,30,0.78) 0%, rgba(23,25,30,0.35) 55%, rgba(23,25,30,0.1) 100%),
    linear-gradient(180deg, rgba(23,25,30,0.6) 0%, rgba(23,25,30,0) 28%, rgba(23,25,30,0.25) 60%, rgba(23,25,30,0.95) 100%);
}
.hero__corners {
  position: relative; display: flex; justify-content: space-between; gap: 1rem; padding-top: calc(var(--header-h) + 1.25rem);
  font-size: var(--t-xs); font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; color: rgba(255,255,255,0.78);
}
.hero__inner { position: relative; margin-top: auto; padding-bottom: clamp(2.5rem, 2rem + 4vw, 6rem); }
.hero h1 { font-size: var(--t-hero); font-weight: 550; letter-spacing: -0.045em; line-height: 0.98; max-width: 12ch; margin-bottom: 1.5rem; }
.hero__lead { font-size: var(--t-lg); line-height: 1.5; max-width: 40ch; color: rgba(255,255,255,0.85); margin-bottom: 2rem; }
@media (min-width: 900px) {
  .hero__grid { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 3rem; }
  .hero__lead { margin-bottom: 0; }
}

/* ----------------------------------------------------- page heads (inner) */
.page-head { padding-block: clamp(3.5rem, 2.5rem + 5vw, 8rem) clamp(2.5rem, 2rem + 3vw, 5rem); }
.page-head h1 { max-width: 16ch; }
.page-head .lead { margin-top: 1.75rem; }
.breadcrumb { font-size: var(--t-xs); color: var(--muted); margin-bottom: 2rem; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.breadcrumb li + li::before { content: '/'; margin-right: 0.4rem; color: var(--grey); }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--ink); text-decoration: underline; }

/* ------------------------------------------------------------ statement -- */
.statement { text-align: center; }
.statement p.statement__text { font-size: var(--t-3xl); font-weight: 550; letter-spacing: -0.04em; line-height: 1.04; max-width: 20ch; margin: 0 auto; text-wrap: balance; }

/* ------------------------------------------------- experience collage --- */
.collage { position: relative; display: grid; gap: 1.25rem; }
.collage__text { text-align: center; max-width: 34rem; margin-inline: auto; }
.collage__text h2 { margin-bottom: 1.25rem; }
.collage__text .lead { margin: 0 auto 1.75rem; }
.collage__img img { border-radius: var(--radius); width: 100%; object-fit: cover; }
.collage__imgs { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.collage__imgs img { aspect-ratio: 4 / 5; }
@media (min-width: 1100px) {
  .collage { min-height: 560px; align-content: center; }
  .collage__imgs { display: contents; }
  .collage__img { position: absolute; }
  .collage__img--1 { left: 0; top: 0; width: 24%; }
  .collage__img--1 img { aspect-ratio: 4 / 3; }
  .collage__img--2 { right: 0; bottom: 0; width: 18%; }
  .collage__img--2 img { aspect-ratio: 3 / 4; }
}

/* --------------------------------------------------------- work modules -- */
.work-grid { display: grid; gap: 1rem; }
@media (min-width: 900px) {
  .work-grid { grid-template-columns: 1.35fr 1fr; grid-template-rows: auto auto; }
  .work-grid > :first-child { grid-row: span 2; }
}
.work-grid--even > :first-child { grid-row: auto; }
@media (min-width: 900px) { .work-grid--even { grid-template-columns: 1fr 1fr; } }
.work-tile { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--paper); display: flex; flex-direction: column; min-height: 320px; isolation: isolate; }
.work-tile__media { position: absolute; inset: 0; z-index: -1; }
.work-tile__media picture, .work-tile__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.work-tile--image { color: var(--white); min-height: 460px; background: var(--ink); }
.work-tile--type { min-height: 360px; }
.work-tile--image .work-tile__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(23,25,30,0) 35%, rgba(23,25,30,0.88) 100%); }
.work-tile:hover .work-tile__media img { transform: scale(1.03); }
.work-tile__body { margin-top: auto; padding: clamp(1.5rem, 1.2rem + 1.5vw, 2.5rem); display: grid; gap: 0.6rem; }
.work-tile__name { font-size: var(--t-xs); font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); }
.work-tile--image .work-tile__name { color: rgba(255,255,255,0.8); }
.work-tile h3 { margin: 0; font-size: var(--t-xl); max-width: 22ch; }
.work-tile h3 a { color: inherit; text-decoration: none; }
.work-tile h3 a::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.work-tile__foot { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; justify-content: space-between; margin-top: 0.5rem; }
/* Typographic tile: used where no authorised project imagery exists */
.work-tile__word {
  position: absolute; top: clamp(1.25rem, 1rem + 1vw, 2rem); left: clamp(1.5rem, 1.2rem + 1.5vw, 2.5rem); right: 1rem;
  font-size: clamp(2.75rem, 2rem + 3vw, 4.75rem); font-weight: 600; letter-spacing: -0.05em; line-height: 0.95; color: var(--grey);
  transition: color 0.4s var(--ease);
}
.work-tile:hover .work-tile__word { color: var(--muted); }
.work-tile__circle { position: absolute; right: 1.5rem; bottom: 1.5rem; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--white); color: var(--ink); transition: transform 0.3s var(--ease); }
.work-tile__circle svg { width: 15px; }
.work-tile:hover .work-tile__circle { transform: translateX(3px); }

.badge {
  display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.75rem; font-weight: 600; line-height: 1.2;
  padding: 0.35rem 0.65rem; border-radius: 999px; background: var(--white); color: var(--muted);
}
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.badge--founder::before { background: #8a6bbf; }
.badge--partner::before { background: #2f8f83; }
.badge--concept::before { background: transparent; border: 1.5px solid var(--muted); }
.badge--tbc { background: var(--tbc-bg); color: var(--tbc); outline: 1px dashed var(--tbc-line); outline-offset: -1px; }
.badge--tbc::before { background: var(--tbc-line); }
.badge--focus::before { background: transparent; border: 1.5px solid var(--accent); }
.work-tile--image .badge:not(.badge--tbc) { background: rgba(255,255,255,0.14); color: var(--white); }

/* ------------------------------------------------------ capability bento */
.bento { display: grid; gap: 1rem; }
@media (min-width: 700px) { .bento { grid-template-columns: repeat(2, 1fr); } .bento__feature { grid-column: 1 / -1; } }
@media (min-width: 1100px) { .bento { grid-template-columns: repeat(3, 1fr); } .bento__feature { grid-column: 1; grid-row: span 2; } }
.bento__item { position: relative; background: var(--paper); border-radius: var(--radius-lg); padding: clamp(1.5rem, 1.2rem + 1vw, 2.25rem); display: flex; flex-direction: column; gap: 0.75rem; min-height: 230px; transition: background-color 0.3s; }
.bento__item:hover { background: var(--paper-2); }
.bento__item h3 { font-size: var(--t-lg); margin: 0; letter-spacing: -0.02em; font-weight: 600; }
.bento__item h3 a { color: inherit; text-decoration: none; }
.bento__item h3 a::after { content: ''; position: absolute; inset: 0; }
.bento__item p { color: var(--muted); font-size: var(--t-sm); margin: 0; }
.bento__n { font-size: var(--t-xs); font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.bento__item .arrow-link { margin-top: auto; }
.bento__feature { background: var(--ink); color: var(--white); }
.bento__feature:hover { background: #20232a; }
.bento__feature p { color: var(--muted-dark); }
.bento__feature h3 { font-size: var(--t-xl); }
.bento__feature .bento__n { color: var(--accent-light); }
.bento__feature ul { list-style: none; display: grid; gap: 0.5rem; margin-top: 0.5rem; font-size: var(--t-sm); }
.bento__feature li { display: flex; gap: 0.6rem; align-items: baseline; }
.bento__feature li::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--accent-light); flex-shrink: 0; transform: translateY(-2px); }
.bento__feature .arrow-link { color: var(--white); }

/* ---------------------------------------------------- two-tone steps ---- */
.model { display: grid; gap: 3rem; }
@media (min-width: 1000px) { .model { grid-template-columns: 1fr 1.25fr; gap: 5rem; } .model__head { position: sticky; top: calc(var(--header-h) + 3rem); align-self: start; } }
.steps { list-style: none; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; padding: 1.6rem 0; border-top: 1px solid var(--line); }
.dark .steps li { border-color: var(--line-dark); }
.steps li::before { content: counter(s, decimal-leading-zero); font-size: var(--t-xs); font-weight: 600; color: var(--muted); padding-top: 0.6rem; font-variant-numeric: tabular-nums; }
.dark .steps li::before { color: var(--accent-light); }
.steps p { margin: 0; font-size: var(--t-xl); line-height: 1.25; letter-spacing: -0.02em; font-weight: 500; }
.steps strong { font-weight: 600; }
.steps span { color: var(--grey); }
.dark .steps span { color: var(--grey-dark); }

/* ------------------------------------------------------- columns / lists */
.cols { display: grid; gap: 2.5rem 3rem; }
@media (min-width: 700px) { .cols--2, .cols--3, .cols--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cols--3 { grid-template-columns: repeat(3, 1fr); } .cols--4 { grid-template-columns: repeat(4, 1fr); } }
.col { border-top: 1px solid var(--line); padding-top: 1.5rem; }
.dark .col { border-color: var(--line-dark); }
.col h3 { font-size: var(--t-md); font-weight: 600; letter-spacing: -0.01em; margin-bottom: 0.5rem; }
.col p { color: var(--muted); font-size: var(--t-sm); margin: 0; }
.dark .col p { color: var(--muted-dark); }

.sector-list { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--line); }
.sector-list li { display: grid; grid-template-columns: 1fr; gap: 0.4rem 2rem; padding: 1.4rem 0; border-bottom: 1px solid var(--line); align-items: center; }
@media (min-width: 800px) { .sector-list li { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) 12rem; } .sector-list .badge { justify-self: end; } }
.sector-list h3 { margin: 0; font-size: var(--t-xl); }
.sector-list p { margin: 0; color: var(--muted); }
.sector-list .badge { background: var(--paper); justify-self: start; }
.cta-section { padding-top: 0; }

.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chips li { font-size: var(--t-sm); padding: 0.45rem 0.9rem; border-radius: 999px; background: var(--paper); }
.dark .chips li { background: var(--ink-2); }

.dots { list-style: none; display: grid; gap: 0.55rem; }
.dots li { display: flex; gap: 0.7rem; align-items: baseline; }
.dots li::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); flex-shrink: 0; transform: translateY(-2px); }
.dots--loose { gap: 0.9rem; }
.case-row__body .dots li::before { transform: translateY(-3px); }
.dots--2 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); column-gap: 2rem; }

/* ------------------------------------------------------ capabilities page */
.jump { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.jump a { padding: 0.5rem 0.95rem; border-radius: 999px; background: var(--paper); color: var(--ink); text-decoration: none; font-size: var(--t-sm); font-weight: 500; min-height: 40px; display: inline-flex; align-items: center; }
.jump a:hover { background: var(--paper-2); }
.cap { display: grid; gap: 1.5rem 4rem; padding-block: clamp(2.5rem, 2rem + 3vw, 5rem); border-top: 1px solid var(--line); }
@media (min-width: 1000px) { .cap { grid-template-columns: 1fr 1.15fr; } }
.cap__n { font-size: var(--t-xs); font-weight: 600; color: var(--muted); margin-bottom: 1rem; display: block; font-variant-numeric: tabular-nums; }
.cap h2 { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.625rem); margin-bottom: 0; }
.cap__body { display: grid; gap: 1.5rem; align-content: start; }
.cap__body > p { font-size: var(--t-lg); color: var(--muted); margin: 0; }
.cap__outcome { padding: 1.1rem 1.25rem; background: var(--paper); border-radius: var(--radius); font-size: var(--t-sm); }
.cap__outcome strong { display: block; font-size: var(--t-xs); text-transform: uppercase; letter-spacing: 0.09em; color: var(--muted); margin-bottom: 0.2rem; }
.cap--feature { background: var(--ink); color: var(--white); border-radius: var(--radius-lg); padding-inline: clamp(1.5rem, 1rem + 3vw, 4rem); border: 0; margin-bottom: 1rem; }
.cap--feature .cap__body > p { color: var(--muted-dark); }
.cap--feature .cap__outcome { background: var(--ink-2); }
.cap--feature .cap__outcome strong { color: var(--muted-dark); }
.cap--feature .dots li::before { background: var(--accent-light); }
.cap--feature .cap__n { color: var(--accent-light); }

/* ---------------------------------------------------------- case study -- */
.case-meta { display: grid; gap: 0; border-top: 1px solid var(--line); margin: 0; }
@media (min-width: 700px) { .case-meta { grid-template-columns: repeat(2, 1fr); column-gap: 2rem; } }
@media (min-width: 1100px) { .case-meta { grid-template-columns: repeat(5, 1fr); } }
.case-meta > div { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.case-meta dt { font-size: var(--t-xs); font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.35rem; }
.case-meta dd { margin: 0; font-size: var(--t-sm); }
.case-hero { border-radius: var(--radius-lg); overflow: hidden; background: var(--paper); }
.case-hero img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }
@media (max-width: 699px) { .case-hero img { aspect-ratio: 4 / 3; } }
.case-hero--type { aspect-ratio: 3 / 1; position: relative; display: flex; align-items: flex-end; padding: clamp(1.5rem, 1rem + 2vw, 3rem); }
@media (max-width: 699px) { .case-hero--type { aspect-ratio: 4 / 3; } }
.case-hero--type span { font-size: clamp(3rem, 1.5rem + 8vw, 10rem); font-weight: 600; letter-spacing: -0.055em; line-height: 0.9; color: var(--grey); }
.case-row { display: grid; gap: 1rem 4rem; padding-block: clamp(2rem, 1.6rem + 2vw, 3.5rem); border-top: 1px solid var(--line); }
@media (min-width: 900px) { .case-row { grid-template-columns: 1fr 2.2fr; } }
.case-row h2 { font-size: var(--t-xl); margin: 0; }
.case-row__body { font-size: var(--t-lg); line-height: 1.6; display: grid; gap: 1rem; max-width: 62ch; }
.case-row__body p { margin: 0; }
.gallery { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); }
.next-case { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 2rem; background: var(--paper); border-radius: var(--radius-lg); text-decoration: none; color: var(--ink); transition: background-color 0.3s; }
.next-case:hover { background: var(--paper-2); }
.next-case span { font-size: var(--t-xs); text-transform: uppercase; letter-spacing: 0.09em; font-weight: 600; color: var(--muted); }
.next-case strong { display: block; font-size: var(--t-xl); font-weight: 550; letter-spacing: -0.02em; margin-top: 0.25rem; }
.next-case svg { width: 22px; flex-shrink: 0; }

.legend { display: flex; flex-wrap: wrap; gap: 1rem 2rem; font-size: var(--t-sm); color: var(--muted); }
.legend div { display: flex; gap: 0.6rem; align-items: center; }
.legend .badge { background: var(--paper); }

.notice { font-size: var(--t-xs); color: var(--muted); max-width: 80ch; }

/* -------------------------------------------------------------- about --- */
.media { border-radius: var(--radius-lg); overflow: hidden; }
.media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.media--wide img { aspect-ratio: 21 / 9; }
@media (max-width: 699px) { .media--wide img { aspect-ratio: 4 / 3; } }
.split { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 5rem; } }
.facts { display: grid; gap: 0; margin: 0; border-top: 1px solid var(--line); }
.facts > div { display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; padding: 0.9rem 0; border-bottom: 1px solid var(--line); font-size: var(--t-sm); }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.founder { display: grid; gap: 2rem; }
@media (min-width: 900px) { .founder { grid-template-columns: 1fr 1.6fr; gap: 4rem; } }

/* --------------------------------------------------------------- CTA ---- */
.cta { background: var(--ink); color: var(--white); border-radius: var(--radius-lg); padding: clamp(3rem, 2rem + 5vw, 7rem) clamp(1.5rem, 1rem + 3vw, 4rem); text-align: center; position: relative; overflow: hidden; }
.cta::before { content: ''; position: absolute; left: 50%; top: 100%; width: 120%; aspect-ratio: 2; transform: translate(-50%, -40%); background: radial-gradient(closest-side, rgba(85,119,184,0.35), rgba(85,119,184,0)); pointer-events: none; }
.cta > * { position: relative; }
.cta h2 { font-size: var(--t-3xl); margin-bottom: 1.25rem; }
.cta p { color: var(--muted-dark); font-size: var(--t-lg); max-width: 40ch; margin: 0 auto 2rem; }
.cta .btn-row { justify-content: center; }

/* ---------------------------------------------------------------- TBC --- */
.tbc { display: inline-block; background: var(--tbc-bg); color: var(--tbc); border: 1px dashed var(--tbc-line); border-radius: 6px; padding: 0.15rem 0.5rem; font-size: 0.9em; line-height: 1.45; }
.tbc__label { font-weight: 700; font-size: 0.72em; letter-spacing: 0.1em; text-transform: uppercase; margin-right: 0.3rem; }
.tbc--block { display: grid; gap: 0.3rem; padding: 1rem 1.25rem; font-size: var(--t-sm); line-height: 1.5; }
.tbc--block .tbc__label { font-size: 0.6875rem; }
.tbc__note { color: #5c3c00; }
.tbc__example { font-style: italic; color: #6e4800; }
.case-meta .tbc, .facts .tbc { display: block; font-size: var(--t-xs); }
.case-meta .tbc__label { display: block; }

/* --------------------------------------------------------------- forms -- */
.contact { display: grid; gap: 3rem; }
@media (min-width: 1000px) { .contact { grid-template-columns: 1fr 1.25fr; gap: 5rem; align-items: start; } }
.form-panel { background: var(--paper); border-radius: var(--radius-lg); padding: clamp(1.5rem, 1rem + 2.5vw, 3rem); }
.form { display: grid; gap: 1.25rem; }
.form[hidden] { display: none; }
.form__row { display: grid; gap: 1.25rem; }
@media (min-width: 600px) { .form__row--2 { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 0.4rem; align-content: start; }
.field label { font-weight: 600; font-size: var(--t-sm); }
.field .optional { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; height: 48px; padding: 0.7rem 0.9rem; line-height: 1.4; background: var(--white);
  border: 1px solid #c9cdd4; border-radius: var(--radius); transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { height: auto; min-height: 160px; resize: vertical; line-height: 1.5; }
.field select {
  appearance: none; padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2317191e' stroke-width='1.6' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: #8f95a1; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent-ink); box-shadow: 0 0 0 3px rgba(85,119,184,0.28); }
.field__hint { font-size: var(--t-xs); color: var(--muted); }
.field__error { font-size: var(--t-xs); color: var(--error); font-weight: 600; }
.field__error:empty { display: none; }
.field [aria-invalid='true'] { border-color: var(--error); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { padding: 0.9rem 1.1rem; border-radius: var(--radius); font-weight: 500; font-size: var(--t-sm); background: #fdecea; color: var(--error); }
.form-status:empty { display: none; }
.form__foot { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: center; }
.form-privacy { font-size: var(--t-xs); color: var(--muted); margin: 0; flex: 1 1 220px; }
.form-success { display: grid; gap: 1rem; justify-items: start; padding: 1rem 0; }
.form-success[hidden] { display: none; }
.form-success__icon { width: 52px; height: 52px; border-radius: 50%; background: #e3f3ea; color: var(--success); display: grid; place-items: center; }
.form-success__icon svg { width: 24px; }
.form-success h2 { font-size: var(--t-2xl); margin: 0; }
.form-success p { color: var(--muted); margin: 0; max-width: 42ch; }
.next-steps { list-style: none; counter-reset: n; display: grid; gap: 1.25rem; margin-top: 2.5rem; }
.next-steps li { counter-increment: n; display: grid; grid-template-columns: 2rem 1fr; gap: 0.75rem; }
.next-steps li::before { content: counter(n); width: 1.75rem; height: 1.75rem; border-radius: 50%; background: var(--paper); display: grid; place-items: center; font-size: var(--t-xs); font-weight: 600; }
.next-steps strong { display: block; font-weight: 600; }
.next-steps span { color: var(--muted); font-size: var(--t-sm); }
.contact h1 { font-size: var(--t-2xl); }
.contact address { font-style: normal; font-size: var(--t-sm); color: var(--muted); line-height: 1.7; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.contact address strong { color: var(--ink); }

/* ---------------------------------------------------------------- prose - */
.prose { font-size: var(--t-md); line-height: 1.7; max-width: 68ch; }
.prose h2 { font-size: var(--t-xl); margin-top: 2.5rem; }
.prose ul { padding-left: 1.25rem; margin-bottom: 1rem; }
.prose li { margin-bottom: 0.4rem; }

/* -------------------------------------------------------------- footer -- */
.site-footer { background: var(--ink); color: var(--muted-dark); font-size: var(--t-sm); }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer__top { display: grid; gap: 2.5rem; padding-block: 4.5rem 3rem; }
@media (min-width: 900px) { .site-footer__top { grid-template-columns: 2fr 1fr 1.3fr; } }
.site-footer__big { font-size: var(--t-2xl); font-weight: 550; letter-spacing: -0.035em; line-height: 1.05; color: var(--white); margin: 1.5rem 0 0; max-width: 14ch; }
.site-footer__big span { color: var(--grey-dark); }
.site-footer h2 { font-size: var(--t-xs); text-transform: uppercase; letter-spacing: 0.09em; color: var(--white); margin-bottom: 1rem; font-weight: 600; }
.site-footer ul { list-style: none; display: grid; gap: 0.55rem; }
.site-footer address { font-style: normal; line-height: 1.7; }
.site-footer__bottom { position: relative; padding-block: 1.5rem; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; font-size: var(--t-xs); }
.site-footer__bottom ul { display: flex; gap: 1.5rem; }
.site-footer__bottom::before { content: ''; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); border-top: 1px solid var(--line-dark); }

/* -------------------------------------------------------------- motion -- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
  .js [data-reveal].is-visible { opacity: 1; transform: none; }
  .hero__media img { animation: settle 2.4s var(--ease) both; }
  .hero h1, .hero__lead, .hero .btn-row { animation: rise 1s var(--ease) both; }
  .hero__lead { animation-delay: 0.12s; }
  .hero .btn-row { animation-delay: 0.22s; }
  @keyframes settle { from { transform: scale(1.06); } to { transform: none; } }
  @keyframes rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

@media print {
  .site-header, .mobile-nav, .cta, .site-footer__top { display: none; }
  .hero, .dark { background: none; color: #000; }
}
