/* NNY New Nanyang Construction */

:root {
  --blue: #19499e;
  --blue-deep: #10336f;
  --blue-tint: #e9eff8;
  --red: #e7142e;
  --ink: #0a1b33;
  --navy: #19499e;
  --navy-2: #153e87;
  --navy-3: #0f3170;
  --ink-2: #0f2544;
  --ink-3: #07142a;
  --concrete: #eef1f4;
  --line: #d7dde5;
  --line-dark: rgba(255, 255, 255, 0.16);
  --text: #15202e;
  --muted: #566476;
  --muted-light: rgba(255, 255, 255, 0.72);
  --white: #fff;

  --font-latin: "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC", var(--font-latin);
  --font-num: "DIN Alternate", "Bahnschrift", "Avenir Next Condensed", "Roboto Condensed", "Arial Narrow", var(--font);
  --lh-body: 1.8;
  --lh-head: 1.25;
  --track-head: 0.01em;

  --wrap: 1700px;
  --gutter: clamp(16px, 6vw, 120px);
  --header-h: 84px;
  --section: clamp(72px, 9vw, 136px);
  --radius: 2px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

:root:lang(en) {
  --font: var(--font-latin);
  --lh-body: 1.65;
  --lh-head: 1.15;
  --track-head: -0.005em;
}
:root:lang(th) {
  --font: "Prompt", "Noto Sans Thai", "Leelawadee UI", Tahoma, sans-serif;
  --font-latin: var(--font);
  --font-num: var(--font);
  --lh-body: 1.9;
  --lh-head: 1.45;
  --track-head: 0;
}

*, *::before, *::after { box-sizing: border-box; }
section[id] { scroll-margin-top: calc(var(--header-h) - 1px); }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; font-size: clamp(100%, 0.35vw + 0.75rem, 112.5%); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: var(--lh-body);
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: var(--lh-head); font-weight: 700; letter-spacing: var(--track-head); }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
dl, dd { margin: 0; }
table { border-collapse: collapse; width: 100%; }
button { font: inherit; color: inherit; }

.num, .stat__num, .cert__std, .timeline__year, .pillar__letter { font-family: var(--font-num); font-variant-numeric: tabular-nums; }
.en { display: block; font-family: var(--font-latin); font-weight: 400; letter-spacing: 0.02em; color: var(--muted); font-size: 0.8125rem; line-height: 1.5; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--white); color: var(--ink); padding: 10px 16px; font-weight: 600; }
.skip-link:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

/* ------------------------------------------------------------ buttons & links */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 30px;
  background: var(--blue); color: var(--white);
  border: 1px solid var(--blue); border-radius: var(--radius);
  font-size: 1rem; font-weight: 600; text-decoration: none; letter-spacing: 0.04em;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.btn:hover { background: var(--blue-deep); border-color: var(--blue-deep); }
.btn--light { background: var(--white); color: var(--ink); border-color: var(--white); }
.btn--light:hover { background: transparent; color: var(--white); border-color: var(--white); }

.link-line {
  display: inline-flex; align-items: center; gap: 14px;
  font-weight: 600; text-decoration: none; color: var(--blue); letter-spacing: 0.04em;
}
.link-line::before {
  content: ""; width: 36px; height: 1px; background: currentColor;
  transition: width 0.25s var(--ease);
}
.link-line:hover::before { width: 56px; }
.link-line--light { color: var(--white); }

.tag {
  display: inline-flex; align-items: center;
  padding: 2px 9px; border: 1px solid rgba(255, 255, 255, 0.6); border-radius: var(--radius);
  font-size: 0.75rem; line-height: 1.6; font-weight: 600; letter-spacing: 0.08em; white-space: nowrap;
}
.tag--dark { border-color: var(--line); color: var(--blue); }

/* ------------------------------------------------------------ EPC badge */

.epc-badge {
  display: inline-flex; align-items: stretch; height: 28px;
  font-family: var(--font-num); line-height: 1; white-space: nowrap; vertical-align: middle;
  box-shadow: 0 1px 2px rgba(10, 27, 51, 0.18);
}
.epc-badge::before {
  content: ""; width: 7px; background: var(--red);
  transform: skewX(-18deg); transform-origin: bottom left; margin-right: 3px;
}
.epc-badge__mark {
  display: inline-flex; align-items: center; padding: 0 8px;
  background: var(--blue); color: var(--white); font-weight: 700; font-size: 0.9375rem; letter-spacing: 0.08em;
}
.epc-badge__text {
  display: inline-flex; align-items: center; padding: 0 8px;
  background: var(--white); color: var(--blue); font-family: var(--font); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em;
}
.epc-badge--sm { height: 22px; box-shadow: none; }
.epc-badge--sm::before { width: 5px; }
.epc-badge--sm .epc-badge__mark { font-size: 0.8125rem; padding: 0 6px; }
.epc-badge--sm .epc-badge__text { display: none; }

/* ------------------------------------------------------------ header */

.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  color: var(--white);
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), box-shadow 0.3s var(--ease), transform 0.35s var(--ease);
}
.site-header::before {
  content: ""; position: absolute; inset: 0 0 -40px; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(7, 20, 42, 0.55), rgba(7, 20, 42, 0));
  transition: opacity 0.3s var(--ease);
}
.site-header.is-solid { background: var(--white); color: var(--ink); box-shadow: 0 1px 0 var(--line); }
.site-header.is-solid::before { opacity: 0; }
.site-header.is-hidden { transform: translateY(-100%); }
.header-inner { height: 100%; display: flex; align-items: center; gap: clamp(16px, 2.2vw, 32px); }
.brand { display: block; flex: none; }
.brand-logo { height: 40px; width: auto; }
.brand-logo--dark, .is-solid .brand-logo--light { display: none; }
.is-solid .brand-logo--dark { display: block; }

