/* ============================================================
   LEAD — Shared stylesheet
   Palette: #0b1e3f (navy) · #384763 (slate) · #ffffff · #00aeef (accent)
   Principle: less is more. Corporate, calm, considered.
   ============================================================ */

:root {
  --navy:       #0b1e3f;
  --navy-deep:  #060f22;
  --slate:      #384763;
  --slate-soft: #5a6784;
  --white:      #ffffff;
  --cyan:       #00aeef;

  --ease-out-expo:     cubic-bezier(0.19, 1, 0.22, 1);
  --ease-in-out-quart: cubic-bezier(0.76, 0, 0.24, 1);

  /* Gotham first, Montserrat as the free fallback with matching geometry */
  --ff: "Gotham", "Montserrat", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;

  --maxw: 1440px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--navy);
  color: var(--white);
  font-family: var(--ff);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; border: none; background: none; color: inherit; cursor: pointer; }

/* ---------- Navigation: logo left, links CENTERED, CTA right ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 99;
  padding: 28px 48px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  transition: backdrop-filter 0.4s, background 0.4s, padding 0.4s;
}
.nav.scrolled {
  background: rgba(11, 30, 63, 0.82);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  padding: 18px 48px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav-logo-wrap { justify-self: start; display: flex; align-items: center; }
.nav-logo { display: block; height: 22px; width: auto; transition: height 0.4s; }
.nav.scrolled .nav-logo { height: 20px; }
.nav-links {
  justify-self: center;
  display: flex;
  gap: 44px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.nav-links a {
  position: relative;
  opacity: 0.85;
  transition: opacity 0.3s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  width: 0; height: 1px; background: var(--cyan);
  transition: width 0.4s var(--ease-out-expo);
}
.nav-links a:hover,
.nav-links a.active { opacity: 1; }
.nav-links a.active::after { width: 100%; }
.nav-links a:hover::after { width: 100%; }

.nav-right { justify-self: end; display: flex; align-items: center; gap: 28px; }
.nav-lang {
  font-size: 11px; letter-spacing: 0.15em;
  color: rgba(255,255,255,0.55);
  display: flex; gap: 8px;
  font-weight: 500;
}
.nav-lang a.active { color: var(--white); }
.nav-cta {
  display: inline-flex; align-items: center;
  padding: 11px 20px;
  border: 1px solid rgba(255,255,255,0.25);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  transition: all 0.3s;
  border-radius: 0;
}
.nav-cta:hover {
  background: var(--cyan); color: var(--navy); border-color: var(--cyan);
}

/* ============================================================
   HOME — HERO TRIPTYCH
   ============================================================ */
.hero { position: relative; height: 100vh; min-height: 680px; display: flex; overflow: hidden; }
.triptych { display: flex; width: 100%; height: 100%; position: relative; }
.panel {
  position: relative;
  flex: 1 1 33.333%;
  height: 100%;
  overflow: hidden;
  cursor: pointer;
  transition: flex-grow 0.9s var(--ease-out-expo);
  border-right: 1px solid rgba(255,255,255,0.08);
}
.panel:last-child { border-right: none; }
.triptych:hover .panel { flex-grow: 0.6; }
.triptych:hover .panel:hover { flex-grow: 2.4; }
.panel-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(0.55) brightness(0.65) contrast(1.05);
  transform: scale(1.05);
  transition: filter 0.8s, transform 6s ease-out;
  z-index: 1;
}
.panel:hover .panel-video {
  filter: grayscale(0) brightness(0.85) contrast(1.08);
  transform: scale(1.1);
}
.panel-tint {
  position: absolute; inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, rgba(11,30,63,0.25) 0%, rgba(11,30,63,0.9) 100%);
  opacity: 0.85;
  transition: opacity 0.8s;
}
.panel:hover .panel-tint { opacity: 0.55; }
.panel-content {
  position: absolute; inset: 0;
  z-index: 3;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 56px 48px;
}
.panel-label {
  font-size: clamp(48px, 6vw, 88px);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1;
  text-transform: uppercase;
  margin-bottom: 16px;
  transform: translateY(8px);
  transition: transform 0.8s var(--ease-out-expo);
}
.panel:hover .panel-label { transform: translateY(0); }
.panel-desc {
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255,255,255,0.78);
  max-width: 420px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.8s var(--ease-out-expo), opacity 0.6s 0.15s;
}
.panel:hover .panel-desc { max-height: 200px; opacity: 1; }
.panel-cta {
  margin-top: 28px;
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.6s 0.2s var(--ease-out-expo);
  color: var(--cyan);
  align-self: flex-start;
}
.panel:hover .panel-cta { opacity: 1; transform: translateY(0); }
.panel-cta::after { content: "→"; transition: transform 0.3s; font-size: 14px; }
.panel-cta:hover::after { transform: translateX(6px); }

/* ============================================================
   HOME — CEO QUOTE
   ============================================================ */
.quote {
  position: relative;
  padding: 180px 48px;
  max-width: 1200px;
  margin: 0 auto;
}
.quote-eyebrow {
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--cyan);
  font-weight: 600;
  margin-bottom: 48px;
}
.quote-text {
  font-size: clamp(24px, 2.6vw, 38px);
  font-weight: 300;
  line-height: 1.35;
  letter-spacing: -0.01em;
  max-width: 1000px;
}

/* "values-based communication." is the last 2 words of the quote —
   targeted by position since the reveal script rebuilds the paragraph
   from plain text and strips any inline markup. */
.quote-text .word.emph {
  font-weight: 500;
}

.quote-text .word { display: inline-block; opacity: 0.22; transition: opacity 0.5s ease; }
.quote-text .word.lit { opacity: 1; }
.quote-author {
  margin-top: 56px;
  display: flex; align-items: center; gap: 20px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  color: rgba(255,255,255,0.6);
}
.quote-author-line { width: 40px; height: 1px; background: rgba(255,255,255,0.3); }
.quote-author strong { color: var(--white); font-weight: 600; }


/* ============================================================
   ABOUT — Hero (simple, centered-column, aligned with rest of page)
   ============================================================ */
.about-hero {
  position: relative;
  padding: 220px 48px 120px;
  max-width: var(--maxw);
  margin: 0 auto;
  overflow: visible;
}
.about-hero::before {
  /* Subtle radial glow that softly lights the upper-left area */
  content: "";
  position: absolute;
  top: 30%; left: 50%;
  width: 900px; height: 900px;
  transform: translate(-65%, -40%);
  background: radial-gradient(circle, rgba(0,174,239,0.08) 0%, transparent 55%);
  pointer-events: none;
  z-index: 0;
}
.about-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 900px;
}
.about-hero-eyebrow {
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--cyan);
  font-weight: 600;
  margin-bottom: 32px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.about-hero-eyebrow::before {
  content: "";
  width: 40px; height: 1px;
  background: var(--cyan);
}
.about-hero-title {
  font-size: clamp(48px, 6.5vw, 104px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 0.98;
  margin-bottom: 40px;
  text-transform: uppercase;
}
.about-hero-title span { color: var(--cyan); }
.title-br { display: none; }
.about-hero-lede {
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.65;
  color: rgba(255,255,255,0.82);
  font-weight: 400;
  max-width: 640px;
}

/* ============================================================
   ABOUT — Team grid
   ============================================================ */
.team-section {
  padding: 160px 48px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.section-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: end;
  margin-bottom: 100px;
}
.section-eyebrow {
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--cyan);
  font-weight: 600;
  margin-bottom: 24px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.section-eyebrow::before {
  content: "";
  width: 40px; height: 1px;
  background: var(--cyan);
}
.section-title {
  font-size: clamp(36px, 4.5vw, 68px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.03em;
}
.section-title span { color: var(--cyan); }
.section-lede {
  font-size: 15px;
  line-height: 1.65;
  color: rgba(255,255,255,0.7);
  max-width: 420px;
  justify-self: end;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 64px 40px;
}

.team-card {
  position: relative;
  display: block;
}
.team-photo-wrap {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  margin-bottom: 24px;
  background: var(--navy-deep);
}
.team-photo {
  width: 100%; height: 100%;
  object-fit: cover;
  /* Subtle desaturated default — color on hover */
  filter: grayscale(0.5) brightness(0.85) contrast(1.05);
  transform: scale(1.02);
  transition: filter 0.7s var(--ease-out-expo),
              transform 1.2s var(--ease-out-expo);
}
.team-card:hover .team-photo {
  filter: grayscale(0) brightness(1) contrast(1);
  transform: scale(1.06);
}
/* Soft gradient overlay at bottom of photo */
.team-photo-wrap::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(11,30,63,0.4) 100%);
  pointer-events: none;
  opacity: 0.6;
  transition: opacity 0.6s;
}
.team-card:hover .team-photo-wrap::after { opacity: 0.3; }

/* Thin accent bar that grows on hover */
.team-photo-wrap::before {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--cyan);
  z-index: 2;
  transition: width 0.7s var(--ease-out-expo);
}
.team-card:hover .team-photo-wrap::before { width: 100%; }

.team-name {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
  transition: color 0.3s;
}
.team-card:hover .team-name { color: var(--cyan); }
.team-role {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.02em;
  margin-bottom: 14px;
}
.team-linkedin {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  font-weight: 600;
  transition: color 0.3s, gap 0.3s;
}
.team-linkedin svg { width: 14px; height: 14px; }
.team-linkedin:hover { color: var(--cyan); gap: 12px; }

/* ============================================================
   ABOUT — Awards
   ============================================================ */
