/* ==========================================================================
   AI GAS SYSTEMS LTD — aigassystems.com
   Shared stylesheet for index.html and terms.html
   Mobile-first, with explicit tablet (768–1024px) and desktop breakpoints.
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  --navy:        #0B2545;
  --navy-deep:   #071A31;
  --blue:        #134074;
  --blue-light:  #1D5B9E;
  --steel:       #4A5F73;
  --amber:       #E08700;
  --amber-light: #F2A03D;
  --amber-soft:  #FFF3E2;

  --ink:         #12212F;
  --body:        #43566A;
  --muted:       #6B7C8D;
  --line:        #DCE5EE;
  --line-soft:   #EDF2F7;
  --bg:          #FFFFFF;
  --bg-alt:      #F4F7FB;
  --bg-tint:     #EEF4FA;

  --radius-sm: 6px;
  --radius:    12px;
  --radius-lg: 18px;

  --shadow-sm: 0 1px 2px rgba(11, 37, 69, .06), 0 2px 6px rgba(11, 37, 69, .05);
  --shadow:    0 4px 10px rgba(11, 37, 69, .07), 0 12px 28px rgba(11, 37, 69, .08);
  --shadow-lg: 0 10px 24px rgba(11, 37, 69, .10), 0 28px 60px rgba(11, 37, 69, .12);

  --font-head: "Space Grotesk", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;

  --wrap: 1200px;
  --gap: 24px;
  --section-y: 64px;
  --header-h: 68px;
}

/* ---------- 2. Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.nav-open { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
img { height: auto; }

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-light); }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.18;
  margin: 0 0 .5em;
  letter-spacing: -0.01em;
  font-weight: 700;
}

h1 { font-size: clamp(2rem, 6.2vw, 3.4rem); letter-spacing: -0.025em; }
h2 { font-size: clamp(1.6rem, 4.6vw, 2.35rem); letter-spacing: -0.02em; }
h3 { font-size: clamp(1.1rem, 2.6vw, 1.3rem); }
h4 { font-size: 1rem; }

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

/* UA defaults give figure/blockquote a 40px side margin — reset it */
figure, blockquote { margin: 0; }

ul, ol { margin: 0 0 1rem; padding-left: 1.15rem; }
li { margin-bottom: .4rem; }

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
  border-radius: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- 3. Layout helpers ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 20px;
}

