/* ==========================================================================
   GVisuals — Strata (matured).
   Production stylesheet. Gate 04 is the authority for every value below.

   No utility framework, no CSS-in-JS, no design-system runtime. Tokens are
   transcribed from tokens/colors.css, tokens/spacing.css and tokens/motion.css
   in the GVisuals Artistic Design System; the type scale, structural
   dimensions and focus treatment are transcribed from Gate 04 §02.
   ========================================================================== */

/* -------------------------------------------------------------- 01 Tokens */

:root {
  /* Brand signature — exact hex, no substitutions (Gate 04 §02). */
  --gv-ink: #0a0a0a;
  --gv-ink-rgb: 10, 10, 10;
  --gv-alabaster: #fdf9f5;
  --gv-alabaster-rgb: 253, 249, 245;
  --gv-crimson: #b61514;
  --gv-crimson-rgb: 182, 21, 20;

  /* Warmed neutral scale. */
  --gv-neutral-100: #fdf9f5;
  --gv-neutral-200: #ece6df;
  --gv-neutral-300: #cfc7bd;
  --gv-neutral-400: #a39a8f;
  --gv-neutral-500: #786f66;
  --gv-neutral-600: #514b45;
  --gv-neutral-700: #332f2b;
  --gv-neutral-800: #1c1a18;
  --gv-neutral-900: #0a0a0a;

  --surface-page: var(--gv-alabaster);
  --surface-inverse: var(--gv-ink);
  --text-primary: var(--gv-ink);
  --text-inverse: var(--gv-alabaster);
  --text-muted: var(--gv-neutral-500);
  --border-hairline: rgb(var(--gv-ink-rgb) / 0.12);
  --border-hairline-inverse: rgb(var(--gv-alabaster-rgb) / 0.2);

  /* Type roles. */
  --font-expressive: 'Big Shoulders', 'Arial Narrow', Impact, sans-serif;
  --font-protected: 'Archivo', -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-utility: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Fluid scale — clamp only, no fixed-px breakpoint jumps (Gate 04 §02). */
  --type-display-xl: clamp(2.6rem, 2rem + 7vw, 8.5rem);
  --type-display-l: clamp(2.2rem, 1.7rem + 4.6vw, 5.4rem);
  --type-display-l-about: clamp(2.2rem, 1.7rem + 4.6vw, 5.2rem);
  --type-display-contact: clamp(2.6rem, 2rem + 6vw, 7.4rem);
  --type-h2-l: clamp(1.9rem, 4.2vw, 3.6rem);
  --type-h2-m: clamp(1.7rem, 3vw, 2.6rem);
  --measure-body: 64ch;

  /* Editorial spacing rhythm. */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 20px;
  --space-5: 32px;
  --space-6: 48px;
  --space-7: 72px;
  --space-8: 108px;
  --space-9: 160px;
  --space-10: 240px;

  /* Structural dimensions (Gate 04 §02). */
  --header-h: 58px;
  --rail-w: 0px;
  --gutter: clamp(16px, 3vw, 32px);
  --breathing-max: 1160px;

  /* Motion. Tier A default, Tier B for the two named photographic passages. */
  --ease-standard: cubic-bezier(0.16, 1, 0.3, 1);
  --duration-a-micro: 120ms;
  --duration-a-transition: 320ms;
  --duration-b-reveal: 700ms;

  /* Locked media grades. */
  --material-filter: grayscale(0.32) contrast(1.06) brightness(1.02) sepia(0.05);
  --tick-filter: grayscale(0.35) contrast(1.1) brightness(0.99) sepia(0.05);
  --cape-filter: sepia(0.1) saturate(0.94) contrast(1.03);
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --duration-a-micro: 0ms;
    --duration-a-transition: 0ms;
    --duration-b-reveal: 0ms;
  }
}

/* --------------------------------------------------------------- 02 Reset */

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--surface-page);
  color: var(--text-primary);
  font-family: var(--font-protected);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

img,
picture {
  max-width: 100%;
}

