/* ==========================================================================
   LIGHTBOUND CO., LTD. — corporate site
   Direction: "เส้นขอบฟ้า" — cream paper, hairline rules, one rose stroke, a gold spark.
   ========================================================================== */

/* Self-hosted Noto Sans Thai variable, SIL OFL. */
@font-face { font-family: 'Noto Sans Thai'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(../fonts/noto-sans-thai-variable.woff2) format('woff2'); }

/* ---------- Design tokens ---------- */
:root {
  /* colour — from the logo: cream halo, navy wordmark, slate tagline, rose swoosh, gold star */
  --paper: #FBF8F2;
  --white: #FFFFFF;
  --mist: #F1EDE6;
  --ink: #172230;
  --ink-2: #334155;
  --slate: #5E6673;
  --line: #E3DED5;
  --line-2: #CFC8BD;
  --rose: #D9376F;
  --rose-deep: #C62D61;   /* buttons: 5.3:1 with white */
  --rose-ink: #B72759;    /* rose text on paper: 5.7:1 */
  --rose-tint: #FBE7EF;
  --rose-soft: #F2A7C3;
  --gold: #E89B2C;
  --gold-tint: #FFF3DF;
  --navy: #111A26;
  --navy-2: #182434;
  --navy-line: #2A3648;
  --navy-mist: #B8C0CC;

  /* type */
  --font: 'Noto Sans Thai', 'Sarabun', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --fs-display: clamp(2.5rem, 6.2vw, 5.1rem);
  --fs-h2: clamp(1.85rem, 3.4vw, 2.9rem);
  --fs-h3: clamp(1.3rem, 2vw, 1.7rem);
  --fs-body: 1.0625rem;      /* 17px */
  --fs-small: 0.9375rem;     /* 15px */
  --fs-label: 0.8125rem;     /* 13px */
  --lh-body: 1.7;
  --lh-tight: 1.2;

  /* space, radius, shadow */
  --gutter: clamp(20px, 4.5vw, 56px);
  --max: 1280px;
  --header-h: 72px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --shadow-1: 0 1px 0 rgba(23, 34, 48, .04), 0 12px 28px -22px rgba(23, 34, 48, .28);
  --shadow-2: 0 2px 0 rgba(23, 34, 48, .04), 0 30px 60px -36px rgba(23, 34, 48, .38);
  --ease-out: cubic-bezier(.2, .7, .1, 1);
  --ease-spring: linear(0, .32 10%, .62 20%, .86 30%, 1.02 40%, 1.06 50%, 1.03 62%, 1 75%, .995 88%, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font); font-size: var(--fs-body); line-height: var(--lh-body); font-weight: 400;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
  font-variant-numeric: tabular-nums;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, address { margin: 0; padding: 0; }
ul, ol { list-style: none; }
address { font-style: normal; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--rose); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--rose); color: #fff; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: var(--r-sm); font-size: 14px; }
.skip:focus { top: 12px; }
.nowrap { white-space: nowrap; }

.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin-inline: auto;
  padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right)); }

/* ---------- Type roles ---------- */
.display { font-size: var(--fs-display); line-height: 1.16; font-weight: 500; letter-spacing: -.02em; text-wrap: balance; }
.h2 { font-size: var(--fs-h2); line-height: 1.26; font-weight: 500; letter-spacing: -.015em; text-wrap: balance; max-width: 24ch; }
.h3 { font-size: var(--fs-h3); line-height: 1.3; font-weight: 500; letter-spacing: -.01em; }
.lead { font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.65; color: var(--ink-2); }
.small { font-size: var(--fs-small); }
.label { font-size: var(--fs-label); font-weight: 500; letter-spacing: .02em; color: var(--slate); }
.muted { color: var(--slate); }

