/* ==========================================================================
   Unchained Technologies — component stylesheet (reads tokens.css)
   Order: base · layout · type · components. No component paints a value
   that is not a token, except the fluid type sizes below.
   ========================================================================== */

/* ---------- Fluid type (sizes in tokens.json are the 1440px maximums) ---- */
:root {
  --fs-display: clamp(3rem, 1.5rem + 6.667vw, 7.5rem);
  --fs-h1: clamp(2.5rem, 1.667rem + 3.704vw, 5rem);
  --fs-h2: clamp(1.875rem, 1.417rem + 2.037vw, 3.25rem);
  --fs-h3: clamp(1.438rem, 1.25rem + 0.8333vw, 2rem);
  --fs-h4: clamp(1.125rem, 1.062rem + 0.2778vw, 1.312rem);
  --fs-lead: clamp(1.188rem, 1.104rem + 0.3704vw, 1.438rem);
  --fs-body: clamp(1rem, 0.9688rem + 0.1389vw, 1.094rem);
  --fs-body-sm: clamp(0.875rem, 0.8542rem + 0.09259vw, 0.9375rem);
  --fs-caption: 0.8125rem;
  --fs-button: 0.9375rem;
  --fs-eyebrow: clamp(0.6875rem, 0.6667rem + 0.09259vw, 0.75rem);
  --fs-mono: clamp(0.8125rem, 0.7917rem + 0.09259vw, 0.875rem);
  --page-margin: var(--margin-mobile);
  --gutter: var(--gutter-mobile);
  --cols: 4;
}
@media (min-width: 768px)  { :root { --page-margin: var(--margin-tablet);  --gutter: var(--gutter-tablet);  --cols: 8; } }
@media (min-width: 1024px) { :root { --page-margin: var(--margin-desktop); --gutter: var(--gutter-desktop); --cols: 12; } }
@media (min-width: 1440px) { :root { --page-margin: var(--margin-wide); } }

/* ---------- Base --------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--surface-page);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, picture, svg, video { display: block; max-width: 100%; }
img { height: auto; }
::selection { background: var(--selection); }
:focus-visible { outline: var(--focus-width) solid var(--focus-ring); outline-offset: var(--focus-offset); }
.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(--space-4); top: -100px; z-index: 100; padding: var(--space-3) var(--space-4); background: var(--action-secondary); color: var(--on-action-secondary); border-radius: var(--radius-pill); text-decoration: none; font-weight: 500; }
.skip-link:focus { top: var(--space-3); }

/* ---------- Layout ------------------------------------------------------- */
.container { width: 100%; max-width: calc(var(--container-max) + 2 * var(--page-margin)); margin-inline: auto; padding-inline: var(--page-margin); }
.grid { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); column-gap: var(--gutter); }
.section { padding-block: var(--space-16); }
.section--tight { padding-block: var(--space-12); }
.section--open { padding-block: var(--space-20) var(--space-24); }
@media (min-width: 1024px) {
  .section { padding-block: var(--space-24); }
  .section--tight { padding-block: var(--space-16); }
  .section--open { padding-block: var(--space-32) var(--space-40); }
}
.section--subtle { background: var(--surface-subtle); }
.stack > * + * { margin-top: var(--stack, var(--space-4)); }

/* The broken rule: a hairline with one gap, the logo's break laid flat.
   The gap sits on a column line (default: after column 4 of 12). */
.rule-break { --at: 33.333%; height: var(--hairline); border: 0; margin: 0;
  background: linear-gradient(to right, var(--border-subtle) 0 var(--at), transparent var(--at) calc(var(--at) + var(--space-8)), var(--border-subtle) calc(var(--at) + var(--space-8)) 100%); }
.rule { height: var(--hairline); border: 0; margin: 0; background: var(--border-subtle); }

