/* ===================================================================
   LLD Precision — light & precise
   Palette tokens live here; nothing below hardcodes a color.
   =================================================================== */

:root {
  /* Surfaces */
  --bg: #ffffff;
  --bg-alt: #f6f8fb;
  --surface: #ffffff;
  --surface-2: #f1f5f9;

  /* Ink */
  --text: #0f172a;
  --text-2: #475569;
  --muted: #64748b;

  /* Bright orange. It is the dominant colour: every fill, bar, mark and
     button uses it. The one thing it cannot do is sit as small text on
     white (#ff7a1a is 2.6:1), so --accent-text is a deeper orange used
     only for inline text on light backgrounds. Buttons take dark text
     rather than white, which keeps them bright AND readable. */
  --accent: #ff7a1a;          /* fills, bars, marks — the brand colour */
  --accent-hover: #ff6a00;
  --accent-on: #1a1208;       /* text ON bright orange — 7.1:1 */
  --accent-text: #c2410c;     /* orange text on white — 5.2:1 */
  --accent-bright: #ff9442;   /* lifts on dark surfaces */
  --accent-soft: #fff2e6;
  --accent-ink: #7c2d12;      /* 8.4:1 on --accent-soft */

  /* Lines */
  --line: #e2e8f0;
  --line-strong: #cbd5e1;

  /* Feedback */
  --danger: #b42318;
  --danger-soft: #fef3f2;

  --radius: 10px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow-md: 0 4px 16px rgba(15, 23, 42, .08);
  --shadow-lg: 0 12px 32px rgba(15, 23, 42, .10);

  --maxw: 1200px;
  --nav-h: 72px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* height:auto is load-bearing. Every <img> carries width/height attributes
   (they prevent layout shift); without height:auto the attribute height
   sticks while max-width squeezes the width, giving a tall box that
   object-fit then crops the sides off. It also disables aspect-ratio,
   which only applies when one dimension is auto. */
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* Sticky nav would otherwise cover anchor targets */
[id] { scroll-margin-top: calc(var(--nav-h) + 16px); }

h1, h2, h3 { letter-spacing: -0.021em; font-weight: 700; }

/* Visible keyboard focus everywhere; mouse clicks stay clean */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 16px; top: -56px; z-index: 100;
  background: var(--accent); color: var(--accent-on);
  padding: 10px 18px; border-radius: 0 0 8px 8px;
  font-size: .9rem; font-weight: 600;
  transition: top .15s;
}
.skip-link:focus { top: 0; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
@media (max-width: 560px) { .container { padding: 0 16px; } }

/* ---------------------------------------------------- shared type */

.eyebrow {
  margin: 0 0 14px;
  font-size: .75rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent-text);
}

.lede { font-size: 1.125rem; color: var(--text-2); max-width: 62ch; }

.sub { color: var(--muted); max-width: 64ch; margin: 10px auto 0; }

.muted { color: var(--muted); }

.inline-link {
  display: inline-block;
  color: var(--accent-text); font-weight: 600; font-size: .94rem;
  border-bottom: 1px solid transparent;
  transition: border-color .15s, color .15s;
}
.inline-link:hover { color: var(--accent-hover); border-bottom-color: currentColor; }

/* ---------------------------------------------------------- NAV */

.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; height: var(--nav-h);
}

.brand { display: inline-flex; align-items: baseline; gap: 7px; flex: none; }
.brand-mark {
  font-weight: 800; font-size: 1.1rem; letter-spacing: -.03em;
  color: var(--accent);
}
.brand-name { font-weight: 600; font-size: 1.1rem; letter-spacing: -.02em; color: var(--text); }

.nav nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nav nav a {
  padding: 8px 12px; border-radius: 7px;
  font-size: .92rem; font-weight: 500; color: var(--text-2);
  transition: color .15s, background .15s;
}
.nav nav a:hover { color: var(--text); background: var(--surface-2); }
.nav nav a[aria-current="page"] { color: var(--accent-text); font-weight: 600; }

@media (max-width: 860px) {
  .nav-inner { height: auto; padding: 14px 0; flex-wrap: wrap; gap: 10px; }
  .nav nav { gap: 2px; }
  .nav nav a { padding: 7px 9px; font-size: .86rem; }
}

