/* =========================================================================
   DR. ANIL PRASAD BHATT — MEDICAL JOURNAL DESIGN SYSTEM
   --------------------------------------------------------------------------
   Architecture: 6 layers
   L1  Design Tokens
   L2  Reset + Base Typography
   L3  Layout Primitives
   L4  Components
   L5  Page Modules (added per page)
   L6  Utilities

   DNA: Mayo Clinic × The Lancet × NYT Magazine × Atul Gawande
   Build: 2026-04-28 — Phoenix AI Agent
   ========================================================================= */


/* =========================================================================
   L1 — DESIGN TOKENS
   ========================================================================= */

:root {

  /* PALETTE -------------------------------------------------------------- */
  --paper:           #FAFAF7;     /* page background */
  --paper-pure:      #FFFFFF;     /* cards, contrast surfaces */
  --paper-cream:     #F4F1EA;     /* subtle alt sections */

  --ink:             #0E0E0E;     /* display headlines */
  --ink-soft:        #2B2B2D;     /* body text */
  --ink-mute:        #6A6A6E;     /* captions, metadata */
  --ink-hairline:    rgba(14,14,14,0.10);  /* 1px dividers */
  --ink-hairline-strong: rgba(14,14,14,0.18);

  --cobalt:          #1E3A8A;     /* sparing accent — italic emphasis, links */
  --cobalt-deep:     #142659;
  --sienna:          #A0522D;     /* very rare — stat numerals */

  --signal:          var(--cobalt);  /* primary signal color */

  /* TYPOGRAPHY ----------------------------------------------------------- */
  --font-serif:  'Source Serif Pro', 'Tiempos Text', Georgia, 'Times New Roman', serif;
  --font-sans:   'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  --font-mono:   'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* SCALE ---------------------------------------------------------------- */
  --fs-display:  clamp(2.5rem, 5vw, 4.2rem);
  --fs-h1:       clamp(2.2rem, 4.5vw, 3.6rem);
  --fs-h2:       clamp(1.8rem, 3.5vw, 2.6rem);
  --fs-h3:       clamp(1.2rem, 2vw, 1.5rem);
  --fs-h4:       1.1rem;
  --fs-lede:     1.18rem;
  --fs-body:     1.05rem;
  --fs-small:    0.92rem;
  --fs-eyebrow:  0.72rem;
  --fs-note:     0.85rem;
  --fs-quote:    clamp(1.3rem, 2.4vw, 1.7rem);

  /* SPATIAL -------------------------------------------------------------- */
  --container:        1080px;
  --container-narrow: 720px;
  --reading-column:   640px;

  --pad-section:      clamp(80px, 12vw, 160px);
  --pad-section-mid:  clamp(60px, 8vw, 120px);
  --pad-section-sm:   clamp(40px, 6vw, 80px);

  --gap-grid:         clamp(32px, 4vw, 56px);
  --gap-content:      clamp(24px, 3vw, 40px);

  /* MOTION --------------------------------------------------------------- */
  --ease:        cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft:   cubic-bezier(0.4, 0, 0.2, 1);
  --dur-fast:    280ms;
  --dur:         800ms;
  --dur-slow:    1200ms;

  /* RADIUS — almost none, very minimal -------------------------------- */
  --radius:      2px;
  --radius-md:   4px;

  /* SHADOWS — used sparingly, just for elevation ---------------------- */
  --shadow-sm:   0 1px 2px rgba(14,14,14,0.04);
  --shadow:      0 4px 24px rgba(14,14,14,0.06);
  --shadow-lg:   0 24px 60px -20px rgba(14,14,14,0.18);

}


/* =========================================================================
   L2 — RESET + BASE
   ========================================================================= */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: var(--fs-body);
  line-height: 1.85;
  color: var(--ink-soft);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
}

img, svg, video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-soft);
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

input, textarea, select {
  font: inherit;
  color: inherit;
}

::selection { background: var(--cobalt); color: var(--paper); }


/* TYPOGRAPHY BASE -------------------------------------------------------- */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.3; }
h4 { font-size: var(--fs-h4); font-weight: 600; }

h1 em, h2 em, h3 em {
  font-style: italic;
  font-weight: 500;
  color: var(--cobalt);
}

p {
  margin: 0;
  max-width: var(--reading-column);
}

p + p { margin-top: 1.2em; }

strong, b { font-weight: 600; color: var(--ink); }
em, i { font-style: italic; }

blockquote {
  font-style: italic;
  font-size: var(--fs-quote);
  line-height: 1.5;
  color: var(--ink);
  font-weight: 500;
  border-left: 2px solid var(--cobalt);
  padding-left: 24px;
  margin: 32px 0;
  max-width: var(--reading-column);
}

