/* =====================================================================
   Thiruponathar Trust — design system
   Palette derived from the trust's own logo (deep purple + laurel gold),
   editorial serif headlines over a clean grotesk body.
   ===================================================================== */

:root {
  /* Brand — purple scale (900 darkest → 050 lightest) */
  --purple-900: #25102F;   /* on-surface / deepest ink, used as darkest section bg */
  --purple-800: #3A1849;   /* sampled from the logo background — hero, header text, primary buttons */
  --purple-700: #4E2264;   /* hover state on purple elements */
  --purple-600: #63307C;   /* borders / lighter accents on purple */
  --purple-100: #EFE7F2;   /* light tint — one step deeper than 050 */
  --purple-050: #F7F2F9;   /* faint tint bg for hovers, icon roundels, panels */

  --gold-400: #DCC191;   /* light gold — text/marks on dark purple surfaces */
  --gold-500: #C9A66B;   /* laurel gold — dividers, buttons, accents */
  --gold-600: #A8823F;   /* deep gold — focus rings, icons on light bg */
  --gold-700: #7E5F23;   /* text-safe gold — eyebrows, tags, links on cream */

  /* Neutrals */
  --cream:  #FBF8F3;
  --paper:  #FFFFFF;
  --ink:    #1B1220;
  --body:   #4A4152;
  --muted:  #6E6478;
  --line:   #E7E0D6;
  --line-strong: #D5CBBD;

  /* Type */
  --font-display: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-body: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Space */
  --container: 1200px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(4rem, 9vw, 7.5rem);

  --radius-sm: 0.25rem;
  --radius: 0.5rem;
  --radius-lg: 0.75rem;

  --shadow-sm: 0 1px 2px rgba(27, 18, 32, .04), 0 2px 8px rgba(27, 18, 32, .03);
  --shadow-md: 0 8px 24px rgba(27, 18, 32, .05), 0 24px 48px rgba(27, 18, 32, .04);
  --shadow-lg: 0 16px 32px rgba(27, 18, 32, .06), 0 32px 64px rgba(27, 18, 32, .05);

  --header-h: 76px;
}

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

html { -webkit-text-size-adjust: 100%; }

html:focus-within { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--body);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

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

a { color: var(--purple-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--purple-600); }

ul, ol { padding: 0; list-style: none; }

:where(a, button, input, textarea, select, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--gold-600);
  outline-offset: 3px;
  border-radius: 3px;
}

/* --------------------------- typography ---------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.h-hero  { font-size: clamp(2.55rem, 6.4vw, 4.6rem); line-height: 1.04; letter-spacing: -0.025em; }
.h-page  { font-size: clamp(2.15rem, 5.2vw, 3.4rem); line-height: 1.07; letter-spacing: -0.022em; }
.h-sect  { font-size: clamp(1.85rem, 3.6vw, 2.7rem); letter-spacing: -0.02em; }
.h-card  { font-size: 1.3rem; letter-spacing: -0.012em; }
.h-sub   { font-size: 1.1rem; letter-spacing: -0.008em; }

p { text-wrap: pretty; }

.lead {
  font-size: clamp(1.1rem, 1.9vw, 1.3rem);
  line-height: 1.6;
  color: var(--body);
}

.eyebrow {
  font-family: var(--font-body);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .19em;
  text-transform: uppercase;
  color: var(--gold-700);
  display: block;
  margin-bottom: 1.15rem;
}

.eyebrow--light { color: var(--gold-400); }

.text-measure { max-width: 62ch; }

/* ----------------------------- layout ------------------------------ */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: 860px; }

.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }
.section--paper { background: var(--paper); }
.section--purple { background: var(--purple-800); color: rgba(255,255,255,.82); }
.section--purple h2, .section--purple h3 { color: #fff; }

.section-head { max-width: 62ch; margin-bottom: clamp(2.25rem, 4vw, 3.25rem); }
.section-head p { margin-top: 1rem; }

.rule {
  width: 56px; height: 2px; border: 0;
  background: var(--gold-500);
  margin: 1.5rem 0 0;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--purple-800); color: #fff;
  padding: .8rem 1.25rem; border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* ----------------------------- buttons ----------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .9rem 1.6rem;
  font-size: .95rem; font-weight: 600; letter-spacing: .005em;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--purple-800); color: #fff; border-color: var(--purple-800); }
