/* ============================================================
   THE FACILITY PAGE (page-facility.php)
   Enqueued only on that template (functions.php). Everything below the
   "Theme integration" block is the approved design styling, reproduced as
   written in the handoff. The handoff's .oxf-footer rules are left out:
   the theme's own footer (footer.php) is used on this page.
   ============================================================ */

.oxf-page {
  --oxf-brand: #004c8c;          /* Oxid brand blue (set by Jake) */
  --oxf-accent: #6fd8d6;         /* teal, used on blue backgrounds */
  --oxf-accent-hover: #8fe4e2;   /* button hover */
  --oxf-link-hover-dark: #9be8e6;/* link hover on blue */
  --oxf-accent-dark: #1c7f7d;    /* teal, used on white backgrounds */
  --oxf-text-on-brand: #dbe8f4;  /* body text on blue */
  --oxf-body: #41566b;           /* body text on white */
  --oxf-tile: #d5deec;           /* placeholder behind gallery images */
  --oxf-ui: "Archivo", system-ui, sans-serif;
  --oxf-body-font: "Spline Sans", system-ui, sans-serif;
  --oxf-bg-opacity: 0.22;        /* overridden by the ACF setting */
}

/* ---------- Theme integration ----------
   Not part of the handoff's CSS; these undo theme-wide rules in main.css
   that would otherwise change the design. */

/* main.css sets body{overflow:hidden} (a one-screen homepage rule); every
   scrolling template turns scrolling back on for itself. */
body.page-template-page-facility {
  overflow-x: hidden;
  overflow-y: auto;
}
/* Full scale. main.css zooms the whole body to 0.9 on desktop
   (--desktop-page-scale). This page's content is zoomed back up to 1 so it
   matches the design board at 100% (Jake's call); the theme's header and
   footer stay at site scale. --oxf-scale is the zoom of the context
   outside .oxf-page, used to convert header measurements into this page's
   units. */
.oxf-page { --oxf-scale: 1; }
@media (min-width: 901px) {
  .oxf-page {
    --oxf-scale: var(--desktop-page-scale, 1);
    zoom: calc(1 / var(--desktop-page-scale, 1));
  }
}
/* Clear the fixed .site-header, same as every other interior page. When
   the news ticker shows (desktop only), it already sits in flow under the
   header, so the padding would double up. */
.oxf-page { padding-top: calc((var(--wp-admin-bar-offset, 0px) + var(--header-height)) * var(--oxf-scale)); }
@media (min-width: 901px) {
  body.has-news-ticker .oxf-page { padding-top: 0; }
}
/* main.css zooms every img on hover; the design has no hover zoom. */
.oxf-page img { transition: none; }
.oxf-page img:hover { transform: none; }
/* Jump-link targets land below the fixed header. */
.oxf-stage { scroll-margin-top: calc((var(--wp-admin-bar-offset, 0px) + var(--header-height)) * var(--oxf-scale)); }

/* ---------- Design ---------- */

html { scroll-behavior: smooth; }

.oxf-page img { max-width: none; } /* stop theme rules from shrinking cover images */
.oxf-page p, .oxf-page h1, .oxf-page h2, .oxf-page figure { margin: 0; }

.oxf-eyebrow {
  font-family: var(--oxf-ui);
  font-size: 14px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
}

/* ---------- Hero ---------- */
.oxf-hero {
  position: relative; min-height: 620px; display: flex; overflow: hidden;
  background: var(--oxf-brand); color: #fff; font-family: var(--oxf-ui);
}
.oxf-hero__img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  /* 50% 30%, not the handoff's 50% 50% (Jake, after review): on the clean
     16:9 source (IMG_2832) a centered crop cut off the ceiling diffuser,
     and pinning it to the top lost the cabinet at the bottom on wide
     screens. Only matters where the hero is wider than 16:9. */
  object-fit: cover; object-position: 50% 30%;
}
/* Darkens the left side so the text reads. The design had this darkening baked
   into the photo; on the clean source photo it comes from this layer. Compare
   against the design reference and adjust alpha values only, not the stops,
   until the left third matches. */
