/* ============================================================
   styles/main.css — Spark Reply Landing Page
   ============================================================ */


/* ============================================================
   1. Font Faces
   ============================================================ */

@font-face {
  font-family: 'AlaskaBeta';
  src: url('../assets/fonts/AlaskaBeta-LightContrast.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'AlaskaBeta';
  src: url('../assets/fonts/AlaskaBeta-MediumContrast.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* Single file covers all weights — browser will not synthesize bold */
@font-face {
  font-family: 'ProximaNova';
  src: url('../assets/fonts/ProximaNova-Regular.otf') format('opentype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}


/* ============================================================
   2. Design Tokens
   ============================================================ */

:root {
  /* Colours */
  --color-spark-blue:  #5693FF;
  --color-black:       #000000;
  --color-white:       #FFFFFF;
  --color-grey:        #E0E0E0;
  --color-spark-green: #00FF51;
  --color-reply-green: #05D34A;

  /* Fonts */
  --font-alaska:  'AlaskaBeta', sans-serif;
  --font-proxima: 'ProximaNova', sans-serif;

  /* Type scale — Desktop */
  --text-display:  4rem;
  --text-h1:       3rem;
  --text-h2:       1.5rem;
  --text-body:     1.25rem;
  --text-body-sm:  1rem;
  --text-label:    0.7rem;
  --text-button:   0.8125rem;

  /* Letter spacing (em — scales with font size) */
  --ls-label:  0.125em;
  --ls-button: 0.125em;

  /* Font weights */
  --fw-light:   300;
  --fw-regular: 400;
  --fw-medium:  500;

  /* Spacing */
  --space-4:   0.25rem;
  --space-8:   0.5rem;
  --space-16:  1rem;
  --space-24:  1.5rem;
  --space-32:  2rem;
  --space-40:  2.5rem;
  --space-48:  3rem;
  --space-56:  3.5rem;
  --space-64:  4rem;
  --space-72:  4.5rem;
  --space-80:  5rem;
  --space-96:  6rem;
  --space-128: 8rem;
  --space-160: 10rem;
  --space-192: 12rem;

  /* Layout */
  --container-max:       1440px;
  --container-padding-x: 4rem;
  --section-padding-y:   4rem;
  --nav-height:          4.5rem;
}


/* ============================================================
   3. Reset & Base
   ============================================================ */

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

html {
  scroll-behavior: smooth;
  scroll-snap-type: y proximity;
  scroll-padding-top: var(--nav-height);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-proxima);
  font-size: var(--text-body);
  font-weight: var(--fw-regular);
  color: var(--color-white);
  background-color: #03040a;
  line-height: normal;
  padding-top: var(--nav-height);
  position: relative;
}

a {
  color: inherit;
  text-decoration: none;
}

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

ul, ol {
  list-style: none;
}

address {
  font-style: normal;
}

/* Visually hidden until focused — keyboard accessibility */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-16);
  z-index: 9999;
  padding: var(--space-8) var(--space-16);
  background-color: var(--color-spark-blue);
  color: var(--color-white);
  font-family: var(--font-alaska);
  font-size: var(--text-label);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
}
.skip-link:focus { top: var(--space-8); }


/* ============================================================
   3b. Ambient Glow Layer
   ============================================================ */

/* Container — sits behind all content, scrolls with page */
.glow-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

/* All content layers stack above the glow layer */
.section--dark,
.footer,
.nav-bar {
  position: relative;
  z-index: 1;
}

/* Base blob */
.blob {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(50, 105, 225, 0.75) 0%, rgba(25, 62, 155, 0.3) 45%, transparent 72%);
  filter: blur(140px);
  opacity: 0.65;
  will-change: transform;
  transform: translate(-50%, -50%);
}

.blob--large  { width: 100vw; height: 100vw; }
.blob--medium { width: 75vw;  height: 75vw;  }
.blob--small  { width: 55vw;  height: 55vw;  }

/* Drift animation — slow, subtle breathing */
@keyframes drift {
  0%, 100% { transform: translate(-50%, -50%) scale(1);    }
  50%       { transform: translate(-50%, -50%) scale(1.08); }
}

.blob:nth-child(1) { animation: drift 14s ease-in-out infinite 0s;  }
.blob:nth-child(2) { animation: drift 18s ease-in-out infinite 4s;  }
.blob:nth-child(3) { animation: drift 16s ease-in-out infinite 2s;  }
.blob:nth-child(4) { animation: drift 20s ease-in-out infinite 7s;  }


/* ============================================================
   4. Layout Utilities
   ============================================================ */

.container {
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding-x);
  padding-right: var(--container-padding-x);
  width: 100%;
}

