/* -------------------------------------------------------
   ROOT VARIABLES
------------------------------------------------------- */
:root {
  --maxw: 90rem;
  --header-h: 80px;
  --accent: 123, 116, 255; /* RGB version of #7b74ff */
  --ink: #111;
  --text: #222;
  --muted: #666;
  --bg: #fff;
  --band: #f7f7f7;
}


/* -------------------------------------------------------
   RESET
------------------------------------------------------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  width:100vw;
  overflow-x: hidden;
  text-align:left;
}

html { overflow-y: hidden; }
body { overflow-y: visible; }

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

::-webkit-scrollbar {
  width: 0px;
}


/* -------------------------------------------------------
   TYPOGRAPHY
------------------------------------------------------- */
body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  width:100vw;
  position:absolute;
}

h1, h2,  h5 {
  font-family: 'Manrope', 'Inter', system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
}

h1 { font-size: clamp(2rem, 8vw, 5rem); }
h2 { 
  font-size: clamp(1.75rem, 5vw, 4rem);
  margin-bottom: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -1.5px;
  }
h4 { 
  font-family: 'Noto Serif', serif;
  font-style: italic;
  font-weight: 800;
  letter-spacing: 0.03em;
  font-size: clamp(1.3rem, 2vw, 1.8rem);
  }
h5 { font-size: clamp(0.8rem, 1.8vw, 1rem);}
h6 { font-size: clamp(0.7rem, 1.4vw, 0.9rem);margin-bottom: clamp(0.3rem, 0.5vw, 0.5rem);font-weight:500}


p, li {
  font-size: clamp(1rem, 1.2vw, 1.125rem);
}

/* Base marker style */
.marker-highlight {
  position: relative;
  display: inline-block; /* <-- makes the background a single block */
  padding: 0 .2em;
}

/* Sliding background */
.marker-highlight::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(var(--accent), 0.3);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.9s ease;
  z-index: -1;
}

/* Activated state */
.marker-highlight.marker-active::before {
  transform: scaleX(1);
}


.tagline,
.sub,
.eyebrow,
.small-label {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  opacity: 0.85;
  font-weight: 600;
}

.small { font-size: .95rem; }
.muted { color: var(--muted); }
.center { text-align: center; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.25rem); }


/* -------------------------------------------------------
   SECTIONS GLOBAL
------------------------------------------------------- */
/* Highest = hero */
.section:nth-of-type(1) { z-index: 120; }

/* Then decreasing for sections 2–12 */
#intro { z-index: 119; }
#promise { z-index: 1; }
#imagine { z-index: 117; }
#facts { z-index: 1; }
#support { z-index: 118; }
#stories { z-index: 1; }
#lab { z-index: 119; }
#lab-video { z-index: 1; }
#lab-items { z-index: 120; }
#create { z-index: 1; }
#paths { z-index: 0; }
#contact { z-index: 117; }

/* Temporary debugging backgrounds for section boundaries */
#intro { background: #fff; }
#promise { background: #f4f4f4; }
#imagine { background: #fff; }
#facts { background: #f4f4f4; }
#support { background: #fff; }
#stories { background: #f4f4f4; }
#lab { background: #fff; }
#lab-video { background: #f4f4f4; }
#lab-items { background: #fff; }
#create { background: rgba(255,255,255,0); }
#paths { background: rgba(255,255,255,0.6); }
#contact { background: #fff; }

.section {
  width: 100%;
  min-height: auto;
  position: relative;
  padding: clamp(6rem, 8vw, 10rem) 0; /* nicer vertical spacing */
  scroll-margin-top: var(--header-h);
  box-shadow: 0 0px 30px rgba(0,0,0,0.2);
  z-index: 1;
}

.section .content {
  width: 100%;
  max-width: var(--maxw);
  margin: auto; 
  padding-left:20px;
  padding-right:20px;   
}

.section.hero {
  min-height: 100vh;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fullscreen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.centered .content {
  max-width: 900px;
  text-align: center;
}

.xxl {
  font-size: clamp(2rem, 5.8vw, 3.75rem);
}


/* -------------------------------------------------------
   HERO SECTION
------------------------------------------------------- */
.section.hero {
  background: url('images/hero.jpg') center/cover no-repeat;
  overflow: hidden;
}

.section.hero h1 {
  color: #fff;
  text-shadow: 0 2px 6px rgba(0,0,0,.5);
}

.section.hero .tagline {
  font-size: clamp(0.7rem, 1.1vw, 0.95rem);
  font-weight: 400;
  opacity: .9;
}

.section.hero .sub {
  color: #fff;
  opacity: .8;
  margin-top: .25rem;
}

/* Hero video */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: brightness(0.8);
}


