/* ============================================================================
   CCBONLINE INC. — homepage layout layer
   Sits on top of tokens.css. Every colour, size and rule traces back to
   VI V3.1-R1 tokens. Nothing new is invented here.

   Layout responds to CONTAINER width (not viewport) so the same components
   render correctly full-page and inside a device frame.
   Layer 2 of 3: structure, components, responsive.
   ============================================================================ */

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

/* ---------- Focus — visible, on-system, never removed -------------------- */
:where(button, a, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
  border-radius: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 120;
  background: var(--ink);
  color: var(--paper);
  padding: 12px 18px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.skip-link:focus { left: 0; color: var(--paper); }

.page {
  background: #ffffff;
  color: var(--ink);
  font-family: var(--font-en);
  -webkit-font-smoothing: antialiased;
  container-type: inline-size;
  container-name: page;
  position: relative;
  overflow-x: clip;
}

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
}

/* ============================================================================
   UTILITY / ENTITY BAR
   ============================================================================ */
.util {
  background: var(--ink);
  color: rgba(247, 245, 240, 0.56);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.util .wrap {
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.util-l { display: flex; align-items: center; gap: 10px; min-width: 0; }
.util-dot { width: 4px; height: 4px; background: var(--teal); flex: none; }
.util strong { color: var(--paper); font-weight: 600; }
.util-serve,
.util-path {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.util-path { flex: none; }

/* ============================================================================
   HEADER / NAV
   ============================================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #fff;
  border-bottom: 1px solid var(--rule);
}
.nav-in {
  display: flex;
  align-items: center;
  gap: 44px;
  height: 76px;
}
.nav-logo {
  height: 25px;
  width: auto;
  display: block;
  flex: none;
}
.nav-links {
  display: flex;
  gap: 32px;
  height: 100%;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
  background: none;
  border: 0;
  padding: 0;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--ink-70);
  cursor: pointer;
  transition: color var(--dur) var(--ease);
  white-space: nowrap;
}
.nav-link:hover { color: var(--ink); }
.nav-link.is-active { color: var(--ink); }
.nav-link.is-active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--ink);
}
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 18px; }

/* language toggle — never allowed to wrap the 中文 label */
.lang {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--rule);
  flex: none;
  flex-shrink: 0;
}
.lang button {
  background: none;
  border: 0;
  padding: 0 10px;
  height: 30px;
  min-width: 38px;
  white-space: nowrap;
  word-break: keep-all;
  flex: none;
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ink-55);
  cursor: pointer;
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.lang button:hover { color: var(--ink); }
.lang button.is-on { background: var(--ink); color: var(--paper); }
.lang-sep { width: 1px; height: 30px; background: var(--rule); flex: none; }

.nav-toggle {
  display: none;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid var(--rule);
  padding: 0;
  cursor: pointer;
}
.nav-toggle i { display: block; width: 14px; height: 8px; position: relative; }
.nav-toggle i::before,
.nav-toggle i::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--ink);
  transition: transform var(--dur) var(--ease);
}
.nav-toggle i::before { top: 0; }
.nav-toggle i::after { bottom: 0; }
.nav-toggle[aria-expanded='true'] i::before { top: 3px; transform: rotate(45deg); }
.nav-toggle[aria-expanded='true'] i::after { bottom: 4px; transform: rotate(-45deg); }

.nav-sheet {
  border-bottom: 1px solid var(--rule);
  background: #fff;
  padding: 4px 0 20px;
}
.nav-sheet .sheet-link {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--rule-soft);
  padding: 15px 0;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
}
.nav-sheet .btn { margin-top: 18px; width: 100%; }

