/* KIT Website — mobile-first layout */
:root {
  --kit-navy: #1a365d;
  --kit-blue: #2c5282;
  --kit-sky: #4a90c8;
  --kit-gold: #c9a227;
  --font-emphasis: 'Montserrat', 'Pretendard', system-ui, sans-serif;
}

body { margin: 0; word-break: keep-all; overflow-wrap: break-word; overflow-x: hidden; }

/* Responsive base font: rem-based Tailwind scales up on larger screens */
html { font-size: 16px; }
@media (min-width: 1024px) { html { font-size: 16.5px; } }   /* laptop */
@media (min-width: 1440px) { html { font-size: 16.5px; } }   /* FHD (1920) — slightly smaller */
@media (min-width: 2400px) { html { font-size: 18px; } }     /* QHD (2560) — keep preferred size */

/* English emphasis typeface (Montserrat) across all pages.
   Korean glyphs fall back to Pretendard via the font stack. */
.font-emphasis,
.portfolio-card__concept,
.about2-intro__title,
.about2-values__section-title,
.about2-values__card-title,
.about2-contact__section-title,
.about2-statement__title {
  font-family: var(--font-emphasis);
}

/* ── Footer bottom-nav: floating pill (main + sub) ── */
.bottom-nav {
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  bottom: 1rem;
  width: 92%;
  max-width: 64rem;
  background-color: rgb(26, 54, 93);
  border-top: 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(15, 28, 48, .28);
}
.bottom-nav__item {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color .18s ease;
}
.bottom-nav__item:hover {
  color: rgba(255, 255, 255, 0.95);
}
.bottom-nav__item.is-active {
  color: #fff;
  font-weight: 800;
  background-color: transparent;
}

/* ── Sub-page body: white background ── */
body:not(.is-landing) {
  background: #ffffff;
}

/* ── About page sections (light surface) — scoped to win over dark base rules ── */
.page-about-light .about2-intro__title,
.page-about-light .about2-values__section-title,
.page-about-light .about2-contact__section-title {
  color: var(--kit-navy);
}
.page-about-light .about2-intro__text {
  color: #334155;
}
.page-about-light .about2-intro__media {
  background: #f1f5f9;
  border-radius: 16px;
}
.page-about-light .about2-values__card,
.page-about-light .about2-contact__form-card {
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 16px rgba(15, 34, 56, .06);
}
.page-about-light .about2-values__card-title {
  color: var(--kit-navy);
}
.page-about-light .about2-values__card-text {
  color: #334155;
}
.page-about-light .about2-contact__desc {
  color: #334155;
}
.page-about-light .about2-contact__block-title {
  color: var(--kit-navy);
}
.page-about-light .about2-contact__list {
  color: #334155;
}
.page-about-light .about2-contact__label {
  color: #475569;
}
.page-about-light .about2-contact__info {
  color: #334155;
}
.page-about-light .about2-contact__info a {
  color: var(--kit-blue);
}
.about2-company {
  border-top-color: #e2e8f0;
}
.page-about-light .about2-company__text {
  color: #475569;
}

/* ── Header background spans full viewport width ── */
.site-header {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}
.site-header > div {
  width: 100%;
  max-width: 64rem;
  margin-left: auto;
  margin-right: auto;
}

/* ── Sub-page header: translucent frosted on scroll ── */
body:not(.is-landing) .site-header {
  transition: background-color .25s ease, backdrop-filter .25s ease, box-shadow .25s ease;
}
body:not(.is-landing) .site-header.is-scrolled {
  background-color: rgba(255, 255, 255, 0.2);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  border-bottom-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 2px 12px rgba(15, 34, 56, .06);
}
.site-logo__img { transition: filter .25s ease; }
.site-logo__sub { transition: color .25s ease, border-color .25s ease; }
.nav-toggle span { transition: background-color .25s ease; }

