/* ==========================================================================
   BUZZ & CHATTER — BESPOKE HUMAN-CRAFTED EDITORIAL STYLESHEET
   Client / Firm: Buzz & Chatter (Socio-Political Strategy & Communications)
   Palette:
   - Cream Canvas: #E7E7DB
   - Elevated Light Cream Panels: #F0F0E4
   - Accent Crimson Red: #AF2113
   - Deep Warm Black Typography: #383830
   ========================================================================== */

:root {
  --bg-cream: #E7E7DB;
  --panel-cream: #F0F0E4;
  --accent-red: #AF2113;
  --accent-red-hover: #8D170C;
  --text-dark: #383830;
  --text-muted: #5C5B52;
  --text-subtle: #7E7C70;
  
  --border-line: rgba(56, 56, 48, 0.16);
  --border-card: rgba(56, 56, 48, 0.12);
  --border-strong: #383830;
  
  --font-editorial: "Newsreader", "Playfair Display", Georgia, "Times New Roman", serif;
  --font-sans: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  --site-max-width: 1240px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-cream);
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  background-color: var(--bg-cream);
  color: var(--text-dark);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Subtle tactile paper texture */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.032;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  z-index: 999;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Reading Progress Bar */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: var(--accent-red);
  z-index: 1000;
  width: 0%;
  transition: width 0.1s linear;
}

/* Typography Scale */
h1, h2, h3, h4 {
  color: var(--text-dark);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  word-break: break-word;
  overflow-wrap: break-word;
}

p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.65;
  overflow-wrap: break-word;
}

.container {
  max-width: var(--site-max-width);
  margin: 0 auto;
  padding: 0 4vw;
  width: 100%;
}

/* Human-designed section kickers */
.folio-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-red);
  margin-bottom: 0.8rem;
}

.folio-tag::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  border-left: 2px solid var(--accent-red);
  border-top: 2px solid var(--accent-red);
}

.section-title {
  font-size: clamp(2rem, 3.8vw, 3.4rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--text-dark);
}

.section-title em,
.section-title .editorial-italic {
  font-family: var(--font-editorial);
  font-style: italic;
  font-weight: 400;
  color: var(--accent-red);
  letter-spacing: -0.01em;
}

/* ==========================================================================
   NAVIGATION — EDITORIAL MASTHEAD STYLE
   ========================================================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 74px;
  background-color: rgba(231, 231, 219, 0.98);
  border-bottom: 1px solid var(--border-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4vw;
  z-index: 100;
  width: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-logo {
  height: 47px;
  width: auto;
  max-width: 234px;
  object-fit: contain;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--text-dark);
  position: relative;
  padding: 6px 0;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1.5px;
  background-color: var(--accent-red);
  transition: width 0.25s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: var(--text-dark);
  color: #FFFFFF !important;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid var(--text-dark);
  transition: all 0.25s ease;
  white-space: nowrap;
}

.nav-cta span {
  color: var(--accent-red);
  font-family: var(--font-editorial);
  font-size: 0.9rem;
  line-height: 1;
  transition: transform 0.2s ease, color 0.2s ease;
}

.nav-cta:hover {
  background-color: var(--accent-red);
  border-color: var(--accent-red);
}

.nav-cta:hover span {
  transform: translate(2px, -2px);
  color: #FFFFFF;
}

.menu {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}

.menu span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--text-dark);
  margin: 5px 0;
  border-radius: 1px;
  transition: transform 0.2s ease;
}

/* ==========================================================================
   HERO SECTION — DUAL COLUMN WITH 3D INTERACTIVE CANVAS
   ========================================================================== */
.hero {
  padding: 98px 0 0;
  border-bottom: 1px solid var(--border-line);
  position: relative;
}

.hero-masthead-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
  margin-bottom: 26px;
  border-bottom: 1px solid var(--border-line);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-subtle);
  flex-wrap: wrap;
  gap: 8px;
}

.hero-masthead-meta .live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text-dark);
}

.hero-masthead-meta .live-indicator::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent-red);
  flex-shrink: 0;
}

.hero-editorial {
  display: block;
  max-width: 900px;
  margin-bottom: 40px;
}

.hero-headline-wrap {
  display: flex;
  flex-direction: column;
}

.hero-title {
  font-size: clamp(2.6rem, 4.8vw, 4.4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--text-dark);
  margin-bottom: 15px;
}

