/* ══════════════════════════════════════
   R&B Power Inc. — Global Stylesheet
   ══════════════════════════════════════ */

/* ── Self-hosted fonts (GDPR: no third-party requests) ── */
@font-face {
  font-family: "Sora";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("/assets/fonts/sora-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Sora";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("/assets/fonts/sora-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/assets/fonts/ibm-plex-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/assets/fonts/ibm-plex-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ── Design tokens ── */
:root {
  color-scheme: light;
  --bg: #f7f7f7;
  --bg-strong: #efefef;
  --ink: #121212;
  --ink-soft: #2a2a2a;
  --ink-muted: #5e5e5e;
  --brand: #c1121f;
  --brand-strong: #9b0e18;
  --brand-light: #ff6b6b;
  --brand-soft: #fcebed;
  --line: #e5e5e5;
  --line-soft: rgba(229, 229, 229, 0.75);
  --white: #ffffff;
  --shadow: 0 24px 60px rgba(18, 18, 18, 0.12);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --max-w: 1200px;
  --nav-bg: #121212;
  --nav-height: 80px;
  --nav-height-compact: 60px;
  --nav-transition: 200ms ease;
}

/* ── Skip link ── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 10000;
  padding: 12px 20px;
  background: var(--brand);
  color: var(--white);
  font-family: "Sora", sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: top 150ms ease;
}

.skip-link:focus {
  top: 12px;
}

/* ── Reset ── */
* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "IBM Plex Sans", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
}

body.nav-open,
body.cookie-modal-open {
  overflow: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  width: min(92vw, var(--max-w));
  margin: 0 auto;
}

/* ── FOUC prevention ── */
#site-nav {
  min-height: var(--nav-height);
  background: var(--nav-bg);
}

/* ══════════════════════════════════════
   HEADER / NAV
   ══════════════════════════════════════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--nav-bg);
  transition: box-shadow var(--nav-transition);
}

.site-header.compact {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.nav-bar {
  position: relative;
  z-index: 202;
  display: flex;
  align-items: center;
  height: var(--nav-height);
  transition: height var(--nav-transition);
}

.site-header.compact .nav-bar {
  height: var(--nav-height-compact);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  transition: width var(--nav-transition), height var(--nav-transition);
}

.site-header.compact .brand img {
  width: 42px;
  height: 42px;
}

.brand span {
  font-family: "Sora", sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--white);
  white-space: nowrap;
}

/* ── Nav links ── */
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 32px;
}

.nav-item { position: relative; }

.nav-link {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 10px 14px;
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  border-radius: 8px;
  transition: color 150ms, background 150ms;
  cursor: pointer;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.nav-link:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.nav-link.active {
  color: var(--white);
  position: relative;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 14px;
  right: 14px;
  height: 2px;
  background: var(--brand);
  border-radius: 2px;
}

.chevron {
  width: 10px;
  height: 10px;
  transition: transform 200ms;
  flex-shrink: 0;
}

.nav-item.open .nav-link .chevron,
.nav-item:hover .nav-link .chevron {
  transform: rotate(180deg);
}

/* ── CTA button ── */
.nav-cta {
  margin-left: auto;
  padding: 10px 20px;
  border-radius: 7px;
  background: var(--brand);
  color: var(--white);
  font-weight: 600;
  font-size: 0.92rem;
  white-space: nowrap;
  transition: background 150ms, box-shadow 150ms;
}

.nav-cta:hover {
  background: var(--brand-strong);
  box-shadow: 0 4px 16px rgba(193, 18, 31, 0.35);
}

.nav-cta:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

/* ── Hamburger ── */
.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  margin-left: auto;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 0;
  cursor: pointer;
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.hamburger-line {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 200ms, opacity 200ms;
}

.nav-toggle.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
}
.nav-toggle.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}


/* ══════════════════════════════════════
   MOBILE NAV
   ══════════════════════════════════════ */
.mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  width: 320px;
  max-width: 85vw;
  height: 100vh;
  height: 100dvh;
  background: var(--nav-bg);
  transform: translateX(100%);
  transition: transform 300ms ease;
  z-index: 200;
  overflow-y: auto;
  padding: 100px 24px 40px;
}

