/* ============================================================================
   WESTMAN GROUP OF COMPANIES (WGOC) - STYLESHEET  (elevated edition)
   ----------------------------------------------------------------------------
   WHAT THIS FILE DOES:
     Holds ALL visual styling for the page: design tokens, ambient texture,
     typography, layout, header, timeline, brand tiles, footer, animations and
     the mobile responsive rules. No styling lives anywhere else.

   WHAT DATA IT CONTAINS:
     Every colour, font size, spacing value, shadow and animation duration is a
     CSS custom property in the CUSTOM PROPERTIES block (:root). Change a value
     once there and it updates everywhere.

   HOW TO MAKE COMMON EDITS:
     - Change a brand colour ......... edit the value in CUSTOM PROPERTIES.
     - Change the type scale ......... edit the --fs-* variables (they are fluid
                                       clamp() values, so they scale with screen).
     - Change spacing rhythm ......... edit the --space-* variables.
     - Change an animation speed ..... edit the --dur-* variables.
     - Tone the ambient glow / grain . edit --glow-* and .grain opacity.

   SECTION MAP (search for these headings):
     1. CUSTOM PROPERTIES
     2. RESET AND BASE
     3. AMBIENT TEXTURE (grain + glows)
     4. TYPOGRAPHY
     5. LAYOUT
     6. HEADER STYLES
     7. TIMELINE STYLES
     8. BRAND TILE STYLES
     9. FOOTER STYLES
    10. ANIMATIONS AND TRANSITIONS
    11. RESPONSIVE (MOBILE)
   ============================================================================ */


/* ============================================================================
   1. CUSTOM PROPERTIES
   ============================================================================ */
:root {
  /* --- Brand colours (unchanged palette) --------------------------------- */
  --navy: #003366;
  --navy-600: #0a4d8c;      /* lighter navy for gradients / glows            */
  --teal: #3AB3BD;
  --teal-300: #7fd6dd;      /* light teal for highlights                     */
  --red: #B22234;
  --combined-grey: #333333;

  /* --- Neutrals and text ------------------------------------------------- */
  --body-text: #2b2f36;
  --heading-ink: #1c2530;
  --muted: #5b6470;
  --muted-2: #9099a6;
  --hairline: #e7eaef;

  /* --- Surfaces ---------------------------------------------------------- */
  --bg: #F5F5F5;
  --bg-2: #eef1f4;          /* slightly cooler wash                          */
  --surface: #FFFFFF;
  --surface-tint: #fbfcfe;  /* faint cool tint for layered cards             */

  /* --- Tile bits --------------------------------------------------------- */
  --tag-bg: #f1f3f6;
  --tag-text: #4a5460;
  --tag-border: #e4e8ee;
  --arrow: #B6C4CD;

  /* --- Ambient glow (used behind hero / timeline) ------------------------ */
  --glow-teal: rgba(58, 179, 189, 0.22);
  --glow-navy: rgba(0, 51, 102, 0.16);

  /* --- Typography -------------------------------------------------------- */
  --font-sans: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;

  --w-regular: 400;
  --w-medium: 500;
  --w-semibold: 600;
  --w-bold: 700;

  /* Fluid type scale: min, preferred (viewport-based), max */
  --fs-h2: clamp(1.7rem, 1.1rem + 2.4vw, 2.4rem);       /* timeline heading  */
  --fs-brands: clamp(2rem, 1.3rem + 3vw, 2.9rem);        /* "Our brands"      */
  --fs-body: 1rem;
  --fs-lead: clamp(1rem, 0.96rem + 0.35vw, 1.15rem);     /* leads / blurbs    */
  --fs-year: 0.78rem;
  --fs-eventlabel: 1.02rem;
  --fs-absorbed: 0.75rem;
  --fs-tag: 0.75rem;
  --fs-marker: 0.68rem;
  --fs-footer-name: 1rem;
  --fs-footer-link: 0.9rem;

  --lh-body: 1.65;
  --tracking-tight: -0.02em;
  --tracking-wide: 0.02em;

  /* --- Spacing scale (8px rhythm, roomier at the top end) ---------------- */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --space-10: 128px;

  /* --- Radius ------------------------------------------------------------ */
  --radius-card: 16px;
  --radius-tile: 20px;
  --radius-pill: 999px;

  /* --- Layered shadow system --------------------------------------------- */
  --shadow-sm: 0 1px 2px rgba(10, 22, 40, 0.04), 0 2px 8px rgba(10, 22, 40, 0.05);
  --shadow-md: 0 6px 16px rgba(10, 22, 40, 0.06), 0 14px 34px rgba(10, 22, 40, 0.08);
  --shadow-lg: 0 10px 24px rgba(10, 22, 40, 0.08), 0 30px 70px rgba(10, 22, 40, 0.14);
  --shadow-glow-teal: 0 26px 60px -24px rgba(58, 179, 189, 0.5);
  --shadow-glow-navy: 0 26px 60px -24px rgba(0, 51, 102, 0.45);

  /* --- Motion ------------------------------------------------------------ */
  --dur-fast: 160ms;
  --dur: 320ms;
  --dur-slow: 720ms;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);   /* smooth "ease-out expo" feel   */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --stagger: 90ms;

  /* --- Layout ------------------------------------------------------------ */
  --container: 1180px;
  --z-grain: 60;
  --z-progress: 50;
}