/* Each section fills the viewport — one section visible at a time */
.section--dark {
  background-color: transparent;
  color: var(--color-white);
  min-height: calc(100vh - var(--nav-height));
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: var(--section-padding-y);
  padding-bottom: var(--section-padding-y);
}

/* Modifier — section flows visually into the previous one
   (no top padding, no minimum height, no scroll-snap point).
   Used to combine adjacent sections into a single visual unit. */
.section--dark.section--continuous {
  min-height: auto;
  scroll-snap-align: unset;
  padding-top: 0;
  justify-content: flex-start;
}

/* Modifier — section is the first of a combined group.
   Drops the full-viewport minimum height so the next sub-block
   doesn't sit a viewport away. Keeps snap-align so the group
   start is a snap point. */
.section--dark.section--has-continuation {
  min-height: auto;
  scroll-snap-align: start;
  justify-content: flex-start;
}

/* Modifier — section is an inner sub-block of a combined group
   (i.e., not the last one). Tighter bottom padding so spacing
   between sub-blocks stays uniform. */
.section--dark.section--inner-block {
  padding-bottom: var(--space-48);
}

/* Double the gap before the second sub-block in each combined group */
.where-we-work.section--dark.section--inner-block,
.what-we-do.section--dark.section--inner-block,
.our-principles.section--dark.section--inner-block {
  padding-bottom: var(--space-160);
}

/* Thin horizontal rule between adjacent sub-blocks inside a combined section.
   Sits at the top of a section--continuous, inside the container. */
.sub-divider {
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.10);
  margin: 0 0 var(--space-48);
}

/* Umbrella label sits at the very top of a combined section,
   above numbered sub-block eyebrows. Slightly more prominent
   spacing than a regular eyebrow. */
.section-umbrella {
  margin-bottom: var(--space-48);
}


/* ============================================================
   5. Typography
   ============================================================ */

.display {
  font-family: var(--font-alaska);
  font-size: var(--text-display);
  font-weight: var(--fw-light);
  line-height: 1.1;
  letter-spacing: 0;
  color: var(--color-white);
}

.heading-1 {
  font-family: var(--font-alaska);
  font-size: var(--text-h1);
  font-weight: var(--fw-light);
  line-height: 1.15;
  letter-spacing: 0;
  color: var(--color-white);
}

.heading-2 {
  font-family: var(--font-proxima);
  font-size: var(--text-h2);
  font-weight: var(--fw-medium);
  line-height: normal;
  letter-spacing: 0;
  color: var(--color-white);
}

.body-text {
  font-family: var(--font-proxima);
  font-size: var(--text-body);
  font-weight: var(--fw-regular);
  line-height: 1.55;
  color: var(--color-white);
}

/* Label — Alaska Beta Medium, uppercase, letter-spaced */
.label {
  display: block;
  font-family: var(--font-alaska);
  font-size: var(--text-label);
  font-weight: var(--fw-medium);
  line-height: normal;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: var(--space-24);
}

.label--umbrella {
  font-size: 0.9rem;
}

/* Text highlights — inline, colour only, no size/weight change */
.highlight--blue  { color: var(--color-spark-blue);  }
.highlight--green { color: var(--color-reply-green); }

/* Forced line break — desktop only, hidden at ≤ 1200px */
.br--desktop-only { display: block; }

@media (max-width: 75em) {
  .br--desktop-only { display: none; }
}


/* ============================================================
   6. Components
   ============================================================ */

/* --- CTA Button --- */
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.6875rem;
  padding: 0 var(--space-24);
  background-color: var(--color-spark-blue);
  color: var(--color-white);
  font-family: var(--font-alaska);
  font-size: var(--text-button);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-button);
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  border: none;
  transition: opacity 0.2s ease;
}

.cta-button:hover { opacity: 0.85; }

.cta-button--ghost {
  background-color: transparent;
  border: 1px solid var(--color-spark-blue);
  color: var(--color-spark-blue);
}

.cta-button--ghost:hover {
  background-color: rgba(86, 147, 255, 0.08);
  opacity: 1;
}

