/* ==========================================================================
   Kiera Concept — kieraconcept.com
   Brand: royal navy #192189 + gold #FFC300 (sampled from the Kiera logo)
   Font:  IBM Plex Sans Thai (UI/body) + IBM Plex Mono (labels, figures)
   ========================================================================== */

:root {
  --navy: #192189;
  --navy-900: #0E145E;
  --deep: #0A0E4A;
  --deep-2: #141A66;
  --deep-3: #070A36;
  --ink: #0A0E4A;
  --ink-2: #2B2F5E;
  --muted: #4A4F7A;
  --muted-2: #5D6290;
  --line: #E4E6F1;
  --line-2: #C8CBE3;
  --soft: #F4F5FB;
  --soft-2: #EEF0FA;
  --gold: #FFC300;
  --gold-text: #8A6400;      /* gold that passes contrast on white */
  --gold-tint: #FFF6DA;
  --gold-line: #F2DE9C;
  --on-dark: #C9CCEC;
  --on-dark-2: #B9BDE6;
  --ok-bg: #E3F2EA;
  --ok: #1C5A3A;
  --font: 'IBM Plex Sans Thai', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 28px;
  --shadow: 0 12px 32px rgba(10, 14, 74, 0.12);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
body { margin: 0; font-family: var(--font); color: var(--ink); background: #fff; line-height: 1.6; -webkit-font-smoothing: antialiased; }
body.is-locked { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
.nowrap { white-space: nowrap; }
@media (max-width: 520px) { .hide-sm { display: none !important; } }
a { color: var(--navy); }
a:hover { color: var(--gold-text); }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 999; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 999px; }
.skip-link:focus { left: 8px; color: #fff; }
.mono { font-family: var(--mono); }

/* ---------- layout ---------- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 104px 0; }
.section--soft { background: var(--soft); }
.section--dark { background: var(--deep); color: #fff; }
.section-head { display: flex; flex-direction: column; gap: 12px; max-width: 680px; margin-bottom: 40px; }
.row-between { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- type ---------- */
.eyebrow { font-family: var(--mono); font-size: 13px; letter-spacing: 0.12em; color: var(--gold-text); }
.h1 { margin: 0; font-size: clamp(42px, 5.6vw, 76px); line-height: 1.08; font-weight: 700; }
.h2 { margin: 0; font-size: clamp(32px, 3.8vw, 46px); line-height: 1.22; font-weight: 700; }
.h3 { margin: 0; font-size: 28px; line-height: 1.3; font-weight: 700; }
.lead { margin: 0; font-size: clamp(17px, 1.5vw, 20px); color: var(--muted); }
.dot { color: var(--gold); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: 999px; font-weight: 600; font-size: 15px; text-decoration: none; border: 1px solid transparent; cursor: pointer; white-space: nowrap; transition: background 0.2s, color 0.2s, border-color 0.2s; }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn--lg { min-height: 50px; padding: 0 26px; font-size: 16px; }
.btn--primary { background: var(--navy); color: #fff; }
.btn--primary:hover { background: var(--deep); color: #fff; }
.btn--gold { background: var(--gold); color: var(--deep); }
.btn--gold:hover { background: #FFD23F; color: var(--deep); }
.btn--outline { background: #fff; color: var(--navy); border-color: var(--line-2); }
.btn--outline:hover { border-color: var(--navy); color: var(--navy); }
.btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.5); }
.btn--ghost-light:hover { background: rgba(255, 255, 255, 0.08); border-color: #fff; color: #fff; }
.link-arrow { font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.link-arrow svg { width: 16px; height: 16px; }

/* ---------- pills & chips ---------- */
.pill { display: inline-flex; align-items: center; font-family: var(--font); letter-spacing: 0; font-size: 13px; padding: 3px 12px; border-radius: 999px; white-space: nowrap; }
.pill--ok { background: var(--ok-bg); color: var(--ok); }
.pill--soon { background: var(--gold-tint); color: #6B5200; border: 1px solid var(--gold-line); }
.pill--glass { background: rgba(255, 255, 255, 0.14); color: #fff; }
.pill--gold { background: var(--gold); color: var(--deep); }
.pill--navy { background: var(--navy); color: #fff; }
.pill--outline-gold { border: 1px solid var(--gold); color: var(--gold); font-weight: 600; }
.pill--live { background: #1E5A3E; color: #DDF5E7; font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-size: 13px; padding: 4px 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.3); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.96); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid #E8E9F2; }
.site-header__inner { max-width: 1320px; margin: 0 auto; padding: 10px 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; }
.brand { display: flex; align-items: center; gap: 14px; min-height: 44px; text-decoration: none; }
.brand img { height: 40px; width: auto; }
.brand__tag { font-family: var(--mono); font-size: 13px; letter-spacing: 0.1em; color: var(--gold-text); border-left: 1px solid #DADCEB; padding-left: 14px; }
.main-nav { display: flex; align-items: center; gap: 8px 18px; min-width: 0; font-size: 15px; }
.main-nav__link { color: var(--ink-2); text-decoration: none; min-height: 40px; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.main-nav__link svg { width: 16px; height: 16px; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.lang-switch { display: flex; padding: 3px; border: 1px solid #DADCEB; border-radius: 999px; }
.lang-switch button { border: none; cursor: pointer; font-family: var(--mono); font-size: 13px; padding: 0 10px; min-height: 32px; border-radius: 999px; background: transparent; color: var(--muted-2); }
.lang-switch button[aria-pressed="true"] { background: var(--navy); color: #fff; }
@media (max-width: 1180px) { .main-nav { order: 3; flex: 1 1 100%; flex-wrap: wrap; } }

/* Software dropdown (home header) — open state via .is-open (site.js) or hover on mouse devices */
.nav-menu { position: relative; }
.nav-menu__btn { border: none; background: transparent; font: inherit; cursor: pointer; padding: 0 12px; border-radius: 999px; }
.nav-menu__btn:hover, .nav-menu.is-open .nav-menu__btn { background: #F2F3FA; color: var(--navy); }
.nav-menu__chev { transition: transform 0.2s; }
.nav-menu.is-open .nav-menu__chev { transform: rotate(180deg); }
.nav-menu__panel { display: none; position: absolute; top: calc(100% + 6px); left: 0; z-index: 60; width: 320px; max-width: calc(100vw - 32px); padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow); }
.nav-menu.is-open .nav-menu__panel { display: grid; gap: 2px; }
@media (hover: hover) and (min-width: 1181px) {
  .nav-menu:hover .nav-menu__panel { display: grid; gap: 2px; }
  .nav-menu:hover .nav-menu__chev { transform: rotate(180deg); }
  .nav-menu::after { content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 8px; } /* hover bridge to the panel */
}
@media (max-width: 600px) {
  .main-nav { position: relative; }
  .nav-menu { position: static; }
  .nav-menu__panel { left: 0; right: 0; width: auto; max-width: none; }
}
.nav-menu__item { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 12px; text-decoration: none; color: var(--ink); }
.nav-menu__item:hover, .nav-menu__item:focus-visible { background: var(--soft); color: var(--ink); }
.nav-menu__item b { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; }
.nav-menu__item span { font-size: 13px; color: var(--muted); }
.nav-menu__item .pill { font-size: 11px; padding: 1px 8px; }
.nav-menu__ext { width: 13px; height: 13px; color: var(--muted-2); }
/* current page in the header (studio.html → Kiera Studio, hrms.html → Software ▾ › Kiera HRMS) */
.main-nav__link[aria-current="page"], .nav-menu--current .nav-menu__btn { color: var(--navy); font-weight: 600; }
.main-nav__link[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 8px; }
.nav-menu__item[aria-current="page"] { background: var(--soft); }
.nav-menu__item[aria-current="page"] b::after { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }

/* ---------- section 1: company + hero products ---------- */
.hero { padding: 72px 0 88px; }
.hero__top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px 64px; margin-bottom: 48px; }
.hero__intro { flex: 1 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.hero__intro .lead { max-width: 640px; }
.hero-products { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 20px; }
.hero-card { border-radius: var(--r-xl); padding: 36px 36px 0; display: flex; flex-direction: column; gap: 16px; overflow: hidden; color: #fff; }
.hero-card--navy { background: var(--navy); }
.hero-card--deep { background: var(--deep); }
.hero-card__meta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; color: var(--on-dark); }
.hero-card__title { margin: 0; font-size: clamp(32px, 3.4vw, 44px); line-height: 1.1; font-weight: 700; }
.hero-card__text { margin: 0; font-size: 17px; color: #D3D6F3; }
.hero-card__visual { margin-top: 12px; flex: 1; min-height: 240px; display: flex; align-items: flex-end; justify-content: center; gap: 1.6em; text-decoration: none; color: var(--ink); font-size: clamp(9px, 0.9vw, 12px); }
.values { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 12px; margin-top: 48px; }
.value { display: flex; align-items: baseline; gap: 12px; padding: 16px 20px; background: var(--soft); border-radius: var(--r-md); }
.value b { font-size: 20px; color: var(--navy); }
.value span { font-size: 15px; color: var(--muted); }

/* browser frame around real screenshots */
.browser { display: block; margin-top: 12px; background: var(--navy-900); border-radius: 16px 16px 0 0; padding: 10px 10px 0; text-decoration: none; }
.browser__dots { display: flex; gap: 6px; padding: 0 4px 8px; }
.browser__dots span { width: 9px; height: 9px; border-radius: 50%; background: #3A4096; }
.browser img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: top left; border-radius: 8px 8px 0 0; }

/* ---------- illustrative product mock-ups (em-based so they scale) ---------- */
.phone { background: #fff; color: var(--ink); border-radius: 2.2em 2.2em 0 0; border: 0.5em solid #232A85; border-bottom: none; padding: 1.6em 1.3em; display: flex; flex-direction: column; gap: 1em; }
.phone--navy { border-color: var(--navy); }
.panel { background: #fff; color: var(--ink); border-radius: 1.2em 1.2em 0 0; padding: 1.4em 1.6em; display: flex; flex-direction: column; gap: 0.9em; }
.kv { display: flex; justify-content: space-between; align-items: center; gap: 1em; }
.kv--line { border-top: 1px solid #EEEFF5; padding-top: 0.8em; }
.muted { color: var(--muted); }
.big-time { font-family: var(--mono); font-size: 2.6em; font-weight: 500; line-height: 1; }
.cta-chip { background: var(--gold); color: var(--ink); font-weight: 600; text-align: center; padding: 0.8em; border-radius: 0.9em; }
.tag { padding: 0.2em 0.8em; border-radius: 999px; white-space: nowrap; }
.tag--navy { background: var(--navy); color: #fff; }
.tag--gold { background: var(--gold-tint); color: #6B5200; }
.roster { display: grid; grid-template-columns: 7em repeat(5, minmax(0, 1fr)); gap: 0.4em; text-align: center; }
.roster .name { text-align: left; }
.roster .h { color: var(--muted); }
.roster .m { background: #E6E8F7; border-radius: 0.4em; }
.roster .n { background: var(--navy); color: #fff; border-radius: 0.4em; }
.roster .l { background: var(--gold-tint); border-radius: 0.4em; }
.doc { width: 100%; height: 100%; background: #fff; color: var(--ink); border-radius: 1.4em 1.4em 0 0; overflow: hidden; display: flex; flex-direction: column; }
.doc__flow { padding: 1em 1.6em; display: flex; flex-wrap: wrap; gap: 0.6em; align-items: center; border-bottom: 1px solid var(--line); }
.step { background: var(--navy); color: #fff; padding: 0.3em 1em; border-radius: 999px; }
.step--gold { background: var(--gold); color: var(--ink); font-weight: 600; }
.step-arrow { color: #9296C2; }
.langs { margin-left: auto; display: flex; gap: 0.4em; }
.langs span { border: 1px solid #D5D8EE; padding: 0.2em 0.8em; border-radius: 999px; color: var(--muted); }
.langs .on { border-color: var(--navy); color: var(--ink); font-weight: 600; }
.doc__body { padding: 1.4em 1.6em; display: flex; flex-direction: column; gap: 0.8em; }
.doc__title { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.6em; align-items: baseline; }
.doc__title b { font-size: 1.25em; }
.doc__row { display: grid; grid-template-columns: 1fr 6em 8em; gap: 0.5em; padding: 0 0.9em; }
.doc__row span:not(:first-child) { text-align: right; font-family: var(--mono); }
.doc__row--head { background: var(--navy); color: #fff; padding: 0.6em 0.9em; border-radius: 0.5em; }
.doc__row--head span:not(:first-child) { font-family: var(--font); }
.doc__total { display: flex; justify-content: flex-end; gap: 2em; padding: 0 0.9em; }
.doc__total span:last-child { font-family: var(--mono); }
.doc__total--line { border-top: 1px solid var(--line); padding-top: 0.7em; color: var(--muted); }
.bill { display: flex; flex-direction: column; gap: 0.4em; background: var(--gold-tint); border-radius: 0.9em; padding: 0.9em; }
.bill__amt { font-family: var(--mono); font-weight: 600; font-size: 1.3em; }
.bill__pay { background: var(--navy); color: #fff; text-align: center; font-weight: 600; padding: 0.6em; border-radius: 999px; }
.stat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.8em; }
.stat { border: 1px solid #F0E3BE; border-radius: 0.8em; padding: 0.8em; display: flex; flex-direction: column; }
.stat small { font-size: 0.85em; color: #5E5330; }
.stat b { font-family: var(--mono); font-size: 1.2em; }
.progress { display: block; height: 0.8em; background: #F6EBC9; border-radius: 999px; overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--navy); border-radius: 999px; }

/* ---------- section 2: full-width product slideshow ---------- */
.showcase { background: var(--soft); }
.slider { position: relative; width: 100%; height: clamp(620px, 46vw, 700px); overflow: hidden; background: var(--navy); }
.slide { position: absolute; inset: 0; overflow: hidden; opacity: 0; visibility: hidden; transition: opacity 0.6s ease, visibility 0.6s ease; }
.slide.is-active { opacity: 1; visibility: visible; z-index: 1; }
.slide--navy { background: var(--navy); color: #fff; }
.slide--deep { background: var(--deep); color: #fff; }
.slide--deep2 { background: var(--deep-2); color: #fff; }
.slide--soft { background: var(--soft-2); color: var(--ink); }
.slide--gold { background: var(--gold-tint); color: var(--ink); }
.slide--photo { background: var(--deep); color: #fff; }
.slide__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slide__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 14, 74, 0.94) 0%, rgba(10, 14, 74, 0.7) 45%, rgba(10, 14, 74, 0.2) 100%); }
.slide__inner { position: relative; z-index: 1; max-width: 1320px; height: 100%; margin: 0 auto; padding: 0 40px; display: flex; gap: 56px; align-items: stretch; }
.slide__text { flex: 0 0 40%; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 20px; padding: 48px 0; }
.slide__link { text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 14px; }
.slide__link:hover { color: inherit; }
.slide__eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-family: var(--mono); font-size: 13px; letter-spacing: 0.08em; opacity: 0.85; }
.slide__title { font-size: clamp(36px, 5vw, 68px); font-weight: 700; line-height: 1.05; }
.slide__tag { font-size: clamp(15px, 1.45vw, 20px); line-height: 1.55; opacity: 0.88; }
.slide__visual { flex: 1; min-width: 0; min-height: 0; display: flex; align-items: flex-end; justify-content: center; gap: 2em; padding-top: 56px; text-decoration: none; color: inherit; font-size: clamp(8px, 0.95vw, 13px); }
.slide__visual:hover { color: inherit; }
.slide__visual--end { justify-content: flex-end; padding-bottom: 40px; }
.screen { width: 100%; height: 100%; background: var(--navy-900); border-radius: 1.4em 1.4em 0 0; padding: 0.8em 0.8em 0; display: flex; flex-direction: column; box-shadow: 0 -1em 4em rgba(0, 0, 0, 0.3); }
.slide--soft .screen { background: var(--navy); box-shadow: 0 -1em 4em rgba(10, 14, 74, 0.18); }
.screen__dots { display: flex; gap: 0.5em; padding: 0 0.4em 0.7em; }
.screen__dots span { width: 0.8em; height: 0.8em; border-radius: 50%; background: #3A4096; }
.screen img { flex: 1; min-height: 0; width: 100%; object-fit: cover; object-position: top left; border-radius: 0.6em 0.6em 0 0; }
.thumb { width: 22em; display: flex; flex-direction: column; gap: 0.6em; font-size: 1.1em; }
.thumb img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 1.2em; border: 2px solid rgba(255, 255, 255, 0.7); }
@media (max-width: 860px) {
  .slide__inner { flex-direction: column; gap: 14px; padding: 0 20px; }
  .slide__text { flex: 0 0 auto; padding: 28px 0 0; gap: 12px; }
  .slide__visual { flex: 1; padding-top: 0; }
  .slide__visual--end { padding-bottom: 20px; }
}
.slider-controls { max-width: 1320px; margin: 0 auto; padding: 14px 40px 22px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.slider-status { display: flex; align-items: baseline; gap: 10px; }
.slider-status__count { font-family: var(--mono); font-size: 14px; color: var(--muted-2); }
.slider-status__name { font-weight: 600; font-size: 16px; }
.dots { display: flex; align-items: center; }
.dot-btn { padding: 14px 4px; background: none; border: none; cursor: pointer; display: inline-flex; align-items: center; }
.dot-btn span { display: block; width: 8px; height: 8px; border-radius: 999px; background: var(--line-2); transition: width 0.3s, background 0.3s; }
.dot-btn[aria-current="true"] span { width: 28px; background: var(--navy); }
.slider-buttons { display: flex; align-items: center; gap: 8px; }
.round-btn { width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; color: var(--navy); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.round-btn svg { width: 18px; height: 18px; }
.round-btn--solid { border: none; background: var(--navy); color: #fff; }
.play-toggle .icon-play { display: none; }
.play-toggle[data-playing="false"] .icon-play { display: block; }
.play-toggle[data-playing="false"] .icon-pause { display: none; }

/* ---------- section 2b: a month in a Thai business (assets/js/month.js) ---------- */
.month__head .lead { color: var(--on-dark); }
.month__eyebrow { color: var(--gold); }
/* Tracking-style timeline: double-ring date nodes and continuous connectors. */
.month__timeline-viewport { max-width:100%; overflow-x:auto; overflow-y:hidden; scrollbar-width:thin; scrollbar-color:#8a7440 #151a33; padding:8px 4px; }
.month__ruler-wrap { min-width:620px; position:relative; min-height:64px; }
.month__ruler-wrap::before { content:attr(data-prefix); position:absolute; top:17px; left:0; color:var(--on-dark); font-size:15px; }
.month__days { position:relative; display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); margin:0 0 0 50px; height:64px; isolation:isolate; }
.month__days::before, .month__days::after { content:""; position:absolute; z-index:-1; top:28px; left:10%; height:4px; border-radius:99px; pointer-events:none; }
.month__days::before { width:80%; background:#343b59; }
.month__days::after { width:calc(80% * var(--progress, .5)); background:linear-gradient(90deg,#72bbb4 0%,#72bbb4 65%,var(--gold) 100%); transition:width .75s cubic-bezier(.22,.61,.36,1); }
.month__day { position:relative; display:flex; flex-direction:column; align-items:center; gap:14px; min-width:0; padding:8px 0; border:0; border-radius:8px; background:transparent; color:#9ba2bf; cursor:pointer; }
.month__dot { position:relative; z-index:1; display:flex; align-items:center; justify-content:center; flex:none; width:44px; height:44px; border:2px solid #4c5575; border-radius:50%; background:#242c46; color:#b6bed5; font:500 16px/1 var(--font); box-shadow:inset 0 0 0 3px #10152d; transition:background .65s,border-color .65s,color .65s,box-shadow .65s; }
.month__day[data-d="0"] .month__dot, .month__day[data-d="28"] .month__dot { width:104px; border-radius:999px; }
.month__day.is-past .month__dot { background:#72bbb4; border-color:#72bbb4; color:#081d27; }
.month__day.is-in-range .month__dot { border-color:var(--gold); }
.month__day[aria-selected="true"] .month__dot { background:var(--gold); border-color:var(--gold); color:var(--deep); }
.month__day:hover .month__dot { border-color:var(--gold); }
.month__day:focus-visible { outline:2px solid var(--gold); outline-offset:-2px; }
@media (prefers-reduced-motion:reduce) { .month__days::after, .month__dot { transition:none; } }
/* Preserve the calendar's underlying day-range state. */
.month__ruler { display:none; }
/* A native scroll runway keeps the monthly story pinned while its dates advance. */
.month__scroll-story.is-scroll-driven { height:calc(var(--month-height) + var(--month-travel)); position:relative; }
.month__scroll-story.is-scroll-driven .month__box { position:sticky; top:var(--month-top); height:var(--month-height); display:flex; flex-direction:column; box-sizing:border-box; }
.month__scroll-story.is-scroll-driven .month__timeline-viewport { flex:none; }
.month__scroll-story.is-scroll-driven .month__days::after { transition:none; }
.month__scroll-story.is-scroll-driven .month__panel { flex:1; min-height:0; overflow-y:auto; overflow-x:hidden; scrollbar-width:thin; scrollbar-color:#4c5575 transparent; align-content:start; padding:2px 6px 10px 0; will-change:opacity,transform; }
@media (max-width:899px) { .month__scroll-story.is-scroll-driven .month__panel { margin-top:18px; } }
.month__panel { margin-top: 36px; display: grid; gap: 20px 56px; min-height: 230px; }
@media (min-width: 900px) { .month__panel { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.month__when { margin: 0; font-size: clamp(30px, 3.4vw, 42px); font-weight: 700; line-height: 1.15; }
.month__sub { margin: 10px 0 0; color: var(--on-dark); max-width: 30em; }
.month__tasks { list-style: none; margin: 0; padding: 0; }
.month__tasks li { display: grid; gap: 6px 16px; padding: 16px 0; border-top: 1px solid rgba(255, 255, 255, 0.14); }
.month__tasks li:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
@media (min-width: 560px) { .month__tasks li { grid-template-columns: 1fr auto; align-items: baseline; } }
.month__by { display: flex; flex-wrap: wrap; gap: 6px; }
.month__by a { font-size: 13px; font-weight: 600; color: var(--deep); background: var(--on-dark); padding: 3px 12px; border-radius: 999px; text-decoration: none; white-space: nowrap; }
.month__by a:hover { background: var(--gold); color: var(--deep); }
.month__note { margin: 28px 0 0; font-size: 14px; color: var(--on-dark-2); max-width: 760px; }

/* ---------- section 3: product & studio cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 20px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; text-decoration: none; color: inherit; display: flex; flex-direction: column; transition: transform 0.25s, box-shadow 0.25s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: inherit; }
.card__media { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.card__media--left { object-position: left center; }
.card__media--mock { background: var(--deep); display: flex; align-items: flex-end; justify-content: center; gap: 1.2em; padding: 1.6em 1.6em 0; font-size: 10px; color: var(--ink); }
.card__body { padding: 22px 26px 26px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card__eyebrow { font-family: var(--mono); font-size: 12px; color: var(--gold-text); letter-spacing: 0.08em; }
.card__title { margin: 0; font-size: 22px; font-weight: 700; line-height: 1.35; }
.card__desc { margin: 0; font-size: 15px; color: var(--muted); }
.card__more { margin-top: auto; padding-top: 6px; font-weight: 600; color: var(--navy); display: inline-flex; align-items: center; gap: 8px; }
.card__more svg { width: 16px; height: 16px; }
.checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.checklist li { display: flex; gap: 8px; align-items: center; }
.checklist svg { flex: none; width: 16px; height: 16px; color: var(--gold-text); }

/* ---------- works gallery + lightbox ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 16px; }
.gallery--lg { grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 20px; }
.gallery__item { padding: 0; border: none; background: none; text-align: left; cursor: zoom-in; display: flex; flex-direction: column; gap: 10px; color: inherit; width: 100%; }
.gallery--lg .gallery__item { background: #fff; border-radius: var(--r-lg); padding: 14px; gap: 14px; }
.gallery__frame { position: relative; display: block; border-radius: var(--r-md); overflow: hidden; }
.gallery__frame img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 0.4s; }
.gallery--lg .gallery__frame img { aspect-ratio: 16 / 10; }
.gallery__item:hover .gallery__frame img { transform: scale(1.04); }
.gallery__zoom { position: absolute; right: 10px; bottom: 10px; width: 34px; height: 34px; border-radius: 999px; background: rgba(255, 255, 255, 0.92); color: var(--navy); display: flex; align-items: center; justify-content: center; }
.gallery__zoom svg { width: 16px; height: 16px; }
.gallery__text { display: flex; flex-direction: column; gap: 4px; }
.gallery--lg .gallery__text { padding: 0 8px 8px; }
.gallery__meta { font-family: var(--mono); font-size: 12px; color: var(--gold-text); letter-spacing: 0.06em; }
.gallery__title { font-weight: 600; font-size: 15px; }
.gallery--lg .gallery__title { font-size: 19px; }
.gallery__desc { font-size: 14px; color: var(--muted); }
.lightbox { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 24px; }
.lightbox[hidden] { display: none; }
.lightbox__backdrop { position: absolute; inset: 0; border: none; background: rgba(7, 10, 54, 0.97); cursor: zoom-out; }
.lightbox__panel { position: relative; z-index: 1; width: min(1200px, 100%); display: flex; flex-direction: column; gap: 14px; color: #fff; }
.lightbox__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.lightbox__count { font-family: var(--mono); font-size: 13px; color: var(--on-dark-2); }
.lightbox__close { width: 44px; height: 44px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.4); background: transparent; color: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.lightbox__stage { position: relative; }
.lightbox__img { width: 100%; max-height: 72vh; object-fit: contain; border-radius: var(--r-md); background: var(--deep); }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 999px; border: none; background: rgba(255, 255, 255, 0.92); color: var(--navy); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.lightbox__nav--prev { left: 12px; }
.lightbox__nav--next { right: 12px; }
.lightbox__close svg, .lightbox__nav svg { width: 20px; height: 20px; }
.lightbox__meta { font-family: var(--mono); font-size: 12px; color: var(--gold); letter-spacing: 0.08em; }
.lightbox__title { font-size: 22px; font-weight: 600; }
.lightbox__desc { font-size: 15px; color: var(--on-dark); max-width: 760px; }

/* ---------- section 4: about ---------- */
.about { display: flex; flex-wrap: wrap; gap: 64px; }
.about__intro { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.about__grid { flex: 2 1 560px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 20px; }
.point { background: #fff; border-radius: 22px; padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.point__num { font-family: var(--mono); font-size: 14px; color: var(--gold-text); }
.point__title { font-size: 21px; font-weight: 600; }
.point__text { font-size: 15px; color: var(--muted); }
.point--dark { background: var(--navy); color: #fff; }
.point--dark .point__num { color: var(--gold); }
.point--dark .point__text { color: #D3D6F3; }

/* ---------- section 5: contact ---------- */
.contact__head { display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }
.contact__logo { height: 68px; width: auto; }
.contact__head .lead { color: var(--on-dark); max-width: 560px; }
.contact__grid { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 20px; }
.form { flex: 2 1 480px; min-width: 0; background: #fff; color: var(--ink); border-radius: var(--r-xl); padding: 32px; display: flex; flex-direction: column; gap: 16px; }
.form__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 500; }
.field input, .field select, .field textarea { border: 1px solid var(--line-2); border-radius: 12px; font-size: 16px; background: #fff; color: var(--ink); }
.field input, .field select { height: 48px; padding: 0 14px; }
.field textarea { padding: 12px 14px; resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--navy); outline: none; box-shadow: 0 0 0 3px rgba(25, 33, 137, 0.15); }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.form__note { font-size: 13px; color: var(--muted); }
.contact-card { flex: 1 1 280px; min-width: 0; background: var(--deep-2); border: 1px solid #2A318F; border-radius: var(--r-xl); padding: 32px; display: flex; flex-direction: column; gap: 18px; color: #fff; }
.contact-card__title { font-size: 18px; font-weight: 600; }
.contact-list { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 12px 16px; font-size: 15px; }
.contact-list dt { color: var(--on-dark-2); }
.contact-list dd { margin: 0; }
.contact-list a { color: #fff; word-break: break-all; }
.contact-list a:hover { color: var(--gold); }
.qr { display: flex; align-items: center; gap: 14px; margin-top: auto; }
.qr img { width: 112px; height: 112px; border-radius: 12px; background: #fff; padding: 6px; }
.qr span { font-size: 14px; color: var(--on-dark); }

/* ---------- footer ---------- */
.site-footer { background: var(--deep-3); color: var(--on-dark); }
.site-footer__inner { max-width: 1200px; margin: 0 auto; padding: 56px 24px 32px; display: flex; flex-direction: column; gap: 36px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; }
.footer-brand { display: flex; flex-direction: column; gap: 12px; max-width: 340px; }
.footer-brand img { height: 48px; width: auto; align-self: flex-start; }
.footer-tax { font-family: var(--mono); font-size: 13px; color: #9296C2; }
.footer-cols { display: flex; flex-wrap: wrap; gap: 56px; font-size: 15px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h3 { margin: 0; font-size: 15px; color: #fff; font-weight: 600; }
.footer-col a { color: var(--on-dark); text-decoration: none; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid #1E2470; padding-top: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; color: #9296C2; }
.footer-bottom a { color: #9296C2; }
.site-footer--slim .site-footer__inner { padding: 28px 24px; flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; font-size: 13px; }
.site-footer--slim img { height: 36px; width: auto; }
.site-footer--slim a { color: var(--on-dark); }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 300; transform: translate(-50%, 20px); background: var(--deep); color: #fff; padding: 12px 20px; border-radius: 999px; font-size: 15px; opacity: 0; pointer-events: none; transition: opacity 0.3s, transform 0.3s; box-shadow: var(--shadow); }
.toast.is-shown { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Kiera Studio page ---------- */
.studio-hero { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding: 72px 24px 80px; }
.studio-hero__text { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.studio-hero__badge { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); border: 1px solid #DADCEB; border-radius: 999px; padding: 5px 14px; }
.studio-hero__badge::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.studio-hero__media { flex: 1 1 520px; min-width: 0; position: relative; padding-bottom: 36px; }
.studio-hero__media > img { width: 100%; height: 480px; object-fit: cover; border-radius: var(--r-xl); }
.float-card { position: absolute; left: 24px; bottom: 0; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 16px 20px; display: flex; flex-direction: column; gap: 2px; box-shadow: var(--shadow); }
.float-card small { font-family: var(--mono); font-size: 11px; color: var(--gold-text); letter-spacing: 0.08em; }
.float-card b { font-size: 16px; }
.coords { font-family: var(--mono); font-size: 12px; color: #7E83A8; }
.strip { background: var(--navy); color: #fff; }
.strip__inner { max-width: 1200px; margin: 0 auto; padding: 22px 24px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 22px; font-size: 17px; font-weight: 500; }
.strip__star { color: var(--gold); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter { font-size: 14px; font-weight: 500; border-radius: 999px; padding: 0 18px; min-height: 44px; cursor: pointer; background: #fff; color: var(--navy); border: 1px solid #D5D8EE; }
.filter[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 40px; }
.why { border-top: 2px solid var(--navy); padding-top: 22px; display: flex; flex-direction: column; gap: 10px; }
.why__num { font-family: var(--mono); font-size: 14px; color: var(--gold-text); }
.why__title { font-size: 22px; font-weight: 600; }
.why__text { color: var(--muted); font-size: 16px; }
.split { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.split__text { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }

/* ---------- Kiera HRMS page ---------- */
/* Product screenshots supplied by the owner, preserved at their original aspect ratios. */
.hr-screens { flex: 1 1 520px; min-width: 0; margin: 0; }
.hr-screens__images { position: relative; padding: 24px 0 56px 48px; }
.hr-screens__desktop { display: block; border: 1px solid var(--line-2); border-radius: 16px; overflow: hidden; box-shadow: 0 24px 64px rgba(10,14,74,.16); }
.hr-screens__desktop img { width: 100%; height: auto; }
.hr-screens__mobile { position: absolute; left: 0; bottom: 0; width: clamp(110px,25%,150px); border: 4px solid #101329; border-radius: 22px; overflow: hidden; box-shadow: 0 16px 40px rgba(10,14,74,.24); background: #101329; }
.hr-screens__mobile img { width: 100%; height: auto; }
.hr-screens figcaption { margin: 18px 0 0; font-size: 12px; line-height: 1.7; color: var(--muted); }
@media (max-width: 600px) {
  .hr-screens__images { padding: 0 0 48px 28px; }
  .hr-screens__mobile { width: 104px; border-width: 3px; border-radius: 15px; }
}
.modules { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 40px 32px; }
.modules__title { margin: 0; font-size: 18px; font-weight: 600; color: var(--navy); padding-bottom: 12px; border-bottom: 2px solid var(--navy); }
.modules__group dl { margin: 0; }
.modules__group dl > div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.modules__group dt { font-weight: 600; }
.modules__group dd { margin: 2px 0 0; color: var(--muted); font-size: 15px; }
.pricing { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 40px 64px; }
.pricing .section-head { flex: 1 1 420px; }

/* ---------- language links (TH / EN pages) ---------- */
.lang-switch a { display: inline-flex; align-items: center; font-family: var(--mono); font-size: 13px; padding: 0 10px; min-height: 32px; border-radius: 999px; color: var(--muted-2); text-decoration: none; }
.lang-switch a:hover { color: var(--navy); }
.lang-switch a[aria-current="true"] { background: var(--navy); color: #fff; }
.soon__nav { display: flex; align-items: center; gap: 18px; }
.soon__lang { color: var(--on-dark); font-family: var(--mono); font-size: 13px; text-decoration: none; border: 1px solid #343B98; border-radius: 999px; padding: 6px 12px; }
.soon__lang:hover { color: var(--gold); border-color: var(--gold); }

/* ---------- product "coming soon" pages ---------- */
.soon { min-height: 100vh; display: flex; flex-direction: column; background: var(--deep); background-image: radial-gradient(#1C2270 1px, transparent 1px); background-size: 20px 20px; color: #fff; }
.soon__header { max-width: 1200px; width: 100%; margin: 0 auto; padding: 18px 24px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.soon__header img { height: 40px; width: auto; }
.soon__back { color: var(--on-dark); text-decoration: none; font-size: 15px; min-height: 44px; display: inline-flex; align-items: center; gap: 6px; }
.soon__back:hover { color: var(--gold); }
.soon__back svg { width: 16px; height: 16px; }
.soon__main { flex: 1; display: flex; align-items: center; justify-content: center; padding: 40px 24px 64px; }
.soon__box { max-width: 760px; display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }
.soon__icon { width: 76px; height: 76px; border-radius: 22px; background: var(--gold); color: var(--deep); display: flex; align-items: center; justify-content: center; }
.soon__icon svg { width: 36px; height: 36px; }
.soon__title { margin: 0; font-size: clamp(40px, 6vw, 72px); line-height: 1.1; font-weight: 700; }
.soon__sub { font-size: clamp(24px, 3.6vw, 42px); font-weight: 600; color: var(--gold); }
.soon__text { margin: 0; font-size: 18px; color: var(--on-dark); }
.soon .chip { border-color: #343B98; font-size: 14px; padding: 5px 14px; }
.soon__footer { text-align: center; padding: 20px 24px; font-size: 13px; color: #9296C2; }

/* ---------- dark glass header on every page (17 Oct 2026, matches the web3 home page) ---------- */
.site-header { background: rgba(5, 7, 31, 0.82); border-bottom-color: rgba(255, 255, 255, 0.08); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); }
.site-header .brand__tag { color: var(--gold); border-left-color: rgba(255, 255, 255, 0.18); }
.site-header .main-nav__link { color: #C9CCEC; }
.site-header .main-nav__link:hover { color: #fff; }
.site-header .nav-menu__btn:hover, .site-header .nav-menu.is-open .nav-menu__btn { background: rgba(255, 255, 255, 0.08); color: #fff; }
.site-header .main-nav__link[aria-current="page"], .site-header .nav-menu--current .nav-menu__btn { color: #fff; }
.site-header .nav-menu__panel { background: #0D1140; border-color: rgba(255, 255, 255, 0.12); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5); }
.site-header .nav-menu__item { color: #EEF0FF; }
.site-header .nav-menu__item:hover, .site-header .nav-menu__item:focus-visible, .site-header .nav-menu__item[aria-current="page"] { background: rgba(255, 255, 255, 0.07); color: #fff; }
.site-header .nav-menu__item span { color: #A9AEDB; }
.site-header .nav-menu__ext { color: #A9AEDB; }
.site-header .pill--soon { background: rgba(255, 195, 0, 0.1); color: var(--gold); border-color: rgba(255, 195, 0, 0.35); }
.site-header .lang-switch { border-color: rgba(255, 255, 255, 0.18); }
.site-header .lang-switch a { color: #A9AEDB; }
.site-header .lang-switch a:hover { color: #fff; }
.site-header .lang-switch a[aria-current="true"] { background: var(--gold); color: var(--deep); }
.site-header .btn--primary { background: var(--gold); color: var(--deep); }
.site-header .btn--primary:hover { background: #FFD23F; color: var(--deep); }

/* The product name is already in the hero; keep the mobile header compact. */
@media (max-width: 600px) {
  .site-header .brand__tag { display: none; }
}

/* One measured header layout for every page and both languages. */
.site-header { background: #080b29; font-family: var(--font); font-size: 15px; line-height: 1.6; }
.site-header__inner { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); gap: 10px 20px; align-items: center; min-height: 66px; }
.site-header .brand { justify-self: start; gap: 14px; min-height: 44px; }
.site-header .brand img { width: 82px; height: 40px; object-fit: contain; }
.site-header .brand__tag { width: 136px; padding-left: 14px; font-size: 13px; }
.site-header .main-nav { display: grid; grid-template-columns: 100px 100px 110px 100px; gap: 10px 12px; order: initial; flex: initial; justify-self: center; }
.site-header .main-nav__link { min-height: 40px; justify-content: center; }
.site-header .nav-menu__btn { width: 100%; padding: 0 10px; }
.site-header .header-actions { justify-self: end; gap: 12px; }
.site-header .header-actions > .btn { width: 168px; min-height: 46px; padding: 0 16px; font-size: 15px; }
@media (max-width: 1180px) {
  .site-header__inner { grid-template-columns: minmax(0,1fr) auto; }
  .site-header .header-actions { grid-column: 2; grid-row: 1; }
  .site-header .main-nav { grid-column: 1 / -1; grid-row: 2; justify-self: start; }
}
@media (max-width: 600px) {
  .site-header__inner { padding: 10px 16px; column-gap: 12px; }
  .site-header .brand__tag { display: none; }
  .site-header .header-actions > .btn { width: 140px; }
  .site-header .main-nav { width: 100%; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 4px 12px; }
}
@media (max-width: 359px) {
  .site-header .brand img { width: 66px; }
  .site-header .header-actions { gap: 8px; }
  .site-header .header-actions > .btn { width: 116px; font-size: 13px; padding: 0 10px; }
}
