/* ==========================================================================
   PYTHON DOWNHOLE TOOLS — Interim Landing Page
   Design system + components

   Structure:
     01  Fonts
     02  Design tokens
     03  Reset & base
     04  Typography
     05  Layout utilities
     06  Buttons & links
     07  Header / navigation
     08  Hero
     09  Credential bar
     10  Sections (statement, services, PXRT, edge, obstacles, regions)
     11  Contact & form
     12  Footer
     13  Legal pages
     14  Motion
     15  Print
   ========================================================================== */


/* ==========================================================================
   01  FONTS
   Brand typography per the playbook:
     Headers  — Space Grotesk, all caps
     Body     — Archivo, sentence case
     Eyebrow  — Archivo Medium, all caps
     CTA      — Archivo Bold, all caps
   Self-hosted so the page makes zero third-party requests.
   ========================================================================== */

@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/space-grotesk-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/space-grotesk-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}


/* ==========================================================================
   02  DESIGN TOKENS
   Every colour, space and type value the page uses lives here. Change a token,
   change it everywhere — this is what makes the file portable into the full
   site later.
   ========================================================================== */

:root {
  /* --- Brand palette (Python Marketing Playbook, Section 03) --- */
  --oil:            #1E1618;  /* anchor: dark surfaces and body type   */
  --oil-900:        #171113;  /* deeper than Oil, for layered darks    */
  --oil-800:        #2A2124;  /* raised surfaces on dark               */
  --oil-700:        #3A2F32;  /* hairlines on dark                     */
  --earth:          #A06647;  /* secondary accent — swatch / non-text  */
  /* Earth at brand value is 4.19:1 on Dust, just under AA. This slightly
     deeper cut of the same hue reads as the same colour and passes at
     4.97:1 on Dust / 5.54:1 on White. Use it for any Earth-coloured text. */
  --earth-text:     #96593B;
  --yellow:         #F1C316;  /* brand yellow, sampled from logo art   */
  --yellow-dim:     #C9A213;  /* yellow that passes AA on light bg     */
  --dust:           #F5F2EE;  /* page background                       */
  --dust-dark:      #E7E1D9;  /* hairlines on light                    */
  --white:          #FFFFFF;

  /* --- Derived text colours (all checked for WCAG AA) --- */
  --ink:            var(--oil);
  --ink-muted:      #5B4F52;                    /* 7.1:1 on Dust  */
  --ink-invert:     #FFFFFF;
  --ink-invert-mut: rgba(255, 255, 255, 0.72);  /* 8.9:1 on Oil   */

  /* --- Type --- */
  --font-head: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Archivo", ui-sans-serif, system-ui, -apple-system, sans-serif;

  /* Fluid scale. clamp() means no layout jumps between breakpoints. */
  --fs-hero:  clamp(2.25rem, 1.55rem + 3.1vw, 4.25rem);
  --fs-h2:    clamp(1.6rem, 1.25rem + 1.55vw, 2.75rem);
  --fs-h3:    clamp(1.15rem, 1.02rem + 0.55vw, 1.5rem);
  --fs-lead:  clamp(1.06rem, 0.98rem + 0.38vw, 1.3rem);
  --fs-body:  1rem;
  --fs-small: 0.875rem;
  --fs-eyebrow: 0.75rem;

  /* --- Spacing --- */
  --space-2xs: 0.5rem;
  --space-xs:  0.75rem;
  --space-sm:  1rem;
  --space-md:  1.5rem;
  --space-lg:  2.5rem;
  --space-xl:  4rem;
  --space-2xl: clamp(4rem, 2.5rem + 6vw, 8rem);

  /* --- Layout --- */
  --container: 1200px;
  --container-narrow: 780px;
  --gutter: clamp(1rem, 0.7rem + 2vw, 3rem);
  --header-h: 76px;

  /* --- Other --- */
  --radius: 2px;   /* industrial: near-square, never pill-shaped */
  --border-light: 1px solid var(--dust-dark);
  --border-dark:  1px solid var(--oil-700);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}


/* ==========================================================================
   03  RESET & BASE
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Anchor targets clear the sticky header. */
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  background: var(--dust);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img,
picture,
svg { display: block; max-width: 100%; }

img { height: auto; }