/* ============================================================================
   BUTTONS / LINKS
   ============================================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 46px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 0;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.005em;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              color var(--dur) var(--ease);
}
.btn-primary { background: var(--teal); border-color: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-ink); border-color: var(--teal-ink); color: #fff; }
.btn-secondary { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-secondary:hover { background: var(--paper-2); color: var(--ink); }
.btn-invert { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.btn-invert:hover { background: #fff; border-color: #fff; color: var(--ink); }
.btn-ghost-inv {
  background: transparent;
  border-color: rgba(247, 245, 240, 0.34);
  color: var(--paper);
}
.btn-ghost-inv:hover {
  border-color: var(--paper);
  background: rgba(247, 245, 240, 0.07);
  color: var(--paper);
}
.btn-sm { height: 38px; padding: 0 16px; font-size: 12px; }
.btn .ar { transition: transform var(--dur) var(--ease); }
.btn:hover .ar { transform: translateX(3px); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: none;
  border: 0;
  border-bottom: 1px solid rgba(8, 126, 117, 0.32);
  padding: 0 0 4px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--teal);
  cursor: pointer;
  text-align: left;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.link-arrow:hover { color: var(--teal-ink); border-color: var(--teal-ink); }
.link-arrow .ar { transition: transform var(--dur) var(--ease); }
.link-arrow:hover .ar { transform: translateX(3px); }

/* ============================================================================
   TYPE HELPERS
   ============================================================================ */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0;
  line-height: 1;
}
.eyebrow::before {
  content: '';
  width: 22px;
  height: 1px;
  background: currentColor;
  flex: none;
}

.h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(40px, 4.6cqi, 68px);
  line-height: 1;
  letter-spacing: -0.03em;
  margin: 0;
  text-wrap: balance;
}
.h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(28px, 3.3cqi, 44px);
  line-height: 1.08;
  letter-spacing: -0.026em;
  margin: 0;
  text-wrap: balance;
}
.h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  line-height: 1.35;
  letter-spacing: -0.012em;
  margin: 0;
  text-wrap: pretty;
}
.lead {
  font-size: 17px;
  line-height: 1.62;
  color: var(--ink-70);
  margin: 0;
  max-width: 58ch;
  text-wrap: pretty;
}
.micro {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-55);
  margin: 0;
  line-height: 1.4;
}

/* ============================================================================
   HERO
   ============================================================================ */
.hero {
  position: relative;
  border-bottom: 1px solid var(--rule);
  padding: 58px 0 0;
  background-color: #fff;
  background-image: linear-gradient(to right, rgba(24, 47, 59, 0.045) 0 1px, transparent 1px 100%);
  background-size: calc(100% / 8) 100%;
  background-position: -1px 0;
}
.hero-top { padding-bottom: 44px; }
.hero h1 { max-width: 21ch; margin-top: 26px; }

.promise {
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
  margin: 22px 0 0;
  padding-top: 13px;
  border-top: 1px solid var(--rule);
  max-width: none;
}
.promise-main {
  display: block;
  flex: none;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.promise-alt {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  font-size: 13px;
  color: var(--ink-55);
  letter-spacing: 0.01em;
  max-width: none;
}

.hero-split {
  display: grid;
  grid-template-columns: 1fr 452px;
  gap: 72px;
  align-items: start;
  border-top: 1px solid var(--rule);
  padding: 30px 0 34px;
}
.hero-lead { font-size: 17.5px; line-height: 1.62; max-width: 46ch; }
.hero-sub {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--ink-55);
  margin: 16px 0 0;
  max-width: 44ch;
  padding-left: 14px;
  border-left: 1px solid var(--rule);
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-top: 30px;
  flex-wrap: wrap;
}

/* stage list — the four-stage index */
.stage-list { border-top: 2px solid var(--ink); }
.stage-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 9px 0 8px;
}
.stage-head .micro:last-child { color: var(--ink-40); }
.stage-row {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  border-top: 1px solid var(--rule);
  padding: 14px 0 15px;
  font-family: inherit;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease);
}
.stage-row:hover { background: rgba(247, 245, 240, 0.9); }
.stage-row:last-child { border-bottom: 1px solid var(--rule); }
.stage-no {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--teal);
  font-variant-numeric: tabular-nums;
  line-height: 1.5;
}
.stage-name {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1.3;
}
.stage-q {
  display: block;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink-70);
  margin-top: 5px;
}

