* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: #111827;
  background:
    radial-gradient(circle at 12% 0%, rgba(14, 165, 233, 0.14), transparent 34%),
    linear-gradient(180deg, #f8fafc 0, #eef6ff 100%);
  font-family: "Kanit", Tahoma, Arial, sans-serif;
  line-height: 1.75;
}

a {
  color: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(216, 222, 232, 0.95);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 13px 0;
}

.nav-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  display: block;
  width: min(260px, 42vw);
  height: 44px;
  object-fit: contain;
  object-position: left center;
}

.back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid #d8dee8;
  border-radius: 999px;
  color: #155e9f;
  background: #ffffff;
  font-weight: 700;
  text-decoration: none;
}

.lang-switch {
  display: inline-flex;
  padding: 3px;
  border: 1px solid #d8dee8;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
}

.lang-switch button {
  min-width: 40px;
  min-height: 32px;
  border: 0;
  border-radius: 999px;
  color: #5f6b7a;
  background: transparent;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.lang-switch button.is-active {
  color: #ffffff;
  background: linear-gradient(135deg, #155e9f, #11b4c8);
}

.page {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 38px 0 60px;
}

.hero {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(216, 222, 232, 0.96);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero::before {
  z-index: 1;
  background:
    linear-gradient(115deg, transparent 18%, rgba(255, 255, 255, 0.34) 42%, transparent 64%),
    radial-gradient(circle at 78% 22%, rgba(14, 165, 233, 0.28), transparent 28%);
  transform: translateX(-64%);
  animation: detailHeroSweep 10s ease-in-out infinite;
}

.hero::after {
  z-index: 2;
  border-radius: inherit;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.72), transparent 62%);
  opacity: 0.48;
  animation: detailGridDrift 22s linear infinite;
}

.hero img {
  position: relative;
  z-index: 0;
  display: block;
  width: 100%;
  height: min(430px, 42vw);
  min-height: 260px;
  object-fit: cover;
}

.hero-copy {
  position: relative;
  z-index: 3;
  padding: 28px;
  animation: detailHeroCopyIn 760ms ease both;
}

.eyebrow {
  margin: 0 0 8px;
  color: #0f8b7b;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  color: #071427;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.16;
}

.lead {
  max-width: 860px;
  margin: 18px 0 0;
  color: #475569;
  font-size: 20px;
}

.content-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
  margin-top: 18px;
}

.story-panel {
  margin-top: 18px;
}

body[data-project="digital-infrastructure-transformation"] .action-panel {
  margin-top: 18px;
}

.story-panel p {
  max-width: 1120px;
  font-size: 18px;
  line-height: 1.8;
}

.strategic-summary {
  margin-top: 18px;
  padding: 20px;
  border: 1px solid rgba(17, 180, 200, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(7, 20, 39, 0.94), rgba(15, 117, 188, 0.9)),
    #071427;
}

.strategic-summary h3 {
  margin-top: 0;
  color: #fff;
}

.strategic-summary p,
.strategic-summary strong,
.strategic-summary .eyebrow {
  color: #fff;
}

.strategic-summary .eyebrow {
  opacity: 0.78;
}

.structurex-detail-grid,
.project-detail-grid {
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.86fr);
  align-items: stretch;
}

.structurex-detail-grid > .panel,
.project-detail-grid > .panel {
  height: 100%;
}

.leadership-panel {
  margin-top: 18px;
}

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

.principle-card {
  min-height: 176px;
  padding: 20px 16px;
  border: 1px solid rgba(216, 222, 232, 0.96);
  border-radius: 8px;
  background: linear-gradient(135deg, #ffffff, #f8fbff);
  text-align: center;
}

.principle-card .metric-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  line-height: 1;
  vertical-align: top;
  flex-shrink: 0;
}

.principle-card .metric-icon::before {
  display: none;
}

.principle-card .metric-icon svg {
  width: 25px;
  height: 25px;
  color: #ffffff;
  stroke-width: 2.2;
  display: block;
}

.principle-card strong {
  display: block;
  color: #071427;
  font-size: 16px;
  line-height: 1.35;
}

.principle-card span {
  display: block;
  margin-top: 8px;
  color: #5f6b7a;
  font-size: 14px;
  line-height: 1.6;
}

.value-table {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.value-item {
  min-height: 150px;
  padding: 18px;
  border: 1px solid rgba(216, 222, 232, 0.96);
  border-left: 4px solid #0f75bc;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(248, 251, 255, 0.98), rgba(255, 255, 255, 0.96));
}

.value-item:nth-child(even) {
  border-left-color: #0f8b7b;
}

.value-item h3 {
  margin: 0 0 8px;
  color: #071427;
  font-size: 18px;
}

.value-item p {
  margin-bottom: 0;
  color: #5f6b7a;
  font-size: 15px;
  line-height: 1.75;
}

.strategy-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(340px, 0.72fr);
  gap: 18px;
  margin-top: 22px;
  align-items: stretch;
}