/* Skip link — first tab stop for keyboard and screen-reader users. */
.skip-link {
  position: absolute;
  left: var(--space-sm);
  top: -100%;
  z-index: 999;
  padding: 0.75rem 1.25rem;
  background: var(--yellow);
  color: var(--oil);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--fs-small);
  text-decoration: none;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: var(--space-sm); }

/* One consistent, high-contrast focus ring everywhere. */
:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}
.on-dark :focus-visible { outline-color: var(--yellow); }


/* ==========================================================================
   04  TYPOGRAPHY
   ========================================================================== */

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 500;
  text-transform: uppercase;
  line-height: 1.04;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: var(--fs-hero); }
h2 { font-size: var(--fs-h2); }
h3 {
  font-size: var(--fs-h3);
  line-height: 1.2;
  letter-spacing: 0.005em;
}

p { margin: 0 0 var(--space-sm); text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

.lead {
  font-size: var(--fs-lead);
  line-height: 1.55;
  color: var(--ink-muted);
  max-width: 62ch;
}
.on-dark .lead { color: var(--ink-invert-mut); }

/* Eyebrow — Archivo Medium, all caps, wide tracking. */
.eyebrow {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--fs-eyebrow);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--earth-text);
  margin: 0 0 var(--space-sm);
}
.on-dark .eyebrow { color: var(--yellow); }

/* The short yellow rule that sits under section headings. */
.rule {
  width: 56px;
  height: 3px;
  background: var(--yellow);
  border: 0;
  margin: var(--space-md) 0 0;
}

.emph { color: var(--yellow-dim); }
.on-dark .emph { color: var(--yellow); }

a { color: inherit; }


/* ==========================================================================
   05  LAYOUT UTILITIES
   ========================================================================== */

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

.section { padding-block: var(--space-2xl); }
.section--tight { padding-block: var(--space-xl); }

.section--dark {
  background: var(--oil);
  color: var(--ink-invert);
}
.section--darker { background: var(--oil-900); color: var(--ink-invert); }

.section-head { max-width: 68ch; margin-bottom: var(--space-xl); }

.grid { display: grid; gap: var(--space-md); }

@media (min-width: 720px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 980px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
}

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


/* ==========================================================================
   06  BUTTONS
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 52px;              /* comfortable touch target */
  padding: 0.9rem 1.75rem;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--fs-small);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s var(--ease),
              color 0.18s var(--ease),
              border-color 0.18s var(--ease),
              transform 0.18s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

/* Primary — brand yellow on Oil type. High contrast in both contexts. */
.btn--primary {
  background: var(--yellow);
  color: var(--oil);
  border-color: var(--yellow);
}
.btn--primary:hover { background: #FFD43B; border-color: #FFD43B; }

/* Secondary on dark */
.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.4);
}
.btn--ghost:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

/* Secondary on light */
.btn--outline {
  background: transparent;
  color: var(--oil);
  border-color: var(--oil);
}
.btn--outline:hover { background: var(--oil); color: var(--white); }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-top: var(--space-lg);
}

/* Inline text link with an animated underline. */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  font-size: var(--fs-small);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--oil);
  border-bottom: 2px solid var(--yellow);
  padding-bottom: 2px;
  transition: gap 0.18s var(--ease);
}
.link-arrow:hover { gap: 0.7rem; }
.on-dark .link-arrow { color: var(--white); }


/* ==========================================================================
   07  HEADER / NAVIGATION
   ========================================================================== */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(30, 22, 24, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background-color 0.25s var(--ease);
}
/* Solid once scrolled, so type never sits on busy photography. */
.header.is-scrolled { background: var(--oil); }

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xs);
  min-height: var(--header-h);
}

.header__logo {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  min-height: 44px;   /* WCAG 2.5.5 target size */
}
.header__logo img {
  width: auto;
  height: 34px;
}

.nav { display: none; }

.nav__list {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;   /* WCAG 2.5.5 target size */
  padding: 0.4rem 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: var(--fs-small);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: color 0.18s var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 9px;
  width: 100%; height: 2px;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s var(--ease);
}
.nav__link:hover,
.nav__link[aria-current="true"] { color: var(--white); }
.nav__link:hover::after,
.nav__link[aria-current="true"]::after { transform: scaleX(1); }

