/* ==========================================================================
   Zucker Institute for Innovation Commercialization — homepage refresh
   Staging build for client review. Palette and type taken from the live site.
   ========================================================================== */

:root {
  --navy: #0C2A46;
  --navy-mid: #153D61;
  --navy-deep: #071C30;
  --teal: #2E9FB6;
  --teal-ink: #1B7488;   /* AA on white: 5.38:1 */
  --teal-bright: #4FBBD0;
  --ink: #222222;
  --body: #3F4A55;
  --line: #DCE3EA;
  --white: #FFFFFF;
  --wrap: 1240px;
  --gut: clamp(20px, 4vw, 56px);
  --r: 2px;
}

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

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

body {
  margin: 0;
  font-family: "Roboto", Arial, Helvetica, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--body);
  background: var(--white);
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: "Lato", "Roboto", Arial, sans-serif;
  color: var(--navy);
  line-height: 1.12;
  margin: 0 0 .6em;
  font-weight: 900;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1.1em; }
img { max-width: 100%; height: auto; display: block; }

a { color: var(--teal-ink); }
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--teal-bright);
  outline-offset: 3px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gut);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 12px 20px;
  z-index: 200;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ------------------------------------------------------ */
.btn {
  display: inline-block;
  font-family: "Lato", sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .09em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 26px;
  border-radius: var(--r);
  transition: background-color .18s ease, color .18s ease, transform .18s ease;
}
.btn-teal { background: var(--teal-ink); color: #fff; }
.btn-teal:hover { background: #14606f; }
.btn-ghost { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.7); }
.btn-ghost:hover { background: #fff; color: var(--navy); }
.btn-outline { background: transparent; color: var(--navy); border: 2px solid var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }

/* ---------- Header ------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 92px;
}
.brand img { width: clamp(168px, 18vw, 224px); }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  background: none;
  border: 0;
  font: 700 13px/1 "Lato", sans-serif;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--navy);
  cursor: pointer;
  padding: 10px 4px;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  position: relative;
}
.nav-toggle-bars::before,
.nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -7px; }
.nav-toggle-bars::after { top: 7px; }

.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.8vw, 30px);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-list a {
  font-family: "Lato", sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
  padding: 8px 0;
  display: inline-block;
  border-bottom: 2px solid transparent;
}
.nav-list a:hover,
.nav-list a[aria-current="page"] { color: var(--teal-ink); border-bottom-color: var(--teal); }

.has-sub { position: relative; }
.sub-toggle {
  border: 0;
  background: none;
  cursor: pointer;
  padding: 6px;
  margin-left: 2px;
}
.sub-toggle::after {
  content: "";
  display: block;
  width: 7px;
  height: 7px;
  border-right: 2px solid var(--navy);
  border-bottom: 2px solid var(--navy);
  transform: rotate(45deg) translate(-2px, -2px);
}
.sub-list {
  position: absolute;
  left: -18px;
  top: calc(100% + 6px);
  min-width: 232px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 18px 34px rgba(12, 42, 70, .13);
  list-style: none;
  margin: 0;
  padding: 8px 0;
  display: none;
}
.sub-list a { display: block; padding: 9px 18px; border-bottom: 0; font-weight: 400; }
.has-sub:hover .sub-list,
.has-sub:focus-within .sub-list,
.sub-list.open { display: block; }

/* ---------- Hero --------------------------------------------------------- */
.hero {
  position: relative;
  background: #fff;
  overflow: hidden;
  isolation: isolate;
}
.hero-panel {
  position: relative;
  background:
    linear-gradient(100deg, rgba(12,42,70,.985) 0%, rgba(12,42,70,.94) 52%, rgba(12,42,70,.99) 100%),
    url("/assets/img/hero-lab.jpg") 70% 40%/cover no-repeat;
  clip-path: polygon(0 0, 100% 0, 82% 100%, 0 100%);
  padding-block: clamp(64px, 9vw, 132px);
  min-height: clamp(300px, 34vw, 430px);
  display: flex;
  align-items: center;
}
.hero-panel::before {
  /* teal slash on the left edge */
  content: "";
  position: absolute;
  inset-block: 0;
  left: 0;
  width: clamp(34px, 5vw, 74px);
  background: var(--teal);
  clip-path: polygon(0 0, 100% 0, 62% 100%, 0 100%);
  opacity: .95;
}
.hero h1 {
  color: #fff;
  font-size: clamp(2.05rem, 4.5vw, 3.6rem);
  max-width: 26ch;
  margin: 0;
  text-wrap: balance;
}
.hero h1 .lede { display: block; }
.hero-hex {
  position: absolute;
  right: clamp(-40px, -2vw, 0px);
  top: 50%;
  transform: translateY(-50%);
  width: clamp(180px, 26vw, 340px);
  opacity: .95;
  z-index: -1;
  pointer-events: none;
}

/* ---------- Technology carousel ------------------------------------------ */
.tech {
  background: var(--navy);
  color: #fff;
  padding-block: clamp(48px, 6vw, 84px);
  position: relative;
  overflow: hidden;
}
.tech .eyebrow {
  font: 700 13px/1 "Lato", sans-serif;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--teal-bright);
  margin: 0 0 14px;
}
.tech h2 { color: #fff; font-size: clamp(1.7rem, 3.2vw, 2.5rem); margin-bottom: .35em; }
.tech .tech-intro { color: rgba(255,255,255,.82); max-width: 62ch; }

.tech-head {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 32px;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 30px;
}
.tech-controls { display: flex; gap: 10px; }
.tech-btn {
  width: 44px;
  height: 44px;
  border: 2px solid rgba(255,255,255,.45);
  background: transparent;
  color: #fff;
  cursor: pointer;
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: background-color .18s ease, border-color .18s ease;
}
.tech-btn:hover { background: var(--teal); border-color: var(--teal); }
.tech-btn svg { width: 16px; height: 16px; }

.tech-viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}
.tech-viewport::-webkit-scrollbar { display: none; }
.tech-track {
  display: flex;
  gap: 22px;
  width: max-content;
  padding-bottom: 4px;
}

.tech-card {
  width: 286px;
  flex: 0 0 auto;
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.14);
  color: #fff;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: border-color .18s ease, transform .18s ease, background-color .18s ease;
}
.tech-card:hover { border-color: var(--teal); background: rgba(46,159,182,.13); transform: translateY(-3px); }
.tech-card img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.tech-card .tech-body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 10px; height: 100%; }
.tech-card .chip {
  font: 700 11px/1 "Lato", sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--teal-bright);
}
.tech-card h3 {
  color: #fff;
  font-size: 1.02rem;
  line-height: 1.35;
  font-weight: 700;
  margin: 0;
}
.tech-card .tech-ref {
  margin-top: auto;
  font-size: 13px;
  color: rgba(255,255,255,.7);
  letter-spacing: .04em;
}
.tech-foot { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.tech-foot .note { font-size: 14px; color: rgba(255,255,255,.6); margin: 0; }

/* ---------- Action cards -------------------------------------------------- */
.actions {
  background: var(--navy-mid);
  position: relative;
  padding-block: clamp(52px, 6.5vw, 92px);
  overflow: hidden;
}
.actions::after {
  content: "";
  position: absolute;
  right: -60px;
  bottom: -80px;
  width: clamp(220px, 30vw, 430px);
  aspect-ratio: 1911 / 2844;
  background: url("/assets/img/hex.png") right center/contain no-repeat;
  opacity: .16;
  pointer-events: none;
}
.actions .wrap { position: relative; z-index: 1; }
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.2vw, 30px);
}
.action-card {
  background: rgba(7, 28, 48, .86);
  border: 1px solid rgba(255,255,255,.12);
  display: flex;
  flex-direction: column;
  color: #fff;
  overflow: hidden;
}
.action-card img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.action-card .action-body {
  padding: 26px 26px 30px;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.action-card h3 {
  color: #fff;
  font-size: clamp(1.15rem, 1.7vw, 1.4rem);
  letter-spacing: .02em;
  text-transform: uppercase;
  margin-bottom: .5em;
}
.action-card p { color: rgba(255,255,255,.86); margin-bottom: 26px; }
.action-card .btn { align-self: flex-start; margin-top: auto; }

/* ---------- Audience cards ------------------------------------------------ */
.audiences { padding-block: clamp(52px, 6.5vw, 92px); background: #fff; }
.section-head { max-width: 68ch; margin-bottom: clamp(28px, 3.4vw, 46px); }
.section-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.section-head p { font-size: 1.05rem; }

.audience-card {
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  background: #fff;
  transition: box-shadow .2s ease, transform .2s ease;
}
.audience-card:hover { box-shadow: 0 20px 40px rgba(12,42,70,.12); transform: translateY(-3px); }
.audience-card img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.audience-card .audience-body { padding: 26px 26px 30px; display: flex; flex-direction: column; height: 100%; }
.audience-card h3 {
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: .03em;
  margin-bottom: .55em;
}
.audience-card p { margin-bottom: 24px; }
.audience-card .btn { align-self: flex-start; margin-top: auto; }

/* ---------- Impact numbers ------------------------------------------------ */
.impact {
  background: var(--navy-deep);
  color: #fff;
  padding-block: clamp(48px, 6vw, 84px);
}
.impact h2 { color: #fff; font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
.impact .section-head p { color: rgba(255,255,255,.82); }
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.16);
}
.stat {
  background: var(--navy-deep);
  padding: 26px 22px;
}
.stat .num {
  font-family: "Lato", sans-serif;
  font-weight: 900;
  font-size: clamp(2rem, 3.6vw, 2.9rem);
  color: var(--teal-bright);
  line-height: 1;
  display: block;
  margin-bottom: 8px;
}
.stat .label {
  font-size: 14px;
  letter-spacing: .04em;
  color: rgba(255,255,255,.86);
  text-transform: uppercase;
  line-height: 1.4;
}
.impact-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  align-items: center;
  justify-content: space-between;
  margin-top: 26px;
}
.impact-foot p { margin: 0; font-size: 14px; color: rgba(255,255,255,.62); }

