/* Skyhigh88 brand — tokens + components shared by the design system and the 3 templates.
   Concept: quiet navy and ivory carry the page; red appears only as hairlines, dots and the active state. */

:root {
  /* Color — brand (fixed, not theme-switched: these are the client's CI) */
  --sh-navy-900: #0B1428;
  --sh-navy-800: #0F1B33;   /* primary */
  --sh-navy-700: #1C2A4A;
  --sh-navy-500: #3A4A6B;
  --sh-ivory-50: #FBF8F3;   /* "white" — warm, never #fff */
  --sh-ivory-100: #F7F3EC;  /* page background */
  --sh-ivory-200: #EDE6DA;  /* alternate band */
  --sh-ivory-300: #DDD3C3;  /* hairlines on ivory */
  --sh-ink: #1A2236;        /* headings on ivory */
  --sh-slate: #565E70;      /* body text on ivory */
  --sh-mist: #A9B1C2;       /* body text on navy */
  --sh-red: #C8102E;        /* accent: ≤5% of any screen */
  --sh-red-deep: #9C0D24;
  --sh-sand: #B89B6A;       /* optional detail: thin rules, icons */

  /* Type */
  --sh-font-display: "Marcellus", "Noto Serif Thai", Georgia, serif;
  --sh-font-heading: "Anuphan", "Noto Sans Thai", "Helvetica Neue", Arial, sans-serif;   /* loopless sans like the body; client may switch: Noto Sans Thai · IBM Plex Sans Thai · Prompt */
  --sh-font-body: "Noto Sans Thai", "Helvetica Neue", Arial, sans-serif;

  --sh-text-xs: 0.75rem;    /* eyebrow, legal */
  --sh-text-sm: 0.875rem;   /* captions, buttons */
  --sh-text-md: 1rem;       /* body */
  --sh-text-lg: 1.125rem;   /* lead */
  --sh-h4: clamp(1.15rem, 1.4vw, 1.35rem);
  --sh-h3: clamp(1.4rem, 2vw, 1.85rem);
  --sh-h2: clamp(1.9rem, 3.4vw, 2.9rem);
  --sh-h1: clamp(2.3rem, 5.2vw, 4.4rem);
  --sh-display: clamp(3rem, 8vw, 7rem);  /* latin numerals / wordmarks only */

  /* Space (8-pt) */
  --sh-s1: 4px; --sh-s2: 8px; --sh-s3: 12px; --sh-s4: 16px; --sh-s5: 24px;
  --sh-s6: 32px; --sh-s7: 48px; --sh-s8: 64px; --sh-s9: 96px; --sh-s10: 128px;
  --sh-section: clamp(64px, 10vw, 128px);
  --sh-container: 1200px;

  /* Shape & motion */
  --sh-radius-0: 0;          /* default: square = tailored */
  --sh-radius-pill: 999px;   /* language switch, chips only */
  --sh-line: 1px;
  --sh-shadow: 0 24px 60px -24px rgba(11, 20, 40, .35);
  --sh-ease: cubic-bezier(.2, .7, .2, 1);
  --sh-dur: .45s;
}

/* Marcellus ships one upright weight: never fake bold/italic. */
.sh-display, .sh-latin, [class*="__word"] { font-synthesis: none; }

/* Display font = lining numerals everywhere (seat "1A", "20+", phone numbers stay level). */
[style*="--sh-font-display"], .sh-display, .sh-latin { font-variant-numeric: lining-nums; }

/* ---------- Base helpers ---------- */
.sh-wrap { width: 100%; max-width: var(--sh-container); margin-inline: auto; }
.sh-band { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); padding-block: var(--sh-section); }

.sh-eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font: 500 var(--sh-text-xs)/1.4 var(--sh-font-body);
  letter-spacing: .24em; text-transform: uppercase; color: var(--sh-sand);
}
.sh-eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--sh-red); }
.sh-eyebrow--center::after { content: ""; width: 28px; height: 1px; background: var(--sh-red); }

