/* ==========================================================================
   Wibroad Solutions — Draft v0.3
   Home = company introduction. Products live behind the Products menu.
   ========================================================================== */

:root {
  /* Core palette — deep navy = trust & stability, orange = CI accent */
  --navy-950: #050d1a;
  --navy-900: #0a1728;
  --navy-800: #102340;
  --navy-700: #1b3557;
  --steel-500: #5b7290;
  --steel-300: #9fb0c6;
  --steel-100: #e6ebf2;
  --paper: #f7f9fc;
  --white: #ffffff;

  /* Accent scale — ci/tokens.css 의 브랜드 오렌지(#f07b1e) 기준.
     -bright 는 네이비 배경 위 텍스트용(대비 9.6:1),
     -deep 는 흰 배경 위 텍스트용(대비 4.8:1). */
  --signal: #f07b1e;
  --signal-bright: #ffa24f;
  --signal-deep: #b8560c;
  --signal-rgb: 240, 123, 30;
  --signal-bright-rgb: 255, 162, 79;

  --ink: #0f1b2d;
  --ink-muted: #52627a;

  --border: #dfe6f0;

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Pretendard", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --wrap: 1180px;
  --radius: 4px;
  --radius-lg: 8px;

  --shadow-sm: 0 1px 2px rgba(15, 27, 45, 0.06),
    0 2px 8px rgba(15, 27, 45, 0.04);
  --shadow-md: 0 4px 12px rgba(15, 27, 45, 0.08),
    0 12px 32px rgba(15, 27, 45, 0.06);
  --shadow-lg: 0 8px 28px rgba(10, 23, 40, 0.14);

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 600;
}

p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

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

:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   Layout primitives
   -------------------------------------------------------------------------- */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 88px 0;
}

.section--tight {
  padding: 64px 0;
}

.section--paper {
  background: var(--paper);
  border-block: 1px solid var(--border);
}

.section-head {
  max-width: 760px;
  margin-bottom: 48px;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--signal-deep);
  margin-bottom: 16px;
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 20px;
  height: 1px;
  background: var(--signal);
  vertical-align: middle;
  margin-right: 10px;
}

.section-title {
  font-size: clamp(27px, 3.2vw, 38px);
  margin-bottom: 18px;
  text-wrap: balance;
}

.section-lede {
  font-size: 17px;
  color: var(--ink-muted);
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease),
    color 0.18s var(--ease), transform 0.18s var(--ease);
}

.btn--primary {
  background: var(--signal);
  color: var(--navy-950);
  font-weight: 600;
}

.btn--primary:hover {
  background: var(--signal-bright);
  transform: translateY(-1px);
}

.btn--ghost {
  border-color: rgba(255, 255, 255, 0.28);
  color: var(--white);
}

.btn--ghost:hover {
  border-color: var(--signal);
  color: var(--signal-bright);
}

.btn--outline {
  border-color: var(--border);
  color: var(--ink);
  background: var(--white);
}

.btn--outline:hover {
  border-color: var(--signal);
  color: var(--signal-deep);
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: 76px;
  display: flex;
  align-items: center;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
  border-bottom: 1px solid transparent;
}

/* Solid whenever the page is scrolled, or when the view has no dark hero */
.site-header.is-scrolled,
body.is-subpage .site-header {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom-color: var(--border);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 40px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
}

/* CI 마크. street = 마크 내부 절개선으로, 뒤에 깔린 배경색과 같아야 한다.
   그래서 헤더가 투명(다크 히어로 위)일 때와 흰 배경일 때 값이 달라진다. */
.logo__mark {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  --wb-mark-navy: var(--white);
  --wb-mark-orange: var(--signal);
  --wb-mark-street: var(--navy-950);
}

/* 헤더가 흰 배경으로 바뀌면 마크도 원래 네이비로 되돌린다.
   .site-header 로 한정해야 서브페이지에서 푸터(네이비 배경) 마크까지 끌려가지 않는다. */