.section { padding-block: var(--section-y); }
.section--alt { background: var(--bg-alt); }
.section--tint { background: var(--bg-tint); }
.section--dark { background: var(--navy); color: #C9D8E8; }
.section--dark h2, .section--dark h3 { color: #FFFFFF; }

.section-head { max-width: 700px; margin-bottom: 36px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { font-size: 1.03rem; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 12px;
}
.section--dark .eyebrow { color: var(--amber-light); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--navy);
  color: #fff;
  padding: 12px 18px;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; color: #fff; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- 4. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  padding: 15px 26px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 18px; height: 18px; flex: none; }

.btn--primary {
  background: var(--amber);
  border-color: var(--amber);
  color: #1A1206;
  box-shadow: 0 4px 14px rgba(224, 135, 0, .32);
}
.btn--primary:hover { background: var(--amber-light); border-color: var(--amber-light); color: #1A1206; }

.btn--outline {
  background: transparent;
  border-color: rgba(255, 255, 255, .5);
  color: #FFFFFF;
}
.btn--outline:hover { background: rgba(255, 255, 255, .12); border-color: #FFFFFF; color: #FFFFFF; }

.btn--dark {
  background: var(--navy);
  border-color: var(--navy);
  color: #FFFFFF;
}
.btn--dark:hover { background: var(--blue); border-color: var(--blue); color: #FFFFFF; }

.btn--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}
.btn--ghost:hover { border-color: var(--navy); color: var(--navy); }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* Text link with arrow */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .95rem;
  color: var(--blue);
}
.link-arrow svg { width: 16px; height: 16px; transition: transform .18s ease; }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- 5. Icons ---------- */
.icon {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

.icon-tile {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  background: var(--bg-tint);
  color: var(--blue);
  margin-bottom: 18px;
}
.icon-tile .icon { width: 26px; height: 26px; }
.icon-tile--amber { background: var(--amber-soft); color: var(--amber); }
.icon-tile--dark { background: rgba(255, 255, 255, .08); color: var(--amber-light); }

/* ---------- 6. Header & navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  /* No backdrop-filter here: it would create a containing block for the
     position:fixed mobile nav and collapse it to the header's height. */
  background: #FFFFFF;
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.01em;
  flex: none;
}
.logo:hover { color: var(--blue); }
.logo svg { width: 34px; height: 34px; }
.logo-text { display: flex; flex-direction: column; line-height: 1.05; }
.logo-text strong { font-size: 1.02rem; letter-spacing: .01em; }
.logo-text span {
  font-family: var(--font-body);
  font-size: .62rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  color: var(--navy);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .85rem;
  cursor: pointer;
}
.nav-toggle .icon { width: 20px; height: 20px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.site-nav {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: #FFFFFF;
  padding: 24px 20px 40px;
  overflow-y: auto;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform .26s ease, visibility .26s ease;
}
.site-nav.is-open { transform: translateX(0); visibility: visible; }

.nav-list {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.nav-list a {
  display: block;
  padding: 14px 4px;
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
}
.nav-list a:hover, .nav-list a[aria-current="page"] { color: var(--blue); }

.nav-cta { display: flex; flex-direction: column; gap: 12px; }
.nav-cta .btn { width: 100%; }
.nav-phone {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--navy);
  padding: 12px 0;
}
.nav-phone .icon { width: 19px; height: 19px; color: var(--amber); }

/* ---------- 7. Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(120% 90% at 88% 8%, #17436F 0%, transparent 58%),
    radial-gradient(90% 70% at 4% 96%, #0E3358 0%, transparent 60%),
    linear-gradient(158deg, #061525 0%, var(--navy) 46%, #10365C 100%);
  color: #C9D8E8;
  padding-block: 40px 56px;
  overflow: hidden;
}

/* Blueprint grid */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(115% 85% at 72% 28%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(115% 85% at 72% 28%, #000 0%, transparent 72%);
  pointer-events: none;
}

/* Soft vignette so text always wins on contrast */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(6,21,37,.42) 0%, transparent 26%, transparent 72%, rgba(6,21,37,.55) 100%);
  pointer-events: none;
}

.hero-bg { position: absolute; inset: 0; z-index: -2; pointer-events: none; overflow: hidden; }

/* Drifting light orbs */
/* Soft radial fills rather than blur() — large blur radii are expensive to
   composite and these gradients already fall off smoothly. */
.hero-orb {
  position: absolute;
  display: block;
  border-radius: 50%;
  opacity: .75;
}
.hero-orb--amber {
  width: 46vw; height: 46vw;
  max-width: 620px; max-height: 620px;
  top: -14%; right: -10%;
  background: radial-gradient(circle, rgba(242,160,61,.55) 0%, rgba(242,160,61,0) 70%);
  animation: orbDriftA 22s ease-in-out infinite alternate;
}
.hero-orb--blue {
  width: 52vw; height: 52vw;
  max-width: 700px; max-height: 700px;
  bottom: -22%; left: -16%;
  background: radial-gradient(circle, rgba(45,140,232,.45) 0%, rgba(45,140,232,0) 70%);
  animation: orbDriftB 26s ease-in-out infinite alternate;
}
@keyframes orbDriftA {
  from { transform: translate3d(0,0,0) scale(1); }
  to   { transform: translate3d(-6%, 8%, 0) scale(1.14); }
}
@keyframes orbDriftB {
  from { transform: translate3d(0,0,0) scale(1.06); }
  to   { transform: translate3d(9%, -7%, 0) scale(.94); }
}

/* Flowing pipe schematic */
.hero-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-lines-base path,
.hero-lines-flow path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.hero-lines-base path { stroke: rgba(255,255,255,.08); stroke-width: 2; }
.hero-nodes circle { fill: none; stroke: rgba(242,160,61,.4); stroke-width: 2; }

.hero-lines-flow .flow {
  stroke: var(--amber-light);
  stroke-width: 2.5;
  stroke-dasharray: 14 340;
  filter: drop-shadow(0 0 6px rgba(242,160,61,.85));
  animation: pipeFlow 9s linear infinite;
}
.hero-lines-flow .flow--2 { animation-duration: 12s; animation-delay: -3s; stroke: #6FB6FF; filter: drop-shadow(0 0 6px rgba(111,182,255,.8)); }
.hero-lines-flow .flow--3 { animation-duration: 15s; animation-delay: -7s; }
@keyframes pipeFlow { to { stroke-dashoffset: -708; } }

.hero .wrap { position: relative; z-index: 1; }
.hero-grid { display: grid; gap: 40px 36px; align-items: center; }

/* Entrance reveal */
.reveal { animation: revealUp .7s cubic-bezier(.22,.68,.36,1) both; animation-delay: var(--d, 0ms); }
@keyframes revealUp {
  from { opacity: 0; transform: translate3d(0, 18px, 0); }
  to   { opacity: 1; transform: none; }
}

/* Eyebrow pill */
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 15px 8px 12px;
  margin-bottom: 20px;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.07);
  font-family: var(--font-head);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #E6EFF8;
}
.hero-pill-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--amber-light);
  box-shadow: 0 0 0 0 rgba(242,160,61,.7);
  animation: pillPulse 2.4s ease-out infinite;
}
@keyframes pillPulse {
  0%   { box-shadow: 0 0 0 0 rgba(242,160,61,.6); }
  70%  { box-shadow: 0 0 0 9px rgba(242,160,61,0); }
  100% { box-shadow: 0 0 0 0 rgba(242,160,61,0); }
}

.hero h1 {
  color: #FFFFFF;
  margin-bottom: 20px;
  text-wrap: balance;
}
.hero-accent {
  display: block;
  color: var(--amber-light); /* fallback where background-clip:text is unsupported */
  background: linear-gradient(96deg, #FFC978 0%, var(--amber-light) 34%, #FF9A2E 72%, #FFD79B 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  font-size: 1.08rem;
  color: #C3D6E9;
  max-width: 56ch;
  margin-bottom: 26px;
}

/* Feature chips */
.hero-chips {
  list-style: none;
  padding: 0;
  margin: 0 0 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.hero-chips li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  padding: 7px 12px;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  font-size: .79rem;
  color: #DCE8F4;
}
.hero-chips .icon { width: 15px; height: 15px; color: var(--amber-light); }

/* Phones: keep both hero CTAs on one row */
.hero .btn-row .btn { flex: 1 1 0; min-width: 0; padding-inline: 16px; }

/* Buttons */
.btn--glass {
  background: rgba(255,255,255,.11);
  border-color: rgba(255,255,255,.26);
  color: #FFFFFF;
}
.btn--glass:hover { background: rgba(255,255,255,.17); border-color: #FFFFFF; color: #FFFFFF; }

.btn--glow { position: relative; overflow: hidden; box-shadow: 0 6px 26px rgba(224,135,0,.42); }
.btn--glow::after {
  content: "";
  position: absolute;
  top: 0; left: -80%;
  width: 55%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.5), transparent);
  transform: skewX(-20deg);
  animation: btnSheen 4.5s ease-in-out infinite;
}
@keyframes btnSheen {
  0%, 62% { left: -80%; }
  92%, 100% { left: 130%; }
}

/* Metrics */
.trust-strip {
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, .14);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px 16px;
}
.trust-strip div strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.7rem;
  line-height: 1.1;
  color: #FFFFFF;
  background: linear-gradient(180deg, #FFFFFF 0%, #B9D2EA 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.trust-strip div span { font-size: .82rem; color: #A8BED6; }

/* ---------- Hero visual ---------- */
.hero-visual { position: relative; }

.hero-frame {
  position: relative;
  padding: 1px;
  border-radius: 22px;
  background: linear-gradient(150deg, rgba(255,255,255,.42), rgba(255,255,255,.05) 42%, rgba(242,160,61,.42));
  box-shadow: 0 22px 60px rgba(3, 12, 24, .55);
}
.hero-frame-inner {
  position: relative;
  border-radius: 21px;
  overflow: hidden;
  background: var(--navy-deep);
}
.hero-frame-inner img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  display: block;
}

