/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --gray-900: #111827;
  --gray-600: #4b5563;
  --gray-500: #6b7280;
  --gray-300: #d1d5db;
  --gray-200: #e5e7eb;
  --orange: #ED6A1F;
  --orange-hover: #d4560f;
  --amber: #F59E0B;
  --ease-roll: cubic-bezier(0.25,0.1,0.25,1);
  --ease-sheet: cubic-bezier(0.32,0.72,0,1);
  --ease-smooth: cubic-bezier(0.22,1,0.36,1);
}
html { -webkit-font-smoothing: antialiased; scroll-behavior: smooth; }
/* hide scrollbar while keeping scroll functionality */
html { scrollbar-width: none; -ms-overflow-style: none; }
html::-webkit-scrollbar { width: 0; height: 0; display: none; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--gray-900);
  /* one continuous warm wash so sections blend rather than hard-cut */
  background: linear-gradient(180deg, #F4EDE6 0%, #FAF6F1 24%, #FFFFFF 50%, #FAF6F1 76%, #F4EDE6 100%) no-repeat;
  background-size: 100% 100%;
}
/* anchored sections land clearly below the top of the viewport */
section[id] { scroll-margin-top: 4.5rem; }
img, video, svg { display: block; max-width: 100%; }

/* ---- Discourage copying text & images (deterrent only) ---- */
body {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
/* keep form fields usable — users must be able to select/edit their input */
input, textarea, select, [contenteditable] {
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}
img {
  -webkit-user-drag: none;
  user-drag: none;
  -webkit-touch-callout: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *:not(.fox-pet):not(.fox-img), *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* Scroll-reveal: elements rise and fade in as they enter the viewport */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease-smooth), transform 0.8s var(--ease-smooth);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }
/* staggered children (cards, stats) */
.reveal-group > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-smooth), transform 0.7s var(--ease-smooth);
}
.reveal-group.is-visible > * { opacity: 1; transform: none; }
.reveal-group.is-visible > *:nth-child(2) { transition-delay: 0.08s; }
.reveal-group.is-visible > *:nth-child(3) { transition-delay: 0.16s; }
.reveal-group.is-visible > *:nth-child(4) { transition-delay: 0.24s; }
.reveal-group.is-visible > *:nth-child(5) { transition-delay: 0.32s; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-group > * { opacity: 1; transform: none; }
}
button { font-family: inherit; border: none; cursor: pointer; background: none; }
a { text-decoration: none; color: inherit; }

/* Brand name accent */
.brand { color: var(--orange); }

.container { max-width: 1440px; margin-left: auto; margin-right: auto; }

/* Utility liquid glass classes (defined, not actively used) */
.liquid-glass {
  background: rgba(255,255,255,0.01);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-shadow: inset 0 0 12px rgba(255,255,255,0.18);
  position: relative;
}
.liquid-glass::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255,255,255,0.6), rgba(255,255,255,0.05));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}
.liquid-glass-strong {
  background: rgba(255,255,255,0.01);
  backdrop-filter: blur(50px);
  -webkit-backdrop-filter: blur(50px);
  box-shadow: inset 0 0 12px rgba(255,255,255,0.18);
}

/* Shared frosted-glass card surface (used by service, contact & work cards) */
.glass-card {
  position: relative;
  /* liquid-glass: translucent diagonal gradient instead of flat fill */
  background: linear-gradient(135deg, rgba(255,255,255,0.62) 0%, rgba(255,255,255,0.42) 100%);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.6);
  /* layered depth: soft drop shadow + bright top highlight + subtle bottom highlight */
  box-shadow:
    0 8px 32px rgba(31,38,135,0.10),
    inset 0 1px 0 rgba(255,255,255,0.7),
    inset 0 -1px 1px rgba(255,255,255,0.18);
}
/* glossy top sheen — confined to the upper edge so it never washes out content */
.glass-card::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,0.45) 0%, rgba(255,255,255,0) 28%);
  pointer-events: none;
  z-index: 0;
}
/* gradient hairline edge */
.glass-card::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255,255,255,0.85), rgba(255,255,255,0.05));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  z-index: 0;
}
/* keep card content above the sheen/edge pseudo-layers */
.glass-card > * { position: relative; z-index: 1; }

/* ============================================================
   SECTION 1: HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  background: #F4EDE6;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
/* soft fade at the bottom so the hero melts into the next section */
.hero::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 12vh; z-index: 15;
  background: linear-gradient(to bottom, transparent, #F4EDE6);
  pointer-events: none;
}

/* Shader overlay stack (canvas recreation) */
.shader-overlay {
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: none;
}
.shader-overlay canvas { width: 100%; height: 100%; display: block; background: #F4EDE6; }
/* Fluted glass vertical line texture layered on top */
.shader-overlay .fluted {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    121deg,
    rgba(255,255,255,0.12) 0px,
    rgba(255,255,255,0.0) 4px,
    rgba(0,0,0,0.03) 8px,
    rgba(255,255,255,0.10) 12px
  );
  mix-blend-mode: overlay;
  opacity: 0.5;
}

