/* ============================================================
   CORB DESIGN SYSTEM — Colors & Type
   Corb Ltd & Corb Projects Ltd
   MEP design, build and facilities maintenance
   ============================================================ */

/* --- Font: Quicksand (brand font, matches Corb logo) ----------
   Self-hosted from /fonts/. Fallback Nunito then Comfortaa.
   Importing this stylesheet is enough; no <link> tags needed.
   ----------------------------------------------------------- */

@font-face {
  font-family: "Quicksand";
  src: url("assets/394069514a.woff2") format("woff2"), url("assets/4d3b72ff15.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Quicksand";
  src: url("assets/2f87cf0e6a.woff2") format("woff2"), url("assets/61504eaec8.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Quicksand";
  src: url("assets/afee8fe70f.woff2") format("woff2"), url("assets/04b8198132.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Quicksand";
  src: url("assets/a90931ef36.woff2") format("woff2"), url("assets/339f8d3e09.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Quicksand";
  src: url("assets/02890c1cf6.woff2") format("woff2"), url("assets/111e880f4d.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* ===== BRAND COLOURS ===== */
  --corb-deep-blue:   #0f4877;  /* primary dark background */
  --corb-blue:        #1b75bc;  /* logo blue, lighter accent */
  --corb-red:         #f15a29;  /* accent — risks, warnings */
  --corb-orange:      #f7931e;  /* accent — opportunities, in-progress */
  --corb-green:       #70bf44;  /* accent — solutions, success */
  --tagline-dark:     #39353a;  /* primary text on light bg */
  --ltd-grey:         #6d6f71;  /* secondary text, fine print */
  --white:            #ffffff;

  /* ===== OVERLAYS (on dark blue panels) ===== */
  --overlay-blue:     rgba(27, 117, 188, 0.4);
  --overlay-red:      rgba(241, 90, 41, 0.3);
  --overlay-orange:   rgba(247, 147, 30, 0.3);
  --overlay-green:    rgba(112, 191, 68, 0.3);

  /* ===== SEMANTIC ROLES ===== */
  --bg:               var(--white);
  --bg-inverse:       var(--corb-deep-blue);
  --fg:               var(--tagline-dark);
  --fg-muted:         var(--ltd-grey);
  --fg-inverse:       var(--white);
  --fg-inverse-muted: rgba(255, 255, 255, 0.6);
  --accent:           var(--corb-blue);
  --rule:             rgba(15, 72, 119, 0.12);
  --rule-inverse:     rgba(255, 255, 255, 0.18);

  /* Functional accents — only where they carry meaning */
  --signal-risk:        var(--corb-red);
  --signal-opportunity: var(--corb-orange);
  --signal-solution:    var(--corb-green);

  /* ===== TYPE — FAMILY ===== */
  --font-sans: "Quicksand", "Nunito", "Comfortaa", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* ===== TYPE — SCALE (16:9 1920×1080 slides) ===== */
  --fs-display:     88px;   /* cover headlines */
  --fs-h1:          64px;   /* section-opener titles */
  --fs-h2:          44px;   /* content slide titles */
  --fs-h3:          28px;   /* sub-heads */
  --fs-h4:          20px;   /* card titles */
  --fs-body:        18px;
  --fs-body-lg:     22px;
  --fs-body-sm:     15px;
  --fs-label:       11px;   /* small-caps tracked labels */
  --fs-caption:     10px;   /* fine print, page numbers */

  /* ===== TYPE — WEIGHT ===== */
  --fw-light:    300;
  --fw-regular:  400;
  --fw-medium:   500;
  --fw-semibold: 600;
  --fw-bold:     700;

  /* ===== TYPE — TRACKING / LEADING ===== */
  --tracking-tight:  -0.5px;   /* large headlines */
  --tracking-normal: 0;
  --tracking-label:  2.5px;    /* small-caps labels */
  --leading-tight:   1.1;
  --leading-snug:    1.25;
  --leading-normal:  1.45;
  --leading-loose:   1.6;

  /* ===== LAYOUT ===== */
  --margin-dark-slide:  60px;
  --margin-light-slide: 44px;
  --header-band-h:      50px;
  --diagonal-panel-w:   32%;   /* of slide width */

  /* ===== ELEVATION (used sparingly — brief says no drop shadows) ===== */
  --hairline:         1px solid var(--rule);
  --hairline-inverse: 1px solid var(--rule-inverse);

  /* ===== RADII ===== */
  --r-none: 0;
  --r-sm:   2px;
  --r-md:   4px;
  --r-bar:  4px 4px 0 0; /* III mark — rounded top, flat bottom */
}

/* ============================================================
   BASE
   ============================================================ */
html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  font-weight: var(--fw-regular);
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================================
   SEMANTIC TYPE ROLES
   ============================================================ */
.t-display {
  font-family: var(--font-sans);
  font-weight: var(--fw-bold);
  font-size: var(--fs-display);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
}
.t-h1 {
  font-weight: var(--fw-bold);
  font-size: var(--fs-h1);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
}
.t-h2 {
  font-weight: var(--fw-bold);
  font-size: var(--fs-h2);
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-tight);
}
.t-h3 {
  font-weight: var(--fw-semibold);
  font-size: var(--fs-h3);
  line-height: var(--leading-snug);
}
.t-h4 {
  font-weight: var(--fw-semibold);
  font-size: var(--fs-h4);
  line-height: var(--leading-snug);
}
.t-body-lg {
  font-weight: var(--fw-regular);
  font-size: var(--fs-body-lg);
  line-height: var(--leading-normal);
}
.t-body {
  font-weight: var(--fw-regular);
  font-size: var(--fs-body);
  line-height: var(--leading-normal);
}
.t-body-sm {
  font-weight: var(--fw-regular);
  font-size: var(--fs-body-sm);
  line-height: var(--leading-normal);
}
.t-label {
  font-weight: var(--fw-semibold);
  font-size: var(--fs-label);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
}
.t-caption {
  font-weight: var(--fw-regular);
  font-size: var(--fs-caption);
  color: var(--fg-muted);
  letter-spacing: 0.5px;
}

/* Inverse type for dark blue backgrounds */
.t-on-dark        { color: var(--fg-inverse); }
.t-on-dark-muted  { color: var(--fg-inverse-muted); }
.t-on-dark-light  { font-weight: var(--fw-light); color: var(--fg-inverse); }
/* ============================================================
   CORB — Shared site styles (Corb Ltd + Corb Projects)
   Futuristic-minimalist interpretation of the Corb design system.
   Deep blue, oversized light type, generous negative space,
   square corners, hairline rules, the signature diagonal panel.
   ============================================================ */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--fg);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* layout shell */
.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 clamp(24px, 5vw, 64px); }
.eyebrow {
  font-size: var(--fs-label); font-weight: var(--fw-semibold);
  letter-spacing: var(--tracking-label); text-transform: uppercase;
  color: var(--corb-blue);
  display: inline-flex; align-items: center; gap: 14px;
}
.eyebrow::before { content: ""; width: 34px; height: 2px; background: var(--corb-blue); flex: 0 0 auto; }
.eyebrow.on-dark { color: rgba(255,255,255,0.78); }

/* ---------- NAV ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--corb-deep-blue);
  border-bottom: 1px solid var(--rule-inverse);
}
.nav .inner {
  height: 74px; display: flex; align-items: center; justify-content: space-between;
  max-width: 1280px; margin: 0 auto; padding: 0 clamp(24px, 5vw, 64px);
}
.nav .brand { display: flex; align-items: center; gap: 18px; }
.nav .brand img { height: 28px; width: auto; }
.nav .back {
  font-size: var(--fs-label); font-weight: var(--fw-semibold);
  letter-spacing: var(--tracking-label); text-transform: uppercase;
  color: var(--fg-inverse-muted); display: inline-flex; align-items: center; gap: 8px;
  position: relative; padding-right: 18px; border-right: 1px solid var(--rule-inverse);
  transition: color 0.3s ease;
}
.nav .back:hover { color: var(--white); }
.nav .back .x { transition: transform 0.35s cubic-bezier(.2,.7,.2,1); display: inline-block; }
.nav .back:hover .x { transform: translateX(-5px); }
.nav .links { display: flex; align-items: center; gap: 34px; }
.nav .links a {
  font-size: 14px; font-weight: var(--fw-medium); color: var(--fg-inverse-muted);
  letter-spacing: 0.2px; transition: color 0.25s ease; position: relative; padding: 6px 0;
}
.nav .links a:hover { color: var(--white); }
.nav .links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--corb-blue); transition: width 0.3s ease;
}
.nav .links a:hover::after { width: 100%; }
.nav .cta {
  background: var(--corb-blue); color: var(--white);
  padding: 11px 22px; font-size: 13px; font-weight: var(--fw-semibold);
  letter-spacing: 0.4px; transition: background 0.3s ease;
}
.nav .cta:hover { background: #2487d6; }
.nav .menu-btn { display: none; background: none; border: 0; color: var(--white); cursor: pointer; padding: 11px; }
.nav .menu-btn svg { width: 26px; height: 26px; display: block; }

/* mobile drawer */
.drawer { display: none; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 14px; font-weight: var(--fw-semibold); letter-spacing: 0.4px;
  padding: 15px 28px; cursor: pointer; border: 0;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.btn .arrow { transition: transform 0.4s cubic-bezier(.2,.7,.2,1); }
.btn:hover .arrow { transform: translateX(6px); }
.btn-primary { background: var(--corb-blue); color: var(--white); }
.btn-primary:hover { background: #2487d6; }
.btn-ghost-dark { background: transparent; color: var(--white); border: 1px solid var(--rule-inverse); }
.btn-ghost-dark:hover { border-color: var(--white); background: rgba(255,255,255,0.06); }
.btn-ghost { background: transparent; color: var(--corb-deep-blue); border: 1px solid var(--rule); }
.btn-ghost:hover { border-color: var(--corb-blue); color: var(--corb-blue); }

/* ---------- HERO ---------- */
/* hero + first dark section share one continuous diagonal */
.hero-flow {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--corb-deep-blue);
}
.hero-flow > .hero,
.hero-flow > .section.dark { background: transparent; position: relative; z-index: 2; }
.hero-flow .diag {
  position: absolute; inset: 0 0 0 auto; width: 46%; z-index: 1;
  background: var(--overlay-blue);
  clip-path: polygon(46% 0, 100% 0, 100% 100%, 0 100%);
  pointer-events: none;
  transition: transform 0.8s cubic-bezier(.2,.7,.2,1); will-change: transform;
}
.hero-flow .diag-edge {
  position: absolute; inset: 0 0 0 auto; width: 46%; z-index: 1;
  background: linear-gradient(rgba(255,255,255,0.30), rgba(255,255,255,0.30));
  clip-path: polygon(46% 0, 46.18% 0, 0.18% 100%, 0 100%);
  pointer-events: none;
}
.hero {
  position: relative; background: var(--corb-deep-blue); color: var(--white);
  overflow: hidden; isolation: isolate;
}
.hero .ambient {
  position: absolute; inset: -100px -10%; z-index: 0; pointer-events: none;
  background:
    radial-gradient(38% 50% at 26% 34%, rgba(27,117,188,0.42), transparent 70%),
    radial-gradient(34% 44% at 80% 72%, rgba(27,117,188,0.26), transparent 70%);
  transition: transform 0.7s cubic-bezier(.2,.7,.2,1); will-change: transform;
}
.hero .inner {
  position: relative; z-index: 2;
  max-width: 1280px; margin: 0 auto; padding: clamp(70px, 13vh, 150px) clamp(24px, 5vw, 64px) clamp(60px, 11vh, 120px);
}
.hero h1 {
  margin: 30px 0 0; max-width: 17ch;
  font-weight: var(--fw-light); font-size: clamp(40px, 6.4vw, 92px);
  line-height: 1.02; letter-spacing: var(--tracking-tight); text-wrap: balance;
}
.hero h1 b { font-weight: var(--fw-bold); }
.hero .sub {
  margin: 34px 0 0; max-width: 56ch;
  font-weight: var(--fw-light); font-size: clamp(17px, 1.6vw, 22px); line-height: 1.55;
  color: rgba(255,255,255,0.82);
}
.hero .actions { margin-top: 46px; display: flex; flex-wrap: wrap; gap: 16px; }

/* hero stat strip */
.hero .stats {
  position: relative; z-index: 2;
  border-top: 1px solid var(--rule-inverse);
  max-width: 1280px; margin: 0 auto; padding: 0 clamp(24px, 5vw, 64px);
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.hero .stats .s { padding: 30px 0; }
.hero .stats .s:not(:last-child) { border-right: 1px solid var(--rule-inverse); padding-right: 20px; }
.hero .stats .s .n { font-weight: var(--fw-light); font-size: clamp(30px, 3.4vw, 46px); letter-spacing: -0.5px; }
.hero .stats .s .l { margin-top: 6px; font-size: 13px; color: var(--fg-inverse-muted); font-weight: var(--fw-medium); }

/* ---------- SECTION ---------- */
.section { padding: clamp(72px, 11vh, 130px) 0; position: relative; }
.section.dark { background: var(--corb-deep-blue); color: var(--white); }
.section.tint { background: #f4f7fa; }
.section-head { max-width: 760px; margin-bottom: clamp(44px, 6vh, 72px); }
.section-head h2 {
  margin: 22px 0 0; font-weight: var(--fw-light);
  font-size: clamp(30px, 4vw, 56px); line-height: 1.06; letter-spacing: var(--tracking-tight);
  text-wrap: balance;
}
.section-head h2 b { font-weight: var(--fw-bold); }
.section-head p {
  margin: 22px 0 0; font-size: clamp(16px, 1.4vw, 19px); line-height: 1.6;
  color: var(--fg-muted); font-weight: var(--fw-regular); max-width: 58ch;
}
.section.dark .section-head p { color: rgba(255,255,255,0.74); }

/* ---------- SERVICES GRID ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.svc {
  background: var(--white); padding: 38px 34px 42px; position: relative;
  transition: background 0.35s ease; min-height: 232px; display: flex; flex-direction: column;
}
.svc:hover { background: #f4f7fa; }
.svc .ico { color: var(--corb-blue); }
.svc .ico svg { width: 30px; height: 30px; stroke-width: 1.6; }
.svc .num {
  position: absolute; top: 34px; right: 34px;
  font-size: var(--fs-label); font-weight: var(--fw-semibold);
  letter-spacing: var(--tracking-label); color: var(--ltd-grey);
}
.svc h3 { margin: 26px 0 0; font-weight: var(--fw-semibold); font-size: 21px; letter-spacing: -0.2px; }
.svc p { margin: 12px 0 0; font-size: 15px; line-height: 1.55; color: var(--fg-muted); }
.svc .bar { margin-top: auto; padding-top: 22px; display: flex; gap: 4px; }
.svc .bar i { width: 22px; height: 14px; border-radius: 4px 4px 0 0; }
.svc .bar i:nth-child(1) { background: var(--corb-red); height: 18px; }
.svc .bar i:nth-child(2) { background: var(--corb-orange); height: 14px; }
.svc .bar i:nth-child(3) { background: var(--corb-green); height: 10px; }

/* ---------- PROJECT PANELS ---------- */
.proj-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.proj { position: relative; overflow: hidden; border: 1px solid var(--rule); background: var(--white); }
.proj .vis { position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--corb-deep-blue); }
.proj .vis .grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.10) 1px, transparent 1px);
  background-size: 38px 38px;
  transition: transform 0.6s cubic-bezier(.2,.7,.2,1);
}
.proj:hover .vis .grid-bg { transform: scale(1.06); }
/* Real project photography / model render inside the card frame */
.proj .vis .shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; transition: transform 0.7s cubic-bezier(.2,.7,.2,1); }
.proj:hover .vis .shot { transform: scale(1.05); }
.proj .vis.media { background: #0b3357; }
.proj .vis.media .grid-bg { display: none; }
.proj .vis.media::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(11,46,79,0.55) 0%, rgba(11,46,79,0) 34%, rgba(11,46,79,0) 62%, rgba(11,46,79,0.5) 100%); }
.proj .vis.media .panel-diag { z-index: 1; background: rgba(27,117,188,0.30); }
.proj .vis.media .tag, .proj .vis.media .ico { z-index: 2; }
.proj .vis .panel-diag {
  position: absolute; inset: 0 0 0 auto; width: 50%;
  background: var(--overlay-blue);
  clip-path: polygon(40% 0, 100% 0, 100% 100%, 0 100%);
}
.proj .vis .ico { position: absolute; left: 28px; bottom: 24px; color: rgba(255,255,255,0.92); }
.proj .vis .ico svg { width: 40px; height: 40px; stroke-width: 1.4; }
.proj .vis .tag {
  position: absolute; top: 22px; left: 28px;
  font-size: var(--fs-label); font-weight: var(--fw-semibold);
  letter-spacing: var(--tracking-label); text-transform: uppercase; color: rgba(255,255,255,0.82);
}
.proj .body { padding: 28px 30px 30px; }
.proj .body h3 { margin: 0; font-weight: var(--fw-semibold); font-size: 22px; letter-spacing: -0.3px; }
.proj .body .meta { margin: 8px 0 0; font-size: 14px; color: var(--fg-muted); }
.proj .body .specs { margin: 22px 0 0; display: flex; gap: 28px; border-top: 1px solid var(--rule); padding-top: 18px; }
.proj .body .specs div { font-size: 13px; color: var(--fg-muted); }
.proj .body .specs div b { display: block; color: var(--fg); font-weight: var(--fw-semibold); font-size: 17px; margin-bottom: 2px; }