h1,
h2,
h3,
h4,
p,
figure,
ul,
ol {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

a {
  color: var(--gv-crimson);
}

a:hover {
  color: var(--gv-ink);
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

/* Global focus treatment — Gate 04 §02. No outline:none anywhere without a
   replacement. */
:focus-visible {
  outline: 2px solid var(--gv-crimson);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ---------------------------------------------------------- 03 Skip link */

.skip-link {
  position: absolute;
  left: var(--space-3);
  top: var(--space-3);
  z-index: 70;
  transform: translateY(-200%);
  background: var(--gv-ink);
  color: var(--gv-alabaster);
  font-family: var(--font-utility);
  font-size: 11px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 12px 18px;
  transition: transform var(--duration-a-micro) var(--ease-standard);
}

.skip-link:focus {
  transform: translateY(0);
  color: var(--gv-alabaster);
}

/* ------------------------------------------------------------- 04 Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: 0 var(--gutter);
  background: rgb(var(--gv-alabaster-rgb) / 0.94);
  border-bottom: 1px solid var(--border-hairline);
}

@supports (backdrop-filter: blur(6px)) {
  .site-header {
    backdrop-filter: blur(6px);
  }
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
  flex: none;
}

.brand:hover {
  color: var(--text-primary);
}

.brand img {
  height: 24px;
  width: auto;
  display: block;
}

.brand__name {
  font-family: var(--font-utility);
  font-size: 11px;
  letter-spacing: 0.12em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(8px, 2vw, 26px);
}

.site-nav a {
  font-family: var(--font-utility);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-primary);
  text-decoration: none;
  transition: color var(--duration-a-micro) var(--ease-standard);
}

.site-nav a:hover {
  color: var(--gv-crimson);
}

.site-nav a[aria-current='page'] {
  color: var(--gv-crimson);
}

.site-nav .cta {
  white-space: nowrap;
}

/* ------------------------------------------- 05 Strata Index — rail + strip */

.rail {
  display: none;
}

.rail a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-family: var(--font-utility);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid var(--border-hairline);
  color: inherit;
  opacity: 0.5;
  transition: color var(--duration-a-micro) var(--ease-standard),
    opacity var(--duration-a-micro) var(--ease-standard);
}

.rail a:hover {
  color: var(--gv-crimson);
  opacity: 1;
}

/* Scroll-spy is progressive enhancement. Without it the anchors still work;
   only the crimson highlight is absent (Gate 04 §12). */
.rail a[aria-current='true'] {
  color: var(--gv-crimson);
  opacity: 1;
}

/* Decorative orientation device below 768px. Not a control, not focusable,
   aria-hidden — it must never duplicate the header as extra tab stops
   (Gate 04 §04 / §11). */
.tick-strip {
  display: flex;
  border-top: 1px solid var(--border-hairline);
  margin-top: var(--space-6);
}

.tick-strip span {
  flex: 1;
  text-align: center;
  padding: 8px 0;
  font-family: var(--font-utility);
  font-size: 8.5px;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  border-right: 1px solid var(--border-hairline);
}

.tick-strip span:last-child {
  border-right: 0;
}

.tick-strip span:first-child {
  color: var(--gv-crimson);
}

/* ----------------------------------------------------- 06 Main + sections */

.site-main {
  margin-left: var(--rail-w);
}

/* Error pages carry no Strata Index rail — there are no sections to index — so
   nothing is offset for one. */
.no-rail .site-main,
.no-rail .site-footer {
  margin-left: 0;
}

.breathing {
  padding: var(--space-9) var(--gutter);
  max-width: var(--breathing-max);
  margin: 0 auto;
}

.index-label {
  font-family: var(--font-utility);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: block;
}

.eyebrow {
  font-family: var(--font-utility);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gv-crimson);
}

.eyebrow--dotted {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  color: var(--text-primary);
}

.eyebrow--dotted::before {
  content: '';
  width: 7px;
  height: 7px;
  background: var(--gv-crimson);
  display: inline-block;
  flex: none;
}

.body-copy {
  font-size: 1.05rem;
  line-height: 1.55;
  max-width: var(--measure-body);
}

.support-copy {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text-muted);
  max-width: var(--measure-body);
}

.microcopy {
  font-family: var(--font-utility);
  font-size: 9.5px;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

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

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: var(--space-7);
  margin-top: var(--space-6);
}

/* ------------------------------------------------------ 07 ViewportFrame */

.frame {
  position: relative;
  border: 1px solid var(--border-hairline);
  background: var(--surface-page);
  color: var(--text-primary);
}

.frame--inverse {
  border-color: var(--border-hairline-inverse);
  /* Literal brand tokens, never the semantic pair: the role swap below
     redefines --text-inverse on this same element, so `color: var(--text-
     inverse)` would resolve to ink on an ink surface. */
  background: var(--gv-ink);
  color: var(--gv-alabaster);
  /* Local role swap so primary CTAs invert with the surface. */
  --text-primary: var(--gv-alabaster);
  --text-inverse: var(--gv-ink);
  --border-hairline: rgb(var(--gv-alabaster-rgb) / 0.2);
}

.frame__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  font-family: var(--font-utility);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.72;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border-hairline);
}

.frame__meta span:last-child {
  text-align: right;
}

.frame__body {
  padding: var(--space-6) var(--space-5);
}

.frame__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  padding: var(--space-7) 0;
}

/* --------------------------------------------------- 08 InteractiveAnchor */

.cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  border: 1px solid var(--text-primary);
  background: transparent;
  color: var(--text-primary);
  padding: 11px 16px;
  font-family: var(--font-utility);
  font-size: 11.5px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none;
  outline-offset: 3px;
  transition: background var(--duration-a-micro) var(--ease-standard),
    color var(--duration-a-micro) var(--ease-standard);
}

