/* ============================================================
   Dahyeon Kye — researcher homepage
   Tone: dark glamour, glitter & grain. Warm near-black base,
   sapphire-cobalt starlight accent, champagne-gold and
   terracotta warm notes, heavy film grain. Cinematic, opulent.
   ============================================================ */

:root {
  color-scheme: dark;
  --bg:        #0e0b0c;   /* warm near-black               */
  --bg2:       #17110f;   /* lifted warm dark (top)        */
  --panel:     #130d0e;   /* card / surface                */
  --panel-2:   #181113;   /* lighter                       */
  --ink:       #ece3d4;   /* champagne cream text          */
  --muted:     #a2907e;   /* warm taupe                    */
  --faint:     #6f6153;   /* very muted                    */

  /* glitter palette */
  --cobalt:    #3f6be6;   /* sapphire starlight (accent)   */
  --cobalt-2:  #83a1f2;   /* lighter (hover)               */
  --gold:      #d8b877;   /* champagne / gold glitter      */
  --terracotta:#bb4a63;   /* magenta terracotta (자홍)       */

  --accent:    var(--cobalt);
  --accent-2:  var(--cobalt-2);
  --line:      rgba(236, 227, 212, 0.11);  /* hairline     */
  --line-bold: rgba(236, 227, 212, 0.22);  /* strong rule  */

  --font-serif: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-sans:  "Plus Jakarta Sans", system-ui, sans-serif;
  --font-mono:  "JetBrains Mono", monospace;

  --wrap: 980px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(52% 40% at 50% -6%, rgba(63, 107, 230, 0.22) 0%, rgba(14, 11, 12, 0) 60%),
    radial-gradient(46% 40% at 88% 90%, rgba(187, 74, 99, 0.20) 0%, rgba(14, 11, 12, 0) 62%),
    radial-gradient(40% 34% at 8% 84%, rgba(216, 184, 119, 0.12) 0%, rgba(14, 11, 12, 0) 60%),
    linear-gradient(180deg, var(--bg2) 0%, var(--bg) 46%, #080606 100%);
  background-attachment: fixed;
}

/* dark glamour atmosphere + vignette */
.smoke {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(46% 36% at 50% 0%, rgba(63, 107, 230, 0.12) 0%, rgba(0,0,0,0) 70%),
    radial-gradient(130% 96% at 50% 36%, rgba(0, 0, 0, 0) 60%, rgba(0, 0, 0, 0.42) 100%);
  filter: blur(0.3px);
}

/* heavy film grain (never blocks clicks) */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  opacity: 0.09;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='150' height='150'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

a { color: var(--accent); text-decoration: none; border-bottom: 1px solid rgba(63, 107, 230, 0.5); padding-bottom: 1px; }
a:hover { color: var(--accent-2); border-bottom-color: var(--accent-2); }
strong, b { color: var(--ink); font-weight: 700; }

/* ===================== Frame / wrapper ===================== */
.wrap {
  position: relative;
  z-index: 1;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px 56px;
  background: transparent;
  border: 0;
  box-shadow: none;
}

/* ===================== Top bar ===================== */
.topbar {
  margin: 0 -24px 44px;
  border-bottom: 1px solid var(--line-bold);
}
.topbar__main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px 28px;
  flex-wrap: wrap;
  padding: 16px 24px;
}
.topbar__home {
  color: var(--ink);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 0;
}
.topbar__home:hover { color: var(--accent); }
.topbar__nav { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 22px; }
.topbar__nav a {
  color: var(--muted);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 0;
}
.topbar__nav a:hover { color: var(--accent); }

/* ===================== Masthead ===================== */
.masthead {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-bottom: 40px;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.masthead__text { flex: 1 1 280px; min-width: 0; }

.site-photo {
  position: relative;
  flex: none;
  width: 170px;
  height: 170px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line-bold);
  border-radius: 50%;
  background: #1a1310;
}

.site-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.site-photo figcaption {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faint);
}

.site-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(30px, 4vw, 40px);
  line-height: 1.15;
  margin: 0;
  color: #fff;
  -webkit-text-fill-color: #fff;
}
.masthead__intro {
  margin: 16px 0 0;
  max-width: 760px;
  font-family: var(--font-sans);
  font-size: 16px;
  color: #fff;
  line-height: 1.7;
}
.masthead__intro a { color: var(--accent); }
.masthead__intro a:hover { color: var(--accent-2); }

