/* =============================================================================
   TECHSYNT — style.css
   All visual styles for the site.
   Organised section by section to match the page layout.
   ============================================================================= */

/* ----- RESET & BOX MODEL -------------------------------------------------- */
/* Make every element size itself the same predictable way */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ----- DESIGN TOKENS (CSS Variables) --------------------------------------- */
/* Change a colour here and it updates everywhere on the page */
:root {
  --black:      #0D0D0D;
  --black-mid:  #1A1A1A;
  --white:      #FFFFFF;
  --off-white:  #F4F3EF;
  --gray-light: #ECEAE4;
  --gray-mid:   #999890;
  --gray-dark:  #444440;
  --teal:       #3AADBA;
  --teal-dark:  #2A8A96;
  --border:     #E2E0D8;

  --font-serif: 'Instrument Serif', Georgia, serif;
  --font-sans:  'Manrope', sans-serif;
  --font-mono:  'DM Mono', monospace;
}

/* ----- BASE STYLES --------------------------------------------------------- */
/* overflow-x on html (not body) — setting it on body makes body a scroll container,
   which breaks position:sticky on the hero in Safari */
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  background: var(--black);
  color: var(--black);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.6;
}
html, body { height: auto; }
a { text-decoration: none; color: inherit; }

/* Sticky hero stacking context — hero stays behind as you scroll down.
   clip-path: inset(0) applies a compositor-level clip that constrains GPU
   sub-layers (created by the hero-bg img transform transition) to within
   the hero's bounds. Unlike overflow:hidden, clip-path is honoured by
   Safari's tile-based compositor during fast scroll. */
#hero { position: sticky; top: 0; z-index: -1; clip-path: inset(0); }
#about, #pu-divider, #applications, #regulatory, #technology, #kinetics,
#hazard, #hazard-dbtdl, #hazard-snoctoate, #science-divider, #partner-cta, #models, #story, #team, #contact, footer {
  position: relative;
  z-index: 1;
  isolation: isolate;
}
footer { position: relative; z-index: 1; }
.page-wrap { position: relative; z-index: 1; }

/* Per-section background colours */
#about          { background: var(--white); }
#applications   { background: var(--white); }
#regulatory     { background: transparent; }
#regulatory .reg-tint { display: none; }
#technology     { background: var(--gray-light); }
#kinetics       { background: var(--white); }
/* Safety colour token — edit --haz-surface here to retheme or revert */
#hazard, #hazard-dbtdl, #hazard-snoctoate {
  --haz-surface: #21161E;
  background: var(--haz-surface);
}
#hazard .haz-endpoint,
#hazard-dbtdl .haz-endpoint,
#hazard-snoctoate .haz-endpoint { background: var(--haz-surface); }
#story          { background: #F5F2ED; }
#partner-cta    { background: var(--black); }
#models         { background: var(--white); }
#team           { background: #F5F2ED; }
#contact        { background: var(--black-mid); }
footer          { background: var(--black); }


/* =============================================================================
   NAVIGATION
   ============================================================================= */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 48px; height: 64px;
  transition: none;
  border-bottom: 1px solid transparent;
}
nav.scrolled {
  background: rgba(248,247,244,.72);
  border-bottom-color: var(--border);
  -webkit-backdrop-filter: blur(6px) saturate(120%);
  backdrop-filter: blur(6px) saturate(120%);
}
.nav-logo { display: flex; align-items: center; cursor: pointer; }
.nav-logo svg { height: 24px; width: auto; }

.nav-links { display: flex; align-items: center; gap: 36px; list-style: none; }
.nav-links a {
  font-size: .82rem; font-weight: 500; letter-spacing: .04em;
  color: var(--white); transition: opacity .2s;
}
nav.scrolled .nav-links a { color: var(--black); }
.nav-links a:hover { opacity: .55; }

/* The "Partnership" button in the nav */
.nav-cta {
  padding: 10px 22px; border: 1.5px solid rgba(255,255,255,.55);
  border-radius: 40px; font-size: .8rem; font-weight: 600;
  color: var(--white); transition: background .2s, border-color .2s, color .2s;
}
nav.scrolled .nav-cta { border-color: var(--black); color: var(--black); }
.nav-cta:hover { background: var(--white); color: var(--black); }
nav.scrolled .nav-cta:hover { background: var(--black); color: var(--white); }


/* =============================================================================
   HERO SECTION
   ============================================================================= */
#hero {
  height: 100vh; min-height: 700px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; overflow: hidden;
}

/* Background photo wrapper — overflow:hidden clips the slightly-zoomed image */
.hero-bg {
  position: absolute; inset: 0;
  overflow: hidden;
}
/* The image starts slightly zoomed in and animates to normal size.
   Transform is on the img (not the sticky child wrapper) to avoid a Safari
   compositor-layer conflict: sticky+transform on the same element causes the
   hero to pop above covering sections during active scroll. */
.hero-bg img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transform: scale(1.05);
  transition: transform 9s ease;
}
/* JS adds .loaded to .hero-bg after 80ms to trigger the zoom-out */
.hero-bg.loaded img { transform: scale(1); }

/* Dark gradient overlay to make text readable over the photo */
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(8,8,8,.6) 0%,
    rgba(8,8,8,.3) 50%,
    rgba(8,8,8,.7) 100%
  );
}

.hero-content {
  position: relative; z-index: 2;
  padding: 0 40px; max-width: 1060px;
}

/* Small label above the headline — fades up on load */
.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: .72rem; letter-spacing: .22em; text-transform: uppercase;
  color: rgba(255,255,255,.55); margin-bottom: 28px;
  opacity: 0; animation: fadeUp .8s .3s ease forwards;
}

/* Main headline */
.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(3.4rem, 7.5vw, 8rem);
  font-weight: 400; line-height: 1.0;
  color: var(--white); margin-bottom: 30px;
  opacity: 0; animation: fadeUp .9s .5s ease forwards;
}
.hero-title em { font-style: normal; }

