/* =========================================================================
   REMAINING PAGES — About hub / Industries hub / Contact
   Design System v1.7. Ported verbatim from claude/mockups/remaining-pages.html
   (owner-approved mockup v3, 2026-07-12). Selectors kept from the mockup
   (.hub-hero/.hubgrid/.hubcard/.ct-*); mockup CSS vars mapped to --veil-*
   tokens. Dark bands (hub-hero, ct) use the 100vw full-bleed technique so
   they run edge-to-edge in the theme content column (same as briefing.css);
   the Contact dark section flows straight into the dark footer.
   Loaded on about / industries-served / contact
   (inc/veil-design-system.php $page_css['remaining']). THEME-30.
   ========================================================================= */

.hub-wrap,
.ct-wrap{max-width:1180px;margin:0 auto;padding:0 40px}
.hub-eb{font-family:var(--veil-font-body);font-weight:800;font-size:12px;letter-spacing:2.4px;text-transform:uppercase;margin:0 0 14px}

/* ---- HUB HERO (full-bleed dark) ---- */
.hub-hero{position:relative;width:100vw;margin-left:calc(50% - 50vw);background:var(--veil-dark-surface);padding:66px 0 58px;color:var(--veil-cream);overflow:hidden}
.hub-hero .hub-eb{color:var(--veil-mist)}
.hub-hero h1{font-family:var(--veil-font-display);font-weight:600;font-size:clamp(34px,3.8vw,50px);line-height:1.08;margin:0 0 14px;max-width:720px;color:var(--veil-cream)}
.hub-hero h1 em{font-style:italic;color:var(--veil-mist)}
.hub-hero p{color:var(--veil-dark-body);font-size:16.5px;line-height:1.7;max-width:600px;margin:0}

/* ---- HUB GRID (cards) ---- */
.hubgrid{padding:60px 0;display:grid;grid-template-columns:1fr 1fr;gap:24px}
.hubgrid.four{grid-template-columns:1fr 1fr}
.hubcard{background:var(--veil-white);border:1px solid var(--veil-hairline);border-radius:16px;padding:34px 32px;box-shadow:0 18px 40px rgba(7,23,18,.06);display:flex;flex-direction:column}
.hubcard .k{font-family:var(--veil-font-body);font-weight:800;font-size:11px;letter-spacing:2px;color:var(--veil-muted);text-transform:uppercase;margin:0 0 12px}
/* A11Y-02 (SC 1.3.1): the card title is an <h2> now (it sat directly under the
   page <h1> as an <h3> — a skipped level). Both tags are matched so the SIZE is
   identical before and after the post_content replay, and so nothing here has
   to change again if the level moves.
   `letter-spacing:normal` is the ONE added declaration and it is a no-op that
   preserves the h3 rendering: Blocksy gives h2 -0.008em (measured -0.2px at
   25px / -0.16px at 20px) and h3 `normal`. Everything else measured identical
   between the two tags at 1440 and 375 — x, y, width, height, size, weight,
   family, colour and margins all unchanged. */
.hubcard h3,.hubcard h2{font-family:var(--veil-font-display);font-weight:600;font-size:25px;letter-spacing:normal;margin:0 0 10px;color:var(--veil-ink)}
.hubcard p{color:var(--veil-muted);font-size:15px;line-height:1.6;margin:0 0 20px}
.hubcard a{font-family:var(--veil-font-body);font-weight:800;font-size:14px;color:var(--veil-link);text-decoration:underline;margin-top:auto}

/* ---- CONTACT — one continuous full-bleed dark section (flows into footer) ---- */
.ct{position:relative;width:100vw;margin-left:calc(50% - 50vw);background:var(--veil-dark-surface);padding:62px 0 96px;color:var(--veil-cream);overflow:hidden}
.ct .hub-eb{color:var(--veil-mist)}
.ct h1{font-family:var(--veil-font-display);font-weight:600;font-size:clamp(34px,3.8vw,48px);line-height:1.08;margin:0 0 12px;color:var(--veil-cream)}
.ct h1 em{font-style:italic;color:var(--veil-mist)}
.ct .intro{color:var(--veil-dark-body);font-size:16px;line-height:1.7;max-width:520px;margin:0 0 44px}
.ct-grid{display:grid;grid-template-columns:1fr 380px;gap:48px}

