:root {
  --color-brand-navy: #081070;
  --color-deep-space: #050A2E;
  --color-electric-blue: #1A46FF;
  --color-cyan: #1FB6C9;
  --color-signal-rose: #F84858;
  --color-graphite: #172033;
  --color-steel: #647084;
  --color-fog: #F5F7FB;
  --color-white: #FFFFFF;
  --color-line: #DDE4F0;
  --shadow-soft: 0 22px 60px rgba(8, 16, 112, 0.12);
  --shadow-tight: 0 14px 32px rgba(8, 16, 112, 0.12);
  --radius: 8px;
  --max-width: 1180px;
  --motion-fast: 180ms ease;
  --motion-base: 260ms ease;
  --motion-slow: 520ms ease;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--color-graphite);
  background: var(--color-white);
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

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

p,
h1,
h2,
h3,
dl,
dd {
  margin: 0;
}

button {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  min-height: 76px;
  padding: 12px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(221, 228, 240, 0.8);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
}

.site-header .brand {
  color: var(--color-graphite);
}

.site-header .brand-lockup-header {
  align-items: center;
  gap: 16px;
  min-width: 310px;
}

.brand img {
  width: 160px;
  height: 50px;
  object-fit: contain;
  object-position: left center;
}

.brand-header-copy {
  display: grid;
  gap: 0;
  min-width: 120px;
}

.brand-tagline {
  display: grid;
  gap: 2px;
  min-width: 116px;
  color: var(--color-graphite);
  font-size: 13px;
  line-height: 1.12;
  font-weight: 900;
}

.brand-tagline-line {
  display: block;
  white-space: nowrap;
}

.brand-tagline-line:first-child {
  color: var(--color-brand-navy);
}

.brand-tagline-line:last-child {
  color: var(--color-graphite);
}

.site-nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px;
  border: 1px solid var(--color-line);
  border-radius: 999px;
  background: #fbfcff;
}

.site-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  color: #3d4960;
  font-size: 14px;
  white-space: nowrap;
  transition:
    color var(--motion-base),
    background-color var(--motion-base);
}

.site-nav a::before {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 7px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--motion-base);
}

.site-nav a:hover,
.site-nav a.is-current {
  color: var(--color-white);
  background: var(--color-brand-navy);
}

.site-nav a:hover::before,
.site-nav a.is-current::before {
  transform: scaleX(1);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  color: var(--color-white);
  background: var(--color-signal-rose);
  font-weight: 700;
  box-shadow: 0 12px 26px rgba(248, 72, 88, 0.26);
  white-space: nowrap;
}

.nav-toggle {
  display: none;
}

.section,
.page-hero {
  position: relative;
  padding: 96px 0;
}

.section-inner {
  width: min(var(--max-width), calc(100% - 40px));
  margin: 0 auto;
}

.section-inner.narrow {
  width: min(880px, calc(100% - 40px));
}

.band-light {
  background:
    linear-gradient(90deg, rgba(8, 16, 112, 0.04), transparent 38%),
    var(--color-fog);
}

.eyebrow {
  margin-bottom: 14px;
  color: var(--color-electric-blue);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
}

h1,
h2,
h3 {
  color: var(--color-graphite);
  line-height: 1.16;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  font-size: clamp(42px, 6vw, 76px);
}

h2 {
  font-size: clamp(30px, 4vw, 48px);
}

h3 {
  font-size: 20px;
}

.section-head {
  max-width: 790px;
  margin-bottom: 38px;
}

.section-head p:not(.eyebrow) {
  margin-top: 16px;
  color: var(--color-steel);
  font-size: 17px;
}

.split-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  max-width: none;
}

.text-link {
  color: var(--color-electric-blue);
  font-weight: 800;
  white-space: nowrap;
}

.button-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: var(--radius);
  color: var(--color-white);
  background: var(--color-electric-blue);
  font-weight: 800;
  cursor: pointer;
  transition: transform var(--motion-fast), box-shadow var(--motion-fast), background var(--motion-fast);
}

.button-primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-tight);
  background: var(--color-brand-navy);
}

.news-section {
  background: var(--color-white);
}

.news-title-strip {
  padding: 18px 0;
  border-bottom: 1px solid var(--color-line);
  background: var(--color-brand-navy);
}

.news-title-strip h1 {
  max-width: none;
  color: var(--color-white);
  font-size: 20px;
  line-height: 1.4;
}

.news-toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 28px;
  padding: 14px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: #fbfcff;
}

.news-category-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.news-category-chip {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--color-line);
  border-radius: 999px;
  color: var(--color-graphite);
  background: var(--color-white);
  font-weight: 800;
  cursor: pointer;
}

.news-category-chip.is-active,
.news-category-chip:hover {
  color: var(--color-white);
  border-color: var(--color-electric-blue);
  background: var(--color-electric-blue);
}

.news-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 18px;
  align-items: stretch;
}

.news-card {
  display: grid;
  gap: 16px;
  height: 100%;
  padding: 18px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: var(--color-white);
  box-shadow: 0 12px 28px rgba(8, 16, 112, 0.06);
}

.news-cover {
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--color-fog);
}

.news-cover img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.news-card-copy {
  display: grid;
  gap: 10px;
  grid-template-rows: auto auto 1fr auto;
  height: 100%;
}

.news-card-copy span,
.news-meta {
  color: var(--color-steel);
  font-size: 14px;
  font-weight: 800;
}

.news-card-copy h2 {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: var(--color-brand-navy);
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.25;
}

.news-card-copy p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  color: var(--color-steel);
}

.news-empty {
  display: block;
  grid-column: 1 / -1;
  padding: 28px;
  border: 1px dashed var(--color-line);
  border-radius: var(--radius);
  color: var(--color-steel);
  text-align: center;
  background: #fbfcff;
}