/* ---------- Buttons: 10px radius, 1px line, rose primary; press .98, hover lifts 2px ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding: 0 22px; border-radius: 10px;
  font-size: var(--fs-small); font-weight: 500; white-space: nowrap; border: 1px solid var(--line-2); color: var(--ink);
  transition: transform .22s var(--ease-out), background .2s, border-color .2s, color .2s, box-shadow .22s;
}
.btn:hover { transform: translateY(-2px); border-color: var(--ink); }
.btn:active { transform: translateY(0) scale(.98); transition-duration: .08s; }
.btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.btn-primary { background: var(--rose-deep); border-color: var(--rose-deep); color: #fff; box-shadow: 0 8px 20px -12px rgba(198, 45, 97, .6); }
.btn-primary:hover { background: var(--rose-ink); border-color: var(--rose-ink); box-shadow: 0 12px 24px -12px rgba(198, 45, 97, .7); }
.btn-ink { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn-ink:hover { background: #0E1620; border-color: #0E1620; }
.btn-paper { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.btn-paper:hover { background: #fff; border-color: #fff; }
.btn-sm { height: 40px; padding: 0 16px; font-size: 14px; }
.btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }

.link { color: var(--ink); border-bottom: 1px solid var(--line-2); transition: color .2s, border-color .2s; padding-bottom: 1px; }
.link:hover { color: var(--rose-ink); border-color: var(--rose-ink); }
.link-ext { display: inline-flex; align-items: center; gap: 4px; }
.link-ext svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60; padding-top: env(safe-area-inset-top);
  background: rgba(251, 248, 242, .78); -webkit-backdrop-filter: saturate(150%) blur(14px); backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.logo { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.logo .mark { height: 36px; width: auto; }
.logo .word { height: 13px; width: auto; }
.nav ul { display: flex; gap: clamp(18px, 2.6vw, 36px); }
.nav a { position: relative; font-size: var(--fs-small); color: var(--ink-2); padding: 8px 0; transition: color .2s; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: var(--rose); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease-out); }
.nav a:hover, .nav a[aria-current="true"] { color: var(--ink); }
.nav a:hover::after, .nav a[aria-current="true"]::after { transform: scaleX(1); }
.header-tools { display: flex; align-items: center; gap: 12px; }
.lang { display: inline-flex; padding: 3px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 12px; letter-spacing: .06em; font-weight: 500; }
.lang button { padding: 4px 10px; border-radius: 999px; color: var(--slate); transition: background .2s, color .2s; }
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.lang button:not([aria-pressed="true"]):hover { color: var(--ink); }
.menu-btn { display: none; width: 44px; height: 44px; position: relative; border-radius: var(--r-sm); }
.menu-btn span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--ink); transition: transform .3s var(--ease-out), top .3s var(--ease-out); }
.menu-btn span:first-child { top: 17px; } .menu-btn span:last-child { top: 26px; }
.menu-btn[aria-expanded="true"] span:first-child { top: 21.5px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { top: 21.5px; transform: rotate(-45deg); }

@media (max-width: 960px) {
  .header-cta { display: none; }
  .menu-btn { display: block; }
  .nav { position: fixed; inset: calc(var(--header-h) + env(safe-area-inset-top)) 0 auto 0; background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 6px var(--gutter) 24px; transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .25s var(--ease-out), transform .25s var(--ease-out), visibility 0s .25s; box-shadow: var(--shadow-2); }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; transition-delay: 0s; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav a { display: block; font-size: 20px; font-weight: 500; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav a::after { display: none; }
  .nav .nav-cta { margin-top: 16px; }
  .nav .nav-cta a.btn { display: inline-flex; width: 100%; justify-content: center; padding: 0 22px; border-bottom: 0; font-size: 16px; }
}
@media (min-width: 961px) { .nav .nav-cta { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-top: clamp(32px, 5vh, 56px); }
.hero-text { position: relative; z-index: 1; }
.hero h1 { max-width: 20ch; }
.hero h1 .sw { position: relative; white-space: nowrap; }
.hero h1 .sw svg { position: absolute; left: -2%; width: 104%; bottom: -.1em; height: .3em; overflow: visible; }
.hero h1 .sw path { stroke-dasharray: 1; stroke-dashoffset: 0; }
.hero-foot { display: grid; grid-template-columns: minmax(0, 640px) 1fr; gap: 24px; margin-top: clamp(18px, 2.4vw, 28px); align-items: end; }
.hero .lead { max-width: 36ch; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }

.strip { position: relative; z-index: 2; margin-top: clamp(28px, 3.6vw, 44px); padding-bottom: 28px; }
.strip-glow { position: absolute; left: -10%; right: -10%; top: -40px; height: 360px; pointer-events: none; z-index: 0;
  background: radial-gradient(60% 70% at 30% 60%, rgba(242, 167, 195, .35), transparent 70%), radial-gradient(45% 60% at 80% 40%, rgba(232, 155, 44, .22), transparent 70%);
  filter: blur(30px); opacity: .9; }
.strip-arc { position: absolute; left: 0; right: 0; top: 0; width: 100%; height: 118px; z-index: 0; }
.strip-arc path { fill: none; stroke: rgba(23, 34, 48, .38); stroke-width: 1.25; vector-effect: non-scaling-stroke; }
.strip-arc .spark { fill: var(--gold); }
.strip-row { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; padding-top: 48px; }
.strip-caption { position: relative; z-index: 1; margin-top: 12px; font-size: var(--fs-label); color: var(--slate); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.strip-caption a { color: var(--ink); }

/* compact vignettes (hero) */
.vg { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px 16px 12px; box-shadow: var(--shadow-1);
  font-size: 12.5px; line-height: 1.5; color: var(--ink-2); min-height: 188px; display: flex; flex-direction: column; }
.vg .vg-t { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: var(--ink); margin-bottom: 8px; }
.vg .vg-t i { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); flex: none; }
.vg .big { font-size: 21px; font-weight: 500; color: var(--ink); line-height: 1.2; letter-spacing: -.01em; }
.vg .row { display: flex; justify-content: space-between; gap: 8px; padding: 5px 0; border-top: 1px solid var(--line); }
.vg .row:first-of-type { margin-top: auto; }
.vg .ok { color: var(--rose-ink); font-weight: 500; }
.vg .bar { height: 5px; border-radius: 3px; background: var(--mist); margin: 8px 0 6px; overflow: hidden; }
.vg .bar b { display: block; height: 100%; background: var(--ink); border-radius: 3px; width: var(--w, 50%); }
.vg .map { position: relative; height: 84px; border-radius: var(--r-sm); margin: 4px 0 6px; background:
  linear-gradient(90deg, transparent 49%, var(--line) 49% 51%, transparent 51%) 0 0 / 36px 36px,
  linear-gradient(0deg, transparent 49%, var(--line) 49% 51%, transparent 51%) 0 0 / 36px 36px, var(--mist); overflow: hidden; }