/* ---- NAV ---- */
.nav-wrap { position: relative; z-index: 20; }
.nav-pad { padding: 0.5rem; }
.navbar {
  position: relative;
  background: rgba(255,255,255,0.45);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgba(255,255,255,0.6);
  box-shadow: 0 8px 32px rgba(31,38,135,0.12), inset 0 1px 0 rgba(255,255,255,0.6);
  border-radius: 9999px;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-left { display: flex; align-items: center; gap: 1.5rem; }
.logo {
  width: auto; height: 2.25rem;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}
/* When .logo is an <a> wrapper (e.g. Team page nav), size the inner image */
a.logo { height: auto; }
a.logo img { height: 2.25rem; width: auto; object-fit: contain; display: block; }
.nav-links { display: none; align-items: center; gap: 1.5rem; }
.nav-links a {
  font-size: 14px; color: var(--gray-900);
  transition: color 0.3s;
}
.nav-links a:hover { color: var(--gray-500); }

.nav-right { display: none; align-items: center; gap: 1rem; padding-right: 0.25rem; }
.nav-note { font-size: 13px; color: var(--gray-600); display: none; }
.nav-time { font-size: 13px; color: var(--gray-600); display: flex; align-items: center; gap: 0.375rem; }

/* Text-roll button (shared) */
.btn-roll {
  display: inline-flex; align-items: center;
  background: rgba(17,24,39,0.72);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 6px 20px rgba(31,38,135,0.18), inset 0 1px 0 rgba(255,255,255,0.15);
  color: #fff;
  font-size: 13px; font-weight: 500;
  border-radius: 9999px;
  padding: 0.5rem 0.5rem 0.5rem 1.25rem;
  gap: 0.625rem;
}
.roll-mask { overflow: hidden; height: 20px; display: flex; align-items: flex-start; }
.roll-inner {
  display: flex; flex-direction: column;
  flex-shrink: 0;
  transition: transform 0.5s var(--ease-roll);
}
.roll-inner span {
  line-height: 20px; height: 20px; flex: 0 0 20px;
  display: flex; align-items: center; white-space: nowrap;
}
/* text-roll disabled — only the arrow animates on hover */
.roll-circle {
  width: 1.5rem; height: 1.5rem;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
  border-radius: 9999px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; color: var(--gray-900);
  transition: transform 0.35s var(--ease-roll);
}
.btn-roll:hover .roll-circle { transform: rotate(-45deg); }

/* Mobile toggle */
.mobile-toggle {
  display: flex; align-items: center; justify-content: center;
  width: 2.25rem; height: 2.25rem;
  background: rgba(17,24,39,0.72);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff;
  border-radius: 9999px;
  margin-right: 0.25rem;
}

/* ---- HERO CONTENT ---- */
.hero-spacer { flex: 1; }
.hero-content {
  position: relative; z-index: 20;
  width: 100%;
  padding: 0 1.25rem 3.5rem;
}
.hero-label {
  font-size: 13px; color: var(--gray-900);
  letter-spacing: 0.05em; margin-bottom: 1.25rem;
}
.hero-h1 {
  font-size: clamp(1.75rem, 7vw, 4.2rem);
  font-weight: 500; line-height: 1.08;
  letter-spacing: -0.03em; color: var(--gray-900);
}
.hero-h1 br { display: none; }
.hero-h1 .sp-fallback { }

.cta-row {
  display: flex; flex-direction: column;
  gap: 1rem; margin-top: 2rem;
}
/* Orange button */
.btn-orange {
  display: inline-flex; align-items: center;
  background: linear-gradient(135deg, rgba(237,106,31,0.92), rgba(237,106,31,0.78));
  backdrop-filter: blur(12px) saturate(170%);
  -webkit-backdrop-filter: blur(12px) saturate(170%);
  border: 1px solid rgba(255,255,255,0.25);
  box-shadow: 0 6px 20px rgba(237,106,31,0.30), inset 0 1px 0 rgba(255,255,255,0.35);
  color: #fff;
  font-size: 13px; font-weight: 500;
  border-radius: 9999px;
  padding: 0.5rem 0.5rem 0.5rem 1.25rem;
  gap: 0.625rem;
  transition: background 0.3s, box-shadow 0.3s;
  align-self: flex-start;
}
.btn-orange:hover {
  background: linear-gradient(135deg, rgba(212,86,15,0.95), rgba(212,86,15,0.82));
  box-shadow: 0 8px 28px rgba(237,106,31,0.40), inset 0 1px 0 rgba(255,255,255,0.35);
}
.btn-orange .roll-circle { width: 1.75rem; height: 1.75rem; color: var(--orange); }
.btn-orange:hover .roll-circle { transform: rotate(-45deg); }

/* Secondary "ghost" button — pairs with the primary orange button */
/* "Know our team" — plain text link styled like the contact lines */
.team-link {
  position: relative;
  margin-top: 0.75rem;
  width: fit-content;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.45rem 1rem;
  font-size: 13px; font-weight: 600;
  color: var(--orange);
  /* liquid glass: translucent warm-white over a backdrop blur */
  background: linear-gradient(135deg, rgba(250,246,241,0.65) 0%, rgba(244,237,230,0.42) 100%);
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 9999px;
  text-decoration: none;
  box-shadow:
    0 6px 20px rgba(31,38,135,0.10),
    inset 0 1px 0 rgba(255,255,255,0.7),
    inset 0 -1px 1px rgba(255,255,255,0.2);
  overflow: hidden;
  transition: background 0.3s var(--ease-smooth), box-shadow 0.3s var(--ease-smooth), transform 0.3s var(--ease-smooth);
}
/* glossy top sheen */
.team-link::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,0.5) 0%, rgba(255,255,255,0) 55%);
  pointer-events: none;
}
.team-link:hover {
  background: linear-gradient(135deg, rgba(250,246,241,0.8) 0%, rgba(244,237,230,0.55) 100%);
  box-shadow:
    0 10px 26px rgba(31,38,135,0.16),
    inset 0 1px 0 rgba(255,255,255,0.85);
  transform: translateY(-1px);
}
/* keep label + icons above the sheen */
.team-link > * { position: relative; z-index: 1; }
/* the leading users icon + trailing arrow ride the button's orange text colour */
.team-link svg { color: var(--orange); }
.team-link-arrow {
  color: currentColor;
  transition: transform 0.3s var(--ease-smooth);
}
.team-link:hover .team-link-arrow { transform: translateX(3px); }