.sh-h1, .sh-h2, .sh-h3, .sh-h4 { font-family: var(--sh-font-heading); font-weight: 300; line-height: 1.3; letter-spacing: -.005em; margin: 0; text-wrap: balance; }
.sh-h1 { font-size: var(--sh-h1); }
.sh-h2 { font-size: var(--sh-h2); }
.sh-h3 { font-size: var(--sh-h3); }
.sh-h4 { font-size: var(--sh-h4); }
.sh-display { font-variant-numeric: lining-nums; font-family: var(--sh-font-display); font-weight: 400; font-size: var(--sh-display); line-height: .95; letter-spacing: -.01em; }
.sh-lead { font: 300 var(--sh-text-lg)/1.9 var(--sh-font-body); max-width: 60ch; margin: 0; }
.sh-body { font: 300 var(--sh-text-md)/1.9 var(--sh-font-body); max-width: 62ch; margin: 0; }
.sh-latin { font-family: var(--sh-font-display); font-style: normal; font-weight: 400; font-variant-numeric: lining-nums; }

/* ---------- Buttons ---------- */
.sh-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 48px; padding: 14px 32px;
  font: 500 var(--sh-text-sm)/1 var(--sh-font-body); letter-spacing: .08em;
  text-decoration: none; cursor: pointer;
  border: var(--sh-line) solid transparent; border-radius: var(--sh-radius-0);
  transition: background-color var(--sh-dur) var(--sh-ease), color var(--sh-dur) var(--sh-ease), border-color var(--sh-dur) var(--sh-ease);
}
.sh-btn svg { width: 16px; height: 16px; transition: transform var(--sh-dur) var(--sh-ease); }
.sh-btn:hover svg { transform: translateX(4px); }
.sh-btn:focus-visible { outline: 2px solid var(--sh-sand); outline-offset: 3px; }
.sh-btn--primary { background: var(--sh-navy-800); color: var(--sh-ivory-50); border-color: var(--sh-navy-800); }
.sh-btn--primary:hover { background: var(--sh-navy-700); border-color: var(--sh-navy-700); }
.sh-btn--outline { background: transparent; color: var(--sh-navy-800); border-color: var(--sh-navy-800); }
.sh-btn--outline:hover { background: var(--sh-navy-800); color: var(--sh-ivory-50); }
.sh-btn--light { background: transparent; color: var(--sh-ivory-50); border-color: rgba(251, 248, 243, .6); }
.sh-btn--light:hover { background: var(--sh-ivory-50); color: var(--sh-navy-800); border-color: var(--sh-ivory-50); }
.sh-btn--text { min-height: 0; padding: 6px 0; background: none; color: inherit; border: 0; border-bottom: 1px solid currentColor; }
.sh-btn--text:hover { color: var(--sh-red); }

/* ---------- Nav ---------- */
.sh-nav { display: flex; align-items: center; justify-content: space-between; gap: var(--sh-s5); }
.sh-nav__logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.sh-nav__logo img { width: 52px; height: auto; }
.sh-nav__word { font: 400 1.05rem/1.1 var(--sh-font-display); letter-spacing: .14em; text-transform: uppercase; }
.sh-nav__word small { display: block; font: 400 .62rem/1.4 var(--sh-font-body); letter-spacing: .3em; opacity: .7; }
.sh-nav__menu { display: flex; gap: clamp(16px, 2.4vw, 36px); list-style: none; margin: 0; padding: 0; }
.sh-nav__menu a { position: relative; display: inline-block; padding: 10px 0; font: 400 .92rem/1 var(--sh-font-body); color: inherit; text-decoration: none; }
.sh-nav__menu a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: var(--sh-red); transform: scaleX(0); transform-origin: left; transition: transform var(--sh-dur) var(--sh-ease); }
.sh-nav__menu a:hover::after, .sh-nav__menu a[aria-current="page"]::after { transform: scaleX(1); }
.sh-lang { display: inline-flex; border: 1px solid currentColor; border-radius: var(--sh-radius-pill); opacity: .85; }
.sh-lang button { font: 500 .72rem/1 var(--sh-font-body); letter-spacing: .1em; padding: 8px 12px; background: none; border: 0; color: inherit; cursor: pointer; border-radius: var(--sh-radius-pill); }
.sh-lang button { opacity: .6; }
.sh-lang button[aria-pressed="true"] { opacity: 1; text-decoration: underline; text-decoration-color: var(--sh-red); text-underline-offset: 5px; }
.sh-lang button:focus-visible { outline: 2px solid var(--sh-sand); outline-offset: 1px; }
.sh-burger { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; background: none; border: 0; color: inherit; }
@media (max-width: 960px) { .sh-nav__menu { display: none; } .sh-burger { display: inline-flex; } }

