/* ==========================================================================
   Udaya Shetty Muniyal
   Restrained editorial design — warm neutrals, one accent, real photographs.
   ========================================================================== */

:root {
  /* Brand — navy and red sampled from the wordmark */
  --ink:        #10233c;
  --ink-2:      #1b3a5e;
  --ink-3:      #2b527c;
  --red:        #b81f2b;
  --red-dark:   #94141f;
  --saffron:    #d98424;
  --green:      #157a4c;

  /* Warm paper rather than clinical white */
  --paper:      #fffefc;
  --paper-2:    #f7f4ef;
  --paper-3:    #efe9e0;
  --line:       #e2dbd0;
  --line-soft:  #ece6dc;

  --text:       #23303f;
  --text-muted: #5d6b7b;

  --font: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-kn: "Noto Sans Kannada", "Kannada MN", "Tunga", "Nirmala UI", var(--font);

  --wrap: 1140px;
  --wrap-narrow: 760px;
  /* 20px at 320px, easing up to 40px on wide screens */
  --gutter: clamp(1.25rem, 1rem + 1.4vw, 2.5rem);
  --section-y: clamp(3.25rem, 7vw, 6rem);

  --r-sm: 8px;
  --r: 12px;
  --r-lg: 18px;
  --r-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(16, 35, 60, .05), 0 2px 8px rgba(16, 35, 60, .04);
  --shadow:    0 4px 14px rgba(16, 35, 60, .06), 0 14px 34px rgba(16, 35, 60, .07);
  --shadow-lg: 0 10px 28px rgba(16, 35, 60, .10), 0 30px 64px rgba(16, 35, 60, .14);

  --ease: cubic-bezier(.22, .61, .36, 1);
  --header-h: 68px;
}

/* --------------------------------------------------------------------------
   Reset / base
   -------------------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font);
  font-size: clamp(1rem, .96rem + .18vw, 1.0625rem);
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}

body.is-locked { overflow: hidden; }

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

/* UA gives these a 40px side margin — clear it site-wide */
figure, blockquote, dl, dd, fieldset { margin: 0; }

h1, h2, h3 {
  margin: 0 0 .55em;
  line-height: 1.16;
  letter-spacing: -.021em;
  font-weight: 800;
  color: var(--ink);
  text-wrap: balance;
}

h1 { font-size: clamp(2rem, 1.35rem + 3.1vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 1.18rem + 1.55vw, 2.3rem); }
h3 { font-size: clamp(1.12rem, 1.05rem + .35vw, 1.32rem); letter-spacing: -.014em; }

p { margin: 0 0 1.05em; }
p:last-child { margin-bottom: 0; }

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

ul, ol { margin: 0 0 1.05em; padding-left: 1.15rem; }
li { margin-bottom: .45em; }
li:last-child { margin-bottom: 0; }

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

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

::selection { background: var(--ink); color: #fff; }

/* Kannada needs its own face, a touch more size and much more leading */
.kn, [lang="kn"] {
  font-family: var(--font-kn);
  font-size: 1.04em;
  line-height: 2.05;
  letter-spacing: 0;
  word-break: normal;
  overflow-wrap: break-word;
}

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */

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

.section { padding-block: var(--section-y); }
.section--alt { background: var(--paper-2); }

/* Two consecutive sections on the same ground would otherwise stack their
   padding and leave a dead band between them. One section's worth is enough. */
.section:not(.section--alt):not(.contact-cta) + .section:not(.section--alt):not(.contact-cta) {
  padding-top: 0;
}

.skip-link {
  position: absolute;
  left: 12px; top: -80px;
  z-index: 200;
  padding: .7rem 1.1rem;
  background: var(--ink);
  color: #fff;
  border-radius: var(--r-sm);
  font-weight: 600;
  text-decoration: none;
  transition: top .18s var(--ease);
}
.skip-link:focus { top: 12px; color: #fff; }

/* Section heading block — left aligned, always */
.section-head { max-width: 60ch; margin-bottom: clamp(1.75rem, 4vw, 2.75rem); }

.section-head--row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: end;
  justify-content: space-between;
  max-width: none;
}
.section-head--row h2 { margin-bottom: 0; }

.eyebrow {
  display: block;
  margin-bottom: .7rem;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--red);
}

