/* =========================================================
   VIXCESS corporate site — base stylesheet
   コンセプト: 紙のような余白、明朝の見出し、細い罫線。
   装飾より「間」と「文字」で信頼感をつくる。
   ========================================================= */

:root {
  --paper: #ffffff;
  --paper-2: #f4f7f9;
  --paper-3: #e6eef2;
  --ink: #14171a;
  --ink-soft: #3d4346;
  --muted: #6f7578;
  --line: #e3e9ed;
  --line-strong: #c8d3d9;
  --accent: #1b6f9c;
  --accent-2: #2f8cbb;
  --accent-soft: #e8f2f8;
  --white: #ffffff;
  --dark: #0f2a3d;
  --dark-2: #f3f7fa;

  --serif: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", serif;
  --sans: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  --latin: "Inter", "Helvetica Neue", Arial, sans-serif;

  --container: 1160px;
  --gutter: 40px;
  --header-h: 76px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15.5px;
  line-height: 1.95;
  letter-spacing: 0.02em;
  font-feature-settings: "palt" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

::selection { background: var(--accent); color: #fff; }

:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 4px;
}

/* ---------- layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section { padding: 128px 0; position: relative; }
.section--tight { padding: 88px 0; }
.section--paper2 { background: var(--paper-2); }
.section--dark { background: var(--dark); color: #eef4f7; }
.section--line { border-top: 1px solid var(--line); }

.grid { display: grid; gap: 56px; }
.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- type ---------- */
.eyebrow {
  font-family: var(--latin);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 14px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  flex: none;
}
.section--dark .eyebrow { color: #9fc3d0; }

.display {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(30px, 4.4vw, 54px);
  line-height: 1.55;
  letter-spacing: 0.01em;
  text-wrap: balance;
  word-break: auto-phrase;
}

.h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(24px, 2.9vw, 35px);
  line-height: 1.6;
  letter-spacing: 0.02em;
  text-wrap: balance;
  word-break: auto-phrase;
}

.h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(19px, 1.9vw, 23px);
  line-height: 1.7;
}

.lead {
  font-size: 16px;
  line-height: 2.15;
  color: var(--ink-soft);
}

.muted { color: var(--muted); }
.small { font-size: 13px; line-height: 1.9; }
.mono {
  font-family: var(--latin);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--muted);
}

