/* ===== KDxL brand tokens: edit colours here ===== */
:root {
  --blue: #061C30;      /* KDxL Blue (primary) */
  --blue-50: #838E98;
  --blue-20: #CDD2D6;
  --teal: #45B7B6;      /* KDxL Green (primary) */
  --teal-50: #A2DBDB;
  --teal-20: #DAF1F0;
  --lime: #D9E025;      /* secondary accent */
  --lime-50: #ECF092;
  --lime-20: #F7F9D3;
  --white: #ffffff;
  --nav-h: 76px;
  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-width: none; }
html::-webkit-scrollbar { display: none; } /* hidden so the loop jump is invisible */
body { margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.7; color: var(--blue); background: var(--white); }
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.hero :focus-visible, .section--dark :focus-visible, .footer :focus-visible { outline-color: var(--lime); }

h1, h2, h3 { line-height: 1.15; margin: 0 0 1rem; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.3rem, 5vw, 4.1rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1.1rem; max-width: 62ch; }
.lead { font-size: 1.25rem; font-weight: 500; line-height: 1.55; }

/* ===== Buttons ===== */
.btn { display: inline-block; padding: .85rem 1.6rem; background: var(--lime); color: var(--blue); font: 700 1rem var(--font); text-decoration: none; border-radius: 999px; border: 2px solid var(--lime); transition: background .2s, border-color .2s; }
.btn:hover { background: var(--lime-50); border-color: var(--lime-50); }
.btn--ghost { background: transparent; color: var(--white); border-color: var(--teal); }
.btn--ghost:hover { background: var(--teal); border-color: var(--teal); color: var(--blue); }
.btn--small { padding: .5rem 1.2rem; background: var(--blue); color: var(--white); border-color: var(--blue); }
.btn--small:hover { background: var(--teal); border-color: var(--teal); color: var(--blue); }

/* ===== Navigation ===== */
.nav { position: fixed; inset: 0 0 auto 0; height: var(--nav-h); z-index: 10; display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(1.25rem, 4vw, 3rem); background: var(--white); border-bottom: 3px solid var(--teal); }
.nav__logo img { height: 44px; width: auto; }
.nav__menu { display: flex; align-items: center; gap: 2rem; }
.nav__menu a { text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav__menu a:not(.btn):hover { color: var(--teal); text-decoration: underline; text-underline-offset: 6px; }
.nav__toggle { display: none; background: none; border: 2px solid var(--blue); color: var(--blue); font: 600 .9rem var(--font); padding: .4rem .9rem; border-radius: 999px; cursor: pointer; }

/* ===== Hero ===== */
.hero { height: 100vh; height: 100svh; min-height: 560px; padding: var(--nav-h) clamp(1.25rem, 6vw, 5rem) 0; background: var(--blue); color: var(--white); display: grid; grid-template-columns: 1.25fr 1fr; align-items: center; gap: clamp(1.5rem, 5vw, 4rem); overflow: hidden; }
.hero__sub { font-size: 1.2rem; color: var(--teal-20); max-width: 52ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }

/* ===== Sections ===== */
.section { padding: clamp(4rem, 9vw, 7rem) clamp(1.25rem, 6vw, 5rem); scroll-margin-top: var(--nav-h); }
.section--tint { background: var(--teal-20); }
.section--dark { background: var(--blue); color: var(--white); }
.section--dark p { color: var(--teal-20); }
.wrap { max-width: 1120px; margin: 0 auto; }
.wrap--split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
#about .wrap--split { grid-template-columns: 1fr 1.6fr; margin-bottom: 3.5rem; }

.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 3rem clamp(2rem, 5vw, 4rem); margin-top: 2.5rem; }
.services article { border-top: 4px solid var(--teal); padding-top: 1.25rem; }

.contact { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: .9rem 1.5rem; }
.contact dt { font-weight: 700; }
.contact dd { margin: 0; }

