/* ==========================================================================
   Tecc Oil — site styles
   Palette: brand orange on "transformer steel" graphite, warm paper sections.
   Type: Archivo (variable, wdth + wght) · IBM Plex Mono for technical labels.
   ========================================================================== */

@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-var-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/assets/fonts/ibm-plex-mono-500-latin.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink-950: #0a0d11;
  --ink-900: #0f141a;
  --ink-850: #131922;
  --ink-800: #18202a;
  --ink-700: #243040;
  --ink-600: #34414f;
  --ink-500: #4a5664;
  --ink-400: #6b7785;
  --ink-300: #98a3af;
  --ink-200: #c4ccd5;
  --ink-100: #e3e7eb;
  --paper: #f5f4f1;
  --paper-2: #ecebe6;
  --white: #ffffff;

  --orange: #f07322;        /* brand — fills, accents on dark */
  --orange-hi: #ff8a3d;     /* hover on dark */
  --orange-ink: #a84b0e;    /* orange text on light backgrounds (AA) */
  --ok: #3fae72;
  --alert: #f5a524;

  --logo-text: #4a5664;
  --logo-drop: #4a5664;
  --logo-hl: #9aa5b1;

  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --gutter: clamp(16px, 4vw, 40px);
  --max: 1240px;
  --radius: 4px;
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-800);
  background: var(--paper);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.08; color: var(--ink-950); }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
.prose ol { padding-left: 24px; margin: 0 0 1em; }
.prose ol li { margin-bottom: 8px; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 2px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--orange); color: var(--ink-950); padding: 10px 16px; font-weight: 700; border-radius: var(--radius); text-decoration: none; }
.skip-link:focus { top: 12px; }

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

/* ---------- Type helpers ---------- */
.display {
  font-stretch: 118%;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-weight: 500;
  font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--orange-ink);
  margin: 0 0 18px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; }
.on-dark .eyebrow { color: var(--orange); }
.h2 { font-size: clamp(32px, 4.6vw, 54px); }
.h3 { font-size: clamp(21px, 2vw, 25px); font-weight: 700; font-stretch: 105%; letter-spacing: -0.01em; }
.h2 + .lead { margin-top: 22px; }
.lead { font-size: clamp(18px, 1.6vw, 20.5px); line-height: 1.55; color: var(--ink-600); max-width: 62ch; }
.on-dark { color: var(--ink-200); }
.on-dark h1, .on-dark h2, .on-dark h3, .on-dark h4 { color: var(--white); }
.on-dark .lead { color: var(--ink-200); }
.mono { font-family: var(--mono); font-weight: 500; }
.muted { color: var(--ink-400); }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--orange); --fg: var(--ink-950); --bd: var(--orange);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px;
  background: var(--bg); color: var(--fg); border: 2px solid var(--bd);
  border-radius: var(--radius);
  font-weight: 700; font-size: 16px; font-stretch: 108%; letter-spacing: .01em;
  text-decoration: none; cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.btn:hover { --bg: var(--orange-hi); --bd: var(--orange-hi); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-ghost { --bg: transparent; --fg: var(--white); --bd: rgba(255,255,255,.28); }
.btn-ghost:hover { --bg: rgba(255,255,255,.06); --bd: var(--white); --fg: var(--white); }
.btn-outline { --bg: transparent; --fg: var(--ink-900); --bd: var(--ink-300); }
.btn-outline:hover { --bg: var(--ink-900); --fg: var(--white); --bd: var(--ink-900); }
.btn-sm { min-height: 42px; padding: 0 16px; font-size: 15px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--orange-ink); text-decoration: none; }
.link-arrow svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }
.on-dark .link-arrow { color: var(--orange); }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; text-decoration: none; }
.logo svg { height: 40px; width: auto; }
.lg-drop { fill: var(--logo-drop); }
.lg-hl { fill: var(--logo-hl); }
.lg-ring { stroke: var(--orange); }
.lg-tecc { stroke: var(--logo-text); }
.lg-oil { stroke: var(--orange); }
.logo-on-dark { --logo-text: #dfe4e9; --logo-drop: #8d98a4; --logo-hl: #d3d9df; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10, 13, 17, .92);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.07);
  transition: box-shadow .25s var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 8px 30px rgba(0,0,0,.35); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  position: relative; padding: 10px 14px;
  color: var(--ink-200); text-decoration: none; font-size: 15.5px; font-weight: 500;
  transition: color .2s;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--white); }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px; background: var(--orange); }