/* Sweeping scan line over the image */
.hero-scan {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(242,160,61,.16) 50%, transparent 58%);
  animation: scanSweep 6.5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes scanSweep {
  0%, 100% { transform: translateY(-58%); opacity: 0; }
  12%      { opacity: 1; }
  88%      { opacity: 1; }
  95%      { transform: translateY(58%); opacity: 0; }
}

/* Illustrative compliance readout */
.hero-panel {
  margin-top: 16px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(9, 27, 47, .82);
  backdrop-filter: blur(14px);
  padding: 18px;
  box-shadow: 0 18px 44px rgba(3, 12, 24, .5);
}
.hero-panel-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.hero-panel-head .icon { width: 24px; height: 24px; color: var(--amber-light); }
.hero-panel-head strong { display: block; font-family: var(--font-head); font-size: .95rem; color: #FFFFFF; }
.hero-panel-head span { font-size: .8rem; color: #9FB7CF; }

.hero-panel-list { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 8px; }
.hero-panel-list li {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  font-size: .85rem;
  color: #D3E1EF;
}
.hero-panel-list .icon { width: 16px; height: 16px; color: #5FD08A; stroke-width: 2.4; }

.hero-meter {
  height: 6px;
  border-radius: 100px;
  background: rgba(255,255,255,.12);
  overflow: hidden;
}
.hero-meter span {
  display: block;
  height: 100%;
  width: 92%;
  border-radius: 100px;
  background: linear-gradient(90deg, var(--amber), var(--amber-light));
  animation: meterFill 1.6s cubic-bezier(.22,.68,.36,1) .5s both;
}
@keyframes meterFill { from { width: 0; } }
.hero-panel-foot { margin: 10px 0 0; font-size: .78rem; color: #9FB7CF; }

.hero-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  background: #FFFFFF;
  color: var(--ink);
  padding: 14px 17px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.hero-badge .icon { width: 26px; height: 26px; color: var(--amber); }
.hero-badge strong { display: block; font-family: var(--font-head); font-size: .93rem; }
.hero-badge span { font-size: .8rem; color: var(--muted); }

/* Scroll cue */
.hero-scroll {
  display: none;
  position: absolute;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  z-index: 1;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  color: #93AECA;
  font-family: var(--font-head);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.hero-scroll:hover { color: var(--amber-light); }
.hero-scroll-mouse {
  width: 24px; height: 38px;
  border: 2px solid currentColor;
  border-radius: 100px;
  display: grid;
  justify-items: center;
  padding-top: 7px;
}
.hero-scroll-mouse span {
  width: 3px; height: 7px;
  border-radius: 100px;
  background: currentColor;
  animation: scrollCue 1.9s ease-in-out infinite;
}
@keyframes scrollCue {
  0%, 100% { transform: translateY(0); opacity: 1; }
  55%      { transform: translateY(9px); opacity: .25; }
}

/* ---------- 8. Cards & grids ---------- */
.grid { display: grid; gap: var(--gap); }

.card {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: #C9D8E8; }

.card-media { position: relative; background: var(--bg-tint); }
.card-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.card-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { margin-bottom: 8px; }
.card-body p { font-size: .95rem; }
.card-body .link-arrow { margin-top: auto; padding-top: 14px; }

.card-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(11, 37, 69, .88);
  color: #FFFFFF;
  font-family: var(--font-head);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 6px 11px;
  border-radius: 100px;
}

.card-list {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  display: grid;
  gap: 7px;
}
.card-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  font-size: .9rem;
  color: var(--body);
}
.card-list .icon { width: 17px; height: 17px; color: var(--amber); margin-top: 3px; }

/* Plain (icon-only) card */
.card--plain { padding: 26px 24px; }
.card--plain h3 { margin-bottom: 8px; }

/* ---------- 9. Process steps ---------- */
.steps { display: grid; gap: 20px; counter-reset: step; }
.step {
  position: relative;
  background: rgba(255, 255, 255, .045);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius);
  padding: 26px 24px;
}
.step-num {
  font-family: var(--font-head);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--amber-light);
  display: block;
  margin-bottom: 14px;
}
.step h3 { font-size: 1.15rem; margin-bottom: 8px; }
.step p { font-size: .94rem; color: #B7CADD; }

.process-note {
  margin-top: 28px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: rgba(242, 160, 61, .1);
  border: 1px solid rgba(242, 160, 61, .3);
  border-radius: var(--radius);
  padding: 20px;
  color: #E4EDF6;
  font-size: .95rem;
}
.process-note .icon { color: var(--amber-light); margin-top: 2px; }

/* ---------- 10. Case studies ---------- */
.section--cases {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(90% 60% at 100% 0%, #EAF2FA 0%, transparent 62%),
    linear-gradient(180deg, #FFFFFF 0%, #F7FAFD 100%);
}
.sheen {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
}
.sheen--cases {
  width: 640px; height: 640px;
  top: -240px; right: -180px;
  background: radial-gradient(circle, rgba(224,135,0,.16) 0%, rgba(224,135,0,0) 70%);
}

.section-head--split { max-width: none; display: grid; gap: 14px; }
.section-head--split > div { max-width: 640px; }
.section-head--split > p { max-width: 46ch; }

.case-grid { display: grid; gap: var(--gap); }

.case-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .28s cubic-bezier(.22,.68,.36,1), box-shadow .28s ease, border-color .28s ease;
}
.case-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: #C4D6E8;
}

.case-media { position: relative; overflow: hidden; }
.case-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: transform .55s cubic-bezier(.22,.68,.36,1);
}
.case-card:hover .case-media img { transform: scale(1.06); }
.case-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7,26,49,.55) 0%, rgba(7,26,49,.08) 38%, rgba(7,26,49,.86) 100%);
}