.cta:hover,
.cta:focus-visible {
  background: var(--text-primary);
  color: var(--text-inverse);
}

.cta--compact {
  padding: 9px 13px;
  font-size: 10.5px;
}

.cta--ghost {
  border: none;
  background: transparent;
  padding: 0;
  font-family: var(--font-protected);
  font-size: 15px;
  letter-spacing: normal;
  text-transform: none;
  color: var(--text-primary);
  transition: text-decoration-color var(--duration-a-micro) var(--ease-standard);
}

.cta--ghost:hover,
.cta--ghost:focus-visible {
  background: transparent;
  color: var(--text-primary);
  text-decoration: underline;
}

.cta__arrow {
  flex: none;
}

.cta--mt {
  margin-top: 8px;
}

/* Most CTAs sit inside column flex containers, where the default `stretch`
   would blow the button out to the full column width. Inside an explicit
   .cta-row the row's own alignment governs instead. */
.cta {
  align-self: flex-start;
}

.cta-row .cta,
.split-head .cta,
.faq-foot .cta,
.hero__foot .cta {
  align-self: auto;
}

/* ------------------------------------------------ 09 Material + imagery */

.photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* ------------------------------------------- 09b Photographic plates
   Visual Asset Integration Remediation.

   A "plate" is a photograph given enough height to read AS a photograph. It
   replaces the 36-120px ribbons the founder review rejected. Heights are fluid
   so a plate is substantial at every width without forcing a tall hero on a
   short laptop. */

.plate {
  margin: 0;
  width: 100%;
  overflow: hidden;
  border-top: 1px solid var(--border-hairline);
  border-bottom: 1px solid var(--border-hairline);
  background: var(--gv-neutral-200);
}

.plate img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Home hero: the one place the sand/rock material speaks, and it speaks big. */
.plate--hero.plate--material {
  height: clamp(190px, 24vw, 340px);
}

.plate--material img {
  filter: var(--material-filter);
}

/* Services hero: local ground. Tall enough to read the rock strata, the bay
   and the mountain line as one photograph. */
.plate--hero.plate--coast {
  height: clamp(240px, 32vw, 460px);
}

.plate--coast img {
  filter: var(--cape-filter);
}

/* About hero: Cape Town provenance from the first screen. */
.plate--hero.plate--cape {
  height: clamp(200px, 26vw, 380px);
}

.plate--cape img {
  filter: var(--cape-filter);
}

/* Full-bleed editorial transition between business concepts. */
.transition {
  width: 100%;
  height: clamp(170px, 20vw, 280px);
  overflow: hidden;
  border-top: 1px solid var(--border-hairline);
  border-bottom: 1px solid var(--border-hairline);
}

.transition img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: var(--material-filter);
}

/* ------------------------------------------ 09b-i Intro curtain

   RETAINED live-site feature (founder Intro Video Correction Directive).
   Home only, once per session, motion-permitting.

   The binding rule here is that NOTHING may trap a visitor. The curtain is
   invisible unless JavaScript is confirmed running, and even then a CSS-only
   backstop in the document head clears it at 9s, and a CSS failsafe at 10s
   backs that up, whether or not site.js ever executed. */

.intro {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: none;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--gv-alabaster);
}

/* prefers-reduced-motion: no-preference, not "not reduce" — a browser too old
   to answer the question simply does not get the curtain. Fails closed. */
@media (prefers-reduced-motion: no-preference) {
  html.js:not(.intro-seen):not(.intro-done) .intro {
    display: flex;
    animation: intro-failsafe 1ms linear 10000ms forwards;
  }
}

@keyframes intro-failsafe {
  to {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
}

.intro__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.92;
  filter: contrast(1.02) saturate(0.95);
}

.intro__veil {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 50%, transparent 30%, rgb(var(--gv-alabaster-rgb) / 0.45) 100%),
    linear-gradient(
      to bottom,
      rgb(var(--gv-alabaster-rgb) / 0.15),
      transparent 30%,
      transparent 70%,
      rgb(var(--gv-alabaster-rgb) / 0.55)
    );
}

/* The mark sits on an alabaster plate rather than directly on the video.
   The footage runs from near-white to a large crimson door, and ink on that
   red measures 3.4:1 — under the 4.5:1 that WCAG 2.2 AA requires for text
   this size. A plate holds the contrast at ~18:1 whatever frame is behind,
   and matches the bordered label plates used elsewhere on the site. */
.intro__mark {
  position: relative;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: var(--gv-alabaster);
  border: 1px solid var(--gv-ink);
  font-family: var(--font-utility);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gv-ink);
}

/* A square, not a dot: the rest of the site marks emphasis with rectangles. */
.intro__dot {
  width: 7px;
  height: 7px;
  background: var(--gv-crimson);
}

