/* ============================================================
   Mados Life Sciences — stylesheet
   Plain CSS, no build step. Edit colours in :root below.
   ============================================================ */

:root {
  /* Palette */
  --ink:        #16212b;   /* headings, dark ground */
  --ink-soft:   #4c5a64;   /* body copy */
  --ink-faint:  #8a949b;   /* meta, captions */
  --paper:      #fcfaf7;   /* page background */
  --paper-alt:  #f4f1eb;   /* alternating section */
  --line:       #e3ddd3;   /* hairlines, borders */
  --accent:     #0e6b60;   /* teal — links, CTAs */
  --accent-dark:#0a544b;
  --accent-tint:#e7f0ee;
  --sand:       #b98a53;   /* warm secondary accent */

  /* Type */
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  /* Layout */
  --wrap: 1080px;
  --gutter: clamp(1.25rem, 5vw, 3rem);
}

/* ── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--serif);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0;
}

p { margin: 0 0 1.1em; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }

img { max-width: 100%; display: block; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

.skip {
  position: absolute;
  left: -9999px;
  background: var(--ink);
  color: #fff;
  padding: .7rem 1.1rem;
  z-index: 100;
}
.skip:focus { left: 1rem; top: 1rem; }

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

/* ── Reveal animation ──────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .7s cubic-bezier(.22,.61,.36,1),
              transform .7s cubic-bezier(.22,.61,.36,1);
}
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ── Header ────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(252, 250, 247, .86);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  border-radius: 7px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1;
  padding-bottom: 1px;
}

.brand-light { color: var(--ink-faint); font-weight: 400; }

.nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  font-size: .95rem;
}
.nav a { color: var(--ink-soft); text-decoration: none; }
.nav a:hover { color: var(--ink); }

.nav-cta {
  background: var(--ink);
  color: var(--paper) !important;
  padding: .5rem 1rem;
  border-radius: 999px;
  font-weight: 500;
}
.nav-cta:hover { background: var(--accent-dark); }

@media (max-width: 700px) {
  .brand-light { display: none; }
  .nav { gap: 1rem; font-size: .9rem; }
  .nav a:not(.nav-cta) { display: none; }
}

/* ── Hero ──────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: clamp(4.5rem, 12vw, 9rem) 0 clamp(3.5rem, 8vw, 6rem);
  background:
    radial-gradient(ellipse 80% 60% at 15% -10%, var(--accent-tint), transparent 70%),
    var(--paper);
}

.eyebrow {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1.1rem;
}

.hero h1 {
  font-size: clamp(2.6rem, 6.4vw, 4.35rem);
  max-width: 15ch;
  margin-bottom: 1.5rem;
}

.lede {
  font-size: clamp(1.08rem, 1.9vw, 1.3rem);
  line-height: 1.55;
  max-width: 58ch;
  color: var(--ink-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-top: 2.25rem;
}

.btn {
  display: inline-block;
  padding: .85rem 1.6rem;
  border-radius: 999px;
  font-size: .98rem;
  font-weight: 500;
  text-decoration: none;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }

.btn-ghost { border: 1px solid var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); }

.hero-rule {
  height: 1px;
  background: linear-gradient(90deg, var(--line), transparent);
  margin-top: clamp(2rem, 6vw, 4rem);
  margin-inline: var(--gutter);
}

/* ── Sections ──────────────────────────────────────────── */
.section { padding: clamp(4rem, 9vw, 7rem) 0; }
.section-alt { background: var(--paper-alt); border-block: 1px solid var(--line); }

.section-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head h2 {
  font-size: clamp(1.75rem, 3.6vw, 2.6rem);
  max-width: 22ch;
}
.section-sub { margin-top: 1.2rem; max-width: 54ch; }

/* ── Who we help ───────────────────────────────────────── */
.clients {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(1.25rem, 3vw, 2.25rem);
}

.client {
  border-top: 2px solid var(--accent);
  padding-top: 1.1rem;
}
.client h3 { font-size: 1.22rem; margin-bottom: .6rem; }
.client p { font-size: 1rem; margin: 0; }

/* ── Services ──────────────────────────────────────────── */
.track-label {
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--sand);
  margin: 0 0 .4rem;
}
.track-label-second { margin-top: clamp(2.75rem, 6vw, 4.5rem); }

.services { list-style: none; margin: 0; padding: 0; }

.service {
  display: grid;
  grid-template-columns: 5rem 1fr;
  gap: clamp(1rem, 4vw, 2.5rem);
  padding: 2.1rem 0;
  border-top: 1px solid var(--line);
}
.service:last-child { border-bottom: 1px solid var(--line); }

.service-num {
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--sand);
  padding-top: .3rem;
  font-variant-numeric: tabular-nums;
}

