/*
Theme Name: Tuesday Connect
Theme URI: https://tuesdayconnect.com
Author: Tuesday Group
Description: Standalone website theme for Tuesday Connect — global connectivity, run as a service. Plan. Connect. Maintain. Part of the Tuesday Group; shares the group design system with the Connect Teal palette.
Version: 1.0.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: tuesdayconnect
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: #35B6B4;      /* Connect Teal — accent */
  --tg-black: #020A0A;     /* Group Black — supporting */
  --tg-white: #F5F5FC;     /* Group White — supporting */
  --tg-pattern-blue: #68C8C7; /* Connect Teal 75% tint */

  --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: #2FA3A1; 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; }
/* Connect teal 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::before { content: none; } /* no teal dot in dropdowns */
.site-nav .sub-menu a:hover { background: rgba(53, 182, 180, .18); } /* muted teal highlight */

.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); /* Connect Teal 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));
}
.prev-soft { --prev: var(--bg-soft); }

/* 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-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: #9ADBDA; }
.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: #68C8C7; color: var(--ink); } /* Connect Teal 75% tint band */
.values h2, .values .lede { color: var(--ink); }
.values .eyebrow { color: var(--ink); opacity: .75; }
.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;
  color: #FFFFFF;
  padding: .6em 1.4em; border: 1.5px solid rgba(255,255,255,.65); border-radius: 100px;
  transition: background .3s, border-color .3s;
}
.value-chip:hover { background: rgba(255,255,255,.15); border-color: #FFFFFF; }

/* ------------------------------------------------------------------
   9. Marquee
------------------------------------------------------------------ */
.marquee { overflow: hidden; padding-block: clamp(2rem, 5vw, 4rem); background: var(--bg-soft); }
.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);
}
.marquee.has-curve-step { padding-top: calc(var(--step-h) + clamp(1.25rem, 2.5vw, 2rem)); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ------------------------------------------------------------------
   10. Footer / big CTA — the one navy block on the site
------------------------------------------------------------------ */
.site-footer {
  background: var(--bg); color: var(--ink); position: relative; overflow: hidden; /* light beige contact tab */
  --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: .25;
  -webkit-mask-image: linear-gradient(to bottom, #000 25%, transparent 78%);
  mask-image: linear-gradient(to bottom, #000 25%, transparent 78%);
}
.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; }
/* arrow restored on the footer CTA button */
.footer-cta h2 { max-width: 16ch; }
.footer-contact {
  display: flex; flex-direction: column; gap: 1.5rem;
  justify-self: end; align-self: start; text-align: left;
  width: var(--footer-col); position: relative; z-index: 1;
  margin-top: clamp(1rem, 2.5vw, 2rem);
}
.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:hover { color: var(--ink); }
.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 img { height: clamp(2.25rem, 4.5vw, 4rem); width: auto; }
.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-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; }
.site-footer .btn { background: var(--tg-navy); color: var(--tg-white); }
.site-footer .btn:hover { background: #23264A; }
@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 */ }


/* ------------------------------------------------------------------
   BYD-style service selector: pill tabs + single panel
------------------------------------------------------------------ */
.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: 3rem 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: #FFFFFF; }
.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; } }

/* ------------------------------------------------------------------
   Triangular pattern parallax backdrops
------------------------------------------------------------------ */
.tris {
  position: absolute; inset: 0; overflow: hidden;
  pointer-events: none; z-index: 0;
  -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);
}
.tris ~ .wrap { position: relative; z-index: 1; }
.tri {
  position: absolute; aspect-ratio: 1;
  background: url('assets/img/pattern-blue.svg') center / contain no-repeat;
  opacity: .14; will-change: transform;
}
.tri-1 { width: clamp(300px, 36vw, 560px); top: -6%; right: -8%; }
.tri-2 { width: clamp(200px, 24vw, 380px); top: 38%; left: -7%; }
.tri-3 { width: clamp(130px, 16vw, 260px); bottom: 6%; right: 26%; }
.tris--flip .tri-1 { right: auto; left: -10%; top: -8%; }
.tris--flip .tri-2 { left: auto; right: -8%; top: 34%; }
.tris--flip .tri-3 { right: auto; left: 20%; bottom: 5%; }
.tris--light .tri { background-image: url('assets/img/pattern-white.svg'); opacity: .18; }