.nav { margin-left: auto; }
.nav > ul { display: flex; gap: clamp(18px, 2.4vw, 36px); }
.nav a {
  position: relative; display: block; padding: 8px 0;
  font-size: 0.9375rem; font-weight: 500; letter-spacing: 0.04em; text-decoration: none; white-space: nowrap;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--white);
  transform: scaleX(0); transform-origin: left; transition: transform 0.25s var(--ease), background-color 0.35s var(--ease);
}
.is-solid .nav a::after { background: var(--blue); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav li { position: relative; }
.nav .subnav {
  position: absolute; top: calc(100% + 20px); left: -24px; z-index: 60; min-width: 232px; padding: 14px 0;
  background: var(--white); color: var(--ink); box-shadow: 0 16px 40px rgba(10, 27, 51, 0.16);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
}
.nav .subnav::before { content: ""; position: absolute; left: 0; right: 0; top: -20px; height: 20px; }
.nav .has-sub:hover > .subnav, .nav .has-sub:focus-within > .subnav { opacity: 1; visibility: visible; transform: translateY(0); }
.nav .subnav a { padding: 10px 24px; font-size: 0.9375rem; font-weight: 400; letter-spacing: 0.02em; white-space: nowrap; }
.nav .subnav a::after { display: none; }
.nav .subnav a:hover, .nav .subnav a:focus-visible { background: var(--concrete); color: var(--blue); }

.lang-switch { display: flex; align-items: center; gap: 2px; font-size: 0.8125rem; }
.lang-switch a {
  display: inline-flex; align-items: center; min-height: 32px; padding: 0 8px;
  text-decoration: none; opacity: 0.7; border-radius: var(--radius); white-space: nowrap;
}
.lang-switch a:hover { opacity: 1; }
.lang-switch a[aria-current="true"] { opacity: 1; font-weight: 700; box-shadow: inset 0 -2px 0 var(--white); transition: box-shadow 0.35s var(--ease); }
.is-solid .lang-switch a[aria-current="true"] { box-shadow: inset 0 -2px 0 var(--blue); }
.mobile-menu .lang-switch { gap: 8px; font-size: 1rem; }
.mobile-menu .lang-switch a { min-height: 44px; padding: 0 14px; border: 1px solid var(--line-dark); }
.footer-contact .lang-switch { margin-top: 24px; margin-left: -8px; }

.header-cta {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 18px;
  border: 1px solid currentColor; border-radius: var(--radius);
  font-size: 0.875rem; font-weight: 600; letter-spacing: 0.06em; text-decoration: none; white-space: nowrap;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.header-cta:hover { background: var(--white); color: var(--ink); border-color: var(--white); }
.is-solid .header-cta { background: var(--blue); border-color: var(--blue); color: var(--white); }
.is-solid .header-cta:hover { background: var(--blue-deep); border-color: var(--blue-deep); }

.menu-toggle { display: none; margin-left: auto; width: 44px; height: 44px; padding: 0; background: none; border: 0; cursor: pointer; }
.menu-icon, .menu-icon::before, .menu-icon::after {
  display: block; width: 24px; height: 2px; background: currentColor; margin: auto;
  transition: transform 0.3s var(--ease), background-color 0.2s;
}
.menu-icon { position: relative; }
.menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; }
.menu-icon::before { top: -7px; }
.menu-icon::after { top: 7px; }
.menu-open .menu-icon { background: transparent; }
.menu-open .menu-icon::before { transform: translateY(7px) rotate(45deg); }
.menu-open .menu-icon::after { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 45; padding: calc(var(--header-h) + 24px) var(--gutter) 40px;
  background: var(--navy); color: var(--white); overflow-y: auto;
  display: flex; flex-direction: column; gap: 40px;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu li { border-bottom: 1px solid var(--line-dark); }
.mobile-menu nav a { display: block; padding: 18px 0; font-size: 1.375rem; font-weight: 600; text-decoration: none; }
.mobile-menu nav a[aria-current="page"] { color: #fff; box-shadow: inset 3px 0 0 var(--white); padding-left: 16px; }
.mobile-menu .m-row { display: flex; align-items: center; justify-content: space-between; }
.mobile-menu .m-row a { flex: 1; }
.sub-toggle { position: relative; flex: none; width: 44px; height: 44px; background: none; border: 1px solid var(--line-dark); border-radius: 50%; cursor: pointer; }
.sub-toggle span, .sub-toggle span::before { position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; margin: -1px 0 0 -7px; background: var(--white); }
.sub-toggle span::before { content: ""; left: 0; margin: -1px 0 0 0; transform: rotate(90deg); transition: transform 0.2s var(--ease); }
.sub-toggle[aria-expanded="true"] span::before { transform: rotate(0deg); }
.mobile-menu .subnav { padding: 0 0 14px 16px; }
.mobile-menu .subnav li { border: 0; }
.mobile-menu .subnav a { padding: 9px 0; font-size: 1.0625rem; font-weight: 400; color: var(--muted-light); }
.mobile-menu .subnav a:hover { color: var(--white); }
.menu-open .site-header { background: var(--navy); color: var(--white); box-shadow: none; }
.menu-open .site-header .brand-logo--light { display: block; }
.menu-open .site-header .brand-logo--dark { display: none; }
body.menu-open { overflow: hidden; }

/* ------------------------------------------------------------ hero */

.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  color: var(--white); background: var(--navy-3); overflow: hidden; isolation: isolate;
}
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero__shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(7, 20, 42, 0.86) 0%, rgba(7, 20, 42, 0.62) 38%, rgba(7, 20, 42, 0.12) 76%),
    linear-gradient(0deg, rgba(7, 20, 42, 0.85) 0%, rgba(7, 20, 42, 0) 32%);
}
.hero__content { padding-top: calc(var(--header-h) + 48px); padding-bottom: clamp(32px, 5.5vh, 64px); }
.hero__kicker { font-size: 0.9375rem; letter-spacing: 0.12em; color: var(--muted-light); margin-bottom: 20px; }
.hero h1 {
  font-size: clamp(2.25rem, 4.6vw, 4.375rem); line-height: calc(var(--lh-head) - 0.1); font-weight: 800; letter-spacing: var(--track-head);
  max-width: 12em; text-wrap: balance;
}
.hero__lead { max-width: 34em; margin-top: 28px; font-size: clamp(1rem, 1.3vw, 1.1875rem); color: rgba(255, 255, 255, 0.86); }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 28px 40px; margin-top: 40px; }

