/* ==========================================================================
   Gastroenterology Club of Indore
   Indian Society of Gastroenterology, Indore City Chapter
   Palette taken from the chapter seal: navy lettering and Rajwada silhouette,
   maroon ring and laurel.
   ========================================================================== */

:root {
  --ink: #1b1f3b;
  --ink-soft: #333a5c;
  /* Navy and maroon sampled directly from the chapter seal. */
  --indigo: #484878;
  --indigo-900: #363563;
  --indigo-100: #e2e3ef;
  --indigo-050: #f1f1f8;
  --terracotta: #902424;
  --terracotta-700: #7d2020;
  --terracotta-800: #842424;
  --terracotta-050: #fbeeee;
  --sand: #f7f4ef;
  --paper: #ffffff;
  --muted: #5b6070;
  --line: #e3e0da;

  --font-display: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;

  --container: min(1140px, 100% - 2.5rem);
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(27, 31, 59, 0.06), 0 2px 8px rgba(27, 31, 59, 0.05);
  --shadow-md: 0 4px 12px rgba(27, 31, 59, 0.08), 0 12px 32px rgba(27, 31, 59, 0.08);
  --shadow-lg: 0 10px 24px rgba(27, 31, 59, 0.1), 0 24px 60px rgba(27, 31, 59, 0.12);

  --step--1: clamp(0.83rem, 0.8rem + 0.15vw, 0.9rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
  --step-1: clamp(1.15rem, 1.08rem + 0.35vw, 1.35rem);
  --step-2: clamp(1.38rem, 1.24rem + 0.7vw, 1.75rem);
  --step-3: clamp(1.65rem, 1.4rem + 1.25vw, 2.35rem);
  --step-4: clamp(2rem, 1.55rem + 2.25vw, 3.25rem);

  --header-h: 76px;
}

/* --------------------------------------------------------------- reset -- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  /* clip, not hidden: the off-canvas drawer must not widen the page, but
     hidden here would break the sticky header. */
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
}

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

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.18;
  letter-spacing: -0.015em;
  margin: 0 0 0.6em;
  font-weight: 600;
  text-wrap: balance;
}

h1 {
  font-size: var(--step-4);
}
h2 {
  font-size: var(--step-3);
}
h3 {
  font-size: var(--step-1);
}

p {
  margin: 0 0 1.1em;
  text-wrap: pretty;
}

a {
  color: var(--indigo-900);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

a:hover {
  color: var(--terracotta-700);
}

ul,
ol {
  margin: 0 0 1.2em;
  padding-left: 1.15em;
}

li {
  margin-bottom: 0.5em;
}

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

/* ------------------------------------------------------------ utilities -- */

.container {
  width: var(--container);
  margin-inline: auto;
}

.narrow {
  max-width: 68ch;
}

.center {
  text-align: center;
}

.center .narrow {
  margin-inline: auto;
}

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

.skip-link {
  position: absolute;
  left: 50%;
  top: -100px;
  transform: translateX(-50%);
  z-index: 999;
  background: var(--ink);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
  color: #fff;
}

.eyebrow {
  display: inline-block;
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terracotta-800);
  margin-bottom: 0.85rem;
}

.lede {
  font-size: var(--step-1);
  color: var(--ink-soft);
  line-height: 1.6;
}

/* -------------------------------------------------------------- buttons -- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.6rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.97rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease,
    border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--indigo);
  border-color: var(--indigo);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--indigo-900);
  border-color: var(--indigo-900);
  color: #fff;
  box-shadow: var(--shadow-md);
}

.btn-outline {
  border-color: var(--indigo);
  color: var(--indigo-900);
  background: transparent;
}

.btn-outline:hover {
  background: var(--indigo);
  color: #fff;
}

.btn-ghost-light {
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
  background: transparent;
}

.btn-ghost-light:hover {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
}

.btn-whatsapp {
  background: #0f7a38;
  border-color: #0f7a38;
  color: #fff;
}

.btn-whatsapp:hover {
  background: #0b5f2b;
  border-color: #0b5f2b;
  color: #fff;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.btn-row.center {
  justify-content: center;
}

/* --------------------------------------------------------------- header -- */

