/* Jugrafiya — design tokens and styles.
   Concept: a precise survey sheet. Calm paper surfaces, ink typography in one
   variable family (condensed width for display, normal for reading), the brand
   teal from the logo, and a single expressive element: the globe. */

@font-face {
  font-family: 'Instrument Sans';
  src: url('/fonts/instrument-sans-var.woff') format('woff');
  font-weight: 400 700;
  font-stretch: 75% 100%;
  font-style: normal;
  font-display: swap;
}

:root {
  /* colour: light (default) */
  --paper: #F8FAF9;
  --surface: #FFFFFF;
  --ink: #102A35;
  --ink-2: #45606A;
  --line: #D6E1E1;
  --line-strong: #A9BDC0;
  --teal: #166785;
  --teal-ink: #0F5068;
  --teal-wash: #E7F0F2;
  --on-teal: #FFFFFF;
  --amber: #8F5A0A;
  --amber-wash: #FBF1DF;
  --land: #2C4A55;
  --sea-1: #FFFFFF;
  --sea-2: #E3EDEF;
  --focus: #0F5068;
  --link: #0F5068;
  --control: #6F878D;
  --shadow: 0 1px 2px rgb(16 42 53 / 6%), 0 8px 24px -12px rgb(16 42 53 / 18%);

  /* type */
  --font: 'Instrument Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --text: 1.0625rem;
  --text-sm: 0.9375rem;
  --text-xs: 0.8125rem;
  --h1-hero: clamp(2.5rem, 1.6rem + 3.9vw, 4.6rem);
  --h1: clamp(2.25rem, 1.75rem + 2.3vw, 3.5rem);
  --h2: clamp(1.625rem, 1.35rem + 1.15vw, 2.25rem);
  --h3: 1.25rem;
  --display-stretch: 82%;

  /* space */
  --s1: 0.25rem; --s2: 0.5rem; --s3: 0.75rem; --s4: 1rem; --s5: 1.5rem;
  --s6: 2rem; --s7: 3rem; --s8: 4rem; --s9: 6rem;
  --gutter: 16px;
  --section: clamp(3.5rem, 2rem + 6vw, 7rem);
  --max: 1200px;

  /* shape and motion */
  --r-sm: 4px;
  --r: 6px;
  --r-lg: 10px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --fast: 140ms;
  --med: 260ms;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --paper: #0B1C22;
  --surface: #10262D;
  --ink: #E4EEEE;
  --ink-2: #A6BCC0;
  --line: #22404A;
  --line-strong: #3B5E69;
  --teal: #6CC4D6;
  --teal-ink: #9AD9E6;
  --teal-wash: #12323D;
  --on-teal: #06181E;
  --amber: #E3A84A;
  --amber-wash: #2E2412;
  --land: #9FC3CB;
  --sea-1: #17343E;
  --sea-2: #0E242B;
  --focus: #9AD9E6;
  --link: #7FD0E0;
  --control: #5F8794;
  --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 10px 30px -14px rgb(0 0 0 / 60%);
  color-scheme: dark;
}

@media (min-width: 768px) { :root { --gutter: 32px; } }

/* ── base ── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 5rem; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--text);
  line-height: 1.6;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}
img, svg, canvas, picture { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3 {
  margin: 0;
  font-stretch: var(--display-stretch);
  font-weight: 620;
  line-height: 1.1;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
h1 { font-size: var(--h1); letter-spacing: -0.025em; }
h2 { font-size: var(--h2); }
h3 { font-size: var(--h3); line-height: 1.25; letter-spacing: -0.005em; }
p { margin: 0 0 var(--s4); text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--teal); color: var(--on-teal); }

.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: var(--s4); top: -100px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: var(--s2) var(--s4); border-radius: var(--r);
}
.skip-link:focus { top: var(--s4); }
main:focus { outline: none; }

/* ── review markers ── */
.review-banner {
  background: var(--amber-wash); color: var(--ink); border-bottom: 1px solid var(--line);
  font-size: var(--text-sm); padding: var(--s2) var(--gutter); text-align: center;
}
.pending {
  display: inline-block; margin-left: var(--s1);
  font-size: var(--text-xs); line-height: 1.4; font-weight: 500;
  color: var(--amber); background: var(--amber-wash);
  border: 1px dashed var(--amber); border-radius: var(--r-sm); padding: 0 var(--s2);
  vertical-align: middle;
}
.pending--block { display: block; margin: var(--s4) 0; padding: var(--s3) var(--s4); font-size: var(--text-sm); }
.pending--sample { margin: 0; }