.mobile-nav.open {
  transform: translateX(0);
}

.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 300ms;
  z-index: 199;
}

.mobile-nav-overlay.open {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-group {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-nav-trigger {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: var(--white);
  padding: 16px 0;
  font-family: "Sora", sans-serif;
  font-size: 1.05rem;
  font-weight: 500;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  text-decoration: none;
}

.mobile-nav-trigger:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: -2px;
}

.mobile-nav-trigger .chevron {
  transition: transform 200ms;
}

.mobile-nav-trigger.active .chevron {
  transform: rotate(180deg);
}

.mobile-nav-cta {
  display: block;
  margin-top: 24px;
  text-align: center;
  background: var(--brand);
  color: var(--white);
  padding: 14px;
  border-radius: 7px;
  font-weight: 600;
  font-size: 1rem;
  transition: background 150ms;
}

.mobile-nav-cta:hover {
  background: var(--brand-strong);
}

/* ══════════════════════════════════════
   TYPOGRAPHY & LAYOUT
   ══════════════════════════════════════ */
.eyebrow {
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-strong);
  font-weight: 600;
}
.eyebrow--tight { margin-bottom: 8px; }
.eyebrow--light { color: rgba(255, 255, 255, 0.8); }

h1, h2, h3, h4 {
  font-family: "Sora", sans-serif;
  margin: 18px 0 12px;
}

h1 { font-size: clamp(2.4rem, 3.4vw, 3.4rem); line-height: 1.1; }
h2 {
  font-size: clamp(1.8rem, 2.6vw, 2.6rem);
  background: linear-gradient(
    90deg,
    var(--ink) 0%,
    var(--ink) 35%,
    var(--brand) 50%,
    var(--ink) 65%,
    var(--ink) 100%
  );
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: power-shine 3s ease-in-out infinite;
}
h3 { font-size: 1.2rem; }
.h2--flush { margin: 0; }

p {
  color: var(--ink-soft);
  line-height: 1.7;
}

.lead {
  font-size: 1.1rem;
  max-width: 780px;
}

.button-group { margin-top: 24px; }

/* ── Buttons ── */
.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 7px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: background 150ms, box-shadow 150ms, transform 150ms;
}

.button.primary {
  background: var(--brand);
  color: var(--white);
}

.button.primary:hover {
  background: var(--brand-strong);
  box-shadow: 0 4px 16px rgba(193, 18, 31, 0.3);
}

.button.ghost {
  border-color: var(--line);
  color: var(--ink);
}

.button.ghost:hover {
  background: var(--bg-strong);
}

/* ══════════════════════════════════════
   PAGE SECTIONS
   ══════════════════════════════════════ */

.hero-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 44px;
  box-shadow: var(--shadow);
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 24px;
  flex-wrap: wrap;
}


.section { padding: 60px 0; }
.section--compact { padding: 20px 0 40px; }
.section--flush-top { padding-top: 0; }
.text-center { text-align: center; }
.mt-sm { margin-top: 20px; }
.mt-md { margin-top: 24px; }
.mt-lg { margin-top: 32px; }
.mb-lg { margin-bottom: 40px; }
.container--narrow { max-width: 600px; }
.lead--wide { max-width: 680px; margin-bottom: 28px; }

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 30px;
}

.section-header p { max-width: 520px; }
.section-header .button { padding: 10px 20px; font-size: 0.9rem; white-space: nowrap; }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}

.card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: 0 14px 40px rgba(18, 18, 18, 0.08);
  border: 1px solid var(--line-soft);
}

