/* =========================================================
   LISIS — Lab of Information Science in Sport
   Redesign 2026 · Design System
   ========================================================= */

/* ---------- Fonts ---------- */
@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css");
@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500;600&display=swap");

/* ---------- Design tokens ---------- */
:root {
  /* Brand — derived from the LiSiS wordmark */
  --blue:        #1f6feb;   /* L */
  --blue-deep:   #0d47c9;
  --red:         #ef3e36;   /* i dot */
  --lime:        #b7c400;   /* S */
  --sky:         #38bdf8;   /* i */
  --sky-soft:    #7dd3fc;   /* S */

  /* Ink / surfaces */
  --ink:         #0a1024;
  --ink-2:       #111a33;
  --navy:        #0b1b3a;
  --slate:       #475069;
  --muted:       #6b7690;
  --line:        #e7eaf2;
  --line-strong: #d7dbe8;
  --bg:          #ffffff;
  --bg-soft:     #f6f8fc;
  --bg-tint:     #eef3fd;
  --white:       #ffffff;

  /* Typography */
  --f-display: "Space Grotesk", "Pretendard", system-ui, sans-serif;
  --f-body:    "Pretendard", "Inter", system-ui, -apple-system, sans-serif;

  /* Rhythm */
  --wrap: 1200px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 28px;

  /* Elevation */
  --shadow-sm: 0 1px 3px rgba(13, 26, 51, .06), 0 1px 2px rgba(13, 26, 51, .04);
  --shadow:    0 12px 30px -12px rgba(13, 26, 51, .18);
  --shadow-lg: 0 40px 80px -32px rgba(11, 27, 58, .35);

  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  font-family: var(--f-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
ul { list-style: none; padding: 0; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

/* ---------- Layout helpers ---------- */
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.section { padding: clamp(72px, 10vw, 140px) 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--f-display);
  font-size: .8rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--blue);
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--blue), var(--sky));
}
.section-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 68px); }
.section-head h2 {
  font-family: var(--f-display);
  font-size: clamp(1.9rem, 4.4vw, 3.1rem);
  line-height: 1.06; font-weight: 600; letter-spacing: -0.02em;
  margin: 18px 0 0;
}
.section-head p { margin-top: 20px; color: var(--slate); font-size: 1.075rem; max-width: 60ch; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 10px;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 16px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-display); font-weight: 600; font-size: .98rem;
  padding: 14px 26px; border-radius: 999px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), color .25s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--ink); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -14px rgba(10,16,36,.5); }
.btn-accent { background: linear-gradient(120deg, var(--blue), var(--blue-deep)); color: #fff; box-shadow: 0 14px 30px -12px rgba(31,111,235,.6); }
.btn-accent:hover { transform: translateY(-3px); box-shadow: 0 22px 44px -14px rgba(31,111,235,.7); }
.btn-ghost { border: 1.5px solid var(--line-strong); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-3px); }
.btn-light { background: rgba(255,255,255,.1); color: #fff; border: 1.5px solid rgba(255,255,255,.28); backdrop-filter: blur(8px); }
.btn-light:hover { background: rgba(255,255,255,.2); transform: translateY(-3px); }
.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -14px rgba(0,0,0,.4); }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-display); font-weight: 600; color: var(--blue); }
.link-arrow svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.link-arrow:hover svg { transform: translateX(5px); }

/* =========================================================
   TOP BAR
   ========================================================= */