.hero__bar {
  display: flex; align-items: center; gap: 24px;
  padding-top: 18px; padding-bottom: 22px; border-top: 1px solid var(--line-dark);
}
.now-playing { display: flex; align-items: center; gap: 14px; margin: 0; font-size: 0.875rem; min-width: 0; }
.now-playing__project { font-weight: 600; white-space: nowrap; }
.now-playing__note { font-family: var(--font-num); color: var(--muted-light); white-space: nowrap; }
.np-progress { display: flex; gap: 6px; margin-left: auto; }
.np-progress span { position: relative; width: 36px; height: 2px; background: rgba(255, 255, 255, 0.25); overflow: hidden; }
.np-progress span::after { content: ""; position: absolute; inset: 0; background: var(--white); transform: scaleX(var(--p, 0)); transform-origin: left; }
.np-toggle, .film__toggle {
  flex: none; width: 40px; height: 40px; display: grid; place-items: center;
  background: none; border: 1px solid rgba(255, 255, 255, 0.5); border-radius: 50%; color: var(--white); cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
}
.np-toggle:hover, .film__toggle:hover { background: rgba(255, 255, 255, 0.14); border-color: var(--white); }
.icon-pause { width: 10px; height: 12px; border-left: 3px solid currentColor; border-right: 3px solid currentColor; }
.icon-play { width: 0; height: 0; border-left: 11px solid currentColor; border-top: 7px solid transparent; border-bottom: 7px solid transparent; margin-left: 3px; }

/* ------------------------------------------------------------ sections */

.section { padding-block: var(--section); }
.section--tight { padding-block: clamp(56px, 6vw, 88px); }
.section--concrete { background: var(--concrete); }
.section--ink { background: var(--navy); color: var(--white); }
.section--blue { background: var(--blue); color: var(--white); }

.section-head { max-width: 44rem; margin-bottom: clamp(36px, 4vw, 56px); }
.section-head h2 { font-size: clamp(1.75rem, 3vw, 2.625rem); }
.section-en { margin: 10px 0 0; font-family: var(--font-latin); font-size: 1rem; color: var(--muted); letter-spacing: 0.02em; }
.section-en--light, .section-head--light .section-en { color: var(--muted-light); }
.section-lead { margin-top: 20px; color: var(--muted); max-width: 38em; }
.section-head--light .section-lead { color: var(--muted-light); }
.split-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(36px, 4vw, 56px); }
.split-head .section-head { margin-bottom: 0; }

/* stats */
.stats-band { border-bottom: 1px solid var(--line); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: clamp(32px, 4vw, 56px) clamp(16px, 2.4vw, 36px); border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat__num { margin: 0; font-size: clamp(2.75rem, 5vw, 4.5rem); line-height: 1; font-weight: 700; color: var(--blue); }
.stat__suffix { font-size: 0.42em; margin-left: 6px; font-family: var(--font); font-weight: 600; color: var(--text); }
.stat__label { margin: 14px 0 0; color: var(--muted); font-size: 0.9375rem; }
.stats--inline { margin-top: clamp(48px, 6vw, 80px); border-top: 1px solid var(--line); }

/* intro */
.intro__grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.intro__head h2 { font-size: clamp(1.875rem, 3.4vw, 3rem); }
.intro__body { max-width: 38em; }
.intro__body p { color: #2a3646; }
.intro__body .link-line { margin-top: 12px; }

/* films */
.film-block { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(28px, 4vw, 64px); align-items: center; }
.film-block + .film-block { margin-top: clamp(64px, 8vw, 120px); }
.film-block--flip { grid-template-columns: 5fr 7fr; }
.film-block--flip .film { order: 2; }
.film-block__cat { margin: 0 0 12px; font-size: 0.875rem; color: var(--muted-light); letter-spacing: 0.1em; }
.film-block h3 { font-size: clamp(1.625rem, 2.6vw, 2.25rem); }
.film-block__en { margin: 6px 0 20px; font-family: var(--font-latin); font-size: 0.875rem; color: var(--muted-light); letter-spacing: 0.04em; }
.film-block__text > p:not([class]) { color: rgba(255, 255, 255, 0.84); }
.film-block .link-line { margin-top: 28px; }

.film { position: relative; margin: 0; background: #000; aspect-ratio: 16 / 9; overflow: hidden; }
.film__video { width: 100%; height: 100%; object-fit: cover; }
.film__caption {
  position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 12px;
  padding: 40px 20px 16px; color: var(--white); font-size: 0.875rem;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0));
  pointer-events: none;
}
.film__caption [data-np-note] { font-family: var(--font-num); }
.film__toggle { position: absolute; right: 16px; bottom: 12px; background: rgba(0, 0, 0, 0.3); }
.film--wide { max-width: 1200px; }

.facts { display: grid; gap: 0; border-top: 1px solid var(--line); }
.fact { display: grid; grid-template-columns: 7.5em 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.fact dt { color: var(--muted); font-size: 0.9375rem; }
.fact dd { font-weight: 600; }
.facts--compact { margin-top: 24px; border-color: var(--line-dark); }
.facts--compact .fact { border-color: var(--line-dark); grid-template-columns: 1fr auto; }
.facts--compact dt { color: var(--muted-light); }
.facts--compact .num { font-size: 1.125rem; margin-right: 6px; }

/* tiles */
.tiles { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: clamp(220px, 22vw, 320px); gap: 12px; }
.tile { position: relative; overflow: hidden; color: var(--white); text-decoration: none; background: var(--navy-3); grid-column: span 2; }
.tile:first-child { grid-column: span 4; grid-row: span 2; }
.tile:nth-child(2) { grid-column: span 2; }
.tile:nth-child(4), .tile:nth-child(5) { grid-column: span 3; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(7, 20, 42, 0.82) 0%, rgba(7, 20, 42, 0.1) 60%); }
.tile:hover img { transform: scale(1.04); }
.tile__text { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: clamp(20px, 2.4vw, 32px); display: grid; gap: 2px; }
.tile__zh { font-size: clamp(1.25rem, 1.8vw, 1.625rem); font-weight: 700; }
.tile__en { font-family: var(--font-latin); font-size: 0.875rem; color: var(--muted-light); }
.tile__count { margin-top: 10px; font-size: 0.8125rem; color: var(--muted-light); }

/* EPC teaser */
.epc-teaser__grid { display: grid; grid-template-columns: 6fr 5fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.epc-teaser h2 { font-size: clamp(1.875rem, 3.4vw, 3rem); }
.epc-teaser p:not([class]) { color: rgba(255, 255, 255, 0.86); max-width: 34em; margin-top: 24px; }
.epc-teaser__legend { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 28px 0 36px; font-size: 0.9375rem; color: var(--muted-light); }
.epc-teaser__side { border-top: 1px solid var(--line-dark); padding-top: 28px; }
.big-num { display: flex; align-items: baseline; gap: 12px; margin: 0 0 24px; }
.big-num .num { font-size: clamp(4rem, 7vw, 6rem); line-height: 1; font-weight: 700; }
.epc-mini li { display: grid; grid-template-columns: 3.5em 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-dark); font-size: 0.9375rem; }
.epc-mini .num { color: var(--muted-light); }

/* certs */
.certs { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 28px); }
.cert { padding: 32px 28px 30px; background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--blue); }
.section--concrete .cert { border-color: transparent; border-top-color: var(--blue); }
.cert__std { display: flex; align-items: baseline; gap: 8px; margin: 0 0 20px; color: var(--blue); }
.cert__iso { font-size: 1rem; font-weight: 700; letter-spacing: 0.08em; }
.cert__code { font-size: clamp(3rem, 4.6vw, 4rem); line-height: 1; font-weight: 700; }
.cert__year { font-size: 1.25rem; color: var(--muted); }
.cert__name { margin: 0; font-size: 1.1875rem; font-weight: 700; }

/* cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.4vw, 36px) clamp(16px, 2vw, 28px); }
.card { background: var(--white); }
.section--concrete .card { background: var(--white); }
.card[hidden] { display: none; }
.card__link { display: block; height: 100%; text-decoration: none; }
.card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--concrete); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.card__link:hover .card__media img { transform: scale(1.04); }
.card__media .epc-badge { position: absolute; top: 14px; left: 14px; }
.card__body { padding: 20px 22px 24px; }
.card__cat { margin: 0 0 6px; font-size: 0.8125rem; color: var(--muted); letter-spacing: 0.06em; }
.card__title { font-size: 1.1875rem; }
.card__link:hover .card__title { color: var(--blue); }
.card__meta { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 10px 0 0; font-size: 0.875rem; color: var(--muted); }
.card__meta .num { color: var(--text); font-weight: 700; font-size: 0.9375rem; }

/* clients */
.clients { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.clients li { display: grid; place-items: center; height: clamp(96px, 10vw, 132px); padding: 20px 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--white); }
.clients img { max-height: 46px; max-width: 78%; width: auto; object-fit: contain; filter: grayscale(1); opacity: 0.72; transition: filter 0.3s, opacity 0.3s; }
.clients li:hover img { filter: none; opacity: 1; }

/* capability teaser & plant */
.capability-teaser__grid, .plant { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.capability-teaser__media img, .plant__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.plant__media { margin: 0; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); margin-bottom: 36px; }
.plant .kpis { grid-template-columns: repeat(2, 1fr); }
.kpis > div { padding: 24px 16px 24px 0; border-bottom: 1px solid var(--line); }
.kpis dt { font-size: 0.875rem; color: var(--muted); }
.kpis dd { margin-top: 8px; font-weight: 600; }
.kpis .num { font-size: clamp(2.25rem, 3.4vw, 3rem); line-height: 1; font-weight: 700; color: var(--blue); margin-right: 4px; }


/* footer */
.site-footer {
  color: var(--muted-light); font-size: 0.9375rem;
  background: linear-gradient(155deg, #1d52aa 0%, #184898 45%, #133e86 100%);
}
.footer-top {
  display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); align-items: center;
  padding-block: clamp(64px, 8vw, 120px);
}
.footer-logo img { width: clamp(180px, 20vw, 320px); height: auto; }
.footer-cta h2 { color: var(--white); font-size: clamp(1.75rem, 3vw, 2.75rem); }
.footer-cta p { margin: 16px 0 36px; max-width: 34em; color: rgba(255, 255, 255, 0.82); }
.btn-line {
  display: inline-flex; align-items: center; gap: 16px; min-height: 52px; padding: 0 32px;
  border: 1px solid var(--white); color: var(--white); text-decoration: none;
  font-weight: 600; letter-spacing: 0.08em; transition: background-color 0.2s, color 0.2s;
}
.btn-line::before { content: ""; width: 28px; height: 1px; background: currentColor; transition: width 0.25s var(--ease); }
.btn-line:hover { background: var(--white); color: var(--blue); }
.btn-line:hover::before { width: 40px; }
.footer-cta__actions { display: flex; flex-wrap: wrap; gap: 16px; }
.btn-line--solid { background: var(--white); color: var(--blue); }
.btn-line--solid:hover { background: transparent; color: var(--white); }
.contact-brief__survey { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.contact-brief .btn { margin-top: 4px; }
.footer-grid {
  display: grid; grid-template-columns: 5fr 3fr 4fr; gap: 40px;
  padding-block: 48px; border-top: 1px solid rgba(255, 255, 255, 0.22);
}
.footer-brand p { color: var(--white); line-height: 1.7; }
.footer-brand .en { color: var(--muted-light); }
.footer-certs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.footer-certs li { padding: 3px 10px; border: 1px solid rgba(255, 255, 255, 0.3); font-family: var(--font-num); font-size: 0.8125rem; }
.footer-nav li + li { margin-top: 8px; }
.footer-nav a, .footer-contact a { text-decoration: none; }
.footer-nav a:hover, .footer-contact a:hover { color: var(--white); }
.footer-contact li { display: grid; grid-template-columns: 3em 1fr; gap: 12px; }
.footer-contact li + li { margin-top: 8px; }
.footer-contact .footer-contact__link { display: block; }
.footer-contact span { color: rgba(255, 255, 255, 0.55); }
.footer-base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  padding-block: 24px 32px; border-top: 1px solid rgba(255, 255, 255, 0.22); font-size: 0.8125rem;
}