.vg .map i { position: absolute; width: 9px; height: 9px; border-radius: 50%; background: var(--rose); box-shadow: 0 0 0 4px rgba(217, 55, 111, .16); left: var(--x); top: var(--y); }
.vg .map em { position: absolute; left: 12px; top: 58px; width: 150px; height: 1.5px; background: var(--ink); transform: rotate(-20deg); transform-origin: left; }
.vg .name { margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--line); font-size: 13px; color: var(--slate); }
.vg .name b { color: var(--ink); font-weight: 500; }

@media (max-width: 1100px) { .strip-row { grid-template-columns: repeat(5, 236px); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); }
  .strip-row::-webkit-scrollbar { display: none; } .strip-row > * { scroll-snap-align: start; } }
@media (max-width: 760px) {
  .hero { padding-top: 32px; min-height: 0; }
  .hero h1 { font-size: clamp(2.1rem, 9.4vw, 2.6rem); }
  .hero-foot { grid-template-columns: 1fr; }
  .hero h1 .sw svg { bottom: -.06em; }
  .strip { margin-top: 36px; }
  .strip-row { padding-top: 40px; }
  .strip-arc { height: 90px; }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(72px, 9vw, 128px) 0; }
.section-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 20px; align-items: start; }
.section-head .kicker { grid-column: 1 / span 3; padding-top: 10px; border-top: 1px solid var(--ink); font-size: var(--fs-small); color: var(--ink); display: flex; gap: 12px; align-items: baseline; }
.section-head .kicker i { width: 7px; height: 7px; border-radius: 50%; background: var(--rose); display: inline-block; flex: none; }
.section-head .kicker span { display: block; }
.section-head .head-main { grid-column: 5 / span 8; }
.section-head .lead { margin-top: 20px; max-width: 58ch; }
@media (max-width: 900px) { .section-head .kicker { grid-column: 1 / -1; } .section-head .head-main { grid-column: 1 / -1; } }