.topbar {
  background: var(--ink); color: rgba(255,255,255,.82);
  font-size: .82rem; position: relative; z-index: 60;
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 42px; }
.topbar .org { display: inline-flex; align-items: center; gap: 9px; letter-spacing: .01em; }
.topbar .org .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 3px rgba(183,196,0,.22); }
.topbar-right { display: flex; align-items: center; gap: 6px; }
.topbar .socials { display: flex; gap: 4px; }
.topbar .socials a { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; color: rgba(255,255,255,.7); transition: .2s; }
.topbar .socials a:hover { background: rgba(255,255,255,.12); color: #fff; }
.topbar .socials svg { width: 15px; height: 15px; }
@media (max-width: 720px) { .topbar .org span { display: none; } }

/* Language switcher */
.lang { position: relative; }
.lang-toggle {
  display: inline-flex; align-items: center; gap: 8px;
  color: rgba(255,255,255,.9); padding: 6px 12px; border-radius: 8px;
  border: 1px solid rgba(255,255,255,.16); font-size: .82rem; font-weight: 500;
  transition: .2s;
}
.lang-toggle:hover { background: rgba(255,255,255,.1); }
.lang-toggle svg.globe { width: 15px; height: 15px; }
.lang-toggle .chev { width: 13px; height: 13px; transition: transform .25s var(--ease); opacity: .8; }
.lang.open .lang-toggle .chev { transform: rotate(180deg); }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 10px); width: 320px; max-width: 84vw;
  background: #fff; color: var(--ink); border-radius: 16px; box-shadow: var(--shadow-lg);
  border: 1px solid var(--line); padding: 12px; z-index: 80;
  opacity: 0; visibility: hidden; transform: translateY(-8px); transition: .22s var(--ease);
}
.lang.open .lang-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-search {
  width: 100%; padding: 10px 12px 10px 36px; border: 1px solid var(--line); border-radius: 10px;
  font: inherit; font-size: .9rem; margin-bottom: 8px; background: var(--bg-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%236b7690' stroke-width='2' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E") 12px center no-repeat;
}
.lang-search:focus { outline: none; border-color: var(--blue); background-color: #fff; }
.lang-list { max-height: 300px; overflow-y: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; padding-right: 2px; }
.lang-list button {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  padding: 8px 9px; border-radius: 9px; font-size: .88rem; color: var(--ink); transition: .12s; min-width: 0;
}
.lang-list button:hover { background: var(--bg-tint); }
.lang-list button.active { background: var(--blue); color: #fff; }
.lang-list button .flag {
  flex-shrink: 0; width: 30px; height: 22px; border-radius: 5px; display: grid; place-items: center;
  font-family: var(--f-display); font-weight: 700; font-size: .64rem; letter-spacing: .02em;
  background: var(--bg-tint); color: var(--slate); border: 1px solid var(--line);
}
.lang-list button.active .flag { background: rgba(255,255,255,.22); color: #fff; border-color: transparent; }
.lang-list button .lname { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lang-list button .native { color: var(--muted); font-size: .76rem; }
.lang-list button.active .native { color: rgba(255,255,255,.8); }
.lang-note { font-size: .72rem; color: var(--muted); padding: 8px 6px 2px; border-top: 1px solid var(--line); margin-top: 6px; }
.lang-list::-webkit-scrollbar { width: 8px; }
.lang-list::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 8px; }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.82); backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid transparent; transition: box-shadow .3s, border-color .3s, background .3s;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); border-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 74px; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand img { height: 40px; width: auto; }
.brand-txt { display: flex; flex-direction: column; line-height: 1.05; }
.brand-txt b { font-family: var(--f-display); font-size: 1.15rem; font-weight: 700; letter-spacing: -.01em; }
.brand-txt small { font-size: .68rem; color: var(--muted); letter-spacing: .02em; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav > ul { display: flex; align-items: center; gap: 2px; }
.nav a {
  display: inline-flex; align-items: center; padding: 10px 14px; border-radius: 10px;
  font-size: .92rem; font-weight: 500; color: var(--slate); transition: .18s; position: relative;
}
.nav a:hover { color: var(--ink); background: var(--bg-soft); }
.nav a.cta { margin-left: 10px; background: var(--ink); color: #fff; padding: 11px 20px; border-radius: 999px; font-family: var(--f-display); font-weight: 600; }
.nav a.cta:hover { background: var(--blue); transform: translateY(-2px); }

.nav-toggle { display: none; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line); place-items: center; }
.nav-toggle span { position: relative; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: .25s var(--ease); }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: .25s var(--ease); }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
body.nav-open .nav-toggle span { background: transparent; }
body.nav-open .nav-toggle span::before { top: 0; transform: rotate(45deg); }
body.nav-open .nav-toggle span::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 1000px) {
  .nav-toggle { display: grid; }
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(360px, 84vw);
    background: #fff; flex-direction: column; align-items: stretch; justify-content: flex-start;
    padding: 96px 24px 32px; gap: 4px; box-shadow: var(--shadow-lg);
    transform: translateX(100%); transition: transform .35s var(--ease); z-index: 45;
  }
  body.nav-open .nav { transform: translateX(0); }
  .nav > ul { flex-direction: column; align-items: stretch; gap: 2px; width: 100%; }
  .nav a { padding: 14px 16px; font-size: 1.05rem; border-radius: 12px; }
  .nav a.cta { margin: 12px 0 0; justify-content: center; }
  .nav-backdrop { position: fixed; inset: 0; background: rgba(10,16,36,.4); backdrop-filter: blur(2px); opacity: 0; visibility: hidden; transition: .3s; z-index: 44; }
  body.nav-open .nav-backdrop { opacity: 1; visibility: visible; }
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(120% 130% at 85% -10%, #16306b 0%, #0b1b3a 45%, #070d1f 100%);
  padding: clamp(80px, 11vw, 150px) 0 clamp(90px, 12vw, 160px);
}
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .55; }
.hero-glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; pointer-events: none; }
.hero-glow.g1 { width: 420px; height: 420px; background: var(--blue); top: -120px; right: -60px; }
.hero-glow.g2 { width: 360px; height: 360px; background: #7c3aed; bottom: -140px; left: -80px; opacity: .35; }
.hero-glow.g3 { width: 240px; height: 240px; background: var(--lime); bottom: 40px; right: 18%; opacity: .16; }
.hero .wrap { position: relative; z-index: 2; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 10px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px; font-size: .82rem; font-weight: 500; backdrop-filter: blur(8px); margin-bottom: 30px;
}
.hero-badge .pill { font-family: var(--f-display); font-weight: 700; font-size: .72rem; letter-spacing: .04em; background: var(--lime); color: #0a1024; padding: 3px 9px; border-radius: 999px; }
.hero h1 {
  font-family: var(--f-display); font-weight: 600;
  font-size: clamp(2.6rem, 7vw, 5.4rem); line-height: .98; letter-spacing: -0.035em;
  max-width: 15ch;
}
.hero h1 .grad { background: linear-gradient(100deg, var(--sky), var(--blue) 55%, var(--sky-soft)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { margin-top: 30px; max-width: 54ch; font-size: clamp(1.05rem, 2vw, 1.28rem); color: rgba(255,255,255,.76); line-height: 1.6; }
.hero-sub .en { display: block; margin-top: 10px; font-size: .96rem; color: rgba(255,255,255,.5); font-family: var(--f-display); letter-spacing: .005em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }

/* Scroll hint */
.scroll-hint { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 8px; color: rgba(255,255,255,.5); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; font-family: var(--f-display); }
.scroll-hint .mouse { width: 22px; height: 34px; border: 2px solid rgba(255,255,255,.4); border-radius: 12px; position: relative; }
.scroll-hint .mouse::after { content: ""; position: absolute; top: 6px; left: 50%; transform: translateX(-50%); width: 3px; height: 6px; border-radius: 3px; background: #fff; animation: scrolldot 1.6s var(--ease) infinite; }
@keyframes scrolldot { 0% { opacity: 0; transform: translate(-50%, 0); } 40% { opacity: 1; } 80% { opacity: 0; transform: translate(-50%, 10px); } 100% { opacity: 0; } }

/* Stats marquee */
.stats-strip { background: var(--ink); color: #fff; border-top: 1px solid rgba(255,255,255,.08); }
.stats-strip .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 40px 0; }
.stat { }
.stat .num { font-family: var(--f-display); font-weight: 700; font-size: clamp(2rem, 4.4vw, 3rem); line-height: 1; letter-spacing: -.02em; background: linear-gradient(120deg, #fff, var(--sky-soft)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat .num .suffix { -webkit-text-fill-color: var(--sky); font-size: .55em; }
.stat .label { margin-top: 10px; color: rgba(255,255,255,.6); font-size: .92rem; }
@media (max-width: 720px) { .stats-strip .wrap { grid-template-columns: 1fr 1fr; gap: 30px 16px; } }

/* =========================================================
   ABOUT
   ========================================================= */
.about { background: var(--bg); }
.about-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.about-copy h2 { font-family: var(--f-display); font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.08; font-weight: 600; letter-spacing: -.02em; margin: 18px 0 24px; }
.about-copy p { color: var(--slate); font-size: 1.06rem; margin-bottom: 18px; }
.about-copy .lead { color: var(--ink); font-size: 1.16rem; font-weight: 500; }
.about-quote { margin-top: 30px; padding: 22px 26px; border-left: 3px solid var(--blue); background: var(--bg-soft); border-radius: 0 14px 14px 0; }
.about-quote p { font-size: 1rem; color: var(--ink); font-style: italic; margin: 0; }
.about-quote cite { display: block; margin-top: 10px; font-style: normal; font-size: .86rem; color: var(--muted); font-weight: 600; }
.about-visual { position: relative; }
.about-visual img { width: 100%; border-radius: var(--radius-lg); }
.about-visual .halo { position: absolute; inset: -6% -6% -6% -6%; background: radial-gradient(circle at 50% 45%, rgba(31,111,235,.14), transparent 62%); z-index: -1; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } .about-visual { order: -1; max-width: 520px; } }

/* =========================================================
   RESEARCH PILLARS
   ========================================================= */
.research { background: var(--bg-soft); position: relative; }
.research .section-head { display: flex; flex-direction: column; }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pillar {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px 34px; overflow: hidden; transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s;
}
.pillar::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--pc, var(--blue)); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.pillar:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; }
.pillar:hover::before { transform: scaleX(1); }
.pillar .icon { width: 54px; height: 54px; border-radius: 15px; display: grid; place-items: center; background: color-mix(in srgb, var(--pc) 12%, #fff); color: var(--pc); margin-bottom: 22px; transition: .35s var(--ease); }
.pillar:hover .icon { background: var(--pc); color: #fff; transform: rotate(-6deg) scale(1.05); }
.pillar .icon svg { width: 26px; height: 26px; }
.pillar h3 { font-family: var(--f-display); font-size: 1.28rem; font-weight: 600; letter-spacing: -.01em; }
.pillar .en { display: block; font-size: .82rem; color: var(--pc); font-weight: 600; margin: 4px 0 14px; font-family: var(--f-display); letter-spacing: .01em; }
.pillar p { color: var(--slate); font-size: .96rem; margin: 0; }
.pillar .num { position: absolute; top: 22px; right: 26px; font-family: var(--f-display); font-weight: 700; font-size: 1rem; color: var(--line-strong); }
@media (max-width: 900px) { .pillars { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .pillars { grid-template-columns: 1fr; } }

/* =========================================================
   DATA COLLECTOR
   ========================================================= */
.collector { position: relative; overflow: hidden; color: #fff; background: linear-gradient(135deg, #0d47c9 0%, #1f6feb 55%, #0b3aa8 100%); }
.collector::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 82% 20%, rgba(255,255,255,.16), transparent 40%), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cpath d='M0 39.5H40M39.5 0V40' stroke='rgba(255,255,255,.06)' stroke-width='1'/%3E%3C/svg%3E"); pointer-events: none; }
.collector .wrap { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.collector .eyebrow { color: var(--sky-soft); }
.collector .eyebrow::before { background: linear-gradient(90deg, var(--sky-soft), transparent); }
.collector h2 { font-family: var(--f-display); font-size: clamp(1.9rem, 4.4vw, 3rem); line-height: 1.06; font-weight: 600; letter-spacing: -.02em; margin: 18px 0 20px; }
.collector p { color: rgba(255,255,255,.82); font-size: 1.08rem; max-width: 52ch; }
.collector .feat-list { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 32px; }
.collector .feat-list li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 15px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); border-radius: 999px; font-size: .88rem; }
.collector .feat-list svg { width: 15px; height: 15px; color: var(--lime); }
.collector-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.collector-cta .ver { font-family: var(--f-display); font-size: .84rem; color: rgba(255,255,255,.7); }

.app-mock { position: relative; }
.app-window { background: #0a1330; border: 1px solid rgba(255,255,255,.14); border-radius: 16px; box-shadow: var(--shadow-lg); overflow: hidden; transform: perspective(1400px) rotateY(-12deg) rotateX(4deg); transition: transform .5s var(--ease); }
.app-mock:hover .app-window { transform: perspective(1400px) rotateY(-6deg) rotateX(2deg); }
.app-bar { display: flex; align-items: center; gap: 7px; padding: 12px 14px; background: rgba(255,255,255,.05); border-bottom: 1px solid rgba(255,255,255,.08); }
.app-bar i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.app-bar i:nth-child(1) { background: #ff5f57; }
.app-bar i:nth-child(2) { background: #febc2e; }
.app-bar i:nth-child(3) { background: #28c840; }
.app-bar .title { margin-left: 10px; font-family: var(--f-display); font-size: .78rem; color: rgba(255,255,255,.6); }
.app-body { padding: 20px; display: grid; gap: 12px; }
.app-row { display: flex; gap: 10px; align-items: center; }
.app-chip { height: 30px; border-radius: 8px; background: rgba(255,255,255,.07); flex: 1; }
.app-chip.accent { background: linear-gradient(90deg, rgba(56,189,248,.5), rgba(56,189,248,.15)); }
.app-chip.lime { background: linear-gradient(90deg, rgba(183,196,0,.55), rgba(183,196,0,.12)); flex: .6; }
.app-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.app-cell { aspect-ratio: 1; border-radius: 7px; background: rgba(255,255,255,.06); }
.app-cell.on { background: rgba(31,111,235,.55); box-shadow: 0 0 14px rgba(31,111,235,.5); }
.app-cell.on2 { background: rgba(56,189,248,.5); }
.app-cell.on3 { background: rgba(183,196,0,.5); }
@media (max-width: 900px) { .collector .wrap { grid-template-columns: 1fr; } .app-window { transform: none; } .app-mock:hover .app-window { transform: none; } }

/* =========================================================
   NEWS
   ========================================================= */
.news { background: var(--bg); }
.news-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 46px; flex-wrap: wrap; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.news-card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.news-card .thumb { aspect-ratio: 16/10; position: relative; overflow: hidden; background: var(--bg-tint); }
.news-card .thumb .ph { position: absolute; inset: 0; display: grid; place-items: center; }
.news-card .thumb .ph svg { width: 46px; height: 46px; opacity: .5; }
.news-card .thumb.c-media { background: linear-gradient(135deg, #1f6feb22, #38bdf822); }
.news-card .thumb.c-notice { background: linear-gradient(135deg, #b7c40022, #38bdf822); }
.news-card .thumb.c-event { background: linear-gradient(135deg, #ef3e3622, #1f6feb22); }
.news-card .body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.tag { align-self: flex-start; font-family: var(--f-display); font-size: .72rem; font-weight: 600; letter-spacing: .03em; padding: 5px 11px; border-radius: 999px; text-transform: uppercase; }
.tag.media { background: #e8f0fe; color: #1552c7; }
.tag.notice { background: #f2f6d9; color: #7a8300; }
.tag.event { background: #fdeaea; color: #c72d26; }
.news-card h3 { font-size: 1.12rem; font-weight: 600; line-height: 1.4; margin: 14px 0 12px; letter-spacing: -.01em; transition: color .2s; }
.news-card:hover h3 { color: var(--blue); }
.news-card .meta { margin-top: auto; display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .85rem; font-family: var(--f-display); }
.news-card .meta svg { width: 15px; height: 15px; }
@media (max-width: 900px) { .news-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .news-grid { grid-template-columns: 1fr; } }

/* =========================================================
   PEOPLE
   ========================================================= */
.people { background: var(--bg-soft); }
.people-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(30px, 5vw, 60px); align-items: stretch; }
.prof-card {
  background: linear-gradient(160deg, var(--ink), var(--navy)); color: #fff; border-radius: var(--radius-lg);
  padding: clamp(32px, 4vw, 46px); position: relative; overflow: hidden; box-shadow: var(--shadow);
}
.prof-card::after { content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(31,111,235,.4), transparent 70%); top: -80px; right: -60px; }
.prof-card .role { position: relative; z-index: 2; font-family: var(--f-display); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--sky-soft); }
.prof-card .avatar { position: relative; z-index: 2; width: 90px; height: 90px; border-radius: 22px; margin: 20px 0; display: grid; place-items: center; font-family: var(--f-display); font-weight: 700; font-size: 2rem; background: linear-gradient(135deg, var(--blue), var(--sky)); color: #fff; }
.prof-card h3 { position: relative; z-index: 2; font-family: var(--f-display); font-size: 1.7rem; font-weight: 600; }
.prof-card .h-en { position: relative; z-index: 2; color: rgba(255,255,255,.6); font-size: .95rem; margin-top: 2px; }
.prof-card .bio { position: relative; z-index: 2; margin-top: 20px; color: rgba(255,255,255,.78); font-size: .98rem; }
.prof-card .creds { position: relative; z-index: 2; margin-top: 22px; display: grid; gap: 12px; }
.prof-card .creds li { display: flex; gap: 12px; align-items: flex-start; font-size: .9rem; color: rgba(255,255,255,.82); }
.prof-card .creds svg { width: 18px; height: 18px; color: var(--lime); flex-shrink: 0; margin-top: 2px; }
.prof-card .prof-link { position: relative; z-index: 2; margin-top: 26px; }
.prof-card .prof-link .link-arrow { color: var(--sky-soft); }

.members-panel { display: flex; flex-direction: column; gap: 20px; }
.members-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.member-stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px; }
.member-stat .n { font-family: var(--f-display); font-weight: 700; font-size: 2.2rem; line-height: 1; color: var(--blue); }
.member-stat .t { margin-top: 8px; font-size: .88rem; color: var(--slate); }
.members-cloud { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 26px 28px; flex: 1; }
.members-cloud h4 { font-family: var(--f-display); font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span { padding: 7px 13px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 999px; font-size: .86rem; color: var(--ink); transition: .2s; }
.chips span:hover { background: var(--blue); color: #fff; border-color: var(--blue); transform: translateY(-2px); }
.chips .more { background: var(--ink); color: #fff; border-color: var(--ink); font-family: var(--f-display); font-weight: 600; }
@media (max-width: 800px) { .people-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .members-stats { grid-template-columns: 1fr; } }

/* =========================================================
   CONTACT / CTA
   ========================================================= */
.contact { background: var(--bg); }
.contact-card {
  background: radial-gradient(120% 140% at 90% 0%, #16306b, #0b1b3a 55%, #070d1f);
  color: #fff; border-radius: var(--radius-lg); padding: clamp(44px, 6vw, 80px);
  display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(36px, 5vw, 70px); align-items: center;
  position: relative; overflow: hidden; box-shadow: var(--shadow-lg);
}
.contact-card::before { content: ""; position: absolute; width: 400px; height: 400px; border-radius: 50%; background: radial-gradient(circle, rgba(56,189,248,.25), transparent 70%); bottom: -180px; left: -120px; }
.contact-card .cc-left { position: relative; z-index: 2; }
.contact-card h2 { font-family: var(--f-display); font-size: clamp(1.9rem, 4.5vw, 3rem); line-height: 1.06; font-weight: 600; letter-spacing: -.02em; margin: 16px 0 18px; }
.contact-card p { color: rgba(255,255,255,.76); font-size: 1.06rem; max-width: 44ch; }
.contact-card .cc-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.contact-info { position: relative; z-index: 2; display: grid; gap: 4px; }
.info-row { display: flex; gap: 16px; align-items: flex-start; padding: 18px 0; border-top: 1px solid rgba(255,255,255,.12); }
.info-row:last-child { border-bottom: 1px solid rgba(255,255,255,.12); }
.info-row .ic { width: 42px; height: 42px; border-radius: 12px; background: rgba(255,255,255,.08); display: grid; place-items: center; flex-shrink: 0; }
.info-row .ic svg { width: 19px; height: 19px; color: var(--sky-soft); }
.info-row .txt small { display: block; font-size: .76rem; color: rgba(255,255,255,.5); font-family: var(--f-display); letter-spacing: .08em; text-transform: uppercase; }
.info-row .txt b { font-weight: 500; font-size: 1rem; }
@media (max-width: 820px) { .contact-card { grid-template-columns: 1fr; } }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { background: var(--ink); color: rgba(255,255,255,.6); padding: 70px 0 34px; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; padding-bottom: 44px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-brand img { height: 44px; margin-bottom: 20px; }
.footer-brand p { max-width: 40ch; font-size: .94rem; line-height: 1.7; }
.footer-brand .socials { display: flex; gap: 10px; margin-top: 22px; }
.footer-brand .socials a { width: 38px; height: 38px; border-radius: 10px; border: 1px solid rgba(255,255,255,.14); display: grid; place-items: center; color: rgba(255,255,255,.7); transition: .2s; }
.footer-brand .socials a:hover { background: #fff; color: var(--ink); border-color: #fff; }
.footer-brand .socials svg { width: 17px; height: 17px; }
.footer-col h5 { font-family: var(--f-display); color: #fff; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 18px; }
.footer-col a { display: block; padding: 7px 0; font-size: .94rem; color: rgba(255,255,255,.6); transition: .18s; }
.footer-col a:hover { color: #fff; padding-left: 5px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 26px; font-size: .84rem; flex-wrap: wrap; }
.footer-bottom .made { color: rgba(255,255,255,.4); }
@media (max-width: 800px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* =========================================================
   REVEAL ANIMATIONS
   ========================================================= */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal][data-delay="1"] { transition-delay: .08s; }
[data-reveal][data-delay="2"] { transition-delay: .16s; }
[data-reveal][data-delay="3"] { transition-delay: .24s; }
[data-reveal][data-delay="4"] { transition-delay: .32s; }
[data-reveal][data-delay="5"] { transition-delay: .4s; }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* =========================================================
   NAV DROPDOWN (People)
   ========================================================= */
.nav .has-sub { position: relative; }
.nav .sub-toggle {
  display: inline-flex; align-items: center; gap: 5px; padding: 10px 14px; border-radius: 10px;
  font-size: .92rem; font-weight: 500; color: var(--slate); transition: .18s;
}
.nav .sub-toggle svg { width: 15px; height: 15px; transition: transform .25s var(--ease); }
.nav .has-sub:hover .sub-toggle, .nav .has-sub.active .sub-toggle { color: var(--ink); }
.nav .has-sub.active .sub-toggle { background: var(--bg-soft); }
.nav .subnav {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 210px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg);
  padding: 8px; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: .22s var(--ease); z-index: 60;
}
.nav .has-sub:hover .subnav { opacity: 1; visibility: visible; transform: translateY(0); }
.nav .has-sub:hover .sub-toggle svg { transform: rotate(180deg); }
.nav .subnav a { display: block; padding: 10px 14px; border-radius: 9px; font-size: .9rem; color: var(--slate); }
.nav .subnav a:hover { background: var(--bg-tint); color: var(--ink); }
.nav .subnav a[aria-current="page"] { color: var(--blue); font-weight: 600; }

@media (max-width: 1000px) {
  .nav .has-sub { display: flex; flex-direction: column; align-items: stretch; }
  .nav .sub-toggle { justify-content: space-between; padding: 14px 16px; font-size: 1.05rem; width: 100%; }
  .nav .subnav {
    position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0;
    background: var(--bg-soft); border-radius: 12px; margin: 2px 0 6px; padding: 6px; max-height: 0; overflow: hidden; transition: max-height .3s var(--ease), padding .3s;
  }
  .nav .has-sub.open .subnav { max-height: 320px; }
  .nav .has-sub.open .sub-toggle svg { transform: rotate(180deg); }
  .nav .subnav a { padding: 12px 16px; }
}

/* =========================================================
   PAGE HERO (inner pages)
   ========================================================= */
.page-hero {
  position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(120% 150% at 88% -20%, #16306b 0%, #0b1b3a 48%, #070d1f 100%);
  padding: clamp(56px, 8vw, 104px) 0 clamp(48px, 7vw, 84px);
}
.page-hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44'%3E%3Cpath d='M0 43.5H44M43.5 0V44' stroke='rgba(255,255,255,.05)' stroke-width='1'/%3E%3C/svg%3E");
}
.page-hero .hero-glow { opacity: .4; }
.page-hero .wrap { position: relative; z-index: 2; }
.crumb { display: flex; align-items: center; gap: 8px; font-family: var(--f-display); font-size: .82rem; color: rgba(255,255,255,.55); margin-bottom: 20px; }
.crumb a { color: rgba(255,255,255,.7); } .crumb a:hover { color: #fff; }
.crumb svg { width: 14px; height: 14px; opacity: .6; }
.page-hero h1 { font-family: var(--f-display); font-weight: 600; font-size: clamp(2.1rem, 5.5vw, 3.7rem); line-height: 1.03; letter-spacing: -.03em; }
.page-hero .h-en { display: block; margin-top: 10px; font-family: var(--f-display); font-size: clamp(1rem, 2vw, 1.25rem); color: var(--sky-soft); font-weight: 500; letter-spacing: .01em; }
.page-hero .lead { margin-top: 22px; max-width: 60ch; font-size: 1.08rem; color: rgba(255,255,255,.76); }

/* =========================================================
   PROSE (article content)
   ========================================================= */
.prose { max-width: 74ch; color: var(--slate); font-size: 1.075rem; }
.prose.wide { max-width: none; }
.prose p { margin-bottom: 20px; }
.prose h2 { font-family: var(--f-display); font-size: 1.7rem; color: var(--ink); letter-spacing: -.02em; margin: 40px 0 16px; }
.prose h3 { font-family: var(--f-display); font-size: 1.28rem; color: var(--ink); margin: 32px 0 12px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a:not(.btn) { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
/* WordPress content rendered inside .prose */
.prose img { max-width: 100%; height: auto; border-radius: 12px; }
.prose figure { margin: 26px 0; }
.prose figure.is-style-rounded img, .prose figure.wp-block-image img { border-radius: 16px; box-shadow: var(--shadow-sm); }
.prose figure figcaption { font-size: .85rem; color: var(--muted); margin-top: 8px; text-align: center; }
.prose .wp-block-columns { display: flex; gap: clamp(20px, 4vw, 44px); flex-wrap: wrap; align-items: center; margin: 8px 0; }
.prose .wp-block-column { flex: 1 1 220px; min-width: 0; }
.prose ul:not(.ticks) { list-style: disc; padding-left: 22px; margin: 0 0 20px; display: block; }
.prose ul:not(.ticks) li { margin-bottom: 8px; }
.prose table { border-collapse: collapse; width: 100%; margin: 20px 0; font-size: .95rem; }
.prose table td, .prose table th { border: 1px solid var(--line); padding: 10px 12px; }
.prose ul.ticks { margin: 0 0 20px; display: grid; gap: 12px; }
.prose ul.ticks li { position: relative; padding-left: 32px; }
.prose ul.ticks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 6px; background: var(--bg-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%231f6feb' stroke-width='2.5' viewBox='0 0 24 24'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center no-repeat; }

.split { display: grid; grid-template-columns: 300px 1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.split.reverse { grid-template-columns: 1fr 340px; }
@media (max-width: 820px){ .split, .split.reverse { grid-template-columns: 1fr; } }

.sticky-card { position: sticky; top: 100px; }
.figure { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); background: var(--bg-soft); }
.figure img { width: 100%; display: block; }
.figure .cap { padding: 14px 18px; font-size: .85rem; color: var(--muted); }

/* =========================================================
   DATA TABLE (members, alumni)
   ========================================================= */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
.data-table { width: 100%; border-collapse: collapse; min-width: 640px; font-size: .94rem; }
.data-table thead th { background: var(--ink); color: #fff; font-family: var(--f-display); font-weight: 600; font-size: .82rem; letter-spacing: .02em; text-align: left; padding: 15px 18px; white-space: nowrap; }
.data-table tbody td { padding: 15px 18px; border-top: 1px solid var(--line); vertical-align: top; }
.data-table tbody tr:nth-child(even) { background: var(--bg-soft); }
.data-table tbody tr:hover { background: var(--bg-tint); }
.data-table .name-ko { font-weight: 600; color: var(--ink); }
.data-table .name-en { color: var(--muted); font-size: .86rem; }
.data-table .no { color: var(--muted); font-family: var(--f-display); font-weight: 600; }
.data-table .en { color: var(--muted); font-size: .86rem; }
.badge { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: .74rem; font-weight: 600; font-family: var(--f-display); white-space: nowrap; }
.badge.phd { background: #e8f0fe; color: #1552c7; }
.badge.ms { background: #f2f6d9; color: #7a8300; }
.badge.postdoc { background: #ede9fe; color: #6d28d9; }
.badge.integrated { background: #fdeaea; color: #c72d26; }

/* Member group cards */
.member-group { margin-bottom: 56px; }
.member-group > h2 { display: flex; align-items: baseline; gap: 12px; font-family: var(--f-display); font-size: 1.5rem; letter-spacing: -.01em; margin-bottom: 6px; }
.member-group > h2 .en { font-size: .95rem; color: var(--muted); font-weight: 500; }
.member-group > h2 .cnt { margin-left: auto; font-size: .95rem; color: var(--blue); font-weight: 600; }
.member-group > .sub { color: var(--muted); font-size: .9rem; margin-bottom: 22px; }

.people-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.pcard { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 24px; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; }
.pcard:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.pcard .av { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-family: var(--f-display); font-weight: 700; color: #fff; margin-bottom: 14px; font-size: 1.05rem; }
.pcard h3 { font-size: 1.12rem; font-weight: 600; }
.pcard .en { color: var(--muted); font-size: .84rem; margin-bottom: 12px; }
.pcard .topic { font-size: .9rem; color: var(--slate); padding-top: 12px; border-top: 1px dashed var(--line); }
.pcard .topic .en { color: var(--muted); font-size: .8rem; margin: 2px 0 0; }

/* =========================================================
   TIMELINE (hall of fame)
   ========================================================= */
.hof-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.hof-card { display: flex; gap: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.hof-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.hof-card .photo { flex-shrink: 0; width: 76px; height: 76px; border-radius: 16px; object-fit: cover; background: var(--bg-tint); border: 1px solid var(--line); }
.hof-card .photo.ph { display: grid; place-items: center; font-family: var(--f-display); font-weight: 700; font-size: 1.5rem; color: #fff; }
.hof-card h3 { font-size: 1.14rem; font-weight: 600; }
.hof-card .role { color: var(--blue); font-size: .84rem; font-weight: 600; margin: 2px 0 8px; }
.hof-card p { font-size: .9rem; color: var(--slate); margin: 0; }

/* =========================================================
   NEWS LIST + FILTER
   ========================================================= */
.news-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 34px; }
.news-filter button { padding: 9px 18px; border-radius: 999px; border: 1.5px solid var(--line-strong); font-family: var(--f-display); font-weight: 500; font-size: .9rem; color: var(--slate); transition: .18s; }
.news-filter button:hover { border-color: var(--ink); color: var(--ink); }
.news-filter button.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.news-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 900px){ .news-list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px){ .news-list { grid-template-columns: 1fr; } }
.news-item .thumb img { width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block; }

/* =========================================================
   APPOINTMENT / CONTACT PAGE
   ========================================================= */
.embed-frame { width: 100%; min-height: 720px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
.contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin-top: 8px; }
.ccard { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.ccard .ic { width: 46px; height: 46px; border-radius: 12px; background: var(--bg-tint); display: grid; place-items: center; color: var(--blue); margin-bottom: 16px; }
.ccard .ic svg { width: 22px; height: 22px; }
.ccard h3 { font-family: var(--f-display); font-size: 1.05rem; margin-bottom: 6px; }
.ccard p { color: var(--slate); font-size: .95rem; margin: 0; }
.ccard a { color: var(--blue); }
.map-wrap { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.map-wrap iframe { width: 100%; height: 420px; border: 0; display: block; }

/* Section tint helper */
.section.tint { background: var(--bg-soft); }

/* Hide Google Translate default UI */
#google_translate_element, .goog-te-banner-frame, .skiptranslate { display: none !important; }
body { top: 0 !important; }
.goog-te-gadget { display: none !important; }
font { background: transparent !important; box-shadow: none !important; }
