/* =========================================================
   SUGAR Vietnam – stylesheet
   Brand colours taken from the SUGAR logo: teal · red · yellow · ink
   ========================================================= */
:root {
  --teal: #33c1c5;
  --teal-deep: #1f9ea3;
  --red: #ee2326;
  --coral: #ff6b6b;
  --yellow: #fce00b;
  --ink: #111014;
  --text: #2a2730;
  --muted: #6a6572;
  --cream: #fff8ec;
  --paper: #ffffff;
  --pink: #ffe3e3;
  --radius: 22px;
  --radius-sm: 14px;
  --border: 2.5px solid var(--ink);
  --shadow: 6px 6px 0 var(--ink);
  --shadow-sm: 4px 4px 0 var(--ink);
  --font-display: "Baloo 2", "Be Vietnam Pro", system-ui, sans-serif;
  --font-body: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); color: var(--ink); line-height: 1.12; margin: 0 0 .5em; }
h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); font-weight: 800; letter-spacing: -.01em; }
h3 { font-size: 1.35rem; font-weight: 700; }
p { margin: 0 0 1em; }
.small { font-size: .88rem; }
.muted { color: var(--muted); }

.container { width: min(1180px, 100% - 40px); margin-inline: auto; position: relative; }
.container.narrow { width: min(820px, 100% - 40px); }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

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

/* ---------- colour helpers ---------- */
.c-teal { --c: var(--teal); }
.c-red { --c: var(--red); }
.c-yellow { --c: var(--yellow); }
.c-ink { --c: var(--ink); }