/* ---------- Value (2×2, thin rules, small line glyphs) ---------- */
.value-grid { margin-top: clamp(44px, 6vw, 80px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.value { padding: 32px 36px 40px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 44px 1fr; column-gap: 20px; align-items: start; }
.value .glyph { width: 44px; height: 44px; border-radius: 12px; background: var(--white); border: 1px solid var(--line); display: grid; place-items: center; }
.value .glyph svg { width: 24px; height: 24px; fill: none; stroke: var(--ink); stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; }
.value .glyph svg .acc { stroke: var(--rose); }
.value .glyph svg .dot { fill: var(--gold); stroke: none; }
.value h3 { font-size: 1.25rem; line-height: 1.3; font-weight: 500; letter-spacing: -.005em; }
.value p { margin-top: 10px; color: var(--ink-2); font-size: var(--fs-small); line-height: 1.7; }
.value .ex { margin-top: 12px; font-size: var(--fs-label); color: var(--slate); line-height: 1.65; }
.value .ex b { color: var(--rose-ink); font-weight: 500; margin-right: 6px; }
@media (max-width: 760px) { .value-grid { grid-template-columns: 1fr; } .value { padding: 26px 22px 30px; grid-template-columns: 40px 1fr; column-gap: 16px; } }

/* ---------- Solutions: sticky visual + chapters ---------- */
.solutions-layout { margin-top: clamp(44px, 6vw, 80px); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: clamp(32px, 5vw, 80px); align-items: start; }
.showcase { position: sticky; top: calc(var(--header-h) + 28px); }
.showcase-stage { position: relative; height: 560px; }
.showcase-stage .shot-card { width: 100%; }
.showcase-stage .shot { position: absolute; inset: 0; display: flex; align-items: center; opacity: 0; visibility: hidden; transform: translateY(24px); transition: opacity .45s var(--ease-out), transform .55s var(--ease-out), visibility 0s .45s; }
.showcase-stage .shot.is-active { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.showcase-stage .shot.is-leaving { opacity: 0; visibility: hidden; transform: translateY(-16px); transition-duration: .22s, .3s, 0s; transition-delay: 0s, 0s, .22s; }
.showcase-rail { display: flex; gap: 8px; margin-top: 18px; align-items: center; }
.showcase-rail button { position: relative; height: 28px; padding: 0 10px; border-radius: 999px; font-size: var(--fs-label); font-weight: 500; color: var(--slate); border: 1px solid transparent; transition: color .2s, border-color .2s, background .2s; }
.showcase-rail button[aria-current="true"] { color: var(--ink); border-color: var(--line-2); background: var(--white); }
.showcase-rail button:hover { color: var(--ink); }
.showcase-caption { margin-top: 10px; font-size: var(--fs-label); color: var(--slate); }

/* large product vignettes */
.shot-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-2); padding: 22px 24px; display: flex; flex-direction: column; gap: 14px; font-size: 13.5px; line-height: 1.5; color: var(--ink-2); overflow: hidden; }
.shot-card .sc-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.shot-card .sc-top .app { font-weight: 500; color: var(--ink); font-size: 14px; display: flex; align-items: center; gap: 8px; }
.shot-card .sc-top .app i { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.shot-card .sc-top .date { font-size: 12.5px; color: var(--slate); }
.shot-card .kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.shot-card .kpi { padding: 12px 14px; background: var(--paper); border-radius: var(--r-sm); }
.shot-card .kpi small { display: block; font-size: 12px; color: var(--slate); }
.shot-card .kpi b { display: block; font-size: 20px; font-weight: 500; color: var(--ink); line-height: 1.25; letter-spacing: -.01em; margin-top: 2px; }
.shot-card .kpi.hl b { color: var(--rose-ink); }
.shot-card .list { border-top: 1px solid var(--line); }
.shot-card .list > div { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); align-items: center; }
.shot-card .list > div span:first-child { color: var(--ink); }
.shot-card .list small { display: block; font-size: 12px; color: var(--slate); }
.shot-card .tag { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 500; color: var(--ink-2); background: var(--mist); white-space: nowrap; }
.shot-card .tag.ok { color: var(--rose-ink); background: var(--rose-tint); }
.shot-card .tag.gold { color: #7A4600; background: var(--gold-tint); }
.shot-card .tag i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.shot-card .bars { display: flex; gap: 8px; align-items: flex-end; height: 72px; padding-top: 4px; }
.shot-card .bars b { flex: 1; background: var(--mist); border-radius: 4px 4px 0 0; height: var(--h, 40%); }
.shot-card .bars b.h { background: var(--ink); }
.shot-card .bars b.r { background: var(--rose); }
.shot-card .map { position: relative; height: 190px; border-radius: var(--r-md); overflow: hidden; background:
  linear-gradient(90deg, transparent 49.4%, var(--line) 49.4% 50.6%, transparent 50.6%) 0 0 / 48px 48px,
  linear-gradient(0deg, transparent 49.4%, var(--line) 49.4% 50.6%, transparent 50.6%) 0 0 / 48px 48px, var(--mist); }
.shot-card .map .road { position: absolute; left: 6%; top: 70%; width: 110%; height: 2px; background: var(--ink); transform: rotate(-22deg); transform-origin: left; opacity: .8; }
.shot-card .map .road.r2 { top: 30%; left: 20%; width: 60%; transform: rotate(28deg); opacity: .45; }
.shot-card .map .pin { position: absolute; width: 11px; height: 11px; border-radius: 50%; background: var(--rose); box-shadow: 0 0 0 5px rgba(217, 55, 111, .16); left: var(--x); top: var(--y); }
.shot-card .map .pin.gold { background: var(--gold); box-shadow: 0 0 0 5px rgba(232, 155, 44, .2); }
.shot-card .map .lbl { position: absolute; left: var(--x); top: var(--y); font-size: 11.5px; background: var(--white); border: 1px solid var(--line); padding: 2px 7px; border-radius: 6px; color: var(--ink); white-space: nowrap; }
.shot-card .queue { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.shot-card .queue div { padding: 10px; border-radius: var(--r-sm); background: var(--paper); text-align: center; }
.shot-card .queue b { display: block; font-size: 18px; color: var(--ink); font-weight: 500; }
.shot-card .queue small { font-size: 11.5px; color: var(--slate); }
.shot-card .queue .now { background: var(--ink); color: var(--paper); } .shot-card .queue .now b, .shot-card .queue .now small { color: var(--paper); }
.shot-card .passport { display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: start; }
.shot-card .passport .qr { width: 96px; height: 96px; border-radius: var(--r-sm); background:
  repeating-linear-gradient(90deg, var(--ink) 0 6px, transparent 6px 12px) 0 0 / 100% 30%, repeating-linear-gradient(0deg, var(--ink) 0 6px, transparent 6px 12px) 0 0 / 30% 100%, var(--mist); opacity: .8; }
.shot-card .passport h4 { font-size: 20px; font-weight: 500; color: var(--ink); line-height: 1.2; }
.shot-card .tree { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; margin-top: 6px; font-size: 12.5px; }
.shot-card .tree span { color: var(--slate); } .shot-card .tree b { font-weight: 500; color: var(--ink); }
.shot-card .lanes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.shot-card .lane { background: var(--paper); border-radius: var(--r-sm); padding: 10px; display: flex; flex-direction: column; gap: 6px; }
.shot-card .lane h5 { margin: 0 0 2px; font-size: 12.5px; font-weight: 500; color: var(--ink); display: flex; justify-content: space-between; }
.shot-card .lane h5 small { color: var(--slate); font-weight: 400; }
.shot-card .job { background: var(--white); border: 1px solid var(--line); border-radius: 6px; padding: 6px 8px; font-size: 12px; color: var(--ink); line-height: 1.35; }
.shot-card .job small { display: block; color: var(--slate); font-size: 11.5px; }
.shot-card .job.done { border-color: var(--rose-tint); background: var(--rose-tint); }
.shot-card .foot { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; font-size: 12.5px; color: var(--slate); flex-wrap: wrap; }
.shot-card .foot b { color: var(--ink); font-weight: 500; }

/* chapters (text column) */
.chapters { display: flex; flex-direction: column; }
.chapter { padding: clamp(28px, 4vw, 44px) 0 clamp(44px, 6vw, 72px); border-top: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 20px); }
.chapter:first-child { border-top: 0; padding-top: 0; }
.chapter-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 16px; }
.chapter-head h3 { font-size: clamp(1.9rem, 3vw, 2.5rem); font-weight: 500; letter-spacing: -.02em; line-height: 1.15; }
.chapter-head .en { font-size: var(--fs-small); color: var(--slate); letter-spacing: .04em; }
.chapter .type { margin-top: 8px; color: var(--ink-2); font-size: var(--fs-small); }
.status { display: inline-flex; align-items: center; gap: 8px; height: 28px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2); font-size: var(--fs-label); font-weight: 500; color: var(--slate); background: var(--white); white-space: nowrap; }
.status i { width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid var(--slate); }
.status-live { border-color: rgba(232, 155, 44, .5); color: #7A4600; background: var(--gold-tint); }
.status-live i { border: 0; background: var(--gold); box-shadow: 0 0 0 3px rgba(232, 155, 44, .22); }
.status-pilot { border-color: rgba(217, 55, 111, .35); color: var(--rose-ink); background: var(--rose-tint); }
.status-pilot i { border-color: var(--rose); }
.chapter .meta { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; }
.chapter dl { margin-top: 26px; display: grid; grid-template-columns: 1fr; gap: 18px; }
.chapter dt { font-size: var(--fs-label); font-weight: 500; color: var(--slate); letter-spacing: .02em; }
.chapter dd { margin-top: 4px; color: var(--ink-2); font-size: var(--fs-small); line-height: 1.7; }
.chapter .feat { margin-top: 26px; }
.chapter .feat dt { margin-bottom: 8px; }
.chapter .feat li { position: relative; padding: 10px 0 10px 28px; border-top: 1px solid var(--line); font-size: var(--fs-small); color: var(--ink); line-height: 1.6; }
.chapter .feat li:last-child { border-bottom: 1px solid var(--line); }
.chapter .feat li::before { content: ""; position: absolute; left: 4px; top: 19px; width: 12px; height: 7px; border-left: 1.5px solid var(--rose); border-bottom: 1.5px solid var(--rose); transform: rotate(-45deg); }
.chapter .gain { margin-top: 24px; padding: 16px 20px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; font-size: var(--fs-small); color: var(--ink-2); }
.chapter .gain svg { width: 22px; height: 22px; fill: none; stroke: var(--gold); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; margin-top: 3px; }
.chapter .gain b { color: var(--ink); font-weight: 500; display: block; margin-bottom: 2px; }
.chapter .actions { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; }

@media (max-width: 1023px) {
  .solutions-layout { grid-template-columns: 1fr; }
  .showcase { display: none; }
  .chapter .mobile-shot { display: block; margin-top: 22px; }
  .chapter .mobile-shot .shot-card { height: auto; min-height: 0; box-shadow: var(--shadow-1); }
  .chapter .mobile-shot .shot-card .map { min-height: 150px; }
  .chapter .mobile-shot figcaption { margin-top: 8px; font-size: var(--fs-label); color: var(--slate); }
}
@media (max-width: 560px) { .shot-card { padding: 16px; } .shot-card .kpis { grid-template-columns: repeat(2, 1fr); } .shot-card .lanes { grid-template-columns: 1fr 1fr; } .shot-card .lanes .lane:nth-child(3) { display: none; } }

/* ---------- About ---------- */
.about-grid { margin-top: clamp(44px, 6vw, 80px); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; border-top: 1px solid var(--line); }
.about-grid .principle { grid-column: span 4; }
.principle { padding: 30px 0 36px; position: relative; }
.principle + .principle::before { content: ""; position: absolute; left: -12px; top: 30px; bottom: 36px; width: 1px; background: var(--line); }
.principle .n { font-size: var(--fs-label); font-weight: 500; color: var(--rose-ink); letter-spacing: .04em; }
.principle h3 { margin-top: 28px; font-size: 1.3rem; line-height: 1.32; font-weight: 500; letter-spacing: -.005em; }
.principle p { margin-top: 10px; color: var(--ink-2); font-size: var(--fs-small); }
.about-band { margin-top: clamp(40px, 5vw, 64px); padding: 28px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; grid-template-columns: auto 1fr auto; gap: 24px 40px; align-items: center; }
.about-band .logo-full { width: clamp(160px, 18vw, 220px); }
.about-band p { color: var(--ink-2); font-size: var(--fs-small); max-width: 52ch; }
.about-band .tagline { font-size: var(--fs-label); letter-spacing: .14em; text-transform: uppercase; color: var(--slate); white-space: nowrap; }
.about-band .tagline i { color: var(--rose); font-style: normal; }
@media (max-width: 900px) { .about-grid .principle { grid-column: 1 / -1; } .principle, .principle + .principle { padding: 24px 0 28px; border-bottom: 1px solid var(--line); } .principle + .principle::before { display: none; } .principle:last-child { border-bottom: 0; } .principle h3 { margin-top: 14px; } }

/* ---------- Contact (dark) ---------- */
.contact { margin-top: clamp(64px, 8vw, 112px); background: var(--navy); color: var(--paper); padding-block: clamp(72px, 9vw, 128px) clamp(56px, 7vw, 96px); position: relative; overflow: hidden; }
.contact .section-head .kicker { border-top-color: var(--paper); color: var(--paper); }
.contact .section-head .kicker i { background: var(--gold); }
.contact .lead { color: var(--navy-mist); }
.contact-grid { margin-top: clamp(40px, 5vw, 64px); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: clamp(32px, 5vw, 80px); row-gap: 40px; align-items: start; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; order: 2; }
.contact-direct { order: 1; }
.form .full { grid-column: 1 / -1; }
.field label { display: block; font-size: var(--fs-label); font-weight: 500; color: var(--navy-mist); margin-bottom: 6px; }
.field label .req { color: var(--rose-soft); }
.field input, .field select, .field textarea { width: 100%; height: 48px; padding: 0 14px; border-radius: 10px; background: var(--navy-2); border: 1px solid var(--navy-line); color: var(--paper); transition: border-color .2s, box-shadow .2s; }
.field textarea { height: auto; min-height: 120px; padding: 12px 14px; resize: vertical; line-height: 1.6; }
.field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none' stroke='%23B8C0CC' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><path d='M4 6l4 4 4-4'/></svg>"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }
.field input::placeholder, .field textarea::placeholder { color: #6E7888; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--rose-soft); box-shadow: 0 0 0 3px rgba(242, 167, 195, .18); }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: var(--rose); }
.field .err { display: none; margin-top: 6px; font-size: var(--fs-label); color: var(--rose-soft); }
.field.is-invalid .err { display: block; }
.form-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: center; margin-top: 4px; }
.form-note { font-size: var(--fs-label); color: var(--navy-mist); max-width: 46ch; line-height: 1.6; }
.form-result { grid-column: 1 / -1; display: none; padding: 14px 16px; border-radius: 10px; background: var(--navy-2); border: 1px solid var(--navy-line); font-size: var(--fs-small); color: var(--paper); line-height: 1.6; }
.form-result.is-shown { display: block; }
.form-result a { color: var(--rose-soft); border-bottom: 1px solid rgba(242, 167, 195, .4); }
.contact-direct { border-top: 1px solid var(--navy-line); align-self: start; }
.contact-direct > div { padding: 18px 0; border-bottom: 1px solid var(--navy-line); display: grid; grid-template-columns: minmax(120px, 1fr) minmax(0, 2fr); gap: 6px 20px; }
.contact-direct dt { font-size: var(--fs-label); color: var(--navy-mist); padding-top: 3px; }
.contact-direct dd { font-size: var(--fs-small); line-height: 1.65; }
.contact-direct strong { font-weight: 500; }
.contact-direct a { border-bottom: 1px solid rgba(255, 255, 255, .25); transition: color .2s, border-color .2s; }
.contact-direct a:hover { color: var(--rose-soft); border-color: var(--rose-soft); }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .form { grid-template-columns: 1fr; } .contact-direct > div { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--mist); padding-top: clamp(56px, 7vw, 88px); font-size: var(--fs-small); color: var(--ink-2); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: clamp(32px, 5vw, 80px); row-gap: 40px; }
.footer-cols { display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 32px 24px; }
.footer-brand .logo-full { width: 200px; }
.footer-brand p { margin-top: 18px; max-width: 34ch; color: var(--ink-2); font-size: var(--fs-small); }
.f-head { font-weight: 500; color: var(--ink); margin-bottom: 10px; }
.f-links li + li { margin-top: 6px; }
.f-links a { color: var(--ink-2); transition: color .2s; }
.f-links a:hover { color: var(--rose-ink); }
.f-links .muted { color: var(--slate); font-size: var(--fs-label); }
.site-footer address { color: var(--slate); line-height: 1.6; max-width: 36ch; }
.footer-base { margin-top: clamp(44px, 6vw, 72px); padding-block: 22px calc(22px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line-2); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: var(--fs-label); color: var(--slate); }
.footer-base a:hover { color: var(--ink); }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .footer-cols { grid-template-columns: 1fr; } }

