/* =====================================================================
   SDK.54 Engineering Co., Ltd. – site styles
   Palette: light-blue accent on white, deep navy for contrast
   ===================================================================== */
:root {
  --accent: #1AB4E3;
  --accent-600: #0E97C2;
  --accent-700: #0B6F8E;
  --accent-50: #EAF8FD;
  --accent-100: #CFF0FA;
  --navy: #0B1B2B;
  --navy-800: #112A40;
  --ink: #1B2836;
  --muted: #5F6F80;
  --line: #E3EAF0;
  --surface: #F5F9FC;
  --white: #FFFFFF;
  --shadow-sm: 0 2px 8px rgba(11, 27, 43, .06);
  --shadow: 0 12px 32px rgba(11, 27, 43, .10);
  --shadow-lg: 0 24px 60px rgba(11, 27, 43, .16);
  --radius: 6px;
  --font-head: 'Prompt', 'Noto Sans Thai', system-ui, sans-serif;
  --font-body: 'Sarabun', 'Noto Sans Thai', system-ui, sans-serif;
  --container: 1200px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html.lang-pending body { opacity: 0; }
body {
  margin: 0; font-family: var(--font-body); color: var(--ink); background: var(--white);
  font-size: 17px; line-height: 1.7; -webkit-font-smoothing: antialiased; transition: opacity .25s;
}
body.nav-open, body.modal-open { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 500; line-height: 1.25; margin: 0 0 .6em; color: var(--navy); letter-spacing: -.005em; }
h1 { font-size: clamp(2rem, 4.2vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
:lang(th) body, html[lang="th"] { --font-body: 'Sarabun', 'Noto Sans Thai', system-ui, sans-serif; }
html[lang="th"] p, html[lang="th"] li, html[lang="th"] dd { line-height: 1.85; }

.container { width: min(var(--container), 100% - 2.5rem); margin-inline: auto; }
.section { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.section--tint { background: var(--surface); }
.section--navy { background: var(--navy); color: #D5E3EE; }
.section--navy h2, .section--navy h3 { color: var(--white); }

/* headings with accent bar */
.sec-head { max-width: 720px; margin-bottom: 3rem; }
.sec-head--center { text-align: center; margin-inline: auto; }
.sec-head--center .eyebrow::before { margin-inline: auto; }
.eyebrow {
  display: block; font-family: var(--font-head); font-size: .8rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--accent-600); font-weight: 500; margin-bottom: 1rem;
}
.eyebrow::before { content: ''; display: block; width: 44px; height: 3px; background: var(--accent); margin-bottom: 1rem; border-radius: 2px; }
.sec-head p { color: var(--muted); font-size: 1.05rem; margin: 0; }
.sec-head h2 { margin-bottom: 1rem; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: .6rem; padding: .95rem 1.8rem; border-radius: var(--radius);
  font-family: var(--font-head); font-weight: 500; font-size: .95rem; letter-spacing: .03em; border: 1.5px solid transparent;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s, border-color .25s;
}
.btn svg { transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--primary { background: var(--accent); color: var(--white); box-shadow: 0 8px 20px rgba(26, 180, 227, .32); }
.btn--primary:hover { background: var(--accent-600); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(26, 180, 227, .4); }
.btn--ghost { border-color: rgba(255, 255, 255, .7); color: var(--white); background: rgba(255, 255, 255, .06); backdrop-filter: blur(4px); }
.btn--ghost:hover { background: var(--white); color: var(--navy); transform: translateY(-2px); }
.btn--outline { border-color: var(--accent); color: var(--accent-700); }
.btn--outline:hover { background: var(--accent); color: var(--white); transform: translateY(-2px); }
.btn--dark { background: var(--navy); color: var(--white); }
.btn--dark:hover { background: var(--navy-800); transform: translateY(-2px); }

/* reveal animation */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .12s; }
.reveal[data-delay="2"] { transition-delay: .24s; }
.reveal[data-delay="3"] { transition-delay: .36s; }
.reveal[data-delay="4"] { transition-delay: .48s; }
.reveal[data-delay="5"] { transition-delay: .6s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* =========================== HEADER =========================== */
.topbar { background: var(--navy); color: #B9CBDA; font-size: .82rem; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 40px; }
.topbar__info { display: flex; gap: 1.6rem; align-items: center; flex-wrap: wrap; }
.topbar__info span { display: inline-flex; align-items: center; gap: .45rem; }
.topbar__info svg { color: var(--accent); flex: none; }
.topbar__info a:hover { color: var(--white); }
.topbar__right { display: flex; align-items: center; gap: 1rem; }
.lang-toggle { display: inline-flex; border: 1px solid rgba(255, 255, 255, .18); border-radius: 999px; padding: 2px; }
.lang-toggle button {
  background: none; border: 0; color: #B9CBDA; padding: .15rem .7rem; border-radius: 999px; font-family: var(--font-head);
  font-size: .75rem; letter-spacing: .08em; transition: background .2s, color .2s;
}
.lang-toggle button.is-active { background: var(--accent); color: var(--white); }
.lang-toggle button:not(.is-active):hover { color: var(--white); }

.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid var(--line); transition: box-shadow .3s, padding .3s;
}
@media (min-width: 961px) { .site-header { backdrop-filter: blur(10px); } }
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 2rem; min-height: 82px; transition: min-height .3s; }
.site-header.is-scrolled .container { min-height: 68px; }

.brand { display: inline-flex; align-items: center; gap: .75rem; }
.brand__mark { width: 46px; height: 46px; flex: none; }
.brand__text { line-height: 1.05; }
.brand__name { font-family: var(--font-head); font-weight: 600; font-size: 1.35rem; color: var(--navy); letter-spacing: .01em; }
.brand__name b { color: var(--accent); font-weight: 600; }
.brand__sub { font-family: var(--font-head); font-size: .6rem; letter-spacing: .26em; color: var(--muted); }

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .2rem; align-items: center; }
.main-nav a {
  display: block; padding: .6rem .95rem; font-family: var(--font-head); font-size: .85rem; letter-spacing: .1em; text-transform: uppercase;
  font-weight: 500; color: var(--ink); position: relative; transition: color .2s;
}
.main-nav a::after {
  content: ''; position: absolute; left: .95rem; right: .95rem; bottom: .3rem; height: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.main-nav a:hover, .main-nav a.is-active { color: var(--accent-600); }
.main-nav a:hover::after, .main-nav a.is-active::after { transform: scaleX(1); }
.main-nav .nav-cta { margin-left: .8rem; }
.main-nav .nav-cta a { background: var(--accent); color: var(--white); border-radius: var(--radius); padding: .65rem 1.2rem; }
.main-nav .nav-cta a::after { display: none; }
.main-nav .nav-cta a:hover { background: var(--accent-600); color: var(--white); }

.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; position: relative; }
.nav-toggle span { position: absolute; left: 10px; right: 10px; height: 2px; background: var(--navy); transition: transform .3s, opacity .3s, top .3s; }
.nav-toggle span:nth-child(1) { top: 14px; } .nav-toggle span:nth-child(2) { top: 21px; } .nav-toggle span:nth-child(3) { top: 28px; }
.nav-toggle.is-open span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

@media (max-width: 960px) {
  .topbar__info span:nth-child(1) { display: none; }
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed; inset: 0; top: 0; background: var(--white); padding: 6.5rem 2rem 2rem; transform: translateX(100%);
    transition: transform .4s var(--ease); z-index: 40; overflow-y: auto;
  }
  .main-nav.is-open { transform: none; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav a { font-size: 1.1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
  .main-nav a::after { display: none; }
  .main-nav .nav-cta { margin: 1.5rem 0 0; }
  .main-nav .nav-cta a { text-align: center; }
  .site-header .container { position: relative; }
  .site-header .brand, .site-header .nav-toggle { position: relative; z-index: 46; }
}
@media (max-width: 600px) {
  .topbar__info span:nth-child(3) { display: none; }
  .brand__name { font-size: 1.15rem; }
}

/* =========================== HERO =========================== */
.hero-slider { position: relative; height: min(88vh, 820px); min-height: 560px; overflow: hidden; background: var(--navy); }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s var(--ease); }
.hero-slide.is-active { opacity: 1; z-index: 1; }
.hero-slide__bg { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1); }
.hero-slide.is-active .hero-slide__bg { animation: kenburns 9s var(--ease) forwards; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.1); } }
.hero-slide::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(8, 24, 40, .82) 0%, rgba(8, 24, 40, .55) 50%, rgba(8, 24, 40, .25) 100%);
}
.hero-slide__content { position: relative; z-index: 2; height: 100%; display: flex; align-items: center; }
.hero-slide__inner { max-width: 760px; color: var(--white); }
.hero-slide__inner .eyebrow { color: var(--accent); }
.hero-slide__inner h1 { color: var(--white); font-weight: 500; margin-bottom: 1.2rem; text-wrap: balance; }
.hero-slide__inner p { font-size: clamp(1.02rem, 1.4vw, 1.25rem); color: rgba(255, 255, 255, .86); max-width: 620px; margin-bottom: 2.2rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-slide__inner > * { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.hero-slide.is-active .hero-slide__inner > * { opacity: 1; transform: none; }
.hero-slide.is-active .hero-slide__inner > :nth-child(1) { transition-delay: .3s; }
.hero-slide.is-active .hero-slide__inner > :nth-child(2) { transition-delay: .45s; }
.hero-slide.is-active .hero-slide__inner > :nth-child(3) { transition-delay: .6s; }
.hero-slide.is-active .hero-slide__inner > :nth-child(4) { transition-delay: .75s; }

.hero-dots { position: absolute; z-index: 3; left: 50%; bottom: 2rem; transform: translateX(-50%); display: flex; gap: .6rem; }
.hero-dots button { width: 10px; height: 10px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .45); padding: 0; transition: width .3s, background .3s; }
.hero-dots button.is-active { background: var(--accent); width: 32px; border-radius: 5px; }
.hero-nav {
  position: absolute; z-index: 3; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .08); color: var(--white); display: grid; place-items: center;
  transition: background .25s, border-color .25s;
}
.hero-nav:hover { background: var(--accent); border-color: var(--accent); }
.hero-prev { left: 1.5rem; } .hero-next { right: 1.5rem; }
.hero-scroll { position: absolute; z-index: 3; right: 3rem; bottom: 2rem; color: rgba(255, 255, 255, .7); font-family: var(--font-head); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; display: flex; align-items: center; gap: .8rem; }
.hero-scroll::after { content: ''; width: 1px; height: 46px; background: linear-gradient(var(--accent), transparent); animation: drop 1.8s infinite; }
@keyframes drop { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
@media (max-width: 760px) { .hero-nav, .hero-scroll { display: none; } .hero-slider { height: 78vh; } }

/* stats strip */
.stats { position: relative; z-index: 4; margin-top: -3.6rem; }
.stats__grid {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); display: grid; grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
}
.stat { padding: 2rem 1.6rem; text-align: center; border-right: 1px solid var(--line); position: relative; }
.stat:last-child { border-right: 0; }
.stat::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--accent); transform: scaleX(0); transition: transform .4s var(--ease); }
.stat:hover::before { transform: scaleX(1); }
.stat__num { font-family: var(--font-head); font-size: clamp(2rem, 3.5vw, 2.8rem); font-weight: 600; color: var(--navy); line-height: 1; }
.stat__num sup { color: var(--accent); font-size: 55%; top: -.6em; }
.stat__label { color: var(--muted); font-size: .92rem; margin-top: .5rem; }
@media (max-width: 860px) { .stats__grid { grid-template-columns: repeat(2, 1fr); } .stat:nth-child(2) { border-right: 0; } .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--line); } }

