/* ==========================================================================
   DOMAC — Dental Office Managers Association of Canada
   Design system: "The Credential Plaque"
   Derived from the logo: a filled aubergine block + flush-left stacked
   heavy sans wordmark. That block becomes the structural motif of the site.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Brand — taken from the supplied DOMAC logo artwork.
     #3F083C is the exact plum in LOGO_DESIGNS_61/62, so the logo block
     merges cleanly into any surface painted with --plum. */
  --plum-900: #230421;
  --plum-800: #2F062C;
  --plum:     #3F083C;   /* exact logo plum */
  --plum-600: #5F1259;
  --plum-400: #8B3585;
  --rose-200: #E3CFE1;
  --rose-100: #F4E9F3;

  /* Neutrals — warm bone, not the usual cream */
  --bone:     #FBF8FB;
  --paper:    #FFFFFF;
  --ink:      #1C0A1B;
  --ink-70:   #4C3A4B;
  --ink-50:   #726071;
  --hair:     #E7DCE6;

  /* Accent — teal reads clinical and fresh against aubergine */
  --teal:      #0E9AA0;
  --teal-dark: #096F74;
  --teal-tint: #E3F4F4;

  --amber: #C8871C;

  /* Type */
  --display: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --body: "Newsreader", Georgia, "Times New Roman", serif;

  /* Rhythm */
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --maxw: 1220px;
  --maxw-prose: 68ch;
  --sect: clamp(3.5rem, 8vw, 7rem);

  --radius: 3px;
  --shadow: 0 1px 2px rgba(35, 4, 33, .06), 0 8px 28px -12px rgba(35, 4, 33, .18);
  --shadow-lift: 0 2px 4px rgba(35, 4, 33, .08), 0 18px 44px -18px rgba(35, 4, 33, .3);

  --ease: cubic-bezier(.2, .7, .3, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--body);
  font-size: clamp(1.02rem, .55vw + .9rem, 1.14rem);
  line-height: 1.65;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
img { background: var(--rose-100); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -.028em;
  line-height: 1.03;
  margin: 0 0 .5em;
  color: var(--plum-900);
  text-wrap: balance;
}

h1 { font-size: clamp(2.35rem, 6.2vw, 4.6rem); }
h2 { font-size: clamp(1.85rem, 3.9vw, 3rem); }
h3 { font-size: clamp(1.28rem, 2vw, 1.65rem); letter-spacing: -.02em; }
h4 { font-size: 1.1rem; letter-spacing: -.01em; }

p { margin: 0 0 1.1em; }
p:last-child, ul:last-child, ol:last-child { margin-bottom: 0; }

a { color: var(--plum-600); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--plum); text-decoration-thickness: 2px; }

strong, b { font-weight: 700; }

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

hr { border: 0; border-top: 1px solid var(--hair); margin: 2.5rem 0; }

/* ---------- Utility ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: 860px; }
.prose { max-width: var(--maxw-prose); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: var(--gutter); top: -100px; z-index: 200;
  background: var(--plum); color: #fff; padding: .75rem 1.1rem;
  font-family: var(--display); font-weight: 700; font-size: .85rem;
  border-radius: var(--radius); transition: top .18s var(--ease);
}
.skip:focus { top: .75rem; color: #fff; }

/* Eyebrow — a short teal rule plus letterspaced micro-caps.
   Used to label every section so the page has a readable spine. */