/* Logo in hero */
.hero-logo {
  width: clamp(160px, 30vw, 360px);
  height: auto;
  margin-bottom: 1.25rem;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.2));
}

/* Hero overlay */
.section.hero .overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.20) 0%,
    rgba(0,0,0,0.30) 35%,
    rgba(0,0,0,0.40) 100%
  );
}

/* Hero text wrapper */
.section.hero .content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  text-shadow: 0 2px 6px rgba(0,0,0,0.6);
}

/* Location label bottom of hero */
.bottom-location {
  position: absolute;
  bottom: 3vh;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  font-family: 'Noto Serif', serif;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  color: #fff;
  text-shadow: 0 2px 6px rgba(0,0,0,0.6);
  letter-spacing: 0.04em;
  text-transform: none !important;  /* force normal case */
  min-width:300px;
  width:auto;
  text-align:center;
}

/* -------------------------------------------------------
   SECTION - INTRO
------------------------------------------------------- */
.client-logos {
  margin-top: 2.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(2rem, 4vw, 4rem);
  flex-wrap: wrap;
  opacity: 0.85;
}

.client-logos img {
  max-height: clamp(20px, 3vw, 30px);
  max-width: clamp(180px, 20vw, 200px);;
  filter: grayscale(1) brightness(0.5); /* soft grey */
  transition: transform 0.25s ease, filter 0.25s ease;
}

/* Slight zoom + brighten on hover */
.client-logos img:hover {
  transform: scale(1.08);
  filter: grayscale(0.2) brightness(0.4);
}


/* -------------------------------------------------------
   SECTION - APPROACH — FULL PARALLAX BACKGROUND (CROSS-BROWSER)
------------------------------------------------------- */
.lamp-row{
  width: 100%;                 /* full screen */
  margin-left:auto;/* break out of .content */
  margin-top: clamp(2rem, 4vw, 3rem);

  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: end;
  gap: clamp(1rem, 2vw, 2rem);

  padding: 0 clamp(1rem, 4vw, 3rem);
}

.lamp-row .lamp{
  width: 100%;
  height: auto;
  max-height: 360px;            /* adjust */
  object-fit: contain;

  opacity: 0;
  transition: opacity 600ms ease;
  filter: drop-shadow(0 12px 28px rgba(0,0,0,0.12));
}

/* when revealed */
.lamp-row .lamp.in{
  opacity: 1;
}


/* BASE SECTION */
.section.approach {
  position: relative;
  overflow: hidden;
}

.parallax-bg {
  position: absolute;
  top: -50vh;
  left: 0;
  right: 0;
  height: 200%; /* allows enough room to move */
  background: url('images/world.jpg') 70% center / cover no-repeat;
  opacity:0.2;
  transform: translateY(0);
  will-change: transform;
  z-index: 0;
  pointer-events: none;
  background-attachment: scroll !important;
}



/* CONTENT */
.approach-inner {
  position: relative;
  z-index: 2;
  color: var(--ink);
  text-align: center;
  margin:auto;
}

/* Typography */
.section.approach h3 {
  margin-bottom: 1.2rem;
  color: var(--ink);
}

.section.approach p {
  color: var(--ink);
  font-size: clamp(1rem, 1.2vw, 1.125rem);
  line-height: 1.55;
  max-width: 60ch;
}



/* -------------------------------------------------------
   SECTION - CHALLENGE 
------------------------------------------------------- */

.challenge-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}



/* Typography */
.section.challenge h4 {
  margin-bottom: 1.2rem;
  color: var(--ink);
}

.section.challenge p {
  color: var(--ink);
  font-size: clamp(1rem, 1.2vw, 1.125rem);
  line-height: 1.55;
  max-width: 60ch;
}

.challenge-list li {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center; /* centers icon + text together */
  gap: 12px;               /* space between icon and text */
  text-align: center;
  position: relative;
}

.challenge-list li::before {
  content: "";
  width: 30px;
  height: 30px;
  margin-top:-15px;
  flex-shrink: 0;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  position:relative;
}

/* Icon for 1st item */
.challenge-list.first-list li:nth-child(1)::before {
  background: url('assets/calendar-outline.svg') no-repeat center;
  background-size: contain;
}