.hero-foot {
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 12px 0 13px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-55);
}
.hero-foot span:last-child { color: var(--ink-40); }

/* ============================================================================
   SECTION FRAME
   ============================================================================ */
.sect { padding: 96px 0; border-bottom: 1px solid var(--rule); scroll-margin-top: 76px; }
.sect-paper { background: var(--paper); }
.sect-deep { background: var(--ink); color: var(--paper); border-bottom: 0; scroll-margin-top: 76px; }

.sec-head {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 72px;
  align-items: end;
  margin-bottom: 56px;
}
.sec-head .eyebrow { margin-bottom: 20px; }
.sec-head .h2 { max-width: 26ch; }
.sec-head .lead { font-size: 15.5px; max-width: 44ch; }
.sec-head-r { padding-bottom: 4px; }

/* ============================================================================
   THESIS (deep band)
   ============================================================================ */
.thesis .eyebrow { color: var(--inverse-cjk); }
.thesis-head { margin-bottom: 52px; display: flex; flex-direction: column; gap: 20px; }
.thesis-head-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 72px;
  align-items: end;
}
.thesis .h2 { color: var(--paper); max-width: 26ch; }
.thesis-lead {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(247, 245, 240, 0.6);
  margin: 0;
  max-width: 40ch;
  text-wrap: pretty;
}
.thesis-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(223, 230, 225, 0.22);
}
.thesis-item { padding: 26px 32px 30px 0; }
.thesis-item:not(:last-child) { border-right: 1px solid rgba(223, 230, 225, 0.22); }
.thesis-item + .thesis-item { padding-left: 32px; }
.thesis-no {
  display: block;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--inverse-cjk);
  font-variant-numeric: tabular-nums;
  margin-bottom: 18px;
}
.thesis-item h3 {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.38;
  letter-spacing: -0.012em;
  color: var(--paper);
  margin: 0 0 12px;
  max-width: 24ch;
}
.thesis-item p {
  font-size: 13.5px;
  line-height: 1.66;
  color: rgba(247, 245, 240, 0.6);
  margin: 0;
  overflow-x: clip;
}
.thesis-note {
  margin-top: 34px;
  padding-top: 16px;
  border-top: 1px solid rgba(223, 230, 225, 0.22);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11.5px;
  letter-spacing: 0.02em;
  color: rgba(247, 245, 240, 0.46);
}
.thesis-note b { color: var(--inverse-cjk); font-weight: 600; }

/* ============================================================================
   SERVICES RULE-TABLE
   ============================================================================ */
.tbl { border-top: 2px solid var(--ink); }
.tbl-head {
  display: grid;
  grid-template-columns: 62px 1.1fr 1.05fr 1.15fr;
  gap: 24px;
  background: var(--ink);
  color: rgba(247, 245, 240, 0.62);
  padding: 10px 18px 11px;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.tbl-head span:first-child { color: rgba(247, 245, 240, 0.4); }

.svc { border-bottom: 1px solid var(--rule); }
.svc-row {
  display: grid;
  grid-template-columns: 62px 1.1fr 1.05fr 1.15fr;
  gap: 24px;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  padding: 26px 18px 27px;
  font-family: inherit;
  cursor: pointer;
  align-items: start;
  transition: background-color var(--dur) var(--ease);
}
.svc-row:hover { background: #fbf9f5; }
.svc.is-open .svc-row { background: var(--paper); }
.svc-no {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--teal);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.svc-name {
  display: block;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.36;
  letter-spacing: -0.014em;
  color: var(--ink);
}
.svc-stage {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 9px;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-55);
}
.svc-stage i { display: block; width: 4px; height: 4px; background: var(--teal); flex: none; }
.svc-alt {
  display: block;
  margin-top: 6px;
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--ink-55);
  letter-spacing: 0.005em;
}
.svc-q { font-size: 13px; line-height: 1.55; color: var(--ink-70); }
.svc-d { font-size: 13px; line-height: 1.55; color: var(--ink); }
.svc-d-label { display: none; }

