/* ==========================================================================
   CA Ravi Ranjan, FCA, CS — Site stylesheet
   --------------------------------------------------------------------------
   1. Design tokens
   2. Reset & base
   3. Themes (dark / light / paper)
   4. Layout primitives
   5. Typography
   6. Buttons & links
   7. Header, navigation, mobile menu
   8. Signature: engraved rosette + portrait frame
   9. Home hero (fills the first screen exactly)
   10. Page hero (inner pages) + breadcrumb
   11. Components
   12. Contact form
   13. Footer
   14. Motion
   15. Responsive
   16. Reduced motion & print
   ========================================================================== */

/* 1. Design tokens ------------------------------------------------------ */
:root {
  /* Colour: marine, limestone, brass */
  --marine-950: #0b1923;
  --marine-900: #10222f;
  --marine-800: #1a3446;
  --marine-700: #2a4659;
  --limestone: #ecedea;
  --paper: #f7f7f5;
  --ink: #13212b;
  --ink-muted: #55636d;
  --brass: #a6864a;
  --brass-light: #cbb07c;
  --brass-ink: #765e2f;
  --on-dark: #e8ecee;
  --on-dark-muted: #a1b1bb;
  --rule-dark: rgba(203, 214, 221, 0.16);
  --rule-light: rgba(19, 33, 43, 0.14);
  --error: #9e2b25;
  --success: #2c6a4c;

  /* Type */
  --font-display: "Libre Caslon Display", "Big Caslon", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-serif: "Libre Caslon Text", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-sans: "Instrument Sans", "Helvetica Neue", Arial, system-ui, sans-serif;

  /* The hero size follows both width and height, so the first screen always fits */
  --fs-hero: clamp(2.2rem, min(1.1rem + 3.9vw, 0.55rem + 6.4vh), 5.1rem);
  --fs-h1: clamp(2.2rem, 1.5rem + 2.8vw, 4.125rem);
  --fs-h2: clamp(1.85rem, 1.4rem + 1.9vw, 3.125rem);
  --fs-h3: clamp(1.35rem, 1.22rem + 0.6vw, 1.75rem);
  --fs-lead: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.9375rem;
  --fs-micro: 0.8125rem;

  /* Space & layout */
  --gutter: clamp(1.25rem, 4.4vw, 4.5rem);
  --container: 1280px;
  --section: clamp(4.5rem, 3.4rem + 5vw, 8.5rem);
  --header-h: 5rem;
  --radius: 2px;

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* 2. Reset & base -------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
  scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem);
}
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--ink);
  background: var(--marine-950);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden; /* no sideways scroll on any device */
}
@supports (overflow: clip) { body { overflow-x: clip; } }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
::selection { background: var(--brass-light); color: var(--marine-950); }
[hidden] { display: none !important; }

.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: 1rem; top: -4rem; z-index: 100;
  background: var(--paper); color: var(--marine-950); padding: 0.75rem 1.25rem;
  border-radius: var(--radius); text-decoration: none; font-weight: 500;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 1rem; }

:focus-visible { outline: 2px solid var(--focus, var(--brass-light)); outline-offset: 3px; border-radius: 1px; }

/* 3. Themes -------------------------------------------------------------- */
.theme-dark {
  --fg: var(--on-dark); --fg-muted: var(--on-dark-muted); --rule: var(--rule-dark);
  --accent: var(--brass-light); --focus: var(--brass-light); --surface: var(--marine-950);
  --btn-bg: var(--paper); --btn-fg: var(--marine-950); --btn-bg-hover: var(--brass-light);
  --line-hover: rgba(255, 255, 255, 0.07);
  color: var(--fg); background-color: var(--surface);
}
.theme-deep { --surface: var(--marine-900); }
.theme-light, .theme-paper {
  --fg: var(--ink); --fg-muted: var(--ink-muted); --rule: var(--rule-light);
  --accent: var(--brass-ink); --focus: var(--brass-ink); --surface: var(--limestone);
  --btn-bg: var(--marine-950); --btn-fg: var(--paper); --btn-bg-hover: var(--marine-800);
  --line-hover: rgba(19, 33, 43, 0.05);
  color: var(--fg); background-color: var(--surface);
}
.theme-paper { --surface: var(--paper); }

/* 4. Layout primitives --------------------------------------------------- */
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); position: relative; }
.section--tight { padding-block: clamp(3.5rem, 2.8rem + 3vw, 5.5rem); }

.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2.25rem, 6vw, 7rem); align-items: start; }
.split--even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.split > .section-intro { margin-top: 0; }
.sticky { position: sticky; top: calc(var(--header-h) + 2rem); }
.stack > * + * { margin-top: var(--stack, 1.25rem); }

/* 5. Typography ---------------------------------------------------------- */
.h1, .h2, .h3 { font-family: var(--font-display); font-weight: 400; letter-spacing: -0.01em; color: var(--fg); }
.h1 { font-size: var(--fs-h1); line-height: 1.05; text-wrap: balance; }
.h2 { font-size: var(--fs-h2); line-height: 1.1; text-wrap: balance; }
.h3 { font-size: var(--fs-h3); line-height: 1.16; }
.muted { color: var(--fg-muted); }
.kicker {
  display: flex; align-items: center; gap: 0.85rem; margin-bottom: 1.25rem;
  font-size: var(--fs-micro); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent);
}
.kicker::before { content: ""; width: 2rem; height: 1px; background: currentColor; flex: none; }
.prose { max-width: 40rem; color: var(--fg-muted); }
.prose p + p, .prose p + ul, .prose ul + p { margin-top: 1.05em; }
.prose strong { color: var(--fg); font-weight: 500; }
.prose ul { padding-left: 1.15rem; }
.prose li + li { margin-top: 0.4rem; }
.section-intro { max-width: 40rem; margin-top: 1.5rem; color: var(--fg-muted); font-size: var(--fs-lead); line-height: 1.6; }
.note { font-size: var(--fs-micro); color: var(--fg-muted); max-width: 46rem; }