.intro__skip {
  position: absolute;
  right: var(--gutter);
  bottom: calc(var(--gutter) + 14px);
  min-height: 44px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gv-alabaster);
  color: var(--gv-ink);
  border: 1px solid var(--gv-ink);
  border-radius: 0;
  font-family: var(--font-utility);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}

.intro__skip:hover,
.intro__skip:focus-visible {
  background: var(--gv-ink);
  color: var(--gv-alabaster);
}

.intro__progress {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: var(--gv-crimson);
}

html.js:not(.intro-seen):not(.intro-done) .intro__progress {
  animation: intro-progress 6500ms linear forwards;
}

@keyframes intro-progress {
  to { transform: scaleX(1); }
}

/* Dismissal. The live site lifts the curtain away upward; kept. */
.intro.is-dismissed {
  opacity: 0;
  transform: translateY(-100%);
  pointer-events: none;
  transition:
    opacity 900ms var(--ease-standard),
    transform 1100ms var(--ease-standard);
}

@media (max-width: 767px) {
  .intro__skip {
    right: 50%;
    transform: translateX(50%);
  }
}

/* ------------------------------------------------------- 09c Pictograms
   Owner / Next step / Record. Original inline SVG, architectural and
   rectilinear. No bubbles, no cards, no icon-pack geometry. */

.handover {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
  margin-top: var(--space-4);
  border-top: 1px solid var(--border-hairline);
  padding-top: var(--space-5);
}

.handover__step {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-3);
}

.pictogram {
  display: block;
  width: 44px;
  height: 44px;
  color: var(--text-primary);
  flex: none;
}

.handover__label {
  font-family: var(--font-utility);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ----------------------------------------------------------- 10 Home H01 */

.hero {
  display: flex;
  flex-direction: column;
  min-height: 76vh;
  justify-content: center;
  gap: var(--space-6);
  padding: var(--space-7) 0;
}

.hero--short {
  min-height: 0;
}

.hero__h1 {
  margin: 0;
  font-family: var(--font-expressive);
  font-weight: 800;
  font-size: var(--type-display-xl);
  line-height: 0.92;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  max-width: 20ch;
}

.hero__h1--services {
  font-size: var(--type-display-l);
  line-height: 0.98;
  text-transform: none;
  max-width: 22ch;
}

.hero__h1--about {
  font-size: var(--type-display-l-about);
  line-height: 0.98;
  text-transform: none;
  max-width: 20ch;
}

.hero__h1--contact {
  font-size: var(--type-display-contact);
  line-height: 0.94;
  max-width: 18ch;
}

.hero__foot {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
  align-items: flex-end;
  justify-content: space-between;
}

.hero__copy {
  max-width: var(--measure-body);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.cta-row {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  align-items: center;
}

/* ------------------------------------------------- 11 Headings + listings */

.h2-l {
  margin: 0;
  font-family: var(--font-expressive);
  font-weight: 700;
  font-size: var(--type-h2-l);
  line-height: 1;
}

.h2-m {
  margin: 0;
  font-family: var(--font-expressive);
  font-weight: 700;
  font-size: var(--type-h2-m);
  line-height: 1.02;
}

.h2-breathing {
  margin: 0;
  font-family: var(--font-expressive);
  font-weight: 700;
  font-size: clamp(1.9rem, 3.8vw, 3.2rem);
  line-height: 1.05;
}

.split-head {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
  justify-content: space-between;
  align-items: flex-end;
}

.split-head .h2-l {
  max-width: 16ch;
}

.split-head__aside {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 36ch;
}

.row-list {
  display: flex;
  flex-direction: column;
}

.row {
  display: grid;
  grid-template-columns: 56px minmax(0, 220px) minmax(0, 1fr);
  gap: var(--space-5);
  padding: var(--space-4) 0;
  border-top: 1px solid var(--border-hairline);
  align-items: baseline;
}

.row--method {
  grid-template-columns: 64px minmax(0, 240px) minmax(0, 1fr);
}

.row__n {
  font-family: var(--font-utility);
  font-size: 13px;
  color: var(--gv-crimson);
}

.row--method .row__n {
  font-size: 15px;
}

.row__name {
  font-family: var(--font-expressive);
  font-weight: 700;
  font-size: 1.15rem;
  text-transform: uppercase;
  color: var(--text-primary);
  text-decoration: none;
}

a.row__name:hover,
a.row__name:focus-visible {
  color: var(--text-primary);
  text-decoration: underline;
}

.row--method .row__name {
  font-size: 1.1rem;
  text-transform: none;
}

.row__desc {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-muted);
}

/* --------------------------------------- 12 Reporting ticks + calibration */

.tick-rows {
  display: flex;
  flex-direction: column;
}

.tick-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 9px 0;
  border-top: 1px solid var(--border-hairline);
}