/* ---------- Footer -------------------------------------------------------- */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,.82);
  padding-block: clamp(44px, 5vw, 70px) 34px;
  font-size: 15px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr .9fr;
  gap: clamp(26px, 3vw, 48px);
  align-items: start;
}
.footer-brand img { width: 230px; }
.footer-brand .social {
  display: inline-flex;
  margin-top: 20px;
  color: #fff;
  padding: 4px;
}
.footer-brand .social:hover { color: var(--teal-bright); }
.footer-col h2 {
  font-size: 15px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--teal-bright);
  border-bottom: 1px solid rgba(255,255,255,.28);
  padding-bottom: 10px;
  margin-bottom: 14px;
  font-weight: 700;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-col a, .footer-legal a { color: #fff; text-decoration: none; }
.footer-col a:hover, .footer-legal a:hover { color: var(--teal-bright); text-decoration: underline; }
.footer-partners { display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.footer-partners img { width: 168px; }
.footer-partners img[alt="FRD Accel"] { width: 132px; }

.footer-legal {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.16);
  font-size: 14px;
  color: rgba(255,255,255,.66);
}
.footer-legal p { margin: 0 0 8px; max-width: 78ch; }
.footer-legal .legal-links a { color: var(--teal-bright); }
.footer-legal .credit { margin-top: 14px; font-size: 13px; color: rgba(255,255,255,.66); }
.footer-legal .credit a { color: inherit; text-decoration: underline; }

/* ---------- Interior pages ------------------------------------------------ */
.page-hero {
  background: var(--navy);
  color: #fff;
  padding-block: clamp(52px, 6vw, 96px);
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute;
  right: -30px;
  top: -70px;
  width: clamp(160px, 22vw, 300px);
  aspect-ratio: 1911 / 2844;
  background: url("/assets/img/hex.png") right top/contain no-repeat;
  opacity: .2;
  pointer-events: none;
}
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4.2vw, 3.2rem); max-width: 20ch; }
.page-hero p { color: rgba(255,255,255,.85); max-width: 62ch; font-size: 1.06rem; margin: 0; }
.page-body { padding-block: clamp(46px, 5.6vw, 82px); }
.prose { max-width: 74ch; }
.prose h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.placeholder {
  border-left: 4px solid var(--teal);
  background: #F3F7FA;
  padding: 18px 22px;
  margin: 26px 0;
  font-size: 15px;
}
.placeholder strong { color: var(--navy); }
.tile-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.2vw, 28px);
  margin-top: 34px;
}
.tile {
  border: 1px solid var(--line);
  border-top: 4px solid var(--teal);
  padding: 26px 24px 28px;
  background: #fff;
}
.tile h3 { font-size: 1.12rem; text-transform: uppercase; letter-spacing: .03em; }
.tile p { margin-bottom: 0; font-size: 15px; }

