/* ============================================================
   TAICON 2026 — stylesheet
   Design tokens measured from Apple's marketing pages
   (type scale, tracking, radii, motion, colour).
   No serif. One blue accent. Flat white / black ground.
   ============================================================ */

:root{
  /* type */
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
          Inter, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-cjk: -apple-system, "SF Pro SC", "PingFang TC", "PingFang SC",
              "Noto Sans TC", Inter, sans-serif;
  --font-jp: -apple-system, "SF Pro JP", "Hiragino Sans", "Noto Sans JP", Inter, sans-serif;

  /* colour — light */
  --text:   #1d1d1f;
  --text-2: #515154;
  --text-3: #6e6e73;   /* 5.2:1 on white — #86868b would fail AA at 14px */
  --accent: #0F52BA;   /* sapphire — 7.15:1 on white */
  --accent-strong: #0F52BA;
  --accent-hover:  #1560D4;
  --bg:     #ffffff;
  --fill:   #f5f5f7;
  --line:   #d2d2d7;
  --glass:  rgba(255,255,255,.72);

  /* radius */
  --r-sm: 10px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 28px;
  --r-pill: 980px;

  /* motion */
  --dur-micro:.1s;      --ease-micro:ease-in;
  --dur-standard:.2s;   --ease-standard:ease;
  --dur-enter:.3s;      --ease-decelerate:cubic-bezier(0,0,.2,1);
  --dur-page:.32s;      --ease-page:cubic-bezier(.4,0,.6,1);

  --wrap:1000px;
  --pad:56px;
}

html[lang="zh-Hant"]{ --font:var(--font-cjk); }
html[lang="ja"]{ --font:var(--font-jp); }

/* CJK sets tighter than Latin at body size and takes no tracking below 21px */
html[lang="zh-Hant"] body,
html[lang="ja"] body{ line-height:23px; letter-spacing:0; }
html[lang="zh-Hant"] .note, html[lang="ja"] .note,
html[lang="zh-Hant"] .tags li, html[lang="ja"] .tags li,
html[lang="zh-Hant"] .nav-links a, html[lang="ja"] .nav-links a,
html[lang="zh-Hant"] .card p, html[lang="ja"] .card p,
html[lang="zh-Hant"] .mini dd, html[lang="ja"] .mini dd,
html[lang="zh-Hant"] .ticks li, html[lang="ja"] .ticks li{ letter-spacing:0; }
html[lang="zh-Hant"] .lead, html[lang="ja"] .lead{ line-height:1.42; letter-spacing:0; }

@media (prefers-color-scheme:dark){
  :root:not([data-theme="light"]){
    --text:#f5f5f7; --text-2:#a1a1a6; --text-3:#98989d;
    --accent:#7FA8FF;          /* 8.95:1 on black */
    --accent-strong:#2B5FD9;   /* white on it: 5.61:1 */
    --accent-hover:#3A6FE8;
    --bg:#000000; --fill:#161617; --line:#424245;
    --glass:rgba(0,0,0,.72);
  }
}
:root[data-theme="dark"]{
  --text:#f5f5f7; --text-2:#a1a1a6; --text-3:#98989d;
  --accent:#7FA8FF; --accent-strong:#2B5FD9; --accent-hover:#3A6FE8;
  --bg:#000000; --fill:#161617; --line:#424245; --glass:rgba(0,0,0,.72);
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; scroll-padding-top:72px; }
body{
  margin:0; background:var(--bg); color:var(--text);
  font-family:var(--font);
  font-size:17px; line-height:25px; letter-spacing:-.022em;
  -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility;
}
img{ max-width:100%; display:block; }
/* author `img{display:block}` outranks the UA sheet's [hidden] rule — restore it */
[hidden]{ display:none !important; }
a{ color:inherit; }
p{ margin:0 0 1em; }
h1,h2,h3,h4{ margin:0; font-weight:600; }
ul,ol,dl,dd{ margin:0; padding:0; }
li{ list-style:none; }

.wrap{ max-width:var(--wrap); margin:0 auto; padding:0 28px; }
.quiet{ color:var(--text-3); }

.skip-link{ position:absolute; left:-9999px; background:var(--text); color:var(--bg);
  padding:10px 16px; z-index:200; border-radius:var(--r-sm); }
.skip-link:focus{ left:12px; top:12px; }
:where(a,button,summary):focus-visible{ outline:2px solid var(--accent); outline-offset:2px; border-radius:4px; }

/* ---------- motion: restrained scroll reveal ---------- */
.reveal{ opacity:0; transform:translateY(12px); }
.reveal.in{
  opacity:1; transform:none;
  transition:opacity var(--dur-page) var(--ease-page),
             transform var(--dur-page) var(--ease-page);
}
@media (prefers-reduced-motion:reduce){
  html{ scroll-behavior:auto; }
  *,*::before,*::after{ animation-duration:.01ms!important; transition-duration:.01ms!important; }
  .reveal{ opacity:1; transform:none; }
}

