/* ========================================================================
   智慧醫療跨領域學士學位學程｜課程與專題說明會
   Vanilla CSS — no framework
   ======================================================================== */

:root{
  --navy-950:#060b16;
  --navy-900:#0a1424;
  --navy-850:#0d1a30;
  --navy-800:#11213c;
  --navy-700:#172a4a;
  --navy-600:#22385f;
  --line:rgba(255,255,255,0.10);
  --line-soft:rgba(255,255,255,0.06);

  --teal:#4fe8d3;
  --teal-soft:#7EEFDE;
  --coral:#ff6b5e;
  --coral-soft:#ff9a8f;
  --gold:#ffc65c;

  --ink:#f4f7fb;
  --ink-dim:#c3cede;
  --ink-faint:#8896ab;

  --font-cjk:'Noto Sans TC', -apple-system, 'PingFang TC', 'Microsoft JhengHei', sans-serif;
  --font-num:'Space Grotesk', var(--font-cjk);

  --wrap:1180px;
  --radius-lg:28px;
  --radius-md:18px;
  --radius-sm:12px;

  --shadow-lg:0 30px 60px -20px rgba(0,0,0,0.55);
  --shadow-md:0 16px 32px -14px rgba(0,0,0,0.5);
}

*,*::before,*::after{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0;
  background:var(--navy-950);
  color:var(--ink);
  font-family:var(--font-cjk);
  font-weight:400;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
img{max-width:100%;display:block;}
a{color:inherit;text-decoration:none;}
h1,h2,h3,h4{margin:0;font-weight:900;letter-spacing:-0.01em;}
p{margin:0;}
button{font:inherit;color:inherit;background:none;border:none;cursor:pointer;}
.wrap{
  width:100%;
  max-width:var(--wrap);
  margin:0 auto;
  padding:0 32px;
}

/* ---------------------------------------------------------------------
   Background FX
   --------------------------------------------------------------------- */
.bg-fx{
  position:fixed;
  inset:0;
  z-index:0;
  pointer-events:none;
  overflow:hidden;
}
.glow{
  position:absolute;
  border-radius:50%;
  filter:blur(120px);
  opacity:0.35;
}
.glow-teal{
  width:640px;height:640px;
  top:-220px;left:-160px;
  background:radial-gradient(circle,var(--teal) 0%,transparent 70%);
}
.glow-coral{
  width:560px;height:560px;
  bottom:-200px;right:-160px;
  background:radial-gradient(circle,var(--coral) 0%,transparent 70%);
  opacity:0.22;
}
.bg-fx .net{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  opacity:0.05;
}

main,header,footer{position:relative;z-index:1;}

/* ---------------------------------------------------------------------
   Header / Nav
   --------------------------------------------------------------------- */
.site-header{
  position:sticky;
  top:0;
  z-index:50;
  background:rgba(6,11,22,0.55);
  backdrop-filter:blur(14px) saturate(140%);
  -webkit-backdrop-filter:blur(14px) saturate(140%);
  border-bottom:1px solid transparent;
  transition:background .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.site-header.is-scrolled{
  background:rgba(6,11,22,0.86);
  border-bottom-color:var(--line);
  box-shadow:0 10px 30px -18px rgba(0,0,0,0.6);
}
.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  height:76px;
}
.brand{
  display:flex;
  align-items:center;
  gap:12px;
  font-weight:700;
  font-size:15px;
  min-width:0;
}
.brand-mark{
  flex:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:38px;height:38px;
  border-radius:10px;
  background:linear-gradient(135deg,var(--teal),var(--coral));
  color:var(--navy-950);
  font-family:var(--font-num);
  font-weight:700;
  font-size:14px;
  letter-spacing:0.02em;
}
.brand-text{
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  color:var(--ink);
}
.nav{
  display:flex;
  align-items:center;
  gap:36px;
  font-size:15px;
  font-weight:500;
  color:var(--ink-dim);
}
.nav a{
  position:relative;
  padding:6px 0;
  transition:color .2s ease;
}
.nav a:hover{color:var(--ink);}
.nav a.is-active{color:var(--teal);}
.nav a:not(.nav-cta)::after{
  content:"";
  position:absolute;
  left:0;right:100%;
  bottom:-2px;
  height:2px;
  background:var(--teal);
  transition:right .25s ease;
}
.nav a.is-active::after{right:0;}
.nav-cta{
  background:var(--teal);
  color:var(--navy-950)!important;
  padding:10px 20px;
  border-radius:999px;
  font-weight:700;
  transition:transform .2s ease, box-shadow .2s ease;
}
.nav-cta:hover{
  transform:translateY(-1px);
  box-shadow:0 10px 24px -8px rgba(79,232,211,0.6);
}
.nav-toggle{
  display:none;
  flex-direction:column;
  justify-content:center;
  gap:5px;
  width:40px;height:40px;
  border-radius:10px;
}
.nav-toggle span{
  display:block;
  width:22px;height:2px;
  background:var(--ink);
  margin:0 auto;
  transition:transform .25s ease, opacity .25s ease;
}
.nav-toggle.is-open span:nth-child(1){transform:translateY(7px) rotate(45deg);}
.nav-toggle.is-open span:nth-child(2){opacity:0;}
.nav-toggle.is-open span:nth-child(3){transform:translateY(-7px) rotate(-45deg);}

/* ---------------------------------------------------------------------
   Section shell
   --------------------------------------------------------------------- */
.section{
  padding:120px 0;
  border-top:1px solid var(--line-soft);
}
.section-alt{background:var(--navy-900);}
.section-kicker{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-family:var(--font-num);
  font-weight:700;
  font-size:14px;
  letter-spacing:0.14em;
  text-transform:uppercase;
  color:var(--teal);
  margin:0 0 18px;
}
.section-kicker::before{
  content:"";
  width:26px;height:2px;
  background:var(--teal);
  display:inline-block;
}
.section-kicker-onlight{color:var(--navy-950);}
.section-kicker-onlight::before{background:var(--navy-950);}
.section-title{
  font-size:clamp(32px,4vw,48px);
  line-height:1.15;
  max-width:20ch;
  margin-bottom:20px;
}
.section-desc{
  font-size:19px;
  line-height:1.7;
  color:var(--ink-dim);
  max-width:62ch;
  margin-bottom:56px;
}

/* reveal-on-scroll */
.reveal{
  opacity:0;
  transform:translateY(28px);
  transition:opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1);
}
.reveal.is-visible{opacity:1;transform:none;}