/* ── buttons and links ── */
.actions { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s6); }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: 48px; padding: 0 var(--s5);
  font: inherit; font-weight: 600; font-size: var(--text-sm); line-height: 1;
  border-radius: var(--r); border: 1px solid transparent; cursor: pointer;
  text-decoration: none; transition: background-color var(--fast), border-color var(--fast), color var(--fast);
}
.button--primary { background: var(--teal); color: var(--on-teal); }
.button--primary:hover { background: var(--teal-ink); color: var(--on-teal); }
:root[data-theme="dark"] .button--primary:hover { background: var(--teal-ink); }
.button--secondary { background: transparent; color: var(--ink); border-color: var(--control); }
.button--secondary:hover { border-color: var(--ink); color: var(--ink); }
.button--small { min-height: 40px; padding: 0 var(--s4); }
.button[disabled], .button[aria-disabled="true"] { opacity: .6; cursor: progress; }
:root[data-theme="dark"] .button--primary, :root[data-theme="dark"] .button--primary:hover { color: var(--on-teal); }
.text-link { font-weight: 600; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 1px; }
.text-link:hover { border-bottom-width: 2px; }
.link-button { font: inherit; color: var(--link); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: .18em; }
.more { margin-top: var(--s6); }

/* ── header ── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex; align-items: center; gap: var(--s4);
  max-width: calc(var(--max) + var(--gutter) * 2); margin-inline: auto; padding: var(--s2) var(--gutter);
  min-height: 64px;
}
.logo { display: inline-flex; align-items: center; flex: none; border-radius: var(--r-sm); }
.logo__img { height: 38px; width: auto; }
.logo__img--dark { display: none; }
:root[data-theme="dark"] .logo__img--light { display: none; }
:root[data-theme="dark"] .logo__img--dark { display: block; }
.primary-nav { margin-left: auto; }
.primary-nav__list { list-style: none; display: flex; gap: var(--s1); }
.primary-nav__list a {
  display: block; padding: var(--s2) var(--s3); border-radius: var(--r-sm);
  color: var(--ink); text-decoration: none; font-weight: 500; font-size: var(--text-sm);
}
.primary-nav__list a:hover { background: var(--teal-wash); }
.primary-nav__list a[aria-current="page"] { color: var(--link); box-shadow: inset 0 -2px 0 var(--teal); border-radius: 0; }
.primary-nav__toggle { display: none; }
.site-header__actions { display: flex; align-items: center; gap: var(--s2); }

.theme { position: relative; }
.theme__toggle {
  display: grid; place-items: center; width: 40px; height: 40px;
  background: transparent; color: var(--ink); border: 1px solid var(--control); border-radius: var(--r); cursor: pointer;
}
.theme__toggle:hover { border-color: var(--line-strong); }
.icon { width: 20px; height: 20px; }
.theme__menu {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 60;
  display: grid; min-width: 180px; padding: var(--s1);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow);
}
.theme__menu[hidden] { display: none; }
.theme__menu button {
  text-align: left; font: inherit; font-size: var(--text-sm); color: var(--ink);
  background: none; border: 0; border-radius: var(--r-sm); padding: var(--s2) var(--s3); cursor: pointer;
}
.theme__menu button:hover { background: var(--teal-wash); }
.theme__menu button[aria-pressed="true"]::after { content: ''; float: right; width: 8px; height: 8px; margin-top: .5em; border-radius: 50%; background: var(--teal); }

@media (max-width: 1023px) {
  .primary-nav__toggle {
    display: inline-flex; align-items: center; gap: var(--s2); height: 40px; padding: 0 var(--s3);
    font: inherit; font-size: var(--text-sm); font-weight: 600; color: var(--ink);
    background: none; border: 1px solid var(--control); border-radius: var(--r); cursor: pointer;
  }
  .primary-nav__bars, .primary-nav__bars::before, .primary-nav__bars::after {
    display: block; width: 16px; height: 2px; background: currentColor; border-radius: 1px; position: relative;
    transition: transform var(--fast) var(--ease);
  }
  .primary-nav__bars::before, .primary-nav__bars::after { content: ''; position: absolute; left: 0; }
  .primary-nav__bars::before { top: -5px; }
  .primary-nav__bars::after { top: 5px; }
  [aria-expanded="true"] > .primary-nav__bars { background: transparent; }
  [aria-expanded="true"] > .primary-nav__bars::before { transform: translateY(5px) rotate(45deg); }
  [aria-expanded="true"] > .primary-nav__bars::after { transform: translateY(-5px) rotate(-45deg); }
  .primary-nav__list {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0; padding: var(--s2) var(--gutter) var(--s5);
    background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .js .primary-nav__list:not(.is-open) { display: none; }
  .primary-nav__list a { padding: var(--s3) 0; font-size: var(--text); border-bottom: 1px solid var(--line); border-radius: 0; }
  .primary-nav__list a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--teal); padding-left: var(--s3); }
  .primary-nav { margin-left: auto; }
  .site-header__actions .button { display: none; }
}
@media (max-width: 1023px) { .no-js .primary-nav__list { position: static; box-shadow: none; } }
@media (max-width: 380px) { .logo__img { height: 32px; } }

/* ── hero ── */
.hero { position: relative; overflow: hidden; padding-block: clamp(1.75rem, .75rem + 3.5vw, 3.75rem) var(--s5); border-bottom: 1px solid var(--line); }
.hero__inner { display: grid; gap: var(--s6); align-items: center; }
.hero__place { font-weight: 500; color: var(--ink-2); margin-bottom: var(--s4); }
.hero__title { font-size: clamp(2.25rem, 1.5rem + 3vw, 4rem); line-height: 1.04; letter-spacing: -0.03em; max-width: 16ch; font-weight: 640; }
.hero__lede { font-size: clamp(1.0625rem, 1rem + .3vw, 1.1875rem); color: var(--ink-2); max-width: 34rem; margin-top: var(--s4); }
.hero .actions { margin-top: var(--s5); }
.hero__proof { margin-top: var(--s4); font-size: var(--text-sm); color: var(--ink-2); }
@media (min-width: 960px) {
  .hero__inner { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
}

/* ── globe ── */
.globe { margin: 0; justify-self: center; width: min(78%, 420px); }
@media (min-width: 960px) { .globe { width: min(40vw, 520px); justify-self: end; margin-right: calc(var(--gutter) * -0.5); } }
.globe__stage { position: relative; aspect-ratio: 1; pointer-events: none; }
.globe__stage > * { position: absolute; inset: 0; width: 100%; height: 100%; }
.globe__sphere {
  inset: 2%; width: auto; height: auto; border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, var(--sea-1) 0%, var(--sea-2) 72%, color-mix(in srgb, var(--sea-2) 80%, var(--ink) 20%) 100%);
  box-shadow: 0 30px 60px -40px rgb(16 42 53 / 45%);
}
.globe__grid, .globe__land { -webkit-mask-size: 100% 100%; mask-size: 100% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
.globe__grid { background: var(--line-strong); -webkit-mask-image: url('/img/globe/grid.svg'); mask-image: url('/img/globe/grid.svg'); opacity: .7; }
.globe__land { background: var(--land); -webkit-mask-image: url('/img/globe/land.svg'); mask-image: url('/img/globe/land.svg'); opacity: .88; }
.globe__overlay { overflow: visible; }
.globe__routes path { fill: none; stroke: var(--amber); stroke-width: 1.6; stroke-dasharray: 4 5; stroke-linecap: round; }
.globe__home { fill: var(--teal); stroke: var(--surface); stroke-width: 2; }
.globe__halo { fill: var(--teal); opacity: .18; }
.globe__canvas { opacity: 0; transition: opacity 600ms var(--ease); }
.globe.is-live .globe__canvas { opacity: 1; }
.globe.is-live .globe__grid, .globe.is-live .globe__land, .globe.is-live .globe__overlay { opacity: 0; transition: opacity 600ms var(--ease); }
.globe__caption { display: flex; flex-wrap: wrap; gap: var(--s1) var(--s4); justify-content: center; margin-top: var(--s3); font-size: var(--text-xs); color: var(--ink-2); text-align: center; }
.globe__key { display: inline-flex; align-items: center; gap: var(--s2); }
.globe__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 3px color-mix(in srgb, var(--teal) 25%, transparent); }
.globe__pause { font-size: var(--text-xs); }