/* Icon for 2nd item */
.challenge-list.first-list li:nth-child(2)::before {
  background: url('assets/cancel-outline.svg') no-repeat center;

  background-size: contain;
}

/* Icon for 3rd item */
.challenge-list.first-list li:nth-child(3)::before {
  background: url('assets/heart-outline.svg') no-repeat center;

  background-size: contain;
}

/* Icon for 1st item */
.challenge-list.second-list li:nth-child(1)::before {
  background: url('assets/history-solid.svg') no-repeat center;

  background-size: contain;
}

/* Icon for 2nd item */
.challenge-list.second-list li:nth-child(2)::before {
  background: url('assets/comment-block-outline.svg') no-repeat center;

  background-size: contain;
}

/* Icon for 3rd item */
.challenge-list.second-list li:nth-child(3)::before {
  background: url('assets/heart-off-outline.svg') no-repeat center;

  background-size: contain;
}



/* -------------------------------------------------------
   SECTION - PROMISE
------------------------------------------------------- */
#promise .content{
  position:relative;
}

/* Ensure the content side behaves normally */
.promise-text {
  position: relative;
  z-index: 2;
  width:50%;
  margin:auto;
  width: 100%;
  }

  .promise-image {
    position: relative;
    margin-top: clamp(-4rem, -6vw, -8rem);
    left: 50%;
    transform: translateX(-50%) translateY( clamp(6rem, 8vw, 10rem));
    width: 100%;
    max-width:300px;
    background-position: center bottom;
    background-size: contain;
    aspect-ratio: 1 / 1;
    z-index: 1;
    pointer-events: none;
      display:flex;
  background: url('assets/jacky-law.png') bottom left / contain no-repeat;
  }

/* -------------------------------------------------------
   SECTION – IMAGINE
------------------------------------------------------- */

.imagine-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 80px;
  margin-top: 2rem;
}

.imagine-item {
  opacity: 0;
  transition: opacity 0.6s ease;
}

.imagine-item.reveal {
  opacity: 1;
}

/* Square image */
.imagine-image-wrap {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(0,0,0,0.15);
}

.imagine-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

/* White text block */
.imagine-text {
  padding-top: clamp(2rem, 3vw, 3rem);
  text-align: justify;
  text-align-last: center;
}

.imagine-text h4 {
  margin-bottom: 0.75rem;
}

.imagine-text p {
  line-height: 1.55;
  margin: 0;
}


/* -------------------------------------------------------
   SECTION - FACTS 
------------------------------------------------------- */

.stats .grid {
  display: grid;
  grid-template-columns: repeat(6,1fr);
  gap: clamp(1rem, 3vw, 2rem);
  margin-top: 4rem;
  margin-bottom: 2rem;
}

.stat {
  text-align: center;
  transition: transform 0.2s ease;
}


.stat .big {
  font-size: clamp(1.8rem, 3.5vw, 2rem);
  font-weight: 700;
  background-color: rgba(var(--accent),0.2);
  padding-left:1rem;
  padding-right:1rem;
  margin-bottom: 1rem;
  white-space:nowrap;
  width:fit-content;
  margin:auto;
}

.stat .small {
  font-size: 0.95rem;
  color: var(--ink);
  line-height: 1.4;
  font-weight:500;
  font-size:clamp(1.1rem, 2vw, 1.3rem);
  margin-top:1rem;
}

/* -------------------------------------------------------
   SECTION - SUPPORT 
------------------------------------------------------- */

/* TRI / TEAM */
.tri .three {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 80px;
  margin-top: 2rem;
  padding:0.5rem;
}

.three h4{
  margin-bottom:1rem;
}

.team-portraits {
  width:70%;
  margin-left:15%;
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 per row */
  gap: 1rem;
  margin-top:2rem;
  justify-items: center;
}

.team-portraits img{
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 2px 5px 8px rgba(0,0,0,0.3);
  background-color:rgba(235,235,235,1);
}

.team-portraits img:hover{
  background-color:rgba(var(--accent),0.2);
}

.center-last {
  grid-template-columns: 1fr 1fr;
  justify-items: center;
}

.center-last div:last-child:nth-child(odd) {
  grid-column: span 2;
  width:calc( 50% - 0.5rem);
  margin-top:-1.5rem;
}
.portrait-with-tooltip {
  position: relative;
  display: inline-block;
}

