/* ==========================================================================
   The Growth Line
   Near monochrome editorial. Photography carries the colour; the interface
   chrome stays greyscale. Cards are defined by a hairline, never by shadow.
   Light and dark are both first class.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Type. Self hosted variable font, one family, no CDN.
   -------------------------------------------------------------------------- */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('../fonts/plus-jakarta-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('../fonts/plus-jakarta-sans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* --------------------------------------------------------------------------
   Tokens
   -------------------------------------------------------------------------- */
:root {
  color-scheme: light;

  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-display: var(--font-sans);
  --font-mono: ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Ink carries all hierarchy */
  --ink-900: #0D0D0D;
  --ink-700: #2E3134;
  --ink-600: #4A4E52;
  --ink-500: #6B7075;
  --ink-400: #8B9096;
  --ink-300: #B4B9BD;
  --ink-200: #D5D8DB;

  --surface-0: #FFFFFF;
  --surface-2: #F4F5F6;
  --surface-3: #EDEFF1;
  --surface-inverse: #0D0D0D;

  --line-200: #E6E8EA;
  --line-300: #D8DBDE;
  --line-inverse: #2A2A2A;

  /* Line Green. Status and positive signals only. */
  --accent-500: #1D7A4C;
  --accent-100: #E7F3ED;

  --text-primary: var(--ink-900);
  --text-secondary: var(--ink-600);
  --text-muted: var(--ink-400);
  --text-inverse: #FFFFFF;
  --text-inverse-muted: rgba(255, 255, 255, .62);

  --bg-page: var(--surface-3);
  --bg-section: var(--surface-0);
  --bg-card: var(--surface-0);
  --bg-inset: var(--surface-2);
  --bg-inverse: var(--surface-inverse);
  --bg-header: rgba(255, 255, 255, .72);
  --bg-header-solid: rgba(255, 255, 255, .88);

  --border-subtle: var(--line-200);
  --border-strong: var(--line-300);

  --action-primary-bg: var(--ink-900);
  --action-primary-bg-hover: var(--ink-700);
  --action-primary-fg: #FFFFFF;
  --action-secondary-bg-hover: var(--surface-2);
  --focus-ring: rgba(13, 13, 13, .55);

  --shadow-card: 0 1px 2px rgba(13, 13, 13, .04);
  --shadow-raised: 0 8px 24px -8px rgba(13, 13, 13, .12);

  /* Type scale */
  --text-12: 12px; --text-13: 13px; --text-14: 14px; --text-15: 15px;
  --text-16: 16px; --text-18: 18px; --text-20: 20px; --text-24: 24px;
  --text-32: 32px; --text-40: 40px;
  --text-display: clamp(2.25rem, 1.55rem + 2.6vw, 3.5rem);
  --text-h1: clamp(1.85rem, 1.4rem + 1.7vw, 2.5rem);
  --text-h2: clamp(1.6rem, 1.32rem + 1.05vw, 2rem);

  --tracking-display: -.028em;
  --tracking-heading: -.02em;
  --tracking-wide: .06em;

  /* Space. Low density direction: generous. */
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px;
  --space-5: 20px; --space-6: 24px; --space-7: 32px; --space-8: 40px;
  --space-9: 48px; --space-10: 64px; --space-11: 80px; --space-12: 120px;

  --gutter: clamp(20px, 3.5vw, 56px);
  --container: 1560px;
  --section-y: clamp(4.5rem, 3rem + 6vw, 7.5rem);
  --section-y-compact: clamp(3rem, 2rem + 4vw, 5rem);

  /* One radius scale, held everywhere */
  --radius-control: 999px;
  --radius-card: 12px;
  --radius-field: 10px;
  --radius-inner: 8px;

  /* Motion dial 0.25: restrained and functional */
  --duration-fast: 120ms;
  --duration-base: 180ms;
  --duration-slow: 320ms;
  --duration-reveal: 600ms;
  --ease-standard: cubic-bezier(.2, 0, 0, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --transition-control: background-color var(--duration-base) var(--ease-standard),
    color var(--duration-base) var(--ease-standard),
    border-color var(--duration-base) var(--ease-standard),
    opacity var(--duration-base) var(--ease-standard);
}

/* --------------------------------------------------------------------------
   Dark. The primitives flip; the alias layer rides along. The closing band
   stays dark in both themes, so components inside it revert (see .is-inverse).
   -------------------------------------------------------------------------- */
:root {
  --d-ink-900: #F2F4F5;
  --d-ink-700: #CDD1D4;
  --d-ink-600: #A8AEB3;
  --d-ink-500: #8D9399;
  --d-ink-400: #7E858B;
  --d-ink-300: #5A6065;
  --d-ink-200: #2A2E31;
  --d-surface-0: #17191B;
  --d-surface-2: #1F2225;
  --d-surface-3: #121315;
  --d-surface-inverse: #08090A;
  --d-line-200: #24272A;
  --d-line-300: #32363A;
  --d-accent-500: #58B98C;
  --d-accent-100: #14301F;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    color-scheme: dark;
    --ink-900: var(--d-ink-900); --ink-700: var(--d-ink-700);
    --ink-600: var(--d-ink-600); --ink-500: var(--d-ink-500);
    --ink-400: var(--d-ink-400); --ink-300: var(--d-ink-300);
    --ink-200: var(--d-ink-200);
    --surface-0: var(--d-surface-0); --surface-2: var(--d-surface-2);
    --surface-3: var(--d-surface-3); --surface-inverse: var(--d-surface-inverse);
    --line-200: var(--d-line-200); --line-300: var(--d-line-300);
    --accent-500: var(--d-accent-500); --accent-100: var(--d-accent-100);
    --action-primary-fg: #0D0D0D;
    --action-primary-bg-hover: #FFFFFF;
    --focus-ring: rgba(255, 255, 255, .6);
    --bg-header: rgba(18, 19, 21, .72);
    --bg-header-solid: rgba(18, 19, 21, .9);
    --shadow-card: 0 1px 2px rgba(0, 0, 0, .6);
    --shadow-raised: 0 8px 24px -8px rgba(0, 0, 0, .7);
  }
}

:root[data-theme='dark'] {
  color-scheme: dark;
  --ink-900: var(--d-ink-900); --ink-700: var(--d-ink-700);
  --ink-600: var(--d-ink-600); --ink-500: var(--d-ink-500);
  --ink-400: var(--d-ink-400); --ink-300: var(--d-ink-300);
  --ink-200: var(--d-ink-200);
  --surface-0: var(--d-surface-0); --surface-2: var(--d-surface-2);
  --surface-3: var(--d-surface-3); --surface-inverse: var(--d-surface-inverse);
  --line-200: var(--d-line-200); --line-300: var(--d-line-300);
  --accent-500: var(--d-accent-500); --accent-100: var(--d-accent-100);
  --action-primary-fg: #0D0D0D;
  --action-primary-bg-hover: #FFFFFF;
  --focus-ring: rgba(255, 255, 255, .6);
  --bg-header: rgba(18, 19, 21, .72);
  --bg-header-solid: rgba(18, 19, 21, .9);
  --shadow-card: 0 1px 2px rgba(0, 0, 0, .6);
  --shadow-raised: 0 8px 24px -8px rgba(0, 0, 0, .7);
}

:root[data-theme='light'] { color-scheme: light; }

/* The closing band is dark in both themes: revert the ramp inside it so a
   white pill keeps dark text. */
.is-inverse {
  --ink-900: #0D0D0D; --ink-700: #2E3134; --ink-600: #4A4E52;
  --ink-400: #8B9096; --ink-200: #D5D8DB; --surface-0: #FFFFFF;
  --action-primary-bg: #FFFFFF;
  --action-primary-bg-hover: rgba(255, 255, 255, .86);
  --action-primary-fg: #0D0D0D;
  --focus-ring: rgba(255, 255, 255, .7);
}

/* --------------------------------------------------------------------------
   Reset. :where() keeps specificity at 0 so component rules always win.
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
:where(html) { -webkit-text-size-adjust: 100%; }
:where(body, h1, h2, h3, h4, p, figure, blockquote, ul, ol, dl, dd) { margin: 0; padding: 0; }
:where(ul, ol) { list-style: none; }
:where(img, svg, video) { display: block; max-width: 100%; }
:where(a) { color: inherit; text-decoration: none; }
:where(button, input, textarea, select) { font: inherit; color: inherit; }
:where(button) { background: none; border: 0; cursor: pointer; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg-page);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: var(--text-16);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: var(--tracking-heading);
  line-height: 1.18;
  text-wrap: balance;
}

a { transition: var(--transition-control); }
:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--ink-900); color: var(--surface-0); }

.wrap {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }
.section--compact { padding-block: var(--section-y-compact); }
.section--field { background: var(--bg-page); }
.section--white { background: var(--bg-section); }

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: var(--gutter);
  top: 12px;
  z-index: 99;
  background: var(--ink-900);
  color: var(--surface-0);
  padding: 10px 18px;
  border-radius: var(--radius-control);
}

/* --------------------------------------------------------------------------
   Buttons. Full pill. One label per intent.
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-weight: 500;
  font-size: var(--text-15);
  line-height: 1;
  padding: 14px 24px;
  border: 1px solid transparent;
  border-radius: var(--radius-control);
  white-space: nowrap;
  cursor: pointer;
  transition: var(--transition-control), transform var(--duration-fast) var(--ease-standard);
}
.btn:active { transform: scale(.985); }
.btn--sm { padding: 10px 18px; font-size: var(--text-14); }

.btn--primary {
  background: var(--action-primary-bg);
  color: var(--action-primary-fg);
}
.btn--primary:hover { background: var(--action-primary-bg-hover); opacity: 1; }

.btn--ghost { background: transparent; color: var(--text-primary); }
.btn--ghost:hover { background: var(--action-secondary-bg-hover); opacity: 1; }

.btn--block { width: 100%; }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--bg-header);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}
.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  padding-block: var(--space-4);
}
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand__mark { height: 32px; width: 32px; }
.brand__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-18);
  letter-spacing: var(--tracking-heading);
  color: var(--text-primary);
}
.nav { display: flex; align-items: center; gap: var(--space-7); }
/* The list is a <ul> when a menu is assigned and a <div> for the fallback. */
.nav__list { display: flex; align-items: center; gap: var(--space-7); margin: 0; padding: 0; list-style: none; }
.nav__list li { display: inline-flex; }
.nav a {
  font-weight: 500;
  font-size: var(--text-14);
  color: var(--text-secondary);
}
.nav a:hover { color: var(--text-primary); }
.nav .current-menu-item > a,
.nav a[aria-current='page'] { color: var(--text-primary); }
.header__actions { display: flex; align-items: center; gap: var(--space-3); }

.icon-btn {
  flex: none;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-control);
  color: var(--text-secondary);
  background: transparent;
  transition: var(--transition-control);
}
.icon-btn:hover {
  background: var(--action-secondary-bg-hover);
  border-color: var(--border-strong);
  color: var(--text-primary);
}
.icon-btn svg { width: 18px; height: 18px; }

