/* ============================================================
   M&S Tech Media — Components
   Header / nav / mega menu · Hero · Service index · Media ·
   Mosaics · Statement · Process · CTA · Contact · Footer
   ============================================================ */

/* ------------------------------------------------------------
   Header
   ------------------------------------------------------------ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(245, 242, 236, 0.94);
  backdrop-filter: saturate(1.2) blur(10px);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--color-border);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  height: 100%;
}
.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}
.brand img { height: 44px; width: auto; }

.main-nav { display: flex; align-items: center; }
.main-nav__list { display: flex; align-items: center; gap: var(--space-2); }
.main-nav__list > li { position: relative; list-style: none; }
.main-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--text-sm);
  color: var(--color-ink);
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  transition: color var(--dur) var(--ease);
}
.main-nav__link:hover { color: var(--color-accent); }
.main-nav__chevron { transition: transform var(--dur) var(--ease); }
.has-mega.is-open .main-nav__chevron { transform: rotate(180deg); }

.site-header__actions { display: flex; align-items: center; gap: var(--space-3); }
.header__cta { display: inline-flex; }

/* Mega menu */
.mega {
  position: absolute;
  top: calc(100% + 18px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  width: min(760px, 92vw);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  box-shadow: 0 24px 60px rgba(17, 17, 17, 0.12);
  padding: var(--space-8);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur);
}
.has-mega.is-open .mega {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.mega__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-8); }
.mega__group { list-style: none; }
.mega__group-title {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-faint);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--color-border);
}
.mega__group li { list-style: none; margin-bottom: var(--space-2); }
.mega__link {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--text-sm);
  color: var(--color-text);
  line-height: 1.35;
  transition: color var(--dur) var(--ease);
}
.mega__link:hover { color: var(--color-accent); }
.mega__link small {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--text-xs);
  color: var(--color-faint);
  margin-top: 2px;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 11px;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  background: transparent;
}
.nav-toggle span { display: block; width: 100%; height: 2px; background: var(--color-ink); border-radius: 1px; transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile panel */
.nav-panel {
  position: fixed;
  top: var(--header-h);
  right: 0;
  width: min(420px, 100vw);
  height: calc(100vh - var(--header-h));
  background: var(--color-paper);
  border-left: 1px solid var(--color-border);
  transform: translateX(100%);
  transition: transform var(--dur) var(--ease);
  overflow-y: auto;
  z-index: 99;
  padding: var(--space-6);
}
.nav-panel.is-open { transform: translateX(0); }
.nav-panel__list { display: flex; flex-direction: column; }
.nav-panel__list > li { list-style: none; }
.nav-panel__list > li > a,
.nav-panel__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 15px 4px;
  border: 0;
  border-bottom: 1px solid var(--color-border);
  background: transparent;
  text-align: left;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-xl);
  color: var(--color-ink);
}
.nav-panel__chevron { flex: 0 0 auto; transition: transform var(--dur) var(--ease); }
.nav-panel__toggle[aria-expanded="true"] .nav-panel__chevron { transform: rotate(180deg); }
.nav-panel__sub { padding: var(--space-2) 0 var(--space-4); }
.nav-panel__sub .mega__group-title { margin-top: var(--space-4); }
.nav-panel__sub .mega__link { padding: 6px 0; font-size: var(--text-body); }
.nav-panel__cta { margin-top: var(--space-8); width: 100%; }

/* Pre-layers — the coloured panels that sweep in behind the mobile
   drawer (staggered menu). Sibling of the header/panel so nothing
   is clipped by backdrop-filter. */
.nav-layers {
  position: fixed;
  top: var(--header-h);
  right: 0;
  width: min(420px, 100vw);
  height: calc(100vh - var(--header-h));
  z-index: 98;
  pointer-events: none;
  transform: translateX(100%);
}
.nav-layer {
  position: absolute;
  inset: 0;
}
.nav-layer--accent { background: var(--color-accent); }
.nav-layer--ink { background: var(--color-ink); right: 10%; }