.svc-detail {
  background: var(--paper);
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 56px;
  padding: 26px 18px 30px 80px;
  animation: fadeIn 220ms var(--ease);
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-2px); }
  to { opacity: 1; transform: none; }
}
.svc-detail .body {
  font-size: 13.5px;
  line-height: 1.68;
  color: var(--ink-70);
  margin: 0;
  max-width: 62ch;
}
.svc-detail-side {
  border-left: 1px solid var(--rule);
  padding-left: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}
.svc-detail-side .micro { display: block; margin-bottom: 6px; }
.svc-cadence { font-size: 13px; font-weight: 500; color: var(--ink); margin: 0; }

/* ============================================================================
   WHO WE SERVE
   ============================================================================ */
.who-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--rule);
}
.who-col { padding: 30px 44px 0 0; }
.who-col + .who-col { border-left: 1px solid var(--rule); padding: 30px 0 0 44px; }
.who-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 16px;
}
.who-label i { width: 22px; height: 1px; background: currentColor; display: block; }
.who-col h3 {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.018em;
  line-height: 1.3;
  margin: 0 0 22px;
  max-width: 24ch;
}
.who-list { list-style: none; margin: 0; padding: 0; }
.who-list li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--rule);
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-70);
}
.who-list li:last-child { border-bottom: 1px solid var(--rule); }
.who-list li span:first-child {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-40);
  font-variant-numeric: tabular-nums;
  padding-top: 3px;
}
.who-note {
  margin-top: 36px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--ink-70);
}
.who-note span { max-width: 62ch; }

/* ============================================================================
   APPROACH
   ============================================================================ */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--rule);
}
.step { padding: 26px 40px 4px 0; position: relative; }
.step:not(:last-child) { border-right: 1px solid var(--rule); }
.step + .step { padding-left: 40px; }
.step-head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.step-no {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--teal);
  font-variant-numeric: tabular-nums;
}
.step-line { flex: 1; height: 1px; background: var(--rule); }
.step h3 { font-size: 17px; margin-bottom: 10px; }
.step p { font-size: 13.5px; line-height: 1.65; color: var(--ink-70); margin: 0; }
.step-foot {
  margin-top: 36px;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
  font-size: 11.5px;
  line-height: 1.65;
  color: var(--ink-55);
  max-width: 78ch;
}

/* ============================================================================
   SCOPE OF DELIVERY
   ============================================================================ */
.scope-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 72px;
  align-items: start;
}
.scope-caps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--rule);
}
.cap { padding: 18px 28px 20px 0; border-bottom: 1px solid var(--rule); }
.cap:nth-child(odd) { border-right: 1px solid var(--rule); }
.cap:nth-child(even) { padding-left: 28px; padding-right: 0; }
.cap-no {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--teal);
  font-variant-numeric: tabular-nums;
  display: block;
  margin-bottom: 8px;
}
.cap h3 { font-size: 14.5px; margin-bottom: 7px; letter-spacing: -0.008em; }
.cap p { font-size: 12.5px; line-height: 1.6; color: var(--ink-70); margin: 0; }

.scope-aside { display: flex; flex-direction: column; gap: 24px; }
.photo-frame {
  width: 100%;
  height: 258px;
  border: 1px solid var(--rule);
  background: var(--paper-2);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
  text-align: left;
}
.photo-frame::before {
  content: '';
  position: absolute;
  inset: 10px;
  border: 1px dashed rgba(24, 47, 59, 0.18);
  pointer-events: none;
}
.photo-frame .micro { position: relative; font-size: 9px; }
.photo-frame .note {
  position: relative;
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--ink-55);
  margin-top: 5px;
  max-width: 40ch;
}
.boundary { border-top: 2px solid var(--ink); padding-top: 16px; }
.boundary h4 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 9px;
}
.boundary p { font-size: 12.5px; line-height: 1.65; color: var(--ink-70); margin: 0; }