.news-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 26px;
}

.news-more[hidden] {
  display: none;
}

.news-detail h1 {
  color: var(--color-brand-navy);
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.12;
}

.news-back-link {
  display: inline-flex;
  align-items: center;
  margin-bottom: 18px;
  color: var(--color-electric-blue);
  font-weight: 800;
}

.news-back-link::before {
  content: "<";
  margin-right: 8px;
}

.news-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.news-detail-cover {
  width: 100%;
  margin-top: 28px;
  border-radius: var(--radius);
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--color-fog);
}

.news-content {
  margin-top: 30px;
  color: var(--color-graphite);
  font-size: 18px;
  line-height: 1.9;
}

.news-content > * + * {
  margin-top: 18px;
}

.news-content h2,
.news-content h3 {
  color: var(--color-brand-navy);
  line-height: 1.3;
}

.news-content ul,
.news-content ol {
  padding-left: 1.4em;
}

.news-content table {
  display: block;
  width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: var(--color-white);
}

.news-content th,
.news-content td {
  min-width: 140px;
  padding: 12px 14px;
  border: 1px solid var(--color-line);
  text-align: left;
  vertical-align: top;
}

.news-content th {
  color: var(--color-brand-navy);
  background: #f5f8ff;
  font-weight: 800;
}

.news-content .align-left {
  text-align: left;
}

.news-content .align-center {
  text-align: center;
}

.news-content .align-right {
  text-align: right;
}

.news-content img {
  display: inline-block;
  box-sizing: border-box;
  width: auto;
  max-width: 100%;
  height: auto;
  margin: 18px 0 0;
  padding: 4px;
  border-radius: var(--radius);
  object-fit: contain;
  vertical-align: top;
}

.news-content .image-width-100 {
  width: 100%;
}

.news-content .image-width-75 {
  width: calc(75% - 4px);
}

.news-content .image-width-50 {
  width: calc(50% - 4px);
}

.news-content .image-width-30 {
  width: calc(30% - 4px);
}

.news-content .image-width-original {
  width: auto;
}

@media (max-width: 900px) {
  .news-toolbar {
    grid-template-columns: 1fr;
  }

  .news-toolbar {
    align-items: stretch;
  }

  .news-category-filter {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
  }

  .news-category-chip {
    flex: 0 0 auto;
  }
}

.hero {
  min-height: calc(100vh - 90px);
  display: grid;
  align-items: center;
  color: var(--color-white);
  background:
    radial-gradient(circle at 82% 12%, rgba(248, 72, 88, 0.18), transparent 28%),
    linear-gradient(135deg, rgba(26, 70, 255, 0.18), transparent 36%),
    var(--color-deep-space);
  border-radius: 0;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(90deg, black, transparent 78%);
  pointer-events: none;
}

.hero-carousel {
  position: relative;
}

.hero-carousel::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 220px;
  background: linear-gradient(0deg, rgba(5, 10, 46, 0.64), transparent);
  pointer-events: none;
}

.hero-track {
  position: relative;
  z-index: 1;
  min-height: calc(100vh - 130px);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: center;
  padding: 0;
  opacity: 0;
  transform: translateX(28px);
  transition:
    opacity 520ms ease,
    transform 520ms ease;
  pointer-events: none;
}

.hero-slide.is-active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.hero-image-slide {
  overflow: hidden;
  background: var(--color-deep-space);
}

.hero-image-positioning {
  background:
    linear-gradient(135deg, rgba(26, 70, 255, 0.14), rgba(248, 72, 88, 0.08)),
    var(--color-deep-space);
}

.hero-image-services {
  background:
    linear-gradient(135deg, rgba(26, 70, 255, 0.16), rgba(248, 72, 88, 0.08)),
    var(--color-brand-navy);
}

.hero-image-team {
  background:
    linear-gradient(135deg, rgba(26, 70, 255, 0.16), rgba(248, 72, 88, 0.08)),
    var(--color-deep-space);
}

.hero-image-backdrop {
  position: absolute;
  inset: -28px;
  z-index: 0;
  background-position: center;
  background-size: cover;
  filter: blur(24px) saturate(0.78) contrast(0.92);
  opacity: 0.18;
  transform: scale(1.06);
}

.hero-image-positioning .hero-image-backdrop {
  background-image: url("assets/b1.jpg");
}

.hero-image-services .hero-image-backdrop {
  background-image: url("assets/case-zhongkezhiyuan.jpg");
}

.hero-image-team .hero-image-backdrop {
  background-image: url("assets/team.jpg");
}

.hero-image {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  background: inherit;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  opacity: 0.94;
  transform: none;
  transition:
    opacity var(--motion-slow),
    transform 900ms ease;
}

.hero-slide.is-active .hero-image img {
  transform: none;
}

.hero-image-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(5, 10, 46, 0.78), rgba(8, 16, 112, 0.62) 42%, rgba(8, 16, 112, 0.16) 70%, rgba(8, 16, 112, 0.04)),
    linear-gradient(135deg, rgba(26, 70, 255, 0.22), rgba(248, 72, 88, 0.08));
  pointer-events: none;
}

.hero-safe-zone {
  position: relative;
  z-index: 3;
  display: grid;
  align-items: center;
  min-height: calc(100vh - 130px);
}

.hero-copy {
  max-width: 760px;
}

