/*
Theme Name: Open Refresh
Theme URI: https://openrefresh.com
Author: Open Refresh
Description: Senior expertise, without the agency overhead.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: open-refresh
*/

/* =====================
   RESET & BASE
   ===================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --cream: #F8F7F3;
  --green: #DFFF00;
  --footer-bg: #1A4D2E;
  --footer-accent: #DFFF00;
  --footer-text: #ffffff;
  --dark: #111111;
  --mid: #444444;
  --colour-heading: #111111;
  --colour-logo: #1A4D2E;
  --btn-bg: #111111;
  --btn-text: #ffffff;
  --light-border: #e0dfd9;
  --font-display: 'DM Sans', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --font-heading: 'Sora', system-ui, sans-serif;
  --brand-blue: #5757CE;
}

h1, h2, h3,
.intro-text,
.clients-intro {
  font-family: var(--font-heading) !important;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--cream);
  color: var(--dark);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

/* =====================
   ANNOUNCEMENT BAR
   ===================== */
.announcement-bar {
  background-color: var(--dark);
  color: #fff;
  text-align: center;
  font-size: 13px;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.announcement-bar a {
  color: var(--green);
  font-weight: 600;
  text-decoration: underline;
}

/* =====================
   NAVIGATION
   ===================== */
.site-nav {
  background-color: var(--cream);
  border-bottom: 1px solid var(--light-border);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 88px;
}

body {
  padding-top: 88px;
}

.admin-bar .site-nav {
  top: 32px;
}

.admin-bar body {
  padding-top: 120px;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 400;
  letter-spacing: -0.5px;
}

.nav-logo span {
  color: var(--green);
  display: inline;
}

.nav-logo-img {
  display: block;
}

.nav-logo-img svg {
  height: 51px;
  width: auto;
  display: block;
}

.nav-logo-img svg path {
  fill: var(--colour-logo);
}

@keyframes logo-spin-cw {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes logo-spin-ccw {
  from { transform: rotate(0deg); }
  to   { transform: rotate(-360deg); }
}

.nav-logo:hover #logo-O {
  transform-box: fill-box;
  transform-origin: center;
  animation: logo-spin-cw 0.8s ease-in-out 0s;
}

.nav-logo:hover #logo-R {
  transform-box: fill-box;
  transform-origin: center;
  animation: logo-spin-ccw 0.8s ease-in-out 0.8s;
}

.footer-logo-img {
  display: block;
}

.footer-logo-img svg {
  height: 40px;
  width: auto;
  display: block;
}

.footer-logo-img svg path {
  fill: var(--footer-text);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--mid);
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--dark);
}

.nav-links .current-menu-item > a {
  background-color: #D2AEF9;
  color: #111111;
  padding: 8px 16px;
  border-radius: 100px;
}

.nav-links .btn-contact,
.nav-links li:last-child a {
  background-color: var(--btn-bg);
  color: var(--btn-text) !important;
  padding: 10px 20px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  transition: background-color 0.2s;
}

.nav-links .btn-contact:hover,
.nav-links li:last-child a:hover {
  background-color: color-mix(in srgb, var(--btn-bg) 80%, #000);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
}

/* =====================
   HERO
   ===================== */
/* =====================
   SPLASH — Homepage Hero
   ===================== */
.splash {
  position: relative;
  min-height: 100vh;
  background: var(--cream);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 0 64px 80px;
}

.splash-arrows {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.splash-arrow {
  position: absolute;
  color: var(--colour-logo);
}

/* Each shape traverses the frame; Y oscillation gives ferris-wheel roll */
.sa-1 {
  width: 320px;
  top: 8%;
  left: 0;
  animation: fly-lr-wave 14s ease-in-out infinite;
}

.sa-2 {
  width: 160px;
  top: 12%;
  left: 0;
  animation: fly-rl-curl 11s ease-in-out infinite;
  animation-delay: -4s;
}

.sa-3 {
  width: 220px;
  top: 42%;
  left: 0;
  animation: fly-lr-wave 13s ease-in-out infinite;
  animation-delay: -8s;
}

.sa-4 {
  width: 145px;
  bottom: 22%;
  left: 0;
  animation: fly-rl-curl 10s ease-in-out infinite;
  animation-delay: -3s;
}

.sa-5 {
  width: 200px;
  bottom: 8%;
  left: 0;
  animation: fly-lr-wave 16s ease-in-out infinite;
  animation-delay: -11s;
}

.sa-6 {
  width: 180px;
  top: 58%;
  left: 0;
  animation: fly-rl-curl 12s ease-in-out infinite;
  animation-delay: -6s;
}

/* L→R: enters from left, exits right; Y undulates like a rolling ferris wheel */
@keyframes fly-lr-wave {
  0%   { transform: translateX(-400px) translateY(50px) rotate(-10deg); opacity: 0; }
  10%  { transform: translateX(8vw) translateY(-35px) rotate(6deg); opacity: 0.08; }
  35%  { transform: translateX(32vw) translateY(50px) rotate(-5deg); opacity: 0.08; }
  65%  { transform: translateX(62vw) translateY(-35px) rotate(8deg); opacity: 0.08; }
  90%  { transform: translateX(88vw) translateY(40px) rotate(-6deg); opacity: 0.08; }
  100% { transform: translateX(calc(100vw + 400px)) translateY(20px) rotate(12deg); opacity: 0; }
}

/* R→L: enters from right, exits left; Y undulates */
@keyframes fly-rl-curl {
  0%   { transform: translateX(calc(100vw + 300px)) translateY(40px) rotate(12deg); opacity: 0; }
  10%  { transform: translateX(88vw) translateY(-35px) rotate(-6deg); opacity: 0.09; }
  35%  { transform: translateX(60vw) translateY(40px) rotate(5deg); opacity: 0.09; }
  65%  { transform: translateX(32vw) translateY(-30px) rotate(-7deg); opacity: 0.09; }
  90%  { transform: translateX(8vw) translateY(35px) rotate(5deg); opacity: 0.09; }
  100% { transform: translateX(-350px) translateY(20px) rotate(-15deg); opacity: 0; }
}

.splash-content {
  position: relative;
  z-index: 2;
  width: 100%;
}

.splash-wordmark {
  font-family: var(--font-display);
  font-size: clamp(72px, 13vw, 190px);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -5px;
  color: var(--colour-logo);
  margin: 0 0 52px;
}

.splash-wordmark span {
  display: block;
}

.splash-sub {
  font-size: 17px;
  color: var(--mid);
  margin-bottom: 36px;
  max-width: 420px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  background-color: var(--btn-bg);
  color: var(--btn-text);
  padding: 14px 28px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 600;
  transition: background-color 0.2s, transform 0.2s;
}

.btn-primary:hover {
  background-color: color-mix(in srgb, var(--btn-bg) 80%, #000);
  transform: translateY(-1px);
}


/* =====================
   TICKER / MARQUEE
   ===================== */
.ticker-outer {
  overflow: hidden;
  border-top: 1px solid var(--light-border);
  border-bottom: 1px solid var(--light-border);
  padding: 10px 0;
  background: var(--cream);
}

.ticker-inner {
  display: flex;
  animation: ticker 20s linear infinite;
  width: max-content;
}

.ticker-track {
  display: flex;
  gap: 60px;
  flex-shrink: 0;
}

.ticker-track span {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--mid);
}

@keyframes ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}


/* =====================
   CLIENTS
   ===================== */
.clients {
  padding: 80px 40px;
  max-width: 1280px;
  margin: 0 auto;
}

.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-label::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 2px;
  background: var(--mid);
  border-radius: 2px;
}

