/*
  Palette built around the Renewabilities logo (loop green and sun yellow).
  Colour split follows the 60-30-10 rule:
    60% neutrals (paper, white, navy), 30% brand blue and fern green,
    10% sun yellow, kept for calls to action and the single hero highlight.
  Every text pair meets WCAG AA (4.5:1 body, 3:1 large text and UI borders).
*/
:root {
  --sky: #5aaaf0;
  --sky-light: #a9d4ff;  /* eyebrows and labels on dark backgrounds */
  --blue: #1f6fd0;       /* 4.95:1 on white */
  --deep: #0b4aa2;
  --navy: #071d3d;
  --navy-2: #0a2a57;
  --fern: #3f9d33;       /* decorative only, too light for text on white */
  --fern-text: #2c7a23;  /* 5.09:1 on paper */
  --fern-dark: #123a1c;
  --loop: #45c97a;       /* logo mark green, decorative and dark backgrounds only */
  --sun: #f8c62a;
  --sun-soft: #ffe07a;
  --ink: #0d1520;
  --text: #1c2836;
  --muted: #5b6b7e;      /* 5.17:1 on paper */
  --field-line: #7d8ea3; /* 3.18:1 on paper, meets non-text contrast */
  --paper: #f7f9fc;
  --white: #ffffff;

  /* 8pt spacing scale */
  --s1: .5rem;   /*  8 */
  --s2: 1rem;    /* 16 */
  --s3: 1.5rem;  /* 24 */
  --s4: 2rem;    /* 32 */
  --s5: 3rem;    /* 48 */
  --s6: 4rem;    /* 64 */
  --s7: 5rem;    /* 80 */
  --s8: 8rem;    /* 128 */

  /* Side margin: 20px on small phones, 24px at ~400px, up to 40px on desktop */
  --gutter: clamp(20px, 6vw, 40px);
  --measure: 65ch;

  --radius-sm: 12px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 1rem;
  color: var(--text);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
p { max-width: var(--measure); }
::selection { background: var(--sun); color: var(--ink); }

h1, h2, h3 {
  font-family: "Manrope", "Inter", sans-serif;
  line-height: 1.12;
  letter-spacing: -.025em;
  margin: 0 0 var(--s2);
  color: inherit;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 800; letter-spacing: -.035em; margin-bottom: var(--s3); }
h2 { font-size: clamp(1.875rem, 3.6vw, 2.75rem); font-weight: 800; }
h3 { font-size: 1.125rem; font-weight: 700; letter-spacing: -.01em; margin-bottom: var(--s1); }

.container { width: min(1180px, 100% - 2 * var(--gutter)); margin-inline: auto; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .625rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .75rem;
  font-weight: 600;
  color: var(--sky-light);
  margin: 0 0 var(--s2);
}
.dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--sun); }
/* Pulse ring animates transform and opacity only, so it stays on the compositor */
.dot::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: var(--sun);
  animation: pulse 2.6s var(--ease) infinite;
}
@keyframes pulse { from { transform: scale(1); opacity: .5; } to { transform: scale(3); opacity: 0; } }

