:root {
  color-scheme: light;
  --blue: #245ca8;
  --blue-deep: #15345f;
  --red: #e5383b;
  --yellow: #f3b51b;
  --ink: #15181d;
  --muted: #626a75;
  --line: #dfe3e8;
  --soft: #f4f6f8;
  --soft-blue: #edf3f9;
  --white: #ffffff;
  --dark: #111923;
  --content: 1180px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Noto Sans Thai", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.65;
}

html[lang="th"] body {
  font-family: "Leelawadee UI", "Noto Sans Thai", Tahoma, sans-serif;
}

body.menu-open {
  overflow: hidden;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

img,
video {
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 74px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 2rem;
  padding: 0.8rem max(clamp(1rem, 2.5vw, 3rem), calc((100vw - 1680px) / 2));
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(223, 227, 232, 0.9);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
}

.brand img {
  width: 174px;
  height: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.55rem;
  color: #454b55;
  font-size: 0.93rem;
  font-weight: 650;
}

.nav-links a {
  position: relative;
  padding: 0.55rem 0;
}

.nav-links a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0.2rem;
  left: 0;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 160ms ease;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-tools,
.language-toggle,
.quick-actions,
.site-footer {
  display: flex;
  align-items: center;
}

.header-tools {
  gap: 0.65rem;
  justify-self: end;
}

.language-toggle {
  padding: 0.18rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--soft);
}

.language-toggle button {
  min-width: 2.45rem;
  min-height: 2rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 800;
}

.language-toggle button.is-active {
  background: var(--white);
  color: var(--red);
  box-shadow: 0 1px 3px rgba(18, 26, 36, 0.14);
}

.menu-toggle {
  width: 42px;
  height: 42px;
  display: none;
  place-content: center;
  gap: 5px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  cursor: pointer;
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  display: block;
  background: var(--ink);
  transition: transform 160ms ease, opacity 160ms ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  width: min(1680px, calc(100% - clamp(2rem, 5vw, 6rem)));
  min-height: calc(100svh - 74px);
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(0, 2fr);
  align-items: center;
  gap: clamp(2rem, 3.5vw, 4.5rem);
  margin: 0 auto;
  padding: clamp(3.5rem, 5vw, 5.5rem) 0;
}

.hero-content {
  display: grid;
  gap: 1.25rem;
  align-content: center;
  max-width: 520px;
}

.eyebrow {
  margin: 0;
  color: var(--red);
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow.light {
  color: #f8c84b;
}

.hero .eyebrow {
  line-height: 1.45;
  white-space: pre-line;
}

.hero h1 {
  max-width: 520px;
  margin: 0;
  font-size: clamp(2.75rem, 3.35vw, 4.15rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

html[lang="th"] .hero h1 {
  font-size: clamp(2.45rem, 2.85vw, 3.55rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.24;
}

html[lang="en"] .hero h1 {
  font-size: clamp(2rem, 3vw, 3.35rem);
  color: #747c87;
  line-height: 1.34;
  white-space: normal;
}

.hero-title-line {
  display: block;
}

html[lang="en"] .hero h1 .hero-title-initial {
  color: var(--ink);
}

.hero-description {
  max-width: 590px;
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.8;
  white-space: pre-line;
  text-wrap: balance;
}

.quick-actions {
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.25rem;
}

.action-button {
  min-height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.68rem 1.18rem;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--white);
  font-weight: 750;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}

.action-button.primary {
  border-color: var(--blue);
  background: var(--blue);
  color: var(--white);
}

.action-button:hover,
.action-button:focus-visible {
  border-color: var(--blue);
  color: var(--blue);
}

.action-button.primary:hover,
.action-button.primary:focus-visible {
  background: var(--blue-deep);
  color: var(--white);
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.2rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}

.hero-facts div {
  display: grid;
  gap: 0.15rem;
}

.hero-facts strong {
  color: var(--blue);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.hero-facts span {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.hero-visual {
  position: relative;
  min-width: 0;
  height: clamp(540px, 64vh, 690px);
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: var(--soft);
}

.brand-stripe {
  position: absolute;
  z-index: 2;
  inset: 0 0 auto;
  height: 5px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.brand-stripe span:nth-child(1) { background: var(--yellow); }
.brand-stripe span:nth-child(2) { background: var(--red); }
.brand-stripe span:nth-child(3) { background: var(--blue); }

.hero-visual img,
.hero-video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.hero-video {
  background: #0b1118;
}

.hero-visual::after {
  position: absolute;
  z-index: 1;
  inset: 48% 0 0;
  background: linear-gradient(to bottom, transparent, rgba(4, 10, 17, 0.66));
  content: "";
  pointer-events: none;
}

.hero-data-panel {
  position: absolute;
  z-index: 2;
  top: 1.5rem;
  right: 1.5rem;
  width: min(340px, calc(100% - 3rem));
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 35px rgba(18, 26, 36, 0.18);
}

.hero-data-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
  color: var(--blue-deep);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
}

.hero-data-status > span {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 4px rgba(232, 49, 59, 0.12);
}

.hero-data-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0.85rem 0 0;
  list-style: none;
}

.hero-data-flow li {
  min-width: 0;
  display: grid;
  gap: 0.3rem;
  padding: 0 0.65rem;
  border-right: 1px solid var(--line);
}

.hero-data-flow li:first-child {
  padding-left: 0;
}

.hero-data-flow li:last-child {
  padding-right: 0;
  border-right: 0;
}

.hero-data-flow span {
  color: var(--red);
  font-size: 0.68rem;
  font-weight: 850;
}

.hero-data-flow strong {
  color: var(--ink);
  font-size: 0.76rem;
  line-height: 1.35;
}

.hero-visual figcaption {
  position: absolute;
  z-index: 2;
  right: 1.25rem;
  bottom: 1.2rem;
  left: 1.25rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.75);
  color: var(--white);
  font-size: 0.88rem;
  font-weight: 700;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.75);
}

.highlight-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.68fr) minmax(0, 1.32fr);
  gap: 4rem;
  align-items: center;
  padding: 5rem max(1rem, calc((100vw - var(--content)) / 2));
  background: var(--dark);
  color: var(--white);
}

.highlight-copy {
  display: grid;
  gap: 1rem;
}

.highlight-copy h2,
.section h2,
.shm-section h2,
.contact-section h2,
.about-section h2 {
  margin: 0;
  font-size: 2.9rem;
  line-height: 1.18;
  letter-spacing: 0;
}

.highlight-copy > p:not(.eyebrow) {
  margin: 0;
  color: #c8d0d9;
}

.highlight-note {
  display: grid;
  gap: 0.3rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  color: #95a1af;
  font-size: 0.78rem;
}

.video-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  min-width: 0;
  overflow: hidden;
  border-radius: 8px;
  background-color: #05070a;
  background-image: url("assets/media/jplan-highlight-web-poster.jpg?v=20261103-fullframe-v1");
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.highlight-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  opacity: 1;
}

.video-shell.has-error .highlight-video {
  display: none;
}

.video-quality {
  position: absolute;
  z-index: 2;
  top: 0.85rem;
  right: 0.85rem;
  padding: 0.35rem 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 4px;
  background: rgba(10, 17, 25, 0.76);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  pointer-events: none;
}

.video-fallback {
  grid-column: 2;
  display: flex;
  justify-content: flex-end;
  gap: 0.4rem;
  margin: -3.15rem 0 0;
  color: #95a1af;
  font-size: 0.76rem;
}

.video-fallback a {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.section,
.section-inner {
  width: min(var(--content), calc(100% - 2rem));
  margin: 0 auto;
}

.section {
  padding: 6rem 0;
}

.section-heading {
  margin-bottom: 2.2rem;
}

.split-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.65fr);
  gap: 4rem;
  align-items: end;
}

.split-heading > div {
  display: grid;
  gap: 0.65rem;
}

.split-heading > p {
  margin: 0;
  color: var(--muted);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.service-card {
  min-height: 245px;
  display: grid;
  align-content: start;
  gap: 1rem;
  padding: 1.6rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.service-card.featured {
  grid-column: span 2;
  background: var(--soft-blue);
}

.card-number {
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 850;
}

.service-card h3 {
  margin: 0;
  font-size: 1.27rem;
}

.service-card p {
  max-width: 540px;
  margin: 0;
  color: var(--muted);
}

.shm-section {
  padding: 6rem 0;
  background: var(--soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.shm-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 0 2.5rem;
  padding: 0;
  border-top: 1px solid #cdd4dc;
  border-bottom: 1px solid #cdd4dc;
  list-style: none;
}

.shm-flow li {
  min-height: 108px;
  display: grid;
  align-content: center;
  gap: 0.25rem;
  padding: 1rem 1.2rem;
  border-right: 1px solid #cdd4dc;
}

.shm-flow li:last-child {
  border-right: 0;
}

.shm-flow strong {
  color: var(--blue);
  font-size: 0.78rem;
}

.shm-flow span {
  font-weight: 750;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.case-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.case-card figure {
  aspect-ratio: 16 / 10;
  margin: 0;
  overflow: hidden;
  background: #dbe1e7;
}

.case-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 280ms ease;
}

.case-card:hover img {
  transform: scale(1.025);
}

.case-content {
  display: grid;
  gap: 0.65rem;
  padding: 1.35rem;
}

.case-content > span {
  color: var(--red);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.05em;
}

.case-content h3,
.product-copy h3 {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.3;
}

.case-content p,
.product-copy > p:last-child,
.about-copy > p,
.contact-section p {
  margin: 0;
  color: var(--muted);
}

.project-categories {
  display: flex;
  gap: 0.55rem;
  margin-bottom: 1.4rem;
  overflow-x: auto;
  scrollbar-width: thin;
}

.project-categories button {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0.62rem 0.9rem;
  border: 1px solid #cbd3dc;
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 750;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.project-categories button:hover,
.project-categories button:focus-visible {
  border-color: var(--blue);
  color: var(--blue);
}

.project-categories button[aria-selected="true"] {
  border-color: var(--blue-deep);
  background: var(--blue-deep);
  color: var(--white);
}

.project-carousel-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.project-carousel-toolbar > p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
}

.project-carousel-controls {
  display: flex;
  gap: 0.45rem;
}

.project-carousel-controls button {
  width: 44px;
  height: 44px;
  border: 1px solid #cbd3dc;
  border-radius: 4px;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  font-size: 1.25rem;
  transition: border-color 160ms ease, color 160ms ease, opacity 160ms ease;
}

.project-carousel-controls button:hover,
.project-carousel-controls button:focus-visible {
  border-color: var(--blue);
  color: var(--blue);
}

.project-carousel-controls button:disabled {
  opacity: 0.35;
  cursor: default;
}

.project-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 62%;
  column-gap: 1.2rem;
  padding: 0 0 0.7rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-color: var(--blue) #d7dde4;
  scrollbar-width: thin;
  outline: none;
}

.project-track:focus-visible {
  box-shadow: 0 0 0 3px rgba(39, 99, 171, 0.16);
}

.project-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  scroll-snap-align: start;
}

.project-card figure {
  aspect-ratio: 16 / 8.5;
  margin: 0;
  overflow: hidden;
  background: #dbe1e7;
}

.project-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: left center;
  transition: transform 280ms ease;
}

.project-card figure.focus-right img {
  object-position: right center;
}

.project-card:hover img {
  transform: scale(1.02);
}

.project-card-content {
  min-height: 220px;
  display: grid;
  align-content: start;
  gap: 0.65rem;
  padding: 1.45rem;
}

.project-card-content > span {
  color: var(--red);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.05em;
}

.project-card-content h3 {
  margin: 0;
  font-size: 1.45rem;
  line-height: 1.25;
}

.project-card-content p {
  max-width: 650px;
  margin: 0;
  color: var(--muted);
}

.product-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  overflow: hidden;
}

.product-tabs button {
  min-height: 74px;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.2rem;
  border: 0;
  border-right: 1px solid var(--line);
  background: var(--soft);
  color: var(--muted);
  cursor: pointer;
  text-align: left;
}

.product-tabs button:last-child {
  border-right: 0;
}

.product-tabs button[aria-selected="true"] {
  background: var(--white);
  color: var(--ink);
  box-shadow: inset 0 4px 0 var(--blue);
}

.product-tabs button span {
  color: var(--red);
  font-size: 0.76rem;
  font-weight: 850;
}

.product-tabs button strong {
  font-size: 1rem;
}

.product-panel {
  position: relative;
  min-height: 360px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.72fr) 210px;
  gap: 3rem;
  align-items: center;
  padding: 3rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0 0 8px 8px;
  background: var(--white);
}

.product-copy {
  display: grid;
  gap: 0.85rem;
}

.status-label {
  width: fit-content;
  padding: 0.25rem 0.55rem;
  border: 1px solid #e6c75f;
  border-radius: 999px;
  background: #fff9df;
  color: #6e5706;
  font-size: 0.73rem;
  font-weight: 850;
}

.product-kicker {
  margin: 0;
  color: var(--blue);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.06em;
}

.product-features {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.product-features li {
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.product-features li::before {
  content: "+";
  margin-right: 0.55rem;
  color: var(--red);
  font-weight: 900;
}

.product-mark {
  width: 180px;
  height: 180px;
  display: grid;
  place-items: center;
  border: 18px solid var(--soft-blue);
  border-radius: 50%;
  color: var(--blue);
  font-size: 3rem;
  font-weight: 900;
}

.product-mark.standard {
  border-radius: 8px;
  font-size: 1.7rem;
}

.activity-section {
  border-top: 1px solid var(--line);
}

.activity-panel {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 1.5rem;
  align-items: center;
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, var(--soft-blue), var(--white) 72%);
}

.activity-mark {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border: 10px solid rgba(36, 92, 168, 0.12);
  border-radius: 50%;
  color: var(--blue);
  font-size: 2rem;
  font-weight: 900;
}

.activity-copy {
  display: grid;
  gap: 0.65rem;
}

.activity-copy h3,
.activity-copy p {
  margin: 0;
}

.activity-copy h3 {
  font-size: 1.35rem;
}

.activity-copy p {
  max-width: 760px;
  color: var(--muted);
}

.customers-section {
  border-top: 1px solid var(--line);
}

.customer-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.customer-group {
  min-height: 220px;
  display: grid;
  align-content: start;
  gap: 0.8rem;
  padding: 1.75rem;
  border-right: 1px solid var(--line);
}

.customer-group:last-child {
  border-right: 0;
}

.customer-group > span {
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 850;
}

.customer-group h3,
.customer-group p,
.customer-note {
  margin: 0;
}

.customer-group h3 {
  font-size: 1.3rem;
}

.customer-group p {
  color: var(--muted);
}

.customer-note {
  padding-top: 1.1rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.about-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
  gap: 5rem;
  align-items: start;
  border-top: 1px solid var(--line);
}

.about-section > div:first-child {
  display: grid;
  gap: 0.65rem;
}

.about-copy {
  display: grid;
  gap: 1.5rem;
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.about-tags span {
  padding: 0.35rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #404751;
  font-size: 0.78rem;
  font-weight: 700;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4rem;
  align-items: end;
  padding: 4.5rem max(1rem, calc((100vw - var(--content)) / 2));
  background: var(--blue-deep);
  color: var(--white);
}

.contact-section > div:first-child {
  display: grid;
  gap: 0.75rem;
}

.contact-section h2 {
  max-width: 700px;
}

.contact-section p {
  color: #c8d7e8;
}

.contact-actions {
  display: grid;
  gap: 0.45rem;
  justify-items: end;
}

.contact-actions a {
  font-size: 1.2rem;
  font-weight: 850;
}

.contact-actions span {
  color: #a9bed5;
  font-size: 0.82rem;
}

.site-footer {
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem max(1rem, calc((100vw - var(--content)) / 2));
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--red);
}

@media (max-width: 1080px) {
  .site-header {
    gap: 1rem;
  }

  .nav-links {
    gap: 0.9rem;
    font-size: 0.86rem;
  }

  .hero {
    width: min(100% - 2rem, 1180px);
    min-height: 650px;
    grid-template-columns: minmax(280px, 0.9fr) minmax(400px, 1.65fr);
    gap: 2rem;
  }

  .hero h1 {
    font-size: 2.75rem;
  }

  .highlight-section {
    gap: 2.5rem;
  }

  .product-panel {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 0.7fr) 150px;
    gap: 2rem;
  }

  .product-mark {
    width: 140px;
    height: 140px;
    border-width: 14px;
    font-size: 2.4rem;
  }
}

@media (max-width: 860px) {
  html {
    scroll-padding-top: 72px;
  }

  .site-header {
    grid-template-columns: auto 1fr;
  }

  .header-tools {
    justify-self: end;
  }

  .menu-toggle {
    display: grid;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    width: 100%;
    display: none;
    align-items: stretch;
    justify-content: stretch;
    padding: 0.75rem 1rem 1rem;
    border-bottom: 1px solid var(--line);
    background: var(--white);
    box-shadow: 0 18px 30px rgba(18, 26, 36, 0.1);
  }

  .nav-links[data-open="true"] {
    display: grid;
  }

  .nav-links a {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--line);
  }

  .nav-links a:last-child {
    border-bottom: 0;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 3.5rem 0 4rem;
  }

  .hero h1 {
    max-width: 720px;
    font-size: 3.1rem;
  }

  .hero-content {
    max-width: 720px;
  }

  .hero-visual {
    height: 430px;
  }

  .hero-data-panel {
    width: min(390px, calc(100% - 3rem));
  }

  .highlight-section,
  .split-heading,
  .about-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .highlight-section,
  .contact-section {
    gap: 2.5rem;
  }

  .video-fallback {
    grid-column: 1;
    justify-content: flex-start;
    margin: -1.5rem 0 0;
  }

  .split-heading,
  .about-section {
    gap: 1.5rem;
  }

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

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

  .case-card {
    display: grid;
    grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1fr);
  }

  .case-card figure {
    aspect-ratio: auto;
    min-height: 250px;
  }

  .case-content {
    align-content: center;
  }

  .project-track {
    grid-auto-columns: 76%;
  }

  .product-panel {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 0.7fr);
  }

  .product-mark {
    display: none;
  }

  .contact-actions {
    justify-items: start;
  }
}

@media (max-width: 620px) {
  .site-header {
    min-height: 66px;
    padding: 0.7rem 1rem;
  }

  .brand img {
    width: 132px;
  }

  .hero {
    width: min(100% - 1.5rem, var(--content));
    gap: 2rem;
    padding: 2.6rem 0 3rem;
  }

  .hero h1 {
    font-size: 2.25rem;
  }

  .hero-description {
    font-size: 1rem;
  }

  .hero-facts {
    gap: 0.65rem;
  }

  .hero-visual {
    height: 330px;
  }

  .hero-visual img {
    object-position: 38% center;
  }

  .hero-data-panel {
    top: 0.85rem;
    right: 0.85rem;
    width: calc(100% - 1.7rem);
    padding: 0.8rem;
  }

  .hero-data-flow {
    padding-top: 0.7rem;
  }

  .hero-data-flow li {
    padding: 0 0.45rem;
  }

  .hero-data-flow strong {
    font-size: 0.7rem;
  }

  .hero-visual figcaption {
    right: 0.85rem;
    bottom: 0.85rem;
    left: 0.85rem;
    font-size: 0.72rem;
  }

  .highlight-section,
  .contact-section {
    padding: 4rem 1rem;
  }

  .highlight-copy h2,
  .section h2,
  .shm-section h2,
  .contact-section h2,
  .about-section h2 {
    font-size: 2.1rem;
  }

  .video-meta span:first-child {
    display: none;
  }

  .video-quality {
    display: none;
  }

  .video-fallback {
    flex-wrap: wrap;
    margin-top: -1.65rem;
  }

  .section,
  .section-inner {
    width: calc(100% - 1.5rem);
  }

  .section,
  .shm-section {
    padding-top: 4.25rem;
    padding-bottom: 4.25rem;
  }

  .service-grid,
  .shm-flow,
  .product-tabs,
  .product-panel {
    grid-template-columns: 1fr;
  }

  .service-card.featured {
    grid-column: auto;
  }

  .service-card {
    min-height: auto;
  }

  .activity-panel {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 1rem;
    padding: 1.25rem;
  }

  .activity-mark {
    width: 64px;
    height: 64px;
    border-width: 8px;
    font-size: 1.5rem;
  }

  .customer-list {
    grid-template-columns: 1fr;
  }

  .customer-group {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .customer-group:last-child {
    border-bottom: 0;
  }

  .shm-flow li {
    min-height: 76px;
    grid-template-columns: 42px 1fr;
    align-items: center;
    border-right: 0;
    border-bottom: 1px solid #cdd4dc;
  }

  .shm-flow li:last-child {
    border-bottom: 0;
  }

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

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

  .project-categories {
    margin-right: -0.75rem;
    padding-bottom: 0.35rem;
  }

  .project-carousel-toolbar {
    margin-top: 0.35rem;
  }

  .project-track {
    grid-auto-columns: 88%;
    column-gap: 0.8rem;
    margin-right: -0.75rem;
  }

  .project-card figure {
    aspect-ratio: 16 / 10;
  }

  .project-card-content {
    min-height: 230px;
    padding: 1.2rem;
  }

  .project-card-content h3 {
    font-size: 1.25rem;
  }

  .product-tabs button {
    min-height: 62px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .product-tabs button:last-child {
    border-bottom: 0;
  }

  .product-panel {
    gap: 1.5rem;
    padding: 1.5rem;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
