/*
 * Veltron Systems — Ink Wash
 *
 * The site is built from the client's Ink Wash palette on a soft ivory page:
 *   ink   #4A4A4A   text, the approach band, the footer
 *   mist  #CBCBCB   quiet bands, page openings, the form panel
 *   paper #F5F4EF   the page itself
 *   slate #6D8196   feature fields and accents (large text only: 3.7:1 against paper)
 *
 * The shapes come from the logo (src/logo.js): the lean of the V's strokes, used for the
 * edges of photographs and bands, and the orbit that crosses it, used once in the hero.
 *
 * Type: Sora for headlines and statements, IBM Plex Sans for everything else.
 *
 * Contents: tokens, base, layout, buttons and links, header, photographs, hero,
 * sections (intro, capabilities, approach, industries, solutions, why, closing),
 * forms, inner pages, footer, motion.
 */

/* ---------- tokens ---------- */
:root {
  --ink: #4a4a4a;
  --mist: #cbcbcb;
  --paper: #f5f4ef;
  --slate: #6d8196;

  /* working shades derived from the palette */
  --slate-deep: #55687c; /* slate, darkened: small text and links on paper (5.2:1) */
  --ink-deep: #3a3a3a; /* ink, for pressed and hover states */
  --rule: rgba(74, 74, 74, 0.24);
  --rule-light: rgba(203, 203, 203, 0.4);
  --error: #8a2f24; /* the one colour outside the palette: form errors */

  --display: "Sora", "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --sans: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;

  --fs-hero: clamp(2.375rem, 1rem + 4vw, 4.375rem);
  --fs-h1: clamp(2rem, 1.25rem + 2.6vw, 3.25rem);
  --fs-h2: clamp(1.625rem, 1.2rem + 1.6vw, 2.375rem);
  --fs-h3: clamp(1.25rem, 1.12rem + 0.5vw, 1.5rem);
  --fs-statement: clamp(1.5rem, 1.2rem + 0.8vw, 1.75rem);
  --fs-lead: clamp(1.1875rem, 1.1rem + 0.35vw, 1.375rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.9375rem;

  --gutter: clamp(20px, 4.5vw, 56px);
  --wrap: 1240px;
  --edge: max(var(--gutter), calc((100vw - var(--wrap)) / 2)); /* where the wrap's left edge sits */
  --section: clamp(72px, 9vw, 136px);
  --header: 72px;
  --radius: 3px;
  --slant: clamp(22px, 3.6vw, 60px); /* rise of a slanted edge across the page width */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header) + 16px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 var(--fs-body) / 1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--display);
  font-weight: 500;
  line-height: 1.16;
  letter-spacing: -0.028em;
  text-wrap: balance;
  overflow-wrap: break-word;
}

p, ul, ol, dl, dd, figure, address { margin: 0; }
p, li, dd { text-wrap: pretty; }
ul, ol { padding: 0; }
address { font-style: normal; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 2px; }
.band--ink :focus-visible,
.band--slate :focus-visible,
.hero__lead :focus-visible,
.site-footer :focus-visible { outline-color: var(--paper); }

::selection { background: var(--slate); color: var(--paper); }

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 12px 18px;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius);
}
.skip-link:focus { top: 12px; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- layout ---------- */
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.section { padding-block: var(--section); }

.band--ink { background: var(--ink); color: var(--paper); }
.band--mist { background: var(--mist); }
.band--slate { background: var(--slate); color: var(--paper); }
/* a band whose top edge leans like the strokes of the logo's V (use after a paper section) */
.band.band--slant {
  clip-path: polygon(0 var(--slant), 100% 0, 100% 100%, 0 100%);
  padding-top: calc(var(--section) + var(--slant) * 0.6);
}

.h1 { font-size: var(--fs-h1); }
.h2 { font-size: var(--fs-h2); }
.h3 { font-size: var(--fs-h3); }
.lead { font-size: var(--fs-lead); line-height: 1.5; }

.section-head { max-width: 47rem; margin-bottom: clamp(40px, 5vw, 72px); }
.section-head__intro { margin-top: 20px; font-size: var(--fs-lead); line-height: 1.5; }
.band--ink .section-head__intro { color: var(--mist); }

.prose p + p { margin-top: 1.1em; }

.actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* plain list with a short slate dash for each item */
.list { list-style: none; }
.list li { position: relative; padding: 5px 0 5px 24px; }
.list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.05em;
  width: 10px;
  height: 2px;
  background: var(--slate);
}
.band--mist .list li::before { background: var(--ink); }