/* ---------- Type --------------------------------------------------------- */
h1, h2, h3, h4, p, blockquote, figure { margin: 0; }
.t-display { font-family: var(--font-sans); font-size: var(--fs-display); font-weight: 300; line-height: .94; letter-spacing: -0.045em; max-width: 14ch; text-wrap: balance; }
.t-h1 { font-family: var(--font-sans); font-size: var(--fs-h1); font-weight: 300; line-height: 1; letter-spacing: -0.04em; max-width: var(--measure-headline); text-wrap: balance; }
.t-h2 { font-family: var(--font-sans); font-size: var(--fs-h2); font-weight: 350; line-height: 1.06; letter-spacing: -0.03em; max-width: var(--measure-headline); text-wrap: balance; }
.t-h3 { font-family: var(--font-sans); font-size: var(--fs-h3); font-weight: 400; line-height: 1.15; letter-spacing: -0.02em; text-wrap: balance; }
.t-h4 { font-family: var(--font-sans); font-size: var(--fs-h4); font-weight: 500; line-height: 1.3; letter-spacing: -0.01em; }
.t-lead { font-size: var(--fs-lead); font-weight: 350; line-height: 1.45; letter-spacing: -0.01em; color: var(--text-secondary); max-width: var(--measure-lead); text-wrap: pretty; }
.t-body { font-size: var(--fs-body); line-height: 1.6; color: var(--text-secondary); max-width: var(--measure-body); text-wrap: pretty; }
.t-body-sm { font-size: var(--fs-body-sm); line-height: 1.55; color: var(--text-secondary); }
.t-caption { font-size: var(--fs-caption); line-height: 1.45; color: var(--text-muted); }
.t-eyebrow { font-family: var(--font-mono); font-size: var(--fs-eyebrow); font-weight: 500; line-height: 1.3; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); }
.t-mono { font-family: var(--font-mono); font-size: var(--fs-mono); line-height: 1.5; color: var(--text-muted); }
.t-eyebrow .slash { color: var(--brand-mark-blue); padding-inline: .35em; }

/* ---------- Links -------------------------------------------------------- */
.link { color: var(--text-link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; text-decoration-color: currentColor;
  transition: color var(--duration-base) var(--ease-standard), text-decoration-color var(--duration-base) var(--ease-standard); border-radius: var(--radius-xs); }
.link:hover { color: var(--text-link-hover); text-decoration-thickness: 2px; }
.link--quiet { color: var(--text-primary); text-decoration-color: var(--border-strong); }
.link--quiet:hover { color: var(--text-primary); text-decoration-color: currentColor; }
.link-arrow { display: inline-flex; align-items: center; gap: var(--space-2); min-height: var(--target-min); color: var(--text-primary); font-weight: 500; font-size: var(--fs-button); text-decoration: none; border-radius: var(--radius-xs); }
.link-arrow .arrow { display: inline-block; transition: transform var(--duration-base) var(--ease-standard); }
.link-arrow:hover .arrow { transform: translateX(4px); }
.link-arrow:hover .label { text-decoration: underline; text-underline-offset: .25em; text-decoration-thickness: 1px; }

/* ---------- Buttons ------------------------------------------------------ */
.btn { --btn-h: 48px; display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: var(--btn-h); padding: 0 var(--space-6); border: var(--hairline) solid transparent; border-radius: var(--radius-pill);
  font: 500 var(--fs-button)/1 var(--font-sans); letter-spacing: -0.005em; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color var(--duration-base) var(--ease-standard), color var(--duration-base) var(--ease-standard), border-color var(--duration-base) var(--ease-standard), transform var(--duration-fast) var(--ease-standard); }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--action-primary); color: var(--on-action-primary); }
.btn--primary:hover { background: var(--action-primary-hover); }
.btn--secondary { background: var(--action-secondary); color: var(--on-action-secondary); }
.btn--secondary:hover { background: var(--action-secondary-hover); }
.btn--ghost { background: transparent; color: var(--text-primary); border-color: var(--border-control); }
.btn--ghost:hover { background: var(--surface-sunken); }
.btn--sm { --btn-h: 44px; padding: 0 var(--space-5); }
.btn[disabled], .btn[aria-disabled="true"] { background: var(--surface-sunken); color: var(--text-muted); border-color: transparent; cursor: not-allowed; transform: none; }
.btn[aria-busy="true"] { cursor: progress; }
.btn[aria-busy="true"] .btn__label::after { content: "…"; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }

/* ---------- Navigation --------------------------------------------------- */
.nav { position: sticky; top: 0; z-index: 50; background: var(--surface-page); border-bottom: var(--hairline) solid var(--border-subtle); }
.nav__bar { display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); height: var(--nav-height); }
.brand { display: inline-flex; align-items: center; gap: var(--space-2); min-height: var(--target-min); color: var(--text-primary); text-decoration: none; border-radius: var(--radius-xs); }
.brand svg { width: 32px; height: 32px; }
.brand__name { font-weight: 500; font-size: 1.0625rem; letter-spacing: -0.015em; }
.mark-ink { stroke: var(--brand-mark-ink); }
.mark-blue { stroke: var(--brand-mark-blue); }
.nav__links { display: none; list-style: none; margin: 0; padding: 0; gap: var(--space-1); }
.nav__links a { display: inline-flex; align-items: center; min-height: var(--target-min); padding: 0 var(--space-3); color: var(--text-secondary); text-decoration: none; font-size: var(--fs-button); font-weight: 500; border-radius: var(--radius-pill); transition: color var(--duration-base) var(--ease-standard); }
.nav__links a:hover { color: var(--text-primary); }
.nav__links a[aria-current="page"] { color: var(--text-primary); text-decoration: underline; text-underline-offset: .45em; text-decoration-thickness: 1px; }
.nav__cta { display: none; }
.nav__toggle { display: inline-flex; align-items: center; gap: var(--space-2); min-height: var(--target-min); padding: 0 var(--space-4); border: var(--hairline) solid var(--border-control); border-radius: var(--radius-pill); background: transparent; color: var(--text-primary); font: 500 var(--fs-button)/1 var(--font-sans); cursor: pointer; }
.nav__toggle-bars { position: relative; width: 14px; height: 8px; }
.nav__toggle-bars::before, .nav__toggle-bars::after { content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; border-radius: 2px; transition: transform var(--duration-slow) var(--ease-standard), top var(--duration-slow) var(--ease-standard); }
.nav__toggle-bars::before { top: 0; } .nav__toggle-bars::after { top: 6.5px; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bars::before { top: 3.25px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__toggle-bars::after { top: 3.25px; transform: rotate(-45deg); }
.nav__panel { border-top: var(--hairline) solid var(--border-subtle); background: var(--surface-page); padding-block: var(--space-6) var(--space-10); }
.nav__panel[hidden] { display: none; }
.no-js .nav__panel[hidden] { display: block; } /* without JS the menu is simply open */
.no-js .nav__toggle { display: none; }
.nav__panel ul { list-style: none; margin: 0; padding: 0; }
.nav__panel li + li { border-top: var(--hairline) solid var(--border-subtle); }
.nav__panel a.nav__panel-link { display: flex; align-items: center; justify-content: space-between; min-height: 56px; color: var(--text-primary); text-decoration: none; font-size: var(--fs-h3); font-weight: 350; letter-spacing: -0.02em; }
.nav__panel a.nav__panel-link[aria-current="page"]::after { content: "Current"; font: 500 var(--fs-eyebrow)/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); }
.nav__panel .btn { margin-top: var(--space-8); width: 100%; }
@media (min-width: 1024px) {
  .nav__links { display: flex; }
  .nav__cta { display: inline-flex; }
  .nav__toggle, .nav__panel { display: none !important; }
}

/* ---------- Forms -------------------------------------------------------- */
.field { display: grid; gap: var(--space-2); }
.field__label { font-size: var(--fs-body-sm); font-weight: 500; color: var(--text-primary); }
.field__label .opt { font-weight: 400; color: var(--text-muted); }
.field__help { font-size: var(--fs-body-sm); color: var(--text-muted); }
.field__error { display: none; font-size: var(--fs-body-sm); color: var(--status-danger); font-weight: 500; }
.input, .select, .textarea { width: 100%; min-height: 48px; padding: var(--space-3) var(--space-4); border: var(--hairline) solid var(--border-control); border-radius: var(--radius-sm);
  background: var(--surface-page); color: var(--text-primary); font: 400 1rem/1.4 var(--font-sans); /* 16px stops iOS zoom */
  transition: border-color var(--duration-base) var(--ease-standard), background-color var(--duration-base) var(--ease-standard); appearance: none; }
.textarea { min-height: 144px; resize: vertical; line-height: 1.55; }
.select { padding-right: var(--space-10); background-image: linear-gradient(45deg, transparent 50%, var(--text-secondary) 50%), linear-gradient(135deg, var(--text-secondary) 50%, transparent 50%);
  background-position: calc(100% - 22px) 50%, calc(100% - 17px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.input::placeholder, .textarea::placeholder { color: var(--text-muted); opacity: 1; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--text-secondary); }
.input:focus-visible, .select:focus-visible, .textarea:focus-visible { outline: var(--focus-width) solid var(--focus-ring); outline-offset: 0; border-color: var(--focus-ring); }
.input:disabled, .select:disabled, .textarea:disabled { background: var(--surface-sunken); color: var(--text-muted); border-color: var(--border-strong); cursor: not-allowed; }
.field--invalid .input, .field--invalid .select, .field--invalid .textarea, [aria-invalid="true"] { border-color: var(--status-danger); }
.field--invalid .field__error { display: block; }
.check { display: flex; gap: var(--space-3); align-items: flex-start; min-height: var(--target-min); padding-block: var(--space-2); font-size: var(--fs-body-sm); color: var(--text-secondary); cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--action-primary); flex: none; }
.form { display: grid; gap: var(--space-6); max-width: 640px; }
.form__row { display: grid; gap: var(--space-6); }
@media (min-width: 640px) { .form__row { grid-template-columns: 1fr 1fr; } }
.notice { display: flex; gap: var(--space-3); padding: var(--space-4); border-radius: var(--radius-sm); font-size: var(--fs-body-sm); }
.notice strong { font-weight: 600; }
.notice--success { background: var(--status-success-bg); color: var(--status-success); }
.notice--danger { background: var(--status-danger-bg); color: var(--status-danger); }

/* ---------- Image placeholders (marked; never ship) ---------------------- */
.ph { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: var(--space-1); width: 100%; aspect-ratio: var(--ratio, 16 / 9);
  padding: var(--space-4); background: var(--surface-sunken); color: var(--text-muted); overflow: hidden; }
.ph::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom right, transparent calc(50% - .5px), var(--border-strong) 50%, transparent calc(50% + .5px)); opacity: .7; }
.ph > * { position: relative; }
.ph__id { font: 500 var(--fs-eyebrow)/1.3 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text-primary); }
.ph__meta { font: 400 var(--fs-caption)/1.4 var(--font-mono); }
.ph--real { background: var(--surface-page); outline: var(--hairline) dashed var(--border-control); outline-offset: -1px; }
.ph--real::before { display: none; }
.ph--real .ph__id::before { content: "Real photography only · "; color: var(--status-warning); }