/* ---------- Float contact ---------- */
/* Shared: fixed at the right edge, vertically centred; every link shows its name on hover/focus. */
.sh-float { position: fixed; top: 50%; right: 0; transform: translateY(-50%); z-index: 50; display: flex; flex-direction: column; align-items: center; }
.sh-float a { position: relative; width: 46px; height: 46px; display: grid; place-items: center; text-decoration: none; color: inherit; transition: color .3s var(--sh-ease), background-color .3s var(--sh-ease); }
.sh-float a:focus-visible { outline: 2px solid var(--sh-sand); outline-offset: -3px; }
.sh-float svg { width: 18px; height: 18px; }
.sh-float a > span { position: absolute; right: calc(100% + 12px); top: 50%; transform: translate(6px, -50%); white-space: nowrap; pointer-events: none; opacity: 0;
  font: 500 .7rem/1 var(--sh-font-body); letter-spacing: .14em; text-transform: uppercase; padding: 9px 12px; transition: opacity .3s var(--sh-ease), transform .3s var(--sh-ease); }
.sh-float a:hover > span, .sh-float a:focus-visible > span { opacity: 1; transform: translate(0, -50%); }
@media (max-width: 767px) { .sh-float a { width: 42px; height: 42px; } .sh-float a > span { display: none; } }

/* A · Glass — slim frosted navy rail with a vertical "Contact" caption, for dark photographic pages. */
.sh-float--glass { right: 0; padding: 14px 0 8px; padding-right: env(safe-area-inset-right, 0px); color: var(--sh-ivory-50);
  background: rgba(11, 20, 40, .55); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid rgba(251, 248, 243, .14); border-right: 0; }
.sh-float--glass::before { content: "Contact"; writing-mode: vertical-rl; transform: rotate(180deg); font: 500 .6rem/1 var(--sh-font-body); letter-spacing: .32em; text-transform: uppercase; color: var(--sh-sand); padding-bottom: 12px; margin-bottom: 6px; border-bottom: 1px solid rgba(251, 248, 243, .14); }
.sh-float--glass a + a { border-top: 1px solid rgba(251, 248, 243, .08); }
.sh-float--glass a:hover { color: var(--sh-red); }
.sh-float--glass a > span { background: var(--sh-navy-900); color: var(--sh-ivory-50); }

/* B · Pill — floating ivory capsule held off the edge, navy icons, a red dot marks the hovered item. */
.sh-float--pill { right: max(18px, calc(env(safe-area-inset-right, 0px) + 12px)); gap: 2px; padding: 8px 4px; color: var(--sh-navy-800);
  background: var(--sh-ivory-50); border: 1px solid var(--sh-ivory-300); border-radius: var(--sh-radius-pill); box-shadow: 0 18px 40px -18px rgba(11, 20, 40, .35); }
.sh-float--pill a { border-radius: 50%; }
.sh-float--pill a:hover { background: var(--sh-navy-800); color: var(--sh-ivory-50); }
.sh-float--pill a::after { content: ""; position: absolute; left: -3px; top: 50%; width: 4px; height: 4px; margin-top: -2px; border-radius: 50%; background: var(--sh-red); opacity: 0; transition: opacity .3s; }
.sh-float--pill a:hover::after { opacity: 1; }
.sh-float--pill a > span { background: var(--sh-navy-800); color: var(--sh-ivory-50); right: calc(100% + 16px); }
@media (max-width: 767px) { .sh-float--pill { right: max(10px, calc(env(safe-area-inset-right, 0px) + 6px)); } }

