/* ===== DTL Corporate Site ===== */
:root {
  --navy-900: #1E2761;
  --navy-700: #2B4074;
  --cyan: #4BBFBF;          /* 対話状態のみに使用（装飾には使わない） */
  --gray-100: #F7F8FA;
  --gray-200: #EAECF0;
  --gray-300: #D8DCE6;
  --gray-400: #BFC4D0;
  --gray-600: #7A7F8C;
  --ink: #1A1A1A;
  --ink-muted: #545967;
  --white: #FFFFFF;
  --maxw: 1080px;
  --font-jp: "Yu Gothic", "游ゴシック体", YuGothic, "Hiragino Kaku Gothic ProN",
             "Noto Sans JP", "Meiryo", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-jp);
  color: var(--ink);
  background: var(--white);
  line-height: 1.85;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
img { max-width: 100%; display: block; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--gray-200);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand img { height: 26px; width: auto; }

.nav { display: flex; align-items: center; gap: 30px; }

.nav a:not(.btn) {
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}

.nav a:not(.btn):hover {
  color: var(--navy-900);
  border-bottom-color: var(--cyan);   /* 対話状態でのみブランドシアンを使う */
}

.nav .btn { margin-left: 6px; }

.btn {
  display: inline-block;
  padding: 13px 28px;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-decoration: none;
  border: 1px solid var(--navy-900);
  background: var(--navy-900);
  color: var(--white);
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.btn:hover { background: var(--navy-700); border-color: var(--navy-700); }

.btn-ghost { background: transparent; color: var(--navy-900); }
.btn-ghost:hover { background: var(--navy-900); color: var(--white); }

/* ---------- Section scaffolding ---------- */
section { padding: 112px 0; }

/* 見出し下の短い装飾線をやめ、セクション上端の全幅ヘアライン＋通し番号に変更 */
.sec-label {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--gray-300);
  padding-top: 15px;
  margin: 0 0 44px;
  font-weight: 700;
  color: var(--navy-900);
}

/* アイキャッチの正方形マーク。
   ロゴの「D」にある、上部バーの下から左辺に入る切り欠きを正方形に写した形。
   通し番号は Approach セクション内のステップカード（01/02/03）で既に使って
   いるため、セクション側で番号を使うと記法が入れ子になり意味が取れなくなる。
   フォントの ■ は字形の癖と全角の余白が出るため SVG で描いている */
.sec-label .mark {
  width: 18px;
  height: 18px;
  flex: none;
  fill: currentColor;
  color: var(--navy-900);
}

/* セクション名。番号を廃した分、こちらで見出しとしての格を持たせる */
.sec-label .ja {
  font-size: 15px;
  letter-spacing: 0.12em;
  color: var(--navy-900);
}

h2 {
  font-size: 32px;
  line-height: 1.55;
  letter-spacing: 0.01em;
  color: var(--navy-900);
  margin: 0 0 26px;
  font-weight: 700;
}

.section-lead {
  max-width: 720px;
  color: var(--ink-muted);
  margin: 0 0 56px;
}

.section-lead--follow {
  margin-top: -40px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 108px 0 96px;
  background: linear-gradient(135deg, var(--gray-100) 0%, var(--white) 78%);
  border-bottom: 1px solid var(--gray-200);
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  min-height: 440px;
}

.hero-copy {
  position: relative;
  width: min(540px, 54%);
  padding-right: 20px;
}

.hero .tagline {
  font-size: 11.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--navy-900);
  font-weight: 700;
  margin: 0 0 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--gray-300);
  display: inline-block;
}

.hero h1 {
  font-size: 48px;
  line-height: 1.42;
  letter-spacing: 0.01em;
  color: var(--navy-900);
  margin: 0 0 32px;
  font-weight: 700;
}

.hero p {
  max-width: 520px;
  font-size: 17px;
  color: var(--ink-muted);
  margin: 0 0 44px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* 右側背景アニメーション。左端をフェードしてコピーと溶かす */
.hero-motion {
  position: absolute;
  right: max(0px, calc((100% - var(--maxw)) / 2 - 40px));
  top: 50%;
  transform: translateY(-50%);
  width: min(620px, 48vw);
  pointer-events: none;
  opacity: 0.88;
  z-index: 1;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.4) 14%, #000 32%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.4) 14%, #000 32%, #000 100%);
}

.hero-motion picture { display: block; }

.hero-motion img {
  display: block;
  width: 100%;
  height: auto;
}

/* ---------- Problem (navy) ---------- */
.problem { background: var(--navy-900); color: var(--white); }

.problem h2 { color: var(--white); }
.problem .section-lead { color: rgba(255, 255, 255, 0.76); }