.strategy-grid > .panel {
  height: 100%;
}

.panel {
  border: 1px solid rgba(216, 222, 232, 0.96);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
  padding: 24px;
}

.motion-ready .panel,
.motion-ready .metric,
.motion-ready .capability-list li,
.motion-ready .principle-card,
.motion-ready .value-item {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 720ms ease,
    transform 720ms ease,
    box-shadow 280ms ease,
    border-color 280ms ease;
  will-change: opacity, transform;
}

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

.panel:hover,
.metric:hover,
.capability-list li:hover,
.principle-card:hover,
.value-item:hover {
  border-color: rgba(14, 165, 233, 0.46);
  box-shadow: 0 28px 72px rgba(15, 23, 42, 0.14);
  transform: translateY(-4px);
}

.panel.strategic-panel {
  background:
    linear-gradient(135deg, rgba(7, 20, 39, 0.92), rgba(15, 117, 188, 0.9)),
    #071427;
  color: #fff;
  border-color: rgba(17, 180, 200, 0.28);
}

.panel.strategic-panel h2,
.panel.strategic-panel .eyebrow,
.panel.strategic-panel p,
.panel.strategic-panel strong {
  color: #fff;
}

.panel.strategic-panel .eyebrow {
  opacity: 0.78;
}

.role-panel {
  margin-top: 22px;
}

.role-panel h2 {
  margin-bottom: 18px;
}

.role-panel ul {
  display: grid;
  gap: 12px;
}

.role-panel li + li {
  margin-top: 0;
}

h2 {
  margin: 0 0 14px;
  color: #071427;
  font-size: 26px;
  line-height: 1.35;
}

h3 {
  margin: 18px 0 8px;
  color: #155e9f;
  font-size: 18px;
}

p {
  margin: 0 0 12px;
}

ul {
  margin: 0;
  padding-left: 22px;
}

li + li {
  margin-top: 8px;
}

.capability-list {
  display: grid;
  gap: 12px;
  padding-left: 0;
  list-style: none;
}

.capability-list li {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 14px;
  border: 1px solid rgba(216, 222, 232, 0.92);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(248, 251, 255, 0.98), rgba(255, 255, 255, 0.92));
}

.capability-list .metric-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
}

.capability-list .metric-icon::before {
  width: 22px;
  height: 22px;
}

.capability-list strong {
  display: block;
  color: #071427;
  font-size: 16px;
}

.capability-list span {
  display: block;
  margin-top: 4px;
  color: #5f6b7a;
}

body[data-project="digital-infrastructure-transformation"] .action-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

body[data-project="digital-infrastructure-transformation"] .action-list li {
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 18px;
  border-left: 4px solid rgba(14, 165, 233, 0.72);
  opacity: 1 !important;
  transform: none !important;
}

body[data-project="digital-infrastructure-transformation"] .action-list .metric-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  align-self: start;
  justify-self: start;
  display: flex;
  align-items: center;
  justify-content: center;
}

body[data-project="digital-infrastructure-transformation"] .action-list .metric-icon::before {
  display: block;
  width: 26px;
  height: 26px;
  margin: 0;
  flex: 0 0 auto;
}

body[data-project="digital-infrastructure-transformation"] .action-list strong {
  font-size: 18px;
}

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

.metric {
  min-height: 148px;
  padding: 18px 14px;
  border: 1px solid #d8dee8;
  border-top: 4px solid #f59e0b;
  border-radius: 8px;
  background: linear-gradient(135deg, #ffffff, #f8fbff);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  text-align: center;
}

.metric-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, #0f75bc, #11b4c8);
  box-shadow: 0 12px 28px rgba(15, 117, 188, 0.2);
  display: grid;
  place-items: center;
  transition: transform 280ms ease, box-shadow 280ms ease;
}

.metric:hover .metric-icon,
.capability-list li:hover .metric-icon,
.principle-card:hover .metric-icon {
  transform: translateY(-2px) scale(1.06);
  box-shadow: 0 16px 34px rgba(15, 117, 188, 0.28);
}

.metric-icon::before {
  content: "";
  width: 24px;
  height: 24px;
  background: #fff;
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
}

.metric strong {
  display: block;
  color: #071427;
  font-size: 18px;
}

.metric span {
  color: #5f6b7a;
  font-size: 14px;
}