/* ---------- nav ---------- */
.nav{
  position:sticky; top:0; z-index:100;
  background:var(--glass);
  -webkit-backdrop-filter:saturate(1.8) blur(20px);
  backdrop-filter:saturate(1.8) blur(20px);
  border-bottom:1px solid transparent;
  transition:border-color var(--dur-standard) var(--ease-standard);
}
.nav.is-stuck{ border-bottom-color:var(--line); }
.nav-inner{ display:flex; align-items:center; gap:24px; height:56px; }
.brand{ text-decoration:none; font-size:17px; line-height:21px; font-weight:600;
  letter-spacing:-.022em; white-space:nowrap; margin-right:auto; }
.brand-year{ color:var(--accent); margin-left:.3em; font-weight:400; }
.brand-img{ height:24px; width:auto; }

.nav-links{ display:flex; gap:26px; }
.nav-links a{
  text-decoration:none; color:var(--text-2);
  font-size:15px; line-height:19px; font-weight:500; letter-spacing:-.018em;
  transition:color var(--dur-micro) var(--ease-micro);
}
.nav-links a:hover{ color:var(--text); }
.nav-links a.is-active{ color:var(--text); }
.nav-right{ display:flex; align-items:center; gap:12px; }

/* language: a single control that opens a small menu */
.lang{ position:relative; }
.lang-btn{
  display:flex; align-items:center; gap:6px;
  background:transparent; color:var(--text-2); cursor:pointer;
  border:1px solid var(--line); border-radius:var(--r-pill);
  font:inherit; font-size:14px; line-height:18px; font-weight:500; letter-spacing:-.016em;
  padding:6px 13px; white-space:nowrap;
  transition:color var(--dur-micro) var(--ease-micro),
             border-color var(--dur-micro) var(--ease-micro);
}
.lang-btn:hover,.lang-btn[aria-expanded="true"]{ color:var(--text); border-color:var(--text-3); }
.lang-btn .ico-chev{ width:10px; height:10px; flex:none; opacity:.55;
  transition:transform var(--dur-standard) var(--ease-standard); }
.lang-btn[aria-expanded="true"] .ico-chev{ transform:rotate(180deg); }

.lang-menu{
  position:absolute; top:calc(100% + 8px); right:0; z-index:120;
  min-width:196px; padding:7px;
  background:color-mix(in srgb, var(--bg) 94%, transparent);
  -webkit-backdrop-filter:saturate(1.8) blur(20px);
  backdrop-filter:saturate(1.8) blur(20px);
  border-radius:var(--r-md);
  box-shadow:0 0 0 1px var(--line), 2px 4px 12px rgba(0,0,0,.08);
  transform-origin:top right;
  animation:pop var(--dur-standard) var(--ease-decelerate);
}
@keyframes pop{ from{ opacity:0; transform:scale(.96) translateY(-4px); } }
.lang-title{
  margin:7px 11px 9px; font-size:12px; line-height:16px; font-weight:600;
  letter-spacing:.05em; text-transform:uppercase; color:var(--text-3);
}
.lang-menu button{
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  width:100%; border:0; background:transparent; cursor:pointer; text-align:left;
  font:inherit; font-size:16px; line-height:21px; letter-spacing:-.018em; color:var(--text);
  padding:9px 11px; border-radius:9px;
  transition:background-color var(--dur-micro) var(--ease-micro);
}
.lang-menu button:hover{ background:color-mix(in srgb, var(--text) 7%, transparent); }
.lang-menu button[aria-checked="true"]::after{
  content:""; width:12px; height:7px; flex:none; margin-right:2px;
  border-left:1.8px solid var(--accent); border-bottom:1.8px solid var(--accent);
  transform:rotate(-45deg) translateY(-2px);
}

.menu-btn{
  display:none; width:32px; height:32px; border:0; background:var(--fill);
  border-radius:var(--r-pill); cursor:pointer; color:var(--text-2);
  flex-direction:column; justify-content:center; align-items:center; gap:5px;
  transition:color var(--dur-micro) var(--ease-micro), scale var(--dur-micro) var(--ease-micro);
}
.menu-btn:active{ scale:.94; }
.menu-btn span{
  display:block; width:15px; height:1.5px; background:currentColor; border-radius:1px;
  transition:transform var(--dur-standard) var(--ease-standard), opacity var(--dur-micro) var(--ease-micro);
}
.nav.is-open .menu-btn span:first-child{ transform:translateY(3.25px) rotate(45deg); }
.nav.is-open .menu-btn span:last-child{ transform:translateY(-3.25px) rotate(-45deg); }

/* ---------- buttons ---------- */
.btn{
  display:inline-block; background:var(--accent-strong); color:#fff; text-decoration:none;
  font-size:17px; line-height:21px; font-weight:400; letter-spacing:-.022em;
  padding:12px 23px; border-radius:var(--r-pill);
  transition:background-color var(--dur-micro) var(--ease-micro),
             scale var(--dur-micro) var(--ease-micro);
}
.btn:hover{ background:var(--accent-hover); }
.btn:active{ scale:.97; }
.btn-line{
  background:transparent; color:var(--text); border:1px solid var(--line);
  padding:11px 22px;                 /* 1px border, so trim the padding to match .btn */
  font-weight:500;
}
.btn-line:hover{ background:transparent; border-color:var(--text-3); opacity:1; }
/* closed, not gone: greyed and inert, so it reads as a route that has shut */
.btn.is-off{
  background:var(--fill); color:var(--text-3);
  border-color:transparent; cursor:default; pointer-events:none;
}