/* Partner badge */
.partner-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(255,255,255,0.5);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 8px;
  padding: 0.5rem 0.625rem;
  box-shadow: 0 4px 16px rgba(31,38,135,0.10), inset 0 1px 0 rgba(255,255,255,0.6);
  transition: box-shadow 0.3s, transform 0.3s;
  align-self: flex-start;
}
.partner-badge:hover { box-shadow: 0 8px 28px rgba(31,38,135,0.16), inset 0 1px 0 rgba(255,255,255,0.6); transform: translateY(-2px); }
.partner-badge .star { width: 1.25rem; height: 1.25rem; color: #ED6A1F; fill: currentColor; }
.partner-badge .label { font-size: 13px; font-weight: 500; }
.partner-badge .featured {
  font-size: 10px;
  background: rgba(17,24,39,0.78);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  padding: 0.125rem 0.375rem; border-radius: 4px;
}

/* ---- MOBILE MENU OVERLAY ---- */
.mobile-menu {
  position: fixed; inset: 0; z-index: 50;
  visibility: hidden;
}
.mobile-menu.open { visibility: visible; }
.mobile-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.6);
  opacity: 0; transition: opacity 0.5s var(--ease-sheet);
}
.mobile-menu.open .mobile-backdrop { opacity: 1; }
.mobile-sheet {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  border: 1px solid rgba(255,255,255,0.6);
  box-shadow: 0 -8px 40px rgba(31,38,135,0.18), inset 0 1px 0 rgba(255,255,255,0.7);
  border-radius: 1rem;
  margin: 0 0.75rem 0.75rem;
  padding: 1.5rem;
  transform: translateY(110%);
  transition: transform 0.5s var(--ease-sheet);
}
.mobile-menu.open .mobile-sheet { transform: translateY(0); }
.mobile-time-badge {
  display: inline-flex; align-items: center; gap: 0.375rem;
  font-size: 13px; color: var(--gray-600);
  background: rgba(255,255,255,0.4);
  backdrop-filter: blur(10px) saturate(150%);
  -webkit-backdrop-filter: blur(10px) saturate(150%);
  border: 1px solid rgba(255,255,255,0.6); border-radius: 9999px;
  padding: 0.375rem 0.875rem; margin-bottom: 1.5rem;
}
.mobile-nav { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1.5rem; }
.mobile-nav a { font-size: 28px; font-weight: 500; }
.mobile-start {
  display: inline-flex; align-items: center; justify-content: space-between;
  width: 100%;
  background: rgba(17,24,39,0.78);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.15);
  color: #fff;
  font-size: 15px; font-weight: 500;
  border-radius: 9999px;
  padding: 0.75rem 0.75rem 0.75rem 1.5rem;
}
.mobile-start .roll-circle { color: var(--gray-900); }

/* ============================================================
   SECTION 2: ABOUT
   ============================================================ */
.about { background: #fff; padding-top: 4rem; padding-bottom: 3rem; overflow: hidden; }
.section-x { padding-left: 1.25rem; padding-right: 1.25rem; }

.badge-row { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.5rem; }
.num-circle {
  width: 1.5rem; height: 1.5rem;
  border-radius: 9999px;
  background: rgba(17,24,39,0.78);
  backdrop-filter: blur(8px) saturate(160%);
  -webkit-backdrop-filter: blur(8px) saturate(160%);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 600; flex-shrink: 0;
}
/* Liquid-glass section label */
.pill-label {
  position: relative; overflow: hidden;
  font-size: 12px; font-weight: 500; color: var(--gray-900);
  background: linear-gradient(135deg, rgba(120,120,130,0.20) 0%, rgba(120,120,130,0.08) 100%);
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  border: 1px solid rgba(120,120,130,0.30); border-radius: 9999px;
  padding: 0.3rem 0.85rem;
  box-shadow:
    0 4px 14px rgba(31,38,135,0.12),
    inset 0 1px 0 rgba(255,255,255,0.7),
    inset 0 -1px 2px rgba(255,255,255,0.15);
}
/* glossy top sheen */
.pill-label::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0) 55%);
  pointer-events: none;
}
.pill-label > * { position: relative; z-index: 1; }

.about-h2 {
  font-size: clamp(1.5rem, 4vw, 3.2rem);
  font-weight: 500; line-height: 1.12;
  letter-spacing: -0.02em; color: var(--gray-900);
  margin-bottom: 3rem;
}

/* Mobile/tablet stacked content */
.about-mobile { display: block; }
.about-desktop { display: none; }
.about-para {
  font-size: 15px; line-height: 1.6; font-weight: 500; color: var(--gray-900);
  margin-bottom: 1.5rem;
}
.about-images { display: flex; flex-direction: column; gap: 1rem; margin-top: 2rem; }
.about-images .img-sm { width: 100%; aspect-ratio: 438/346; }
.about-images .img-lg { width: 100%; aspect-ratio: 900/600; }
.about-images img { width: 100%; height: 100%; object-fit: cover; border-radius: 0.75rem; }

/* ============================================================
   SECTION 3: CASE STUDIES
   ============================================================ */