.theme-toggle .icon-sun { display: none; }
:root[data-theme='dark'] .theme-toggle .icon-sun { display: block; }
:root[data-theme='dark'] .theme-toggle .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .theme-toggle .icon-sun { display: block; }
  :root:not([data-theme='light']) .theme-toggle .icon-moon { display: none; }
}

.nav-toggle { display: none; }
.mobile-nav { display: none; }

/* --------------------------------------------------------------------------
   Hero. Split: copy left, photograph right. One moment, four elements.
   -------------------------------------------------------------------------- */
/* The hero owns the first screen: it fills the viewport under the sticky
   header and centres its content, instead of sitting in a short band with
   dead space beneath it. */
.hero {
  display: flex;
  align-items: center;
  min-height: calc(100svh - 74px);
  padding-block: var(--space-9);
}
.hero__grid {
  display: grid;
  /* The copy column carries the display headline, so it takes the larger
     share. At an even split the headline breaks to four or five lines. */
  grid-template-columns: 1.15fr 1fr;
  gap: var(--space-10);
  align-items: center;
}
.hero__copy { display: flex; flex-direction: column; gap: var(--space-6); align-items: flex-start; }
.hero__title {
  /* Sized to the measure it actually gets, so the headline holds two lines on
     desktop rather than the four the full display size would produce. */
  font-size: clamp(2rem, 1.35rem + 2.1vw, 2.75rem);
  line-height: 1.08;
  letter-spacing: var(--tracking-display);
  text-wrap: balance;
  margin: 0;
}
.hero__sub {
  font-size: var(--text-18);
  color: var(--text-secondary);
  max-width: 34ch;
}
.hero__actions { display: flex; gap: var(--space-3); flex-wrap: wrap; }