.hero-title em {
  font-family: var(--font-editorial);
  font-style: italic;
  font-weight: 400;
  color: var(--accent-red);
  letter-spacing: -0.015em;
}

.hero-lead-text {
  font-size: 1.18rem;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 680px;
  margin-bottom: 20px;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--accent-red);
  color: #FFFFFF !important;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 12px 22px;
  border-radius: 20px;
  border: 1px solid var(--accent-red);
  transition: all 0.25s ease;
  white-space: nowrap;
}

.btn-primary:hover {
  background-color: var(--accent-red-hover);
  border-color: var(--accent-red-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: transparent;
  color: var(--text-dark);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 12px 20px;
  border-radius: 20px;
  border: 1px solid var(--border-line);
  transition: all 0.25s ease;
  white-space: nowrap;
}

.btn-secondary:hover {
  border-color: var(--text-dark);
  background-color: rgba(56, 56, 48, 0.04);
}

/* Credibility Bar */
.hero-creds {
  border-top: 1px solid var(--border-line);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background-color: var(--panel-cream);
  border-left: 1px solid var(--border-line);
  border-right: 1px solid var(--border-line);
}

.cred-item {
  padding: 18px 20px;
  border-right: 1px solid var(--border-line);
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: background-color 0.2s ease;
}

.cred-item:last-child {
  border-right: none;
}

.cred-num {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -0.04em;
  line-height: 1;
}

.cred-num span {
  font-family: var(--font-editorial);
  font-style: italic;
  color: var(--accent-red);
  font-weight: 400;
}

.cred-desc {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.4;
  font-weight: 500;
}

/* ==========================================================================
   SECTIONS
   ========================================================================== */
.section {
  padding: 60px 0;
  border-bottom: 1px solid var(--border-line);
}

.section-head {
  margin-bottom: 26px;
}

.section-head.split {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4vw;
  align-items: flex-end;
}

.section-intro {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-muted);
}

/* Point of View */
.manifesto-panel {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4vw;
  align-items: center;
  background-color: var(--panel-cream);
  border: 1px solid var(--border-card);
  padding: 36px 32px;
  position: relative;
}

.manifesto-quote {
  font-family: var(--font-editorial);
  font-size: clamp(1.9rem, 3vw, 2.7rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-dark);
  font-style: italic;
  border-left: 3px solid var(--accent-red);
  padding-left: 28px;
}

.manifesto-quote em {
  color: var(--accent-red);
  font-style: normal;
  font-weight: 600;
}

.manifesto-text p {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text-muted);
}

/* Capabilities Ledger */
.capabilities-ledger {
  border-top: 1px solid var(--border-line);
}

.ledger-row {
  display: grid;
  grid-template-columns: 130px 280px 1fr 50px;
  align-items: baseline;
  gap: 2.5vw;
  padding: 18px 14px;
  border-bottom: 1px solid var(--border-line);
  transition: background-color 0.2s ease, padding-left 0.2s ease;
}

.ledger-row:hover {
  background-color: var(--panel-cream);
  padding-left: 24px;
}

.ledger-num {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--accent-red);
  text-transform: uppercase;
}

.ledger-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.25;
}

