/* ==========================================================================
   Split Pin Engineering styles
   Mobile-first. Base rules target small screens; min-width queries scale up.
   ========================================================================== */

:root {
  --steel-950: #0b0e10;
  --steel-900: #111518;
  --steel-850: #161b1f;
  --steel-800: #1c2227;
  --steel-700: #273038;
  --steel-600: #3a4550;
  --line: rgba(160, 180, 195, 0.14);
  --line-strong: rgba(160, 180, 195, 0.28);
  --text: #e9edf0;
  --muted: #9aa6b0;
  --accent: #ff6b1a;        /* safety orange */
  --accent-hover: #ff8540;
  --hazard: #ffc21a;        /* hazard yellow */
  --ok: #4fd18b;
  --sign-black: #141618;    /* sign board */
  --sign-white: #f4f4f2;    /* sign lettering */

  --font-logo: "Russo One", "Arial Black", system-ui, sans-serif;
  --font-wide: "Michroma", "Eurostile", "Arial Black", sans-serif;
  --font-display: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --gutter: 16px;
  --radius: 4px;
  --header-h: 64px;
  --max: 1200px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--steel-900);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }

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

.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 100;
  background: var(--accent); color: #000; padding: 10px 14px; font-weight: 700;
}
.skip-link:focus { top: 8px; }

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

/* Blueprint grid texture used on several sections */
.grid-bg {
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 32px 32px;
  background-position: -1px -1px;
}

.hazard-stripe {
  height: 8px;
  background: repeating-linear-gradient(-45deg, var(--hazard) 0 14px, var(--steel-950) 14px 28px);
}