/* C · Stub — a ticket stub: navy tab, punched notch at the top, dashed tear lines between items, mono codes on hover. */
.sh-float--stub { right: 0; padding: 22px 0 6px; padding-right: env(safe-area-inset-right, 0px); color: var(--sh-ivory-50); background: var(--sh-navy-800); border: 1px solid rgba(184, 155, 106, .35); border-right: 0; border-radius: 6px 0 0 6px; }
.sh-float--stub::before { content: ""; position: absolute; top: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--sh-ivory-100); box-shadow: inset 0 1px 2px rgba(11, 20, 40, .5); }
.sh-float--stub a + a { border-top: 1px dashed rgba(251, 248, 243, .22); }
.sh-float--stub a:hover { background: var(--sh-navy-700); color: var(--sh-ivory-50); }
.sh-float--stub a:hover svg { color: var(--sh-red); }
.sh-float--stub a > span { background: var(--sh-ivory-50); color: var(--sh-navy-800); font-family: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace; letter-spacing: .1em; border: 1px dashed var(--sh-navy-500); }

/* ---------- Cards ---------- */
.sh-card { display: flex; flex-direction: column; background: var(--sh-ivory-50); border: 1px solid var(--sh-ivory-300); }
.sh-card__media { aspect-ratio: 4 / 5; overflow: hidden; }
.sh-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--sh-ease); }
.sh-card:hover .sh-card__media img { transform: scale(1.04); }
.sh-card__body { display: flex; flex-direction: column; gap: var(--sh-s3); padding: var(--sh-s5); }
.sh-tag { font: 500 .68rem/1 var(--sh-font-body); letter-spacing: .22em; text-transform: uppercase; color: var(--sh-sand); }

/* ---------- Form ---------- */
.sh-field { display: flex; flex-direction: column; gap: 8px; }
.sh-field label { font: 500 .82rem/1.2 var(--sh-font-body); letter-spacing: .01em; color: var(--sh-slate); }  /* Thai labels: no wide tracking */
.sh-field input, .sh-field textarea { font: 300 1rem/1.5 var(--sh-font-body); color: var(--sh-ink); background: transparent; border: 0; border-bottom: 1px solid var(--sh-ivory-300); padding: 10px 0; border-radius: 0; }
.sh-field input:focus, .sh-field textarea:focus { outline: none; border-bottom-color: var(--sh-navy-800); box-shadow: 0 1px 0 0 var(--sh-navy-800); }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; } }

/* ---------- Back to top (one style per template; shown after scrolling) ---------- */
.sh-top { position: fixed; right: max(20px, calc(env(safe-area-inset-right, 0px) + 12px)); bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 55;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; border: 0; padding: 0; font: inherit; text-decoration: none;
  opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .4s var(--sh-ease), transform .4s var(--sh-ease), visibility .4s, background-color .3s, color .3s; }
.sh-top.is-on { opacity: 1; visibility: visible; transform: none; }
.sh-top:focus-visible { outline: 2px solid var(--sh-sand); outline-offset: 3px; }
.sh-top svg { width: 18px; height: 18px; }

