@charset "utf-8";

/* =========================================================================
   Afiak Technical Services - version 2
   Light theme, locked. Photography led. One accent: vermillion.
   Type: Archivo (display and body), IBM Plex Mono (micro labels, figures).
   Radius: one scale, 8px, everywhere.
   ========================================================================= */

/* ---------- fonts (self hosted, latin subsets) ---------- */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/archivo-latin-400_700.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/archivo-latin-ext-400_700.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/plexmono-latin-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/plexmono-latin-500.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- tokens ---------- */

:root {
  color-scheme: light only;

  --paper: #f4f6f7;
  --paper-2: #e9edef;
  --surface: #ffffff;

  --ink: #0f1a28;
  --ink-2: #414e5c;
  --ink-3: #626e7a;

  --line: #dbe1e5;
  --line-2: #c1cad1;

  --accent: #c9400f;
  --accent-hover: #a93409;
  --accent-text: #a93409;

  --deep: #0f1a28;
  --deep-2: #18263a;

  --r: 8px;
  --shell: 1280px;
  --header-h: 72px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  --sans: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

/* ---------- reset ---------- */

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

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.022em;
  line-height: 1.08;
  text-wrap: balance;
}

h1 { font-size: clamp(2.35rem, 1.35rem + 3.1vw, 4.15rem); }
h2 { font-size: clamp(1.85rem, 1.25rem + 1.9vw, 2.9rem); }
h3 { font-size: clamp(1.12rem, 1rem + 0.45vw, 1.4rem); line-height: 1.22; }

p { margin: 0 0 1.05em; }
p:last-child { margin-bottom: 0; }

a { color: inherit; }

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

::selection { background: var(--accent); color: #fff; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- helpers ---------- */

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: clamp(1.15rem, 4vw, 2.5rem);
}

.label {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.688rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.mono { font-family: var(--mono); font-size: 0.875rem; letter-spacing: -0.01em; }

.lede {
  font-size: clamp(1.06rem, 0.98rem + 0.42vw, 1.3rem);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 34ch;
}

.copy { color: var(--ink-2); max-width: 62ch; }

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

.skip-link {
  position: absolute;
  left: 1rem; top: -4rem;
  z-index: 200;
  padding: 0.7rem 1.1rem;
  background: var(--ink);
  color: #fff;
  border-radius: var(--r);
  font-size: 0.9rem;
  text-decoration: none;
  transition: top 0.18s var(--ease);
}
.skip-link:focus { top: 1rem; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.35rem;
  border: 1px solid var(--accent);
  border-radius: var(--r);
  background: var(--accent);
  color: #ffffff;
  font-family: var(--sans);
  font-size: 0.938rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease),
    transform 0.15s var(--ease), box-shadow 0.2s var(--ease);
}
.btn:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -10px rgba(169, 52, 9, 0.75);
}
.btn:active { transform: scale(0.985); }
.btn svg { width: 1.05em; height: 1.05em; flex: none; }

.btn--ghost {
  background: transparent;
  border-color: var(--line-2);
  color: var(--ink);
}
.btn--ghost:hover {
  background: var(--surface);
  border-color: var(--ink);
  box-shadow: 0 8px 20px -14px rgba(15, 26, 40, 0.6);
}

.btn--onphoto {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.btn--onphoto:hover {
  background: #fff;
  border-color: #fff;
  color: var(--ink);
  box-shadow: 0 10px 26px -14px rgba(0, 0, 0, 0.8);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--accent-text);
  font-weight: 600;
  font-size: 0.938rem;
  text-decoration: none;
  border-bottom: 1px solid rgba(169, 52, 9, 0.32);
  padding-bottom: 2px;
  transition: border-color 0.2s var(--ease), gap 0.2s var(--ease);
}
.link:hover { border-color: var(--accent-text); gap: 0.7rem; }
.link svg { width: 1em; height: 1em; flex: none; }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(244, 246, 247, 0.86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.site-header[data-stuck="true"] {
  border-bottom-color: var(--line);
  background: rgba(244, 246, 247, 0.94);
}
.site-header > .shell {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
}

.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 30px; width: auto; }