.case-index {
  position: absolute;
  top: 14px; left: 16px;
  z-index: 1;
  font-family: var(--font-head);
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1;
  color: rgba(255,255,255,.42);
  letter-spacing: -.03em;
}
.case-tag {
  position: absolute;
  top: 18px; right: 16px;
  z-index: 1;
  background: rgba(9, 27, 47, .55);
  border: 1px solid rgba(255,255,255,.32);
  color: #FFFFFF;
  font-family: var(--font-head);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 100px;
}
.case-metric {
  position: absolute;
  left: 20px; right: 20px; bottom: 16px;
  z-index: 1;
  color: #FFFFFF;
}
.case-metric strong {
  display: block;
  font-family: var(--font-head);
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.03em;
  background: linear-gradient(180deg, #FFFFFF 0%, #FFCE8C 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.case-metric sup { font-size: .42em; margin-left: 2px; top: -.7em; }
.case-metric span { display: block; font-size: .82rem; color: #D6E4F2; margin-top: 3px; }

.case-body { padding: 24px 22px 26px; display: flex; flex-direction: column; flex: 1; }
.case-body h3 { margin-bottom: 18px; }

.case-steps { margin: 0; display: grid; gap: 0; }
.case-step { position: relative; display: flex; gap: 14px; padding-bottom: 18px; }
.case-step:last-child { padding-bottom: 0; }
/* Connector line between the timeline dots */
.case-step:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 32px;
  bottom: 4px;
  width: 2px;
  background: linear-gradient(180deg, var(--line), rgba(220,229,238,.25));
}
.case-dot {
  flex: none;
  width: 32px; height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--bg-tint);
  color: var(--blue);
  border: 1px solid var(--line);
}
.case-dot .icon { width: 16px; height: 16px; }
.case-step--result .case-dot {
  background: linear-gradient(140deg, var(--amber), var(--amber-light));
  border-color: transparent;
  color: #1A1206;
  box-shadow: 0 4px 12px rgba(224,135,0,.34);
}
.case-step dt {
  font-family: var(--font-head);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 3px;
}
.case-step dd { margin: 0; font-size: .92rem; }
.case-step--result dt { color: var(--amber); }
.case-step--result dd { color: var(--ink); font-weight: 500; }

/* ---------- 11. Testimonials ---------- */
.section--quotes {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(165deg, #071A31 0%, var(--navy) 52%, #10355A 100%);
  color: #C3D6E9;
}
.section--quotes h2 { color: #FFFFFF; }
.section--quotes .eyebrow { color: var(--amber-light); }
.section--quotes .section-head p { color: #A8BED6; }

.quotes-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.quotes-orb { position: absolute; border-radius: 50%; }
.quotes-orb--a {
  width: 480px; height: 480px;
  top: -160px; left: -120px;
  background: radial-gradient(circle, rgba(242,160,61,.28) 0%, rgba(242,160,61,0) 70%);
}
.quotes-orb--b {
  width: 540px; height: 540px;
  bottom: -220px; right: -140px;
  background: radial-gradient(circle, rgba(45,140,232,.3) 0%, rgba(45,140,232,0) 70%);
}

.quote {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  padding: 28px 24px 24px;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform .28s cubic-bezier(.22,.68,.36,1), border-color .28s ease, background-color .28s ease;
}
.quote:hover {
  transform: translateY(-5px);
  border-color: rgba(242,160,61,.42);
  background: rgba(255,255,255,.085);
}
/* Amber hairline that lights up along the top edge */
.quote::before {
  content: "";
  position: absolute;
  top: 0; left: 18%; right: 18%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--amber-light), transparent);
  opacity: .5;
  transition: opacity .28s ease, left .4s ease, right .4s ease;
}
.quote:hover::before { opacity: 1; left: 4%; right: 4%; }

.quote-glyph {
  position: absolute;
  top: -26px; right: 6px;
  font-family: var(--font-head);
  font-size: 8rem;
  line-height: 1;
  color: rgba(255,255,255,.055);
  pointer-events: none;
  user-select: none;
}
.quote .icon-quote { width: 28px; height: 28px; color: var(--amber-light); margin-bottom: 16px; }
.quote blockquote { margin: 0 0 22px; font-size: 1rem; color: #E7EFF7; line-height: 1.62; }

.quote figcaption {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.12);
  display: flex;
  align-items: center;
  gap: 13px;
}
.quote-avatar {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--amber), var(--amber-light));
  color: #17202B;
  display: grid; place-items: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .92rem;
  flex: none;
  box-shadow: 0 0 0 3px rgba(242,160,61,.18);
}
.quote-name { display: block; font-family: var(--font-head); font-weight: 600; color: #FFFFFF; font-size: .96rem; }
.quote-role { display: block; font-size: .83rem; color: #9FB7CF; }

/* ---------- 12. About ---------- */
.section--about { position: relative; isolation: isolate; overflow: hidden; }
.sheen--about {
  width: 620px; height: 620px;
  bottom: -280px; left: -220px;
  background: radial-gradient(circle, rgba(29,91,158,.14) 0%, rgba(29,91,158,0) 70%);
}

.about-grid { display: grid; gap: 36px; align-items: start; }

.about-media { position: relative; margin-bottom: 64px; }
.about-media-main {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about-media-main img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}
/* Blueprint tick marks framing the portrait (bottom-left, clear of both overlays) */
.about-media::before {
  content: "";
  position: absolute;
  bottom: -14px; left: -14px;
  width: 92px; height: 92px;
  border-bottom: 3px solid var(--amber);
  border-left: 3px solid var(--amber);
  border-radius: 0 0 0 6px;
  opacity: .5;
}

/* Overlays sit on opposite diagonals so they can never collide */
.about-media-sub {
  position: absolute;
  right: -10px;
  bottom: -48px;
  width: 36%;
  max-width: 200px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 5px solid #FFFFFF;
  box-shadow: var(--shadow);
}
.about-media-sub img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; }

.about-credential {
  position: absolute;
  left: -12px;
  top: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 13px 15px;
  box-shadow: var(--shadow-lg);
  max-width: 76%;
}
.about-credential-icon {
  flex: none;
  width: 38px; height: 38px;
  border-radius: 10px;
  display: grid; place-items: center;
  background: linear-gradient(140deg, var(--amber), var(--amber-light));
  color: #1A1206;
}
.about-credential-icon .icon { width: 20px; height: 20px; }
.about-credential strong { display: block; font-family: var(--font-head); font-size: .88rem; color: var(--ink); }
.about-credential span { display: block; font-size: .76rem; color: var(--muted); line-height: 1.4; }

.about-quote {
  position: relative;
  margin: 26px 0;
  padding: 22px 22px 20px 24px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--bg-tint) 0%, #FFFFFF 100%);
  border: 1px solid var(--line);
  border-left: 4px solid var(--amber);
}
.about-quote-mark {
  position: absolute;
  top: 16px; right: 18px;
  color: var(--amber);
  opacity: .28;
}
.about-quote-mark .icon { width: 26px; height: 26px; }
.about-quote p {
  margin: 0 0 10px;
  font-family: var(--font-head);
  font-size: 1.06rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.5;
  max-width: 52ch;
}
.about-quote cite {
  font-style: normal;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}