.profile-links,
.collab-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 12px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.profile-links a,
.collab-links a {
  border-bottom: 0;
  padding-bottom: 0;
}
.profile-links a {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: var(--muted);
  border: 1px solid var(--line-bold);
  border-radius: 10px;
  transition: color .2s ease, border-color .2s ease, background-color .2s ease, transform .2s ease;
}
.profile-links { gap: 10px; }
.profile-links a:hover {
  color: var(--accent-2);
  border-color: var(--accent);
  background: rgba(63, 107, 230, 0.1);
  transform: translateY(-2px);
}
.profile-links svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}
.collab-label {
  color: var(--gold);
  font-weight: 700;
}

.masthead__research {
  margin: 16px 0 0;
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.masthead__research .research-label { color: var(--accent); margin-right: 12px; }

/* Editorial research-focus metadata: compact and secondary to the paper title. */
.ptags {
  list-style: none;
  min-height: 43px;
  margin: 0;
  padding: 3px 0 3px 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  align-self: flex-start;
  color: var(--accent-2);
  border-left: 2px solid var(--accent);
  font-size: 12px;
  line-height: 1.35;
}
.ptags::before {
  content: "Keywords";
  flex: 0 0 100%;
  width: auto;
  margin: 0 0 3px;
  color: var(--faint);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}
.ptags li {
  display: inline;
  color: var(--accent-2);
  letter-spacing: 0.01em;
}
.ptags li:not(:last-child)::after {
  content: "·";
  margin: 0 7px;
  color: var(--faint);
}

/* ===================== Section block ===================== */
.block { margin-bottom: 40px; }
.block:last-of-type { margin-bottom: 8px; }

.block__title {
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--ink);
  font-size: 22px;
  letter-spacing: 0;
  text-transform: none;
  margin: 0 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line-bold);
}
.block p { margin: 0 0 12px; }
.block__sub { color: var(--muted); font-size: 13.5px; margin: 0 0 16px; }

/* ===================== Publications (plain academic section) ===================== */
.block--feature { margin: 0 0 40px; }
.block__head { margin: 0; }