/* A · Ring — ivory circle, pale track, sand arc that fills as you scroll, thin navy chevron. Reads on dark photos and ivory bands. */
.sh-top--ring { width: 58px; height: 58px; border-radius: 50%; color: var(--sh-navy-800); background: rgba(251, 248, 243, .94); box-shadow: 0 14px 34px -16px rgba(11, 20, 40, .45); }
.sh-top .ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.sh-top .ring circle { fill: none; }
.sh-top--ring .ring .track { stroke: #DCE3EE; stroke-width: 1.5; }
.sh-top--ring .ring .bar { stroke: var(--sh-sand); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 169.6; stroke-dashoffset: 169.6; transition: stroke-dashoffset .15s linear; }
.sh-top--ring .chev { width: 16px; height: 16px; transition: transform .4s var(--sh-ease); }
.sh-top--ring:hover .chev { transform: translateY(-3px); }
.sh-top--ring:hover { background: var(--sh-ivory-50); }

/* B · Pill — tall ivory capsule with a vertical "Top" label. */
.sh-top--pill { flex-direction: column; width: 46px; padding: 14px 0; border-radius: var(--sh-radius-pill); color: var(--sh-navy-800); background: var(--sh-ivory-50); border: 1px solid var(--sh-ivory-300); box-shadow: 0 18px 40px -18px rgba(11, 20, 40, .35); }
.sh-top--pill span { writing-mode: vertical-rl; font: 500 .62rem/1 var(--sh-font-body); letter-spacing: .3em; text-transform: uppercase; }
.sh-top--pill::after { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--sh-red); }
.sh-top--pill:hover { background: var(--sh-navy-800); color: var(--sh-ivory-50); border-color: var(--sh-navy-800); }

/* C · Gate — navy "gate" disc: dashed track like a ticket perforation, red flight-path arc fills with scroll, plane climbs on hover, mono GATE label. */
.sh-top--gate { width: 62px; height: 62px; border-radius: 50%; flex-direction: column; gap: 2px; color: var(--sh-ivory-50); background: var(--sh-navy-800); box-shadow: 0 14px 34px -16px rgba(11, 20, 40, .6); }
.sh-top--gate .ring .track { stroke: rgba(251, 248, 243, .35); stroke-width: 1; stroke-dasharray: 3 4; }
.sh-top--gate .ring .bar { stroke: var(--sh-red); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 182.2; stroke-dashoffset: 182.2; transition: stroke-dashoffset .15s linear; }
.sh-top--gate .plane { width: 18px; height: 18px; transition: transform .5s var(--sh-ease); }
.sh-top--gate small { font: 500 .5rem/1 "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace; letter-spacing: .2em; color: var(--sh-sand); }
.sh-top--gate:hover .plane { transform: translateY(-4px); }

@media (max-width: 767px) { .sh-top { right: 14px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); } .sh-top--ring { width: 50px; height: 50px; } .sh-top--gate { width: 54px; height: 54px; } }

