/* Vika Thai catalogue — the one stylesheet. Written for this site; it follows the visual language of
   the earlier vikathai.com (dark photographic hero with a floating navigation pill, a tight grotesque
   for headings, mono small caps for labels and numbers, gold accent, sage panels with white cards).
   No inline styles anywhere: the pages run under a strict Content-Security-Policy.
   Two colour schemes on one set of names: light is the bare :root; dark follows the device unless the
   page says data-theme="light", and data-theme="dark" forces it (assets/theme.js sets the attribute from
   the visitor's remembered choice before the first paint). The dark values are the earlier site's and the
   design kit's (packages/ui/src/tokens.ts). Every colour that differs between the schemes is a name here. */

/* ── fonts (SIL Open Font License; files in assets/fonts) ── */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(fonts/inter-latin.woff2) format("woff2");
  unicode-range: U+00??, U+131, U+152-153, U+2BB-2BC, U+2C6, U+2DA, U+2DC, U+304, U+308, U+329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(fonts/inter-cyrillic.woff2) format("woff2");
  unicode-range: U+301, U+400-45F, U+490-491, U+4B0-4B1, U+2116; }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(fonts/inter-tight-latin.woff2) format("woff2");
  unicode-range: U+00??, U+131, U+152-153, U+2BB-2BC, U+2C6, U+2DA, U+2DC, U+304, U+308, U+329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(fonts/inter-tight-cyrillic.woff2) format("woff2");
  unicode-range: U+301, U+400-45F, U+490-491, U+4B0-4B1, U+2116; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/plex-mono-latin.woff2) format("woff2");
  unicode-range: U+00??, U+131, U+152-153, U+2BB-2BC, U+2C6, U+2DA, U+2DC, U+304, U+308, U+329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/plex-mono-cyrillic.woff2) format("woff2");
  unicode-range: U+301, U+400-45F, U+490-491, U+4B0-4B1, U+2116; }
/* Thai and Burmese: Noto Sans Thai and Noto Sans Myanmar. Measured against Inter (tools/type-specimen.mjs):
   the same letter height (0.546-0.548 em) and stroke weight (0.090 em at 400, 0.125-0.130 em at 600), so a
   mixed line needs no size correction. Fetched only by a page that has those letters (the baht sign too). */
@font-face { font-family: "Noto Sans Thai"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(fonts/noto-sans-thai.woff2) format("woff2");
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: "Noto Sans Myanmar"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(fonts/noto-sans-myanmar.woff2) format("woff2");
  unicode-range: U+1000-109F, U+200C-200D, U+25CC, U+A92E, U+A9E0-A9FE, U+AA60-AA7F; }
/* stand-ins with the same line metrics, so text does not jump when the fonts arrive */
@font-face { font-family: "Inter Fallback"; src: local(Arial); ascent-override: 90.44%; descent-override: 22.52%; line-gap-override: 0%; size-adjust: 106%; }
@font-face { font-family: "Inter Tight Fallback"; src: local(Arial); ascent-override: 100.51%; descent-override: 25.03%; line-gap-override: 0%; size-adjust: 94%; }

:root {
  --canvas: #f3f4ef; --surface: #fff; --surface-2: #f9faf6; --field: #eef1ea;
  --line: #e1e5de; --line-int: #ccd3cb; --control: #6f7f76; /* control: the outline of a field one types into (3:1 on its ground), the kit's name */
  --text: #0f1a14; --text-2: #4a5a51; --text-3: #56665d; /* text-3 is 4.7:1 on the sage panel, 6:1 on white */
  --accent: #22382c; --accent-2: #2e4a3a; --accent-soft: #f1ead3; --on-accent: #f3efe0; --tick: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2.5 7.4l3 3 6-6.6' fill='none' stroke='%23f3efe0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --lux: #6f5c22; --gold: #d9c58a; --metal-hi: #f6eecb; --metal-deep: #a58a3c;
  --ok: #10614a; --ok-soft: #dcf0e4; --bad: #8f2417; --bad-soft: #fbe4de;
  --band-a: #dfe8dd; --band-b: #eef2ea; --band-c: rgba(243, 244, 239, .6);
  --band-shade: inset 0 1px 0 rgba(255, 255, 255, .7), inset 0 0 0 1px rgba(34, 56, 44, .04), 0 30px 60px -50px rgba(34, 56, 44, .35);
  --glow-1: rgba(223, 232, 221, .9); --glow-2: rgba(241, 234, 211, .55); --glow-3: rgba(223, 232, 221, .6);
  --hero-ground: #22382c; --glass: rgba(249, 250, 246, .92);
  --map-sea: #dfe8dd; --map-land: #eef2ea; --map-edge: #ccd3cb; --pin-hover: #6f5c22;
  --ph: #2e4a3a; --ph-veil: rgba(11, 18, 14, 0); /* a photo's place before the photo */
  --r0: 6px; --r1: 11px; --r2: 16px; --r3: 20px; --r4: 26px; --pill: 999px;
  --shade: 0 1px 2px rgba(0, 0, 0, .04), 0 12px 28px -18px rgba(0, 0, 0, .28);
  --shade-lg: 0 2px 6px rgba(0, 0, 0, .05), 0 40px 80px -48px rgba(0, 0, 0, .45);
  --ui: "Inter", "Noto Sans Thai", "Noto Sans Myanmar", "Inter Fallback", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --display: "Inter Tight", "Noto Sans Thai", "Noto Sans Myanmar", "Inter Tight Fallback", "Inter", -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", "Noto Sans Thai", "Noto Sans Myanmar", ui-monospace, "SF Mono", "Cascadia Code", "Roboto Mono", monospace;
  --fs-hero: clamp(2.375rem, 5.6vw, 4.625rem);
  --fs-band: clamp(1.625rem, 3.6vw, 2.875rem);
  --fs-say: clamp(1.75rem, 4.2vw, 3.375rem);
  --sect: clamp(36px, 6vw, 80px);
  --pad: 10px; --col: 1260px; --nav-h: 70px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  color-scheme: light;
}
/* The dark scheme. tools/build.mjs repeats this block for a device that asks for dark and a page that does
   not say data-theme="light" (one source for the values, two ways in). Text on these grounds, measured by
   tools/theme-check.mjs: text 15.1:1 on a card, text-2 7.7:1, text-3 5.6:1 on a card and 5.0:1 on a tinted panel. */