/* -------------------------------------------------------- BUTTONS */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px;
  border: 1px solid transparent; border-radius: 8px;
  font-size: .95rem; font-weight: 600; font-family: inherit;
  cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s, box-shadow .15s, transform .08s;
}
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--accent); color: var(--accent-on); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--accent-hover); color: var(--accent-on); box-shadow: var(--shadow-md); }

.btn-outline { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn-outline:hover { border-color: var(--text); background: var(--surface-2); }

.btn-ghost {
  background: var(--accent-soft); color: var(--accent-ink);
  padding: 9px 16px; font-size: .9rem;
}
.btn-ghost:hover { background: var(--accent); color: var(--accent-on); }

/* ---------------------------------------------------------- HERO */

.hero { padding: 88px 0 0; background: var(--bg); }

.hero-inner {
  display: grid; grid-template-columns: 1.15fr .85fr;
  gap: 56px; align-items: end;
}
.hero h1 {
  font-size: clamp(2.3rem, 5vw, 3.7rem);
  line-height: 1.05; margin: 0 0 20px;
}
.hero .lede { margin: 0 0 32px; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* Stat rail — thin rules, no boxes */
.hero-stats {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 0;
  border-top: 1px solid var(--line);
}
.hero-stats li {
  display: flex; flex-direction: column; gap: 2px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.hero-stats strong {
  font-size: 1.6rem; font-weight: 700; letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.hero-stats span { font-size: .84rem; color: var(--muted); }


/* ------------------------------------------------------- SECTIONS */

.section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
@media (max-width: 700px) { .section { padding: 60px 0; } }

.section-head { max-width: 760px; margin: 0 auto 48px; text-align: center; }
.section-head h2 {
  font-size: clamp(1.75rem, 3.2vw, 2.4rem);
  line-height: 1.15; margin: 0;
}
.section-head .inline-link { margin-top: 18px; }

/* ---------------------------------------------------------- GRIDS */

.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------- CARDS */


/* -------------------------------------------------------- GALLERY */

.gallery figure {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color .18s, box-shadow .18s;
}
.gallery figure:hover { border-color: var(--line-strong); box-shadow: var(--shadow-md); }
.gallery img {
  aspect-ratio: 4 / 3; object-fit: cover; width: 100%;
  transition: transform .4s ease;
}
.gallery figure:hover img { transform: scale(1.03); }
.gallery figcaption {
  padding: 16px 18px;
  font-size: .88rem; color: var(--text-2);
  border-top: 1px solid var(--line);
}

/* ------------------------------------------------------- SUBPAGES */

.page-hero {
  padding: 72px 0 56px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.1; margin: 0 0 16px;
}
.page-hero .lede { margin: 0; }

.breadcrumb { font-size: .82rem; color: var(--muted); margin: 0 0 20px; }
.breadcrumb a { color: var(--text-2); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { margin: 0 8px; color: var(--line-strong); }

.prose { max-width: 70ch; }
.prose h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 0 0 16px; line-height: 1.2; }
.prose h3 { color: var(--text); margin: 30px 0 8px; font-size: 1.08rem; }
.prose p { color: var(--text-2); }
.prose ul { color: var(--text-2); padding-left: 20px; margin: 12px 0; }
.prose li { margin: 7px 0; }
.prose strong { color: var(--text); font-weight: 600; }

.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 36px; } }

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.panel h3 { margin: 0 0 16px; font-size: 1rem; }

/* ---------------------------------------------------------- TABLES */

.table-scroll { overflow-x: auto; }

.spec {
  width: 100%; border-collapse: collapse; font-size: .92rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.spec caption {
  text-align: left; color: var(--muted); font-size: .85rem; padding: 0 0 12px;
}
.spec th, .spec td {
  padding: 13px 16px; text-align: left;
  border-bottom: 1px solid var(--line);
}
.spec thead th {
  background: var(--surface-2); color: var(--text);
  font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 600;
}
.spec tbody th { font-weight: 600; color: var(--text); width: 42%; }
.spec td { color: var(--text-2); font-variant-numeric: tabular-nums; }
.spec tbody tr:last-child th, .spec tbody tr:last-child td { border-bottom: none; }

/* ----------------------------------------------------------- STEPS */

.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; gap: 20px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 42px 1fr; gap: 18px; }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  color: var(--accent-text); font-weight: 700; font-size: .9rem;
  font-variant-numeric: tabular-nums;
  background: var(--accent-soft);
  border-radius: 9px;
  display: grid; place-items: center;
  height: 42px;
}
.steps h3 { margin: 0 0 3px; font-size: 1rem; }
.steps p { margin: 0; color: var(--text-2); font-size: .92rem; }

/* ---------------------------------------------------- CERT CARDS */


/* -------------------------------------------------------- CTA BAND */

.cta-band {
  padding: 80px 0;
  text-align: center;
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
}
.cta-band h2 { margin: 0 0 12px; font-size: clamp(1.5rem, 3vw, 2.2rem); line-height: 1.15; }
.cta-band p { color: var(--text-2); max-width: 54ch; margin: 0 auto 26px; }

/* --------------------------------------------------------- CONTACT */

.contact { padding: 88px 0; }
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
@media (max-width: 900px) { .contact-inner { grid-template-columns: 1fr; gap: 36px; } }

.contact h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1.15; margin: 0 0 14px; }