.card img {
  border-radius: 16px;
  margin-bottom: 18px;
  height: 180px;
  width: 100%;
  object-fit: cover;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.stat:last-child {
  grid-column: 1 / -1;
}

.stat {
  background: var(--brand-soft);
  border-radius: 16px;
  padding: 18px;
}

.stat h3 { margin: 0; font-size: 1.6rem; }
.stat p { margin: 6px 0 0; color: var(--ink-muted); }

.banner {
  background: linear-gradient(135deg, rgba(193, 18, 31, 0.96), rgba(18, 18, 18, 0.98));
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: var(--shadow);
}

.banner p { color: rgba(255, 255, 255, 0.88); }

.banner h2 {
  background: linear-gradient(
    90deg,
    var(--white) 0%,
    var(--white) 35%,
    var(--brand-light) 50%,
    var(--white) 65%,
    var(--white) 100%
  );
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.banner .button.primary {
  background: var(--white);
  color: var(--brand-strong);
}

.banner .button.primary:hover {
  background: var(--bg);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px;
  align-items: center;
}

.split img {
  border-radius: var(--radius-lg);
  height: 100%;
  object-fit: cover;
}

.split.reverse {
  direction: rtl;
}
.split.reverse > * {
  direction: ltr;
}

.list { display: grid; gap: 10px; }

.list-item {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--ink-soft);
}

.list-item span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--brand-strong);
  flex-shrink: 0;
}

/* Project List */
.project-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.project-list-item {
  display: flex;
  gap: 32px;
  align-items: center;
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 14px 40px rgba(18, 18, 18, 0.08);
  border: 1px solid var(--line-soft);
}

.project-list-item img {
  width: 320px;
  height: 220px;
  object-fit: cover;
  flex-shrink: 0;
}

.project-list-content {
  padding: 24px 28px 24px 0;
}

.project-list-content h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
  transition: color 200ms;
}

.project-list-content p {
  margin: 0 0 14px;
  font-size: 0.92rem;
  color: var(--ink-muted);
  line-height: 1.6;
}

.project-list-link {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: var(--radius-md);
  transition: transform 200ms;
}

.project-list-link:hover {
  transform: translateY(-3px);
}

.project-list-link:hover .project-list-item {
  border-color: var(--brand);
  box-shadow: 0 20px 50px rgba(18, 18, 18, 0.13);
}

.project-list-link:hover h3 {
  color: var(--brand);
}

.project-list-cta {
  display: inline-block;
  font-family: "Sora", sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--brand);
}

.page-hero { padding: 60px 0 30px; }
.page-hero .hero-card { padding: 34px; }

.page-title { padding: 48px 0 24px; }
.page-title h1 { margin: 0; }

.page-title h1::after,
.page-hero h1::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  background: var(--brand);
  margin-top: 16px;
  border-radius: 2px;
}

/* ── Forms ── */
.form { display: grid; gap: 16px; }

.input {
  display: grid;
  gap: 8px;
  font-weight: 600;
  color: var(--ink);
}

.input input,
.input textarea,
.input select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  font-family: inherit;
  font-size: 1rem;
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.input input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.file-drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 28px 20px;
  border: 2px dashed var(--line);
  border-radius: 12px;
  background: var(--bg);
  cursor: pointer;
  transition: border-color 150ms, background 150ms;
  text-align: center;
}

.file-drop:hover {
  border-color: var(--brand);
  background: var(--brand-soft);
}

.file-drop.has-file {
  border-color: var(--brand);
  border-style: solid;
}

.file-drop svg {
  width: 32px;
  height: 32px;
  color: var(--ink-muted);
}

.file-drop:hover svg {
  color: var(--brand);
}

.file-drop-text {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--ink-muted);
}

.file-drop-text strong {
  color: var(--brand);
  font-weight: 600;
}

.file-hint {
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--ink-muted);
}

.form .button {
  justify-self: start;
}

.form-error {
  color: var(--brand);
  font-size: 0.875rem;
  margin: 0;
}

/* ══════════════════════════════════════
   HOMEPAGE-SPECIFIC COMPONENTS
   ══════════════════════════════════════ */

/* ── Hero banner with background image ── */
.hero-banner {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-banner-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(18, 18, 18, 0.82), rgba(18, 18, 18, 0.6));
}

.hero-banner-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
  padding-top: 60px;
  padding-bottom: 60px;
}

.hero-banner-content h1 {
  color: var(--white);
  margin-top: 12px;
}

.hero-banner-content p {
  color: rgba(255, 255, 255, 0.8);
  max-width: 560px;
}

.hero-banner-content .hero-actions {
  margin-top: 24px;
}