/* Numbered editorial index on the mobile drawer items */
.nav-panel__list { counter-reset: navNum; }
.nav-panel__list > li > a { counter-increment: navNum; position: relative; }
.nav-panel__list > li > a::before {
  content: "0" counter(navNum);
  position: absolute;
  right: 4px;
  bottom: 16px;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  color: var(--color-faint);
  opacity: var(--num-o, 1);
}
/* When GSAP drives the drawer, it owns the transforms — kill the CSS
   transition so the two never fight. */
body.gsap-nav .nav-panel,
body.gsap-nav .nav-layers { transition: none; }

/* ------------------------------------------------------------
   Hero (homepage)
   ------------------------------------------------------------ */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 92vh;
  padding-top: var(--header-h);
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}
.hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(17,17,17,0.82) 0%, rgba(17,17,17,0.25) 55%, rgba(17,17,17,0.15) 100%);
  z-index: 1;
}
.hero__inner {
  position: relative;
  z-index: 2;
  padding-bottom: var(--space-20);
  color: #fff;
}
.hero__kicker {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-3);
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: var(--space-6);
}
.hero__kicker::before { content: ""; width: 26px; height: 2px; background: var(--color-red); }
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7vw, 6rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.04em;
  color: #fff;
  max-width: 14ch;
  text-wrap: balance;
  margin-bottom: var(--space-6);
}
.hero__lede {
  font-size: var(--text-xl);
  color: rgba(255,255,255,0.88);
  max-width: 520px;
  margin-bottom: var(--space-8);
}
.hero__actions { display: flex; gap: var(--space-3); flex-wrap: wrap; }

/* ------------------------------------------------------------
   Hero — service pages (shared content layout)
   The full-bleed artwork variant lives further below; these
   cover the shared typography + actions block.
   ------------------------------------------------------------ */
.hero-art {
  position: relative;
  background: var(--color-paper-2);
  overflow: hidden;
}
.hero-art__content { max-width: 540px; }
.hero-art__title {
  font-size: clamp(2.6rem, 4.8vw, 5.2rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  text-wrap: balance;
  margin-bottom: var(--space-8);
}
.hero-art__lede { margin-bottom: var(--space-8); }
.hero-art__actions { display: flex; gap: var(--space-4); flex-wrap: wrap; }

@media (max-width: 900px) {
  .hero-art__content { max-width: none; }
}
@media (max-width: 620px) {
  .hero-art__title { font-size: clamp(2.2rem, 8.5vw, 2.8rem); }
  .hero-art__lede { font-size: 1.05rem; }
  .hero-art__actions .btn { font-size: var(--text-sm); padding: 14px 22px; }
}

/* ------------------------------------------------------------
   Hero — full-bleed FINAL artwork (service pages)
   The artwork fills the hero at its natural ratio (kept crisp via
   the per-service --ar ratio). Typography is overlaid on the quiet
   side the artwork leaves open — left or right per artwork.
   ------------------------------------------------------------ */
.hero-art--art .hero-art__stage {
  position: relative;
  width: 100%;
  aspect-ratio: var(--ar, 7 / 3);
  max-height: 800px;
  margin-inline: auto;
}
.hero-art__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-art--art .hero-art__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
}
.hero-art--art .hero-art__overlay .container { width: 100%; }
.hero-art__content--left { max-width: 540px; margin-right: auto; }
.hero-art__content--right { max-width: 540px; margin-left: auto; }
.hero-art--art .hero-art__title { font-size: clamp(3rem, 5vw, 5.6rem); }
.hero-art--art .hero-art__lede { font-size: 1.15rem; }

/* Mobile: typography first on the paper canvas, artwork beneath at
   its full natural ratio — never squashed or aggressively cropped. */
