*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --bg: #ffffff;
  --ink: #1c1c1c;
  --muted: #5b5752;
  --panel: rgb(0 0 0 / 0.035);
  --line: rgb(0 0 0 / 0.12);
  --accent: #e07a28;
  --accent-dark: #c45a2a;
  --navy: transparent;
  --navy-alt: rgb(0 0 0 / 0.03);
  --silver: #1c1c1c;
  --field: rgb(0 0 0 / 0.035);
  --night: #0c0e14;
  --header-h: 4.5rem;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Pretendard", "Malgun Gothic", "Segoe UI", sans-serif;
  color: var(--ink);
  background-color: var(--bg);
  line-height: 1.6;
}

a {
  color: inherit;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.5rem;
  border-bottom: 1px solid rgb(244 232 214 / 0.12);
  background: var(--night);
  color: #f4efe6;
  position: sticky;
  top: 0;
  z-index: 10;
}

.logo {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.logo-mark {
  display: block;
  height: 2.7rem;
  width: auto;
}

.logo span {
  display: block;
  line-height: 1;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: #efe4d2;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.25rem;
}

.nav-links {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.3rem;
}

.site-nav a {
  text-decoration: none;
  font-size: 1.05rem;
}

.site-nav a[aria-current="page"] {
  color: var(--accent-dark);
  font-weight: 700;
}

.nav-trigger {
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: -0.01em;
  text-align: center;
  white-space: nowrap;
  transition: background 0.15s ease;
}

.nav-compact .nav-trigger {
  padding-inline: 0.5rem;
  font-size: 0.92rem;
}

.nav-trigger:hover,
.nav-trigger:focus-visible {
  background: rgb(244 232 214 / 0.1);
}

.nav-trigger[aria-current="page"] {
  background: rgb(224 122 40 / 0.14);
}

.nav-mega {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  height: 10.75rem;
  background: var(--night);
  box-shadow: 0 16px 32px rgb(0 0 0 / 0.22);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: 20;
}

.site-nav:hover .nav-mega,
.site-nav:focus-within .nav-mega {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-mega-col {
  position: absolute;
  top: 0.85rem;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  min-width: 0;
}

.nav-mega-col a {
  padding: 0.3rem 0.15rem;
  border-radius: 0.3rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 400;
  font-style: normal;
  text-transform: none;
  letter-spacing: normal;
  color: #f4efe6;
  text-align: center;
  white-space: nowrap;
}

.nav-tight .logo span {
  display: none;
}

.nav-tight .nav-trigger {
  padding-inline: 0.3rem;
  font-size: 0.88rem;
}

.nav-tight .header-login {
  padding-inline: 0.6rem;
}

.nav-compact .nav-mega-col a {
  font-size: 0.88rem;
  white-space: normal;
}

.nav-mega-col a:hover,
.nav-mega-col a:focus-visible {
  background: rgb(244 232 214 / 0.1);
}

.nav-toggle {
  display: none;
  font: inherit;
  border: 1px solid rgb(244 232 214 / 0.28);
  background: rgb(12 14 22 / 0.48);
  color: #f4efe6;
  padding: 0.4rem 0.7rem;
  border-radius: 0.4rem;
  cursor: pointer;
}

.header-login {
  margin-left: auto;
  padding: 0.3rem 0.8rem;
  border: 1px solid rgb(244 232 214 / 0.28);
  border-radius: 999px;
  background: rgb(12 14 22 / 0.48);
  color: #efe4d2;
  font-size: 0.75rem !important;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  white-space: nowrap;
}

.header-login:hover,
.header-login:focus-visible {
  border-color: var(--accent);
  color: #fff;
}

.lang-switch {
  display: flex;
  gap: 0.3rem;
  margin-left: 0.25rem;
}

.lang-switch button {
  font: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  border: 1px solid rgb(244 232 214 / 0.28);
  background: rgb(12 14 22 / 0.48);
  color: #efe4d2;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  cursor: pointer;
  line-height: 1;
}

.lang-switch button[aria-pressed="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.page-hero,
.section {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 3rem max(1.5rem, calc((100% - 68rem) / 2));
}

.section {
  background: transparent;
  color: var(--ink);
}

.page-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 16rem;
  background: #0c1a33 url("../images/page-hero-band.jpg") center / cover no-repeat;
  color: #f4efe6;
  text-shadow: 0 1px 10px rgb(12 16 28 / 0.35);
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, rgb(8 14 28 / 0.4), rgb(8 14 28 / 0.26) 55%, rgb(8 14 28 / 0.48));
}

.page-hero > * {
  position: relative;
  z-index: 1;
}

main > section:nth-of-type(even) {
  background: var(--navy-alt);
}

.eyebrow {
  margin: 0 0 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.75rem;
  color: var(--accent-dark);
}

.page-hero .eyebrow {
  color: var(--accent);
}

h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
}

h2 {
  margin: 0 0 0.75rem;
  font-size: 1.4rem;
}

h3 {
  margin: 0 0 0.4rem;
}

.lede {
  max-width: 40rem;
  color: var(--muted);
}

.page-hero p {
  max-width: 40rem;
  color: rgb(244 239 230 / 0.88);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.btn {
  display: inline-block;
  text-decoration: none;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 0.7rem 1.2rem;
  font: inherit;
  cursor: pointer;
}

.btn:hover,
.btn:focus-visible {
  background: #c45a2a;
}

.btn-ghost {
  background: transparent;
  color: var(--silver);
  border: 1px solid var(--line);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  background: var(--navy-alt);
}

.btn.is-disabled {
  background: var(--panel);
  color: var(--muted);
  border: 1px solid var(--line);
  cursor: not-allowed;
  pointer-events: none;
}

.careers-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6rem;
}

.careers-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
}

.status-pill--closed {
  background: rgb(0 0 0 / 0.05);
  color: var(--muted);
  border: 1px solid var(--line);
}

.status-pill-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--muted);
}

.careers-cta-note {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.snap-track {
  position: relative;
  background: var(--navy-alt);
}

.snap-panel {
  position: relative;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .snap-panel {
    height: auto;
    min-height: 100vh;
    min-height: 100svh;
    overflow: visible;
  }
}

.scroll-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0c1a33;
  color: #f4efe6;
  text-align: center;
}

.scroll-hero-bg {
  position: absolute;
  inset: -10% -6%;
  background: #0c1a33 url("../images/home-hero-powder.jpg") center / cover no-repeat;
  will-change: transform;
}

.scroll-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgb(8 14 28 / 0.38), rgb(8 14 28 / 0.28) 45%, rgb(8 14 28 / 0.48));
}

.scroll-hero-content {
  position: relative;
  z-index: 1;
  max-width: 42rem;
  padding: 0 1.5rem;
  will-change: transform, opacity;
}

.scroll-hero-content .eyebrow {
  color: var(--accent);
}

.scroll-hero-content .lede {
  color: rgb(244 239 230 / 0.88);
}

.scroll-hero-content .hero-actions {
  justify-content: center;
}

.scroll-hero-content .btn-ghost {
  color: #f4efe6;
  border-color: rgb(244 239 230 / 0.45);
}

.scroll-hero-content .btn-ghost:hover,
.scroll-hero-content .btn-ghost:focus-visible {
  background: rgb(244 239 230 / 0.12);
}

.scroll-hero-cue {
  position: absolute;
  left: 50%;
  bottom: 2rem;
  transform: translateX(-50%);
  z-index: 1;
  width: 1.6rem;
  height: 2.6rem;
  border: 2px solid rgb(244 239 230 / 0.45);
  border-radius: 999px;
}

.scroll-hero-cue span {
  display: block;
  width: 0.3rem;
  height: 0.5rem;
  margin: 0.45rem auto 0;
  border-radius: 999px;
  background: #f4efe6;
  animation: scroll-cue 1.8s ease-in-out infinite;
}

@keyframes scroll-cue {
  0%, 100% {
    transform: translateY(0);
    opacity: 1;
  }

  50% {
    transform: translateY(0.6rem);
    opacity: 0.3;
  }
}

.story-panel {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 2rem;
  padding: 3rem max(1.5rem, calc((100% - 68rem) / 2));
  color: var(--silver);
}

