/*
Theme Name: Tuesday Group
Theme URI: https://tuesday-group.co.uk
Author: Tuesday Group
Description: Brand launch 2026 theme for Tuesday Group. One partner for every site and every step — IT, connectivity and AV, end-to-end. Design system by Chapter II; layout inspired by modern story-led agency sites.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tuesdaygroup
Tags: one-column, custom-menu, custom-logo, featured-images, portfolio
*/

/* ------------------------------------------------------------------
   1. Fonts — Stack Sans Text (primary), Inter (support)
------------------------------------------------------------------ */
@font-face {
  font-family: 'Stack Sans';
  src: url('assets/fonts/StackSansText-Light.ttf') format('truetype');
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Stack Sans';
  src: url('assets/fonts/StackSansText-Regular.ttf') format('truetype');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Stack Sans';
  src: url('assets/fonts/StackSansText-Medium.ttf') format('truetype');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Stack Sans';
  src: url('assets/fonts/StackSansText-SemiBold.ttf') format('truetype');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Stack Sans';
  src: url('assets/fonts/StackSansText-Bold.ttf') format('truetype');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('assets/fonts/Inter-Variable.ttf') format('truetype-variations');
  font-weight: 100 900; font-style: normal; font-display: swap;
}

/* ------------------------------------------------------------------
   2. Brand tokens (Section 3.0 — Colour) + light surface
------------------------------------------------------------------ */
:root {
  --tg-navy: #1A1C31;      /* Group Navy — primary */
  --tg-blue: #0058A5;      /* Group Blue — accent */
  --tg-black: #020A0A;     /* Group Black — supporting */
  --tg-white: #F5F5FC;     /* Group White — supporting */
  --tg-pattern-blue: #577ABC;

  --bg: #ECE8E2;           /* light warm off-white surface */
  --bg-soft: #E3DED6;      /* slightly deeper shade for bands */
  --ink: var(--tg-navy);
  --ink-70: rgba(26, 28, 49, .7);
  --ink-40: rgba(26, 28, 49, .4);
  --ink-10: rgba(26, 28, 49, .1);
  --white-10: rgba(245, 245, 252, .1);
  --white-40: rgba(245, 245, 252, .4);
  --white-70: rgba(245, 245, 252, .7);

  --font-display: 'Stack Sans', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Inter', 'Helvetica Neue', Arial, sans-serif;

  --gutter: clamp(1.25rem, 4vw, 4rem);
  --section: clamp(4rem, 10vw, 9rem);
  --radius: 1rem;
  --ease: cubic-bezier(.22, 1, .36, 1);

  /* Curved step section transition */
  --step-h: clamp(60px, 9vw, 110px);
  --step-r: clamp(28px, 4vw, 56px);
  /* tab width follows the 1440px content column, so on wide screens it can't slide over headings */
  --step-w: min(62%, calc(50% + 172.8px));
}

/* ------------------------------------------------------------------
   3. Reset / base
------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
[id] { scroll-margin-top: clamp(6rem, 10vw, 8rem); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
p a, .entry-content a { color: var(--ink); text-decoration: underline; text-underline-offset: .2em; text-decoration-color: var(--tg-blue); }
p a:hover, .entry-content a:hover { text-decoration-color: var(--ink); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 300;
  letter-spacing: -0.02em; /* tracking -10, per guidelines */
  line-height: 1.05;
  margin: 0 0 .5em;
  color: var(--ink);
}
h1, .display-xl { font-size: clamp(2.75rem, 8vw, 7rem); }
h2, .display-lg { font-size: clamp(2rem, 5vw, 4rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h4 { font-size: 1.375rem; font-weight: 400; }

.accent { color: var(--tg-blue); }
.eyebrow {
  font-family: var(--font-body);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--tg-blue);
  display: block;
  margin-bottom: 1.25rem;
}
.lede { font-size: clamp(1.125rem, 1.8vw, 1.5rem); line-height: 1.5; color: var(--ink-70); max-width: 46ch; }

.wrap { width: min(1440px, 100% - var(--gutter) * 2); margin-inline: auto; }
.section { padding-block: var(--section); position: relative; }
.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
  height: 1px; width: 1px; overflow: hidden; position: absolute !important;
}
.skip-link:focus {
  clip: auto; clip-path: none; width: auto; height: auto;
  position: fixed; top: 1rem; left: 1rem; z-index: 999;
  background: var(--tg-blue); color: var(--tg-white); padding: .75rem 1.25rem; border-radius: .5rem;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .6em;
  background: var(--tg-blue); color: var(--tg-white);
  font-family: var(--font-body); font-weight: 600; font-size: 1rem;
  padding: .9em 1.8em; border: 0; border-radius: 100px; cursor: pointer;
  transition: transform .3s var(--ease), background .3s;
}
.btn::after { content: '\2192'; transition: transform .3s var(--ease); }
.btn:hover { background: #0a6bc2; transform: translateY(-2px); }
.btn:hover::after { transform: translateX(4px); }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink-40); }
.btn--ghost:hover { background: var(--ink-10); }
.values .btn--ghost { color: var(--tg-white); box-shadow: inset 0 0 0 1.5px var(--white-40); }

/* ------------------------------------------------------------------
   4. Header
------------------------------------------------------------------ */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  padding: 1.25rem var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
  /* half-strength wash on load so the logo reads over the video,
     firming up to the full frosted bar once scrolling starts */
  background: rgba(236, 232, 226, .45);
  backdrop-filter: blur(6px);
  transition: background .4s, padding .4s, backdrop-filter .4s;
}
.site-header.is-scrolled { background: rgba(236, 232, 226, .82); backdrop-filter: blur(12px); padding-block: .75rem; }
.site-logo img { height: clamp(3.125rem, 5vw, 4.0625rem); width: auto; }
.site-nav ul { display: flex; gap: 2.5rem; list-style: none; margin: 0; padding: 0; }
.site-nav a {
  font-weight: 500; font-size: .9375rem; color: var(--ink);
  position: relative; padding-block: .25rem;
}
.site-nav a::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%;
  background: var(--tg-blue); transform: scaleX(0); transform-origin: right;
  transition: transform .35s var(--ease);
}
.site-nav a:hover::after, .site-nav .current-menu-item > a::after { transform: scaleX(1); transform-origin: left; }
/* Tuesday Blue full stop pops in at the end of a nav link on hover */
.site-nav a::before {
  content: ''; position: absolute; right: -.55em; bottom: .62em;
  width: .32em; height: .32em; border-radius: 50%;
  background: var(--tg-blue);
  transform: scale(0); transform-origin: center;
  transition: transform .35s var(--ease);
}
.site-nav a:hover::before { transform: scale(1); }
.nav-cta { margin-left: 1rem; }

/* Dropdown (e.g. Services → Tuesday Connect) */
.site-nav li { position: relative; }
.site-nav .menu-item-has-children { padding-right: 1em; }
.site-nav .menu-item-has-children::after {
  content: '\25BE'; position: absolute; right: 0; top: 50%;
  transform: translateY(-50%); font-size: .65em; opacity: .6; pointer-events: none;
}
.site-nav .sub-menu {
  position: absolute; top: 100%; left: 50%;
  transform: translate(-50%, 10px);
  display: block; min-width: 200px;
  background: var(--tg-white); border: 1px solid var(--ink-10);
  border-radius: .75rem; padding: .5rem;
  box-shadow: 0 20px 40px -20px rgba(26, 28, 49, .35);
  opacity: 0; visibility: hidden;
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
  z-index: 20;
}
.site-nav li:hover > .sub-menu,
.site-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translate(-50%, 4px); }
.site-nav .sub-menu li { padding: 0; }
.site-nav .sub-menu a { display: block; padding: .55rem .9rem; border-radius: .5rem; color: var(--ink); }
.site-nav .sub-menu a::after { content: none; }
.site-nav .sub-menu a:hover { background: var(--ink-10); }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer; z-index: 110;
  width: 44px; height: 44px; position: relative;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ''; position: absolute; left: 8px; width: 28px; height: 2px;
  background: var(--ink); transition: transform .3s var(--ease), top .3s, background .3s;
}
.nav-toggle span { top: 21px; }
.nav-toggle span::before { left: 0; top: -8px; }
.nav-toggle span::after { left: 0; top: 8px; }
body.nav-open .nav-toggle span { background: transparent; }
body.nav-open .nav-toggle span::before { top: 0; transform: rotate(45deg); background: var(--tg-white); }
body.nav-open .nav-toggle span::after { top: 0; transform: rotate(-45deg); background: var(--tg-white); }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-cta { margin: 1rem 0 0; }
  body.nav-open { overflow: hidden; }
}

/* ------------------------------------------------------------------
   5. Hero — statement right, intro left (Stepping Stone style)
------------------------------------------------------------------ */
.hero {
  min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--section) + 4rem) 0 var(--section);
  overflow: hidden;
}
/* Background video behind the hero text, washed with the page colour */
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg video { width: 100%; height: 100%; object-fit: cover; }
.hero-bg::after { content: ''; position: absolute; inset: 0; background: rgba(236, 232, 226, .8); }
.hero .wrap { position: relative; z-index: 1; }

.hero-grid {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  width: 100%;
}
.hero-title { order: 1; text-align: left; }
.hero-copy { order: 2; align-self: end; justify-self: end; }
.hero h1 { margin-bottom: 0; color: var(--ink); font-size: clamp(3.75rem, 11.5vw, 10.5rem); }
.hero h1 .line { display: block; }
.hero .lede { margin-bottom: 2.5rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-title { order: 1; text-align: left; }
  .hero-copy { order: 2; }
}

/* Round full stops in Tuesday Blue (replaces the font's square period) */
.dot {
  display: inline-block;
  width: .14em; height: .14em;
  border-radius: 50%;
  background: var(--tg-blue); /* Tuesday Group Blue full stops */
  margin-left: .05em;
}

/* The Tuesday 't' — letterform from "tuesday" in the logo, used in "operate" */
.tg-t {
  display: inline-block;
  height: .7em; width: auto;
  margin: 0 .02em;
  vertical-align: baseline;
}

/* Reveal animation */
[data-reveal] { opacity: 0; transform: translateY(2rem); transition: opacity .8s var(--ease), transform .8s var(--ease); }
[data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none !important; }
}

/* ------------------------------------------------------------------
   5.5 Curved step transition between sections
   The previous section's colour dips into the next with a rounded
   tab and a concave fillet. Add .has-curve-step to the section and
   place <div class="curve-step" aria-hidden="true"></div> inside it.
   Use .curve-step--right to flip sides; set --prev for the colour
   of the section above (defaults to the page background).
------------------------------------------------------------------ */
.has-curve-step { position: relative; padding-top: calc(var(--section) + var(--step-h)); }
.curve-step {
  position: absolute; top: 0; left: 0; right: 0;
  height: var(--step-h);
  pointer-events: none;
}
.curve-step::before {
  content: ''; position: absolute; top: 0; left: 0;
  width: var(--step-w); height: 100%;
  background: var(--prev, var(--bg));
  border-radius: 0 0 var(--step-r) 0;
}
.curve-step::after {
  content: ''; position: absolute; top: 0; left: var(--step-w);
  width: var(--step-r); height: var(--step-r);
  background: radial-gradient(circle at 100% 100%, rgba(0,0,0,0) calc(var(--step-r) - .5px), var(--prev, var(--bg)) var(--step-r));
}
.curve-step--right::before {
  left: auto; right: 0;
  border-radius: 0 0 0 var(--step-r);
}
.curve-step--right::after {
  left: auto; right: var(--step-w);
  background: radial-gradient(circle at 0% 100%, rgba(0,0,0,0) calc(var(--step-r) - .5px), var(--prev, var(--bg)) var(--step-r));
}
/* Section headers ride up so the large heading sits level with the curve's lowest point */
#who-we-are.has-curve-step,
#about-us.has-curve-step,
#founders-story.has-curve-step { padding-top: max(1rem, calc(var(--step-h) - 2.75rem + 20mm)); }
#what-we-do.has-curve-step--up { padding-top: max(1rem, calc(var(--step-h) - 2.75rem + 20mm)); }
/* white full stop on the blue band heading */
#about-us h2 .dot { background: var(--tg-white); }

