/* ---------- Fonts ---------- */
/* Space Grotesk carries the headings, Google Sans Flex the body copy.
   Both are variable and trimmed to Latin; Google Sans Flex keeps only its
   weight and optical-size axes. */
@font-face {
  font-family: "Space Grotesk";
  src: url("../assets/fonts/SpaceGrotesk-Variable.woff2") format("woff2-variations"), url("../assets/fonts/SpaceGrotesk-Variable.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Google Sans Flex";
  src: url("../assets/fonts/GoogleSansFlex-Variable.woff2") format("woff2-variations"), url("../assets/fonts/GoogleSansFlex-Variable.woff2") format("woff2");
  font-weight: 1 1000;
  font-style: normal;
  font-display: swap;
}

/* ---------- Design tokens ---------- */
:root {
  --teal: #0E7C93;
  --teal-dark: #0A5F70;
  --teal-light: #E4F2F4;
  --coral: #F2545C;
  --coral-dark: #D93B47;
  --coral-light: #FDEAEB;
  --orange: #F2A11B;
  --orange-dark: #D9670E;

  /* Sampled directly from the logo artwork, for elements matched to it exactly */
  --logo-teal: #0191AD;
  --logo-orange: #EA690D;

  --ink: #16232A;
  --ink-soft: #4B5B62;
  --paper: #FAF9F7;
  --paper-alt: #F2EFEA;
  --white: #FFFFFF;
  --border: #E4E0D9;

  --font-display: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-body: "Google Sans Flex", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;

  --shadow-sm: 0 2px 10px rgba(22, 35, 42, 0.06);
  --shadow-md: 0 12px 30px rgba(22, 35, 42, 0.10);
  --shadow-lg: 0 24px 60px rgba(22, 35, 42, 0.14);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* Stop iOS Safari inflating body text in wide blocks on rotate/zoom */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-optical-sizing: auto;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font: inherit; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.15;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  /* Looping decorative animations would strobe at the duration above, so stop
     them outright and pin anything that animates in to its finished state. */
  .blob,
  .card-teal,
  .card-coral,
  .about-card::after,
  .hl { animation: none !important; }
  .hl { background-size: 100% 0.92em; }
}

/* ---------- Cursor glow (decorative, desktop only) ---------- */
.cursor-glow {
  position: fixed;
  top: 0; left: 0;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(14,124,147,0.07), transparent 70%);
  transform: translate(-50%, -50%);
  z-index: 0;
  will-change: transform;
  transition: opacity 0.3s ease;
}
@media (max-width: 900px), (hover: none) {
  .cursor-glow { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  color: var(--white);
  box-shadow: 0 10px 24px rgba(242, 161, 27, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(242, 161, 27, 0.45); }
.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--border);
}
.btn-outline:hover { border-color: var(--teal); color: var(--teal); transform: translateY(-2px); }
.btn-sm { padding: 10px 20px; font-size: 0.85rem; }
.btn-lg { padding: 18px 36px; font-size: 1.05rem; }
.btn-full { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease), padding 0.3s var(--ease);
}
.site-header.scrolled {
  background: rgba(250, 249, 247, 0.85);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-sm);
  padding: 12px 0;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; }
.brand-logo { height: 96px; width: auto; }