/* ---------- overview ---------- */
/* The masthead already states what and when, so this is only the pitch, the
   two facts worth repeating, and the two things a visitor comes here to do. */
.hero{ padding:48px 0 52px; }
.ov{ text-align:center; }
.ov-title{
  max-width:22ch; margin:0 auto 14px;
  font-size:clamp(27px,3.4vw,40px); line-height:1.22; letter-spacing:-.014em; font-weight:600;
}
.ov-meta{
  display:flex; flex-wrap:wrap; justify-content:center; gap:6px 24px;
  margin:0 0 24px; font-size:17px; line-height:25px; letter-spacing:-.022em; color:var(--text-2);
}
.ov-meta span{ position:relative; }
.ov-meta span+span::before{
  content:""; position:absolute; left:-13px; top:11px;
  width:3px; height:3px; border-radius:50%; background:var(--text-3);
}
.ov-cta{ display:flex; flex-wrap:wrap; justify-content:center; gap:12px; margin:0; }

/* ---------- masthead banner ---------- */
/* Deep blue in both themes, like a printed conference letterhead: the mark on
   the left, a rule, the full title in the middle, the host university at the
   right. The drifting arcs replace the photograph we do not have yet. */
.banner{
  position:relative; overflow:hidden;
  min-height:140px; display:flex; align-items:center;
  background:linear-gradient(104deg, #07143A 0%, #10367F 46%, #0A2360 100%);
  color:#fff;
}
.banner-img{ width:100%; height:100%; object-fit:cover; }
.banner-art{ position:absolute; inset:0; pointer-events:none; }
.banner-aura{
  position:absolute; inset:-30%;
  background:
    radial-gradient(42% 64% at 20% 36%, rgba(120,168,255,.30), transparent 70%),
    radial-gradient(38% 58% at 76% 66%, rgba(90,140,240,.24), transparent 72%);
  filter:blur(50px);
}
.beams{
  position:absolute; inset:0; width:100%; height:100%;
  -webkit-mask-image:linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image:linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.rb{
  fill:none; stroke:#cfe0ff; stroke-linecap:round;
  vector-effect:non-scaling-stroke;
  transform-box:view-box; transform-origin:center;
  /* Negative delay, not positive: every ribbon is already mid-drift at t=0.
     With a positive delay and the default fill-mode the line sits at
     translateY(0) until the delay elapses, then snaps to the `from` keyframe —
     that snap was the visible jump. `both` keeps it safe if delays ever change. */
  animation:drift var(--fd) ease-in-out calc(var(--dly) * -1) infinite alternate both;
}
.rb.d0{ stroke-width:1;   opacity:.16; }
.rb.d1{ stroke-width:1.4; opacity:.24; }
.rb.d2{ stroke-width:1.9; opacity:.34; }
.rb.d0{ animation-duration:calc(var(--fd) * 1.5); }
.rb.d1{ animation-duration:calc(var(--fd) * 1.2); }
@keyframes drift{
  from{ transform:translateY(calc(var(--fa) * -1)); }
  to  { transform:translateY(var(--fa)); }
}
@media (prefers-reduced-motion:reduce){ .rb{ animation:none; } }

/* the lockup */
.mh{
  position:relative; z-index:1; width:100%;   /* flex item: without this it shrink-wraps */
  display:flex; align-items:center; gap:26px;
  padding-top:26px; padding-bottom:26px;
}
.mh-mark h1{
  margin:0; font-size:clamp(26px,2.9vw,34px); line-height:1.05;
  letter-spacing:-.018em; font-weight:600; white-space:nowrap;
}
.mh-mark h1 span{ color:rgba(255,255,255,.62); }
.mh-rule{ width:1px; height:38px; background:rgba(255,255,255,.34); flex:none; }
.mh-name{
  margin:0; min-width:0; font-size:clamp(18px,1.9vw,23px); line-height:1.25;
  letter-spacing:-.012em; font-weight:600; max-width:24ch; color:rgba(255,255,255,.92);
}
/* Two host marks on one navy rule. NTU's artwork is a wide horizontal lockup
   and Tohoku's is a tall vertical one, so matching their heights would shrink
   Tohoku's wordmark to nothing — they are sized to equal optical weight
   instead. The Tohoku file is the official purple-on-transparent logo; the
   filter renders it as the flat white reverse the navy ground needs. */
.mh-unis{ margin-left:auto; flex:none; display:flex; align-items:center; gap:20px; }
.mh-uni{ flex:none; display:block; line-height:0;
  transition:opacity var(--dur-micro) var(--ease-micro); }
.mh-uni:hover{ opacity:.82; }
.mh-uni img{ width:auto; }
.mh-uni-ntu img{ height:56px; }
/* The wreath is 73% of this artwork and the wordmark sits under it, so matching
   the two circles would leave Tohoku standing a head taller than NTU's
   single-line lockup. Matched on overall height instead, which is what reads. */
.mh-uni-toh img{ height:60px; filter:brightness(0) invert(1); }
.mh-unis-rule{ width:1px; height:44px; background:rgba(255,255,255,.26); flex:none; }

/* ---------- photos ---------- */
.photo{ margin:0; }
.photo-venue{ padding:40px 28px 0; max-width:var(--wrap); margin:0 auto; }
.photo-venue img{ width:100%; aspect-ratio:16/9; object-fit:cover; border-radius:var(--r-lg); }

/* ---------- sections ---------- */
.sec{ padding:var(--pad) 0; border-top:1px solid var(--line); }
.sec:first-of-type{ border-top:0; }
.grid{ display:grid; grid-template-columns:200px minmax(0,1fr); gap:48px; align-items:start; }
.grid > *{ min-width:0; }
.grid > h2{
  font-size:30px; line-height:36px; font-weight:600; letter-spacing:-.016em;
  color:var(--text); padding-top:1px;
  position:sticky; top:72px;
}
/* The content column runs from the label gutter to the page's right edge, so
   every card, grid, map and rule lines up on the same two vertical rails.
   Prose is held to a readable measure inside that column, not by the column. */
.body{ max-width:none; }
.lead,
.body > p,
.faq p,
.rows dd,
.alt span.d,
.route span.d{ max-width:62ch; }
.body > *:last-child{ margin-bottom:0; }

.lead{ font-size:24px; line-height:33px; letter-spacing:.009em; color:var(--text); margin:0 0 24px; }
.note{ font-size:15px; line-height:22px; letter-spacing:-.018em; color:var(--text-3); margin:0 0 11px; }
.body h3{
  font-size:14px; line-height:19px; font-weight:600; letter-spacing:.045em;
  text-transform:uppercase; color:var(--text-2); margin:34px 0 14px;
}

/* spec rows */
.rows{ display:grid; grid-template-columns:110px minmax(0,1fr); border-top:1px solid var(--line); }
.rows dt{
  font-size:14px; line-height:20px; letter-spacing:-.016em; color:var(--text-3);
  padding:13px 16px 13px 0; border-bottom:1px solid var(--line);
}
.rows dd{ padding:13px 0; border-bottom:1px solid var(--line); }
.rows + h3{ margin-top:34px; }
.hl{ color:var(--accent); font-weight:600; letter-spacing:-.022em; }
/* the date is still the fact of record, it has just stopped being a deadline */
.hl.is-past{
  color:var(--text-3); font-weight:400;
  text-decoration:line-through; text-decoration-thickness:1px;
}

.tags{ display:flex; flex-wrap:wrap; gap:6px; }
.tags li{
  font-size:14px; line-height:18px; letter-spacing:-.016em;
  background:var(--fill); border-radius:var(--r-pill); padding:5px 13px;
}

/* key dates: a horizontal track with a node per milestone */
.ms{
  display:grid; grid-template-columns:repeat(4,minmax(0,1fr));
  margin:0 0 32px; position:relative;
}
.ms li{ position:relative; padding:22px 16px 0 0; }
.ms li::before{                 /* the connecting rail */
  content:""; position:absolute; left:0; right:0; top:6px; height:1px; background:var(--line);
}
.ms li:first-child::before{ left:5px; }
.ms li:last-child::before{ right:calc(100% - 7px); }
.ms li::after{                  /* the node */
  content:""; position:absolute; left:0; top:1px;
  width:11px; height:11px; border-radius:50%;
  background:var(--bg); box-shadow:inset 0 0 0 1.5px var(--line);
}
.ms li.is-next::after{ background:var(--accent); box-shadow:0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
.ms li.is-next::before{ background:var(--accent); }
.ms b{ display:block; font-size:16px; line-height:22px; letter-spacing:-.018em; font-weight:600; }
.ms li.is-next b{ color:var(--accent); }
.ms span{ display:block; font-size:14px; line-height:20px; letter-spacing:-.016em; color:var(--text-3); margin-top:2px; }

.cta-row{ margin:0; }

.stats{ display:flex; gap:48px; margin-top:22px; }
.stats b{ display:block; font-size:40px; line-height:44px; letter-spacing:0; font-weight:600; }
.stats span{ font-size:12px; line-height:16px; letter-spacing:.06em;
  text-transform:uppercase; color:var(--text-3); }

/* program: two day cards — the shape of each day, nothing more. One row per
   session (time span + topic), with the detail left to the PDF. */
.btn-dl{ display:inline-flex; align-items:center; gap:9px; }
.btn-dl svg{ width:15px; height:15px; flex:none; }
.note-late{ margin-top:11px; }

.days{ display:grid; grid-template-columns:1fr 1fr; gap:18px; margin-top:30px; }
.days > div{ background:var(--fill); border-radius:var(--r-lg); padding:22px 22px 10px; }
.days h4{
  display:flex; align-items:baseline; gap:12px;
  font-size:19px; line-height:24px; letter-spacing:-.021em; margin:0 0 16px;
  padding-bottom:12px; border-bottom:1px solid var(--line);
}
.days h4 span{ margin-left:auto; font-size:14px; line-height:20px; letter-spacing:-.016em;
  color:var(--text-3); font-weight:400; }

.tl{ margin:0; }
.tl li{
  position:relative; display:grid; grid-template-columns:92px 15px minmax(0,1fr);
  align-items:start; padding-bottom:15px;
}
.tl li:last-child{ padding-bottom:14px; }
.tl .t{
  font-size:13px; line-height:21px; letter-spacing:-.01em; color:var(--text-3);
  font-variant-numeric:tabular-nums; padding-top:1px; white-space:nowrap;
}
/* stretch, not a fixed 21px: a row that wraps to two lines made the rail stop
   short of the next node and the chain visibly broke */
.tl .dot{ position:relative; display:block; width:15px; align-self:stretch; min-height:21px; }
.tl .dot::before{
  content:""; position:absolute; left:3px; top:7px;
  width:7px; height:7px; border-radius:50%;
  background:var(--accent); box-shadow:0 0 0 3px var(--fill);
}
.tl li:not(:last-child) .dot::after{
  content:""; position:absolute; left:6px; top:14px;
  bottom:-22px;              /* 15px row gap + 7px to the next node's top edge */
  width:1px; background:var(--line);
}
.tl .e{ font-size:16px; line-height:21px; letter-spacing:-.018em; color:var(--text); }
/* registration and the long breaks are scaffolding around the sessions */
.tl .is-soft .e{ font-size:14px; line-height:21px; letter-spacing:-.016em; color:var(--text-3); }
.tl .is-soft .dot::before{ background:var(--line); }


.venue-name{ font-size:24px; line-height:30px; letter-spacing:.009em; font-weight:600; margin:0 0 6px; }

/* map: a non-interactive preview that opens the full map on click */
.map{
  position:relative; margin:22px 0 0; border-radius:var(--r-lg); overflow:hidden;
  background:var(--fill); box-shadow:0 0 0 1px var(--line);
}
/* the fallback sits behind: if the embed is blocked, this is what shows */
.map-fallback{
  position:absolute; inset:0; display:flex; align-items:center; justify-content:center;
  padding:0 40px; text-align:center;
  font-size:14px; line-height:20px; letter-spacing:-.016em; color:var(--text-3);
}
/* Oversized and offset so the embed's own zoom buttons and attribution bar are
   cropped away; the crop is symmetric, so the marker stays centred. */
.map iframe{
  position:relative; display:block; border:0; background:transparent;
  width:calc(100% + 112px); margin-left:-56px;
  height:330px; margin-top:-25px; margin-bottom:-25px;
  pointer-events:none;                 /* the overlay link owns the clicks */
  filter:saturate(.82) contrast(.97);
}
@media (prefers-color-scheme:dark){
  :root:not([data-theme="light"]) .map iframe{ filter:saturate(.7) brightness(.82) contrast(1.05); }
}
.map-hit{
  position:absolute; inset:0; display:flex; align-items:flex-end; justify-content:flex-end;
  padding:14px; text-decoration:none;
  transition:background-color var(--dur-micro) var(--ease-micro);
}
.map-hit:hover{ background:color-mix(in srgb, var(--accent) 8%, transparent); }
.map-pill{
  background:var(--glass);
  -webkit-backdrop-filter:saturate(1.8) blur(20px);
  backdrop-filter:saturate(1.8) blur(20px);
  box-shadow:0 0 0 1px var(--line);
  color:var(--accent); border-radius:var(--r-pill);
  font-size:14px; line-height:18px; letter-spacing:-.016em; font-weight:600;
  padding:8px 15px;
}
.map-pill::after{ content:" ›"; }
.map figcaption{
  position:absolute; left:12px; bottom:12px;
  font-size:11px; line-height:14px; color:var(--text-3);
  background:var(--glass); border-radius:var(--r-sm); padding:3px 7px;
}

/* route: icon steps joined by a dotted line */
.route{ margin:0 0 18px; }
.route li{ position:relative; display:grid; grid-template-columns:36px minmax(0,1fr);
  gap:14px; padding-bottom:18px; }
.route li:last-child{ padding-bottom:0; }
.route .ico{
  position:relative; z-index:1; width:36px; height:36px; border-radius:50%;
  background:var(--fill); color:var(--accent);
  display:flex; align-items:center; justify-content:center;
}
.route .ico svg{ width:18px; height:18px; }
.route li:not(:last-child) .ico::after{
  content:""; position:absolute; left:50%; top:40px; height:calc(100% - 4px);
  border-left:1.5px dotted var(--line); transform:translateX(-50%);
}
.route b{ display:block; font-size:16px; line-height:22px; letter-spacing:-.018em; font-weight:600; }
.route span.d{ display:block; font-size:14px; line-height:20px; letter-spacing:-.016em; color:var(--text-3); }
.route span.m{
  display:inline-block; margin-top:5px; font-size:12px; line-height:16px; letter-spacing:-.01em;
  color:var(--text-2); background:var(--bg); border-radius:var(--r-pill); padding:2px 9px;
}
.route .ico{ background:var(--bg); }

/* a large Chinese address, sized to be held up to a taxi driver */
.addr{
  position:relative; margin:0; padding:20px 22px;
  border-radius:var(--r-lg); background:var(--fill);
  box-shadow:inset 0 0 0 1px var(--line);
}
.addr-hint{
  margin:0 0 11px; font-size:13px; line-height:17px; letter-spacing:.05em;
  text-transform:uppercase; color:var(--text-2);
}
.addr-name,.addr-line{
  font-family:var(--font-cjk); letter-spacing:0; margin:0;
  -webkit-font-smoothing:antialiased;
}
.addr-name{ font-size:19px; line-height:28px; font-weight:600; color:var(--text-2); }
.addr-line{ font-size:clamp(21px,2.2vw,27px); line-height:1.35; font-weight:600; }
/* copy rides at the end of the address; the magnifier takes the corner */
.addr-copy{
  display:inline-flex; align-items:center; justify-content:center; vertical-align:-.18em;
  width:30px; height:30px; margin-left:9px; padding:0; border:0; cursor:pointer;
  background:var(--bg); color:var(--text-2); border-radius:50%;
  transition:color var(--dur-micro) var(--ease-micro), scale var(--dur-micro) var(--ease-micro);
}
.addr-copy:hover{ color:var(--text); }
.addr-copy:active{ scale:.94; }
.addr-copy svg{ width:15px; height:15px; }
.addr-copy .ok{ display:none; }
.addr-copy.is-done{ color:var(--accent); }
.addr-copy.is-done .cp{ display:none; }
.addr-copy.is-done .ok{ display:block; }

.addr-zoom{
  position:absolute; top:16px; right:16px;
  display:flex; align-items:center; justify-content:center;
  width:34px; height:34px; padding:0; border:0; cursor:pointer;
  background:var(--bg); color:var(--text-2); border-radius:50%;
  transition:color var(--dur-micro) var(--ease-micro), scale var(--dur-micro) var(--ease-micro);
}
.addr-zoom:hover{ color:var(--text); }
.addr-zoom:active{ scale:.94; }
.addr-zoom svg{ width:17px; height:17px; }

/* Held out to a taxi driver: fills the screen and, on a phone held upright,
   turns onto the long edge so the address gets the width it needs. Stays light
   in both themes — someone else reads this, in a car, through a window. */
.addr-full{
  position:fixed; inset:0; z-index:300;
  background:#ffffff; color:#1d1d1f;
  display:flex; align-items:center; justify-content:center;
}
.addr-full-box{
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  /* flex:none — as a flex item this would otherwise shrink from its 100vh width
     down to the 375px viewport before the rotation, breaking the address into
     three columns */
  flex:none;
  gap:2.4vh; padding:0 5vh; text-align:center;
  font-family:var(--font-cjk); letter-spacing:0; overflow-wrap:anywhere;
}
@media (orientation:portrait){
  /* rotating a 100vh × 100vw box lands it back over the full screen */
  .addr-full-box{ width:100vh; height:100vw; transform:rotate(90deg); }
}
/* The building name is what gets typed into a map and jumps straight to the
   door; the street number is the whole campus. So the name leads in black and
   the address follows in grey, both at one size. */
.addr-full-name{ margin:0; font-weight:600; color:#1d1d1f;
  font-size:clamp(26px,5.2vh,64px); line-height:1.3; }
.addr-full-line{ margin:0; font-weight:600; color:#515154;
  font-size:clamp(26px,5.2vh,64px); line-height:1.3; }
.addr-full-x{
  position:fixed; top:14px; right:14px;
  display:flex; align-items:center; justify-content:center;
  width:44px; height:44px; padding:0; border:0; cursor:pointer;
  background:#f5f5f7; color:#6e6e73; border-radius:50%;
  transition:color var(--dur-micro) var(--ease-micro), scale var(--dur-micro) var(--ease-micro);
}
.addr-full-x:hover{ color:#1d1d1f; }
.addr-full-x:active{ scale:.94; }
.addr-full-x svg{ width:17px; height:17px; }

/* weather: a range bar rather than a sentence */
.wx{ display:flex; align-items:center; gap:14px; margin:0 0 10px; }
.wx-ico{ width:26px; height:26px; flex:none; color:var(--accent); }
.wx-scale{ display:flex; align-items:center; gap:10px; flex:1; min-width:0; }
.wx-scale b{ font-size:17px; line-height:21px; letter-spacing:-.022em; font-weight:600;
  font-variant-numeric:tabular-nums; }
.wx-scale b:first-child{ color:var(--text-3); }
.wx-track{
  position:relative; flex:1; height:5px; border-radius:var(--r-pill);
  background:var(--fill); min-width:56px;
}
.wx-track i{
  position:absolute; inset:0 14% 0 10%; border-radius:var(--r-pill);
  background:linear-gradient(90deg,
    color-mix(in srgb, var(--accent) 35%, transparent), var(--accent));
}

/* the two ways in, as a pair of cards — same component as the program days */
/* the taxi card holds one step against the transit card's three — stretching
   it to match leaves a hollow box, so these size to their content */
.routes{ margin-top:14px; align-items:start; }
.routes > div{ padding:20px 22px; }
.routes .route{ margin:0; }

/* the department's own location map: the one thing that actually shows which
   of the two psychology halls the conference is in */
.campus{ margin:26px 0 0; }
.campus a{ display:block; line-height:0; border-radius:var(--r-lg); overflow:hidden;
  box-shadow:0 0 0 1px var(--line); background:#ffffff; }
.campus img{ width:100%; height:auto; }

.split{ display:grid; grid-template-columns:1fr 1fr; gap:32px 48px; margin-top:32px; }
.split h3:first-child,.split .no-mt{ margin-top:0; }

/* organizing committee — circular portraits */
.people{
  display:grid; grid-template-columns:repeat(auto-fit,minmax(148px,1fr));
  gap:28px 24px; margin:0;
}
.people li{ min-width:0; }
.people + .note{ margin-top:36px; }   /* .note's shorthand zeroes .mt-lg, so be explicit */
.people .avatar{
  width:100%; max-width:148px; aspect-ratio:1; object-fit:cover;
  border-radius:50%; background:var(--fill); margin-bottom:13px;
}
.people .avatar-ph{
  display:flex; align-items:center; justify-content:center;
  font-size:34px; font-weight:600; color:var(--text-3);
}
.people .name{
  display:block; font-size:18px; line-height:23px; letter-spacing:-.021em;
  font-weight:600; color:var(--text); margin-bottom:3px;
}
.people .name-zh{
  display:block; font-family:var(--font-cjk);
  font-size:14px; line-height:20px; letter-spacing:0; color:var(--text-2);
}
.people .role{
  display:block; font-size:14px; line-height:20px; letter-spacing:-.016em;
  color:var(--text-2); margin-top:4px;
}
.people .affil{
  display:block; font-size:14px; line-height:20px; letter-spacing:-.016em;
  color:var(--text-3); margin-top:6px;
}

/* back to top */
.to-top{
  position:fixed; right:24px; bottom:24px; z-index:95;
  width:44px; height:44px; padding:0; border:0; cursor:pointer;
  border-radius:50%; color:var(--text-2);
  background:var(--glass);
  -webkit-backdrop-filter:saturate(1.8) blur(20px);
  backdrop-filter:saturate(1.8) blur(20px);
  box-shadow:0 0 0 1px var(--line);
  display:flex; align-items:center; justify-content:center;
  opacity:0; transform:translateY(8px); pointer-events:none;
  transition:opacity var(--dur-page) var(--ease-page),
             transform var(--dur-page) var(--ease-page),
             color var(--dur-micro) var(--ease-micro),
             scale var(--dur-micro) var(--ease-micro);
}
.to-top.is-on{ opacity:1; transform:none; pointer-events:auto; }
.to-top:hover{ color:var(--accent); }
.to-top:active{ scale:.94; }
.to-top svg{ width:19px; height:19px; }

/* disclosure + faq */
.disclose{ border-top:1px solid var(--line); border-bottom:1px solid var(--line); margin:0 0 22px; }
.disclose summary,.faq summary{
  cursor:pointer; list-style:none; position:relative;
  padding:15px 34px 15px 0; font-size:18px; line-height:26px; letter-spacing:-.021em;
  transition:color var(--dur-micro) var(--ease-micro);
}
.disclose summary::-webkit-details-marker,.faq summary::-webkit-details-marker{ display:none; }
.disclose summary:hover,.faq summary:hover{ color:var(--accent); }
.disclose summary::after,.faq summary::after{
  content:""; position:absolute; right:6px; top:24px;
  width:9px; height:9px; border-right:1.5px solid var(--accent); border-bottom:1.5px solid var(--accent);
  transform:translateY(-4px) rotate(45deg);
  transition:transform var(--dur-standard) var(--ease-standard);
}
.disclose[open] summary::after,.faq details[open] summary::after{ transform:translateY(0) rotate(225deg); }
.disclose summary{ color:var(--text-2); }

.ticks{ padding:0 0 15px; }
.ticks li{ position:relative; padding-left:20px; margin-bottom:8px;
  font-size:14px; line-height:20px; letter-spacing:-.016em; color:var(--text-3); }
.ticks li::before{ content:"—"; position:absolute; left:0; color:var(--accent); }

.faq details{ border-bottom:1px solid var(--line); }
.faq details:first-child{ border-top:1px solid var(--line); }
.faq p{ margin:0 0 17px; color:var(--text-2); font-size:17px; line-height:26px; letter-spacing:-.022em; }

/* contact */
.email-row{ display:flex; gap:12px; align-items:center; flex-wrap:wrap; margin:14px 0 0; min-width:0; }
.email{
  font-size:clamp(17px,4.6vw,24px); line-height:1.25; letter-spacing:.009em;
  font-weight:600; color:var(--accent); text-decoration:none;
  overflow-wrap:anywhere;   /* an address has no break points; without this it
                               pushed the whole page 28px wide on a phone */
  min-width:0;
}
.email:hover{ text-decoration:underline; }
.copy-btn{
  border:0; background:var(--fill); color:var(--text-2); font:inherit;
  font-size:12px; line-height:16px; letter-spacing:-.01em;
  padding:6px 13px; border-radius:var(--r-pill); cursor:pointer;
  transition:color var(--dur-micro) var(--ease-micro), scale var(--dur-micro) var(--ease-micro);
}
.copy-btn:hover{ color:var(--text); }
.copy-btn:active{ scale:.97; }

/* Organizers. The three marks are official full-colour artwork, so this strip
   keeps a white ground in both themes — the same deal the navy masthead makes. */
.orgs{ background:#ffffff; border-top:1px solid var(--line); padding:38px 0 40px; }
.orgs-title{
  margin:0 0 26px; text-align:center;
  font-size:12px; line-height:16px; font-weight:600; letter-spacing:.07em;
  text-transform:uppercase; color:#6e6e73;
}
.orgs-list{
  display:flex; flex-wrap:wrap; align-items:center; justify-content:center;
  gap:34px 56px; margin:0;
}
.orgs-list a{ display:block; line-height:0;
  transition:opacity var(--dur-micro) var(--ease-micro); }
.orgs-list a:hover{ opacity:.74; }
.orgs-list img{ width:auto; }
/* Three different lockups — a tall one, a wide one, a round one — so they are
   sized to equal presence, not equal height. Each step down below keeps all
   three on one line: the row is 0.74h + 3.5h + 1.01h wide plus two gaps. */
.orgs-list li:nth-child(1) img{ height:108px; }  /* Tohoku — vertical lockup */
.orgs-list li:nth-child(2) img{ height:48px; }   /* NYCU — wide wordmark */
.orgs-list li:nth-child(3) img{ height:104px; }  /* NTU — round seal */

.footer{ border-top:1px solid var(--line); padding:28px 0 36px; }
.footer-inner{ display:flex; justify-content:space-between; align-items:flex-end; gap:20px; flex-wrap:wrap; }
.footer p{ margin:0; font-size:12px; line-height:18px; letter-spacing:-.01em; color:var(--text-3); }
.footer-brand{ color:var(--text); font-weight:600; }


/* ---------- responsive ---------- */
@media (max-width:1024px){
  .split{ gap:36px; }
}
@media (max-width:860px){
  :root{ --pad:56px; }
  .grid{ grid-template-columns:1fr; gap:16px; }
  .grid > h2{
    position:static; padding-top:0;
    font-size:26px; line-height:32px; letter-spacing:-.016em;
    color:var(--text);
  }
  /* one card per screen, swiped horizontally, with the next one peeking */
  .days{
    display:flex; grid-template-columns:none; gap:14px;
    overflow-x:auto; scroll-snap-type:x mandatory;
    margin:30px 0 0; padding:0 0 10px;
    scrollbar-width:none; -ms-overflow-style:none;
  }
  .days::-webkit-scrollbar{ display:none; }
  .days > div{ flex:0 0 89%; scroll-snap-align:start; }
  .split{ grid-template-columns:1fr; gap:32px; }
  /* ...except side by side in the carousel, where ragged heights read as broken */
  .routes{ margin:14px 0 0; align-items:stretch; }
  .banner{ min-height:0; }
  .mh{ gap:22px; }
  .mh-unis{ gap:16px; }
  .mh-uni-ntu img{ height:46px; }
  .mh-uni-toh img{ height:50px; }
  .mh-unis-rule{ height:36px; }
  .map iframe{ height:280px; }
}
@media (max-width:768px){
  .nav-links{ display:none; position:absolute; top:56px; left:0; right:0; flex-direction:column;
    gap:0; background:var(--bg); border-bottom:1px solid var(--line); padding:4px 28px 16px; }
  .nav.is-open .nav-links{ display:flex; }
  .nav-links a{ padding:14px 0; border-bottom:1px solid var(--line); font-size:17px; line-height:21px; }
  .menu-btn{ display:flex; }
  .rows{ grid-template-columns:1fr; }
  .rows dt{ padding-bottom:0; border-bottom:0; }
  .rows dd{ padding-top:8px; }
  .stats{ gap:32px; }
  .people{ grid-template-columns:repeat(2,1fr); gap:32px 20px; }
  .mh{
    flex-direction:column; align-items:center; text-align:center; gap:12px;
    padding-top:26px; padding-bottom:26px;
  }
  .mh-rule{ display:none; }
  .mh-mark h1{ font-size:28px; }
  .mh-name{ max-width:none; font-size:18px; line-height:1.3; }
  .mh-unis{ margin:4px auto 0; gap:14px; }
  .mh-uni-ntu img{ height:32px; }
  .mh-uni-toh img{ height:36px; }
  .mh-unis-rule{ height:28px; }
  .lang-menu{ min-width:200px; }
  .map iframe{ height:250px; }
  .to-top{ right:16px; bottom:84px; }
  /* stacked, so drop the inline dot separators — they'd sit at the line start */
  .ov-meta{ flex-direction:column; gap:2px; }
  .ov-meta span+span::before{ display:none; }
  .to-top{ right:16px; bottom:16px; }
  .days > div{ padding:22px 20px 10px; }
  .tl li{ grid-template-columns:86px 15px minmax(0,1fr); }
  .orgs-list{ gap:26px 30px; }
  .orgs-list li:nth-child(1) img{ height:72px; }
  .orgs-list li:nth-child(2) img{ height:32px; }
  .orgs-list li:nth-child(3) img{ height:70px; }
  .ms{ grid-template-columns:1fr; gap:0; }
  .ms li{ padding:0 0 20px 26px; }
  .ms li::before{ left:5px; right:auto; top:6px; bottom:-6px; width:1px; height:auto; }
  .ms li:last-child::before{ display:none; }
  .ms li::after{ top:1px; left:0; }
}

@media (max-width:360px){
  /* the row needs ~296px at the 768px sizes; a 320px screen has 264px */
  .orgs-list{ gap:22px 24px; }
  .orgs-list li:nth-child(1) img{ height:62px; }
  .orgs-list li:nth-child(2) img{ height:28px; }
  .orgs-list li:nth-child(3) img{ height:60px; }
}
