@font-face{font-family:Outfit;src:url(assets/outfit.woff2) format('woff2');font-weight:100 900;font-display:swap}
@font-face{font-family:Kanit;src:url(assets/kanit-thai-300.woff2) format('woff2');font-weight:300;font-display:swap}
@font-face{font-family:Kanit;src:url(assets/kanit-thai-400.woff2) format('woff2');font-weight:400;font-display:swap}
@font-face{font-family:Kanit;src:url(assets/kanit-thai-500.woff2) format('woff2');font-weight:500;font-display:swap}

:root {
  color-scheme: light;
  --navy: #061f48;
  --royal: #2563bb;
  --azure: #0686da;
  --midnight: #04122e;
  --ice: #eef4fb;
  --body: #435772;
  --line: #d5e1f0;
  --gutter: clamp(20px, 5.6vw, 88px);
  --shell: 1240px;
  --latin: Outfit, Kanit, sans-serif;
  --thai: Outfit, Kanit, 'Leelawadee UI', Tahoma, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--navy); background: #f8faff; font-family: var(--thai); }
section[id] { scroll-margin-top: 24px; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
button:enabled { cursor: pointer; }
:focus-visible { outline: 3px solid #0584d5; outline-offset: 4px; }
.header :focus-visible, .hero :focus-visible, .footer :focus-visible { outline-color: #88dcff; }
img { display: block; max-width: 100%; }
main { overflow-x: clip; width: 100%; }
.shell { width: min(calc(100% - var(--gutter) * 2), var(--shell)); margin-inline: auto; }
.icon-library, .sr-only { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; }
.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.skip-link { position: fixed; z-index: 10; inset: 12px auto auto 12px; transform: translateY(-180%); padding: 10px 16px; background: white; border-radius: 6px; }
.skip-link:focus { transform: none; }

.header { position: relative; z-index: 2; background: #04122d; color: #e8f2ff; }
.header-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid #ffffff22; }
.wordmark { display: inline-flex; align-items: center; gap: 12px; flex: none; }
.wordmark img { width: 42px; height: 42px; padding: 5px; object-fit: contain; border-radius: 9px; background: #edf6ff; }
.wordmark > span { display: grid; gap: 3px; }
.wordmark strong { font-family: var(--latin); font-size: 21px; font-weight: 750; letter-spacing: -.035em; line-height: .93; }
.wordmark strong span { color: #55c5ff; }
.wordmark small { font-family: var(--latin); color: #b6cce6; font-size: 9px; font-weight: 550; letter-spacing: .31em; line-height: 1; }
.nav { display: flex; align-items: center; gap: clamp(22px, 3.8vw, 56px); font-size: 15px; font-weight: 300; color: #c6d6eb; }
.nav a { transition: color .2s, background-color .2s; }
.nav a:hover, .nav .nav-home { color: #fff; }
.nav .nav-contact { display: inline-flex; align-items: center; gap: 11px; color: #fff; margin-left: 12px; padding: 9px 14px 9px 18px; border: 1px solid #9dc4f066; border-radius: 5px; }
.nav .nav-contact:hover { background: #ffffff16; }
.nav .icon, .back-link .icon { width: 16px; height: 16px; }
.menu-toggle { display: none; }

.hero { position: relative; isolation: isolate; min-height: clamp(650px, 52vw, 815px); overflow: hidden; color: #f4f9ff; background: var(--midnight); }
.hero-media { position: absolute; z-index: -2; inset: 0; transform-origin: center bottom; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 80%; }
.hero::before { content: ''; position: absolute; z-index: -1; inset: 0; background: linear-gradient(180deg, #04122d 0, #04122d24 40%, transparent 62%, #04122d33 100%); pointer-events: none; }
.hero-inner { text-align: center; padding-top: clamp(58px, 6.5vw, 105px); }
.prototype-label { font-size: 14px; color: #c2d9f2; font-weight: 300; margin-bottom: 19px; }
.hero h1 { font-family: var(--latin); font-weight: 620; font-size: clamp(3.5rem, 6.18vw, 6.35rem); line-height: .99; letter-spacing: -.061em; max-width: 1100px; margin: 0 auto; }
.hero h1 span { display: block; }
.hero h1 span:last-child { color: #76caff; }
.hero-description { color: #d4e3f7; margin: 22px auto 0; font-size: clamp(16px, 1.45vw, 21px); line-height: 1.55; font-weight: 300; }
.hero-actions { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 26px; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 13px; min-height: 49px; border: 1px solid transparent; border-radius: 5px; padding: 8px 17px; white-space: nowrap; font-size: 15px; font-weight: 400; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.button .icon { width: 18px; height: 18px; transition: transform .24s; }
.button:hover .icon { transform: translateX(3px); }
.button-light { background: #f4f9ff; color: var(--navy); }
.button-light:hover { background: #c6e9ff; }
.button-outline { background: #04122dcc; color: #fff; border-color: #96b8e180; }
.button-outline:hover { background: #13315b; border-color: #b8d9ff; }
.button-primary { background: var(--royal); color: #fff; }
.button-primary:hover { background: #174d9a; }
.button-primary:disabled { opacity: .55; cursor: default; }

.market-strip { display: flex; align-items: center; min-height: 67px; background: var(--navy); border-top: 1px solid #29466e; color: #d8e9ff; padding-inline: max(var(--gutter), calc((100% - var(--shell)) / 2)); }
.market-window { overflow: hidden; flex: 1; mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); }
.market-track { width: max-content; display: flex; }
.market-group { display: flex; align-items: center; justify-content: space-around; min-width: min(1060px, calc(100vw - var(--gutter) * 2 - 44px)); gap: 32px; padding: 0 24px 0 15px; font-size: 15px; letter-spacing: .015em; white-space: nowrap; }
.market-group i { width: 5px; height: 5px; transform: rotate(45deg); background: #65bfff; }
.market-strip.motion .market-track { animation: marquee 39s linear infinite; }
.market-strip.paused .market-track, .market-window:hover .market-track { animation-play-state: paused; }
.market-toggle { display: grid; width: 36px; height: 36px; margin-left: 10px; place-items: center; border: 1px solid #7392b966; border-radius: 50%; color: #d6eaff; background: transparent; }
.market-toggle:hover { background: #ffffff14; }
.market-toggle span { width: 9px; height: 12px; border-inline: 2px solid currentColor; }
.paused .market-toggle span { width: 0; height: 0; border: 0; border-block: 6px solid transparent; border-left: 9px solid currentColor; margin-left: 2px; }
@keyframes marquee { to { transform: translateX(-50%); } }

.services { padding: clamp(86px, 9.4vw, 152px) 0 clamp(90px, 10.1vw, 162px); background: #f8faff; }
.section-heading { display: flex; gap: 38px; justify-content: space-between; align-items: end; margin-bottom: 39px; }
.section-label { color: var(--royal); font-family: var(--latin); font-size: 15px; font-weight: 600; margin-bottom: 15px; }
h2 { font-weight: 500; font-size: clamp(2.4rem, 4.45vw, 4.5rem); line-height: 1.13; letter-spacing: -.03em; }
.section-heading > p, .about-intro > p:not(.section-label,.content-note), .contact-intro > p:not(.section-label,.contact-notice) { font-size: 18px; line-height: 1.65; color: var(--body); font-weight: 300; max-width: 405px; }
.section-heading > p { padding-bottom: 5px; }
.service-grid { display: grid; grid-auto-flow: dense; grid-template-columns: var(--a, 1fr) var(--b, 1fr) var(--c, 1fr) var(--d, 1fr) var(--e, 1fr); gap: 8px; transition: grid-template-columns .4s cubic-bezier(.2,.8,.2,1); }
.service-grid:has(.service:nth-child(1).active) { --a: 2.37fr; }
.service-grid:has(.service:nth-child(2).active) { --b: 2.37fr; }
.service-grid:has(.service:nth-child(3).active) { --c: 2.37fr; }
.service-grid:has(.service:nth-child(4).active) { --d: 2.37fr; }
.service-grid:has(.service:nth-child(5).active) { --e: 2.37fr; }
.service { position: relative; display: flex; flex-direction: column; min-height: 262px; min-width: 0; border: 1px solid var(--line); border-radius: 10px; background: var(--ice); transition: color .25s, background-color .25s, border-color .25s; }
.service:not(.active):hover { background: #e1eeff; border-color: #b8d0ee; }
.service.active { color: #fff; background: radial-gradient(ellipse at 95% 0%, #155aa6, var(--navy) 65%); border-color: #1d4f8e; }
.service-toggle { background: none; border: 0; padding: 24px 19px 12px; width: 100%; text-align: left; display: grid; gap: 46px; font-family: var(--latin); font-size: clamp(20px, 2.25vw, 32px); font-weight: 550; letter-spacing: -.035em; }
.service:not(.active) .service-toggle::after { content: ''; position: absolute; inset: 0; }
.service-toggle:focus-visible { outline-offset: -4px; border-radius: 9px; }
.service.active .service-toggle:focus-visible, .service.active a:focus-visible { outline-color: #87d8ff; }
.service-icon { display: grid; place-items: center; width: 48px; height: 48px; color: var(--royal); background: #e2edfc; border-radius: 8px; transition: transform .4s; }
.service-toggle:hover .service-icon { transform: scale(1.08); }
.service-icon .icon { width: 26px; height: 26px; stroke-width: 1.55; }
.active .service-icon { background: #7ac7ff21; color: #a3dcff; }
.service-state { width: 18px; height: 18px; position: absolute; top: 28px; right: 17px; opacity: .73; }
.service-state::before, .service-state::after { position: absolute; content: ''; background: currentColor; width: 12px; height: 1px; top: 8px; left: 3px; }
.service-state::after { transform: rotate(90deg); transition: transform .25s; }
.active .service-state::after { transform: rotate(0); }
.service.active .service-toggle { gap: 22px; padding-bottom: 7px; }
.service-content { padding: 0 19px 18px; }
.service-content p { color: #d8e8fc; font-weight: 300; font-size: 16px; line-height: 1.5; }
.service-content a { color: #a6dcff; font-size: 15px; display: inline-flex; align-items: center; gap: 8px; margin-top: 13px; min-height: 30px; }
.service-content a:hover { color: #fff; }
.service-content .icon { width: 17px; height: 17px; transition: transform .25s; }
.service-content a:hover .icon { transform: translateX(3px); }

.about { background: #eaf2fc; padding: clamp(95px, 10.9vw, 174px) 0; }
.about-layout { display: grid; grid-template-columns: 1.13fr 1fr; gap: clamp(35px, 7.4vw, 114px); align-items: start; }
.about h2 { font-size: clamp(2.35rem, 3.75vw, 3.75rem); }
.inline-image { display: inline-block; vertical-align: 0; width: clamp(52px, 7.5vw, 102px); height: clamp(23px, 3vw, 42px); object-fit: cover; border-radius: 99px; margin-left: 5px; }
.about-intro > p:not(.section-label,.content-note) { margin-top: 22px; }
.content-note { color: #586c86; font-size: 14px; margin-top: 21px; font-weight: 300; }
.process-stack { display: grid; gap: 12px; }
.process-card { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 17px; padding: 22px; min-height: 126px; align-items: start; border: 1px solid #cbdcf1; border-radius: 11px; background: #f9fbff; box-shadow: 0 7px 20px #092b5610; }
.process-card:nth-child(2) { background: #f1f7ff; }
.process-card:nth-child(3) { background: #e1edfd; }
.process-icon { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid #c7d9f4; border-radius: 9px; background: #eaf3ff; color: var(--royal); }
.process-icon .icon { width: 22px; height: 22px; }
.process-card h3 { font-size: 23px; font-weight: 500; line-height: 1.23; }
.process-card p { color: var(--body); font-weight: 300; margin-top: 7px; line-height: 1.5; }

.contact { background: radial-gradient(ellipse at 45% -30%, #164981 0%, var(--navy) 56%, #04152f 100%); color: #f4f8ff; padding: clamp(88px, 10.3vw, 165px) 0; }
.contact-layout { display: grid; grid-template-columns: 1fr 1.03fr; gap: clamp(38px, 8.6vw, 130px); align-items: center; }
.contact .section-label { color: #92d3ff; }
.contact-intro > p:not(.section-label,.contact-notice) { color: #c9dff7; margin-top: 24px; }
.contact-notice { font-size: 15px; color: #cbddf3; margin-top: 24px; max-width: 385px; padding: 0 0 0 13px; line-height: 1.54; font-weight: 300; border-left: 2px solid var(--azure); }
.contact-form { display: grid; gap: 16px; background: #f5f9ff; padding: clamp(22px, 3.3vw, 44px); border-radius: 11px; color: var(--navy); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.contact-form label { display: grid; gap: 6px; min-width: 0; font-size: 15px; }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; min-height: 46px; padding: 8px 11px; border: 1px solid #bacde7; border-radius: 5px; color: var(--navy); background: #fff; font-size: 16px; font-weight: 300; }
.contact-form textarea { resize: vertical; }
.contact-form ::placeholder { color: #657a96; opacity: 1; }
.contact-form button { justify-self: start; margin-top: 1px; }
.form-feedback { border-left: 2px solid var(--royal); padding: 5px 0 5px 10px; font-size: 15px; }
.form-feedback:empty { position: absolute; width: 1px; height: 1px; padding: 0; border: 0; clip-path: inset(50%); }

.footer { color: #e5f0ff; background: #04122d; border-top: 1px solid #203b61; }
.footer-inner { min-height: 108px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.footer p { color: #bacde6; font-weight: 300; font-size: 15px; }
.back-link { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; font-size: 15px; padding-block: 12px; }
.back-link:hover { color: #91d4ff; }

@media (max-width: 980px) {
  .hero { min-height: 660px; }
  .hero-inner { padding-top: 76px; }
  .service-toggle { padding-inline: 13px; }
  .service-content { padding-inline: 13px; }
  .service-state { right: 10px; }
}

@media (max-width: 760px) {
  section[id] { scroll-margin-top: 12px; }
  .header-inner { min-height: 68px; gap: 12px; flex-wrap: wrap; }
  .wordmark img { width: 38px; height: 38px; }
  .wordmark { gap: 9px; }
  .wordmark strong { font-size: 19px; }
  .wordmark small { font-size: 8px; }
  .menu-toggle { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 6px; border: 1px solid #637fa3; color: #e8f4ff; background: transparent; }
  .menu-bars, .menu-bars::before, .menu-bars::after { display: block; width: 20px; height: 1px; background: currentColor; position: relative; transition: transform .2s; }
  .menu-bars::before, .menu-bars::after { content: ''; position: absolute; }
  .menu-bars::before { transform: translateY(-6px); }
  .menu-bars::after { transform: translateY(6px); }
  .menu-toggle[aria-expanded=true] .menu-bars { background: transparent; }
  .menu-toggle[aria-expanded=true] .menu-bars::before { transform: rotate(45deg); }
  .menu-toggle[aria-expanded=true] .menu-bars::after { transform: rotate(-45deg); }
  .nav { flex-basis: 100%; display: grid; gap: 0; padding-bottom: 12px; }
  .nav a, .nav .nav-contact { padding: 10px 0; min-height: 44px; border: 0; margin: 0; }
  .has-menu .nav { display: none; }
  .has-menu .nav.is-open { display: grid; position: absolute; inset: 100% 0 auto; background: var(--midnight); padding: 8px var(--gutter) 14px; border-bottom: 1px solid #3c5679; }
  .hero { min-height: clamp(540px, 110vw, 675px); }
  .hero-inner { padding-top: clamp(55px, 13vw, 80px); }
  .hero h1 { font-size: clamp(1.61rem, 8.85vw, 3.95rem); letter-spacing: -.053em; line-height: 1.045; }
  .hero h1 span { white-space: nowrap; }
  .hero-media { top: auto; height: clamp(340px, 78vw, 480px); }
  .hero-media img { object-position: 56% bottom; }
  .hero::before { background: linear-gradient(180deg, var(--midnight) 18%, #04122d8c 43%, transparent 63%, #04122d33 100%); }
  .hero-description { margin-top: 17px; }
  .hero-actions { margin-top: 22px; }
  .market-strip { min-height: 59px; padding-inline: 12px; }
  .market-group { gap: 23px; font-size: 14px; }
  .market-toggle { width: 44px; height: 44px; }
  .section-heading { display: grid; gap: 16px; margin-bottom: 22px; }
  .section-heading > p, .about-intro > p:not(.section-label,.content-note), .contact-intro > p:not(.section-label,.contact-notice) { font-size: 17px; }
  .section-label { margin-bottom: 10px; }
  .service-grid { grid-template-columns: 1fr; transition: none; }
  .service { min-height: 0; }
  .service-toggle, .service.active .service-toggle { display: flex; align-items: center; gap: 13px; font-size: 24px; padding: 11px 15px; min-height: 62px; }
  .service-icon { width: 40px; height: 40px; }
  .service-icon .icon { width: 22px; height: 22px; }
  .service-state { top: 22px; right: 14px; }
  .service-content { padding: 0 16px 14px 68px; }
  .service-content a { margin-top: 8px; min-height: 44px; }
  .about-layout, .contact-layout { grid-template-columns: 1fr; gap: 30px; }
  .process-card { min-height: 0; padding: 17px; }
  .process-card h3 { font-size: 21px; }
  .contact-intro > p:not(.section-label,.contact-notice) { margin-top: 16px; }
  .contact-notice { margin-top: 14px; }
  .footer-inner { padding-block: 22px; display: grid; grid-template-columns: 1fr auto; row-gap: 10px; }
  .footer p { grid-row: 2; grid-column: 1 / -1; }
}

@media (max-width: 430px) {
  .form-row { grid-template-columns: 1fr; gap: 16px; }
  .hero-actions { gap: 8px; }
  .hero-actions .button { gap: 7px; padding-inline: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .market-strip .market-track { animation: none !important; }
  .market-toggle { display: none; }
  .market-window { mask-image: none; }
  .market-track { display: block; width: auto; }
  .market-group { flex-wrap: wrap; justify-content: center; gap: 7px 15px; min-width: 0; padding: 10px 0; }
  .market-group[aria-hidden] { display: none; }
  .market-group i:last-child { display: none; }
}
