/* ============================================================
   4Beat — Main Stylesheet
   Layout, components, sections.
   Depends on: tokens.css
   ============================================================ */

/* ============================================================
   TYPOGRAPHY HIERARCHY
   ============================================================ */
h1, h2, h3, h4 {
  font-weight: 700;
  letter-spacing: var(--ls-tight);
  line-height:    var(--lh-h);
  color:          var(--c-ink);
}

h1 { font-size: var(--fs-h1);   line-height: var(--lh-display); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }

p  { max-width: 65ch; }

.lead {
  font-size: clamp(1.125rem, 1.5vw, 1.375rem);
  color:     var(--c-ink-80);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: 14px 28px;
  font-size: var(--fs-body);
  font-weight: 700;
  letter-spacing: var(--ls-normal);
  border: var(--bw) solid transparent;
  border-radius: var(--r-1);
  transition: background var(--dur-fast) var(--ease),
              color      var(--dur-fast) var(--ease),
              border     var(--dur-fast) var(--ease),
              transform  var(--dur-fast) var(--ease);
  white-space: nowrap;
  text-decoration: none !important;
}

.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--c-red-dark);     /* WCAG AA: paper on red-dark = 5.24:1 (vs 3.99:1 on full red) */
  color:      var(--c-paper);
  border-color: var(--c-red-dark);
}
.btn--primary:hover {
  background: var(--c-red-deep);
  border-color: var(--c-red-deep);
}

.btn--ghost {
  background: transparent;
  color:      var(--c-ink);
  border-color: var(--c-ink);
}
.btn--ghost:hover {
  background: var(--c-ink);
  color:      var(--c-paper);
}

.btn--ink {
  background: var(--c-ink);
  color:      var(--c-paper);
  border-color: var(--c-ink);
}
.btn--ink:hover {
  background: var(--c-red);
  border-color: var(--c-red);
}

.btn .arrow {
  width: 18px; height: 18px;
  transition: transform var(--dur-fast) var(--ease);
}
.btn:hover .arrow { transform: translateX(3px); }

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  background: var(--c-paper);
  border-bottom: var(--bw) solid transparent;
  transition: border-color var(--dur) var(--ease);
}
.nav.is-scrolled { border-bottom-color: var(--c-line); }

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}

.nav__logo {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-weight: 700;
  letter-spacing: var(--ls-tight);
  text-decoration: none !important;
}
.nav__logo .logo-mark { color: var(--c-red); }

/* Brand lockup: 4Beat (primary) + Tower of LIFE (secondary, smaller) */
.brand-stack {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
  gap: 2px;
}
.brand-stack .brand-primary {
  font-size: 1.5rem;
  letter-spacing: var(--ls-tight);
}
.brand-stack .brand-secondary {
  font-size: .625rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--c-ink-60);
  font-family: var(--f-sans);
  padding-left: 1px;
}
.nav__logo:hover .brand-stack .brand-secondary {
  color: var(--c-ink);
}

/* Footer brand lockup variant */
.footer__logo .brand-stack .brand-secondary {
  color: rgba(250, 250, 247, .6);
}
.footer__logo .brand-stack .brand-primary { color: var(--c-paper); }
.footer__logo .brand-stack .brand-primary .logo-mark { color: var(--c-red); }

.nav__menu {
  display: none;
  gap: var(--s-5);
  align-items: center;
}
@media (min-width: 880px) {
  .nav__menu { display: flex; }
}

.nav__link {
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--c-ink-80);
  transition: color var(--dur-fast) var(--ease);
}
.nav__link:hover { color: var(--c-ink); text-decoration: none; }
.nav__link.is-active { color: var(--c-red-text); }    /* WCAG AA: 5.24:1 on paper */

.nav__cta {
  display: none;
}
@media (min-width: 880px) {
  .nav__cta { display: inline-flex; }
}

/* hamburger */
.nav__burger {
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  height: 22px;
  padding: 4px 0;
  align-items: center;
  justify-content: center;
}
.nav__burger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--c-ink);
  transition: transform var(--dur) var(--ease),
              opacity   var(--dur) var(--ease);
}
.nav__burger.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; }
.nav__burger.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (min-width: 880px) { .nav__burger { display: none; } }