/* ---------- buttons and links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 26px;
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  font: 500 var(--fs-body) / 1.2 var(--sans);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.12s ease;
}
.btn:active { transform: scale(0.98); }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 1rem; }
.btn--solid { background: var(--ink); color: var(--paper); }
.btn--outline { border-color: var(--ink); color: var(--ink); }
.btn--paper { background: var(--paper); color: var(--ink); }
.btn--outline-paper { border-color: var(--paper); color: var(--paper); }
.btn[disabled] { opacity: 0.6; cursor: progress; }

.link {
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--slate);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
  transition: color 0.18s ease;
}
.band--mist .link { text-decoration-color: var(--ink); }

@media (hover: hover) and (pointer: fine) {
  .btn--solid:hover { background: var(--slate-deep); }
  .btn--outline:hover { background: var(--ink); color: var(--paper); }
  .btn--paper:hover { background: var(--mist); }
  .btn--outline-paper:hover { background: var(--paper); color: var(--ink); }
  .link:hover { color: var(--slate-deep); }
  .band--mist .link:hover { color: var(--ink-deep); text-decoration-thickness: 3px; }
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.site-header.is-scrolled,
.site-header.is-open { border-bottom-color: var(--rule); }
.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header);
}

.wordmark { display: block; padding: 6px 0; text-decoration: none; }
.wordmark svg { display: block; height: clamp(28px, 9vw, 42px); width: auto; } /* narrows with the screen so the menu button keeps its room */

.site-nav { display: flex; align-items: center; gap: clamp(20px, 2.6vw, 36px); }
.site-nav ul { display: flex; gap: clamp(16px, 2.2vw, 30px); list-style: none; }
.site-nav ul a {
  display: block;
  padding: 10px 0 8px;
  border-bottom: 2px solid transparent;
  font-size: 1rem;
  text-decoration: none;
  transition: border-color 0.18s ease;
}
.site-nav ul a[aria-current="page"] { border-bottom-color: var(--slate); }
@media (hover: hover) and (pointer: fine) {
  .site-nav ul a:hover { border-bottom-color: var(--ink); }
}

.nav-toggle { display: none; }

@media (max-width: 959px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 16px;
    border: 1.5px solid var(--ink);
    border-radius: var(--radius);
    background: none;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .nav-toggle:active { transform: scale(0.98); }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: calc(100dvh - var(--header));
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 4px var(--gutter) 28px;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.22s ease, transform 0.22s var(--ease), visibility 0s linear 0.22s;
  }
  .site-header.is-open .site-nav {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition-delay: 0s;
  }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a {
    padding: 14px 0;
    border-bottom: 1px solid var(--rule);
    font: 500 1.25rem / 1.3 var(--display);
    letter-spacing: -0.02em;
  }
  .site-nav ul a[aria-current="page"] { border-bottom-color: var(--rule); color: var(--slate-deep); }
  .site-nav__cta { align-self: flex-start; margin-top: 22px; }

  /* without JavaScript the menu is simply part of the page */
  .no-js .site-header { position: static; }
  .no-js .site-header__bar { flex-wrap: wrap; }
  .no-js .nav-toggle { display: none; }
  .no-js .site-nav { position: static; visibility: visible; opacity: 1; transform: none; padding: 0 0 20px; border: 0; flex-basis: 100%; }
}