/* Phone number is the single most important control on this page. */
.header__phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;   /* WCAG 2.5.5 target size */
  padding-inline: 0.25rem;
  gap: 0.5rem;
  color: var(--yellow);
  font-family: var(--font-head);
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
}
.header__phone:hover { color: #FFD43B; }
.header__phone svg { width: 20px; height: 20px; flex: 0 0 auto; }
.header__phone span { display: none; }

.header__actions {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex: 0 0 auto;
}
@media (min-width: 1024px) { .header__actions { gap: var(--space-sm); } }

/* --- Mobile menu toggle --- */
.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 48px; height: 48px;
  min-width: 44px;
  padding: 0 12px;
  background: none;
  flex: 0 0 auto;
  border: 0;
  cursor: pointer;
}
.nav-toggle__bar {
  display: block;
  width: 100%; height: 2px;
  background: var(--white);
  transition: transform 0.25s var(--ease), opacity 0.15s var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- Mobile drawer --- */
.mobile-nav {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 99;
  background: var(--oil);
  padding: var(--space-lg) var(--gutter) var(--space-xl);
  overflow-y: auto;
  overscroll-behavior: contain;
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0.22s;
}
.mobile-nav.is-open { opacity: 1; visibility: visible; transform: translateY(0); }

.mobile-nav__list { list-style: none; margin: 0 0 var(--space-lg); padding: 0; }
.mobile-nav__list li { border-bottom: var(--border-dark); }

.mobile-nav__link {
  display: block;
  padding: 1.15rem 0;
  color: var(--white);
  font-family: var(--font-head);
  font-size: 1.4rem;
  text-transform: uppercase;
  text-decoration: none;
}
.mobile-nav__link:hover { color: var(--yellow); }

.mobile-nav .btn { width: 100%; margin-bottom: var(--space-xs); }

body.nav-open { overflow: hidden; }

/* Below the desktop breakpoint the header is: logo | call | menu.
   The breakpoint is 1024px rather than 900px: with five primary links the
   horizontal nav is cramped between 900 and 1023px (12px gutters), so tablets
   in that band get the drawer, which is more comfortable to hit anyway. */
.header__actions [data-desktop-cta] { display: none; }

@media (min-width: 1024px) {
  .nav { display: block; }
  .header__phone span { display: inline; }
  .header__actions [data-desktop-cta] { display: inline-flex; }
  .nav-toggle { display: none; }
  .mobile-nav { display: none; }
}


/* ==========================================================================
   08  HERO
   ========================================================================== */

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(600px, 88vh, 900px);
  background: var(--oil);
  color: var(--white);
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% center;   /* keeps the tool racks in frame on mobile */
}

/* Two-layer scrim: a vertical gradient for the copy block, plus a slight
   overall darken. Keeps every text/background pair above 7:1. */
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(23, 17, 19, 0.74) 0%,
      rgba(23, 17, 19, 0.58) 32%,
      rgba(23, 17, 19, 0.90) 78%,
      rgba(23, 17, 19, 0.97) 100%),
    linear-gradient(100deg,
      rgba(23, 17, 19, 0.90) 0%,
      rgba(23, 17, 19, 0.70) 36%,
      rgba(23, 17, 19, 0.28) 72%,
      rgba(23, 17, 19, 0.08) 100%);
}

.hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-block: var(--space-2xl) var(--space-xl);
}

.hero h1 { max-width: 15ch; }

/* The hero eyebrow sits on photography, so its contrast depends on whatever
   image is loaded. Yellow-on-photo measured only 4.54:1 against the brightest
   patch of the current shot — passing, but it would fail the moment the photo
   is swapped. White type carries the contrast instead, and the brand yellow
   moves to a decorative rule that has no contrast requirement. */
.hero .eyebrow {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--white);
}
.hero .eyebrow::before {
  content: "";
  flex: 0 0 auto;
  width: 24px;
  height: 3px;
  background: var(--yellow);
}

.hero__lead {
  max-width: 52ch;
  margin-top: var(--space-md);
  font-size: var(--fs-lead);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.86);
}


/* Small "scroll" affordance, hidden from assistive tech. */
.hero__scroll {
  display: none;
  position: absolute;
  right: var(--gutter);
  bottom: var(--space-xl);
  z-index: 1;
  writing-mode: vertical-rl;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.66);
}
@media (min-width: 1100px) {
  .hero__scroll { display: block; }
}