.story-panel--vision .story-media {
  order: 2;
}

.story-media {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  max-height: 55vh;
  background: #fff;
}

.story-media img,
.story-media-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #fff;
  will-change: transform, opacity;
}

.story-copy {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 2rem;
  backdrop-filter: blur(10px);
  color: var(--silver);
  will-change: transform, opacity;
}

.story-copy p {
  color: var(--muted);
}

.story-link {
  display: inline-block;
  margin-top: 1rem;
  font-weight: 700;
  color: var(--accent-dark);
  text-decoration: none;
}

.story-panel--vision .story-copy p + p {
  margin-top: 0.85rem;
}

@media (max-width: 900px) {
  .story-panel {
    grid-template-columns: 1fr;
    grid-auto-rows: min-content;
    padding: 2.25rem 1.25rem;
    gap: 1rem;
  }

  .story-panel--vision .story-media {
    order: 0;
  }

  .story-media {
    aspect-ratio: 16 / 9;
    max-height: 32vh;
  }

  .story-panel--intro .story-media,
  .story-panel--vision .story-media {
    display: none;
  }

  .about-story.story-panel--intro .story-media,
  .about-story.story-panel--vision .story-media {
    display: block;
  }

  .story-copy {
    padding: 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-hero-cue span {
    animation: none;
  }
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.cards-3 {
  grid-template-columns: repeat(3, 1fr);
}

.code-list {
  margin: 0.75rem 0 0;
  padding-left: 1.1rem;
}

.code-list li {
  margin-bottom: 0.4rem;
}

.card h2 {
  font-size: 1.25rem;
}

.card-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  margin-top: 0.85rem;
}

.card-photos--3 {
  grid-template-columns: 1fr 1fr 1fr;
}

.card-photos img {
  display: block;
  width: 100%;
  height: 8.5rem;
  object-fit: cover;
  border-radius: 0.45rem;
}

.card,
.legend,
.swatch,
.table-wrap,
.shop-buy,
.color-finder {
  backdrop-filter: blur(10px);
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  padding: 1.25rem;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: var(--panel);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

th,
td {
  text-align: left;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--line);
}

th {
  background: var(--field);
  color: var(--silver);
}

.info-table th {
  width: 9.5rem;
  white-space: nowrap;
  vertical-align: top;
}

.history {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  max-width: 46rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: var(--panel);
}

.history > li {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 0 1.25rem;
  align-items: start;
  padding: 1rem 1.15rem;
  border-bottom: 1px solid var(--line);
}

.history > li:last-child {
  border-bottom: 0;
}

.history time {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.35;
}

.history ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.history ul li {
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 0.65rem;
  align-items: baseline;
  color: var(--ink);
}

.history ul li + li {
  margin-top: 0.35rem;
}

.history ul span:first-child {
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.note {
  color: var(--muted);
  font-size: 0.9rem;
}

.swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.swatches span {
  display: flex;
  align-items: flex-end;
  width: 7.5rem;
  height: 5.5rem;
  padding: 0.5rem;
  border-radius: 0.5rem;
  background: var(--c);
  color: #fff;
  font-size: 0.8rem;
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.15);
}

.plain-list {
  padding-left: 1.1rem;
}

.notice-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.notice-list li {
  display: flex;
  align-items: baseline;
  gap: 1.25rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
}

.notice-list time {
  flex: 0 0 auto;
  width: 6rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.notice-list span {
  flex: 1;
}

.notice-list li.notice-has-body {
  display: block;
  padding: 0;
}

.notice-list li.is-target {
  background: rgb(224 122 40 / 0.08);
  box-shadow: inset 3px 0 0 #e07a28;
}

.notice-list details summary {
  display: flex;
  align-items: baseline;
  gap: 1.25rem;
  padding: 1.1rem 0;
  cursor: pointer;
  list-style: none;
}

.notice-list details summary::-webkit-details-marker {
  display: none;
}

.notice-list details summary:hover span {
  color: var(--accent-dark);
}

.notice-body {
  padding: 0 0 1.25rem 7.25rem;
  color: var(--muted);
  white-space: pre-line;
}

@media (max-width: 560px) {
  .notice-list details summary {
    flex-direction: column;
    gap: 0.3rem;
  }

  .notice-body {
    padding-left: 0;
  }
}

.msds-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.msds-toolbar-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.msds-total {
  white-space: nowrap;
}

.msds-total strong {
  margin-left: 0.25rem;
}

.msds-size {
  padding: 0.5rem 2rem 0.5rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 0.4rem;
  background: #fff;
  color: var(--muted);
  font: inherit;
  font-size: 0.9rem;
}

.msds-search {
  flex: 0 1 22rem;
  min-width: 0;
  padding: 0.6rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--field);
  font: inherit;
}

.msds-search:focus,
.msds-size:focus {
  outline: 2px solid rgb(224 122 40 / 0.45);
  border-color: var(--accent);
}

.msds-table-wrap {
  overflow-x: auto;
}

.msds-table {
  width: 100%;
  border-collapse: collapse;
  border-top: 2px solid var(--ink);
}

.msds-table th,
.msds-table td {
  padding: 0.7rem 0.75rem;
  border-bottom: 1px solid var(--line);
  text-align: center;
  vertical-align: middle;
}

.msds-table th {
  background: transparent;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 700;
  white-space: nowrap;
}

.msds-table td {
  color: var(--muted);
  font-size: 0.92rem;
}

.msds-table .msds-no {
  width: 12rem;
  white-space: nowrap;
}

.msds-table .msds-series {
  width: 9rem;
}

.msds-table td.msds-name {
  color: var(--ink);
  font-weight: 600;
}

.msds-table .msds-code {
  width: 9rem;
  white-space: nowrap;
}

.msds-table .msds-file {
  width: 6rem;
  white-space: nowrap;
}

.msds-pdf {
  display: inline-flex;
  padding: 0.15rem;
  border-radius: 0.3rem;
  line-height: 0;
  transition: transform 0.15s ease;
}

.msds-pdf:hover,
.msds-pdf:focus-visible {
  transform: translateY(-1px);
  outline: 2px solid rgb(224 122 40 / 0.45);
}

.msds-noresult {
  padding: 2rem 0;
  text-align: center;
  color: var(--muted);
}

.msds-pager {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.3rem;
  margin-top: 2rem;
}

.msds-page {
  min-width: 2rem;
  height: 2rem;
  padding: 0 0.45rem;
  border: 1px solid var(--line);
  border-radius: 0.2rem;
  background: #fff;
  color: var(--muted);
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
}

.msds-page:hover:not(:disabled) {
  border-color: var(--ink);
  color: var(--ink);
}

.msds-page.is-current {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.msds-page:disabled {
  opacity: 0.35;
  cursor: default;
}

@media (max-width: 560px) {
  .msds-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .msds-toolbar-left {
    justify-content: space-between;
  }

  .msds-search {
    flex-basis: auto;
  }

  .msds-table thead {
    display: none;
  }

  .msds-table tr {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0.2rem 0.6rem;
    padding: 0.8rem 0.25rem;
    border-bottom: 1px solid var(--line);
  }

  .msds-table td {
    width: auto !important;
    padding: 0;
    border: none;
    text-align: left;
  }

  .msds-table .msds-no {
    font-size: 0.8rem;
  }

  .msds-table .msds-series {
    font-size: 0.85rem;
  }

  .msds-table .msds-name {
    grid-column: 1 / 3;
    grid-row: 2;
  }

  .msds-table .msds-code {
    grid-column: 1 / 3;
    grid-row: 3;
    font-size: 0.85rem;
  }

  .msds-table .msds-file {
    grid-column: 3;
    grid-row: 1 / 4;
    align-self: center;
  }
}

.file-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.file-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.file-list-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.file-list-text span {
  color: var(--muted);
  font-size: 0.85rem;
}

.btn.btn-sm {
  flex: 0 0 auto;
  padding: 0.45rem 0.9rem;
  font-size: 0.85rem;
}

.notice-list li.notice-empty {
  padding: 1.25rem 0;
  color: var(--muted);
  border-bottom: none;
}

.prep-notice {
  padding: 3.5rem 0;
  text-align: center;
  color: var(--muted);
  font-size: 1.05rem;
  border-top: 1px solid var(--line);
}

@media (max-width: 560px) {
  .notice-list li {
    flex-direction: column;
    gap: 0.3rem;
  }

  .notice-list time {
    width: auto;
  }
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.cert-card {
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  overflow: hidden;
}

.cert-media {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 3 / 4;
  background: #f4f1ec;
  overflow: hidden;
}

.cert-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cert-media iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.cert-info {
  padding: 1.1rem 1.25rem 1.25rem;
}

.cert-info h3 {
  margin: 0 0 0.3rem;
  font-size: 1.05rem;
}

.cert-info p {
  margin: 0 0 0.65rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.cert-info a {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-dark);
  text-decoration: none;
}

.cert-info a:hover,
.cert-info a:focus-visible {
  text-decoration: underline;
}

@media (max-width: 700px) {
  .cert-grid {
    grid-template-columns: 1fr;
  }
}

.prose p {
  max-width: 42rem;
}

.section.philosophy {
  padding: 4rem 1.5rem 4.5rem;
  background: #fff;
}

.philosophy-inner {
  max-width: 80rem;
  margin: 0 auto;
}

.philosophy-head {
  max-width: 40rem;
  margin: 0 auto 2.75rem;
  text-align: center;
}

.philosophy-head h2 {
  margin: 0.4rem 0 1.15rem;
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  letter-spacing: -0.02em;
}

.philosophy-kicker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-dark);
}

.philosophy-kicker-line {
  width: 2.25rem;
  height: 1px;
  background: var(--line);
}

.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.philosophy-card {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 1.5rem;
  overflow: hidden;
  isolation: isolate;
}

.philosophy-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  will-change: transform;
}