.ledger-desc {
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.ledger-arrow {
  text-align: right;
  font-family: var(--font-editorial);
  font-size: 1.3rem;
  color: var(--text-subtle);
  transition: transform 0.2s ease, color 0.2s ease;
}

.ledger-row:hover .ledger-arrow {
  color: var(--accent-red);
  transform: translate(3px, -3px);
}

/* Dark Disciplines / Capabilities Section */
.section-dark-disciplines {
  background-color: #1A1A18;
  color: var(--bg-cream);
  padding: 68px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.section-dark-disciplines .folio-tag {
  color: var(--accent-red);
}

.section-dark-disciplines .section-title {
  color: #FFFFFF;
}

.section-dark-disciplines .section-title em {
  color: var(--accent-red);
}

.section-dark-disciplines .section-intro {
  color: #C4C3B5;
}

.section-dark-disciplines .capabilities-ledger {
  border-top: 1px solid rgba(231, 231, 219, 0.16);
}

.section-dark-disciplines .ledger-row {
  border-bottom: 1px solid rgba(231, 231, 219, 0.16);
}

.section-dark-disciplines .ledger-row:hover {
  background-color: rgba(240, 240, 228, 0.06);
  border-color: rgba(175, 33, 19, 0.4);
}

.section-dark-disciplines .ledger-num {
  color: var(--accent-red);
}

.section-dark-disciplines .ledger-title {
  color: #FFFFFF;
}

.section-dark-disciplines .ledger-desc {
  color: #D2D1C5;
}

.section-dark-disciplines .ledger-arrow {
  color: #8C8B80;
}

.section-dark-disciplines .ledger-row:hover .ledger-arrow {
  color: var(--accent-red);
}

/* Journey Timeline */
.journey-timeline-custom {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.journey-card-custom {
  background-color: var(--panel-cream);
  border: 1px solid var(--border-card);
  padding: 34px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.journey-card-custom:hover {
  transform: translateY(-2px);
  border-color: rgba(56, 56, 48, 0.3);
}

.journey-top-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-line);
  margin-bottom: 18px;
}

.journey-year-tag {
  font-family: var(--font-editorial);
  font-size: 2.6rem;
  font-weight: 400;
  font-style: italic;
  color: var(--accent-red);
  line-height: 1;
}

.journey-badges {
  display: flex;
  align-items: center;
  gap: 6px;
}

.party-badge-custom {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: #FFFFFF;
  border: 1px solid var(--border-line);
  padding: 4px 9px;
  border-radius: 2px;
}

.party-badge-custom img {
  height: 22px;
  width: auto;
  max-width: 30px;
  object-fit: contain;
}

.party-badge-custom span {
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--text-dark);
}

.journey-role-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--accent-red);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.journey-card-custom h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.25;
}

.journey-card-custom p {
  font-size: 0.94rem;
  line-height: 1.58;
  color: var(--text-muted);
}

.journey-card-footer {
  margin-top: 24px;
  padding-top: 14px;
  border-top: 1px solid var(--border-line);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 6px;
}

.journey-card-footer span {
  color: var(--accent-red);
}

/* Leadership Profiles */
.leadership-editorial-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 36px;
}

.leader-editorial-card {
  background-color: var(--panel-cream);
  border: 1px solid var(--border-card);
  border-radius: 4px;
  padding: 36px 32px;
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 30px;
  align-items: center;
  transition: transform 0.28s ease, box-shadow 0.28s ease, background-color 0.28s ease, border-color 0.28s ease;
}

.leader-editorial-card:hover {
  transform: translateY(-4px);
  background-color: #FFFFFF;
  border-color: rgba(175, 33, 19, 0.3);
  box-shadow: 0 16px 36px rgba(56, 56, 48, 0.08);
}

.leader-photo-stage {
  width: 190px;
  height: 230px;
  background-color: #1A1A18;
  border: 1px solid var(--border-line);
  border-radius: 2px;
  overflow: hidden;
  flex-shrink: 0;
}

.leader-photo-stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.3s ease;
}

.leader-editorial-card:hover .leader-photo-stage img {
  transform: scale(1.04);
}

.leader-designation {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--accent-red);
  text-transform: uppercase;
  display: block;
  margin-bottom: 8px;
}

.leader-editorial-card h3 {
  font-size: 1.65rem;
  font-weight: 800;
  margin-bottom: 12px;
  line-height: 1.2;
  color: var(--text-dark);
}

.leader-editorial-card p {
  font-size: 1.04rem;
  line-height: 1.62;
  color: var(--text-muted);
}

.leader-pedigree {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-dark);
  background-color: rgba(56, 56, 48, 0.07);
  padding: 6px 12px;
  border-radius: 2px;
}

#work .container {
  max-width: 1440px;
  width: 100%;
  padding: 0 3vw;
}

.work-group-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-line);
  padding-bottom: 14px;
  margin-bottom: 24px;
  gap: 20px;
  flex-wrap: wrap;
}

.work-header-style {
  margin-bottom: 0;
  max-width: 860px;
}

.work-hero-title {
  font-size: clamp(2.6rem, 5.2vw, 4.2rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--accent-red);
  margin-top: 6px;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.work-hero-copy {
  font-size: 1.12rem;
  line-height: 1.7;
  color: var(--text-muted);
  font-weight: 400;
}

.campaign-swipe-wrapper {
  position: relative;
  width: 100%;
  margin-bottom: 40px;
}

.campaign-showcase-grid {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 8px 4px 18px 4px;
  background: transparent !important;
  border: none !important;
  cursor: grab;
  user-select: none;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-red) rgba(56, 56, 48, 0.1);
  margin-bottom: 0;
}