.prev-soft { --prev: var(--bg-soft); }
.prev-navy { --prev: var(--tg-navy); }
.prev-blue { --prev: var(--tg-blue); }

/* Upward variant: the NEXT section's colour rises over the media above it
   (used under video heroes so the video shows through the notch). */
.has-curve-step--up { position: relative; }
.curve-step--up {
  position: absolute; top: calc(-1 * var(--step-h)); left: 0; right: 0;
  height: var(--step-h);
  pointer-events: none;
}
.curve-step--up::before {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: var(--step-w); height: 100%;
  background: var(--next, var(--bg-soft));
  border-radius: 0 var(--step-r) 0 0;
}
.curve-step--up::after {
  content: ''; position: absolute; bottom: 0; left: var(--step-w);
  width: var(--step-r); height: var(--step-r);
  background: radial-gradient(circle at 100% 0%, rgba(0,0,0,0) calc(var(--step-r) - .5px), var(--next, var(--bg-soft)) var(--step-r));
}


/* Showreel — full-bleed video band under the hero; the page background
   dips into it via the curve step, Stepping Stone style. */
.showreel { position: relative; background: var(--tg-navy); }
.showreel.has-curve-step { padding-top: 0; }
.showreel-media {
  display: block; width: 100%;
  height: min(92vh, 720px);
  object-fit: cover;
}

/* ------------------------------------------------------------------
   6. Statement / services
------------------------------------------------------------------ */
.statement { background: var(--bg-soft); }
.statement h2 { max-width: 24ch; }
.statement .lede { max-width: 60ch; }

.services-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem; margin-top: 3.5rem;
}
/* Capped variant: never more than 3 per row */
.services-grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1000px) { .services-grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .services-grid--3 { grid-template-columns: 1fr; } }
.service-card {
  background: var(--tg-white); border: 1px solid var(--ink-10);
  border-radius: var(--radius); padding: 0 0 1.5rem;
  transition: transform .4s var(--ease), border-color .4s;
  position: relative; overflow: hidden;
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--tg-pattern-blue);
  box-shadow: 0 28px 56px -24px rgba(26, 28, 49, .35);
}
.service-card img { transition: transform .8s var(--ease); }
.service-card:hover img { transform: scale(1.06); }
.service-card img {
  width: 100%; aspect-ratio: 3 / 2; object-fit: cover;
  margin-bottom: 1.25rem;
}
.service-card h3 {
  color: var(--ink); margin: 0; font-weight: 400;
  font-size: 1.375rem; padding: 0 1.5rem;
}
.service-card p { color: var(--ink-70); margin: .5rem 0 0; padding: 0 1.5rem; }
.service-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 0 1.5rem;
}
.service-head h3 { padding: 0; }
.service-toggle {
  flex: none; width: 2.25rem; height: 2.25rem;
  border: 1.5px solid var(--ink-40); border-radius: 50%;
  background: none; cursor: pointer; position: relative;
  transition: border-color .3s, background .3s;
}
.service-toggle::before, .service-toggle::after {
  content: ''; position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%); background: var(--ink);
  transition: transform .3s var(--ease);
}
.service-toggle::before { width: 12px; height: 2px; }
.service-toggle::after { width: 2px; height: 12px; }
.service-toggle[aria-expanded="true"]::after { transform: translate(-50%, -50%) scaleY(0); }
.service-toggle:hover { border-color: var(--tg-blue); background: var(--ink-10); }
.service-desc {
  position: absolute; top: 0; left: 0; right: 0;
  aspect-ratio: 3 / 2; margin: 0; padding: clamp(1rem, 3vw, 1.75rem);
  display: flex; align-items: center; overflow-y: auto;
  background: rgba(26, 28, 49, .94);
  opacity: 0; visibility: hidden; transform: translateY(14px);
  transition: opacity .45s var(--ease), transform .45s var(--ease), visibility .45s;
  z-index: 1;
}
.service-card.is-open .service-desc { opacity: 1; visibility: visible; transform: none; }
.service-desc p {
  margin: 0; padding: 0; background: none;
  font-size: .9375rem; line-height: 1.55; color: var(--tg-white);
}
.service-card.is-open .service-toggle { border-color: var(--tg-blue); background: var(--ink-10); }
/* Decorative parallax circles behind What we do */
.orbs {
  position: absolute; inset: 0; overflow: hidden;
  pointer-events: none; z-index: 0;
  /* fade circles out before they reach the section edge — no hard cuts */
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 14%, #000 86%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 14%, #000 86%, transparent);
}
.orbs ~ .wrap { position: relative; z-index: 1; }
.orb {
  position: absolute; border-radius: 50%; aspect-ratio: 1;
  background: var(--tg-blue); opacity: .07;
  will-change: transform;
}
.orb--ring {
  background: transparent;
  border: clamp(2px, .35vw, 5px) solid var(--tg-blue);
  opacity: .14;
}
.orb-1 { width: clamp(340px, 42vw, 680px); top: -6%; right: -10%; }
.orb-2 { width: clamp(220px, 28vw, 460px); top: 36%; left: -9%; }
.orb-3 { width: clamp(140px, 18vw, 300px); bottom: 5%; right: 24%; }

/* Variants so the circles land differently section to section */
.orbs--flip .orb-1 { right: auto; left: -12%; top: -10%; }
.orbs--flip .orb-2 { left: auto; right: -10%; top: 32%; }
.orbs--flip .orb-3 { right: auto; left: 18%; bottom: 4%; }
.orbs--light .orb { background: var(--tg-white); opacity: .06; }
.orbs--light .orb--ring { background: transparent; border-color: var(--tg-white); opacity: .12; }

/* BYD-style service selector: pill tabs + single panel */
/* space above the Our services heading that precedes the tabs */
p + h2, .service-panels + h2 { margin-top: 8rem; }
.statement h2:has(+ .service-tabs) { margin-top: 8rem; }
.service-tabs {
  display: flex; gap: .25rem; align-items: center;
  background: var(--ink-10); border-radius: 100px; padding: .3rem;
  width: max-content; max-width: 100%; margin: 1.5rem auto 1.75rem;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.service-tabs::-webkit-scrollbar { display: none; }
.service-tab {
  flex: none; border: 0; cursor: pointer;
  background: transparent; color: var(--ink);
  font-family: var(--font-body); font-weight: 600;
  font-size: clamp(.8125rem, 1.1vw, .9375rem); letter-spacing: .01em;
  padding: .85em 1.6em; border-radius: 100px; white-space: nowrap;
  transition: background .3s, color .3s;
}
.service-tab:hover { background: rgba(26, 28, 49, .08); }
.service-tab[aria-selected="true"] { background: var(--tg-blue); color: var(--tg-white); }
.service-panel { display: none; }
.service-panel.is-active {
  display: block; position: relative;
  border-radius: calc(var(--radius) * 1.5); overflow: hidden;
  animation: service-panel-in .5s var(--ease);
}
.service-panel img { width: 100%; height: auto; display: block; }
.service-panel p {
  position: absolute; left: 0; right: 0; top: 0;
  margin: 0; padding: clamp(1.25rem, 2.5vw, 2rem) clamp(1.5rem, 4vw, 3rem);
  text-align: center; color: var(--ink);
  font-size: clamp(1rem, 1.4vw, 1.1875rem); line-height: 1.6;
  background: rgba(236, 232, 226, .8);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
@keyframes service-panel-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
@media (max-width: 720px) {
  .service-tabs { justify-content: flex-start; margin-inline: 0; }
}

.service-card--text { padding: 2.25rem 2rem 2rem; }
.service-card--text h3, .service-card--text p { padding: 0; }

/* ------------------------------------------------------------------
   7. Work grid (case studies)
------------------------------------------------------------------ */
.work-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1.5rem; margin-top: 3rem; }
.work-card {
  grid-column: span 6; position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 10;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.work-card:nth-child(3n) { grid-column: span 12; aspect-ratio: 21 / 9; }
@media (max-width: 760px) { .work-card, .work-card:nth-child(3n) { grid-column: span 12; aspect-ratio: 4 / 3; } }
.work-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
/* Pop on hover: card lifts and scales, image zooms beneath */
.work-card:hover {
  transform: scale(1.025) translateY(-4px);
  box-shadow: 0 28px 56px -24px rgba(26, 28, 49, .45);
  z-index: 2;
}
.work-card:hover img { transform: scale(1.07); }
.work-card::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(2,10,10,0) 40%, rgba(2,10,10,.75));
  mix-blend-mode: multiply;
}
.work-card .work-meta {
  position: absolute; inset: auto 0 0; z-index: 2; padding: 1.75rem;
  display: flex; flex-direction: column; gap: .25rem; color: var(--tg-white);
}
.work-card .work-client { font-size: .8125rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #9DB8E8; }
.work-card .work-title { font-family: var(--font-display); font-size: clamp(1.375rem, 2.5vw, 2rem); font-weight: 400; letter-spacing: -0.01em; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.section-head h2 { margin-bottom: 0; }

/* ------------------------------------------------------------------
   8. Values band
------------------------------------------------------------------ */
.values { background: var(--tg-blue); color: var(--tg-white); padding-bottom: calc(var(--section) + 4rem); }
.values h2, .values .lede { color: var(--tg-white); }
.values p { color: var(--white-70); }
.values .split { margin: 2.75rem 0 3.5rem; }
.values .split + .lede { margin-top: 0; }
.values .eyebrow { color: var(--tg-white); opacity: .8; }
.values-grid { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.5rem; }
.value-chip {
  font-family: var(--font-display); font-size: clamp(1.125rem, 2vw, 1.5rem); font-weight: 400;
  padding: .6em 1.4em; border: 1.5px solid rgba(245,245,252,.45); border-radius: 100px;
  transition: background .3s, border-color .3s;
}
.value-chip:hover { background: rgba(245,245,252,.12); border-color: var(--tg-white); }

/* ------------------------------------------------------------------
   9. Marquee
------------------------------------------------------------------ */
.marquee { overflow: hidden; padding-block: clamp(2rem, 5vw, 4rem); }
.marquee-track { display: flex; gap: 3rem; width: max-content; animation: marquee 28s linear infinite; }
.marquee-track span {
  font-family: var(--font-display); font-weight: 300; white-space: nowrap;
  font-size: clamp(2.5rem, 7vw, 6rem); letter-spacing: -0.02em; color: var(--ink);
}
@keyframes marquee { to { transform: translateX(-50%); } }

.clients-head {
  padding-top: 0;
  /* Tuesday Blue tab rises over the section above — 1.5x */
  --next: var(--tg-blue);
  background: var(--tg-blue);
  --step-h: calc(clamp(60px, 9vw, 110px) * 1.5);
  --step-r: calc(clamp(28px, 4vw, 56px) * 1.5);
}
.clients-head .wrap { position: relative; }
/* heading lives at the top of the rising beige tab */
.clients-head h2 {
  position: absolute; left: 0;
  top: calc(-1 * var(--step-h) + clamp(.9rem, 1.8vw, 1.4rem));
  margin: 0;
}
.clients-head h2 { margin-bottom: 0; color: var(--tg-white); }
.clients-head .dot { background: var(--tg-white); }
.marquee--clients { padding-block: clamp(2.25rem, 4.5vw, 4rem); background: var(--tg-blue); }

/* Client logo carousel (front page) — text wordmarks now; swap each span
   for <img class="client-logo" src="..."> when official transparent
   PNG/SVG logo files are added to assets/img/clients/. */
.marquee--clients .marquee-track { gap: clamp(2.5rem, 6vw, 5.5rem); animation-duration: 36s; align-items: center; }
.marquee--clients .client-name {
  font-family: var(--font-display); font-weight: 400; white-space: nowrap;
  font-size: clamp(1.5rem, 3.2vw, 2.75rem); letter-spacing: -0.01em;
  color: var(--tg-white); opacity: .9;
}
.marquee--clients .client-logo { height: clamp(2rem, 4vw, 3.25rem); width: auto; opacity: .85; }

/* ------------------------------------------------------------------
   10. Footer / big CTA — the one navy block on the site
------------------------------------------------------------------ */
.site-footer {
  background: var(--bg-soft); color: var(--ink); position: relative; overflow: hidden;
  /* common right column: pattern, contact details and rights all share this left edge */
  --footer-col: clamp(220px, 26vw, 420px);
}
.site-footer h2 { color: var(--ink); }
.site-footer .lede { color: var(--ink-70); }
.site-footer::before {
  content: ''; position: absolute; top: -1rem;
  right: max(var(--gutter), calc((100% - 1440px) / 2));
  width: var(--footer-col); aspect-ratio: 1;
  background: url('assets/img/pattern-blue.svg') left center / contain no-repeat; opacity: .5;
}

.site-footer .wrap {
  display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  align-items: end; column-gap: 3rem;
}
.footer-cta { padding: 0; }
.footer-cta h2 { max-width: 24ch; }
.footer-cta h2 .line { display: block; }
/* arrow restored on the footer CTA button */
.footer-contact {
  display: flex; flex-direction: column; gap: 1.5rem;
  justify-self: end; align-self: start; text-align: left;
  width: var(--footer-col);
  margin-top: calc(var(--step-h) + clamp(1rem, 2.5vw, 2rem));
  position: relative; z-index: 1;
}
.footer-contact h5 {
  font-family: var(--font-body); font-size: .8125rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--ink); margin-bottom: .75rem;
}
.footer-contact a, .footer-contact p { color: var(--ink); display: block; margin: 0 0 .35rem; text-decoration: none; }
.footer-contact a:hover { color: var(--tg-blue); }
.footer-bottom {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 2rem;
  margin-top: clamp(2rem, 4vw, 3rem); padding: 0 0 .5rem;
  font-size: .875rem; color: var(--ink-70);
}
.footer-legal { display: flex; gap: 1.75rem; }
.footer-legal a {
  color: var(--ink-70); transition: color .3s;
  position: relative; padding-block: .25rem; cursor: pointer;
}
.footer-legal a::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%;
  background: var(--tg-blue); transform: scaleX(0); transform-origin: right;
  transition: transform .35s var(--ease);
}
.footer-legal a:hover::after { transform: scaleX(1); transform-origin: left; }
.footer-legal a::before {
  content: ''; position: absolute; right: -.55em; bottom: .62em;
  width: .32em; height: .32em; border-radius: 50%;
  background: var(--tg-blue);
  transform: scale(0); transform-origin: center;
  transition: transform .35s var(--ease);
}
.footer-legal a:hover::before { transform: scale(1); }
.footer-wordmark { justify-self: center; position: relative; padding-bottom: .5rem; }
.footer-wordmark::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%;
  background: var(--tg-blue); transform: scaleX(0); transform-origin: right;
  transition: transform .35s var(--ease);
}
.footer-wordmark:hover::after { transform: scaleX(1); transform-origin: left; }
.footer-wordmark img { height: clamp(2.25rem, 4.5vw, 4rem); width: auto; opacity: .95; }
.footer-rights {
  justify-self: end; display: inline-flex; align-items: center; gap: .75rem;
  width: var(--footer-col); justify-content: flex-start;
}
.footer-rights img { width: 1.75rem; height: 1.75rem; opacity: .9; }
.footer-bottom a:hover { color: var(--ink); }
@media (max-width: 860px) {
  .site-footer .wrap { grid-template-columns: 1fr; }
  .footer-contact { justify-self: start; margin-top: 2rem; }
  .footer-bottom { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 1.5rem; }
  .footer-legal { justify-content: center; }
  .footer-wordmark, .footer-rights { justify-self: center; }
  .footer-rights { flex-direction: column; justify-content: center; width: auto; max-width: 34ch; }
}

