/* ==========================================================================
   Trusted Peptides — Marketing brand styles
   Ported from the approved design (Claude design export). Fonts are self-hosted
   (see @font-face below; woff2 in ../fonts/) — no third-party round-trip. This
   file is loaded both front end and in the editor canvas, so the editor matches.
   Includes the design system (homepage + chrome) plus inner-page styles (.tp-*).
   ========================================================================== */

/* Self-hosted brand fonts (latin subset, variable woff2). Playfair Display +
   Inter, matching the previously enqueued Google Fonts weights/styles. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(../fonts/inter-latin.woff2) format('woff2');
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url(../fonts/playfair-display-latin.woff2) format('woff2');
}
@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 400 800;
  font-display: swap;
  src: url(../fonts/playfair-display-italic-latin.woff2) format('woff2');
}

:root {
  --ink:        #1a1917;
  --ink-soft:   #5f5d5a;
  --cream:      #faf9f7;
  --surface:    #f2efe9;
  --border:     #e6e2db;
  --sage:       #2b5c43;
  --sage-deep:  #173024;
  --sage-ink:   #0c1612;
  --cyan:       #06b6d4;
  --cyan-bright:#22d3ee;
  --on-dark:        #f4f6f3;
  --on-dark-soft:   #9fb1a6;
  --ring:           rgba(6,182,212,.45);
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body:    'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --fs-eyebrow: .78rem;
  --fs-body:    1.0625rem;
  --fs-lead:    1.25rem;
  --fs-h3:      1.5rem;
  --fs-h2:      clamp(2rem, 4.4vw, 3.25rem);
  --fs-hero:    clamp(2.9rem, 7vw, 5.6rem);
  --sp-1: 8px;  --sp-2: 16px; --sp-3: 24px; --sp-4: 32px;
  --sp-5: 48px; --sp-6: 64px; --sp-7: 96px; --sp-8: 128px;
  --section-y: clamp(72px, 9vw, 128px);
  --gutter:    clamp(20px, 5vw, 64px);
  --maxw: 1200px;
  --r-sm: 8px; --r-md: 14px; --r-lg: 22px; --r-pill: 999px;
  --sh-1: 0 1px 2px rgba(26,25,23,.04), 0 4px 16px rgba(26,25,23,.05);
  --sh-2: 0 2px 6px rgba(26,25,23,.06), 0 18px 44px rgba(26,25,23,.10);
  --sh-cyan: 0 18px 50px -12px rgba(6,182,212,.45);
  --ease: cubic-bezier(.22,.61,.36,1);
  --dur: .5s;
}

/* ── BASE ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font-body); font-size: var(--fs-body);
  line-height: 1.6; color: var(--ink); background: var(--cream);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.04; margin: 0; letter-spacing: -.01em; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
::selection { background: var(--cyan-bright); color: var(--ink); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }

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

.eyebrow {
  font-family: var(--font-body); font-size: var(--fs-eyebrow); font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase; color: var(--sage);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--sage); opacity: .55; }
.eyebrow.center { justify-content: center; }
.lead { font-size: var(--fs-lead); color: var(--ink-soft); line-height: 1.55; }

.grad {
  background: linear-gradient(105deg, var(--sage) 0%, var(--cyan) 52%, var(--cyan-bright) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  background-size: 200% 100%; animation: hue 9s linear infinite;
}
@keyframes hue { to { background-position: 200% 0; } }

/* ── BUTTONS ── */
/* core button blocks → design .btn look (so editable wp:button matches design) */
/* .wp-block-button prefix raises specificity above theme.json's default radius */
.wp-block-button .wp-block-button__link { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-body); font-weight: 600; font-size: 1rem; padding: 15px 26px; border-radius: var(--r-pill); border: 1px solid transparent; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), color .25s var(--ease); }
.wp-block-button.btn--cyan .wp-block-button__link { background: var(--sage); color: #fff; box-shadow: 0 10px 30px -10px rgba(43,92,67,.6); }
.wp-block-button.btn--cyan .wp-block-button__link:hover { transform: translateY(-2px); box-shadow: var(--sh-cyan); color: #fff; }
.wp-block-button.btn--ghost .wp-block-button__link { background: transparent; color: var(--ink); border-color: var(--border); }
.wp-block-button.btn--ghost .wp-block-button__link:hover { border-color: var(--ink); transform: translateY(-2px); }
.wp-block-button.btn--primary .wp-block-button__link { background: var(--ink); color: var(--cream); box-shadow: var(--sh-1); }
.wp-block-button.btn--primary .wp-block-button__link:hover { transform: translateY(-2px); box-shadow: var(--sh-2); }
.wp-block-button.btn--ondark .wp-block-button__link { background: rgba(255,255,255,.06); color: var(--on-dark); border-color: rgba(255,255,255,.18); backdrop-filter: blur(4px); }
.wp-block-button.btn--ondark .wp-block-button__link:hover { background: var(--cyan); color: var(--ink); border-color: var(--cyan); transform: translateY(-2px); box-shadow: var(--sh-cyan); }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body); font-weight: 600; font-size: 1rem;
  padding: 15px 26px; border-radius: var(--r-pill); cursor: pointer;
  border: 1px solid transparent;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), color .25s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; }