/* ---------- Legal / 404 pages ---------- */
.legal { padding-block: clamp(56px, 9vw, 112px) clamp(88px, 12vw, 140px); }
.legal .h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); line-height: 1.12; font-weight: 500; letter-spacing: -.02em; }
.legal .updated { margin-top: 14px; font-size: var(--fs-label); color: var(--slate); letter-spacing: .02em; }
.prose { margin-top: clamp(36px, 5vw, 56px); max-width: 70ch; color: var(--ink-2); }
.prose h2 { margin-top: 40px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 1.25rem; font-weight: 500; color: var(--ink); }
.prose p, .prose ul { margin-top: 12px; }
.prose li { position: relative; padding-left: 20px; margin-top: 6px; }
.prose li::before { content: ""; position: absolute; left: 2px; top: .8em; width: 8px; height: 1px; background: var(--ink-2); }
.prose a { color: var(--rose-ink); border-bottom: 1px solid rgba(183, 39, 89, .3); }
.back { display: inline-flex; gap: 8px; align-items: center; font-size: var(--fs-small); color: var(--slate); margin-bottom: 28px; }
.back:hover { color: var(--ink); }
.legal-actions { margin-top: 36px; }

/* ---------- Motion: entrances are set by JS (GSAP). Static fallbacks keep everything visible. ---------- */
.js .reveal { opacity: 0; }
.js .reveal.is-in { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none !important; }
  .btn, .nav a, .showcase-stage .shot { transition: none !important; }
}

