/* ==========================================================================
   REFAD — Integrated Oilfield & Technical Solutions
   Brand: Navy #0E2955 · Red #A30D0E (from Refad logo pack)
   ========================================================================== */

:root {
  --navy: #0E2955;
  --navy-700: #1A3A70;
  --navy-800: #0B2144;
  --navy-900: #071831;
  --red: #A30D0E;
  --red-600: #C01315;
  --paper: #FFFFFF;
  --mist: #F3F6FB;
  --mist-2: #E9EFF7;
  --ink: #152238;
  --slate: #54637D;
  --line: #DFE7F2;

  --font-display: "Sora", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;

  --r-sm: 14px;
  --r-md: 22px;
  --r-lg: 34px;
  --r-corner: 130px;      /* signature big rounded corner */

  --shadow-sm: 0 2px 10px rgba(7, 24, 49, .07);
  --shadow-md: 0 14px 40px rgba(7, 24, 49, .12);
  --shadow-lg: 0 28px 70px rgba(7, 24, 49, .20);

  --wrap: 1200px;
  --header-h: 86px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html:not(.lenis-on) { scroll-behavior: smooth; } html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; }

::selection { background: var(--navy); color: #fff; }

/* ---------- Type ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--navy); line-height: 1.18; font-weight: 600; }
.h-hero  { font-size: clamp(2.1rem, 4.6vw, 3.6rem); font-weight: 700; color: #fff; letter-spacing: -.01em; }
.h-page  { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; color: #fff; letter-spacing: -.01em; }
.h2      { font-size: clamp(1.6rem, 2.8vw, 2.3rem); letter-spacing: -.01em; }
.h3      { font-size: 1.18rem; font-weight: 600; }
.lead    { font-size: 1.11rem; color: var(--slate); }

.kicker {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-display);
  font-size: .8rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: var(--red);
}
.kicker::before { content: ""; width: 34px; height: 3px; border-radius: 2px; background: var(--red); }
.kicker--light { color: #FF8A8B; }
.kicker--light::before { background: var(--red-600); }
.kicker--center { justify-content: center; }
.kicker--center::after { content: ""; width: 34px; height: 3px; border-radius: 2px; background: var(--red); }

/* ---------- Layout ---------- */
.wrap { width: min(var(--wrap), 92%); margin-inline: auto; }
.section { padding: clamp(70px, 9vw, 110px) 0; position: relative; }
.section--mist { background: var(--mist); }
.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head .h2 { margin: 14px 0 14px; }

/* ==========================================================================
   Header — transparent over hero (reversed logo) → solid white (color logo)
   ========================================================================== */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .35s ease, box-shadow .35s ease;
}
.site-header .wrap {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h);
  transition: height .35s ease;
}
.brand { display: inline-flex; align-items: center; position: relative; }
.brand img { height: 46px; width: auto; transition: opacity .3s ease; }
.brand .logo-color { position: absolute; inset: 0; opacity: 0; }
.brand .logo-color img { height: 46px; }