/* =========================== INTRO =========================== */
.intro { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.intro__media { position: relative; }
.intro__media img { border-radius: var(--radius); box-shadow: var(--shadow-lg); aspect-ratio: 4/5; object-fit: cover; width: 100%; }
.intro__media::before { content: ''; position: absolute; inset: 2rem -1.5rem -1.5rem 2rem; border: 2px solid var(--accent-100); border-radius: var(--radius); z-index: -1; }
.intro__badge {
  position: absolute; left: -1.5rem; bottom: 2.5rem; background: var(--accent); color: var(--white); padding: 1.1rem 1.5rem; border-radius: var(--radius);
  box-shadow: var(--shadow); font-family: var(--font-head);
}
.intro__badge b { display: block; font-size: 2rem; line-height: 1; font-weight: 600; }
.intro__badge span { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; opacity: .9; }
.intro__text .sec-head { margin-bottom: 1.5rem; }
.intro__text p { color: var(--muted); }
.sdk-list { list-style: none; padding: 0; margin: 1.8rem 0 2.2rem; display: grid; gap: .9rem; }
.sdk-list li { display: grid; grid-template-columns: 52px 1fr; gap: 1rem; align-items: center; }
.sdk-list .letter {
  width: 52px; height: 52px; display: grid; place-items: center; border-radius: var(--radius); background: var(--accent-50); color: var(--accent-700);
  font-family: var(--font-head); font-weight: 600; font-size: 1.4rem; border: 1px solid var(--accent-100);
}
.sdk-list b { display: block; font-family: var(--font-head); font-weight: 500; color: var(--navy); }
.sdk-list span { color: var(--muted); font-size: .95rem; }
@media (max-width: 900px) { .intro { grid-template-columns: 1fr; } .intro__media { max-width: 520px; } .intro__media img { aspect-ratio: 4/3; } }

/* =========================== SERVICES =========================== */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.service-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 2.2rem 1.9rem; position: relative; overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.service-card::after { content: ''; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.service-card:hover::after { transform: scaleX(1); }
.service-card__icon { width: 60px; height: 60px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-50); color: var(--accent-600); margin-bottom: 1.4rem; transition: background .3s, color .3s; }
.service-card:hover .service-card__icon { background: var(--accent); color: var(--white); }
.service-card__icon svg { width: 30px; height: 30px; }
.service-card h3 { font-size: 1.12rem; margin-bottom: .6rem; }
.service-card p { color: var(--muted); font-size: .97rem; margin: 0; }
@media (max-width: 960px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .services-grid { grid-template-columns: 1fr; } }

/* =========================== PROJECTS =========================== */
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.project-card { border-radius: var(--radius); overflow: hidden; background: var(--white); border: 1px solid var(--line); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.project-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.project-card__btn { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 0; color: inherit; }
.project-card__media { aspect-ratio: 16/10; overflow: hidden; position: relative; }
.project-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.project-card:hover .project-card__media img { transform: scale(1.07); }
.project-card__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(11, 27, 43, .35)); opacity: 0; transition: opacity .4s; }
.project-card:hover .project-card__media::after { opacity: 1; }
.project-card__body { padding: 1.4rem 1.5rem 1.6rem; }
.project-card__meta { display: flex; gap: .5rem; align-items: center; color: var(--muted); font-size: .84rem; font-family: var(--font-head); letter-spacing: .04em; margin-bottom: .5rem; flex-wrap: wrap; }
.project-card__title { font-size: 1.12rem; margin-bottom: .35rem; }
.project-card__type { color: var(--muted); font-size: .93rem; margin: 0 0 .9rem; }
.project-card__link { display: inline-flex; align-items: center; gap: .4rem; font-family: var(--font-head); font-size: .85rem; color: var(--accent-600); font-weight: 500; }
.project-card__link svg { transition: transform .3s; }
.project-card:hover .project-card__link svg { transform: translateX(4px); }
.badge { display: inline-block; font-size: .72rem; padding: .1rem .55rem; border-radius: 999px; font-weight: 500; letter-spacing: .02em; }
.badge--ongoing { background: #FFF4DE; color: #A66A00; }
.status { display: inline-block; font-size: .8rem; padding: .15rem .65rem; border-radius: 999px; font-family: var(--font-head); font-weight: 500; white-space: nowrap; }
.status--done { background: #E4F7EC; color: #1B7A43; }
.status--ongoing { background: #FFF4DE; color: #A66A00; }
.empty { grid-column: 1/-1; text-align: center; color: var(--muted); padding: 3rem 0; }
.center { text-align: center; margin-top: 3rem; }
@media (max-width: 960px) { .projects-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .projects-grid { grid-template-columns: 1fr; } }

.filter-bar { display: flex; gap: .5rem; flex-wrap: wrap; justify-content: center; margin-bottom: 2.5rem; }
.filter-bar button {
  border: 1px solid var(--line); background: var(--white); padding: .55rem 1.2rem; border-radius: 999px; font-family: var(--font-head); font-size: .85rem;
  letter-spacing: .04em; color: var(--ink); transition: all .25s;
}
.filter-bar button:hover { border-color: var(--accent); color: var(--accent-600); }
.filter-bar button.is-active { background: var(--navy); border-color: var(--navy); color: var(--white); }

/* project table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow-sm); }
table.ptable { width: 100%; border-collapse: collapse; min-width: 760px; font-size: .95rem; }
.ptable th, .ptable td { padding: .95rem 1.1rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.ptable th { background: var(--navy); color: var(--white); font-family: var(--font-head); font-weight: 500; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.ptable tbody tr:nth-child(even) { background: var(--surface); }
.ptable tbody tr:hover { background: var(--accent-50); }
.ptable td.num { text-align: right; white-space: nowrap; font-family: var(--font-head); font-weight: 500; }
.ptable tfoot td { background: var(--accent-50); font-family: var(--font-head); font-weight: 600; color: var(--navy); border: 0; }
.ptable tfoot td.num { color: var(--accent-700); font-size: 1.1rem; }

/* modal */
.pmodal { position: fixed; inset: 0; z-index: 100; display: none; }
.pmodal.is-open { display: block; }
.pmodal__backdrop { position: absolute; inset: 0; background: rgba(6, 16, 28, .82); backdrop-filter: blur(6px); animation: fade .3s; }
@keyframes fade { from { opacity: 0; } }
.pmodal__dialog {
  position: absolute; inset: 2.5vh 3vw; margin: auto; max-width: 1240px; background: var(--white); border-radius: 10px; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1fr) clamp(330px, 27vw, 430px); animation: pop .4s var(--ease); box-shadow: var(--shadow-lg);
}
@keyframes pop { from { opacity: 0; transform: translateY(24px) scale(.98); } }
.pmodal__close { position: absolute; top: 1rem; right: 1rem; z-index: 5; width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--navy); color: var(--white); display: grid; place-items: center; transition: background .2s; }
.pmodal__close:hover { background: var(--accent); }
.pmodal__gallery { position: relative; background: #0d1a26; display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.pmodal__img { flex: 1; width: 100%; height: 100%; max-width: 100%; min-width: 0; object-fit: contain; min-height: 0; opacity: 0; transition: opacity .4s; }
.pmodal__img.is-in { opacity: 1; }
.pmodal__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .14); color: var(--white); display: grid; place-items: center; transition: background .2s; }
.pmodal__nav:hover { background: var(--accent); }
.pmodal__prev { left: 1rem; } .pmodal__next { right: 1rem; }
.pmodal__count { position: absolute; top: 1rem; left: 1rem; background: rgba(0, 0, 0, .45); color: var(--white); padding: .2rem .7rem; border-radius: 999px; font-family: var(--font-head); font-size: .8rem; }
.pmodal__thumbs { display: flex; gap: .4rem; padding: .6rem; overflow-x: auto; background: #08131d; }
.pmodal__thumbs button { flex: none; width: 70px; height: 50px; border: 2px solid transparent; border-radius: 4px; padding: 0; overflow: hidden; background: none; opacity: .55; transition: opacity .2s, border-color .2s; }
.pmodal__thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.pmodal__thumbs button.is-active, .pmodal__thumbs button:hover { opacity: 1; border-color: var(--accent); }
.pmodal__info { padding: 2.4rem 2rem 2rem; overflow-y: auto; min-width: 0; }
.pmodal__type { padding-right: 3rem; color: var(--accent-600); font-family: var(--font-head); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: .5rem; }
.pmodal__title { font-size: 1.4rem; margin-bottom: 1.4rem; overflow-wrap: break-word; }
.pmodal__facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 1rem; margin: 0 0 1.6rem; padding-bottom: 1.4rem; border-bottom: 1px solid var(--line); }
.pmodal__facts dt { font-size: .78rem; color: var(--muted); font-family: var(--font-head); letter-spacing: .08em; text-transform: uppercase; }
.pmodal__facts dd { margin: .15rem 0 0; font-weight: 500; color: var(--navy); overflow-wrap: break-word; }
.pmodal__scope-h { font-size: .95rem; margin-bottom: .6rem; }
.pmodal__scope { margin: 0; padding: 0; list-style: none; display: grid; gap: .45rem; }
.pmodal__scope li { padding-left: 1.5rem; position: relative; color: var(--ink); }
.pmodal__scope li::before { content: ''; position: absolute; left: 0; top: .6em; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
@media (max-width: 900px) {
  .pmodal__dialog { grid-template-columns: 1fr; inset: 0; border-radius: 0; overflow-y: auto; display: flex; flex-direction: column; }
  .pmodal__gallery { height: 48vh; flex: none; }
  .pmodal__info { padding: 1.6rem 1.4rem 3rem; }
}

/* =========================== SECTORS =========================== */
.sectors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.sector { position: relative; min-height: 380px; display: flex; align-items: flex-end; padding: 2.4rem 2rem; color: var(--white); overflow: hidden; isolation: isolate; }
.sector__bg { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform 1s var(--ease); z-index: -2; }
.sector:hover .sector__bg { transform: scale(1.08); }
.sector::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 27, 43, .15), rgba(11, 27, 43, .88)); z-index: -1; transition: background .4s; }
.sector:hover::before { background: linear-gradient(180deg, rgba(14, 151, 194, .3), rgba(11, 27, 43, .92)); }
.sector__num { position: absolute; top: 1.6rem; left: 2rem; font-family: var(--font-head); font-size: 3rem; font-weight: 600; color: rgba(255, 255, 255, .2); line-height: 1; }
.sector h3 { color: var(--white); font-size: 1.4rem; margin-bottom: .5rem; }
.sector h3::after { content: ''; display: block; width: 40px; height: 3px; background: var(--accent); margin-top: .6rem; }
.sector p { color: rgba(255, 255, 255, .82); margin: 0; font-size: .96rem; }
@media (max-width: 860px) { .sectors { grid-template-columns: 1fr; } .sector { min-height: 300px; } }