/* ---------- Media: full-bleed ------------------------------------------- */
.media-full { position: relative; }
.media-full__frame { width: 100%; }
.media-full__frame > img, .media-full__frame > picture img, .media-full__frame > .ph { width: 100%; height: auto; aspect-ratio: var(--ratio-m, 4 / 5); object-fit: cover; object-position: var(--focus, 50% 50%); }
@media (min-width: 768px) { .media-full__frame > img, .media-full__frame > picture img, .media-full__frame > .ph { aspect-ratio: var(--ratio-d, 21 / 9); } }
.media-full__caption { padding-top: var(--space-4); display: flex; justify-content: space-between; gap: var(--space-6); }

/* ---------- Story (full-bleed pause, one short line on the image's plain sky) ---------- */
/* 3:4 on phones (cropped around the subject), 21:9 from 768px. The line sits top-left on a
   measured plain zone (near-black text 4.5:1 or better on the darkest 5% of it). No caption needed. */
.story { position: relative; }
.story img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; }
.story__text { position: absolute; left: 0; right: 0; top: 0; padding-top: var(--space-12); }
.story__text .t-h2 { max-width: 16ch; color: var(--text-primary); }
@media (min-width: 768px) { .story img { aspect-ratio: 21 / 9; } }
@media (min-width: 1024px) { .story__text { padding-top: var(--space-16); } }

