/* =====================================================
   Blue Chip Bio — Consolidated Styles (cleaned 2025-08-11)
   Notes:
   - Removed duplicate/override blocks and unused features (off‑canvas drawer, subnav, back-to-top).
   - Kept only classes used by index.html + JS (hero parallax, lightbox, ticker, zoom).
   - Simplified mobile nav: the toggle button reveals the .topnav when aria-expanded="true".
   - Preserved visual design: brand blue header fade, hero card, tiles, principles, tech, table, team, ticker, contact.
   ===================================================== */

/* ---------- Design Tokens ---------- */
:root{
  /* Brand */
  --blue:#1E40AF;       /* Tailwind-ish Indigo-800 */
  --blue-600:#1B3AA3;
  --band-blue:#EEF3FF;

  /* Text & Neutrals */
  --ink:#0b0d12;
  --muted:#1f2430;
  --gray-700:#2a2f3a;
  --gray-600:#4b5563;
  --gray-500:#6b7280;
  --border:#e5e7eb;

  /* States */
  --neg:#e25555;
  --pos:#15924c;
  --teal:#2bb6b0;

  /* Surfaces */
  --bg:#ffffff;
  --sand:#f6f3ee;

  /* Layout */
  --container:1200px;
  --radius:16px;
  --shadow:0 12px 24px rgba(0,0,0,.06);
  --headerH:72px;       /* header height (desktop & mobile) */

  /* JS sets this for header fade and hero parallax */
  --hdrAlpha:0.5;         /* 0..1 */
  --heroOpacity:0.9;
}