/* ==========================================================================
   09  CREDENTIAL BAR
   Four hard facts directly under the hero. Every one is drawn from the
   playbook — nothing here is a claim Python has not already made.
   ========================================================================== */

.credbar {
  background: var(--oil-900);
  border-top: 1px solid var(--oil-700);
  color: var(--white);
}
.credbar__list {
  display: grid;
  grid-template-columns: 1fr;
  list-style: none;
  margin: 0;
  padding: 0;
}
.credbar__item {
  padding: var(--space-md) 0;
  border-bottom: var(--border-dark);
}
.credbar__item:last-child { border-bottom: 0; }

.credbar__value {
  display: block;
  font-family: var(--font-head);
  font-size: 1.35rem;
  text-transform: uppercase;
  line-height: 1.15;
  color: var(--yellow);
}
.credbar__label {
  display: block;
  margin-top: 0.35rem;
  font-size: var(--fs-small);
  color: var(--ink-invert-mut);
}

@media (min-width: 720px) {
  .credbar__list {
    grid-template-columns: repeat(2, 1fr);
    gap: 0 var(--space-lg);
  }
  .credbar__item:nth-last-child(2) { border-bottom: 0; }
}
@media (min-width: 1000px) {
  .credbar__list { grid-template-columns: repeat(4, 1fr); }
  .credbar__item {
    padding: var(--space-lg) var(--space-md) var(--space-lg) 0;
    border-bottom: 0;
    border-right: var(--border-dark);
  }
  .credbar__item:last-child { border-right: 0; }
}


/* ==========================================================================
   10  SECTIONS
   ========================================================================== */

/* --- 10a  Statement (manifesto opener) --- */
.statement {
  background: var(--oil);
  color: var(--white);
}
.statement__grid {
  display: grid;
  gap: var(--space-xl);
  align-items: center;
}
@media (min-width: 900px) {
  .statement__grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: var(--space-2xl);
    align-items: stretch;   /* let the figure fill the text column's height */
  }
}

.statement__figure { position: relative; }
.statement__figure img {
  width: 100%;
  aspect-ratio: 4 / 5;      /* portrait on mobile */
  object-fit: cover;
  border-radius: var(--radius);
}
/* On desktop the figure stretches to match the text column's height. That only
   works while the column is wide enough: the width comes from the grid and the
   height from the neighbouring copy, so the aspect ratio is otherwise
   unbounded. At 900px the box was 275x623 (0.44) against a 4:5 source — a
   narrow vertical slice, and object-fit:cover had to upscale the file 1.21x to
   fill it, which read as soft. Below 1180px the image therefore keeps its own
   4:5 proportion and centres; above it, stretching is capped so the crop never
   goes past roughly 0.62. */
@media (min-width: 900px) {
  .statement__figure {
    display: flex;
    align-self: center;
  }
  .statement__figure img {
    aspect-ratio: 4 / 5;
    height: auto;
    width: 100%;
    object-fit: cover;
  }
}
@media (min-width: 1180px) {
  .statement__figure {
    align-self: stretch;      /* take the full grid-row height */
    max-height: 640px;        /* bound the crop on very tall text columns */
  }
  .statement__figure img {
    aspect-ratio: auto;
    height: 100%;
    min-height: 460px;        /* never collapse shorter than this */
  }
}
/* Thin yellow bracket in the corner — an industrial detail, not decoration
   for its own sake. */
.statement__figure::before {
  content: "";
  position: absolute;
  left: -10px; bottom: -10px;
  width: 88px; height: 88px;
  border-left: 3px solid var(--yellow);
  border-bottom: 3px solid var(--yellow);
  pointer-events: none;
}

/* --- 10b  Pull quote / core conviction --- */
.conviction {
  background: var(--yellow);
  color: var(--oil);
}
.conviction__inner {
  padding-block: var(--space-2xl);
  text-align: center;
}
.conviction blockquote {
  margin: 0 auto;
  max-width: 26ch;
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 1.05rem + 2.4vw, 3rem);
  line-height: 1.12;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}
.conviction cite {
  display: block;
  margin-top: var(--space-md);
  font-family: var(--font-body);
  font-style: normal;
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(30, 22, 24, 0.66);
}