.tick-row::before {
  content: '';
  width: 14px;
  height: 2px;
  background: var(--gv-crimson);
  display: inline-block;
  flex: none;
  align-self: center;
}

.tick-row__n {
  font-family: var(--font-utility);
  font-size: 9.5px;
  color: var(--text-muted);
  flex: none;
}

.tick-row__text {
  font-size: 0.98rem;
  line-height: 1.4;
}

.calibration {
  position: relative;
  padding: var(--space-4) 0;
}

.calibration::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: var(--border-hairline);
}

/* Gate 04 §07 calls this a four-point calibration row. A wrapping flex line
   left the ruler drawn through the gap between two rows, so the points are a
   fixed four-column grid: the ruler always reads as one measured scale. Below
   768px it becomes a vertical list and the ruler is dropped entirely. */
.calibration__points {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  position: relative;
  gap: var(--space-3);
}

.calibration__point {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.calibration__n {
  font-family: var(--font-utility);
  font-size: 9.5px;
  color: var(--gv-crimson);
}

.calibration__mark {
  width: 9px;
  height: 9px;
  background: var(--gv-crimson);
  display: inline-block;
}

.calibration__text {
  font-size: 0.85rem;
  line-height: 1.35;
  color: var(--text-muted);
}

.handover__label {
  font-family: var(--font-utility);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding-top: 6px;
  text-align: center;
}

.pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-7);
  padding: var(--space-7) 0;
}

.pair__right {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  border-left: 1px solid var(--border-hairline);
  padding-left: var(--space-6);
}

.pair__col {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

/* ------------------------------------------------------- 13 Service rows */

.service {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: var(--space-7);
  padding: var(--space-7) 0;
}

.service__head {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  align-items: flex-start;
}

.service__head .eyebrow {
  font-size: 10.5px;
}

.service__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.service__body p:first-child {
  font-size: 1.02rem;
  line-height: 1.58;
}

.service__support {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text-muted);
}

/* ---------------------------------------------- 14 Trust / founder / cape */

.trust {
  padding: var(--space-9) 0;
}

.trust__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 3px;
}

.trust__portrait {
  position: relative;
  margin: 0;
  min-height: clamp(420px, 46vw, 660px);
  background: var(--gv-neutral-200);
  overflow: hidden;
}

.trust__portrait img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Tuned to the 4:5 plate: face and the deliberate hand placement stay in
     frame at every column width. */
  object-position: 50% 18%;
  display: block;
}

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

.trust__cape {
  margin: 0;
  height: 44%;
  min-height: 220px;
  overflow: hidden;
}

.trust__cape img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 55%;
  display: block;
  filter: var(--cape-filter);
}

.trust__panel {
  flex: 1;
  background: var(--gv-ink);
  color: var(--gv-alabaster);
  padding: var(--space-6) clamp(20px, 3vw, 40px);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  justify-content: center;
  --text-primary: var(--gv-alabaster);
  --text-inverse: var(--gv-ink);
}

.trust__panel h2 {
  margin: 0;
  font-family: var(--font-expressive);
  font-weight: 800;
  font-size: clamp(1.6rem, 2.8vw, 2.5rem);
  line-height: 1.04;
  text-transform: uppercase;
}

.trust__panel p {
  max-width: 42ch;
}

.on-ink-body {
  font-size: 1rem;
  line-height: 1.6;
  color: rgb(var(--gv-alabaster-rgb) / 0.88);
}

.on-ink-support {
  font-size: 0.88rem;
  line-height: 1.55;
  color: rgb(var(--gv-alabaster-rgb) / 0.6);
}

.editorial-strip {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  align-items: flex-start;
  padding: var(--space-6) var(--gutter) 0;
  border-top: 1px solid var(--border-hairline);
  margin-top: var(--space-6);
}

.editorial-strip h3 {
  margin: 0;
  font-family: var(--font-expressive);
  font-weight: 700;
  font-size: 1.5rem;
}

/* About — the largest single photographic moment on the site. */
.founder {
  padding: var(--space-8) 0;
}

.founder__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
  padding: 0 var(--gutter);
}

/* About A03 is the one place the portrait is presented as a full-length plate.
   Document 16 requires head, hands, posture and shoes to survive here, so the
   figure is sized by the image rather than the column: the whole portrait is
   shown, scaled to fit inside Gate 04 §08's 74vh ceiling. `cover` is used on
   Home's Trust panel instead, where Gate 04 §05 specifies a top-weighted
   architectural crop. */
.founder__figure {
  position: relative;
  margin: 0;
}

.founder__figure img {
  display: block;
  width: auto;
  height: auto;
  /* Gate 04 §08's 74vh ceiling, expressed as a width cap so nothing is
     cropped: the source is 944x1536, so 74vh of height is 74 / (1536/944)
     = 45.5vh of width. Capping height directly would need object-fit and
     would cut the shoes off again. */
  max-width: min(100%, 45.5vh);
}

