/*
Theme Name: SFTB
Theme URI: https://sellingfromthebeach.com
Author: Maxwell Sigurdson-Scott
Author URI: https://sellingfromthebeach.com
Description: Selling From the Beach - custom theme. A tiny digital world for sellers, nomads, and the long-cut path.
Version: 0.1.0
Requires at least: 6.0
Requires PHP: 7.4
License: All rights reserved
License URI: https://sellingfromthebeach.com
Text Domain: sftb
*/

:root {
    /* Ocean */
    --ocean-deep: #13476C;
    --ocean-mid: #2A7AB0;
    --ocean-soft: #6BA8CC;
    --ocean-foam: #C9E2EE;
    --ocean-mist: #EEF6FA;
    /* Sand + coast */
    --sand-warm: #E8D4A8;
    --sand-cream: #F5E9D0;
    --shell: #FDF7EA;
    --shell-deep: #F7EED9;
    /* Island greens */
    --green-deep: #2F6B4B;
    --green-mid: #6DA37F;
    --green-soft: #AFD0B5;
    --green-mist: #DCEADC;
    /* Warm accents */
    --coral: #E38763;
    --sunset: #F2A45C;
    --terracotta: #C7643F;
    --clay: #B8553A;
    /* Text */
    --ink: #1E2830;
    --charcoal: #3A3F47;
    --stone: #6B6A62;
    --pebble: #A59E8A;
    --parchment: #FDF7EA;
    /* System */
    --shadow-sm: 0 2px 8px rgba(30, 40, 48, 0.06);
    --shadow-md: 0 6px 20px rgba(30, 40, 48, 0.08);
    --shadow-lg: 0 18px 48px rgba(30, 40, 48, 0.12);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 28px;
    --radius-xl: 42px;
    /* Fonts */
    --font-display: "Fraunces", Georgia, "Times New Roman", serif;
    --font-body: "Inter", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    --font-hand: "Caveat", cursive;
  }

  * { box-sizing: border-box; }

  html { scroll-behavior: smooth; }

  body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.65;
    color: var(--ink);
    background: var(--shell);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }

  h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 500;
    letter-spacing: -0.01em;
    line-height: 1.15;
    margin: 0 0 0.5em;
  }

  h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); font-weight: 400; font-variation-settings: "opsz" 144; }
  h2 { font-size: clamp(2rem, 3.8vw, 3.2rem); font-variation-settings: "opsz" 72; }
  h3 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); font-variation-settings: "opsz" 36; }
  h4 { font-size: 1.15rem; letter-spacing: 0; font-weight: 600; }

  p { margin: 0 0 1em; color: var(--charcoal); }
  a { color: var(--ocean-deep); text-decoration: none; border-bottom: 1px solid transparent; transition: border-color .2s ease; }
  a:hover { border-color: var(--ocean-deep); }

  .container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 56px);
  }

  .container-narrow {
    max-width: 820px;
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 56px);
  }

  .eyebrow {
    font-family: var(--font-hand);
    font-size: 1.7rem;
    color: var(--terracotta);
    letter-spacing: 0.01em;
    margin-bottom: 0.3em;
    display: inline-block;
    transform: rotate(-1.5deg);
  }

  .btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 26px;
    background: var(--ocean-deep);
    color: var(--shell);
    border: none;
    border-radius: 999px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
    text-decoration: none;
  }
  .btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); background: var(--ocean-mid); border-color: transparent; }
  .btn-secondary { background: transparent; color: var(--ocean-deep); border: 1.5px solid var(--ocean-deep); }
  .btn-secondary:hover { background: var(--ocean-deep); color: var(--shell); }
  .btn-coral { background: var(--coral); }
  .btn-coral:hover { background: var(--terracotta); }
  .btn-arrow::after { content: "→"; transition: transform .2s ease; }
  .btn-arrow:hover::after { transform: translateX(4px); }

  /* ========== NAV ========== */
  nav.site-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(253, 247, 234, 0.88);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid rgba(30, 40, 48, 0.06);
  }
  .nav-inner {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: clamp(40px, 6vw, 96px);
    padding: 16px 0;
    max-width: 1240px;
    margin: 0 auto;
    padding-left: clamp(20px, 4vw, 56px);
    padding-right: clamp(20px, 4vw, 56px);
  }
  .brand {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 500;
    font-style: italic;
    color: var(--ocean-deep);
    border: none;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .brand-mark {
    width: 28px; height: 28px;
    display: inline-block;
  }
  .nav-links {
    display: flex;
    gap: 20px;
    font-size: 0.92rem;
    align-items: center;
    flex-wrap: nowrap;
  }
  .nav-links a {
    color: var(--charcoal);
    font-weight: 500;
    border: none;
    white-space: nowrap;
  }
  .nav-links a:hover { color: var(--ocean-deep); }
  /* hover dropdowns */
  .nav-item { position: relative; display: inline-block; }
  .nav-item > a { display: inline-block; padding: 6px 0; }
  .nav-item.nav-item-plain { /* no dropdown variant */ }
  .nav-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%) translateY(-6px);
    min-width: 280px;
    max-width: 340px;
    background: var(--shell);
    border-radius: 10px;
    box-shadow: 0 16px 40px rgba(30,40,48,0.18);
    border: 1px solid rgba(30,40,48,0.06);
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
    z-index: 9999;
  }
  .nav-dropdown::before {
    content: "";
    position: absolute;
    top: -8px;
    left: 0;
    right: 0;
    height: 16px;
  }
  .nav-item:hover .nav-dropdown,
  .nav-item:focus-within .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
  }
  .nav-dropdown a {
    display: block;
    padding: 9px 22px;
    font-size: 0.92rem;
    color: var(--charcoal);
    font-weight: 400;
    line-height: 1.35;
    white-space: normal;
    border: none !important;
    transition: background .15s ease, color .15s ease;
  }
  .nav-dropdown a:hover {
    background: var(--shell-deep);
    color: var(--terracotta);
  }
  /* ========== HAMBURGER + MOBILE DRAWER ========== */
  .nav-hamburger {
    display: none;
    background: none;
    border: none;
    width: 38px;
    height: 38px;
    padding: 0;
    margin-left: auto;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    z-index: 110;
  }
  .nav-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform .2s, opacity .2s;
  }
  body.is-nav-open .nav-hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.is-nav-open .nav-hamburger span:nth-child(2) { opacity: 0; }
  body.is-nav-open .nav-hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  @media (max-width: 760px) {
    .nav-hamburger { display: flex; }
    .nav-links {
      display: none;
      position: fixed;
      top: 64px;
      left: 0;
      right: 0;
      bottom: 0;
      background: var(--shell);
      padding: 24px 28px 60px;
      flex-direction: column;
      gap: 6px;
      align-items: stretch;
      overflow-y: auto;
      z-index: 105;
      -webkit-overflow-scrolling: touch;
    }
    body.is-nav-open .nav-links { display: flex; }
    .nav-item, .nav-item-plain { width: 100%; }
    .nav-item > a, .nav-item-plain > a {
      display: block;
      font-family: var(--font-display);
      font-size: 1.15rem;
      padding: 14px 0;
      border-bottom: 1px solid rgba(30,40,48,0.08);
    }
    .nav-item-mega > a::after { display: none; }
    .nav-mega {
      position: static;
      opacity: 1;
      visibility: visible;
      pointer-events: auto;
      transform: none;
      transition: none;
      padding: 12px 0 4px;
      background: transparent;
      border: none;
      box-shadow: none;
      width: 100%;
      max-width: none;
    }
    .nav-mega-grid {
      grid-template-columns: 1fr;
      gap: 20px;
      max-width: none;
    }
    .nav-mega-col h5 { margin-bottom: 8px; }
    .nav-mega-col li a { padding: 6px 0; font-size: 0.95rem; }
  }

  /* ========== ORIENTATION BAND ========== */
  .orientation {
    background: var(--shell);
    padding: clamp(60px, 10vw, 110px) 0 clamp(24px, 4vw, 40px);
    text-align: center;
    position: relative;
    overflow: hidden;
  }
  .orientation::before {
    content: "";
    position: absolute;
    top: 10%;
    left: -6%;
    width: 160px; height: 160px;
    background: radial-gradient(circle, var(--sand-warm) 0%, transparent 60%);
    opacity: 0.45;
    border-radius: 50%;
  }
  .orientation::after {
    content: "";
    position: absolute;
    top: 30%;
    right: -4%;
    width: 220px; height: 220px;
    background: radial-gradient(circle, var(--ocean-foam) 0%, transparent 65%);
    opacity: 0.5;
    border-radius: 50%;
  }
  .orientation-inner {
    position: relative;
    z-index: 2;
  }
  .orientation h1 {
    margin-top: 0.4em;
    color: var(--ink);
  }
  .orientation h1 em {
    font-style: italic;
    color: var(--ocean-deep);
    font-weight: 400;
  }
  .manifesto {
    max-width: 640px;
    margin: 1.5em auto 0;
    font-size: 1.12rem;
    color: var(--stone);
    line-height: 1.7;
  }
  .scroll-cue {
    margin-top: 50px;
    font-family: var(--font-hand);
    font-size: 1.3rem;
    color: var(--terracotta);
    transform: rotate(-2deg);
    display: inline-block;
  }
  .scroll-cue::after {
    content: "↓";
    display: block;
    font-size: 1.5rem;
    margin-top: 4px;
    animation: bob 2.2s ease-in-out infinite;
  }
  @keyframes bob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
  }

  /* ========== ISLAND MAP HERO ========== */
  /* Section keeps the original cream/light-blue gradient. The base-island.png
     itself has feathered alpha (computed via feather-island.py), so its ocean
     edges fade naturally to transparent and the cream bg shows through. The
     island floats on the page — no rectangle, no ocean section. */
  .island-map-hero {
    background: linear-gradient(180deg, var(--shell) 0%, var(--ocean-mist) 55%, var(--ocean-foam) 100%);
    padding: 30px 0 clamp(60px, 8vw, 100px);
    position: relative;
    overflow: hidden;
  }
  .map-wrap {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    aspect-ratio: 1448 / 1086;
    background: transparent;
    border-radius: 28px;
    overflow: visible;
  }
  .map-wrap .map-base {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 28px;
    user-select: none;
    -webkit-user-drag: none;
    position: relative;
    z-index: 0;
    box-shadow:
      0 24px 60px rgba(30, 40, 48, 0.18),
      0 6px 18px rgba(30, 40, 48, 0.10);
  }

  /* Ambient breathing layer — PNG components positioned + animated via CSS */
  .map-ambient {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
    border-radius: 0;
  }
  .ambient {
    position: absolute;
    will-change: transform, opacity;
  }
  .ambient img {
    width: 100%;
    height: auto;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
  }

  /* Drifting clouds: soft ambient sky fill */
  .ambient-cloud { width: 22%; top: 4%; mix-blend-mode: screen; }
  .ambient-cloud img { mix-blend-mode: normal; }
  .cloud-a {
    width: 24%;
    top: 4%;
    animation: cloud-drift 95s linear infinite;
    opacity: 0.85;
  }
  .cloud-b {
    width: 18%;
    top: 11%;
    animation: cloud-drift 130s linear infinite;
    animation-delay: -52s;
    opacity: 0.7;
  }
  @keyframes cloud-drift {
    0%   { transform: translateX(-110%); }
    100% { transform: translateX(560%); }
  }

  /* Tiny distant ocean sparkles — like sun glints on far-away water.
     Each is a 5px white dot with soft glow, scattered in clear ocean,
     twinkling at staggered times so they read as natural shimmer. */
  .ocean-sparkle {
    position: absolute;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.4) 35%, transparent 70%);
    pointer-events: none;
    opacity: 0;
    z-index: 2;
    animation: ocean-sparkle 3.6s ease-in-out infinite;
    animation-delay: var(--d, 0s);
  }
  @keyframes ocean-sparkle {
    0%, 100% { opacity: 0;    transform: scale(0.4); }
    45%, 55% { opacity: 0.85; transform: scale(1); }
  }

  /* (palm-tree overlays removed) */

  /* Bird-flap sprite shared base — 3 frames cycled via background-position */
  .ambient-birds-flap {
    position: absolute;
    aspect-ratio: 1 / 1;
    background-image: url('assets/world/birds-flap.png?v=20260527190000');
    background-repeat: no-repeat;
    background-size: 300% 100%;
    background-position: 0% 0%;
  }
  @keyframes bird-flap {
    0%, 32%   { background-position:   0% 0%; }
    33%, 65%  { background-position:  50% 0%; }
    66%, 100% { background-position: 100% 0%; }
  }

  /* The big one — slow wide arc with real Y weave */
  .bird-big {
    width: 5%;
    top: 18%;
    left: -10%;
    opacity: 0.85;
    animation:
      bird-big-path 48s linear infinite,
      bird-flap     0.45s steps(1, end) infinite;
  }
  @keyframes bird-big-path {
    0%   { transform: translate(0, 0); }
    15%  { transform: translate(18vw, -36px); }
    32%  { transform: translate(36vw, 22px); }
    50%  { transform: translate(58vw, -28px); }
    68%  { transform: translate(78vw, 18px); }
    85%  { transform: translate(98vw, -32px); }
    100% { transform: translate(116vw, 4px); }
  }

  /* Smaller, faster, opposite direction, dippy path */
  .bird-small-1 {
    width: 3.2%;
    top: 26%;
    left: 108%;
    opacity: 0.75;
    animation:
      bird-small-1-path 36s linear infinite,
      bird-flap          0.38s steps(1, end) infinite;
    animation-delay: -8s, 0s;
  }
  @keyframes bird-small-1-path {
    0%   { transform: translate(0, 0)         scaleX(-1); }
    18%  { transform: translate(-22vw, 28px)   scaleX(-1); }
    36%  { transform: translate(-44vw, -18px)  scaleX(-1); }
    55%  { transform: translate(-64vw, 32px)   scaleX(-1); }
    72%  { transform: translate(-86vw, -22px)  scaleX(-1); }
    100% { transform: translate(-118vw, 8px)   scaleX(-1); }
  }

  /* Tiny one — high in the sky, slow, gentle wave */
  .bird-small-2 {
    width: 2.6%;
    top: 11%;
    left: -8%;
    opacity: 0.7;
    animation:
      bird-small-2-path 64s linear infinite,
      bird-flap          0.5s steps(1, end) infinite;
    animation-delay: -22s, 0s;
  }
  @keyframes bird-small-2-path {
    0%   { transform: translate(0, 0); }
    20%  { transform: translate(22vw, -22px); }
    40%  { transform: translate(46vw, 18px); }
    60%  { transform: translate(70vw, -16px); }
    80%  { transform: translate(94vw, 12px); }
    100% { transform: translate(118vw, -4px); }
  }

  /* Boat drifting in OPEN WATER east of Amazon (away from the rocky shore) */
  .ambient-boat {
    width: 5.5%;
    left: 92%;
    top: 60%;
    animation: boat-drift 64s ease-in-out infinite;
    transform-origin: center;
  }
  @keyframes boat-drift {
    0%, 100% { transform: translate(0, 0)         rotate(2deg); }
    25%      { transform: translate(-18px, 6px)   rotate(0.5deg); }
    50%      { transform: translate(-46px, 22px)  rotate(-2deg); }
    75%      { transform: translate(-22px, 10px)  rotate(0.5deg); }
  }

  /* Ogopogo: smooth surface + dive every ~32s. Long fade-in/out, slight body tilt as it dives. */
  .ambient-ogopogo {
    width: 11%;
    left: 1%;
    top: 80%;
    opacity: 0;
    animation: ogopogo-surface 32s ease-in-out infinite;
    transform-origin: bottom center;
  }
  @keyframes ogopogo-surface {
    0%, 70%, 100% { opacity: 0;    transform: translateY(50px) scale(0.85) rotate(0deg); }
    74%           { opacity: 0.18; transform: translateY(38px) scale(0.88) rotate(0deg); }
    78%           { opacity: 0.55; transform: translateY(22px) scale(0.93) rotate(-1deg); }
    82%           { opacity: 0.92; transform: translateY(4px)  scale(1)    rotate(0deg); }
    85%, 89%      { opacity: 0.95; transform: translateY(-2px) scale(1.01) translateX(5px); }
    91%           { opacity: 0.85; transform: translateY(8px)  scale(0.99) rotate(8deg); }
    93%           { opacity: 0.55; transform: translateY(24px) scale(0.95) rotate(14deg); }
    96%           { opacity: 0.18; transform: translateY(40px) scale(0.88) rotate(20deg); }
  }

  /* Jumping fish: smoother arc with gradient fade at start/end */
  .ambient-fish {
    width: 4%;
    left: 49%;
    top: 78%;
    opacity: 0;
    animation: fish-leap 16s linear infinite;
    transform-origin: center;
  }
  @keyframes fish-leap {
    0%, 90%, 100% { opacity: 0; transform: translate(0, 18px) rotate(0deg) scale(0.9); }
    91%           { opacity: 0.4; transform: translate(2px, 14px) rotate(-18deg) scale(0.95); }
    92.5%         { opacity: 1;   transform: translate(6px, 4px)  rotate(-22deg) scale(1); }
    94%           { opacity: 1;   transform: translate(12px, -8px) rotate(-10deg) scale(1.02); }
    95.5%         { opacity: 1;   transform: translate(18px, -14px) rotate(0deg) scale(1.04); }
    97%           { opacity: 1;   transform: translate(24px, -8px) rotate(10deg) scale(1.02); }
    98.2%         { opacity: 0.9; transform: translate(30px, 6px)  rotate(22deg) scale(1); }
    99%           { opacity: 0.4; transform: translate(32px, 14px) rotate(35deg) scale(0.95); }
    99.5%         { opacity: 0;   transform: translate(33px, 18px) rotate(45deg) scale(0.9); }
  }

  /* Campfire smoke rising near the Mindset region */
  .ambient-smoke {
    width: 3%;
    left: 12%;
    top: 22%;
    opacity: 0;
    mix-blend-mode: screen;
    animation: smoke-rise 6s ease-out infinite;
    transform-origin: bottom center;
  }
  .ambient-smoke img { mix-blend-mode: normal; }
  @keyframes smoke-rise {
    0%   { opacity: 0;    transform: translateY(20px) scale(0.6); }
    25%  { opacity: 0.55; transform: translateY(0)    scale(0.85); }
    65%  { opacity: 0.4;  transform: translateY(-30px) scale(1.0); }
    100% { opacity: 0;    transform: translateY(-70px) scale(1.25); }
  }

  /* Wave foam at the shoreline (two spots) */
  .ambient-foam {
    width: 16%;
    opacity: 0.7;
  }
  .foam-a {
    left: 33%;
    top: 84%;
    animation: foam-wash 3.6s ease-in-out infinite;
  }
  .foam-b {
    left: 60%;
    top: 56%;
    width: 12%;
    animation: foam-wash 4.2s ease-in-out infinite;
    animation-delay: -1.8s;
  }
  @keyframes foam-wash {
    0%, 100% { opacity: 0.25; transform: translateX(0)    scaleY(0.85); }
    50%      { opacity: 0.85; transform: translateX(6px)  scaleY(1); }
  }

  /* Sea sparkle: ambient ocean shimmer */
  .ambient-sparkle {
    width: 12%;
    left: 4%;
    top: 60%;
    opacity: 0.7;
    animation: sparkle-twinkle 4.5s ease-in-out infinite;
  }
  @keyframes sparkle-twinkle {
    0%, 100% { opacity: 0.2; transform: scale(0.9); }
    50%      { opacity: 0.85; transform: scale(1.05); }
  }

  /* Single click target covering the whole map — no hover effects, no region anchors */
  .map-link {
    position: absolute;
    inset: 0;
    z-index: 7;
    cursor: pointer;
    text-decoration: none;
    border: none;
    background: transparent;
    display: block;
  }
  .map-link:focus-visible {
    outline: 2px dashed var(--terracotta);
    outline-offset: 4px;
    border-radius: 16px;
  }

  /* Reduced motion: pause animations, leave creatures visible at rest */
  @media (prefers-reduced-motion: reduce) {
    .map-ambient,
    .map-ambient * {
      animation: none !important;
    }
    .ambient-ogopogo, .ambient-fish, .ambient-smoke { opacity: 0.5; }
  }

  .map-caption {
    text-align: center;
    margin-top: 40px;
    font-family: var(--font-hand);
    font-size: 1.4rem;
    color: var(--terracotta);
  }

  /* ========== ZOOM-IN-PLACE: when a region is selected ========== */
  .map-wrap {
    --zoom-x: 50%;
    --zoom-y: 50%;
  }
  .map-base {
    transition: transform .9s cubic-bezier(.7, .05, .25, 1),
                filter .6s ease;
    will-change: transform;
  }
  .map-ambient {
    transition: opacity .55s ease;
  }
  .map-wrap.is-zoomed {
    overflow: hidden;
  }
  .map-wrap.is-zoomed .map-base {
    transform-origin: var(--zoom-x) var(--zoom-y);
    transform: scale(2.15);
    filter: saturate(1.05);
  }
  .map-wrap.is-zoomed .map-ambient {
    opacity: 0.32;
  }
  .map-wrap.is-zoomed .hotspot {
    opacity: 0;
    pointer-events: none;
    transition: opacity .35s ease;
  }
  .map-wrap.is-zoomed .hotspot .region-note {
    opacity: 0;
  }

  /* Soft parchment scrim that slides in with the panel */
  .map-wrap.is-zoomed::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
      rgba(253,247,234,0) 0%,
      rgba(253,247,234,0) 45%,
      rgba(253,247,234,0.55) 60%,
      rgba(253,247,234,0.92) 78%,
      rgba(253,247,234,1) 100%);
    pointer-events: none;
    z-index: 5;
    border-radius: 28px;
    animation: scrim-fade-in .7s ease forwards;
    opacity: 0;
  }
  @keyframes scrim-fade-in {
    to { opacity: 1; }
  }

  /* Region preview panels */
  .region-panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 44%;
    background: rgba(253, 247, 234, 0.985);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 7;
    padding: clamp(22px, 3.6vw, 44px) clamp(20px, 3vw, 38px);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transform: translateX(115%);
    opacity: 0;
    pointer-events: none;
    transition: transform .8s cubic-bezier(.7, .05, .25, 1) .15s,
                opacity .55s ease .15s;
    border-radius: 0 28px 28px 0;
    border-left: 1px solid rgba(30, 40, 48, 0.06);
    box-shadow: -18px 0 44px rgba(30, 40, 48, 0.10);
  }
  .region-panel.is-active {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
  }
  .panel-eyebrow {
    font-family: var(--font-hand);
    font-size: 1.4rem;
    color: var(--region-accent, var(--terracotta));
    display: inline-block;
    transform: rotate(-1.4deg);
    margin-bottom: 4px;
    letter-spacing: 0.005em;
  }
  .region-panel h3 {
    font-family: var(--font-display);
    font-size: clamp(1.7rem, 3vw, 2.3rem);
    margin: 0 0 14px;
    color: var(--ink);
    letter-spacing: -0.01em;
    line-height: 1.1;
  }
  .panel-tease {
    font-size: 1rem;
    color: var(--charcoal);
    line-height: 1.55;
    margin: 0 0 22px;
    max-width: 38ch;
  }
  .panel-postcards {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0 0 28px;
  }
  .panel-postcard {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 12px 14px;
    background: white;
    border-radius: 10px;
    border-bottom: none;
    box-shadow: 0 1px 3px rgba(30, 40, 48, 0.05);
    text-decoration: none;
    color: var(--ink);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
    border-left: 3px solid var(--region-accent, var(--terracotta));
  }
  .panel-postcard:hover {
    transform: translateX(2px) translateY(-2px);
    box-shadow: 0 8px 18px rgba(30, 40, 48, 0.10);
  }
  .pp-label {
    font-family: var(--font-hand);
    font-size: 0.95rem;
    color: var(--region-accent, var(--terracotta));
    flex-shrink: 0;
    min-width: 50px;
    letter-spacing: 0.02em;
  }
  .panel-postcard strong {
    font-family: var(--font-display);
    font-size: 0.98rem;
    font-weight: 500;
    color: var(--ink);
    line-height: 1.3;
  }
  .panel-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    background: var(--region-accent, var(--terracotta));
    color: var(--shell);
    border-radius: 999px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    align-self: flex-start;
    border-bottom: none;
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
  }
  .panel-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(30, 40, 48, 0.18);
    filter: brightness(1.05);
  }

  /* Compass-rose back button */
  .map-back {
    position: absolute;
    top: 18px;
    left: 18px;
    z-index: 9;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px 8px 8px;
    background: rgba(253, 247, 234, 0.96);
    border: 1px solid rgba(30, 40, 48, 0.10);
    border-radius: 999px;
    cursor: pointer;
    font-family: var(--font-hand);
    font-size: 1.15rem;
    color: var(--ocean-deep);
    opacity: 0;
    pointer-events: none;
    transform: translate(-6px, -6px);
    transition: opacity .4s ease .35s, transform .45s cubic-bezier(.34, 1.56, .64, 1) .35s;
    box-shadow: 0 6px 16px rgba(30, 40, 48, 0.12);
  }
  .map-back:hover {
    background: var(--shell);
    color: var(--terracotta);
  }
  .map-wrap.is-zoomed .map-back {
    opacity: 1;
    pointer-events: auto;
    transform: translate(0, 0);
  }
  .compass-rose {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    color: var(--ocean-deep);
    animation: compass-spin 36s linear infinite;
    transform-origin: center;
  }
  .map-back:hover .compass-rose {
    color: var(--terracotta);
  }
  @keyframes compass-spin {
    to { transform: rotate(360deg); }
  }

  /* Reduced-motion: kill the spinning compass */
  @media (prefers-reduced-motion: reduce) {
    .compass-rose { animation: none !important; }
    .map-base { transition-duration: .25s; }
    .region-panel { transition-duration: .25s; transition-delay: 0s; }
  }

  .map-island-list {
    max-width: 900px;
    margin: 32px auto 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 14px;
    list-style: none;
    padding: 0;
  }
  .map-island-list a {
    display: block;
    text-align: center;
    padding: 12px 10px;
    background: rgba(253, 247, 234, 0.85);
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ocean-deep);
    border: 1px solid transparent;
    transition: transform .2s ease, background .2s ease;
  }
  .map-island-list a:hover {
    transform: translateY(-2px);
    background: var(--shell);
    border-color: var(--ocean-soft);
  }

  /* ========== SECTION DIVIDER (wave) ========== */
  .wave-divider {
    display: block;
    width: 100%;
    height: 60px;
    color: var(--shell);
  }

  /* ========== COURSES ========== */
  section.courses {
    padding: clamp(70px, 9vw, 120px) 0;
    background: var(--shell-deep);
    position: relative;
  }
  .section-head {
    text-align: center;
    margin-bottom: 50px;
  }
  .section-head p {
    max-width: 580px;
    margin: 0 auto;
    color: var(--stone);
    font-size: 1.05rem;
  }
  .courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 22px;
    margin-top: 40px;
  }
  .course-card {
    background: var(--shell);
    padding: 28px 26px 24px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(30, 40, 48, 0.05);
    transition: transform .25s ease, box-shadow .25s ease;
    position: relative;
    overflow: hidden;
  }
  .course-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 4px; height: 100%;
    background: var(--accent, var(--ocean-mid));
  }
  .course-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
  .course-card .course-icon {
    width: 40px; height: 40px;
    margin-bottom: 12px;
    color: var(--accent, var(--ocean-deep));
  }
  .course-card h4 { margin-bottom: 6px; color: var(--ink); }
  .course-card p { font-size: 0.93rem; color: var(--stone); margin-bottom: 14px; }
  .course-card .course-meta {
    font-family: var(--font-hand);
    font-size: 1.1rem;
    color: var(--terracotta);
  }

  /* ========== BOOKS ========== */
  section.books {
    padding: clamp(70px, 9vw, 120px) 0;
    background:
      radial-gradient(ellipse at 20% 30%, var(--green-mist) 0%, transparent 60%),
      var(--shell);
  }
  .books-layout {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
  }
  @media (max-width: 820px) {
    .books-layout { grid-template-columns: 1fr; gap: 30px; }
    .book-cover { margin: 0 auto; }
  }
  .book-cover {
    position: relative;
    aspect-ratio: 2 / 3;
    background:
      linear-gradient(135deg, var(--ocean-deep) 0%, var(--ocean-mid) 100%);
    border-radius: 4px;
    box-shadow:
      0 1px 0 rgba(255,255,255,0.2) inset,
      var(--shadow-lg),
      -8px 0 0 -4px rgba(0,0,0,0.08);
    padding: 40px 32px;
    color: var(--shell);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transform: rotate(-2deg);
    transition: transform .4s ease;
  }
  .book-cover:hover { transform: rotate(0) translateY(-4px); }
  .book-cover::before {
    content: "";
    position: absolute;
    left: 12px; top: 0; bottom: 0;
    width: 2px;
    background: rgba(0,0,0,0.18);
  }
  .book-title {
    font-family: var(--font-display);
    font-size: 1.55rem;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.01em;
  }
  .book-title em { font-family: var(--font-hand); font-style: italic; font-size: 2.2rem; color: var(--sunset); display: block; line-height: 1; }
  .book-author {
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.85;
  }
  .book-copy h2 { color: var(--ink); }
  .book-copy blockquote {
    margin: 24px 0;
    padding: 16px 22px;
    border-left: 3px solid var(--coral);
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.08rem;
    color: var(--charcoal);
    background: var(--shell-deep);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  }

  /* ========== GATES OF ROME ========== */
  section.newsletter-gate {
    padding: clamp(80px, 10vw, 140px) 0;
    background:
      linear-gradient(135deg, var(--ocean-deep) 0%, var(--ocean-mid) 100%);
    color: var(--shell);
    position: relative;
    overflow: hidden;
  }
  .newsletter-gate::before,
  .newsletter-gate::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
  }
  .newsletter-gate::before {
    top: -80px; left: -80px;
    width: 300px; height: 300px;
    background: radial-gradient(circle, var(--sunset) 0%, transparent 65%);
    opacity: 0.22;
  }
  .newsletter-gate::after {
    bottom: -100px; right: -60px;
    width: 340px; height: 340px;
    background: radial-gradient(circle, var(--green-soft) 0%, transparent 65%);
    opacity: 0.18;
  }
  .gate-inner {
    position: relative;
    z-index: 2;
    max-width: 680px;
    margin: 0 auto;
    text-align: center;
  }
  .gate-inner .eyebrow { color: var(--sunset); }
  .gate-inner h2 { color: var(--shell); }
  .gate-inner h2 em { font-style: italic; color: var(--sand-warm); font-weight: 400; }
  .gate-inner p { color: rgba(253, 247, 234, 0.85); font-size: 1.1rem; max-width: 560px; margin-left: auto; margin-right: auto; }
  .gate-form {
    display: flex;
    gap: 10px;
    margin-top: 34px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
    background: rgba(253, 247, 234, 0.08);
    padding: 8px;
    border-radius: 999px;
    border: 1px solid rgba(253, 247, 234, 0.2);
  }
  .gate-form input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 12px 20px;
    color: var(--shell);
    font-family: var(--font-body);
    font-size: 1rem;
    outline: none;
  }
  .gate-form input::placeholder { color: rgba(253, 247, 234, 0.5); }
  .gate-form button {
    background: var(--sunset);
    color: var(--ink);
    border: none;
    border-radius: 999px;
    padding: 12px 24px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
  }
  .gate-form button:hover { background: var(--coral); color: var(--shell); transform: translateY(-1px); }
  .gate-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
    font-size: 0.9rem;
    color: rgba(253, 247, 234, 0.75);
    flex-wrap: wrap;
  }
  .gate-stats strong { display: block; font-family: var(--font-display); font-size: 1.6rem; color: var(--shell); font-weight: 500; }
  .gate-archive {
    margin-top: 36px;
    font-size: 0.95rem;
  }
  .gate-archive a {
    color: var(--sand-warm);
    border-bottom: 1px solid var(--sand-warm);
  }
  .gate-archive a:hover { color: var(--sunset); border-color: var(--sunset); }

  /* ========== ISLAND SECTIONS ========== */
  .island-section {
    padding: clamp(80px, 10vw, 140px) 0;
    position: relative;
    overflow: hidden;
  }
  .island-section:nth-of-type(odd) { background: var(--shell); }
  .island-section:nth-of-type(even) { background: var(--shell-deep); }

  .island-hero {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
  }
  @media (max-width: 820px) {
    .island-hero { grid-template-columns: 1fr; gap: 32px; }
  }
  .island-hero .illus {
    position: relative;
    aspect-ratio: 4 / 5;
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .island-hero h2 {
    color: var(--ink);
  }
  .island-hero h2 em { font-style: italic; color: var(--island-accent, var(--ocean-deep)); font-weight: 400; }
  .island-pill {
    display: inline-block;
    padding: 4px 12px;
    background: var(--island-accent-soft, var(--ocean-foam));
    color: var(--island-accent, var(--ocean-deep));
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 16px;
  }
  .island-hero-copy p {
    font-size: 1.1rem;
    color: var(--charcoal);
  }
  .island-hero-copy .quote {
    border-left: 3px solid var(--island-accent, var(--ocean-deep));
    padding: 8px 20px;
    margin: 20px 0;
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.1rem;
    color: var(--charcoal);
  }

  /* Sub-section titles inside islands */
  .sub-head {
    margin: 60px 0 28px;
  }
  .sub-head .label {
    display: inline-block;
    font-family: var(--font-hand);
    font-size: 1.3rem;
    color: var(--island-accent, var(--terracotta));
    transform: rotate(-1.5deg);
  }
  .sub-head h3 { color: var(--ink); margin-top: 4px; }

  /* Blog post grid */
  .posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 22px;
  }
  .post-card {
    background: var(--shell);
    border-radius: var(--radius-md);
    padding: 24px 24px 22px;
    border: 1px solid rgba(30, 40, 48, 0.06);
    transition: transform .2s ease, box-shadow .2s ease;
    display: flex;
    flex-direction: column;
  }
  .post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
  .post-card .post-kicker {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--island-accent, var(--ocean-mid));
    font-weight: 600;
    margin-bottom: 10px;
  }
  .post-card h4 { font-family: var(--font-display); font-size: 1.2rem; font-weight: 500; line-height: 1.3; color: var(--ink); margin-bottom: 10px; }
  .post-card p { font-size: 0.93rem; color: var(--stone); flex-grow: 1; }
  .post-card .read-more {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--island-accent, var(--ocean-deep));
    border: none;
    margin-top: 8px;
  }
  .post-card .read-more::after { content: " →"; transition: transform .2s ease; display: inline-block; }
  .post-card .read-more:hover::after { transform: translateX(4px); }

  /* Opt-in block */
  .optin-block {
    background:
      linear-gradient(135deg, var(--island-accent, var(--ocean-deep)) 0%, var(--island-accent-dark, var(--ocean-mid)) 100%);
    color: var(--shell);
    padding: clamp(40px, 6vw, 60px);
    border-radius: var(--radius-lg);
    margin: 40px 0;
    position: relative;
    overflow: hidden;
  }
  .optin-block::before {
    content: "";
    position: absolute;
    top: -40px; right: -40px;
    width: 180px; height: 180px;
    background: radial-gradient(circle, rgba(253, 247, 234, 0.18) 0%, transparent 70%);
    border-radius: 50%;
  }
  .optin-block .eyebrow { color: var(--sunset); }
  .optin-block h3 { color: var(--shell); margin-bottom: 8px; }
  .optin-block p { color: rgba(253, 247, 234, 0.85); max-width: 560px; }
  .optin-form {
    display: flex;
    gap: 10px;
    margin-top: 24px;
    max-width: 460px;
    background: rgba(253, 247, 234, 0.08);
    padding: 6px;
    border-radius: 999px;
    border: 1px solid rgba(253, 247, 234, 0.2);
    position: relative;
    z-index: 2;
  }
  .optin-form input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 12px 18px;
    color: var(--shell);
    font-family: var(--font-body);
    font-size: 0.98rem;
    outline: none;
  }
  .optin-form input::placeholder { color: rgba(253, 247, 234, 0.55); }
  .optin-form button {
    background: var(--sunset);
    color: var(--ink);
    border: none;
    border-radius: 999px;
    padding: 10px 22px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.92rem;
    cursor: pointer;
    transition: background .2s ease;
    white-space: nowrap;
  }
  .optin-form button:hover { background: var(--coral); color: var(--shell); }
  .optin-bonus {
    margin-top: 14px;
    font-family: var(--font-hand);
    font-size: 1.15rem;
    color: var(--sand-warm);
  }

  /* Resource vault */
  .vault {
    position: relative;
    background: var(--shell);
    padding: 40px;
    border: 1.5px dashed var(--pebble);
    border-radius: var(--radius-lg);
    margin-top: 32px;
  }
  .vault::before {
    content: "treasure chest";
    position: absolute;
    top: -14px; left: 30px;
    background: var(--shell);
    padding: 2px 12px;
    font-family: var(--font-hand);
    font-size: 1.1rem;
    color: var(--terracotta);
    letter-spacing: 0.02em;
  }
  .vault-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
  }
  .vault-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    background: var(--shell-deep);
    border-radius: var(--radius-sm);
    transition: transform .2s ease, background .2s ease;
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
    text-align: left;
    font-size: 0.95rem;
    color: var(--ink);
  }
  .vault-item:hover { transform: translateX(3px); background: var(--sand-cream); }
  .vault-item .vault-icon {
    width: 28px; height: 28px;
    color: var(--island-accent, var(--terracotta));
    flex-shrink: 0;
  }
  .vault-item .vault-label { flex: 1; font-weight: 500; }
  .vault-item .vault-hint { font-family: var(--font-hand); font-size: 0.95rem; color: var(--pebble); }

  /* Community Hub cards */
  .community-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 32px;
  }
  .community-card {
    background: var(--shell);
    border: 1px solid rgba(30, 40, 48, 0.08);
    border-radius: var(--radius-md);
    padding: 24px;
  }
  .community-card .cc-icon {
    width: 40px; height: 40px;
    color: var(--island-accent, var(--ocean-deep));
    margin-bottom: 12px;
  }
  .community-card h4 { margin-bottom: 8px; }
  .community-card p { font-size: 0.92rem; color: var(--stone); margin-bottom: 14px; }
  .community-card a.read-more { font-weight: 600; color: var(--island-accent, var(--ocean-deep)); font-size: 0.9rem; border: none; }
  .community-card a.read-more::after { content: " →"; }

  /* Final island CTA */
  .island-final-cta {
    text-align: center;
    padding: 50px 40px;
    margin-top: 50px;
    background:
      radial-gradient(ellipse at top, var(--island-accent-soft, var(--ocean-foam)) 0%, transparent 60%),
      var(--shell);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(30, 40, 48, 0.05);
  }
  .island-final-cta h3 { margin-bottom: 8px; }
  .island-final-cta p { color: var(--stone); max-width: 520px; margin: 0 auto 22px; }

  /* Island-hopping footer nav */
  .island-hop {
    margin-top: 60px;
    padding: 32px 0 0;
    border-top: 1px dashed var(--pebble);
    text-align: center;
  }
  .island-hop .hop-label {
    font-family: var(--font-hand);
    font-size: 1.3rem;
    color: var(--terracotta);
    margin-bottom: 16px;
    display: block;
  }
  .island-hop .hop-links {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
  }
  .island-hop .hop-links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--shell);
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--charcoal);
    border: 1px solid rgba(30, 40, 48, 0.08);
    transition: transform .2s ease, border-color .2s ease;
  }
  .island-hop .hop-links a:hover { transform: translateY(-2px); border-color: var(--ocean-deep); color: var(--ocean-deep); }
  .island-hop .hop-dot {
    width: 10px; height: 10px; border-radius: 50%;
    display: inline-block;
  }

  /* Per-island accent palette */
  #amazon { --island-accent: #C7643F; --island-accent-dark: #A04D2E; --island-accent-soft: #F4DCC9; }
  #taxes { --island-accent: #2F6B4B; --island-accent-dark: #1F4A34; --island-accent-soft: #DCEADC; }
  #lifestyle { --island-accent: #E38763; --island-accent-dark: #C26A48; --island-accent-soft: #FADFD0; }
  #mindset { --island-accent: #6A4E93; --island-accent-dark: #4C3770; --island-accent-soft: #E4DBF0; }
  #travel { --island-accent: #2A7AB0; --island-accent-dark: #13476C; --island-accent-soft: #C9E2EE; }
  #creditcards { --island-accent: #1F6374; --island-accent-dark: #124151; --island-accent-soft: #CFE0E6; }
  #dtc { --island-accent: #D4924B; --island-accent-dark: #A9703A; --island-accent-soft: #F6DFC2; }

  /* ========== TREASURES ========== */
  .treasure {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    background: var(--sand-cream);
    border: 1.5px dashed var(--terracotta);
    border-radius: var(--radius-sm);
    margin: 24px 0;
    font-family: var(--font-hand);
    font-size: 1.2rem;
    color: var(--terracotta);
    text-decoration: none;
    cursor: pointer;
    transition: transform .2s ease, background .2s ease;
  }
  .treasure:hover { transform: rotate(-1deg) scale(1.02); background: var(--sand-warm); border-color: var(--clay); }
  .treasure svg { width: 22px; height: 22px; flex-shrink: 0; }
  .treasure .tease {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--stone);
    font-weight: 500;
    border-left: 1px dashed var(--terracotta);
    padding-left: 10px;
  }

  /* Floating tiny treasure */
  .mini-treasure {
    position: absolute;
    top: 30px; right: 30px;
    width: 56px; height: 56px;
    background: var(--shell);
    border: 1.5px dashed var(--terracotta);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform .3s ease;
    animation: sway 5s ease-in-out infinite;
  }
  .mini-treasure:hover { transform: rotate(15deg) scale(1.1); }
  .mini-treasure::after {
    content: attr(data-label);
    position: absolute;
    top: 58px;
    right: 0;
    font-family: var(--font-hand);
    font-size: 0.95rem;
    color: var(--terracotta);
    white-space: nowrap;
    opacity: 0;
    transition: opacity .25s ease;
    pointer-events: none;
  }
  .mini-treasure:hover::after { opacity: 1; }
  @keyframes sway {
    0%, 100% { transform: rotate(-4deg); }
    50% { transform: rotate(4deg); }
  }

  /* ========== FOOTER ========== */
  footer.site-footer {
    background: var(--ink);
    color: rgba(253, 247, 234, 0.8);
    padding: 70px 0 40px;
  }
  .footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
  }
  @media (max-width: 780px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  }
  .footer-brand h3 { color: var(--shell); font-size: 1.5rem; margin-bottom: 10px; }
  .footer-brand p { color: rgba(253, 247, 234, 0.65); font-size: 0.95rem; max-width: 360px; }
  .footer-col h5 {
    font-family: var(--font-body);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--sand-warm);
    margin: 0 0 16px;
    font-weight: 600;
  }
  .footer-col ul { list-style: none; padding: 0; margin: 0; }
  .footer-col li { margin-bottom: 10px; }
  .footer-col a { color: rgba(253, 247, 234, 0.75); font-size: 0.92rem; border: none; }
  .footer-col a:hover { color: var(--sunset); }
  .footer-bottom {
    border-top: 1px solid rgba(253, 247, 234, 0.1);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: rgba(253, 247, 234, 0.55);
    flex-wrap: wrap;
    gap: 12px;
  }
  .footer-bottom .back-to-map {
    font-family: var(--font-hand);
    font-size: 1.2rem;
    color: var(--sunset);
    border: none;
  }

  /* Preview banner (remove for production) */
  .preview-banner {
    background: var(--ink);
    color: var(--sand-warm);
    padding: 8px 16px;
    text-align: center;
    font-family: var(--font-hand);
    font-size: 1.05rem;
    letter-spacing: 0.02em;
  }
  .preview-banner strong { color: var(--sunset); font-family: var(--font-body); font-weight: 600; font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; margin-right: 10px; }