/* ============================================================================
   CLOSING CTA BAND
   ============================================================================ */
.cta { padding: 96px 0 0; }
.cta-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 80px;
  align-items: start;
  padding-bottom: 88px;
}
.cta .eyebrow { color: var(--inverse-cjk); }
.cta .h2 { color: var(--paper); max-width: 22ch; }
.cta-lead {
  margin-top: 24px;
  font-size: 15px;
  line-height: 1.68;
  color: rgba(247, 245, 240, 0.66);
  max-width: 52ch;
}
.cta-side { display: flex; flex-direction: column; gap: 18px; padding-top: 6px; }
.cta-side .btn { width: 100%; }
.cta-note {
  font-size: 11px;
  line-height: 1.6;
  color: rgba(247, 245, 240, 0.44);
  margin: 4px 0 0;
  padding-top: 16px;
  border-top: 1px solid rgba(223, 230, 225, 0.18);
}

/* ============================================================================
   FOOTER
   ============================================================================ */
.footer { padding: 56px 0 30px; background: #fff; }
.foot-top { display: flex; justify-content: space-between; gap: 56px; align-items: flex-start; }
.foot-brand { max-width: 330px; }
.foot-logo { height: 30px; width: auto; display: block; }
.foot-cols { display: flex; gap: 64px; }
.foot-col h5 {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-55);
  margin: 0 0 13px;
}
.foot-col a,
.foot-col button {
  display: block;
  background: none;
  border: 0;
  padding: 0;
  text-align: left;
  font-family: inherit;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink-70);
  margin-bottom: 9px;
  cursor: pointer;
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}
.foot-col a:hover,
.foot-col button:hover { color: var(--teal); }
.foot-legal {
  margin-top: 44px;
  border-top: 1px solid var(--rule);
  padding-top: 15px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 10px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-55);
}
.foot-legal span:last-child { color: var(--ink-40); }

/* ============================================================================
   INQUIRY DIALOG
   ============================================================================ */
.scrim {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(24, 47, 59, 0.46);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fadeIn 160ms var(--ease);
  overscroll-behavior: contain;
}
.dialog {
  background: #fff;
  width: 100%;
  max-width: 580px;
  max-height: 90vh;
  overflow: auto;
  border-top: 2px solid var(--ink);
  box-shadow: var(--shadow-overlay);
  padding: 32px 34px 28px;
  animation: fadeIn 200ms var(--ease);
}
body.is-locked { overflow: hidden; }
.dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}
.dialog h3 {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.018em;
  margin: 0 0 10px;
}
.dialog .sub {
  font-size: 12.5px;
  line-height: 1.62;
  color: var(--ink-70);
  margin: 0 0 24px;
  max-width: 46ch;
}
.dialog-x {
  background: none;
  border: 1px solid var(--rule);
  width: 44px;
  height: 44px;
  flex: none;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  color: var(--ink-70);
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
  margin: -8px -8px 0 0;
}
.dialog-x:hover { border-color: var(--ink); color: var(--ink); }
.field { margin-bottom: 15px; }
.field label {
  display: block;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-70);
  margin-bottom: 7px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 13.5px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 0;
  padding: 11px 12px;
  outline: none;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 2px rgba(8, 126, 117, 0.13);
}
.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: #a03b32; }
.field-error {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  line-height: 1.5;
  color: #a03b32;
}
.field textarea { resize: vertical; min-height: 78px; line-height: 1.6; }
.field-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.dialog-foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
  flex-wrap: wrap;
}
.dialog-foot .fine { font-size: 10px; line-height: 1.55; color: var(--ink-55); max-width: 30ch; }
.dialog-status {
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px solid #d8c7b0;
  background: #fdfaf4;
  font-size: 12px;
  line-height: 1.6;
  color: var(--ink-70);
}
.sent { padding: 4px 0; }
.sent .tick {
  width: 30px;
  height: 30px;
  border: 1px solid var(--teal);
  color: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  margin-bottom: 18px;
}
.sent p { font-size: 13px; line-height: 1.68; color: var(--ink-70); max-width: 46ch; }