/* Buttons: 48px tall minimum for touch */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s1);
  min-height: 48px;
  background: var(--sun);
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  padding: .75rem var(--s3);
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  box-shadow: 0 8px 24px -10px rgba(248, 198, 42, .7);
  transition: transform .35s var(--ease), background-color .35s var(--ease);
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .35s var(--ease); }
.btn:active { transform: scale(.98); }
:focus-visible { outline: 2px solid var(--sun); outline-offset: 3px; }
.btn-ghost {
  background: transparent;
  color: var(--white);
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.55);
}
.btn-sm { min-height: 40px; padding: .5rem 1.125rem; font-size: .9375rem; box-shadow: none; }
.btn-block { width: 100%; }

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background-color .4s var(--ease), box-shadow .4s var(--ease);
}
.site-header.scrolled,
.site-header.menu-open {
  background: rgba(7, 29, 61, .97);
  box-shadow: 0 1px 0 rgba(255,255,255,.08);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand {
  display: inline-flex; align-items: center; gap: .625rem;
  min-height: 48px;
  color: var(--white); text-decoration: none;
  font-family: "Manrope", sans-serif; font-size: 1.1875rem; font-weight: 800; letter-spacing: -.02em;
}
.brand-mark { width: auto; height: 36px; color: var(--loop); flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-sub {
  margin-top: .3em;
  font-family: "Barlow", sans-serif; font-size: .625rem; font-weight: 600; letter-spacing: .32em; text-transform: uppercase;
  color: var(--loop);
}
.nav-menu { display: flex; align-items: center; gap: var(--s4); }
.nav-menu a:not(.btn) {
  position: relative;
  color: rgba(255,255,255,.85); text-decoration: none; font-weight: 500; font-size: .9375rem;
  transition: color .3s var(--ease);
}
.nav-menu a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px;
  background: var(--sun); transform: scaleX(0); transform-origin: left;
  transition: transform .4s var(--ease);
}
.nav-toggle {
  display: none;
  width: 48px; height: 48px; margin-right: -12px;
  background: none; border: 0; cursor: pointer;
  place-content: center; gap: 6px;
}
.nav-toggle span { display: block; width: 22px; height: 2px; border-radius: 2px; background: var(--white); transition: transform .4s var(--ease); }

/*
  Hero ("Renewable power, precisely maintained")
  Self-contained, like the services and approach sections: its own colours, type and spacing.
  The solar array is pure CSS, masked so the copy always sits on clean navy. No animation.
*/
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: 760px;
  padding: 88px clamp(24px, 6vw, 104px);
  overflow: hidden;
  overflow: clip;
  background: linear-gradient(100deg, #051329 0%, #0a2347 60%, #15406f 100%);
}
.hero-art {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 38%, #000 66%);
  mask-image: linear-gradient(90deg, transparent 38%, #000 66%);
}
.hero-plane {
  position: absolute;
  left: 44%;
  top: -26%;
  width: 1500px;
  height: 1400px;
  transform: perspective(1500px) rotateX(58deg) rotateZ(-26deg);
  background-color: #123560;
  background-image:
    /* Panel frames */
    repeating-linear-gradient(90deg, #f3dc97 0 3px, transparent 3px 600px),
    repeating-linear-gradient(180deg, #f3dc97 0 3px, transparent 3px 900px),
    /* Gaps between cells */
    repeating-linear-gradient(90deg, #051329 0 5px, transparent 5px 150px),
    repeating-linear-gradient(180deg, #051329 0 5px, transparent 5px 150px),
    /* Busbars */
    repeating-linear-gradient(90deg, rgba(214, 224, 236, .22) 0 1.5px, transparent 1.5px 50px),
    /* Cell texture */
    repeating-linear-gradient(180deg, rgba(255, 255, 255, .05) 0 1px, transparent 1px 10px);
}
.hero-plane::after {
  content: "";
  position: absolute;
  inset: 0;
  mix-blend-mode: screen;
  background: radial-gradient(closest-side at 58% 40%, rgba(255, 205, 90, .95), rgba(249, 170, 50, .32) 40%, rgba(249, 170, 50, 0) 74%);
}
.hero-content { position: relative; width: 100%; max-width: 720px; }
.hero-logo { display: block; width: 54px; height: 62px; margin-bottom: 32px; }
.hero-intro {
  margin: 0 0 20px;
  color: #f3dc97;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.hero-title {
  margin: 0 0 28px;
  color: #ffffff;
  font-family: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  font-size: clamp(2.75rem, 4.4vw, 4.5rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -.035em;
}
.hero-text {
  max-width: 33em;
  margin: 0 0 44px;
  color: #c6d2e2;
  font-size: clamp(1.0625rem, 1.3vw, 1.1875rem);
  line-height: 1.6;
}
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 36px; }
.hero-quote {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 17px 34px;
  border-radius: 999px;
  background: #f9c62b;
  color: #051329;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
}
.hero-quote:hover { background: #ffd65a; }
.hero-link {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: underline;
  text-decoration-color: #f3dc97;
  text-decoration-thickness: 1px;
  text-underline-offset: 7px;
}
.hero-quote:focus-visible,
.hero-link:focus-visible { outline: 2px solid #ffffff; outline-offset: 4px; }
.hero-link:focus-visible { border-radius: 2px; }

/* Tablet and mobile: artwork band on top, content below */
@media (max-width: 1100px) {
  .hero { display: block; min-height: 0; padding-top: 372px; background: #051329; }
  .hero-art {
    inset: 0 0 auto;
    height: 360px;
    -webkit-mask-image: linear-gradient(180deg, #000 50%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 50%, transparent 100%);
  }
  .hero-plane { left: 50%; top: -500px; transform: translateX(-50%) perspective(1500px) rotateX(58deg) rotateZ(-26deg); }
}
@media (max-width: 640px) {
  .hero-title br { display: none; }
}

/*
  Services ("Every part of your system, in expert hands")
  Self-contained, like the approach section: its own width, padding, type and colours.
  Resets the global paragraph max-width and body line-height it shouldn't inherit.
  Script is in script.js.
*/
.rn-f2 { line-height: normal; }
.rn-f2 p { max-width: none; }
.rn-f2{--muted:#55667b;--blue:#0f55ad;--navy-mid:#0a2f66;--navy-deep:#061a38;--gold:#f7c62f;--ease:cubic-bezier(.22,.8,.24,1);padding:64px clamp(16px,4vw,48px);background:#f7f8fc;color:#14243a;font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;-webkit-font-smoothing:antialiased}
.rn-f2 *,.rn-f2 *::before,.rn-f2 *::after{box-sizing:border-box}
.rn-f2__inner{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"title help" "stage stage";align-items:center;gap:32px 40px;max-width:1280px;margin:0 auto}
.rn-f2__title{grid-area:title;margin:0;font-family:Manrope,Inter,system-ui,sans-serif;font-weight:500;letter-spacing:-.03em;line-height:1.1;font-size:clamp(2rem,3.4vw,2.75rem);text-wrap:balance}
.rn-f2__help{grid-area:help;display:flex;flex-wrap:wrap;align-items:center;gap:12px 20px}
.rn-f2__ask{margin:0;font-size:1.0625rem;color:var(--muted)}
.rn-f2__cta{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:0 24px;border-radius:999px;background:var(--gold);color:#0a1c39;font-size:1rem;font-weight:600;text-decoration:none;white-space:nowrap;transition:background-color .25s ease}
.rn-f2__cta:hover{background:#ffd34a}
.rn-f2__cta:focus-visible{outline:2px solid #0f55ad;outline-offset:3px}
.rn-f2__stage{grid-area:stage;min-width:0}
/* Phones: heading, then the interactive piece, then the button */
@media (max-width:900px){.rn-f2{padding-top:48px;padding-bottom:48px}.rn-f2__inner{grid-template-columns:minmax(0,1fr);grid-template-areas:"title" "stage" "help";gap:24px}.rn-f2__help{flex-direction:column;align-items:stretch;text-align:center}}
@media (prefers-reduced-motion:reduce){.rn-f2 *{transition:none!important;animation:none!important}}
.rn-f2__sun{position:absolute;left:0;top:0;width:44px;height:44px;margin:-22px 0 0 -22px;border-radius:50%;background:var(--gold);box-shadow:0 0 34px 10px rgba(247,198,47,.5),0 0 120px 60px rgba(247,198,47,.16);will-change:transform}
.rn-f2__arc{position:absolute;inset:0;width:100%;height:100%;fill:none;stroke:rgba(255,255,255,.26);stroke-width:1;stroke-dasharray:2 7}
.rn-f2__scene{position:relative;overflow:hidden;border:1px solid rgba(246,215,116,.3);border-radius:24px;background:linear-gradient(180deg,#061a38 0%,#0a2f66 52%,#0f55ad 100%);color:#fff;box-shadow:0 40px 70px -50px rgba(6,26,56,.75)}
.rn-f2__sky{position:relative;height:290px}
.rn-f2__beam{display:none;position:absolute;left:0;height:1px;background:linear-gradient(90deg,var(--gold),rgba(247,198,47,.25))}
.rn-f2__arc--down{display:none}
.rn-f2__mark{position:absolute;left:0;top:0;width:9px;height:9px;margin:-4.5px 0 0 -4.5px;border-radius:50%;background:#fff;opacity:.6}
.rn-f2__hills{position:absolute;left:0;right:0;bottom:-1px;width:100%;height:84px}
.rn-f2__words{position:absolute;z-index:1;left:50%;top:124px;width:min(500px,calc(100% - 40px));transform:translateX(-50%);text-align:center;transition:opacity .22s ease}
.rn-f2__name{display:none;margin:0 0 6px;color:var(--gold);font-family:Manrope,Inter,system-ui,sans-serif;font-size:1.0625rem;font-weight:600;letter-spacing:-.01em}
.rn-f2__text{margin:0;font-family:Manrope,Inter,system-ui,sans-serif;font-size:clamp(1.125rem,1.7vw,1.375rem);font-weight:500;line-height:1.35;letter-spacing:-.015em;text-wrap:balance}
.rn-f2__tiles{position:relative;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;padding:12px;background:#061a38}
.rn-f2__tile{display:flex;align-items:center;gap:12px;min-height:72px;padding:12px 16px;border:1px solid rgba(255,255,255,.26);border-radius:14px;background:rgba(255,255,255,.07);color:#fff;font-family:Manrope,Inter,system-ui,sans-serif;font-size:1rem;font-weight:500;letter-spacing:-.01em;line-height:1.25;text-align:left;cursor:pointer;transition:background-color .35s ease,border-color .35s ease,color .35s ease,transform .35s var(--ease)}
.rn-f2__tile svg{flex:none;color:var(--gold);transition:color .35s ease}
.rn-f2__tile:hover{border-color:var(--gold);background:rgba(255,255,255,.14);transform:translateY(-3px)}
.rn-f2__tile.is-active{border-color:var(--gold);background:var(--gold);color:#0a1c39}
.rn-f2__tile.is-active svg{color:#0a1c39}
.rn-f2__tile:focus-visible{outline:2px solid #fff;outline-offset:2px}
.rn-f2__short{display:none}
@media (max-width:900px){
.rn-f2__sky{height:300px}
.rn-f2__sun{width:32px;height:32px;margin:-16px 0 0 -16px}
.rn-f2__words{top:112px}
.rn-f2__name{display:block}
.rn-f2__tiles{gap:6px;padding:8px}
.rn-f2__tile{flex-direction:column;justify-content:center;gap:6px;min-height:68px;padding:8px 2px;text-align:center}
.rn-f2__full{display:none}
.rn-f2__short{display:block;font-size:.75rem;font-weight:600;letter-spacing:0}
.rn-f2__tile:hover{transform:none}
}
/* Phones: stacked buttons on the left, the sun moving down an arc on the right */
@media (max-width:640px){
.rn-f2__scene{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(0,1fr);background:#061a38;border-radius:20px}
.rn-f2__tiles{grid-column:1;grid-row:1;z-index:1;grid-template-columns:minmax(0,1fr);padding:10px 0 14px 10px;background:none}
.rn-f2__tile{flex-direction:row;justify-content:flex-start;gap:10px;min-height:58px;padding:8px 10px;background:rgba(6,26,56,.45);font-size:.875rem;text-align:left}
.rn-f2__tile svg{width:22px;height:22px}
.rn-f2__full{display:block}
.rn-f2__short{display:none}
.rn-f2__sky{grid-column:1 / -1;grid-row:1;height:auto;background:linear-gradient(180deg,#061a38 0%,#0a2f66 55%,#0f55ad 100%)}
.rn-f2__hills{height:44px}
.rn-f2__arc--across{display:none}
.rn-f2__arc--down{display:block}
.rn-f2__beam{display:block}
.rn-f2__words{grid-column:1 / -1;grid-row:2;position:static;width:auto;min-height:calc(3 * 1.35 * 1.0625rem + 38px);padding:14px 16px 20px;transform:none;text-align:left}
.rn-f2__name{display:none}
.rn-f2__text{font-size:1.0625rem;text-wrap:pretty}
}
@media (max-width:360px){.rn-f2__words{min-height:calc(4 * 1.35 * 1.0625rem + 38px)}.rn-f2__tile{font-size:.8125rem;gap:8px;padding:8px}}

/* Products: navy copy column beside a gold panel tilted like a solar panel */
.products {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  background: var(--navy); color: rgba(255,255,255,.94);
}
.products-copy { padding: clamp(56px, 7vw, 112px) clamp(16px, 5vw, 80px); }
.products h2 { margin: 0; font-weight: 700; font-size: clamp(2.5rem, 3.6vw, 3.75rem); line-height: 1.08; letter-spacing: -.03em; color: var(--white); }
.products-intro { margin: var(--s3) 0 0; max-width: 34em; font-size: clamp(1.0625rem, 1.4vw, 1.25rem); line-height: 1.6; color: rgba(255,255,255,.74); text-wrap: pretty; }
.products-list { display: grid; gap: 14px; margin: 40px 0 0; padding: 0; list-style: none; font-size: 1.0625rem; line-height: 1.4; }
.products-list li { display: flex; align-items: center; gap: 14px; }
.products-list svg { flex: none; width: 18px; height: 18px; fill: none; stroke: var(--sun); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.products-gold {
  position: relative; isolation: isolate;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: clamp(56px, 7vw, 112px) clamp(16px, 5vw, 80px) clamp(56px, 7vw, 112px) clamp(72px, 9vw, 150px);
}
/* Only the background is skewed, so the grid of cells tilts with the edge */
.products-gold::before {
  content: ""; position: absolute; z-index: -1; inset: 0 -30% 0 0;
  transform: skewX(-9deg); transform-origin: bottom left;
  background:
    linear-gradient(rgba(255,255,255,.26) 1px, transparent 1px) 0 0 / 76px 76px,
    linear-gradient(90deg, rgba(255,255,255,.26) 1px, transparent 1px) 0 0 / 76px 76px,
    linear-gradient(155deg, #fcd964 0%, var(--sun) 55%, #ecb61f 100%);
}
.products-gold-inner { display: flex; flex-direction: column; align-items: flex-start; }
.products-label { margin: 0; text-transform: uppercase; font-size: .8125rem; font-weight: 600; letter-spacing: .16em; color: rgba(10,28,57,.82); }
.products-brand { margin: var(--s2) 0 0; font-family: "Manrope", "Inter", sans-serif; font-size: clamp(3rem, 5.8vw, 5.75rem); line-height: 1; letter-spacing: -.03em; font-weight: 700; color: var(--navy); }
.products-note { margin: var(--s3) 0 0; max-width: 30em; font-size: 1.0625rem; line-height: 1.6; color: rgba(10,28,57,.88); text-wrap: pretty; }
.products-cta {
  display: inline-flex; align-items: center; gap: 14px;
  margin-top: var(--s4); padding: 18px 30px; border-radius: 999px;
  background: var(--navy); color: var(--white);
  font-size: 1.0625rem; font-weight: 600; line-height: 1.2; text-decoration: none;
  transition: background-color .2s ease;
}
.products-cta svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s ease; }
.products-cta:hover { background: #16305a; }
.products-cta:hover svg { transform: translateX(4px); }
.products-cta:focus-visible { outline: 2px solid var(--navy); outline-offset: 4px; }

/* Two-line heading on desktop; the lower floor stops "quoted" wrapping just above 1000px */
@media (min-width: 1001px) {
  .products h2 { font-size: clamp(2.25rem, 3.6vw, 3.75rem); }
  .products h2 span { display: block; }
}
@media (max-width: 1000px) {
  .products { grid-template-columns: minmax(0, 1fr); }
  .products-gold { padding-left: clamp(16px, 5vw, 80px); }
  .products-gold::before { inset: 0; transform: none; }
}
@media (max-width: 480px) {
  .products-gold-inner { align-items: stretch; }
  .products-cta { justify-content: center; }
}


/*
  Approach ("Repair first. Replace last.")
  Self-contained: its own width, padding and type, and it resets the global
  heading and paragraph rules (letter-spacing, balance, max-width) it shouldn't inherit.
  Cards wrap at 250px, so no breakpoints are needed.
*/
.rf { background: var(--paper); color: var(--navy); font-family: "Inter", system-ui, sans-serif; padding: clamp(48px, 7vw, 96px) clamp(16px, 4vw, 64px); }
/* Sun peeking in from the top right corner; the section clips the rest */
.rf { position: relative; overflow: hidden; }
.rf-sun { --sz: clamp(220px, 30vw, 400px); position: absolute; top: calc(var(--sz) * -.5); right: calc(var(--sz) * -.42); width: var(--sz); height: var(--sz); pointer-events: none; }
.rf-sun-disc { fill: var(--sun); }
.rf-sun-rays { stroke: var(--sun); stroke-width: 10; stroke-linecap: round; transform-origin: 180px 180px; }
.rf-sun-ring { fill: none; stroke: var(--sun); stroke-opacity: .35; stroke-width: 2; stroke-dasharray: 2 10; stroke-linecap: round; }
@media (prefers-reduced-motion: no-preference) {
  .rf-sun-rays { animation: rf-spin 90s linear infinite; }
}
@keyframes rf-spin { to { transform: rotate(360deg); } }
.rf-wrap { position: relative; max-width: 1312px; margin: 0 auto; display: flex; flex-direction: column; gap: clamp(32px, 4.5vw, 64px); }
.rf-head { display: flex; flex-direction: column; gap: 16px; }
.rf h2 { margin: 0; font-family: "Manrope", system-ui, sans-serif; font-weight: 800; font-size: clamp(38px, 5vw, 64px); line-height: 1.05; letter-spacing: -.03em; text-wrap: wrap; }
.rf h2 span { display: inline-block; }
.rf h2 span:first-child { color: var(--blue); }
.rf-sub { margin: 0; max-width: none; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.4; color: var(--muted); }
.rf ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.rf li { color: var(--navy); border-radius: 24px; padding: 28px; min-height: clamp(200px, 20vw, 290px); display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.rf li:nth-child(1) { background: var(--sun); }
.rf li:nth-child(2) { background: var(--sun-soft); }
.rf li:nth-child(3) { background: #ffedb0; }
.rf li:nth-child(4) { background: #fff6d8; }
.rf-num { font-family: "Barlow", system-ui, sans-serif; font-weight: 600; font-size: 72px; line-height: 1; }
.rf h3 { margin: 0 0 6px; font-family: "Manrope", system-ui, sans-serif; font-weight: 800; font-size: 24px; line-height: 1.2; letter-spacing: normal; text-wrap: wrap; }
.rf li p { margin: 0; max-width: none; font-size: 17px; line-height: 1.5; }
@media (min-width: 1100px) { .rf li p { min-height: 3em; } }

/*
  Contact ("Tell us how we can help")
  Self-contained like the sections above: solid navy, a plain white form panel,
  and gold arcs centred on the section's bottom-left corner (the section clips them).
  Stacks below 1024px; the bottom padding keeps the arcs clear of the form.
  Form script is in script.js.
*/
.contact {
  --line: #6f7e90;   /* field and tile borders, 4.3:1 on white */
  --ink-2: #0d1d33;  /* labels and field text */
  --help: #33445a;   /* helper text, 10:1 on white */
  --hint: #55657a;   /* placeholders, 6:1 on white */
  --pale: #f3f5f9;   /* tile hover */
  --error: #c0392b;  /* 5.4:1 on white */
  position: relative; isolation: isolate; overflow: hidden;
  padding: var(--s8) 0;
  background: var(--navy); color: var(--white);
}
.contact-arcs { position: absolute; left: 0; bottom: 0; z-index: -1; width: 420px; height: 420px; pointer-events: none; }
.contact-inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s6); align-items: start; }

.contact h2 { margin: 0; font-weight: 700; font-size: clamp(2.25rem, 3.6vw, 3.25rem); line-height: 1.08; letter-spacing: -.03em; }
.contact-intro { margin: var(--s3) 0 0; font-size: 1.125rem; line-height: 1.6; color: rgba(255,255,255,.8); text-wrap: pretty; }
.contact-rows { margin: var(--s5) 0 0; border-bottom: 1px solid rgba(255,255,255,.24); }
.contact-rows div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px var(--s2); padding: 18px 0; border-top: 1px solid rgba(255,255,255,.24); }
.contact-rows dt { min-width: 6rem; font-size: .9375rem; color: rgba(255,255,255,.72); }
.contact-rows dd { margin: 0; font-size: 1.0625rem; }
.contact-rows a { color: var(--sun); text-decoration: none; overflow-wrap: anywhere; }

.contact-form { background: var(--white); color: var(--ink-2); border-radius: 4px; padding: var(--s5); }
.contact-note { margin: 0 0 var(--s4); font-size: .9375rem; line-height: 1.5; color: var(--help); }

/* Labels and the legend share one style, always visible above their field */
.tiles legend, .field label { display: block; margin: 0 0 10px; padding: 0; font-size: .9375rem; font-weight: 600; line-height: 1.4; color: var(--ink-2); }
.optional { font-weight: 400; color: var(--help); }

/* Service tiles: real radios, hidden but still focusable, so arrow keys move between them */
.tiles { margin: 0 0 var(--s4); padding: 0; border: 0; min-width: 0; }
.tiles-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 8px; }
.tile { position: relative; display: flex; cursor: pointer; }
.tile input { position: absolute; top: 0; left: 0; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.tile-box {
  position: relative; flex: 1;
  display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
  min-height: 100px; padding: 16px;
  border: 1px solid var(--line); border-radius: 4px;
  background: var(--white); color: var(--ink-2);
  font-size: .9375rem; font-weight: 500; line-height: 1.3;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.tile-box svg { flex: none; width: 24px; height: 24px; fill: none; stroke: var(--navy); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: stroke .2s ease; }
/* Tick marks the chosen tile, so the state doesn't rely on colour alone */
.tile-box::after {
  content: ""; position: absolute; top: 12px; right: 12px; width: 18px; height: 18px; opacity: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f8c62a' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.tile input:checked + .tile-box { border-color: var(--navy); background: var(--navy); color: var(--white); }
.tile input:checked + .tile-box svg { stroke: var(--sun); }
.tile input:checked + .tile-box::after { opacity: 1; }
/* Gold ring with a navy edge, so it shows on the white panel and on a selected tile */
.tile input:focus-visible + .tile-box { border-color: var(--navy); box-shadow: 0 0 0 3px var(--sun), 0 0 0 4px var(--navy); }
.tile-other { margin-top: 8px; }
.tile-other .tile-box { flex-direction: row; align-items: center; min-height: 56px; padding-block: 12px; }
.tile-other .tile-box::after { top: 50%; margin-top: -9px; }

/* Fields: 17px text, which also stops iOS zooming in on focus */
.field { display: flex; flex-direction: column; min-width: 0; margin-bottom: var(--s3); }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--s2); }
.field-help { margin: -4px 0 10px; font-size: .9375rem; line-height: 1.5; color: var(--help); }
.field input, .field textarea {
  width: 100%; min-height: 54px; padding: 13px 16px;
  font: inherit; font-size: 1.0625rem; line-height: 1.5; color: var(--ink-2);
  border: 1px solid var(--line); border-radius: 4px; background: var(--white);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--hint); opacity: 1; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px var(--sun); }
.field .invalid { border-color: var(--error); box-shadow: 0 0 0 1px var(--error); }
.field .invalid:focus { border-color: var(--error); box-shadow: 0 0 0 1px var(--error), 0 0 0 4px var(--sun); }

.contact-submit {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; min-height: 60px; margin-top: var(--s1); padding: 0 var(--s3);
  border: 0; border-radius: 4px; background: var(--sun); color: var(--navy);
  font-family: "Manrope", "Inter", sans-serif; font-size: 1.0625rem; font-weight: 700; letter-spacing: -.01em;
  cursor: pointer; transition: gap .25s var(--ease);
}
.contact-submit svg { flex: none; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.contact-submit:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }

.form-status { margin: var(--s2) 0 0; font-size: .9375rem; font-weight: 500; min-height: 1.5em; }
.form-status.ok { color: var(--fern-text); }
.form-status.err { color: var(--error); }

@media (hover: hover) and (pointer: fine) {
  .contact-rows a:hover { text-decoration: underline; text-underline-offset: 3px; }
  .tile:hover input:not(:checked) + .tile-box { border-color: var(--navy); background: var(--pale); }
  .field input:hover, .field textarea:hover { border-color: var(--navy); }
  .contact-submit:hover { gap: 16px; }
}
@media (max-width: 1023px) {
  .contact { padding: var(--s7) 0 250px; }
  .contact-inner { grid-template-columns: minmax(0, 1fr); gap: var(--s5); }
  .contact-arcs { width: 240px; height: 240px; }
}
@media (max-width: 560px) {
  .contact { padding: var(--s6) 0 170px; }
  .contact-arcs { width: 160px; height: 160px; }
  .contact-form { padding: var(--s3); }
  .tiles-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field-row { grid-template-columns: minmax(0, 1fr); }
}

/* Footer */
.site-footer { background: var(--navy); color: rgba(255,255,255,.65); padding: var(--s4) 0; border-top: 1px solid rgba(255,255,255,.08); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s2); }
.footer-copy { margin: 0; font-size: .875rem; }

/* Scroll reveal (only when JS is running) */
.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: var(--d, 0s);
}
.js .reveal.in { opacity: 1; transform: none; }

/*
  Desktop-only extras. Hover effects are skipped on touch screens (no sticky hover),
  and the header blur is skipped on phones, where backdrop blur
  over scrolling content is a known cause of scroll jank.
*/
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--sun-soft); transform: translateY(-2px); }
  .btn:hover svg { transform: translateX(3px); }
  .btn-ghost:hover { background: rgba(255,255,255,.1); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.8); }
  .nav-menu a:not(.btn):hover { color: var(--white); }
  .nav-menu a:not(.btn):hover::after { transform: scaleX(1); }

  .site-header.scrolled {
    background: rgba(7, 29, 61, .78);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
  }
}

/* Responsive */
@media (max-width: 820px) {
  .nav { height: 64px; }
  .nav-toggle { display: grid; }
  .nav-menu {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--navy);
    padding: var(--s1) var(--gutter) var(--s3);
    border-bottom: 1px solid rgba(255,255,255,.08);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
  }
  .nav-menu.open { opacity: 1; visibility: visible; transform: none; }
  .nav-menu a:not(.btn) { display: flex; align-items: center; min-height: 56px; border-bottom: 1px solid rgba(255,255,255,.08); font-size: 1.0625rem; }
  .nav-menu a:not(.btn)::after { display: none; }
  .nav-menu .btn { margin-top: var(--s3); min-height: 48px; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }
}
@media (max-width: 560px) {
  .footer-inner { flex-direction: column; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