.awards-section {
  background: var(--navy-deep);
  width: 100%;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.awards-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 160px 48px;
  display: grid;
  /* Left column: title/description. Right column: deck.
     Ratio gives the deck enough room for the full card width. */
  grid-template-columns: 1fr 1.25fr;
  gap: 100px;
  align-items: start;
}
.awards-left {
  /* Stays visible as you navigate through cards on the right */
  position: sticky;
  top: 140px;
  /* Match the CARD STACK height (440px) so logos pushed to the bottom align
     with the bottom of the cards — not the bottom of the dots. */
  min-height: 440px;
  display: flex;
  flex-direction: column;
}
.awards-left .section-title { margin-bottom: 44px; }
.awards-left .section-lede {
  max-width: 440px;
  /* Override the team-section's right-alignment so the description sits
     flush-left with the title above it. */
  justify-self: start;
}

/* Row of award organisation logos beneath the description.
   Logos are dimmed by default; the one matching the currently-visible
   card highlights to full white. */
.award-logos {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 28px;
  align-items: center;
  /* margin-top: auto pushes the row to the bottom of the flex column so its
     bottom edge aligns with the bottom of the card stack on the right. */
  margin-top: auto;
  /* Full left-column width — matches the title's span, giving more room
     between logos than the old 440px cap. */
  width: 100%;
}
.award-logo {
  /* Fixed uniform frame so logos of wildly different aspect ratios look
     proportionally balanced in the row. */
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.award-logo img {
  /* Cap width so wider logos (like MI:T & LINKS) don't fill their cell
     edge-to-edge — this keeps visual whitespace between logos more
     consistent regardless of aspect ratio. */
  max-width: 82%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: 0.28;
  transition: opacity 0.45s ease-out;
}
.award-logo.is-active img {
  opacity: 1;
}
.awards-right {
  min-width: 0; /* allow the deck to shrink instead of overflowing */
}

.awards-list { display: grid; gap: 0; }

/* ============================================================
   Awards — card scroll
   ============================================================ */
.awards-scroll-wrap {
  position: relative;
}
.awards-scroll {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.awards-scroll::-webkit-scrollbar {
  display: none;
}
.award-card {
  flex: 0 0 88%;
  height: 440px;
  scroll-snap-align: center;
}


.award-card-inner {
  position: relative;
  height: 100%;
  padding: 48px 44px 40px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background-color: #132648;
  background-image: linear-gradient(135deg, rgba(0,174,239,0.08) 0%, transparent 24%);
  box-shadow:
    0 24px 48px rgba(0,0,0,0.4),
    0 8px 16px rgba(0,0,0,0.25),
    inset 0 1px 0 rgba(255,255,255,0.08);
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.award-card-org {
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.1;
  margin-bottom: 32px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(255,255,255,0.14);
}
.award-card-entries {
  display: grid;
  gap: 14px;
  /* All content left-aligned explicitly */
  text-align: left;
}
.award-entry {
  display: grid;
  grid-template-columns: 58px 64px 1fr;
  gap: 20px;
  align-items: baseline;
  font-size: 13px;
}
.award-year {
  font-weight: 600;
  color: rgba(255,255,255,0.92);
  font-feature-settings: "tnum";
}
.award-place {
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 11px;
}
.award-category {
  color: rgba(255,255,255,0.75);
  line-height: 1.5;
}

/* ----- Deck navigation: low-key overlay arrows, same pattern as the
   Work single gallery scroller ----- */
.awards-nav-arrow {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 180px;
  z-index: 50;
  display: flex;
  align-items: center;
  border: none;
  background: none;
  cursor: pointer;
  color: var(--white);
  font-size: 15px;
  opacity: 1;
  transition: color 0.25s var(--ease-out-expo), opacity 0.4s var(--ease-out-expo);
}
.awards-nav-arrow.is-hidden {
  opacity: 0;
  pointer-events: none;
}
.awards-nav-arrow:hover {
  color: var(--cyan);
}
.awards-nav-arrow-left {
  left: 0;
  justify-content: flex-start;
  padding-left: 18px;
  background: linear-gradient(to right, var(--navy-deep) 0%, transparent 100%);
}
.awards-nav-arrow-right {
  right: 0;
  justify-content: flex-end;
  padding-right: 18px;
  background: linear-gradient(to left, var(--navy-deep) 0%, transparent 100%);
}
.awards-nav-arrow::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.25s var(--ease-out-expo);
}
.awards-nav-arrow-left::before {
  background: linear-gradient(to right, var(--navy-deep) 4%, transparent 70%);
}
.awards-nav-arrow-right::before {
  background: linear-gradient(to left, var(--navy-deep) 4%, transparent 70%);
}
.awards-nav-arrow:hover::before {
  opacity: 0.35;
}
.awards-nav-arrow span {
  position: relative;
  z-index: 1;
}


/* ============================================================
   CTA — low-key aurora glow + animated reveal (shared)
   ============================================================ */
.cta-band {
  position: relative;
  padding: 200px 48px;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
}
.cta-band-inner { position: relative; z-index: 1; }
.cta-band-eyebrow {
  font-size: 11px; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--cyan); font-weight: 600;
  margin-bottom: 28px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.9s var(--ease-out-expo), transform 0.9s var(--ease-out-expo);
}
.cta-band.in-view .cta-band-eyebrow { opacity: 1; transform: translateY(0); }
.cta-band-title {
  font-size: clamp(40px, 5vw, 76px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: 56px;
}
.cta-band-title .accent { color: var(--cyan); display: inline-block; opacity: 0; transform: translateY(14px); }
@media (max-width: 960px) { .cta-band-title .cta-br { display: none; } }
.cta-band-title .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.9s var(--ease-out-expo),
    transform 0.9s var(--ease-out-expo);
}
.cta-band.in-view .cta-band-title .word { opacity: 1; transform: translateY(0); }
.cta-band-title .word { transition-delay: calc(var(--i, 0) * 0.08s + 0.3s); }
.cta-button {
  position: relative;
  display: inline-flex; align-items: center; gap: 16px;
  padding: 22px 42px;
  background: var(--cyan);
  color: var(--navy);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border-radius: 0;
  overflow: hidden;
  transition: transform 0.5s var(--ease-out-expo);
  opacity: 0;
  transform: translateY(12px);
}
.cta-band.in-view .cta-button {
  opacity: 1;
  transform: translateY(0);
  transition:
    transform 0.9s var(--ease-out-expo),
    opacity 0.9s var(--ease-out-expo);
  transition-delay: 1.1s, 1.1s;
}
.cta-button::before {
  content: "";
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255,255,255,0.35) 50%,
    transparent 100%
  );
  transition: left 0.9s var(--ease-out-expo);
  z-index: 0;
}
.cta-button:hover::before { left: 100%; }
.cta-button span { position: relative; z-index: 1; }
.cta-button .arrow {
  position: relative; z-index: 1;
  font-size: 16px;
  transition: transform 0.4s var(--ease-out-expo);
}
.cta-button:hover { transform: translateY(-3px); }
.cta-band.in-view .cta-button:hover { transform: translateY(-3px); }
.cta-button:hover .arrow { transform: translateX(8px); }
.cta-accent {
  display: block;
  width: 0;
  height: 1px;
  background: var(--cyan);
  margin: 48px auto 0;
  transition: width 1.6s var(--ease-out-expo);
  transition-delay: 1.6s;
}
.cta-band.in-view .cta-accent { width: 80px; }

/* ---------- Footer ---------- */
footer {
  position: relative;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 48px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.05em;
}
.footer-links {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  white-space: nowrap;
}
.footer-links a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color 0.25s var(--ease-out-expo);
}
.footer-dot {
  color: rgba(255,255,255,0.3);
}

/* Footer links: hover effect only on devices that really hover
   (mouse). On touch screens a :hover state makes the first tap get swallowed;
   touch devices get :active press feedback instead (see the hover: none block). */
@media (hover: hover) {
  .footer-links a:hover { color: var(--white); }
}

/* ============================================================
   COOKIE BANNER
   ============================================================ */
.cookie-banner {
  position: fixed;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 200;
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 20px;
  background: rgba(11, 30, 63, 0.82);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid rgba(255,255,255,0.08);
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 0.4s var(--ease-out-expo), transform 0.4s var(--ease-out-expo);
}
.cookie-banner.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.cookie-banner-text {
  font-size: 13px;
  line-height: 1.4;
  color: rgba(255,255,255,0.75);
  white-space: nowrap;
}
.cookie-banner-text a {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(0,174,239,0.4);
}
.cookie-banner-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.cookie-btn {
  padding: 7px 16px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid rgba(0,174,239,0.5);
  background: rgba(0,174,239,0.15);
  color: var(--white);
  cursor: pointer;
  transition: all 0.3s var(--ease-out-expo);
}
.cookie-btn:hover {
  background: var(--cyan);
  border-color: var(--cyan);
  color: var(--navy);
}
/* "Cookie settings" button on the (white) privacy policy page */
.cookie-settings-btn {
  padding: 10px 18px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--navy);
  background: none;
  color: var(--navy);
  cursor: pointer;
  transition: all 0.3s var(--ease-out-expo);
}
.cookie-settings-btn:hover { background: var(--navy); color: var(--white); }

.cookie-btn-ghost {
  background: none;
  border-color: rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.6);
}
.cookie-btn-ghost:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.3);
  color: var(--white);
}