/* ============================================================================
   CONTAINER RESPONSIVE  (1080 / 880 / 620)
   ============================================================================ */
@container page (max-width: 1080px) {
  .wrap { padding: 0 36px; }
  .hero-split { grid-template-columns: 1fr 380px; gap: 48px; }
  .sec-head { grid-template-columns: 1fr 320px; gap: 48px; }
  .tbl-head,
  .svc-row { grid-template-columns: 52px 1fr 1fr 1.05fr; gap: 20px; }
  .scope-grid { gap: 48px; }
  .cta-grid { gap: 56px; }
}

@container page (max-width: 880px) {
  .wrap { padding: 0 28px; }
  .nav-in { height: 66px; gap: 20px; }
  .nav-links { display: none; }
  .nav-right .btn { display: none; }
  .nav-toggle { display: flex; margin-left: auto; }
  .nav-right { margin-left: 0; gap: 12px; }

  .hero { padding-top: 52px; }
  .hero-top { padding-bottom: 38px; }
  .hero h1 { margin-top: 22px; max-width: 22ch; }
  .hero-split { grid-template-columns: 1fr; gap: 34px; padding: 28px 0 34px; }
  .hero-lead { max-width: 100%; }

  .sect { padding: 68px 0; }
  .sec-head {
    grid-template-columns: 1fr;
    gap: 22px;
    align-items: start;
    margin-bottom: 38px;
  }
  .sec-head-r { padding-bottom: 0; }
  .sec-head .h2 { max-width: 30ch; }

  .thesis-grid { grid-template-columns: 1fr; }
  .thesis-head-grid { grid-template-columns: 1fr; gap: 20px; align-items: start; }
  .thesis .h2 { max-width: 28ch; }
  .thesis-item,
  .thesis-item + .thesis-item { padding: 22px 0 24px; border-right: 0; }
  .thesis-item:not(:last-child) { border-bottom: 1px solid rgba(223, 230, 225, 0.22); }
  .thesis-item h3 { max-width: 34ch; }

  .tbl-head { display: none; }
  .svc-row {
    grid-template-columns: 40px 1fr;
    gap: 4px 14px;
    padding: 22px 2px 24px;
    border-bottom: 0;
  }
  .svc-no { grid-row: span 3; font-size: 17px; }
  .svc-name { font-size: 15.5px; }
  .svc-q { grid-column: 2; margin-top: 8px; }
  .svc-d {
    grid-column: 2;
    margin-top: 10px;
    padding-left: 12px;
    border-left: 1px solid var(--rule);
    color: var(--ink-70);
  }
  .svc-d-label { display: block; margin-bottom: 5px; font-size: 9px; }
  .svc-detail { grid-template-columns: 1fr; gap: 20px; padding: 22px 2px 24px 54px; }
  .svc-detail-side {
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid var(--rule);
    padding-top: 16px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .who-grid { grid-template-columns: 1fr; }
  .who-col,
  .who-col + .who-col { padding: 26px 0 0; border-left: 0; }
  .who-col + .who-col { border-top: 1px solid var(--rule); margin-top: 28px; }

  .steps { grid-template-columns: 1fr; }
  .step,
  .step + .step { padding: 22px 0 24px; border-right: 0; }
  .step:not(:last-child) { border-bottom: 1px solid var(--rule); }

  .scope-grid { grid-template-columns: 1fr; gap: 34px; }
  .photo-frame { height: 220px; }

  .cta { padding-top: 68px; }
  .cta-grid { grid-template-columns: 1fr; gap: 32px; padding-bottom: 60px; }
  .cta-side { padding-top: 0; }

  .foot-top { flex-direction: column; gap: 34px; }
  .foot-cols { gap: 44px; flex-wrap: wrap; }
  .foot-brand { max-width: 100%; }
}

@container page (max-width: 620px) {
  .wrap { padding: 0 20px; }
  .util { font-size: 9.5px; letter-spacing: 0.1em; }
  .util .wrap { height: 30px; gap: 12px; }
  .util-serve { display: none; }

  .nav-in { height: 60px; gap: 12px; }
  .nav-logo { height: 21px; }
  .lang button { min-width: 34px; padding: 0 8px; font-size: 10.5px; }
  .nav-right { gap: 10px; }
  .nav-toggle { width: 34px; height: 34px; flex: none; }
  .nav-toggle i { width: 12px; height: 7px; }

  .hero { padding-top: 40px; background-size: calc(100% / 4) 100%; }
  .hero-top { padding-bottom: 30px; }
  .promise { margin-top: 22px; gap: 4px; flex-direction: column; align-items: flex-start; }
  .promise-main { font-size: 13.5px; flex: none; }
  .promise-alt { font-size: 11.5px; flex: none; }
  .hero-actions { gap: 16px; margin-top: 24px; flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .hero-actions .link-arrow {
    justify-content: space-between;
    width: 100%;
    border-bottom-color: var(--rule);
    padding-bottom: 12px;
  }
  .hero-sub { font-size: 12.5px; }

  .stage-row { grid-template-columns: 26px 1fr; gap: 8px; padding: 12px 0 13px; }
  .stage-q { font-size: 12px; }
  .hero-foot { flex-direction: column; align-items: flex-start; gap: 6px; padding: 14px 0 16px; }

  .sect { padding: 54px 0; }
  .sec-head { margin-bottom: 30px; }
  .sec-head .lead { font-size: 14.5px; }

  .svc-row { padding: 20px 0 22px; }
  .svc-detail { padding-left: 2px; }
  .svc-detail-side { flex-direction: column; align-items: flex-start; gap: 12px; }

  .who-col h3 { font-size: 18px; }
  .who-note { gap: 14px; flex-direction: column; align-items: flex-start; }

  .scope-caps { grid-template-columns: 1fr; }
  .cap,
  .cap:nth-child(odd),
  .cap:nth-child(even) { padding: 16px 0 18px; border-right: 0; }
  .photo-frame { height: 190px; }

  .cta { padding-top: 54px; }
  .cta-grid { padding-bottom: 48px; }
  .cta-lead { font-size: 14px; }

  .footer { padding: 40px 0 24px; }
  .foot-cols { flex-direction: column; gap: 26px; }
  .foot-cols > div { width: 100%; }
  .foot-col a,
  .foot-col button { margin-bottom: 7px; }
  .foot-legal { flex-direction: column; gap: 8px; margin-top: 30px; font-size: 9.5px; }

  .dialog { padding: 24px 20px; max-height: 92vh; }
  .field-2 { grid-template-columns: 1fr; gap: 0; }
  .dialog-foot { flex-direction: column; align-items: stretch; gap: 14px; }
  .dialog-foot .btn { width: 100%; }
  .scrim { padding: 12px; }
}

/* ============================================================================
   DIALOG / 404 helpers  (no inline styles anywhere — strict CSP)
   ============================================================================ */
.sent-actions { margin-top: 22px; }

.notfound { padding: 96px 0; }
.notfound .h2 { margin-top: 20px; }
.notfound .lead { margin-top: 18px; }
.notfound .notfound-actions { margin-top: 28px; }

@container page (max-width: 620px) {
  .notfound { padding: 54px 0; }
}