.topbar {
  background: var(--ink);
  color: #cdd2e8;
  font-size: 0.82rem;
  letter-spacing: 0.01em;
}

.topbar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.25rem;
  padding: 0.55rem 0;
}

.topbar a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
}

.topbar a:hover {
  color: #eeb0b0;
  text-decoration: underline;
}

.topbar-links {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(1.6) blur(8px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.2s ease;
}

.site-header.is-stuck {
  box-shadow: 0 2px 16px rgba(27, 31, 59, 0.1);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--ink);
  padding: 0.4rem 0;
}

.brand img {
  width: 52px;
  height: 52px;
  flex: none;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

/* The legal name is long, so it scales with the viewport and is allowed to
   wrap to two lines on narrow screens rather than crowding the nav. */
.brand-name {
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 0.72rem + 0.62vw, 1.18rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--ink);
  letter-spacing: -0.015em;
}

.brand-sub {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.075em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--indigo);
}

/* ------------------------------------------------------------------ nav -- */

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--ink);
}

.nav-toggle span {
  position: relative;
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  transition: transform 0.22s ease, background-color 0.15s ease;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: currentColor;
  transition: transform 0.22s ease, top 0.22s ease;
}

.nav-toggle span::before {
  top: -6px;
}
.nav-toggle span::after {
  top: 6px;
}

.nav-toggle[aria-expanded="true"] span {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] span::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span::after {
  top: 0;
  transform: rotate(-45deg);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav li {
  margin: 0;
}

/* Scoped to the list so the .nav-cta button keeps its own button styling. */
.site-nav ul a {
  display: block;
  padding: 0.55rem 0.8rem;
  border-radius: var(--radius-sm);
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.site-nav ul a:hover {
  color: var(--indigo-900);
  background: var(--indigo-050);
}

.site-nav ul a[aria-current="page"] {
  color: var(--indigo-900);
  font-weight: 600;
  background: var(--indigo-050);
}

.nav-cta {
  margin-left: 0.5rem;
}

.nav-cta .btn {
  padding: 0.6rem 1.15rem;
  font-size: 0.9rem;
}

/* ----------------------------------------------------------- decoration -- */

/* Rajwada arch motif, echoing the palace silhouette inside the chapter seal */
.arch-rule {
  display: block;
  width: 132px;
  height: 22px;
  margin: 0 0 1.25rem;
  color: var(--terracotta);
}

.center .arch-rule {
  margin-inline: auto;
}

/* ------------------------------------------------------------- sections -- */

.section {
  padding: clamp(3.25rem, 7vw, 5.75rem) 0;
}

.section-sand {
  background: var(--sand);
}

.section-ink {
  background: var(--ink);
  color: #d7dbec;
}

.section-ink h2,
.section-ink h3 {
  color: #fff;
}

.section-ink .eyebrow {
  color: #eaa8a8;
}

.section-head {
  max-width: 62ch;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section-head.center {
  margin-inline: auto;
}

/* ----------------------------------------------------------------- hero -- */

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(165deg, #f6f7fc 0%, var(--sand) 58%, #f3eeea 100%);
  padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(3.25rem, 7vw, 5.5rem);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero::before {
  width: 460px;
  height: 460px;
  top: -190px;
  right: -140px;
  background: radial-gradient(circle, rgba(72, 72, 120, 0.16), transparent 68%);
}

.hero::after {
  width: 380px;
  height: 380px;
  bottom: -190px;
  left: -130px;
  background: radial-gradient(circle, rgba(144, 36, 36, 0.11), transparent 68%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero h1 {
  margin-bottom: 0.5rem;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0.95rem 0.4rem 0.45rem;
  margin-bottom: 1.5rem;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--ink-soft);
  text-decoration: none;
}

.hero-kicker img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.hero-kicker:hover {
  border-color: var(--indigo);
  color: var(--indigo-900);
}

.hero-sub {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 400;
  font-style: italic;
  color: var(--indigo-900);
  margin-bottom: 1.25rem;
}

.hero-media {
  position: relative;
}

.hero-seal {
  width: min(320px, 82%);
  margin-inline: auto;
  filter: drop-shadow(0 18px 40px rgba(27, 31, 59, 0.18));
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.75rem;
  margin-top: 2.25rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}

.hero-meta div {
  min-width: 130px;
}

.hero-meta dt {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.3rem;
}

.hero-meta dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
}

/* ----------------------------------------------------------- page hero -- */

.page-hero {
  background: linear-gradient(160deg, var(--ink) 0%, #2a2f57 60%, #3a3466 100%);
  color: #d7dbec;
  padding: clamp(2.75rem, 6vw, 4.5rem) 0 clamp(2.5rem, 5vw, 3.75rem);
}

.page-hero h1 {
  color: #fff;
  margin-bottom: 0.55rem;
}

.page-hero p {
  max-width: 62ch;
  margin-bottom: 0;
  color: #c3c9e2;
  font-size: var(--step-1);
}

.page-hero .eyebrow {
  color: #eaa8a8;
}

.breadcrumbs {
  margin-bottom: 1.15rem;
  font-size: 0.85rem;
  color: #a7aecd;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumbs li {
  margin: 0;
}

.breadcrumbs li + li::before {
  content: "/";
  margin-right: 0.5rem;
  color: #6c74a0;
}

.breadcrumbs a {
  color: #cdd2e8;
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: #fff;
  text-decoration: underline;
}

/* ---------------------------------------------------------------- grids -- */

.grid {
  display: grid;
  gap: clamp(1.25rem, 2.5vw, 1.85rem);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}
.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}
.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

/* ---------------------------------------------------------------- cards -- */

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 2.5vw, 2rem);
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease,
    border-color 0.22s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #cfd3e8;
}

.card h3 {
  margin-bottom: 0.5rem;
}

.card p:last-child {
  margin-bottom: 0;
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  margin-bottom: 1.1rem;
  border-radius: 12px;
  background: var(--indigo-050);
  color: var(--indigo);
}

.card-icon svg {
  width: 26px;
  height: 26px;
}

.card-num {
  display: block;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--terracotta-800);
  margin-bottom: 0.75rem;
}

/* --------------------------------------------------------- people cards -- */

.people {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.25rem, 2.5vw, 1.85rem);
}