/* Cosmans photo on homepage */
.cosmans-photo { position: relative; }
.cosmans-photo img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  transform: rotate(1.5deg);
  transition: transform .4s ease;
  border: 8px solid var(--shell);
}
.cosmans-photo img:hover { transform: rotate(0) translateY(-4px); }
.cosmans-photo .photo-caption {
  position: absolute;
  bottom: -10px;
  left: 30px;
  background: var(--shell);
  padding: 6px 16px;
  border-radius: 999px;
  font-family: var(--font-hand);
  font-size: 1.1rem;
  color: var(--terracotta);
  box-shadow: var(--shadow-sm);
  transform: rotate(-2deg);
}
@media (max-width: 820px) {
  .orientation-inner { grid-template-columns: 1fr !important; text-align: center !important; }
  .cosmans-photo { max-width: 400px; margin: 0 auto; }
}

/* Nav current-page indicator */
.nav-links a.current {
  color: var(--ocean-deep);
  font-weight: 600;
  position: relative;
}
.nav-links a.current::after {
  content: "";
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 2px;
  background: var(--coral);
  border-radius: 1px;
}

/* ============================================================
   SCRAPBOOK LAYER -- distinctive TDW design passes
   ============================================================ */

/* Paper/sand texture on body */
body {
  background-color: var(--shell);
  background-image:
    radial-gradient(at 20% 10%, rgba(232, 212, 168, 0.18) 0%, transparent 40%),
    radial-gradient(at 80% 30%, rgba(201, 226, 238, 0.25) 0%, transparent 45%),
    radial-gradient(at 40% 80%, rgba(228, 219, 240, 0.15) 0%, transparent 50%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200' viewBox='0 0 200 200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.55 0 0 0 0 0.47 0 0 0 0 0.35 0 0 0 0.07 0'/></filter><rect width='200' height='200' filter='url(%23n)'/></svg>");
  background-attachment: fixed;
}

section.courses, section.books, section.island-section, section.newsletter-gate, section.gate-threshold {
  position: relative;
}
section.courses::before, section.books::before, section.island-section::before {
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='300' height='300' viewBox='0 0 300 300'><filter id='g'><feTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='2'/><feColorMatrix values='0 0 0 0 0.45 0 0 0 0 0.38 0 0 0 0 0.28 0 0 0 0.05 0'/></filter><rect width='300' height='300' filter='url(%23g)'/></svg>");
  pointer-events: none;
  opacity: 0.55;
  z-index: 0;
}
section.courses > *, section.books > *, section.island-section > * { position: relative; z-index: 1; }

/* POLAROID */
.polaroid {
  display: inline-block;
  background: #FDFBF3;
  padding: 14px 14px 52px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 10px 28px rgba(30,40,48,0.14), inset 0 0 0 1px rgba(255,255,255,0.5);
  position: relative;
  transition: transform .4s cubic-bezier(.2,.9,.3,1.2), box-shadow .4s;
  border-radius: 2px;
}
.polaroid img { display: block; width: 100%; height: auto; filter: saturate(1.05) contrast(1.02); }
.polaroid .polaroid-caption {
  position: absolute;
  bottom: 14px; left: 14px; right: 14px;
  text-align: center;
  font-family: var(--font-hand);
  font-size: 1.15rem;
  color: var(--charcoal);
  letter-spacing: 0.01em;
}
.polaroid:hover { transform: translateY(-6px) rotate(0deg) !important; }

/* WASHI TAPE */
.washi {
  position: absolute;
  width: 80px;
  height: 22px;
  background: repeating-linear-gradient(45deg, rgba(226, 135, 99, 0.55) 0px, rgba(226, 135, 99, 0.55) 6px, rgba(226, 135, 99, 0.35) 6px, rgba(226, 135, 99, 0.35) 12px);
  border-left: 1px dashed rgba(255,255,255,0.5);
  border-right: 1px dashed rgba(255,255,255,0.5);
  z-index: 2;
  box-shadow: 0 1px 2px rgba(0,0,0,0.08);
  top: -10px; left: 50%;
  transform: translateX(-50%) rotate(-4deg);
}
.washi.washi-blue { background: repeating-linear-gradient(45deg, rgba(42, 122, 176, 0.55) 0, rgba(42, 122, 176, 0.55) 6px, rgba(42, 122, 176, 0.3) 6px, rgba(42, 122, 176, 0.3) 12px); }
.washi.washi-yellow { background: repeating-linear-gradient(45deg, rgba(242, 164, 92, 0.6) 0, rgba(242, 164, 92, 0.6) 6px, rgba(242, 164, 92, 0.35) 6px, rgba(242, 164, 92, 0.35) 12px); }
.washi.washi-green { background: repeating-linear-gradient(45deg, rgba(109, 163, 127, 0.55) 0, rgba(109, 163, 127, 0.55) 6px, rgba(109, 163, 127, 0.3) 6px, rgba(109, 163, 127, 0.3) 12px); }
.washi-angled-right { transform: translateX(-50%) rotate(5deg); top: -8px; }
.washi-angled-left { transform: translateX(-50%) rotate(-8deg); top: -12px; }

/* STAMP */
.stamp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  border: 2.5px solid var(--terracotta);
  color: var(--terracotta);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transform: rotate(-6deg);
  position: relative;
  background: rgba(253, 247, 234, 0.5);
  mix-blend-mode: multiply;
  opacity: 0.85;
}
.stamp::before {
  content: "";
  position: absolute;
  inset: -6px;
  border: 1.5px solid var(--terracotta);
  opacity: 0.4;
  pointer-events: none;
  border-radius: 2px;
}
.stamp-circle {
  width: 100px; height: 100px;
  border: 2px solid var(--terracotta);
  border-radius: 50%;
  color: var(--terracotta);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-style: italic;
  text-align: center;
  line-height: 1.15;
  padding: 16px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.78;
  mix-blend-mode: multiply;
  transform: rotate(-12deg);
  background: transparent;
}
.stamp-circle::before {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px dashed var(--terracotta);
  border-radius: 50%;
  opacity: 0.6;
}