/* ------------------------------------------------------------------
   11. Inner pages / content
------------------------------------------------------------------ */
.page-hero { padding: calc(var(--section) + 5rem) 0 var(--section); position: relative; overflow: hidden; }
.page-hero::after {
  content: ''; position: absolute; top: 15%; right: calc(-1 * var(--gutter) / 2); bottom: 15%;
  width: clamp(100px, 14vw, 220px);
  background: url('assets/img/pattern-blue-tall.svg') center / contain no-repeat; opacity: .55;
}
.entry-content { max-width: 72ch; }
.entry-content h2, .entry-content h3 { margin-top: 2em; }
.entry-content img { border-radius: var(--radius); }
.entry-content blockquote {
  margin: 2.5rem 0; padding-left: 1.5rem; border-left: 3px solid var(--tg-blue);
  font-family: var(--font-display); font-size: 1.375rem; font-weight: 300;
}
.wp-block-image img { border-radius: var(--radius); }
.post-thumbnail-hero { border-radius: var(--radius); overflow: hidden; margin-bottom: 3rem; }

/* Legal pages (Terms & Conditions, Privacy Policy): numbered clauses + tables */
.entry-content:has(.legal-num, .legal-table) { font-size: .9375rem; line-height: 1.65; }
.entry-content:has(.legal-num, .legal-table) h2 { font-size: clamp(1.375rem, 2.5vw, 1.75rem); margin: 3rem 0 1rem; }
.entry-content:has(.legal-num, .legal-table) h3 { font-size: 1.125rem; margin: 2rem 0 .75rem; }
.entry-content h2 .legal-num { color: var(--tg-blue); margin-right: .25em; }
.legal-clause { display: grid; grid-template-columns: 3.25rem 1fr; gap: 0 .5rem; }
.legal-clause .legal-num { font-weight: 600; font-variant-numeric: tabular-nums; }
.legal-clause--l2 { margin-left: 3.75rem; grid-template-columns: 3.75rem 1fr; }
.legal-clause--l3 { margin-left: 7.5rem; grid-template-columns: 2rem 1fr; }
.legal-clause--l2 + p:not(.legal-clause), .legal-clause--l3 + p:not(.legal-clause) { margin-left: 3.75rem; }
.legal-table { margin: 1.5rem 0 2rem; overflow-x: auto; }
.legal-table table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.legal-table th, .legal-table td { text-align: left; vertical-align: top; padding: .75rem 1rem; border-bottom: 1px solid var(--ink-10); }
.legal-table th { font-weight: 600; border-bottom-color: var(--ink-40); }
@media (max-width: 640px) {
  .legal-clause, .legal-clause--l2, .legal-clause--l3 { grid-template-columns: 1fr; }
  .legal-clause--l2, .legal-clause--l3, .legal-clause--l2 + p:not(.legal-clause), .legal-clause--l3 + p:not(.legal-clause) { margin-left: 1rem; }
}
.post-thumbnail-hero img { width: 100%; max-height: 70vh; object-fit: cover; }
.back-link { display: inline-flex; align-items: center; gap: .5em; font-weight: 600; color: var(--tg-blue); margin-bottom: 2rem; }
.back-link::before { content: '\2190'; }

/* Two-column split (About page etc.) */
.split {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem); align-items: center;
}
.split img { width: 100%; border-radius: var(--radius); object-fit: cover; }
.split img.portrait { aspect-ratio: 1 / 1; max-width: 480px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* Blog / archive list */
.post-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 2rem; margin-top: 3rem; }
.post-card { background: var(--tg-white); border: 1px solid var(--ink-10); border-radius: var(--radius); overflow: hidden; transition: transform .4s var(--ease); }
.post-card:hover { transform: translateY(-4px); }
.post-card img { aspect-ratio: 16 / 10; width: 100%; object-fit: cover; }
.post-card-body { padding: 1.75rem; }
.post-card h3 { font-size: 1.375rem; font-weight: 400; }
.post-card time { font-size: .8125rem; color: var(--ink-40); }

/* 404 */
.error-404 { min-height: 70vh; display: grid; place-content: center; text-align: center; }

/* Forms (Contact Form 7 / native friendly) */
input[type="text"], input[type="email"], input[type="tel"], textarea, select {
  width: 100%; background: #FFFFFF; border: 1px solid var(--ink-10);
  border-radius: .5rem; color: var(--ink); font: inherit; padding: .9em 1.1em;
}
input:focus, textarea:focus { outline: 2px solid var(--tg-blue); border-color: transparent; }
label { font-weight: 500; font-size: .9375rem; }

/* Alignment / WP core classes */
.alignwide { width: min(1200px, 100%); }
.alignfull { width: 100vw; margin-left: calc(50% - 50vw); }
.wp-caption, .wp-caption-text { max-width: 100%; font-size: .875rem; color: var(--ink-40); }
.sticky, .bypostauthor, .gallery-caption { /* WP required classes */ }