.clients-intro {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 36px);
  line-height: 1.2;
  max-width: 520px;
  margin-bottom: 56px;
  font-weight: 400;
  color: var(--dark);
}

.client-logos-outer {
  overflow-x: auto;
  overflow-y: hidden;
  margin: 0 -40px;
  padding: 0 40px;
  cursor: grab;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.client-logos-outer::-webkit-scrollbar {
  display: none;
}

.client-logos-outer.dragging {
  cursor: grabbing;
  user-select: none;
}

.client-logos-inner {
  display: flex;
  width: max-content;
}

.client-logos-track {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 32px;
  flex-shrink: 0;
}

.client-logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border-radius: 24px;
  width: 280px;
  height: 280px;
  padding: 40px;
  opacity: 0.85;
  transition: opacity 0.2s;
  flex-shrink: 0;
}

.client-logo-item:hover {
  opacity: 1;
}

.client-logo-item img {
  max-height: 60px;
  max-width: 160px;
  width: auto;
  filter: grayscale(100%);
  object-fit: contain;
}

.client-logo-item img[alt="Islington Council"] {
  max-height: 80px;
}

.client-logo-item span {
  font-size: 13px;
  color: var(--mid);
  white-space: nowrap;
}

/* =====================
   SCROLL BANNER
   ===================== */
.scroll-banner-wrapper {
  position: relative;
  height: 300vh;
}

.scroll-banner-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-blue);
}

.intro-text {
  position: absolute;
  top: calc(50% - 44px);
  transform: translateY(-50%);
  font-size: clamp(36px, 5.5vw, 72px);
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
  z-index: 3;
  will-change: transform;
  font-family: var(--font-heading);
}

.intro-we-are {
  right: calc(50% + 140px);
}

.intro-open-refresh {
  left: calc(50% + 140px);
}

/* Full-screen overlay clipped to pill shape — expands via clip-path, never overflows */
.scroll-overlay {
  position: absolute;
  inset: 0;
  background-image: url('assets/images/banner.png');
  background-size: cover;
  background-position: center;
  clip-path: inset(calc(50% - 36px) calc(50% - 120px) calc(50% - 36px) calc(50% - 120px) round 999px);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scroll-overlay .squiggle {
  position: absolute;
  pointer-events: none;
}

.scroll-overlay .squiggle-top-left {
  top: 0;
  left: 0;
  transform: translate(-30%, -30%);
}

.scroll-overlay .squiggle-bottom-left {
  bottom: 0;
  left: 0;
  transform: translate(-10%, 30%);
}

.scroll-overlay .squiggle-right {
  right: -40px;
  top: 50%;
  transform: translateY(-50%);
}

.banner-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  width: 52%;
  max-width: 680px;
}

.banner-headline {
  font-size: clamp(24px, 3.5vw, 52px);
  line-height: 1.2;
  font-weight: 500;
  color: var(--dark);
  letter-spacing: -0.5px;
  white-space: normal;
  text-align: center;
}

/* SVG Squiggles */
.squiggle svg {
  display: block;
}

/* =====================
   SERVICES
   ===================== */
.services {
  padding: 100px 40px;
  max-width: 1280px;
  margin: 0 auto;
}

.services-left {
  max-width: 640px;
  margin-bottom: 56px;
}

.services-left .section-label {
  margin-bottom: 24px;
}

.services-headline {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.5vw, 42px);
  line-height: 1.15;
  font-weight: 400;
  letter-spacing: -0.5px;
}

/* auto-fit + minmax: item count drives column count (fewer items = fewer,
   wider columns filling the row), and anything past 4-per-row wraps. */
.services-right {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
}

.service-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative; /* for stretched link */
}

.service-card-img {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4/3;
  width: 100%;
}