/* ===== Placeholders (images/logos) ===== */
.ph { display: flex; align-items: center; justify-content: center; text-align: center; padding: 1.5rem; background: repeating-linear-gradient(45deg, var(--blue-20), var(--blue-20) 12px, #dde1e4 12px, #dde1e4 24px); border: 2px dashed var(--blue-50); color: var(--blue); font-size: .85rem; font-weight: 600; }
.ph--round { aspect-ratio: 1; width: min(100%, 460px); justify-self: center; border-radius: 50%; }
.ph--wide { aspect-ratio: 16 / 7; width: 100%; border-radius: 12px; }
.ph--dark { aspect-ratio: 4 / 3; border-radius: 12px; background: rgba(69,183,182,.15); border-color: var(--teal); color: var(--teal-20); }

/* ===== Footer ===== */
.footer { background: var(--blue); color: var(--white); padding: 4rem clamp(1.25rem, 6vw, 5rem) 1.5rem; border-top: 4px solid var(--teal); }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 3rem; }
.footer__logo { height: 48px; width: auto; margin-bottom: 1rem; }
.footer h3 { font-size: 1rem; color: var(--lime); }
.footer a { display: block; text-decoration: none; color: var(--teal-20); padding: .2rem 0; }
.footer a:hover { color: var(--white); text-decoration: underline; }
.footer__social { display: flex; gap: .9rem; margin-top: .2rem; }
.footer__social-link { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); padding: 0; transition: background .2s, border-color .2s; }
.footer__social-link:hover { background: var(--teal); border-color: var(--teal); text-decoration: none; }
.footer__social-link svg { width: 18px; height: 18px; fill: currentColor; }
.footer__social-link span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.footer p { color: var(--teal-50); }
.footer__legal { max-width: none; margin: 3rem 0 0; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,.15); font-size: .85rem; text-align: center; }

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; align-content: center; gap: 1.5rem; }
  .hero .ph--round { width: min(50vw, 220px); order: -1; }
  .wrap--split, #about .wrap--split, .services, .footer__grid { grid-template-columns: 1fr; }
  .nav__toggle { display: block; }
  .nav__menu { display: none; position: absolute; top: var(--nav-h); left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 1rem; padding: 1.25rem; background: var(--white); border-bottom: 3px solid var(--teal); }
  .nav__menu.is-open { display: flex; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }

/* ================= v2 additions ================= */
.hero { position: relative; }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__text, .hero .ph { position: relative; z-index: 1; }
.hero .ph--round { background: rgba(69,183,182,.12); border-color: var(--teal); color: var(--teal-20); }

/* Heading rule draws in as it scrolls into view (falls back to static) */
.section h2::after { content: ""; display: block; width: 64px; height: 4px; margin-top: .9rem; background: var(--teal); transform-origin: left; }
.section--dark h2::after { background: var(--lime); }
@keyframes draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@supports (animation-timeline: view()) {
  .section h2::after { animation: draw linear both; animation-timeline: view(); animation-range: entry 10% entry 80%; }
}

/* Lifecycle stepper: pinned while you scroll through four stages */
.steps { margin-top: 1.5rem; }
.steps__pin { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.steps__pin h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.steps__track { --p: 0; list-style: none; margin: 0; padding: 0 0 0 2.75rem; position: relative; display: grid; gap: 2.4rem; }
.steps__track::before, .steps__track::after { content: ""; position: absolute; left: 14px; top: 14px; bottom: 14px; width: 4px; border-radius: 2px; background: var(--teal-50); }
.steps__track::after { background: var(--blue); transform-origin: top; transform: scaleY(var(--p)); transition: transform .75s ease; }
.steps__track li { position: relative; font-weight: 600; font-size: 1.15rem; color: var(--blue-50); transition: color .3s; }
.steps__track li::before { content: ""; position: absolute; left: -2.75rem; top: 50%; width: 32px; height: 32px; margin-top: -16px; border-radius: 50%; background: var(--white); border: 4px solid var(--teal-50); transition: background .3s, border-color .3s, transform .3s; z-index: 1; }
.steps__track li.is-done { color: var(--blue); }
.steps__track li.is-done::before { background: var(--teal); border-color: var(--blue); }
.steps__track li.is-active { color: var(--blue); font-weight: 800; }
.steps__track li.is-active::before { background: var(--lime); border-color: var(--blue); transform: scale(1.2); }

/* Expanding panels */
.panels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; align-items: start; margin-top: 2.5rem; }
.panel { border-top: 4px solid var(--teal); padding: 1.1rem 0; }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }

/* R2D2 funnel */
.funnel { width: 100%; aspect-ratio: 16 / 10; display: block; }
.ph--strip { aspect-ratio: auto; padding: .9rem; margin-top: 1rem; }
.partner-strip { margin-top: 1rem; background: var(--white); border-radius: 12px; padding: 1.1rem 1.5rem; display: flex; align-items: center; justify-content: center; }
.partner-strip img { max-width: 160px; width: 100%; height: auto; }

@media (max-width: 860px) {
  .steps__pin { grid-template-columns: 1fr; gap: 1.5rem; }
  .steps__track { gap: 1.4rem; }
  .panels { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .section h2::after { animation: none; } .steps__track li, .steps__track li::before { transition: none; } }

/* Reveal on view (only when JS is running) */
.js .steps__pin > div:first-child { opacity: 0; transform: translateY(14px); transition: opacity .9s ease, transform .9s ease; }
.js .steps__pin > div:first-child.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .steps__pin > div:first-child { opacity: 1; transform: none; transition: none; } }

/* Pattern on the white sections, kept quiet so text stays easy to read */
#about, #team, #contact { position: relative; }
#about::before, #team::before, #contact::before { content: ""; position: absolute; inset: 0; background: url("../images/pattern.png") center top / 40px auto repeat; opacity: .08; pointer-events: none; }
#about > .wrap, #about > .marquee, #team > .wrap, #contact > .wrap { position: relative; z-index: 1; }

/* ===== Lab photo carousel (moves left to right, loops forever) ===== */
.marquee { position: relative; margin: 0 calc(-1 * clamp(1.25rem, 6vw, 5rem)); overflow: hidden; padding: 2rem 0; -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent); }
.marquee__track { display: flex; align-items: center; gap: 1.5rem; width: max-content; }
.js .marquee__track { animation: marquee 70s linear infinite; }
.marquee:hover .marquee__track, .marquee:focus-within .marquee__track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee__item { position: relative; flex: none; width: clamp(220px, 26vw, 320px); aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; box-shadow: 0 8px 24px rgba(6,28,48,.14); transition: transform .45s ease, box-shadow .45s ease; }
.marquee__item:nth-child(3n+2) { width: clamp(180px, 20vw, 260px); aspect-ratio: 3 / 4; }
.marquee__item .ph, .marquee__item img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; display: block; filter: grayscale(55%); transition: filter .5s ease, transform .6s ease; }
.marquee__item:hover, .marquee__item:focus-visible { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(6,28,48,.3); z-index: 2; }
.marquee__item:hover img, .marquee__item:focus-visible img { filter: grayscale(0%); transform: scale(1.08); }
.marquee__item figcaption { position: absolute; inset: auto 0 0 0; padding: 2.5rem .9rem .8rem; background: linear-gradient(to top, rgba(6,28,48,.88), rgba(6,28,48,0)); color: var(--white); font-weight: 600; font-size: .82rem; letter-spacing: .01em; opacity: 0; transform: translateY(8px); transition: opacity .35s ease, transform .35s ease; }
.marquee__item:hover figcaption, .marquee__item:focus-visible figcaption { opacity: 1; transform: none; }

