/* ==========================================================================
   Bespoke Bioinformatics — site styles
   Fonts are self-hosted (no requests to Google = simpler GDPR compliance).
   Display: Montserrat (stand-in for Lulo Clean). Body: Nunito Sans (stand-in for Avenir).
   To change the look, edit the variables in :root.
   ========================================================================== */

@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Nunito Sans";
  src: url("../fonts/nunito-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 1000;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Nunito Sans";
  src: url("../fonts/nunito-sans-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 200 1000;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --blue: #155DE9;          /* primary brand blue */
  --blue-deep: #1938D1;     /* headings, offset shadow layers */
  --blue-mid: #1D4BDD;      /* outer shadow layer */
  --navy: #23324F;          /* footer */
  --slate: #213D4D;         /* body text accents */
  --ink: #26292E;           /* headings */
  --text: #3F454D;          /* body text */
  --white: #fff;
  --tint: #F3F6FD;          /* very pale blue section background */
  --grey: #F7F7F8;         /* card background */
  --line: #D7DEEC;

  --font-display: "Montserrat", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-body: "Nunito Sans", "Avenir", "Avenir Next", "Segoe UI", system-ui, sans-serif;

  --wrap: 1120px;
  --wrap-narrow: 860px;
  --header-h: 92px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 350;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
}
img, svg { max-width: 100%; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-deep); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 2px; }
.band :focus-visible, .site-footer :focus-visible { outline-color: #fff; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--blue); color: #fff; padding: .6rem 1rem; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.wrap { width: min(var(--wrap), 100% - 3rem); margin-inline: auto; }
.wrap-narrow { width: min(var(--wrap-narrow), 100% - 3rem); margin-inline: auto; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { margin: 0 0 .75em; font-family: var(--font-display); color: var(--ink); line-height: 1.2; }
.display {                       /* page titles, section titles — wide, tracked, heavy */
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--ink);
}
.page-title { font-size: clamp(1.9rem, 5vw, 3.5rem); text-align: center; margin: 0; }
h3.display { font-size: 1.05rem; letter-spacing: .18em; line-height: 1.5; }
p { margin: 0 0 1.1em; }
.lead { font-size: 1.15rem; }
.center { text-align: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid #eef0f4;
}
.header-inner {
  width: min(var(--wrap), 100% - 3rem); margin-inline: auto;
  min-height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
}
.brand {
  font-family: var(--font-display); font-weight: 800; font-size: .95rem;
  letter-spacing: .24em; line-height: 1.45; text-transform: uppercase;
  color: var(--ink); text-decoration: none;
}
.brand:hover { color: var(--blue); }
.nav-list { display: flex; flex-wrap: wrap; gap: .25rem 1.6rem; list-style: none; margin: 0; padding: 0; }
.nav-list a {
  font-size: .95rem; font-weight: 400; text-decoration: none; color: var(--text);
  padding: .4rem 0; border-bottom: 2px solid transparent;
}
.nav-list a:hover { color: var(--blue); }
.nav-list a[aria-current="page"] { color: var(--blue); border-bottom-color: var(--blue); }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: 4px;
  padding: .55rem .7rem; cursor: pointer; color: var(--ink);
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 22px; height: 2px; background: currentColor; position: relative; content: "";
}
.nav-toggle span::before { position: absolute; top: -7px; }
.nav-toggle span::after { position: absolute; top: 7px; }

@media (max-width: 980px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); padding: .5rem 1.5rem 1.2rem; }
  .site-nav.open { display: block; }
  .nav-list { flex-direction: column; gap: .2rem; }
  .nav-list a { display: block; padding: .6rem 0; font-size: 1.05rem; }
}