.pillars { display: grid; gap: 14px; margin-top: 26px; }
.pillar {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 16px 16px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #FFFFFF;
  transition: border-color .22s ease, transform .22s ease, box-shadow .22s ease;
}
.pillar:hover { border-color: #C4D6E8; transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.pillar-icon {
  flex: none;
  width: 40px; height: 40px;
  border-radius: 10px;
  display: grid; place-items: center;
  background: var(--bg-tint);
  color: var(--blue);
  transition: background-color .22s ease, color .22s ease;
}
.pillar:hover .pillar-icon { background: var(--amber-soft); color: var(--amber); }
.pillar-icon .icon { width: 20px; height: 20px; }
.pillar h3 { font-size: 1rem; margin-bottom: 3px; }
.pillar p { font-size: .9rem; margin: 0; }

/* ---------- 13. Achievements ---------- */
.achievements { display: grid; gap: 18px; }
.achievement {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px;
}
.achievement .icon { width: 28px; height: 28px; color: var(--amber); margin-top: 2px; }
.achievement h3 { font-size: 1.02rem; margin-bottom: 5px; }
.achievement p { font-size: .91rem; margin: 0; }

/* ---------- 14. Blog ---------- */
.post-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .8rem;
  color: var(--muted);
  margin-bottom: 9px;
}
.post-meta .icon { width: 15px; height: 15px; }
.post-meta time { font-variant-numeric: tabular-nums; }

