/* ==========================================================================
   Tamil Arts UK - design system
   Institution voice: warm paper, deep ink, kumkum red, brass, peacock teal.
   Motif: kolam dot-grid and single-stroke line art.
   ========================================================================== */

:root {
  /* Surface */
  --paper:        #FBF8F3;
  --paper-warm:   #F4EEE4;
  --card:         #FFFFFF;
  --card-sunk:    #FAF6F0;

  /* Ink */
  --ink:          #1A1614;
  --ink-soft:     #4A423C;
  --ink-mute:     #7C7168;
  --ink-faint:    #A79C92;

  /* Accent */
  --red:          #9E2B25;
  --red-deep:     #7A1F1A;
  --red-wash:     #F6EAE8;
  --brass:        #C08A2E;
  --brass-soft:   #E2C689;
  --teal:         #1F5E63;
  --teal-wash:    #E8F0EF;

  /* Line */
  --line:         rgba(26, 22, 20, 0.10);
  --line-strong:  rgba(26, 22, 20, 0.18);
  --line-brass:   rgba(192, 138, 46, 0.34);

  /* Space scale */
  --s1: 4px;  --s2: 8px;  --s3: 12px; --s4: 16px;
  --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px;
  --s9: 96px; --s10: 128px;

  /* Radius */
  --r-sm: 8px; --r-md: 14px; --r-lg: 20px; --r-xl: 28px; --r-pill: 999px;

  /* Elevation: warm-tinted, layered, never flat grey */
  --lift-1: 0 1px 2px rgba(26,22,20,0.04), 0 6px 16px -10px rgba(122,31,26,0.18);
  --lift-2: 0 1px 3px rgba(26,22,20,0.05), 0 18px 36px -20px rgba(122,31,26,0.24),
            0 30px 70px -50px rgba(31,94,99,0.30);
  --lift-3: 0 2px 6px rgba(26,22,20,0.06), 0 30px 60px -28px rgba(122,31,26,0.30),
            0 50px 110px -60px rgba(31,94,99,0.36);

  /* Motion */
  --ease: cubic-bezier(0.22, 0.9, 0.28, 1);
  --dur: 260ms;

  --wrap: 1180px;
}

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

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.72;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; }

/* Author display rules beat the UA stylesheet, so [hidden] must be forced or
   anything given an explicit display (.gal__item, dialogs) ignores being hidden. */
[hidden] { display: none !important; }

::selection { background: var(--brass-soft); color: var(--ink); }

@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;
  }
}

/* ---------------------------------------------------------- typography -- */

.display {
  font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
  font-optical-sizing: auto;
  font-weight: 600;
  letter-spacing: -0.028em;
  line-height: 1.06;
}

h1.display { font-size: clamp(2.6rem, 6.2vw, 4.4rem); }
h2.display { font-size: clamp(2rem, 4.2vw, 3rem); line-height: 1.1; }
h3.display { font-size: clamp(1.3rem, 2.1vw, 1.6rem); line-height: 1.2; letter-spacing: -0.02em; }

.eyebrow {
  display: inline-flex; align-items: center; gap: var(--s2);
  font-size: 0.74rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--red);
}
.eyebrow::before {
  content: ''; width: 26px; height: 1px; background: var(--line-brass);
}
.eyebrow--center::before { display: none; }

.lede { font-size: clamp(1.06rem, 1.6vw, 1.22rem); color: var(--ink-soft); line-height: 1.68; }
.muted { color: var(--ink-mute); }
.tiny { font-size: 0.82rem; line-height: 1.6; }

/* ------------------------------------------------------------- layout -- */

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }

.section { padding-block: clamp(var(--s8), 9vw, var(--s10)); position: relative; }
.section--tight { padding-block: clamp(var(--s7), 6vw, var(--s8)); }
.section--warm { background: var(--paper-warm); }
.section--ink { background: var(--ink); color: var(--paper); }