/* mobile menu drawer */
.nav__drawer {
  position: fixed;
  inset: 72px 0 0 0;
  background: var(--c-paper);
  padding: var(--s-6) var(--pad-x);
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  transform: translateX(100%);
  transition: transform var(--dur) var(--ease-out);
  z-index: var(--z-nav);
}
.nav__drawer.is-open { transform: translateX(0); }
.nav__drawer .nav__link { font-size: 1.5rem; font-weight: 700; color: var(--c-ink); }
.nav__drawer .btn { margin-top: var(--s-3); align-self: flex-start; }
@media (min-width: 880px) { .nav__drawer { display: none; } }

/* ============================================================
   SECTION primitives
   ============================================================ */
.section {
  padding-block: var(--s-8);
}

@media (min-width: 1024px) {
  .section { padding-block: var(--s-10); }
}

.section--alt    { background: var(--c-paper-2); }
.section--ink    { background: var(--c-ink); color: var(--c-paper); }
.section--ink h1,
.section--ink h2,
.section--ink h3 { color: var(--c-paper); }

.section__head {
  max-width: 720px;
  margin-bottom: var(--s-6);
}

@media (min-width: 1024px) {
  .section__head { margin-bottom: var(--s-7); }
}

.section__head .eyebrow { margin-bottom: var(--s-3); display: block; }
.section__head h2       { margin-bottom: var(--s-3); }
.section__head .lead    { margin-top: var(--s-3); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding-block: var(--s-7) var(--s-8);
  overflow: hidden;
}

@media (min-width: 1024px) {
  .hero { padding-block: var(--s-8) var(--s-10); min-height: 88vh; display: flex; align-items: center; }
}

.hero__inner {
  position: relative;
  z-index: 1;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  margin-bottom: var(--s-4);
}
.hero__eyebrow .pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-red);
  animation: pulse 0.6s var(--ease) infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1);   opacity: 1;   }
  50%      { transform: scale(1.6); opacity: .35; }
}

.hero__headline {
  font-size: var(--fs-display);
  line-height: var(--lh-display);
  letter-spacing: var(--ls-tight);
  font-weight: 700;
  margin-bottom: var(--s-4);
  max-width: 14ch;
}
.hero__headline em {
  color: var(--c-red);
  font-style: normal;
}

.hero__sub {
  font-size: clamp(1.125rem, 1.6vw, 1.375rem);
  color: var(--c-ink-80);
  max-width: 56ch;
  margin-bottom: var(--s-6);
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-bottom: var(--s-7);
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-4);
  padding-top: var(--s-5);
  border-top: var(--bw) solid var(--c-line);
  max-width: 720px;
}
@media (min-width: 720px) {
  .hero__stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.hero__stat-num {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: var(--ls-tight);
  line-height: 1;
}
.hero__stat-num strong { color: var(--c-red); font-weight: 700; }
.hero__stat-label {
  font-size: var(--fs-small);
  color: var(--c-ink-60);
  margin-top: var(--s-2);
  line-height: 1.4;
}

/* EKG line decorative */
.hero__ekg {
  position: absolute;
  right: -10%;
  top: 50%;
  transform: translateY(-50%);
  width: 90%;
  max-width: 900px;
  opacity: .07;
  pointer-events: none;
  color: var(--c-red);
}
@media (min-width: 1024px) {
  .hero__ekg { right: -5%; opacity: .14; width: 65%; }
}

/* ============================================================
   PROBLEM section (dark, dramatic)
   ============================================================ */
.problem-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-6);
  margin-top: var(--s-7);
}
@media (min-width: 880px) {
  .problem-grid { grid-template-columns: repeat(3, 1fr); }
}

.stat-card {
  border-top: 2px solid var(--c-red);
  padding-top: var(--s-4);
}