/* Side drawer menu */
.side-menu {
  visibility: hidden;
  opacity: 0;
  transition: opacity .3s ease, visibility 0s linear .3s;
}
.side-menu.is-open {
  visibility: visible;
  opacity: 1;
  transition: opacity 0s linear;
}
.side-menu__backdrop {
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.side-menu__panel {
  transform: translateX(100%);
  transition: transform .32s cubic-bezier(.4, 0, .2, 1);
  background-color: rgba(26, 54, 93, 0.6);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: #fff;
}
.side-menu__panel a,
.side-menu__panel button { color: #fff; }
.side-menu__panel hr { border-color: rgba(255, 255, 255, 0.25); }
.side-menu__panel .text-gray-500 { color: rgba(255, 255, 255, 0.85); }
.side-menu.is-open .side-menu__panel {
  transform: translateX(0);
}

/* ── Hero slider (full-bleed, always fills the visible viewport) ── */
.hero-slider {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  /* Fallbacks first, then dynamic viewport, then JS-measured height. */
  height: 100vh;
  height: 100dvh;
  height: var(--app-height, 100dvh);
  overflow: hidden;
  background: #0f2238;
  touch-action: pan-y;
}

.hero-slider__track {
  display: flex;
  height: 100%;
  transition: transform .85s cubic-bezier(.4, 0, .2, 1);
  will-change: transform;
}
.hero-slider__track.is-dragging { transition: none; }

.hero-slide {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}

/* Background image layer (separate so it can zoom independently) */
.hero-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--slide-bg-mobile);
  background-size: cover;
  background-position: center;
  transform: scale(1);
  transform-origin: center;
  transition: transform 6s ease-out;
  will-change: transform;
}
@media (min-width: 1024px) {
  .hero-slide::before { background-image: var(--slide-bg-desktop); }
}

/* Slow zoom-in (Ken Burns) while the slide is active */
.hero-slide.is-active::before { transform: scale(1.12); }
@media (prefers-reduced-motion: reduce) {
  .hero-slide::before { transition: none; }
  .hero-slide.is-active::before { transform: scale(1); }
}

/* Text vertical position (mobile defaults, overridden by PC at lg) */
.hero-slide.pos-m-top { justify-content: flex-start; }
.hero-slide.pos-m-middle { justify-content: center; }
.hero-slide.pos-m-bottom { justify-content: flex-end; }
@media (min-width: 1024px) {
  .hero-slide.pos-pc-top { justify-content: flex-start; }
  .hero-slide.pos-pc-middle { justify-content: center; }
  .hero-slide.pos-pc-bottom { justify-content: flex-end; }
}
.hero-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,34,56,.35) 0%, rgba(15,34,56,.15) 38%, rgba(15,34,56,.72) 100%);
}

.hero-slide__inner {
  position: relative;
  z-index: 1;
  color: #fff;
  width: 100%;
  max-width: 64rem;
  margin-left: auto;
  margin-right: auto;
  padding: 2rem 1rem;
  box-sizing: border-box;
}
.hero-slide.pos-m-bottom .hero-slide__inner { padding-top: 2rem; padding-bottom: 7rem; }
.hero-slide.pos-m-top .hero-slide__inner { padding-top: 5.5rem; padding-bottom: 2rem; }
.hero-slide.pos-m-middle .hero-slide__inner { padding-top: 4rem; padding-bottom: 4rem; }
@media (max-width: 1023px) {
  .hero-slide__inner {
    padding-left: calc(1rem + 4%);
    padding-right: calc(1rem + 4%);
    transform: translateY(2em);
  }
}
@media (min-width: 1024px) {
  .hero-slide.pos-pc-bottom .hero-slide__inner { padding-top: 2rem; padding-bottom: 8rem; }
  .hero-slide.pos-pc-top .hero-slide__inner { padding-top: 7rem; padding-bottom: 2rem; }
  .hero-slide.pos-pc-middle .hero-slide__inner { padding-top: 4rem; padding-bottom: 4rem; }
}
.hero-slide__title {
  margin: 0 0 .9rem;
  font-size: clamp(1.7rem, 6vw, 3.4rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -.01em;
}
.hero-slide__desc {
  margin: 0 0 1.6rem;
  font-size: clamp(.95rem, 1.6vw, 1.3rem);
  line-height: 1.6;
  opacity: .95;
}
.hero-slide__title--pc, .hero-slide__desc--pc { display: none; }
.hero-slide__title--mobile, .hero-slide__desc--mobile { display: block; }
@media (min-width: 1024px) {
  .hero-slide__title--pc, .hero-slide__desc--pc { display: block; }
  .hero-slide__title--mobile, .hero-slide__desc--mobile { display: none; }
}
.hero-slide__btn {
  display: inline-block;
  background: #fff;
  color: var(--kit-navy);
  font-weight: 700;
  font-size: clamp(.9rem, 1.2vw, 1.05rem);
  padding: .8rem 1.5rem;
  border-radius: 999px;
  text-decoration: none;
  transition: transform .15s, box-shadow .15s;
}
.hero-slide__btn:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(0,0,0,.25); }