.philosophy-card--resource img {
  object-position: center 46%;
}

.philosophy-card--global img {
  object-position: center 56%;
}

.philosophy-card--rnd img {
  object-position: center 38%;
}

.philosophy-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgb(8 10 16 / 0.45) 0%,
    rgb(8 10 16 / 0) 32%,
    rgb(8 10 16 / 0) 60%,
    rgb(8 10 16 / 0.65) 100%
  );
  pointer-events: none;
}

.philosophy-card:hover img {
  transform: scale(1.04);
}

.philosophy-card-copy {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2rem;
  text-align: center;
  color: #fff;
}

.philosophy-card-copy h3 {
  margin: 0;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  text-shadow: 0 2px 14px rgb(0 0 0 / 0.3);
}

.philosophy-card-copy p {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.65;
  word-break: keep-all;
  text-shadow: 0 1px 12px rgb(0 0 0 / 0.35);
}

@media (prefers-reduced-motion: reduce) {
  .philosophy-card img {
    transition: none;
  }

  .philosophy-card:hover img {
    transform: none;
  }
}

@media (max-width: 900px) {
  .philosophy-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .philosophy-card {
    aspect-ratio: 4 / 5;
  }
}

@media (max-width: 560px) {
  .section.philosophy {
    padding: 3.5rem 1.25rem 4rem;
  }

  .philosophy-card-copy {
    padding: 1.75rem 1.5rem;
  }

  .philosophy-card-copy h3 {
    font-size: 1.75rem;
  }

  .philosophy-card-copy p {
    font-size: 1rem;
  }
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 1.25rem;
  align-items: start;
}

.inquiry {
  display: grid;
  gap: 0.85rem;
}

.inquiry label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.9rem;
}

.inquiry input,
.inquiry select,
.inquiry textarea {
  font: inherit;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 0.45rem;
  background: var(--field);
  color: var(--silver);
}

.inquiry input:focus-visible,
.inquiry select:focus-visible,
.inquiry textarea:focus-visible,
.btn:focus-visible,
.nav-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.inquiry-consent {
  display: grid;
  gap: 0.45rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 0.45rem;
}

.inquiry-consent-text {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.5;
  opacity: 0.8;
}

.inquiry .inquiry-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.inquiry .inquiry-check input {
  width: 1.05rem;
  height: 1.05rem;
  margin: 0;
  padding: 0;
  accent-color: var(--accent);
}

.inquiry .inquiry-hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  margin: 0;
  min-height: 1.2em;
  font-weight: 500;
}

.form-status.is-ok {
  color: #1d7a45;
  font-weight: 700;
}

.form-status.is-error {
  color: #c0392b;
}

.site-footer {
  border-top: 1px solid rgb(244 232 214 / 0.12);
  padding: 1.5rem;
  text-align: center;
  background: var(--night);
  color: #f4efe6;
  font-size: 0.9rem;
}

.site-footer .footer-links {
  margin: 0.6rem 0 0;
}

.site-footer .footer-links a {
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.policy h2 {
  margin: 2.2rem 0 0.6rem;
  font-size: 1.15rem;
}

.policy ul {
  max-width: 42rem;
  padding-left: 1.2rem;
  line-height: 1.7;
}

.policy-lang-note:empty {
  display: none;
}

.policy-lang-note {
  padding: 0.7rem 0.9rem;
  border-left: 3px solid var(--accent);
  background: var(--panel);
}

.policy-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.6rem 0 1rem;
  font-size: 0.9rem;
  line-height: 1.5;
}

.policy-table th,
.policy-table td {
  border: 1px solid var(--line);
  padding: 0.5rem 0.65rem;
  text-align: left;
  vertical-align: top;
}

.policy-table th {
  background: var(--panel);
  white-space: nowrap;
}

@media (max-width: 720px) {
  .policy-table {
    display: block;
    overflow-x: auto;
  }
}

.site-footer .footer-label {
  font-weight: 700;
  margin-right: 0.35em;
}

.legend {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  padding: 1rem 1.2rem;
  margin-bottom: 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.legend p {
  margin: 0 0 0.4rem;
}

.legend p:last-child {
  margin-bottom: 0;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: end;
  margin-bottom: 1.25rem;
}

.filters label {
  display: grid;
  gap: 0.3rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.filters select,
.filters input {
  font: inherit;
  padding: 0.45rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 0.4rem;
  min-width: 10rem;
  background: var(--field);
  color: var(--silver);
}

.filters .count {
  margin: 0 0 0.35rem;
  color: var(--muted);
  font-weight: 600;
}

.swatch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11.5rem, 1fr));
  gap: 0.85rem;
}

.swatch {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  padding: 0.5rem 0.6rem 0.75rem;
}

.swatch-color {
  display: block;
  width: 100%;
  height: 4.5rem;
  border-radius: 0.45rem;
  object-fit: cover;
}