/* MARGIN ANNOTATION */
.margin-note {
  position: absolute;
  font-family: var(--font-hand);
  font-size: 1.2rem;
  color: var(--terracotta);
  max-width: 200px;
  line-height: 1.3;
  z-index: 5;
  pointer-events: none;
}
.margin-note .arrow { display: block; width: 70px; margin-top: 6px; }
.margin-note.tilt-left { transform: rotate(-6deg); }
.margin-note.tilt-right { transform: rotate(5deg); }

/* POSTCARD */
.postcard {
  background: #FDFBF3;
  padding: 22px 24px 26px;
  border-radius: 4px;
  position: relative;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1), 0 8px 24px rgba(30,40,48,0.1);
  border: 1px solid rgba(30,40,48,0.08);
  transition: transform .3s cubic-bezier(.2,.9,.3,1.2), box-shadow .3s;
  overflow: visible;
}
.postcard::before {
  content: "";
  position: absolute;
  top: 10px; right: 10px; bottom: 10px; left: 10px;
  border: 1px dashed rgba(30,40,48,0.14);
  pointer-events: none;
  border-radius: 2px;
}
.postcard:hover { transform: translateY(-4px) rotate(0deg) !important; box-shadow: 0 2px 4px rgba(0,0,0,0.12), 0 16px 36px rgba(30,40,48,0.16); }
.postcard .postage {
  position: absolute;
  top: -10px; right: 14px;
  width: 48px; height: 56px;
  background: var(--coral);
  border: 2px solid #FDFBF3;
  outline: 1px solid var(--coral);
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-hand);
  font-size: 0.85rem;
  color: #FDFBF3;
  text-align: center;
  line-height: 1;
  transform: rotate(6deg);
  box-shadow: 1px 2px 4px rgba(0,0,0,0.15);
  z-index: 3;
}
.postcard .postage::after { content: ""; position: absolute; inset: -3px; border: 1px dashed var(--coral); pointer-events: none; }
.postcard h4 { font-family: var(--font-display); font-size: 1.3rem; font-weight: 500; margin-bottom: 8px; color: var(--ink); letter-spacing: -0.01em; padding-right: 64px; }
.postcard p { font-size: 0.95rem; color: var(--stone); line-height: 1.55; margin-bottom: 10px; }
.postcard .postcard-meta { font-family: var(--font-hand); font-size: 1.1rem; color: var(--terracotta); display: flex; align-items: center; gap: 6px; }
.postcard .postcard-meta::before { content: "\2192"; }

/* Scattered deck for courses */
.postcard-deck {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 44px 28px;
  margin-top: 60px;
  padding: 50px 20px;
  position: relative;
}
.postcard-deck > .postcard:nth-child(1) { transform: rotate(-2.5deg); }
.postcard-deck > .postcard:nth-child(2) { transform: rotate(1.5deg) translateY(14px); }
.postcard-deck > .postcard:nth-child(3) { transform: rotate(-1deg) translateY(-8px); }
.postcard-deck > .postcard:nth-child(4) { transform: rotate(2.5deg) translateY(6px); }
.postcard-deck > .postcard:nth-child(5) { transform: rotate(1.8deg) translateY(-4px); }
.postcard-deck > .postcard:nth-child(6) { transform: rotate(-2deg) translateY(10px); }
.postcard-deck > .postcard:nth-child(7) { transform: rotate(1deg); }
@media (max-width: 1024px) {
  .postcard-deck { grid-template-columns: repeat(2, 1fr); gap: 40px 24px; }
}
@media (max-width: 560px) {
  .postcard-deck { grid-template-columns: 1fr; }
  .postcard-deck > .postcard { transform: none !important; }
}

/* Hand-drawn underline */
.hand-underline {
  position: relative;
  display: inline-block;
}
.hand-underline::after {
  content: "";
  position: absolute;
  left: -4px; right: -4px;
  bottom: -6px; height: 10px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 10' preserveAspectRatio='none'><path d='M2 7 Q40 3 80 6 T160 5 T198 7' stroke='%23E38763' stroke-width='2.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-size: 100% 100%;
  pointer-events: none;
}

/* Scrapbook strip */
.scrapbook-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 40px;
  padding: 80px 0 60px;
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}
.scrapbook-strip .polaroid { width: 220px; }
.scrapbook-strip .polaroid img { aspect-ratio: 1/1; object-fit: cover; }
.scrapbook-strip .polaroid:nth-child(1) { transform: rotate(-4deg); }
.scrapbook-strip .polaroid:nth-child(2) { transform: rotate(3deg); margin-top: -18px; }
.scrapbook-strip .polaroid:nth-child(3) { transform: rotate(-2deg); margin-top: 8px; }
.scrapbook-strip .polaroid:nth-child(4) { transform: rotate(4deg); margin-top: -10px; }
.scrapbook-strip .polaroid:nth-child(5) { transform: rotate(-3deg); margin-top: 12px; }