/* ---------------------------------------------------------------------
   Hero
   --------------------------------------------------------------------- */
.hero{
  padding:170px 0 120px;
  position:relative;
}
.hero-inner{
  max-width:900px;
}
.eyebrow{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:9px 18px;
  border-radius:999px;
  border:1px solid var(--line);
  background:rgba(255,255,255,0.04);
  font-size:14px;
  font-weight:700;
  color:var(--ink-dim);
  margin-bottom:32px;
}
.hero-title{
  font-size:clamp(46px,7vw,84px);
  line-height:1.06;
  letter-spacing:-0.02em;
  color:var(--ink);
  margin-bottom:18px;
}
.hero-subtitle{
  font-size:clamp(24px,3vw,34px);
  font-weight:700;
  color:var(--teal);
  margin-bottom:28px;
}
.hero-tagline{
  display:flex;
  align-items:center;
  gap:18px;
  font-family:var(--font-num);
  font-size:clamp(20px,2.4vw,28px);
  font-weight:700;
  color:var(--ink-dim);
  margin-bottom:36px;
}
.hero-tagline span{color:var(--ink);}
.hero-tagline em{
  font-style:normal;
  color:var(--coral);
  font-weight:600;
}
.hero-intro{
  font-size:19px;
  line-height:1.85;
  color:var(--ink-dim);
  max-width:66ch;
  margin-bottom:48px;
}
.hero-actions{
  display:flex;
  flex-wrap:wrap;
  gap:18px;
  margin-bottom:64px;
}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:18px 32px;
  border-radius:999px;
  font-size:17px;
  font-weight:700;
  transition:transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space:nowrap;
}
.btn-primary{
  background:linear-gradient(135deg,var(--teal),#37c9b4);
  color:var(--navy-950);
  box-shadow:0 18px 36px -14px rgba(79,232,211,0.55);
}
.btn-primary:hover{transform:translateY(-2px);box-shadow:0 22px 44px -14px rgba(79,232,211,0.7);}
.btn-lg{padding:20px 40px;font-size:18px;}
.btn-ghost{
  border:1px solid var(--line);
  color:var(--ink);
  background:rgba(255,255,255,0.03);
}
.btn-ghost:hover{background:rgba(255,255,255,0.08);border-color:rgba(255,255,255,0.25);}
.btn-ghost-light{
  border:1px solid rgba(6,11,22,0.25);
  color:var(--navy-950);
  background:rgba(6,11,22,0.06);
}
.btn-ghost-light:hover{background:rgba(6,11,22,0.14);}
.btn-ghost-light.is-copied{background:var(--navy-950);color:var(--teal-soft);}

.hero-countdown{
  display:inline-flex;
  flex-direction:column;
  gap:16px;
  padding:24px 30px;
  border-radius:var(--radius-md);
  background:rgba(255,255,255,0.04);
  border:1px solid var(--line);
}
.countdown-label{
  font-size:14px;
  font-weight:600;
  color:var(--ink-faint);
  letter-spacing:0.02em;
}
.countdown-nums{
  display:flex;
  gap:14px;
}
.countdown-nums div{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:4px;
  min-width:66px;
  padding:12px 8px;
  border-radius:var(--radius-sm);
  background:var(--navy-900);
  border:1px solid var(--line);
}
.countdown-nums strong{
  font-family:var(--font-num);
  font-size:30px;
  font-weight:700;
  color:var(--teal-soft);
  line-height:1;
}
.countdown-nums small{
  font-size:12px;
  color:var(--ink-faint);
  font-weight:600;
}

/* ---------------------------------------------------------------------
   Schedule
   --------------------------------------------------------------------- */
.sched-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:20px;
  margin-bottom:44px;
}
.sched-card{
  padding:30px 26px;
  border-radius:var(--radius-md);
  background:linear-gradient(180deg,var(--navy-800),var(--navy-850));
  border:1px solid var(--line);
  transition:transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.sched-card:hover{
  transform:translateY(-4px);
  border-color:rgba(79,232,211,0.4);
  box-shadow:var(--shadow-md);
}
.sched-date{
  display:flex;
  align-items:baseline;
  gap:10px;
  margin-bottom:18px;
  padding-bottom:18px;
  border-bottom:1px solid var(--line);
}
.sched-date .num{
  font-family:var(--font-num);
  font-size:34px;
  font-weight:700;
  color:var(--ink);
}
.sched-date .wd{
  font-size:15px;
  font-weight:700;
  color:var(--teal-soft);
}
.sched-meta{
  display:flex;
  align-items:center;
  gap:10px;
  font-size:15px;
  color:var(--ink-dim);
  margin-top:10px;
}
.sched-meta:first-of-type{margin-top:0;}
.ico{
  flex:none;
  width:18px;height:18px;
  display:inline-block;
  background-color:var(--teal-soft);
  opacity:0.9;
  -webkit-mask-repeat:no-repeat;
  mask-repeat:no-repeat;
  -webkit-mask-position:center;
  mask-position:center;
  -webkit-mask-size:contain;
  mask-size:contain;
}
.ico-clock{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3.5 2'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3.5 2'/%3E%3C/svg%3E");}
.ico-pin{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Cpath d='M12 21s7-7.2 7-12a7 7 0 1 0-14 0c0 4.8 7 12 7 12Z'/%3E%3Ccircle cx='12' cy='9' r='2.5'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Cpath d='M12 21s7-7.2 7-12a7 7 0 1 0-14 0c0 4.8 7 12 7 12Z'/%3E%3Ccircle cx='12' cy='9' r='2.5'/%3E%3C/svg%3E");}
.ico-check{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E");}

.perk-note{
  display:flex;
  align-items:flex-start;
  gap:12px;
  padding:22px 26px;
  border-radius:var(--radius-md);
  background:rgba(79,232,211,0.08);
  border:1px solid rgba(79,232,211,0.25);
  font-size:16px;
  color:var(--ink);
  line-height:1.7;
}
.perk-note .ico{margin-top:3px;}

/* ---------------------------------------------------------------------
   Courses
   --------------------------------------------------------------------- */
.course-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:22px;
}
.course-card{
  padding:34px 28px;
  border-radius:var(--radius-md);
  background:var(--navy-850);
  border:1px solid var(--line);
  transition:transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.course-card:hover{
  transform:translateY(-4px);
  border-color:rgba(255,107,94,0.35);
  box-shadow:var(--shadow-md);
}
.course-card h3{
  font-size:21px;
  margin:20px 0 10px;
  color:var(--ink);
  line-height:1.35;
}
.course-card p{
  font-size:15px;
  color:var(--ink-dim);
  line-height:1.7;
}
.course-ico{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:52px;height:52px;
  border-radius:14px;
  background:linear-gradient(135deg,rgba(79,232,211,0.18),rgba(255,107,94,0.18));
  position:relative;
}
.course-ico::before{
  content:"";
  width:24px;height:24px;
  background-color:var(--teal-soft);
  -webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;
  -webkit-mask-position:center;mask-position:center;
  -webkit-mask-size:contain;mask-size:contain;
}
.course-ico[data-ico="code"]::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Cpath d='M8 6 2 12l6 6M16 6l6 6-6 6'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Cpath d='M8 6 2 12l6 6M16 6l6 6-6 6'/%3E%3C/svg%3E");}
.course-ico[data-ico="net"]::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Ccircle cx='5' cy='6' r='2.4'/%3E%3Ccircle cx='19' cy='6' r='2.4'/%3E%3Ccircle cx='12' cy='13' r='2.4'/%3E%3Ccircle cx='5' cy='19' r='2.4'/%3E%3Ccircle cx='19' cy='19' r='2.4'/%3E%3Cpath d='M6.8 7.4 10.5 11.6M17.2 7.4 13.5 11.6M6.8 17.6 10.5 14.4M17.2 17.6 13.5 14.4'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Ccircle cx='5' cy='6' r='2.4'/%3E%3Ccircle cx='19' cy='6' r='2.4'/%3E%3Ccircle cx='12' cy='13' r='2.4'/%3E%3Ccircle cx='5' cy='19' r='2.4'/%3E%3Ccircle cx='19' cy='19' r='2.4'/%3E%3Cpath d='M6.8 7.4 10.5 11.6M17.2 7.4 13.5 11.6M6.8 17.6 10.5 14.4M17.2 17.6 13.5 14.4'/%3E%3C/svg%3E");}
.course-ico[data-ico="spark"]::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000'%3E%3Cpath d='M12 2 14 9 21 12 14 15 12 22 10 15 3 12 10 9 12 2Z'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000'%3E%3Cpath d='M12 2 14 9 21 12 14 15 12 22 10 15 3 12 10 9 12 2Z'/%3E%3C/svg%3E");}
.course-ico[data-ico="shield"]::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Cpath d='M12 3 4 6v6c0 5 3.4 8 8 9 4.6-1 8-4 8-9V6l-8-3Z'/%3E%3Cpath d='M9 12l2 2 4-4'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Cpath d='M12 3 4 6v6c0 5 3.4 8 8 9 4.6-1 8-4 8-9V6l-8-3Z'/%3E%3Cpath d='M9 12l2 2 4-4'/%3E%3C/svg%3E");}
.course-ico[data-ico="chart"]::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Cpath d='M4 20V10M12 20V4M20 20v-7'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Cpath d='M4 20V10M12 20V4M20 20v-7'/%3E%3C/svg%3E");}
.course-ico[data-ico="db"]::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Cellipse cx='12' cy='6' rx='8' ry='3'/%3E%3Cpath d='M4 6v6c0 1.7 3.6 3 8 3s8-1.3 8-3V6M4 12v6c0 1.7 3.6 3 8 3s8-1.3 8-3v-6'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Cellipse cx='12' cy='6' rx='8' ry='3'/%3E%3Cpath d='M4 6v6c0 1.7 3.6 3 8 3s8-1.3 8-3V6M4 12v6c0 1.7 3.6 3 8 3s8-1.3 8-3v-6'/%3E%3C/svg%3E");}
.course-ico[data-ico="sigma"]::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 4h10l-6 8 6 8H7'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 4h10l-6 8 6 8H7'/%3E%3C/svg%3E");}

/* odd course count (7): let the trailing card sit centered on its own row
   instead of stretching or leaving a lopsided gap */
.course-grid .course-card:nth-child(7):last-child{
  grid-column:1 / -1;
  max-width:380px;
  margin:0 auto;
}

/* ---------------------------------------------------------------------
   Capstone / Hackathon feature
   --------------------------------------------------------------------- */
.capstone{
  background:linear-gradient(135deg,var(--teal) 0%,#37c9b4 55%,#2fb6a3 100%);
  color:var(--navy-950);
  border-top:none;
  overflow:hidden;
}
.capstone-inner{
  display:grid;
  grid-template-columns:1.15fr 0.85fr;
  gap:60px;
  align-items:center;
}
.capstone-title{
  font-size:clamp(34px,4.4vw,52px);
  line-height:1.1;
  color:var(--navy-950);
  margin-bottom:14px;
}
.capstone-sub{
  font-family:var(--font-num);
  font-size:16px;
  font-weight:700;
  letter-spacing:0.02em;
  color:rgba(6,11,22,0.65);
  margin-bottom:22px;
}
.capstone-facts{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-bottom:28px;
}
.fact-pill{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:8px 16px;
  border-radius:999px;
  background:rgba(6,11,22,0.9);
  color:var(--teal-soft);
  font-size:13.5px;
  font-weight:700;
  letter-spacing:0.01em;
  white-space:nowrap;
}
.capstone-desc{
  font-size:18px;
  line-height:1.85;
  color:rgba(6,11,22,0.85);
  margin-bottom:22px;
}
.capstone-highlight{
  font-size:18px;
  font-weight:700;
  line-height:1.6;
  color:var(--navy-950);
  padding:18px 22px;
  border-radius:var(--radius-sm);
  background:rgba(6,11,22,0.08);
  border-left:4px solid var(--navy-950);
  margin-bottom:40px;
}
.capstone-points{
  display:flex;
  flex-direction:column;
  gap:22px;
}
.point{
  display:flex;
  gap:18px;
  align-items:flex-start;
}
.point-ico{
  flex:none;
  width:52px;height:52px;
  border-radius:14px;
  background:var(--navy-950);
  position:relative;
}
.point-ico::before{
  content:"";
  position:absolute;
  inset:0;margin:auto;
  width:26px;height:26px;
  background-color:var(--teal-soft);
  -webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;
  -webkit-mask-position:center;mask-position:center;
  -webkit-mask-size:contain;mask-size:contain;
}
.point-ico[data-ico="dna"]::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Cpath d='M6 3c0 6 12 12 12 18M18 3c0 6-12 12-12 18M8 8h8M8 16h8'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Cpath d='M6 3c0 6 12 12 12 18M18 3c0 6-12 12-12 18M8 8h8M8 16h8'/%3E%3C/svg%3E");}
.point-ico[data-ico="pill"]::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Crect x='3' y='9' width='18' height='8' rx='4' transform='rotate(-35 12 13)'/%3E%3Cpath d='M9 10l4 6' transform='rotate(-35 12 13)'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Crect x='3' y='9' width='18' height='8' rx='4' transform='rotate(-35 12 13)'/%3E%3Cpath d='M9 10l4 6' transform='rotate(-35 12 13)'/%3E%3C/svg%3E");}
.point-ico[data-ico="db"]::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Cellipse cx='12' cy='6' rx='8' ry='3'/%3E%3Cpath d='M4 6v6c0 1.7 3.6 3 8 3s8-1.3 8-3V6M4 12v6c0 1.7 3.6 3 8 3s8-1.3 8-3v-6'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Cellipse cx='12' cy='6' rx='8' ry='3'/%3E%3Cpath d='M4 6v6c0 1.7 3.6 3 8 3s8-1.3 8-3V6M4 12v6c0 1.7 3.6 3 8 3s8-1.3 8-3v-6'/%3E%3C/svg%3E");}
.point-ico[data-ico="pulse"]::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 12h4l2-8 4 16 2-8h6'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 12h4l2-8 4 16 2-8h6'/%3E%3C/svg%3E");}
.point h4{
  font-size:18px;
  color:var(--navy-950);
  margin-bottom:4px;
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:8px;
}
.point p{
  font-size:15px;
  color:rgba(6,11,22,0.72);
  line-height:1.65;
}

.point-tag{
  display:inline-flex;
  align-items:center;
  padding:3px 10px;
  border-radius:999px;
  background:rgba(6,11,22,0.14);
  color:rgba(6,11,22,0.68);
  font-size:11.5px;
  font-weight:700;
  letter-spacing:0.02em;
  white-space:nowrap;
}

/* Track 3 is a real capstone direction but not an official hackathon
   track — a dashed divider + icon tint sets it apart from Track 1 / 2 */
.point-extra{
  padding-top:22px;
  margin-top:2px;
  border-top:1px dashed rgba(6,11,22,0.22);
}
.point-extra .point-ico{
  background:rgba(6,11,22,0.75);
}

.capstone-visual{
  display:flex;
  align-items:center;
  justify-content:center;
}
.dna-svg{
  width:100%;
  max-width:280px;
  color:rgba(6,11,22,0.55);
  animation:dna-float 6s ease-in-out infinite;
}
@keyframes dna-float{
  0%,100%{transform:translateY(0);}
  50%{transform:translateY(-14px);}
}

/* ---------------------------------------------------------------------
   Faculty
   --------------------------------------------------------------------- */
.faculty-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:20px;
}
.faculty-card{
  padding:32px 24px;
  border-radius:var(--radius-md);
  background:var(--navy-850);
  border:1px solid var(--line);
  text-align:center;
  transition:transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.faculty-card:hover{
  transform:translateY(-4px);
  border-color:rgba(79,232,211,0.4);
  box-shadow:var(--shadow-md);
}
.avatar{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:64px;height:64px;
  border-radius:50%;
  background:linear-gradient(135deg,var(--teal),var(--coral));
  color:var(--navy-950);
  font-size:24px;
  font-weight:900;
  margin-bottom:18px;
}
.faculty-card h3{
  font-size:19px;
  color:var(--ink);
  margin-bottom:10px;
}
.faculty-card .role{
  font-size:13px;
  font-weight:700;
  color:var(--teal-soft);
  margin-bottom:10px;
  line-height:1.5;
}
.faculty-card .spec{
  font-size:13.5px;
  color:var(--ink-faint);
  line-height:1.7;
}

/* ---------------------------------------------------------------------
   Register
   --------------------------------------------------------------------- */
.register{
  background:linear-gradient(180deg,var(--navy-900),var(--navy-950));
}
.register-inner{
  display:grid;
  grid-template-columns:1.3fr 0.7fr;
  gap:60px;
  align-items:center;
}
.register-title{
  font-size:clamp(30px,3.6vw,42px);
  line-height:1.2;
  margin-bottom:18px;
  max-width:18ch;
}
.register-desc{
  font-size:17px;
  line-height:1.8;
  color:var(--ink-dim);
  max-width:56ch;
  margin-bottom:36px;
}
.register-actions{
  display:flex;
  flex-wrap:wrap;
  gap:16px;
  margin-bottom:30px;
}
.register-contact{
  font-size:15px;
  color:var(--ink-faint);
}
.register-contact a{
  color:var(--teal-soft);
  font-weight:700;
  border-bottom:1px solid rgba(126,239,222,0.4);
}
.register-qr{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:16px;
  padding:28px;
  border-radius:var(--radius-lg);
  background:#fff;
  box-shadow:var(--shadow-lg);
  justify-self:center;
}
.register-qr img{
  border-radius:10px;
}
.register-qr span{
  font-size:13px;
  font-weight:700;
  color:var(--navy-900);
  letter-spacing:0.02em;
}

/* ---------------------------------------------------------------------
   Footer
   --------------------------------------------------------------------- */
.site-footer{
  padding:48px 0;
  border-top:1px solid var(--line-soft);
}
.footer-inner{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.site-footer p{
  font-size:14px;
  color:var(--ink-faint);
}
.footer-sub{
  font-family:var(--font-num);
  letter-spacing:0.02em;
}

/* ---------------------------------------------------------------------
   Mobile floating CTA
   --------------------------------------------------------------------- */
.mobile-cta{
  display:none;
  position:fixed;
  left:20px;right:20px;
  bottom:20px;
  z-index:60;
  text-align:center;
  padding:16px;
  border-radius:999px;
  background:linear-gradient(135deg,var(--teal),#37c9b4);
  color:var(--navy-950);
  font-weight:700;
  font-size:16px;
  box-shadow:0 16px 34px -12px rgba(79,232,211,0.6);
  transform:translateY(120%);
  transition:transform .35s ease;
}
.mobile-cta.is-visible{transform:translateY(0);}

/* ---------------------------------------------------------------------
   TV / 電視輪播展示模式
   --------------------------------------------------------------------- */
.tv-toggle{
  position:fixed;
  left:18px;
  bottom:18px;
  z-index:70;
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:11px 18px;
  border-radius:999px;
  background:rgba(6,11,22,0.72);
  border:1px solid var(--line);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  color:var(--ink-dim);
  font-size:13px;
  font-weight:700;
  letter-spacing:0.01em;
  opacity:0.5;
  transition:opacity .2s ease, background .2s ease, color .2s ease, transform .2s ease;
}
.tv-toggle:hover{
  opacity:1;
  background:rgba(6,11,22,0.92);
  color:var(--ink);
  transform:translateY(-2px);
}

/* while playing: dim the toggle itself, strip away anything that would
   distract or block content on a passive/unattended screen */
body.tv-mode .tv-toggle{
  opacity:0.3;
  background:rgba(6,11,22,0.5);
}
body.tv-mode .nav,
body.tv-mode .nav-toggle,
body.tv-mode .mobile-cta{
  display:none !important;
}
body.tv-mode .site-header{
  pointer-events:none;
}
@media (max-width:820px){
  .tv-toggle{
    left:14px;
    bottom:14px;
    padding:9px 14px;
    font-size:12px;
  }
}

/* ---------------------------------------------------------------------
   Responsive
   --------------------------------------------------------------------- */
@media (max-width:1024px){
  .sched-grid{grid-template-columns:repeat(2,1fr);}
  .course-grid{grid-template-columns:repeat(2,1fr);}
  .faculty-grid{grid-template-columns:repeat(2,1fr);}
  .capstone-inner{grid-template-columns:1fr;gap:48px;}
  .capstone-visual{order:-1;}
  .dna-svg{max-width:200px;}
  .register-inner{grid-template-columns:1fr;gap:40px;}
  .register-qr{justify-self:start;}
}

@media (max-width:820px){
  .wrap{padding:0 22px;}
  .nav{
    position:fixed;
    top:76px;left:0;right:0;
    flex-direction:column;
    align-items:flex-start;
    gap:0;
    background:rgba(6,11,22,0.97);
    backdrop-filter:blur(14px);
    border-bottom:1px solid var(--line);
    padding:8px 22px 24px;
    transform:translateY(-8px);
    opacity:0;
    pointer-events:none;
    transition:opacity .25s ease, transform .25s ease;
  }
  .nav.is-open{
    opacity:1;
    transform:translateY(0);
    pointer-events:auto;
  }
  .nav a{
    width:100%;
    padding:16px 0;
    border-bottom:1px solid var(--line-soft);
    font-size:17px;
  }
  .nav a.nav-cta{
    margin-top:14px;
    text-align:center;
    border-bottom:none;
  }
  .nav-toggle{display:flex;}
  .brand-text{max-width:44vw;}

  .hero{padding:130px 0 90px;}
  .hero-actions{margin-bottom:48px;}
  .hero-countdown{width:100%;}
  .countdown-nums{flex-wrap:wrap;}
  .countdown-nums div{flex:1;min-width:64px;}

  .section{padding:80px 0;}
  .sched-grid{grid-template-columns:1fr;}
  .course-grid{grid-template-columns:1fr;}
  .faculty-grid{grid-template-columns:1fr;}

  .mobile-cta{display:block;}
}

@media (max-width:480px){
  .hero-title{font-size:40px;}
  .btn{padding:16px 26px;font-size:16px;}
  .capstone-highlight{font-size:16px;}
}