.swatch-code {
  margin: 0.5rem 0 0.1rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.swatch-name {
  margin: 0.15rem 0 0;
  font-size: 0.8rem;
  color: var(--accent-dark);
}

.swatch-grid[hidden] {
  display: none;
}

/* 컬러북 */
.cbook {
  margin: 0.5rem 0 1.5rem;
}

/* 컬러북 선택 (ver.4 / ver.3): 표지 아래에 버전을 적는다 */
.cbook-picker {
  display: flex;
  justify-content: center;
  gap: clamp(1rem, 4vw, 2.5rem);
  margin: 0.5rem 0 1.25rem;
}

.cbook-pick {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  width: clamp(6rem, 18vw, 8.5rem);
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}

.cbook-pick img {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: 0.55rem;
  border: 2px solid transparent;
  border-radius: 0.35rem;
  box-shadow: 0 2px 8px rgb(0 0 0 / 0.12);
  opacity: 0.55;
  transition: opacity 0.25s ease, transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.cbook-pick:hover img {
  opacity: 0.85;
  transform: translateY(-2px);
}

.cbook-pick[aria-pressed="true"] img {
  border-color: var(--accent);
  box-shadow: 0 8px 22px rgb(0 0 0 / 0.18);
  opacity: 1;
}

.cbook-pick:focus-visible {
  outline: none;
}

.cbook-pick:focus-visible img {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.cbook-pick-ver {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.2;
  color: var(--muted);
}

.cbook-pick[aria-pressed="true"] .cbook-pick-ver {
  color: var(--ink);
}

.cbook-pick-tag {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
}

.cbook-pick[data-book="v4"] .cbook-pick-tag {
  color: var(--accent-dark);
}

/* 책을 본문 폭보다 넓게: 화면 너비와 높이에 맞춰 최대한 크게 */
.cbook-stage {
  position: relative;
  width: min(calc(100vw - 2rem), calc((100vh - 9rem) * 1190 / 842), 110rem);
  margin: 0 0 0 50%;
  padding: 1rem 0 0.5rem;
  transform: translateX(-50%);
  overflow: hidden;
  outline: none;
  touch-action: pan-y;
  user-select: none;
}

.cbook-stage.is-zoomed {
  touch-action: none;
  cursor: grab;
}

.cbook-stage.is-panning {
  cursor: grabbing;
}

.cbook-zoom {
  transform-origin: 0 0;
}

.cbook-stage.is-zoomed .cbook-leaf {
  cursor: inherit;
}

.cbook-stage:focus-visible .cbook-book {
  outline: 2px solid var(--accent);
  outline-offset: 0.75rem;
  border-radius: 0.5rem;
}

.cbook-book {
  position: relative;
  width: 100%;
  aspect-ratio: 1190 / 842;
  margin: 0 auto;
  perspective: 2600px;
  transition: transform 0.8s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.cbook-book.is-closed-front {
  transform: translateX(-25%);
}

.cbook-book.is-closed-back {
  transform: translateX(25%);
}

.cbook-leaves {
  position: absolute;
  inset: 0;
}

/* 표지가 닫혀 있을 때 책등처럼 보이도록 제본선에 비스듬한 두께를 준다 */
.cbook-spine {
  position: absolute;
  top: 1.5%;
  bottom: 1.5%;
  width: 1.15rem;
  z-index: 50;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
  box-shadow: 0 10px 20px -6px rgb(0 0 0 / 0.35);
}

.cbook-spine--front {
  left: calc(50% - 1.1rem);
  background: linear-gradient(to right, rgb(0 0 0 / 0.04), rgb(0 0 0 / 0.4) 65%, rgb(0 0 0 / 0.12));
  border-radius: 0.2rem 0 0 0.2rem;
  transform: perspective(900px) rotateY(38deg);
  transform-origin: right center;
}

.cbook-spine--back {
  left: 50%;
  background: linear-gradient(to left, rgb(0 0 0 / 0.04), rgb(0 0 0 / 0.4) 65%, rgb(0 0 0 / 0.12));
  border-radius: 0 0.2rem 0.2rem 0;
  transform: perspective(900px) rotateY(-38deg);
  transform-origin: left center;
}

.cbook-book.is-closed-front .cbook-spine--front,
.cbook-book.is-closed-back .cbook-spine--back {
  opacity: 1;
}

.cbook-leaf {
  position: absolute;
  top: 0;
  left: 50%;
  width: 50%;
  height: 100%;
  transform-style: preserve-3d;
  transform-origin: left center;
  transition: transform 0.8s cubic-bezier(0.645, 0.045, 0.355, 1);
  cursor: pointer;
}

.cbook-leaf.is-flipped {
  transform: rotateY(-180deg);
}

.cbook-book.no-anim,
.cbook-book.no-anim .cbook-leaf {
  transition: none;
}

.cbook-face {
  position: absolute;
  inset: 0;
  overflow: hidden;
  container-type: inline-size;
  background: #fbfaf6;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.cbook-face--front {
  border-radius: 0 0.6rem 0.6rem 0;
}

.cbook-face--back {
  transform: rotateY(180deg);
  border-radius: 0.6rem 0 0 0.6rem;
}

/* 그림자는 맨 아래 장과 넘어가는 장에만 (겹치면 진해짐) */
.cbook-leaf:last-child .cbook-face--front,
.cbook-leaf:first-child .cbook-face--back,
.cbook-leaf.is-turning .cbook-face {
  box-shadow: 0 14px 30px -12px rgb(0 0 0 / 0.35);
}

/* 제본선 쪽 그림자 */
.cbook-face::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  transition: opacity 0.8s ease;
}

.cbook-face--front::after {
  background: linear-gradient(to right, rgb(0 0 0 / 0.16), rgb(0 0 0 / 0) 9%);
}

.cbook-face--back::after {
  background: linear-gradient(to left, rgb(0 0 0 / 0.16), rgb(0 0 0 / 0) 9%);
}

/* 넘어가는 중인 장에 드리우는 음영 */
.cbook-leaf.is-turning .cbook-face::after {
  animation: cbook-shade 0.8s ease;
}

@keyframes cbook-shade {
  50% {
    background: linear-gradient(to right, rgb(0 0 0 / 0.28), rgb(0 0 0 / 0.08));
  }
}

.cbook-page {
  position: absolute;
  inset: 0;
}

.cbook-page img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-user-drag: none;
}

/* 색상 칩 위의 투명 링크: 누르면 색상표로 이동 */
.cbook-chip {
  position: absolute;
  z-index: 1;
  border-radius: 6%/ 10%;
  cursor: pointer;
  transition: box-shadow 0.15s, background-color 0.15s;
}

.cbook-chip:hover,
.cbook-chip:focus-visible {
  outline: none;
  background: rgb(255 255 255 / 0.12);
  box-shadow: 0 0 0 3px #e07a28, 0 6px 16px rgb(0 0 0 / 0.25);
}

.cbook-stage.is-panning .cbook-chip {
  pointer-events: none;
}

/* 넘겨서 뒤집힌 면(보이지 않는 쪽)의 칩은 누를 수 없게 한다 */
.cbook-leaf.is-flipped .cbook-face--front .cbook-chip,
.cbook-leaf:not(.is-flipped) .cbook-face--back .cbook-chip,
.cbook-leaf.is-turning .cbook-chip {
  pointer-events: none;
}

.cbook-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.cbook-btn {
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.cbook-btn:hover:not(:disabled) {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.cbook-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.cbook-zoom-btns {
  display: inline-flex;
  gap: 0.4rem;
  margin-left: 1rem;
  padding-left: 1.25rem;
  border-left: 1px solid var(--line);
}

.cbook-btn--zoom {
  font-size: 1.1rem;
  font-weight: 700;
}

.cbook-btn--zoom[data-zoom="0"] {
  font-size: 0.72rem;
}

.cbook-indicator {
  min-width: 4.5rem;
  text-align: center;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}

.cbook-hint {
  margin: 0.6rem 0 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
}

.cbook-disclaimer {
  margin: 0 0 0.5rem;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-dark);
}

@media (max-width: 700px) {
  .cbook-stage {
    width: min(calc(100vw - 1.5rem), calc((100vh - 9rem) * 595 / 842));
  }

  .cbook-zoom-btns {
    margin-left: 0.25rem;
    padding-left: 0.75rem;
  }

  .cbook-book {
    width: 100%;
    aspect-ratio: 595 / 842;
    overflow: hidden;
    border-radius: 0.6rem;
  }

  .cbook-leaf {
    left: 0;
    width: 100%;
  }

  .cbook-face--front {
    border-radius: 0.6rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cbook-book,
  .cbook-leaf {
    transition: none;
  }

  .cbook-leaf.is-turning .cbook-face::after {
    animation: none;
  }
}

.has-color-finder {
  padding-right: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.color-finder {
  position: fixed;
  top: 5.5rem;
  right: 1.25rem;
  z-index: 20;
  width: min(16.5rem, calc(100vw - 2rem));
  max-height: calc(100vh - 6.5rem);
  overflow: auto;
  padding: 0.9rem 0.95rem 0.8rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  box-shadow: 0 12px 28px rgb(22 20 16 / 0.12);
}

.color-finder-title {
  margin: 0 0 0.45rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.color-finder input {
  width: 100%;
  font: inherit;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 0.45rem;
  background: var(--field);
  color: var(--silver);
}

.color-finder input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.color-finder-count {
  margin: 0.4rem 0 0;
  min-height: 1.1em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
}

.color-finder-results {
  max-height: 18rem;
  overflow: auto;
  margin-top: 0.45rem;
  display: grid;
  gap: 0.4rem;
}

.color-finder-item {
  display: flex;
  gap: 0.55rem;
  align-items: center;
  text-decoration: none;
  padding: 0.4rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: var(--field);
  color: var(--silver);
}

.color-finder-item img {
  width: 2.6rem;
  height: 2.6rem;
  object-fit: cover;
  border-radius: 0.35rem;
  flex-shrink: 0;
  background: var(--navy-alt);
}

.color-finder-item-text {
  display: grid;
  min-width: 0;
}

.color-finder-item-text strong,
.color-finder-item-text em,
.color-finder-item-text small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.color-finder-item-text strong {
  font-size: 0.78rem;
}

.color-finder-item-text em {
  font-style: normal;
  font-size: 0.72rem;
  color: var(--accent-dark);
}

.color-finder-item-text small {
  font-size: 0.68rem;
  color: var(--muted);
}

.color-finder-empty {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.color-finder-more {
  display: inline-block;
  margin-top: 0.55rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-dark);
}

@media (max-width: 900px) {
  .has-color-finder {
    padding-right: 0;
  }

  .color-finder {
    top: auto;
    bottom: 1rem;
    right: 1rem;
    transform: none;
    width: min(15.5rem, calc(100vw - 2rem));
  }

  .color-finder-results {
    max-height: 12rem;
  }
}

.shop-grid {
  display: grid;
  justify-content: center;
}

.shop-buy {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  padding: 1.25rem 1.3rem 1.35rem;
  max-width: 34rem;
  width: 100%;
  display: grid;
  gap: 0.75rem;
}

.shop-buy h2 {
  margin-top: 0;
}

.shop-buy label {
  display: grid;
  gap: 0.3rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.shop-buy select,
.shop-buy input {
  font: inherit;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 0.45rem;
  background: var(--field);
  color: var(--silver);
}

.shop-info {
  display: grid;
  gap: 0.45rem;
  margin: 0.15rem 0 0.25rem;
}

.shop-info-title {
  margin: 0.2rem 0 0;
  font-weight: 700;
}

.shop-info div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
}

.shop-info dt,
.shop-info dd {
  margin: 0;
}

.shop-info dt {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.88rem;
  flex-shrink: 0;
}

.shop-info dd {
  text-align: right;
}

.shop-note {
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.shop-totals {
  display: grid;
  gap: 0.45rem;
  margin: 0.25rem 0 0;
}

.shop-totals div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.shop-totals dt,
.shop-totals dd {
  margin: 0;
}

.shop-totals dt {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.88rem;
}

.shop-pay {
  padding-top: 0.45rem;
  border-top: 1px solid var(--line);
}

.shop-pay dd {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent-dark);
}

.product-index-hero {
  padding-bottom: 1.25rem;
}

.section.product-index {
  padding: 0;
  background: #fff;
}

.product-rows {
  display: grid;
  background: #fff;
  /* hidden이면 #dy1 같은 위치 이동 때 이 상자 자체가 스크롤돼 위가 잘린다. */
  overflow: clip;
}

.product-row {
  scroll-margin-top: var(--header-h);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(1.5rem, 6vw, 5.5rem);
  padding: clamp(2.5rem, 7vw, 5.5rem) max(1.5rem, calc((100% - 68rem) / 2));
  position: relative;
}

/* 가장자리 파우더. 줄보다 크게 깔아 위아래 줄로 자연스럽게 넘친다. */
.product-row::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  height: min(185%, 1254px);
  aspect-ratio: 1;
  transform: translateY(-50%);
  background: url("../images/product-bg-edge-left.jpg") center / contain no-repeat;
  pointer-events: none;
  mix-blend-mode: multiply;
  z-index: 0;
}

.product-row:nth-of-type(even)::before {
  left: auto;
  right: 0;
  background-image: url("../images/product-bg-edge-right.jpg");
}

.product-row > * {
  position: relative;
  z-index: 1;
}

.product-row-media {
  display: block;
  border-radius: 0.9rem;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--panel);
}

.product-row-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.product-row-media:hover img,
.product-row-media:focus-visible img {
  transform: scale(1.05);
}

.product-row:nth-of-type(even) .product-row-media {
  order: 2;
}

.product-row-copy {
  min-width: 0;
  background: rgb(255 255 255 / 0.8);
  box-shadow: 0 0 2.5rem 2.5rem rgb(255 255 255 / 0.8);
  border-radius: 1rem;
}

.product-row-copy .eyebrow {
  margin: 0 0 0.5rem;
}

.product-row-copy h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.product-row-sub {
  margin: 0 0 1rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--muted);
}

.product-row-body {
  margin: 0 0 1.75rem;
  max-width: 30rem;
}

.product-row-copy .spec-list {
  max-width: 30rem;
  margin: -0.5rem 0 1.75rem;
}

.product-row-btn {
  display: inline-block;
  background: #fff;
  padding: 0.85rem 1.6rem;
  border: 1px solid var(--line);
  border-radius: 0.2rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.product-row-btn:hover,
.product-row-btn:focus-visible {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.product-row-media:focus-visible,
.product-row-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* 스크롤해서 내려오면 한 줄씩 나타난다 (js/products.js가 클래스를 붙인다). */
.product-rows.is-animated .product-row-media,
.product-rows.is-animated .product-row-copy {
  opacity: 0;
  transform: translateY(2.5rem);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.product-rows.is-animated .product-row-copy {
  transition-delay: 0.15s;
}

.product-rows.is-animated .product-row.is-visible .product-row-media,
.product-rows.is-animated .product-row.is-visible .product-row-copy {
  opacity: 1;
  transform: none;
}

@media (max-width: 700px) {
  .product-row {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .product-row::before {
    top: 0;
    height: auto;
    width: 130vw;
    transform: none;
  }

  .product-row:nth-of-type(even) .product-row-media {
    order: 0;
  }

  .product-row-media {
    aspect-ratio: 4 / 3;
  }
}

.crumb {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0 0 0.85rem;
  color: var(--accent-dark);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
}

.page-hero .crumb {
  color: var(--accent);
}

.crumb::before {
  content: "←";
}

.product-hero {
  padding-bottom: 1.5rem;
}

.spec-list {
  margin: 0.85rem 0;
  padding: 0;
  list-style: none;
}

.spec-list li {
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.spec-list li:first-child {
  border-top: 1px solid var(--line);
}

.section > .note {
  margin-top: 1.25rem;
}

.home-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 28rem;
  padding: 4.5rem 1.5rem 3.5rem;
  text-align: center;
  color: #f4efe6;
  overflow: hidden;
}

.home-hero-bg {
  position: absolute;
  inset: 0;
  background: #0c1a33 url("../images/home-hero-powder.jpg") center / cover no-repeat;
}

.home-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgb(8 14 28 / 0.42), rgb(8 14 28 / 0.32) 50%, rgb(8 14 28 / 0.55));
}

.home-hero-content {
  position: relative;
  z-index: 1;
  max-width: 42rem;
  width: 100%;
  min-width: 0;
  padding: 0 0.25rem;
  overflow: hidden;
}

.home-hero h1 {
  font-size: clamp(1.55rem, 5.4vw, 2.7rem);
  overflow-wrap: anywhere;
  word-break: keep-all;
}

.home-hero-content .eyebrow {
  color: var(--accent);
}

.home-hero-content .lede {
  margin-left: auto;
  margin-right: auto;
  color: rgb(244 239 230 / 0.88);
}

.home-hero-content .hero-actions {
  justify-content: center;
}

.home-hero-content .btn-ghost {
  color: #f4efe6;
  border-color: rgb(244 239 230 / 0.45);
}

.home-page {
  background-color: #ece8e2;
}

.home-stage {
  position: relative;
  height: 220vh;
}

.home-stage-pin {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-stage-bg {
  position: absolute;
  inset: 0;
  background: #f4f1ec url("../images/home-powder-colors.jpg") 62% 42% / cover no-repeat;
}

.home-stage-bg-hero {
  position: absolute;
  inset: 0;
  background: #0c1a33 url("../images/home-hero-metal.jpg") center / cover no-repeat;
  will-change: opacity;
}

.home-stage-bg-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgb(8 14 28 / 0.35), rgb(8 14 28 / 0.22) 45%, rgb(8 14 28 / 0.42));
}

.home-stage-hero {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1.5rem;
  text-align: center;
  will-change: transform, opacity;
}

.home-stage-hero-inner {
  max-width: 36rem;
  color: #f4efe6;
}

.home-stage-hero .eyebrow {
  color: var(--accent);
}

.home-stage-hero .lede {
  margin: 0 auto 1.3rem;
  color: rgb(244 239 230 / 0.88);
}

.home-stage-hero .hero-actions {
  justify-content: center;
}

.home-stage-hero .btn-ghost {
  color: #f4efe6;
  border-color: rgb(244 239 230 / 0.45);
}

.home-stage-hero .btn-ghost:hover,
.home-stage-hero .btn-ghost:focus-visible {
  background: rgb(244 239 230 / 0.12);
}

.home-stage-cue {
  position: absolute;
  left: 50%;
  bottom: 1.6rem;
  z-index: 2;
  width: 1.5rem;
  height: 2.4rem;
  border: 2px solid rgb(244 239 230 / 0.45);
  border-radius: 999px;
  transform: translateX(-50%);
}

.home-stage-cue span {
  display: block;
  width: 0.28rem;
  height: 0.48rem;
  margin: 0.4rem auto 0;
  border-radius: 999px;
  background: #f4efe6;
  animation: scroll-cue 1.8s ease-in-out infinite;
}

.home-window {
  position: relative;
  z-index: 3;
  width: min(86vw, 58rem);
  max-width: calc(100% - 2rem);
  min-width: 0;
  box-sizing: border-box;
  background: #fff;
  color: #171717;
  border-radius: 1.15rem;
  padding: 2rem 1.9rem 1.6rem;
  box-shadow: 0 28px 70px rgb(30 20 10 / 0.18);
  text-align: center;
  transform-origin: center center;
  will-change: transform, opacity;
  opacity: 0;
}

.home-window .eyebrow {
  color: var(--accent);
}

.home-window h1 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.75rem, 3.6vw, 2.6rem);
  color: #141414;
  text-shadow: none;
}

.home-window-lead {
  margin: 0 auto 1.4rem;
  font-size: 1.05rem;
  max-width: 28rem;
  color: #5b5752;
}

.home-window-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
  min-width: 0;
}

.home-enter {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 0.75rem;
  min-height: 7.4rem;
  min-width: 0;
  text-decoration: none;
  color: #fff;
}

.home-enter img {
  display: block;
  width: 100%;
  height: clamp(9rem, 27vh, 13rem);
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 0.4s ease;
}

.home-enter span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.4rem 0.75rem 0.7rem;
  background: linear-gradient(180deg, transparent, rgb(12 12 12 / 0.78));
  text-align: left;
}

