/* ==========================================================
   淡江教科新生入學網 — 韓系扁平設計 (Korean flat)
   天藍 #1b6fb3 + 草綠 #37a35a
   ========================================================== */

:root {
  --blue: #1b6fb3;
  --blue-ink: #155a94;
  --blue-tint: #e8f2fb;
  --green: #37a35a;
  --green-ink: #2b8248;
  --green-tint: #e7f5ec;
  --cream: #fff3d6;
  --amber: #f4b53f;
  --pink: #f79f96;

  --ink: #16212e;
  --ink-soft: #5c6b7a;
  --paper: #ffffff;
  --bg: #fbfbf8;
  --line: #eceae3;

  --sh-sm: 0 4px 14px rgba(22, 33, 46, .06);
  --sh: 0 12px 30px rgba(22, 33, 46, .09);
  --r: 22px;
  --r-lg: 30px;
  --pill: 999px;
}

html[data-theme="dark"] {
  --blue: #5aa9e6;
  --blue-ink: #8cc4f2;
  --blue-tint: #14293b;
  --green: #5fc47e;
  --green-ink: #8ad9a0;
  --green-tint: #123021;
  --cream: #2f2a1c;
  --amber: #f4c261;
  --pink: #e88b82;

  --ink: #eef2f6;
  --ink-soft: #a2afbb;
  --paper: #1b222a;
  --bg: #12171d;
  --line: #2a323b;

  --sh-sm: 0 4px 14px rgba(0, 0, 0, .3);
  --sh: 0 12px 30px rgba(0, 0, 0, .4);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
  background: var(--bg); color: var(--ink); line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: var(--blue-ink); text-decoration: none; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 22px; }
.wrap-narrow { max-width: 780px; }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--blue); color: #fff; padding: 10px 18px; border-radius: 0 0 12px 0; z-index: 999; }
.skip-link:focus { left: 0; }

/* ===== Buttons (pill) ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font-family: inherit; font-weight: 900; letter-spacing: 1px; cursor: pointer;
  border: none; border-radius: var(--pill); padding: 12px 24px; font-size: 15px;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.97); }
.btn-lg { padding: 16px 32px; font-size: 17px; }
.btn-sm { padding: 9px 18px; font-size: 14px; }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 8px 20px color-mix(in srgb, var(--blue) 40%, transparent); }
.btn-soft { background: var(--blue-tint); color: var(--blue-ink); }
.btn-light { background: #fff; color: var(--blue-ink); box-shadow: var(--sh-sm); }
.btn-outline-light { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .8); }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(14px); border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 18px; padding: 12px 22px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 900; }
.brand:hover { text-decoration: none; }
.brand-badge {
  background: var(--blue); color: #fff; font-size: 14px; font-weight: 900;
  padding: 6px 10px; border-radius: 12px; letter-spacing: .5px; line-height: 1;
}
.brand-badge b { color: var(--cream); font-weight: 900; }
html[data-theme="dark"] .brand-badge b { color: var(--amber); }
.brand-text { font-size: 19px; letter-spacing: 1px; }
.site-nav { margin-left: auto; display: flex; gap: 2px; overflow-x: auto; }
.site-nav a { color: var(--ink-soft); font-size: 15px; font-weight: 700; padding: 8px 14px; border-radius: var(--pill); white-space: nowrap; }
.site-nav a:hover { color: var(--blue-ink); background: var(--blue-tint); text-decoration: none; }
.site-nav a.is-current { color: var(--blue-ink); background: var(--blue-tint); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.theme-toggle {
  border: none; background: var(--blue-tint); color: var(--blue-ink);
  border-radius: var(--pill); width: 40px; height: 40px; flex: none; cursor: pointer;
  display: grid; place-items: center;
}
.theme-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; }
html[data-theme="dark"] .icon-moon { display: none; }
html[data-theme="light"] .icon-sun { display: none; }

/* ===== Floating flat shapes ===== */
.shape { position: absolute; z-index: 0; pointer-events: none; }
.shape-a { width: 90px; height: 90px; border-radius: 50%; background: var(--green-tint); top: 90px; left: 4%; animation: float1 8s ease-in-out infinite; }
.shape-b { width: 54px; height: 54px; border-radius: 16px; background: var(--amber); opacity: .85; top: 210px; left: 10%; transform: rotate(14deg); animation: float2 7s ease-in-out infinite; }
.shape-c { width: 70px; height: 70px; border-radius: 50%; box-shadow: inset 0 0 0 10px var(--blue-tint); top: 140px; right: 5%; animation: float1 9s ease-in-out infinite; }
.shape-plus { width: 34px; height: 34px; top: 300px; right: 12%; background:
  linear-gradient(var(--green), var(--green)) center/100% 34% no-repeat,
  linear-gradient(var(--green), var(--green)) center/34% 100% no-repeat; opacity: .8; animation: float2 6s ease-in-out infinite; }