@media (max-width: 768px) {
  .hero-art--art { display: flex; flex-direction: column; }
  .hero-art--art .hero-art__overlay {
    position: static;
    order: 1;
    /* clear the fixed header height so the first text line never
       hides beneath the translucent nav bar */
    padding: calc(var(--header-h) + var(--space-6)) 0 var(--space-6);
  }
  .hero-art__content--left,
  .hero-art__content--right { margin: 0; max-width: none; }
  .hero-art--art .hero-art__stage {
    order: 2;
    aspect-ratio: auto;
    max-height: none;
  }
  .hero-art--art .hero-art__img { position: static; height: auto; }
  .hero-art--art .hero-art__title { font-size: clamp(2.25rem, 9vw, 3.2rem); }
  .hero-art--art .hero-art__lede { font-size: 1.05rem; }
}

/* ------------------------------------------------------------
   Hero — homepage responsive
   The homepage hero has no ratio; text sits on the scrim.
   ------------------------------------------------------------ */
@media (max-width: 900px) {
  .hero { min-height: 84vh; }
  .hero__inner { padding-bottom: var(--space-16); }
}
@media (max-width: 620px) {
  .hero__kicker { letter-spacing: 0.12em; }
  .hero__title { font-size: clamp(2rem, 8.5vw, 2.6rem); }
  .hero__lede { font-size: 1.05rem; }
  .hero__inner { padding-bottom: var(--space-12); }
}

/* ------------------------------------------------------------
   Service index (numbered editorial list)
   ------------------------------------------------------------ */
.service-index { border-top: 1px solid var(--color-border); }
.service-index__row {
  display: grid;
  grid-template-columns: 80px 1.2fr 2fr 1fr;
  gap: var(--space-6);
  align-items: center;
  padding: var(--space-8) 0;
  border-bottom: 1px solid var(--color-border);
  transition: background var(--dur) var(--ease);
}
.service-index__row:hover { background: var(--color-white); }
.service-index__num {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-faint);
}
.service-index__name {
  font-family: var(--font-display);
  font-size: var(--text-h3);
  font-weight: 700;
  line-height: 1.1;
  color: var(--color-ink);
}
.service-index__desc { color: var(--color-muted); font-size: var(--text-body); }
.service-index__arrow {
  justify-self: end;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--color-border-strong);
  border-radius: 50%;
  color: var(--color-ink);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.service-index__row:hover .service-index__arrow { background: var(--color-ink); color: #fff; border-color: var(--color-ink); }

/* ------------------------------------------------------------
   Media (image + caption)
   ------------------------------------------------------------ */
.media { position: relative; overflow: hidden; }
.media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.7s var(--ease); }
.media:hover img { transform: scale(1.04); }
.media--r16 { aspect-ratio: 16 / 10; }
.media--r43 { aspect-ratio: 4 / 3; }
.media--r11 { aspect-ratio: 1 / 1; }
.media--r34 { aspect-ratio: 3 / 4; }
.media--rwide { aspect-ratio: 21 / 9; }
.media__caption {
  position: absolute;
  left: var(--space-4);
  bottom: var(--space-4);
  background: var(--color-paper);
  padding: 6px 12px;
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-ink);
}

/* Mosaic */
.mosaic { display: grid; gap: var(--space-4); }
.mosaic--hero {
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 1fr 1fr;
}
.mosaic--hero .media:first-child {
  grid-row: 1 / -1;
  aspect-ratio: auto;
  height: 100%;
}
.mosaic--hero .media:first-child img { height: 100%; }

/* ------------------------------------------------------------
   Statement (dark editorial)
   ------------------------------------------------------------ */
.statement {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 4.5vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--color-ink);
  max-width: 20ch;
}

/* ------------------------------------------------------------
   Process (workflow) — base stepper + per-service variants
   Dark band · white typography · blue progression numbers
   ------------------------------------------------------------ */