/* ---------- header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s var(--ease), background 0.4s var(--ease);
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(255, 255, 255, 0.96);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand { display: flex; align-items: center; gap: 14px; }
.brand__logo { height: 42px; width: auto; display: block; }
.brand__mark {
  font-family: var(--latin);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.26em;
  line-height: 1;
}
.brand__sub {
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--muted);
  line-height: 1;
}

.nav { display: flex; align-items: center; gap: 34px; }
.nav a {
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  position: relative;
  padding: 6px 0;
  transition: color 0.3s var(--ease);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after,
.nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--ink); }

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 10px 20px;
  font-size: 12.5px;
  letter-spacing: 0.1em;
  transition: background 0.35s var(--ease), color 0.35s var(--ease);
}
.header-cta:hover { background: var(--accent); color: #fff; }
.header-cta svg { width: 12px; height: 12px; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  background: none; border: 0;
  cursor: pointer;
  position: relative;
}
.nav-toggle span {
  position: absolute;
  left: 11px; right: 11px;
  height: 1px; background: var(--ink);
  transition: transform 0.35s var(--ease), opacity 0.25s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 18px; }
.nav-toggle span:nth-child(2) { top: 25px; }
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero {
  padding: calc(var(--header-h) + 96px) 0 96px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  right: -160px;
  top: -180px;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(47, 140, 187, 0.10), rgba(47, 140, 187, 0) 70%);
  pointer-events: none;
}
.hero .container { position: relative; display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.55fr); gap: 64px; align-items: end; }
.hero__main { max-width: 760px; }
.hero .display { margin-top: 32px; }
.hero .lead { margin-top: 32px; max-width: 560px; }
.hero__actions { margin-top: 44px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.hero__aside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 28px;
  padding-bottom: 8px;
}
.hero__vertical {
  writing-mode: vertical-rl;
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: 0.3em;
  color: var(--ink-soft);
  line-height: 2.2;
  border-right: 1px solid var(--line-strong);
  padding-right: 10px;
}
.hero__meta {
  text-align: right;
  font-family: var(--latin);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--muted);
  line-height: 2.1;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 15px 30px;
  font-size: 13.5px;
  letter-spacing: 0.08em;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--paper);
  transition: background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
}
.btn:hover { background: var(--accent-2); border-color: var(--accent-2); color: #fff; }
.btn svg { width: 14px; height: 14px; flex: none; transition: transform 0.35s var(--ease); }
.btn:hover svg { transform: translateX(4px); }

.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.btn--light { background: transparent; border-color: rgba(255, 255, 255, 0.5); color: #fff; }
.btn--light:hover { background: #fff; border-color: #fff; color: var(--dark); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  letter-spacing: 0.06em;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 4px;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.link-arrow svg { width: 13px; height: 13px; transition: transform 0.35s var(--ease); }
.link-arrow:hover { color: var(--accent); border-color: var(--accent); }
.link-arrow:hover svg { transform: translateX(4px); }
.section--dark .link-arrow { border-color: rgba(255,255,255,0.3); }
.section--dark .link-arrow:hover { color: #fff; border-color: #fff; }

/* ---------- section head ---------- */
.sec-head {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 24px;
  padding-top: 26px;
  border-top: 1px solid var(--line-strong);
  margin-bottom: 64px;
}
.sec-head__num {
  font-family: var(--latin);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--accent);
  padding-top: 6px;
  white-space: nowrap;
}
.sec-head__body { max-width: 720px; }
.sec-head .h2 { margin-bottom: 18px; }
.sec-head .lead { max-width: 640px; }
.section--dark .sec-head { border-top-color: rgba(255,255,255,0.18); }
.section--dark .sec-head__num { color: #9fc3d0; }
.section--dark .lead { color: #b9cbd6; }

/* ---------- stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--line);
}
.stat { padding: 32px 26px 30px 0; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat__num {
  font-family: var(--serif);
  font-size: clamp(30px, 3.2vw, 42px);
  line-height: 1.15;
  letter-spacing: 0.01em;
}
.stat__num small { font-size: 0.5em; margin-left: 2px; letter-spacing: 0.06em; }
.stat__label { margin-top: 12px; font-size: 12px; letter-spacing: 0.06em; color: var(--muted); }
.stats--3 { grid-template-columns: repeat(3, 1fr); }

/* ---------- services ---------- */
.svc-list { border-top: 1px solid var(--line-strong); }
.svc {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) minmax(0, 1.1fr) 40px;
  gap: 32px;
  align-items: start;
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
  transition: background 0.4s var(--ease), padding 0.4s var(--ease);
}
.svc:hover { background: rgba(255, 255, 255, 0.5); padding-left: 16px; padding-right: 16px; }
.svc__num { font-family: var(--latin); font-size: 11px; letter-spacing: 0.14em; color: var(--accent); padding-top: 8px; }
.svc__title { font-family: var(--serif); font-size: clamp(19px, 1.9vw, 24px); line-height: 1.6; }
.svc__title span { display: block; font-family: var(--latin); font-size: 10.5px; letter-spacing: 0.12em; color: var(--muted); margin-top: 8px; }
.svc__text { color: var(--ink-soft); font-size: 14.5px; line-height: 2.05; }
.svc__arrow { justify-self: end; padding-top: 6px; color: var(--muted); transition: transform 0.35s var(--ease), color 0.35s var(--ease); }
.svc:hover .svc__arrow { transform: translateX(6px); color: var(--accent); }
.svc__arrow svg { width: 20px; height: 20px; }


/* ---------- photo band ---------- */
.band { position: relative; height: 500px; overflow: hidden; background: var(--paper-3); }
.band img { width: 100%; height: 100%; object-fit: cover; object-position: 42% 48%; filter: grayscale(0.42) contrast(1.02) brightness(0.98); }
.band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 24, 36, 0.9) 0%, rgba(8, 24, 36, 0.58) 38%, rgba(8, 24, 36, 0.12) 68%, rgba(8, 24, 36, 0) 100%);
}
.band__inner { position: absolute; inset: auto 0 0 0; padding-bottom: 56px; z-index: 2; color: #fff; }
.band .eyebrow { color: #a9d2e6; }
.band .eyebrow::before { background: #a9d2e6; }
.band h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(26px, 3.2vw, 40px); line-height: 1.55; margin-top: 18px; color: #fff; }
.band p { margin-top: 14px; color: #d5e3ea; font-size: 14px; line-height: 2; max-width: 560px; }
.band__cap { margin-top: 16px; font-family: var(--sans); font-size: 11.5px; letter-spacing: 0.14em; color: #a9c1cf; }

/* ---------- service cards (home) ---------- */
.svc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.svc-card {
  border: 1px solid var(--line);
  background: #fff;
  padding: 36px 34px 38px;
  display: flex;
  flex-direction: column;
  min-height: 330px;
  transition: border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.svc-card:hover { border-color: var(--accent); box-shadow: 0 18px 40px -30px rgba(15, 42, 61, 0.35); }
.svc-card .svc__num { padding: 0; }
.svc-card h3 { font-family: var(--serif); font-weight: 500; font-size: clamp(19px, 1.9vw, 24px); line-height: 1.6; margin-top: 18px; }
.svc-card h3 span { display: block; font-family: var(--latin); font-size: 10.5px; letter-spacing: 0.12em; color: var(--muted); margin-top: 8px; }
.svc-card p { margin-top: 16px; color: var(--ink-soft); font-size: 14.5px; line-height: 2.05; }
.svc-card .link-arrow { margin-top: auto; align-self: flex-start; border-bottom: 0; color: var(--accent); padding-top: 26px; }

/* ---------- principle cards ---------- */
.card {
  border-top: 1px solid var(--line-strong);
  padding-top: 24px;
}
.card__num { font-family: var(--latin); font-size: 10.5px; letter-spacing: 0.16em; color: var(--accent); }
.card .h3 { margin-top: 14px; }
.card p { margin-top: 12px; color: var(--ink-soft); font-size: 14px; line-height: 2.05; }

/* ---------- person ---------- */
.person-teaser {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}
.avatar {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  background: var(--paper-3);
  position: relative;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(20, 23, 26, 0.08);
}
.person-teaser .h2 { margin-top: 20px; }
.person-role { margin-top: 8px; font-size: 12.5px; letter-spacing: 0.1em; color: var(--muted); }
.person-quote {
  margin-top: 24px;
  padding-left: 22px;
  border-left: 1px solid var(--line-strong);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 2.1;
  color: var(--ink-soft);
}
.person-bio { margin-top: 20px; font-size: 13.5px; line-height: 2.05; color: var(--ink-soft); }

/* ---------- steps ---------- */

/* ---------- steps band / flow (services) ---------- */
.steps--3 { grid-template-columns: repeat(3, 1fr); }
.flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; }
.flow__arrow {
  align-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  color: var(--accent);
}
.flow__arrow svg { width: 22px; height: 11px; }

/* ---------- criteria band (services) ---------- */
.crit-tech {
  display: flex;
  align-items: center;
  gap: 22px;
  background: #0d2233;
  color: #fff;
  padding: 28px 40px;
}
.crit-n { font-family: var(--latin); font-size: 12px; letter-spacing: 0.2em; opacity: 0.65; }
.crit-cat { font-family: var(--sans); font-size: 13px; letter-spacing: 0.16em; color: #a9c8d8; }
.crit-tech__v { font-family: var(--serif); font-size: 32px; font-weight: 600; letter-spacing: 0.03em; }
.crit-note { margin-top: 14px; font-size: 13px; letter-spacing: 0.03em; color: var(--muted); }
.crit-sub { display: flex; align-items: baseline; gap: 14px; margin: 38px 0 16px; }
.crit-sub .crit-n { color: var(--accent); opacity: 1; }
.crit-sub .crit-cat { color: var(--accent); }
.crit-bar { display: flex; }
.crit-seg {
  display: flex;
  align-items: flex-end;
  height: 72px;
  box-sizing: border-box;
  padding: 0 0 12px 16px;
  font-family: var(--sans);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  color: #fff;
}
.crit-seg--1 { width: 33.333%; background: #1b6f9c; }
.crit-seg--2 { width: 50%; background: #4d94b8; }
.crit-seg--3 { width: 16.667%; background: #a6c3d4; }
.crit-groups { display: flex; }
.crit-group { box-sizing: border-box; padding: 16px 32px 0 0; }
.crit-group--1 { width: 33.333%; }
.crit-group--2 { width: 50%; }
.crit-group--3 { width: 16.667%; }
.crit-group ul { list-style: none; margin: 0; padding: 0; }
.crit-group li { font-size: 15px; line-height: 1.75; padding: 8px 0; border-top: 1px solid var(--line); }
.crit-group__name { display: none; }

/* ---------- roles band (services / talent) ---------- */
.roles-band { list-style: none; margin: 0; padding: 0; }
.role-row { display: flex; align-items: center; }
.role-bar {
  display: flex;
  align-items: baseline;
  gap: 22px;
  flex: none;
  padding: 22px 30px;
}
.role-idx { font-family: var(--latin); font-size: 11px; letter-spacing: 0.18em; opacity: 0.75; }
.role-name { font-family: var(--serif); font-size: 19px; font-weight: 600; letter-spacing: 0.02em; }
.role-tail { flex: 1 1 auto; height: 1px; }
.role-note {
  flex: none;
  width: 220px;
  padding-left: 26px;
  font-size: 13px;
  letter-spacing: 0.04em;
}
.role-row--1 .role-bar { width: 44%; background: #0d2233; color: #fff; }
.role-row--1 .role-tail { background: #0d2233; }
.role-row--1 .role-note { color: #0d2233; }
.role-row--2 .role-bar { width: 40.5%; background: #1b6f9c; color: #fff; }
.role-row--2 .role-tail { background: #1b6f9c; }
.role-row--2 .role-note { color: #1b6f9c; }
.role-row--3 .role-bar { width: 37%; background: #bcd2df; color: #0d2233; }
.role-row--3 .role-tail { background: #a6c3d4; }
.role-row--3 .role-note { color: #6c93a6; }

/* ---------- chevron flow (services / AI) ---------- */
.chev-flow {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  list-style: none;
  padding: 0;
  margin: 0;
}
.chev-item { display: flex; flex-direction: column; }
.chev {
  position: relative;
  margin: 0 -26px 0 0;
  min-height: 96px;
  padding: 20px 34px 20px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  color: #fff;
  clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 50%, calc(100% - 26px) 100%, 0 100%, 26px 50%);
}
.chev-item:first-child .chev {
  clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 50%, calc(100% - 26px) 100%, 0 100%);
  padding-left: 32px;
}
.chev-item:last-child .chev { margin-right: 0; }
.chev-item:nth-child(1) .chev { background: #0d2233; }
.chev-item:nth-child(2) .chev { background: #14456b; }
.chev-item:nth-child(3) .chev { background: #1b6f9c; }
.chev-item:nth-child(4) .chev { background: #4d94b8; }
.chev-item:nth-child(5) .chev { background: #86b3cb; }
.chev-item:nth-child(6) .chev { background: #bcd2df; color: #0d2233; }
.chev__num { font-family: var(--latin); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.85; }
.chev__label { font-family: var(--serif); font-size: 15.5px; font-weight: 600; letter-spacing: 0.02em; line-height: 1.4; }
.chev-item__note {
  margin-top: 18px;
  padding-right: 26px;
  font-size: 12.5px;
  line-height: 1.95;
  color: var(--muted);
}

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.step { border-top: 1px solid var(--line-strong); padding-top: 24px; }
.step__num { font-family: var(--latin); font-size: 10.5px; letter-spacing: 0.18em; color: var(--accent); }
.step .h3 { font-size: 17px; margin-top: 14px; }
.step p { margin-top: 10px; font-size: 13px; line-height: 1.95; color: var(--muted); }

/* ---------- cta ---------- */
.cta { padding: 112px 0; background: var(--dark); color: #eef0eb; position: relative; overflow: hidden; }
.cta::after {
  content: "";
  position: absolute;
  right: -120px; top: -120px;
  width: 420px; height: 420px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  pointer-events: none;
}
.cta__inner { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); gap: 64px; align-items: end; position: relative; }
.cta .display { font-size: clamp(26px, 3.4vw, 42px); }
.cta p { margin-top: 22px; color: #b9cbd6; max-width: 520px; font-size: 14.5px; }
.cta .btn { justify-self: end; }
.cta .btn--light { border-color: rgba(255,255,255,0.55); }

/* ---------- footer ---------- */
.site-footer { background: var(--dark-2); color: #5c666c; padding: 64px 0 28px; font-size: 12.5px; border-top: 1px solid var(--line); }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 0.8fr)); gap: 48px; padding-bottom: 48px; border-bottom: 1px solid var(--line); }
.footer-brand__logo { height: 34px; width: auto; display: block; }
.footer-brand p { margin-top: 14px; line-height: 2; max-width: 340px; }
.footer-col h4 { font-size: 11px; font-family: var(--latin); letter-spacing: 0.14em; color: #93a0a7; margin-bottom: 18px; font-weight: 500; }
.footer-col li + li { margin-top: 10px; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { display: flex; justify-content: space-between; gap: 24px; padding-top: 24px; font-family: var(--latin); font-size: 10.5px; letter-spacing: 0.12em; color: #93a0a7; }

/* ---------- page hero (sub pages) ---------- */
.page-hero .lead, .cta p, .band h2, .band p { word-break: auto-phrase; }
.page-hero { padding: calc(var(--header-h) + 88px) 0 72px; border-bottom: 1px solid var(--line); }
.page-hero .display { margin-top: 26px; max-width: 900px; }
.page-hero .lead { margin-top: 26px; max-width: 640px; }
.crumbs { font-size: 11px; letter-spacing: 0.08em; color: var(--muted); }
.crumbs a:hover { color: var(--ink); }
.crumbs span { margin: 0 8px; }

/* ---------- prose ---------- */
.prose p { margin-top: 1.35em; }
.prose p:first-child { margin-top: 0; }
.prose { color: var(--ink-soft); line-height: 2.15; }

/* ---------- table ---------- */
.info-table { border-top: 1px solid var(--line-strong); }
.info-table > div { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.info-table dt { font-size: 12.5px; letter-spacing: 0.08em; color: var(--muted); }
.info-table dd { font-size: 14.5px; }

/* ---------- policy ---------- */
.policy { max-width: 760px; }
.policy h2 {
  margin-top: 62px; padding-top: 26px; border-top: 1px solid var(--line);
  font-family: var(--serif); font-size: 21px; font-weight: 500; line-height: 1.75;
  letter-spacing: 0.02em; color: var(--ink); word-break: auto-phrase;
}
.policy h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.page-hero--doc .display { font-size: clamp(26px, 3.4vw, 42px); letter-spacing: 0.02em; }
.policy h2 + p, .policy h2 + ol, .policy h2 + ul, .policy h2 + .info-table { margin-top: 20px; }
.policy p { font-size: 14.5px; }
.policy ol, .policy ul { margin-top: 1.2em; padding-left: 1.3em; }
.policy ol { list-style: decimal; }
.policy ul { list-style: disc; }
.policy li { font-size: 14.5px; line-height: 2.05; margin-top: 0.45em; }
.policy li::marker { color: var(--muted); }
.policy a { border-bottom: 1px solid var(--line-strong); word-break: break-all; }
.policy a:hover { color: var(--accent); border-color: var(--accent); }
.policy .info-table { margin-top: 24px; }
.policy .info-table + p { margin-top: 26px; }
.policy .info-table a { border-bottom: 0; }
.policy .small { line-height: 1.7; }
.policy__meta { margin-top: 62px; padding-top: 26px; border-top: 1px solid var(--line); font-size: 13px; line-height: 2; color: var(--muted); }
.policy__meta p + p { margin-top: 10px; }

/* ---------- people page ---------- */
.people-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px 40px; }
.person-card__avatar { width: 100%; max-width: 240px; }
.person-card h3 { margin-top: 24px; font-family: var(--serif); font-size: 22px; font-weight: 500; letter-spacing: 0.06em; }
.person-card h3 small { display: block; font-family: var(--latin); font-size: 10.5px; letter-spacing: 0.12em; color: var(--muted); margin-top: 6px; }
.person-card__role { margin-top: 10px; font-size: 12.5px; color: var(--accent); letter-spacing: 0.08em; }
.person-card p { margin-top: 14px; font-size: 13.5px; line-height: 2; color: var(--ink-soft); }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 760px); align-items: start; }
.form-section + .form-section { margin-top: 44px; padding-top: 40px; border-top: 1px solid var(--line); }
.form-section__title { font-family: var(--serif); font-size: 19px; margin-bottom: 26px; }
.field { margin-top: 22px; }
.field:first-of-type { margin-top: 0; }
.field label { display: flex; align-items: center; gap: 10px; font-size: 13px; letter-spacing: 0.06em; margin-bottom: 10px; }
.req { font-size: 10px; letter-spacing: 0.08em; color: var(--accent); border: 1px solid var(--accent); padding: 1px 6px; line-height: 1.6; }
.inp {
  width: 100%;
  background: #ffffff;
  border: 1px solid var(--line);
  padding: 12px 14px;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  border-radius: 0;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
  appearance: none;
}
.inp:hover { border-color: var(--line-strong); background: #fff; }
.inp:focus { outline: none; border-color: var(--accent); background: #fff; box-shadow: 0 0 0 1px var(--accent); }
textarea.inp { min-height: 180px; resize: vertical; line-height: 1.9; }
select.inp {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%233d4346' stroke-width='1.2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
  padding-right: 28px;
}
.hint { margin-top: 8px; font-size: 12px; color: var(--muted); line-height: 1.8; }
.hp { position: absolute; left: -9999px; }
.formmsg { margin-top: 24px; font-size: 13.5px; }
.formmsg.is-error { color: #9b2c1f; }
.contact-aside { border-top: 1px solid var(--line-strong); padding-top: 24px; }
.contact-aside h3 { font-family: var(--serif); font-size: 17px; margin-bottom: 16px; }
.contact-aside .info-table > div { grid-template-columns: 1fr; gap: 4px; padding: 14px 0; }
.contact-aside .info-table dt { font-size: 11px; }
.contact-aside .info-table dd { font-size: 13px; }
.contact-note { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); line-height: 2; }

/* ---------- thanks / 404 ---------- */
.center-page { min-height: 100vh; display: flex; flex-direction: column; }
.center-page main { flex: 1; display: grid; place-items: center; padding: calc(var(--header-h) + 80px) var(--gutter) 120px; }
.center-inner { max-width: 640px; }
.center-inner .display { font-size: clamp(26px, 4vw, 40px); margin-top: 24px; }
.center-inner p { margin-top: 22px; }
.center-inner .btn { margin-top: 40px; }
.err-code { font-family: var(--latin); font-size: 12px; letter-spacing: 0.24em; color: var(--accent); }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  :root { --gutter: 32px; }
  .hero .container { grid-template-columns: 1fr; }
  .hero__aside { display: none; }
  .svc { grid-template-columns: 48px minmax(0, 1fr) minmax(0, 1fr) 24px; gap: 24px; }
  .people-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta__inner { grid-template-columns: 1fr; gap: 40px; }
  .cta .btn { justify-self: start; }
  .crit-tech__v { font-size: 26px; }
  .role-name { font-size: 19px; }
  .role-row--1 .role-bar { width: 52%; }
  .role-row--2 .role-bar { width: 48%; }
  .role-row--3 .role-bar { width: 44%; }
  .role-note { width: 170px; font-size: 12px; }
  .chev-flow { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 32px; }
  .chev-item:nth-child(1) .chev { padding-left: 40px; clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 50%, calc(100% - 26px) 100%, 0 100%, 26px 50%); }
  .chev-item:nth-child(3n) .chev { margin-right: 0; }
  .chev-item:nth-child(3n+1) .chev { clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 50%, calc(100% - 26px) 100%, 0 100%); }
}

@media (max-width: 860px) {
  :root { --header-h: 66px; }
  .section { padding: 88px 0; }
  .section--tight { padding: 64px 0; }
  .hero { padding: calc(var(--header-h) + 64px) 0 64px; }
  .hero::before { background-size: calc(100% / 3) 100%; }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 28px;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
  }
  body.nav-open .nav { opacity: 1; visibility: visible; transform: none; }
  body.nav-open { overflow: hidden; }
  .nav { box-shadow: 0 24px 40px -24px rgba(20, 23, 26, 0.25); }
  .nav a { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
  .nav a::after { display: none; }
  .header-cta { display: none; }
  .nav-toggle { display: block; }

  .sec-head { grid-template-columns: 1fr; gap: 14px; margin-bottom: 44px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--line); }
  .stats--3 { grid-template-columns: 1fr; }
  .stats--3 .stat { border-right: 0; border-bottom: 1px solid var(--line); padding: 22px 0; }
  .stats--3 .stat:last-child { border-bottom: 0; }
  .brand__logo { height: 34px; }
  .svc { grid-template-columns: 40px minmax(0, 1fr) 24px; row-gap: 12px; }
  .svc-grid { grid-template-columns: 1fr; gap: 20px; }
  .svc-card { min-height: 0; padding: 28px 24px 30px; }
  .band { height: 420px; }
  .band__inner { padding-bottom: 34px; }
  .svc__text { grid-column: 2 / 3; }
  .svc__arrow { grid-row: 1; grid-column: 3; }
  .steps, .steps--3 { grid-template-columns: 1fr 1fr; gap: 28px 32px; }
  .flow { grid-template-columns: 1fr 1fr; gap: 28px 32px; }
  .flow__arrow { display: none; }
  .chev-flow { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 32px; }
  .chev-item:nth-child(1) .chev { padding-left: 40px; clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 50%, calc(100% - 26px) 100%, 0 100%, 26px 50%); }
  .chev-item:nth-child(3n) .chev { margin-right: 0; }
  .chev-item:nth-child(3n+1) .chev { clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 50%, calc(100% - 26px) 100%, 0 100%); }
  .person-teaser { grid-template-columns: 1fr; gap: 32px; }
  .person-teaser .avatar-wrap { max-width: 220px; }
  .contact-grid { grid-template-columns: 1fr; gap: 56px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .info-table > div { grid-template-columns: 120px minmax(0, 1fr); }
}

@media (max-width: 560px) {
  :root { --gutter: 22px; }
  body { font-size: 15px; line-height: 1.9; }
  .section { padding: 72px 0; }
  .hero { padding: calc(var(--header-h) + 48px) 0 48px; }
  .hero .display { margin-top: 26px; }
  .hero__actions { margin-top: 34px; gap: 12px; }
  .btn { width: 100%; padding: 14px 22px; }
  .hero__actions .btn { width: auto; flex: 1 1 auto; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; gap: 36px; }
  .br-pc { display: none; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { padding: 24px 14px 22px 0; }
  .people-grid { grid-template-columns: 1fr; gap: 48px; }
  .steps, .steps--3, .flow { grid-template-columns: 1fr; gap: 26px; }
  .chev-flow { grid-template-columns: 1fr; row-gap: 0; }
  .crit-bar { display: flex; }
  .crit-seg { height: 54px; padding: 0 0 10px 10px; font-size: 11px; letter-spacing: 0.06em; }
  .crit-groups { display: block; margin-top: 28px; }
  .crit-group { width: auto; padding: 0 0 20px; }
  .crit-group__name {
    display: block;
    font-family: var(--sans);
    font-size: 12px;
    letter-spacing: 0.14em;
    color: var(--accent);
    padding-bottom: 6px;
  }
  .crit-tech { padding: 22px 24px; gap: 16px; }
  .crit-tech__v { font-size: 22px; }
  .role-row { display: block; margin-bottom: 18px; }
  .role-bar {
    width: 100% !important;
    padding: 13px 18px;
    gap: 14px;
    border-top: 0;
  }
  .role-row--2 .role-bar { width: 92% !important; }
  .role-row--3 .role-bar { width: 84% !important; }
  .role-tail { display: none; }
  .role-note { display: block; width: auto; padding: 8px 0 0; font-size: 12px; }
  .role-name { font-size: 16px; }
  .role-idx { font-size: 10px; }
  .chev-flow .chev-item { margin-bottom: 24px; }
  .chev-flow .chev-item .chev {
    margin: 0;
    min-height: 0;
    padding: 18px 22px 30px;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 16px), 50% 100%, 0 calc(100% - 16px));
    color: #fff;
    flex-direction: row;
    align-items: baseline;
    justify-content: flex-start;
    gap: 14px;
  }
  .chev-flow .chev-item:first-child .chev { padding-left: 22px; }
  .chev-flow .chev-item:nth-child(6) .chev { color: #0d2233; }

  .chev__label { font-size: 16px; }
  .chev-item__note { margin-top: 10px; padding-right: 0; }
  .step { padding: 20px 0 0; }
  .footer-top { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
  .info-table > div { grid-template-columns: 1fr; gap: 2px; }
  .brand__sub { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