/* ---------- photographs ---------- */
/* Every photograph is muted and washed lightly with slate, so twenty pictures from different
   places sit inside the palette as one set. */
.photo__frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: var(--ratio, auto);
  background: var(--mist);
}
.photo__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.5) contrast(1.03);
}
.photo__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--slate);
  mix-blend-mode: color;
  opacity: 0.3;
  pointer-events: none;
}
/* the camera is a product shot on white: let the white become the frame's grey */
.photo__frame img[src*="vision-camera"] { object-fit: contain; padding: 7%; mix-blend-mode: multiply; }
.photo__caption { margin-top: 10px; font-size: var(--fs-small); color: var(--slate-deep); }
.band--mist .photo__caption { color: var(--ink); }
.band--mist .photo__frame { background: var(--paper); }

/* ---------- hero ---------- */
/* Words on paper; beside them the photograph, cut on the lean of the logo's V with two
   strokes of colour running alongside; across both, once, the logo's orbit. */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: min(calc(100svh - var(--header) - 84px), 760px); /* leaves room for the capability line */
  overflow: clip;
}
.hero__inner { position: relative; z-index: 3; width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; padding-block: clamp(48px, 6vw, 88px); }
.hero__copy { max-width: min(35rem, 46%); }
.hero__title { font-size: var(--fs-hero); line-height: 1.06; letter-spacing: -0.035em; }
.hero__text {
  margin: clamp(20px, 2.4vw, 30px) 0 clamp(28px, 3vw, 40px);
  font-size: var(--fs-lead);
  line-height: 1.5;
}
.hero__media { position: absolute; inset: 0 0 0 auto; z-index: 1; width: 60%; }
.hero__media .photo,
.hero__media .photo__frame { height: 100%; }
.hero__media .photo { clip-path: polygon(52% 0, 100% 0, 100% 100%, 10% 100%); }
.hero__media::before,
.hero__media::after { content: ""; position: absolute; inset: 0; }
.hero__media::before { background: var(--slate); clip-path: polygon(45.8% 0, 50.8% 0, 8.8% 100%, 3.8% 100%); }
.hero__media::after { background: var(--mist); clip-path: polygon(42.2% 0, 44.4% 0, 2.4% 100%, 0.2% 100%); }
.hero__orbit {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  z-index: 2;
  width: 100%;
  height: min(48%, 350px);
  pointer-events: none;
}

/* the six capabilities, as a quiet line under the hero */
.capstrip ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2px clamp(18px, 3vw, 40px);
  padding-block: 22px;
  list-style: none;
}
.capstrip a {
  display: inline-block;
  padding: 8px 0;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color 0.18s ease;
}
@media (hover: hover) and (pointer: fine) {
  .capstrip a:hover { border-bottom-color: var(--slate); }
}

@media (max-width: 899px) {
  .hero { display: block; min-height: 0; }
  .hero__inner { padding-block: 40px 28px; }
  .hero__copy { max-width: none; }
  .hero__media { position: relative; inset: auto; width: 100%; aspect-ratio: 5 / 4; }
  .hero__media .photo { clip-path: polygon(0 26%, 100% 8%, 100% 100%, 0 100%); }
  .hero__media::before { clip-path: polygon(0 17%, 100% 0, 100% 5%, 0 22%); }
  .hero__media::after { display: none; }
  .hero__orbit { display: none; }
  .capstrip ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; padding-block: 16px; }
  .capstrip a { padding: 11px 0; }
}

/* ---------- introduction ---------- */
.intro__title span { display: block; }
.intro__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(20px, 6vw, 96px);
  align-items: start;
  margin-top: clamp(28px, 4vw, 56px);
}