cite {
  display: block;
  font-style: normal;
  font-family: var(--font-sans);
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-top: 16px;
  font-weight: 600;
}

ul, ol { padding-left: 1.4em; }
li { margin-bottom: 0.4em; }

hr {
  border: none;
  height: 1px;
  background: var(--ink-hairline);
  margin: 60px 0;
}


/* =========================================================================
   L3 — LAYOUT PRIMITIVES
   ========================================================================= */

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

.container-narrow {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

.section {
  padding: var(--pad-section) 0;
  position: relative;
}

.section--mid { padding: var(--pad-section-mid) 0; }
.section--sm  { padding: var(--pad-section-sm) 0; }

.section--paper-cream { background: var(--paper-cream); }
.section--ink         { background: var(--ink); color: var(--paper); }
.section--ink h1, .section--ink h2, .section--ink h3 { color: var(--paper); }
.section--ink p { color: rgba(250,250,247,0.75); }

.section--bordered    { border-top: 1px solid var(--ink-hairline); border-bottom: 1px solid var(--ink-hairline); }
.section--top-rule    { border-top: 1px solid var(--ink-hairline); }
.section--bottom-rule { border-bottom: 1px solid var(--ink-hairline); }

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap-grid);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap-grid);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap-grid);
}

.grid-7-5 {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: var(--gap-grid);
  align-items: center;
}

.grid-5-7 {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: var(--gap-grid);
  align-items: center;
}

.stack > * + * { margin-top: var(--gap-content); }
.stack-sm > * + * { margin-top: 16px; }
.stack-lg > * + * { margin-top: 48px; }


/* =========================================================================
   L4 — COMPONENTS
   ========================================================================= */


/* EYEBROW (section labels) ---------------------------------------------- */

.eyebrow {
  font-family: var(--font-sans);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  display: inline-block;
}

.eyebrow--rule::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--ink-mute);
  vertical-align: middle;
  margin-right: 12px;
}

.eyebrow--cobalt { color: var(--cobalt); }
.eyebrow--cobalt.eyebrow--rule::before { background: var(--cobalt); }


/* ROMAN NUMERAL section markers ----------------------------------------- */

.roman {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: 1.4rem;
  color: var(--cobalt);
  display: block;
  margin-bottom: 12px;
}


/* DISPLAY HEADLINE ------------------------------------------------------ */

.display {
  font-family: var(--font-serif);
  font-size: var(--fs-display);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.display em {
  font-style: italic;
  font-weight: 500;
  color: var(--cobalt);
}


/* LEDE PARAGRAPH ------------------------------------------------------- */

.lede {
  font-family: var(--font-serif);
  font-size: var(--fs-lede);
  line-height: 1.65;
  color: var(--ink-soft);
  font-weight: 400;
  max-width: var(--reading-column);
}


/* DROP CAP ------------------------------------------------------------- */

.dropcap::first-letter {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 4.2em;
  float: left;
  line-height: 0.9;
  margin: 0.08em 0.12em 0 0;
  color: var(--ink);
}


/* ARTICLE META (byline / date / reading time) -------------------------- */

.meta {
  font-family: var(--font-sans);
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
}

.meta span { display: inline-flex; align-items: center; gap: 8px; }
.meta span + span::before {
  content: '·';
  color: var(--ink-mute);
  margin-right: 16px;
  font-size: 1.2rem;
  line-height: 1;
}


/* FOOTNOTE / CAPTION --------------------------------------------------- */

.footnote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: var(--fs-note);
  color: var(--ink-mute);
  line-height: 1.6;
  max-width: var(--reading-column);
}

.footnote::before {
  content: '— ';
}


/* PULL QUOTE ----------------------------------------------------------- */

.pullquote {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: var(--fs-quote);
  line-height: 1.5;
  color: var(--ink);
  max-width: 880px;
  margin: 0 auto;
  text-align: left;
  letter-spacing: -0.005em;
}

.pullquote-attr {
  font-family: var(--font-sans);
  font-style: normal;
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-top: 24px;
  display: block;
}


/* BUTTONS — restrained, text + arrow ----------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 28px;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-soft);
  position: relative;
}

.btn::after {
  content: '→';
  transition: transform var(--dur-fast) var(--ease-soft);
  font-weight: 400;
  font-size: 1rem;
  letter-spacing: 0;
}

.btn:hover {
  background: var(--ink);
  color: var(--paper);
}

.btn:hover::after { transform: translateX(6px); }

.btn--filled {
  background: var(--ink);
  color: var(--paper);
}
.btn--filled:hover {
  background: var(--cobalt);
  border-color: var(--cobalt);
}

.btn--cobalt {
  background: var(--cobalt);
  border-color: var(--cobalt);
  color: var(--paper);
}
.btn--cobalt:hover {
  background: var(--cobalt-deep);
  border-color: var(--cobalt-deep);
}

.btn--paper {
  background: transparent;
  border-color: var(--paper);
  color: var(--paper);
}
.btn--paper:hover {
  background: var(--paper);
  color: var(--ink);
}

.btn--bare {
  border: none;
  padding: 0;
  background: transparent;
  color: var(--ink);
}
.btn--bare:hover { background: transparent; color: var(--cobalt); }


/* INLINE LINK (within prose) ------------------------------------------- */