.site-header.is-scrolled .logo__mark,
body.is-subpage .site-header .logo__mark {
  --wb-mark-navy: #1b3564;
  --wb-mark-street: var(--white);
}

.logo__text {
  font-size: 19px;
  font-weight: 700;
  /* 대문자 워드마크라 소문자용 음수 트래킹 대신 살짝 벌린다 */
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--white);
  transition: color 0.25s var(--ease);
}

.logo__text span {
  color: var(--signal);
}

.is-scrolled .logo__text,
body.is-subpage .logo__text {
  color: var(--navy-900);
}

/* --------------------------------------------------------------------------
   Navigation + products dropdown
   -------------------------------------------------------------------------- */

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-left: auto;
}

.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-family: inherit;
  color: rgba(255, 255, 255, 0.82);
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: color 0.2s var(--ease);
  position: relative;
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 1.5px;
  background: var(--signal);
  transition: width 0.22s var(--ease);
}

.nav__link:hover::after,
.nav__link.is-current::after {
  width: 100%;
}

.is-scrolled .nav__link,
body.is-subpage .nav__link {
  color: var(--ink-muted);
}

.is-scrolled .nav__link:hover,
body.is-subpage .nav__link:hover,
body.is-subpage .nav__link.is-current {
  color: var(--navy-900);
}

.nav__caret {
  width: 10px;
  height: 10px;
  transition: transform 0.22s var(--ease);
}

.has-menu {
  position: relative;
  padding-bottom: 22px;
  margin-bottom: -22px;
}

.has-menu:hover .nav__caret,
.has-menu:focus-within .nav__caret {
  transform: rotate(180deg);
}

.menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translate(-50%, 6px);
  min-width: 260px;
  padding: 8px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease),
    visibility 0.18s var(--ease);
}

.has-menu:hover .menu,
.has-menu:focus-within .menu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.menu__item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 11px 14px;
  border: 0;
  border-radius: var(--radius);
  background: none;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s var(--ease);
}

.menu__item:hover {
  background: var(--paper);
}

.menu__name {
  display: block;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 2px;
}