/* ── Industry cards ── */
.industry-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.industry-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 14px 40px rgba(18, 18, 18, 0.08);
  border: 1px solid var(--line-soft);
  height: 100%;
  transition: border-color 150ms;
}

.industry-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.industry-card-body {
  padding: 20px;
}

.industry-card-body h3 {
  margin: 0 0 6px;
  font-size: 1.1rem;
}

.industry-card-body p {
  font-size: 0.9rem;
  margin: 0 0 12px;
  color: var(--ink-muted);
}

.industry-card-cta {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--brand);
}

/* ── Process stepped cards ── */
.process-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 36px;
}

.process-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(18, 18, 18, 0.07);
  border: 1px solid var(--line-soft);
  transition: transform 200ms, box-shadow 200ms;
  display: flex;
  flex-direction: column;
}

.process-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(18, 18, 18, 0.12);
}

.process-card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.process-card-body {
  padding: 24px 22px 28px;
  text-align: center;
}

.process-card-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.process-card-num {
  font-size: 1.35rem;
  font-family: "Sora", sans-serif;
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(
    90deg,
    var(--brand) 0%,
    var(--brand) 35%,
    var(--brand-light) 50%,
    var(--brand) 65%,
    var(--brand) 100%
  );
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: power-shine 3s ease-in-out infinite;
}

@keyframes power-shine {
  0%, 100% { background-position: 200% center; }
  50% { background-position: -200% center; }
}

.process-card h3 {
  font-size: 1rem;
  margin: 0;
}

.process-card p {
  font-size: 0.88rem;
  color: var(--ink-muted);
  margin: 0;
  line-height: 1.55;
}

/* ── Phase-grouped service grid ── */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.phase-heading {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  padding: 0;
}

.phase-heading:not(:first-child) {
  margin-top: 12px;
}

.phase-heading span {
  font-family: "Sora", sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
  white-space: nowrap;
}

.phase-heading::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}


/* ── Filter tabs ── */
.filter-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.filter-tab {
  padding: 9px 20px;
  border-radius: 100px;
  border: 1px solid var(--line);
  background: var(--white);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background 150ms, border-color 150ms, color 150ms;
}

.filter-tab:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.filter-tab.active {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--white);
}

/* ── Accordion ── */
.accordion {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.accordion-item {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--line-soft);
  box-shadow: 0 8px 28px rgba(18, 18, 18, 0.07);
  overflow: hidden;
}

.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 28px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
}

.accordion-trigger h3 {
  margin: 0 0 6px;
  font-size: 1.1rem;
  transition: color 200ms;
}

.accordion-trigger p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-muted);
  line-height: 1.55;
}

.accordion-trigger:hover h3 { color: var(--brand); }

.accordion-chevron {
  flex-shrink: 0;
  margin-top: 4px;
  color: var(--ink-muted);
  transition: transform 250ms ease;
}

.accordion-item.open .accordion-chevron {
  transform: rotate(180deg);
  color: var(--brand);
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 300ms ease;
}

.accordion-item.open .accordion-body {
  max-height: none;
}

.accordion-content {
  padding: 0 28px 28px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.accordion-content .eyebrow {
  margin-bottom: 12px;
}

.accordion-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.accordion-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.accordion-list li::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-strong);
  flex-shrink: 0;
}

/* ── Linked service cards ── */
a.card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: var(--radius-md);
  transition: transform 150ms;
}

a.card-link:hover { transform: translateY(-2px); }
a.card-link:hover .card { border-color: var(--brand); }
a.card-link:hover .card h3 { color: var(--brand); }
a.card-link:focus-visible { outline: 2px solid var(--brand); outline-offset: 4px; border-radius: var(--radius-md); }

/* ── Linked industry chips ── */
a.chip-link {
  text-decoration: none;
  color: inherit;
  display: block;
  border-radius: var(--radius-sm);
  transition: transform 150ms;
}

a.chip-link:hover { transform: translateY(-2px); }
a.chip-link:hover .industry-chip { border-color: var(--brand); }
a.chip-link:focus-visible { outline: 2px solid var(--brand); outline-offset: 4px; border-radius: var(--radius-sm); }

/* ── Section header link ── */
.section-header-link {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--brand);
  white-space: nowrap;
  transition: color 150ms;
}