.u-teal, .u-red, .u-yellow { position: relative; white-space: nowrap; z-index: 0; }
.u-teal::after, .u-red::after, .u-yellow::after {
  content: ""; position: absolute; left: -2%; right: -2%; bottom: .08em; height: .32em; z-index: -1; border-radius: 4px;
}
.u-teal::after { background: var(--teal); opacity: .55; }
.u-red::after { background: var(--coral); opacity: .45; }
.u-yellow::after { background: var(--yellow); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  font-family: var(--font-display); font-weight: 700; font-size: 1.08rem;
  padding: .72em 1.4em; border: var(--border); border-radius: 999px;
  text-decoration: none; cursor: pointer; color: var(--ink); background: var(--paper);
  box-shadow: var(--shadow-sm); transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn-red { background: var(--red); color: #fff; }
.btn-ink { background: var(--ink); color: #fff; box-shadow: 4px 4px 0 var(--teal); }
.btn-outline { background: var(--paper); }
.btn-sm { font-size: .95rem; padding: .5em 1.05em; box-shadow: 3px 3px 0 var(--ink); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92); backdrop-filter: blur(10px);
  border-bottom: 2px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.site-header.scrolled { border-color: var(--ink); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 16px; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.brand img { height: 38px; width: auto; }
.brand-sub { font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; color: var(--ink); letter-spacing: .02em; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a:not(.btn) {
  text-decoration: none; font-weight: 600; font-size: .93rem; padding: 8px 11px; border-radius: 999px; color: var(--ink);
  transition: background .15s;
}
.site-nav a:not(.btn):hover { background: var(--cream); }
.site-nav a.active:not(.btn) { background: var(--yellow); }
.nav-cta { margin-left: 8px; }
.nav-toggle { display: none; }

@media (max-width: 1060px) {
  .nav-toggle {
    display: grid; gap: 5px; width: 46px; height: 46px; place-content: center;
    background: var(--yellow); border: var(--border); border-radius: 12px; cursor: pointer; box-shadow: 3px 3px 0 var(--ink);
  }
  .nav-toggle span { display: block; width: 20px; height: 2.5px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
  .site-nav {
    position: absolute; top: calc(var(--header-h) - 4px); left: 16px; right: 16px;
    flex-direction: column; align-items: stretch; gap: 2px; padding: 14px;
    background: var(--paper); border: var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .2s, transform .2s, visibility .2s;
  }
  .site-nav.open { opacity: 1; visibility: visible; transform: none; }
  .site-nav a:not(.btn) { padding: 11px 14px; font-size: 1rem; }
  .nav-cta { margin: 8px 0 0; }
}

/* ---------- decorations ---------- */
.deco { position: absolute; pointer-events: none; z-index: 0; }
.deco-grid { width: 190px; height: 110px; opacity: .55;
  background-image:
    repeating-linear-gradient(0deg, var(--g) 0 9px, transparent 9px 22px),
    repeating-linear-gradient(90deg, var(--g) 0 9px, transparent 9px 22px);
}
.deco-grid--teal { --g: var(--teal); top: 24px; left: -30px; }
.deco-grid--yellow { --g: var(--yellow); bottom: 18px; right: -20px; opacity: .8; }
.deco-grid--white { --g: rgba(255,255,255,.35); top: 30px; right: 4%; opacity: 1; }
.deco-star { width: 46px; fill: var(--yellow); }
.deco-star.s1 { top: 16%; left: 46%; transform: rotate(14deg); }
.deco-star.s2 { bottom: 14%; left: 6%; width: 32px; transform: rotate(-12deg); }
.deco-sparkle { width: 26px; fill: var(--coral); top: 30%; left: 3%; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(40px, 7vw, 90px) 0 clamp(56px, 8vw, 100px);
  background:
    radial-gradient(60% 60% at 85% 20%, #ffe9ef 0%, transparent 70%),
    radial-gradient(50% 50% at 10% 90%, #e2f7f7 0%, transparent 70%),
    var(--paper);
}
.hero-inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; z-index: 1; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 18px; }
.tags li {
  font-family: var(--font-display); font-weight: 700; font-size: .95rem; padding: 2px 12px;
  border: 2px solid var(--ink); border-radius: 999px; background: var(--paper);
}
.tags li:nth-child(1) { background: var(--teal); }
.tags li:nth-child(2) { background: var(--yellow); }
.tags li:nth-child(3) { background: var(--pink); }
.hero h1 { font-size: clamp(3rem, 7.4vw, 5.6rem); font-weight: 800; line-height: .98; margin-bottom: .1em; letter-spacing: -.02em; }
.h1-line { display: block; }
.hero h1 mark { background: none; color: var(--red); position: relative; z-index: 0; }
.hero h1 mark::after { content: ""; position: absolute; left: -.05em; right: -.05em; bottom: .1em; height: .26em; background: var(--yellow); z-index: -1; border-radius: 6px; }
.heart { color: var(--red); display: inline-block; font-size: .55em; vertical-align: super; margin-left: .15em; animation: beat 1.6s ease-in-out infinite; }
@keyframes beat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.25); } 30% { transform: scale(1); } 45% { transform: scale(1.18); } }
.hero-en { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; color: var(--teal-deep); margin-bottom: .7em; }
.lead { font-size: 1.1rem; max-width: 36em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }

.hero-visual { position: relative; min-height: 470px; }
.polaroid { position: absolute; margin: 0; background: #fff; padding: 10px 10px 12px; border: var(--border); border-radius: 18px; box-shadow: var(--shadow); }
.polaroid img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }
.polaroid figcaption { font-family: var(--font-display); font-weight: 700; font-size: .95rem; text-align: center; padding-top: 6px; color: var(--ink); }
.p-main { inset: 0 6% 22% 0; transform: rotate(-2deg); background: var(--teal); }
.p-main img { height: 100%; }
.p-a { width: 46%; height: 52%; right: 0; bottom: 0; transform: rotate(4deg); display: flex; flex-direction: column; }
.p-a img, .p-b img { flex: 1; min-height: 0; }
.p-b { width: 38%; height: 40%; left: 4%; bottom: -2%; transform: rotate(-6deg); display: flex; flex-direction: column; background: var(--yellow); }
.sticker {
  position: absolute; top: -18px; right: 0; width: 98px; height: 98px; border-radius: 50%;
  background: var(--red); color: #fff; border: var(--border); display: grid; place-content: center; text-align: center;
  font-family: var(--font-display); font-weight: 700; line-height: 1; font-size: .95rem; transform: rotate(12deg);
  box-shadow: var(--shadow-sm);
}
.sticker b { font-size: 1.7rem; }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { min-height: 380px; margin-top: 10px; }
}
@media (max-width: 900px) {
  .deco-star, .deco-sparkle { display: none; }
  .deco-grid--teal { top: -40px; left: auto; right: -40px; }
}
@media (max-width: 520px) {
  .hero-visual { min-height: 320px; }
  .sticker { width: 76px; height: 76px; font-size: .8rem; top: -24px; }
  .sticker b { font-size: 1.3rem; }
  .p-b figcaption, .p-a figcaption { font-size: .8rem; }
}

/* ---------- marquee ---------- */
.marquee { background: var(--ink); color: #fff; overflow: hidden; border-block: 3px solid var(--ink); transform: rotate(-1.2deg); margin: -16px -10px 0; position: relative; z-index: 2; }
.marquee-track { display: flex; width: max-content; gap: 26px; padding: 14px 0; animation: marquee 32s linear infinite; font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; letter-spacing: .02em; }
.marquee-track i { font-style: normal; color: var(--yellow); }
.marquee-track span:nth-of-type(3n+2) { color: var(--teal); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { padding: clamp(64px, 9vw, 112px) 0; position: relative; overflow: hidden; }
.section-cream { background: var(--cream); }
.section-teal { background: var(--teal); }
.section-yellow { background: var(--yellow); }
.section-head { max-width: 780px; margin-bottom: clamp(32px, 5vw, 52px); }
.section-head.center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-block; font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: .12em;
  font-size: .85rem; padding: 3px 12px; border: 2px solid var(--ink); border-radius: 999px; background: var(--paper); margin-bottom: 14px;
}
.eyebrow-light { background: var(--yellow); }
.section-lead { font-size: 1.1rem; color: var(--text); }
.section-lead.light { color: var(--ink); }
.sub-title { margin-top: clamp(40px, 6vw, 64px); font-size: 1.6rem; }
.sub-title.light { color: var(--ink); }
.footnote { font-size: .82rem; color: var(--muted); margin-top: 14px; }

.card { background: var(--paper); border: var(--border); border-radius: var(--radius); padding: clamp(22px, 3vw, 32px); box-shadow: var(--shadow); }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.stat { background: var(--paper); border: var(--border); border-radius: var(--radius-sm); padding: 18px 16px; box-shadow: 4px 4px 0 var(--c); display: flex; flex-direction: column; gap: 4px; }
.stat b { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.9rem, 3vw, 2.5rem); line-height: 1; color: var(--ink); }
.stat span { font-size: .88rem; line-height: 1.35; color: var(--muted); }
@media (max-width: 1000px) { .stats { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; margin-top: clamp(40px, 6vw, 60px); }
.card-mission { background: var(--pink); }
.mission-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.mission-list li { position: relative; padding-left: 62px; min-height: 40px; font-size: 1.05rem; }
.mission-list span { position: absolute; left: 0; top: 0; width: 50px; font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; background: var(--ink); color: var(--yellow); border-radius: 12px; height: 40px; display: grid; place-content: center; }
.pillars { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 4px 0 18px; }
.pillars li { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; padding: 6px 16px; border: 2px solid var(--ink); border-radius: 12px; background: var(--c); }
.pillars li.c-ink, .pillars li.c-red { color: #fff; }
@media (max-width: 820px) { .about-grid { grid-template-columns: 1fr; } }

.audience { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.aud { border: var(--border); border-radius: var(--radius-sm); padding: 22px 18px; text-align: center; background: var(--cream); transition: transform .2s; }
.aud:hover { transform: translateY(-4px) rotate(-1deg); }
.aud svg { width: 64px; height: 64px; margin: 0 auto 10px; }
.aud p { margin: 0; font-weight: 600; color: var(--ink); line-height: 1.4; }
@media (max-width: 820px) { .audience { grid-template-columns: repeat(2, 1fr); } }

/* ---------- timeline ---------- */
.timeline { list-style: none; padding: 0; margin: 0; position: relative; display: grid; gap: 22px; }
.timeline::before { content: ""; position: absolute; left: 50%; top: 10px; bottom: 10px; width: 4px; margin-left: -2px; background: repeating-linear-gradient(var(--ink) 0 10px, transparent 10px 18px); }
.tl { display: grid; grid-template-columns: 1fr 90px 1fr; align-items: center; }
.tl-year {
  grid-column: 2; justify-self: center; z-index: 1; font-family: var(--font-display); font-weight: 800; font-size: 1.05rem;
  background: var(--c); color: var(--ink); border: var(--border); border-radius: 999px; padding: 6px 12px; min-width: 76px; text-align: center;
}
.tl-year.c-red { color: #fff; }
.tl-body { background: var(--paper); border: var(--border); border-radius: var(--radius-sm); padding: 18px 22px; box-shadow: var(--shadow-sm); }
.tl-body h3 { font-size: 1.2rem; margin-bottom: .3em; }
.tl-body p { margin: 0; font-size: .97rem; }
.tl:nth-child(odd) .tl-body { grid-column: 1; grid-row: 1; }
.tl:nth-child(even) .tl-body { grid-column: 3; grid-row: 1; }
@media (max-width: 760px) {
  .timeline::before { left: 38px; }
  .tl { grid-template-columns: 76px 1fr; gap: 12px; }
  .tl-year { grid-column: 1 !important; grid-row: 1; padding: 6px 6px; min-width: 70px; font-size: .95rem; }
  .tl:nth-child(odd) .tl-body, .tl:nth-child(even) .tl-body { grid-column: 2; }
}

/* ---------- projects ---------- */
.feature-projects { display: grid; gap: 28px; }
.project-feature { display: grid; grid-template-columns: 1fr 1.1fr; border: var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--paper); }
.project-feature.reverse .pf-img { order: 2; }
.pf-img { min-height: 320px; border-right: var(--border); }
.project-feature.reverse .pf-img { border-right: 0; border-left: var(--border); }
.pf-img img { width: 100%; height: 100%; object-fit: cover; }
.pf-body { padding: clamp(24px, 3.4vw, 40px); align-self: center; }
.pf-body h3 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.pf-body h3 small { display: block; font-size: .55em; color: var(--teal-deep); font-weight: 700; margin-top: 4px; }
.badge { display: inline-block; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 3px 10px; border: 2px solid var(--ink); border-radius: 999px; background: var(--c); margin-bottom: 12px; }
.badge.c-red { color: #fff; }
.mini-list { padding-left: 1.1em; margin: 0; }
.mini-list li::marker { color: var(--red); }
.link-arrow { font-family: var(--font-display); font-weight: 700; font-size: 1.08rem; text-decoration: none; border-bottom: 3px solid var(--yellow); }
.link-arrow::after { content: " →"; transition: margin .2s; }
.link-arrow:hover::after { margin-left: 6px; }
@media (max-width: 820px) {
  .project-feature { grid-template-columns: 1fr; }
  .project-feature.reverse .pf-img { order: 0; border-left: 0; }
  .pf-img { min-height: 220px; max-height: 300px; border-right: 0; border-bottom: var(--border); }
  .project-feature.reverse .pf-img { border-bottom: var(--border); }
}

.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 28px; }
.pcard { border: var(--border); border-radius: var(--radius); overflow: hidden; background: var(--paper); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.pcard:hover { transform: translate(-3px, -3px); box-shadow: var(--shadow); }
.pcard img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; border-bottom: var(--border); }
.pcard-art {
  aspect-ratio: 16 / 10; border-bottom: var(--border); display: flex; align-items: center; justify-content: center; gap: 14px;
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  background:
    radial-gradient(circle at 20% 25%, rgba(255,255,255,.55) 0 7px, transparent 8px),
    radial-gradient(circle at 78% 70%, rgba(255,255,255,.45) 0 5px, transparent 6px),
    radial-gradient(circle at 60% 18%, rgba(255,255,255,.4) 0 4px, transparent 5px),
    linear-gradient(160deg, var(--yellow), #ffb347);
}
.pcard-art span:nth-child(2) { transform: translateY(14px); }
.pcard-body { padding: 20px 22px 24px; }
.pcard-body p:last-child { margin: 0; font-size: .96rem; }
@media (max-width: 900px) { .project-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .project-grid { grid-template-columns: 1fr; } }

.chip-projects { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; }
.chip-projects li { background: var(--cream); border: 2px dashed var(--ink); border-radius: var(--radius-sm); padding: 14px 18px; font-size: .95rem; }
.chip-projects b { color: var(--ink); }

/* ---------- ĐĐTT ---------- */
.ddtt-head { display: grid; grid-template-columns: 120px 1fr; gap: 28px; align-items: start; margin-bottom: 40px; max-width: 920px; }
.ddtt-logo { background: #fff; border: var(--border); border-radius: 24px; box-shadow: var(--shadow-sm); }
.section-teal h2 { color: var(--ink); }
@media (max-width: 600px) { .ddtt-head { grid-template-columns: 1fr; } .ddtt-logo { width: 90px; height: 90px; } }

.how-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.how { background: var(--paper); border: var(--border); border-radius: var(--radius-sm); padding: 22px; box-shadow: var(--shadow-sm); }
.how-num { display: inline-block; font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; line-height: 1; background: var(--yellow); border: 2px solid var(--ink); border-radius: 12px; padding: 8px 12px; margin-bottom: 12px; }
.how h3 { font-size: 1.15rem; }
.how p { margin: 0; font-size: .95rem; }
@media (max-width: 960px) { .how-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .how-grid { grid-template-columns: 1fr; } }

.tabs { margin-top: 32px; background: var(--paper); border: var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.tab-list { display: flex; border-bottom: var(--border); }
.tab-list button {
  flex: 1; font-family: var(--font-display); font-weight: 700; font-size: 1.08rem; padding: 14px 16px; border: 0; cursor: pointer;
  background: var(--cream); color: var(--ink);
}
.tab-list button + button { border-left: var(--border); }
.tab-list button[aria-selected="true"] { background: var(--ink); color: var(--yellow); }
.tab-panel { padding: 24px clamp(20px, 3vw, 32px); }

.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.check-list li { position: relative; padding-left: 34px; }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--teal); color: var(--ink); font-weight: 800; font-size: .8rem; display: grid; place-content: center; border: 2px solid var(--ink);
}
.check-list.dark li::before { background: var(--yellow); }
.section-yellow .check-list.dark li::before { background: #fff; }

.homes { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.homes li { background: var(--paper); border: 2px solid var(--ink); border-radius: 999px; padding: 6px 16px; font-weight: 600; font-size: .95rem; color: var(--ink); }
.homes li.home-now { background: var(--yellow); }
.homes li.home-now::after { content: " · đang đồng hành"; font-weight: 500; font-size: .82rem; }
.homes-note { margin-top: 18px; max-width: 860px; color: var(--ink); font-size: .96rem; }

/* ---------- org ---------- */
.org { display: grid; grid-template-columns: 1.15fr 1fr; gap: 26px; }
.org-col { background: var(--cream); border: var(--border); border-radius: var(--radius); padding: clamp(22px, 3vw, 32px); }
.org-title { font-size: 1.3rem; margin-bottom: 20px; }
.org-tree { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.node { font-family: var(--font-display); font-weight: 700; text-align: center; border: var(--border); border-radius: 14px; padding: 8px 18px; line-height: 1.2; background: var(--paper); box-shadow: 3px 3px 0 var(--ink); position: relative; }
.node small { display: block; font-family: var(--font-body); font-weight: 500; font-size: .78rem; color: var(--muted); }
.node-red { background: var(--red); color: #fff; }
.node-red small { color: #ffe3e3; }
.node-yellow { background: var(--yellow); }
.node-teal { background: var(--teal); }
.node-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; width: 100%; }
.node-group { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.node-leaves { display: flex; flex-direction: column; gap: 6px; width: 100%; }
.node-leaves span { text-align: center; font-size: .88rem; font-weight: 600; border: 2px dashed var(--ink); border-radius: 10px; padding: 5px 8px; background: var(--paper); }
.org-tree > .node:not(:last-child)::after, .node-yellow::after { content: ""; position: absolute; left: 50%; bottom: -16px; width: 2.5px; height: 14px; background: var(--ink); }
.org-steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; gap: 12px; }
.org-steps li { counter-increment: s; position: relative; padding: 12px 14px 12px 54px; background: var(--paper); border: 2px solid var(--ink); border-radius: 14px; font-size: .96rem; }
.org-steps li::before { content: counter(s); position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 50%; background: var(--teal); border: 2px solid var(--ink); display: grid; place-content: center; font-family: var(--font-display); font-weight: 800; }
.org-steps b { color: var(--ink); }
@media (max-width: 860px) { .org { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .node-row { grid-template-columns: 1fr; } }

/* ---------- join ---------- */
.ways { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.way { background: var(--paper); border: var(--border); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
.way-ico { display: grid; place-content: center; width: 54px; height: 54px; border-radius: 16px; background: var(--c); border: 2px solid var(--ink); font-size: 1.6rem; margin-bottom: 14px; color: var(--ink); }
.way p { margin: 0; font-size: .97rem; }
@media (max-width: 860px) { .ways { grid-template-columns: 1fr; } }

.join-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 28px; }
@media (max-width: 860px) { .join-grid { grid-template-columns: 1fr; } }

.steps { list-style: none; counter-reset: st; padding: 0; margin: 0; display: grid; gap: 14px; }
.steps li { counter-increment: st; display: grid; grid-template-columns: 40px 1fr; column-gap: 14px; }
.steps li::before { content: counter(st); grid-row: span 2; width: 40px; height: 40px; border-radius: 12px; background: var(--red); color: #fff; border: 2px solid var(--ink); display: grid; place-content: center; font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; }
.steps b { color: var(--ink); }
.steps span { font-size: .93rem; color: var(--muted); }

.schedule { width: 100%; border-collapse: separate; border-spacing: 0; border: 2px solid var(--ink); border-radius: 14px; overflow: hidden; font-size: .95rem; margin-bottom: 12px; }
.schedule th, .schedule td { padding: 10px 12px; text-align: left; }
.schedule th { background: var(--ink); color: #fff; font-family: var(--font-display); font-weight: 700; }
.schedule tr:nth-child(even) td { background: var(--cream); }
.schedule td:first-child { font-weight: 600; color: var(--ink); }

.fit { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; margin-top: 28px; background: var(--ink); color: #fff; border-radius: var(--radius); padding: clamp(24px, 3.5vw, 40px); box-shadow: 6px 6px 0 var(--teal); }
.fit h3 { color: var(--yellow); font-size: 1.6rem; }
.fit-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.fit-list label { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; padding: 8px 10px; border-radius: 10px; transition: background .15s; }
.fit-list label:hover { background: rgba(255,255,255,.08); }
.fit-list input { appearance: none; flex: none; width: 22px; height: 22px; margin-top: 2px; border: 2px solid #fff; border-radius: 6px; display: grid; place-content: center; cursor: pointer; }
.fit-list input:checked { background: var(--yellow); border-color: var(--yellow); }
.fit-list input:checked::after { content: "✓"; color: var(--ink); font-weight: 800; font-size: .85rem; }
.fit-result { background: rgba(255,255,255,.07); border: 2px solid rgba(255,255,255,.25); border-radius: var(--radius-sm); padding: 22px; align-self: center; }
.meter { height: 16px; background: rgba(255,255,255,.15); border-radius: 999px; overflow: hidden; margin-bottom: 16px; }
.meter span { display: block; height: 100%; width: var(--p); background: linear-gradient(90deg, var(--teal), var(--yellow)); border-radius: 999px; transition: width .35s ease; }
.fit-msg { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; color: #fff; }
.fit-result .small { color: rgba(255,255,255,.75); margin: 0; }
@media (max-width: 860px) { .fit { grid-template-columns: 1fr; } }

.cert { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 14px; }
.cert div { border: 2px solid var(--ink); border-radius: 14px; padding: 14px 10px; text-align: center; background: var(--cream); }
.cert b { display: block; font-family: var(--font-display); font-weight: 800; font-size: 2rem; color: var(--red); line-height: 1; }
.cert span { font-size: .82rem; line-height: 1.3; display: block; margin-top: 6px; }
@media (max-width: 420px) { .cert { grid-template-columns: 1fr; } }

.values { margin-top: 28px; text-align: center; }
.values ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.values li { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; padding: 8px 18px; border: var(--border); border-radius: 999px; background: var(--c); box-shadow: 3px 3px 0 var(--ink); }
.values li.c-red { color: #fff; }
.values li:nth-child(odd) { transform: rotate(-2deg); }
.values li:nth-child(even) { transform: rotate(2deg); }

/* ---------- cheer ---------- */
.cheer-section { background: radial-gradient(70% 80% at 50% 0%, #e2f7f7 0%, #fff 70%); }
.cheer { display: flex; justify-content: center; gap: clamp(8px, 2vw, 18px); flex-wrap: wrap; }
.letter {
  position: relative; width: clamp(64px, 14vw, 128px); aspect-ratio: 1; border: var(--border); border-radius: 22px; cursor: pointer;
  background: var(--c); box-shadow: var(--shadow); font-family: var(--font-display); color: var(--ink); overflow: hidden; perspective: 600px;
  transition: transform .2s;
}
.letter.c-ink { color: #fff; }
.letter.c-red { color: #fff; }
.letter:hover { transform: translateY(-4px) rotate(-3deg); }
.letter .l, .letter .w { position: absolute; inset: 0; display: grid; place-content: center; transition: transform .35s ease, opacity .35s; }
.letter .l { font-size: clamp(2.4rem, 7vw, 4.6rem); font-weight: 800; }
.letter .w { font-size: clamp(.8rem, 1.8vw, 1.15rem); font-weight: 700; transform: translateY(100%); opacity: 0; padding: 4px; text-align: center; }
.letter.on .l { transform: translateY(-100%); opacity: 0; }
.letter.on .w { transform: none; opacity: 1; }
.cheer-out { text-align: center; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.3rem, 3vw, 2rem); color: var(--red); min-height: 1.6em; margin: 26px 0 8px; }
.song { max-width: 620px; margin: 10px auto 0; text-align: center; font-size: 1.08rem; border: 2px dashed var(--ink); border-radius: var(--radius); padding: 20px 24px; background: var(--paper); }
.song p { margin-bottom: .4em; }
.song cite { font-style: normal; font-weight: 600; color: var(--muted); font-size: .9rem; }

/* ---------- donate ---------- */
.donate { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.donate h3 { margin-top: 1.2em; }
.donate-ways { display: grid; gap: 14px; }
.dw { background: var(--paper); border: var(--border); border-radius: var(--radius-sm); padding: 20px 22px; box-shadow: var(--shadow-sm); }
.dw h3 { margin: 0 0 .35em; font-size: 1.2rem; }
.dw p { font-size: .96rem; margin-bottom: .8em; }
.dw p:last-child { margin: 0; }
.warn { font-size: .88rem; background: rgba(255,255,255,.6); border: 2px solid var(--ink); border-radius: 14px; padding: 12px 14px; margin: 0; }
@media (max-width: 860px) { .donate { grid-template-columns: 1fr; } }

/* ---------- gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 16px; }
.gallery figure { margin: 0; position: relative; border: var(--border); border-radius: var(--radius-sm); overflow: hidden; background: var(--cream); }
.gallery figure.g-wide { grid-column: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery figure:hover img { transform: scale(1.05); }
.gallery figcaption { position: absolute; left: 10px; bottom: 10px; background: var(--paper); border: 2px solid var(--ink); border-radius: 999px; padding: 2px 12px; font-size: .82rem; font-weight: 600; color: var(--ink); }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; } }
@media (max-width: 520px) { .gallery { grid-template-columns: 1fr; } .gallery figure.g-wide { grid-column: auto; } }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--paper); border: var(--border); border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); overflow: hidden; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 52px 16px 20px; font-weight: 700; color: var(--ink); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%; background: var(--yellow); border: 2px solid var(--ink); display: grid; place-content: center; font-family: var(--font-display); font-weight: 800; transition: transform .2s; }
.faq details[open] summary::after { content: "–"; background: var(--teal); }
.faq details p { padding: 0 20px 18px; margin: 0; }

/* ---------- contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 14px; align-items: center; }
.ci { flex: none; width: 46px; height: 46px; border-radius: 14px; background: var(--teal); border: 2px solid var(--ink); display: grid; place-content: center; font-size: 1.2rem; color: var(--ink); }
.contact-list li:nth-child(2) .ci { background: var(--yellow); }
.contact-list li:nth-child(3) .ci { background: var(--pink); }
.contact-list small { display: block; color: var(--muted); font-size: .8rem; }
.contact-list a { font-weight: 700; color: var(--ink); text-decoration-color: var(--teal); text-decoration-thickness: 2px; text-underline-offset: 3px; word-break: break-all; }
.socials { display: flex; gap: 12px; }
.socials a { width: 48px; height: 48px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-content: center; border: 2px solid var(--ink); transition: transform .15s, background .15s; }
.socials a:hover { transform: translateY(-3px); background: var(--red); }
.socials svg { width: 22px; height: 22px; fill: currentColor; }
.contact-form { display: grid; gap: 14px; }
.contact-form label { display: grid; gap: 6px; font-weight: 600; font-size: .92rem; color: var(--ink); }
.contact-form input, .contact-form select, .contact-form textarea {
  font: inherit; font-weight: 400; padding: 11px 14px; border: 2px solid var(--ink); border-radius: 12px; background: var(--cream); color: var(--text); width: 100%;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; background: #fff; box-shadow: 3px 3px 0 var(--teal); }
.contact-form .invalid { border-color: var(--red); background: #fff1f1; }
.contact-form .btn { justify-self: start; }
.form-note { margin: 0; }
.form-result { display: grid; gap: 10px; border: 2px dashed var(--ink); border-radius: 14px; padding: 16px; background: var(--cream); }
.form-result[hidden] { display: none; }
.fr-title { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--ink); margin: 0; }
.form-result .small { margin: 0; }
.fr-text { font: inherit; font-size: .9rem; padding: 10px 12px; border: 2px solid var(--ink); border-radius: 10px; background: #fff; color: var(--text); width: 100%; resize: vertical; }
.fr-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.fr-to { word-break: break-all; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.8); padding: 48px 0 32px; }
.footer-inner { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; align-items: start; }
.footer-logo { background: #fff; border-radius: 14px; padding: 8px 12px; height: auto; width: 160px; margin-bottom: 12px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: flex-end; }
.site-footer nav a { text-decoration: none; font-weight: 600; color: #fff; }
.site-footer nav a:hover { color: var(--yellow); }
.copy { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.18); padding-top: 18px; margin: 8px 0 0; font-size: .88rem; }
@media (max-width: 700px) { .footer-inner { grid-template-columns: 1fr; } .site-footer nav { justify-content: flex-start; } }

/* ---------- reveal animation ---------- */
/* Content stays visible at rest; it only slides up a little when scrolled into view */
.js .reveal { transform: translateY(16px); transition: transform .6s ease; }
.js .reveal.in { transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