.menu__desc {
  display: block;
  font-size: 12.5px;
  color: var(--ink-muted);
  line-height: 1.45;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lang-toggle {
  display: flex;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.25s var(--ease);
}

.is-scrolled .lang-toggle,
body.is-subpage .lang-toggle {
  border-color: var(--border);
}

.lang-toggle button {
  padding: 6px 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  background: transparent;
  border: 0;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.is-scrolled .lang-toggle button,
body.is-subpage .lang-toggle button {
  color: var(--ink-muted);
}

.lang-toggle button.is-active {
  background: var(--signal);
  color: var(--navy-950);
  font-weight: 600;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 10px;
}

.nav-toggle span {
  display: block;
  height: 1.5px;
  background: var(--white);
  margin: 5px 0;
  transition: background 0.25s var(--ease);
}

.is-scrolled .nav-toggle span,
body.is-subpage .nav-toggle span {
  background: var(--navy-900);
}

/* --------------------------------------------------------------------------
   Views
   -------------------------------------------------------------------------- */

.view[hidden] {
  display: none;
}

/* --------------------------------------------------------------------------
   Hero (home only)
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  padding: 168px 0 116px;
  background: linear-gradient(
    160deg,
    var(--navy-950) 0%,
    var(--navy-900) 45%,
    var(--navy-800) 100%
  );
  overflow: hidden;
}

.hero__field {
  position: absolute;
  inset: 0;
  opacity: 0.55;
  pointer-events: none;
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
      rgba(255, 255, 255, 0.028) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(
    ellipse 80% 70% at 70% 40%,
    #000 20%,
    transparent 75%
  );
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border: 1px solid rgba(var(--signal-rgb), 0.32);
  border-radius: 100px;
  background: rgba(var(--signal-rgb), 0.07);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--signal-bright);
  margin-bottom: 26px;
}

.hero__tag::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--signal-bright);
  box-shadow: 0 0 0 0 rgba(var(--signal-bright-rgb), 0.6);
  animation: pulse 2.4s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(var(--signal-bright-rgb), 0.55);
  }
  70% {
    box-shadow: 0 0 0 9px rgba(var(--signal-bright-rgb), 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(var(--signal-bright-rgb), 0);
  }
}

.hero__title {
  font-size: clamp(36px, 5.2vw, 58px);
  line-height: 1.08;
  color: var(--white);
  margin-bottom: 22px;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.hero__title em {
  font-style: normal;
  color: var(--signal-bright);
}

.hero__lede {
  font-size: 18px;
  line-height: 1.7;
  color: var(--steel-300);
  max-width: 560px;
  margin-bottom: 36px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* --------------------------------------------------------------------------
   Page hero (product views)
   -------------------------------------------------------------------------- */

.page-hero {
  position: relative;
  padding: 140px 0 60px;
  background: linear-gradient(150deg, var(--navy-950), var(--navy-800));
  overflow: hidden;
}

.page-hero__field {
  position: absolute;
  right: -60px;
  top: 50%;
  transform: translateY(-50%);
  width: 420px;
  opacity: 0.16;
  color: var(--signal);
  pointer-events: none;
}

.page-hero__inner {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

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

.page-hero__title {
  font-size: clamp(30px, 4vw, 44px);
  color: var(--white);
  margin-bottom: 16px;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.page-hero__lede {
  font-size: 17px;
  color: var(--steel-300);
  max-width: 620px;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
}

.chip {
  padding: 6px 13px;
  border: 1px solid rgba(var(--signal-rgb), 0.34);
  border-radius: 100px;
  background: rgba(var(--signal-rgb), 0.08);
  font-size: 12.5px;
  color: var(--signal-bright);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--steel-500);
  margin-bottom: 18px;
}

.breadcrumb button {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: var(--steel-300);
  cursor: pointer;
}

.breadcrumb button:hover {
  color: var(--signal-bright);
}

/* --------------------------------------------------------------------------
   Model line-up table (RF)
   -------------------------------------------------------------------------- */

.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;
}

.lineup__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.lineup__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.lineup__filter {
  padding: 7px 14px;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: var(--white);
  font: inherit;
  font-size: 13px;
  color: var(--ink-muted);
  cursor: pointer;
  transition: border-color 0.18s var(--ease), color 0.18s var(--ease),
    background 0.18s var(--ease);
}

.lineup__filter:hover {
  border-color: var(--signal);
  color: var(--signal-deep);
}

.lineup__filter.is-active {
  background: var(--signal);
  border-color: var(--signal);
  color: var(--navy-950);
  font-weight: 600;
}

.lineup__count {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink-muted);
}

/* The table is wider than a phone; it scrolls inside its own box so the
   page body never scrolls sideways. */
.lineup__scroll {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--white);
}

.lineup__table {
  width: 100%;
  min-width: 780px;
  border-collapse: collapse;
  font-size: 14px;
}

.lineup__table th,
.lineup__table td {
  padding: 12px 16px;
  text-align: left;
  white-space: nowrap;
}

.lineup__table thead th {
  background: var(--paper);
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 500;
}

.lineup__sort {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

.lineup__sort:hover {
  color: var(--signal-deep);
}

.lineup__sort[aria-sort="ascending"],
.lineup__sort[aria-sort="descending"] {
  color: var(--signal-deep);
  font-weight: 700;
}

.lineup__sort::after {
  content: "↕";
  font-size: 10px;
  opacity: 0.45;
}

.lineup__sort[aria-sort="ascending"]::after {
  content: "↑";
  opacity: 1;
}

.lineup__sort[aria-sort="descending"]::after {
  content: "↓";
  opacity: 1;
}

.lineup__row {
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.15s var(--ease);
}

.lineup__row:hover {
  background: var(--paper);
}

.lineup__row.is-open {
  background: var(--paper);
}

.lineup__row td:first-child {
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--ink);
}