.contact-list { list-style: none; padding: 0; margin: 32px 0 0; border-top: 1px solid var(--line); }
.contact-list li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 14px 0; border-bottom: 1px solid var(--line);
  font-size: .95rem;
}
.contact-list strong { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 600; }
.contact-list a { color: var(--accent-text); font-weight: 500; }
.contact-list a:hover { color: var(--accent-hover); text-decoration: underline; }

/* ------------------------------------------------------------ FORM */

.contact-form {
  background: var(--surface);
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  display: grid; gap: 18px;
}
.contact-form .field { display: grid; gap: 7px; }
.contact-form label { font-size: .85rem; font-weight: 500; color: var(--text); }
.contact-form .req { color: var(--accent); }

.contact-form input, .contact-form textarea {
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 11px 13px;
  color: var(--text);
  font-family: inherit; font-size: .95rem;
  transition: border-color .15s, box-shadow .15s;
}
.contact-form input::placeholder, .contact-form textarea::placeholder { color: #94a3b8; }
.contact-form input:focus, .contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.contact-form input[aria-invalid="true"],
.contact-form textarea[aria-invalid="true"] { border-color: var(--danger); }
.contact-form input[aria-invalid="true"]:focus,
.contact-form textarea[aria-invalid="true"]:focus {
  box-shadow: 0 0 0 3px var(--danger-soft);
}
.contact-form button[disabled] { opacity: .65; cursor: progress; }

.field-error { margin: 0; font-size: .82rem; color: var(--danger); font-weight: 500; }

.form-status { margin: 0; font-size: .9rem; font-weight: 500; }
.form-status.is-ok { color: #087443; }
.form-status.is-warn { color: #b54708; }
.form-status.is-err { color: var(--danger); }

/* honeypot: off-screen but still focusable by bots, never display:none */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------------------------------------------------------- FOOTER */

.footer { padding: 48px 0; border-top: 1px solid var(--line); background: var(--bg); }
.footer-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 24px;
}
.footer-inner > div { display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap; }
.footer p { margin: 0; font-size: .88rem; color: var(--muted); }
.footer-inner > div p { flex-basis: 100%; margin-top: 4px; }

.footer-nav { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: .9rem; }
.footer-nav a { color: var(--text-2); }
.footer-nav a:hover { color: var(--accent); }

@media (max-width: 700px) {
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 18px; }
}

/* --------------------------- pre-launch flags (delete with content) */

.todo {
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  padding: 12px 16px; margin: 20px 0 0;
  font-size: .86rem; color: var(--accent-ink);
  border-radius: 0 8px 8px 0;
}
.todo strong { font-weight: 700; }

/* A section-head inside a narrow split column reads badly centered */
.split .section-head {
  text-align: left;
  max-width: none;
  margin: 0 0 28px;
}
.split .section-head .sub { margin-left: 0; margin-right: 0; }

/* ===================================================================
   SERVICES DROPDOWN
   The toggle is a real link to services.html; main.js upgrades it to a
   disclosure button, so the menu still works if the script never runs.
   =================================================================== */

.nav-item { position: relative; }

.nav-toggle { display: inline-flex; align-items: center; gap: 6px; }
.nav-toggle .caret { transition: transform .18s; flex: none; }
.nav-toggle[aria-expanded="true"] .caret { transform: rotate(180deg); }
.nav-toggle[aria-expanded="true"] { color: var(--text); background: var(--surface-2); }

.nav-menu {
  position: absolute; top: calc(100% + 10px); left: 0; z-index: 60;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 10px;
  display: grid; grid-template-columns: repeat(2, minmax(190px, 1fr));
  gap: 2px;
}
.nav-menu[hidden] { display: none; }

/* These sit inside .nav nav, so the nav link rules need overriding */
.nav .nav-menu a {
  padding: 9px 12px; border-radius: 7px;
  font-size: .9rem; font-weight: 500; color: var(--text-2);
  white-space: nowrap;
}
.nav .nav-menu a:hover { background: var(--accent-soft); color: var(--accent-ink); }

.nav .nav-menu .nav-menu-all {
  grid-column: 1 / -1;
  margin-top: 6px; padding-top: 12px;
  border-top: 1px solid var(--line);
  border-radius: 0;
  color: var(--accent); font-weight: 600;
}
.nav .nav-menu .nav-menu-all:hover { background: transparent; color: var(--accent-hover); }

@media (max-width: 860px) {
  /* Static block on small screens — a floating panel has nowhere to go */
  .nav-item { position: static; }
  .nav-menu {
    position: static; margin: 8px 0 4px;
    box-shadow: none; width: 100%;
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  .nav-menu { grid-template-columns: 1fr; }
  .nav .nav-menu a { white-space: normal; }
}

/* ===================================================================
   SERVICES PAGE
   =================================================================== */

/* Jump links — eight services is a lot to scroll past blindly */
.service-index {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
}
.service-index a {
  display: flex; flex-direction: column; gap: 4px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: .94rem; font-weight: 600; color: var(--text);
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.service-index a:hover {
  border-color: var(--accent); box-shadow: var(--shadow-sm); transform: translateY(-2px);
}
.service-index span {
  font-size: .72rem; font-weight: 700; letter-spacing: .1em;
  color: var(--accent-text); font-variant-numeric: tabular-nums;
}
@media (max-width: 980px) { .service-index { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .service-index { grid-template-columns: 1fr; } }

/* Alternating image side keeps eight stacked rows from marching */
.service-row .split { align-items: center; }
.service-row:nth-of-type(even) .service-media { order: -1; }

.service-media {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 3;
}
.service-media img { width: 100%; height: 100%; object-fit: cover; }

.service-row .prose h2 { margin-top: 0; }
.service-row .prose .eyebrow { margin-bottom: 10px; }

@media (max-width: 900px) {
  /* Stacked: image always leads, so the order flip must be undone */
  .service-row:nth-of-type(even) .service-media { order: 0; }
}

/* Business address — <address> defaults to italic, which is wrong here */
.footer-addr {
  flex-basis: 100%;
  font-style: normal;
  font-size: .86rem;
  color: var(--muted);
  margin: 2px 0 0;
}

/* Contact values sit opposite their label, so they read better right-aligned */
.contact-list li > span,
.contact-list li > a { text-align: right; }

/* Click-to-reveal contact details */
.reveal { text-align: right; }
.reveal-btn {
  font: inherit; font-size: .88rem; font-weight: 600;
  color: var(--accent-text);
  background: var(--accent-soft);
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 4px 13px;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.reveal-btn:hover { background: var(--accent); color: var(--accent-on); }
.reveal a { color: var(--accent-text); font-weight: 500; }
.reveal a:hover { color: var(--accent-hover); text-decoration: underline; }
/* no-JS fallback text */
.reveal noscript { font-size: .92rem; color: var(--text-2); }

/* ===================================================================
   ENGINEERING-DRAWING LAYER
   The visual language is borrowed from the shop's own drawings:
   blueprint grid, registration marks, dimension rules, and a mono face
   for anything that is a measurement. Decoration that means something.
   =================================================================== */

:root {
  --font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --grid-line: rgba(255, 122, 26, .09);
  --grid-size: 38px;
}

/* ------------------------------------------- mono for every measurement */

.eyebrow,
.breadcrumb,
.hero-stats strong,
.spec thead th,
.cert .badge,
.service-index span,
.steps li::before,
.contact-list strong,
.footer-addr {
  font-family: var(--font-mono);
  font-feature-settings: 'tnum' 1;
}
.eyebrow { letter-spacing: .1em; font-weight: 500; }
.hero-stats strong { letter-spacing: -.03em; font-weight: 600; }

/* --------------------------------------------- blueprint grid backdrop */

.hero, .page-hero { position: relative; isolation: isolate; }
.hero::before, .page-hero::before {
  content: '';
  position: absolute; inset: 0;
  z-index: -1;
  background-image:
    repeating-linear-gradient(0deg, var(--grid-line) 0 1px, transparent 1px var(--grid-size)),
    repeating-linear-gradient(90deg, var(--grid-line) 0 1px, transparent 1px var(--grid-size));
  /* fades out downward so the grid never competes with the copy */
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 92%);
          mask-image: linear-gradient(to bottom, #000 0%, transparent 92%);
}

/* ----------------------------------------------------- nav: machined edge */

.nav { border-bottom: none; box-shadow: 0 1px 0 var(--line); }
.nav::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent 42%);
  opacity: .5;
}

/* ------------------------------------------------------------- hero type */

.hero h1 {
  font-size: clamp(2.4rem, 5.6vw, 4.1rem);
  line-height: 1.01;
  letter-spacing: -.035em;
}
/* tick-marked rule under the eyebrow, like a scale on a drawing */
.hero .eyebrow { position: relative; padding-bottom: 16px; }
.hero .eyebrow::after {
  content: '';
  position: absolute; left: 0; bottom: 0; width: 96px; height: 7px;
  border-left: 1px solid var(--accent);
  border-right: 1px solid var(--accent);
  border-bottom: 1px solid var(--accent);
  opacity: .55;
}

.hero-stats li { position: relative; padding-left: 16px; }
.hero-stats li::before {
  content: '';
  position: absolute; left: 0; top: 22px; width: 7px; height: 1px;
  background: var(--accent);
}


/* ------------------------------------------- dimension rule on section heads */

.section-head { position: relative; padding-top: 26px; }
.section-head::before {
  content: '';
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 72px; height: 9px;
  border-left: 1px solid var(--line-strong);
  border-right: 1px solid var(--line-strong);
}
.section-head::after {
  content: '';
  position: absolute; top: 4px; left: 50%; transform: translateX(-50%);
  width: 72px; height: 1px; background: var(--line-strong);
}
/* left-aligned variant inside split columns */
.split .section-head::before,
.split .section-head::after { left: 0; transform: none; }

/* ------------------------------------------------------------------ cards */


/* ---------------------------------------------------------------- gallery */

.gallery figure { position: relative; }
.gallery figcaption { position: relative; }
.gallery figcaption::before {
  content: '';
  position: absolute; top: -1px; left: 0; height: 1px; width: 0;
  background: var(--accent);
  transition: width .32s ease;
}
.gallery figure:hover figcaption::before { width: 100%; }

/* ------------------------------------------------------------- spec tables */

.spec tbody tr { transition: background .15s; }
.spec tbody tr:hover { background: var(--accent-soft); }

/* ------------------------------------------------------- buttons: motion */

.btn-primary::after, .btn-outline::after { content: '\2192'; transition: transform .2s; }
.btn-primary:hover::after, .btn-outline:hover::after { transform: translateX(3px); }
.btn-ghost::after { content: none; }

/* ---------------------------------------------------- service index numbers */

.service-index a { position: relative; overflow: hidden; }
.service-index a::after {
  content: '';
  position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--accent); transition: width .3s ease;
}
.service-index a:hover::after { width: 100%; }

/* ------------------------------------------------------- scroll reveal
   Only applies once the head script has set .js, so with scripting off
   nothing is ever left invisible. */

.js .section-head,
.js .row,
.js .gallery figure,
.js .panel,
.js .steps li,
.js .service-index a,
.js .table-scroll,
.js .hero-copy,
.js .hero-stats,
.js .service-media,
.js .service-row .prose {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .55s ease, transform .55s ease;
}
.js .is-in { opacity: 1 !important; transform: none !important; }

@media (prefers-reduced-motion: reduce) {
  .js .section-head, .js .row, .js .gallery figure, .js .panel, .js .steps li,
  .js .service-index a, .js .table-scroll, .js .hero-copy, .js .hero-stats,
  .js .service-media, .js .service-row .prose {
    opacity: 1; transform: none; transition: none;
  }
}

/* ===================================================================
   PRESENCE PASS
   The page was reading flat: a white hero on a white page, with image
   slots that were near-white boxes. This gives it weight — a dark,
   image-led hero and dark bands that frame the light content between.
   =================================================================== */

:root {
  /* No dark surfaces. Warm tints carry the orange instead. */
  --warm-50: #fffaf5;   /* faint warm wash  */
  --warm-100: #fff4ea;  /* CTA band, hero   */
  --warm-200: #ffe6d2;  /* hairlines on warm */
  --media-bg: #f4ece4;  /* behind images while they load */
}

/* ----------------------------------------------------------- light hero */

.hero {
  position: relative;
  isolation: isolate;
  padding: 72px 0 0;
  min-height: 0;
  display: block;
  background: linear-gradient(180deg, var(--warm-100), var(--warm-50) 62%);
  overflow: hidden;
}
/* faint blueprint grid, warm and barely there */
.hero::before {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  background-image:
    repeating-linear-gradient(0deg, rgba(255,122,26,.07) 0 1px, transparent 1px 38px),
    repeating-linear-gradient(90deg, rgba(255,122,26,.07) 0 1px, transparent 1px 38px);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 86%);
          mask-image: linear-gradient(to bottom, #000 0%, transparent 86%);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: 56px;
  align-items: center;
  padding-bottom: 48px;
}
.hero-copy { max-width: 62ch; }

/* The render sits beside the copy so the right half is not dead space.
   Its own background is a pale gradient, so it needs no panel behind it. */
.hero-aside {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  background: var(--media-bg);
}
.hero-aside img { width: 100%; height: auto; display: block; }

.hero h1 {
  color: var(--text);
  font-size: clamp(2.3rem, 4.6vw, 3.9rem);
  line-height: 1.02;
  letter-spacing: -.035em;
  margin: 0 0 20px;
}
.hero .lede { color: var(--text-2); font-size: 1.14rem; margin: 0 0 32px; max-width: 52ch; }
.hero .eyebrow { color: var(--accent-text); }
.hero .eyebrow::after { border-color: var(--accent); opacity: .9; }

/* Full-bleed band. The figure sits outside .container and is widened to
   the viewport, and the ratio matches the file exactly (1836 x 857), so
   the whole photograph is shown rather than cropped into a box. */
.hero-figure {
  position: relative;
  margin: 0;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  aspect-ratio: 1836 / 857;
  background: var(--media-bg);
  overflow: hidden;
  /* Dissolve the top and bottom edges into the page instead of cutting a
     hard rectangle out of it. */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 11%, #000 86%, transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 0%, #000 11%, #000 86%, transparent 100%);
}
/* The photograph is a cool blue-sky shot on a warm page. Easing the
   saturation and laying a warm wash over it brings it into the palette
   without draining the colour out of it. */
.hero-figure img { filter: saturate(.82) contrast(1.02); }
.hero-figure::after {
  content: '';
  position: absolute; inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(255, 244, 234, .72) 0%, rgba(255, 244, 234, 0) 34%),
    linear-gradient(to top,    rgba(255, 244, 234, .80) 0%, rgba(255, 244, 234, 0) 30%),
    linear-gradient(to bottom, rgba(255, 170, 90, .10), rgba(255, 170, 90, .10));
}
.hero-figure img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* a hairline of accent along the top edge, and a soft fade into the page */



/* stat rail: hairlines, no panel */
.hero-stats {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.hero-stats li {
  padding: 22px 0 22px 24px;
  border-left: 1px solid var(--line);
  border-bottom: none;
  display: flex; flex-direction: column; gap: 2px;
}
.hero-stats li:first-child { border-left: none; padding-left: 0; }
.hero-stats li::before { content: none; }
.hero-stats strong {
  color: var(--text);
  font-size: clamp(1.3rem, 2.4vw, 1.9rem);
  font-family: var(--font-mono);
  font-weight: 600; letter-spacing: -.03em;
}
.hero-stats span { color: var(--muted); font-size: .82rem; }

@media (max-width: 900px) {
  .hero { padding-top: 48px; }
  .hero-inner { grid-template-columns: 1fr; gap: 32px; padding-bottom: 32px; }
  .hero-aside { max-width: 460px; }
  /* 2.14:1 is a letterbox slit on a phone; crop to something usable */
  .hero-figure { aspect-ratio: 16 / 10; }
  .hero-stats { grid-template-columns: 1fr; }
  .hero-stats li { border-left: none; padding: 14px 0; border-top: 1px solid var(--line); }
  .hero-stats li:first-child { border-top: none; }
}

/* ------------------------------------------- dark bands for rhythm */

.cta-band {
  background: var(--warm-100);
  border-top: 1px solid var(--warm-200);
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(0deg, rgba(255,122,26,.07) 0 1px, transparent 1px 38px),
    repeating-linear-gradient(90deg, rgba(255,122,26,.07) 0 1px, transparent 1px 38px);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000, transparent 72%);
          mask-image: radial-gradient(ellipse at 50% 0%, #000, transparent 72%);
}
.cta-band .container { position: relative; }
.cta-band h2 { color: var(--text); font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
.cta-band p { color: var(--text-2); }

.footer { background: var(--bg-alt); border-top: 1px solid var(--line); color: var(--text); }
.footer .brand-name { color: var(--text); }
.footer .brand-mark { color: var(--accent-text); }
.footer p, .footer .muted, .footer-addr { color: var(--muted); }
.footer-nav a { color: var(--text-2); }
.footer-nav a:hover { color: var(--accent-text); }

/* --------------------------------- cards now hold dark blueprint art */

.gallery img, .service-media img { background: var(--media-bg); }

/* ------------------------------------------------- bigger section type */

.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); letter-spacing: -.03em; }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); letter-spacing: -.035em; }
.prose h2 { font-size: clamp(1.6rem, 2.9vw, 2.2rem); letter-spacing: -.03em; }