/* the four layers of a system: four leaning slabs, one in each colour of the palette */
.layers {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0 12px;
  margin-top: clamp(48px, 6vw, 88px);
  padding-inline: 18px;
  list-style: none;
}
.layers__name {
  position: relative;
  z-index: 0;
  display: flex;
  align-items: flex-end;
  min-height: 148px;
  padding: 24px 28px;
  font-size: var(--fs-statement);
  line-height: 1.2;
}
.layers__name::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--slab);
  transform: skewX(-12deg);
}
.layers__item--1 .layers__name { --slab: var(--ink); color: var(--paper); }
.layers__item--2 .layers__name { --slab: var(--slate); color: var(--paper); }
.layers__item--3 .layers__name { --slab: var(--mist); }
.layers__item--4 .layers__name::before { box-shadow: inset 0 0 0 1.5px var(--ink); }
.layers__item p { padding: 18px 16px 0 0; }

@media (max-width: 899px) {
  .intro__grid { grid-template-columns: minmax(0, 1fr); }
  .layers { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; }
  .layers__name { min-height: 112px; padding: 20px 24px; }
  .layers__item p { padding: 14px 16px 0 0; }
}
@media (max-width: 519px) {
  .layers { grid-template-columns: minmax(0, 1fr); row-gap: 24px; padding-inline: 8px; }
  .layers__name { min-height: 0; padding: 18px 24px; }
  .layers__name::before { transform: skewX(-8deg); }
}

/* ---------- capabilities ---------- */
.caps__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(56px, 7vw, 112px) clamp(28px, 4vw, 64px);
}
.cap__media { display: block; }
.cap__title { font-size: var(--fs-h3); }
.cap__title a { text-decoration: none; }
.cap__claim {
  margin: 10px 0 16px;
  font: 400 var(--fs-lead) / 1.4 var(--display);
  letter-spacing: -0.02em;
  color: var(--slate-deep);
}
.cap .list { margin: 18px 0 24px; }
.cap--half .cap__body { margin-top: 28px; }
.cap--feature {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
.cap--feature .cap__title { font-size: var(--fs-h2); }
.cap--feature.cap--flip { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.cap--feature.cap--flip .cap__media { order: 2; }
.cap .photo__frame img,
.tile .photo__frame img,
.brief .photo__frame img { transition: transform 0.6s var(--ease); }
@media (hover: hover) and (pointer: fine) {
  .cap:hover .photo__frame img,
  .tile a:hover .photo__frame img,
  .brief:hover .photo__frame img { transform: scale(1.03); }
  .cap__title a:hover,
  .brief__title a:hover { text-decoration: underline; text-decoration-color: var(--slate); text-decoration-thickness: 2px; text-underline-offset: 6px; }
}

@media (max-width: 899px) {
  .caps__grid { grid-template-columns: minmax(0, 1fr); }
  .cap--feature,
  .cap--feature.cap--flip { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .cap--feature.cap--flip .cap__media { order: 0; }
}

/* ---------- integrated approach: the five steps as one flow ---------- */
.approach { padding-block: var(--section); }
.flow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0 clamp(18px, 2.4vw, 32px);
  list-style: none;
}
.flow__step { position: relative; padding-top: 72px; --gap: clamp(18px, 2.4vw, 32px); }
.flow__node {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1.5px solid var(--paper);
  border-radius: 50%;
  font-weight: 500;
}
/* the line from this step to the next, ending in an arrowhead */
.flow__step:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 54px;
  right: calc(8px - var(--gap));
  height: 1.5px;
  background: var(--mist);
  transform-origin: left center;
}
.flow__step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 17.5px;
  right: calc(2px - var(--gap));
  border: 5px solid transparent;
  border-left: 8px solid var(--mist);
  border-right: 0;
}
.flow__step.is-marked .flow__node { background: var(--paper); color: var(--ink); }
.flow__label { margin-bottom: 10px; font-size: var(--fs-h3); }
.flow__text { color: var(--mist); }
.flow__caps { margin-top: 14px; font-size: var(--fs-small); }
.flow__caps a { text-decoration-color: var(--mist); text-underline-offset: 4px; }
.flow__caps a[aria-current="true"] { font-weight: 600; text-decoration-color: var(--paper); text-decoration-thickness: 2px; }
.approach__message {
  max-width: 21em;
  margin-top: clamp(56px, 7vw, 104px);
  font: 400 var(--fs-h2) / 1.25 var(--display);
  letter-spacing: -0.03em;
  text-wrap: balance;
}

