/* 01. Shared layout: equal gutters keep every page centered at every width. */
:root {
  --content-max: 1240px;
  --page-gutter: 32px;
  --section-space: 72px;
  --column-gap: clamp(32px, 4vw, 64px);
}
.container {
  width: min(var(--content-max), calc(100% - var(--page-gutter) * 2));
  margin-inline: auto;
}
.section { padding-block: var(--section-space); }
.page-hero { padding-block: 64px 56px; }
.industry-panel { padding-top: 32px; padding-bottom: 0; }
.section-heading { margin-bottom: 32px; gap: 24px; }
.section-heading > div { min-width: 0; }
.section-heading > div > p { margin-top: 16px; line-height: 1.85; }

/* The rail stays outside both symmetric gutters; it never shifts the body. */
@media (min-width: 1101px) {
  :root { --page-gutter: 112px; }
  .hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: clamp(28px, 3vw, 56px);
    min-height: clamp(520px, 43vw, 620px);
    padding-block: 48px 28px;
  }
  .hero h1 { font-size: clamp(40px, 3.7vw, 60px); line-height: 1.4; }
  .hero-visual { min-height: 0; }
  .ai-grid, .home-about-grid, .about-grid, .mission-grid { gap: var(--column-gap); }
  .ai-grid, .home-about-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
  .service-detail-grid { grid-template-columns: minmax(0, .85fr) minmax(0, 1.3fr); gap: var(--column-gap); }
  .industry-panel { gap: var(--column-gap); }
  .footer-grid { grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, .85fr)) minmax(0, 1.2fr); gap: 32px; }
}

/* 02. Consistent card rhythm without adding back removed content. */
.business-paths, .service-cards, .pilot-steps { gap: 24px; }
.business-card {
  padding: 26px;
  border: 1px solid #dce7f5;
  border-radius: 16px;
  background: linear-gradient(145deg, #fff, #f7faff);
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.business-card:hover { border-color: #95b9ed; box-shadow: 0 12px 32px #2447760c; transform: translateY(-3px); }
.business-card h3 { font-size: 20px; margin-block: 18px; }
.service-cards { align-items: stretch; }
.service-card { display: flex; flex-direction: column; }
.service-card .card-bottom { margin-top: auto; padding-top: 24px; }
.ai-grid > *, .home-about-grid > *, .about-grid > *, .service-detail-grid > *, .footer-grid > * { min-width: 0; }
.page-hero p { line-height: 1.9; }
.site-footer { padding-top: 56px; }
.footer-grid { padding-bottom: 44px; }
.footer-contact .text-link { line-height: 1.8; }

/* 03. Tablet and phone: preserve the center and readable breathing room. */
@media (min-width: 701px) and (max-width: 1100px) {
  :root { --section-space: 60px; }
  .hero h1 { font-size: clamp(32px, 4.2vw, 46px); }
  .hero-grid { gap: 24px; }
  .hero-visual { min-height: 0; }
  .ai-grid, .home-about-grid, .about-grid { gap: 32px; }
  .business-paths, .service-cards { gap: 18px; }
  .business-card { padding: 22px 18px; }
  .business-card h3 { font-size: 18px; }
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  :root { --page-gutter: 20px; --section-space: 44px; }
  .topbar .container { justify-content: center; height: 30px; }
  .topbar .container > span:first-child { display: none; }
  .topbar .container > span:last-child { font-size: 10px; white-space: nowrap; letter-spacing: .3px; }
  .hero h1 { font-size: clamp(29px, 8.3vw, 39px); }
  .hero-grid { gap: 0; }
  .section-heading { gap: 18px; margin-bottom: 26px; }
  .business-paths, .service-cards { gap: 18px; }
  .business-card { padding: 24px; }
  .business-card h3 { font-size: 20px; margin-block: 16px; }
  .ai-grid, .home-about-grid, .about-grid { gap: 28px; }
  .page-hero { padding-block: 42px 36px; }
  .industry-panel { padding-top: 26px; }
  .page-hero h1 { font-size: clamp(28px, 7.6vw, 33px); }
  .site-footer { padding-top: 40px; }
  .footer-grid { padding-bottom: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  .business-card { transition: none; }
  .business-card:hover { transform: none; }
}