/* Arrows */
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: background .15s;
}
.hero-arrow:hover { background: rgba(255,255,255,.34); }
.hero-arrow--prev { left: .6rem; }
.hero-arrow--next { right: .6rem; }

/* Dots */
.slide-dots {
  position: absolute;
  bottom: 6rem;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: .5rem;
}
.slide-dots button {
  width: 8px; height: 8px; border-radius: 999px;
  background: rgba(255,255,255,.5);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: width .2s, background .2s;
}
.slide-dots button.is-active { background: #fff; width: 22px; }

@media (min-width: 1024px) {
  .hero-slide__inner { padding: 0 2rem 8rem; }
  .hero-arrow { width: 52px; height: 52px; }
  .hero-arrow--prev { left: 1.5rem; }
  .hero-arrow--next { right: 1.5rem; }
  .slide-dots { bottom: 5rem; }
}

/* Landing: transparent header overlay over the full-screen slider */
body.is-landing .site-shell { position: relative; }
body.is-landing .site-header {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  background: transparent;
  border-bottom: 0;
  backdrop-filter: none;
}
body.is-landing .site-logo__img { filter: brightness(0) invert(1); }
body.is-landing .site-logo__sub { color: #fff; border-color: rgba(255,255,255,.5); }
body.is-landing .nav-toggle span { background: #fff; }

.board-card {
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
}
.board-card__image {
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  object-fit: cover;
  width: 100%;
}
.board-card__image--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--kit-sky);
  font-size: 13px;
  font-weight: 600;
}

.filter-pill {
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  white-space: nowrap;
  text-decoration: none;
}
.filter-pill.is-active {
  background: var(--kit-blue);
  border-color: var(--kit-blue);
  color: #fff;
}

.tag-hash {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--kit-blue);
  background: #eff6ff;
  border-radius: 999px;
  padding: 4px 10px;
  text-decoration: none;
}
.tag-hash:hover { background: #dbeafe; }

.concept-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--kit-gold);
}

.btn-sample {
  background: var(--kit-blue);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
}

.about-section { scroll-margin-top: 1rem; }

/* ===== About page (AthenaTov-style layout) ===== */
/* Row 1: intro */
.about2-intro__grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}
.about2-intro__title {
  margin: 0 0 1.25rem;
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.02em;
  color: #fff;
}
.about2-intro__text {
  display: flex;
  flex-direction: column;
  gap: .85rem;
  font-size: clamp(.85rem, 1.3vw, .95rem);
  line-height: 1.7;
  color: #cbd5e1;
}
.about2-intro__media {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  background: #f1f5f9;
  border-radius: 16px;
  padding: 1rem;
}
.about2-intro__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
}
.about2-intro__media lottie-player {
  width: 60%;
  height: 60%;
}
@media (min-width: 1024px) {
  .about2-intro__grid {
    grid-template-columns: 1.05fr .95fr;
    gap: 3.5rem;
  }
}