@media (max-width: 959px) {
  .flow { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .flow__step { padding: 0 0 0 70px; min-height: 46px; }
  .flow__step:not(:last-child)::before {
    top: 54px;
    bottom: -28px;
    left: 22px;
    right: auto;
    width: 1.5px;
    height: auto;
    transform-origin: center top;
  }
  .flow__step:not(:last-child)::after {
    top: auto;
    bottom: -34px;
    left: 17.5px;
    right: auto;
    border: 5px solid transparent;
    border-top: 8px solid var(--mist);
    border-bottom: 0;
  }
  .flow__label { padding-top: 6px; }
}

/* ---------- industries ---------- */
.tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(40px, 5vw, 64px) clamp(24px, 3vw, 40px);
  list-style: none;
}
.tile a { display: block; text-decoration: none; }
.tile__name { margin: 18px 0 8px; font-size: var(--fs-h3); }
@media (hover: hover) and (pointer: fine) {
  .tile a:hover .tile__name { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
}
@media (max-width: 899px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 559px) { .tiles { grid-template-columns: minmax(0, 1fr); } }

/* ---------- solutions on the home page ---------- */
.briefs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(40px, 5vw, 72px) clamp(32px, 5vw, 80px);
  list-style: none;
}
.brief { display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: 28px; align-items: start; }
.brief__media { display: block; }
.brief__title { margin-bottom: 10px; font-size: var(--fs-h3); }
.brief__title a { text-decoration: none; }
.brief p { margin-bottom: 14px; }
@media (max-width: 899px) { .briefs { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 519px) { .brief { grid-template-columns: 88px minmax(0, 1fr); gap: 18px; } }

/* ---------- why Veltron ---------- */
/* On slate every line is large type, so it stays readable against the colour. */
.why { padding-block: var(--section); }
.why__grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(32px, 6vw, 96px);
}
.why__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(40px, 5vw, 64px) clamp(32px, 4vw, 56px);
  list-style: none;
}
.why__name { margin-bottom: 12px; font: 600 1.25rem / 1.3 var(--sans); letter-spacing: 0; }
.why__text { font: 400 var(--fs-statement) / 1.3 var(--display); letter-spacing: -0.025em; }
@media (max-width: 899px) { .why__grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 599px) { .why__list { grid-template-columns: minmax(0, 1fr); } }

/* ---------- closing contact section ---------- */
.closing { padding-block: var(--section); }
.closing__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.closing__head .lead { margin: 20px 0 24px; }
.closing__note { color: var(--slate-deep); }
.closing--short .closing__grid { grid-template-columns: minmax(0, 1fr); }
.closing--short .closing__head { max-width: 44rem; }
.closing--short .lead { margin-bottom: 32px; }
@media (max-width: 899px) { .closing__grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- forms ---------- */
.enquiry { padding: clamp(24px, 3.4vw, 44px); background: var(--mist); }
.form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 24px; }
.field--wide { grid-column: 1 / -1; }
.field__label { display: block; margin-bottom: 8px; font-weight: 500; }
.field__opt { font-weight: 400; }
.field input,
.field select,
.field textarea {
  display: block;
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  background: var(--paper);
  font-size: var(--fs-body);
  transition: border-color 0.15s ease;
}
.field textarea { min-height: 160px; resize: vertical; line-height: 1.5; }
.field select {
  appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%234a4a4a' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 12px 8px;
}
.field ::placeholder { color: var(--slate-deep); opacity: 1; }
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-color: var(--ink); }
.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: var(--error); }
.field__error { margin-top: 6px; font-size: var(--fs-small); font-weight: 500; color: var(--error); }
.field__error:empty { display: none; }