/* ---------- Generic scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 1.1s var(--ease-out-expo), transform 1.1s var(--ease-out-expo);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }
/* Stagger for grid children — set --i inline on each child */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--ease-out-expo), transform 0.9s var(--ease-out-expo);
}
.reveal-stagger.in-view > * {
  opacity: 1; transform: translateY(0);
  transition-delay: calc(var(--i, 0) * 0.08s);
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nav { padding: 18px 24px; grid-template-columns: auto auto; }
  .nav.scrolled { padding: 14px 24px; }
  .nav-links { display: none; }
  .nav-right { gap: 16px; }

  .triptych { flex-direction: column; }
  .panel {
    flex: 1 1 33.333%;
    height: auto;
    min-height: 260px;
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .triptych:hover .panel { flex-grow: 1; }
  .triptych:hover .panel:hover { flex-grow: 1; }
  .panel-content { padding: 32px 24px; }
  .panel-label { font-size: 52px; }
  .panel-desc { max-height: 200px; opacity: 1; }
  .panel-cta { opacity: 1; transform: none; }

  .quote { padding: 100px 24px; }

  /* About */
  .about-hero { padding: 140px 24px 80px; }
  .about-hero-inner { max-width: 100%; }

  .team-section { padding: 80px 24px; }
  .section-header { grid-template-columns: 1fr; gap: 24px; margin-bottom: 56px; }
  .section-lede { justify-self: start; }
  .team-grid { grid-template-columns: 1fr 1fr; gap: 40px 20px; }

  /* Awards scroller — mobile */
  .awards-inner {
    padding: 80px 24px;
    grid-template-columns: 1fr;
    gap: 56px;
  }
  .awards-left {
    position: static;
    min-height: 0;
    display: block;
  }
  .award-logos { width: 100%; gap: 12px; margin-top: 32px; }
  .award-logo { height: 44px; }
  .award-card { flex: 0 0 85%; height: 380px; }
  .award-card-inner { padding: 36px 28px 32px; }
  .award-card-org { font-size: 22px; margin-bottom: 24px; padding-bottom: 18px; }
  .award-entry { grid-template-columns: 50px 58px 1fr; gap: 14px; font-size: 12px; }

  .eu-section { padding: 80px 24px; }
  .eu-card {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 36px 32px;
    text-align: left;
    justify-items: center;
  }
  .eu-logo { max-width: 140px; }
  .eu-copy { text-align: left; }

  .cta-band { padding: 120px 24px; }
  footer { flex-direction: column; gap: 16px; text-align: center; padding: 32px 24px; }
  .footer-links { position: static; transform: none; justify-content: center; flex-wrap: wrap; }
  .cookie-banner {
    left: 16px;
    right: 16px;
    bottom: 16px;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 22px;
  }
  .cookie-banner-actions { width: 100%; }
  .cookie-btn { flex: 1; text-align: center; }
}

@media (max-width: 560px) {
  .team-grid { grid-template-columns: 1fr; gap: 40px; }
}







/* ============================================================
   BLOG INDEX — hero, featured section, grid
   ============================================================ */

/* Filter tabs row — sits below the About-style hero on the /blog page. */
.blog-filter-row {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 48px 60px;
}
.blog-filter-row-inner {
  padding-top: 8px;
}

/* Filter tabs — inline row of tab buttons */
.blog-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  align-items: center;
}
.blog-filter-tab {
  display: inline-flex;
  align-items: center;
  padding: 14px 22px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.12);
  border-right: none;
  transition: all 0.3s var(--ease-out-expo);
  background: transparent;
  white-space: nowrap;
}
.blog-filter-tab:first-child { border-left: 1px solid rgba(255,255,255,0.12); }
.blog-filter-tab:last-child  { border-right: 1px solid rgba(255,255,255,0.12); }
.blog-filter-tab:hover {
  color: var(--white);
  background: rgba(255,255,255,0.04);
}
.blog-filter-tab.is-active {
  color: var(--navy);
  background: var(--cyan);
  border-color: var(--cyan);
}

/* Thin cyan divider between hero and posts section */
.blog-divider {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 48px;
}
.blog-divider::after {
  content: "";
  display: block;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent 0%,
    rgba(0,174,239,0.3) 20%,
    rgba(0,174,239,0.3) 80%,
    transparent 100%
  );
}

/* ---------- Posts section wrapper ---------- */
.blog-posts-section {
  padding: 80px 0 160px;
}
.blog-posts-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 48px;
}

/* ---------- Featured section: image card + text-only side stack ---------- */
.blog-featured {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 32px;
  margin-bottom: 96px;
}

/* Featured hero card (left, with image) */
.blog-featured-main {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--white);
  background: #132648;
  overflow: hidden;
  transition: transform 0.5s var(--ease-out-expo), box-shadow 0.5s var(--ease-out-expo);
  box-shadow: 0 12px 32px rgba(0,0,0,0.25);
}
.blog-featured-main:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(0,0,0,0.35);
}
.blog-featured-main-cover {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: rgba(255,255,255,0.04);
}
.blog-featured-main-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out-expo);
}
.blog-featured-main:hover .blog-featured-main-cover img { transform: scale(1.04); }
.blog-featured-main-body {
  padding: 36px 36px 40px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  flex: 1;
}
.blog-featured-main-title {
  font-size: 32px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--white);
  transition: color 0.3s var(--ease-out-expo);
  margin: 0;
}
.blog-featured-main:hover .blog-featured-main-title { color: var(--cyan); }
.blog-featured-main-excerpt {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255,255,255,0.68);
  margin: 0;
}

/* Side stack: text-only cards, no images */
.blog-featured-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.blog-side-card-text {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  padding: 24px 26px 22px;
  text-decoration: none;
  color: var(--white);
  background: #132648;
  transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s var(--ease-out-expo);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  justify-content: space-between;
}
.blog-side-card-text-middle {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.blog-side-card-text:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(0,0,0,0.3);
}
.blog-side-card-text-title {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.005em;
  color: var(--white);
  margin: 0;
  transition: color 0.3s var(--ease-out-expo);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-side-card-text:hover .blog-side-card-text-title { color: var(--cyan); }
.blog-side-card-text-excerpt {
  font-size: 13px;
  line-height: 1.55;
  color: rgba(255,255,255,0.6);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-side-card-text-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  padding-top: 4px;
}
.blog-side-card-text-more .arrow {
  transition: transform 0.3s var(--ease-out-expo);
}
.blog-side-card-text:hover .blog-side-card-text-more .arrow {
  transform: translateX(4px);
}

/* ---------- Posts grid ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: auto;
  gap: 40px;
}

.blog-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--white);
  background: #132648;
  overflow: hidden;
  transition: transform 0.5s var(--ease-out-expo), box-shadow 0.5s var(--ease-out-expo);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0,0,0,0.3);
}
.blog-card-cover {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: rgba(255,255,255,0.04);
}
.blog-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out-expo);
}
.blog-card:hover .blog-card-cover img { transform: scale(1.04); }
.blog-card-body {
  padding: 24px 26px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.blog-card-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.blog-card-category {
  display: inline-block;
  padding: 4px 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
  border: 1px solid rgba(0,174,239,0.35);
}
.blog-card-title {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--white);
  transition: color 0.3s var(--ease-out-expo);
  margin: 0;
}
.blog-card:hover .blog-card-title { color: var(--cyan); }
.blog-card-excerpt {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255,255,255,0.65);
  margin: 0;
}
.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 4px;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.02em;
}
.blog-card-author { font-weight: 600; color: rgba(255,255,255,0.7); }
.blog-card-dot { color: rgba(255,255,255,0.3); }
.blog-card-date { color: rgba(255,255,255,0.55); }

.blog-empty {
  padding: 80px 0;
  text-align: center;
  color: rgba(255,255,255,0.55);
  font-size: 15px;
}
.blog-empty a { color: var(--cyan); text-decoration: none; }

/* ---------- Blog — mobile ---------- */
@media (max-width: 900px) {
  .blog-filter-row { padding: 0 24px 40px; }
  .blog-filter-tab { padding: 12px 16px; font-size: 11px; letter-spacing: 0.14em; }
  .blog-divider { padding: 0 24px; }
  .blog-posts-section { padding: 56px 0 100px; }
  .blog-posts-inner { padding: 0 24px; }

    /* Grid stacks to single column on mobile; featured no longer spans */
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

    /* Featured section stacks on mobile */
  .blog-featured {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 64px;
  }
  .blog-featured-main-body { padding: 24px 24px 28px; }
  .blog-featured-main-title { font-size: 24px; }
  .blog-side-card-text { padding: 20px 22px 18px; }
}




/* ============================================================
   INDIVIDUAL POST — cover-image hero, fades to white article
   ============================================================ */

/* Single shared column used by hero content and body — everything
   inside lives inside this same centered container so every element's
   left edge aligns down the page. */
.post-column {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 32px;
}

.post-hero-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 48px;
}

/* ---------- HERO: full-bleed cover image with overlay + fade-to-white ---------- */
.post-hero {
  position: relative;
  min-height: 100vh;
  background-color: var(--navy);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  padding: 200px 0 80px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
/* Overlay: dark navy gradient (matches Work single hero), transparent
   at the top, near-opaque at the bottom where the white section begins. */
.post-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(11,30,63,0.25) 0%,
    rgba(11,30,63,0.35) 30%,
    rgba(11,30,63,0.75) 65%,
    rgba(11,30,63,0.97) 100%
  );
  pointer-events: none;
  z-index: 1;
}
.post-hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
}
.post-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.75);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  margin-bottom: 40px;
  transition: color 0.3s var(--ease-out-expo);
  text-shadow: 0 1px 12px rgba(0,0,0,0.4);
}
.post-back:hover { color: var(--cyan); }
.post-back .arrow { transition: transform 0.3s var(--ease-out-expo); }
.post-back:hover .arrow { transform: translateX(-4px); }

.post-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.post-category {
  display: inline-block;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
  border: 1px solid rgba(0,174,239,0.4);
}

.post-title {
  font-size: clamp(38px, 5.2vw, 60px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--white);
  margin: 0 0 24px;
  text-align: left;
  text-shadow: 0 2px 20px rgba(0,0,0,0.35);
  max-width: 900px;
}
.post-hero-excerpt {
  font-size: 18px;
  line-height: 1.55;
  color: rgba(255,255,255,0.88);
  margin: 0 0 36px;
  max-width: 640px;
  text-shadow: 0 1px 12px rgba(0,0,0,0.4);
}