/* Sub-headline */
.hero-sub {
  font-size: clamp(.95rem, 1.6vw, 1.15rem);
  font-weight: 300; color: rgba(255,255,255,.75);
  max-width: 600px; margin: 0 auto 48px; line-height: 1.7;
  opacity: 0; animation: fadeUp .8s .7s ease forwards;
}

/* Shared pill button styles */
.btn-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; border-radius: 40px;
  font-size: .86rem; font-weight: 600; letter-spacing: .02em;
  transition: all .2s; cursor: pointer; border: none;
}
.btn-solid { background: var(--white); color: var(--black); }
.btn-solid:hover { background: var(--off-white); }
.btn-ghost {
  background: transparent; color: var(--white);
  border: 1.5px solid rgba(255,255,255,.45);
}
.btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,.08); }


/* =============================================================================
   SHARED SECTION UTILITIES
   ============================================================================= */
/* Small uppercase label that appears above section headings */
.section-tag {
  font-family: var(--font-sans);
  font-size: .72rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--gray-mid); text-align: center; margin-bottom: 52px;
}
.section-tag.light  { color: rgba(255,255,255,.38); }
.section-tag.left   { text-align: left; margin-bottom: 20px; }


/* =============================================================================
   ABOUT SECTION
   ============================================================================= */
#about { padding: 120px 48px 100px; }

.about-wrap      { max-width: 840px; margin: 0 auto; text-align: center; }
.about-wrap-wide { max-width: 1240px; }

.about-headline {
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 3.6vw, 3.4rem);
  font-weight: 400; line-height: 1.2; margin-bottom: 48px;
}
.about-headline em { color: var(--gray-dark); }
.about-headline-sub {
  font-family: var(--font-sans);
  font-size: clamp(1.2rem, 2vw, 1.8rem);
  font-weight: 300; letter-spacing: -0.04em;
  color: var(--gray-mid); display: block; margin-top: 8px;
}

/* Stacked layout — heading top, cards below */
.about-split {
  display: grid; grid-template-columns: 1fr;
  gap: 32px; margin-bottom: 60px;
}
.about-split-left .about-headline {
  font-size: clamp(1.9rem, 3.2vw, 3rem);
  line-height: 1.15; margin-bottom: 16px; text-align: left;
}
.about-split-left .about-headline-sub {
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  letter-spacing: -0.03em; text-align: left;
}
.about-split-right { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-content: start; }

/* Numbered list items — individual cards matching "What this enables" */
.about-num-item {
  display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
  padding: 32px 24px; border: 1px solid var(--border); border-radius: 6px;
  transition: background .2s;
}
.about-num-item:hover { background: var(--off-white); }
.about-num { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .14em; color: var(--gray-mid); }
.about-num-text { font-size: clamp(.9rem, 1.3vw, 1.05rem); color: var(--gray-dark); line-height: 1.5; display: block; width: 100%; text-align: left; }

/* Stats row */
.about-stats { display: flex; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.stat-col { flex: 1; padding: 36px 16px; text-align: center; border-right: 1px solid var(--border); }
.stat-col:last-child { border-right: none; }
.stat-n { font-family: var(--font-serif); font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1; margin-bottom: 8px; }
.stat-l { font-size: .7rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gray-mid); }

/* Keyword tags */
.about-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 60px; }
.a-tag {
  padding: 8px 18px; border-radius: 40px;
  border: 1px solid var(--border); font-size: .78rem; font-weight: 500;
  color: var(--gray-dark); background: var(--off-white);
  transition: border-color .2s, color .2s;
}
.a-tag:hover { border-color: var(--teal); color: var(--teal-dark); }


/* =============================================================================
   FULL-BLEED DIVIDER SECTIONS  (PU Divider, Science Divider)
   Background photo + dark overlay + centred text
   ============================================================================= */
#pu-divider, #science-divider {
  position: relative; height: 480px;
  display: flex; align-items: center; justify-content: center;
  text-align: center; overflow: hidden;
  background: #050505; /* fallback while divider image loads — prevents hero showing through transparent section */
}
/* The photo fills the whole section */
#pu-divider img.divider-bg,
#science-divider img.divider-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
}
/* Dark overlay on top of photo */
.divider-overlay { position: absolute; inset: 0; background: rgba(5,5,5,.10); }
#pu-divider .divider-overlay { background: rgba(5,5,5,.10); }
/* Content floats above the overlay */
.divider-content { position: relative; z-index: 2; max-width: 1100px; padding: 0 40px; }
.divider-content h2 {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 4.5vw, 5.2rem);
  font-weight: 400; color: var(--white); line-height: 1.15; text-align: center;
}


/* =============================================================================
   APPLICATIONS SECTION
   ============================================================================= */
#applications { padding: 100px 48px; }

.app-intro {
  max-width: 1240px;
  margin: 0 auto 72px;
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* identical to .app-grid */
  gap: 44px 32px;                        /* identical to .app-grid */
  align-items: start;
}
.app-intro-text { grid-column: 2 / 4; }
.app-intro-heading {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--black);
  margin-bottom: 22px;
}
.app-intro-text {
  font-size: .93rem;
  line-height: 1.78;
  color: var(--gray-dark);
  margin: 0;
}
.app-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 44px 32px; max-width: 1240px; margin: 0 auto;
}
.app-card { cursor: default; }
.app-img-wrap {
  width: 100%; aspect-ratio: 4/3; border-radius: 4px;
  overflow: hidden; background: var(--gray-light); margin-bottom: 22px;
}
.app-img-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .55s ease; }
.app-card:hover .app-img-wrap img { transform: scale(1.05); }
.app-mkt { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-dark); margin-bottom: 10px; }
.app-card h3 { font-family: var(--font-serif); font-size: clamp(1.4rem, 2.2vw, 2rem); font-weight: 400; line-height: 1.03; margin-bottom: 12px; }
.app-card p  { font-size: .86rem; color: var(--gray-dark); line-height: 1.62; }