.nav {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 2vw, 1.85rem);
  margin-inline-start: auto;
}
.nav a {
  position: relative;
  font-size: 0.938rem;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  padding: 0.35rem 0;
  transition: color 0.18s var(--ease);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s var(--ease);
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.nav a[aria-current="page"]::after { transform: scaleX(1); }

.header-end { display: flex; align-items: center; gap: 1rem; flex: none; }
.header-phone {
  font-family: var(--mono);
  font-size: 0.813rem;
  color: var(--ink-2);
  text-decoration: none;
  white-space: nowrap;
}
.header-phone:hover { color: var(--accent-text); }
.header-end .btn { padding: 0.62rem 1.05rem; font-size: 0.875rem; }

.burger {
  display: none;
  margin-inline-start: auto;
  width: 42px; height: 42px;
  padding: 0;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}
.burger svg { width: 20px; height: 20px; }

@media (max-width: 1000px) {
  .nav, .header-end { display: none; }
  .burger { display: inline-flex; }
}

/* ---------- mobile drawer ---------- */

.drawer {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--paper);
  padding: 1.15rem clamp(1.15rem, 4vw, 2.5rem) 2rem;
  overflow-y: auto;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease),
    visibility 0.25s;
}
.drawer[data-open="true"] { visibility: visible; opacity: 1; transform: none; }
.drawer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: calc(var(--header-h) - 1.15rem);
}
.drawer nav {
  display: grid;
  margin-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.drawer nav a {
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.drawer .btn-row { margin-top: 1.75rem; }
.drawer .btn { flex: 1 1 auto; justify-content: center; }

/* ---------- sections ---------- */

.section { padding-block: clamp(3.75rem, 7vw, 6.5rem); }
.section--tint { background: var(--paper-2); }
.section--flush { padding-block: clamp(2.5rem, 4vw, 3.5rem); }

.section-head { max-width: 60ch; margin-bottom: clamp(2.25rem, 4vw, 3.25rem); }
.section-head p { margin-top: 1.1rem; color: var(--ink-2); }

/* ---------- hero (photo, scrim, left aligned) ---------- */

.hero {
  position: relative;
  isolation: isolate;
  min-height: min(84vh, 780px);
  display: flex;
  align-items: flex-end;
  padding-block: clamp(4rem, 10vw, 6rem) clamp(2.5rem, 5vw, 4rem);
  color: #fff;
  background: var(--deep);
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(9, 15, 24, 0.72) 0%, rgba(9, 15, 24, 0.32) 42%, rgba(9, 15, 24, 0.88) 100%),
    linear-gradient(90deg, rgba(9, 15, 24, 0.78) 0%, rgba(9, 15, 24, 0.22) 62%, rgba(9, 15, 24, 0.05) 100%);
}
.hero__body { max-width: 46rem; }
.hero h1 { color: #fff; }
.hero .lede {
  color: rgba(255, 255, 255, 0.86);
  max-width: 44ch;
  margin-top: 1.35rem;
}
.hero .btn-row { margin-top: 2.25rem; }

.hero--page {
  min-height: min(52vh, 460px);
  align-items: flex-end;
}
.hero--page .lede { max-width: 56ch; }

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.68);
}
.crumbs a { color: inherit; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, 0.3); }
.crumbs a:hover { color: #fff; border-color: #fff; }
.crumbs span[aria-current] { color: #fff; }

/* ---------- client logo strip ---------- */

.logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(1.75rem, 4vw, 3.25rem);
}
.logos__label { flex: none; width: 100%; }
.logos img {
  height: clamp(24px, 3.4vw, 34px);
  width: auto;
  filter: grayscale(1) contrast(0.95);
  opacity: 0.62;
  transition: opacity 0.25s var(--ease), filter 0.25s var(--ease);
}
.logos img:hover { opacity: 1; filter: none; }

@media (max-width: 720px) {
  .logos { justify-content: center; gap: 1.5rem 1.75rem; }
  .logos__label { text-align: center; }
  .logos img { height: 26px; }
}

/* ---------- overview (text left, tall photo right, facts strip under) ---------- */

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.intro__body { max-width: 34rem; }
.intro__media {
  position: relative;
  margin: 0;
  border-radius: var(--r);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--paper-2);
}
.intro__media img { width: 100%; height: 100%; object-fit: cover; }
.intro__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(200deg, rgba(15, 26, 40, 0) 55%, rgba(15, 26, 40, 0.35) 100%);
}

