/* ==================================================================
   votefor-arif.site — "Thread line, sand line"
   Bangladeshi nakshi-kantha running stitch + Angolan sona dot-grid geometry
   ================================================================== */

/* ---------- Fonts (self-hosted, SIL Open Font License) ---------- */
@font-face {
  font-family: "Tiro Bangla";
  src: url("../fonts/tiro-bangla-bengali-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0951-0952, U+0964-0965, U+0980-09FE, U+1CD0, U+1CD2, U+1CD5-1CD6, U+1CD8, U+1CE1, U+1CEA, U+1CED, U+1CF2, U+1CF5-1CF7, U+200C-200D, U+20B9, U+25CC, U+A8F1;
}
@font-face {
  font-family: "Tiro Bangla";
  src: url("../fonts/tiro-bangla-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
  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: "Noto Sans Bengali";
  src: url("../fonts/noto-sans-bengali-bengali-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0951-0952, U+0964-0965, U+0980-09FE, U+1CD0, U+1CD2, U+1CD5-1CD6, U+1CD8, U+1CE1, U+1CEA, U+1CED, U+1CF2, U+1CF5-1CF7, U+200C-200D, U+20B9, U+25CC, U+A8F1;
}
@font-face {
  font-family: "Noto Sans Bengali";
  src: url("../fonts/noto-sans-bengali-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
  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;
}

/* ---------- Tokens ---------- */
:root {
  --emerald: #073D32;
  --emerald-2: #0C5444;
  --emerald-deep: #042A22;
  --ivory: #F7F3E8;
  --sand: #EFE7D3;
  --paper: #FCFAF4;
  --gold: #C7A45B;
  --gold-ink: #7A5B1E;      /* gold dark enough for text on ivory */
  --red: #C9343B;
  --red-ink: #A82830;
  --charcoal: #17231F;
  --muted: #4B5852;
  --line: rgba(23, 35, 31, .14);
  --wa: #157A46;
  --wa-hover: #10663A;
  --bd-green: #0A6A4E;
  --ao-black: #1C1C1C;
  --ao-yellow: #D9A520;

  --font-display: "Tiro Bangla", "Noto Serif Bengali", "Kohinoor Bangla", serif;
  --font-body: "Noto Sans Bengali", "Hind Siliguri", "Nirmala UI", "Vrinda", "Kohinoor Bangla", system-ui, sans-serif;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 14px;
  --header-h: 68px;
  --bar-h: 0px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  /* Running stitch (nakshi kantha) */
  --stitch: repeating-linear-gradient(90deg, var(--gold) 0 11px, transparent 11px 19px);
  --stitch-v: repeating-linear-gradient(180deg, var(--gold) 0 11px, transparent 11px 19px);
  /* Bangladesh green–red meets Angola red–black–yellow */
  --thread-bd-ao: linear-gradient(90deg, var(--bd-green) 0 24%, var(--red) 24% 52%, var(--ao-black) 52% 76%, var(--ao-yellow) 76% 100%);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--charcoal);
  background: var(--ivory);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  padding-bottom: var(--bar-h);
}
img, svg, video { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--emerald-2); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--red-ink); }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: 400; }
button { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
template { display: none; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 6px; }
.status :focus-visible, .roadmap :focus-visible, .voice :focus-visible, .site-footer :focus-visible { outline-color: var(--gold); }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: 12px; top: -60px; z-index: 100;
  background: var(--emerald); color: var(--ivory); padding: 10px 16px; border-radius: 8px;
  transition: top .2s;
}
.skip-link:focus { top: 12px; color: var(--ivory); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.icon {
  width: 1.25em; height: 1.25em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
  vertical-align: -.22em;
}
.icon-fill { fill: currentColor; stroke: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 50px; padding: .6em 1.35em;
  border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 600; font-size: 1rem; line-height: 1.3; text-decoration: none; cursor: pointer;
  transition: transform .2s var(--ease), background-color .2s, color .2s, box-shadow .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--emerald); color: var(--ivory); box-shadow: 0 8px 22px -12px rgba(7, 61, 50, .7); }