/* 6. Buttons & links ----------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.65rem;
  min-height: 3.25rem; padding: 0.85rem 1.6rem;
  font-family: var(--font-sans); font-size: 0.9375rem; font-weight: 500; line-height: 1.2; letter-spacing: 0.01em;
  border: 1px solid transparent; border-radius: var(--radius);
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn--solid { background: var(--btn-bg); color: var(--btn-fg); }
.btn--solid:hover { background: var(--btn-bg-hover); }
.btn--line { background: transparent; color: var(--fg); border-color: color-mix(in srgb, var(--fg) 40%, transparent); }
.btn--line:hover { background: var(--line-hover); border-color: var(--fg); }
.btn--small { min-height: 2.65rem; padding: 0.55rem 1.15rem; font-size: 0.875rem; }
.btn svg { width: 1rem; height: 1rem; flex: none; fill: none; stroke: currentColor; stroke-width: 1.3; }
.btn .icon-arrow { transition: transform 0.35s var(--ease-out); }
.btn:hover .icon-arrow { transform: translateX(3px); }
.btn[disabled], .btn.is-loading { cursor: progress; opacity: 0.8; }
.btn .spinner { width: 1rem; height: 1rem; border: 1.5px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin 0.75s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.875rem 1.5rem; }

.text-link {
  color: var(--fg); text-decoration: underline; text-decoration-thickness: 1px;
  text-underline-offset: 0.32em; text-decoration-color: var(--accent);
  transition: color 0.2s var(--ease);
}
.text-link:hover { color: var(--accent); }

/* 7. Header, navigation, mobile menu ------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; color: var(--on-dark);
  transition: background-color 0.35s var(--ease), transform 0.45s var(--ease), box-shadow 0.35s var(--ease);
  --focus: var(--brass-light);
}
.site-header__inner { display: flex; align-items: center; gap: clamp(1.25rem, 2.6vw, 2.5rem); height: var(--header-h); }
.site-header.is-scrolled {
  background: rgba(11, 25, 35, 0.94);
  -webkit-backdrop-filter: saturate(140%) blur(12px); backdrop-filter: saturate(140%) blur(12px);
  box-shadow: 0 1px 0 var(--rule-dark);
}
.site-header.is-hidden { transform: translateY(-100%); }
body.menu-open .site-header { background: var(--marine-950); box-shadow: 0 1px 0 var(--rule-dark); transform: none; }

.wordmark { display: inline-flex; align-items: baseline; gap: 0.55rem; margin-right: auto; color: inherit; text-decoration: none; white-space: nowrap; }
.wordmark__name { font-family: var(--font-display); font-size: 1.5rem; line-height: 1; letter-spacing: 0.005em; }
.wordmark__post { font-size: 0.75rem; letter-spacing: 0.08em; color: var(--brass-light); }

.site-nav ul { display: flex; gap: clamp(1.25rem, 2.2vw, 2.25rem); list-style: none; }
.site-nav a {
  position: relative; display: inline-block; padding: 0.4rem 0;
  font-size: 0.9375rem; color: rgba(232, 236, 238, 0.8); text-decoration: none;
  transition: color 0.2s var(--ease);
}
.site-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--brass-light);
  transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease-out);
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: #fff; }
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.site-header .btn--solid { --btn-bg: var(--paper); --btn-fg: var(--marine-950); --btn-bg-hover: var(--brass-light); }

.menu-toggle {
  display: none; align-items: center; gap: 0.75rem; margin-right: -0.5rem;
  min-height: 2.75rem; padding: 0.5rem; background: none; border: 0; cursor: pointer; color: inherit;
  font-size: 0.875rem; letter-spacing: 0.02em;
}
.menu-toggle__icon { position: relative; width: 22px; height: 10px; }
.menu-toggle__icon::before, .menu-toggle__icon::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1px; background: currentColor;
  transition: transform 0.35s var(--ease-out), top 0.35s var(--ease-out);
}
.menu-toggle__icon::before { top: 0; }
.menu-toggle__icon::after { top: 9px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon::before { top: 4.5px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon::after { top: 4.5px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 45; overflow-y: auto; overscroll-behavior: contain;
  display: flex; flex-direction: column; justify-content: space-between; gap: 2.5rem;
  padding: calc(var(--header-h) + 1.25rem) var(--gutter) max(2rem, env(safe-area-inset-bottom));
  background: var(--marine-950); color: var(--on-dark);
  opacity: 0; transition: opacity 0.35s var(--ease);
  --focus: var(--brass-light);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu.is-open { opacity: 1; }
.mobile-menu ul { list-style: none; border-top: 1px solid var(--rule-dark); }
.mobile-menu li { border-bottom: 1px solid var(--rule-dark); }
.mobile-menu ul a {
  display: block; padding: 0.8rem 0; font-family: var(--font-display);
  font-size: clamp(1.75rem, 7vw, 2.5rem); line-height: 1.2; text-decoration: none;
  transform: translateY(10px); opacity: 0; transition: transform 0.5s var(--ease-out), opacity 0.5s var(--ease-out), color 0.2s;
}
.mobile-menu.is-open ul a { transform: none; opacity: 1; }
.mobile-menu.is-open li:nth-child(2) a { transition-delay: 0.03s; }
.mobile-menu.is-open li:nth-child(3) a { transition-delay: 0.06s; }
.mobile-menu.is-open li:nth-child(4) a { transition-delay: 0.09s; }
.mobile-menu.is-open li:nth-child(5) a { transition-delay: 0.12s; }
.mobile-menu.is-open li:nth-child(6) a { transition-delay: 0.15s; }
.mobile-menu ul a[aria-current="page"] { color: var(--brass-light); }
.mobile-menu__contact { display: grid; gap: 0.35rem; font-size: var(--fs-small); color: var(--on-dark-muted); }
.mobile-menu__contact a { color: var(--on-dark); text-decoration: none; overflow-wrap: anywhere; }
.mobile-menu__cta { margin-top: 1.25rem; }
.mobile-menu__cta .btn { width: 100%; --btn-bg: var(--paper); --btn-fg: var(--marine-950); --btn-bg-hover: var(--brass-light); }
body.menu-open { overflow: hidden; }

/* 8. Signature: engraved rosette + portrait frame ------------------------ */
/* The rosette echoes the guilloché engraving of share certificates and
   stamp paper: the visual language of securities, listing and the formal
   record. It is generated in js/main.js (no image download). */