.btn--primary:hover { background: var(--purple-700); border-color: var(--purple-700); color: #fff; }

.btn--gold { background: var(--gold-500); color: var(--purple-900); border-color: var(--gold-500); }
.btn--gold:hover { background: var(--gold-400); border-color: var(--gold-400); color: var(--purple-900); }

.btn--ghost { background: transparent; color: var(--purple-800); border-color: var(--line-strong); }
.btn--ghost:hover { background: var(--purple-050); border-color: var(--purple-700); color: var(--purple-800); }

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

.btn-row { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2.25rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .4rem;
  font-weight: 600; font-size: .95rem;
  color: var(--purple-700); text-decoration: none;
}
.link-arrow::after { content: "→"; transition: transform .18s ease; }
.link-arrow:hover::after { transform: translateX(3px); }

/* ----------------------------- header ------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251, 248, 243, .92);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--line);
}

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

.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand__mark { width: 40px; height: 40px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name {
  font-family: var(--font-display);
  font-size: 1.06rem; font-weight: 600;
  letter-spacing: .05em; text-transform: uppercase;
  color: var(--purple-800);
}
.brand__tag {
  font-size: .6rem; font-weight: 600; letter-spacing: .22em;
  text-transform: uppercase; color: var(--gold-700); margin-top: .3rem;
}

.nav { display: flex; align-items: center; gap: .35rem; }
.nav a {
  padding: .55rem .8rem;
  font-size: .93rem; font-weight: 500;
  color: var(--body); text-decoration: none;
  border-radius: var(--radius-sm);
  transition: color .16s ease, background-color .16s ease;
}
.nav a:hover { color: var(--purple-800); background: var(--purple-050); }
.nav a[aria-current="page"] { color: var(--purple-800); font-weight: 600; }
.nav > .btn { display: none; }   /* shown only inside the mobile drawer */

.header-cta { display: flex; align-items: center; gap: .75rem; }
.header-cta .btn { padding: .68rem 1.2rem; font-size: .9rem; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm); cursor: pointer;
}
.nav-toggle span {
  display: block; width: 19px; height: 1.5px; background: var(--purple-800);
  position: relative; transition: background-color .16s ease;
}
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 19px; height: 1.5px;
  background: var(--purple-800); transition: transform .22s ease, top .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); }

@keyframes navIn { from { opacity: 0; transform: translateY(-10px); } }