.btn--primary:hover { background: var(--emerald-2); color: #fff; }
.btn--wa { background: var(--wa); color: #fff; box-shadow: 0 8px 22px -12px rgba(21, 122, 70, .8); }
.btn--wa:hover { background: var(--wa-hover); color: #fff; }
.btn--ghost { background: transparent; color: var(--emerald); border-color: rgba(7, 61, 50, .35); }
.btn--ghost:hover { border-color: var(--emerald); color: var(--emerald); background: rgba(7, 61, 50, .05); }
.btn--sm { min-height: 42px; padding: .4em 1em; font-size: .95rem; }
.btn--lg { min-height: 58px; padding: .7em 1.7em; font-size: 1.1rem; }
.btn--block { width: 100%; }
.btn .icon { width: 1.2em; height: 1.2em; }

.link-plain { display: inline-flex; align-items: center; gap: .45em; color: inherit; font-weight: 500; }
.link-ext { display: inline-flex; align-items: center; gap: .35em; font-weight: 600; }
.link-ext .icon { width: 1em; height: 1em; }
.link-btn { background: none; border: 0; padding: 0; cursor: pointer; display: inline-flex; align-items: center; gap: .5em; text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1px; }

.tag {
  display: inline-block; padding: .1em .7em; border-radius: 999px;
  font-size: .82rem; font-weight: 600; letter-spacing: .01em;
  background: var(--paper); color: var(--emerald); border: 1px solid var(--line);
}
.tag--red { background: var(--red); color: #fff; border-color: var(--red); }
img.is-broken { visibility: hidden; }

/* ---------- Section scaffolding ---------- */
.section { padding-block: clamp(64px, 9vw, 120px); position: relative; }
.kicker {
  display: inline-flex; align-items: center; gap: .7em;
  margin: 0 0 .9rem; color: var(--gold-ink); font-weight: 600; font-size: .95rem; letter-spacing: .02em;
}
.kicker::before { content: ""; width: 38px; height: 2px; background: var(--stitch); background-size: 19px 2px; }
.kicker--light { color: var(--gold); }
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4.2vw, 3rem);
  line-height: 1.3; color: var(--emerald);
  margin-bottom: 1.1rem; text-wrap: balance;
}
.section-title--light { color: var(--ivory); }
.section-lead { color: var(--muted); font-size: 1.05rem; max-width: 60ch; }
.section-head { display: grid; gap: 8px 48px; align-items: end; margin-bottom: 40px; }
@media (min-width: 900px) { .section-head { grid-template-columns: 1fr 1fr; } .section-head .section-lead { margin-bottom: 1.3rem; } }

/* ---------- Announcement ---------- */
.announce { background: var(--red); color: #fff; font-size: .95rem; }
.announce-inner { display: flex; align-items: center; gap: 12px; padding-block: 8px; }
.announce p { margin: 0; flex: 1; }
.announce a { color: #fff; font-weight: 600; }
.announce-close { background: none; border: 0; color: #fff; padding: 8px; cursor: pointer; border-radius: 8px; }
.no-js .announce-close { display: none; }

/* ---------- Scroll progress ---------- */
.scroll-progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 60; pointer-events: none; }
.scroll-progress span { display: block; height: 100%; background: var(--thread-bd-ao); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 243, 232, .92);
  -webkit-backdrop-filter: saturate(1.2) blur(10px); backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgba(23, 35, 31, .45); }
.header-inner { display: flex; align-items: center; gap: 16px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--emerald); margin-right: auto; min-width: 0; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 11px; flex: none; position: relative;
  background: var(--emerald);
}
.brand-mark::before { content: ""; position: absolute; inset: 7px; border-radius: 50%; border: 1.5px dashed var(--gold); }
.brand-mark::after { content: ""; position: absolute; inset: 13px; border-radius: 50%; background: var(--red); }
.brand-text { display: grid; line-height: 1.2; min-width: 0; }
.brand-name { font-family: var(--font-display); font-size: 1.32rem; }
.brand-role { font-size: .78rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.site-nav { display: flex; align-items: center; gap: 8px; }
.site-nav ul { display: flex; gap: 2px; }
.site-nav a:not(.btn) {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border-radius: 999px; white-space: nowrap;
  color: var(--charcoal); text-decoration: none; font-weight: 500; font-size: .98rem;
}
.site-nav a:not(.btn):hover { background: rgba(7, 61, 50, .07); color: var(--emerald); }
.site-nav a.is-active:not(.btn) { color: var(--emerald); background: rgba(7, 61, 50, .08); }
.dot-new { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 3px rgba(201, 52, 59, .18); }

.nav-toggle {
  display: none; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px;
  border-radius: 999px; border: 1.5px solid var(--line); background: var(--paper); cursor: pointer; font-weight: 600;
}

@media (max-width: 959px) {
  .js .nav-toggle { display: inline-flex; }
  .js .site-nav {
    position: absolute; inset: 100% 0 auto; display: none; flex-direction: column; align-items: stretch;
    padding: 12px var(--gutter) 20px; background: var(--ivory); border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px -24px rgba(23, 35, 31, .5);
  }
  .js .site-nav.is-open { display: flex; animation: dropIn .25s var(--ease); }
  .js .site-nav ul { flex-direction: column; }
  .js .site-nav a:not(.btn) { min-height: 50px; font-size: 1.08rem; border-radius: 10px; padding: 0 14px; }
  .js .site-nav .nav-wa { margin-top: 8px; min-height: 50px; }
  /* Without JavaScript the menu is a scrollable row instead */
  .no-js .header-inner { flex-wrap: wrap; padding-block: 8px; }
  .no-js .site-nav { width: 100%; overflow-x: auto; }
  .no-js .nav-wa { display: none; }
}
@media (max-width: 420px) { .brand-role { display: none; } .nav-toggle-label { display: none; } }
@keyframes dropIn { from { opacity: 0; transform: translateY(-6px); } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(36px, 6vw, 80px) clamp(56px, 8vw, 104px); }
.hero-bg { position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 70% at 85% 30%, rgba(199, 164, 91, .18), transparent 70%),
    radial-gradient(40% 50% at 0% 100%, rgba(7, 61, 50, .07), transparent 70%); }
.hero-sona { position: absolute; right: -60px; top: 40px; width: min(620px, 70vw); opacity: .16; }
.sona { display: block; width: 100%; height: auto; }
.sona-dots { fill: var(--gold-ink); }
.sona-line { fill: none; stroke: var(--emerald); stroke-width: 1.5; }

.hero-grid { position: relative; display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.2fr .8fr; gap: 56px; min-height: min(78vh, 760px); } }

.eyebrow { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 18px; font-weight: 600; color: var(--emerald); letter-spacing: .02em; }
.thread-bd-ao { width: 56px; height: 4px; border-radius: 2px; background: var(--thread-bd-ao); }

.hero-name {
  font-family: var(--font-display);
  font-size: clamp(3.1rem, 10.5vw, 7rem);
  line-height: 1.12; color: var(--emerald);
  letter-spacing: -.005em; margin: 0 0 12px;
}
.hero-role { margin-bottom: 26px; display: grid; gap: 2px; }
.hero-role strong {
  font-size: clamp(1.2rem, 2.6vw, 1.6rem); font-weight: 600; color: var(--charcoal);
  display: inline-block; justify-self: start; padding-bottom: 6px;
  background: linear-gradient(var(--red), var(--red)) 0 100% / 64px 3px no-repeat;
}
.hero-role span { color: var(--muted); font-size: 1rem; }

.hero-slogan {
  position: relative; margin: 0 0 26px; padding: 2px 0 2px 26px; max-width: 34ch;
  font-family: var(--font-display); font-size: clamp(1.25rem, 2.4vw, 1.6rem); line-height: 1.6; color: var(--emerald-2);
}
.hero-slogan::before { content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 2px; background: var(--stitch-v); background-size: 2px 19px; }
.hero-slogan p { margin: 0; }

.hero-date {
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-bottom: 28px;
  padding: 10px 18px; border-radius: 18px; background: var(--paper); border: 1px solid var(--line);
  color: var(--muted);
}
.hero-date .icon { color: var(--red); }
.hero-date time { color: var(--charcoal); font-weight: 700; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 479px) { .hero-actions .btn { width: 100%; } }

.today-chip {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; padding: 8px 16px 8px 12px;
  border-radius: 999px; background: rgba(201, 52, 59, .08); color: var(--red-ink); font-weight: 600; text-decoration: none;
}
.today-pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--red); position: relative; flex: none; display: inline-block; }
.today-pulse::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--red); animation: pulse 1.8s ease-out infinite; }
@keyframes pulse { from { transform: scale(.6); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }

.hero-portrait { margin: 0 0 24px; position: relative; justify-self: center; width: min(440px, 76vw, calc(76vh * 482 / 815)); min-width: min(260px, 76vw); }
.arch {
  position: relative; overflow: hidden;
  /* Soft arch: rounded crown that leaves the head and shoulders untouched */
  border-radius: 46% 46% 22px 22px / 24% 24% 22px 22px;
  aspect-ratio: 482 / 815; background: var(--emerald);
  box-shadow: 0 40px 60px -40px rgba(4, 42, 34, .65);
}
/* The photograph fills the whole green frame (same proportions, so nothing important is cut). */
.arch picture { position: absolute; inset: 0; display: block; width: 100%; height: 100%; padding: 0; }
.arch img {
  display: block; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 0;
}
.hero-portrait::before {
  content: ""; position: absolute; inset: -14px;
  border-radius: 46% 46% 30px 30px / 24% 24% 30px 30px;
  border: 1.5px dashed var(--gold); pointer-events: none;
}
.hero-portrait::after {
  content: ""; position: absolute; z-index: -1; right: -28px; bottom: -28px; width: 70%; height: 46%;
  border-radius: 0 0 26px 0; background: var(--emerald);
}
.hero-portrait-cap {
  position: absolute; left: 50%; bottom: -22px; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
  padding: 8px 16px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line);
  font-size: .86rem; color: var(--muted); box-shadow: 0 10px 24px -16px rgba(23, 35, 31, .5);
}
.cap-sep { width: 26px; height: 3px; border-radius: 2px; background: var(--thread-bd-ao); }
@media (max-width: 380px) { .hero-portrait-cap { font-size: .76rem; padding: 6px 12px; gap: 7px; } .cap-sep { width: 16px; } }

