/* ═══════════════════════════════════════════════════════════
   Dr. Dharam P. Pandey — design system
   Brand: #0F4294 (navy) · #0EAEAB (teal)
   ═══════════════════════════════════════════════════════════ */

:root {
  /* ── Brand ─────────────────────────────── */
  --navy:       #0F4294;
  --navy-dark:  #0B3273;
  --navy-deep:  #071B3D;
  --teal:       #0EAEAB;
  --teal-dark:  #0A8E8B;
  --teal-soft:  #E4F6F5;
  --navy-soft:  #EDF2FB;

  /* ── Semantic ──────────────────────────── */
  --bg:        #ffffff;
  --bg-alt:    #F4F7FC;
  --surface:   #ffffff;
  --ink:       #0D1826;
  --ink-soft:  #4C5D73;
  --ink-faint: #78899E;
  --line:      #DDE5F0;
  --accent:      var(--navy);
  --accent-ink:  var(--navy);
  --accent-wash: var(--navy-soft);

  --shadow-sm: 0 1px 2px rgba(13,24,38,.05), 0 4px 12px rgba(13,24,38,.05);
  --shadow:    0 2px 4px rgba(13,24,38,.06), 0 12px 28px rgba(13,24,38,.08);
  --shadow-lg: 0 4px 8px rgba(13,24,38,.07), 0 24px 56px rgba(13,24,38,.12);

  /* ── Type ──────────────────────────────── */
  --display: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --sans:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --serif:   "Newsreader", Georgia, "Times New Roman", serif;

  /* ── Space ─────────────────────────────── */
  --wrap: 1180px;
  --wrap-narrow: 760px;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(3.5rem, 8vw, 6.5rem);
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
}

:root[data-theme="dark"] {
  --bg:        #0A1220;
  --bg-alt:    #0E1929;
  --surface:   #121F33;
  --ink:       #E9EFF8;
  --ink-soft:  #A2B3C9;
  --ink-faint: #7688A0;
  --line:      #223148;
  --navy-soft: #14243F;
  --teal-soft: #0F2A2C;
  --accent:      var(--teal);
  --accent-ink:  #4FD1CD;
  --accent-wash: var(--teal-soft);

  --shadow-sm: 0 1px 2px rgba(0,0,0,.4), 0 4px 12px rgba(0,0,0,.3);
  --shadow:    0 2px 4px rgba(0,0,0,.45), 0 12px 28px rgba(0,0,0,.35);
  --shadow-lg: 0 4px 8px rgba(0,0,0,.5), 0 24px 56px rgba(0,0,0,.45);
}

/* ═══ Base ═══════════════════════════════════ */

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