/* --- 10c  Service cards --- */
.service {
  display: flex;
  flex-direction: column;
  padding: var(--space-lg);
  background: var(--white);
  border: var(--border-light);
  border-top: 3px solid var(--yellow);
  border-radius: var(--radius);
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease);
}
.service:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -24px rgba(30, 22, 24, 0.45);
}
.service__num {
  font-family: var(--font-head);
  font-size: var(--fs-small);
  letter-spacing: 0.14em;
  color: var(--earth-text);
  margin-bottom: var(--space-sm);
}
.service h3 { margin-bottom: var(--space-xs); }
.service p { color: var(--ink-muted); font-size: 0.97rem; }
.service__list {
  margin: var(--space-md) 0 0;
  padding: var(--space-md) 0 0;
  border-top: var(--border-light);
  list-style: none;
  font-size: var(--fs-small);
  color: var(--ink-muted);
}
.service__list li { padding-left: 1.1rem; position: relative; margin-bottom: 0.35rem; }
.service__list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.62em;
  width: 6px; height: 6px;
  background: var(--yellow);
}

/* --- 10d  PXRT feature --- */
.tool { background: var(--oil); color: var(--white); }
.tool__grid { display: grid; gap: var(--space-xl); }
@media (min-width: 980px) {
  .tool__grid { grid-template-columns: 1fr 1fr; gap: var(--space-2xl); align-items: start; }
}

.tool__figure img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius);
}
.tool__caption {
  margin-top: var(--space-sm);
  font-size: var(--fs-small);
  color: rgba(255, 255, 255, 0.55);
}

.spec-table {
  width: 100%;
  margin-top: var(--space-lg);
  border-collapse: collapse;
  font-size: var(--fs-small);
  font-variant-numeric: tabular-nums;
}
.spec-table caption {
  text-align: left;
  padding-bottom: var(--space-sm);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--yellow);
}
.spec-table th,
.spec-table td {
  padding: 0.7rem 0.5rem;
  text-align: left;
  border-bottom: var(--border-dark);
}
.spec-table thead th {
  color: var(--yellow);
  font-weight: 500;
  font-family: var(--font-body);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.72rem;
  white-space: nowrap;
}
.spec-table tbody th {
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
  padding-left: 0;
}
.spec-table td { color: var(--ink-invert-mut); }
.spec-table tbody tr:last-child th,
.spec-table tbody tr:last-child td { border-bottom: 0; }

.tool__wrap { overflow-x: auto; }

/* Compatible-fluids / feature chips */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: var(--space-md) 0 0;
  padding: 0;
  list-style: none;
}
.chips li {
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--oil-700);
  border-radius: var(--radius);
  font-size: 0.78rem;
  color: var(--ink-invert-mut);
}

/* --- 10e  Edge cards (numbered) --- */
.edge {
  padding: var(--space-lg);
  background: var(--white);
  border: var(--border-light);
  border-radius: var(--radius);
}
/* A stamped yellow tag rather than a large yellow numeral. Yellow type on
   white measures 1.67:1 — far below the 3:1 large-text floor — so the colour
   moves to the fill and the numeral sits on it in Oil at 10.6:1. */
.edge__num {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: var(--space-md);
  background: var(--yellow);
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-size: 1.35rem;
  line-height: 1;
  color: var(--oil);
}
.edge h3 { margin-bottom: var(--space-xs); }
.edge p { color: var(--ink-muted); font-size: 0.97rem; }

/* --- 10f  Obstacle → response --- */
/* --- 10f  Obstacles ------------------------------------------------------
   Full-bleed tool-rack photography under a heavy Oil scrim, with the copy in
   raised cards. Worst case (a pure-white pixel behind the scrim) still
   composites to about rgb(34,26,28) inside a card, so body text holds ~17:1
   and the yellow quote ~10:1. The photo can be swapped without re-checking.

   The photo is held at viewport height and made sticky rather than stretched
   over the whole section. Stretched, its box was the section's height — 3019px
   at a 320px viewport, because six cards stack — so object-fit:cover upscaled
   a landscape frame 7x and showed 7% of its width: a blurred vertical sliver.
   At viewport height the box is always roughly viewport-shaped, which is close
   to the photograph's own proportion, and a 3:4 crop is art-directed in below
   760px so phones get a composition rather than a slice.

   NOTE: do not add overflow:hidden to .obstacles-section or .obstacles__media.
   Either one becomes the scroll container for the sticky child and pins it. */