.img-fallback {
  display: grid; place-items: center; width: 100%; height: 100%; min-height: 240px;
  background: var(--emerald) radial-gradient(circle at 50% 40%, var(--emerald-2), var(--emerald) 70%);
  color: var(--gold); font-family: var(--font-display); font-size: 1.6rem;
}

/* Hero entrance — pure CSS, so it works without JavaScript */
.hero-in { animation: riseIn .9s var(--ease) both; }
.d-0 { animation-delay: .05s; } .d-1 { animation-delay: .15s; } .d-2 { animation-delay: .25s; }
.d-3 { animation-delay: .38s; } .d-4 { animation-delay: .48s; } .d-5 { animation-delay: .58s; } .d-6 { animation-delay: .7s; }
@keyframes riseIn { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

/* ---------- Status band ---------- */
.status {
  position: relative; background: var(--emerald); color: var(--ivory);
  padding-block: clamp(36px, 5vw, 56px);
}
.status::before, .status::after { content: ""; position: absolute; left: 0; right: 0; height: 2px; background: var(--stitch); background-size: 19px 2px; opacity: .7; }
.status::before { top: 10px; } .status::after { bottom: 10px; }
.status-inner { display: grid; gap: 24px 48px; align-items: center; }
@media (min-width: 860px) { .status-inner { grid-template-columns: auto 1fr; } }
.status-kicker { color: var(--gold); font-weight: 600; font-size: .92rem; }
.status-day { display: flex; align-items: center; gap: 16px; margin: 4px 0 0; }
.status-num { font-family: var(--font-display); font-size: clamp(4rem, 9vw, 5.6rem); line-height: 1; color: var(--gold); }
.status-month { font-family: var(--font-display); font-size: 1.5rem; line-height: 1.35; }
.status-month small { font-family: var(--font-body); font-size: .9rem; opacity: .82; }
.status-body { border-left: 0; }
@media (min-width: 860px) { .status-body { padding-left: 48px; border-left: 1px solid rgba(199, 164, 91, .35); } }
.status-label { margin: 0 0 12px; font-weight: 600; color: var(--gold); }
.status-title { font-family: var(--font-display); font-size: clamp(1.6rem, 3.5vw, 2.3rem); line-height: 1.35; margin: 0 0 8px; display: flex; align-items: center; gap: 14px; }
.status-note { margin: 12px 0 0; font-size: .95rem; opacity: .86; max-width: 66ch; }
.countdown { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; max-width: 600px; }
.cd-unit {
  display: grid; justify-items: center; padding: 12px 6px 8px; border-radius: 12px;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(199, 164, 91, .3);
}
.cd-num { font-family: var(--font-display); font-size: clamp(1.9rem, 6vw, 2.8rem); line-height: 1.1; font-variant-numeric: tabular-nums; }
.cd-label { font-size: .85rem; opacity: .8; }

/* ---------- Intro ---------- */
.intro-grid { display: grid; gap: 48px; align-items: start; }
@media (min-width: 900px) { .intro-grid { grid-template-columns: .75fr 1.25fr; gap: 72px; } }
.intro-portrait { margin: 0; justify-self: center; width: min(360px, 78vw); }
.stitch-frame {
  position: relative; padding: 12px; border-radius: 20px; background: var(--paper);
  box-shadow: 0 30px 50px -36px rgba(23, 35, 31, .55); transform: rotate(-1.5deg);
}
.stitch-frame::before { content: ""; position: absolute; inset: 5px; border: 1.5px dashed var(--gold); border-radius: 16px; pointer-events: none; z-index: 1; }
.stitch-frame img { border-radius: 12px; width: 100%; }
.prose p { max-width: 64ch; }
.prose .lede { font-size: 1.18rem; font-weight: 500; color: var(--emerald); }
.signature { font-family: var(--font-display); font-size: 2rem; color: var(--red); transform: rotate(-3deg); transform-origin: left; display: inline-block; margin: 6px 0 0; }

.values { margin-top: clamp(48px, 7vw, 80px); }
.values-title { font-family: var(--font-display); font-size: 1.4rem; color: var(--emerald); margin-bottom: 20px; }
.values-list { display: grid; gap: 0; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); border-top: 1px solid var(--line); }
.values-list li { padding: 22px 22px 22px 0; display: grid; gap: 4px; align-content: start; position: relative; }
.values-list li::before { content: ""; position: absolute; top: -1px; left: 0; width: 44px; height: 3px; background: var(--emerald); }
.values-list li:nth-child(2)::before { background: var(--red); }
.values-list li:nth-child(3)::before { background: var(--gold); }
.values-list li:nth-child(4)::before { background: var(--ao-black); }
.values-list strong { font-family: var(--font-display); font-weight: 400; font-size: 1.5rem; color: var(--emerald); }
.values-list span { color: var(--muted); font-size: .97rem; }