/* --------------------------------------------------------------------------
   Media
   -------------------------------------------------------------------------- */
.media {
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--bg-inset);
  border: 1px solid var(--border-subtle);
}
/* The <picture> wrapper must stretch too, or the image cannot fill the frame. */
.media picture { display: block; width: 100%; height: 100%; }
.media img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Declared ratios so every frame is filled edge to edge and nothing letterboxes. */
.hero__media { aspect-ratio: 16 / 11; }
.split__media { aspect-ratio: 4 / 3; }
.tile-project .media { aspect-ratio: 4 / 3; }

/* --------------------------------------------------------------------------
   Trust band. Lives below the hero, never inside it.
   -------------------------------------------------------------------------- */
/* The trust stack sits inside the hero, directly under the button row. */
.trust { display: flex; align-items: center; gap: var(--space-4); }
.avatars { display: flex; align-items: center; }
/* Each face is wrapped in <picture>, so the overlap has to hang off the
   wrapper. Targeting img + img never matches and the stack falls apart. */
.avatars picture { display: block; flex: none; }
.avatars picture + picture { margin-left: -12px; }
.avatars img {
  width: 42px;
  height: 42px;
  aspect-ratio: 1;
  border-radius: var(--radius-control);
  border: 2px solid var(--bg-page);
  object-fit: cover;
  display: block;
}
.trust__text { font-size: var(--text-15); color: var(--text-secondary); line-height: 1.35; }