.cases {
  background: radial-gradient(90% 70% at 90% 10%, rgba(245,158,11,0.07), transparent 55%);
  padding-top: 4rem; padding-bottom: 4rem;
}
.cases .pill-label { border-color: var(--gray-300); }
.cases-h2 {
  font-size: clamp(1.75rem, 7vw, 4.2rem);
  font-weight: 500; line-height: 1.08; letter-spacing: -0.03em;
  color: var(--gray-900); margin-bottom: 2.5rem;
}
.cards-grid {
  display: grid; grid-template-columns: 1fr;
  gap: 1.25rem;
}
.card {
  border-radius: 1.25rem;
  padding: 0.75rem 0.75rem 1.25rem;
  transition: transform 0.3s, box-shadow 0.3s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(31,38,135,0.16), inset 0 1px 0 rgba(255,255,255,0.5);
}
.card .desc, .card .title { padding-left: 0.25rem; padding-right: 0.25rem; }
.card .video-box {
  position: relative; border-radius: 0.85rem; overflow: hidden; cursor: pointer;
}
.card .video-box.narrativ { aspect-ratio: 329/246; background: #fff; }
.card .video-box.luminar { aspect-ratio: 1/1; background: #6b6b6b; }
.card video, .card .video-box > img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Expanding hover pill */
.hover-pill {
  position: absolute; bottom: 1rem; left: 1rem;
  height: 2.25rem; width: 2.25rem;
  border-radius: 9999px;
  display: flex; align-items: center;
  overflow: hidden;
  text-decoration: none;
  transition: width 0.5s var(--ease-smooth);
}
.hover-pill.light { background: #fff; color: var(--gray-900); }
.hover-pill.dark { background: var(--gray-900); color: #fff; }
.video-box:hover .hover-pill.light { width: 148px; }
.video-box:hover .hover-pill.dark { width: 168px; }
.hover-pill .pill-text {
  font-size: 13px; font-weight: 500;
  white-space: nowrap;
  opacity: 0; transform: translateX(-4px);
  /* collapse the text completely while at rest so the pill is a clean circle */
  max-width: 0; padding-left: 0; overflow: hidden;
  transition: opacity 0.4s var(--ease-smooth), transform 0.4s var(--ease-smooth),
              max-width 0.5s var(--ease-smooth), padding-left 0.5s var(--ease-smooth);
  order: 1;
}
.video-box:hover .hover-pill .pill-text {
  opacity: 1; transform: translateX(0);
  max-width: 120px; padding-left: 0.75rem;
  transition-delay: 0.12s;
}
.hover-pill .pill-icon {
  width: 2.25rem; height: 2.25rem; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transform: rotate(0deg);
  transition: transform 0.5s var(--ease-smooth);
  order: 0;
}
.hover-pill.light .pill-icon { order: 1; margin-left: auto; }
.hover-pill.light .pill-text { order: 0; }
.video-box:hover .hover-pill .pill-icon { transform: rotate(0deg); }

.card .desc { font-size: 13px; color: var(--gray-600); margin-top: 1rem; line-height: 1.625; }
.card .title { font-size: 14px; font-weight: 600; color: var(--gray-900); margin-top: 0.25rem; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (min-width: 640px) {
  .nav-pad { padding: 0.75rem; }
  .logo { height: 2.5rem; }
  .hero-content { padding: 0 2rem 4rem; }
  .hero-label { margin-bottom: 2rem; }
  .hero-h1 { font-size: clamp(2.5rem, 5vw, 4.2rem); }
  .hero-h1 br { display: block; }
  .hero-h1 .sp-fallback { display: none; }
  .cta-row { flex-direction: row; gap: 1.25rem; margin-top: 3rem; align-items: center; }
  .partner-badge .star { width: 1.5rem; height: 1.5rem; }
  .partner-badge .featured { padding: 0.125rem 0.5rem; }
  .about { padding-top: 5rem; padding-bottom: 4rem; }
  .section-x { padding-left: 2rem; padding-right: 2rem; }
  .badge-row { margin-bottom: 2rem; }
  .num-circle { width: 1.75rem; height: 1.75rem; font-size: 12px; }
  .pill-label { font-size: 13px; padding: 0.375rem 1rem; }
  .about-h2 { margin-bottom: 4rem; }
  .about-para { font-size: 16px; }
  .about-images { flex-direction: row; gap: 1.25rem; }
  .about-images .img-sm { width: 45%; }
  .about-images .img-lg { width: 55%; }
  .about-images img { border-radius: 1rem; }
  .cases { padding-top: 5rem; padding-bottom: 5rem; }
  .cases-h2 { font-size: clamp(2.5rem, 5vw, 4.2rem); margin-bottom: 3.5rem; }
  .cards-grid { gap: 1.5rem; }
}

@media (min-width: 768px) {
  .nav-links { display: flex; }
  .nav-right { display: flex; }
  .mobile-toggle { display: none; }
}

@media (min-width: 1024px) {
  .nav-note { display: block; }
  .hero-content { padding: 0 3rem 5rem; }
  .about { padding-top: 8rem; padding-bottom: 6rem; }
  .section-x { padding-left: 3rem; padding-right: 3rem; }
  .about-h2 { margin-bottom: 7rem; }
  .about-mobile { display: none; }
  .about-desktop {
    display: grid;
    grid-template-columns: 26% 1fr 48%;
    align-items: end;
    gap: 1.5rem;
  }
  .about-desktop .col-left { align-self: end; }
  .about-desktop .col-left img { width: 100%; aspect-ratio: 438/346; object-fit: cover; border-radius: 1rem; }
  .about-desktop .col-center { align-self: start; display: flex; justify-content: flex-end; flex-direction: column; align-items: flex-end; }
  .about-desktop .col-center .about-para { font-size: 16px; line-height: 1.65; white-space: nowrap; text-align: right; }
  .about-desktop .col-right { align-self: end; }
  .about-desktop .col-right img { width: 100%; aspect-ratio: 3/2; object-fit: cover; border-radius: 1rem; }
  .cases { padding-top: 7rem; padding-bottom: 7rem; }
  .cases-h2 { margin-bottom: 4rem; }
  .cards-grid { gap: 1.75rem; }
}

@media (min-width: 768px) {
  .cards-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1280px) {
  .about-desktop { gap: 2rem; }
}

/* ============================================================
   SECTION 4: ABOUT US
   ============================================================ */
.aboutus {
  background: radial-gradient(120% 80% at 80% 0%, rgba(245,158,11,0.07), transparent 55%),
              radial-gradient(120% 80% at 0% 100%, rgba(237,106,31,0.07), transparent 55%);
  padding-top: 4rem; padding-bottom: 3rem;
}
.aboutus-h2 {
  font-size: clamp(1.5rem, 4vw, 3.2rem);
  font-weight: 500; line-height: 1.12;
  letter-spacing: -0.02em; color: var(--gray-900);
  margin-bottom: 2.5rem;
}
.aboutus-grid {
  display: grid; grid-template-columns: 1fr;
  gap: 2.5rem; margin-bottom: 3rem;
}
.aboutus-lead p {
  font-size: 15px; line-height: 1.7; color: var(--gray-600);
  margin-bottom: 1rem;
}
.aboutus-lead p:last-child { margin-bottom: 0; }
.aboutus-stats {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 0.5rem;
  /* colourful bed so the frosted stats have something to refract */
  background:
    radial-gradient(60% 90% at 10% 0%, rgba(237,106,31,0.20), transparent 60%),
    radial-gradient(60% 90% at 90% 100%, rgba(245,158,11,0.22), transparent 60%);
  border-radius: 1.5rem;
  padding: 0.625rem;
}
.stat {
  position: relative;
  overflow: hidden;
  display: flex; flex-direction: column; gap: 0.25rem;
  background: linear-gradient(135deg, rgba(255,255,255,0.55), rgba(255,255,255,0.25));
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.7);
  box-shadow: 0 8px 32px rgba(31,38,135,0.14), inset 0 1px 0 rgba(255,255,255,0.7), inset 0 -1px 8px rgba(255,255,255,0.25);
  border-radius: 0.875rem;
  padding: 0.75rem 0.625rem;
  transition: transform 0.3s, box-shadow 0.3s;
}
/* moving specular streak */
.stat::before {
  content: "";
  position: absolute; top: 0; left: -60%;
  width: 50%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.55), transparent);
  transform: skewX(-18deg);
  transition: left 0.6s var(--ease-roll);
  pointer-events: none;
}
.stat:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(237,106,31,0.22), inset 0 1px 0 rgba(255,255,255,0.8), inset 0 -1px 8px rgba(255,255,255,0.3);
}
.stat:hover::before { left: 120%; }
.stat > * { position: relative; z-index: 1; }
.stat-num { font-size: clamp(1.1rem, 5vw, 2.5rem); font-weight: 600; letter-spacing: -0.02em; color: var(--orange); }
.stat-label { font-size: 11px; line-height: 1.3; color: var(--gray-500); }

.values {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  border-radius: 1.5rem;
  padding: 0.625rem;
  /* liquid-glass bed: frosted translucent layer over a warm colour wash */
  position: relative;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.45), rgba(255,255,255,0.15)),
    radial-gradient(60% 90% at 15% 0%, rgba(237,106,31,0.28), transparent 60%),
    radial-gradient(60% 90% at 85% 100%, rgba(245,158,11,0.30), transparent 60%);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(255,255,255,0.6);
  box-shadow: 0 12px 40px rgba(31,38,135,0.12), inset 0 1px 0 rgba(255,255,255,0.6);
}
/* soft top-edge sheen for the glass bed */
.values::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255,255,255,0.7), rgba(255,255,255,0.05));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}
/* mobile: two columns, headings only (hide description + arrow) */
.values .value-card { padding: 1rem; }
.values .value-card h3 { font-size: 14px; margin-bottom: 0; }
.values .value-card p { display: none; }
.values .value-arrow { display: none; }
.value-card {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  padding: 1.5rem;
  /* stronger liquid glass */
  background: linear-gradient(135deg, rgba(255,255,255,0.55), rgba(255,255,255,0.25));
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.7);
  box-shadow: 0 8px 32px rgba(31,38,135,0.14), inset 0 1px 0 rgba(255,255,255,0.7), inset 0 -1px 8px rgba(255,255,255,0.25);
  transition: transform 0.5s var(--ease-smooth), box-shadow 0.5s var(--ease-smooth);
}
/* moving specular streak */
.value-card::before {
  content: "";
  position: absolute; top: 0; left: -60%;
  width: 50%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.55), transparent);
  transform: skewX(-18deg);
  transition: left 0.6s var(--ease-roll);
  pointer-events: none;
}
.value-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(237,106,31,0.22), inset 0 1px 0 rgba(255,255,255,0.8), inset 0 -1px 8px rgba(255,255,255,0.3);
}
.value-card:hover::before { left: 120%; }
.value-card > * { position: relative; z-index: 1; }
.value-num { font-size: 12px; font-weight: 600; color: var(--orange); letter-spacing: 0.05em; }
.value-card h3 { font-size: 17px; font-weight: 600; margin: 0.5rem 0 0.5rem; color: var(--gray-900); }
.value-card p { font-size: 14px; line-height: 1.6; color: var(--gray-600); }