/* ============================================================================
   2. RESET AND BASE
   ============================================================================ */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--body-text);
  font-family: var(--font-sans);
  font-weight: var(--w-regular);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1; /* optical kerning */
  overflow-x: hidden;
}

a { color: inherit; }
img, svg { display: block; }

h1, h2, p { margin: 0; }
h1, h2 { line-height: 1.1; letter-spacing: var(--tracking-tight); }

/* Shared reveal-on-scroll helper (toggled by tiles.js via IntersectionObserver) */
.js-reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity var(--dur-slow) var(--ease-out),
              transform var(--dur-slow) var(--ease-out);
  will-change: opacity, transform;
}
.js-reveal.is-revealed {
  opacity: 1;
  transform: none;
}


/* ============================================================================
   3. AMBIENT TEXTURE (grain + glows)
   Fine film grain over the whole page plus soft brand-colour light blooms
   behind the hero and timeline. All decorative, none interactive.
   ============================================================================ */
.grain {
  position: fixed;
  inset: 0;
  z-index: var(--z-grain);
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Reusable soft light bloom, placed with ::before/::after per section. */
.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
  z-index: 0;
}


/* ============================================================================
   4. TYPOGRAPHY
   Component-specific type lives with its component. Shared helpers here.
   ============================================================================ */
.eyebrow {
  font-size: 0.8rem;
  font-weight: var(--w-semibold);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--teal);
}


/* ============================================================================
   5. LAYOUT
   ============================================================================ */
.timeline,
.brands,
.footer {
  padding-left: var(--space-5);
  padding-right: var(--space-5);
}

.brands {
  position: relative;
  padding-top: var(--space-10);
  padding-bottom: var(--space-10);
}


/* ============================================================================
   6. HEADER STYLES
   Light hero: full-colour group logo, big, with an aurora bloom and grain.
   Content animates up on load.
   ============================================================================ */
.header {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 50% -20%, var(--surface) 0%, var(--surface-tint) 55%, var(--bg-2) 100%);
  border-top: 4px solid var(--navy);
  border-bottom: 1px solid var(--hairline);
  min-height: clamp(320px, 42vw, 460px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-10) var(--space-5);
  text-align: center;
}

/* Aurora blooms behind the logo (navy left, teal right). */
.header::before,
.header::after {
  content: "";
  position: absolute;
  width: 46vw;
  height: 46vw;
  max-width: 620px;
  max-height: 620px;
  border-radius: 50%;
  filter: blur(80px);
  z-index: 0;
  opacity: 0.9;
}
.header::before {
  top: -18%;
  left: -6%;
  background: radial-gradient(circle, var(--glow-navy), transparent 68%);
}
.header::after {
  bottom: -24%;
  right: -8%;
  background: radial-gradient(circle, var(--glow-teal), transparent 68%);
}

.header__inner {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.header__title { margin: 0; line-height: 0; }

/* The group logo, shown large and in full colour, floating in on load. */
.header__logo {
  display: block;
  height: clamp(96px, 15vw, 184px);
  width: auto;
  max-width: 100%;
  margin: 0 auto;
}

.header__descriptor {
  margin: var(--space-6) auto 0;
  max-width: 660px;
  color: var(--muted);
  font-weight: var(--w-regular);
  font-size: var(--fs-lead);
}


/* ============================================================================
   7. TIMELINE STYLES
   The centrepiece. Full-width, faint vertical wash, ambient bloom, animated
   drawn-on SVG tracks, glassy elevated cards and a flowing wave backdrop.
   ============================================================================ */
.timeline {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    linear-gradient(to bottom, var(--bg-2) 0%, var(--surface) 42%, var(--surface) 58%, var(--bg-2) 100%);
  padding-top: var(--space-10);
  padding-bottom: var(--space-10);
}

/* Soft central bloom so the river feels lit from within. */
.timeline::before {
  content: "";
  position: absolute;
  top: 18%;
  left: 50%;
  width: 70vw;
  max-width: 900px;
  height: 40vh;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, var(--glow-teal), transparent 70%);
  filter: blur(60px);
  opacity: 0.7;
  z-index: 0;
  pointer-events: none;
}