.campaign-showcase-grid.is-dragging {
  cursor: grabbing !important;
  scroll-behavior: auto !important;
  scroll-snap-type: none !important;
}

.campaign-showcase-grid::-webkit-scrollbar {
  height: 4px;
}

.campaign-showcase-grid::-webkit-scrollbar-track {
  background: rgba(56, 56, 48, 0.08);
  border-radius: 2px;
}

.campaign-showcase-grid::-webkit-scrollbar-thumb {
  background: var(--accent-red);
  border-radius: 2px;
}

.campaign-showcase-card {
  flex: 0 0 320px;
  width: 320px;
  max-width: 320px;
  min-width: 280px;
  scroll-snap-align: start;
  scroll-snap-stop: normal;
  background-color: var(--panel-cream);
  border: 1px solid var(--border-card);
  border-radius: 4px;
  padding: 18px 16px 16px;
  display: flex;
  flex-direction: column;
  transition: transform 0.28s ease, box-shadow 0.28s ease, background-color 0.28s ease, border-color 0.28s ease;
  position: relative;
  overflow: hidden;
}

.campaign-showcase-card:hover {
  transform: translateY(-5px);
  background-color: #FFFFFF;
  border-color: rgba(175, 33, 19, 0.35);
  box-shadow: 0 18px 40px rgba(56, 56, 48, 0.09);
}

.campaign-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  height: 44px;
  margin-bottom: 12px;
}

.party-symbol-group {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
}

.party-symbol-box {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 1px solid var(--border-line);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  flex-shrink: 0;
  overflow: hidden;
}

.party-symbol-img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 50%;
}

.campaign-location-badge {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  justify-content: center;
}

.campaign-location-badge .state-label {
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--accent-red);
  text-transform: uppercase;
  line-height: 1.2;
}

.campaign-location-badge .year-label {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.2;
}

.campaign-leader-stage {
  height: 270px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 10px 0 14px;
  background-color: var(--panel-cream);
  border-radius: 4px;
  border: 1px solid rgba(56, 56, 48, 0.08);
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}

.leader-portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.35s ease;
}

.leader-portrait-img.graphic-fit {
  object-fit: contain;
  max-height: 90%;
  max-width: 90%;
}

.campaign-showcase-card:hover .leader-portrait-img {
  transform: scale(1.04);
}

.campaign-card-bottom {
  text-align: center;
  border-top: 1px solid var(--border-line);
  padding-top: 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex-grow: 1;
}

.leader-full-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 4px;
  line-height: 1.25;
  min-height: 2.6em;
  display: flex;
  align-items: center;
  justify-content: center;
}

.campaign-detail {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-red);
  letter-spacing: 0.02em;
  line-height: 1.3;
}

@media (max-width: 900px) {
  .campaign-showcase-card {
    flex: 0 0 82vw;
    max-width: 320px;
    min-width: 260px;
  }

  .campaign-leader-stage {
    height: 240px;
  }
}

/* Institutional Clients & Work */
.client-group {
  margin-bottom: 32px;
}

.client-group:last-child {
  margin-bottom: 0;
}

.client-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-line);
  padding-bottom: 8px;
  margin-bottom: 14px;
  gap: 16px;
  flex-wrap: wrap;
}

.client-group-title-wrap {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
}

.client-group-label {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--text-dark);
  text-transform: uppercase;
}

.client-group-count {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-red);
}

.flagship-nav-controls {
  display: flex;
  align-items: center;
  gap: 14px;
}

.flagship-swipe-hint {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-subtle);
  text-transform: uppercase;
}

.flagship-arrow-btns {
  display: flex;
  align-items: center;
  gap: 8px;
}

.flagship-arrow {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--panel-cream);
  border: 1px solid var(--border-card);
  color: var(--text-dark);
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.flagship-arrow:hover:not(:disabled) {
  background-color: var(--accent-red);
  border-color: var(--accent-red);
  color: #FFFFFF;
}

.flagship-arrow:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.flagship-swipe-wrapper {
  position: relative;
  width: 100%;
}

.flagship-swipe-track {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 6px 2px 14px 2px;
  background: transparent !important;
  border: none !important;
  cursor: grab;
  user-select: none;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-red) rgba(56, 56, 48, 0.1);
}