/* ---------- Commitments ---------- */
.commitments { background: var(--paper); }
.commit-grid { display: grid; gap: 40px; }
@media (min-width: 1000px) {
  .commit-grid { grid-template-columns: .85fr 1.4fr; gap: 64px; align-items: start; }
  .commit-head-inner { position: sticky; top: calc(var(--header-h) + 28px); }
}
.pdf-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 8px; }
.pdf-meta { width: 100%; margin: 4px 0 0; font-size: .85rem; color: var(--muted); }
.boundary {
  margin-top: 28px; padding: 20px 22px; border-radius: var(--radius);
  background: #FBF1EE; border: 1px solid rgba(201, 52, 59, .22); position: relative;
}
.boundary h3 { font-size: 1.02rem; font-weight: 700; color: var(--red-ink); display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.boundary li { position: relative; padding-left: 18px; font-size: .95rem; margin-bottom: 6px; }
.boundary li::before { content: ""; position: absolute; left: 0; top: .78em; width: 8px; height: 2px; background: var(--red); }

.commit-list { border-top: 2px solid var(--emerald); counter-reset: none; }
.commit { position: relative; }
.commit::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--stitch); background-size: 19px 2px; opacity: .55; }
.acc summary { list-style: none; cursor: pointer; }
.acc summary::-webkit-details-marker { display: none; }
.commit summary {
  display: grid; grid-template-columns: 3.3rem 1fr auto; gap: 4px 16px; align-items: start;
  padding: 22px 8px 22px 4px; border-radius: 10px; transition: background-color .2s;
}
.commit summary:hover { background: rgba(199, 164, 91, .09); }
.commit-num { font-family: var(--font-display); font-size: 2.2rem; line-height: 1.1; color: var(--gold-ink); }
.commit-main { display: grid; gap: 4px; }
.commit-title { font-weight: 700; font-size: 1.12rem; line-height: 1.5; color: var(--emerald); }
.commit-summary { color: var(--muted); font-size: .97rem; line-height: 1.65; }
.commit-icon { display: none; }
.acc-chevron {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  border: 1.5px solid var(--line); color: var(--emerald); transition: transform .3s var(--ease), background-color .2s;
}
.acc[open] > summary .acc-chevron { transform: rotate(180deg); background: var(--emerald); color: var(--ivory); border-color: var(--emerald); }
.commit .acc-chevron { grid-column: 3; grid-row: 1; }
@media (min-width: 640px) {
  .commit summary { grid-template-columns: 3.6rem 1fr 44px 40px; }
  .commit-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--sand); color: var(--emerald); }
  .commit-icon .icon { width: 24px; height: 24px; }
  .commit .acc-chevron { grid-column: 4; }
}
.commit .acc-body { padding: 0 8px 26px calc(3.3rem + 20px); }
@media (min-width: 640px) { .commit .acc-body { padding-left: calc(3.6rem + 20px); padding-right: 64px; } }
.commit-detail-label { font-size: .82rem; font-weight: 700; color: var(--gold-ink); margin-bottom: 6px; letter-spacing: .02em; }
.commit .acc-body p:last-child { margin: 0; border-left: 3px solid var(--emerald); padding-left: 16px; line-height: 1.85; }
.acc-body { overflow: hidden; }
@media (max-width: 479px) {
  .commit summary { grid-template-columns: 2.6rem 1fr 40px; gap: 4px 12px; }
  .commit-num { font-size: 1.8rem; }
  .commit .acc-body { padding-left: 4px; }
}

