/* Self-hosted fonts (OFL) — no render-blocking external request on English pages */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/space-grotesk-latin.woff2") format("woff2");
}

/* The Inter subset claims (blank) glyphs for Myanmar codepoints, so the
   browser never falls back and Burmese text on EN/zh pages renders as
   boxes. This same-family face wins for the Myanmar range and serves
   those glyphs from the Burmese font instead. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+1000-109F, U+A9E0-A9FF, U+AA60-AA7F;
  src: url("../fonts/noto-myanmar-400.woff2") format("woff2");
}

/* Editorial serif for the big Latin headlines only — the "expensive
   magazine" signal. zh/my headlines keep their own sans faces. */
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/fraunces-latin.woff2") format("woff2");
}

/* Self-hosted Noto Sans Myanmar (OFL) — proper Burmese script, no external
   round-trip. Only the weights a Burmese page actually uses are fetched. */
@font-face {
  font-family: "Noto Sans Myanmar";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/noto-myanmar-400.woff2") format("woff2");
}
@font-face {
  font-family: "Noto Sans Myanmar";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/noto-myanmar-500.woff2") format("woff2");
}
@font-face {
  font-family: "Noto Sans Myanmar";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/noto-myanmar-600.woff2") format("woff2");
}
@font-face {
  font-family: "Noto Sans Myanmar";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/noto-myanmar-700.woff2") format("woff2");
}