.person {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.person:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.person-photo {
  position: relative;
  aspect-ratio: 3 / 4;
  background: var(--indigo-050);
  overflow: hidden;
}

.person-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
}

.person-body {
  padding: 1.25rem 1.35rem 1.5rem;
}

.person-role {
  display: inline-block;
  margin-bottom: 0.45rem;
  padding: 0.22rem 0.7rem;
  border-radius: 999px;
  background: var(--terracotta-050);
  color: var(--terracotta-700);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.person-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 0.4rem;
  line-height: 1.25;
}

.person-note {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.55;
}

/* ----------------------------------------------------------- affiliation -- */

.affiliation {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  padding: clamp(1.75rem, 3.5vw, 2.5rem);
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 4px solid var(--indigo);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.affiliation-logo {
  width: 130px;
  flex: none;
}

.affiliation p:last-child {
  margin-bottom: 0;
}

/* ---------------------------------------------------------------- stats -- */

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  overflow: hidden;
}

.stat {
  background: var(--ink);
  padding: clamp(1.5rem, 3vw, 2.25rem) 1.25rem;
  text-align: center;
}

.stat-figure {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 2.9rem);
  font-weight: 600;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 0.35rem;
}

.stat-label {
  font-size: 0.86rem;
  color: #aeb5d4;
  margin: 0;
}

/* ----------------------------------------------------------------- band -- */

.band {
  position: relative;
  overflow: hidden;
}

.band-figure {
  margin: 0;
}

.band-figure img {
  width: 100%;
  height: clamp(280px, 46vw, 520px);
  object-fit: cover;
  /* Keeps the seated row's faces inside the crop at every width. */
  object-position: center 10%;
}