/* ===================== Publication cards (poster grid) ===================== */
.cardgrid {
  list-style: none;
  margin: 0;
  padding: 0;
}
.pcard {
  display: flex;
  flex-direction: row;
  gap: 22px;
  align-items: flex-start;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.pcard:first-child { border-top: 1px solid var(--line); }
.pcard__thumb {
  position: relative;
  flex: none;
  width: 180px;
  height: 112px;
  margin: 0;
  overflow: hidden;
  background: linear-gradient(150deg, #201512 0%, #14100f 100%);
  border: 1px solid var(--line-bold);
  transition: border-color .25s ease, box-shadow .25s ease;
}

.pcard__thumb img,
.pcard__thumb video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;   /* show the whole preview, no cropping */
  display: block;
  transition: transform .35s ease;
}
.pcard:hover .pcard__thumb { border-color: var(--accent); box-shadow: 0 0 18px rgba(63, 107, 230, 0.28); }

/* paper emblem (author-made icon) — small logo in front of the title */
.pcard__titleicon {
  height: 22px;
  width: auto;
  max-width: 34px;
  object-fit: contain;
  border-radius: 4px;
  vertical-align: -5px;
  margin-right: 8px;
}
.pcard:hover .pcard__thumb img,
.pcard:hover .pcard__thumb video { transform: scale(1.04); }
/* venue badge — filled with the conference's highlight color */
.pcard__venue {
  align-self: flex-start;
  display: inline-block;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: 3px;
  color: #fff;
  background: #555;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.25);
}
.pcard__venue--eccv  { background: #7b52d6; }                 /* ECCV — violet   */
.pcard__venue--cvpr  { background: #2f74e0; }                 /* CVPR — blue     */
.pcard__venue--tcsvt { background: #109e8b; }                 /* IEEE TCSVT — teal */
.pcard__venue--review {
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line-bold);
  box-shadow: none;
}

/* group heading (e.g., Under Review) */
.pubgroup {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 16px;
  color: var(--muted);
  margin: 30px 0 6px;
}
.pcard__body {
  display: flex;
  flex-direction: column;
  gap: 9px;
  flex: 1;
  min-width: 0;
  padding-top: 2px;
}
.pcard__title { margin: 0; font-size: 16px; font-weight: 700; line-height: 1.4; color: var(--ink); }
.pcard__by { margin: 0; font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.pcard__collab {
  align-self: flex-start;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-height: 43px;
  margin: 0;
  padding: 3px 0 3px 12px;
  color: var(--gold);
  border-left: 2px solid var(--gold);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}
.pcard__collab span {
  flex: none;
  width: auto;
  margin: 0 0 3px;
  color: var(--faint);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}
.pcard__links { margin: 2px 0 0; font-family: var(--font-mono); font-size: 13.5px; color: var(--faint); }
.block .pcard__by,
.block .pcard__collab,
.block .pcard__links { margin-top: 0; margin-bottom: 0; }
.pcard__links a { color: var(--accent); border: 0; }
.pcard__links a:hover { color: var(--accent-2); }

@media (max-width: 560px) {
  .pcard { flex-direction: column; gap: 12px; }
  .pcard__thumb { width: 100%; height: auto; aspect-ratio: 16 / 10; }
}

/* ===================== Secondary two-column grid ===================== */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.grid-2 .block { margin-bottom: 28px; }
.grid-2 .block:last-child { margin-bottom: 0; }

/* ===================== Fact / link lists ===================== */
.facts, .linklist { list-style: none; padding: 0; margin: 0; }
.facts li, .linklist li { margin: 0 0 8px; font-size: 14px; }
.facts .b, .linklist .b { color: var(--accent); margin-right: 9px; }
.facts b, .linklist b { color: var(--ink); }
.tag-main {
  display: inline-block;
  margin-left: 9px;
  padding: 1px 8px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  border: 1px solid rgba(63, 107, 230, 0.5);
}

/* ===================== News ===================== */
.newslist { list-style: none; margin: 0; padding: 0; }
.newslist li {
  display: flex;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
  line-height: 1.55;
}
.newslist li:first-child { border-top: 1px solid var(--line); }
.news__date {
  flex: none;
  min-width: 62px;
  font-family: var(--font-mono);
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.news__text { color: var(--ink); }
.news__where { color: var(--muted); }

/* News promoted: full-width single-column timeline */
.block--news { margin-bottom: 44px; }
.block--news .newslist li { padding: 15px 0; font-size: 15px; gap: 24px; }
.block--news .news__date { min-width: 100px; font-size: 13.5px; }

/* inline contact links */
.linklist--inline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 0;
  font-size: 13.5px;
}
.linklist--inline li { display: inline-flex; align-items: center; }
.linklist--inline li:not(:last-child)::after {
  content: "/";
  color: var(--faint);
  margin: 0 14px;
}
.linklist--inline li.muted { color: var(--muted); }

/* ===================== Post list ===================== */
.postlist { list-style: none; padding: 0; margin: 0; }
.post {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.post:first-child { border-top: 1px solid var(--line); }

/* posts with a thumbnail */
.post--media { display: flex; align-items: flex-start; gap: 18px; }
.post__content { flex: 1; min-width: 0; }
.post__thumb {
  position: relative;
  flex: none;
  width: 116px;
  height: 74px;
  margin: 2px 0 0;
  overflow: hidden;
  border: 1px solid var(--line-bold);
  background: #1a1310;
}
.post__thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.post__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}
.post__title { color: var(--ink); font-weight: 700; font-size: 14px; line-height: 1.45; }
.post__date {
  flex: none;
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.post__by { margin: 5px 0 0; font-size: 12.5px; color: var(--muted); line-height: 1.55; }
.post__by a { color: var(--ink); border: 0; }
.post__links { margin: 6px 0 0; font-size: 12.5px; color: var(--faint); line-height: 1.5; }
.post__links a { color: var(--accent); border: 0; }
.post__links a:hover { color: var(--accent-2); }

/* ===================== Misc ===================== */
.note { color: var(--faint); font-size: 12px; margin: 16px 0 0; }
.note a { color: var(--muted); border: 0; }
.note a:hover { color: var(--accent); }

/* ===================== Footer ===================== */
.site-foot {
  margin-top: 40px;
  padding-top: 18px;
  border-top: 1px solid var(--line-bold);
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
}
/* ===================== Responsive ===================== */
@media (max-width: 760px) {
  .wrap { padding: 0 18px 44px; }
  .topbar { margin: 0 -18px 36px; }
  .topbar__main { padding: 14px 18px; }
}
