/* ==========================================================================
   Phuket Property Care — round 3
   Two voices (Fraunces display / Plus Jakarta Sans text), one motion scale,
   one spacing scale, sheets authored at a fixed A4 canvas and scaled.
   ========================================================================== */

/* --- self-hosted variable subsets --------------------------------------- */
@font-face {
  font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 200 800;
  font-display: swap; src: url(/assets/fonts/pjs-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Fraunces"; font-style: normal; font-weight: 100 900;
  font-display: swap; src: url(/assets/fonts/fraunces-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Plus Jakarta Sans carries no ฿ (U+0E3F). Scoping Noto Sans Thai to that one
   codepoint means the file is fetched only on pages that show a price. */
@font-face {
  font-family: "Baht"; font-style: normal; font-weight: 200 800;
  font-display: swap; src: url(/assets/fonts/notothai-thai.woff2) format("woff2");
  unicode-range: U+0E3F;
}
@font-face {
  font-family: "Noto Sans Thai"; font-style: normal; font-weight: 200 800;
  font-display: swap; src: url(/assets/fonts/notothai-thai.woff2) format("woff2");
  unicode-range: U+0E01-0E5B, U+200C-200D, U+25CC;
}
@font-face {
  font-family: "Noto Sans Thai"; font-style: normal; font-weight: 200 800;
  font-display: swap; src: url(/assets/fonts/notothai-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191,
    U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Metric-matched fallbacks so nothing reflows when the webfonts arrive.
   size-adjust values measured in-browser against the loaded faces. */
@font-face {
  font-family: "PJS Fallback"; src: local("Helvetica Neue"), local("Arial");
  size-adjust: 105.2%; ascent-override: 92%; descent-override: 24%; line-gap-override: 0%;
}
@font-face {
  font-family: "Fraunces Fallback"; src: local("Georgia"), local("Times New Roman");
  size-adjust: 101.5%; ascent-override: 94%; descent-override: 26%; line-gap-override: 0%;
}

:root {
  /* palette */
  --teal:       #1AC4D6;   /* fills and rules only */
  --teal-hover: #3FD0DF;
  --teal-ink:   #0A6E7C;   /* teal for text at any size: 5.9:1 on white */
  --teal-mid:   #0E8FA0;   /* icons, ticks and 24px+ text: 3.9:1 */
  --teal-deep:  #0A6E7C;
  --cream:      #E8D8B0;
  --sand-rule:  #C9BBA8;
  --navy:       #0B3C5D;
  --ink:        #3A464E;   /* body text on white: 8.5:1 */
  --ink-soft:   #55636C;   /* secondary: 5.6:1 */
  --dark:       #0E1418;
  --dark-2:     #16202A;
  --tint:       #F6F7F9;   /* cool ground */
  --warm:       #F7F5F2;   /* warm ground */
  --white:      #FFFFFF;
  --line:       #E6E9EC;
  --line-strong:#C9D0D6;   /* decorative borders */
  --line-input: #7F8F9B;   /* interactive control boundaries: 3.3:1 */
  --paper-line: #E4E0DA;
  --wa:         #25D366;

  --sev-crit: #B3261E; --sev-maj: #A85F00; --sev-min: #0A6E7C; --sev-obs: #546D7E;

  --sans: "Baht", "Plus Jakarta Sans", "PJS Fallback", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --display: "Baht", "Fraunces", "Fraunces Fallback", Georgia, "Times New Roman", serif;

  /* type scale — 1.25 at mobile, 1.333 at desktop, interpolated */
  --t--1: clamp(0.80rem, 0.78rem + 0.10vw, 0.875rem);
  --t-0:  clamp(1.00rem, 0.97rem + 0.14vw, 1.0625rem);
  --t-1:  clamp(1.13rem, 1.05rem + 0.32vw, 1.25rem);
  --t-2:  clamp(1.31rem, 1.13rem + 0.75vw, 1.60rem);
  --t-3:  clamp(1.55rem, 1.18rem + 1.55vw, 2.13rem);
  --t-4:  clamp(1.94rem, 1.24rem + 2.90vw, 3.16rem);
  --t-5:  clamp(2.31rem, 1.28rem + 4.30vw, 4.21rem);

  /* spacing */
  --s1: 8px;  --s2: 16px; --s3: 24px; --s4: 32px;
  --s5: 48px; --s6: 64px; --s7: 96px; --s8: 128px;
  --sec-y: 112px;

  --container: 1200px;
  --measure: 34em;
  --radius: 12px; --radius-sm: 6px; --radius-lg: 20px; --radius-xl: 22px;
  --head-h: 72px;

  /* one easing curve, one duration scale */
  --ease: cubic-bezier(.4, 0, .2, 1);
  --d-1: 160ms; --d-2: 260ms; --d-3: 420ms; --d-4: 520ms;
  --ease-out: cubic-bezier(.22, .61, .36, 1);   /* entrance curve */
}
@media (max-width: 1024px) { :root { --sec-y: 72px; } }
@media (max-width: 700px)  { :root { --sec-y: 56px; --head-h: 64px; } }

/* --- reset -------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--white); color: var(--ink);
  font-family: var(--sans); font-size: var(--t-0); line-height: 1.65;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg, video, picture { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
table { border-collapse: collapse; }

/* --- typography --------------------------------------------------------- */
h1, h2 {
  font-family: var(--display);
  font-optical-sizing: auto;
  font-weight: 500;
  color: var(--navy);
  letter-spacing: -0.015em;
  margin: 0 0 .45em;
  text-wrap: balance;
}
h3, h4 {
  font-family: var(--sans); font-weight: 600; color: var(--navy);
  letter-spacing: -0.012em; margin: 0 0 .5em; text-wrap: balance;
}
h1 { font-size: var(--t-4); line-height: 1.04; }
h2 { font-size: var(--t-3); line-height: 1.09; }
h3 { font-size: var(--t-1); line-height: 1.18; }
h4 { font-size: var(--t-0); line-height: 1.3; }

p { margin: 0 0 1.15em; max-width: var(--measure); text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
.centered p, .section-head p, .cta-panel p { margin-inline: auto; }

a { color: var(--navy); text-underline-offset: 3px; transition: color var(--d-1) var(--ease); }
a:hover { color: var(--teal-ink); }

.hl { color: var(--teal-ink); }
.hero .hl, .cta-panel .hl, .dark .hl, .panel .hl { color: var(--cream); }

.lede  { font-size: var(--t-0); line-height: 1.75; color: var(--ink-soft); max-width: var(--measure); text-wrap: pretty; }
.small { font-size: var(--t--1); line-height: 1.6; color: var(--ink-soft); max-width: var(--measure); }

.eyebrow {
  display: block; font-family: var(--sans);
  font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--teal-ink); margin: 0 0 var(--s2);
}
.eyebrow .num { color: var(--ink-soft); margin-right: .7em; font-variant-numeric: tabular-nums; }
.dark .eyebrow, .panel .eyebrow { color: var(--cream); }
.dark .eyebrow .num, .panel .eyebrow .num { color: rgba(255,255,255,.55); }

/* every figure that can change width is tabular */
.price, .proof__fig, .ptable td, .ptable th, .steps__n, .card__num,
.lb__counter, .sheet__pageno, .row-list__n, .col-list__n, time,
.sheet table, .sheet__ref { font-variant-numeric: tabular-nums; }

/* --- container + layout ------------------------------------------------- */
.wrap { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(20px, 5vw, 48px); }
.wrap--narrow { max-width: 860px; }
section { padding-block: var(--sec-y); position: relative; }
main > section:last-child { padding-bottom: var(--s7); }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

.split { display: grid; gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: 5fr 7fr; }
  .split--flip { grid-template-columns: 7fr 5fr; }
  .split--flip > :first-child { order: 2; }
  .split--top { align-items: start; }
}
.grid { display: grid; gap: var(--s3); align-items: stretch; }
@media (min-width: 700px)  { .grid--2, .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .grid--4 { grid-template-columns: repeat(4, 1fr); } }

.centered { text-align: center; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto var(--s6); }

.dark { background: var(--dark); color: rgba(255,255,255,.84); }
.dark h1, .dark h2, .dark h3, .dark h4 { color: var(--white); }
.dark .lede { color: rgba(255,255,255,.8); }
.dark .small { color: rgba(255,255,255,.64); }
.dark a { color: var(--teal); }
.tint { background: var(--tint); }

/* the former sand block: a warm off-white band with hairline edges */
.band { background: var(--warm); border-block: 1px solid var(--sand-rule); }
.band .eyebrow { color: var(--teal-deep); }

/* --- buttons: four states, named transitions only ----------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: 14px 28px;
  font-family: var(--sans); font-size: var(--t-0); font-weight: 700; line-height: 1.2;
  border-radius: var(--radius); border: 1px solid transparent;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color var(--d-1) var(--ease), color var(--d-1) var(--ease),
              border-color var(--d-1) var(--ease), transform var(--d-1) var(--ease),
              box-shadow var(--d-1) var(--ease);
}
.btn--primary { background: var(--teal); color: var(--navy); border-color: var(--teal); }
.btn--primary:hover { background: var(--teal-hover); border-color: var(--teal-hover); }
.btn--primary:active { transform: translateY(1px); }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--ghost:hover { background: var(--navy); color: var(--white); }
.btn--ghost:active { transform: translateY(1px); }
.dark .btn--ghost, .hero .btn--ghost, .cta-panel .btn--ghost { color: var(--white); border-color: rgba(255,255,255,.7); }
.dark .btn--ghost:hover, .hero .btn--ghost:hover, .cta-panel .btn--ghost:hover { background: var(--white); color: var(--navy); border-color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s4); }
.centered .btn-row, .section-head .btn-row, .cta-panel .btn-row, .hero .btn-row { justify-content: center; }

/* --- focus: one ring, everywhere ---------------------------------------- */
:focus { outline: 2px solid var(--teal-ink); outline-offset: 2px; border-radius: 3px; }
:focus:not(:focus-visible) { outline: none; }
:focus-visible { outline: 2px solid var(--teal-ink); outline-offset: 2px; border-radius: 3px; }
.dark :focus-visible, .hero :focus-visible, .cta-panel :focus-visible,
.panel :focus-visible, .lb :focus-visible { outline-color: var(--cream); }
.skip { position: absolute; left: -9999px; top: 0; z-index: 400; background: var(--navy); color: var(--white); padding: 12px 20px; text-decoration: none; }
.skip:focus { left: 0; top: 0; }

/* --- header ------------------------------------------------------------- */
.site-head {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid rgba(14, 20, 24, .07);
  transition: box-shadow var(--d-2) var(--ease);
  will-change: box-shadow;
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .site-head {
    background: rgba(255, 255, 255, .82);
    -webkit-backdrop-filter: blur(16px) saturate(1.4);
    backdrop-filter: blur(16px) saturate(1.4);
  }
}
.site-head.is-stuck { box-shadow: 0 1px 0 rgba(14,20,24,.08), 0 8px 24px rgba(14,20,24,.04); }
.site-head__inner { display: flex; align-items: center; gap: var(--s3); height: var(--head-h); }

.brand { flex-shrink: 0; margin-right: auto; display: block; line-height: 0; transform: translateY(1px); }
.brand img { width: 152px; height: 45px; }
@media (max-width: 700px) { .brand img { width: 128px; height: 38px; } }

.nav { display: none; }
@media (min-width: 1140px) { .nav { display: flex; align-items: center; gap: var(--s3); } }
.nav a {
  position: relative; font-size: .97rem; font-weight: 500; color: var(--navy);
  text-decoration: none; white-space: nowrap; padding: 6px 0;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--teal); transform: scaleX(0); transform-origin: left;
  transition: transform 180ms var(--ease);
}
.nav a:hover::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--teal-ink); }
.nav a[aria-current="page"]::after { transform: scaleX(1); transition: none; }

.head-tools { display: flex; align-items: center; gap: var(--s2); margin-left: auto; }
@media (min-width: 1140px) { .head-tools { margin-left: 0; } }
.head-tel { display: none; font-weight: 700; font-size: .93rem; color: var(--navy); text-decoration: none; white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (min-width: 1400px) { .head-tel { display: inline-block; } }
.btn--nav { min-height: 44px; padding: 11px 20px; font-size: .93rem; background: var(--teal); color: var(--navy); border-color: var(--teal); }
@media (max-width: 480px) { .btn--nav { display: none; } }

.lang { position: relative; }
.lang__btn {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px;
  background: transparent; border: 1px solid var(--line-input); border-radius: var(--radius-sm);
  padding: 8px 11px; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--navy); cursor: pointer;
  transition: border-color var(--d-1) var(--ease), color var(--d-1) var(--ease), background-color var(--d-1) var(--ease);
}
.lang__btn:hover { border-color: var(--navy); color: var(--teal-ink); }
.lang__btn:active { transform: translateY(1px); }
.lang__btn svg { width: 10px; height: 10px; transition: transform var(--d-1) var(--ease); }
.lang__btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.lang__menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 190px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 14px 34px rgba(11,60,93,.18); padding: 6px; margin: 0; list-style: none; z-index: 110;
}
.lang__menu[hidden] { display: none; }
.lang__menu a { display: block; padding: 11px 14px; font-size: .95rem; color: var(--navy); text-decoration: none; border-radius: var(--radius-sm); transition: background-color var(--d-1) var(--ease), color var(--d-1) var(--ease); }
.lang__menu a:hover { background: var(--tint); color: var(--teal-ink); }
.lang__menu a[aria-current="true"] { font-weight: 700; }