.nav {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-pill {
  display: flex;
  align-items: center;
  gap: 32px;
  border: 2px solid var(--logo-teal);
  border-radius: 999px;
  padding: 10px 28px;
}
.nav-link {
  position: relative;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink-soft);
  padding: 6px 0;
  transition: color 0.2s ease;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: linear-gradient(90deg, var(--teal), var(--coral));
  transition: width 0.3s var(--ease);
  border-radius: 2px;
}
.nav-link:hover { color: var(--ink); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-link.active { color: var(--ink); }
.nav-mobile-cta { display: none; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  z-index: 101;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  margin: 0 auto;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.header-cta {
  position: relative;
  height: 60px;
  padding-left: 28px;
  padding-right: 28px;
  z-index: 101;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}
.nav.open ~ .header-cta { opacity: 0; visibility: hidden; }

.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(22, 35, 42, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease);
  z-index: 98;
}
.nav-backdrop.open { opacity: 1; pointer-events: auto; }

/* ---------- Hero ---------- */
.intro-bg-wrap {
  position: relative;
  overflow: hidden;
}
.hero {
  position: relative;
  display: flex;
  align-items: center;
  padding: 180px 0 60px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  mask-image: linear-gradient(to bottom, black, black 65%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black, black 65%, transparent 100%);
}
.hero-grid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: var(--ink);
  opacity: 0.05;
  mask-image: radial-gradient(ellipse at 50% 30%, black 20%, transparent 75%);
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.35;
  animation: float 16s ease-in-out infinite;
}
.blob-teal { width: 420px; height: 420px; background: var(--teal); top: -120px; left: -100px; }
.blob-coral { width: 380px; height: 380px; background: var(--coral); top: 60px; right: -140px; animation-delay: -5s; }
.blob-orange { width: 260px; height: 260px; background: var(--orange); top: 480px; left: 30%; animation-delay: -10s; }

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.06); }
  66% { transform: translate(-20px, 20px) scale(0.96); }
}

.hero-inner { text-align: center; max-width: 900px; margin: 0 auto; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-dark);
  background: var(--teal-light);
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.hero-title {
  font-size: clamp(2.4rem, 5.5vw, 4.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  color: var(--logo-teal);
}
.text-gradient {
  background: linear-gradient(100deg, var(--coral), var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.text-period {
  color: var(--logo-orange);
}

.hero-sub {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: var(--ink-soft);
  max-width: 700px;
  margin: 0 auto;
  text-wrap: pretty;
}

/* Key words in the hero line: a marker highlight wipes in behind each one,
   staggered, then fills the whole word on hover. */
.hl {
  position: relative;
  display: inline-block;
  font-weight: 500;
  color: var(--ink);
  padding: 0 0.12em;
  border-radius: 4px;
  background-image: linear-gradient(var(--hl), var(--hl));
  background-repeat: no-repeat;
  background-position: 0 68%;
  background-size: 0% 0.92em;
  animation: hlSweep 0.8s var(--ease) forwards;
  transition: background-size 0.35s var(--ease), color 0.35s var(--ease);
}
.hl-teal   { --hl: rgba(14, 124, 147, 0.26); animation-delay: 0.55s; }
.hl-coral  { --hl: rgba(242, 84, 92, 0.26);  animation-delay: 0.78s; }
.hl-orange { --hl: rgba(242, 161, 27, 0.34); animation-delay: 1.01s; }
.hero-sub .hl-teal ~ .hl-teal { animation-delay: 1.24s; }

.hl:hover { background-size: 100% 1.15em; }

@keyframes hlSweep {
  to { background-size: 100% 0.92em; }
}

/* ---------- Sections ---------- */
.section { padding: 110px 0; }
.section-alt { background: var(--paper-alt); }
#about { padding-top: 40px; }

.section-head {
  max-width: 680px;
  margin: 0 auto 56px;
  text-align: center;
}
.section-title {
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  letter-spacing: -0.01em;
  margin-bottom: 18px;
}
.slogan-style { color: var(--logo-teal); }
.section-lead {
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--coral);
  font-family: var(--font-display);
}
.link-arrow span { transition: transform 0.25s var(--ease); }
.link-arrow:hover span { transform: translateX(6px); }
/* Scoped to the home page blog cards so the "Back to the blog" links inside
   articles keep the default colour. */
.blog-card .link-arrow { color: var(--orange-dark); }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 72px;
  align-items: center;
}
.about-visual { position: relative; padding: 20px; }
.about-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-md);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.18);
}
/* Iridescent film: hues drift across the card and blend into whatever
   colour sits underneath, so each card shifts through its own spectrum. */