.lead {
  font-size: clamp(1.03rem, 1rem + .3vw, 1.16rem);
  color: var(--text-muted);
  line-height: 1.72;
}

/* Date / place line above a heading */
.meta {
  margin-bottom: .5rem;
  font-size: .84rem;
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--red);
}

/* --------------------------------------------------------------------------
   Buttons & links
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .78rem 1.4rem;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font: inherit;
  font-size: .96rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s var(--ease), background-color .18s var(--ease),
              border-color .18s var(--ease), color .18s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: none; }
.btn svg { width: 17px; height: 17px; flex: none; }

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

.btn--ghost { border-color: rgba(255, 255, 255, .4); color: #fff; }
.btn--ghost:hover { background: rgba(255, 255, 255, .12); border-color: #fff; color: #fff; }

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

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

.btn--lg { padding: .92rem 1.65rem; font-size: 1rem; }
.btn--block { display: flex; width: 100%; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .38rem;
  font-weight: 700;
  font-size: .94rem;
  color: var(--red);
  text-decoration: none;
}
.link-arrow svg { width: 15px; height: 15px; transition: transform .18s var(--ease); }
.link-arrow:hover { color: var(--red-dark); }
.link-arrow:hover svg { transform: translateX(3px); }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 254, 252, .9);
  backdrop-filter: saturate(1.5) blur(12px);
  -webkit-backdrop-filter: saturate(1.5) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease);
}
.header.is-stuck { border-bottom-color: var(--line); }

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

.brand { display: inline-flex; align-items: center; flex: none; text-decoration: none; }
.brand img { width: clamp(150px, 42vw, 185px); height: auto; }

.nav { display: none; }

.nav__list {
  display: flex;
  align-items: center;
  gap: .1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav__list li { margin: 0; }

.nav__link {
  display: block;
  padding: .5rem .68rem;
  border-radius: var(--r-sm);
  font-size: .93rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
  transition: color .16s var(--ease);
}
.nav__link:hover { color: var(--red); }
.nav__link[aria-current="page"] { color: var(--red); }

/* Hamburger */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  flex: none;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle span {
  position: relative;
  display: block;
  width: 18px; height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: background-color .2s var(--ease);
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px; height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .24s var(--ease), top .18s var(--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); }

/* Mobile drawer */
.drawer {
  position: fixed;
  inset: var(--header-h) 0 0;
  z-index: 99;
  padding-block: 1.25rem 2rem;
  background: var(--paper);
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
}
.drawer.is-open { opacity: 1; visibility: visible; transform: none; }

.drawer__list { margin: 0 0 1.5rem; padding: 0; list-style: none; }
.drawer__list li { margin: 0; border-bottom: 1px solid var(--line-soft); }

.drawer__link {
  display: block;
  padding: .95rem .1rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
}
.drawer__link[aria-current="page"] { color: var(--red); }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(760px 520px at 82% 12%, rgba(43, 82, 124, .85), transparent 64%),
    linear-gradient(165deg, #10233c 0%, #16304f 55%, #0e1f36 100%);
  color: #fff;
  isolation: isolate;
}

/* Faint concentric rings, echoing the original portrait backdrop */
.hero::before {
  content: "";
  position: absolute;
  inset: -25% -25% auto auto;
  width: min(820px, 130vw);
  aspect-ratio: 1;
  background: repeating-radial-gradient(circle at center,
    rgba(255, 255, 255, .05) 0 1px, transparent 1px 44px);
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
}

/* Tricolour hairline along the bottom edge */
.hero::after,
.page-head::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: linear-gradient(90deg,
    var(--saffron) 0 33.33%, #f2ede4 33.33% 66.66%, var(--green) 66.66%);
}