/* dark:begin */
:root[data-theme="dark"] {
  --canvas: #0b120e; --surface: #131c16; --surface-2: #182219; --field: #0f1712;
  --line: #22302a; --line-int: #2f3f36; --control: #87958c;
  --text: #edf0e9; --text-2: #a3b0a6; --text-3: #87958c;
  --accent: #dccb93; --accent-2: #e6d7a6; --accent-soft: #2a3120; --on-accent: #15200f; --tick: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2.5 7.4l3 3 6-6.6' fill='none' stroke='%2315200f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --lux: #dcc98d; --gold: #e4d4a0; --metal-hi: #faf3d6; --metal-deep: #b59c53;
  --ok: #8ce0bd; --ok-soft: #123f34; --bad: #ffab9c; --bad-soft: #46201b;
  --band-a: #17261d; --band-b: #101913; --band-c: rgba(11, 18, 14, .5);
  --band-shade: inset 0 1px 0 rgba(255, 255, 255, .05), inset 0 0 0 1px rgba(220, 203, 147, .05), 0 30px 60px -50px rgba(0, 0, 0, .8);
  --glow-1: rgba(34, 56, 44, .62); --glow-2: rgba(220, 203, 147, .06); --glow-3: rgba(34, 56, 44, .4);
  --hero-ground: #142019; --glass: rgba(19, 28, 22, .9);
  --map-sea: #101913; --map-land: #1c2d22; --map-edge: #35473c; --pin-hover: #faf3d6;
  --ph: #1a2a20; --ph-veil: rgba(11, 18, 14, .38);
  --shade: inset 0 1px 0 rgba(255, 255, 255, .05), 0 1px 2px rgba(0, 0, 0, .35), 0 12px 28px -18px rgba(0, 0, 0, .7);
  --shade-lg: inset 0 1px 0 rgba(255, 255, 255, .07), 0 2px 6px rgba(0, 0, 0, .45), 0 40px 80px -48px rgba(0, 0, 0, .85);
  color-scheme: dark;
}
/* dark:end */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --canvas: #0b120e; --surface: #131c16; --surface-2: #182219; --field: #0f1712;
  --line: #22302a; --line-int: #2f3f36; --control: #87958c;
  --text: #edf0e9; --text-2: #a3b0a6; --text-3: #87958c;
  --accent: #dccb93; --accent-2: #e6d7a6; --accent-soft: #2a3120; --on-accent: #15200f; --tick: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2.5 7.4l3 3 6-6.6' fill='none' stroke='%2315200f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --lux: #dcc98d; --gold: #e4d4a0; --metal-hi: #faf3d6; --metal-deep: #b59c53;
  --ok: #8ce0bd; --ok-soft: #123f34; --bad: #ffab9c; --bad-soft: #46201b;
  --band-a: #17261d; --band-b: #101913; --band-c: rgba(11, 18, 14, .5);
  --band-shade: inset 0 1px 0 rgba(255, 255, 255, .05), inset 0 0 0 1px rgba(220, 203, 147, .05), 0 30px 60px -50px rgba(0, 0, 0, .8);
  --glow-1: rgba(34, 56, 44, .62); --glow-2: rgba(220, 203, 147, .06); --glow-3: rgba(34, 56, 44, .4);
  --hero-ground: #142019; --glass: rgba(19, 28, 22, .9);
  --map-sea: #101913; --map-land: #1c2d22; --map-edge: #35473c; --pin-hover: #faf3d6;
  --ph: #1a2a20; --ph-veil: rgba(11, 18, 14, .38);
  --shade: inset 0 1px 0 rgba(255, 255, 255, .05), 0 1px 2px rgba(0, 0, 0, .35), 0 12px 28px -18px rgba(0, 0, 0, .7);
  --shade-lg: inset 0 1px 0 rgba(255, 255, 255, .07), 0 2px 6px rgba(0, 0, 0, .45), 0 40px 80px -48px rgba(0, 0, 0, .85);
  color-scheme: dark;
} }
@view-transition { navigation: auto; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; background: var(--canvas); scroll-behavior: smooth; scroll-padding-top: 16px; }
/* the ground: warm off-white with a breath of sage from the top and of sand from the side, not a flat sheet */
body { margin: 0; color: var(--text); font: 400 1rem/1.5 var(--ui); -webkit-font-smoothing: antialiased; min-height: 100svh;
  background: radial-gradient(1200px 620px at 12% -8%, var(--glow-1), transparent 70%),
    radial-gradient(900px 700px at 104% 38%, var(--glow-2), transparent 68%),
    radial-gradient(1100px 800px at -6% 82%, var(--glow-3), transparent 70%), var(--canvas); }