/* =========================== CLIENTS =========================== */
.clients { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.client { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); height: 120px; display: grid; place-items: center; padding: 1.2rem 1.6rem; transition: transform .3s var(--ease), box-shadow .3s; }
.client img { max-height: 70px; width: auto; max-width: 100%; object-fit: contain; filter: grayscale(1) opacity(.7); transition: filter .35s; }
.client:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.client:hover img { filter: none; }
@media (max-width: 860px) { .clients { grid-template-columns: repeat(2, 1fr); } .client { height: 100px; } }

/* =========================== CTA BAND =========================== */
.cta-band { position: relative; padding: clamp(4rem, 8vw, 6rem) 0; color: var(--white); overflow: hidden; }
.cta-band__bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.cta-band::after { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(100deg, rgba(11, 27, 43, .96) 35%, rgba(14, 151, 194, .88)); }
.cta-band .container { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cta-band h2 { color: var(--white); margin-bottom: .4rem; }
.cta-band p { color: rgba(255, 255, 255, .85); margin: 0; font-size: 1.05rem; }
.cta-band__actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* =========================== FOOTER =========================== */
.site-footer { background: var(--navy); color: #AEBFCD; font-size: .95rem; }
.site-footer .container { padding-top: 4.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 3rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.site-footer .brand__name, .site-footer h4 { color: var(--white); }
.site-footer .brand__sub { color: #7E93A6; }
.site-footer h4 { font-size: .85rem; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 1.3rem; }
.site-footer h4::after { content: ''; display: block; width: 28px; height: 2px; background: var(--accent); margin-top: .7rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.site-footer a:hover { color: var(--white); }
.footer-contact li { display: flex; gap: .7rem; align-items: flex-start; }
.footer-contact svg { color: var(--accent); flex: none; margin-top: .25rem; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding: 1.4rem 0; font-size: .82rem; color: #7E93A6; gap: 1rem; flex-wrap: wrap; }
.footer-bottom a { color: var(--accent); }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; gap: 2.2rem; } }

.back-top {
  position: fixed; right: 1.4rem; bottom: 1.4rem; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--accent); color: var(--white);
  display: grid; place-items: center; box-shadow: var(--shadow); opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .3s, transform .3s, background .2s; z-index: 40;
}
.back-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.back-top:hover { background: var(--navy); }

/* =========================== PAGE HERO =========================== */
.page-hero { position: relative; min-height: 380px; display: grid; place-items: center; text-align: center; color: var(--white); overflow: hidden; background: var(--navy); }
.page-hero__bg { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.08); will-change: transform; }
.page-hero::after { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(8, 24, 40, .7), rgba(8, 24, 40, .84)); }
.page-hero .container { position: relative; z-index: 2; padding: 5rem 0 4rem; }
.page-hero h1 { color: var(--white); margin-bottom: .6rem; }
.page-hero p { color: rgba(255, 255, 255, .82); font-size: 1.1rem; margin: 0 auto; max-width: 640px; }
.breadcrumb { display: inline-flex; gap: .6rem; font-family: var(--font-head); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: 1.2rem; }
.breadcrumb span { color: rgba(255, 255, 255, .6); }

/* =========================== ABOUT PAGE =========================== */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
.about-grid p { color: var(--muted); }
.check-list { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; gap: .7rem; }
.check-list li { display: flex; gap: .8rem; align-items: flex-start; }
.check-list svg { flex: none; color: var(--accent); margin-top: .3rem; }
.about-media { position: relative; }
.about-media img { border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.about-media__chips { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.4rem; }
.chip { display: inline-flex; align-items: center; gap: .5rem; padding: .55rem 1rem; border-radius: 999px; background: var(--accent-50); color: var(--accent-700); border: 1px solid var(--accent-100); font-family: var(--font-head); font-size: .85rem; font-weight: 500; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } }

.founder { display: grid; grid-template-columns: 380px 1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
.founder__photo { position: sticky; top: 110px; }
.founder__photo img { border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; aspect-ratio: 1; object-fit: cover; object-position: top; }
.founder__card { background: var(--navy); color: var(--white); padding: 1.4rem 1.6rem; border-radius: var(--radius); margin: -2.5rem 1.2rem 0; position: relative; box-shadow: var(--shadow); }
.founder__card b { display: block; font-family: var(--font-head); font-size: 1.15rem; font-weight: 500; }
.founder__card span { color: var(--accent); font-family: var(--font-head); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; }
.founder__card ul { list-style: none; padding: 0; margin: .9rem 0 0; display: grid; gap: .35rem; font-size: .9rem; color: #B9CBDA; }
.founder__card li { display: flex; gap: .6rem; align-items: center; }
.founder__card svg { color: var(--accent); flex: none; }
.founder__text p { color: var(--muted); }
.founder__text p:first-of-type::first-letter { font-family: var(--font-head); font-size: 1.4em; color: var(--accent-700); }
.quote { margin: 2rem 0 0; padding: 1.6rem 2rem; border-left: 4px solid var(--accent); background: var(--accent-50); border-radius: 0 var(--radius) var(--radius) 0; font-family: var(--font-head); font-size: 1.25rem; color: var(--navy); font-weight: 500; }
@media (max-width: 900px) { .founder { grid-template-columns: 1fr; } .founder__photo { position: static; max-width: 420px; } }

.concept { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-top: 2.5rem; }
.concept__item { background: var(--white); border-radius: var(--radius); padding: 2.2rem 1.9rem; border: 1px solid var(--line); position: relative; overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s; }
.concept__item:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.concept__letter { font-family: var(--font-head); font-size: 4rem; font-weight: 600; line-height: 1; color: var(--accent); margin-bottom: .6rem; }
.concept__item:nth-child(2) .concept__letter { color: var(--accent-600); }
.concept__item:nth-child(3) .concept__letter { color: var(--accent-700); }
.concept__item h3 { font-size: 1.05rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: .6rem; }
.concept__item p { color: var(--muted); font-size: .96rem; margin: 0; }
.tagline { text-align: center; max-width: 820px; margin: 3rem auto 0; font-family: var(--font-head); font-size: clamp(1.15rem, 2vw, 1.5rem); color: var(--navy); font-weight: 400; line-height: 1.5; }
@media (max-width: 860px) { .concept { grid-template-columns: 1fr; } }

.vm { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; }
.vm__card { padding: 2.6rem 2.4rem; border-radius: var(--radius); position: relative; overflow: hidden; }
.vm__card--vision { background: var(--accent); color: var(--white); }
.vm__card--mission { background: var(--white); border: 1px solid var(--line); }
.vm__card h3 { display: flex; align-items: center; gap: .8rem; font-size: 1.15rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 1.4rem; }
.vm__card--vision h3 { color: var(--white); }
.vm__card--vision p { font-family: var(--font-head); font-size: 1.3rem; line-height: 1.5; margin: 0; font-weight: 400; }
.vm__card svg { flex: none; }
.vm__card ol { margin: 0; padding: 0; list-style: none; counter-reset: m; display: grid; gap: 1rem; }
.vm__card ol li { counter-increment: m; display: grid; grid-template-columns: 38px 1fr; gap: 1rem; align-items: start; color: var(--ink); }
.vm__card ol li::before { content: counter(m, decimal-leading-zero); font-family: var(--font-head); font-weight: 600; color: var(--accent); font-size: 1.1rem; line-height: 1.6; }
.vm__goal { margin-top: 1.6rem; background: var(--navy); color: #D5E3EE; padding: 2.4rem; border-radius: var(--radius); display: grid; grid-template-columns: auto 1fr; gap: 1.8rem; align-items: center; }
.vm__goal h3 { color: var(--white); margin: 0; letter-spacing: .1em; text-transform: uppercase; font-size: 1rem; }
.vm__goal p { margin: 0; }
.vm__goal svg { color: var(--accent); }
@media (max-width: 860px) { .vm { grid-template-columns: 1fr; } .vm__goal { grid-template-columns: 1fr; } }

/* timeline */
.timeline { position: relative; max-width: 900px; margin: 0 auto; padding: 1rem 0; }
.timeline::before { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: var(--line); transform: translateX(-50%); }
.timeline__item { position: relative; width: 50%; padding: 0 3rem 3rem 0; opacity: 0; transform: translateX(-30px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.timeline__item:nth-child(even) { margin-left: 50%; padding: 0 0 3rem 3rem; transform: translateX(30px); }
.timeline__item.is-visible { opacity: 1; transform: none; }
.timeline__year { position: absolute; top: 0; right: -32px; width: 64px; height: 64px; border-radius: 50%; background: var(--accent); color: var(--white); display: grid; place-items: center; font-family: var(--font-head); font-weight: 600; box-shadow: 0 0 0 8px var(--white), 0 0 0 10px var(--accent-100); z-index: 2; font-size: .95rem; }
.timeline__item:nth-child(even) .timeline__year { right: auto; left: -32px; }
.timeline__card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem 1.8rem; box-shadow: var(--shadow-sm); position: relative; }
.timeline__card::before { content: ''; position: absolute; top: 24px; right: -8px; width: 16px; height: 16px; background: var(--white); border: 1px solid var(--line); border-left: 0; border-bottom: 0; transform: rotate(45deg); }
.timeline__item:nth-child(even) .timeline__card::before { right: auto; left: -8px; transform: rotate(-135deg); }
.timeline__card p { margin: 0; color: var(--ink); }
.timeline__card small { display: block; color: var(--accent-600); font-family: var(--font-head); letter-spacing: .1em; text-transform: uppercase; font-size: .75rem; margin-bottom: .4rem; }
@media (max-width: 720px) {
  .timeline::before { left: 32px; }
  .timeline__item, .timeline__item:nth-child(even) { width: 100%; margin-left: 0; padding: 0 0 2.4rem 5.2rem; transform: translateY(24px); }
  .timeline__year, .timeline__item:nth-child(even) .timeline__year { left: 0; right: auto; }
  .timeline__card::before, .timeline__item:nth-child(even) .timeline__card::before { right: auto; left: -8px; transform: rotate(-135deg); }
}

/* =========================== SERVICES PAGE =========================== */
.svc-groups { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.svc-group { background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); transition: transform .35s var(--ease), box-shadow .35s; }
.svc-group:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.svc-group__head { background: var(--accent); color: var(--white); padding: 1.4rem 1.6rem; }
.svc-group:nth-child(2) .svc-group__head { background: var(--accent-600); }
.svc-group:nth-child(3) .svc-group__head { background: var(--accent-700); }
.svc-group:nth-child(4) .svc-group__head { background: var(--navy); }
.svc-group__head small { display: block; font-family: var(--font-head); letter-spacing: .2em; font-size: .72rem; opacity: .85; }
.svc-group__head h3 { color: var(--white); margin: .2rem 0 0; font-size: 1.15rem; }
.svc-group ul { list-style: none; padding: 1.4rem 1.6rem 1.6rem; margin: 0; display: grid; gap: .55rem; }
.svc-group li { display: flex; gap: .6rem; align-items: flex-start; color: var(--ink); font-size: .97rem; }
.svc-group li::before { content: ''; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-top: .6em; }
@media (max-width: 1000px) { .svc-groups { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .svc-groups { grid-template-columns: 1fr; } }

.sys-list { display: grid; gap: 1.4rem; }
.sys-item { display: grid; grid-template-columns: 1fr 1fr; background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.sys-item:nth-child(even) .sys-item__media { order: 2; }
.sys-item__media { position: relative; min-height: 300px; }
.sys-item__media img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; transition: transform 1s var(--ease); }
.sys-item:hover .sys-item__media img { transform: scale(1.05); }
.sys-item__num { position: absolute; top: 1.2rem; left: 1.2rem; background: var(--accent); color: var(--white); font-family: var(--font-head); font-weight: 600; padding: .3rem .8rem; border-radius: 4px; font-size: .9rem; }
.sys-item__body { padding: clamp(1.8rem, 3vw, 3rem); display: flex; flex-direction: column; justify-content: center; }
.sys-item__body h3 { font-size: 1.35rem; }
.sys-item__body p { color: var(--muted); margin: 0 0 1.2rem; }
.tag-row { display: flex; gap: .5rem; flex-wrap: wrap; }
.tag { font-size: .8rem; padding: .3rem .75rem; border-radius: 999px; background: var(--surface); color: var(--accent-700); border: 1px solid var(--line); font-family: var(--font-head); }
@media (max-width: 800px) { .sys-item { grid-template-columns: 1fr; } .sys-item:nth-child(even) .sys-item__media { order: 0; } .sys-item__media { min-height: 220px; } }

.process { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.2rem; position: relative; counter-reset: p; }
.process::before { content: ''; position: absolute; top: 34px; left: 10%; right: 10%; height: 2px; background: repeating-linear-gradient(90deg, var(--accent-100) 0 10px, transparent 10px 18px); }
.process__step { text-align: center; position: relative; }
.process__num { width: 68px; height: 68px; border-radius: 50%; margin: 0 auto 1.2rem; background: var(--white); border: 2px solid var(--accent); color: var(--accent-700); display: grid; place-items: center; font-family: var(--font-head); font-weight: 600; font-size: 1.3rem; position: relative; transition: background .3s, color .3s, transform .3s var(--ease); }
.process__step:hover .process__num { background: var(--accent); color: var(--white); transform: scale(1.08); }
.process__step h3 { font-size: 1.02rem; margin-bottom: .5rem; }
.process__step p { color: var(--muted); font-size: .92rem; margin: 0; }
@media (max-width: 960px) { .process { grid-template-columns: repeat(2, 1fr); } .process::before { display: none; } }
@media (max-width: 480px) { .process { grid-template-columns: 1fr; } }

/* =========================== CONTACT PAGE =========================== */
.contact-layout { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.info-cards { display: grid; gap: 1rem; }
.info-card { display: grid; grid-template-columns: 54px 1fr; gap: 1.1rem; align-items: start; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.5rem; transition: transform .3s var(--ease), box-shadow .3s; }
.info-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.info-card__icon { width: 54px; height: 54px; border-radius: 12px; background: var(--accent-50); color: var(--accent-600); display: grid; place-items: center; }
.info-card h3 { font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: .3rem; }
.info-card p, .info-card a { margin: 0; color: var(--ink); font-weight: 500; }
.info-card a:hover { color: var(--accent-600); }
.info-card small { display: block; color: var(--muted); font-weight: 400; font-size: .9rem; }

.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.6rem, 3vw, 2.6rem); box-shadow: var(--shadow-sm); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-family: var(--font-head); font-size: .85rem; font-weight: 500; color: var(--navy); margin-bottom: .4rem; }
.field label .req { color: #D14343; }
.field input, .field select, .field textarea {
  width: 100%; padding: .85rem 1rem; border: 1.5px solid var(--line); border-radius: var(--radius); font: inherit; color: var(--ink); background: var(--white);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(26, 180, 227, .15); }
.was-validated .field input:invalid, .was-validated .field select:invalid, .was-validated .field textarea:invalid { border-color: #D14343; }
.honey { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 1.4rem; }
.form-foot small { color: var(--muted); }
.form-status { margin-top: 1rem; padding: 0; border-radius: var(--radius); font-weight: 500; display: none; }
.form-status.is-success, .form-status.is-error { display: block; padding: .9rem 1.1rem; }
.form-status.is-success { background: #E4F7EC; color: #1B7A43; }
.form-status.is-error { background: #FDE8E8; color: #B42318; }
.map-wrap { margin-top: 3.5rem; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.map-wrap iframe { display: block; width: 100%; height: 420px; border: 0; filter: saturate(.85); }
@media (max-width: 900px) { .contact-layout { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }

/* utilities */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
::selection { background: var(--accent-100); color: var(--navy); }