/* ---------- Static positions/sizes for mock data (no inline styles: strict CSP) ---------- */
.vg .bar .w68 { width: 68%; }
.vg .map .pa { --x: 34px; --y: 26px; }
.vg .map .pb { --x: 118px; --y: 50px; }
.shot-card .bars .h34 { --h: 34%; } .shot-card .bars .h48 { --h: 48%; } .shot-card .bars .h41 { --h: 41%; }
.shot-card .bars .h62 { --h: 62%; } .shot-card .bars .h55 { --h: 55%; } .shot-card .bars .h84 { --h: 84%; }
.shot-card .map .p1 { --x: 22%; --y: 58%; } .shot-card .map .l1 { --x: 26%; --y: 42%; }
.shot-card .map .p2 { --x: 64%; --y: 34%; } .shot-card .map .l2 { --x: 56%; --y: 16%; }
.shot-card .map .p3 { --x: 82%; --y: 70%; }
.f-links.f-legal { margin-top: 10px; }
.chapter .feat .label { margin-bottom: 8px; }
/* JS present + desktop: the chapter copies move into the sticky stage; without JS they stay inline */
@media (min-width: 1024px) { .js .chapter .mobile-shot { display: none; } html:not(.js) .showcase { display: none; } }
.showcase-stage.is-still .shot { transition: none; }
.btn.is-pressed { transform: scale(.98); }
@media (max-width: 480px) {
  .header-inner { gap: 10px; }
  .logo { gap: 8px; }
  .logo .mark { height: 32px; }
  .logo .word { height: 10px; }
  .lang button { padding: 4px 8px; }
  .menu-btn { width: 40px; }
  .menu-btn span { left: 10px; right: 10px; }
}