.founder__mark {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 46px;
  height: 6px;
  background: var(--gv-crimson);
}

.founder__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  align-items: flex-start;
}

.founder__body h2 {
  margin: 0;
  font-family: var(--font-expressive);
  font-weight: 800;
  font-size: clamp(2rem, 3.6vw, 3.4rem);
  line-height: 1;
  text-transform: uppercase;
}

.founder__body p {
  max-width: 42ch;
}

.context__band {
  height: clamp(280px, 42vw, 460px);
  overflow: hidden;
}

.context__band img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 60%;
  display: block;
}

.context__text {
  padding: var(--space-7) var(--gutter);
  max-width: var(--breathing-max);
  margin: 0 auto;
}

/* ---------------------------------------------------------- 15 Channels */

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

.channel {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--border-hairline);
  text-decoration: none;
  color: var(--text-primary);
  min-height: 44px;
  justify-content: center;
}

.channel:hover .channel__value,
.channel:focus-visible .channel__value {
  color: var(--gv-crimson);
}

.channel__label {
  font-family: var(--font-utility);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.frame--inverse .channel__label {
  color: rgb(var(--gv-alabaster-rgb) / 0.6);
}

.channel__value {
  font-size: 1.2rem;
  transition: color var(--duration-a-micro) var(--ease-standard);
}

.channel-note {
  font-family: var(--font-utility);
  font-size: 10px;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  padding-top: var(--space-4);
}

.frame--inverse .channel-note {
  color: rgb(var(--gv-alabaster-rgb) / 0.5);
}

/* --------------------------------------------------------------- 16 FAQ */

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

.faq details {
  border-top: 1px solid var(--border-hairline);
  padding: var(--space-4) 0;
}

.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: baseline;
  gap: 0;
  font-family: var(--font-expressive);
  font-weight: 700;
  font-size: 1.1rem;
  min-height: 44px;
  align-content: center;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::before {
  content: '+';
  display: inline-block;
  width: 18px;
  flex: none;
  color: var(--gv-crimson);
  font-family: var(--font-utility);
}

.faq details[open] summary::before {
  content: '–';
}

.faq summary h3 {
  margin: 0;
  font: inherit;
}

.faq__answer {
  margin: var(--space-3) 0 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 70ch;
  padding-left: 18px;
}

.faq-foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-5);
  flex-wrap: wrap;
  border-top: 1px solid var(--border-hairline);
  padding-top: var(--space-5);
}

.faq-foot span {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* -------------------------------------------------------------- 17 Form */

.enquiry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-6) var(--space-7);
  max-width: 840px;
}

/* An author `display` declaration outranks the user-agent [hidden] rule, so
   every element this build hides programmatically needs its own [hidden]
   variant — otherwise the form stays on screen underneath the success block. */
.enquiry[hidden] {
  display: none;
}

.enquiry__note {
  grid-column: 1 / -1;
  font-family: var(--font-utility);
  font-size: 9.5px;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field--full {
  grid-column: 1 / -1;
}

.field__label {
  font-family: var(--font-utility);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.field__req {
  color: var(--gv-crimson);
}

.field input,
.field textarea,
.field select {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border-hairline);
  border-radius: 0;
  color: var(--text-primary);
  font-family: var(--font-protected);
  font-size: 1rem;
  padding: 9px 0;
  min-height: 44px;
  width: 100%;
  transition: border-color var(--duration-a-micro) var(--ease-standard);
}

.field textarea {
  resize: vertical;
  min-height: 96px;
}

.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-muted) 50%),
    linear-gradient(135deg, var(--text-muted) 50%, transparent 50%);
  background-position: calc(100% - 10px) calc(50% + 1px), calc(100% - 5px) calc(50% + 1px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 24px;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-bottom-color: var(--gv-crimson);
}

.field__helper {
  font-family: var(--font-protected);
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.field__error {
  font-family: var(--font-protected);
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--gv-crimson);
}

.field__error:empty {
  display: none;
}

.field.is-invalid input,
.field.is-invalid textarea {
  border-bottom-color: var(--gv-crimson);
  border-bottom-width: 2px;
}

.enquiry__submit {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: var(--space-5);
  flex-wrap: wrap;
  margin-top: var(--space-2);
}

.btn-submit {
  background: var(--gv-ink);
  color: var(--gv-alabaster);
  border: 1px solid var(--gv-ink);
  font-family: var(--font-utility);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 15px 28px;
  min-height: 48px;
  cursor: pointer;
  transition: background var(--duration-a-micro) var(--ease-standard),
    color var(--duration-a-micro) var(--ease-standard);
}

.btn-submit:hover:not([disabled]),
.btn-submit:focus-visible:not([disabled]) {
  background: transparent;
  color: var(--gv-ink);
}

.btn-submit[disabled] {
  opacity: 0.6;
  cursor: progress;
}