/* Row 2: core values 2x2 */
.about2-values__section-title {
  margin: 0 0 1.75rem;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  color: #fff;
}
.about2-values__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
.about2-values__card {
  background: #fff;
  border-radius: 16px;
  padding: 1.75rem;
  box-shadow: 0 10px 30px rgba(15, 34, 56, .18);
}
.about2-values__icon {
  width: 56px;
  height: 56px;
  margin-bottom: 1rem;
}
.about2-values__icon img { width: 100%; height: 100%; object-fit: contain; }
.about2-values__icon lottie-player { width: 100%; height: 100%; }
.about2-values__card-title {
  margin: 0 0 .75rem;
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.3;
  color: var(--kit-navy);
}
.about2-values__card-text {
  margin: 0;
  font-size: .9rem;
  line-height: 1.65;
  color: #475569;
}
@media (min-width: 768px) {
  .about2-values__grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
}
@media (min-width: 1024px) {
  .about2-values__grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
}

/* Row 3: statement with bg image */
.about2-statement {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  display: flex;
  align-items: center;
  overflow: hidden;
}
.about2-statement__bg-image {
  position: absolute;
  inset: 0;
  background-image: var(--about-statement-bg);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
.about2-statement__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,28,40,.7) 0%, rgba(20,28,40,.82) 100%);
}
.about2-statement__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 64rem;
  margin: 0 auto;
  padding-top: 5em;
  padding-bottom: 5em;
}
.about2-statement__lead {
  margin: 0 0 1.25rem;
  font-size: clamp(.85rem, 1.3vw, 1rem);
  line-height: 1.7;
  color: rgba(255,255,255,.82);
  max-width: 48ch;
}
.about2-statement__title {
  margin: 0;
  font-size: clamp(1.3rem, 3vw, 2rem);
  font-weight: 800;
  line-height: 1.3;
  color: #fff;
}

/* Row 4: contact */
.about2-contact__section-title {
  margin: 0 0 1.75rem;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  color: #fff;
}
.about2-contact__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}
.about2-contact__desc {
  margin: 0 0 1.5rem;
  font-size: .95rem;
  line-height: 1.7;
  color: #cbd5e1;
}
.about2-contact__block { margin-bottom: 1.25rem; }
.about2-contact__block-title {
  margin: 0 0 .5rem;
  font-weight: 700;
  color: #fff;
}
.about2-contact__list {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: .9rem;
  line-height: 1.7;
  color: #cbd5e1;
}
.about2-contact__label {
  margin: 0 0 .25rem;
  font-weight: 700;
  color: #94a3b8;
}
.about2-contact__info a { color: var(--kit-sky); text-decoration: none; }
.about2-contact__info a:hover { text-decoration: underline; }

