/* Main page only: compact, selectable portfolio views. */

.portfolio-v2.home-page.tabbed-home .hero {
  min-height: 590px;
  padding-block: 54px 62px;
}

.portfolio-v2.home-page.tabbed-home .hero-profile-links {
  margin-top: 30px;
}

.hero-affiliation::before {
  content: " · ";
}

.portfolio-v2.home-page.tabbed-home .hero-stage {
  min-height: 460px;
}

.home-view-nav {
  position: sticky;
  z-index: 60;
  top: 0;
  display: grid;
  grid-template-columns: 1.08fr 1.26fr 1.18fr .62fr .98fr;
  overflow: hidden;
  border: 1px solid rgba(47, 92, 229, .2);
  border-radius: 16px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 16px 42px rgba(30, 48, 90, .09);
  backdrop-filter: blur(18px) saturate(140%);
}

.home-view-tab {
  display: flex;
  min-width: 0;
  min-height: 72px;
  gap: 9px;
  align-items: center;
  justify-content: center;
  padding: 13px 12px;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-family: var(--font-display);
  transition: background .2s ease, color .2s ease;
}

.home-view-tab + .home-view-tab {
  border-left: 1px solid var(--line);
}

.home-view-tab span {
  color: var(--blue);
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .06em;
}

.home-view-tab strong {
  overflow: hidden;
  font-size: 11px;
  font-weight: 620;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-view-tab:hover,
.home-view-tab:focus-visible {
  background: #f2f5fc;
  color: var(--ink);
}

.home-view-tab.is-active {
  background: var(--blue);
  color: #fff;
}

.home-view-tab.is-active span {
  color: rgba(255, 255, 255, .72);
}

.tabbed-home .home-view-panel[hidden],
.tabbed-home .research-panel[hidden] {
  display: none !important;
}

.tabbed-home .home-view-panel.section {
  padding-block: 74px 88px;
}

.tabbed-home .home-view-panel.contact {
  min-height: 520px;
  padding-block: 88px;
}

.tabbed-home .home-view-panel.is-active,
.tabbed-home .research-panel.is-active {
  animation: home-panel-in .32s ease both;
}

@keyframes home-panel-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.tabbed-home .section-heading-simple {
  margin-bottom: 38px;
}

.research-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 48px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #f7f8fb;
}

.research-tab {
  display: grid;
  min-width: 0;
  min-height: 78px;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 15px 18px;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-family: var(--font-display);
  text-align: left;
  transition: background .2s ease, color .2s ease;
}

.research-tab + .research-tab {
  border-left: 1px solid var(--line);
}

.research-tab span {
  overflow: hidden;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .07em;
  line-height: 1.35;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.research-tab b {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 8px;
  font-weight: 700;
}

.research-tab:hover,
.research-tab:focus-visible {
  background: #edf2ff;
  color: var(--ink);
}

.research-tab.is-active {
  background: var(--ink);
  color: #fff;
}

.research-tab.is-active b {
  background: #fff;
  color: var(--blue);
}

.tabbed-home .case-list {
  gap: 0;
}

.tabbed-home .research-panel {
  grid-template-columns: minmax(0, 1.05fr) minmax(350px, .95fr);
  gap: clamp(48px, 6vw, 86px);
}

.tabbed-home .research-panel .case-image {
  min-height: 420px;
  order: 0 !important;
  border-radius: 18px;
}

.tabbed-home .research-panel .case-copy h3 {
  font-size: clamp(38px, 4vw, 54px);
}

.publication-awards-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, .65fr);
  gap: 22px;
  align-items: stretch;
}

.publication-feature {
  display: grid;
  min-width: 0;
  min-height: 530px;
  grid-template-columns: minmax(250px, .82fr) minmax(0, 1.18fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(30, 48, 90, .065);
}

.publication-preview {
  position: relative;
  display: block;
  min-width: 0;
  overflow: hidden;
  border-right: 1px solid var(--line);
  background: #e9edf5;
}

.publication-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform .35s ease;
}

.publication-preview:hover img {
  transform: scale(1.018);
}