/* --- Timeline intro --- */
.timeline__intro {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 660px;
  margin: 0 auto var(--space-10);
}
.timeline__heading {
  font-weight: var(--w-bold);
  font-size: var(--fs-h2);
  color: var(--heading-ink);
  letter-spacing: var(--tracking-tight);
}
.timeline__subline {
  margin-top: var(--space-4);
  font-weight: var(--w-regular);
  font-size: var(--fs-lead);
  color: var(--muted);
}

/* --- The river container --- */
.timeline__inner {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin: 0 auto;
}

/* Two SVG track lines, behind the cards. */
.timeline__svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  z-index: 1;
}

/* Line styling: rounded 2.5px strokes with a soft luminous glow. Lengths and
   stroke-dashoffset are set by timeline.js so the lines DRAW as you scroll. */
.timeline__path {
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.timeline__path--westman {
  stroke: var(--navy);
  filter: drop-shadow(0 0 6px rgba(0, 51, 102, 0.28));
}
.timeline__path--reacon {
  stroke: var(--teal);
  filter: drop-shadow(0 0 6px rgba(58, 179, 189, 0.32));
}
.timeline__path--combined {
  stroke: url(#combinedGrad);       /* navy-to-teal gradient (merged group) */
  stroke-width: 3;
  filter: drop-shadow(0 0 6px rgba(58, 179, 189, 0.3));
}

/* --- Event rows --- */
.tl-event {
  position: absolute;
  left: 0;
  width: 100%;
  z-index: 2;
}

/* Connector: a hairline from card to dot. */
.tl-connector {
  position: absolute;
  height: 1.5px;
  transform: translateY(-50%);
  border-radius: 2px;
}
.tl-event--westman .tl-connector { background: linear-gradient(90deg, transparent, var(--navy)); }
.tl-event--reacon  .tl-connector { background: linear-gradient(90deg, var(--teal), transparent); }

/* --- Dots --- */
.tl-dot {
  position: absolute;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  z-index: 3;
}
.tl-dot--acquisition {
  width: 13px;
  height: 13px;
  border: 3px solid var(--surface);
}
.tl-event--westman .tl-dot--acquisition {
  background: var(--navy);
  box-shadow: 0 0 0 1px rgba(0, 51, 102, 0.25), 0 2px 8px rgba(0, 51, 102, 0.3);
}
.tl-event--reacon  .tl-dot--acquisition {
  background: var(--teal);
  box-shadow: 0 0 0 1px rgba(58, 179, 189, 0.25), 0 2px 8px rgba(58, 179, 189, 0.35);
}

.tl-dot--absorbed {
  width: 13px;
  height: 13px;
  background: var(--surface);
  border: 2px dashed;
}
.tl-event--westman .tl-dot--absorbed { border-color: var(--navy); }
.tl-event--reacon  .tl-dot--absorbed { border-color: var(--teal); }

.tl-dot--convergence {
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--teal) 100%);
  border: 3px solid var(--surface);
  box-shadow: 0 0 0 1px rgba(0, 51, 102, 0.15), 0 6px 20px rgba(0, 51, 102, 0.32);
}
.tl-dot--today {
  width: 18px;
  height: 18px;
  background: var(--combined-grey);
  border: 3px solid var(--surface);
  box-shadow: 0 4px 12px rgba(51, 51, 51, 0.28);
}

/* Convergence pulse ring, plays once when it scrolls in. */
.tl-dot--convergence::after {
  content: "";
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  border: 2px solid var(--teal);
  opacity: 0;
}
.tl-event.in-view .tl-dot--convergence::after {
  animation: pulse-ring 1400ms var(--ease-out) 1;
}