/* ---------- Header over the dark contact section ---------- */
.site-header .word-light { display: none; }
.site-header.is-dark { background: rgba(17, 26, 38, .8); border-bottom-color: var(--navy-line); }
.site-header.is-dark .word { display: none; }
.site-header.is-dark .word-light { display: block; }
.site-header.is-dark .nav a { color: var(--navy-mist); }
.site-header.is-dark .nav a:hover, .site-header.is-dark .nav a[aria-current="true"] { color: var(--paper); }
.site-header.is-dark .lang { border-color: var(--navy-line); }
.site-header.is-dark .lang button { color: var(--navy-mist); }
.site-header.is-dark .lang button[aria-pressed="true"] { background: var(--paper); color: var(--navy); }
.site-header.is-dark .menu-btn span { background: var(--paper); }
@media (max-width: 960px) { .site-header.is-dark .nav { background: var(--navy); border-bottom-color: var(--navy-line); } .site-header.is-dark .nav a { border-bottom-color: var(--navy-line); } }

/* ---------- Section-head variants (R2: vary the composition) ---------- */
.section-head--split .kicker { grid-column: 1 / -1; }
.section-head--split .h2 { grid-column: 1 / span 7; max-width: 18ch; }
.section-head--split .head-side { grid-column: 8 / span 5; align-self: end; }
.section-head--split .head-side .lead { margin-top: 0; max-width: 40ch; font-size: var(--fs-body); }
.section-head--statement .kicker { grid-column: 1 / -1; }
.section-head--statement .h2 { grid-column: 1 / span 8; max-width: 22ch; font-size: clamp(2rem, 4vw, 3.4rem); }
.section-head--statement .head-side { grid-column: 5 / span 8; }
.section-head--statement .head-side .lead { margin-top: 8px; }
@media (max-width: 900px) { .section-head--split .h2, .section-head--split .head-side, .section-head--statement .h2, .section-head--statement .head-side { grid-column: 1 / -1; } .section-head--split .head-side .lead { margin-top: 8px; } }