/* ---------- 15. FAQ ---------- */
.faq { max-width: 860px; margin-inline: auto; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: transparent;
  border: 0;
  padding: 20px 2px;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.03rem;
  color: var(--ink);
  line-height: 1.4;
}
.faq-q:hover { color: var(--blue); }
.faq-q .icon { color: var(--amber); transition: transform .22s ease; }
.faq-q[aria-expanded="true"] .icon { transform: rotate(45deg); }
.faq-a {
  display: none;
  padding: 0 2px 22px;
  font-size: .96rem;
  max-width: 72ch;
}
.faq-a.is-open { display: block; }
.faq-a ul { margin-top: .5rem; }

/* ---------- 16. Contact ---------- */
.contact-grid { display: grid; gap: 36px; align-items: start; }

.contact-details { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 18px; }
.contact-details li { display: flex; gap: 14px; align-items: flex-start; margin: 0; }
.contact-details .icon { width: 22px; height: 22px; color: var(--amber-light); margin-top: 3px; }
.contact-details strong {
  display: block;
  font-family: var(--font-head);
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #9FB7CF;
  margin-bottom: 2px;
}
.contact-details a, .contact-details address {
  color: #FFFFFF;
  font-style: normal;
  font-size: 1rem;
  line-height: 1.5;
}
.contact-details a:hover { color: var(--amber-light); }

.form-card {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 26px 22px;
  box-shadow: var(--shadow-lg);
  color: var(--body);
}
.form-card h3 { margin-bottom: 6px; }
.form-intro { font-size: .92rem; color: var(--muted); margin-bottom: 20px; }

.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .87rem;
  color: var(--ink);
  margin-bottom: 6px;
}
.field .optional { font-weight: 400; color: var(--muted); font-size: .8rem; }
.field input, .field select, .field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.field textarea { min-height: 128px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--blue-light);
  box-shadow: 0 0 0 3px rgba(29, 91, 158, .16);
}
.field-row { display: grid; gap: 0; }

.form-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: .85rem;
  color: var(--muted);
  margin-bottom: 18px;
}
.form-consent input { width: 17px; height: 17px; margin-top: 3px; flex: none; }

.form-card .btn { width: 100%; }

.form-status {
  margin-top: 14px;
  font-size: .9rem;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-tint);
  border: 1px solid var(--line);
  color: var(--ink);
  display: none;
}
.form-status.is-visible { display: block; }