/* 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: Connect Teal 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%, #45C2C0, var(--tg-blue) 62%);
  color: #FFFFFF;
  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: #FFFFFF; font-size: clamp(1.75rem, 4vw, 2.75rem); margin-bottom: 1.25rem; }
.contact-circle .dot { background: var(--tg-navy); }
.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: rgba(255, 255, 255, .8); margin-bottom: .15rem;
}
.cf-field input, .cf-field textarea {
  width: 100%; background: transparent; border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, .5);
  color: #FFFFFF; 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: #FFFFFF; }
.contact-submit { background: var(--tg-navy); color: #FFFFFF; margin-top: .5rem; }
.contact-submit:hover { background: var(--tg-navy); }
.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 rgba(255, 255, 255, .5); background: transparent;
  color: #FFFFFF; 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: rgba(255, 255, 255, .12); border-color: #FFFFFF; }
.contact-sent { color: var(--ink); font-weight: 600; margin-top: 1rem; }
.site-footer.has-curve-step { padding-top: calc(var(--step-h) + clamp(2rem, 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; }

/* Carrier logo marquee (live-site SVG logos) */
.marquee--carriers { background: transparent; overflow: hidden; padding-block: clamp(1.5rem, 3vw, 2.5rem); margin-top: 1.5rem; }
.marquee--carriers .marquee-track {
  display: flex; width: max-content;
  gap: clamp(2.5rem, 5vw, 4.5rem); align-items: center;
  animation: marquee 70s linear infinite;
}
.carrier-logo {
  height: clamp(1.8rem, 3.1vw, 2.9rem); width: auto; display: inline-block;
  filter: brightness(0); /* render every logo solid black */
}

/* Our products carousel: illustration + caption (no overlay) */
.service-panel--product { background: rgba(245, 245, 252, .6); }
.service-panel--product img {
  width: auto; max-width: 82%; height: auto;
  max-height: clamp(220px, 32vw, 360px); object-fit: contain;
  margin: clamp(1.5rem, 3vw, 2.5rem) auto 0;
}
.service-panel--product p {
  position: static; background: none;
  backdrop-filter: none; -webkit-backdrop-filter: none;
  padding: clamp(1.25rem, 2.5vw, 2rem) clamp(1.5rem, 4vw, 3rem) clamp(1.75rem, 3vw, 2.5rem);
  max-width: 70ch; margin-inline: auto;
}

/* Section headers ride up so the large heading sits level with the curve's lowest point */
#connect-services.has-curve-step,
#our-products.has-curve-step,
#carriers.has-curve-step,
#about-us.has-curve-step { padding-top: max(1rem, calc(var(--step-h) - 2.75rem + 20mm)); }/* eyebrow rises into the stone tab zone on the teal band: use ink for contrast */
#carriers .eyebrow { color: var(--ink); opacity: 1; }
#our-products .lede { max-width: 60ch; }
/* About us: Why choose us sub-heading */
.about-sub { margin-top: 3.5rem; }

/* white full stop and lede on the teal Carrier reach band */
#carriers h2 { color: #FFFFFF; }
#carriers h2 .dot { background: #FFFFFF; }
#carriers .lede { color: #FFFFFF; }

/* ------------------------------------------------------------------
   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(53, 182, 180, .55); }

/* 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; }
}

/* ------------------------------------------------------------------
   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; }
}

/* ------------------------------------------------------------------
   Our products illustrations: spring entrance + idle float
   (Framer Motion spring/float pattern, built natively)
------------------------------------------------------------------ */

@keyframes product-spring {
  from { opacity: 0; transform: translateY(30px) scale(.9); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes product-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}
@media (prefers-reduced-motion: reduce) {
  .service-panel--product img { animation: none; }
}

/* ------------------------------------------------------------------
   Our products: take-10 split layout with transparent illustrations
------------------------------------------------------------------ */
.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: center;
  background: none; border: 0; border-radius: 0; overflow: visible;
}
.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-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;
}
/* illustrations sit directly on the section colour: no card, white knocked out */
.service-panel--split.service-panel--product { background: none; }
.service-panel--split.service-panel--product img {
  width: 100%; max-width: 100%; height: auto;
  max-height: clamp(260px, 34vw, 440px); object-fit: contain;
  margin: 0 auto; border-radius: 0;
  mix-blend-mode: multiply; /* white PNG backgrounds disappear into the beige */
}
@media (max-width: 860px) {
  .service-panel--split.is-active { grid-template-columns: 1fr; gap: 1.75rem; }
}