/* ---------- Base Reset ---------- */
*{box-sizing:border-box}
html,body{margin:0;padding:0}
html{scroll-behavior:smooth}
body{
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height:1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.container{max-width:var(--container);margin:0 auto;padding:0 28px}

/* Type */
h1,h2,h3{font-family:"Source Serif 4", ui-serif, Georgia, serif;letter-spacing:-.01em}
h1{font-weight:800;font-size:clamp(2.25rem, 1.6rem + 2.2vw, 3.75rem);line-height:1.08;margin:0 0 10px}
h2{font-weight:700;font-size:clamp(1.6rem, 1.2rem + 1.2vw, 2.2rem);line-height:1.15;margin:0 0 12px}
h3{font-weight:700;font-size:1.25rem;margin:0 0 6px}
p{margin:0 0 12px}
.eyebrow{font-weight:800;letter-spacing:.02em;text-transform:uppercase;color:var(--gray-700);font-size:0.9rem;margin:0 0 8px}
.lead{
  font-weight:700;font-size:1.1em;color:var(--gray-700);
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;  
}
.accent{color:var(--blue)}

/* Links & Buttons */
a{color:var(--blue);text-decoration:none}
a:hover{text-decoration:underline}
:focus-visible{outline:3px solid rgba(11,95,255,.35);outline-offset:3px}

.btn{
  display:inline-block;padding:14px 18px;border-radius:12px;text-decoration:none;
  border:2px solid var(--blue);font-weight:800;
  transition:transform .15s ease, box-shadow .2s ease, background .2s, color .2s;
  cursor: pointer;
}
.btn.primary{background:var(--blue);color:#fff;border-color:var(--blue)}
.btn.primary:hover{transform:translateY(-2px);box-shadow:0 18px 36px rgba(30,64,175,.35);background:var(--blue-600);border-color:var(--blue-600)}
.btn.ghost{color:var(--blue);background:#fff}
.btn.ghost:hover{background:#eff4ff}

/* Icon buttons (LinkedIn / Research) */
.btn-icon{display:inline-flex;align-items:center;gap:8px;margin-bottom:2px;padding:10px 14px;border-radius:12px;text-decoration:none;font-weight:700;border:1px solid var(--blue);background:#fff;transition:transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease}
.btn-icon svg{width:18px;height:18px;fill:currentColor}
.btn-icon:hover,.btn-icon:focus-visible{color:#fff;background:var(--blue);border-color:var(--blue);transform:translateY(-1px);box-shadow:0 10px 20px rgba(11,95,255,.18)}
.btn-icon.research::before{
  content:""; width:18px; height:18px; display:inline-block; margin-right:8px; background: currentColor;
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><line x1="2" y1="12" x2="22" y2="12"/><path d="M12 2a15.3 15.3 0 0 1 0 20"/><path d="M12 2a15.3 15.3 0 0 0 0 20"/></svg>') center/contain no-repeat;
          mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><line x1="2" y1="12" x2="22" y2="12"/><path d="M12 2a15.3 15.3 0 0 1 0 20"/><path d="M12 2a15.3 15.3 0 0 0 0 20"/></svg>') center/contain no-repeat;
}

/* ---------- Header / Nav ---------- */
.site-header{
  position:fixed;inset:0 0 auto 0;height:var(--headerH);
  display:block;background: rgba(30,64,175,var(--hdrAlpha)); /* brand blue w/ JS alpha */
  color:#fff;border-bottom:0;
  z-index:50;backdrop-filter:saturate(calc(100% + var(--hdrAlpha)*20%)) blur(calc(var(--hdrAlpha)*6px));
  transition: background .25s ease, border-color .25s ease, backdrop-filter .25s ease;
}
.container.nav{display:flex;align-items:center;gap:16px;height:100%}
.logo{background:#fff;border-radius:12px;padding:6px 10px;box-shadow:0 6px 18px rgba(0,0,0,.10)}
.logo img{display:block;height:48px}

/* Desktop nav */
.topnav{display:flex;gap:clamp(12px, 4vw, 28px);align-items:center;margin-left:auto;flex-wrap:wrap}
.topnav a{
  color:rgba(255,255,255,.95);text-decoration:none;font-weight:750;font-size:.98rem;
  padding:10px 14px;border-radius:9999px
}
.topnav a:hover{color:#fff;background:rgba(255,255,255,.14)}

/* Mobile nav: slide-down using the existing DOM (no drawer component) */
.menu-toggle{display:none;background:none;border:none;padding:10px;margin-left:auto}
.menu-toggle-bar{display:block;width:24px;height:2px;background:#fff;margin:5px 0;border-radius:2px}
@media (max-width: 900px){
  .menu-toggle{display:block}
  /* collapsed by default */
  .topnav{
    position:fixed;left:0;right:0;top:var(--headerH);
    display:grid;grid-auto-rows:min-content;gap:6px;background:#fff;
    border-bottom:0 solid var(--border);padding:12px 20px;transition:transform .25s ease;
    transform:translateY(-8px);opacity:0;visibility:hidden;box-shadow:none;border-bottom:0;
  }
  /* shown when button toggles aria-expanded=true */
  .menu-toggle[aria-expanded="true"] + .topnav{
    transform:translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    box-shadow: 0 14px 30px rgba(0,0,0,.08);    
  }
  .topnav a{ color:#0b0d12; background:transparent; }
  .topnav a:hover{ background: rgba(11,17,28,.06); }
}

/* ---------- Bands (sections) ---------- */
.band{padding:48px 0;position:relative}
.band.sand{background:var(--sand)}
.band.bluewash{background:linear-gradient(180deg, var(--band-blue) 0%, #fff 80%)}
.band.reverse-bluewash{background:linear-gradient(180deg, #fff 0%, var(--band-blue) 80%)}
.section-head{margin-bottom:10px}
.section-head h2{max-width:28ch}

/* ---------- Hero ---------- */
.hero-band{position:relative;padding-bottom:8px;overflow:hidden}
.hero-band::after{
  content:""; position:absolute; left:0; right:0; top:0; height:140px;
  background: linear-gradient(180deg, rgba(16,28,64,.55), rgba(16,28,64,.28), transparent 80%);
  z-index:0;
}
.hero-band .hero{
  display:grid; align-content:center; justify-items:center; row-gap:16px;
  padding: clamp(104px, 14vh, 130px) 0 12px;
  min-height: clamp(420px, 58vh, 620px);
  text-align:center; position:relative; max-width:1120px; margin:0 auto;
}
.hero-band .hero::before{
  content:""; position:absolute;
  inset: auto clamp(18px, 3.5vw, 28px) 14px clamp(18px, 3.5vw, 28px);
  top: clamp(40px, 9vh, 88px);
  background: rgba(255,255,255,.58);
  backdrop-filter: saturate(120%) blur(8px);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: var(--radius);
  box-shadow: 0 20px 40px rgba(0,0,0,.08);
  z-index: 0;
}
.hero-band .hero > *{ position:relative; z-index:1; width:min(900px, 100%) }
.hero-band .hero-bg{
  position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 34%;
  opacity: calc(.8 * var(--heroOpacity));
  filter:saturate(1.05) blur(2px); z-index:0; will-change: transform;
  transform: translateZ(0); backface-visibility: hidden;
}
.cta .btn.primary{
  font-size: clamp(1rem, 2.1vw, 1.125rem);
  padding: 16px 22px;
  box-shadow: 0 14px 28px rgba(11,95,255,.25);
}
.cta .btn.primary::after{ content:"→"; display:inline-block; margin-left:10px; transition: transform .2s ease }
.cta .btn.primary:hover::after{ transform: translateX(2px) }

/* Mobile-friendly hero subtitle */
@media (max-width: 600px){
  /* tighten the card + give content more vertical room */
  .hero-band .hero{
    min-height: 520px;            /* was clamp(..., 58vh, ...) */
    padding-top: 110px;           /* ensures space under fixed header */
    padding-bottom: 16px;
  }

  /* subtitle sizing + readability */
  .hero-band .lead{
    font-size: clamp(0.92rem, 3.6vw, 1.05rem);
    line-height: 1.35;
    max-width: 36ch;              /* limit line length */
    margin-inline: auto;
    text-wrap: balance;           /* nicer line breaks (supported broadly now) */
    hyphens: auto;
  }

  /* keep the CTA compact so it doesn't force wrapping */
  .cta .btn.primary{
    padding: 12px 16px;
    font-size: 1rem;
  }
}

/* ultra-small devices */
@media (max-width: 380px){
  .hero-band .lead{
    font-size: 0.95rem;
    line-height: 1.32;
    max-width: 34ch;
  }
}

/* Hero link tiles */
.tiles{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-top:14px}
@media (max-width:900px){.tiles{grid-template-columns:1fr}}
.link-tile{
  position:relative;border-radius:var(--radius);overflow:hidden;display:flex;min-height:180px;
  border:1px solid var(--border);background:#000;color:#fff;text-decoration:none;
  transition:transform .2s ease, box-shadow .25s ease;
  box-shadow: var(--shadow);
}
.link-tile:hover{transform:translateY(-2px);box-shadow:0 14px 32px rgba(0,0,0,.18)}
.link-tile .tile-media{
  position:absolute;inset:0;
  background-image: linear-gradient(to bottom, rgba(0,0,0,.2), rgba(0,0,0,.35)), var(--tile);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  filter:grayscale(.1);
  /* stability on iOS during scroll */
  -webkit-transform: translateZ(0); /* iOS Safari & old WebKit */
  transform: translateZ(0);         /* Modern browsers */
  backface-visibility: hidden;
}
@supports (-webkit-touch-callout: none) {
  .link-tile .tile-media{ filter: none !important; }
}

.link-tile .tile-text{position:relative;z-index:1;display:flex;flex-direction:column;justify-content:flex-end;padding:14px 16px;gap:4px}
.link-tile strong{display:block;font:600 1.05rem/1.2 Inter, system-ui}
.link-tile em{display:block;font-style:normal;opacity:.85;max-height:0;overflow:hidden;margin-top:0;transition:max-height .25s ease, opacity .25s ease, margin-top .25s ease}
.link-tile:hover .tile-text em{max-height:80px;opacity:1;margin-top:4px}


/* ---------- Services ---------- */
.services-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 12px;
}
.service-card{
  background:#fff;
  border:1px solid var(--border);
  border-radius: var(--radius);
  padding:16px;
  box-shadow: 0 10px 24px rgba(11,45,110,.08);
  transition: transform .15s ease, box-shadow .25s ease, border-color .2s ease;
}
.service-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(11,45,110,.12);
  border-color: var(--blue);
}
.service-card h3{ margin:0 0 6px }
.service-card p{ color: var(--gray-600); margin:0 0 10px }
.service-card ul{ margin:6px 0 0; padding-left:18px; color: var(--gray-600) }

/* flow steps */
.flow-steps{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(260px,1fr));
  gap:16px;
  margin-top:12px;
}
.flow-step{
  background:#fff;
  border:1px solid var(--border);
  border-radius: var(--radius);
  padding:16px 16px 14px 16px;
  box-shadow: 0 10px 24px rgba(11,45,110,.08);
  transition: transform .15s ease, box-shadow .25s ease, border-color .2s ease;
}
.flow-step:hover{
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(11,45,110,.12);
  border-color: var(--blue);
}
.flow-step h3{ margin:0 0 6px }
.flow-step p{ margin:0 0 8px; color: var(--gray-600) }
.flow-step ul{ margin:6px 0 0; padding-left:18px; color: var(--gray-700) }

.step-num{
  width:36px; height:36px; line-height:36px;
  text-align:center; font-weight:800;
  border-radius:9999px;
  background: rgba(11,95,255,.08);
  border:1px solid rgba(11,95,255,.22);
  color: var(--blue);
  margin-bottom:8px;
}

/* two-column choices */
.choice-grid{
  display:grid;
  grid-template-columns: 1fr;
  gap:12px;
  margin-top:6px;
}
@media (min-width:640px){
  .choice-grid{ grid-template-columns: 1fr; }
}
.choice{
  border:1px dashed var(--border);
  border-radius: var(--radius);
  padding:12px;
  background:#fff;
}
.choice h4{
  margin:0 0 6px;
  font-size:1rem;
}
.choice p{
  margin:0;
  color:var(--gray-600);
}
.choice ul{
  margin:6px 0 0;
  padding-left:18px;
  color:var(--gray-700);
}


/* marker pills */
.pill-list{
  list-style:none;
  padding:0;
  margin:6px 0 0;
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.pill{
  background:#fff;
  border:1px solid rgba(11,95,255,.25);
  border-radius:9999px;
  padding:6px 10px;
  font-weight:700;
  font-size:.9rem;
  color:var(--gray-700);
}


/* ---------- Founding Principles ---------- */
.principles-grid{display:grid;grid-template-columns:1fr;gap:25px;align-items:stretch}
@media (min-width:900px){.principles-grid{grid-template-columns:1fr 1fr}}
.principle-card{
  position:relative;background:#fff;border:1px solid var(--border);border-radius:14px;
  padding:56px 16px 14px;min-height:140px;box-shadow:0 12px 24px rgba(0,0,0,.05)
}
.principle-card::before{
  content:"1"; position:absolute; top:12px; left:14px; width:28px; height:28px; border-radius:999px;
  background:linear-gradient(180deg,#fff,#f6f8ff); border:2px solid var(--blue); color:var(--blue);
  font:700 14px/24px Inter,system-ui,sans-serif; display:grid; place-items:center; box-shadow:0 8px 18px rgba(0,0,0,.08);
}
.principle-card:nth-child(2)::before{content:"2"}
.principle-card:nth-child(3)::before{content:"3"}
.principle-card:nth-child(4)::before{content:"4"}
/* staggered offsets for a "journey" */
@media (min-width:900px){
  .principle-card:nth-child(1){ margin-top: 10px; }
  .principle-card:nth-child(2){ margin-top: 10px; }
  .principle-card:nth-child(3){ margin-top: 10px; }
  .principle-card:nth-child(4){ margin-top: 10px; }
}
.principle-card .label{position:relative;padding-left:12px;display:inline-block}
.principle-card .label::before{content:"";position:absolute;left:0;top:.35em;bottom:.35em;width:4px;border-radius:4px;background:linear-gradient(var(--blue), #6b86ff)}
.principle-card .text{color:var(--gray-600)}

/* ---------- Technology ---------- */
.tech-split{display:grid;gap:28px;grid-template-columns:1.1fr .9fr;align-items: center;}
@media (max-width:900px){ .tech-split{grid-template-columns:1fr} }
.tech-visual{position:relative;border:1px solid var(--border);border-radius:var(--radius);overflow:hidden;background:#fff;aspect-ratio:5/3;box-shadow:0 12px 30px rgba(0,0,0,.08)}
.tech-visual img,.tech-visual video{display:block;width:100%;height:100%;object-fit:cover;border-radius:var(--radius)}
.tech-copy{text-align:center;background:#fff;border:1px solid var(--border);border-radius:14px;padding:18px}
.tech-copy .points{
  display:grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap:12px; margin:12px auto 0; justify-content: center; align-items:start;
  padding-left: 0; padding-right: 0; margin-left: 0; list-style: none;
}

.tech-copy .points li {
  list-style: none;
  font-size: 0.9rem;
  color: var(--muted);
  background: #fff;
  border: 1px solid rgba(11,95,255,0.25); /* lighter default border */
  border-radius: 14px;
  padding: 14px 14px 12px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 18px 30px rgba(0,0,0,.08);
  transition: border-color 0.25s ease, transform 0.15s ease, box-shadow 0.25s ease;
}

/* On hover — darker border + subtle lift */
.tech-copy .points li:hover {
  border-color: var(--blue); /* use your theme blue */
  transform: translateY(-2px);
  box-shadow: 0 22px 36px rgba(0,0,0,0.12);
}

.tech-copy .points li::before {
  content:"";
  position:absolute;
  inset:0;
  background: radial-gradient(160px 60px at 0% 0%, rgba(11,95,255,.10) 0%, transparent 65%);
  opacity: 0;                                /* hidden by default */
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.tech-copy .points li:hover::before {
  opacity: 1;
}

.tech-copy .points li::after {
  content:"";
  position:absolute;
  inset:0;
  background: radial-gradient(160px 60px at 100% 100%, rgba(11,95,255,.10), transparent 65%);
  opacity: 0;                               /* hidden by default */
  transition: opacity 0.3s ease;            /* smooth fade in/out */
}

.tech-copy .points li:hover::after {
  opacity: 1;                               /* visible only when hovered */
}

/* ---------- Comparison Table ---------- */
.table-wrapper{position:relative;margin-top:.75rem;background:#fff;border:1px solid var(--border);border-radius:16px;box-shadow:0 10px 24px rgba(11,45,110,.08);overflow:hidden}
.table-wrapper::before{display: none;}
.table-wrapper::after{display: none;}
.desktop-wrap{overflow:visible}
@media (max-width:860px){.desktop-wrap{overflow:auto}}

table.fancy{width:100%;border-collapse:separate;border-spacing:0;table-layout:fixed;font-size:0.95rem}
table.fancy thead th{
  position:sticky;top:0;z-index:1;background:#ffffff;color:var(--muted);
  font-weight:700;text-align:center;padding:14px 16px;box-shadow:inset 0 -1px 0 #eef2f7;
  border-bottom: 1px solid #eef2f7;
}
table.fancy thead th:first-child{ text-align:left; border-top-left-radius:16px; }
table.fancy thead th:last-child { border-top-right-radius:16px; }
table.fancy th, table.fancy td{padding:12px 16px;border-bottom:1px solid #eef2f7;vertical-align:middle;word-break:break-word}
table.fancy tbody th{text-align:left;font-weight:600;color:var(--muted);background:#fff}
table.fancy th:first-child,table.fancy td:first-child{width:34%}
table.fancy th:not(:first-child),table.fancy td:not(:first-child){text-align:center}
table.fancy tbody tr:nth-child(even){background:#fbfdff}
td.check, td.x{font-size:1.15rem;line-height:1;font-weight:800}
td.check{color:var(--teal)} td.x{color:#b0b6c2}
td.pos{color:var(--pos);font-weight:800} td.neg{color:var(--neg);font-weight:800}
.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* Table polish */
.table-wrapper{
  border: 2px solid var(--blue);
  box-shadow: 0 14px 34px rgba(11,45,110,.10);
}

table.fancy thead th{
  border-bottom: 2px solid var(--blue);
}

table.fancy th, table.fancy td{
  border-bottom: 1px solid #e8efff; /* crisper separators */
}

/* subtle column separators on wide screens */
@media (min-width: 680px){
  table.fancy td + td, table.fancy th + th{
    border-left: 1px solid #eef4ff;
  }
}

/* professional hover and focus */
table.fancy tbody tr:hover td,
table.fancy tbody tr:hover th{
  background: #f5f9ff;
}

table.fancy tbody tr:focus-within td,
table.fancy tbody tr:focus-within th{
  outline: 2px solid rgba(30,64,175,.25);
  outline-offset: -2px;
}

/* make check/X look weighty and aligned */
td.check, td.x{
  font-size: 1.2rem;
  font-weight: 800;
}

table.fancy thead th{
  position: sticky; top: 0;
  backdrop-filter: saturate(120%) blur(4px);
}

.table-container {
  overflow-x: auto;       /* enables horizontal scrolling */
  -webkit-overflow-scrolling: touch; /* smooth scroll on iOS */
}

.table-container table {
  min-width: 600px;       /* or whatever width keeps the layout readable */
  border-collapse: collapse;
}

/* Make table horizontally scrollable */
.table-container {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Keep table readable (prevents squish) */
.table-container > table {
  min-width: 720px; /* adjust to your content */
  border-collapse: collapse;
}

/* ---------- Team ---------- */
.team-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
@media (max-width:900px){.team-grid{grid-template-columns:repeat(2,1fr)}}
@media (max-width:560px){.team-grid{grid-template-columns:1fr}}
.person{
  border:1px solid var(--border);background:#fff;border-radius:var(--radius);padding:16px;
  display:flex;flex-direction:column;align-items:flex-start;
  box-shadow:none;
}
.person:hover{
  box-shadow:none;
}

.headshot{width:220px;height:220px;object-fit:cover;object-position:center;border-radius:var(--radius);border:2px solid var(--border);display:block;margin-bottom:12px}
.person h3{margin:0 0 8px}
.bio.multiline{line-height:1.5;margin-top:6px;color:var(--gray-600)}
.bio.multiline .title{display:block;margin-bottom:2px;font-weight:700;color:var(--ink)}
.bio.multiline .degree,.bio.multiline .desc{display:block;margin-bottom:2px}

/* ---------- Ticker ---------- */
.ticker{overflow:hidden;position:relative;background:#fff;border:1px solid var(--border);border-radius:14px;padding:10px 0}
.ticker-track{
  display:flex;
  flex-wrap:nowrap;
  gap:30px;
  will-change:transform;
  transform:translate3d(0,0,0);
}
.ticker-track > a{flex:0 0 auto;display:flex;align-items:center;justify-content:center}
.ticker-track img{max-height:40px;max-width:140px;height:auto}
.ticker.full{margin-left:calc(50% - 50vw);margin-right:calc(50% - 50vw);border-radius:0;border-left:none;border-right:none}
@keyframes tickerScroll{ from{ transform: translateX(0) } to{ transform: translateX(-50%) } }
@media (prefers-reduced-motion: reduce){ .ticker-track{ animation: none } }

/* Smooth pop-out only for the logo being hovered */
.ticker-track > a img {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ticker-track > a:hover img {
  transform: scale(1.15) translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* ---------- Contact ---------- */
#contact .cta-card{max-width: 880px;margin: 0 auto;padding: 24px;background: #fff;border: 1px solid var(--border);border-radius: 16px;box-shadow: 0 6px 24px rgba(2, 12, 27, .06)}
#contact .cta-card h2{margin:0 0 8px;font-size:1.6rem;line-height:1.25}
#contact .cta-card p{margin:0 0 12px;color:var(--gray-600)}
.contact-form{ margin-top: 8px }
.contact-form .form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px 18px}
.contact-form .form-grid .full{ grid-column: 1 / -1 }
.contact-form label{display:flex;flex-direction:column;gap:6px;font-weight:600;color:var(--gray-600)}
.contact-form input,.contact-form textarea{width:100%;padding:12px 14px;border:1px solid var(--border);border-radius:10px;background:#fff;font:inherit;line-height:1.4;transition:border-color .15s ease, box-shadow .15s ease, background .15s ease}
.contact-form textarea{ resize: vertical; min-height: 96px }
.contact-form input::placeholder,.contact-form textarea::placeholder{color:#94a3b8;font-weight:400;font-style: italic}
.contact-form input:focus,.contact-form textarea:focus{outline:none;border-color:var(--blue);box-shadow:0 0 0 3px rgba(11, 95, 255, .12)}
#contact .cta-card .btn.primary{margin-top:6px;align-self:start;padding:10px 16px;border-radius:10px}

/* Success / error messages under the contact form */
#form-success{ color: var(--pos); font-weight: 800; margin-top: 10px; }
#form-error{ color: var(--neg); font-weight: 800; margin-top: 10px; }

/* ---------- Footer ---------- */
.site-footer{border-top:1px solid var(--border);padding:16px 0;background:#f6f3ee}

/* ---------- Zoomable images & Lightbox ---------- */
.zoom-wrap{ position:relative; display:inline-block; cursor: zoom-in; border-radius:16px; overflow:hidden;
  margin-bottom: 12px;
}
.zoom-wrap img{
  display:block;
  margin-bottom:0;
}
.zoom-wrap::after{ content:""; position:absolute; inset:0; background:rgba(0,0,0,0); transition: background .2s ease;
   display: none;
}
.zoom-wrap::before{
  content:""; position:absolute; right:14px; bottom:14px; width:24px; height:24px; border-radius:999px;
  display: none;
  background: rgba(0,0,0,.55);
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="white" d="M10 18a8 8 0 1 1 5.3-14l4.7 4.7-1.4 1.4-3.1-3.1A8 8 0 0 1 10 18Zm0-2a6 6 0 1 0 0-12 6 6 0 0 0 0 12Z"/></svg>') center/60% no-repeat;
          mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="white" d="M10 18a8 8 0 1 1 5.3-14l4.7 4.7-1.4 1.4-3.1-3.1A8 8 0 0 1 10 18Zm0-2a6 6 0 1 0 0-12 6 6 0 0 0 0 12Z"/></svg>') center/60% no-repeat;
  opacity:0; transform: translateY(4px); transition: opacity .2s ease, transform .2s ease;
}
.zoom-wrap:hover::after{ background: rgba(0,0,0,.12); }
.zoom-wrap:hover::before{ opacity:1; transform: none; }

.lightbox{ position:fixed; inset:0; display:none; place-items:center; background:rgba(10,12,20,.65); backdrop-filter: blur(2px); z-index:100; }
.lightbox.open{ display:grid; }
.lightbox figure{ position:relative; margin:0; }
.lightbox img{ max-width:92vw; max-height:88vh; border-radius:16px; box-shadow:0 30px 60px rgba(0,0,0,.45); display:block; animation: lbIn .18s ease-out; }
.lightbox .close{ position:absolute; top:12px; right:12px; width:36px; height:36px; border:0; border-radius:999px; background:#fff; font-size:22px; line-height:36px; cursor:pointer; }
@keyframes lbIn{ from{ transform: scale(.965); opacity:.45 } to{ transform: scale(1); opacity:1 } }

/* Add top offset for anchor jump targets */
section {
  scroll-margin-top: 80px; /* adjust this to match your header height */
}

/* Smooth scrolling for anchor links */
html {
  scroll-behavior: smooth;
}