/* raised from 940px when "In memoriam" became a seventh primary link */
@media (max-width: 1060px) {
  .nav-toggle { display: inline-flex; }
  .header-cta .btn { display: none; }
  /* display toggling rather than opacity/visibility: nothing to get stuck half-open */
  .nav {
    display: none;
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    padding: .75rem var(--gutter) 1.5rem;
    box-shadow: var(--shadow-md);
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .nav[data-open="true"] { display: flex; animation: navIn .2s ease both; }
  .nav a { padding: .95rem .5rem; font-size: 1.05rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav a:last-of-type { border-bottom: 0; }
  .nav > .btn { display: inline-flex; margin-top: 1.15rem; justify-content: center; }
}

/* ------------------------------ hero ------------------------------- */
.hero {
  position: relative;
  background: var(--purple-800);
  color: rgba(255,255,255,.8);
  overflow: hidden;
  isolation: isolate;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 70% 90% at 78% 15%, rgba(201,166,107,.16), transparent 62%),
    radial-gradient(ellipse 90% 70% at 8% 95%, rgba(99,48,124,.5), transparent 60%);
}
.hero__watermark {
  position: absolute; z-index: -1;
  right: -6%; top: 50%; transform: translateY(-50%);
  width: min(620px, 62vw); opacity: .07; pointer-events: none;
}
.hero__inner { padding-block: clamp(4.5rem, 11vw, 8.5rem); position: relative; }
.hero h1 { color: #fff; max-width: 17ch; }  /* ch resolves against the heading's own size */
.hero .lead { color: rgba(255,255,255,.78); max-width: 54ch; margin-top: 1.75rem; }

.hero--page .hero__inner { padding-block: clamp(3.25rem, 7vw, 5.5rem); }
.hero--page h1 { max-width: 19ch; }
.hero--page .lead { margin-top: 1.35rem; }

.breadcrumb {
  display: flex; gap: .5rem; align-items: center;
  font-size: .82rem; color: rgba(255,255,255,.6);
  margin-bottom: 1.5rem;
}
.breadcrumb a { color: rgba(255,255,255,.75); text-decoration: none; }
.breadcrumb a:hover { color: #fff; text-decoration: underline; }

/* facts strip beneath the hero */
.facts {
  border-top: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.14);
}
.facts__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,.12);
}
.facts__item { background: var(--purple-800); padding: 1.6rem clamp(1rem, 2vw, 1.75rem); }
.facts__k {
  font-family: var(--font-display); font-size: 1.42rem; color: #fff;
  letter-spacing: -.01em; line-height: 1.2;
}
.facts__v {
  font-size: .82rem; color: rgba(255,255,255,.62);
  margin-top: .45rem; line-height: 1.45;
}
@media (max-width: 860px) { .facts__grid { grid-template-columns: repeat(2, 1fr); } }

/* ------------------------------ cards ------------------------------ */
.grid { display: grid; gap: clamp(1.1rem, 2vw, 1.6rem); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 960px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 2.6vw, 2rem);
  display: flex; flex-direction: column;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.card p { margin-top: .7rem; font-size: .97rem; }
.card__foot { margin-top: auto; padding-top: 1.35rem; }

a.card, .card--link { text-decoration: none; color: inherit; }
a.card:hover, .card--link:hover {
  border-color: var(--purple-600);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card__icon {
  width: 44px; height: 44px; margin-bottom: 1.15rem;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--purple-050);
  color: var(--purple-700);
  flex: none;
}
.card__icon svg { width: 21px; height: 21px; }

.card--pillar { background: var(--paper); }
.card--pillar .card__list { margin-top: 1.25rem; display: grid; gap: .6rem; }
.card__list li {
  position: relative; padding-left: 1.4rem;
  font-size: .95rem; color: var(--body);
}
.card__list li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold-500);
}

.tag {
  display: inline-block;
  font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--gold-700); background: rgba(201,166,107,.14);
  border-radius: 999px; padding: .3rem .7rem;
  margin-bottom: 1rem; align-self: flex-start;
}

.meta-line {
  display: flex; align-items: center; gap: .5rem;
  margin-top: 1.15rem; padding-top: 1.15rem;
  border-top: 1px solid var(--line);
  font-size: .88rem; font-weight: 500; color: var(--purple-700);
}
.meta-line svg { width: 15px; height: 15px; flex: none; }

/* --------------------------- feature block ------------------------- */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.feature--flip .feature__media { order: 2; }
@media (max-width: 900px) {
  .feature { grid-template-columns: 1fr; }
  .feature--flip .feature__media { order: 0; }
}

.feature__media img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
.feature__body h2 { margin-bottom: 1.25rem; }
.feature__body p + p { margin-top: 1rem; }

.spec-list { margin-top: 1.85rem; display: grid; gap: .95rem; }
.spec-list > div {
  display: grid; grid-template-columns: 130px 1fr; gap: 1rem;
  padding-bottom: .95rem; border-bottom: 1px solid var(--line);
  font-size: .95rem;
}
.spec-list dt { font-weight: 600; color: var(--ink); }
.spec-list dd { margin: 0; }
@media (max-width: 520px) { .spec-list > div { grid-template-columns: 1fr; gap: .2rem; } }