.hero__grid {
  display: grid;
  gap: clamp(1.75rem, 5vw, 3rem);
  align-items: center;
  padding-block: clamp(2.25rem, 6vw, 4.5rem) clamp(2.5rem, 6vw, 4.5rem);
}

.hero__place {
  margin-bottom: .9rem;
  font-size: clamp(.78rem, .74rem + .18vw, .84rem);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--saffron);
}

.hero h1 { color: #fff; margin-bottom: .3em; }

.hero__role {
  margin-bottom: 1.1rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid rgba(255, 255, 255, .16);
  font-size: clamp(.95rem, .9rem + .28vw, 1.1rem);
  font-weight: 600;
  color: #dbe6f2;
  letter-spacing: .002em;
}
/* Wrap between roles, never inside one */
.hero__role span { white-space: nowrap; }
/* Separator trails the preceding role, so a wrap never starts with a stray dot */
.hero__role span:not(:last-child)::after {
  content: " ·";
  color: rgba(255, 255, 255, .45);
}

.hero__lead {
  max-width: 44ch;
  margin-bottom: 1.9rem;
  font-size: clamp(1rem, .96rem + .3vw, 1.14rem);
  color: #b9cbe0;
  line-height: 1.72;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: .7rem; }
.hero__actions .btn { flex: 1 1 auto; min-width: 10.5rem; }

.hero__figure {
  position: relative;
  justify-self: center;
  width: 100%;
  max-width: min(300px, 74vw);
}
.hero__figure img {
  width: 100%;
  filter: drop-shadow(0 24px 44px rgba(0, 0, 0, .45));
  -webkit-mask-image: linear-gradient(to bottom, #000 76%, transparent 98%);
          mask-image: linear-gradient(to bottom, #000 76%, transparent 98%);
}
.hero__figure::before {
  content: "";
  position: absolute;
  left: 50%; bottom: 6%;
  translate: -50% 0;
  width: 86%; aspect-ratio: 1;
  background: radial-gradient(circle, rgba(96, 152, 214, .32), transparent 68%);
  border-radius: 50%;
  z-index: -1;
}

/* --------------------------------------------------------------------------
   Figures strip — editorial, not a dashboard
   -------------------------------------------------------------------------- */

.figures {
  padding-block: clamp(2rem, 4.5vw, 3rem);
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
}

.figures__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.25rem, 3vw, 2rem);
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
}
.figures__list li { margin: 0; }

.figures__list b {
  display: block;
  font-size: clamp(1.28rem, 1.1rem + .85vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -.028em;
  line-height: 1.15;
  color: var(--ink);
}
.figures__list span {
  display: block;
  margin-top: .3rem;
  font-size: .87rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.figures__note {
  margin: 0;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  font-size: .84rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Page header (inner pages)
   -------------------------------------------------------------------------- */

.page-head {
  position: relative;
  overflow: hidden;
  padding-block: clamp(2.25rem, 5vw, 3.75rem);
  background:
    radial-gradient(560px 340px at 88% 0%, rgba(43, 82, 124, .8), transparent 62%),
    linear-gradient(150deg, #10233c, #17304c);
  color: #fff;
}
.page-head h1 { color: #fff; margin-bottom: .3em; }
.page-head p { max-width: 56ch; margin-bottom: 0; color: #b9cbe0; }

.crumbs { margin-bottom: .9rem; font-size: .85rem; color: #93a9c3; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; list-style: none; }
.crumbs li { margin: 0; display: flex; align-items: center; gap: .4rem; }
.crumbs li + li::before { content: "/"; color: #5b7591; }
.crumbs a { color: #93a9c3; text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.crumbs [aria-current="page"] { color: #fff; }

/* --------------------------------------------------------------------------
   Commitments — numbered, photograph-led
   -------------------------------------------------------------------------- */

.commitments {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.75rem, 4vw, 2.5rem);
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.commitment { margin: 0; display: flex; flex-direction: column; }

.commitment__media {
  margin-bottom: 1.1rem;
  border-radius: var(--r);
  overflow: hidden;
  background: var(--paper-3);
}
.commitment__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center 42%;
  transition: transform .5s var(--ease);
}
.commitment:hover .commitment__media img { transform: scale(1.03); }

/* A printed notice rather than a photograph. Framed on its title band so the
   Kannada heading stays legible instead of cropping to the decorative border. */
.commitment__media--doc { background: var(--paper-2); }
.commitment__media--doc img { object-position: center 20%; }
.commitment:hover .commitment__media--doc img { transform: none; }

.commitment__n {
  margin: 0 0 .35rem;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .1em;
  color: var(--red);
}

.commitment h3 { margin-bottom: .45rem; }
.commitment p { color: var(--text-muted); font-size: .97rem; }
.commitment ul { color: var(--text-muted); font-size: .97rem; }
.commitment > .link-arrow { margin-top: auto; padding-top: 1rem; }

/* Plain variant (Our Work): no photographs, a hairline instead */
.commitments--plain .commitment {
  padding-top: 1.25rem;
  border-top: 2px solid var(--ink);
}

/* --------------------------------------------------------------------------
   Feature rows
   -------------------------------------------------------------------------- */

.feature {
  display: grid;
  gap: clamp(1.35rem, 4vw, 3rem);
  align-items: center;
}
.feature + .feature { margin-top: clamp(2.5rem, 6vw, 4.5rem); }

.feature__media {
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--paper-3);
  box-shadow: var(--shadow-sm);
}
.feature__media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.feature__media--tall img { aspect-ratio: 3 / 4; object-fit: contain; background: var(--paper-2); }
.feature__media--square img { aspect-ratio: 1; object-fit: cover; }

.feature__body h2, .feature__body h3 { margin-bottom: .5rem; }
.feature__body p { color: var(--text-muted); }
.feature__body ul { color: var(--text-muted); }

/* --------------------------------------------------------------------------
   Education section
   -------------------------------------------------------------------------- */

.education__grid { display: grid; gap: clamp(1.75rem, 4vw, 3rem); align-items: center; }

.education__figures {
  display: grid;
  gap: 1.25rem;
  margin: 1.75rem 0;
  padding: 1.35rem 0;
  border-block: 1px solid var(--line);
}
.education__figures dt {
  font-size: clamp(1.35rem, 1.15rem + .9vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.15;
  color: var(--ink);
}
.education__figures dd { margin: .25rem 0 0; font-size: .9rem; color: var(--text-muted); line-height: 1.5; }

.education__media {
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--paper-3);
  box-shadow: var(--shadow-sm);
}
.education__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* --------------------------------------------------------------------------
   Life timeline
   -------------------------------------------------------------------------- */

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

.life li {
  display: grid;
  gap: .3rem;
  margin: 0;
  padding: 1.4rem 0;
  border-top: 1px solid var(--line);
}
.life li:last-child { border-bottom: 1px solid var(--line); }

.life__when {
  margin: 0;
  font-size: .84rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--red);
}
.life__what h3 { margin-bottom: .3rem; }
.life__what p { color: var(--text-muted); font-size: .97rem; }

/* --------------------------------------------------------------------------
   His words — the personal centre of the site
   -------------------------------------------------------------------------- */

.words__block {
  max-width: 62ch;
  padding-left: clamp(1rem, 3vw, 1.75rem);
  border-left: 3px solid var(--red);
}

.words__title {
  margin-bottom: 1.1rem;
  font-size: clamp(1.45rem, 1.2rem + 1.1vw, 2rem);
  font-weight: 600;
  line-height: 1.5;
  color: var(--ink);
  letter-spacing: 0;
}

.words__block blockquote p {
  font-size: clamp(1rem, .97rem + .25vw, 1.1rem);
  color: var(--text);
}
.words__block blockquote p + p { margin-top: 1em; }

.words__block figcaption {
  margin-top: 1.35rem;
  font-size: .92rem;
  font-weight: 700;
  color: var(--red);
}

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

.archive { display: grid; gap: clamp(1.5rem, 3.5vw, 2rem); }

.archive__item { display: flex; flex-direction: column; }
.archive__media {
  margin-bottom: 1rem;
  border-radius: var(--r);
  overflow: hidden;
  background: var(--paper-3);
}
.archive__media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.archive__item h3 { margin-bottom: .4rem; }
.archive__item p:last-child { color: var(--text-muted); font-size: .95rem; }

/* --------------------------------------------------------------------------
   Facts / education list
   -------------------------------------------------------------------------- */

.grid { display: grid; gap: clamp(1.75rem, 4vw, 2.75rem); }

.facts div {
  display: grid;
  gap: .1rem 1rem;
  padding: .75rem 0;
  border-bottom: 1px solid var(--line-soft);
}
.facts div:first-child { border-top: 1px solid var(--line-soft); }
.facts dt { font-weight: 700; color: var(--ink); font-size: .92rem; }
.facts dd { margin: 0; color: var(--text-muted); font-size: .96rem; }

.timeline { margin: 0; padding: 0; list-style: none; }
.timeline li {
  position: relative;
  margin: 0;
  padding: 0 0 1.4rem 1.65rem;
  border-left: 2px solid var(--line);
}
.timeline li:last-child { padding-bottom: 0; border-left-color: transparent; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -7px; top: .45rem;
  width: 12px; height: 12px;
  border: 3px solid var(--red);
  border-radius: 50%;
  background: var(--paper);
}
.timeline b { display: block; font-size: 1rem; color: var(--ink); }
.timeline span { display: block; font-size: .91rem; color: var(--text-muted); }
.timeline time { display: inline-block; margin-top: .2rem; font-size: .8rem; font-weight: 700; color: var(--red); }

/* --------------------------------------------------------------------------
   Notice
   -------------------------------------------------------------------------- */

.notice {
  display: flex;
  gap: .85rem;
  padding: 1.05rem 1.2rem;
  border-radius: var(--r);
  background: #fbf4e6;
  border: 1px solid #ecdcbb;
  color: #6a4b16;
  font-size: .93rem;
  line-height: 1.6;
}
.notice svg { width: 19px; height: 19px; flex: none; margin-top: .22rem; }
.notice p { margin: 0; }
.notice a { color: #6a4b16; }

/* --------------------------------------------------------------------------
   Gallery
   -------------------------------------------------------------------------- */

.gallery-group + .gallery-group { margin-top: clamp(2.5rem, 6vw, 4rem); }

.gallery-group__head {
  margin-bottom: 1.25rem;
  padding-bottom: .85rem;
  border-bottom: 2px solid var(--ink);
}
.gallery-group__head h2, .gallery-group__head p { max-width: 60ch; }
.gallery-group__head h2 { margin-bottom: .2rem; font-size: clamp(1.25rem, 1.1rem + .7vw, 1.6rem); }
.gallery-group__head p { margin: 0; font-size: .93rem; color: var(--text-muted); }

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr));
  gap: clamp(.7rem, 1.6vw, 1rem);
}

.gallery__item {
  position: relative;
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: var(--r);
  overflow: hidden;
  background: var(--paper-3);
  cursor: zoom-in;
  aspect-ratio: 4 / 3;
  font: inherit;
  color: inherit;
  text-align: left;
}
.gallery__item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease);
}
.gallery__item:hover img { transform: scale(1.05); }

.gallery__cap {
  position: absolute;
  inset: auto 0 0 0;
  padding: 2.25rem .85rem .75rem;
  background: linear-gradient(transparent, rgba(9, 19, 33, .9));
  color: #fff;
  font-size: .84rem;
  font-weight: 600;
  line-height: 1.35;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(8, 15, 26, .94);
  opacity: 0;
  visibility: hidden;
  transition: opacity .22s var(--ease), visibility .22s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__stage { display: grid; justify-items: center; max-width: 100%; }
.lightbox img { max-width: 100%; max-height: 76vh; border-radius: var(--r); }
.lightbox__caption { margin: 1rem 0 0; max-width: 58ch; color: #d5e0ee; font-size: .93rem; text-align: center; }
.lightbox__close {
  position: absolute;
  top: clamp(.6rem, 3vw, 1.5rem);
  right: clamp(.6rem, 3vw, 1.5rem);
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}
.lightbox__close:hover { background: rgba(255, 255, 255, .2); }

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */

.contact-grid { display: grid; gap: clamp(2.25rem, 5vw, 3rem); align-items: start; }

.info-list { margin: 0; padding: 0; list-style: none; }
.info-list li {
  display: flex;
  gap: .9rem;
  margin: 0;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line-soft);
}
.info-list li:first-child { padding-top: 0; }
.info-list li:last-child { border-bottom: 0; }

.info-list .ico {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px; height: 40px;
  border-radius: 11px;
  background: var(--paper-3);
  color: var(--ink-3);
}
.info-list .ico svg { width: 18px; height: 18px; }
.info-list b {
  display: block;
  margin-bottom: .1rem;
  font-size: .82rem;
  font-weight: 600;
  color: var(--text-muted);
}
.info-list a, .info-list span { font-size: 1rem; color: var(--ink); text-decoration: none; font-weight: 600; }
.info-list a { overflow-wrap: anywhere; }
.info-list a:hover { color: var(--red); text-decoration: underline; }
.info-list address { font-style: normal; font-size: .98rem; color: var(--ink); font-weight: 500; line-height: 1.6; }

.form { display: grid; gap: 1rem; }
.form__row { display: grid; gap: 1rem; }

.field { display: grid; gap: .4rem; }
.field label { font-size: .88rem; font-weight: 700; color: var(--ink); }
.field .req { color: var(--red); }

.field input,
.field textarea {
  width: 100%;
  padding: .78rem .95rem;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--paper);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  transition: border-color .16s var(--ease), box-shadow .16s var(--ease);
}
.field textarea { resize: vertical; min-height: 140px; line-height: 1.6; }
.field input::placeholder, .field textarea::placeholder { color: #9aa5b2; }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--ink-3);
  box-shadow: 0 0 0 3px rgba(43, 82, 124, .13);
}

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.map {
  margin-top: 1.75rem;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper-3);
}
.map iframe { width: 100%; height: clamp(240px, 40vw, 380px); border: 0; }
.map__link { margin-top: .7rem; font-size: .88rem; }

/* --------------------------------------------------------------------------
   Contact CTA band
   -------------------------------------------------------------------------- */

.contact-cta { background: var(--paper-2); border-top: 1px solid var(--line); }
.contact-cta__inner { display: grid; gap: clamp(1.75rem, 4vw, 3rem); align-items: start; }
.contact-cta h2 { margin-bottom: .4rem; }
.contact-cta__lead p { color: var(--text-muted); }
.contact-cta__actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.4rem; }

.routes { margin: 0; padding: 0; list-style: none; }
.routes li {
  margin: 0;
  padding: .9rem 0;
  border-top: 1px solid var(--line);
}
.routes li:last-child { border-bottom: 1px solid var(--line); }
.routes b { display: block; font-size: 1rem; color: var(--ink); }
.routes span { display: block; font-size: .92rem; color: var(--text-muted); }

/* --------------------------------------------------------------------------
   Footer — compact
   -------------------------------------------------------------------------- */

.footer {
  padding-top: clamp(2.5rem, 5vw, 3.5rem);
  background: var(--ink);
  color: #b3c4d8;
  font-size: .94rem;
}
.footer__grid { display: grid; gap: 2rem; }

.footer h2 {
  margin-bottom: .85rem;
  color: #fff;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.footer p { color: #93a9c3; line-height: 1.65; }
.footer ul { margin: 0; padding: 0; list-style: none; }
.footer li { margin-bottom: .5rem; color: #93a9c3; line-height: 1.55; }
.footer a { color: #c8d7e8; text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }

.footer__brand img {
  width: 180px;
  margin-bottom: .9rem;
  padding: .5rem .65rem;
  background: #fff;
  border-radius: var(--r-sm);
}

.footer__nav ul { columns: 2; column-gap: 1.25rem; }
.footer__nav li { break-inside: avoid; }

.footer__fb {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin-top: .9rem;
  font-weight: 600;
}
.footer__fb svg { width: 17px; height: 17px; }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-block: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: .84rem;
}
.footer__bottom p { margin: 0; color: #7f95b0; }

/* --------------------------------------------------------------------------
   Error / thanks pages
   -------------------------------------------------------------------------- */

.error-page { padding-block: clamp(3.5rem, 10vw, 7rem); }
.error-page .code {
  margin-bottom: .25rem;
  font-size: clamp(3.5rem, 12vw, 6.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.05em;
  color: var(--paper-3);
}
.error-page__actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 2rem; }

/* --------------------------------------------------------------------------
   Specificity guards
   `.feature__body p` and `.commitment p` are one step more specific than the
   single-class labels below, and would otherwise repaint them muted grey.
   -------------------------------------------------------------------------- */

p.meta,
.feature__body p.meta,
.archive__item p.meta {
  color: var(--red);
  font-size: .84rem;
  font-weight: 600;
}

p.commitment__n,
.commitment p.commitment__n {
  color: var(--red);
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .1em;
}

.notice p, .feature__body .notice p { color: inherit; font-size: inherit; }

/* --------------------------------------------------------------------------
   Scroll reveal — only hidden when JS can bring it back
   -------------------------------------------------------------------------- */

.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .55s var(--ease), transform .55s var(--ease);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   Breakpoints
   -------------------------------------------------------------------------- */

@media (min-width: 620px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .commitments { grid-template-columns: repeat(2, 1fr); }
  .archive { grid-template-columns: repeat(2, 1fr); }
  .form__row { grid-template-columns: 1fr 1fr; }
  .figures__list { grid-template-columns: repeat(4, 1fr); }
  .life li { grid-template-columns: minmax(9.5rem, 22%) 1fr; gap: 1.5rem; }
  .facts div { grid-template-columns: minmax(8rem, 30%) 1fr; }
  .education__figures { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .hero__actions .btn { flex: 0 1 auto; }
}

@media (min-width: 900px) {
  :root { --header-h: 74px; }

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

  .hero__grid { grid-template-columns: 1.1fr .9fr; }
  .hero__figure { max-width: 440px; justify-self: end; }

  .feature { grid-template-columns: 1fr 1fr; }
  .feature--flip .feature__media { order: 2; }

  .education__grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1.05fr .95fr; }
  .contact-cta__inner { grid-template-columns: 1fr 1fr; align-items: center; }

  .footer__grid { grid-template-columns: 1.5fr 1fr 1.2fr; }
  .footer__brand { grid-column: auto; }
  .footer__nav ul { columns: 1; }

  .nav { display: block; }
  .nav-toggle { display: none; }
  .drawer { display: none; }
}

@media (min-width: 1060px) {
  .nav__link { padding: .5rem .85rem; font-size: .95rem; }
}

/* --------------------------------------------------------------------------
   Preferences
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}

@media print {
  .header, .drawer, .contact-cta, .footer, .nav-toggle, .lightbox, .map { display: none !important; }
  body { font-size: 11pt; color: #000; background: #fff; }
  .page-head, .hero { background: none !important; color: #000; }
  .page-head h1, .hero h1, .hero__role, .hero__lead { color: #000; }
  a { text-decoration: underline; }
}