.stat-card__num {
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 700;
  letter-spacing: var(--ls-tight);
  line-height: 1;
  color: var(--c-red);
  margin-bottom: var(--s-3);
}
.stat-card__title {
  font-size: var(--fs-h3);
  font-weight: 700;
  margin-bottom: var(--s-2);
  letter-spacing: var(--ls-tight);
}
.stat-card__desc {
  color: var(--c-paper);
  opacity: .75;
  font-size: var(--fs-small);
  line-height: 1.6;
}

/* ============================================================
   SOLUTION INTRO (image + copy split)
   ============================================================ */
.solution-intro {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-6);
  align-items: center;
  margin-bottom: var(--s-7);
}

@media (min-width: 880px) {
  .solution-intro {
    grid-template-columns: 1.1fr 1fr;
    gap: var(--s-7);
  }
}

.solution-intro__copy { margin-bottom: 0; }

.solution-intro__media {
  position: relative;
  background: var(--c-paper-2);
  padding: var(--s-4);
  border: var(--bw) solid var(--c-line);
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}

.solution-intro__media picture,
.solution-intro__media img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 560px;
  object-fit: contain;
  margin-inline: auto;
}

.solution-intro__media figcaption {
  font-size: var(--fs-micro);
  color: var(--c-ink-60);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
}

/* ============================================================
   FEATURES GRID (Solution)
   ============================================================ */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-5);
}
@media (min-width: 720px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .features-grid { grid-template-columns: repeat(3, 1fr); gap: var(--s-6); }
}

.feature {
  padding: var(--s-5);
  border: var(--bw) solid var(--c-line);
  background: var(--c-paper);
  transition: border-color var(--dur) var(--ease),
              transform    var(--dur) var(--ease);
}
.feature:hover {
  border-color: var(--c-ink);
  transform: translateY(-2px);
}

.feature__icon {
  width: 48px;
  height: 48px;
  margin-bottom: var(--s-4);
  color: var(--c-red);
}
.feature__icon svg { width: 100%; height: 100%; }

.feature h3 {
  margin-bottom: var(--s-2);
  letter-spacing: var(--ls-tight);
}
.feature p {
  font-size: var(--fs-small);
  color: var(--c-ink-80);
  line-height: 1.6;
}

/* ============================================================
   STEPS (How it works)
   ============================================================ */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-5);
  counter-reset: step;
  position: relative;
}
@media (min-width: 720px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: var(--s-6); }
}

.step {
  position: relative;
  padding-top: var(--s-5);
  border-top: 2px solid var(--c-ink);
}
.step__num {
  font-family: var(--f-mono);
  font-size: var(--fs-small);
  color: var(--c-red-text);             /* WCAG AA: small text needs darker red on paper */
  letter-spacing: var(--ls-eyebrow);
  font-weight: 700;
  margin-bottom: var(--s-3);
}
.step__title {
  font-size: var(--fs-h3);
  font-weight: 700;
  letter-spacing: var(--ls-tight);
  margin-bottom: var(--s-2);
}
.step__desc {
  font-size: var(--fs-small);
  color: var(--c-ink-80);
  line-height: 1.6;
}

/* ============================================================
   PRODUCT GRID
   ============================================================ */
.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-3);
}
@media (min-width: 720px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 1fr;
  }
}

.product {
  position: relative;
  padding: var(--s-5);
  background: var(--c-paper);
  border: var(--bw) solid var(--c-line);
  transition: border-color var(--dur) var(--ease),
              background   var(--dur) var(--ease);
  display: flex;
  flex-direction: column;
}
.product:hover {
  border-color: var(--c-ink);
}

.product--featured {
  background: var(--c-ink);
  color: var(--c-paper);
  border-color: var(--c-ink);
  padding: 0;
  overflow: hidden;
}
.product--featured:hover {
  border-color: var(--c-red);
}
@media (min-width: 1024px) {
  .product--featured {
    grid-row: span 2;
  }
}

.product__media {
  background: var(--c-paper-2);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--s-3);
  border-bottom: var(--bw) solid rgba(255,255,255,.06);
}
.product__media img {
  max-height: 320px;
  width: auto;
  object-fit: contain;
}
@media (min-width: 1024px) {
  .product__media img { max-height: 420px; }
}