.section-head { max-width: 62ch; margin-bottom: var(--s7); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head h2 { margin-block: var(--s3) var(--s4); }

.grid { display: grid; gap: var(--s5); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }

.stack   { display: flex; flex-direction: column; gap: var(--s4); }
.row     { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; }
.row--gap5 { gap: var(--s5); }

/* Brass hairline: the shared signature across both sites */
.rule {
  height: 1px; border: 0;
  background: linear-gradient(90deg, transparent, var(--line-brass) 18%, var(--line-brass) 82%, transparent);
}

/* -------------------------------------------------------------- motif -- */

/* Kolam: dot grid with a faint woven stroke. Pure CSS so it scales free. */
.kolam {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    radial-gradient(circle at center, rgba(158,43,37,0.20) 1.6px, transparent 1.7px),
    radial-gradient(circle at center, rgba(31,94,99,0.13) 1.2px, transparent 1.3px);
  background-size: 46px 46px, 46px 46px;
  background-position: 0 0, 23px 23px;
  mask-image: radial-gradient(ellipse 80% 65% at 50% 40%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 80% 65% at 50% 40%, #000 20%, transparent 78%);
  opacity: 0.9;
}

.glow {
  position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 0;
}
.glow::before, .glow::after {
  content: ''; position: absolute; border-radius: var(--r-pill); filter: blur(90px);
}
.glow::before {
  width: 560px; height: 560px; left: -180px; top: -220px;
  background: radial-gradient(circle at 35% 35%, rgba(192,138,46,0.30), transparent 62%);
}
.glow::after {
  width: 620px; height: 620px; right: -200px; top: -120px;
  background: radial-gradient(circle at 62% 45%, rgba(31,94,99,0.20), transparent 64%);
}

.grain {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  opacity: 0.055; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.above { position: relative; z-index: 1; }

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

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  padding: 0.86rem 1.5rem; border-radius: var(--r-pill);
  font-size: 0.95rem; font-weight: 600; letter-spacing: -0.01em;
  text-decoration: none; white-space: nowrap;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
              background-color var(--dur) var(--ease), border-color var(--dur) var(--ease),
              color var(--dur) var(--ease);
}
.btn:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.btn:active { transform: translateY(0) scale(0.99); }

.btn--primary {
  background: var(--red); color: #FFF8F3;
  box-shadow: 0 1px 0 rgba(255,255,255,0.16) inset, 0 12px 26px -12px rgba(122,31,26,0.62);
}
.btn--primary:hover {
  background: var(--red-deep); transform: translateY(-2px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.18) inset, 0 20px 38px -14px rgba(122,31,26,0.68);
}

.btn--ghost {
  border: 1px solid var(--line-strong); color: var(--ink); background: rgba(255,255,255,0.6);
}
.btn--ghost:hover { border-color: var(--red); color: var(--red); transform: translateY(-2px); background: #fff; }

.btn--light {
  background: var(--paper); color: var(--ink);
  box-shadow: 0 12px 26px -14px rgba(0,0,0,0.55);
}
.btn--light:hover { transform: translateY(-2px); background: #fff; }

.btn--onink {
  border: 1px solid rgba(251,248,243,0.28); color: var(--paper);
}
.btn--onink:hover { border-color: var(--brass-soft); color: var(--brass-soft); transform: translateY(-2px); }
.btn--onink:focus-visible { outline-color: var(--brass-soft); }

.btn--sm { padding: 0.62rem 1.1rem; font-size: 0.875rem; }

/* Text link with a brass underline that grows on hover */
.tlink {
  display: inline-flex; align-items: center; gap: var(--s2);
  font-weight: 600; font-size: 0.95rem; color: var(--red);
  text-decoration: none; position: relative; padding-bottom: 2px;
}
.tlink::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: var(--line-brass);
  transform: scaleX(0.34); transform-origin: left;
  transition: transform var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.tlink:hover::after { transform: scaleX(1); background: var(--red); }
.tlink:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 2px; }
.tlink .arw { transition: transform var(--dur) var(--ease); }
.tlink:hover .arw { transform: translateX(3px); }

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

.nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(251,248,243,0.82);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.nav[data-stuck='true'] { border-bottom-color: var(--line); box-shadow: 0 10px 30px -26px rgba(26,22,20,0.6); }

.nav__in { display: flex; align-items: center; justify-content: space-between; gap: var(--s5); padding-block: var(--s4); }

.brand { display: inline-flex; align-items: center; gap: var(--s3); text-decoration: none; }
.brand__mark { width: 38px; height: 38px; flex: none; }
.brand__txt { display: flex; flex-direction: column; line-height: 1.12; }
.brand__name { font-family: 'Fraunces', serif; font-weight: 600; font-size: 1.06rem; letter-spacing: -0.02em; }
.brand__sub { font-size: 0.66rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--ink-mute); }

.nav__links { display: flex; align-items: center; gap: var(--s5); }
.nav__links a {
  font-size: 0.93rem; font-weight: 500; text-decoration: none; color: var(--ink-soft);
  position: relative; padding-block: 4px;
  transition: color var(--dur) var(--ease);
}
.nav__links a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px;
  background: var(--red); transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { transform: scaleX(1); }
.nav__links a[aria-current='page'] { color: var(--ink); }
.nav__links a[aria-current='page']::after { transform: scaleX(1); background: var(--brass); }
.nav__links a:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; border-radius: 2px; }

.nav__cta { display: flex; align-items: center; gap: var(--s3); }

.burger {
  display: none; width: 42px; height: 42px; border-radius: var(--r-sm);
  align-items: center; justify-content: center;
  border: 1px solid var(--line-strong);
}
.burger:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.burger span { display: block; width: 18px; height: 1.5px; background: var(--ink); position: relative; }
.burger span::before, .burger span::after {
  content: ''; position: absolute; left: 0; width: 18px; height: 1.5px; background: var(--ink);
  transition: transform var(--dur) var(--ease);
}
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }

@media (max-width: 900px) {
  .nav__links {
    position: fixed; inset: 72px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: var(--s4) 1.25rem var(--s6);
    box-shadow: var(--lift-2);
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
  }
  .nav__links[data-open='true'] { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav__links a { padding-block: var(--s3); border-bottom: 1px solid var(--line); font-size: 1rem; }
  .nav__links a::after { display: none; }
  .burger { display: inline-flex; }
  .nav__cta .btn { display: none; }
}

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

.hero { position: relative; overflow: hidden; padding-block: clamp(var(--s8), 10vw, 148px) clamp(var(--s8), 8vw, var(--s9)); }
.hero__in { position: relative; z-index: 1; display: grid; grid-template-columns: 1.08fr 0.92fr; gap: clamp(var(--s6), 5vw, var(--s8)); align-items: center; }
.hero h1 { margin-block: var(--s4) var(--s5); }
.hero .lede { max-width: 52ch; }
.hero__cta { margin-top: var(--s6); }
.hero__note { margin-top: var(--s5); font-size: 0.86rem; color: var(--ink-mute); }

@media (max-width: 940px) { .hero__in { grid-template-columns: 1fr; } }

/* Framed hero image with brass offset frame */
.frame { position: relative; }
.frame::before {
  content: ''; position: absolute; inset: 14px -14px -14px 14px;
  border: 1px solid var(--line-brass); border-radius: var(--r-lg); z-index: 0;
}
.frame img, .frame .ph {
  position: relative; z-index: 1;
  width: 100%; border-radius: var(--r-lg); box-shadow: var(--lift-3);
}

/* Placeholder tile, used until real photography lands */
.ph {
  display: grid; place-items: center; text-align: center;
  aspect-ratio: 4 / 3;
  background:
    linear-gradient(135deg, rgba(158,43,37,0.16), rgba(192,138,46,0.12) 46%, rgba(31,94,99,0.16)),
    var(--card-sunk);
  border: 1px dashed var(--line-strong); border-radius: var(--r-md);
  color: var(--ink-mute); font-size: 0.8rem; letter-spacing: 0.04em;
  padding: var(--s4);
}
.ph--tall { aspect-ratio: 3 / 4; }
.ph--wide { aspect-ratio: 16 / 9; }
.ph--sq   { aspect-ratio: 1 / 1; }

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

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
.stat { background: var(--paper); padding: var(--s6) var(--s4); text-align: center; }
.stat__n {
  font-family: 'Fraunces', serif; font-weight: 600; letter-spacing: -0.03em;
  font-size: clamp(2rem, 4vw, 2.9rem); line-height: 1; color: var(--red);
  overflow-wrap: anywhere;
}
/* A placeholder is not a number, so it must not be typeset like one. */
.stat__n--tbc {
  font-family: 'Inter', sans-serif; font-weight: 600; letter-spacing: 0;
  font-size: 0.86rem; line-height: 1.45; color: var(--ink-faint);
  padding-block: var(--s3);
}
.stat__l { margin-top: var(--s2); font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-mute); }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* --------------------------------------------------------------- card -- */

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: var(--s6); box-shadow: var(--lift-1);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.card--hover:hover { transform: translateY(-4px); box-shadow: var(--lift-2); border-color: var(--line-brass); }
.card h3 { margin-bottom: var(--s3); }
.card p { color: var(--ink-soft); }