.nav { display: flex; align-items: center; gap: 34px; }
.nav a {
  font-family: var(--font-display);
  font-size: .95rem; font-weight: 500; color: rgba(255,255,255,.88);
  position: relative; padding: 6px 0;
  transition: color .3s ease;
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 0; height: 2px; border-radius: 2px; background: var(--red-600);
  transition: width .3s ease;
}
.nav a:hover::after, .nav a.active::after { width: 100%; }
.nav a.active { color: #fff; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 600; font-size: .95rem;
  padding: 14px 28px; border-radius: 999px;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease, border-color .25s ease;
  will-change: transform;
}
.btn--red { background: var(--red); color: #fff; box-shadow: 0 10px 26px rgba(163, 13, 14, .32); }
.btn--red:hover { background: var(--red-600); transform: translateY(-2px); }
.btn--ghost { border: 1.5px solid rgba(255,255,255,.55); color: #fff; }
.btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.1); transform: translateY(-2px); }
.btn--navy { background: var(--navy); color: #fff; box-shadow: 0 10px 26px rgba(14, 41, 85, .28); }
.btn--navy:hover { background: var(--navy-700); transform: translateY(-2px); }
.nav .btn { padding: 11px 24px; }

/* scrolled state */
.site-header::before {
  content: ""; position: absolute; inset: 0;
  background: rgba(255,255,255,.96);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  opacity: 0; transition: opacity .35s ease; pointer-events: none;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.site-header.scrolled::before { opacity: 1; }
.site-header.scrolled .wrap { height: 70px; }
.site-header.scrolled .brand .logo-rev { opacity: 0; }
.site-header.scrolled .brand .logo-color { opacity: 1; }
.site-header.scrolled .nav a { color: var(--slate); }
.site-header.scrolled .nav a.active, .site-header.scrolled .nav a:hover { color: var(--navy); }

/* burger */
.burger { display: none; width: 46px; height: 46px; border-radius: 12px; position: relative; z-index: 110; }
.burger span {
  position: absolute; left: 11px; right: 11px; height: 2.4px; border-radius: 2px;
  background: #fff; transition: all .3s ease;
}
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 22px; }
.burger span:nth-child(3) { top: 29px; }
.site-header.scrolled .burger span { background: var(--navy); }
body.menu-open .site-header .burger span { background: #fff; }
body.menu-open .burger span:nth-child(1) { top: 22px; transform: rotate(45deg); }
body.menu-open .burger span:nth-child(2) { opacity: 0; }
body.menu-open .burger span:nth-child(3) { top: 22px; transform: rotate(-45deg); }

/* ==========================================================================
   Heroes — image blends/fades into the next section
   ========================================================================== */
.hero {
  position: relative; display: flex; align-items: center;
  min-height: 100svh;
  padding: calc(var(--header-h) + 40px) 0 140px;
  overflow: hidden;
  background: var(--navy-900);
}
.hero__media { position: absolute; inset: -12% 0 0 0; z-index: 0; will-change: transform, opacity; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
/* navy wash over the photo */
.hero__media::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(7,24,49,.94) 6%, rgba(10,33,68,.78) 44%, rgba(14,41,85,.38) 78%, rgba(14,41,85,.30) 100%);
}
/* the blend: photo melts into the next (white) section */
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 180px; z-index: 2;
  background: linear-gradient(180deg,
    rgba(255,255,255,0)    0%,
    rgba(255,255,255,.028) 10%,
    rgba(255,255,255,.104) 20%,
    rgba(255,255,255,.216) 30%,
    rgba(255,255,255,.352) 40%,
    rgba(255,255,255,.50)  50%,
    rgba(255,255,255,.648) 60%,
    rgba(255,255,255,.784) 70%,
    rgba(255,255,255,.896) 80%,
    rgba(255,255,255,.972) 90%,
    var(--paper)           100%);
  pointer-events: none;
}
.hero__inner { position: relative; z-index: 3; max-width: 760px; }
.hero__inner .kicker { margin-bottom: 22px; }
.hero__sub { margin: 22px 0 38px; max-width: 600px; font-size: 1.14rem; color: rgba(255,255,255,.82); }
.hero__cta { display: flex; gap: 16px; flex-wrap: wrap; }