/* scope colour modifiers to .btn so they don't bleed onto wp:button wrappers (div.wp-block-button.btn--cyan) and paint a square box behind the pill link */
.btn.btn--primary { background: var(--ink); color: var(--cream); box-shadow: var(--sh-1); }
.btn.btn--primary:hover { transform: translateY(-2px); box-shadow: var(--sh-2); color: var(--cream); }
.btn.btn--cyan { background: var(--sage); color: #fff; box-shadow: 0 10px 30px -10px rgba(43,92,67,.6); }
.btn.btn--cyan:hover { transform: translateY(-2px); box-shadow: var(--sh-cyan); color:#fff; }
.btn.btn--ghost { background: transparent; color: var(--ink); border-color: var(--border); }
.btn.btn--ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn.btn--ondark { background: rgba(255,255,255,.06); color: var(--on-dark); border-color: rgba(255,255,255,.18); backdrop-filter: blur(4px); }
.btn.btn--ondark:hover { background: var(--cyan); color: var(--ink); border-color: var(--cyan); transform: translateY(-2px); box-shadow: var(--sh-cyan); }
.btn .arr { transition: transform .25s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }

/* ── HEADER ── */
/* The template-part wrapper would trap position:sticky (it's only as tall as
   the header). display:contents removes that box so the header sticks against
   the page. */
.wp-block-template-part:has(> .site-header) { display: contents; }
.site-header { position: sticky; top: 0; z-index: 60; transition: background .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease); border-bottom: 1px solid transparent; }
.site-header.scrolled { background: rgba(250,249,247,.82); backdrop-filter: saturate(140%) blur(14px); border-bottom-color: var(--border); box-shadow: 0 1px 0 rgba(26,25,23,.02); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 13px; }
.brand__mark { width: 38px; height: 38px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-family: var(--font-display); font-weight: 700; font-size: 1.32rem; letter-spacing: -.01em; }
.brand__sub { font-family: var(--font-body); font-size: .62rem; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: var(--ink-soft); margin-top: 4px; }
.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__links ul { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav__links li { margin: 0; }
.mobile-menu ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.mobile-menu li { margin: 0; }
.nav__links a { font-size: .96rem; font-weight: 500; color: var(--ink); padding: 9px 15px; border-radius: var(--r-pill); position: relative; transition: color .2s var(--ease), background .2s var(--ease); }
.nav__links a:hover { background: var(--surface); }
.nav__links a.is-active { color: var(--sage); }
.nav__cta { display: flex; align-items: center; gap: 14px; }
.nav__cta .btn { padding: 11px 20px; font-size: .95rem; }
.hamburger { display: none; width: 46px; height: 46px; border: 1px solid var(--border); border-radius: var(--r-pill); background: var(--cream); cursor: pointer; padding: 0; align-items: center; justify-content: center; }
.hamburger span { display: block; width: 19px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; transition: transform .3s var(--ease), opacity .2s var(--ease); }
.hamburger span::before, .hamburger span::after { content: ""; position: absolute; left: 0; width: 19px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease); }
.hamburger span::before { top: -6px; } .hamburger span::after { top: 6px; }
body.menu-open .hamburger span { background: transparent; }
body.menu-open .hamburger span::before { transform: translateY(6px) rotate(45deg); }
body.menu-open .hamburger span::after { transform: translateY(-6px) rotate(-45deg); }
.mobile-menu { position: fixed; inset: 76px 0 0 0; z-index: 55; background: rgba(250,249,247,.97); backdrop-filter: blur(16px); transform: translateY(-12px); opacity: 0; pointer-events: none; transition: opacity .3s var(--ease), transform .3s var(--ease); display: flex; flex-direction: column; padding: var(--sp-4) var(--gutter); }
body.menu-open .mobile-menu { opacity: 1; transform: none; pointer-events: auto; }
.mobile-menu a { font-family: var(--font-display); font-size: 1.7rem; padding: 16px 0; border-bottom: 1px solid var(--border); }
.mobile-menu .btn { margin-top: var(--sp-3); justify-content: center; }

/* ── HERO ── */
.hero { position: relative; isolation: isolate; padding: clamp(64px, 9vw, 120px) 0 var(--section-y); overflow: hidden; }
.hero__actions { position: relative; z-index: 2; }
.hero__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; will-change: transform; }
.blob--sage { width: 620px; height: 620px; background: radial-gradient(circle at 30% 30%, #4f9b76, transparent 70%); top: -220px; left: -120px; animation: drift1 22s var(--ease) infinite alternate; }
.blob--cyan { width: 540px; height: 540px; background: radial-gradient(circle at 60% 40%, var(--cyan-bright), transparent 70%); top: -120px; right: -160px; opacity: .42; animation: drift2 26s var(--ease) infinite alternate; }
.blob--deep { width: 480px; height: 480px; background: radial-gradient(circle at 50% 50%, #2b5c43, transparent 72%); bottom: -260px; left: 28%; opacity: .3; animation: drift3 30s var(--ease) infinite alternate; }
@keyframes drift1 { to { transform: translate(120px, 80px) scale(1.12); } }
@keyframes drift2 { to { transform: translate(-90px, 120px) scale(1.08); } }
@keyframes drift3 { to { transform: translate(60px, -70px) scale(1.15); } }
.hero__hex { position: absolute; inset: 0; opacity: .5; -webkit-mask-image: radial-gradient(120% 90% at 70% 8%, #000 0%, transparent 62%); mask-image: radial-gradient(120% 90% at 70% 8%, #000 0%, transparent 62%); }
.hero__inner { position: relative; z-index: 2; max-width: 920px; }
.hero h1 { font-size: var(--fs-hero); font-weight: 700; margin: var(--sp-3) 0 var(--sp-3); }
.hero h1 .blk { display: block; }
.hero__sub { max-width: 620px; margin-bottom: var(--sp-4); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero__note { font-size: .82rem; color: var(--ink-soft); display: inline-flex; align-items: center; gap: 8px; margin-left: 4px; }
.hero__note svg { width: 15px; height: 15px; color: var(--sage); }
.stats { position: relative; z-index: 2; margin-top: clamp(48px, 6vw, 84px); display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
.stat { background: rgba(250,249,247,.7); padding: var(--sp-3) var(--sp-3); backdrop-filter: blur(2px); }
.stat__num { font-family: var(--font-display); font-size: clamp(2.1rem, 3.4vw, 2.9rem); font-weight: 700; line-height: 1; letter-spacing: -.02em; display: flex; align-items: baseline; gap: 2px; }
.stat__pre, .stat__suf { font-size: .9rem; color: var(--sage); font-weight: 700; }
.stat__pre { margin-right: 2px; }
.stat__label { font-family: var(--font-body); font-size: .85rem; color: var(--ink-soft); margin-top: 10px; line-height: 1.35; }

/* ── TRUST STRIP ── */
.trust { border-block: 1px solid var(--border); background: var(--surface); }
.trust__row { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust__item { display: flex; align-items: center; gap: 14px; padding: var(--sp-3) var(--sp-2); border-left: 1px solid var(--border); }
.trust__item:first-child { border-left: none; }
.trust__icon { width: 40px; height: 40px; flex: none; color: var(--sage); }
.trust__t { font-weight: 600; font-size: .98rem; line-height: 1.2; }
.trust__s { font-size: .8rem; color: var(--ink-soft); margin-top: 2px; }

/* ── SECTION HEADERS ── */
section { position: relative; }
.pad { padding-block: var(--section-y); }
/* tighter top when the section sits directly under a page head (e.g. the
   compound archive) — the pagehead already supplies the breathing room. */
.pad--flush { padding-top: clamp(24px, 3.5vw, 44px); }
.sec-head { max-width: 720px; margin-bottom: var(--sp-5); }
.sec-head h2 { font-size: var(--fs-h2); margin: var(--sp-2) 0 var(--sp-2); }
.sec-head.between { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: var(--sp-3); flex-wrap: wrap; }
.sec-head.between > div { max-width: 640px; }

/* ── COMPOUND LIBRARY ── */
.compound-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-3); }
.compound { position: relative; background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--sp-3); display: flex; flex-direction: column; min-height: 230px; overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease); }
.compound::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(380px 200px at 100% 0%, rgba(6,182,212,.10), transparent 60%); opacity: 0; transition: opacity .35s var(--ease); }
.compound:hover { transform: translateY(-6px); box-shadow: var(--sh-2); border-color: #d7d2c9; }
.compound:hover::after { opacity: 1; }
.compound__hex { position: absolute; top: -14px; right: -14px; width: 78px; height: 78px; color: var(--surface); transition: color .35s var(--ease); }
.compound:hover .compound__hex { color: #e7f7fa; }
.compound__cat { font-size: .68rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--sage); }
.compound__name { font-family: var(--font-display); font-size: var(--fs-h3); margin: 12px 0 8px; position: relative; z-index: 1; }
.compound__desc { font-size: .92rem; color: var(--ink-soft); line-height: 1.5; position: relative; z-index: 1; }
.compound__view { margin-top: auto; padding-top: var(--sp-3); display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-size: .92rem; color: var(--ink); }
.compound__view svg { width: 15px; height: 15px; transition: transform .25s var(--ease); }
.compound:hover .compound__view { color: var(--sage); }
.compound:hover .compound__view svg { transform: translateX(4px); }
/* whole card is the click target — stretch the view link across it (the
   .compound::after hover glow is pointer-events:none, so it doesn't block). */
.compound { cursor: pointer; }
.compound__view::after { content: ""; position: absolute; inset: 0; z-index: 1; }

/* ── DARK SCIENCE BAND ── */
.science { background: var(--sage-ink); color: var(--on-dark); overflow: hidden; }
.science__glow { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.science__glow .g1 { position: absolute; width: 560px; height: 560px; border-radius: 50%; filter: blur(80px); background: radial-gradient(circle, rgba(6,182,212,.5), transparent 70%); top: -180px; right: -120px; opacity: .5; animation: drift2 24s var(--ease) infinite alternate; }
.science__glow .g2 { position: absolute; width: 480px; height: 480px; border-radius: 50%; filter: blur(80px); background: radial-gradient(circle, rgba(79,155,118,.6), transparent 70%); bottom: -200px; left: -120px; opacity: .45; animation: drift1 28s var(--ease) infinite alternate; }
.science__grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr .95fr; gap: var(--sp-6); align-items: center; }
.science .eyebrow { color: var(--cyan-bright); }
.science .eyebrow::before { background: var(--cyan-bright); }
.science h2 { font-size: var(--fs-h2); margin: var(--sp-2) 0 var(--sp-3); color: #fff; }
.science p { color: var(--on-dark-soft); max-width: 540px; }
.science__list { list-style: none; padding: 0; margin: var(--sp-4) 0; display: grid; gap: 2px; }
.science__list li { display: flex; gap: 14px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.science__list li:first-child { border-top: 1px solid rgba(255,255,255,.08); }
.science__list b { color: #fff; font-weight: 600; font-size: 1.02rem; }
.science__list span { color: var(--on-dark-soft); font-size: .9rem; }
.science__list .dot { width: 28px; height: 28px; flex: none; border-radius: 50%; display: grid; place-items: center; background: rgba(6,182,212,.14); color: var(--cyan-bright); }
.science__list .dot svg { width: 15px; height: 15px; }
.science__viz { position: relative; aspect-ratio: 1; max-width: 480px; margin-inline: auto; width: 100%; }
.science__viz svg { width: 100%; height: 100%; overflow: visible; }
.science__actions { margin-top: var(--sp-4); }

/* ── EDUCATION ── */
.edu-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-3); }
.edu-card { background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--sp-4) var(--sp-3) var(--sp-3); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.edu-card:hover { transform: translateY(-6px); box-shadow: var(--sh-2); }
.edu-card__ic { width: 56px; height: 56px; border-radius: var(--r-md); background: var(--surface); color: var(--sage); display: grid; place-items: center; margin-bottom: var(--sp-3); }
.edu-card__ic svg { width: 28px; height: 28px; }
.edu-card h3 { font-size: var(--fs-h3); margin-bottom: 10px; }
.edu-card p { font-size: .95rem; color: var(--ink-soft); line-height: 1.55; }

/* ── CONTACT CTA ── */
.contact { text-align: center; }
.contact__card { position: relative; background: var(--sage-deep); color: var(--on-dark); border-radius: var(--r-lg); padding: clamp(48px, 7vw, 96px) var(--gutter); overflow: hidden; }
.contact__card .blob--cyan { top: auto; bottom: -260px; right: -120px; opacity: .35; }
.contact__inner { position: relative; z-index: 2; max-width: 620px; margin-inline: auto; }
.contact .eyebrow { color: var(--cyan-bright); justify-content: center; }
.contact .eyebrow::before { background: var(--cyan-bright); }
.contact h2 { font-size: var(--fs-h2); color: #fff; margin: var(--sp-2) 0 var(--sp-3); }
.contact p { color: var(--on-dark-soft); margin-bottom: var(--sp-4); }

/* ── FOOTER ── */
.footer { background: var(--ink); color: var(--on-dark-soft); padding-top: var(--section-y); }
.footer__top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: var(--sp-4); padding-bottom: var(--sp-6); }
.footer__brand .brand__name { color: #fff; }
.footer__brand .brand__sub { color: var(--on-dark-soft); }
.footer__statement { margin-top: var(--sp-3); font-size: .92rem; max-width: 320px; line-height: 1.55; }
.footer__social { display: flex; gap: 10px; margin-top: var(--sp-3); }
.footer__social a { width: 40px; height: 40px; border: 1px solid rgba(255,255,255,.14); border-radius: var(--r-pill); display: grid; place-items: center; color: var(--on-dark-soft); transition: all .25s var(--ease); }
.footer__social a:hover { color: var(--ink); background: var(--cyan); border-color: var(--cyan); transform: translateY(-3px); }
.footer__social svg { width: 17px; height: 17px; }
.footer__col h4 { font-family: var(--font-body); font-size: .74rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: #fff; margin: 0 0 var(--sp-2); }
.footer__col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.footer__col a { font-size: .94rem; color: var(--on-dark-soft); transition: color .2s var(--ease); }
.footer__col a:hover { color: var(--cyan-bright); }
.footer__disc { border-top: 1px solid rgba(255,255,255,.1); padding: var(--sp-4) 0; font-size: .8rem; line-height: 1.6; color: #8a8a86; }
.footer__disc strong { color: var(--on-dark-soft); }
.footer__legal { border-top: 1px solid rgba(255,255,255,.1); padding: var(--sp-3) 0 var(--sp-5); display: flex; justify-content: space-between; gap: var(--sp-2); flex-wrap: wrap; font-size: .82rem; }
.footer__legal .age { display: inline-flex; align-items: center; gap: 8px; }
.footer__legal .age b { color: #fff; border: 1px solid rgba(255,255,255,.2); border-radius: var(--r-pill); padding: 2px 9px; font-size: .72rem; }

/* ── SCROLL REVEAL ── */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }
.reveal[data-d="4"] { transition-delay: .32s; }
.reveal[data-d="5"] { transition-delay: .40s; }

/* ==========================================================================
   INNER PAGES (compound entries, About/Education/Contact, archive)
   Block-editor content + the .tp-* component classes used by those pages.
   ========================================================================== */

/* WordPress block bridges */
.wp-block-template-part { margin: 0; }
.tp-page { padding-block: var(--section-y); }
.tp-page .wp-block-post-title { font-size: var(--fs-h2); margin-bottom: var(--sp-3); }
.tp-prose :where(p, ul, ol) { color: var(--ink-soft); }
.tp-prose h2 { font-size: var(--fs-h2); margin: var(--sp-5) 0 var(--sp-2); }
.tp-prose h3 { font-size: var(--fs-h3); margin: var(--sp-4) 0 var(--sp-1); }

/* inner page header band */
.tp-pagehead { position: relative; overflow: hidden; background: var(--surface); border-bottom: 1px solid var(--border); padding: clamp(48px, 7vw, 88px) 0 clamp(22px, 3vw, 36px); }
.tp-pagehead::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(6,182,212,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(6,182,212,.06) 1px, transparent 1px); background-size: 46px 46px; -webkit-mask-image: radial-gradient(120% 95% at 85% 0%, #000, transparent 62%); mask-image: radial-gradient(120% 95% at 85% 0%, #000, transparent 62%); pointer-events: none; }
.tp-pagehead .wrap { position: relative; }
.tp-pagehead .wp-block-post-title, .tp-pagehead h1 { font-size: clamp(2.4rem, 5.2vw, 3.6rem); margin: 0; }
.tp-pagehead .tp-eyebrow { margin-bottom: var(--sp-2); }
.tp-pagehead .wp-block-post-excerpt { color: var(--ink-soft); font-size: var(--fs-lead); line-height: 1.55; margin-top: var(--sp-3); max-width: 680px; }
.tp-pagehead .wp-block-post-excerpt p { margin: 0; }
.tp-pagehead .tp-lead { margin-top: var(--sp-3); max-width: 680px; }
.tp-pagehead h1 { margin-top: 0; }
.tp-pagehead .wp-block-post-excerpt__more-link { display: none; }

/* breadcrumbs — mirrors the BreadcrumbList JSON-LD; flows into the page head
   (same surface bg), so no divider line and the page head's top padding is
   collapsed below to keep the trail close to the title. */
.tp-crumbs { background: var(--surface); font-family: var(--font-body); font-size: .82rem; }
.tp-crumbs .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: clamp(20px, 3vw, 32px); color: var(--ink-soft); }
.tp-crumbs a { color: var(--ink-soft); text-decoration: none; }
.tp-crumbs a:hover { color: var(--sage); text-decoration: underline; }
.tp-crumbs [aria-current="page"] { color: var(--ink); font-weight: 600; }
.tp-crumbs__sep { color: var(--ink-soft); opacity: .6; }
/* kill the flow-layout block-gap margin WP injects on the page head (the second
   flow child) — that 1.5rem margin, not padding, was the gap below the trail. */
.tp-crumbs + .tp-pagehead { border-top: 0; margin-block-start: 0; padding-top: clamp(14px, 2vw, 20px); }

/* related compounds — reuses the homepage .compound-grid cards */
.tp-related { border-top: 1px solid var(--border); background: var(--surface); }

/* prose container for inner pages */
.tp-prose { max-width: 760px; margin-inline: auto; padding: clamp(28px, 3.5vw, 44px) var(--gutter) clamp(56px, 7vw, 88px); }
.tp-prose.wide { max-width: 1140px; }
.tp-prose > .tp-lead { margin-bottom: var(--sp-4); }

.tp-eyebrow { font-family: var(--font-body); font-size: var(--fs-eyebrow); font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--sage); display: inline-flex; align-items: center; gap: 10px; }
.tp-eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--sage); opacity: .55; }
.tp-lead { font-size: var(--fs-lead); color: var(--ink-soft); line-height: 1.55; }
.tp-section { padding-block: var(--section-y); }
.tp-section--surface { background: var(--surface); }
.tp-muted { color: var(--ink-soft); }

/* compound spec sheet */
.tp-spec { background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
.tp-spec-row { display: flex; justify-content: space-between; gap: 1rem; padding: .9rem 1.25rem; border-bottom: 1px solid var(--border); font-size: .95rem; }
.tp-spec-row:last-child { border-bottom: none; }
.tp-spec-label { color: var(--ink-soft); text-transform: uppercase; letter-spacing: .06em; font-size: .72rem; font-weight: 600; align-self: center; margin: 0; white-space: nowrap; flex-shrink: 0; }
.tp-spec-value { color: var(--ink); text-align: right; margin: 0; flex: 1; min-width: 0; }

/* molecular-structure figure — single compound pagehead (Featured image, or a
   branded motif until one is uploaded). */
.tp-pagehead__cols { align-items: center; gap: clamp(24px, 4vw, 56px); }
.tp-structure { margin: 0; background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--sp-3); box-shadow: var(--sh-1); }
.tp-structure__img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: contain; border-radius: var(--r-md); }
.tp-structure--placeholder { background: var(--surface); box-shadow: none; }
.tp-structure__cap { margin: var(--sp-2) 0 0; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); text-align: center; }

/* compound card media — structure clipped into the brand hexagon, placed in the
   exact spot/size as the decorative .compound__hex (top:-14 / right:-14, 78px)
   and using that hex's path geometry, so image and no-image cards look uniform.
   The card's overflow:hidden trims the bleeding tips the same way it does the
   empty hex. The outer background reads as a thin hex rim around the image. */
.compound__media { position: absolute; top: -14px; right: -14px; width: 78px; height: 78px; z-index: 1; background: var(--border); clip-path: polygon(50% 2.5%, 90% 25%, 90% 75%, 50% 97.5%, 10% 75%, 10% 25%); transition: background .35s var(--ease), transform .35s var(--ease); }
.compound__img { display: block; width: calc(100% - 3px); height: calc(100% - 3px); margin: 1.5px; object-fit: contain; background: #fff; clip-path: polygon(50% 2.5%, 90% 25%, 90% 75%, 50% 97.5%, 10% 75%, 10% 25%); }
.compound:hover .compound__media { background: var(--sage); transform: scale(1.05); }
/* keep the heading/eyebrow clear of the hexagon */
.compound:has(.compound__media) .compound__cat,
.compound:has(.compound__media) .compound__name { padding-right: 72px; }

/* compound category filter (archive) */
.compound-filter { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: var(--sp-4); }
.compound-filter__btn { font-family: var(--font-body); font-size: .86rem; font-weight: 600; letter-spacing: .02em; color: var(--ink-soft); background: #fff; border: 1px solid var(--border); border-radius: var(--r-pill); padding: 9px 18px; cursor: pointer; transition: color .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease); }
.compound-filter__btn:hover { color: var(--ink); border-color: #d7d2c9; }
.compound-filter__btn.is-active { background: var(--sage); border-color: var(--sage); color: #fff; }
.compound[hidden] { display: none; }

/* cards (compound highlights, etc.) */
.tp-card { background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--sp-4) var(--sp-3) var(--sp-3); box-shadow: var(--sh-1); transition: transform .35s var(--ease), box-shadow .35s var(--ease); height: 100%; }
.tp-card:hover { transform: translateY(-4px); box-shadow: var(--sh-2); }
.tp-card h3 { font-size: var(--fs-h3); margin: 0 0 .5rem; }
.tp-card p { color: var(--ink-soft); margin: 0; }
.tp-card-icon { width: 56px; height: 56px; border-radius: var(--r-md); background: var(--surface); color: var(--sage); display: grid; place-items: center; margin-bottom: var(--sp-3); font-size: 1.6rem; }

/* research-use notice */
.tp-notice { background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--cyan); border-radius: var(--r-sm); padding: 1.1rem 1.25rem; font-size: .9rem; color: var(--ink-soft); line-height: 1.6; }

/* contact form (native → Brevo) */
.tp-form { max-width: 580px; margin-top: var(--sp-4); }
.tp-form label { display: block; font-weight: 600; font-size: .9rem; color: var(--ink); margin: var(--sp-3) 0 6px; }
.tp-form input[type="text"], .tp-form input[type="email"], .tp-form textarea {
  width: 100%; font-family: var(--font-body); font-size: 1rem; color: var(--ink); background: #fff;
  border: 1px solid var(--border); border-radius: var(--r-sm); padding: 12px 14px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.tp-form input:focus, .tp-form textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px var(--ring); }
.tp-form textarea { min-height: 150px; resize: vertical; }
.tp-form button[type="submit"] { margin-top: var(--sp-4); cursor: pointer; }
/* honeypot — hidden from humans, visible to bots */
.tp-form .tp-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* dark band (used by inner science pattern if any) */
.tp-band { position: relative; overflow: hidden; background: var(--sage-ink); color: var(--on-dark); border-radius: var(--r-lg); padding: clamp(2.5rem,6vw,4.5rem); }
.tp-band h2 { color: #fff; }
.tp-band p { color: var(--on-dark-soft); }

/* ── RESPONSIVE ── */
@media (max-width: 980px) {
  .science__grid { grid-template-columns: 1fr; gap: var(--sp-5); }
  .science__viz { order: -1; max-width: 360px; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .nav__links, .nav__cta { display: none; }
  .hamburger { display: flex; }
  .compound-grid { grid-template-columns: repeat(2, 1fr); }
  .edu-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .trust__row { grid-template-columns: repeat(2, 1fr); }
  .trust__item:nth-child(3) { border-left: none; }
  .trust__item { border-top: 1px solid var(--border); }
  .trust__item:nth-child(-n+2) { border-top: none; }
}
@media (max-width: 520px) {
  .compound-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .hero__actions .btn { flex: 1 1 100%; justify-content: center; }
  .footer__top { grid-template-columns: 1fr; }
  .tp-spec-value { text-align: left; }
  .tp-spec-row { flex-direction: column; gap: .25rem; }
}

/* ── Newsletter capture ─────────────────────────────────────────────────────── */
.tp-newsletter { max-width: 560px; }
.tp-newsletter__heading { font-size: clamp(1.25rem, 2vw, 1.5rem); margin: 0 0 .5rem; }
.tp-newsletter__desc { color: var(--ink-60); margin: 0 0 1.25rem; }
.tp-newsletter__row {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
}
.tp-newsletter__row input[type="text"],
.tp-newsletter__row input[type="email"] {
  flex: 1 1 160px;
  padding: .65rem 1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--cream);
  color: var(--ink);
  font-family: inherit;
  font-size: .9375rem;
  outline: none;
  transition: border-color .15s;
}
.tp-newsletter__row input:focus { border-color: var(--sage); }
.tp-newsletter__row .btn { white-space: nowrap; }

@media (max-width: 520px) {
  .tp-newsletter__row { flex-direction: column; }
  .tp-newsletter__row input,
  .tp-newsletter__row .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .grad { background-position: 0 0 !important; }
}