/* --- Line Small (24 × 2 px, Spark Blue) --- */
.line-small {
  width: 1.5rem;
  height: 2px;
  background-color: var(--color-spark-blue);
  flex-shrink: 0;
}


/* ============================================================
   7. Navigation Bar
   ============================================================ */

.nav-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 100;
  height: var(--nav-height);
  background-color: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.nav-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
}

.nav-bar__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav-bar__logo img {
  height: 1.875rem;
  width: auto;
}

.nav-bar__links {
  display: flex;
  align-items: center;
  gap: var(--space-32);
}

.nav-bar__link {
  font-family: var(--font-alaska);
  font-size: var(--text-label);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  transition: color 0.2s ease;
}

.nav-bar__link:hover { color: var(--color-white); }


/* Burger button — hidden by default (desktop), shown on tablet/mobile */
.nav-bar__burger {
  display: none;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  width: 1.75rem;
  height: 1.375rem;
  position: relative;
  z-index: 110;
}

.nav-bar__burger span {
  display: block;
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--color-white);
  transition: transform 0.25s ease, opacity 0.25s ease, top 0.25s ease;
}

.nav-bar__burger span:nth-child(1) { top: 0; }
.nav-bar__burger span:nth-child(2) { top: 0.625rem; }
.nav-bar__burger span:nth-child(3) { top: 1.25rem; }

.nav-bar__burger[aria-expanded="true"] span:nth-child(1) {
  top: 0.625rem;
  transform: rotate(45deg);
}
.nav-bar__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-bar__burger[aria-expanded="true"] span:nth-child(3) {
  top: 0.625rem;
  transform: rotate(-45deg);
}


/* Mobile menu overlay — fullscreen, dark blur, hidden by default */
.mobile-menu {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.97);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  z-index: 90;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: var(--nav-height);
}

.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu__nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-32);
  align-items: center;
  padding: 0 var(--container-padding-x);
}

.mobile-menu__link {
  font-family: var(--font-alaska);
  font-size: 2rem;
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-tight);
  color: var(--color-white);
  text-decoration: none;
  transition: color 0.2s ease;
}

.mobile-menu__link:hover,
.mobile-menu__link:focus { color: var(--color-spark-blue); }

.mobile-menu__cta {
  display: inline-block;
  margin-top: var(--space-24);
  padding: var(--space-16) var(--space-32);
  background-color: var(--color-spark-blue);
  color: var(--color-white);
  font-family: var(--font-alaska);
  font-size: var(--text-label);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.mobile-menu__cta:hover { opacity: 0.85; }

/* Lock body scroll when menu open */
body.menu-open { overflow: hidden; }


/* ============================================================
   8. Hero
   ============================================================ */

.hero {
  /* Hero content sits at the bottom of the section */
  justify-content: flex-end;
  padding-bottom: 5rem;
}

.hero .text-element--long {
  max-width: 56.0625rem;
}

.hero .label {
  margin-bottom: var(--space-32);
}

.hero .display {
  margin-bottom: var(--space-32);
}

.hero .body-text {
  max-width: 620px;
  margin-bottom: var(--space-48);
}

.hero__ctas {
  display: flex;
  align-items: center;
  gap: var(--space-16);
}


/* ============================================================
   9. What We Do
   ============================================================ */


.service-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-64);
}

.service-column__header {
  margin-bottom: var(--space-48);
}

.service-column__header .heading-1 {
  margin-bottom: var(--space-16);
}

.service-list {
  display: flex;
  flex-direction: column;
}

.service-list__item {
  padding: var(--space-16) 0 0;
}

.service-list__item::after {
  content: '';
  display: block;
  height: 1px;
  width: 90%;
  background: rgba(255, 255, 255, 0.25);
  margin-top: var(--space-16);
}


/* ============================================================
   10. Section Layout Patterns
   ============================================================ */

/* Text (≈5 cols) left + Cards (≈7 cols) right */
.section-layout--text-cards {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: var(--space-80);
  align-items: start;
}

/* Text (≈5 cols) left + Image (≈7 cols) right */
.section-layout--text-image {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: var(--space-80);
  align-items: center;
}

.section-layout__text .heading-1 {
  margin-top: var(--space-8);
}

.section-layout__text .body-text {
  margin-top: var(--space-24);
}