.post-meta {
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.2);
}
.post-byline { display: flex; align-items: center; gap: 14px; }
.post-byline-photo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,0.3);
}
.post-byline-text { display: flex; flex-direction: column; }
.post-byline-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  text-shadow: 0 1px 8px rgba(0,0,0,0.3);
}
.post-byline-date {
  font-size: 12px;
  color: rgba(255,255,255,0.72);
  margin-top: 3px;
  text-shadow: 0 1px 8px rgba(0,0,0,0.3);
  letter-spacing: 0.01em;
}
.post-byline-date--standalone {
  font-size: 13px;
  color: rgba(255,255,255,0.78);
  margin-top: 0;
}

/* ---------- Body — white reading environment ---------- */
.post-body {
  background: #ffffff;
  padding: 80px 0 140px;
}
.post-body-content {
  color: #1a2540;
  font-size: 18px;
  line-height: 1.75;
  text-align: left;
}
.post-body-content p { margin: 0 0 26px; }
.post-body-content h2 {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.2;
  color: var(--navy);
  margin: 60px 0 22px;
}
.post-body-content h3 {
  font-size: 23px;
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1.3;
  color: var(--navy);
  margin: 44px 0 16px;
}
.post-body-content ul,
.post-body-content ol {
  margin: 0 0 26px;
  padding-left: 28px;
}
.post-body-content li { margin-bottom: 10px; }
.post-body-content blockquote {
  margin: 40px 0;
  padding: 8px 0 8px 28px;
  border-left: 3px solid var(--cyan);
  font-size: 22px;
  font-style: italic;
  color: var(--navy);
  line-height: 1.5;
}
.post-body-content strong { color: var(--navy); font-weight: 600; }
.post-body-content em { font-style: italic; }
.post-body-content a {
  color: #0088c4;
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 136, 196, 0.35);
  transition: border-color 0.25s ease-out;
}
.post-body-content a:hover { border-bottom-color: #0088c4; }
.post-figure { margin: 44px 0; }
.post-figure img {
  width: 100%;
  height: auto;
  display: block;
}
.post-figcaption {
  margin-top: 12px;
  font-size: 14px;
  color: rgba(26, 37, 64, 0.6);
  text-align: center;
  font-style: italic;
}

.post-back-section {
  background: var(--navy);
  padding: 96px 0 120px;
}
.post-back-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}


/* Mobile */
@media (max-width: 900px) {
  .post-hero {
    min-height: 70vh;
    padding: 140px 0 60px;
  }
  .post-column { padding: 0 24px; }
  
  /* Hero-only content width — matches Work/About page side padding.
   .post-column (body) keeps its own narrower reading-width padding. */
  .post-hero-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 48px;
  }

  .post-back { margin-bottom: 28px; }
  .post-title { margin-bottom: 20px; }
  .post-hero-excerpt { font-size: 16px; margin-bottom: 28px; }
  .post-body { padding: 56px 0 90px; }
  .post-body-content { font-size: 16px; }
  .post-body-content h2 { font-size: 26px; margin: 44px 0 18px; }
  .post-body-content h3 { font-size: 20px; margin: 34px 0 14px; }
  .post-body-content blockquote {
    font-size: 19px;
    padding-left: 20px;
  }
}

/* ============================================================
   404 PAGE
   ============================================================ */
.notfound-section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 240px 48px 200px;
  min-height: 60vh;
}
.notfound-inner { max-width: 700px; }
.notfound-title {
  font-size: clamp(56px, 7vw, 96px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.03em;
  margin: 24px 0 32px;
}
.notfound-title span { color: var(--cyan); }
.notfound-lede {
  font-size: 17px;
  line-height: 1.6;
  color: rgba(255,255,255,0.7);
  margin-bottom: 48px;
  max-width: 560px;
}

/* ============================================================
   BLOG — mobile
   ============================================================ */
@media (max-width: 900px) {
  .blog-hero { padding: 140px 24px 40px; }
  .blog-filter-section { padding: 20px 24px 40px; }
  .blog-filter-tab { padding: 12px 16px; font-size: 11px; letter-spacing: 0.14em; }
  .blog-list-section { padding: 60px 24px 100px; }
  .blog-grid { grid-template-columns: 1fr; gap: 48px; }
  .post-hero { padding: 130px 24px 40px; }
  .post-title { margin-bottom: 32px; }
  .post-meta { gap: 16px; }
  .post-cover { padding: 16px 24px 40px; }
  .post-body { padding: 32px 24px 100px; }
  .post-body-inner { font-size: 16px; }
  .post-body-inner h2 { font-size: 26px; margin: 40px 0 16px; }
  .post-body-inner h3 { font-size: 20px; margin: 32px 0 14px; }
  .notfound-section { padding: 160px 24px 120px; }
}

/* Sub/superscript in blog post body — noticeably smaller than
   the browser default (~0.83×) so footnote markers feel proper. */
.post-body-content sup,
.post-body-content sub {
  font-size: 0.6em;
  font-weight: 600;
  line-height: 0;
  color: var(--cyan);
  margin-left: 0.2em;
}
.post-body-content sup { vertical-align: 0.7em; }
.post-body-content sub { vertical-align: -0.3em; }




/* ============================================================
   TEAM CARDS — contact variant (Silvestrs, Vineta, Undīne)
   ============================================================ */

/* Non-linked cards still get the same hover treatment as the old linked cards.
   Since we removed the <a> wrapper, we add hover behavior on .team-card itself
   for the photo brightness effect. */
.team-card:hover .team-photo {
  filter: grayscale(0) brightness(1);
}
.team-card:hover .team-photo-wrap::after {
  opacity: 1;
}

/* Contact rows sit between role and LinkedIn */
.team-contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 14px;
}
.team-contact-item {
  font-size: 13px;
  color: rgba(255,255,255,0.72);
  text-decoration: none;
  transition: color 0.25s var(--ease-out-expo);
  letter-spacing: 0.005em;
}
.team-contact-item:hover {
  color: var(--cyan);
}

/* Give LinkedIn a bit of top space when it follows contact rows */
.team-card--contact .team-linkedin {
  margin-top: 14px;
}

/* ============================================================
   OFFICE SECTION — email + phone + address + stylized map
   ============================================================ */
.office-section {
  background: var(--navy);
  padding: 100px 0 140px;
}
.office-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: end;
}
.office-info {
  max-width: 500px;
}
.office-eyebrow {
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--cyan);
  font-weight: 600;
  margin-bottom: 32px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.office-eyebrow::before {
  content: "";
  width: 40px; height: 1px;
  background: var(--cyan);
}
.office-title {
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.02;
  text-transform: uppercase;
  margin-bottom: 48px;
}
.office-title span { color: var(--cyan); }

/* Contact info cards — match the blog card container treatment */
.office-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.office-detail-card {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 24px;
  align-items: center;
  padding: 22px 26px;
  background: #132648;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  text-decoration: none;
  transition: transform 0.4s var(--ease-out-expo),
              box-shadow 0.4s var(--ease-out-expo);
}
.office-detail-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(0,0,0,0.3);
}
.office-detail-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  transition: color 0.3s var(--ease-out-expo);
}
.office-detail-card:hover .office-detail-label {
  color: var(--cyan);
}
.office-detail-value {
  font-size: 16px;
  line-height: 1.5;
  color: var(--white);
  font-weight: 500;
  transition: color 0.3s var(--ease-out-expo);
}
.office-detail-card:hover .office-detail-value {
  color: var(--cyan);
}

/* Map — clickable image with hover CTA */
.office-map {
  position: relative;
  display: block;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  text-decoration: none;
  background: #060f22;
  border: 1px solid rgba(255,255,255,0.08);
  transition: border-color 0.35s var(--ease-out-expo),
              transform 0.5s var(--ease-out-expo),
              box-shadow 0.5s var(--ease-out-expo);
}
.office-map:hover {
  border-color: rgba(0,174,239,0.4);
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(0,0,0,0.3);
}
.office-map-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out-expo);
}
.office-map:hover .office-map-img {
  transform: scale(1.03);
}
.office-map-cta {
  position: absolute;
  bottom: 20px;
  right: 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(11,30,63,0.85);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(0,174,239,0.35);
  color: var(--white);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: all 0.3s var(--ease-out-expo);
}
.office-map:hover .office-map-cta {
  background: var(--cyan);
  color: var(--navy);
  border-color: var(--cyan);
}
.office-map-cta .arrow {
  transition: transform 0.3s var(--ease-out-expo);
}
.office-map:hover .office-map-cta .arrow {
  transform: translateX(4px);
}

/* Mobile */
@media (max-width: 900px) {
  .office-section { padding: 60px 0 90px; }
  .office-inner {
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 0 24px;
  }
  .office-detail-card {
    grid-template-columns: 100px 1fr;
    gap: 16px;
    padding: 18px 20px;
  }
  .office-detail-value { font-size: 15px; }
  .office-map { aspect-ratio: 3 / 2; }
  .office-map-cta { padding: 8px 12px; font-size: 10px; }
}



/* ============================================================
   WORK GRID — 2-wide cards, full-bleed cover, gradient overlay,
   testimonial fragment + attribution
   ============================================================ */

.work-section {
  padding: 80px 0 160px;
}
.work-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 48px;
}

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

/* Each card — a link with full-bleed cover image */
.work-card {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  text-decoration: none;
  color: var(--white);
  background: #0b1e3f;
  transition: transform 0.5s var(--ease-out-expo),
              box-shadow 0.5s var(--ease-out-expo);
  box-shadow: 0 12px 32px rgba(0,0,0,0.3);
  transform: translateZ(0);
  backface-visibility: hidden;
  contain: paint;
}
.work-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(0,0,0,0.45);
}

/* Cover image fills the card, scales slightly on hover */
.work-card-cover {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 1;
}
.work-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  backface-visibility: hidden;
  transform-origin: center bottom;
  transform: scale(1);
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1),
              filter 0.5s var(--ease-out-expo);
  filter: brightness(0.95);
}
.work-card:hover .work-card-cover img {
  transform: scale(1.04);
  filter: brightness(1);
}