.lineup__row.is-open td:first-child {
  color: var(--signal-deep);
}

.lineup__num {
  font-family: var(--font-mono);
  font-size: 13px;
}

.lineup__tags {
  display: inline-flex;
  gap: 5px;
  margin-left: 8px;
}

.lineup__tag {
  padding: 1px 7px;
  border-radius: 3px;
  background: var(--steel-100);
  font-family: var(--font-sans);
  font-size: 10.5px;
  letter-spacing: 0.03em;
  color: var(--steel-500);
  text-transform: uppercase;
}

.lineup__tag--accent {
  background: rgba(var(--signal-rgb), 0.12);
  color: var(--signal-deep);
}

/* Detail row — one <tr> holding a full-width panel, so it stays inside
   the table's column grid without fighting it. */
.lineup__detail > td {
  padding: 0;
  border-bottom: 1px solid var(--border);
  white-space: normal;
}

.lineup__panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
  padding: 24px 16px 28px;
  background: var(--paper);
}

.lineup__panel h4 {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--signal-deep);
  margin-bottom: 12px;
  font-weight: 500;
}

.lineup__dl {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 13.5px;
}

.lineup__dl div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}

.lineup__dl dt {
  color: var(--ink-muted);
}

.lineup__dl dd {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12.5px;
  text-align: right;
}

.lineup__features {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 13.5px;
  color: var(--ink-muted);
}

.lineup__features li {
  position: relative;
  padding-left: 16px;
}

.lineup__features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--signal);
}

.lineup__empty {
  padding: 36px 16px;
  text-align: center;
  color: var(--ink-muted);
  font-size: 14px;
}

.lineup__note {
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--ink-muted);
}

@media (max-width: 640px) {
  .lineup__count {
    margin-left: 0;
    width: 100%;
  }
}

/* --------------------------------------------------------------------------
   Business cards (home)
   -------------------------------------------------------------------------- */

.biz {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.biz__card {
  display: flex;
  flex-direction: column;
  text-align: left;
  padding: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.22s var(--ease), box-shadow 0.22s var(--ease),
    transform 0.22s var(--ease);
}

.biz__card:hover {
  border-color: var(--signal);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.biz__body {
  padding: 30px 26px 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Text-only cards, so the index carries the visual weight the image used to */
.biz__label {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--signal-deep);
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.biz__title {
  font-size: 19px;
  margin-bottom: 10px;
}

.biz__body p {
  font-size: 14.5px;
  color: var(--ink-muted);
  margin-bottom: 20px;
}

.biz__more {
  margin-top: auto;
  font-size: 14px;
  font-weight: 500;
  color: var(--signal-deep);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.biz__card:hover .biz__more {
  gap: 11px;
}

.biz__more span {
  transition: gap 0.2s var(--ease);
}

/* --------------------------------------------------------------------------
   Value cards
   -------------------------------------------------------------------------- */

.values {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.value {
  background: var(--white);
  padding: 34px 26px;
  transition: background 0.2s var(--ease);
}

.value:hover {
  background: var(--paper);
}

.value__icon {
  width: 32px;
  height: 32px;
  color: var(--signal-deep);
  margin-bottom: 18px;
}

.value__title {
  font-size: 17px;
  margin-bottom: 10px;
}

.value__body {
  font-size: 14.5px;
  color: var(--ink-muted);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Product detail — process/spec cards
   -------------------------------------------------------------------------- */

.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 22px;
}

/* Image-led variant: the photo bleeds to the card edge, so the padding
   moves from the card onto an inner wrapper. */
.detail--media {
  padding: 0;
  overflow: hidden;
}

.detail__visual {
  aspect-ratio: 16 / 10;
  background: var(--navy-900);
}

.detail__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Dark ground suits the pale enclosure renders; the black industrial PC
   needs a light one instead. */
.detail__visual--light {
  background: var(--paper);
}

/* --------------------------------------------------------------------------
   Carousel — product renders arrive as sets, one card per set
   -------------------------------------------------------------------------- */

.carousel {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--navy-900);
}

.carousel__track {
  position: absolute;
  inset: 0;
}

.carousel__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 18px 18px 34px;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

.carousel__slide.is-active {
  opacity: 1;
}

.carousel__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 2;
}

.carousel__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.32);
  cursor: pointer;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}

.carousel__dot:hover {
  background: rgba(255, 255, 255, 0.6);
}

.carousel__dot.is-active {
  background: var(--signal);
  transform: scale(1.15);
}

.carousel__count {
  position: absolute;
  top: 12px;
  right: 14px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.5);
  font-variant-numeric: tabular-nums;
}