@media (min-width: 901px) {
  .hero {
    min-height: auto;
  }

  .hero-track {
    min-height: 0;
    aspect-ratio: 2560 / 1080;
  }

  .hero-safe-zone {
    min-height: 100%;
  }

  .hero h1,
  .hero h2 {
    font-size: clamp(40px, 4.4vw, 62px);
    line-height: 1.08;
  }

  .hero-lede {
    margin-top: 18px;
    font-size: clamp(15px, 1.35vw, 18px);
    line-height: 1.58;
  }

  .hero-actions {
    margin-top: 24px;
  }

  .hero-metrics {
    gap: 12px;
    margin-top: 26px;
  }

  .hero-metrics div {
    padding: 14px 16px;
  }

  .hero-metrics dt {
    font-size: clamp(28px, 3vw, 38px);
  }

  .hero-metrics dd {
    margin-top: 8px;
  }

  .hero-image-backdrop {
    display: none;
  }

  .hero-image-team .hero-safe-zone {
    align-items: end;
    padding-top: 0;
    padding-bottom: clamp(34px, 4.4vw, 64px);
  }

  .hero-image-team .hero-copy {
    display: block;
    width: 100%;
    max-width: none;
  }

  .hero-image-team h2 {
    width: 100%;
    max-width: none;
    text-align: center;
    white-space: nowrap;
    font-size: clamp(24px, 2.3vw, 34px);
    line-height: 1.18;
  }

  .hero-image-team .hero-lede {
    display: none;
  }

  .hero-image-team .hero-actions {
    justify-content: center;
    margin-top: 16px;
  }
}

.hero h1,
.hero h2,
.hero h3 {
  color: var(--color-white);
  text-shadow: 0 2px 18px rgba(5, 10, 46, 0.38);
}

.hero .eyebrow {
  color: rgba(255, 255, 255, 0.82);
}

.hero-lede {
  max-width: 680px;
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(17px, 2vw, 21px);
  text-shadow: 0 1px 12px rgba(5, 10, 46, 0.32);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
}

.btn,
.header-cta,
.mobile-consult-bar a {
  transition:
    transform var(--motion-base),
    box-shadow var(--motion-base),
    background-color var(--motion-base),
    color var(--motion-base),
    border-color var(--motion-base);
}

.btn:hover,
.header-cta:hover,
.mobile-consult-bar a:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: var(--color-white);
  background: var(--color-signal-rose);
  box-shadow: 0 18px 42px rgba(248, 72, 88, 0.35);
}

.btn-ghost {
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(8, 16, 112, 0.32);
  box-shadow: 0 18px 42px rgba(5, 10, 46, 0.18);
}

.hero-metrics,
.proof-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 42px;
}