/* --------------------------------------------------------------------------
   Section headings
   -------------------------------------------------------------------------- */
.head { display: flex; flex-direction: column; gap: var(--space-4); }
.head--center { align-items: center; text-align: center; margin-inline: auto; max-width: 46rem; }
.head__title { font-size: var(--text-h2); letter-spacing: var(--tracking-heading); }
.head__title--display { font-size: var(--text-h1); }
.head__body { color: var(--text-secondary); max-width: 58ch; }

/* --------------------------------------------------------------------------
   Services. The one asymmetric move: two up, then three up.
   -------------------------------------------------------------------------- */
.services__grids { display: flex; flex-direction: column; gap: var(--space-4); margin-top: var(--space-9); }
.services__note {
  margin-top: var(--space-4);
  text-align: center;
  font-size: var(--text-15);
  color: var(--text-secondary);
}
.services__note a {
  color: var(--text-primary);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  margin-left: .4em;
}
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-4); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  padding: var(--space-6);
  box-shadow: var(--shadow-card);
  transition: var(--transition-control), box-shadow var(--duration-base) var(--ease-standard);
}
.card:hover { border-color: var(--border-strong); }

.svc { display: flex; flex-direction: column; gap: var(--space-4); }
.svc__title { font-size: var(--text-20); }
.svc__body { color: var(--text-secondary); font-size: var(--text-15); }
.svc__visual {
  margin-top: auto;
  border-radius: var(--radius-inner);
  overflow: hidden;
  background: var(--bg-inset);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* A screenshot fills its frame edge to edge. Padding here produced a frame
   inside a frame, because the source art carries its own light ground. */
.svc__visual--media { aspect-ratio: 16 / 9; }
.svc__visual--media picture { display: block; width: 100%; height: 100%; }
.svc__visual--media img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* The drawn figures are not images and do need breathing room. */
.svc__visual--figure { min-height: 132px; padding: var(--space-5); }

/* --------------------------------------------------------------------------
   Service artifacts
   Drawn from the palette, so they cost nothing to load, stay sharp at any
   size and are correct in both palettes. Motion is entrance-once plus a
   response to hover, never a loop for its own sake.
   -------------------------------------------------------------------------- */
.svc__art {
  margin-top: auto;
  border-radius: var(--radius-inner);
  background: var(--bg-inset);
  overflow: hidden;
}
.art { display: block; width: 100%; height: auto; }

.art__frame, .art__row, .art__node, .art__field, .art__check { stroke: var(--border-strong); stroke-width: 1.5; fill: none; }
.art__block, .art__bar, .art__chip, .art__tile { fill: var(--ink-300); }
.art__tile { fill: var(--ink-200); }
.art__dot { fill: var(--ink-300); }
.art__grid { stroke: var(--border-subtle); stroke-width: 1; }
.art__wire { stroke: var(--border-strong); stroke-width: 1.5; }
.art__num { fill: var(--text-primary); font-family: var(--font-display); font-weight: 600; font-size: 15px; letter-spacing: var(--tracking-heading); }
.art__num--up { fill: var(--accent-500); }
.art__pulse { fill: var(--accent-500); }
.art__point { fill: var(--accent-500); }

/* Web: the meter sweeps and the page assembles. */
.art__meter-track { stroke: var(--border-subtle); stroke-width: 6; stroke-linecap: round; }
.art__meter {
  stroke: var(--accent-500); stroke-width: 6; stroke-linecap: round;
  stroke-dasharray: 164; stroke-dashoffset: 164;
}
.is-in .art__meter { transition: stroke-dashoffset 1.1s var(--ease-out) .15s; stroke-dashoffset: 46; }
.card:hover .art__meter { stroke-dashoffset: 20; transition: stroke-dashoffset var(--duration-slow) var(--ease-out); }

.art--web .art__block, .art--web .art__tile { opacity: 0; transform: translateY(6px); }
.is-in .art--web .art__block, .is-in .art--web .art__tile {
  opacity: 1; transform: none;
  transition: opacity var(--duration-slow) var(--ease-out), transform var(--duration-slow) var(--ease-out);
}
.is-in .art--web .art__block--1 { transition-delay: .05s; }
.is-in .art--web .art__block--2 { transition-delay: .1s; }
.is-in .art--web .art__block--3 { transition-delay: .15s; }
.is-in .art--web .art__block--4 { transition-delay: .2s; }
.is-in .art--web .art__block--5 { transition-delay: .25s; }
.is-in .art--web .art__block--6 { transition-delay: .3s; }

/* Growth: the line draws itself, the area fades in behind it. */
.art__line { stroke: var(--accent-500); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 340; stroke-dashoffset: 340; }
.is-in .art__line { stroke-dashoffset: 0; transition: stroke-dashoffset 1.3s var(--ease-out) .1s; }
.art__area { fill: var(--accent-500); opacity: 0; }
.is-in .art__area { opacity: .09; transition: opacity 1s var(--ease-out) .5s; }
.art__point { opacity: 0; }
.is-in .art__point { opacity: 1; transition: opacity var(--duration-base) var(--ease-out) 1.2s; }
.card:hover .art__point, .svc-detail:hover .art__point { r: 6.5; transition: r var(--duration-base) var(--ease-standard); }
.art--growth .art__num--up { opacity: 0; }
.is-in .art--growth .art__num--up { opacity: 1; transition: opacity var(--duration-slow) var(--ease-out) 1.1s; }

/* Search: the winning row lifts to the top spot. */
.art__rank--win .art__row { stroke: var(--accent-500); }
.art__rank { transform: translateY(8px); opacity: 0; }
.is-in .art__rank { transform: none; opacity: 1; transition: transform var(--duration-slow) var(--ease-out), opacity var(--duration-slow) var(--ease-out); }
.is-in .art__rank:nth-of-type(2) { transition-delay: .08s; }
.is-in .art__rank:nth-of-type(3) { transition-delay: .16s; }
.card:hover .art__rank--win, .svc-detail:hover .art__rank--win { transform: translateX(6px); transition: transform var(--duration-base) var(--ease-standard); }

/* Automation: the node lights and a pulse runs the wire. */
.art__node--on { stroke: var(--accent-500); }
.art--automation .art__pulse { opacity: 0; }
.is-in .art--automation .art__pulse { opacity: 1; transition: opacity var(--duration-base) linear .3s; }

/* Advisory: the fixes tick off in order. */
.art__tick { stroke: var(--accent-500); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 18; stroke-dashoffset: 18; }
.is-in .art__tick { stroke-dashoffset: 0; transition: stroke-dashoffset var(--duration-slow) var(--ease-out); }
.is-in .art__task--1 .art__tick { transition-delay: .2s; }
.is-in .art__task--2 .art__tick { transition-delay: .45s; }
.is-in .art__task--3 .art__tick { transition-delay: .7s; }
.card:hover .art__check, .svc-detail:hover .art__check { stroke: var(--accent-500); transition: stroke var(--duration-base) var(--ease-standard); }

/* Icon trio, node row and metric strip: three different visual registers so
   the three up row is never three identical cards. */
.tile-row { display: flex; align-items: center; justify-content: center; gap: var(--space-3); width: 100%; }
.tile {
  width: 40px; height: 40px;
  border-radius: var(--radius-inner);
  background: var(--surface-0);
  border: 1px solid var(--border-subtle);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-primary);
}
.tile--solid { background: var(--ink-900); color: var(--surface-0); border-color: var(--ink-900); }
.tile svg { width: 20px; height: 20px; }