@keyframes float1 { 50% { transform: translateY(-16px); } }
@keyframes float2 { 50% { transform: translateY(14px) rotate(8deg); } }

/* ===== Hero ===== */
.hero { position: relative; overflow: hidden; padding: 60px 0 0; }
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.hero-copy > * { animation: rise .7s cubic-bezier(.22, 1, .36, 1) both; }
.hero-copy > :nth-child(2) { animation-delay: .08s; }
.hero-copy > :nth-child(3) { animation-delay: .16s; }
.hero-copy > :nth-child(4) { animation-delay: .24s; }
.hero-copy > :nth-child(5) { animation-delay: .32s; }
@keyframes rise { from { opacity: 0; transform: translateY(20px); } }

.pill-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--green-tint); color: var(--green-ink);
  font-weight: 900; font-size: 14px; padding: 7px 16px; border-radius: var(--pill);
}
.dot-live { width: 8px; height: 8px; border-radius: 50%; background: var(--green); animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .3; transform: scale(.7); } }

.hero-title { font-size: clamp(38px, 6vw, 62px); font-weight: 900; line-height: 1.22; letter-spacing: 1px; margin: 18px 0 16px; }
.hl { position: relative; white-space: nowrap; }
.hl-blue { color: var(--blue); }
.hl-blue::after { content: ""; position: absolute; left: -2px; right: -2px; bottom: 6px; height: 14px; background: var(--amber); opacity: .35; border-radius: 4px; z-index: -1; }
.wave-hand { display: inline-block; transform-origin: 70% 70%; animation: waving 2.4s ease-in-out infinite; }
@keyframes waving { 0%,60%,100% { transform: rotate(0); } 15% { transform: rotate(16deg); } 30% { transform: rotate(-8deg); } 45% { transform: rotate(14deg); } }
.hero-sub { color: var(--ink-soft); font-size: 18px; margin-bottom: 28px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-count {
  display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-top: 28px; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--pill); padding: 10px 20px; box-shadow: var(--sh-sm);
  font-size: 14px; color: var(--ink-soft);
}
.hero-count-emoji { font-size: 18px; }
.countdown-num { font-size: 26px; font-weight: 900; color: var(--blue); }
.countdown-unit { font-weight: 900; color: var(--blue); }