.flagship-swipe-track.is-dragging {
  cursor: grabbing !important;
  scroll-behavior: auto !important;
  scroll-snap-type: none !important;
}

.flagship-swipe-track::-webkit-scrollbar {
  height: 4px;
}

.flagship-swipe-track::-webkit-scrollbar-track {
  background: rgba(56, 56, 48, 0.08);
  border-radius: 2px;
}

.flagship-swipe-track::-webkit-scrollbar-thumb {
  background: var(--accent-red);
  border-radius: 2px;
}

.flagship-swipe-track .project-item {
  flex: 0 0 240px;
  max-width: 240px;
  scroll-snap-align: start;
  scroll-snap-stop: normal;
  background-color: var(--panel-cream);
  border: 1px solid var(--border-card);
  border-radius: 4px;
  padding: 22px 16px 18px;
  min-height: 225px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  transition: transform 0.25s ease, background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.flagship-swipe-track .project-item:hover {
  background-color: #FFFFFF;
  border-color: rgba(175, 33, 19, 0.35);
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(56, 56, 48, 0.08);
}

.flagship-swipe-track .project-stage {
  width: 100%;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #FFFFFF;
  border: 1px solid var(--border-line);
  border-radius: 3px;
  padding: 10px;
}

.flagship-swipe-track .project-stage img {
  max-height: 95px;
  max-width: 90%;
  width: auto;
  height: auto;
  object-fit: contain;
  pointer-events: none;
  transition: transform 0.25s ease;
}

.flagship-swipe-track .project-item:hover .project-stage img {
  transform: scale(1.06);
}

.flagship-swipe-track .project-item span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  text-align: center;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-dark);
  text-transform: uppercase;
  margin-top: 14px;
  line-height: 1.35;
  min-height: 2.7em;
}

.flagship-swipe-indicator {
  width: 100%;
  height: 3px;
  background: rgba(56, 56, 48, 0.1);
  border-radius: 2px;
  margin-top: 10px;
  overflow: hidden;
  display: block;
}

.flagship-indicator-bar {
  width: 100%;
  height: 100%;
  position: relative;
}

.flagship-indicator-thumb {
  height: 100%;
  width: 20%;
  background: var(--accent-red);
  border-radius: 2px;
  transition: width 0.1s ease, transform 0.1s ease;
}

@media (max-width: 768px) {
  .flagship-swipe-track .project-item {
    flex: 0 0 195px;
    max-width: 195px;
    min-height: 205px;
    padding: 16px 12px 14px;
  }
  .flagship-swipe-track .project-stage {
    height: 105px;
  }
  .flagship-swipe-track .project-stage img {
    max-height: 80px;
  }
  .flagship-swipe-track .project-item span {
    font-size: 0.7rem;
    margin-top: 10px;
  }
  .flagship-swipe-hint {
    display: none;
  }
}

.department-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  background-color: var(--border-line);
  gap: 1px;
  border: 1px solid var(--border-line);
}

.department-card {
  background-color: var(--panel-cream);
  min-height: 105px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}

.department-card:hover {
  background-color: #FFFFFF;
}

.department-card img {
  max-width: 110px;
  max-height: 55px;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* Careers Section */
.careers-editorial-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 4vw;
  align-items: stretch;
}

.careers-culture-panel {
  background-color: var(--panel-cream);
  border: 1px solid var(--border-card);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.careers-culture-panel h3 {
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 12px;
}

.careers-culture-panel h3 em {
  font-family: var(--font-editorial);
  font-style: italic;
  font-weight: 400;
  color: var(--accent-red);
}

.careers-culture-panel p {
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 15px;
}

.careers-points {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid var(--border-line);
  padding-top: 14px;
}

.career-point {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-dark);
}

.career-point strong {
  color: var(--accent-red);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
}

.careers-openings-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.job-block-custom {
  background-color: var(--panel-cream);
  border: 1px solid var(--border-card);
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color 0.2s ease;
}

.job-block-custom:hover {
  border-color: rgba(56, 56, 48, 0.3);
}

.job-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  gap: 10px;
}

.job-dept {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--accent-red);
  text-transform: uppercase;
}

.job-status {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  background-color: rgba(175, 33, 19, 0.08);
  color: var(--accent-red);
  padding: 2px 7px;
  border-radius: 2px;
}

.job-block-custom h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.job-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.job-tag {
  font-size: 0.74rem;
  font-weight: 600;
  background-color: rgba(56, 56, 48, 0.06);
  color: var(--text-dark);
  padding: 3px 8px;
  border-radius: 2px;
}