.section-header-link:hover { color: var(--brand-strong); }

/* ── Team grid ── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.team-card {
  text-align: center;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 36px 24px;
  box-shadow: 0 14px 40px rgba(18, 18, 18, 0.08);
  border: 1px solid var(--line-soft);
}

.team-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-strong));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-family: "Sora", sans-serif;
  font-weight: 700;
  font-size: 2rem;
  margin: 0 auto 20px;
}

.team-card h3 { margin: 0 0 6px; font-size: 1.1rem; }
.team-card .role { font-size: 0.85rem; color: var(--brand-strong); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }


/* ── Service card icons ── */
.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--brand-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.card-icon svg { width: 24px; height: 24px; color: var(--brand); }
.card h3 { margin-top: 0; }

/* ── Stepped process (service pages) ── */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-top: 36px;
}

.step {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: 0 8px 28px rgba(18, 18, 18, 0.07);
  border: 1px solid var(--line-soft);
  text-align: center;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-family: "Sora", sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  background: linear-gradient(
    90deg,
    var(--brand) 0%, var(--brand) 35%,
    var(--brand-light) 50%,
    var(--brand) 65%, var(--brand) 100%
  );
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: power-shine 3s ease-in-out infinite;
  margin-bottom: 14px;
}

.step h3 {
  font-size: 1rem;
  margin: 0 0 8px;
}

.step p {
  font-size: 0.88rem;
  color: var(--ink-muted);
  margin: 0;
  line-height: 1.55;
}

/* ── Industries row ── */
.industries-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 32px;
}

.industry-chip {
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  padding: 20px 22px;
  box-shadow: 0 8px 24px rgba(18, 18, 18, 0.07);
  display: flex;
  align-items: center;
  gap: 14px;
}

.industry-chip .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--brand);
  flex-shrink: 0;
}

.industry-chip span {
  font-family: "Sora", sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
}


/* ══════════════════════════════════════
   LEGAL / POLICY PAGES
   ══════════════════════════════════════ */
.legal-content {
  max-width: 720px;
}

.legal-updated {
  font-size: 0.88rem;
  color: var(--ink-muted);
  margin: 0 0 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.legal-section {
  margin-bottom: 36px;
}

.legal-section h2 {
  font-size: 1.25rem;
  margin: 0 0 12px;
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  -webkit-text-fill-color: var(--ink);
  animation: none;
}

.legal-section h3 {
  font-size: 1.05rem;
  margin: 20px 0 8px;
}

.legal-section p {
  font-size: 0.95rem;
  margin: 0 0 12px;
}

.legal-section ul {
  margin: 0 0 12px;
  padding-left: 20px;
}

.legal-section li {
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 6px;
}

.legal-section code {
  font-size: 0.88em;
  background: var(--bg-strong);
  padding: 2px 6px;
  border-radius: 4px;
}

.legal-contact {
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 24px;
  border: 1px solid var(--line-soft);
  margin-top: 12px;
}

.legal-contact p {
  margin: 0 0 10px;
}

.legal-contact p:last-child {
  margin-bottom: 0;
}

.legal-contact a {
  color: var(--brand);
  transition: color 150ms;
}

.legal-contact a:hover {
  color: var(--brand-strong);
}

/* ══════════════════════════════════════
   FOOTER
   ══════════════════════════════════════ */
.site-footer {
  background: var(--nav-bg);
  color: rgba(255, 255, 255, 0.85);
  padding: 60px 0 0;
}

.site-footer .footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 32px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.footer-brand img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.footer-brand span {
  color: var(--white);
  font-family: "Sora", sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
}

.site-footer p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  line-height: 1.6;
}

.site-footer address {
  font-style: normal;
  font-size: 0.88rem;
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
}

.footer-social {
  margin-top: 16px;
  display: flex;
  gap: 10px;
}

.footer-social a {
  display: inline-flex;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.85);
  transition: background 150ms, color 150ms;
}

.footer-social a:hover {
  background: var(--brand);
  color: var(--white);
}