/* hero → value: the strip rises during the pin, the next section takes the vacated room */
@media (min-width: 1024px) and (prefers-reduced-motion: no-preference) { .js #value { margin-top: -120px; } }

/* ---------- Mock chart details ---------- */
.shot-card .chart .bars { height: 78px; align-items: flex-end; }
.shot-card .chart .bars b { position: relative; border-radius: 4px 4px 2px 2px; }
.shot-card .chart .bars b i { position: absolute; left: 50%; top: -18px; transform: translateX(-50%); font-size: 11px; font-style: normal; color: var(--rose-ink); font-weight: 500; white-space: nowrap; }
.shot-card .chart .axis { display: flex; gap: 8px; margin-top: 6px; }
.shot-card .chart .axis span { flex: 1; text-align: center; font-size: 11px; color: var(--slate); }
.shot-card .passport .qr { width: 96px; height: 96px; border-radius: 6px; border: 1px solid var(--line); }
.shot-card .map .roads { position: absolute; inset: 0; width: 100%; height: 100%; }
.shot-card .map .roads .blocks rect { fill: #E7E2D9; }
.shot-card .map .roads .river { fill: none; stroke: #D8E3EA; stroke-width: 7; }
.shot-card .map .roads .road { fill: none; stroke-linecap: round; }
.shot-card .map .roads .road.minor { stroke: #fff; stroke-width: 3; }
.shot-card .map .roads .road.major { stroke: #fff; stroke-width: 7; }
.shot-card .map .roads .road.major { filter: drop-shadow(0 0 0 #CFC8BD); }
.shot-card .map .roads .road.major { stroke: #F7F4EE; }
.shot-card .map .roads .road.minor { stroke: #F7F4EE; }

/* ==========================================================================
   Loading screen (home). Shown only when JS runs; hidden by html.is-loaded.
   Fail-safe: CSS hides it after 6 s even if JS never finishes.
   ========================================================================== */
.lb-loader { display: none; }
.js .lb-loader {
  position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center;
  background: radial-gradient(60% 55% at 50% 44%, #ffffff 0%, #fff6f9 58%, #fbe9f0 100%);
  transition: opacity .7s cubic-bezier(.4, 0, .2, 1), visibility 0s linear .7s;
  animation: lbLoaderFailsafe .5s ease 6s forwards;
}
.lb-loader-inner { display: flex; flex-direction: column; align-items: center; gap: 18px; transition: transform .8s cubic-bezier(.2, .7, .1, 1); }
.lb-loader-mark { position: relative; width: 132px; animation: lbMarkIn .9s cubic-bezier(.2, .7, .1, 1) both; }
.lb-loader-mark img { position: relative; display: block; width: 100%; height: auto; }
/* warm glow sitting on the logo's star (69.9% / 36.8% of the mark) */
.lb-loader-glow {
  position: absolute; left: 69.9%; top: 36.8%; width: 92px; height: 92px; margin: -46px 0 0 -46px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 214, 140, .85) 0%, rgba(255, 196, 110, .35) 38%, rgba(255, 196, 110, 0) 70%);
  animation: lbGlow 1.6s ease-in-out .3s infinite alternate;
}
.lb-loader-word { width: 150px; height: auto; opacity: 0; animation: lbFadeUp .7s cubic-bezier(.2, .7, .1, 1) .25s forwards; }
.lb-loader-bar { position: relative; width: 132px; height: 2px; margin-top: 6px; border-radius: 2px; overflow: hidden; background: rgba(202, 50, 102, .14); opacity: 0; animation: lbFadeUp .6s ease .4s forwards; }
.lb-loader-bar i { position: absolute; inset: 0; width: 45%; border-radius: 2px; background: linear-gradient(90deg, rgba(202, 50, 102, 0), #ca3266 45%, #e89b2c); animation: lbSweep 1.15s cubic-bezier(.65, 0, .35, 1) infinite; }

/* finished: bar fills, everything lifts away */
html.is-loaded .lb-loader { opacity: 0; visibility: hidden; pointer-events: none; }
html.is-loaded .lb-loader-inner { transform: translateY(-14px) scale(.98); }
html.is-loaded .lb-loader-bar i { animation: none; width: 100%; transform: none; transition: width .35s ease; background: linear-gradient(90deg, #ca3266, #e89b2c); }

/* hero text rises in right after the loader leaves */
html.is-loaded .business-hero-content > * { animation: lbFadeUp .9s cubic-bezier(.2, .7, .1, 1) both; }
html.is-loaded .business-hero-content > :nth-child(1) { animation-delay: .15s; }
html.is-loaded .business-hero-content > :nth-child(2) { animation-delay: .25s; }
html.is-loaded .business-hero-content > :nth-child(3) { animation-delay: .35s; }
html.is-loaded .business-hero-content > :nth-child(4) { animation-delay: .45s; }

@keyframes lbMarkIn { from { opacity: 0; transform: scale(.9) translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes lbFadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes lbGlow { from { opacity: .45; transform: scale(.7); } to { opacity: 1; transform: scale(1.15); } }
@keyframes lbSweep { from { transform: translateX(-110%); } to { transform: translateX(240%); } }
@keyframes lbLoaderFailsafe { to { opacity: 0; visibility: hidden; pointer-events: none; } }

@media (prefers-reduced-motion: reduce) {
  .lb-loader-mark, .lb-loader-word, .lb-loader-bar { animation: none; opacity: 1; }
  .lb-loader-glow, .lb-loader-bar i { animation: none; }
  .lb-loader-bar i { width: 100%; }
  .js .lb-loader { transition-duration: .2s, 0s; transition-delay: 0s, .2s; }
  html.is-loaded .lb-loader-inner { transform: none; }
  html.is-loaded .business-hero-content > * { animation: none; }
}