.burger {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 0 10px;
  background: transparent; border: 1px solid var(--line-input); border-radius: var(--radius-sm); cursor: pointer;
  transition: border-color var(--d-1) var(--ease), background-color var(--d-1) var(--ease);
}
.burger:hover { border-color: var(--navy); }
.burger span { display: block; height: 2px; background: var(--navy); border-radius: 2px; transition: transform var(--d-2) var(--ease), opacity var(--d-1) var(--ease); }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (min-width: 1140px) { .burger { display: none; } }

.mobile-nav { background: var(--white); border-top: 1px solid var(--line); padding: var(--s1) clamp(20px,5vw,48px) var(--s4); }
.js .mobile-nav { display: none; }
.js .mobile-nav.is-open { display: block; }
@media (min-width: 1140px) { .mobile-nav { display: none !important; } }
.mobile-nav a { display: flex; align-items: center; min-height: 48px; font-size: 1.05rem; font-weight: 500; color: var(--navy); text-decoration: none; border-bottom: 1px solid var(--line); }
.mobile-nav a[aria-current="page"] { color: var(--teal-ink); }
.mobile-nav .btn { width: 100%; margin-top: var(--s3); }

/* --- hero --------------------------------------------------------------- */
.hero {
  position: relative; color: var(--white); text-align: center;
  overflow: hidden; isolation: isolate;
  min-height: min(78vh, 760px);
  display: grid; align-items: center; padding-block: var(--sec-y);
  /* until the photograph lands: a vignette plus a fine architectural grid */
  background:
    radial-gradient(120% 90% at 50% 38%, var(--dark-2) 0%, #0B1116 78%),
    var(--dark);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.55) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.55) 1px, transparent 1px);
  background-size: 64px 64px, 64px 64px;
  opacity: .035;
  mask-image: radial-gradient(120% 80% at 50% 40%, #000 20%, transparent 80%);
}
.hero__bg { position: absolute; inset: 0; z-index: -2; }
/* Looping muted background film, as the live site has. It sits above the
   vignette and below the scrim, and only loads once JS decides it should. */