.oxf-hero__shade {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg,
    rgba(20,38,58,0.90) 0%, rgba(20,38,58,0.82) 28%,
    rgba(20,38,58,0.45) 50%, rgba(20,38,58,0.12) 68%, rgba(20,38,58,0) 80%);
}
/* Recolors the left side to the brand hue without changing brightness. */
.oxf-hero__tint {
  position: absolute; inset: 0; pointer-events: none; mix-blend-mode: color;
  background: linear-gradient(90deg,
    rgba(0,76,140,0.6) 0%, rgba(0,76,140,0.6) 30%,
    rgba(0,76,140,0.35) 48%, rgba(0,76,140,0) 68%);
}
.oxf-hero__wash {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg,
    rgba(0,76,140,0.15) 0%, rgba(0,76,140,0.1) 35%, rgba(0,76,140,0) 60%);
}
.oxf-hero__inner {
  position: relative; width: 100%; box-sizing: border-box; padding: 44px 5%;
  display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
}
/* Text set further in from the left than the handoff's 5% (Jake, after
   review: 9%; nudged to 12% in Nov 2026). Phones keep 5%. */
@media (min-width: 761px) {
  .oxf-hero__inner { padding-left: 12%; }
  /* All caps run wide: in the 640px column the headline broke into four
     two-word lines. Let it alone run past the column, sized in em so it
     scales with the type: 10.8em holds four words a line ("FROM THE
     FIRST CUT / TO THE FINAL CHECK." needs ~10.6em). */
  .oxf-hero__title { width: 10.8em; max-width: none; }
}
/* Hero type is larger than the handoff (Jake, after review): each size
   grows with the window and caps around 1440 wide; phones keep the
   handoff sizes. Column widths grow to match. */
.oxf-hero__top { display: flex; flex-direction: column; gap: 24px; max-width: 640px; }
.oxf-hero__intro { display: flex; flex-direction: column; gap: 16px; }
.oxf-hero .oxf-eyebrow { color: var(--oxf-accent); font-size: clamp(14px, 1.15vw, 16px); }
/* The sitewide breadcrumb (white version) heads the hero text instead of
   the eyebrow, which only repeated the page name (Jake, after review).
   Hidden, not removed, so the field still works. Breadcrumb colours come
   from main.css (nav.lm-crumb--on-dark). */
.oxf-hero .oxf-eyebrow { display: none; }
.oxf-hero nav.lm-crumb { margin: 0; font-size: 14px; }
.oxf-hero__title {
  font-family: var(--oxf-ui); font-weight: 700; color: #fff;
  font-size: clamp(2.25rem, 5.6vw, 5rem); line-height: 1.02; letter-spacing: -0.02em;
  text-transform: uppercase;
  text-wrap: balance; /* even lines, no two-word leftovers */
}
.oxf-hero__sub {
  max-width: 36rem; font-family: var(--oxf-body-font);
  /* Same size as Contract Manufacturing's hero intro (.oxcm-band__intro),
     user's call, Nov 16 2026. Was clamp(19px, 1.6vw, 23px). */
  font-size: clamp(17px, 1.25vw, 19px); line-height: 1.5; color: var(--oxf-text-on-brand);
}
.oxf-jump { display: flex; flex-direction: column; gap: 14px; }
.oxf-jump__label { font-size: clamp(15px, 1.25vw, 18px); font-weight: 600; line-height: 1.4; color: var(--oxf-accent); }
.oxf-jump__list {
  display: flex; flex-direction: column; max-width: 400px;
  border-top: 1px solid rgba(255,255,255,0.45);
}
.oxf-jump__list a {
  display: flex; padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,0.45);
  font-family: var(--oxf-ui); font-size: clamp(24px, 2.1vw, 30px); font-weight: 700;
  color: #fff; text-decoration: none;
}
.oxf-jump__list a:hover { color: var(--oxf-link-hover-dark); }
/* Contact button: phones only (shown in the Phones block below); desktop
   has Request a Quote in the site header. */
