/* =============================================================
   FM Inc. — Site design system (FM_web 5)
   Color.png direction:
   FM black wordmark · red/black/white outside architecture ·
   charcoal/red inside architecture · navy/blue/cyan guest zone.

   🎨 색상/타이포 변경: 아래 :root 변수만 수정.
   📐 레이아웃 변경: 이 파일 전체.
   ✏️ 텍스트 변경: assets/content.js 에서.
   ============================================================= */

@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&display=swap");

:root {
  /* ── Surface ──────────────────────────────────────────── */
  --bg:           #ffffff;   /* canvas */
  --bg-soft:      #f5f5f5;   /* alternate band, inputs */
  --bg-card:      #ffffff;   /* tiles sit on canvas */
  --bg-elev:      #f5f5f5;   /* hovered card / dropdown */
  --bg-2:         #dddada;   /* architecture outside gray */
  --line:         #d8d4d1;   /* hairline */
  --line-strong:  #050505;   /* focus underline */

  /* ── Text ─────────────────────────────────────────────── */
  --text:         #050505;   /* FM wordmark black */
  --text-dim:     #34343b;   /* inside charcoal */
  --text-mute:    #77716d;   /* outside gray text */

  /* ══════════════════════════════════════════════════════════
     브랜드 색 — 사이트 전체 강조색을 아래 --brand 한 줄로 제어.
     hover·옅은 배경·보조 톤은 color-mix 로 자동 파생됩니다.
     ✅ 색을 바꾸려면 --brand 값만 수정하세요 (CSS·아이콘 전부 따라옴).
     ══════════════════════════════════════════════════════════ */
  --brand:        #e53a17;                                    /* ← 색 변경은 이 한 줄만 */
  --brand-strong: color-mix(in srgb, var(--brand) 82%, #000); /* hover 등 진한 톤 */
  --brand-pale:   color-mix(in srgb, var(--brand) 8%,  #fff); /* 옅은 배경 틴트 */
  --brand-coral:  color-mix(in srgb, var(--brand) 80%, #fff); /* 보조(코랄) 톤 */

  /* Color.png palette — 모두 --brand 에서 파생 (개별 수정 불필요). */
  --outside-red:  var(--brand);
  --inside-red:   var(--brand);
  --inside-coral: var(--brand-coral);
  --inside-black: #000000;
  --charcoal:     #34343b;
  --outside-slate:#3e3f4b;
  --outside-gray: #aaa7a7;
  --guest-navy:   #30304c;
  --guest-blue:   #1354ff;
  --guest-cyan:   #44abd4;

  /* 시맨틱/레거시 강조 토큰 — 전부 --brand 계열을 가리킴. */
  --mint:         var(--brand);
  --mint-soft:    var(--brand-strong);
  --mint-deep:    var(--brand-pale);
  --blue:         var(--brand);
  --purple:       var(--brand);
  --engine:       var(--brand);
  --engine-soft:  var(--brand-pale);
  --engine-deep:  var(--brand-coral);
  --blue-60:      var(--brand-strong);
  --blue-80:      var(--brand-strong);
  --warn:         #f1c21b;

  /* ── Inverse (footer) ─────────────────────────────────── */
  --inverse-bg:   #000000;
  --inverse-bg-1: #34343b;
  --inverse-ink:  #ffffff;
  --inverse-dim:  #d8d4d1;

  /* ── Typography ──────────────────────────────────────── */
  --sans:  "Helvetica Neue", Helvetica, Arial,
           "Pretendard", "Noto Sans KR", sans-serif;
  --display: "Helvetica Neue", Helvetica, Arial,
           "Pretendard", "Noto Sans KR", sans-serif;
  --serif: "Helvetica Neue", Helvetica, Arial,
           "Noto Sans KR", sans-serif;
  --mono:  "IBM Plex Mono", ui-monospace, "Roboto Mono", "Courier New", monospace;

  --pad-x:        clamp(24px, 5vw, 64px);
  --tap:          48px;
  --nav-h:        48px;
  --utility-h:    32px;
  --radius:       0px;
  --radius-soft:  0px;
  --maxw:         1584px;
}

/* 모든 페이지가 :root 의 --brand 하나를 공유합니다.
   (예전의 페이지별 Inside/Guest 팔레트 블록은 --brand 일원화로 제거됨) */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  word-break: keep-all;
  overflow-x: hidden;
  min-height: 100vh;
}
body.is-mobile-sheet-open {
  overflow: hidden;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; padding: 0; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 2px; }

/* ── Reusable text accents ─────────────────────────────── */
.t-mint   { color: var(--mint); }
.t-blue   { color: var(--blue); }
.t-purple { color: var(--purple); }
.t-mute   { color: var(--text-mute); }
.t-dim    { color: var(--text-dim); }
.t-italic { font-style: normal; font-weight: 300; }
.mono     { font-family: var(--mono); letter-spacing: 0; }
.eyebrow  {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.16px;
  text-transform: none;
  color: var(--text-dim);
}

/* =============================================================
   TOPBAR / NAV — sticky white (Carbon top-nav)
   ============================================================= */
.topbar {
  position: sticky; top: 0; z-index: 200;
  display: grid;
  grid-template-columns: minmax(200px, auto) 1fr minmax(64px, auto);
  align-items: center;
  gap: 24px;
  padding: 0 var(--pad-x);
  height: var(--nav-h);
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.tb-brand { display: flex; align-items: baseline; gap: 10px; line-height: 1; }
.tb-brand-name {
  font-family: var(--display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.04em;
  color: var(--text);
}
.tb-brand-tag {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.32px;
  color: var(--text-mute);
}

/* ── Primary nav ──────────────────────────────────────── */
.tb-nav {
  display: flex; justify-content: flex-start; align-items: stretch;
  height: 100%;
}
.tb-item {
  position: relative;
  display: inline-flex; align-items: stretch;
  height: 100%;
}
.tb-link {
  display: inline-flex; align-items: center; justify-content: center;
  height: 100%; padding: 0 16px;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.16px;
  color: var(--text-dim);
  border-bottom: 2px solid transparent;
  transition: color .15s ease, border-color .15s ease, background .15s ease;
  white-space: nowrap;
}
.tb-link:hover { color: var(--text); background: var(--bg-soft); }
.tb-item.is-active > .tb-link,
.tb-link.is-active {
  color: var(--text);
  font-weight: 600;
  border-bottom-color: var(--mint);
  background: transparent;
}

/* ── Dropdown panel ───────────────────────────────────── */
.tb-dropdown {
  position: absolute;
  top: 100%; left: 0;
  transform: translateY(-4px);
  min-width: 220px;
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 4px 0;
  opacity: 0; pointer-events: none;
  transition: opacity .15s ease, transform .15s ease;
  z-index: 220;
}
.tb-item:hover  > .tb-dropdown,
.tb-item:focus-within > .tb-dropdown,
.tb-item.is-open > .tb-dropdown {
  opacity: 1; pointer-events: auto;
  transform: translateY(0);
}
.tb-dropdown a {
  display: block;
  padding: 12px 16px;
  font-size: 14px;
  letter-spacing: 0.16px;
  color: var(--text-dim);
  white-space: nowrap;
  border-left: 2px solid transparent;
  transition: color .12s ease, background .12s ease, border-color .12s ease;
}
.tb-dropdown a:hover,
.tb-dropdown a:focus-visible {
  color: var(--text);
  background: var(--bg-soft);
  border-left-color: var(--mint);
}
.tb-dropdown.is-active { background: var(--bg); border-color: var(--line); }
.tb-dropdown.is-active a { color: var(--text); font-weight: 600; }
.tb-dropdown.is-active a:hover { background: var(--bg-soft); color: var(--text); }

/* ── Language switcher ────────────────────────────────── */
.tb-lang {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.32px;
  color: var(--text-mute);
  display: inline-flex; gap: 6px; align-items: center;
}
.tb-right {
  display: inline-flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  justify-self: end;
}
.tb-lang a { transition: color .15s ease; padding: 4px; }
.tb-lang a:hover, .tb-lang a.is-current { color: var(--mint); }
.tb-lang .sep { color: var(--line); }

/* ── decorative wedge removed in Carbon ───────────────── */
.tb-wedge { display: none; }

/* ── Mobile burger ────────────────────────────────────── */
.tb-burger { display: none; }

/* =============================================================
   HERO — white canvas, light-weight display headline
   ============================================================= */
.hero {
  position: relative;
  padding: clamp(72px, 12vh, 128px) var(--pad-x) clamp(72px, 12vh, 128px);
  background: var(--bg);
  overflow: hidden;
  min-height: clamp(480px, 72vh, 720px);
  display: flex; flex-direction: column; justify-content: center;
  border-bottom: 1px solid var(--line);
}
.hero::before { display: none;
  content: "";
  position: absolute;
  right: var(--pad-x);
  top: clamp(72px, 12vh, 128px);
  width: clamp(260px, 32vw, 520px);
  height: clamp(132px, 15vw, 210px);
  border: 1px solid var(--text);
  background:
    linear-gradient(90deg, var(--outside-red) 0 50%, #ffffff 50% 100%) 0 0 / 100% 50% no-repeat,
    linear-gradient(90deg, var(--outside-slate) 0 50%, var(--outside-gray) 50% 100%) 0 100% / 100% 50% no-repeat;
  opacity: .96;
}
.hero::after { display: none;
  content: "";
  position: absolute;
  right: calc(var(--pad-x) + clamp(92px, 10vw, 160px));
  top: calc(clamp(72px, 12vh, 128px) + clamp(132px, 15vw, 210px) + 32px);
  width: clamp(220px, 28vw, 460px);
  height: clamp(48px, 6vw, 78px);
  background:
    linear-gradient(90deg, var(--brand-strong) 0 50%, var(--brand) 50% 75%, var(--brand-coral) 75% 100%);
  opacity: .95;
}
.hero-half-circle { display: none; }

.hero-inner { position: relative; z-index: 1; max-width: 1000px; }
.hero-title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(52px, 8vw, 88px);
  line-height: 1.08;
  letter-spacing: -0.06em;
  color: var(--text);
  margin-bottom: 24px;
}
.hero-sub {
  font-family: var(--sans);
  font-style: normal;
  font-weight: 400;
  font-size: clamp(20px, 2.4vw, 28px);
  line-height: 1.4;
  letter-spacing: 0;
  color: var(--text-dim);
  margin-bottom: 16px;
}
.hero-desc {
  font-size: 18px;
  line-height: 1.5;
  color: var(--text-dim);
  margin-bottom: 28px;
  max-width: 58ch;
}
.hero-rule {
  display: block;
  height: 1px;
  width: 100%;
  max-width: 560px;
  background: var(--line);
  margin-bottom: 28px;
}
.hero-stack {
  display: flex; flex-direction: column; gap: 3px;
  width: fit-content;
  max-width: 560px;
  font-family: var(--sans);
  font-style: normal;
  font-weight: 400;
  font-size: 16px;
  letter-spacing: 0.16px;
}
.hero-stack .ln-mint,
.hero-stack .ln-blue,
.hero-stack .ln-purple { color: var(--text); }
.hero-stack a {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: var(--tap);
  padding: 12px 16px;
  background: var(--bg);
  border: 1px solid var(--line);
  transition: background .15s ease, color .15s ease;
}
.hero-stack .stack-engine {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 2px 8px;
  border: 1px solid currentColor;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--mint);
}
.hero-stack a.ln-blue .stack-engine {
  color: var(--inside-red);
}
.hero-stack a.ln-purple .stack-engine {
  color: var(--inside-red);
}
.hero-stack a em {
  min-width: 0;
  font-style: normal;
  overflow-wrap: anywhere;
}
.hero-stack a:hover { background: var(--mint); color: var(--inverse-ink); }
.hero-stack a.ln-blue:hover { background: var(--inside-red); }
.hero-stack a.ln-purple:hover { background: var(--inside-red); }
.hero-stack a:hover .stack-engine { color: var(--inverse-ink); }
.hero-stack a:hover .ln-mint,
.hero-stack a:hover .ln-blue,
.hero-stack a:hover .ln-purple { color: var(--inverse-ink); }
.hero-stack a::after {
  content: "→";
  grid-column: 3;
  font-style: normal;
  font-family: var(--sans);
  font-weight: 400;
  opacity: .5; transition: opacity .15s ease;
}
.hero-stack a:hover::after { opacity: 1; }

/* ── Page-hero variant (sub-pages) ────────────────────── */
.page-hero {
  position: relative;
  padding: clamp(56px, 9vh, 96px) var(--pad-x) clamp(40px, 6vh, 72px);
  background:
    linear-gradient(90deg, var(--mint) 0 4px, transparent 4px 100%),
    linear-gradient(135deg, var(--mint-deep) 0%, transparent 42%),
    var(--bg);
  border-bottom: 1px solid var(--line);
}
.page-hero .crumb {
  font-family: var(--sans);
  font-size: 14px;
  letter-spacing: 0.16px;
  color: var(--text-mute);
  text-transform: none;
  margin-bottom: 28px;
}
.page-hero .crumb a:hover { color: var(--mint); }
.page-hero .crumb .sep { color: var(--text-mute); margin: 0 8px; }
.page-hero h1 {
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(36px, 6vw, 60px);
  line-height: 1.12;
  letter-spacing: -0.4px;
  max-width: 22ch;
  margin-bottom: 20px;
}
.page-hero h1 .accent,
.page-hero h1 .accent.blue,
.page-hero h1 .accent.purple { color: var(--mint); font-style: normal; }
.page-hero p.lede {
  font-size: 18px;
  line-height: 1.5;
  color: var(--text-dim);
  max-width: 64ch;
}

body[data-page-key="dam"] .page-hero,
body[data-page-key="sam"] .page-hero {
  padding-top: clamp(52px, 8vh, 88px);
  border-left: 4px solid var(--engine);
}
body[data-page-key="dam"] .page-hero p.lede,
body[data-page-key="sam"] .page-hero p.lede {
  max-width: 76ch;
  padding: 16px 20px;
  background: var(--bg-soft);
  border-left: 4px solid var(--engine);
}

/* =============================================================
   SECTIONS
   ============================================================= */
.section {
  --section-bg: var(--bg);
  padding: clamp(64px, 9vh, 96px) var(--pad-x);
  border-bottom: 1px solid var(--line);
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(140px, 220px) minmax(0, 1fr);
  column-gap: clamp(32px, 5vw, 88px);
  row-gap: 18px;
  align-items: start;
  width: 100%;
}
.section.alt {
  --section-bg: var(--bg-soft);
  background: var(--bg-soft);
  box-shadow: 0 0 0 100vmax var(--bg-soft);
  clip-path: inset(0 -100vmax);
}
.grid-filler {
  background: var(--section-bg);
  pointer-events: none;
}
.section.tight  { padding-top: 48px; padding-bottom: 48px; }
.section.flush {
  max-width: none;
  padding: 0;
  column-gap: 0;
  row-gap: 0;
}
.section.flush > .image-carousel {
  grid-column: 1 / -1;
}
.section > :not(.section-eyebrow) {
  min-width: 0;
}
.section > h2.title,
.section > .section-lede,
.section > .cols-2,
.section > .pillars,
.section > .card-grid,
.section > .dl,
.section > .stats,
.section > .product-showcase,
.section > .object-grid,
.section > .image-carousel,
.section > .video-embed,
.section > .timeline,
.section > .paper-list,
.section > .cs,
.section > .history,
.section > .channels,
.section > .hq-grid,
.section > .form {
  grid-column: 2;
  width: 100%;
}
.section > .history {
  grid-column: 1 / -1;
}
.section > .history-title {
  grid-column: 1 / -1;
  width: 100%;
}
.history-section > .section-eyebrow {
  grid-column: 1;
  grid-row: 1;
}
.history-section > .history-title {
  grid-column: 2;
  grid-row: 1;
}
.history-section > .history {
  grid-column: 1 / -1;
  grid-row: 2;
}
.history-section.no-history-title > .history {
  margin-top: clamp(64px, 7vw, 92px);
}
.section h2.title {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(32px, 4.4vw, 42px);
  line-height: 1.2;
  letter-spacing: 0;
  margin-bottom: 6px;
  max-width: 24ch;
  text-align: left;
  overflow-wrap: anywhere;
}
.section h2.title .accent { color: var(--mint); font-style: normal; }
.section .section-eyebrow {
  display: block;
  grid-column: 1;
  grid-row: 1 / span 3;
  width: 100%;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.16px;
  color: var(--mint);
  text-transform: none;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  margin-bottom: 0;
}
.section .section-lede {
  font-size: 18px;
  line-height: 1.5;
  color: var(--text-dim);
  max-width: 66ch;
  margin-bottom: 18px;
  overflow-wrap: break-word;
}
.value-engine-visual {
  grid-column: 2;
  width: 80%;
  justify-self: start;
  transform: translateX(-2%);
  margin: 0 0 clamp(10px, 1.6vw, 18px);
}
.value-engine-visual img {
  display: block;
  width: 100%;
  max-height: 620px;
  object-fit: contain;
}

body[data-page-key="dam"] .section .section-eyebrow,
body[data-page-key="sam"] .section .section-eyebrow {
  color: var(--engine);
}
body[data-page-key="dam"] .section h2.title .accent,
body[data-page-key="sam"] .section h2.title .accent {
  color: var(--engine);
}

/* ── Two-column shells ────────────────────────────────── */
.cols-2 {
  display: grid;
  grid-template-columns: minmax(220px, .86fr) minmax(0, 1.14fr);
  gap: clamp(32px, 4vw, 80px);
  align-items: start;
  min-width: 0;
}
.section > .two-col-image {
  grid-column: 2;
  width: 100%;
  margin: 24px 0 0;
}
.section > .two-col-images {
  grid-column: 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
  margin: 24px 0 0;
}
.two-col-images .two-col-image {
  margin: 0;
}
.two-col-image img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 560px;
  object-fit: contain;
}
.cols-2 .two-col-image {
  margin: 0 0 28px;
}
.cols-2 .two-col-image img {
  max-height: 460px;
  object-fit: cover;
}
.cols-2 > .cap {
  font-family: var(--sans);
  font-size: 14px;
  letter-spacing: 0.16px;
  color: var(--text-mute);
  text-transform: none;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
body[data-page-key="dam"] .cols-2 > div:first-child,
body[data-page-key="sam"] .cols-2 > div:first-child {
  padding-left: 20px;
  border-left: 4px solid var(--engine);
}
body[data-page-key="dam"] .cols-2 > div:last-child,
body[data-page-key="sam"] .cols-2 > div:last-child {
  padding: 24px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-top: 2px solid var(--engine);
}
body[data-page-key="dam"] .cols-2 > div:last-child p,
body[data-page-key="sam"] .cols-2 > div:last-child p { margin: 0; }

/* =============================================================
   PILLARS / FEATURE GRID
   ============================================================= */
.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  min-width: 0;
}
.pillar {
  padding: 24px;
  background: var(--bg-card);
  position: relative;
  display: flex; flex-direction: column; gap: 14px;
  min-height: 248px;
  min-width: 0;
  border-top: 2px solid transparent;
  transition: background .15s ease, border-color .15s ease;
}
.pillar:hover { background: var(--bg-soft); border-top-color: var(--mint); }
.pillar .no {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.16px;
  color: var(--mint);
}
.pillar h3 {
  font-family: var(--sans);
  font-style: normal;
  font-weight: 400;
  font-size: 24px;
  line-height: 1.33;
  letter-spacing: 0;
  color: var(--text);
}
.pillar.mint h3, .pillar.blue h3, .pillar.purple h3 { color: var(--text); }
.pillar .desc {
  color: var(--text-dim);
  font-size: 16px;
  line-height: 1.5;
  flex: 1;
  overflow-wrap: break-word;
}
.pillar .link {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--sans); font-size: 14px; font-weight: 400;
  letter-spacing: 0.16px; text-transform: none;
  color: var(--mint);
  padding-top: 12px;
  transition: gap .15s ease;
}
.pillar:hover .link { gap: 12px; }

body[data-page-key="dam"] .pillar,
body[data-page-key="sam"] .pillar {
  border-top: 2px solid var(--engine);
}
body[data-page-key="dam"] .pillar .no,
body[data-page-key="sam"] .pillar .no { color: var(--engine); }

/* ── Card grids ───────────────────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  min-width: 0;
}
.card-grid .card {
  background: var(--bg-card);
  padding: 24px;
  display: flex; flex-direction: column; gap: 14px;
  transition: background .15s ease;
  min-height: 228px;
  min-width: 0;
}
.card-grid .card:hover { background: var(--bg-soft); }
.card-grid.value-cards {
  grid-column: 1 / -1;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(22px, 3vw, 32px);
  margin-top: clamp(56px, 7vw, 88px);
  background: transparent;
  border: 0;
}
.value-cards-section > h2.title {
  grid-column: 1 / -1;
  justify-self: center;
  max-width: none;
  margin-bottom: 0;
  text-align: center;
}
.card-grid.value-cards .card {
  min-height: 300px;
  padding: clamp(28px, 3vw, 34px);
  gap: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--bg-card);
}
.card-grid.value-cards .card:hover {
  background: var(--bg-soft);
}
.value-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--mint);
}
.card-grid.value-cards .card h3 {
  font-weight: 700;
  font-size: 20px;
  line-height: 1.3;
}
.card-grid.value-cards .card .kr {
  margin-top: 24px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.65;
  color: var(--text-dim);
}
.card-grid.sustainability-cards {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}
.card-grid.sustainability-cards .card {
  grid-column: span 2;
  position: relative;
  min-height: 184px;
  padding-right: clamp(48px, 5vw, 64px);
}
.card-grid.sustainability-cards .card:nth-child(4) {
  grid-column: 2 / span 2;
}
.card-grid.sustainability-cards .card h3 {
  margin-top: 8px;
}
.card-grid.sustainability-cards .card .meta {
  position: absolute;
  top: clamp(28px, 3vw, 34px);
  right: clamp(28px, 3vw, 34px);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16px;
  color: var(--text-mute);
}
.card-grid.sustainability-cards .card .kr {
  margin-top: 8px;
}
.card .badge {
  display: inline-flex; align-items: center;
  font-family: var(--sans); font-size: 12px; font-weight: 400;
  letter-spacing: 0.32px; text-transform: none;
  color: var(--mint);
  padding: 2px 8px;
  border: 1px solid var(--mint);
  width: fit-content;
}
.card .badge.blue   { color: var(--inside-red); border-color: var(--inside-red); }
.card .badge.purple { color: var(--inside-red); border-color: var(--inside-red); }
.card h3 {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 20px;
  line-height: 1.4;
  letter-spacing: 0;
  color: var(--text);
  overflow-wrap: anywhere;
}
.card h3 em { color: var(--mint); font-style: normal; }
.card .kr { color: var(--text-dim); font-size: 16px; line-height: 1.5; overflow-wrap: break-word; }
.card .meta {
  margin-top: auto;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.32px;
  color: var(--text-mute);
  text-transform: none;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.card .more {
  display: inline-flex; gap: 8px;
  font-family: var(--sans); font-size: 14px;
  letter-spacing: 0.16px; text-transform: none;
  color: var(--mint);
  transition: gap .15s ease;
}
.card:hover .more { gap: 12px; }

.object-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  min-width: 0;
}
.object-grid.cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.object-card {
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 8px;
  min-width: 0;
}
.object-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.object-grid-large {
  gap: 28px;
}
.object-grid-large .object-card {
  background: var(--bg-card);
  border-color: var(--line);
  border-radius: 22px;
}
.object-grid-large .object-card img {
  aspect-ratio: 47 / 42;
  object-fit: contain;
  background: var(--bg-card);
}
.object-grid-large .object-card figcaption {
  padding: 24px 18px 30px;
  font-size: 18px;
  color: var(--text);
}
.object-grid-patent {
  grid-template-columns: minmax(280px, 420px);
  justify-content: center;
}
.object-grid-patent .object-card {
  background: var(--bg-card);
  border-color: var(--line);
  border-radius: 8px;
  padding: clamp(14px, 2vw, 22px);
}
.object-grid-patent .object-card img {
  aspect-ratio: 351 / 496;
  object-fit: contain;
  background: var(--bg-card);
}
.object-card figcaption {
  padding: 14px 16px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  color: var(--text);
}

.image-carousel {
  grid-column: 1 / -1;
  overflow: hidden;
  width: 100%;
  min-width: 0;
  background: var(--bg-card);
}
.section > .image-carousel {
  grid-column: 1 / -1;
}
.image-carousel-track {
  display: flex;
  transition: transform .55s ease;
  will-change: transform;
}
.image-carousel-card {
  flex: 0 0 calc(100% / 3);
  min-width: 0;
  background: var(--bg-card);
}
.image-carousel-card img {
  display: block;
  width: 100%;
  height: clamp(180px, 16vw, 300px);
  object-fit: cover;
}

/* =============================================================
   VIDEO EMBED
   ============================================================= */
.video-section {
  background: var(--section-bg);
  box-shadow: 0 0 0 100vmax var(--section-bg);
  clip-path: inset(0 -100vmax);
  border-bottom-color: var(--line);
}
.video-embed {
  display: grid;
  gap: clamp(28px, 4vw, 48px);
  justify-items: center;
}
.video-embed h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(32px, 5vw, 44px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0;
  text-align: center;
  color: var(--text);
}
.video-frame {
  width: min(100%, 1000px);
  aspect-ratio: 16 / 9;
  background: var(--bg-card);
}
.video-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* =============================================================
   DEFINITION LIST
   ============================================================= */
.dl {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 0;
  border-top: 1px solid var(--line);
  min-width: 0;
}
.dl > div { display: contents; }
.dl dt, .dl dd {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.dl dt {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.16px;
  color: var(--text);
  text-transform: none;
  padding-right: 28px;
}
.dl > div.has-rows > dt {
  display: flex;
  align-items: center;
}
.dl dd { color: var(--text-dim); line-height: 1.5; font-size: 16px; overflow-wrap: break-word; }
.dl dd a { color: var(--mint); border-bottom: 1px solid var(--mint); }
.dl-sublist {
  display: grid;
  width: 100%;
}
.dl-subrow {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.dl-subrow:first-child { padding-top: 0; }
.dl-subrow:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}
.dl-subdt {
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
}
.dl-subdd { color: var(--text-dim); }
.dl dd.has-image {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.dl-item-image {
  display: block;
  width: clamp(100px, 20vw, 100px);
  height: auto;
  flex: 0 0 auto;
  object-fit: contain;
}

.dl dt:has(+ dd.has-image) {
  display: flex;
  align-items: center;
}

.dl.dl-feature-cards {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  border-top: 0;
}
.dl.dl-feature-cards.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.dl.dl-feature-cards > div {
  display: grid;
  grid-template-rows: auto auto;
  place-items: center;
  align-content: center;
  row-gap: 8px;
  min-height: 150px;
  padding: 34px 42px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 18px;
}
.dl.dl-feature-cards dt,
.dl.dl-feature-cards dd {
  padding: 0;
  border-bottom: 0;
}
.dl.dl-feature-cards dt {
  grid-row: 2;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.28;
  color: var(--text);
  padding-right: 0;
  text-align: center;
}
.dl-feature-no {
  grid-row: 1;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-mute);
  line-height: 1;
}
body[data-page-key="dam"] .dl,
body[data-page-key="sam"] .dl {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-top: 1px solid var(--line);
}
body[data-page-key="dam"] .dl > div,
body[data-page-key="sam"] .dl > div {
  display: grid;
  grid-template-columns: minmax(210px, .7fr) 1.7fr;
  background: var(--bg-card);
  border-left: 2px solid var(--engine);
}
body[data-page-key="dam"] .dl dt,
body[data-page-key="dam"] .dl dd,
body[data-page-key="sam"] .dl dt,
body[data-page-key="sam"] .dl dd {
  border-bottom: 0;
  padding: 20px 24px;
}
body[data-page-key="dam"] .dl dt,
body[data-page-key="sam"] .dl dt {
  color: var(--engine);
  background: var(--bg-soft);
}

/* =============================================================
   STAT ROW
   ============================================================= */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  min-width: 0;
}
.stat {
  padding: 28px 24px;
  background: var(--bg-card);
  min-height: 140px;
  min-width: 0;
}
.stat .v {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 48px;
  line-height: 1.1;
  letter-spacing: -0.4px;
  color: var(--mint);
}
.stat .l {
  font-family: var(--sans);
  font-size: 14px;
  letter-spacing: 0.16px;
  color: var(--text-mute);
  text-transform: none;
  margin-top: 8px;
}

/* =============================================================
   CTA BANNER — IBM Blue full-bleed panel
   ============================================================= */
.cta {
  position: relative;
  padding: clamp(56px, 9vh, 96px) var(--pad-x);
   background:
    linear-gradient(90deg, var(--mint) 0 45%, var(--charcoal) 64% 100%);
  color: var(--inverse-ink);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: center;
}
.cta h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.2;
  letter-spacing: 0;
  max-width: 22ch;
  color: var(--inverse-ink);
}
.cta h2 em { color: var(--inverse-ink); font-style: normal; font-weight: 600; }
.cta-actions { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  width: 160px;
  min-width: 160px;
  padding: 12px 16px;
  font-family: var(--sans);
  font-size: 14px;
  letter-spacing: 0.16px;
  text-transform: none;
  font-weight: 400;
  min-height: var(--tap);
  border: 1px solid var(--mint);
  color: var(--mint);
  background: var(--bg);
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.btn:hover { background: var(--bg-soft); }
.btn.solid { background: var(--mint); color: var(--inverse-ink); border-color: var(--mint); }
.btn.solid:hover { background: var(--mint-soft); border-color: var(--mint-soft); }
.btn.ghost { border-color: var(--line); color: var(--text-dim); background: transparent; }
.btn.ghost:hover { border-color: var(--text); color: var(--text); background: transparent; }

/* On the blue CTA banner, recolor buttons for contrast */
.cta .btn.solid { background: var(--bg); color: var(--mint); border-color: var(--bg); }
.cta .btn.solid:hover { background: var(--bg-soft); border-color: var(--bg-soft); }
.cta .btn.ghost { border-color: rgba(255,255,255,0.6); color: var(--inverse-ink); }
.cta .btn.ghost:hover { border-color: var(--inverse-ink); color: var(--inverse-ink); background: rgba(255,255,255,0.08); }

body[data-page-key="dam"] .cta,
body[data-page-key="sam"] .cta {
    background:
    linear-gradient(90deg, var(--mint) 0 45%, var(--charcoal) 64% 100%);
}
body[data-page-key="dam"] .cta h2 em,
body[data-page-key="sam"] .cta h2 em { color: var(--inverse-ink); }

body[data-page-key="company"] .cta,
body[data-page-key="about"] .cta,
body[data-page-key="edge-data-center"] .cta,
body[data-page-key="playground"] .cta,
body[data-page-key="esg-academy"] .cta,
body[data-page-key="contact"] .cta {
   background:
    linear-gradient(90deg, var(--mint) 0 45%, var(--charcoal) 64% 100%);
}

/* =============================================================
   FORM (Contact) — Carbon inputs (surface-1 + bottom rule)
   ============================================================= */
.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 32px;
  min-width: 0;
}
.form .field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.form .field.full { grid-column: 1 / -1; }
.form label {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.32px;
  text-transform: none;
  color: var(--text-dim);
}
.form input,
.form select,
.form textarea {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 11px 16px;
  background: var(--bg-soft);
  border: 0;
  border-bottom: 1px solid var(--text-mute);
  color: var(--text);
  font-size: 16px;
  letter-spacing: 0.16px;
  min-height: var(--tap);
  transition: border-color .15s ease, background .15s ease;
}
.form input:focus,
.form select:focus,
.form textarea:focus {
  border-bottom: 2px solid var(--mint);
  outline: 2px solid transparent;
}
.form textarea { resize: vertical; min-height: 120px; }
.form .consent {
  grid-column: 1 / -1;
  display: inline-flex; align-items: center; gap: 8px;
  width: fit-content;
  font-size: 14px; color: var(--text-dim); line-height: 1.5;
  cursor: pointer;
}
.form .consent input[type="checkbox"] {
  flex: 0 0 auto;
  width: auto;
  min-height: auto;
  padding: 0;
  margin: 0;
  background: transparent;
  border: 0;
  accent-color: var(--mint);
}
.form .actions {
  grid-column: 1 / -1;
  display: flex; gap: 16px; align-items: center; flex-wrap: wrap;
}
.form .output { font-family: var(--sans); font-size: 14px; color: var(--mint); }