/* ── stats (hero legend) ── */
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s5) var(--s4); margin: 0; }
.stats__item { display: flex; flex-direction: column-reverse; gap: var(--s1); border-top: 1px solid var(--line-strong); padding-top: var(--s3); }
.stats dt { color: var(--ink-2); font-size: var(--text-sm); }
.stats dd { margin: 0; font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.6rem); font-weight: 620; font-stretch: var(--display-stretch); line-height: 1; font-variant-numeric: tabular-nums lining-nums; letter-spacing: -0.02em; }
@media (min-width: 720px) { .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stats--hero { margin-top: var(--s6); }
.stats__note { margin-top: var(--s3); font-size: var(--text-xs); color: var(--ink-2); }

/* ── buyer routes ── */
.routes { display: grid; gap: var(--s5); }
@media (min-width: 760px) { .routes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1180px) { .routes { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.route { display: flex; flex-direction: column; gap: var(--s3); padding: var(--s5); border: 1px solid var(--line); border-top: 3px solid var(--teal); border-radius: var(--r); background: var(--surface); }
.route h3 { font-size: 1.1875rem; }
.route p { margin: 0; font-size: var(--text-sm); color: var(--ink-2); }
.route .text-link { margin-top: auto; align-self: flex-start; }
.route__label { display: block; font-size: var(--text-xs); font-weight: 600; color: var(--ink); margin-bottom: 2px; }
.route__deliver, .route__proof { color: var(--ink) !important; }
.subhead { font-size: 1.25rem; margin: var(--s7) 0 var(--s5); }
.subhead:first-child { margin-top: 0; }
.flagships { display: grid; gap: var(--s7) var(--s6); }
@media (min-width: 900px) { .flagships { grid-template-columns: repeat(2, minmax(0, 1fr)); } .flagships .story--lead { grid-column: 1 / -1; } }
.story--lead { margin-bottom: 0; }

/* portfolio flagships */
.flag-list { display: grid; gap: var(--s5); }
@media (min-width: 900px) { .flag-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.flag { display: grid; gap: var(--s2); align-content: start; color: var(--ink); text-decoration: none; }
.flag__media { display: block; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); margin-bottom: var(--s2); }
.flag__media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top center; }
.flag__problem { font-size: var(--text-sm); font-weight: 600; color: var(--link); }
.flag__name { font-size: 1.375rem; font-weight: 620; font-stretch: var(--display-stretch); }
.flag__text { font-size: var(--text-sm); color: var(--ink-2); }
.flag:hover .flag__name { text-decoration: underline; text-underline-offset: .2em; }

/* service intro CTA and fit */
.intro-cta { display: grid; gap: var(--s4); align-content: end; padding: var(--s5); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.intro-cta .button { justify-self: start; }
.intro-cta__proof { margin: 0; font-size: var(--text-sm); color: var(--ink-2); }
@media (min-width: 960px) { .page-head:has(.intro-cta) { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); align-items: end; } }
.fit { display: grid; gap: var(--s6); }
@media (min-width: 900px) { .fit { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.fit h3 { font-size: 1.0625rem; margin-bottom: var(--s3); }
.fit .ticks { gap: var(--s2); font-size: var(--text-sm); }
.fit__how { margin-top: var(--s6); max-width: 46rem; color: var(--ink-2); }

/* case evidence */
.evidence { list-style: none; display: grid; gap: var(--s4); max-width: 44rem; }
.evidence li { border-left: 3px solid var(--teal); padding-left: var(--s4); }
.evidence p { margin: 0; }
.evidence__src { font-size: var(--text-sm); color: var(--ink-2); margin-top: var(--s1) !important; }
.subtle { font-size: var(--text-sm); color: var(--ink-2); margin-top: var(--s3); }

/* contact context */
.context { margin-bottom: var(--s5); padding: var(--s3) var(--s4); border: 1px solid var(--line-strong); border-radius: var(--r); background: var(--surface); }
.context p { margin: 0; display: flex; flex-wrap: wrap; gap: var(--s2); align-items: baseline; }
.context .route__label { display: inline; margin: 0; }
.field__opt { font-weight: 400; color: var(--ink-2); }
.steps--compact { gap: var(--s2); font-size: var(--text-sm); margin-bottom: var(--s4); }

/* ── sections ── */
.section { padding-block: var(--section); }
.section + .section:not(.section--tint):not(.section--quote) { border-top: 1px solid var(--line); }
.section--tint { background: var(--surface); border-block: 1px solid var(--line); }
.section--flush { padding-top: var(--s5); }
.section__head { max-width: 44rem; margin-bottom: var(--s7); }
.section__head p { color: var(--ink-2); margin-top: var(--s3); font-size: 1.0625rem; }
.split { display: grid; gap: var(--s4) var(--s7); }
.split + .split { margin-top: var(--s7); padding-top: var(--s7); border-top: 1px solid var(--line); }
.split__aside p { color: var(--ink-2); margin-top: var(--s3); }
.split__aside .text-link { display: inline-block; margin-top: var(--s4); }
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
  .split__aside { position: sticky; top: 6rem; align-self: start; }
}
.prose { max-width: 42rem; }
.prose--doc h2 { font-size: 1.375rem; margin: var(--s6) 0 var(--s3); }
.prose--doc h2:first-child { margin-top: 0; }

.page-head { display: grid; gap: var(--s6); padding-block: var(--s6) var(--s7); }
.page-head__kicker { font-weight: 600; font-size: var(--text-sm); margin-bottom: var(--s3); }
.page-head__kicker a { text-decoration: none; }
.page-head__kicker a::before { content: '← '; }
.lede { font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem); color: var(--ink-2); max-width: 40rem; margin-top: var(--s4); }
@media (min-width: 960px) { .page-head:has(.facts) { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); align-items: end; } }

.breadcrumbs { max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding: var(--s4) var(--gutter) 0; font-size: var(--text-xs); color: var(--ink-2); }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s2); }
.breadcrumbs li + li::before { content: '/'; margin-right: var(--s2); color: var(--line-strong); }
.breadcrumbs a { color: var(--ink-2); }