/* ---------- Editorial text + image -------------------------------------- */
.editorial { row-gap: var(--space-10); align-items: end; }
.editorial__media { grid-column: 1 / -1; }
.editorial__media img, .editorial__media .ph { aspect-ratio: var(--ratio, 4 / 5); width: 100%; height: auto; object-fit: cover; border-radius: var(--radius-md); }
.editorial__text { grid-column: 1 / -1; }
@media (min-width: 768px) {
  .editorial__media { grid-column: 1 / span 4; }
  .editorial__text { grid-column: 5 / span 4; padding-bottom: var(--space-4); }
}
@media (min-width: 1024px) {
  .editorial__media { grid-column: 1 / span 6; }
  .editorial__text { grid-column: 8 / span 5; } /* column 7 stays empty: the break */
  .editorial--reverse .editorial__media { grid-column: 7 / span 6; grid-row: 1; }
  .editorial--reverse .editorial__text { grid-column: 1 / span 5; grid-row: 1; }
}

/* ---------- Section head ------------------------------------------------ */
.section-head { row-gap: var(--space-6); margin-bottom: var(--space-12); }
.section-head > * { grid-column: 1 / -1; }
@media (min-width: 1024px) {
  .section-head__label { grid-column: 1 / span 3; padding-top: .7em; }
  .section-head__body { grid-column: 5 / span 8; }
}

/* ---------- Feature index (rows) and feature grid (material series) ----- */
.feature-index { list-style: none; margin: 0; padding: 0; border-top: var(--hairline) solid var(--border-subtle); }
.feature-index__item { display: grid; grid-template-columns: 3rem 1fr; gap: var(--space-2) var(--space-4); padding-block: var(--space-8); border-bottom: var(--hairline) solid var(--border-subtle); }
.feature-index__no { grid-row: span 2; }
.feature-index__media { grid-column: 2; margin-top: var(--space-4); }
.feature-index__media img, .feature-index__media .ph { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-md); }
@media (min-width: 768px) and (max-width: 1023px) {
  .feature-index__item { grid-template-columns: 3rem 1fr 12rem; }
  .feature-index__media { grid-column: 3; grid-row: 1 / span 2; margin-top: 0; }
}
@media (min-width: 1024px) {
  .feature-index__item { grid-template-columns: 1fr 3fr 6fr 2fr; column-gap: var(--gutter); align-items: start; }
  .feature-index__no { grid-row: auto; }
  .feature-index__media { grid-column: 4; grid-row: 1 / span 2; margin-top: 0; }
  .feature-index__item > .t-body-sm { grid-column: 3; grid-row: 1; }
}
.feature-grid { display: grid; gap: var(--space-12) var(--gutter); grid-template-columns: 1fr; }
@media (min-width: 640px) { .feature-grid { grid-template-columns: 1fr 1fr; } }
.feature-grid__item { display: grid; gap: var(--space-3); align-content: start; }
.feature-grid__item img, .feature-grid__item .ph { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-md); margin-bottom: var(--space-3); }
@media (min-width: 1024px) {
  .feature-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .feature-grid__item { grid-column: span 5; }
  .feature-grid__item:nth-child(even) { grid-column: 7 / span 5; margin-top: var(--space-20); } /* staggered: no even row of identical boxes */
}

/* ---------- Service panels (rounded, nearly filled by the image) -------- */
/* One panel per service: a short text band, then the photograph to the panel's edges.
   Image 4:5 on phones, 16:7 from 768px (art-directed: two different images, not a crop). */