.hero__tagline {
  margin-top: 64px; display: inline-flex; flex-wrap: wrap; align-items: center; gap: 12px 18px;
  font-family: var(--font-display); font-size: .88rem; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: rgba(255,255,255,.65);
}
.hero__tagline b { color: #fff; font-weight: 600; }
.hero__tagline i { width: 2px; height: 16px; border-radius: 2px; background: var(--red-600); opacity: .9; }


/* --- inner page hero (shorter) --- */
.page-hero {
  position: relative; display: flex; align-items: flex-end;
  min-height: clamp(440px, 34vw, 620px);
  padding: calc(var(--header-h) + 60px) 0 120px;
  overflow: hidden; background: var(--navy-900);
  border-bottom-left-radius: clamp(90px, 11vw, 170px);
}
.page-hero__media { position: absolute; inset: -14% 0 0 0; z-index: 0; will-change: transform, opacity; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero__media::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(7,24,49,.93) 10%, rgba(10,33,68,.72) 55%, rgba(14,41,85,.42) 100%);
}
.page-hero__inner { position: relative; z-index: 3; max-width: 820px; }
.page-hero__inner .kicker { margin-bottom: 18px; }
.page-hero__sub { margin-top: 18px; max-width: 640px; font-size: 1.1rem; color: rgba(255,255,255,.8); }
.crumbs { display: flex; gap: 10px; align-items: center; margin-bottom: 26px; font-size: .86rem; color: rgba(255,255,255,.6); }
.crumbs a:hover { color: #fff; }
.crumbs span { opacity: .5; }

/* ==========================================================================
   Imagery — signature rounded corners
   ========================================================================== */
.media-frame {
  position: relative; overflow: hidden;
  border-radius: var(--r-lg); box-shadow: var(--shadow-md);
}
.media-frame img { width: 100%; height: 100%; object-fit: cover; }
.media-frame--br { border-bottom-right-radius: var(--r-corner); }
.media-frame--bl { border-bottom-left-radius: var(--r-corner); }
.media-frame--tr { border-top-right-radius: var(--r-corner); }
.media-frame--tl { border-top-left-radius: var(--r-corner); }

/* floating badge card over an image */
.float-card {
  position: absolute; left: -34px; bottom: 42px;
  max-width: 300px; padding: 24px 26px;
  background: var(--navy); color: #fff;
  border-radius: var(--r-md); border-bottom-left-radius: 60px;
  box-shadow: var(--shadow-lg);
}
.float-card strong { font-family: var(--font-display); font-size: 1.02rem; font-weight: 600; display: block; line-height: 1.45; }
.float-card em { display: block; margin-top: 8px; font-style: normal; font-size: .85rem; color: rgba(255,255,255,.65); }
.float-card::before { content: ""; position: absolute; top: 24px; left: 26px; width: 30px; height: 3px; background: var(--red-600); border-radius: 2px; }
.float-card strong { padding-top: 16px; }

/* ==========================================================================
   Two-column feature blocks
   ========================================================================== */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(44px, 6vw, 84px); align-items: center; }
.split__media { position: relative; min-height: 340px; }
.split__media img { min-height: 420px; }
.split__body .kicker { margin-bottom: 16px; }
.split__body .h2 { margin-bottom: 20px; }
.split__body p + p { margin-top: 16px; }
.split__body .btn { margin-top: 32px; }
.split--flip .split__media { order: -1; }

/* chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 999px;
  background: var(--mist); border: 1px solid var(--line);
  font-family: var(--font-display); font-size: .82rem; font-weight: 500; color: var(--navy);
}
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--red); }

/* ==========================================================================
   Navy band (approach / bridge) — blended edges
   ========================================================================== */
.band {
  position: relative; color: #fff;
  padding: clamp(80px, 10vw, 130px) 0;
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy) 58%, var(--navy-700) 100%);
  overflow: hidden;
}
.band h1, .band h2, .band h3, .band h4 { color: #fff; }
.band .lead { color: rgba(255,255,255,.76); }
/* faint icon watermark (logo variant used decoratively) */
.band__mark {
  position: absolute; right: -80px; bottom: -90px; width: 460px; opacity: .07;
  pointer-events: none; user-select: none;
}
.band--photo .band__photo { position: absolute; inset: 0; z-index: 0; }
.band--photo .band__photo img { width: 100%; height: 100%; object-fit: cover; opacity: .16; }
.band--photo .band__photo::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg,
    var(--navy-900)      0%,
    rgba(7,24,49,.82)    8%,
    rgba(7,24,49,.58)   18%,
    rgba(7,24,49,.45)   30%,
    rgba(7,24,49,.42)   50%,
    rgba(7,24,49,.45)   70%,
    rgba(7,24,49,.58)   82%,
    rgba(7,24,49,.82)   92%,
    var(--navy-900)    100%);
}
.band > .wrap { position: relative; z-index: 2; }