/* ── lists ── */
.ticks { list-style: none; display: grid; gap: var(--s3); max-width: 42rem; }
.ticks li { position: relative; padding-left: var(--s5); }
.ticks li::before { content: ''; position: absolute; left: 0; top: .62em; width: 10px; height: 2px; background: var(--teal); }
.plain { list-style: none; display: grid; gap: var(--s2); }
.steps { display: grid; gap: var(--s3); padding-left: 1.25rem; max-width: 40rem; }
.steps li::marker { font-weight: 600; color: var(--link); }

/* services index (home) */
.service-index { list-style: none; border-top: 1px solid var(--line-strong); }
.service-index__item a {
  display: grid; gap: var(--s1) var(--s5); padding: var(--s5) 0; border-bottom: 1px solid var(--line);
  color: var(--ink); text-decoration: none; transition: padding var(--med) var(--ease);
}
.service-index__name { font-size: 1.375rem; font-weight: 620; font-stretch: var(--display-stretch); letter-spacing: -0.01em; }
.service-index__text { color: var(--ink-2); }
.service-index__item a:hover .service-index__name { color: var(--link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
@media (min-width: 720px) { .service-index__item a { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: baseline; } }

.service-rows { list-style: none; display: grid; }
.service-row { padding: var(--s6) 0; border-top: 1px solid var(--line); display: grid; gap: var(--s3); max-width: 52rem; }
.service-row h2 a { color: var(--ink); text-decoration: none; }
.service-row h2 a:hover { color: var(--link); text-decoration: underline; }
.service-row__tools { font-size: var(--text-sm); color: var(--ink-2); }

/* tech */
.tech { display: grid; gap: var(--s6) var(--s7); }
@media (min-width: 720px) { .tech { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .tech { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tech__group { border-top: 2px solid var(--ink); padding-top: var(--s3); }
.tech__group h3 { font-size: 1.0625rem; margin-bottom: var(--s2); }
.tech__group p { color: var(--ink-2); font-size: var(--text-sm); line-height: 1.7; }

/* industries */
.industry-list { list-style: none; display: grid; column-gap: var(--s7); }
@media (min-width: 900px) { .industry-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.industry-list a { display: grid; gap: var(--s1); padding: var(--s4) 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.industry-list__name { font-weight: 620; font-size: 1.1875rem; font-stretch: var(--display-stretch); }
.industry-list__text { color: var(--ink-2); font-size: var(--text-sm); }
.industry-list a:hover .industry-list__name { color: var(--link); text-decoration: underline; text-underline-offset: .2em; }
.industry-list--large .industry-list__name { font-size: 1.5rem; }

/* process: genuine sequence, so numbered */
.process { list-style: none; counter-reset: step; display: grid; gap: var(--s7) var(--s5); }
@media (min-width: 720px) { .process { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .process { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.process li { counter-increment: step; position: relative; padding-top: var(--s5); border-top: 1px solid var(--line-strong); }
.process li::before {
  content: counter(step); position: absolute; top: -0.85rem; left: 0;
  display: grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: 50%;
  background: var(--paper); border: 1px solid var(--line-strong); font-size: var(--text-xs); font-weight: 600; font-variant-numeric: tabular-nums;
}
.section--tint .process li::before { background: var(--surface); }
.process h3 { font-size: 1.0625rem; margin-bottom: var(--s2); }
.process p { font-size: var(--text-sm); color: var(--ink-2); }

.timeline { list-style: none; display: grid; gap: 0; border-left: 1px solid var(--line-strong); }
.timeline li { position: relative; padding: 0 0 var(--s5) var(--s6); }
.timeline li::before { content: ''; position: absolute; left: -5px; top: .5em; width: 9px; height: 9px; border-radius: 50%; background: var(--teal); }
.timeline__year { display: block; font-weight: 620; font-stretch: var(--display-stretch); font-size: 1.375rem; font-variant-numeric: tabular-nums; }

/* definition grids */
.uses { display: grid; gap: var(--s5) var(--s7); margin: 0; }
@media (min-width: 720px) { .uses:not(.uses--stack) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.uses dt { font-weight: 620; font-size: 1.125rem; font-stretch: var(--display-stretch); }
.uses dd { margin: var(--s1) 0 0; color: var(--ink-2); }
.uses--stack { max-width: 44rem; }
.stack { display: grid; gap: var(--s3); margin: 0; max-width: 44rem; }
.stack > div { display: grid; gap: var(--s1) var(--s5); padding-bottom: var(--s3); border-bottom: 1px solid var(--line); }
@media (min-width: 600px) { .stack > div { grid-template-columns: 10rem minmax(0, 1fr); } }
.stack dt { font-weight: 600; font-size: var(--text-sm); }
.stack dd { margin: 0; color: var(--ink-2); font-size: var(--text-sm); }
.tool-line { color: var(--ink-2); max-width: 44rem; }

.facts { margin: 0; display: grid; gap: var(--s3); padding: var(--s5); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.facts div { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: var(--s3); font-size: var(--text-sm); }
.facts dt { color: var(--ink-2); }
.facts dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; min-width: 0; }

/* ── work ── */
.story { display: grid; gap: var(--s5); }
.story__media { display: block; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: var(--teal-wash); }
.story__media .plate { aspect-ratio: 16 / 9; }
.story__media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: top center; transition: transform 600ms var(--ease); }
.story__media:hover img { transform: scale(1.015); }
.story__client { font-size: var(--text-sm); color: var(--ink-2); margin-bottom: var(--s2); }
.story h3 { font-size: clamp(1.375rem, 1.2rem + .7vw, 1.75rem); margin-bottom: var(--s3); }
.story h3 a { color: var(--ink); text-decoration: none; }
.story h3 a:hover { color: var(--link); text-decoration: underline; }
.story__outcome { font-weight: 500; }
.story__role { font-size: var(--text-sm); color: var(--ink-2); }
.story--lead { margin-bottom: var(--s8); }
@media (min-width: 960px) {
  .story--lead { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); align-items: end; gap: var(--s7); }
  .story--lead h3 { font-size: 2.25rem; }
}
.story-grid { display: grid; gap: var(--s7) var(--s6); }
@media (min-width: 760px) { .story-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.work-grid { display: grid; gap: var(--s7) var(--s5); }
@media (min-width: 700px) { .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .work-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.work-card { display: grid; gap: var(--s4); align-content: start; }
.work-card[hidden] { display: none; }
.work-card__media { display: block; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: var(--teal-wash); }
.work-card__media img, .work-card__media .plate { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top center; }
.work-card__title { font-size: 1.25rem; margin-bottom: var(--s1); }
.work-card__title a { color: var(--ink); text-decoration: none; }
.work-card__title a:hover { color: var(--link); text-decoration: underline; }
.work-card__client { font-size: var(--text-sm); color: var(--ink-2); margin-bottom: var(--s2); }
.work-card__role { font-size: var(--text-sm); color: var(--ink-2); }

/* illustrations: generated artwork, always labelled */
.illus { position: relative; display: block; }
.illus img { width: 100%; height: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.story__media .illus img { aspect-ratio: 16 / 9; }
.illus__tag {
  position: absolute; left: 8px; bottom: 8px;
  font-size: 10px; font-weight: 500; line-height: 1; letter-spacing: .01em; color: #3E5862;
  background: rgb(255 255 255 / 80%); border-radius: 999px; padding: 3px 7px;
}
.case-media .illus img { border-radius: var(--r-lg); border: 1px solid var(--line); aspect-ratio: auto; }
.case-media__note { margin-top: var(--s2); font-size: var(--text-xs); color: var(--ink-2); }
.case-media { margin-inline: auto; }

/* plate: for projects without approved imagery — contour lines, not a fake screenshot */
.plate {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: var(--s1);
  padding: var(--s5); color: var(--ink); text-decoration: none; height: 100%;
  background:
    repeating-radial-gradient(circle at 78% 28%, transparent 0 17px, color-mix(in srgb, var(--teal) 22%, transparent) 17px 18px),
    var(--teal-wash);
}
a:has(> .plate) { text-decoration: none; color: var(--ink); }
.plate__name { font-size: 1.375rem; font-weight: 640; font-stretch: var(--display-stretch); line-height: 1.1; }
.plate__meta { font-size: var(--text-xs); color: var(--ink-2); }

.case-media { margin-bottom: var(--s7); }
.case-media img { border-radius: var(--r-lg); border: 1px solid var(--line); width: 100%; }

/* case-study gallery */
.gallery { display: grid; gap: var(--s6); }
@media (min-width: 1000px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.gallery__item { margin: 0; }
.gallery__item img { width: 100%; border-radius: var(--r); border: 1px solid var(--line); }
.gallery__item figcaption { margin-top: var(--s2); font-size: var(--text-sm); color: var(--ink-2); }

/* filters */
.filters { display: grid; gap: var(--s3); margin-bottom: var(--s7); padding-bottom: var(--s5); border-bottom: 1px solid var(--line); }
.filters[hidden] { display: none; }
.filters__group { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); }
.filters__label { font-size: var(--text-sm); font-weight: 600; min-width: 5rem; }
.chip {
  min-height: 40px; padding: 0 var(--s4); font: inherit; font-size: var(--text-sm);
  color: var(--ink); background: var(--surface); border: 1px solid var(--control); border-radius: 999px; cursor: pointer;
}
.chip:hover { border-color: var(--line-strong); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.filters__status { font-size: var(--text-sm); color: var(--ink-2); margin: 0; }
.empty { padding: var(--s7) 0; text-align: center; }
.empty[hidden] { display: none; }
.empty p { margin-bottom: var(--s4); }

/* ── quote ── */
.section--quote { background: var(--teal); color: var(--on-teal); }
.section--quote + .section { border-top: 0 !important; }
.quote { margin: 0; max-width: 56rem; }
.quote blockquote { margin: 0; }
.quote blockquote p { font-size: clamp(1.375rem, 1.1rem + 1.2vw, 2rem); line-height: 1.3; font-weight: 500; font-stretch: 90%; letter-spacing: -0.01em; }
.quote blockquote p::before { content: '“'; }
.quote blockquote p::after { content: '”'; }
.quote--long blockquote p { font-size: clamp(1.125rem, 1rem + .5vw, 1.375rem); line-height: 1.5; }
.quote figcaption { margin-top: var(--s5); display: grid; gap: 2px; }
.quote__name { font-weight: 620; }
.quote__org { opacity: .85; font-size: var(--text-sm); }

/* ── models ── */
.models { display: grid; gap: var(--s5); }
@media (min-width: 900px) { .models { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.model { border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s6); background: var(--surface); }
.model h2 { font-size: 1.5rem; }
.model__fit { color: var(--ink-2); margin: var(--s3) 0 var(--s5); }
.model dl { margin: 0; display: grid; gap: var(--s4); }
.model dt { font-weight: 600; font-size: var(--text-sm); }
.model dd { margin: var(--s1) 0 0; font-size: var(--text-sm); color: var(--ink-2); }

/* ── team ── */
.team-strip, .team-grid { list-style: none; display: grid; gap: var(--s5); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 700px) { .team-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.team-strip .person__photo { aspect-ratio: 1; }
@media (min-width: 900px) { .team-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.person__photo { display: block; aspect-ratio: 1; border-radius: var(--r); background: var(--teal-wash); border: 1px solid var(--line); margin-bottom: var(--s3); overflow: hidden; }
.person__photo img { width: 100%; height: 100%; object-fit: cover; }
.person__bio { color: var(--ink-2); margin-top: var(--s2); }
.person__links { margin-top: var(--s2); font-size: var(--text-sm); font-weight: 600; }
.person--placeholder .person__photo { border-style: dashed; border-color: var(--amber); background: repeating-linear-gradient(135deg, transparent 0 10px, var(--amber-wash) 10px 11px); }
.person__name { font-weight: 620; font-size: 1.0625rem; margin-bottom: 0; }
.person__role { color: var(--ink-2); font-size: var(--text-sm); }
.person p { font-size: var(--text-sm); }

/* ── faq ── */
.faq { border-top: 1px solid var(--line-strong); max-width: 46rem; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  display: flex; justify-content: space-between; gap: var(--s4); align-items: baseline;
  padding: var(--s4) 0; cursor: pointer; list-style: none; font-weight: 600;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: '+'; font-weight: 400; font-size: 1.25rem; line-height: 1; color: var(--link); }
.faq__item[open] summary::after { content: '−'; }
.faq__answer { padding-bottom: var(--s5); color: var(--ink-2); }

/* ── CTA band ── */
.cta-band { padding-block: var(--section); background: var(--ink); color: var(--paper); }
.cta-band__inner h2 { font-size: clamp(2rem, 1.5rem + 2.2vw, 3.25rem); max-width: 18ch; letter-spacing: -0.025em; }
.cta-band__inner p { max-width: 36rem; margin-top: var(--s4); opacity: .85; font-size: 1.125rem; }
.cta-band .button--primary { background: var(--paper); color: var(--ink); }
.cta-band .button--primary:hover { background: var(--teal-wash); color: var(--ink); }
.cta-band .button--secondary { color: var(--paper); border-color: color-mix(in srgb, var(--paper) 40%, transparent); }
.cta-band .button--secondary:hover { border-color: var(--paper); color: var(--paper); }
:root[data-theme="dark"] .cta-band { background: var(--surface); color: var(--ink); border-top: 1px solid var(--line); }
:root[data-theme="dark"] .cta-band .button--primary { background: var(--teal); color: var(--on-teal); }
:root[data-theme="dark"] .cta-band .button--secondary { color: var(--ink); border-color: var(--line-strong); }

/* ── contact ── */
.contact { display: grid; gap: var(--s7); }
@media (min-width: 960px) { .contact { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); } }
.contact__aside h2 { font-size: 1.0625rem; margin: var(--s6) 0 var(--s2); }
.contact__aside h2:first-child { margin-top: 0; }
.big-link { font-size: 1.25rem; font-weight: 600; word-break: break-word; }
.field { display: grid; gap: var(--s2); margin-bottom: var(--s5); }
.field label { font-weight: 600; font-size: var(--text-sm); }
.field__hint { margin: 0; font-size: var(--text-sm); color: var(--ink-2); }
.field input, .field textarea, .field select {
  width: 100%; min-height: 48px; padding: var(--s3) var(--s4);
  font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--surface); border: 1px solid var(--control); border-radius: var(--r);
}
.field textarea { min-height: 10rem; resize: vertical; line-height: 1.5; }
.field input:focus-visible, .field textarea:focus-visible, .field select:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; border-color: var(--focus); }
.field [aria-invalid="true"] { border-color: #B3261E; border-width: 2px; }
:root[data-theme="dark"] .field [aria-invalid="true"] { border-color: #F2B8B5; }
.field__error { margin: 0; font-size: var(--text-sm); font-weight: 600; color: #B3261E; }
:root[data-theme="dark"] .field__error { color: #F2B8B5; }
.field__error::before { content: '! '; }
.field-grid { display: grid; gap: 0 var(--s5); padding-top: var(--s4); }
@media (min-width: 640px) { .field-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.optional { margin-bottom: var(--s5); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.optional summary { padding: var(--s4) 0; cursor: pointer; font-weight: 600; color: var(--link); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: var(--text-sm); color: var(--ink-2); }
.form-errors { border: 2px solid #B3261E; border-radius: var(--r); padding: var(--s4) var(--s5); margin-bottom: var(--s5); background: var(--surface); }
:root[data-theme="dark"] .form-errors { border-color: #F2B8B5; }
.form-errors h2 { font-size: 1.125rem; margin-bottom: var(--s2); }
.form-errors ul { padding-left: 1.25rem; }
.form-status { margin-top: var(--s4); }
.form-status:empty { display: none; }
.form-status .notice { padding: var(--s4) var(--s5); border-radius: var(--r); border: 1px solid var(--line-strong); background: var(--surface); }
.form-status .notice--ok { border-color: var(--teal); }
.form-status .notice--error { border-color: #B3261E; }
.spinner { width: 18px; height: 18px; }
.spinner circle { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-dasharray: 6 4; animation: contour 1.2s linear infinite; transform-origin: center; }
.spinner circle:nth-child(2) { animation-duration: 1.8s; animation-direction: reverse; }
@keyframes contour { to { transform: rotate(360deg); } }

/* ── footer ── */
.site-footer { border-top: 1px solid var(--line); background: var(--paper); font-size: var(--text-sm); }
.site-footer__inner { display: grid; gap: var(--s6); max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding: var(--s8) var(--gutter) var(--s6); }
@media (min-width: 720px) { .site-footer__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .site-footer__inner { grid-template-columns: minmax(0, 1.6fr) repeat(4, minmax(0, 1fr)); } }
.site-footer__brand .logo { margin-bottom: var(--s4); }
.site-footer__brand p { color: var(--ink-2); max-width: 22rem; }
.site-footer h2 { font-size: var(--text-sm); font-stretch: 100%; font-weight: 600; letter-spacing: 0; margin-bottom: var(--s3); }
.site-footer ul { list-style: none; display: grid; gap: var(--s2); }
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { color: var(--link); text-decoration: underline; }
.site-footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s3); max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding: var(--s4) var(--gutter) var(--s6); border-top: 1px solid var(--line); color: var(--ink-2); }
.link-list { display: flex; flex-wrap: wrap; gap: var(--s4); }

/* ── consent ── */
.consent { position: fixed; inset: auto var(--s4) var(--s4) var(--s4); z-index: 70; display: flex; justify-content: center; }
.consent[hidden] { display: none; }
.consent__inner { max-width: 40rem; padding: var(--s5); background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.consent h2 { font-size: 1.125rem; margin-bottom: var(--s2); }
.consent p { font-size: var(--text-sm); }
.consent__actions { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s4); }

/* ── motion preferences ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
  .story__media:hover img { transform: none; }
}
@media print {
  .site-header, .site-footer, .cta-band, .review-banner, .globe { display: none; }
  body { background: #fff; color: #000; }
}