/* Continuous carousel arrows on the service panel */
.service-panels { position: relative; }
.service-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 2; width: 2.75rem; height: 2.75rem; border-radius: 50%;
  border: 0; cursor: pointer;
  background: rgba(236, 232, 226, .85); color: var(--ink);
  font-size: 1.6rem; line-height: 1; padding: 0 0 .15em;
  display: grid; place-items: center;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: background .3s, color .3s, transform .3s var(--ease);
}
.service-arrow:hover { background: var(--tg-blue); color: #FFFFFF; transform: translateY(-50%) scale(1.08); }
.service-arrow--prev { left: 1rem; }
.service-arrow--next { right: 1rem; }

/* ------------------------------------------------------------------
   Contact popup: Tuesday Blue circle form
------------------------------------------------------------------ */
.contact-modal {
  position: fixed; inset: 0; z-index: 300;
  display: flex; align-items: center; justify-content: center;
  background: rgba(2, 10, 10, .55);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  padding: 1rem;
}
.contact-modal[hidden] { display: none; }
.contact-circle {
  position: relative;
  width: min(94vw, 660px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 30% 22%, #1168b8, var(--tg-blue) 62%);
  color: var(--tg-white);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: clamp(2rem, 8vw, 4.5rem);
  box-shadow: 0 40px 90px -30px rgba(2, 10, 10, .6);
  animation: contact-pop .45s var(--ease);
}
@keyframes contact-pop { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: none; } }
.contact-circle h2 { color: var(--tg-white); font-size: clamp(1.75rem, 4vw, 2.75rem); margin-bottom: 1.25rem; }
.contact-circle .dot { background: var(--tg-white); }
.contact-form { width: min(74%, 400px); }
.cf-field { display: block; text-align: left; margin-bottom: 1.1rem; }
.cf-field span {
  display: block; font-size: .6875rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--white-70); margin-bottom: .15rem;
}
.cf-field input, .cf-field textarea {
  width: 100%; background: transparent; border: 0;
  border-bottom: 1px solid var(--white-40);
  color: var(--tg-white); font-family: var(--font-body); font-size: 1rem;
  padding: .3rem 0; border-radius: 0; resize: none;
  transition: border-color .3s;
}
.cf-field input:focus, .cf-field textarea:focus { outline: none; border-bottom-color: var(--tg-white); }
.contact-submit {
  background: var(--tg-white); color: var(--tg-blue);
  margin-top: .5rem;
}
.contact-submit:hover { background: #FFFFFF; }
.contact-submit::after { content: none; }
.contact-close {
  position: absolute; top: clamp(1.5rem, 6vw, 3.25rem); right: clamp(2.5rem, 10vw, 5.5rem);
  width: 2.5rem; height: 2.5rem; border-radius: 50%;
  border: 1.5px solid var(--white-40); background: transparent;
  color: var(--tg-white); font-size: 1.4rem; line-height: 1; cursor: pointer;
  display: grid; place-items: center; padding: 0 0 .1em;
  transition: background .3s, border-color .3s;
}
.contact-close:hover { background: var(--white-10); border-color: var(--tg-white); }
.contact-sent { color: var(--ink); font-weight: 600; margin-top: 1rem; }
/* Contact heading sits up beside the curved tab */
.site-footer.has-curve-step { padding-top: clamp(1.75rem, 4vw, 3rem); }
@media (max-width: 560px) {
  .contact-circle { aspect-ratio: auto; border-radius: 2rem; width: 100%; padding: 2.5rem 1.5rem; }
  .contact-form { width: 100%; }
  .contact-close { top: 1rem; right: 1rem; }
}
body.contact-open { overflow: hidden; }

/* ------------------------------------------------------------------
   Luxury motion pass: slower, silkier entrances (no layout changes)
------------------------------------------------------------------ */
[data-reveal] {
  opacity: 0; transform: translateY(1.75rem);
  transition: opacity 1.05s var(--ease), transform 1.05s var(--ease);
}
[data-reveal].is-visible { opacity: 1; transform: none; }


/* images settle into place with a gentle scale */
img[data-reveal] { transform: translateY(1.75rem) scale(1.045); }
img[data-reveal].is-visible { transform: none; }

/* hero lines rise one after another */
.hero-title .line {
  display: block; opacity: 0; transform: translateY(2.25rem);
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
}
.hero-title.is-visible .line { opacity: 1; transform: none; }
.hero-title.is-visible .line:nth-child(2) { transition-delay: .16s; }
.hero-title.is-visible .line:nth-child(3) { transition-delay: .32s; }

/* buttery button hover: deeper lift with a soft shadow bloom */
.btn { transition: transform .45s var(--ease), background .45s, box-shadow .45s var(--ease); }
.btn:hover { transform: translateY(-3px); box-shadow: 0 18px 36px -16px rgba(0, 88, 165, .5); }

/* cards glide rather than snap */
.service-card { transition: transform .6s var(--ease), border-color .6s, box-shadow .6s var(--ease); }

@media (prefers-reduced-motion: reduce) {
  [data-reveal], .hero-title .line { opacity: 1 !important; transform: none !important; clip-path: none !important; transition: none !important; }
}

/* ------------------------------------------------------------------
   Our services: split panel (image left, copy + numbered points right)
------------------------------------------------------------------ */
.service-panel--split.is-active {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 4.5vw, 4.5rem); align-items: start;
  background: none; border: 0; border-radius: 0; overflow: visible;
}
.service-panel--split img {
  width: 100%; aspect-ratio: 5 / 4; object-fit: cover;
  border-radius: calc(var(--radius) * 1.5); display: block;
}
.service-panel--split .service-panel-copy { padding-top: .5rem; }
.service-panel--split h3 {
  font-size: clamp(1.75rem, 3.2vw, 2.75rem); font-weight: 300; margin-bottom: .6em;
}
.service-panel--split p.service-panel-lede {
  position: static; background: none; backdrop-filter: none; -webkit-backdrop-filter: none;
  padding: 0; text-align: left; margin: 0;
  color: var(--ink-70); font-size: clamp(1.0625rem, 1.5vw, 1.25rem); line-height: 1.6;
  max-width: 52ch;
}
.hairline { border: 0; border-top: 1px solid var(--ink-10); margin: clamp(1.5rem, 2.5vw, 2.25rem) 0; }
.service-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.05rem; }
.service-panel-link { margin-top: 2rem; }
.service-points li { display: flex; gap: 1.1rem; align-items: baseline; color: var(--ink); line-height: 1.5; }
.service-points .num {
  flex: none; color: var(--tg-blue); font-weight: 600;
  font-size: .8125rem; letter-spacing: .06em;
}
@media (max-width: 860px) {
  .service-panel--split.is-active { grid-template-columns: 1fr; gap: 1.75rem; }
  .service-panel--split img { aspect-ratio: 16 / 10; }
}

/* ------------------------------------------------------------------
   UX polish pass (ui-ux-pro-max review): focus, tap, press feedback
------------------------------------------------------------------ */
a, button { touch-action: manipulation; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--tg-blue); outline-offset: 3px;
}
.btn:active, .service-tab:active, .service-arrow:active { transform: scale(.97); }
.service-tab, .service-arrow, .nav-toggle { cursor: pointer; }

/* ------------------------------------------------------------------
   Flagship feel: cinematic hero, stat counters, breathing room
------------------------------------------------------------------ */
:root { --section: clamp(5rem, 12vw, 11rem); }

/* slow cinematic settle on the hero video */
.hero-bg video { animation: hero-zoom 9s var(--ease) both; }
@keyframes hero-zoom { from { transform: scale(1.12); } to { transform: scale(1); } }

/* grander title rise */
.hero-title .line { transition-duration: 1.35s; transform: translateY(3rem); }
.hero-title.is-visible .line { transform: none; }
.hero-title.is-visible .line:nth-child(2) { transition-delay: .22s; }
.hero-title.is-visible .line:nth-child(3) { transition-delay: .44s; }

/* stat counters */
.stats { display: flex; flex-wrap: wrap; gap: clamp(2rem, 6vw, 5rem); margin: 3rem 0 2.5rem; }
.stat-num {
  display: block; font-family: var(--font-display); font-weight: 300;
  font-size: clamp(2.5rem, 5vw, 4.25rem); line-height: 1.1;
  color: var(--tg-blue); letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.stat-label { display: block; margin-top: .35rem; color: var(--ink-70); font-size: .9375rem; }

/* silky updates for tilt + magnetic effects */
.service-panel img { transition: transform .35s var(--ease); will-change: transform; }
.btn { will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  .hero-bg video { animation: none; }
}

/* ------------------------------------------------------------------
   Take-10 tab buttons (separate pills, no track, no arrows)
------------------------------------------------------------------ */
.service-tabs { background: none; padding: 0; gap: .75rem; border-radius: 0; }
.service-tab {
  background: transparent; border: 1.5px solid var(--ink-10);
  color: var(--ink);
}
.service-tab:hover { background: transparent; border-color: var(--ink-40); }
.service-tab[aria-selected="true"] { background: var(--tg-blue); border-color: var(--tg-blue); color: var(--tg-white); }

/* Our services tabs: stacked grid, three across */
.service-tabs {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: .75rem; width: 100%; max-width: 900px;
  overflow: visible; margin-inline: auto;
}
.service-tab { width: 100%; text-align: center; white-space: normal; padding: 1em 1.25em; }
@media (max-width: 720px) { .service-tabs { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .service-tabs { grid-template-columns: 1fr; } }

/* Our services buttons: left-aligned with the heading, animated fill on click */
.service-tabs { margin-inline: 0; }
.service-tab {
  position: relative; overflow: hidden; z-index: 0;
  transition: color .35s var(--ease), border-color .35s var(--ease), transform .45s var(--ease);
}
.service-tab::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: var(--tg-blue); border-radius: inherit;
  transform: scaleX(0); transform-origin: left;
  transition: transform .45s var(--ease);
}
.service-tab[aria-selected="true"] { background: transparent; border-color: var(--tg-blue); color: var(--tg-white); }
.service-tab[aria-selected="true"]::before { transform: scaleX(1); }

/* Our services buttons: equal heights, centred labels, light-to-Tuesday-blue fill */
.service-tabs { grid-auto-rows: 1fr; align-items: stretch; }
.service-tab {
  height: 100%; display: grid; place-items: center;
}
.service-tab::before {
  background: var(--tg-pattern-blue); /* lighter blue as the sweep enters */
  transition: transform .45s var(--ease), background-color .7s var(--ease);
}
.service-tab[aria-selected="true"]::before {
  background-color: var(--tg-blue);   /* settles smoothly into Tuesday Blue */
}

/* Fill: Tuesday Blue building from 25% to full, at half the previous pace */
.service-tab::before {
  background: var(--tg-blue); background-color: var(--tg-blue);
  opacity: .25;
  transition: transform .9s var(--ease), opacity 1.4s var(--ease);
}
.service-tab[aria-selected="true"]::before { opacity: 1; background-color: var(--tg-blue); }

/* ------------------------------------------------------------------
   21st.dev nav: soft hover pill + shared underline that slides
   between items (Framer Motion layoutId pattern, vanilla build)
------------------------------------------------------------------ */
.site-nav > ul { position: relative; gap: 1.1rem; }
.site-nav > ul > li > a {
  padding: .5rem .9rem; border-radius: .5rem;
  transition: background .3s var(--ease), color .3s;
}
.site-nav > ul > li > a:hover { background: var(--ink-10); }
/* retire the per-link underline + dot on top-level items */
.site-nav > ul > li > a::after, .site-nav > ul > li > a::before { content: none; }
.nav-cursor {
  position: absolute; bottom: -3px; left: 0; height: 2.5px;
  width: 0; background: var(--tg-blue); border-radius: 2px;
  opacity: 0; pointer-events: none;
  transition: transform .35s var(--ease), width .35s var(--ease), opacity .25s;
}
@media (max-width: 860px) { .nav-cursor { display: none; } }

/* Group dropdowns: no hover dots, Tuesday Blue tinted highlight */
.site-nav .sub-menu a::before { content: none; }
.site-nav .sub-menu a:hover { background: rgba(0, 88, 165, .14); }

/* ------------------------------------------------------------------
   Hero title: professional masked line reveal + sprung dots
------------------------------------------------------------------ */
.hero-title .line {
  display: block; overflow: hidden;
  opacity: 1; transform: none; transition: none;
}
.hero-title .line-inner {
  display: inline-block; transform: translateY(112%);
  transition: transform 1.15s var(--ease); will-change: transform;
}
.hero-title.is-visible .line:nth-child(1) .line-inner { transition-delay: .1s; }
.hero-title.is-visible .line:nth-child(2) .line-inner { transition-delay: .3s; }
.hero-title.is-visible .line:nth-child(3) .line-inner { transition-delay: .5s; }
.hero-title.is-visible .line-inner { transform: none; }
.hero-title .dot {
  transform: scale(0); transform-origin: center;
  transition: transform .55s cubic-bezier(.34, 1.56, .64, 1);
}
.hero-title.is-visible .line:nth-child(1) .dot { transition-delay: 1.05s; }
.hero-title.is-visible .line:nth-child(2) .dot { transition-delay: 1.25s; }
.hero-title.is-visible .line:nth-child(3) .dot { transition-delay: 1.45s; }
.hero-title.is-visible .dot { transform: scale(1); }
@media (prefers-reduced-motion: reduce) {
  .hero-title .line-inner, .hero-title .dot { transform: none !important; transition: none !important; }
}



/* ------------------------------------------------------------------
   How we work: pinned scroll-expand — the image opens out from a
   card while the copy glides in (ScrollExpandMedia pattern, native)
------------------------------------------------------------------ */
@media (min-width: 861px) and (prefers-reduced-motion: no-preference) {
  .hww-expand { height: 190vh; --wp: 0; padding-top: 0; padding-bottom: 0; }
  .hww-expand .hww-pin {
    position: sticky; top: 0; min-height: 100vh;
    display: flex; align-items: center;
    padding: calc(var(--step-h) + 2rem) 0 3rem; width: 100%;
  }
  .hww-expand .hww-pin > .wrap { width: min(1440px, 100% - var(--gutter) * 2); margin-inline: auto; }
  .hww-expand .split img {
    clip-path: inset(calc((1 - var(--wp)) * 24%) round calc(var(--radius) + (1 - var(--wp)) * 1rem));
    transform: scale(calc(.92 + var(--wp) * .08));
    transition: none;
  }
  .hww-expand .split > div {
    transform: translateX(calc((1 - var(--wp)) * -4vw));
  }
}

/* buttons inside paragraphs must never inherit link underlines */
p a.btn { text-decoration: none; color: var(--tg-white); }
p a.btn:hover { text-decoration: none; color: var(--tg-white); }

/* contact details sit below the triangular pattern, address pushed lower */
.footer-contact { margin-top: calc(var(--footer-col) * .9); gap: 2.5rem; }

/* contact details tucked just under the pattern */
.footer-contact { margin-top: calc(var(--footer-col) - 1rem + 3px - clamp(1.75rem, 4vw, 3rem)); }

/* ------------------------------------------------------------------
   ICON GRID (banked for future use — not referenced on any page yet)
   Vanilla port of the 21st.dev IconGrid: responsive card grid with
   hover lift and staggered spring entrance via the data-reveal system.
   Usage:
   <div class="icon-grid">
     <div class="icon-grid-item" data-reveal aria-label="Name">
       <span class="icon-grid-card"> ...svg or img... </span>
     </div>
     ...
   </div>
------------------------------------------------------------------ */
.icon-grid {
  display: grid; gap: 1rem; text-align: center;
  grid-template-columns: repeat(3, 1fr);
}
@media (min-width: 640px)  { .icon-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 900px)  { .icon-grid { grid-template-columns: repeat(5, 1fr); } }
@media (min-width: 1200px) { .icon-grid { grid-template-columns: repeat(6, 1fr); } }
.icon-grid-item { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.icon-grid-item[data-reveal] { transition-timing-function: cubic-bezier(.34, 1.56, .64, 1); } /* spring feel */
.icon-grid-card {
  display: flex; align-items: center; justify-content: center;
  width: 6rem; height: 6rem; padding: 1rem;
  background: var(--tg-white); border: 1px solid var(--ink-10);
  border-radius: var(--radius);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s;
}
.icon-grid-item:hover .icon-grid-card {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px -18px rgba(26, 28, 49, .35);
}
.icon-grid-card svg, .icon-grid-card img { max-width: 100%; max-height: 100%; }

/* ------------------------------------------------------------------
   Design-engineering polish (Emil Kowalski audit)
------------------------------------------------------------------ */
/* instant press feedback, independent of the slow hover transition */
.btn:active, .service-tab:active, .service-arrow:active { transition-duration: 120ms; }
/* frequent hover effect: fast, strong ease-out */
.nav-cursor { transition: transform 200ms cubic-bezier(0.23, 1, 0.32, 1), width 200ms cubic-bezier(0.23, 1, 0.32, 1), opacity 150ms; }
/* dropdowns originate from their trigger */
.site-nav .sub-menu { transform-origin: top center; }
/* nothing appears from scale(0) */
.hero-title .dot { transform: scale(.5); opacity: 0; transition: transform .55s cubic-bezier(.34, 1.56, .64, 1), opacity .3s ease-out; }
.hero-title.is-visible .dot { transform: scale(1); opacity: 1; }

/* ------------------------------------------------------------------
   What we do: editorial three-point layout + lifecycle strip
------------------------------------------------------------------ */
.wwd-points {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 3.5vw, 3.5rem); margin-top: clamp(2.5rem, 4vw, 3.5rem);
}
.wwd-point { border-top: 1px solid var(--ink-10); padding-top: 1.4rem; }
.wwd-label {
  display: block; font-size: .8125rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--tg-blue); margin-bottom: .7rem;
}
.wwd-point p { margin: 0; color: var(--ink-70); }
@media (max-width: 860px) { .wwd-points { grid-template-columns: 1fr; gap: 1.75rem; } }