.problem .sec-label {
  border-top-color: rgba(255, 255, 255, 0.34);
  color: rgba(255, 255, 255, 0.62);
}

.problem .sec-label .mark,
.problem .sec-label .ja { color: var(--white); }

/* ---------- Diagrams (HTML/CSS text, responsive) ---------- */
.flow-switch {
  container-type: inline-size;
  container-name: flow;
  margin: 8px 0 0;
}

.flow-diagram {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 12px;
  margin: 0 auto;
  max-width: 560px;
  width: 100%;
}

.flow-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.92);
  padding: 18px 14px;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.65;
  color: var(--white);
  box-sizing: border-box;
}

/* 端の箱は縮めず、正方形に近い固定幅を保つ */
.flow-box--end {
  flex: 0 0 7.5em;
  width: 7.5em;
  min-height: 7.5em;
}

.flow-box--gap {
  flex: 1 1 0;
  min-width: 0;
  max-width: 16.5em;
  border-style: dashed;
  padding: 18px 14px 16px;
}

.flow-box-title {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
}

.flow-box--gap ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.flow-box--gap li {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
}

.flow-box--gap li + li { margin-top: 4px; }

.flow-arrow {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.1em;
  font-size: 16px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.85);
}

.flow-arrow::before { content: "→"; }

.flow-box--light {
  border-color: var(--navy-900);
  color: var(--navy-900);
}

.flow-box--value {
  flex: 1 1 0;
  min-width: 0;
  max-width: 18em;
  padding: 20px 16px 16px;
}

.flow-box-msg {
  margin: 0 0 14px;
  font-size: 13.5px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--ink-muted);
}

.flow-arrow--dark { color: var(--navy-900); }

/* 提供価値の中央箱は文言が2行に収まるようやや広めに */
.value-flow {
  max-width: 620px;
}

.value-flow .flow-box--value {
  flex: 1 1 auto;
  max-width: 22em;
  padding-left: 20px;
  padding-right: 20px;
}

/* BIZ / DS / ENG の重なり円 */
.venn {
  position: relative;
  width: 152px;
  height: 138px;
  margin: 0 auto;
}

.venn-circle {
  position: absolute;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--white);
}

.venn-biz {
  left: 36px;
  top: 0;
  background: rgba(30, 39, 97, 0.92);
  z-index: 3;
}

.venn-ds {
  left: 6px;
  top: 48px;
  background: rgba(69, 123, 157, 0.78);
  z-index: 2;
}

.venn-eng {
  right: 6px;
  top: 48px;
  background: rgba(120, 160, 180, 0.72);
  z-index: 1;
}

/* タブレット縦〜スマホでは縦積み。端の箱が横に押し出されないようにする */
@container flow (max-width: 640px) {
  .flow-diagram {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-width: 20em;
  }

  .flow-box--end {
    flex: none;
    width: 100%;
    min-height: 0;
    padding: 16px 14px;
  }

  .flow-box--gap,
  .flow-box--value {
    flex: none;
    width: 100%;
    max-width: none;
  }

  .flow-arrow {
    width: auto;
    padding: 10px 0;
  }

  .flow-arrow::before { content: "↓"; }
}

@supports not (container-type: inline-size) {
  @media (max-width: 720px) {
    .flow-diagram {
      flex-direction: column;
      align-items: stretch;
      gap: 0;
      max-width: 20em;
    }

    .flow-box--end {
      flex: none;
      width: 100%;
      min-height: 0;
      padding: 16px 14px;
    }

    .flow-box--gap,
    .flow-box--value {
      flex: none;
      width: 100%;
      max-width: none;
    }

    .flow-arrow {
      width: auto;
      padding: 10px 0;
    }

    .flow-arrow::before { content: "↓"; }
  }
}

/* ---------- Value ---------- */
.value {
  background: var(--white);
  padding-bottom: 56px;
}

.value-legend {
  margin: 18px auto 0;
  max-width: 560px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--gray-600);
  letter-spacing: 0.02em;
  text-align: center;
}

/* 白背景が続くため、提供価値〜進め方のあいだの余白を抑える */
#approach {
  padding-top: 64px;
}

/* ---------- Approach ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-bottom: 72px;
  align-items: stretch;
}

/* 独立カードではなく、重なり合う矢羽で一連の進行を示す */
.step {
  position: relative;
  border: none;
  padding: 34px 48px 36px 32px;
  background: #E8EBF4;
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 50%, calc(100% - 22px) 100%, 0 100%);
  z-index: 1;
}