.hero-metrics div,
.proof-metrics div {
  padding: 18px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.hero-metrics div {
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 18px 40px rgba(5, 10, 46, 0.18);
}

.hero-metrics dt {
  color: var(--color-brand-navy);
}

.hero-metrics dt,
.proof-metrics dt {
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.hero-metrics dd,
.proof-metrics dd {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.hero-metrics dd {
  color: #637286;
}

.hero-metrics-compact dt {
  font-size: clamp(26px, 3vw, 38px);
}

.hero-signal-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 720px;
  margin-top: 30px;
}

.hero-signal-list div {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  padding: 9px 13px 9px 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px 8px 8px 24px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(16px);
}

.hero-signal-list div {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 40px rgba(5, 10, 46, 0.18);
}

.hero-signal-list span {
  color: var(--color-signal-rose);
  font-size: 12px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.hero-signal-list strong {
  overflow-wrap: anywhere;
  color: var(--color-graphite);
  font-size: 14px;
  line-height: 1.35;
}

.hero-control {
  position: absolute;
  z-index: 4;
  top: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(74, 93, 117, 0.18);
  border-radius: 50%;
  color: var(--color-graphite);
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 12px 26px rgba(23, 32, 51, 0.085);
  cursor: pointer;
  transform: translateY(-50%);
  transition:
    background-color var(--motion-base),
    border-color var(--motion-base),
    box-shadow var(--motion-base);
  backdrop-filter: blur(18px);
}

.hero-control:hover,
.hero-control:focus-visible {
  color: var(--color-white);
  background: rgba(248, 72, 88, 0.9);
  border-color: rgba(248, 72, 88, 0.9);
  outline: none;
}

.hero-control span {
  display: block;
  margin-top: -2px;
  font-size: 32px;
  line-height: 1;
}

.hero-control-prev {
  left: clamp(18px, 3vw, 42px);
}

.hero-control-next {
  right: clamp(18px, 3vw, 42px);
}

.hero-dots {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 28px;
  display: flex;
  gap: 10px;
  transform: translateX(-50%);
}

.hero-dot {
  width: 38px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(74, 93, 117, 0.28);
  cursor: pointer;
  transition:
    width var(--motion-base),
    background-color var(--motion-base),
    transform var(--motion-base);
}

.hero-dot.is-active,
.hero-dot:hover,
.hero-dot:focus-visible {
  background: var(--color-signal-rose);
  outline: none;
}

.hero-dot.is-active {
  width: 46px;
}

.diagnosis-grid,
.service-grid,
.case-grid,
.teacher-grid,
.process-grid,
.insight-grid,
.about-grid,
.contact-info-grid {
  display: grid;
  gap: 18px;
}

.diagnosis-grid {
  grid-template-columns: repeat(3, 1fr);
}

.diagnosis-card,
.service-card,
.case-card,
.teacher-card,
.process-card,
.insight-card,
.about-card,
.contact-info-card,
.service-detail,
.case-story {
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: var(--color-white);
  box-shadow: var(--shadow-tight);
}

.service-card,
.case-card,
.teacher-card,
.process-card,
.insight-card,
.ai-answer-card,
.contact-info-card,
.faq-list details {
  position: relative;
  transition:
    transform var(--motion-base),
    box-shadow var(--motion-base),
    border-color var(--motion-base);
}

.service-card:hover,
.case-card:hover,
.teacher-card:hover,
.process-card:hover,
.insight-card:hover,
.ai-answer-card:hover,
.contact-info-card:hover,
.faq-list details:hover {
  transform: translateY(-6px);
  border-color: rgba(26, 70, 255, 0.34);
  box-shadow: 0 24px 58px rgba(8, 16, 112, 0.16);
}

.service-card,
.case-card,
.insight-card,
.ai-answer-card {
  overflow: hidden;
}

.service-card::before,
.case-card::before,
.insight-card::before,
.ai-answer-card::before {
  content: "";
  position: absolute;
  inset: auto auto 0 0;
  z-index: 0;
  width: 4px;
  height: 42px;
  background: linear-gradient(var(--color-cyan), var(--color-electric-blue));
  transform-origin: bottom;
  transition: height var(--motion-base);
}

.service-card:hover::before,
.case-card:hover::before,
.insight-card:hover::before,
.ai-answer-card:hover::before {
  height: 100%;
}

.service-card > *,
.case-card > *,
.insight-card > *,
.ai-answer-card > * {
  position: relative;
  z-index: 1;
}

.diagnosis-card {
  min-height: 250px;
  padding: 24px;
}

.diagnosis-card span,
.process-card span,
.insight-card span {
  display: inline-flex;
  margin-bottom: 24px;
  color: var(--color-cyan);
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.diagnosis-card p,
.process-card p,
.insight-card p,
.about-card p,
.service-card dd,
.service-detail dd,
.case-card p,
.teacher-card p,
.case-story p,
.contact-info-card p {
  color: var(--color-steel);
}

.diagnosis-card h3 {
  margin-bottom: 14px;
}

.proof-section {
  color: var(--color-white);
  background: var(--color-deep-space);
}

.proof-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(420px, 1fr);
  gap: 42px;
  align-items: center;
}

.proof-copy h2 {
  color: var(--color-white);
}

.proof-copy p {
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.72);
}

.proof-metrics {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 0;
}

.brand-proof-section {
  background:
    linear-gradient(90deg, rgba(248, 72, 88, 0.08), transparent 36%),
    linear-gradient(135deg, rgba(8, 16, 112, 0.05), transparent 44%),
    var(--color-white);
}

.brand-proof-grid,
.about-brand-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.85fr) minmax(0, 1fr);
  gap: 34px;
  align-items: center;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand-lockup img {
  width: 174px;
  height: 58px;
  object-fit: contain;
  object-position: left center;
}

.site-header .brand img {
  width: 160px;
  height: 50px;
}

.brand-lockup strong,
.brand-lockup span,
.brand-lockup em {
  display: block;
  letter-spacing: 0;
}

.brand-lockup strong {
  color: var(--color-brand-navy);
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.08;
  font-weight: 900;
}

.brand-lockup span {
  margin-top: 6px;
  color: var(--color-graphite);
  font-weight: 900;
}

.brand-lockup-divider {
  width: 1px;
  height: 46px;
  margin-top: 0;
  background: var(--color-line);
}

.site-header .brand-header-copy {
  display: grid;
  gap: 0;
  min-width: 120px;
}

.site-header .brand-tagline {
  display: grid;
  margin-top: 0;
  min-width: 120px;
  color: var(--color-graphite);
  font-size: 19px;
  line-height: 1.32;
  font-weight: 900;
}

.brand-lockup-panel,
.brand-lockup-large {
  width: 100%;
  padding: 28px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: var(--color-white);
  box-shadow: var(--shadow-tight);
}

.brand-lockup-large {
  align-items: center;
  min-height: 210px;
}

.brand-proof-copy p:not(.eyebrow),
.about-brand-copy p:not(.eyebrow) {
  margin-top: 16px;
  color: var(--color-steel);
  font-size: 17px;
}

.model-timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.model-step {
  position: relative;
  min-height: 238px;
  padding: 26px 20px;
  border: 1px solid rgba(221, 228, 240, 0.92);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(26, 70, 255, 0.06), transparent 42%),
    var(--color-white);
  box-shadow: var(--shadow-tight);
}

.model-step::after {
  content: "";
  position: absolute;
  top: 52px;
  right: -17px;
  z-index: 2;
  width: 22px;
  height: 2px;
  background: var(--color-electric-blue);
}

.model-step:last-child::after {
  display: none;
}

.model-step h3 {
  margin-top: 24px;
}

.model-step p {
  margin-top: 12px;
  color: var(--color-steel);
  font-size: 15px;
}

.model-duration {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  color: var(--color-brand-navy);
  font-size: 32px;
  line-height: 1;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.model-step-accent {
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.16);
  background:
    linear-gradient(135deg, rgba(31, 182, 201, 0.2), transparent 42%),
    linear-gradient(135deg, var(--color-brand-navy), #0d1b87);
  box-shadow: 0 28px 68px rgba(8, 16, 112, 0.22);
}

.model-step-accent h3,
.model-step-accent .model-duration {
  color: var(--color-white);
}

.model-step-accent p {
  color: rgba(255, 255, 255, 0.78);
}

.model-method-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 18px;
  margin-top: 18px;
}

.model-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 28px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: var(--color-white);
  box-shadow: var(--shadow-tight);
}

.model-panel-label {
  display: inline-flex;
  margin-bottom: 14px;
  color: var(--color-electric-blue);
  font-size: 13px;
  font-weight: 900;
}

.model-panel-kicker {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 0;
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--color-brand-navy);
  background: rgba(26, 70, 255, 0.08);
  font-size: 14px;
  line-height: 1;
  font-weight: 900;
}

.model-upgrade-panel {
  gap: 16px;
  justify-content: center;
  min-height: 210px;
  background:
    linear-gradient(135deg, rgba(31, 182, 201, 0.14), transparent 42%),
    linear-gradient(135deg, rgba(26, 70, 255, 0.08), transparent 68%),
    var(--color-white);
}