/* Gradient overlay — dark navy from bottom fading upward */
.work-card-gradient {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    to bottom,
    rgba(11,30,63,0.35) 0%,
    rgba(11,30,63,0.42) 15%,
    rgba(11,30,63,0.52) 25%,
    rgba(11,30,63,0.68) 38%,
    rgba(11,30,63,0.82) 52%,
    rgba(11,30,63,0.93) 68%,
    rgba(11,30,63,0.97) 85%,
    rgba(11,30,63,1) 100%
  );
  pointer-events: none;
}

/* Content layer — sits on top of gradient */
.work-card-content {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 36px 40px;
  pointer-events: none; /* content clicks pass through to the parent link */
}
.work-card-content > * {
  pointer-events: auto;
}

/* Top area: logo or client name */
.work-card-top {
  max-width: 70%;
  overflow: hidden;
}

.work-card-direction {
  position: absolute;
  top: 36px;
  right: 40px;
  z-index: 4;
  display: inline-block;
  padding: 4px 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  border: 1px solid rgba(255,255,255,0.3);
  white-space: nowrap;
}
.work-card-logo {
  max-height: clamp(41px, 5.75vw, 83px);
  max-width: clamp(102px, 14vw, 204px);
  width: auto;
  height: auto;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}
.work-card-clientname {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--white);
  text-shadow: 0 1px 8px rgba(0,0,0,0.4);
}

/* Bottom area: quote, attribution, CTA stacked */
.work-card-bottom {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.work-card-quote {
  margin: 0;
  font-size: clamp(15px, 1.2vw, 17px);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -0.005em;
  color: var(--white);
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.work-card-quote-mark {
  color: var(--white);
  font-weight: 700;
}

.work-card-attribution {
  /* border/padding moved to .work-card-footer below */
}
.work-card-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.18);
}
.work-card-author {
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.01em;
  text-shadow: 0 1px 8px rgba(0,0,0,0.3);
}
.work-card-role {
  font-size: 12px;
  color: rgba(255,255,255,0.72);
  margin-top: 2px;
  text-shadow: 0 1px 8px rgba(0,0,0,0.3);
}
.work-card-company {
  font-size: 12px;
  color: rgba(255,255,255,0.72);
  text-shadow: 0 1px 8px rgba(0,0,0,0.3);
}

.work-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  padding: 7px 14px;
  margin-bottom: 3px;
  background: rgba(0,174,239,0.15);
  border: 1px solid rgba(0,174,239,0.5);
  color: var(--white);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
  transition: all 0.3s var(--ease-out-expo);
}
.work-card:hover .work-card-cta {
  background: var(--cyan);
  border-color: var(--cyan);
  color: var(--navy);
}
.work-card-cta .arrow {
  transition: transform 0.3s var(--ease-out-expo);
}
.work-card:hover .work-card-cta .arrow {
  transform: translateX(5px);
}

/* Mobile */
@media (max-width: 900px) {
  .work-section { padding: 56px 0 100px; }
  .work-inner { padding: 0 24px; }
  .work-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .work-card { aspect-ratio: 4 / 3; }
  .work-card-content { padding: 24px 24px; }
  .work-card-logo { max-height: 36px; }
  .work-card-clientname { font-size: 18px; }
  .work-card-quote { font-size: 16px; -webkit-line-clamp: 3; }
  .work-card-bottom { gap: 14px; }
  .work-card-cta { padding: 10px 16px; font-size: 10px; }
}

/* ============================================================
   WORK SINGLE — individual /work/:slug case study page
   ============================================================ */

.work-single-hero {
  position: relative;
  display: block;
  min-height: 100vh;
  margin: 0;
  overflow: hidden;
  background: #0b1e3f;
}
.work-single-hero-cover {
  position: absolute;
  inset: 0;
}
.work-single-hero-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.work-single-hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(11,30,63,0.25) 0%,
    rgba(11,30,63,0.35) 30%,
    rgba(11,30,63,0.75) 65%,
    rgba(11,30,63,0.96) 100%
  );
}
.work-single-hero-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 48px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.work-single-direction {
  display: inline-block;
  padding: 4px 10px;
  margin-bottom: 16px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
  border: 1px solid rgba(0,174,239,0.4);
}
.work-single-title {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--white);
  margin: 0;
}

/* ---------- Intro: alternating text + image (white background) ---------- */
.work-single-intro-section {
  background: #ffffff;
  padding: 96px 0;
}
.work-single-intro-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 48px;
}
.work-single-intro-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  margin-bottom: 72px;
}
.work-single-intro-row:last-of-type {
  margin-bottom: 0;
}
.work-single-intro-row-reverse .work-single-intro-media {
  order: -1;
}
.work-single-intro-text {
  font-size: 17px;
  line-height: 1.75;
  color: #0b1e3f;
}
.work-single-intro-text p {
  margin: 0;
}
.work-single-intro-media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}
.work-single-intro-caption {
  margin-top: 10px;
  font-size: 13px;
  color: rgba(11,30,63,0.55);
}
.work-single-intro-extra {
  margin-top: 72px;
  font-size: 17px;
  line-height: 1.75;
  color: #0b1e3f;
  max-width: 760px;
}
.work-single-intro-extra p {
  margin: 0 0 24px;
}

.work-single-partners-row-wrap {
  margin-top: 72px;
  padding-top: 40px;
  border-top: 1px solid rgba(11,30,63,0.12);
}
.work-single-partners-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(11,30,63,0.5);
  margin-bottom: 20px;
}
.work-single-partners-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 32px;
}
.work-single-partner-logo {
  max-height: 36px;
  width: auto;
  opacity: 0.85;
}
.work-single-partner-name {
  font-size: 14px;
  font-weight: 600;
  color: #0b1e3f;
}

/* ---------- Full quote (dark, wide/horizontal) ---------- */
.work-single-quote-section {
  padding: 96px 0;
  background: var(--navy);
  position: relative;
}
.work-single-quote-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent 0%,
    rgba(0,174,239,0.3) 20%,
    rgba(0,174,239,0.3) 80%,
    transparent 100%
  );
}
.work-single-quote-inner {
  display: flex;
  align-items: center;
  gap: 56px;
  max-width: 1140px;
  margin: 0 auto;
  padding: 48px 64px;
  background: #132648;
  box-shadow: 0 12px 32px rgba(0,0,0,0.25);
}
.work-single-quote {
  flex: 1;
  margin: 0;
  font-size: clamp(15px, 1.3vw, 19px);
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: -0.005em;
  color: var(--white);
}
.work-single-quote-mark {
  color: var(--white);
  font-weight: 700;
}
.work-single-quote-attribution {
  flex-shrink: 0;
  width: 220px;
  padding-left: 32px;
  border-left: 1px solid rgba(255,255,255,0.15);
}
.work-single-quote-author {
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
}
.work-single-quote-role,
.work-single-quote-company {
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  margin-top: 3px;
}

/* ---------- Remaining gallery, uniform crop ---------- */
.work-single-gallery-section {
  padding: 0 0 96px;
  background: var(--navy);
}
.work-single-gallery-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 48px;
}
.work-single-gallery-divider {
  padding-top: 40px;
  margin-bottom: 24px;
  border-top: 1px solid rgba(255,255,255,0.15);
}
.work-single-gallery-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}

.work-single-gallery-wrap {
  position: relative;
}
.work-single-gallery {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.work-single-gallery::-webkit-scrollbar {
  display: none;
}
.work-single-gallery-item {
  margin: 0;
  flex: 0 0 auto;
  height: 340px;
  background: rgba(255,255,255,0.03);
  overflow: hidden;
  scroll-snap-align: start;
}
.work-single-gallery-item img {
  height: 100%;
  width: auto;
  display: block;
}
.work-single-video-wrap {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  background: #000;
}
.work-single-gallery-video {
  height: 100%;
  width: auto;
  max-width: none;
  object-fit: contain;
  display: block;
  background: #000;
}
.work-single-video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  color: var(--navy);
  font-size: 16px;
  cursor: pointer;
  transition: transform 0.25s var(--ease-out-expo), background 0.25s var(--ease-out-expo);
}
/* Hover only on devices that really hover (mouse); on touch a :hover state
   makes the first tap get swallowed. Touch gets :active feedback instead. */
@media (hover: hover) {
  .work-single-video-play:hover {
    transform: translate(-50%, -50%) scale(1.08);
    background: var(--white);
  }
}
.work-single-video-play-icon {
  transform: translateX(1px);
}

/* Low-key overlay arrows: gradient fade + small arrow, sitting over the edge images */
.work-single-gallery-arrow {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 140px;
  z-index: 2;
  display: flex;
  align-items: center;
  border: none;
  background: none;
  cursor: pointer;
  color: var(--white);
  font-size: 15px;
  opacity: 1;
  transition: opacity 0.4s var(--ease-out-expo);
}
.work-single-gallery-arrow.is-hidden {
  opacity: 0;
  pointer-events: none;
}
.work-single-gallery-arrow-left {
  left: 0;
  justify-content: flex-start;
  padding-left: 14px;
  background: linear-gradient(to right, var(--navy) 4%, transparent 70%);
}
.work-single-gallery-arrow-right {
  right: 0;
  justify-content: flex-end;
  padding-right: 14px;
  background: linear-gradient(to left, var(--navy) 4%, transparent 70%);
}
.work-single-gallery-arrow::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.25s var(--ease-out-expo);
}
.work-single-gallery-arrow-left::before {
  background: linear-gradient(to right, var(--navy) 4%, transparent 70%);
}
.work-single-gallery-arrow-right::before {
  background: linear-gradient(to left, var(--navy) 4%, transparent 70%);
}
.work-single-gallery-arrow:hover::before {
  opacity: 0.35;
}
.work-single-gallery-arrow span {
  position: relative;
  z-index: 1;
}
.work-single-gallery-caption {
  padding: 12px 16px;
  font-size: 13px;
  color: rgba(255,255,255,0.55);
}