.step:nth-child(2) {
  background: #C9D0E6;
  margin-left: -18px;
  padding-left: 42px;
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 50%, calc(100% - 22px) 100%, 0 100%, 22px 50%);
  z-index: 2;
}

.step:nth-child(3) {
  background: #B4BDD8;
  margin-left: -18px;
  padding-left: 42px;
  padding-right: 40px;
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 50%, calc(100% - 22px) 100%, 0 100%, 22px 50%);
  z-index: 3;
}

.step:nth-child(3) p {
  color: var(--navy-900);
}

.step .no {
  font-size: 34px;
  line-height: 1;
  font-weight: 700;
  color: rgba(30, 39, 97, 0.28);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.step h3 {
  font-size: 18px;
  color: var(--navy-900);
  margin: 16px 0 8px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(30, 39, 97, 0.16);
  font-weight: 700;
}

.step p {
  font-size: 14px;
  color: var(--ink-muted);
  margin: 14px 0 0;
  line-height: 1.75;
}

/* Before / After table */
.ba-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy-900);
  margin: 0 0 18px;
}

/* 比較表: ヘッダーのベタ帯と縞模様をやめ、「DTLの進め方」列だけを地色で前に出す。
   3列ともセンター寄せ */
table.compare { width: 100%; border-collapse: collapse; font-size: 14.5px; }

table.compare th,
table.compare td { text-align: center; vertical-align: top; }

table.compare thead th {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray-600);
  font-weight: 700;
  padding: 14px 22px 12px;
  border-bottom: 1px solid var(--gray-300);
}

table.compare thead th:first-child {
  width: 26%;
}

table.compare thead th.hl {
  color: var(--navy-900);
  border-bottom-color: var(--navy-900);
}

table.compare tbody th {
  font-weight: 700;
  color: var(--navy-900);
  font-size: 14px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--gray-200);
}

table.compare tbody td {
  padding: 20px 22px;
  border-bottom: 1px solid var(--gray-200);
  color: var(--ink-muted);
}

table.compare .hl { background: rgba(30, 39, 97, 0.045); }

table.compare tbody td.hl {
  color: var(--navy-900);
  font-weight: 700;
}

/* 比較表先頭のコンセプト図。列幅に合わせて縮み、狭い画面でも表構造を保つ */
table.compare .compare-visual th,
table.compare .compare-visual td {
  vertical-align: middle;
  padding-top: 18px;
  padding-bottom: 16px;
}

table.compare .compare-visual img {
  display: block;
  width: 60%;
  max-width: 156px;
  height: auto;
  margin: 0 auto 10px;
  aspect-ratio: 2 / 1;
  object-fit: contain;
}

table.compare .compare-caption {
  display: block;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--ink-muted);
}

table.compare tbody td.hl .compare-caption {
  font-weight: 400;
  color: var(--ink-muted);
}

/* ---------- Services ---------- */
.services { background: var(--gray-100); }

.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.svc {
  background: var(--white);
  border: 1px solid var(--gray-200);
  padding: 36px 30px;
}

.svc .en {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray-600);
  font-weight: 700;
  margin: 0 0 14px;
}

.svc h3 {
  font-size: 18px;
  color: var(--navy-900);
  margin: 0 0 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--gray-200);
  font-weight: 700;
}

.svc p { font-size: 14px; color: var(--ink-muted); margin: 0; }

/* ---------- Works ---------- */
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.work {
  border: 1px solid var(--gray-200);
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tags { display: flex; gap: 8px; flex-wrap: wrap; }

.tag {
  font-size: 11px;
  letter-spacing: 0.08em;
  padding: 4px 11px;
  border: 1px solid var(--gray-300);
  color: var(--ink-muted);
  font-weight: 400;
}

/* 技術タグは対等。色だけで生成AI / 機械学習を区別する */
.tag.ai {
  border-color: var(--navy-900);
  color: var(--navy-900);
  background: rgba(30, 39, 97, 0.07);
}

.tag.ml {
  border-color: #5A6F8C;
  color: #3F5573;
  background: rgba(90, 111, 140, 0.10);
}

.work h3 {
  font-size: 16px;
  line-height: 1.65;
  color: var(--navy-900);
  margin: 0;
  font-weight: 700;
}

.work p { font-size: 13.5px; color: var(--ink-muted); margin: 0; }

.work .result {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--gray-200);
  font-size: 13.5px;
  color: var(--navy-900);
  font-weight: 700;
}

.note { font-size: 12px; color: var(--gray-600); margin-top: 30px; }

/* ---------- Leader ---------- */
.leader { background: var(--gray-100); }