/* ---------- Roadmap ---------- */
.roadmap { background: var(--emerald); color: var(--ivory); overflow: hidden; }
.roadmap-sona { position: absolute; left: -80px; bottom: -40px; width: min(560px, 90vw); opacity: .12; pointer-events: none; }
.roadmap .sona-dots { fill: var(--gold); } .roadmap .sona-line { stroke: var(--ivory); }
.roadmap .wrap { position: relative; }
.stages { display: grid; gap: 0; margin-top: 40px; position: relative; }
.stage { position: relative; padding: 0 0 36px 84px; }
.stage::before { content: ""; position: absolute; left: 31px; top: 64px; bottom: 0; width: 2px; background: var(--stitch-v); background-size: 2px 19px; }
.stage:last-child::before { display: none; }
.stage-marker {
  position: absolute; left: 0; top: 0; width: 64px; height: 64px; border-radius: 50%;
  display: grid; place-content: center; text-align: center; line-height: 1;
  background: var(--emerald-deep); border: 2px solid var(--gold);
}
.stage-days { font-family: var(--font-display); font-size: 1.6rem; color: var(--gold); }
.stage-unit { font-size: .72rem; opacity: .8; margin-top: 2px; }
.stage-label { font-family: var(--font-display); font-size: 1.45rem; line-height: 1.4; margin: 4px 0 8px; }
.stage-label span { display: block; font-family: var(--font-body); font-size: .95rem; color: var(--gold); font-weight: 600; }
.stage p { margin: 0; opacity: .9; max-width: 46ch; }
@media (min-width: 900px) {
  .stages { grid-template-columns: repeat(3, 1fr); gap: 36px; }
  .stages::before { content: ""; position: absolute; left: 32px; right: 32px; top: 31px; height: 2px; background: var(--stitch); background-size: 19px 2px; }
  .stage { padding: 88px 0 0; }
  .stage::before { display: none; }
}
.roadmap-note {
  display: flex; gap: 12px; align-items: flex-start; margin: 24px 0 0; padding: 16px 20px; border-radius: var(--radius);
  background: rgba(0, 0, 0, .16); border: 1px solid rgba(199, 164, 91, .3); font-size: .95rem; max-width: 820px;
}
.roadmap-note .icon { color: var(--gold); margin-top: .25em; }

