/* ============================================================
   Main Street Events — main.css
   ============================================================ */

/* ── Google Fonts ──────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Source+Sans+3:ital,wght@0,200..900;1,200..900&display=swap');

/* ── 1. CSS Reset + Base ───────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

img,
video {
  display: block;
  max-width: 100%;
}

/* ── 2. Page Loader / Transition Overlay ───────────────────── */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background-color: #130E21;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  /* CSS fallback: auto-hide after 3s even if JS fails */
  animation: loaderAutoHide 0.35s ease 3s forwards;
}

@keyframes loaderAutoHide {
  to { opacity: 0; pointer-events: none; }
}

.page-loader--visible {
  opacity: 1;
  pointer-events: all;
}

.page-loader .mst-logo,
.page-loader .page-loader__logo {
  height: 80px;
  width: auto;
}

/* ── 3. Body ───────────────────────────────────────────────── */
body {
  position: relative;
  background-color: #130E21;
  background-image: url('../images/bg-underlay.png');
  background-size: cover;
  background-attachment: fixed;
  background-repeat: no-repeat;
  color: #ffffff;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Global 16px enforcement for all body content */
.tagline-p,
.values-label,
.value-item__name,
.value-item__desc p,
.founder-text p,
.founder-title,
.team-section__subtitle,
.team-card__name,
.team-card__role,
.team-note,
.expertise-intro p,
.expertise-pillar__list,
.expertise-pillar__list li,
.contact-section,
.contact-form,
.form-group label,
.form-group input,
.form-group textarea,
.form-success,
.form-error {
  font-size: 16px;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  background-color: rgba(19, 14, 33, 0.75);
  pointer-events: none;
}

body > * {
  position: relative;
  z-index: 1;
}

/* ── 4. Header ─────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #130E21;
  transition: background 0.3s ease;
}

.site-header--scrolled {
  background: rgba(19, 14, 33, 0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Logo */
.site-header__logo img {
  height: 45px;
  width: auto;
  display: block;
}

/* Nav — 4 links centred absolutely in header */
.site-header__nav,
.site-nav {
  display: flex;
  align-items: center;
  gap: 40px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

/* ── Mobile nav overlay — active whenever .nav--open is set (any viewport) ── */
.site-header__nav.nav--open,
.site-nav.nav--open {
  display: flex !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  transform: none !important;
  background: #130E21 !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 40px !important;
  z-index: 999 !important;
}

.site-nav.nav--open .nav-link {
  font-size: 22px;
  letter-spacing: 0.15em;
  padding: 12px 0;
  color: rgba(255,255,255,0.9);
  position: relative;
  z-index: 1000;
}

.site-nav.nav--open .nav-link:hover,
.site-nav.nav--open .nav-link.active-link {
  color: #21F3EF;
}

/* LinkedIn icon in header top-right */
.site-header__linkedin {
  display: flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-header__linkedin:hover {
  color: #21F3EF;
}

.nav-link {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 14px;
  font-weight: 400;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link--active {
  color: #21F3EF;
}

/* CTA button — white outline */
.site-header__cta,
.btn-touch {
  display: inline-block;
  border: 1px solid rgba(255, 255, 255, 0.85);
  padding: 10px 24px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  background: transparent;
  transition: background 0.2s ease, color 0.2s ease;
  font-family: inherit;
}

.site-header__cta:hover,
.btn-touch:hover {
  background: #ffffff;
  color: #130E21;
}

.btn-touch--active {
  background: rgba(255,255,255,0.1);
}

/* Mobile hamburger (hidden on desktop) */
.hamburger,
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger__line,
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #ffffff;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ── 5. Page Transition ────────────────────────────────────── */
body.page-transition .page-loader {
  opacity: 1;
  pointer-events: all;
}

/* ── 6. Hero Section ───────────────────────────────────────── */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

/* Video fades in on load for dynamic entrance */
.hero__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
}

.hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(19,14,33,0.15) 0%, transparent 30%, rgba(19, 14, 33, 0.55) 100%);
}

/* Smooth fade-in + slight scale on entrance */
@keyframes hero-entrance {
  0%   { opacity: 0; transform: scale(1.08) translateX(-1%); }
  100% { opacity: 1; transform: scale(1.05) translateX(-2%) translateY(1%); }
}

/* Continuous slow drift after entrance */
@keyframes zoom-drift {
  from { transform: scale(1.05) translateX(-2%) translateY(1%); }
  to   { transform: scale(1.1)  translateX(2%)  translateY(-1%); }
}

/* ── 6b. Homepage Three Squares ───────────────────────────── */
.home-squares {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 40px 60px 80px;
}

.home-square {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 40px 30px;
  height: 340px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.home-square__label {
  font-size: 16px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #21F3EF;
  margin-bottom: 20px;
}

/* Square 1: Rotating quotes */
.home-square__quote {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255,255,255,0.85);
  font-style: italic;
  flex: 1;
  display: flex;
  align-items: center;
}

.home-square__quote-cite {
  font-size: 16px;
  color: #21F3EF;
  letter-spacing: 0.05em;
  margin-top: 16px;
  display: block;
  font-style: normal;
  text-align: right;
}

/* Square 2: Rotating work images */
.home-square__img-wrap {
  flex: 1;
  overflow: hidden;
  position: relative;
  min-height: 0;
}

.home-square__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.6s ease;
  transition: opacity 0.6s ease;
}