/* --- Cards: elevated, glassy, gradient accent edge --- */
.tl-card {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: linear-gradient(180deg, var(--surface), var(--surface-tint));
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  padding: var(--space-5) var(--space-6);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
/* Gradient accent bar down the leading edge. */
.tl-card::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 4px;
}
.tl-event--westman .tl-card::before { background: linear-gradient(var(--navy), var(--navy-600)); }
.tl-event--reacon  .tl-card::before { background: linear-gradient(var(--teal), var(--teal-300)); }

.tl-card--convergence::before { background: linear-gradient(var(--navy), var(--teal)); width: 5px; }
.tl-card--convergence {
  box-shadow: var(--shadow-lg), var(--shadow-glow-teal);
  border-color: rgba(58, 179, 189, 0.35);
}
.tl-card--today::before { background: var(--combined-grey); }

.tl-card__year {
  font-weight: var(--w-bold);
  font-size: var(--fs-year);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.tl-event--westman .tl-card__year { color: var(--navy); }
.tl-event--reacon  .tl-card__year { color: var(--teal); }
.tl-card--convergence .tl-card__year { color: var(--navy); }
.tl-card--today .tl-card__year { color: var(--combined-grey); }

.tl-card__label {
  margin-top: var(--space-2);
  font-weight: var(--w-medium);
  font-size: var(--fs-eventlabel);
  color: var(--heading-ink);
  line-height: 1.45;
}
.tl-card__absorbed {
  margin-top: var(--space-3);
  font-style: italic;
  font-size: var(--fs-absorbed);
  color: var(--muted-2);
}
.tl-card__subline {
  margin-top: var(--space-3);
  font-size: var(--fs-absorbed);
  color: var(--muted);
}

/* --- Year waypoint markers --- */
.tl-marker {
  position: absolute;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: var(--muted-2);
  font-size: var(--fs-marker);
  font-weight: var(--w-semibold);
  letter-spacing: var(--tracking-wide);
  padding: 3px var(--space-3);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-pill);
  z-index: 2;
  white-space: nowrap;
}


/* --- Flow band: animated wave backdrop, overlaid at the base of the timeline
       behind the tracks and cards. --- */
.flowband {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  z-index: 0;
  pointer-events: none;
}
.flowband__svg {
  display: block;
  width: 100%;
  height: clamp(220px, 32vw, 420px);
  opacity: 0.5;
}


/* ============================================================================
   PROGRESS BAR
   Fixed, glassy strip; visible only while the timeline is in view.
   ============================================================================ */
.progress {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 52px;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  border-top: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 -6px 24px rgba(10, 22, 40, 0.06);
  z-index: var(--z-progress);
  opacity: 0;
  visibility: hidden;
  transform: translateY(100%);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease),
              visibility var(--dur);
}
.progress.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.progress__fill {
  position: absolute;
  top: 50%;
  left: 0;
  height: 4px;
  width: 0;
  transform: translateY(-50%);
  border-radius: 0 4px 4px 0;
  background: linear-gradient(90deg, var(--navy), var(--teal));
  box-shadow: 0 0 12px rgba(58, 179, 189, 0.5);
  transition: width 120ms linear;
}
.progress__dots {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 0;
  transform: translateY(-50%);
}
.progress-dot {
  position: absolute;
  top: 50%;
  width: 11px;
  height: 11px;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
/* Larger invisible hit area for comfortable tapping (touch target). */
.progress-dot::after {
  content: "";
  position: absolute;
  inset: -14px;
}
.progress-dot--westman { background: var(--navy); }
.progress-dot--reacon  { background: var(--teal); }
.progress-dot--today   { background: var(--combined-grey); }
.progress-dot--convergence {
  width: 17px;
  height: 17px;
  background: linear-gradient(90deg, var(--navy) 0 50%, var(--teal) 50% 100%);
}
.progress-dot:hover { transform: translate(-50%, -50%) scale(1.25); }
.progress-dot.is-active {
  transform: translate(-50%, -50%) scale(1.55);
  box-shadow: 0 0 0 4px rgba(58, 179, 189, 0.25), 0 2px 10px rgba(10, 22, 40, 0.25);
}
.progress-dot:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
}


/* ============================================================================
   8. BRAND TILE STYLES
   Big, tactile portfolio cards with scaled logos, gradient accents, a sheen
   sweep and a lift-with-glow on hover. Reveal on scroll with a stagger.
   ============================================================================ */
.brands::before {  /* soft bloom top-centre */
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 60vw;
  max-width: 760px;
  height: 320px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, var(--glow-navy), transparent 72%);
  filter: blur(70px);
  z-index: 0;
  pointer-events: none;
}