.guilloche { position: absolute; pointer-events: none; z-index: -1; aspect-ratio: 1; height: auto; max-width: none; overflow: visible; }
.guilloche path, .guilloche circle { fill: none; stroke: var(--brass); stroke-width: 0.7; vector-effect: non-scaling-stroke; }
.theme-dark .guilloche { opacity: 0.36; }
.theme-light .guilloche, .theme-paper .guilloche { opacity: 0.3; }

.portrait { position: relative; margin: 0; }
.portrait__frame { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: #1d2328; }
.portrait__frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.portrait__frame { outline: 1px solid color-mix(in srgb, var(--brass-light) 55%, transparent); outline-offset: 14px; }
.portrait figcaption { margin-top: 2.25rem; font-size: var(--fs-micro); color: var(--fg-muted); }

/* 9. Home hero ----------------------------------------------------------- */
/* Fills the first screen exactly (100svh): header, headline, portrait and the
   credentials bar are all visible on load, with no empty band at the top. */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column;
  min-height: 100vh; min-height: 100svh;
  padding-top: var(--header-h);
  background:
    radial-gradient(ellipse 58% 70% at 80% 45%, rgba(42, 70, 89, 0.55), transparent 70%),
    var(--marine-950);
}
.hero__inner { flex: 1 1 auto; display: flex; align-items: center; padding-block: clamp(1rem, 4vh, 3.5rem); }
.hero__grid { width: 100%; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 6rem); align-items: center; }
.hero__copy { position: relative; max-width: 44rem; }
.hero__title { font-weight: 400; }
.hero__kicker {
  display: flex; align-items: center; gap: 0.85rem; margin-bottom: clamp(0.9rem, 2.6vh, 1.75rem);
  font-family: var(--font-sans); font-size: var(--fs-micro); font-weight: 600; line-height: 1.5;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--brass-light);
}
.hero__kicker::before { content: ""; width: 2rem; height: 1px; background: currentColor; flex: none; }
.hero__statement {
  display: block; font-family: var(--font-display); font-weight: 400; font-size: var(--fs-hero);
  line-height: 1.03; letter-spacing: -0.015em; color: var(--fg); text-wrap: balance;
}
.hero__lead { margin-top: clamp(0.9rem, 2.8vh, 1.75rem); max-width: 35rem; font-size: var(--fs-lead); line-height: 1.6; color: var(--fg-muted); }
.hero__lead strong { color: var(--fg); font-weight: 500; }
.hero__actions { margin-top: clamp(1.25rem, 3.6vh, 2.5rem); }
.hero__visual {
  position: relative; justify-self: end;
  width: min(100%, 430px, calc((100vh - var(--header-h) - 10.5rem) * 0.8));
  width: min(100%, 430px, calc((100svh - var(--header-h) - 10.5rem) * 0.8));
}
.hero__visual .guilloche { width: 175%; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.hero__visual .portrait__frame img { transform-origin: 50% 30%; }

.hero__bar { position: relative; border-top: 1px solid var(--rule); }
.credline {
  list-style: none; display: flex; justify-content: space-between; gap: 0.75rem 2rem;
  padding-block: 1.15rem; font-size: var(--fs-micro); line-height: 1.45; color: var(--fg-muted);
}
.credline li { display: flex; align-items: baseline; gap: 0.5rem; }
.credline strong { font-family: var(--font-display); font-size: 1.0625rem; font-weight: 400; color: var(--fg); white-space: nowrap; }

/* 10. Page hero (inner pages) -------------------------------------------- */
.page-hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding: calc(var(--header-h) + clamp(2.25rem, 5vw, 4.5rem)) 0 clamp(3rem, 6vw, 5rem);
}
.page-hero .guilloche { width: min(78vw, 900px); right: -22%; top: 50%; transform: translateY(-50%); }
.page-hero__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2.25rem, 6vw, 7rem); align-items: end; }
.page-hero__lead { margin-top: 1.5rem; max-width: 38rem; font-size: var(--fs-lead); color: var(--fg-muted); }
.page-hero .actions { margin-top: 2rem; }
.page-hero__aside { font-size: var(--fs-small); color: var(--fg-muted); border-top: 1px solid var(--rule); padding-top: 1.25rem; }
.page-hero__aside dt { color: var(--fg); font-weight: 500; }
.page-hero__aside dd + dt { margin-top: 1rem; }
.page-hero__aside a { color: var(--fg); }
.page-hero--portrait .page-hero__grid { align-items: center; }
.page-hero--portrait .portrait { width: min(100%, 380px); justify-self: end; }