.product__body {
  padding: var(--s-5);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

/* Thumbnail for non-featured product cards (e.g. 4Beat Wall) */
.product--with-thumb {
  padding-top: 0;
}
.product__thumb {
  margin: 0 calc(-1 * var(--s-5)) var(--s-4);
  background: var(--c-paper-2);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--s-3);
  border-bottom: var(--bw) solid var(--c-line);
}
.product__thumb img {
  max-height: 280px;
  width: auto;
  height: auto;
  object-fit: contain;
}
@media (min-width: 1024px) {
  .product__thumb img { max-height: 320px; }
}

.product__tag {
  display: inline-block;
  font-size: var(--fs-micro);
  text-transform: uppercase;
  letter-spacing: var(--ls-eyebrow);
  font-weight: 700;
  color: var(--c-red);                  /* tag sits on ink (featured), red on ink = 4.75 → AA pass */
  margin-bottom: var(--s-3);
}

.product__name {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: var(--ls-tight);
  margin-bottom: var(--s-3);
  line-height: 1.05;
  display: flex;
  align-items: baseline;
  gap: 4px;
  flex-wrap: wrap;
}
.product__name span { color: var(--c-red); }
.product--featured .product__name span { color: var(--c-red); }

.product__desc {
  font-size: var(--fs-small);
  line-height: 1.6;
  color: var(--c-ink-80);
  margin-bottom: var(--s-4);
  flex-grow: 1;
}
.product--featured .product__desc { color: rgba(250, 250, 247, .8); }

.product__link {
  font-size: var(--fs-small);
  font-weight: 700;
  color: var(--c-red);                  /* product__link only on dark featured card → red on ink = 4.75 AA */
  margin-top: auto;
  align-self: flex-start;
}
.product__link:hover { text-decoration: underline; }

/* ============================================================
   HERO MEDIA (lifestyle photo, right side on desktop)
   ============================================================ */
.hero--photo .hero__media {
  display: none;
}
@media (min-width: 1024px) {
  .hero--photo {
    position: relative;
  }
  .hero--photo .hero__media {
    display: block;
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 48%;
    overflow: hidden;
    z-index: 0;
  }
  .hero--photo .hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }
  /* Soft gradient mask blending into paper on the left edge */
  .hero--photo .hero__media::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
      var(--c-paper) 0%,
      rgba(250, 250, 247, .4) 18%,
      rgba(250, 250, 247, 0) 50%);
    z-index: 1;
  }
  .hero--photo .hero__inner {
    position: relative;
    z-index: 2;
    max-width: 56%;
  }
  .hero--photo .hero__ekg { display: none; }
}

/* Mobile: photo above headline */
@media (max-width: 1023px) {
  .hero--photo .hero__media {
    display: block;
    margin-bottom: var(--s-5);
    border-radius: var(--r-1);
    overflow: hidden;
  }
  .hero--photo .hero__media img {
    width: 100%;
    height: 240px;
    object-fit: cover;
  }
}

/* ============================================================
   GALLERY (Tower of LIFE w mieście)
   ============================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-3);
}
@media (min-width: 880px) {
  .gallery-grid {
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: auto;
  }
  .gallery-tile--wide {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
  }
}

.gallery-tile {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--r-1);
  background: var(--c-paper-2);
}
.gallery-tile img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out);
}
.gallery-tile--wide img {
  min-height: 480px;
}
@media (max-width: 879px) {
  .gallery-tile--wide img { min-height: 280px; }
}
.gallery-tile:hover img { transform: scale(1.03); }

.gallery-tile figcaption {
  position: absolute;
  left: var(--s-3);
  bottom: var(--s-3);
  background: var(--c-ink);
  color: var(--c-paper);
  padding: 6px 12px;
  font-size: var(--fs-small);
  font-weight: 700;
  letter-spacing: var(--ls-normal);
}

/* ============================================================
   AUDIENCE GRID
   ============================================================ */
.audience-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-3);
}
@media (min-width: 720px) {
  .audience-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .audience-grid { grid-template-columns: repeat(4, 1fr); }
}