html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.68;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color .25s ease, color .25s ease;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -.02em;
  margin: 0;
  text-wrap: balance;
}
p { margin: 0 0 1.1rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--accent-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

img { max-width: 100%; display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

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

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--navy); color: #fff; padding: .8rem 1.2rem; border-radius: 0 0 10px 0;
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { left: 0; }

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

/* ═══ Header ═════════════════════════════════ */

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-stuck { border-bottom-color: var(--line); box-shadow: 0 2px 16px rgba(13,24,38,.05); }

.header-inner { display: flex; align-items: center; gap: 1rem; height: 80px; }

.brand { display: flex; align-items: center; text-decoration: none; margin-right: auto; flex-shrink: 1; min-width: 0; }
.brand-logo { height: 52px; width: auto; max-width: 100%; object-fit: contain; }
.brand-logo-white { display: none; }
:root[data-theme="dark"] .brand-logo-colour { display: none; }
:root[data-theme="dark"] .brand-logo-white  { display: block; }

.nav { display: flex; align-items: center; gap: .2rem; }
.nav a {
  position: relative; padding: .5rem .8rem; border-radius: 9px;
  font-size: .93rem; font-weight: 500; color: var(--ink-soft); text-decoration: none;
  transition: color .15s ease, background-color .15s ease;
}
.nav a:hover { color: var(--ink); background: var(--bg-alt); }
.nav a.is-active { color: var(--accent-ink); background: var(--accent-wash); font-weight: 600; }
.nav a.nav-cta {
  color: #fff; background: var(--navy); margin-left: .4rem; font-weight: 600;
}
.nav a.nav-cta:hover { background: var(--navy-dark); color: #fff; }
:root[data-theme="dark"] .nav a.nav-cta { background: var(--teal); color: #06231F; }
:root[data-theme="dark"] .nav a.nav-cta:hover { background: #3FC7C3; color: #06231F; }

.header-tools { display: flex; align-items: center; gap: .4rem; }

.icon-btn {
  display: grid; place-items: center; flex-shrink: 0;
  width: 40px; height: 40px; padding: 0;
  border: 1px solid var(--line); border-radius: 11px;
  background: var(--surface); color: var(--ink-soft); cursor: pointer;
  transition: color .15s ease, border-color .15s ease;
}
.icon-btn:hover { color: var(--ink); border-color: var(--ink-faint); }
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn .i-moon { display: none; }
:root[data-theme="dark"] .icon-btn .i-sun { display: none; }
:root[data-theme="dark"] .icon-btn .i-moon { display: block; }
.menu-btn { display: none; }

/* ═══ Buttons ════════════════════════════════ */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem 1.5rem; border: 1.5px solid transparent; border-radius: 11px;
  font: inherit; font-size: .95rem; font-weight: 600; text-decoration: none;
  cursor: pointer; white-space: nowrap;
  transition: transform .12s ease, background-color .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--navy); color: #fff; box-shadow: 0 4px 14px rgba(15,66,148,.24); }
.btn-primary:hover { background: var(--navy-dark); box-shadow: 0 6px 20px rgba(15,66,148,.32); }
.btn-teal { background: var(--teal); color: #04302E; box-shadow: 0 4px 14px rgba(14,174,171,.28); }
.btn-teal:hover { background: var(--teal-dark); color: #fff; }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--navy); color: var(--accent-ink); background: var(--accent-wash); }
.btn-onnavy { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.32); backdrop-filter: blur(4px); }
.btn-onnavy:hover { background: rgba(255,255,255,.2); border-color: rgba(255,255,255,.55); }
.btn-block { width: 100%; }
:root[data-theme="dark"] .btn-primary { background: var(--teal); color: #06231F; box-shadow: none; }
:root[data-theme="dark"] .btn-primary:hover { background: #3FC7C3; }

/* ═══ Section furniture ══════════════════════ */

.section { padding: var(--section-y) 0; }
.section-alt { background: var(--bg-alt); }
.section-navy {
  background: linear-gradient(150deg, var(--navy-deep) 0%, var(--navy) 55%, var(--navy-dark) 100%);
  color: #fff;
}
.section-navy h2, .section-navy h3 { color: #fff; }
.section-navy p { color: rgba(255,255,255,.82); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .76rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase;
  color: var(--teal-dark); margin-bottom: .85rem;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--teal); border-radius: 2px; }
.section-navy .eyebrow { color: var(--teal); }
.section-navy .eyebrow::before { background: var(--teal); }

.section-title { font-size: clamp(1.85rem, 3.8vw, 2.7rem); margin-bottom: 1rem; }
.page-title { font-size: clamp(2.2rem, 5.5vw, 3.4rem); margin-bottom: 1rem; }
.section-intro { color: var(--ink-soft); max-width: 64ch; font-size: 1.03rem; margin-bottom: 2.75rem; }
.section-navy .section-intro { color: rgba(255,255,255,.8); }
.section-head { margin-bottom: 2.75rem; }
.section-head .section-intro { margin-bottom: 0; }

/* ═══ Page hero (interior pages) ═════════════ */

.page-hero {
  background: linear-gradient(150deg, var(--navy-deep) 0%, var(--navy) 60%, var(--navy-dark) 100%);
  color: #fff; padding: clamp(3rem, 7vw, 5rem) 0 clamp(3rem, 7vw, 4.5rem);
  position: relative; overflow: hidden;
}
.page-hero::after {
  content: ""; position: absolute; right: -12%; top: -40%;
  width: 46%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(14,174,171,.34) 0%, transparent 68%);
  pointer-events: none;
}
.page-hero .eyebrow { color: var(--teal); }
.page-hero .eyebrow::before { background: var(--teal); }
.page-hero p { color: rgba(255,255,255,.85); max-width: 62ch; font-size: 1.06rem; margin: 0; }
.page-hero .wrap { position: relative; z-index: 1; }

.crumbs { font-size: .85rem; color: rgba(255,255,255,.6); margin-bottom: 1.4rem; }
.crumbs a { color: rgba(255,255,255,.85); text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.crumbs span { margin: 0 .45rem; }

/* ═══ Home hero ══════════════════════════════ */

.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(155deg, var(--navy-deep) 0%, var(--navy) 58%, var(--navy-dark) 100%);
  color: #fff; padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(3rem, 7vw, 5rem);
}
.hero::after {
  content: ""; position: absolute; right: -10%; top: -30%;
  width: 52%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(14,174,171,.32) 0%, transparent 66%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.12fr .88fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero .eyebrow { color: var(--teal); }
.hero .eyebrow::before { background: var(--teal); }
.hero h1 { font-size: clamp(2.4rem, 5.6vw, 3.9rem); font-weight: 800; margin-bottom: 1.15rem; color: #fff; }
.hero h1 .thin { display: block; font-size: .46em; font-weight: 600; letter-spacing: 0; color: var(--teal); margin-bottom: .5rem; }
.lede { font-size: clamp(1.03rem, 1.6vw, 1.16rem); color: rgba(255,255,255,.85); max-width: 54ch; }

.hero-quote {
  margin: 1.6rem 0 0; padding: .2rem 0 .2rem 1.2rem;
  border-left: 3px solid var(--teal);
  font-family: var(--serif); font-size: 1.08rem; font-style: italic;
  line-height: 1.5; color: rgba(255,255,255,.9); max-width: 50ch;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 2rem 0 0; }

.hero-portrait {
  margin: 0; position: relative; aspect-ratio: 4/5; border-radius: var(--r-lg); overflow: hidden;
  background: rgba(255,255,255,.06); box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,.14);
}
.hero-portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait-fallback { display: none; }
.hero-portrait.is-empty { display: grid; place-items: center; text-align: center; border-style: dashed; }
.hero-portrait.is-empty .portrait-fallback { display: block; color: rgba(255,255,255,.6); font-size: .88rem; line-height: 1.8; }

/* ═══ Stat band ══════════════════════════════ */

.statband { background: var(--surface); border-bottom: 1px solid var(--line); }
.statband-inner {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 3vw, 2rem); padding: clamp(1.75rem, 4vw, 2.5rem) 0;
}
.stat { text-align: center; position: relative; }
.stat + .stat::before {
  content: ""; position: absolute; left: calc(-.5 * clamp(1rem, 3vw, 2rem)); top: 12%;
  height: 76%; width: 1px; background: var(--line);
}
.stat strong {
  display: block; font-family: var(--display); font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800; line-height: 1.05; color: var(--navy);
  background: linear-gradient(120deg, var(--navy), var(--teal));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
:root[data-theme="dark"] .stat strong { background: linear-gradient(120deg, #6FA5F0, var(--teal)); -webkit-background-clip: text; background-clip: text; }
.stat span { display: block; font-size: .82rem; color: var(--ink-faint); margin-top: .3rem; letter-spacing: .01em; }

/* ═══ Cards ══════════════════════════════════ */

.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); padding: 1.85rem;
}
.card h3 { font-size: 1.18rem; margin-bottom: .8rem; }
.card p { color: var(--ink-soft); font-size: .96rem; }
.card-lift { transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.card-lift:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--teal) 45%, var(--line)); }

.card-icon {
  display: grid; place-items: center; width: 48px; height: 48px;
  border-radius: 13px; background: var(--accent-wash); color: var(--accent-ink); margin-bottom: 1.2rem;
}
.card-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.4rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 1.4rem; }

.tick-list li { position: relative; padding-left: 1.6rem; margin-bottom: .55rem; color: var(--ink-soft); font-size: .95rem; }
.tick-list li:last-child { margin-bottom: 0; }
.tick-list li::before {
  content: ""; position: absolute; left: 0; top: .58em;
  width: 8px; height: 8px; border-radius: 2px; background: var(--teal);
}
.tick-list strong { color: var(--ink); font-weight: 600; }

.pill-row { display: flex; flex-wrap: wrap; gap: .55rem; }
.pill-row li {
  padding: .42rem .95rem; border: 1px solid var(--line); border-radius: 999px;
  font-size: .87rem; color: var(--ink-soft); background: var(--surface);
}
.pill-row.logos li {
  font-family: var(--display); font-size: .97rem; font-weight: 700;
  color: var(--ink-faint); border-color: transparent; background: transparent;
  padding-inline: 0; margin-right: 1.7rem;
}

/* ═══ Timeline ═══════════════════════════════ */

.timeline { border-left: 2px solid var(--line); padding-left: clamp(1.4rem, 3vw, 2.2rem); }
.tl-item { position: relative; padding-bottom: 2.4rem; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; top: .45rem;
  left: calc(-1 * clamp(1.4rem, 3vw, 2.2rem) - 8px);
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--teal); border: 3px solid var(--bg-alt);
}
.section:not(.section-alt) .tl-item::before { border-color: var(--bg); }
.tl-date { font-size: .8rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--teal-dark); margin-bottom: .35rem; }
.tl-item h3 { font-size: 1.22rem; margin-bottom: .25rem; }
.tl-org { color: var(--ink); font-weight: 600; font-size: .95rem; margin-bottom: .4rem; }
.tl-item > p:last-child { color: var(--ink-soft); font-size: .95rem; margin: 0; }

/* ═══ F-MATS ═════════════════════════════════ */

.fmats { display: grid; grid-template-columns: repeat(auto-fit, minmax(205px, 1fr)); gap: 1.1rem; margin-bottom: 2rem; }
.fmats li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 1.5rem; }
.section-navy .fmats li { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.16); }
.fmats-letter {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(135deg, var(--navy), var(--teal)); color: #fff;
  font-family: var(--display); font-size: 1.35rem; font-weight: 800; margin-bottom: 1rem;
}
.section-navy .fmats-letter { background: var(--teal); color: #04302E; }
.fmats h3 { font-size: 1.05rem; margin-bottom: .45rem; }
.fmats p { color: var(--ink-soft); font-size: .92rem; margin: 0; }
.section-navy .fmats p { color: rgba(255,255,255,.78); }

/* ═══ Publications ═══════════════════════════ */

.pub-list { border-top: 1px solid var(--line); }
.pub { display: grid; grid-template-columns: 104px 1fr; gap: 1.4rem; padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
.pub-year {
  font-family: var(--display); font-size: .82rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; color: var(--teal-dark);
  padding-top: .3rem;
}
.pub h3 { font-size: 1.08rem; font-weight: 600; line-height: 1.4; margin-bottom: .4rem; }
.pub-meta { color: var(--ink-soft); font-size: .93rem; margin: 0; }

/* ═══ Blog ═══════════════════════════════════ */

.post-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); gap: 1.5rem; }
.post {
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 1.75rem; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.post:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--teal) 45%, var(--line)); }
.post h3 { font-size: 1.18rem; line-height: 1.34; margin-bottom: .6rem; }
.post p { color: var(--ink-soft); font-size: .94rem; flex: 1; }
.post-more { font-size: .88rem; font-weight: 700; color: var(--accent-ink); margin-top: 1rem; }