.breadcrumb { margin-bottom: 1.5rem; font-size: var(--fs-micro); letter-spacing: 0.02em; color: var(--fg-muted); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.25rem 0.5rem; }
.breadcrumb li + li::before { content: "/"; margin-right: 0.5rem; color: var(--accent); }
.breadcrumb a { color: inherit; text-decoration: none; transition: color 0.2s; }
.breadcrumb a:hover { color: var(--fg); }
.breadcrumb [aria-current] { color: var(--fg); }

.anchor-nav { display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; margin-top: 2rem; font-size: var(--fs-small); }

/* 11. Components --------------------------------------------------------- */

/* Register: institutional credentials table */
.register { width: 100%; border-collapse: collapse; margin-top: clamp(2.25rem, 5vw, 3.75rem); }
.register thead th { padding: 0 0 1rem; text-align: left; font-size: var(--fs-micro); font-weight: 500; color: var(--fg-muted); }
.register tbody tr { border-top: 1px solid var(--rule); transition: background-color 0.25s; }
.register tbody tr:hover { background: var(--line-hover); }
.register tbody tr:last-child { border-bottom: 1px solid var(--rule); }
.register tbody th { width: 48%; padding: 1.5rem 2.5rem 1.5rem 0; text-align: left; font-weight: 400; vertical-align: baseline; }
.register td { padding: 1.5rem 0; color: var(--fg-muted); vertical-align: baseline; }
.register__title { display: block; font-family: var(--font-display); font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.7rem); line-height: 1.2; color: var(--fg); }
.register__abbr { display: block; margin-top: 0.3rem; font-size: var(--fs-micro); letter-spacing: 0.06em; color: var(--accent); }

/* Definition rows */
.def-rows { border-bottom: 1px solid var(--rule); }
.def-rows > div { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 0.5rem 2.5rem; padding: 1.5rem 0; border-top: 1px solid var(--rule); }
.def-rows dt { font-family: var(--font-display); font-size: clamp(1.25rem, 1.12rem + 0.45vw, 1.5rem); line-height: 1.25; color: var(--fg); }
.def-rows dd { color: var(--fg-muted); }

/* Practice index */
.practice { list-style: none; margin-top: clamp(2.25rem, 5vw, 3.75rem); border-bottom: 1px solid var(--rule); }
.practice__item {
  position: relative; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) minmax(0, 3fr);
  gap: 1rem 3rem; padding: 2.1rem 0; border-top: 1px solid var(--rule);
  transition: padding-left 0.45s var(--ease-out), background-color 0.3s;
}
.practice__item::before {
  content: ""; position: absolute; left: 0; top: 2.1rem; bottom: 2.1rem; width: 1px; background: var(--brass);
  transform: scaleY(0); transform-origin: top; transition: transform 0.45s var(--ease-out);
}
.practice__item:hover, .practice__item:focus-within { padding-left: 1.5rem; }
.practice__item:hover::before, .practice__item:focus-within::before { transform: scaleY(1); }
.practice__title { font-family: var(--font-display); font-weight: 400; font-size: var(--fs-h3); line-height: 1.15; }
.practice__title a { text-decoration: none; color: var(--fg); }
.practice__title a::after { content: ""; position: absolute; inset: 0; }
.practice__title a:focus-visible { outline: none; }
.practice__item:has(a:focus-visible) { outline: 2px solid var(--focus); outline-offset: 4px; }
.practice__desc { color: var(--fg-muted); }
.practice__for { font-size: var(--fs-small); color: var(--fg-muted); line-height: 1.55; }
.practice__for strong { display: block; margin-bottom: 0.2rem; color: var(--fg); font-weight: 500; }
.practice__tag { display: block; margin-top: 0.6rem; font-family: var(--font-serif); font-style: italic; font-size: 0.95rem; color: var(--accent); }

/* Committees */
.committees { list-style: none; border-bottom: 1px solid var(--rule); }
.committees li { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 0.5rem 2.5rem; padding: 1.5rem 0; border-top: 1px solid var(--rule); }
.committees h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.25rem, 1.12rem + 0.45vw, 1.5rem); line-height: 1.25; color: var(--fg); }
.committees p { color: var(--fg-muted); }
.committees .committees__impact h3, .committees .committees__impact p { font-family: var(--font-serif); font-style: italic; color: var(--accent); }
.committees .committees__impact p { font-size: 1.05rem; }

/* Stages: readiness progression (a genuine sequence, so numbered) */
.stages {
  --progress: 0; --track: 0.6rem;
  position: relative; list-style: none; counter-reset: stage;
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0 1.75rem;
  margin-top: clamp(2.75rem, 6vw, 4.25rem);
}
.stages::before, .stages::after { content: ""; position: absolute; left: 0; right: 0; top: var(--track); height: 1px; }
.stages::before { background: var(--rule); }
.stages::after { background: var(--brass); transform: scaleX(var(--progress)); transform-origin: left; }
.stage { position: relative; counter-increment: stage; padding-top: 2.75rem; transition: opacity 0.5s var(--ease); }
.stage::before {
  content: ""; position: absolute; left: 0; top: calc(var(--track) - 5px); width: 11px; height: 11px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--fg-muted); transition: background-color 0.4s, border-color 0.4s;
}
.stage__num::before { content: counter(stage, decimal-leading-zero); }
.stage__num { font-family: var(--font-display); font-size: 1rem; color: var(--accent); }
.stage h3 { margin: 0.35rem 0 0.75rem; font-family: var(--font-display); font-weight: 400; font-size: 1.35rem; line-height: 1.2; color: var(--fg); }
.stage p { font-size: var(--fs-small); line-height: 1.55; color: var(--fg-muted); }
.js .stages:not(.is-static) .stage { opacity: 0.45; }
.js .stages .stage.is-active, .stages.is-static .stage { opacity: 1; }
.stage.is-active::before, .stages.is-static .stage::before { background: var(--brass); border-color: var(--brass); }
.stages.is-static { --progress: 1; }