.footer-newsletter {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-newsletter p {
  font-size: 0.84rem;
  margin: 0 0 12px;
}

.footer-newsletter-field {
  display: flex;
  gap: 0;
}

.footer-newsletter-field input {
  flex: 1;
  min-width: 0;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-right: none;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  font-family: inherit;
  font-size: 0.88rem;
  outline: none;
  transition: border-color 150ms;
}

.footer-newsletter-field input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.footer-newsletter-field input:focus {
  border-color: var(--brand);
}

.footer-newsletter-field button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  border: none;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--brand);
  color: var(--white);
  cursor: pointer;
  transition: background 150ms;
  flex-shrink: 0;
}

.footer-newsletter-field button:hover {
  background: var(--brand-strong);
}

.footer-newsletter-field button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.footer-newsletter-success {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.88rem;
  margin: 0;
}

.footer-newsletter-error {
  color: var(--brand-light);
  font-size: 0.88rem;
  margin: 0;
}

.footer-heading {
  color: var(--white);
  font-family: "Sora", sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 16px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li { margin-bottom: 10px; }

.footer-links a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  transition: color 150ms;
}

.footer-links a:hover,
.footer-links button.link-style:hover { color: var(--brand); }

.footer-links button.link-style {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  font-family: inherit;
  transition: color 150ms;
}

.footer-contact-person { margin-bottom: 16px; }

.footer-contact-person strong {
  display: block;
  color: var(--white);
  font-weight: 600;
  margin-bottom: 4px;
  font-size: 0.9rem;
}

.footer-contact-person a {
  display: block;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.86rem;
  transition: color 150ms;
}

.footer-contact-person a:hover { color: var(--brand); }

.footer-bottom {
  margin-top: 40px;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom p {
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

/* ══════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════ */
@media (max-width: 980px) {
  .split {
    grid-template-columns: 1fr;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-footer .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }


  .industry-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links,
  .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }
}

@media (max-width: 700px) {
  .hero-card { padding: 28px; }
  .banner {
    flex-direction: column;
    align-items: flex-start;
  }
  .process-cards {
    grid-template-columns: 1fr;
  }
  .industry-cards { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:last-child { grid-column: auto; }
  .project-list-item {
    flex-direction: column;
    gap: 0;
  }
  .project-list-item img {
    width: 100%;
    height: 200px;
  }
  .project-list-content {
    padding: 20px 24px 24px;
  }
}

@media (max-width: 600px) {
  .site-footer .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ══════════════════════════════════════
   COOKIE CONSENT BANNER
   ══════════════════════════════════════ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--nav-bg);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.25);
  transform: translateY(100%);
  transition: transform 400ms ease;
}

.cookie-banner--visible {
  transform: translateY(0);
}

.cookie-banner__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 0;
}

.cookie-banner__text {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
  flex: 1;
}

.cookie-banner__text a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-banner__text a:hover {
  color: var(--brand-strong);
}

.cookie-banner__actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-btn {
  padding: 10px 20px;
  border-radius: 7px;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background 150ms, box-shadow 150ms, color 150ms;
  white-space: nowrap;
}

.cookie-btn--primary {
  background: var(--brand);
  color: var(--white);
}

.cookie-btn--primary:hover {
  background: var(--brand-strong);
  box-shadow: 0 4px 16px rgba(193, 18, 31, 0.35);
}

.cookie-btn--secondary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.cookie-btn--secondary:hover {
  background: rgba(255, 255, 255, 0.18);
}

.cookie-btn--outline {
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.cookie-btn--outline:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.35);
}

.cookie-modal .cookie-btn--outline {
  color: var(--ink-soft);
  border-color: var(--line);
}

.cookie-modal .cookie-btn--outline:hover {
  background: var(--bg);
  color: var(--ink);
  border-color: var(--ink-muted);
}

.cookie-btn:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

/* ══════════════════════════════════════
   COOKIE PREFERENCES MODAL
   ══════════════════════════════════════ */
.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1001;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 250ms, visibility 250ms;
}

.cookie-modal-overlay--visible {
  opacity: 1;
  visibility: visible;
}

.cookie-modal {
  background: var(--white);
  border-radius: var(--radius-md);
  width: min(480px, 92vw);
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
  transform: translateY(12px);
  transition: transform 250ms;
}