.home-enter em {
  display: block;
  font-style: normal;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.8;
}

.home-enter strong {
  display: block;
  font-size: 1.2rem;
}

.home-enter:hover img,
.home-enter:focus-visible img {
  transform: scale(1.1);
}

.home-window-all {
  display: inline-block;
  margin-top: 1.25rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
}

@media (max-width: 800px) {
  .home-window {
    width: calc(100% - 1.5rem);
    max-width: 32rem;
    padding: 1.15rem 0.85rem 1rem;
  }

  .home-enter img {
    height: 7.4rem;
  }
}

.about-story {
  padding: 0;
}

.section.about-nav {
  padding-bottom: 0;
  background: #fff;
}

.about-nav-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
}

.about-nav-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 5.5rem;
  padding: 1rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  text-decoration: none;
  text-align: center;
  color: var(--ink);
  font-weight: 700;
  font-size: 0.98rem;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.about-nav-card:hover,
.about-nav-card:focus-visible {
  border-color: var(--accent);
  background: rgb(224 122 40 / 0.08);
}

.about-nav-card[aria-current="page"] {
  border-color: var(--accent);
  background: rgb(224 122 40 / 0.1);
  color: var(--accent-dark);
}

@media (max-width: 560px) {
  .about-nav-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 800px) {
  .nav-toggle {
    display: inline-block;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 0;
    max-height: calc(100vh - var(--header-h));
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 0.25rem 1.25rem 1.25rem;
    background: var(--night);
    color: #f4efe6;
    border-bottom: 1px solid rgb(244 232 214 / 0.28);
  }

  .site-nav.is-open {
    display: flex;
  }

  /* 모바일: 상단 메뉴 바로 아래에 해당 하위 메뉴가 오도록 순서를 섞는다 */
  .nav-links,
  .nav-mega {
    display: contents;
    visibility: visible;
  }

  .nav-trigger {
    padding: 0.85rem 0 0.35rem;
    border-top: 1px solid rgb(244 232 214 / 0.12);
    border-radius: 0;
    text-align: left;
    font-size: 1rem;
  }

  .nav-trigger:first-child {
    border-top: none;
  }

  .nav-trigger:hover,
  .nav-trigger:focus-visible,
  .nav-trigger[aria-current="page"] {
    background: transparent;
    color: var(--accent);
  }

  .nav-links .nav-trigger:nth-child(1) { order: 1; }
  .nav-mega-col--about { order: 2; }
  .nav-links .nav-trigger:nth-child(2) { order: 3; }
  .nav-mega-col--products { order: 4; }
  .nav-links .nav-trigger:nth-child(3) { order: 5; }
  .nav-mega-col--tech { order: 6; }
  .nav-links .nav-trigger:nth-child(4) { order: 7; }
  .nav-mega-col--support { order: 8; }

  .nav-mega-col {
    position: static;
    top: auto;
    transform: none;
    align-items: stretch;
    gap: 0;
    padding: 0 0 0.6rem 0.75rem;
  }

  .nav-mega-col a {
    padding: 0.35rem 0;
    font-size: 0.92rem;
    text-align: left;
    white-space: normal;
    color: rgb(244 232 214 / 0.75);
  }

  .nav-mega-col--single {
    display: none;
  }

  /* 회사소개만 상단 메뉴와 이름·주소가 같아 첫 항목을 숨긴다. */
  .nav-mega-col--about a:first-child {
    display: none;
  }

  .header-login {
    order: 9;
    align-self: flex-start;
    margin: 0.75rem 0 0;
    padding: 0.45rem 0.9rem;
  }

  .lang-switch {
    order: 10;
    margin-left: 0;
    margin-top: 0.6rem;
  }

  .cards,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .history > li {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }
}