/* ------------------------------------------------------------------
   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: #FFFFFF; }


/* ------------------------------------------------------------------
   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; } }

/* ------------------------------------------------------------------
   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; }
}

/* hero eyebrow in ink */
.hero .eyebrow { color: var(--ink); }

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

/* match Group: compensate for Connect's taller footer padding */
.footer-contact { margin-top: max(1rem, calc(var(--footer-col) * .9 - var(--step-h) - clamp(2rem, 4vw, 3rem) + clamp(1.75rem, 4vw, 3rem))); }

/* contact details tucked just under the pattern */
.footer-contact { margin-top: max(0px, calc(var(--footer-col) - 1rem + 3px - var(--step-h) - clamp(2rem, 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; }

/* ------------------------------------------------------------------
   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(53, 182, 180, .16); 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; } }

/* lift the contact card to match Group: compensates for Connect's
   taller footer padding so the card rides up beside the curved tab */
.footer-contact { align-self: center; margin-top: calc(-1 * var(--step-h)); }

/* ------------------------------------------------------------------
   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; }
}

/* What we do cards: sketch illustrations shown whole, not cropped */
.service-card--sketch img {
  object-fit: contain; background: var(--tg-white);
  padding: 1rem 1.25rem 0;
}

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

/* ------------------------------------------------------------------
   Carrier reach marquee: progressive edge blur
------------------------------------------------------------------ */
.marquee--carriers { 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%); }

/* ------------------------------------------------------------------
   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%, #45C2C0, 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 */
  #connect-services.has-curve-step,
  #our-products.has-curve-step,
  #carriers.has-curve-step,
  #about-us.has-curve-step { padding-top: calc(var(--step-h) + 1.25rem); }
  .clients-head h2 { font-size: 1.5rem; }
}

/* 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); }
}

/* ------------------------------------------------------------------
   Who we are: icon-led point columns
------------------------------------------------------------------ */
.who-points {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 3.5vw, 3.5rem); margin-top: clamp(2.25rem, 4vw, 3.25rem);
}
.who-point { border-top: 1px solid var(--ink-10); padding-top: 1.4rem; }
.wp-icon {
  display: grid; place-items: center; width: 2.75rem; height: 2.75rem;
  border-radius: 50%; background: rgba(53, 182, 180, .16); color: var(--tg-blue);
  margin-bottom: .9rem;
}
.wp-icon svg { width: 1.3rem; height: 1.3rem; }
.wwd-label {
  display: block; font-size: .8125rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--tg-blue); margin-bottom: .7rem;
}
.who-point p { margin: 0; color: var(--ink-70); }
@media (max-width: 860px) { .who-points { grid-template-columns: 1fr; gap: 1.75rem; } }

/* Who we are / What we do headers ride higher toward the tab top (desktop) */
@media (min-width: 641px) {
  #who-we-are.has-curve-step--up { padding-top: max(1rem, calc(var(--step-h) - 2.75rem + 6mm)); }
  #connect-services.has-curve-step { padding-top: max(1rem, calc(var(--step-h) - 2.75rem + 6mm)); }
}
/* Left-hand tab (curve on the right) sits right over the title: give it more air.
   Scales 20px (phone) → ~38px (tablet) → 60px (desktop, 1200px+) */
#our-products > .wrap,
#carriers > .wrap,
#about-us > .wrap { padding-top: clamp(1.25rem, 5vw, 60px); }