.detail__inner {
  padding: 26px 26px 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* --------------------------------------------------------------------------
   Media figures
   -------------------------------------------------------------------------- */

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
}

.media {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--navy-900);
}

.media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.media figcaption {
  padding: 14px 18px;
  background: var(--white);
  border-top: 1px solid var(--border);
  font-size: 13.5px;
  color: var(--ink-muted);
}

.detail {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.detail:hover {
  border-color: var(--signal);
  box-shadow: var(--shadow-sm);
}

.detail__code {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--signal-deep);
  margin-bottom: 12px;
}

.detail__title {
  font-size: 18px;
  margin-bottom: 12px;
}

/* 카드 타이틀 바로 아래 들어가는 이미지.
   카드 상단 전체를 덮는 .detail--media 와 달리 본문 흐름 안에 놓인다. */
.detail__figure {
  margin: 0 0 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--navy-900);
}

.detail__figure img {
  width: 100%;
  /* img 의 height 속성이 남아 있으면 aspect-ratio 가 무시되므로 auto 로 풀어준다 */
  height: auto;
  /* 원본(950×534)과 같은 비율이라 잘리는 부분 없이 그대로 들어간다 */
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.detail__body {
  font-size: 14.5px;
  color: var(--ink-muted);
  margin-bottom: 22px;
}

.spec-list {
  display: flex;
  flex-direction: column;
  margin-top: auto;
  border-top: 1px solid var(--border);
}

.spec-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13.5px;
}

.spec-list li:last-child {
  border-bottom: 0;
}

.spec__key {
  color: var(--ink-muted);
}

.spec__val {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--navy-800);
  text-align: right;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------------------------------
   Feature list (bulleted capability lists)
   -------------------------------------------------------------------------- */

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.feature-list li {
  position: relative;
  padding-left: 26px;
  font-size: 14.5px;
  color: var(--ink-muted);
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 9px;
  width: 7px;
  height: 7px;
  border: 1.5px solid var(--signal);
  border-radius: 50%;
}

/* --------------------------------------------------------------------------
   Split panels
   -------------------------------------------------------------------------- */

.split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: center;
}

.panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
}

.panel__title {
  font-size: 17px;
  margin-bottom: 18px;
}

/* --------------------------------------------------------------------------
   Data table
   -------------------------------------------------------------------------- */

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--white);
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 440px;
}

.spec-table th,
.spec-table td {
  padding: 13px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.spec-table thead th {
  background: var(--paper);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-family: var(--font-mono);
}

.spec-table tbody tr:last-child td {
  border-bottom: 0;
}

.spec-table td:last-child {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--navy-800);
  font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------------------------------
   About facts
   -------------------------------------------------------------------------- */

.about-facts {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
}

.about-facts li {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--border);
  font-size: 14.5px;
}

.about-facts li:last-child {
  border-bottom: 0;
}

.fact__key {
  color: var(--ink-muted);
}