/* ---------- AI 상담 챗봇 (화면 오른쪽 가운데 고정) ---------- */
.chatbot-toggle {
  position: fixed;
  top: 50%;
  right: 16px;
  z-index: 60;
  transform: translateY(-50%);
  display: grid;
  justify-items: center;
  gap: 2px;
  width: 64px;
  height: 64px;
  padding: 8px 0 6px;
  border: 0;
  border-radius: 50%;
  background: #e07a28;
  color: #fff;
  font: inherit;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 6px 20px rgb(0 0 0 / 0.28);
  transition: background-color 0.2s, box-shadow 0.2s;
}

.chatbot-toggle:hover {
  background: #c45a2a;
  box-shadow: 0 8px 26px rgb(0 0 0 / 0.34);
}

.chatbot-toggle svg circle {
  fill: #e07a28;
}

.chatbot-toggle:hover svg circle {
  fill: #c45a2a;
}

.chatbot-toggle:focus-visible,
.chatbot-panel button:focus-visible,
.chatbot-input:focus-visible {
  outline: 2px solid #e07a28;
  outline-offset: 2px;
}

.chatbot-panel {
  position: fixed;
  top: 50%;
  right: 92px;
  z-index: 60;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  width: 370px;
  height: min(580px, calc(100vh - 110px));
  border-radius: 16px;
  background: #fff;
  color: #1c1c1c;
  box-shadow: 0 18px 50px rgb(0 0 0 / 0.3);
  overflow: hidden;
}

.chatbot-panel[hidden] {
  display: none;
}

.chatbot-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 12px 14px 18px;
  background: #0c0e14;
  color: #fff;
}