.about2-contact__form-card {
  background: #fff;
  border-radius: 16px;
  padding: 1.75rem;
  box-shadow: 0 10px 30px rgba(15, 34, 56, .2);
}
.about2-contact__form { display: flex; flex-direction: column; gap: .85rem; }
.about2-contact__field-label {
  display: block;
  margin-bottom: .3rem;
  font-size: .8rem;
  font-weight: 600;
  color: #475569;
}
.about2-contact__input {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: .6rem .75rem;
  font-size: .9rem;
  color: var(--kit-navy);
  background: #fff;
}
.about2-contact__input:focus {
  outline: none;
  border-color: var(--kit-blue);
  box-shadow: 0 0 0 3px rgba(44, 82, 130, .12);
}
.about2-contact__submit {
  margin-top: .25rem;
  width: 100%;
  border: 0;
  border-radius: 10px;
  background: var(--kit-blue);
  color: #fff;
  font-size: .95rem;
  font-weight: 700;
  padding: .8rem;
  cursor: pointer;
  transition: background-color .18s ease;
}
.about2-contact__submit:hover { background: var(--kit-navy); }
.about2-contact__msg { margin: .25rem 0 0; text-align: center; font-size: .85rem; }
.about2-contact__msg.is-ok { color: #16a34a; }
.about2-contact__msg.is-error { color: #dc2626; }
@media (min-width: 1024px) {
  .about2-contact__grid { grid-template-columns: 1fr 1fr; gap: 3rem; }
}

/* Row 5: company info */
.about2-company {
  border-top: 1px solid rgba(255,255,255,.1);
}
.about2-company__inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: flex-start;
}
.about2-company__text {
  margin: 0;
  font-size: .85rem;
  line-height: 1.8;
  color: #94a3b8;
}
.about2-company__logos {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  opacity: .85;
}
.about2-company__logo {
  display: block;
  width: 98px;
  height: auto;
}
@media (min-width: 768px) {
  .about2-company__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .about2-company__logos { align-items: flex-end; }
}

/* Detail (view) content panel */
.detail-panel {
  background: #fff;
  color: var(--kit-navy);
  border-radius: 16px;
  padding: 1.5rem;
  border: 1px solid #e2e8f0;
}
@media (min-width: 1024px) {
  .detail-panel { padding: 2rem; }
}
.detail-back {
  display: inline-block;
  margin-bottom: 1.25rem;
  font-size: .875rem;
  color: var(--kit-blue);
}
.detail-back:hover { color: var(--kit-navy); }

.prose-kit img { max-width: 100%; height: auto; border-radius: 12px; }
.prose-kit ul { list-style: disc; padding-left: 1.25rem; }
.prose-kit p { margin-bottom: .75rem; line-height: 1.65; }

.contact-modal.is-open { display: block; }
.contact-modal__backdrop {
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

/* ── Scroll to top + floating contact ── */
.scroll-top {
  position: fixed;
  right: 1rem;
  bottom: calc(8.5rem + env(safe-area-inset-bottom, 0px));
  z-index: 45;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .95);
  color: var(--kit-navy);
  box-shadow: 0 4px 16px rgba(15, 28, 48, .12);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
}
.scroll-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity .2s ease, transform .2s ease;
}
.scroll-top:hover { background: #fff; box-shadow: 0 6px 20px rgba(15, 28, 48, .16); }
@media (min-width: 1024px) {
  .scroll-top {
    right: 1.5rem;
    bottom: calc(9rem + env(safe-area-inset-bottom, 0px));
    width: 3.5rem;
    height: 3.5rem;
  }
}

/* ── Floating contact button ── */
.contact-fab {
  position: fixed;
  right: 1rem;
  bottom: calc(4.75rem + env(safe-area-inset-bottom, 0px));
  z-index: 45;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(145deg, var(--kit-blue), var(--kit-navy));
  color: #fff;
  box-shadow: 0 8px 24px rgba(26, 54, 93, .35);
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}
.contact-fab:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 12px 28px rgba(26, 54, 93, .45);
}
.contact-fab:active { transform: scale(.97); }
.contact-fab__icon { display: block; }
@media (min-width: 1024px) {
  .contact-fab {
    right: 1.5rem;
    bottom: calc(5rem + env(safe-area-inset-bottom, 0px));
    width: 3.5rem;
    height: 3.5rem;
  }
}