.process {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-8);
}
/* connecting progression track behind the numbers */
.process::before {
  content: "";
  position: absolute;
  top: 21px;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.16);
}
.process__step { position: relative; padding-top: 56px; }
.process__num {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: var(--color-ink);
  color: var(--color-accent);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
}
.process__body { display: flex; flex-direction: column; gap: var(--space-2); }
.process__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: #fff;
  margin: 0;
}
.process__text {
  color: rgba(255, 255, 255, 0.72);
  font-size: var(--text-body);
  line-height: 1.55;
  margin: 0;
}

/* ---------- Variant: vertical timeline (digital printing) ---------- */
.process--timeline { display: block; }
.process--timeline::before { display: none; }
.process--timeline .process__step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: var(--space-8);
  align-items: start;
  padding: 0 0 var(--space-8);
}
.process--timeline .process__step::before {
  content: "";
  position: absolute;
  left: 27px;
  top: 60px;
  bottom: 0;
  width: 1px;
  background: rgba(255, 255, 255, 0.15);
}
.process--timeline .process__step:last-child::before { display: none; }
.process--timeline .process__num {
  position: static;
  width: 56px;
  height: 56px;
  border-radius: 0;
  font-size: 22px;
}
.process--timeline .process__body { padding-top: var(--space-2); }

/* ---------- Variant: wide bands (large format) ---------- */
.process--bands { display: block; }
.process--bands::before { display: none; }
.process--bands .process__step {
  display: grid;
  grid-template-columns: 110px 1fr;
  grid-template-areas: "num body";
  gap: var(--space-6);
  align-items: center;
  padding: var(--space-6) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.process--bands .process__num {
  grid-area: num;
  position: static;
  width: auto;
  height: auto;
  border: 0;
  background: none;
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: var(--color-accent);
  justify-self: start;
}
.process--bands .process__body { grid-area: body; }
.process--bands .process__title { font-size: var(--text-h3); }

/* ---------- Variant: zig-zag rows (DTF printing) ---------- */
.process--zigzag { display: block; }
.process--zigzag::before { display: none; }
.process--zigzag .process__step {
  display: flex;
  align-items: flex-start;
  gap: var(--space-8);
  padding: var(--space-8) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.process--zigzag .process__num {
  position: static;
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  font-size: 24px;
  margin-top: 4px;
}
.process--zigzag .process__step:nth-child(even) { flex-direction: row-reverse; }
.process--zigzag .process__body { flex: 1; }

/* ---------- Variant: stitched rings (embroidery) ---------- */
.process--stitch::before {
  border-top: 2px dashed rgba(255, 255, 255, 0.28);
}
.process--stitch .process__num {
  width: 52px;
  height: 52px;
  border: 2px dashed rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  background: var(--color-ink);
  font-size: 18px;
}

/* ---------- Variant: 2×2 grid (UV DTF) ---------- */
.process--grid {
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12) var(--space-16);
}
.process--grid::before { display: none; }
.process--grid .process__step { padding-top: 0; }
.process--grid .process__num { position: static; margin-bottom: var(--space-4); }

/* ---------- Variant: card deck (plastic ID cards) ---------- */
.process--deck { display: block; }
.process--deck::before { display: none; }
.process--deck .process__step {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: var(--space-8);
  align-items: center;
  padding: var(--space-6) var(--space-8);
  margin-bottom: var(--space-4);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.02);
}
.process--deck .process__num {
  position: static;
  width: 88px;
  height: 56px;
  border-radius: var(--radius-sm);
  font-size: 18px;
}
.process--deck .process__step:nth-child(even) { transform: translateX(48px); }