.error-summary {
  margin-bottom: 24px;
  padding: 18px 20px;
  border-left: 4px solid var(--error);
  background: var(--paper);
}
.error-summary__title { font: 600 var(--fs-body) / 1.4 var(--sans); letter-spacing: 0; }
.error-summary__count { display: block; font-weight: 400; font-size: var(--fs-small); color: var(--error); }
.error-summary ul { margin-top: 10px; padding-left: 20px; }
.error-summary li { padding: 3px 0; }

.hp { position: absolute; left: -9999px; }
.form__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  margin-top: 28px;
}
.form__note { font-size: var(--fs-small); }
.form__status { margin-top: 14px; font-weight: 500; color: var(--error); }
.form__status:empty { display: none; }
.enquiry__success h3 { margin-bottom: 12px; font-size: var(--fs-h2); }

@media (max-width: 599px) { .form__grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- inner pages ---------- */
/* a mist field whose lower edge leans like the hero's photograph */
.page-head,
.detail-head {
  background: var(--mist);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--slant)), 0 100%);
}
.page-head { padding: clamp(36px, 4.5vw, 64px) 0 calc(clamp(48px, 6vw, 88px) + var(--slant)); }
.page-head .h1 { max-width: 19em; }
.page-head__lead { max-width: 44rem; margin-top: 24px; }

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 10px;
  margin-bottom: clamp(28px, 4vw, 48px);
  list-style: none;
  font-size: var(--fs-small);
}
.crumbs li:not(:last-child)::after { content: "/"; margin-left: 10px; }
.crumbs a { display: inline-block; padding: 6px 0; text-underline-offset: 4px; }

/* a page opening with a photograph: the title beside it, the photograph cut on the same
   lean as the hero's, with one stroke of slate alongside */
.detail-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.detail-head__text {
  padding: clamp(36px, 4.5vw, 64px) clamp(20px, 3vw, 48px) calc(clamp(48px, 6vw, 88px) + var(--slant)) var(--edge);
}
.detail-head__claim { margin-top: 20px; font: 400 var(--fs-statement) / 1.3 var(--display); letter-spacing: -0.02em; }
.detail-head__summary { max-width: 38rem; margin-top: 20px; font-size: var(--fs-lead); line-height: 1.5; }
.detail-head__photo { position: relative; display: grid; }
.detail-head__photo .photo { display: grid; clip-path: polygon(26% 0, 100% 0, 100% 100%, 8% 100%); }
.detail-head__photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--slate);
  clip-path: polygon(18% 0, 23.5% 0, 5.5% 100%, 0 100%);
}
.detail-head__photo .photo__frame { min-height: 300px; }
.detail-head__photo .photo__frame img { position: absolute; inset: 0; }
@media (max-width: 899px) {
  .detail-head { grid-template-columns: minmax(0, 1fr); }
  .detail-head__text { padding: 36px var(--gutter) 40px; }
  .detail-head__photo .photo { clip-path: none; }
  .detail-head__photo::before { display: none; }
  .detail-head__photo .photo__frame { min-height: 0; aspect-ratio: 16 / 10; }
}

/* two columns: a heading or lead on one side, the detail on the other */
.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(28px, 6vw, 96px);
  align-items: start;
}
.split--lead { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.split h2 + p,
.split h3 + .list { margin-top: 16px; }
@media (max-width: 899px) { .split, .split--lead { grid-template-columns: minmax(0, 1fr); } }

/* titled items in two columns: what we engineer, how it connects */
.items {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(32px, 4vw, 48px) clamp(32px, 6vw, 96px);
  list-style: none;
}
.items__title { margin-bottom: 8px; font: 600 1.25rem / 1.3 var(--sans); letter-spacing: 0; }
.items__title a { text-decoration-color: var(--slate); text-decoration-thickness: 2px; text-underline-offset: 5px; }
@media (max-width: 699px) { .items { grid-template-columns: minmax(0, 1fr); } }

.columns { columns: 2; column-gap: clamp(32px, 6vw, 96px); }
.columns li { break-inside: avoid; }
@media (max-width: 699px) { .columns { columns: 1; } }

.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: clamp(20px, 3vw, 36px); }