.speech-tooltip {
  position: absolute;
  bottom: calc(100% + 6px); /* Above the image */
  width:auto;
  white-space:nowrap;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255,255,255,0.5);
  color: black;
  padding: 0.5rem 0.75rem;
  font-size: 0.75rem;
  opacity: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  pointer-events: none;
  transition: opacity 0.2s ease-in-out;
}

/* Show tooltip on hover */
.portrait-with-tooltip:hover .speech-tooltip {
  opacity: 1;
}

/* Tooltip arrow */
.speech-tooltip::after {
  content: "";
  position: absolute;
  top: 100%; /* bottom of tooltip */
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: rgba(255,255,255,0.8) transparent transparent transparent;
}

.tri p{
  text-align:justify;
  text-align-last:center;
}


/* -------------------------------------------------------
   STORIES – ALTERNATING LEFT/RIGHT LAYOUT
------------------------------------------------------- */

/* Base hidden state */
.story-row {
  opacity: 0;
  transform: translateX(0); /* set individually per class */
  transition: transform 0.9s ease-out, opacity 0.9s ease-out;
  will-change: transform, opacity;
}

/* Start positions */
.story-left {
  transform: translateX(-60px);
}

.story-right {
  transform: translateX(60px);
}

/* When revealed */
.story-row.reveal {
  opacity: 1;
  transform: translateX(0);
}




.stories .content {
  text-align: justify;

  text-align-last:center;
}

.story-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
  max-width: var(--maxw);
  margin: auto;
}

.stories-list {
  display: flex;
  flex-direction: column;
  gap: clamp(3rem, 6vw, 6rem);
  margin-top: 3rem;
}


/* EVEN rows reversed */
.story-row.even {
  grid-template-columns: 1fr 1fr;
}
.story-row.even .story-image-wrap {
  order: 2;
}
.story-row.even .story-text-wrap {
  order: 1;
}

.story-image-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  box-shadow: 3px 8px 18px rgba(0,0,0,0.20);
}


/* Base state of the image */
.story-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
  display: block;
}


/* Text block */
.story-text-wrap {
  display: flex;
  justify-content:flex-start;
  flex-direction: column;
  gap: 1.25rem;
}

.story-text-wrap p {
  color: #222;
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  line-height: 1.55;
}

/* Large logo on text side */
.story-logo-large {
  max-width: 300px;     /* controls horizontal space */
  max-height: 50px;     /* controls vertical space */
  width: auto;
  height: auto;
  object-fit: contain;  /* prevents distortion */
  opacity: 0.9;
  filter: brightness(0) saturate(100%); /* force logo to black */
  padding-top:10px;
  display:block;
  margin-right:auto;
  margin-left:auto;
  object-position: center;
  }


/* Base blockquote */
.stories blockquote {
  margin: 0 0 0 0;
  padding: 0 0 0 0;
  font-weight: 700;
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  line-height: 1.35; 
  color:#111;
  border: none !important;
  background: none !important;
  position: relative; /* required for quotes */
  font-family: 'Noto Serif', serif;
  font-style: italic;
  font-weight: 800;
  letter-spacing: 0.03em;
  font-size: clamp(1.3rem, 2vw, 1.8rem);
}

/* Opening decorative quote */
.stories blockquote::before {
  content: "“";
  position: relative;
  left: 0;
  top: 0;
  font-family: 'Noto Serif', serif;
  font-style: italic;
  font-size: 1.2em;
  font-weight: 700;
  color:#111;
  line-height: 1;
  pointer-events: none;
}

/* Closing quote attached to last word using span::after */
.stories blockquote span {
  position: relative;
  display: inline;
}


.stories blockquote span::after {
  content: "”";
  position: relative;
  bottom: 0;
  font-family: 'Noto Serif', serif;
  font-style: italic;
  font-size: 1.2em;
  font-weight: 700;
  color:#111;
  line-height: 1;
  pointer-events: none;
}


/* -------------------------------------------------------
   SECTION - LAB
------------------------------------------------------- */

.lab {
  padding-left: 0;
  padding-right: 0;
}


/* Title spacing */
.lab .content {
  text-align: center;
}

.lab-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 20px;
}

/* Each tile */
.lab-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1/1;
  background: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0;
  border: none;
  opacity: 0;
  transition: opacity 0.6s ease;
  box-shadow: 3px 8px 18px rgba(0,0,0,0.20);
  
}