/* メッセージを先に置き、ヘアラインで略歴と区切る */
.leader-message {
  margin: 0 0 56px;
  padding: 40px 0 36px;
  border-top: 1px solid var(--gray-400);
  border-bottom: 1px solid var(--gray-400);
}

/* 本人の文章であることを示す、画像を使わない文字だけの署名 */
.leader-message .sign {
  margin: 30px 0 0;
  text-align: right;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--navy-900);
}

.leader-message .leader-lead {
  font-size: 22px;
  line-height: 1.65;
  color: var(--navy-900);
  font-weight: 700;
  margin: 0 0 28px;
}

.leader-message p {
  font-size: 15.5px;
  line-height: 2;
  color: var(--ink-muted);
  margin: 0 0 1.35em;
}

.leader-message p:last-child { margin-bottom: 0; }

.leader-grid {
  display: grid;
  /* 300px 固定では社外顧問の組織名が収まらず、長音符や1文字だけが
     行頭に落ちていた。上限を持たせつつ余裕を取る */
  grid-template-columns: minmax(300px, 344px) 1fr;
  gap: 56px;
  align-items: start;
}

.leader-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  padding: 32px 28px;
}

.leader-card .role {
  font-size: 11.5px;
  letter-spacing: 0.12em;
  color: var(--gray-600);
  font-weight: 700;
  margin: 0;
}

.leader-card .name {
  font-size: 27px;
  color: var(--navy-900);
  font-weight: 700;
  margin: 10px 0 4px;
}

.leader-card .name-en {
  font-size: 11.5px;
  letter-spacing: 0.16em;
  color: var(--gray-600);
  margin: 0;
}

.leader-id {
  display: inline-block;
  max-width: 100%;
}

.leader-photo {
  margin: 14px 0 0;
  width: 60%;
}

.leader-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 469 / 532;
  object-fit: cover;
  object-position: center 18%;
}

.career { margin: 0; padding: 0; list-style: none; }

.career li {
  position: relative;
  padding: 0 0 24px 28px;
  border-left: 1px solid var(--gray-400);
  font-size: 14.5px;
  color: var(--ink-muted);
}

.career li:last-child { border-left-color: transparent; padding-bottom: 0; }

.career li::before {
  content: "";
  position: absolute;
  left: -4px;
  top: 11px;
  width: 7px;
  height: 7px;
  background: var(--navy-900);
}

.career li strong {
  display: block;
  color: var(--navy-900);
  font-size: 15px;
}

.advisory {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--gray-300);
}

.advisory h4 {
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--gray-600);
  margin: 0 0 16px;
}

/* 経歴側（.career）が四角マーカーなのに対し、ここだけブラウザ既定の丸が
   出ていたため同じ四角に揃える。組織名と肩書も行で分け、折り返しの破綻を防ぐ */
.advisory ul {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 13.5px;
  color: var(--ink-muted);
}

.advisory li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 15px;
}

.advisory li:last-child { margin-bottom: 0; }

.advisory li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  background: var(--navy-900);
}

.advisory li strong {
  display: block;
  color: var(--navy-900);
  font-size: 14px;
  font-weight: 700;
}

/* ---------- Company ---------- */
table.company {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  border-top: 1px solid var(--gray-300);
}

table.company th,
table.company td {
  padding: 19px 20px;
  border-bottom: 1px solid var(--gray-200);
  text-align: left;
  vertical-align: top;
}

table.company th {
  width: 26%;
  color: var(--navy-900);
  font-weight: 700;
  background: var(--gray-100);
}

.tbd { color: #B00020; font-weight: 700; }

/* ---------- Partners ---------- */
.partners { background: var(--gray-100); }

.partner-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
  max-width: 820px;
}

.partner {
  display: grid;
  grid-template-columns: minmax(200px, 280px) 1fr;
  gap: 36px;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.partner:hover .partner-body h3 {
  color: var(--navy-700);
  border-bottom-color: var(--cyan);
}

.partner-logo {
  width: 100%;
  height: auto;
  background: var(--white);
  padding: 28px 24px;
  border: 1px solid var(--gray-200);
}

.partner-logo--dark {
  background: #000;
  border-color: #000;
}

.partner-body h3 {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 700;
  color: var(--navy-900);
  display: inline;
  border-bottom: 1px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}

.partner-body p {
  margin: 10px 0 0;
  color: var(--ink-muted);
  font-size: 15px;
  line-height: 1.85;
}

/* ---------- Contact ---------- */
.contact { background: var(--navy-900); color: var(--white); }

.contact h2 { color: var(--white); }

.contact .sec-label {
  border-top-color: rgba(255, 255, 255, 0.34);
  color: rgba(255, 255, 255, 0.62);
}

.contact .sec-label .mark,
.contact .sec-label .ja { color: var(--white); }

.contact p { max-width: 620px; margin: 0 0 44px; color: rgba(255, 255, 255, 0.78); }

.contact-privacy {
  max-width: 620px;
  margin: -18px 0 36px !important;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.72) !important;
}