.service-card-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.4s ease;
}

.service-card:hover .service-card-img img {
  transform: scale(1.04);
}

.service-card-info h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 400;
  margin-bottom: 6px;
}

/* Title link — inherits colour, stretches to fill the whole card */
.service-card-info h3 a {
  color: inherit;
  text-decoration: none;
}
.service-card-info h3 a::after {
  content: '';
  position: absolute;
  inset: 0;
}

.service-card-info p {
  font-size: 14px;
  color: var(--mid);
  line-height: 1.5;
}

/* =====================
   FLEX SECTION
   ===================== */
.flex-section {
  padding: 80px 40px;
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.flex-section-img {
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 4/3;
}

.flex-section-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Gradient placeholder */
.gradient-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #ff6b35, #f7931e, #ffcd3c, #c1f0a0, #4fc3f7, #ab47bc);
  min-height: 340px;
}

.flex-section-content .section-label {
  margin-bottom: 24px;
}

.flex-section-content h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.2;
  font-weight: 400;
  margin-bottom: 32px;
  letter-spacing: -0.5px;
}

/* =====================
   FOOTER
   ===================== */
.site-footer {
  background-color: #D9ADFE;
  padding: 60px 60px 40px;
  position: relative;
  overflow: hidden;
}

.footer-logo-img svg path {
  fill: #1A0066;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 48px;
  flex-wrap: wrap;
  gap: 32px;
  position: relative;
  z-index: 1;
}

.footer-nav {
  display: flex;
  gap: 32px;
  list-style: none;
}

.footer-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--mid);
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: var(--dark);
}

.footer-main {
  margin-bottom: 80px;
  position: relative;
  z-index: 1;
}

.footer-main-text {
  flex: 1;
  min-width: 0;
}

.footer-main-headline {
  font-size: clamp(36px, 5vw, 72px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -1px;
  color: #1A0066;
  margin-bottom: 20px;
  max-width: 640px;
}

.footer-main-sub {
  font-size: 16px;
  color: #1A0066;
  line-height: 1.6;
  margin-bottom: 36px;
  max-width: 480px;
}

.footer-main-btn {
  display: inline-block;
  background: #1A0066;
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  padding: 16px 36px;
  border-radius: 999px;
  text-decoration: none;
  transition: opacity 0.2s;
}

.footer-main-btn:hover {
  opacity: 0.8;
}

.footer-deco {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  pointer-events: none;
  z-index: 0;
}

.footer-deco img {
  width: 100%;
  height: auto;
  display: block;
}

.footer-bottom {
  border-top: 1px solid rgba(0,0,0,0.15);
  position: relative;
  z-index: 1;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  font-size: 13px;
  color: #1A0066;
}

.footer-bottom-nav {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer-bottom-nav a {
  font-size: 13px;
  color: #1A0066;
  transition: color 0.2s;
}

.footer-bottom-nav a:hover {
  color: #000000;
}

/* =====================
   SERVICES PAGE
   ===================== */
/* =====================
   SERVICES PAGE (svc-*)
   ===================== */

/* Hero */
.svc-hero {
  padding: 100px 40px 60px;
}

.svc-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.svc-hero-headline {
  font-size: clamp(48px, 7vw, 100px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -3px;
  color: var(--colour-heading);
  margin-top: 20px;
  margin-bottom: 0;
}

/* Services grid */
/* Services grid */
.svc-accordion-section {
  background: #fcf9f7;
  padding: 100px 40px;
}

.svc-accordion-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.svc-grid-header {
  margin-bottom: 56px;
  max-width: 640px;
}

.svc-grid-header .section-label {
  color: rgba(0, 0, 0, 0.45);
  margin-bottom: 12px;
}

.svc-grid-blurb {
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.5;
  color: var(--colour-heading);
  font-weight: 400;
  margin: 0;
}

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

.svc-card {
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.svc-card-img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f0ede8;
}

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

.svc-card-title {
  font-size: 18px;
  font-weight: 500;
  color: var(--colour-heading);
  line-height: 1.3;
  margin: 0 0 10px;
  letter-spacing: -0.2px;
  padding: 24px 24px 0;
}

.svc-card-desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--mid);
  margin: 0;
  padding: 0 24px 28px;
}

/* Why Us */
.svc-why {
  padding: 80px 40px;
  background: #00E28B;
}

.svc-why-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
  align-items: start;
}

.svc-why-header .section-label {
  color: rgba(0, 0, 0, 0.55);
}

.svc-why-headline {
  font-size: clamp(24px, 2.8vw, 40px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.5px;
  color: #000000;
  margin-top: 16px;
  margin-bottom: 0;
}

.svc-why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.svc-why-item {
  padding-top: 24px;
  border-top: 1.5px solid rgba(0, 0, 0, 0.2);
}

.svc-why-icon {
  display: none;
}

.svc-why-title {
  font-size: 17px;
  font-weight: 600;
  color: #000000;
  margin-bottom: 10px;
  letter-spacing: -0.2px;
}

.svc-why-desc {
  font-size: 14px;
  line-height: 1.65;
  color: rgba(0, 0, 0, 0.7);
}

/* Testimonials */
.svc-testimonials {
  padding: 100px 40px;
  background: #f0ede8;
}

.svc-testi-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.svc-testi-inner .section-label {
  margin-bottom: 48px;
}

.svc-testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.svc-testi-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
}

.svc-testi-quote {
  font-size: 17px;
  line-height: 1.65;
  color: var(--dark);
  font-style: italic;
  margin: 0;
  position: relative;
  padding-top: 48px;
}

.svc-testi-quote::before {
  content: '\201C';
  position: absolute;
  top: 0;
  left: 0;
  font-size: 72px;
  line-height: 1;
  font-style: normal;
  color: #00e28b;
  font-family: Georgia, serif;
}