/* ------------------------------------------------------------------
   Contact channels: ink card, tiles, hub + reveal modals, copy toast
------------------------------------------------------------------ */
.channels {
  grid-column: 1 / -1;
  background: var(--tg-navy); border: 1px solid var(--white-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(2, 10, 10, .5);
}
.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(--white-40); }
.ch-sub { display: block; font-size: .8125rem; color: var(--white-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(--white-10); color: var(--white-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: rgba(245, 245, 252, .06); border: 1px solid var(--white-10); color: var(--tg-white);
  box-shadow: 0 10px 26px -14px rgba(2, 10, 10, .6);
  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: #FFFFFF;
  box-shadow: 0 16px 40px -14px rgba(53, 182, 180, .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(--white-70); transition: color .3s; }
.channel:hover .ch-label { color: var(--tg-white); }
.ch-hint { font-size: .7rem; color: var(--white-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(--white-10);
  font-size: .8125rem; color: var(--white-40);
}
.channels-foot span { display: inline-flex; align-items: center; gap: .45rem; }
.ch-pin { width: .9rem; height: .9rem; flex: none; }
.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: #FFFFFF; }
.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(53, 182, 180, .16); color: var(--tg-blue);
  padding: .45em 1em; border-radius: 8px; transition: background .25s;
}
.btn-copy:hover { background: rgba(53, 182, 180, .26); }
.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); }
.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 (min-width: 861px) {
  .channels {
    grid-column: auto; justify-self: end; align-self: start;
    width: min(100%, 400px); padding: clamp(1.5rem, 2.5vw, 2rem);
    position: relative; z-index: 2;
    /* card top flush with the footer top (top of the curved tab) */
    margin-top: calc(-1 * (var(--step-h) + clamp(2rem, 4vw, 3rem)));
  }
  .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; }
  .footer-cta { align-self: start; padding-top: .5rem; }
}
@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; }
  .ch-panel--hub .channels-row { gap: 1.25rem .75rem; }
}

/* 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; }

/* How we work + About us text cards: Connect Teal */
#how-we-work .service-card--text,
#about-us .service-card--text {
  background: var(--tg-blue); border-color: var(--tg-blue);
}
#how-we-work .service-card--text h3,
#about-us .service-card--text h3 { color: #FFFFFF; }
#how-we-work .service-card--text p,
#about-us .service-card--text p { color: rgba(255, 255, 255, .88); }
#how-we-work .service-card--text:hover,
#about-us .service-card--text:hover {
  border-color: #FFFFFF;
  box-shadow: 0 28px 56px -24px rgba(53, 182, 180, .6);
}

/* teal text cards: icons, ghost numbers, gradient depth, shine sweep */
#how-we-work .service-card--text,
#about-us .service-card--text {
  position: relative; overflow: hidden;
  background: radial-gradient(circle at 28% 18%, #45C2C0, var(--tg-blue) 68%);
}
.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; }
.service-card--text: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;
}
/* light sweep across the card on hover */
#how-we-work .service-card--text::after,
#about-us .service-card--text::after {
  content: ''; position: absolute; top: -10%; bottom: -10%; width: 45%; left: -65%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .2), transparent);
  transform: skewX(-14deg); transition: left .7s var(--ease); pointer-events: none;
}
#how-we-work .service-card--text:hover::after,
#about-us .service-card--text:hover::after { left: 125%; }
@media (prefers-reduced-motion: reduce) {
  #how-we-work .service-card--text::after, #about-us .service-card--text::after { display: none; }
}

/* Who we are points: teal top-line sweep + springing icons on hover */
.who-point { position: relative; }
.who-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);
}
.who-point:hover::before { transform: scaleX(1); }
.wp-icon { transition: transform .45s cubic-bezier(.34, 1.56, .64, 1), background .3s; }
.who-point:hover .wp-icon { transform: scale(1.14) rotate(-4deg); background: rgba(53, 182, 180, .28); }

/* What we do intro: bigger, bolder, with an animated teal underline */
#connect-services .lede {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(1.75rem, 3.2vw, 2.9rem); line-height: 1.22;
  color: var(--ink); max-width: 32ch;
}
#connect-services .lede + p {
  font-size: clamp(1.0625rem, 1.5vw, 1.3rem); line-height: 1.6;
  color: var(--ink-70); max-width: 58ch;
}
.hl { font-style: normal; font-weight: 600; color: var(--tg-blue); }
.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 (prefers-reduced-motion: reduce) {
  .ul-sweep { background-size: 100% 3px; transition: none; }
  .who-point::before { transition: none; }
}

/* shine sweep removed from the teal text cards */
#how-we-work .service-card--text::after,
#about-us .service-card--text::after { content: none; }

/* ------------------------------------------------------------------
   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); }

/* touch devices: hover animations fire on scroll-through instead */
@media (hover: none) {
  .who-point.in-view::before { transform: scaleX(1); }
  .who-point.in-view .wp-icon { transform: scale(1.14) rotate(-4deg); background: rgba(53, 182, 180, .28); }
  #how-we-work .service-card--text.in-view .tc-icon,
  #about-us .service-card--text.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; }