.contact-privacy a {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-privacy a:hover { color: rgba(255, 255, 255, 0.85); }

.contact .btn {
  background: var(--white);
  border-color: var(--white);
  color: var(--navy-900);
  font-weight: 700;
  padding: 16px 44px;
}

.contact .btn:hover { background: transparent; color: var(--white); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-700);
  color: rgba(255, 255, 255, 0.7);
  padding: 36px 0;
  font-size: 12px;
}

.site-footer .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.site-footer img { height: 20px; width: auto; opacity: 0.9; }

.footer-meta {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-meta a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  padding-bottom: 1px;
}

.footer-meta a:hover {
  color: var(--white);
  border-bottom-color: var(--cyan);
}

/* ---------- Legal / Privacy ---------- */
.legal-page {
  padding: 72px 0 96px;
  background: var(--white);
}

.legal-back {
  margin: 0 0 28px;
  font-size: 14px;
}

.legal-back a {
  color: var(--ink-muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.legal-back a:hover {
  color: var(--navy-900);
  border-bottom-color: var(--cyan);
}

.legal-page h1 {
  font-size: 28px;
  line-height: 1.55;
  color: var(--navy-900);
  margin: 0 0 36px;
  font-weight: 700;
}

.legal-page .legal-sub {
  display: inline-block;
  margin-top: 8px;
  font-size: 17px;
  font-weight: 700;
  color: var(--ink-muted);
}

.legal-lead {
  font-size: 15.5px;
  color: var(--ink-muted);
  margin: 0 0 40px;
  max-width: 820px;
}

.legal-page h2 {
  font-size: 18px;
  margin: 40px 0 16px;
  padding-top: 8px;
  border-top: 1px solid var(--gray-200);
}

.legal-page p,
.legal-page li {
  font-size: 15px;
  line-height: 1.95;
  color: var(--ink-muted);
  max-width: 820px;
}

.legal-page p { margin: 0 0 1.1em; }

.legal-page ul {
  margin: 0 0 1.2em;
  padding-left: 1.35em;
  max-width: 820px;
}

.legal-page li { margin: 0 0 0.55em; }

.legal-date {
  margin-top: 48px !important;
  font-size: 14px !important;
  color: var(--gray-600) !important;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  section { padding: 76px 0; }
  .value { padding-bottom: 40px; }
  #approach { padding-top: 48px; }
  .hero { padding: 72px 0 40px; }
  .hero-inner {
    display: block;
    min-height: 0;
  }
  .hero-copy {
    width: 100%;
    padding-right: 0;
  }
  .hero h1 { font-size: 32px; }
  .hero-motion {
    position: relative;
    top: auto;
    right: auto;
    transform: none;
    width: min(92%, 480px);
    margin: -12px 0 8px auto;
    padding-right: 28px;
    opacity: 0.9;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 16%, #000 100%);
    mask-image: linear-gradient(180deg, transparent 0%, #000 16%, #000 100%);
  }
  h2 { font-size: 25px; }
  .steps {
    grid-template-columns: 1fr;
  }

  table.compare { font-size: 13px; }
  table.compare thead th,
  table.compare tbody th,
  table.compare tbody td { padding-left: 10px; padding-right: 10px; }
  table.compare .compare-visual img { max-width: 126px; margin-bottom: 6px; }
  table.compare .compare-caption { font-size: 12px; }
  table.compare thead th:first-child { width: 22%; }

  .step,
  .step:nth-child(2),
  .step:nth-child(3) {
    margin-left: 0;
    padding: 28px 28px 44px;
  }

  .step {
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 18px), 50% 100%, 0 calc(100% - 18px));
  }

  .step:nth-child(2),
  .step:nth-child(3) {
    margin-top: -14px;
    padding-top: 36px;
    clip-path: polygon(0 0, 50% 18px, 100% 0, 100% calc(100% - 18px), 50% 100%, 0 calc(100% - 18px));
  }

  .svc-grid, .work-grid { grid-template-columns: 1fr; }
  .leader-grid { grid-template-columns: 1fr; gap: 34px; }
  .partner { grid-template-columns: 1fr; gap: 22px; }
  .partner-logo { max-width: 320px; }
  .nav { gap: 16px; }
  .nav a:not(.btn) { display: none; }
  .site-footer .wrap { flex-direction: column; align-items: flex-start; }
}