/* Principles grid */
.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.75rem clamp(2rem, 4vw, 3.5rem); margin-top: clamp(2.75rem, 6vw, 4.25rem); }
.principle { padding-top: 1.5rem; border-top: 1px solid var(--rule); }
.principle h3 { font-family: var(--font-display); font-weight: 400; font-size: var(--fs-h3); line-height: 1.15; color: var(--fg); }
.principle p { margin-top: 0.75rem; color: var(--fg-muted); }

/* Quote: philosophy */
.philosophy { overflow: hidden; isolation: isolate; }
.philosophy .guilloche { width: min(86vw, 860px); right: -16%; top: 50%; transform: translateY(-50%); }
.quote { max-width: 56rem; }
.quote p {
  font-family: var(--font-serif); font-style: italic; font-weight: 400;
  font-size: clamp(1.5rem, 1.05rem + 2.1vw, 2.75rem); line-height: 1.32; color: var(--fg);
  text-wrap: pretty; hanging-punctuation: first;
}
.quote footer { display: flex; align-items: center; gap: 1rem; margin-top: 2rem; font-size: var(--fs-small); color: var(--fg-muted); }
.quote footer::before { content: ""; width: 3rem; height: 1px; background: var(--brass); }

/* Profile teaser */
.profile-teaser { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(3rem, 7vw, 8rem); align-items: center; }
.profile-teaser .portrait { max-width: 380px; margin: 14px; }
.theme-light .portrait__frame, .theme-paper .portrait__frame { outline-color: color-mix(in srgb, var(--brass) 70%, transparent); }

/* Intents: routed conversation entry points */
.intents { list-style: none; border-bottom: 1px solid var(--rule); }
.intents a {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 1.5rem;
  padding: 1.3rem 0; border-top: 1px solid var(--rule); text-decoration: none; color: var(--fg);
  transition: padding-left 0.45s var(--ease-out), color 0.2s;
}
.intents li:first-child a { border-top: 0; }
.intents__label { font-family: var(--font-display); font-size: clamp(1.25rem, 1.12rem + 0.55vw, 1.6rem); line-height: 1.2; }
.intents__hint { display: block; margin-top: 0.25rem; font-family: var(--font-sans); font-size: var(--fs-small); color: var(--fg-muted); }
.intents__mark { width: 2.5rem; height: 1px; background: var(--fg-muted); transition: width 0.45s var(--ease-out), background-color 0.2s; }
.intents a:hover, .intents a:focus-visible { padding-left: 1rem; color: #fff; }
.intents a:hover .intents__mark, .intents a:focus-visible .intents__mark { width: 4rem; background: var(--brass-light); }

.contact-lines { display: grid; gap: 1.35rem; }
.contact-lines dt { font-size: var(--fs-micro); color: var(--fg-muted); }
.contact-lines dd { margin-top: 0.2rem; font-size: 1.0625rem; }
.contact-lines a { text-decoration: none; color: var(--fg); border-bottom: 1px solid var(--rule); transition: border-color 0.2s; overflow-wrap: anywhere; }
.contact-lines a:hover { border-color: var(--accent); }

address { font-style: normal; }
.contact-address { line-height: 1.55; }
.contact-lines .map-link { display: inline-block; margin-top: 0.5rem; font-size: var(--fs-small); color: var(--accent); }
.footer__address { color: var(--fg-muted); line-height: 1.55; }

/* Services (international) */
.services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(2rem, 5vw, 4.5rem); border-bottom: 1px solid var(--rule); margin-top: clamp(2.25rem, 5vw, 3.75rem); }
.service { padding: 1.75rem 0 2rem; border-top: 1px solid var(--rule); }
.service h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.25rem, 1.12rem + 0.55vw, 1.6rem); line-height: 1.2; color: var(--fg); }
.service p { margin-top: 0.6rem; color: var(--fg-muted); }

.steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2rem 1.75rem; margin-top: clamp(2.25rem, 5vw, 3.5rem); }
.steps--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.steps li { counter-increment: step; padding-top: 1.25rem; border-top: 1px solid var(--rule); }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; font-family: var(--font-display); font-size: 1rem; color: var(--accent); margin-bottom: 0.4rem; }
.steps h3 { font-family: var(--font-sans); font-size: var(--fs-body); font-weight: 600; color: var(--fg); }
.steps p { margin-top: 0.35rem; font-size: var(--fs-small); color: var(--fg-muted); line-height: 1.55; }