/* ---------- Videos ---------- */
.videos { background: var(--sand); }
.video-empty {
  display: grid; justify-items: center; text-align: center; gap: 14px;
  padding: clamp(40px, 7vw, 72px) 24px; border-radius: 20px; background: var(--paper); position: relative;
}
.video-empty::before { content: ""; position: absolute; inset: 10px; border: 1.5px dashed var(--gold); border-radius: 14px; pointer-events: none; }
.video-empty-mark { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: var(--emerald); color: var(--ivory); }
.video-empty-mark .icon { width: 28px; height: 28px; margin-left: 4px; }
.video-empty p { font-family: var(--font-display); font-size: clamp(1.25rem, 2.6vw, 1.6rem); color: var(--emerald); margin: 0; max-width: 30ch; }

.video-stage { scroll-margin-top: calc(var(--header-h) + 16px); }
.vfeature { display: grid; gap: 24px 40px; align-items: center; animation: fadeIn .4s var(--ease); }
@media (min-width: 900px) {
  .vfeature--landscape { grid-template-columns: 1.6fr 1fr; }
  .vfeature--portrait { grid-template-columns: minmax(260px, 380px) 1fr; }
}
@keyframes fadeIn { from { opacity: 0; } }
.player {
  position: relative; width: 100%; border-radius: 16px; overflow: hidden; background: var(--charcoal);
  box-shadow: 0 30px 50px -34px rgba(23, 35, 31, .7);
}
.player--landscape { aspect-ratio: 16 / 9; }
.player--portrait { aspect-ratio: 9 / 16; max-height: 78vh; max-width: 420px; margin-inline: auto; }
.player video, .player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: contain; background: #000; }
.player-poster { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; cursor: pointer; background: var(--charcoal); display: block; }
.player-thumb { width: 100%; height: 100%; object-fit: contain; }
.player-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center;
  background: var(--red); color: #fff; box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .6); transition: transform .25s var(--ease);
}
.player-play .icon { width: 30px; height: 30px; margin-left: 4px; }
.player-poster:hover .player-play { transform: translate(-50%, -50%) scale(1.08); }
.player-hint {
  position: absolute; left: 12px; right: 12px; bottom: 12px; text-align: center;
  font-size: .82rem; color: #fff; background: rgba(0, 0, 0, .5); padding: 4px 10px; border-radius: 999px; justify-self: center;
}
.vfeature-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 10px; color: var(--muted); font-size: .95rem; }
.vfeature-title { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.35; color: var(--emerald); margin-bottom: 10px; }
.vfeature-desc { color: var(--muted); }
.vfeature-links { display: flex; flex-wrap: wrap; gap: 18px; }