.hero__video {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 900ms var(--ease-out);
  pointer-events: none;
}
.hero__video.is-live { opacity: 1; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__scrim { position: absolute; inset: 0; z-index: -1; background: var(--dark); opacity: .55; }
.hero .wrap { position: relative; z-index: 1; }
.hero h1 { color: var(--white); max-width: 17ch; margin-inline: auto; font-size: var(--t-5); line-height: 1.03; }
.hero .lede { color: rgba(255,255,255,.9); max-width: var(--measure); margin: var(--s3) auto 0; }
.hero--page { min-height: 0; padding-block: var(--s7); }

/* --- inner-page banner motif -------------------------------------------
   The brand mark, very large and very faint, drifting behind the title, with
   a slow teal glow moving across it. Transform and opacity only, so it costs
   the compositor almost nothing, and it stops dead under reduced motion.  */
.hero__motif { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.hero--page .wrap { z-index: 2; }

.hero__mark {
  position: absolute; display: block; height: auto;
  animation-timing-function: cubic-bezier(.45, 0, .55, 1);
  animation-iteration-count: infinite;
  animation-direction: alternate;
}
/* One mark only, held to the right edge and masked so it dissolves before it
   reaches the headline. Faint enough to read as texture, not wallpaper. */
.hero__mark--a {
  width: clamp(300px, 36vw, 540px);
  right: -9%; top: 50%; margin-top: -22%;
  opacity: .05;
  filter: blur(1px);
  -webkit-mask-image: linear-gradient(100deg, transparent 8%, #000 62%);
  mask-image: linear-gradient(100deg, transparent 8%, #000 62%);
  animation-name: markDriftA; animation-duration: 34s;
}
.hero__mark--b { display: none; }
.hero__glow {
  position: absolute; top: -46%; left: 4%;
  width: min(64%, 700px); aspect-ratio: 1 / 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(26, 196, 214, .14), rgba(26, 196, 214, 0) 66%);
  filter: blur(34px);
  animation: glowDrift 24s cubic-bezier(.45, 0, .55, 1) infinite alternate;
}
.hero__rule {
  position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(232, 216, 176, .5), transparent);
  background-size: 240% 100%;
  animation: ruleSweep 18s linear infinite;
}

@keyframes markDriftA {
  from { transform: translate3d(0, 0, 0) rotate(-3deg) scale(1); }
  to   { transform: translate3d(-38px, 26px, 0) rotate(5deg) scale(1.06); }
}
@keyframes markDriftB {
  from { transform: translate3d(0, 0, 0) rotate(0deg) scale(1.05); }
  to   { transform: translate3d(46px, -32px, 0) rotate(-10deg) scale(1); }
}
@keyframes glowDrift {
  from { transform: translate3d(-7%, -4%, 0) scale(1); opacity: .75; }
  to   { transform: translate3d(9%, 6%, 0) scale(1.12); opacity: 1; }
}
@keyframes ruleSweep {
  from { background-position: 120% 0; }
  to   { background-position: -120% 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__mark, .hero__glow, .hero__rule { animation: none !important; }
}
.hero--page h1 { max-width: 22ch; font-size: var(--t-4); }

/* --- proof strip -------------------------------------------------------- */
.proof { padding-block: 0 var(--s6); }
.proof__list { display: grid; grid-template-columns: 1fr; margin: 0; padding: 0; list-style: none; border: 1px solid var(--line-strong); border-radius: var(--radius-lg); overflow: hidden; }
@media (min-width: 640px)  { .proof__list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .proof__list { grid-template-columns: repeat(4, 1fr); } }
.proof__list li { padding: var(--s4) var(--s3); display: flex; align-items: baseline; gap: var(--s2); font-size: .95rem; line-height: 1.5; color: var(--ink-soft); border-bottom: 1px solid var(--line); }
@media (min-width: 640px)  { .proof__list li:nth-child(odd) { border-right: 1px solid var(--line); } }
@media (min-width: 1000px) { .proof__list li { border-bottom: 0; border-right: 1px solid var(--line); } .proof__list li:last-child { border-right: 0; } }
.proof__fig { font-family: var(--display); font-size: 2.1rem; font-weight: 500; color: var(--navy); line-height: 1; letter-spacing: -0.03em; }

/* --- section form A: columns divided by hairlines (the problem) --------- */
.col-list { display: grid; gap: var(--s5); margin: 0; padding: 0; list-style: none; }
@media (min-width: 860px) {
  .col-list { grid-template-columns: repeat(3, 1fr); gap: 0; }
  .col-list > li { padding-inline: var(--s5); border-left: 1px solid var(--line); }
  .col-list > li:first-child { padding-left: 0; border-left: 0; }
  .col-list > li:last-child { padding-right: 0; }
}
.col-list__n { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--teal-ink); margin-bottom: var(--s2); }
.col-list h3 { font-family: var(--display); font-weight: 500; font-size: var(--t-2); line-height: 1.14; letter-spacing: -0.015em; margin-bottom: .55em; }
.col-list p { color: var(--ink); max-width: none; }

/* --- section form B: schedule rows (who it's for) ----------------------- */
.row-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line-strong); }
.row-list > li { display: grid; gap: var(--s2) var(--s5); padding-block: var(--s5); border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .row-list > li { grid-template-columns: 120px 1fr 1fr; align-items: start; } }
.row-list__n { font-family: var(--display); font-size: 1.9rem; font-weight: 500; color: var(--teal-ink); line-height: 1; letter-spacing: -0.03em; }
.row-list h3 { margin: 0; font-size: var(--t-1); }
.row-list p { margin: 0; color: var(--ink-soft); max-width: none; }

/* --- section form C: steps on a connector rule (process) ---------------- */
.track { position: relative; margin: 0; padding: 0; list-style: none; display: grid; gap: var(--s5); }
@media (min-width: 900px) {
  .track { grid-template-columns: repeat(4, 1fr); gap: var(--s4); padding-top: var(--s5); }
  .track::before { content: ""; position: absolute; left: 0; right: 0; top: calc(var(--s5) + 21px); height: 1px; background: var(--line-strong); }
}
.track > li { position: relative; }
.track__n {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; margin-bottom: var(--s3);
  background: var(--white); color: var(--navy);
  border: 1px solid var(--navy); border-radius: 50%;
  font-family: var(--sans); font-weight: 700; font-size: .95rem;
}
.band .track__n { background: var(--warm); }
.track h3 { margin: 0 0 .45em; font-size: var(--t-1); }
.track p { margin: 0; color: var(--ink-soft); max-width: none; }

/* --- cards (used sparingly now) ----------------------------------------- */
.card {
  background: var(--white); border: 1px solid var(--line-strong); border-radius: var(--radius-lg);
  padding: var(--s4); display: flex; flex-direction: column; height: 100%;
  transition: border-color var(--d-1) var(--ease), box-shadow var(--d-1) var(--ease), transform var(--d-1) var(--ease);
}
.card:hover { border-color: var(--navy); box-shadow: 0 10px 28px rgba(11, 60, 93, .09); }
.card h3 { margin-bottom: .5em; }
.card p { font-size: .97rem; line-height: 1.7; color: var(--ink-soft); max-width: var(--measure); }
.card .btn, .card .btn-row { margin-top: auto; }
.card__num { display: block; font-family: var(--display); font-size: 2rem; font-weight: 500; color: var(--navy); letter-spacing: -0.04em; line-height: 1; margin-bottom: var(--s2); }
.dark .card { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.28); }
.dark .card p { color: rgba(255,255,255,.78); }

/* --- accordion ---------------------------------------------------------- */
.acc { display: grid; gap: var(--s2); }
.acc__item { border: 1px solid var(--line-strong); border-radius: var(--radius-lg); background: var(--white); overflow: hidden; transition: border-color var(--d-1) var(--ease); }
.acc__item:hover { border-color: var(--navy); }
.acc__btn {
  display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s3);
  width: 100%; min-height: 48px; padding: var(--s3) var(--s4); text-align: left;
  background: transparent; border: 0; cursor: pointer;
  font-family: var(--sans); font-size: var(--t-1); font-weight: 600; line-height: 1.35;
  letter-spacing: -0.012em; color: var(--navy);
  transition: color var(--d-1) var(--ease);
}
.acc__btn:hover { color: var(--teal-ink); }
.acc__meta { display: block; font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 7px; }
.acc__icon { flex: 0 0 auto; width: 20px; height: 20px; margin-top: 5px; position: relative; }
.acc__icon::before, .acc__icon::after { content: ""; position: absolute; background: var(--teal-ink); border-radius: 2px; transition: transform var(--d-2) var(--ease), opacity var(--d-1) var(--ease); }
.acc__icon::before { top: 9px; left: 0; width: 20px; height: 2px; }
.acc__icon::after  { left: 9px; top: 0; width: 2px; height: 20px; }
.acc__btn[aria-expanded="true"] .acc__icon::after { transform: rotate(90deg); opacity: 0; }
.acc__panel { overflow: hidden; transition: height var(--d-2) var(--ease); }
.js .acc__panel { display: none; }
.js .acc__panel.is-open { display: block; }
.acc__panel > * { padding: 0 var(--s4) var(--s4); }
.acc__panel p { color: var(--ink); font-size: .97rem; line-height: 1.75; }

.checklist { list-style: none; margin: 0; padding: 0; column-gap: var(--s5); }
@media (min-width: 760px) { .checklist { columns: 2; } }
.checklist li { position: relative; padding: 0 0 12px 28px; font-size: .97rem; line-height: 1.7; color: var(--ink); break-inside: avoid; max-width: var(--measure); }
.checklist li::before { content: ""; position: absolute; left: 4px; top: 8px; width: 6px; height: 11px; border: solid var(--teal-mid); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }

/* --- pricing table ------------------------------------------------------ */
.ptable {
  width: 100%; font-size: .97rem;
  border-collapse: separate; border-spacing: 0;
  border: 1px solid var(--line-strong); border-radius: var(--radius-lg); overflow: hidden;
}
.ptable th, .ptable td { text-align: left; padding: var(--s3); border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); vertical-align: top; }
.ptable th:last-child, .ptable td:last-child { border-right: 0; }
.ptable thead th { background: var(--tint); font-family: var(--sans); font-size: var(--t-1); font-weight: 700; letter-spacing: -0.015em; border-bottom: 1px solid var(--navy); color: var(--navy); }
.ptable thead th:first-child { font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.ptable tbody th { font-weight: 600; color: var(--navy); background: #FBFCFD; width: 26%; }
.ptable .price { font-size: 40px; font-weight: 800; color: var(--dark); letter-spacing: -0.04em; line-height: 1.05; }
.ptable .no { color: var(--ink-soft); }
.ptable tbody tr:last-child th, .ptable tbody tr:last-child td { border-bottom: 0; }
.baht { font-size: .7em; vertical-align: .1em; margin-right: .04em; font-weight: 700; }
.table-cta { display: flex; justify-content: center; margin-top: var(--s6); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* mobile: the price table becomes stacked cards, never a sideways scroll */
@media (max-width: 780px) {
  .table-scroll { overflow: visible; }
  .ptable, .ptable thead, .ptable tbody, .ptable tr, .ptable th, .ptable td { display: block; width: auto; }
  .ptable { border: 0; border-radius: 0; }
  .ptable thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .ptable tbody { display: grid; gap: var(--s3); }
  .ptable tr { border: 1px solid var(--line-strong); border-radius: var(--radius-lg); padding: var(--s3); background: var(--white); }
  .ptable tr th[scope="row"] { border: 0; padding: 0 0 var(--s2); font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); background: none; width: auto; }
  .ptable td { border: 0; border-top: 1px solid var(--line); padding: 10px 0; display: grid; grid-template-columns: 1fr auto; gap: var(--s2); align-items: baseline; }
  .ptable td::before { content: attr(data-col); font-size: .85rem; font-weight: 600; color: var(--navy); }
  .ptable td.price { font-size: 30px; }
}

.pcard { padding: 0; overflow: hidden; text-align: center; }
.pcard__head { background: var(--tint); padding: var(--s4) var(--s4) var(--s3); border-bottom: 1px solid var(--line); }
.pcard__head h3 { margin: 0 0 .4em; }
.pcard__head p { font-size: .93rem; margin: 0; color: var(--ink-soft); max-width: none; }
.pcard__body { padding: var(--s4); display: flex; flex-direction: column; flex: 1; }
.pcard .price { font-size: 44px; font-weight: 800; letter-spacing: -0.04em; line-height: 1.02; color: var(--dark); }
.pcard ul { list-style: none; margin: var(--s3) 0 var(--s4); padding: 0; text-align: left; }
.pcard li { position: relative; padding: 12px 0 12px 28px; font-size: .93rem; color: var(--ink-soft); border-bottom: 1px solid var(--line); }
.pcard li:last-child { border-bottom: 0; }
.pcard li::before { content: ""; position: absolute; left: 5px; top: 18px; width: 6px; height: 11px; border: solid var(--teal-mid); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.pcard .btn { margin-top: auto; width: 100%; }
.pcard--featured .pcard__head { background: var(--navy); border-bottom-color: var(--navy); }
.pcard--featured .pcard__head h3, .pcard--featured .pcard__head p { color: var(--white); }

/* --- designed panels ---------------------------------------------------- */
.panel { background: var(--dark); color: rgba(255,255,255,.86); border-radius: var(--radius-lg); padding: var(--s5); display: flex; flex-direction: column; justify-content: center; hanging-punctuation: first; }
.panel--tall { aspect-ratio: 4 / 5; }
.panel--wide { aspect-ratio: 16 / 10; }
.panel__rule { display: block; width: 56px; height: 3px; background: var(--teal); border-radius: 2px; margin-bottom: var(--s3); }
.panel__quote { font-family: var(--display); font-size: clamp(1.5rem, 2.1vw, 2rem); font-weight: 500; line-height: 1.22; letter-spacing: -0.015em; color: var(--white); margin: 0; max-width: 24ch; text-wrap: balance; }
.panel__attr { margin-top: var(--s3); font-size: .88rem; color: rgba(255,255,255,.66); max-width: 40ch; }

.portrait { aspect-ratio: 4 / 5; max-width: 420px; background: linear-gradient(165deg, var(--dark-2), var(--dark)); border-radius: var(--radius-lg); padding: var(--s5); display: flex; flex-direction: column; justify-content: flex-end; border: 1px solid rgba(255,255,255,.10); }
.portrait b { display: block; font-family: var(--display); font-size: 1.6rem; font-weight: 500; color: var(--white); letter-spacing: -0.02em; }
.portrait span { display: block; margin-top: 6px; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: var(--cream); }

.readout { background: var(--dark); border-radius: var(--radius-lg); padding: var(--s5); color: var(--white); }
.readout__label { font-size: .74rem; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; color: var(--cream); }
.readout__value { font-size: clamp(3rem, 6vw, 4.5rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1; margin: var(--s2) 0; font-variant-numeric: tabular-nums; }
.readout__value i { font-style: normal; font-size: .4em; color: var(--teal); margin-left: .15em; }
.readout__scale { display: flex; gap: 3px; margin: var(--s3) 0 var(--s2); }
.readout__scale i { flex: 1; height: 8px; border-radius: 2px; background: rgba(255,255,255,.16); }
.readout__scale i.on { background: var(--teal); }
.readout__scale i.hot { background: var(--sev-crit); }
.readout__note { font-size: .88rem; color: rgba(255,255,255,.74); margin: 0; max-width: var(--measure); }

.specimen { background: var(--white); border: 1px solid var(--line-strong); border-radius: var(--radius-lg); padding: var(--s4); }
.specimen__h { font-size: .74rem; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; color: var(--ink-soft); margin: 0 0 var(--s3); }
.specimen ul { list-style: none; margin: 0; padding: 0; }
.specimen li { padding: var(--s3) 0; border-top: 1px solid var(--line); }
.specimen li:first-child { border-top: 0; padding-top: 0; }
.specimen b { display: block; font-size: .97rem; font-weight: 600; color: var(--navy); margin-top: 6px; }
/* scoped so it cannot swallow the severity chip that sits in the same li */
.specimen li > span:not(.chip) { display: block; font-size: .88rem; color: var(--ink-soft); margin-top: 4px; }

.chip { display: inline-block; font-size: .68rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; color: var(--white); }
.chip--crit { background: var(--sev-crit); } .chip--maj { background: var(--sev-maj); }
.chip--min { background: var(--sev-min); }   .chip--obs { background: var(--sev-obs); }

.sev { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s3); align-items: stretch; }
@media (min-width: 760px) { .sev { grid-template-columns: repeat(2, 1fr); } }
.sev li { display: grid; grid-template-columns: 14px 1fr; gap: var(--s2); align-items: start; border: 1px solid var(--line-strong); border-radius: var(--radius-lg); padding: var(--s3); background: var(--white); }
.sev__dot { width: 14px; height: 14px; border-radius: 50%; margin-top: 7px; }
.sev b { display: block; font-size: 1.02rem; font-weight: 700; margin-bottom: 4px; color: var(--navy); }
.sev span { display: block; font-size: .93rem; line-height: 1.7; color: var(--ink-soft); }

/* --- image slots -------------------------------------------------------- */
.shot { position: relative; overflow: hidden; border-radius: var(--radius-lg); background-size: cover; background-position: center; }
.shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shot--16x9 { aspect-ratio: 16 / 9; } .shot--4x5 { aspect-ratio: 4 / 5; }
.shot--3x2  { aspect-ratio: 3 / 2; }  .shot--21x9 { aspect-ratio: 21 / 9; }

/* ==========================================================================
   Report sheets — authored once at a fixed A4 canvas (794 × 1123 at 96dpi)
   with real type sizes, then displayed by scaling the whole canvas.
   ========================================================================== */
.sheet-scaler {
  --scale: 1;
  width: calc(794px * var(--scale));
  height: calc(1123px * var(--scale));
  flex: 0 0 auto;
}
.sheet {
  width: 794px; height: 1123px;
  transform: scale(var(--scale)); transform-origin: top left;
  background: var(--white); border: 1px solid var(--paper-line);
  box-shadow: 0 8px 30px rgba(11, 60, 93, .13);
  padding: 56px; overflow: hidden;
  display: flex; flex-direction: column;
  font-family: var(--sans); font-size: 12.5px; line-height: 1.45; color: var(--navy);
  text-align: left; font-variant-numeric: tabular-nums;
}
.sheet__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding-bottom: 10px; border-bottom: 2px solid var(--navy); margin-bottom: 26px; }
.sheet__logo { width: 152px; height: 45px; }
.sheet__ref { font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.sheet__label { font-size: 10.5px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--teal-ink); margin: 0 0 6px; }
.sheet__title { font-family: var(--sans); font-size: 29px; font-weight: 800; letter-spacing: -0.025em; line-height: 1.1; margin: 0 0 10px; color: var(--navy); }
.sheet__sub { font-size: 12.5px; color: var(--ink-soft); margin: 0 0 24px; max-width: none; }
.sheet__foot { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: baseline; gap: 20px; font-size: 10px; color: var(--ink-soft); }
.sheet__pageno { font-weight: 700; }

.sheet__fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 32px; margin-bottom: 26px; }
.sheet__field b { display: block; font-size: 9.5px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 3px; }
.sheet__field span { display: block; font-size: 13px; font-weight: 600; }

.sheet__counts { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.sheet__chip { font-size: 10px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; padding: 5px 11px; border-radius: 99px; color: #fff; }
.sheet__total { background: var(--navy); } .sheet__crit { background: var(--sev-crit); }
.sheet__maj { background: var(--sev-maj); } .sheet__min { background: var(--sev-min); }
.sheet__obs { background: var(--sev-obs); }

.sheet table { width: 100%; font-size: 10.5px; border-collapse: collapse; }
.sheet th, .sheet td { border-bottom: 1px solid var(--line); padding: 7px 8px; text-align: left; vertical-align: top; }
.sheet thead th { background: var(--tint); font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); border-bottom: 1.5px solid var(--navy); }
.sheet .num { width: 8%; color: var(--ink-soft); }
.sheet .res { width: 7%; text-align: center; font-weight: 800; font-size: 12px; }
.sheet .res-ok { color: #1E7A3C; } .sheet .res-flag { color: var(--sev-maj); } .sheet .res-bad { color: var(--sev-crit); }
.sheet .ref { color: var(--sev-maj); font-weight: 800; white-space: nowrap; }
.sheet .sign { width: 15%; background: repeating-linear-gradient(0deg, transparent 0 13px, var(--line) 13px 14px); }
.sheet__note { margin-top: 20px; padding: 12px 14px; background: var(--tint); border-left: 3px solid var(--teal); font-size: 10.5px; line-height: 1.55; color: var(--ink); max-width: none; }

.sheet__photo { position: relative; aspect-ratio: 16 / 10; border-radius: 4px; overflow: hidden; margin: 0 0 18px; background: linear-gradient(150deg, #22303F, #101922); }
.sheet__photo svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.sheet .sheet__photo figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 8px 12px; background: rgba(11,20,30,.74); color: #fff; font-size: 10px; }
.sheet__block { margin-bottom: 18px; }
.sheet__block b { display: block; font-size: 9.5px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 4px; }
.sheet__block p { font-size: 12px; line-height: 1.55; margin: 0; color: var(--navy); max-width: none; }
.sheet__sev { display: inline-block; font-size: 10px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; padding: 5px 12px; border-radius: 99px; color: #fff; background: var(--sev-maj); margin-bottom: 14px; }

/* --- report cards: the pricing-card treatment, applied to the sheets ----- */
.doc-grid { display: grid; gap: var(--s3); align-items: stretch; }
@media (min-width: 700px)  { .doc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .doc-grid { grid-template-columns: repeat(4, 1fr); } }

.doccard {
  padding: 0; overflow: hidden; text-align: center;
  text-decoration: none; color: inherit;
}
.doccard .pcard__head p { font-variant-numeric: tabular-nums; }
.doccard__body {
  padding: var(--s3); background: var(--warm);
  border-bottom: 1px solid var(--line);
  display: flex; justify-content: center;
}
.doccard__body .sheet-scaler { --scale: .26; }
.doccard__body .sheet { box-shadow: 0 6px 18px rgba(11, 30, 45, .16); }
.doccard__foot { padding: var(--s3); margin-top: auto; }
.doccard__foot .btn { width: 100%; padding-inline: var(--s2); font-size: .95rem; }
.doccard:hover .doccard__body .sheet { box-shadow: 0 10px 26px rgba(11, 30, 45, .24); }
.doccard:hover .btn--ghost { background: var(--navy); color: var(--white); }

@media (min-width: 700px) and (max-width: 1039px) { .doccard__body .sheet-scaler { --scale: .42; } }
@media (max-width: 699px) { .doccard__body .sheet-scaler { --scale: .42; } }

/* --- the 3D stack: one sheet held at an angle, the rest receding ---------
   Home-page showpiece. The Sample Report page keeps the flat, readable deck;
   this one is about depth and movement, so the sheets sit in perspective. */
.stack3d { display: grid; justify-items: center; gap: var(--s4); }
.stack3d__scene {
  position: relative; width: 100%; height: 610px;
  perspective: 1700px; perspective-origin: 50% 45%;
}
.stack3d__item {
  position: absolute; top: 0; left: 50%;
  width: calc(794px * .46); height: calc(1123px * .46);
  margin-left: calc(794px * -.23);
  transform-style: preserve-3d;
  transition: transform 820ms var(--ease-out), opacity 820ms var(--ease-out),
              filter 820ms var(--ease-out);
  will-change: transform, opacity;
  pointer-events: none;
}
.stack3d__item .sheet-scaler { --scale: .46; }
.stack3d__item .sheet { box-shadow: 0 30px 70px rgba(11, 30, 45, .34); }
.stack3d__item a { display: block; border-radius: 4px; outline-offset: 6px; }

/* position by distance from the front card */
.stack3d__item[data-pos="0"] {
  transform: translate3d(-8%, 0, 0) rotateY(-14deg) rotateX(3deg);
  opacity: 1; z-index: 5; pointer-events: auto;
}
.stack3d__item[data-pos="1"] {
  transform: translate3d(9%, 14px, -140px) rotateY(-16deg) rotateX(3deg);
  opacity: .62; filter: saturate(.75); z-index: 4;
}
.stack3d__item[data-pos="2"] {
  transform: translate3d(22%, 26px, -270px) rotateY(-18deg) rotateX(3deg);
  opacity: .34; filter: saturate(.55); z-index: 3;
}
.stack3d__item[data-pos="3"] {
  transform: translate3d(33%, 36px, -400px) rotateY(-20deg) rotateX(3deg);
  opacity: .14; filter: saturate(.4); z-index: 2;
}
/* the card that has just been advanced past swings out to the left */
.stack3d__item[data-pos="-1"] {
  transform: translate3d(-62%, -20px, -240px) rotateY(34deg) rotateX(3deg);
  opacity: 0; z-index: 1;
}
.stack3d:hover .stack3d__item[data-pos="0"],
.stack3d:focus-within .stack3d__item[data-pos="0"] {
  transform: translate3d(-8%, 0, 60px) rotateY(-4deg) rotateX(1deg);
}

.stack3d__bar { display: flex; align-items: center; justify-content: center; gap: var(--s3); flex-wrap: wrap; }
.stack3d__label { font-size: .95rem; font-weight: 600; color: var(--navy); min-width: 15ch; text-align: center; }
.stack3d__count { font-size: .88rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
/* 44px hit area, 9px dot — the target must be tappable, the mark need not be */
.stack3d__dots { display: flex; }
.stack3d__dots button {
  width: 44px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer;
  display: grid; place-items: center; border-radius: var(--radius-sm);
}
.stack3d__dots button::after {
  content: ""; width: 9px; height: 9px; border-radius: 99px; background: rgba(11,60,93,.28);
  transition: background-color var(--d-1) var(--ease), width var(--d-1) var(--ease);
}
.stack3d__dots button:hover::after { background: rgba(11,60,93,.5); }
.stack3d__dots button[aria-current="true"]::after { background: var(--teal-ink); width: 24px; }

@media (max-width: 900px) {
  .stack3d__scene { height: 450px; perspective: 1100px; }
  .stack3d__item { width: calc(794px * .34); height: calc(1123px * .34); margin-left: calc(794px * -.17); }
  .stack3d__item .sheet-scaler { --scale: .34; }
}
@media (prefers-reduced-motion: reduce) {
  .stack3d__item { transition: none; }
  .stack3d__item[data-pos="0"] { transform: none; }
  .stack3d__item:not([data-pos="0"]) { opacity: 0; }
  .stack3d:hover .stack3d__item[data-pos="0"] { transform: none; }
}

/* --- the deck: one sheet at a time, floating to the next ---------------- */
.deck { display: grid; justify-items: center; gap: var(--s3); }
.deck__stage { position: relative; width: calc(794px * .78); height: calc(1123px * .78); max-width: 100%; }
.deck__slide {
  position: absolute; inset: 0;
  opacity: 0; transform: translate3d(0, 26px, 0) scale(.985);
  transition: opacity var(--d-4) var(--ease-out), transform var(--d-4) var(--ease-out);
  pointer-events: none;
}
.deck__slide .sheet-scaler { --scale: .78; }
.deck__slide.is-current { opacity: 1; transform: none; pointer-events: auto; z-index: 2; }
.deck__slide.is-leaving { opacity: 0; transform: translate3d(0, -26px, 0) scale(.985); z-index: 1; }
.deck__open { position: absolute; inset: 0; width: 100%; height: 100%; background: none; border: 0; padding: 0; cursor: zoom-in; z-index: 3; border-radius: 3px; }
.deck__bar { display: flex; align-items: center; justify-content: center; gap: var(--s3); flex-wrap: wrap; }
.deck__label { font-size: .95rem; font-weight: 600; color: var(--navy); min-width: 15ch; text-align: center; }
.deck__count { font-size: .88rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.deck__btn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--white); border: 1px solid var(--line-input); color: var(--navy); cursor: pointer; padding: 0; transition: background-color var(--d-1) var(--ease), border-color var(--d-1) var(--ease); }
.deck__btn:hover { border-color: var(--navy); background: var(--tint); }
.deck__btn:active { transform: translateY(1px); }
.deck__btn svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 2; fill: none; }
.deck__play svg { fill: currentColor; stroke: none; width: 13px; height: 13px; }
.deck__tabs { display: flex; justify-content: center; gap: var(--s3); flex-wrap: wrap; }
.deck__tabs button { background: none; border: 0; padding: 0; cursor: pointer; border-radius: 3px; }
.deck__tabs .sheet-scaler { --scale: .105; opacity: .5; transition: opacity var(--d-1) var(--ease); }
.deck__tabs .sheet { box-shadow: none; }
.deck__tabs button:hover .sheet-scaler { opacity: .85; }
.deck__tabs button[aria-current="true"] .sheet-scaler { opacity: 1; outline: 2px solid var(--teal-ink); outline-offset: 3px; border-radius: 2px; }
.deck__tabs span { display: block; margin-top: var(--s2); font-size: .78rem; font-weight: 600; color: var(--ink-soft); }
.deck__tabs button[aria-current="true"] span { color: var(--navy); }
.deck__progress { width: 100%; max-width: calc(794px * .78); height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.deck__progress i { display: block; height: 100%; width: 0; background: var(--teal-ink); }
.deck.is-playing .deck__progress i { animation: deckfill var(--deck-dwell, 6500ms) linear forwards; }
@keyframes deckfill { from { width: 0 } to { width: 100% } }
@media (max-width: 820px) {
  .deck__stage { width: min(100%, calc(794px * .46)); height: calc(1123px * .46); }
  .deck__slide .sheet-scaler { --scale: .46; }
  .deck__tabs { gap: var(--s2); }
  .deck__tabs .sheet-scaler { --scale: .07; }
}
@media (prefers-reduced-motion: reduce) {
  .deck__slide { transition: none; }
  .deck.is-playing .deck__progress i { animation: none; }
}

/* --- lead sheet + chooser row ------------------------------------------- */
.sheet-lead { display: flex; justify-content: center; }
.sheet-lead .sheet-scaler { --scale: .78; }
@media (max-width: 820px) { .sheet-lead { display: none; } }

.sheets { display: flex; justify-content: center; align-items: flex-start; gap: 0; }
.sheet-fig { flex: 0 0 auto; margin-inline: -14px;
  background: none; border: 0; padding: 0; cursor: pointer; font: inherit;
  transition: transform var(--d-2) var(--ease); transform-origin: center bottom;
}
.sheet-fig .sheet-scaler { --scale: .32; }
.sheet-fig:nth-child(1) { transform: rotate(-2deg); }
.sheet-fig:nth-child(2) { transform: rotate(1deg); }
.sheet-fig:nth-child(3) { transform: rotate(-1deg); }
.sheet-fig:nth-child(4) { transform: rotate(2deg); }
.sheet-fig:hover, .sheet-fig:focus-visible { transform: rotate(0deg) translateY(-10px); z-index: 5; }
.sheet-fig > figcaption { margin-top: var(--s2); font-size: .88rem; font-weight: 600; color: var(--ink-soft); text-align: center; }

@media (max-width: 860px) {
  .sheets {
    display: grid; grid-auto-flow: column; grid-auto-columns: max-content;
    gap: var(--s3); overflow-x: auto; scroll-snap-type: x mandatory;
    /* 100vw includes the scrollbar and caused an 8px horizontal scroll;
       100% is the container width, which is what centring wants. */
    padding-inline: max(20px, calc((100% - 300px) / 2));
    margin-inline: calc(clamp(20px,5vw,48px) * -1);
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
  }
  .sheets::-webkit-scrollbar { display: none; }
  .sheet-fig { margin-inline: 0; transform: none !important; scroll-snap-align: center; }
  .sheet-fig .sheet-scaler { --scale: .38; }
}
.sheet-dots { display: none; justify-content: center; margin-top: var(--s2); }
@media (max-width: 860px) { .sheet-dots { display: flex; } }
.sheet-dots button {
  width: 44px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer;
  display: grid; place-items: center; border-radius: var(--radius-sm);
}
.sheet-dots button::after {
  content: ""; width: 9px; height: 9px; border-radius: 99px; background: rgba(11,60,93,.28);
  transition: background-color var(--d-1) var(--ease), width var(--d-1) var(--ease);
}
.sheet-dots button[aria-current="true"]::after { background: var(--teal-ink); width: 22px; }

/* --- the document viewer ------------------------------------------------ */
.lb {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(8, 12, 15, .92);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  display: grid; grid-template-rows: auto 1fr auto;
  opacity: 0; transition: opacity 180ms var(--ease);
}
.lb.is-open { opacity: 1; }
.lb[hidden] { display: none; }

.lb__bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--s3); padding: var(--s3) var(--s4); }
.lb__title { color: #fff; font-size: .95rem; font-weight: 600; }
.lb__counter { color: rgba(255,255,255,.72); font-size: .88rem; font-weight: 600; font-variant-numeric: tabular-nums; text-align: center; }
.lb__close {
  justify-self: end; width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.24); color: #fff;
  display: grid; place-items: center; cursor: pointer; padding: 0;
  transition: background-color var(--d-1) var(--ease), border-color var(--d-1) var(--ease);
}
.lb__close:hover { background: rgba(255,255,255,.24); border-color: rgba(255,255,255,.5); }
.lb__close svg { width: 15px; height: 15px; stroke: currentColor; stroke-width: 2; fill: none; }

.lb__stage { position: relative; display: grid; place-items: start center; min-height: 0; overflow-y: auto; overflow-x: hidden; padding: var(--s2) 72px; scrollbar-width: thin; }
/* --scale is a unitless number, so it is computed in JS from the
   viewport — CSS cannot divide one length by another. */
.lb__stage .sheet { box-shadow: 0 24px 64px rgba(0,0,0,.5); }
.lb__stage .sheet-scaler { opacity: 0; transform: translateY(12px); }
.lb.is-open .lb__stage .sheet-scaler { opacity: 1; transform: none; transition: opacity 200ms var(--ease), transform 200ms var(--ease); }

.lb__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.22); color: #fff;
  display: grid; place-items: center; cursor: pointer; padding: 0; opacity: .5;
  transition: opacity var(--d-1) var(--ease), background-color var(--d-1) var(--ease);
}
.lb__nav:hover, .lb__nav:focus-visible { opacity: 1; background: rgba(255,255,255,.2); }
.lb__prev { left: 14px; } .lb__next { right: 14px; }
.lb__nav svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 2; fill: none; }

.lb__film { display: flex; justify-content: center; gap: var(--s2); padding: var(--s2) var(--s4) var(--s3); }
.lb__film button { background: none; border: 0; padding: 0; cursor: pointer; border-radius: 3px; outline-offset: 3px; }
.lb__film .sheet-scaler { --scale: .062; }
.lb__film .sheet { box-shadow: none; border-color: rgba(255,255,255,.2); }
.lb__film button[aria-current="true"] .sheet-scaler { outline: 2px solid var(--teal); outline-offset: 2px; border-radius: 2px; }
.lb__film .sheet-scaler { opacity: .55; transition: opacity var(--d-1) var(--ease); }
.lb__film button:hover .sheet-scaler, .lb__film button[aria-current="true"] .sheet-scaler { opacity: 1; }

/* short or narrow viewports: scroll the sheet at full width instead of shrinking it */
.lb--scroll { grid-template-rows: auto 1fr; }
.lb--scroll .lb__stage { padding: var(--s2); overflow: auto; place-items: start start; }
.lb--scroll .lb__nav, .lb--scroll .lb__film { display: none; }
@media (max-width: 760px) {
  .lb { grid-template-rows: auto 1fr; }
  .lb__stage { padding: var(--s2); overflow: auto; place-items: start start; }
  .lb__nav, .lb__film { display: none; }
}

/* --- forms -------------------------------------------------------------- */
.form { display: grid; gap: var(--s3); }
@media (min-width: 700px) { .form__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); } }
.field { display: flex; flex-direction: column; gap: var(--s1); }
.field label { font-size: .93rem; font-weight: 600; color: var(--navy); }
.field .req { color: var(--teal-ink); }
.field input, .field select, .field textarea {
  min-height: 48px; background: var(--white); border: 1px solid var(--line-input);
  border-radius: var(--radius); padding: 12px var(--s2); font-size: 1rem; color: var(--ink);
  transition: border-color var(--d-1) var(--ease), box-shadow var(--d-1) var(--ease);
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--navy); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--teal-ink); outline: none; box-shadow: 0 0 0 3px rgba(14,143,160,.22); }
.field .hint { font-size: .82rem; color: var(--ink-soft); }
.field .err { display: flex; align-items: center; gap: 6px; font-size: .84rem; color: var(--sev-crit); font-weight: 600; }
.field .err::before { content: "!"; display: grid; place-items: center; width: 15px; height: 15px; border-radius: 50%; background: var(--sev-crit); color: #fff; font-size: 10px; font-weight: 800; flex: 0 0 auto; }
.field .err[hidden] { display: none; }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: var(--sev-crit); }
.form__status { display: grid; grid-template-columns: 22px 1fr; gap: var(--s2); padding: var(--s3); border: 1px solid var(--teal-ink); border-left-width: 4px; border-radius: var(--radius); background: rgba(26,196,214,.08); font-size: 1rem; color: var(--ink); }
.form__status::before { content: ""; width: 22px; height: 22px; border-radius: 50%; background: var(--teal-ink); clip-path: polygon(22% 52%, 38% 68%, 78% 28%, 86% 38%, 38% 86%, 14% 60%); }
.form__status[hidden] { display: none; }

