/* ==========================================================
   奇美醫院 116學年度西醫PGY醫師招募說明會
   Playful organic / Memphis style — navy · orange · red · yellow
   ========================================================== */
:root {
  --navy: #213C8F;
  --navy-d: #172B6A;
  --orange: #FFA319;
  --red: #F2541B;
  --yellow: #FFC83D;
  --ink: #161616;
  --muted: #5A6070;
  --paper: #FFFFFF;
  --bg: #FFFFFF;
  --band: #FFF6E2;
  --soft: #F6F8FC;
  --radius: 28px;
  --shadow: 0 18px 40px -18px rgba(23, 43, 106, .35);
  --font: "Noto Sans TC", system-ui, -apple-system, "PingFang TC", "Microsoft JhengHei", sans-serif;
  --font-en: "Poppins", var(--font);
  --gutter: clamp(16px, 4vw, 40px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}
img, svg { display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.2; }
button { font: inherit; }
[hidden] { display: none !important; }
main { overflow-x: clip; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px var(--gutter);
  transition: background .3s, box-shadow .3s, padding .3s;
}
.nav.scrolled {
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 6px 24px -12px rgba(23, 43, 106, .3);
  padding-block: 8px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 900; font-size: 1.05rem; background: #fff; padding: 4px 16px 4px 4px; border-radius: 999px; box-shadow: var(--shadow); }
.nav.scrolled .brand { box-shadow: none; }
.brand-emblem { display: block; width: auto; height: 46px; margin: -2px 0 -2px 10px; }
.brand-txt { color: var(--navy); }
.brand-txt b { font-family: var(--font-en); color: var(--red); }

.menu { display: flex; gap: 6px; align-items: center; }
.menu a {
  text-decoration: none; font-weight: 700; padding: 8px 14px; border-radius: 999px;
  transition: background .2s, color .2s, transform .2s;
}
.menu a:hover { background: var(--navy); color: #fff; transform: translateY(-2px); }
.menu a.menu-cta { background: var(--red); color: #fff; }
.menu a.menu-cta:hover { background: var(--navy); }
.menu a.menu-cta-blue { background: var(--navy); color: #fff; }
.menu a.menu-cta-blue:hover { background: var(--navy-d); }

.nav-toggle { display: none; width: 44px; height: 44px; border: 0; border-radius: 14px; background: var(--navy); cursor: pointer; padding: 0; position: relative; }
.nav-toggle span { position: absolute; left: 12px; right: 12px; height: 3px; border-radius: 3px; background: #fff; transition: transform .3s, opacity .3s; }
.nav-toggle span:nth-child(1) { top: 14px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 28px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .menu {
    position: absolute; top: calc(100% + 6px); right: var(--gutter); left: var(--gutter);
    flex-direction: column; align-items: stretch; gap: 4px;
    background: #fff; border-radius: 22px; padding: 10px; box-shadow: var(--shadow);
    transform-origin: top right; transform: scale(.9); opacity: 0; pointer-events: none;
    transition: transform .25s, opacity .25s;
  }
  .menu.open { transform: none; opacity: 1; pointer-events: auto; }
  .menu a { padding: 12px 16px; text-align: center; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 24px; border-radius: 999px; border: 3px solid var(--ink);
  font-weight: 900; text-decoration: none; cursor: pointer; font-size: 1rem;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform .15s, box-shadow .15s, background .2s;
}
.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-primary { background: var(--red); color: #fff; }
.btn-ghost { background: #fff; color: var(--ink); }
.btn-light { background: #fff; color: var(--navy); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-yellow { background: var(--yellow); color: var(--ink); }
.btn:focus-visible, .tab:focus-visible, .menu a:focus-visible { outline: 3px dashed var(--red); outline-offset: 3px; }

/* ---------- HERO poster ---------- */
.hero { position: relative; }
.poster {
  position: relative; width: 100%;
  min-height: 100svh;
  background: var(--paper);
  overflow: hidden;
  display: grid; place-items: center;
  padding: clamp(130px, 16vw, 170px) clamp(16px, 4vw, 48px) clamp(120px, 14vw, 150px);
}

.poster::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: url("../img/building-sky-1920.webp") center 30% / cover no-repeat;
  opacity: .14;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, .35), #000 45%, #000 75%, rgba(0, 0, 0, .2));
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, .35), #000 45%, #000 75%, rgba(0, 0, 0, .2));
}
@media (max-width: 960px) { .poster::before { background-image: url("../img/building-sky-960.webp"); background-position: 62% 30%; } }
.deco { position: absolute; pointer-events: none; }
.deco .b-navy { fill: var(--navy); }
.deco .b-orange { fill: var(--orange); }
.deco .b-red { fill: var(--red); }
.deco .dots circle { fill: #fff; }
.deco .arc, .deco .lines { fill: none; stroke: #fff; stroke-width: 6; stroke-linecap: round; }
.deco .arc-y { fill: none; stroke: var(--yellow); stroke-width: 12; stroke-linecap: round; }
.deco .squiggle { fill: none; stroke: var(--navy); stroke-width: 6; stroke-linecap: round; stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 3s ease forwards .4s, sway 6s ease-in-out infinite 3.4s; }
.d-br .squiggle { stroke: var(--red); }
.d-tl { width: clamp(150px, 26vw, 300px); top: -40px; left: -50px; animation: floatA 9s ease-in-out infinite; }
.d-tr { width: clamp(200px, 34vw, 380px); top: -10px; right: -20px; animation: floatB 11s ease-in-out infinite; }
.d-bl { width: clamp(170px, 28vw, 320px); bottom: -30px; left: -10px; animation: floatB 10s ease-in-out infinite; }
.d-br { width: clamp(170px, 28vw, 320px); bottom: -20px; right: -10px; animation: floatA 12s ease-in-out infinite; }
.deco .blob { transform-box: fill-box; transform-origin: center; animation: morph 8s ease-in-out infinite; }

/* top-left slogan tape */
.hero-tape { position: absolute; z-index: 1; top: clamp(210px, calc(26vw - 40px), 330px); left: -10%; width: 80%; margin: 0; background: var(--navy); border-block: 4px solid var(--ink); box-shadow: 0 6px 0 var(--ink); overflow: hidden; transform: rotate(-30deg); transform-origin: 0 50%; }
.hero-tape .marquee-track { padding: 10px 0; animation-duration: 18s; }
.hero-tape .marquee-track span { font-size: clamp(1.05rem, 2.2vw, 1.45rem); }
.hero-tape .marquee-track b { font-family: var(--font-en); color: var(--yellow); }
@media (max-width: 960px) {
  .hero-tape { top: calc(80px + 13vw); left: -20px; width: calc(300px + 20vw); border-block-width: 3px; box-shadow: 0 4px 0 var(--ink); }
  .hero-tape .marquee-track { gap: 14px; padding: 5px 0; }
  .hero-tape .marquee-track span { font-size: .9rem; }
  .hero-tape .marquee-track svg { width: 18px; height: 18px; }
}

.floaters .fl { position: absolute; width: clamp(30px, 4.5vw, 54px); height: clamp(30px, 4.5vw, 54px); color: var(--navy); animation: bob 5s ease-in-out infinite; }
.f1 { top: 20%; left: 18%; animation-delay: -1s !important; }
.f2 { top: 13%; left: 33%; animation: beat 1.3s ease-in-out infinite !important; }
.f3 { top: 64%; left: 12%; animation-delay: -2s !important; }
.f4 { top: 32%; right: 12%; color: var(--orange) !important; animation: spin 10s linear infinite !important; }
.f5 { top: 76%; left: 40%; color: var(--red) !important; animation: spin 14s linear infinite reverse !important; width: 30px !important; height: 30px !important; }
.f6 { top: 62%; right: 22%; animation-delay: -3s !important; }
.f7 { top: 44%; left: 7%; color: var(--yellow) !important; animation: twinkle 2.4s ease-in-out infinite !important; width: 26px !important; height: 26px !important; }
.f8 { top: 22%; right: 30%; color: var(--orange) !important; animation: spin 12s linear infinite !important; width: 28px !important; height: 28px !important; }

.hero-content { position: relative; z-index: 2; text-align: center; max-width: 720px; }
.kicker { margin: 0 0 14px; }
.kicker span {
  display: inline-block; font-family: var(--font-en); font-weight: 800; letter-spacing: .2em;
  font-size: clamp(.68rem, 1.6vw, .85rem); color: var(--navy);
  background: var(--soft); padding: 6px 16px; border-radius: 999px; border: 2px solid var(--navy);
}
.hero-title { display: flex; flex-direction: column; align-items: center; font-weight: 900; letter-spacing: .02em; }
.hero-title span { display: block; opacity: 0; transform: translateY(24px) scale(.96); animation: rise .8s cubic-bezier(.2, .9, .3, 1.3) forwards; }
.hero-title .t1 { font-size: clamp(1.4rem, 4vw, 2.2rem); color: var(--navy); animation-delay: .1s; }
/* 大字「奇美」：藍字＋白色框線，後方疊橘色（貼紙風） */
.hero-title .qm {
  display: flex; justify-content: center; gap: .02em;
  font-size: clamp(6.6rem, 30vw, 14rem); line-height: 1.05; letter-spacing: -.04em;
  color: var(--navy); -webkit-text-stroke: .08em #fff; paint-order: stroke fill;
  margin: -.05em 0 .22em;
}
.hero-title .qm-c { display: inline-block; position: relative; opacity: 1; animation: none; transform: rotate(-6deg); }
.hero-title .qm-c::after { content: attr(data-t); position: absolute; left: 0; top: 0; z-index: -1; pointer-events: none; color: var(--orange); -webkit-text-stroke: .08em var(--orange); paint-order: stroke fill; transform: translate(.08em, .08em); }
.hero-title .qm-c + .qm-c { transform: rotate(5deg) translateY(.06em); }
.hero-title .qm-wrap { position: relative; animation-delay: .1s; }
/* 「116學年度」對話框，放在「美」的右上角 */
.hero-title .bubble {
  position: absolute; z-index: 2; left: calc(100% + .5em); top: -.3em;
  font-size: clamp(1rem, 2.6vw, 1.6rem); line-height: 1.2; white-space: nowrap; width: max-content;
  background: #fff; color: var(--ink); border: 3px solid var(--ink); border-radius: 18px;
  padding: .35em .7em; box-shadow: 4px 4px 0 var(--ink);
  transform-origin: 0 100%; opacity: 0; animation: bubblePop .6s cubic-bezier(.2, .9, .3, 1.5) .55s forwards;
}
.hero-title .bubble::before, .hero-title .bubble::after { content: ""; position: absolute; left: .9em; width: 0; height: 0; border-style: solid; }
.hero-title .bubble::before { bottom: -18px; border-width: 18px 16px 0 0; border-color: var(--ink) transparent transparent transparent; }
.hero-title .bubble::after { bottom: -11px; left: calc(.9em + 3px); border-width: 12px 10px 0 0; border-color: #fff transparent transparent transparent; }
.hero-title .bubble em { font-style: normal; font-family: var(--font-en); color: var(--red); font-size: 1.3em; margin-right: .08em; }
@keyframes bubblePop { from { opacity: 0; transform: rotate(8deg) scale(.3); } to { opacity: 1; transform: rotate(8deg) scale(1); } }
@media (max-width: 560px) {
  .hero-title .qm-wrap { margin-top: 2.5rem; }
  .hero-title .bubble { left: auto; right: -.4em; top: -2.85em; border-width: 2px; border-radius: 14px; box-shadow: 3px 3px 0 var(--ink); }
  .hero-title .bubble::before { left: auto; right: 1.4em; transform: scaleX(-1); }
  .hero-title .bubble::after { left: auto; right: calc(1.4em + 3px); transform: scaleX(-1); }
}
.hero-title .t3 { font-size: clamp(2.1rem, 7vw, 4.4rem); animation-delay: .4s; }
.hero-title .t3 b { font-family: var(--font-en); color: #fff; background: var(--navy); padding: 0 .25em; border-radius: .2em; display: inline-block; transform: rotate(-4deg); transform-origin: 50% 60%; animation: pgySway 2.6s ease-in-out 1s infinite; }
@keyframes pgySway { 0%, 100% { transform: rotate(-4deg); } 25% { transform: rotate(-7deg); } 75% { transform: rotate(-1deg); } }
.hero-title .t4 {
  font-size: clamp(2.3rem, 8vw, 5rem); animation-delay: .55s;
  background: linear-gradient(transparent 62%, var(--yellow) 62%, var(--yellow) 92%, transparent 92%);
  padding: 0 .1em;
}

.ecg { width: min(360px, 80%); margin: 10px auto 6px; }
.ecg path { fill: none; stroke: var(--red); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 560; stroke-dashoffset: 560; animation: ecg 3s linear infinite; }

.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 12px 0 20px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px 8px 10px; border-radius: 999px; font-weight: 700; font-size: clamp(.88rem, 2.2vw, 1rem); color: #fff; }
.chip svg { width: 26px; height: 26px; color: var(--ink); background: #fff; border-radius: 50%; padding: 3px; }
.c-navy { background: var(--navy); }
.c-orange { background: var(--orange); color: var(--ink); }
.c-red { background: var(--red); }

.countdown { display: flex; justify-content: center; gap: clamp(8px, 2vw, 14px); margin-bottom: 22px; }
.cd { width: clamp(62px, 15vw, 84px); padding: 8px 0 6px; border-radius: 18px; background: var(--soft); border: 3px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); }
.cd b { display: block; font-family: var(--font-en); font-size: clamp(1.4rem, 5vw, 2rem); font-weight: 900; line-height: 1.1; color: var(--navy); }
.cd:nth-child(2) b { color: var(--red); }
.cd:nth-child(3) b { color: var(--orange); }
.cd small { font-weight: 700; color: var(--muted); }
.cd b.tick { animation: pop .35s ease; }
.cd-done { font-weight: 700; color: var(--navy); }
.deadline { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px; padding: 8px 18px 8px 12px; border-radius: 18px; background: var(--yellow); color: var(--ink); text-decoration: none; border: 3px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); transform: rotate(-2deg); animation: dlWiggle 4s ease-in-out infinite 2s; transition: transform .2s, box-shadow .2s; }
.deadline:hover { transform: rotate(0) translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); animation-play-state: paused; }
.deadline:focus-visible { outline: 3px dashed var(--red); outline-offset: 4px; }
.dl-clock { font-size: 1.8rem; line-height: 1; display: inline-block; animation: ring 2s ease-in-out infinite; transform-origin: 50% 60%; }
.dl-run { font-size: 1.5rem; line-height: 1; display: inline-block; transform: scaleX(-1); animation: dash 1.2s ease-in-out infinite; }
.dl-txt { font-weight: 900; font-size: clamp(1.05rem, 3vw, 1.25rem); text-align: left; line-height: 1.25; }
.dl-txt b { color: var(--red); }
.dl-txt small { display: block; font-size: .72em; font-weight: 700; color: var(--navy); }
@keyframes ring { 0%, 50%, 100% { transform: rotate(0); } 5%, 15%, 25%, 35% { transform: rotate(-16deg); } 10%, 20%, 30%, 40% { transform: rotate(16deg); } }
@keyframes dash { 0%, 100% { transform: scaleX(-1) translateX(0); } 50% { transform: scaleX(-1) translateX(-5px); } }
@keyframes dlWiggle { 0%, 88%, 100% { transform: rotate(-2deg); } 91% { transform: rotate(2deg) scale(1.04); } 94% { transform: rotate(-4deg); } 97% { transform: rotate(1deg); } }
.hero-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }

.mascot { position: absolute; right: clamp(16px, 5vw, 60px); bottom: clamp(16px, 4vw, 40px); width: clamp(90px, 13vw, 150px); z-index: 3; animation: bob 4s ease-in-out infinite; }
.mascot .m-body { fill: var(--navy); stroke: #fff; stroke-width: 6; }
.mascot .m-eyes { transform-origin: 80px 80px; animation: blink 4.5s infinite; }
.mascot .m-wave { transform-origin: 140px 96px; animation: wave 1.6s ease-in-out infinite; }
.bubble {
  position: absolute; right: 70%; top: -12px; white-space: nowrap;
  background: var(--yellow); border: 3px solid var(--ink); border-radius: 18px 18px 4px 18px;
  padding: 4px 12px; font-weight: 900; font-size: clamp(.75rem, 1.8vw, .95rem);
  animation: bubble 4s ease-in-out infinite;
}

.scroll-hint { position: absolute; left: 50%; bottom: 22px; margin-left: -15px; z-index: 3; width: 30px; height: 48px; border: 3px solid var(--navy); border-radius: 20px; }
.scroll-hint span { position: absolute; left: 50%; top: 8px; width: 6px; height: 10px; margin-left: -3px; background: var(--red); border-radius: 3px; animation: scroll 1.6s ease-in-out infinite; }

@media (max-width: 960px) {
  .poster { padding: 140px 16px 170px; }
  .d-tl { top: -30px; left: -40px; }
  .d-tr { top: -20px; right: -40px; }
  .f1 { top: 12%; left: 46%; }
  .f2 { top: 8%; left: 72%; }
  .f3 { top: 88%; left: 46%; }
  .f6 { top: 86%; right: 60%; }
  .f4 { top: 30%; right: 4%; }
  .f7 { top: 32%; left: 4%; }
  .f8 { top: 16%; right: 8%; }
  .bubble { right: 80%; }
}

/* ---------- Sections ---------- */
.section { position: relative; padding: clamp(64px, 10vw, 110px) var(--gutter); max-width: 1180px; margin: 0 auto; }
.sec-head { text-align: center; margin-bottom: clamp(32px, 5vw, 56px); }
.sec-tag { display: block; font-family: var(--font-en); font-weight: 800; letter-spacing: .22em; font-size: .78rem; color: var(--red); margin-bottom: 6px; }
.sec-head h2 { font-size: clamp(2rem, 5.5vw, 3.2rem); font-weight: 900; display: inline-block; position: relative; }
.sec-head h2::after {
  content: ""; position: absolute; left: -6%; right: -6%; bottom: -14px; height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 14'%3E%3Cpath d='M2 8c10-8 20 8 30 0s20 8 30 0 20 8 30 0 20 8 26 0' fill='none' stroke='%23FFA319' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E") center/100% 100% no-repeat;
}
.sec-sub { margin: 24px 0 0; color: var(--muted); font-weight: 500; }

/* ---------- Info cards ---------- */
.info-sec::before { content: ""; position: absolute; inset: 0 calc(50% - 50vw); background: #EEF2FA; z-index: -2; }
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 3vw, 28px); }
.info-card {
  position: relative; border-radius: var(--radius); padding: 30px 26px 28px; color: #fff; overflow: hidden;
  border: 3px solid var(--ink); box-shadow: 8px 8px 0 var(--ink);
  transition: transform .25s, box-shadow .25s;
}
.info-card:hover { transform: translate(-3px, -3px) rotate(-1deg); box-shadow: 11px 11px 0 var(--ink); }
.info-card::before { content: ""; position: absolute; width: 180px; height: 180px; right: -60px; bottom: -70px; border-radius: 46% 54% 60% 40%; background: rgba(255, 255, 255, .18); animation: morph 7s ease-in-out infinite; }
.info-card h3 { font-size: 1rem; letter-spacing: .3em; opacity: .9; margin: 14px 0 4px; }
.info-card .big { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 900; margin: 0; }
.info-card p { margin: 2px 0 0; font-weight: 500; position: relative; }
.info-card .big2 { font-size: clamp(1.15rem, 2.2vw, 1.45rem); font-weight: 800; margin-top: 6px; }
.ic-navy { background: var(--navy); }
.ic-orange { background: var(--orange); color: var(--ink); }
.ic-red { background: var(--red); }
.ic-icon { width: 70px; height: 70px; background: #fff; border-radius: 22px; display: grid; place-items: center; color: var(--ink); border: 3px solid var(--ink); }
.ic-icon svg { width: 46px; height: 46px; }
.ic-icon.bounce svg { animation: hop 2.4s ease-in-out infinite; }
.ic-icon.tick .hand { transform-origin: 32px 34px; animation: spin 4s linear infinite; }
.ic-icon.shake svg { animation: wobble 2.6s ease-in-out infinite; }
.ic-yellow { background: var(--yellow); color: var(--ink); }

/* 活動亮點：沿用 info-card，5 張卡片 3+2 置中排列 */
.hl-grid { display: flex; flex-wrap: wrap; justify-content: center; }
.hl-grid > .info-card { flex: 0 1 calc((100% - 2 * clamp(16px, 3vw, 28px)) / 3); }
.info-card .hl-desc { font-size: clamp(1rem, 1.8vw, 1.1rem); margin-top: 8px; opacity: .92; }

@media (max-width: 860px) {
  .info-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; gap: 14px; }
  .hl-grid { flex-direction: column; flex-wrap: nowrap; }
  /* 手機：圖示放左邊、文字在右，卡片變矮 */
  .info-card { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: center; padding: 16px 18px; border-radius: 20px; box-shadow: 5px 5px 0 var(--ink); }
  .info-card > :not(.ic-icon) { grid-column: 2; }
  .info-card .ic-icon { grid-row: 1 / span 3; align-self: center; width: 50px; height: 50px; border-radius: 15px; }
  .info-card .ic-icon svg { width: 32px; height: 32px; }
  .info-card h3 { font-size: .8rem; letter-spacing: .2em; margin: 0 0 2px; }
  .info-card .big { font-size: 1.2rem; }
  .info-card .big2 { font-size: .95rem; margin-top: 2px; }
  .info-card .hl-desc { font-size: .88rem; margin-top: 3px; }
  .info-card::before { width: 110px; height: 110px; right: -40px; bottom: -50px; }
}

/* marquee */
.marquee { margin: clamp(48px, 7vw, 72px) calc(50% - 50vw - 20px) 0; background: var(--navy); transform: rotate(-2deg); overflow: hidden; border-block: 4px solid var(--ink); }
.marquee-track { display: flex; align-items: center; gap: 22px; width: max-content; padding: 14px 0; animation: marquee 22s linear infinite; }
.marquee-track span { color: #fff; font-weight: 900; font-size: clamp(1.2rem, 3vw, 1.8rem); white-space: nowrap; }
.marquee-track svg { width: 28px; height: 28px; color: var(--yellow); flex: none; }
.marquee-track svg:nth-of-type(even) { color: var(--orange); }

/* ---------- Agenda timeline ---------- */
.agenda-sec { overflow: visible; --bg: var(--band); }
.agenda-sec::before, .exchange-sec::before { content: ""; position: absolute; inset: 0 calc(50% - 50vw); background: var(--band); z-index: -2; }
.exchange-sec::before { background: #EEF2FA; }
.sec-blob { position: absolute; width: 260px; z-index: -1; opacity: .9; animation: floatA 12s ease-in-out infinite; }
.sec-blob path { fill: var(--yellow); }
.sb1 { top: 120px; left: -80px; }
.sb2 { bottom: 60px; right: -60px; width: 220px; }
.sb2 path { fill: #FFE2B0; }

.timeline { list-style: none; margin: 0 auto; padding: 0; position: relative; max-width: 980px; }
.timeline::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 6px; margin-left: -3px;
  background: repeating-linear-gradient(var(--navy) 0 14px, transparent 14px 24px);
  border-radius: 3px;
}
.tl-item { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 0 64px; align-items: center; margin-bottom: 28px; }
.tl-item time {
  font-family: var(--font-en); font-weight: 800; font-size: clamp(1rem, 2vw, 1.25rem);
  justify-self: end; background: #fff; padding: 6px 16px; border-radius: 999px; border: 3px solid var(--ink);
  white-space: nowrap;
}
.tl-item time i { font-style: normal; color: var(--red); margin: 0 4px; }
.tl-item::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px;
  border-radius: 50%; background: var(--c, var(--navy)); border: 4px solid var(--ink); z-index: 1;
  box-shadow: 0 0 0 6px var(--bg);
}
.tl-item:nth-child(even) time { grid-column: 2; grid-row: 1; justify-self: start; }
.tl-item:nth-child(even) .tl-card { grid-column: 1; grid-row: 1; }

.tl-card {
  display: flex; gap: 16px; align-items: center; text-decoration: none;
  background: #fff; border-radius: 24px; padding: 18px 20px; border: 3px solid var(--ink);
  box-shadow: 6px 6px 0 var(--c, var(--navy));
  transition: transform .25s, box-shadow .25s;
  position: relative;
}
.tl-card:hover, .tl-card.active { transform: translate(-3px, -3px) rotate(-.6deg); box-shadow: 10px 10px 0 var(--c, var(--navy)); }
.tl-icon { flex: none; width: 66px; height: 66px; border-radius: 20px; display: grid; place-items: center; background: var(--c, var(--navy)); color: var(--ink); border: 3px solid var(--ink); }
.tl-icon svg { width: 46px; height: 46px; }
.tl-card:hover .tl-icon.wobble svg, .tl-card.active .tl-icon.wobble svg { animation: wobble .8s ease-in-out; }
.tl-body h3 { font-size: clamp(1.15rem, 2.4vw, 1.4rem); font-weight: 900; }
.tl-body h3 span { display: inline; }
.tl-body h3 span.sub { display: block; font-size: .78em; font-weight: 700; color: var(--muted); margin-top: 2px; }
.tl-note { margin: 4px 0 0; color: var(--muted); font-size: .95rem; }
.tl-note u { color: var(--red); font-weight: 700; text-decoration: none; }
.spk { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.spk li { background: var(--soft); border-radius: 12px; padding: 4px 12px; font-size: 1.15rem; }
.spk small { color: var(--muted); margin-right: 6px; font-size: .9em; }
.spk b { font-weight: 900; }

.t-navy { --c: var(--navy); }
.t-navy .tl-icon { color: #fff; background: #DCE4F7; color: var(--navy); }
.t-orange { --c: var(--orange); }
.t-red { --c: var(--red); }
.t-yellow { --c: var(--yellow); }
.t-gray { --c: #C9D6F2; }
.t-break { --c: var(--orange); }
.t-break .tl-card { background: repeating-linear-gradient(45deg, #FFF6E2 0 14px, #fff 14px 28px); }
.t-orange .tl-icon, .t-red .tl-icon, .t-yellow .tl-icon, .t-break .tl-icon { background: #FFF1DA; }
.t-red .tl-icon { background: #FFE3D8; }
.t-rainbow { --c: var(--red); }
.t-rainbow .tl-card { background: linear-gradient(135deg, #fff 60%, #FFF1DA); }
.t-rainbow .tl-icon { background: #DCE4F7; }
.coffee .steam { animation: steam 2s ease-in-out infinite; }
.drive { animation: drive 1.2s ease-in-out infinite; }

@media (max-width: 960px) {
  .timeline::before { left: 18px; }
  .tl-item, .tl-item:nth-child(even) { grid-template-columns: 1fr; gap: 10px; padding-left: 48px; }
  .tl-item time, .tl-item:nth-child(even) time { grid-column: 1; grid-row: 1; justify-self: start; font-size: .98rem; }
  .tl-item:nth-child(even) .tl-card { grid-column: 1; grid-row: 2; }
  .tl-item::after { left: 18px; top: 20px; }
  .tl-card { padding: 14px; gap: 12px; }
  .tl-icon { width: 54px; height: 54px; border-radius: 16px; }
  .spk li { font-size: 1.05rem; white-space: nowrap; }
  .spk small { display: block; margin: 0 0 1px; }
  .spk-link { display: inline-block; }
  .tl-icon svg { width: 38px; height: 38px; }
  .sec-blob { width: 160px; }
}

/* ---------- Exchange tabs ---------- */
.exchange-sec { max-width: 980px; }
.slogan { display: flex; align-items: center; gap: 12px; width: fit-content; max-width: 100%; margin: -6px auto 28px; padding: 8px 22px 8px 8px; border-radius: 999px; background: var(--navy); color: #fff; border: 3px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.slogan.in { animation: slBob 3.6s ease-in-out .8s infinite; }
.sl-badge { position: relative; flex: none; width: 58px; height: 58px; border-radius: 50%; background: var(--yellow); display: grid; place-items: center; }
.sl-badge i { position: absolute; inset: 4px; border-radius: 50%; border: 3px dashed var(--ink); animation: spin 6s linear infinite; }
.sl-badge b { position: relative; font-family: var(--font-en); font-weight: 900; font-size: .95rem; color: var(--ink); }
.sl-txt { font-weight: 900; font-size: clamp(1.05rem, 3.2vw, 1.35rem); line-height: 1.3; }
.sl-txt > span { white-space: nowrap; }
.sl-txt b { font-family: var(--font-en); color: var(--yellow); }
.sl-spark { font-size: 1.4rem; animation: twinkle 2s ease-in-out infinite; }
@keyframes slBob { 0%, 100% { transform: rotate(-1.5deg) translateY(0); } 50% { transform: rotate(1deg) translateY(-4px); } }
@media (max-width: 420px) { .sl-txt > span { display: block; } .sl-spark { display: none; } }
.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 26px; }
.tab {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  padding: 8px 18px 8px 10px; min-height: 48px; border-radius: 999px; border: 3px solid var(--ink);
  background: #fff; font-weight: 900; font-size: 1rem; color: var(--ink);
  transition: transform .2s, background .2s, box-shadow .2s;
}
.tab svg { width: 32px; height: 32px; color: var(--ink); }
.tab:hover { transform: translateY(-3px); }
.tab[aria-selected="true"] { background: var(--k); color: var(--kt, #fff); box-shadow: 4px 4px 0 var(--ink); transform: translateY(-3px); }
.tab[aria-selected="true"] svg { animation: wobble .8s ease-in-out; }
.k-navy { --k: var(--navy); }
.k-red { --k: var(--red); }
.k-orange { --k: var(--orange); --kt: var(--ink); }
.k-yellow { --k: var(--yellow); --kt: var(--ink); }

.panels { position: relative; }
.panel {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 300px)); justify-content: center; gap: 16px;
  padding: clamp(18px, 3vw, 30px); border-radius: var(--radius); background: var(--k); border: 3px solid var(--ink);
  box-shadow: 8px 8px 0 var(--ink);
  animation: panelIn .45s cubic-bezier(.2, .9, .3, 1.2);
}
.panel[hidden] { display: none; }
.doc { display: flex; align-items: center; gap: 14px; background: #fff; border-radius: 20px; padding: 14px 16px; border: 3px solid var(--ink); animation: panelIn .5s cubic-bezier(.2, .9, .3, 1.2) both; }
.doc:nth-child(2) { animation-delay: .08s; }
.doc:nth-child(3) { animation-delay: .16s; }
.doc small { display: block; color: var(--muted); font-weight: 700; font-size: .82rem; }
.doc b { font-size: 1.25rem; font-weight: 900; }
.doc-link { text-decoration: none; color: inherit; position: relative; transition: transform .15s, box-shadow .15s; }
.doc-link:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--ink); }
.doc-link .ext { margin-left: auto; align-self: flex-start; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--yellow); border: 2px solid var(--ink); font-weight: 900; font-size: .9rem; }
.doc-link:focus-visible, .spk-link:focus-visible { outline: 3px dashed var(--red); outline-offset: 3px; }
.spk-link { color: inherit; text-decoration: none; border-bottom: 2px dashed var(--red); }
.spk-link:hover { color: var(--red); }
.spk-link .ext { color: var(--red); font-weight: 900; }
.av {
  flex: none; width: 56px; height: 56px; display: grid; place-items: center; font-weight: 900; font-size: 1.4rem;
  color: #fff; background: var(--navy); border-radius: 46% 54% 42% 58% / 52% 44% 56% 48%; border: 3px solid var(--ink);
  animation: morph 6s ease-in-out infinite;
}
.k-navy .av { background: var(--red); }
.k-red .av { background: var(--navy); }
.k-orange .av, .k-yellow .av { background: var(--red); }

/* ---------- Map ---------- */
.map-wrap { display: grid; grid-template-columns: 1fr 1.4fr; gap: 24px; align-items: stretch; }
.map-card { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 30px; border: 3px solid var(--ink); box-shadow: 8px 8px 0 var(--ink); display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.map-card h3 { font-size: clamp(1.3rem, 2.6vw, 1.6rem); font-weight: 900; }
.map-card p { margin: 0 0 8px; opacity: .9; }
.map-pin { width: 64px; height: 64px; border-radius: 50%; background: #fff; display: grid; place-items: center; color: var(--ink); }
.map-pin svg { width: 44px; height: 44px; animation: hop 1.8s ease-in-out infinite; }
.map-frame { border-radius: var(--radius); overflow: hidden; border: 3px solid var(--ink); box-shadow: 8px 8px 0 var(--orange); min-height: 320px; background: #dfe6f3; }
.map-frame iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; }
@media (max-width: 860px) { .map-wrap { grid-template-columns: 1fr; } }

/* ---------- Join ---------- */
.join {
  position: relative; text-align: center; color: #fff; overflow: hidden;
  background: var(--red); border-radius: 40px; padding: clamp(48px, 8vw, 80px) clamp(20px, 5vw, 60px);
  border: 4px solid var(--ink); box-shadow: 10px 10px 0 var(--navy);
}
.join::before, .join::after { content: ""; position: absolute; border-radius: 50%; }
.join::before { width: 260px; height: 260px; left: -90px; top: -90px; background: var(--orange); animation: morph 9s ease-in-out infinite; border-radius: 42% 58% 60% 40%; }
.join::after { width: 220px; height: 220px; right: -70px; bottom: -80px; background: var(--navy); animation: morph 10s ease-in-out infinite reverse; border-radius: 58% 42% 40% 60%; }
.join > * { position: relative; z-index: 1; }
.join h2 { font-size: clamp(2.2rem, 7vw, 4rem); font-weight: 900; text-shadow: 4px 4px 0 var(--ink); }
.join p { font-size: clamp(1rem, 2.4vw, 1.15rem); margin: 14px auto 26px; max-width: 520px; }
.join-btns { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.join-deco { position: absolute; width: 46px; height: 46px; }
.jd1 { top: 24px; right: 12%; color: var(--yellow); animation: twinkle 2s ease-in-out infinite; }
.jd2 { bottom: 26px; left: 10%; color: var(--yellow); animation: spin 10s linear infinite; }
.jd3 { top: 40%; left: 6%; animation: beat 1.2s ease-in-out infinite; }
@media (max-width: 560px) { .jd3 { display: none; } .join-btns .btn { width: 100%; } }

/* ---------- Registration form ---------- */
.register-sec { max-width: 860px; }
.register-sec::before { content: ""; position: absolute; inset: 0 calc(50% - 50vw); background: var(--band); z-index: -2; }
.reg-form, .reg-done {
  background: #fff; border: 3px solid var(--ink); border-radius: var(--radius);
  box-shadow: 10px 10px 0 var(--navy); padding: clamp(20px, 4vw, 44px);
}
.reg-group { border: 0; margin: 0 0 28px; padding: 0; min-width: 0; }
.reg-group legend { display: flex; align-items: center; gap: 10px; font-size: clamp(1.2rem, 3vw, 1.45rem); font-weight: 900; margin-bottom: 18px; padding: 0; }
.lg-num { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--red); color: #fff; border: 3px solid var(--ink); font-size: 1rem; }
.reg-group + .reg-group legend .lg-num { background: var(--orange); color: var(--ink); }
.field { margin-bottom: 22px; }
.field > label, .field > .label { display: block; font-weight: 700; margin-bottom: 8px; }
.req { color: var(--red); font-weight: 900; margin-left: 2px; }
.hint { margin: -4px 0 8px; color: var(--muted); font-size: .92rem; }
.reg-form input[type="text"], .reg-form input[type="email"], .reg-form select, .reg-form textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  padding: 12px 16px; min-height: 50px; border-radius: 16px;
  border: 3px solid var(--ink); background: var(--soft);
  transition: box-shadow .2s, background .2s;
  -webkit-appearance: none; appearance: none;
}
.reg-form textarea { resize: vertical; min-height: 120px; line-height: 1.6; }
.reg-form input:focus, .reg-form select:focus, .reg-form textarea:focus { outline: none; background: #fff; box-shadow: 4px 4px 0 var(--orange); }
.select-wrap { position: relative; }
.select-wrap::after { content: ""; position: absolute; right: 18px; top: 50%; width: 10px; height: 10px; margin-top: -8px; border: solid var(--ink); border-width: 0 3px 3px 0; transform: rotate(45deg); pointer-events: none; }
.reg-form select { padding-right: 44px; cursor: pointer; }
.other { margin-top: 10px; animation: panelIn .35s ease; }

.chips-input { display: flex; flex-wrap: wrap; gap: 10px; }
.pick { position: relative; cursor: pointer; }
.pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pick span {
  display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 8px 16px 8px 12px;
  border-radius: 999px; border: 3px solid var(--ink); background: #fff; font-weight: 700;
  transition: background .2s, transform .15s, box-shadow .15s;
}
.pick span::before { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 3px solid var(--ink); background: #fff; flex: none; transition: background .2s; }
.pick input[type="checkbox"] + span::before { border-radius: 4px; }
.pick-other { display: flex; align-items: center; gap: 10px; flex: 1 1 280px; }
.reg-form .pick-other input[type="text"] { flex: 1; min-width: 0; min-height: 44px; padding: 8px 14px; }
.pick:hover span { transform: translateY(-2px); }
.pick input:checked + span { background: var(--navy); color: #fff; box-shadow: 3px 3px 0 var(--ink); }
.pick input:checked + span::before { background: var(--yellow); }
.pick input:focus-visible + span { outline: 3px dashed var(--red); outline-offset: 3px; }

.err { display: none; margin: 6px 0 0; color: var(--red); font-weight: 700; font-size: .9rem; }
.field.invalid .err { display: block; }
.field.invalid input, .field.invalid select { border-color: var(--red); background: #FFF1EC; }
.field.invalid .pick span { border-color: var(--red); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.reg-actions { text-align: center; }
.btn-lg { min-width: 220px; font-size: 1.15rem; min-height: 56px; }
.btn[disabled] { opacity: .7; cursor: progress; transform: none; }
.spinner { display: none; width: 20px; height: 20px; border-radius: 50%; border: 3px solid rgba(255,255,255,.4); border-top-color: #fff; animation: spin .8s linear infinite; }
.btn.loading .spinner { display: inline-block; }
.reg-msg { margin: 14px 0 0; font-weight: 700; min-height: 1.6em; }
.reg-msg.error { color: var(--red); }

.reg-done { text-align: center; animation: panelIn .5s cubic-bezier(.2, .9, .3, 1.2); }
.reg-done:focus { outline: none; }
.done-icon { width: 96px; height: 96px; margin: 0 auto 12px; border-radius: 50%; background: var(--soft); border: 3px solid var(--ink); display: grid; place-items: center; }
.done-icon svg { width: 60px; height: 60px; animation: beat 1.2s ease-in-out infinite; }
.reg-done h3 { font-size: clamp(1.8rem, 5vw, 2.4rem); font-weight: 900; }
.reg-done p { font-size: 1.1rem; margin: 10px 0 22px; }
.reg-done p.done-note { font-size: 1rem; color: var(--muted); margin-top: -12px; }
.done-note a, .reg-closed p a { color: var(--red); font-weight: 700; }
.reg-closed .done-icon svg { animation: none; }
.reg-closed p { margin-bottom: 0; }
.deadline.closed { background: #fff; transform: rotate(-2deg); animation: none; }
.deadline.closed .dl-clock, .deadline.closed .dl-run { display: none; }
.deadline.closed .dl-txt { text-align: center; }
.confetti { position: fixed; top: -20px; width: 10px; height: 14px; z-index: 100; pointer-events: none; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(110vh) rotate(720deg); } }
@media (max-width: 560px) { .pick span { padding: 6px 14px 6px 10px; } .btn-lg { width: 100%; } }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed; z-index: 60; right: max(16px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom));
  width: 62px; height: 62px; border-radius: 50%; text-decoration: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--red); color: #fff; border: 3px solid var(--ink); box-shadow: 4px 4px 0 var(--ink);
  font-family: var(--font-en); font-weight: 900; font-size: .68rem; letter-spacing: .08em; line-height: 1;
  opacity: 0; transform: translateY(24px) scale(.6); pointer-events: none;
  transition: opacity .3s, transform .35s cubic-bezier(.2, .9, .3, 1.4), box-shadow .15s, background .2s;
}
.to-top svg { width: 30px; height: 30px; margin-bottom: 1px; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top.show:hover { background: var(--navy); transform: translate(-2px, -4px); box-shadow: 6px 8px 0 var(--ink); }
.to-top.show:hover svg { animation: hop .8s ease-in-out infinite; }
.to-top:focus-visible { outline: 3px dashed var(--navy); outline-offset: 3px; }
.to-top.launch { animation: launch .6s ease-in forwards; }
@keyframes launch { 40% { transform: translateY(6px) scale(.95); } 100% { transform: translateY(-120vh); opacity: 0; } }
@media (max-width: 560px) { .to-top { width: 54px; height: 54px; } .to-top svg { width: 26px; height: 26px; } }

/* ---------- 瀏覽人次 ---------- */
.view-count {
  position: fixed; z-index: 59; right: max(16px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 6px; padding: 5px 12px 5px 8px; border-radius: 999px;
  background: var(--yellow); color: var(--ink); border: 3px solid var(--ink); box-shadow: 3px 3px 0 var(--ink);
  font-size: .78rem; font-weight: 700; line-height: 1.2; white-space: nowrap;
  animation: vc-in .4s cubic-bezier(.2, .9, .3, 1.4);
}
.view-count[hidden] { display: none; }
.view-count svg { width: 20px; height: 20px; flex: none; }
.view-count b { font-family: var(--font-en); font-weight: 900; font-variant-numeric: tabular-nums; }
@keyframes vc-in { from { opacity: 0; transform: translateY(12px); } }
/* 有瀏覽人次時，TOP 按鈕往上移，避免重疊 */
.view-count:not([hidden]) ~ .to-top { bottom: calc(max(18px, env(safe-area-inset-bottom)) + 44px); }
@media (max-width: 560px) { .view-count { font-size: .72rem; padding: 4px 10px 4px 6px; } .view-count svg { width: 18px; height: 18px; } }
@media print { .view-count { display: none !important; } }

/* ---------- Footer ---------- */
.footer { position: relative; text-align: center; padding: 34px var(--gutter) 30px; background: var(--navy); color: #fff; border-top: 4px solid var(--ink); overflow: hidden; }
.footer::before, .footer::after { content: ""; position: absolute; border-radius: 46% 54% 60% 40%; animation: morph 10s ease-in-out infinite; }
.footer::before { width: 130px; height: 130px; left: -60px; top: -60px; background: var(--orange); }
.footer::after { width: 110px; height: 110px; right: -45px; bottom: -50px; background: var(--yellow); }
.contact { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: clamp(16px, 3vw, 32px); max-width: 860px; margin: 0 auto; }
.contact-title {
  flex: none; font-size: clamp(1.1rem, 2.6vw, 1.35rem); font-weight: 900; color: var(--ink);
  background: var(--yellow); padding: 8px 16px; border-radius: 14px; border: 3px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink); transform: rotate(-8deg); animation: tilt 3s ease-in-out infinite;
}
@keyframes tilt { 0%, 100% { transform: rotate(-8deg); } 50% { transform: rotate(-3deg) translateY(-3px); } }
.contact-body { text-align: left; min-width: 0; }
.contact-who { margin: 0 0 10px; font-size: 1rem; opacity: .95; }
.contact-who b { font-size: 1.2em; font-weight: 900; margin: 0 2px; }
.contact-links { display: flex; flex-wrap: wrap; gap: 10px; }
.contact-link {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  background: #fff; color: var(--ink); border: 2px solid var(--ink); border-radius: 999px;
  padding: 5px 14px 5px 6px; box-shadow: 3px 3px 0 var(--ink); font-weight: 700; font-size: .92rem; overflow-wrap: anywhere;
  transition: transform .15s, box-shadow .15s;
}
.contact-link:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); }
.contact-link:hover .ct-icon svg { animation: wobble .8s ease-in-out; }
.contact-link:focus-visible { outline: 3px dashed var(--yellow); outline-offset: 3px; }
.contact-link small { display: none; }
.ct-icon { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--soft); display: grid; place-items: center; }
.ct-icon svg { width: 20px; height: 20px; }
@media (max-width: 600px) {
  .contact { flex-direction: column; gap: 14px; }
  .contact-body { text-align: center; }
  .contact-links { justify-content: center; }
  .footer { padding-bottom: 84px; }
}
.credit { position: relative; z-index: 1; margin: 18px 0 0; font-size: .82rem; opacity: .75; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .9, .3, 1.2); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Keyframes ---------- */
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes ecg { 0% { stroke-dashoffset: 560; } 60% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -560; } }
@keyframes floatA { 0%, 100% { transform: translate(0, 0) rotate(0); } 50% { transform: translate(8px, 12px) rotate(3deg); } }
@keyframes floatB { 0%, 100% { transform: translate(0, 0) rotate(0); } 50% { transform: translate(-10px, 8px) rotate(-3deg); } }
@keyframes morph { 0%, 100% { border-radius: 46% 54% 60% 40% / 50% 44% 56% 50%; transform: scale(1); } 50% { border-radius: 60% 40% 44% 56% / 42% 58% 42% 58%; transform: scale(1.04); } }
@keyframes sway { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-12px) rotate(4deg); } }
@keyframes beat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.18); } 30% { transform: scale(.96); } 45% { transform: scale(1.1); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes twinkle { 0%, 100% { transform: scale(1) rotate(0); opacity: 1; } 50% { transform: scale(.6) rotate(30deg); opacity: .6; } }
@keyframes blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
@keyframes wave { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-18deg); } }
@keyframes bubble { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-4px) scale(1.04); } }
@keyframes scroll { 0% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(18px); opacity: 0; } }
@keyframes pop { 0% { transform: scale(1); } 50% { transform: scale(1.25); } 100% { transform: scale(1); } }
@keyframes hop { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-8px); } 60% { transform: translateY(0); } 70% { transform: translateY(-3px); } }
@keyframes wobble { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-14deg) scale(1.1); } 40% { transform: rotate(10deg); } 60% { transform: rotate(-6deg); } 80% { transform: rotate(3deg); } }
@keyframes steam { 0% { transform: translateY(2px); opacity: .3; } 50% { transform: translateY(-3px); opacity: 1; } 100% { transform: translateY(2px); opacity: .3; } }
@keyframes drive { 0%, 100% { transform: translateX(-3px); } 50% { transform: translateX(3px); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes panelIn { from { opacity: 0; transform: translateY(16px) scale(.97); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
  .hero-title span { opacity: 1; transform: none; }
  .reveal { opacity: 1; transform: none; }
}
@media (max-width: 400px) { .brand { font-size: .92rem; gap: 8px; padding-right: 12px; } .brand-emblem { height: 40px; margin-left: 8px; } }