.brands__intro {
  position: relative;
  z-index: 1;
  max-width: 780px;
  margin: 0 auto var(--space-9);
  text-align: center;
}
.brands__heading {
  font-weight: var(--w-bold);
  font-size: var(--fs-brands);
  letter-spacing: var(--tracking-tight);
  color: var(--heading-ink);
  margin-bottom: var(--space-4);
}
.brands__blurb {
  font-weight: var(--w-regular);
  font-size: var(--fs-lead);
  line-height: var(--lh-body);
  color: var(--muted);
}

.brands__grid {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-5);
}

/* Each tile is a full card link. Bigger footprint, richer surface. */
.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 320px;
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-tint) 100%);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-tile);
  padding: var(--space-7) var(--space-6) var(--space-6);
  text-decoration: none;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  isolation: isolate;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}
/* Diagonal sheen that sweeps across on hover. */
.tile::after {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 55%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: skewX(-16deg);
  opacity: 0;
  transition: left var(--dur-slow) var(--ease), opacity var(--dur) var(--ease);
  pointer-events: none;
  z-index: 2;
}
.tile:hover::after { left: 115%; opacity: 1; }

/* Accent bar across the top edge (thickens on hover). */
.tile__accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  z-index: 1;
  transition: height var(--dur) var(--ease);
}
.tile__accent--navy { background: linear-gradient(90deg, var(--navy), var(--red)); }
.tile__accent--teal { background: linear-gradient(90deg, var(--teal), var(--teal-300)); }

/* Logo band: bigger, so logos read large. Wide logos use the full tile width. */
.tile__logo {
  display: flex;
  align-items: center;
  height: 92px;
  /* Pull the band out to near the tile edges so wide logos render large. */
  margin-left: calc(-1 * var(--space-5));
  margin-right: calc(-1 * var(--space-5));
  padding-left: var(--space-2);
  padding-right: var(--space-2);
}
.tile__logo img {
  max-height: 70px;
  max-width: 100%;
  width: auto;
  height: auto;
}
.tile__logo--dark {
  align-self: flex-start;
  height: auto;
  padding: var(--space-3) var(--space-4);
  background: var(--navy);
  border-radius: 10px;
}
.tile__logo--dark img { max-height: 52px; }

.tile__role {
  margin-top: var(--space-3);
  font-weight: var(--w-regular);
  font-size: 0.98rem;
  line-height: 1.5;
  color: var(--muted);
}

.tile__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-5);
}
.tile__tag {
  background: var(--tag-bg);
  border: 1px solid var(--tag-border);
  color: var(--tag-text);
  font-size: var(--fs-tag);
  font-weight: var(--w-medium);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-pill);
  white-space: nowrap;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}

.tile__more {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: var(--space-6);
  align-self: flex-end;
  font-size: var(--fs-tag);
  font-weight: var(--w-semibold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--arrow);
  transition: color var(--dur) var(--ease);
}
.tile__more svg { transition: transform var(--dur) var(--ease); }

/* Hover: lift, glow, brighten accent, animate arrow, warm the pills. */
.tile:hover {
  transform: translateY(-8px);
  border-color: transparent;
}
.tile--navy:hover { box-shadow: var(--shadow-lg), var(--shadow-glow-navy); }
.tile--teal:hover { box-shadow: var(--shadow-lg), var(--shadow-glow-teal); }
.tile:hover .tile__accent { height: 7px; }
.tile:hover .tile__more svg { transform: translateX(5px); }
.tile--navy:hover .tile__more { color: var(--navy); }
.tile--teal:hover .tile__more { color: var(--teal); }
.tile--teal:hover .tile__tag { border-color: rgba(58, 179, 189, 0.35); color: var(--navy); }
.tile--navy:hover .tile__tag { border-color: rgba(0, 51, 102, 0.25); color: var(--navy); }

.tile:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
}

/* Stagger the tile reveal (index set inline by tiles.js). */
.tile.js-reveal { transition-delay: calc(var(--i, 0) * var(--stagger)); }


/* ============================================================================
   9. FOOTER STYLES
   ============================================================================ */