.about-card::after {
  content: '';
  position: absolute;
  inset: -20%;
  pointer-events: none;
  mix-blend-mode: overlay;
  background: linear-gradient(
    115deg,
    rgba(255, 90, 170, 0.00) 8%,
    rgba(255, 90, 170, 0.55) 20%,
    rgba(150, 110, 255, 0.55) 33%,
    rgba(80, 220, 255, 0.60) 46%,
    rgba(120, 255, 190, 0.55) 59%,
    rgba(255, 235, 120, 0.55) 72%,
    rgba(255, 130, 90, 0.45) 84%,
    rgba(255, 130, 90, 0.00) 95%
  );
  background-size: 300% 300%;
  animation: holoShift 11s linear infinite;
}
/* Fixed gloss over the top so the iridescence reads as a coated surface. */
.about-card::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.30) 0%,
    rgba(255, 255, 255, 0.08) 30%,
    rgba(255, 255, 255, 0) 55%,
    rgba(255, 255, 255, 0.06) 100%
  );
}
.about-card > * { position: relative; z-index: 2; }
.about-card-label {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 12px;
}
.about-card p { font-size: 1.05rem; font-family: var(--font-display); font-weight: 500; line-height: 1.5; }
.card-teal {
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  background-size: 200% 200%;
  animation: cardDrift 14s ease-in-out infinite;
  transform: rotate(-2deg);
  margin-bottom: -20px;
  margin-left: 10px;
  position: relative;
  z-index: 2;
}
.card-coral {
  background: linear-gradient(135deg, var(--coral), var(--coral-dark));
  background-size: 200% 200%;
  animation: cardDrift 14s ease-in-out infinite -7s;
  transform: rotate(2deg);
  margin-right: 10px;
  position: relative;
  z-index: 1;
}
.card-coral::after { animation-delay: -5.5s; }

@keyframes holoShift {
  0%   { background-position:   0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position:   0% 50%; }
}
@keyframes cardDrift {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

.about-card.pop-up {
  opacity: 0;
  transform: translateY(72px) scale(0.94);
  transition: opacity 0.6s ease, transform 0.75s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.45s var(--ease);
}
.about-card.pop-up.is-visible { opacity: 1; transform: translateY(0) scale(1); }
.card-teal.pop-up.is-visible { transform: translateY(0) scale(1) rotate(-2deg); }
.card-coral.pop-up.is-visible { transform: translateY(0) scale(1) rotate(2deg); }
.card-teal.pop-up.is-visible:hover  { transform: translateY(-8px) scale(1.03) rotate(-2deg); }
.card-coral.pop-up.is-visible:hover { transform: translateY(-8px) scale(1.03) rotate(2deg); }
.about-card.pop-up.is-visible:hover { box-shadow: var(--shadow-lg); }
.about-dot {
  position: absolute;
  bottom: -10px;
  right: 30px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  z-index: 3;
}

.section-lead { }
.value-list { margin: 32px 0; display: flex; flex-direction: column; gap: 22px; }
.value-list li { display: flex; gap: 16px; align-items: flex-start; }
.value-icon {
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--teal);
}
.value-icon-coral { background: var(--coral); }
.value-icon-orange { background: var(--orange); }
.value-list h3 { font-size: 1.05rem; margin-bottom: 4px; }
.value-list p { color: var(--ink-soft); font-size: 0.95rem; }

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 36px 30px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}
.service-icon svg { width: 24px; height: 24px; }
.icon-teal { background: var(--teal-light); color: var(--teal-dark); }
.icon-coral { background: var(--coral-light); color: var(--coral-dark); }
.icon-orange { background: #FCEED9; color: var(--orange-dark); }
.service-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.service-card p { color: var(--ink-soft); font-size: 0.95rem; }

/* ---------- Trusted brands ---------- */
.trusted-section { padding: 64px 0; }
.trusted-section .container { text-align: center; }
.trusted-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 48px;
}
.trusted-logo {
  height: 44px;
  width: auto;
  opacity: 0.85;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.trusted-logo:hover { opacity: 1; transform: translateY(-2px); }
.trusted-logo-badge { height: 116px; }

/* ---------- Blog ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.blog-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 36px 32px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin-bottom: 14px;
}
.blog-card-dot { color: var(--border); }
.blog-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 12px;
}
.blog-card h3 a { transition: color 0.2s ease; }
.blog-card h2 { font-size: 1.28rem; line-height: 1.3; margin-bottom: 12px; }
.blog-card h2 a::after { content: ''; position: absolute; inset: 0; }
.blog-card h3 a:hover { color: var(--teal); }
.blog-card p {
  color: var(--ink-soft);
  font-size: 0.98rem;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* ---------- Article page ---------- */
.article-hero {
  padding: 160px 0 40px;
  background: var(--paper-alt);
}
.article-hero-inner { max-width: 740px; margin: 0 auto; text-align: center; }
.back-link {
  display: inline-block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--teal-dark);
  margin-bottom: 24px;
}
.back-link:hover { color: var(--teal); }
.article-title {
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  letter-spacing: -0.01em;
  margin-bottom: 20px;
  color: var(--logo-teal);
}
.article-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.article-meta-author { font-weight: 600; color: var(--ink); }
.article-meta-dot { color: var(--border); }
/* Only set the vertical padding here: this element also carries .container,
   whose `padding: 0 24px` a shorthand would wipe out, leaving article text
   flush against the screen edge on mobile. */