.nodes { display: flex; align-items: center; justify-content: center; gap: var(--space-2); width: 100%; }
.node { width: 54px; height: 32px; border-radius: var(--radius-inner); background: var(--surface-0); border: 1px solid var(--border-subtle); }
.node--on { border-color: var(--ink-900); }
.node__link { width: 16px; height: 1px; background: var(--border-strong); }

.metrics { display: flex; flex-direction: column; gap: var(--space-2); width: 100%; }
.metric {
  display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-3);
  background: var(--surface-0);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-inner);
  padding: 8px 12px;
}
.metric__value { font-weight: 600; font-size: var(--text-18); letter-spacing: var(--tracking-heading); }
.metric__value--up { color: var(--accent-500); }
.metric__label { font-size: var(--text-12); color: var(--text-secondary); }

/* --------------------------------------------------------------------------
   Split sections. At most two in a row, then the layout family changes.
   -------------------------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-10);
  align-items: center;
}
.split__copy { display: flex; flex-direction: column; gap: var(--space-6); align-items: flex-start; }

.features { display: flex; flex-direction: column; gap: var(--space-3); width: 100%; }
.feature {
  display: flex;
  gap: var(--space-4);
  background: var(--bg-inset);
  border-radius: var(--radius-card);
  padding: var(--space-5);
}
.feature__icon {
  flex: none;
  width: 40px; height: 40px;
  border-radius: var(--radius-inner);
  background: var(--surface-0);
  border: 1px solid var(--border-subtle);
  display: flex; align-items: center; justify-content: center;
}
.feature__icon svg { width: 20px; height: 20px; }
.feature__title { font-size: var(--text-16); }
.feature__body { font-size: var(--text-14); color: var(--text-secondary); margin-top: 4px; }

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-6);
  padding-top: var(--space-6);
  border-top: 1px solid var(--border-subtle);
  width: 100%;
}
.stat__value { font-family: var(--font-display); font-weight: 700; font-size: var(--text-32); letter-spacing: var(--tracking-heading); line-height: 1; }
.stat__label { font-size: var(--text-13); color: var(--text-muted); margin-top: 6px; }

/* --------------------------------------------------------------------------
   Work
   -------------------------------------------------------------------------- */