/* ===== Team ===== */
.members { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3rem clamp(2rem, 5vw, 4rem); margin-top: 3rem; }
.member__photo { position: relative; width: min(100%, 240px); margin-bottom: 1.5rem; }
.member__photo .ph--round { width: 100%; }
.member__photo img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; }
.member__photo::after { content: ""; position: absolute; inset: -10px; border: 3px solid var(--teal); border-radius: 50%; transition: transform .4s ease; pointer-events: none; }
.member:hover .member__photo::after { transform: translate(8px, 8px); }
.member h3 { margin-bottom: .25rem; }
.member__role { font-weight: 600; color: var(--blue-50); margin-bottom: .6rem; }

/* Reveal on view for the new cards too */
.js .member { opacity: 0; transform: translateY(28px); transition: opacity 1.1s ease, transform 1.1s ease; }
.js .about__media { opacity: 0; transform: translateX(90px); transition: opacity 1s ease, transform 1s ease; }
.js .about__media.is-in { opacity: 1; transform: none; }
.js .member.is-in { opacity: 1; transform: none; }

/* Nav collapses earlier now that there are more links */
@media (max-width: 1040px) {
  .nav__toggle { display: block; }
  .nav__menu { display: none; position: absolute; top: var(--nav-h); left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 1rem; padding: 1.25rem; background: var(--white); border-bottom: 3px solid var(--teal); }
  .nav__menu.is-open { display: flex; }
}
@media (max-width: 860px) {
  .members { grid-template-columns: 1fr; }
  .member:nth-child(2) { margin-top: 0; }
  .marquee__item { width: clamp(160px, 46vw, 220px); }
  .marquee__item:nth-child(3n+2) { width: clamp(130px, 38vw, 180px); }
}
@media (prefers-reduced-motion: reduce) {
  .js .marquee__track { animation: none; }
  .marquee { overflow-x: auto; }
  .marquee__item[aria-hidden] { display: none; }
  .js .member { opacity: 1; transform: none; transition: none; }
  .js .about__media { opacity: 1; transform: none; transition: none; }
}

/* ===== Compact pass: tighter, calmer, still ours ===== */
:root { --nav-h: 68px; }
body { font-size: 1rem; line-height: 1.65; }
h1 { font-size: clamp(2.1rem, 4.4vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.15rem); margin-bottom: .75rem; }
.lead { font-size: 1.12rem; }
.hero__sub { font-size: 1.08rem; }
.nav__logo img { height: 40px; }
.section { padding: clamp(3rem, 6vw, 4.5rem) clamp(1.25rem, 6vw, 5rem); }
.section h2::after { height: 3px; width: 48px; margin-top: .6rem; }
#about .wrap--split { margin-bottom: 2rem; }
.steps { margin-top: 1rem; }
.steps__track { gap: 1.6rem; }
.panels { margin-top: 2rem; gap: 2rem; }
.members { margin-top: 2rem; gap: 2rem clamp(1.5rem, 4vw, 3rem); }
.member__photo { width: min(100%, 180px); margin-bottom: 1.25rem; }
.footer { padding: 2.5rem clamp(1.25rem, 6vw, 5rem) 1.25rem; }
.footer__legal { margin-top: 2rem; }

/* 1 + 2. Carousel stays inside the content column; images grow on hover */


/* 3. Service panels: text floats in on scroll, heading first, then the paragraph */
.js .panel h3, .js .panel p { opacity: 0; transform: translateY(28px); transition: opacity 1.1s ease, transform 1.1s ease; }
.js .panel h3 { transition-delay: var(--d, 0s); }
.js .panel p { transition-delay: calc(var(--d, 0s) + .35s); }
.js .panel.is-in h3, .js .panel.is-in p { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) { .js .panel h3, .js .panel p { opacity: 1; transform: none; transition: none; } .marquee__item { transition: none; } }

/* Team photos sit on the brand tint; contact links */
.member__photo img { background: var(--teal-20); object-position: center top; }
.contact a { text-decoration: underline; text-decoration-color: var(--teal); text-underline-offset: 3px; }
.contact a:hover { color: var(--teal); }