.service h3 {
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  margin-bottom: .7rem;
}
.service p { max-width: 62ch; margin: 0; }

@media (max-width: 620px) {
  .service { grid-template-columns: 1fr; gap: .5rem; }
  .service-num { padding-top: 0; }
}

/* ── Founders ──────────────────────────────────────────── */
.founders {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(1.25rem, 3vw, 2rem);
}

.founder {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: clamp(1.6rem, 3vw, 2.25rem);
}

.monogram {
  width: 62px; height: 62px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--serif);
  font-size: 1.35rem;
  letter-spacing: .02em;
  margin-bottom: 1.4rem;
}

.founder-photo {
  width: 62px; height: 62px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1.4rem;
}

.founder h3 { font-size: 1.45rem; margin-bottom: .25rem; }
.creds { color: var(--ink-faint); font-weight: 400; }

.role {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.2rem;
}

.founder p { font-size: 1rem; }

.tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 1.5rem 0 0;
  padding: 0;
}
.tags li {
  font-size: .82rem;
  color: var(--ink-soft);
  background: var(--accent-tint);
  border-radius: 999px;
  padding: .32rem .8rem;
}

/* Placeholder text you still need to fill in — deliberately loud so it
   cannot be published by accident. Delete the span, keep the sentence. */
.tbd {
  background: #fff3cd;
  border-bottom: 2px dotted #b8860b;
  color: #6b5200;
  padding: .1em .3em;
  border-radius: 3px;
}

.founders-note {
  margin: 2.5rem 0 0;
  font-size: .95rem;
  color: var(--ink-faint);
}
.founders-note em { font-style: normal; color: var(--ink); font-weight: 600; }

/* ── Origin story ──────────────────────────────────────── */
.origin {
  margin-top: clamp(3rem, 6vw, 4.5rem);
  padding-top: clamp(2.25rem, 5vw, 3rem);
  border-top: 1px solid var(--line);
}

.origin h3 {
  font-size: clamp(1.5rem, 3vw, 2.05rem);
  max-width: 20ch;
  margin-bottom: 1.75rem;
}

.origin-body {
  columns: 2;
  column-gap: clamp(1.75rem, 4vw, 3rem);
  max-width: 62rem;
}
.origin-body p { break-inside: avoid; margin-bottom: 1.1em; }
.origin-body p:last-child { margin-bottom: 0; }

@media (max-width: 720px) {
  .origin-body { columns: 1; }
}

/* ── Extended network ──────────────────────────────────── */
.network {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  margin: 0;
  padding: 0;
}
.network li {
  font-family: var(--serif);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .6rem 1.4rem;
}

/* ── Approach ──────────────────────────────────────────── */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: clamp(1.5rem, 4vw, 3rem);
}

.step h3 {
  display: flex;
  align-items: center;
  gap: .7rem;
  font-size: 1.25rem;
  margin-bottom: .8rem;
}

.step-num {
  display: grid;
  place-items: center;
  width: 28px; height: 28px;
  flex: none;
  border-radius: 50%;
  border: 1px solid var(--sand);
  color: var(--sand);
  font-family: var(--sans);
  font-size: .85rem;
  font-weight: 600;
}

.step p { max-width: 40ch; margin: 0; }

.approach-note {
  margin: clamp(2.5rem, 5vw, 3.5rem) 0 0;
  padding: 1.4rem 1.6rem;
  background: var(--accent-tint);
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  font-size: .98rem;
  max-width: 66ch;
}
.approach-note strong { color: var(--ink); }

/* ── Contact ───────────────────────────────────────────── */
.contact {
  background: var(--ink);
  color: #c2ccd3;
}
.contact h2 {
  color: var(--paper);
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  margin-bottom: 1.3rem;
}
.contact .eyebrow { color: #6fbfae; }
.contact .lede { color: #a9b6bf; max-width: 52ch; }

.contact-inner { max-width: 44rem; }

.mail {
  display: inline-block;
  margin-top: 1.4rem;
  font-family: var(--serif);
  font-size: clamp(1.3rem, 3.4vw, 2rem);
  color: var(--paper);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.28);
  padding-bottom: .15rem;
  transition: border-color .2s ease, color .2s ease;
}
.mail:hover { color: #7fd3c1; border-color: #7fd3c1; }

.contact-fine {
  margin-top: 1.8rem;
  font-size: .9rem;
  color: #78868f;
}

/* ── Footer ────────────────────────────────────────────── */
.site-footer {
  background: var(--ink);
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 1.6rem 0;
  font-size: .88rem;
  color: #78868f;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .6rem;
}
.site-footer a { color: #9aa7af; text-decoration: none; }
.site-footer a:hover { color: var(--paper); }