/* ---- Services section enhancements ---- */
.values-intro {
  font-size: 15px; line-height: 1.6; color: var(--gray-600);
  max-width: 56ch; margin: -1.5rem 0 2rem;
}
/* pull-quote in the Services section — aligned right */
.values-quote {
  position: relative;
  margin: 0 0 2.5rem;
  padding: 1.5rem;
  border-right: 3px solid var(--orange);
  border-radius: 0.85rem;
  background: var(--gray-200);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  overflow: hidden;
}
.values-quote .quote-img {
  flex-shrink: 0;
  width: 120px; height: 120px;
  object-fit: cover;
  border-radius: 0.75rem;
}
.values-quote .quote-body {
  position: relative;
  flex: 1;
  max-width: 60ch;
  margin-left: auto;
  text-align: right;
  padding-right: 1.5rem;
}
.values-quote .quote-mark {
  position: absolute; right: 1.25rem; top: -0.6rem;
  font-size: 3rem; line-height: 1; color: rgba(237,106,31,0.25);
  font-family: Georgia, "Times New Roman", serif;
  pointer-events: none;
}
.values-quote p {
  font-size: clamp(1.05rem, 2.4vw, 1.5rem);
  font-weight: 500; line-height: 1.4;
  color: var(--gray-900); letter-spacing: -0.01em;
}
.values-quote cite {
  display: block; margin-top: 0.75rem;
  font-size: 13px; font-style: normal; color: var(--gray-500);
}
/* make each card a flex column so icon/text/arrow stack cleanly */
.value-card { display: flex; flex-direction: column; }
/* icon tile */
.value-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.75rem; height: 2.75rem;
  border-radius: 0.75rem;
  margin-bottom: 0.5rem;
  color: var(--orange);
  background: rgba(237,106,31,0.10);
  border: 1px solid rgba(237,106,31,0.18);
  transition: background 0.5s var(--ease-smooth), color 0.5s var(--ease-smooth), transform 0.5s var(--ease-smooth);
}
.value-card:hover .value-icon {
  background: linear-gradient(135deg, var(--orange), var(--amber));
  color: #fff;
  transform: scale(1.06);
}
.value-card p { flex: 1; }
/* explore arrow, pinned bottom, reveals on hover */
.value-arrow {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.75rem; height: 1.75rem;
  margin-top: 1rem;
  border-radius: 9999px;
  color: var(--orange);
  background: rgba(237,106,31,0.10);
  opacity: 0; transform: translateX(-6px);
  transition: opacity 0.5s var(--ease-smooth), transform 0.5s var(--ease-smooth), background 0.5s var(--ease-smooth), color 0.5s var(--ease-smooth);
}
.value-card:hover .value-arrow {
  opacity: 1; transform: translateX(0);
  background: var(--orange); color: #fff;
}

/* ============================================================
   SECTION 5: CONTACT
   ============================================================ */
.contact {
  background: radial-gradient(100% 80% at 100% 0%, rgba(237,106,31,0.08), transparent 50%),
              radial-gradient(100% 80% at 0% 100%, rgba(245,158,11,0.08), transparent 50%);
  padding-top: 4rem; padding-bottom: 3rem;
}
.contact-card {
  display: grid; grid-template-columns: 1fr;
  gap: 2.5rem;
}
/* the single liquid-glass card: email + location + form */
.contact-glass {
  display: flex; flex-direction: column;
  gap: 1.5rem;
  border-radius: 1.5rem;
  padding: 2rem;
}
/* ---- Liquid glass enhancement ---- */
.contact-glass.glass-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0.30) 100%);
  backdrop-filter: blur(34px) saturate(200%);
  -webkit-backdrop-filter: blur(34px) saturate(200%);
  border: 1px solid rgba(255,255,255,0.55);
  box-shadow:
    0 18px 60px rgba(31,38,135,0.18),
    inset 0 1px 0 rgba(255,255,255,0.85),
    inset 0 -2px 6px rgba(255,255,255,0.25);
}
/* soft drifting highlight blob — the "liquid" sheen */
.contact-glass.glass-card::before {
  background:
    radial-gradient(120% 80% at 12% 8%, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0) 45%),
    radial-gradient(90% 70% at 90% 100%, rgba(237,106,31,0.10) 0%, rgba(237,106,31,0) 50%);
  animation: liquid-drift 14s ease-in-out infinite alternate;
}
@keyframes liquid-drift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(2%, 3%, 0) scale(1.06); }
}
@media (prefers-reduced-motion: reduce) {
  .contact-glass.glass-card::before { animation: none; }
}
.dark-pill {
  background: linear-gradient(135deg, rgba(17,24,39,0.78) 0%, rgba(17,24,39,0.55) 100%);
  border-color: rgba(255,255,255,0.22);
  color: #fff;
}
.dark-pill::before {
  background: linear-gradient(180deg, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0) 55%);
}
.contact-h2 {
  font-size: clamp(1.75rem, 6vw, 3rem);
  font-weight: 500; line-height: 1.1; letter-spacing: -0.03em;
  color: var(--gray-900); margin: 1.25rem 0 1rem;
}
.contact-sub { font-size: 15px; line-height: 1.6; color: var(--gray-600); margin-bottom: 1.5rem; }
.contact-details { display: flex; flex-direction: column; gap: 0.75rem; }
.contact-line {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 14px; color: var(--gray-900);
  transition: color 0.3s;
}
a.contact-line:hover { color: var(--orange); }
.contact-line svg { color: var(--orange); flex-shrink: 0; }

