/* Bingham Scientific: deck-matched theme, full-bleed layout ("Website Content Concept" PowerPoint)
   Palette and type taken 1 to 1 from the slide XML. Font: Aptos (deck font), with
   Segoe UI Variable / Inter as fallbacks where Aptos is not installed. */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");

:root {
  /* Deck palette */
  --teal: #17a3a0;          /* accent bars, bullets, buttons */
  --teal-light: #7fd7d2;    /* headings on navy */
  --navy: #10243b;          /* headings, dark panels */
  --ink: #24364a;           /* body text on light */
  --slate: #617487;         /* secondary text */
  --blue: #176b91;          /* active nav label, panel headings */
  --line: #d8e5eb;          /* hairlines and dividers */
  --mist: #e1ebf0;          /* text on navy, light chrome */
  --panel: #edf5f7;         /* light content panels */
  --steel: #afc7d5;         /* muted text on navy */
  --white: #ffffff;

  /* Legacy names kept so nothing else breaks */
  --navy-deep: var(--navy);
  --blue-light: var(--teal-light);
  --muted: var(--slate);

  --max: 1280px;
  --gutter: clamp(20px, 4vw, 56px);
  --radius: 6px;
  --radius-lg: 8px;
  --shadow-sm: 0 1px 2px rgba(16,36,59,.06), 0 2px 8px rgba(16,36,59,.05);
  --shadow: 0 2px 6px rgba(16,36,59,.06), 0 12px 32px rgba(16,36,59,.10);
  --ease: cubic-bezier(.2,.8,.2,1);
  --sans: Aptos, "Aptos Display", "Segoe UI Variable Text", "Segoe UI", Inter, system-ui, -apple-system, Arial, sans-serif;
  --display: Aptos, "Aptos Display", "Segoe UI Variable Display", "Segoe UI", Inter, system-ui, -apple-system, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; color: var(--ink); background: var(--white); font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: var(--blue); }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
::selection { background: rgba(23,163,160,.22); color: var(--navy); }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; box-shadow: 0 0 0 4px var(--white); border-radius: 4px; }
.wrap { width: min(var(--max), calc(100% - 2 * var(--gutter))); margin-inline: auto; }