.audience {
  padding: var(--s-5);
  background: var(--c-paper);
  border: var(--bw) solid var(--c-line);
  transition: border-color var(--dur) var(--ease);
}
.audience:hover { border-color: var(--c-ink); }

.audience h3 {
  font-size: var(--fs-h3);
  margin-bottom: var(--s-3);
  letter-spacing: var(--ls-tight);
}
.audience p {
  font-size: var(--fs-small);
  color: var(--c-ink-80);
  line-height: 1.6;
}

/* Photo variant of audience cards */
.audience--photo {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}
.audience--photo picture {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--c-paper-2);
}
.audience--photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out);
}
.audience--photo:hover img { transform: scale(1.04); }

.audience--photo .audience__body {
  padding: var(--s-4) var(--s-5) var(--s-5);
  flex-grow: 1;
}
.audience--photo .audience__body h3 { margin-bottom: var(--s-2); }

/* ============================================================
   KPI / LICZBY (dark, big numbers)
   ============================================================ */
.kpi .section__head h2 { color: var(--c-paper); }
.kpi .section__head .lead { color: rgba(250, 250, 247, .75); }

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-3);
  margin-top: var(--s-6);
}
@media (min-width: 720px)  { .kpi-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .kpi-grid { grid-template-columns: repeat(4, 1fr); gap: var(--s-4); } }

.kpi-tile {
  border-top: 2px solid var(--c-red);
  padding: var(--s-4) var(--s-3) var(--s-3);
  background: rgba(255, 255, 255, .03);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.kpi-tile__num {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: var(--ls-tight);
  line-height: 1;
  color: var(--c-paper);
}
.kpi-tile__label {
  font-size: var(--fs-small);
  line-height: 1.5;
  color: rgba(250, 250, 247, .72);
}

/* ============================================================
   FAQ (semantic details/summary)
   ============================================================ */
.faq {
  display: flex;
  flex-direction: column;
  margin-top: var(--s-5);
  border-top: var(--bw) solid var(--c-line);
}

.faq__item {
  border-bottom: var(--bw) solid var(--c-line);
}

.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  padding: var(--s-4) 0;
  cursor: pointer;
  font-weight: 700;
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  letter-spacing: var(--ls-tight);
  color: var(--c-ink);
  list-style: none;
  transition: color var(--dur-fast) var(--ease);
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after {
  content: "";
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  border-right: 2px solid var(--c-ink);
  border-bottom: 2px solid var(--c-ink);
  transform: rotate(45deg);
  transition: transform var(--dur) var(--ease);
}
.faq__item[open] .faq__q { color: var(--c-red-text); }     /* AA: 5.24:1 on paper */
.faq__item[open] .faq__q::after {
  transform: rotate(-135deg);
  border-color: var(--c-red-text);
}
.faq__q:hover { color: var(--c-red-text); }
.faq__q:focus-visible {
  outline: 2px solid var(--c-red);
  outline-offset: 2px;
}

.faq__a {
  padding-bottom: var(--s-4);
  color: var(--c-ink-80);
}
.faq__a p {
  font-size: var(--fs-body);
  line-height: 1.6;
  max-width: 65ch;
}

/* ============================================================
   TEAM GRID
   ============================================================ */
.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-5);
}
@media (min-width: 720px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}

.team-member {
  text-align: left;
}
.team-member__photo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--c-ink);
  color: var(--c-red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: var(--ls-tight);
  margin-bottom: var(--s-4);
}

.team-member h3 {
  font-size: var(--fs-h3);
  margin-bottom: var(--s-1);
  letter-spacing: var(--ls-tight);
}
.team-member__role {
  font-size: var(--fs-small);
  color: var(--c-red-text);             /* WCAG AA: 5.24:1 on paper for small text */
  font-weight: 700;
  margin-bottom: var(--s-3);
  text-transform: uppercase;
  letter-spacing: var(--ls-eyebrow);
}
.team-member p {
  font-size: var(--fs-small);
  color: var(--c-ink-80);
  line-height: 1.6;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-6);
  align-items: start;
}
@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--s-8);
  }
}