.obstacles-section {
  position: relative;
  background: var(--oil-900);
  color: var(--ink-invert);
}
.obstacles__media { position: absolute; inset: 0; z-index: 0; }
.obstacles__media-inner {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;          /* avoids the mobile URL-bar jump where supported */
  overflow: hidden;
}
.obstacles__media-inner img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}
.obstacles__media-inner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(23, 17, 19, 0.97) 0%,
    rgba(23, 17, 19, 0.88) 22%,
    rgba(23, 17, 19, 0.88) 62%,
    rgba(23, 17, 19, 0.99) 100%);
}
.obstacles-section > .container { position: relative; z-index: 1; }

.obstacles {
  display: grid;
  gap: var(--space-md);
  margin-top: var(--space-xl);
}
@media (min-width: 720px) {
  .obstacles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1180px) {
  .obstacles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.obstacle {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: var(--space-lg);
  background: rgba(30, 22, 24, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--radius);
  transition:
    transform 0.3s var(--ease),
    border-color 0.3s var(--ease),
    background-color 0.3s var(--ease);
}
@supports (backdrop-filter: blur(6px)) {
  .obstacle { backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
}

/* Yellow rule that draws across the top edge on hover or keyboard focus. */
.obstacle::before {
  content: "";
  position: absolute;
  left: -1px; top: -1px;
  width: 0; height: 3px;
  background: var(--yellow);
  border-radius: var(--radius) 0 0 0;
  transition: width 0.4s var(--ease);
}
.obstacle:hover,
.obstacle:focus-within {
  transform: translateY(-4px);
  background: rgba(30, 22, 24, 0.93);
  border-color: rgba(241, 195, 22, 0.45);
}
.obstacle:hover::before,
.obstacle:focus-within::before { width: calc(100% + 2px); }

.obstacle__num {
  display: block;
  margin-bottom: 0.65rem;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--yellow);
}

.obstacle__q {
  font-family: var(--font-head);
  font-size: 1.22rem;
  text-transform: uppercase;
  line-height: 1.22;
  color: var(--white);
  margin: 0;
}

/* The customer's own words, kept out of the heading so the accessible name
   stays short. */
.obstacle__quote {
  margin: 0.85rem 0 0;
  padding-left: 0.9rem;
  border-left: 2px solid var(--yellow);
  font-size: 0.95rem;
  font-style: italic;
  line-height: 1.5;
  color: var(--yellow);
}

.obstacle__a {
  margin: var(--space-md) 0 0;
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  color: var(--ink-invert-mut);
  font-size: 0.95rem;
}

/* --- 10g  Regions --- */
.regions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  list-style: none;
  margin: var(--space-lg) 0 0;
  padding: 0;
}
.regions li {
  padding: 0.6rem 1.1rem;
  background: var(--white);
  border: var(--border-light);
  border-left: 3px solid var(--yellow);
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-size: 0.95rem;
  text-transform: uppercase;
}

/* --- 10h  Values list --- */
.values { list-style: none; margin: 0; padding: 0; }
.values li {
  padding: var(--space-md) 0;
  border-bottom: var(--border-light);
}
.values li:last-child { border-bottom: 0; }
.values h3 { margin-bottom: 0.35rem; font-size: 1.05rem; }
.values p { color: var(--ink-muted); font-size: 0.95rem; }

@media (min-width: 860px) {
  .values { columns: 2; column-gap: var(--space-xl); }
  .values li { break-inside: avoid; }
}

/* --- 10i  CTA band --- */
.cta-band {
  position: relative;
  background: var(--oil-900);
  color: var(--white);
  overflow: hidden;
}
.cta-band__media { position: absolute; inset: 0; z-index: 0; }
.cta-band__media img { width: 100%; height: 100%; object-fit: cover; }
.cta-band__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    rgba(23, 17, 19, 0.97) 0%,
    rgba(23, 17, 19, 0.90) 48%,
    rgba(23, 17, 19, 0.70) 100%);
}
.cta-band__inner {
  position: relative;
  z-index: 1;
  padding-block: var(--space-2xl);
  max-width: 46ch;
}