.job-tag.featured {
  background-color: var(--text-dark);
  color: #FFFFFF;
}

.job-block-custom p {
  font-size: 0.92rem;
  line-height: 1.55;
  margin-bottom: 12px;
}

.job-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-line);
}

.job-apply-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: var(--accent-red);
  color: #FFFFFF !important;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: 2px;
  transition: background-color 0.2s ease;
  white-space: nowrap;
}

.job-apply-btn:hover {
  background-color: var(--accent-red-hover);
}

.job-link-secondary {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}

/* Contact & Head Office */
.contact-section {
  padding: 60px 0 45px;
  background-color: var(--bg-cream);
  border-bottom: 1px solid var(--border-line);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 5vw;
  align-items: center;
}

.contact-editorial h2 {
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.contact-editorial h2 em {
  font-family: var(--font-editorial);
  font-style: italic;
  font-weight: 400;
  color: var(--accent-red);
}

.contact-editorial p {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 460px;
}

.contact-card-custom {
  background-color: var(--panel-cream);
  border: 1px solid var(--border-card);
  padding: 28px 24px;
  position: relative;
}

.contact-card-custom::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 36px;
  height: 3px;
  background-color: var(--accent-red);
}

.office-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--accent-red);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.office-badge::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent-red);
}

.contact-card-custom h3 {
  font-size: 1.45rem;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.2;
}

.address-block {
  border-left: 3px solid var(--accent-red);
  padding-left: 14px;
  margin-bottom: 15px;
}

.address-line-1 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.35;
}

.address-line-2 {
  font-size: 0.94rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-top: 4px;
}

.address-line-2 strong {
  color: var(--text-dark);
  font-weight: 700;
}

.office-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.office-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: lowercase;
  padding: 12px 20px;
  border-radius: 20px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.office-btn.btn-directions {
  background-color: var(--text-dark);
  color: #FFFFFF !important;
  border: 1px solid var(--text-dark);
}

.office-btn.btn-directions:hover {
  background-color: var(--accent-red);
  border-color: var(--accent-red);
}

.office-btn.btn-email {
  background-color: transparent;
  color: var(--text-dark);
  border: 2px solid var(--border-line);
}

.office-btn.btn-email:hover {
  border-color: var(--text-dark);
  background-color: rgba(56, 56, 48, 0.04);
}

.office-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-line);
  padding-top: 14px;
  line-height: 1.45;
}

/* Footer */
.site-footer {
  padding: 22px 4vw;
  background-color: var(--bg-cream);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-subtle);
  flex-wrap: wrap;
  gap: 12px;
}

.site-footer span {
  color: var(--text-dark);
}