/* Doodle arrow */
.doodle-arrow { display: inline-block; width: 100px; color: var(--terracotta); }

/* Threshold newsletter gate */
.gate-threshold {
  background: linear-gradient(180deg, #0F2A3E 0%, #13476C 40%, #2A7AB0 100%);
  color: var(--shell);
  padding: 110px 0 120px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.gate-threshold::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 35%, rgba(242, 164, 92, 0.36) 0%, transparent 55%),
    radial-gradient(ellipse at 20% 80%, rgba(227, 135, 99, 0.15) 0%, transparent 50%);
  pointer-events: none;
}
.gate-threshold::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='400' height='400' viewBox='0 0 400 400'><filter id='s'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.05 0'/></filter><rect width='400' height='400' filter='url(%23s)'/></svg>");
  pointer-events: none;
  opacity: 0.4;
  z-index: 1;
}
.gate-threshold .gate-inner { position: relative; z-index: 2; }
.gate-threshold .gate-door {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  background: rgba(253, 247, 234, 0.05);
  border: 1px solid rgba(242, 164, 92, 0.3);
  padding: 60px 50px;
  border-radius: 8px 8px 0 0;
  position: relative;
  box-shadow: 0 0 60px rgba(242, 164, 92, 0.22), inset 0 1px 0 rgba(253, 247, 234, 0.12);
}
.gate-threshold .gate-door::before {
  content: "";
  position: absolute;
  top: -24px; left: 50%;
  transform: translateX(-50%);
  width: 80px; height: 24px;
  background: linear-gradient(180deg, transparent 0%, rgba(242, 164, 92, 0.5) 100%);
  border-radius: 50% 50% 0 0;
  filter: blur(4px);
}
.gate-threshold h2 { color: var(--shell); font-family: var(--font-display); font-weight: 400; margin-bottom: 20px; }
.gate-threshold h2 em { color: var(--sunset); font-style: italic; font-weight: 500; }
.gate-threshold .lantern { width: 110px; height: 110px; display: block; margin: 0 auto 30px; filter: drop-shadow(0 0 24px rgba(242, 164, 92, 0.55)); }
.gate-threshold .gate-sub { font-family: var(--font-hand); font-size: 1.35rem; color: var(--sand-warm); margin-bottom: 16px; transform: rotate(-1deg); display: inline-block; }

.postcard-deck.postcard-deck-3col { grid-template-columns: repeat(3, 1fr); max-width: 1100px; margin-left: auto; margin-right: auto; }
@media (max-width: 1024px) { .postcard-deck.postcard-deck-3col { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .postcard-deck.postcard-deck-3col { grid-template-columns: 1fr; } }

.hand-underline::after {
  height: 14px !important;
  bottom: -8px !important;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 14' preserveAspectRatio='none'><path d='M3 10 Q40 4 80 8 T160 6 T198 9' stroke='%23E38763' stroke-width='4' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>") !important;
}

.postcard .postage svg { color: #FDFBF3; width: 22px; height: 22px; }

/* Book on the beach table */
.book-table {
  background:
    linear-gradient(135deg, transparent 0%, rgba(139, 90, 58, 0.04) 100%),
    var(--shell-deep);
  background-image:
    repeating-linear-gradient(35deg, transparent 0 4px, rgba(139, 90, 58, 0.03) 4px 5px),
    repeating-linear-gradient(-35deg, transparent 0 4px, rgba(139, 90, 58, 0.03) 4px 5px);
  padding: 80px 50px;
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}
.book-table::before {
  content: "";
  position: absolute;
  top: 20px; left: 20px; right: 20px; bottom: 20px;
  border: 1px dashed rgba(139, 90, 58, 0.15);
  pointer-events: none;
  border-radius: var(--radius-md);
}

/* Pull quote */
.pull-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.5;
  color: var(--charcoal);
  padding: 16px 0 16px 24px;
  border-left: 3px solid var(--coral);
  position: relative;
  max-width: 280px;
}
.pull-quote::before {
  content: "\201C";
  font-family: var(--font-display);
  font-size: 3rem;
  position: absolute;
  top: -10px; left: -6px;
  color: var(--coral);
  opacity: 0.3;
}
.pull-quote cite {
  display: block;
  margin-top: 10px;
  font-family: var(--font-hand);
  font-style: normal;
  font-size: 1.05rem;
  color: var(--terracotta);
}
.pull-quote cite::before { content: "-- "; }

/* Wave divider */
.divider-wave {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 50px 0;
  color: var(--pebble);
}
.divider-wave::before, .divider-wave::after {
  content: "";
  height: 1px;
  background: currentColor;
  flex: 1;
  max-width: 120px;
  opacity: 0.5;
}
.divider-wave span {
  font-family: var(--font-hand);
  font-size: 1.2rem;
  color: var(--terracotta);
}

/* Compass rose */
.compass { width: 80px; height: 80px; color: var(--terracotta); opacity: 0.65; transition: transform 1s ease; }
.compass:hover { transform: rotate(45deg); }

/* Bigger treasure */
.treasure-box {
  position: relative;
  background:
    repeating-linear-gradient(90deg, rgba(139, 90, 58, 0.05) 0 3px, transparent 3px 6px),
    var(--sand-cream);
  border: 2px dashed var(--terracotta);
  border-radius: 6px;
  padding: 26px 30px;
  max-width: 520px;
  margin: 40px auto;
  box-shadow: 0 4px 18px rgba(139, 90, 58, 0.12);
}
.treasure-box .treasure-label {
  position: absolute;
  top: -12px; left: 24px;
  background: var(--sand-cream);
  padding: 2px 14px;
  font-family: var(--font-hand);
  font-size: 1.1rem;
  color: var(--terracotta);
}
.treasure-box h4 { font-family: var(--font-display); font-weight: 500; margin-bottom: 6px; font-size: 1.2rem; }
.treasure-box p { font-size: 0.95rem; color: var(--charcoal); margin-bottom: 10px; }

/* Orientation tweaks */
.orientation { padding: 80px 0 40px; }
.orientation::before, .orientation::after { display: none; }

/* Nav tweaks */
nav.site-nav {
  background: rgba(253, 247, 234, 0.92);
  border-bottom: 1px solid rgba(139, 90, 58, 0.12);
}

/* Hero 2-col tweaks */
.hero-scrapbook {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 20px 0;
  position: relative;
}
.hero-scrapbook .stamp-circle { position: absolute; top: 20px; right: -10px; }
@media (max-width: 820px) {
  .hero-scrapbook { grid-template-columns: 1fr; gap: 30px; text-align: center; }
  .hero-scrapbook .stamp-circle { display: none; }
}

/* Cosmans polaroid on hero */
.hero-polaroid {
  position: relative;
  display: inline-block;
  max-width: 440px;
  margin: 0 auto;
}
.hero-polaroid .polaroid { width: 100%; transform: rotate(2deg); }
.hero-polaroid .polaroid img { aspect-ratio: 2/3; object-fit: cover; object-position: center; }
.hero-polaroid .stamp-circle {
  position: absolute;
  bottom: -30px; left: -30px;
}
.hero-polaroid .scribbled-note {
  position: absolute;
  bottom: -10px; right: -60px;
  font-family: var(--font-hand);
  font-size: 1.3rem;
  color: var(--terracotta);
  transform: rotate(-4deg);
  max-width: 140px;
  text-align: left;
}

/* Kicker label variants */
.kicker {
  font-family: var(--font-hand);
  font-size: 1.65rem;
  color: var(--terracotta);
  letter-spacing: 0.01em;
  transform: rotate(-1.5deg);
  display: inline-block;
  margin-bottom: 6px;
}

/* ============================================================
   WORLD LAYER -- the island is the protagonist
   ============================================================ */

.world-welcome { padding: 0 0 0; position: relative; overflow: hidden; }
.welcome-hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; max-width: 1180px; margin: 0 auto; padding: 60px 24px 60px; position: relative; z-index: 2; }
.welcome-copy { text-align: left; }
.welcome-copy .eyebrow { display: inline-block; transform: rotate(-1deg); }
.welcome-headline { font-family: var(--font-display); font-size: clamp(2.1rem, 3.4vw, 2.9rem); font-weight: 500; line-height: 1.1; color: var(--ink); margin: 18px 0 22px; letter-spacing: -0.01em; max-width: 660px; }
.welcome-headline em { font-style: italic; color: var(--ocean-deep); font-weight: 400; }
.welcome-copy .manifesto { font-size: 1.1rem; max-width: 500px; margin: 0 0 12px; color: var(--stone); line-height: 1.7; }
.welcome-copy .manifesto-emphasis { margin-top: 24px; margin-bottom: 18px; color: var(--ink); font-size: 1.16rem; }
.welcome-copy .manifesto-emphasis strong { font-weight: 600; }
.welcome-cta { display: flex; gap: 24px; align-items: center; margin-top: 28px; flex-wrap: wrap; }
.welcome-cta .place-coords { font-family: var(--font-hand); font-size: 1.4rem; color: var(--terracotta); display: inline-block; transform: rotate(-1deg); margin: 0; }
.welcome-visual { min-height: 0; }
.welcome-beach-bleed {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 30%;
  width: 70%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  display: block;
  z-index: 1;
}
/* Cream overlay covers the whole section. The horizontal fade is intentionally
   long with many stops so the eye cannot pick out a single boundary line. */
.world-welcome::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background:
    linear-gradient(to bottom, var(--shell) 0%, rgba(253, 247, 234, 0.7) 4%, rgba(253, 247, 234, 0) 12%),
    linear-gradient(to top, var(--shell) 0%, rgba(253, 247, 234, 0.7) 4%, rgba(253, 247, 234, 0) 12%),
    linear-gradient(to right,
      var(--shell) 0%,
      var(--shell) 32%,
      rgba(253, 247, 234, 0.97) 38%,
      rgba(253, 247, 234, 0.88) 44%,
      rgba(253, 247, 234, 0.72) 51%,
      rgba(253, 247, 234, 0.52) 58%,
      rgba(253, 247, 234, 0.3) 67%,
      rgba(253, 247, 234, 0.12) 78%,
      rgba(253, 247, 234, 0.03) 88%,
      rgba(253, 247, 234, 0) 96%);
}
/* Lift the grid (text) above both the image and the overlay */
.welcome-hero-grid { position: relative; z-index: 3; }
@media (max-width: 880px) {
  .world-welcome { min-height: 0; padding: 0; overflow-x: hidden; }
  .welcome-hero-grid { grid-template-columns: 1fr; gap: 28px; padding: 0; max-width: 100%; }
  .welcome-copy { text-align: center; padding: 36px 22px 0; }
  .welcome-headline {
    font-size: clamp(1.65rem, 7.4vw, 2.3rem);
    line-height: 1.15;
    max-width: 100%;
    margin: 14px auto 18px;
  }
  .welcome-copy .manifesto { margin-left: auto; margin-right: auto; font-size: 1.02rem; }
  .welcome-copy .manifesto-emphasis { font-size: 1.08rem; margin-top: 18px; margin-bottom: 14px; }
  .welcome-visual { min-height: 0; width: 100%; max-width: 100%; padding: 0; }
  .welcome-beach-bleed {
    position: relative;
    display: block;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    width: 100%;
    height: clamp(300px, 55vw, 420px);
    margin: 0;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.55) 10%, black 26%);
    mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.55) 10%, black 26%);
  }
  .welcome-cta { justify-content: center; gap: 16px; }
  .welcome-cta .place-coords { font-size: 1.15rem; }
}
html, body { overflow-x: hidden; }
.world-welcome .eyebrow { transform: rotate(-1deg); }
.world-welcome .manifesto { font-size: 1.15rem; max-width: 580px; margin: 22px auto 0; color: var(--stone); line-height: 1.7; }
.world-welcome .place-coords { font-family: var(--font-hand); font-size: 1.4rem; color: var(--terracotta); margin-top: 18px; display: inline-block; transform: rotate(-1deg); }

.keepers { background: var(--shell); padding: 70px 0; position: relative; }
.keepers-inner { display: grid; grid-template-columns: 280px 1fr; gap: 50px; align-items: center; max-width: 880px; margin: 0 auto; }
@media (max-width: 720px) { .keepers-inner { grid-template-columns: 1fr; text-align: center; } }
.keepers .polaroid { width: 100%; transform: rotate(-2deg); }
.keepers .polaroid img { aspect-ratio: 4/5; object-fit: cover; }
.keepers h3 { font-family: var(--font-display); font-style: italic; font-weight: 400; font-size: 1.6rem; color: var(--ink); margin-bottom: 12px; }
.keepers p { color: var(--stone); font-size: 1rem; }
.keepers .keeper-tag { font-family: var(--font-hand); font-size: 1.15rem; color: var(--terracotta); display: inline-block; transform: rotate(-1deg); margin-bottom: 8px; }

.origin-panel { background: repeating-linear-gradient(0deg, transparent 0 28px, rgba(139, 90, 58, 0.06) 28px 29px), var(--shell); padding: 80px 0; position: relative; }
.origin-panel::before { content: ""; position: absolute; left: 8%; top: 0; bottom: 0; width: 1px; background: rgba(220, 60, 50, 0.25); }
.origin-panel-inner { max-width: 720px; margin: 0 auto; padding: 0 60px; position: relative; }
.origin-panel h2 { font-family: var(--font-display); font-style: italic; font-weight: 400; }
.origin-panel p { font-size: 1.08rem; line-height: 1.75; color: var(--charcoal); margin-bottom: 1.2em; }
.origin-panel p:first-of-type::first-letter { font-family: var(--font-display); font-size: 3.2rem; float: left; line-height: 1; margin-right: 8px; margin-top: 4px; color: var(--terracotta); font-weight: 500; }

.quiz-section { padding: 90px 0; background: radial-gradient(ellipse at 30% 20%, rgba(201, 226, 238, 0.45) 0%, transparent 60%), radial-gradient(ellipse at 70% 80%, rgba(228, 219, 240, 0.3) 0%, transparent 55%), var(--shell); position: relative; overflow: hidden; }
.quiz-treasure-bg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: 0.16; z-index: 0; mix-blend-mode: multiply; }
.quiz-section > .container { position: relative; z-index: 1; }
.quiz-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 50px; }
@media (max-width: 920px) { .quiz-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .quiz-grid { grid-template-columns: 1fr; } }
.quiz-card { background: #FDFBF3; padding: 28px 22px 26px; border-radius: 4px; border: 1.5px solid rgba(30, 40, 48, 0.08); position: relative; cursor: pointer; transition: transform .25s cubic-bezier(.2,.9,.3,1.2), box-shadow .25s, border-color .25s; text-align: left; text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 2px 10px rgba(30, 40, 48, 0.06); }
.quiz-card:nth-child(1) { transform: rotate(-1.5deg); }
.quiz-card:nth-child(2) { transform: rotate(1.2deg) translateY(8px); }
.quiz-card:nth-child(3) { transform: rotate(-1deg) translateY(-6px); }
.quiz-card:nth-child(4) { transform: rotate(1.8deg); }
.quiz-card:hover { transform: translateY(-6px) rotate(0); box-shadow: 0 12px 32px rgba(30, 40, 48, 0.12); border-color: var(--coral); }
.quiz-card .quiz-icon { font-size: 2rem; line-height: 1; margin-bottom: 4px; }
.quiz-card .quiz-prompt { font-family: var(--font-hand); font-size: 1.2rem; color: var(--terracotta); }
.quiz-card h4 { font-family: var(--font-display); font-weight: 500; font-size: 1.15rem; margin: 0; line-height: 1.3; color: var(--ink); }
.quiz-card .quiz-route { font-family: var(--font-body); font-size: 0.85rem; color: var(--stone); margin-top: auto; }
.quiz-card .quiz-route::after { content: " \2192"; }

.today-widget { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 30px; background: var(--shell); border: 1px dashed rgba(139, 90, 58, 0.25); border-radius: var(--radius-lg); padding: 32px 36px; margin: 60px auto; max-width: 980px; position: relative; }
.today-widget::before { content: "today on the island"; position: absolute; top: -14px; left: 30px; background: var(--shell); padding: 2px 14px; font-family: var(--font-hand); font-size: 1.15rem; color: var(--terracotta); }
.today-widget .today-cell { display: flex; flex-direction: column; gap: 4px; position: relative; padding-left: 38px; }
.today-widget .today-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--pebble); font-weight: 600; }
.today-widget .today-emoji {
  position: absolute;
  left: 0;
  top: 2px;
  font-size: 1.6rem;
  line-height: 1;
  filter: drop-shadow(0 1px 2px rgba(30,40,48,0.08));
  transition: transform .3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.today-widget .today-cell:hover .today-emoji { transform: scale(1.18) rotate(-4deg); }
.today-widget .today-value { font-family: var(--font-display); font-size: 1.15rem; color: var(--ink); font-style: italic; font-weight: 500; }
.today-widget .today-detail { font-size: 0.88rem; color: var(--stone); }
@media (max-width: 720px) { .today-widget .today-cell { padding-left: 0; padding-top: 32px; } .today-widget .today-emoji { left: 0; top: 0; } }
@media (max-width: 720px) { .today-widget { grid-template-columns: 1fr; gap: 18px; } }

/* ============================================================
   Rabbit-hole "the path" — choose-your-own-adventure styling.
   Cards are stepping stones along a winding dotted SVG path,
   with an arrow rendered between each pair on desktop.
   ============================================================ */
.rabbit-hole { margin: 70px auto 0; max-width: 1100px; padding: 36px 36px 40px; position: relative; }
.rabbit-hole::before {
  content: "the path from here";
  display: block;
  text-align: center;
  font-family: var(--font-hand);
  font-size: 1.6rem;
  color: var(--terracotta);
  margin-bottom: 8px;
  transform: rotate(-1deg);
}
.rabbit-hole::after {
  content: "choose where you wander next";
  display: block;
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--stone);
  margin-bottom: 28px;
}
/* The dotted-path SVG background, drawn under the cards */
.rabbit-hole-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: stretch;
  justify-content: center;
  position: relative;
  z-index: 1;
}
.rabbit-hole-link {
  flex: 1 1 240px;
  max-width: 320px;
  min-width: 220px;
  padding: 18px 20px 16px;
  background: var(--shell);
  border-radius: 8px;
  border: 1px solid rgba(30,40,48,0.08);
  border-top: 4px solid var(--rh-accent, var(--terracotta));
  text-decoration: none;
  color: var(--ink);
  transition: transform .22s cubic-bezier(.2,.9,.3,1.2), box-shadow .22s ease, border-color .22s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: 0 2px 6px rgba(30,40,48,0.08);
}
.rabbit-hole-link::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 16px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--rh-accent, var(--terracotta));
  border: 2px solid var(--shell);
  box-shadow: 0 1px 3px rgba(30,40,48,0.18);
}
.rabbit-hole-link:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(30,40,48,0.14);
  border-top-color: var(--rh-accent, var(--terracotta));
}
/* No connecting arrow between cards — they're sibling outward paths, not a chain.
   The "outward" cue is on each card itself via the island label arrow. */