.panels { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-4); }
.panel { overflow: hidden; border-radius: var(--radius-lg); background: var(--surface-subtle); border: var(--hairline) solid var(--border-subtle); }
.panel__head { display: grid; gap: var(--space-3); padding: var(--space-6) var(--space-6) var(--space-5); }
.panel__title { display: flex; gap: var(--space-4); align-items: baseline; }
.panel__media img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
@media (min-width: 768px) {
  .panels { gap: var(--space-6); }
  .panel__head { grid-template-columns: 5fr 7fr; column-gap: var(--gutter); align-items: start; padding: var(--space-8) var(--space-10) var(--space-6); }
  .panel__media img { aspect-ratio: 16 / 7; }
}

/* ---------- Card (case study / insight) --------------------------------- */
.card { position: relative; display: grid; gap: var(--space-3); align-content: start; color: inherit; text-decoration: none; }
.card__media img, .card__media .ph { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius-md); transition: opacity var(--duration-base) var(--ease-standard); }
.card__meta { display: flex; gap: var(--space-3); padding-top: var(--space-2); }
.card__title a { color: var(--text-primary); text-decoration: none; border-radius: var(--radius-xs); }
.card__title a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius-md); } /* whole card clickable, one link */
.card__title a:focus-visible { outline: none; }
.card__title a:focus-visible::after { outline: var(--focus-width) solid var(--focus-ring); outline-offset: var(--space-2); }
.card:hover .card__title a { text-decoration: underline; text-underline-offset: .15em; text-decoration-thickness: 1px; }
.card:hover .card__media img { opacity: .92; }
.card--text { padding: var(--space-6); border: var(--hairline) solid var(--border-subtle); border-radius: var(--radius-md); }
.card--text:hover { border-color: var(--border-strong); }

.work-pair { row-gap: var(--space-12); }
.work-pair > * { grid-column: 1 / -1; }
@media (min-width: 768px) { .work-pair > :first-child { grid-column: 1 / span 5; } .work-pair > :last-child { grid-column: 6 / span 3; margin-top: var(--space-24); } }
@media (min-width: 1024px) { .work-pair > :first-child { grid-column: 1 / span 7; } .work-pair > :last-child { grid-column: 9 / span 4; margin-top: var(--space-32); } }

/* ---------- Process steps (Audit → Model → Build → Hand over) ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-10) var(--gutter); grid-template-columns: 1fr; counter-reset: step; }
.steps__item { display: grid; gap: var(--space-3); align-content: start; padding-top: var(--space-6); border-top: var(--hairline) solid var(--border-subtle); }
.steps__no { display: flex; gap: var(--space-2); align-items: baseline; }
.steps__no .arrow { color: var(--text-muted); }
.steps__gets { font-size: var(--fs-body-sm); color: var(--text-primary); }
.steps__gets strong { font-weight: 500; }
.steps__item:last-child { border-top-color: var(--text-primary); } /* hand over: the line passes to the client */
@media (min-width: 640px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Tool list (plain text, no logos) ----------------------------- */
.tool-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; border-top: var(--hairline) solid var(--border-subtle); }
.tool-list li { flex: 1 1 50%; min-height: 72px; display: flex; align-items: center; padding: var(--space-4) var(--space-4) var(--space-4) 0; border-bottom: var(--hairline) solid var(--border-subtle);
  font-size: var(--fs-h4); font-weight: 400; letter-spacing: -0.01em; color: var(--text-primary); }
@media (min-width: 768px) { .tool-list li { flex-basis: 33.333%; } }
@media (min-width: 1024px) { .tool-list li { flex-basis: 25%; } }

/* ---------- Measures (outcomes, no invented figures) -------------------- */
.measures { list-style: none; margin: 0; padding: 0; border-top: var(--hairline) solid var(--border-subtle); }
.measures li { display: grid; gap: var(--space-2); padding-block: var(--space-6); border-bottom: var(--hairline) solid var(--border-subtle); }
.flag { font: 500 var(--fs-eyebrow)/1.3 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--status-warning); }