.contact-aside { background: var(--tint); border-radius: var(--radius-lg); padding: var(--s5); }
.contact-aside dl { margin: var(--s4) 0 0; }
.contact-aside dt { font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); margin-top: var(--s3); }
.contact-aside dt:first-child { margin-top: 0; }
.contact-aside dd { margin: 5px 0 0; font-size: 1.02rem; }
.contact-aside dd a { font-weight: 700; text-decoration: none; }
.contact-aside dd a:hover { text-decoration: underline; }
.contact-aside .aside-h { font-family: var(--display); font-weight: 500; font-size: var(--t-2); }
.contact-aside p { max-width: none; }

/* --- closing CTA -------------------------------------------------------- */
.cta-section { padding-block: var(--s7); }
.cta-panel { position: relative; overflow: hidden; background: var(--dark); color: var(--white); border-radius: var(--radius-xl); padding: clamp(48px, 6vw, 88px) clamp(24px, 5vw, 72px); text-align: center; }
.cta-panel > .shot { position: absolute; inset: 0; z-index: 0; border-radius: 0; }
.cta-panel > .shot::after { content: ""; position: absolute; inset: 0; background: var(--dark); opacity: .78; }
.cta-panel .wrap, .cta-panel h2, .cta-panel p, .cta-panel .btn-row { position: relative; z-index: 1; }
.cta-panel h2 { color: var(--white); max-width: 22ch; margin-inline: auto; }
.cta-panel p { color: rgba(255,255,255,.82); max-width: var(--measure); }
.cta-panel__mark { position: absolute; right: -30px; bottom: -46px; width: 300px; height: 90px; opacity: .05; pointer-events: none; filter: grayscale(1) brightness(3); z-index: 0; }