/* pillars grid */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: clamp(40px, 5vw, 60px); }
.pillar {
  padding: 30px 26px;
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--r-md);
  transition: transform .3s ease, background .3s ease, border-color .3s ease;
}
.pillar:hover { transform: translateY(-6px); background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.22); }
.pillar::before {
  content: ""; display: block; width: 32px; height: 3px; border-radius: 2px;
  background: var(--red-600); margin-bottom: 20px;
  transition: width .3s ease;
}
.pillar:hover::before { width: 56px; }
.pillar h3 { font-size: 1.04rem; margin-bottom: 10px; }
.pillar p { font-size: .92rem; color: rgba(255,255,255,.7); }

/* ==========================================================================
   Core business cards (home preview)
   ========================================================================== */
.areas-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.area-card {
  position: relative; display: flex; flex-direction: column; gap: 14px;
  padding: 34px 30px 30px;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-md); border-bottom-right-radius: 56px;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
  overflow: hidden;
}
.area-card:hover { transform: translateY(-7px); box-shadow: var(--shadow-md); border-color: transparent; }
.area-card__num {
  font-family: var(--font-display); font-weight: 700; font-size: 1.3rem;
  color: var(--navy); letter-spacing: .05em;
  transition: color .3s ease;
}
.area-card__num::after {
  content: ""; display: block; width: 28px; height: 3px; border-radius: 2px;
  background: var(--red); margin-top: 10px;
  transition: width .3s ease;
}
.area-card:hover .area-card__num { color: var(--red); }
.area-card:hover .area-card__num::after { width: 52px; }
.area-card h3 { font-size: 1.07rem; }
.area-card p { font-size: .93rem; color: var(--slate); flex: 1; }
.area-card .more {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-size: .86rem; font-weight: 600; color: var(--red);
}

/* ==========================================================================
   Business page — alternating feature rows
   ========================================================================== */
.biz-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 80px);
  align-items: center;
  padding: clamp(50px, 6vw, 80px) 0;
}
.biz-row + .biz-row { border-top: 1px solid var(--line); }
.biz-row__media { position: relative; }
.biz-row__media .pframe {
  height: 400px; overflow: hidden; position: relative;
  border-radius: var(--r-lg); box-shadow: var(--shadow-md);
}
.biz-row__media img { width: 100%; height: 100%; object-fit: cover; }
.biz-row:nth-child(odd) .biz-row__media .pframe { border-bottom-right-radius: var(--r-corner); }
.biz-row:nth-child(even) .biz-row__media { order: 2; }
.biz-row:nth-child(even) .biz-row__media .pframe { border-bottom-left-radius: var(--r-corner); }
.biz-row__num {
  position: absolute; top: -26px; left: 30px;
  padding: 12px 22px; border-radius: 999px;
  background: var(--red); color: #fff;
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; letter-spacing: .06em;
  box-shadow: 0 12px 28px rgba(163,13,14,.35);
}
.biz-row:nth-child(even) .biz-row__num { left: auto; right: 30px; }
.biz-row__body h2 { font-size: clamp(1.4rem, 2.2vw, 1.8rem); margin-bottom: 16px; }
.biz-row__body p { color: var(--slate); }
.biz-row__tags { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 22px; }
.biz-row__tags span {
  padding: 7px 14px; border-radius: 999px; background: var(--mist); border: 1px solid var(--line);
  font-size: .8rem; font-weight: 500; font-family: var(--font-display); color: var(--navy);
}

/* ==========================================================================
   Quote / ambition
   ========================================================================== */
.quote {
  position: relative; max-width: 880px; margin-inline: auto; text-align: center;
  padding: 0 20px;
}
.quote blockquote {
  font-family: var(--font-display); font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  font-weight: 500; line-height: 1.55; color: var(--navy);
}
.quote blockquote b { color: var(--red); font-weight: 600; }
.quote .quote-mark { width: 56px; margin: 0 auto 26px; opacity: .9; }