.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.field { display: flex; flex-direction: column; gap: 0.375rem; }
.field label { font-size: 13px; font-weight: 500; color: var(--gray-900); }
.field input, .field textarea {
  font-family: inherit; font-size: 14px; color: var(--gray-900);
  border: 1px solid rgba(255,255,255,0.7); border-radius: 0.625rem;
  padding: 0.625rem 0.875rem;
  background: rgba(255,255,255,0.45);
  backdrop-filter: blur(10px) saturate(150%);
  -webkit-backdrop-filter: blur(10px) saturate(150%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.5);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(237,106,31,0.12);
}
.field textarea { resize: vertical; }
/* honeypot — visually hidden but still in the DOM for bots to fill */
.hp-field {
  position: absolute !important;
  left: -9999px;
  width: 1px; height: 1px;
  opacity: 0;
}
.captcha-field label span { font-weight: 700; color: var(--orange); }
.contact-submit { align-self: center; margin-top: 0.25rem; }
.form-actions { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 1.25rem; margin-top: 0.25rem; }
.form-actions .contact-submit { margin-top: 0; }
.form-status { font-size: 13px; min-height: 1.1em; }
.form-status.error { color: #c0392b; }
.form-status.success { color: #1e7d34; }

/* ---- Custom themed dropdown ---- */
.select { position: relative; }
.select-trigger {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.5rem;
  font-family: inherit; font-size: 14px; color: var(--gray-900); text-align: left;
  border: 1px solid rgba(255,255,255,0.7); border-radius: 0.625rem;
  padding: 0.625rem 0.875rem;
  background: rgba(255,255,255,0.45);
  backdrop-filter: blur(10px) saturate(150%);
  -webkit-backdrop-filter: blur(10px) saturate(150%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.5);
  cursor: pointer;
  transition: border-color 0.25s var(--ease-smooth), box-shadow 0.25s var(--ease-smooth), background 0.25s var(--ease-smooth);
}
.select-trigger:hover { background: rgba(255,255,255,0.6); }
.select.open .select-trigger,
.select-trigger:focus-visible {
  outline: none; border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(237,106,31,0.12);
}
.select-caret {
  display: inline-flex; color: var(--orange); flex-shrink: 0;
  transition: transform 0.35s var(--ease-smooth);
}
.select.open .select-caret { transform: rotate(180deg); }

.select-menu {
  position: absolute; top: calc(100% + 0.4rem); left: 0; right: 0;
  z-index: 30;
  list-style: none; margin: 0; padding: 0.375rem;
  border-radius: 0.75rem;
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.7);
  box-shadow: 0 16px 40px rgba(31,38,135,0.18), inset 0 1px 0 rgba(255,255,255,0.7);
  /* closed state */
  opacity: 0; visibility: hidden;
  transform: translateY(-6px) scale(0.98); transform-origin: top;
  transition: opacity 0.3s var(--ease-smooth), transform 0.3s var(--ease-smooth), visibility 0.3s;
}
.select.open .select-menu {
  opacity: 1; visibility: visible;
  transform: translateY(0) scale(1);
}
.select-option {
  font-size: 14px; color: var(--gray-900);
  padding: 0.5rem 0.75rem; border-radius: 0.5rem;
  cursor: pointer;
  transition: background 0.2s var(--ease-smooth), color 0.2s var(--ease-smooth);
}
.select-option:hover,
.select-option.is-active { background: rgba(237,106,31,0.12); color: var(--orange); }
.select-option.is-selected {
  background: linear-gradient(135deg, var(--orange), var(--amber));
  color: #fff; font-weight: 500;
}

.site-footer {
  display: flex; align-items: center;
  gap: 0.75rem; flex-wrap: wrap;
  padding-top: 2.5rem; margin-top: 1rem;
}
/* push copyright to the far right; logo + socials stay grouped on the left */
.site-footer .footer-copy { margin-left: auto; }
/* small phones (< 450px): logo + socials share one centered row, copyright below */
@media (max-width: 449px) {
  .site-footer { flex-direction: row; flex-wrap: wrap; justify-content: center; text-align: center; }
  .site-footer .footer-copy { margin-left: 0; flex-basis: 100%; }
}
.footer-logo {
  height: 2.25rem; width: auto;
  object-fit: contain;
  display: inline-flex; align-items: center; justify-content: center;
}
.footer-logo img { height: 2.25rem; width: auto; object-fit: contain; display: block; }
.footer-copy { font-size: 13px; color: var(--gray-500); }

/* footer social icons — minimal */
.footer-socials { display: inline-flex; align-items: center; gap: 0.375rem; }
.social-link {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.25rem; height: 2.25rem;
  border-radius: 9999px;
  color: var(--gray-600);
  transition: color 0.3s var(--ease-smooth), background 0.3s var(--ease-smooth), transform 0.3s var(--ease-smooth);
}
.social-link:hover {
  color: var(--orange);
  background: rgba(237,106,31,0.10);
  transform: translateY(-2px);
}

/* touch devices can't hover — show the service affordances by default */
@media (hover: none) {
  .value-arrow { opacity: 1; transform: translateX(0); }
}

@media (min-width: 640px) {
  .aboutus { padding-top: 5rem; padding-bottom: 4rem; }
  .aboutus-lead p { font-size: 16px; }
  .values { grid-template-columns: 1fr 1fr; gap: 1.25rem; padding: 1rem; }
  .values .value-card { padding: 1.5rem; }
  .values .value-card h3 { font-size: 17px; margin-bottom: 0.5rem; }
  .values .value-card p { display: block; font-size: 14px; }
  .values .value-arrow { display: inline-flex; }
  .aboutus-stats { gap: 1rem; padding: 1rem; }
  .stat { padding: 1.125rem 1.25rem; }
  .stat-num { font-size: clamp(1.75rem, 6vw, 2.5rem); }
  .stat-label { font-size: 13px; }
  .contact { padding-top: 5rem; padding-bottom: 4rem; }
  .contact-glass { padding: 3rem; }
}

@media (min-width: 1024px) {
  .aboutus { padding-top: 7rem; padding-bottom: 6rem; }
  .aboutus-h2 { margin-bottom: 3.5rem; }
  .aboutus-grid { grid-template-columns: 1.4fr 1fr; gap: 4rem; align-items: start; margin-bottom: 4rem; }
  .values { grid-template-columns: repeat(5, 1fr); }
  .values .value-card h3 { font-size: 15px; }
  .contact { padding-top: 7rem; padding-bottom: 6rem; }
  .contact-card { grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
  .contact-glass { padding: 4rem; }
}

/* ============================================================
   TEAM PAGE
   ============================================================ */
.team-nav-wrap { padding-top: 0.5rem; }
.team-nav-wrap .navbar {
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
}
.team-nav-wrap .nav-links { display: none; }
.team-nav-wrap .nav-right { display: flex; }

/* hero */
.team-hero { padding-top: 3rem; padding-bottom: 2.5rem; }
.team-hero .badge-row { margin-bottom: 1.25rem; }
.team-h1 {
  font-size: clamp(2rem, 7vw, 4rem);
  font-weight: 500; line-height: 1.08; letter-spacing: -0.03em;
  color: var(--gray-900); margin-bottom: 1.5rem;
}
.team-h1 br { display: none; }
.team-lead {
  font-size: 15px; line-height: 1.7; color: var(--gray-600);
  max-width: 60ch; margin-bottom: 1.25rem;
}
.team-stack {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  margin-bottom: 2.5rem;
}
/* Liquid-glass skill tags */
.stack-tag {
  position: relative;
  font-size: 12px; font-weight: 500; color: var(--gray-900);
  background: linear-gradient(135deg, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0.25) 100%);
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.65);
  border-radius: 9999px;
  padding: 0.3rem 0.85rem;
  box-shadow:
    0 4px 14px rgba(31,38,135,0.12),
    inset 0 1px 0 rgba(255,255,255,0.7),
    inset 0 -1px 2px rgba(255,255,255,0.15);
  overflow: hidden;
  transition: transform 0.3s var(--ease-smooth), box-shadow 0.3s var(--ease-smooth);
}
/* glossy top sheen */
.stack-tag::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0) 55%);
  pointer-events: none;
}
.stack-tag:hover {
  transform: translateY(-2px);
  box-shadow:
    0 8px 22px rgba(31,38,135,0.18),
    inset 0 1px 0 rgba(255,255,255,0.85),
    inset 0 -1px 2px rgba(255,255,255,0.2);
}
.team-stats {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.team-stats .stat {
  padding: 1.125rem 1.25rem;
  border-radius: 1rem;
}

/* meet the people */
.team-section { padding-top: 1.5rem; padding-bottom: 3rem; }
.team-h2 {
  font-size: clamp(1.5rem, 5vw, 2.5rem);
  font-weight: 500; letter-spacing: -0.02em;
  color: var(--gray-900); margin-bottom: 2rem;
}
.team-grid {
  display: grid; grid-template-columns: 1fr;
  gap: 1rem;
}
.member {
  display: flex; flex-direction: column;
  border-radius: 1rem;
  padding: 1.5rem;
  color: inherit;
  cursor: pointer;
  transition: transform 0.4s var(--ease-smooth), box-shadow 0.4s var(--ease-smooth);
}
.member:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(31,38,135,0.16), inset 0 1px 0 rgba(255,255,255,0.6);
}
.member-top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.75rem; margin-bottom: 1rem;
}
.member-avatar {
  display: inline-flex; align-items: center; justify-content: center;
  width: 3rem; height: 3rem; flex-shrink: 0;
  border-radius: 9999px;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  color: #fff; font-weight: 700; font-size: 14px; letter-spacing: 0.02em;
  overflow: hidden;
}
/* photo avatars fill the circle */
.member-avatar img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: inherit;
}
.member-mode {
  font-size: 11px; font-weight: 500; color: var(--gray-600);
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  background: rgba(237,106,31,0.10);
  white-space: nowrap;
}
.member-name { font-size: 17px; font-weight: 600; color: var(--gray-900); }
.member-role { font-size: 13px; color: var(--orange); font-weight: 500; margin-top: 0.125rem; }
.member-skills {
  list-style: none; display: flex; flex-wrap: wrap; gap: 0.375rem;
  margin-top: 1rem;
  flex: 1;
}
.member-skills li {
  font-size: 12px; color: var(--gray-600);
  padding: 0.25rem 0.625rem;
  border: 1px solid var(--gray-200); border-radius: 9999px;
  background: rgba(255,255,255,0.4);
}
/* "View portfolio" cue, pinned to the bottom of the card */
.member-link {
  display: inline-flex; align-items: center; gap: 0.375rem;
  margin-top: 1.25rem;
  font-size: 12px; font-weight: 600; color: var(--gray-500);
  transition: color 0.3s var(--ease-smooth), gap 0.3s var(--ease-smooth);
}
.member-link svg { transition: transform 0.3s var(--ease-smooth); }
.member:hover .member-link { color: var(--orange); gap: 0.625rem; }
.member:hover .member-link svg { transform: translateX(3px); }