/* =============================================================
   FOOTER — charcoal (the only inverted surface)
   ============================================================= */
.footer {
  background: var(--inverse-bg);
  color: var(--inverse-dim);
  padding: 64px var(--pad-x) 32px;
  border-top: 6px solid var(--mint);
}
.ft-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--inverse-bg-1);
}
.ft-brand .name {
  font-family: var(--display);
  font-weight: 800;
  font-size: 28px;
  letter-spacing: -0.04em;
  color: var(--inverse-ink);
  margin-bottom: 8px;
}
.ft-brand .tag {
  font-family: var(--sans);
  color: var(--inverse-dim);
  font-size: 12px;
  letter-spacing: 0.32px;
  margin-bottom: 20px;
}
.ft-brand .desc {
  font-size: 14px;
  color: var(--inverse-dim);
  max-width: 38ch;
  line-height: 1.5;
}
.ft-col h4 {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.16px;
  color: var(--inverse-ink);
  text-transform: none;
  margin-bottom: 16px;
}
.ft-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.ft-col a {
  font-size: 14px;
  letter-spacing: 0.16px;
  color: var(--inverse-dim);
  transition: color .15s ease;
}
.ft-col a:hover { color: var(--inverse-ink); }
.ft-bot {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding-top: 24px;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.32px;
  color: var(--text-mute);
  text-transform: none;
  text-align: center;
}
.ft-legal {
  display: inline-flex;
  gap: 18px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}