.card__ico {
  width: 46px; height: 46px; border-radius: var(--r-md);
  display: grid; place-items: center; margin-bottom: var(--s5);
  background: var(--red-wash); color: var(--red);
}
.card__ico--teal { background: var(--teal-wash); color: var(--teal); }
.card__ico--brass { background: rgba(192,138,46,0.14); color: var(--brass); }

/* Card that is entirely a link */
.card-link { text-decoration: none; display: block; }
.card-link:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; border-radius: var(--r-lg); }

/* ------------------------------------------------------------ flagship -- */

.flagship {
  position: relative; overflow: hidden;
  background: var(--ink); color: var(--paper);
  border-radius: var(--r-xl);
  padding: clamp(var(--s6), 5vw, var(--s8));
  box-shadow: var(--lift-3);
}
.flagship::before {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 60% 80% at 88% 12%, rgba(216,48,110,0.34), transparent 60%),
    radial-gradient(ellipse 70% 70% at 8% 92%, rgba(242,163,8,0.26), transparent 62%),
    radial-gradient(ellipse 50% 60% at 50% 50%, rgba(23,162,162,0.16), transparent 70%);
}
.flagship > * { position: relative; z-index: 1; }
.flagship__in { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(var(--s5), 4vw, var(--s7)); align-items: center; }
.flagship .eyebrow { color: var(--brass-soft); }
.flagship .eyebrow::before { background: rgba(226,198,137,0.5); }
.flagship p { color: rgba(251,248,243,0.78); }
@media (max-width: 860px) { .flagship__in { grid-template-columns: 1fr; } }

.badge {
  display: inline-flex; align-items: center; gap: var(--s2);
  padding: 0.3rem 0.75rem; border-radius: var(--r-pill);
  font-size: 0.74rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  background: rgba(226,198,137,0.16); color: var(--brass-soft);
  border: 1px solid rgba(226,198,137,0.3);
}
.badge--ink { background: var(--red-wash); color: var(--red); border-color: rgba(158,43,37,0.22); }
.badge--teal { background: var(--teal-wash); color: var(--teal); border-color: rgba(31,94,99,0.22); }

.dot { width: 6px; height: 6px; border-radius: var(--r-pill); background: currentColor; flex: none; }
.pulse { animation: pulse 2.4s var(--ease) infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.45; transform: scale(0.82); } }

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

.timeline { position: relative; padding-left: var(--s7); }
.timeline::before {
  content: ''; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 1px;
  background: linear-gradient(180deg, var(--red), var(--line-brass) 45%, transparent);
}
.tl-item { position: relative; padding-bottom: var(--s7); }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ''; position: absolute; left: calc(-1 * var(--s7) + 2px); top: 8px;
  width: 11px; height: 11px; border-radius: var(--r-pill);
  background: var(--paper); border: 2px solid var(--red);
}
.tl-year { font-family: 'Fraunces', serif; font-size: 1.24rem; font-weight: 600; color: var(--red); letter-spacing: -0.02em; }
.tl-item h3 { margin: var(--s1) 0 var(--s2); font-size: 1.06rem; }

/* ------------------------------------------------------------- events -- */

.event {
  display: grid; grid-template-columns: 108px 1fr auto; gap: var(--s5); align-items: center;
  padding: var(--s5) 0; border-bottom: 1px solid var(--line);
}
.event:first-of-type { border-top: 1px solid var(--line); }
.event__date {
  text-align: center; padding: var(--s3) var(--s2); border-radius: var(--r-md);
  background: var(--card-sunk); border: 1px solid var(--line);
}
.event__d { font-family: 'Fraunces', serif; font-size: 1.5rem; font-weight: 600; line-height: 1; color: var(--red); }
.event__m { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-mute); margin-top: 3px; }
.event__meta { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4); font-size: 0.86rem; color: var(--ink-mute); margin-top: var(--s2); }
@media (max-width: 720px) {
  .event { grid-template-columns: 84px 1fr; }
  .event > .btn { grid-column: 2; justify-self: start; }
}

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