.chatbot-title {
  flex: 1;
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

.chatbot-reset {
  padding: 5px 10px;
  border: 1px solid rgb(255 255 255 / 0.35);
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 0.75rem;
  cursor: pointer;
}

.chatbot-close {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.chatbot-reset:hover,
.chatbot-close:hover {
  background: rgb(255 255 255 / 0.12);
}

.chatbot-log {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  overflow-y: auto;
  background: #f6f4f1;
  overscroll-behavior: contain;
}

.chatbot-msg {
  max-width: 85%;
  padding: 10px 13px;
  border-radius: 14px;
  font-size: 0.9rem;
  line-height: 1.55;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.chatbot-notices {
  align-self: stretch;
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.08);
}

.chatbot-notices h3 {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 6px;
  color: #c45a2a;
  font-size: 0.82rem;
  font-weight: 700;
}

.chatbot-notices ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.chatbot-notices li + li {
  border-top: 1px solid rgb(0 0 0 / 0.07);
}

.chatbot-notices a {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 8px 2px;
  color: #1c1c1c;
  font-size: 0.88rem;
  line-height: 1.45;
  text-decoration: none;
}

.chatbot-notices a span {
  flex: 1;
  overflow-wrap: anywhere;
}

.chatbot-notices a:hover span {
  color: #c45a2a;
  text-decoration: underline;
}

.chatbot-notices time {
  flex: none;
  color: #5b5752;
  font-size: 0.75rem;
}

.chatbot-msg--bot {
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  background: #fff;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.08);
}

.chatbot-msg--user {
  align-self: flex-end;
  border-bottom-right-radius: 4px;
  background: #e07a28;
  color: #fff;
}

.chatbot-msg a {
  color: #c45a2a;
  font-weight: 600;
  text-decoration: underline;
}

.chatbot-msg.is-waiting {
  color: #5b5752;
  animation: chatbot-pulse 1.2s ease-in-out infinite;
}

.chatbot-msg.is-error {
  color: #c0392b;
}

@keyframes chatbot-pulse {
  50% { opacity: 0.5; }
}

.chatbot-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 14px 0;
  background: #f6f4f1;
}

.chatbot-chips[hidden] {
  display: none;
}

.chatbot-chip {
  padding: 6px 11px;
  border: 1px solid #e07a28;
  border-radius: 999px;
  background: #fff;
  color: #c45a2a;
  font: inherit;
  font-size: 0.8rem;
  cursor: pointer;
}

.chatbot-chip:hover {
  background: #e07a28;
  color: #fff;
}

.chatbot-form {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 12px 14px 8px;
  background: #f6f4f1;
}

.chatbot-input {
  flex: 1;
  min-height: 42px;
  max-height: 120px;
  padding: 10px 12px;
  border: 1px solid rgb(0 0 0 / 0.15);
  border-radius: 12px;
  background: #fff;
  color: #1c1c1c;
  font: inherit;
  font-size: 0.9rem;
  line-height: 1.4;
  resize: none;
}

.chatbot-send {
  display: grid;
  place-items: center;
  flex: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: #e07a28;
  color: #fff;
  cursor: pointer;
}

.chatbot-send:disabled {
  opacity: 0.5;
  cursor: default;
}

.chatbot-note {
  margin: 0;
  padding: 0 14px 12px;
  background: #f6f4f1;
  color: #5b5752;
  font-size: 0.7rem;
  line-height: 1.4;
}

@media (max-width: 600px) {
  .chatbot-toggle {
    right: 10px;
    width: 56px;
    height: 56px;
    padding-top: 6px;
    font-size: 0.62rem;
  }

  .chatbot-panel {
    right: 12px;
    left: 12px;
    width: auto;
    height: min(560px, calc(100vh - 32px));
    height: min(560px, calc(100dvh - 32px));
  }

  .chatbot.is-open .chatbot-toggle {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .chatbot-msg.is-waiting {
    animation: none;
  }
}

/* ---------- 컬러 연구소: RAL 기준 — 비교 대상 3 ---------- */
.lab-list {
  display: grid;
  gap: 2.5rem;
  border-top: 1px solid var(--line);
  padding-top: 2.5rem;
}

.lab-list[hidden] {
  display: none;
}

.lab-entry {
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--line);
}

.lab-title {
  margin: 0 0 0.4rem;
  font-size: 1.3rem;
}

.lab-desc {
  margin: 0 0 1.25rem;
  color: var(--muted);
  white-space: pre-line;
}

.lab-pairs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.75rem;
  margin-top: 1.25rem;
}

.lab-pair-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 0 0 0.75rem;
  color: var(--accent-dark);
  font-size: 0.95rem;
  font-weight: 700;
}

.lab-num {
  display: grid;
  place-items: center;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: #0c0e14;
  color: #fff;
  font-size: 0.8rem;
}

/* 두 카드를 실물 카드처럼 딱 붙여 놓는다 */
.lab-pair-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}

.lab-card {
  margin: 0;
}

.lab-frame {
  position: relative;
  display: block;
  aspect-ratio: 5 / 8;
  border-radius: 0.6rem;
  background: rgb(0 0 0 / 0.04);
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.18);
  overflow: hidden;
}

.lab-card.is-empty .lab-frame {
  box-shadow: none;
  border: 2px dashed rgb(0 0 0 / 0.15);
}

.lab-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

a.lab-frame:hover img {
  transform: scale(1.03);
}

.lab-card figcaption {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
}

.lab-card--ref figcaption {
  color: var(--accent-dark);
}

@media (max-width: 860px) {
  .lab-pairs {
    grid-template-columns: 1fr;
    max-width: 26rem;
    margin-left: auto;
    margin-right: auto;
  }
}

.lab-cmp-name {
  margin: 1.25rem 0 0;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--line);
  font-weight: 700;
  text-align: center;
}