/* ---------- Logo row ----------------------------------------------------- */
.logo-row { display: grid; grid-template-columns: repeat(2, 1fr); border-top: var(--hairline) solid var(--border-subtle); }
.logo-row__item { display: flex; align-items: center; justify-content: center; min-height: 96px; padding: var(--space-4); border-bottom: var(--hairline) solid var(--border-subtle); color: var(--text-muted); }
.logo-row__item img { max-height: 28px; width: auto; filter: grayscale(1); opacity: .72; }
.logo-row__item .ph { aspect-ratio: auto; height: 40px; padding: 0 var(--space-3); justify-content: center; align-items: center; }
@media (min-width: 768px) { .logo-row { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .logo-row { grid-template-columns: repeat(6, 1fr); } }

/* ---------- Quote -------------------------------------------------------- */
.quote { row-gap: var(--space-8); }
.quote__text { grid-column: 1 / -1; font-size: var(--fs-h3); font-weight: 350; line-height: 1.25; letter-spacing: -0.02em; text-wrap: pretty; }
.quote__text::before { content: "“"; } .quote__text::after { content: "”"; }
.quote__by { grid-column: 1 / -1; display: flex; gap: var(--space-4); align-items: center; }
.quote__by .ph { width: 56px; height: 56px; aspect-ratio: 1; padding: 0; border-radius: var(--radius-pill); }
@media (min-width: 1024px) {
  .quote__text { grid-column: 3 / span 8; font-size: var(--fs-h2); line-height: 1.12; letter-spacing: -0.03em; }
  .quote__by { grid-column: 3 / span 8; }
}

/* ---------- Accordion (native details) ---------------------------------- */
.accordion { border-top: var(--hairline) solid var(--border-subtle); }
.accordion details { border-bottom: var(--hairline) solid var(--border-subtle); }
.accordion summary { display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); min-height: 64px; padding-block: var(--space-4); cursor: pointer; list-style: none;
  font-size: var(--fs-h4); font-weight: 500; letter-spacing: -0.01em; border-radius: var(--radius-xs); }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary:hover { color: var(--text-secondary); }
.accordion .acc-icon { position: relative; flex: none; width: 14px; height: 14px; }
.accordion .acc-icon::before, .accordion .acc-icon::after { content: ""; position: absolute; left: 0; right: 0; top: 6.25px; height: 1.5px; background: currentColor; border-radius: 2px; transition: transform var(--duration-slow) var(--ease-standard); }
.accordion .acc-icon::after { transform: rotate(90deg); }
.accordion details[open] .acc-icon::after { transform: rotate(0deg); }
.accordion .acc-body { padding-bottom: var(--space-8); max-width: var(--measure-body); color: var(--text-secondary); }

/* ---------- Tabs --------------------------------------------------------- */
.tabs__list { display: flex; gap: var(--space-6); overflow-x: auto; border-bottom: var(--hairline) solid var(--border-subtle); scrollbar-width: none; }
.tabs__tab { position: relative; flex: none; min-height: var(--target-min); padding: var(--space-3) 0; border: 0; background: none; color: var(--text-muted); font: 500 var(--fs-button)/1 var(--font-sans); cursor: pointer; transition: color var(--duration-base) var(--ease-standard); }
.tabs__tab:hover { color: var(--text-primary); }
.tabs__tab[aria-selected="true"] { color: var(--text-primary); }
.tabs__tab[aria-selected="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--text-primary); }
.tabs__panel { padding-top: var(--space-8); }
.tabs__panel[hidden] { display: none; }

/* ---------- Footer ------------------------------------------------------- */
.footer { border-top: var(--hairline) solid var(--border-subtle); padding-block: var(--space-16) var(--space-8); font-size: var(--fs-body-sm); }
.footer__grid { row-gap: var(--space-10); }
.footer__brand { grid-column: 1 / -1; display: grid; gap: var(--space-4); align-content: start; }
.footer__col { grid-column: span 2; display: grid; gap: var(--space-1); align-content: start; }
.footer__col h2 { margin-bottom: var(--space-2); }
.footer__col a { display: inline-flex; align-items: center; min-height: var(--target-min); color: var(--text-secondary); text-decoration: none; }
.footer__col a:hover { color: var(--text-primary); text-decoration: underline; text-underline-offset: .2em; }
.footer__legal { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-4); padding-top: var(--space-6); border-top: var(--hairline) solid var(--border-subtle); color: var(--text-muted); }
@media (min-width: 768px) { .footer__brand { grid-column: 1 / span 4; } }
@media (min-width: 1024px) { .footer__brand { grid-column: 1 / span 5; } .footer__col { grid-column: span 2; } .footer__col:first-of-type { grid-column: 7 / span 2; } }