.fact__val {
  font-weight: 500;
  text-align: right;
}

/* --------------------------------------------------------------------------
   CTA
   -------------------------------------------------------------------------- */

.cta {
  position: relative;
  padding: 80px 0;
  background: linear-gradient(150deg, var(--navy-950), var(--navy-800));
  overflow: hidden;
}

.cta__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 44px;
  align-items: center;
}

.cta__title {
  font-size: clamp(25px, 3vw, 34px);
  color: var(--white);
  margin-bottom: 14px;
  text-wrap: balance;
}

.cta__lede {
  color: var(--steel-300);
  font-size: 16.5px;
  max-width: 520px;
}

.cta__field {
  position: absolute;
  right: -80px;
  top: 50%;
  transform: translateY(-50%);
  width: 500px;
  opacity: 0.18;
  color: var(--signal);
  pointer-events: none;
}

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Contact variant: signage photo sits beside the address block */
.cta--contact .cta__inner {
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.cta__address {
  margin: 26px 0 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-style: normal;
  color: var(--steel-300);
  line-height: 1.75;
}

.cta__address strong {
  display: block;
  color: var(--white);
  font-weight: 600;
  margin-bottom: 2px;
}

.cta__address a {
  color: var(--steel-300);
  border-bottom: 1px solid rgba(159, 176, 198, 0.3);
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.cta__address a:hover {
  color: var(--signal-bright);
  border-bottom-color: var(--signal);
}

.cta__signage {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.34);
}

.cta__signage img {
  width: 100%;
  height: auto;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--navy-950);
  color: var(--steel-300);
  padding: 60px 0 30px;
  font-size: 14px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand .logo {
  margin-bottom: 18px;
}

.footer-brand p {
  max-width: 320px;
  color: var(--steel-500);
  line-height: 1.7;
}

.footer-col h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--white);
  margin-bottom: 18px;
  font-family: var(--font-mono);
  font-weight: 500;
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col button,
.footer-col a {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.footer-col button:hover,
.footer-col a:hover {
  color: var(--signal-bright);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 24px;
  color: var(--steel-500);
  font-size: 13px;
}

/* --------------------------------------------------------------------------
   Source note
   -------------------------------------------------------------------------- */

.source-note {
  margin-top: 28px;
  font-size: 13px;
  color: var(--steel-500);
}

/* --------------------------------------------------------------------------
   Reveal on scroll
   -------------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html {
    scroll-behavior: auto;
  }
  .hero__tag::before {
    animation: none;
  }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
  .values {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .biz {
    grid-template-columns: 1fr;
  }
  .split {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

@media (max-width: 820px) {
  .nav {
    position: fixed;
    inset: 76px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 8px 24px 20px;
    display: none;
    max-height: calc(100vh - 76px);
    overflow-y: auto;
  }
  .nav.is-open {
    display: flex;
  }
  .nav__link {
    color: var(--ink);
    padding: 13px 0;
    border-bottom: 1px solid var(--border);
    justify-content: space-between;
  }
  .has-menu {
    padding-bottom: 0;
    margin-bottom: 0;
  }
  /* On touch, the submenu is always expanded — hover can't be relied on */
  .menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    border: 0;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
    min-width: 0;
    padding: 4px 0 10px 12px;
  }
  .nav__caret {
    display: none;
  }
  .nav-toggle {
    display: block;
    margin-left: auto;
  }
  .header-actions {
    order: 3;
  }
  .hero {
    padding: 132px 0 76px;
  }
  .page-hero {
    padding: 116px 0 48px;
  }
  /* .cta--contact is more specific than .cta__inner, so it has to be
     unwound by name here or the two columns survive on mobile. */
  .cta__inner,
  .cta--contact .cta__inner {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .section {
    padding: 64px 0;
  }
}

@media (max-width: 560px) {
  .values {
    grid-template-columns: 1fr;
  }
  .footer-top {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 8px;
  }
}