/* CTA */
.team-cta { padding-top: 1rem; padding-bottom: 3rem; }
.team-cta-card {
  border-radius: 1.5rem;
  padding: 2.5rem 2rem;
  text-align: center;
}
.team-cta-card h2 {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 500; letter-spacing: -0.02em; color: var(--gray-900);
}
.team-cta-card p { font-size: 15px; color: var(--gray-600); margin: 0.75rem 0 1.5rem; }
.team-cta-card .btn-orange { align-self: center; margin: 0 auto; }
.team-cta .site-footer { justify-content: center; text-align: center; }
.team-cta .site-footer .footer-copy { margin-left: 0; }

@media (min-width: 640px) {
  .team-hero { padding-top: 4rem; padding-bottom: 3rem; }
  .team-h1 br { display: block; }
  .team-lead { font-size: 16px; }
  .team-stats { grid-template-columns: repeat(4, 1fr); gap: 1rem; }
  .team-grid { grid-template-columns: repeat(2, 280px); gap: 1.25rem; justify-content: center; }
  .team-cta-card { padding: 3.5rem; }
}

@media (min-width: 768px) {
  .team-nav-wrap .nav-links { display: flex; }
}

@media (min-width: 1024px) {
  .team-hero { padding-top: 6rem; }
  .team-section { padding-bottom: 5rem; }
  /* exactly 3 members — fixed-width columns, centered (cards keep their size) */
  .team-grid {
    grid-template-columns: repeat(3, 280px);
    gap: 1.5rem;
    justify-content: center;
  }
}