/* Card label — shown inside the card above the title */
.card__label {
  display: block;
  font-family: var(--font-alaska);
  font-size: var(--text-label);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--color-spark-blue);
  margin-bottom: var(--space-16);
}

.card-grid__cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
}

/* --- Card (Where We Work) --- */
.card {
  background-color: var(--color-grey);
  padding: var(--space-32);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 18.1875rem;
}

.card__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
}

.card__title {
  font-family: var(--font-proxima);
  font-size: var(--text-h2);
  font-weight: var(--fw-medium);
  color: var(--color-black);
  line-height: 1.3;
  min-height: 3rem;
}

.card__desc {
  font-family: var(--font-proxima);
  font-size: var(--text-body-sm);
  font-weight: var(--fw-regular);
  color: var(--color-black);
  line-height: 1.55;
}

.card .line-small {
  margin-top: var(--space-32);
}

/* Card--principle (Our Principles) — slightly more height */
.card--principle {
  min-height: 19.125rem;
  padding: var(--space-32) var(--space-32) var(--space-48);
}


/* ============================================================
   11. Why Us
   ============================================================ */

.why-us .section-layout__text .heading-2 {
  margin-top: var(--space-8);
  color: rgba(255, 255, 255, 0.65);
}

/* Desktop: text(5) | gap-col(1) | graphic(6) — text left, graphic right */
.why-us .section-layout--text-image {
  grid-template-columns: 3fr 2fr 7fr;
  column-gap: 0;
}

.why-us .section-layout__text {
  grid-column: 1;
  grid-row: 1;
}

.why-us .section-layout__image {
  grid-column: 3;
  grid-row: 1;
}

.why-us__visual {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: var(--space-32);
}

.why-us__venn {
  width: 100%;
}


/* ============================================================
   12. Industries — Text + 3×3 logo grid
   ============================================================ */

/* Desktop: text(5) | gap-col(1) | logos(6) — top-aligned */
.industries .section-layout--text-image {
  grid-template-columns: 5fr 1fr 6fr;
  column-gap: 0;
  align-items: start;
}

.industries .section-layout__text {
  grid-column: 1;
  grid-row: 1;
}

.industries__logos {
  grid-column: 3;
  grid-row: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-40);
  align-items: center;
  justify-items: center;
  /* offset = label height (15px) + label margin-bottom (--space-24) */
  padding-top: calc(0.9375rem + var(--space-24));
}

.industries__logo {
  height: 4.25rem;
  width: auto;
  filter: brightness(0) invert(1); /* force pure #FFFFFF */
}


/* ============================================================
   12b. Where We Work — header + 4-card row
   ============================================================ */

.where-we-work__header {
  max-width: 40rem;
  margin-bottom: var(--space-48);
}

.where-we-work__header .heading-1 {
  margin-top: var(--space-8);
}

.where-we-work__row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-16);
}

/* Lock title height to 2 lines so content aligns across all cards */
.where-we-work__row .card__title,
.our-principles__row .card__title {
  min-height: calc(2 * 1.3 * var(--text-h2));
}

/* Sublabel inside cards — label typography, black at 50% opacity */
.card__sublabel {
  display: block;
  font-family: var(--font-alaska);
  font-size: var(--text-label);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  line-height: 1.4;
  color: rgba(0, 0, 0, 0.5);
  /* margin-top: var(--space-8);  */
  margin-bottom: var(--space-16);
}


/* ============================================================
   13. Our Principles — horizontal card row (full width)
   ============================================================ */

.our-principles__header {
  max-width: 40rem;
  margin-bottom: var(--space-48);
}

.our-principles__header .heading-1 {
  margin-top: var(--space-8);
}

.our-principles__header .body-text {
  margin-top: var(--space-24);
}

.our-principles__row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-16);
}

.our-principles__row .card {
  padding: var(--space-32) var(--space-24) var(--space-32);
}

.our-principles__row .card__content {
  gap: var(--space-32);
}


/* ============================================================
   14. Scroll-reveal animation
   ============================================================ */

.anim-fade-up {
  opacity: 0;
  transform: translateY(1.75rem);
  transition: opacity 0.55s ease, transform 0.55s ease;
  /* Stagger delay driven by --stagger custom property set inline */
  transition-delay: calc(var(--stagger, 0) * 90ms);
}

.anim-fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}


/* ============================================================
   14. Our Network
   ============================================================ */

