/* NAMS Class of 2005, 20th reunion. Site styles. */

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url(../fonts/archivo-latin.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url(../fonts/archivo-latin-ext.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Great Vibes';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(../fonts/great-vibes-latin.woff2) format('woff2');
}

:root {
  --navy: #0f1f52;
  --navy-deep: #0a1638;
  --royal: #1e4fd6;
  --sky: #e6edff;
  --gold: #c8962a;
  --gold-light: #ebc25e;
  --paper: #f3f5fa;
  --white: #ffffff;
  --ink: #14204a;
  --muted: #5b6786;
  --line: #d8deeb;
  --ok: #17804f;
  --danger: #b42318;

  --font: 'Archivo', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --script: 'Great Vibes', 'Brush Script MT', cursive;

  --wrap: 1180px;
  --gutter: clamp(1.1rem, 4vw, 2.5rem);
  --header-h: 64px;
  --radius-s: 6px;
  --radius-m: 12px;
  --radius-l: 20px;
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  font-stretch: 100%;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--royal); text-underline-offset: 0.18em; }
a:hover { color: var(--navy); }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.12; font-stretch: 112%; font-weight: 800; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

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

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

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

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--gold-light); color: var(--navy-deep); padding: 0.6rem 1rem; border-radius: var(--radius-s); font-weight: 700;
}
.skip-link:focus { top: 0.75rem; }

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

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 48px; padding: 0.7rem 1.35rem;
  border: 2px solid transparent; border-radius: 999px;
  font-weight: 700; font-size: 1rem; font-stretch: 105%; line-height: 1.1;
  text-decoration: none; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s;
}
.btn-gold { background: var(--gold-light); color: var(--navy-deep); }
.btn-gold:hover { background: #f4d27f; color: var(--navy-deep); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--royal); color: var(--white); }
.btn-line { border-color: currentColor; color: var(--navy); background: transparent; }
.btn-line:hover { background: var(--navy); border-color: var(--navy); color: var(--white); }
.on-dark .btn-line { color: var(--white); }
.on-dark .btn-line:hover { background: var(--white); color: var(--navy); border-color: var(--white); }
.btn-small { min-height: 38px; padding: 0.4rem 0.95rem; font-size: 0.92rem; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }

.link-quiet { color: inherit; font-weight: 600; }

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

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--navy-deep);
  color: var(--white);
  border-bottom: 1px solid rgba(235, 194, 94, .28);
}
.site-header .wrap { display: flex; align-items: center; gap: 1rem; height: var(--header-h); }