/* left column: the REAL Gravity Form, seated in the dark form card */
.ct-form{background:#0a1d15;border:1px solid #1d4b38;border-radius:16px;padding:28px}
.ct-form .fl{font-family:var(--veil-font-body);font-weight:700;font-size:12px;color:#9db8a9;margin:14px 0 6px}
.ct-form .fi{background:#04120b;border:1px solid #4a7c63;border-radius:8px;height:40px} /* FIX-01 Lane B: matches the real GF field border below */
.ct-form .fi.ta{height:96px}
.ct-form .btn{display:inline-block;margin-top:18px;background:var(--veil-accent);color:var(--veil-on-accent);font-family:var(--veil-font-body);font-weight:800;font-size:15px;padding:13px 26px;border-radius:10px;text-decoration:none}
/* Gravity Form on the dark card: keep labels/inputs readable on #0a1d15 */
.ct-form .gform_heading,
.ct-form .gform_title{display:none}
.ct-form .gfield_label{font-family:var(--veil-font-body);font-weight:700;font-size:12px;color:#9db8a9}
.ct-form .gfield_required{color:var(--veil-mist)}
/* choice (checkbox/radio) labels + any inline labels: readable on dark */
.ct-form .gchoice label,
.ct-form .gform-field-label--type-inline,
.ct-form legend.gfield_label{color:var(--veil-dark-body)}
.ct-form .gform_wrapper{color:var(--veil-dark-body)}
.ct-form input[type=text],
.ct-form input[type=email],
.ct-form input[type=tel],
.ct-form input[type=url],
.ct-form select,
/* FIX-01 Lane B / QA-05 M-8 (SC 1.4.11): border was #1d4b38 = 1.76:1 against
   the #0a1d15 panel. #4a7c63 is --veil-mist (#7fc9a2) at 55% over that panel
   — same hue family, no new brand colour — and measures 3.63:1 vs the panel
   and 3.97:1 vs the #04120b fill. Fill and panel colours are UNCHANGED. */
.ct-form textarea{background:#04120b;border:1px solid #4a7c63;border-radius:8px;color:var(--veil-cream)}
.ct-form input::placeholder,
.ct-form textarea::placeholder{color:#6f9683}
.ct-form .gform_footer input[type=submit],
.ct-form .gform_footer button{background:var(--veil-accent);color:var(--veil-on-accent);font-family:var(--veil-font-body);font-weight:800;font-size:15px;padding:13px 26px;border:0;border-radius:10px;cursor:pointer}
.ct-form .gfield_description,
.ct-form .gform_validation_errors,
.ct-form .validation_message{color:var(--veil-dark-body)}

/* right column: Direct Line details */
/* A11Y-02 (SC 1.3.1) — see .hubcard above. <h3> kept in the selector so the
   un-replayed post_content renders identically. */
.ct-direct h3,.ct-direct h2{font-family:var(--veil-font-display);font-weight:600;font-size:20px;letter-spacing:normal;color:var(--veil-white);margin:0 0 18px}
.ct-item{border-top:1px solid rgba(127,201,162,.25);padding:16px 0}
.ct-item .lab{font-family:var(--veil-font-body);font-weight:800;font-size:10.5px;letter-spacing:1.6px;color:var(--veil-mist);text-transform:uppercase;margin:0 0 5px}
.ct-item .val{color:#e9f3ee;font-size:15px}
.ct-item .val a{color:#e9f3ee;text-decoration:underline}
.ct-note{margin-top:20px;color:#9db8a9;font-size:13px;line-height:1.6;font-style:italic}

/* THEME-35: cap the real Gravity Forms message textarea on DESKTOP only, so the
   over-tall message box no longer buries the Direct-details column. Scoped to
   min-width:821px so the @820px mobile stack below is untouched (mobile keeps
   the browser default textarea height). */
@media(min-width:821px){
	/* GF's foundation theme forces the message field to min-block-size:18rem
	   (288px) via `.gform-theme--foundation .gfield textarea.large`. Match that
	   selector's specificity (add .ct-form + .gform_wrapper) and override the
	   logical min/size so the message box caps at 132px on desktop. */
	.ct-form .gform_wrapper .gfield textarea.large{height:132px;min-height:132px;block-size:132px;min-block-size:132px;resize:vertical}
	/* pull the Direct-details column up to the form's top edge */
	.ct-grid{align-items:start}
	.ct-direct h3,.ct-direct h2{margin-top:0}
}

/* ---- RESPONSIVE ---- */
@media(max-width:820px){
	.hub-wrap,
	.ct-wrap{padding:0 22px}
	.hubgrid,
	.hubgrid.four{grid-template-columns:1fr;gap:18px}
	.ct-grid{grid-template-columns:1fr;gap:32px}
}

/* =========================================================================
   CLOSING CTA BAND (THEME-42, QA-05 M-10) — About hub / Industries hub
   The .brf-cta / .brf-wrap rules that used to be duplicated here were
   promoted VERBATIM into assets/css/components.css (globally enqueued)
   during the pre-deploy hygiene pass. These hubs still render the same
   approved component from the same markup; see components.css for the rules.
   The Contact page also loads this file but has no .brf-cta markup.
   ========================================================================= */

/* =========================================================================
   FIX-01 LANE B — Contact form accessibility (blocker B6)
   Findings: U-66 (SC 2.4.7 focus indicator), QA-05 M-8 (SC 1.4.11 field
   contrast — fixed on the border declaration above), U-73 (SC 2.5.8 target
   size). Scope: #gform_1 inside `.ct-form` on /about/contact/ only. The
   matching rules for the six white-field instances (#gform_2) live in
   pages/dossier.css. No brand colour, panel colour or field fill changed —
   every value below is an existing --veil-* token or a mist-derived hairline.

   1) SC 2.4.7 — focus indicator.
      Measured before (Playwright, 1440 + 375): every control returned
      `outline: rgba(0,0,0,0) solid 0px`, an unchanged border-color, and only
      an 8%-alpha 1px shadow — i.e. no visible indicator at all.
      --veil-mist (#7fc9a2) is the system's on-dark emphasis token and
      measures 8.98:1 against the #0a1d15 form panel, so the ring is legible
      wherever it lands on this card, including around the accent-green
      submit button (the 2px offset keeps the ring on the panel, not on the
      button fill). `:focus-visible`, not `:focus`, so mouse clicks are
      unaffected. The border also flips to mist as a redundant, non-colour-
      only cue for the field the ring surrounds.
   ========================================================================= */
/* Gravity Forms paints the SUBMIT button's ring through its own token chain
   (`--gf-ctrl-outline-*-focus` -> `--gf-local-outline-*` -> `outline-*`
   longhands), which outranks a plain `outline:` shorthand on the button.
   Retargeting the tokens on the wrapper is therefore the correct hook — and
   it also covers any control GF renders that the explicit list below misses.
   Measured before: 3px rgba(55,127,60,.65) = 2.24:1 vs the panel (fails
   SC 1.4.11 non-text contrast); after: 2px --veil-mist = 8.99:1.
   `.gform-theme` is included so this outranks the per-form <style> block GF
   prints in the body (a two-class selector that would otherwise win on
   source order). No other GF token is touched. */
.ct-form .gform_wrapper.gform-theme{
	--gf-ctrl-outline-color-focus:var(--veil-mist);
	--gf-ctrl-outline-width-focus:2px;
	--gf-ctrl-outline-offset:2px;
	/* GF also paints a 1px #054D0A border inside the Submit button on focus.
	   The resting border is already transparent (`border:0` above); keeping it
	   transparent on focus leaves the mist ring as the single focus affordance
	   and matches the hero-form treatment in pages/dossier.css. */
	--gf-ctrl-btn-border-color-focus-primary:transparent;
	--gf-ctrl-btn-border-color-focus-secondary:transparent;
	--gf-ctrl-btn-border-color-focus-ctrl:transparent;
}
.ct-form input[type=text]:focus-visible,
.ct-form input[type=email]:focus-visible,
.ct-form input[type=tel]:focus-visible,
.ct-form input[type=url]:focus-visible,
.ct-form input[type=number]:focus-visible,
.ct-form select:focus-visible,
.ct-form textarea:focus-visible,
.ct-form .gfield-choice-input:focus-visible,
.ct-form .gform_footer input[type=submit]:focus-visible,
.ct-form .gform_footer button:focus-visible,
.ct-form .btn:focus-visible{
	outline:2px solid var(--veil-mist);
	outline-offset:2px;
}
.ct-form input[type=text]:focus-visible,
.ct-form input[type=email]:focus-visible,
.ct-form input[type=tel]:focus-visible,
.ct-form input[type=url]:focus-visible,
.ct-form input[type=number]:focus-visible,
.ct-form select:focus-visible,
.ct-form textarea:focus-visible{
	border-color:var(--veil-mist);
}

/* 2) SC 2.5.8 (U-73) — "Services you are interested in" checkbox targets.
      Measured before: input 22x22, label 239x21, row 22px tall x6 stacked.
      The whole label row becomes the target (44px min-height) and the box
      itself goes to 24px, which is the SC 2.5.8 minimum in its own right. */
.ct-form .gchoice{
	display:flex;
	align-items:center;
	gap:12px;
	min-height:44px;
}
.ct-form .gfield-choice-input{
	/* GF sizes the box with `block-size/inline-size: var(--gf-local-*)`, which
	   resolves from --gf-ctrl-choice-size (22px). That token is set by the
	   per-form <style> GF prints in the body on an ID selector, so no
	   class-based ancestor can outrank it — declaring it ON the input wins by
	   proximity instead of specificity, and scales the tick with the box.
	   width/height stay as a fallback for GF's non-framework themes. */
	--gf-ctrl-choice-size:24px;
	width:24px;
	height:24px;
	min-width:24px;
	min-height:24px;
	flex:none;
	margin:0;
}
.ct-form .gform-field-label--type-inline{
	display:flex;
	align-items:center;
	min-height:44px;
	/* 12px inline-start padding preserves the box-to-text gap the label
	   previously got from GF's own spacing (measured 12px before this fix);
	   it lives on the label, not as a flex `gap`, because GF sets column-gap
	   on `.gchoice` at a specificity this rule cannot outrank. */
	padding:10px 0 10px 12px;
	margin:0;
	cursor:pointer;
}

/* =========================================================================
   LAUNCH-01 LANE 2 — Contact CLS at mobile widths (blocker B11 / audit-3 P-4)
   Measured before: CLS 0.3207 @375 on /about/contact/, of which 0.3173 is a
   SINGLE shift whose only source is `DIV.ct-direct`.

   ROOT CAUSE (measured in Chromium, not inferred). Gravity Forms renders the
   wrapper server-side as `<div id="gform_wrapper_1" style="display:none">`
   and only reveals it from its conditional-logic init
   (`jQuery('#gform_wrapper_1').show()`). So the form occupies ZERO height
   until jQuery + GF have executed:

     t=934ms  (DOMContentLoaded)  .ct-form = 58px   (padding+border only)
     t=1035ms (GF reveal)         .ct-form = 1237px
     t=1327ms (reCAPTCHA render)  .ct-form = 1315px

   At >=821px `.ct-grid` is `1fr 380px`, so `.ct-direct` is a SIBLING COLUMN
   and the growth displaces nothing. At <=820px the grid collapses to one
   column and `.ct-direct` sits directly BELOW the form, so it is pushed down
   ~1.26 viewport-thirds after first paint. Contact is the conversion page;
   this is the whole of its CLS.

   FIX: reserve the form panel's final height so the reveal fills space that
   was already allocated. Nothing about the form or the panel is restyled —
   this adds one property, `min-height`, and only below 821px.

   The values are MEASURED final `.ct-form` heights (border-box, so they
   include the 28px padding and 1px border), sampled at 12 widths from 320 to
   820 after `networkidle`, with the form fully initialised and reCAPTCHA
   rendered. The height is a step function with exactly one step: one label
   line re-wraps between 460px and 470px.

     320-460px : 1360.1px  -> reserve 1361px
     470-820px : 1341.5px  -> reserve 1342px

   Over-reservation is therefore <=1px at any sampled width (<=20px in the
   461-469px band, which was not sampled individually). Under-reservation
   would leave residual shift; over-reservation would leave dead space inside
   the dark card, so both tiers are set to the smallest integer >= measured.

   Known limitation: with JavaScript disabled the form never reveals at all
   (GF's own behaviour, unchanged by this rule) and the panel renders as a
   reserved empty box rather than a 58px empty box. GF is non-functional
   without JS either way.
   ========================================================================= */
@media(max-width:820px){
	.ct-form{min-height:1342px}
}
@media(max-width:469px){
	.ct-form{min-height:1361px}
}

/* ABT-03 (2026-11-23, owner-approved from claude/mockups/2026-11-23-careers/v2-about-1440.png):
   the About hub has three destination cards (Our Story, Founder, Careers). Three across
   on desktop only; below 1000px the base two-column and one-column rules apply. */
@media(min-width:1000px){.hubgrid.three{grid-template-columns:1fr 1fr 1fr}}