.pager { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; padding-block: clamp(40px, 5vw, 64px); }
.pager a { display: block; text-decoration: none; }
.pager a:last-child { text-align: right; }
.pager__dir { display: block; font-size: var(--fs-small); color: var(--slate-deep); }
.band--mist .pager__dir { color: var(--ink); }
.pager__title { display: block; margin-top: 4px; font: 500 var(--fs-h3) / 1.2 var(--display); letter-spacing: -0.025em; }
@media (hover: hover) and (pointer: fine) {
  .pager a:hover .pager__title { text-decoration: underline; text-decoration-color: var(--slate); text-decoration-thickness: 2px; text-underline-offset: 6px; }
}

/* solutions and industries: long entries, photo on alternating sides */
.entry { padding-block: clamp(56px, 7vw, 104px); }
.entry__head { max-width: 47rem; margin-bottom: clamp(28px, 4vw, 48px); }
.entry__head .lead { margin-top: 16px; }
.entry__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}
.entry--flip .entry__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.entry--flip .entry__media { order: 2; }
.entry__body h3 { margin: 28px 0 10px; font: 600 1.25rem / 1.3 var(--sans); letter-spacing: 0; }
.entry__body > h3:first-child { margin-top: 0; }
.entry__pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(24px, 4vw, 48px);
}
.entry__from { margin-top: 24px; }
.entry__from a { text-decoration-color: var(--slate); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.band--mist .entry__from a { text-decoration-color: var(--ink); }
@media (max-width: 899px) {
  .entry__grid,
  .entry--flip .entry__grid { grid-template-columns: minmax(0, 1fr); }
  .entry--flip .entry__media { order: 0; }
}
@media (max-width: 599px) { .entry__pair { grid-template-columns: minmax(0, 1fr); } }

/* about: the stages of an engagement, in order */
.stages { list-style: none; counter-reset: stage; }
.stages li {
  counter-increment: stage;
  display: grid;
  grid-template-columns: 72px minmax(0, 3fr) minmax(0, 7fr);
  gap: 8px clamp(20px, 3vw, 40px);
  align-items: baseline;
  padding-block: 22px;
}
.stages li::before { content: counter(stage); font: 300 var(--fs-h2) / 1 var(--display); }
.stages h3 { font-size: var(--fs-h3); }
@media (max-width: 699px) {
  .stages li { grid-template-columns: 44px minmax(0, 1fr); }
  .stages li p { grid-column: 2; }
}

/* contact page */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}
.details { margin-top: 20px; }
.details div { padding: 12px 0; }
.details dt { font-size: var(--fs-small); color: var(--slate-deep); }
.details a { text-decoration-color: var(--slate); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.details__note { margin-top: 12px; font-size: var(--fs-small); color: var(--slate-deep); }
.contact-aside h2 { font-size: var(--fs-h3); }
.contact-aside h2:not(:first-child) { margin-top: 44px; }
.contact-aside ol { margin-top: 14px; padding-left: 22px; }
.contact-aside ol li { padding: 5px 0 5px 4px; }
@media (max-width: 899px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }

/* 404 */
.lost { padding-block: var(--section); }
.lost .lead { max-width: 40rem; margin: 20px 0 32px; }
.lost__caps { margin-top: clamp(48px, 6vw, 80px); }
.lost__caps h2 { margin-bottom: 14px; font-size: var(--fs-h3); }
.lost__caps ul { display: flex; flex-wrap: wrap; gap: 6px 28px; list-style: none; }
.lost__caps a { display: inline-block; padding: 6px 0; text-decoration-color: var(--slate); text-decoration-thickness: 2px; text-underline-offset: 5px; }

/* ---------- footer ---------- */
.site-footer { padding: clamp(56px, 7vw, 96px) 0 32px; background: var(--ink); color: var(--paper); }
.site-footer__top {
  display: grid;
  grid-template-columns: minmax(0, 4fr) repeat(4, minmax(0, 2.6fr));
  gap: 40px clamp(20px, 3vw, 40px);
}
.site-footer .wordmark { display: inline-block; padding-top: 0; }
.site-footer .wordmark svg { height: 46px; }
.site-footer__brand p { max-width: 21rem; margin-top: 14px; color: var(--mist); }
.site-footer__group h2 { margin-bottom: 12px; font: 600 var(--fs-body) / 1.3 var(--sans); letter-spacing: 0; }
.site-footer__group ul { list-style: none; }
.site-footer__group li { color: var(--mist); }
.site-footer__group a {
  display: inline-block;
  padding: 5px 0;
  color: var(--mist);
  text-decoration: none;
  transition: color 0.18s ease;
}
.site-footer__group address { padding: 5px 0; }
.site-footer__socials { display: flex; flex-wrap: wrap; gap: 0 18px; margin-top: 14px; }
.site-footer__note { margin-top: 10px; font-size: var(--fs-small); color: var(--mist); }
/* the name, as large as the page is wide, fading into the footer */
.site-footer__giant { margin-top: clamp(48px, 7vw, 96px); color: var(--paper); user-select: none; }
.site-footer__giant svg { display: block; width: 100%; height: auto; }
.site-footer__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
  margin-top: clamp(8px, 1.5vw, 20px);
  padding-top: 24px;
  border-top: 1px solid var(--rule-light);
  font-size: var(--fs-small);
  color: var(--mist);
}
.credits summary { cursor: pointer; padding: 4px 0; }
.credits ul { margin-top: 14px; padding-left: 18px; columns: 2; column-gap: 40px; }
.credits li { padding: 3px 0; break-inside: avoid; }
.credits a { color: var(--paper); text-underline-offset: 3px; }
.site-footer__base:has(.credits[open]) .credits { flex-basis: 100%; }
@media (hover: hover) and (pointer: fine) {
  .site-footer__group a:hover { color: var(--paper); text-decoration: underline; text-underline-offset: 4px; }
}
@media (max-width: 959px) {
  .site-footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer__brand { grid-column: 1 / -1; }
  .credits ul { columns: 1; }
}