.contact__lead h2 { color: var(--c-paper); }
.contact__lead .lead { color: rgba(250, 250, 247, .75); }
.contact__lead .eyebrow { color: var(--c-red); }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  background: var(--c-paper);
  color: var(--c-ink);
  padding: var(--s-5);
}
@media (min-width: 720px) {
  .contact-form { padding: var(--s-6); }
}

.field {
  display: flex;
  flex-direction: column;
  gap: var(--s-1);
}
.field__label {
  font-size: var(--fs-small);
  font-weight: 700;
  color: var(--c-ink);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
}
.field input,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: var(--bw) solid var(--c-line);
  background: var(--c-paper);
  color: var(--c-ink);
  font-family: var(--f-sans);
  font-size: var(--fs-body);
  border-radius: var(--r-1);
  transition: border-color var(--dur-fast) var(--ease);
}
.field input:focus,
.field textarea:focus {
  border-color: var(--c-ink);
  outline: 2px solid var(--c-red);
  outline-offset: 0;
}
.field textarea { resize: vertical; min-height: 100px; }

.field--check {
  flex-direction: row;
  align-items: flex-start;
  gap: var(--s-2);
  font-size: var(--fs-small);
  color: var(--c-ink-80);
  line-height: 1.5;
}
.field--check input { width: 18px; height: 18px; margin-top: 2px; flex-shrink: 0; }
.field--check a { text-decoration: underline; }

.contact-form button[type="submit"] {
  margin-top: var(--s-2);
  align-self: flex-start;
}

/* ============================================================
   REVEAL on scroll
   ============================================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--dur-slow) var(--ease-out),
              transform var(--dur-slow) var(--ease-out);
  will-change: opacity, transform;
}
[data-reveal].is-revealed,
.no-js [data-reveal] {
  opacity: 1;
  transform: none;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--c-ink);
  color: var(--c-paper);
  padding-block: var(--s-7) var(--s-5);
}

.footer__top {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-6);
  padding-bottom: var(--s-6);
  border-bottom: var(--bw) solid rgba(255, 255, 255, .12);
}

@media (min-width: 880px) {
  .footer__top { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

.footer__brand .footer__logo {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: var(--ls-tight);
  margin-bottom: var(--s-3);
}
.footer__brand .footer__logo .logo-mark { color: var(--c-red); }
.footer__brand p {
  color: rgba(250, 250, 247, .65);
  max-width: 38ch;
}

.footer__col h4 {
  color: var(--c-paper);
  font-size: var(--fs-small);
  text-transform: uppercase;
  letter-spacing: var(--ls-eyebrow);
  margin-bottom: var(--s-3);
}
.footer__col ul { display: flex; flex-direction: column; gap: var(--s-2); }
.footer__col a {
  color: rgba(250, 250, 247, .75);
  font-size: var(--fs-small);
}
.footer__col a:hover { color: var(--c-paper); text-decoration: underline; }

.footer__bottom {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  padding-top: var(--s-4);
  font-size: var(--fs-micro);
  color: rgba(250, 250, 247, .55);
}
@media (min-width: 720px) {
  .footer__bottom { flex-direction: row; justify-content: space-between; align-items: center; }
}

/* ============================================================
   COOKIE BANNER
   ============================================================ */
.cookie-banner {
  position: fixed;
  bottom: var(--s-3);
  left: var(--s-3);
  right: var(--s-3);
  max-width: 540px;
  background: var(--c-ink);
  color: var(--c-paper);
  padding: var(--s-4);
  border-radius: var(--r-2);
  z-index: var(--z-banner);
  box-shadow: 0 12px 40px rgba(0,0,0,.25);
  transform: translateY(150%);
  transition: transform var(--dur-slow) var(--ease-out);
}
.cookie-banner.is-visible { transform: translateY(0); }
.cookie-banner p {
  font-size: var(--fs-small);
  line-height: 1.5;
  margin-bottom: var(--s-3);
}
.cookie-banner a { text-decoration: underline; color: var(--c-paper); }
.cookie-banner__actions {
  display: flex;
  gap: var(--s-2);
  flex-wrap: wrap;
}
.cookie-banner .btn {
  padding: 8px 16px;
  font-size: var(--fs-small);
}