/* Active (revealed) state */
.lab-item.reveal {
  opacity: 1;
}


/* Background image */
.lab-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Overlay (text only) */
.lab-overlay {
  position: absolute;
  inset: 0;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  transition: opacity .35s ease, background .35s ease;
  background: rgba(255,255,255,0);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  z-index: 2;
  text-align:justify;
  text-align-last:center;
  font-size:10px;
}

.lab-overlay p{
  font-size:clamp(0.8rem, 1vw, 1rem) !important;
}

/* On hover: fade in overlay */
.lab-item:hover .lab-overlay {
  opacity: 1;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Overlay text */
.lab-text {
  font-size: clamp(0.9rem, 1.4vw, 1.1rem);
  line-height: 1.5;
  max-width:900px;
  text-align:justify;

  text-align-last:center;
  margin:auto;
}

.lab-hero{
  position: relative;
  height: 100vh;              /* scroll length controlling the zoom */
  overflow: hidden;
  scroll:none;
}

.lab-hero-img{
  position: fixed;
  top: 0;
  left:0;
  width: 100%;
  height: 100vh;
  object-fit: cover;
  transform: scale(1);
  will-change: transform;
  z-index:0;
}

  .section.lab-hero{
     margin:0;
     padding:0 
  }

.lab-video{
  padding:0;
}
/* -------------------------------------------------------
   SECTION - PATHS
------------------------------------------------------- */

.path-item{
    transition: opacity 0.6s ease;
    box-shadow: 0 8px 22px rgba(0,0,0,0.15);
    height:auto;
    background: #fff;
    display:block;
    opacity:0;
    z-index:-2;
}

.path-item.reveal{
    opacity:1;
}

#paths.section{
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.paths-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1rem, 2vw, 2rem);
  margin-top: 2rem;
}

/* Square image */
.path-image-wrap {
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
}

.path-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}


/* White text block touching image */
.path-text {
  padding: clamp(2rem, 3vw, 3rem);
  margin-top: 0;        /* touches the image */
  border: none;
  border-radius: 0;     /* no radius */
  text-align:justify;
  text-align-last:left;
}

.path-text h4 {
  margin-bottom: 0.75rem;
}

.path-text p {
  line-height: 1.55;
}

/* Responsive */
@media (max-width: 900px) {
  .paths-grid {
    grid-template-columns: 1fr;
  }
}



/* -------------------------------------------------------
   LAYOUT UTILITIES (split, two-col, tri, etc.)
------------------------------------------------------- */
.split .content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1rem,3vw,3rem);
  align-items: center;
}

.split .placeholder {
  min-height: 40vh;
  border: 1px dashed #ddd;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
}

.two-col .cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1rem,3vw,3rem);
  margin-top: 1rem;
}


.band {
  background: var(--band);
}

.bullets {
  margin-top: .75rem;
  display: grid;
  gap: .35rem;
}

.highlight {
  background: rgba(123,116,255,.18);
  display: inline-block;
  padding: .15rem .4rem;
  border-radius: .4rem;
  margin-top: .75rem;
}



/* PATHS (3 cards) */
.paths .cards {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: clamp(1rem,2.5vw,2rem);
  margin-top: 1rem;
}

.paths .card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 14px;
  padding: 1.25rem;
}

.paths .card h4 {
  margin-bottom: .25rem;
}


/* FOOTER */
.footer .content {
  padding-top: 8vh;
  padding-bottom: 8vh;
}

/* -------------------------------------------------------
   HERO TOP MENU (transparent version)
------------------------------------------------------- */

.top-hero-menu {
  position: absolute !important;  /* FORCE not fixed */
  top: 0;
  left: 0;
  width: 100%;
  padding-top: 0rem;
  z-index: 900;
  height:80px;
}