.svc-testi-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.svc-testi-photo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.svc-testi-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.svc-testi-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
}

.svc-testi-role {
  font-size: 13px;
  color: var(--mid);
}

/* CTA Banner */
.wp-block-open-refresh-cta-banner {
  margin: 0 !important;
}

.svc-cta {
  background: url(assets/images/cta-bg.png) center center / cover no-repeat;
  padding: 100px 60px;
  position: relative;
  overflow: hidden;
}

.svc-cta-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 28px;
  position: relative;
  z-index: 1;
}

.svc-cta-left {
  width: 100%;
}

.svc-cta-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.svc-cta-headline {
  font-size: clamp(36px, 4.5vw, 64px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 3px;
  color: var(--colour-heading);
}

.svc-cta-subtext {
  font-size: 18px;
  line-height: 1.6;
  color: var(--mid);
}

.svc-cta-btn {
  display: inline-block;
  background: #111111;
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  padding: 16px 36px;
  border-radius: 999px;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: opacity 0.2s;
}

.svc-cta-btn:hover {
  opacity: 0.8;
}

/* =====================
   GENERIC PAGE TEMPLATE
   ===================== */
.page-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 80px 40px;
}

.page-hero-img {
  margin-bottom: 60px;
  width: 100%;
  overflow: hidden;
}

.page-hero-img img {
  width: 100%;
  height: auto;
  display: block;
}

.page-body h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 60px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 40px;
}

.page-text {
  font-size: 18px;
  line-height: 1.7;
  color: var(--mid);
}

.page-text p {
  margin-bottom: 24px;
}


.page-body h1 {
  color: var(--colour-heading);
}

.page-text h2,
.page-text h3,
.page-text h4 {
  color: var(--colour-heading);
  padding-top: 16px;
  padding-bottom: 4px;
}

.page-text h5 {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: #DFFF00;
  background-color: var(--colour-heading);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 0;
  margin-top: 4px;
  margin-bottom: 8px;
}

.page-text img {
  margin-bottom: 12px;
}

/* =====================
   CONTACT PAGE
   ===================== */
.contact-hero {
  padding: 100px 40px 60px;
}

.contact-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.contact-hero-headline {
  font-size: clamp(48px, 7vw, 100px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -3px;
  color: var(--colour-heading);
  margin-top: 20px;
  margin-bottom: 0;
}

.contact-hero .page-text {
  margin-top: 24px;
  max-width: 640px;
}

.contact-form-section {
  background: #fcf9f7;
  padding: 100px 40px;
}

.contact-form-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.contact-form {
  margin-top: 0;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-form-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-row label {
  font-size: 13px;
  font-weight: 600;
  color: var(--mid);
}

.form-row input,
.form-row textarea {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--dark);
  background-color: #fff;
  border: 1px solid var(--light-border);
  border-radius: 8px;
  padding: 12px 16px;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--dark);
}

.form-row textarea {
  resize: vertical;
}

.contact-form .btn-primary {
  align-self: flex-start;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
}

.form-notice {
  max-width: 560px;
  margin-top: 24px;
  padding: 14px 18px;
  border-radius: 8px;
  font-size: 15px;
}

.form-notice-success {
  background-color: #DFFFE0;
  color: #1A4D2E;
}

.form-notice-error {
  background-color: #FFE2DE;
  color: #7A1F1F;
}

/* =====================
   VALUES
   ===================== */
.values-section {
  margin-top: 80px;
  padding-top: 60px;
  border-top: 1px solid var(--light-border);
}

.values-headline {
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 400;
  margin-bottom: 40px;
  letter-spacing: -0.5px;
}

.values-row {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 100px;
  gap: 16px;
  grid-auto-flow: dense;
}