.lifecycle {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: .6rem 1rem; margin-top: clamp(2.5rem, 4vw, 3.5rem);
}
.lc-step {
  border: 1.5px solid var(--ink-10); border-radius: 100px;
  padding: .55em 1.2em; font-weight: 600; font-size: .9375rem;
  background: var(--tg-white); color: var(--ink);
  opacity: 0; transform: translateY(12px);
  transition: opacity .6s var(--ease), transform .6s var(--ease),
              border-color .3s, box-shadow .3s var(--ease);
}
.lc-step:hover { border-color: var(--tg-blue); box-shadow: 0 10px 22px -14px rgba(0, 88, 165, .5); }
.lc-arrow { color: var(--tg-blue); font-weight: 600; opacity: 0; transition: opacity .5s var(--ease); }
.lifecycle.is-visible .lc-step { opacity: 1; transform: none; }
.lifecycle.is-visible .lc-arrow { opacity: 1; }
.lifecycle.is-visible .lc-step:nth-of-type(1) { transition-delay: .05s; }
.lifecycle.is-visible .lc-step:nth-of-type(2) { transition-delay: .2s; }
.lifecycle.is-visible .lc-step:nth-of-type(3) { transition-delay: .35s; }
.lifecycle.is-visible .lc-step:nth-of-type(4) { transition-delay: .5s; }
.lifecycle.is-visible .lc-step:nth-of-type(5) { transition-delay: .65s; }
.lifecycle.is-visible .lc-step:nth-of-type(6) { transition-delay: .8s; }
.lifecycle.is-visible .lc-arrow { transition-delay: .9s; }

/* ------------------------------------------------------------------
   Contact card: grouped surface with icon-led rows
------------------------------------------------------------------ */
.footer-contact {
  margin-top: 0; align-self: center; gap: 0; display: block;
  background: var(--tg-white); border: 1px solid var(--ink-10);
  border-radius: calc(var(--radius) * 1.25);
  padding: clamp(1.25rem, 2vw, 1.75rem) clamp(1.25rem, 2vw, 1.75rem);
  box-shadow: 0 30px 60px -35px rgba(26, 28, 49, .35);
  position: relative; z-index: 1;
}
.cc-row { display: flex; gap: 1rem; align-items: flex-start; padding: 1rem 0; }
.cc-row:first-child { padding-top: 0; }
.cc-row:last-child { padding-bottom: 0; }
.cc-row + .cc-row { border-top: 1px solid var(--ink-10); }
.cc-icon {
  flex: none; width: 2.5rem; height: 2.5rem; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(0, 88, 165, .1); color: var(--tg-blue);
}
.cc-icon svg { width: 1.15rem; height: 1.15rem; }
.cc-body { min-width: 0; }
.cc-label {
  display: block; font-size: .6875rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-40); margin-bottom: .2rem;
}
.footer-contact .cc-row a, .footer-contact .cc-row p { color: var(--ink); margin: 0; display: block; text-decoration: none; }
.footer-contact .cc-row a:hover { color: var(--tg-blue); }
@media (max-width: 860px) { .footer-contact { width: 100%; margin-top: 2rem; } }