.our-network .section-layout__text .heading-1 {
  margin-bottom: var(--space-24);
}

/* Desktop: text(5) | gap-col(1) | graphic(6) */
.our-network .section-layout--text-image {
  grid-template-columns: 5fr 1fr 6fr;
  column-gap: 0;
}

.our-network .section-layout__text {
  grid-column: 1;
  grid-row: 1;
}

.our-network .section-layout__image {
  grid-column: 3;
  grid-row: 1;
}

.our-network__image {
  width: 100%;
  max-width: none;
  display: block;
}


/* ============================================================
   15. Contact
   ============================================================ */

.contact__layout {
  display: grid;
  /* text(5) | empty(3) | divider(1px) | contact(4) — 12 col proportions */
  grid-template-columns: 5fr 3fr 1px 4fr;
  column-gap: 0;
  align-items: start;
}

.contact__text    { grid-column: 1; grid-row: 1; }
.contact__divider { grid-column: 3; grid-row: 1 / 3; }
.contact__details { grid-column: 4; grid-row: 1; }

.contact__text .heading-1 {
  margin-top: var(--space-8);
  margin-bottom: var(--space-24);
}

.contact__text .body-text {
  margin-bottom: 0;
}

.contact__divider {
  background-color: rgba(255, 255, 255, 0.8);
  align-self: stretch;
  min-height: 15rem;
}

.contact__details {
  /* offset = label height (0.9375rem) + label margin-bottom (--space-24) = 2.4375rem */
  padding-top: 3.4375rem;
  padding-left: var(--space-40);
}

.contact__cta {
  grid-column: 1;
  grid-row: 2;
  padding-top: var(--space-40);
}

.contact__name {
  font-family: var(--font-proxima);
  font-size: var(--text-body);
  font-weight: var(--fw-regular);
  color: var(--color-white);
  margin-bottom: var(--space-4);
}

.contact__role {
  font-family: var(--font-proxima);
  font-size: var(--text-body-sm);
  font-weight: var(--fw-regular);
  color: rgba(255, 255, 255, 1);
  margin-bottom: var(--space-32);
  display: block;
  padding: 0;
  margin: 1em 0 0;
}

.contact__info {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  margin-bottom: var(--space-24);
}

.contact__link {
  font-family: var(--font-proxima);
  font-size: var(--text-body-sm);
  font-weight: var(--fw-regular);
  color: var(--color-white);
  transition: color 0.2s ease;
}

.contact__link:hover { color: var(--color-spark-blue); }

.contact__address {
  font-family: var(--font-proxima);
  font-size: var(--text-body-sm);
  font-weight: var(--fw-regular);
  color: var(--color-white);
  line-height: 1.7;
  padding-bottom: 1em;
}

.contact__address-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact__address-link:hover { color: var(--color-spark-blue); }


/* ============================================================
   16. Join Our Team
   ============================================================ */

/* text(5) | empty(3) | illustration(3) | free(1) — col 12 stays empty */
.join-our-team__layout {
  display: grid;
  grid-template-columns: 5fr 2fr 5fr;
  column-gap: 0;
  align-items: start;
}

.join-our-team__text   { grid-column: 1; }
.join-our-team__visual { grid-column: 3; }

.join-our-team .heading-1 {
  margin-top: var(--space-8);
  margin-bottom: var(--space-24);
}

.join-our-team .body-text {
  margin-bottom: var(--space-40);
}

.join-our-team__visual {
  padding-left: var(--space-40);
}

.join-our-team__image {
  width: 90%;
  display: block;
  /* offset = label height (0.9375rem) + label margin-bottom (--space-24) = 2.4375rem */
  margin-top: 2.4375rem;
}


/* ============================================================
   17. Footer
   ============================================================ */

.footer {
  background-color: var(--color-black);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: var(--space-64);
  padding-bottom: var(--space-64);
  scroll-snap-align: start;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-48);
}

.footer__logo {
  height: 1.875rem;
  width: auto;
}

/* Main grid: legal(6fr) | gap(4fr) | contact(2fr) */
.footer__main-grid {
  display: grid;
  grid-template-columns: 6fr 4fr 2fr;
  column-gap: 0;
  align-items: start;
}

.footer__legal-section  { grid-column: 1; }
.footer__contact-section { grid-column: 3; }