/* ==========================================================================
   RESPONSIVE DESIGN (TABLET & MOBILE)
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-editorial {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 40px;
  }
  .hero-3d-stage {
    height: 320px;
  }
  .section-head.split {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .manifesto-panel {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 38px 28px;
  }
  .ledger-row {
    grid-template-columns: 100px 220px 1fr 35px;
    gap: 18px;
  }
  .journey-timeline-custom {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .leadership-editorial-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .department-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .careers-editorial-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .hero-creds {
    grid-template-columns: repeat(2, 1fr);
  }
  .cred-item:nth-child(2) {
    border-right: none;
  }
  .cred-item:nth-child(1),
  .cred-item:nth-child(2) {
    border-bottom: 1px solid var(--border-line);
  }
}

@media (max-width: 768px) {
  .nav {
    height: 70px;
    padding: 0 5vw;
  }

  .nav-links, .nav-cta {
    display: none;
  }
  
  .menu {
    display: block;
  }

  .nav-links.open {
    display: flex;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 6vw;
    background-color: var(--bg-cream);
    border-bottom: 1px solid var(--border-line);
    box-shadow: 0 16px 32px rgba(56, 56, 48, 0.12);
    gap: 1.2rem;
    z-index: 101;
  }

  .section {
    padding: 54px 0;
  }

  .hero {
    padding: 100px 0 0;
  }

  .hero-masthead-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    margin-bottom: 24px;
  }

  .hero-title {
    font-size: clamp(2.1rem, 7.5vw, 2.9rem);
    margin-bottom: 16px;
  }

  .hero-lead-text {
    font-size: 1.1rem;
    margin-bottom: 24px;
  }

  .hero-3d-stage {
    height: 280px;
  }

  .hero-creds {
    grid-template-columns: 1fr 1fr;
  }

  .cred-item {
    padding: 18px 16px;
  }

  .cred-num {
    font-size: 1.6rem;
  }

  .ledger-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 20px 10px;
  }

  .ledger-arrow {
    display: none;
  }

  .leader-editorial-card {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 26px 20px;
    gap: 18px;
  }

  .leader-photo-stage {
    width: 140px;
    height: 180px;
    margin: 0 auto;
  }

  .leader-pedigree {
    justify-content: center;
  }

  .department-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .contact-card-custom {
    padding: 28px 20px;
  }

  .office-actions {
    flex-direction: column;
  }

  .office-btn {
    width: 100%;
    justify-content: center;
  }

  .site-footer {
    flex-direction: column;
    gap: 10px;
    text-align: center;
    padding: 26px 5vw;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
    line-height: 1.1;
  }

  .brand-logo {
    height: 40px;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .btn-primary, .btn-secondary {
    width: 100%;
    justify-content: center;
  }

  .hero-3d-stage {
    height: 240px;
  }

  .hero-creds {
    grid-template-columns: 1fr;
  }

  .cred-item {
    border-right: none;
    border-bottom: 1px solid var(--border-line);
  }

  .cred-item:last-child {
    border-bottom: none;
  }

  .manifesto-panel {
    padding: 28px 18px;
  }

  .manifesto-quote {
    font-size: 1.5rem;
    padding-left: 16px;
  }

  .department-grid {
    grid-template-columns: 1fr;
  }

  .department-card {
    min-height: 85px;
  }

  .job-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .job-apply-btn {
    width: 100%;
    justify-content: center;
  }

  .job-link-secondary {
    text-align: center;
  }
}

/* ==========================================================================
   OUR TEAM SECTION — SPECIALISTS INTERACTIVE TEAM-WISE SHOWCASE
   ========================================================================== */
.team-filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border-line);
  padding-bottom: 16px;
}

@media (max-width: 768px) {
  .team-filter-bar {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 12px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .team-filter-bar::-webkit-scrollbar {
    display: none;
  }
  .team-filter-btn {
    flex-shrink: 0;
    white-space: nowrap;
  }
}

.team-filter-btn {
  background-color: var(--panel-cream);
  border: 1px solid var(--border-card);
  color: var(--text-dark);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 8px 16px;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.team-filter-btn span {
  font-size: 0.7rem;
  color: var(--accent-red);
}

.team-filter-btn:hover {
  background-color: #FFFFFF;
  border-color: rgba(175, 33, 19, 0.4);
}

.team-filter-btn.active {
  background-color: var(--accent-red);
  color: #FFFFFF !important;
  border-color: var(--accent-red);
}

.team-filter-btn.active span {
  color: #FFFFFF !important;
}

/* Team Active Indicator Header */
.team-active-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-line);
  padding-bottom: 12px;
  margin-bottom: 24px;
  gap: 14px;
  flex-wrap: wrap;
}

.team-active-title {
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--accent-red);
  text-transform: uppercase;
}

.team-active-meta {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  width: 100%;
}

.team-card {
  display: none;
  background-color: var(--panel-cream);
  border: 1px solid var(--border-card);
  border-radius: 6px;
  padding: 24px;
  position: relative;
  transition: transform 0.25s ease, background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.team-card.is-visible {
  display: flex !important;
  flex-direction: row;
  gap: 22px;
  align-items: stretch;
  animation: teamFadeIn 0.3s ease;
}

.team-card:hover {
  transform: translateY(-4px);
  background-color: #FFFFFF;
  border-color: rgba(175, 33, 19, 0.4);
  box-shadow: 0 14px 32px rgba(56, 56, 48, 0.08);
}

.team-photo-stage {
  flex: 0 0 180px;
  width: 180px;
  aspect-ratio: 4 / 5;
  background-color: #1A1A18;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border-line);
  margin-bottom: 0 !important;
  align-self: stretch;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.3s ease;
}

.team-card:hover .team-photo {
  transform: scale(1.05);
}

.team-info-wrap {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  justify-content: space-between;
}

.team-badge-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 8px;
  gap: 8px;
}