.icon-eye { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7S2 12 2 12Z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E"); }
.icon-control { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 21V9'/%3E%3Cpath d='M12 21V3'/%3E%3Cpath d='M20 21v-7'/%3E%3Cpath d='M2 9h4'/%3E%3Cpath d='M10 3h4'/%3E%3Cpath d='M18 14h4'/%3E%3C/svg%3E"); }
.icon-shield { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10Z'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E"); }
.icon-cloud { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 18a4 4 0 1 1 1.2-7.8A6 6 0 0 1 20 12.5 3.5 3.5 0 0 1 19.5 19H7'/%3E%3Cpath d='M9 15h6'/%3E%3Cpath d='M12 12v6'/%3E%3C/svg%3E"); }
.icon-chart { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 3v18h18'/%3E%3Cpath d='m7 15 4-4 3 3 5-7'/%3E%3C/svg%3E"); }
.icon-network { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='5' r='3'/%3E%3Ccircle cx='5' cy='19' r='3'/%3E%3Ccircle cx='19' cy='19' r='3'/%3E%3Cpath d='M10.5 7.6 6.5 16.4'/%3E%3Cpath d='m13.5 7.6 4 8.8'/%3E%3Cpath d='M8 19h8'/%3E%3C/svg%3E"); }
.icon-zap { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M13 2 3 14h8l-1 8 10-12h-8l1-8Z'/%3E%3C/svg%3E"); }
.icon-message { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15a4 4 0 0 1-4 4H8l-5 3V7a4 4 0 0 1 4-4h10a4 4 0 0 1 4 4Z'/%3E%3Cpath d='M8 9h8'/%3E%3Cpath d='M8 13h5'/%3E%3C/svg%3E"); }
.icon-target { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Ccircle cx='12' cy='12' r='5'/%3E%3Ccircle cx='12' cy='12' r='1.5'/%3E%3C/svg%3E"); }
.icon-database { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cellipse cx='12' cy='5' rx='8' ry='3'/%3E%3Cpath d='M4 5v6c0 1.7 3.6 3 8 3s8-1.3 8-3V5'/%3E%3Cpath d='M4 11v6c0 1.7 3.6 3 8 3s8-1.3 8-3v-6'/%3E%3C/svg%3E"); }
.icon-lightbulb { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18h6'/%3E%3Cpath d='M10 22h4'/%3E%3Cpath d='M8 14a6 6 0 1 1 8 0c-1 1-1 2-1 4H9c0-2 0-3-1-4Z'/%3E%3C/svg%3E"); }
.icon-refresh { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12a9 9 0 0 0-15-6.7L3 8'/%3E%3Cpath d='M3 3v5h5'/%3E%3Cpath d='M3 12a9 9 0 0 0 15 6.7L21 16'/%3E%3Cpath d='M16 16h5v5'/%3E%3C/svg%3E"); }
.icon-check { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); }
.icon-users { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M22 21v-2a4 4 0 0 0-3-3.8'/%3E%3Cpath d='M16 3.2a4 4 0 0 1 0 7.6'/%3E%3C/svg%3E"); }
.icon-file { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8Z'/%3E%3Cpath d='M14 2v6h6'/%3E%3Cpath d='M8 13h8'/%3E%3Cpath d='M8 17h5'/%3E%3C/svg%3E"); }

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.tag {
  border: 1px solid rgba(14, 165, 233, 0.32);
  border-radius: 999px;
  padding: 6px 10px;
  color: #155e9f;
  background: #eff8ff;
  font-size: 14px;
  font-weight: 700;
  transition: transform 240ms ease, border-color 240ms ease, background 240ms ease;
}

.tag:hover {
  transform: translateY(-2px);
  border-color: rgba(15, 117, 188, 0.5);
  background: #e0f2fe;
}

@keyframes detailHeroSweep {
  0%, 38% { transform: translateX(-64%); opacity: 0; }
  52% { opacity: 0.9; }
  100% { transform: translateX(64%); opacity: 0; }
}

@keyframes detailGridDrift {
  from { background-position: 0 0, 0 0; }
  to { background-position: 92px 46px, 92px 46px; }
}

@keyframes detailHeroCopyIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

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

  .motion-ready .panel,
  .motion-ready .metric,
  .motion-ready .capability-list li,
  .motion-ready .principle-card,
  .motion-ready .value-item {
    opacity: 1;
    transform: none;
  }
}

footer {
  margin-top: 24px;
  color: #64748b;
  font-size: 14px;
  text-align: center;
}

@media (max-width: 860px) {
  .content-grid,
  .metric-grid,
  .strategy-grid,
  .principle-grid,
  body[data-project="digital-infrastructure-transformation"] .action-list,
  .value-table {
    grid-template-columns: 1fr;
  }

  .strategy-grid {
    margin-top: 18px;
  }

  .hero-copy,
  .panel {
    padding: 20px;
  }

  .hero img {
    height: 260px;
  }

  .brand-logo {
    width: min(210px, 54vw);
    height: 38px;
  }

  .nav {
    align-items: flex-start;
  }

  .nav-actions {
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
  }
}