.eyebrow {
  display: flex; align-items: center; gap: .7rem;
  font-family: var(--display); font-weight: 700;
  font-size: .72rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--teal-dark); margin: 0 0 1.1rem;
}
.eyebrow::before {
  content: ""; width: 2rem; height: 3px; background: var(--teal); flex: none;
}
.on-dark .eyebrow { color: #6FD6D9; }
.on-dark .eyebrow::before { background: #6FD6D9; }

.lede { font-size: clamp(1.12rem, 1.4vw, 1.35rem); color: var(--ink-70); line-height: 1.55; }
.on-dark .lede { color: var(--rose-200); }

.section { padding-block: var(--sect); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section--plum { background: var(--plum); color: var(--rose-100); }
.section--deep { background: var(--plum-900); color: var(--rose-100); }
.section--rose { background: var(--rose-100); }
.section--paper { background: var(--paper); }
.on-dark, .section--plum, .section--deep { color: var(--rose-100); }
.on-dark h1, .on-dark h2, .on-dark h3, .on-dark h4,
.section--plum h1, .section--plum h2, .section--plum h3, .section--plum h4,
.section--deep h1, .section--deep h2, .section--deep h3, .section--deep h4 { color: #fff; }
.on-dark a:not(.btn):not(.card):not(.post-card):not(.doc),
.section--plum a:not(.btn):not(.card):not(.post-card):not(.doc),
.section--deep a:not(.btn):not(.card):not(.post-card):not(.doc) { color: #F4E9F3; }
.on-dark a:not(.btn):hover,
.section--plum a:not(.btn):hover,
.section--deep a:not(.btn):hover { color: #fff; }

/* ---------- Signature: the plaque ---------- */
/* A filled aubergine square holding stacked white letters — the logo's
   own construction, reused for designations, markers and the brand mark. */
.plaque {
  display: inline-block;
  background: var(--plum); color: #fff;
  font-family: var(--display); font-weight: 800;
  letter-spacing: -.03em; line-height: 1.02;
  padding: .62em .66em; border-radius: var(--radius);
  text-align: left;
}
.plaque--lg { font-size: clamp(1.5rem, 3vw, 2.1rem); min-width: 5.6em; }
.plaque--sm { font-size: .95rem; min-width: 5.6em; }
.plaque--teal { background: var(--teal-dark); }
.plaque--outline { background: transparent; color: var(--plum); box-shadow: inset 0 0 0 2px var(--plum); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--display); font-weight: 700; font-size: .92rem;
  letter-spacing: .01em; text-decoration: none;
  padding: .92rem 1.5rem; border-radius: var(--radius);
  border: 2px solid transparent; cursor: pointer;
  transition: transform .16s var(--ease), background-color .16s var(--ease),
              color .16s var(--ease), border-color .16s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn .arw { transition: transform .18s var(--ease); }
.btn:hover .arw { transform: translateX(3px); }

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

.btn--plum { background: var(--plum); color: #fff; border-color: var(--plum); }
.btn--plum:hover { background: var(--plum-600); border-color: var(--plum-600); color: #fff; }

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

.on-dark .btn--ghost, .section--plum .btn--ghost, .section--deep .btn--ghost,
.cta-band .btn--ghost, .hero .btn--ghost, .pagehead .btn--ghost,
.foot .btn--ghost, .drawer .btn--ghost {
  color: #fff; border-color: rgba(255,255,255,.55);
}
.on-dark .btn--ghost:hover, .section--plum .btn--ghost:hover, .section--deep .btn--ghost:hover,
.cta-band .btn--ghost:hover, .hero .btn--ghost:hover, .pagehead .btn--ghost:hover,
.foot .btn--ghost:hover, .drawer .btn--ghost:hover {
  background: #fff; color: #3F083C; border-color: #fff;
}

.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }

/* ---------- Header ---------- */
.topbar {
  background: var(--plum-900); color: var(--rose-200);
  font-family: var(--display); font-size: .78rem; letter-spacing: .01em;
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 40px; flex-wrap: wrap; }
.topbar a { color: var(--rose-200); text-decoration: none; }
.topbar a:hover { color: #fff; text-decoration: underline; }
.topbar__contact { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.topbar__right { display: flex; align-items: center; gap: 1rem; }

.social { display: flex; gap: .35rem; }
.social a {
  display: grid; place-items: center; width: 30px; height: 30px;
  border-radius: var(--radius); color: var(--rose-200);
  transition: background-color .16s var(--ease), color .16s var(--ease);
}
.social a:hover { background: var(--teal-dark); color: #fff; }
.social svg { width: 16px; height: 16px; fill: currentColor; }

/* Language switch — itself a small plaque */
.langswitch { display: flex; border: 1px solid rgba(255,255,255,.28); border-radius: var(--radius); overflow: hidden; }
.langswitch a {
  padding: .22rem .6rem; font-weight: 700; font-size: .74rem;
  letter-spacing: .06em; text-decoration: none; color: var(--rose-200);
}
.langswitch a[aria-current="true"] { background: var(--teal-dark); color: #fff; }
.langswitch a:not([aria-current="true"]):hover { background: rgba(255,255,255,.12); color: #fff; }

.masthead {
  background: var(--paper); border-bottom: 1px solid var(--hair);
  position: sticky; top: 0; z-index: 100;
}
.masthead .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 76px; }

.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; flex: 0 1 auto; min-width: 0; }
.brand__mark { width: auto; height: 44px; flex: none; }
.brand__text { display: none; }
@media (min-width: 480px) {
  .brand__text { display: block; font-family: var(--display); line-height: 1.05; }
  .brand__text b { display: block; font-size: 1.02rem; font-weight: 800; color: var(--plum-900); letter-spacing: -.03em; }
  .brand__text span { display: block; font-size: .66rem; letter-spacing: .11em; text-transform: uppercase; color: var(--ink-50); font-weight: 600; margin-top: .12rem; }
}

/* ---------- Navigation ---------- */
.nav { display: none; }
@media (min-width: 1080px) {
  .nav { display: flex; align-items: center; gap: .15rem; }
  .nav__item { position: relative; }
  .nav__link {
    display: flex; align-items: center; gap: .3rem;
    font-family: var(--display); font-weight: 600; font-size: .84rem;
    color: var(--plum-900); text-decoration: none;
    padding: .6rem .6rem; border-radius: var(--radius);
    background: none; border: 0; cursor: pointer; line-height: 1.2;
    white-space: nowrap;
  }
  .nav__link:hover, .nav__item:hover > .nav__link { background: var(--rose-100); color: var(--plum); }
  .nav__link[aria-current="page"] { color: var(--teal-dark); box-shadow: inset 0 -3px 0 var(--teal); }
  .nav__link .chev { width: 9px; height: 9px; fill: none; stroke: currentColor; stroke-width: 2.4; opacity: .6; }

  .nav__panel {
    position: absolute; top: calc(100% + 2px); left: 0; min-width: 268px;
    background: var(--paper); border: 1px solid var(--hair);
    border-top: 3px solid var(--teal); border-radius: var(--radius);
    box-shadow: var(--shadow-lift); padding: .5rem;
    opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: opacity .16s var(--ease), transform .16s var(--ease), visibility .16s;
  }
  .nav__item:hover .nav__panel,
  .nav__item:focus-within .nav__panel,
  .nav__link[aria-expanded="true"] + .nav__panel { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav__link[aria-expanded="true"] .chev { transform: rotate(180deg); }
  .nav__panel a {
    display: block; padding: .55rem .7rem; border-radius: var(--radius);
    font-family: var(--display); font-size: .85rem; font-weight: 500;
    color: var(--ink); text-decoration: none;
  }
  .nav__panel a:hover { background: var(--rose-100); color: var(--plum); }
  .nav__panel a[aria-current="page"] { color: var(--teal-dark); font-weight: 700; }
}

.masthead__cta { display: none; }
@media (min-width: 1080px) { .masthead__cta { display: inline-flex; white-space: nowrap; padding: .8rem 1.15rem; } }

.burger {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--display); font-weight: 700; font-size: .82rem;
  background: var(--plum); color: #fff; border: 0; cursor: pointer;
  padding: .7rem 1rem; border-radius: var(--radius);
}
@media (min-width: 1080px) { .burger { display: none; } }
.burger svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 2.2; fill: none; }

/* Mobile drawer */
.drawer {
  position: fixed; inset: 0; z-index: 150;
  background: var(--plum-900); color: var(--rose-100);
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  display: none;
}
.drawer[data-open="true"] { display: block; }
.drawer__top { display: flex; align-items: center; justify-content: space-between; min-height: 76px; }
.drawer__close {
  background: none; border: 1px solid rgba(255,255,255,.3); color: #fff;
  font-family: var(--display); font-weight: 700; font-size: .8rem;
  padding: .55rem .9rem; border-radius: var(--radius); cursor: pointer;
}
.drawer__group { border-top: 1px solid rgba(255,255,255,.14); padding: 1rem 0; }
.drawer__group > p {
  font-family: var(--display); font-weight: 700; font-size: .72rem;
  letter-spacing: .16em; text-transform: uppercase; color: #6FD6D9; margin: 0 0 .5rem;
}
.drawer a {
  display: block; font-family: var(--display); font-weight: 600;
  font-size: 1.02rem; color: #fff; text-decoration: none; padding: .5rem 0;
}
.drawer a:hover { color: #fff; text-decoration: underline; }
.drawer__foot { padding: 1.5rem 0 3rem; }

/* ---------- Hero ---------- */
/* The stacked three-line masthead is the logo's construction blown up. */
.hero {
  background: var(--plum-900); color: var(--rose-100);
  position: relative; overflow: hidden;
  border-bottom: 6px solid var(--teal);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0 1px, transparent 1px 96px);
}
.hero::after {
  content: ""; position: absolute; right: -8rem; top: -10rem;
  width: 32rem; height: 32rem;
  border: 3px solid rgba(127,224,227,.22); border-radius: 8px;
  transform: rotate(-12deg); pointer-events: none;
  box-shadow:
    -6rem  4rem 0 rgba(255,255,255,.03),
     4rem -3rem 0 rgba(127,224,227,.05);
}
.hero .wrap { position: relative; z-index: 1; }
.hero__grid { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; padding-block: clamp(3rem, 7vw, 5.5rem); }
@media (min-width: 940px) { .hero__grid { grid-template-columns: 1.08fr .92fr; } }

.stack {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(2.6rem, 8.4vw, 5.4rem);
  line-height: .92; letter-spacing: -.045em; color: #fff;
  margin: 0 0 1.3rem;
}
.stack span:not(.sr-only) { display: block; }
.stack .accent { color: #7FE0E3; }
.stack__rule { display: block; width: 4.5rem; height: 6px; background: var(--teal); margin: 1.2rem 0 1.3rem; }

.hero__figure { position: relative; }
.hero__figure img {
  border-radius: var(--radius); box-shadow: var(--shadow-lift);
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
}
.hero__badge {
  position: absolute; left: -.75rem; bottom: -1.25rem;
  background: var(--paper); border-radius: var(--radius);
  box-shadow: var(--shadow-lift); padding: .9rem 1.1rem;
  display: flex; align-items: center; gap: .8rem; max-width: 19rem;
}
.hero__badge b { font-family: var(--display); font-size: 1.5rem; color: var(--plum); display: block; line-height: 1; }
.hero__badge span { font-family: var(--display); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-50); font-weight: 600; }

/* Page banner for interior pages.
   Three offset plaques echo the logo block; a teal rule closes the band. */
.pagehead {
  background: var(--plum-900); color: var(--rose-100);
  padding-block: clamp(3.1rem, 6.5vw, 5.2rem);
  position: relative; overflow: hidden;
  border-bottom: 6px solid var(--teal);
}
.pagehead::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0 1px, transparent 1px 96px);
}
.pagehead::after {
  content: ""; position: absolute;
  right: 5%; top: 50%; width: 15rem; height: 15rem; margin-top: -7.5rem;
  border: 3px solid rgba(127,224,227,.32); border-radius: 6px;
  transform: rotate(-15deg); pointer-events: none;
  box-shadow:
    -3.4rem -1.7rem 0 rgba(255,255,255,.035),
     3.6rem  2.1rem 0 rgba(127,224,227,.06);
}
@media (max-width: 900px) { .pagehead::after { right: -7rem; opacity: .55; } }

.pagehead .wrap { position: relative; z-index: 1; }
.pagehead h1 {
  color: #fff; font-size: clamp(2.45rem, 5.8vw, 4.2rem);
  letter-spacing: -.043em; line-height: .97; margin: 0;
  max-width: 20ch;
}
.pagehead h1::after {
  content: ""; display: block; width: 4.5rem; height: 6px;
  background: var(--teal); margin: 1.3rem 0;
}
.pagehead .lede { color: var(--rose-200); max-width: 58ch; margin: 0; }

/* Breadcrumbs sit in a small plaque of their own */
.crumbs {
  display: inline-flex; align-items: center; flex-wrap: wrap;
  font-family: var(--display); font-weight: 700;
  font-size: .7rem; letter-spacing: .15em; text-transform: uppercase;
  color: var(--rose-200);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius);
  padding: .42rem .8rem; margin: 0 0 1.5rem;
}
.crumbs a { color: var(--rose-200); text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.crumbs span { opacity: .5; padding-inline: .45rem; }

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: clamp(1.1rem, 2.2vw, 1.8rem); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }

.card {
  background: var(--paper); border: 1px solid var(--hair);
  border-radius: var(--radius); padding: clamp(1.4rem, 2.4vw, 2rem);
  display: flex; flex-direction: column; gap: .7rem; color: var(--ink);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.card h3, .card h4 { margin-bottom: 0; color: var(--plum-900); }
.card p { color: var(--ink-70); }
.card--link:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: var(--rose-200); }
.card__more {
  margin-top: auto; padding-top: .5rem;
  font-family: var(--display); font-weight: 700; font-size: .84rem;
  color: var(--plum-600); text-decoration: none;
  display: inline-flex; align-items: center; gap: .4rem;
}
.card--link:hover .card__more { color: var(--plum); }
.card--flat { background: transparent; border: 0; padding: 0; color: inherit; }
.on-dark .card--flat h3, .on-dark .card--flat h4,
.section--plum .card--flat h3, .section--plum .card--flat h4,
.section--deep .card--flat h3, .section--deep .card--flat h4 { color: #fff; }
.card--rule { border: 0; border-top: 3px solid var(--plum); border-radius: 0; background: transparent; padding-inline: 0; }

/* White components need a tint when they sit on a white section */
.section--paper .card:not(.card--flat):not(.card--rule),
.section--paper .doc,
.section--paper .logos a,
.section--paper .logos div,
.section--paper .steps li,
.section--paper .post-card,
.section--paper .person { background: var(--bone); }

/* Designation cards carry the plaque motif */
.desig { display: flex; flex-direction: column; gap: 1rem; }
.desig .plaque { margin-bottom: .2rem; }

/* Value cards on the home page */
.value { position: relative; padding-top: 1.6rem; }
.value::before { content: ""; position: absolute; top: 0; left: 0; width: 2.4rem; height: 4px; background: var(--teal); }

/* Numbered steps — a real sequence, so numbering carries meaning */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; gap: 1rem; }
.steps li {
  counter-increment: s; position: relative;
  padding: 1.15rem 1.3rem 1.15rem 4.2rem;
  background: var(--paper); border: 1px solid var(--hair); border-radius: var(--radius);
}
.steps li::before {
  content: counter(s, decimal-leading-zero);
  position: absolute; left: 1.2rem; top: 1.05rem;
  font-family: var(--display); font-weight: 800; font-size: 1.15rem;
  color: var(--teal-dark); letter-spacing: -.02em;
}
.on-dark .steps li, .section--plum .steps li, .section--deep .steps li {
  background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.16); color: var(--rose-100);
}
.on-dark .steps li::before, .section--plum .steps li::before, .section--deep .steps li::before { color: #7FE0E3; }

/* Ticked lists */
.ticks { list-style: none; margin: 0 0 1.1em; padding: 0; display: grid; gap: .65rem; }
.ticks li { position: relative; padding-left: 1.9rem; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: .72rem; height: .42rem; border-left: 2.5px solid var(--teal);
  border-bottom: 2.5px solid var(--teal); transform: rotate(-45deg);
}
.on-dark .ticks li::before { border-color: #7FE0E3; }

/* Plain content lists */
.prose ul, .prose ol { padding-left: 1.25rem; margin: 0 0 1.1em; }
.prose li { margin-bottom: .5rem; }
.prose h2 { margin-top: 2.2rem; }
.prose h3 { margin-top: 1.8rem; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }

/* ---------- Split media block ---------- */
.split { display: grid; gap: clamp(1.6rem, 4vw, 3.4rem); align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--flip .split__media { order: 2; }
}
.split__media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; object-fit: cover; }

/* ---------- Document / download tiles ---------- */
.docs { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.doc {
  display: flex; align-items: flex-start; gap: .9rem;
  background: var(--paper); border: 1px solid var(--hair); border-radius: var(--radius);
  padding: 1rem 1.15rem; text-decoration: none; color: var(--ink);
  transition: border-color .16s var(--ease), transform .16s var(--ease), box-shadow .16s var(--ease);
}
.doc:hover { border-color: var(--teal); transform: translateY(-2px); box-shadow: var(--shadow); color: var(--ink); }
.doc__ico { flex: none; width: 34px; height: 34px; display: grid; place-items: center; background: var(--plum); color: #fff; border-radius: var(--radius); font-family: var(--display); font-weight: 800; font-size: .6rem; letter-spacing: .02em; }
.doc__ico--link { background: var(--teal-dark); }
.doc b { display: block; font-family: var(--display); font-size: .95rem; font-weight: 700; letter-spacing: -.01em; line-height: 1.25; }
.doc span { display: block; font-size: .88rem; color: var(--ink-50); line-height: 1.4; margin-top: .2rem; }

/* ---------- Accordion ---------- */
.acc { border-top: 1px solid var(--hair); }
.acc details { border-bottom: 1px solid var(--hair); }
.acc summary {
  cursor: pointer; list-style: none; padding: 1.15rem 2.6rem 1.15rem 0;
  font-family: var(--display); font-weight: 700; font-size: 1rem;
  color: var(--plum-900); position: relative;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after {
  content: ""; position: absolute; right: .55rem; top: 1.5rem;
  width: 11px; height: 11px; border-right: 2.4px solid var(--teal-dark);
  border-bottom: 2.4px solid var(--teal-dark); transform: rotate(45deg);
  transition: transform .2s var(--ease);
}
.acc details[open] summary::after { transform: rotate(-135deg); top: 1.75rem; }
.acc summary:hover { color: var(--teal-dark); }
.acc__body { padding: 0 0 1.4rem; color: var(--ink-70); max-width: var(--maxw-prose); }

/* ---------- Team ---------- */
.person { background: var(--paper); border: 1px solid var(--hair); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.person img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: top center; background: var(--rose-100); }
.person__body { padding: 1.25rem 1.35rem 1.5rem; }
.person__body h3 { margin-bottom: .1rem; }
.person__role { font-family: var(--display); font-size: .76rem; letter-spacing: .11em; text-transform: uppercase; color: var(--teal-dark); font-weight: 700; margin-bottom: .8rem; }
.person__bio { font-size: .97rem; color: var(--ink-70); }

/* ---------- Logo walls ---------- */
.logos { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); align-items: center; }
.logos a, .logos div {
  display: grid; place-items: center; background: var(--paper);
  border: 1px solid var(--hair); border-radius: var(--radius);
  padding: 1.1rem; min-height: 96px;
  transition: border-color .16s var(--ease), transform .16s var(--ease);
}
.logos a:hover { border-color: var(--teal); transform: translateY(-2px); }
.logos img { max-height: 58px; width: auto; object-fit: contain; background: none; }

/* ---------- Stats ---------- */
.stats { display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); }
.stat { border-top: 3px solid var(--teal); padding-top: .9rem; }
.stat b { display: block; font-family: var(--display); font-weight: 800; font-size: clamp(2rem, 4vw, 2.9rem); letter-spacing: -.04em; line-height: 1; color: #fff; }
.stat span { display: block; font-family: var(--display); font-size: .76rem; letter-spacing: .11em; text-transform: uppercase; margin-top: .5rem; color: var(--rose-200); font-weight: 600; }
.section--paper .stat b, .section--rose .stat b { color: var(--plum); }
.section--paper .stat span, .section--rose .stat span { color: var(--ink-50); }

/* ---------- Gallery ---------- */
.gallery { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); }
.gallery img { border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }

/* ---------- News ---------- */
.post-card {
  background: var(--paper); border: 1px solid var(--hair); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: inherit;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: var(--rose-200); color: inherit; }
.post-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.post-card__body { padding: 1.25rem 1.35rem 1.5rem; display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.post-card__date { font-family: var(--display); font-size: .73rem; letter-spacing: .11em; text-transform: uppercase; color: var(--teal-dark); font-weight: 700; }
.post-card h3 { font-size: 1.16rem; margin: 0; }
.post-card p { font-size: .95rem; color: var(--ink-70); margin: 0; }

.article-meta { display: flex; flex-wrap: wrap; gap: 1.2rem; font-family: var(--display); font-size: .8rem; letter-spacing: .05em; color: var(--rose-200); margin-top: 1rem; }
.article__hero { margin-bottom: 2.5rem; }
.article__hero img { border-radius: var(--radius); width: 100%; aspect-ratio: 16 / 9; object-fit: cover; box-shadow: var(--shadow); }
.article__body { max-width: var(--maxw-prose); font-size: 1.1rem; }
.article__body p:first-of-type { font-size: 1.2rem; color: var(--ink-70); }
.article__body h2, .article__body h3 { margin-top: 2.4rem; }

.pager { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid var(--hair); }
.pager a { font-family: var(--display); font-weight: 700; font-size: .88rem; text-decoration: none; max-width: 26rem; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 1.1rem; }
.field { display: grid; gap: .38rem; }
.field label { font-family: var(--display); font-weight: 700; font-size: .82rem; letter-spacing: .04em; text-transform: uppercase; color: var(--plum-900); }
.field input, .field select, .field textarea {
  font-family: var(--body); font-size: 1rem; color: var(--ink);
  padding: .8rem .9rem; border: 1px solid var(--rose-200); border-radius: var(--radius);
  background: var(--paper); width: 100%;
  transition: border-color .16s var(--ease), box-shadow .16s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-tint);
}
.field textarea { min-height: 150px; resize: vertical; }
.field--half { display: grid; gap: 1.1rem; grid-template-columns: 1fr; }
@media (min-width: 620px) { .field--half { grid-template-columns: 1fr 1fr; } }
.form__note { font-size: .88rem; color: var(--ink-50); }
.hp { position: absolute; left: -9999px; }

.contact-list { display: grid; gap: 1.2rem; list-style: none; margin: 0; padding: 0; }
.contact-list li { display: flex; gap: .9rem; align-items: flex-start; }
.contact-list .doc__ico { font-size: .95rem; }
.contact-list b { display: block; font-family: var(--display); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-50); margin-bottom: .15rem; }
.contact-list a { font-weight: 600; text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }

.map { border: 0; width: 100%; height: 380px; border-radius: var(--radius); filter: grayscale(.25); }

/* Callout */
.callout {
  background: var(--teal-tint); border-left: 4px solid var(--teal);
  padding: 1.2rem 1.4rem; border-radius: var(--radius);
  font-size: 1rem;
}
.callout--plum { background: var(--rose-100); border-left-color: var(--plum); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--plum-900); color: #fff; }
.cta-band .wrap { display: grid; gap: 1.6rem; align-items: center; padding-block: clamp(2.6rem, 5vw, 4rem); }
@media (min-width: 860px) { .cta-band .wrap { grid-template-columns: 1fr auto; } }
.cta-band h2 { color: #fff; margin: 0; max-width: 22ch; }
.cta-band p { color: var(--rose-200); margin: .6rem 0 0; max-width: 52ch; }

/* ---------- Footer ---------- */
.foot { background: var(--plum); color: var(--rose-200); padding-block: clamp(2.8rem, 5vw, 4rem) 0; }
.foot__grid { display: grid; gap: 2.2rem; }
@media (min-width: 760px) { .foot__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.foot h4 { color: #fff; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1rem; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.foot a { color: var(--rose-200); text-decoration: none; font-size: .95rem; }
.foot a:hover { color: #fff; text-decoration: underline; }
.foot a { color: var(--rose-100); }
.foot__brand p { font-size: .95rem; max-width: 34ch; margin-top: 1rem; }
.foot__mark { width: auto; height: 72px; display: block; }
.foot__bar {
  margin-top: 2.8rem; border-top: 1px solid rgba(255,255,255,.16);
  padding-block: 1.4rem; display: flex; flex-wrap: wrap; gap: 1rem;
  justify-content: space-between; font-size: .84rem;
}
.foot .social a { color: var(--rose-200); }
.foot .social a:hover { background: var(--teal-dark); color: #fff; }

/* ---------- Motion ----------
   The reveal effect is opt-in via the .js class that the inline head script
   adds. Without JavaScript, or if the script fails, every element renders at
   full opacity: content must never depend on a script to be readable. */
.js [data-reveal] { opacity: 0; transform: translateY(18px); }
.js [data-reveal].is-in { opacity: 1; transform: none; transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .stack span:not(.sr-only) { opacity: 0; transform: translateY(14px); animation: rise .7s var(--ease) forwards; }
.js .stack .d1 { animation-delay: .05s; }
.js .stack .d2 { animation-delay: .16s; }
.js .stack .d3 { animation-delay: .27s; }
@keyframes rise { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
  .stack span:not(.sr-only) { opacity: 1; transform: none; animation: none; }
  .btn:hover, .card--link:hover, .post-card:hover { transform: none; }
}

/* ---------- Print ---------- */
@media print {
  .topbar, .masthead, .drawer, .cta-band, .foot, .burger { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  .pagehead, .hero { background: #fff !important; color: #000 !important; }
  .pagehead h1, .hero h1, .stack { color: #000 !important; }
  a { text-decoration: underline; color: #000; }
}

/* ---------------------------------------------------------------------------
   By-law section index (French page)
   --------------------------------------------------------------------------- */
.bylaw-list {
  list-style: none;
  counter-reset: bylaw;
  padding: 0;
  margin: 1.6rem 0 0;
  display: grid;
  gap: .1rem;
}
.bylaw-list li {
  counter-increment: bylaw;
  display: grid;
  grid-template-columns: 2.6rem 1fr;
  gap: .8rem;
  align-items: baseline;
  padding: .72rem .9rem;
  border-bottom: 1px solid var(--line);
  font-size: .98rem;
}
.bylaw-list li:first-child { border-top: 1px solid var(--line); }
.bylaw-list li::before {
  content: counter(bylaw, decimal-leading-zero);
  font-family: var(--display);
  font-weight: 800;
  font-size: .82rem;
  letter-spacing: -.02em;
  color: var(--teal-dark);
}

/* ---------------------------------------------------------------------------
   Depth pass — texture on dark bands, motion on cards
   --------------------------------------------------------------------------- */

/* The same hairline grid that runs through the hero and page banners, so the
   dark sections read as one continuous surface rather than flat blocks. */
.section--plum, .section--deep, .cta-band { position: relative; overflow: hidden; }
.section--plum::before, .section--deep::before, .cta-band::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0 1px, transparent 1px 96px);
}
.section--plum > .wrap, .section--deep > .wrap, .cta-band > .wrap { position: relative; z-index: 1; }

/* A single plaque bleeding off the CTA band, matching the hero */
.cta-band::after {
  content: ""; position: absolute; right: -5rem; bottom: -7rem;
  width: 17rem; height: 17rem;
  border: 3px solid rgba(127,224,227,.16); border-radius: 6px;
  transform: rotate(-14deg); pointer-events: none;
}

/* Cards draw a teal rule across the top on hover */
.card { position: relative; overflow: hidden; }
.card::before {
  content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 0;
  background: var(--teal); transition: width .3s var(--ease);
}
.card:hover::before, .card:focus-visible::before { width: 100%; }
.card--flat::before, .value::before { display: none; }
.value { position: relative; }
.value::after {
  content: ""; position: absolute; top: 0; left: 0;
  width: 2.4rem; height: 4px; background: var(--teal);
}

/* Section headings get the plaque tick, matching the eyebrow rule */
.section > .wrap > h2:first-child,
.section > .wrap > .section__head h2 { position: relative; }

/* Stats read as a row of plaques rather than plain numbers */
.stat { border-top-width: 4px; }
.stat b { letter-spacing: -.05em; }

@media (prefers-reduced-motion: reduce) {
  .card::before { transition: none; }
}

/* ===========================================================================
   CONTRAST: dark contexts

   Dark surfaces re-point ONLY the ink and hairline tokens, so nested text
   inherits the right colour automatically. Brand tokens (--plum, --teal-dark)
   are deliberately left alone: those same tokens are consumed as BACKGROUNDS
   by the very elements listed here, so redefining them would repaint the hero,
   footer and primary buttons. Anything that needs a colour change on dark is
   handled by an explicit rule below instead.
   =========================================================================== */
.on-dark,
.hero,
.pagehead,
.section--plum,
.section--deep,
.cta-band,
.foot,
.drawer {
  --ink:    #FFFFFF;
  --ink-70: #E3CFE1;
  --ink-50: #C9B2C7;
  --hair:   rgba(255, 255, 255, .18);
}

/* Light islands sitting on a dark surface put the ink tokens back. */
.on-dark .card:not(.card--flat),
.hero .card:not(.card--flat),
.section--plum .card:not(.card--flat),
.section--deep .card:not(.card--flat),
.cta-band .card:not(.card--flat),
.on-dark .doc, .section--plum .doc, .section--deep .doc,
.on-dark .person, .section--plum .person, .section--deep .person,
.on-dark .post-card, .section--plum .post-card, .section--deep .post-card,
.on-dark .callout, .section--plum .callout, .section--deep .callout,
.on-dark .logos a, .on-dark .logos div,
.section--plum .logos a, .section--plum .logos div,
.section--deep .logos a, .section--deep .logos div,
.on-dark .field input, .on-dark .field select, .on-dark .field textarea,
.section--plum .field input, .section--plum .field select, .section--plum .field textarea,
.hero__badge {
  --ink:    #1C0A1B;
  --ink-70: #4C3A4B;
  --ink-50: #726071;
  --hair:   #E7DCE6;
  color: var(--ink);
}

/* Headings on dark surfaces not already covered elsewhere */
.hero h1, .hero h2, .hero h3, .hero h4,
.pagehead h2, .pagehead h3, .pagehead h4,
.cta-band h1, .cta-band h2, .cta-band h3,
.foot h2, .foot h3,
.drawer h2, .drawer h3, .drawer h4 { color: #fff; }

/* Body copy sitting directly on a dark surface */
.on-dark .lede, .hero .lede, .pagehead .lede,
.section--plum .lede, .section--deep .lede, .cta-band .lede { color: var(--rose-200); }

/* Inline links on dark */
.hero > .wrap a:not(.btn):not(.card):not(.post-card):not(.doc),
.cta-band a:not(.btn),
.pagehead a:not(.btn) { color: #7FE0E3; }

/* Teal-on-dark: the dark teal disappears against plum, so lift it */
.hero .eyebrow, .pagehead .eyebrow, .cta-band .eyebrow,
.section--plum .eyebrow, .section--deep .eyebrow, .foot .eyebrow { color: #6FD6D9; }
.hero .eyebrow::before, .pagehead .eyebrow::before, .cta-band .eyebrow::before,
.section--plum .eyebrow::before, .section--deep .eyebrow::before,
.foot .eyebrow::before { background: #6FD6D9; }

.section--plum .acc, .section--deep .acc, .on-dark .acc,
.section--plum .acc details, .section--deep .acc details, .on-dark .acc details { border-color: rgba(255,255,255,.18); }
.section--plum .acc summary, .section--deep .acc summary, .on-dark .acc summary { color: #fff; }
.section--plum .acc summary::after, .section--deep .acc summary::after,
.on-dark .acc summary::after { border-color: #7FE0E3; }
.section--plum .acc summary:hover, .section--deep .acc summary:hover { color: #7FE0E3; }
.section--plum .acc__body, .section--deep .acc__body, .on-dark .acc__body { color: var(--rose-100); }

.section--plum .field label, .section--deep .field label, .on-dark .field label { color: #fff; }
.section--plum .bylaw-list li::before, .section--deep .bylaw-list li::before { color: #7FE0E3; }
.section--plum .bylaw-list li, .section--deep .bylaw-list li { border-color: rgba(255,255,255,.18); }

/* ===========================================================================
   Link hygiene — block links must never underline their whole contents
   =========================================================================== */
.card--link, .card--link:hover, .card--link:focus,
.post-card, .post-card:hover, .doc, .doc:hover,
.logos a, .logos a:hover { text-decoration: none; }
.card--link h3, .card--link h4, .card--link p, .card--link span,
.post-card h3, .post-card p, .doc b, .doc span { text-decoration: none; }
.card--link:hover h3, .post-card:hover h3 { color: var(--teal-dark); }
.card--link:focus-visible, .post-card:focus-visible, .doc:focus-visible { outline-offset: 4px; }

/* Only genuine inline prose links underline */
.article__body a, .prose a, .acc__body a, .callout a { text-decoration: underline; }

/* ===========================================================================
   Designation tag — replaces the oversized stacked plaque
   =========================================================================== */
.tag {
  display: inline-flex; align-items: center; align-self: flex-start;
  font-family: var(--display); font-weight: 800;
  font-size: .82rem; letter-spacing: .15em; text-transform: uppercase;
  color: #fff; background: #230421;
  padding: .48rem .85rem .48rem .75rem;
  border-radius: var(--radius);
  border-left: 4px solid var(--teal);
  white-space: nowrap;
}
.tag--sm { font-size: .72rem; letter-spacing: .13em; padding: .38rem .7rem .38rem .6rem; }
.tag--teal { background: #096F74; border-left-color: #7FE0E3; color: #fff; }
.on-dark .tag, .section--plum .tag, .section--deep .tag {
  background: rgba(255,255,255,.1); color: #fff;
}
.card .tag, .card--link .tag { background: #230421; color: #fff; }
.desig { gap: .85rem; }
.desig h3 { font-size: 1.2rem; }

/* Small single-line plaques stay centred rather than left-aligned in a wide box */
.plaque--sm { min-width: 0; text-align: center; }

/* ===========================================================================
   Motion & extra furniture
   Everything below degrades to a static, fully usable state without JS,
   and switches itself off under prefers-reduced-motion.
   =========================================================================== */

/* --- Scrolling logo marquee --- */
.logos--marquee {
  display: flex; gap: 1rem; grid-template-columns: none;
  overflow: hidden; position: relative;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.logos--marquee > * { flex: 0 0 auto; width: 168px; }
.logos--marquee.is-running { animation: marquee 46s linear infinite; }
.logos--marquee.is-running:hover, .logos--marquee.is-running:focus-within { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* --- Hero plaques drift slowly --- */
.hero::after { animation: drift 26s ease-in-out infinite alternate; }
@keyframes drift {
  from { transform: rotate(-12deg) translate3d(0, 0, 0); }
  to   { transform: rotate(-9deg) translate3d(-1.4rem, 1.6rem, 0); }
}

/* --- Animated nav underline --- */
@media (min-width: 1080px) {
  .nav__link { position: relative; }
  .nav__link::after {
    content: ""; position: absolute; left: .6rem; right: .6rem; bottom: .3rem;
    height: 2px; background: var(--teal); transform: scaleX(0); transform-origin: left;
    transition: transform .22s var(--ease);
  }
  .nav__link:hover::after, .nav__item:focus-within > .nav__link::after { transform: scaleX(1); }
  .nav__link[aria-current="page"]::after { display: none; }
}

/* --- Reading progress bar (article pages) --- */
.progress {
  position: fixed; left: 0; top: 0; height: 3px; width: 100%;
  background: transparent; z-index: 130; pointer-events: none;
}
.progress__bar { height: 100%; width: 0; background: var(--teal); transition: width .08s linear; }

/* --- Back to top --- */
.totop {
  position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 120;
  width: 46px; height: 46px; display: grid; place-items: center;
  background: var(--plum-900); color: #fff; border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius); cursor: pointer;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s, background-color .16s var(--ease);
}
.totop[data-show="true"] { opacity: 1; visibility: visible; transform: none; }
.totop:hover { background: var(--teal-dark); }
.totop svg { width: 17px; height: 17px; stroke: currentColor; stroke-width: 2.4; fill: none; }

/* --- Counters hold their box while animating --- */
.stat b { font-variant-numeric: tabular-nums; }

/* --- Card hover lifts the tag slightly --- */
.card--link .tag { transition: transform .22s var(--ease); }
.card--link:hover .tag { transform: translateX(4px); }

@media (prefers-reduced-motion: reduce) {
  .logos--marquee { animation: none !important; overflow-x: auto; flex-wrap: wrap; justify-content: center;
    mask-image: none; -webkit-mask-image: none; }
  .hero::after { animation: none; }
  .nav__link::after { transition: none; }
  .progress__bar, .totop, .card--link .tag { transition: none; }
}

/* ---------------------------------------------------------------------------
   Specificity corrections
   Each of these components was losing to a container rule that happened to be
   more specific, leaving the label the same colour as its own fill.
   --------------------------------------------------------------------------- */

/* .doc span sets a muted colour; the icon chip inside needs to beat it */
.doc .doc__ico, .contact-list .doc__ico, .doc__ico { color: #fff; }
.doc .doc__ico--link, .contact-list .doc__ico--link { color: #fff; }

/* .hero__badge span sets a muted colour; the tag inside needs to beat it */
.hero__badge .tag, .hero__badge .tag--teal { color: #fff; }

/* Button labels always win over any surrounding link colour */
.btn.btn--primary, a.btn--primary { color: #fff; }
.btn.btn--plum, a.btn--plum { color: #fff; }
.btn.btn--primary:hover, .btn.btn--plum:hover { color: #fff; }

/* ---------------------------------------------------------------------------
   Gallery lightbox
   Thumbnails are buttons, so keyboard users reach them in the normal tab
   order. The overlay traps focus and closes on Escape or backdrop click.
   --------------------------------------------------------------------------- */
.gallery__item {
  padding: 0; border: 0; background: none; cursor: zoom-in;
  border-radius: var(--radius); overflow: hidden; position: relative;
  display: block; width: 100%;
}
.gallery__item img {
  border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; width: 100%;
  transition: transform .45s var(--ease), filter .3s var(--ease);
}
.gallery__item::after {
  content: ""; position: absolute; inset: 0; border-radius: var(--radius);
  box-shadow: inset 0 0 0 0 var(--teal); transition: box-shadow .22s var(--ease);
}
.gallery__item:hover img, .gallery__item:focus-visible img { transform: scale(1.05); }
.gallery__item:hover::after, .gallery__item:focus-visible::after { box-shadow: inset 0 0 0 3px var(--teal); }

.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(15, 3, 12, .93);
  display: none; align-items: center; justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
}
.lightbox[data-open="true"] { display: flex; }
.lightbox img {
  max-width: min(1200px, 94vw); max-height: 84vh; width: auto;
  border-radius: var(--radius); box-shadow: 0 30px 90px -20px rgba(0,0,0,.7);
  background: var(--plum-900);
}
.lightbox__cap {
  position: absolute; left: 0; right: 0; bottom: clamp(.8rem, 3vw, 1.8rem);
  text-align: center; color: var(--rose-100);
  font-family: var(--display); font-size: .86rem; letter-spacing: .04em;
  padding-inline: 4rem;
}
.lightbox__btn {
  position: absolute; background: rgba(255,255,255,.1); color: #fff;
  border: 1px solid rgba(255,255,255,.28); border-radius: var(--radius);
  width: 46px; height: 46px; display: grid; place-items: center; cursor: pointer;
  transition: background-color .16s var(--ease), transform .16s var(--ease);
}
.lightbox__btn:hover { background: var(--teal-dark); transform: scale(1.06); }
.lightbox__btn svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2.4; fill: none; }
.lightbox__close { top: clamp(.8rem, 3vw, 1.6rem); right: clamp(.8rem, 3vw, 1.6rem); }
.lightbox__prev { left: clamp(.5rem, 2vw, 1.6rem); top: 50%; margin-top: -23px; }
.lightbox__next { right: clamp(.5rem, 2vw, 1.6rem); top: 50%; margin-top: -23px; }
@media (max-width: 560px) {
  .lightbox__prev { left: .5rem; } .lightbox__next { right: .5rem; }
  .lightbox__cap { padding-inline: 1rem; font-size: .78rem; }
}

/* ---------------------------------------------------------------------------
   Event facts strip (TDE)
   --------------------------------------------------------------------------- */
.facts { display: grid; gap: 1px; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.16); border-radius: var(--radius); overflow: hidden; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); }
.facts div { background: var(--plum-900); padding: 1.3rem 1.4rem; }
.facts dt { font-family: var(--display); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: #6FD6D9; font-weight: 700; margin: 0 0 .45rem; }
.facts dd { margin: 0; font-family: var(--display); font-weight: 800; font-size: 1.12rem; letter-spacing: -.02em; color: #fff; line-height: 1.2; }
.facts dd span { display: block; font-weight: 500; font-size: .86rem; letter-spacing: 0; color: var(--rose-200); margin-top: .3rem; }

/* Countdown */
.countdown { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.countdown div { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16); border-radius: var(--radius); padding: .9rem 1.15rem; min-width: 5.4rem; text-align: center; }
.countdown b { display: block; font-family: var(--display); font-weight: 800; font-size: 1.9rem; letter-spacing: -.04em; color: #fff; line-height: 1; font-variant-numeric: tabular-nums; }
.countdown span { display: block; font-family: var(--display); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--rose-200); margin-top: .45rem; font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  .gallery__item img { transition: none; }
  .gallery__item:hover img { transform: none; }
  .lightbox__btn { transition: none; }
}