.team-card-badge {
  position: static !important;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--accent-red);
  background-color: rgba(175, 33, 19, 0.08);
  padding: 3px 8px;
  border-radius: 2px;
  text-transform: uppercase;
  display: inline-block;
}

.team-name {
  font-size: 1.22rem !important;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.25;
  margin-bottom: 6px !important;
  min-height: auto !important;
  display: block !important;
  -webkit-line-clamp: unset !important;
  overflow: visible !important;
  white-space: normal !important;
}

.team-role {
  font-size: 0.86rem !important;
  font-weight: 500;
  line-height: 1.55 !important;
  color: var(--text-muted) !important;
  margin-bottom: 12px !important;
  min-height: auto !important;
  display: block !important;
  -webkit-line-clamp: unset !important;
  overflow: visible !important;
  white-space: normal !important;
}

.team-experience {
  border-top: 1px solid var(--border-line);
  padding-top: 8px;
  font-size: 0.74rem !important;
  font-weight: 700;
  color: var(--accent-red);
  letter-spacing: 0.03em;
  margin-top: auto;
  white-space: normal !important;
  display: block !important;
}

@keyframes teamFadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Universal Swipe/Slide Layout for Team Categories with > 2 Members Across ALL Devices */
.team-grid[data-swipe="true"] {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  overflow-x: auto !important;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  gap: 20px;
  padding: 6px 4px 18px 4px;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-red) rgba(56, 56, 48, 0.1);
  cursor: grab;
  user-select: none;
}

.team-grid[data-swipe="true"].is-dragging {
  cursor: grabbing !important;
  scroll-behavior: auto !important;
  scroll-snap-type: none !important;
}

.team-grid[data-swipe="true"]::-webkit-scrollbar {
  height: 4px;
}

.team-grid[data-swipe="true"]::-webkit-scrollbar-track {
  background: rgba(56, 56, 48, 0.08);
  border-radius: 2px;
}

.team-grid[data-swipe="true"]::-webkit-scrollbar-thumb {
  background: var(--accent-red);
  border-radius: 2px;
}

.team-grid[data-swipe="true"] .team-card.is-visible {
  flex: 0 0 520px !important;
  max-width: 520px !important;
  min-width: 300px !important;
  scroll-snap-align: start;
  scroll-snap-stop: normal;
}

/* Universal Swipe/Slide Layout for Careers Section Across ALL Devices */
.careers-openings-stack {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  overflow-x: auto !important;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  gap: 20px;
  padding: 6px 4px 18px 4px;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-red) rgba(56, 56, 48, 0.1);
  cursor: grab;
  user-select: none;
}

.careers-openings-stack.is-dragging {
  cursor: grabbing !important;
  scroll-behavior: auto !important;
  scroll-snap-type: none !important;
}

.careers-openings-stack::-webkit-scrollbar {
  height: 4px;
}

.careers-openings-stack::-webkit-scrollbar-track {
  background: rgba(56, 56, 48, 0.08);
  border-radius: 2px;
}

.careers-openings-stack::-webkit-scrollbar-thumb {
  background: var(--accent-red);
  border-radius: 2px;
}

.careers-openings-stack .job-block-custom {
  flex: 0 0 480px !important;
  max-width: 500px !important;
  min-width: 300px !important;
  scroll-snap-align: start;
  scroll-snap-stop: normal;
}

/* Mobile & Tablet Responsive Adjustments */
@media (max-width: 900px) {
  .team-grid {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    gap: 16px;
    padding: 6px 4px 18px 4px;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-red) rgba(56, 56, 48, 0.1);
    cursor: grab;
    user-select: none;
  }

  .team-card.is-visible,
  .team-grid[data-swipe="true"] .team-card.is-visible {
    flex: 0 0 85vw !important;
    max-width: 330px !important;
    min-width: 270px !important;
    flex-direction: column !important;
    padding: 20px 16px;
  }

  .team-photo-stage {
    width: 100% !important;
    flex: none !important;
    height: 300px !important;
    aspect-ratio: 4 / 5 !important;
    margin-bottom: 14px !important;
  }

  .team-name {
    font-size: 1.15rem !important;
  }

  .team-role {
    font-size: 0.84rem !important;
  }

  .careers-openings-stack .job-block-custom {
    flex: 0 0 85vw !important;
    max-width: 330px !important;
    min-width: 270px !important;
  }
}

@media (max-width: 420px) {
  .team-photo-stage {
    height: 270px !important;
  }
}