/* ------------------------------------------------------------------
   Contact card pop: spring entrance, cascading rows, lively hover
------------------------------------------------------------------ */
.footer-contact[data-reveal] {
  transform: translateY(30px) scale(.94);
  transition: opacity .8s var(--ease),
              transform .8s cubic-bezier(.34, 1.56, .64, 1),
              box-shadow .35s var(--ease);
}
.footer-contact[data-reveal].is-visible { transform: none; }
.footer-contact:hover {
  transform: translateY(-4px);
  box-shadow: 0 40px 70px -35px rgba(26, 28, 49, .45);
}
.cc-row { opacity: 0; transform: translateY(14px); transition: opacity .55s var(--ease), transform .55s var(--ease); }
.footer-contact.is-visible .cc-row { opacity: 1; transform: none; }
.footer-contact.is-visible .cc-row:nth-child(1) { transition-delay: .25s; }
.footer-contact.is-visible .cc-row:nth-child(2) { transition-delay: .4s; }
.footer-contact.is-visible .cc-row:nth-child(3) { transition-delay: .55s; }
.cc-icon { transform: scale(.5); opacity: 0; transition: transform .5s cubic-bezier(.34, 1.56, .64, 1), opacity .3s ease-out, background .3s; }
.footer-contact.is-visible .cc-icon { transform: scale(1); opacity: 1; }
.footer-contact.is-visible .cc-row:nth-child(1) .cc-icon { transition-delay: .45s; }
.footer-contact.is-visible .cc-row:nth-child(2) .cc-icon { transition-delay: .6s; }
.footer-contact.is-visible .cc-row:nth-child(3) .cc-icon { transition-delay: .75s; }
.cc-row:hover .cc-icon { transform: scale(1.12); transition-delay: 0s; transition-duration: .25s; }
@media (prefers-reduced-motion: reduce) {
  .footer-contact[data-reveal], .cc-row, .cc-icon { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* no pattern behind the contact card */
.site-footer::before { content: none; }

/* ------------------------------------------------------------------
   Trusted by marquee: progressive edge blur (layered backdrop-filter
   with sliced gradient masks, ProgressiveBlur pattern built natively)
------------------------------------------------------------------ */
.marquee--clients { position: relative; }
.pblur {
  position: absolute; top: 0; bottom: 0; width: clamp(90px, 14vw, 200px);
  pointer-events: none; z-index: 2;
}
.pblur--left { left: 0; }
.pblur--right { right: 0; transform: scaleX(-1); }
.pblur i { position: absolute; inset: 0; }
.pblur i:nth-child(1) { backdrop-filter: blur(6px);   -webkit-mask-image: linear-gradient(to right, #000 0%, #000 12.5%, transparent 25%); mask-image: linear-gradient(to right, #000 0%, #000 12.5%, transparent 25%); }
.pblur i:nth-child(2) { backdrop-filter: blur(4.2px); -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 12.5%, #000 25%, transparent 37.5%); mask-image: linear-gradient(to right, transparent 0%, #000 12.5%, #000 25%, transparent 37.5%); }
.pblur i:nth-child(3) { backdrop-filter: blur(2.8px); -webkit-mask-image: linear-gradient(to right, transparent 12.5%, #000 25%, #000 37.5%, transparent 50%); mask-image: linear-gradient(to right, transparent 12.5%, #000 25%, #000 37.5%, transparent 50%); }
.pblur i:nth-child(4) { backdrop-filter: blur(1.8px); -webkit-mask-image: linear-gradient(to right, transparent 25%, #000 37.5%, #000 50%, transparent 62.5%); mask-image: linear-gradient(to right, transparent 25%, #000 37.5%, #000 50%, transparent 62.5%); }
.pblur i:nth-child(5) { backdrop-filter: blur(1px);   -webkit-mask-image: linear-gradient(to right, transparent 37.5%, #000 50%, #000 62.5%, transparent 75%); mask-image: linear-gradient(to right, transparent 37.5%, #000 50%, #000 62.5%, transparent 75%); }
.pblur i:nth-child(6) { backdrop-filter: blur(.5px);  -webkit-mask-image: linear-gradient(to right, transparent 50%, #000 62.5%, #000 75%, transparent 87.5%); mask-image: linear-gradient(to right, transparent 50%, #000 62.5%, #000 75%, transparent 87.5%); }

/* ------------------------------------------------------------------
   Work flow: rotating lifecycle word (TextRotate pattern, native)
------------------------------------------------------------------ */
.workflow { margin-top: clamp(2.5rem, 4vw, 3.5rem); }
.text-rotate {
  display: inline-flex; overflow: hidden;
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(2.5rem, 5.5vw, 4.5rem); line-height: 1.15;
  letter-spacing: -0.02em; color: var(--tg-blue);
  min-height: 1.2em;
}
.tr-char {
  display: inline-block; white-space: pre;
  transform: translateY(110%); opacity: 0; will-change: transform;
  transition: transform .55s cubic-bezier(.34, 1.56, .64, 1), opacity .3s ease-out;
}
.tr-char.in { transform: none; opacity: 1; }
.tr-char.out {
  transform: translateY(-120%); opacity: 0;
  transition: transform .38s var(--ease), opacity .22s ease-in;
}
@media (prefers-reduced-motion: reduce) { .tr-char { transition: none !important; } }

/* ------------------------------------------------------------------
   Work flow strip: buttons arrive one by one, in from the right,
   settling static to read Strategy -> Managed services
------------------------------------------------------------------ */
.workflow .lifecycle { margin-top: 1.25rem; }
.workflow .lc-step {
  opacity: 0; transform: translateX(46px);
  transition: transform .6s cubic-bezier(.34, 1.56, .64, 1), opacity .35s ease-out,
              border-color .3s, box-shadow .3s var(--ease);
}
.workflow .lifecycle.is-visible .lc-step { opacity: 1; transform: none; }
.workflow .lc-arrow { opacity: 0; transform: translateX(24px); transition: transform .45s var(--ease), opacity .35s ease-out; }
.workflow .lifecycle.is-visible .lc-arrow { opacity: 1; transform: none; }
/* children alternate step/arrow: steps are odd children, arrows even */
.workflow .lifecycle.is-visible > :nth-child(1)  { transition-delay: .1s; }
.workflow .lifecycle.is-visible > :nth-child(2)  { transition-delay: .48s; }
.workflow .lifecycle.is-visible > :nth-child(3)  { transition-delay: .62s; }
.workflow .lifecycle.is-visible > :nth-child(4)  { transition-delay: 1s; }
.workflow .lifecycle.is-visible > :nth-child(5)  { transition-delay: 1.14s; }
.workflow .lifecycle.is-visible > :nth-child(6)  { transition-delay: 1.52s; }
.workflow .lifecycle.is-visible > :nth-child(7)  { transition-delay: 1.66s; }
.workflow .lifecycle.is-visible > :nth-child(8)  { transition-delay: 2.04s; }
.workflow .lifecycle.is-visible > :nth-child(9)  { transition-delay: 2.18s; }
.workflow .lifecycle.is-visible > :nth-child(10) { transition-delay: 2.56s; }
.workflow .lifecycle.is-visible > :nth-child(11) { transition-delay: 2.7s; }
@media (prefers-reduced-motion: reduce) {
  .workflow .lc-step, .workflow .lc-arrow { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* Workflow: static label left, buttons flow in to its right */
.workflow { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.workflow .wwd-label { margin: 0; white-space: nowrap; }
.workflow .lifecycle { margin-top: 0; flex: 1 1 auto; }
@media (max-width: 720px) { .workflow { flex-direction: column; align-items: flex-start; gap: 1rem; } }

/* Workflow reads like a sentence: big text + pills at matching scale */
.workflow-title {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(1.6rem, 2.6vw, 2.4rem); line-height: 1.1;
  letter-spacing: -0.02em; color: var(--ink); white-space: nowrap;
}
.workflow { gap: 1.25rem 1.75rem; }
.workflow .lc-step { font-size: 1.0625rem; padding: .6em 1.25em; }
.workflow .lc-arrow { font-size: 1.1rem; }



/* How we work image: deep scale settle with soft fade (no clipping) */
#about-us .split img[data-reveal] {
  transform: translateY(1.5rem) scale(1.1);
  transition: opacity 1s var(--ease), transform 1.5s var(--ease);
}
#about-us .split img[data-reveal].is-visible { transform: none; }

/* ------------------------------------------------------------------
   Mobile enhancement pass
------------------------------------------------------------------ */
@media (max-width: 640px) {
  :root {
    --section: clamp(3.25rem, 14vw, 4.5rem);
    --step-h: clamp(40px, 11vw, 60px);
    --step-r: clamp(20px, 5vw, 32px);
  }
  .hero { min-height: 100svh; }
  .hero-grid { gap: 2rem; }
  .hero-title { font-size: clamp(3.25rem, 17vw, 4.5rem); }
  .hero-actions { display: flex; flex-direction: column; align-items: stretch; gap: .75rem; }
  .hero-actions .btn { justify-content: center; }
  .lede { font-size: 1.0625rem; }
  .stats { gap: 1.5rem 2.25rem; margin: 2.25rem 0 2rem; }
  .stat-num { font-size: 2.5rem; }
  .service-tabs { flex-wrap: wrap; }
  .service-tab { padding: .8em 1.2em; }
  .service-panel--split.is-active { gap: 1.5rem; }
  .service-points li { gap: .8rem; }
  .wwd-points { margin-top: 2rem; }
  .workflow { margin-top: 2.25rem; }
  .cf-field input, .cf-field textarea { min-height: 44px; font-size: 1rem; }
  .contact-submit { width: 100%; justify-content: center; }
  .footer-cta h2 { font-size: clamp(2rem, 9vw, 2.75rem); }
  .marquee--clients .client-name { font-size: 1.35rem; }
  .pblur { width: 56px; }
  .orbs, .tris { opacity: .6; }
}

/* ------------------------------------------------------------------
   Mobile QC pass: modal menu (Get in touch feel) + layering fixes
------------------------------------------------------------------ */
@media (max-width: 860px) {
  body.nav-open .site-header { z-index: 500; }
  .site-nav {
    position: fixed; inset: 0; z-index: 450; width: auto; height: auto;
    display: flex; align-items: center; justify-content: center;
    background: rgba(2, 10, 10, .55);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    opacity: 0; visibility: hidden; transform: none;
    transition: opacity .3s var(--ease), visibility .3s;
    padding: 0;
  }
  body.nav-open .site-nav { opacity: 1; visibility: visible; transform: none; }
  .site-nav > ul {
    position: relative; display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: .6rem;
    width: min(94vw, 440px); border-radius: 2rem;
    background: radial-gradient(circle at 30% 22%, #1168b8, var(--tg-blue) 62%);
    padding: 3.25rem 1.75rem 2.75rem; margin: 0;
    box-shadow: 0 40px 90px -30px rgba(2, 10, 10, .6);
    animation: contact-pop .45s var(--ease);
  }
  body:not(.nav-open) .site-nav > ul { animation: none; }
  .site-nav > ul > li { padding: 0; text-align: center; }
  .site-nav > ul > li > a { color: #FFFFFF; font-size: 1.3rem; font-weight: 500; padding: .3rem 1rem; background: none; }
  .site-nav > ul > li > a:hover { background: rgba(255, 255, 255, .12); }
  .site-nav .menu-item-has-children { padding-right: 0; }
  .site-nav .menu-item-has-children::after { content: none; }
  .site-nav .sub-menu {
    position: static; transform: none; opacity: 1; visibility: visible;
    background: none; border: 0; box-shadow: none; padding: 0; min-width: 0; text-align: center;
  }
  .site-nav .sub-menu a { color: rgba(255, 255, 255, .85); font-size: 1rem; padding: .15rem .6rem; }
  .site-nav .sub-menu a:hover { background: rgba(255, 255, 255, .12); }
  .nav-cursor { display: none; }
  /* layering: the contact card must never ride up over content on mobile */
  .footer-contact { width: 100%; margin-top: 2rem; align-self: auto; }
}
@media (max-width: 640px) {
  /* raised section headers return to safe positions below the curve tabs */
  #who-we-are.has-curve-step,
  #about-us.has-curve-step,
  #founders-story.has-curve-step { padding-top: calc(var(--step-h) + 1.25rem); }
  #what-we-do.has-curve-step--up { padding-top: 1.5rem; }
  .clients-head h2 { font-size: 1.5rem; }
}

/* stabilised hero video: no zoom drift */
.hero-bg video { animation: none; transform: none; }

/* menu close button, same as the contact popup's */
@media (max-width: 860px) {
  .menu-close { position: absolute; top: 1rem; right: 1rem; display: grid; }
}
@media (min-width: 861px) { .menu-close { display: none; } }

/* ------------------------------------------------------------------
   Mobile menu fix: the header's backdrop blur was trapping the
   fixed-position menu inside the header bar. Release it when open.
------------------------------------------------------------------ */
@media (max-width: 860px) {
  body.nav-open .site-header {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: transparent;
  }
  .site-nav { padding: 1.25rem; }
  .site-nav > ul { max-height: 86vh; overflow-y: auto; justify-content: flex-start; padding-top: 3.5rem; }
  .site-nav > ul > li:first-child { margin-top: auto; }
  .site-nav > ul > li:last-child { margin-bottom: auto; }
}

/* mobile: contact heading sits below the curved tab, never under it */
@media (max-width: 640px) {
  .site-footer.has-curve-step { padding-top: calc(var(--step-h) + 1.5rem); }
}

/* ------------------------------------------------------------------
   Workflow on mobile: vertical timeline instead of a wrapping row
   (mobile-first pattern: content-priority, vertical flow, fast stagger)
------------------------------------------------------------------ */
@media (max-width: 720px) {
  .workflow { align-items: stretch; }
  .workflow .lifecycle {
    flex-direction: column; align-items: flex-start; gap: .9rem;
    position: relative; padding-left: 28px;
  }
  /* connecting spine */
  .workflow .lifecycle::before {
    content: ''; position: absolute; left: 6px; top: 1rem; bottom: 1rem;
    width: 2px; background: var(--ink-10); border-radius: 2px;
  }
  .workflow .lc-arrow { display: none; }
  .workflow .lc-step { position: relative; transform: translateX(-16px); width: max-content; max-width: 100%; }
  .workflow .lifecycle.is-visible .lc-step { transform: none; }
  /* node dot on the spine */
  .workflow .lc-step::before {
    content: ''; position: absolute; left: -27px; top: 50%;
    width: 12px; height: 12px; border-radius: 50%;
    background: var(--tg-blue); transform: translateY(-50%);
    box-shadow: 0 0 0 3px var(--bg-soft);
  }
  /* quicker cascade on mobile */
  .workflow .lifecycle.is-visible > :nth-child(1)  { transition-delay: .05s; }
  .workflow .lifecycle.is-visible > :nth-child(3)  { transition-delay: .18s; }
  .workflow .lifecycle.is-visible > :nth-child(5)  { transition-delay: .31s; }
  .workflow .lifecycle.is-visible > :nth-child(7)  { transition-delay: .44s; }
  .workflow .lifecycle.is-visible > :nth-child(9)  { transition-delay: .57s; }
  .workflow .lifecycle.is-visible > :nth-child(11) { transition-delay: .7s; }
}

/* ------------------------------------------------------------------
   Six values on mobile: clean vertical list with staggered entrance
   (mobile-first: full-width rows, clear rhythm, no cramped pills)
------------------------------------------------------------------ */
@media (max-width: 640px) {
  .values-grid { flex-direction: column; align-items: stretch; gap: 0; margin-top: 1.5rem; }
  .value-chip {
    width: 100%; border: 0; border-radius: 0;
    border-bottom: 1px solid rgba(245, 245, 252, .18);
    padding: .9em 0 .9em 1.6rem; position: relative;
    font-size: 1.2rem; color: var(--tg-white);
    opacity: 0; transform: translateY(10px);
    transition: opacity .5s var(--ease), transform .5s var(--ease);
  }
  .value-chip:last-child { border-bottom: 0; }
  .value-chip::before {
    content: ''; position: absolute; left: 0; top: 50%;
    width: .5rem; height: .5rem; border-radius: 50%;
    background: var(--tg-white); transform: translateY(-50%);
  }
  .value-chip:hover { background: none; }
  .values-grid.is-visible .value-chip { opacity: 1; transform: none; }
  .values-grid.is-visible .value-chip:nth-child(1) { transition-delay: .05s; }
  .values-grid.is-visible .value-chip:nth-child(2) { transition-delay: .15s; }
  .values-grid.is-visible .value-chip:nth-child(3) { transition-delay: .25s; }
  .values-grid.is-visible .value-chip:nth-child(4) { transition-delay: .35s; }
  .values-grid.is-visible .value-chip:nth-child(5) { transition-delay: .45s; }
  .values-grid.is-visible .value-chip:nth-child(6) { transition-delay: .55s; }
  @media (prefers-reduced-motion: reduce) {
    .value-chip { opacity: 1; transform: none; transition: none; }
  }
}

/* Who we are / What we do headers ride higher toward the tab top (desktop) */
@media (min-width: 641px) {
  #what-we-do.has-curve-step--up,
  #who-we-are.has-curve-step { padding-top: max(1rem, calc(var(--step-h) - 2.75rem + 6mm)); }
}

/* Our services: its own beige band (matches the Founder section), stone tab dipping in */
@media (min-width: 641px) {
  #our-services-band.has-curve-step { padding-top: max(1rem, calc(var(--step-h) - 2.75rem + 6mm)); }
}
@media (max-width: 640px) {
  #our-services-band.has-curve-step { padding-top: calc(var(--step-h) + 1.25rem); }
}

/* ------------------------------------------------------------------
   Contact channels (test): icon tiles + reveal modals + copy toast
------------------------------------------------------------------ */
.channels {
  grid-column: 1 / -1;
  background: var(--tg-white); border: 1px solid var(--ink-10);
  border-radius: calc(var(--radius) * 1.5);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  margin-top: clamp(2rem, 4vw, 3rem);
  box-shadow: 0 30px 60px -35px rgba(26, 28, 49, .35);
}
.channels-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 2rem; }
.ch-eyebrow { display: block; font-size: .8125rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-40); }
.ch-sub { display: block; font-size: .8125rem; color: var(--ink-40); margin-top: .2rem; }
.ch-pill {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .4rem .85rem; border-radius: 100px; font-size: .75rem; font-weight: 500;
  border: 1px solid var(--ink-10); color: var(--ink-70); white-space: nowrap;
}
.ch-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--tg-blue); box-shadow: 0 0 8px var(--tg-blue); animation: ch-pulse 2s infinite; }
@keyframes ch-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.channels-row { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(1.5rem, 4vw, 3rem); }
.channel {
  display: flex; flex-direction: column; align-items: center;
  background: none; border: 0; cursor: pointer; text-decoration: none; padding: 0;
}
.ch-icon {
  display: grid; place-items: center; width: 84px; height: 84px; border-radius: 24px;
  background: var(--bg); border: 1px solid var(--ink-10); color: var(--ink);
  box-shadow: 0 10px 26px -14px rgba(26, 28, 49, .35);
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), background .35s, color .35s, box-shadow .35s;
}
.ch-icon svg { width: 30px; height: 30px; }
.channel:hover .ch-icon {
  transform: translateY(-8px) scale(1.06);
  background: var(--tg-blue); color: var(--tg-white);
  box-shadow: 0 16px 40px -14px rgba(0, 88, 165, .6);
}
.channel:hover .ch-icon svg { animation: ch-shake .5s ease; }
@keyframes ch-shake {
  0%, 100% { transform: translateX(0) rotate(0); }
  25% { transform: translateX(-3px) rotate(-6deg); }
  50% { transform: translateX(3px) rotate(6deg); }
  75% { transform: translateX(-2px) rotate(-3deg); }
}
.ch-label { margin-top: .9rem; font-weight: 500; font-size: .9375rem; color: var(--ink-70); transition: color .3s; }
.channel:hover .ch-label { color: var(--ink); }
.ch-hint { font-size: .7rem; color: var(--ink-40); margin-top: .15rem; opacity: 0; transition: opacity .3s; }
.channel:hover .ch-hint { opacity: 1; }
.channels-foot {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: .75rem;
  margin-top: 2.25rem; padding-top: 1.4rem; border-top: 1px solid var(--ink-10);
  font-size: .8125rem; color: var(--ink-40);
}
.channels-foot span { display: inline-flex; align-items: center; gap: .45rem; }
.ch-pin { width: .9rem; height: .9rem; }
/* small reveal modals */
.ch-panel {
  position: relative; width: min(94vw, 440px);
  background: var(--tg-white); color: var(--ink);
  border-radius: 1.75rem; padding: 1.75rem;
  box-shadow: 0 40px 90px -30px rgba(2, 10, 10, .6);
  animation: contact-pop .4s var(--ease);
}
.ch-panel-head { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.4rem; }
.ch-panel-icon {
  flex: none; display: grid; place-items: center; width: 44px; height: 44px;
  border-radius: 14px; background: var(--tg-blue); color: var(--tg-white);
}
.ch-panel-icon svg { width: 20px; height: 20px; }
.ch-panel-head h3 { margin: 0; font-size: 1.2rem; font-weight: 500; font-family: var(--font-body); }
.ch-panel-head p { margin: .1rem 0 0; font-size: .8125rem; color: var(--ink-40); }
.ch-close { margin-left: auto; background: none; border: 0; cursor: pointer; color: var(--ink-40); padding: .25rem; }
.ch-close:hover { color: var(--ink); }
.ch-close svg { width: 20px; height: 20px; }
.copy-row {
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  border: 1.5px dashed var(--ink-10); border-radius: 14px; padding: .85rem 1rem;
  font-weight: 600; font-size: 1.05rem;
}
.btn-copy {
  border: 0; cursor: pointer; font-weight: 600; font-size: .75rem;
  background: rgba(0, 88, 165, .1); color: var(--tg-blue);
  padding: .45em 1em; border-radius: 8px; transition: background .25s;
}
.btn-copy:hover { background: rgba(0, 88, 165, .18); }
.ch-cta { width: 100%; justify-content: center; margin-top: 1rem; display: inline-flex; }
#ch-toast {
  position: fixed; bottom: 1.5rem; left: 50%; z-index: 600;
  transform: translate(-50%, 12px); opacity: 0; pointer-events: none;
  background: var(--tg-navy); color: var(--tg-white);
  padding: .7rem 1.2rem; border-radius: 12px; font-size: .875rem; font-weight: 500;
  transition: opacity .3s, transform .3s var(--ease);
}
#ch-toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 640px) {
  .ch-icon { width: 68px; height: 68px; border-radius: 20px; }
  .ch-icon svg { width: 26px; height: 26px; }
  .channels-row { gap: 1.25rem; }
}

/* Contact channels: ink blue edition */
.channels { background: var(--tg-navy); border-color: var(--white-10); }
.ch-eyebrow, .ch-sub, .ch-hint { color: var(--white-40); }
.ch-pill { border-color: var(--white-10); color: var(--white-70); }
.ch-icon {
  background: rgba(245, 245, 252, .06); border-color: var(--white-10);
  color: var(--tg-white); box-shadow: 0 10px 26px -14px rgba(2, 10, 10, .6);
}
.ch-label { color: var(--white-70); }
.channel:hover .ch-label { color: var(--tg-white); }
.channels-foot { border-color: var(--white-10); color: var(--white-40); }

/* Contact channels: vertical card on the right of the footer (desktop) */
@media (min-width: 861px) {
  .channels {
    grid-column: auto; justify-self: end; align-self: center;
    width: min(100%, 400px); margin-top: 0;
    padding: clamp(1.5rem, 2.5vw, 2rem);
  }
  .channels-head { flex-direction: column; align-items: flex-start; gap: .9rem; }
  .channels-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.75rem 1rem; justify-items: center; }
  .channels-foot { flex-direction: column; align-items: flex-start; gap: .5rem; }
}

/* channels card: sit clear of (and above) the curved tab */
@media (min-width: 861px) {
  .channels { position: relative; z-index: 2; align-self: start; margin-top: calc(var(--step-h) + 1.5rem); }
}

/* hub modal: the channels card as a popup */
.ch-panel--hub { background: var(--tg-navy); color: var(--tg-white); width: min(94vw, 520px); text-align: center; }
.ch-panel--hub h3 { margin: .25rem 0 0; font-family: var(--font-display); font-weight: 300; font-size: 1.75rem; color: var(--tg-white); }
.ch-panel--hub h3 .dot { display: inline-block; width: .14em; height: .14em; border-radius: 50%; background: var(--tg-blue); margin-left: .06em; }
.ch-hub-sub { margin: .4rem 0 0; font-size: .875rem; color: var(--white-40); }
.ch-panel--hub .channels-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.75rem 1rem; justify-items: center; margin-top: 1.75rem; }
.ch-panel--hub .ch-close { position: absolute; top: 1.1rem; right: 1.1rem; color: var(--white-40); }
.ch-panel--hub .ch-close:hover { color: var(--tg-white); }
@media (max-width: 480px) { .ch-panel--hub .channels-row { gap: 1.25rem .75rem; } }

/* channels card overlaps the Trusted by band; CTA hugs the footer top */
@media (min-width: 861px) {
  /* card top flush with the very top of the footer (top of the beige tab) */
  .channels { margin-top: calc(-1 * clamp(1.75rem, 4vw, 3rem)); }
  .footer-cta { align-self: start; padding-top: .5rem; }
}

/* hub popup mirrors the footer card exactly */
.ch-panel--hub { text-align: left; }
.ch-panel--hub .channels-head { margin-bottom: 1.75rem; padding-right: 2.5rem; }
.ch-panel--hub .channels-foot { margin-top: 2rem; padding-top: 1.25rem; }


/* ------------------------------------------------------------------
   Our services: expanding cards (hover/tap grows the active card,
   others collapse to slivers; vertical stack on mobile)
------------------------------------------------------------------ */
.xcards {
  display: grid; gap: .6rem; list-style: none;
  margin: clamp(2rem, 4vw, 3rem) 0 0; padding: 0;
  height: 520px; grid-template-rows: 1fr;
  transition: grid-template-columns .55s var(--ease), grid-template-rows .55s var(--ease);
}
.xcard {
  position: relative; overflow: hidden; cursor: pointer;
  border-radius: var(--radius); min-width: 0; min-height: 0;
  outline-offset: 3px;
}
.xcard img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; filter: grayscale(1); transform: scale(1.1);
  transition: filter .45s var(--ease), transform .6s var(--ease);
}
.xcard.is-active img { filter: grayscale(0); transform: scale(1); }
.xcard-shade {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(2, 10, 10, .82), rgba(2, 10, 10, .35) 45%, transparent 75%);
}
.xcard article {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  justify-content: flex-end; gap: .45rem; padding: 1.4rem;
}
.xcard-side {
  position: absolute; bottom: 1.4rem; left: 1.55rem;
  transform: rotate(-90deg); transform-origin: left bottom;
  white-space: nowrap; margin: 0;
  font-family: var(--font-body); font-size: .8125rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: rgba(245, 245, 252, .85);
  transition: opacity .3s var(--ease);
}
.xcard.is-active .xcard-side { opacity: 0; }
.xcard-icon { color: var(--tg-white); opacity: 0; transition: opacity .35s var(--ease) .1s; }
.xcard-icon svg { width: 1.6rem; height: 1.6rem; }
.xcard-title {
  margin: 0; font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.25rem, 1.8vw, 1.6rem); color: var(--tg-white);
  opacity: 0; transform: translateY(8px);
  transition: opacity .35s var(--ease) .18s, transform .45s var(--ease) .18s;
  white-space: nowrap;
}
.xcard p {
  margin: 0; max-width: 46ch; font-size: .9375rem; line-height: 1.55;
  color: rgba(245, 245, 252, .82);
  opacity: 0; transform: translateY(8px);
  transition: opacity .35s var(--ease) .26s, transform .45s var(--ease) .26s;
}
.xcard.is-active .xcard-icon,
.xcard.is-active .xcard-title,
.xcard.is-active .xcard p { opacity: 1; transform: none; }
@media (max-width: 767px) {
  .xcards { height: 660px; }
  .xcard-side { display: none; }
  .xcard-title { opacity: 1; transform: none; font-size: 1.1rem; white-space: normal; }
  .xcard:not(.is-active) article { padding: 1rem 1.25rem; }
  .xcard p { font-size: .875rem; }
}
@media (prefers-reduced-motion: reduce) {
  .xcards, .xcard img, .xcard-title, .xcard p, .xcard-icon, .xcard-side { transition: none !important; }
}

/* ------------------------------------------------------------------
   Our services: feature carousel — vertical chip wheel + card deck
------------------------------------------------------------------ */
.fcar {
  display: grid; grid-template-columns: 42% 1fr;
  min-height: 600px; margin-top: clamp(2rem, 4vw, 3rem);
  border-radius: clamp(2rem, 4vw, 3.5rem); overflow: hidden;
  border: 1px solid var(--ink-10);
}
.fcar-left {
  position: relative; background: var(--tg-blue); overflow: hidden;
  display: flex; align-items: center;
  padding-left: clamp(1.5rem, 3.5vw, 3.5rem);
}
.fcar-fade { position: absolute; inset-inline: 0; height: 4.5rem; z-index: 5; pointer-events: none; }
.fcar-fade--top { top: 0; background: linear-gradient(to bottom, var(--tg-blue), rgba(0, 88, 165, 0)); }
.fcar-fade--bottom { bottom: 0; background: linear-gradient(to top, var(--tg-blue), rgba(0, 88, 165, 0)); }
.fcar-chips { position: relative; width: 100%; height: 100%; }
.fcar-chip {
  position: absolute; left: 0; top: 50%; margin-top: -26px;
  display: inline-flex; align-items: center; gap: .8rem;
  padding: .95em 1.6em; border-radius: 100px; cursor: pointer;
  background: transparent; border: 1px solid rgba(255, 255, 255, .22);
  color: rgba(255, 255, 255, .62);
  font-family: var(--font-body); font-weight: 500; font-size: .8125rem;
  letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
  transition: transform .7s var(--ease), opacity .7s var(--ease),
              background .5s, color .5s, border-color .5s;
}
.fcar-chip:hover { border-color: rgba(255, 255, 255, .45); color: rgba(255, 255, 255, .95); }
.fcar-chip.is-active { background: #FFFFFF; color: var(--tg-blue); border-color: #FFFFFF; }
.fcar-ic { display: inline-grid; place-items: center; }
.fcar-ic svg { width: 18px; height: 18px; }
.fcar-right {
  position: relative; background: var(--bg-soft);
  display: flex; align-items: center; justify-content: center;
  padding: clamp(2rem, 4vw, 4rem);
}
.fcar-deck { position: relative; width: min(100%, 400px); aspect-ratio: 4 / 5; }
.fcar-card {
  position: absolute; inset: 0; overflow: hidden;
  border-radius: 2.2rem; border: 6px solid var(--bg); background: var(--bg);
  opacity: 0; transform: scale(.7); pointer-events: none; z-index: 0;
  transition: transform .6s var(--ease), opacity .5s var(--ease);
}
.fcar-card img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) blur(2px) brightness(.75);
  transition: filter .7s var(--ease);
}
.fcar-card.is-prev { opacity: .4; transform: translateX(-90px) scale(.85) rotate(-3deg); z-index: 10; }
.fcar-card.is-next { opacity: .4; transform: translateX(90px) scale(.85) rotate(3deg); z-index: 10; }
.fcar-card.is-active { opacity: 1; transform: none; z-index: 20; pointer-events: auto; }
.fcar-card.is-active img { filter: none; }
.fcar-cap {
  position: absolute; inset-inline: 0; bottom: 0;
  padding: 6rem 1.75rem 1.75rem;
  background: linear-gradient(to top, rgba(2, 10, 10, .88), rgba(2, 10, 10, .35) 55%, transparent);
  display: flex; flex-direction: column; align-items: flex-start; gap: .7rem;
  opacity: 0; transform: translateY(16px);
  transition: opacity .45s var(--ease) .15s, transform .55s var(--ease) .15s;
}
.fcar-card.is-active .fcar-cap { opacity: 1; transform: none; }
.fcar-tag {
  background: var(--bg); color: var(--ink);
  padding: .4em 1em; border-radius: 100px;
  font-size: .6875rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
}
.fcar-cap p {
  margin: 0; color: var(--tg-white);
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(1.15rem, 1.8vw, 1.45rem); line-height: 1.3;
}
@media (max-width: 1023px) {
  .fcar { grid-template-columns: 1fr; min-height: 0; }
  .fcar-left { height: 330px; padding-left: 0; justify-content: center; }
  .fcar-chips { width: max-content; margin: 0 auto; }
  .fcar-right { padding: 2rem 1.25rem 2.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  .fcar-chip, .fcar-card, .fcar-card img, .fcar-cap { transition: none !important; }
}

/* Our services: take-10 selector on desktop, image deck only on mobile */
@media (min-width: 1024px) { .fcar { display: none; } }
@media (max-width: 1023px) {
  .service-tabs, .service-panels { display: none !important; }
  .fcar { grid-template-columns: 1fr; border: 0; border-radius: 0; overflow: visible; min-height: 0; }
  .fcar-left { display: none; }
  .fcar-right { background: none; padding: .5rem 0 1rem; }
}

/* swipeable deck: horizontal gestures captured, vertical scroll preserved */
.fcar-deck { touch-action: pan-y; }
.fcar-card.is-active.dragging { transition: none; }

/* service imagery: wide frames matching the photos, no tight cropping */
.service-panel--split img { aspect-ratio: 16 / 9; }
@media (max-width: 1023px) {
  .fcar-deck { aspect-ratio: 16 / 9; }
  .fcar-cap { padding-top: 3.5rem; }
  .fcar-cap p { font-size: 1.05rem; }
}

/* mobile deck: header + description sit above the image, not on it */
@media (max-width: 1023px) {
  .fcar-deck { aspect-ratio: auto; height: calc((100vw - 2.5rem) * 9 / 16 + 9.5rem); }
  .fcar-card { display: flex; flex-direction: column; border: 0; background: none; border-radius: 0; overflow: visible; }
  .fcar-card img {
    order: 2; width: 100%; height: auto; aspect-ratio: 16 / 9;
    object-fit: cover; border-radius: 1.25rem;
    border: 5px solid var(--bg); box-shadow: 0 20px 40px -24px rgba(26, 28, 49, .4);
  }
  .fcar-cap {
    order: 1; position: static; background: none;
    padding: 0 .25rem .9rem; gap: .55rem; min-height: 8rem;
  }
  .fcar-cap p { color: var(--ink); font-size: 1.05rem; }
  .fcar-tag { background: var(--tg-blue); color: var(--tg-white); }
}

/* ------------------------------------------------------------------
   Seam fix: curve tabs overlap section boundaries by 1px so
   sub-pixel rounding on mobile can never show hairline gaps
------------------------------------------------------------------ */
.curve-step { top: -1px; height: calc(var(--step-h) + 1px); }
.curve-step--up { top: calc(-1 * var(--step-h)); height: calc(var(--step-h) + 1px); }

.marquee--clients { margin-top: -1px; }
.clients-head { margin-bottom: -1px; }

/* ------------------------------------------------------------------
   What we do points: Tuesday Blue cards with icons and ghost numbers
------------------------------------------------------------------ */
.wwd-point {
  position: relative; overflow: hidden;
  background: radial-gradient(circle at 28% 18%, #1168b8, var(--tg-blue) 68%);
  border-top: 0; border-radius: 1.1rem;
  padding: 2rem 1.9rem 1.9rem;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.wwd-point:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 56px -24px rgba(0, 88, 165, .55);
}
.wwd-point .wwd-label { color: rgba(255, 255, 255, .85); }
.wwd-point p { color: rgba(255, 255, 255, .9); }
.tc-icon {
  display: grid; place-items: center; width: 2.75rem; height: 2.75rem;
  border-radius: 50%; background: rgba(255, 255, 255, .16); color: #FFFFFF;
  margin-bottom: 1.1rem;
  transition: transform .45s cubic-bezier(.34, 1.56, .64, 1), background .3s;
}
.tc-icon svg { width: 1.3rem; height: 1.3rem; }
.wwd-point:hover .tc-icon { transform: scale(1.14) rotate(-4deg); background: rgba(255, 255, 255, .28); }
.tc-num {
  position: absolute; top: .4rem; right: 1.1rem;
  font-family: var(--font-display); font-weight: 300; line-height: 1;
  font-size: 3.75rem; color: rgba(255, 255, 255, .14); pointer-events: none;
}

/* ------------------------------------------------------------------
   Who we are: icon point columns + blue line sweep + lede underline
------------------------------------------------------------------ */
.gwho-points {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 3.5vw, 3.5rem); margin-top: clamp(2rem, 3.5vw, 3rem);
}
.gwho-point { position: relative; border-top: 1px solid var(--ink-10); padding-top: 1.4rem; }
.gwho-point::before {
  content: ''; position: absolute; top: -1px; left: 0;
  width: 100%; height: 2.5px; background: var(--tg-blue);
  transform: scaleX(0); transform-origin: left;
  transition: transform .55s var(--ease);
}
.gwho-point:hover::before { transform: scaleX(1); }
.gw-icon {
  display: grid; place-items: center; width: 2.75rem; height: 2.75rem;
  border-radius: 50%; background: rgba(0, 88, 165, .1); color: var(--tg-blue);
  margin-bottom: .9rem;
  transition: transform .45s cubic-bezier(.34, 1.56, .64, 1), background .3s;
}
.gw-icon svg { width: 1.3rem; height: 1.3rem; }
.gwho-point:hover .gw-icon { transform: scale(1.14) rotate(-4deg); background: rgba(0, 88, 165, .18); }
.gwho-point p { margin: 0; color: var(--ink-70); }
.ul-sweep {
  background-image: linear-gradient(var(--tg-blue), var(--tg-blue));
  background-repeat: no-repeat; background-size: 0% 3px; background-position: 0 96%;
  transition: background-size 1.1s var(--ease) .5s;
  padding-bottom: .05em;
}
.lede.is-visible .ul-sweep { background-size: 100% 3px; }
@media (max-width: 860px) { .gwho-points { grid-template-columns: 1fr; gap: 1.75rem; } }
@media (prefers-reduced-motion: reduce) {
  .ul-sweep { background-size: 100% 3px; transition: none; }
  .gwho-point::before { transition: none; }
}

/* touch devices: hover animations fire on scroll-through instead */
@media (hover: none) {
  .gwho-point.in-view::before { transform: scaleX(1); }
  .gwho-point.in-view .gw-icon { transform: scale(1.14) rotate(-4deg); background: rgba(0, 88, 165, .18); }
  .wwd-point.in-view .tc-icon { transform: scale(1.14) rotate(-4deg); background: rgba(255, 255, 255, .28); }
}

/* Cookie consent banner */
.cookie-banner {
  position: fixed; left: 1.5rem; bottom: 1.5rem; z-index: 250;
  width: min(26rem, calc(100% - 2rem));
  background: var(--tg-navy); color: var(--tg-white);
  padding: 1.25rem 1.375rem; border-radius: var(--radius);
  box-shadow: 0 18px 48px rgba(2, 10, 10, .22);
  font-size: .875rem; line-height: 1.55;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner-text { margin: 0 0 1rem; color: var(--white-70); }
.cookie-banner-text a { color: var(--tg-white); text-decoration-color: var(--white-40); }
.cookie-banner-text a:hover { text-decoration-color: var(--tg-white); }
.cookie-banner-actions { display: flex; gap: .625rem; }
.cookie-btn { flex: 1; justify-content: center; font-size: .875rem; padding: .75em 1.25em; }
.cookie-btn::after { content: none; }
.cookie-banner .btn--ghost { color: var(--tg-white); box-shadow: inset 0 0 0 1.5px var(--white-40); }
.cookie-banner .btn--ghost:hover { background: var(--white-10); }
.footer-legal { flex-wrap: wrap; row-gap: .5rem; }
@media (max-width: 640px) {
  .cookie-banner { left: 1rem; bottom: 1rem; }
}

/* Contact form: Turnstile (only takes up space when a challenge is shown) */
.cf-turnstile:not(:empty) { margin: .25rem 0 1rem; display: flex; justify-content: center; }
.contact-submit:disabled { opacity: .7; cursor: progress; transform: none; }
.contact-failed { color: #B42318; }

/* ------------------------------------------------------------------
   Illustrations (in place of stock photography): shown whole, never
   cropped, and sitting on the section colour as on the Connect site
------------------------------------------------------------------ */
.service-panel--split img.is-illustration {
  aspect-ratio: auto; height: auto; object-fit: contain;
  border-radius: 0;
  mix-blend-mode: multiply; /* white fills inside the drawings disappear into the beige */
}
/* the panel's entrance animation cuts the drawing off from the page behind it, so
   give it the section colour to multiply against: otherwise the white fills flash */
.service-panel--split.is-active { isolation: isolate; background: var(--bg); }
.split img.is-illustration {
  border-radius: 0; object-fit: contain; align-self: center;
}
@media (max-width: 1023px) {
  /* swipe deck: cards stay opaque so stacked drawings don't show through */
  .fcar-card img.is-illustration {
    object-fit: contain; background: #FFFFFF; padding: .75rem 1rem;
  }
}

/* the swipe deck's offset side cards (and reveal-scaled images) must not widen the page on phones */
main { overflow-x: clip; }