.archive-title { font-family: var(--font-display); font-size: 1.4rem; color: var(--emerald); margin: 56px 0 20px; }
.archive-title span { font-family: var(--font-body); font-size: .92rem; color: var(--muted); }
.video-archive { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.vcard {
  display: grid; gap: 12px; height: 100%; padding: 10px 10px 16px; border-radius: 16px; text-decoration: none; color: inherit;
  background: var(--paper); border: 1.5px solid transparent; transition: transform .2s var(--ease), border-color .2s, box-shadow .2s;
}
.vcard:hover { transform: translateY(-3px); color: inherit; box-shadow: 0 18px 30px -24px rgba(23, 35, 31, .6); }
.vcard.is-current { border-color: var(--emerald); }
.vthumb { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: var(--charcoal); }
.vthumb img { width: 100%; height: 100%; object-fit: contain; }
.vthumb-placeholder { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(247, 243, 232, .35); }
.vthumb-placeholder .icon { width: 36px; height: 36px; }
.vthumb-play { position: absolute; right: 10px; bottom: 10px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(247, 243, 232, .92); color: var(--emerald); }
.vthumb-play .icon { width: 16px; height: 16px; margin-left: 2px; }
.vthumb-tag { position: absolute; left: 10px; top: 10px; }
.vcard-text { display: grid; gap: 4px; padding-inline: 6px; }
.vcard-text time { font-size: .85rem; color: var(--gold-ink); font-weight: 600; }
.vcard-title { font-weight: 700; color: var(--emerald); line-height: 1.5; }
.vcard-desc { font-size: .92rem; color: var(--muted); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; gap: 28px; margin-top: 32px; align-items: end; }
@media (min-width: 700px) { .gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.gallery-item a { display: block; padding: 10px; background: var(--paper); border-radius: 16px; box-shadow: 0 24px 40px -32px rgba(23, 35, 31, .7); transition: transform .3s var(--ease); }
.gallery-item a:hover { transform: translateY(-4px) rotate(0deg) !important; }
.gallery-item img { border-radius: 10px; width: 100%; }
@media (min-width: 700px) { .g-1 a { transform: rotate(-1.2deg); } .g-3 a { transform: rotate(1deg); } }
.gallery-cap { margin: 12px 4px 0; font-size: .95rem; color: var(--muted); }

/* ---------- Voice / contact ---------- */
.voice { background: var(--emerald-deep); color: var(--ivory); overflow: hidden; }
.voice::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(50% 60% at 100% 0%, rgba(199, 164, 91, .18), transparent 70%), radial-gradient(40% 50% at 0% 100%, rgba(201, 52, 59, .14), transparent 70%); }
.voice-grid { position: relative; display: grid; gap: 40px; align-items: start; }
@media (min-width: 960px) { .voice-grid { grid-template-columns: 1fr 1fr; gap: 64px; } }
.voice .kicker { color: var(--gold); }
.voice-title { color: var(--ivory); font-size: clamp(2.2rem, 5.4vw, 3.6rem); }
.voice-body { font-size: 1.12rem; opacity: .92; max-width: 46ch; }
.voice-direct { display: grid; justify-items: start; gap: 16px; margin-top: 28px; }
.voice-number { margin: 0; display: grid; }
.voice-number span { font-size: .88rem; color: var(--gold); }
.voice-number a { color: var(--ivory); font-size: 1.6rem; font-weight: 600; text-decoration: none; letter-spacing: .02em; font-family: var(--font-body); }
.voice-number a:hover { color: var(--gold); }
.voice .link-plain { color: var(--ivory); opacity: .9; }
.voice .link-plain:hover { color: var(--gold); }

.composer { background: var(--ivory); color: var(--charcoal); border-radius: 22px; padding: clamp(22px, 4vw, 34px); position: relative; box-shadow: 0 40px 60px -40px rgba(0, 0, 0, .7); }
.composer::before { content: ""; position: absolute; inset: 8px; border: 1.5px dashed rgba(199, 164, 91, .8); border-radius: 16px; pointer-events: none; }
.composer-title { font-family: var(--font-display); font-size: 1.45rem; color: var(--emerald); margin-bottom: 14px; }
.topics { border: 0; margin: 0 0 16px; padding: 0; }
.topics legend { font-weight: 600; font-size: .95rem; margin-bottom: 10px; padding: 0; }
.topic-row { display: flex; flex-wrap: wrap; gap: 8px; }
.topic { position: relative; }
.topic input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.topic span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--paper); font-size: .95rem; transition: all .2s;
}
.topic input:checked + span { background: var(--emerald); border-color: var(--emerald); color: var(--ivory); }
.topic input:focus-visible + span { outline: 3px solid var(--red); outline-offset: 2px; }
.no-js .topics { display: none; }
.field-label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 8px; }
.composer textarea {
  width: 100%; min-height: 140px; resize: vertical; padding: 14px 16px; border-radius: 14px;
  border: 1.5px solid rgba(23, 35, 31, .25); background: #fff; font: inherit; font-size: 1.02rem; line-height: 1.7; color: var(--charcoal);
}
.composer textarea:focus { outline: none; border-color: var(--emerald); box-shadow: 0 0 0 3px rgba(7, 61, 50, .18); }
.composer-count { text-align: right; font-size: .8rem; color: var(--muted); margin: 4px 0 12px; min-height: 1.3em; }
.composer-note { display: flex; gap: 8px; align-items: flex-start; margin: 14px 0 6px; font-size: .92rem; color: var(--emerald); font-weight: 500; }
.composer-note .icon { margin-top: .25em; }
.composer-privacy { margin: 0; font-size: .85rem; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; gap: 24px 64px; }
@media (min-width: 900px) { .faq-grid { grid-template-columns: .8fr 1.4fr; } }
.faq-list { border-top: 2px solid var(--emerald); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 4px; min-height: 64px; }
.faq-q { font-weight: 700; font-size: 1.08rem; color: var(--emerald); }
.faq-item summary:hover .faq-q { color: var(--red-ink); }
.faq-item .acc-body p { margin: 0; padding: 0 56px 22px 4px; color: var(--charcoal); }

/* ---------- Footer ---------- */
.site-footer { background: var(--emerald-deep); color: rgba(247, 243, 232, .88); padding: 0 0 28px; font-size: .95rem; }
.voice + .faq + .site-footer, .site-footer { position: relative; }
.footer-thread { height: 4px; background: var(--thread-bd-ao); }
.footer-grid { display: grid; gap: 36px; padding-block: 56px 36px; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.2fr .9fr 1.2fr; gap: 48px; } }
.footer-name { font-family: var(--font-display); font-size: 2rem; color: var(--ivory); margin: 0; }
.footer-role { color: var(--gold); margin-bottom: 14px; }
.footer-slogan { font-family: var(--font-display); font-size: 1.1rem; line-height: 1.6; }
.footer-appeal { font-size: .95rem; opacity: .85; }
.footer-h { font-size: 1rem; font-weight: 700; color: var(--gold); margin-bottom: 12px; }
.footer-links li { margin-bottom: 4px; }
.footer-links a, .footer-links .link-btn { color: var(--ivory); text-decoration: none; display: inline-flex; align-items: center; gap: 10px; min-height: 40px; }
.footer-links a:hover, .footer-links .link-btn:hover { color: var(--gold); }
.footer-notes p { font-size: .9rem; opacity: .85; }
.footer-base { border-top: 1px solid rgba(199, 164, 91, .25); padding-top: 18px; font-size: .85rem; opacity: .7; }
.footer-base p { margin: 0; }