.top-nav {
  position: relative !important;  /* ensure it doesn’t become fixed */
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* LEFT — same typography as .desktop-menu a */
.top-menu-links {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.top-menu-links a {
  text-decoration: none;
  color: #fff;                      /* ONLY visual difference */
  font-weight: 500;                 /* same */
  text-transform: uppercase;        /* same */
  letter-spacing: 0.08em;           /* same as desktop CTA */
  font-size: 0.85rem;               /* EXACT match to #menu a */
  text-shadow: 0 2px 6px rgba(0,0,0,0.3);
  display: inline-block;       /* required for transform to behave nicely */
  transition: transform 0.25s ease, color 0.25s ease;
  transform-origin: center;
}

.top-menu-links a:hover {
  transform: scale(1.15);
}

/* Initial state: hidden + slightly shifted */
.top-nav li {
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  list-style:none;
}

/* Activated by JS */
.top-nav li.animate-in {
  opacity: 1;
  transform: translateY(0);
}


/* Stagger effect (delay each item) */
.top-nav li:nth-child(1) { transition-delay: 0.0s; }
.top-nav li:nth-child(2) { transition-delay: 0.15s; }
.top-nav li:nth-child(3) { transition-delay: 0.30s; }
.top-nav li:nth-child(4) { transition-delay: 0.45s; }
.top-nav li:nth-child(5) { transition-delay: 0.60s; }
.top-nav li.last { transition-delay: 1s; }


/* RIGHT CTA — match desktop CTA exactly, only change color */
.top-cta {
  text-decoration: none;
  color: #fff;                      /* white version */
  font-weight: 500;                 /* same */
  text-transform: uppercase;        /* same */
  letter-spacing: 0.04em;           /* same */
  padding: .6rem 1.2rem;            /* same */
  border: 1.2px solid #fff;           /* white version */
  border-radius: 4px;
  font-size: 1.0rem;               /* same sizing as header text */
  text-shadow: 0 2px 6px rgba(0,0,0,0.3);
  shadow: 0 2px 6px rgba(0,0,0,0.3);
  display: inline-block;       /* required for transform to behave nicely */
  transition: transform 0.25s ease, color 0.25s ease;
  transform-origin: center;
}

.top-cta:hover {
  transform: scale(1.1);
}

.fade-in-from-bottom {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeFromBottom 0.6s ease forwards;
  animation-delay: 2s;
  display:inline-block; 
}

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


/* -------------------------------------------------------
   HEADER BASE (hidden until hero ends)
------------------------------------------------------- */
.site-header {
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(255,255,255,.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.18);
  z-index: 1000;
}

.site-header.visible {
  opacity: 1;
  pointer-events: auto;
}

/* NAV OUTER WRAPPER */
.nav {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* FIXED HEIGHT TOP ROW */
.nav-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  position: relative;
}

/* LOGO inside header */
.nav-inner .logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
}

/* HEADER LOGO BEHAVIOR */
.header-logo-nav.invert {
  filter: invert(1) brightness(0);
  height: 40px;
  width: auto;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.header-logo-nav.visible {
  opacity: 1;
}


/* DESKTOP LEFT MENU */
.desktop-menu {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.desktop-menu a {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  font-size: 0.85rem;   
  color: #111;
  display: inline-block;       /* required for transform to behave nicely */
  transition: transform 0.25s ease, color 0.25s ease;
  transform-origin: center;
}

.desktop-menu a:hover {
  transform: scale(1.15);
}

.desktop-menu {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
}


/* DESKTOP CTA BUTTON */
.cta {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  padding: .6rem 1.2rem;
  border: 1.2px solid #111;
  border-radius: 4px;
  color: #111;
  display: inline-block;       /* required for transform to behave nicely */
  transition: transform 0.25s ease, color 0.25s ease;
  transform-origin: center;
}

.cta:hover{
  transform: scale(1.1);
}


/* MOBILE HAMBURGER SETUP */

#menu{
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  font-size: 0.85rem;   
  color: #111;

}

.menu-toggle { display: none; }
.menu-icon { display: none; }

/* Both hamburgers use the same 3-line icon */
.menu-icon {
  position: relative;
  width: 40px;
  height: 40px;
  cursor: pointer;
}

.menu-icon::before,
.menu-icon::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  height: 2px;
  background: currentColor;
  transition: transform .25s ease, top .25s ease, opacity .25s ease;
}

.menu-icon::before { top: 14px; }
.menu-icon::after { top: 24px; }

/* ------------------------------
   HEADER HAMBURGER → X ANIMATION
--------------------------------*/
.menu-toggle:checked ~ .nav .header-hamburger::before {
  transform: rotate(45deg);
  top: 19px;
}

.menu-toggle:checked ~ .nav .header-hamburger::after {
  transform: rotate(-45deg);
  top: 19px;
}

/* ------------------------------
   HERO HAMBURGER → X ANIMATION
--------------------------------*/
.menu-toggle:checked ~ .hero .top-hero-menu .hero-hamburger::before {
  transform: rotate(45deg);
  top: 19px;
}

.menu-toggle:checked ~ .hero .top-hero-menu .hero-hamburger::after {
  transform: rotate(-45deg);
  top: 19px;
}

.mobile-menu {
  display: none;
  list-style: none;
}

.site-header:has(.menu-toggle:checked) #menu {
    display: flex;
}