.article-container { padding-top: 64px; padding-bottom: 100px; }
.article-body { max-width: 700px; margin: 0 auto; }
.article-body .article-lead {
  font-size: 1.15rem;
  color: var(--ink-soft);
  margin-bottom: 36px;
}
.article-body h2 {
  font-size: 1.4rem;
  margin: 44px 0 16px;
  color: var(--logo-teal);
}
/* Case study photo gallery */
.case-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin: 20px 0 32px;
}
.case-gallery figure {
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: var(--white);
}
.case-gallery img { width: 100%; height: auto; display: block; }
.case-gallery figcaption {
  padding: 14px 16px;
  font-size: 0.86rem;
  color: var(--ink-soft);
}
@media (max-width: 640px) {
  .case-gallery { grid-template-columns: 1fr; }
}

.article-body h3 {
  font-size: 1.12rem;
  font-weight: 600;
  margin: 30px 0 10px;
}
.article-body p { margin-bottom: 18px; font-size: 1.02rem; line-height: 1.75; }
.article-body .case-meta {
  margin-top: -8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--coral-dark);
}
.article-back { max-width: 700px; margin: 0 auto; }

/* ---------- CTA banner ---------- */
.section-cta {
  padding: 90px 0;
  background: linear-gradient(120deg, var(--teal-dark), var(--teal) 45%, var(--coral) 110%);
  position: relative;
  overflow: hidden;
}
.cta-inner { text-align: center; color: var(--white); position: relative; z-index: 1; }
.cta-inner h2 {
  color: var(--white);
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
  margin-bottom: 16px;
}
.cta-inner p { color: rgba(255,255,255,0.85); font-size: 1.05rem; margin-bottom: 32px; }
.section-cta .btn-primary {
  background: var(--white);
  color: var(--orange-dark);
  box-shadow: 0 12px 30px rgba(0,0,0,0.2);
}
.section-cta .btn-primary:hover { color: var(--orange); }

/* ---------- Hub pages (services, case studies, blog index) ---------- */
.hub-hero {
  padding: 165px 0 10px;
  background: var(--paper-alt);
}
.hub-hero-inner { max-width: 720px; margin: 0 auto; text-align: center; padding-bottom: 56px; }
.hub-hero .section-lead { margin-top: 18px; }
.hub-section { padding: 64px 0 100px; }

.hub-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.hub-card,
.case-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.hub-card { padding: 32px 28px; }
.hub-card:hover,
.case-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.hub-card h2,
.case-card h2 {
  font-size: 1.22rem;
  margin: 18px 0 10px;
}
.hub-card p,
.case-card p {
  color: var(--ink-soft);
  font-size: 0.96rem;
  margin-bottom: 20px;
}
/* the whole card is the click target, with one real link inside it for crawlers */
.hub-card h2 a::after,
.case-card h2 a::after {
  content: '';
  position: absolute;
  inset: 0;
}
.hub-card-cue {
  margin-top: auto;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--orange-dark);
}