/* ------------------------------------------------------------ inner pages */

.page-hero {
  position: relative; min-height: clamp(420px, 62vh, 620px);
  display: flex; align-items: flex-end; color: var(--white); background: var(--navy-3); overflow: hidden; isolation: isolate;
}
.page-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.page-hero__shade {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(7, 20, 42, 0.8) 0%, rgba(7, 20, 42, 0.35) 70%), linear-gradient(0deg, rgba(7, 20, 42, 0.6), rgba(7, 20, 42, 0) 50%);
}
.page-hero__content { padding-top: calc(var(--header-h) + 64px); padding-bottom: clamp(48px, 6vw, 80px); }
.page-hero h1 { font-size: clamp(2.25rem, 4.6vw, 4rem); font-weight: 800; }
.page-hero__en { margin: 10px 0 0; font-family: var(--font-latin); font-size: 1.0625rem; color: var(--muted-light); letter-spacing: 0.03em; }
.page-hero__lead { margin-top: 22px; max-width: 34em; color: rgba(255, 255, 255, 0.86); }
.page-hero--project .epc-badge { margin-bottom: 18px; }
.page-hero--soft .page-hero__img { filter: blur(22px) saturate(1.15); transform: scale(1.15); }
.page-hero--soft .page-hero__shade { background: linear-gradient(90deg, rgba(7, 20, 42, 0.86) 0%, rgba(7, 20, 42, 0.55) 100%); }
.project-intro__media { width: 100%; margin-bottom: 28px; background: var(--concrete); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; font-size: 0.875rem; color: var(--muted-light); }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: 0.6; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--white); }

/* filters */
.filters { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px;
  background: var(--white); border: 1px solid var(--line); border-radius: 999px; cursor: pointer; font-size: 0.9375rem;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.chip:hover { border-color: var(--blue); }
.chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: var(--white); }
.chip__n { font-family: var(--font-num); font-size: 0.8125rem; opacity: 0.6; }
.switch { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; font-size: 0.9375rem; user-select: none; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch__track { position: relative; width: 44px; height: 24px; border-radius: 999px; background: var(--line); transition: background-color 0.2s; flex: none; }
.switch__track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--white); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); transition: transform 0.2s var(--ease); }
.switch input:checked + .switch__track { background: var(--blue); }
.switch input:checked + .switch__track::after { transform: translateX(20px); }
.switch input:focus-visible + .switch__track { outline: 3px solid var(--red); outline-offset: 3px; }
.switch__label { display: inline-flex; align-items: center; gap: 8px; }
.filter-status { margin: 20px 0 28px; color: var(--muted); font-size: 0.9375rem; }
.empty { padding: 40px 0; color: var(--muted); }

/* tables */
.table-wrap { overflow-x: auto; }
.table-wrap--spaced { margin-top: clamp(36px, 4vw, 56px); }
.records { font-size: 0.9375rem; background: var(--white); }
.records th { text-align: left; font-weight: 600; font-size: 0.8125rem; letter-spacing: 0.06em; color: var(--muted); padding: 14px 16px; border-bottom: 2px solid var(--ink); white-space: nowrap; }
.records td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.records td.num { white-space: nowrap; font-size: 1rem; }
.records td:last-child, .records td:has(.epc-badge) { white-space: nowrap; }
.records td a { color: var(--blue); text-decoration: none; font-weight: 600; }
.records td a:hover { text-decoration: underline; }
.records tr[hidden] { display: none; }
.records tbody tr:hover { background: var(--blue-tint); }
.records .en { margin-top: 2px; }
.records tfoot td { font-weight: 700; border-bottom: 0; border-top: 2px solid var(--ink); }
.records--plain { background: transparent; }
.section--concrete .records--plain { background: var(--white); }

/* project detail */
.project-intro { display: grid; grid-template-columns: 7fr 4fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.project-intro__title { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.project-intro__summary { margin: 20px 0 36px; font-size: 1.125rem; color: #2a3646; max-width: 36em; }

.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(12px, 1.6vw, 24px); }
.gallery--3 { grid-template-columns: repeat(3, 1fr); }
.gallery__item { margin: 0; }
.gallery__item:first-child:nth-last-child(odd) { grid-column: 1 / -1; }
.gallery--3 .gallery__item:first-child:nth-last-child(odd) { grid-column: auto; }
.gallery__item a { display: block; overflow: hidden; background: var(--concrete); cursor: zoom-in; }
.gallery__item img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform 0.8s var(--ease); }
.gallery__item:first-child:nth-last-child(odd) img { aspect-ratio: 21 / 9; }
.gallery--3 .gallery__item img, .gallery--3 .gallery__item:first-child:nth-last-child(odd) img { aspect-ratio: 4 / 3; }
.gallery__item a:hover img { transform: scale(1.03); }
.gallery__item figcaption { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-size: 0.875rem; color: var(--muted); }

.pager { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.pager__link { display: grid; gap: 4px; padding: 36px 0; text-decoration: none; }
.pager__link--next { text-align: right; border-left: 1px solid var(--line); }
.pager__dir { font-size: 0.8125rem; color: var(--muted); letter-spacing: 0.06em; }
.pager__name { font-size: 1.25rem; font-weight: 700; }
.pager__link:hover .pager__name { color: var(--blue); }

.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #050c18; color: var(--white); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: transparent; }
.lightbox img { max-width: calc(100vw - 140px); max-height: calc(100vh - 120px); width: auto; height: auto; object-fit: contain; }
.lightbox__cap { position: absolute; left: 0; right: 0; bottom: 20px; text-align: center; font-size: 0.9375rem; color: var(--muted-light); }
.lightbox__btn { position: absolute; width: 52px; height: 52px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.08); border: 0; border-radius: 50%; color: var(--white); font-size: 2rem; line-height: 1; cursor: pointer; }
.lightbox__btn:hover { background: rgba(255, 255, 255, 0.2); }
.lightbox__close { top: 20px; right: 20px; }
.lightbox__prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 20px; top: 50%; transform: translateY(-50%); }

/* about */
.about-intro { display: grid; grid-template-columns: 8fr 4fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.about-intro p { max-width: 38em; color: #2a3646; }
.about-intro__media { margin: 0; }
.about-intro__media img { width: 100%; max-width: 360px; background: var(--concrete); }
.about-intro__media figcaption { margin-top: 10px; font-size: 0.875rem; color: var(--muted); }

.timeline { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 2px solid var(--ink); }
.timeline__item { padding: 28px 28px 0 0; }
.timeline__item + .timeline__item { padding-left: 28px; border-left: 1px solid var(--line); }
.timeline__year { margin: 0 0 16px; font-size: clamp(2.5rem, 4vw, 3.5rem); line-height: 1; font-weight: 700; color: var(--blue); }
.timeline h3 { font-size: 1.125rem; margin-bottom: 10px; }
.timeline__item div p { color: var(--muted); font-size: 0.9375rem; }

.group-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 28px); }
.group-card { padding: 32px 28px; border: 1px solid var(--line); }
.group-card:first-child { background: var(--blue); border-color: var(--blue); color: var(--white); }
.group-card:first-child .en, .group-card:first-child dt { color: var(--muted-light); }
.group-card h3 { font-size: 1.25rem; }
.group-card dl { margin-top: 24px; display: grid; gap: 10px; }
.group-card dl div { display: grid; grid-template-columns: 5em 1fr; gap: 12px; font-size: 0.9375rem; }
.group-card dt { color: var(--muted); }
.group-card dd { font-weight: 600; }

.depts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 clamp(20px, 3vw, 40px); }
.depts li { padding: 20px 0; border-bottom: 1px solid var(--line); }
.depts h3 { font-size: 1.0625rem; }
.depts p { margin-top: 6px; color: var(--muted); font-size: 0.9375rem; }

/* EPC page */
.epc-what { display: grid; grid-template-columns: 1fr; gap: clamp(32px, 4vw, 56px); }
.epc-what .epc-a { max-width: 1100px; }
@media (min-width: 1400px) { .epc-what { grid-template-columns: 4fr 7fr; align-items: center; } }
.epc-what .section-head { margin-bottom: 0; }


.epc-a {
  position: relative; overflow: hidden; padding: clamp(28px, 3.4vw, 44px) clamp(20px, 3.6vw, 48px) clamp(24px, 3vw, 40px); color: var(--white);
  background:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(155deg, #1d52aa 0%, #184898 50%, #123b82 100%);
}
.epc-a::after { content: "EPC"; position: absolute; right: -10px; bottom: -0.2em; font-family: var(--font-num); font-weight: 700; font-size: clamp(120px, 16vw, 220px); line-height: 1; color: rgba(255, 255, 255, 0.04); pointer-events: none; }
.epc-a__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin-bottom: 32px; }
.epc-a__head h3 { font-size: 1.25rem; }
.epc-a__head span { font-family: var(--font-latin); font-size: 0.8125rem; color: rgba(255, 255, 255, 0.65); }
.epc-a__owner { width: min(220px, 100%); margin: 0 auto; padding: 14px; text-align: center; border: 1px solid rgba(255, 255, 255, 0.55); font-size: 1.125rem; font-weight: 700; }
.epc-a__owner small { display: block; font-family: var(--font-latin); font-size: 0.75rem; font-weight: 400; color: rgba(255, 255, 255, 0.65); }
.epc-a__stem { position: relative; width: 2px; height: 76px; margin: 0 auto; background: rgba(255, 255, 255, 0.9); transform-origin: top; }
.epc-a__pill { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); white-space: nowrap; padding: 5px 14px; background: var(--white); color: var(--blue); font-size: 0.8125rem; font-weight: 700; border-radius: 999px; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18); }
.epc-a__dot { position: absolute; left: 50%; top: 0; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: var(--white); box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.25), 0 0 18px 4px rgba(255, 255, 255, 0.6); opacity: 0; }
.epc-a__hub { position: relative; display: flex; align-items: center; gap: 20px; width: min(440px, 100%); margin: 0 auto; padding: 18px 24px; background: var(--white); color: var(--ink); box-shadow: 0 18px 40px rgba(4, 18, 48, 0.35); }
.epc-a__hub-text { flex: 1; min-width: 0; }
.epc-a__hub-k { font-size: 0.8125rem; color: var(--muted); letter-spacing: 0.06em; }
.epc-a__hub-n { font-size: clamp(1.25rem, 2vw, 1.625rem); font-weight: 800; color: var(--blue); }
.epc-a__hub img { height: 32px; width: auto; flex: none; }
.epc-a__fork { position: relative; height: 44px; margin: 0 auto; width: 66.67%; }
.epc-a__fork::before { content: ""; position: absolute; left: 50%; top: 0; width: 2px; height: 22px; margin-left: -1px; background: rgba(255, 255, 255, 0.9); transform-origin: top; }
.epc-a__fork i { position: absolute; top: 22px; left: 0; right: 0; height: 2px; background: rgba(255, 255, 255, 0.9); }
.epc-a__fork b { position: absolute; top: 22px; width: 2px; height: 22px; background: rgba(255, 255, 255, 0.9); }
.epc-a__fork b:nth-of-type(1) { left: 0; }
.epc-a__fork b:nth-of-type(2) { left: 50%; margin-left: -1px; }
.epc-a__fork b:nth-of-type(3) { right: 0; }
.epc-a__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.epc-a__col { padding: 20px 20px 18px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.22); }
.epc-a__letter { font-family: var(--font-num); font-weight: 700; font-size: clamp(3.25rem, 5vw, 4.5rem); line-height: 0.9; color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.9); }
.epc-a__col h4 { margin: 12px 0 2px; font-size: 1.25rem; }
.epc-a__en { font-family: var(--font-latin); font-size: 0.8125rem; color: rgba(255, 255, 255, 0.65); }
.epc-a__col ul { margin: 14px 0 0; padding: 14px 0 0; border-top: 1px solid rgba(255, 255, 255, 0.2); display: grid; gap: 8px; font-size: 0.875rem; line-height: 1.55; color: rgba(255, 255, 255, 0.9); }
.epc-a__col li { display: flex; gap: 10px; }
.epc-a__col li::before { content: ""; flex: none; width: 10px; height: 2px; margin-top: 0.7em; background: var(--white); }
.epc-a__promise { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 16px; padding: 14px 20px; background: var(--white); color: var(--ink); }
.epc-a__promise strong { font-size: 1rem; }
.epc-a__chips { display: flex; gap: 8px; margin-left: auto; }
.epc-a__chips span { padding: 5px 16px; background: var(--blue); color: var(--white); font-weight: 700; font-size: 0.9375rem; }

.epc-a.anim .epc-a__owner, .epc-a.anim .epc-a__hub, .epc-a.anim .epc-a__col, .epc-a.anim .epc-a__promise { opacity: 0; transform: translateY(14px); }
.epc-a.anim .epc-a__stem, .epc-a.anim .epc-a__fork::before { transform: scaleY(0); }
.epc-a.anim .epc-a__fork i { transform: scaleX(0); }
.epc-a.anim .epc-a__fork b, .epc-a.anim .epc-a__pill { opacity: 0; }
.epc-a.play .epc-a__owner { animation: epc-rise 0.5s var(--ease) 0.1s forwards; }
.epc-a.play .epc-a__stem { animation: epc-grow-y 0.5s var(--ease) 0.5s forwards; }
.epc-a.play .epc-a__pill { animation: epc-fade 0.4s ease 1s forwards; }
.epc-a.play .epc-a__dot { animation: epc-travel 1.6s ease-in-out 1.1s 2; }
.epc-a.play .epc-a__hub { animation: epc-pop 0.55s var(--ease) 1s forwards; }
.epc-a.play .epc-a__fork::before { animation: epc-grow-y 0.3s var(--ease) 1.45s forwards; }
.epc-a.play .epc-a__fork i { animation: epc-grow-x 0.5s var(--ease) 1.65s forwards; }
.epc-a.play .epc-a__fork b { animation: epc-fade 0.3s ease 2s forwards; }
.epc-a.play .epc-a__col:nth-child(1) { animation: epc-rise 0.55s var(--ease) 2.1s forwards; }
.epc-a.play .epc-a__col:nth-child(2) { animation: epc-rise 0.55s var(--ease) 2.25s forwards; }
.epc-a.play .epc-a__col:nth-child(3) { animation: epc-rise 0.55s var(--ease) 2.4s forwards; }
.epc-a.play .epc-a__promise { animation: epc-rise 0.55s var(--ease) 2.9s forwards; }
@keyframes epc-rise { to { opacity: 1; transform: none; } }
@keyframes epc-pop { 0% { opacity: 0; transform: scale(0.92); } 100% { opacity: 1; transform: none; } }
@keyframes epc-grow-y { to { transform: scaleY(1); } }
@keyframes epc-grow-x { to { transform: scaleX(1); } }
@keyframes epc-fade { to { opacity: 1; } }
@keyframes epc-travel { 0% { top: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { top: 100%; opacity: 0; } }

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 28px); }
.pillar { padding: 36px 30px; background: var(--white); }
.pillar__letter { margin: 0 0 20px; font-size: 4.5rem; line-height: 1; font-weight: 700; color: var(--blue); }
.pillar h3 { font-size: 1.375rem; margin-bottom: 14px; }
.pillar h3 .en { margin-top: 4px; }
.pillar p:not(.pillar__letter) { color: var(--muted); font-size: 0.9375rem; }

/* capabilities */
.techniques { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 28px); }
.technique { background: var(--white); }
.technique img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.technique h3 { padding: 22px 24px 0; font-size: 1.1875rem; }
.technique p { padding: 10px 24px 26px; color: var(--muted); font-size: 0.9375rem; }

.text-media { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(24px, 5vw, 80px); align-items: start; margin-bottom: clamp(32px, 4vw, 56px); }
.text-media .section-head { margin-bottom: 0; }
.text-media__body { max-width: 40em; color: #2a3646; padding-top: 6px; }
.machines { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(12px, 1.6vw, 24px); }
.machine { margin: 0; background: var(--white); }
.machine img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; padding: 16px; }
.machine figcaption { padding: 0 16px 18px; font-size: 0.9375rem; font-weight: 600; text-align: center; }

/* contact */
.contact { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.contact-list { border-top: 1px solid var(--line); margin-bottom: 36px; }
.contact-item { display: grid; grid-template-columns: 6em 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-item dt { color: var(--muted); }
.contact-item dd { font-weight: 600; font-size: 1.125rem; }
.contact-item a { text-decoration: none; color: var(--blue); }
.contact-item--todo dd { color: var(--red); font-weight: 500; font-size: 1rem; }
.contact-brief { padding: clamp(28px, 3vw, 40px); background: var(--concrete); }
.contact-brief h2 { font-size: 1.375rem; margin-bottom: 12px; }
.contact-brief p { color: var(--muted); }
.contact-brief ol { counter-reset: s; margin-top: 16px; }
.contact-brief li { counter-increment: s; display: grid; grid-template-columns: 2.2em 1fr; padding: 10px 0; border-top: 1px solid var(--line); }
.contact-brief li::before { content: counter(s); font-family: var(--font-num); font-weight: 700; color: var(--blue); }

/* 404 */
.notfound { padding-top: calc(var(--header-h) + var(--section)); min-height: 70vh; }
.notfound__code { margin: 0; font-size: 7rem; line-height: 1; font-weight: 700; color: var(--blue); }
.notfound h1 { font-size: 2rem; margin: 16px 0; }
.notfound .btn { margin-top: 20px; }

/* ------------------------------------------------------------ language tuning */

/* Thai has no case and tracking breaks stacked vowels and tone marks. */
:root:lang(th) body * { letter-spacing: 0 !important; }
:root:lang(th) .hero h1 { font-weight: 700; max-width: 14em; }
:root:lang(th) .stat__num, :root:lang(th) .cert__code, :root:lang(th) .kpis .num,
:root:lang(th) .timeline__year, :root:lang(th) .big-num .num, :root:lang(th) .pillar__letter { font-weight: 600; }
:root:lang(th) .nav a { font-size: 0.9375rem; }
:root:lang(en) .hero h1 { max-width: 18em; font-weight: 700; }
:root:lang(en) .nav a, :root:lang(en) .btn, :root:lang(en) .link-line, :root:lang(en) .header-cta { letter-spacing: 0.01em; }

/* ------------------------------------------------------------ responsive */

@media (max-width: 1100px) {
  .nav, .header-cta, .header-inner > .lang-switch { display: none; }
  .menu-toggle { display: grid; place-items: center; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .clients { grid-template-columns: repeat(4, 1fr); }
  .np-progress span { width: 22px; }
}

@media (max-width: 900px) {
  :root { --header-h: 68px; }
  .brand-logo { height: 32px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .intro__grid, .film-block, .film-block--flip, .epc-teaser__grid, .capability-teaser__grid, .plant,
  .project-intro, .about-intro, .contact, .epc-what, .text-media { grid-template-columns: 1fr; }
  .machines { grid-template-columns: repeat(2, 1fr); }
  .film-block--flip .film { order: 0; }
  .tiles { grid-template-columns: 1fr 1fr; grid-auto-rows: 220px; }
  .tile, .tile:first-child, .tile:nth-child(2), .tile:nth-child(4), .tile:nth-child(5) { grid-column: span 1; grid-row: span 1; }
  .tile:first-child { grid-column: span 2; }
  .certs, .group-cards, .pillars, .techniques { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr 1fr; }
  .timeline__item:nth-child(3) { padding-left: 0; border-left: 0; }
  .timeline__item { padding-bottom: 28px; }
  .depts { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-top { grid-template-columns: 1fr; }
  .capability-teaser__media img, .plant__media img { aspect-ratio: 16 / 10; }
  .about-intro__media img { max-width: 280px; }
  .hero__bar { flex-wrap: wrap; }
  .np-progress { order: 3; width: 100%; margin-left: 0; }
  .np-progress span { flex: 1; }
  .np-toggle { margin-left: auto; }
}

@media (max-width: 700px) {
  body { font-size: 1rem; }
  .cards, .gallery, .gallery--3 { grid-template-columns: 1fr; }
  .gallery__item:first-child:nth-last-child(odd) img { aspect-ratio: 16 / 10; }
  .clients { grid-template-columns: repeat(2, 1fr); }
  .clients li { padding: 16px 20px; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .timeline__item, .timeline__item + .timeline__item { padding-left: 0; border-left: 0; border-bottom: 1px solid var(--line); padding-top: 24px; }
  .split-head { flex-direction: column; align-items: flex-start; }
  .pager { grid-template-columns: 1fr; }
  .epc-a__cols { grid-template-columns: 1fr; }
  .epc-a__fork { width: 2px; height: 28px; }
  .epc-a__fork i, .epc-a__fork b { display: none; }
  .epc-a__fork::before { height: 28px; }
  .epc-a__chips { margin-left: 0; }
  .epc-a__hub img { display: none; }
  .pager__link--next { text-align: left; border-left: 0; border-top: 1px solid var(--line); }
  .footer-grid { grid-template-columns: 1fr; }
  .fact { grid-template-columns: 6.5em 1fr; }
  .now-playing { flex-wrap: wrap; gap: 8px 12px; }
  .lightbox img { max-width: 100vw; max-height: calc(100vh - 140px); }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 64px; transform: none; }

  .records thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .records, .records tbody, .records tr, .records td, .records tfoot { display: block; width: 100%; }
  .records tr { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .records tr[hidden] { display: none; }
  .records td { display: grid; grid-template-columns: 5em 1fr; gap: 12px; padding: 3px 0; border: 0; }
  .records td::before { content: attr(data-label); color: var(--muted); font-size: 0.8125rem; }
  .records td:empty { display: none; }
  .records tbody tr:hover { background: none; }
  .records tfoot td { border-top: 0; }
  .records tfoot tr { border-top: 2px solid var(--ink); }
}

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