/* ---------------------------- founder ------------------------------ */
.founder { display: grid; grid-template-columns: 320px 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 820px) { .founder { grid-template-columns: 1fr; } }

.portrait {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--purple-050);
  box-shadow: var(--shadow-md);
}
.portrait img { width: 100%; }
.portrait__cap {
  padding: 1.1rem 1.25rem;
  background: var(--paper);
  border-top: 3px solid var(--gold-500);
}
.portrait__name { font-family: var(--font-display); font-size: 1.12rem; color: var(--ink); }
.portrait__role { font-size: .84rem; color: var(--muted); margin-top: .3rem; }

/* ---------------------------- memorial ----------------------------- */
/* Portrait treated as a memorial: gold rule kept, life dates beneath the role. */
.portrait--memorial .portrait__cap { border-top-color: var(--gold-600); }
.portrait__dates {
  font-family: var(--font-display);
  font-size: .92rem; font-style: italic;
  color: var(--gold-700);
  margin-top: .45rem;
}

.memoriam-label {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .74rem; font-weight: 600; letter-spacing: .19em; text-transform: uppercase;
  color: var(--gold-700);
  margin-bottom: 1.15rem;
}
.memoriam-label::before {
  content: ""; width: 26px; height: 1px; background: var(--gold-500); flex: none;
}

/* slim sitewide tribute band, sits directly under the header */
.memorial-band {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  box-shadow: inset 0 3px 0 var(--gold-500);
}
.memorial-band__inner {
  display: flex; flex-wrap: wrap; align-items: baseline;
  justify-content: center; gap: .35rem .9rem;
  padding-block: .95rem;
  text-align: center;
}
.memorial-band__text {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.02rem;
  color: var(--ink);
}
.memorial-band__link {
  font-family: var(--font-body); font-style: normal;
  font-size: .82rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--gold-700); text-decoration: none;
  white-space: nowrap;
}
.memorial-band__link:hover { color: var(--gold-600); text-decoration: underline; }

/* memorial page hero — softer than the standard purple hero */
.hero--memorial::after {
  background:
    radial-gradient(ellipse 80% 100% at 50% 0%, rgba(201,166,107,.2), transparent 62%),
    radial-gradient(ellipse 90% 70% at 8% 95%, rgba(99,48,124,.45), transparent 60%);
}
.hero--memorial .hero__inner { text-align: center; }
.hero--memorial .breadcrumb { justify-content: center; }
.hero--memorial h1 { max-width: none; }
.hero--memorial .lead { margin-inline: auto; }
.hero__dates {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--gold-400);
  margin-top: 1.25rem;
}

.memorial-portrait {
  max-width: 280px; margin: 0 auto 2.75rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border-bottom: 4px solid var(--gold-500);
}
.memorial-portrait img { width: 100%; }

/* life timeline */
.timeline { margin-top: 2.5rem; border-left: 2px solid var(--line); }
.timeline__item { position: relative; padding: 0 0 2rem 1.9rem; }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item::before {
  content: ""; position: absolute; left: -7px; top: .45em;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--gold-500);
  border: 2px solid var(--cream);
}
.timeline__year {
  font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold-700);
}
.timeline__item h3 { font-size: 1.15rem; margin-top: .3rem; }
.timeline__item p { margin-top: .5rem; font-size: .97rem; }

.condolence {
  text-align: center;
  max-width: 46ch; margin-inline: auto;
}
.condolence .rule { margin-inline: auto; }

.pullquote {
  border-left: 3px solid var(--gold-500);
  padding: .35rem 0 .35rem 1.6rem;
  margin: 2rem 0;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.3vw, 1.5rem);
  line-height: 1.45;
  color: var(--ink);
  font-style: italic;
}

