/* Shared editorial layer. Component-specific HaaS geometry stays in haas.css. */
@font-face {
  font-family: "Noto Sans Thai";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/static/fonts/noto-sans-thai.woff2') format('woff2');
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}
:root {
  --bg: #090d11;
  --bg-alt: #11181e;
  --card: #141c23;
  --text: #f1f2ed;
  --text-muted: #aeb8bd;
  --border: #303a41;
  --accent: #edc64b;
  --accent-soft: #edc64b12;
  --max-width: 1280px;
  --radius-lg: 5px;
  --radius-md: 4px;
  --shadow-soft: none;
  color-scheme: dark;
}
body { background: var(--bg); font-family: "Noto Sans Thai", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 16px; -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font-family: inherit; }
main { flex: 1; }
section, .haas-page section { padding-block: clamp(3.5rem, 7vw, 7rem); padding-inline: 0; }
.section-inner { padding-inline: clamp(1.25rem, 4vw, 3rem); }
h1, h2, h3 { text-wrap: balance; }
h1, h1.section-title { font-size: clamp(2.7rem, 5.3vw, 5rem); line-height: 1.06; letter-spacing: -.045em; max-width: 21ch; margin: .7rem 0 1.5rem; }
h2.section-title { font-size: clamp(2rem, 3.1vw, 3rem); line-height: 1.15; letter-spacing: -.035em; max-width: 26ch; margin: .65rem 0 1.4rem; }
h3 { letter-spacing: -.02em; }
.section-intro, .section-copy { font-size: 1.05rem; line-height: 1.8; max-width: 72ch; color: var(--text-muted); }
.section-intro { margin-bottom: 2.5rem; }
.section-label, .eyebrow, .mini-label, .haas-kicker { color: var(--accent); font-size: .72rem; letter-spacing: .17em; text-transform: uppercase; font-weight: 650; }
.eyebrow-dot { display: none; }
.eyebrow { background: transparent; border: 0; padding: 0; border-radius: 0; }
.hero-highlight { color: var(--accent); background: none; }
header { background: #090d11f5; border-bottom: 1px solid var(--border); backdrop-filter: blur(12px); }
.nav-inner { max-width: 1600px; min-height: 84px; padding: 1rem 2rem; gap: 1.2rem; }
.brand { flex-shrink: 0; gap: 0; }
.brand-logo { width: 146px; height: 42px; }
.brand-text { display: none; }
#primary-nav { gap: .18rem; }
nav a, .nav-submenu-toggle { font-size: .79rem; padding: .65rem .46rem; border-radius: 3px; }
nav a[aria-current="page"], .nav-submenu--current > .nav-submenu-toggle { background: transparent; color: var(--accent); border-color: transparent; }
nav a:hover, .nav-submenu-toggle:hover { background: var(--bg-alt); border-color: transparent; color: var(--accent); }
.nav-submenu-list { border: 1px solid var(--border); border-radius: 4px; background: var(--bg-alt); box-shadow: 0 16px 32px #0005; }
.nav-cta, .btn-primary { background: var(--accent); color: #14170f; border: 1px solid var(--accent); border-radius: 3px; box-shadow: none; font-weight: 650; }
.nav-cta { margin-left: .45rem; padding: .7rem .9rem; }
.nav-cta:hover, .btn-primary:hover { background: #ffda60; color: #14170f; box-shadow: none; transform: none; }
.btn-primary, .btn-ghost { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .75rem 1.2rem; font-size: .87rem; border-radius: 3px; }
.btn-ghost { border: 1px solid var(--border); background: transparent; }
.btn-ghost:hover { background: var(--bg-alt); border-color: var(--text-muted); }
.language-link { color: var(--text); margin-left: .4rem; border-left: 1px solid var(--border); border-radius: 0; }
.nav-toggle { border-color: var(--border); border-radius: 3px; background: var(--bg-alt); min-height: 44px; }
.hero { background: transparent; padding-top: clamp(3rem, 6vw, 6rem); }
.hero::before { display: none; }
.hero-grid { grid-template-columns: 1.15fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.hero h1 { font-size: clamp(2.9rem, 5vw, 4.8rem); line-height: 1.05; }
.hero p { font-size: 1.08rem; max-width: 52ch; }
.hero-meta { max-width: 55ch; font-size: .82rem; }
.hero-tags { gap: 1rem; margin-top: 1.5rem; }
.tag { border: 0; padding: 0; background: transparent; font-size: .72rem; color: var(--text-muted); border-radius: 0; }
.tag::before { content: '— '; color: var(--accent); }
.hero-visual { margin: 0; position: relative; }
.hero-visual > img { width: 100%; height: clamp(340px, 40vw, 530px); object-fit: cover; border-radius: 4px; }
.hero-visual figcaption { padding: .9rem 0; color: var(--text-muted); font-size: .72rem; border-bottom: 1px solid var(--border); }
.image-index { position: absolute; top: 1rem; left: 1rem; padding: .4rem .65rem; background: #090d11dd; font: .68rem ui-monospace, monospace; color: var(--accent); letter-spacing: .08em; }
.engineering-strip { border-block: 1px solid var(--border); padding-block: 2.5rem; }
.engineering-strip .section-inner { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.engineering-strip h2 { margin: 0 0 .65rem; font-size: 1.12rem; }
.engineering-strip p { margin: 0; font-size: .88rem; color: var(--text-muted); }
.capability-grid { gap: 2.5rem; }
.capability-card, .content-box, .service-card, .project-card, .safety-box, .stat-card, .process-step,
.cea-capability-note, .cea-status-panel { border: 0; border-radius: 0; box-shadow: none; background: transparent; padding: 1.5rem 0; }
.capability-card, .content-box, .project-card, .stat-card, .process-step { border-top: 1px solid var(--border); }
.capability-card h3, .content-box h2, .project-title { font-size: 1.32rem; line-height: 1.35; margin: 0 0 1rem; }
.capability-card p, .content-box p, .content-list, .service-list, .project-list, .safety-list, .process-step { font-size: .96rem; color: var(--text-muted); }
.content-list li, .project-list li, .safety-list li { margin-bottom: .55rem; }
.panel-link { color: var(--accent); font-size: .85rem; border: 0; border-bottom: 1px solid #edc64b50; border-radius: 0; padding: .35rem 0; background: transparent; }
.content-split { gap: 2.5rem 4rem; }
.partner-callout { padding: clamp(1.6rem, 4vw, 3.5rem); border: 0; border-radius: 4px; background: var(--bg-alt); box-shadow: none; }
.partner-callout h2 { font-size: clamp(1.6rem, 3vw, 2.7rem) !important; line-height: 1.2; }
.service-card::before, .hero-panel::before { display: none; }
.photo-card, .seemtek-image-card { border: 0; background: transparent; box-shadow: none; border-radius: 4px; padding: 0; }
.photo-card img { width: 100%; height: 320px; object-fit: cover; border-radius: 4px; }
.photo-grid { gap: 2.5rem; }
.project-caption, figcaption { font-size: .82rem; color: var(--text-muted); }
.project-meta, .project-badge, .safety-note, .contact-meta { font-size: .85rem; }
.projects-grid { gap: 3rem; }
.about-stats { align-content: start; gap: 2rem; }
.stat-value { font-size: 1.5rem; }
.safety-box h2, .about-layout h2 { font-size: 1.25rem !important; }
.seemtek-media-frame { border-radius: 4px; }
.contact-grid { gap: 5rem; }
label { color: var(--text); font-size: .85rem; }
input, textarea, select { border-color: var(--border); background: var(--bg-alt); border-radius: 3px; font-size: 1rem; min-height: 46px; }
textarea { min-height: 155px; }
footer { border-top: 1px solid var(--border); background: var(--bg); margin-top: 2rem; }
.footer-inner { max-width: var(--max-width); padding: 2.5rem clamp(1.25rem, 4vw, 3rem); font-size: .78rem; }
.feature-section { background: var(--bg-alt); }
.feature-grid { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: clamp(2rem, 6vw, 6rem); }
.feature-grid h2 { font-size: clamp(2.1rem, 3.8vw, 3.8rem); line-height: 1.12; letter-spacing: -.04em; }
.cooperation-mark { display: flex; align-items: center; flex-wrap: wrap; gap: .8rem; margin: 1.6rem 0; font-size: 1.15rem; font-weight: 600; letter-spacing: -.025em; }
.cooperation-mark .cross { color: var(--accent); font-weight: 400; }
.feature-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.4rem; margin-top: 1.8rem; }
.system-preview { border-left: 1px solid #edc64b66; padding-left: 2rem; }
.system-preview div { display: grid; grid-template-columns: 2.5rem 1fr; padding: 1.3rem 0; border-bottom: 1px solid var(--border); gap: .3rem 1rem; }
.system-preview b { grid-row: span 2; color: var(--accent); font: .72rem ui-monospace, monospace; padding-top: .4rem; }
.system-preview strong { font-size: 1.3rem; font-weight: 500; }
.system-preview span { color: var(--text-muted); font-size: .86rem; }
.cea-hero { background: var(--bg); }
.cea-hero-grid { grid-template-columns: 1.25fr 1fr; gap: 4rem; }
.cea-hero h1 { font-size: clamp(2.8rem, 5.2vw, 5rem); max-width: 18ch; }
.cea-hero h1 span { color: var(--accent); }
.cea-hero .section-intro { margin-bottom: 1.5rem; }
.system-preview--hero { align-self: center; }
.cooperation-section { border-block: 1px solid var(--border); }
.scope-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; margin-top: 3rem; }
.scope-grid article { padding-top: 1.5rem; border-top: 2px solid var(--accent); }
.scope-grid h3 { font-size: 1.8rem; margin: .5rem 0 1rem; }
.scope-grid ul { padding-left: 1.1rem; color: var(--text-muted); line-height: 1.9; }
.scope-index { font: .72rem ui-monospace, monospace; color: var(--text-muted); }
.integration-map { margin-top: 3rem; }
.integration-layer { display: grid; grid-template-columns: 3rem 1fr 1.3fr; gap: 1.5rem; align-items: start; padding: 1.6rem 0; border-top: 1px solid var(--border); }
.integration-layer .layer-number { color: var(--accent); font: .75rem ui-monospace, monospace; padding-top: .3rem; }
.integration-layer h3 { margin: 0; font-size: 1.25rem; }
.integration-layer p { margin: 0; color: var(--text-muted); font-size: .96rem; }
.integration-outcome { display: grid; grid-template-columns: 3rem 1fr; gap: 1.5rem; padding: 1.8rem; background: var(--accent); color: #161910; margin-top: 1rem; }
.integration-outcome strong { font-size: 1.3rem; }
.integration-outcome p { margin: .3rem 0 0; }
.integration-note { color: var(--text-muted); font-size: .88rem; max-width: 85ch; margin: 1.5rem 0 0; }
.cea-sensor-grid { grid-template-columns: repeat(3, 1fr); gap: 1rem 2rem; }
.cea-sensor-grid div { border: 0; border-bottom: 1px solid var(--border); border-radius: 0; background: transparent; padding: 1rem 0; font-size: .9rem; }
.cea-status-panel { gap: 4rem; }
.cea-status-panel h2 { font-size: 2rem; line-height: 1.2; }
.cooling-lead-image { width: 100%; max-height: 430px; object-fit: cover; border-radius: 4px; margin: 2.5rem 0 1rem; }
.haas-page { background: var(--bg); --haas-panel: var(--bg-alt); --haas-panel-strong: #090d11; }
.haas-hero::after { display: none; }
.haas-hero-panel, .haas-principle, .haas-content-card, .haas-step { border: 0; border-top: 1px solid var(--border); background: transparent; border-radius: 0; box-shadow: none; }
.haas-hero-panel { padding: 1.5rem 0; }
.haas-cta-panel { background: var(--bg-alt); border: 0; border-radius: 4px; box-shadow: none; }
.haas-hero-copy h1 { line-height: 1.05; font-size: clamp(2.8rem, 5.5vw, 5rem); }
.haas-boundary-note { border-radius: 0; background: var(--bg-alt); }
html[lang="th"] body { line-height: 1.85; }
html[lang="th"] h1, html[lang="th"] h1.section-title { line-height: 1.32; letter-spacing: -.025em; }
html[lang="th"] h2, html[lang="th"] h3 { line-height: 1.45; letter-spacing: 0; }
html[lang="th"] .section-label, html[lang="th"] .eyebrow { letter-spacing: .03em; }
.image-index, .scope-index, .system-preview b, .integration-layer .layer-number { font-family: "Noto Sans Thai", ui-monospace, monospace; }
@media (min-width: 1181px) and (max-width: 1330px) {
  .nav-inner { padding-inline: 1.2rem; gap: .6rem; }
  .brand-logo { width: 125px; }
  #primary-nav { gap: 0; }
  nav a, .nav-submenu-toggle { font-size: .74rem; padding-inline: .35rem; }
  .nav-cta { padding-inline: .6rem; }
}
@media (max-width: 1180px) {
  .nav-inner { min-height: 76px; padding: .8rem 1.25rem; }
  #primary-nav { top: 100%; left: 0; right: 0; width: auto; background: var(--bg); border: 0; border-bottom: 1px solid var(--border); border-radius: 0; padding: 1rem 1.25rem 1.5rem; max-height: calc(100dvh - 76px); overflow-y: auto; gap: .1rem; }
  #primary-nav > li { width: 100%; }
  #primary-nav > li > a, .nav-submenu-toggle { display: flex; min-height: 44px; align-items: center; font-size: .98rem; margin: 0; padding: .5rem .7rem; }
  .nav-submenu-list { position: static; box-shadow: none; min-width: 0; }
  .nav-cta { margin-top: .5rem !important; justify-content: center; }
  .language-link { border: 0; }
}
@media (max-width: 860px) {
  .hero-grid, .feature-grid, .cea-hero-grid, .scope-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-visual > img { height: 380px; }
  .hero h1, .cea-hero h1 { max-width: 22ch; }
  .scope-grid { gap: 2rem; }
  .integration-layer { grid-template-columns: 2rem 1fr; gap: .5rem 1rem; }
  .integration-layer p { grid-column: 2; }
  .contact-grid { gap: 2rem; }
  .cea-sensor-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  h1, h1.section-title, .hero h1, .cea-hero h1 { font-size: 2.65rem; }
  .hero-visual > img { height: 310px; }
  .engineering-strip .section-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .hero-tags { gap: .4rem 1rem; }
  .integration-outcome { grid-template-columns: 1fr; gap: .5rem; padding: 1.4rem; }
  .system-preview { padding-left: 1.25rem; }
  .cea-sensor-grid { grid-template-columns: 1fr; }
  .photo-card img { height: 250px; }
  .footer-inner { align-items: flex-start; gap: 1.5rem; }
  .footer-links { flex-wrap: wrap; }
}