.model-upgrade-panel h3 {
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.18;
}

.model-upgrade-panel p {
  max-width: 520px;
  color: var(--color-graphite);
  font-size: 17px;
  line-height: 1.78;
  font-weight: 700;
}

.model-chain {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  padding-top: 24px;
}

.model-chain span,
.model-dimensions span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 900;
}

.model-chain span {
  color: var(--color-brand-navy);
  background: var(--color-fog);
}

.model-method-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.model-method-list li {
  position: relative;
  padding-left: 20px;
  color: var(--color-graphite);
  font-weight: 700;
}

.model-method-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-signal-rose);
}

.model-dimensions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  padding-top: 22px;
}

.model-dimensions span {
  color: var(--color-white);
  background: var(--color-brand-navy);
}

.service-grid {
  grid-template-columns: repeat(6, 1fr);
}

.service-card {
  grid-column: span 2;
  min-height: 430px;
  padding: 26px;
}

.service-card-accent {
  grid-column: 2 / span 4;
  color: var(--color-white);
  background: linear-gradient(135deg, var(--color-brand-navy), #0d1b87);
  border-color: rgba(255, 255, 255, 0.18);
}

.service-card-accent h3,
.service-card-accent dt {
  color: var(--color-white);
}

.service-card-accent dd {
  color: rgba(255, 255, 255, 0.76);
}

.service-index {
  display: inline-flex;
  margin-bottom: 34px;
  color: var(--color-signal-rose);
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.service-card h3 {
  min-height: 56px;
  margin-bottom: 26px;
}

.service-card dl,
.service-detail dl {
  display: grid;
  gap: 18px;
}

.service-card dt,
.service-detail dt {
  color: var(--color-brand-navy);
  font-size: 13px;
  font-weight: 900;
}

.case-section {
  background:
    linear-gradient(180deg, transparent 0, transparent 58%, var(--color-fog) 58%),
    var(--color-white);
}

.case-grid {
  grid-template-columns: 1fr;
}

.case-card {
  display: grid;
  grid-template-columns: minmax(320px, 0.86fr) minmax(0, 1fr);
  align-items: stretch;
  overflow: hidden;
}

.case-card img {
  align-self: center;
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: var(--color-fog);
}

.teacher-card:hover img {
  transform: scale(1.035);
}

.case-card div {
  padding: 22px;
}

.case-card span,
.case-story span {
  color: var(--color-electric-blue);
  font-size: 13px;
  font-weight: 900;
}

.case-card h3 {
  margin: 10px 0 12px;
}

.teacher-grid {
  grid-template-columns: repeat(2, 1fr);
}

.teacher-grid-large {
  grid-template-columns: repeat(2, 1fr);
}

.teacher-card {
  overflow: hidden;
}

.teacher-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: contain;
  object-position: center;
  background:
    linear-gradient(135deg, rgba(8, 16, 112, 0.08), rgba(31, 182, 201, 0.05)),
    var(--color-fog);
  transition: transform var(--motion-slow);
}

.teacher-card h3,
.teacher-card p {
  padding-inline: 18px;
}

.teacher-card h3 {
  padding-top: 18px;
}

.teacher-card p {
  padding-bottom: 20px;
  margin-top: 10px;
  font-size: 14px;
}

.teacher-placeholder-media {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(135deg, rgba(31, 182, 201, 0.18), transparent 35%),
    linear-gradient(135deg, rgba(8, 16, 112, 0.96), #0d1b87);
}

.teacher-card.teacher-placeholder {
  min-height: 100%;
}

.teacher-placeholder-media span {
  display: inline-flex;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  color: var(--color-white);
  font-size: 13px;
  font-weight: 900;
}

.process-grid {
  grid-template-columns: repeat(3, 1fr);
}

.process-card {
  min-height: 210px;
  padding: 24px;
}

.faq-list {
  display: grid;
  gap: 14px;
}

.faq-list details {
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: var(--color-white);
  box-shadow: var(--shadow-tight);
}

.faq-list summary {
  cursor: pointer;
  padding: 20px 24px;
  color: var(--color-graphite);
  font-weight: 900;
}

.faq-list p {
  padding: 0 24px 22px;
  color: var(--color-steel);
}

.contact-section {
  color: var(--color-white);
  background:
    linear-gradient(135deg, rgba(31, 182, 201, 0.16), transparent 30%),
    var(--color-deep-space);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(560px, 1fr);
  gap: 44px;
  align-items: center;
}

.contact-copy h2 {
  color: var(--color-white);
}

.contact-copy p:not(.eyebrow) {
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.74);
}

.contact-phone {
  display: inline-flex;
  margin-top: 28px;
  color: var(--color-white);
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.address {
  max-width: 620px;
}

.qr-panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(136px, 1fr));
  gap: 18px;
}

.qr-panel figure {
  margin: 0;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
}

.qr-panel img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 4px;
  background: var(--color-white);
}

.qr-panel figcaption {
  margin-top: 12px;
  text-align: center;
  font-weight: 900;
}

.page-hero {
  color: var(--color-white);
  background:
    linear-gradient(135deg, rgba(31, 182, 201, 0.18), transparent 36%),
    linear-gradient(90deg, var(--color-deep-space), var(--color-brand-navy));
}

.page-hero h1 {
  color: var(--color-white);
}

.page-hero p:not(.eyebrow) {
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 19px;
}

.service-detail-stack,
.case-matrix {
  display: grid;
  gap: 22px;
}

.service-detail {
  position: relative;
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 24px;
  padding: 30px;
  overflow: hidden;
}

.service-detail > span {
  position: relative;
  z-index: 1;
  color: var(--color-signal-rose);
  font-size: 40px;
  line-height: 1;
  font-weight: 900;
}