:root {
  /* ── "Emerald & Brass" dark base — deep ink-green, not black.
        Heritage green + champagne brass; ivory text. ──────────── */
  --bg: #0a100d;
  --bg-2: #0c130f;
  --ink: #060a08;
  --navy-950: #0a0f0c;
  --navy-900: #101a15;
  --navy-850: #15211b;
  --navy-800: #1a2820;
  --navy-700: #2b3d33;
  /* Refined brass accent — one source of truth via --gold-rgb */
  --gold-rgb: 218, 186, 122;
  --gold-500: #d9ba7a;
  --gold-400: #ecd49c;
  --gold-300: #f5e6bf;
  /* Cool jade accent, used sparingly */
  --green-600: #34b58c;
  --green-500: #4fd1a4;
  --green-100: rgba(79, 209, 164, 0.12);
  --green-text: #5fd6ab;
  --white: #ffffff;
  --off-white: #f0f2ec;
  --sand-50: #0f1512;
  /* "paper"/"slate" remapped to dark surfaces so token-based rules flip cleanly */
  --paper: #111814;
  --paper-200: #151e19;
  --slate-50: #121b16;
  --slate-100: #24322b;
  --slate-200: #2e3f36;
  --slate-400: #77837b;
  --slate-500: #9aa79f;
  --slate-600: #bcc7c0;
  --text: #ece9df;
  --muted: #a0aaa2;
  --line: rgba(255, 255, 255, 0.085);
  --line-strong: rgba(255, 255, 255, 0.15);
  --shadow-sm: 0 14px 34px rgba(0, 0, 0, 0.38);
  --shadow-md: 0 30px 70px rgba(0, 0, 0, 0.46);
  --shadow-lg: 0 50px 120px rgba(0, 0, 0, 0.55);
  --shadow-dark: 0 40px 100px rgba(0, 0, 0, 0.6);
  --glass: rgba(255, 255, 255, 0.045);
  --glass-line: rgba(255, 255, 255, 0.10);
  --glow-gold: 0 0 50px rgba(218, 186, 122, 0.22);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --radius-xl: 40px;
  --container: 1200px;
  --header-height: 76px;
  /* Noto Sans Myanmar rides at the end so stray Burmese glyphs (e.g. the
     trust strip's language list on EN/zh pages) never render as boxes. */
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans Myanmar", sans-serif;
  --font-display: "Space Grotesk", "Inter", -apple-system, sans-serif;
  --font-serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* ── Semantic surface tokens — theme-driven (dark values here;
        html[data-mode="light"] redefines them) ─────────────────── */
  --header-bg: rgba(10, 16, 13, 0.6);
  --header-bg-scrolled: rgba(9, 15, 12, 0.85);
  --header-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  --veil-1: rgba(255, 255, 255, 0.03);
  --veil-2: rgba(255, 255, 255, 0.06);
  --veil-hover: rgba(255, 255, 255, 0.05);
  --on-gold: #0c110d;
  --surface-card: var(--glass);
  --surface-card-hover-line: rgba(218, 186, 122, 0.42);
  --mock-bg: #0c120e;
  --mock-surface: #111813;
  --card-inset: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  --body-ambient:
    radial-gradient(58% 46% at 78% -6%, rgba(218, 186, 122, 0.11), transparent 60%),
    radial-gradient(46% 40% at 2% 8%, rgba(79, 209, 164, 0.06), transparent 58%),
    radial-gradient(90% 62% at 50% 116%, rgba(28, 62, 45, 0.24), transparent 64%),
    var(--bg);
  --hero-bg:
    radial-gradient(60% 70% at 80% 0%, rgba(218, 186, 122, 0.12), transparent 55%),
    radial-gradient(50% 60% at 0% 30%, rgba(79, 209, 164, 0.06), transparent 50%),
    linear-gradient(180deg, #0b1310, #0a100d);
  --page-hero-bg:
    radial-gradient(50% 60% at 82% -10%, rgba(218, 186, 122, 0.13), transparent 50%),
    radial-gradient(45% 50% at 8% 120%, rgba(79, 209, 164, 0.07), transparent 50%),
    linear-gradient(180deg, #0b1310, #0a100d);
  --section-soft-bg:
    radial-gradient(80% 60% at 50% 0%, rgba(255, 255, 255, 0.018), transparent 60%),
    var(--bg-2);
  --panel-bg:
    radial-gradient(60% 80% at 85% 0%, rgba(218, 186, 122, 0.14), transparent 46%),
    radial-gradient(50% 60% at 0% 100%, rgba(79, 209, 164, 0.08), transparent 46%),
    #0e1611;
  --featured-bg:
    radial-gradient(60% 70% at 90% 0%, rgba(218, 186, 122, 0.16), transparent 46%),
    #0f1712;
  --dropdown-bg: rgba(12, 18, 14, 0.92);
  --mock-frame: linear-gradient(160deg, #14201a, #0d1410);
  --mock-grid: rgba(255, 255, 255, 0.05);

  /* ── Unified type scale — one source of truth for sizing ────── */
  --fs-eyebrow: 0.82rem;
  --fs-nav: 0.98rem;
  --fs-body: 1.06rem;
  --fs-lead: clamp(1.08rem, 0.6vw + 0.95rem, 1.28rem);
  --fs-h3: clamp(1.24rem, 0.9vw + 1rem, 1.5rem);
  --fs-card-title: clamp(1.28rem, 0.7vw + 1.08rem, 1.5rem);
  --fs-card-body: 1.02rem;
  --fs-button: 1rem;
  --fs-label: 0.94rem;
  --fs-small: 0.92rem;
  --lh-tight: 1.12;
  --lh-heading: 1.2;
  --lh-body: 1.65;
}

/* ============================================================
   LIGHT THEME (default) — warm editorial paper, clean and bright.
   No grey vignettes: big surfaces are warm off-whites; heroes, the
   CTA panel and the footer stay dark ink (see INK SURFACES below).
   Activated by html[data-mode="light"].
   ============================================================ */
html[data-mode="light"] {
  --bg: #faf9f6;
  --bg-2: #f3f1ec;
  --ink: #0a0e15;
  --navy-950: #0e131c;
  --navy-900: #17202e;
  --navy-850: #202b3b;
  --navy-800: #2a3646;
  --navy-700: #3a4a5f;
  /* Deep bronze rather than mustard — accents stay legible and
     expensive-looking on white */
  --gold-500: #a37f2a;
  --gold-400: #8c6716;
  --gold-300: #cfa952;
  --green-600: #148f6b;
  --green-500: #12a07a;
  --green-text: #0d805a;
  --white: #ffffff;
  --off-white: #ffffff;
  --sand-50: #f2efe8;
  --paper: #ffffff;
  --paper-200: #f5f3ee;
  --slate-50: #f1efe9;
  --slate-100: #e7e4db;
  --slate-200: #d8d4c9;
  --slate-400: #7b766a;
  --slate-500: #5f5a4f;
  --slate-600: #403c33;
  --text: #201d16;
  --muted: #5c574c;
  --line: rgba(46, 40, 26, 0.11);
  --line-strong: rgba(46, 40, 26, 0.19);
  --shadow-sm: 0 10px 28px rgba(17, 24, 39, 0.06);
  --shadow-md: 0 24px 58px rgba(17, 24, 39, 0.10);
  --shadow-lg: 0 40px 90px rgba(17, 24, 39, 0.13);
  --shadow-dark: 0 30px 66px rgba(17, 24, 39, 0.14);
  --glass: #ffffff;
  --glass-line: rgba(17, 24, 39, 0.08);
  --glow-gold: 0 0 44px rgba(183, 144, 47, 0.16);

  --header-bg: rgba(250, 249, 246, 0.78);
  --header-bg-scrolled: rgba(250, 249, 246, 0.93);
  --header-shadow: 0 12px 40px rgba(46, 40, 26, 0.08);
  --veil-1: rgba(46, 40, 26, 0.03);
  --veil-2: rgba(46, 40, 26, 0.055);
  --veil-hover: rgba(46, 40, 26, 0.055);
  --on-gold: #241a06;
  --surface-card: #ffffff;
  --surface-card-hover-line: rgba(163, 127, 42, 0.45);
  --mock-bg: #f1efe9;
  --mock-surface: #ffffff;
  --card-inset: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  /* Clean warm paper — one faint gilded wash at the very top, no
     grey vignettes anywhere. */
  --body-ambient:
    radial-gradient(70% 42% at 50% -6%, rgba(163, 127, 42, 0.05), transparent 62%),
    var(--bg);
  /* Light-mode heroes are light: warm paper with one gilded wash.
     Only the dark themes (and Dawn) keep a dark hero. */
  --hero-bg:
    radial-gradient(60% 70% at 80% 0%, rgba(163, 127, 42, 0.09), transparent 55%),
    linear-gradient(180deg, #fdfcfa, #f5f3ee);
  --page-hero-bg:
    radial-gradient(50% 60% at 82% -10%, rgba(163, 127, 42, 0.10), transparent 50%),
    linear-gradient(180deg, #fdfcfa, #f5f3ee);
  --section-soft-bg: var(--bg-2);
  --panel-bg:
    radial-gradient(60% 80% at 85% 0%, rgba(218, 186, 122, 0.14), transparent 46%),
    radial-gradient(50% 60% at 0% 100%, rgba(79, 209, 164, 0.08), transparent 46%),
    #0d121b;
  --featured-bg:
    radial-gradient(60% 70% at 90% 0%, rgba(163, 127, 42, 0.12), transparent 46%),
    linear-gradient(160deg, #ffffff, #f8f3e6);
  --dropdown-bg: rgba(253, 252, 249, 0.97);
  --mock-frame: linear-gradient(160deg, #efece5, #e3dfd4);
  --mock-grid: rgba(46, 40, 26, 0.045);
}

/* ============================================================
   THEME: PARCHMENT — aged warm paper, deep sepia ink, the brand
   mark and wordmark watermarked into the background.
   (light mode; overrides the mode-light base above)
   ============================================================ */
html[data-theme="parchment"] {
  --bg: #f3ead8;
  --bg-2: #ece1c8;
  --sand-50: #eee3cb;
  --paper: #faf3e2;
  --paper-200: #f0e6cf;
  --slate-50: #ede2c8;
  --slate-100: #e1d3b3;
  --slate-200: #d1c09c;
  --slate-400: #7a6c4e;
  --slate-500: #5f5336;
  --slate-600: #443a22;
  --text: #2b2211;
  --muted: #5e5236;
  --line: rgba(76, 60, 28, 0.16);
  --line-strong: rgba(76, 60, 28, 0.27);
  --gold-500: #8f6d1f;
  --gold-400: #7c5d18;
  --gold-300: #b8933b;
  --shadow-sm: 0 10px 28px rgba(64, 49, 17, 0.08);
  --shadow-md: 0 24px 58px rgba(64, 49, 17, 0.12);
  --shadow-lg: 0 40px 90px rgba(64, 49, 17, 0.15);
  --shadow-dark: 0 30px 66px rgba(64, 49, 17, 0.16);
  --glass: #faf3e2;
  --glass-line: rgba(76, 60, 28, 0.12);
  --header-bg: rgba(243, 234, 216, 0.8);
  --header-bg-scrolled: rgba(243, 234, 216, 0.94);
  --veil-1: rgba(76, 60, 28, 0.04);
  --veil-2: rgba(76, 60, 28, 0.07);
  --veil-hover: rgba(76, 60, 28, 0.07);
  --surface-card: #faf3e2;
  --surface-card-hover-line: rgba(143, 109, 31, 0.5);
  --mock-bg: #ede2c8;
  --mock-surface: #faf3e2;
  --dropdown-bg: rgba(250, 243, 226, 0.97);
  --mock-frame: linear-gradient(160deg, #e9dcc0, #ddcda8);
  --mock-grid: rgba(76, 60, 28, 0.06);
  /* The studio's mark + wordmark, letterpressed into the sheet. */
  --brand-watermark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 62'%3E%3Cg fill='none' stroke='%237c5d18' stroke-width='2.6' stroke-linecap='round' opacity='0.09'%3E%3Cpath d='M10 35.2c6.1-5.6 11.8-7.2 17.1-4.9 3.9 1.7 7.5 1 10.9-2.1'/%3E%3Cpath d='M12.2 28.5V12.2h9.2c5 0 8.1 2.7 8.1 7 0 3.1-1.7 5.4-4.6 6.4l6.3 8.2' stroke-linejoin='round'/%3E%3Cpath d='M13.4 8.5 10.7 4.8M20.6 7l.7-4.6M27 10.1l3.8-2.8' stroke-width='1.9'/%3E%3C/g%3E%3Ctext x='24' y='50' text-anchor='middle' font-family='Georgia,serif' font-size='3.9' letter-spacing='0.8' fill='%237c5d18' opacity='0.11'%3ERAYSPRING TECH%3C/text%3E%3Ctext x='24' y='57.5' text-anchor='middle' font-family='serif' font-size='5.2' letter-spacing='2' fill='%237c5d18' opacity='0.10'%3E%E5%85%89%E6%B3%89%E7%A7%91%E6%8A%80%3C/text%3E%3C/svg%3E");
  --body-ambient:
    var(--brand-watermark) no-repeat right -60px bottom 40px / 460px auto,
    radial-gradient(80% 55% at 18% -5%, rgba(143, 109, 31, 0.08), transparent 60%),
    radial-gradient(70% 55% at 95% 105%, rgba(143, 109, 31, 0.09), transparent 58%),
    var(--bg);
  --hero-bg:
    var(--brand-watermark) no-repeat left -30px bottom 14px / 350px auto,
    radial-gradient(60% 70% at 80% 0%, rgba(143, 109, 31, 0.10), transparent 55%),
    linear-gradient(180deg, #f6eedd, #f0e6cf);
  --page-hero-bg:
    var(--brand-watermark) no-repeat right 4% center / 260px auto,
    radial-gradient(50% 60% at 82% -10%, rgba(143, 109, 31, 0.10), transparent 50%),
    linear-gradient(180deg, #f6eedd, #f0e6cf);
  --section-soft-bg: var(--bg-2);
  --featured-bg:
    radial-gradient(60% 70% at 90% 0%, rgba(143, 109, 31, 0.12), transparent 46%),
    linear-gradient(160deg, #fbf5e4, #f3e9d0);
}

/* ============================================================
   THEME: PORCELAIN — gallery white with a single cobalt accent.
   The "gold" accent slots carry cobalt here; work is the only colour.
   (light mode)
   ============================================================ */
html[data-theme="porcelain"] {
  --bg: #fbfcfe;
  --bg-2: #f0f4f9;
  --navy-900: #101725;
  --navy-800: #1c2536;
  --sand-50: #eef2f8;
  --paper: #ffffff;
  --paper-200: #f3f6fa;
  --slate-50: #eef2f7;
  --slate-100: #e1e8f0;
  --slate-200: #cfd9e5;
  --slate-400: #71808f;
  --slate-500: #526073;
  --slate-600: #35404e;
  --text: #0f151d;
  --muted: #4d5a6a;
  --line: rgba(16, 30, 50, 0.10);
  --line-strong: rgba(16, 30, 50, 0.18);
  --gold-rgb: 37, 78, 204;
  --gold-500: #254ecc;
  --gold-400: #1d3fae;
  --gold-300: #5b7ee0;
  --green-600: #0f7490;
  --green-500: #0e8aa8;
  --green-text: #0d6d86;
  --glow-gold: 0 0 44px rgba(37, 78, 204, 0.15);
  --shadow-sm: 0 10px 28px rgba(16, 30, 50, 0.06);
  --shadow-md: 0 24px 58px rgba(16, 30, 50, 0.10);
  --shadow-lg: 0 40px 90px rgba(16, 30, 50, 0.13);
  --shadow-dark: 0 30px 66px rgba(16, 30, 50, 0.14);
  --glass: #ffffff;
  --glass-line: rgba(16, 30, 50, 0.08);
  --header-bg: rgba(251, 252, 254, 0.8);
  --header-bg-scrolled: rgba(251, 252, 254, 0.94);
  --veil-1: rgba(16, 30, 50, 0.03);
  --veil-2: rgba(16, 30, 50, 0.055);
  --veil-hover: rgba(16, 30, 50, 0.055);
  --surface-card: #ffffff;
  --surface-card-hover-line: rgba(37, 78, 204, 0.4);
  --mock-bg: #eef2f8;
  --mock-surface: #ffffff;
  --dropdown-bg: rgba(255, 255, 255, 0.97);
  --mock-frame: linear-gradient(160deg, #edf1f7, #dfe6ef);
  --mock-grid: rgba(16, 30, 50, 0.05);
  --body-ambient:
    radial-gradient(70% 42% at 50% -6%, rgba(37, 78, 204, 0.05), transparent 62%),
    var(--bg);
  --hero-bg:
    radial-gradient(60% 70% at 80% 0%, rgba(37, 78, 204, 0.08), transparent 55%),
    linear-gradient(180deg, #ffffff, #f2f6fb);
  --page-hero-bg:
    radial-gradient(50% 60% at 82% -10%, rgba(37, 78, 204, 0.09), transparent 50%),
    linear-gradient(180deg, #ffffff, #f2f6fb);
  --section-soft-bg: var(--bg-2);
  --featured-bg:
    radial-gradient(60% 70% at 90% 0%, rgba(37, 78, 204, 0.10), transparent 46%),
    linear-gradient(160deg, #ffffff, #eef3fc);
}

/* ============================================================
   THEME: DAWN — 光泉's sunrise: a deep indigo dawn hero warming
   into cream daylight; amber accents. (light mode, ink hero)
   ============================================================ */
html[data-theme="dawn"] {
  --bg: #fdf8f1;
  --bg-2: #f8efe3;
  --sand-50: #f6ecdd;
  --paper: #fffdf9;
  --paper-200: #f8f1e6;
  --slate-50: #f4ebdf;
  --slate-100: #eadfce;
  --slate-200: #dbccb6;
  --slate-400: #82756b;
  --slate-500: #665a52;
  --slate-600: #453c36;
  --text: #241d18;
  --muted: #635750;
  --line: rgba(70, 50, 35, 0.12);
  --line-strong: rgba(70, 50, 35, 0.2);
  --gold-rgb: 185, 106, 44;
  --gold-500: #b96a2c;
  --gold-400: #a05620;
  --gold-300: #dd9a58;
  --glow-gold: 0 0 44px rgba(185, 106, 44, 0.18);
  --shadow-sm: 0 10px 28px rgba(70, 50, 35, 0.07);
  --shadow-md: 0 24px 58px rgba(70, 50, 35, 0.11);
  --shadow-lg: 0 40px 90px rgba(70, 50, 35, 0.14);
  --shadow-dark: 0 30px 66px rgba(70, 50, 35, 0.15);
  --glass: #fffdf9;
  --glass-line: rgba(70, 50, 35, 0.1);
  --header-bg: rgba(253, 248, 241, 0.8);
  --header-bg-scrolled: rgba(253, 248, 241, 0.94);
  --veil-1: rgba(70, 50, 35, 0.035);
  --veil-2: rgba(70, 50, 35, 0.06);
  --veil-hover: rgba(70, 50, 35, 0.06);
  --surface-card: #fffdf9;
  --surface-card-hover-line: rgba(185, 106, 44, 0.45);
  --mock-bg: #f4ebdf;
  --mock-surface: #fffdf9;
  --dropdown-bg: rgba(255, 252, 246, 0.97);
  --mock-frame: linear-gradient(160deg, #f2e7d6, #e6d6c0);
  --mock-grid: rgba(70, 50, 35, 0.05);
  --body-ambient:
    linear-gradient(180deg, rgba(255, 176, 116, 0.10), rgba(255, 176, 116, 0) 34%),
    radial-gradient(70% 42% at 50% -6%, rgba(120, 90, 200, 0.06), transparent 60%),
    var(--bg);
  /* The heroes carry the pre-dawn sky (used by the ink-hero rules). */
  --hero-ink-bg:
    radial-gradient(70% 85% at 78% -5%, rgba(255, 158, 94, 0.30), transparent 55%),
    radial-gradient(55% 65% at 5% 105%, rgba(122, 92, 199, 0.35), transparent 58%),
    linear-gradient(180deg, #171331, #241636);
  --page-hero-ink-bg:
    radial-gradient(60% 70% at 82% -10%, rgba(255, 158, 94, 0.28), transparent 52%),
    radial-gradient(50% 60% at 8% 115%, rgba(122, 92, 199, 0.32), transparent 55%),
    linear-gradient(180deg, #171331, #241636);
  --section-soft-bg: var(--bg-2);
  --panel-bg:
    radial-gradient(60% 80% at 85% 0%, rgba(255, 158, 94, 0.22), transparent 46%),
    radial-gradient(50% 60% at 0% 100%, rgba(122, 92, 199, 0.28), transparent 46%),
    #1b1433;
  --featured-bg:
    radial-gradient(60% 70% at 90% 0%, rgba(185, 106, 44, 0.13), transparent 46%),
    linear-gradient(160deg, #fffdf9, #f9efdf);
}

/* ============================================================
   THEME: GILDED NIGHT — warm black, every hairline gilded, cards
   edged and glowing in champagne gold. (dark mode)
   ============================================================ */
html[data-theme="gilded"] {
  --bg: #0b0a07;
  --bg-2: #0e0c08;
  --ink: #070604;
  --navy-950: #0d0b07;
  --navy-900: #151109;
  --navy-850: #1a150b;
  --navy-800: #231c0e;
  --navy-700: #3d3319;
  --gold-500: #e0c185;
  --gold-400: #f0d9a2;
  --gold-300: #f8ecc9;
  --off-white: #f5efdd;
  --sand-50: #12100a;
  --paper: #14110a;
  --paper-200: #191509;
  --slate-50: #16130b;
  --slate-100: #2b2412;
  --slate-200: #3a3118;
  --slate-400: #8d8060;
  --slate-500: #ab9d79;
  --slate-600: #cabf9d;
  --text: #f2ead6;
  --muted: #ab9d79;
  --line: rgba(224, 193, 133, 0.22);
  --line-strong: rgba(224, 193, 133, 0.42);
  --shadow-sm: 0 14px 34px rgba(0, 0, 0, 0.5), 0 0 20px rgba(224, 193, 133, 0.07);
  --shadow-md: 0 30px 70px rgba(0, 0, 0, 0.55), 0 0 36px rgba(224, 193, 133, 0.10);
  --shadow-lg: 0 50px 120px rgba(0, 0, 0, 0.6), 0 0 64px rgba(224, 193, 133, 0.14);
  --shadow-dark: 0 40px 100px rgba(0, 0, 0, 0.65), 0 0 44px rgba(224, 193, 133, 0.10);
  --glass: rgba(224, 193, 133, 0.055);
  --glass-line: rgba(224, 193, 133, 0.28);
  --glow-gold: 0 0 60px rgba(224, 193, 133, 0.35);
  --header-bg: rgba(11, 10, 7, 0.65);
  --header-bg-scrolled: rgba(10, 9, 6, 0.88);
  --header-shadow: 0 12px 40px rgba(0, 0, 0, 0.55), 0 1px 0 rgba(224, 193, 133, 0.18);
  --veil-1: rgba(224, 193, 133, 0.05);
  --veil-2: rgba(224, 193, 133, 0.09);
  --veil-hover: rgba(224, 193, 133, 0.08);
  --on-gold: #191204;
  --surface-card: rgba(224, 193, 133, 0.05);
  --surface-card-hover-line: rgba(240, 217, 162, 0.8);
  --card-inset: inset 0 1px 0 rgba(224, 193, 133, 0.16);
  --mock-bg: #0e0c07;
  --mock-surface: #14110a;
  --body-ambient:
    radial-gradient(58% 46% at 78% -6%, rgba(224, 193, 133, 0.15), transparent 60%),
    radial-gradient(90% 62% at 50% 116%, rgba(90, 68, 22, 0.25), transparent 64%),
    var(--bg);
  --hero-bg:
    radial-gradient(60% 70% at 80% 0%, rgba(224, 193, 133, 0.18), transparent 55%),
    linear-gradient(180deg, #0e0c07, #0b0a07);
  --page-hero-bg:
    radial-gradient(50% 60% at 82% -10%, rgba(224, 193, 133, 0.18), transparent 50%),
    linear-gradient(180deg, #0e0c07, #0b0a07);
  --section-soft-bg:
    radial-gradient(80% 60% at 50% 0%, rgba(224, 193, 133, 0.03), transparent 60%),
    var(--bg-2);
  --panel-bg:
    radial-gradient(60% 80% at 85% 0%, rgba(224, 193, 133, 0.2), transparent 46%),
    #120f08;
  --featured-bg:
    radial-gradient(60% 70% at 90% 0%, rgba(224, 193, 133, 0.22), transparent 46%),
    #14100a;
  --dropdown-bg: rgba(15, 13, 8, 0.94);
  --mock-frame: linear-gradient(160deg, #201a0e, #120f08);
  --mock-grid: rgba(224, 193, 133, 0.06);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 22px);
}

body {
  margin: 0;
  color: var(--text);
  background: var(--white);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: anywhere;
}

body.lang-zh {
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Noto Sans Myanmar", sans-serif;
  line-height: 1.75;
}

body.lang-my {
  font-family: "Noto Sans Myanmar", "Padauk", "Myanmar Text", sans-serif;
  line-height: 1.85;
  letter-spacing: 0;
}

body.menu-open {
  overflow: hidden;
}

body.menu-open .site-header {
  background: var(--white);
  backdrop-filter: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

h1,
h2,
h3,
p,
blockquote {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--navy-900);
  font-weight: 750;
  line-height: 1.16;
  letter-spacing: -0.035em;
}

h1,
h2 {
  font-family: var(--font-serif);
  font-weight: 440;
  line-height: 1.1;
  letter-spacing: -0.012em;
  font-optical-sizing: auto;
}

.lang-zh h1,
.lang-zh h2,
.lang-zh h3,
.lang-my h1,
.lang-my h2,
.lang-my h3 {
  font-family: inherit;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.3;
}

/* Burmese stacks diacritics vertically — give headings room to breathe */
.lang-my h1,
.lang-my h2,
.lang-my h3 {
  line-height: 1.6;
}

/* Burmese script is visually taller/denser than Latin — the display sizes
   tuned for Space Grotesk overwhelm it. Scale hero + section headings down
   and open up the leading so it reads clean and balanced, not cramped. */
.lang-my .hero__copy h1,
.lang-my .page-hero h1 {
  font-size: clamp(1.95rem, 2.6vw + 1.1rem, 3.05rem);
  line-height: 1.52;
}
.lang-my .section-heading h2 {
  font-size: clamp(1.6rem, 1.8vw + 1.1rem, 2.55rem);
  line-height: 1.5;
}
.lang-my .hero__intro,
.lang-my .page-hero__intro,
.lang-my .section-intro {
  line-height: 1.9;
}
.lang-my .button {
  line-height: 1.5;
}

p {
  color: var(--muted);
}

::selection {
  color: var(--navy-950);
  background: var(--gold-300);
}

:focus-visible {
  outline: 3px solid rgba(201, 162, 86, 0.65);
  outline-offset: 3px;
}

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.section {
  padding: 112px 0;
}

.section--soft {
  background: var(--slate-50);
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  color: var(--navy-900);
  background: var(--gold-400);
  border-radius: 8px;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--green-text);
  font-size: var(--fs-eyebrow);
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 28px;
  height: 1px;
  background: currentColor;
  content: "";
}

.eyebrow--light {
  color: var(--gold-400);
}

.lang-my .eyebrow {
  letter-spacing: 0;
  text-transform: none;
}

.section-heading {
  max-width: 700px;
  margin-bottom: 54px;
}

.section-heading h2 {
  max-width: 680px;
  margin-bottom: 20px;
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.section-intro {
  max-width: 650px;
  margin: 0;
  font-size: var(--fs-lead);
  line-height: 1.6;
}

.section-heading--center {
  margin-inline: auto;
  text-align: center;
}

.section-heading--center .eyebrow {
  justify-content: center;
}

.section-heading--center h2,
.section-heading--center .section-intro {
  margin-inline: auto;
}

.section-heading-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 54px;
}

.section-heading-row .section-heading {
  margin-bottom: 0;
}

.text-link {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  color: var(--navy-800);
  border-bottom: 1px solid var(--gold-500);
  font-size: 0.92rem;
  font-weight: 750;
  transition: color 0.2s ease, gap 0.2s ease;
}

.text-link:hover {
  gap: 12px;
  color: var(--green-600);
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-size: var(--fs-button);
  font-weight: 700;
  line-height: 1.2;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button--primary {
  color: var(--text);
  background: var(--navy-900);
  box-shadow: 0 10px 24px rgba(14, 29, 49, 0.16);
}

.button--primary:hover {
  background: var(--navy-800);
  box-shadow: 0 14px 32px rgba(14, 29, 49, 0.22);
}

.button--gold {
  color: var(--navy-950);
  background: linear-gradient(135deg, var(--gold-300), var(--gold-500));
  box-shadow: 0 12px 30px rgba(201, 162, 86, 0.24);
}

.button--gold:hover {
  box-shadow: 0 16px 36px rgba(201, 162, 86, 0.34);
}

.button--secondary {
  color: var(--navy-900);
  background: transparent;
  border-color: var(--slate-200);
}

.button--secondary:hover {
  color: var(--text);
  background: var(--navy-900);
  border-color: var(--navy-900);
}

.button--ghost-light {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.24);
}

.button--ghost-light:hover {
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(255, 255, 255, 0.4);
}

.button--full {
  width: 100%;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 5px 10px;
  color: var(--navy-700);
  background: var(--slate-50);
  border: 1px solid var(--slate-100);
  border-radius: 7px;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.35;
}

.lang-my .tag {
  min-height: 38px;
  padding-block: 7px;
  line-height: 1.7;
}

.check-list {
  display: grid;
  gap: 11px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--slate-600);
  font-size: 0.9rem;
}

.check-icon {
  display: grid;
  width: 21px;
  height: 21px;
  flex: 0 0 21px;
  place-items: center;
  margin-top: 1px;
  color: var(--green-600);
  background: var(--green-100);
  border-radius: 50%;
}

.status {
  display: inline-flex;
  flex: 0 0 auto;
  min-height: 27px;
  align-items: center;
  gap: 7px;
  padding: 4px 9px;
  color: var(--slate-600);
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: 999px;
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.status i {
  width: 6px;
  height: 6px;
  background: var(--slate-400);
  border-radius: 50%;
}

.status--live i,
.status--progress i {
  background: var(--green-500);
  box-shadow: 0 0 0 3px rgba(70, 184, 132, 0.16);
}

.status--prototype i {
  background: var(--gold-500);
  box-shadow: 0 0 0 3px rgba(201, 162, 86, 0.17);
}

.lang-my .status {
  letter-spacing: 0;
  text-transform: none;
}

/* Header */
.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(16px);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.site-header.is-scrolled {
  border-color: var(--line);
  box-shadow: 0 8px 32px rgba(14, 29, 49, 0.07);
}

.header-inner {
  display: flex;
  height: 100%;
  align-items: center;
  gap: 30px;
}

.site-logo {
  flex: 0 0 auto;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-mark {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  color: var(--navy-900);
}

.brand-copy {
  display: grid;
  gap: 0;
}

.brand-copy strong {
  color: var(--navy-900);
  font-size: 0.97rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.brand-copy span {
  color: var(--slate-500);
  font-size: 0.57rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.35;
  text-transform: uppercase;
}

.lang-zh .brand-copy span,
.lang-my .brand-copy span {
  letter-spacing: 0;
  text-transform: none;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 25px;
  margin-left: auto;
}

.desktop-nav a {
  position: relative;
  padding: 28px 0 25px;
  color: var(--slate-600);
  font-size: var(--fs-nav);
  font-weight: 600;
  letter-spacing: -0.005em;
  transition: color 0.2s ease;
}

.desktop-nav a::after {
  position: absolute;
  right: 0;
  bottom: 19px;
  left: 0;
  height: 2px;
  background: var(--gold-500);
  content: "";
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a[aria-current="page"] {
  color: var(--navy-900);
}

.desktop-nav a[aria-current="page"]::after,
.desktop-nav a:hover::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.language-switcher {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--slate-400);
  white-space: nowrap;
}

.language-switcher__icon {
  margin-right: 2px;
  color: var(--slate-500);
}

.language-switcher a {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  color: var(--slate-500);
  font-family: "Manrope", "Noto Sans SC", "Noto Sans Myanmar", sans-serif;
  font-size: 0.68rem;
  font-weight: 750;
  line-height: 1.5;
}

.language-switcher a:hover,
.language-switcher a[aria-current="true"] {
  color: var(--navy-900);
}

.language-switcher a[aria-current="true"] {
  text-decoration: underline;
  text-decoration-color: var(--gold-500);
  text-underline-offset: 4px;
}

.header-cta {
  min-height: 42px;
  padding-inline: 17px;
  font-size: 0.75rem;
}

.menu-toggle {
  display: none;
  width: 45px;
  height: 45px;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: var(--navy-900);
  background: var(--slate-50);
  border: 1px solid var(--slate-100);
  border-radius: 50%;
}

.menu-toggle__close {
  display: none;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__open {
  display: none;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__close {
  display: block;
}

.mobile-menu {
  position: absolute;
  z-index: 99;
  top: 100%;
  right: 0;
  left: 0;
  height: calc(100vh - var(--header-height));
  overflow-y: auto;
  background: var(--white);
  border-top: 1px solid var(--line);
}

.mobile-menu__inner {
  display: grid;
  gap: 0;
  padding-block: 20px 36px;
}

.mobile-menu__inner > a:not(.button) {
  display: flex;
  min-height: 53px;
  align-items: center;
  justify-content: space-between;
  color: var(--navy-900);
  border-bottom: 1px solid var(--line);
  font-size: 1rem;
  font-weight: 700;
}

.mobile-menu__inner > a[aria-current="page"] {
  color: var(--green-600);
}

.mobile-menu__language {
  display: grid;
  gap: 12px;
  padding: 20px 0 22px;
}

.mobile-menu__language > span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--slate-500);
  font-size: 0.78rem;
  font-weight: 700;
}

.mobile-menu__language .language-switcher {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.mobile-menu__language .language-switcher a {
  min-height: 48px;
  justify-content: center;
  padding: 8px 6px;
  background: var(--slate-50);
  border: 1px solid var(--slate-100);
  border-radius: 10px;
  font-size: 0.82rem;
  text-decoration: none;
}

.mobile-menu__language .language-switcher a[aria-current="true"] {
  color: var(--navy-900);
  background: rgba(201, 162, 86, 0.13);
  border-color: rgba(201, 162, 86, 0.48);
}

.translation-notice {
  color: #513c12;
  background: #fff7df;
  border-bottom: 1px solid #f0dfae;
}

.translation-notice .container {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.83rem;
  font-weight: 600;
  text-align: center;
}

/* Hero */
.hero {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  color: var(--text);
  background:
    linear-gradient(105deg, rgba(8, 19, 33, 0.98) 0%, rgba(14, 29, 49, 0.97) 55%, rgba(19, 48, 66, 0.96) 100%),
    var(--navy-900);
}

/* ── Brand watermark + slow light drift in the hero background.
      The mark and wordmark sit at ~5% opacity; one soft gold glow
      ("光泉" — the spring of light) pans very slowly. Both freeze
      under prefers-reduced-motion. ───────────────────────────── */
:root {
  --hero-wm-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 62'%3E%3Cg fill='none' stroke='%23ecd49c' stroke-width='2.6' stroke-linecap='round' opacity='0.055'%3E%3Cpath d='M10 35.2c6.1-5.6 11.8-7.2 17.1-4.9 3.9 1.7 7.5 1 10.9-2.1'/%3E%3Cpath d='M12.2 28.5V12.2h9.2c5 0 8.1 2.7 8.1 7 0 3.1-1.7 5.4-4.6 6.4l6.3 8.2' stroke-linejoin='round'/%3E%3Cpath d='M13.4 8.5 10.7 4.8M20.6 7l.7-4.6M27 10.1l3.8-2.8' stroke-width='1.9'/%3E%3C/g%3E%3Ctext x='24' y='50' text-anchor='middle' font-family='Georgia,serif' font-size='3.9' letter-spacing='0.8' fill='%23ecd49c' opacity='0.07'%3ERAYSPRING TECH%3C/text%3E%3Ctext x='24' y='57.5' text-anchor='middle' font-family='serif' font-size='5.2' letter-spacing='2' fill='%23ecd49c' opacity='0.065'%3E%E5%85%89%E6%B3%89%E7%A7%91%E6%8A%80%3C/text%3E%3C/svg%3E");
  --hero-wm-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 62'%3E%3Cg fill='none' stroke='%23403a28' stroke-width='2.6' stroke-linecap='round' opacity='0.05'%3E%3Cpath d='M10 35.2c6.1-5.6 11.8-7.2 17.1-4.9 3.9 1.7 7.5 1 10.9-2.1'/%3E%3Cpath d='M12.2 28.5V12.2h9.2c5 0 8.1 2.7 8.1 7 0 3.1-1.7 5.4-4.6 6.4l6.3 8.2' stroke-linejoin='round'/%3E%3Cpath d='M13.4 8.5 10.7 4.8M20.6 7l.7-4.6M27 10.1l3.8-2.8' stroke-width='1.9'/%3E%3C/g%3E%3Ctext x='24' y='50' text-anchor='middle' font-family='Georgia,serif' font-size='3.9' letter-spacing='0.8' fill='%23403a28' opacity='0.065'%3ERAYSPRING TECH%3C/text%3E%3Ctext x='24' y='57.5' text-anchor='middle' font-family='serif' font-size='5.2' letter-spacing='2' fill='%23403a28' opacity='0.06'%3E%E5%85%89%E6%B3%89%E7%A7%91%E6%8A%80%3C/text%3E%3C/svg%3E");
  --hero-wm: var(--hero-wm-dark);
}

html[data-mode="light"] { --hero-wm: var(--hero-wm-light); }
html[data-theme="dawn"] .hero { --hero-wm: var(--hero-wm-dark); }
/* Parchment already letterpresses the mark into its hero background */
html[data-theme="parchment"] .hero::before { display: none; }

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: var(--hero-wm) no-repeat right 1.5% top 28px / 480px auto;
  animation: hero-mark-drift 26s ease-in-out infinite alternate;
}

.hero::after {
  content: "";
  position: absolute;
  inset: -10% -6%;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(42% 55% at 70% 28%, rgba(var(--gold-rgb), 0.09), transparent 70%);
  animation: hero-light-pan 18s ease-in-out infinite alternate;
}

@keyframes hero-mark-drift {
  from { transform: translateY(10px); }
  to { transform: translateY(-14px); }
}

@keyframes hero-light-pan {
  from { transform: translateX(-3.5%); }
  to { transform: translateX(3.5%); }
}

@media (max-width: 680px) {
  .hero::before {
    background-position: right 8px top 12px;
    background-size: 330px auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero::before,
  .hero::after {
    animation: none;
  }
}

.hero__grid {
  position: relative;
  z-index: 2;
  display: grid;
  min-height: 680px;
  grid-template-columns: minmax(0, 1.1fr) minmax(430px, 0.9fr);
  align-items: center;
  gap: 55px;
  padding-block: 68px 76px;
}

.hero__copy h1 {
  max-width: 680px;
  margin-bottom: 25px;
  color: var(--text);
  font-size: clamp(2.65rem, 4.4vw, 4.25rem);
  letter-spacing: -0.015em;
}

.lang-zh .hero__copy h1,
.lang-my .hero__copy h1 {
  letter-spacing: 0;
}

.hero__intro {
  max-width: 650px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 30px;
}

.hero__proof {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero__proof li {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(230, 238, 245, 0.64);
  font-size: 0.71rem;
  font-weight: 650;
}

.hero__proof svg {
  color: var(--green-500);
}

/* ── Hero showcase — real shipped work is the hero visual ─────
   A desktop capture in a minimal browser frame, the matching
   mobile capture floating over it, and the live project's name.
   Three shipped projects cross-fade on a slow CSS-only cycle. */
.hero-showcase {
  position: relative;
  display: block;
  width: min(100%, 560px);
  aspect-ratio: 10 / 8;
  justify-self: end;
}

.showcase-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  animation: showcase-cycle 21s linear infinite;
}

/* The first slide starts mid-way through its visible window, so real
   work is on screen from the very first paint. */
.showcase-slide--1 { animation-delay: -1s; }
.showcase-slide--2 { animation-delay: 6s; }
.showcase-slide--3 { animation-delay: 13s; }

@keyframes showcase-cycle {
  0% { opacity: 0; }
  4%, 33.3% { opacity: 1; }
  38%, 100% { opacity: 0; }
}

.showcase-frame {
  position: absolute;
  top: 0;
  right: 0;
  left: 10%;
  display: block;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  transition: transform 0.5s var(--ease);
}

.hero-showcase:hover .showcase-frame {
  transform: translateY(-4px);
}

/* The frame chrome mimics a light browser capture in both themes,
   so the screenshot always reads as "a real site, live". */
.showcase-frame__bar {
  display: flex;
  height: 34px;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  background: #f4f6f9;
  border-bottom: 1px solid #eaeef4;
}

.showcase-frame__bar i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.showcase-frame__bar i:nth-child(1) { background: #ff5f57; }
.showcase-frame__bar i:nth-child(2) { background: #febc2e; }
.showcase-frame__bar i:nth-child(3) { background: #28c840; }

.showcase-frame__bar em {
  overflow: hidden;
  margin-left: 8px;
  color: #677181;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.62rem;
  font-style: normal;
  letter-spacing: 0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.showcase-frame img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #ffffff;
  object-fit: cover;
  object-position: top center;
}

.showcase-phone {
  position: absolute;
  bottom: 6%;
  left: 0;
  display: block;
  width: 30%;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  box-shadow: var(--shadow-md);
}

.showcase-phone img {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 18.6;
  background: #ffffff;
  object-fit: cover;
  object-position: top center;
}

.showcase-caption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 36%;
  display: grid;
  gap: 7px;
  justify-items: start;
}

.showcase-caption__status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  color: var(--slate-600);
  background: var(--veil-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.6rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.showcase-caption__status i {
  width: 6px;
  height: 6px;
  background: var(--green-500);
  border-radius: 50%;
}

.showcase-caption strong {
  overflow: hidden;
  max-width: 100%;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  .showcase-slide {
    animation: none;
  }

  .showcase-slide--1 {
    opacity: 1;
  }
}

.project-window__bar i,
.case-shot__bar i {
  width: 6px;
  height: 6px;
  background: var(--slate-200);
  border-radius: 50%;
}

.project-window__bar i:first-child,
.case-shot__bar i:first-child {
  background: #f1b6a8;
}

.project-window__bar i:nth-child(2),
.case-shot__bar i:nth-child(2) {
  background: var(--gold-400);
}

.project-window__bar i:last-child,
.case-shot__bar i:last-child {
  background: #8fd4b5;
}

/* Trust strip */
.trust-strip {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.trust-strip__inner {
  display: flex;
  min-height: 92px;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.trust-strip p {
  margin: 0;
  color: var(--navy-900);
  font-size: 0.83rem;
  font-weight: 750;
}

.trust-strip__inner > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 24px;
}

.trust-strip span {
  position: relative;
  color: var(--slate-500);
  font-size: 0.7rem;
  font-weight: 700;
}

.trust-strip span:not(:first-child)::before {
  position: absolute;
  top: 50%;
  left: -14px;
  width: 3px;
  height: 3px;
  background: var(--gold-500);
  border-radius: 50%;
  content: "";
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
}

.service-card {
  min-height: 365px;
  padding: 27px 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.service-card:hover {
  border-color: rgba(201, 162, 86, 0.46);
  box-shadow: var(--shadow-md);
  transform: translateY(-6px);
}

.service-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 52px;
}

.service-card__icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: var(--navy-800);
  background: var(--slate-50);
  border: 1px solid var(--slate-100);
  border-radius: 13px;
}

.service-card__number,
.service-detail__number {
  color: var(--slate-400);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.7rem;
}

.service-card h3 {
  margin-bottom: 13px;
  font-size: var(--fs-card-title);
}

.service-card p {
  margin-bottom: 20px;
  font-size: var(--fs-card-body);
  line-height: 1.65;
}

.service-card ul {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.service-card li {
  padding: 6px 10px;
  color: var(--slate-500);
  background: var(--slate-50);
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* Work preview and placeholder visuals. The lead project sits alone at
   full width; the two supporting cards share a row below it. */
.work-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.work-card--feature {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
  margin-bottom: 20px;
  /* pointer-tilt looks wrong on a card this wide */
  --tilt-x: 0deg !important;
  --tilt-y: 0deg !important;
}

.work-card--feature .work-card__visual--shot {
  height: 100%;
  min-height: 420px;
  border-right: 1px solid var(--line);
  border-bottom: 0;
}

.work-card--feature .work-card__body {
  align-self: center;
  padding: 38px 36px;
}

.work-card--feature h3 {
  font-size: 1.5rem;
}

.work-card--feature .work-card__body > p {
  min-height: 0;
  font-size: 0.92rem;
}

.work-card {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.work-card__visual {
  --mock-accent: var(--gold-500);
  --mock-accent-2: #ecd49c;
  position: relative;
  display: grid;
  height: 258px;
  place-items: end center;
  overflow: hidden;
  padding: 30px 30px 0;
  background:
    radial-gradient(130% 120% at 82% -20%, rgba(var(--gold-rgb), 0.20), transparent 55%),
    radial-gradient(120% 130% at -10% 120%, rgba(79, 209, 164, 0.13), transparent 55%),
    var(--mock-frame);
}

/* Shipped work: the real screenshot fills the card edge-to-edge —
   no decorative frame competing with the actual product. */
.work-card__visual--shot {
  display: block;
  padding: 0;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

.work-shot {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.9s var(--ease);
}

.work-card:hover .work-shot {
  transform: scale(1.03);
}

.work-shot__domain {
  position: absolute;
  bottom: 12px;
  left: 12px;
  padding: 5px 11px;
  color: #eef2f8;
  background: rgba(10, 14, 21, 0.72);
  border-radius: 999px;
  backdrop-filter: blur(6px);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.62rem;
  letter-spacing: 0.02em;
}

/* faint grid texture on the device frame — reads as "engineered" */
.work-card__visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--mock-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--mock-grid) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(120% 92% at 50% 4%, #000, transparent 78%);
  mask-image: radial-gradient(120% 92% at 50% 4%, #000, transparent 78%);
}

/* per-project chart accent — distinct, on-brand */
.project-visual--rays-bible { --mock-accent: #34b58c; --mock-accent-2: #7fd9b6; }
.project-visual--nonprofit-toolkit { --mock-accent: #8f7bd8; --mock-accent-2: #bcabee; }
.project-visual--ai-workflows { --mock-accent: #4f97e6; --mock-accent-2: #93c2f2; }

/* The window is a self-contained light "product screenshot" — same premium
   look in both themes, docked at the bottom of the frame like a real capture. */
.project-window {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 342px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 12px 12px 0 0;
  box-shadow: 0 28px 60px -22px rgba(6, 10, 22, 0.55), 0 3px 10px rgba(6, 10, 22, 0.14);
}

.project-window__bar {
  display: flex;
  height: 32px;
  align-items: center;
  gap: 6px;
  padding: 0 13px;
  background: #f4f6f9;
  border-bottom: 1px solid #eaeef4;
}
.project-window__bar i { width: 8px; height: 8px; border-radius: 50%; }
.project-window__bar i:nth-child(1) { background: #ff5f57; }
.project-window__bar i:nth-child(2) { background: #febc2e; }
.project-window__bar i:nth-child(3) { background: #28c840; }
.project-window__bar span {
  overflow: hidden;
  margin-left: 9px;
  color: #677181;
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-window__canvas {
  display: grid;
  height: 158px;
  grid-template-columns: 54px 1fr;
  background: #ffffff;
}

/* A live project puts its real homepage inside the window frame, filling the
   exact space the mock-up canvas would have taken. */
.project-window__shot {
  display: block;
  width: 100%;
  height: 158px;
  background: #ffffff;
  object-fit: cover;
  object-position: top center;
}

.project-window__rail {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 10px;
  background: #f7f9fc;
  border-right: 1px solid #eef1f7;
}
.project-window__rail b { height: 7px; border-radius: 3px; background: #e3e8f0; }
.project-window__rail b.on {
  background: linear-gradient(90deg, var(--mock-accent), var(--mock-accent-2));
  box-shadow: 0 3px 9px -2px rgba(20, 28, 43, 0.28);
}
.project-window__rail b:nth-child(1) { width: 72%; }
.project-window__rail b:nth-child(2) { width: 92%; }
.project-window__rail b:nth-child(3) { width: 100%; }
.project-window__rail b:nth-child(4) { width: 60%; }
.project-window__rail b:nth-child(5) { width: 84%; }

.project-window__content {
  display: flex;
  flex-direction: column;
  gap: 11px;
  padding: 14px;
}

.pw-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pw-stats span {
  height: 27px;
  border-radius: 7px;
  background: #eef2f8;
  border: 1px solid #e6ecf3;
}
.pw-stats .pw-accent {
  background: linear-gradient(135deg, var(--mock-accent), var(--mock-accent-2));
  border: none;
  box-shadow: 0 5px 13px -4px rgba(20, 28, 43, 0.35);
}

.pw-chart {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 46px;
}
.pw-chart i {
  flex: 1;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(180deg, var(--mock-accent), var(--mock-accent-2));
  opacity: 0.88;
}
.pw-chart i:nth-child(1) { height: 40%; }
.pw-chart i:nth-child(2) { height: 66%; }
.pw-chart i:nth-child(3) { height: 52%; }
.pw-chart i:nth-child(4) { height: 84%; }
.pw-chart i:nth-child(5) { height: 60%; }
.pw-chart i:nth-child(6) { height: 97%; opacity: 1; }
.pw-chart i:nth-child(7) { height: 74%; }

.pw-rows { display: flex; flex-direction: column; gap: 6px; }
.pw-rows u { height: 6px; border-radius: 3px; background: #eef2f8; }
.pw-rows u:nth-child(1) { width: 100%; }
.pw-rows u:nth-child(2) { width: 76%; }
.pw-rows u:nth-child(3) { width: 88%; }

.visual-index {
  position: absolute;
  right: 16px;
  bottom: 13px;
  color: var(--slate-400);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.64rem;
}

.work-card__body {
  padding: 25px;
}

/* "View case study" plus, for shipped work, a direct link out to the client's
   site. Wraps rather than squeezing, so a long domain never collides with the
   case-study link on a narrow card. */
.work-card__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 20px;
}

.text-link--muted {
  color: var(--slate-500);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.72rem;
  letter-spacing: 0;
}

.text-link--muted::after { display: none; }

.text-link--muted:hover {
  color: var(--gold-400);
}

.text-link--muted svg {
  flex: none;
  opacity: 0.75;
}

.work-card__meta {
  display: flex;
  min-height: 28px;
  align-items: center;
  gap: 9px;
  margin-bottom: 15px;
}

.work-card__meta > span:last-child {
  overflow: hidden;
  color: var(--slate-500);
  font-size: 0.65rem;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.work-card h3 {
  margin-bottom: 10px;
  font-size: 1.18rem;
}

.work-card__body > p {
  min-height: 86px;
  margin-bottom: 17px;
  font-size: 0.8rem;
  line-height: 1.7;
}

.work-card .tag-list {
  margin-bottom: 22px;
}

/* The old "Why" section folded into the about preview — three compact
   principles under the founder copy. */
.about-why {
  display: grid;
  gap: 16px;
  margin: 26px 0 28px;
}

.about-why__item {
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: start;
  gap: 12px;
}

.about-why__item > span {
  padding-top: 3px;
  color: var(--gold-500);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.72rem;
}

.about-why__item strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
  font-size: 0.98rem;
}

.about-why__item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.65;
}

/* The five-step process, compressed to one quiet band */
.process-strip {
  padding: 28px 0;
  background: var(--veil-1);
  border-block: 1px solid var(--line);
}

.process-strip__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 40px;
}

.process-strip .eyebrow {
  margin-bottom: 0;
}

.process-strip__steps {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 34px;
  margin: 0 0 0 auto;
  padding: 0;
  list-style: none;
}

.process-strip__steps li {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--slate-600);
  font-size: 0.9rem;
  font-weight: 650;
}

.process-strip__steps li > span {
  color: var(--gold-500);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.68rem;
}

.lang-my .process-strip__steps li {
  line-height: 1.7;
}

/* Home: slow marquee of real project screenshots (decorative) */
.shot-marquee {
  overflow: hidden;
  padding: 26px 0;
  border-block: 1px solid var(--line);
  background: var(--veil-1);
}

.shot-marquee__track {
  display: flex;
  width: max-content;
  gap: 16px;
  animation: shot-marquee-scroll 75s linear infinite;
}

.shot-marquee:hover .shot-marquee__track {
  animation-play-state: paused;
}

.shot-marquee img {
  height: 150px;
  width: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  filter: grayscale(0.85);
  opacity: 0.9;
  transition: filter 0.4s ease, opacity 0.4s ease;
}

.shot-marquee img:hover {
  filter: none;
  opacity: 1;
}

@keyframes shot-marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .shot-marquee__track { animation: none; }
}

/* Home: free-tool strip */
.tool-strip {
  padding: 64px 0;
  border-block: 1px solid var(--line);
  background: var(--section-soft-bg);
}

.tool-strip__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.tool-strip h2 {
  margin-bottom: 10px;
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
}

.tool-strip__text {
  max-width: 560px;
  margin: 0;
  font-size: 0.95rem;
}

/* Services: interactive booking-flow demo */
.booking-demo {
  max-width: 640px;
  margin-inline: auto;
  padding: 30px 30px 22px;
  background: var(--surface-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm), var(--card-inset);
}

.booking-demo__steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  margin: 0 0 24px;
  padding: 0 0 18px;
  border-bottom: 1px solid var(--line);
  list-style: none;
}

.booking-demo__steps li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--slate-400);
  font-size: 0.82rem;
  font-weight: 650;
}

.booking-demo__steps li > span {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  background: var(--veil-2);
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 0.68rem;
}

.booking-demo__steps li.is-active {
  color: var(--text);
}

.booking-demo__steps li.is-active > span {
  color: var(--on-gold);
  background: var(--gold-400);
  border-color: transparent;
}

.booking-demo__panel {
  display: grid;
  gap: 10px;
}

/* display:grid would defeat the hidden attribute — reassert it */
.booking-demo__panel[hidden] {
  display: none;
}

.demo-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  color: var(--text);
  background: var(--veil-1);
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.demo-option:hover {
  background: var(--veil-2);
  border-color: var(--surface-card-hover-line);
  transform: translateY(-1px);
}

.demo-option strong {
  flex: 1;
  font-size: 0.95rem;
}

.demo-option span {
  color: var(--muted);
  font-size: 0.82rem;
  white-space: nowrap;
}

.demo-option svg {
  color: var(--gold-500);
}

.booking-demo__times {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  gap: 10px;
}

.demo-option--time {
  justify-content: center;
  font-weight: 700;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9rem;
}

.booking-demo__back {
  justify-self: start;
  border: 0;
  background: none;
  cursor: pointer;
  font: inherit;
  padding: 6px 0;
}

.booking-demo__summary-label {
  margin: 0;
  color: var(--slate-400);
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.booking-demo__summary {
  margin: 0 0 6px;
  color: var(--text);
  font-size: 1.08rem;
  font-weight: 650;
}

.booking-demo__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 20px;
}

.booking-demo__done {
  justify-items: center;
  padding: 14px 0 6px;
  text-align: center;
}

.booking-demo__check {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  color: var(--green-500);
  background: rgba(79, 209, 164, 0.12);
  border: 1px solid rgba(79, 209, 164, 0.35);
  border-radius: 50%;
}

.booking-demo__done h3 {
  margin: 4px 0 0;
  font-size: 1.25rem;
}

.booking-demo__done p {
  max-width: 440px;
  margin: 0 0 8px;
  font-size: 0.88rem;
}

.booking-demo__note {
  margin: 18px 0 0;
  color: var(--slate-400);
  font-size: 0.72rem;
  text-align: center;
}

/* Footer newsletter signup (sits on the ink footer, tokens re-scoped) */
.footer-subscribe {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 40px;
  padding-top: 34px;
  padding-bottom: 34px;
  border-top: 1px solid var(--line);
}

.footer-subscribe h2 {
  margin-bottom: 6px;
  color: var(--text);
  font-size: 1.25rem;
}

.footer-subscribe p {
  max-width: 480px;
  margin: 0;
  color: var(--slate-500);
  font-size: 0.85rem;
}

.footer-subscribe__form {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-subscribe__form input {
  min-width: 260px;
  padding: 12px 16px;
  color: var(--text);
  background: var(--veil-2);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font: inherit;
  font-size: 0.9rem;
}

.footer-subscribe__form input::placeholder {
  color: var(--slate-400);
}

.footer-subscribe__form input:focus {
  border-color: var(--gold-500);
  outline: none;
}

.footer-subscribe__status {
  flex-basis: 100%;
  margin: 4px 0 0;
  color: var(--gold-300);
  font-size: 0.8rem;
}

@media (max-width: 680px) {
  .footer-subscribe__form,
  .footer-subscribe__form input {
    width: 100%;
  }
}

/* Contact page — pre-selected package chip + up-front facts */
.package-chip {
  display: grid;
  gap: 3px;
  padding: 13px 16px;
  background: rgba(var(--gold-rgb), 0.08);
  border: 1px solid rgba(var(--gold-rgb), 0.3);
  border-radius: 10px;
}

.package-chip__label {
  color: var(--gold-500);
  font-size: 0.64rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.package-chip strong { color: var(--text); font-size: 0.98rem; }
.package-chip small { color: var(--muted); font-size: 0.76rem; }

.contact-facts .check-list { margin-bottom: 14px; }

/* Work page — filterable card index + one expanded case study */
.work-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 34px;
}

.work-filter__btn {
  padding: 9px 18px;
  color: var(--slate-500);
  background: var(--surface-card);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 650;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.work-filter__btn:hover {
  color: var(--text);
  border-color: var(--line-strong);
}

.work-filter__btn.is-active {
  color: var(--on-gold);
  background: linear-gradient(135deg, var(--gold-300), var(--gold-500));
  border-color: transparent;
}

html[data-mode="light"] .work-filter__btn.is-active {
  color: #ffffff;
  background: var(--navy-900);
}

.work-index {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 44px;
}

.work-card__visual--index {
  height: 200px;
}

.work-card--index .work-card__body {
  padding: 20px;
}

.work-card--index h3 {
  font-size: 1.05rem;
}

.work-card--index .work-card__body > p {
  display: -webkit-box;
  overflow: hidden;
  min-height: 0;
  margin-bottom: 14px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 0.8rem;
}

/* Website / App kind badge on the work cards */
.kind-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  color: var(--green-text);
  background: rgba(79, 209, 164, 0.1);
  border: 1px solid rgba(79, 209, 164, 0.3);
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 750;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.kind-badge--app {
  color: var(--gold-500);
  background: rgba(var(--gold-rgb), 0.1);
  border-color: rgba(var(--gold-rgb), 0.35);
}

.lang-my .kind-badge {
  letter-spacing: 0;
  text-transform: none;
}

.work-card__open {
  border: 0;
  background: none;
  cursor: pointer;
  font: inherit;
  padding: 6px 0;
}

.case-study--panel {
  padding-top: 40px;
  border-top: 2px solid var(--gold-500);
}

.case-study__lead-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

@media (max-width: 920px) {
  .work-index {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 680px) {
  .work-index {
    grid-template-columns: 1fr;
  }
}

/* Pricing page — written engagement terms (milestones, extras, fees) */
.milestone-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 26px;
  margin: 0 0 74px;
  padding: 0;
  list-style: none;
}

.milestone {
  padding: 24px 22px;
  background: var(--surface-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--card-inset);
}

.milestone__number {
  display: block;
  margin-bottom: 12px;
  color: var(--gold-500);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.72rem;
}

.milestone h3 {
  margin-bottom: 8px;
  font-size: 1.02rem;
}

.milestone p {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.65;
}

.engagement-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
}

.engagement-cols__title {
  margin-bottom: 8px;
  font-size: 1.15rem;
}

.engagement-cols__intro {
  margin-bottom: 20px;
  font-size: 0.9rem;
}

.fee-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.fee-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.fee-list strong {
  display: block;
  margin-bottom: 3px;
  color: var(--text);
  font-size: 0.94rem;
}

.fee-list p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.6;
}

.fee-list li > span {
  flex: none;
  color: var(--gold-500);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}

@media (max-width: 920px) {
  .milestone-grid {
    grid-template-columns: 1fr 1fr;
    margin-bottom: 54px;
  }

  .engagement-cols {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .milestone-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

/* ── Printable scope sheet (/proposal) — always a white paper sheet,
      whatever theme the site is in; prints as a clean A4 document. ── */
.proposal-section {
  padding: 72px 0;
}

.proposal-doc {
  --text: #17150f;
  --muted: #4c4738;
  max-width: 820px;
  margin-inline: auto;
  padding: 46px 50px 38px;
  color: var(--text);
  background: #ffffff;
  border: 1px solid rgba(40, 34, 18, 0.18);
  border-radius: 10px;
  box-shadow: var(--shadow-md);
}

.proposal-doc h1,
.proposal-doc h2,
.proposal-doc h3 {
  color: var(--text);
}

.proposal-doc__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 2px solid #17150f;
}

.proposal-doc__brand {
  display: flex;
  flex: none;
  align-items: center;
  gap: 10px;
}

.proposal-doc__brand .logo-mark { width: 40px; height: 40px; color: #17150f; }
.proposal-doc__brand strong { display: block; font-size: 0.98rem; }
.proposal-doc__brand span { color: var(--muted); font-size: 0.62rem; letter-spacing: 0.04em; }

.proposal-doc__title h1 {
  margin-bottom: 6px;
  font-size: 1.6rem;
  text-align: right;
}

.proposal-doc__title p {
  max-width: 400px;
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.55;
  text-align: right;
}

.proposal-doc__docmeta h1 {
  margin-bottom: 8px;
  font-size: 1.5rem;
  text-align: right;
}

.proposal-doc__docmeta ul {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.proposal-doc__docmeta li {
  display: flex;
  justify-content: flex-end;
  align-items: baseline;
  gap: 7px;
  font-size: 0.72rem;
  color: var(--muted);
}

.proposal-doc__docmeta i {
  min-width: 120px;
  border-bottom: 1px solid rgba(40, 34, 18, 0.4);
  font-style: normal;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.7rem;
  text-align: left;
}

.proposal-doc__intro {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.6;
}

.proposal-doc__parties {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 22px;
  padding: 16px 18px;
  background: #faf7ef;
  border: 1px solid rgba(40, 34, 18, 0.14);
  border-radius: 8px;
}

.proposal-doc__parties h3 {
  margin-bottom: 8px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.proposal-doc__fill {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.proposal-doc__fill li { display: flex; align-items: baseline; gap: 7px; font-size: 0.74rem; color: var(--muted); }
.proposal-doc__fill i { flex: 1; border-bottom: 1px solid rgba(40, 34, 18, 0.4); }

.proposal-doc__by {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.76rem;
  line-height: 1.5;
  color: var(--text);
}

.proposal-doc__checks--boxes b {
  flex: none;
  width: 11px;
  height: 11px;
  margin-top: 4px;
  border: 1.5px solid rgba(40, 34, 18, 0.6);
  border-radius: 2px;
}

.proposal-doc__block { margin-bottom: 18px; }

.proposal-doc__block > h3 {
  margin-bottom: 9px;
  font-size: 0.8rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.proposal-doc__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.proposal-doc__table th {
  padding: 7px 10px;
  color: #ffffff;
  background: #17150f;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-align: left;
  text-transform: uppercase;
}

.proposal-doc__table td {
  padding: 8px 10px;
  border-bottom: 1px solid rgba(40, 34, 18, 0.18);
  line-height: 1.45;
  vertical-align: top;
}

.proposal-doc__table td:nth-child(2) { color: var(--muted); white-space: nowrap; }
.proposal-doc__table td:last-child { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.72rem; white-space: nowrap; }

.proposal-doc__step {
  display: inline-grid;
  width: 17px;
  height: 17px;
  margin-right: 8px;
  place-items: center;
  color: #ffffff;
  background: #17150f;
  border-radius: 50%;
  font-size: 0.6rem;
  font-weight: 700;
}

.proposal-doc__rates {
  margin: 0;
  padding: 0;
  list-style: none;
}

.proposal-doc__rates li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 6px 0;
  border-bottom: 1px dotted rgba(40, 34, 18, 0.3);
  font-size: 0.78rem;
  line-height: 1.5;
}

.proposal-doc__rates em {
  flex: none;
  color: #8c6716;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 700;
}

.proposal-doc__foot {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.66rem;
  letter-spacing: 0.02em;
  text-align: center;
}

.proposal-doc__package {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
  padding: 13px 18px;
  background: #f6f1e2;
  border: 1px solid rgba(140, 103, 22, 0.35);
  border-radius: 8px;
}

.proposal-doc__package h2 { margin: 0; font-size: 1.1rem; }
.proposal-doc__package strong { color: #8c6716; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 1rem; }

.proposal-doc__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 18px;
}

.proposal-doc__cols h3 {
  margin-bottom: 9px;
  font-size: 0.8rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.proposal-doc__checks,
.proposal-doc__plain,
.proposal-doc__milestones {
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}

.proposal-doc__checks li {
  display: flex;
  gap: 8px;
  padding: 4px 0;
  font-size: 0.82rem;
  line-height: 1.5;
}

.proposal-doc__checks svg { flex: none; margin-top: 4px; color: #148f6b; }

.proposal-doc__plain li {
  padding: 5px 0;
  border-bottom: 1px dotted rgba(40, 34, 18, 0.3);
  font-size: 0.8rem;
  line-height: 1.55;
}

.proposal-doc__milestones li {
  display: flex;
  gap: 10px;
  padding: 5px 0;
  font-size: 0.82rem;
  line-height: 1.5;
}

.proposal-doc__milestones li > span {
  flex: none;
  width: 19px;
  height: 19px;
  margin-top: 1px;
  color: #ffffff;
  background: #17150f;
  border-radius: 50%;
  font-size: 0.62rem;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.proposal-doc__milestones small { display: block; color: var(--muted); font-size: 0.7rem; }

.proposal-doc__terms { margin: 0; font-size: 0.76rem; line-height: 1.6; color: var(--muted); }

.proposal-doc__sign {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 2px solid #17150f;
}

.proposal-doc__sign h4 {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.proposal-print { margin: 26px 0 0; text-align: center; }

@media (max-width: 680px) {
  .proposal-doc { padding: 28px 22px; }
  .proposal-doc__head { flex-direction: column; }
  .proposal-doc__title h1, .proposal-doc__title p { text-align: left; }
  .proposal-doc__meta { grid-template-columns: 1fr 1fr; }
  .proposal-doc__cols { grid-template-columns: 1fr; gap: 16px; }
}

@media print {
  .site-header,
  .site-footer,
  .bottom-nav,
  .chat-widget,
  .page-progress,
  .route-progress,
  .share-toast,
  .proposal-print,
  .skip-link {
    display: none !important;
  }

  body, html { background: #ffffff !important; }
  body::before, body::after { display: none !important; }
  main { padding: 0 !important; }

  .proposal-section { padding: 0; }

  .proposal-doc {
    max-width: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 10mm 6mm;
  }
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 18px;
}

.pricing-card {
  position: relative;
  display: flex;
  min-height: 520px;
  flex-direction: column;
  padding: 34px 30px 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.pricing-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-5px);
}

.pricing-card--featured {
  color: var(--text);
  background:
    radial-gradient(circle at 90% 5%, rgba(201, 162, 86, 0.18), transparent 30%),
    var(--navy-900);
  border-color: var(--navy-900);
  box-shadow: var(--shadow-md);
}

/* Background, not text: this badge wants the LIGHT gold so the navy on top of
   it stays readable. --gold-400 is tuned for gold-on-page text and is far too
   dark to sit under type. */
.pricing-card__popular {
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 5px 9px;
  color: var(--navy-900);
  background: var(--gold-300);
  border-radius: 999px;
  font-size: 0.58rem;
  font-weight: 800;
}

.pricing-card__period {
  margin-bottom: 9px;
  color: var(--green-text);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pricing-card--featured .pricing-card__period {
  color: var(--gold-400);
}

.pricing-card h3 {
  margin-bottom: 14px;
  font-size: 1.3rem;
}

.pricing-card__price {
  margin-bottom: 13px;
  color: var(--navy-900);
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.pricing-card__for {
  min-height: 56px;
  margin-bottom: 25px;
  padding-bottom: 23px;
  border-bottom: 1px solid var(--line);
  font-size: 0.78rem;
}

.pricing-card--featured h3,
.pricing-card--featured .pricing-card__price {
  color: var(--text);
}

.pricing-card--featured .pricing-card__for,
.pricing-card--featured .check-list li {
  color: var(--muted);
}

.pricing-card--featured .pricing-card__for {
  border-color: rgba(255, 255, 255, 0.15);
}

.pricing-card .check-list {
  margin-bottom: 28px;
}

.pricing-card .button {
  margin-top: auto;
}

.pricing-card--featured .button--secondary {
  color: var(--navy-950);
  background: var(--gold-400);
  border-color: var(--gold-400);
}

.pricing-note {
  max-width: 700px;
  margin: 28px auto 0;
  font-size: 0.77rem;
  text-align: center;
}

/* About preview */
.about-preview__grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1.25fr);
  align-items: center;
  gap: 86px;
}

.ray-portrait {
  position: relative;
  display: grid;
  height: 500px;
  place-items: center;
  overflow: hidden;
  color: var(--text);
  background:
    linear-gradient(155deg, rgba(14, 29, 49, 0.3), rgba(14, 29, 49, 0.9)),
    linear-gradient(130deg, #284a60, #11233a);
  border-radius: var(--radius-lg);
}

.ray-monogram {
  position: relative;
  z-index: 1;
  display: grid;
  width: 150px;
  height: 150px;
  place-items: center;
  color: var(--gold-300);
  border: 1px solid rgba(237, 198, 117, 0.38);
  border-radius: 50%;
  font-family: Georgia, serif;
  font-size: 5rem;
}

.ray-portrait__caption {
  position: absolute;
  right: 28px;
  bottom: 25px;
  left: 28px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.ray-portrait__caption span {
  color: var(--text);
  font-size: 1rem;
  font-weight: 750;
}

.ray-portrait__caption small {
  color: var(--slate-500);
  font-size: 0.58rem;
}

.about-preview__copy h2 {
  max-width: 660px;
  margin-bottom: 25px;
  font-size: clamp(2rem, 4vw, 3.35rem);
}

.about-preview__copy > p:not(.eyebrow) {
  max-width: 650px;
  font-size: 0.95rem;
}

.about-preview__copy .tag-list {
  max-width: 690px;
  margin: 28px 0;
}

/* CTA */
.section--cta {
  padding: 86px 0;
}

.cta-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 70px;
  overflow: hidden;
  padding: 62px 65px;
  color: var(--text);
  background:
    radial-gradient(circle at 88% 0%, rgba(201, 162, 86, 0.23), transparent 28%),
    radial-gradient(circle at 0% 100%, rgba(70, 184, 132, 0.13), transparent 30%),
    var(--navy-900);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.cta-panel::after {
  position: absolute;
  width: 260px;
  height: 260px;
  top: -180px;
  right: 25%;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 50%;
  box-shadow: 0 0 0 45px rgba(255, 255, 255, 0.02), 0 0 0 90px rgba(255, 255, 255, 0.015);
  content: "";
}

.cta-panel h2 {
  max-width: 760px;
  margin-bottom: 14px;
  color: var(--text);
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.cta-panel p:not(.eyebrow) {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.cta-panel__actions {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 10px;
  min-width: 190px;
}

/* Page hero */
.page-hero {
  position: relative;
  overflow: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 80% -20%, rgba(201, 162, 86, 0.19), transparent 35%),
    radial-gradient(circle at 15% 130%, rgba(70, 184, 132, 0.14), transparent 30%),
    var(--navy-900);
}

.page-hero::after {
  position: absolute;
  width: 460px;
  height: 460px;
  top: -300px;
  right: 8%;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 50%;
  box-shadow: 0 0 0 70px rgba(255, 255, 255, 0.018), 0 0 0 140px rgba(255, 255, 255, 0.012);
  content: "";
}

.page-hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 460px;
  flex-direction: column;
  justify-content: center;
  padding-block: 92px;
}

.page-hero h1 {
  max-width: 920px;
  margin-bottom: 23px;
  color: var(--text);
  font-size: clamp(2.75rem, 6vw, 5.2rem);
  letter-spacing: -0.05em;
}

.page-hero__intro {
  max-width: 740px;
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

/* Services detail */
.service-detail-list {
  display: grid;
  gap: 26px;
}

.service-detail {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 65px;
  padding: 50px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.service-detail__title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

.service-detail h2 {
  margin-bottom: 17px;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
}

.service-detail__intro > p {
  margin-bottom: 28px;
  font-size: 0.93rem;
}

.service-detail h3 {
  margin-bottom: 13px;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.service-detail__scope {
  padding-left: 45px;
  border-left: 1px solid var(--line);
}

.service-detail__scope .check-list {
  grid-template-columns: 1fr 1fr;
  gap: 14px 24px;
}

.service-detail__note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 28px 0 0;
  padding: 17px;
  color: var(--slate-600);
  background: var(--slate-50);
  border-left: 2px solid var(--gold-500);
  border-radius: 0 8px 8px 0;
  font-size: 0.76rem;
}

.service-detail__note svg {
  flex: 0 0 18px;
  color: var(--gold-500);
}

/* Portfolio */
.portfolio-note {
  background: var(--sand-50);
  border-bottom: 1px solid var(--line);
}

.portfolio-note .container {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.portfolio-note svg {
  flex: 0 0 18px;
  color: var(--green-600);
}

.portfolio-note p {
  margin: 0;
  font-size: 0.78rem;
}

.portfolio-list {
  padding-top: 88px;
}

/* Category heading above each run of case studies. The count sits on the right
   as a quiet figure — it answers "how much of this do you actually do?" without
   a sentence claiming it. */
.portfolio-group {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 18px;
  padding-bottom: 20px;
  margin-bottom: 54px;
  border-bottom: 1px solid var(--line);
}

.portfolio-group:not(:first-child) {
  margin-top: 40px;
}

.portfolio-group__title {
  margin: 0;
  color: var(--gold-400);
  font-size: clamp(1.05rem, 1.7vw, 1.35rem);
  letter-spacing: 0.01em;
}

.portfolio-group__intro {
  flex: 1 1 320px;
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.portfolio-group__count {
  margin-left: auto;
  color: var(--slate-500);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.72rem;
}

.case-study {
  margin-bottom: 120px;
  scroll-margin-top: 105px;
}

.case-study:last-child {
  margin-bottom: 0;
}

.case-study__header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.62fr);
  align-items: end;
  gap: 70px;
  margin-bottom: 38px;
}

.case-study__meta {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 16px;
}

.case-study__meta > span:first-child {
  color: var(--gold-400);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.7rem;
}

.case-study h2 {
  margin-bottom: 9px;
  font-size: clamp(2rem, 4vw, 3.3rem);
}

.case-study__type {
  margin: 0;
  color: var(--green-text);
  font-size: 0.75rem;
  font-weight: 750;
}

.case-study__summary {
  margin: 0;
  font-size: 0.94rem;
}

/* Summary + (for shipped work) a link to the running site. */
.case-study__lead {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.case-study__visit {
  flex: 0 0 auto;
}

/* currentColor keeps the divider correct in both themes: .button--gold pins its
   text to --navy-950 in light and dark alike. */
.case-study__visit-host {
  padding-left: 9px;
  border-left: 1px solid currentColor;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.72rem;
  opacity: 0.68;
}

.case-study__visual {
  --mock-accent: var(--gold-500);
  --mock-accent-2: #ecd49c;
  position: relative;
  display: grid;
  min-height: 480px;
  grid-template-columns: 1.25fr 0.75fr;
  grid-template-rows: 1fr 1fr;
  gap: 16px;
  overflow: hidden;
  padding: 36px;
  background:
    radial-gradient(120% 100% at 85% -10%, rgba(var(--gold-rgb), 0.18), transparent 55%),
    radial-gradient(110% 110% at -5% 115%, rgba(79, 209, 164, 0.12), transparent 55%),
    var(--mock-frame);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

/* Real captures compose differently from the mock-ups. Landscape shots get
   landscape cells (the homepage runs the full width on top) so cropping happens
   top-down and never slices the client's logo off the left edge; the phone gets
   its own tall, narrow column so a portrait capture sits in a portrait cell. */
/* An explicit height is what makes this work: a real <img> carries intrinsic
   height, so `fr` rows in an auto-height grid would be blown open by the
   capture's own 1000px instead of cropping it. Pinning the frame makes the
   images fill and crop, the way the mock-ups do. */
.case-study__visual--real {
  height: 700px;
  grid-template-columns: 1fr 1fr 0.5fr;
  grid-template-rows: 1.15fr 0.85fr;
}

.case-study__visual--real .case-shot--1 { grid-column: 1 / 3; grid-row: 1; }
.case-study__visual--real .case-shot--2 { grid-column: 1; grid-row: 2; }
.case-study__visual--real .case-shot--3 { grid-column: 2; grid-row: 2; }
.case-study__visual--real .case-shot--4 { grid-column: 3; grid-row: 1 / 3; }

.case-shot {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 0;
  flex-direction: column;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 12px;
  box-shadow: 0 22px 48px -16px rgba(6, 10, 22, 0.5), 0 2px 8px rgba(6, 10, 22, 0.12);
}

.case-shot--1 {
  grid-row: 1 / 3;
}

.case-shot__bar {
  display: flex;
  height: 28px;
  flex: 0 0 28px;
  align-items: center;
  gap: 5px;
  padding: 0 10px;
  background: #f4f6f9;
  border-bottom: 1px solid #eaeef4;
}

.case-shot__ui {
  display: grid;
  min-height: 0;
  flex: 1;
  grid-template-columns: 1.3fr 0.7fr;
  grid-template-rows: 0.6fr 1fr;
  gap: 9px;
  padding: 13px;
}

.case-shot__ui span {
  display: block;
  background: #eef2f8;
  border-radius: 6px;
}

.case-shot__ui span:first-child {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, var(--mock-accent), var(--mock-accent-2));
  box-shadow: 0 6px 16px -6px rgba(20, 28, 43, 0.4);
}

.case-shot p {
  margin: 0;
  padding: 9px 13px;
  color: #6c7686;
  border-top: 1px solid #eef1f6;
  font-size: 0.59rem;
  font-weight: 700;
}

/* Shipped work shows real captures in the same frame the mock-ups use: only the
   contents change, so a live project reads as the same family, not a foreign
   element. Anchored top so each shot leads with its header and hero. */
.case-shot__img {
  display: block;
  width: 100%;
  min-height: 0;
  flex: 1;
  background: #f4f6f9;
  object-fit: cover;
  object-position: top center;
}

/* The phone capture is tall and narrow; contain it so the device view stays
   whole instead of being cropped to an unreadable strip. */
.case-shot--portrait .case-shot__img {
  background: #eef2f8;
  object-fit: contain;
  object-position: center;
}

.case-study__story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  padding: 48px 0;
  border-bottom: 1px solid var(--line);
}

.case-study__story h3,
.case-study__details h3,
.case-study__reflection h3 {
  margin-bottom: 12px;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.case-study__story p {
  margin: 0;
  font-size: 0.88rem;
}

.case-study__details {
  display: grid;
  grid-template-columns: 0.9fr 1fr 1fr;
  gap: 50px;
  padding: 48px 0;
}

.case-study__reflection {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  padding: 35px;
  background: var(--slate-50);
  border-radius: var(--radius-md);
}

.case-study__reflection > div:first-child {
  position: relative;
  padding-left: 48px;
}

.case-study__reflection > div:first-child > span {
  position: absolute;
  top: 0;
  left: 0;
  color: var(--gold-500);
}

.case-study__reflection p {
  margin: 0;
  font-size: 0.84rem;
}

/* About page */
.brand-story__grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.78fr) minmax(0, 1.22fr);
  align-items: center;
  gap: 90px;
}

.brand-story__visual {
  position: relative;
  display: grid;
  gap: 11px;
  padding: 45px;
  color: var(--text);
  background: var(--navy-900);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.brand-symbol-large {
  display: grid;
  height: 220px;
  place-items: center;
  margin-bottom: 15px;
  background:
    radial-gradient(circle, rgba(201, 162, 86, 0.13), transparent 55%),
    rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
}

.logo-mark--story {
  width: 135px;
  height: 135px;
  color: var(--text);
}

.brand-word-pair {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 13px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.brand-word-pair span {
  color: var(--text);
  font-weight: 750;
}

.brand-word-pair small {
  color: var(--slate-500);
  font-size: 0.61rem;
}

.brand-story__copy h2,
.about-ray__copy h2 {
  margin-bottom: 24px;
  font-size: clamp(2rem, 4vw, 3.45rem);
}

.brand-story__copy > p:not(.eyebrow),
.about-ray__copy > p {
  font-size: 0.96rem;
}

.brand-story__copy blockquote {
  margin: 32px 0 0;
  padding: 24px 0 24px 27px;
  color: var(--text);
  border-left: 2px solid var(--gold-500);
  font-size: 1.25rem;
  font-weight: 650;
  line-height: 1.6;
}

.about-ray__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  align-items: center;
  gap: 90px;
}

.about-ray__copy h3 {
  margin: 34px 0 17px;
  font-size: 1rem;
}

.about-ray__copy .check-list {
  grid-template-columns: 1fr 1fr;
}

.about-ray__side {
  display: grid;
  gap: 18px;
}

.ray-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.ray-card__portrait {
  display: grid;
  width: 86px;
  height: 86px;
  flex: 0 0 86px;
  place-items: center;
  color: var(--gold-300);
  background: var(--navy-900);
  border-radius: 50%;
  font-family: Georgia, serif;
  font-size: 2.8rem;
}

.ray-card strong {
  color: var(--navy-900);
  font-size: 1.1rem;
}

.ray-card p {
  margin: 3px 0 0;
  font-size: 0.74rem;
}

.belief-card {
  padding: 35px;
  color: var(--text);
  background: var(--navy-900);
  border-radius: var(--radius-md);
}

.belief-card > span {
  display: block;
  margin-bottom: 35px;
  color: var(--gold-400);
}

.belief-card .eyebrow {
  color: var(--gold-400);
}

.belief-card blockquote {
  margin: 0;
  color: var(--text);
  font-size: 1.22rem;
  font-weight: 650;
  line-height: 1.55;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.value-card {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.value-card > span {
  color: var(--gold-400);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.7rem;
}

.value-card h2 {
  margin: 42px 0 12px;
  font-size: 1.45rem;
}

.value-card p {
  margin: 0;
  font-size: 0.83rem;
}

.tools-panel {
  display: grid;
  grid-template-columns: 230px 1fr;
  align-items: start;
  gap: 40px;
  margin-top: 55px;
  padding: 40px;
  background: var(--slate-50);
  border-radius: var(--radius-md);
}

.tools-panel h2 {
  margin: 0;
  font-size: 1.2rem;
}

/* Pricing page */
.pricing-page {
  padding-bottom: 80px;
}

.pricing-grid--page .pricing-card {
  min-height: 560px;
}

.maintenance-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 17px;
}

.maintenance-card {
  padding: 29px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.maintenance-card h3 {
  margin-bottom: 26px;
  font-size: 1.05rem;
}

.maintenance-card strong {
  display: block;
  margin-bottom: 10px;
  color: var(--green-600);
  font-size: 1.35rem;
}

.maintenance-card p {
  margin: 0;
  font-size: 0.79rem;
}

.pricing-explainer {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
  max-width: 900px;
  margin: 50px auto 0;
  padding: 30px;
  background: #fff8e8;
  border: 1px solid #f0dfb6;
  border-radius: var(--radius-md);
}

.pricing-explainer > span {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: #765615;
  background: var(--gold-300);
  border-radius: 50%;
}

.pricing-explainer h2 {
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.pricing-explainer p {
  margin: 0;
  font-size: 0.8rem;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  align-items: start;
  gap: 55px;
}

.contact-form-wrap {
  padding: 42px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.contact-form__heading {
  margin-bottom: 31px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
}

.contact-form__heading h2 {
  margin-bottom: 10px;
  font-size: 1.65rem;
}

.contact-form__heading p {
  margin: 0;
  padding: 12px 14px;
  color: #6f551e;
  background: #fff8e8;
  border-radius: 8px;
  font-size: 0.72rem;
}

.contact-form {
  display: grid;
  gap: 21px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.contact-form label {
  display: grid;
  gap: 8px;
}

.contact-form label > span {
  color: var(--navy-800);
  font-size: 0.75rem;
  font-weight: 750;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  color: var(--text);
  background: var(--slate-50);
  border: 1px solid var(--slate-400);
  border-radius: 10px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.contact-form input,
.contact-form select {
  min-height: 50px;
  padding: 0 14px;
}

.contact-form textarea {
  min-height: 150px;
  padding: 13px 14px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  background: var(--white);
  border-color: var(--gold-500);
  box-shadow: 0 0 0 3px rgba(201, 162, 86, 0.13);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--slate-500);
}

.button--form {
  justify-self: start;
  min-width: 170px;
}

.form-status {
  padding: 14px 16px;
  color: #315d4a;
  background: var(--green-100);
  border: 1px solid #b9e3d0;
  border-radius: 9px;
  font-size: 0.78rem;
}

.contact-sidebar {
  display: grid;
  gap: 19px;
}

.contact-card {
  padding: 35px;
  color: var(--text);
  background:
    radial-gradient(circle at 100% 0%, rgba(201, 162, 86, 0.19), transparent 33%),
    var(--navy-900);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.contact-card__icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  margin-bottom: 42px;
  color: var(--gold-400);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 13px;
}

.contact-card h2 {
  margin-bottom: 14px;
  color: var(--text);
  font-size: 1.5rem;
}

.contact-card > p {
  color: var(--muted);
  font-size: 0.83rem;
}

.contact-card dl {
  margin: 28px 0 0;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.contact-card dl div {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.contact-card dt {
  color: var(--slate-500);
  font-size: 0.65rem;
  font-weight: 700;
}

.contact-card dd {
  margin: 0;
  color: var(--text);
  font-size: 0.7rem;
}

.contact-card dd a {
  text-decoration: underline;
  text-decoration-color: rgba(201, 162, 86, 0.6);
  text-underline-offset: 3px;
}

.next-steps {
  padding: 31px;
  background: var(--slate-50);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.next-steps h2 {
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.next-steps ol {
  display: grid;
  gap: 15px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.next-steps li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
}

.next-steps li span {
  color: var(--gold-400);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.62rem;
}

.next-steps li p {
  margin: 0;
  font-size: 0.76rem;
}

/* 404 */
.not-found {
  display: grid;
  min-height: 70vh;
  place-items: center;
  background: var(--slate-50);
}

.not-found__inner {
  display: grid;
  max-width: 680px;
  justify-items: center;
  padding-block: 90px;
  text-align: center;
}

.not-found__mark {
  display: grid;
  width: 90px;
  height: 90px;
  place-items: center;
  margin-bottom: 35px;
  color: var(--navy-900);
  background: var(--white);
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
}

.not-found__mark .logo-mark {
  width: 58px;
  height: 58px;
}

.not-found h1 {
  margin-bottom: 18px;
  font-size: clamp(2.3rem, 6vw, 4.4rem);
}

.not-found p:not(.eyebrow) {
  margin-bottom: 30px;
}

/* Footer */
.site-footer {
  padding: 72px 0 0;
  color: var(--text);
  background: var(--navy-950);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.65fr 0.7fr 0.9fr 0.65fr;
  gap: 55px;
  padding-bottom: 58px;
}

.site-logo--footer .logo-mark {
  color: var(--text);
}

.site-logo--footer .brand-copy strong {
  color: var(--text);
}

.site-logo--footer .brand-copy span {
  color: var(--slate-500);
}

.footer-brand > p {
  max-width: 340px;
  margin: 23px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.footer-brand > .footer-brand__zh {
  margin-top: 10px;
  color: var(--gold-400);
  font-family: "Noto Sans SC", "PingFang SC", sans-serif;
  font-size: 0.72rem;
  font-weight: 650;
}

.footer-brand > .footer-brand__zh + p {
  margin-top: 13px;
}

.footer-grid h2 {
  margin: 4px 0 20px;
  color: var(--slate-500);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-grid ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-grid li,
.footer-grid a {
  color: var(--slate-600);
  font-size: 0.8rem;
}

.footer-grid a:hover {
  color: var(--gold-400);
}

.footer-languages a[lang="my"] {
  font-family: "Noto Sans Myanmar", Myanmar Text, sans-serif;
  line-height: 1.8;
}

.footer-bottom {
  display: flex;
  min-height: 78px;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  border-top: 1px solid var(--line);
}

.footer-bottom p {
  margin: 0;
  color: var(--slate-500);
  font-size: 0.72rem;
}

/* Motion */
.reveal {
  opacity: 1;
  transform: translateY(0);
}

.motion-ready .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.motion-ready .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.motion-ready .reveal--delay {
  transition-delay: 0.12s;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .motion-ready .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Responsive */
@media (max-width: 1140px) {
  .desktop-nav {
    gap: 17px;
  }

  .language-switcher--desktop {
    display: none;
  }

  .hero__grid {
    gap: 45px;
  }

  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-card {
    min-height: 330px;
  }
}

@media (max-width: 920px) {
  :root {
    --header-height: 72px;
  }

  .section {
    padding: 88px 0;
  }

  .desktop-nav,
  .header-cta {
    display: none;
  }

  .header-actions {
    margin-left: auto;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .hero,
  .hero__grid {
    min-height: auto;
  }

  .hero__grid {
    grid-template-columns: 1fr;
    gap: 55px;
    padding-block: 90px;
  }

  .hero__copy {
    max-width: 760px;
  }

  .hero__copy h1 {
    font-size: clamp(2.7rem, 8vw, 4.7rem);
  }

  .hero-showcase {
    justify-self: center;
  }

  .trust-strip__inner {
    align-items: flex-start;
    flex-direction: column;
    padding-block: 25px;
  }

  .trust-strip__inner > div {
    justify-content: flex-start;
  }

  .work-card--feature {
    grid-template-columns: minmax(0, 1fr);
  }

  .work-card--feature .work-card__visual--shot {
    min-height: 300px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .pricing-grid,
  .values-grid,
  .maintenance-grid {
    grid-template-columns: 1fr 1fr;
  }

  .pricing-card:last-child {
    grid-column: 1 / -1;
    min-height: 470px;
  }

  .about-preview__grid,
  .brand-story__grid,
  .about-ray__grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 55px;
  }

  .ray-portrait,
  .brand-story__visual {
    max-width: 600px;
  }

  .cta-panel {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .cta-panel__actions {
    grid-template-columns: auto auto;
    justify-content: start;
  }

  .service-detail {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .service-detail__scope {
    padding: 30px 0 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .case-study__header {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .case-study__details {
    grid-template-columns: 1fr 1fr;
  }

  .case-study__details > div:last-child {
    grid-column: 1 / -1;
  }

  .tools-panel {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
  }

  .footer-grid > div:last-child {
    grid-column: 2 / -1;
  }
}

@media (max-width: 680px) {
  .container {
    width: min(calc(100% - 32px), var(--container));
  }

  .section {
    padding: 72px 0;
  }

  .section-heading {
    margin-bottom: 38px;
  }

  .section-heading h2 {
    font-size: clamp(1.85rem, 9vw, 2.7rem);
  }

  .section-heading-row {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 38px;
  }

  .site-logo .logo-mark {
    width: 37px;
    height: 37px;
    flex-basis: 37px;
  }

  .brand-copy strong {
    font-size: 0.9rem;
  }

  .brand-copy span {
    max-width: 145px;
    font-size: 0.52rem;
  }

  .hero__grid {
    gap: 46px;
    padding-block: 70px;
  }

  .hero__copy h1 {
    margin-bottom: 21px;
    font-size: clamp(2.35rem, 12vw, 3.65rem);
  }

  .hero__intro {
    font-size: 0.95rem;
  }

  .hero__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero__actions .button {
    width: 100%;
  }

  .hero__proof {
    display: grid;
    gap: 9px;
  }

  .showcase-caption strong {
    font-size: 0.8rem;
  }

  .trust-strip__inner > div {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 16px;
  }

  .trust-strip span:not(:first-child)::before {
    display: none;
  }

  .services-grid,
  .work-preview-grid,
  .pricing-grid,
  .values-grid,
  .maintenance-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: 0;
  }

  .service-card__top {
    margin-bottom: 36px;
  }

  .work-card__body > p {
    min-height: 0;
  }

  .work-card--feature .work-card__visual--shot {
    min-height: 230px;
  }

  .process-strip__steps {
    margin-left: 0;
    gap: 10px 22px;
  }

  .pricing-card,
  .pricing-card:last-child {
    grid-column: auto;
    min-height: 0;
  }

  .pricing-card__for {
    min-height: 0;
  }

  .ray-portrait {
    height: 410px;
  }

  .ray-portrait__caption {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .cta-panel {
    padding: 42px 25px;
    border-radius: var(--radius-md);
  }

  .cta-panel__actions {
    grid-template-columns: 1fr;
  }

  .page-hero__inner {
    min-height: 400px;
    padding-block: 70px;
  }

  .page-hero h1 {
    font-size: clamp(2.5rem, 13vw, 4rem);
  }

  .page-hero__intro {
    font-size: 0.94rem;
  }

  .service-detail {
    padding: 29px 23px;
  }

  .service-detail__scope .check-list,
  .about-ray__copy .check-list {
    grid-template-columns: 1fr;
  }

  .portfolio-note .container {
    align-items: flex-start;
    padding-block: 16px;
  }

  .case-study {
    margin-bottom: 88px;
  }

  .case-study__visual,
  .case-study__visual--real {
    height: auto;
    min-height: 560px;
    grid-template-columns: 1fr;
    grid-template-rows: 1.25fr 0.75fr 0.75fr;
    padding: 20px;
  }

  .case-shot--1 {
    grid-row: auto;
  }

  /* Undo the three-column composition so the captures stack; the phone shot is
     redundant here — you are already holding one. */
  .case-study__visual--real .case-shot--1,
  .case-study__visual--real .case-shot--2,
  .case-study__visual--real .case-shot--3 {
    grid-column: 1;
    grid-row: auto;
  }

  .case-shot--4 {
    display: none;
  }

  .case-study__story,
  .case-study__details,
  .case-study__reflection {
    grid-template-columns: 1fr;
    gap: 31px;
  }

  .case-study__details > div:last-child {
    grid-column: auto;
  }

  .case-study__reflection {
    padding: 27px 23px;
  }

  .brand-story__visual {
    padding: 25px;
  }

  .brand-word-pair {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .brand-story__copy blockquote {
    font-size: 1.08rem;
  }

  .about-ray__side {
    min-width: 0;
  }

  .ray-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .tools-panel,
  .contact-form-wrap {
    padding: 27px 22px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .button--form {
    width: 100%;
  }

  .contact-card {
    padding: 29px 23px;
  }

  .contact-card dl div {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .pricing-explainer {
    grid-template-columns: 1fr;
    padding: 25px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px 25px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-grid > div:last-child {
    grid-column: auto;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 7px;
    padding-block: 22px;
  }
}

@media (max-width: 390px) {
  .brand-copy span {
    display: none;
  }

  .mobile-menu__language .language-switcher {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-brand,
  .footer-grid > div:last-child {
    grid-column: auto;
  }
}

/* ============================================================
   PREMIUM LAYER v2 — "Atelier"
   Editorial serif · warm paper · film grain · glass · luminous
   hairlines. Layered on top of the base system; tokens above
   already carry the refreshed palette site-wide.
   ============================================================ */

/* Display headings sit a touch larger and airier in the serif */
.hero__copy h1,
.page-hero h1,
.section-heading h2,
.cta-panel h2 {
  font-weight: 450;
}

/* Eyebrow — finer tracking, gold accent dot */
.eyebrow {
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.18em;
}

.eyebrow::before {
  width: 22px;
}

/* Buttons — quieter easing + jewel-like surfaces */
.button {
  letter-spacing: 0.012em;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease),
    background 0.4s var(--ease), color 0.25s ease, border-color 0.3s ease;
}

.button:hover {
  transform: translateY(-3px);
}

.button--gold {
  color: var(--navy-950);
  background: linear-gradient(135deg, #f8e7bb 0%, var(--gold-400) 46%, var(--gold-500) 100%);
  box-shadow: 0 14px 34px rgba(201, 162, 86, 0.30), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.button--gold:hover {
  box-shadow: 0 22px 46px rgba(201, 162, 86, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.button--primary {
  background: linear-gradient(180deg, var(--navy-800), var(--navy-900));
  box-shadow: 0 14px 30px rgba(11, 26, 43, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

/* Soft sections → warm paper with a faint gilded wash */
.section--soft {
  background:
    radial-gradient(120% 80% at 10% -10%, rgba(201, 162, 86, 0.05), transparent 36%),
    var(--paper);
}

/* Cards — luminous hover, deeper lift */
.service-card,
.work-card,
.pricing-card,
.maintenance-card,
.value-card,
.ray-card,
.contact-form-wrap,
.service-detail {
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.4s var(--ease);
}

.service-card:hover {
  border-color: rgba(201, 162, 86, 0.5);
  box-shadow: var(--shadow-lg);
  transform: translateY(-8px);
}

.work-card:hover,
.maintenance-card:hover,
.value-card:hover,
.service-detail:hover {
  border-color: rgba(201, 162, 86, 0.32);
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
}

/* Header — cleaner warm glass */
.site-header {
  background: rgba(252, 250, 245, 0.74);
  backdrop-filter: blur(22px) saturate(1.4);
}

.site-header.is-scrolled {
  background: rgba(252, 250, 245, 0.9);
  box-shadow: 0 12px 40px rgba(12, 22, 38, 0.08);
}

body.menu-open .site-header {
  background: var(--white);
}

/* Hero / page-hero — deepen, warm, refine the light */
.hero {
  background:
    radial-gradient(125% 95% at 80% 4%, rgba(40, 76, 102, 0.5), transparent 56%),
    linear-gradient(108deg, #060f1a 0%, #0b1a2b 52%, #0f2536 100%);
}

.page-hero {
  background:
    radial-gradient(circle at 82% -22%, rgba(201, 162, 86, 0.18), transparent 42%),
    radial-gradient(circle at 12% 132%, rgba(69, 192, 150, 0.12), transparent 34%),
    linear-gradient(160deg, #0b1a2b, #07121e);
}

/* Featured pricing card — gilded edge */
.pricing-card--featured {
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(201, 162, 86, 0.28);
}

/* Editorial serif for pull quotes */
blockquote {
  font-family: var(--font-serif);
  font-weight: 450;
}

.lang-zh blockquote,
.lang-my blockquote {
  font-family: inherit;
  font-weight: 600;
}

/* Footer → true ink */
.site-footer {
  background: var(--ink);
}

/* Accessible focus ring — dark outline (visible on light/gold) plus a gold
   halo (visible on dark surfaces), so it clears contrast on every background. */
:focus-visible {
  outline: 2px solid var(--navy-900);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(var(--gold-rgb), 0.85);
}

/* Featured pricing period switches to gold for contrast */
.pricing-card--featured .pricing-card__period {
  color: var(--gold-400);
}

/* Contact form states */
.form-status {
  margin-top: 4px;
}

.form-status--ok {
  color: #2c5e4a;
  background: var(--green-100);
  border-color: #b9e3d0;
}

.form-status--error {
  color: #7c2f2f;
  background: #fbe9e6;
  border-color: #f0cdc6;
}

.contact-form.is-sending .button--form {
  opacity: 0.65;
  pointer-events: none;
}

/* ============================================================
   DARK · TECH THEME  — overrides the light base above.
   Near-black base · refined gold · glass cards · ambient glow.
   ============================================================ */

html { background: var(--bg); }

body {
  background: var(--bg);
  color: var(--text);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: var(--body-ambient);
}

/* Headings + stray dark-on-dark text -> light */
h1, h2, h3,
.brand-copy strong,
.trust-strip p,
.pricing-card__price,
.ray-card strong {
  color: var(--text);
}

h1, h2 { letter-spacing: -0.012em; }
.eyebrow, .eyebrow--light { color: var(--gold-400); }

::selection { color: #0a0e15; background: rgba(218, 186, 122, 0.9); }

/* Header — dark glass */
.site-header {
  background: var(--header-bg);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(20px) saturate(1.3);
}
.site-header.is-scrolled {
  background: var(--header-bg-scrolled);
  box-shadow: var(--header-shadow);
}
body.menu-open .site-header { background: var(--bg-2); }
.logo-mark { color: var(--text); }
.brand-copy span { color: var(--slate-500); }
.desktop-nav a { color: var(--slate-500); }
.desktop-nav a:hover,
.desktop-nav a[aria-current="page"] { color: var(--text); }
.menu-toggle { color: var(--text); background: var(--glass); border-color: var(--line); }
.language-switcher a:hover,
.language-switcher a[aria-current="true"] { color: var(--text); }

/* Buttons — gold works on the dark theme; the light theme re-scopes
   these to solid ink below (gold fills read cheap on white). */
.button--primary {
  color: var(--on-gold);
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
  box-shadow: 0 8px 22px rgba(218, 186, 122, 0.16);
}
.button--primary:hover { box-shadow: 0 12px 30px rgba(218, 186, 122, 0.24); }
.button--gold {
  color: var(--on-gold);
  background: linear-gradient(135deg, #f3e1b4, var(--gold-500));
  box-shadow: 0 8px 24px rgba(218, 186, 122, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.button--secondary {
  color: var(--text);
  background: var(--surface-card);
  border-color: var(--line-strong);
  backdrop-filter: blur(6px);
}
.button--secondary:hover { color: var(--on-gold); background: var(--gold-400); border-color: var(--gold-400); }

html[data-mode="light"] .button--primary,
html[data-mode="light"] .button--gold {
  color: #ffffff;
  background: var(--navy-900);
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.16);
}
html[data-mode="light"] .button--primary:hover,
html[data-mode="light"] .button--gold:hover {
  background: var(--navy-800);
  box-shadow: 0 14px 30px rgba(17, 24, 39, 0.2);
}
html[data-mode="light"] .button--secondary:hover {
  color: #ffffff;
  background: var(--navy-900);
  border-color: var(--navy-900);
}
.button--ghost-light { color: var(--text); background: var(--veil-2); border-color: var(--line-strong); }
.button--ghost-light:hover { background: var(--veil-hover); border-color: var(--line-strong); }

/* Sections */
.section--soft {
  background: var(--section-soft-bg);
  border-block: 1px solid var(--line);
}
.trust-strip { background: var(--veil-1); border-block: 1px solid var(--line); }
.trust-strip span { color: var(--slate-500); }

/* Cards — glass */
.service-card,
.work-card,
.pricing-card,
.maintenance-card,
.value-card,
.ray-card,
.contact-form-wrap,
.service-detail,
.next-steps,
.tools-panel {
  background: var(--surface-card);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
  box-shadow: var(--card-inset);
}
.service-card:hover,
.work-card:hover,
.value-card:hover,
.maintenance-card:hover,
.service-detail:hover {
  border-color: var(--surface-card-hover-line);
  box-shadow: var(--shadow-md), var(--card-inset);
}
.service-card__icon { color: var(--gold-400); background: rgba(218, 186, 122, 0.1); border-color: rgba(218, 186, 122, 0.22); }
.service-card li { color: var(--slate-500); background: var(--slate-50); }
.service-card__number, .service-detail__number { color: var(--slate-400); }
.check-icon { color: var(--green-500); background: rgba(79, 209, 164, 0.14); }
.check-list li { color: var(--slate-600); }
.tag { color: var(--slate-600); background: var(--slate-50); border-color: var(--line); }
.status { color: var(--slate-500); background: var(--glass); border-color: var(--line); }
.text-link { color: var(--gold-400); border-bottom-color: rgba(218, 186, 122, 0.5); }
.text-link:hover { color: var(--gold-300); }

/* Hero + page hero */
.hero {
  background: var(--hero-bg);
}
.hero__intro, .page-hero__intro { color: var(--muted); }
.hero__proof li { color: var(--slate-500); }
.page-hero {
  background: var(--page-hero-bg);
}

/* Home work-card windows are now self-contained light "screenshots"
   (styled in the base layer for both themes) — only the case-study page's
   separate mock still theme-flips here. */

/* Forms */
.contact-form input,
.contact-form select,
.contact-form textarea { color: var(--text); background: var(--slate-50); border-color: var(--slate-200); }
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  background: var(--veil-2);
  border-color: var(--gold-500);
  box-shadow: 0 0 0 3px rgba(218, 186, 122, 0.18);
}
.contact-form input::placeholder, .contact-form textarea::placeholder { color: var(--slate-400); }
.contact-form label > span { color: var(--slate-600); }
.contact-form__heading p { color: var(--slate-500); background: var(--slate-50); border: 1px solid var(--line); }
select option { color: #0a0e15; }
.form-status--ok { color: #8af0c8; background: rgba(79, 209, 164, 0.1); border-color: rgba(79, 209, 164, 0.3); }
.form-status--error { color: #ffb4ad; background: rgba(255, 90, 80, 0.1); border-color: rgba(255, 90, 80, 0.3); }

/* Panels that were navy — richer dark + glow */
.cta-panel,
.contact-card,
.belief-card,
.brand-story__visual {
  background: var(--panel-bg);
  border: 1px solid var(--line-strong);
}
.pricing-card--featured {
  background: var(--featured-bg);
  border-color: rgba(218, 186, 122, 0.4);
  box-shadow: var(--shadow-lg), 0 0 60px rgba(218, 186, 122, 0.12);
}
.maintenance-card strong { color: var(--green-500); }
.pricing-explainer { background: rgba(218, 186, 122, 0.06); border-color: rgba(218, 186, 122, 0.2); }
.pricing-explainer > span { color: var(--gold-300); background: rgba(218, 186, 122, 0.16); }

/* Process / why */

/* Footer — darkest */
.site-footer { background: var(--ink); border-top: 1px solid var(--line); }
.site-footer h2 { color: var(--slate-500); }
.site-footer a { color: var(--slate-500); }
.site-footer a:hover { color: var(--gold-400); }

/* ============================================================
   INK SURFACES — the CTA panel, footer and portrait card stay dark
   ink in EVERY theme; the hero/page heroes go dark only for the two
   dark themes and Dawn (light themes keep light heroes).
   Re-scoping the semantic tokens locally flips every descendant —
   headings, captions, veils, hairlines, gold — automatically.
   ============================================================ */
.cta-panel,
.site-footer,
.ray-portrait,
html[data-mode="dark"] .hero,
html[data-mode="dark"] .page-hero,
html[data-theme="dawn"] .hero,
html[data-theme="dawn"] .page-hero {
  --text: #ece9df;
  --muted: #a0aaa2;
  --slate-400: #77837b;
  --slate-500: #9aa79f;
  --slate-600: #bcc7c0;
  --slate-50: #121b16;
  --line: rgba(255, 255, 255, 0.085);
  --line-strong: rgba(255, 255, 255, 0.15);
  --veil-1: rgba(255, 255, 255, 0.03);
  --veil-2: rgba(255, 255, 255, 0.06);
  --veil-hover: rgba(255, 255, 255, 0.05);
  --glass: rgba(255, 255, 255, 0.045);
  --gold-500: #d9ba7a;
  --gold-400: #ecd49c;
  --gold-300: #f5e6bf;
  --green-500: #4fd1a4;
  --green-text: #5fd6ab;
  --on-gold: #0a0e15;
  --shadow-md: 0 30px 70px rgba(0, 0, 0, 0.46);
  --shadow-lg: 0 50px 120px rgba(0, 0, 0, 0.55);
  --surface-card: rgba(255, 255, 255, 0.045);
  color: var(--text);
}

/* Dark heroes need dark backgrounds even in a light-mode theme (Dawn). */
html[data-theme="dawn"] .hero { background: var(--hero-ink-bg, var(--hero-bg)); }
html[data-theme="dawn"] .page-hero { background: var(--page-hero-ink-bg, var(--page-hero-bg)); }

/* Gold stays gold on ink surfaces — the light mode's solid-ink
   button override would vanish against these dark backgrounds. */
html[data-mode="light"] .cta-panel .button--gold,
html[data-mode="light"] .cta-panel .button--primary,
html[data-theme="dawn"] .hero .button--gold,
html[data-theme="dawn"] .page-hero .button--gold,
html[data-theme="dawn"] .hero .button--primary,
html[data-theme="dawn"] .page-hero .button--primary {
  color: var(--on-gold);
  background: linear-gradient(135deg, #f3e1b4, var(--gold-500));
  box-shadow: 0 8px 24px rgba(218, 186, 122, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

/* Per-theme accents inside the ink surfaces (the generic re-scope
   above assumes brass): Gilded keeps its champagne edges, Porcelain
   swaps to cobalt, Dawn to sunrise amber. */
html[data-theme="gilded"] .hero,
html[data-theme="gilded"] .page-hero,
html[data-theme="gilded"] .cta-panel,
html[data-theme="gilded"] .site-footer,
html[data-theme="gilded"] .ray-portrait {
  --gold-500: #e0c185;
  --gold-400: #f0d9a2;
  --gold-300: #f8ecc9;
  --line: rgba(224, 193, 133, 0.24);
  --line-strong: rgba(224, 193, 133, 0.45);
  --on-gold: #191204;
}

html[data-theme="porcelain"] .cta-panel,
html[data-theme="porcelain"] .site-footer,
html[data-theme="porcelain"] .ray-portrait {
  --gold-500: #6b8ae6;
  --gold-400: #8fa7ee;
  --gold-300: #b3c4f4;
}

html[data-theme="porcelain"] .cta-panel .button--gold,
html[data-theme="porcelain"] .cta-panel .button--primary {
  color: #ffffff;
  background: linear-gradient(135deg, #5b7ee0, #254ecc);
  box-shadow: 0 8px 24px rgba(37, 78, 204, 0.35);
}

html[data-theme="dawn"] .hero,
html[data-theme="dawn"] .page-hero,
html[data-theme="dawn"] .cta-panel,
html[data-theme="dawn"] .site-footer,
html[data-theme="dawn"] .ray-portrait {
  --gold-500: #e19a5c;
  --gold-400: #f0b984;
  --gold-300: #f8d3ab;
}

/* Mobile menu — dark */
.mobile-menu { background: var(--bg-2); border-top-color: var(--line); }
.mobile-menu__inner > a:not(.button) { color: var(--text); border-bottom-color: var(--line); }
.mobile-menu__language .language-switcher a { color: var(--text); background: var(--slate-50); border-color: var(--line); }

/* Theme picker — six named themes with swatch dots. Reuses the
   lang-dropdown chrome; each swatch previews the theme's base+accent. */
.theme-dropdown__name {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.theme-swatch {
  flex: none;
  width: 15px;
  height: 15px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
}

.theme-swatch--paper { background: linear-gradient(135deg, #faf9f6 55%, #8c6716 55%); }
.theme-swatch--parchment { background: linear-gradient(135deg, #f0e5cc 55%, #7c5d18 55%); }
.theme-swatch--porcelain { background: linear-gradient(135deg, #fbfcfe 55%, #254ecc 55%); }
.theme-swatch--dawn { background: linear-gradient(135deg, #fdf4e9 40%, #b96a2c 40%, #241636 78%); }
.theme-swatch--emerald { background: linear-gradient(135deg, #101a15 55%, #d9ba7a 55%); }
.theme-swatch--gilded { background: linear-gradient(135deg, #0b0a07 50%, #f0d9a2 50%); }

.theme-dropdown__menu {
  min-width: 208px;
}

/* Menu heading so first-time visitors know what this control is */
.theme-dropdown__label {
  margin: 4px 0 6px;
  padding: 4px 13px 8px;
  color: var(--slate-400);
  border-bottom: 1px solid var(--line);
  font-size: 0.66rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.lang-my .theme-dropdown__label {
  letter-spacing: 0;
  text-transform: none;
}

.theme-dropdown__menu button {
  display: flex;
  width: 100%;
  min-height: 40px;
  align-items: center;
  gap: 10px;
  padding: 0 13px;
  color: var(--slate-500);
  background: none;
  border: 0;
  border-radius: 9px;
  cursor: pointer;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: left;
  transition: color 0.15s ease, background 0.15s ease;
}

.theme-dropdown__menu button:hover {
  color: var(--text);
  background: var(--veil-hover);
}

.theme-dropdown__menu button[aria-current="true"] {
  color: var(--gold-400);
  background: rgba(218, 186, 122, 0.09);
}

@media (max-width: 1280px) {
  .theme-dropdown__name { display: none; }
  .theme-dropdown .lang-dropdown__btn > svg { display: none; }
}

/* Gentle cross-fade when switching themes */
body { transition: background-color 0.3s ease, color 0.3s ease; }

/* Route-change progress bar — shows instant feedback on internal navigation
   (no blank wait) while the next page loads over the network. */
.route-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 200;
  width: 0;
  height: 3px;
  background: var(--gold-500);
  opacity: 0;
  pointer-events: none;
}
html.is-leaving .route-progress {
  opacity: 1;
  width: 90%;
  transition: width 1.3s cubic-bezier(0.12, 0.7, 0.2, 1), opacity 0.2s ease;
}

/* Language dropdown */
.lang-dropdown { position: relative; }

.lang-dropdown__btn {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  color: var(--slate-500);
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  font-family: "Inter", "Noto Sans SC", "Noto Sans Myanmar", sans-serif;
  font-size: 0.78rem;
  font-weight: 650;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.lang-dropdown__code { white-space: nowrap; }

.lang-dropdown__btn:hover {
  color: var(--text);
  border-color: var(--line-strong);
  background: var(--veil-hover);
}

.lang-dropdown__btn > svg:first-child { color: var(--gold-400); }

.lang-dropdown__btn > svg:last-child {
  opacity: 0.65;
  transition: transform 0.25s var(--ease);
}

.lang-dropdown__btn[aria-expanded="true"] > svg:last-child { transform: rotate(180deg); }

.lang-dropdown__menu {
  position: absolute;
  z-index: 130;
  top: calc(100% + 10px);
  right: 0;
  display: grid;
  min-width: 172px;
  padding: 7px;
  background: var(--dropdown-bg);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(18px);
  animation: lang-pop 0.18s var(--ease);
}

.lang-dropdown__menu[hidden] { display: none; }

@keyframes lang-pop {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.lang-dropdown__menu a {
  display: flex;
  min-height: 40px;
  align-items: center;
  padding: 0 13px;
  color: var(--slate-500);
  border-radius: 9px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: color 0.15s ease, background 0.15s ease;
}

.lang-dropdown__menu a:hover {
  color: var(--text);
  background: var(--veil-hover);
}

.lang-dropdown__menu a[aria-current="true"] {
  color: var(--gold-400);
  background: rgba(218, 186, 122, 0.09);
}

/* ── Mobile: compact language dropdown stays in the header ──── */
@media (max-width: 920px) {
  .lang-dropdown__btn { padding: 0 11px; gap: 6px; min-height: 40px; }
  .lang-dropdown__btn > svg:last-child { display: none; }
  .lang-dropdown__menu { min-width: 194px; padding: 8px; }
  .lang-dropdown__menu a { min-height: 48px; font-size: 0.98rem; padding: 0 14px; }
}

/* ── Mobile fixed bottom navigation ─────────────────────────── */
.bottom-nav { display: none; }

/* Confirmation for the share button's copy fallback. Clears the bottom nav and
   the safe-area inset so it never lands under a home indicator. */
.share-toast {
  position: fixed;
  z-index: 150;
  left: 50%;
  bottom: calc(84px + env(safe-area-inset-bottom));
  max-width: min(88vw, 320px);
  padding: 11px 18px;
  color: var(--navy-950);
  background: linear-gradient(135deg, var(--gold-300), var(--gold-500));
  border-radius: 999px;
  box-shadow: 0 14px 34px -10px rgba(6, 10, 22, 0.5);
  font-size: 0.8rem;
  font-weight: 700;
  text-align: center;
  opacity: 0;
  transform: translate(-50%, 10px);
  transition: opacity 0.24s ease, transform 0.24s ease;
  pointer-events: none;
}

.share-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 920px) {
  .bottom-nav {
    position: fixed;
    z-index: 140;
    left: 0;
    right: 0;
    bottom: 0;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    align-items: stretch;
    gap: 2px;
    padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
    background: var(--header-bg-scrolled);
    border-top: 1px solid var(--line);
    box-shadow: 0 -12px 32px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(22px) saturate(1.35);
    -webkit-backdrop-filter: blur(22px) saturate(1.35);
  }

  .bottom-nav__item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 52px;
    padding: 5px 2px;
    color: var(--slate-500);
    background: none;
    border: 0;
    border-radius: 13px;
    cursor: pointer;
    font: inherit;
    text-align: center;
    text-decoration: none;
    transition: color 0.18s ease, background 0.18s ease, transform 0.12s ease;
    -webkit-tap-highlight-color: transparent;
  }
  .bottom-nav__item svg { width: 22px; height: 22px; flex: none; }
  .bottom-nav__item:active { transform: scale(0.94); background: var(--veil-2); }

  .bottom-nav__label {
    max-width: 100%;
    font-size: 0.6rem;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: 0.005em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    word-break: break-word;
  }

  .bottom-nav__item[aria-current="page"],
  .bottom-nav__item.is-active {
    color: var(--gold-400);
  }
  .bottom-nav__item[aria-current="page"] svg,
  .bottom-nav__item.is-active svg {
    filter: drop-shadow(0 3px 9px rgba(var(--gold-rgb), 0.45));
  }
  .bottom-nav__item[aria-current="page"]::before,
  .bottom-nav__item.is-active::before {
    content: "";
    position: absolute;
    top: 3px;
    width: 22px;
    height: 3px;
    border-radius: 0 0 3px 3px;
    background: linear-gradient(90deg, var(--gold-500), var(--gold-400));
    box-shadow: 0 2px 8px rgba(var(--gold-rgb), 0.5);
  }

  /* keep content clear of the fixed bar (incl. iPhone home indicator) */
  body { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }

  /* The mobile menu lives INSIDE the header, so its z-index is compared
     against the language dropdown (also in the header). Keep the menu BELOW
     the dropdown so the flag dropdown always opens on top of it. */
  .mobile-menu { z-index: 80; }
  .lang-dropdown__menu { z-index: 200; }

  /* When the menu is open, hide the (redundant) bottom bar — the header X
     closes the menu — so nothing floats over the menu. */
  body.menu-open .bottom-nav { display: none; }
}

/* ── Floating message widget (public site) ──────────────────── */
.chat-widget { position: fixed; right: 20px; bottom: 24px; z-index: 135; }
.chat-fab {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  color: var(--on-gold);
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
  box-shadow: 0 12px 30px rgba(var(--gold-rgb), 0.42), 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.chat-fab:hover { transform: translateY(-2px); box-shadow: 0 16px 38px rgba(var(--gold-rgb), 0.5); }
html[data-mode="light"] .chat-fab {
  color: #ffffff;
  background: var(--navy-900);
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.28);
}
html[data-mode="light"] .chat-fab:hover { box-shadow: 0 16px 38px rgba(17, 24, 39, 0.34); }
.chat-fab__icon { position: absolute; display: flex; transition: opacity 0.2s ease, transform 0.2s ease; }
.chat-fab__close { opacity: 0; transform: rotate(-45deg) scale(0.6); }
.chat-widget.is-open .chat-fab__open { opacity: 0; transform: rotate(45deg) scale(0.6); }
.chat-widget.is-open .chat-fab__close { opacity: 1; transform: none; }

.chat-panel {
  position: absolute;
  right: 0;
  bottom: 72px;
  width: 360px;
  max-width: calc(100vw - 32px);
  max-height: min(560px, calc(100vh - 150px));
  overflow-y: auto;
  background: var(--glass);
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(18px) saturate(1.2);
  animation: chat-pop 0.22s var(--ease);
}
html[data-mode="light"] .chat-panel { background: #ffffff; }
.chat-panel[hidden] { display: none; }
@keyframes chat-pop { from { opacity: 0; transform: translateY(14px) scale(0.96); } to { opacity: 1; transform: none; } }

.chat-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 15px 16px;
  border-bottom: 1px solid var(--line);
}
.chat-panel__id { display: flex; align-items: center; gap: 10px; }
.chat-panel__id .logo-mark { width: 34px; height: 34px; color: var(--text); }
.chat-panel__title { display: flex; flex-direction: column; line-height: 1.25; }
.chat-panel__title strong { color: var(--text); font-size: 0.95rem; }
.chat-panel__title span { color: var(--muted); font-size: 0.74rem; }
.chat-panel__close { display: flex; padding: 6px; border: 0; background: none; color: var(--muted); cursor: pointer; border-radius: 8px; }
.chat-panel__close:hover { color: var(--text); background: var(--veil-2); }

.chat-panel__body { padding: 16px; }
.chat-bubble {
  margin: 0 0 14px;
  padding: 12px 14px;
  background: var(--veil-2);
  border: 1px solid var(--line);
  border-radius: 4px 16px 16px 16px;
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.5;
}
.chat-form { display: flex; flex-direction: column; gap: 10px; }
.chat-form input:not(.chat-hp), .chat-form textarea {
  width: 100%;
  padding: 11px 13px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: var(--slate-50);
  color: var(--text);
  font: inherit;
  font-size: 0.92rem;
}
.chat-form textarea { resize: vertical; min-height: 74px; line-height: 1.5; }
.chat-form input:focus, .chat-form textarea:focus { outline: 2px solid rgba(var(--gold-rgb), 0.5); outline-offset: 1px; }
.chat-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.chat-status { margin: 4px 0 0; padding: 10px 12px; border-radius: 9px; font-size: 0.86rem; line-height: 1.45; }
.chat-status--ok { background: rgba(79, 209, 164, 0.14); border: 1px solid rgba(79, 209, 164, 0.34); color: var(--green-text); }
.chat-status--err { background: rgba(255, 90, 80, 0.12); border: 1px solid rgba(255, 90, 80, 0.34); color: #e0554b; }
.chat-form.is-done > *:not(.chat-status) { display: none; }

@media (max-width: 920px) {
  .chat-widget { right: 16px; bottom: calc(84px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) {
  .chat-panel { animation: none; }
  .chat-fab, .chat-fab__icon { transition: none; }
}