.oxf-hero__contact { display: none; }
.oxf-hero__stats { display: flex; flex-wrap: wrap; gap: 20px 64px; max-width: 1040px; }
.oxf-hero__stat { display: flex; flex-direction: column; gap: 6px; }
.oxf-hero__stat-label { font-size: clamp(13px, 1.05vw, 15px); font-weight: 600; color: var(--oxf-accent); }
.oxf-hero__stat-value { font-size: clamp(24px, 2.2vw, 32px); font-weight: 700; line-height: 1.15; }

/* ---------- Stages ---------- */
.oxf-stages { position: relative; z-index: 0; overflow: hidden; background: #fff; }
.oxf-stage { position: relative; color: var(--oxf-brand); font-family: var(--oxf-ui); }

/* Faint background photo. Each one fades in from white at the top of its
   section and back out to white before the section ends. They never overlap. */
.oxf-stage__bg {
  position: absolute; z-index: 0; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: var(--oxf-bg-opacity);
  filter: grayscale(100%); pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, transparent 0px, #000 220px, #000 32%, transparent 78%);
          mask-image: linear-gradient(180deg, transparent 0px, #000 220px, #000 32%, transparent 78%);
}
.oxf-stage--machining  .oxf-stage__bg { object-position: 50% 30%; }
.oxf-stage--assembly   .oxf-stage__bg { object-position: 50% 40%; }
.oxf-stage--inspection .oxf-stage__bg {
  object-position: 50% 25%;
  -webkit-mask-image: linear-gradient(180deg, transparent 0px, #000 220px, #000 32%, transparent 70%);
          mask-image: linear-gradient(180deg, transparent 0px, #000 220px, #000 32%, transparent 70%);
}

.oxf-stage__inner {
  /* 1680, not the handoff's 1440 (Jake, after review): the galleries felt
     small next to the full-width hero and building photos. */
  position: relative; z-index: 1; max-width: 1680px; margin: 0 auto;
  box-sizing: border-box; padding: 48px 5%;
  display: flex; flex-direction: column; gap: 28px;
}
.oxf-stage--inspection .oxf-stage__inner { padding-bottom: 260px; } /* white space, then the fade to blue */

.oxf-stage__head {
  display: flex; flex-wrap: wrap; align-items: flex-end;
  justify-content: space-between; gap: 32px 64px;
}
.oxf-stage__text { display: flex; flex-direction: column; gap: 14px; flex: 1 1 420px; max-width: 600px; }
.oxf-stage .oxf-eyebrow { color: var(--oxf-accent-dark); }
.oxf-stage__title {
  font-family: var(--oxf-ui); font-weight: 700; color: var(--oxf-brand);
  font-size: clamp(2rem, 4vw, 3rem); line-height: 1.05; letter-spacing: -0.02em;
}
.oxf-stage__body { font-family: var(--oxf-body-font); font-size: 18px; line-height: 1.55; color: var(--oxf-body); }
.oxf-stage__stat {
  display: flex; flex-direction: column; gap: 6px;
  padding-left: 20px; border-left: 2px solid var(--oxf-accent-dark);
}
.oxf-stage__stat-label { font-size: 13px; font-weight: 600; color: var(--oxf-accent-dark); }
.oxf-stage__stat-value { font-size: 32px; font-weight: 700; line-height: 1.1; }

/* Gallery tiles: square corners, image fills the tile */
.oxf-tile { overflow: hidden; background: var(--oxf-tile); }
.oxf-tile img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ---------- Photo viewer (added after review) ----------
   Each gallery photo links to its full-size file; assets/js/facility.js
   opens it full screen in a <dialog> instead. */
.oxf-tile__link { display: block; width: 100%; height: 100%; cursor: zoom-in; }
.oxf-tile__link:focus-visible { outline: 3px solid var(--oxf-accent-dark); outline-offset: -3px; }
body.page-template-page-facility.oxf-lightbox-open { overflow: hidden; }
.oxf-lightbox {
  position: fixed; inset: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; box-sizing: border-box;
  background: rgba(8, 14, 22, 0.94); color: #fff;
  overscroll-behavior: contain;
}
.oxf-lightbox[open] { display: flex; align-items: center; justify-content: center; }
.oxf-lightbox::backdrop { background: transparent; }
.oxf-lightbox .oxf-lightbox__img { /* two classes: beats ".oxf-page img { max-width: none }" */
  display: block; max-width: calc(100vw - 32px); max-height: calc(100dvh - 140px);
  width: auto; height: auto; object-fit: contain;
}
.oxf-lightbox__btn {
  position: absolute; display: flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; padding: 0; border: 0; border-radius: 0;
  background: rgba(255, 255, 255, 0.12); color: #fff; cursor: pointer;
}
.oxf-lightbox__btn:hover { background: rgba(255, 255, 255, 0.22); }
.oxf-lightbox__btn:focus-visible { outline: 2px solid var(--oxf-accent); outline-offset: 2px; }
.oxf-lightbox__btn svg {
  width: 22px; height: 22px; fill: none; stroke: currentColor;
  stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
}
.oxf-lightbox__close { top: 16px; right: 16px; }
.oxf-lightbox__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.oxf-lightbox__next { right: 16px; top: 50%; transform: translateY(-50%); }
.oxf-lightbox__count {
  position: absolute; left: 0; right: 0; bottom: 24px; margin: 0;
  font-family: var(--oxf-ui); font-size: 14px; font-weight: 600;
  letter-spacing: 0.08em; text-align: center; color: rgba(255, 255, 255, 0.75);
}
/* Wider screens: leave room either side for the arrows. */
@media (min-width: 761px) {
  .oxf-lightbox .oxf-lightbox__img { max-width: calc(100vw - 176px); }
}
/* Phones: arrows move to the bottom corners, beside the counter, so they
   don't sit on the photo. */
@media (max-width: 760px) {
  .oxf-lightbox__prev, .oxf-lightbox__next { top: auto; bottom: 12px; transform: none; }
  .oxf-lightbox__count { bottom: 26px; }
}

/* Machining: 4 columns, 280px rows. Feature 2x2, wide 2x1, two singles. */
.oxf-grid--machining {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: clamp(280px, 23vw, 380px); gap: 16px; /* was 280px; enlarged after review */
}
.oxf-tile--m1 { grid-column: span 2; grid-row: span 2; }
.oxf-tile--m2 { grid-column: span 2; }
.oxf-tile--m1 img { object-position: 50% 40%; }
.oxf-tile--m2 img { object-position: 55% 40%; }
.oxf-tile--m3 img { object-position: 55% 30%; }
.oxf-tile--m4 img { object-position: 53% 50%; }

/* Assembly: square tile on the left sets the height; the two right tiles
   split that height exactly and must not grow past it. */
.oxf-grid--assembly {
  display: grid; grid-template-columns: minmax(0, 55fr) minmax(0, 45fr);
  grid-template-rows: minmax(0, 1fr) minmax(0, 1fr); gap: 16px;
}
.oxf-tile--a1 { grid-row: span 2; aspect-ratio: 1 / 1; }
.oxf-tile--a2, .oxf-tile--a3 { position: relative; min-height: 0; }
.oxf-tile--a2 img, .oxf-tile--a3 img { position: absolute; inset: 0; }
.oxf-tile--a1 img { object-position: 50% 50%; }
.oxf-tile--a2 img { object-position: 50% 45%; }
.oxf-tile--a3 img { object-position: 55% 65%; }

/* Inspection: 5 columns, one 440px row. Microscope 2 cols left, height gauge 3 cols right. */
.oxf-grid--inspection {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-auto-rows: clamp(440px, 36vw, 600px); gap: 16px; /* was 440px; enlarged after review */
}
.oxf-tile--i1 { grid-column: span 2; }
.oxf-tile--i2 { grid-column: span 3; }
.oxf-tile--i1 img { object-position: 72% 45%; }
.oxf-tile--i2 img { object-position: 55% 50%; }

/* Bottom of the stages wrapper fades into brand blue. Overlaps the CTA by 1px
   to prevent a hairline seam. */
.oxf-stages__to-cta {
  position: absolute; z-index: 0; left: 0; right: 0; bottom: -1px; height: 201px;
  pointer-events: none;
  background: linear-gradient(180deg,
    rgba(0,76,140,0) 0%, rgba(0,76,140,0.45) 45%, rgba(0,76,140,0.9) 80%, #004c8c 100%);
}

/* ---------- CTA + building ---------- */
/* Changed from the handoff after review (Jake): smaller type, and the
   building photo is cropped to 2.3:1 from the top (sky) instead of an
   uncropped 16:9, so the roofline sits close under the text. Above 1440
   wide the CTA grows with the window (--oxf-u, 1px at 1440) but stops at
   1.25x so the type doesn't get oversized. */
.oxf-cta {
  --oxf-u: clamp(1px, calc(100vw / 1440), 1.25px);
  position: relative; background: var(--oxf-brand); color: #fff; font-family: var(--oxf-ui);
  /* Overlaps the stages wrapper by 1px. The fade's own 1px overlap is
     clipped by .oxf-stages' overflow:hidden, which left a faint seam when
     the boundary fell on a fractional pixel. */
  margin-top: -1px;
}
.oxf-cta__inner {
  position: relative; z-index: 1; max-width: calc(var(--oxf-u) * 800); margin: 0 auto;
  box-sizing: border-box; padding: calc(var(--oxf-u) * 24) 5% 0;
  display: flex; flex-direction: column; align-items: center; gap: calc(var(--oxf-u) * 16); text-align: center;
}
.oxf-cta__title {
  font-family: var(--oxf-ui); font-weight: 700; color: #fff;
  font-size: clamp(2rem, 3.8vw, calc(var(--oxf-u) * 46)); line-height: 1.05; letter-spacing: -0.02em;
}
.oxf-cta__body {
  max-width: calc(var(--oxf-u) * 500); font-family: var(--oxf-body-font);
  font-size: calc(var(--oxf-u) * 17); line-height: 1.55; color: var(--oxf-text-on-brand);
}
.oxf-cta__btn {
  margin-top: calc(var(--oxf-u) * 12); display: inline-flex; align-items: center; justify-content: center;
  min-height: calc(var(--oxf-u) * 48); padding: 0 calc(var(--oxf-u) * 28); border-radius: 0;
  background: var(--oxf-accent); color: var(--oxf-brand);
  font-family: var(--oxf-ui); font-size: calc(var(--oxf-u) * 15); font-weight: 600; text-decoration: none;
  transition: background-color .15s ease;
}
.oxf-cta__btn:hover, .oxf-cta__btn:focus-visible { background: var(--oxf-accent-hover); color: var(--oxf-brand); }
/* The text is centered in the blue band; the photo starts 20px up under it. */
.oxf-cta__photo { position: relative; margin-top: calc(var(--oxf-u) * -20); }
/* Crop of OXID_EXT (2000x1125): rows 255-1025. The top is where the
   2.3:1 crop started; the bottom stops at the lawn edge, just above the
   curb, so no road shows (2026-11-13, after review). 2000 / 770 = 2.6:1;
   object-position 71.8% = 255 / (1125 - 770). */
.oxf-cta__photo img {
  display: block; width: 100%; height: auto; aspect-ratio: 2000 / 770;
  object-fit: cover; object-position: 50% 71.8%;
}
/* Smooth, eased fade from brand blue into the sky, clear just above the
   roofline (measured: 39.4% down OXID_EXT, so 24.4% down this crop).
   Same curve as the handoff, compressed to fit the shorter sky; the stops
   are the 2.3:1 crop's, scaled by 870/770 so the fade keeps its height. */
.oxf-cta__fade {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg,
    #004c8c 0%, rgba(0,76,140,0.96) 2.7%, rgba(0,76,140,0.88) 5.3%,
    rgba(0,76,140,0.75) 7.9%, rgba(0,76,140,0.58) 10.6%, rgba(0,76,140,0.4) 13.2%,
    rgba(0,76,140,0.24) 15.8%, rgba(0,76,140,0.11) 18.5%, rgba(0,76,140,0.03) 20.7%,
    rgba(0,76,140,0) 22.3%);
}

/* ---------- Site footer, phones ----------
   The phone footer designed for this page (Jake, after review) is now
   sitewide: main.css, "Site footer, phones". */

/* ---------- Phones ---------- */
@media (max-width: 760px) {
  .oxf-grid--machining { grid-template-columns: 1fr 1fr; grid-auto-rows: 200px; }
  .oxf-tile--m1 { grid-column: span 2; grid-row: span 2; }
  .oxf-tile--m2 { grid-column: span 2; grid-row: auto; }
  .oxf-tile--m3, .oxf-tile--m4 { grid-column: auto; grid-row: auto; }

  .oxf-grid--assembly { grid-template-columns: 1fr; grid-template-rows: none; }
  .oxf-tile--a1 { grid-row: auto; aspect-ratio: 1 / 1; }
  .oxf-tile--a2, .oxf-tile--a3 { aspect-ratio: 16 / 10; }
  /* Square carts photo in the middle of the stack (Jake, after review). */
  .oxf-tile--a2 { order: 1; }
  .oxf-tile--a1 { order: 2; }
  .oxf-tile--a3 { order: 3; }

  .oxf-grid--inspection { grid-template-columns: 1fr; grid-auto-rows: 260px; }
  .oxf-tile--i1, .oxf-tile--i2 { grid-column: auto; }

  /* Hero on phones (Jake, after review; modelled on the Capabilities
     page's phone hero): no eyebrow, a grayscale photo, and the stats
     pulled out of the photo into a solid brand-blue band flush with the
     bottom of the hero, two across with hairline dividers, figure over a
     small caps label. */
  /* Fills the screen under the header, so the stats band sits at the
     bottom of the screen on load (same formula as the Capabilities phone
     hero). min-height, so short phones grow instead of clipping. */
  .oxf-hero { min-height: calc(100svh - var(--wp-admin-bar-offset, 0px) - var(--header-height)); }
  /* Larger headline and subheadline on phones, scaled to the screen
     width, so the copy fills the screen-height hero. 13vw is about as big
     as the headline can go: its longest line ("to the final check.")
     measures about 7.95x the font size, so 10.8vw keeps each line to one
     line with 20px gutters. A longer headline line needs a smaller size
     here. The subheadline is smaller than before for the longer copy, so
     the hero still fits the screen. */
  .oxf-hero__title { font-size: clamp(2rem, 10.8vw, 3.5rem); }
  /* 17px / 1.5, as Contract Manufacturing's phone intro
     (was clamp(17px, 4.9vw, 22px) / 1.4). */
  .oxf-hero__sub { font-size: 17px; line-height: 1.5; }
  .oxf-hero__img { filter: grayscale(100%); }
  /* The blue cast covers the whole photo, not just the left side: the
     text spans the full width here. Flat layers; the two blue ones are
     about half the desktop's left-edge strength so the cast reads as a
     muted slate blue (Jake: "very blue"). The darkening layer, a more
     neutral slate than desktop's, keeps the text readable. */
  .oxf-hero__shade { background: rgba(22,30,40,0.72); }
  /* Strength from the page's "Blue Tint — Phones" slider (--hero-tint,
     inc/hero-tint.php; was a fixed .3). The wash stays a sixth of it. */
  .oxf-hero__tint  { background: rgba(var(--hero-tint-rgb), var(--hero-tint, .3)); }
  .oxf-hero__wash  { background: rgba(var(--hero-tint-rgb), calc(var(--hero-tint, .3) / 6)); }
  /* Tighter spacing than desktop so the Contact button fits with the
     stats band still at the bottom of the screen. Top 14px (was 22px,
     user's call Nov 16 2026): the breadcrumb sits closer to the header. */
  .oxf-hero__inner { padding: 14px 20px 0; gap: 16px; }
  .oxf-hero__top { gap: 16px; }
  .oxf-hero__intro { gap: 12px; }
  /* "See for yourself" label and jump links: larger on phones, scaled to
     the screen width (Jake, after review). */
  .oxf-jump { gap: 8px; }
  .oxf-jump__label { font-size: clamp(15px, 4.6vw, 20px); }
  .oxf-jump__list a { padding: 9px 0; font-size: clamp(24px, 7.4vw, 32px); }
  /* Contact button, between the jump links and the stats band, centered
     in whatever spare height the phone has (auto margins split it above
     and below). Full width, in the CTA button's style. */
  .oxf-hero__contact {
    display: flex; align-items: center; justify-content: center;
    margin: auto 0; min-height: 52px; border-radius: 0;
    background: var(--oxf-accent); color: var(--oxf-brand);
    font-family: var(--oxf-ui); font-size: 17px; font-weight: 600; text-decoration: none;
    transition: background-color .15s ease;
  }
  .oxf-hero__contact:hover, .oxf-hero__contact:focus-visible { background: var(--oxf-accent-hover); color: var(--oxf-brand); }
  .oxf-hero__stats {
    display: grid; grid-template-columns: 1fr 1fr; gap: 0;
    /* No padding of its own (was 6px 12px 8px, Nov 16 2026): each tile is
       exactly half the screen, so its centred text is centred between the
       screen edge and the divider, and the dividers run edge to edge. */
    margin: 0 -20px; padding: 0;
    background: var(--oxf-brand);
  }
  .oxf-hero__stat {
    justify-content: center; gap: 6px;
    padding: 20px 8px; text-align: center;
  }
  .oxf-hero__stat:nth-child(odd):not(:last-child) { border-right: 1px solid rgba(255,255,255,.18); }
  .oxf-hero__stat:nth-child(-n+2):nth-last-child(n+3) { border-bottom: 1px solid rgba(255,255,255,.18); }
  .oxf-hero__stat-value { order: -1; font-size: 22px; font-weight: 800; line-height: 1.1; }
  .oxf-hero__stat-label {
    font-size: 10px; font-weight: 700; letter-spacing: 0.13em; line-height: 1.4;
    text-transform: uppercase; color: var(--oxf-text-on-brand);
  }

  /* Shorter run from the Inspection gallery to the building (Jake, after
     review): 100px under the gallery instead of 260, and the fade to blue
     fills all of it rather than starting after a white band. */
  .oxf-stage--inspection .oxf-stage__inner { padding-bottom: 100px; }
  .oxf-stages__to-cta { height: 101px; }

  /* Phones keep the full sky (the desktop crop would make the building
     tiny) but stop at the same lawn edge: rows 0-1025 of OXID_EXT. The
     handoff's fade stops are scaled by 1125/1025 to keep their height. */
  .oxf-cta__photo img { aspect-ratio: 2000 / 1025; object-position: 50% 0%; }
  .oxf-cta__fade {
    background: linear-gradient(180deg,
      #004c8c 0%, rgba(0,76,140,0.96) 5.5%, rgba(0,76,140,0.88) 11%,
      rgba(0,76,140,0.75) 16.5%, rgba(0,76,140,0.58) 22%, rgba(0,76,140,0.4) 27.4%,
      rgba(0,76,140,0.24) 32.9%, rgba(0,76,140,0.11) 38.4%, rgba(0,76,140,0.03) 42.8%,
      rgba(0,76,140,0) 46.1%);
  }
}