.filters { display: flex; flex-wrap: wrap; gap: var(--s2); margin-bottom: var(--s6); }
.filter {
  padding: 0.5rem 1rem; border-radius: var(--r-pill); font-size: 0.86rem; font-weight: 600;
  border: 1px solid var(--line-strong); color: var(--ink-soft);
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.filter:hover { border-color: var(--red); color: var(--red); }
.filter:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.filter[aria-pressed='true'] { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.gal { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--s4); }
.gal__item {
  position: relative; overflow: hidden; border-radius: var(--r-md); padding: 0; display: block;
  border: 1px solid var(--line);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.gal__item:hover { transform: translateY(-3px); box-shadow: var(--lift-2); }
.gal__item:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.gal__item .ph { border: 0; border-radius: 0; }
.gal__cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: var(--s5) var(--s4) var(--s3);
  background: linear-gradient(to top, rgba(26,22,20,0.82), transparent);
  color: #fff; font-size: 0.82rem; text-align: left;
  opacity: 0; transform: translateY(6px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.gal__item:hover .gal__cap, .gal__item:focus-visible .gal__cap { opacity: 1; transform: translateY(0); }

/* ------------------------------------------------ dialog: modal + lightbox */

dialog.sheet {
  border: 0; padding: 0; background: transparent;
  max-width: min(560px, calc(100vw - 2rem)); width: 100%;
  /* The global `* { margin: 0 }` reset overrides the UA stylesheet's
     `margin: auto` on dialog, which is what centres a modal. Put it back. */
  margin: auto;
}
dialog.sheet::backdrop { background: rgba(26,22,20,0.62); backdrop-filter: blur(4px); }
dialog.sheet[open] { animation: sheetIn 320ms var(--ease); }
@keyframes sheetIn { from { opacity: 0; transform: translateY(14px) scale(0.98); } to { opacity: 1; transform: none; } }

.sheet__card {
  position: relative; overflow: hidden;
  background: var(--ink); color: var(--paper);
  border-radius: var(--r-xl); box-shadow: var(--lift-3);
  padding: clamp(var(--s6), 5vw, var(--s7));
  text-align: left;
}
.sheet__card::before {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 70% 60% at 85% 8%, rgba(216,48,110,0.38), transparent 62%),
    radial-gradient(ellipse 60% 60% at 10% 96%, rgba(242,163,8,0.28), transparent 64%);
}
.sheet__card > * { position: relative; z-index: 1; }
.sheet__card h2 { margin-block: var(--s3) var(--s3); }
.sheet__card p { color: rgba(251,248,243,0.8); }
.sheet__actions { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s6); }
.sheet__x {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  width: 36px; height: 36px; border-radius: var(--r-pill);
  display: grid; place-items: center; color: rgba(251,248,243,0.7);
  border: 1px solid rgba(251,248,243,0.22);
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.sheet__x:hover { color: #fff; border-color: rgba(251,248,243,0.6); transform: rotate(90deg); }
.sheet__x:focus-visible { outline: 2px solid var(--brass-soft); outline-offset: 2px; }

.checkline { display: inline-flex; align-items: center; gap: var(--s2); margin-top: var(--s5); font-size: 0.84rem; color: rgba(251,248,243,0.62); cursor: pointer; }
.checkline input { width: 15px; height: 15px; accent-color: var(--brass); cursor: pointer; }

dialog.lightbox { max-width: min(1000px, calc(100vw - 2rem)); }
dialog.lightbox .sheet__card { background: var(--card); color: var(--ink); padding: var(--s4); }
dialog.lightbox .sheet__card::before { display: none; }
dialog.lightbox .sheet__x { color: var(--ink-mute); border-color: var(--line-strong); }
dialog.lightbox .sheet__x:hover { color: var(--ink); border-color: var(--ink); }

/* -------------------------------------------------------------- quote -- */

.quote { max-width: 62ch; margin-inline: auto; text-align: center; }
.quote__mark { font-family: 'Fraunces', serif; font-size: 4rem; line-height: 0.6; color: var(--line-brass); }
.quote blockquote {
  font-family: 'Fraunces', serif; font-weight: 500; font-style: italic;
  font-size: clamp(1.25rem, 2.6vw, 1.7rem); line-height: 1.42; letter-spacing: -0.02em;
  margin-block: var(--s5) var(--s5);
}
.quote figcaption { font-size: 0.88rem; color: var(--ink-mute); }

/* ------------------------------------------------------------ sponsor -- */

.logos { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.logo-cell {
  background: var(--paper); min-height: 92px; display: grid; place-items: center;
  color: var(--ink-faint); font-size: 0.78rem; letter-spacing: 0.06em; text-align: center; padding: var(--s3);
}

.tier { position: relative; }
.tier--feature { border-color: var(--line-brass); box-shadow: var(--lift-2); }
.tier__price {
  font-family: 'Fraunces', serif; font-size: clamp(1.4rem, 2.4vw, 2rem);
  font-weight: 600; letter-spacing: -0.03em; color: var(--red);
  margin-block: var(--s2) var(--s4); overflow-wrap: anywhere;
}
.tier ul { display: flex; flex-direction: column; gap: var(--s3); margin-top: var(--s4); }
.tier li { display: flex; gap: var(--s3); align-items: flex-start; font-size: 0.93rem; color: var(--ink-soft); }
.tier li svg { flex: none; margin-top: 5px; color: var(--brass); }

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

.cta-band { position: relative; overflow: hidden; background: var(--ink); color: var(--paper); border-radius: var(--r-xl); padding: clamp(var(--s7), 6vw, var(--s9)) clamp(var(--s5), 5vw, var(--s8)); text-align: center; }
.cta-band::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 90% at 50% 0%, rgba(192,138,46,0.26), transparent 62%);
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band p { color: rgba(251,248,243,0.76); max-width: 56ch; margin-inline: auto; }
.cta-band .row { justify-content: center; margin-top: var(--s6); }

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

.foot { background: var(--ink); color: rgba(251,248,243,0.72); padding-block: var(--s8) var(--s6); }
.foot a { color: rgba(251,248,243,0.72); text-decoration: none; transition: color var(--dur) var(--ease); }
.foot a:hover { color: var(--brass-soft); }
.foot a:focus-visible { outline: 2px solid var(--brass-soft); outline-offset: 3px; border-radius: 2px; }
.foot__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: var(--s6); }
.foot h4 { font-size: 0.76rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--paper); margin-bottom: var(--s4); }
.foot ul { display: flex; flex-direction: column; gap: var(--s3); font-size: 0.92rem; }
.foot .brand__name { color: var(--paper); }
.foot .brand__sub { color: rgba(251,248,243,0.5); }
.foot__base { margin-top: var(--s7); padding-top: var(--s5); border-top: 1px solid rgba(251,248,243,0.12); display: flex; flex-wrap: wrap; gap: var(--s4); justify-content: space-between; font-size: 0.84rem; color: rgba(251,248,243,0.5); }
@media (max-width: 860px) { .foot__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot__grid { grid-template-columns: 1fr; } }

.social { display: flex; gap: var(--s3); }
.social a {
  width: 40px; height: 40px; border-radius: var(--r-pill); display: grid; place-items: center;
  border: 1px solid rgba(251,248,243,0.2);
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease), color var(--dur) var(--ease);
}
.social a:hover { border-color: var(--brass-soft); transform: translateY(-2px); }

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

.phead { position: relative; overflow: hidden; padding-block: clamp(var(--s8), 8vw, 116px) clamp(var(--s7), 5vw, var(--s8)); background: var(--paper-warm); border-bottom: 1px solid var(--line); }
.phead__in { position: relative; z-index: 1; max-width: 66ch; }
.phead h1 { margin-block: var(--s4) var(--s4); font-size: clamp(2.2rem, 5vw, 3.4rem); }

/* --------------------------------------------------------------- misc -- */

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: var(--paper); padding: var(--s3) var(--s5); border-radius: 0 0 var(--r-md) 0;
}
.skip:focus { left: 0; }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity 620ms var(--ease), transform 620ms var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }
