/* Grand Emperor Energy — corporate site
   Brand: navy + orange (จาก Company Profile 2569), IBM Plex Sans Thai */

:root {
  --navy-950: #0a1430;
  --navy-900: #101d40;
  --navy-800: #18274f;
  --navy-700: #1f2f5c;
  --navy-500: #3d4f82;
  --orange: #e9632c;
  --orange-600: #c2491a; /* ส้มเข้มสำหรับตัวอักษรเล็กบนพื้นขาว (AA) */
  --orange-btn: #cc4e1c;
  --orange-100: #fdeee6;
  --ink: #131b2e;
  --body: #3b4458;
  --muted: #667089;
  --line: #e2e6ee;
  --surface: #f4f6fa;
  --white: #fff;
  --radius: 6px;
  --wrap: 1240px;
  --pad: clamp(20px, 4vw, 40px);
  --section: clamp(72px, 9vw, 128px);
  --shadow: 0 1px 2px rgba(16, 29, 64, .06), 0 12px 32px -12px rgba(16, 29, 64, .18);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font: "IBM Plex Sans Thai", "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.75;
  color: var(--body); background: var(--white); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3, h4 { color: var(--navy-800); font-weight: 600; line-height: 1.3; text-wrap: balance; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 2px; }
.num { font-variant-numeric: tabular-nums; }
.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--navy-800); color: #fff; padding: 10px 16px; border-radius: var(--radius); }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--pad) * 2); margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: var(--section); }
section[id], [id].card { scroll-margin-top: 130px; }
.section--surface { background: var(--surface); }
.section--navy { background: var(--navy-800); color: #c6cde0; }
.section--navy h2, .section--navy h3, .section--navy h4 { color: #fff; }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }

/* ---------- Type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px; margin-bottom: 18px;
  font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--orange-600);
}
.section--navy .eyebrow { color: #ff9a6b; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.h1 { font-size: clamp(36px, 5.2vw, 64px); font-weight: 700; line-height: 1.2; letter-spacing: -.005em; }
.h2 { font-size: clamp(28px, 3.4vw, 44px); line-height: 1.28; }
.h3 { font-size: clamp(20px, 1.8vw, 24px); }
.lead { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.7; color: var(--muted); }
.section--navy .lead { color: #aab3cc; }
.head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.head .lead { margin-top: 18px; }
.head--split { max-width: none; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 48px; }
.head--split > div { max-width: 760px; }
.head--center { margin-inline: auto; text-align: center; }
.head--center .eyebrow::after { content: ""; width: 28px; height: 2px; background: currentColor; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 26px; border: 1.5px solid transparent; border-radius: 4px;
  font-weight: 600; font-size: 16px; line-height: 1.3; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease);
}
.btn .icon { transition: transform .25s var(--ease); }
.btn:hover .icon { transform: translateX(4px); }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--orange-btn); color: #fff; }
.btn--primary:hover { background: var(--orange-600); }
.btn--navy { background: var(--navy-800); color: #fff; }
.btn--navy:hover { background: var(--navy-950); }
.btn--ghost { border-color: var(--line); color: var(--navy-800); background: #fff; }
.btn--ghost:hover { border-color: var(--navy-800); }
.btn--light { border-color: rgba(255, 255, 255, .4); color: #fff; }
.btn--light:hover { background: #fff; color: var(--navy-800); border-color: #fff; }
.btn--sm { min-height: 44px; padding: 8px 18px; font-size: 15px; }
.link {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--navy-800);
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; padding-bottom: 3px;
  transition: background-size .3s var(--ease), color .2s;
}
.link:hover { background-size: 100% 1.5px; color: var(--orange-600); }
.link .icon { transition: transform .25s var(--ease); }
.link:hover .icon { transform: translateX(4px); }
.section--navy .link { color: #fff; }

/* ---------- Header ---------- */
.topbar { background: var(--navy-950); color: #b9c1d8; font-size: 14px; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 40px; }
.topbar ul { display: flex; gap: 28px; }
.topbar a { display: inline-flex; align-items: center; gap: 8px; transition: color .2s; }
.topbar a:hover { color: #fff; }
.topbar .icon { color: var(--orange); width: 15px; height: 15px; }
.header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); transition: box-shadow .25s; }
.header.is-stuck { box-shadow: 0 8px 24px -16px rgba(16, 29, 64, .35); }
.header .wrap { position: static; display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand img { width: 38px; height: 38px; }
.brand span { display: grid; line-height: 1.15; }
.brand b { font-size: 15px; font-weight: 700; letter-spacing: .16em; color: var(--navy-800); white-space: nowrap; }
.brand small { font-size: 11px; letter-spacing: .08em; color: var(--muted); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a:not(.btn) {
  position: relative; padding: 10px 16px; font-size: 16px; font-weight: 500; color: var(--navy-800); border-radius: 4px; transition: color .2s;
}
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 2px; height: 2px; background: var(--orange);
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav a:not(.btn):hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--orange-600); }
.nav .btn { margin-left: 14px; }
.menu-btn { display: none; width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 4px; background: #fff; cursor: pointer; place-items: center; }
.menu-btn .icon { width: 24px; height: 24px; color: var(--navy-800); }
.menu-btn .i-close, .menu-open .menu-btn .i-open { display: none; }
.menu-open .menu-btn .i-close { display: block; }

/* ---------- Hero (home) ---------- */
.hero { position: relative; overflow: hidden; background: var(--navy-800); color: #fff; }
.hero__media { position: absolute; inset: 0 0 0 44%; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--navy-800) 0%, rgba(24, 39, 79, .72) 26%, rgba(24, 39, 79, .12) 62%, rgba(10, 20, 48, .25) 100%); }
.hero__rings { position: absolute; left: -180px; bottom: -420px; width: 900px; height: 900px; opacity: .1; pointer-events: none; }
.hero .wrap { position: relative; display: flex; flex-direction: column; justify-content: center; min-height: min(780px, calc(100vh - 116px)); padding-block: 72px 56px; }
.hero__copy { max-width: 680px; }
.hero .eyebrow { color: #ff9a6b; }
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; color: #ff8b55; }
.hero p.lead { margin-top: 24px; max-width: 560px; color: #c9d0e3; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero__stats { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 0; margin-top: clamp(48px, 7vw, 88px); }
.hero__stats div { padding: 4px 44px; border-left: 1px solid rgba(255, 255, 255, .22); }
.hero__stats div:first-child { padding-left: 0; border: 0; }
.hero__stats dt { font-size: clamp(34px, 3.6vw, 48px); font-weight: 700; line-height: 1.1; color: #fff; }
.hero__stats dt small { font-size: .45em; font-weight: 600; margin-left: 4px; color: #ff9a6b; }
.hero__stats dd { margin-top: 6px; font-size: 15px; color: #aab3cc; }

/* ---------- Page hero (inner) ---------- */
.phero { position: relative; overflow: hidden; background: var(--navy-800); color: #c9d0e3; }
.phero .wrap { position: relative; padding-block: clamp(56px, 7vw, 104px); }
.phero h1 { color: #fff; max-width: 900px; font-size: clamp(34px, 4.4vw, 56px); }
.phero .lead { color: #c1c9de; max-width: 720px; margin-top: 20px; }
.phero .eyebrow { color: #ff9a6b; }
.phero__media { position: absolute; inset: 0 0 0 55%; opacity: .55; }
.phero__media img { width: 100%; height: 100%; object-fit: cover; }
.phero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--navy-800), rgba(24, 39, 79, .35)); }
.crumbs { display: flex; gap: 10px; margin-bottom: 28px; font-size: 14px; color: #97a1bd; }
.crumbs a:hover { color: #fff; }
.crumbs li + li::before { content: "/"; margin-right: 10px; opacity: .5; }
.subnav { position: sticky; top: 77px; z-index: 40; background: #fff; border-bottom: 1px solid var(--line); }
.subnav ul { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.subnav a { display: block; padding: 16px 14px; font-size: 15px; font-weight: 500; color: var(--muted); white-space: nowrap; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s; }
.subnav a:hover { color: var(--navy-800); border-color: var(--orange); }

/* ---------- Trust strip ---------- */
.trust { border-bottom: 1px solid var(--line); }
.trust .wrap { display: flex; align-items: center; gap: 20px 48px; flex-wrap: wrap; padding-block: 28px; }
.trust p { font-size: 13px; font-weight: 600; letter-spacing: .12em; color: var(--muted); text-transform: uppercase; }
.trust ul { display: flex; flex-wrap: wrap; gap: 10px 40px; flex: 1; justify-content: space-between; }
.trust li { font-size: 17px; font-weight: 600; letter-spacing: .02em; color: var(--muted); white-space: nowrap; }

/* ---------- Grids ---------- */
.grid { display: grid; gap: 24px; }
.g-2 { grid-template-columns: repeat(2, 1fr); }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-4 { grid-template-columns: repeat(4, 1fr); }
.g-5 { grid-template-columns: repeat(5, 1fr); }
.g-6 { grid-template-columns: repeat(6, 1fr); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.split--top { align-items: start; }
.split--wide { grid-template-columns: 5fr 7fr; }
.grid > *, .split > * { min-width: 0; }
.photo { overflow: hidden; border-radius: var(--radius); background: var(--surface); }
.photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.photo:hover img { transform: scale(1.03); }
.photo--tall { aspect-ratio: 4 / 4.4; }
.photo--wide { aspect-ratio: 16 / 10; }
.stack > * + * { margin-top: 20px; }
.stack-lg > * + * { margin-top: 32px; }

/* ---------- Stat tiles ---------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.stat { padding: 24px 26px; background: var(--surface); border-left: 3px solid var(--orange); border-radius: 0 var(--radius) var(--radius) 0; }
.stat b { display: block; font-size: clamp(30px, 3vw, 40px); font-weight: 700; line-height: 1.15; color: var(--navy-800); }
.stat b small { font-size: .5em; font-weight: 600; margin-left: 4px; }
.stat span { font-size: 15px; color: var(--muted); }
.section--surface .stat { background: #fff; }
.stats--row { grid-template-columns: repeat(4, 1fr); }

/* ---------- Cards ---------- */
.card {
  position: relative; display: flex; flex-direction: column; padding: 32px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
a.card:hover, .card--hover:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.card__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.card__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--surface); color: var(--navy-800); transition: background .3s, color .3s; }
.card__icon .icon { width: 24px; height: 24px; }
a.card:hover .card__icon, .card--hover:hover .card__icon { background: var(--orange); color: #fff; }
.card__tag { font-size: 13px; font-weight: 700; letter-spacing: .14em; color: var(--orange-600); }
.card h3 { font-size: 21px; margin-bottom: 10px; }
.card p { font-size: 16px; color: var(--muted); }
.card .link { margin-top: auto; padding-top: 22px; align-self: flex-start; font-size: 15px; }
.card--flat { background: var(--surface); border-color: transparent; }
.section--surface .card--flat { background: #fff; }
.card--navy { background: var(--navy-800); border-color: var(--navy-800); color: #c1c9de; }
.card--navy h3, .card--navy h4 { color: #fff; }
.card--navy p, .card--navy li { color: #c1c9de; }

.checks li { position: relative; padding-left: 30px; font-size: 16px; }
.checks li + li { margin-top: 10px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .42em; width: 18px; height: 18px;
  background: var(--orange); -webkit-mask: var(--check) center / contain no-repeat; mask: var(--check) center / contain no-repeat;
  --check: 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.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}

/* ---------- Models (EPC / PPA / Leasing) ---------- */
.model { padding: 36px 32px 32px; }
.model__no { font-size: 13px; font-weight: 700; letter-spacing: .14em; color: var(--muted); }
.model h3 { font-size: 30px; margin: 10px 0 2px; }
.model__sub { font-size: 19px; font-weight: 600; color: var(--orange-600); margin-bottom: 20px; }
.model__key { display: flex; align-items: baseline; gap: 8px; padding: 18px 0; margin-bottom: 22px; border-block: 1px solid var(--line); }
.model__key b { font-size: 40px; font-weight: 700; line-height: 1; color: var(--navy-800); }
.model__key span { font-size: 15px; color: var(--muted); }
.model__by { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 26px; font-size: 14px; color: var(--muted); }
.model__by img { height: 34px; width: auto; border-radius: 3px; background: #fbfaf5; }
.model.card--navy .model__no { color: #97a1bd; }
.model.card--navy .model__sub { color: #ff9a6b; }
.model.card--navy .model__key { border-color: rgba(255, 255, 255, .16); }
.model.card--navy .model__key b { color: #fff; }
.model.card--navy .model__key span, .model.card--navy .model__by { color: #aab3cc; }
.badge { position: absolute; top: 0; right: 28px; transform: translateY(-50%); padding: 4px 14px; border-radius: 99px; background: var(--orange-btn); color: #fff; font-size: 13px; font-weight: 600; }

/* ---------- Calculator ---------- */
.calc { display: grid; grid-template-columns: 380px 1fr; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.calc__in { padding: 36px; background: var(--navy-800); color: #c1c9de; }
.calc__in h3 { color: #fff; font-size: 22px; margin-bottom: 28px; }
.field + .field { margin-top: 28px; }
.field label { display: flex; justify-content: space-between; align-items: baseline; font-size: 15px; margin-bottom: 12px; }
.field output { font-size: 26px; font-weight: 700; color: #fff; }
.field output small { font-size: 14px; font-weight: 500; color: #aab3cc; margin-left: 4px; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: none; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--orange) var(--fill, 50%), rgba(255, 255, 255, .22) var(--fill, 50%)); }
input[type="range"]::-moz-range-track { height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .22); }
input[type="range"]::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--orange); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -9px; border-radius: 50%; background: #fff; border: 5px solid var(--orange); box-shadow: 0 2px 8px rgba(0, 0, 0, .3); transition: transform .15s; }
input[type="range"]::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 5px solid var(--orange); }
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.15); }
.calc__facts { margin-top: 32px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .16); display: grid; gap: 12px; font-size: 15px; }
.calc__facts div { display: flex; justify-content: space-between; gap: 12px; }
.calc__facts b { color: #fff; font-weight: 600; }
.calc__out { padding: 36px; display: flex; flex-direction: column; }
.calc__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.calc__col { padding: 0 24px; border-left: 1px solid var(--line); }
.calc__col:first-child { padding-left: 0; border: 0; }
.calc__col h4 { font-size: 18px; }
.calc__col > p { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.calc__col dl div { padding: 12px 0; border-top: 1px solid var(--line); }
.calc__col dt { font-size: 13px; color: var(--muted); }
.calc__col dd { font-size: 20px; font-weight: 700; color: var(--navy-800); line-height: 1.3; }
.calc__col dd small { font-size: 13px; font-weight: 500; color: var(--muted); margin-left: 3px; }
.calc__col dd.hl { color: var(--orange-600); }
.bars { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.bars h4 { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.bar { display: grid; grid-template-columns: 96px 1fr 92px; align-items: center; gap: 14px; font-size: 14px; }
.bar i { display: block; height: 12px; border-radius: 0 3px 3px 0; background: var(--navy-700); width: var(--w, 0%); transition: width .5s var(--ease); }
.bar:first-of-type i { background: var(--orange); }
.bar b { text-align: right; color: var(--navy-800); }
.note { font-size: 13.5px; line-height: 1.65; color: var(--muted); }
.calc__out .note { margin-top: 22px; }
.calc__out .actions { margin-top: 24px; }

/* ---------- Process ---------- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; counter-reset: s; position: relative; }
.steps::before { content: ""; position: absolute; left: 32px; right: 12%; top: 32px; height: 1px; background: var(--line); }
.step { position: relative; }
.step__dot { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--navy-800); color: #fff; margin-bottom: 24px; transition: background .3s, transform .3s var(--ease); }
.step__dot .icon { width: 26px; height: 26px; }
.step:hover .step__dot, .step:last-child .step__dot { background: var(--orange); }
.step:hover .step__dot { transform: translateY(-3px); }
.step small { display: block; font-size: 12.5px; font-weight: 700; letter-spacing: .14em; color: var(--orange-600); margin-bottom: 4px; }
.step h3 { font-size: 20px; margin-bottom: 8px; }
.step p { font-size: 15.5px; color: var(--muted); }
.section--surface .steps::before { background: #d5dbe7; }
.nsteps { counter-reset: n; }
.nsteps .card { padding: 26px; }
.nsteps .card::before { counter-increment: n; content: counter(n, decimal-leading-zero); font-size: 30px; font-weight: 700; line-height: 1; color: var(--orange); margin-bottom: 14px; }
.nsteps h3 { font-size: 18px; margin-bottom: 6px; }
.nsteps p { font-size: 15px; }

/* ---------- Projects ---------- */
.proj { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s; }
.proj:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.proj__img { aspect-ratio: 16 / 7; overflow: hidden; }
.proj__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.proj:hover .proj__img img { transform: scale(1.04); }
.proj__body { padding: 24px 28px 26px; }
.proj__body > span { font-size: 12.5px; font-weight: 700; letter-spacing: .12em; color: var(--muted); text-transform: uppercase; }
.proj h3 { font-size: 22px; margin: 4px 0 18px; }
.proj dl { display: grid; grid-template-columns: repeat(3, auto); justify-content: space-between; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); }
.proj dt { font-size: 13px; color: var(--muted); }
.proj dd { font-size: 19px; font-weight: 700; color: var(--navy-800); line-height: 1.35; }
.proj dd small { font-size: 13px; font-weight: 600; margin-left: 3px; }
.proj dl div:first-child dd { color: var(--orange-600); }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.chip { min-height: 44px; padding: 8px 18px; border: 1px solid var(--line); border-radius: 99px; background: #fff; font-size: 15px; font-weight: 500; color: var(--body); cursor: pointer; transition: all .2s; }
.chip:hover { border-color: var(--navy-800); color: var(--navy-800); }
.chip[aria-pressed="true"] { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { padding: 7px 16px; border: 1px solid var(--line); border-radius: 4px; font-size: 15px; font-weight: 500; color: var(--navy-800); background: #fff; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 16px; }
th, td { padding: 15px 20px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font-size: 13px; font-weight: 600; letter-spacing: .06em; color: var(--muted); background: var(--surface); border-bottom: 2px solid var(--navy-800); white-space: nowrap; }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
tbody tr { transition: background .15s; }
tbody tr:hover { background: #f8f9fc; }
tbody th { font-weight: 600; color: var(--navy-800); }
td.r, th.r { text-align: right; font-variant-numeric: tabular-nums; }
td.c, th.c { text-align: center; }
td.idx { color: var(--orange-600); font-weight: 700; width: 1%; }
td.mut { color: var(--muted); white-space: nowrap; }
th.hl, td.hl { background: var(--navy-800); color: #fff; border-color: rgba(255, 255, 255, .12); }
thead th.hl { background: var(--navy-800); color: #ff9a6b; }
.kwbar { display: flex; align-items: center; gap: 10px; justify-content: flex-end; }
.kwbar i { display: block; height: 6px; min-width: 2px; border-radius: 3px; background: var(--orange); opacity: .8; }
td.strong { font-weight: 700; color: var(--navy-800); }

/* ---------- Values / navy band ---------- */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 48px; }
.value { padding: 28px 0; border-top: 1px solid rgba(255, 255, 255, .16); }
.value small { font-size: 14px; font-weight: 700; color: #ff9a6b; }
.value h3 { font-size: 21px; margin: 4px 0 8px; }
.value p { font-size: 16px; color: #aab3cc; }
.values--4 { grid-template-columns: repeat(4, 1fr); gap: 0 32px; }
.values--light .value { border-color: var(--line); }
.values--light .value small { color: var(--orange-600); }
.values--light .value p { color: var(--muted); }
.quote { margin-top: 48px; padding: 28px 32px; border-left: 3px solid var(--orange); background: rgba(255, 255, 255, .05); font-size: clamp(19px, 1.8vw, 24px); font-weight: 500; line-height: 1.6; color: #fff; }
.quote--light { background: var(--surface); color: var(--navy-800); }

/* ---------- Timeline ---------- */
.timeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; position: relative; padding-top: 32px; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 2px; background: var(--navy-800); }
.timeline > li { position: relative; }
.timeline > li::before { content: ""; position: absolute; top: -33px; left: 0; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 4px solid var(--orange); }
.timeline small { font-size: 14px; font-weight: 700; color: var(--orange-600); letter-spacing: .04em; }
.timeline h3 { font-size: 22px; margin: 2px 0 10px; }
.timeline p { color: var(--muted); font-size: 16px; }
.timeline .chips { margin-top: 4px; }

/* ---------- People ---------- */
.person { padding: 36px; background: var(--surface); border-top: 3px solid var(--navy-800); border-radius: 0 0 var(--radius) var(--radius); }
.person__head { display: flex; gap: 20px; align-items: center; margin-bottom: 20px; }
.person__head .card__icon { width: 72px; height: 72px; background: var(--navy-800); color: #fff; }
.person__head .card__icon .icon { width: 30px; height: 30px; }
.person small { font-size: 12.5px; font-weight: 700; letter-spacing: .12em; color: var(--orange-600); text-transform: uppercase; }
.person h3 { font-size: 26px; }
.person__en { font-size: 15px; color: var(--muted); }
.person__role { font-weight: 600; color: var(--navy-800); padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.person > p { color: var(--muted); font-size: 16px; margin-bottom: 20px; }
.c4 { padding: 28px; background: var(--surface); border-radius: var(--radius); transition: background .3s, color .3s; }
.c4::before { content: ""; display: block; width: 28px; height: 2px; background: var(--orange); margin-bottom: 14px; }
.c4 h3 { font-size: 17px; letter-spacing: .14em; margin-bottom: 6px; }
.c4 p { font-size: 15.5px; color: var(--muted); }
.c4:hover, .c4--on { background: var(--navy-800); }
.c4:hover h3, .c4--on h3 { color: #fff; }
.c4:hover p, .c4--on p { color: #c1c9de; }

/* ---------- Info list / def ---------- */
.deflist div { display: grid; grid-template-columns: 180px 1fr; gap: 16px; padding: 16px 4px; border-bottom: 1px solid var(--line); }
.deflist div:first-child { border-top: 2px solid var(--navy-800); }
.deflist dt { color: var(--muted); font-size: 15.5px; }
.deflist dd { font-weight: 500; color: var(--ink); }
.kpi { display: flex; align-items: baseline; gap: 8px; }
.kpi b { font-size: clamp(44px, 5vw, 64px); font-weight: 700; line-height: 1; color: var(--orange); }
.kpi span { font-size: 18px; font-weight: 600; color: var(--navy-800); }
.card--navy .kpi span { color: #fff; }
.card--navy .kpi b { color: #ff8b55; }
.payline { display: flex; height: 52px; border-radius: 4px; overflow: hidden; margin-bottom: 24px; font-weight: 700; color: #fff; }
.payline span { display: grid; place-items: center; }
.payline span:nth-child(1) { flex: 3; background: var(--navy-900); }
.payline span:nth-child(2) { flex: 3; background: var(--navy-700); }
.payline span:nth-child(3) { flex: 3; background: var(--navy-500); }
.payline span:nth-child(4) { flex: 1; background: var(--orange-btn); }
.formula { padding: 28px 32px; background: var(--navy-800); border-radius: var(--radius); color: #c1c9de; }
.formula b { display: block; font-size: clamp(20px, 2vw, 26px); color: #fff; font-weight: 600; margin-bottom: 6px; }

/* ---------- FAQ ---------- */
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 2px solid var(--navy-800); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 4px; font-size: 19px; font-weight: 600; color: var(--navy-800); cursor: pointer; list-style: none; transition: color .2s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--orange-600); }
.faq summary .icon { transition: transform .3s var(--ease); color: var(--orange); }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq details p { padding: 0 4px 24px; max-width: 760px; color: var(--muted); }

/* ---------- Partners ---------- */
.partner { align-items: flex-start; }
.partner__logo { display: grid; place-items: center; height: 84px; padding: 10px 18px; margin-bottom: 22px; background: #fbfaf5; border-radius: 4px; }
.partner__logo img { max-height: 64px; width: auto; }
.partner small { font-size: 12.5px; font-weight: 700; letter-spacing: .12em; color: var(--orange-600); text-transform: uppercase; }

/* ---------- CTA band ---------- */
.cta { position: relative; overflow: hidden; background: var(--navy-900); color: #c1c9de; }
.cta__media { position: absolute; inset: 0; opacity: .28; }
.cta__media img { width: 100%; height: 100%; object-fit: cover; }
.cta .wrap { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; padding-block: clamp(64px, 8vw, 112px); }
.cta h2 { color: #fff; max-width: 720px; }
.cta h2 em { font-style: normal; color: #ff8b55; }
.cta p { margin-top: 16px; max-width: 640px; font-size: 18px; }
.cta .actions { margin-top: 0; flex-direction: column; }

/* ---------- Contact ---------- */
.contact-card { padding: 40px; background: var(--navy-800); color: #c9d0e3; border-radius: var(--radius); }
.contact-card h2 { color: #fff; font-size: 26px; }
.contact-card > p { font-size: 15px; color: #aab3cc; }
.contact-card ul { margin-top: 28px; }
.contact-card li { display: flex; gap: 16px; padding: 20px 0; border-top: 1px solid rgba(255, 255, 255, .16); color: #fff; font-size: 17px; }
.contact-card li .icon { color: #ff8b55; width: 22px; height: 22px; margin-top: 4px; }
.contact-card li small { display: block; font-size: 13px; color: #97a1bd; }
.contact-card a:hover { color: #ff9a6b; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form .full { grid-column: 1 / -1; }
.form label { display: block; font-size: 15px; font-weight: 500; color: var(--navy-800); margin-bottom: 6px; }
.form input, .form select, .form textarea { width: 100%; min-height: 52px; padding: 12px 16px; border: 1px solid #cfd5e1; border-radius: 4px; background: #fff; transition: border-color .2s, box-shadow .2s; }
.form textarea { min-height: 128px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--navy-800); box-shadow: 0 0 0 3px rgba(31, 47, 92, .14); }
.form input:user-invalid { border-color: #c0392b; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-950); color: #97a1bd; font-size: 15.5px; }
.footer__top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 48px; padding-block: 72px 56px; }
.footer .brand b { color: #fff; }
.footer .brand small { color: #97a1bd; }
.footer__about { margin-top: 20px; max-width: 340px; }
.footer h3 { color: #fff; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 18px; }
.footer li + li { margin-top: 10px; }
.footer a { transition: color .2s; }
.footer a:hover { color: #fff; }
.footer__contact li { display: flex; gap: 12px; }
.footer__contact .icon { color: var(--orange); margin-top: 5px; width: 17px; height: 17px; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 24px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 14px; }

/* ---------- Motion ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .g-4, .stats--row, .values--4 { grid-template-columns: repeat(2, 1fr); }
  .g-5, .g-6 { grid-template-columns: repeat(3, 1fr); }
  .calc { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(3, 1fr); row-gap: 40px; }
  .steps::before { display: none; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .menu-btn { display: grid; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; height: calc(100dvh - 77px); flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--pad) 96px; background: #fff; border-top: 1px solid var(--line); overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .25s, transform .25s var(--ease), visibility .25s;
  }
  .menu-open .nav { opacity: 1; visibility: visible; transform: none; }
  .nav a:not(.btn) { padding: 18px 4px; font-size: 20px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav a:not(.btn)::after { display: none; }
  .nav .btn { margin: 24px 0 0; }
  .topbar ul li:nth-child(n+3) { display: none; }
}
@media (max-width: 860px) {
  body { font-size: 16.5px; }
  .g-3, .split, .split--wide, .values, .timeline, .calc__cols { grid-template-columns: 1fr; }
  .timeline { gap: 56px; }
  .timeline::before { display: none; }
  .timeline > li { padding-top: 28px; }
  .timeline > li::before { top: 0; }
  .calc__col { padding: 24px 0 0; margin-top: 24px; border-left: 0; border-top: 2px solid var(--navy-800); }
  .calc__col:first-child { padding-top: 0; margin-top: 0; border: 0; }
  .hero__media { inset: 0; }
  .hero__media::after { background: linear-gradient(180deg, rgba(24, 39, 79, .8), rgba(16, 29, 64, .94)); }
  .hero .wrap { min-height: 0; padding-block: 64px 48px; }
  .phero__media { display: none; }
  .cta .wrap { grid-template-columns: 1fr; }
  .cta .actions { flex-direction: row; }
  .subnav { top: 77px; }
  .topbar .tag { display: none; }
}
@media (max-width: 620px) {
  .g-2, .g-4, .g-5, .g-6, .stats--row, .steps, .footer__top, .form, .values--4 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat { padding: 16px; min-width: 0; }
  .stat b { font-size: 25px; }
  .hero__stats { grid-template-columns: 1fr 1fr; gap: 24px 0; }
  .hero__stats div { padding: 0 20px; }
  .hero__stats div:nth-child(3) { padding-left: 0; border: 0; }
  .actions .btn, .cta .actions { width: 100%; }
  .cta .actions { flex-direction: column; }
  .card, .person, .contact-card, .calc__in, .calc__out { padding: 26px 22px; }
  .deflist div { grid-template-columns: 1fr; gap: 2px; }
  .proj dl { grid-template-columns: 1fr 1fr; }
  .brand small { display: none; }
  .brand b { font-size: 13px; letter-spacing: .12em; }
  .topbar ul li:nth-child(n+2) { display: none; }
  .bar { grid-template-columns: 70px 1fr 78px; gap: 10px; }
  th, td { padding: 13px 14px; }
  .step { display: grid; grid-template-columns: 64px 1fr; column-gap: 18px; }
  .step__dot { grid-row: span 3; margin: 0; }
}