.footer {
  position: relative;
  border-top: 1px solid var(--hairline);
  background: linear-gradient(to bottom, var(--bg), var(--bg-2));
  padding-top: var(--space-9);
  padding-bottom: var(--space-9);
  text-align: center;
}
.footer__name { margin: 0; line-height: 0; }
.footer__logo {
  display: block;
  height: clamp(52px, 8vw, 72px);
  width: auto;
  margin: 0 auto;
}
.footer__contact {
  margin-top: var(--space-5);
  font-size: var(--fs-footer-link);
  color: var(--muted);
}
.footer__link {
  position: relative;
  color: var(--muted);
  font-weight: var(--w-medium);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease);
}
/* Animated underline that grows from the centre. */
.footer__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 1.5px;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--dur) var(--ease);
}
.footer__link:hover { color: var(--navy); }
.footer__link:hover::after { transform: scaleX(1); }
.footer__sep { margin: 0 var(--space-3); color: var(--muted-2); }
.footer__address {
  margin-top: var(--space-3);
  font-size: var(--fs-footer-link);
  color: var(--muted-2);
}


/* ============================================================================
   10. ANIMATIONS AND TRANSITIONS
   ============================================================================ */

/* Card entrance: fade + slide toward the line (stagger set inline by JS). */
.tl-event .tl-card { opacity: 0; }
.tl-event--westman .tl-card { transform: translate(-56px, -50%); }
.tl-event--reacon  .tl-card { transform: translate(56px, -50%); }
/* Merge cards are top-anchored (their `top` is set inline by timeline.js so
   they sit below their dots), so they only need horizontal centring plus the
   reveal slide, not the -50% vertical centring the side cards use. */
.tl-event--merge   .tl-card { transform: translateX(-50%) translateY(30px); }

.tl-event.in-view .tl-card { opacity: 1; }
.tl-event--westman.in-view .tl-card,
.tl-event--reacon.in-view  .tl-card { transform: translate(0, -50%); }
.tl-event--merge.in-view   .tl-card { transform: translateX(-50%) translateY(0); }

.tl-event .tl-card {
  transition: opacity var(--dur-slow) var(--ease-out),
              transform var(--dur-slow) var(--ease-out),
              box-shadow var(--dur) var(--ease);
}

/* Connectors and dots fade in with their card. */
.tl-connector, .tl-dot {
  opacity: 0;
  transition: opacity var(--dur-slow) var(--ease-out);
}
.tl-event.in-view .tl-connector,
.tl-event.in-view .tl-dot { opacity: 1; }

@keyframes rise-in {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: none; }
}
@keyframes pulse-ring {
  0%   { opacity: 0.7; transform: scale(0.6); }
  100% { opacity: 0;   transform: scale(2.6); }
}

/* Reduced motion: reveal everything statically, no movement. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js-reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .header__logo, .header__descriptor { animation: none !important; }
  .tl-event .tl-card, .tl-connector, .tl-dot {
    opacity: 1 !important;
    transition: none !important;
  }
  .tl-event--westman .tl-card,
  .tl-event--reacon  .tl-card { transform: translate(0, -50%) !important; }
  .tl-event--merge   .tl-card { transform: translateX(-50%) !important; }
  .tl-dot--convergence::after { animation: none !important; }
  .tile:hover { transform: none; }
  .tile::after { display: none; }
  /* Flow waves (SMIL) are paused from timeline.js under reduced motion. */
}


/* ============================================================================
   11. RESPONSIVE (MOBILE)
   Single central timeline line with alternating cards; two-column brand grid
   with the fifth tile full width. Touch targets kept generous.
   ============================================================================ */
@media (max-width: 768px) {
  :root {
    --container: 100%;
  }

  .timeline,
  .brands {
    padding-top: var(--space-9);
    padding-bottom: var(--space-9);
  }

  .tl-card {
    padding: var(--space-4) var(--space-5);
  }
  .tl-card__label { font-size: 0.98rem; }

  /* Brand tiles: two columns, fifth spans full width, comfy tap sizing. */
  .brands__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
  }
  .brands__grid .tile:nth-child(5) { grid-column: 1 / -1; }
  .tile {
    min-height: 260px;
    padding: var(--space-6) var(--space-5) var(--space-5);
  }
  .tile__logo { height: 66px; }
  .tile__logo img { max-height: 50px; }

  /* Calmer blooms on small screens (perf + legibility). */
  .header::before, .header::after { filter: blur(60px); opacity: 0.7; }
  .grain { opacity: 0.028; }
}

@media (hover: none) {
  /* No sheen sweep on touch devices (there is no hover to trigger it). */
  .tile::after { display: none; }
}