.link-inline {
  color: var(--cobalt);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: text-decoration-thickness var(--dur-fast) var(--ease-soft);
}
.link-inline:hover { text-decoration-thickness: 2px; }


/* NAV ------------------------------------------------------------------- */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(250,250,247,0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-fast) var(--ease-soft);
}

.nav--scrolled { border-bottom-color: var(--ink-hairline); }

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}

.nav-logo-mark {
  width: 36px;
  height: 36px;
  background: var(--ink);
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
}

.nav-logo-text { display: flex; flex-direction: column; line-height: 1.1; }

.nav-logo-name {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.nav-logo-credentials {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-top: 2px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 32px;
  align-items: center;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0.02em;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  height: 1px;
  width: 0;
  background: var(--cobalt);
  transition: width var(--dur-fast) var(--ease-soft);
}

.nav-links a:hover { color: var(--cobalt); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  padding: 10px 20px;
  border: 1px solid var(--ink);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  transition: all var(--dur-fast) var(--ease-soft);
}

.nav-cta:hover { background: var(--ink); color: var(--paper); }

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-burger span {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--ink);
  transition: transform var(--dur-fast) var(--ease-soft);
}


/* HERO ------------------------------------------------------------------ */

.hero {
  padding: 160px 0 100px;
  background: var(--paper);
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}

.hero-text > * + * { margin-top: 28px; }

.hero h1 {
  font-size: var(--fs-display);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--ink);
  max-width: 16ch;
}

.hero-portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--ink);
  overflow: hidden;
}

.hero-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: contrast(1.05) saturate(0.92);
  transition: transform var(--dur-slow) var(--ease);
}

.hero-portrait:hover img { transform: scale(1.03); }

.hero-portrait-caption {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  background: rgba(250,250,247,0.95);
  padding: 10px 14px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: var(--fs-note);
  color: var(--ink);
  border-left: 2px solid var(--cobalt);
}


/* CREDENTIAL ROW ------------------------------------------------------- */

.creds {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  padding: 18px 0;
  border-top: 1px solid var(--ink-hairline);
  border-bottom: 1px solid var(--ink-hairline);
}

.creds span {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 0 18px;
  border-right: 1px solid var(--ink-hairline);
}

.creds span:first-child { padding-left: 0; }
.creds span:last-child { border-right: none; }


/* STATS — academic monograph style ------------------------------------- */

.stat {
  display: block;
}

.stat-num {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  color: var(--ink);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.stat-num--cobalt { color: var(--cobalt); }
.stat-num--sienna { color: var(--sienna); }

.stat-label {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 6px;
  display: block;
}

.stat-context {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: var(--fs-note);
  color: var(--ink-mute);
  line-height: 1.5;
  max-width: 30ch;
}


/* CARD — hairline borders, no shadows ---------------------------------- */

.card {
  background: var(--paper-pure);
  border: 1px solid var(--ink-hairline);
  padding: 40px 32px;
  transition: border-color var(--dur-fast) var(--ease-soft);
}

.card:hover { border-color: var(--ink-hairline-strong); }

.card h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 14px;
  line-height: 1.25;
}

.card p { font-size: var(--fs-small); line-height: 1.7; color: var(--ink-soft); }

.card-num {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: 1.6rem;
  color: var(--cobalt);
  display: block;
  margin-bottom: 20px;
  line-height: 1;
}

.card-link {
  display: inline-block;
  margin-top: 20px;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  position: relative;
  transition: color var(--dur-fast) var(--ease-soft);
}
.card-link::after { content: ' →'; transition: padding-left var(--dur-fast) var(--ease-soft); }
.card-link:hover { color: var(--cobalt); }
.card-link:hover::after { padding-left: 6px; }


/* SECTION HEADER ------------------------------------------------------- */

.section-header {
  max-width: 760px;
  margin-bottom: 80px;
}

.section-header--center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section-header h2 {
  font-size: var(--fs-h2);
  margin: 16px 0 20px;
}

.section-header p {
  font-size: var(--fs-lede);
  line-height: 1.65;
  color: var(--ink-soft);
}


/* FOOTER — magazine masthead ------------------------------------------- */