/* ── Sub-page hero: text row above image ── */
.page-hero {
  margin-bottom: 3em;
}
.page-hero__breadcrumb {
  display: inline-flex;
  align-items: center;
  margin-bottom: .85rem;
  padding: .4rem .85rem;
  font-size: .8rem;
  color: #64748b;
  background-color: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 9999px;
}
.page-hero__breadcrumb a {
  color: #64748b;
  text-decoration: none;
}
.page-hero__breadcrumb a:hover { color: var(--kit-blue); }
.page-hero__breadcrumb-sep { margin: 0 .4rem; color: #cbd5e1; }
.page-hero__breadcrumb-current { color: var(--kit-navy); font-weight: 700; }

.page-hero__copy {
  margin-bottom: 1.25rem;
}
.page-hero__title {
  margin: 0 0 .75rem;
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -.01em;
  color: var(--kit-navy);
}
/* Blue highlighter underline behind the title text */
.page-hero__title-line {
  background-image: linear-gradient(transparent 62%, rgba(74, 144, 200, .45) 62%);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  padding: 0 .1em;
}
.page-hero__body {
  position: relative;
  margin: 0;
  font-size: clamp(.9rem, 2vw, 1.05rem);
  line-height: 1.6;
  color: #475569;
  /* wipe-in (left → right) on load */
  clip-path: inset(0 100% 0 0);
  animation: page-hero-body-wipe .7s cubic-bezier(.5, 0, .2, 1) forwards .25s;
}
@keyframes page-hero-body-wipe {
  from { clip-path: inset(0 100% 0 0); }
  to   { clip-path: inset(0 0 0 0); }
}
@media (prefers-reduced-motion: reduce) {
  .page-hero__body { animation: none; clip-path: none; }
}

.page-hero__card {
  position: relative;
  min-height: 12rem;
  border-radius: 16px;
  overflow: hidden;
  background-color: #f7fafc;
  background-image: var(--page-hero-mobile);
  background-size: cover;
  background-position: center;
  box-shadow: 0 8px 24px rgba(15, 28, 48, .12), 0 2px 8px rgba(15, 28, 48, .07);
  animation: page-hero-card-rise .9s cubic-bezier(.4, 0, .2, 1) forwards .1s;
}
@keyframes page-hero-card-rise {
  from { transform: translateY(-16px); }
  to   { transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .page-hero__card { animation: none; transform: none; }
}
@media (min-width: 1024px) {
  .page-hero__card {
    background-image: var(--page-hero-desktop);
    min-height: 15rem;
  }
}
.page-hero__card--plain {
  background-color: var(--kit-navy);
  background-image: none;
}

/* ── List header (title + filter) ── */
.list-head {
  display: flex;
  flex-direction: column;
  gap: .85rem;
}
.list-head__title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--kit-navy);
}
.list-head__filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem;
}
.list-head__filter--portfolio {
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  gap: .65rem;
}
.filter-row {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: nowrap;
}
/* Mobile: row1 (concept) and row2 (field+form) share the same full width */
.filter-row--concept { width: 100%; }
.filter-row--field-form {
  width: 100%;
  gap: .65rem;
}
.filter-row--field-form > div { flex: 1 1 0; min-width: 0; }
@media (max-width: 1023px) {
  .list-head__filter--portfolio .filter-label {
    flex: 0 0 2.75rem;
    width: 2.75rem;
    min-width: 2.75rem;
  }
}

@media (min-width: 640px) {
  .list-head:not(.list-head--portfolio) {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .list-head__filter:not(.list-head__filter--portfolio) { flex-wrap: nowrap; }
}

/* PC: title on left, all filters in one row on the right */
@media (min-width: 1024px) {
  .list-head--portfolio {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
  }
  .list-head--portfolio .list-head__title { white-space: nowrap; }
  .list-head__filter--portfolio {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    width: auto;
    justify-content: flex-end;
    gap: 1rem;
  }
  .list-head__filter--portfolio .filter-row--concept,
  .list-head__filter--portfolio .filter-row--field-form {
    width: auto;
  }
  .list-head__filter--portfolio .filter-row--field-form > div { flex: 0 0 auto; }
}

.filter-form-wrap {
  position: relative;
}
.filter-form-wrap.is-locked {
  cursor: not-allowed;
}
.filter-form-wrap.is-locked label {
  color: #94a3b8;
}
.filter-form-wrap.is-locked #filter-form {
  pointer-events: none;
  background-color: #f1f5f9;
  border-color: #e2e8f0;
  color: #94a3b8;
  cursor: not-allowed;
  opacity: 1;
}
.filter-form-tooltip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + .5rem);
  transform: translateX(-50%) translateY(4px);
  padding: .45rem .75rem;
  border-radius: 8px;
  background: var(--kit-navy);
  color: #fff;
  font-size: .75rem;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
  z-index: 20;
}
.filter-form-tooltip::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--kit-navy);
}
.filter-form-tooltip.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  transition: opacity .2s ease, transform .2s ease;
}