.rabbit-hole-link .rh-island {
  font-family: var(--font-hand);
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  color: var(--rh-accent, var(--terracotta));
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}
.rabbit-hole-link .rh-island::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--rh-accent, var(--terracotta));
}
.rabbit-hole-link .rh-island::after {
  content: "→";
  margin-left: 4px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--rh-accent, var(--terracotta));
  transition: transform .22s ease;
}
.rabbit-hole-link:hover .rh-island::after { transform: translateX(4px); }
.rabbit-hole-link .rh-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.3rem;
  color: var(--ink);
  line-height: 1.25;
  letter-spacing: -0.005em;
}
.rabbit-hole-link .rh-tease {
  font-size: 1rem;
  color: var(--stone);
  margin-top: auto;
  line-height: 1.5;
}
@media (max-width: 880px) {
  .rabbit-hole-grid { flex-direction: column; align-items: stretch; gap: 16px; }
  .rabbit-hole-link { max-width: 100%; width: 100%; }
}

.hidden-treasure { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; background: var(--sand-cream); border: 1px dashed var(--terracotta); border-radius: 4px; font-family: var(--font-hand); font-size: 1rem; color: var(--terracotta); text-decoration: none; margin: 14px 0; transform: rotate(-1deg); cursor: pointer; transition: transform .2s ease; }
.hidden-treasure:hover { transform: rotate(0) scale(1.04); }
.hidden-treasure::before { content: "\2735"; font-size: 0.85rem; }

.now-line { font-family: var(--font-display); font-style: italic; font-size: 1.3rem; color: var(--ocean-deep); text-align: center; max-width: 680px; margin: 50px auto; padding: 30px 40px; border-top: 1px dashed var(--pebble); border-bottom: 1px dashed var(--pebble); position: relative; line-height: 1.5; }
.now-line::before { content: "this moment"; position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--shell); padding: 2px 12px; font-family: var(--font-hand); font-style: normal; font-size: 1.3rem; color: var(--terracotta); }

.harper-line { font-family: var(--font-hand); font-size: 1.5rem; color: var(--terracotta); max-width: 540px; line-height: 1.4; margin: 28px auto 18px; padding: 12px 40px; text-align: center; position: relative; transform: rotate(-0.5deg); }

/* ========== PERSISTENT TAGLINE BAND (Andre-style purpose reminder) ========== */
.tagline-band {
  background: var(--shell-deep);
  color: var(--charcoal);
  padding: 10px clamp(20px, 4vw, 56px);
  text-align: center;
  font-family: var(--font-hand);
  font-size: 1.18rem;
  letter-spacing: 0.005em;
  border-bottom: 1px solid rgba(199, 100, 63, 0.18);
  position: sticky;
  top: 60px;
  z-index: 90;
  backdrop-filter: saturate(160%);
}
.tagline-band em {
  color: var(--terracotta);
  font-style: normal;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.9rem;
  margin: 0 6px;
  vertical-align: 1px;
}
@media (max-width: 720px) {
  .tagline-band { font-size: 1rem; line-height: 1.35; padding: 8px 20px; position: static; }
}

/* ========== UNDER CONSTRUCTION BANNER ========== */
.under-construction {
  background: repeating-linear-gradient(45deg, rgba(242, 164, 92, 0.18) 0 14px, var(--shell-deep) 14px 28px);
  padding: 20px 0;
  border-top: 2px dashed var(--terracotta);
  border-bottom: 2px dashed var(--terracotta);
  text-align: center;
  position: relative;
}
.under-construction-inner {
  background: var(--shell);
  display: inline-block;
  padding: 12px 28px;
  transform: rotate(-1deg);
  border: 2px solid var(--terracotta);
  border-radius: 4px;
  box-shadow: var(--shadow-md);
  font-family: var(--font-hand);
  color: var(--charcoal);
  font-size: 1.4rem;
  line-height: 1.3;
  max-width: 640px;
}
.under-construction-inner strong {
  color: var(--terracotta);
  font-weight: 600;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.25rem;
}
.under-construction-inner .uc-sub {
  display: block;
  font-size: 1rem;
  color: var(--stone);
  margin-top: 4px;
  font-family: var(--font-body);
  font-style: italic;
}

/* ========== EARTHQUAKE / POP ANIMATIONS (island map interaction) ========== */
@keyframes map-quake {
  0%, 100% { transform: translate3d(0, 0, 0); }
  10% { transform: translate3d(-2px, 1px, 0) rotate(-0.18deg); }
  20% { transform: translate3d(2px, -1px, 0) rotate(0.18deg); }
  30% { transform: translate3d(-1px, 2px, 0) rotate(-0.1deg); }
  40% { transform: translate3d(1px, -2px, 0) rotate(0.1deg); }
  50% { transform: translate3d(-2px, -1px, 0); }
  60% { transform: translate3d(2px, 1px, 0); }
  70% { transform: translate3d(-1px, 1px, 0); }
  80% { transform: translate3d(1px, -1px, 0); }
  90% { transform: translate3d(0, 1px, 0); }
}
@keyframes hotspot-pop {
  0% { transform: scale(1) translateY(0); box-shadow: 0 0 0 rgba(242, 164, 92, 0); }
  35% { transform: scale(1.45) translateY(-12px); box-shadow: 0 24px 48px rgba(199, 100, 63, 0.45); }
  70% { transform: scale(1.28) translateY(-6px); box-shadow: 0 16px 32px rgba(199, 100, 63, 0.35); }
  100% { transform: scale(1.12) translateY(-2px); box-shadow: 0 8px 18px rgba(199, 100, 63, 0.25); }
}
.map-wrap.is-quaking { animation: map-quake 0.5s ease-in-out; }
.hotspot.is-popping {
  animation: hotspot-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  background: radial-gradient(circle, rgba(242, 164, 92, 0.55) 0%, rgba(242, 164, 92, 0.15) 60%, transparent 100%);
  border: 2px solid rgba(242, 164, 92, 0.7);
  z-index: 5;
}
.hotspot {
  transition: transform .25s ease, background .25s ease;
}
.hotspot:hover {
  background: radial-gradient(circle, rgba(242, 164, 92, 0.25) 0%, transparent 70%);
}

/* ========== FIRE ICON (gate section) ========== */
.fire-icon {
  width: 100px;
  height: 100px;
  margin: 0 auto 18px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fire-flicker 2.4s ease-in-out infinite;
}
.fire-icon img { max-width: 100%; max-height: 100%; object-fit: contain; }
.fire-icon .fire-svg { display: none; width: 100%; height: 100%; }
.fire-icon.fire-fallback .fire-svg { display: block; }
@keyframes fire-flicker {
  0%, 100% { transform: scale(1) translateY(0); filter: brightness(1) drop-shadow(0 0 14px rgba(242, 164, 92, 0.5)); }
  25% { transform: scale(1.04) translateY(-1px); filter: brightness(1.08) drop-shadow(0 0 20px rgba(242, 164, 92, 0.7)); }
  50% { transform: scale(0.98) translateY(0px); filter: brightness(0.95) drop-shadow(0 0 10px rgba(242, 164, 92, 0.45)); }
  75% { transform: scale(1.02) translateY(-1px); filter: brightness(1.05) drop-shadow(0 0 18px rgba(242, 164, 92, 0.6)); }
}

/* ========== BOOK COVER INTERACTIONS ========== */
.book-cover-link { cursor: pointer; }
.book-cover-link:hover {
  transform: rotate(0deg) translateY(-6px) scale(1.04) !important;
  z-index: 4 !important;
}
.book-cover-link img { transition: filter .3s ease; }
.book-cover-link:hover img { filter: brightness(1.05) saturate(1.1); }
.book-fallback-rob, .book-fallback-marsha {
  background: linear-gradient(135deg, var(--ocean-deep) 0%, var(--ocean-mid) 100%);
  aspect-ratio: 2/3;
  border-radius: 3px;
  padding: 22px;
  color: var(--shell);
  font-family: var(--font-body);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: var(--shadow-md);
}
.book-fallback-rob::before { content: "Drop book-rob.jpg into /assets/"; }
.book-fallback-marsha {
  background: linear-gradient(135deg, var(--green-deep) 0%, var(--ocean-soft) 100%);
}
.book-fallback-marsha::before { content: "Drop book-marsha.jpg into /assets/"; }

/* Standout nav link: The Manifesto */
.nav-manifesto {
  color: var(--terracotta) !important;
  font-weight: 700 !important;
  font-family: var(--font-display);
  font-style: italic;
  letter-spacing: 0.01em;
  position: relative;
  padding: 4px 12px !important;
  border: 1.5px solid var(--terracotta) !important;
  border-radius: 999px;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}
.nav-manifesto:hover {
  background: var(--terracotta);
  color: var(--shell) !important;
  transform: translateY(-1px);
  border-bottom: 1.5px solid var(--terracotta) !important;
}
.nav-manifesto.current { background: var(--terracotta); color: var(--shell) !important; }

/* Manifesto page (manifesto.html) */
.manifesto-page { padding: 60px 0 80px; background: var(--shell); }
.manifesto-image-wrap { max-width: 480px; margin: 36px auto 0; transform: rotate(-1.5deg); }
.manifesto-image-wrap img { width: 100%; height: auto; display: block; border-radius: 6px; box-shadow: 0 30px 70px rgba(30,40,48,0.30), 0 6px 16px rgba(30,40,48,0.18); border: 10px solid var(--shell); }
.manifesto-kicker { color: var(--ocean-deep) !important; font-weight: 700; font-size: 1.85rem !important; transform: rotate(-2deg); display: inline-block; }

/* Books section: responsive grid */
.book-grid-outer { display: grid; grid-template-columns: 380px 1fr; gap: 60px; align-items: center; }
.book-covers-stack { position: relative; height: 520px; }
.book-cover-rob { position: absolute; left: 20px; top: 30px; width: 240px; display: block; transform: rotate(-4deg); z-index: 2; transition: transform .3s ease; border-bottom: none; }
.book-cover-rob img { width: 100%; height: auto; display: block; border-radius: 3px; box-shadow: 0 1px 0 rgba(255,255,255,0.2) inset, 0 22px 56px rgba(30,40,48,0.28), -8px 0 0 -4px rgba(0,0,0,0.08); }
.book-cover-marsha { position: absolute; right: 0; top: 80px; width: 220px; display: block; transform: rotate(5deg); z-index: 1; transition: transform .3s ease; border-bottom: none; }
.book-cover-marsha img { width: 100%; height: auto; display: block; border-radius: 3px; box-shadow: 0 1px 0 rgba(255,255,255,0.2) inset, 0 18px 44px rgba(30,40,48,0.22), -8px 0 0 -4px rgba(0,0,0,0.08); }
.book-stamp { position: absolute; top: 14px; left: 230px; z-index: 3; }
.book-quotes-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 30px; }
.book-ctas { display: flex; gap: 14px; align-items: center; margin-top: 28px; flex-wrap: wrap; }

@media (max-width: 880px) {
  .book-grid-outer { grid-template-columns: 1fr; gap: 36px; }
  .book-covers-stack { height: 440px; max-width: 380px; margin: 0 auto; }
  .book-quotes-grid { grid-template-columns: 1fr; gap: 16px; }
  .book-table { padding: 50px 28px; }
}

@media (max-width: 480px) {
  .book-table { padding: 36px 18px; }
  .book-table::before { top: 10px; left: 10px; right: 10px; bottom: 10px; }
  .book-covers-stack { height: auto; max-width: 100%; display: flex; justify-content: center; align-items: flex-start; gap: 14px; padding-top: 12px; padding-bottom: 12px; }
  .book-cover-rob, .book-cover-marsha { position: static; width: 44%; max-width: 170px; top: auto; left: auto; right: auto; }
  .book-cover-rob { transform: rotate(-3deg); }
  .book-cover-marsha { transform: rotate(3deg); }
  .book-stamp { display: none; }
  .book-ctas .btn { width: 100%; justify-content: center; }
}

/* ========== LONG CUT MANIFESTO PANEL ========== */
.long-cut-panel {
  padding: clamp(60px, 8vw, 100px) 0;
  background: var(--ocean-deep);
  color: var(--shell);
  position: relative;
  overflow: hidden;
}
.long-cut-panel::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 28% 22%, rgba(242, 164, 92, 0.14) 0%, transparent 55%),
    radial-gradient(circle at 78% 72%, rgba(199, 100, 63, 0.10) 0%, transparent 50%);
  pointer-events: none;
}
.long-cut-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}
.long-cut-panel .kicker {
  color: var(--sunset);
  font-family: var(--font-hand);
  font-size: 1.3rem;
  letter-spacing: 0.02em;
  display: inline-block;
  transform: rotate(-1deg);
  margin-bottom: 14px;
}
.long-cut-panel h2 {
  color: var(--shell);
  margin-bottom: 28px;
  font-size: clamp(1.9rem, 3.4vw, 2.8rem);
}
.long-cut-panel h2 em {
  color: var(--sunset);
  font-style: italic;
  font-weight: 400;
}
.long-cut-panel p {
  color: rgba(253, 247, 234, 0.88);
  font-size: 1.1rem;
  line-height: 1.75;
  max-width: 620px;
  margin: 0 auto 18px;
}
.long-cut-panel .long-cut-define {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--sand-warm);
  border-top: 1px dashed rgba(242, 164, 92, 0.32);
  padding-top: 26px;
  margin: 30px auto 0;
  max-width: 540px;
}

/* ========== COMBINED ORIGIN + KEEPERS SECTION ========== */
.origin-keepers {
  padding: clamp(60px, 8vw, 100px) 0;
  background: linear-gradient(180deg, var(--shell) 0%, var(--shell-deep) 100%);
  position: relative;
}
.origin-keepers-inner {
  display: grid;
  grid-template-columns: minmax(280px, 380px) 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
}
.origin-keepers-photo {
  position: sticky;
  top: 110px;
}
.origin-keepers-photo .polaroid {
  transform: rotate(-3deg);
  width: 100%;
  max-width: 360px;
}
.origin-keepers-copy h2 { margin-bottom: 24px; }
.origin-keepers-copy p { font-size: 1.05rem; line-height: 1.7; margin-bottom: 18px; }
.origin-keepers-copy .keeper-block {
  margin-top: 40px;
  padding: 28px 32px;
  background: var(--shell);
  border-left: 4px solid var(--terracotta);
  border-radius: 4px;
  box-shadow: var(--shadow-sm);
}
.origin-keepers-copy .keeper-block h3 {
  margin-top: 6px;
  margin-bottom: 14px;
  color: var(--ocean-deep);
}
.origin-keepers-copy .keeper-tag {
  font-family: var(--font-hand);
  font-size: 1.2rem;
  color: var(--terracotta);
  letter-spacing: 0.02em;
  display: inline-block;
  transform: rotate(-1deg);
}
@media (max-width: 860px) {
  .origin-keepers-inner { grid-template-columns: 1fr; gap: 32px; }
  .origin-keepers-photo { position: static; max-width: 320px; margin: 0 auto; }
}

/* ============================================================
   Perlin-noise ambient takeover (homepage)
   ambient.js sets `js-ambient-on` on <html> and drives boats /
   ogopogo / fish via rAF. Disable the legacy keyframes so JS
   isn't fighting the CSS animation channel.
   ============================================================ */
html.js-ambient-on .ambient-boat,
html.js-ambient-on .ambient-ogopogo,
html.js-ambient-on .ambient-fish {
  animation: none !important;
}

/* ============================================================
   Cinemagraph water layer (homepage map)
   Same pattern as /world.html — looping video masked to the
   ocean region above the painted PNG.
   ============================================================ */
.map-water-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  border-radius: 28px;
  overflow: hidden;
  -webkit-mask-image: url('assets/world/base-island-water-mask.png?v=20260527190000');
  mask-image: url('assets/world/base-island-water-mask.png?v=20260527190000');
  -webkit-mask-mode: luminance;
  mask-mode: luminance;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}
.map-water-layer video {
  width: 100%;
  height: 100%;
  object-fit: fill;
  display: block;
  border-radius: inherit;
}
@media (prefers-reduced-motion: reduce) {
  .map-water-layer { display: none; }
}

/* ============================================================
   Post detail pages (posts/{section}/{slug}.html)
   ============================================================ */