.footer {
  background: var(--ink);
  color: var(--paper);
  padding: 80px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(250,250,247,0.12);
}

.footer-brand .nav-logo-name { color: var(--paper); }
.footer-brand .nav-logo-credentials { color: rgba(250,250,247,0.55); }
.footer-brand .nav-logo-mark { background: var(--paper); color: var(--ink); }

.footer-tagline {
  margin-top: 20px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: var(--fs-small);
  line-height: 1.7;
  color: rgba(250,250,247,0.7);
  max-width: 36ch;
}

.footer h4 {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(250,250,247,0.55);
  margin-bottom: 20px;
}

.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 12px; }

.footer a {
  font-family: var(--font-serif);
  font-size: var(--fs-small);
  color: rgba(250,250,247,0.85);
  transition: color var(--dur-fast) var(--ease-soft);
}
.footer a:hover { color: var(--paper); }

.footer-bottom {
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-family: var(--font-sans);
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(250,250,247,0.5);
}


/* WHATSAPP FLOAT ------------------------------------------------------- */

.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 56px;
  height: 56px;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 90;
  transition: transform var(--dur-fast) var(--ease-soft);
  box-shadow: 0 12px 32px -8px rgba(37,211,102,0.5);
}

.whatsapp-float:hover { transform: scale(1.08); }


/* PRELOADER ------------------------------------------------------------ */

.preloader {
  position: fixed;
  inset: 0;
  background: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  transition: opacity 600ms var(--ease-soft), visibility 0s 600ms;
}

.preloader.hidden { opacity: 0; visibility: hidden; }

.preloader-mark {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 600;
  font-size: 2rem;
  color: var(--ink);
  letter-spacing: -0.02em;
  position: relative;
}

.preloader-mark::after {
  content: '';
  position: absolute;
  bottom: -8px; left: 0;
  width: 100%;
  height: 1px;
  background: var(--cobalt);
  transform-origin: left;
  animation: preloaderRule 1.4s var(--ease) infinite;
}

@keyframes preloaderRule {
  0%   { transform: scaleX(0); }
  50%  { transform: scaleX(1); }
  100% { transform: scaleX(0); transform-origin: right; }
}


/* =========================================================================
   L6 — UTILITIES
   ========================================================================= */

/* Reveal on scroll ----------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 100ms; }
.reveal-d2 { transition-delay: 200ms; }
.reveal-d3 { transition-delay: 300ms; }
.reveal-d4 { transition-delay: 400ms; }
.reveal-d5 { transition-delay: 500ms; }

/* Text utilities ------------------------------------------------------- */
.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }
.text-mute   { color: var(--ink-mute); }
.text-cobalt { color: var(--cobalt); }
.text-italic { font-style: italic; }
.text-serif  { font-family: var(--font-serif); }
.text-sans   { font-family: var(--font-sans); }
.text-mono   { font-family: var(--font-mono); }

/* Spacing utilities ---------------------------------------------------- */
.mt-0  { margin-top: 0; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-40 { margin-top: 40px; }
.mt-56 { margin-top: 56px; }
.mt-80 { margin-top: 80px; }

.mb-0  { margin-bottom: 0; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-40 { margin-bottom: 40px; }

/* Display utilities ---------------------------------------------------- */
.hidden    { display: none !important; }
.block     { display: block; }
.inline    { display: inline; }
.flex      { display: flex; }
.flex-col  { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-16    { gap: 16px; }
.gap-24    { gap: 24px; }
.gap-32    { gap: 32px; }


/* =========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================= */

@media (max-width: 1024px) {
  .grid-7-5, .grid-5-7 { grid-template-columns: 1fr; gap: 56px; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .nav-cta { display: none; }
  .nav.nav--open .nav-links {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    background: var(--paper);
    padding: 24px;
    border-bottom: 1px solid var(--ink-hairline);
    gap: 20px;
  }
}

@media (max-width: 640px) {
  .hero { padding: 120px 0 60px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .creds { flex-direction: column; align-items: flex-start; gap: 8px; }
  .creds span { padding: 0; border-right: none; }
  .nav-logo-credentials { display: none; }
  .meta { gap: 16px; }
  .meta span + span::before { display: none; }
}


/* =========================================================================
   PRINT STYLES — for medical journal believability
   ========================================================================= */

@media print {
  .nav, .footer, .whatsapp-float, .preloader { display: none; }
  body { background: white; color: black; }
  .section { padding: 24px 0; page-break-inside: avoid; }
  a { color: black; text-decoration: underline; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.85em; }
}


/* =========================================================================
   END — STYLE-V2.CSS
   --------------------------------------------------------------------------
   Total layers: 6
   Components: 14
   Utilities: 30+
   Designed for: 17 public pages + 4 admin modules
   ========================================================================= */