.header-actions { display: flex; align-items: center; gap: 18px; }
.header-phone { display: inline-flex; align-items: center; gap: 8px; color: var(--white); text-decoration: none; font-family: var(--mono); font-size: 14.5px; white-space: nowrap; }
.header-phone svg { width: 16px; height: 16px; color: var(--orange); }
.nav-toggle { display: none; width: 46px; height: 46px; border: 1px solid rgba(255,255,255,.2); background: transparent; border-radius: var(--radius); color: var(--white); cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-open .nav-toggle .icon-open { display: none; }
.nav-open .nav-toggle .icon-close { display: block; }

@media (max-width: 1080px) {
  .header-phone span { display: none; }
}
@media (max-width: 920px) {
  .nav-toggle { display: inline-flex; }
  .header-actions .btn { display: none; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ink-950); border-bottom: 1px solid rgba(255,255,255,.08);
    padding: 8px var(--gutter) 24px;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s .2s;
  }
  .nav a { padding: 16px 4px; font-size: 18px; border-bottom: 1px solid rgba(255,255,255,.07); }
  .nav a[aria-current="page"]::after { display: none; }
  .nav .nav-cta { display: flex; margin-top: 18px; border: 0; color: var(--ink-950); font-weight: 700; padding: 0; }
  .nav-open .nav { transform: none; opacity: 1; visibility: visible; transition: opacity .2s var(--ease), transform .2s var(--ease); }
}
@media (min-width: 921px) { .nav .nav-cta { display: none; } }
@media (max-width: 420px) { .logo svg { height: 34px; } .header-phone { display: none; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(240,115,34,.16), transparent 60%),
    linear-gradient(180deg, var(--ink-950) 0%, var(--ink-900) 100%);
  color: var(--ink-200);
  padding: clamp(56px, 8vw, 104px) 0 0;
}
.hero-wave { position: absolute; left: 0; right: 0; bottom: 70px; width: 100%; height: 220px; opacity: .6; pointer-events: none; -webkit-mask-image: linear-gradient(90deg, transparent 5%, #000 50%); mask-image: linear-gradient(90deg, transparent 5%, #000 50%); }
.hero-wave path { fill: none; stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.hero-wave .p1 { stroke: rgba(240,115,34,.55); }
.hero-wave .p2 { stroke: rgba(240,115,34,.28); }
.hero-wave .p3 { stroke: rgba(255,255,255,.12); }
.hero-wave .drift { animation: drift 24s linear infinite; }
@keyframes drift { to { transform: translateX(-400px); } }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(40px, 5.9vw, 80px); line-height: 1; color: var(--white); margin-bottom: 26px; }
.hero h1 .dim { display: block; margin-top: .18em; font-size: .62em; line-height: 1.05; color: var(--ink-400); }
.hero .lead { margin-bottom: 34px; }
.hero-ctas .btn svg { width: 18px; height: 18px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 40px; }
.proof { display: grid; grid-template-columns: repeat(3, auto); gap: 14px 28px; justify-content: start; list-style: none; padding: 22px 0 0; border-top: 1px solid rgba(255,255,255,.1); }
.proof li { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--ink-200); font-weight: 500; }
.proof svg { width: 20px; height: 20px; color: var(--orange); flex: none; }

.hero-media { position: relative; }
.frame { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--ink-800); box-shadow: 0 40px 80px -30px rgba(0,0,0,.7); }
.frame img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.ticks::before, .ticks::after { content: ""; position: absolute; width: 26px; height: 26px; border: 2px solid var(--orange); z-index: 2; pointer-events: none; }
.ticks::before { top: -10px; left: -10px; border-right: 0; border-bottom: 0; }
.ticks::after { bottom: -10px; right: -10px; border-left: 0; border-top: 0; }
.tag-card {
  position: absolute; left: -28px; bottom: 28px; z-index: 3; max-width: 300px;
  background: rgba(15, 20, 26, .94); border: 1px solid rgba(255,255,255,.12); border-left: 3px solid var(--orange);
  padding: 16px 18px; border-radius: var(--radius);
  box-shadow: 0 20px 40px -12px rgba(0,0,0,.6);
}
.tag-card .mono { display: block; font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--orange); margin-bottom: 6px; }
.tag-card p { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--ink-100); }