/* ===================================================================
   EDITORIAL ROWS
   Replaces the bordered card grid. Hairline-divided rows, a mono index
   number, large heading, and the image reduced to an accent rather than
   the structure — which also stops the page depending on photography
   that does not exist yet.
   =================================================================== */

.rows {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.row {
  display: grid;
  grid-template-columns: 58px 1fr auto;   /* auto collapses to 0 with no media */
  align-items: center;
  gap: 28px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}

.row-num {
  font-family: var(--font-mono);
  font-size: .82rem;
  font-weight: 600;
  color: var(--accent-text);
  font-variant-numeric: tabular-nums;
  align-self: start;
  padding-top: .35em;
}

.row-text h3 {
  margin: 0 0 7px;
  font-size: clamp(1.15rem, 1.9vw, 1.45rem);
  letter-spacing: -.022em;
  transition: color .18s;
}
.row-text p {
  margin: 0;
  color: var(--text-2);
  max-width: 64ch;
  font-size: .97rem;
}
.row-text .badge {
  display: inline-block;
  margin-bottom: 9px;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--accent-ink);
  background: var(--accent-soft);
  padding: 4px 10px;
  border-radius: 999px;
}

.row-media {
  margin: 0;
  width: 230px;
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  overflow: hidden;
  background: var(--media-bg);
}
.row-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.row:hover .row-text h3 { color: var(--accent-text); }
.row:hover .row-media img { transform: scale(1.045); }

@media (max-width: 860px) {
  .row {
    grid-template-columns: 40px 1fr;
    gap: 6px 16px;
    padding: 24px 0;
  }
  .row-media {
    grid-column: 2;
    width: 100%;
    max-width: 320px;
    margin-top: 16px;
  }
}

/* ------------------------------------------- gallery: grid, minus the box */

.gallery figure {
  background: transparent;
  border: none;
  border-radius: 0;
  overflow: visible;
}
.gallery figure:hover { box-shadow: none; }
.gallery img {
  border-radius: 12px;
  background: var(--media-bg);
}
.gallery figcaption {
  border-top: none;
  padding: 14px 2px 0;
  font-size: .92rem;
  color: var(--text-2);
}
.gallery figcaption::before { content: none; }

/* Row titles can be links (homepage services point at the detail page) */
.row-text h3 a { color: inherit; }
.row-text h3 a:hover { color: var(--accent-text); }


/* A portrait photo in the 4:3 slot would lose most of the subject, so the
   frame takes a near-portrait ratio instead of cropping the image. */
.row-media.is-portrait { aspect-ratio: 3 / 4; }