.post-detail {
  --section-accent: var(--terracotta);
  --section-accent-soft: var(--rust);
  padding: 0 0 80px;
  background: var(--cream);
  position: relative;
}
/* Hero photo — full-bleed image above the article */
.post-hero {
  position: relative;
  width: 100%;
  aspect-ratio: 3/2;
  max-height: 560px;
  overflow: hidden;
  background: var(--shell-deep);
  margin-bottom: 50px;
}
.post-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.post-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, transparent 60%, rgba(253,247,234,0.4) 90%, var(--cream) 100%);
  pointer-events: none;
}
.post-hero-credit {
  position: absolute;
  bottom: 16px;
  right: 18px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: rgba(253,247,234,0.85);
  background: rgba(30,40,48,0.45);
  padding: 4px 10px;
  border-radius: 12px;
  letter-spacing: 0.02em;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 2;
}
.post-hero-credit a {
  color: rgba(253,247,234,0.95);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.post-hero-credit a:hover { color: #fff; }
@media (max-width: 700px) {
  .post-hero { aspect-ratio: 3/2; max-height: 400px; margin-bottom: 30px; }
  .post-hero-credit { font-size: 0.7rem; bottom: 10px; right: 10px; }
}
/* Decorative side rail with section accent — anchors the post to its island visually */
.post-detail::before {
  content: "";
  position: absolute;
  left: 0;
  top: 60px;
  bottom: 80px;
  width: 4px;
  background: linear-gradient(180deg, var(--section-accent) 0%, transparent 100%);
  opacity: 0.35;
  pointer-events: none;
}
.post-container {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}
.post-meta-strip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 6px 0 0;
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--stone);
  letter-spacing: 0.02em;
}
.post-meta-strip > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.post-meta-strip > span:not(:last-child)::after {
  content: "·";
  margin-left: 10px;
  color: var(--sand-warm);
}
.post-meta-strip .read-time::before {
  content: "◷";
  color: var(--section-accent);
  font-size: 0.95rem;
  margin-right: 2px;
}
/* TL;DR / "Skim me" callout at top of post */
.post-tldr {
  background: var(--shell);
  border-left: 4px solid var(--section-accent);
  border-radius: 0 6px 6px 0;
  padding: 18px 22px;
  margin: 30px 0 36px;
  font-size: 0.96rem;
  line-height: 1.55;
  color: var(--charcoal);
  position: relative;
}
.post-tldr-label {
  display: inline-block;
  font-family: var(--font-hand);
  font-size: 1.05rem;
  color: var(--section-accent);
  margin-bottom: 6px;
  transform: rotate(-1deg);
}
.post-tldr p { margin: 0 0 8px; }
.post-tldr p:last-child { margin: 0; }
.post-header {
  margin-bottom: 50px;
}
.post-back {
  display: inline-block;
  font-family: var(--font-hand);
  font-size: 1.15rem;
  color: var(--section-accent);
  margin-bottom: 28px;
  text-decoration: none;
  transition: transform .18s ease;
}
.post-back:hover {
  transform: translateX(-3px);
}
.post-eyebrow-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.post-eyebrow,
.post-eyebrow-text {
  display: inline-block;
  font-family: var(--font-hand);
  font-size: 1.05rem;
  color: var(--section-accent);
  letter-spacing: 0.02em;
}
.post-series-badge,
.post-series-mini {
  display: inline-block;
  background: var(--section-accent-soft);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.post-series-mini {
  margin-left: 10px;
  font-size: 0.68rem;
  vertical-align: middle;
}
.post-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 2.8rem);
  font-weight: 500;
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 24px;
  letter-spacing: -0.01em;
}
.post-body {
  font-family: var(--font-body);
  font-size: 1.15rem;
  line-height: 1.75;
  color: var(--charcoal);
}
.post-body p {
  margin: 0 0 26px;
}
/* Drop cap on the very first paragraph after the TL;DR */
.post-body > p:first-of-type::first-letter {
  font-family: var(--font-display);
  float: left;
  font-size: 4.2rem;
  line-height: 0.88;
  color: var(--section-accent);
  padding: 10px 14px 0 0;
  font-weight: 600;
  font-style: italic;
}
/* Decorative hand-drawn wave divider between H2 sections.
   The wave is an inline SVG path tinted by the section accent via currentColor. */
.post-body h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 500;
  color: var(--ink);
  margin: 64px 0 22px;
  padding-top: 38px;
  letter-spacing: -0.005em;
  position: relative;
  text-align: left;
}
.post-body h2::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 120px;
  height: 14px;
  background-color: var(--section-accent);
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 14'><path d='M 2 7 Q 12 1, 22 7 T 42 7 T 62 7 T 82 7 T 102 7 T 118 7' stroke='black' stroke-width='2.2' fill='none' stroke-linecap='round'/></svg>");
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 14'><path d='M 2 7 Q 12 1, 22 7 T 42 7 T 62 7 T 82 7 T 102 7 T 118 7' stroke='black' stroke-width='2.2' fill='none' stroke-linecap='round'/></svg>");
  -webkit-mask-size: 120px 14px;
  mask-size: 120px 14px;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  opacity: 0.7;
}
/* First h2 in the body doesn't need the divider (drop cap section is the opener) */
.post-body > h2:first-child { padding-top: 0; margin-top: 0; }
.post-body > h2:first-child::before { display: none; }
/* Pull-quote style for blockquotes used in body */
.post-body blockquote {
  margin: 32px 0;
  padding: 8px 28px 8px 26px;
  border-left: 4px solid var(--section-accent);
  background: linear-gradient(90deg, rgba(199,100,63,0.04) 0%, transparent 100%);
  color: var(--charcoal);
  font-style: italic;
  font-size: 1.18rem;
  line-height: 1.55;
  font-family: var(--font-display);
}
.post-body blockquote p { margin-bottom: 14px; }
.post-body blockquote p:last-child { margin-bottom: 0; }
.post-body h3 {
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 600;
  color: var(--ink);
  margin: 36px 0 14px;
}
.post-body h4 {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--charcoal);
  margin: 28px 0 12px;
}
.post-body ul,
.post-body ol {
  margin: 0 0 22px;
  padding-left: 24px;
}
.post-body li {
  margin-bottom: 8px;
}
.post-body blockquote {
  margin: 26px 0;
  padding: 4px 22px;
  border-left: 3px solid var(--section-accent);
  background: rgba(0,0,0,0.02);
  color: var(--charcoal);
  font-style: italic;
}
.post-body blockquote p { margin-bottom: 12px; }
.post-body blockquote p:last-child { margin-bottom: 0; }
.post-body a {
  color: var(--section-accent-soft);
  border-bottom: 1px solid currentColor;
  text-decoration: none;
  transition: color .18s ease;
}
.post-body a:hover {
  color: var(--section-accent);
}
.post-body strong {
  font-weight: 600;
  color: var(--ink);
}
.post-body em {
  font-style: italic;
}
.post-body code {
  background: rgba(0,0,0,0.05);
  padding: 1px 5px;
  border-radius: 3px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.92em;
}

.post-rabbit-hole {
  background: linear-gradient(180deg, var(--cream) 0%, var(--shell) 100%);
  padding: 60px 0 50px;
  border-top: 1px solid var(--sand-warm);
}
.rabbit-hole-heading {
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--ink);
  margin: 0 0 36px;
}
.post-back-bottom {
  text-align: center;
  margin: 36px 0 0;
  font-family: var(--font-hand);
  font-size: 1.1rem;
  color: var(--stone);
}
.post-back-bottom a {
  color: var(--terracotta);
  border-bottom: 1px solid var(--terracotta);
  text-decoration: none;
  margin: 0 4px;
}

/* DTC "more soon" panel-postcard variant */
.panel-postcard-soon {
  opacity: 0.78;
  border-style: dashed !important;
}
.panel-postcard-soon .pp-label {
  background: var(--stone) !important;
  color: var(--cream) !important;
}

/* ============================================================
   Travel-tip treasures (scattered through travel.html)
   ============================================================ */
.tip-cluster {
  margin: 18px 0;
  padding: 14px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  position: relative;
}
.tip-cluster-label {
  font-family: var(--font-hand);
  font-size: 0.95rem;
  color: var(--stone);
  font-style: italic;
  margin-right: 4px;
  flex-basis: 100%;
}
.tip-cluster-treasure,
.tip-cluster-cta,
.tip-cluster-hop,
.tip-cluster-deck {
  justify-content: center;
}
.tip-cluster-vault {
  border-top: 1px dashed var(--sand-warm);
  margin-top: 30px;
  padding-top: 22px;
  justify-content: center;
}
.tip-cluster-deck {
  margin: 24px 0 8px;
}
.tip-treasure {
  position: relative;
  display: inline-block;
}
.tip-pin {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--shell);
  border: 1px dashed var(--terracotta);
  border-radius: 14px;
  font-family: var(--font-hand);
  font-size: 1rem;
  color: var(--ink);
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease;
  user-select: none;
}
.tip-pin::before {
  content: "✶";
  color: var(--terracotta);
  font-size: 0.9rem;
}
.tip-pin:hover,
.tip-pin:focus-visible {
  transform: rotate(-1deg) translateY(-2px);
  box-shadow: var(--shadow-md);
  outline: none;
}
.tip-pin[aria-expanded="true"] {
  background: var(--terracotta);
  color: var(--cream);
  border-style: solid;
}
.tip-pin[aria-expanded="true"]::before {
  color: var(--cream);
}
.tip-card {
  position: absolute;
  z-index: 50;
  width: min(440px, 90vw);
  padding: 20px 22px;
  background: var(--cream);
  border: 1px solid var(--sand-warm);
  border-left: 4px solid var(--terracotta);
  border-radius: 6px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.18);
  font-family: var(--font-body);
  color: var(--charcoal);
  display: none;
  text-align: left;
  transform: rotate(-0.4deg);
}
.tip-card.is-open {
  display: block;
}
.tip-card h4 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 10px;
}
.tip-card p {
  font-size: 0.95rem;
  line-height: 1.55;
  margin: 0 0 10px;
}
.tip-card p:last-child { margin-bottom: 0; }
.tip-card .tip-close {
  position: absolute;
  top: 8px;
  right: 12px;
  background: none;
  border: 0;
  cursor: pointer;
  font-size: 1.2rem;
  color: var(--stone);
  line-height: 1;
}
.tip-card .tip-close:hover { color: var(--ink); }

/* JS-disabled fallback: if the page never gets js-on, tip cards stay always-visible inline */
html:not(.js-on) .tip-card {
  display: block;
  position: static;
  width: 100%;
  margin: 14px 0;
  transform: none;
  box-shadow: none;
  background: var(--shell);
}
html:not(.js-on) .tip-pin {
  display: none;
}

/* ========== PAINTED DIVIDERS ==========
   Watercolor section breaks. PNG sources are 2508×627 (4:1) — CSS only
   scales them DOWN, never up. background-size: contain preserves aspect
   ratio with no stretching. */
.divider-painted {
  display: block;
  width: 100%;
  max-width: 1100px;
  height: clamp(120px, 14vw, 200px);
  margin: 40px auto 40px;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: contain;
}
.divider-painted--frond { background-image: url(assets/dividers/frond.png?v=2); }
.divider-painted--wave { background-image: url(assets/dividers/wave.png?v=2); }
.divider-painted--compass { background-image: url(assets/dividers/compass.png?v=2); }
.divider-painted--inkline { background-image: url(assets/dividers/inkline.png?v=2); }

/* ========== MEGA-MENU NAV ==========
   Single "Wander" trigger opens a centered 7-column mega-menu panel. */
.site-nav { position: relative; }
.nav-item-mega { position: static; }
.nav-item-mega > a {
  position: relative;
  z-index: 5;
}
.nav-item-mega > a::after {
  content: " \25BE";  /* downward triangle */
  font-size: 0.7em;
  opacity: 0.6;
  margin-left: 4px;
}
/* invisible bridge below the trigger so mouse can travel into the mega */
.nav-item-mega > a::before {
  content: "";
  position: absolute;
  top: 100%;
  left: -16px;
  right: -16px;
  height: 22px;
  z-index: 6;
}
.nav-mega {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  width: calc(100vw - 48px);
  max-width: 1500px;
  background: #FDFBF3;
  border: 1px solid rgba(30, 40, 48, 0.08);
  border-radius: 14px;
  box-shadow: 0 18px 48px rgba(30, 40, 48, 0.14);
  padding: 32px 28px 28px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  /* Delay on hide so user can travel down into the panel without it
     vanishing mid-move. Open is instant; close waits 200ms. */
  transition:
    opacity 0.18s ease 0.18s,
    transform 0.18s ease 0.18s,
    visibility 0s linear 0.36s;
  z-index: 100;
}
.nav-item-mega:hover .nav-mega,
.nav-item-mega:focus-within .nav-mega {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
  transition:
    opacity 0.18s ease 0s,
    transform 0.18s ease 0s,
    visibility 0s linear 0s;
}
.nav-mega-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 20px;
  max-width: 1460px;
  margin: 0 auto;
}
.nav-mega-col {
  --col-accent: var(--terracotta);
}
.nav-mega-col h5 {
  margin: 0 0 18px 0;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.25;
}
.nav-mega-col h5 a {
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.15s;
}
.nav-mega-col h5 a::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--col-accent);
  flex-shrink: 0;
}
.nav-mega-col h5 a:hover { color: var(--col-accent); }
.nav-mega-col ul { list-style: none; padding: 0; margin: 0; }
.nav-mega-col li { margin: 0; }
.nav-mega-col li a {
  font-family: var(--font-sans);
  font-size: 0.84rem;
  color: var(--charcoal);
  text-decoration: none;
  display: block;
  padding: 6px 0;
  transition: color 0.15s;
  line-height: 1.35;
  word-wrap: break-word;
}
.nav-mega-col li a:hover { color: var(--col-accent); }
.nav-mega-col li a.mega-all {
  margin-top: 12px;
  padding-top: 14px;
  border-top: 1px solid rgba(30, 40, 48, 0.1);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--col-accent);
  letter-spacing: 0.01em;
}
@media (max-width: 1100px) {
  .nav-mega-grid { grid-template-columns: repeat(4, 1fr); row-gap: 28px; }
}
/* Mobile nav-mega rendering is handled inline within the hamburger
   drawer (see the @media block higher up that sets position: static
   + 1-column grid). Don't hide it here. */
/* Hide old per-item small dropdowns entirely */
.nav-item:not(.nav-item-mega):not(.nav-item-plain) .nav-dropdown { display: none; }

/* ========== COMPASS NAV ==========
   "Where else can I wander?" — a 3x2 grid of destination cards. Each
   card shows the destination's painted hero thumbnail + region name +
   a TRUE directional arrow computed from the actual map coordinates.
   No spatial-grid bullshit; the arrow does the directional work. */
.compass-nav {
  max-width: 920px;
  margin: 36px auto 28px;
}
.compass-here-line {
  text-align: center;
  font-family: var(--font-hand);
  font-size: 1.1rem;
  color: var(--stone);
  margin: 0 0 22px 0;
}
.compass-here-line strong {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  color: var(--ink);
}
.compass-back-link {
  color: var(--terracotta);
  text-decoration: none;
  border-bottom: 1px solid var(--terracotta);
  margin-left: 4px;
}
.compass-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 18px;
  align-items: stretch;
}
@media (max-width: 720px) {
  .compass-grid { grid-template-columns: 1fr 1fr; }
}
.compass-cell {
  display: contents; /* keep legacy markup happy if anything still uses .compass-cell */
}
.compass-card {
  display: block;
  text-decoration: none;
  background: #FDFBF3;
  border: 1px solid rgba(30, 40, 48, 0.08);
  border-radius: 12px;
  overflow: hidden;
  width: 100%;
  height: 100%;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  position: relative;
}
.compass-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(30, 40, 48, 0.14);
  border-color: var(--cn-accent, var(--terracotta));
}
.compass-card .compass-thumb {
  display: block;
  width: 100%;
  height: 110px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.compass-card .compass-body {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 10px;
  text-align: center;
}
.compass-arrow {
  font-size: 1.1rem;
  color: var(--cn-accent, var(--charcoal));
  line-height: 1;
  opacity: 0.85;
}
.compass-card .cn-name {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.2;
}
.compass-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 14px;
}
.compass-rose-svg {
  width: 72px;
  height: 72px;
  color: var(--terracotta);
  opacity: 0.85;
  margin-bottom: 6px;
}
.compass-here-label {
  font-family: var(--font-hand);
  font-size: 0.95rem;
  color: var(--stone);
  margin-top: 2px;
}
.compass-here-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--ink);
  margin-top: 2px;
}
.compass-back {
  margin-top: 8px;
  font-family: var(--font-hand);
  font-size: 0.9rem;
  color: var(--terracotta);
  text-decoration: none;
  border-bottom: 1px solid var(--terracotta);
}
.compass-empty {
  /* slot is empty by design — open ocean or no destination in that direction */
  background: transparent;
  border: none;
  min-height: 180px;
}
@media (max-width: 720px) {
  .compass-nav { grid-template-columns: 1fr 1fr; gap: 12px; }
  .compass-empty { display: none; }
}

/* Directional arrow on rabbit-hole-link island tags. */
.rh-arrow {
  display: inline-block;
  margin-right: 4px;
  font-size: 1.05em;
  color: var(--rh-accent, var(--terracotta));
  opacity: 0.95;
}

/* ========== ISLAND MAP NAV ==========
   The real painted island used as a navigator at the bottom of every
   sub-page. Pins sit at the canonical wr-* coordinates from world.css.
   From any peripheral region you can only directly travel to your two
   ring neighbours plus CPA Cabana (the hub). Non-adjacent regions are
   dimmed but still clickable for power users. */
.island-map-nav {
  max-width: 760px;
  margin: 50px auto 40px;
}
.imn-canvas {
  position: relative;
  width: 100%;
  aspect-ratio: 1448 / 1086;
  border-radius: 16px;
  overflow: hidden;
  background: var(--shell);
  box-shadow: 0 14px 40px rgba(30, 40, 48, 0.12);
}
.imn-base {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}
.imn-trails {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.imn-trails line {
  stroke: rgba(253, 247, 234, 0.95);
  stroke-width: 0.6;
  stroke-dasharray: 1.4 1.6;
  stroke-linecap: round;
  filter: drop-shadow(0 1px 2px rgba(30, 40, 48, 0.35));
}
.imn-pin {
  position: absolute;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--pin-color, var(--terracotta));
  border: 3px solid #FDFBF3;
  box-shadow: 0 4px 10px rgba(30, 40, 48, 0.35);
  transform: translate(-50%, -50%);
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
  z-index: 2;
}
.imn-pin--blocked {
  opacity: 0.32;
  filter: saturate(0.5);
}
.imn-pin--here {
  background: var(--ink);
  border-color: #FDFBF3;
  width: 34px;
  height: 34px;
  z-index: 3;
}
.imn-pin--here::after {
  /* "you are here" pulse ring */
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--terracotta);
  animation: imn-pulse 2.4s ease-out infinite;
  pointer-events: none;
}
.imn-pin:hover {
  transform: translate(-50%, -50%) scale(1.18);
  box-shadow: 0 10px 22px rgba(30, 40, 48, 0.4);
}
.imn-pin-label {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: #FDFBF3;
  padding: 5px 11px;
  border-radius: 6px;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}
.imn-pin-label::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--ink);
}
.imn-pin:hover .imn-pin-label,
.imn-pin:focus .imn-pin-label { opacity: 1; }