/* ---------- Bottom navigation buttons ---------- */
.work-single-back-section {
  padding: 0 0 120px;
  background: var(--navy);
}
.work-single-back-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 48px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.work-single-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  background: rgba(0,174,239,0.15);
  border: 1px solid rgba(0,174,239,0.5);
  color: var(--white);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  backdrop-filter: blur(6px);
  transition: all 0.3s var(--ease-out-expo);
}
.work-single-btn .arrow {
  transition: transform 0.3s var(--ease-out-expo);
}
/* Hover styling only on devices that really hover (mouse). On touch screens
   a :hover state makes iOS/Android swallow the first tap ("dead click");
   touch devices get the :active press feedback further below instead. */
@media (hover: hover) {
  .work-single-btn:hover {
    background: var(--cyan);
    border-color: var(--cyan);
    color: var(--navy);
  }
  .work-single-btn:hover .arrow {
    transform: translateX(4px);
  }
}

/* ---------- Mobile ---------- */
@media (max-width: 900px) {
  .work-single-hero { min-height: 70vh; }
  .work-single-hero-content { padding: 32px 24px; }
  .work-single-intro-section { padding: 64px 0; }
  .work-single-intro-inner { padding: 0 24px; }
  .work-single-intro-row {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 48px;
  }
  .work-single-intro-row-reverse .work-single-intro-media { order: 0; }
  .work-single-quote-section { padding: 64px 0; }
  .work-single-quote-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    padding: 36px 28px;
    margin: 0 24px;
  }
  .work-single-quote-attribution {
    width: auto;
    padding-left: 0;
    padding-top: 20px;
    border-left: none;
    border-top: 1px solid rgba(255,255,255,0.15);
  }
  .work-single-gallery-inner { padding: 0 24px; }
  .work-single-gallery-item { height: 220px; }
  .work-single-back-inner { padding: 0 24px; flex-direction: column; }
}



/* ============================================================
   DIRECTIONS — hub page
   ============================================================ */
.directions-hub-section {
  padding: 80px 0 160px;
}
.directions-hub-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 48px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.direction-hub-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  padding: 64px 72px;
  background: #132648;
  text-decoration: none;
  color: var(--white);
  box-shadow: 0 12px 32px rgba(0,0,0,0.25);
  transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s var(--ease-out-expo);
}
.direction-hub-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 44px rgba(0,0,0,0.35);
}
.direction-hub-card-left {
  flex-shrink: 0;
}
.direction-hub-name {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--white);
}
.direction-hub-name-accent {
  color: var(--cyan);
}
.direction-hub-card-right {
  display: flex;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.direction-hub-desc {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255,255,255,0.72);
  margin: 0;
  max-width: 480px;
}
.direction-hub-cta {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
}
.direction-hub-card:hover .direction-hub-cta .arrow { transform: translateX(4px); }
.direction-hub-cta .arrow { transition: transform 0.3s var(--ease-out-expo); }

/* ============================================================
   DIRECTIONS — single page hero
   ============================================================ */


/* ---------- Services grid ---------- */
.services-section {
  padding: 80px 0 120px;
}
.services-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 48px;
}
.services-inner .section-title { margin: 8px 0 40px; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.service-card {
  position: relative;
  height: 230px;
  padding: 0;
  border: 1px solid rgba(255,255,255,0.12);
  background: #132648;
  cursor: pointer;
  perspective: 1000px;
  text-align: left;
}
.service-card-face {
  position: absolute;
  inset: 0;
  padding: 24px;
  display: flex;
  align-items: center;
  backface-visibility: hidden;
  transition: transform 0.5s var(--ease-out-expo);
}
.service-card-front {
  transform: rotateY(0deg);
}
.service-card-back {
  transform: rotateY(180deg);
  align-items: center;
}
.service-card.is-open .service-card-front { transform: rotateY(-180deg); }
.service-card.is-open .service-card-back { transform: rotateY(0deg); }
.service-card.is-hint .service-card-front { transform: rotateY(-180deg); }
.service-card.is-hint .service-card-back { transform: rotateY(0deg); }
.service-card-name {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--white);
  line-height: 1.35;
}
.service-card-desc {
  font-size: 12.5px;
  line-height: 1.55;
  color: rgba(255,255,255,0.8);
  margin: 0;
}

/* ---------- Direction-scoped work/story scrollers ---------- */
.direction-work-section,
.direction-stories-section {
  padding: 0 0 120px;
}
.direction-work-inner,
.direction-stories-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 48px;
}
.direction-work-inner .section-title,
.direction-stories-inner .section-title { margin: 8px 0 40px; }

.direction-scroll-wrap { position: relative; }

.direction-work-scroll,
.direction-stories-scroll {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.direction-work-scroll::-webkit-scrollbar,
.direction-stories-scroll::-webkit-scrollbar { display: none; }

.direction-work-card {
  position: relative;
  flex: 0 0 460px;
  height: 400px;
  overflow: hidden;
  text-decoration: none;
  color: var(--white);
  scroll-snap-align: start;
  background: #0b1e3f;
}
.direction-work-card-cover { position: absolute; inset: 0; }
.direction-work-card-cover img { width: 100%; height: 100%; object-fit: cover; }
.direction-work-card-gradient {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(11,30,63,0) 40%, rgba(11,30,63,0.92) 100%);
}
.direction-work-card-content { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px; }
.direction-work-card-logo {
  max-height: clamp(30px, 4.3vw, 60px);
  max-width: 180px;
  width: auto;
  height: auto;
  filter: brightness(0) invert(1);
}
.direction-work-card-name { font-size: 17px; font-weight: 700; }

.direction-story-card {
  flex: 0 0 580px;
  height: 280px;
  display: flex;
  scroll-snap-align: start;
  text-decoration: none;
  color: var(--white);
  background: #132648;
  overflow: hidden;
}
.direction-story-card-cover { flex: 0 0 260px; height: 100%; overflow: hidden; }
.direction-story-card-cover img { width: 100%; height: 100%; object-fit: cover; }
.direction-story-card-body {
  flex: 1;
  min-width: 0;
  padding: 30px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}
.direction-story-card-title {
  font-size: 19px;
  font-weight: 600;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.direction-story-card-excerpt {
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255,255,255,0.65);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.direction-story-card-date { font-size: 12px; color: rgba(255,255,255,0.55); }

.direction-scroll-arrow {
  position: absolute;
  top: 0; bottom: 0;
  width: 140px;
  z-index: 2;
  display: flex; align-items: center;
  border: none; background: none;
  cursor: pointer; color: var(--white); font-size: 15px;
  opacity: 1;
  transition: opacity 0.4s var(--ease-out-expo);
}
.direction-scroll-arrow.is-hidden {
  opacity: 0;
  pointer-events: none;
}
.direction-scroll-arrow-left { left: 0; justify-content: flex-start; padding-left: 14px; background: linear-gradient(to right, var(--navy) 4%, transparent 70%); }
.direction-scroll-arrow-right { right: 0; justify-content: flex-end; padding-right: 14px; background: linear-gradient(to left, var(--navy) 4%, transparent 70%); }

/* ---------- Testimonial grid ---------- */
.direction-quotes-section { padding: 0 0 120px; }
.direction-quotes-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 48px;
}
.direction-quotes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 24px;
}
.direction-quote-card {
  margin: 0;
  padding: 40px 44px;
  background: #132648;
  box-shadow: 0 12px 32px rgba(0,0,0,0.25);
}
.direction-quote-text {
  font-size: 17px;
  font-weight: 500;
  line-height: 1.55;
  color: var(--white);
  margin-bottom: 24px;
}
.direction-quote-mark { font-weight: 700; }
.direction-quote-attribution { padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.15); }
.direction-quote-author { font-size: 14px; font-weight: 600; }
.direction-quote-role,
.direction-quote-company { font-size: 12px; color: rgba(255,255,255,0.6); margin-top: 2px; }