.case-grid { display: grid; gap: 26px; }
.case-card { flex-direction: row; align-items: stretch; overflow: hidden; }
.case-card-visual {
  flex: 0 0 34%;
  background: var(--paper-alt);
}
.case-card-visual img { width: 100%; height: 100%; object-fit: cover; }
.case-card-visual-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}
.case-card-visual-logo img { width: auto; height: auto; max-width: 100%; object-fit: contain; }
.case-card-body { padding: 32px 34px; display: flex; flex-direction: column; }
.case-card-tag {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-dark);
  margin-bottom: 0;
}
.case-card h2 { margin-top: 8px; }

/* ---------- Section footer link ---------- */
.section-link-wrap { margin-top: 44px; text-align: center; }
.section-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 22px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--ink);
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease),
              transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.section-link span { transition: transform 0.25s var(--ease); }
.section-link:hover {
  border-color: var(--teal);
  color: var(--teal);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.section-link:hover span { transform: translateX(4px); }
.about-content .section-link-wrap { margin-top: 32px; text-align: left; }

/* ---------- Closing CTA banner ---------- */
.cta-banner {
  padding: 76px 0;
  background: linear-gradient(120deg, var(--teal-dark), var(--teal) 45%, var(--coral) 110%);
  position: relative;
  overflow: hidden;
}
.cta-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 44px;
  flex-wrap: wrap;
}
.cta-banner h2 {
  color: var(--white);
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
  line-height: 1.15;
  max-width: 660px;
}
.cta-banner .btn-primary {
  flex-shrink: 0;
  background: var(--white);
  color: var(--orange-dark);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}
.cta-banner .btn-primary:hover { color: var(--orange); }

/* ---------- Contact page ---------- */
.contact-page-section { padding: 170px 0 110px; }
.contact-page-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
  align-items: start;
}

/* The nav has no CTA button beside it on this page, so centre it explicitly
   instead of letting the header's space-between push it to the right. */
@media (min-width: 861px) {
  .contact-page .header-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
  }
  .contact-page .nav { justify-self: center; }
}