.imn-caption {
  text-align: center;
  font-family: var(--font-hand);
  font-size: 1.05rem;
  color: var(--stone);
  margin-top: 22px;
  line-height: 1.5;
}
.imn-caption strong {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  color: var(--ink);
}
.imn-caption a {
  color: var(--terracotta);
  border-bottom: 1px solid var(--terracotta);
  text-decoration: none;
  margin-left: 6px;
}

@keyframes imn-pulse {
  0%   { transform: scale(1);   opacity: 0.9; }
  100% { transform: scale(1.8); opacity: 0;   }
}


/* ========== MOBILE NAV DRAWER OVERRIDES ==========
   Must sit at the end of the file to win over the global .nav-mega
   rule that comes after the in-nav mobile @media block. */
@media (max-width: 760px) {
  body.is-nav-open .nav-mega {
    position: static !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: none !important;
    transition: none !important;
    padding: 8px 0 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    width: 100% !important;
    max-width: none !important;
  }
  body.is-nav-open .nav-mega-grid {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
    max-width: none !important;
  }
}

/* Force drawer to full height — top/bottom alone wasn't stretching on iOS/puppeteer */
@media (max-width: 760px) {
  body.is-nav-open .nav-links {
    min-height: calc(100vh - 64px) !important;
    height: calc(100vh - 64px) !important;
  }
}

/* ========== MOBILE NAV ACCORDION ==========
   On mobile, each region header acts as a tap-to-expand control. Sub-items
   are hidden by default and reveal when the column gets .is-expanded.
   Section dots stay visible; a +/- indicator sits to the right. */
@media (max-width: 760px) {
  body.is-nav-open .nav-mega-grid { gap: 0 !important; }
  body.is-nav-open .nav-mega-col {
    border-bottom: 1px solid rgba(30, 40, 48, 0.08);
  }
  body.is-nav-open .nav-mega-col:last-child { border-bottom: none; }
  body.is-nav-open .nav-mega-col h5 {
    margin: 0;
    padding: 14px 0;
    position: relative;
    cursor: pointer;
  }
  body.is-nav-open .nav-mega-col h5 a {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
  }
  /* SFTB_AUDIT_PASS_3 (2026-05-27): accordion removed on mobile. Region links navigate
   * directly. Sub-items hidden in drawer to keep it scannable (users hit the region
   * page and use the in-page nav from there). */
  body.is-nav-open .nav-mega-col h5::after { display: none; }
  body.is-nav-open .nav-mega-col ul { display: none; }
  body.is-nav-open .nav-mega-col h5 a {
    font-size: 1rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ink);
  }
}

/* Post byline */
.post-author {
  margin: 8px 0 16px;
  font-family: var(--font-hand);
  font-size: 1.1rem;
  color: var(--stone);
}
.post-author strong {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  color: var(--ink);
}

/* ========== TOPIC FILTER (Peter Attia pattern) ========== */
.topic-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 22px auto 8px;
  max-width: 760px;
}
.topic-filter button {
  background: transparent;
  border: 1px solid rgba(30, 40, 48, 0.18);
  border-radius: 999px;
  padding: 7px 14px;
  font-family: var(--font-sans);
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--charcoal);
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.topic-filter button:hover {
  border-color: var(--accent, var(--terracotta));
  color: var(--accent, var(--terracotta));
}
.topic-filter button.is-active {
  background: var(--accent, var(--terracotta));
  color: var(--shell);
  border-color: var(--accent, var(--terracotta));
}
.topic-tagline {
  text-align: center;
  font-family: var(--font-hand);
  font-size: 1.25rem;
  color: var(--stone);
  margin: 0 auto 12px;
  max-width: 660px;
  line-height: 1.4;
}
.postcard[hidden] { display: none !important; }

/* ========== CATEGORY HEADER — Peter Attia 2-col pattern ========== */
.category-header {
  padding: 56px 0 48px;
  border-bottom: 1px solid rgba(30, 40, 48, 0.06);
}
.category-header-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
  margin-top: 12px;
}
.category-header-text { min-width: 0; }
.category-header-image {
  position: sticky;
  top: 32px;
}
.category-header-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  background: var(--shell-deep);
}

/* ========== FIELD NOTES — the right-column sketchbook page ========== */
.field-notes {
  position: relative;
  background-color: #FDF7EA;
  background-image:
    repeating-linear-gradient(
      to bottom,
      transparent 0px,
      transparent 33px,
      rgba(43, 38, 30, 0.06) 33px,
      rgba(43, 38, 30, 0.06) 34px
    );
  border-radius: 3px;
  padding: 70px 40px;
  transform: rotate(-1.2deg);
  box-shadow:
    0 1px 1px rgba(0,0,0,0.04),
    0 6px 16px rgba(30, 40, 48, 0.14),
    0 20px 50px rgba(30, 40, 48, 0.08),
    inset 0 0 80px rgba(232, 212, 168, 0.22);
  color: var(--ink);
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.fn-tape {
  position: absolute;
  top: -10px;
  width: 82px;
  height: 22px;
  background: rgba(232, 212, 168, 0.78);
  box-shadow: 0 1px 3px rgba(0,0,0,0.10);
  border-radius: 1px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 6%, black 94%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0%, black 6%, black 94%, transparent 100%);
}
.fn-tape-left  { left: 14%;  transform: rotate(-5deg); }
.fn-tape-right { right: 14%; transform: rotate(4deg); background: rgba(199, 100, 63, 0.22); }
.fn-eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--cat-accent, var(--terracotta));
  margin: 0 0 18px;
  font-weight: 600;
}
.fn-title {
  font-family: var(--font-hand);
  font-size: clamp(2rem, 3.2vw, 2.7rem);
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 26px;
  line-height: 1.05;
  transform: rotate(-0.6deg);
  letter-spacing: 0.005em;
}
.fn-note {
  font-family: var(--font-hand);
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--charcoal);
  margin: 0 0 32px;
}
.fn-polaroid {
  background: #FCF4E1;
  padding: 22px 22px 30px;
  border-radius: 2px;
  box-shadow:
    0 1px 1px rgba(0,0,0,0.06),
    0 8px 22px rgba(30, 40, 48, 0.16),
    0 2px 4px rgba(30, 40, 48, 0.08);
  transform: rotate(-3deg);
  display: block;
  margin: 0 auto;
  max-width: 78%;
}
.fn-doodle {
  display: block;
  width: 100%;
  height: auto;
  transform: none;
  filter: none;
  pointer-events: none;
  user-select: none;
}
.fn-placeholder {
  width: 220px;
  height: 220px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-hand);
  font-size: 4rem;
  color: rgba(43, 38, 30, 0.18);
  transform: rotate(-2deg);
}
@media (max-width: 880px) {
  .fn-polaroid { max-width: 240px; padding: 18px 18px 26px; }
  .field-notes { min-height: 360px; padding: 50px 28px; }
}

/* ========== UNDER CONSTRUCTION — minimal gap-pillar treatment ========== */
.under-construction {
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
  padding: 28px 24px 32px;
}
.uc-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cat-accent, var(--terracotta));
  font-weight: 600;
  margin: 0 0 14px;
}
.uc-body {
  font-family: var(--font-body);
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--charcoal);
  margin: 0;
}
.uc-body a {
  color: var(--cat-accent, var(--terracotta));
  border-bottom: 1px solid currentColor;
  font-weight: 500;
}

/* ========== WRITING IN PROGRESS — deprecated (kept for back-compat) ========== */
.writing-in-progress {
  max-width: 720px;
  margin: 0 auto;
}
.wip-card {
  background: #FDFBF3;
  border: 1px dashed var(--cat-accent, var(--terracotta));
  border-radius: 18px;
  padding: 44px 48px 40px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(30, 40, 48, 0.06);
}
.wip-eyebrow {
  font-family: var(--font-hand);
  font-size: 1.2rem;
  color: var(--cat-accent, var(--terracotta));
  margin: 0 0 6px;
  transform: rotate(-1deg);
  display: inline-block;
}
.wip-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 500;
  color: var(--ink);
  margin: 8px 0 18px;
  line-height: 1.2;
}
.wip-body {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--charcoal);
  margin: 0 0 24px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}
.wip-cta {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  color: var(--cat-accent, var(--terracotta));
  padding: 12px 22px;
  border: 1.5px solid var(--cat-accent, var(--terracotta));
  border-radius: 999px;
  text-decoration: none;
  transition: background-color .2s, color .2s;
}
.wip-cta:hover {
  background-color: var(--cat-accent, var(--terracotta));
  color: #FDF7EA;
  border-bottom-color: var(--cat-accent, var(--terracotta));
}

/* DTC "writing in progress" placeholder in mega-menu */
.nav-mega-col .mega-soon a {
  font-style: italic;
  color: var(--stone);
  opacity: 0.85;
}
.fn-sig {
  font-family: var(--font-hand);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
  transform: rotate(-1.5deg);
  display: inline-block;
}
.fn-meta {
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--stone);
  margin: 8px 0 0;
}
.fn-dot { opacity: 0.55; margin: 0 4px; }
.fn-seal {
  position: absolute;
  bottom: 26px;
  right: 26px;
  width: 76px;
  height: 76px;
  transform: rotate(9deg);
  filter: drop-shadow(0 2px 5px rgba(0,0,0,0.18));
}
@media (max-width: 880px) {
  .field-notes {
    transform: rotate(-0.5deg);
    padding: 48px 32px 56px;
    max-width: 480px;
    margin: 0 auto;
  }
  .fn-title { font-size: 1.9rem; }
  .fn-note { font-size: 1.2rem; }
  .fn-sig { font-size: 1.4rem; }
}
@media (max-width: 880px) {
  .category-header { padding: 40px 0 36px; }
  .category-header-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .category-header-image { position: static; order: -1; }
  .category-header-image img { max-width: 480px; margin: 0 auto; }
}

/* Legacy alias — keep old .category-banner blocks rendering until rebuilt */
.category-banner {
  padding: 56px 0 30px;
  border-bottom: 1px solid rgba(30, 40, 48, 0.06);
}

.category-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 6px;
}
.category-breadcrumb a {
  color: var(--stone);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color .15s, color .15s;
}
.category-breadcrumb a:hover { color: var(--cat-accent, var(--terracotta)); border-bottom-color: currentColor; }
.crumb-sep { opacity: 0.35; }
.crumb-current { color: var(--ink); font-weight: 500; }
.category-eyebrow {
  display: inline-block;
  font-family: var(--font-hand);
  font-size: 1.1rem;
  color: var(--cat-accent, var(--terracotta));
  margin-bottom: 6px;
  transform: rotate(-1deg);
}
.category-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.6vw, 3.8rem);
  font-weight: 400;
  font-variation-settings: "opsz" 144;
  color: var(--ink);
  margin: 12px 0 22px;
  line-height: 1.02;
  letter-spacing: -0.015em;
}
.category-lead {
  font-size: 1.06rem;
  color: var(--charcoal);
  line-height: 1.7;
  margin: 0 0 1.1em;
}
.category-lead:last-child { margin-bottom: 0; }

/* ========== CATEGORY BODY (rich content under the title) ========== */
.category-body {
  font-size: 1.04rem;
  color: var(--charcoal);
  line-height: 1.72;
}
.category-body p {
  margin: 0 0 1.05em;
}
.category-body p:last-child { margin-bottom: 0; }
.category-body .lede {
  font-size: 1.18rem;
  line-height: 1.55;
  color: var(--ink);
  font-weight: 500;
  margin-bottom: 1.2em;
}
.category-body strong {
  color: var(--ink);
  font-weight: 600;
}
.category-body a {
  color: var(--cat-accent, var(--terracotta));
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  transition: background .15s ease;
  padding-bottom: 1px;
}
.category-body a:hover {
  background: rgba(0,0,0,0.04);
}
.category-body ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.2em;
  border-left: 3px solid var(--cat-accent, var(--terracotta));
}
.category-body ul li {
  padding: 8px 0 8px 16px;
  margin: 0;
  position: relative;
  line-height: 1.6;
}
.category-body ul li + li {
  border-top: 1px dashed rgba(30,40,48,0.10);
}
.category-body .reading-list {
  background: rgba(253, 247, 234, 0.55);
  border: 1px solid rgba(30,40,48,0.08);
  border-left: 4px solid var(--cat-accent, var(--terracotta));
  border-radius: 8px;
  padding: 18px 22px;
  margin: 1.4em 0;
}
.category-body .reading-list-label {
  font-family: var(--font-hand);
  font-size: 1.05rem;
  color: var(--cat-accent, var(--terracotta));
  margin: 0 0 8px;
  letter-spacing: 0.02em;
}
.category-body .reading-list ul {
  border-left: none;
  margin: 0;
}
.category-body .reading-list ul li {
  padding: 6px 0;
}
.category-body .reading-list ul li + li {
  border-top: 1px dashed rgba(30,40,48,0.10);
}
.category-body .kicker {
  font-style: italic;
  color: var(--stone);
  margin-top: 1.4em;
}

/* ========== TOPIC CARDS (Peter Attia-style with thumbnails) ========== */
.topic-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  max-width: 980px;
  margin: 0 auto;
}
@media (max-width: 760px) {
  .topic-card-grid { grid-template-columns: 1fr; gap: 24px; }
}
.topic-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border: 1px solid rgba(30, 40, 48, 0.08);
  border-radius: 14px;
  overflow: hidden;
  background: #FDFBF3;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.topic-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(30, 40, 48, 0.14);
  border-color: var(--cat-accent, var(--terracotta));
}
.topic-card-thumb {
  width: 100%;
  aspect-ratio: 756 / 500;
  background-size: cover;
  background-position: center;
  background-color: var(--shell);
}
.topic-card-body {
  padding: 22px 24px 26px;
}
.topic-card-tag {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--cat-accent, var(--terracotta));
  margin-bottom: 10px;
}
.topic-card-title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 500;
  color: var(--ocean-deep);
  line-height: 1.22;
  margin: 0 0 12px;
  letter-spacing: -0.005em;
}
.topic-card:hover .topic-card-title { color: var(--cat-accent, var(--terracotta)); }
.topic-card-excerpt {
  color: var(--charcoal);
  font-size: 0.96rem;
  line-height: 1.6;
  margin: 0 0 14px;
}
.topic-card-cta {
  display: inline-block;
  font-family: var(--font-hand);
  font-size: 1.05rem;
  color: var(--cat-accent, var(--terracotta));
}

/* Category hero banner — wide, painterly, sits above the title */
.category-hero {
  width: 100%;
  height: clamp(200px, 28vw, 360px);
  background-size: cover;
  background-repeat: no-repeat;
  border-bottom: 1px solid rgba(30, 40, 48, 0.06);
}

/* Text-only topic card variant: no thumbnail, accent left bar instead */
.topic-card--text {
  border-left: 4px solid var(--cat-accent, var(--terracotta));
}
.topic-card--text .topic-card-body { padding: 26px 28px 28px; }


/* SFTB_CSS_V3_PATCHED */
/* v3: prevent brand text wrapping on narrower nav contexts */
.site-nav .brand { white-space: nowrap !important; flex-shrink: 0; }
.site-nav .brand-mark { flex-shrink: 0; }

/* SFTB_AUDIT_FOCUS_VISIBLE — audit F5.1 (2026-05-27)
 * Generic high-contrast focus for all interactive elements */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
[role="button"]:focus-visible {
  outline: 3px solid #C7643F !important;
  outline-offset: 3px;
  border-radius: 4px;
}

/* SFTB_AUDIT_ORANGE_CONTRAST — audit F5.15 (2026-05-27) + P1.9 broadened (2026-05-27 PM)
 * Override orange used in small text to deeper variant for WCAG 4.5:1 contrast.
 * Targets all small/secondary text using the brand terracotta. */
.coord-line,
.italic-caption,
small.orange-text,
p.italic-caption,
small,
.text-sm,
.fine-print,
.eyebrow,
.byline,
.meta,
.caption,
.uc-sub,
.uc-sub a,
figcaption,
.footer-col li a,
.site-footer a,
nav .nav-meta {
  color: #A4502F !important;
}

/* SFTB_AUDIT_MAP_OVERLAYS — audit F2.4 (2026-05-27)
 * 7 per-region clickable overlays on the homepage island map.
 * Positioned absolutely at region center percentages; sit above .map-link in z-order. */
.map-wrap { position: relative; }
.map-region-overlay {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 90px;
  height: 90px;
  border-radius: 50%;
  z-index: 5;
  display: block;
  text-decoration: none;
  background: transparent;
  /* Subtle pulse on hover so users can tell something is clickable */
  transition: background-color 200ms ease, box-shadow 200ms ease;
}
.map-region-overlay:hover,
.map-region-overlay:focus-visible {
  background-color: rgba(199, 100, 63, 0.12);
  box-shadow: 0 0 0 2px rgba(199, 100, 63, 0.4);
}
.map-link {
  /* lower z so overlays catch first; map-link still picks up clicks between regions */
  z-index: 1;
}
@media (max-width: 760px) {
  .map-region-overlay { width: 60px; height: 60px; }
}

/* ============================================================
 * SFTB_AUDIT_PASS_3 (2026-05-27 evening) — bundle of P0/P1/P2 fixes
 * ============================================================ */

/* Visually-hidden utility — used by gate-form label + skip-to-content link */
.visually-hidden,
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