/* ---------- Typography ---------- */

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.6rem, 11vw, 5.6rem); }
h2 { font-size: clamp(2rem, 7vw, 3.4rem); }
h3 { font-size: 1.5rem; }
p { margin: 0 0 1em; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.lead { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }
.accent { color: var(--accent); }
.mono { font-family: var(--font-mono); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px;
  font-family: var(--font-display); font-weight: 700; font-size: 1.15rem;
  letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none;
  border: 2px solid transparent; border-radius: var(--radius); cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { background: var(--accent); color: #111; }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-ghost { border-color: var(--line-strong); color: var(--text); background: rgba(11, 14, 16, .35); }
.btn-ghost:hover { border-color: var(--text); }
.btn-block { width: 100%; }

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

.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(17, 21, 24, .86);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }

.brand { display: flex; align-items: center; text-decoration: none; }

/* Logo lockup, recreated from the workshop sign:
   slanted heavy "SPLIT PIN" over a white "ENGINEERING" plate */
.logo { display: inline-flex; flex-direction: column; align-items: stretch; line-height: 1; color: var(--sign-white); }
.logo-name {
  font-family: var(--font-logo); font-size: 1.6rem; text-transform: uppercase; letter-spacing: 0.02em;
  transform: skewX(-10deg); white-space: nowrap;
}
.logo-plate {
  margin-top: 4px; padding: 3px 6px 2px; border-radius: 3px;
  background: var(--sign-white); color: var(--sign-black);
  font-family: var(--font-wide); font-size: 0.5rem; letter-spacing: 0.16em; -webkit-text-stroke: 0.04em currentColor; text-transform: uppercase; text-align: center;
}

/* Service line from the sign: white words separated by orange dots */
.dot-list { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 4px 18px; font-family: var(--font-body); font-weight: 600; font-size: 1rem; color: var(--sign-white); }
.dot-list li { display: inline-flex; align-items: center; gap: 8px; }
.dot-list li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; }

/* Full replica of the workshop sign */
.sign {
  container-type: inline-size;
  position: relative; display: grid; justify-items: center; gap: clamp(10px, 3vw, 18px);
  padding: clamp(28px, 7vw, 44px) clamp(16px, 5vw, 32px) clamp(24px, 6vw, 36px); border-radius: 6px; text-align: center; color: var(--sign-white);
  background:
    radial-gradient(circle at 14px 14px, #8d969c 0 3px, transparent 3.5px),
    radial-gradient(circle at calc(100% - 14px) 14px, #8d969c 0 3px, transparent 3.5px),
    radial-gradient(circle at 14px calc(100% - 14px), #8d969c 0 3px, transparent 3.5px),
    radial-gradient(circle at calc(100% - 14px) calc(100% - 14px), #8d969c 0 3px, transparent 3.5px),
    linear-gradient(160deg, #23282c 0%, var(--sign-black) 45%, #0d0f10 100%);
  border: 1px solid var(--line-strong);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .45);
}
.sign .logo { width: 82%; }
.sign .logo-name { font-size: 15cqw; }
.sign .logo-plate { margin-top: 2.5cqw; padding: 1.4cqw 0 1cqw; border-radius: 1.4cqw; font-size: 5.4cqw; letter-spacing: 0.08em; }
.sign .dot-list { justify-content: center; margin: 2cqw 0 0; gap: 1cqw 3.5cqw; font-size: 4.6cqw; font-weight: 500; }
.sign .dot-list li { gap: 1.6cqw; }
.sign .dot-list li::before { width: 1.5cqw; height: 1.5cqw; }
.sign-phone { font-family: var(--font-wide); font-size: 6.6cqw; letter-spacing: 0.04em; -webkit-text-stroke: 0.035em currentColor; }

.phone-wide { font-family: var(--font-wide); font-size: 0.95em; letter-spacing: 0.04em; }

.nav-toggle {
  width: 48px; height: 48px; display: grid; place-items: center;
  background: none; border: 1px solid var(--line-strong); border-radius: var(--radius); cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 22px; height: 2px; background: var(--text); position: relative; transition: transform .25s, background-color .25s;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-7px) rotate(-45deg); }

.site-nav {
  position: fixed; inset: var(--header-h) 0 auto 0;
  height: calc(100dvh - var(--header-h));
  background: var(--steel-950);
  padding: 24px var(--gutter);
  display: flex; flex-direction: column; gap: 4px; overflow-y: auto;
  opacity: 0; transform: translateY(-12px); visibility: hidden;
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
}
.nav-open .site-nav { opacity: 1; transform: none; visibility: visible; }
.site-nav a {
  font-family: var(--font-display); font-size: 2rem; font-weight: 700; text-transform: uppercase;
  text-decoration: none; padding: 10px 0; border-bottom: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: baseline;
}
.site-nav a .mono { font-size: 0.75rem; color: var(--muted); font-weight: 400; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--accent); }
.site-nav .btn { margin-top: 20px; font-size: 1.2rem; border-bottom: 0; justify-content: center; }
.site-nav a.btn { align-items: center; padding: 0 24px; }
.nav-open { overflow: hidden; }

/* ---------- Hero ---------- */

.hero {
  position: relative; isolation: isolate;
  min-height: calc(100svh - var(--header-h));
  display: flex; align-items: flex-end;
  padding: 96px 0 40px;
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(11,14,16,.45) 0%, rgba(11,14,16,.3) 22%, rgba(11,14,16,.88) 52%, rgba(11,14,16,.96) 80%, var(--steel-900) 100%);
}
.hero h1 { max-width: 12ch; }
.hero .lead { color: #c9d2d8; }
.hero h1, .hero .lead { text-shadow: 0 2px 18px rgba(0,0,0,.5); }
.hero-actions { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; }

.spec-strip {
  margin-top: 36px;
  display: grid; grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: rgba(11, 14, 16, .6);
}
.spec-strip div { padding: 14px 16px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.spec-strip div:nth-child(2n) { border-right: 0; }
.spec-strip div:nth-last-child(-n+2) { border-bottom: 0; }
.spec-strip dt { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.spec-strip dd { margin: 4px 0 0; font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; text-transform: uppercase; }

/* ---------- Sections ---------- */

.section { padding: 72px 0; position: relative; }
.section-alt { background-color: var(--steel-850); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { margin-bottom: 36px; }
.section-head .lead { margin-top: 8px; }

/* Services */
.services-grid { display: grid; gap: 14px; }
.service-card {
  position: relative; display: block; text-decoration: none;
  background: var(--steel-800); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 20px 20px;
  transition: border-color .2s, transform .2s;
}
.service-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.service-card::after { /* corner registration mark */
  content: ""; position: absolute; top: 10px; right: 10px; width: 10px; height: 10px;
  border-top: 2px solid var(--accent); border-right: 2px solid var(--accent); opacity: .7;
}
.service-card .ref { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.14em; color: var(--muted); }
.service-card svg { width: 40px; height: 40px; color: var(--accent); margin: 14px 0 12px; }
.service-card h3 { margin-bottom: 6px; }
.service-card p { color: var(--muted); margin: 0 0 14px; font-size: 1rem; }
.service-card .more { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }

/* Feature (about) */
.feature { display: grid; gap: 32px; align-items: center; }
.feature-media { position: relative; }
.feature-media img { border-radius: var(--radius); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.feature-media .dim { /* dimension-line annotation */
  position: absolute; left: 0; right: 0; bottom: -22px;
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 0.68rem; color: var(--muted); letter-spacing: 0.12em;
}
.feature-media .dim::before, .feature-media .dim::after { content: ""; flex: 1; height: 1px; background: var(--line-strong); }
.checklist { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist svg { width: 22px; height: 22px; color: var(--accent); flex: none; margin-top: 3px; }

/* Process */
.process { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; counter-reset: step; }
.process li { position: relative; padding: 0 0 28px 60px; }
.process li::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: 0; width: 44px; height: 44px; display: grid; place-items: center;
  font-family: var(--font-mono); font-size: 0.9rem; color: var(--accent);
  border: 1px solid var(--accent); border-radius: 50%; background: var(--steel-900);
}
.process li::after { content: ""; position: absolute; left: 22px; top: 48px; bottom: 4px; border-left: 1px dashed var(--line-strong); }
.process li:last-child::after { display: none; }
.process h3 { font-size: 1.35rem; margin: 8px 0 4px; }
.process p { color: var(--muted); margin: 0; }

/* ---------- Gallery ---------- */

.filters {
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
  margin: 0 calc(-1 * var(--gutter)) 24px; padding: 0 var(--gutter) 4px;
}
.filters::-webkit-scrollbar { display: none; }
.chip {
  flex: none; min-height: 44px; padding: 0 16px;
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--steel-800); border: 1px solid var(--line-strong); border-radius: 999px; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.chip .count { color: var(--muted); margin-left: 6px; }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #111; }
.chip[aria-pressed="true"] .count { color: rgba(0,0,0,.6); }

.gallery { columns: 2; column-gap: 8px; }
.gallery-item {
  break-inside: avoid; margin: 0 0 8px; position: relative; display: block; width: 100%;
  padding: 0; border: 0; background: var(--steel-800); border-radius: var(--radius); overflow: hidden; cursor: zoom-in;
}
.gallery-item img { width: 100%; height: auto; transition: transform .4s ease, opacity .3s; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item .tag {
  position: absolute; left: 6px; bottom: 6px; padding: 3px 7px;
  font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase;
  background: rgba(11,14,16,.82); color: var(--text); border-radius: 2px;
}
.gallery-item[hidden] { display: none; }
.gallery-more-wrap { display: flex; justify-content: center; margin-top: 24px; }
.gallery-more-wrap .btn { width: 100%; max-width: 320px; }
.gallery-more-wrap .btn[hidden] { display: none; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(6, 8, 9, .96);
  display: grid; grid-template-rows: auto 1fr auto;
  opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lb-top { display: flex; justify-content: space-between; align-items: center; padding: 10px var(--gutter); font-family: var(--font-mono); font-size: 0.8rem; color: var(--muted); }
.lb-stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 0 var(--gutter); touch-action: pan-y; }
.lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 2px; user-select: none; -webkit-user-drag: none; }
.lb-caption { padding: 14px var(--gutter) 22px; text-align: center; }
.lb-caption strong { display: block; font-family: var(--font-display); font-size: 1.35rem; text-transform: uppercase; }
.lb-caption span { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.lb-btn {
  width: 48px; height: 48px; display: grid; place-items: center;
  background: rgba(28,34,39,.85); border: 1px solid var(--line-strong); border-radius: 50%; cursor: pointer;
}
.lb-btn svg { width: 22px; height: 22px; }
.lb-btn:hover { border-color: var(--accent); color: var(--accent); }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); display: none; }
.lb-prev { left: 16px; } .lb-next { right: 16px; }

/* ---------- Contact ---------- */

.contact-grid { display: grid; gap: 32px; }
.contact-cards { display: grid; gap: 12px; }
.contact-card {
  display: flex; gap: 14px; align-items: center; text-decoration: none;
  padding: 16px; background: var(--steel-800); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .2s;
}
a.contact-card:hover { border-color: var(--accent); }
.contact-card svg { width: 26px; height: 26px; color: var(--accent); flex: none; }
.contact-card small { display: block; font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.contact-card strong { font-size: 1.1rem; word-break: break-word; }

.form {
  background: var(--steel-800); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 18px; display: grid; gap: 16px;
}
.form .ref { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.14em; color: var(--muted); display: flex; justify-content: space-between; border-bottom: 1px dashed var(--line-strong); padding-bottom: 12px; }
.field { display: grid; gap: 6px; }
.field label { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  font: inherit; font-size: 16px; /* prevents iOS zoom */
  color: var(--text); background: var(--steel-900);
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  transition: border-color .2s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.form-note { font-size: 0.85rem; color: var(--muted); margin: 0; }
.form-note a { color: var(--text); }

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

.site-footer { background: var(--steel-950); padding: 48px 0 28px; font-size: 0.95rem; }
.footer-grid { display: grid; gap: 28px; }
.site-footer h4 { font-family: var(--font-mono); font-size: 0.72rem; font-weight: 400; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { text-decoration: none; color: var(--text); }
.site-footer a:hover { color: var(--accent); }
.footer-base {
  margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 8px;
  font-family: var(--font-mono); font-size: 0.72rem; color: var(--muted); letter-spacing: 0.04em;
}

/* Mobile sticky call bar */
.call-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: grid; grid-template-columns: 1fr 1fr;
  background: var(--steel-950); border-top: 1px solid var(--line-strong);
  padding-bottom: env(safe-area-inset-bottom);
  transform: translateY(110%); transition: transform .3s;
}
.call-bar.is-visible { transform: none; }
.call-bar a {
  min-height: 56px; display: flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; text-transform: uppercase; letter-spacing: .05em; text-decoration: none;
}
.call-bar a:first-child { border-right: 1px solid var(--line); }
.call-bar a:last-child { background: var(--accent); color: #111; }
.call-bar svg { width: 20px; height: 20px; }
body.has-call-bar { padding-bottom: 56px; }

/* ---------- Inner pages ---------- */

.crumbs { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--accent); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.page-hero h1 { font-size: clamp(2.6rem, 10vw, 4.8rem); }
.section-tight { padding-top: 40px; }

.section-head-row { display: flex; flex-direction: column; gap: 16px; }

.work-strip { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.work-tile { position: relative; display: block; overflow: hidden; border-radius: var(--radius); background: var(--steel-800); }
.work-tile img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .4s ease; }
.work-tile:hover img { transform: scale(1.05); }
.work-tile .tag {
  position: absolute; left: 6px; bottom: 6px; padding: 3px 7px;
  font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase;
  background: rgba(11,14,16,.82); border-radius: 2px;
}

.cta-band {
  position: relative; overflow: hidden;
  display: grid; gap: 24px; padding: 32px 22px;
  background: var(--steel-800); border: 1px solid var(--line-strong); border-left: 4px solid var(--accent); border-radius: var(--radius);
}
.cta-band h2 { margin-bottom: 8px; }
.cta-band p:last-child { color: var(--muted); margin: 0; }
.cta-actions { display: flex; flex-direction: column; gap: 12px; }

.service-details { display: grid; gap: 48px; }
.service-detail { display: grid; gap: 20px; align-items: start; scroll-margin-top: calc(var(--header-h) + 24px); }
.service-detail-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line); }
.service-detail .checklist { margin-bottom: 24px; }
.service-detail h2 { font-size: clamp(1.8rem, 6vw, 2.4rem); }
.service-detail .lead { font-size: 1.05rem; }

.who-grid { display: grid; gap: 14px; }
.who { display: flex; gap: 14px; align-items: center; background: var(--steel-800); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }
.who img { width: 96px; height: 96px; object-fit: cover; border-radius: 2px; flex: none; }
.who h3 { font-size: 1.3rem; margin-bottom: 4px; }
.who p { margin: 0; color: var(--muted); font-size: 0.98rem; }

/* ---------- Legal page ---------- */

.page-hero { padding: 56px 0 32px; border-bottom: 1px solid var(--line); }
.page-hero p { color: var(--muted); }
.legal-layout { display: grid; gap: 32px; padding: 40px 0 72px; }
.toc { background: var(--steel-850); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.toc h2 { font-size: 1.1rem; font-family: var(--font-mono); letter-spacing: .12em; color: var(--muted); font-weight: 400; }
.toc ol { margin: 0; padding-left: 1.4em; display: grid; gap: 6px; }
.toc a { text-decoration: none; }
.toc a:hover { color: var(--accent); }
.legal { max-width: 75ch; }
.legal section { padding-bottom: 28px; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
.legal section:last-child { border-bottom: 0; }
.legal h2 { font-size: clamp(1.7rem, 6vw, 2.3rem); }
.legal h3 { font-size: 1.2rem; margin-top: 1.4em; color: var(--text); }
.legal p, .legal li { color: #c3ccd2; }
.legal ul, .legal ol { padding-left: 1.3em; margin: 0 0 1em; }
.legal li { margin-bottom: .4em; }
.legal a { color: var(--accent); }
.callout { border-left: 3px solid var(--hazard); background: var(--steel-850); padding: 14px 16px; margin: 0 0 1em; border-radius: 0 var(--radius) var(--radius) 0; }

/* ---------- Reveal animation ---------- */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   Larger screens
   ========================================================================== */

@media (min-width: 560px) {
  .hero-actions { flex-direction: row; }
  .spec-strip { grid-template-columns: repeat(4, 1fr); }
  .spec-strip div { border-bottom: 0; }
  .spec-strip div:nth-child(2n) { border-right: 1px solid var(--line); }
  .spec-strip div:last-child { border-right: 0; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .gallery { columns: 3; column-gap: 10px; }
  .gallery-item { margin-bottom: 10px; }
  .contact-cards { grid-template-columns: 1fr 1fr; }
  .work-strip { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .cta-actions { flex-direction: row; flex-wrap: wrap; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-base { flex-direction: row; justify-content: space-between; }
}

@media (min-width: 900px) {
  :root { --gutter: 32px; --header-h: 76px; }
  .hero { padding-bottom: 64px; }
  .hero::before { background: linear-gradient(90deg, rgba(11,14,16,.94) 0%, rgba(11,14,16,.75) 45%, rgba(11,14,16,.2) 100%), linear-gradient(180deg, transparent 70%, var(--steel-900) 100%); }
  .section { padding: 112px 0; }
  .services-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .feature { grid-template-columns: 1.05fr 1fr; gap: 64px; }
  .section-head-row { flex-direction: row; justify-content: space-between; align-items: flex-end; }
  .section-head-row h2 { margin-bottom: 0; }
  .work-strip { gap: 16px; }
  .cta-band { grid-template-columns: 1.4fr 1fr; align-items: center; padding: 48px; }
  .cta-actions { justify-content: flex-end; }
  .service-details { gap: 96px; }
  .service-detail { grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
  .service-detail.flip .service-detail-media { order: 2; }
  .who-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .who { flex-direction: column; align-items: stretch; padding: 0; overflow: hidden; }
  .who img { width: 100%; height: auto; aspect-ratio: 4 / 3; border-radius: 0; }
  .who div { padding: 4px 20px 20px; }
  .process { grid-template-columns: repeat(4, 1fr); gap: 24px; }
  .process li { padding: 64px 0 0; }
  .process li::after { left: 52px; right: -16px; top: 22px; bottom: auto; border-left: 0; border-top: 1px dashed var(--line-strong); }
  .gallery { columns: 4; column-gap: 12px; }
  .gallery-item { margin-bottom: 12px; }
  .filters { flex-wrap: wrap; overflow: visible; margin: 0 0 32px; padding: 0; }
  .lb-prev, .lb-next { display: grid; }
  .lb-stage { padding: 0 88px; }
  .contact-grid { grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: start; }
  .contact-cards { grid-template-columns: 1fr; }
  .form { padding: 28px; grid-template-columns: 1fr 1fr; }
  .form .ref, .form .field-wide, .form .btn, .form .form-note { grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .call-bar { display: none; }
  body.has-call-bar { padding-bottom: 0; }
  .legal-layout { grid-template-columns: 260px 1fr; gap: 56px; }
  .toc { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; }
}

/* Full desktop nav (needs more room now it has six links) */
@media (min-width: 1024px) {
  .nav-toggle { display: none; }
  .site-nav {
    position: static; height: auto; opacity: 1; transform: none; visibility: visible;
    background: none; padding: 0; flex-direction: row; align-items: center; gap: 24px; overflow: visible;
  }
  .site-nav a { font-size: 1.05rem; border: 0; padding: 6px 0; letter-spacing: .06em; }
  .site-nav a .mono { display: none; }
  .site-nav a.btn { min-height: 40px; margin: 0; padding: 0 16px; font-size: 0.95rem; letter-spacing: .06em; }
}