.tag {
  display: inline-block; align-self: flex-start;
  padding: .28rem .7rem; border-radius: 999px;
  font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  margin-bottom: .9rem;
}
.tag-clinical { background: var(--navy-soft); color: var(--navy); }
.tag-patient  { background: var(--teal-soft); color: var(--teal-dark); }
:root[data-theme="dark"] .tag-clinical { background: #16294A; color: #7FAEF5; }
:root[data-theme="dark"] .tag-patient  { background: #0F2A2C; color: #4FD1CD; }

.post-meta { font-size: .84rem; color: var(--ink-faint); margin-bottom: .5rem; }

/* Article body */
.article { padding: clamp(2.5rem, 6vw, 4rem) 0 var(--section-y); }
.article-body { font-size: 1.08rem; line-height: 1.78; color: var(--ink-soft); }
.article-body > p:first-of-type { font-size: 1.18rem; color: var(--ink); line-height: 1.66; }
.article-body h2 {
  font-size: 1.5rem; color: var(--ink); margin: 2.6rem 0 .9rem;
  padding-top: 1.6rem; border-top: 1px solid var(--line);
}
.article-body h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.article-body h3 { font-size: 1.18rem; color: var(--ink); margin: 1.8rem 0 .6rem; }
.article-body ul { margin: 0 0 1.2rem; }
.article-body ul li { position: relative; padding-left: 1.6rem; margin-bottom: .6rem; }
.article-body ul li::before {
  content: ""; position: absolute; left: .1rem; top: .68em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--teal);
}
.article-body strong { color: var(--ink); font-weight: 650; }

.article-foot {
  margin-top: 3rem; padding: 1.8rem; border-radius: var(--r);
  background: var(--bg-alt); border: 1px solid var(--line);
  display: flex; gap: 1.3rem; align-items: center; flex-wrap: wrap;
}
.article-foot img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.article-foot h3 { font-size: 1.05rem; margin-bottom: .3rem; }
.article-foot p { font-size: .92rem; color: var(--ink-soft); margin: 0; }

.medical-note {
  margin-top: 2rem; padding: 1.15rem 1.35rem; border-radius: var(--r-sm);
  background: var(--teal-soft); border-left: 4px solid var(--teal);
  font-size: .92rem; color: var(--ink-soft);
}
.medical-note strong { color: var(--ink); }

/* ═══ Gallery ════════════════════════════════ */

.gal-filters { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2.5rem; }
.gal-filter {
  padding: .55rem 1.2rem; border: 1.5px solid var(--line); border-radius: 999px;
  background: var(--surface); color: var(--ink-soft);
  font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer;
  transition: color .15s ease, border-color .15s ease, background-color .15s ease;
}
.gal-filter:hover { border-color: var(--teal); color: var(--accent-ink); }
.gal-filter.is-on { background: var(--navy); border-color: var(--navy); color: #fff; }
:root[data-theme="dark"] .gal-filter.is-on { background: var(--teal); border-color: var(--teal); color: #06231F; }

.gallery { columns: 3; column-gap: 1.15rem; }
.gal-item {
  break-inside: avoid; margin-bottom: 1.15rem; border-radius: var(--r);
  overflow: hidden; background: var(--surface); border: 1px solid var(--line);
  cursor: zoom-in; position: relative; display: block; width: 100%; padding: 0;
  text-align: left; font: inherit; color: inherit;
  transition: transform .2s ease, box-shadow .2s ease;
}
.gal-item:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.gal-item img { width: 100%; height: auto; display: block; }
.gal-cap {
  padding: .8rem 1rem; font-size: .88rem; color: var(--ink-soft);
  text-align: left; line-height: 1.45;
}
.gal-item[hidden] { display: none; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(7,27,61,.94); backdrop-filter: blur(6px);
  display: none; place-items: center; padding: clamp(1rem, 4vw, 3rem);
}
.lightbox.is-open { display: grid; }
.lightbox img { max-width: 100%; max-height: 78vh; border-radius: var(--r); box-shadow: var(--shadow-lg); }
.lightbox figcaption { color: rgba(255,255,255,.85); text-align: center; margin-top: 1rem; font-size: .95rem; }
.lb-close, .lb-prev, .lb-next {
  position: absolute; display: grid; place-items: center;
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3);
  color: #fff; font-size: 1.5rem; cursor: pointer; line-height: 1;
  transition: background-color .15s ease;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: rgba(255,255,255,.3); }
.lb-close { top: 1.5rem; right: 1.5rem; }
.lb-prev { left: 1.5rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1.5rem; top: 50%; transform: translateY(-50%); }

/* ═══ Callout ════════════════════════════════ */

.callout {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.6rem;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: #fff; border-radius: var(--r-lg); padding: clamp(1.75rem, 4vw, 2.75rem);
}
.callout h3 { font-size: 1.45rem; margin-bottom: .45rem; color: #fff; }
.callout p { color: rgba(255,255,255,.82); margin: 0; max-width: 52ch; }

/* ═══ Contact ════════════════════════════════ */

.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact-list { margin: 0 0 2rem; }
.contact-list li { display: grid; grid-template-columns: 96px 1fr; gap: 1rem; padding: .85rem 0; border-bottom: 1px solid var(--line); }
.contact-list li:first-child { border-top: 1px solid var(--line); }
.contact-label { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); padding-top: .25rem; }

.socials { display: flex; flex-wrap: wrap; gap: .55rem; }
.socials a {
  padding: .45rem 1rem; border: 1px solid var(--line); border-radius: 999px;
  font-size: .87rem; font-weight: 500; text-decoration: none; color: var(--ink-soft); background: var(--surface);
  transition: color .15s ease, border-color .15s ease;
}
.socials a:hover { color: var(--accent-ink); border-color: var(--teal); }

.contact-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(1.6rem, 3vw, 2.2rem); box-shadow: var(--shadow-sm); }
.field { margin-bottom: 1.15rem; }
.field label { display: block; font-size: .86rem; font-weight: 600; margin-bottom: .45rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: .78rem .95rem;
  border: 1.5px solid var(--line); border-radius: 10px;
  font: inherit; font-size: .95rem; color: var(--ink); background: var(--bg);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--teal);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--teal) 22%, transparent);
}
.field .invalid { border-color: #D64545; }
.form-note { font-size: .88rem; margin: .9rem 0 0; min-height: 1.2em; }
.form-note.ok { color: var(--teal-dark); font-weight: 600; }
.form-note.err { color: #D64545; }

/* ═══ Footer ═════════════════════════════════ */

.site-footer { background: var(--navy-deep); color: rgba(255,255,255,.75); padding: clamp(2.75rem, 6vw, 4rem) 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: clamp(1.75rem, 4vw, 3.5rem); margin-bottom: 2.5rem; }
.footer-grid h4 { font-size: .8rem; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; color: var(--teal); margin-bottom: 1rem; }
.footer-grid p { font-size: .93rem; color: rgba(255,255,255,.7); }
.footer-grid a { color: rgba(255,255,255,.78); text-decoration: none; font-size: .93rem; }
.footer-grid a:hover { color: #fff; text-decoration: underline; }
.footer-grid li { margin-bottom: .55rem; }
.footer-brand { margin-bottom: 1.15rem; }
.footer-brand img { height: 78px; width: auto; max-width: 100%; object-fit: contain; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  padding-top: 1.75rem; border-top: 1px solid rgba(255,255,255,.14);
  font-size: .87rem; color: rgba(255,255,255,.55);
}
.footer-bottom a { color: rgba(255,255,255,.7); text-decoration: none; }
.footer-bottom a:hover { color: #fff; }

/* ═══ Reveal ═════════════════════════════════ */

.reveal { opacity: 0; transform: translateY(20px); transition: opacity .65s ease, transform .65s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ═══ Responsive ═════════════════════════════ */

@media (max-width: 1000px) {
  .gallery { columns: 2; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-portrait { max-width: 330px; }
  .contact-inner { grid-template-columns: 1fr; }
  .statband-inner { grid-template-columns: repeat(2, 1fr); row-gap: 1.75rem; }
  .stat:nth-child(3)::before { display: none; }
}

@media (max-width: 800px) {
  .brand-logo { height: 40px; }
  .menu-btn { display: grid; }
  .nav {
    position: absolute; top: 80px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: .15rem;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: .8rem var(--pad) 1.4rem; box-shadow: var(--shadow);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: .78rem .85rem; font-size: 1rem; }
  .nav a.nav-cta { margin: .5rem 0 0; text-align: center; justify-content: center; }
  .pub { grid-template-columns: 1fr; gap: .3rem; }
  .contact-list li { grid-template-columns: 1fr; gap: .15rem; }
  .callout { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr; }
  .gallery { columns: 1; }
  .lb-prev { left: .5rem; } .lb-next { right: .5rem; }
}

/* ═══ Print ══════════════════════════════════ */

@media print {
  .site-header, .hero-actions, .contact-form, .site-footer, .callout .btn,
  .gal-filters, .lightbox, .article-foot { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .hero, .page-hero, .section-navy { background: #fff !important; color: #000 !important; }
  .hero h1, .page-hero h1, .section-navy h2, .section-navy h3 { color: #000 !important; }
  .hero p, .page-hero p, .section-navy p, .lede { color: #333 !important; }
  .section { padding: 1rem 0; }
  .section-alt { background: none; }
  .card, .post, .gal-item { break-inside: avoid; border-color: #ccc; }
  a { text-decoration: none; color: #000; }
}