/* Section title — "Privacy & legal" */
.footer__section-title {
  font-family: var(--font-proxima);
  font-size: var(--text-body);
  font-weight: var(--fw-regular);
  color: var(--color-white);
  margin-bottom: var(--space-24);
}

/* 3 equal link columns inside the legal section */
.footer__legal-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-32);
}

.footer__legal-col {
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
}

.footer__legal-link {
  font-family: var(--font-proxima);
  font-size: var(--text-body-sm);
  font-weight: var(--fw-regular);
  color: var(--color-white);
  line-height: 1.5;
  transition: color 0.2s ease;
}

.footer__legal-link:hover { color: var(--color-spark-blue); }

/* 50% opacity for parenthetical labels */
.footer__muted { opacity: 0.5; }

/* Contact + Careers + LinkedIn column */
.footer__contact-section {
  display: flex;
  flex-direction: column;
  gap: var(--space-32);
  /* align first link with "Impressum" — offset equals section-title height + margin-bottom */
  padding-top: 2.75rem;
}

.footer__primary-link {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  font-family: var(--font-proxima);
  font-size: var(--text-body);
  font-weight: var(--fw-regular);
  color: var(--color-white);
  transition: color 0.2s ease;
}

.footer__primary-link:hover { color: var(--color-spark-blue); }

.footer__primary-line {
  height: 2px;
  width: 100%;
  background-color: var(--color-spark-blue);
}

/* LinkedIn icon — always sits below Contact us / Careers, never beside them */
.footer__linkedin {
  display: inline-block;
  margin-top: var(--space-16);
  transition: opacity 0.2s ease;
  flex-basis: 100%;  /* forces own row when parent switches to flex-direction: row */
}

.footer__linkedin:hover { opacity: 0.7; }

.footer__linkedin-icon {
  width: 2.5rem;
  height: 2.5rem;
  display: block;
}

/* Copyright row */
.footer__copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: var(--space-32);
}

.footer__copyright-text {
  font-family: var(--font-proxima);
  font-size: var(--text-body-sm);
  font-weight: var(--fw-regular);
  color: rgba(255, 255, 255, 0.4);
}


/* ============================================================
   18. Responsive — Tablet (≤ 768px)
   ============================================================ */

@media (max-width: 68em) {
  :root {
    --container-padding-x: 2rem;
    --section-padding-y:   3.5rem;
    --text-display: 3rem;
    --text-h1:      2rem;
    --text-h2:      1.375rem;
    --text-body:    1rem;
    --text-body-sm: 0.875rem;
  }

  /* Disable full-screen snap on tablet/mobile — free scrolling */
  html {
    scroll-snap-type: none;
  }

  .section--dark {
    min-height: auto;
    scroll-snap-align: none;
  }

  .footer {
    scroll-snap-align: none;
  }

  .hero {
    padding-top: 5rem;
    min-height: calc(96vh - var(--nav-height));
  }

  /* Collapse side-by-side layouts to single column */
  .section-layout--text-cards,
  .section-layout--text-image {
    grid-template-columns: 1fr;
    gap: var(--space-40);
  }

  .service-columns {
    grid-template-columns: 1fr;
    gap: var(--space-40);
  }

  /* Industries tablet: single column — text above, logos below */
  .industries .section-layout--text-image {
    grid-template-columns: 1fr;
    column-gap: 0;
  }

  .industries .section-layout__text {
    grid-column: 1;
    grid-row: 1;
  }

  .industries__logos {
    grid-column: 1;
    grid-row: 2;
  }

  /* Our Network tablet: single column — text above, image below */
  .our-network .section-layout--text-image {
    grid-template-columns: 1fr;
    column-gap: 0;
  }

  .our-network .section-layout__text {
    grid-column: 1;
    grid-row: 1;
  }

  .our-network .section-layout__image {
    grid-column: 1;
    grid-row: 2;
  }

  .our-network__image {
    width: 75%;
    margin: 0 auto;
  }

  /* Tablet: single column — text above, graphic below */
  .why-us .section-layout--text-image {
    grid-template-columns: 1fr;
    column-gap: 0;
  }

  .why-us .section-layout__text {
    grid-column: 1;
    grid-row: 1;
  }

  .why-us .section-layout__image {
    grid-column: 1;
    grid-row: 2;
  }

  .why-us__visual {
    justify-content: flex-start;
    padding: 0;
  }

  .why-us__venn {
    width: 75%;
    margin: 0 auto;
  }

  /* Where We Work + Our Principles: tablet — 2×2 grid */
  .where-we-work__row,
  .our-principles__row {
    grid-template-columns: repeat(2, 1fr);
  }

  .our-principles__row .card {
    min-height: 14rem;
  }

  /* Contact ≤ 1200px: text(4) | gap(5) | divider(1px) | details(3) */
  .contact__layout {
    grid-template-columns: 4fr 5fr 1px 3fr;
  }

  .contact__text    { grid-column: 1; grid-row: 1; }
  .contact__divider { grid-column: 3; grid-row: 1 / 3; }
  .contact__details { grid-column: 4; grid-row: 1; padding-left: var(--space-16); }
  .contact__cta     { grid-column: 1; grid-row: 2; }

  .join-our-team__layout {
    grid-template-columns: 1fr;
  }

  .join-our-team__text   { grid-column: 1; grid-row: 1; }
  .join-our-team__visual { grid-column: 1; grid-row: 2; padding-left: 0; padding-top: var(--space-40); }

  .join-our-team__image {
    width: 75%;
    margin: 0 auto;
    max-width: 16rem;
  }

  /* Footer tablet: stack legal above contact */
  .footer__main-grid {
    grid-template-columns: 1fr;
    row-gap: var(--space-40);
  }

  .footer__legal-section,
  .footer__contact-section { grid-column: 1; }

  .footer__contact-section {
    flex-direction: row;
    flex-wrap: wrap;
    gap: var(--space-32);
    align-items: flex-start;
    padding-top: 0;
  }

  /* Hide the desktop links container; burger takes over */
  .nav-bar__links { display: none; }
  .nav-bar__burger { display: block; }
}