/* P1.7 — Skip-to-content link, visible only on focus */
.skip-to-content {
  position: absolute;
  top: -100px;
  left: 12px;
  z-index: 9999;
  background: var(--terracotta, #C7643F);
  color: #fff !important;
  padding: 12px 20px;
  border-radius: 6px;
  font-family: var(--font-display, system-ui), system-ui, sans-serif;
  font-size: 1rem;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
  transition: top 150ms ease;
}
.skip-to-content:focus,
.skip-to-content:focus-visible {
  top: 12px;
  outline: 3px solid #fff;
  outline-offset: 2px;
}

/* P1.6 — Enlarge homepage map hotspots + visible hover halo */
.map-region-overlay {
  width: 130px !important;
  height: 130px !important;
  cursor: pointer;
}
@media (max-width: 760px) {
  .map-region-overlay { width: 86px !important; height: 86px !important; }
}
.map-region-overlay::after {
  content: attr(data-region-name);
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translate(-50%, 100%);
  background: rgba(30, 40, 48, 0.92);
  color: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  font-family: var(--font-display, system-ui), system-ui, sans-serif;
  font-size: 0.85rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 150ms ease;
  z-index: 6;
}
.map-region-overlay:hover::after,
.map-region-overlay:focus-visible::after {
  opacity: 1;
}

/* P2.25 — Mega-menu transparency flash fix (force solid bg from frame 0) */
.mega-panel,
.mega-menu {
  background: var(--cream, #FDF7EA) !important;
  backdrop-filter: none;
}

/* P2.28 — Normalize link underlines: only show on body prose links, not nav/buttons */
.site-nav a,
.site-nav a:hover,
.site-footer a,
.mega-panel a,
.btn,
[role="button"] {
  text-decoration: none;
}
.post-body a,
.gate-body a,
article a:not(.btn) {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

/* P2.23 — Cap body prose width at 720px on wide monitors */
.post-body,
.manifesto-body,
.gate-body {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

/* P2.24 — Script-font sizing consistency (hand font normalized) */
[style*="var(--font-hand)"],
.script,
.hand {
  line-height: 1.4;
}

/* P2.16 — Region card hover affordance */
.region-card,
.topic-card,
.compass-card {
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.region-card:hover,
.topic-card:hover,
.compass-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(30, 40, 48, 0.14);
}

/* P2.21 — Footer hidden-treasure pill: visible affordance */
.treasure-pill,
.footer-treasure {
  border: 1px dashed rgba(199, 100, 63, 0.45);
  padding: 6px 12px;
  border-radius: 999px;
  display: inline-block;
  font-size: 0.8rem;
  opacity: 0.7;
}
.treasure-pill:hover { opacity: 1; }

/* P2.22 — Hero img aspect-ratio placeholders prevent layout shift */
.hero-img,
.region-hero-img,
.welcome-hero-img,
.painted-hero img {
  aspect-ratio: var(--hero-ar, 3 / 2);
  width: 100%;
  height: auto;
  background-color: rgba(199, 100, 63, 0.05);
  display: block;
}

/* P2.27 — Quiz card: whole surface clickable */
.quiz-card,
.path-card {
  position: relative;
  cursor: pointer;
}
.quiz-card a::after,
.path-card a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* P2.17 — Tighten sub-page whitespace on wide layouts */
@media (min-width: 1100px) {
  .pillar-body { padding-top: 32px; padding-bottom: 32px; }
  .gap-block + .gap-block { margin-top: 32px; }
}

/* P2.18 — Compass N button: visual cue + clearer label affordance */
.compass-n,
.compass-button[data-bearing="N"] {
  /* keep small north arrow but ensure aria-label present */
  position: relative;
}
.compass-button[data-bearing="N"]::after {
  content: "N";
  position: absolute;
  bottom: -16px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.7rem;
  color: var(--terracotta, #C7643F);
  font-weight: 600;
}

/* P2.26 — Region preview panel hidden state guards interaction */
.region-preview[hidden],
.region-preview[aria-hidden="true"] {
  display: none !important;
  pointer-events: none;
}

/* ============================================================
 * SFTB_EXIT_PLANNING (2026-05-28) — yacht hotspot + nav pill + landing page
 * ============================================================ */

/* === Header pill: 'Exit Planning', matches manifesto pill style with ocean accent === */
.nav-exit {
  color: #13476C !important;
  font-weight: 700 !important;
  font-family: var(--font-display, 'Fraunces', serif);
  font-style: italic;
  letter-spacing: 0.01em;
  position: relative;
  padding: 4px 12px !important;
  border: 1.5px solid #13476C !important;
  border-radius: 999px;
  transition: background .18s ease, color .18s ease, transform .18s ease;
  text-decoration: none;
}
.nav-exit:hover,
.nav-exit:focus-visible {
  background: #13476C;
  color: var(--shell) !important;
  transform: translateY(-1px);
  border-bottom: 1.5px solid #13476C !important;
}
.nav-exit.current { background: #13476C; color: var(--shell) !important; }

/* === Homepage island map: yacht sailing off into the upper-right open sea === */
.map-yacht {
  position: absolute;
  /* Right side of the map, above the island silhouette, open ocean */
  right: 5%;
  top: 7%;
  width: 9%;          /* sized down — feels like part of the painted scene */
  max-width: 110px;
  display: block;
  z-index: 6;          /* above .map-link (z-index 1) and .map-region-overlay (5) */
  text-decoration: none;
  cursor: pointer;
  transition: transform 600ms cubic-bezier(.22,.61,.36,1), filter 250ms ease;
  animation: yacht-bob 6s ease-in-out infinite;
  /* watercolor wake shadow blending into ocean */
  filter: drop-shadow(0 4px 6px rgba(19, 71, 108, 0.35)) drop-shadow(0 0 14px rgba(43, 102, 154, 0.25));
}
.map-yacht img {
  width: 100%;
  height: auto;
  display: block;
}
.map-yacht::after {
  content: attr(data-region-name);
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translate(-50%, 100%);
  background: rgba(19, 71, 108, 0.94);
  color: #FDF7EA;
  padding: 6px 12px;
  border-radius: 6px;
  font-family: var(--font-display, 'Fraunces', serif);
  font-style: italic;
  font-size: 0.82rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
  z-index: 7;
}
.map-yacht:hover,
.map-yacht:focus-visible {
  transform: translate(8px, -4px);  /* drifts further away on hover */
  filter: drop-shadow(0 10px 18px rgba(19, 71, 108, 0.28));
}
.map-yacht:hover::after,
.map-yacht:focus-visible::after {
  opacity: 1;
}
@keyframes yacht-bob {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-4px) rotate(-0.6deg); }
}
@media (prefers-reduced-motion: reduce) {
  .map-yacht { animation: none; }
}
@media (max-width: 760px) {
  .map-yacht { width: 14%; right: 4%; top: 5%; max-width: 70px; }
}

/* === /world/ map: yacht positioned in the open sea off the island's east side === */
.world-yacht {
  position: absolute;
  /* In canvas pixels — top-right open ocean, well clear of the island regions */
  left: 86%;
  top: 12%;
  width: 150px;
  display: block;
  z-index: 5;
  text-decoration: none;
  cursor: pointer;
  transition: transform 500ms ease, filter 250ms ease;
  animation: yacht-bob 7s ease-in-out infinite;
  filter: drop-shadow(0 6px 10px rgba(19, 71, 108, 0.40)) drop-shadow(0 0 18px rgba(43, 102, 154, 0.28));
}
.world-yacht img {
  width: 100%;
  height: auto;
  display: block;
}
.world-yacht:hover,
.world-yacht:focus-visible {
  transform: translate(10px, -6px);
  filter: drop-shadow(0 14px 22px rgba(19, 71, 108, 0.34));
}

/* === Exit Planning landing page === */
.exit-page {
  background:
    radial-gradient(ellipse 80% 60% at 80% 0%, rgba(19, 71, 108, 0.10), transparent 60%),
    radial-gradient(ellipse 90% 50% at 10% 100%, rgba(199, 100, 63, 0.08), transparent 60%),
    var(--cream, #FDF7EA);
}
.exit-hero {
  padding: clamp(50px, 7vw, 90px) 0 clamp(30px, 4vw, 60px);
  position: relative;
  overflow: hidden;
}
.exit-hero::before {
  /* hand-drawn ocean horizon line behind the hero copy */
  content: "";
  position: absolute;
  inset: auto 0 18% 0;
  height: 1px;
  background: repeating-linear-gradient(90deg, rgba(19,71,108,0.18) 0 8px, transparent 8px 18px);
  pointer-events: none;
}
.exit-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  position: relative;
}
@media (max-width: 880px) {
  .exit-hero-grid { grid-template-columns: 1fr; gap: 24px; text-align: left; }
}
.exit-eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  color: #13476C;
  margin-bottom: 14px;
  font-family: var(--font-sans, 'Inter', sans-serif);
  font-weight: 600;
}
.exit-h1 {
  font-family: var(--font-display, 'Fraunces', serif);
  font-size: clamp(2.1rem, 4.6vw, 3.2rem);
  font-weight: 500;
  line-height: 1.06;
  color: var(--ink, #1a2832);
  margin: 0 0 22px;
  letter-spacing: -0.01em;
}
.exit-h1 em {
  font-style: italic;
  color: #13476C;
  white-space: nowrap; /* prevent the emphasis spans from wrapping mid-phrase */
}
.exit-lede {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #3d4d5c;
  margin: 0 0 18px;
  max-width: 54ch;
}
.exit-lede strong { color: #13476C; font-weight: 600; }
.exit-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  margin-top: 26px;
}
.exit-cta-primary {
  background: #13476C !important;
  color: var(--shell, #FDF7EA) !important;
  padding: 13px 24px !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  border-radius: 4px !important;
  box-shadow: 0 6px 16px rgba(19, 71, 108, 0.22);
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.exit-cta-primary:hover,
.exit-cta-primary:focus-visible {
  background: #0d3450 !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(19, 71, 108, 0.30);
}
.exit-cta-secondary {
  color: #13476C !important;
  text-decoration: none;
  font-size: 0.95rem;
  font-family: var(--font-display, 'Fraunces', serif);
  font-style: italic;
  border-bottom: 1.5px solid #13476C;
  padding-bottom: 2px;
}

/* Yacht visual — placed on a watercolor wash, not floating naked on cream */
.exit-hero-yacht {
  position: relative;
  text-align: center;
}
.exit-hero-yacht::before {
  /* watercolor ocean wash beneath the yacht */
  content: "";
  position: absolute;
  inset: 18% -6% 8% -6%;
  background:
    radial-gradient(ellipse 50% 60% at 50% 50%, rgba(43, 102, 154, 0.22) 0%, rgba(43, 102, 154, 0.10) 40%, transparent 75%);
  filter: blur(8px);
  z-index: 0;
}
.exit-hero-yacht picture,
.exit-hero-yacht img {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 520px;
  height: auto;
  display: inline-block;
  filter: drop-shadow(0 14px 22px rgba(19, 71, 108, 0.28));
  animation: yacht-bob 7s ease-in-out infinite;
}
.exit-yacht-caption {
  position: relative;
  z-index: 2;
  font-family: var(--font-hand, 'Caveat', cursive);
  font-size: 1.35rem;
  color: #3d4d5c;
  margin: 4px 0 0;
  transform: rotate(-1deg);
}
@media (prefers-reduced-motion: reduce) {
  .exit-hero-yacht img { animation: none; }
}

/* The middle band — single stat hero + chip-grid deliverables in one tight section */
.exit-band {
  background: #13476C;
  color: var(--shell, #FDF7EA);
  padding: clamp(48px, 6vw, 80px) 0;
  position: relative;
  overflow: hidden;
}
.exit-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 30%, rgba(253, 247, 234, 0.07) 0, transparent 22%),
    radial-gradient(circle at 88% 70%, rgba(253, 247, 234, 0.05) 0, transparent 20%);
  pointer-events: none;
}
.exit-band-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}
@media (max-width: 880px) {
  .exit-band-grid { grid-template-columns: 1fr; gap: 32px; }
}
.exit-bigstat {
  font-family: var(--font-display, 'Fraunces', serif);
  font-weight: 500;
  font-size: clamp(3.4rem, 7vw, 5rem);
  line-height: 0.95;
  color: var(--sand-warm, #f2d6a8);
  margin: 0 0 12px;
}
.exit-bigstat-sub {
  font-family: var(--font-display, 'Fraunces', serif);
  font-style: italic;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: rgba(253, 247, 234, 0.92);
  margin: 0;
  line-height: 1.45;
}
.exit-bigstat-meta {
  margin-top: 18px;
  font-size: 0.85rem;
  color: rgba(253, 247, 234, 0.62);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.exit-chips {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 22px;
}
@media (max-width: 540px) {
  .exit-chips { grid-template-columns: 1fr; }
}
.exit-chip {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.98rem;
  line-height: 1.4;
  color: rgba(253, 247, 234, 0.95);
}
.exit-chip-dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--sand-warm, #f2d6a8);
  box-shadow: 0 0 0 4px rgba(242, 214, 168, 0.18);
}

/* Final CTA card — short, decorated with the wax-seal SVG motif */
.exit-close {
  padding: clamp(50px, 6vw, 80px) 0;
  text-align: center;
}
.exit-close-inner {
  max-width: 640px;
  margin: 0 auto;
  background: var(--shell, #fbf3e1);
  border: 1px solid rgba(19, 71, 108, 0.12);
  border-radius: 10px;
  padding: 40px 32px 36px;
  position: relative;
  box-shadow: 0 18px 38px rgba(19, 71, 108, 0.08);
}
.exit-close-seal {
  position: absolute;
  top: -22px;
  left: 50%;
  transform: translateX(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #13476C;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sand-warm, #f2d6a8);
  box-shadow: 0 4px 12px rgba(19, 71, 108, 0.28);
  font-family: var(--font-display, 'Fraunces', serif);
  font-style: italic;
  font-size: 1.2rem;
}
.exit-close h2 {
  font-family: var(--font-display, 'Fraunces', serif);
  font-weight: 500;
  font-size: clamp(1.6rem, 2.6vw, 2rem);
  margin: 14px 0 12px;
  color: var(--ink, #1a2832);
  line-height: 1.2;
}
.exit-close p {
  font-size: 1.02rem;
  line-height: 1.55;
  color: #3d4d5c;
  margin: 0 0 22px;
}
.exit-close .exit-cta-row { justify-content: center; }

/* sftb-fixes-2026-05-28 */
/* Exit-planning: no underline on CTA button hover */
.exit-cta-primary:hover,
.exit-cta-secondary:hover,
a.exit-cta-primary:hover,
a.exit-cta-secondary:hover { text-decoration: none !important; border-bottom: none !important; }


/* Front-page: hide region-panel side-drawers (map is a pure link to /world/) */
.island-map-hero .region-panel { display: none !important; }

/* world-yacht: no underline */
.world-yacht, .world-yacht:hover, .world-yacht:focus { text-decoration: none !important; border-bottom: none !important; outline: none; }
.world-yacht { pointer-events: auto !important; cursor: pointer; }

/* sftb-fix: remove decorative horizon line + tighten hero bottom spacing */
.exit-hero::before { display: none !important; }
.exit-hero-grid { align-items: start; }

/* nav-exit pill: suppress the coral underline indicator (pill bg is already the active state) */
.nav-exit.current::after { display: none !important; }

/* ============================================================
   MOBILE AUDIT FIXES — 2026-06-01 (v0.4.4)
   ============================================================ */

/* 1) Newsletter gate-form: on phones the input+button pill was a
      fixed flex row, so the "Get in" button overflowed/clipped off
      the right edge. Stack it vertically and let the input shrink. */
@media (max-width: 600px) {
  .gate-form {
    flex-direction: column;
    border-radius: 20px;
    padding: 12px;
    gap: 12px;
  }
  .gate-form input {
    min-width: 0;
    width: 100%;
    text-align: center;
    padding: 14px 16px;
  }
  .gate-form button {
    width: 100%;
    padding: 15px 24px;
    font-size: 1rem;
  }
}

/* 2) Mobile nav drawer used 100vh, which on iOS Safari is taller than
      the visible viewport (the URL bar overlaps it), pushing the bottom
      menu items off-screen. Use dynamic viewport height where supported. */
@media (max-width: 760px) {
  body.is-nav-open .nav-links {
    min-height: calc(100dvh - 64px) !important;
    height: calc(100dvh - 64px) !important;
  }
}

/* 3) HOMEPAGE HERO ON MOBILE (2026-06-01, v0.4.5)
      The desktop .world-welcome::after horizontal cream gradient was still
      active on phones, painting the left third of the stacked full-width
      image solid cream -> the "half an image, then text underneath" look.
      Disable that overlay on mobile and present the watercolor as one
      full-bleed banner that melts into the cream above and below, matching
      the immersive feel of the desktop hero. */
@media (max-width: 880px) {
  .world-welcome { position: relative; }
  .world-welcome::after { display: none !important; }
  .welcome-beach-bleed {
    position: relative !important;
    top: auto !important; right: auto !important; bottom: auto !important; left: auto !important;
    width: 100% !important;
    height: clamp(340px, 82vw, 460px) !important;
    object-fit: cover !important;
    object-position: 76% center !important;
    margin: 0 !important;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 15%, #000 80%, transparent 100%) !important;
    mask-image: linear-gradient(to bottom, transparent 0%, #000 15%, #000 80%, transparent 100%) !important;
  }
  .welcome-hero-grid { gap: 8px; }
  .welcome-copy { padding-top: 6px; }
}

/* 4) /world yacht on mobile (2026-06-01, v0.4.6)
      .world-yacht is positioned in % (scales with the map) but its width was
      a hardcoded 150px. On the large desktop map that's a small corner boat;
      on the ~393px-wide mobile map it became ~38% of the screen and spilled
      off the right edge. Scale the width to a % of the map so it keeps the
      same proportion everywhere (~13% ~= the 150px it has on desktop). */
@media (max-width: 720px), (hover: none) and (pointer: coarse) {
  .world-yacht { width: 13% !important; }
}

/* 5) HOMEPAGE MAP ON MOBILE -> whole map taps through to /world (2026-06-01, v0.4.7)
      Desktop keeps the per-region overlays (z 5) and yacht (z 6) above
      .map-link (z 1) so you can click a single region. On a small touch
      screen those 86px region circles blanket the island, so a tap almost
      never reaches the map link. On mobile, lift .map-link above them so
      tapping anywhere on the map opens the full interactive /world map. */
@media (max-width: 760px), (hover: none) and (pointer: coarse) {
  .map-link { z-index: 20 !important; }
}

/* ============================================================
   FULL-SITE AUDIT FIXES — 2026-06-01 (v0.4.8)
   ============================================================ */

/* 6) /exit-planning navy stats chips: long labels ("LCGE planning for
      Canadian sellers", "...QoE analysts") were clipping at the right edge
      on mobile because the flex chip's text span couldn't shrink/wrap.
      Let it wrap. */
@media (max-width: 600px) {
  .exit-chip { min-width: 0; }
  .exit-chip > span:last-child { min-width: 0; overflow-wrap: anywhere; }
}

/* 7) Google reCAPTCHA v3 badge (Contact Form 7) floats fixed bottom-right on
      EVERY page and overlaps footer links / final content. Hide it site-wide;
      Google's terms allow this when the required attribution text is shown,
      which is added to the site footer. */
.grecaptcha-badge { visibility: hidden !important; opacity: 0 !important; pointer-events: none !important; }