/* ---------- Floating controls ---------- */
.fab-wa {
  position: fixed; right: 22px; bottom: 22px; z-index: 40; width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center; background: var(--wa); color: #fff;
  box-shadow: 0 14px 30px -10px rgba(4, 42, 34, .7); transition: transform .2s var(--ease), background-color .2s;
}
.fab-wa:hover { transform: scale(1.06); background: var(--wa-hover); color: #fff; }
.fab-wa .icon { width: 30px; height: 30px; }
.to-top {
  position: fixed; right: 30px; bottom: 96px; z-index: 40; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer; border: 1.5px solid var(--line);
  background: var(--paper); color: var(--emerald); box-shadow: 0 10px 24px -14px rgba(23, 35, 31, .6);
}
.to-top:hover { background: var(--emerald); color: var(--ivory); }

.mobile-bar { display: none; }
@media (max-width: 759px) {
  :root { --bar-h: calc(64px + env(safe-area-inset-bottom, 0px)); }
  .fab-wa { display: none; }
  .to-top { right: 14px; bottom: calc(var(--bar-h) + 14px); }
  .mobile-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: grid; grid-template-columns: repeat(4, 1fr);
    height: var(--bar-h); padding-bottom: env(safe-area-inset-bottom, 0px);
    background: rgba(252, 250, 244, .97); border-top: 1px solid var(--line);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    box-shadow: 0 -10px 24px -20px rgba(23, 35, 31, .5);
  }
  .mobile-bar a, .mobile-bar button {
    display: grid; place-items: center; align-content: center; gap: 2px; background: none; border: 0;
    color: var(--emerald); text-decoration: none; font-size: .78rem; font-weight: 600; cursor: pointer; padding: 6px 2px; min-height: 64px;
  }
  .mobile-bar .icon { width: 22px; height: 22px; }
  .mobile-bar span { position: relative; }
  .mobile-bar .dot-new { position: absolute; top: -26px; right: -10px; }
  .mobile-bar-wa { color: var(--wa) !important; }
}
.no-js [data-share], .no-js .to-top { display: none !important; }
.no-js .mobile-bar { grid-template-columns: repeat(3, 1fr); }

.toast {
  position: fixed; left: 50%; bottom: calc(var(--bar-h) + 24px); z-index: 70; transform: translate(-50%, 20px);
  background: var(--charcoal); color: var(--ivory); padding: 10px 18px; border-radius: 999px; font-size: .95rem;
  opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s var(--ease); max-width: calc(100vw - 32px);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Lightbox ---------- */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; margin: 0; }
.lightbox::backdrop { background: rgba(4, 22, 18, .9); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox figure { margin: 0; display: grid; justify-items: center; gap: 12px; padding: 64px 16px 24px; }
.lightbox img { max-width: min(92vw, 900px); max-height: 78vh; width: auto; border-radius: 10px; }
.lightbox figcaption { color: var(--ivory); text-align: center; }
.lb-btn { position: fixed; width: 48px; height: 48px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; background: rgba(247, 243, 232, .14); color: var(--ivory); }
.lb-btn:hover { background: rgba(247, 243, 232, .28); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }

.debug-box { position: fixed; left: 8px; bottom: 8px; z-index: 99; max-width: 520px; background: #fffbe6; color: #5c3b00; border: 1px solid #e0c060; padding: 10px; font: 12px/1.4 monospace; }

/* ---------- Scroll reveal (only when JS is running) ---------- */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .btn:hover, .vcard:hover, .gallery-item a:hover { transform: none; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .mobile-bar, .fab-wa, .to-top, .scroll-progress, .composer, .lightbox, .announce { display: none !important; }
  body { background: #fff; padding: 0; }
  .status, .roadmap, .voice, .site-footer { background: #fff !important; color: #000 !important; }
  .acc-body { display: block !important; }
}

/* ---------- Small-screen refinements ---------- */
@media (max-width: 959px) {
  .hero-portrait { width: min(340px, 80vw); }
  .arch { aspect-ratio: 482 / 815; }
  .intro-portrait { width: min(300px, 72vw); }
}
@media (max-width: 699px) {
  .gallery-grid {
    grid-auto-flow: column; grid-auto-columns: 80%; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; padding: 4px 4px 16px; margin-inline: -4px; align-items: start;
    scrollbar-width: thin;
  }
  .gallery-item { scroll-snap-align: start; }
}