.inquiry .inquiry-policy-link {
  justify-self: start;
  font-size: 0.82rem;
  color: inherit;
  opacity: 0.8;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ===== 적용 분야 (applications.html) ===== */

/* 한국어만 어절 단위 줄바꿈. 중·일문은 띄어쓰기가 없어 keep-all이면 넘친다. */
html:lang(ko) .app-page {
  --app-break: keep-all;
}

.app-hero {
  min-height: clamp(20rem, 46vh, 30rem);
  padding-top: clamp(4rem, 10vw, 7rem);
  padding-bottom: clamp(4rem, 10vw, 7rem);
}

.app-hero .app-hero-eyebrow {
  margin-bottom: 1.25rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.24em;
}

.app-hero-title {
  margin: 0 0 1.1rem;
  font-size: clamp(2.2rem, 6vw, 4.2rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.04em;
  word-break: var(--app-break, normal);
}

.page-hero .app-hero-sub {
  margin: 0;
  max-width: 34rem;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  word-break: var(--app-break, normal);
}

.app-hero > * {
  animation: app-rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.app-hero .app-hero-title {
  animation-delay: 0.12s;
}

.app-hero .app-hero-sub {
  animation-delay: 0.26s;
}

@keyframes app-rise {
  from {
    opacity: 0;
    transform: translateY(1.25rem);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

main > section.app-showcase {
  background: #fff;
  padding-top: clamp(3rem, 7vw, 5rem);
  padding-bottom: clamp(3rem, 7vw, 5rem);
}

.app-showcase-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}

.app-showcase-head h2 {
  margin: 0;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  letter-spacing: -0.03em;
}

.app-showcase-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(0.75rem, 1.6vw, 1.25rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.app-card {
  position: relative;
  min-width: 0;
}

.app-card--large {
  grid-column: span 3;
}

.app-card--small {
  grid-column: span 2;
}

.app-card-btn {
  position: relative;
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0.9rem;
  overflow: hidden;
  background: #1a1d24;
  color: #fff;
  font: inherit;
  text-align: left;
  cursor: pointer;
  aspect-ratio: 7 / 5;
  box-shadow: 0 1px 2px rgb(12 16 28 / 0.08);
  transition: box-shadow 0.45s ease;
  -webkit-tap-highlight-color: transparent;
}

.app-card--small .app-card-btn {
  aspect-ratio: 1 / 1;
}

.app-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1), filter 0.45s ease;
}

.app-card-img--left {
  object-position: 28% center;
}

/* 아래쪽 그라데이션(::before) + 호버 때 살짝 진해지는 전체 오버레이(::after) */
.app-card-btn::before,
.app-card-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
}

.app-card-btn::before {
  background: linear-gradient(180deg, rgb(8 12 22 / 0) 22%, rgb(8 12 22 / 0.5) 48%, rgb(8 12 22 / 0.8) 72%, rgb(8 12 22 / 0.94));
}

.app-card-btn::after {
  background: rgb(8 12 22 / 0.14);
  opacity: 0;
  transition: opacity 0.45s ease;
}

.app-card-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: clamp(1.1rem, 2.2vw, 1.75rem);
  padding-right: 4.5rem;
  text-shadow: 0 1px 12px rgb(8 12 22 / 0.55);
  transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.app-card-num {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #f29a4c;
}

.app-card-en {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgb(255 255 255 / 0.78);
  overflow-wrap: anywhere;
}

.app-card-title {
  font-size: clamp(1.3rem, 2.4vw, 1.85rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.03em;
  word-break: var(--app-break, normal);
}

.app-card--small .app-card-title {
  font-size: clamp(1.15rem, 1.9vw, 1.45rem);
}

.app-card-line {
  margin-top: 0.15rem;
  font-size: 0.92rem;
  line-height: 1.5;
  color: rgb(255 255 255 / 0.86);
  word-break: var(--app-break, normal);
}

.app-card-arrow {
  position: absolute;
  right: clamp(1rem, 2vw, 1.5rem);
  bottom: clamp(1.1rem, 2.2vw, 1.75rem);
  z-index: 1;
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid rgb(255 255 255 / 0.45);
  border-radius: 50%;
  color: #fff;
  transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1), background 0.45s ease, border-color 0.45s ease;
}

@media (hover: hover) {
  .app-card-btn:hover {
    box-shadow: 0 1.25rem 2.5rem -1rem rgb(12 16 28 / 0.45);
  }

  .app-card-btn:hover .app-card-img {
    transform: scale(1.04);
  }

  .app-card-btn:hover::after {
    opacity: 1;
  }

  .app-card-btn:hover .app-card-body {
    transform: translateY(-0.3rem);
  }

  .app-card-btn:hover .app-card-arrow {
    transform: translate(0.2rem, -0.2rem);
    background: var(--accent);
    border-color: var(--accent);
  }
}

.app-card-btn:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

/* 선택된 카드: 안쪽 브랜드 컬러 테두리 + 화살표가 아래(패널 쪽)를 가리킨다 */
.app-card.is-active .app-card-btn {
  box-shadow: 0 1.25rem 2.5rem -1rem rgb(12 16 28 / 0.45);
}

.app-card.is-active .app-card-btn::after {
  opacity: 1;
  background: none;
  box-shadow: inset 0 0 0 3px var(--accent);
}

.app-card.is-active .app-card-arrow,
.app-card.is-active .app-card-btn:hover .app-card-arrow {
  background: var(--accent);
  border-color: var(--accent);
  transform: rotate(90deg);
}

.app-grid.has-active .app-card:not(.is-active) .app-card-img {
  filter: saturate(0.7) brightness(0.92);
}

/* 데스크톱 스크롤 등장 (js/applications.js가 클래스를 붙인다) */
.app-grid.is-animated .app-card {
  opacity: 0;
  transform: translateY(1.75rem);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.app-grid.is-animated .app-card:nth-child(2),
.app-grid.is-animated .app-card:nth-child(4) {
  transition-delay: 0.08s;
}

.app-grid.is-animated .app-card:nth-child(5) {
  transition-delay: 0.16s;
}

.app-grid.is-animated .app-card.is-visible {
  opacity: 1;
  transform: none;
}

/* 상세 패널 */
.app-detail {
  display: grid;
  grid-template-columns: 55fr 45fr;
  margin-top: clamp(1rem, 2.4vw, 1.75rem);
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  overflow: hidden;
  background: #fff;
  opacity: 0;
  transform: translateY(1rem);
  transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.app-detail[hidden] {
  display: none;
}

.app-detail.is-open {
  opacity: 1;
  transform: none;
}

.app-detail-media {
  position: relative;
  min-height: 26rem;
  background: #1a1d24;
}

.app-detail-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.app-detail-img.is-current {
  opacity: 1;
}

.app-detail-img:not([src]) {
  visibility: hidden;
}

.app-detail-copy {
  position: relative;
  min-width: 0;
  padding: clamp(1.75rem, 3.5vw, 3rem);
  border-top: 3px solid var(--accent);
}

.app-detail-inner {
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.app-detail-inner.is-swapping {
  opacity: 0;
  transform: translateY(0.4rem);
}

.app-detail-en {
  margin: 0 3.5rem 0.4rem 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-dark);
  overflow-wrap: anywhere;
}

.app-detail-title {
  margin: 0 3rem 1rem 0;
  font-size: clamp(1.6rem, 2.8vw, 2.1rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.03em;
  word-break: var(--app-break, normal);
}

.app-detail-intro {
  margin: 0 0 1.5rem;
  word-break: var(--app-break, normal);
}

.app-detail-label {
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.app-detail-targets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.25rem;
  margin: 0 0 1.4rem;
  padding: 0;
  list-style: none;
  font-weight: 600;
}

.app-detail-targets li {
  position: relative;
  padding-left: 0.9rem;
}

.app-detail-targets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 0.35rem;
  height: 0.35rem;
  background: var(--accent);
}

.app-detail-focus {
  margin: 0 0 1.4rem;
  color: var(--muted);
  word-break: var(--app-break, normal);
}

.app-detail-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.app-detail-keywords li {
  padding: 0.4rem 0.9rem;
  border: 1px solid rgb(224 122 40 / 0.45);
  border-radius: 999px;
  background: rgb(224 122 40 / 0.07);
  color: var(--accent-dark);
  font-size: 0.88rem;
  font-weight: 700;
}

.app-detail-close {
  position: absolute;
  top: clamp(1.25rem, 3vw, 2.25rem);
  right: clamp(1.25rem, 3vw, 2.25rem);
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.app-detail-close:hover,
.app-detail-close:focus-visible {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.app-detail-close:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* 닫기 글자는 화면에서 숨기고 스크린리더용 aria-label이 대신한다 */
.app-detail-close span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* 마무리 메시지 */
main > section.app-closing {
  padding: clamp(4rem, 9vw, 6.5rem) max(1.5rem, calc((100% - 68rem) / 2));
  background: #0c1a33;
  color: #f4efe6;
  text-align: center;
}

.app-closing-title {
  margin: 0 auto 1rem;
  font-size: clamp(1.7rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.035em;
  word-break: var(--app-break, normal);
}

.app-closing-title::before {
  content: "";
  display: block;
  width: 2.5rem;
  height: 3px;
  margin: 0 auto 1.5rem;
  background: var(--accent);
}

.app-closing-body {
  max-width: 38rem;
  margin: 0 auto;
  color: rgb(244 239 230 / 0.82);
  word-break: var(--app-break, normal);
}

@media (max-width: 900px) {
  .app-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .app-card--large,
  .app-card--small {
    grid-column: span 1;
  }

  .app-card--large .app-card-btn,
  .app-card--small .app-card-btn {
    aspect-ratio: 4 / 3;
  }

  .app-card:last-child {
    grid-column: span 2;
  }

  .app-card:last-child .app-card-btn {
    aspect-ratio: 2 / 1;
  }

  .app-detail {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .app-detail {
    grid-template-columns: 1fr;
  }

  .app-detail-media {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 600px) {
  .app-grid {
    grid-template-columns: 1fr;
  }

  .app-card:last-child {
    grid-column: auto;
  }

  .app-card--large .app-card-btn,
  .app-card--small .app-card-btn,
  .app-card:last-child .app-card-btn {
    aspect-ratio: 4 / 3;
  }

  .app-card-body {
    padding-right: 4rem;
  }

  .app-card-line {
    font-size: 0.88rem;
  }

  .app-showcase-head p {
    font-size: 0.9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .app-hero > * {
    animation: none;
  }

  .app-card-btn,
  .app-card-img,
  .app-card-btn::after,
  .app-card-body,
  .app-card-arrow,
  .app-detail,
  .app-detail-img,
  .app-detail-inner {
    transition: none;
  }

  .app-card-btn:hover .app-card-img,
  .app-card-btn:hover .app-card-body {
    transform: none;
  }
}