/* Mobile */
@media (max-width: 900px) {
  .directions-hub-inner { grid-template-columns: 1fr; padding: 0 24px; }
  .direction-hero { padding: 140px 24px 48px; }
  .services-inner { padding: 0 24px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .direction-work-inner, .direction-stories-inner, .direction-quotes-inner { padding: 0 24px; }
  .direction-quotes-grid { grid-template-columns: 1fr; }
  .direction-hub-card { flex-direction: column; align-items: flex-start; padding: 40px 32px; }
  .direction-hub-card-right { justify-content: flex-start; }
}


/* (Desktop override removed: single direction pages now use the same
   hero spacing as About / Work / Stories. Mobile rules further below
   still apply to .direction-hero-fix.) */

/* Directions hub: wider intro so the lede fits on ~3 lines (desktop only) */
@media (min-width: 961px) {
  .about-hero-inner--wide { max-width: 1040px; }
  .about-hero-inner--wide .about-hero-title { max-width: 900px; } /* title keeps its original width */
  /* EN title is split into three lines ("Three verticals," / "one shared" / "standard.")
     at the normal title size; width is unconstrained so the first line never wraps. */
  .about-hero-inner--wide .about-hero-title--2line {
    width: max-content;
    max-width: none;
  }
  .title-br { display: inline; }
  .about-hero-lede--wide { max-width: 46em; } /* em-based so the line breaks stay consistent at any font size */
}









/* ============================================================
   MOBILE PASS 1: overflow fix, hamburger menu, footer order
   Everything inside the media query applies to phones/tablets only.
   ============================================================ */

/* Burger + mobile menu do not exist on desktop */
.nav-burger,
.mobile-menu { display: none; }

@media (max-width: 960px) {

  /* ---------- 1. No horizontal scroll ---------- */
  html { overflow-x: hidden; }
  body { overflow-x: clip; max-width: 100%; }

  /* The decorative glow was wider than the screen */
  .about-hero { overflow: hidden; }
  .about-hero::before {
    width: 100vw;
    height: 100vw;
    transform: translate(-50%, -40%);
  }
  .about-hero-title,
  .cta-band-title { overflow-wrap: break-word; }

  /* Grid columns that could not shrink below their content */
  .section-header,
  .awards-inner,
  .office-inner,
  .work-single-intro-row { grid-template-columns: minmax(0, 1fr); }
  .office-detail-card { grid-template-columns: 90px minmax(0, 1fr); }
  .team-card { min-width: 0; }

  /* Long emails / URLs wrap instead of pushing the page wider */
  .office-detail-value,
  .team-contact-item,
  .post-body-content { overflow-wrap: anywhere; }
  .post-body-content img { max-width: 100%; height: auto; }

  /* The cookie text was forced onto one line */
  .cookie-banner-text { white-space: normal; }

  /* Story hero text now uses the same side padding as the rest */
  .post-hero-inner { padding: 0 24px; }

  /* ---------- 2. Hamburger menu ---------- */
  .nav { grid-template-columns: 1fr auto; }
  .nav-links,
  .nav-right { display: none; }
  .nav.menu-open {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom-color: transparent;
  }
  body.menu-open { overflow: hidden; }

  .nav-burger {
    display: block;
    position: relative;
    justify-self: end;
    width: 44px;
    height: 44px;
    margin-right: -10px;
    -webkit-tap-highlight-color: transparent;
  }
  .nav-burger span {
    position: absolute;
    left: 10px;
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: top 0.5s var(--ease-out-expo),
                transform 0.5s var(--ease-out-expo),
                opacity 0.3s ease-out;
  }
  .nav-burger span:nth-child(1) { top: 14px; }
  .nav-burger span:nth-child(2) { top: 21px; }
  .nav-burger span:nth-child(3) { top: 28px; }
  .nav-burger.is-open span:nth-child(1) { top: 21px; transform: rotate(45deg); }
  .nav-burger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0.3); }
  .nav-burger.is-open span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

  /* Full-screen menu: slides down like a curtain, items fade up in sequence */
  .mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 98;
    display: flex;
    flex-direction: column;
    padding: 110px 24px 40px;
    background: var(--navy);
    overflow-y: auto;
    overscroll-behavior: contain;
    clip-path: inset(0 0 100% 0);
    visibility: hidden;
    transition: clip-path 0.65s var(--ease-out-expo),
                visibility 0s linear 0.65s;
  }
  .mobile-menu.is-open {
    clip-path: inset(0 0 0 0);
    visibility: visible;
    transition: clip-path 0.65s var(--ease-out-expo), visibility 0s;
  }
  .mobile-menu-links a,
  .mobile-menu-footer > * {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
  }
  .mobile-menu.is-open .mobile-menu-links a,
  .mobile-menu.is-open .mobile-menu-footer > * {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease-out, transform 0.7s var(--ease-out-expo);
    transition-delay: calc(0.2s + var(--i, 0) * 0.06s);
  }
  .mobile-menu-links { display: flex; flex-direction: column; }
  .mobile-menu-links a {
    padding: 18px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -0.02em;
    text-transform: uppercase;
  }
  .mobile-menu-links a.active { color: var(--cyan); }
  .mobile-menu-footer {
    margin-top: auto;
    padding-top: 48px;
    display: flex;
    flex-direction: column;
    gap: 24px;
  }
  .mobile-menu-cta {
    display: flex;
    justify-content: center;
    padding: 18px 24px;
    background: var(--cyan);
    color: var(--navy);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
  }
  .mobile-menu-lang {
    display: flex;
    justify-content: center;
    gap: 10px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.15em;
    color: rgba(255,255,255,0.5);
  }
  .mobile-menu-lang a.active { color: var(--white); }

  /* ---------- 4. Footer order: email, buttons, copyright ---------- */
  footer {
    flex-direction: column;
    align-items: center;
    gap: 24px;
    padding: 40px 24px 48px;
    text-align: center;
  }
  .footer-email { order: 1; font-size: 15px; color: rgba(255,255,255,0.85); }
  .footer-links { order: 2; gap: 8px; }
  .footer-copy  { order: 3; font-size: 11px; }
    .footer-dot { display: none; }
  .footer-links a {
    padding: 10px 14px;
    border: 1px solid rgba(255,255,255,0.15);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
  /* LinkedIn + Facebook side by side on row 1, Privacy Policy alone on row 2 */
  .footer-links a:nth-of-type(2),
  .footer-links a:nth-of-type(3) { order: 1; }
  .footer-links::after { content: ""; order: 2; flex-basis: 100%; height: 0; }
  .footer-links a:nth-of-type(1) { order: 3; }
}


/* ============================================================
   MOBILE PASS 2: home hero carousel
   ============================================================ */
.hero-dots { display: none; }

@media (max-width: 960px) {
  .hero {
    height: 100vh;
    height: 100svh;
    min-height: 560px;
  }
  .triptych {
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: auto;          /* the JS handles the glide itself */
    scrollbar-width: none;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
  }
  .triptych::-webkit-scrollbar { display: none; }

  .panel {
    flex: 0 0 100%;
    height: 100%;
    min-height: 0;
    border-bottom: none;
    border-right: none;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }
  /* Cancel the desktop hover-expand behaviour (hover sticks on touch) */
  .triptych:hover .panel,
  .triptych:hover .panel:hover { flex: 0 0 100%; }

  .panel-content { padding: 32px 24px 96px; }   /* room for the dots */

  .hero-dots {
    position: absolute;
    left: 12px;
    bottom: 36px;
    z-index: 5;
    display: flex;
    align-items: center;
  }
  .hero-dot {
    padding: 12px;
    -webkit-tap-highlight-color: transparent;
  }
  .hero-dot span {
    display: block;
    width: 8px;
    height: 8px;
    border-radius: 4px;
    background: rgba(255,255,255,0.4);
    transition: width 0.6s var(--ease-out-expo), background 0.4s ease-out;
  }
  .hero-dot.is-active span {
    width: 28px;
    background: var(--cyan);
  }
}



/* ============================================================
   MOBILE PASS 3: page tops, awards, services, scrollers, cards
   ============================================================ */
@media (max-width: 960px) {

  /* ---------- Page tops: text centred, divider at the very bottom ---------- */
  .about-hero,
  .direction-hero-fix {
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding: 90px 24px 40px;
  }
  .about-hero-inner { width: 100%; }
  .about-hero-title {
    font-size: clamp(36px, 11vw, 56px);
    margin-bottom: 28px;
  }
  .about-hero-eyebrow { margin-bottom: 24px; }

  /* Work + Stories: hero and filter tabs are centred together */
  .page-top {
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 90px 0 40px;
  }
  .page-top .about-hero {
    min-height: 0;
    display: block;
    width: 100%;
    padding: 0 24px 32px;
  }
  .page-top .blog-filter-row { width: 100%; padding: 0 24px; }

  /* ---------- 12. Filter tabs: tidy 2-column grid ---------- */
  .blog-filter {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .blog-filter-tab,
  .blog-filter-tab:first-child,
  .blog-filter-tab:last-child {
    justify-content: center;
    text-align: center;
    padding: 14px 8px;
    font-size: 10.5px;
    letter-spacing: 0.1em;
    border: 1px solid rgba(255,255,255,0.14);
  }
  .blog-filter-tab.is-active { border-color: var(--cyan); }
  /* An odd number of tabs: the last one spans the full row */
  .blog-filter-tab:last-child:nth-child(odd) { grid-column: 1 / -1; }

  /* ---------- Awards: cards centred, lighter edge fades ---------- */
  .awards-scroll { gap: 12px; }
  .award-card { flex: 0 0 84%; height: auto; min-height: 380px; }
  .award-card:first-child { margin-left: 8%; }
  .award-card:last-child { margin-right: 8%; }
  .award-card-inner { padding: 32px 20px 28px; }
  .award-entry { grid-template-columns: 42px 50px 1fr; gap: 10px; }
  .awards-nav-arrow { width: 56px; font-size: 14px; }
  .awards-nav-arrow-left {
    padding-left: 10px;
    background: linear-gradient(to right, rgba(6,15,34,0.5) 0%, transparent 100%);
  }
  .awards-nav-arrow-right {
    padding-right: 10px;
    background: linear-gradient(to left, rgba(6,15,34,0.5) 0%, transparent 100%);
  }
  .awards-nav-arrow::before { display: none; }


  /* ---------- 6. Services: stacked accordion rows ---------- */
  .services-grid { grid-template-columns: 1fr; gap: 8px; }
  .service-card {
    display: block;
    width: 100%;
    height: auto;
    perspective: none;
  }
  .service-card .service-card-face {
    position: relative;
    inset: auto;
    transform: none !important;
    backface-visibility: visible;
    -webkit-backface-visibility: visible;
  }
    .service-card-front {
    min-height: 60px;
    padding: 18px 52px 18px 20px;
  }
  .service-card-name { font-size: 13px; }
  .service-card-front::after {
    content: "";
    position: absolute;
    right: 22px;
    top: 50%;
    width: 8px;
    height: 8px;
    margin-top: -6px;
    border-right: 1.5px solid var(--cyan);
    border-bottom: 1.5px solid var(--cyan);
    transform: rotate(45deg);
    transition: transform 0.45s var(--ease-out-expo),
                margin-top 0.45s var(--ease-out-expo);
  }
  .service-card.is-open .service-card-front::after {
    transform: rotate(-135deg);
    margin-top: -2px;
  }
  /* Height animates between 0 and the text's real height. The old version
     animated padding and a guessed max-height together, which jerked. */
  .service-card-back {
    display: grid;
    grid-template-rows: 0fr;
    padding: 0 52px 0 20px;
    opacity: 0;
    transition: grid-template-rows 0.55s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.4s ease-out;
  }
  .service-card.is-open .service-card-back {
    grid-template-rows: 1fr;
    opacity: 1;
  }
  .service-card-desc {
    min-height: 0;
    overflow: hidden;
    font-size: 14px;
  }
  .service-card-desc::after {   /* bottom spacing lives inside the clipped area */
    content: "";
    display: block;
    height: 20px;
  }
  .service-card-front::after {
    transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1),
                margin-top 0.55s cubic-bezier(0.4, 0, 0.2, 1);
  }

  /* ---------- 7/8/9. Direction page scrollers ---------- */
  .direction-work-scroll,
  .direction-stories-scroll { gap: 12px; }

  .direction-work-card { flex: 0 0 100%; height: 340px; }
  .direction-work-card-content { padding: 24px; }
  .direction-work-card-logo {
    height: 52px;
    width: auto;
    max-width: 100%;
    max-height: none;
    object-fit: contain;
    object-position: left center;
  }

  .direction-story-card {
    flex: 0 0 100%;
    height: auto;
    flex-direction: column;
  }
  .direction-story-card-cover { flex: 0 0 auto; width: 100%; height: 200px; }
  .direction-story-card-body {
    padding: 22px 22px 26px;
    justify-content: flex-start;
  }

  .direction-scroll-arrow { width: 56px; font-size: 14px; }
  .direction-scroll-arrow-left {
    padding-left: 10px;
    background: linear-gradient(to right, rgba(11,30,63,0.5) 0%, transparent 100%);
  }
  .direction-scroll-arrow-right {
    padding-right: 10px;
    background: linear-gradient(to left, rgba(11,30,63,0.5) 0%, transparent 100%);
  }

  /* ---------- 7. Work page gallery: one image per swipe ---------- */
  .work-single-gallery { gap: 12px; }
  .work-single-gallery-item { flex: 0 0 100%; height: auto; }
  .work-single-gallery-item img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: contain;
  }
  .work-single-video-wrap { height: auto; aspect-ratio: 4 / 3; }
  .work-single-gallery-video { width: 100%; height: 100%; object-fit: contain; }
  .work-single-gallery-arrow { width: 56px; font-size: 14px; }
  .work-single-gallery-arrow-left {
    padding-left: 10px;
    background: linear-gradient(to right, rgba(11,30,63,0.55) 0%, transparent 100%);
  }
  .work-single-gallery-arrow-right {
    padding-right: 10px;
    background: linear-gradient(to left, rgba(11,30,63,0.55) 0%, transparent 100%);
  }
  .work-single-gallery-arrow::before { display: none; }

  /* ---------- 11. Work cards: image, logo, tag, button only ---------- */
  .work-card { aspect-ratio: 5 / 4; }
  .work-card-content { padding: 24px; }
  .work-card-direction { top: 24px; right: 24px; }
  .work-card-top { max-width: 55%; }
  .work-card-logo {
    height: 44px;
    width: auto;
    max-width: 100%;
    max-height: none;
    object-fit: contain;
    object-position: left center;
  }
  .work-card-quote,
  .work-card-attribution { display: none; }
  .work-card-bottom { gap: 0; }
  .work-card-footer {
    border-top: none;
    padding-top: 0;
    justify-content: flex-start;
  }
  .work-card-cta { margin-bottom: 0; padding: 10px 16px; font-size: 10px; }

  /* ---------- 10. Work + Story pages: photo fills the first screen ---------- */
  .work-single-hero,
  .post-hero {
    min-height: 100vh;
    min-height: 100svh;
  }
  .post-hero { padding: 120px 0 40px; }   /* was double-padding the sides */
  .post-title { font-size: clamp(28px, 8vw, 38px); }
}