/* ============================================================
   19. Responsive — Mobile (≤ 480px)
   ============================================================ */

@media (max-width: 30em) {
  :root {
    --container-padding-x: 1.25rem;
    --section-padding-y:   3rem;
    --text-display: 2rem;
    --text-h1:      1.75rem;
    --text-h2:      1.25rem;
    --text-body:    0.9375rem;
    --text-body-sm: 0.8125rem;
  }

  .hero {
    padding-top: 3.75rem;
  }

  .hero__ctas {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  /* Industries mobile: single column, logos full width */
  .industries .section-layout--text-image {
    grid-template-columns: 1fr;
    column-gap: 0;
  }

  .industries .section-layout__text {
    grid-column: 1;
    grid-row: 1;
  }

  .industries__logos {
    grid-column: 1;
    grid-row: 2;
  }

  /* Our Network mobile: single column, image full width */
  .our-network .section-layout--text-image {
    grid-template-columns: 1fr;
    column-gap: 0;
  }

  .our-network .section-layout__text {
    grid-column: 1;
    grid-row: 1;
  }

  .our-network .section-layout__image {
    grid-column: 1;
    grid-row: 2;
  }

  .our-network__image {
    width: 100%;
  }

  /* Mobile: single column — text above, graphic below */
  .why-us .section-layout--text-image {
    grid-template-columns: 1fr;
    column-gap: 0;
  }

  .why-us .section-layout__text {
    grid-column: 1;
    grid-row: 1;
  }

  .why-us .section-layout__image {
    grid-column: 1;
    grid-row: 2;
  }

  .why-us__venn {
    width: 100%;
  }

  /* Where We Work: mobile — single column, natural height */
  .where-we-work__row {
    grid-template-columns: 1fr;
  }

  .where-we-work__row .card {
    min-height: unset;
  }

  /* Our Principles: mobile — single column */
  .our-principles__row {
    grid-template-columns: 1fr;
  }

  .card-grid__cards {
    grid-template-columns: 1fr;
  }

  /* Contact mobile: single column — text, details, then CTA */
  .contact__layout {
    grid-template-columns: 1fr;
  }

  .contact__text    { grid-column: 1; grid-row: 1; }
  .contact__details { grid-column: 1; grid-row: 2; padding-top: var(--space-32); padding-left: 0; }
  .contact__cta     { grid-column: 1; grid-row: 3; padding-top: var(--space-32); }
  .contact__divider { display: none; }

  /* Footer mobile: single column legal links */
  .footer__legal-cols {
    grid-template-columns: 1fr;
  }
}