/* fingers need more room than cursors */
@media (pointer: coarse) {
  .site-footer__group a,
  .crumbs a,
  .hero__caps a,
  .flow__caps a,
  .lost__caps a,
  .entry__from a,
  .credits summary { min-height: 44px; display: inline-flex; align-items: center; }
  .link { display: inline-flex; align-items: center; min-height: 44px; }
}

/* ---------- motion: one quiet entrance per block, nothing that loops ---------- */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  .js [data-reveal] {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s ease, transform 0.6s var(--ease);
  }
  .js [data-reveal].is-in { opacity: 1; transform: none; }

  /* the hero's orbit sweeps in from the left, once */
  .js .hero__orbit[data-reveal] {
    opacity: 1;
    transform: none;
    clip-path: inset(0 100% 0 0);
    transition: clip-path 1.5s var(--ease) 0.25s;
  }
  .js .hero__orbit[data-reveal].is-in { clip-path: inset(0); }

  /* the flow draws itself once, step by step */
  .js .flow .flow__node,
  .js .flow .flow__step::after { opacity: 0; transition: opacity 0.4s ease; transition-delay: calc(var(--i) * 0.16s); }
  .js .flow .flow__step::before { transform: scaleX(0); transition: transform 0.5s var(--ease); transition-delay: calc(var(--i) * 0.16s + 0.12s); }
  .js .flow.is-in .flow__node,
  .js .flow.is-in .flow__step::after { opacity: 1; }
  .js .flow.is-in .flow__step::after { transition-delay: calc(var(--i) * 0.16s + 0.5s); }
  .js .flow.is-in .flow__step::before { transform: none; }
}
@media (prefers-reduced-motion: no-preference) and (max-width: 959px) {
  .js .flow .flow__step::before { transform: scaleY(0); }
}