/* ==========================================================================
   11  CONTACT & FORM
   ========================================================================== */

/* --- Contact split: content on the left, facility photo on the right ------- */
.contact-split {
  background: var(--oil);
  color: var(--ink-invert);          /* FIX: headings were dark-on-dark before */
}
@media (min-width: 900px) {
  .contact-split {
    display: grid;
    grid-template-columns: 1fr 1.08fr;   /* give the photo a slightly larger profile */
    align-items: stretch;
  }
}

/* Left column. Inner edge aligns to the site container; the photo bleeds right. */
.contact-split__content {
  display: flex;
  align-items: center;
  padding-block: var(--space-2xl);
  padding-inline: var(--gutter);
}
@media (min-width: 900px) {
  .contact-split__content {
    padding-left: max(var(--gutter), calc((100vw - var(--container)) / 2));
    padding-right: var(--space-2xl);
    padding-block: var(--space-xl);
  }
}
.contact-split__inner { width: 100%; max-width: 34rem; }
.contact-split__inner .lead { margin-top: var(--space-md); }

/* Right column: the photo, filling the column. */
.contact-split__media {
  position: relative;
  min-height: 300px;                 /* mobile band height */
}
.contact-split__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}
@media (min-width: 900px) { .contact-split__media { min-height: 0; } }

/* Compact contact details: a 2-up grid so the column isn't overly tall. */
.contact-split .contact-details {
  margin-top: var(--space-lg);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md) var(--space-xl);
}
/* Phone, Email and Follow take full-width rows; the two postal addresses pair
   up on one row. Previously only Phone spanned, which put Email beside the
   three-line Location address and left a tall empty gap beneath it. The
   address column is too narrow to hold the email on one line, so it gets its
   own row rather than breaking mid-word. align-items:start stops a taller
   neighbour stretching its partner's cell. */
@media (min-width: 520px) {
  .contact-split .contact-details {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }
  .contact-split .contact-details li:nth-child(1),   /* Phone   */
  .contact-split .contact-details li:nth-child(2),   /* Email   */
  .contact-split .contact-details li:last-child {    /* Follow  */
    grid-column: 1 / -1;
  }
}
.contact-split .contact-details li { padding: 0; border-bottom: 0; }
.contact-split .contact-details .label { color: var(--yellow); }
.contact-split .contact-details a {
  color: var(--white);
  overflow-wrap: break-word;
  border-bottom: 0;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
}
.contact-split .contact-details a:not(.phone) { border-bottom: 1px solid var(--oil-700); }
.contact-split .contact-details a:hover { border-bottom-color: var(--yellow); }
.contact-split .contact-details .phone { color: var(--white); }
.contact-split .contact-details .phone:hover { color: var(--yellow); }
.contact-split address { color: var(--ink-invert-mut); font-style: normal; }
.contact-split .btn { margin-top: var(--space-lg); }

/* ---------------------------------------------------------------------------
   Base contact-detail styles. The .contact-split band above overrides colour
   and layout; these supply the shared list and label typography.
   --------------------------------------------------------------------------- */


.contact-details { list-style: none; margin: var(--space-lg) 0 0; padding: 0; }
.contact-details li {
  padding: var(--space-md) 0;
  border-bottom: var(--border-light);
}
.contact-details li:last-child { border-bottom: 0; }

.contact-details dt,
.contact-details .label {
  display: block;
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--earth-text);
  margin-bottom: 0.4rem;
}
.contact-details a { color: var(--oil); text-decoration: none; border-bottom: 1px solid var(--dust-dark); }
.contact-details a:hover { border-bottom-color: var(--yellow); }

.contact-details .phone {
  font-family: var(--font-head);
  font-size: 1.6rem;
  border-bottom: 0;
}
.contact-details .phone:hover { color: var(--earth); }

/* The inquiry form was removed in favour of a phone-first contact model.
   Its styles (.form, .field, .form__status) have been deleted rather than left
   as dead weight. If a form is reinstated later, rebuild them alongside it. */


/* ==========================================================================
   12  FOOTER
   ========================================================================== */