.clients { position: relative; margin-top: clamp(56px, 8vw, 96px); border-top: 1px solid rgba(255,255,255,.08); background: rgba(0,0,0,.18); }
.clients-inner { display: flex; align-items: center; gap: clamp(20px, 4vw, 48px); padding-top: 26px; padding-bottom: 26px; }
.clients-label { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-400); flex: none; max-width: 150px; line-height: 1.5; }
.clients-list { flex: 1; display: flex; align-items: center; justify-content: space-between; gap: clamp(18px, 3vw, 40px); list-style: none; flex-wrap: wrap; }
.clients-list img { height: 38px; width: auto; opacity: .7; transition: opacity .2s; }
.clients-list li:hover img { opacity: 1; }
.clients-list .c-harmony { height: 24px; }
.clients-list .c-glencore { height: 32px; }
.clients-list .c-sibanye { height: 36px; }
.clients-list .c-implats, .clients-list .c-petra { height: 40px; }
.clients-list .c-kalagadi { height: 44px; }

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { max-width: 520px; }
  .frame img { aspect-ratio: 4 / 3; }
  .tag-card { left: 16px; bottom: 16px; }
}
@media (max-width: 720px) {
  .proof { grid-template-columns: 1fr; }
  .clients-inner { flex-direction: column; align-items: flex-start; }
  .clients-label { max-width: none; }
  .clients-list { justify-content: flex-start; gap: 22px 30px; }
  .clients-list .c-harmony { height: 19px; }
  .clients-list .c-glencore { height: 26px; }
  .clients-list .c-sibanye { height: 29px; }
  .clients-list .c-implats, .clients-list .c-petra { height: 32px; }
  .clients-list .c-kalagadi { height: 35px; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section-dark { background: var(--ink-900); }
.section-paper2 { background: var(--paper-2); }
.section-white { background: var(--white); }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 64px; align-items: end; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head .lead { margin: 0; }
.section-head.stack { grid-template-columns: 1fr; max-width: 820px; }
@media (max-width: 860px) { .section-head { grid-template-columns: 1fr; } }

/* ---------- Service cards ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service-card {
  display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--paper-2); border-radius: var(--radius);
  overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -24px rgba(15,20,26,.35); }
.service-card .media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--ink-800); }
.service-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.service-card:hover .media img { transform: scale(1.04); }
.service-card .num { position: absolute; top: 14px; left: 14px; font-family: var(--mono); font-size: 12px; letter-spacing: .1em; color: var(--white); background: rgba(10,13,17,.78); padding: 5px 9px; border-radius: 2px; }
.service-card .body { display: flex; flex-direction: column; flex: 1; padding: 28px 28px 30px; }
.service-card .icon { width: 44px; height: 44px; margin: -50px 0 18px; position: relative; z-index: 1; display: grid; place-items: center; background: var(--orange); color: var(--ink-950); border-radius: var(--radius); box-shadow: 0 8px 20px -6px rgba(240,115,34,.6); }
.service-card .icon svg { width: 22px; height: 22px; }
.service-card h3 { margin-bottom: 12px; }
.service-card p { color: var(--ink-500); font-size: 16px; }
.checks { list-style: none; margin: 4px 0 26px; display: grid; gap: 9px; }
.checks li { position: relative; padding-left: 26px; font-size: 15.5px; color: var(--ink-700); line-height: 1.45; }
.checks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 14px; height: 14px; border-radius: 2px; background: var(--orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%230a0d11' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; }
.on-dark .checks li { color: var(--ink-200); }
.card-links { margin-top: auto; display: flex; flex-wrap: wrap; gap: 8px 22px; }
@media (max-width: 980px) { .services-grid { grid-template-columns: 1fr; max-width: 640px; } }

.chain { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-family: var(--mono); font-size: 13px; color: var(--ink-500); }
.chain span { padding: 6px 10px; border: 1px solid var(--ink-200); border-radius: 2px; background: var(--white); }
.chain i { font-style: normal; color: var(--orange-ink); }

/* ---------- Approach ---------- */
.approach-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: start; }
.steps { list-style: none; counter-reset: step; display: grid; gap: 0; }
.steps li { position: relative; padding: 0 0 34px 72px; }
.steps li:last-child { padding-bottom: 0; }
.steps li::before {
  counter-increment: step; content: "0" counter(step);
  position: absolute; left: 0; top: -4px; width: 48px; height: 48px;
  display: grid; place-items: center;
  font-family: var(--mono); font-size: 14px; color: var(--orange);
  border: 1px solid rgba(240,115,34,.5); border-radius: 50%;
  background: var(--ink-900);
}
.steps li::after { content: ""; position: absolute; left: 24px; top: 48px; bottom: 4px; width: 1px; background: linear-gradient(var(--ink-600), transparent); }
.steps li:last-child::after { display: none; }
.steps h3 { font-size: 21px; margin-bottom: 8px; font-stretch: 105%; }
.steps p { margin: 0; color: var(--ink-300); font-size: 16px; }

.result-card { margin: 0; background: var(--ink-850); border: 1px solid var(--ink-700); border-radius: 6px; overflow: hidden; box-shadow: 0 40px 80px -40px rgba(0,0,0,.8); }
.rc-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 16px 22px; border-bottom: 1px solid var(--ink-700); font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-300); }
.rc-head b { color: var(--white); font-weight: 500; }
.rc-body { padding: 8px 22px 22px; }
.reading { padding: 18px 0; border-bottom: 1px dashed var(--ink-700); }
.reading-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.reading-name { color: var(--white); font-weight: 600; font-size: 16px; }
.reading-name small { display: block; font-family: var(--mono); font-size: 11.5px; color: var(--ink-400); font-weight: 500; letter-spacing: .04em; margin-top: 2px; }
.reading-val { font-family: var(--mono); font-size: 22px; color: var(--white); white-space: nowrap; }
.reading-val small { font-size: 13px; color: var(--ink-300); margin-left: 4px; }
.gauge { position: relative; height: 8px; border-radius: 4px; background: var(--ink-700); }
.gauge .fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; }
.gauge .limit { position: absolute; top: -6px; bottom: -6px; width: 2px; background: var(--white); }
.gauge-legend { display: flex; justify-content: space-between; margin-top: 10px; font-family: var(--mono); font-size: 12px; color: var(--ink-400); }
.status { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 12px; letter-spacing: .04em; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status.ok { color: var(--ok); }
.status.alert { color: var(--alert); }
/* Scales: dielectric 0–70 kV (53.3 → 76%, limit 50 → 71.4%); moisture 0–26 mg/kg (21.2 → 81.5%, limit 20 → 76.9%) */
.fill-dielectric { background: var(--ok); width: 76.1%; }
.limit-dielectric { left: 71.4%; }
.fill-moisture { background: var(--alert); width: 81.5%; }
.limit-moisture { left: 76.9%; }
.rc-action { margin-top: 18px; display: flex; gap: 14px; align-items: flex-start; padding: 16px; background: rgba(240,115,34,.08); border: 1px solid rgba(240,115,34,.3); border-radius: var(--radius); }
.rc-action svg { width: 22px; height: 22px; color: var(--orange); flex: none; margin-top: 2px; }
.rc-action p { margin: 0; font-size: 15px; color: var(--ink-100); }
.rc-action b { display: block; color: var(--white); margin-bottom: 2px; }
.rc-note { margin: 14px 0 0; font-size: 13px; color: var(--ink-400); }
@media (max-width: 980px) { .approach-grid { grid-template-columns: 1fr; } }

.tests { margin-top: clamp(56px, 7vw, 88px); display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink-700); border-left: 1px solid var(--ink-700); }
.test { padding: 24px 24px 26px; border-right: 1px solid var(--ink-700); border-bottom: 1px solid var(--ink-700); }
.test .mono { display: block; font-size: 12px; color: var(--orange); letter-spacing: .06em; margin-bottom: 10px; }
.test h3 { font-size: 18px; margin-bottom: 6px; font-stretch: 104%; }
.test p { margin: 0; font-size: 15px; color: var(--ink-300); line-height: 1.5; }
@media (max-width: 900px) { .tests { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .tests { grid-template-columns: 1fr; } }

/* ---------- Pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 2px solid var(--ink-900); }
.pillar { padding: 30px 28px 8px 0; }
.pillar + .pillar { padding-left: 28px; border-left: 1px solid var(--ink-200); }
.pillar svg { width: 34px; height: 34px; color: var(--orange-ink); margin-bottom: 22px; }
.pillar h3 { font-size: 20px; margin-bottom: 10px; font-stretch: 105%; }
.pillar p { margin: 0; color: var(--ink-500); font-size: 16px; }
@media (max-width: 980px) {
  .pillars { grid-template-columns: 1fr 1fr; }
  .pillar:nth-child(3) { padding-left: 0; border-left: 0; }
  .pillar:nth-child(n+3) { border-top: 1px solid var(--ink-200); }
}
@media (max-width: 600px) {
  .pillars { grid-template-columns: 1fr; }
  .pillar, .pillar + .pillar { padding-left: 0; border-left: 0; }
  .pillar + .pillar { border-top: 1px solid var(--ink-200); }
}

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 230px; grid-auto-flow: dense; gap: 12px; list-style: none; }
.gallery li { position: relative; }
.gallery .wide { grid-column: span 2; }
.gallery .tall { grid-row: span 2; }
.gallery button { all: unset; box-sizing: border-box; display: block; width: 100%; height: 100%; cursor: zoom-in; position: relative; overflow: hidden; border-radius: var(--radius); background: var(--ink-800); }
.gallery button:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery button:hover img { transform: scale(1.05); }
.gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 16px 14px;
  background: linear-gradient(transparent, rgba(10,13,17,.88));
  color: var(--white); font-size: 14.5px; font-weight: 600; line-height: 1.35;
}
.gallery figure { margin: 0; height: 100%; position: relative; }
.gallery figcaption { pointer-events: none; border-radius: 0 0 var(--radius) var(--radius); }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 190px; } }
@media (max-width: 520px) { .gallery { grid-auto-rows: 150px; gap: 8px; } .gallery figcaption { font-size: 13px; padding: 30px 10px 10px; } }

.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(6, 8, 11, .96); color: var(--white); }
.lightbox::backdrop { background: rgba(6, 8, 11, .9); }
.lightbox[open] { display: grid; grid-template-rows: 1fr auto; }
.lb-stage { display: grid; place-items: center; padding: 64px 72px 12px; min-height: 0; }
.lb-stage img { max-width: 100%; max-height: calc(100vh - 150px); width: auto; height: auto; object-fit: contain; border-radius: 2px; }
.lb-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 24px 22px; }
.lb-caption { margin: 0; font-size: 15px; color: var(--ink-100); }
.lb-count { font-family: var(--mono); font-size: 13px; color: var(--ink-400); white-space: nowrap; }
.lb-btn { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); background: rgba(0,0,0,.4); color: var(--white); cursor: pointer; transition: background .2s, border-color .2s; }
.lb-btn:hover { background: var(--orange); border-color: var(--orange); color: var(--ink-950); }
.lb-btn svg { width: 22px; height: 22px; }
.lb-close { top: 14px; right: 16px; }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) { .lb-stage { padding: 64px 8px 8px; } .lb-prev, .lb-next { top: auto; bottom: 70px; transform: none; } }

/* ---------- Industries ---------- */
.industries { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.industry { position: relative; padding: 36px; border-radius: var(--radius); background: var(--ink-900); color: var(--ink-200); overflow: hidden; }
.industry h3 { color: var(--white); font-size: 26px; margin-bottom: 12px; font-stretch: 110%; }
.industry p { color: var(--ink-300); margin-bottom: 18px; }
.industry .chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.industry .chips li { font-family: var(--mono); font-size: 12.5px; padding: 6px 10px; border: 1px solid var(--ink-600); border-radius: 2px; color: var(--ink-100); }
.industry::after { content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border: 1px solid rgba(240,115,34,.3); border-radius: 50%; box-shadow: 0 0 0 24px rgba(240,115,34,.05), 0 0 0 48px rgba(240,115,34,.03); }
@media (max-width: 860px) { .industries { grid-template-columns: 1fr; } }

/* ---------- About / rating plate ---------- */
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(40px, 6vw, 88px); align-items: start; }
.about-copy h2 { margin-bottom: 26px; }
.about-copy p:not(.eyebrow) { color: var(--ink-600); font-size: 18px; max-width: 60ch; }
.plate {
  position: relative; background: linear-gradient(160deg, #e9eaec, #d6d9dd); color: var(--ink-900);
  border: 1px solid #b9bfc6; border-radius: 6px; padding: 26px 26px 20px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 30px 60px -30px rgba(15,20,26,.45);
}
.plate::before, .plate::after, .plate .rivets::before, .plate .rivets::after {
  content: ""; position: absolute; width: 10px; height: 10px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff, #9aa3ac 60%, #6b7480);
}
.plate::before { top: 10px; left: 10px; } .plate::after { top: 10px; right: 10px; }
.plate .rivets::before { bottom: 10px; left: 10px; } .plate .rivets::after { bottom: 10px; right: 10px; }
.plate-title { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 0 8px 14px; margin-bottom: 4px; border-bottom: 2px solid var(--ink-900); }
.plate-title span { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.plate dl { margin: 0; padding: 0 8px; }
.plate dl div { display: grid; grid-template-columns: 130px 1fr; gap: 12px; padding: 11px 0; border-bottom: 1px solid rgba(15,20,26,.18); }
.plate dl div:last-child { border-bottom: 0; }
.plate dt { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-500); padding-top: 2px; }
.plate dd { margin: 0; font-weight: 600; font-size: 16px; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .plate dl div { grid-template-columns: 1fr; gap: 2px; } }

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.faq { border-top: 1px solid var(--ink-200); }
.faq details { border-bottom: 1px solid var(--ink-200); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 0; font-weight: 700; font-size: 18.5px; font-stretch: 104%; color: var(--ink-950);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--ink-300); background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 3v10M3 8h10' stroke='%23a84b0e' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center / 14px no-repeat; transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--orange-ink); }
.faq .faq-a { padding: 0 48px 24px 0; color: var(--ink-600); }
.faq .faq-a p:last-child { margin-bottom: 0; }
@media (max-width: 900px) { .faq-wrap { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; background: var(--orange); color: var(--ink-950); }
.cta-band .container { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 32px; padding-top: clamp(48px, 6vw, 72px); padding-bottom: clamp(48px, 6vw, 72px); }
.cta-band h2 { font-size: clamp(28px, 3.6vw, 44px); color: var(--ink-950); max-width: 18ch; }
.cta-band p { margin: 12px 0 0; font-size: 18px; max-width: 52ch; color: #2a1a0e; }
.cta-band .btn { --bg: var(--ink-950); --fg: var(--white); --bd: var(--ink-950); flex: none; }
.cta-band .btn:hover { --bg: var(--ink-800); --bd: var(--ink-800); }
.cta-band svg.wave { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .13; pointer-events: none; }
.cta-band svg.wave path { fill: none; stroke: var(--ink-950); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
@media (max-width: 820px) { .cta-band .container { flex-direction: column; align-items: flex-start; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(40px, 6vw, 88px); align-items: start; }
.contact-list { list-style: none; display: grid; gap: 0; margin-top: 36px; border-top: 1px solid var(--ink-700); }
.contact-list li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; padding: 20px 0; border-bottom: 1px solid var(--ink-700); }
.contact-list .ci { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--ink-600); border-radius: var(--radius); color: var(--orange); }
.contact-list .ci svg { width: 20px; height: 20px; }
.contact-list .k { display: block; font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-400); margin-bottom: 2px; }
.contact-list a, .contact-list address { color: var(--white); text-decoration: none; font-style: normal; font-size: 17px; font-weight: 500; }
.contact-list a:hover { color: var(--orange); }
.contact-list .sub { display: block; font-size: 14px; color: var(--ink-400); margin-top: 2px; }

.form { background: var(--ink-850); border: 1px solid var(--ink-700); border-radius: 6px; padding: clamp(22px, 3vw, 36px); }
.form h3 { color: var(--white); font-size: 22px; margin-bottom: 6px; }
.form > p { color: var(--ink-300); font-size: 15px; margin-bottom: 24px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 600; color: var(--ink-100); }
.field label .opt { font-weight: 400; color: var(--ink-400); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  background: var(--ink-950); color: var(--white);
  border: 1px solid var(--ink-600); border-radius: var(--radius);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%2398a3af' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 16px; padding-right: 40px; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-500); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(240,115,34,.25); }
.field input:user-invalid, .field textarea:user-invalid { border-color: #e5484d; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-top: 22px; }
.form-foot small { color: var(--ink-400); font-size: 13px; max-width: 40ch; }
.form-foot small a { color: var(--ink-200); }
.form .btn[disabled] { opacity: .6; cursor: progress; }
.form-status { display: none; margin-top: 18px; padding: 14px 16px; border-radius: var(--radius); font-size: 15px; }
.form-status.show { display: block; }
.form-status.success { background: rgba(63,174,114,.12); border: 1px solid rgba(63,174,114,.45); color: #c9f0da; }
.form-status.error { background: rgba(245,165,36,.1); border: 1px solid rgba(245,165,36,.45); color: #fde7c2; }
.form-status a { color: var(--white); font-weight: 600; }
@media (max-width: 980px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-950); color: var(--ink-300); padding: clamp(56px, 7vw, 80px) 0 28px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid var(--ink-800); }
.footer-brand p { margin: 18px 0 0; max-width: 34ch; }
.footer-tagline { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--orange); margin-top: 14px !important; }
.site-footer h2 { font-size: 13px; font-family: var(--mono); font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-400); margin-bottom: 16px; }
.site-footer ul { list-style: none; display: grid; gap: 10px; }
.site-footer a { color: var(--ink-200); text-decoration: none; }
.site-footer a:hover { color: var(--orange); }
.site-footer address { font-style: normal; line-height: 1.7; }
.footer-contact { margin-top: 14px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; font-size: 13.5px; color: var(--ink-400); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Inner pages ---------- */
.page-hero { position: relative; overflow: hidden; background: radial-gradient(900px 500px at 90% -20%, rgba(240,115,34,.16), transparent 60%), var(--ink-950); padding: clamp(48px, 7vw, 88px) 0 clamp(48px, 7vw, 80px); }
.page-hero .hero-wave { bottom: -50px; height: 200px; opacity: .45; }
.breadcrumb { position: relative; display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin-bottom: 26px; font-family: var(--mono); font-size: 12.5px; letter-spacing: .04em; color: var(--ink-400); }
.breadcrumb a { color: var(--ink-300); text-decoration: none; }
.breadcrumb a:hover { color: var(--orange); }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: var(--ink-600); }
.page-hero-grid { position: relative; display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(32px, 5vw, 64px); align-items: end; }
.page-hero h1 { font-size: clamp(38px, 5.6vw, 68px); color: var(--white); margin-bottom: 22px; }
.page-hero .lead { margin-bottom: 30px; }
.page-hero .frame img { aspect-ratio: 4 / 3; }
@media (max-width: 900px) { .page-hero-grid { grid-template-columns: 1fr; } .page-hero .hero-media { max-width: 520px; } }

.article-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(40px, 6vw, 80px); align-items: start; }
.prose { max-width: 72ch; }
.prose h2 { font-size: clamp(26px, 3vw, 34px); font-stretch: 110%; font-weight: 800; letter-spacing: -0.01em; margin: 56px 0 18px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 20px; margin: 32px 0 10px; font-stretch: 104%; }
.prose p, .prose li { color: var(--ink-600); font-size: 17.5px; }
.prose ul:not(.checks) { padding-left: 22px; margin: 0 0 1em; }
.prose ul:not(.checks) li { margin-bottom: 6px; }
.prose .checks li { font-size: 17px; }
.prose a { color: var(--orange-ink); font-weight: 600; }
.spec { width: 100%; border-collapse: collapse; margin: 8px 0 24px; font-size: 15.5px; background: var(--white); border: 1px solid var(--paper-2); }
.spec th, .spec td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--paper-2); vertical-align: top; }
.spec th { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-500); background: var(--paper); }
.spec td:first-child { font-weight: 600; color: var(--ink-900); white-space: nowrap; }
.spec td code { font-family: var(--mono); font-size: 13.5px; color: var(--orange-ink); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
/* Phones: stack each row (name, method, explanation) instead of squeezing three columns */
@media (max-width: 600px) {
  .spec, .spec tbody, .spec tr, .spec td { display: block; width: 100%; }
  .spec thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .spec tr { padding: 16px 18px; border-bottom: 1px solid var(--paper-2); }
  .spec tr:last-child { border-bottom: 0; }
  .spec td { padding: 0; border: 0; }
  .spec td:first-child { white-space: normal; margin-bottom: 6px; }
  .spec td + td { margin-top: 4px; }
}
.callout { margin: 28px 0; padding: 20px 22px; background: var(--white); border-left: 3px solid var(--orange); border-radius: 0 var(--radius) var(--radius) 0; }
.callout p { margin: 0; color: var(--ink-700); }
.aside { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 16px; }
.aside-card { background: var(--ink-900); color: var(--ink-200); border-radius: 6px; padding: 26px; }
.aside-card h2 { color: var(--white); font-size: 21px; margin-bottom: 10px; font-stretch: 106%; }
.aside-card p { font-size: 15.5px; color: var(--ink-300); }
.aside-card .btn { width: 100%; margin-top: 6px; }
.aside-card .phone { display: block; margin-top: 16px; text-align: center; font-family: var(--mono); color: var(--white); text-decoration: none; }
.aside-links { background: var(--white); border: 1px solid var(--paper-2); border-radius: 6px; padding: 22px 24px; }
.aside-links h2 { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-500); margin-bottom: 10px; }
.aside-links ul { list-style: none; }
.aside-links a { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--paper-2); text-decoration: none; font-weight: 600; color: var(--ink-800); }
.aside-links li:last-child a { border-bottom: 0; }
.aside-links a:hover { color: var(--orange-ink); }
.aside-links a svg { width: 16px; height: 16px; flex: none; align-self: center; }
.aside-links a[aria-current="page"] { color: var(--orange-ink); }
/* minmax(0, 1fr), not 1fr: a plain 1fr column grows to fit its widest content (the spec tables), pushing text off-screen on phones */
@media (max-width: 980px) { .article-grid { grid-template-columns: minmax(0, 1fr); } .aside { position: static; } }

.legal .prose h2 { font-size: 24px; margin-top: 40px; }

.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 96px 0; }
.notfound .code { font-family: var(--mono); color: var(--orange); letter-spacing: .2em; margin-bottom: 16px; }
.notfound h1 { font-size: clamp(36px, 5vw, 60px); color: var(--white); margin-bottom: 16px; }
.notfound .hero-ctas { justify-content: center; }
.notfound .lead { margin-left: auto; margin-right: auto; }

/* ---------- Reveal on scroll (enabled by JS only for below-the-fold content) ---------- */
.reveal-ready { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal-ready.is-visible { opacity: 1; transform: none; }

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

@media print {
  .site-header, .cta-band, .form, .lightbox, .hero-wave { display: none !important; }
  body { background: #fff; }
}