.site-header:has(#menu-toggle:checked) {
  opacity: 1 !important;
  pointer-events: auto !important;
}

/* -------------------------------------------------------
   RESPONSIVE
------------------------------------------------------- */

/* mobile menu */
@media (max-width: 1240px) {
  .desktop-menu,
  .cta {
    display: none;
  }

  #menu {
    display: none;
  }

  #menu.mobile-menu {
    display: none;
  }

  /* Show hamburger */
  .menu-icon {
    display: block;
  }

  /* Lock scrolling when menu open */
  body:has(.menu-toggle:checked) {
    overflow: hidden;
  }

  /* Header expands to full height */
  .site-header:has(.menu-toggle:checked) {
    height: 100vh;
    align-items: stretch;
  }

  /* Column layout in mobile */
  .site-header:has(.menu-toggle:checked) .nav {
    flex-direction: column;
    align-items: stretch;
    height: 100%;
  }

  .site-header:has(.menu-toggle:checked) #menu.mobile-menu {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.75rem;
    height: calc(100vh - var(--header-h));
    padding: 1.5rem;
    text-align: center;
  }

  /* Show logo while menu open */
  .site-header:has(.menu-toggle:checked) .header-logo-nav {
    opacity: 1 !important;
  }

  /* Center logo in mobile */
  .nav-inner {
    justify-content: center;
  }

  /* Position hamburger */
  .nav-inner .menu-icon {
    position: absolute;
    right: 1rem;
    top: 20px;
    height: 60px;
    display: flex;
    align-items: center;
  }

  /* Fullscreen mobile menu */
  .site-header:has(.menu-toggle:checked) #menu {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.75rem;
    height: calc(100vh - 80px);
    padding: 1.5rem;
    text-align: center;
  }

   /* hide desktop-style elements in the top hero menu */
  .top-menu-links,
  .top-cta,
  .top-logo {
    display: none !important;
  }

  /* show hamburger */
  .top-hero-menu .menu-icon {
    display: flex !important;
    position: absolute;
    right: 2rem;
    top: 20px;
    z-index: 9999;
  }

  /* make sure its checkbox is active and clickable */
  .top-hero-menu .menu-toggle {
    display: block;
  }

  .top-hero-menu .menu-icon::before,
  .top-hero-menu .menu-icon::after {
    background: #fff; /* white bars */
  }

  .lab-overlay p{
    font-size:clamp(1rem, 1.2vw, 1.15rem) !important;
  }

}

/* mobile layout */
@media (max-width: 1024px) {

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

  .stat .big {
    font-size: clamp(1.5rem, 3vw, 1.7rem);
  }

  .section .content{
     margin:0;
     padding:0 2rem 0 2rem;
  }

  .story-logo-large{
    margin-right:auto;
    margin-left:auto;
    object-position: center;
  }

  .story-logo-large.even{
    margin-right:auto;
    margin-left:auto;
    object-position: center;
  }

  .even{
    text-align:left;
  }

  .story-row{
    margin-bottom:50px;
  }


  /* Basic grid collapses */
  .split .content { grid-template-columns: 1fr; }
  .two-col .cols { grid-template-columns: 1fr; }
  .tri .three { grid-template-columns: 1fr; }
  .testimonials .quotes { grid-template-columns: 1fr; }
  .paths .cards { grid-template-columns: 1fr; }
   .imagine-grid {
    grid-template-columns: 1fr;
  }
  

  .hero-logo {
    width: clamp(200px, 30vw, 500px);
  }

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

   

  .approach-inner {
    max-width: 100%;
  }

  .promise-text {
    position: relative;
    width: 100%;
    z-index: 2;
  }

  .team-portraits {
  margin-top:30px;
  margin-bottom:2em;
  max-width:300px;
  margin-left:auto;
  margin-right:auto;
  }

    .story-row,
  .story-row.even {
    grid-template-columns: 1fr;
  }

  .story-row.even .story-image-wrap,
  .story-row.even .story-text-wrap {
    order: unset;
  }

.story-left {
  transform: translateX(0px);
}

.story-right {
  transform: translateX(0px);
}

}