/* ---------- Hero (one screen, one image, after stripe.com) ------------- */
/* The photograph fills the first screen and stops there: it does not continue on scroll.
   Headline, subheading and actions sit together, left-aligned, at the top of the image.
   Text colour follows the image: .hero--on-dark (white) for dark images. Every text line is
   checked against the pixels behind it (white 4.5:1 or better against the brightest 5%). */
.hero { position: relative; display: grid; align-content: start; min-height: clamp(560px, calc(100svh - var(--nav-height)), 1000px); overflow: hidden; background: var(--surface-subtle); }
/* Portrait screens: a spacer below the words keeps the photo's subject (lower 37% of the 1:2 image)
   below the text whatever the phone width. Measured for HOME-HERO; re-check if the image changes. */
@media (orientation: portrait) {
  .hero::after { content: ""; display: block; height: 105vw; }
}
@media (orientation: portrait) and (min-width: 600px) {
  .hero::after { height: calc(74vw + var(--space-6)); }
}
.hero__media { position: absolute; inset: 0; }
.hero__media picture { display: block; height: 100%; }
.hero__media img, .hero__media .ph { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; object-position: var(--focus, 50% 50%); }
.hero__media .ph { align-items: flex-end; text-align: right; }
.hero__content { position: relative; z-index: 1; padding-block: var(--space-12) var(--space-16); }
.hero__content .stack { grid-column: 1 / -1; display: grid; gap: var(--space-6); justify-items: start; }
.hero .t-lead { color: var(--text-primary); max-width: 40ch; }
.hero .btn--ghost { background: var(--surface-page); } /* solid fill: the label reads wherever the button lands on the photo */
.hero .btn--ghost:hover { background: var(--surface-sunken); }
/* dark image */
.hero--on-dark { background: var(--surface-hero); }
.hero--on-dark .t-display, .hero--on-dark .t-lead { color: var(--text-on-image); }
.hero--on-dark .btn--ghost { color: var(--text-on-image); border-color: var(--text-on-image); background: var(--surface-hero); } /* solid fill: the label reads wherever the button wraps */
.hero--on-dark .btn--ghost:hover { background: var(--text-on-image); color: var(--text-primary); }
.hero--on-dark :focus-visible { outline-color: var(--text-on-image); }
/* Centred variant (Services): words centred on the image's plain middle, e.g. the salt-pan rectangle. */
.hero--center { align-content: center; }
.hero--center::after { display: none; }
.hero--center .hero__content { padding-block: var(--space-12); text-align: center; }
.hero--center .hero__content .stack { justify-items: center; }
.hero--center .t-h1, .hero--center .t-display { margin-inline: auto; }
.hero--center .t-lead { margin-inline: auto; }
.hero--center .btn-row { justify-content: center; }
@media (min-width: 768px) {
  .hero__content { padding-block: var(--space-16) var(--space-16); }
  .hero__content .stack { grid-column: 1 / span 6; }
}
@media (min-width: 1024px) {
  .hero__content { padding-top: var(--space-24); }
  .hero__content .stack { grid-column: 1 / span 7; }
}
@media (min-width: 768px) { .hero--center .hero__content .stack { grid-column: 2 / span 6; } }
@media (min-width: 1024px) { .hero--center .hero__content { padding-top: var(--space-12); } .hero--center .hero__content .stack { grid-column: 3 / span 8; } }

/* ---------- Motion: one-time entrance, opt-in, JS-gated ----------------- */
.js .reveal { opacity: 0; transform: translateY(12px); transition: opacity var(--duration-enter) var(--ease-standard), transform var(--duration-enter) var(--ease-standard); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}