@media (max-width: 900px) {
  .intro { grid-template-columns: 1fr; gap: 2.25rem; }
  .intro__body { max-width: none; }
  .intro__media { aspect-ratio: 3 / 2; }
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 2.25rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}
.facts dt { margin-bottom: 0.45rem; }
.facts dd {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.facts small {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.813rem;
  font-weight: 400;
  line-height: 1.45;
  color: var(--ink-3);
  letter-spacing: 0;
}

.facts--strip {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: 2rem;
  gap: clamp(1.5rem, 4vw, 3.5rem);
}

@media (max-width: 720px) {
  .facts { grid-template-columns: 1fr; gap: 1.15rem; }
  .facts--strip { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
  .facts--strip dd { font-size: 1.05rem; }
  .facts--strip small { font-size: 0.75rem; }
}
@media (max-width: 520px) {
  .facts--strip { grid-template-columns: 1fr; gap: 1.15rem; }
}

/* ---------- service tiles (mixed size photo grid) ---------- */

.tiles {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(0.85rem, 1.6vw, 1.35rem);
}
.tile {
  position: relative;
  isolation: isolate;
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 17rem;
  padding: clamp(1.25rem, 2vw, 1.75rem);
  border-radius: var(--r);
  overflow: hidden;
  color: #fff;
  background: var(--deep);
  text-decoration: none;
}
.tile--wide { grid-column: span 3; min-height: 21rem; }
.tile img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(9, 15, 24, 0.12) 0%, rgba(9, 15, 24, 0.46) 34%,
    rgba(9, 15, 24, 0.86) 68%, rgba(9, 15, 24, 0.95) 100%);
  transition: background 0.35s var(--ease);
}
.tile:hover img { transform: scale(1.045); }
.tile:hover::after {
  background: linear-gradient(180deg, rgba(9, 15, 24, 0.2) 0%, rgba(9, 15, 24, 0.56) 32%,
    rgba(11, 18, 28, 0.9) 66%, rgba(11, 18, 28, 0.97) 100%);
}
.tile h3 { color: #fff; text-shadow: 0 1px 12px rgba(6, 10, 16, 0.55); }
.tile p {
  margin: 0.65rem 0 0;
  font-size: 0.938rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.8);
  max-width: 44ch;
}
.tile__more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.1rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
}
.tile__more svg { width: 0.95em; height: 0.95em; transition: transform 0.25s var(--ease); }
.tile:hover .tile__more svg { transform: translateX(3px); }
.tile::before {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.tile:hover::before { transform: scaleX(1); }

.tiles-after { margin-top: 2.25rem; }

@media (max-width: 900px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile, .tile--wide { grid-column: span 1; min-height: 15rem; }
}
@media (max-width: 560px) {
  .tiles { grid-template-columns: 1fr; }
  .tile, .tile--wide { min-height: 14rem; }
}

/* ---------- service index cards (services hub) ---------- */

.index-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr));
  gap: clamp(1.25rem, 2.4vw, 2rem);
}
.card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}
.card:hover {
  border-color: var(--line-2);
  transform: translateY(-3px);
  box-shadow: 0 26px 50px -34px rgba(15, 26, 40, 0.5);
}
.card__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--paper-2); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.card:hover .card__media img { transform: scale(1.04); }
.card__body { padding: clamp(1.35rem, 2vw, 1.75rem); display: flex; flex-direction: column; flex: 1; }
.card__body h3 a { text-decoration: none; }
.card__body h3 a::after { content: ""; position: absolute; inset: 0; }
.card { position: relative; }
.card__body p { margin: 0.75rem 0 0; color: var(--ink-2); font-size: 0.938rem; }
.card__body .link { margin-top: auto; padding-top: 1.35rem; align-self: flex-start; }

/* ---------- full bleed photo band ---------- */