/* ================= Language switchers (one per template) ================= */
/* A · Globe dropdown — quiet "TH ▾" over the photo, frosted panel with native names. */
.lgA { position: relative; }
.lgA__btn { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 4px; background: none; border: 0; color: inherit; cursor: pointer; font: 500 .78rem/1 var(--sh-font-body); letter-spacing: .16em; }
.lgA__btn svg { width: 16px; height: 16px; }
.lgA__btn .chev { width: 12px; height: 12px; transition: transform .35s var(--sh-ease); }
.lgA__btn[aria-expanded="true"] .chev { transform: rotate(180deg); }
.lgA__btn:focus-visible { outline: 2px solid var(--sh-sand); outline-offset: 3px; }
.lgA__menu { position: absolute; right: 0; top: calc(100% + 12px); min-width: 190px; margin: 0; padding: 8px; list-style: none; z-index: 40;
  background: rgba(11, 20, 40, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid rgba(251, 248, 243, .16);
  transform-origin: top right; animation: lgA-in .35s var(--sh-ease); }
@keyframes lgA-in { from { opacity: 0; transform: translateY(-6px) scale(.98); } }
.lgA__menu button { width: 100%; display: flex; align-items: center; gap: 14px; padding: 12px 12px; background: none; border: 0; color: var(--sh-ivory-50); cursor: pointer; text-align: left; font: 300 .92rem/1 var(--sh-font-body); }
.lgA__menu button b { width: 26px; font: 500 .7rem/1 var(--sh-font-body); letter-spacing: .14em; color: var(--sh-sand); }
.lgA__menu button:hover { background: rgba(251, 248, 243, .06); }
.lgA__menu button[aria-pressed="true"]::after { content: ""; margin-left: auto; width: 6px; height: 6px; border-radius: 50%; background: var(--sh-red); }
.lgA__menu button:focus-visible { outline: 2px solid var(--sh-sand); outline-offset: -2px; }

/* B · Editorial slashes — typeset "TH / EN / 中文", current one underlined in red. */
.lgB { display: inline-flex; align-items: center; gap: 2px; font: 400 .8rem/1 var(--sh-font-display); letter-spacing: .12em; }
.lgB button { position: relative; padding: 8px 6px; background: none; border: 0; color: inherit; cursor: pointer; font: inherit; opacity: .6; transition: opacity .3s; }
.lgB button::after { content: ""; position: absolute; left: 6px; right: 6px; bottom: 3px; height: 1px; background: var(--sh-red); transform: scaleX(0); transition: transform .4s var(--sh-ease); }
.lgB button:hover { opacity: 1; }
.lgB button[aria-pressed="true"] { opacity: 1; }
.lgB button[aria-pressed="true"]::after { transform: scaleX(1); }
.lgB span { opacity: .35; font-style: italic; }
.lgB button:focus-visible { outline: 2px solid var(--sh-sand); outline-offset: 1px; }

/* C · Seat tiles — "LANG" label and three seat-letter tiles; the chosen seat is navy. */
.lgC { display: inline-flex; align-items: center; gap: 4px; font-family: var(--mono, "IBM Plex Mono", ui-monospace, monospace); }
.lgC small { margin-right: 6px; font-size: .56rem; letter-spacing: .22em; color: var(--sh-slate); }
.lgC button { width: 34px; height: 34px; display: grid; place-items: center; padding: 0; cursor: pointer; font: 500 .72rem/1 var(--mono, "IBM Plex Mono", ui-monospace, monospace); color: var(--sh-navy-800); background: transparent; border: 1px dashed var(--sh-ivory-300); border-radius: 4px; transition: background-color .3s, color .3s, border-color .3s, transform .3s var(--sh-ease); }
.lgC button:hover { border-color: var(--sh-navy-800); transform: translateY(-2px); }
.lgC button[aria-pressed="true"] { background: var(--sh-navy-800); color: var(--sh-ivory-50); border: 1px solid var(--sh-navy-800); }
.lgC button:focus-visible { outline: 2px solid var(--sh-sand); outline-offset: 2px; }

/* ================= Logo roundel — keeps the client's full-colour logo legible on dark/photo grounds ================= */
.sh-roundel { display: inline-grid; place-items: center; aspect-ratio: 1; border-radius: 50%; background: var(--sh-ivory-50); box-shadow: 0 0 0 1px rgba(184, 155, 106, .5), 0 10px 30px -12px rgba(0, 0, 0, .5); }
.sh-roundel img { width: 78%; height: auto; }

/* ================= Motion: scroll reveal (content is visible by default; only below-the-fold items are prepared) ================= */
.rv { transition: opacity .9s var(--sh-ease), transform .9s var(--sh-ease), clip-path 1.1s var(--sh-ease), filter .9s var(--sh-ease); transition-delay: var(--d, 0s); }
.rv.pre[data-a="up"] { opacity: 0; transform: translateY(28px); }
.rv.pre[data-a="soft"] { opacity: 0; transform: translateY(18px); filter: blur(6px); }
.rv.pre[data-a="zoom"] { opacity: 0; transform: scale(1.06); }
.rv.pre[data-a="wipe"] { clip-path: inset(0 100% 0 0); }
.rv.pre[data-a="slide"] { opacity: 0; transform: translateX(40px); }
.rv.pre[data-a="flip"] { opacity: 0; transform: perspective(600px) rotateX(-70deg); transform-origin: top; }
.rv.pre[data-a="drop"] { opacity: 0; transform: translateY(-30px) rotate(-6deg); }
.rv.pre[data-a="line"] { transform: scaleX(0); transform-origin: left; }
@media (prefers-reduced-motion: reduce) { .rv, .rv.pre { opacity: 1 !important; transform: none !important; clip-path: none !important; filter: none !important; transition: none !important; } .lgA__menu { animation: none; } }

/* ================= Mobile drawer — opens from the burger (≤960px); same content in every template, skinned by .sh-drawer--a/b/c ================= */
.sh-drawer { position: fixed; inset: 0; z-index: 80; display: flex; flex-direction: column; gap: 28px; overflow-y: auto;
  padding: calc(20px + env(safe-area-inset-top, 0px)) max(20px, env(safe-area-inset-right, 0px)) calc(28px + env(safe-area-inset-bottom, 0px)) max(20px, env(safe-area-inset-left, 0px));
  background: var(--sh-navy-800); color: var(--sh-ivory-50); animation: drawer-in .45s var(--sh-ease); }
.sh-drawer[hidden] { display: none; }
@keyframes drawer-in { from { opacity: 0; transform: translateY(-12px); } }
.sh-drawer__top { display: flex; justify-content: space-between; align-items: center; }
.sh-drawer__close { width: 44px; height: 44px; display: grid; place-items: center; background: none; border: 1px solid rgba(251, 248, 243, .3); color: inherit; cursor: pointer; }
.sh-drawer__close:focus-visible { outline: 2px solid var(--sh-sand); outline-offset: 2px; }
.sh-drawer nav ul { list-style: none; margin: 0; padding: 0; }
.sh-drawer nav a { display: flex; justify-content: space-between; align-items: center; padding: 18px 0; border-bottom: 1px solid rgba(251, 248, 243, .12); color: inherit; text-decoration: none; font: 400 1.5rem/1.2 var(--sh-font-heading); }
.sh-drawer nav a[aria-current="page"]::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sh-red); }
.sh-drawer__foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; font-size: .9rem; color: var(--sh-mist); }
.sh-drawer__foot a { color: var(--sh-ivory-50); text-decoration: none; }
.sh-drawer--b { background: var(--sh-ivory-100); color: var(--sh-navy-800); }
.sh-drawer--b nav a { border-color: var(--sh-ivory-300); }
.sh-drawer--b .sh-drawer__close { border-color: var(--sh-ivory-300); }
.sh-drawer--b .sh-drawer__foot, .sh-drawer--b .sh-drawer__foot a { color: var(--sh-navy-800); }
.sh-drawer--c nav a { font-family: var(--mono, "IBM Plex Mono", monospace); font-size: 1.05rem; letter-spacing: .08em; border-bottom-style: dashed; }
.sh-drawer--c nav a span { font-family: var(--sh-font-heading); font-size: 1.35rem; letter-spacing: 0; }
@media (prefers-reduced-motion: reduce) { .sh-drawer { animation: none; } }
/* Reveal offsets (slide/drop) must never widen the page. */
main { overflow-x: clip; }
.sh-drawer .lgC button { color: var(--sh-ivory-50); border-color: rgba(251, 248, 243, .35); }
.sh-drawer .lgC button[aria-pressed="true"] { background: var(--sh-ivory-50); color: var(--sh-navy-800); border-color: var(--sh-ivory-50); }
.sh-drawer .lgC small { color: var(--sh-mist); }

/* ================= Touch targets ≥ 44px on touch / small screens ================= */
@media (max-width: 1024px), (pointer: coarse) {
  .sh-btn--text { min-height: 44px; padding: 12px 0; }
  .lgB button { min-width: 40px; min-height: 44px; }
  .lgC button { width: 44px; height: 44px; }
  .s2__dots button, .dots button { width: 44px; height: 44px; }
  .foot ul a, .fA__menu a, .fC__menu a, .crumb a { display: inline-flex; align-items: center; min-height: 44px; }
  .sh-nav__menu a { min-height: 44px; }
  body .s2__dots button, body .s4 .dots button { width: 44px; height: 44px; }
  body .fC__stub a, body .fC__menu a, body .ctA__info a, body .ctC__side a, body .ctB__cards a, body .hC__brand { display: inline-flex; align-items: center; min-height: 44px; }
}
/* end touch */