/* ---------- SECTORS ---------- */
.sector-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--rule-inverse); border: 1px solid var(--rule-inverse); }
.sector { background: var(--corb-deep-blue); padding: 30px 30px; display: flex; align-items: center; gap: 18px; transition: background 0.35s ease; }
.sector:hover { background: rgba(27,117,188,0.22); }
.sector .ico { color: var(--corb-blue); flex: 0 0 auto; }
.sector .ico svg { width: 26px; height: 26px; stroke-width: 1.7; }
.sector span { font-size: 17px; font-weight: var(--fw-medium); }

/* ---------- ABOUT / SPLIT ---------- */
.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.split .vis { position: relative; aspect-ratio: 4/5; background: var(--corb-deep-blue); overflow: hidden; border: 1px solid var(--rule); }
.split .vis .grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 44px 44px;
}
.split .vis .panel-diag { position: absolute; inset: 0 0 0 auto; width: 60%; background: var(--overlay-blue); clip-path: polygon(36% 0, 100% 0, 100% 100%, 0 100%); }
.split .vis .stamp { position: absolute; left: 32px; bottom: 30px; color: var(--white); }
.split .vis .stamp .big { font-weight: var(--fw-light); font-size: 60px; line-height: 1; letter-spacing: -1px; }
.split .vis .stamp .lbl { margin-top: 8px; font-size: 13px; color: rgba(255,255,255,0.7); letter-spacing: 0.4px; }
.split .copy h2 { margin: 22px 0 0; font-weight: var(--fw-light); font-size: clamp(28px, 3.6vw, 50px); line-height: 1.08; letter-spacing: var(--tracking-tight); }
.split .copy h2 b { font-weight: var(--fw-bold); }
.split .copy p { margin: 22px 0 0; font-size: 17px; line-height: 1.6; color: var(--fg-muted); }
.split .copy .points { margin: 30px 0 0; display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.split .copy .points .pt { background: var(--white); padding: 20px 22px; display: flex; gap: 16px; align-items: flex-start; }
.split .copy .points .pt .k { color: var(--corb-blue); flex: 0 0 auto; margin-top: 2px; }
.split .copy .points .pt .k svg { width: 22px; height: 22px; stroke-width: 1.7; }
.split .copy .points .pt b { font-weight: var(--fw-semibold); font-size: 16px; }
.split .copy .points .pt span { color: var(--fg-muted); font-size: 14px; }
.split .copy .points .pt .txt { display: block; }
.split .copy .points .pt .txt span { display: block; margin-top: 3px; }

/* ---------- ACCREDITATIONS ---------- */
.accred-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.accred { background: var(--white); aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 20px; transition: background 0.3s ease; }
.accred:hover { background: #f4f7fa; }
.accred .mk { color: var(--corb-deep-blue); }
.accred .mk svg { width: 38px; height: 38px; stroke-width: 1.4; }
.accred .nm { font-size: 13px; font-weight: var(--fw-semibold); letter-spacing: 0.4px; text-align: center; color: var(--fg); }
.accred .sub { font-size: 11px; color: var(--fg-muted); text-align: center; margin-top: -8px; }

/* ---------- CONTACT / CTA ---------- */
.contact { position: relative; overflow: hidden; }
.contact .grid-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(120% 100% at 70% 30%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(120% 100% at 70% 30%, #000 40%, transparent 100%);
}
.contact .inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 0.9fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.contact h2 { margin: 22px 0 0; font-weight: var(--fw-light); font-size: clamp(32px, 4.4vw, 60px); line-height: 1.04; letter-spacing: var(--tracking-tight); }
.contact h2 b { font-weight: var(--fw-bold); }
.contact .lead { margin: 24px 0 0; font-size: 18px; line-height: 1.6; color: rgba(255,255,255,0.78); max-width: 46ch; }
.contact .deets { margin: 38px 0 0; display: grid; gap: 1px; background: var(--rule-inverse); border: 1px solid var(--rule-inverse); max-width: 460px; }
.contact .deets .row { background: var(--corb-deep-blue); padding: 20px 22px; display: flex; align-items: center; gap: 16px; }
.contact .deets .row .k { color: var(--corb-blue); flex: 0 0 auto; }
.contact .deets .row .k svg { width: 22px; height: 22px; stroke-width: 1.7; }
.contact .deets .row .lbl { font-size: 11px; letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--fg-inverse-muted); }
.contact .deets .row .val { display: block; font-size: 16px; font-weight: var(--fw-medium); margin-top: 2px; }

/* form */
.form { background: rgba(255,255,255,0.04); border: 1px solid var(--rule-inverse); padding: 34px; }
.form .field { margin-bottom: 20px; }
.form label { display: block; font-size: 11px; letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--fg-inverse-muted); margin-bottom: 10px; }
.form input, .form textarea, .form select {
  width: 100%; background: rgba(255,255,255,0.04); border: 1px solid var(--rule-inverse);
  color: var(--white); padding: 14px 16px; font-family: var(--font-sans); font-size: 15px;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.form input:focus, .form textarea:focus, .form select:focus { outline: none; border-color: var(--corb-blue); background: rgba(27,117,188,0.10); }
.form textarea { resize: vertical; min-height: 110px; }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form select option { color: #111; }

/* ---------- FOOTER ---------- */
.footer { background: #0a3258; color: var(--white); border-top: 1px solid var(--rule-inverse); }
.footer .inner { max-width: 1280px; margin: 0 auto; padding: clamp(48px, 8vh, 80px) clamp(24px, 5vw, 64px) 40px; }
.footer .top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer .brand img { height: 30px; width: auto; margin-bottom: 22px; }
.footer .brand p { font-size: 14px; line-height: 1.6; color: rgba(255,255,255,0.6); max-width: 30ch; }
.footer .col h3 { font-size: 11px; letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--fg-inverse-muted); margin: 0 0 18px; }
.footer .col a, .footer .col p { display: block; font-size: 14px; color: rgba(255,255,255,0.74); margin-bottom: 12px; transition: color 0.25s ease; }
.footer .col a:hover { color: var(--white); }
.footer .bottom { margin-top: clamp(40px, 6vh, 64px); padding-top: 26px; border-top: 1px solid var(--rule-inverse); display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer .bottom .legal { font-size: 13px; color: rgba(255,255,255,0.7); }
.footer .bottom .switch { display: flex; align-items: center; gap: 10px; font-size: 13px; color: rgba(255,255,255,0.6); }
.footer .bottom .switch a { color: var(--white); border-bottom: 1px solid var(--rule-inverse); padding-bottom: 2px; transition: border-color 0.3s ease; }
.footer .bottom .switch a:hover { border-color: var(--white); }

/* ---------- REVEAL ANIMATION ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s cubic-bezier(.2,.7,.2,1), transform 0.8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none; }
  .hero .ambient, .hero-flow .diag { transition: none; }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1080px) {
  .footer .top { grid-template-columns: 1fr 1fr; gap: 36px; }
  .accred-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
  .nav .links, .nav .cta { display: none; }
  .nav .menu-btn { display: block; }
  .drawer { display: block; position: fixed; inset: 74px 0 0; z-index: 49; background: var(--corb-deep-blue); transform: translateY(-110%); visibility: hidden; transition: transform 0.4s cubic-bezier(.2,.7,.2,1), visibility 0s linear 0.4s; padding: 30px clamp(24px,5vw,64px); }
  .drawer.open { transform: none; visibility: visible; transition: transform 0.4s cubic-bezier(.2,.7,.2,1), visibility 0s; }
  .drawer a { display: block; font-size: 22px; font-weight: var(--fw-light); padding: 18px 0; border-bottom: 1px solid var(--rule-inverse); color: var(--white); }
  .svc-grid { grid-template-columns: 1fr 1fr; }
  .proj-grid { grid-template-columns: 1fr; }
  .sector-grid { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; }
  .split .vis { aspect-ratio: 16/10; }
  .contact .inner { grid-template-columns: 1fr; }
  .hero .stats { grid-template-columns: 1fr 1fr; }
  .hero .stats .s:nth-child(2) { border-right: 0; }
  .hero .stats .s:nth-child(odd) { border-right: 1px solid var(--rule-inverse); }
}
@media (max-width: 560px) {
  .svc-grid { grid-template-columns: 1fr; }
  .sector-grid { grid-template-columns: 1fr; }
  .accred-grid { grid-template-columns: 1fr 1fr; }
  .form .row2 { grid-template-columns: 1fr; }
  .footer .top { grid-template-columns: 1fr; }
  .hero .stats { grid-template-columns: 1fr 1fr; }
}
/* ============================================================
   CORB — Elevated animation layer
   Signature animated discipline icons (fire / electrical / water
   / building), page-transition sweep, hero choreography,
   staggered reveals and refined hover motion.
   ============================================================ */

/* ---------- PAGE TRANSITION SWEEP ---------- */
.ptrans { position: fixed; inset: 0; z-index: 9999; pointer-events: none; overflow: hidden; }
.ptrans-sheet {
  position: absolute; top: -8%; bottom: -8%; left: -25%; width: 150%;
  background: var(--corb-deep-blue);
  transform: translateX(125%) skewX(-9deg);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 80px rgba(0,0,0,0.4);
}
.ptrans-edge {
  position: absolute; top: -8%; bottom: -8%; left: -25%; width: 150%;
  transform: translateX(125%) skewX(-9deg);
  border-left: 2px solid rgba(255,255,255,0.5);
  pointer-events: none;
}
.ptrans-mark { display: flex; gap: 7px; align-items: flex-end; height: 54px; transform: skewX(9deg); opacity: 0; transition: opacity 0.25s ease; }
.ptrans-mark span { width: 14px; border-radius: 7px 7px 0 0; transform-origin: bottom; animation: pt-bar 0.9s cubic-bezier(.2,.7,.2,1) infinite alternate; }
.ptrans-mark span:nth-child(1) { height: 54px; background: var(--corb-red); animation-delay: 0s; }
.ptrans-mark span:nth-child(2) { height: 42px; background: var(--corb-orange); animation-delay: 0.12s; }
.ptrans-mark span:nth-child(3) { height: 30px; background: var(--corb-green); animation-delay: 0.24s; }
@keyframes pt-bar { from { transform: scaleY(0.55); } to { transform: scaleY(1); } }

/* ---------- HERO ENTRANCE CHOREOGRAPHY ---------- */
.hero .inner > * { opacity: 0; transform: translateY(26px); animation: rise 0.9s cubic-bezier(.2,.7,.2,1) forwards; }
.hero .inner > .eyebrow { animation-delay: 0.45s; }
.hero .inner > h1 { animation-delay: 0.58s; }
.hero .inner > .sub { animation-delay: 0.74s; }
.hero .inner > .actions { animation-delay: 0.88s; }
.hero .stats .s { opacity: 0; transform: translateY(20px); animation: rise 0.8s cubic-bezier(.2,.7,.2,1) forwards; }
.hero .stats .s:nth-child(1) { animation-delay: 1.0s; }
.hero .stats .s:nth-child(2) { animation-delay: 1.1s; }
.hero .stats .s:nth-child(3) { animation-delay: 1.2s; }
.hero .stats .s:nth-child(4) { animation-delay: 1.3s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* hero headline gets a subtle drawn underline accent under the bold part */
.hero h1 b { position: relative; }

/* ---------- STAGGERED REVEAL (grids) ---------- */
.stagger > * { opacity: 0; transform: translateY(24px); transition: opacity 0.7s cubic-bezier(.2,.7,.2,1), transform 0.7s cubic-bezier(.2,.7,.2,1); }
.stagger.in > * { opacity: 1; transform: none; }
.stagger.in > *:nth-child(1) { transition-delay: 0.04s; }
.stagger.in > *:nth-child(2) { transition-delay: 0.10s; }
.stagger.in > *:nth-child(3) { transition-delay: 0.16s; }
.stagger.in > *:nth-child(4) { transition-delay: 0.22s; }
.stagger.in > *:nth-child(5) { transition-delay: 0.28s; }
.stagger.in > *:nth-child(6) { transition-delay: 0.34s; }
.stagger.in > *:nth-child(7) { transition-delay: 0.40s; }
.stagger.in > *:nth-child(8) { transition-delay: 0.46s; }
.stagger.in > *:nth-child(9) { transition-delay: 0.52s; }
.stagger.in > *:nth-child(10) { transition-delay: 0.58s; }

/* ---------- REFINED HOVER MOTION ---------- */
.svc { transition: background 0.35s ease, transform 0.45s cubic-bezier(.2,.7,.2,1), box-shadow 0.45s ease; }
.svc:hover { transform: translateY(-6px); box-shadow: 0 30px 50px -34px rgba(11,46,79,0.55); }
.svc .ico svg { transition: transform 0.45s cubic-bezier(.2,.7,.2,1); }
.svc:hover .ico svg { transform: translateY(-3px) scale(1.06); }
.svc .bar i { transition: height 0.4s cubic-bezier(.2,.7,.2,1); }
.svc:hover .bar i:nth-child(1) { height: 24px; }
.svc:hover .bar i:nth-child(2) { height: 20px; }
.svc:hover .bar i:nth-child(3) { height: 16px; }

.proj { transition: transform 0.5s cubic-bezier(.2,.7,.2,1), box-shadow 0.5s ease; }
.proj:hover { transform: translateY(-6px); box-shadow: 0 36px 60px -40px rgba(11,46,79,0.5); }
.proj .vis .panel-diag { transition: transform 0.6s cubic-bezier(.2,.7,.2,1); }
.proj:hover .vis .panel-diag { transform: translateX(-6%); }
.proj .vis .ico svg { transition: transform 0.5s cubic-bezier(.2,.7,.2,1); }
.proj:hover .vis .ico svg { transform: translateY(-4px) scale(1.05); }

.accred { transition: background 0.3s ease, transform 0.4s cubic-bezier(.2,.7,.2,1); }
.accred:hover { transform: translateY(-4px); }
.accred .mk svg { transition: transform 0.4s cubic-bezier(.2,.7,.2,1); }
.accred:hover .mk svg { transform: scale(1.1); }

/* ============================================================
   SIGNATURE DISCIPLINE BAND (Corb Ltd)
   Fire · Electrical · Water · Building — animated symbols
   ============================================================ */
.disc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(10px, 1.2vw, 16px); }
.disc {
  position: relative; background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.14);
  clip-path: polygon(0 7%, 100% 0, 100% 100%, 0 100%);
  padding: 42px 30px 40px; display: flex; flex-direction: column; align-items: flex-start;
  min-height: 320px; overflow: hidden;
  transition: background 0.45s ease, transform 0.5s cubic-bezier(.2,.7,.2,1);
}
.disc:hover { background: rgba(255,255,255,0.09); transform: translateY(-6px); }
.disc .cap { position: absolute; left: 0; right: 0; top: 0; height: 5px; z-index: 3; transition: transform 0.5s cubic-bezier(.2,.7,.2,1); transform-origin: left; }
.disc:hover .cap { transform: scaleX(1.04); }
.disc-blue   .cap { background: var(--corb-blue); }
.disc-red    .cap { background: var(--corb-red); }
.disc-orange .cap { background: var(--corb-orange); }
.disc-green  .cap { background: var(--corb-green); }
.disc-blue   .disc-ico .stroke { stroke: #5fb0ec; }
.disc-red    .disc-ico .stroke { stroke: #f8835f; }
.disc-orange .disc-ico .bolt   { fill: rgba(249,173,85,0.9); }
.disc-orange .disc-ico .spark  { stroke: #f9ad55; }
.disc-green  .disc-ico .stroke { stroke: #93d36f; }
.disc .num { font-size: var(--fs-label); font-weight: var(--fw-semibold); letter-spacing: var(--tracking-label); text-transform: uppercase; color: rgba(255,255,255,0.85); }
.disc .disc-ico { margin: 26px 0 auto; width: clamp(58px, 7vw, 80px); height: clamp(58px, 7vw, 80px); }
.disc .disc-ico svg { width: 100%; height: 100%; display: block; overflow: visible; }
.disc h3 { margin: 26px 0 0; font-weight: var(--fw-semibold); font-size: 22px; letter-spacing: -0.3px; color: var(--white); }
.disc p { margin: 10px 0 0; font-size: 14px; line-height: 1.5; color: rgba(255,255,255,0.85); }

/* icon shared */
.disc-ico .stroke { fill: none; stroke: rgba(255,255,255,0.85); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.disc-ico .thin { stroke-width: 1.6; }

/* FIRE / Mechanical */
.ico-fire .flame-outer { stroke: rgba(255,255,255,0.85); }
.ico-fire .flame-inner { fill: var(--corb-orange); stroke: none; transform-origin: 32px 44px; animation: flame-flicker 1.6s ease-in-out infinite; }
.ico-fire .ember { fill: var(--corb-red); opacity: 0; }
.ico-fire .ember.e1 { animation: ember-rise 2.4s ease-in infinite; }
.ico-fire .ember.e2 { animation: ember-rise 2.4s ease-in 1.1s infinite; }
.disc:hover .ico-fire .flame-inner { animation-duration: 1s; }
@keyframes flame-flicker {
  0%, 100% { transform: scaleY(1) translateX(0); opacity: 0.92; }
  25% { transform: scaleY(1.12) translateX(-0.6px); opacity: 1; }
  50% { transform: scaleY(0.94) translateX(0.6px); opacity: 0.86; }
  75% { transform: scaleY(1.08) translateX(-0.3px); opacity: 1; }
}
@keyframes ember-rise { 0% { transform: translateY(0); opacity: 0; } 25% { opacity: 1; } 100% { transform: translateY(-22px); opacity: 0; } }

/* ELECTRICAL / lightning */
.ico-elec .bolt { fill: rgba(255,255,255,0.9); stroke: none; }
.ico-elec .bolt-flash { fill: var(--corb-blue-light, #4aa3e0); stroke: none; opacity: 0; animation: bolt-flash 3.4s ease-in-out infinite; }
.ico-elec .spark { stroke: var(--corb-blue-light, #4aa3e0); opacity: 0; animation: bolt-flash 3.4s ease-in-out infinite; }
.disc:hover .ico-elec .bolt-flash, .disc:hover .ico-elec .spark { animation-duration: 1.6s; }
@keyframes bolt-flash {
  0%, 88%, 100% { opacity: 0; }
  90% { opacity: 1; }
  93% { opacity: 0.2; }
  96% { opacity: 0.9; }
}

/* WATER / plumbing */
.ico-water .drop-main { stroke: rgba(255,255,255,0.85); }
.ico-water .drop-fill { fill: rgba(27,117,188,0.35); stroke: none; }
.ico-water .drip { fill: var(--corb-blue-light, #4aa3e0); animation: drip-fall 2.8s ease-in infinite; }
.ico-water .ripple { fill: none; stroke: var(--corb-blue-light, #4aa3e0); transform-origin: 32px 56px; animation: ripple 2.8s ease-out infinite; }
.disc:hover .ico-water .drip, .disc:hover .ico-water .ripple { animation-duration: 1.8s; }
@keyframes drip-fall { 0% { transform: translateY(-6px); opacity: 0; } 12% { opacity: 1; } 55% { transform: translateY(18px); opacity: 1; } 65% { opacity: 0; } 100% { opacity: 0; } }
@keyframes ripple { 0%, 58% { transform: scale(0.3); opacity: 0; } 64% { opacity: 0.9; } 100% { transform: scale(1.5); opacity: 0; } }

/* BUILDING / fabric */
.ico-build .frame { stroke: rgba(255,255,255,0.85); }
.ico-build .win { fill: var(--corb-blue-light, #4aa3e0); opacity: 0.2; }
.ico-build .win.w1 { animation: win-on 3.2s ease-in-out infinite; }
.ico-build .win.w2 { animation: win-on 3.2s ease-in-out 0.5s infinite; }
.ico-build .win.w3 { animation: win-on 3.2s ease-in-out 1.0s infinite; }
.ico-build .win.w4 { animation: win-on 3.2s ease-in-out 1.5s infinite; }
.ico-build .win.w5 { animation: win-on 3.2s ease-in-out 0.8s infinite; }
.ico-build .win.w6 { animation: win-on 3.2s ease-in-out 1.3s infinite; }
.disc:hover .ico-build .win { animation-duration: 1.8s; }
@keyframes win-on { 0%, 100% { opacity: 0.18; } 50% { opacity: 1; } }

/* count-up figures hold layout */
.count { font-variant-numeric: tabular-nums; }

/* ============================================================
   SERVICE LIFECYCLE BAND  (Corb van livery: Design · Install ·
   Test · Maintain - Option 1: tinted glass, colour as accent)
   ============================================================ */
.lifecycle-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(12px, 1.5vw, 18px); }
.phase {
  position: relative; overflow: hidden; color: var(--white);
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.14);
  clip-path: polygon(0 7%, 100% 0, 100% 100%, 0 100%);
  padding: 30px 26px 28px; min-height: 300px;
  display: flex; flex-direction: column;
  transition: transform 0.5s cubic-bezier(.2,.7,.2,1), background 0.4s ease;
}
.phase:hover { transform: translateY(-8px); background: rgba(255,255,255,0.09); }
.phase .cap {
  position: absolute; left: 0; right: 0; top: 0; height: 5px; z-index: 3;
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(.2,.7,.2,1);
}
.phase:hover .cap { transform: scaleX(1.04); }
.phase.design   .cap { background: var(--corb-blue); }
.phase.install  .cap { background: var(--corb-red); }
.phase.test     .cap { background: var(--corb-orange); }
.phase.maintain .cap { background: var(--corb-green); }
.phase .pnum { font-size: var(--fs-label); font-weight: var(--fw-semibold); letter-spacing: var(--tracking-label); text-transform: uppercase; color: rgba(255,255,255,0.78); }
.phase .pico { width: clamp(44px, 4.8vw, 56px); height: clamp(44px, 4.8vw, 56px); margin: 22px 0 auto; }
.phase .pico svg { width: 100%; height: 100%; fill: none; stroke-width: 1.85; stroke-linecap: round; stroke-linejoin: round; }
.phase.design   .pico svg { stroke: #5fb0ec; }
.phase.install  .pico svg { stroke: #f8835f; }
.phase.test     .pico svg { stroke: #f9ad55; }
.phase.maintain .pico svg { stroke: #93d36f; }
.phase h3 { margin: 22px 0 0; font-weight: var(--fw-bold); font-size: clamp(19px, 1.6vw, 24px); letter-spacing: -0.3px; color: var(--white); }
.phase p { margin: 9px 0 0; font-size: 14px; line-height: 1.5; color: rgba(255,255,255,0.74); font-weight: var(--fw-light); }
.phase.maintain:hover .pico svg { animation: spin-cog 6s linear infinite; }
@keyframes spin-cog { to { transform: rotate(360deg); } }
@media (max-width: 820px) { .lifecycle-grid { grid-template-columns: 1fr 1fr; } .phase { min-height: 220px; } }
@media (max-width: 460px) { .lifecycle-grid { grid-template-columns: 1fr; } .phase { min-height: 0; clip-path: none; } }

@media (max-width: 860px) {
  .disc-grid { grid-template-columns: 1fr 1fr; }
  .disc { min-height: 280px; }
}
@media (max-width: 480px) {
  .disc-grid { grid-template-columns: 1fr; }
  .disc { min-height: 0; }
}

/* ---------- CLIENT MARQUEE (Corb Ltd) ---------- */
.marquee { position: relative; overflow: hidden; padding: 4px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; align-items: stretch; width: max-content; animation: marquee-l 84s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.client {
  flex: 0 0 auto; margin: 0 11px;
  width: 224px; height: 128px;
  display: flex; align-items: center; justify-content: center;
  background: var(--white); border: 1px solid var(--rule);
  padding: 26px 30px;
  transition: transform 0.45s cubic-bezier(.2,.7,.2,1), box-shadow 0.45s ease, border-color 0.45s ease;
}
.marquee:hover .client:hover { transform: translateY(-5px); box-shadow: 0 26px 44px -30px rgba(11,46,79,0.45); border-color: rgba(15,72,119,0.22); }
.client .name { font-size: 17px; font-weight: var(--fw-medium); line-height: 1.3; letter-spacing: -0.2px; color: var(--corb-deep-blue); text-align: center; text-wrap: balance; }
.client .logo {
  display: none; max-height: 100%; max-width: 100%; width: auto; height: auto;
  object-fit: contain;
}
.client.has-logo { padding: 24px 28px; }
.client.has-logo .logo { display: block; }
.client.has-logo .name { display: none; }
.client .sep { display: none; }
@keyframes marquee-l { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* safety: force entrance content visible if animations never run */
.anim-done .hero .inner > *, .anim-done .hero .stats .s { opacity: 1 !important; transform: none !important; }
.anim-done .stagger > * { opacity: 1 !important; transform: none !important; }

/* ---------- REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  .ptrans { display: none; }
  .hero .inner > *, .hero .stats .s { opacity: 1 !important; transform: none !important; animation: none !important; }
  .stagger > * { opacity: 1 !important; transform: none !important; transition: none; }
  .disc-ico * { animation: none !important; }
  .svc:hover, .proj:hover, .accred:hover, .disc:hover { transform: none; }
  .marquee-track { animation: none !important; flex-wrap: wrap; justify-content: center; width: auto; gap: 16px; }
  .marquee-track .client:nth-child(n+9) { display: none; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
}
/* ============================================================
   CORB — Enhancements layer (June 2026)
   Scroll progress · Forms (async/GDPR/a11y) · FAQ accordion ·
   Testimonials · Legal page layout · Cookie banner ·
   A11y contrast fixes · Micro-interactions · Anim-pause
   ============================================================ */

/* ---------- SCROLL PROGRESS ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  z-index: 200; pointer-events: none;
  background: linear-gradient(90deg, var(--corb-red) 0%, var(--corb-orange) 50%, var(--corb-green) 100%);
  transition: width 0.1s linear; will-change: width;
}

/* ---------- FORM ASYNC: success / error ---------- */
.form-wrap { position: relative; }
.form-msg {
  display: none; padding: 38px 32px; border: 1px solid var(--rule-inverse); text-align: center;
}
.form-msg .msg-icon { width: 48px; height: 48px; margin: 0 auto 16px; }
.form-msg .msg-icon svg { width: 100%; height: 100%; display: block; }
.form-msg h3 { margin: 0 0 10px; font-size: 22px; font-weight: var(--fw-bold); color: var(--white); }
.form-msg p { margin: 0; font-size: 15px; color: rgba(255,255,255,0.78); }
.form-msg p a { color: #5fb0ec; }
.form-success { background: rgba(112,191,68,0.10); border-color: rgba(112,191,68,0.4); }
.form-error   { background: rgba(241,90,41,0.10);  border-color: rgba(241,90,41,0.4); }
.form-wrap.submitted .form        { display: none; }
.form-wrap.submitted .form-success { display: block; }
.form-wrap.form-error-state .form       { display: none; }
.form-wrap.form-error-state .form-error { display: block; }
.form-wrap.sending .btn[type="submit"]  { opacity: 0.7; pointer-events: none; }

/* ---------- FORM A11Y: focus, GDPR checkbox ---------- */
.form input:focus-visible,
.form textarea:focus-visible,
.form select:focus-visible {
  outline: 2px solid var(--corb-blue); outline-offset: 0;
  border-color: var(--corb-blue); background: rgba(27,117,188,0.14);
}
.field-req-note { font-size: 11px; color: rgba(255,255,255,0.8); letter-spacing: 0.3px; margin: 0 0 18px; }
label .req { color: #ffa89e; margin-left: 2px; font-style: normal; }
.field-consent { margin-top: 14px; }
.form .consent-label {
  display: flex; align-items: flex-start; gap: 14px; cursor: pointer;
  font-size: 14px; color: rgba(255,255,255,0.82); line-height: 1.55;
  letter-spacing: normal; text-transform: none;
}
.consent-label input[type="checkbox"] {
  flex: 0 0 auto; width: 18px; height: 18px; margin-top: 2px;
  accent-color: var(--corb-blue); cursor: pointer;
}
.form .consent-label a { color: #8cc8f5; text-decoration: underline; }

/* ---------- TESTIMONIALS ---------- */
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.testimonial {
  position: relative; margin: 0; border: 1px solid var(--rule);
  padding: 32px 28px 28px; background: var(--white);
  display: flex; flex-direction: column;
  transition: box-shadow 0.4s ease;
}
.testimonial:hover { box-shadow: 0 24px 48px -32px rgba(15,72,119,0.36); }
.testimonial .qm {
  font-size: 64px; line-height: 0.72; color: var(--corb-blue); opacity: 0.2;
  font-weight: var(--fw-bold); font-family: Georgia, 'Times New Roman', serif;
  margin-bottom: 10px; pointer-events: none; user-select: none;
}
.testimonial blockquote { margin: 0; flex: 1; }
.testimonial blockquote p {
  font-size: 17px; line-height: 1.65; color: var(--fg);
  font-style: italic; font-weight: var(--fw-light); margin: 0;
}
.testimonial cite {
  display: block; margin-top: 22px; padding-top: 18px;
  border-top: 1px solid var(--rule); font-style: normal;
}
.testimonial cite strong { display: block; font-size: 15px; font-weight: var(--fw-semibold); color: var(--fg); }
.testimonial cite span   { font-size: 13px; color: var(--fg-muted); margin-top: 3px; display: block; }
.placeholder-chip {
  display: inline-block; padding: 2px 10px; margin-bottom: 10px;
  background: rgba(247,147,30,0.12); border: 1px solid rgba(247,147,30,0.35);
  color: #9a5a00; border-radius: 3px;
  font-size: 11px; font-weight: var(--fw-semibold); letter-spacing: 0.5px; text-transform: uppercase;
}
@media (max-width: 560px) { .testimonial-grid { grid-template-columns: 1fr; } }

/* ---------- FAQ ACCORDION ---------- */
.faq-list { display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.faq-item { background: var(--white); }
.faq-q {
  width: 100%; text-align: left; background: none; border: 0;
  padding: 22px 28px; font-family: var(--font-sans); font-size: 17px;
  font-weight: var(--fw-semibold); cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  color: var(--fg); gap: 20px; line-height: 1.4;
  transition: color 0.25s ease;
}
.faq-q:hover { color: var(--corb-blue); }
.faq-q:focus-visible { outline: 2px solid var(--corb-blue); outline-offset: -2px; }
.faq-icon { flex: 0 0 22px; width: 22px; height: 22px; color: var(--corb-blue); transition: transform 0.35s cubic-bezier(.2,.7,.2,1); }
.faq-icon svg { width: 22px; height: 22px; display: block; }
.faq-q[aria-expanded="true"] .faq-icon { transform: rotate(45deg); }
.faq-q[aria-expanded="true"] { color: var(--corb-blue); }
.faq-a { overflow: hidden; max-height: 0; transition: max-height 0.4s cubic-bezier(.2,.7,.2,1); }
.faq-item.open .faq-a { max-height: 600px; }
.faq-a-inner { padding: 2px 28px 24px; }
.faq-a-inner p { margin: 0; font-size: 16px; line-height: 1.65; color: var(--fg-muted); }
@media (max-width: 640px) { .faq-q { font-size: 15px; padding: 18px 20px; } .faq-a-inner { padding: 2px 20px 20px; } }

/* ---------- LEGAL PAGE LAYOUT ---------- */
.legal-content {
  max-width: 760px; margin: 0 auto;
  padding: clamp(52px,7vh,80px) clamp(24px,5vw,64px) clamp(64px,8vh,100px);
}
.legal-content h1 {
  font-weight: var(--fw-bold); font-size: clamp(28px,4vw,44px);
  letter-spacing: -0.5px; margin: 30px 0 8px; color: var(--fg);
}
.legal-content .updated { font-size: 13px; color: var(--fg-muted); margin-bottom: 48px; display: block; }
.legal-content h2 {
  font-size: clamp(18px,1.8vw,22px); font-weight: var(--fw-semibold);
  color: var(--fg); margin: 40px 0 12px; letter-spacing: -0.2px;
  padding-top: 28px; border-top: 1px solid var(--rule);
}
.legal-content p, .legal-content li { font-size: 16px; line-height: 1.72; color: var(--fg-muted); }
.legal-content ul, .legal-content ol { padding-left: 24px; margin: 12px 0 18px; }
.legal-content li { margin-bottom: 6px; }
.legal-content a { color: var(--corb-blue); text-decoration: underline; }
.legal-content strong { color: var(--fg); font-weight: var(--fw-semibold); }
.legal-confirm { background: rgba(247,147,30,0.10); border: 1px solid rgba(247,147,30,0.3); border-radius: 3px; padding: 1px 7px; color: #9a5a00; font-style: italic; font-size: 0.95em; }

/* ---------- FOOTER ENHANCEMENTS ---------- */
.footer .legal-links { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.footer .legal-links a { font-size: 13px; color: rgba(255,255,255,0.7); text-decoration: none; transition: color 0.25s ease; }
.footer .legal-links a:hover { color: var(--white); }
.footer .bottom { flex-wrap: wrap; gap: 10px 20px; }
.footer .reg { font-size: 12px; color: rgba(255,255,255,0.38); margin-top: 4px; }
.footer .col a.contact-link, .footer .col p.contact-link a { color: rgba(255,255,255,0.74); text-decoration: none; transition: color 0.25s ease; }
.footer .col a.contact-link:hover, .footer .col p.contact-link a:hover { color: var(--white); }
.val a { color: inherit; text-decoration: none; transition: opacity 0.3s ease; }
.val a:hover { opacity: 0.75; text-decoration: underline; }

/* ---------- COOKIE BANNER ---------- */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 900;
  background: rgba(10,39,70,0.97); backdrop-filter: blur(6px);
  border-top: 1px solid rgba(255,255,255,0.15);
  padding: 14px clamp(20px,4vw,48px);
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  transform: translateY(0); transition: transform 0.4s cubic-bezier(.2,.7,.2,1), visibility 0s;
}
.cookie-banner.hiding { transform: translateY(115%); visibility: hidden; transition: transform 0.4s cubic-bezier(.2,.7,.2,1), visibility 0s linear 0.4s; }
.cookie-banner p { margin: 0; font-size: 14px; color: rgba(255,255,255,0.78); flex: 1; min-width: 240px; }
.cookie-banner p a { color: #5fb0ec; text-decoration: underline; }
.cookie-btn-ok {
  background: var(--corb-blue); color: var(--white); border: 0;
  padding: 10px 22px; font-family: var(--font-sans); font-size: 13px;
  font-weight: var(--fw-semibold); cursor: pointer; flex: 0 0 auto;
  transition: background 0.25s ease;
}
.cookie-btn-ok:hover { background: #2487d6; }
@media (max-width: 480px) { .cookie-banner { padding: 14px 16px; } }

/* ---------- ANIMATION PAUSE (off-screen, saves battery) ---------- */
.disc-paused .flame-inner,
.disc-paused .ember,
.disc-paused .bolt-flash,
.disc-paused .spark,
.disc-paused .drip,
.disc-paused .ripple,
.disc-paused .win { animation-play-state: paused; }

/* ---------- A11Y: CONTRAST FIXES ---------- */
/* Global focus visible */
:focus-visible { outline: 2px solid var(--corb-blue); outline-offset: 3px; }
a:focus-visible, button:focus-visible { outline-offset: 2px; }

/* ---------- BUTTON MICRO-INTERACTIONS ---------- */
.btn:active { transform: scale(0.97); }
.btn-primary:active  { background: #1468a5; }
.btn-ghost-dark:active { background: rgba(255,255,255,0.10); }
.nav .cta:active { background: #1468a5; }

/* ---------- WARM ACCENT SECTION ---------- */
.section.warm { position: relative; background: #f4f7fa; }
.section.warm::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: linear-gradient(180deg, var(--corb-orange), var(--corb-red));
}
.section.warm .eyebrow       { color: var(--corb-deep-blue); }
.section.warm .eyebrow::before { background: var(--corb-deep-blue); }

@media (prefers-reduced-motion: reduce) {
  .scroll-progress { transition: none; }
  .faq-a { transition: none; }
  .btn:active { transform: none; }
}