h1, h2, h3, p, ul, ol, dl, dd, figure, fieldset, table { margin: 0; padding: 0; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
img, svg { display: block; }
img { max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.hero :focus-visible, [data-bar="over"] .nav :focus-visible, .lb :focus-visible { outline-color: #fff; } /* on a photograph the ring is white in both schemes */
h1, h2 { font-family: var(--display); font-weight: 600; letter-spacing: -.035em; line-height: 1.03; text-wrap: balance; }
h3 { font-family: var(--display); font-weight: 600; letter-spacing: -.02em; line-height: 1.2; }
.i { width: 1.15em; height: 1.15em; flex: none; }
/* Thai and Burmese stack marks above and below the letters: taller lines, no tight tracking, no small caps */
:lang(th) { line-height: 1.7; } :lang(my) { line-height: 1.9; }
:lang(th) :is(h1, h2, h3), :lang(my) :is(h1, h2, h3) { letter-spacing: 0; }
:lang(th) :is(h1, h2) { line-height: 1.3; } :lang(my) :is(h1, h2) { line-height: 1.55; }
:lang(th) :is(.eyebrow, legend, th), :lang(my) :is(.eyebrow, legend, th) { font-family: var(--ui); font-size: .8125rem; letter-spacing: 0; text-transform: none; }
.vh { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 300; background: var(--accent); color: var(--on-accent); padding: 10px 16px; border-radius: var(--pill); }
.skip:focus { top: 12px; }
.mono, .money { font-family: var(--mono); font-variant-numeric: lining-nums tabular-nums; }
.eyebrow { font: 400 .6875rem/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }
.muted { color: var(--text-2); }

/* ── page frame ── */
.shell { padding: var(--pad); }
.wrap { padding-inline: max(20px, calc((100% - var(--col)) / 2)); }
.sect { margin-top: var(--sect); }

.nav { position: relative; z-index: 30; display: flex; align-items: center; gap: 12px; min-height: var(--nav-h); padding-block: 16px; }
.brand { display: inline-flex; align-items: center; height: 38px; text-decoration: none; color: var(--lux); }
.brand svg { height: 38px; fill: currentColor; }
.brand-word { aspect-ratio: 1148 / 422; }
.brand-mark { aspect-ratio: 768 / 911; display: none; }
.nav-mid { position: absolute; left: 50%; transform: translateX(-50%); display: flex; gap: 3px; padding: 5px; border: 1px solid var(--line); border-radius: var(--pill); background: var(--surface-2); }
.nav-mid a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: var(--pill); font-size: .9375rem; color: var(--text-2); text-decoration: none; white-space: nowrap; }
.nav-mid a:hover, .nav-mid a[aria-current] { background: var(--accent-soft); color: var(--text); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.lang { display: inline-flex; padding: 4px; border: 1px solid var(--line-int); border-radius: var(--pill); background: var(--surface-2); }
.lang a { min-width: 40px; padding: 7px 10px; border-radius: var(--pill); font-size: .875rem; font-weight: 500; text-align: center; text-decoration: none; color: var(--text-2); }
.lang a[aria-current] { background: var(--accent); color: var(--on-accent); }
.nav-saved { position: relative; }
.badge-n { font: 400 .6875rem/1 var(--mono); opacity: .8; }
/* the colour scheme: one button in the header that steps device -> light -> dark (it shows the current one),
   and the three named choices in the footer. Both are there only when the script is (html.has-js). */
.theme-btn, .theme-set { display: none; }
.has-js .theme-btn { display: inline-flex; }
.theme-btn .i { display: none; font-size: 1.125rem; }
:root:not([data-theme]) .theme-btn .t-system, :root[data-theme="light"] .theme-btn .t-light, :root[data-theme="dark"] .theme-btn .t-dark { display: block; }
.has-js .theme-set { display: inline-flex; padding: 4px; border: 1px solid var(--line-int); border-radius: var(--pill); background: var(--surface-2); }
.theme-set button { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border-radius: var(--pill); font-size: .8125rem; font-weight: 500; color: var(--text-2); }
.theme-set button:hover { color: var(--text); }
:root:not([data-theme]) .theme-set [data-theme-set="system"], :root[data-theme="light"] .theme-set [data-theme-set="light"], :root[data-theme="dark"] .theme-set [data-theme-set="dark"] { background: var(--accent); color: var(--on-accent); }
/* over a dark hero: the same navigation in white ink */
[data-bar="over"] .nav { position: absolute; inset: var(--pad) var(--pad) auto var(--pad); padding-inline: max(20px, calc((100% - var(--col)) / 2)); }
[data-bar="over"] .brand { color: var(--gold); }
[data-bar="over"] .nav-mid, [data-bar="over"] .lang, [data-bar="over"] .nav .pill-line { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .22); color: #fff; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
[data-bar="over"] .nav-mid a, [data-bar="over"] .lang a { color: rgba(255, 255, 255, .86); }
[data-bar="over"] .nav-mid a:hover, [data-bar="over"] .nav-mid a[aria-current] { background: rgba(255, 255, 255, .16); color: #fff; }
[data-bar="over"] .lang a[aria-current] { background: #fff; color: #000; }

/* ── pills, chips ── */
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1px solid transparent; border-radius: var(--pill);
  font: 500 .9375rem/1 var(--ui); color: var(--text); white-space: nowrap; text-decoration: none; cursor: pointer; transition: background .16s var(--ease), border-color .16s var(--ease), transform .09s; }
.pill:active { transform: scale(.98); }
.pill-line { border-color: var(--line-int); background: var(--surface-2); }
.pill-line:hover { border-color: var(--text-3); }
.pill-primary { background: var(--accent); color: var(--on-accent); font-weight: 600; }
.pill-primary:hover { background: var(--accent-2); }
.pill-gold { background: linear-gradient(135deg, var(--metal-hi) 0%, var(--gold) 46%, var(--metal-deep) 100%); border-color: rgba(165, 138, 60, .55); color: #000; font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), inset 0 -1px 0 rgba(165, 138, 60, .6), var(--shade); }
.pill-white { background: #fff; color: #000; font-weight: 600; }
.pill-glass { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .22); color: #fff; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.pill-glass:hover { background: rgba(255, 255, 255, .22); }
.pill-icon { width: 44px; padding: 0; }
.pill-wide { width: 100%; min-height: 48px; }
.pill[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.pill .n, .opt .n { font: 400 .6875rem/1 var(--mono); color: var(--text-3); }
.pill[aria-pressed="true"] .n, .opt[aria-pressed="true"] .n { color: inherit; opacity: .7; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border: 1px solid var(--line); border-radius: var(--pill); background: var(--surface-2); color: var(--text-2); font-size: .8125rem; line-height: 1.2; white-space: nowrap; }
.chip-photo { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .22); color: #fff; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.chip-ok { color: var(--ok); }
.chip .i { font-size: .875rem; margin-right: -2px; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); flex: none; }
.opt { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px; border: 1px solid var(--line-int); border-radius: var(--pill); background: var(--surface-2); font: 500 .9375rem/1 var(--ui); white-space: nowrap; text-decoration: none; }
.opt:hover { border-color: var(--text-3); }
.opt[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.link { color: var(--lux); text-decoration: none; font-weight: 500; }
.link:hover { text-decoration: underline; }

/* ── hero ── */
.hero { position: relative; isolation: isolate; display: flex; flex-direction: column; min-height: min(70vh, 600px); border-radius: var(--r4); overflow: clip; background: var(--hero-ground); color: #fff; }
.hero-pic, .hero-pic img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-pic { z-index: -2; }
.hero-pic img { object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(6, 14, 10, .78) 0%, rgba(6, 14, 10, .3) 34%, rgba(6, 14, 10, .36) 54%, rgba(6, 14, 10, .9) 100%), rgba(34, 56, 44, .38); }
/* a fine grain over the photograph, as on the earlier site (one small tile, drawn once) */
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .06; mix-blend-mode: soft-light; pointer-events: none; background-size: 180px 180px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.hero-404 { min-height: min(88vh, 760px); }
.hero-404-ways { display: grid; gap: 22px; }
.hero-top { position: absolute; top: calc(var(--nav-h) + 8px); left: max(20px, calc((100% - var(--col)) / 2)); }
.hero-note { position: absolute; top: calc(var(--nav-h) + 12px); right: max(20px, calc((100% - var(--col)) / 2)); font: 400 .6875rem/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
.hero-body { margin-top: auto; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 40px; align-items: end; padding: calc(var(--nav-h) + 72px) max(20px, calc((100% - var(--col)) / 2)) 24px; }
.hero h1 { font-size: var(--fs-hero); color: #fff; }
.hero h1 span { display: block; color: rgba(255, 255, 255, .5); }
.hero-say { max-width: 38ch; margin-bottom: 16px; font-size: .9375rem; line-height: 1.55; color: rgba(255, 255, 255, .7); text-wrap: pretty; }
.hero-say b { color: #fff; font-weight: 500; }
.hero-deal { margin-bottom: 8px; font-size: .9375rem; color: rgba(255, 255, 255, .7); }
.hero-deal b { color: #fff; font-weight: 500; }
.acts { display: flex; flex-wrap: wrap; gap: 8px; }
.hero .chip { margin-bottom: 12px; }

/* ── bands and headings ── */
.band { border-radius: var(--r4); background: linear-gradient(168deg, var(--band-a) 0%, var(--band-b) 62%, var(--band-c) 100%); padding: clamp(16px, 4.4vw, 56px);
  box-shadow: var(--band-shade); }
.band + .band { margin-top: 16px; }
.band-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 12px 24px; margin-bottom: clamp(20px, 3.4vw, 36px); }
.band-head h2 { max-width: 22ch; font-size: var(--fs-band); }
.band-head p:not(.eyebrow) { max-width: 38ch; font-size: .9375rem; color: var(--text-2); text-wrap: pretty; }
.band-head .eyebrow { margin-bottom: 12px; }
.say { text-align: center; padding-block: var(--sect) 0; }
.say h2 { font-size: var(--fs-say); max-width: 20ch; margin-inline: auto; }
.say h2 span { color: var(--text-3); }
.say p { max-width: 44ch; margin: 20px auto 0; color: var(--text-2); text-wrap: pretty; }
.card-box { border: 1px solid var(--line); border-radius: var(--r2); background: var(--surface); box-shadow: var(--shade); }

/* fact cards */
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.fact { display: flex; flex-direction: column; gap: 6px; min-height: 148px; padding: 20px; border: 1px solid var(--line); border-radius: var(--r2); background: var(--surface); box-shadow: var(--shade); }
.fact-ico { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 8px; border-radius: var(--r1); background: var(--accent-soft); color: var(--lux); font-size: 20px; }
.fact-num { margin-top: auto; font: 600 clamp(1.625rem, 2.4vw, 1.875rem)/1.05 var(--display); letter-spacing: -.03em; font-variant-numeric: lining-nums tabular-nums; }
.fact-word { margin-top: auto; font: 600 1.125rem/1.2 var(--display); letter-spacing: -.02em; }
.fact h3 { font-size: 1.0625rem; }
/* a worded fact (stage, handover, type...) is a short tile: icon at the side */
.fact-s { flex-direction: row; align-items: center; gap: 14px; min-height: 0; padding: 14px 16px; }
.fact-s .fact-ico { margin: 0; }
.fact-s > div { gap: 4px; min-width: 0; margin: 0; }
.fact-s .fact-word { margin: 0; overflow-wrap: anywhere; }
.fact > p:not(.fact-fig) { font-size: .9375rem; color: var(--text-2); text-wrap: pretty; }
.fact > div { display: grid; gap: 8px; margin-top: auto; }
.fact-fig { margin-top: auto; padding-top: 12px; display: flex; align-items: baseline; gap: 8px; font-size: .875rem; color: var(--text-3); }
.fact-fig b { font: 600 1.875rem/1 var(--display); letter-spacing: -.03em; color: var(--text); }

/* tables */
.tbl { overflow: clip; }
.tbl table { width: 100%; border-collapse: separate; border-spacing: 0; }
.tbl th { padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--surface-2); font: 400 .6875rem/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); text-align: left; white-space: nowrap; }
.tbl th .i { display: inline-block; vertical-align: -2px; margin-right: 6px; font-size: .8125rem; }
.tbl td { padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: .9375rem; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover { background: var(--surface-2); }
.tbl .r { text-align: right; }
.tbl td.u-name, .tbl td.t-name { font: 600 .9375rem/1.3 var(--display); letter-spacing: -.01em; }
.tbl td.t-name a { text-decoration: none; }
.tbl td.t-name a:hover { text-decoration: underline; }
.tbl td.u-meta, .tbl td.u-floor, .tbl td.u-price, .tbl td.u-ppm, .tbl td.money { font-family: var(--mono); font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; }
.tbl td.u-price, .tbl td.u-ppm, .tbl th.r { text-align: right; }
.tbl td.u-meta { display: flex; gap: 14px; color: var(--text-2); }
.tbl-note { margin-top: 10px; font-size: .8125rem; color: var(--text-3); }
.tbl-more { padding: 12px 16px; border-top: 1px solid var(--line); background: var(--surface-2); text-align: center; }

/* ── catalogue cards ── */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.card { position: relative; border: 1px solid var(--line); border-radius: var(--r2); background: var(--surface); box-shadow: var(--shade); content-visibility: auto; contain-intrinsic-size: auto 380px; }
.card-a { display: block; height: 100%; padding: 10px 10px 16px; text-decoration: none; }
.well { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r1); overflow: hidden; background-color: var(--ph); }
/* a photo's place before the photo: its own average colour (set by the script) under a slow light sweep;
   on the dark scheme a veil keeps a bright sky from flashing. The sweep runs a few times and stops; it
   stops at once when the photo has arrived (.is-in). */
.well, .shot, .row-ph { background-image: linear-gradient(100deg, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, .16) 50%, rgba(255, 255, 255, 0) 70%), linear-gradient(var(--ph-veil), var(--ph-veil));
  background-size: 220% 100%, 100% 100%; background-repeat: no-repeat; animation: sweep 1.5s ease-in-out 5; }
.is-in { animation: none; background-image: none; }
@keyframes sweep { from { background-position: 130% 0, 0 0; } to { background-position: -130% 0, 0 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
/* a new answer to a filter arrives quietly: the cards rise into place */
.grid.is-fresh > .card { animation: rise .26s var(--ease) both; }
.grid.is-fresh > .card:nth-child(n+2) { animation-delay: 30ms; } .grid.is-fresh > .card:nth-child(n+4) { animation-delay: 60ms; } .grid.is-fresh > .card:nth-child(n+7) { animation-delay: 90ms; }
/* until the catalogue data has arrived the controls are there but quiet (the first cards are already on the page) */
body[data-page="catalogue"]:not([data-ready]) :is([data-f], [data-view], #filters-btn, .sort, .search) { opacity: .55; pointer-events: none; }
body[data-page="catalogue"]:not([data-ready]) .count::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 8px; border-radius: 50%; background: var(--metal-deep); animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .25; } }
/* a link was pressed and the next page is on its way: a thin gold line at the top, never a blank screen */
html.is-leaving::after { content: ""; position: fixed; z-index: 400; left: 0; top: 0; height: 3px; width: 100%; transform-origin: 0 50%; background: linear-gradient(90deg, var(--metal-deep), var(--gold), var(--metal-hi));
  animation: leave 6s cubic-bezier(.1, .7, .2, 1) both; }
@keyframes leave { from { transform: scaleX(0); } 20% { transform: scaleX(.55); } to { transform: scaleX(.94); } }
.well img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.card-a:hover .well img { transform: scale(1.03); }
.well-none { position: absolute; inset: 0; display: grid; place-items: center; font-size: 40px; color: rgba(255, 255, 255, .35); }
.well-scrim { position: absolute; inset: 0; background: linear-gradient(to top, rgba(6, 18, 15, .88) 0%, rgba(6, 18, 15, .6) 24%, rgba(6, 18, 15, .2) 58%, rgba(6, 18, 15, 0) 100%); }
.well .chip-photo { position: absolute; top: 12px; left: 12px; padding: 4px 10px; font: 400 .6875rem/1.3 var(--mono); letter-spacing: .06em; }
.well-price { position: absolute; left: 16px; right: 16px; bottom: 14px; display: flex; flex-direction: column; gap: 2px; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .45); }
.well-price b { font: 600 1.25rem/1.15 var(--display); letter-spacing: -.02em; color: #ecdca6; }
.well-price b.ask { font-size: 1.0625rem; }
.well-price span { font: 400 .75rem/1.3 var(--mono); color: rgba(255, 255, 255, .82); }
.card-name { margin: 14px 6px 6px; font-size: 1.0625rem; }
.card-facts { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0 6px; font-size: .8125rem; line-height: 1.3; color: var(--text-2); }
.f { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; font-variant-numeric: lining-nums tabular-nums; }
.f .i { color: var(--text-3); }
.card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 6px 0; }
.heart { position: absolute; top: 14px; right: 14px; z-index: 2; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: #fff; font-size: 20px; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .5)); }
.heart .on, .heart[aria-pressed="true"] .off { display: none; }
.heart[aria-pressed="true"] .on { display: block; color: #ecdca6; }
.heart-line { position: static; width: 44px; height: 44px; border: 1px solid var(--line-int); background: var(--surface-2); color: var(--text); filter: none; flex: none; }
.heart-line[aria-pressed="true"] .on { color: var(--lux); }
.heart-glass { position: static; width: 44px; height: 44px; border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .14); filter: none; flex: none; }

/* ── home ── */
.areas { display: flex; flex-wrap: wrap; gap: 10px; }
.areas + .areas { margin-top: 14px; }
.cheap-note { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px 16px; justify-content: space-between; font-size: .8125rem; color: var(--text-3); }
.stage-chip { display: inline-flex; padding: 3px 10px; border: 1px solid var(--line); border-radius: var(--pill); font: 400 .6875rem/1.4 var(--mono); letter-spacing: .06em; color: var(--text-2); }

/* ── catalogue page ── */
.cat-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px 24px; padding-top: 28px; }
.cat-head h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 12px; }
.cat-head .lede { max-width: 52ch; font-size: .9375rem; color: var(--text-2); }
.cat-stat { text-align: right; }
.cat-stat .chip { font-family: var(--mono); font-size: .75rem; background: var(--surface); }
.cat-stat p { margin-top: 10px; font: 400 .6875rem/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }
.search { position: relative; margin-top: 28px; }
.search .i { position: absolute; left: 20px; top: 50%; margin-top: -9px; font-size: 18px; color: var(--text-3); pointer-events: none; }
.search input { width: 100%; height: 56px; padding: 0 20px 0 48px; border: 1px solid var(--control); border-radius: var(--pill); background: var(--surface); font-size: 1rem; }
.search input::placeholder { color: var(--text-3); }
.quick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; }
.quick .sep { width: 1px; height: 28px; margin-inline: 4px; background: var(--line-int); }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 10px 0 16px; }
.toolbar .count { margin-left: 8px; font: 400 .75rem/1.3 var(--mono); color: var(--text-3); }
.toolbar .tools { margin-left: auto; display: flex; gap: 8px; }
.sort { position: relative; padding-right: 8px; }
.sort select { appearance: none; -webkit-appearance: none; border: 0; background: none; padding: 0 22px 0 0; height: 42px; font-weight: 500; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: right 9px center, right 4px center; background-size: 5px 5px; background-repeat: no-repeat; }
.filters { margin-bottom: 18px; }
.filters-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.filters-head b { font: 600 1.0625rem/1.2 var(--display); }
.filters-body { display: grid; gap: 20px; padding: 20px 16px; }
.filters legend { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font: 400 .6875rem/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }
.filters-foot { padding: 14px 16px; border-top: 1px solid var(--line); }
.more-box { margin-top: 24px; text-align: center; }
.empty { padding: 56px 20px; text-align: center; }
.empty h2 { font-size: 1.75rem; margin-bottom: 10px; }
.empty p { max-width: 44ch; margin: 0 auto 18px; color: var(--text-2); }
.elsewhere { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 18px; font-size: .9375rem; color: var(--text-2); }
.elsewhere .i { color: var(--text-3); }
.plain-list { columns: 3 220px; font-size: .9375rem; }
.plain-list li { margin-bottom: 4px; }

/* map view */
.mapview { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 20px; align-items: start; }
.map-col { position: sticky; top: 16px; }
.map { border: 1px solid var(--line); border-radius: var(--r2); background: var(--map-sea); padding: 6px; }
.map svg { width: 100%; height: auto; }
.map .island { fill: var(--map-land); stroke: var(--map-edge); stroke-width: 1.5; }
.map .area { font: 400 9.5px var(--mono); letter-spacing: .04em; fill: var(--text-2); }
.pin { cursor: pointer; outline: none; }
.pin .hit { fill: transparent; }
.pin .dot { fill: var(--accent); stroke: var(--on-accent); stroke-width: 1.2; transition: r .15s; }
.pin:hover .dot, .pin:focus-visible .dot { fill: var(--pin-hover); }
.pin.is-sel .dot { fill: var(--metal-deep); stroke: #fff; stroke-width: 2; r: 8px; }
.map-sel { margin-top: 12px; }
.map-sel .hint, .map-note { font-size: .8125rem; color: var(--text-3); }
.map-note { margin-top: 10px; }
.map-list { border: 1px solid var(--line); border-radius: var(--r2); background: var(--surface); box-shadow: var(--shade); overflow: clip; }
.row { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 14px 10px 10px; border-bottom: 1px solid var(--line); text-decoration: none; }
.row:last-child { border-bottom: 0; }
.row:hover { background: var(--surface-2); }
.map-sel .row { border: 1px solid var(--line); border-radius: var(--r2); background: var(--surface); box-shadow: var(--shade); }
.row-ph { position: relative; width: 76px; aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; background-color: var(--ph); }
.row-ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.row-tx { display: grid; gap: 2px; min-width: 0; }
.row-tx b { font: 600 .9375rem/1.3 var(--display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-facts { display: flex; gap: 4px 12px; overflow: hidden; font-size: .75rem; line-height: 1.4; color: var(--text-2); }
.row-price { font: 400 .8125rem/1 var(--mono); white-space: nowrap; }

/* ── project page ── */
.crumb { display: flex; align-items: center; gap: 8px; padding-block: 16px; font: 400 .6875rem/1.3 var(--mono); color: var(--text-3); }
.crumb a { text-decoration: none; }
.crumb a:hover { color: var(--text); }
.crumb .i { font-size: 10px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 332px; gap: 20px; align-items: start; }
.best { position: sticky; top: 16px; padding: 20px; }
.best-price { margin: 14px 0 6px; font: 600 1.875rem/1.05 var(--display); letter-spacing: -.03em; font-variant-numeric: lining-nums tabular-nums; }
.best-sub { font: 400 .75rem/1.4 var(--mono); color: var(--text-3); }
.best-acts { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 10px; }
.best-acts .pill { flex: 1; }
.best-note { margin-top: 12px; font-size: .8125rem; color: var(--text-3); }
.mosaic { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 12px; aspect-ratio: 8 / 3; }
.mosaic[data-n="1"] { grid-template: minmax(0, 1fr) / minmax(0, 1fr); aspect-ratio: 16 / 9; }
.mosaic[data-n="2"] { grid-template: minmax(0, 1fr) / repeat(2, minmax(0, 1fr)); }
.mosaic[data-n="3"] { grid-template-columns: 2fr 1fr; aspect-ratio: 2; }
.mosaic[data-n="4"] { grid-template-columns: 3fr 1fr; grid-template-rows: repeat(3, minmax(0, 1fr)); aspect-ratio: 16 / 9; }
.shot { position: relative; border-radius: var(--r2); overflow: hidden; background-color: var(--ph); cursor: zoom-in; }
.shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.shot::after { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(255, 255, 255, .6); border-radius: 8px; pointer-events: none; }
.mosaic:not([data-n="1"]):not([data-n="2"]) .shot:first-child { grid-area: span 2 / span 2; }
.mosaic[data-n="3"] .shot:first-child { grid-area: span 2 / span 1; }
.mosaic[data-n="4"] .shot:first-child { grid-area: span 3 / span 1; }
.shot-rest { display: none; }
.gallery { position: relative; }
.gallery-all { position: absolute; left: calc(50% - 150px); bottom: 22px; z-index: 2; min-height: 36px; background: rgba(6, 18, 15, .62); border-color: rgba(255, 255, 255, .28); color: #fff; }
.prose { max-width: 62ch; color: var(--text-2); }
.prose p + p { margin-top: 12px; }
.prose.clamped { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 6; line-clamp: 6; overflow: hidden; }
.prose-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; }
.hl { display: grid; gap: 8px; margin-top: 20px; max-width: 62ch; }
.hl li { display: flex; gap: 10px; }
.hl .i { margin-top: 4px; color: var(--lux); }
.where { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 300px); gap: 24px; align-items: start; }
.where .acts { margin-top: 4px; }
.minimap { border: 1px solid var(--line); border-radius: var(--r2); background: var(--map-sea); padding: 6px; }
.minimap svg { width: 100%; height: auto; }
.minimap .island { fill: var(--map-land); stroke: var(--map-edge); stroke-width: 1.5; }
.minimap .area { font: 400 11px var(--mono); fill: var(--text-2); }
.minimap .pin { cursor: default; }
.askbar { display: none; }

/* ── enquiry form ── */
.enq { max-width: 600px; margin-inline: auto; display: grid; gap: 18px; }
.enq-card { padding: clamp(20px, 4vw, 40px) clamp(16px, 4vw, 40px); }
.enq h2 { font-size: clamp(1.5rem, 2.8vw, 2rem); }
.enq .lede { font-size: .9375rem; color: var(--text-2); }
.enq label, .enq .lbl { display: grid; gap: 8px; font: 400 .6875rem/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }
.enq input[type="text"], .enq input[type="tel"], .enq select, .enq textarea { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--control); border-radius: var(--r1); background: var(--field); font: 400 1rem/1.4 var(--ui); letter-spacing: 0; text-transform: none; color: var(--text); }
.enq textarea { resize: vertical; min-height: 110px; }
.enq input:focus, .enq select:focus, .enq textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; background: var(--surface); }
.enq-two { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 12px; }
.enq .hint { font: 400 .8125rem/1.4 var(--ui); letter-spacing: 0; text-transform: none; color: var(--text-3); }
.enq .opt { min-height: 38px; font-size: .875rem; letter-spacing: 0; text-transform: none; font-family: var(--ui); color: var(--text); }
.enq .opt[aria-pressed="true"] { color: var(--on-accent); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.consent { display: flex !important; grid-template-columns: none; align-items: flex-start; gap: 10px; font: 400 .8125rem/1.5 var(--ui) !important; letter-spacing: 0 !important; text-transform: none !important; color: var(--text-2) !important; }
/* the box is drawn here, not left to the browser: empty it is a field with the outline of a control (3:1 on the card in both
   schemes), ticked it fills with the accent. It starts empty; a send without it marks the box and says why beside it. */
.consent input { appearance: none; -webkit-appearance: none; width: 22px; height: 22px; margin: 0; flex: none; border: 1.5px solid var(--control); border-radius: 6px; background: var(--field) center / 14px 14px no-repeat; cursor: pointer; transition: background-color .12s, border-color .12s; }
.consent input:checked { border-color: var(--accent); background-color: var(--accent); background-image: var(--tick); }
.consent input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.consent input[aria-invalid="true"] { border-color: var(--bad); box-shadow: 0 0 0 3px var(--bad-soft); }
.consent span { cursor: pointer; }
.consent-row { display: grid; gap: 8px; }
.consent-need { display: flex; align-items: center; gap: 8px; margin: 0 0 0 32px; font: 500 .875rem/1.4 var(--ui); color: var(--bad); }
.consent-need[hidden] { display: none; }
.consent-need .i { flex: none; width: 18px; height: 18px; }
.enq-send { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; font-size: .8125rem; color: var(--text-3); }
.form-msg { padding: 12px 14px; border-radius: var(--r1); font-size: .9375rem; }
.form-msg[data-kind="error"] { background: var(--bad-soft); color: var(--bad); }
.form-msg[data-kind="ok"] { background: var(--ok-soft); color: var(--ok); }
.enq.is-sent > :not(.form-msg):not(h2) { display: none; }
.contact-list { display: flex; flex-wrap: wrap; gap: 8px; }

/* ── a selection (shared by an agent) and the showcase: the catalogue's cards under a title ── */
.sel-agent { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 20px 0 0; padding: 14px 16px; }
.sel-agent .fact-ico { margin: 0; }
.sel-agent b { display: block; font: 600 1.0625rem/1.2 var(--display); }
.sel-agent .acts { margin-left: auto; }
.sel-grid { margin-top: 20px; }
.card-note { margin: 12px 6px 0; padding: 10px 12px; border-radius: var(--r1); background: var(--accent-soft); font-size: .875rem; line-height: 1.45; color: var(--text); overflow-wrap: anywhere; }
.skel { pointer-events: none; }
.skel .bar { height: 14px; margin: 16px 6px 0; border-radius: 6px; background: var(--field); }
.skel .bar + .bar { width: 58%; margin-bottom: 6px; }
#sel-note { white-space: pre-line; overflow-wrap: anywhere; }
.sel-head { flex-direction: column; align-items: start; }
.sel-head .cat-stat { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; text-align: left; }
.sel-head .cat-stat p { margin: 0; }

/* ── text pages, 404 ── */
.page { max-width: 74ch; padding-block: 28px var(--sect); }
.page h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 16px; }
.page h2 { font-size: 1.375rem; margin: 32px 0 10px; letter-spacing: -.02em; }
.page p { color: var(--text-2); }
.page p + p { margin-top: 10px; }
.page .lede { font-size: 1.0625rem; color: var(--text); }
.notfound { display: grid; gap: 40px; }
.notfound p { margin-bottom: 16px; }

/* ── footer, dock ── */
.foot { margin-top: var(--sect); padding-block: 28px 20px; border-top: 1px solid var(--line); font-size: .8125rem; color: var(--text-3); }
.foot-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; align-items: center; }
.foot-top a { color: var(--lux); text-decoration: none; }
.foot-top .brand { height: 30px; } .foot-top .brand svg { height: 30px; } .foot-top .brand-word { display: block; }
.foot-top p { margin-right: auto; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 16px 0; }
.foot-links a { text-decoration: none; }
.foot-links a:hover { color: var(--text); }
.foot-icons { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.foot-icons .pill { min-height: 40px; width: 40px; padding: 0; color: var(--text-2); }
.dock { display: none; }

/* ── full-screen photo view ── */
.lb { width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(4, 6, 5, .94); color: #f6f5f0; }
.lb::backdrop { background: rgba(4, 6, 5, .94); }
.lb[open] { display: grid; place-items: center; }
.lb img { max-width: min(100vw - 24px, 1600px); max-height: calc(100dvh - 96px); width: auto; height: auto; border-radius: 8px; }
.lb-x, .lb-nav { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; font-size: 20px; }
.lb-x { top: 14px; right: 14px; }
.lb-prev { left: 14px; top: 50%; margin-top: -24px; }
.lb-next { right: 14px; top: 50%; margin-top: -24px; }
.lb-n { position: absolute; left: 0; right: 0; bottom: 16px; text-align: center; font: 400 .75rem/1 var(--mono); letter-spacing: .1em; color: rgba(255, 255, 255, .7); }

/* ── tablet ── */
@media (max-width: 1100px) {
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: minmax(0, 1fr); }
  .best { position: static; }
  .mapview { grid-template-columns: minmax(0, 1fr); }
  .map-col { position: static; max-width: 460px; }
  .tbl .hide-m { display: none; }
}

/* between a phone and a desktop the middle navigation drops its icons, so it and the right-hand group never touch */
@media (max-width: 900px) { .nav-mid a .i { display: none; } }

/* ── phone ── */
@media (max-width: 720px) {
  :root { --pad: 7px; --nav-h: 60px; }
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
  .wrap { padding-inline: 13px; }
  .nav-mid, .nav-saved { display: none; }
  .brand-word { display: none; }
  .brand-mark { display: block; }
  [data-bar="over"] .nav { padding-inline: 13px; }
  .hero { min-height: min(66svh, 560px); }
  .hero-body { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: calc(var(--nav-h) + 76px) 13px 16px; }
  .hero-top { left: 13px; top: var(--nav-h); max-width: calc(100% - 26px); white-space: normal; }
  .hero-note { left: 13px; right: auto; top: calc(var(--nav-h) + 38px); }
  .hero-say { max-width: none; }
  .band { border-radius: var(--r3); }
  .band-head { align-items: start; flex-direction: column; }
  .facts { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .fact { min-height: 0; }
  .facts-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts-row .fact { padding: 12px; gap: 4px; }
  .facts-row .fact:first-child { grid-column: 1 / -1; }
  .facts-row .fact-ico { width: 32px; height: 32px; font-size: 16px; margin-bottom: 4px; }
  .facts-row .fact-num { font-size: 1.25rem; }
  .facts-row .fact-s { gap: 10px; }
  .facts-row .fact-s .fact-ico { margin: 0; }
  .facts-row .fact-word { font-size: 1rem; }
  .grid { gap: 12px; }
  .cat-head { padding-top: 12px; }
  .cat-stat { text-align: left; }
  .search { margin-top: 18px; }
  .search input { height: 52px; }
  .quick { flex-wrap: nowrap; overflow-x: auto; margin-inline: -13px; padding-inline: 13px; scrollbar-width: none; }
  .quick::-webkit-scrollbar { display: none; }
  .toolbar .count { order: 5; width: 100%; margin: 4px 0 0; }
  .sort select { max-width: 150px; }
  /* tables turn into two-line rows: name and price, details and price per m2 */
  .tbl thead { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); }
  .tbl table, .tbl tbody { display: block; }
  .tbl tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name price" "meta ppm"; gap: 2px 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
  .tbl tbody tr:last-child { border-bottom: 0; }
  .tbl td { display: block; padding: 0; border: 0; }
  .tbl td.u-name, .tbl td.t-name { grid-area: name; font-size: 1.0625rem; }
  .tbl td.u-meta, .tbl td.t-meta { grid-area: meta; color: var(--text-2); font-size: .8125rem; white-space: normal; }
  .tbl td.u-meta { display: flex; }
  .tbl td.u-price, .tbl td.t-price { grid-area: price; text-align: right; font-weight: 500; font-size: 1rem; }
  .tbl td.u-ppm, .tbl td.t-ppm { grid-area: ppm; text-align: right; font-size: .8125rem; color: var(--text-3); }
  .tbl td.u-floor, .tbl td.t-hide { display: none; }
  /* the gallery becomes a strip to swipe */
  .mosaic, .mosaic[data-n] { display: flex; aspect-ratio: auto; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; margin-inline: -13px; padding-inline: 13px; scroll-padding-inline: 13px; }
  .mosaic::-webkit-scrollbar { display: none; }
  .mosaic .shot { flex: 0 0 84%; aspect-ratio: 4 / 3; scroll-snap-align: start; }
  .mosaic[data-n="1"] .shot { flex-basis: 100%; }
  .shot-rest { display: block; }
  .gallery-all { left: auto; right: 12px; top: 12px; bottom: auto; min-height: 28px; padding: 0 11px; font: 400 .6875rem/1 var(--mono); }
  .where { grid-template-columns: minmax(0, 1fr); }
  .minimap { max-width: 260px; }
  .enq-two { grid-template-columns: minmax(0, 1fr); }
  .enq-send .pill { width: 100%; }
  .foot { padding-bottom: 12px; }
  /* the bottom bar: sections on every page, the price and the enquiry button on a project page */
  .dock { position: fixed; z-index: 100; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 6px;
    border: 1px solid var(--line); border-radius: var(--r4); background: var(--glass); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: var(--shade-lg); }
  .dock a { display: grid; justify-items: center; gap: 4px; padding: 7px 4px 5px; border-radius: var(--r3); font-size: .6875rem; color: var(--text-2); text-decoration: none; }
  .dock a .i { font-size: 19px; }
  .dock a[aria-current] { color: var(--text); background: var(--accent-soft); }
  .dock .badge-n { position: absolute; margin: -4px 0 0 26px; }
  [data-page="project"] .dock { display: none; }
  .askbar { position: fixed; z-index: 100; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 8px 8px 16px;
    border: 1px solid var(--line); border-radius: var(--r4); background: var(--glass); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: var(--shade-lg); transition: transform .24s var(--ease), opacity .24s var(--ease); }
  .askbar.is-away { transform: translateY(120%); opacity: 0; pointer-events: none; }
  .askbar p { display: grid; font: 600 1rem/1.2 var(--display); }
  .askbar p span { font: 400 .6875rem/1.3 var(--mono); color: var(--text-3); }
  .lb-nav { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
  @view-transition { navigation: none; }
}
@media print {
  .nav, .dock, .askbar, .foot, .heart, .enq-card, .gallery-all { display: none !important; }
  .hero { min-height: 0; color: #000; background: none; }
  .hero::after, .hero-pic { display: none; }
  .hero h1 { color: #000; }
}

/* Vika Thai rental showcase: only what the showcase adds to the catalogue's stylesheet (assets/site.css, a copy of
   site-static's). tools/build.mjs writes both into one file. Every colour is one of the catalogue's names
   (--canvas, --surface, --text, --accent, --line ...), so the dark scheme needs nothing here; the few fixed
   colours below sit on a photograph and are the same in both schemes. Phone first; the catalogue's folds
   (720 px and 1100 px). The server forbids inline styles, so every look lives in a stylesheet. */

.shell { position: relative; }
.demobar { padding: 7px 16px; background: var(--accent-soft); color: var(--text-2); font: 400 .6875rem/1.4 var(--mono); letter-spacing: .04em; text-align: center; }
.nojs { padding: 40px 0; color: var(--text-2); }

/* ── list page ── */
.cat-head .eyebrow { margin-bottom: 12px; }
.cat-head h1 { max-width: 20ch; }
#homes .quick { margin-top: 28px; }
.filters .f-dates { display: grid; grid-template-columns: repeat(2, minmax(0, 220px)); gap: 12px; }
.filters .f-dates label { display: grid; gap: 8px; font-size: .8125rem; color: var(--text-2); }
.filters input[type="date"], .enq input[type="date"] { width: 100%; min-width: 0; min-height: 48px; padding: 12px 14px; border: 1px solid var(--control); border-radius: var(--r1); background: var(--field);
  font: 400 1rem/1.4 var(--ui); letter-spacing: 0; text-transform: none; color: var(--text); -webkit-appearance: none; appearance: none; }
.filters input[type="date"]:focus { outline: 2px solid var(--accent); outline-offset: 1px; background: var(--surface); }
.well .chip-photo .i { font-size: .8125rem; }
.card-free { color: var(--ok); }
/* a card or a tile before its data: quiet blocks in the place the content takes */
.skel .well { animation: sweep 1.5s ease-in-out infinite; }
.skel .fact-ico { background: var(--field); }
.skel-facts .bar { width: 96px; height: 14px; margin: 0; border-radius: 6px; background: var(--field); }

/* ── unit page ── */
.hero-pic[data-tone], .hero-pic { background-color: var(--ph); }
.hero-deal { min-height: 1.4em; }
.hero .chip .i { font-size: .875rem; }
.rooms-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.rooms-nav .opt { min-height: 38px; padding: 0 14px; font-size: .875rem; }
.shot .cap { position: absolute; left: 20px; bottom: 20px; z-index: 1; max-width: calc(100% - 40px); padding: 4px 10px; border: 1px solid rgba(255, 255, 255, .22); border-radius: var(--pill);
  background: rgba(6, 18, 15, .55); color: #fff; font: 400 .6875rem/1.3 var(--mono); letter-spacing: .06em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prose + .amen { margin-top: 28px; }
.amen { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 10px; }
.amen li { display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; border: 1px solid var(--line); border-radius: var(--r2); background: var(--surface); font-size: .9375rem; line-height: 1.3; box-shadow: var(--shade); }
.amen .fact-ico { width: 36px; height: 36px; margin: 0; flex: none; font-size: 18px; }

/* price by season: the catalogue's table; the row of today carries the gold dot */
.tbl tr.is-now td.t-name::before { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 8px 2px 0; border-radius: 50%; background: var(--metal-deep); }
.tbl td.t-meta.r { color: var(--text-2); font-family: var(--mono); white-space: nowrap; }

/* free dates */
.cal { padding: 16px; }
.cal-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.cal-top .pill:disabled { opacity: .35; cursor: default; }
.cal-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font: 400 .6875rem/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }
.cal-legend span { display: inline-flex; align-items: center; gap: 7px; }
.cal-legend i { width: 14px; height: 14px; border: 1px solid var(--control); border-radius: 4px; background: var(--surface); }
.cal-legend i.t { border-color: var(--line); background: var(--field); }
.cal-months { display: grid; gap: 28px; }
.cal-m + .cal-m { display: none; }
.cal-m h3 { margin-bottom: 12px; font-size: 1.0625rem; text-align: center; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; }
.cal-grid .wd { padding-bottom: 6px; font: 400 .6875rem/1.3 var(--mono); letter-spacing: .06em; color: var(--text-3); text-align: center; }
.cal-grid .d { display: grid; place-items: center; aspect-ratio: 1; min-height: 38px; border-radius: var(--r0); font: 400 .875rem/1 var(--mono); font-variant-numeric: lining-nums tabular-nums; color: var(--text); }
.cal-grid button.d:hover { background: var(--accent-soft); }
.cal-grid .d.is-taken { background: var(--field); color: var(--text-3); text-decoration: line-through; text-decoration-color: var(--line-int); }
.cal-grid .d.is-past { color: var(--line-int); }
.cal-grid .d.is-mid { background: var(--accent-soft); border-radius: 0; }
.cal-grid .d.is-from, .cal-grid .d.is-to, .cal-grid button.d.is-from:hover, .cal-grid button.d.is-to:hover { background: var(--accent); color: var(--on-accent); text-decoration: none; }
.cal-foot { display: grid; gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: .9375rem; }
.cal-foot .muted { color: var(--text-3); }
.cal-sel { font-weight: 600; }
.cal-sel .link { margin-left: 12px; font-weight: 400; }
.cal-warn { color: var(--bad); }
.band-note { margin-top: 12px; max-width: 62ch; font-size: .8125rem; color: var(--text-3); }

/* location: the area, never the address */
.where p { max-width: 52ch; color: var(--text-2); }
.where p + p { margin-top: 10px; }
.where .band-note { margin-top: 14px; }
.minimap .halo { fill: var(--gold); fill-opacity: .25; stroke: var(--metal-deep); stroke-width: 1.5; }
.minimap text.area.is-here { fill: var(--text); font-weight: 700; }

/* enquiry: the catalogue's form with the dates and the guests on top */
.enq .enq-dates { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.enq .enq-dates label { min-width: 0; }
.enq .enq-three { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; }

@media (min-width: 721px) {
  .cal { padding: 24px 28px; }
  .cal-months { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cal-m + .cal-m { display: block; }
  .cal-m + .cal-m + .cal-m { display: none; }
}
@media (max-width: 720px) {
  #homes .quick { margin-top: 18px; }
  .rooms-nav { flex-wrap: nowrap; overflow-x: auto; margin-inline: -13px; padding-inline: 13px; scrollbar-width: none; }
  .rooms-nav::-webkit-scrollbar { display: none; }
  .shot .cap { left: 18px; bottom: 18px; }
  .amen { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .amen li { gap: 9px; padding: 8px 10px 8px 8px; font-size: .8125rem; overflow-wrap: anywhere; }
  .amen .fact-ico { width: 30px; height: 30px; font-size: 15px; }
  .filters .f-dates { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* the price table on a phone: the period and the price on the first line, the minimum stay under the period */
  .tbl td.t-meta.r { text-align: left; }
  .enq .enq-three { grid-template-columns: minmax(0, 1fr); }
}