.ft-legal-link {
  color: var(--inverse-ink);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16px;
  transition: color .15s ease;
}
.ft-legal-link:hover,
.ft-legal-link:focus-visible {
  color: var(--mint);
}
body.is-legal-modal-open {
  overflow: hidden;
}
.legal-modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: none;
  place-items: center;
  padding: 24px;
}
.legal-modal.is-open {
  display: grid;
}
.legal-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .72);
}
.legal-modal-panel {
  position: relative;
  width: min(100%, 720px);
  max-height: min(78vh, 640px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  background: #2f2f2f;
  color: var(--inverse-dim);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, .48);
}
.legal-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  background: #242424;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.legal-modal-head h2 {
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 700;
  color: var(--inverse-ink);
  letter-spacing: 0;
}
.legal-modal-close {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: var(--inverse-ink);
  font-size: 28px;
  line-height: 1;
  transition: color .15s ease, background .15s ease;
}
.legal-modal-close:hover,
.legal-modal-close:focus-visible {
  color: var(--mint);
  background: rgba(255, 255, 255, .06);
}
.legal-modal-body {
  overflow: auto;
  padding: 24px 22px 28px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--inverse-dim);
}
.legal-modal-body p + p,
.legal-modal-body p + h3 {
  margin-top: 16px;
}
.legal-modal-body h3 {
  margin-top: 20px;
  font-size: 14px;
  font-weight: 700;
  color: var(--inverse-ink);
}
.legal-modal-body strong {
  color: var(--inverse-ink);
}
.legal-modal-body::-webkit-scrollbar {
  width: 12px;
}
.legal-modal-body::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, .08);
}
.legal-modal-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, .5);
  border: 3px solid #2f2f2f;
}