/* --- footer ------------------------------------------------------------- */
.site-foot { background: var(--dark); color: rgba(255,255,255,.78); border-top: 1px solid rgba(232,216,176,.35); padding-block: var(--s7); }
.site-foot a { color: rgba(255,255,255,.78); text-decoration: none; }
.site-foot a:hover { color: var(--teal); }
.foot-top { display: flex; flex-wrap: wrap; gap: var(--s3) var(--s5); align-items: center; justify-content: space-between; margin-bottom: var(--s6); }
.foot-top img { width: 178px; height: 53px; filter: brightness(0) invert(1); }
.foot-contact { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4); font-weight: 700; }
.foot-contact a { display: inline-flex; align-items: center; gap: var(--s1); min-height: 44px; color: var(--white); }
.foot-contact svg { width: 18px; height: 18px; fill: none; stroke: var(--teal); stroke-width: 2; }
.foot-grid { display: grid; gap: var(--s5); }
@media (min-width: 860px) { .foot-grid { grid-template-columns: 2fr 1fr 1fr 1.4fr; } }
.foot-h { font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--cream); margin-bottom: var(--s2); }
.foot-grid ul { list-style: none; margin: 0; padding: 0; }
.foot-grid li { margin-bottom: 4px; font-size: .93rem; }
.foot-grid li a { display: inline-flex; align-items: center; min-height: 36px; }
.foot-grid p { font-size: .93rem; color: rgba(255,255,255,.74); }
.foot-lang { display: flex; gap: var(--s2); flex-wrap: wrap; }
.foot-bottom { margin-top: var(--s6); padding-top: var(--s3); border-top: 1px solid rgba(255,255,255,.14); display: flex; flex-wrap: wrap; gap: var(--s1) var(--s4); justify-content: space-between; font-size: .86rem; color: rgba(255,255,255,.62); }