.contact-details { margin-top: 48px; }
.contact-details h2 { font-size: 1.1rem; margin-bottom: 10px; }
.contact-details p { color: var(--ink-soft); font-size: 0.98rem; }
.contact-details .contact-phone { margin-top: 12px; font-size: 1.02rem; }
.contact-link {
  color: var(--teal-dark);
  font-weight: 600;
  overflow-wrap: anywhere;
}
.contact-link:hover { color: var(--coral); }
.contact-social-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  margin-top: 26px;
  margin-bottom: 10px;
}
.contact-social { display: flex; gap: 12px; }
.contact-social-link {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  color: var(--ink-soft);
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.contact-social-link svg { width: 20px; height: 20px; }
.contact-social-link:hover {
  color: var(--teal);
  border-color: var(--teal);
  transform: translateY(-2px);
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
}

.contact-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.hp-field {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
/* The wrapper clips it, but the input still lays out at its natural width and
   pokes past the viewport. Keep it in the DOM for bots, just not overflowing. */
.hp-field input { width: 1px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
}
.required-mark { color: var(--coral); }
.form-field input,
.form-field select,
.form-field textarea {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  background: var(--paper);
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  resize: vertical;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 4px var(--teal-light);
}
.form-field input.field-invalid {
  border-color: var(--coral);
}
.form-field input.field-invalid:focus {
  box-shadow: 0 0 0 4px var(--coral-light);
}
.interest-fieldset {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border: 0;
  margin: 0;
  padding: 0;
}
.interest-fieldset legend {
  padding: 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
}
.interest-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.interest-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.85rem;
  color: var(--ink);
  cursor: pointer;
  user-select: none;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.interest-chip input {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
  pointer-events: none;
}
.interest-chip:hover { border-color: var(--teal); }
.interest-chip.is-active {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--white);
}
.interest-group.field-invalid .interest-chip { border-color: var(--coral); }
.field-error {
  font-size: 0.8rem;
  color: var(--coral-dark);
}
.field-error:empty {
  display: none;
}
.form-status {
  font-size: 0.9rem;
  font-weight: 600;
  min-height: 1.2em;
  color: var(--teal-dark);
}
.form-status.error { color: var(--coral-dark); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  padding: 88px 0 48px;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
  text-align: center;
}
.footer-brand { display: inline-flex; }
.footer-logo { width: 120px; height: 120px; object-fit: contain; }
.footer-social { display: flex; align-items: center; gap: 18px; }
.footer-social-link {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.25s var(--ease), background 0.25s var(--ease), transform 0.25s var(--ease);
}
.footer-social-link svg { width: 22px; height: 22px; }
.footer-social-link:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-3px);
}
.footer-copy { color: rgba(255, 255, 255, 0.45); font-size: 0.85rem; }

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; gap: 56px; }
  .about-visual { max-width: 460px; margin: 0 auto; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-page-grid { grid-template-columns: 1fr; gap: 44px; }
  .blog-grid { grid-template-columns: 1fr; }
  .hub-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .header-inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; }
  .brand { grid-column: 1; }
  .header-cta { grid-column: 2; justify-self: center; }
  .nav-toggle { grid-column: 3; justify-self: end; display: flex; }

  .nav { position: fixed; top: 0; right: -100%; height: 100vh;
    width: min(320px, 80vw);
    background: var(--white); box-shadow: var(--shadow-lg);
    padding: 100px 32px 32px;
    transition: right 0.4s var(--ease); z-index: 99;
    flex-direction: column; align-items: stretch; gap: 32px; }
  .nav.open { right: 0; }
  .nav-pill {
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
    border: none;
    border-radius: 0;
    padding: 0;
  }
  .nav-link { font-size: 1.1rem; }
  .nav-mobile-cta {
    display: flex;
    justify-content: center;
    background: transparent;
    color: var(--orange-dark);
    border: 2px solid var(--orange);
    box-shadow: none;
  }
  .nav-mobile-cta:hover { transform: none; box-shadow: none; }
}

@media (max-width: 720px) {
  .section { padding: 80px 0; }
  .services-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 28px; }
  .card-teal, .card-coral { transform: none; margin-left: 0; margin-right: 0; }
  .card-teal.pop-up.is-visible, .card-coral.pop-up.is-visible { transform: translateY(0) scale(1); }
  .blog-card { padding: 28px 24px; }
  .article-hero { padding: 140px 0 32px; }
  .contact-page-section { padding: 140px 0 80px; }
  .hub-grid { grid-template-columns: 1fr; }
  .hub-hero { padding: 140px 0 4px; }
  .case-card { flex-direction: column; }
  .case-card-visual { flex: none; padding: 28px; }
  .case-card-body { padding: 26px 24px; }
  .cta-banner { padding: 60px 0; }
  .cta-banner-inner { flex-direction: column; align-items: flex-start; gap: 28px; }
}

@media (max-width: 480px) {
  .hero { padding: 120px 0 60px; }
  .btn-lg { padding: 15px 28px; font-size: 0.95rem; }

  /* At phone widths the logo, CTA and toggle together nearly fill the row,
     so scale the header down and claw back the space it was taking. */
  .site-header { padding: 10px 0; }
  .site-header.scrolled { padding: 8px 0; }
  .header-inner { gap: 10px; }
  .brand-logo { height: 62px; }
  .header-cta { height: 42px; padding-left: 16px; padding-right: 16px; font-size: 0.78rem; }
  .nav-toggle { width: 36px; height: 36px; }

  .article-hero { padding: 104px 0 26px; }
  .hub-hero { padding: 104px 0 4px; }
  .contact-page-section { padding: 104px 0 70px; }
  .article-container { padding-top: 40px; padding-bottom: 68px; }
  .hub-section { padding: 40px 0 68px; }
  .article-body .article-lead { font-size: 1.06rem; }
  .case-gallery { gap: 16px; }
}
