:root {
  --deep: #08726c;
  --deep-2: #075f5a;
  --deep-3: #064a46;
  --mint: #a8d2cd;
  --mint-soft: #e5f0ee;
  --lime: #d0dd58;
  --paper: #f3f7f6;
  --white: #ffffff;
  --ink: #172424;
  --muted: #75827f;
  --line: #d9e6e3;
  --shadow: 0 22px 60px rgba(16, 70, 64, 0.08);
  --radius: 24px;
  --header-h: 74px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: clip;
  color: var(--ink);
  background: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
a { -webkit-tap-highlight-color: transparent; }

button { font: inherit; }

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

.skip-link {
  position: fixed;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 14px;
  color: var(--white);
  background: var(--deep-3);
  border-radius: 10px;
  transition: top 0.2s ease;
}

.skip-link:focus { top: 12px; }

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

.shell {
  width: calc(100% - 32px);
  max-width: 1180px;
  margin-inline: auto;
}

.site-header {
  height: var(--header-h);
  position: sticky;
  z-index: 50;
  top: 0;
  background: rgba(243, 247, 246, 0.93);
  border-bottom: 1px solid rgba(8, 114, 108, 0.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.header-inner {
  width: calc(100% - 32px);
  max-width: 1240px;
  height: 100%;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  flex-direction: column;
}

.brand-cn {
  color: var(--deep);
  font-size: 20px;
  line-height: 1;
  font-weight: 900;
  font-style: italic;
  letter-spacing: -1.5px;
}

.brand-en {
  margin-top: 5px;
  color: var(--deep);
  font-size: 8px;
  line-height: 1;
  font-weight: 800;
  font-style: italic;
  letter-spacing: 1.4px;
}

.desktop-nav { display: none; }

.header-action {
  height: 40px;
  padding: 0 15px;
  display: inline-flex;
  align-items: center;
  gap: 15px;
  color: var(--white);
  background: var(--deep);
  border: 0;
  border-radius: 24px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.page-view[hidden] { display: none !important; }
.page-view.is-active { animation: view-in 0.36s ease both; }

@keyframes view-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.home-hero {
  min-height: calc(100svh - var(--header-h));
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: var(--deep);
  border-radius: 0 0 36px 36px;
}

.home-layout {
  min-height: calc(100svh - var(--header-h));
  padding-top: 48px;
  padding-bottom: 92px;
  position: relative;
  z-index: 3;
  display: grid;
  align-content: center;
  gap: 40px;
}

.home-intro h1 {
  max-width: 630px;
  margin: 22px 0 0;
  font-size: clamp(46px, 13vw, 76px);
  line-height: 1.05;
  font-weight: 750;
  letter-spacing: -4px;
}

.home-entrances {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-self: end;
  gap: 10px;
}

.home-entry {
  min-width: 0;
  min-height: 156px;
  padding: 18px 62px 18px 18px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  color: var(--deep-3);
  background: var(--white);
  border-radius: 24px;
  box-shadow: 0 20px 55px rgba(3, 44, 41, 0.2);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.home-entry-firm { background: var(--mint); }

.home-entry-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  color: var(--deep);
}

.home-entry-top span { font-size: 10px; font-weight: 850; }
.home-entry-top small { max-width: 82px; text-align: right; font-size: 7px; font-weight: 850; letter-spacing: 0.9px; line-height: 1.4; }

.home-entry h2 {
  margin: 18px 0 0;
  font-size: clamp(23px, 7vw, 34px);
  line-height: 1.14;
  letter-spacing: -1.5px;
}

.home-entry-firm h2 { padding-right: 8px; }

.home-entry-price {
  margin-top: auto;
  padding-top: 13px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.home-entry-price > span {
  padding: 7px 8px;
  display: grid;
  color: var(--deep-3);
  background: var(--lime);
  border-radius: 12px;
}

.home-entry-price small { font-size: 7px; }
.home-entry-price b { margin-top: 2px; font-size: 10px; }

.home-entry-arrow {
  width: 34px;
  height: 34px;
  position: absolute;
  right: 13px;
  bottom: 13px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--deep);
  border-radius: 50%;
  font-size: 16px;
}

.home-entry-ai .home-entry-arrow { display: grid; }

.hero-content {
  padding-top: 62px;
  padding-bottom: 64px;
  position: relative;
  z-index: 3;
}

.eyebrow {
  margin: 0;
  color: var(--deep);
  font-size: 11px;
  line-height: 1.4;
  font-weight: 800;
  letter-spacing: 2.2px;
}

.eyebrow-light { color: #b9ddd8; }

.home-hero h1 {
  max-width: 630px;
  margin: 24px 0 0;
  font-size: clamp(48px, 15vw, 82px);
  line-height: 1.05;
  font-weight: 750;
  letter-spacing: -4px;
}

.hero-rule {
  width: 94px;
  height: 5px;
  margin-top: 28px;
  background: var(--lime);
  border-radius: 4px;
}

.hero-lead {
  margin: 21px 0 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 17px;
}

.hero-meta {
  margin-top: 46px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-meta a {
  padding: 10px 14px;
  color: #d5e9e6;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 24px;
  font-size: 11px;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.hero-meta a:hover,
.hero-meta a:focus-visible {
  color: var(--deep-3);
  background: var(--lime);
  border-color: var(--lime);
}

.hero-geometry,
.portal-geometry { position: absolute; inset: 0; pointer-events: none; }

.hero-orbit {
  position: absolute;
  display: block;
  border-radius: 50%;
  border-style: solid;
}

.orbit-large {
  width: 410px;
  height: 410px;
  right: -250px;
  top: -68px;
  border-width: 72px;
  border-color: rgba(168, 210, 205, 0.28);
}

.orbit-small {
  width: 185px;
  height: 185px;
  right: 28px;
  bottom: -116px;
  border-width: 46px;
  border-color: rgba(208, 221, 88, 0.21);
}

.hero-block {
  position: absolute;
  display: block;
  background: rgba(168, 210, 205, 0.13);
}

.block-one { width: 82px; height: 82px; right: 22px; top: 228px; border-radius: 82px 0 0 0; }
.block-two { width: 46px; height: 46px; right: 104px; top: 310px; }

.hero-pixels {
  width: 86px;
  position: absolute;
  right: 35px;
  top: 338px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  opacity: 0.58;
}

.hero-pixels i {
  width: 9px;
  aspect-ratio: 1;
  background: #cde5e2;
  border-radius: 50%;
}

.portal-section { padding-top: 42px; padding-bottom: 110px; }

.section-heading,
.inner-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.section-heading h2,
.inner-intro h2 {
  margin: 6px 0 0;
  font-size: 30px;
  line-height: 1.15;
  letter-spacing: -1px;
}

.section-note {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.portal-grid {
  margin-top: 22px;
  display: grid;
  gap: 16px;
}

.portal-card {
  min-height: 360px;
  padding: 24px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-radius: 30px;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.portal-ai { color: var(--white); background: var(--deep-2); }
.portal-firm { color: var(--deep-3); background: var(--mint); }

.portal-topline {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.3px;
  opacity: 0.73;
}

.portal-price-summary {
  min-width: 112px;
  padding: 13px;
  position: absolute;
  z-index: 3;
  right: 22px;
  top: 73px;
  display: grid;
  gap: 5px;
  color: var(--deep-3);
  background: var(--lime);
  border-radius: 17px;
}

.portal-price-summary span { font-size: 8px; font-weight: 850; letter-spacing: 1px; }
.portal-price-summary b { font-size: 13px; }

.portal-copy {
  margin-top: auto;
  position: relative;
  z-index: 2;
}

.portal-copy > p {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 700;
  opacity: 0.66;
}

.portal-copy h2 {
  margin: 0;
  font-size: clamp(38px, 11vw, 54px);
  line-height: 1.08;
  letter-spacing: -2.5px;
}

.portal-tags {
  margin-top: 25px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.portal-tags span {
  padding: 8px 11px;
  border: 1px solid currentColor;
  border-radius: 19px;
  font-size: 10px;
  opacity: 0.66;
}

.portal-arrow {
  width: 52px;
  height: 52px;
  position: absolute;
  z-index: 3;
  right: 20px;
  bottom: 20px;
  display: grid;
  place-items: center;
  color: var(--deep-3);
  background: var(--white);
  border-radius: 50%;
  font-size: 24px;
}

.portal-firm .portal-arrow { color: var(--white); background: var(--deep); }

.portal-quarter {
  width: 230px;
  height: 230px;
  position: absolute;
  right: -86px;
  top: -94px;
  border-radius: 0 0 0 230px;
  background: rgba(168, 210, 205, 0.24);
}

.portal-dot-grid {
  width: 88px;
  height: 66px;
  position: absolute;
  right: 30px;
  top: 138px;
  opacity: 0.34;
  background-image: radial-gradient(#d9ebe8 3px, transparent 3.6px);
  background-size: 17px 17px;
}

.portal-ring {
  width: 255px;
  height: 255px;
  position: absolute;
  right: -119px;
  top: -105px;
  border: 50px solid rgba(8, 114, 108, 0.16);
  border-radius: 50%;
}

.portal-square {
  width: 76px;
  height: 76px;
  position: absolute;
  right: 18px;
  top: 164px;
  background: rgba(8, 114, 108, 0.12);
  border-radius: 0 0 0 76px;
}

.contact-strip {
  width: 100%;
  min-height: 94px;
  margin-top: 18px;
  padding: 18px;
  display: grid;
  grid-template-columns: 45px 1fr auto;
  align-items: center;
  gap: 13px;
  text-align: left;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  cursor: pointer;
}

.contact-mark {
  width: 45px;
  height: 45px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--deep);
  border-radius: 15px;
  font-size: 20px;
}

.contact-strip small,
.contact-strip strong { display: block; }
.contact-strip small { color: var(--deep); font-size: 8px; font-weight: 800; letter-spacing: 1.2px; }
.contact-strip strong { margin-top: 4px; font-size: 16px; }
.contact-status { display: none; color: var(--muted); font-size: 11px; }
.contact-arrow { color: var(--deep); font-size: 21px; }

.inner-hero {
  min-height: 400px;
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: var(--deep);
  border-radius: 0 0 36px 36px;
}

.inner-hero-ai { background: var(--deep-2); }
.inner-hero-firm { color: var(--deep-3); background: var(--mint); }

.firm-hero-split {
  display: grid;
  gap: 30px;
}

.firm-hero-contact {
  width: 100%;
  padding: 12px;
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: minmax(120px, 170px) 1fr;
  align-items: center;
  gap: 14px;
  color: var(--deep-3);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(8, 114, 108, 0.12);
  border-radius: 25px;
  box-shadow: 0 20px 55px rgba(4, 62, 58, 0.13);
  cursor: pointer;
}

.firm-hero-contact img {
  width: 100%;
  display: block;
  border-radius: 14px;
}

.firm-hero-contact > span {
  padding-right: 6px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.6;
}

.firm-hero-contact > span b { margin-left: 4px; font-size: 17px; }

.inner-hero-content {
  padding-top: 34px;
  padding-bottom: 54px;
  position: relative;
  z-index: 3;
}

.back-link {
  margin-bottom: 55px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 650;
}

.inner-hero-firm .back-link { color: rgba(6, 74, 70, 0.7); }
.inner-hero-firm .eyebrow-light { color: rgba(6, 74, 70, 0.68); }

.inner-hero h1 {
  margin: 22px 0 0;
  font-size: clamp(48px, 14vw, 76px);
  line-height: 1.07;
  letter-spacing: -3px;
}

.inner-caption {
  margin: 23px 0 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
}

.inner-hero-firm .inner-caption { color: rgba(6, 74, 70, 0.6); }

.inner-orbit {
  width: 340px;
  height: 340px;
  position: absolute;
  right: -190px;
  bottom: -185px;
  border: 68px solid rgba(168, 210, 205, 0.22);
  border-radius: 50%;
}

.firm-geometry {
  width: 220px;
  height: 220px;
  position: absolute;
  right: -45px;
  bottom: -22px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  transform: rotate(4deg);
  opacity: 0.42;
}

.firm-geometry span:nth-child(1) { border-radius: 100% 0 0 0; background: var(--deep); }
.firm-geometry span:nth-child(2) { background: #e4f0ee; }
.firm-geometry span:nth-child(3) { background: #e4f0ee; }
.firm-geometry span:nth-child(4) { border-radius: 0 0 100% 0; background: var(--deep); }

.inner-content { padding-top: 42px; padding-bottom: 120px; }
.module-count { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: 1.2px; }

.module-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.module-card {
  min-height: 198px;
  padding: 17px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  text-align: left;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 22px;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.module-wide { grid-column: 1 / -1; }
.module-featured { min-height: 235px; background: var(--mint-soft); }
.module-mint { color: var(--deep-3); background: var(--mint); border-color: var(--mint); }
.module-lime { color: #374501; background: var(--lime); border-color: var(--lime); }
.module-dark { color: var(--white); background: var(--deep-2); border-color: var(--deep-2); }

.module-index,
.module-label,
.module-state { display: block; }

.module-index {
  color: var(--deep);
  font-size: 11px;
  font-weight: 800;
}

.module-dark .module-index { color: #b6dcd7; }
.module-lime .module-index { color: #536605; }

.module-label {
  margin-top: 24px;
  color: var(--deep);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 1.2px;
}

.module-dark .module-label { color: #b6dcd7; }
.module-lime .module-label { color: #536605; }

.module-card strong {
  max-width: 88%;
  margin-top: 10px;
  display: block;
  font-size: 19px;
  line-height: 1.32;
}

.module-wide strong { font-size: 24px; }

.module-state {
  margin-top: auto;
  padding-top: 22px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.module-dark .module-state { color: rgba(255, 255, 255, 0.58); }
.module-lime .module-state { color: rgba(55, 69, 1, 0.66); }

.module-arrow {
  position: absolute;
  right: 15px;
  bottom: 14px;
  color: var(--deep);
  font-size: 18px;
  font-style: normal;
}

.module-dark .module-arrow { color: var(--white); }
.module-lime .module-arrow { color: #455602; }

.site-footer {
  display: none;
  color: #c8dcda;
  background: var(--deep-3);
}

.footer-inner {
  min-height: 180px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 36px;
}

.footer-brand .brand-cn,
.footer-brand .brand-en { color: var(--white); }
.site-footer p { margin: 0; font-size: 13px; }
.site-footer > span,
.footer-inner > span { color: rgba(255, 255, 255, 0.48); font-size: 11px; }

.mobile-nav {
  height: calc(66px + env(safe-area-inset-bottom));
  padding: 7px 18px env(safe-area-inset-bottom);
  position: fixed;
  z-index: 45;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.mobile-nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: #7f8b88;
  font-size: 10px;
  font-weight: 650;
}

.mobile-nav a span { margin-bottom: 3px; font-size: 17px; font-weight: 400; }
.mobile-nav a.is-current { color: var(--deep); }

.module-dialog {
  width: min(calc(100% - 28px), 580px);
  padding: 29px;
  color: var(--ink);
  background: var(--white);
  border: 0;
  border-radius: 28px;
  box-shadow: 0 35px 90px rgba(4, 46, 42, 0.3);
}

.module-dialog::backdrop {
  background: rgba(3, 36, 33, 0.62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.dialog-close {
  width: 42px;
  height: 42px;
  position: absolute;
  right: 16px;
  top: 16px;
  color: var(--deep);
  background: var(--mint-soft);
  border: 0;
  border-radius: 50%;
  font-size: 26px;
  cursor: pointer;
}

.module-dialog h2 {
  max-width: calc(100% - 50px);
  margin: 13px 0 0;
  font-size: 30px;
  line-height: 1.22;
}

.dialog-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.dialog-skeleton {
  margin-top: 24px;
  padding: 20px;
  background: var(--paper);
  border-radius: 20px;
}

.dialog-skeleton > span {
  width: 100%;
  height: 9px;
  margin-top: 10px;
  display: block;
  background: #dce7e5;
  border-radius: 8px;
}

.dialog-skeleton > span:first-child { width: 72%; margin-top: 0; }
.dialog-skeleton > span:nth-child(3) { width: 58%; }
.dialog-skeleton > span:last-child { width: 66%; }

.dialog-card-placeholder {
  height: 108px;
  margin: 20px 0;
  border: 1px solid #d7e5e2;
  border-radius: 18px;
  background: linear-gradient(135deg, #e4efed, #f8fbfa);
}

.dialog-action {
  width: 100%;
  height: 48px;
  margin-top: 22px;
  color: var(--white);
  background: var(--deep);
  border: 0;
  border-radius: 25px;
  font-weight: 700;
  cursor: pointer;
}

.toast {
  position: fixed;
  z-index: -1;
  opacity: 0;
  pointer-events: none;
}

/* Updated single-page AI plan */
.hero-split {
  display: grid;
  gap: 30px;
}

.price-panel {
  padding: 22px;
  position: relative;
  z-index: 4;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.96);
  border-radius: 26px;
  box-shadow: 0 24px 70px rgba(2, 48, 44, 0.24);
}

.price-panel > p {
  margin: 0;
  color: var(--deep);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 1.8px;
}

.price-panel > h2 {
  margin: 7px 0 18px;
  font-size: 25px;
}

.price-option {
  padding: 17px 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 7px 14px;
  border-top: 1px solid var(--line);
}

.price-option > span {
  align-self: center;
  color: var(--deep);
  font-size: 13px;
  font-weight: 800;
}

.price-option strong {
  color: var(--deep-3);
  font-size: 34px;
  line-height: 1;
}

.price-option strong small {
  margin-left: 3px;
  font-size: 11px;
}

.price-option em {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
  line-height: 1.5;
}

.price-option-primary {
  margin: 0 -8px -8px;
  padding: 17px 8px 12px;
  background: var(--mint-soft);
  border-radius: 16px;
}

.content-section { margin-top: 64px; }

.content-section-title {
  display: flex;
  align-items: center;
  gap: 16px;
}

.content-section-title > span {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--deep);
  border-radius: 16px;
  font-size: 12px;
  font-weight: 850;
}

.content-section-title p,
.network-strip p {
  margin: 0;
  color: var(--deep);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 1.6px;
}

.content-section-title h3,
.network-strip h3 {
  margin: 4px 0 0;
  font-size: 27px;
  line-height: 1.18;
  letter-spacing: -1px;
}

.service-copy-grid {
  margin-top: 24px;
  display: grid;
  gap: 14px;
}

.copy-card {
  padding: 24px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: var(--shadow);
}

.copy-card-dark { color: var(--white); background: var(--deep-2); border-color: var(--deep-2); }
.copy-card-mint { color: var(--deep-3); background: var(--mint); border-color: var(--mint); }
.copy-card-lime { color: #314201; background: var(--lime); border-color: var(--lime); }

.copy-index {
  color: var(--deep);
  font-size: 11px;
  font-weight: 850;
}

.copy-card-dark .copy-index { color: #b9ddd8; }
.copy-card h4 {
  margin: 24px 0 0;
  font-size: 25px;
  line-height: 1.25;
  letter-spacing: -0.6px;
}

.copy-card p,
.copy-card li {
  font-size: 13px;
  line-height: 1.8;
}

.copy-card ul {
  margin: 18px 0 0;
  padding-left: 1.15em;
}

.copy-card li + li { margin-top: 8px; }
.copy-lead { margin: 10px 0 0; font-weight: 750; }

.copy-note {
  margin: 20px 0 0;
  padding-top: 16px;
  color: var(--muted);
  border-top: 1px solid currentColor;
  opacity: 0.78;
}

.copy-card-dark .copy-note { color: #d6e9e6; }
.split-copy { margin-top: 12px; display: grid; gap: 4px 22px; }

.limit-table {
  margin-top: 24px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 22px;
}

.limit-row {
  min-height: 66px;
  padding: 13px 14px;
  display: grid;
  grid-template-columns: 1.05fr 0.62fr 1fr;
  align-items: center;
  gap: 9px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  line-height: 1.45;
}

.limit-row:first-child { border-top: 0; }
.limit-row b { color: var(--deep-3); }
.limit-head { min-height: 47px; color: var(--white); background: var(--deep); font-size: 10px; font-weight: 800; }

.boundary-grid {
  margin-top: 14px;
  display: grid;
  gap: 14px;
}

.boundary-card {
  padding: 22px;
  background: var(--mint-soft);
  border-radius: 22px;
}

.boundary-card-alert { background: #eef1c5; }
.boundary-card h4 { margin: 0; color: var(--deep-3); font-size: 18px; }
.boundary-card p { margin: 11px 0 0; color: #53615f; font-size: 12px; line-height: 1.75; }

.legal-note {
  margin: 14px 0 0;
  padding: 17px 18px;
  color: #68736f;
  background: transparent;
  border: 1px dashed #b9c9c6;
  border-radius: 18px;
  font-size: 11px;
  line-height: 1.75;
}

.global-section {
  margin-inline: -16px;
  padding: 30px 16px;
  color: var(--white);
  background: var(--deep-3);
  border-radius: 32px;
}

.global-section .content-section-title > span { color: var(--deep-3); background: var(--lime); }
.global-section .content-section-title p { color: #a9d4cf; }

.section-lead {
  max-width: 820px;
  margin: 22px 0 0;
  color: #c7ddda;
  font-size: 13px;
  line-height: 1.8;
}

.global-grid {
  margin-top: 24px;
  display: grid;
  gap: 10px;
}

.global-grid article {
  padding: 21px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 21px;
}

.global-grid article > b { color: var(--lime); font-size: 11px; }
.global-grid h4 { margin: 17px 0 0; font-size: 18px; }
.global-grid p { margin: 10px 0 0; color: #c7ddda; font-size: 12px; line-height: 1.75; }

.network-strip {
  margin-top: 18px;
  padding: 25px;
  display: grid;
  gap: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 25px;
}

.network-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.network-tags span { padding: 9px 11px; color: var(--deep); background: var(--mint-soft); border-radius: 18px; font-size: 10px; }

/* Firm summaries */
.profile-grid {
  margin-top: 24px;
  display: grid;
  gap: 14px;
}

.profile-card {
  padding: 24px;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: var(--shadow);
}

.profile-card-featured { background: var(--mint-soft); }
.profile-card-mint { color: var(--deep-3); background: var(--mint); border-color: var(--mint); }
.profile-card-dark { color: var(--white); background: var(--deep-2); border-color: var(--deep-2); }

.firm-overview-inline { display: block; }

.inline-overview-prose {
  margin-top: 18px;
  color: #5d6966;
}

.inline-overview-prose > p {
  margin: 16px 0 0;
  font-size: 13px;
  line-height: 1.85;
}

.inline-overview-prose > p:first-child { margin-top: 0; }

.inline-overview-prose .inline-overview-lead {
  color: var(--ink);
  font-size: 15px;
  font-weight: 650;
}

.inline-overview-prose > h4 {
  margin: 26px 0 0;
  color: var(--deep-3);
  font-size: 19px;
}

.inline-capability-grid {
  margin-top: 12px;
  display: grid;
  gap: 12px;
}

.inline-capability-grid section {
  padding: 18px;
  background: rgba(255, 255, 255, 0.72);
  border-radius: 18px;
}

.inline-capability-grid h5 {
  margin: 0;
  color: var(--deep-3);
  font-size: 15px;
  line-height: 1.5;
}

.inline-capability-grid p {
  margin: 9px 0 0;
  color: #5d6966;
  font-size: 13px;
  line-height: 1.8;
}

.profile-card-head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--deep);
}

.profile-card-dark .profile-card-head { color: #b9ddd8; }
.profile-card-head span { font-size: 11px; font-weight: 850; }
.profile-card-head small { font-size: 8px; font-weight: 850; letter-spacing: 1.3px; }

.profile-card h3 {
  margin: 30px 0 0;
  font-size: 25px;
  line-height: 1.28;
}

.profile-card > p {
  margin: 15px 0 0;
  color: #63706d;
  font-size: 13px;
  line-height: 1.85;
}

.profile-card-dark > p { color: #c6dcda; }

.stage-tags { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 7px; }
.stage-tags span { padding: 7px 10px; color: var(--deep-3); background: var(--lime); border-radius: 16px; font-size: 9px; font-weight: 850; }

.detail-link {
  margin-top: 22px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--deep);
  background: transparent;
  border: 0;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.profile-card-dark .detail-link { color: var(--lime); }
.detail-link span { font-size: 18px; transition: transform 0.2s ease; }
.detail-link:hover span { transform: translateX(4px); }

.team-showcase { display: block; }

.team-preview-grid {
  width: 100%;
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.team-preview {
  min-width: 0;
  padding: 0 0 15px;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  text-align: left;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 19px;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.team-photo-placeholder,
.team-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  display: grid;
  place-items: center;
  align-content: center;
  overflow: hidden;
  color: var(--deep-3);
  background:
    radial-gradient(circle at 70% 22%, rgba(255, 255, 255, 0.75) 0 12%, transparent 12.5%),
    linear-gradient(145deg, var(--mint-soft), var(--mint));
}

.team-photo { object-fit: cover; }
.team-photo-gu { object-position: 50% 5%; }
.team-photo-placeholder b { font-size: 42px; font-weight: 500; }
.team-photo-placeholder small { margin-top: 6px; color: var(--deep); font-size: 7px; font-weight: 850; letter-spacing: 1.4px; }

.team-preview > strong {
  margin: 14px 13px 0;
  font-size: 17px;
  line-height: 1.25;
}

.team-preview > em {
  margin: 5px 13px 0;
  color: var(--muted);
  font-size: 9px;
  font-style: normal;
  line-height: 1.45;
}

.team-preview:hover,
.team-preview:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(16, 70, 64, 0.12);
}

.person-detail { color: #56635f; }

.person-detail-head {
  padding: 16px;
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  background: var(--paper);
  border-radius: 20px;
}

.person-detail-head .team-photo-placeholder,
.person-detail-head .team-photo {
  width: 100px;
  border-radius: 15px;
}

.person-detail-head p {
  margin: 0;
  color: var(--deep);
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 1.2px;
}

.person-detail-head h3 {
  margin: 7px 0 0;
  color: var(--deep-3);
  font-size: 16px;
  line-height: 1.5;
}

.person-detail > p {
  margin: 22px 0 0;
  color: #56635f;
  font-size: 13px;
  line-height: 1.9;
}

.person-detail > h3 {
  margin: 28px 0 0;
  color: var(--deep-3);
  font-size: 19px;
}

.person-detail ul {
  margin-bottom: 0;
  padding-left: 1.15em;
}

.person-detail li {
  color: #56635f;
  font-size: 13px;
  line-height: 1.75;
}

.person-detail li + li { margin-top: 8px; }

/* QR contact card */
.contact-panel {
  width: 100%;
  margin-top: 18px;
  padding: 18px;
  position: relative;
  display: grid;
  grid-template-columns: 94px 1fr;
  align-items: center;
  gap: 16px;
  text-align: left;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: var(--shadow);
  cursor: pointer;
}

.contact-panel-firm { margin-top: 16px; }

.qr-placeholder {
  width: 94px;
  aspect-ratio: 1;
  padding: 9px;
  display: grid;
  place-items: center;
  align-content: center;
  color: var(--deep-3);
  background-color: var(--white);
  background-image: repeating-conic-gradient(var(--deep-3) 0 25%, transparent 0 50%);
  background-size: 13px 13px;
  border: 6px solid var(--white);
  outline: 1px solid var(--deep);
  border-radius: 14px;
}

.qr-placeholder b,
.qr-placeholder small {
  padding: 2px 5px;
  background: rgba(255, 255, 255, 0.94);
}

.qr-placeholder b { font-size: 20px; }
.qr-placeholder small { font-size: 7px; font-weight: 750; white-space: nowrap; }

.contact-panel-copy { min-width: 0; display: block; padding-right: 22px; }
.contact-panel-copy small { color: var(--deep); font-size: 8px; font-weight: 850; letter-spacing: 1.2px; }
.contact-panel-copy strong { margin-top: 6px; display: block; color: var(--deep-3); font-size: 20px; }
.contact-panel-copy > span { margin-top: 8px; display: block; color: var(--muted); font-size: 10px; line-height: 1.6; }
.contact-panel .contact-arrow { position: absolute; right: 17px; top: 18px; }

/* Detail dialog */
.detail-dialog {
  width: min(calc(100% - 28px), 860px);
  max-height: 88vh;
  overflow-y: auto;
}

.dialog-content { margin-top: 24px; }
.detail-prose p,
.detail-prose li,
.method-list p,
.case-groups li,
.team-list p { color: #56635f; font-size: 13px; line-height: 1.85; }
.detail-lead { color: var(--ink) !important; font-size: 15px !important; font-weight: 650; }
.detail-prose h3,
.contact-detail h3,
.case-groups h3 { margin: 28px 0 0; color: var(--deep-3); font-size: 19px; }
.detail-columns { display: grid; gap: 12px; }
.detail-columns section { padding: 18px; background: var(--mint-soft); border-radius: 18px; }
.detail-columns h4 { margin: 0; color: var(--deep-3); font-size: 15px; line-height: 1.45; }
.detail-columns p { margin-bottom: 0; }

.detail-stage-list { display: grid; gap: 12px; }
.detail-stage-list section { padding: 21px; background: var(--paper); border-radius: 20px; }
.detail-stage-list section > span { color: var(--deep); font-size: 9px; font-weight: 850; letter-spacing: 1.4px; }
.detail-stage-list h3 { margin-top: 8px; }
.detail-stage-list p { margin-bottom: 0; }

.method-list { margin: 0; padding: 0; list-style: none; counter-reset: method; }
.method-list li { padding: 18px 0; border-top: 1px solid var(--line); counter-increment: method; }
.method-list li:first-child { border-top: 0; }
.method-list li::before { content: "0" counter(method); display: block; margin-bottom: 8px; color: var(--deep); font-size: 10px; font-weight: 850; }
.method-list li > b { color: var(--ink); font-size: 16px; line-height: 1.5; }
.method-list p { margin-bottom: 0; }
.method-list-full p + p { margin-top: 10px; }

.case-groups { display: grid; gap: 12px; }
.case-groups section { padding: 20px; background: var(--paper); border-radius: 20px; }
.case-groups h3 { margin-top: 0; }
.case-subgroup { margin-top: 22px; }
.case-subgroup h4 { margin: 0; color: var(--deep); font-size: 14px; line-height: 1.55; }
.case-groups ul { margin-bottom: 0; padding-left: 1.15em; }
.case-groups li + li { margin-top: 8px; }

.team-list { display: grid; gap: 10px; }
.team-list article { padding: 19px; background: var(--paper); border-radius: 19px; }
.team-list span { color: var(--deep); font-size: 9px; font-weight: 850; letter-spacing: 1px; }
.team-list h3 { margin: 6px 0 0; color: var(--deep-3); font-size: 20px; }
.team-list p { margin-bottom: 0; }

.contact-detail { display: grid; gap: 24px; }
.qr-placeholder-large { width: min(180px, 60vw); justify-self: center; }

.qr-image {
  width: 100%;
  display: block;
  background: var(--white);
  border-radius: 20px;
}

.qr-image-large {
  width: min(220px, 66vw);
  justify-self: center;
}
.contact-detail-list { display: grid; gap: 10px; }
.contact-detail-list section { padding: 18px; background: var(--paper); border-radius: 18px; }
.contact-detail-list small { color: var(--deep); font-size: 8px; font-weight: 850; letter-spacing: 1.3px; }
.contact-detail-list h3 { margin: 6px 0 0; }
.contact-detail-list p { margin: 8px 0 0; color: #5d6966; font-size: 13px; line-height: 1.7; }
.pending-text { color: var(--muted) !important; font-style: italic; }

@media (hover: hover) {
  .portal-card:hover,
  .module-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 26px 70px rgba(16, 70, 64, 0.13);
  }
}

@media (min-width: 720px) {
  :root { --header-h: 84px; }
  .shell { width: calc(100% - 64px); }
  .header-inner { width: calc(100% - 64px); }
  .brand-cn { font-size: 23px; }
  .desktop-nav { display: flex; align-items: center; gap: 32px; }
  .desktop-nav a { position: relative; color: #53615f; font-size: 13px; font-weight: 650; }
  .desktop-nav a::after { content: ""; width: 0; height: 2px; position: absolute; left: 0; bottom: -9px; background: var(--deep); transition: width 0.2s ease; }
  .desktop-nav a.is-current { color: var(--deep); }
  .desktop-nav a.is-current::after { width: 100%; }
  .home-hero { min-height: calc(100vh - var(--header-h)); border-radius: 0 0 52px 52px; }
  .home-layout {
    min-height: calc(100vh - var(--header-h));
    padding-top: 70px;
    padding-bottom: 70px;
    grid-template-columns: minmax(0, 0.86fr) minmax(520px, 1.14fr);
    align-items: center;
    gap: 72px;
  }
  .home-intro h1 { font-size: 78px; }
  .home-entrances { max-width: 620px; gap: 16px; justify-self: end; }
  .home-entry { min-height: 205px; padding: 27px 90px 27px 27px; border-radius: 30px; }
  .home-entry-top small { max-width: none; font-size: 8px; }
  .home-entry h2 { margin-top: 24px; font-size: 36px; }
  .home-entry-price { gap: 8px; }
  .home-entry-price > span { padding: 9px 11px; }
  .home-entry-price b { font-size: 12px; }
  .home-entry-arrow { width: 48px; height: 48px; right: 22px; bottom: 22px; font-size: 21px; }
  .hero-content { padding-top: 100px; padding-bottom: 80px; }
  .home-hero h1 { font-size: 78px; }
  .orbit-large { width: 620px; height: 620px; right: -290px; top: -175px; border-width: 110px; }
  .orbit-small { width: 260px; height: 260px; right: 290px; bottom: -170px; border-width: 62px; }
  .block-one { width: 135px; height: 135px; right: 115px; top: 286px; border-radius: 135px 0 0 0; }
  .block-two { width: 74px; height: 74px; right: 250px; top: 421px; }
  .hero-pixels { right: 270px; top: 308px; }
  .portal-section { padding-top: 66px; padding-bottom: 80px; }
  .section-heading h2, .inner-intro h2 { font-size: 40px; }
  .portal-grid { margin-top: 30px; grid-template-columns: 1fr 1fr; gap: 22px; }
  .portal-card { min-height: 470px; padding: 30px; }
  .portal-copy h2 { font-size: 52px; }
  .portal-arrow { width: 62px; height: 62px; right: 28px; bottom: 28px; }
  .contact-strip { grid-template-columns: 52px 1fr auto 24px; padding: 20px 24px; }
  .contact-mark { width: 52px; height: 52px; }
  .contact-status { display: block; }
  .inner-hero { min-height: 520px; border-radius: 0 0 52px 52px; }
  .inner-hero-content { padding-top: 48px; padding-bottom: 80px; }
  .back-link { margin-bottom: 82px; }
  .inner-hero h1 { font-size: 76px; }
  .inner-content { padding-top: 68px; padding-bottom: 90px; }
  .firm-hero-split { grid-template-columns: minmax(0, 1fr) 310px; align-items: center; gap: 68px; }
  .firm-hero-contact { width: 286px; justify-self: end; grid-template-columns: 1fr; gap: 8px; }
  .firm-hero-contact > span { padding: 5px 4px 7px; text-align: center; }
  .hero-split { grid-template-columns: minmax(0, 1fr) 420px; align-items: end; gap: 70px; }
  .hero-split .back-link { margin-bottom: 66px; }
  .price-panel { padding: 27px; }
  .price-panel > h2 { font-size: 30px; }
  .content-section { margin-top: 90px; }
  .content-section-title > span { width: 58px; height: 58px; border-radius: 19px; }
  .content-section-title h3, .network-strip h3 { font-size: 38px; }
  .service-copy-grid { grid-template-columns: 1fr 1fr; gap: 18px; }
  .copy-card { padding: 30px; }
  .copy-card h4 { font-size: 29px; }
  .copy-card-wide { grid-column: 1 / -1; }
  .split-copy { grid-template-columns: 1fr 1fr; }
  .limit-row { padding: 16px 24px; font-size: 13px; }
  .limit-head { font-size: 11px; }
  .boundary-grid { grid-template-columns: 1fr 1fr; gap: 18px; }
  .global-section { margin-inline: 0; padding: 44px; border-radius: 38px; }
  .global-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .network-strip { padding: 32px; grid-template-columns: 0.7fr 1.3fr; align-items: center; }
  .profile-grid { grid-template-columns: 1fr 1fr; gap: 18px; }
  .profile-card { min-height: 310px; padding: 30px; }
  .profile-card-wide { grid-column: 1 / -1; min-height: 280px; }
  .profile-card h3 { font-size: 30px; }
  .firm-overview-inline { min-height: 0; }
  .inline-overview-prose { margin-top: 22px; }
  .inline-capability-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .inline-capability-grid section { padding: 22px; }
  .detail-link { margin-top: auto; padding-top: 24px; }
  .team-showcase { min-height: 0; }
  .team-preview-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
  .team-preview > strong { font-size: 18px; }
  .person-detail-head { grid-template-columns: 140px minmax(0, 1fr); gap: 24px; padding: 22px; }
  .person-detail-head .team-photo-placeholder,
  .person-detail-head .team-photo { width: 140px; border-radius: 18px; }
  .person-detail-head h3 { font-size: 20px; }
  .contact-panel { padding: 24px; grid-template-columns: 124px 1fr; gap: 24px; }
  .qr-placeholder { width: 124px; }
  .contact-panel-copy strong { font-size: 27px; }
  .contact-panel-copy > span { font-size: 12px; }
  .detail-columns { grid-template-columns: 1fr 1fr; }
  .contact-detail { grid-template-columns: 220px 1fr; align-items: start; }
  .qr-placeholder-large { width: 190px; }
  .team-list { grid-template-columns: 1fr 1fr; }
  .module-grid { grid-template-columns: repeat(4, 1fr); gap: 18px; }
  .module-wide { grid-column: span 2; }
  .module-card { min-height: 240px; padding: 22px; }
  .module-featured { min-height: 290px; }
  .module-card strong { font-size: 22px; }
  .module-wide strong { font-size: 30px; }
  .site-footer { display: block; }
  .mobile-nav { display: none; }
}

@media (min-width: 1100px) {
  .home-hero h1 { font-size: 88px; }
  .portal-card { min-height: 520px; }
  .portal-copy h2 { font-size: 58px; }
  .module-card { min-height: 265px; }
}

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