/* Corporate homepage reference — Executive Navy, photo hero (visual enhancement 2026-12-03)
   Approved architectural image 01-Next-Rise%20%283%29.webp (WebP 1586x992, 16:10) is the
   primary homepage hero. Two-column hero: copy left, photo right; the reduced
   H1 (clamp 1.75rem/3.4vw/2.6rem) stays fully visible. */
.reference-hero{background:radial-gradient(ellipse at 85% 48%, #163864 0%, #0b203e 39%, #08182f 83%);color:#fff}
.reference-hero-inner{display:grid;grid-template-columns:minmax(0,1.04fr) minmax(0,.96fr);align-items:start;gap:2rem;padding-block:clamp(1rem,2.5vw,1.75rem)} /* F10 (Dec 4 2026): max-width:none removed — the hero now uses the same .wrap container (1180px, h1 at x=170 at 1440) as every inner page; F11: hero padding tightened. */
.reference-hero-inner>*{min-width:0;min-height:0}/* QA 2026-12-04: grid children must be allowed to shrink below their min-content size, or the hero can overflow narrow viewports. CLS fix: min-height:0 stops the grid automatic-minimum-height blowout from resizing the hero photo wrapper after the image loads. */
.hero-photo-wrap{width:100%;max-width:100%;justify-self:stretch;min-width:0;min-height:0;aspect-ratio:16/10;overflow:hidden;border-radius:16px;border:1px solid rgba(201,165,92,.45);box-shadow:0 24px 48px -24px rgba(0,0,0,.55);margin:0;margin-top:2rem}/* QA 2026-12-04: margin:0 removes the browser default 40px figure margin that pushed the photo ~20px past the viewport at 360/390px; min-width:0 stops grid min-content blowout. CLS fix 2026-12-04: min-height:0 stops the grid automatic-minimum-height blowout; aspect-ratio:16/10 reserves the box before the image loads (width/height attrs 1586x992 on the img agree within 0.1px). Reserved vs rendered: 360px -> 320x200 vs 320x200.1; 390px -> 350x218.8 vs 350x218.7; 768px -> 380x237.5 vs 380x237.6; desktop -> 551x344.4 vs 551x344.5. No resize after load, no horizontal overflow. *//* margin-top aligns the photo top with the H1 top (eyebrow + its margin); grid align-items:start removes the centred empty space above the image. Photo column is .96fr of 2fr = 48% of the hero content area, gap aside. */
.hero-photo{width:100%;height:auto;object-fit:cover;display:block}/* CLS fix 2026-12-04: height:auto (was height:100%) so the image's own width/height attributes (1586x992) reserve its height before it loads — the standard CLS-proof pattern. height:100% depended on the figure's aspect-ratio height resolving inside the grid, which is the suspected shift mechanism. The figure keeps aspect-ratio:16/10 as its reserved box; rendered img height agrees within 0.1px at every viewport. */
.reference-hero-copy{position:relative;z-index:2}
.reference-eyebrow{font-family:var(--display);font-size:.78rem;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:#7CC8FF;margin:0 0 1rem}
.reference-hero h1{font-family:var(--display);font-size:clamp(1.75rem,3.4vw,2.6rem);font-weight:800;letter-spacing:-.02em;line-height:1.15;color:#fff;margin:0 0 0.9rem;max-width:none;max-inline-size:none}
.reference-hero-lead{font-family:var(--body);color:#c9d8ea;font-size:clamp(1.05rem,1.5vw,1.2rem);line-height:1.5;max-width:32rem;margin:0 0 1.25rem}
.reference-hero-actions{display:flex;gap:.7rem;flex-wrap:wrap}
.reference-primary,.reference-secondary{font:700 1rem var(--body);display:inline-flex;align-items:center;justify-content:center;text-decoration:none;border-radius:999px;padding:.9rem 1.8rem;min-height:52px;letter-spacing:.01em;transition:transform .2s ease,box-shadow .2s ease,background .2s ease}
.reference-primary{background:linear-gradient(135deg,#E4C98E 0%,var(--gold) 100%);color:var(--navy);box-shadow:0 12px 28px -12px rgba(201,165,92,.8)}
.reference-primary:hover{background:linear-gradient(135deg,#EBD6A6 0%,#DDBF7E 100%);color:var(--navy);transform:translateY(-2px);box-shadow:0 18px 32px -12px rgba(201,165,92,.9)}
.reference-secondary{color:#fff;border:1.5px solid rgba(255,255,255,.42);background:rgba(255,255,255,.04)}
.reference-secondary:hover{color:#fff;background:rgba(255,255,255,.12);border-color:#fff}
@media(max-width:800px){.reference-hero-inner{grid-template-columns:minmax(0,1fr);gap:1.5rem;padding-block:2rem}.hero-photo-wrap{max-width:min(380px,100%);margin-top:0}.reference-hero h1{font-size:clamp(1.6rem,6vw,2.1rem);line-height:1.15}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
html[dir="rtl"] .reference-hero h1, html[dir="rtl"] .reference-hero-lead { font-family: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif; }
.executive-home .reference-hero { background: radial-gradient(ellipse at 85% 48%, #163864 0%, #0b203e 39%, #08182f 83%); }
.executive-home .reference-hero h1 { max-inline-size: none; max-width: none; font-size: clamp(1.75rem, 3.4vw, 2.6rem); line-height: 1.15; letter-spacing: -.02em; }
.executive-home .reference-hero-actions { margin-block-start: 1.5rem; }
.executive-home .hero-outcomes li { padding-inline-start: 1.3rem; padding-inline-end: 0; }
.executive-home .hero-outcomes li::before { left: auto; inset-inline-start: 0; }
.executive-home .divisions { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); gap: 1.25rem; padding: 0; }
.executive-home .division { display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 1rem; padding: 1.25rem; border-block-start: 3px solid var(--gold); }
.executive-home .division a { margin-block-start: auto; }
.executive-home #divisions-title { scroll-margin-top: 8rem; }
html[dir="rtl"] .executive-home .reference-hero h1 { max-inline-size: none; max-width: none; letter-spacing: normal; }

/* Final homepage refinements 2026-12-03: "What clients gain" as a professional
   three-column section immediately below the hero (moved out of the hero copy).
   Cards use Mist + gold top rule, Executive Navy headings; grid mirrors in RTL. */
.gains{background:#fff;padding-block:clamp(1.25rem,3vw,2rem)}
.gains h2{margin:0 0 1rem}
.gains-list{list-style:none;padding:0;margin:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.25rem}
.gains-list li{background:var(--mist);border-block-start:3px solid var(--gold);border-radius:16px;padding:1.1rem 1.25rem}
.gains-list h3{font-size:1.15rem;margin:0 0 .5rem}
.gains-list p{margin:0;font-size:1rem;line-height:1.55;color:var(--text)}

/* F1/F2 — Group 1 phone fixes (Dec 4 2026, owner review F1-F35).
   This block sits LAST in the file on purpose: the base .gains-list 3-column rule
   and the .executive-home .reference-hero h1 rule (both later in source than the
   <=800px media query, same or higher specificity) otherwise override the phone
   rules — that is why the gains stayed 3 columns at 500px and the phone H1 size
   never applied. F1: the hero photo can never exceed the content box —
   single-column grid, wrap max-width 100%, image max-width 100%, height:auto
   keeps the CLS-proof width/height 1586x992 reserve + aspect-ratio 16/10.
   Arithmetic: 360px viewport -> content 320px -> photo 320px; 390px -> 350px ->
   350px; 768px -> content ~707px, photo capped at 380px. No horizontal scroll,
   no cut-off photo, no CLS change. F2: 'What clients gain' stacks to ONE column
   under 640px. */
@media (max-width:640px){
  .reference-hero-inner{grid-template-columns:minmax(0,1fr)}
  .hero-photo-wrap{width:100%;max-width:100%;margin-inline:0}
  .hero-photo{width:100%;max-width:100%;height:auto}
  .executive-home .reference-hero h1{font-size:clamp(1.6rem,6vw,2.1rem);line-height:1.15}
  .gains-list{grid-template-columns:minmax(0,1fr)}
}

/* Group 3 type system + Arabic (Dec 4 2026, owner review F1-F35). */
/* F7 — eyebrow label minimum 14px: was 0.78rem (12.5px). This file loads
   after site.css, so the size is set here, not only there. Gains card
   headings to the 19px H3 scale (were 1.15rem). */
.reference-eyebrow { font-size: 0.875rem; }
.gains-list h3 { font-size: 1.1875rem; }
/* F8 — Arabic hero: headings line-height ~1.6 (was ~1.35, raised Dec 4 2026), lead body 18px. More
   specific than the site.css RTL rule so it wins over the hero h1's own
   1.15 line-height in this file. */
html[dir="rtl"] .reference-hero h1, html[dir="rtl"] .executive-home .reference-hero h1 { line-height: 1.6; } /* Group 3 remediation F8 (Dec 4 2026): was 1.35 — review called it too tight. Computed: home hero h1 41.6px x 1.6 = 66.56px line-height, ratio 1.6. */
html[dir="rtl"] .reference-hero-lead { font-size: 1.125rem; line-height: 1.7; }