/* ===== Real photography ===== */
/* ===== 1. Hero: full-width, text-only (photo moved into About) ===== */
.hero { padding: var(--nav-h) 0 0; grid-template-columns: 1fr; gap: 0; align-items: center; justify-items: center; text-align: center; }
.hero__text { max-width: 900px; padding: 0 clamp(1.5rem, 6vw, 5rem); }
.hero__sub { margin-left: auto; margin-right: auto; }
.hero__actions { justify-content: center; }
@media (max-width: 860px) {
  .hero { height: auto; min-height: 100svh; grid-template-columns: 1fr; align-content: center; }
  .hero__text { padding: 1.75rem 1.25rem 2.5rem; }
}

/* ===== About: intro text paired with a photo, cue taken from Sunbird AI's layout ===== */
#about .wrap--split { grid-template-columns: 1.05fr .95fr; align-items: center; }
.about__media { position: relative; z-index: 1; }
.about__media img { width: 100%; height: 100%; max-height: 460px; object-fit: cover; border-radius: 14px; display: block; }
.about__media::before { content: ""; position: absolute; left: -14px; top: 14px; bottom: -14px; right: 14px; border: 3px solid var(--teal); border-radius: 14px; z-index: -1; }
@media (max-width: 860px) {
  .about__media { order: -1; }
  .about__media img { max-height: 320px; }
  .about__media::before { display: none; }
}

/* ===== 2. Carousel: fade-masked, uniform pacing (superseded earlier hard-edge and speed overrides) ===== */

/* ===== 3. Everything floats in like "What we do" ===== */
.js .fl { opacity: 0; transform: translateY(28px); transition: opacity 1.1s ease, transform 1.1s ease; }
.js .fl.is-in { opacity: 1; transform: none; }
.steps__track li:hover::before { background: var(--lime); border-color: var(--blue); transform: scale(1.2); }
.steps__track li { cursor: default; }

/* ===== 6. Team photos: true circles (the height attribute was stretching them) ===== */
.member__photo img { width: 100%; height: auto; aspect-ratio: 1 / 1; border-radius: 50%; display: block; }