.work__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: var(--space-6); }
.work__note { max-width: 42ch; color: var(--text-secondary); }
.work__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-4); margin-top: var(--space-9); }

.tile-project { display: flex; flex-direction: column; gap: var(--space-4); padding: var(--space-4); }
.tile-project:hover { box-shadow: var(--shadow-raised); }
.tile-project__meta { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-3); padding-inline: var(--space-2); padding-bottom: var(--space-2); }
.tile-project__title { font-size: var(--text-16); }
.tile-project__note { font-size: var(--text-13); color: var(--text-muted); }

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */
.faq { max-width: 52rem; margin-inline: auto; }
.faq__list { display: flex; flex-direction: column; gap: var(--space-2); margin-top: var(--space-8); }
.acc { background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-card); }
.acc__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  text-align: left;
  padding: var(--space-5) var(--space-6);
  font-weight: 500;
  font-size: var(--text-16);
  color: var(--text-primary);
}
.acc__q svg { flex: none; width: 18px; height: 18px; color: var(--text-muted); transition: transform var(--duration-slow) var(--ease-standard); }
.acc[open] .acc__q svg { transform: rotate(180deg); }
.acc__a { padding: 0 var(--space-6) var(--space-5); color: var(--text-secondary); max-width: 62ch; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary { list-style: none; cursor: pointer; }

/* --------------------------------------------------------------------------
   Closing band and footer. Dark in both themes.
   -------------------------------------------------------------------------- */
.closing {
  background: var(--bg-inverse);
  color: var(--text-inverse);
  text-align: center;
  padding-block: var(--section-y);
}
.closing__inner { display: flex; flex-direction: column; align-items: center; gap: var(--space-6); }
.closing__title { font-size: var(--text-h1); letter-spacing: var(--tracking-heading); max-width: 18ch; }

.site-footer { background: var(--bg-inverse); color: var(--text-inverse); padding-block: var(--space-9) var(--space-8); }
.site-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-6); border-top: 1px solid var(--line-inverse); padding-top: var(--space-7); }
.site-footer a { color: var(--text-inverse-muted); font-size: var(--text-14); text-decoration: underline; text-underline-offset: 3px; }
.site-footer a:hover { color: var(--text-inverse); text-decoration: none; }
.site-footer__legal { display: flex; flex-wrap: wrap; gap: var(--space-5); }
.site-footer__copy { font-size: var(--text-13); color: var(--text-inverse-muted); }

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-10); align-items: start; }
.contact__meta { display: flex; flex-direction: column; gap: var(--space-4); padding-top: var(--space-6); border-top: 1px solid var(--border-subtle); }
.contact__label { font-size: var(--text-12); color: var(--text-muted); }
.contact__value { font-size: var(--text-16); }