/* ---------- Variant: colour swatches (branding & design) ---------- */
.process--swatches { display: block; }
.process--swatches::before { display: none; }
.process--swatches .process__step {
  display: grid;
  grid-template-columns: 20px 64px 1fr;
  grid-template-areas: "chip num body";
  gap: var(--space-6);
  align-items: center;
  padding: var(--space-6) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.process--swatches .process__step::before {
  content: "";
  grid-area: chip;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-accent);
}
.process--swatches .process__step:nth-child(2)::before { background: var(--color-red); }
.process--swatches .process__step:nth-child(3)::before { background: var(--color-paper); }
.process--swatches .process__step:nth-child(4)::before { background: #ffffff; }
.process--swatches .process__num {
  grid-area: num;
  position: static;
  width: auto;
  height: auto;
  border: 0;
  background: none;
  font-size: var(--text-sm);
  color: var(--color-faint);
}
.process--swatches .process__body { grid-area: body; }

/* ---------- Variant: checklist (office supplies) ---------- */
.process--checklist { display: block; }
.process--checklist::before { display: none; }
.process--checklist .process__step {
  display: grid;
  grid-template-columns: 44px 1fr;
  grid-template-areas: "num body";
  gap: var(--space-6);
  align-items: center;
  padding: var(--space-6) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.process--checklist .process__num {
  grid-area: num;
  position: static;
  width: 40px;
  height: 40px;
  border-radius: 4px;
  border: 1px solid var(--color-accent);
  background: transparent;
  color: var(--color-accent);
  font-size: 16px;
}
.process--checklist .process__body { grid-area: body; }

/* ---------- Variant: alternating rows (promotional materials) ---------- */
.process--alternating { display: block; }
.process--alternating::before { display: none; }
.process--alternating .process__step {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas: "num body";
  gap: var(--space-16);
  align-items: start;
  padding: var(--space-8) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.process--alternating .process__num {
  grid-area: num;
  position: static;
  width: 88px;
  height: 88px;
  font-size: 30px;
  justify-self: start;
}
.process--alternating .process__step:nth-child(even) { grid-template-areas: "body num"; }
.process--alternating .process__step:nth-child(even) .process__num { justify-self: end; }
.process--alternating .process__body { grid-area: body; }
.process--alternating .process__title { font-size: var(--text-h3); }

/* Mobile: every process collapses to a clean numbered stack */
@media (max-width: 900px) {
  .process,
  .process--grid {
    grid-template-columns: 1fr;
    gap: var(--space-12);
  }
  .process--timeline, .process--bands, .process--zigzag, .process--deck,
  .process--swatches, .process--checklist, .process--alternating {
    display: block;
  }
  .process::before, .process__step::before { display: none; }
  .process__step,
  .process--timeline .process__step, .process--bands .process__step,
  .process--zigzag .process__step, .process--deck .process__step,
  .process--swatches .process__step, .process--checklist .process__step,
  .process--alternating .process__step {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
    padding: var(--space-4) 0 var(--space-6);
    transform: none;
    border: 0;
    background: none;
    margin: 0;
  }
  /* Same specificity as the desktop offset so it actually resets on mobile */
  .process--deck .process__step:nth-child(even) { transform: none; }
  .process__num,
  .process--timeline .process__num, .process--bands .process__num,
  .process--zigzag .process__num, .process--deck .process__num,
  .process--swatches .process__num, .process--checklist .process__num,
  .process--alternating .process__num {
    position: static;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: var(--color-ink);
    font-size: 18px;
    margin-bottom: var(--space-2);
  }
  .process__body { width: 100%; }
  .process__step:not(:last-child)::after {
    content: "↓";
    margin-top: var(--space-4);
    font-size: 18px;
    line-height: 1;
    color: rgba(255, 255, 255, 0.4);
  }
}

/* ------------------------------------------------------------
   Values (visual philosophy)
   ------------------------------------------------------------ */
.value-list { border-top: 1px solid var(--color-border); }
.value-list__row {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: var(--space-6);
  align-items: center;
  padding: var(--space-6) 0;
  border-bottom: 1px solid var(--color-border);
}
.value-list__num { font-family: var(--font-display); font-size: var(--text-sm); font-weight: 600; color: var(--color-faint); }
.value-list__name { font-family: var(--font-display); font-size: var(--text-h2); font-weight: 700; letter-spacing: -0.02em; color: var(--color-ink); }
.value-list__mark { color: var(--color-red); font-size: var(--text-xl); }

/* ------------------------------------------------------------
   CTA
   ------------------------------------------------------------ */
.quote-cta {
  position: relative;
  background: var(--color-accent);
  color: #fff;
  padding: var(--space-20) var(--space-6);
  overflow: hidden;
}
.quote-cta h2 { color: #fff; }
.quote-cta__grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--space-12); align-items: center; }
.quote-cta__eyebrow { color: rgba(255,255,255,0.75); }
.quote-cta__eyebrow::before { background: #fff; }
.quote-cta__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }

/* ------------------------------------------------------------
   Partners (client logo wall)
   ------------------------------------------------------------ */
.partners { margin-top: var(--space-12); }
.partners__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-2);
}
.partners__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  min-height: 150px;
  padding: var(--space-6);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  transition: border-color var(--dur) var(--ease);
}
.partners__item:hover { border-color: var(--color-border-strong); }
a.partners__item { text-decoration: none; color: var(--color-ink); }
a.partners__item:hover .partners__name { color: var(--color-accent); }
.partners__logo {
  height: 56px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  filter: grayscale(1) contrast(1.02);
  opacity: 0.78;
  transition: filter var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.partners__item:hover .partners__logo { filter: grayscale(0); opacity: 1; }
.partners__name {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-ink);
  letter-spacing: -0.01em;
  line-height: 1.25;
  text-align: center;
}

