/* ============================================================================
   lhnhon — Ocean View · Tommy Palm Editorial Design System
   Self-hosted fonts, seamless 3-band Miami Resort gradients, zero external CDN
   ============================================================================ */

/* --- Existing self-hosted Geist Mono (code blocks) --- */
@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/static/fonts/geist-mono-vietnamese.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/static/fonts/geist-mono-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Be Vietnam Pro (vietnamese) */
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/static/fonts/be-vietnam-pro-400-italic-vietnamese.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* Be Vietnam Pro (latin) */
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/static/fonts/be-vietnam-pro-400-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Be Vietnam Pro (vietnamese) */
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url('/static/fonts/be-vietnam-pro-500-italic-vietnamese.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* Be Vietnam Pro (latin) */
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url('/static/fonts/be-vietnam-pro-500-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Be Vietnam Pro (vietnamese) */
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/static/fonts/be-vietnam-pro-400-normal-vietnamese.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* Be Vietnam Pro (latin) */
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/static/fonts/be-vietnam-pro-400-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Be Vietnam Pro (vietnamese) */
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/static/fonts/be-vietnam-pro-500-normal-vietnamese.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* Be Vietnam Pro (latin) */
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/static/fonts/be-vietnam-pro-500-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Be Vietnam Pro (vietnamese) */
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/static/fonts/be-vietnam-pro-600-normal-vietnamese.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* Be Vietnam Pro (latin) */
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/static/fonts/be-vietnam-pro-600-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Be Vietnam Pro (vietnamese) */
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/static/fonts/be-vietnam-pro-700-normal-vietnamese.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* Be Vietnam Pro (latin) */
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/static/fonts/be-vietnam-pro-700-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Space Mono (vietnamese) */
@font-face {
  font-family: 'Space Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/static/fonts/space-mono-400-normal-vietnamese.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* Space Mono (latin) */
@font-face {
  font-family: 'Space Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/static/fonts/space-mono-400-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Space Mono (vietnamese) */
@font-face {
  font-family: 'Space Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/static/fonts/space-mono-700-normal-vietnamese.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* Space Mono (latin) */
@font-face {
  font-family: 'Space Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/static/fonts/space-mono-700-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Big Shoulders Display (vietnamese) */
@font-face {
  font-family: 'Big Shoulders Display';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/static/fonts/big-shoulders-display-700-normal-vietnamese.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* Big Shoulders Display (latin) */
@font-face {
  font-family: 'Big Shoulders Display';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/static/fonts/big-shoulders-display-700-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Big Shoulders Display (vietnamese) */
@font-face {
  font-family: 'Big Shoulders Display';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/static/fonts/big-shoulders-display-800-normal-vietnamese.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* Big Shoulders Display (latin) */
@font-face {
  font-family: 'Big Shoulders Display';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/static/fonts/big-shoulders-display-800-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Big Shoulders Display (vietnamese) */
@font-face {
  font-family: 'Big Shoulders Display';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('/static/fonts/big-shoulders-display-900-normal-vietnamese.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* Big Shoulders Display (latin) */
@font-face {
  font-family: 'Big Shoulders Display';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('/static/fonts/big-shoulders-display-900-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Playfair Display (vietnamese) */
@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url('/static/fonts/playfair-display-500-italic-vietnamese.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* Playfair Display (latin) */
@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url('/static/fonts/playfair-display-500-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Playfair Display (vietnamese) */
@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url('/static/fonts/playfair-display-600-italic-vietnamese.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* Playfair Display (latin) */
@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url('/static/fonts/playfair-display-600-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Playfair Display (vietnamese) */
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/static/fonts/playfair-display-600-normal-vietnamese.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* Playfair Display (latin) */
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/static/fonts/playfair-display-600-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Playfair Display (vietnamese) */
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/static/fonts/playfair-display-700-normal-vietnamese.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* Playfair Display (latin) */
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/static/fonts/playfair-display-700-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Yellowtail (latin) */
@font-face {
  font-family: 'Yellowtail';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/static/fonts/yellowtail-400-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


/* --- Theme Tokens (Default: Miami Resort Daylight | Toggle: Midnight Ocean) --- */
:root,
[data-theme="light"] {
  color-scheme: light;
  --tommy-teal: #2bc4bd;
  --tommy-teal-deep: #159a98;
  --tommy-aqua: #67e6de;
  --tommy-navy: #0b2433;
  --tommy-coral: #e86b8f;
  --tommy-blush: #f4afc2;

  --bg: #faf6ee;
  --bg-alt: #f2ece0;
  --surface: #ffffff;
  --surface-soft: rgba(255, 255, 255, 0.90);
  --border: rgba(11, 36, 51, 0.11);
  --border-strong: rgba(21, 154, 152, 0.36);

  --ink: #0b2433;
  --ink-secondary: #395566;
  --ink-muted: #647f8e;

  --accent: #0f8a88;
  --accent-soft: rgba(43, 196, 189, 0.14);
  --coral-soft: rgba(244, 175, 194, 0.32);
  --coral-ink: #a63459;

  --shadow-card: 0 2px 10px rgba(11, 36, 51, 0.05), 0 14px 36px rgba(11, 36, 51, 0.07);
  --shadow-lift: 0 10px 22px rgba(11, 36, 51, 0.09), 0 28px 56px rgba(11, 36, 51, 0.14);

  --code-bg: #0a1f2c;
  --code-fg: #ebf6f8;
  --code-keyword: #f4afc2;
  --code-string: #8df2ec;
  --code-comment: #7699a8;
  --code-number: #ffd19b;
  --code-function: #67e6de;
  --code-type: #a9e4ff;
  --code-operator: #d2e4ea;
  --code-attr: #f8c6d8;
  --code-error: #ff8e9e;
}

[data-theme="dark"] {
  color-scheme: dark;
  --tommy-teal: #30d0c8;
  --tommy-teal-deep: #1ca6a2;
  --tommy-aqua: #7df2ea;
  --tommy-navy: #071822;
  --tommy-coral: #f195ac;
  --tommy-blush: #f4afc2;

  --bg: #071822;
  --bg-alt: #0b212e;
  --surface: #0e2838;
  --surface-soft: rgba(14, 40, 56, 0.88);
  --border: rgba(48, 208, 200, 0.18);
  --border-strong: rgba(48, 208, 200, 0.42);

  --ink: #f6f2e8;
  --ink-secondary: #bfd5df;
  --ink-muted: #7da0b0;

  --accent: #30d0c8;
  --accent-soft: rgba(48, 208, 200, 0.15);
  --coral-soft: rgba(241, 149, 172, 0.18);
  --coral-ink: #f4afc2;

  --shadow-card: 0 4px 14px rgba(0, 0, 0, 0.30), 0 16px 40px rgba(0, 0, 0, 0.26);
  --shadow-lift: 0 12px 26px rgba(0, 0, 0, 0.42), 0 28px 60px rgba(0, 0, 0, 0.36);

  --code-bg: #051118;
  --code-fg: #ebf6f8;
}

/* --- Base Reset --- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.68;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background-color 280ms ease, color 240ms ease;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font-family: inherit; }

/* --- Reading Progress Bar --- */
#reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  z-index: 90;
  background: linear-gradient(90deg, #2bc4bd, #0b2433, #e86b8f, #67e6de);
  pointer-events: none;
}

/* --- Full-Page Interactive Ambient Background Canvas --- */
#ambient-bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}
.band-inner {
  position: relative;
  z-index: 5;
}
.page-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Full-Bleed Seamless Gradient-Blended Editorial Bands --- */
.section-band {
  position: relative;
  overflow: hidden;
  padding: 104px 0 116px;
}
.subpage-first-band {
  padding-top: 132px;
  min-height: calc(100svh - 110px);
}

.band-lagoon {
  background:
    radial-gradient(54% 40% at 86% 24%, rgba(43, 196, 189, 0.24) 0%, transparent 70%),
    radial-gradient(46% 36% at 14% 58%, rgba(103, 230, 222, 0.18) 0%, transparent 70%),
    linear-gradient(180deg, #d3efec 0%, #dcf2ef 36%, #e4f3f1 72%, #efeaf0 100%);
}
[data-theme="dark"] .band-lagoon {
  background:
    radial-gradient(54% 40% at 86% 24%, rgba(48, 208, 200, 0.14) 0%, transparent 70%),
    linear-gradient(180deg, #071a25 0%, #0a2434 48%, #0c2030 100%);
}

.band-midnight {
  background:
    radial-gradient(52% 40% at 16% 42%, rgba(244, 175, 194, 0.30) 0%, transparent 70%),
    radial-gradient(50% 38% at 84% 56%, rgba(178, 139, 192, 0.22) 0%, transparent 70%),
    linear-gradient(180deg, #efeaf0 0%, #f6e9f0 22%, #f7edf0 54%, #efe7f1 80%, #f2ece9 100%);
}
[data-theme="dark"] .band-midnight {
  background:
    radial-gradient(52% 40% at 16% 42%, rgba(241, 149, 172, 0.14) 0%, transparent 70%),
    radial-gradient(50% 38% at 84% 56%, rgba(178, 139, 192, 0.14) 0%, transparent 70%),
    linear-gradient(180deg, #0c2030 0%, #152037 28%, #162138 66%, #0b1f2e 100%);
}

.band-sunset {
  background:
    radial-gradient(52% 38% at 18% 36%, rgba(244, 199, 162, 0.28) 0%, transparent 68%),
    radial-gradient(50% 38% at 82% 56%, rgba(43, 196, 189, 0.22) 0%, transparent 68%),
    linear-gradient(180deg, #f2ece9 0%, #f5ebdd 28%, #ebf1ea 68%, #dfeeed 100%);
}
[data-theme="dark"] .band-sunset {
  background:
    radial-gradient(52% 38% at 20% 36%, rgba(48, 208, 200, 0.14) 0%, transparent 68%),
    radial-gradient(50% 38% at 82% 56%, rgba(241, 149, 172, 0.12) 0%, transparent 68%),
    linear-gradient(180deg, #0b1f2e 0%, #0d2939 44%, #081c29 100%);
}

.band-palm-watermark {
  position: absolute;
  right: -96px;
  top: -36px;
  width: 420px;
  height: 420px;
  pointer-events: none;
  opacity: 0.07;
  z-index: 1;
}

/* --- Sticky Floating Resort Glass Header --- */
.resort-header-wrap {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 70;
  padding: 12px 16px 0;
  transition: padding 220ms ease;
}
.resort-header {
  max-width: 1140px;
  margin: 0 auto;
  height: 60px;
  border-radius: 999px;
  padding: 0 14px 0 22px;
  background: rgba(250, 246, 238, 0.90);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid rgba(11, 36, 51, 0.12);
  box-shadow: 0 10px 32px rgba(11, 36, 51, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
[data-theme="dark"] .resort-header {
  background: rgba(7, 24, 34, 0.90);
  border-color: rgba(48, 208, 200, 0.22);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.44);
}

.brand-lockup {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  flex-shrink: 0;
}
.brand-lh {
  font-family: 'Big Shoulders Display', sans-serif;
  font-weight: 900;
  font-size: 28px;
  letter-spacing: 0.05em;
  line-height: 0.95;
  color: var(--ink);
}
.brand-vc {
  font-family: 'Yellowtail', cursive;
  font-size: 20px;
  line-height: 1;
  color: var(--tommy-coral);
  transform: rotate(-7deg) translateY(1px);
  display: inline-block;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-link {
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-secondary);
  transition: background-color 180ms ease, color 180ms ease;
  white-space: nowrap;
}
.nav-link:hover {
  color: var(--ink);
  background: var(--accent-soft);
}
.nav-link.is-active {
  background: #0b2433;
  color: #faf6ee;
  font-weight: 600;
}
[data-theme="dark"] .nav-link.is-active {
  background: #30d0c8;
  color: #071822;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.header-search-form {
  position: relative;
  display: flex;
  align-items: center;
}
.header-search-form svg,
.mobile-search-form svg {
  position: absolute;
  left: 11px;
  width: 14px;
  height: 14px;
  color: var(--ink-muted);
  pointer-events: none;
}
.header-search-form input[type="search"] {
  width: 158px;
  padding: 7px 12px 7px 34px;
  border-radius: 999px;
  font-size: 12.5px;
  background: var(--bg);
  color: var(--ink);
  border: 1px solid var(--border);
  transition: width 220ms ease, border-color 160ms ease;
}
.header-search-form input[type="search"]:focus {
  outline: none;
  width: 196px;
  border-color: var(--tommy-teal);
}

.theme-pill {
  height: 36px;
  padding: 0 13px;
  border-radius: 999px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: border-color 160ms ease;
}
.theme-pill:hover { border-color: var(--tommy-teal); }
.theme-icon-wrap {
  display: inline-flex;
  align-items: center;
}
.theme-icon-wrap svg { width: 15px; height: 15px; }
[data-theme="light"] .theme-pill .icon-moon,
[data-theme="light"] .theme-label-night { display: none; }
[data-theme="dark"] .theme-pill .icon-sun,
[data-theme="dark"] .theme-label-day { display: none; }

.lang-pill {
  height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--coral-soft);
  color: var(--coral-ink);
  border: 1px solid rgba(232, 107, 143, 0.30);
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.lang-pill:hover { border-color: var(--tommy-coral); }

.mobile-menu-btn {
  display: none;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--ink);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.mobile-menu-btn .icon-close { display: none; }
.mobile-menu-btn[aria-expanded="true"] .icon-menu { display: none; }
.mobile-menu-btn[aria-expanded="true"] .icon-close { display: block; }

.mobile-drawer {
  display: none;
  padding: 14px 16px 18px;
  background: rgba(250, 246, 238, 0.99);
  border-top: 1px solid var(--border);
  box-shadow: 0 22px 50px rgba(11, 36, 51, 0.16);
}
[data-theme="dark"] .mobile-drawer {
  background: rgba(7, 24, 34, 0.99);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.54);
}
.mobile-drawer.is-open { display: block; }
.mobile-nav-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}
.mobile-nav-grid .nav-link {
  text-align: center;
  padding: 9px 10px;
}
.mobile-search-form {
  position: relative;
  display: flex;
  align-items: center;
}
.mobile-search-form input[type="search"] {
  width: 100%;
  padding: 10px 14px 10px 38px;
  border-radius: 12px;
  font-size: 14px;
  background: var(--bg);
  color: var(--ink);
  border: 1px solid var(--border);
}
.nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  top: 55px;
  background: rgba(7, 24, 34, 0.45);
  z-index: -1;
}
.nav-backdrop.is-open { display: block; }

@media (max-width: 1024px) {
  .header-search-form { display: none; }
}
@media (max-width: 820px) {
  .resort-header-wrap {
    padding: 0;
    background: rgba(250, 246, 238, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
  }
  [data-theme="dark"] .resort-header-wrap {
    background: rgba(7, 24, 34, 0.96);
  }
  .resort-header {
    height: 54px;
    border-radius: 0;
    border: 0;
    box-shadow: none;
    background: transparent;
    padding: 0 14px;
  }
  .desktop-nav { display: none; }
  .mobile-menu-btn { display: inline-flex; }
  .theme-label-day, .theme-label-night { display: none !important; }
  .theme-pill { padding: 0 10px; }
}

/* ==================== FULL-SCREEN TOMMY VERCETTI 3-LAYER PALM HERO ==================== */
.tommy-hero {
  position: relative;
  z-index: 6;
  min-height: 96svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  background: #23bdb6;
  padding: 110px 20px 106px;
  isolation: isolate;
}
[data-theme="dark"] .tommy-hero { background: #061822; }

.palm-layer-fabric {
  position: absolute;
  inset: -8%;
  background-image: url('/static/images/tommy-palms.jpg');
  background-size: cover;
  background-position: center;
  transform: translate3d(var(--p0-x, 0px), var(--p0-y, 0px), 0) scale(1.08);
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1), filter 350ms ease, opacity 350ms ease;
  will-change: transform;
  z-index: 1;
  filter: saturate(1.12) contrast(1.06);
}
[data-theme="dark"] .palm-layer-fabric {
  filter: brightness(0.42) saturate(1.25) contrast(1.18) hue-rotate(-4deg);
  opacity: 0.90;
}

#hero-caustics {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
}
.hero-sun-veil {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  background: radial-gradient(75% 75% at 50% 50%, rgba(11, 36, 51, 0.04) 0%, rgba(11, 36, 51, 0.28) 74%, rgba(7, 24, 34, 0.56) 100%);
}
[data-theme="dark"] .hero-sun-veil {
  background: radial-gradient(75% 75% at 50% 50%, rgba(7, 24, 34, 0.18) 0%, rgba(7, 24, 34, 0.52) 72%, rgba(4, 14, 20, 0.80) 100%);
}

.palm-layer-mid,
.palm-layer-fore {
  position: absolute;
  inset: -6%;
  width: 112%;
  height: 112%;
  pointer-events: none;
  will-change: transform;
}
.palm-layer-mid {
  z-index: 4;
  transform: translate3d(var(--p1-x, 0px), var(--p1-y, 0px), 0);
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}
.palm-layer-fore {
  z-index: 6;
  transform: translate3d(var(--p2-x, 0px), var(--p2-y, 0px), 0);
  transition: transform 180ms cubic-bezier(0.22, 1, 0.36, 1);
}
.breeze-left { transform-origin: 0% 10%; animation: breezeA 8s ease-in-out infinite; }
.breeze-right { transform-origin: 100% 18%; animation: breezeB 9.2s ease-in-out infinite; }
.breeze-bottom { transform-origin: 95% 100%; animation: breezeA 7.5s ease-in-out infinite reverse; }
@keyframes breezeA { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(2.1deg); } }
@keyframes breezeB { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(-2.3deg); } }

/* Sculpted Ocean Navy Glass Hero Stage */
.hero-center {
  position: relative;
  z-index: 10;
  max-width: 880px;
  width: 100%;
  margin: 0 auto;
  text-align: center;
  perspective: 1200px;
}
.hero-glass-stage {
  position: relative;
  max-width: 840px;
  margin: 0 auto;
  padding: clamp(24px, 3.8vw, 42px) clamp(22px, 4.5vw, 50px);
  border-radius: 28px;
  background: linear-gradient(155deg, rgba(8, 29, 43, 0.88) 0%, rgba(11, 38, 54, 0.82) 55%, rgba(7, 25, 37, 0.90) 100%);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border: 1px solid rgba(103, 230, 222, 0.28);
  box-shadow: 0 28px 80px rgba(5, 19, 28, 0.44), inset 0 1px 0 rgba(255, 255, 255, 0.14), inset 0 0 0 1px rgba(244, 175, 194, 0.10);
  transform: rotateX(var(--hrx, 0deg)) rotateY(var(--hry, 0deg));
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.hero-glass-stage::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(420px circle at var(--hx, 50%) var(--hy, 35%), rgba(103, 230, 222, 0.18), rgba(244, 175, 194, 0.08) 42%, transparent 72%);
}
.deco-corner {
  position: absolute;
  width: 18px;
  height: 18px;
  pointer-events: none;
  opacity: 0.65;
}
.deco-corner.tl { top: 14px; left: 14px; border-top: 1.5px solid #67e6de; border-left: 1.5px solid #67e6de; border-top-left-radius: 6px; }
.deco-corner.tr { top: 14px; right: 14px; border-top: 1.5px solid #f4afc2; border-right: 1.5px solid #f4afc2; border-top-right-radius: 6px; }
.deco-corner.bl { bottom: 14px; left: 14px; border-bottom: 1.5px solid #f4afc2; border-left: 1.5px solid #f4afc2; border-bottom-left-radius: 6px; }
.deco-corner.br { bottom: 14px; right: 14px; border-bottom: 1.5px solid #67e6de; border-right: 1.5px solid #67e6de; border-bottom-right-radius: 6px; }

.hero-enter { position: relative; z-index: 2; animation: heroLift 240ms cubic-bezier(0.22, 1, 0.36, 1) both; }
.he-2 { animation-delay: 25ms; }
.he-3 { animation-delay: 50ms; }
.he-4 { animation-delay: 75ms; }
@keyframes heroLift { 0% { opacity: 0.90; transform: translateY(7px); } 100% { opacity: 1; transform: translateY(0); } }

.deco-eyebrow {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8df2ec;
}
.deco-eyebrow .deco-line { width: 28px; height: 1px; background: rgba(141, 242, 236, 0.45); }
.eyebrow-dot { width: 6px; height: 6px; border-radius: 999px; background: #f4afc2; box-shadow: 0 0 8px #f4afc2; }
.eyebrow-sep { opacity: 0.45; }

.hero-resort-name {
  margin: 0;
  font-family: 'Big Shoulders Display', sans-serif;
  font-weight: 900;
  font-size: clamp(2.85rem, 6.2vw, 5.1rem);
  line-height: 1.04;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #faf6ee;
  text-shadow: 0 4px 26px rgba(0, 0, 0, 0.36), 3px 3px 0 rgba(48, 208, 200, 0.30);
}
.hero-resort-name mark.hl {
  background: transparent;
  color: #67e6de;
}
.hero-sub-lockup {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 10px 14px;
  margin-top: 8px;
}
.hero-script-sub {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1.18rem, 2.2vw, 1.55rem);
  line-height: 1.35;
  color: #f4afc2;
  text-shadow: 0 2px 14px rgba(244, 175, 194, 0.28);
}
.hero-handle-stamp {
  font-family: 'Space Mono', monospace;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8df2ec;
  border-bottom: 1.5px solid #f4afc2;
  padding-bottom: 2px;
}

.hero-bio-block { display: flex; flex-direction: column; gap: 18px; }
.deco-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  max-width: 260px;
  margin: 0 auto;
}
.deco-divider span:first-child,
.deco-divider span:last-child {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(103, 230, 222, 0.48), transparent);
}
.deco-diamond {
  width: 7px;
  height: 7px;
  transform: rotate(45deg);
  background: #f4afc2;
  box-shadow: 0 0 12px rgba(244, 175, 194, 0.7);
}
.hero-editorial-bio {
  margin: 0 auto;
  max-width: 36rem;
  font-size: clamp(0.98rem, 1.45vw, 1.1rem);
  line-height: 1.80;
  color: #d8ecf0;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding-top: 4px;
}
.btn-hero-aqua {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  background: linear-gradient(135deg, #30d0c8 0%, #5ee7df 100%);
  color: #061c29;
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 14px 28px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 12px 32px rgba(48, 208, 200, 0.32);
  transition: transform 200ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 200ms ease, filter 180ms ease;
}
.btn-hero-aqua:hover { filter: brightness(1.06); box-shadow: 0 16px 38px rgba(48, 208, 200, 0.46); }
.btn-hero-ghost {
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: #faf6ee;
  border: 1.5px solid rgba(250, 246, 238, 0.38);
  padding: 13.5px 26px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: transform 200ms ease, border-color 180ms ease, background-color 180ms ease;
}
.btn-hero-ghost:hover { background: rgba(255, 255, 255, 0.16); border-color: #f4afc2; }
.cta-coral-arrow { color: #f4afc2; }

.hero-spec-strip {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 16px;
  padding: 12px 20px;
  border-top: 1px solid rgba(103, 230, 222, 0.22);
  border-bottom: 1px solid rgba(103, 230, 222, 0.22);
  font-family: 'Space Mono', monospace;
  font-size: 11.5px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: #cbe4ea;
}
.hero-spec-dot { width: 4px; height: 4px; border-radius: 999px; background: #f4afc2; display: inline-block; }
.hero-vice-link {
  background: transparent;
  border: 0;
  padding: 0;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  color: #f4afc2;
  font-weight: 700;
  cursor: pointer;
  transition: color 160ms ease, transform 160ms ease;
}
.hero-vice-link:hover { color: #ffffff; transform: translateY(-1px); }

.hero-scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 26px;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(8, 29, 43, 0.78);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(103, 230, 222, 0.30);
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #faf6ee;
  transition: transform 200ms ease, border-color 200ms ease;
}
.hero-scroll-cue:hover { transform: translateY(2px); border-color: #f4afc2; }
.scroll-bob { display: inline-block; color: #67e6de; animation: bobDown 1.8s ease-in-out infinite; }
@keyframes bobDown { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }

.hero-bottom-curve {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  z-index: 12;
  pointer-events: none;
  line-height: 0;
}
.hero-bottom-curve svg { width: 100%; height: 58px; display: block; }

/* --- Kinetic Architectural Marquee Ribbon --- */
.ocean-marquee {
  position: relative;
  z-index: 6;
  overflow: hidden;
  border-top: 1px solid rgba(103, 230, 222, 0.24);
  border-bottom: 1px solid rgba(103, 230, 222, 0.24);
  background: #071a26;
  padding: 20px 0;
  user-select: none;
}
.ocean-marquee-track {
  display: flex;
  align-items: center;
  gap: 36px;
  width: max-content;
  will-change: transform;
  animation: oceanMarquee 32s linear infinite;
}
.ocean-marquee:hover .ocean-marquee-track { animation-play-state: paused; }
.ocean-marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 36px;
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #8df2ec;
  white-space: nowrap;
}
.ocean-marquee-gem {
  width: 6px;
  height: 6px;
  transform: rotate(45deg);
  background: #f4afc2;
  box-shadow: 0 0 8px rgba(244, 175, 194, 0.7);
  flex-shrink: 0;
}
@keyframes oceanMarquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* --- Shared Buttons & Chapter Headers --- */
.btn-resort-primary {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  background: #0b2433;
  color: #faf6ee;
  border: 1px solid #0b2433;
  padding: 13px 26px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(103, 230, 222, 0.28), 0 12px 28px rgba(11, 36, 51, 0.22);
  transition: transform 200ms cubic-bezier(0.22, 1, 0.36, 1), background-color 180ms ease, box-shadow 200ms ease;
}
.btn-resort-primary:hover { background: #103246; box-shadow: inset 0 0 0 1px rgba(244, 175, 194, 0.52), 0 16px 34px rgba(11, 36, 51, 0.32); }
.btn-resort-primary:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-resort-primary::after,
.btn-hero-aqua::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -65%;
  width: 45%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.42), transparent);
  transform: skewX(-24deg);
  transition: left 550ms cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-resort-primary:hover::after,
.btn-hero-aqua:hover::after { left: 135%; }
[data-theme="dark"] .btn-resort-primary {
  background: #30d0c8;
  color: #071822;
  border-color: #30d0c8;
  box-shadow: 0 12px 30px rgba(48, 208, 200, 0.28);
}
[data-theme="dark"] .btn-resort-primary:hover { background: #5be3dc; }

.btn-resort-ivory {
  border-radius: 10px;
  background: rgba(250, 246, 238, 0.78);
  color: #0b2433;
  border: 1.5px solid rgba(11, 36, 51, 0.26);
  padding: 12px 22px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: border-color 180ms ease, background-color 180ms ease;
}
.btn-resort-ivory:hover { background: #ffffff; border-color: #e86b8f; }
[data-theme="dark"] .btn-resort-ivory {
  background: rgba(14, 40, 56, 0.80);
  color: #faf6ee;
  border-color: rgba(48, 208, 200, 0.36);
}
[data-theme="dark"] .btn-resort-ivory:hover { border-color: #f195ac; }
.btn-sm { padding: 9px 16px; font-size: 12px; }

.chapter-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 24px;
  margin-bottom: 48px;
  border-bottom: 1px solid var(--border);
}
.chapter-title-group { display: flex; flex-direction: column; gap: 8px; }
.chapter-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}
.chapter-line { width: 24px; height: 1px; background: var(--tommy-coral); }
.chapter-script {
  font-family: 'Yellowtail', cursive;
  font-size: 30px;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  line-height: 1;
  color: var(--tommy-coral);
}
.chapter-heading {
  margin: 0;
  font-family: 'Big Shoulders Display', sans-serif;
  font-weight: 800;
  font-size: clamp(2.8rem, 5.5vw, 4rem);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 0.96;
  color: var(--ink);
}
.chapter-heading mark.hl { background: transparent; color: var(--accent); }
.page-lead {
  margin: 6px 0 0;
  max-width: 60ch;
  font-size: 15.5px;
  color: var(--ink-secondary);
}
.chapter-more-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  padding-bottom: 4px;
  transition: transform 180ms ease;
}
.chapter-more-link:hover { text-decoration: underline; transform: translateX(3px); }

/* --- Clean Resort Card & Empty Card --- */
.resort-card,
.empty-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow-card);
}
.empty-card {
  padding: 48px 28px;
  text-align: center;
}
.empty-title { margin: 0 0 8px; font-weight: 700; font-size: 18px; color: var(--ink); }
.empty-sub { margin: 0; font-size: 14.5px; color: var(--ink-secondary); }

/* --- Alternating Storytelling Case Study Showcases --- */
.showcase-list {
  display: flex;
  flex-direction: column;
  gap: 48px;
}
.showcase-row {
  position: relative;
  display: grid;
  grid-template-columns: 7fr 5fr;
  align-items: stretch;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 320ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 320ms ease, border-color 240ms ease;
}
.showcase-row::after,
.post-feed-item::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 260ms ease;
  background: radial-gradient(460px circle at var(--mx, 50%) var(--my, 50%), rgba(43, 196, 189, 0.13), rgba(244, 175, 194, 0.08) 42%, transparent 72%);
  z-index: 3;
}
.showcase-row:hover::after,
.post-feed-item:hover::after { opacity: 1; }
.showcase-row:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lift);
  border-color: var(--border-strong);
}
.showcase-row.is-reversed .showcase-media { order: 2; }
.showcase-row.is-reversed .showcase-body { order: 1; }

.showcase-media {
  position: relative;
  min-height: 320px;
  overflow: hidden;
  display: block;
  background: linear-gradient(135deg, #159a98, #2bc4bd);
}
.showcase-art-inner {
  width: 100%;
  height: 100%;
  transform: scale(1.04) translateY(var(--py, 0px));
  transition: transform 520ms cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}
.showcase-row:hover .showcase-art-inner {
  transform: scale(1.07) translateY(var(--py, 0px));
}
.showcase-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.showcase-placeholder {
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 36px;
}
.showcase-placeholder[data-tone="0"], .blog-thumb-wrap[data-tone="0"] { background: linear-gradient(135deg, #159a98 0%, #2bc4bd 58%, #67e6de 100%); }
.showcase-placeholder[data-tone="1"], .blog-thumb-wrap[data-tone="1"] { background: linear-gradient(135deg, #0b2433 0%, #159a98 58%, #f195ac 100%); }
.showcase-placeholder[data-tone="2"], .blog-thumb-wrap[data-tone="2"] { background: linear-gradient(135deg, #2bc4bd 0%, #1a6875 58%, #e86b8f 100%); }
.showcase-placeholder[data-tone="3"], .blog-thumb-wrap[data-tone="3"] { background: linear-gradient(135deg, #0b2433 0%, #2bc4bd 62%, #67e6de 100%); }
.showcase-placeholder[data-tone="4"], .blog-thumb-wrap[data-tone="4"] { background: linear-gradient(135deg, #1a5468 0%, #2bc4bd 55%, #f4afc2 100%); }
.showcase-placeholder[data-tone="5"], .blog-thumb-wrap[data-tone="5"] { background: linear-gradient(135deg, #0d2b3c 0%, #159a98 55%, #b28bc0 100%); }

.dossier-card {
  width: 66%;
  max-width: 280px;
  background: rgba(250, 246, 238, 0.94);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 14px 30px rgba(7, 24, 34, 0.22);
}
.dossier-dots { display: flex; gap: 6px; }
.dossier-dots span { width: 9px; height: 9px; border-radius: 999px; }
.dossier-dots span:nth-child(1) { background: #e86b8f; }
.dossier-dots span:nth-child(2) { background: #2bc4bd; }
.dossier-dots span:nth-child(3) { background: #0b2433; }
.dossier-bar { height: 8px; border-radius: 999px; background: rgba(11, 36, 51, 0.24); }
.dossier-bar-lg { height: 11px; width: 70%; background: rgba(11, 36, 51, 0.85); }
.dossier-bar-md { width: 92%; }
.dossier-bar-sm { width: 74%; }
.dossier-pills { display: flex; gap: 8px; margin-top: 6px; }
.dossier-pills span { height: 22px; border-radius: 999px; }
.dossier-pills span:nth-child(1) { width: 82px; background: #2bc4bd; }
.dossier-pills span:nth-child(2) { width: 64px; background: #f4afc2; }
.showcase-ghost-num {
  position: absolute;
  right: 24px;
  bottom: 8px;
  font-family: 'Big Shoulders Display', sans-serif;
  font-weight: 900;
  font-size: 92px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.26);
}
.showcase-badge {
  position: absolute;
  top: 18px;
  left: 18px;
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 13px;
  border-radius: 999px;
  background: rgba(11, 36, 51, 0.82);
  color: #faf6ee;
  backdrop-filter: blur(8px);
}

.showcase-body {
  padding: 36px 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
}
.showcase-copy { display: flex; flex-direction: column; gap: 12px; }
.showcase-meta-head { display: flex; align-items: center; justify-content: space-between; }
.showcase-index {
  font-family: 'Big Shoulders Display', sans-serif;
  font-weight: 900;
  font-size: 46px;
  line-height: 0.9;
  color: var(--tommy-teal);
}
.showcase-label {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.showcase-title {
  margin: 0;
  font-family: 'Big Shoulders Display', sans-serif;
  font-weight: 800;
  font-size: 36px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1;
  color: var(--ink);
  transition: color 180ms ease;
}
.showcase-title-link:hover .showcase-title { color: var(--accent); }
.showcase-excerpt {
  margin: 0;
  font-size: 15px;
  line-height: 1.72;
  color: var(--ink-secondary);
}
.showcase-footer { display: flex; flex-direction: column; gap: 18px; }
.stack-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.stack-chip {
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--bg-alt);
  color: var(--ink-secondary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.chip-level { font-size: 11px; opacity: 0.72; }
.showcase-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
}
.showcase-more:hover { text-decoration: underline; }

@media (max-width: 900px) {
  .showcase-row { grid-template-columns: 1fr; }
  .showcase-row.is-reversed .showcase-media,
  .showcase-row.is-reversed .showcase-body { order: initial; }
  .showcase-media { min-height: 230px; }
  .showcase-body { padding: 26px 24px; }
}

/* --- Inline-Artwork Editorial Blog Feed (Zero Floating Hover Popup) --- */
.post-feed {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.post-feed-item {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow-card);
  transition: transform 280ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 260ms ease, border-color 220ms ease;
}
.post-feed-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
  border-color: var(--border-strong);
}
.blog-card-link {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr) auto;
  gap: 26px;
  align-items: center;
  padding: 20px 22px;
}
.blog-thumb-wrap {
  position: relative;
  width: 236px;
  aspect-ratio: 16 / 10;
  border-radius: 15px;
  overflow: hidden;
  flex-shrink: 0;
  display: block;
}
.blog-thumb-img,
.blog-thumb-svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 520ms cubic-bezier(0.16, 1, 0.3, 1);
}
.post-feed-item:hover .blog-thumb-img,
.post-feed-item:hover .blog-thumb-svg {
  transform: scale(1.06);
}
.blog-thumb-art { position: relative; display: block; width: 100%; height: 100%; }
.blog-thumb-stamp {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 5px 10px;
  border-radius: 8px;
  background: rgba(11, 36, 51, 0.84);
  color: #faf6ee;
  font-family: 'Space Mono', monospace;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.blog-thumb-num {
  position: absolute;
  right: 12px;
  bottom: 4px;
  font-family: 'Big Shoulders Display', sans-serif;
  font-weight: 900;
  font-size: 36px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.34);
}
.blog-card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.blog-card-meta {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
}
.blog-card-title {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
  transition: color 180ms ease;
}
.post-feed-item:hover .blog-card-title { color: var(--accent); }
.blog-card-excerpt {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--ink-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-card-arrow {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  transition: background-color 180ms ease, color 180ms ease, transform 200ms ease;
}
.post-feed-item:hover .blog-card-arrow {
  background: #0b2433;
  color: #faf6ee;
  transform: translate(2px, -2px);
}
[data-theme="dark"] .post-feed-item:hover .blog-card-arrow {
  background: #30d0c8;
  color: #071822;
}
@media (max-width: 767px) {
  .blog-card-link { grid-template-columns: 1fr; gap: 14px; padding: 14px; }
  .blog-thumb-wrap { width: 100%; aspect-ratio: 16 / 9; }
  .blog-card-arrow { display: none; }
}

/* --- Newsletter Card --- */
.newsletter-card {
  margin-top: 44px;
  padding: 32px 36px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
}
.newsletter-kicker {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--accent);
}
.newsletter-copy h3 { margin: 6px 0 6px; font-size: 22px; font-weight: 700; color: var(--ink); }
.newsletter-copy p { margin: 0; font-size: 14.5px; color: var(--ink-secondary); }
.newsletter-input-row { display: flex; gap: 10px; }
.newsletter-input-row input { flex: 1; min-width: 0; }
.newsletter-feedback,
.contact-feedback {
  margin: 8px 0 0;
  font-size: 13.5px;
  font-weight: 500;
  min-height: 20px;
}
.is-success { color: #0f8a88; }
.is-error { color: #c83e63; }
[data-theme="dark"] .is-success { color: #67e6de; }
[data-theme="dark"] .is-error { color: #ff9bb1; }
@media (max-width: 767px) {
  .newsletter-card { grid-template-columns: 1fr; padding: 24px 20px; }
  .newsletter-input-row { flex-direction: column; }
}

/* --- Ocean View Air-Mail Postcard Contact Suite --- */
.postcard-border {
  border-radius: 28px;
  padding: 4px;
  background: repeating-linear-gradient(
    -45deg,
    #2bc4bd 0px, #2bc4bd 14px,
    #faf6ee 14px, #faf6ee 22px,
    #0b2433 22px, #0b2433 36px,
    #faf6ee 36px, #faf6ee 44px,
    #e86b8f 44px, #e86b8f 58px,
    #faf6ee 58px, #faf6ee 66px
  );
  box-shadow: var(--shadow-card);
}
[data-theme="dark"] .postcard-border {
  background: repeating-linear-gradient(
    -45deg,
    #30d0c8 0px, #30d0c8 14px,
    #0e2838 14px, #0e2838 22px,
    #f195ac 22px, #f195ac 36px,
    #0e2838 36px, #0e2838 44px
  );
}
.postcard-inner {
  background: var(--surface);
  border-radius: 24px;
  padding: clamp(26px, 4.5vw, 52px);
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 44px;
  align-items: center;
}
.postcard-info { display: flex; flex-direction: column; gap: 16px; }
.postcard-head-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.postcard-kicker {
  font-family: 'Space Mono', monospace;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--accent);
}
.postcard-stamp {
  padding: 6px 12px;
  border-radius: 12px;
  border: 1.5px dashed var(--tommy-coral);
  background: var(--coral-soft);
  text-align: center;
  display: flex;
  flex-direction: column;
}
.stamp-brand { font-family: 'Big Shoulders Display', sans-serif; font-weight: 900; font-size: 14px; line-height: 1; color: var(--coral-ink); letter-spacing: 0.06em; }
.stamp-city { font-family: 'Space Mono', monospace; font-size: 10px; color: var(--coral-ink); margin-top: 2px; }
.postcard-title {
  margin: 0;
  font-family: 'Big Shoulders Display', sans-serif;
  font-weight: 800;
  font-size: clamp(2.3rem, 4vw, 3.1rem);
  line-height: 0.96;
  text-transform: uppercase;
  color: var(--ink);
}
.postcard-lead { margin: 0; font-size: 15px; line-height: 1.7; color: var(--ink-secondary); }
.postcard-meta-list { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.email-copy-pill,
.location-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  font-weight: 700;
  background: var(--accent-soft);
  color: var(--accent);
}
.location-pill { background: var(--bg-alt); color: var(--ink-secondary); font-family: inherit; font-weight: 600; }
.location-pill svg { width: 14px; height: 14px; }
.postcard-socials { display: flex; flex-wrap: wrap; gap: 14px; }
.postcard-social-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-secondary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.postcard-social-link:hover { color: var(--accent); text-decoration: underline; }

.postcard-form { display: flex; flex-direction: column; gap: 14px; }
.form-row-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-control { display: flex; flex-direction: column; gap: 6px; }
.form-control label { font-size: 12.5px; font-weight: 600; color: var(--ink-secondary); }
.form-helper { font-size: 12px; color: #c83e63; min-height: 0; }
.form-control.has-error input,
.form-control.has-error textarea { border-color: #e86b8f; }
input[type="text"], input[type="email"], input[type="search"], textarea {
  width: 100%;
  padding: 12px 15px;
  font-size: 14.5px;
  background: var(--bg);
  color: var(--ink);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
textarea { resize: vertical; }
input:focus, textarea:focus {
  outline: none;
  border-color: var(--tommy-teal);
  box-shadow: 0 0 0 3px rgba(43, 196, 189, 0.22);
}
.postcard-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 4px;
}
@media (max-width: 900px) {
  .postcard-inner { grid-template-columns: 1fr; gap: 28px; }
  .form-row-2 { grid-template-columns: 1fr; }
}

/* --- Seamless Light/Dark Resort Footer (NO z-index trap so ambient waves show!) --- */
.resort-footer {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(48% 80% at 80% 50%, rgba(43, 196, 189, 0.18) 0%, transparent 72%),
    linear-gradient(180deg, #dfeeed 0%, #d2eae7 100%);
  color: var(--ink-muted);
}
[data-theme="dark"] .resort-footer {
  background:
    radial-gradient(48% 80% at 80% 50%, rgba(48, 208, 200, 0.10) 0%, transparent 72%),
    linear-gradient(180deg, #081c29 0%, #06141e 100%);
}
.footer-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 36px 24px 44px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 14px;
}
.footer-brand-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; }
.footer-brand-link { display: inline-flex; align-items: baseline; gap: 6px; }
.footer-lh { font-family: 'Big Shoulders Display', sans-serif; font-weight: 900; font-size: 26px; letter-spacing: 0.05em; color: var(--ink); }
.footer-vc { font-family: 'Yellowtail', cursive; font-size: 22px; color: var(--tommy-coral); }
.footer-right { display: flex; align-items: center; gap: 20px; }
.palette-dots { display: inline-flex; align-items: center; gap: 6px; }
.palette-dots span { width: 11px; height: 11px; border-radius: 999px; border: 1px solid rgba(11, 36, 51, 0.18); }
.footer-links { display: inline-flex; gap: 16px; font-weight: 600; color: var(--ink-secondary); }
.footer-links a:hover { color: var(--accent); text-decoration: underline; }

/* --- Blog & Project Detail Pages (68ch Reader + TOC + Comments) --- */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-secondary);
  margin-bottom: 24px;
  transition: border-color 160ms ease, color 160ms ease;
}
.back-link:hover { border-color: var(--tommy-teal); color: var(--ink); }

.preview-banner {
  padding: 12px 18px;
  border-radius: 14px;
  background: var(--coral-soft);
  color: var(--coral-ink);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 22px;
}

.detail-layout { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: start; }
.detail-layout.has-toc { grid-template-columns: minmax(0, 1fr) 260px; }
.detail-side { position: sticky; top: 96px; }

.detail-head {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 26px;
  padding: clamp(24px, 4vw, 40px);
  box-shadow: var(--shadow-card);
  margin-bottom: 28px;
}
.detail-meta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 14px; }
.detail-date { font-family: 'Space Mono', monospace; font-size: 12.5px; font-weight: 700; color: var(--accent); }
.detail-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-chip {
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: var(--coral-soft);
  color: var(--coral-ink);
  transition: transform 150ms ease;
}
.tag-chip:hover { transform: translateY(-1px); }
.tag-chip.is-active { background: #0b2433; color: #faf6ee; }
[data-theme="dark"] .tag-chip.is-active { background: #30d0c8; color: #071822; }

.detail-head h1 {
  margin: 0 0 12px;
  font-size: clamp(1.85rem, 3.6vw, 2.55rem);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.detail-lead { margin: 0; font-size: 17px; line-height: 1.7; color: var(--ink-secondary); }

.detail-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 26px;
}
.detail-link-buttons { display: inline-flex; gap: 10px; }

.prose-shell { padding: clamp(24px, 4.5vw, 44px); }
.prose {
  max-width: 68ch;
  font-size: 16.5px;
  line-height: 1.85;
  color: var(--ink-secondary);
}
.prose h2, .prose h3, .prose h4 {
  color: var(--ink);
  font-weight: 700;
  scroll-margin-top: 96px;
}
.prose h2 {
  font-size: 1.45rem;
  margin: 2.3rem 0 0.9rem;
  padding-left: 14px;
  border-left: 3.5px solid var(--tommy-teal);
}
.prose h3 { font-size: 1.18rem; margin: 1.8rem 0 0.7rem; }
.prose p { margin: 0 0 1.25rem; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.4rem; margin: 0 0 1.3rem; }
.prose li { margin-bottom: 0.45rem; }
.prose blockquote {
  margin: 1.6rem 0;
  padding: 14px 20px;
  border-left: 3.5px solid var(--tommy-coral);
  background: var(--bg-alt);
  border-radius: 0 14px 14px 0;
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
}
.prose img { border-radius: 16px; margin: 1.6rem 0; box-shadow: var(--shadow-card); }
.prose table { width: 100%; border-collapse: collapse; margin: 1.6rem 0; font-size: 14.5px; }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid var(--border); text-align: left; }
.prose th { font-weight: 700; color: var(--ink); background: var(--bg-alt); }
.prose code {
  font-family: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.88em;
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--ink);
}
.prose pre {
  position: relative;
  margin: 1.7rem 0;
  padding: 18px 20px;
  background: var(--code-bg);
  color: var(--code-fg);
  border: 1px solid rgba(48, 208, 200, 0.24);
  border-radius: 16px;
  overflow-x: auto;
  font-family: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13.5px;
  line-height: 1.7;
  box-shadow: var(--shadow-card);
}
.prose pre code { background: transparent; padding: 0; color: inherit; font-size: inherit; }
.code-copy-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 11px;
  border-radius: 999px;
  border: 1px solid rgba(103, 230, 222, 0.30);
  background: rgba(11, 36, 51, 0.86);
  color: #7df2ea;
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}
.code-copy-btn:hover { background: #30d0c8; color: #071822; }

/* Chroma Syntax Highlighting */
.chroma { background: transparent; color: inherit; }
.chroma .line { display: flex; }
.chroma .k, .chroma .kc, .chroma .kd, .chroma .kn, .chroma .kp, .chroma .kr { color: var(--code-keyword); font-weight: 600; }
.chroma .s, .chroma .sa, .chroma .sb, .chroma .sc, .chroma .dl, .chroma .sd, .chroma .s1, .chroma .s2, .chroma .se, .chroma .sh, .chroma .si, .chroma .sx, .chroma .sr, .chroma .ss { color: var(--code-string); }
.chroma .c, .chroma .ch, .chroma .cm, .chroma .c1, .chroma .cs, .chroma .cp, .chroma .cpf { color: var(--code-comment); font-style: italic; }
.chroma .m, .chroma .mb, .chroma .mf, .chroma .mh, .chroma .mi, .chroma .il, .chroma .mo { color: var(--code-number); }
.chroma .nf, .chroma .fm { color: var(--code-function); }
.chroma .nc, .chroma .nn, .chroma .nt, .chroma .nb, .chroma .bp { color: var(--code-type); }
.chroma .o, .chroma .ow, .chroma .p { color: var(--code-operator); }
.chroma .na, .chroma .nv, .chroma .vc, .chroma .vg, .chroma .vi { color: var(--code-attr); }
.chroma .err, .chroma .gd { color: var(--code-error); }

/* TOC */
.toc { padding: 22px; }
.toc-title {
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Big Shoulders Display', sans-serif;
  font-size: 20px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}
.toc-list { list-style: none; margin: 0; padding: 0; }
.toc-item-3 { padding-left: 12px; }
.toc-link {
  display: block;
  padding: 6px 0 6px 12px;
  font-size: 13.5px;
  color: var(--ink-muted);
  border-left: 2px solid var(--border);
  transition: color 150ms ease, border-color 150ms ease;
}
.toc-link:hover, .toc-link.is-active {
  color: var(--accent);
  border-left-color: var(--tommy-teal);
  font-weight: 600;
}
.toc-mobile { display: none; padding: 14px 18px; margin-bottom: 22px; }
.toc-mobile-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  cursor: pointer;
}
.toc-mobile-count {
  margin-left: auto;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
}
@media (max-width: 960px) {
  .detail-layout.has-toc { grid-template-columns: 1fr; }
  .detail-side { display: none; }
  .toc-mobile { display: block; }
}

/* Comments */
.comments-section { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--border); }
.comments-head h2 {
  margin: 0 0 6px;
  font-family: 'Big Shoulders Display', sans-serif;
  font-size: 32px;
  text-transform: uppercase;
  color: var(--ink);
}
.section-desc { margin: 0; font-size: 14.5px; color: var(--ink-secondary); }
.comments-state { margin: 18px 0; font-size: 14.5px; color: var(--ink-secondary); }
.comments-list { list-style: none; margin: 20px 0 28px; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.comment-card { padding: 20px; }
.comment-card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.comment-avatar {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.comment-meta { display: flex; flex-direction: column; }
.comment-author { font-weight: 700; font-size: 14.5px; color: var(--ink); }
.comment-date { font-family: 'Space Mono', monospace; font-size: 11.5px; color: var(--ink-muted); }
.comment-text { margin: 0; font-size: 14.5px; color: var(--ink-secondary); white-space: pre-wrap; }
.comment-form { padding: 24px; display: flex; flex-direction: column; gap: 14px; margin-top: 20px; }
.comment-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.comment-field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink-secondary); }
.comment-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.comment-form-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.comment-form-note { margin: 0; font-size: 12.5px; color: var(--ink-muted); }
@media (max-width: 640px) { .comment-form-grid { grid-template-columns: 1fr; } }

/* --- Books Page (3D Hardcover Tilt) --- */
.books-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 24px;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--border);
}
.books-stats { display: flex; gap: 14px; margin: 0; }
.books-stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px 20px;
  text-align: center;
  min-width: 96px;
}
.books-stat dt { font-size: 11.5px; color: var(--ink-muted); text-transform: uppercase; letter-spacing: 0.08em; }
.books-stat dd { margin: 2px 0 0; font-family: 'Big Shoulders Display', sans-serif; font-weight: 900; font-size: 32px; line-height: 1; color: var(--accent); }

.books-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
}
.books-search { position: relative; min-width: 240px; flex: 0 1 320px; }
.books-search svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; color: var(--ink-muted); pointer-events: none; }
.books-search input[type="search"] { padding-left: 40px; border-radius: 999px; background: var(--surface); }
.books-tags-filter { display: flex; flex-wrap: wrap; gap: 8px; }
.books-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--ink-secondary);
}
.books-filter-chip:hover { border-color: var(--tommy-teal); color: var(--ink); }
.books-filter-chip.is-active { background: #0b2433; border-color: #0b2433; color: #faf6ee; }
[data-theme="dark"] .books-filter-chip.is-active { background: #30d0c8; border-color: #30d0c8; color: #071822; }
.books-tag-count { font-family: 'Space Mono', monospace; font-size: 11px; opacity: 0.72; }

.search-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  margin-bottom: 24px;
  font-size: 14px;
}
.search-clear { font-weight: 700; color: var(--accent); text-decoration: underline; }

.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 32px;
}
.book-card { display: flex; flex-direction: column; gap: 14px; }
.book-cover-link { display: block; perspective: 1000px; }
.book-cover {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  border-radius: 6px 16px 16px 6px;
  overflow: hidden;
  background: #0b2433;
  transform: rotateX(var(--book-rx, 0deg)) rotateY(var(--book-ry, -5deg));
  box-shadow: var(--shadow-x, -8px) var(--shadow-y, 14px) 28px rgba(11, 36, 51, 0.24);
  transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 240ms ease;
}
.book-cover-img { width: 100%; height: 100%; object-fit: cover; }
.book-cover-shine {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 220ms ease;
  background: radial-gradient(circle at var(--shine-x, 50%) var(--shine-y, 50%), rgba(244, 175, 194, 0.42), rgba(103, 230, 222, 0.22) 45%, transparent 70%);
}
.book-cover-link:hover .book-cover-shine { opacity: 1; }
.book-cover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(7, 24, 34, 0.78) 100%);
  display: flex;
  align-items: flex-end;
  padding: 14px;
  opacity: 0;
  transition: opacity 200ms ease;
}
.book-cover-link:hover .book-cover-overlay { opacity: 1; }
.book-open-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #30d0c8;
  color: #071822;
  font-size: 12px;
  font-weight: 700;
}
.book-title { margin: 0 0 6px; font-size: 16px; font-weight: 700; line-height: 1.35; color: var(--ink); }
.book-tags { display: flex; flex-wrap: wrap; gap: 6px; }

/* --- Experience, Skills & About Pages --- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.skill-card { padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.skill-card-head { display: flex; align-items: center; gap: 12px; }
.skill-icon-badge {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.skill-card-head h3 { margin: 0; font-family: 'Big Shoulders Display', sans-serif; font-size: 24px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink); }
.skill-desc { margin: 0; font-size: 14.5px; color: var(--ink-secondary); }

.resort-timeline {
  position: relative;
  padding-left: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.resort-timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 10px;
  bottom: 10px;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, #2bc4bd, #0b2433, #e86b8f);
}
.timeline-card { position: relative; padding: 28px 32px; }
.timeline-dot {
  position: absolute;
  left: -32px;
  top: 32px;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: var(--tommy-teal);
  border: 3px solid var(--surface);
  box-shadow: 0 0 0 2px var(--tommy-teal);
}
.timeline-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.timeline-role { margin: 0; font-size: 21px; font-weight: 700; color: var(--ink); }
.timeline-company { margin: 2px 0 0; font-size: 14px; font-weight: 600; color: var(--accent); }
.timeline-period {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--coral-soft);
  color: var(--coral-ink);
}
.timeline-summary { margin: 0; font-size: 15px; line-height: 1.7; color: var(--ink-secondary); }

.about-profile-card {
  padding: clamp(28px, 5vw, 52px);
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}
.about-avatar-img,
.about-avatar-fallback {
  width: 220px;
  height: 220px;
  border-radius: 26px;
  object-fit: cover;
  border: 3px solid var(--tommy-teal);
  box-shadow: var(--shadow-card);
}
.about-avatar-fallback {
  background: linear-gradient(135deg, #0b2433, #159a98);
  color: #faf6ee;
  font-family: 'Big Shoulders Display', sans-serif;
  font-weight: 900;
  font-size: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-copy-col { display: flex; flex-direction: column; gap: 14px; }
.about-headline { margin: 0; font-family: 'Playfair Display', Georgia, serif; font-style: italic; font-size: 20px; color: var(--coral-ink); }
.about-bio { margin: 0; font-size: 15.5px; line-height: 1.75; color: var(--ink-secondary); }
.about-meta-row, .about-actions-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 6px; }
@media (max-width: 767px) {
  .about-profile-card { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .about-meta-row, .about-actions-row { justify-content: center; }
}

/* --- 404 Page --- */
.not-found {
  max-width: 560px;
  margin: 40px auto;
  padding: 52px 32px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.not-found-code {
  margin: 0;
  font-family: 'Big Shoulders Display', sans-serif;
  font-weight: 900;
  font-size: 96px;
  line-height: 0.9;
  color: var(--tommy-coral);
}
.not-found h1 { margin: 0; font-size: 28px; color: var(--ink); }

/* --- Toast & Scroll Reveal --- */
.site-toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 220;
  background: #0b2433;
  color: #faf6ee;
  border: 1px solid rgba(43, 196, 189, 0.45);
  border-left: 4px solid #2bc4bd;
  border-radius: 14px;
  padding: 13px 18px;
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: 0 20px 50px rgba(7, 24, 34, 0.38);
  transform: translateY(18px);
  opacity: 0;
  pointer-events: none;
  transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1), opacity 220ms ease;
}
.site-toast.is-visible { transform: translateY(0); opacity: 1; }

.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 620ms cubic-bezier(0.16, 1, 0.3, 1), transform 660ms cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--delay, 0ms);
}
.js .reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