/* ----------------------------- quote ------------------------------- */
.quote-block { text-align: center; max-width: 40ch; margin-inline: auto; }
.quote-block__mark {
  font-family: var(--font-display); font-size: 4rem; line-height: 1;
  color: var(--gold-500); opacity: .55; display: block; margin-bottom: .5rem;
}
.quote-block blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.2vw, 2.1rem);
  line-height: 1.35; color: #fff; letter-spacing: -.015em;
}
.quote-block cite {
  display: block; margin-top: 1.5rem;
  font-family: var(--font-body); font-style: normal;
  font-size: .84rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold-400);
}

/* ----------------------------- people ------------------------------ */
.people { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
@media (max-width: 860px) { .people { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .people { grid-template-columns: 1fr; } }

.person { background: var(--paper); padding: 1.4rem 1.5rem; }
.person__name { font-weight: 600; color: var(--ink); font-size: 1rem; line-height: 1.35; }
.person__role { font-size: .86rem; color: var(--muted); margin-top: .3rem; }
.person--lead { background: var(--purple-050); }
.person--lead .person__role { color: var(--gold-700); font-weight: 600; }

/* Blank cells that complete the final row of the 3-column grid; the 2- and
   1-column layouts divide evenly on their own, so they drop out there. */
.person--filler { padding: 0; }
@media (max-width: 860px) { .person--filler { display: none; } }

/* --------------------------- resources ----------------------------- */
.res-group + .res-group { margin-top: clamp(2.5rem, 5vw, 3.75rem); }
.res-group__head {
  display: flex; align-items: baseline; gap: 1rem;
  padding-bottom: 1rem; margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--line-strong);
}
.res-group__head h2 { font-size: 1.5rem; }
.res-group__count { font-size: .8rem; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }

.res-card { position: relative; }
.res-card__host {
  font-size: .78rem; color: var(--muted); margin-top: .85rem;
  display: flex; align-items: center; gap: .4rem; word-break: break-word;
}
.res-card__host svg { width: 13px; height: 13px; flex: none; }

/* ---------------------------- videos ------------------------------- */
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.1rem, 2vw, 1.6rem); }
@media (max-width: 960px) { .video-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .video-grid { grid-template-columns: 1fr; } }

.video {
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; background: var(--paper);
}
.video__frame {
  position: relative; aspect-ratio: 16 / 9;
  background: var(--purple-900); cursor: pointer;
  border: 0; padding: 0; width: 100%; display: block;
}
.video__frame img { width: 100%; height: 100%; object-fit: cover; }
.video__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video__play {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: linear-gradient(180deg, rgba(37,16,47,.15), rgba(37,16,47,.5));
  transition: background-color .2s ease;
}
.video__frame:hover .video__play { background: linear-gradient(180deg, rgba(37,16,47,.3), rgba(37,16,47,.62)); }
.video__play span {
  width: 58px; height: 58px; border-radius: 50%;
  background: rgba(255,255,255,.94); color: var(--purple-800);
  display: grid; place-items: center;
  box-shadow: var(--shadow-md);
  transition: transform .2s ease;
}
.video__frame:hover .video__play span { transform: scale(1.07); }
.video__play svg { width: 20px; height: 20px; margin-left: 3px; }
.video__cap { padding: 1.1rem 1.25rem 1.35rem; }