/* ==========================================================================
   Commitment / CTA band
   ========================================================================== */

.signature {
  margin-top: 50px;
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
}
.signature img { height: 54px; }
.signature p {
  font-family: var(--font-display); font-size: 1.02rem; font-weight: 500; color: rgba(255,255,255,.85);
}
.signature p b { color: #fff; }

/* big CTA */
.cta-inner { text-align: center; max-width: 680px; margin-inline: auto; }
.cta-inner .h2 { color: #fff; margin: 16px 0 18px; }
.cta-inner p { color: rgba(255,255,255,.75); margin-bottom: 36px; }

/* ==========================================================================
   Contact page
   ========================================================================== */
.contact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.contact-card {
  padding: 32px 28px;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-md); border-bottom-right-radius: 48px;
  transition: transform .3s ease, box-shadow .3s ease;
}
.contact-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.contact-card__icon {
  width: 54px; height: 54px; margin-bottom: 18px;
  display: grid; place-items: center;
  background: var(--navy); border-radius: 16px; border-bottom-right-radius: 28px;
}
.contact-card__icon svg { width: 25px; height: 25px; stroke: #fff; }
.contact-card h3 { font-size: .86rem; text-transform: uppercase; letter-spacing: .14em; color: var(--slate); font-family: var(--font-display); font-weight: 600; margin-bottom: 8px; }
.contact-card a, .contact-card p { font-family: var(--font-display); font-weight: 600; font-size: 1.0rem; color: var(--navy); line-height: 1.5; word-break: break-word; }
.contact-card a:hover { color: var(--red); }

.contact-split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(40px, 5vw, 70px); align-items: stretch; }
.map-frame {
  position: relative; min-height: 460px;
  border-radius: var(--r-lg); border-bottom-left-radius: var(--r-corner);
  overflow: hidden; box-shadow: var(--shadow-md);
}
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: saturate(.85); }