/* ===== 7. Contact dialog ===== */
#contact-dialog { background: var(--white); color: var(--blue); width: min(92vw, 520px); max-height: 92vh; overflow: auto; border-radius: 16px; box-shadow: 0 24px 60px rgba(6,28,48,.4); }
.cd { position: relative; padding: 1.75rem; }
.cd h2 { font-size: 1.6rem; margin-bottom: .4rem; }
.cd__intro { color: var(--blue-50); margin-bottom: .5rem; }
.cd__close { position: absolute; top: .6rem; right: .8rem; width: 40px; height: 40px; border: 0; background: none; font-size: 2rem; line-height: 1; color: var(--blue); cursor: pointer; border-radius: 50%; }
.cd__close:hover { background: var(--teal-20); }
.cd label { display: block; margin-top: 1rem; font-weight: 600; font-size: .95rem; }
.cd input, .cd textarea { display: block; width: 100%; margin-top: .35rem; padding: .7rem .85rem; font: 400 1rem var(--font); color: var(--blue); background: var(--white); border: 2px solid var(--blue-20); border-radius: 8px; }
.cd textarea { resize: vertical; min-height: 120px; }
.cd input:focus, .cd textarea:focus { border-color: var(--teal); outline: 3px solid var(--teal-20); }
.cd input[aria-invalid="true"], .cd textarea[aria-invalid="true"] { border-color: #B3261E; }
.cd__err { display: block; min-height: 1.1rem; margin-top: .25rem; font-size: .85rem; font-weight: 500; color: #B3261E; }
.cd__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cd form .btn { margin-top: 1rem; cursor: pointer; }
.cd .btn:disabled { opacity: .6; cursor: progress; }
.form__status:not(:empty) { margin-top: .5rem; padding: .8rem 1rem; border-radius: 8px; font-size: .95rem; }
.form__status.is-error { background: #FDECEA; color: #8C1D18; border-left: 4px solid #B3261E; }
.form__status a { color: inherit; font-weight: 700; }
.form__done { text-align: center; padding: 1rem 0 .5rem; }
.form__done[hidden] { display: none; }
.form__done p { margin-left: auto; margin-right: auto; }
.form__tick { width: 64px; height: 64px; margin: 0 auto 1rem; border-radius: 50%; background: var(--teal); color: var(--white); font-size: 2rem; line-height: 64px; font-weight: 700; }

@media (prefers-reduced-motion: reduce) { .js .fl { opacity: 1; transform: none; transition: none; } .marquee__track { animation: none; } }

/* ===== v13: hero welcome + accreditation, contact icons ===== */
.contact { gap: 1.1rem 1.5rem; }
.contact dt { display: flex; align-items: center; gap: .65rem; min-height: 36px; }
.contact dd { padding-top: 5px; }
.contact__icon { flex: none; width: 36px; height: 36px; padding: 8px; border-radius: 50%; background: var(--teal-20); fill: none; stroke: var(--blue); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.contact a.contact__map { display: inline-flex; align-items: center; gap: .4rem; margin-top: .5rem; font-weight: 700; }
.contact__map svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.contact { align-items: start; }
@media (max-width: 860px) {
  .contact { grid-template-columns: 1fr; gap: 0; }
  .contact dt { margin-top: 1.1rem; }
  .contact dd { padding: .3rem 0 0 calc(36px + .65rem); }
}

/* ===== v14: big teal org name, decorative accreditation badge top-left ===== */
.hero__text { max-width: none; width: 100%; }
.hero__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, auto) minmax(0, 1fr); align-items: start; margin-bottom: 1.25rem; }
.hero__welcome { grid-column: 2; margin: 0; max-width: none; font-size: clamp(2.6rem, 7.4vw, 6.25rem); font-weight: 800; line-height: 1; letter-spacing: -0.02em; color: var(--teal); text-wrap: balance; }
.hero__welcome span { display: block; font-size: clamp(.9rem, 1.6vw, 1.25rem); font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--teal); margin-bottom: .7rem; }
.hero h1 { font-size: clamp(1.6rem, 3vw, 2.5rem); max-width: 26ch; margin: 0 auto 1rem; }
.hero__accred { grid-column: 1; grid-row: 1; justify-self: start; align-self: start; width: 132px; aspect-ratio: 1; max-height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .2rem; padding: .4rem; text-align: center; border-radius: 50%; border: 2px solid var(--lime); background: rgba(6,28,48,.75); box-shadow: 0 0 0 5px var(--blue), 0 0 0 7px rgba(217,224,37,.4); margin: 7px; }
.hero__seal { flex: none; width: 30px; height: 30px; fill: rgba(217,224,37,.16); stroke: var(--lime); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hero__accred-label { font-size: .56rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; line-height: 1.2; color: var(--teal-20); }
.hero__accred strong { font-size: .68rem; font-weight: 800; line-height: 1.1; color: var(--lime); white-space: nowrap; }
@media (max-width: 860px) {
  .hero__head { grid-template-columns: 1fr; justify-items: center; row-gap: 1.25rem; }
  .hero__accred { grid-column: 1; grid-row: 1; justify-self: start; width: 124px; }
  .hero__welcome { grid-column: 1; grid-row: 2; }
}


/* ===== v16: refined, classier finish. Brand palette unchanged ===== */
:root { --ease: cubic-bezier(.2,.7,.2,1); --shadow: 0 12px 32px rgba(6,28,48,.10); }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
.nav { box-shadow: 0 6px 24px rgba(6,28,48,.08); }
.nav__menu a:not(.btn) { position: relative; text-decoration: none !important; }
.nav__menu a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--teal); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav__menu a:not(.btn):hover::after { transform: scaleX(1); }

/* Hero */
.hero { background: radial-gradient(ellipse 70% 55% at 50% 42%, rgba(69,183,182,.16), transparent 70%), var(--blue); }
.hero__canvas { opacity: .6; }
.hero__head { display: block; margin-bottom: 1rem; }
.hero__welcome { font-size: clamp(2.4rem, 5.8vw, 4.9rem); letter-spacing: -.03em; }
.hero__welcome span { font-size: clamp(.8rem, 1.2vw, 1rem); letter-spacing: .3em; }
.hero h1 { font-weight: 700; max-width: 30ch; }
.hero__sub { color: var(--teal-20); line-height: 1.65; }
.hero__actions { margin-top: 1.75rem; }
.hero__note { margin: 1.1rem auto 0; font-size: .9rem; color: var(--teal-50); max-width: none; }
.hero__note a { color: var(--white); font-weight: 600; text-decoration-color: var(--teal); text-underline-offset: 4px; }
.hero__note a:hover { color: var(--lime); }

/* Accreditation pill, under the CTAs */
.accred { display: inline-flex; align-items: center; gap: .8rem; margin: 0; padding: .3rem 1.2rem .3rem .3rem; border: 1.5px solid rgba(217,224,37,.55); border-radius: 999px; background: rgba(6,28,48,.9); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); text-align: left; position: relative; z-index: 2; }
.accred svg { flex: none; width: 36px; height: 36px; padding: 6px; border-radius: 50%; background: var(--lime); fill: none; stroke: var(--blue); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.accred small { display: block; font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--teal-50); line-height: 1.2; }
.accred strong { display: block; font-size: 1rem; font-weight: 700; color: var(--white); line-height: 1.3; white-space: nowrap; }
.accred b { color: var(--lime); font-weight: 800; }