/* ---------- Responsive ---------------------------------------------------- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-panel { clip-path: polygon(0 0, 100% 0, 92% 100%, 0 100%); }
  .hero-hex { width: clamp(150px, 22vw, 230px); opacity: .7; }
}

@media (max-width: 900px) {
  .card-grid, .tile-grid { grid-template-columns: 1fr; }
  .header-inner { flex-wrap: wrap; min-height: 74px; }
  .nav-toggle { display: inline-flex; }
  .primary-nav {
    flex-basis: 100%;
    display: none;
    padding-bottom: 14px;
  }
  .primary-nav.open { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list > li { border-top: 1px solid var(--line); }
  .nav-list a { padding: 13px 2px; border-bottom: 0; }
  .has-sub { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; }
  .has-sub > a { flex: 1; }
  .sub-toggle { padding: 12px; }
  .sub-list {
    position: static;
    box-shadow: none;
    border: 0;
    border-left: 2px solid var(--teal);
    margin: 0 0 10px 6px;
    flex-basis: 100%;
    padding: 0 0 0 12px;
  }
  .has-sub:hover .sub-list:not(.open),
  .has-sub:focus-within .sub-list:not(.open) { display: none; }
  .sub-list.open { display: block; }
  .hero-panel { clip-path: none; }
  .hero-panel .wrap { padding-left: calc(var(--gut) + 34px); }
  .hero-hex { display: none; }
  .hero h1 { max-width: 100%; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .tech-card { width: 240px; }
  .actions::after { opacity: .1; }
}

@media (prefers-reduced-motion: reduce) {
  .tech-viewport { scroll-behavior: auto; scroll-snap-type: x mandatory; }
  .tech-card { scroll-snap-align: start; }
  * { transition-duration: .01ms !important; }
}

/* Visually hidden (kept for screen readers / heading order) */
.visually-hidden-heading {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ---------- Video facade (News) ------------------------------------------ */
.video-figure { margin: 26px 0 34px; }
.video-facade {
  display: block;
  position: relative;
  width: 100%;
  padding: 0;
  border: 0;
  background: var(--navy);
  cursor: pointer;
  line-height: 0;
}
.video-facade img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.video-facade::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(7, 28, 48, .22);
  transition: background-color .18s ease;
}
.video-facade:hover::after { background: rgba(7, 28, 48, .05); }
.video-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: var(--teal-ink);
  z-index: 1;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
}
.video-play::before {
  content: "";
  position: absolute;
  left: 54%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-left: 22px solid #fff;
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
}
.video-figure iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; display: block; }
.video-figure figcaption { padding-top: 16px; }
.video-figure figcaption h3 { font-size: 1.2rem; margin-bottom: .4em; }
.video-figure figcaption p { margin: 0; font-size: 15px; }