.form-note {
  margin-top: 14px;
  font-size: .82rem;
  color: var(--muted);
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.form-note .icon { width: 16px; height: 16px; color: var(--amber); margin-top: 2px; }

/* ---------- 17. Legal / long-form pages ---------- */
.page-hero {
  background: linear-gradient(160deg, var(--navy-deep), var(--blue));
  color: #C9D8E8;
  padding-block: 52px;
}
.page-hero h1 { color: #FFFFFF; margin-bottom: 12px; }
.page-hero p { max-width: 62ch; color: #BCD0E4; }
.page-hero .updated { font-size: .88rem; color: #9FB7CF; margin-top: 14px; }

.breadcrumb {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0 0 18px;
  font-size: .85rem;
  color: #9FB7CF;
}
.breadcrumb li { margin: 0; display: flex; gap: 8px; align-items: center; }
.breadcrumb a { color: #C9D8E8; }
.breadcrumb a:hover { color: var(--amber-light); }
.breadcrumb li + li::before { content: "/"; color: rgba(255,255,255,.35); }

.legal-layout { display: grid; gap: 34px; align-items: start; }

.legal-toc {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px;
}
.legal-toc h2 { font-size: 1rem; margin-bottom: 12px; }
.legal-toc ol { margin: 0; padding-left: 1.1rem; font-size: .92rem; }
.legal-toc li { margin-bottom: .35rem; }

.legal-body h2 {
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  margin-top: 40px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.legal-body > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.legal-body h3 { font-size: 1.05rem; margin-top: 22px; }
.legal-body p, .legal-body li { font-size: .97rem; }

.info-panel {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 22px 20px;
  margin: 22px 0;
}
.info-panel h3 { margin-top: 0; }
.info-panel dl { margin: 0; display: grid; gap: 10px; }
.info-panel dt {
  font-family: var(--font-head);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.info-panel dd { margin: 2px 0 0; font-size: .97rem; color: var(--ink); }

.callout {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--amber-soft);
  border: 1px solid rgba(224, 135, 0, .32);
  border-radius: var(--radius);
  padding: 20px;
  margin: 22px 0;
}
.callout .icon { color: var(--amber); margin-top: 2px; }
.callout p { font-size: .95rem; color: #4A3410; }
.callout strong { color: #3A2708; }

/* ---------- 18. Footer ---------- */
.site-footer {
  background: var(--navy-deep);
  color: #A8BED6;
  padding-block: 48px 0;
  font-size: .93rem;
}
.footer-grid { display: grid; gap: 32px; }
.site-footer h2, .site-footer h3 {
  color: #FFFFFF;
  font-size: .82rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.site-footer a { color: #A8BED6; }
.site-footer a:hover { color: var(--amber-light); }
.footer-brand .logo { color: #FFFFFF; margin-bottom: 14px; }
.footer-brand .logo:hover { color: var(--amber-light); }
.footer-brand .logo-text span { color: #8AA3BD; }
.footer-brand p { max-width: 42ch; font-size: .91rem; }

.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.footer-links li { margin: 0; }

.footer-contact { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; margin: 0; }
.footer-contact .icon { width: 18px; height: 18px; color: var(--amber-light); margin-top: 3px; }
.footer-contact address { font-style: normal; line-height: 1.5; }

.footer-bottom {
  margin-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding-block: 22px 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: .85rem;
  color: #8AA3BD;
}
.footer-legal { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.footer-legal a { color: #8AA3BD; }

/* ---------- 19. Cookie banner ---------- */
.cookie-banner {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 150;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 20px;
  display: none;
}
.cookie-banner.is-visible { display: block; }
.cookie-inner { display: flex; flex-direction: column; gap: 16px; }
.cookie-text { display: flex; gap: 13px; align-items: flex-start; }
.cookie-text .icon { width: 24px; height: 24px; color: var(--amber); margin-top: 2px; }
.cookie-text p { font-size: .9rem; color: var(--body); }
.cookie-text strong { display: block; font-family: var(--font-head); color: var(--ink); margin-bottom: 3px; }
.cookie-actions { display: flex; gap: 10px; }
.cookie-actions .btn { flex: 1; padding: 12px 18px; font-size: .92rem; }

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */

/* ---- Large phone (>= 480px) ---- */
@media (min-width: 480px) {
  .cookie-actions .btn { flex: 0 0 auto; min-width: 130px; }
}

/* ---- Small tablet / iPad portrait (>= 768px) ---- */
@media (min-width: 768px) {
  :root { --section-y: 84px; --gap: 26px; }

  .wrap { padding-inline: 32px; }

  .hero { padding-block: 64px 88px; }
  .hero-sub { font-size: 1.14rem; }
  .hero-chips li { font-size: .88rem; padding: 9px 14px; gap: 8px; }
  .hero-chips .icon { width: 17px; height: 17px; }
  .hero .btn-row .btn { flex: 0 0 auto; padding-inline: 26px; }
  .trust-strip { grid-template-columns: repeat(4, 1fr); }

  /* Tablet: readout and badge sit side by side beneath the image */
  .hero-visual { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .hero-frame { grid-column: 1 / -1; }
  .hero-frame-inner img { aspect-ratio: 16 / 9; }
  .hero-panel, .hero-badge { margin-top: 0; }
  .hero-badge { align-self: start; }

  /* Tablet gets its own 2-column rhythm */
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .achievements { grid-template-columns: repeat(2, 1fr); }

  /* Tablet: 2-up services, with the first card featured across the full row */
  .grid--services { grid-template-columns: repeat(2, 1fr); }
  .grid--services > .card:first-child { grid-column: 1 / -1; }
  .grid--services > .card:first-child { flex-direction: row; }
  .grid--services > .card:first-child .card-media { flex: 0 0 44%; }
  .grid--services > .card:first-child .card-media img { height: 100%; aspect-ratio: auto; }
  .grid--services > .card:first-child .card-body { padding: 26px; justify-content: center; }

  .about-grid { grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
  .contact-grid { grid-template-columns: 1fr 1fr; gap: 40px; }

  /* Tablet: 2-up case studies, third card runs full width horizontally */
  .case-grid { grid-template-columns: repeat(2, 1fr); }
  .case-grid > .case-card:last-child { grid-column: 1 / -1; flex-direction: row; }
  .case-grid > .case-card:last-child .case-media { flex: 0 0 46%; }
  .case-grid > .case-card:last-child .case-media img { height: 100%; aspect-ratio: auto; }
  .case-grid > .case-card:last-child .case-body { justify-content: center; }

  .section-head--split { grid-template-columns: 1.35fr 1fr; align-items: end; gap: 32px; }

  /* Third testimonial spans the row instead of sitting orphaned */
  .section--quotes .grid--3 > .quote:last-child { grid-column: 1 / -1; }
  .field-row { grid-template-columns: 1fr 1fr; gap: 0 16px; }

  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 34px 30px; }
  .footer-bottom { flex-direction: row; align-items: center; justify-content: space-between; }

  .legal-layout { grid-template-columns: 260px minmax(0, 1fr); gap: 42px; }
  .legal-toc { position: sticky; top: calc(var(--header-h) + 20px); }

  .cookie-banner { left: auto; right: 20px; bottom: 20px; max-width: 460px; padding: 22px; }
  .cookie-actions .btn { flex: 1; }

  .form-card { padding: 30px 28px; }
  .card-body { padding: 26px; }
}

/* ---- iPad landscape / small laptop (>= 1024px) ---- */
@media (min-width: 1024px) {
  :root { --section-y: 96px; --gap: 28px; --header-h: 76px; }

  body { font-size: 17px; }

  .nav-toggle { display: none; }

  .site-nav {
    position: static;
    transform: none;
    visibility: visible;
    background: transparent;
    padding: 0;
    overflow: visible;
    display: flex;
    align-items: center;
    gap: 20px;
    inset: auto;
  }
  .nav-list {
    flex-direction: row;
    align-items: center;
    gap: 4px;
    margin: 0;
  }
  .nav-list a {
    padding: 8px 11px;
    border: 0;
    border-radius: var(--radius-sm);
    font-size: .93rem;
    white-space: nowrap;
  }
  .nav-list a:hover { background: var(--bg-tint); }
  .nav-list a[aria-current="page"] { background: var(--bg-tint); }
  .nav-cta { flex-direction: row; align-items: center; gap: 12px; }
  .nav-cta .btn { width: auto; padding: 12px 20px; font-size: .92rem; }
  .nav-phone { display: none; }

  .hero { padding-block: 64px 84px; }
  .hero-grid { grid-template-columns: 1.04fr .96fr; gap: 56px; align-items: center; }
  .hero-sub { font-size: 1.16rem; margin-bottom: 24px; }
  .hero-chips { margin-bottom: 26px; }
  .trust-strip { margin-top: 34px; padding-top: 24px; }
  .hero-scroll { display: flex; }

  /* Desktop: tilted frame with the readout and badge floating over it */
  .hero-visual { display: block; }
  .hero-frame {
    transform: perspective(1400px) rotateY(-7deg) rotateX(2.5deg);
    transition: transform .5s cubic-bezier(.22,.68,.36,1);
  }
  .hero-frame:hover { transform: perspective(1400px) rotateY(-2deg) rotateX(1deg) translateY(-4px); }
  .hero-frame-inner img { aspect-ratio: 1 / 1.06; }

  .hero-panel {
    position: absolute;
    left: -26px;
    bottom: 34px;
    width: 296px;
    margin-top: 0;
  }
  .hero-badge {
    position: absolute;
    right: -18px;
    top: 26px;
    width: 262px;
    margin-top: 0;
  }

  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .achievements { grid-template-columns: repeat(3, 1fr); }

  /* 5 services: one full-width feature card, then two balanced half-width rows */
  .grid--services { grid-template-columns: repeat(6, 1fr); }
  .grid--services > .card { grid-column: span 3; flex-direction: column; }
  .grid--services > .card:first-child { grid-column: span 6; flex-direction: row; }
  .grid--services > .card:first-child .card-media { flex: 0 0 46%; }

  .about-grid { grid-template-columns: .9fr 1.1fr; gap: 56px; }
  .contact-grid { grid-template-columns: 1fr 1.05fr; gap: 56px; }

  /* Desktop: three equal case studies */
  .case-grid { grid-template-columns: repeat(3, 1fr); }
  .case-grid > .case-card:last-child { grid-column: auto; flex-direction: column; }
  .case-grid > .case-card:last-child .case-media { flex: none; }
  .case-grid > .case-card:last-child .case-media img { height: auto; aspect-ratio: 4 / 3; }
  .case-grid > .case-card:last-child .case-body { justify-content: flex-start; }

  .about-media { margin-bottom: 0; }
  .about-media-main img { aspect-ratio: 4 / 5; }
  .about-media-sub { bottom: -46px; right: -28px; width: 40%; }
  .about-credential { left: -28px; top: 32px; max-width: 66%; }

  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 40px; }

  .pillars { grid-template-columns: repeat(2, 1fr); gap: 20px 26px; }
}

/* ---- Wide desktop (>= 1280px) ---- */
@media (min-width: 1280px) {
  :root { --section-y: 108px; }
  .wrap { padding-inline: 40px; }
  .hero-grid { gap: 68px; }
  .nav-list a { padding: 8px 14px; font-size: .95rem; }
}

/* ---- Print ---- */
@media print {
  .site-header, .site-footer, .cookie-banner, .hero-visual, .hero-bg, .hero-scroll, .btn { display: none !important; }
  body { color: #000; font-size: 12pt; }
}