.form-card {
  padding: clamp(32px, 4vw, 48px);
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-lg); border-top-right-radius: var(--r-corner);
  box-shadow: var(--shadow-sm);
}
.form-card .h2 { margin-bottom: 10px; }
.form-card > p { color: var(--slate); margin-bottom: 30px; }
.field { margin-bottom: 20px; }
.field label { display: block; font-family: var(--font-display); font-size: .85rem; font-weight: 600; color: var(--navy); margin-bottom: 8px; }
.field input, .field textarea {
  width: 100%; padding: 14px 18px;
  font: inherit; color: var(--ink);
  background: var(--mist); border: 1.5px solid transparent; border-radius: var(--r-sm);
  outline: none; transition: border-color .25s ease, background .25s ease;
}
.field input:focus, .field textarea:focus { border-color: var(--navy); background: #fff; }
.field textarea { min-height: 140px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-note { margin-top: 14px; font-size: .84rem; color: var(--slate); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  position: relative; color: #fff;
  background: linear-gradient(180deg, var(--navy-900) 0%, var(--navy-800) 100%);
  padding: clamp(70px, 8vw, 96px) 0 54px;
  overflow: hidden;
}
.site-footer::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.25), transparent);
}
.footer-mark { position: absolute; left: -70px; top: -60px; width: 380px; opacity: .05; pointer-events: none; }
.footer-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: clamp(40px, 5vw, 70px);
}
.footer-brand img { height: 74px; margin-bottom: 24px; }
.footer-brand p { font-size: .94rem; color: rgba(255,255,255,.62); max-width: 340px; }
.footer-col h3 {
  color: #fff; font-size: .85rem; text-transform: uppercase; letter-spacing: .18em;
  margin-bottom: 22px; font-weight: 600;
}
.footer-col h3::after { content: ""; display: block; width: 28px; height: 3px; border-radius: 2px; background: var(--red-600); margin-top: 10px; }
.footer-col ul li + li { margin-top: 12px; }
.footer-col ul a { color: rgba(255,255,255,.68); font-size: .95rem; transition: color .25s ease, padding-left .25s ease; }
.footer-col ul a:hover { color: #fff; padding-left: 6px; }
.footer-contact li {
  display: flex; gap: 14px; align-items: flex-start;
  color: rgba(255,255,255,.68); font-size: .94rem;
}
.footer-contact li + li { margin-top: 16px; }
.footer-contact svg { width: 19px; height: 19px; stroke: var(--red-600); flex-shrink: 0; margin-top: 4px; }
.footer-contact a:hover { color: #fff; }

/* copyright bar — after the footer */
.copybar {
  background: #050F20; color: rgba(255,255,255,.5);
  padding: 20px 0; font-size: .86rem;
}
.copybar .wrap { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.copybar b { color: rgba(255,255,255,.75); font-weight: 600; }

/* ==========================================================================
   Reveal on scroll
   ========================================================================== */
.reveal:not(.in) { opacity: 0; transform: translateY(26px); }
.reveal { transition: opacity .8s ease, transform .8s ease; }
.reveal[data-delay="1"] { transition-delay: .1s; }
.reveal[data-delay="2"] { transition-delay: .2s; }
.reveal[data-delay="3"] { transition-delay: .3s; }
.reveal[data-delay="4"] { transition-delay: .4s; }
.reveal[data-delay="5"] { transition-delay: .5s; }
.reveal[data-delay="6"] { transition-delay: .6s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal:not(.in) { opacity: 1; transform: none; transition: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1060px) {
  .areas-grid { grid-template-columns: repeat(2, 1fr); }
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 880px) {
  :root { --header-h: 72px; }
  .nav {
    position: fixed; inset: 0; z-index: 100;
    flex-direction: column; justify-content: center; gap: 30px;
    background: linear-gradient(160deg, var(--navy-900), var(--navy));
    opacity: 0; pointer-events: none; visibility: hidden;
    transition: opacity .35s ease, visibility 0s linear .35s;
  }
  body.menu-open .nav { opacity: 1; pointer-events: auto; visibility: visible; transition: opacity .35s ease; }
  .nav a { font-size: 1.25rem; color: rgba(255,255,255,.9) !important; }
  .burger { display: block; }
  .split, .split--flip, .biz-row, .contact-split { grid-template-columns: 1fr; }
  .split--flip .split__media, .biz-row:nth-child(even) .biz-row__media { order: 0; }
  .split__media img { min-height: 300px; height: 320px; }
  .biz-row__media .pframe { height: 320px; }
  .float-card { left: 16px; bottom: -28px; }
  .hero { padding-bottom: 170px; }
  .map-frame { min-height: 380px; }
}

@media (max-width: 620px) {
  body { font-size: 15.5px; }
  .areas-grid, .pillars, .contact-grid, .footer-grid, .form-row { grid-template-columns: 1fr; }
  .brand img, .brand .logo-color img { height: 38px; }
  .hero__cta .btn { width: 100%; justify-content: center; }
  .copybar .wrap { justify-content: center; text-align: center; }
  .signature { gap: 16px; }
}

/* ==========================================================================
   Motion system — professional section transitions
   ========================================================================== */
:root {
  --ease-out: cubic-bezier(.16, 1, .3, 1);      /* premium decelerate */
  --ease-io: cubic-bezier(.76, 0, .24, 1);      /* smooth in-out for covers */
}

/* nav CTA button — keep its own colors in both header states */
.nav a.btn { color: #fff; }
.nav a.btn::after { display: none; }
.site-header.scrolled .nav a.btn { color: #fff; }

/* ----- upgraded reveal: fade + rise + blur-up ----- */
.reveal:not(.in) {
  opacity: 0;
  transform: translateY(36px);
  filter: blur(7px);
}
.reveal {
  transition:
    opacity 1s var(--ease-out),
    transform 1s var(--ease-out),
    filter 1s var(--ease-out);
  will-change: opacity, transform, filter;
}
.reveal--left:not(.in)  { transform: translateX(-46px); }
.reveal--right:not(.in) { transform: translateX(46px); }
.reveal--zoom:not(.in)  { transform: scale(.93) translateY(22px); }

/* ----- scroll parallax for in-page imagery ----- */
img[data-parallax] {
  transform: translateY(var(--py, 0px)) scale(1.16);
  will-change: transform;
}

/* ----- hero / page-hero entrance choreography ----- */
@keyframes rise {
  from { opacity: 0; transform: translateY(32px); filter: blur(6px); }
  to   { opacity: 1; transform: none; filter: none; }
}
.hero__inner > *, .page-hero__inner > * {
  opacity: 0;
  animation: rise 1.05s var(--ease-out) forwards;
}
.hero__inner > :nth-child(1) { animation-delay: .12s; }
.hero__inner > :nth-child(2) { animation-delay: .26s; }
.hero__inner > :nth-child(3) { animation-delay: .42s; }
.hero__inner > :nth-child(4) { animation-delay: .58s; }
.hero__inner > :nth-child(5) { animation-delay: .74s; }
.page-hero__inner > :nth-child(1) { animation-delay: .1s; }
.page-hero__inner > :nth-child(2) { animation-delay: .22s; }
.page-hero__inner > :nth-child(3) { animation-delay: .36s; }
.page-hero__inner > :nth-child(4) { animation-delay: .5s; }

/* while the preloader covers the page, hold the hero entrance */
body.loading { overflow: hidden; }
body.loading .hero__inner > * { animation-play-state: paused; }

/* ----- preloader (home only): white cover, logo drops in, cover exits down ----- */
@keyframes preEnter { from { transform: translateY(-100%); } to { transform: translateY(0); } }
.preloader {
  position: fixed; inset: 0; z-index: 999;
  background: #fff;
  display: grid; place-items: center;
  transform: translateY(0);
  transition: transform .9s var(--ease-io), visibility 0s linear .9s;
  animation: preEnter .75s var(--ease-io) backwards;
}
.preloader.done { transform: translateY(100%); visibility: hidden; }
.preloader__box { text-align: center; padding: 0 24px; }
.preloader__box img {
  width: min(330px, 72vw);
  animation: loaderDrop 1.1s var(--ease-out) both;
}
@keyframes loaderDrop {
  from { opacity: 0; transform: translateY(-110px); }
  55%  { opacity: 1; }
  to   { opacity: 1; transform: none; }
}
.preloader__bar {
  width: min(230px, 52vw); height: 3px;
  margin: 30px auto 0;
  background: var(--mist-2); border-radius: 3px; overflow: hidden;
}
.preloader__bar i {
  display: block; height: 100%;
  background: var(--red); border-radius: 3px;
  transform: translateX(-101%);
  animation: loaderFill 2.55s .25s cubic-bezier(.45, .05, .35, 1) forwards;
}
@keyframes loaderFill { to { transform: translateX(0); } }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal:not(.in), .reveal--left:not(.in), .reveal--right:not(.in), .reveal--zoom:not(.in) { opacity: 1; transform: none; filter: none; transition: none; }
  img[data-parallax] { transform: none; }
  .hero__inner > *, .page-hero__inner > * { opacity: 1; animation: none; }
  .preloader { display: none; }
  body.loading { overflow: auto; }
  body.loading .hero__inner > * { animation: none; opacity: 1; }
}

/* lock page scroll while the mobile menu is open */
body.menu-open { overflow: hidden; }

/* ==========================================================================
   Accessibility & polish (review fixes)
   ========================================================================== */
.biz-row { scroll-margin-top: calc(var(--header-h) + 26px); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -9999px; top: 14px; z-index: 300;
  background: var(--navy); color: #fff;
  padding: 12px 22px; border-radius: 999px;
  font-family: var(--font-display); font-weight: 600; font-size: .9rem;
}
.skip-link:focus { left: 14px; }

.field input::placeholder, .field textarea::placeholder { color: var(--slate); opacity: 1; }

:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }
.band :focus-visible, .site-footer :focus-visible, .copybar :focus-visible,
.nav :focus-visible, .hero :focus-visible, .page-hero :focus-visible { outline-color: #fff; }
.field input:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }