@font-face {
  font-family: 'Prompt';
  src: url('../fonts/Prompt-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Prompt';
  src: url('../fonts/Prompt-Bold.ttf') format('truetype');
  font-weight: 700 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #192b63;
  --navy-900: #0a1533;
  --navy-800: #101f4b;
  --blue: #73b1df;
  --blue-100: #e8f4fd;
  --ink: #071326;
  --muted: #5d6b82;
  --line: #d9e2ef;
  --surface: #f6f8fb;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(7, 19, 38, 0.12);
  --radius: 8px;
  --thai-font: 'Prompt', "IBM Plex Sans Thai", "Noto Sans Thai", "Tahoma", system-ui, sans-serif;
  --latin-font: 'Prompt', "DIN Alternate", "DIN Condensed", "Arial Narrow", "Inter", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: var(--thai-font);
  line-height: 1.65;
  overflow-x: clip;
}

body.lang-en {
  font-family: var(--latin-font);
  letter-spacing: 0;
}

body.has-lightbox-open {
  overflow: hidden;
}

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

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

p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--navy);
  box-shadow: var(--shadow);
}

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

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.topbar {
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
}

.topbar .container {
  display: flex;
  min-height: 40px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.topbar a {
  color: var(--white);
  font-weight: 700;
  white-space: nowrap;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(217, 226, 239, 0.92);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  min-height: 78px;
  align-items: center;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}

.brand-wordmark {
  width: 218px;
  height: 54px;
  padding: 8px 10px;
  border-radius: var(--radius);
  background: var(--navy);
  object-fit: cover;
  object-position: center;
}

.nav-list {
  display: flex;
  justify-content: flex-end;
  gap: 4px;
  list-style: none;
}

.nav-list a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 0 12px;
  border-radius: var(--radius);
  color: var(--navy);
  font-weight: 700;
}

.nav-list a:hover,
.nav-list a.is-active {
  background: var(--blue-100);
}

.language-switch {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.lang-option {
  display: inline-grid;
  min-width: 42px;
  height: 36px;
  place-items: center;
  border-radius: 6px;
  color: var(--navy);
  font-family: var(--latin-font);
  font-size: 13px;
  font-weight: 800;
}

.lang-option.is-active {
  background: var(--navy);
  color: var(--white);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--navy);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0;
  background: currentColor;
}

.hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(135deg, var(--navy), var(--navy-800));
  background-size: 34px 34px, 34px 34px, auto;
  color: var(--white);
}

.hero-cover {
  position: relative;
  overflow: hidden;
  padding: clamp(16px, 2.4vw, 32px) 0;
  background:
    radial-gradient(circle at 50% 0%, rgba(115, 177, 223, 0.22), transparent 38%),
    linear-gradient(135deg, var(--navy-900), var(--navy));
}

.hero-cover-container {
  width: min(100% - 32px, 1480px);
  margin-inline: auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: clamp(12px, 1.5vw, 22px);
  background: var(--white);
  box-shadow: 0 28px 70px rgba(3, 12, 34, 0.32);
}

.hero-cover-media {
  display: grid;
  aspect-ratio: 1690 / 931;
  overflow: hidden;
  place-items: center;
  background: #eef6ff;
}

.hero-cover-media img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.hero-cover-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 240px));
  justify-content: center;
  gap: 14px;
  padding: clamp(18px, 2.2vw, 28px);
  background:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    var(--navy-900);
  background-size: 28px 28px;
}

.hero-cover-actions .button {
  width: 100%;
  min-height: 52px;
  border-radius: 10px;
  font-size: 17px;
}

.hero-cover-actions .button-secondary {
  border-color: rgba(255, 255, 255, 0.56);
  background: rgba(255, 255, 255, 0.04);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(300px, 0.82fr);
  min-height: 620px;
  align-items: center;
  gap: 36px;
  padding: 70px 0 88px;
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  color: #e8f4fd;
  font-size: 14px;
  font-weight: 700;
}

.hero-label-line {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.hero-label-line .eyebrow {
  margin-bottom: 0;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--navy);
  line-height: 1.15;
}

.hero h1 {
  color: var(--white);
  max-width: 760px;
  font-size: clamp(38px, 5.2vw, 64px);
  line-height: 1.08;
  text-wrap: balance;
  word-break: normal;
  overflow-wrap: normal;
}

.nowrap {
  white-space: nowrap;
}

.hero-copy {
  max-width: 680px;
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 20px;
}

.hero-actions,
.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button:focus-visible {
  outline: 3px solid rgba(115, 177, 223, 0.82);
  outline-offset: 3px;
}

.button-primary {
  background: var(--blue);
  color: var(--navy-900);
  box-shadow: 0 9px 20px rgba(115, 177, 223, 0.22);
}

.button-primary:hover {
  box-shadow: 0 13px 26px rgba(115, 177, 223, 0.34);
}

.button-secondary {
  border-color: rgba(255, 255, 255, 0.42);
  color: var(--white);
}

.button-outline {
  border-color: var(--line);
  background: var(--white);
  color: var(--navy);
}

.button-outline:hover {
  border-color: rgba(115, 177, 223, 0.82);
  background: var(--blue-100);
}

.hero-panel {
  position: relative;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.24);
}

.hero-logo {
  display: grid;
  min-height: 240px;
  place-items: center;
  border-radius: var(--radius);
  background: rgba(10, 21, 51, 0.72);
}

.hero-logo img {
  width: min(420px, 88%);
  height: auto;
  object-fit: contain;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 14px;
}

.trust-item {
  min-height: 112px;
  padding: 14px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.95);
  color: var(--navy);
}

.trust-item strong {
  display: block;
  color: var(--navy);
  font-size: 26px;
  line-height: 1;
}

.trust-item span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

.section {
  padding: 86px 0;
}

.section-muted {
  background: var(--surface);
}

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

.section-dark h2,
.section-dark h3 {
  color: var(--white);
}

.section-header {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(260px, 0.55fr);
  align-items: end;
  gap: 38px;
  margin-bottom: 34px;
}

.section-kicker {
  margin-bottom: 10px;
  color: var(--blue);
  font-family: var(--latin-font);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.heading-icon-line,
.card-title-line {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.heading-icon-line {
  margin-bottom: 10px;
}

.heading-icon-line .section-kicker {
  margin: 4px 0 8px;
}

.page-heading-icon {
  align-items: center;
  margin-bottom: 12px;
}

.page-heading-icon .section-kicker {
  margin: 0;
}

.motion-icon {
  position: relative;
  display: inline-grid;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(115, 177, 223, 0.36);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(115, 177, 223, 0.22), rgba(255, 255, 255, 0.92));
  color: var(--navy);
  box-shadow: 0 10px 24px rgba(7, 19, 38, 0.08);
  animation: iconFloat 4.8s ease-in-out infinite;
}

.motion-icon::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(115, 177, 223, 0.36);
  border-radius: 6px;
  opacity: 0;
  transform: scale(0.7);
  animation: iconPulse 4.8s ease-in-out infinite;
}

.motion-icon svg {
  position: relative;
  z-index: 1;
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 54;
  stroke-dashoffset: 0;
  animation: iconDraw 5.4s ease-in-out infinite;
}

.card-title-line {
  margin-bottom: 12px;
}

.number-card .card-title-line {
  align-items: center;
}

.card-title-line h3 {
  margin-bottom: 0;
}

.card-title-line .motion-icon {
  width: 38px;
  height: 38px;
}

.card-title-line .motion-icon svg {
  width: 24px;
  height: 24px;
}

.section-dark .motion-icon,
.hero .motion-icon,
.page-hero .motion-icon,
.highlight-panel .motion-icon {
  border-color: rgba(255, 255, 255, 0.26);
  background: linear-gradient(135deg, rgba(115, 177, 223, 0.32), rgba(255, 255, 255, 0.14));
  color: var(--white);
  box-shadow: none;
}

.card:hover .motion-icon,
.faq-item:hover .motion-icon,
.contact-list a:hover .motion-icon {
  animation-duration: 2.8s;
}

@keyframes iconFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-4px);
  }
}

@keyframes iconPulse {
  0%,
  72%,
  100% {
    opacity: 0;
    transform: scale(0.72);
  }

  36% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes iconDraw {
  0%,
  100% {
    stroke-dashoffset: 0;
  }

  45% {
    stroke-dashoffset: 18;
  }
}

.section-header h2,
.page-title h1 {
  font-size: clamp(32px, 4vw, 52px);
}

.lead {
  color: var(--muted);
  font-size: 18px;
}

.section-dark .lead {
  color: rgba(255, 255, 255, 0.78);
}

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

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 12px 30px rgba(7, 19, 38, 0.06);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.card-body {
  padding: 24px;
}

.card h3 {
  margin-bottom: 10px;
  font-size: 24px;
}

.card p,
.card li {
  color: var(--muted);
}

.card ul {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding-left: 20px;
}

.service-card {
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(115, 177, 223, 0.7);
  box-shadow: 0 19px 36px rgba(7, 19, 38, 0.1);
}

.service-card::before {
  content: "";
  display: block;
  height: 7px;
  background: linear-gradient(90deg, var(--navy), var(--blue));
}

.credibility-section {
  background:
    linear-gradient(180deg, rgba(232, 244, 253, 0.72), rgba(255, 255, 255, 0) 62%),
    var(--white);
}

.credibility-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.proof-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  background: var(--white);
  box-shadow: 0 14px 32px rgba(7, 19, 38, 0.07);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.proof-card:hover {
  transform: translateY(-4px);
  border-color: rgba(115, 177, 223, 0.8);
  box-shadow: 0 22px 42px rgba(7, 19, 38, 0.12);
}

.proof-card-media {
  overflow: hidden;
  background: var(--surface);
}

.proof-card-media--trim-contact {
  aspect-ratio: 1 / 0.925;
}

.proof-card-media img {
  display: block;
  width: 100%;
  height: auto;
}

.proof-card-body {
  position: relative;
  padding: 22px;
}

.proof-card-number {
  display: inline-grid;
  min-width: 36px;
  height: 26px;
  place-items: center;
  margin-bottom: 12px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--blue-100);
  color: var(--navy);
  font-family: var(--latin-font);
  font-size: 12px;
  font-weight: 900;
}

.proof-card h3 {
  margin-bottom: 8px;
  font-size: 22px;
}

.proof-card p {
  color: var(--muted);
}

.number-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.number-card > div,
.card-title-line {
  min-width: 0;
}

.card-title-line h3 {
  overflow-wrap: anywhere;
}

.number {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: var(--radius);
  background: var(--blue-100);
  color: var(--navy);
  font-family: var(--latin-font);
  font-weight: 900;
}

.company-video-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.35fr);
  align-items: center;
  gap: clamp(28px, 5vw, 84px);
}

.company-video-copy h2 {
  max-width: 680px;
}

.company-video-points {
  display: grid;
  gap: 13px;
  max-width: 650px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.company-video-points li {
  position: relative;
  display: grid;
  grid-template-columns: 11px 1fr;
  column-gap: 12px;
  align-items: start;
  padding: 2px 0;
}

.company-video-points li::before {
  content: "";
  width: 9px;
  height: 9px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 5px rgba(115, 177, 223, 0.14);
}

.company-video-points strong,
.company-video-points span {
  grid-column: 2;
}

.company-video-points strong {
  color: var(--white);
  font-size: 18px;
}

.company-video-points span {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.72);
}

.company-video-frame {
  justify-self: stretch;
  width: min(100%, 920px);
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 26px;
  background: linear-gradient(145deg, rgba(115, 177, 223, 0.3), rgba(255, 255, 255, 0.06));
  box-shadow: 0 24px 60px rgba(3, 12, 45, 0.34);
}

.company-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  background: #101c42;
  object-fit: cover;
}

.company-video-sound-unlock {
  display: none;
  width: calc(100% - 24px);
  margin: 10px auto 2px;
  padding: 11px 14px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 10px;
  background: rgba(115, 177, 223, 0.24);
  color: var(--white);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.company-video-frame.requires-sound .company-video-sound-unlock {
  display: block;
}

.project-visual {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
  background:
    linear-gradient(135deg, rgba(25, 43, 99, 0.9), rgba(115, 177, 223, 0.62)),
    repeating-linear-gradient(45deg, #cbd5e1 0 10px, #eef4fb 10px 20px);
}

.project-visual::after {
  content: attr(data-label);
  position: absolute;
  left: 16px;
  bottom: 16px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--navy);
  font-weight: 800;
}

.featured-project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.featured-project-card {
  display: flex;
  min-width: 0;
  min-height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 14px 32px rgba(7, 19, 38, 0.07);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.featured-project-card:hover,
.featured-project-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(115, 177, 223, 0.78);
  box-shadow: 0 20px 42px rgba(7, 19, 38, 0.12);
}

.featured-project-card:focus-visible {
  outline: 3px solid rgba(115, 177, 223, 0.82);
  outline-offset: 4px;
}

.featured-project-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--surface);
}

.project-type-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 1;
  padding: 5px 10px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 999px;
  background: rgba(10, 21, 51, 0.78);
  box-shadow: 0 6px 16px rgba(3, 12, 34, 0.2);
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: 0.01em;
}

.featured-project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 240ms ease;
}

.featured-project-card:hover .featured-project-image img,
.featured-project-card:focus-visible .featured-project-image img {
  transform: scale(1.025);
}

.featured-project-card:hover .project-type-badge,
.featured-project-card:focus-visible .project-type-badge {
  background: var(--navy);
}

.featured-project-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
  padding: 22px;
}

.featured-project-body p {
  color: var(--muted);
}

.featured-project-body > span {
  margin-top: auto;
  padding-top: 8px;
  color: var(--navy);
  font-weight: 900;
}

/* Keep project cards compact on tablets and phones. Desktop cards retain a
   consistent baseline, while smaller screens follow their content height. */
@media (max-width: 1180px) {
  .featured-project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  .featured-project-card {
    min-height: 0;
  }

  .featured-project-body {
    flex: 0 0 auto;
  }

  .featured-project-body > span {
    margin-top: 12px;
    padding-top: 0;
  }
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.portfolio-card {
  display: flex;
  min-width: 0;
  min-height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: inherit;
  text-decoration: none;
  box-shadow: 0 14px 30px rgba(7, 19, 38, 0.06);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.portfolio-card[href]:hover,
.portfolio-card[href]:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(115, 177, 223, 0.72);
  box-shadow: 0 18px 36px rgba(7, 19, 38, 0.1);
}

.portfolio-card[href]:focus-visible {
  outline: 3px solid rgba(115, 177, 223, 0.82);
  outline-offset: 4px;
}

.portfolio-card-disabled {
  color: inherit;
}

.portfolio-image {
  background: var(--surface);
}

.portfolio-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--surface);
}

.portfolio-placeholder {
  display: grid;
  min-height: 100%;
  aspect-ratio: 4 / 3;
  place-items: center;
  gap: 12px;
  padding: 22px;
  background:
    linear-gradient(135deg, rgba(25, 43, 99, 0.94), rgba(115, 177, 223, 0.68)),
    repeating-linear-gradient(45deg, #d7e2ef 0 12px, #f5f8fb 12px 24px);
  color: var(--white);
  text-align: center;
}

.portfolio-placeholder .motion-icon {
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
  box-shadow: none;
}

.portfolio-placeholder span {
  font-weight: 800;
}

.portfolio-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
}

.portfolio-card-body h2 {
  font-size: 22px;
  line-height: 1.28;
}

.portfolio-card-body p {
  color: var(--muted);
}

.portfolio-card-body span {
  margin-top: auto;
  color: var(--sky);
  font-weight: 900;
}

.project-showcase {
  background: var(--white);
}

.project-showcase-shell {
  display: grid;
  grid-template-columns: minmax(260px, 0.36fr) minmax(0, 0.64fr);
  gap: 22px;
  align-items: stretch;
}

.project-showcase-intro {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.project-showcase-intro h3 {
  margin-bottom: 12px;
  font-size: 28px;
}

.project-showcase-intro p {
  color: var(--muted);
}

.project-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 22px;
}

.project-stats div {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.project-stats strong,
.project-stats span {
  display: block;
}

.project-stats strong {
  color: var(--navy);
  font-family: var(--latin-font);
  font-size: 24px;
  line-height: 1;
}

.project-stats span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.project-timeline {
  display: grid;
  gap: 9px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.project-timeline li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-weight: 700;
}

.project-timeline span {
  display: grid;
  width: 34px;
  height: 30px;
  place-items: center;
  border-radius: 6px;
  background: var(--navy);
  color: var(--white);
  font-family: var(--latin-font);
  font-size: 12px;
}

.project-carousel-wrap {
  position: relative;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  box-shadow: 0 16px 38px rgba(7, 19, 38, 0.08);
}

.project-carousel {
  display: grid;
  grid-auto-columns: minmax(280px, 82%);
  grid-auto-flow: column;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 16px;
  scroll-padding-inline: 16px;
  -webkit-overflow-scrolling: touch;
}

.project-carousel:focus-visible {
  outline: 3px solid rgba(115, 177, 223, 0.85);
  outline-offset: 4px;
}

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

.project-slide img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--surface);
}

.project-slide figcaption {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 10px;
  padding: 14px;
}

.project-slide figcaption span {
  display: grid;
  width: 34px;
  height: 30px;
  grid-row: span 2;
  place-items: center;
  border-radius: 6px;
  background: var(--blue-100);
  color: var(--navy);
  font-family: var(--latin-font);
  font-size: 12px;
  font-weight: 900;
}

.project-slide figcaption strong {
  color: var(--navy);
  line-height: 1.25;
}

.project-slide figcaption small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.project-carousel-controls {
  position: absolute;
  right: 14px;
  top: 14px;
  z-index: 3;
  display: flex;
  gap: 8px;
}

.carousel-button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: var(--radius);
  background: rgba(10, 21, 51, 0.84);
  color: var(--white);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.project-gallery-section {
  display: none;
  scroll-margin-top: 110px;
}

.project-gallery-section:target {
  display: block;
}

.project-gallery {
  min-width: 0;
}

.project-gallery-strip {
  display: grid;
  grid-auto-columns: minmax(120px, 154px);
  grid-auto-flow: column;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 16px 72px 16px 16px;
  scroll-padding-inline: 16px;
  -webkit-overflow-scrolling: touch;
}

.project-gallery-strip:focus-visible {
  outline: 3px solid rgba(115, 177, 223, 0.85);
  outline-offset: 4px;
}

.gallery-thumb {
  min-width: 0;
  aspect-ratio: 4 / 3;
  padding: 0;
  overflow: hidden;
  scroll-snap-align: start;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  cursor: zoom-in;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--surface);
  transition: transform 180ms ease;
}

.gallery-thumb:hover img,
.gallery-thumb:focus-visible img {
  transform: scale(1.04);
}

.gallery-thumb:focus-visible {
  outline: 3px solid rgba(115, 177, 223, 0.85);
  outline-offset: 4px;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(5, 12, 28, 0.9);
}

.image-lightbox.is-open {
  display: flex;
}

.image-lightbox figure {
  width: min(1120px, 94vw);
  margin: 0;
}

.image-lightbox img {
  width: auto;
  max-width: min(1120px, 92vw);
  max-height: 82vh;
  margin: 0 auto;
  object-fit: contain;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  display: grid;
  width: 48px;
  height: 58px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  font-size: 44px;
  line-height: 1;
  transform: translateY(-50%);
  cursor: pointer;
}

.lightbox-nav:hover,
.lightbox-nav:focus-visible,
.lightbox-close:hover,
.lightbox-close:focus-visible {
  background: rgba(115, 177, 223, 0.92);
  color: var(--navy-900);
}

.lightbox-nav-prev {
  left: 18px;
}

.lightbox-nav-next {
  right: 18px;
}

.carousel-button:hover,
.carousel-button:focus-visible {
  background: var(--blue);
  color: var(--navy-900);
}

.page-hero {
  background:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    var(--navy);
  background-size: 34px 34px;
  color: var(--white);
  padding: 82px 0;
}

.page-title {
  max-width: 820px;
}

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

.page-title p {
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 20px;
}

.split-content {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(300px, 0.55fr);
  gap: 44px;
  align-items: start;
}

.prose {
  display: grid;
  gap: 18px;
  color: var(--muted);
  font-size: 18px;
}

.highlight-panel {
  padding: 26px;
  border-radius: 12px;
  background: var(--navy);
  color: var(--white);
}

.highlight-panel h2,
.highlight-panel h3 {
  color: var(--white);
}

.highlight-panel p {
  color: rgba(255, 255, 255, 0.78);
}

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