.cookie-modal-overlay--visible .cookie-modal {
  transform: translateY(0);
}

.cookie-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px 0;
}

.cookie-modal__header h3 {
  margin: 0;
  font-size: 1.15rem;
}

.cookie-modal__close {
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--ink-muted);
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: background 150ms, color 150ms;
}

.cookie-modal__close:hover {
  background: var(--bg-strong);
  color: var(--ink);
}

.cookie-modal__close:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.cookie-modal__body {
  padding: 20px 28px;
}

.cookie-modal__body > p {
  font-size: 0.9rem;
  color: var(--ink-muted);
  margin: 0 0 20px;
}

.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.cookie-category__info {
  flex: 1;
}

.cookie-category__info strong {
  display: block;
  font-size: 0.95rem;
  color: var(--ink);
}

.cookie-category__desc {
  display: block;
  font-size: 0.82rem;
  color: var(--ink-muted);
  margin-top: 2px;
}

.cookie-toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
  cursor: pointer;
}

.cookie-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.cookie-toggle__slider {
  position: absolute;
  inset: 0;
  background: var(--line);
  border-radius: 24px;
  transition: background 200ms;
}

.cookie-toggle__slider::before {
  content: '';
  position: absolute;
  left: 3px;
  top: 3px;
  width: 18px;
  height: 18px;
  background: var(--white);
  border-radius: 50%;
  transition: transform 200ms;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.cookie-toggle input:checked + .cookie-toggle__slider {
  background: var(--brand);
}

.cookie-toggle input:checked + .cookie-toggle__slider::before {
  transform: translateX(20px);
}

.cookie-toggle input:focus-visible + .cookie-toggle__slider {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.cookie-toggle--disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.cookie-modal__footer {
  padding: 0 28px 24px;
  display: flex;
  justify-content: flex-end;
}

.cookie-modal__footer .cookie-btn--primary {
  width: 100%;
}

@media (max-width: 700px) {
  .cookie-banner__inner {
    flex-direction: column;
    align-items: stretch;
    padding: 16px 0;
  }

  .cookie-banner__actions {
    flex-direction: column;
  }

  .cookie-btn {
    width: 100%;
    text-align: center;
  }
}


/* ══════════════════════════════════════
   CASE STUDY PAGES
   ══════════════════════════════════════ */

.case-study-hero-img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.case-study-meta {
  display: flex;
  flex-wrap: wrap;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: 0 14px 40px rgba(18, 18, 18, 0.08);
  border: 1px solid var(--line-soft);
  overflow: hidden;
}

.case-study-meta-item {
  flex: 1 1 0;
  min-width: 160px;
  padding: 20px 24px;
  border-right: 1px solid var(--line);
}

.case-study-meta-item:last-child {
  border-right: none;
}

.case-study-meta-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
  margin-bottom: 4px;
}

.case-study-meta-value {
  font-family: "Sora", sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
}

.case-study-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.case-study-gallery img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  transition: transform 200ms, box-shadow 200ms;
}

.case-study-gallery img:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 36px rgba(18, 18, 18, 0.15);
}

.case-study-gallery img.gallery-wide {
  grid-column: span 2;
  height: 300px;
}

@media (max-width: 700px) {
  .case-study-hero-img { height: 240px; }
  .case-study-meta { flex-direction: column; }
  .case-study-meta-item {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }
  .case-study-meta-item:last-child { border-bottom: none; }
  .case-study-gallery { grid-template-columns: 1fr; }
  .case-study-gallery img.gallery-wide {
    grid-column: auto;
    height: 260px;
  }
}

/* ══════════════════════════════════════
   PROJECT GALLERY — MAP + GRID
   ══════════════════════════════════════ */

/* ── 3D Map Section ── */
.project-map-section {
  background: var(--bg);
  padding: 72px 0 64px;
  overflow: hidden;
}

.map-section-title {
  margin-bottom: 8px;
}

.map-section-subtitle {
  color: var(--ink-muted);
  max-width: 520px;
  margin: 0 0 48px;
}

.project-map-wrapper {
  perspective: 800px;
  max-width: 860px;
  margin: 0 auto;
}

.project-map {
  transform: rotateX(18deg);
  transform-origin: center center;
  position: relative;
}

.project-map svg {
  width: 100%;
  height: auto;
  display: block;
}

.project-map svg .state {
  fill: #d5d8dc;
  stroke: var(--white);
  stroke-width: 1;
  transition: fill 200ms;
}

.project-map svg .state[data-state="TX"],
.project-map svg .state[data-state="FL"],
.project-map svg .state[data-state="AK"],
.project-map svg .state[data-state="CA"],
.project-map svg .state[data-state="NY"],
.project-map svg .state[data-state="OH"],
.project-map svg .state[data-state="ID"],
.project-map svg .state[data-state="PA"],
.project-map svg .state[data-state="OK"],
.project-map svg .state[data-state="MO"] {
  fill: #f2c4c7;
}

/* Map dots */
.map-dot {
  fill: var(--brand);
  cursor: pointer;
  filter: drop-shadow(0 0 4px rgba(193, 18, 31, 0.35));
  transition: r 200ms ease, filter 200ms ease;
}

.map-dot:hover,
.map-dot:focus-visible {
  filter: drop-shadow(0 0 8px rgba(193, 18, 31, 0.6));
}

.map-dot-pulse {
  fill: none;
  stroke: var(--brand);
  stroke-width: 1.5;
  opacity: 0;
  pointer-events: none;
  animation: dot-pulse 2.5s ease-out infinite;
}

@keyframes dot-pulse {
  0%   { opacity: 0.5; }
  100% { opacity: 0; }
}

/* ── Gallery Responsive ── */
@media (max-width: 980px) {
  .project-map {
    transform: rotateX(12deg);
  }
}

@media (max-width: 700px) {
  .project-map-section {
    padding: 48px 0 40px;
  }
  .project-map {
    transform: rotateX(8deg);
  }
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .cs-hero-stat {
    font-size: clamp(2.2rem, 10vw, 3.5rem);
  }
  .cs-table td,
  .cs-table th {
    padding: 10px 12px;
    font-size: 0.85rem;
  }
}

/* ── Case Study – Procurement ── */
.cs-cover {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  object-fit: cover;
  max-height: 480px;
}
.cs-hero-stat {
  font-family: "Sora", sans-serif;
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 700;
  color: var(--brand);
  line-height: 1.1;
  margin: 8px 0 0;
}
.cs-hero-label {
  font-size: 1.1rem;
  color: var(--ink-muted);
  margin: 4px 0 20px;
}

.cs-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-md);
  margin-top: 28px;
  border: 1px solid var(--line);
}
.cs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.cs-table th {
  background: var(--ink);
  color: var(--white);
  padding: 14px 16px;
  text-align: left;
  font-family: "Sora", sans-serif;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.cs-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.cs-table tbody tr:nth-child(even) {
  background: var(--bg);
}
.cs-table tbody tr:hover {
  background: var(--brand-soft);
}
.cs-table .cs-savings {
  color: var(--brand);
  font-weight: 600;
}
.cs-table-total {
  font-weight: 700;
  background: var(--brand-soft) !important;
}
.cs-table-total td {
  border-bottom: none;
}

.cs-chart {
  max-width: 700px;
  margin: 32px auto 0;
}
.cs-chart svg {
  width: 100%;
  height: auto;
}
.cs-chart-legend {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--ink-muted);
}
.cs-chart-legend span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.cs-chart-legend .swatch {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  display: inline-block;
}

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── Print ── */
@media print {
  .site-header,
  .site-footer,
  .cookie-banner,
  .cookie-modal-overlay,
  .mobile-nav,
  .mobile-nav-overlay {
    display: none !important;
  }

  body {
    color: #000;
    background: #fff;
  }

  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 0.85em;
    color: #555;
  }

  nav a[href]::after,
  .site-footer a[href]::after,
  .button::after {
    content: none;
  }

  .page-hero {
    background: none !important;
    color: #000;
  }

  .hero-card {
    box-shadow: none;
    border: 1px solid #ccc;
  }

  img {
    max-width: 100% !important;
  }
}