.privacy-note {
  font-family: var(--font-protected);
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-muted);
  max-width: 44ch;
}

.form-result {
  border: 1px solid var(--border-hairline);
  padding: var(--space-7);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-3);
  max-width: 560px;
}

/* Result blocks are hidden until the service decides the outcome. Two things
   can reveal them, and neither is a timer:
     – JavaScript clears [hidden] after a confirmed response;
     – with JavaScript off, the service's own redirect targets the fragment and
       :target reveals it, hiding the form beneath.
   The :target rules must out-specify the [hidden] rule, hence the doubled
   attribute selector. */
.form-result[hidden] {
  display: none;
}

.form-result[hidden]:target {
  display: flex;
}

#enquiry-sent:target ~ .enquiry {
  display: none;
}

.form-result--failed {
  border-color: var(--gv-crimson);
}

/* The crimson block marks the success state. The failure state already carries
   a crimson border, so it drops the mark. Doubled class keeps this winning over
   the base ::before regardless of source order. */
.form-result.form-result--failed::before {
  display: none;
}

.form-result::before {
  content: '';
  width: 24px;
  height: 24px;
  background: var(--gv-crimson);
  display: block;
}

.form-result h3 {
  margin: 0;
  font-family: var(--font-expressive);
  font-weight: 700;
  font-size: 1.6rem;
}

.form-result p {
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.form-status {
  grid-column: 1 / -1;
}

.form-status:empty {
  display: none;
}

.form-status p {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--gv-crimson);
  margin: 0 0 var(--space-2);
}

.noscript-note {
  border: 1px solid var(--gv-crimson);
  padding: var(--space-4);
  margin-bottom: var(--space-6);
  max-width: 560px;
  font-size: 0.92rem;
  line-height: 1.55;
}

/* ------------------------------------------------------------ 18 Footer */

.site-footer {
  /* Sits outside <main>, so it needs the rail offset in its own right. */
  margin-left: var(--rail-w);
  border-top: 1px solid var(--border-hairline);
  padding: var(--space-6) var(--gutter);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4) var(--space-6);
  justify-content: space-between;
  font-family: var(--font-utility);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

/* WCAG 2.2 SC 2.5.8 Target Size (Minimum). These are standalone links, not
   links inside a sentence, so the inline exception does not apply and the
   spacing exception was failing by half a pixel once they wrapped. Carrying
   a real 24px target satisfies the criterion outright. */
.site-footer a {
  color: var(--text-muted);
  text-decoration: none;
  display: inline-block;
  padding-block: 4px;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--gv-crimson);
}

.site-footer__group {
  display: flex;
  flex-wrap: wrap;
  /* Row gap trimmed because each link now carries 8px of its own padding,
     so the visible rhythm is unchanged. */
  gap: 2px 6px;
  align-items: center;
}

/* ------------------------------------------------- 19 Tier B — reveals */

/* Authorised only for the two named photographic passages (Gate 04 §10).
   The `.js` guard means a JavaScript failure leaves both fully visible. */
.js .reveal {
  opacity: 0;
  transition: opacity var(--duration-b-reveal) var(--ease-standard),
    transform var(--duration-b-reveal) var(--ease-standard);
}