/* =============================================================
   PAGE-SPECIFIC BLOCKS
   ============================================================= */

/* ── Home: 5-product at-a-glance grid ──────────────────── */
.product-showcase {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  min-width: 0;
}
.pc-card {
  display: flex; flex-direction: column;
  background: var(--bg-card);
  padding: clamp(24px, 2vw, 32px) clamp(16px, 1.5vw, 24px) 24px;
  min-height: 360px;
  min-width: 0;
  position: relative;
  overflow: hidden;
  transition: background .15s ease;
}
.pc-card::before {
  content: ""; position: absolute; left: 0; top: 0;
  width: 100%; height: 2px;
  background: var(--bar, var(--mint));
  transform: scaleX(0); transform-origin: left;
  transition: transform .25s ease;
}
.pc-card:hover { background: var(--bg-soft); }
.pc-card:hover::before { transform: scaleX(1); }
.pc-card.blue   { --bar: var(--inside-red); }
.pc-card.mint   { --bar: var(--mint); }
.pc-card.purple { --bar: var(--inside-red); }
.pc-engine {
  font-family: var(--sans);
  font-size: clamp(12px, .9vw, 14px); font-weight: 400; letter-spacing: 0.16px; text-transform: none;
  color: var(--bar, var(--mint));
  margin-bottom: 12px;
  overflow-wrap: break-word;
}
.pc-name {
  font-family: var(--sans);
  font-weight: 300; font-size: clamp(28px, 2vw, 32px); line-height: 1.2;
  letter-spacing: 0;
  color: var(--text);
  margin-bottom: 4px;
  overflow-wrap: anywhere;
}
.pc-card.blue .pc-name, .pc-card.mint .pc-name, .pc-card.purple .pc-name { color: var(--text); }
.pc-tag { font-size: clamp(14px, 1vw, 16px); line-height: 1.45; color: var(--text-dim); margin-bottom: 20px; overflow-wrap: break-word; }
.pc-glyph {
  height: 76px; display: flex; align-items: center; justify-content: center;
  margin: 8px 0 20px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.pc-glyph svg { width: 100%; height: 100%; opacity: 1; stroke: var(--bar, var(--mint)); }
.pc-what { font-size: clamp(14px, 1vw, 16px); line-height: 1.5; color: var(--text-dim); margin-bottom: 16px; flex: 1; overflow-wrap: break-word; }
.pc-who {
  display: block;
  font-family: var(--sans);
  font-size: 12px; letter-spacing: 0.32px;
  color: var(--text-mute); text-transform: none;
  padding-top: 12px; border-top: 1px solid var(--line); margin-bottom: 12px;
  overflow-wrap: anywhere;
}
.pc-cta {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--sans);
  font-size: 14px; letter-spacing: 0.16px; text-transform: none;
  color: var(--bar, var(--mint));
  transition: gap .15s ease;
  width: fit-content;
}
.pc-card:hover .pc-cta { gap: 12px; }
@media (max-width: 899px)  { .product-showcase { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pc-card { min-height: 320px; } }
@media (max-width: 899px)  { .card-grid.value-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 899px)  {
  .card-grid.sustainability-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-grid.sustainability-cards .card,
  .card-grid.sustainability-cards .card:nth-child(4) { grid-column: auto; }
}
@media (max-width: 899px)  { .object-grid, .object-grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 899px)  { .dl.dl-feature-cards.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px)  { .product-showcase { grid-template-columns: minmax(0, 1fr); } .pc-card { min-height: 0; padding: 24px; } }
@media (max-width: 599px)  { .card-grid.value-cards { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 599px)  { .card-grid.sustainability-cards { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 599px)  { .object-grid, .object-grid.cols-4 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 599px)  { .dl.dl-feature-cards.cols-3 { grid-template-columns: minmax(0, 1fr); } }

/* ── News: timeline ────────────────────────────────────── */
.timeline { list-style: none; border-top: 1px solid var(--line); }
.timeline > li {
  display: grid; grid-template-columns: 160px 1fr; gap: 32px;
  padding: 28px 0; border-bottom: 1px solid var(--line);
  min-width: 0;
}
.timeline .date {
  font-family: var(--sans); font-size: 14px; font-weight: 600; letter-spacing: 0.16px;
  color: var(--mint); padding-top: 4px;
}
.timeline h3 {
  font-family: var(--sans); font-weight: 400; font-size: 24px;
  line-height: 1.33; letter-spacing: 0; margin-bottom: 8px;
}
.timeline p { color: var(--text-dim); font-size: 16px; line-height: 1.5; }
@media (max-width: 719px) { .timeline > li { grid-template-columns: 1fr; gap: 8px; } }

/* ── Research: paper list ──────────────────────────────── */
.paper {
  display: grid; grid-template-columns: 80px 1fr auto; gap: 24px; align-items: center;
  padding: 24px 0; border-bottom: 1px solid var(--line);
  transition: background .15s ease, padding .15s ease;
  min-width: 0;
}
.paper:hover { background: var(--bg-soft); padding-left: 16px; padding-right: 16px; }
.paper .yr {
  font-family: var(--sans); font-weight: 300; font-size: 32px;
  color: var(--mint); font-style: normal; letter-spacing: -0.4px;
}
.paper h3 {
  font-family: var(--sans); font-weight: 400; font-size: 20px;
  line-height: 1.4; letter-spacing: 0; margin-bottom: 4px;
}
.paper .meta {
  font-family: var(--sans); font-size: 14px; letter-spacing: 0.16px;
  color: var(--text-mute); text-transform: none;
}
.paper .dl-cta {
  font-family: var(--sans); font-size: 14px; letter-spacing: 0.16px;
  color: var(--mint); text-transform: none;
}

/* ── Case study ───────────────────────────────────────── */
.cs {
  display: grid; grid-template-columns: 1fr 2fr; gap: 48px;
  padding: 56px 0; border-bottom: 1px solid var(--line);
  min-width: 0;
}
.cs:first-of-type { padding-top: 24px; }
.cs .cs-meta { font-family: var(--sans); font-size: 14px; letter-spacing: 0.16px; color: var(--text-mute); text-transform: none; margin-bottom: 12px; }
.cs h3 { font-family: var(--sans); font-weight: 300; font-size: 32px; line-height: 1.25; letter-spacing: 0; margin-bottom: 12px; }
.cs h3 em { color: var(--mint); font-style: normal; }
.cs .cs-num { font-family: var(--sans); font-weight: 300; font-size: 60px; color: var(--mint); font-style: normal; line-height: 1.1; letter-spacing: -0.4px; }
.cs .cs-body p { color: var(--text-dim); line-height: 1.5; font-size: 16px; margin-bottom: 14px; }
.cs .kpi { display: flex; gap: 32px; flex-wrap: wrap; padding-top: 16px; border-top: 1px solid var(--line); margin-top: 20px; }
.cs .kpi div { display: flex; flex-direction: column; }
.cs .kpi .v { font-family: var(--sans); font-weight: 300; font-size: 32px; color: var(--mint); font-style: normal; line-height: 1.1; }
.cs .kpi .l { font-family: var(--sans); font-size: 12px; letter-spacing: 0.32px; color: var(--text-mute); margin-top: 4px; }
@media (max-width: 1099px) { .cs { grid-template-columns: 1fr; gap: 20px; } }

/* ── About: history timeline ──────────────────────────── */
.history-title {
  margin: 0 0 clamp(64px, 7vw, 92px);
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(34px, 4.2vw, 46px);
  line-height: 1.1;
  letter-spacing: 0;
  text-align: center;
  color: var(--text);
}
.history {
  --history-gap: clamp(48px, 6vw, 96px);
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: var(--history-gap);
  row-gap: clamp(96px, 9vw, 128px);
  padding-top: 72px;
  min-width: 0;
}
.history > li {
  position: relative;
  display: grid;
  gap: 32px;
  padding-top: 36px;
  min-width: 0;
}
.history > li::before {
  content: "";
  position: absolute;
  left: 0;
  right: calc(var(--history-gap) * -1);
  top: 0;
  height: 1px;
  background: var(--line);
}
.history > li:nth-child(4n)::before {
  right: 0;
}
.history .yr {
  position: absolute;
  left: 50%;
  top: -84px;
  transform: translateX(-50%);
  font-family: var(--sans);
  font-style: normal;
  font-weight: 700;
  font-size: clamp(48px, 5vw, 64px);
  line-height: 1;
  letter-spacing: 0;
  text-align: center;
  white-space: nowrap;
  color: color-mix(in srgb, var(--text) 16%, transparent);
  transition: color .18s ease;
}
.history-pin {
  position: absolute;
  left: 50%;
  top: 0;
  z-index: 1;
  width: 8px;
  height: 8px;
  transform: translate(-50%, -50%);
  border: 2px solid var(--mint);
  border-radius: 999px;
  background: var(--section-bg);
  transition: background-color .18s ease, box-shadow .18s ease;
}
.history-events {
  list-style: none;
  display: grid;
  gap: 7px;
  min-width: 0;
}
.history-events li {
  position: relative;
  padding-left: 12px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0;
  color: var(--text-dim);
  overflow-wrap: anywhere;
  transition: color .18s ease;
}
.history-events li::before {
  content: "-";
  position: absolute;
  left: 0;
  color: var(--text-mute);
  transition: color .18s ease;
}
.history > li:hover .yr {
  color: var(--mint);
}
.history > li:hover .history-pin {
  background: var(--mint);
  box-shadow: 0 0 0 5px var(--section-bg), 0 0 0 7px var(--mint);
}
.history > li:hover .history-events li {
  color: var(--text);
}
.history > li:hover .history-events li::before {
  color: var(--mint);
}
@media (max-width: 1099px) {
  .history { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .history > li:nth-child(4n)::before { right: calc(var(--history-gap) * -1); }
  .history > li:nth-child(2n)::before { right: 0; }
}
@media (max-width: 719px) {
  .history { grid-template-columns: minmax(0, 1fr); }
  .history > li::before { right: 0; }
}

/* ── Contact: 4 channel cards ─────────────────────────── */
.channels {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line);
  min-width: 0;
}
.channels .ch {
  background: var(--bg-card); padding: 24px;
  display: flex; flex-direction: column; gap: 12px;
  transition: background .15s ease;
  min-width: 0;
}
.channels .ch:hover { background: var(--bg-soft); }
.channels .ch h3 { font-family: var(--sans); font-weight: 400; font-size: 20px; line-height: 1.4; letter-spacing: 0; }
.channels .ch h3 em { color: var(--mint); font-style: normal; }
.channels .ch .mail {
  color: var(--mint); font-family: var(--sans); font-size: 16px;
  border-bottom: 1px solid var(--mint); padding-bottom: 4px;
  width: fit-content; word-break: break-all;
}
.channels .ch .phone { font-family: var(--sans); font-size: 16px; color: var(--text-dim); }
.channels .ch .sla {
  font-family: var(--sans); font-size: 12px; letter-spacing: 0.32px;
  color: var(--text-mute); text-transform: none;
  padding-top: 12px; border-top: 1px solid var(--line); margin-top: auto;
}
@media (max-width: 719px) { .channels { grid-template-columns: 1fr; } }

/* ── Contact: HQ grid (address + map) ─────────────────── */
.hq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: stretch; min-width: 0; }
.hq-text ul { list-style: none; display: grid; gap: 12px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.hq-text li { display: grid; grid-template-columns: 120px 1fr; font-family: var(--sans); font-size: 16px; }
.hq-text .l { font-size: 12px; letter-spacing: 0.32px; color: var(--text-mute); text-transform: none; }
.hq-text .v { color: var(--text); }
.hq-text .v.t-mint, .hq-text a.t-mint { color: var(--mint); }
.hq-map {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  min-height: 300px;
  min-width: 0;
  overflow: hidden;
  display: flex;
  align-items: stretch;
  justify-content: center;
}
.hq-map iframe {
  display: block;
  width: 100%;
  max-width: 100%;
  min-height: 450px;
}
@media (max-width: 1099px) { .hq-grid { grid-template-columns: 1fr; } }

/* =============================================================
   RESPONSIVE
   ============================================================= */
@media (max-width: 1056px) {
  .history-section > .history-title {
    grid-row: 2;
  }
  .history-section > .history {
    grid-row: 3;
  }
  .history-section.no-history-title > .history {
    grid-row: 2;
  }
  .hero::before,
  .hero::after {
    display: none;
  }
  .topbar {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
  }
  .tb-nav { display: none; }
  .tb-right {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    justify-self: end;
    z-index: 3;
    gap: 10px;
  }
  .tb-lang {
    display: inline-flex;
    font-size: 12px;
  }
  .tb-burger {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px;
    color: var(--text); font-size: 22px;
    border: 1px solid var(--line);
  }
  .pillars { grid-template-columns: minmax(0, 1fr); }
  .cta { grid-template-columns: 1fr; gap: 24px; }
  .cta-actions { align-items: flex-start; }
  .ft-top { grid-template-columns: 1fr 1fr; }
  .ft-brand { grid-column: 1 / -1; }
  .section {
    grid-template-columns: minmax(116px, 164px) minmax(0, 1fr);
    column-gap: 28px;
  }
  .cols-2 { grid-template-columns: 1fr; }
  .dl { grid-template-columns: 1fr; }
  .dl dt { padding-bottom: 4px; border-bottom: 0; }
  .dl dd { padding-top: 4px; }
  .dl-subrow {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  body[data-page-key="dam"] .dl > div,
  body[data-page-key="sam"] .dl > div { grid-template-columns: 1fr; }
  body[data-page-key="dam"] .dl dt,
  body[data-page-key="sam"] .dl dt { border-bottom: 1px solid var(--line); }
  body[data-page-key="dam"] .dl dd,
  body[data-page-key="sam"] .dl dd { padding-top: 18px; }
  .form { grid-template-columns: 1fr; padding: 24px; }
  .product-showcase { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 672px) {
  :root { --pad-x: 18px; }
  .btn {
    width: min(100%, 180px);
    min-width: 0;
  }
  .section > .two-col-image {
    grid-column: 1;
    margin-top: 16px;
  }
  .section > .two-col-images {
    grid-column: 1;
    grid-template-columns: minmax(0, 1fr);
    margin-top: 16px;
  }
  .dl dd.has-image {
    gap: 16px;
  }
  .dl-item-image {
    width: min(38vw, 150px);
  }
  body {
    font-size: 15px;
    word-break: normal;
    overflow-wrap: anywhere;
  }
  .topbar { padding: 0 14px; }
  .tb-brand { min-width: 0; }
  .tb-brand-name { font-size: 16px; }
  .tb-brand-tag  { display: none; }
  .hero { min-height: 520px; padding-top: 56px; padding-bottom: 56px; }
  .hero-stack { width: 100%; max-width: none; }
  .hero-stack a {
    grid-template-columns: 52px minmax(0, 1fr) auto;
    gap: 10px;
    padding: 12px 14px;
  }
  .section {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 14px;
    padding-top: 56px;
    padding-bottom: 56px;
  }
  .section > h2.title,
  .section > .section-lede,
  .section > .cols-2,
  .section > .pillars,
  .section > .card-grid,
  .section > .dl,
  .section > .stats,
  .section > .product-showcase,
  .section > .object-grid,
  .section > .image-carousel,
  .section > .video-embed,
  .section > .value-engine-visual,
  .section > .timeline,
  .section > .paper-list,
  .section > .cs,
  .section > .history-title,
  .section > .history,
  .section > .channels,
  .section > .hq-grid,
  .section > .form,
  .section > .section-eyebrow {
    grid-column: 1;
  }
  .section .section-eyebrow {
    grid-row: auto;
    padding-top: 10px;
    margin-bottom: 2px;
  }
  .section .section-lede {
    font-size: 16px;
    margin-bottom: 8px;
  }
  .ft-top { grid-template-columns: 1fr; }
  .ft-bot { justify-items: center; gap: 8px; }
  .legal-modal {
    padding: 12px;
  }
  .legal-modal-panel {
    max-height: 84vh;
  }
  .legal-modal-head {
    padding: 16px 18px;
  }
  .legal-modal-body {
    padding: 20px 18px 24px;
  }
  .section h2.title { max-width: 100%; font-size: clamp(28px, 8vw, 34px); overflow-wrap: anywhere; }
  .product-showcase,
  .object-grid,
  .card-grid,
  .pillars,
  .stats,
  .channels,
  .hq-grid,
  .form { grid-template-columns: minmax(0, 1fr); }
  .dl.dl-feature-cards {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }
  .dl.dl-feature-cards > div {
    row-gap: 7px;
    min-height: 120px;
    padding: 30px 22px 24px;
    border-radius: 14px;
  }
  .dl.dl-feature-cards dt {
    font-size: 17px;
  }
  .object-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }
  .image-carousel-card {
    flex-basis: 100%;
  }
  .image-carousel-card img {
    height: 220px;
  }
  .pillar,
  .card-grid .card,
  .pc-card,
  .channels .ch { padding: 22px 20px; }
  .section h2.title,
  .section .section-lede,
  .cols-2 p,
  .pillar .desc,
  .card .kr,
  .pc-what,
  .pc-tag,
  .timeline p,
  .dl dd {
    word-break: normal;
    overflow-wrap: anywhere;
  }
  .paper { grid-template-columns: minmax(0, 1fr); }
  .paper .dl-cta { width: fit-content; }
  .form { grid-template-columns: 1fr; padding: 22px 20px; }
}

/* ── Mobile dropdown sheet ──────────────────────────────── */
.mobile-sheet {
  position: fixed; inset: var(--nav-h) 0 0 0;
  background: var(--bg);
  border-top: 1px solid var(--line);
  z-index: 190;
  padding: 24px var(--pad-x);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  transform: translateY(-12px);
  opacity: 0; pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.mobile-sheet.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
.mobile-sheet .ms-group { padding: 16px 0; border-bottom: 1px solid var(--line); }
.mobile-sheet .ms-group h4 {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.16px;
  color: var(--text);
  text-transform: none;
  margin-bottom: 8px;
}
.mobile-sheet .ms-group a {
  display: block;
  padding: 10px 0;
  font-size: 16px;
  color: var(--text-dim);
}
.mobile-sheet .ms-group a:hover { color: var(--mint); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