/* ── Scroll reveal (fade/slide in) ── */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s cubic-bezier(.22, .61, .36, 1);
  will-change: opacity, transform;
}
[data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ── Portfolio grid & cards ── */
.portfolio-grid {
  display: grid;
  gap: 1.75rem;
}
.portfolio-grid > .portfolio-grid__empty {
  grid-column: 1 / -1;
}
@media (min-width: 1024px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  .portfolio-grid--2col {
    grid-template-columns: repeat(2, 1fr);
  }
}

.portfolio-card {
  border: 1px solid #eef2f7;
  border-radius: 16px;
  background: #fff;
  padding: 1.75rem;
  box-shadow: 0 4px 16px rgba(15, 34, 56, .05), 0 1px 3px rgba(15, 34, 56, .03);
  transition: transform .22s ease, box-shadow .22s ease;
}
@media (min-width: 1024px) {
  .portfolio-card { padding: 2.25rem; }
}

/* Masonry (Pinterest-style) — concept list */
.masonry {
  column-count: 1;
  column-gap: 1.5rem;
}
@media (min-width: 640px) {
  .masonry { column-count: 2; }
}
@media (min-width: 1280px) {
  .masonry { column-count: 3; }
}
.masonry__item {
  break-inside: avoid;
  margin-bottom: 1.5rem;
  width: 100%;
}

/* Masonry card: image on top with varied heights for rhythm */
.portfolio-card--masonry {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.portfolio-card--masonry .portfolio-card__body {
  padding: 1.5rem 1.5rem 1.6rem;
}
.portfolio-card__media--top {
  width: 100%;
}
.portfolio-card__media--top .portfolio-card__media-img,
.portfolio-card__media--top .portfolio-card__media-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Cyclic heights → Pinterest rhythm */
.media-h-0 { height: 180px; }
.media-h-1 { height: 260px; }
.media-h-2 { height: 220px; }
@media (min-width: 1024px) {
  .media-h-0 { height: 200px; }
  .media-h-1 { height: 300px; }
  .media-h-2 { height: 240px; }
}

/* Concept list — mobile: image on top (original spec); PC: one row each, text left + image right (1/4 of box), width fits bullet text */
.concept-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Concept card: full-width box; row1 (text + right image), row2 (portfolio) */
.concept-card {
  width: 100%;
  background: #fff;
  border: 1px solid #eef2f7;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(15, 28, 48, .06);
  padding: 1.5rem;
  overflow: hidden;
}
.concept-card__main {
  display: flex;
  flex-direction: column-reverse; /* image on top for mobile */
  gap: 1.25rem;
}
.concept-card__text {
  min-width: 0;
  flex: 1;
}
.concept-card__media {
  flex-shrink: 0;
}
.concept-card__media-img,
.concept-card__media-placeholder {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}
.concept-card__media-img {
  object-fit: cover;
}
.concept-card__media-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  background: #f1f5f9;
  color: #94a3b8;
  font-size: .85rem;
}

/* Row 2: portfolio list with a gray divider line above */
.concept-card__portfolio {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid #e5e7eb;
}
.concept-card .portfolio-card__bullets {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

@media (min-width: 1024px) {
  .concept-card {
    padding: 2em;
  }
  .concept-card__main {
    flex-direction: row;       /* text left, image right */
    align-items: flex-start;
    gap: 2em;
  }
  .concept-card__media {
    width: 25%;                /* image ≈ 1/4 of card width */
  }
  .concept-card__media-img,
  .concept-card__media-placeholder {
    height: auto;              /* keep aspect ratio (세로 Auto) */
  }
}

/* Card with image on the right (concept list) */
.portfolio-card--media {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}
.portfolio-card--media .portfolio-card__body {
  padding: 1.75rem 1.6rem;
}
.portfolio-card__media {
  width: 100%;
}
.portfolio-card__media-img,
.portfolio-card__media-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 160px;
  object-fit: cover;
}
.portfolio-card__media-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  color: var(--kit-sky);
  font-size: 13px;
  font-weight: 600;
}
@media (min-width: 1024px) {
  .portfolio-card--media {
    flex-direction: row;
    align-items: stretch;
  }
  .portfolio-card--media .portfolio-card__body {
    flex: 1 1 0;
    min-width: 0;
  }
  .portfolio-card--media .portfolio-card__media {
    flex: 1 1 0;
    min-width: 0;
  }
}
.portfolio-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(15, 34, 56, .1), 0 3px 8px rgba(15, 34, 56, .05);
}
.portfolio-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: 1.25rem;
}
.portfolio-card__concept {
  display: inline-block;
  padding: .35rem .85rem;
  border: 1px solid #1a365d;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 700;
  color: #1a365d;
  background: #fff;
}
.portfolio-card__title {
  margin: 0 0 1.25rem;
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.28;
  letter-spacing: -.01em;
  color: var(--kit-navy);
}
.portfolio-card__title a { color: inherit; text-decoration: none; }
.portfolio-card__ingredient-row {
  display: flex;
  flex-wrap: wrap;
  column-gap: .35rem;
  row-gap: .2rem;
  margin: -.75rem 0 1.25rem;
}
.portfolio-card__ingredient-pill {
  display: inline-block;
  padding: .3rem .75rem;
  border-radius: 999px;
  background: #fef3c7;
  color: #92400e;
  font-size: .8rem;
  font-weight: 700;
}
.portfolio-card__bullets {
  margin: 0 0 1.5rem;
  padding: 0 0 1.5rem;
  list-style: none;
  font-size: .9rem;
  line-height: 1.7;
  color: #334155;
  border-bottom: 1px solid #eef2f7;
}
.portfolio-card__bullets li {
  position: relative;
  padding-left: .85rem;
  margin-bottom: .5rem;
}
.portfolio-card__bullets li:last-child { margin-bottom: 0; }
.portfolio-card__bullets li::before {
  content: '·';
  position: absolute;
  left: 0;
  font-weight: 700;
  color: var(--kit-navy);
}
.portfolio-card__section { margin-top: 1.5rem; }
.portfolio-card__section + .portfolio-card__section {
  padding-top: 1.5rem;
  border-top: 1px solid #eef2f7;
}
.portfolio-card__section-title {
  margin: 0 0 .75rem;
  font-size: .95rem;
  font-weight: 800;
  color: var(--kit-navy);
}
.portfolio-card__field-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  margin-bottom: .5rem;
}
.portfolio-card__field-row:last-child { margin-bottom: 0; }
.portfolio-card__field-name {
  font-size: .9rem;
  font-weight: 600;
  color: #334155;
  min-width: 4.5rem;
}
.portfolio-card__concept-row {
  display: flex;
  flex-wrap: wrap;
  column-gap: .35rem;
  row-gap: .2rem;
}
.portfolio-card__tags--inline { margin-top: .35rem; }
.portfolio-card__applies-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: .4rem;
  row-gap: .2rem;
}
.portfolio-card__applies-row + .portfolio-card__applies-row { margin-top: .6rem; }
.portfolio-card__field-pill,
.portfolio-card__form-pill,
.portfolio-card__tag {
  display: inline-block;
  padding: .3rem .75rem;
  border-radius: 999px;
  background: #dbeafe;
  color: #1e40af;
  font-size: .8rem;
  font-weight: 700;
  text-decoration: none;
}
/* 적용분야(1단계) — 제형과 구분되는 색상 */
.portfolio-card__field-pill {
  background: #d1fae5;
  color: #065f46;
}
.portfolio-card__tags {
  display: flex;
  flex-wrap: wrap;
  column-gap: .4rem;
  row-gap: .2rem;
}
.portfolio-card__tag:hover { background: #bfdbfe; }