/* ------------------------------------------------------------
   Contact
   ------------------------------------------------------------ */
.contact-panel {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: var(--space-16);
}
.contact-fact { border-top: 1px solid var(--color-border); padding: var(--space-4) 0; }
.contact-fact__label { font-family: var(--font-display); font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-faint); margin-bottom: var(--space-2); }
.contact-fact__value { font-size: var(--text-lg); color: var(--color-ink); }

/* ------------------------------------------------------------
   Forms
   ------------------------------------------------------------ */
.field { display: flex; flex-direction: column; gap: var(--space-2); margin-bottom: var(--space-6); }
.field label { font-family: var(--font-display); font-size: var(--text-sm); font-weight: 600; color: var(--color-ink); }
.field input,
.field select,
.field textarea {
  font-family: var(--font-body);
  font-size: var(--text-body);
  padding: 14px 16px;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  background: var(--color-white);
  color: var(--color-ink);
  transition: border-color var(--dur) var(--ease);
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); }
.form-grid .field--full { grid-column: 1 / -1; }
.hp-field { position: absolute; left: -9999px; }

/* ------------------------------------------------------------
   Footer
   ------------------------------------------------------------ */
.site-footer {
  background: var(--color-ink);
  color: #b8b8b8;
  padding: var(--space-20) 0 var(--space-8);
}
.site-footer a { color: #dcdcdc; }
.site-footer a:hover { color: #fff; }
.site-footer__top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: var(--space-12);
  padding-bottom: var(--space-16);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.site-footer__brand img { height: 52px; width: auto; margin-bottom: var(--space-4); filter: brightness(0) invert(1); }
.site-footer__about { color: #9a9a9a; font-size: var(--text-sm); max-width: 320px; }
.site-footer__heading { color: #fff; font-family: var(--font-display); font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: var(--space-6); }
.site-footer__list { list-style: none; }
.site-footer__list li { margin-bottom: var(--space-3); }
.site-footer__list a { font-size: var(--text-sm); }
.site-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  flex-wrap: wrap;
  padding-top: var(--space-8);
  font-size: var(--text-xs);
  color: #7a7a7a;
}
.site-footer__mark {
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 11rem);
  font-weight: 700;
  line-height: 0.8;
  letter-spacing: -0.04em;
  color: rgba(255,255,255,0.05);
  margin-top: var(--space-12);
  user-select: none;
}

/* ------------------------------------------------------------
   Responsive header
   ------------------------------------------------------------ */
@media (max-width: 1080px) {
  .main-nav, .header__cta { display: none; }
  .nav-toggle { display: flex; }
}
@media (max-width: 900px) {
  .site-footer__top { grid-template-columns: 1fr 1fr; }
  .contact-panel { grid-template-columns: 1fr; }
  .service-index__row { grid-template-columns: 48px 1fr auto; }
  .service-index__desc { grid-column: 2 / -1; }
  .quote-cta__grid { grid-template-columns: 1fr; }
  .mosaic--hero { grid-template-columns: 1fr; }
  .mosaic--hero .media:first-child { grid-row: auto; }
  .partners__grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 620px) {
  .form-grid { grid-template-columns: 1fr; }
  .site-footer__top { grid-template-columns: 1fr; }
  .partners__grid { grid-template-columns: repeat(2, 1fr); }
  .partners__logo { height: 44px; }
}

/* ------------------------------------------------------------
   Rotating word text
   The visible glyphs sweep up/out then the next variant sweeps
   up/in; the span reserves the widest variant so headings never
   reflow. Inherits the surrounding text colour everywhere.
   ------------------------------------------------------------ */
.rotating-text {
  display: inline-block;
  position: relative;
  white-space: nowrap;
}
.rotating-text__view {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}
.rotating-text__char {
  display: inline-block;
  white-space: pre;
  will-change: transform, opacity;
}
.rotating-text__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
@media (prefers-reduced-motion: reduce) {
  .rotating-text__view { overflow: visible; }
}

/* ------------------------------------------------------------
   Gradient blinds — WebGL animation on black sections
   The canvas sits behind the section content and glows over the
   near-black background via mix-blend-mode: lighten. Text and
   media stay crisp above it.
   ------------------------------------------------------------ */
.blinds { position: relative; isolation: isolate; }
.blinds__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  mix-blend-mode: lighten;
  pointer-events: none;
  z-index: 0;
}
.blinds > *:not(.blinds__canvas) { position: relative; z-index: 1; }

/* ------------------------------------------------------------
   WhatsApp
   Floating chat button (every page) + inline links in the
   contact panel and footer. Official glyph, flat brand green.
   ------------------------------------------------------------ */
.whatsapp-float {
  position: fixed;
  right: calc(20px + env(safe-area-inset-right));
  bottom: calc(20px + env(safe-area-inset-bottom));
  z-index: 80; /* below the nav (98–100) so it never fights the menu */
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 10px 28px rgba(18, 140, 126, 0.35);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.whatsapp-float.is-in { opacity: 1; transform: translateY(0); }
.whatsapp-float:hover { box-shadow: 0 14px 34px rgba(18, 140, 126, 0.45); transform: translateY(-2px); }
.whatsapp-float:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 3px; }
.whatsapp-float .wa-icon { width: 30px; height: 30px; }
.whatsapp-float::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, 0.5);
  animation: wa-pulse 2.6s ease-out infinite;
}
@keyframes wa-pulse {
  0% { transform: scale(1); opacity: 0.9; }
  70%, 100% { transform: scale(1.55); opacity: 0; }
}

/* Inline WhatsApp links (contact panel + footer) */
.wa-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: #128c7e;
}
.wa-link .wa-icon { width: 18px; height: 18px; }
.wa-link:hover { color: #0d6b60; }
/* official green on the dark footer so the link stays legible */
.site-footer .wa-link { color: #25d366; }
.site-footer .wa-link:hover { color: #fff; }

@media (max-width: 620px) {
  .whatsapp-float { width: 52px; height: 52px; }
  .whatsapp-float .wa-icon { width: 27px; height: 27px; }
}
@media (prefers-reduced-motion: reduce) {
  .whatsapp-float { transition: none; }
  .whatsapp-float::after { animation: none; display: none; }
}