.form { display: flex; flex-direction: column; gap: var(--space-5); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 500; font-size: var(--text-14); }
.field input, .field textarea, .field select {
  background: var(--surface-0);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-field);
  padding: 12px 14px;
  font-size: var(--text-15);
  color: var(--text-primary);
  transition: var(--transition-control);
  width: 100%;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--ink-900); box-shadow: 0 0 0 3px var(--accent-100); }
.field input::placeholder, .field textarea::placeholder { color: var(--text-muted); }
.field--error input, .field--error textarea { border-color: #B23A34; }
.field__error { font-size: var(--text-13); color: #B23A34; }
.form__note { font-size: var(--text-12); color: var(--text-muted); }

.notice { border-radius: var(--radius-card); padding: var(--space-5) var(--space-6); border: 1px solid var(--border-subtle); background: var(--bg-inset); }
.notice--ok { border-color: var(--accent-500); background: var(--accent-100); color: var(--accent-500); }
.notice--ok strong { color: var(--accent-500); }

/* --------------------------------------------------------------------------
   Editorial content (pages and posts)
   -------------------------------------------------------------------------- */
.prose { max-width: 68ch; }
.prose > * + * { margin-top: var(--space-5); }
.prose > :first-child { margin-top: 0; }
.prose h2 {
  font-size: var(--text-32);
  letter-spacing: var(--tracking-heading);
  margin-top: var(--space-10);
  padding-top: var(--space-6);
  border-top: 1px solid var(--border-subtle);
  scroll-margin-top: 96px;
}
.prose h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose h3 { font-size: var(--text-20); margin-top: var(--space-7); }
.prose p, .prose li { color: var(--text-secondary); }
.prose > p:first-of-type { font-size: var(--text-18); color: var(--text-primary); }
.prose ul, .prose ol { display: flex; flex-direction: column; gap: var(--space-2); padding-left: 0; list-style: none; }
.prose ul li { position: relative; padding-left: 1.5em; }
.prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 6px;
  height: 6px;
  border-radius: var(--radius-control);
  background: var(--accent-500);
}
.prose ol { list-style: decimal; padding-left: 1.2em; }
.prose ol li { padding-left: .25em; }
.prose a { color: var(--text-primary); text-decoration: underline; text-underline-offset: 3px; }

/* Page hero */
.page-hero { padding-block: var(--space-10) var(--space-9); }
.page-hero__title {
  font-size: clamp(2rem, 1.35rem + 2.1vw, 2.75rem);
  letter-spacing: var(--tracking-display);
  line-height: 1.08;
}
.page-hero__lead { margin-top: var(--space-4); max-width: 58ch; font-size: var(--text-18); color: var(--text-secondary); }

/* Services page */
.page-hero__jump { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-6); }
.page-hero__jump a {
  font-size: var(--text-13);
  font-weight: 500;
  padding: 8px 14px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-control);
  color: var(--text-secondary);
  background: var(--bg-card);
}
.page-hero__jump a:hover { border-color: var(--border-strong); color: var(--text-primary); opacity: 1; }

.svc-detail { scroll-margin-top: 80px; }
.svc-detail__art {
  border-radius: var(--radius-card);
  border: 1px solid var(--border-subtle);
  background: var(--bg-inset);
  overflow: hidden;
}