/* ----------------------------- forms ------------------------------- */
.form-grid { display: grid; gap: 1.15rem; }
.field label {
  display: block; font-size: .88rem; font-weight: 600;
  color: var(--ink); margin-bottom: .45rem;
}
.field .req { color: var(--gold-700); }
.field input, .field textarea, .field select {
  width: 100%;
  padding: .85rem 1rem;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--purple-700);
  box-shadow: 0 0 0 3px rgba(78,34,100,.16);
}
.field textarea { min-height: 150px; resize: vertical; }
.field__error { display: none; font-size: .84rem; color: #B3261E; margin-top: .4rem; }
.field[data-invalid="true"] input,
.field[data-invalid="true"] textarea { border-color: #B3261E; }
.field[data-invalid="true"] .field__error { display: block; }

.form-note { font-size: .86rem; color: var(--muted); margin-top: 1rem; }
.form-status { margin-top: 1.25rem; padding: 1rem 1.15rem; border-radius: var(--radius-sm); font-size: .93rem; display: none; }
.form-status[data-state="ok"]   { display: block; background: #EAF4EC; color: #1E4620; border: 1px solid #BEDCC3; }
.form-status[data-state="err"]  { display: block; background: #FBEAE9; color: #7A1C17; border: 1px solid #EEC4C1; }

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

/* ---------------------------- contact ------------------------------ */
.contact-layout { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 900px) { .contact-layout { grid-template-columns: 1fr; } }

.contact-item { display: flex; gap: 1rem; padding-block: 1.35rem; border-bottom: 1px solid var(--line); }
.contact-item:first-of-type { padding-top: 0; }
.contact-item__icon { color: var(--gold-600); flex: none; margin-top: .2rem; }
.contact-item__icon svg { width: 19px; height: 19px; }
.contact-item__k { font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.contact-item__v { margin-top: .35rem; color: var(--ink); }
.contact-item__v a { color: var(--purple-700); }

.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.6rem, 3vw, 2.4rem);
}
.panel--purple { background: var(--purple-800); border-color: var(--purple-700); color: rgba(255,255,255,.8); }
.panel--purple h2, .panel--purple h3 { color: #fff; }

.bank-list { display: grid; gap: .9rem; margin-top: 1.6rem; }
.bank-list > div {
  display: grid; grid-template-columns: 145px 1fr; gap: 1rem;
  padding-bottom: .9rem; border-bottom: 1px solid rgba(255,255,255,.14);
  font-size: .94rem;
}
.bank-list dt { color: rgba(255,255,255,.6); font-size: .86rem; }
.bank-list dd { margin: 0; color: #fff; font-weight: 500; }
.bank-list dd code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .95em; letter-spacing: .02em;
}
@media (max-width: 520px) { .bank-list > div { grid-template-columns: 1fr; gap: .2rem; } }

.reg-strip { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.75rem; }
.reg-chip {
  font-size: .78rem; padding: .45rem .8rem;
  border: 1px solid var(--line-strong); border-radius: 999px;
  color: var(--muted); background: var(--paper);
}
.panel--purple .reg-chip { border-color: rgba(255,255,255,.22); color: rgba(255,255,255,.72); background: transparent; }

/* ------------------------------ CTA -------------------------------- */
.cta-band { background: var(--purple-050); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cta-band__inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
@media (max-width: 820px) { .cta-band__inner { grid-template-columns: 1fr; } }

/* ----------------------------- footer ------------------------------ */
.site-footer { background: var(--purple-900); color: rgba(255,255,255,.62); font-size: .93rem; }
.site-footer a { color: rgba(255,255,255,.78); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }

.footer-top { padding-block: clamp(3rem, 6vw, 4.5rem); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: clamp(1.75rem, 4vw, 3rem); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand .brand__name { color: #fff; }
.footer-brand .brand__tag { color: var(--gold-500); }
.footer-brand p { margin-top: 1.25rem; max-width: 34ch; }

.footer-col h3 {
  font-family: var(--font-body); font-size: .76rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold-500); margin-bottom: 1.1rem;
}
.footer-col li + li { margin-top: .65rem; }

.footer-dedication {
  border-top: 1px solid rgba(255,255,255,.12);
  border-bottom: 1px solid rgba(255,255,255,.12);
  padding-block: 1.6rem;
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.02rem;
  color: rgba(255,255,255,.72);
}

.footer-bottom {
  padding-block: 1.6rem;
  display: flex; flex-wrap: wrap; gap: 1rem 1.75rem;
  align-items: center; justify-content: space-between;
  font-size: .84rem; color: rgba(255,255,255,.48);
}
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 1.25rem; }

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

/* Scoped to .js so content is never hidden when scripts fail or are blocked. */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .55s ease, transform .55s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html:focus-within { 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 {
  .site-header, .nav-toggle, .cta-band, .btn { display: none !important; }
  body { background: #fff; color: #000; }
}