.js .reveal--rise {
  transform: translateY(12px);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal,
  .js .reveal--rise {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ------------------------------------------------------- 20 Breakpoints */

/* Tablet — rail reappears at a fixed 34px to protect content width. */
@media (min-width: 768px) {
  :root {
    --rail-w: 34px;
  }

  .rail {
    position: fixed;
    left: 0;
    top: var(--header-h);
    bottom: 0;
    width: var(--rail-w);
    z-index: 55;
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--border-hairline);
    background: var(--surface-page);
    /* Vertical labels are sized by their own text, so on a short viewport
       (a landscape phone against Services' nine stops) the column is taller
       than the rail and the last stops would fall off-screen unreachable.
       Scrolling the rail itself keeps every anchor reachable; at normal
       heights there is no overflow and nothing changes. The bar is hidden
       because it would consume most of a 34px rail. */
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: none;
  }

  .rail::-webkit-scrollbar {
    display: none;
  }

  .rail a {
    font-size: 8.5px;
    letter-spacing: 0.09em;
  }

  .tick-strip {
    display: none;
  }
}

/* Desktop — rail steps up into the clamp range. */
@media (min-width: 1024px) {
  :root {
    --rail-w: clamp(38px, 5.2vw, 54px);
  }

  .rail a {
    font-size: 9.5px;
    letter-spacing: 0.1em;
  }
}

/* Below 768px every multi-column composition becomes a single column and the
   rail is not rendered at all — a hard conditional, never a shrink
   (Gate 04 §04). */
/* Gate 04 §03: every two-column composition is single-column below 1024px —
   "2-column grids collapse to 1 col at this exact width for pillar/founder
   layouts" at the 768px checkpoint, and "2-column grids resume" at 1024px.
   The rail, header and touch-target rules keep their own 768px boundary in the
   block further down; only the column counts change here. */
@media (max-width: 1023px) {
  .two-col,
  .pair,
  .service,
  .enquiry,
  .trust__grid,
  .founder__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .pair {
    gap: var(--space-6);
  }

  .pair__right {
    border-left: 0;
    border-top: 1px solid var(--border-hairline);
    padding-left: 0;
    padding-top: var(--space-6);
  }

  /* Imagery leads, text follows — "2-col becomes 1-col, image on top". */
  .trust__grid {
    gap: 0;
  }

  .trust__portrait {
    min-height: 0;
    aspect-ratio: 4 / 5;
  }

  .trust__portrait img {
    position: static;
    object-position: 50% 10%;
  }

  .trust__cape {
    height: auto;
    /* Matches the 1.7:1 mobile crop exactly. A wider box here would re-crop
       the art-directed composition in CSS and undo the point of shipping it. */
    aspect-ratio: 17 / 10;
    min-height: 0;
  }

  .founder__figure img {
    max-width: min(100%, 52vh);
  }
}

@media (max-width: 767px) {
  .frame__body {
    padding: var(--space-5) var(--space-4);
  }

  .frame__meta {
    padding: 14px 16px;
    font-size: 9.5px;
    gap: var(--space-3);
  }

  .breathing {
    padding: var(--space-7) var(--gutter);
  }

  .trust,
  .founder {
    padding: var(--space-7) 0;
  }

  .founder__figure img {
    max-width: 100%;
    width: 100%;
  }

  .row,
  .row--method {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: var(--space-2) var(--space-4);
  }

  .row__desc {
    grid-column: 2;
  }

  .calibration::before {
    display: none;
  }

  .calibration__points {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-3);
  }

  .calibration__point {
    flex-direction: row;
    align-items: baseline;
    gap: 10px;
    text-align: left;
  }

  .calibration__mark {
    align-self: center;
  }

  .site-header {
    gap: var(--space-2);
    padding: 0 14px;
  }

  .brand__name {
    display: none;
  }

  .site-nav {
    gap: 6px;
  }

  .site-nav a {
    font-size: 9.5px;
    letter-spacing: 0.04em;
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-nav .cta {
    min-width: 0;
    padding: 9px 8px;
    font-size: 9.5px;
    letter-spacing: 0.04em;
  }

  .site-footer {
    font-size: 10px;
    gap: var(--space-3);
  }

  .faq__answer {
    padding-left: 0;
  }

  .enquiry__submit {
    gap: var(--space-4);
  }


  /* Mobile plates take the shape of their own mobile crop, so the taller,
     closer composition is shown in full rather than being cropped back to a
     desktop-proportioned slot. This is the art direction, not a compression. */
  .plate--hero.plate--material {
    height: auto;
    aspect-ratio: 1.9;
  }

  .plate--hero.plate--coast {
    height: auto;
    aspect-ratio: 1.25;
  }

  .plate--hero.plate--cape {
    height: auto;
    aspect-ratio: 1.4;
  }

  .transition {
    height: auto;
    aspect-ratio: 1.9;
  }

  /* The About context band is not a .plate but follows the same rule: its
     mobile slice is square, so the box is square. */
  .context__band {
    height: auto;
    aspect-ratio: 1;
  }

  .handover {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-3);
  }

  .pictogram {
    width: 38px;
    height: 38px;
  }

  .btn-submit {
    width: 100%;
    justify-content: center;
  }

  /* Gate 04 §11: 44px minimum on every control below 768px. The default CTA
     box computes to 42px, and the ghost variant has no padding at all. */
  .cta {
    min-height: 44px;
  }

  .cta--ghost {
    min-height: 44px;
    align-items: center;
  }
}

/* At the 320px floor the named CTA yields to the three route links; Contact
   carries the identical destination, so the conversion path is unbroken. */
@media (max-width: 374px) {
  .site-nav .cta {
    display: none;
  }
}

/* Landscape phone — cap tall media so the CTA stays reachable without a
   second scroll gesture (Gate 04 §03). */
@media (max-height: 430px) and (orientation: landscape) {
  .hero {
    min-height: 0;
    padding: var(--space-6) 0;
  }

  .trust__portrait,
  .founder__figure img {
    max-width: min(100%, 36.9vh);
  }

  .context__band {
    height: 60vh;
  }
}

/* Short-height laptop — min-height only, never a forced height. */
@media (min-height: 431px) and (max-height: 800px) and (min-width: 1024px) {
  .hero {
    min-height: 0;
    padding: var(--space-8) 0;
  }
}

@media print {
  .rail,
  .skip-link,
  .tick-strip {
    display: none;
  }

  .site-main {
    margin-left: 0;
  }
}