.band {
  position: relative;
  isolation: isolate;
  color: #fff;
  background: var(--deep);
  padding-block: clamp(4rem, 8vw, 7rem);
}
.band__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%; height: 100%;
  object-fit: cover;
}
.band::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(8, 13, 21, 0.92) 0%, rgba(8, 13, 21, 0.74) 55%, rgba(8, 13, 21, 0.42) 100%);
}
.band h2 { color: #fff; }
.band .copy { color: rgba(255, 255, 255, 0.82); }
.band__body { max-width: 44rem; }

/* the split variant carries a second photo in its right column */
.band--split > .shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.62fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.band--split::after {
  background: linear-gradient(90deg, rgba(8, 13, 21, 0.94) 0%, rgba(8, 13, 21, 0.86) 48%, rgba(8, 13, 21, 0.62) 100%);
}
.band__figure {
  margin: 0;
  border-radius: var(--r);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 40px 70px -45px rgba(0, 0, 0, 0.9);
}
.band__figure img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 900px) {
  .band--split > .shell { grid-template-columns: 1fr; gap: 2.25rem; }
  .band__figure { aspect-ratio: 3 / 2; }
}

.checklist { display: grid; gap: 0.9rem; margin-top: 2rem; }
.checklist li {
  position: relative;
  padding-left: 1.9rem;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.975rem;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.55em;
  width: 0.85rem; height: 2px;
  background: var(--accent);
}
.checklist--ink li { color: var(--ink-2); }

/* ---------- hairline rows (commitments, covers) ---------- */

.rows { border-top: 1px solid var(--line); }
.row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: clamp(1rem, 3vw, 3rem);
  padding-block: clamp(1.65rem, 3vw, 2.4rem);
  border-bottom: 1px solid var(--line);
}
.row p { color: var(--ink-2); margin: 0; max-width: 62ch; }
@media (max-width: 720px) {
  .row { grid-template-columns: 1fr; gap: 0.7rem; }
}

/* ---------- split (two column content) ---------- */

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.split--media img { border-radius: var(--r); width: 100%; }
.split--offset > *:last-child { padding-top: clamp(0rem, 4vw, 3.5rem); }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split--offset > *:last-child { padding-top: 0; }
}

/* ---------- covers list (service pages) ---------- */

.covers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}
.covers li {
  display: flex;
  gap: 0.9rem;
  padding: 1.1rem 1.25rem 1.1rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 0.975rem;
}
.covers li::before {
  content: "";
  flex: none;
  width: 0.85rem; height: 2px;
  margin-top: 0.7em;
  background: var(--accent);
}
@media (max-width: 720px) { .covers { grid-template-columns: 1fr; } }

/* ---------- partner grid ---------- */

.partners {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  background: var(--surface);
}
.partners > * {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.5rem, 3vw, 2.5rem) 1.25rem;
  border-right: 1px solid var(--line);
  transition: background 0.25s var(--ease);
}
.partners > *:last-child { border-right: 0; }
.partners a:hover { background: var(--paper); }
.partners img {
  max-height: 46px;
  width: auto;
  filter: grayscale(1);
  opacity: 0.72;
  transition: opacity 0.25s var(--ease), filter 0.25s var(--ease);
}
.partners a:hover img { filter: none; opacity: 1; }
/* Five partners, so below the single row the grid folds to two rows of
   three and two, with the short row centred rather than left hanging. */
@media (max-width: 900px) {
  .partners { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .partners > * {
    grid-column: span 2;
    padding-inline: 0.75rem;
    border-right: 1px solid var(--line);
  }
  .partners > *:nth-child(3) { border-right: 0; }
  .partners > *:nth-child(4) { grid-column: 2 / span 2; border-top: 1px solid var(--line); }
  .partners > *:nth-child(5) { grid-column: 4 / span 2; border-top: 1px solid var(--line); border-right: 0; }
  .partners img { max-height: 38px; }
}
@media (max-width: 520px) {
  .partners > * { padding: 1.25rem 0.6rem; }
  .partners img { max-height: 30px; }
}

/* ---------- contact band ---------- */

.contact-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}
.contact-list .label { display: block; color: rgba(255, 255, 255, 0.6); }
.contact-list a, .contact-list span.mono {
  display: inline-block;
  margin-top: 0.5rem;
  color: #fff;
  text-decoration: none;
  font-size: 0.938rem;
}
.contact-list a:hover { border-bottom: 1px solid #fff; }
@media (max-width: 640px) { .contact-list { grid-template-columns: 1fr; gap: 1.15rem; } }

/* ---------- contact page ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.detail-list { border-top: 1px solid var(--line); }
.detail-list > div { padding-block: 1.15rem; border-bottom: 1px solid var(--line); }
.detail-list a, .detail-list span { display: block; margin-top: 0.35rem; text-decoration: none; font-size: 1.05rem; }
.detail-list a:hover { color: var(--accent-text); }

/* ---------- form ---------- */

.form {
  display: grid;
  gap: 1.35rem;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
}
.field { display: grid; gap: 0.5rem; }
.field label { font-size: 0.875rem; font-weight: 600; }
.field .hint { font-size: 0.813rem; color: var(--ink-3); }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.8rem 0.9rem;
  font-family: inherit;
  font-size: 0.975rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.field textarea { min-height: 8.5rem; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); }