.home-square__img-title {
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ffffff;
  margin-top: 16px;
}

/* Square 3: Expertise teaser */
.home-square__expertise-title {
  font-size: 16px;
  font-weight: 600;
  color: #7145FD;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

/* VIEW ALL EXPERTISE link — main body text size */
.home-square a[href="/expertise/"] {
  font-size: 16px !important;
  font-family: 'Source Sans 3', sans-serif !important;
  color: #7145FD;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.home-square__expertise-line {
  font-size: 16px;
  color: rgba(255,255,255,0.85);
  line-height: 1.8;
  flex: 1;
  border-left: 2px solid #7145FD;
  padding-left: 14px;
}

@media (max-width: 768px) {
  .home-squares {
    grid-template-columns: 1fr;
    padding: 0 24px 60px;
  }
}

/* ── 7. Tagline Section ────────────────────────────────────── */
.tagline-section {
  padding: 100px 80px;
  text-align: center;
  max-width: 1400px;
  margin: 0 auto;
}

.tagline-p {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  color: rgba(255, 255, 255, 0.85);
}

.tagline-p:last-child {
  margin-bottom: 0;
}

/* Joined paragraphs — no top margin between them */
.tagline-p--joined {
  margin-bottom: 0;
}

.tagline-p--joined + .tagline-p--joined {
  margin-top: 0;
}

.highlight-sky    { color: #21F3EF; }
.highlight-pink   { color: #F6AEF0; }
.highlight-purple { color: #7145FD; }

/* ── 8. Client Logo Carousel ───────────────────────────────── */
.logo-carousel {
  overflow: hidden;
  position: relative;
  padding: 50px 0;
}

.logo-track {
  display: flex;
  gap: 60px;
  align-items: center;
  width: max-content;
  animation: scroll-logos 30s linear infinite;
}

/* Each logo item constrained to prevent SVG width declarations creating gaps */
.logo-item {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-item img {
  height: 45px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.7;
  transition: opacity 0.3s ease;
  display: block;
  /* Override any SVG width/height attributes */
  max-height: 45px;
}

/* Already-white logos — skip the invert filter */
.logo-item--white img {
  filter: none;
  opacity: 0.75;
  height: 45px;
  width: auto;
  max-width: 160px;
}

.logo-item--white img:hover {
  opacity: 1;
}

/* gunnercooke: text SVG sized by height only, tight viewBox */
.logo-item--gunnercooke img {
  filter: none;
  opacity: 0.75;
  height: 32px;
  width: auto;
  max-width: none;
  transition: opacity 0.3s ease;
}

.logo-item--gunnercooke img:hover {
  opacity: 1;
}

/* Stris logo: dark PNG inverted to white on transparent */
.logo-item--stris img {
  filter: brightness(0) invert(1);
  opacity: 0.7;
  mix-blend-mode: normal;
}

.logo-item--stris img:hover {
  opacity: 1;
}

.logo-item img:hover {
  opacity: 1;
}

@keyframes scroll-logos {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* OUR EXPERTISE label in purple */
.home-square__label--purple {
  color: #7145FD;
}

/* Clickable squares */
.home-square--clickable {
  cursor: pointer;
  transition: opacity 0.2s ease;
}
.home-square--clickable:hover {
  opacity: 0.9;
}

/* Carousel heading — matches FROM OUR FOUNDER style */
.carousel-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #21F3EF;
  margin: 40px auto 20px;
  text-align: center;
}
.carousel-heading__line {
  display: inline-block;
  width: 30px;
  height: 1px;
  background: #21F3EF;
  opacity: 0.5;
  vertical-align: middle;
  font-size: 0;
  color: transparent;
}

/* ── 9. Page Header ─────────────────────────────────────────── */
.page-header {
  position: relative;
  width: 100%;
  margin-top: 85px;
  display: block;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: #130E21;
}

/* SVG scales to full width, height follows naturally — no cropping */
.page-header__bg {
  display: block;
  width: 100%;
  height: auto;
  max-height: 270px; /* 10% slimmer than the natural 300px height */
  object-fit: cover;
  object-position: center center;
}

.page-header::before,
.page-header::after {
  content: none;
}

/* Title — absolutely centred vertically, left-aligned */
.page-header__title {
  position: absolute;
  top: 50%;
  left: 80px;
  transform: translateY(-50%);
  z-index: 2;
  font-family: 'Source Sans 3', sans-serif;
  font-size: clamp(28px, 4vw, 60px);
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.1;
  text-transform: uppercase;
  color: #ffffff;
  white-space: nowrap;
  animation: titleFadeIn 0.6s ease 0.1s both;
}

@keyframes titleFadeIn {
  from { opacity: 0; transform: translateY(-50%) translateX(-16px); }
  to   { opacity: 1; transform: translateY(-50%) translateX(0); }
}

.page-header__title::before,
.page-header__title::after {
  content: none;
}

.page-header__divider { display: none; }
.page-header + * { margin-top: 0; }
.deco-star { display: none; }


/* Section sub-headers (OUR VALUES, MEET THE CORE TEAM) — matching FROM OUR FOUNDER */
.values-label,
.team-section__subtitle {
  font-size: 16px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #21F3EF;
  margin-bottom: 16px;
  font-weight: 400;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
}

/* Remove old gradient lines — now use dash spans in HTML */
.values-label::before,
.values-label::after,
.team-section__subtitle::before,
.team-section__subtitle::after {
  content: none;
}

/* ── 10. About — Values ────────────────────────────────────── */

/* Full-width expansion row that sits below the 4 value tabs */
/* Values expansion — two-column layout matching the sketch */
.values-expansion {
  display: none;
}

.values-expansion.active {
  display: block;
  animation: fadeInUp 0.3s ease;
}

.values-expansion__inner {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  min-height: 140px;
  align-items: center;
}

/* Left column: value name, styled like the grid items */
.values-expansion__left {
  padding: 40px 30px;
  border-right: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
}

.values-expansion__name {
  font-size: 14px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #21F3EF;
  margin: 0;
}

/* Right column: description + back button */
.values-expansion__right {
  padding: 40px 50px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.values-expansion__desc {
  font-size: 16px;
  line-height: 1.8;
  color: rgba(255,255,255,0.85);
  margin: 0;
}

.values-expansion__back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  background: none;
  border: none;
  font-family: inherit;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s ease;
  align-self: center;
}

.values-expansion__back:hover {
  color: #ffffff;
}


/* Highlight the active value tab */
.value-item.active .value-item__name {
  color: #21F3EF;
}
/* .values-label styles consolidated above */

/* Dash decorators matching founder-title style */
.founder-title__dash {
  display: inline-block;
  width: 30px;
  height: 1px;
  background: #21F3EF;
  opacity: 0.5;
  vertical-align: middle;
  font-size: 0;
  /* Override the literal '-' character */
  color: transparent;
}

/* Team intro text */
.team-intro {
  font-size: 16px;
  line-height: 1.8;
  color: rgba(255,255,255,0.85);
  text-align: center;
  max-width: 90%;
  margin: 0 auto;
  padding: 0;
}
.team-intro + .team-intro {
  margin-top: 0;
  padding-top: 0;
}
/* Gap from team-intro to the team grid = same as founder text gap */
.team-intro + .team-grid--small,
.team-intro ~ .team-grid--small {
  margin-top: 40px;
}

.values-section {
  padding: 60px 80px;
  text-align: center;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.value-item {
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  padding: 40px 30px;
  cursor: pointer;
  position: relative;
  transition: background 0.25s ease;
}

.value-item:hover {
  background: rgba(33, 243, 239, 0.03);
}

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

.value-item__name {
  font-size: 16px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.25s ease;
}

.value-item:hover .value-item__name {
  color: #ffffff;
}

/* Plus icon via ::after removed — using .value-plus span in HTML */
.value-item__name::after {
  content: none;
}

/* value-item__desc replaced by full-width values-expansion row */
.value-item__desc { display: none; }

.value-plus {
  color: #21F3EF;
  font-size: 1.2rem;
  font-weight: 300;
  margin-left: auto;
  transition: transform 0.3s ease;
  display: inline-block;
}

.value-item.active .value-plus {
  transform: rotate(45deg);
}

/* ── 11. About — Founder Section ───────────────────────────── */
.founder-section {
  padding: 80px;
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 30px;
  align-items: start;
}

.founder-image {
  position: relative;
}

.founder-image img {
  width: 84%;
  display: block;
  margin-left: auto;
  border-radius: 2px;
  border: 1px solid rgba(33, 243, 239, 0.35);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.founder-image a:hover img {
  border-color: rgba(33, 243, 239, 0.7);
  transform: translateY(-3px) scale(1.01);
}

.founder-linkedin {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  padding: 12px 20px;
  border: 1px solid #21F3EF;
  color: #ffffff;
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  transition: border-color 0.2s ease, background 0.2s ease;
  font-family: inherit;
  background: transparent;
}

.founder-linkedin:hover {
  background: rgba(33, 243, 239, 0.08);
}

/* Plain LinkedIn icon link — no box */
.founder-linkedin-icon {
  display: inline-flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  margin-top: 20px;
  transition: color 0.2s ease;
}

.founder-linkedin-icon:hover {
  color: #ffffff;
}

.founder-title {
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #21F3EF;
  margin-bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.founder-title::before,
.founder-title::after {
  content: '';
  display: block;
  width: 30px;
  height: 1px;
  background: #21F3EF;
  opacity: 0.5;
}

.founder-content {
  display: flex;
  flex-direction: column;
}

.founder-text p {
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1rem;
}

.founder-text p:last-child {
  margin-bottom: 0;
}

/* ── 12. About — Team ──────────────────────────────────────── */
.team-section {
  padding: 60px 80px;
}

/* .team-section__subtitle styles consolidated above */

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 0 10%;
}

/* Team grid — full width spread, images at ~62% (25% bigger than 50%) */
.team-grid--small {
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

.team-card {
  text-align: center;
}

.team-card a {
  display: block;
  text-decoration: none;
}

/* Image wrapper — portrait, ~47% width centred (25% smaller than before) */
.team-card__img-wrap {
  width: 80%;
  margin: 0 auto;
  aspect-ratio: 1194 / 1354;
  overflow: hidden;
  background: transparent;
  border: 1px solid rgba(33, 243, 239, 0.35);
  border-radius: 2px;
  transition: box-shadow 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.team-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: filter 0.3s ease, transform 0.3s ease;
}

/* Alex: position head at top to align with other team members */
.team-card__img-wrap--alex img {
  object-position: center 8%;
}

.team-card a:hover .team-card__img-wrap {
  border-color: rgba(33, 243, 239, 0.7);
  transform: translateY(-4px) scale(1.02);
}

.team-card a:hover .team-card__img-wrap img {
  filter: brightness(1.08) contrast(1.05);
}

.team-card__name {
  color: rgba(255, 255, 255, 0.85);
  font-size: 16px;
  margin-top: 16px;
  letter-spacing: 0.06em;
  font-weight: 400;
}

.team-card__role {
  color: #21F3EF;
  font-size: 15px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-top: 6px;
  white-space: nowrap;
}

.team-note {
  margin-top: 40px;
  text-align: center;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.85);
  white-space: normal;
}

/* ── 13. Work — Grid ───────────────────────────────────────── */
.work-grid {
  padding: 60px 60px 80px;
  columns: 3;
  column-gap: 8px;
}

.work-item {
  break-inside: avoid;
  margin-bottom: 8px;
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.work-item img {
  width: 100%;
  display: block;
  filter: brightness(1.05) contrast(0.97);
}

/* ── 13b. Work — Testimonial cards ────────────────────────── */
.work-testimonial {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(113, 69, 253, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  break-inside: avoid;
}

.testimonial {
  margin: 0;
}

.testimonial__quote {
  font-size: 16px;
  line-height: 1.8;
  color: rgba(255,255,255,0.85);
  font-style: italic;
  margin-bottom: 14px;
}

.testimonial__cite {
  display: block;
  text-align: right;
  font-style: normal;
  font-size: 16px;
  letter-spacing: 0.05em;
  color: #21F3EF;
  text-transform: none;
}

/* ── 14. Contact Page ──────────────────────────────────────── */
.contact-section {
  padding: 60px 80px;
  max-width: 900px;
  margin: 0 auto;
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-size: 16px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 2px;
  padding: 14px 16px;
  color: rgba(255, 255, 255, 0.85);
  font-family: inherit;
  font-size: 16px;
  outline: none;
  transition: border-color 0.2s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #21F3EF;
}

.form-group--full {
  grid-column: 1 / -1;
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.form-submit {
  grid-column: 2 / 3;
  display: flex;
  justify-content: flex-end;
}

.btn-submit {
  padding: 14px 40px;
  background: transparent;
  border: 1px solid #ffffff;
  color: #ffffff;
  font-family: inherit;
  font-size: 16px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  font-weight: 400;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-submit:hover {
  background: #ffffff;
  color: #130E21;
}

.form-success,
.form-error {
  grid-column: 1 / -1;
  padding: 16px;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  display: none;
}

.form-success {
  color: #21F3EF;
  border: 1px solid rgba(33, 243, 239, 0.3);
}

.form-error {
  color: #F6AEF0;
  border: 1px solid rgba(246, 174, 240, 0.3);
}

.form-success.visible,
.form-error.visible {
  display: block;
}

/* ── 14b. Contact intro text ───────────────────────────────── */
.contact-intro {
  max-width: 100%;
  margin: 60px auto 20px;
  padding: 0 40px;
  text-align: center;
  white-space: normal;
}

.contact-intro p {
  font-size: 16px;
  line-height: 1.8;
  color: rgba(255,255,255,0.85);
}

/* ── 15. Expertise Page ────────────────────────────────────── */
.expertise-section {
  padding: 60px 40px 80px;
  max-width: 100%;
}

.expertise-intro {
  margin-bottom: 50px;
  text-align: center;
  max-width: 100%;
  padding: 0 20px;
}

.expertise-intro p {
  font-size: 16px;
  line-height: 1.8;
  color: rgba(255,255,255,0.85);
  margin-bottom: 0;
}

.expertise-intro__line1 {
  white-space: normal;
}

@media (max-width: 1100px) {
  .expertise-intro__line1 { white-space: normal; }
}

/* 3×3 grid of pillars — full width, equal boxes, titles on one line */
.expertise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.expertise-pillar {
  padding: 50px 30px;
  text-align: center;
  background: rgba(255,255,255,0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
}

.expertise-pillar__title {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Colour-coded titles matching the expertise screenshot */
.expertise-pillar--sky    .expertise-pillar__title { color: #21F3EF; }
.expertise-pillar--pink   .expertise-pillar__title { color: #F6AEF0; }
.expertise-pillar--purple .expertise-pillar__title { color: #7145FD; }

/* Hide the bullet list — titles only */
.expertise-pillar__list {
  display: none;
}

/* Clickable pillar */
.expertise-pillar[data-pillar] {
  cursor: pointer;
  transition: background 0.2s ease;
}

.expertise-pillar[data-pillar]:hover {
  background: rgba(255,255,255,0.06);
}

.expertise-pillar.active {
  background: rgba(255,255,255,0.06);
}

/* Pillar full-takeover panel — hidden by default, shown over the grid */
.expertise-takeover {
  display: none;
  position: relative;
  padding: 60px 80px;
  text-align: center;
  animation: fadeInUp 0.3s ease;
}

.expertise-takeover.active {
  display: block;
}

.expertise-takeover__title {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 28px;
  /* colour set dynamically via JS data attribute */
}

.expertise-takeover__title[data-colour="sky"]    { color: #21F3EF; }
.expertise-takeover__title[data-colour="pink"]   { color: #F6AEF0; }
.expertise-takeover__title[data-colour="purple"] { color: #7145FD; }

.expertise-takeover__body {
  font-size: 16px;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.85);
  max-width: 900px;
  margin: 0 auto 36px;
}

.expertise-takeover__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
  transition: color 0.2s ease;
}

.expertise-takeover__back:hover { color: #ffffff; }

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

/* Old expansion below grid — keep hidden */
.expertise-expansion { display: none; }

/* Old card styles — kept for compatibility */
.expertise-card {
  border-left: 3px solid #7145FD;
  padding: 30px;
  margin-bottom: 20px;
  background: rgba(255, 255, 255, 0.03);
}

.expertise-card__title {
  font-size: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 12px;
  font-weight: 400;
}

.expertise-card p,
.expertise-card__desc {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
}

/* ── 16. Footer ────────────────────────────────────────────── */
/* Footer LinkedIn — desktop: hidden (LinkedIn is in the header on desktop) */
.footer-linkedin-mobile {
  display: none;
}

.site-footer {
  padding: 40px 80px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}

.footer-logo {
  height: 110px !important;
  width: auto !important;
  display: block;
  justify-self: end;
  margin-right: 0;
  padding-right: 0;
}

.footer-copyright {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.05em;
  justify-self: start;
}

.footer-address {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
  justify-self: center;
  line-height: 1.7;
}

.footer-linkedin {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
  justify-self: end;
}

.footer-linkedin:hover {
  color: #21F3EF;
}

/* ── 17. Responsive ────────────────────────────────────────── */
@media (max-width: 768px) {

  /* ── Prevent horizontal overflow globally ── */
  body, html {
    overflow-x: hidden;
    max-width: 100%;
  }

  /* All text-containing elements constrained to viewport */
  p, h1, h2, h3, h4, blockquote, cite, li, span {
    max-width: 100%;
    overflow-wrap: break-word;
    word-break: break-word;
  }

  /* Centred body text → left on mobile to prevent clipping */
  .tagline-section,
  .expertise-intro,
  .contact-intro,
  .testimonial,
  .work-testimonial {
    text-align: left;
  }

  .testimonial__quote,
  .testimonial__cite {
    text-align: left;
  }

  /* Founder text: constrain fully */
  .founder-content,
  .founder-text {
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
  }

  /* ── Header: logo left, hamburger right, linkedin hidden (in mobile menu) ── */
  .site-header {
    padding: 14px 20px;
  }

  .page-header {
    margin-top: 73px;
  }

  .site-header__linkedin {
    display: none;
  }

  .site-header__nav,
  .site-nav {
    display: none;
  }

  .hamburger,
  .nav-hamburger {
    display: flex;
    z-index: 1001;
    order: 3;
  }

  .hamburger,
  .nav-hamburger {
    display: flex;
    z-index: 1001;
    order: 3;
  }

  .site-header__cta,
  .btn-touch {
    display: none;
  }

  /* ── Hero ── */
  .hero {
    height: 100svh;
  }

  /* ── Page header: title wraps, smaller font, left pad reduced ── */
  .page-header__title {
    left: 24px;
    right: 24px;
    font-size: clamp(22px, 6vw, 40px);
    white-space: normal;
    line-height: 1.15;
  }

  .page-header__bg {
    max-height: 180px;
  }

  /* ── Tagline ── */
  .tagline-section {
    padding: 50px 24px;
  }

  /* ── Logo carousel: smaller, still scrolls ── */
  .logo-carousel {
    padding: 30px 0;
  }

  .logo-track {
    gap: 48px;
  }

  .logo-item img {
    height: 36px;
    max-width: 120px;
  }

  .logo-item--white img {
    height: 36px;
    max-width: 120px;
  }

  .logo-item--gunnercooke img {
    height: 24px;
  }

  .logo-item--small img {
    height: 36px;
    max-width: 80px;
  }

  /* ── Home squares: single column ── */
  .home-squares {
    grid-template-columns: 1fr;
    padding: 0 20px 50px;
  }

  /* Fix quote transition on mobile — prevent layout reflow during fade */
  .home-square {
    height: auto;
    min-height: 300px;
  }

  .home-square__quote {
    position: relative;
    min-height: 160px;
    align-items: flex-start;
    overflow: hidden;
  }

  .home-square__quote-cite {
    min-height: 24px;
  }

  /* ── Values ── */
  .values-section {
    padding: 40px 20px;
  }

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

  .value-item {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding: 24px 16px;
  }

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

  /* Values expansion: stack vertically on mobile */
  .values-expansion__inner {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .values-expansion__left {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: 20px 16px;
  }

  .values-expansion__right {
    padding: 24px 16px;
  }

  /* ── Founder ── */
  .founder-section {
    grid-template-columns: 1fr;
    padding: 40px 20px;
    gap: 32px;
  }

  /* Cat's photo — centred on mobile */
  .founder-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .founder-image img {
    max-width: 260px;
    width: 100%;
    margin: 0 auto;
    display: block;
  }

  .founder-linkedin {
    align-self: center;
  }

  /* Founder text — constrain to viewport */
  .founder-content {
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
  }

  .founder-content p,
  .founder-content .founder-text {
    overflow-wrap: break-word;
    word-break: break-word;
    max-width: 100%;
  }

  /* ── Team ── */
  .team-section {
    padding: 40px 20px;
  }

  .team-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 0;
  }

  /* ── Expertise ── */
  .expertise-section {
    padding: 40px 20px;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
  }

  .expertise-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  /* Pillar titles: allow wrapping so long names don't clip */
  .expertise-pillar {
    padding: 36px 20px;
    min-height: 90px;
    width: 100%;
    box-sizing: border-box;
  }

  .expertise-pillar__title {
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    word-break: break-word;
  }

  .expertise-intro {
    padding: 0;
    text-align: left;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 32px;
  }

  /* Expertise text: constrain to container */
  .expertise-intro p,
  .expertise-section p {
    overflow-wrap: break-word;
    word-break: break-word;
    width: 100%;
    box-sizing: border-box;
  }

  /* ── Work ── */
  .work-grid {
    columns: 1;
    padding: 20px 20px 50px;
  }

  .work-item {
    margin-bottom: 8px;
  }

  /* Testimonials: reduce padding on mobile */
  .work-testimonial {
    padding: 28px 20px !important;
  }

  .testimonial__quote {
    font-size: 15px;
  }

  /* ── Contact ── */
  .contact-section {
    padding: 40px 20px;
  }

  .contact-intro {
    padding: 0;
    text-align: center;
    margin: 32px 0 20px;
  }

  .contact-form {
    grid-template-columns: 1fr;
  }

  .form-submit {
    grid-column: 1 / -1;
    justify-content: stretch;
  }

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

  /* ── Footer ── */
  .site-footer {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 40px 20px;
    justify-items: center;
    gap: 24px;
  }

  .footer-copyright,
  .footer-address,
  .footer-linkedin {
    justify-self: center;
  }

  /* Show LinkedIn in footer on mobile since it's hidden in header */
  .footer-linkedin {
    display: flex;
  }

  /* Footer LinkedIn icon — mobile only */
  .footer-linkedin-mobile {
    display: flex;
    justify-content: center;
    color: rgba(255,255,255,0.7);
    transition: color 0.2s ease;
  }

  .footer-linkedin-mobile:hover {
    color: #21F3EF;
  }

  /* ── Expertise grid ── */
  .expertise-grid {
    grid-template-columns: 1fr;
  }
}

/* Logo carousel additions */
.logo-item--screen img {
  filter: none;
  mix-blend-mode: screen;
  opacity: 0.85;
}
.logo-item--screen img:hover { opacity: 1; }

/* All logos same height — CMO2go constrained slightly narrower */
.logo-item--small img {
  height: 45px;
  max-width: 100px;
}


/* ── Work page video item ── */
.work-item--video {
  break-inside: avoid;
  margin-bottom: 8px;
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.work-item--video video {
  width: 100%;
  display: block;
  max-height: 400px;
  object-fit: cover;
}

/* Work quote boxes — more padding */
.work-testimonial {
  padding: 40px 36px !important;
}

/* Reduce very large work images */
.work-item img {
  max-height: 500px;
  object-fit: cover;
}

/* GET IN TOUCH box below squares */
.home-cta-wrap {
  display: flex;
  justify-content: center;
  margin: 36px auto 80px;
}
.home-cta-btn {
  display: inline-block;
  border: 1px solid rgba(255,255,255,0.85);
  padding: 18px 60px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-size: 16px;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  background: transparent;
  font-family: 'Source Sans 3', sans-serif;
  transition: background 0.2s ease, color 0.2s ease;
  cursor: pointer;
}
.home-cta-btn:hover {
  background: #ffffff;
  color: #130E21;
}

/* Footer address clickable */
.footer-address-link {
  text-decoration: none;
  justify-self: center;
}
.footer-address-link:hover .footer-address {
  color: #21F3EF;
}

/* Footer logo constrained width */
.footer-logo {
  max-width: 200px !important;
}

/* Team intro wider margins */
.team-intro {
  max-width: 90%;
  margin-bottom: 20px;
}


/* Edwin Coe: dark text on white bg → invert to white text on black → screen blend removes black */
.logo-item--invert-screen img {
  filter: brightness(0) invert(1);
  mix-blend-mode: screen;
  opacity: 0.8;
}
.logo-item--invert-screen img:hover { opacity: 1; }