.brand { display: flex; align-items: center; gap: 0.6rem; color: var(--white); text-decoration: none; flex: none; }
.brand-logos { display: flex; gap: 4px; }
.brand-logos img { width: 36px; height: 36px; border-radius: 8px; background: var(--white); }
.brand-name { font-weight: 800; font-stretch: 118%; font-size: 1.02rem; line-height: 1.05; }
.brand-name small { display: block; font-weight: 500; font-stretch: 100%; font-size: 0.74rem; color: #b9c5e6; letter-spacing: 0.01em; }

.site-nav { margin-left: auto; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 0.25rem; align-items: center; }
.site-nav a {
  display: block; padding: 0.5rem 0.7rem; border-radius: 8px;
  color: #dbe3f7; text-decoration: none; font-weight: 600; font-size: 0.95rem;
}
.site-nav a:hover { color: var(--white); background: rgba(255,255,255,.08); }
.site-nav a[aria-current="page"] { color: var(--gold-light); }
.site-nav .nav-cta a { background: var(--gold-light); color: var(--navy-deep); margin-left: 0.35rem; padding-inline: 1rem; border-radius: 999px; }
.site-nav .nav-cta a:hover { background: #f4d27f; }

/* compact countdown in the header, visible on every page */
.cd-mini {
  display: flex; align-items: baseline; gap: 0.35rem;
  padding: 0.3rem 0.75rem; border: 1px solid rgba(235,194,94,.45); border-radius: 999px;
  color: var(--gold-light); font-variant-numeric: tabular-nums; white-space: nowrap; text-decoration: none;
  font-weight: 700; font-size: 0.92rem; flex: none;
}
.cd-mini:hover { color: var(--gold-light); background: rgba(235,194,94,.08); }
.cd-mini .cd-mini-label { color: #b9c5e6; font-weight: 500; font-size: 0.78rem; }
.cd-mini b { font-weight: 800; color: var(--white); }

.menu-toggle {
  display: none; margin-left: 0.5rem; width: 44px; height: 44px; border-radius: 10px;
  border: 1px solid rgba(255,255,255,.25); background: transparent; color: var(--white); cursor: pointer;
}
.menu-toggle svg { width: 22px; height: 22px; margin: auto; }

.notice-bar { background: var(--gold-light); color: var(--navy-deep); font-weight: 600; font-size: 0.95rem; }
.notice-bar .wrap { padding-block: 0.55rem; }
.notice-bar[hidden] { display: none; }

@media (max-width: 1060px) {
  .brand-name small { display: none; }
}
@media (max-width: 960px) {
  .menu-toggle { display: grid; place-items: center; }
  .cd-mini { margin-left: auto; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; margin: 0;
    background: var(--navy-deep); border-bottom: 1px solid rgba(235,194,94,.28);
    padding: 0.5rem var(--gutter) 1.25rem; display: none;
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav a { padding: 0.85rem 0.25rem; font-size: 1.05rem; border-radius: 0; border-bottom: 1px solid rgba(255,255,255,.08); }
  .site-nav .nav-cta a { margin: 0.9rem 0 0; text-align: center; border-bottom: 0; border-radius: 999px; }
}
@media (max-width: 420px) {
  .brand-name { display: none; }
  .cd-mini .cd-mini-label { display: none; }
}

/* ---------------------------------------------------------------- hero (home) */

.hero {
  position: relative; overflow: hidden; isolation: isolate;
  color: var(--white);
  background:
    linear-gradient(115deg, transparent 38%, rgba(30,79,214,.55) 62%, rgba(30,79,214,.15) 78%, transparent 92%),
    radial-gradient(120% 90% at 100% 0%, rgba(30,79,214,.55), transparent 60%),
    var(--navy-deep);
}
.hero::after { /* the outlined 20 */
  content: '20'; position: absolute; z-index: -1;
  right: -0.06em; top: 50%; transform: translateY(-50%);
  font-size: clamp(18rem, 48vw, 44rem); font-weight: 900; font-stretch: 118%; line-height: 0.8; letter-spacing: -0.04em;
  color: transparent; -webkit-text-stroke: 2px rgba(235,194,94,.32);
  pointer-events: none;
}
.hero .wrap { padding-block: clamp(2.5rem, 7vw, 5.5rem) clamp(2rem, 5vw, 3.5rem); }

.hero-logos { display: flex; gap: 12px; margin-bottom: clamp(1.5rem, 4vw, 2.25rem); }
.hero-logos img { width: clamp(64px, 9vw, 92px); height: auto; aspect-ratio: 1; border-radius: 16px; background: var(--white); box-shadow: 0 8px 24px rgba(0,0,0,.25); }

.hero-kicker { color: #c3cfee; font-size: clamp(0.95rem, 1.6vw, 1.1rem); max-width: 64ch; margin-bottom: 0.6rem; }
.hero h1 { font-size: clamp(2.9rem, 8.6vw, 6.4rem); font-stretch: 118%; font-weight: 800; line-height: 0.95; letter-spacing: -0.025em; }
.hero h1 .h1-line2 { display: block; color: var(--gold-light); font-size: 0.62em; margin-top: 0.12em; letter-spacing: -0.01em; }
.hero-tagline { font-family: var(--script); font-size: clamp(1.8rem, 3.6vw, 2.6rem); line-height: 1.2; color: var(--gold-light); margin: 0.6rem 0 0; font-weight: 400; }

/* big countdown */
.countdown { margin-top: clamp(2rem, 5vw, 3rem); }
.cd-units { display: flex; gap: clamp(0.9rem, 3vw, 2.2rem); align-items: flex-start; flex-wrap: wrap; }
.cd-unit { min-width: 2.6ch; }
.cd-num {
  display: block; font-size: clamp(3rem, 9vw, 6.25rem); font-weight: 800; font-stretch: 125%;
  line-height: 0.95; font-variant-numeric: tabular-nums; letter-spacing: -0.02em;
}
.cd-lbl { display: block; margin-top: 0.4rem; padding-top: 0.45rem; border-top: 2px solid var(--gold); color: #c3cfee; font-size: 0.92rem; font-weight: 600; }
.cd-caption { margin-top: 1rem; color: #c3cfee; max-width: 56ch; }
.cd-live { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 800; font-stretch: 112%; color: var(--gold-light); }

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }

.hero-facts {
  margin: clamp(2.5rem, 6vw, 4rem) 0 0; padding: 1.25rem 0 0; border-top: 1px solid rgba(255,255,255,.18);
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem 2rem;
}
.hero-facts div { min-width: 0; }
.hero-facts dt { color: var(--gold-light); font-size: 0.88rem; font-weight: 700; }
.hero-facts dd { margin: 0.15rem 0 0; font-weight: 600; font-size: 1.05rem; }
@media (max-width: 720px) { .hero-facts { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- page band (inner pages) */

.band {
  color: var(--white);
  background:
    linear-gradient(115deg, transparent 45%, rgba(30,79,214,.5) 70%, transparent 95%),
    var(--navy-deep);
}
.band .wrap { padding-block: clamp(2.25rem, 6vw, 4rem); }
.band h1 { font-size: clamp(2.2rem, 5.5vw, 3.75rem); font-stretch: 118%; letter-spacing: -0.02em; }
.band p { color: #c8d3f0; max-width: 60ch; margin: 0.8rem 0 0; font-size: 1.1rem; }
.band .crumb { display: inline-block; margin-bottom: 0.9rem; color: var(--gold-light); font-weight: 600; text-decoration: none; }
.band .crumb:hover { text-decoration: underline; }

/* ---------------------------------------------------------------- sections */

.section { padding-block: clamp(3rem, 8vw, 5.5rem); }
.section-white { background: var(--white); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; flex-wrap: wrap; margin-bottom: clamp(1.5rem, 4vw, 2.25rem); }
.section-head p { color: var(--muted); max-width: 58ch; margin: 0.6rem 0 0; }
.section[hidden] { display: none; }

/* ---------------------------------------------------------------- then & now cards */

.pair-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: clamp(1rem, 2.5vw, 1.5rem); }
.pair-strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 300px); gap: 1.25rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 0.75rem; }
.pair-strip > * { scroll-snap-align: start; }

.pair {
  display: block; color: inherit; text-decoration: none; background: var(--white);
  border-radius: var(--radius-m); overflow: hidden; border: 1px solid var(--line);
}
.section-white .pair { background: var(--paper); border-color: transparent; }
.pair:hover .pair-name { color: var(--royal); }
.pair-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; background: var(--navy-deep); }
.pair-photos figure { margin: 0; position: relative; aspect-ratio: 4 / 5; background: #1b2a5c; }
.pair-photos img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.pair-photos figcaption {
  position: absolute; left: 8px; bottom: 8px; padding: 2px 8px; border-radius: 999px;
  background: rgba(10,22,56,.82); color: var(--white); font-size: 0.75rem; font-weight: 700;
}
.pair-photos figure:last-child figcaption { background: var(--gold-light); color: var(--navy-deep); }
.pair-body { padding: 0.85rem 1rem 1rem; }
.pair-name { font-weight: 800; font-stretch: 108%; font-size: 1.06rem; line-height: 1.25; }
.pair-meta { color: var(--muted); font-size: 0.92rem; margin-top: 0.15rem; }

.empty {
  border: 2px dashed var(--line); border-radius: var(--radius-l); padding: clamp(1.75rem, 5vw, 2.75rem);
  text-align: center; color: var(--muted); background: var(--white);
}
.empty h3 { color: var(--ink); margin-bottom: 0.4rem; }
.empty .btn { margin-top: 0.75rem; }

.toolbar { display: flex; gap: 1rem; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 1.5rem; }
.search {
  width: min(100%, 360px); min-height: 48px; padding: 0.6rem 1rem; border-radius: 999px;
  border: 1px solid var(--line); background: var(--white);
}
.count-note { color: var(--muted); margin: 0; }

/* ---------------------------------------------------------------- programme */

.days { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(1.25rem, 3vw, 2rem); align-items: start; }
@media (max-width: 860px) { .days { grid-template-columns: 1fr; } }
.day { background: var(--white); border-radius: var(--radius-l); padding: clamp(1.25rem, 3vw, 2rem); border: 1px solid var(--line); }
.section-white .day { background: var(--paper); border-color: transparent; }
.day-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-bottom: 1rem; border-bottom: 2px solid var(--navy); margin-bottom: 0.5rem; }
.day-head h3 { font-size: 1.45rem; }
.day-head span { color: var(--muted); font-weight: 600; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 9.75rem 1fr; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.timeline li:last-child { border-bottom: 0; padding-bottom: 0; }
.timeline time { font-weight: 800; font-stretch: 112%; color: var(--royal); font-variant-numeric: tabular-nums; }
.timeline h4 { font-size: 1.08rem; font-stretch: 105%; margin-bottom: 0.2rem; }
.timeline p { margin: 0; color: var(--muted); }
@media (max-width: 520px) { .timeline li { grid-template-columns: 1fr; gap: 0.2rem; } }

.day-note { margin-top: 1.25rem; padding: 1rem 1.1rem; border-radius: var(--radius-m); background: var(--sky); }
.day-note p { margin: 0; }
.day-note p + p { margin-top: 0.35rem; }
.script-note { font-family: var(--script); font-size: 2rem; line-height: 1.15; color: var(--navy); margin: 1.5rem 0 0; }

.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; margin-top: 2rem; }
.info { background: var(--white); border-radius: var(--radius-m); padding: 1.25rem 1.35rem; border: 1px solid var(--line); }
.info h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.info p { margin: 0 0 0.75rem; color: var(--muted); }

/* ---------------------------------------------------------------- donations */

.give { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
@media (max-width: 860px) { .give { grid-template-columns: 1fr; } }
.raised { font-size: clamp(2.6rem, 6.5vw, 4.25rem); font-weight: 800; font-stretch: 122%; line-height: 1; color: var(--navy); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; margin: 0.6rem 0 0.35rem; }
.raised-note { color: var(--muted); }

.account {
  background: var(--navy-deep); color: var(--white); border-radius: var(--radius-l);
  padding: clamp(1.4rem, 3.5vw, 2rem); position: relative; overflow: hidden;
}
.account::before { content: ''; position: absolute; inset: 0; background: linear-gradient(120deg, transparent 50%, rgba(30,79,214,.45) 85%); pointer-events: none; }
.account > * { position: relative; }
.account h3 { font-size: 1.1rem; color: var(--gold-light); margin-bottom: 1rem; }
.account dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 0.5rem 1.25rem; }
.account dt { color: #b9c5e6; font-size: 0.95rem; }
.account dd { margin: 0; font-weight: 700; }
.acct-number { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; margin: 1.25rem 0 0.25rem; padding: 0.9rem 1rem; border: 1.5px dashed rgba(235,194,94,.6); border-radius: var(--radius-m); }
.acct-number span { font-size: clamp(1.6rem, 4.5vw, 2.1rem); font-weight: 800; font-stretch: 118%; letter-spacing: 0.06em; font-variant-numeric: tabular-nums; }
.acct-number .btn { margin-left: auto; }
.account .fine { color: #c8d3f0; margin: 0.9rem 0 0; font-size: 0.95rem; }
.account .btn-row { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: 1rem; }

.donor-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius-l); overflow: hidden; border: 1px solid var(--line); }
.donor-table th, .donor-table td { text-align: left; padding: 0.8rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.donor-table thead th { background: var(--navy); color: var(--white); font-size: 0.9rem; font-weight: 700; }
.donor-table tbody tr:last-child td { border-bottom: 0; }
.donor-table td.num, .donor-table th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.donor-table td.idx { color: var(--muted); width: 3rem; font-variant-numeric: tabular-nums; }
.donor-table .donor-name { font-weight: 700; }
.donor-table .donor-title { display: block; color: var(--muted); font-size: 0.88rem; font-weight: 500; }
.donor-table tfoot td { background: var(--sky); font-weight: 800; border-bottom: 0; }

/* ---------------------------------------------------------------- highlights */

.photo-grid { columns: 3 260px; column-gap: 1rem; }
.photo-grid button { display: block; width: 100%; margin: 0 0 1rem; padding: 0; border: 0; background: none; cursor: zoom-in; break-inside: avoid; border-radius: var(--radius-m); overflow: hidden; text-align: left; }
.photo-grid img { width: 100%; height: auto; }
.photo-grid .cap { display: block; padding: 0.5rem 0.1rem 0; color: var(--muted); font-size: 0.92rem; background: var(--paper); }

.lightbox { border: 0; padding: 0; background: transparent; max-width: min(96vw, 1200px); max-height: 94vh; }
.lightbox::backdrop { background: rgba(6, 12, 32, .9); }
.lightbox img { max-height: 82vh; width: auto; margin: 0 auto; border-radius: var(--radius-s); }
.lightbox p { color: var(--white); text-align: center; margin: 0.75rem 0 0; }
.lightbox .close { position: fixed; top: 14px; right: 14px; }

/* ---------------------------------------------------------------- forms */

.form-card { max-width: 920px; background: var(--white); border-radius: var(--radius-l); border: 1px solid var(--line); padding: clamp(1.25rem, 4vw, 2.5rem); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.25rem; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field label, .field .label { display: block; font-weight: 700; margin-bottom: 0.35rem; }
.field .hint { display: block; color: var(--muted); font-size: 0.9rem; font-weight: 400; margin-top: 0.1rem; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="number"], .field input[type="password"], .field input[type="url"], .field textarea, .field select {
  width: 100%; min-height: 48px; padding: 0.65rem 0.9rem; border: 1px solid #c4cce0; border-radius: var(--radius-s); background: var(--white);
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 3px solid rgba(30,79,214,.25); border-color: var(--royal); }
.check { display: flex; gap: 0.7rem; align-items: flex-start; }
.check input { width: 22px; height: 22px; margin-top: 0.15rem; flex: none; accent-color: var(--navy); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.drops { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.75rem; max-width: 620px; }
@media (max-width: 520px) { .drops { gap: 0.6rem; } }
.drop {
  position: relative; display: grid; place-items: center; text-align: center; aspect-ratio: 4 / 5;
  border: 2px dashed #b8c2db; border-radius: var(--radius-m); background: var(--paper); cursor: pointer; overflow: hidden;
  padding: 1rem; transition: border-color .15s, background-color .15s;
}
.drop:hover, .drop.dragover { border-color: var(--royal); background: var(--sky); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.drop .drop-text strong { display: block; font-size: 1.05rem; font-stretch: 108%; }
.drop .drop-text span { color: var(--muted); font-size: 0.9rem; }
.drop .drop-text svg { width: 34px; height: 34px; margin: 0 auto 0.5rem; color: var(--royal); }
.drop .tag { position: absolute; left: 10px; top: 10px; z-index: 1; background: var(--navy); color: var(--white); border-radius: 999px; padding: 2px 10px; font-weight: 700; font-size: 0.8rem; }
.drop.has-image .drop-text { display: none; }
.drop.has-image .change { position: absolute; right: 10px; bottom: 10px; z-index: 1; background: rgba(255,255,255,.92); color: var(--navy); border-radius: 999px; padding: 4px 12px; font-weight: 700; font-size: 0.85rem; }
.drop:not(.has-image) .change { display: none; }

.form-actions { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; margin-top: 1.5rem; }
.form-msg { margin: 0; font-weight: 600; }
.form-msg.error { color: var(--danger); }
.form-msg.ok { color: var(--ok); }
.preview-card { margin-top: 1.75rem; max-width: 620px; }
.preview-card img { border-radius: var(--radius-m); border: 1px solid var(--line); }
.preview-card p { color: var(--muted); font-size: 0.92rem; margin: 0.25rem 0 0.75rem; }

.success { text-align: center; padding: clamp(2rem, 6vw, 3.5rem) 1rem; }
.success h2 { margin-bottom: 0.6rem; }
.success p { color: var(--muted); max-width: 52ch; margin-inline: auto; }

/* ---------------------------------------------------------------- member page */

.member-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
@media (max-width: 900px) { .member-layout { grid-template-columns: 1fr; } }

.viewer-tabs { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); margin-bottom: 1rem; }
.viewer-tabs button { border: 0; background: none; padding: 0.45rem 1rem; border-radius: 999px; font-weight: 700; cursor: pointer; color: var(--muted); }
.viewer-tabs button[aria-pressed="true"] { background: var(--navy); color: var(--white); }

.side-by-side { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; border-radius: var(--radius-l); overflow: hidden; background: var(--navy-deep); }
.side-by-side figure { margin: 0; position: relative; aspect-ratio: 4 / 5; }
.side-by-side img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.side-by-side figcaption, .compare .lbl {
  position: absolute; left: 12px; bottom: 12px; padding: 4px 12px; border-radius: 999px;
  background: rgba(10,22,56,.85); color: var(--white); font-weight: 700; font-size: 0.85rem;
}
.side-by-side figure:last-child figcaption, .compare .lbl-now { background: var(--gold-light); color: var(--navy-deep); }

.compare { position: relative; aspect-ratio: 4 / 5; max-width: 560px; border-radius: var(--radius-l); overflow: hidden; background: var(--navy-deep); --pos: 50%; }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.compare .then-layer { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare .divider { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: var(--gold-light); pointer-events: none; }
.compare .divider::after { content: ''; position: absolute; top: 50%; left: 50%; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; background: var(--gold-light); box-shadow: 0 2px 10px rgba(0,0,0,.35); }
.compare input[type="range"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.compare .lbl-then { left: 12px; }
.compare .lbl-now { left: auto; right: 12px; }
.compare input[type="range"]:focus-visible ~ .divider { box-shadow: 0 0 0 3px var(--white); }

.profile h2 { font-size: 1.15rem; margin: 1.5rem 0 0.5rem; }
.profile-facts { margin: 0; display: grid; gap: 0.75rem; }
.profile-facts div { padding-bottom: 0.75rem; border-bottom: 1px solid var(--line); }
.profile-facts dt { color: var(--muted); font-size: 0.9rem; }
.profile-facts dd { margin: 0.1rem 0 0; font-weight: 700; }
.profile .bio { font-size: 1.1rem; white-space: pre-line; margin-top: 1.25rem; }

.share-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.btn-wa { background: #1f9d55; color: var(--white); }
.btn-wa:hover { background: #17804f; color: var(--white); }
.btn-fb { background: #1877f2; color: var(--white); }
.btn-fb:hover { background: #0f5fd0; color: var(--white); }
.btn-ig { background: linear-gradient(45deg, #f09433, #dc2743 50%, #bc1888); color: var(--white); }
.btn-ig:hover { color: var(--white); filter: brightness(1.05); }
.share-note { color: var(--muted); font-size: 0.92rem; margin: 0.6rem 0 0; }

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

.site-footer { background: var(--navy-deep); color: #c3cfee; font-size: 0.97rem; }
.site-footer .wrap { padding-block: clamp(2.5rem, 6vw, 3.5rem) 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand .brand-logos img { width: 48px; height: 48px; border-radius: 10px; }
.footer-brand p { margin: 0.9rem 0 0; max-width: 40ch; }
.site-footer h2 { font-size: 1rem; color: var(--white); margin-bottom: 0.75rem; font-stretch: 108%; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.site-footer a { color: #e2e8f8; text-decoration: none; }
.site-footer a:hover { color: var(--gold-light); text-decoration: underline; }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,.12); display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; justify-content: space-between; font-size: 0.9rem; }
.footer-bottom strong { color: var(--gold-light); font-weight: 700; }

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

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); opacity: 0;
  background: var(--navy-deep); color: var(--white); padding: 0.75rem 1.25rem; border-radius: 999px; font-weight: 600;
  box-shadow: 0 10px 30px rgba(0,0,0,.25); transition: opacity .2s, transform .2s; z-index: 80; pointer-events: none;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.loading { color: var(--muted); }
.error-box { padding: 1rem 1.25rem; border-radius: var(--radius-m); background: #fdecea; color: var(--danger); font-weight: 600; }

.page-404 { min-height: 60vh; display: grid; place-items: center; text-align: center; }
.page-404 h1 { font-size: clamp(5rem, 18vw, 10rem); font-stretch: 125%; color: var(--navy); line-height: 1; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

@media print {
  .site-header, .site-footer, .hero::after, .btn, .share-row { display: none !important; }
  body { background: #fff; }
}
.form-actions.center { justify-content: center; }
.photo-grid a { display: block; margin: 0 0 1rem; break-inside: avoid; border-radius: var(--radius-m); overflow: hidden; }
.photo-grid a img { width: 100%; height: auto; }