.value-list li {
  list-style: none;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

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

.faq-item {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.faq-item h3 {
  font-size: 20px;
}

.faq-item p {
  margin-top: 8px;
  color: var(--muted);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 0.55fr);
  gap: 28px;
}

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

.contact-list a,
.contact-list div {
  display: grid;
  gap: 4px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.contact-list strong {
  color: var(--navy);
}

.site-footer {
  padding: 44px 0 28px;
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.78);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: start;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-logo {
  width: 210px;
  height: auto;
  margin-bottom: 18px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
  list-style: none;
}

.footer-links a {
  color: var(--white);
  font-weight: 700;
}

.copyright {
  padding-top: 22px;
  font-size: 14px;
}

@media (max-width: 980px) {
  .header-inner {
    grid-template-columns: auto minmax(16px, 1fr) auto auto;
  }

  .menu-toggle {
    display: flex;
  }

  .language-switch {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    width: max-content;
    max-width: 100%;
    padding: 4px;
    background: var(--white);
    box-shadow: 0 8px 18px rgba(7, 19, 38, 0.06);
  }

  .menu-toggle {
    grid-column: 4;
    grid-row: 1;
  }

  .site-nav {
    grid-column: 1 / -1;
    display: none;
    border-top: 1px solid var(--line);
  }

  .site-nav.is-open {
    display: block;
  }

  .nav-list {
    display: grid;
    justify-content: stretch;
    padding: 12px 0;
  }

  .nav-list a {
    justify-content: flex-start;
  }

  .hero-inner,
  .section-header,
  .split-content,
  .contact-grid,
  .footer-grid,
  .company-video-layout {
    grid-template-columns: 1fr;
  }

  .company-video-layout {
    gap: 32px;
    justify-items: center;
  }

  .company-video-copy {
    justify-self: center;
    width: min(100%, 680px);
  }

  .company-video-frame {
    justify-self: center;
    width: min(100%, 560px);
    margin-inline: auto;
  }

  .hero-inner {
    min-height: auto;
    gap: 34px;
  }

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

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

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

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

  .project-gallery-strip {
    grid-auto-columns: minmax(116px, 148px);
  }
}

@media (max-width: 680px) {
  .container {
    width: min(100% - 28px, 1120px);
  }

  .topbar .container {
    display: grid;
    gap: 4px;
    padding: 8px 0;
  }

  .header-inner {
    gap: 12px;
    padding: 12px 0;
  }

  .brand {
    min-width: 176px;
  }

  .brand-wordmark {
    width: 160px;
    height: 46px;
  }

  .lang-option {
    min-width: 40px;
  }

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

  .hero-cover {
    padding: 10px 0;
  }

  .hero-cover-container {
    width: min(100% - 20px, 1480px);
    border-radius: 12px;
  }

  .hero-cover-actions {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 14px;
  }

  .hero-cover-actions .button {
    width: 100%;
    min-height: 50px;
  }

  body.lang-en .hero h1 {
    font-size: clamp(30px, 9vw, 38px);
    line-height: 1.16;
  }

  .hero-copy,
  .page-title p {
    font-size: 18px;
  }

  .section {
    padding: 62px 0;
  }

  .grid-3,
  .grid-2,
  .featured-project-grid,
  .portfolio-grid,
  .trust-grid,
  .credibility-grid {
    grid-template-columns: 1fr;
  }

  .featured-project-body {
    padding: 18px;
  }

  .portfolio-card-body {
    padding: 18px;
  }

  .portfolio-card-body h2 {
    font-size: 20px;
  }

  .project-gallery-strip {
    grid-auto-columns: minmax(102px, 132px);
    padding: 14px 66px 14px 14px;
  }

  .image-lightbox {
    padding: 18px;
  }

  .image-lightbox img {
    max-height: 76vh;
  }

  .lightbox-nav {
    width: 40px;
    height: 48px;
    font-size: 34px;
  }

  .lightbox-nav-prev {
    left: 10px;
  }

  .lightbox-nav-next {
    right: 10px;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .heading-icon-line {
    gap: 10px;
  }

  .hero-label-line {
    align-items: flex-start;
  }

  .motion-icon {
    width: 38px;
    height: 38px;
  }

  .motion-icon svg {
    width: 24px;
    height: 24px;
  }
}

/* Keep the company video balanced when a phone is rotated horizontally. */
@media (max-width: 980px) and (orientation: landscape) {
  #company-video {
    padding: 42px 0;
  }

  .company-video-layout {
    gap: 24px;
  }

  .company-video-frame {
    width: min(82vw, 600px);
  }
}

@media (max-width: 430px) {
  .header-inner {
    grid-template-columns: minmax(0, 1fr) auto auto;
    column-gap: 8px;
  }

  .brand {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
  }

  .brand-wordmark {
    width: clamp(118px, 38vw, 150px);
  }

  .language-switch {
    grid-column: 2;
    grid-row: 1;
  }

  .lang-option {
    min-width: 36px;
    height: 34px;
    font-size: 12px;
  }

  .menu-toggle {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
  }

  .hero-inner {
    padding: 48px 0 58px;
  }

  .hero-panel {
    padding: 14px;
  }

  .hero-logo {
    min-height: 180px;
  }

  .project-gallery-strip {
    grid-auto-columns: minmax(94px, 118px);
  }

  .project-carousel-controls {
    right: 10px;
    top: 10px;
  }

  .carousel-button {
    width: 38px;
    height: 38px;
  }
}

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

  .motion-icon,
  .motion-icon::after,
  .motion-icon svg {
    animation: none;
  }
}