.service-detail h2 {
  margin-bottom: 14px;
  font-size: clamp(26px, 3vw, 38px);
}

.service-detail p {
  margin-bottom: 24px;
  color: var(--color-steel);
}

.service-detail dl {
  grid-template-columns: repeat(3, 1fr);
}

.service-detail-accent {
  color: var(--color-white);
  background: var(--color-brand-navy);
}

.service-detail-accent h2,
.service-detail-accent dt {
  color: var(--color-white);
}

.service-detail-accent p,
.service-detail-accent dd {
  color: rgba(255, 255, 255, 0.74);
}

.case-story {
  display: grid;
  grid-template-columns: 1fr;
  overflow: hidden;
}

.case-story img {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  min-height: 0;
  object-fit: contain;
  object-position: center;
  background:
    linear-gradient(135deg, rgba(26, 70, 255, 0.06), rgba(248, 72, 88, 0.04)),
    var(--color-fog);
  transition: transform var(--motion-slow);
}

.case-story div {
  order: -1;
  padding: clamp(24px, 3.2vw, 38px);
}

.case-story h2 {
  margin: 10px 0 18px;
  max-width: 840px;
  font-size: clamp(26px, 3vw, 38px);
}

.case-story p {
  max-width: 980px;
}

.case-story p + p {
  margin-top: 12px;
}

.about-grid {
  grid-template-columns: repeat(3, 1fr);
}

.about-brand-section {
  background:
    linear-gradient(90deg, rgba(8, 16, 112, 0.04), transparent 42%),
    var(--color-white);
}

.about-card {
  min-height: 230px;
  padding: 28px;
}

.about-card h2 {
  margin-bottom: 18px;
  font-size: 28px;
}

.culture-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.culture-card {
  display: grid;
  align-content: start;
}

.culture-card span {
  display: inline-flex;
  margin-bottom: 16px;
  color: var(--color-signal-rose);
  font-size: 13px;
  font-weight: 900;
}

.culture-card h3 {
  min-height: 56px;
  margin-bottom: 14px;
}

.insight-grid {
  grid-template-columns: repeat(2, 1fr);
}

.insight-card {
  min-height: 280px;
  padding: 30px;
}

.ai-answer-section {
  background: var(--color-white);
}

.ai-answer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.ai-answer-card {
  min-height: 260px;
  padding: 28px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(26, 70, 255, 0.05), transparent 34%),
    var(--color-white);
  box-shadow: var(--shadow-tight);
}

.ai-answer-card-wide {
  grid-column: 1 / -1;
  min-height: 0;
  background:
    linear-gradient(135deg, rgba(8, 16, 112, 0.94), rgba(13, 27, 135, 0.94)),
    var(--color-brand-navy);
}

.ai-answer-card span {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--color-electric-blue);
  font-weight: 900;
}

.ai-answer-card-wide span,
.ai-answer-card-wide h3 {
  color: var(--color-white);
}

.ai-answer-card h3 {
  margin-bottom: 14px;
}

.ai-answer-card p {
  color: var(--color-steel);
}

.ai-answer-card-wide p {
  max-width: 960px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
}

.contact-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(560px, 1fr);
  gap: 42px;
  align-items: center;
}

.contact-phone-large {
  margin-top: 30px;
}

.qr-panel-large figure {
  background: rgba(255, 255, 255, 0.12);
}

@media (min-width: 910px) {
  .qr-panel {
    grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
    gap: 20px;
  }

  .qr-panel figure {
    min-height: 260px;
    padding: 10px;
  }

  .qr-panel img {
    width: min(100%, 156px);
    margin-inline: auto;
  }
}

.contact-info-grid {
  grid-template-columns: repeat(3, 1fr);
}

.contact-info-card {
  min-height: 220px;
  padding: 28px;
}

.contact-info-card span {
  color: var(--color-electric-blue);
  font-weight: 900;
}

.contact-info-card h2 {
  margin: 16px 0;
  font-size: 28px;
}

.site-footer {
  padding: 46px 0 84px;
  color: rgba(255, 255, 255, 0.72);
  background: #030721;
}

.footer-inner {
  width: min(var(--max-width), calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto minmax(220px, 0.8fr);
  gap: 34px;
  align-items: start;
}

.footer-brand {
  display: grid;
  gap: 14px;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--color-white);
}

.footer-logo img {
  width: 150px;
  height: 48px;
  object-fit: contain;
  object-position: left center;
  border-radius: 4px;
  background: var(--color-white);
}

.footer-inner p {
  margin-top: 0;
}

.footer-inner nav {
  display: grid;
  gap: 10px;
}

.footer-inner a {
  color: var(--color-white);
}

.footer-contact {
  display: grid;
  gap: 8px;
  justify-items: end;
  text-align: right;
}

.footer-contact a {
  font-size: 24px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.footer-contact .icp-link {
  color: rgba(255, 255, 255, 0.64);
  font-size: 13px;
  font-weight: 600;
}

.footer-contact .icp-link:hover {
  color: var(--color-white);
}

.mobile-consult-bar {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 60;
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(5, 10, 46, 0.92);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(18px);
}

.mobile-consult-bar a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  color: var(--color-white);
  font-weight: 900;
}

.mobile-consult-bar a:first-child {
  background: var(--color-signal-rose);
}

.mobile-consult-bar a:last-child {
  background: rgba(255, 255, 255, 0.12);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity var(--motion-slow),
    transform var(--motion-slow);
}

.service-card.reveal,
.case-card.reveal,
.teacher-card.reveal,
.process-card.reveal,
.insight-card.reveal,
.ai-answer-card.reveal,
.contact-info-card.reveal {
  transition:
    opacity var(--motion-slow),
    transform var(--motion-slow),
    box-shadow var(--motion-base),
    border-color var(--motion-base);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hero .reveal,
.page-hero .reveal,
.contact-hero .reveal,
#diagnosis .section-head.reveal {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .service-card:hover,
  .case-card:hover,
  .teacher-card:hover,
  .process-card:hover,
  .insight-card:hover,
  .ai-answer-card:hover,
  .contact-info-card:hover,
  .faq-list details:hover,
  .btn:hover,
  .header-cta:hover,
  .mobile-consult-bar a:hover,
  .case-card:hover img,
  .case-story:hover img,
  .teacher-card:hover img {
    transform: none;
  }
}

@media (max-width: 1100px) {
  .site-header {
    gap: 14px;
    padding-inline: clamp(16px, 2.6vw, 28px);
  }

  .site-header .brand-lockup-header {
    gap: 10px;
    min-width: 278px;
  }

  .site-header .brand img {
    width: 136px;
    height: 46px;
  }

  .site-header .brand-header-copy {
    min-width: 108px;
  }

  .site-header .brand-tagline {
    min-width: 108px;
    font-size: 17px;
    line-height: 1.26;
  }

  .brand-lockup-divider {
    height: 42px;
  }

  .site-nav a {
    padding-inline: 13px;
  }

  .header-cta {
    padding-inline: 16px;
  }

  .diagnosis-grid,
  .teacher-grid,
  .teacher-grid-large,
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .teacher-grid-large .teacher-card,
  .teacher-grid-large .teacher-card:nth-last-child(2),
  .teacher-grid-large .teacher-card:last-child {
    grid-column: auto;
  }

  .service-card {
    grid-column: span 3;
  }

  .service-card-accent {
    grid-column: span 6;
  }

  .model-timeline {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .model-step::after {
    display: none;
  }
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: auto auto;
    justify-content: space-between;
    min-height: 70px;
    gap: 16px;
  }

  .site-header .brand img {
    width: 150px;
    height: 48px;
  }

  .site-header .brand-lockup-header {
    min-width: 0;
  }

  .site-header .brand-header-copy {
    display: none;
  }

  .site-header .brand-lockup-divider {
    display: none;
  }

  .site-header .brand-tagline {
    display: none;
  }

  .nav-toggle {
    display: inline-grid;
    grid-template-columns: 18px auto;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 0 14px;
    border: 1px solid var(--color-line);
    border-radius: 999px;
    color: var(--color-brand-navy);
    background: var(--color-white);
    font-weight: 900;
  }

  .nav-toggle span {
    grid-column: 1;
    display: block;
    width: 18px;
    height: 2px;
    background: currentColor;
  }

  .nav-toggle strong {
    grid-column: 2;
    grid-row: 1 / 4;
    font-size: 13px;
  }

  .site-nav {
    position: fixed;
    top: 70px;
    left: 14px;
    right: 14px;
    display: none;
    justify-self: stretch;
    grid-column: 1 / -1;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
  }

  body.nav-open .site-nav {
    display: flex;
  }

  .site-nav a {
    min-height: 46px;
    justify-content: center;
  }

  .header-cta {
    display: none;
  }

  .hero {
    min-height: auto;
    border-radius: 0;
  }

  .proof-grid,
  .brand-proof-grid,
  .about-brand-grid,
  .contact-grid,
  .contact-hero-grid,
  .case-story {
    grid-template-columns: 1fr;
  }

  .hero-track {
    min-height: clamp(650px, 88vh, 740px);
  }

  .hero-slide {
    padding: 0;
  }

  .hero-control {
    top: auto;
    bottom: 114px;
    width: 40px;
    height: 40px;
    transform: none;
  }

  .hero-dots {
    bottom: 106px;
  }

  .hero-safe-zone {
    min-height: clamp(650px, 88vh, 740px);
    align-items: start;
    padding-top: 26px;
    padding-bottom: 260px;
  }

  .hero-image-overlay {
    background:
      linear-gradient(180deg, rgba(5, 10, 46, 0.88), rgba(8, 16, 112, 0.64) 38%, rgba(8, 16, 112, 0.16) 64%, rgba(8, 16, 112, 0.02)),
      linear-gradient(135deg, rgba(26, 70, 255, 0.18), rgba(248, 72, 88, 0.07));
  }

  .hero-image img {
    padding: 0;
    object-fit: contain;
    object-position: center bottom;
    opacity: 1;
  }

  .hero-image {
    inset: auto auto 80px 14px;
    width: calc(100% - 28px);
    height: auto;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.28);
  }

  .hero-image-team .hero-image {
    inset: auto auto clamp(190px, calc(37vh - 55px), 260px) 14px;
  }

  .hero-image-services .hero-signal-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    max-width: 100%;
    margin-top: 14px;
  }

  .hero-image-services .hero-signal-list div {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 6px;
    align-items: center;
    padding: 6px 8px;
    border-radius: 8px;
  }

  .hero-image-services .hero-signal-list span {
    font-size: 11px;
  }

  .hero-image-services .hero-signal-list strong {
    font-size: 12px;
    line-height: 1.22;
  }

  .hero-metrics {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 24px;
  }

  .hero-metrics div {
    padding: 14px 12px;
  }

  .hero-metrics dt {
    font-size: 30px;
  }

  .hero-metrics dd {
    font-size: 12px;
    line-height: 1.35;
  }

  .proof-metrics,
  .case-grid,
  .about-grid,
  .culture-grid,
  .insight-grid,
  .ai-answer-grid,
  .contact-info-grid,
  .service-detail dl {
    grid-template-columns: 1fr;
  }

  .case-card {
    grid-template-columns: 1fr;
  }

  .case-card img {
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

  .ai-answer-card-wide {
    grid-column: auto;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .service-card,
  .service-card-accent {
    grid-column: auto;
    min-height: auto;
  }

  .model-timeline,
  .model-method-grid {
    grid-template-columns: 1fr;
  }

  .model-upgrade-panel {
    justify-content: start;
    min-height: 0;
  }

  .model-timeline {
    position: relative;
    gap: 14px;
    padding-left: 18px;
  }

  .model-timeline::before {
    content: "";
    position: absolute;
    top: 22px;
    bottom: 22px;
    left: 0;
    width: 2px;
    border-radius: 999px;
    background: var(--color-line);
  }

  .model-step {
    min-height: 0;
  }

  .model-step::after {
    display: block;
    top: 34px;
    left: -25px;
    right: auto;
    width: 12px;
    height: 12px;
    border: 3px solid var(--color-white);
    border-radius: 50%;
    background: var(--color-electric-blue);
    box-shadow: 0 0 0 2px var(--color-electric-blue);
  }

  .service-detail {
    grid-template-columns: 1fr;
  }

  .brand-lockup-large,
  .brand-lockup-panel {
    min-height: 0;
  }

  .case-story img {
    height: auto;
    min-height: 0;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-contact {
    justify-items: start;
    text-align: left;
  }
}

@media (max-width: 640px) {
  .section,
  .page-hero {
    padding: 64px 0;
  }

  #diagnosis {
    padding-top: 0;
  }

  #diagnosis .eyebrow {
    margin-bottom: 6px;
  }

  .section-inner,
  .section-inner.narrow {
    width: min(100% - 28px, var(--max-width));
  }

  h1 {
    font-size: clamp(34px, 10vw, 44px);
  }

  .hero h1,
  .hero h2 {
    font-size: clamp(30px, 8.8vw, 38px);
    line-height: 1.16;
  }

  h2 {
    font-size: 28px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 20px;
  }

  .btn {
    width: 100%;
    min-height: 44px;
    padding: 0 12px;
    font-size: 14px;
    white-space: nowrap;
  }

  .hero {
    padding: 0;
  }

  .hero-track {
    min-height: clamp(650px, 88vh, 740px);
  }

  .hero-slide {
    align-items: start;
    padding: 0;
  }

  .hero-lede {
    display: -webkit-box;
    margin-top: 16px;
    overflow: hidden;
    font-size: 16px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .hero-slide:not(:first-child) .hero-lede {
    -webkit-line-clamp: 2;
  }

  .hero-image-team .hero-lede {
    display: block;
    overflow: visible;
    font-size: 15px;
    line-height: 1.55;
    -webkit-line-clamp: unset;
  }

  .hero-image-team .hero-actions {
    margin-top: 16px;
  }

  .hero-image-team .hero-image {
    inset: auto auto clamp(172px, calc(36vh - 72px), 180px) 14px;
  }

  .hero-metrics {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 18px;
  }

  .hero-metrics div {
    min-width: 0;
    padding: 12px 10px;
  }

  .hero-metrics dt {
    font-size: 26px;
  }

  .hero-metrics dd {
    margin-top: 7px;
    font-size: 11px;
    line-height: 1.35;
  }

  .hero-safe-zone {
    min-height: clamp(650px, 88vh, 740px);
    padding-top: 24px;
    padding-bottom: 280px;
  }

  .hero-signal-list {
    gap: 8px;
    margin-top: 16px;
  }

  .hero-signal-list div {
    padding: 7px 10px 7px 8px;
  }

  .hero-signal-list span {
    font-size: 12px;
  }

  .hero-signal-list strong {
    font-size: 13px;
  }

  .hero-control {
    bottom: 112px;
    width: 36px;
    height: 36px;
  }

  .hero-control-prev {
    left: 14px;
  }

  .hero-control-next {
    right: 14px;
  }

  .hero-control span {
    font-size: 26px;
  }

  .hero-dots {
    bottom: 104px;
    gap: 7px;
  }

  .hero-dot {
    width: 25px;
    height: 5px;
  }

  .diagnosis-grid,
  .teacher-grid,
  .teacher-grid-large,
  .process-grid,
  .qr-panel {
    grid-template-columns: 1fr;
  }

  .split-head {
    display: block;
  }

  .text-link {
    display: inline-flex;
    margin-top: 16px;
  }

  .service-detail,
  .case-story div,
  .diagnosis-card,
  .service-card,
  .process-card,
  .model-step,
  .model-panel,
  .insight-card,
  .ai-answer-card,
  .about-card,
  .brand-lockup-panel,
  .brand-lockup-large,
  .contact-info-card {
    padding: 22px;
  }

  .brand-lockup {
    align-items: flex-start;
  }

  .brand-lockup img {
    width: 138px;
    height: 48px;
  }

  .footer-logo img {
    width: 138px;
    height: 44px;
  }

  .brand-lockup strong {
    font-size: 24px;
  }

  .culture-card h3 {
    min-height: 0;
  }

  .model-duration {
    min-height: 38px;
    font-size: 28px;
  }

  .model-step h3 {
    margin-top: 16px;
  }

  .model-upgrade-panel {
    gap: 12px;
  }

  .model-upgrade-panel h3 {
    font-size: 30px;
  }

  .model-upgrade-panel p {
    max-width: none;
    font-size: 16px;
    line-height: 1.75;
  }

  .model-chain,
  .model-dimensions {
    gap: 8px;
  }

  .model-chain span,
  .model-dimensions span {
    min-height: 34px;
    padding-inline: 12px;
  }

  .contact-phone {
    font-size: clamp(32px, 11vw, 48px);
  }

  .site-footer {
    padding-bottom: 106px;
  }

  .mobile-consult-bar {
    display: grid;
  }
}