/* Buttons */
.btn { box-shadow: 0 4px 14px rgba(6,28,48,.16); transition: background .2s, border-color .2s, transform .25s var(--ease), box-shadow .25s var(--ease); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(6,28,48,.22); }
.btn--ghost, .btn--small { box-shadow: none; }

/* Headings: short teal rule for rhythm */
.section h2 { position: relative; padding-top: 1.1rem; letter-spacing: -.02em; }
.section h2::before { content: ""; position: absolute; top: 0; left: 0; width: 44px; height: 3px; border-radius: 3px; background: var(--teal); }
.section--dark h2::before { background: var(--lime); }
.lead { line-height: 1.6; }

/* Cards */
.panel { padding: 1.6rem 1.6rem 1.4rem; background: var(--white); border-radius: 16px; border-top-width: 4px; box-shadow: var(--shadow); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.panel:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(6,28,48,.14); }
.about__media img, .marquee__item img { box-shadow: var(--shadow); }
.member__photo img { box-shadow: 0 8px 24px rgba(6,28,48,.12); }
.footer a:hover { color: var(--teal); }

@media (max-width: 860px) {
  .accred { padding-right: 1.1rem; }
  .accred strong { font-size: .95rem; }
  .hero__note { font-size: .85rem; }
}
@media (prefers-reduced-motion: reduce) { .btn, .panel { transition: none; } .btn:hover, .panel:hover { transform: none; } }

.hero__actions { align-items: center; justify-content: center; }

/* ===== v18: team groups ===== */
.team-group__title { display: flex; align-items: center; gap: 1rem; margin: 4rem 0 0; font-size: 1.05rem; letter-spacing: .16em; text-transform: uppercase; color: var(--blue); }
.team-group__title::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--teal), transparent); }
.members--4 { grid-template-columns: repeat(4, 1fr); margin-top: 2rem; }
.members--4 .member__photo { width: min(100%, 150px); margin-bottom: 1.1rem; }
.members--4 h3 { font-size: 1.05rem; }
@media (max-width: 900px) { .members--4 { grid-template-columns: repeat(2, 1fr); } }