/* Hero art panel */
.hero-art { position: relative; }
.hero-panel {
  background: var(--blue-tint); border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--sh); aspect-ratio: 360 / 340;
}
.hero-panel svg { display: block; width: 100%; height: 100%; }
.sky { fill: var(--blue-tint); }
.c-sun { fill: var(--amber); }
.sun-rays { stroke: var(--amber); stroke-width: 3.5; transform-origin: 298px 66px; animation: spin 32s linear infinite; }
.c-cloud { fill: #fff; }
html[data-theme="dark"] .c-cloud { fill: #cfe0ef; }
.c-hill { fill: color-mix(in srgb, var(--green) 82%, #fff); }
html[data-theme="dark"] .c-hill { fill: var(--green-ink); }
.c-bld { fill: var(--blue); }
.c-roof { fill: var(--blue-ink); }
.c-win { fill: #fff; opacity: .92; }
.c-door { fill: var(--green-ink); }
.c-pole { fill: var(--blue-ink); }
.c-lamph, .c-lampd { fill: var(--amber); }
.m-shadow { fill: rgba(22, 33, 46, .1); }
.m-body { fill: var(--green); }
.m-arm { fill: var(--green-ink); }
.m-hand, .m-head { fill: #f7cfa6; }
.m-eye { fill: #23303c; }
.m-smile { stroke: #23303c; stroke-width: 2.6; stroke-linecap: round; }
.m-cheek { fill: var(--pink); opacity: .65; }
.m-cap { fill: #22303e; }
.m-tassel { fill: var(--amber); }
.m-string { stroke: var(--amber); stroke-width: 2.6; }
@keyframes spin { to { transform: rotate(360deg); } }
.float-a { animation: float1 7s ease-in-out infinite; }
.float-b { animation: float2 9s ease-in-out infinite; }
.mascot.float-c { transform-origin: 250px 300px; animation: bobm 3s ease-in-out infinite; }
@keyframes bobm { 50% { transform: translateY(-8px); } }

/* Marquee ticker */
.hero-marquee { margin-top: 46px; background: var(--blue); overflow: hidden; padding: 12px 0; transform: rotate(-1.4deg) scale(1.03); }
.marquee-track { display: inline-flex; gap: 22px; white-space: nowrap; animation: marquee 22s linear infinite; will-change: transform; }
.marquee-track span { color: #fff; font-weight: 900; font-size: 17px; letter-spacing: 1px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ===== Sections ===== */
.section { padding: 84px 0; position: relative; }
.sec-head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.kicker { display: inline-block; font-weight: 900; font-size: 13px; letter-spacing: 2px; padding: 5px 14px; border-radius: var(--pill); margin-bottom: 14px; }
.kicker-blue { background: var(--blue-tint); color: var(--blue-ink); }
.kicker-green { background: var(--green-tint); color: var(--green-ink); }
.section h2 { font-size: clamp(28px, 4.4vw, 40px); font-weight: 900; letter-spacing: 1px; }
.sec-lead { color: var(--ink-soft); margin-top: 12px; font-size: 16px; }
.subheading { font-size: 22px; font-weight: 900; margin: 54px 0 20px; letter-spacing: 1px; }
.fineprint { color: var(--ink-soft); font-size: 13px; margin-top: 20px; text-align: center; }

.band-blue { background: var(--blue-tint); }
.band-green { background: var(--green-tint); }

/* ===== Progress + checklist ===== */
.progress-card {
  background: var(--paper); border-radius: var(--r-lg); padding: 24px; box-shadow: var(--sh);
  position: sticky; top: 74px; z-index: 40; margin-bottom: 26px;
}
.progress-top { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.progress-emoji { font-size: 34px; line-height: 1; }
.progress-meta { display: flex; flex-direction: column; }
.progress-title { font-weight: 900; font-size: 17px; }
.progress-title b { color: var(--green-ink); }
.progress-sub { color: var(--ink-soft); font-size: 14px; }
.progress-big { margin-left: auto; font-size: 30px; font-weight: 900; color: var(--green-ink); }
.progress-track { height: 16px; border-radius: var(--pill); background: var(--green-tint); overflow: hidden; }
.progress-fill { height: 100%; width: 0; border-radius: var(--pill); position: relative; background: var(--green); transition: width .5s cubic-bezier(.22, 1, .36, 1); }
.progress-fill::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(45deg, rgba(255,255,255,.28) 25%, transparent 25%, transparent 50%, rgba(255,255,255,.28) 50%, rgba(255,255,255,.28) 75%, transparent 75%);
  background-size: 18px 18px; animation: barber 1s linear infinite;
}
@keyframes barber { to { background-position: 18px 0; } }
.progress-done-msg { color: var(--green-ink); font-weight: 900; margin-top: 12px; animation: rise .5s ease both; }
.task-filters { display: flex; gap: 8px; margin-top: 16px; }
.chip { border: none; background: var(--bg); color: var(--ink-soft); padding: 7px 18px; border-radius: var(--pill); font-size: 14px; font-weight: 700; cursor: pointer; font-family: inherit; }
.chip.is-active { background: var(--blue); color: #fff; }

.task-list { list-style: none; display: grid; gap: 14px; }
.task {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--paper); border-radius: var(--r); padding: 22px; box-shadow: var(--sh-sm);
  transition: transform .2s ease, box-shadow .2s ease, opacity .25s ease;
}
.task:hover { transform: translateY(-3px); box-shadow: var(--sh); }
.task.is-done { opacity: .58; }
.task.is-done h3 { text-decoration: line-through; }
.task.is-hidden { display: none; }
.task-check { position: relative; margin-top: 2px; flex: none; cursor: pointer; }
.task-check input { position: absolute; opacity: 0; width: 30px; height: 30px; cursor: pointer; }
.checkmark { display: block; width: 30px; height: 30px; border-radius: 10px; background: var(--bg); box-shadow: inset 0 0 0 2px var(--line); transition: all .2s ease; }
.task-check input:checked + .checkmark { background: var(--green); box-shadow: inset 0 0 0 2px var(--green); animation: pop .4s cubic-bezier(.22, 1.61, .36, 1); }
.task-check input:checked + .checkmark::after { content: "✓"; color: #fff; font-weight: 900; font-size: 18px; display: grid; place-items: center; height: 100%; }
.task-check input:focus-visible + .checkmark { outline: 3px solid var(--green-tint); outline-offset: 2px; }
@keyframes pop { 0% { transform: scale(.7); } 55% { transform: scale(1.18); } 100% { transform: scale(1); } }
.task-body h3 { font-size: 18px; font-weight: 900; letter-spacing: .5px; }
.task-body > p:last-of-type { color: var(--ink-soft); font-size: 15px; }
.task-meta { display: flex; align-items: center; gap: 10px; margin: 6px 0; font-size: 14px; }
.tag { font-size: 12px; font-weight: 900; padding: 3px 12px; border-radius: var(--pill); }
.tag-blue { background: var(--blue-tint); color: var(--blue-ink); }
.tag-green { background: var(--green-tint); color: var(--green-ink); }
.task-date { color: var(--ink-soft); font-weight: 700; }
.task-link { display: inline-block; font-weight: 900; font-size: 14px; margin-top: 8px; }
.task-link:hover { text-decoration: none; opacity: .7; }

/* ===== Timeline ===== */
.timeline { list-style: none; position: relative; padding-left: 34px; max-width: 720px; margin: 0 auto; }
.timeline::before { content: ""; position: absolute; left: 9px; top: 8px; bottom: 8px; width: 3px; border-radius: 3px; background: color-mix(in srgb, var(--blue) 25%, transparent); }
.timeline li { position: relative; padding-bottom: 24px; }
.timeline li::before { content: ""; position: absolute; left: -34px; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--paper); box-shadow: inset 0 0 0 3px color-mix(in srgb, var(--blue) 30%, transparent); }
.timeline li.is-past::before { background: var(--blue); box-shadow: none; }
.timeline li.is-now::before { background: var(--green); box-shadow: 0 0 0 6px var(--green-tint); animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 11px transparent; } }
.timeline li.is-past .tl-card { opacity: .6; }
.tl-date { font-size: 13px; font-weight: 900; color: var(--blue-ink); letter-spacing: 1px; }
.tl-card { background: var(--paper); border-radius: var(--r); padding: 16px 20px; margin-top: 6px; box-shadow: var(--sh-sm); }
.tl-card h3 { font-size: 17px; font-weight: 900; }
.tl-card p { color: var(--ink-soft); font-size: 14px; }
.tl-now-label { display: inline-block; font-size: 12px; font-weight: 900; color: #fff; background: var(--green); padding: 2px 10px; border-radius: var(--pill); margin-left: 8px; vertical-align: 2px; }

/* ===== Stats band ===== */
.stats-band { position: relative; overflow: hidden; background: var(--blue); color: #fff; padding: 68px 0; }
.shape-s1 { width: 160px; height: 160px; border-radius: 50%; background: rgba(255,255,255,.09); top: -40px; right: 6%; animation: float1 10s ease-in-out infinite; }
.shape-s2 { width: 90px; height: 90px; border-radius: 24px; background: rgba(255,255,255,.09); bottom: -20px; left: 8%; transform: rotate(18deg); animation: float2 8s ease-in-out infinite; }
.stats-kicker { text-align: center; font-weight: 900; letter-spacing: 2px; margin-bottom: 30px; position: relative; z-index: 1; }
.stats-kicker::after { content: ""; display: block; width: 42px; height: 4px; border-radius: 3px; background: var(--cream); margin: 12px auto 0; }
html[data-theme="dark"] .stats-kicker::after { background: var(--amber); }
.stats-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat { text-align: center; position: relative; }
.stat:not(:last-child)::after { content: ""; position: absolute; right: -9px; top: 14%; height: 72%; width: 1px; background: rgba(255,255,255,.28); }
.stat-num { display: block; font-size: clamp(42px, 6vw, 62px); font-weight: 900; line-height: 1; }
.stat-label { display: block; margin-top: 10px; font-size: 15px; opacity: .95; }

/* ===== Domain cards ===== */
.domain-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.domain-card { position: relative; overflow: hidden; border-radius: var(--r-lg); padding: 30px 26px; box-shadow: var(--sh-sm); transition: transform .2s ease, box-shadow .2s ease; }
.domain-card:hover { transform: translateY(-5px); box-shadow: var(--sh); }
.dc-blue { background: var(--blue-tint); }
.dc-green { background: var(--green-tint); }
.dc-cream { background: var(--cream); }
.domain-no { position: absolute; top: 10px; right: 18px; font-size: 60px; font-weight: 900; font-style: italic; line-height: 1; color: rgba(22,33,46,.08); letter-spacing: -2px; }
html[data-theme="dark"] .domain-no { color: rgba(255,255,255,.1); }
.card-emoji { font-size: 40px; display: block; margin-bottom: 12px; }
.domain-card h3, .facility-card h3, .life-card h3 { font-size: 19px; font-weight: 900; margin-bottom: 6px; }
.domain-card p, .facility-card p, .life-card p { color: var(--ink-soft); font-size: 15px; }

/* ===== Course map ===== */
.course-map { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); }
.year-col { background: var(--paper); border-radius: var(--r); overflow: hidden; box-shadow: var(--sh-sm); }
.year-head { color: #fff; font-weight: 900; font-size: 18px; padding: 14px 20px; display: flex; justify-content: space-between; align-items: baseline; letter-spacing: 1px; }
.year-head span { font-size: 13px; font-weight: 700; opacity: .92; }
.yc-1 .year-head { background: var(--blue); }
.yc-2 .year-head { background: var(--green); }
.yc-3 .year-head { background: var(--blue-ink); }
.yc-4 .year-head { background: var(--green-ink); }
.year-col ul { list-style: none; padding: 14px 20px; }
.year-col li { padding: 8px 0; font-size: 15px; border-bottom: 1px dashed var(--line); }
.year-col li:last-child { border-bottom: none; }

/* ===== Facility + life cards ===== */
.facility-grid, .life-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.facility-card, .life-card { background: var(--paper); border-radius: var(--r-lg); padding: 28px 24px; box-shadow: var(--sh-sm); transition: transform .2s ease, box-shadow .2s ease; }
.facility-card:hover, .life-card:hover { transform: translateY(-5px); box-shadow: var(--sh); }
.life-card { background: var(--paper); }

/* ===== FAQ ===== */
.faq-search { margin: 6px 0 20px; }
.faq-search input { width: 100%; padding: 15px 22px; font-size: 16px; font-family: inherit; border: none; border-radius: var(--pill); background: var(--paper); color: var(--ink); box-shadow: var(--sh-sm); }
.faq-search input:focus { outline: 2px solid var(--blue); }
.faq-list details { background: var(--paper); border-radius: var(--r); margin-bottom: 12px; box-shadow: var(--sh-sm); overflow: hidden; }
.faq-list summary { cursor: pointer; font-weight: 900; padding: 18px 22px; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "＋"; color: var(--blue); font-weight: 900; font-size: 20px; flex: none; transition: transform .25s ease; }
.faq-list details[open] summary::after { transform: rotate(135deg); }
.faq-list details p { padding: 0 22px 20px; color: var(--ink-soft); }
.faq-list details[open] p { animation: rise .3s ease both; }
.faq-empty { text-align: center; color: var(--ink-soft); padding: 20px; }

/* ===== CTA ===== */
.cta-band { position: relative; overflow: hidden; background: var(--green); color: #fff; text-align: center; padding: 88px 0; }
html[data-theme="dark"] .cta-band { color: #0d1912; }
.shape-x1 { width: 150px; height: 150px; border-radius: 40px; background: rgba(255,255,255,.1); top: -30px; left: 6%; transform: rotate(16deg); animation: float2 9s ease-in-out infinite; }
.shape-x2 { width: 100px; height: 100px; border-radius: 50%; background: rgba(255,255,255,.1); bottom: -20px; right: 8%; animation: float1 8s ease-in-out infinite; }
.cta-inner { position: relative; z-index: 1; }
.cta-emoji { font-size: 54px; display: block; margin-bottom: 10px; animation: bobm 3s ease-in-out infinite; }
.cta-band h2 { font-size: clamp(28px, 4.6vw, 44px); font-weight: 900; letter-spacing: 1px; line-height: 1.4; }
.cta-band p { margin: 16px 0 28px; font-size: 17px; opacity: .96; }
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
html[data-theme="dark"] .btn-light { color: var(--green-ink); }
.cta-br { display: none; }

/* ===== Footer ===== */
.site-footer { background: var(--paper); border-top: 1px solid var(--line); padding: 56px 0 40px; }
.footer-grid { display: grid; gap: 28px; grid-template-columns: 1.2fr 1fr 1fr; }
.footer-brand { display: flex; flex-direction: column; gap: 12px; }
.footer-brand .brand-badge { align-self: flex-start; }
.footer-tag { font-weight: 900; line-height: 1.6; }
.contact-card h3 { font-size: 16px; font-weight: 900; margin-bottom: 10px; }
.contact-card p { font-size: 15px; color: var(--ink-soft); margin-bottom: 4px; }
.footer-fine { text-align: center; color: var(--ink-soft); font-size: 13px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }

/* ===== Back to top + confetti ===== */
.back-top { position: fixed; right: 18px; bottom: 18px; z-index: 90; width: 48px; height: 48px; border-radius: 50%; background: var(--blue); color: #fff; border: none; font-size: 20px; cursor: pointer; box-shadow: var(--sh); opacity: 0; pointer-events: none; transition: opacity .25s ease, transform .2s ease; }
.back-top:hover { transform: translateY(-3px); }
.back-top.is-visible { opacity: 1; pointer-events: auto; }
#confetti { position: fixed; inset: 0; pointer-events: none; z-index: 999; overflow: hidden; }
.confetti-piece { position: absolute; top: -14px; width: 10px; height: 14px; border-radius: 3px; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(106vh) rotate(680deg); opacity: .85; } }

/* ===== Reveal ===== */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* ===== RWD ===== */
@media (max-width: 900px) {
  .hero { padding-top: 40px; }
  .hero-inner { grid-template-columns: 1fr; gap: 30px; }
  .hero-art { max-width: 420px; margin: 0 auto; width: 100%; }
  .header-inner { flex-wrap: wrap; }
  .site-nav { order: 3; width: 100%; margin-left: 0; }
  .nav-cta { display: none; }
  .progress-card { top: 116px; }
  .section { padding: 60px 0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 30px 16px; }
  .stat:nth-child(2)::after { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-br { display: block; }
}
@media (max-width: 480px) {
  .hero-title { font-size: 36px; }
  .hero-cta .btn { flex: 1; }
  .footer-grid { grid-template-columns: 1fr; }
  .task { padding: 16px; gap: 12px; }
  .domain-no { font-size: 46px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .hero-copy > * { opacity: 1; transform: none; transition: none; animation: none; }
  .shape, .dot-live, .wave-hand, .sun-rays, .float-a, .float-b, .mascot.float-c,
  .marquee-track, .progress-fill::after, .timeline li.is-now::before, .cta-emoji,
  .task-check input:checked + .checkmark { animation: none; }
  .confetti-piece { display: none; }
}