.footer {
  background: var(--oil-900);
  color: var(--ink-invert-mut);
  padding-block: var(--space-xl) var(--space-lg);
  font-size: var(--fs-small);
}
.footer__top {
  display: grid;
  gap: var(--space-lg);
  padding-bottom: var(--space-lg);
  border-bottom: var(--border-dark);
}
@media (min-width: 860px) {
  .footer__top { grid-template-columns: 1.4fr 1fr 1fr; gap: var(--space-xl); }
}

.footer__logo img { width: auto; height: 44px; margin-bottom: var(--space-md); }
.footer__tagline { max-width: 34ch; color: var(--ink-invert-mut); }

.footer h2 {
  font-size: var(--fs-eyebrow);
  font-family: var(--font-body);
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--yellow);
  margin-bottom: var(--space-sm);
}

.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 0.15rem; }
.footer li a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;   /* clears the 24px WCAG 2.5.8 minimum */
}
.footer a { color: var(--ink-invert-mut); text-decoration: none; }
.footer a:hover { color: var(--white); }

.footer address { font-style: normal; }

.footer__social {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: var(--space-sm);
  padding: 0.55rem 0.9rem;
  border: var(--border-dark);
  border-radius: var(--radius);
  transition: border-color 0.18s var(--ease);
}
.footer__social:hover { border-color: var(--yellow); }
.footer__social { min-height: 44px; }
.footer__social svg { width: 18px; height: 18px; fill: currentColor; }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm) var(--space-md);
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-lg);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
}
.footer__legal { display: flex; gap: var(--space-md); }
/* Links that sit on their own line in the privacy contact block are standalone
   targets, not inline prose, so they need the 24px minimum too. */
.prose address a,
.prose p > a[href^="tel:"],
.prose p > a[href^="mailto:"] {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
}

/* Standalone footer links need a 24px minimum target (WCAG 2.2 SC 2.5.8). */
.footer__legal a,
.footer nav a,
.footer__bottom a {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
}


/* ==========================================================================
   13  LEGAL PAGES
   ========================================================================== */

.page-head {
  background: var(--oil);
  color: var(--white);
  padding-block: var(--space-2xl) var(--space-xl);
}
.page-head h1 { font-size: clamp(1.85rem, 1.35rem + 2.1vw, 2.75rem); }

.prose { max-width: 68ch; padding-block: var(--space-xl) var(--space-2xl); }
.prose h2 {
  font-size: 1.3rem;
  margin-top: var(--space-xl);
  margin-bottom: var(--space-sm);
}
.prose h2:first-of-type { margin-top: 0; }
.prose p, .prose li { color: var(--ink-muted); }
.prose ul { padding-left: 1.15rem; margin-bottom: var(--space-sm); }
.prose li { margin-bottom: 0.4rem; }
.prose a { color: var(--oil); }

/* Confirmation page */
.confirm {
  display: flex;
  align-items: center;
  min-height: calc(100vh - var(--header-h));
  padding-block: var(--space-2xl);
  background: var(--oil);
  color: var(--white);
  text-align: center;
}
.confirm__inner { margin-inline: auto; max-width: 56ch; }
.confirm__mark {
  width: 64px; height: 64px;
  margin: 0 auto var(--space-lg);
  border: 3px solid var(--yellow);
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.confirm__mark svg { width: 30px; height: 30px; stroke: var(--yellow); }


/* ==========================================================================
   14  MOTION
   Reveal-on-scroll. Elements are visible by default and only hidden once JS
   confirms it can animate them, so the page is fully readable without JS.
   ========================================================================== */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}
/* Stagger children of a revealed group. */
.js [data-reveal-group] > * { transition-delay: calc(var(--i, 0) * 70ms); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
  .btn:hover { transform: none; }
  .service:hover { transform: none; }
  .obstacle:hover,
  .obstacle:focus-within { transform: none; }
  .obstacle::before { transition: none; }
  .obstacles__media-inner { position: absolute; top: 0; left: 0; right: 0; }
}


/* ==========================================================================
   15  PRINT
   ========================================================================== */

@media print {
  .header, .mobile-nav, .hero__scroll, .cta-band__media,
  .obstacles__media { display: none !important; }
  body { background: #fff; color: #000; }
  .section--dark, .section--darker, .obstacles-section, .statement, .tool, .cta-band, .footer {
    background: #fff !important;
    color: #000 !important;
  }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.8em; }
}