/* =============================================================================
   REGULATORY SECTION
   ============================================================================= */
#regulatory {
  position: relative; height: 480px;
  display: flex; align-items: center; justify-content: center;
  text-align: center; overflow: hidden;
}
/* Background photo (loaded from images/ folder) */
.reg-photo-bg {
  position: absolute; inset: 0;
  background-image: url('images/regulatory-bg.jpg');
  background-size: cover; background-position: center; opacity: 1;
}
.reg-tint { position: absolute; inset: 0; background: rgba(5,12,20,.72); z-index: 1; }
.reg-wrap { position: relative; z-index: 1; max-width: 880px; margin: 0 auto; text-align: center; }

.reg-badge {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 8px 20px; border-radius: 40px;
  background: rgba(58,173,186,.15); border: 1px solid rgba(58,173,186,.4);
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--teal); margin-bottom: 32px;
}
.reg-badge::before { content: '●'; font-size: .48rem; }
.reg-headline { font-family: var(--font-serif); font-size: clamp(2.2rem, 4.5vw, 5.2rem); font-weight: 400; line-height: 1.06; color: var(--white); }
.reg-headline em { color: var(--gray-dark); }

/* Dark-background shared button styles (Regulatory & Partner CTA sections) */
.btn-dark {
  background: var(--white); color: var(--black);
  border-radius: 40px; padding: 13px 28px;
  font-size: .86rem; font-weight: 600; border: none; cursor: pointer;
  transition: background .2s;
}
.btn-dark:hover { background: var(--black-mid); }
.btn-outline-dark {
  background: transparent; color: var(--white);
  border: 1.5px solid rgba(255,255,255,.4); border-radius: 40px;
  padding: 13px 28px; font-size: .86rem; font-weight: 600;
  transition: border-color .2s;
}
.btn-outline-dark:hover { border-color: var(--black); }


/* =============================================================================
   TECHNOLOGY SECTION
   ============================================================================= */
#technology { padding: 100px 48px; }
.tech-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; max-width: 1240px; margin: 0 auto; align-items: stretch;
}
.tech-left h2 { font-family: var(--font-serif); font-size: clamp(2rem, 3.6vw, 3.2rem); font-weight: 400; line-height: 1.1; margin-bottom: 22px; }
.tech-left > p { font-size: .93rem; color: var(--gray-dark); line-height: 1.78; margin-bottom: 36px; }

.compare-table { width: 100%; border: 1px solid var(--border); border-radius: 6px; overflow: hidden; background: var(--white); border-collapse: collapse; table-layout: fixed; }
.compare-table th { background: var(--off-white); font-family: var(--font-mono); font-size: .65rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gray-mid); font-weight: 400; padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); border-right: 1px solid var(--border); width: 33.33%; }
.compare-table th:last-child { border-right: none; }
.compare-table tbody tr { height: 72px; }
.compare-table td { padding: 16px 16px; font-size: .82rem; border-bottom: 1px solid rgba(0,0,0,.06); border-right: 1px solid rgba(0,0,0,.06); vertical-align: middle; line-height: 1.4; }
.compare-table td:last-child { border-right: none; }
.compare-table tr:last-child td { border-bottom: none; }
.t-feat { color: var(--gray-dark); font-weight: 500; }
.t-bad  { color: #C0392B; }
.t-good { color: var(--teal-dark); font-weight: 400; }
.t-mid  { color: var(--gray-mid); }

.tech-right { display: flex; flex-direction: column; justify-content: space-between; }
.tech-item { display: flex; gap: 14px; padding: 0; border-bottom: 1px solid var(--border); padding-bottom: 12px; }
.tech-item:last-child { border-bottom: none; padding-bottom: 0; }
.t-num  { font-family: var(--font-mono); font-size: .7rem; color: var(--gray-mid); width: 22px; flex-shrink: 0; padding-top: 3px; }
.t-body h4 { font-size: .93rem; font-weight: 700; margin-bottom: 5px; }
.t-body p  { font-size: .84rem; color: var(--gray-dark); line-height: 1.65; }


/* =============================================================================
   KINETICS SECTION
   ============================================================================= */
#kinetics { padding: 100px 48px; }
.kin-wrap { max-width: 1240px; margin: 0 auto; }
.kin-header {
  margin-bottom: 64px;
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* identical to .kin-panels */
  gap: 0 12px;                            /* column-gap matches .kin-panels; row-gap 0 lets p+p margin handle paragraph spacing */
  align-items: start;
}
.kin-header h2 { font-family: var(--font-serif); font-size: clamp(2rem, 3.5vw, 3rem); font-weight: 400; line-height: 1.1; margin-bottom: 22px; }
.kin-header-body { grid-column: 2 / 4; }
.kin-header p  { font-size: .93rem; color: var(--gray-dark); line-height: 1.78; }
.kin-header p + p { margin-top: 14px; }
.kin-panels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 44px; }
.kin-panel { background: var(--white); padding: 32px 28px; border: 1px solid var(--border); border-radius: 6px; }
.kin-tag  { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gray-mid); margin-bottom: 5px; }
.kin-name { font-size: .9rem; font-weight: 700; margin-bottom: 20px; }
.kin-name.danger { color: #C0392B; }
.kin-name.ok     { color: var(--teal-dark); }
.kin-svg  { width: 100%; height: auto; display: block; }
.kin-note { margin-top: 14px; font-size: .77rem; color: var(--gray-mid); line-height: 1.55; }

.temp-row { display: flex; gap: 12px; justify-content: center; }
.temp-box { flex: 1; padding: 20px 16px; background: var(--off-white); border: 1px solid var(--border); border-radius: 6px; text-align: center; }
.temp-val { font-family: var(--font-serif); font-size: 1.7rem; color: var(--teal-dark); margin-bottom: 5px; }
.temp-lbl { font-family: var(--font-mono); font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gray-mid); line-height: 1.4; }