.band-caption {
  padding: 1rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
  font-style: italic;
}

/* -------------------------------------------------------------- gallery -- */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(1.25rem, 2.5vw, 1.85rem);
}

.gallery figure {
  margin: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.gallery figcaption {
  padding: 1rem 1.25rem 1.15rem;
  font-size: 0.92rem;
  color: var(--muted);
}

/* -------------------------------------------------------------- listing -- */

.checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

.checklist li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 0.85rem;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  background: var(--indigo-100);
  box-shadow: inset 0 0 0 3px var(--indigo);
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 2px solid var(--line);
}

.timeline li {
  position: relative;
  padding: 0 0 1.75rem 1.85rem;
  margin: 0;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 0.5em;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--terracotta);
  box-shadow: 0 0 0 4px var(--terracotta-050);
}

.timeline h3 {
  margin-bottom: 0.35rem;
}

.timeline p:last-child {
  margin-bottom: 0;
}

/* ------------------------------------------------------------- callouts -- */

.callout {
  padding: clamp(1.35rem, 3vw, 1.85rem);
  background: var(--indigo-050);
  border: 1px solid var(--indigo-100);
  border-radius: var(--radius);
}

.callout p:last-child {
  margin-bottom: 0;
}

.empty-state {
  padding: clamp(2rem, 5vw, 3.25rem);
  text-align: center;
  background: var(--sand);
  border: 1px dashed #cfcabf;
  border-radius: var(--radius);
}

.empty-state p:last-child {
  margin-bottom: 0;
}

/* ------------------------------------------------------------------ faq -- */

.faq {
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  flex: none;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--terracotta);
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq-body {
  padding-bottom: 1.35rem;
  max-width: 72ch;
}

.faq-body p:last-child {
  margin-bottom: 0;
}

/* -------------------------------------------------------------- contact -- */

.contact-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}

.contact-block {
  padding-bottom: 1.65rem;
  margin-bottom: 1.65rem;
  border-bottom: 1px solid var(--line);
}

.contact-block:last-child {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}

.contact-block h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.contact-block p,
.contact-block address {
  margin: 0 0 0.35rem;
  font-style: normal;
  color: var(--ink-soft);
}

.contact-block a {
  font-weight: 500;
}

/* ----------------------------------------------------------------- form -- */

.form {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--sand);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.field {
  margin-bottom: 1.15rem;
}

.field label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
}

.field .req {
  color: var(--terracotta-800);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid #d5d1ca;
  border-radius: var(--radius-sm);
  background: #fff;
  font-family: inherit;
  font-size: 0.97rem;
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field textarea {
  min-height: 130px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--indigo);
  box-shadow: 0 0 0 3px rgba(72, 72, 120, 0.20);
  outline: none;
}

.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: var(--terracotta);
}

.field-error {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.83rem;
  font-weight: 500;
  color: var(--terracotta-700);
  min-height: 1em;
}

.form-note {
  margin: 1rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.form-status {
  margin: 1rem 0 0;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--indigo-050);
  border: 1px solid var(--indigo-100);
  font-size: 0.9rem;
  color: var(--indigo-900);
}

.form-status[hidden] {
  display: none;
}

/* ------------------------------------------------------------------ map -- */

.map-embed {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--indigo-050);
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.map-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.5rem;
  text-align: center;
  background: linear-gradient(150deg, var(--indigo-050), var(--sand));
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.map-placeholder strong {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--ink);
}

.map-placeholder small {
  color: var(--muted);
}

/* ------------------------------------------------------------------ cta -- */

.cta {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--indigo-900) 0%, #4a3562 52%, var(--terracotta-700) 128%);
  color: #fff;
  padding: clamp(2.75rem, 6vw, 4.5rem) 0;
  text-align: center;
}

.cta h2 {
  color: #fff;
}

.cta p {
  max-width: 58ch;
  margin-inline: auto;
  color: rgba(255, 255, 255, 0.88);
  font-size: var(--step-1);
}