/* ---------- Offset "stacked" card (signature device from the original site) ---------- */
.stack {
  position: relative;
  background: #F8FBFF;
  box-shadow: -14px 14px 0 var(--blue-deep), -28px 28px 0 var(--blue-mid);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; font-family: var(--font-body); font-weight: 400; font-size: .98rem; letter-spacing: .06em;
  text-decoration: none; padding: .8rem 1.5rem; border: 1px solid var(--blue);
  background: var(--blue); color: #fff; cursor: pointer; transition: background .15s, color .15s;
}
.btn:hover { background: var(--blue-deep); border-color: var(--blue-deep); color: #fff; }
.btn-outline { background: transparent; color: var(--blue); }
.btn-outline:hover { background: var(--blue); color: #fff; border-color: var(--blue); }
.btn-light { background: #fff; color: var(--blue); border-color: #fff; font-weight: 600; }
.btn-light:hover { background: #E8EFFF; color: var(--blue-deep); border-color: #E8EFFF; }

/* ---------- Home: why ---------- */
.hero-why { padding: 4.5rem 0 5rem; }
.hero-why h1 {
  font-family: var(--font-body); font-weight: 600; color: var(--blue-deep);
  font-size: clamp(2.1rem, 5.2vw, 3.4rem); text-align: center; margin-bottom: .6em; letter-spacing: -.005em;
}
.hero-why .intro { max-width: 52rem; margin: 0 auto 3.5rem; text-align: center; font-size: 1.1rem; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2.5rem 2rem; list-style: none; padding: 0; margin: 0; }
.step { text-align: center; }
.step img { width: 64px; height: 64px; margin: 0 auto 1.4rem; }
.step h2 { font-size: 1.05rem; margin-bottom: 1rem; }
.step p { margin: 0; font-size: 1rem; }
@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Home: about band ---------- */
.about-band { display: grid; grid-template-columns: minmax(260px, 32%) 1fr; background: var(--blue); }
.about-band .photo { position: relative; min-height: 460px; }
.about-band .photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; }
.about-band .panel { display: grid; place-items: center; padding: 4.5rem 3rem 4.5rem 5rem; }
.about-card { padding: 3rem 3.5rem; max-width: 36rem; }
.about-card h2 { display: flex; align-items: center; gap: 1.8rem; font-size: 1.3rem; margin-bottom: 1.4rem; }
.about-card h2 svg { width: 34px; height: auto; }
.about-card p { color: var(--text); }
@media (max-width: 820px) {
  .about-band { grid-template-columns: 1fr; }
  .about-band .photo { min-height: 380px; }
  .about-band .panel { padding: 3.5rem 1.5rem 3.5rem 2.8rem; }
  .about-card { padding: 2rem 1.6rem; }
  .stack { box-shadow: -10px 10px 0 var(--blue-deep), -20px 20px 0 var(--blue-mid); }
}

/* ---------- Home: clients ---------- */
.clients { padding: 5rem 0; }
.clients-grid { display: grid; grid-template-columns: minmax(220px, 1fr) 2fr; gap: 3rem; align-items: center; }
.clients h2 { font-family: var(--font-body); font-weight: 600; font-size: clamp(1.8rem, 3.4vw, 2.5rem); line-height: 1.3; color: var(--ink); margin: 0; }
.logo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.2rem 1.5rem; list-style: none; padding: 0; margin: 0; align-items: center; justify-items: center; }
.logo-grid li { width: 100%; height: 130px; display: grid; place-items: center; }
.logo-grid a, .logo-grid span { display: grid; place-items: center; width: 100%; height: 100%; }
.logo-grid img { max-height: 120px; max-width: 78%; width: auto; height: auto; object-fit: contain; }
@media (max-width: 820px) { .clients-grid { grid-template-columns: 1fr; } .logo-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Banner (Services / Publications) ---------- */
.banner { position: relative; display: grid; place-items: center; padding: 6rem 1.5rem; background: #222 center / cover no-repeat; }
.banner-title { background: #fff; padding: 2.2rem 3.2rem; margin: 0; text-align: center; font-size: clamp(1.6rem, 4.6vw, 3.4rem); line-height: 1.35; }

/* ---------- Services ---------- */
.intro-text { padding: 2.5rem 0 1rem; }
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3.5rem 2.5rem; list-style: none; padding: 0; margin: 2rem auto 3rem; }
.service { text-align: center; }
.service img { width: 56px; height: 56px; margin: 0 auto 1.4rem; }
.service h3 { margin-bottom: 1rem; }
.service p { font-size: 1rem; margin: 0; }
.services-extra { margin-bottom: 5rem; }
.services-extra .also { text-align: center; font-size: 1.1rem; margin: 0 auto 2rem; }
@media (max-width: 900px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .services { grid-template-columns: 1fr; } }

/* ---------- Past projects ---------- */
.projects-head { padding: 5rem 0 3rem; }
.project-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.2rem; list-style: none; padding: 0; margin: 0 auto 5rem; width: min(1200px, 100% - 3rem); }
.project-card { display: grid; grid-template-columns: 46% 1fr; background: var(--grey); align-items: stretch; }
.project-card .thumb { aspect-ratio: 1 / 0.91; align-self: start; overflow: hidden; }
.project-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.project-card .body { padding: 2rem 1.8rem; display: flex; flex-direction: column; justify-content: center; gap: 1.8rem; }
.project-card h2 { font-size: 1.05rem; margin: 0; line-height: 1.55; }
.project-card .btn { align-self: flex-start; font-size: .9rem; padding: .7rem 1.4rem; }
@media (max-width: 1000px) { .project-cards { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .project-card { grid-template-columns: 1fr; } .project-card .thumb { aspect-ratio: 16/10; } }

.band-testimonial { background: var(--blue); padding: 6rem 1.5rem 6.5rem; }
.testimonials { max-width: 760px; margin: 0 auto; padding-left: 28px; }
.testimonials .stack { padding: 2.6rem 4.5rem 2.2rem; background: #fff; }
.testimonial { display: none; margin: 0; }
.testimonial.active { display: block; }
.testimonial blockquote { margin: 0 0 1.5rem; font-weight: 700; font-size: clamp(1.1rem, 2.2vw, 1.4rem); line-height: 1.75; color: var(--ink); }
.testimonial figcaption { font-size: 1rem; color: var(--text); display: flex; align-items: center; gap: .7rem; }
.testimonial figcaption::before { content: ""; width: 22px; height: 1px; background: var(--text); }
.t-arrow { position: absolute; top: 50%; transform: translateY(-50%); background: none; border: 0; cursor: pointer; padding: .8rem; color: var(--ink); }
.t-arrow svg { width: 16px; height: 28px; }
.t-prev { left: .4rem; } .t-next { right: .4rem; }
.testimonials.single .t-arrow { display: none; }
.testimonials.single .stack { padding-inline: 3rem; }
@media (max-width: 600px) { .testimonials .stack { padding: 2rem 1.6rem; } .testimonials.single .stack { padding-inline: 1.6rem; } }

/* ---------- Individual project page ---------- */
.project-hero { padding: 5rem 0 4rem; }
.project-hero .page-title { max-width: 62rem; margin-inline: auto; font-size: clamp(1.5rem, 3.6vw, 2.5rem); line-height: 1.5; }
.project-detail { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.project-detail .pic { position: relative; min-height: 420px; }
.project-detail .pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.project-detail .copy { padding: 3rem 4rem 3rem 5rem; display: flex; flex-direction: column; justify-content: center; }
.project-detail .copy p { margin-bottom: 1.4em; }
.project-detail .copy p:last-child { margin-bottom: 0; }
.project-detail .label { color: var(--blue); font-weight: 600; }
.back-link { display: inline-block; margin: 2.5rem 0 4rem; }
@media (max-width: 860px) {
  .project-detail { grid-template-columns: 1fr; }
  .project-detail .pic { min-height: 300px; }
  .project-detail .copy { padding: 2.2rem 1.5rem; }
}

/* ---------- Pricing ---------- */
.pricing-head { background: var(--grey); padding: 3.5rem 0 3rem; }
.pricing-bg {
  padding: 5rem 1.5rem 6rem;
  /* Plain pale-blue backdrop. To use a photo instead: background: url("../img/your-photo.jpg") center / cover; */
  background: linear-gradient(112deg, #E3EAF0 0%, #B7D6E7 42%, #D8E6EF 70%, #F1F4F6 100%);
}
.price-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; list-style: none; padding: 0; margin: 0 auto; width: min(900px, 100%); }
.price-card { position: relative; background: #fff; padding: 4.2rem 2rem 2.8rem; text-align: center; margin-top: 2rem; }
.price-card .num {
  position: absolute; top: -2rem; left: 50%; transform: translateX(-50%);
  width: 74px; height: 74px; border-radius: 50%; background: #F3F3F3;
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 600; font-size: 1.8rem; color: var(--ink);
}
.price-card h2 { font-size: 1.05rem; margin-bottom: 1.4rem; line-height: 1.6; }
.price-card p { font-size: 1rem; margin: 0; }
@media (max-width: 860px) { .price-cards { grid-template-columns: 1fr; gap: 3rem; } }

/* ---------- Publications ---------- */
.pub-note { background: var(--grey); text-align: center; padding: 1.2rem 1.5rem; margin: 0; }
.pubs { list-style: none; padding: 0; margin: 0 auto; width: min(920px, 100% - 3rem); }
.pub { display: grid; grid-template-columns: minmax(200px, 330px) 1fr; gap: 4rem; align-items: center; padding: 3rem 0; border-bottom: 2px solid var(--ink); }
.pub:first-child { padding-top: 3.5rem; }
.pub:nth-child(even) { grid-template-columns: 1fr minmax(200px, 330px); }
.pub:nth-child(even) .pub-cover { order: 2; }
.pub-cover img { width: 100%; height: auto; }
.pub h2 { font-family: var(--font-body); font-weight: 600; font-size: clamp(1.4rem, 2.6vw, 1.8rem); color: var(--blue-deep); line-height: 1.3; }
.pub p { margin: 0; }
.pubs + .spacer { height: 4rem; }
@media (max-width: 720px) {
  .pub, .pub:nth-child(even) { grid-template-columns: 1fr; gap: 1.6rem; }
  .pub:nth-child(even) .pub-cover { order: 0; }
  .pub-cover { max-width: 280px; }
}

/* ---------- About ---------- */
.about-main { display: grid; grid-template-columns: minmax(240px, 340px) 1fr; gap: 5rem; width: min(1100px, 100% - 3rem); margin: 0 auto; padding: 5rem 0 5rem; align-items: start; }
.about-main .portrait img { width: 100%; height: auto; }
.about-main h1 { font-size: clamp(2.4rem, 6vw, 4rem); margin-bottom: 1.4rem; }
.about-main p.strong { font-weight: 600; color: var(--ink); }
.about-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
@media (max-width: 860px) { .about-main { grid-template-columns: 1fr; gap: 2rem; padding-top: 3rem; } .about-main .portrait { max-width: 320px; } }

.education { background: var(--tint); padding: 4.5rem 0 5rem; }
.education-grid { display: grid; grid-template-columns: minmax(200px, 1fr) 2.4fr; gap: 3rem; width: min(1100px, 100% - 3rem); margin: 0 auto; }
.education h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 11rem 1fr; gap: 2.5rem; padding: 0 0 2.4rem; margin-left: 0; position: relative; }
.timeline li:last-child { padding-bottom: 0; }
.timeline .when { font-family: var(--font-display); font-weight: 800; letter-spacing: .12em; font-size: .95rem; color: var(--ink); line-height: 1.5; }
.timeline .where { display: block; font-family: var(--font-body); font-weight: 350; letter-spacing: 0; font-size: 1rem; color: var(--text); margin-top: .3rem; }
.timeline .what { border-left: 1px solid var(--ink); padding-left: 2.5rem; }
.timeline .what p { margin: 0 0 .3em; }
@media (max-width: 860px) {
  .education-grid { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 560px) { .timeline li { grid-template-columns: 1fr; gap: .8rem; } .timeline .what { padding-left: 1.2rem; } }

/* ---------- Contact page ---------- */
.contact-head { padding: 5rem 0 3.5rem; }
.contact-head p { margin: 2.5rem auto 0; max-width: 52rem; font-size: 1.1rem; }

/* ---------- Let's talk band ---------- */
.band { background: var(--blue); color: #fff; padding: 5rem 0 5.5rem; }
.talk { width: min(900px, 100% - 3rem); margin-inline: auto; display: grid; grid-template-columns: 1fr 1.15fr; gap: 2.5rem 4rem; }
.talk h2 { grid-column: 1 / -1; color: #fff; font-size: 1.4rem; margin-bottom: .5rem; }
.talk-details { display: flex; flex-direction: column; align-items: flex-start; gap: 1.1rem; }
.talk-details a:not(.btn) { color: #fff; }
.talk-details p { margin: 0; }
.socials { display: flex; gap: 1.1rem; list-style: none; padding: 0; margin: 1.6rem 0 0; }
.socials a { display: grid; place-items: center; width: 44px; height: 44px; color: #fff; }
.socials a:hover { color: #CFE0FF; }
.socials svg { width: 22px; height: 22px; }
.form { display: grid; gap: .8rem; }
.form label { position: absolute; left: -9999px; }
.form input, .form textarea {
  width: 100%; font: inherit; font-weight: 400; color: #fff; padding: .75rem .9rem;
  background: rgba(10, 30, 120, .28); border: 1px solid rgba(255,255,255,.35); border-radius: 0;
}
.form textarea { min-height: 150px; resize: vertical; }
.form ::placeholder { color: #D6E3FF; opacity: 1; }
.form input:focus, .form textarea:focus { outline: 3px solid #fff; outline-offset: 1px; background: rgba(10, 30, 120, .4); }
.form .consent { font-size: .85rem; line-height: 1.5; color: #E4ECFF; margin: .2rem 0 0; }
.form .consent a { color: #fff; }
.form .actions { display: flex; align-items: center; justify-content: flex-end; gap: 1rem; }
.form-status { margin: 0; font-weight: 600; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
@media (max-width: 760px) { .talk { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #fff; text-align: center; padding: 1.6rem 1.5rem 1.8rem; font-size: .95rem; }
.site-footer a { color: #fff; }
.site-footer .credit { margin: .7rem 0 0; font-size: .8rem; color: #B9C4DA; }
.site-footer .credit a { color: #D6DEEE; }

/* ---------- Legal pages ---------- */
.legal { padding: 4.5rem 0 5rem; }
.legal h1 { margin-bottom: 2rem; }
.legal .notice { border-left: 4px solid var(--blue); background: var(--tint); padding: 1rem 1.3rem; margin-bottom: 2rem; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
@media print { .site-header, .band, .site-footer { display: none; } }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.legal h2 { font-size: 1.1rem; margin: 2.2rem 0 .6rem; letter-spacing: .02em; }
.legal p { margin-bottom: 1em; }
.legal h3 { font-size: 1rem; margin: 1.6rem 0 .4rem; }
.legal ul { margin: 0 0 1em 1.3rem; list-style: disc; }
.legal li { margin-bottom: .4em; }