/* =============================================================================
   HAZARD MODELLING SECTION
   ============================================================================= */
#hazard, #hazard-dbtdl, #hazard-snoctoate { padding: 100px 48px; }
#hazard-dbtdl, #hazard-snoctoate { margin-top: -100px; }
.haz-wrap { max-width: 1240px; margin: 0 auto; }
.haz-header { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 60px; margin-bottom: 64px; align-items: start; }
.haz-header h2 { font-family: var(--font-serif); font-size: clamp(2rem, 3.5vw, 3rem); font-weight: 400; color: var(--white); line-height: 1.1; margin-top: 16px; }
.haz-header p  { font-size: .93rem; color: rgba(255,255,255,.45); line-height: 1.78; grid-column: 2 / 4; padding-top: 36px; }
.haz-header .section-tag { color: var(--teal); }
.haz-body { display: flex; flex-direction: column; gap: 48px; }

.haz-ld50 { background: rgba(58,173,186,.06); border: 1px solid rgba(58,173,186,.15); border-radius: 6px; padding: 40px 48px; display: flex; flex-direction: column; gap: 28px; }
.haz-ld50-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; align-items: start; }
.haz-ld50-left  { grid-column: 1 / 3; display: flex; gap: 20px; align-items: flex-start; flex-wrap: wrap; }
.haz-ld50-val   { font-family: var(--font-serif); font-size: clamp(3rem, 6vw, 5.5rem); color: var(--teal); line-height: 1; }
.haz-ld50-unit  { font-size: 1rem; font-weight: 600; color: var(--white); }
.haz-ld50-note  { grid-column: 3 / 5; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .06em; color: rgba(255,255,255,.3); line-height: 1.7; max-width: none; }