/* ---------- Header (slide masthead) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.92);
  backdrop-filter: saturate(1.4) blur(16px); -webkit-backdrop-filter: saturate(1.4) blur(16px);
  transition: box-shadow .2s ease;
}
.site-header { border-bottom: 1px solid var(--line); }
.site-header.scrolled { background: rgba(255,255,255,.96); box-shadow: 0 8px 24px rgba(16,36,59,.08); }
.header-inner { min-height: 84px; display: flex; align-items: center; gap: 22px; transition: min-height .2s var(--ease); }
.site-header.scrolled .header-inner { min-height: 70px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; flex: 0 0 auto; }
.brand img { width: auto; height: 54px; transition: height .2s var(--ease); }
.site-header.scrolled .brand img { height: 46px; }
.site-header nav { display: flex; align-items: center; gap: clamp(14px, 1.8vw, 28px); margin-left: auto; }
.site-header nav a, .nav-services summary { position: relative; color: var(--ink); text-decoration: none; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; transition: color .15s ease; }
.site-header nav > a:not(.nav-contact)::after, .nav-services summary::before { content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 2px; border-radius: 2px; background: var(--teal); transform: scaleX(0); transition: transform .22s var(--ease); }
.site-header nav > a:hover, .site-header nav > a.active, .nav-services summary:hover, .nav-services summary.active { color: var(--blue); }
.site-header nav > a.active::after, .site-header nav > a:not(.nav-contact):hover::after, .nav-services summary:hover::before { transform: scaleX(1); }
.nav-services { position: relative; }
.nav-services summary { display: flex; align-items: center; gap: 7px; list-style: none; cursor: pointer; }
.nav-services summary::-webkit-details-marker { display: none; }
.nav-services summary::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .18s ease; }
.nav-services[open] summary::after { transform: translateY(2px) rotate(225deg); }
.nav-dropdown {
  width: min(680px, 80vw); display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 2px 12px;
  position: absolute; top: calc(100% + 22px); left: 50%; padding: 10px; background: rgba(255,255,255,.97);
  border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: 0 8px 16px rgba(16,36,59,.08), 0 24px 56px rgba(16,36,59,.16);
  transform: translateX(-45%); animation: flyout .18s var(--ease) both; backdrop-filter: blur(20px);
}
@keyframes flyout { from { opacity: 0; transform: translateX(-45%) translateY(-6px); } to { opacity: 1; transform: translateX(-45%); } }
.nav-dropdown::before { content: ""; position: absolute; inset: -23px 0 auto; height: 22px; }
.site-header .nav-dropdown a { display: block; padding: 9px 12px; border-radius: var(--radius); color: var(--ink); font-size: 13.5px; font-weight: 500; letter-spacing: 0; text-transform: none; line-height: 1.3; transition: background .14s ease, color .14s ease; }
.site-header .nav-dropdown a:hover { background: var(--panel); color: var(--navy); }
.site-header .nav-dropdown a:first-child { grid-column: 1/-1; padding: 12px 14px 12px 16px; margin-bottom: 6px; background: var(--panel); box-shadow: inset 4px 0 0 var(--teal); }
.nav-dropdown strong, .nav-dropdown span { display: block; }
.nav-dropdown strong { color: var(--navy); font-size: 14px; font-weight: 700; }
.nav-dropdown span { margin-top: 3px; color: var(--slate); font-size: 12px; font-weight: 400; }
.site-header nav .nav-contact { padding: 10px 16px; color: var(--white); background: var(--teal); border-radius: var(--radius); box-shadow: 0 1px 2px rgba(16,36,59,.12); transition: background .16s ease, transform .16s var(--ease), box-shadow .16s ease; }
.site-header nav .nav-contact:hover, .site-header nav .nav-contact.active { color: var(--white); background: #138d8a; }
.site-header nav .nav-contact:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(23,163,160,.28); }
.menu-toggle { display: none; position: relative; width: 44px; height: 42px; padding: 8px; border: 1px solid transparent; border-radius: var(--radius); background: transparent; cursor: pointer; transition: background .18s ease, border-color .18s ease; }
.menu-toggle:hover { background: var(--panel); border-color: var(--line); }
.menu-toggle span { display: block; width: 22px; height: 2px; margin: 5px auto; border-radius: 2px; background: var(--navy); transition: transform .2s var(--ease), opacity .2s ease; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.menu-toggle b { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Hero (slide 1, full bleed) ---------- */
main { animation: content-in .5s var(--ease) both; }
@keyframes content-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.hero {
  position: relative; overflow: hidden; isolation: isolate; color: var(--white);
  background:
    radial-gradient(900px 620px at 82% 45%, rgba(23,163,160,.22), transparent 70%),
    radial-gradient(700px 500px at 0% 100%, rgba(23,107,145,.28), transparent 70%),
    var(--navy);
}
.hero::after { content: ""; position: absolute; z-index: -1; inset: 0; background-image: linear-gradient(rgba(127,215,210,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(127,215,210,.05) 1px, transparent 1px); background-size: 56px 56px; -webkit-mask-image: linear-gradient(90deg, transparent 35%, #000 80%); mask-image: linear-gradient(90deg, transparent 35%, #000 80%); }
.hero .wrap { position: relative; z-index: 1; min-height: clamp(560px, 74vh, 780px); display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; padding: clamp(64px, 8vw, 112px) min(36%, 470px) clamp(64px, 8vw, 112px) 0; }
.hero h1 { max-width: 680px; margin: 0 0 20px; color: var(--white); font-size: clamp(2rem, 3.2vw, 3rem); font-weight: 700; line-height: 1.12; letter-spacing: -.015em; }
.hero .lead { max-width: 600px; margin: 0; color: var(--mist); font-size: clamp(1rem, 1.1vw, 1.15rem); line-height: 1.6; }
.hero .button { margin-top: 28px; background: var(--teal); }
.hero .button:hover { background: #1bb5b2; box-shadow: 0 10px 28px rgba(23,163,160,.35); }
.hero img, .hero .hero-art {
  position: absolute; z-index: 0; top: 0; height: 100%; width: min(48vw, 820px);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 28%); mask-image: linear-gradient(90deg, transparent 0, #000 28%);
  right: max(-40px, calc((100% - var(--max)) / 2 - 120px));
  object-fit: cover; object-position: center; pointer-events: none; animation: helix-in 1s var(--ease) .1s both;
}
@keyframes helix-in { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
@media (min-width: 901px) {
  /* Desktop: show the whole DNA image, contained and vertically centred on the right, edges feathered into the navy */
  .hero img, .hero .hero-art {
    top: 0; bottom: 0; margin: auto 0; height: min(calc(100% - 48px), 880px); width: auto; max-width: 56vw;
    right: max(0px, calc((100% - var(--max)) / 2 - 140px));
    object-fit: contain; object-position: center right;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%), linear-gradient(180deg, transparent 0, #000 6%, #000 94%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%), linear-gradient(180deg, transparent 0, #000 6%, #000 94%, transparent 100%);
    mask-composite: intersect;
  }
}

/* Home is a single full-screen hero under the header */
.page-index { display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; }
.page-index main { flex: 1 0 auto; display: flex; flex-direction: column; }
.page-index .hero { flex: 1 0 auto; display: flex; align-items: stretch; }
.page-index .hero .wrap { min-height: 0; }

/* ---------- Typography ---------- */
h1, h2, h3 { color: var(--navy); font-family: var(--display); font-weight: 700; }
h1 { font-size: clamp(1.75rem, 2.6vw, 2.5rem); line-height: 1.18; letter-spacing: -.01em; }
h2 { margin: 10px 0 14px; font-size: clamp(1.5rem, 2.1vw, 2rem); line-height: 1.2; letter-spacing: -.01em; }
h3 { line-height: 1.3; }
p { margin: 0 0 14px; }
.lead { max-width: 820px; color: var(--slate); font-size: 1.0625rem; line-height: 1.6; }
.button {
  display: inline-flex; min-height: 44px; align-items: center; justify-content: center; margin-top: 16px; padding: 0 22px;
  border: 0; border-radius: var(--radius); background: var(--teal); color: var(--white); text-decoration: none;
  font-size: 13px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  box-shadow: 0 1px 2px rgba(16,36,59,.14); cursor: pointer;
  transition: background .18s ease, transform .18s var(--ease), box-shadow .18s ease;
}
.button:hover { background: #138d8a; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(23,163,160,.28); }
.button:active { transform: translateY(0); box-shadow: 0 2px 6px rgba(16,36,59,.16); }
.button:disabled { opacity: .6; cursor: progress; transform: none; }

/* ---------- Sections and cards (slides 4, 5) ---------- */
.section { padding: clamp(44px, 5vw, 72px) 0; }
.section-heading { max-width: 860px; margin-bottom: 30px; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; margin-top: 30px; }
.card {
  position: relative; min-height: 180px; display: flex; flex-direction: column; padding: 20px 22px 18px 26px; overflow: hidden;
  background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-sm); border-radius: var(--radius-lg);
  transition: transform .22s var(--ease), box-shadow .22s ease, background .22s ease, border-color .22s ease;
}
.card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--teal); }
.card:hover { transform: translateY(-4px); border-color: #b9d3dd; box-shadow: var(--shadow); }
.card::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, var(--teal), var(--teal-light)); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.card:hover::after { transform: scaleX(1); }
.card h3 { margin: 0 0 6px; color: var(--navy); font-size: 17px; }
.card p { color: var(--ink); font-size: 14.5px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.card a { display: inline-flex; align-items: center; gap: 8px; width: fit-content; margin-top: auto; padding-top: 8px; color: var(--blue); text-decoration: none; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.card a::after { content: ""; width: 7px; height: 7px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); transition: transform .2s var(--ease); }
.card a:hover { color: var(--teal); }
.card a:hover::after { transform: translateX(3px) rotate(45deg); }
.card a::before { content: ""; position: absolute; inset: 0; }
.cards > .card:last-child:nth-child(3n+1) { grid-column: 1/-1; min-height: 0; }
.cards > .card:last-child:nth-child(3n+1) p { -webkit-line-clamp: 3; max-width: 1000px; }

/* ---------- Inner page title (slide title block) ---------- */
.page-hero {
  position: relative; overflow: hidden; padding: clamp(32px, 4vw, 56px) 0; border-bottom: 1px solid var(--line);
  background: radial-gradient(700px 360px at 92% 0%, rgba(127,215,210,.35), transparent 70%), linear-gradient(180deg, var(--panel), #f6fafb);
}
.page-hero::after { content: ""; position: absolute; right: -60px; top: 50%; width: 340px; height: 340px; border: 1px solid rgba(23,163,160,.18); border-radius: 50%; transform: translateY(-50%); box-shadow: 0 0 0 40px rgba(23,163,160,.04), 0 0 0 80px rgba(23,163,160,.03); pointer-events: none; }
.page-hero .wrap { position: relative; }
.page-hero h1 { max-width: 1000px; margin: 0; color: var(--navy); font-size: clamp(1.75rem, 2.6vw, 2.5rem); }
.page-hero + .section { padding-top: clamp(32px, 3.5vw, 48px); }
.content { max-width: 960px; }
.content .line { margin: 0; padding: 15px 0; border-bottom: 1px solid var(--line); color: var(--slate); font-size: 17px; }
.content .line:first-child { padding-top: 0; border: 0; color: var(--teal); font-size: 12px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.content .line:nth-child(2) { color: var(--blue); font-size: 13px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.content .line:nth-child(3) { padding: 10px 0 16px; border: 0; color: var(--navy); font: 700 clamp(28px,3vw,40px)/1.18 var(--display); }
.content .line:nth-child(4) { padding: 0 0 30px; color: var(--slate); font-size: 20px; line-height: 1.6; }
.content .duplicate-label { display: none; }
.content-pro { max-width: none; }
.content-intro { max-width: 960px; margin-bottom: 30px; }
.content-lead { margin: 0; color: var(--slate); font-size: 1.0625rem; line-height: 1.6; }
.content-tagline { margin: 0 0 8px; color: var(--navy); font-size: 1.125rem; font-weight: 700; }
.founder-name { margin: 0 0 10px; color: var(--navy); font: 700 clamp(1.5rem, 2.1vw, 2rem)/1.2 var(--display); }
.content-grid { display: grid; grid-template-columns: minmax(0, 1.85fr) minmax(280px, 1fr); gap: clamp(24px, 3vw, 40px); align-items: stretch; }

/* bullet list with teal square markers (slides 6 to 13) */
.capability-list h2 { margin: 0 0 12px; color: var(--blue); font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.capability-list > p { max-width: 760px; margin: 0; color: var(--ink); font-size: 16px; }
.capability-list ul { display: grid; grid-template-columns: 1fr; gap: 0; margin: 0; padding: 0; list-style: none; }
.capability-list li { position: relative; padding: 9px 10px 9px 24px; color: var(--ink); font-size: 16px; line-height: 1.45; border-bottom: 1px solid transparent; transition: background .16s ease; }
.capability-list li::before { content: ""; width: 8px; height: 8px; position: absolute; left: 4px; top: 17px; background: var(--teal); }
.capability-list li:hover { background: linear-gradient(90deg, var(--panel), transparent); }
.page-about .capability-list { padding: 28px 30px; background: var(--panel); border-radius: var(--radius-lg); }

/* navy callout panel (slide 6 "Molecular insight") */
.content-focus { position: relative; align-self: start; padding: 30px; border: 0; border-radius: var(--radius-lg); background: var(--navy); color: var(--mist); box-shadow: var(--shadow); }
.content-focus > span { display: block; padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid var(--teal); color: var(--white); font-size: 16px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; line-height: 1.25; }
.page-about .content-focus { align-self: stretch; }
.page-about .content-focus > span { padding-bottom: 0; border: 0; color: var(--teal-light); font-size: 14px; }
.content-focus p { margin: 0; color: var(--mist); font-size: 15px; line-height: 1.6; }
.content-focus strong { color: var(--white); font-size: 1.1em; line-height: 1.3; }

.expertise-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; border: 0; }
.expertise-grid article { position: relative; min-height: 140px; padding: 22px 24px 22px 28px; overflow: hidden; border: 0; border-radius: var(--radius-lg); background: var(--panel); transition: transform .22s var(--ease), box-shadow .22s ease, background .22s ease; }
.expertise-grid article::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--teal); }
.expertise-grid article:hover { transform: translateY(-2px); background: var(--white); box-shadow: var(--shadow); }
.expertise-grid h2 { margin: 0 0 6px; color: var(--navy); font-size: 17px; }
.expertise-grid p { margin: 0; color: var(--ink); font-size: 14.5px; line-height: 1.5; }
.engagement-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.principles { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 26px; margin-top: 26px; padding: 18px 24px; border: 0; border-radius: var(--radius-lg); background: var(--navy); color: var(--white); font-weight: 600; }
.principles strong { width: auto; color: var(--teal-light); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.principles span { position: relative; padding-left: 15px; }
.principles span::before { content: ""; width: 6px; height: 6px; position: absolute; left: 0; top: .6em; background: var(--teal); }

.gallery { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; margin: 36px 0; }
.gallery img { width: 100%; height: 340px; object-fit: contain; padding: 16px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s ease; }
.gallery img:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.gallery img.wide { grid-column: 1/-1; height: auto; max-height: 640px; }
.quicklinks { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0; }
.quicklinks a { padding: 9px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); color: var(--ink); text-decoration: none; transition: border-color .16s ease, background .16s ease; }
.quicklinks a:hover { border-color: var(--teal); background: var(--panel); }
.notice { padding: 15px 18px; border: 0; border-left: 4px solid var(--teal); border-radius: var(--radius); background: var(--panel); }

/* ---------- Contact (slide 17 style) ---------- */
.contact-layout { background: linear-gradient(180deg, var(--white), var(--panel)); }
.contact-grid { display: grid; grid-template-columns: 1fr .9fr; gap: clamp(28px,4vw,56px); align-items: start; }
.contact-intro { position: relative; overflow: hidden; padding: clamp(30px, 4vw, 48px); border-radius: 12px; background: radial-gradient(500px 360px at 100% 0%, rgba(23,163,160,.2), transparent 70%), var(--navy); color: var(--mist); box-shadow: var(--shadow); }
.contact-intro::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 10px; background: var(--teal); }
.contact-intro h2 { margin-top: 0; color: var(--white); }
.contact-intro > p { max-width: 620px; color: var(--steel); font-size: 16px; }
.contact-intro dl { margin: 30px 0 0; }
.contact-intro dl div { display: grid; grid-template-columns: 150px 1fr; gap: 18px; padding: 15px 0; border-top: 1px solid rgba(175,199,213,.25); }
.contact-intro dt { color: var(--white); font-weight: 700; }
.contact-intro dd { margin: 0; color: var(--steel); }
.contact-intro a { color: var(--teal-light); }
.contact-form { padding: 32px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.form-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 15px; margin-bottom: 22px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.form-heading span { color: var(--blue); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.form-heading p { margin: 0; color: var(--slate); font-size: 12px; }
.contact-form label { display: block; margin-bottom: 18px; }
.contact-form label > span { display: block; margin-bottom: 6px; color: var(--navy); font-size: 13px; font-weight: 600; }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid #c5d4dc; border-bottom: 2px solid #9db3c0; border-radius: var(--radius);
  background-color: #fbfdfe; color: var(--ink); outline: 0; transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
.contact-form select { appearance: none; padding-right: 42px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1.5 5 5 5-5' fill='none' stroke='%2310243b' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.contact-form input:hover, .contact-form select:hover, .contact-form textarea:hover { background-color: var(--white); border-color: #a9bdc8; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { background-color: var(--white); border-color: #c5d4dc; border-bottom-color: var(--teal); box-shadow: 0 3px 0 -1px var(--teal); }
.contact-form textarea { resize: vertical; }
.contact-form .button { width: 100%; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-status { min-height: 24px; margin-bottom: 0; color: var(--slate); }
.form-status.error { color: #c42b1c; }
.form-status.success { color: var(--teal); font-weight: 650; }

/* ---------- Facility viewer (slide 15) ---------- */
.facility-section { padding-top: 40px; }
.facility-viewer { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow); }
.facility-toolbar { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 10px 14px 10px 18px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, #f6f9fb, #eef4f7); }
.facility-toolbar strong, .facility-toolbar span { display: block; }
.facility-toolbar strong { color: var(--navy); }
.facility-toolbar span { color: var(--slate); font-size: 12px; }
.facility-controls { display: flex; align-items: center; gap: 4px; padding: 3px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white); }
.facility-controls button { min-width: 38px; min-height: 36px; padding: 6px 11px; border: 0; border-radius: var(--radius); background: transparent; color: var(--navy); cursor: pointer; transition: background .14s ease, color .14s ease; }
.facility-controls button:hover { background: var(--panel); color: var(--blue); }
.facility-controls button:active { background: var(--line); }
.facility-controls output { min-width: 54px; padding: 7px 5px; border-radius: var(--radius); background: var(--panel); text-align: center; color: var(--slate); font-size: 12px; }
.facility-stage { height: min(70vh,720px); min-height: 500px; position: relative; overflow: hidden; background: #f4f8fa; background-image: radial-gradient(var(--line) 1px, transparent 1px); background-size: 18px 18px; cursor: grab; touch-action: none; }
.facility-stage.dragging { cursor: grabbing; }
.facility-stage img { position: absolute; left: 0; top: 0; width: auto; max-width: none; transform-origin: 0 0; user-select: none; pointer-events: none; will-change: transform; }
.facility-viewer:fullscreen { background: var(--white); }
.facility-viewer:fullscreen .facility-stage { height: calc(100vh - 64px); }

/* ---------- Footer (full-bleed navy closing band, slide 17) ---------- */
.footer { position: relative; padding: clamp(40px, 5vw, 60px) 0 28px; color: var(--steel); background: radial-gradient(700px 400px at 100% 0%, rgba(23,163,160,.16), transparent 70%), var(--navy); border-top: 6px solid var(--teal); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px 64px; align-items: start; }
.footer p { margin: 6px 0; color: var(--steel); font-size: 13.5px; }
.footer-brand { color: var(--white); text-decoration: none; font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.footer-intro p { max-width: 360px; }
.footer-column { display: grid; gap: 7px; }
.footer-column strong { margin-bottom: 8px; padding-bottom: 10px; border-bottom: 1px solid rgba(127,215,210,.25); color: var(--teal-light); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.footer a { width: fit-content; color: var(--mist); text-decoration: none; font-size: 14px; transition: color .14s ease, transform .14s var(--ease); }
.footer-column a:hover { color: var(--white); transform: translateX(3px); }
.footer-brand:hover { color: var(--teal-light); }
.footer-meta { grid-column: 1/-1; display: flex; justify-content: space-between; gap: 20px; margin-top: 18px; padding-top: 22px; border-top: 1px solid rgba(175,199,213,.18); }
.footer-meta p { color: var(--steel); font-size: 13px; }

/* ---------- Scroll reveal (enabled by site.js only when motion is allowed) ---------- */
.reveal-on .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--reveal-i, 0) * 70ms); }
.reveal-on .reveal.is-visible { opacity: 1; transform: none; }
.reveal-on .card.reveal.is-visible { transition: opacity .7s var(--ease), transform .22s var(--ease), box-shadow .22s ease, border-color .22s ease; transition-delay: calc(var(--reveal-i, 0) * 70ms), 0s, 0s, 0s; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .header-inner { min-height: 72px; border-bottom: 0; }
  .site-header { box-shadow: 0 1px 0 var(--line); }
  .brand img, .site-header.scrolled .brand img { height: 46px; }
  .site-header.scrolled .header-inner { min-height: 64px; }
  .menu-toggle { display: block; margin-left: auto; }
  .site-header nav { display: none; position: absolute; inset: 100% 0 auto; max-height: calc(100vh - 80px); overflow-y: auto; padding: 14px 20px 22px; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: 0 16px 32px rgba(16,36,59,.12); flex-direction: column; align-items: stretch; gap: 2px; }
  .site-header nav.open { display: flex; animation: content-in .2s var(--ease) both; }
  .site-header nav > a, .nav-services summary { padding: 11px 6px; font-size: 14px; }
  .site-header nav > a:not(.nav-contact)::after, .nav-services summary::before { display: none; }
  .nav-dropdown { width: auto; grid-template-columns: 1fr; position: static; padding: 4px 0 10px 12px; border: 0; border-left: 2px solid var(--teal); border-radius: 0; box-shadow: none; transform: none; animation: none; background: transparent; backdrop-filter: none; }
  .nav-dropdown::before { display: none; }
  .site-header .nav-dropdown a { padding: 8px 10px; font-size: 14px; }
  .site-header .nav-dropdown a:first-child { grid-column: auto; }
  .site-header nav .nav-contact { margin-top: 10px; padding: 13px 14px; text-align: center; }
  .hero .wrap { min-height: 0; padding: 56px 0 300px; }
  .hero img, .hero .hero-art { top: auto; bottom: -50px; right: 50%; width: 320px; height: 380px; transform: translateX(50%) rotate(90deg); animation: none; -webkit-mask-image: none; mask-image: none; }
  .page-hero::after { display: none; }
  .cards { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .cards > .card:last-child:nth-child(3n+1) { grid-column: auto; }
  .cards > .card:last-child:nth-child(odd) { grid-column: 1/-1; }
  .content-grid { grid-template-columns: 1fr; }
  .expertise-grid, .engagement-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-intro { grid-column: 1/-1; }
}
@media (max-width: 620px) {
  :root { --gutter: 18px; }
  .brand img, .site-header.scrolled .brand img { height: 40px; }
  .hero .wrap { padding: 44px 0 250px; }
  .hero h1 { font-size: 1.75rem; margin: 0 0 14px; }
  .hero .lead { font-size: 1rem; }
  .hero .button { width: 100%; }
  .hero img, .hero .hero-art { width: 260px; height: 310px; bottom: -40px; }
  h1 { font-size: 1.625rem; }
  .cards { grid-template-columns: 1fr; gap: 12px; }
  .card { min-height: 0; }
  .content-intro { margin-bottom: 24px; }
  .content-lead { font-size: 1rem; }
  .capability-list li { font-size: 15.5px; }
  .expertise-grid, .engagement-grid { grid-template-columns: 1fr; }
  .expertise-grid article { min-height: 0; }
  .content-focus { padding: 24px; }
  .page-about .capability-list { padding: 22px; }
  .principles { justify-content: flex-start; }
  .gallery { grid-template-columns: 1fr; }
  .gallery img { height: 260px; }
  .gallery img.wide { grid-column: auto; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .contact-form { padding: 22px; }
  .contact-intro { padding: 28px 22px 28px 30px; }
  .form-heading { display: block; }
  .contact-intro dl div { grid-template-columns: 1fr; gap: 4px; }
  .facility-toolbar { align-items: flex-start; flex-direction: column; }
  .facility-controls { width: 100%; overflow-x: auto; }
  .facility-stage { min-height: 520px; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .footer-intro, .footer-meta { grid-column: auto; }
  .footer-meta { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