/* ============================================================
   FOX PET — animal.png that walks to-and-fro along the bottom
   ============================================================ */
.fox-pet {
  position: fixed;
  bottom: 14px;
  right: 24px;
  width: 76px; height: 76px;
  z-index: 60;
  pointer-events: none;          /* don't block clicks on the page */
  transform: translateX(0);
  /* JS sets the transform duration per move; bottom eases as it clears the footer */
  transition: transform 0s, bottom 0.15s linear;
}
/* the standing fox */
.fox-img {
  width: 100%; height: 100%;
  object-fit: contain; display: block;
  transform: scaleX(var(--fox-face, 1));
  filter: drop-shadow(0 4px 6px rgba(31,38,135,0.22));
  pointer-events: auto;          /* the fox itself is clickable */
  cursor: pointer;
}

/* greeting speech bubble */
.fox-bubble {
  position: absolute;
  bottom: 100%; left: 50%;
  transform: translate(-50%, -4px) scale(0.6);
  background: #fff; color: var(--gray-900);
  font-size: 12px; font-weight: 600; white-space: nowrap;
  padding: 0.3rem 0.6rem; border-radius: 9999px;
  box-shadow: 0 6px 18px rgba(31,38,135,0.18);
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s var(--ease-smooth), transform 0.25s var(--ease-smooth);
}
.fox-bubble.show { opacity: 1; transform: translate(-50%, -4px) scale(1); }

@media (max-width: 560px) {
  .fox-pet { width: 60px; height: 60px; right: 12px; bottom: 10px; }
}

/* ---- Fox Q&A chat panel ---- */
.fox-chat {
  position: fixed;
  right: 24px; bottom: 104px;
  width: 300px; max-width: calc(100vw - 32px);
  z-index: 65;
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(255,255,255,0.92) 0%, rgba(255,255,255,0.8) 100%);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.7);
  box-shadow: 0 18px 48px rgba(31,38,135,0.24), inset 0 1px 0 rgba(255,255,255,0.7);
  overflow: hidden;
  animation: foxChatIn 0.26s var(--ease-smooth);
}
@keyframes foxChatIn {
  from { opacity: 0; transform: translateY(14px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.fox-chat-head {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.6rem 0.75rem;
  background: linear-gradient(135deg, #ED6A1F, #f59e0b);
  color: #fff;
}
.fox-chat-avatar {
  height: 22px; width: auto; object-fit: contain;
  background: transparent;
}
.fox-chat-title { font-weight: 700; font-size: 14px; }
.fox-chat-close {
  margin-left: auto;
  width: 1.6rem; height: 1.6rem; line-height: 1;
  border: none; border-radius: 9999px;
  background: rgba(255,255,255,0.2); color: #fff;
  font-size: 13px; cursor: pointer;
}
.fox-chat-close:hover { background: rgba(255,255,255,0.35); }

.fox-chat-body {
  max-height: 230px; overflow-y: auto;
  padding: 0.75rem;
  display: flex; flex-direction: column; gap: 0.5rem;
}
.fox-msg {
  font-size: 13px; line-height: 1.5;
  padding: 0.5rem 0.7rem; border-radius: 0.85rem;
  max-width: 88%;
}
.fox-msg.bot {
  align-self: flex-start;
  background: rgba(237,106,31,0.12); color: var(--gray-900);
  border-bottom-left-radius: 0.2rem;
}
.fox-msg.bot a { color: var(--orange); font-weight: 600; cursor: pointer; }
.fox-typing { color: var(--gray-500); font-style: italic; }
.fox-msg.user {
  align-self: flex-end;
  background: var(--gray-900); color: #fff;
  border-bottom-right-radius: 0.2rem;
}
.fox-chat-qs {
  display: flex; flex-wrap: wrap; gap: 0.4rem;
  padding: 0.6rem 0.75rem 0.8rem;
  border-top: 1px solid rgba(17,24,39,0.08);
}
.fox-q {
  font-size: 12px; font-weight: 500; color: var(--gray-900);
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(237,106,31,0.35); border-radius: 9999px;
  padding: 0.3rem 0.7rem; cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}
.fox-q:hover { background: rgba(237,106,31,0.14); transform: translateY(-1px); }

/* free-text input row */
.fox-chat-input {
  display: flex; align-items: center; gap: 0.4rem;
  padding: 0.6rem 0.75rem 0.8rem;
  border-top: 1px solid rgba(17,24,39,0.08);
}
.fox-chat-input input {
  flex: 1; min-width: 0;
  font-size: 13px; color: var(--gray-900);
  padding: 0.45rem 0.7rem;
  border: 1px solid rgba(17,24,39,0.15); border-radius: 9999px;
  background: rgba(255,255,255,0.8); outline: none;
  transition: border-color 0.15s;
}
.fox-chat-input input:focus { border-color: var(--orange); }
.fox-chat-send {
  flex-shrink: 0;
  width: 2.1rem; height: 2.1rem;
  display: flex; align-items: center; justify-content: center;
  border: none; border-radius: 9999px;
  background: linear-gradient(135deg, #ED6A1F, #f59e0b); color: #fff;
  cursor: pointer; transition: transform 0.15s;
}
.fox-chat-send:hover { transform: scale(1.08); }

@media (max-width: 560px) {
  .fox-chat { right: 12px; bottom: 84px; width: 270px; }
}