/* ============================================================
   MOBILE PASS 4
   ============================================================ */
html { background: var(--navy); }

@media (max-width: 960px) {

  /* ---------- Menu bar gap: own layer + cover above the screen edge ---------- */
  .nav {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
  }
  .nav.scrolled::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 100%;
    height: 120px;
    background: rgba(11, 30, 63, 0.82);
  }

  /* ---------- Work + Stories: tabs sit at the bottom, above the divider ---------- */
  .page-top {
    justify-content: flex-start;
    padding: 90px 0 0;
  }
  .page-top .about-hero {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0 24px 24px;
  }
  .page-top .blog-filter-row { padding: 0 24px 28px; }

  /* ---------- About: team cards fade in one by one ---------- */
  .team-grid.team-grid > .team-card {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 1s var(--ease-out-expo), transform 1s var(--ease-out-expo);
    transition-delay: 0s;
  }
  .team-grid.team-grid > .team-card.is-shown {
    opacity: 1;
    transform: none;
  }
  .team-photo {
    opacity: 0;
    transition: opacity 1.1s ease-out,
                filter 0.7s var(--ease-out-expo),
                transform 1.2s var(--ease-out-expo);
  }
  .team-photo.is-loaded { opacity: 1; }

  /* ---------- Direction pages: one uniform logo box ---------- */
  .direction-work-card-logo {
    width: 140px;
    height: 48px;
    max-width: none;
    max-height: none;
    object-fit: contain;
    object-position: left center;
  }

  /* ---------- Stories cards: more air under the direction tag ---------- */
  .blog-card-body { gap: 18px; }
  .blog-side-card-text { gap: 18px; }

  /* ---------- Work cards: taller, quotes and titles back ---------- */
  .work-card {
    aspect-ratio: auto;
    height: min(78svh, 600px);
    min-height: 460px;
  }
  .work-card-quote {
    display: -webkit-box;
    -webkit-line-clamp: 5;
    font-size: 14px;
    line-height: 1.5;
  }
  .work-card-bottom { gap: 14px; }
  .work-card-footer {
    flex-wrap: wrap;
    gap: 12px 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,0.18);
    justify-content: space-between;
    align-items: flex-end;
  }
  .work-card-attribution {
    display: block;
    flex: 1 1 140px;
    min-width: 0;
  }
  .work-card-author { font-size: 13px; }
  .work-card-role,
  .work-card-company { font-size: 11.5px; }

  /* ---------- Work pages: text margin matches Stories pages ----------
     (Stories text sits inside two 24px paddings = 48px; Work only had 24px.) */
  .work-single-intro-inner { padding: 0 48px; }

  /* ---------- Partners: tighter space between rows ---------- */
  .work-single-partners-row { row-gap: 14px; column-gap: 28px; }
}


/* ============================================================
   MOBILE PASS 5
   ============================================================ */

/* Hide the browser's big play button on the home videos */
.panel-video::-webkit-media-controls,
.panel-video::-webkit-media-controls-start-playback-button,
.panel-video::-webkit-media-controls-overlay-play-button,
.panel-video::-webkit-media-controls-panel {
  display: none !important;
  -webkit-appearance: none;
}

@media (max-width: 960px) {

  /* Work cards: same fixed logo box approach as the direction pages */
  .work-card-logo {
    width: 130px;
    height: 44px;
    max-width: none;
    max-height: none;
    object-fit: contain;
    object-position: left center;
  }

  /* "See the work" always on its own row, with more room above it */
  .work-card-attribution { flex: 1 1 100%; }
  .work-card-cta { margin-top: 8px; }

  /* Team photos: fade only (no filter/transform repaint while loading) */
  .team-photo { transition: opacity 1.1s ease-out; }
  .team-card { backface-visibility: hidden; }

  /* Services: tab opens first, then the text fades in.
     Closing: text fades out fast while the tab collapses. */
  .service-card-back {
    transition: grid-template-rows 0.55s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.2s ease-out;
  }
  .service-card.is-open .service-card-back {
    transition: grid-template-rows 0.55s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.4s ease-out 0.5s;
  }
}


/* ============================================================
   MOBILE PASS 6: press feedback, slower menu, slower page fade
   ============================================================ */

/* Same bright-blue look as the old hover, shown while pressing */
@media (hover: none) {
  .work-single-btn,
  .work-card,
  .blog-filter-tab,
  .cookie-btn,
  .footer-links a,
  .work-single-video-play { -webkit-tap-highlight-color: transparent; }

  .work-single-btn:active {
    background: var(--cyan);
    border-color: var(--cyan);
    color: var(--navy);
  }
  .work-card:active .work-card-cta {
    background: var(--cyan);
    border-color: var(--cyan);
    color: var(--navy);
  }
  .blog-filter-tab:not(.is-active):active {
    color: var(--white);
    background: rgba(255,255,255,0.04);
  }
  .cookie-btn:active {
    background: var(--cyan);
    border-color: var(--cyan);
    color: var(--navy);
  }
  .cookie-btn-ghost:active {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.3);
    color: var(--white);
  }
  .footer-links a:active { color: var(--white); }
  .work-single-video-play:active {
    transform: translate(-50%, -50%) scale(1.08);
    background: var(--white);
  }
}

@media (max-width: 960px) {

  /* Menu: slower, gentler ease-in-out instead of the abrupt expo curve */
  .mobile-menu {
    transition: clip-path 0.8s cubic-bezier(0.65, 0, 0.35, 1),
                visibility 0s linear 0.8s;
  }
  .mobile-menu.is-open {
    transition: clip-path 0.9s cubic-bezier(0.65, 0, 0.35, 1),
                visibility 0s;
  }
  .nav-burger span {
    transition: top 0.7s cubic-bezier(0.65, 0, 0.35, 1),
                transform 0.7s cubic-bezier(0.65, 0, 0.35, 1),
                opacity 0.4s ease-out;
  }
  .mobile-menu.is-open .mobile-menu-links a,
  .mobile-menu.is-open .mobile-menu-footer > * {
    transition: opacity 0.8s ease-out,
                transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: calc(0.4s + var(--i, 0) * 0.08s);
  }

  /* Page fade-in: slower, with a tiny pause so it never feels abrupt */
  html body.page-transition {
    transition: opacity 1.1s ease-out 0.1s;
  }
  html body.page-transition.is-leaving {
    transition: opacity 0.18s ease-out;
  }
}