.tag-list { display: flex; flex-wrap: wrap; gap: 0.55rem 0.6rem; list-style: none; }
.tag-list li { padding: 0.5rem 0.95rem; border: 1px solid var(--rule); border-radius: var(--radius); font-size: var(--fs-small); color: var(--fg); background: color-mix(in srgb, var(--surface) 60%, #fff); }

/* Leadership: story, stats and milestone timeline */
.leadership__story { margin-top: 1.5rem; }
.leadership__story p { font-family: var(--font-serif); font-style: italic; font-size: 1.0625rem; line-height: 1.7; }
.leadership__sign { display: flex; align-items: center; gap: 1rem; margin-top: 1.25rem; font-size: var(--fs-small); color: var(--fg-muted); }
.leadership__sign::before { content: ""; width: 3rem; height: 1px; background: var(--brass); }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; margin-top: 2.25rem; padding-top: 1.75rem; border-top: 1px solid var(--rule); }
.stats dt { font-family: var(--font-display); font-size: clamp(2.5rem, 2rem + 2vw, 3.5rem); line-height: 1; color: var(--accent); }
.stats dd { margin-top: 0.5rem; font-size: var(--fs-small); line-height: 1.5; color: var(--fg-muted); max-width: 15rem; }

.milestones { list-style: none; position: relative; padding-left: 2.25rem; }
.milestones::before { content: ""; position: absolute; left: 5px; top: 0.55rem; bottom: 0.55rem; width: 1px; background: linear-gradient(var(--rule), var(--brass)); }
.milestones li { position: relative; padding-bottom: 2.25rem; }
.milestones li:last-child { padding-bottom: 0; }
.milestones li::before {
  content: ""; position: absolute; left: -2.25rem; top: 0.3rem; width: 11px; height: 11px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--accent);
}
.milestones li.is-current::before { background: var(--brass); border-color: var(--brass); box-shadow: 0 0 0 5px color-mix(in srgb, var(--brass) 22%, transparent); }
.milestones__when { display: block; font-size: var(--fs-micro); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.milestones h3 { margin-top: 0.4rem; font-family: var(--font-display); font-weight: 400; font-size: clamp(1.3rem, 1.15rem + 0.55vw, 1.65rem); line-height: 1.2; color: var(--fg); }
.milestones p { margin-top: 0.4rem; color: var(--fg-muted); }
.leadership__caps { margin-top: 2.5rem; padding-top: 1.75rem; border-top: 1px solid var(--rule); }
.theme-dark .tag-list li { background: rgba(255, 255, 255, 0.04); }

/* FAQ */
.faq { border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 1.35rem 0; cursor: pointer; list-style: none;
  font-family: var(--font-display); font-size: clamp(1.2rem, 1.08rem + 0.45vw, 1.45rem); line-height: 1.25; color: var(--fg);
  transition: color 0.2s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 0.6rem; height: 0.6rem; margin-top: -0.3rem;
  border-right: 1.5px solid var(--accent); border-bottom: 1.5px solid var(--accent);
  transform: rotate(45deg); transition: transform 0.3s var(--ease-out), margin 0.3s var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: 0.3rem; }
.faq summary:hover { color: var(--accent); }
.faq__a { padding: 0 0 1.5rem; max-width: 46rem; color: var(--fg-muted); }
.faq__a a { color: var(--fg); }

/* CTA band */
.cta-band { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 2.25rem clamp(3rem, 6vw, 6rem); align-items: end; }

/* Legal / long-form text */
.legal { max-width: 46rem; color: var(--fg-muted); }
.legal h2 { margin: 2.5rem 0 0.75rem; font-family: var(--font-display); font-weight: 400; font-size: var(--fs-h3); line-height: 1.2; color: var(--fg); }
.legal h2:first-child { margin-top: 0; }
.legal p + p, .legal p + ul, .legal ul + p { margin-top: 0.9em; }
.legal ul { padding-left: 1.15rem; }
.legal li + li { margin-top: 0.35rem; }
.legal a { color: var(--fg); }
.legal strong { color: var(--fg); font-weight: 500; }

/* 12. Contact form ------------------------------------------------------- */
.enquiry { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(2.25rem, 6vw, 6rem); align-items: start; }
.form { display: grid; gap: 1.75rem; }
.form fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.form legend { padding: 0; margin-bottom: 1rem; font-family: var(--font-display); font-size: var(--fs-h3); line-height: 1.2; color: var(--fg); }
.choice-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; }
.choice {
  position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.85rem; align-items: start;
  padding: 0.95rem 1rem; border: 1px solid var(--rule); border-radius: var(--radius); background: #fff; cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}
.choice:hover { border-color: rgba(19, 33, 43, 0.4); }
.choice:has(input:checked) { border-color: var(--marine-950); box-shadow: inset 0 0 0 1px var(--marine-950); }
.choice--wide { grid-column: 1 / -1; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice__dot { width: 1.125rem; height: 1.125rem; margin-top: 0.2rem; border-radius: 50%; border: 1px solid var(--fg-muted); display: grid; place-items: center; transition: border-color 0.2s; }
.choice__dot::after { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--marine-950); transform: scale(0); transition: transform 0.25s var(--ease-out); }
.choice input:checked + .choice__dot { border-color: var(--marine-950); }
.choice input:checked + .choice__dot::after { transform: scale(1); }
.choice input:focus-visible + .choice__dot { outline: 2px solid var(--focus); outline-offset: 3px; }
.choice__text strong { display: block; font-weight: 500; line-height: 1.35; color: var(--fg); }
.choice__text span { display: block; margin-top: 0.15rem; font-size: var(--fs-micro); color: var(--fg-muted); line-height: 1.45; }

.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 1.25rem; }
.field { display: grid; gap: 0.45rem; align-content: start; }
.field label { font-size: var(--fs-small); font-weight: 500; color: var(--fg); }
.field label .opt { font-weight: 400; color: var(--fg-muted); }
.field input, .field textarea, .field select {
  width: 100%; min-height: 3.25rem; padding: 0.8rem 1rem; font-size: 1rem;
  background: #fff; color: var(--ink); border: 1px solid rgba(19, 33, 43, 0.26); border-radius: var(--radius);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2313212b' stroke-width='1.3'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center; background-size: 0.75rem;
}
.field textarea { min-height: 9rem; resize: vertical; line-height: 1.55; }
.field input:hover, .field textarea:hover, .field select:hover { border-color: rgba(19, 33, 43, 0.5); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--marine-950); box-shadow: 0 0 0 3px rgba(166, 134, 74, 0.35); }
.field [aria-invalid="true"] { border-color: var(--error); }
.field__error { font-size: var(--fs-micro); color: var(--error); }
.field__error:empty { display: none; }
.field__help { font-size: var(--fs-micro); color: var(--fg-muted); }
.intent-hint { padding: 0.9rem 1.15rem; background: rgba(166, 134, 74, 0.09); border-left: 2px solid var(--brass); font-size: var(--fs-small); color: var(--fg); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__submit { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.form__submit p { font-size: var(--fs-micro); color: var(--fg-muted); max-width: 28rem; }
.form__submit p a { color: var(--fg); }

.form-status { padding: 1.25rem 1.5rem; border: 1px solid var(--rule); border-left: 3px solid var(--error); background: #fff; font-size: var(--fs-small); }
.form-status[hidden] { display: none; }
.form-status strong { display: block; font-family: var(--font-display); font-weight: 400; font-size: 1.35rem; margin-bottom: 0.35rem; color: var(--fg); }
.form-status p + p { margin-top: 0.6rem; }
.form-status a { color: var(--fg); }

.form-success { padding: clamp(2rem, 5vw, 3.25rem); background: #fff; border: 1px solid var(--rule); text-align: left; }
.form-success[hidden] { display: none; }
.form-success__icon { width: 3rem; height: 3rem; border-radius: 50%; display: grid; place-items: center; background: rgba(44, 106, 76, 0.1); color: var(--success); margin-bottom: 1.5rem; }
.form-success__icon svg { width: 1.4rem; height: 1.4rem; fill: none; stroke: currentColor; stroke-width: 2; }
.form-success h2 { font-family: var(--font-display); font-weight: 400; font-size: var(--fs-h3); line-height: 1.2; color: var(--fg); }
.form-success p { margin-top: 0.75rem; color: var(--fg-muted); max-width: 34rem; }
.form-success .actions { margin-top: 1.75rem; }

.aside-panel { padding: clamp(1.75rem, 3vw, 2.5rem); }
.aside-panel + .aside-panel { margin-top: 1.25rem; }
.aside-panel h2 { font-family: var(--font-display); font-weight: 400; font-size: 1.5rem; line-height: 1.2; margin-bottom: 1.5rem; color: var(--fg); }

/* 13. Footer ------------------------------------------------------------- */
.site-footer { padding: clamp(3.5rem, 6vw, 5.5rem) 0 max(1.75rem, env(safe-area-inset-bottom)); border-top: 1px solid var(--rule-dark); }
.footer__grid { display: grid; grid-template-columns: minmax(0, 5fr) repeat(2, minmax(0, 3fr)); gap: 2.75rem; }
.footer__brand .wordmark { margin-bottom: 1.25rem; }
.footer__brand p { max-width: 24rem; color: var(--fg-muted); font-size: var(--fs-small); }
.footer__heading { font-size: var(--fs-micro); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 1rem; }
.footer__list { list-style: none; display: grid; gap: 0.5rem; font-size: var(--fs-small); }
.footer__list a { text-decoration: none; color: var(--fg); transition: color 0.2s; overflow-wrap: anywhere; }
.footer__list a:hover { color: var(--accent); }
.footer__list span { color: var(--fg-muted); }
.footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem 2rem; margin-top: clamp(2.75rem, 5vw, 4.5rem); padding-top: 1.5rem; border-top: 1px solid var(--rule); font-size: var(--fs-micro); color: var(--fg-muted); }
.footer__base p { max-width: 44rem; }
.footer__base a { color: var(--fg); text-decoration: none; }
.footer__base a:hover { color: var(--accent); }

/* 14. Motion ------------------------------------------------------------- */
/* One orchestrated moment: the home hero opening. Text rises in sequence,
   the portrait settles from a slight scale, the rosette engraves itself. */
.js .hero [data-load] { opacity: 0; transform: translateY(18px); }
.js .hero.is-loaded [data-load] { opacity: 1; transform: none; transition: opacity 0.9s var(--ease-out), transform 1.1s var(--ease-out); transition-delay: calc(var(--d, 0) * 1ms); }
.js .hero .portrait__frame img { transform: scale(1.045); }
.js .hero.is-loaded .portrait__frame img { transform: none; transition: transform 2.2s var(--ease-out); }
.js .hero .portrait__frame { outline-color: transparent; }
.js .hero.is-loaded .portrait__frame { outline-color: color-mix(in srgb, var(--brass-light) 55%, transparent); transition: outline-color 1.2s var(--ease) 0.5s; }

/* Gentle reveal as sections enter the screen */
.js [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* 15. Responsive --------------------------------------------------------- */
@media (max-width: 1279px) {
  .credline li:nth-child(5) { display: none; }
}

@media (max-width: 1180px) {
  .stages { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 2.75rem; }
  .stages::before, .stages::after { display: none; }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .practice__item { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .practice__for { grid-column: 2; }
}

@media (max-width: 1023px) {
  :root { --header-h: 4.25rem; }
  .site-nav, .site-header__cta { display: none; }
  .menu-toggle { display: inline-flex; }

  .split, .split--even, .cta-band, .enquiry { grid-template-columns: minmax(0, 1fr); }
  .sticky { position: static; }
  .split { row-gap: 1.5rem; }
  .profile-teaser { grid-template-columns: minmax(0, 1fr); }
  .profile-teaser .portrait { max-width: 340px; }
  .page-hero__grid { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .page-hero--portrait .portrait { justify-self: start; width: min(100% - 28px, 320px); margin: 14px 0 0 14px; }
  .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer__brand { grid-column: 1 / -1; }
  .credline li:nth-child(4) { display: none; }
}

/* Home hero on phones and portrait tablets: the portrait runs edge to edge at
   the top and fades into the headline. Everything sits inside one screen. */
@media (max-width: 899px) {
  .hero { padding-top: 0; background: var(--marine-950); }
  .hero__inner { align-items: flex-end; padding-top: calc(var(--header-h) + 9rem); padding-bottom: max(1.5rem, env(safe-area-inset-bottom)); }
  .hero__grid { display: block; }
  .hero__copy { max-width: 36rem; text-shadow: 0 1px 22px rgba(11, 25, 35, 0.55); }
  .hero__copy .btn { text-shadow: none; }
  .hero__visual { position: absolute; top: 0; left: 0; right: 0; z-index: -1; width: auto; justify-self: auto; }
  .hero__visual .guilloche { display: none; }
  .hero__visual .portrait__frame,
  .js .hero.is-loaded .hero__visual .portrait__frame { outline: 0; background: var(--marine-950); }
  .hero__visual .portrait__frame img { object-position: 50% 0%; }
  .hero__visual .portrait__frame::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg,
      rgba(11, 25, 35, 0.72) 0%, rgba(11, 25, 35, 0) 17%,
      rgba(11, 25, 35, 0) 46%, rgba(11, 25, 35, 0.82) 74%, var(--marine-950) 97%);
  }
  .hero__kicker { font-size: 0.75rem; letter-spacing: 0.1em; margin-bottom: 0.85rem; }
  .hero__kicker::before { width: 1.25rem; }
  .hero__statement { font-size: clamp(1.9rem, min(8.4vw, 5.4vh), 3.4rem); }
  .hero__lead { font-size: 1rem; margin-top: 0.85rem; }
  .hero__actions { margin-top: 1.35rem; }
  .hero__bar { display: none; }
}
/* Phones turned sideways: text on the left, portrait on the right */
@media (max-width: 899px) and (orientation: landscape) {
  .hero__inner { padding-top: calc(var(--header-h) + 1rem); align-items: center; }
  .hero__copy { max-width: 60%; }
  .hero__visual { left: auto; bottom: 0; width: 50%; }
  .hero__visual .portrait, .hero__visual .portrait__frame { height: 100%; }
  .hero__visual .portrait__frame { aspect-ratio: auto; }
  .hero__visual .portrait__frame img { object-position: 50% 14%; }
  .hero__visual .portrait__frame::after {
    background: linear-gradient(90deg, var(--marine-950) 0%, rgba(11, 25, 35, 0.55) 30%, rgba(11, 25, 35, 0) 65%);
  }
  .hero__statement { font-size: clamp(1.6rem, 4.2vw, 2.5rem); }
  .hero__lead { display: none; }
}
/* Short phones (e.g. iPhone SE): keep the face clear of the text */
@media (max-width: 899px) and (orientation: portrait) and (max-height: 720px) {
  .hero__lead { display: none; }
}
/* Very short desktop windows */
@media (min-width: 900px) and (max-height: 600px) {
  .hero__bar { display: none; }
  .hero__lead { display: none; }
  .hero__visual { width: min(100%, 300px); }
}

@media (max-width: 719px) {
  body { font-size: 1rem; }
  .register thead { display: none; }
  .register, .register tbody, .register tr, .register th, .register td { display: block; width: 100%; }
  .register tbody th { padding: 1.3rem 0 0.35rem; }
  .register td { padding: 0 0 1.3rem; }
  .register tbody tr:hover { background: none; }
  .def-rows > div, .committees li { grid-template-columns: minmax(0, 1fr); }
  .practice__item { grid-template-columns: minmax(0, 1fr); gap: 0.75rem; padding: 1.75rem 0; }
  .practice__for { grid-column: auto; }
  .practice__item:hover, .practice__item:focus-within { padding-left: 0; }
  .practice__item::before { display: none; }
  .principles, .services, .field-row, .choice-list { grid-template-columns: minmax(0, 1fr); }
  .principles { gap: 2.25rem; }

  .stages { grid-template-columns: minmax(0, 1fr); gap: 0; padding-left: 2rem; }
  .stages::before, .stages::after { display: block; left: 5px; right: auto; top: 0.5rem; bottom: 0.5rem; width: 1px; height: auto; }
  .stages::after { transform: scaleY(var(--progress)); transform-origin: top; }
  .stage { padding: 0 0 2.1rem; }
  .stage:last-child { padding-bottom: 0; }
  .stage::before { left: -2rem; top: 0.45rem; }

  .steps { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .actions .btn { flex: 1 1 auto; }
  .footer__grid { grid-template-columns: minmax(0, 1fr); gap: 2.25rem; }
  .intents a { grid-template-columns: minmax(0, 1fr); }
  .intents__mark { display: none; }
  .form__submit .btn { width: 100%; }
  .profile-teaser .portrait { max-width: calc(100% - 28px); }
  .aside-panel { margin-inline: calc(var(--gutter) * -1); }
}

/* Hero buttons: stacked and full width on phones, side by side from 600px */
@media (max-width: 599px) and (orientation: portrait) {
  .hero__actions { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.6rem; }
  .hero__actions .btn { width: 100%; min-height: 3rem; }
}
@media (max-width: 399px) {
  .btn { white-space: normal; text-align: center; padding-inline: 1.1rem; }
}
@media (max-width: 359px) {
  .wordmark__name { font-size: 1.35rem; }
  .menu-toggle [data-menu-label] { display: none; }
}

/* 16. Reduced motion & print -------------------------------------------- */
@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; transition-delay: 0s !important; }
  .js .hero [data-load], .js [data-reveal] { opacity: 1; transform: none; }
  .js .hero .portrait__frame img { transform: none; }
}

@media print {
  .site-header, .mobile-menu, .guilloche, .skip-link, .form, .hero__bar { display: none !important; }
  body, .theme-dark, .theme-light, .theme-paper { background: #fff !important; color: #000 !important; }
  .page-hero, .hero { padding-top: 2rem; min-height: 0; }
  a { text-decoration: underline; }
}