.value-tile:nth-child(1) { grid-column: span 7; grid-row: span 4; background-color: var(--tile-color, #B3FFFA); }
.value-tile:nth-child(2) { grid-column: span 5; grid-row: span 4; background-color: var(--tile-color, #FAFF95); }
.value-tile:nth-child(3) { grid-column: span 5; grid-row: span 3; background-color: var(--tile-color, #BFFFCF); }
.value-tile:nth-child(4) { grid-column: span 4; grid-row: span 3; background-color: var(--tile-color, #FFCEBF); }
.value-tile:nth-child(5) { grid-column: span 3; grid-row: span 3; background-color: var(--tile-color, #EEFFB9); }

.value-tile {
  position: relative;
  border-radius: 20px;
  padding: 40px 36px;
  cursor: pointer;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Background image layer */
.tile-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  border-radius: inherit;
  transition: opacity 0.4s ease;
}

.value-tile:hover .tile-bg,
.value-tile.active .tile-bg {
  opacity: 0;
}

/* When image present, title is a small label — doesn't cover the image */
.has-bg-image .value-title {
  inset: auto;
  bottom: 28px;
  background-color: #DFFF00;
  color: var(--colour-heading);
  padding: 8px 16px;
  border-radius: 0;
  max-width: 80%;
}

.value-title,
.value-meaning {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 28px;
  text-align: center;
  transition: opacity 0.35s ease;
  z-index: 1;
}

.value-title {
  font-size: clamp(17px, 1.4vw, 22px);
  font-weight: 500;
  background-color: #DFFF00;
  color: var(--colour-heading);
  opacity: 1;
}

.value-meaning {
  font-size: clamp(14px, 1.1vw, 16px);
  line-height: 1.6;
  color: var(--dark);
  background-color: var(--tile-color);
  opacity: 0;
}

.value-tile:hover .value-title,
.value-tile.active .value-title {
  opacity: 0;
}

.value-tile:hover .value-meaning,
.value-tile.active .value-meaning {
  opacity: 1;
}

/* =====================
   ABOUT V2
   ===================== */

/* Hero */
.av2-hero {
  padding: 100px 40px 60px;
  text-align: left;
}

.av2-hero-top {
  position: relative;
  z-index: 1;
  pointer-events: none;
  max-width: 1200px;
  margin: 0 auto;
}

.av2-headline {
  font-size: clamp(48px, 7vw, 100px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -3px;
  color: var(--colour-heading);
  margin-top: 20px;
  margin-bottom: 0;
}

/* Approach */
.av2-approach {
  padding: 100px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.av2-approach-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 40px;
}

.av2-approach-img {
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 20px;
  aspect-ratio: 4 / 3;
}

.av2-approach-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.av2-approach-title {
  font-size: 20px;
  font-weight: 500;
  color: var(--colour-heading);
  margin-bottom: 12px;
}

.av2-approach-desc {
  font-size: 15px;
  line-height: 1.65;
  color: var(--mid);
}

/* Bento Grid (How We Work) */
.bento-section {
  padding: 100px 40px;
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid var(--light-border);
}

.bento-header {
  margin-bottom: 48px;
  max-width: 640px;
}

.bento-headline {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.5vw, 42px);
  line-height: 1.15;
  font-weight: 400;
  letter-spacing: -0.5px;
  margin-top: 20px;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  grid-auto-flow: dense;
  gap: 24px;
}

.bento-tile {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 28px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--light-border);
  overflow: hidden;
}

.bento-tile--wide {
  grid-column: span 2;
  flex-direction: row;
  align-items: center;
}

.bento-tile--wide.bento-tile--img-right {
  flex-direction: row-reverse;
}

.bento-tile--tall {
  grid-row: span 2;
}

.bento-tile--large {
  grid-column: span 2;
  grid-row: span 2;
}

.bento-tile-img {
  flex: 1;
  min-height: 0;
  border-radius: 12px;
  overflow: hidden;
}

.bento-tile--wide .bento-tile-img {
  flex: 0 0 42%;
  align-self: stretch;
}

.bento-tile-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bento-tile-info {
  flex-shrink: 0;
}

.bento-tile--wide .bento-tile-info {
  flex: 1;
  min-width: 0;
}

.bento-tile-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 400;
  color: var(--colour-heading);
  margin-bottom: 6px;
}

.bento-tile-title a {
  color: inherit;
}

.bento-tile-desc {
  font-size: 14px;
  line-height: 1.5;
  color: var(--mid);
}

/* Team */
.av2-team {
  padding: 80px 40px;
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid var(--light-border);
}

.av2-team-label {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 400;
  color: var(--colour-heading);
  letter-spacing: -0.5px;
  margin-bottom: 48px;
}

.av2-team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px 56px;
}

.av2-member-photo {
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 24px;
  aspect-ratio: 4 / 5;
}

.av2-member-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}

.av2-member-name {
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 400;
  color: var(--colour-heading);
  margin-bottom: 6px;
}

.av2-member-role {
  font-size: 13px;
  font-weight: 600;
  color: #301891;
  display: inline-block;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.av2-member-bio {
  font-size: 15px;
  line-height: 1.7;
  color: var(--mid);
}

.av2-member-bio p {
  margin-bottom: 16px;
}

.services-page-hero {
  margin-bottom: 80px;
}

.services-page-hero h1 {
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -1px;
  max-width: 700px;
  margin-top: 16px;
}

.service-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  padding: 60px 0;
  border-top: 1px solid var(--light-border);
}

.service-section:nth-child(even) .service-section-img {
  order: 2;
}

.service-section:nth-child(even) .service-section-content {
  order: 1;
}

.service-section-img {
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4/3;
}

.service-section-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-section-content h2 {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.service-section-desc {
  font-size: 16px;
  color: var(--mid);
  line-height: 1.7;
  margin-bottom: 28px;
}

@media (max-width: 768px) {
  .service-section {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .service-section:nth-child(even) .service-section-img,
  .service-section:nth-child(even) .service-section-content {
    order: unset;
  }
}

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

/* ── Tablet (max 900px) ── */
@media (max-width: 900px) {

  /* Services page */
  .svc-accordion-section {
    padding: 64px 24px;
  }

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

  .svc-why-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .svc-why-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }

  .svc-testi-grid {
    grid-template-columns: 1fr;
    max-width: 560px;
  }

  /* .services-right reflows on its own via auto-fit/minmax, no override needed */

  .flex-section {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .values-row {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: auto;
  }

  .value-tile {
    grid-column: span 1 !important;
    grid-row: span 1 !important;
  }

  /* Footer */
  .footer-top {
    flex-direction: column;
  }

  .footer-cta {
    text-align: left;
  }

  /* About v2 — hero */
  .av2-hero {
    padding: 60px 32px 0;
  }

  .av2-headline {
    font-size: clamp(36px, 6vw, 72px);
    letter-spacing: -2px;
  }

  /* About v2 — approach */
  .av2-approach {
    padding: 60px 32px;
  }

  .av2-approach-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  /* About v2 — bento grid */
  .bento-section {
    padding: 60px 32px;
  }

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

  /* About v2 — team */
  .av2-team-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

/* ── Mobile (max 640px) ── */
@media (max-width: 640px) {

  /* Services page */
  .svc-hero {
    padding: 60px 20px 48px;
  }

  .svc-grid-section,
  .svc-why,
  .svc-testimonials,
  .svc-cta {
    padding: 64px 20px;
  }

  .svc-accordion-section {
    padding: 48px 20px;
  }

  .svc-grid {
    grid-template-columns: 1fr;
  }

  .svc-why-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  /* Nav */
  .site-nav {
    padding: 0 20px;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 88px;
    left: 0;
    right: 0;
    background: var(--cream);
    flex-direction: column;
    padding: 24px 20px;
    border-bottom: 1px solid var(--light-border);
    gap: 20px;
    z-index: 99;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  /* Homepage splash */
  .splash {
    padding: 0 24px 60px;
  }

  .splash-wordmark {
    letter-spacing: -3px;
  }

  /* Clients */
  .clients {
    padding: 60px 20px;
  }

  .client-logos {
    gap: 24px 32px;
  }

  /* Services */
  .services {
    padding: 60px 20px;
  }

  .services-right {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  /* Flex section */
  .flex-section {
    padding: 60px 20px;
  }

  /* Values */
  .values-section {
    padding: 40px 20px;
  }

  .values-row {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .site-footer {
    padding: 40px 20px 30px;
  }

  .footer-nav {
    flex-wrap: wrap;
    gap: 16px;
  }

  /* About v2 — hero */
  .av2-hero {
    padding: 40px 20px 0;
    min-height: 150vh;
  }

  .av2-headline {
    font-size: clamp(32px, 8vw, 52px);
    letter-spacing: -1.5px;
  }

  .av2-hero-top {
    top: 88px;
  }

  /* About v2 — approach */
  .av2-approach {
    padding: 48px 20px;
  }

  .av2-approach-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  /* About v2 — bento grid: single column on mobile */
  .bento-section {
    padding: 48px 20px;
  }

  .bento-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    gap: 20px;
  }

  .bento-tile,
  .bento-tile--wide,
  .bento-tile--tall,
  .bento-tile--large {
    grid-column: span 1;
    grid-row: span 1;
    flex-direction: column;
  }

  .bento-tile-img {
    aspect-ratio: 4 / 3;
    flex: none;
  }

  .bento-tile--wide .bento-tile-img {
    flex: none;
  }

  /* Stack image-right tiles too (the desktop row-reverse rule is more specific) */
  .bento-tile--wide.bento-tile--img-right {
    flex-direction: column;
  }

  /* About v2 — team */
  .av2-team {
    padding: 48px 20px;
  }

  .av2-team-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}


/* =====================
   CASE STUDIES PAGE (cs-*)
   ===================== */

/* Hero */
.cs-hero {
  padding: 100px 40px 60px;
}

.cs-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.cs-hero-headline {
  font-size: clamp(48px, 7vw, 100px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -3px;
  color: var(--colour-heading);
  margin-top: 20px;
  margin-bottom: 0;
}

/* Section wrapper (one per owner group: Open Refresh / prior work) */
.cs-section + .cs-section {
  margin-top: 40px;
  padding-top: 80px;
  border-top: 1px solid var(--light-border, #e8e8e8);
}

.cs-section-header {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px 32px;
}

.cs-section-heading {
  font-size: clamp(24px, 2.5vw, 32px);
  font-weight: 500;
  letter-spacing: -0.5px;
  color: var(--colour-heading);
  margin: 0;
}

/* Filter tabs */
.cs-filters {
  padding: 0 40px 48px;
}

.cs-filters-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cs-filter-btn {
  background: transparent;
  border: 1.5px solid var(--light-border, #ddd);
  border-radius: 999px;
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--mid);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  font-family: inherit;
}

.cs-filter-btn:hover {
  border-color: var(--colour-heading);
  color: var(--colour-heading);
}

.cs-filter-btn.active {
  background: var(--colour-heading);
  border-color: var(--colour-heading);
  color: #ffffff;
}

/* Grid */
.cs-grid-section {
  padding: 0 40px 120px;
}

.cs-grid-inner {
  max-width: 1200px;
  margin: 0 auto;
}

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

/* Card */
.cs-card {
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--light-border, #e8e8e8);
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.cs-card:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,0.10);
  transform: translateY(-3px);
}

/* Featured card spans 2 columns */
.cs-card--featured {
  grid-column: span 2;
}

.cs-card-img {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #f0ede8;
}

.cs-card--featured .cs-card-img {
  aspect-ratio: 16 / 8;
}

.cs-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.cs-card:hover .cs-card-img img {
  transform: scale(1.03);
}

.cs-card-img-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #e8e4f0, #d0c8e8);
}

.cs-card-body {
  padding: 28px 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.cs-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cs-card-client {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #301891;
}

.cs-card-year {
  font-size: 12px;
  color: var(--mid);
}

.cs-card-title {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.3px;
  color: var(--colour-heading);
  margin: 0;
}

.cs-card--featured .cs-card-title {
  font-size: 26px;
}

.cs-card-tagline {
  font-size: 14px;
  line-height: 1.6;
  color: var(--mid);
  margin: 0;
}

.cs-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.cs-tag {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--cream, #F8F7F3);
  color: var(--mid);
  border: 1px solid var(--light-border, #e8e8e8);
}

/* Hidden by filter JS */
.cs-card.cs-hidden {
  display: none;
}

/* =====================
   CASE STUDY SINGLE
   ===================== */
.cs-single {
  padding-bottom: 120px;
}

.cs-single-hero {
  padding: 80px 40px 60px;
  max-width: 860px;
  margin: 0 auto;
}

.cs-single-hero-inner {
  max-width: 100%;
}

.cs-back-link {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  color: var(--mid);
  text-decoration: none;
  margin-bottom: 32px;
  letter-spacing: 0.02em;
}

.cs-back-link:hover {
  color: var(--colour-heading);
}

.cs-single-headline {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -2px;
  color: var(--colour-heading);
  margin-top: 16px;
  margin-bottom: 20px;
}

.cs-single-tagline {
  font-size: 20px;
  line-height: 1.55;
  color: var(--mid);
  max-width: 600px;
  margin: 0 0 40px;
}

.cs-single-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--light-border, #e8e8e8);
}

.cs-meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 14px;
  color: var(--mid);
}

.cs-meta-item strong {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--dark);
}

.cs-single-cover {
  max-width: 1200px;
  margin: 0 auto 80px;
  padding: 0 40px;
  border-radius: 24px;
  overflow: hidden;
}

.cs-single-cover img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 20px;
}

.cs-single-content {
  padding: 0 40px;
}

.cs-single-content-inner {
  max-width: 720px;
  margin: 0 auto;
}

.cs-single-placeholder {
  color: var(--mid);
  font-size: 18px;
}

/* =====================
   CASE STUDY SINGLE V2
   ===================== */

.cs2-hero {
  padding: 60px 40px 0;
  max-width: 1200px;
  margin: 0 auto;
}

.cs2-hero-header {
  margin-bottom: 32px;
}

.cs2-headline {
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -1.5px;
  color: var(--colour-heading);
  max-width: 720px;
  margin-top: 16px;
}

.cs2-cover {
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 16/9;
  margin-bottom: 48px;
}

.cs2-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cs2-hero-pills {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 60px;
  margin-bottom: 40px;
  align-items: start;
}

.cs2-pill-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cs2-pill-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cs2-pill-stack--right {
  grid-column: 2;
}

.cs2-owner-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.cs2-owner-logo {
  height: 80px;
  width: auto;
  max-width: 400px;
  object-fit: contain;
  display: block;
}

.cs2-pill-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--mid);
  margin: 0;
}

.cs2-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cs2-contributors {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
}

.cs2-contributor {
  font-size: 15px;
  font-weight: 500;
  color: var(--colour-heading);
}

.cs2-pill {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: var(--colour-heading);
  background: var(--green);
}

.cs2-intro-row {
  padding-bottom: 60px;
  border-bottom: 1px solid var(--light-border);
}

.cs2-intro-right {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.cs2-intro-right--has-stats {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 60px;
  align-items: start;
}

.cs2-intro-text {
  font-size: 16px;
  line-height: 1.75;
  color: var(--mid);
}

.cs2-tagline {
  font-size: 19px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--mid);
}

.cs2-stats-wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cs2-stats {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.cs2-stat {
  padding-top: 20px;
  padding-bottom: 20px;
  border-top: 1px solid var(--light-border);
}

.cs2-stat-value {
  font-size: clamp(17px, 1.8vw, 22px);
  font-weight: 600;
  line-height: 1.3;
  color: var(--colour-heading);
  letter-spacing: -0.2px;
}

.cs2-stat-label {
  font-size: 13px;
  color: var(--mid);
  margin-top: 4px;
}

/* Stack tagline + intro inside the wrapper */
.cs2-intro-texts {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Sidebar stats: compact */
.cs2-sidebar-stats .cs2-stat-value {
  font-size: 16px;
}

.cs2-sidebar-stats .cs2-stat {
  padding-top: 16px;
  padding-bottom: 16px;
}

/* Body layout */
.cs2-body {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 40px 120px;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 80px;
  align-items: start;
}

/* Sidebar */
.cs2-sidebar {
  position: sticky;
  top: calc(88px + 40px);
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.cs2-sidebar-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cs2-sidebar-heading {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mid);
}

.cs2-sidebar-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cs2-sidebar-nav a {
  font-size: 13px;
  color: var(--mid);
  transition: color 0.2s;
}

.cs2-sidebar-nav a:hover {
  color: var(--dark);
}

.cs2-sidebar-meta {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 4px;
}

.cs2-meta-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 2px;
}

.cs2-meta-value {
  font-size: 13px;
  color: var(--dark);
}

.cs2-meta-value a {
  color: var(--colour-heading);
  text-decoration: underline;
}

.cs2-sidebar-stats {
  gap: 0;
}

/* Article */
.cs2-section {
  padding-bottom: 48px;
  margin-bottom: 48px;
  border-bottom: 1px solid var(--light-border);
  scroll-margin-top: calc(88px + 32px);
}

.cs2-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.cs2-section-title {
  font-size: clamp(22px, 2.5vw, 32px);
  font-weight: 400;
  color: var(--colour-heading);
  letter-spacing: -0.5px;
  margin-bottom: 20px;
}

.cs2-section-body {
  font-size: 16px;
  line-height: 1.75;
  color: var(--mid);
}

.cs2-section-body p { margin-bottom: 20px; }
.cs2-section-body p:last-child { margin-bottom: 0; }

.cs2-section-body h3 {
  font-size: 18px;
  font-weight: 500;
  color: var(--colour-heading);
  margin: 28px 0 12px;
}

.cs2-section-body ul,
.cs2-section-body ol {
  padding-left: 24px;
  margin-bottom: 20px;
}

.cs2-section-body li { margin-bottom: 8px; }

/* Pull quote */
.cs2-pull-quote {
  border-left: 3px solid #00e28b;
  padding: 4px 0 4px 28px;
  margin-top: 48px;
}

.cs2-pull-quote blockquote {
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 400;
  line-height: 1.5;
  color: var(--colour-heading);
  font-style: italic;
  margin: 0 0 12px;
}

.cs2-pull-quote cite {
  font-size: 13px;
  color: var(--mid);
  font-style: normal;
}

/* =====================
   CASE STUDIES RESPONSIVE
   ===================== */
@media (max-width: 900px) {
  .cs-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cs-card--featured {
    grid-column: span 2;
  }

  .cs2-intro-right--has-stats {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .cs2-hero-pills {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .cs2-pill-stack--right {
    grid-column: 1;
  }

  .cs2-body {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .cs2-sidebar {
    position: static;
  }
}

@media (max-width: 640px) {
  .cs-hero,
  .cs-filters {
    padding-left: 20px;
    padding-right: 20px;
  }

  .cs-grid-section {
    padding: 0 20px 80px;
  }

  .cs-grid {
    grid-template-columns: 1fr;
  }

  .cs-card--featured {
    grid-column: span 1;
  }

  .cs-single-hero {
    padding: 60px 20px 40px;
  }

  .cs-single-cover {
    padding: 0 20px;
  }

  .cs-single-content {
    padding: 0 20px;
  }

  .cs2-hero {
    padding: 40px 20px 0;
  }

  .cs2-body {
    padding: 40px 20px 80px;
  }

  .cs2-cover {
    aspect-ratio: 4/3;
    margin-bottom: 32px;
  }

  .cs2-sidebar-nav {
    display: none;
  }

  .cs2-section {
    padding-bottom: 32px;
    margin-bottom: 32px;
  }

  .cs2-pull-quote {
    padding-left: 20px;
  }
}

/* =====================
   HOMEPAGE — NEW SECTIONS
   ===================== */

/* ── Intro ── */
.hp-intro {
  padding: 100px 60px;
  background: var(--cream);
}

.hp-intro-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 80px;
  align-items: flex-start;
}

.hp-intro-left {
  flex: 1.1;
}

.hp-intro-headline {
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -1px;
  color: var(--colour-heading);
}

.hp-intro-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 6px;
}

.hp-intro-body {
  font-size: 16px;
  line-height: 1.7;
  color: var(--mid);
}

.hp-intro-btn {
  display: inline-block;
  background: var(--dark);
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 999px;
  text-decoration: none;
  margin-top: 8px;
  transition: opacity 0.2s;
  align-self: flex-start;
}

.hp-intro-btn:hover {
  opacity: 0.8;
}

/* ── Services ── */
.hp-services {
  padding: 80px 60px;
  background: var(--cream);
}

.hp-services-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.hp-services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  align-items: start;
}

.hp-svc-card:nth-child(even) {
  margin-top: 60px;
}

.hp-svc-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 24px;
}

.hp-svc-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hp-svc-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--colour-heading);
  margin-bottom: 8px;
}

.hp-svc-tagline {
  font-size: 14px;
  font-weight: 700;
  color: var(--colour-heading);
  margin-bottom: 10px;
}

.hp-svc-desc {
  font-size: 14px;
  line-height: 1.65;
  color: var(--mid);
}

/* ── Product Audit CTA ── */
.hp-audit {
  background: #8080C8;
  padding: 80px 60px;
  margin: 0 40px;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
}

.hp-audit-deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hp-audit-deco img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hp-audit-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 60px;
  position: relative;
  z-index: 1;
}

.hp-audit-text {
  flex: 1.2;
}

.hp-audit-pretitle {
  font-size: 14px;
  color: #1A0066;
  margin-bottom: 12px;
  font-weight: 500;
  text-decoration: underline;
}

.hp-audit-headline {
  font-size: clamp(24px, 3vw, 44px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.5px;
  color: #1A0066;
  margin-bottom: 20px;
}

.hp-audit-desc {
  font-size: 15px;
  line-height: 1.7;
  color: #1A0066;
  margin-bottom: 32px;
}

.hp-audit-btn {
  display: inline-block;
  background: #1A0066;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 999px;
  text-decoration: none;
  transition: opacity 0.2s;
}

.hp-audit-btn:hover {
  opacity: 0.8;
}

.hp-audit-image {
  flex: 0 0 460px;
  max-width: 460px;
  position: relative;
  height: 460px;
}

.hp-audit-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.hp-audit-ring-inner {
  width: 340px;
  height: 340px;
  z-index: 1;
}

.hp-audit-ring-outer {
  width: 460px;
  height: 460px;
  z-index: 0;
}

.hp-audit-disc {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 280px;
  height: 280px;
  background: #1A0066;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.hp-audit-laptop {
  width: 90%;
  height: auto;
  display: block;
}

/* ── Team ── */
.hp-team {
  padding: 100px 60px;
  background: var(--cream);
}

.hp-team-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hp-team-headline {
  font-size: clamp(22px, 2.8vw, 38px);
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--colour-heading);
  margin-bottom: 56px;
  max-width: 640px;
}

.hp-team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  width: 100%;
  max-width: 860px;
  margin-bottom: 48px;
}

.hp-team-card {
  text-align: left;
}

.hp-team-photo {
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 20px;
  aspect-ratio: 1 / 1;
}

.hp-team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hp-team-name {
  font-size: 20px;
  font-weight: 600;
  color: var(--colour-heading);
  margin-bottom: 10px;
}

.hp-team-bio {
  font-size: 14px;
  line-height: 1.65;
  color: var(--mid);
}

.hp-team-btn {
  display: inline-block;
  background: var(--dark);
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 999px;
  text-decoration: none;
  transition: opacity 0.2s;
}

.hp-team-btn:hover {
  opacity: 0.8;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .hp-intro-inner {
    flex-direction: column;
    gap: 40px;
  }

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

  .hp-svc-card:nth-child(even) {
    margin-top: 0;
  }

  .hp-audit {
    margin: 0 20px;
  }

  .hp-audit-inner {
    flex-direction: column;
  }

  .hp-audit-image {
    flex: none;
    max-width: 260px;
    margin: 0 auto;
  }

  .hp-team-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
  }

  .footer-main {
    flex-direction: column;
  }

  .footer-deco {
    display: none;
  }
}