/* --- floating WhatsApp -------------------------------------------------- */
.wa-fab {
  position: fixed; right: 24px; bottom: 24px; z-index: 200;
  display: inline-flex; align-items: center; height: 56px; width: 56px;
  background: var(--wa); color: var(--white); border-radius: 999px; text-decoration: none;
  box-shadow: 0 6px 24px rgba(0,0,0,.18); overflow: hidden;
  transition: width var(--d-2) var(--ease), box-shadow var(--d-1) var(--ease), transform var(--d-1) var(--ease);
}
.wa-fab__icon { flex: 0 0 56px; width: 56px; height: 56px; display: grid; place-items: center; }
.wa-fab__icon svg { width: 28px; height: 28px; fill: var(--white); }
.wa-fab__label { white-space: nowrap; font-size: .93rem; font-weight: 700; opacity: 0; transition: opacity var(--d-1) var(--ease); padding-right: 22px; }
.wa-fab:hover, .wa-fab:focus-visible { width: 214px; box-shadow: 0 10px 30px rgba(0,0,0,.24); color: var(--white); }
.wa-fab:hover .wa-fab__label, .wa-fab:focus-visible .wa-fab__label { opacity: 1; }
.wa-fab:active { transform: translateY(1px); }

/* --- reveal -------------------------------------------------------------
   The live site's choreography: a fade with a short directional slide,
   elements staggered in 100ms steps. Visible is still the CSS default, so
   nothing can be stranded; `js-reveal` opts into the hidden start state and a
   timer forces the final state whatever happens.                          */
.reveal { opacity: 1; transform: none; }
.js-reveal .reveal { opacity: 0; transform: translate3d(0, 18px, 0); }
.js-reveal .reveal[data-anim="left"]  { transform: translate3d(-28px, 0, 0); }
.js-reveal .reveal[data-anim="right"] { transform: translate3d(28px, 0, 0); }
.js-reveal .reveal[data-anim="fade"]  { transform: none; }
.js-reveal .reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity var(--d-4) var(--ease-out), transform var(--d-4) var(--ease-out);
}
.js-reveal .reveal.is-instant { opacity: 1; transform: none; transition: none; }
.js-reveal.reveal-all .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }

/* A container marked data-stagger animates its children in 100ms steps —
   the live site's cadence — without needing a class on every child. They all
   land in the same place, so a row can never settle out of alignment. */
.js-reveal .reveal[data-stagger] { opacity: 1; transform: none; }
.js-reveal .reveal[data-stagger] > * { opacity: 0; transform: translate3d(0, 18px, 0); }
.js-reveal .reveal[data-stagger="split"] > *:nth-child(1) { transform: translate3d(-28px, 0, 0); }
.js-reveal .reveal[data-stagger="split"] > *:nth-child(2) { transform: translate3d(28px, 0, 0); }
.js-reveal .reveal[data-stagger].is-in > *,
.js-reveal .reveal[data-stagger].is-instant > * {
  opacity: 1; transform: none;
  transition: opacity var(--d-4) var(--ease-out), transform var(--d-4) var(--ease-out);
}
.js-reveal .reveal[data-stagger].is-instant > * { transition: none; }
.js-reveal .reveal[data-stagger].is-in > *:nth-child(1) { transition-delay: 0ms; }
.js-reveal .reveal[data-stagger].is-in > *:nth-child(2) { transition-delay: 100ms; }
.js-reveal .reveal[data-stagger].is-in > *:nth-child(3) { transition-delay: 200ms; }
.js-reveal .reveal[data-stagger].is-in > *:nth-child(4) { transition-delay: 300ms; }
.js-reveal .reveal[data-stagger].is-in > *:nth-child(n+5) { transition-delay: 400ms; }
.js-reveal.reveal-all .reveal[data-stagger] > * { opacity: 1 !important; transform: none !important; transition: none !important; }
@media (prefers-reduced-motion: reduce) {
  .js-reveal .reveal[data-stagger] > * { opacity: 1 !important; transform: none !important; }
}

/* Kill switch: add data-motion="off" to <html> (one line in the inline head
   script) and every entrance animation stops, site-wide. */
html[data-motion="off"] .reveal,
html[data-motion="off"] .reveal[data-stagger] > * { opacity: 1 !important; transform: none !important; transition: none !important; }

/* --- misc --------------------------------------------------------------- */
.note { border-left: 3px solid var(--teal); padding: 6px 0 6px var(--s3); color: var(--ink); font-size: .97rem; max-width: var(--measure); }
.awaiting { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--s4); color: var(--ink-soft); font-size: .97rem; background: var(--tint); }
.sub-h { font-size: var(--t-1); }
.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; }

/* --- 404 / thank-you ---------------------------------------------------- */
.stub { min-height: calc(100vh - var(--head-h) - 120px); display: grid; align-items: center; padding-block: var(--s7); }
.stub__code { font-family: var(--display); font-size: clamp(4rem, 14vw, 9rem); font-weight: 500; line-height: .9; letter-spacing: -0.04em; color: var(--teal-ink); margin: 0 0 var(--s3); font-variant-numeric: tabular-nums; }
.stub__mark { width: 76px; height: 76px; margin: 0 auto var(--s4); }
.stub ul { list-style: none; margin: var(--s5) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4); justify-content: center; }
.stub ul a { font-weight: 600; color: var(--navy); }

/* --- motion discipline -------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js-reveal .reveal, .reveal { opacity: 1 !important; transform: none !important; }
  .lb { opacity: 1; }
  .sheet-fig, .sheet-fig:hover { transform: none !important; }
}

/* --- Thai --------------------------------------------------------------- */
:root:lang(th) { --sans: "Noto Sans Thai", "Plus Jakarta Sans", sans-serif; --display: "Noto Sans Thai", "Fraunces", serif; --measure: 32em; }
html[lang="th"] body { line-height: 1.85; }
html[lang="th"] h1, html[lang="th"] h2, html[lang="th"] h3, html[lang="th"] h4 { letter-spacing: 0; line-height: 1.4; }
html[lang="th"] h1 { line-height: 1.32; }
html[lang="th"] .hero h1 { line-height: 1.3; }
html[lang="th"] .eyebrow, html[lang="th"] .acc__meta, html[lang="th"] .foot-h,
html[lang="th"] .contact-aside dt, html[lang="th"] .ptable thead th:first-child,
html[lang="th"] .chip, html[lang="th"] .specimen__h, html[lang="th"] .portrait span,
html[lang="th"] .col-list__n { letter-spacing: .02em; text-transform: none; }
html[lang="th"] .nav a { font-size: .93rem; }
html[lang="th"] .ptable th, html[lang="th"] .ptable td { word-break: break-word; }
/* the sheets stay on the Latin document face even in Thai */
html[lang="th"] .sheet { font-family: "Noto Sans Thai", "Plus Jakarta Sans", sans-serif; }