.field input:focus, .field select:focus, .field textarea:focus {
  background: var(--surface);
  border-color: var(--ink);
  outline: 2px solid rgba(201, 64, 15, 0.35);
  outline-offset: 1px;
}
.field .error {
  display: none;
  font-size: 0.813rem;
  color: var(--accent-text);
  font-weight: 500;
}
.field[data-invalid="true"] input,
.field[data-invalid="true"] select,
.field[data-invalid="true"] textarea { border-color: var(--accent-text); }
.field[data-invalid="true"] .error { display: block; }
.field[data-invalid="true"] .hint { display: none; }

.form-duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.35rem; }
@media (max-width: 560px) { .form-duo { grid-template-columns: 1fr; } }

.form__submit { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.form__status { font-size: 0.9rem; color: var(--ink-2); }
.form__status[data-state="ok"] { color: var(--ink); font-weight: 600; }
.form__status[data-state="error"] { color: var(--accent-text); font-weight: 600; }

.btn[data-loading="true"] { pointer-events: none; opacity: 0.75; }
.btn[data-loading="true"] .btn__spinner { display: block; }
.btn__spinner {
  display: none;
  width: 0.95em; height: 0.95em;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- related services ---------- */

.related {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.75rem);
}
.related article {
  position: relative;
  padding: clamp(1.25rem, 2vw, 1.6rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.related article:hover { border-color: var(--line-2); transform: translateY(-2px); }
.related h3 { font-size: 1.05rem; }
.related h3 a { text-decoration: none; }
.related h3 a::after { content: ""; position: absolute; inset: 0; }
.related p { margin: 0.6rem 0 0; font-size: 0.9rem; color: var(--ink-2); }
@media (max-width: 860px) { .related { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */

.site-footer {
  background: var(--deep);
  color: rgba(255, 255, 255, 0.72);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
}
.footer-main {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 3.5rem);
}
.site-footer .brand img {
  height: 34px;
  filter: brightness(0) invert(1);
  opacity: 0.92;
}
.footer-main p { margin-top: 1.25rem; font-size: 0.9rem; max-width: 32ch; }
.site-footer h2 {
  font-size: 0.688rem;
  font-family: var(--mono);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.52);
  margin-bottom: 1.15rem;
}
.site-footer ul { display: grid; gap: 0.65rem; font-size: 0.9rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  justify-content: space-between;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.legal { margin: 0; font-size: 0.813rem; color: rgba(255, 255, 255, 0.55); }
/* On narrow screens the brand block runs full width and the two link
   columns sit side by side, so the footer never becomes one long stack. */
@media (max-width: 860px) {
  .footer-main { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.25rem 2rem; }
  .footer-main > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .footer-main > :last-child { grid-column: 1 / -1; }
  .site-footer ul { font-size: 0.875rem; }
}

/* ---------- motion ---------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
}
[data-reveal][data-shown="true"] {
  opacity: 1;
  transform: none;
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}
[data-reveal-delay="1"][data-shown="true"] { transition-delay: 0.08s; }
[data-reveal-delay="2"][data-shown="true"] { transition-delay: 0.16s; }
[data-reveal-delay="3"][data-shown="true"] { transition-delay: 0.24s; }

.rise { animation: rise 0.85s var(--ease) both; }
.rise-late { animation: rise 0.85s var(--ease) 0.12s both; }
@keyframes rise {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: none; }
}

.no-js [data-reveal] { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .tile:hover img, .card:hover .card__media img { transform: none; }
}

@media print {
  .site-header, .drawer, .btn-row, .band__media { display: none; }
  body { background: #fff; }
}