.includes { display: flex; flex-direction: column; gap: var(--space-3); width: 100%; }
.includes li { position: relative; padding-left: 1.6em; color: var(--text-secondary); font-size: var(--text-15); }
.includes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .58em;
  width: 7px;
  height: 7px;
  border-radius: var(--radius-control);
  background: var(--accent-500);
}

/* Long form document: sticky section index beside a measured column. */
/* Centred inside the wide container: a reading column pinned to the left edge
   of a 1560px field would leave the page lopsided. */
.doc {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: var(--space-10);
  align-items: start;
  max-width: 1120px;
  margin-inline: auto;
}
.doc--plain { grid-template-columns: minmax(0, 1fr); max-width: 72ch; }
.doc__index { position: sticky; top: 96px; }
.doc__index-label {
  font-size: var(--text-12);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--text-muted);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--border-subtle);
}
.doc__index ul { display: flex; flex-direction: column; gap: var(--space-3); margin-top: var(--space-4); }
.doc__index a { font-size: var(--text-14); color: var(--text-secondary); }
.doc__index a:hover { color: var(--text-primary); opacity: 1; }

/* --------------------------------------------------------------------------
   The brand mark is solid black artwork on transparency, so it disappears on a
   dark ground. Never inside .is-inverse, which has no mark.
   -------------------------------------------------------------------------- */
:root[data-theme='dark'] .brand__mark { filter: invert(1); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .brand__mark { filter: invert(1); }
}

/* One deliberate moment: a short cross fade while the palette switches, then
   removed, so it never costs anything during normal scrolling. */
.is-theming, .is-theming *, .is-theming *::before, .is-theming *::after {
  transition:
    background-color var(--duration-base) var(--ease-standard),
    border-color var(--duration-base) var(--ease-standard),
    color var(--duration-base) var(--ease-standard),
    fill var(--duration-base) var(--ease-standard) !important;
}

/* --------------------------------------------------------------------------
   Reveal. Degrades to visible when JS never runs.
   -------------------------------------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(16px); }
.js .reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity var(--duration-reveal) var(--ease-out), transform var(--duration-reveal) var(--ease-out);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  /* Stacked, the hero is taller than the screen anyway; forcing a viewport
     height would only push the image off the fold. */
  .hero { min-height: 0; padding-block: var(--space-8) var(--space-10); }
  .hero__media { aspect-ratio: 16 / 10; }
  .hero__grid, .split, .contact { grid-template-columns: 1fr; gap: var(--space-8); }
  .split--flip .split__media { order: -1; }
  .grid-2, .grid-3, .work__grid { grid-template-columns: 1fr; }
  .nav, .header__actions .btn { display: none; }
  .nav-toggle { display: inline-flex; }
  .mobile-nav { display: none; flex-direction: column; gap: var(--space-1); padding: 0 0 var(--space-6); border-top: 1px solid var(--border-subtle); }
  .mobile-nav.is-open { display: flex; }
  .mobile-nav__list { display: flex; flex-direction: column; gap: var(--space-1); margin: 0; padding: 0; list-style: none; }
  .mobile-nav a { padding: var(--space-3) 0; font-weight: 500; font-size: var(--text-16); }
  .mobile-nav .btn { margin-top: var(--space-3); }
  .site-header { background: var(--bg-header-solid); }
  .form__row { grid-template-columns: 1fr; }
  /* The index is a desktop affordance; stacked it would just delay the copy. */
  .doc { grid-template-columns: minmax(0, 1fr); gap: var(--space-8); }
  .doc__index { position: static; }
}

@media (max-width: 560px) {
  .stats { grid-template-columns: 1fr; gap: var(--space-5); }
  .hero__actions .btn { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; }
  .btn:active { transform: none; }
  /* The artifacts resolve to their finished state rather than animating in. */
  .art__meter { stroke-dashoffset: 46; }
  .art__line, .art__tick { stroke-dashoffset: 0; }
  .art__area { opacity: .09; }
  .art__block, .art__tile, .art__point, .art__rank, .art__num--up, .art__pulse { opacity: 1; transform: none; }
  .art__pulse animateMotion { display: none; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

@media print {
  .site-header, .closing, .theme-toggle { display: none; }
}