.haz-scale-bar    { height: 6px; background: rgba(255,255,255,.08); border-radius: 3px; position: relative; margin-bottom: 10px; }
.haz-scale-fill   { position: absolute; left: 0; top: 0; height: 100%; width: 66%; background: linear-gradient(to right, #C0392B 0%, #E67E22 25%, #3AADBA 50%, #2ecc71 100%); border-radius: 3px; }
.haz-scale-marker { position: absolute; top: -4px; left: 66%; width: 14px; height: 14px; border-radius: 50%; background: var(--white); border: 3px solid var(--teal); transform: translateX(-50%); }
.haz-scale-labels { display: flex; justify-content: space-between; }
.haz-scale-labels span { font-family: var(--font-mono); font-size: .62rem; letter-spacing: .06em; color: rgba(255,255,255,.25); text-align: center; line-height: 1.4; }

.haz-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
.haz-endpoint { padding: 16px 18px; background: var(--black); border-radius: 4px; display: flex; flex-direction: column; gap: 6px; }
.haz-endpoint.safe    { border: 1px solid rgba(46,204,113,.4); }
.haz-endpoint.caution { border: 1px solid rgba(230,126,34,.4); }
.haz-endpoint.danger  { border: 1px solid rgba(192,57,43,.6); }
.haz-endpoint.neutral { border: 1px solid rgba(255,255,255,.1); }
.haz-ep-name   { font-size: .78rem; font-weight: 600; color: rgba(255,255,255,.65); line-height: 1.3; }
.haz-ep-status { display: flex; align-items: center; gap: 5px; }
.haz-ep-icon { font-size: .8rem; font-weight: 700; }
.haz-endpoint.safe    .haz-ep-icon   { color: #2ecc71; }
.haz-endpoint.caution .haz-ep-icon   { color: #E67E22; }
.haz-endpoint.danger  .haz-ep-icon   { color: #C0392B; }
.haz-endpoint.neutral .haz-ep-icon   { color: rgba(255,255,255,.35); }
.haz-ep-result { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .08em; }
.haz-endpoint.safe    .haz-ep-result { color: #2ecc71; }
.haz-endpoint.caution .haz-ep-result { color: #E67E22; }
.haz-endpoint.danger  .haz-ep-result { color: #C0392B; }
.haz-endpoint.neutral .haz-ep-result { color: rgba(255,255,255,.35); }
.haz-footnote { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .04em; color: rgba(255,255,255,.22); line-height: 1.75; border-top: 1px solid rgba(255,255,255,.07); padding-top: 24px; }


/* =============================================================================
   PARTNER CTA SECTION
   ============================================================================= */
#partner-cta { position: relative; height: 480px; display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; }
.pcta-bg { position: absolute; inset: 0; background-image: url('images/partner-cta-bg.jpg'); background-size: cover; background-position: center; }
.pcta-overlay { position: absolute; inset: 0; background: rgba(5,5,5,.48); }
.pcta-content { position: relative; z-index: 2; max-width: 900px; padding: 0 40px; }
.pcta-content h2 { font-family: var(--font-serif); font-size: clamp(2.2rem, 4.5vw, 5.2rem); font-weight: 400; color: var(--white); line-height: 1.06; white-space: nowrap; }

.pcta-btns { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; }
.pcta-pill { display: inline-flex; align-items: center; gap: 12px; padding: 12px 24px; border-radius: 40px; background: var(--white); color: var(--black); font-size: .84rem; font-weight: 600; transition: background .2s, transform .15s; }
.pcta-pill:hover { background: var(--off-white); transform: translateY(-2px); }
.pcta-icon { width: 30px; height: 30px; border-radius: 50%; background: var(--gray-light); display: flex; align-items: center; justify-content: center; font-size: .8rem; flex-shrink: 0; }


/* =============================================================================
   OUR STORY SECTION
   ============================================================================= */
#story { padding: 100px 48px; border-bottom: 1px solid rgba(0,0,0,.07); }
.story-wrap { max-width: 1240px; margin: 0 auto; }
.story-header { margin-bottom: 56px; }
.story-header h2 { font-family: var(--font-serif); font-size: clamp(2rem, 3.5vw, 3.2rem); font-weight: 400; color: var(--black); line-height: 1.03; margin-top: 16px; }

/* Four-column timeline */
.story-timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(0,0,0,.07); border: 1px solid rgba(0,0,0,.09); border-radius: 6px; overflow: hidden; }
.story-item { background: #EDE9E3; padding: 36px 28px; display: flex; flex-direction: column; gap: 20px; transition: background .2s; }
.story-item:hover { background: #E4DFD8; }
.story-year { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); }
.story-body { font-family: var(--font-sans); font-size: .78rem; font-weight: 400; line-height: 1.58; color: rgba(0,0,0,.5); }


/* =============================================================================
   OUR STORY BLOCK  (embedded inside the Team section)
   ============================================================================= */
.story-block { margin-top: 0; margin-bottom: 48px; }
.story-grid  { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.story-grid .story-item { border: 1px solid rgba(0,0,0,.09); border-radius: 6px; }
/* .story-item, .story-year, .story-body defined under #story section below */

/* =============================================================================
   TEAM SECTION
   ============================================================================= */
#team { padding: 100px 48px; }
.team-wrap { max-width: 1240px; margin: 0 auto; }
.team-hdr { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 64px; padding-bottom: 40px; border-bottom: 1px solid rgba(0,0,0,.09); }
.team-hdr h2 { font-family: var(--font-serif); font-size: clamp(2rem, 3.5vw, 3.2rem); font-weight: 400; color: var(--black); line-height: 1.03; white-space: nowrap; }
.team-hdr h2 em { color: rgba(0,0,0,.38); }
.team-hdr p { font-size: .86rem; color: rgba(0,0,0,.45); max-width: 340px; line-height: 1.68; text-align: right; }

/* Four-column team card grid */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 10px; }
.tc { position: relative; padding: 34px 26px; background: #EDE9E3; border: 1px solid rgba(0,0,0,.09); border-radius: 6px; transition: background .2s; cursor: pointer; }
.tc:hover, .tc.tc-active { background: #E4DFD8; }
/* LinkedIn stencil — appears in the empty space to the right of the portrait on hover.
   Mask-image cuts the element's background into the LinkedIn logo silhouette:
   no colour, no blue icon — just the card's own tonal darkening in that shape. */
.tc::after {
  content: '';
  position: absolute;
  top: 34px; right: 26px;
  width: 96px; height: 96px;
  background: rgba(255,255,255,.55);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M19 3a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h14m-.5 15.5v-5.3a3.26 3.26 0 0 0-3.26-3.26c-.85 0-1.84.52-2.32 1.3v-1.11h-2.79v8.37h2.79v-4.93c0-.77.62-1.4 1.39-1.4a1.4 1.4 0 0 1 1.4 1.4v4.93h2.79M6.88 8.56a1.68 1.68 0 0 0 1.68-1.68c0-.93-.75-1.69-1.68-1.69a1.69 1.69 0 0 0-1.69 1.69c0 .93.76 1.68 1.69 1.68m1.39 9.94v-8.37H5.5v8.37h2.77z'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M19 3a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h14m-.5 15.5v-5.3a3.26 3.26 0 0 0-3.26-3.26c-.85 0-1.84.52-2.32 1.3v-1.11h-2.79v8.37h2.79v-4.93c0-.77.62-1.4 1.39-1.4a1.4 1.4 0 0 1 1.4 1.4v4.93h2.79M6.88 8.56a1.68 1.68 0 0 0 1.68-1.68c0-.93-.75-1.69-1.68-1.69a1.69 1.69 0 0 0-1.69 1.69c0 .93.76 1.68 1.69 1.68m1.39 9.94v-8.37H5.5v8.37h2.77z'/%3E%3C/svg%3E");
  -webkit-mask-size: contain; mask-size: contain;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  opacity: 0;
  transition: opacity .2s;
  pointer-events: none;
}
.tc:hover::after, .tc.tc-active::after { opacity: 1; }
/* Circular headshot */
.tc-init { width: 100px; height: 100px; border-radius: 50%; overflow: hidden; margin-bottom: 20px; background: #DCDAD8; }
.tc-init img { width: 100%; height: 100%; object-fit: cover; display: block; filter: contrast(.92) saturate(.88) brightness(1.03); }
.tc-name { font-size: .92rem; font-weight: 700; color: var(--black); margin-bottom: 4px; }
.tc-role { font-family: var(--font-mono); font-size: .65rem; letter-spacing: .08em; color: var(--teal); margin-bottom: 10px; }
.tc-bio  { font-size: .78rem; color: rgba(0,0,0,.5); line-height: 1.58; }
.tc-full { grid-column: 1 / -1; cursor: default; }
.tc-full::after { display: none; }

/* Dark stats row under the team grid */

/* IP notice row */
.ip-row { padding: 30px 28px; background: rgba(58,173,186,.06); border: 1px solid rgba(58,173,186,.14); border-radius: 4px; display: flex; gap: 36px; align-items: flex-start; }
.ip-lbl { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); white-space: nowrap; margin-top: 3px; min-width: 90px; }
.ip-row p { font-size: .86rem; color: rgba(255,255,255,.44); line-height: 1.72; }
.ip-row strong { color: rgba(255,255,255,.75); font-weight: 600; }


/* =============================================================================
   PARTNERSHIP SECTION
   ============================================================================= */
#models { padding: 100px 48px; }
.pship-wrap { max-width: 1240px; margin: 0 auto; display: flex; flex-direction: column; gap: 72px; }

.pship-header { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 80px; align-items: start; }
.pship-header-right { grid-column: 2 / 4; padding-top: 16px; }
.pship-header-left h2 { font-family: var(--font-serif); font-size: clamp(2.2rem, 4vw, 3.8rem); font-weight: 400; line-height: 1.03; margin: 16px 0 14px; }
.pship-tagline { font-family: var(--font-sans); font-size: 1rem; font-weight: 500; color: var(--teal-dark); letter-spacing: .02em; }
.pship-header-right p { font-size: .93rem; color: var(--gray-dark); line-height: 1.78; margin-bottom: 14px; }
.pship-header-right p:first-child { margin-top: 0; }
.pship-header-right p:last-child { margin-bottom: 0; }

.pship-steps-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.pship-steps-row.cols-4 { grid-template-columns: repeat(4, 1fr); }
.pship-step-card { padding: 32px 24px; border: 1px solid var(--border); border-radius: 6px; display: flex; flex-direction: column; gap: 12px; transition: background .2s; }
.pship-step-card:hover { background: var(--off-white); }
.pship-step-num   { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .14em; color: var(--gray-mid); }
.pship-step-title { font-family: var(--font-serif); font-size: 1.1rem; font-weight: 400; color: var(--black); line-height: 1.25; }
.pship-step-body  { font-size: .82rem; color: var(--gray-dark); line-height: 1.6; }

.ip-lbl-light { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; color: var(--teal-dark); margin-bottom: 24px; }
.pship-cta-bar { padding: 32px 24px; border: 1px solid var(--border); border-radius: 6px; background: var(--white); }
.pship-ip-text { font-size: .82rem; color: var(--gray-dark); line-height: 1.75; }
.pship-ip-text strong { color: var(--black); font-weight: 600; }
.pship-cta-btns { display: flex; gap: 12px; }
.pship-btn { padding: 12px 26px; border-radius: 40px; font-size: .84rem; font-weight: 600; transition: all .2s; }
.pship-btn-dark { background: var(--black); color: var(--white); }
.pship-btn-dark:hover { background: var(--black-mid); }
.pship-btn-outline { background: var(--white); color: var(--black); border: 1.5px solid var(--border); }
.pship-btn-outline:hover { border-color: var(--black); }


/* =============================================================================
   CONTACT SECTION
   ============================================================================= */
#contact { padding: 100px 48px; border-top: 1px solid rgba(255,255,255,.055); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; max-width: 1240px; margin: 0 auto; }

.cl h2 { font-family: var(--font-serif); font-size: clamp(2rem, 3.5vw, 3.2rem); font-weight: 400; color: var(--white); line-height: 1.03; margin-bottom: 22px; }
.cl h2 em { color: rgba(255,255,255,.44); }
.cl > p { font-size: .9rem; color: rgba(255,255,255,.38); line-height: 1.78; margin-bottom: 44px; }

.cpersons { display: flex; flex-direction: column; gap: 1px; border: 1px solid rgba(255,255,255,.07); border-radius: 4px; overflow: hidden; margin-bottom: 20px; }
.cperson { display: flex; align-items: center; gap: 14px; padding: 18px 22px; background: var(--black); transition: background .2s; }
.cperson:hover { background: rgba(255,255,255,.04); }
.cav   { width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center; font-size: .72rem; font-weight: 700; color: rgba(255,255,255,.44); flex-shrink: 0; }
.cname { font-size: .86rem; font-weight: 600; color: var(--white); margin-bottom: 3px; }
.crole { font-family: var(--font-mono); font-size: .63rem; letter-spacing: .06em; color: var(--teal); }
.cemail { margin-left: auto; font-size: .76rem; color: rgba(255,255,255,.3); text-align: right; }
.cemail a { color: var(--teal); }
.caddr { padding: 18px 22px; border: 1px solid rgba(255,255,255,.07); border-radius: 4px; }
.caddr-lbl { font-family: var(--font-mono); font-size: .63rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.22); margin-bottom: 7px; }
.caddr p { font-size: .8rem; color: rgba(255,255,255,.32); line-height: 1.65; }

/* Contact form */
.cr { display: flex; flex-direction: column; gap: 14px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
label { display: block; font-family: var(--font-mono); font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.28); margin-bottom: 5px; }
input, select, textarea { width: 100%; padding: 12px 15px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.09); border-radius: 4px; color: var(--white); font-family: var(--font-sans); font-size: .87rem; outline: none; transition: border-color .2s; }
input:focus, select:focus, textarea:focus { border-color: var(--teal); }
input::placeholder, textarea::placeholder { color: rgba(255,255,255,.18); }
textarea { resize: vertical; min-height: 96px; }
/* Custom dropdown arrow (SVG inline in CSS — keeps it a single file) */
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='7'%3E%3Cpath d='M1 1l4.5 5L10 1' stroke='rgba(255,255,255,.25)' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
}
select option { background: #1a1a1a; }
.f-submit { width: 100%; padding: 14px; border-radius: 40px; background: var(--white); color: var(--black); font-family: var(--font-sans); font-size: .87rem; font-weight: 700; letter-spacing: .03em; border: none; cursor: pointer; transition: background .2s; }
.f-submit:hover { background: var(--off-white); }
.f-legal { font-size: .7rem; color: rgba(255,255,255,.18); margin-top: 8px; line-height: 1.5; }
.f-status { border-radius: 6px; padding: 18px 20px; font-size: .82rem; line-height: 1.6; opacity: 0; transition: opacity .35s; pointer-events: none; }
.f-status.visible { opacity: 1; pointer-events: auto; }
.f-status.ok  { border: 1px solid rgba(255,255,255,.1); color: rgba(255,255,255,.7); background: rgba(255,255,255,.05); }
.f-status.err { border: 1px solid rgba(200,80,80,.35); color: rgba(255,150,140,.85); background: rgba(180,50,50,.1); }


/* =============================================================================
   FOOTER
   ============================================================================= */
footer { padding: 26px 48px; border-top: 1px solid rgba(255,255,255,.06); }
.f-legal-text { font-size: .7rem; color: rgba(255,255,255,.22); line-height: 1.5; }
.f-links { display: flex; gap: 22px; }
.f-links a { font-family: var(--font-mono); font-size: .65rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.22); transition: color .2s; }
.f-links a:hover { color: rgba(255,255,255,.55); }


/* =============================================================================
   SCROLL-REVEAL ANIMATION
   Elements marked class="reveal" start invisible and fade up when they scroll
   into view. JavaScript in script.js adds the "visible" class at the right time.
   ============================================================================= */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
/* Add d1–d5 to stagger siblings (e.g. class="reveal d2") */
.d1 { transition-delay: .1s; }
.d2 { transition-delay: .2s; }
.d3 { transition-delay: .3s; }
.d4 { transition-delay: .4s; }
.d5 { transition-delay: .5s; }


/* =============================================================================
   MOBILE MENU  (shown only on screens ≤ 720px)
   ============================================================================= */
.mobile-menu { display: none; }
.mobile-menu summary { list-style: none; }
.mobile-menu summary::-webkit-details-marker { display: none; }

@media (max-width: 720px) {
  .mobile-menu { display: block; position: relative; margin-left: auto; z-index: 1200; }
  .mobile-menu-toggle { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent; border-radius: 999px; position: relative; z-index: 1202; }
  /* Three-dot trigger icon */
  .mobile-dots { width: 6px; height: 22px; display: flex; flex-direction: column; align-items: center; justify-content: space-between; transition: width .22s ease, height .22s ease, flex-direction .22s ease; }
  .mobile-dot  { width: 5px; height: 5px; border-radius: 50%; background: #52C6DC; display: block; flex: 0 0 auto; }
  /* Dots become horizontal (× symbol) when menu is open */
  .mobile-menu[open] .mobile-dots { width: 22px; height: 6px; flex-direction: row; }
  .mobile-menu:not([open]) .mobile-menu-panel { display: none !important; }
  /* Full-screen black panel */
  .mobile-menu-panel { position: fixed; inset: 0; width: 100vw; height: 100dvh; background: #000; padding: 150px 32px 40px; overflow-y: auto; display: flex; align-items: flex-start; justify-content: flex-start; z-index: 1201; opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-100%); transition: transform .28s ease, opacity .18s ease, visibility 0s linear .28s; }
  .mobile-menu[open] .mobile-menu-panel { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); transition: transform .28s ease, opacity .18s ease; }
  /* Large-type links */
  .mobile-menu-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; width: 100%; }
  .mobile-menu-links a { display: block; font-size: clamp(2.4rem, 9vw, 3.6rem); line-height: 1.08; letter-spacing: -0.02em; color: rgba(255,255,255,.82); font-weight: 300; }
  .mobile-menu-links a:hover { color: #52C6DC; }
}


/* =============================================================================
   RESPONSIVE — tablets  (max-width: 1080px)
   ============================================================================= */
@media (max-width: 1080px) {
  .tech-grid      { grid-template-columns: 1fr; }
  .haz-header     { grid-template-columns: 1fr; gap: 0; }
  .haz-header p        { grid-column: auto; padding-top: 0; }
  .haz-h2-break   { display: none; }
  .haz-ld50-inner { grid-template-columns: repeat(2, 1fr); gap: 5px; }
  .haz-ld50-left  { grid-column: 1; }
  .haz-ld50-note  { grid-column: 2; max-width: none; }
  .haz-grid       { grid-template-columns: repeat(2, 1fr); }
  .contact-grid   { grid-template-columns: 1fr; }
  .app-grid       { grid-template-columns: 1fr 1fr; }
  .app-intro      { grid-template-columns: 1fr; gap: 0; }
  .app-intro-text { grid-column: auto; }
  .kin-panels     { grid-template-columns: repeat(2, 1fr); }
  .kin-header         { grid-template-columns: 1fr; gap: 0; }
  .kin-header-body    { grid-column: auto; }
  .team-grid, .story-grid { grid-template-columns: 1fr 1fr; }
  .team-hdr       { flex-direction: column; align-items: flex-start; gap: 16px; }
  .team-hdr p     { text-align: left; }
  .ip-row         { flex-direction: column; gap: 12px; }
  .story-timeline { grid-template-columns: 1fr 1fr; }
  .pship-header       { grid-template-columns: 1fr; gap: 32px; }
  .pship-header-right { grid-column: auto; }
  /* 4-card "What this enables" row: clean 2×2 grid */
  .pship-steps-row.cols-4 { grid-template-columns: repeat(2, 1fr); }
  /* 5-card "How we work" row: 6-col base, row 1 = 3×span-2, row 2 = 2×span-3 */
  .pship-steps-row:not(.cols-4) { grid-template-columns: repeat(6, 1fr); }
  .pship-steps-row:not(.cols-4) .pship-step-card { grid-column: span 2; }
  .pship-steps-row:not(.cols-4) .pship-step-card:nth-child(4),
  .pship-steps-row:not(.cols-4) .pship-step-card:nth-child(5) { grid-column: span 3; }
}


/* =============================================================================
   RESPONSIVE — mobile  (max-width: 720px)
   ============================================================================= */
@media (max-width: 720px) {
  /* Prevent any horizontal overflow */
  html, body { width: 100%; max-width: 100%; overflow-x: hidden; }
  body { position: relative; }
  .page-wrap, nav, section, footer { max-width: 100%; }
  img, svg, video, canvas { max-width: 100%; height: auto; }

  /* Reduce spacing */
  nav { padding: 0 20px; }
  .nav-links { display: none; }
  #about, #pu-divider, #applications, #technology, #kinetics,
  #models, #team, #contact { padding: 72px 20px; }
  /* Mobile pinned hero — position: sticky is broken by overflow-x: hidden on body
     (see line above). Switch to fixed so sections slide over a truly anchored hero. */
  #hero {
    position: fixed;           /* viewport-relative, unaffected by overflow-x: hidden */
    left: 0; right: 0;         /* full viewport width */
    z-index: 0;                /* above background; below sections (z-index:1) and nav (z-index:200) */
    clip-path: none;           /* desktop-only compositor hint not needed for fixed */
    padding: 0 20px;
    height: 100vh;             /* fallback for browsers without dvh support */
    height: 100dvh;            /* fills the visible viewport including iOS browser-chrome adjustments */
  }
  /* Hero is now out of flow — push the first section down to where the hero ends */
  #hero + * {
    margin-top: 100vh;         /* fallback for older browsers */
    margin-top: 100dvh;        /* dynamic viewport height: adjusts with iOS browser chrome */
  }
  #story       { padding: 72px 20px; }
  #hazard, #hazard-dbtdl, #hazard-snoctoate { padding: 72px 20px; }
  #hazard-dbtdl, #hazard-snoctoate { margin-top: -72px; }
  #regulatory  { height: auto; padding: 80px 20px; }
  #partner-cta { height: auto; padding: 80px 20px; }

  /* Single column on mobile */
  .app-grid, .team-grid, .about-split-right { grid-template-columns: 1fr; }
  .about-split-right .about-num-item:nth-child(2) { padding-top: 20px; padding-bottom: 20px; }
  .team-grid { gap: 10px; }
  .tc { padding: 32px 24px; }
  .about-stats { flex-direction: column; }
  .stat-col { border-right: none; border-bottom: 1px solid var(--border); }
  .stat-col:last-child { border-bottom: none; }
  .row2 { grid-template-columns: 1fr; }
  .haz-grid { grid-template-columns: 1fr; }
  .kin-panels { grid-template-columns: 1fr; }
  .story-timeline { grid-template-columns: 1fr; }
  .story-grid { grid-template-columns: 1fr; gap: 10px; }
  .story-body { font-family: var(--font-sans); font-size: .78rem; font-weight: 400; line-height: 1.58; color: rgba(0,0,0,.5); }
  /* Partnership grids: strip all table/gap-trick styling, stack as plain vertical list */
  /* Override tablet grid specificity: match every selector used there */
  .pship-steps-row.cols-4,
  .pship-steps-row:not(.cols-4) {
    grid-template-columns: 1fr;
    gap: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    overflow: visible;
  }
  /* Reset all span placements set by tablet rules */
  .pship-steps-row:not(.cols-4) .pship-step-card,
  .pship-steps-row:not(.cols-4) .pship-step-card:nth-child(4),
  .pship-steps-row:not(.cols-4) .pship-step-card:nth-child(5) { grid-column: auto; }
  /* Cards: individual bordered blocks with spacing between them */
  .pship-steps-row.cols-4,
  .pship-steps-row:not(.cols-4) { gap: 10px; }
  .pship-steps-row.cols-4 .pship-step-card,
  .pship-steps-row:not(.cols-4) .pship-step-card {
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--white);
    width: 100%;
    max-width: none;
  }
  .pship-cta-bar { flex-direction: column; gap: 20px; align-items: flex-start; }
  footer { flex-direction: column; align-items: flex-start; gap: 12px; }
  .haz-ld50 { padding: 28px 20px; }
  .haz-ld50-inner { grid-template-columns: 1fr; gap: 20px; }
  .haz-ld50-left  { grid-column: auto; }
  .haz-ld50-note  { grid-column: auto; max-width: 360px; }

  /* Hero title fix */
  .hero-title { font-size: 3.15rem !important; line-height: 1.44 !important; white-space: normal !important; }
  .hero-title span { display: block !important; white-space: nowrap !important; }
  .hero-title br { display: none !important; }

  /* Hero visibility fix — skip fade-in animations on mobile so content is immediately visible */
  .hero-eyebrow,
  .hero-title,
  .hero-sub {
    opacity: 1 !important;
    animation: none !important;
    transform: none !important;
  }

  /* Fix full-bleed divider heights on mobile */
  #pu-divider, #regulatory, #partner-cta, #science-divider {
    height: 320px !important; min-height: 320px !important; max-height: 320px !important;
    padding: 24px 20px !important;
    display: flex !important; align-items: center !important; justify-content: center !important;
  }
  /* Divider text containers — reduce side padding so headline has full width */
  .divider-content,
  .pcta-content,
  .reg-wrap { padding-left: 12px !important; padding-right: 12px !important; }
  /* All divider headlines — full container width, 2-line friendly */
  #pu-divider h2, #science-divider h2,
  #partner-cta h2,
  #regulatory .reg-headline {
    display: block !important; width: 100% !important; max-width: none !important;
    margin: 0 auto !important; padding: 0 !important;
    white-space: normal !important; text-align: center !important;
  }

  /* Show all content immediately on mobile (no scroll-reveal delay) */
  .reveal, .reveal.visible { opacity: 1 !important; transform: none !important; }

  /* Temperature boxes: 4 in a row on mobile */
  .temp-row { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 6px !important; }
  .temp-box { min-width: 0 !important; padding: 16px 6px !important; border-radius: 6px !important; }
  .temp-val { font-size: 1.05rem !important; line-height: 1 !important; margin-bottom: 8px !important; }
  .temp-lbl { font-size: .46rem !important; line-height: 1.3 !important; letter-spacing: .08em !important; }
}

/* Fill any gap around sticky hero on mobile */
@media (max-width: 768px) {
  html, body { background: #0D0D0D !important; }
  body { min-height: 100%; }
  footer { margin-bottom: 0 !important; padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px)); }
  /* Hero must sit above the dark body background (body is #0D0D0D on mobile;
     z-index:-1 on #hero would bury it behind that background layer) */
  #hero { z-index: 0; }
}