/* ==========================================================================
   Printable blank documents (/documents/…)
   ========================================================================== */
.doc { background: var(--tint); padding: var(--s3) 0 var(--s6); }
.doc-bar { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: var(--s2); padding: 14px clamp(16px,4vw,40px); background: var(--white); border-bottom: 1px solid var(--line); }
.doc-bar__back { font-size: .93rem; font-weight: 600; color: var(--navy); text-decoration: none; }
.doc-bar__back:hover { color: var(--teal-ink); }
.doc-bar__print { min-height: 44px; background: var(--teal); color: var(--navy); border: 1px solid var(--teal); border-radius: var(--radius); padding: 12px 22px; font-size: .93rem; font-weight: 700; cursor: pointer; transition: background-color var(--d-1) var(--ease); }
.doc-bar__print:hover { background: var(--teal-hover); }
.doc-sheet { width: 210mm; max-width: calc(100% - 24px); min-height: 297mm; margin: 0 auto var(--s3); padding: 14mm 13mm 16mm; background: var(--white); box-shadow: 0 6px 26px rgba(11,60,93,.14); color: var(--navy); font-size: 9.6pt; line-height: 1.42; position: relative; display: flex; flex-direction: column; font-variant-numeric: tabular-nums; }
.doc-head { display: flex; align-items: center; gap: 14px; padding-bottom: 8px; margin-bottom: 14px; border-bottom: 1.5px solid var(--navy); }
.doc-head__logo { width: 42mm; height: auto; }
.doc-head__meta { margin-left: auto; text-align: right; line-height: 1.3; }
.doc-head__meta b { display: block; font-size: 9pt; font-weight: 700; }
.doc-head__meta span { font-size: 7.4pt; color: var(--ink-soft); }
.doc-title { font-family: var(--sans); font-size: 19pt; font-weight: 800; letter-spacing: -0.03em; margin: 0 0 2px; line-height: 1.15; }
.doc-sub { font-size: 9pt; color: var(--ink-soft); margin: 0 0 14px; max-width: none; }
.doc-label { font-size: 7.4pt; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--teal-ink); margin: 0 0 4px; max-width: none; }
.doc-fields { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px 16px; margin-bottom: 14px; }
.doc-fields--stack { grid-template-columns: repeat(2, 1fr); gap: 14px 22px; margin-bottom: 20px; }
.doc-field span { display: block; font-size: 7.2pt; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 3px; }
.doc-field i { display: block; height: 15px; border-bottom: 1px solid var(--navy); }
.doc-field--sm span { font-size: 6.8pt; } .doc-field--sm i { height: 12px; }
.doc-rule { display: block; height: 15px; border-bottom: 1px solid #C6CED4; margin-top: 6px; }
.doc-instructions { font-size: 8.2pt; line-height: 1.5; color: var(--ink); background: var(--tint); border-left: 2.5px solid var(--teal); padding: 8px 11px; margin: 0 0 10px; max-width: none; }
.doc-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0 0 16px; padding: 0; font-size: 7.8pt; color: var(--ink); }
.doc-legend b { display: inline-block; min-width: 22px; text-align: center; border: 1px solid var(--navy); border-radius: 3px; padding: 0 4px; font-size: 7pt; margin-right: 5px; }
.doc-table { width: 100%; margin: 0 0 13px; font-size: 8.4pt; }
.doc-table caption { caption-side: top; text-align: left; background: var(--navy); color: var(--white); font-size: 9.4pt; font-weight: 800; padding: 6px 9px; border-radius: 4px 4px 0 0; }
.doc-table__n { color: var(--teal); margin-right: 9px; }
.doc-table caption em { float: right; font-style: normal; font-size: 7.2pt; font-weight: 700; color: rgba(255,255,255,.75); letter-spacing: .05em; text-transform: uppercase; padding-top: 2px; }
.doc-table th, .doc-table td { border: 1px solid #C6CED4; padding: 3.5px 6px; text-align: left; vertical-align: top; }
.doc-table thead th { background: var(--tint); font-size: 7.2pt; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); text-align: center; white-space: nowrap; }
.doc-table thead th.c-check, .doc-table thead th.c-notes, .doc-table thead th.c-ref { text-align: left; }
.doc-table .c-ref { width: 30px; color: var(--ink-soft); font-size: 7.6pt; }
.doc-table .c-box { width: 26px; text-align: center; }
.doc-table .c-notes { width: 27%; }
.doc-table tbody tr:nth-child(even) td { background: #FBFCFD; }
.doc-table--plain caption { background: transparent; color: var(--navy); padding: 0 0 6px; border-radius: 0; }
.doc-table--plain .c-sev { width: 26%; font-weight: 700; white-space: nowrap; }
.doc-table--plain .c-count { width: 54px; }
.doc-table--svc { font-size: 8pt; } .doc-table--svc caption { background: var(--tint); color: var(--navy); }
.doc-table--svc td { height: 17px; } .doc-table--grid td { height: 21px; }
.doc-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }
.doc-dot--0 { background: var(--sev-crit); } .doc-dot--1 { background: var(--sev-maj); }
.doc-dot--2 { background: var(--sev-min); }  .doc-dot--3 { background: var(--sev-obs); }
.doc-block { margin: 0 0 14px; }
.doc-block h3 { font-size: 7.6pt; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); margin: 0 0 4px; }
.doc-note { font-size: 8.2pt; line-height: 1.55; color: var(--ink); margin: 0 0 14px; max-width: none; }
.doc-defect { display: grid; grid-template-columns: 74mm 1fr; gap: 14px; border: 1px solid var(--navy); border-radius: 5px; padding: 10px; margin-bottom: 12px; }
.doc-photo { border: 1px solid #9AA7B1; border-radius: 4px; min-height: 56mm; display: grid; place-items: center; font-size: 7.4pt; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); background: #FBFCFD; }
.doc-defect__body > .doc-field { margin-bottom: 7px; }
.doc-signoff { margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--navy); }
.doc-signoff h2 { font-family: var(--sans); font-size: 8pt; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); margin: 0 0 8px; }
.doc-signoff__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.doc-foot { margin-top: auto; padding-top: 6px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; font-size: 7.2pt; color: var(--ink-soft); }
.doc-card { display: grid; grid-template-columns: 64px 1fr; gap: var(--s3); align-items: start; }
.doc-card__page { display: block; width: 64px; height: 88px; padding: 9px 8px; border: 1px solid var(--navy); border-radius: 3px; background: var(--white); }
.doc-card__page span { display: block; height: 3px; background: #D8DEE3; border-radius: 2px; margin-bottom: 6px; }
.doc-card__page span:first-child { background: var(--teal); width: 70%; }
.doc-card__page span:nth-child(4) { width: 85%; }
.doc-card__page span:last-child { width: 55%; margin-bottom: 0; }
@media (max-width: 520px) { .doc-card { grid-template-columns: 1fr; gap: var(--s2); } }

/* --- print -------------------------------------------------------------- */
@page { size: A4 portrait; margin: 12mm; }
@media print {
  .doc-bar, .wa-fab, .skip, .lb, .sheet-dots, .site-head, .site-foot, .mobile-nav, .btn-row { display: none !important; }
  html, body { background: #fff; }
  .doc { background: #fff; padding: 0; }
  .doc-sheet { width: auto; max-width: none; min-height: 0; margin: 0; padding: 0; box-shadow: none; break-after: page; page-break-after: always; }
  .doc-sheet:last-child { break-after: auto; page-break-after: auto; }
  .doc-head, .doc-table caption, .doc-table thead th, .doc-instructions, .doc-dot, .doc-table__n,
  .sheet thead th, .sheet__chip, .sheet__sev { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .doc-table { break-inside: auto; page-break-inside: auto; }
  .doc-table thead { display: table-header-group; }
  .doc-table caption { break-after: avoid; page-break-after: avoid; }
  .doc-table tr, .doc-defect, .doc-signoff, .doc-block { break-inside: avoid; page-break-inside: avoid; }
  .doc-foot { margin-top: 16px; }
  a[href]::after { content: none !important; }
  .hero, .dark, .cta-panel, .panel, .readout { background: #fff !important; color: #000 !important; }
  .hero h1, .dark h2, .cta-panel h2, .hero .lede, .panel__quote, .readout__value { color: #000 !important; }
  .hl { color: #000 !important; }
  section { padding-block: 18px !important; }
  .hero { min-height: 0 !important; }
  .acc__panel { display: block !important; height: auto !important; }
  .card, .acc__item, .sheet { break-inside: avoid; page-break-inside: avoid; }
  .sheets, .sheet-lead { display: none !important; }
}