.publication-type {
  position: absolute;
  top: 18px;
  left: 18px;
  padding: 8px 10px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.publication-open {
  position: absolute;
  right: 18px;
  bottom: 18px;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 18px;
}

.publication-copy {
  display: flex;
  min-width: 0;
  padding: clamp(28px, 3vw, 40px);
  flex-direction: column;
}

.publication-meta {
  margin: 0 0 20px;
  color: var(--blue);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.publication-copy h3 {
  margin: 0;
  font-size: clamp(23px, 2.15vw, 31px);
  font-weight: 680;
  line-height: 1.38;
  letter-spacing: -.04em;
  word-break: keep-all;
}

.publication-copy h3 a {
  color: inherit;
  text-decoration: none;
}

.publication-authors {
  margin: 22px 0 0;
  color: var(--ink);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.75;
}

.publication-summary {
  margin: 17px 0 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.72;
  word-break: keep-all;
}

.publication-metrics {
  display: flex;
  gap: 7px;
  margin-top: 22px;
  flex-wrap: wrap;
}

.publication-metrics span {
  padding: 7px 9px;
  border: 1px solid rgba(47, 92, 229, .18);
  border-radius: 999px;
  background: #f4f7ff;
  color: var(--blue);
  font-family: var(--font-mono);
  font-size: 7.5px;
  font-weight: 700;
}

.publication-link {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  align-self: flex-start;
  margin-top: auto;
  padding-top: 26px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
}

.awards-column {
  display: flex;
  min-width: 0;
  gap: 12px;
  flex-direction: column;
}

.awards-heading {
  display: flex;
  min-height: 50px;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px 11px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}

.awards-heading b {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 8px;
}

.award-card {
  display: flex;
  min-height: 0;
  padding: 24px;
  flex: 1;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 13px 34px rgba(30, 48, 90, .05);
}

.award-topline {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  justify-content: space-between;
}

.award-topline time {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 700;
}

.award-topline span {
  max-width: 175px;
  color: var(--blue);
  font-size: 8px;
  font-weight: 700;
  line-height: 1.4;
  text-align: right;
}

.award-card h3 {
  margin: 29px 0 0;
  font-size: clamp(23px, 1.9vw, 29px);
  line-height: 1.16;
  letter-spacing: -.03em;
}

.award-card h3 small {
  display: block;
  margin-top: 7px;
  color: var(--blue);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0;
}

.award-card .award-event {
  margin: 20px 0 0;
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.45;
}

.award-card .award-organization {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 9.5px;
}

.award-card dl {
  margin: auto 0 0;
  padding-top: 24px;
}

.award-card dl div {
  display: flex;
  gap: 12px;
  align-items: baseline;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.award-card dt {
  color: var(--blue);
  font-family: var(--font-mono);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.award-card dd {
  margin: 0;
  color: var(--ink);
  font-size: 9.5px;
  font-weight: 650;
  line-height: 1.4;
  text-align: right;
}

.tabbed-home .experience-grid {
  gap: 28px;
}

.tabbed-home .experience-group-title {
  padding-bottom: 15px;
}

.tabbed-home .experience-card {
  display: grid;
  min-height: 172px;
  grid-template-columns: 152px minmax(0, 1fr);
  gap: 0;
  margin-top: 14px;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 13px 34px rgba(30, 48, 90, .055);
}

.tabbed-home .experience-card + .experience-card {
  margin-top: 12px;
}

.experience-mark {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 172px;
  margin: 0;
  overflow: hidden;
  place-items: center;
  border-right: 1px solid var(--line);
  background: #f5f7fb;
}

.experience-mark img {
  display: block;
  width: 76%;
  height: 76%;
  object-fit: contain;
}

.experience-mark-dark {
  background:
    linear-gradient(145deg, rgba(47, 92, 229, .18), transparent 60%),
    #101827;
}

.experience-mark-dark img {
  width: 88%;
  height: auto;
}

.experience-card-government .experience-mark img {
  width: 78%;
  height: auto;
}

.experience-card-skku .experience-mark img {
  width: 104%;
  height: 104%;
}

.experience-mark-sejong img {
  position: absolute;
  top: 45%;
  left: 50%;
  width: 215%;
  height: auto;
  max-width: none;
  transform: translate(-50%, -50%);
}

.experience-card-copy {
  display: flex;
  min-width: 0;
  padding: 19px 20px;
  flex-direction: column;
  justify-content: center;
}

.tabbed-home .experience-card-copy time {
  margin-bottom: 16px;
  padding: 0;
}

.tabbed-home .experience-card-copy .experience-role {
  margin-bottom: 7px !important;
}

.tabbed-home .experience-card-copy h3 {
  margin-bottom: 0;
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.35;
}

.tabbed-home .experience-card-copy h3 a {
  color: inherit;
  text-decoration: none;
  transition: color .2s ease;
}

.tabbed-home .experience-card-copy h3 a:hover,
.tabbed-home .experience-card-copy h3 a:focus-visible {
  color: var(--blue);
}

.tabbed-home .experience-card-copy h3 + p {
  margin-top: 9px;
  font-size: 11px;
  line-height: 1.55;
}

@media (max-width: 900px) {
  .portfolio-v2.home-page.tabbed-home .hero {
    min-height: 0;
    padding-block: 52px 58px;
  }

  .portfolio-v2.home-page.tabbed-home .hero-stage {
    min-height: 420px;
  }

  .home-view-nav {
    grid-template-columns: none;
    grid-auto-columns: minmax(184px, 1fr);
    grid-auto-flow: column;
    justify-content: start;
    overflow-x: auto;
    border-radius: 14px;
    scrollbar-width: thin;
  }

  .home-view-tab {
    min-height: 66px;
  }

  .home-view-tab strong {
    text-overflow: clip;
    white-space: normal;
  }

  .home-view-tab + .home-view-tab {
    border-left: 1px solid var(--line);
  }

  .research-tabs {
    grid-template-columns: none;
    grid-auto-columns: minmax(245px, 1fr);
    grid-auto-flow: column;
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .research-tab span {
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
  }

  .research-tab + .research-tab {
    border-left: 1px solid var(--line);
  }

  .tabbed-home .research-panel {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .tabbed-home .research-panel .case-image {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

  .tabbed-home .experience-grid {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .publication-awards-layout {
    grid-template-columns: 1fr;
  }

  .awards-column {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .awards-heading {
    grid-column: 1 / -1;
  }
}

@media (max-width: 620px) {
  .portfolio-v2.home-page.tabbed-home .hero {
    gap: 36px;
    padding-block: 42px 46px;
  }

  .portfolio-v2.home-page.tabbed-home .hero-profile-links {
    margin-top: 24px;
  }

  .portfolio-v2.home-page.tabbed-home .hero-stage {
    min-height: 350px;
  }

  .portfolio-v2.home-page.tabbed-home .hero-stage > img {
    width: min(78%, 280px);
  }

  .portfolio-v2.home-page.tabbed-home .hero-copy {
    overflow: visible;
  }

  .portfolio-v2.home-page.tabbed-home .hero-subrole,
  .portfolio-v2.home-page.tabbed-home .section-deck {
    max-width: 100%;
    overflow-wrap: normal;
    word-break: normal;
  }

  .portfolio-v2.home-page.tabbed-home .hero-affiliation {
    display: block;
  }

  .portfolio-v2.home-page.tabbed-home .hero-affiliation::before {
    content: "";
  }

  .tabbed-home .home-view-panel.section {
    padding-block: 54px 66px;
  }

  .tabbed-home .home-view-panel.contact {
    min-height: 0;
    padding-block: 62px;
  }

  .tabbed-home .section-heading-simple {
    margin-bottom: 30px;
  }

  .tabbed-home .section-heading-simple h2 {
    font-size: clamp(29px, 8.1vw, 34px);
  }

  .tabbed-home #experience .heading-tail {
    display: block;
  }

  .home-view-tab strong {
    font-size: 10px;
  }

  .research-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-columns: auto;
    grid-auto-flow: row;
    margin-bottom: 32px;
    overflow: hidden;
  }

  .research-tab {
    min-height: 76px;
    gap: 8px;
    padding: 13px 12px;
  }

  .research-tab + .research-tab {
    border-left: 0;
  }

  .research-tab:nth-child(even) {
    border-left: 1px solid var(--line);
  }

  .research-tab:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .research-tab span {
    font-size: 8px;
  }

  .publication-feature {
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .publication-preview {
    aspect-ratio: 16 / 10;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .publication-preview img {
    object-position: center 8%;
  }

  .publication-copy {
    padding: 26px 22px 28px;
  }

  .publication-copy h3 {
    font-size: clamp(22px, 6.7vw, 29px);
  }

  .publication-authors {
    font-size: 10.5px;
  }

  .publication-link {
    margin-top: 8px;
  }

  .awards-column {
    grid-template-columns: 1fr;
  }

  .award-card {
    min-height: 230px;
  }

  .tabbed-home .research-panel .case-copy h3 {
    font-size: clamp(32px, 9.4vw, 40px);
  }

  .tabbed-home .experience-card {
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .experience-mark {
    min-height: 128px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .experience-mark-dark img {
    width: min(72%, 240px);
  }

  .experience-card-skku .experience-mark img {
    width: 128px;
    height: 128px;
  }

  .experience-card-government .experience-mark img {
    width: auto;
    height: 104px;
    max-width: 72%;
  }

  .experience-mark-sejong img {
    top: 41%;
    width: min(95%, 336px);
  }

  .experience-card-copy {
    min-height: 142px;
    padding: 20px;
  }

  .tabbed-home .experience-card-copy time {
    margin-bottom: 12px;
  }

  .tabbed-home .experience-card-copy h3 {
    font-size: 16px;
    overflow-wrap: normal;
    word-break: normal;
  }

  .tabbed-home .experience-card-copy h3 + p {
    font-size: 10.5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tabbed-home .home-view-panel.is-active,
  .tabbed-home .research-panel.is-active {
    animation: none;
  }
}