/* --------------------------------------------------------------- footer -- */

.site-footer {
  background: var(--ink);
  color: #a7aecd;
  padding: clamp(2.75rem, 5vw, 4rem) 0 0;
  font-size: 0.93rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: clamp(1.75rem, 4vw, 3rem);
  padding-bottom: 2.5rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.footer-brand img {
  width: 54px;
  height: 54px;
  background: #fff;
  border-radius: 50%;
  padding: 3px;
}

.footer-brand-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.2;
}

.site-footer h2 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  font-family: var(--font-body);
  margin-bottom: 1rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin-bottom: 0.6rem;
}

.site-footer a {
  color: #a7aecd;
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
  text-decoration: underline;
}

.site-footer address {
  font-style: normal;
  line-height: 1.7;
}

.footer-isg {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 1rem;
  padding: 0.5rem 0.85rem;
  background: rgba(255, 255, 255, 0.94);
  border-radius: var(--radius-sm);
}

.footer-isg img {
  width: 74px;
}

.footer-isg span {
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
  max-width: 12ch;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding: 1.35rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.85rem;
}

.footer-bottom p {
  margin: 0;
}

/* ------------------------------------------------------------- reveal -- */

/* Scoped to .js so that if the script fails to load the content still shows,
   rather than staying invisible forever. */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* --------------------------------------------------------- breakpoints -- */

@media (max-width: 1100px) {
  .site-nav ul a {
    padding: 0.55rem 0.6rem;
    font-size: 0.9rem;
  }
  /* Wrap the long legal name onto two lines so it stops competing with the nav.
     Constrained on the name alone so the chapter line underneath stays intact. */
  .brand-name {
    max-width: 15ch;
  }
}

/* Only in the tight band where the inline nav is still shown: drop the CTA so
   the brand and the six links fit. The drawer below 900px keeps its own CTA. */
@media (max-width: 1100px) and (min-width: 901px) {
  .nav-cta {
    display: none;
  }
}

@media (max-width: 980px) {
  .people {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: fixed;
    inset: 0 0 0 auto;
    display: block;
    width: min(340px, 86vw);
    padding: calc(var(--header-h) + 1.25rem) 1.5rem 2rem;
    background: var(--paper);
    box-shadow: -12px 0 40px rgba(27, 31, 59, 0.18);
    transform: translateX(100%);
    transition: transform 0.28s ease;
    overflow-y: auto;
    z-index: 120;
  }

  .site-nav.is-open {
    transform: translateX(0);
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
  }

  .site-nav ul a {
    padding: 0.85rem 0.9rem;
    font-size: 1.02rem;
    border-radius: var(--radius-sm);
  }

  .nav-cta {
    margin: 1rem 0 0;
  }

  .nav-cta .btn {
    width: 100%;
    padding: 0.85rem 1.15rem;
  }

  .nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 17, 34, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.28s ease, visibility 0.28s ease;
    z-index: 110;
  }

  .nav-backdrop.is-open {
    opacity: 1;
    visibility: visible;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero .btn-row {
    justify-content: center;
  }

  .hero .arch-rule {
    margin-inline: auto;
  }

  .hero-meta {
    justify-content: center;
    text-align: center;
  }

  .hero-media {
    order: -1;
  }

  .hero-seal {
    width: min(230px, 62%);
  }

  .split,
  .grid-2,
  .grid-3,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .split .split-media {
    order: -1;
  }

  .affiliation {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }
}

@media (max-width: 700px) {
  .topbar-inner {
    justify-content: center;
    text-align: center;
  }

  .topbar-note {
    display: none;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 560px) {
  .people,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .brand img {
    width: 44px;
    height: 44px;
  }

  .brand-name {
    font-size: 1.02rem;
  }

  .brand-sub {
    font-size: 0.6rem;
  }

  .btn {
    width: 100%;
  }

  .btn-row {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

@media print {
  .topbar,
  .site-header,
  .cta,
  .nav-backdrop,
  .btn {
    display: none !important;
  }

  body {
    color: #000;
  }
}
