    /* ═══════════════════════════════════════════════════
   PALETTE — la caixa mana per al lloc, l'art dels
   components mana per a les corporacions i les fases.
   Cap color fora d'aquestes variables.
═══════════════════════════════════════════════════ */
    :root {
      --parch-light: #FCFAF5;
      --parch-mid: #F4EEE1;
      --parch-dark: #E2D7C0;
      --parch-deep: #C6B592;
      --card: #FFFFFF;
      --ink: #33281A;
      --ink-soft: #5E4F3A;
      --ink-faint: #8B7A62;
      --red: #900504;
      --red-mid: #A81808;
      --gold: #B08A3E;
      --gold-light: #D2AC5E;
      --gold-pale: #EEDCA8;
      --gold-deep: #8A6A28;
      --sea: #3A6186;
      --navy: #0C2238;      /* el blau de les lletres de la caixa */
      --navy-soft: #1B3F60; /* blau mig, per a degradats i traços */
      --shadow: rgba(12, 34, 56, 0.14);
      --navy-deep: #061627;
      /* Corporacions — fills exactes dels tokens i les cartes de companyia */
      --co-rnc: #1A3A5C;
      --co-rnc-soft: #3A6186;
      --co-rcc: #7B2D00;
      --co-rcc-soft: #B04010;
      --co-ccm: #4A235A;
      --co-ccm-soft: #7A3A8A;
      --co-radm: #2D5A1B;
      --co-radm-soft: #4A8A2B;
      /* Fases de lloseta, en versió tinta perquè es llegeixin sobre pergamí */
      --phase-yellow: #9A7800;
      --phase-green: #2A5A30;
      --phase-brown: #6A3A10;
      --phase-grey: #5A5A5A;
    }

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

    html {
      scroll-behavior: smooth;
    }

    body {
      background: var(--parch-light);
      color: var(--ink);
      font-family: 'IM Fell English', serif;
      font-size: 18px;
      line-height: 1.75;
      overflow-x: hidden;
    }

    /* Texture noise */
    body::before {
      content: '';
      position: fixed;
      inset: 0;
      pointer-events: none;
      z-index: 0;
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
    }

    /* Hex pattern */
    body::after {
      content: '';
      position: fixed;
      inset: 0;
      pointer-events: none;
      z-index: 0;
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='74'%3E%3Cpolygon points='32,3 61,19 61,55 32,71 3,55 3,19' fill='none' stroke='%23B08A3E' stroke-width='0.6' opacity='0.1'/%3E%3C/svg%3E");
      background-size: 64px 74px;
    }

    nav,
    .hero,
    .page-content,
    footer,
    .modal-overlay {
      position: relative;
      z-index: 1;
    }

    /* ══════════════════════════════════════
   TOP NAV
══════════════════════════════════════ */
    nav {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      z-index: 500;
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 0 28px;
      height: 50px;
      background: rgba(12, 34, 56, 0.96);
      border-bottom: 2px solid var(--gold);
      backdrop-filter: blur(6px);
      box-shadow: 0 2px 16px rgba(12, 34, 56, 0.28);
    }

    /* Calca el rètol de la caixa: el 1713 dins el bloc de lacre i MENORCA en caixa alta.
       La lletra de titular condensada no es llegeix a 12px, així que el nom va a amplada normal. */
    .nav-brand {
      display: flex;
      align-items: stretch;
      gap: 9px;
      text-decoration: none;
      cursor: pointer;
      white-space: nowrap;
      transition: opacity .2s;
    }

    .nb-year {
      font-family: 'Roboto Serif', Georgia, serif;
      font-weight: 900;
      font-stretch: 60%;
      font-variation-settings: 'wdth' 60;
      font-variant-numeric: lining-nums;
      display: flex;
      align-items: center;
      font-size: 21px;
      line-height: 1;
      padding: 0 8px;
      background: var(--red);
      color: var(--gold-pale);
      box-shadow: inset 0 0 0 1px rgba(238, 220, 168, .3);
    }

    .nb-text {
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      gap: 5px;
      padding-block: 1px 0;
    }

    .nb-name {
      font-family: 'Roboto Serif', Georgia, serif;
      line-height: .75;
      font-size: 13px;
      font-weight: 700;
      letter-spacing: 3.5px;
      text-transform: uppercase;
      color: var(--gold-pale);
    }

    .nb-series {
      font-family: 'Roboto Serif', Georgia, serif;
      font-size: 8px;
      line-height: .75;
      font-weight: 500;
      letter-spacing: 3.6px;
      text-transform: uppercase;
      color: var(--gold);
    }

    .nav-brand:hover {
      opacity: .75;
    }

    .nav-links {
      display: flex;
      align-items: center;
      gap: 2px;
      flex: 1;
      justify-content: center;
    }

    .nav-link {
      background: transparent;
      border: none;
      font-family: 'Roboto Serif', Georgia, serif;
      font-size: 9px;
      letter-spacing: 2px;
      color: rgba(238, 220, 168, .72);
      text-transform: uppercase;
      padding: 6px 12px;
      cursor: pointer;
      transition: all .2s;
      white-space: nowrap;
    }

    .nav-link:hover {
      color: var(--gold-pale);
    }

    .nav-link,
    .nav-link:visited,
    .nav-link:hover,
    .nav-link:focus {
      text-decoration: none;
    }

    .nav-link.active {
      color: var(--gold-pale);
      font-weight: 700;
    }

    .nav-langs {
      display: flex;
      gap: 3px;
    }

    .page-content {
      background: var(--parch-light);
    }

    /* ══════════════════════════════════════
   ORNAMENTAL UTILS
══════════════════════════════════════ */
    .framed {
      position: relative;
      border: 2px solid var(--gold);
      box-shadow: inset 0 0 0 5px var(--parch-light), inset 0 0 0 7px var(--parch-mid), 4px 4px 20px var(--shadow);
    }

    .framed::before {
      content: '';
      position: absolute;
      inset: 10px;
      border: 1px solid rgba(176, 138, 62, 0.4);
      pointer-events: none;
      z-index: 1;
    }

    .framed::after {
      content: '\2726';
      font-size: 10px;
      color: var(--gold-light);
      position: absolute;
      top: 3px;
      left: 50%;
      transform: translateX(-50%);
      pointer-events: none;
      z-index: 2;
    }

    /* ══════════════════════════════════════
   HERO
══════════════════════════════════════ */
    .hero {
      min-height: 100vh;
      display: grid;
      grid-template-columns: 1fr 1fr;
      align-items: center;
      padding-top: 50px;
      /* el degradat va a sang, però les dues columnes es queden centrades */
      padding-inline: max(0px, calc((100% - 1440px) / 2));
      background: linear-gradient(160deg, var(--card) 0%, var(--parch-light) 45%, var(--parch-mid) 100%);
      overflow: hidden;
    }

    /* Doble filet marí + or, com el marc imprès de la caixa */
    .hero::before,
    .hero::after {
      content: '';
      position: absolute;
      pointer-events: none;
    }

    .hero::before {
      inset: 72px 26px 26px;
      border: 1px solid rgba(21, 49, 78, .28);
    }

    .hero::after {
      inset: 78px 32px 32px;
      border: 1px solid rgba(176, 138, 62, .5);
    }

    .hero-left {
      padding: 60px 36px 60px 60px;
    }

    .hero-eyebrow {
      display: flex;
      align-items: center;
      gap: 12px;
      font-family: 'Roboto Serif', Georgia, serif;
      font-size: 10px;
      letter-spacing: 5px;
      color: var(--navy);
      text-transform: uppercase;
      margin-bottom: 16px;
    }

    .eyebrow-rule {
      flex: 0 0 36px;
      height: 1px;
      background: var(--navy);
    }

    /* Rètol del hero: calca el de la caixa — MENORCA, el bloc vermell del 1713 i la cua */
    .hero-year {
      display: flex;
      flex-direction: column;
      gap: 12px;
      font-family: 'Roboto Serif', Georgia, serif;
      font-weight: 900;
      font-stretch: 60%;
      font-variation-settings: 'wdth' 60;
      font-variant-numeric: lining-nums;
      font-size: clamp(50px, 8vw, 104px);
      line-height: 0.88;
      letter-spacing: -.015em;
      text-transform: uppercase;
      color: var(--navy);
      text-shadow: 3px 4px 0 rgba(21, 49, 78, 0.14), 6px 7px 16px rgba(21, 49, 78, 0.07);
      animation: slideUp 1s cubic-bezier(.16, 1, .3, 1) both;
    }

    .hy-line {
      display: flex;
      align-items: center;
      gap: 14px;
      flex-wrap: wrap;
    }

    .hy-badge {
      background: var(--red);
      color: var(--parch-mid);
      font-size: .4em;
      line-height: 1;
      padding: .17em .26em .13em;
      box-shadow: inset 0 0 0 2px rgba(244, 238, 225, .3);
      text-shadow: none;
    }

    .hy-tail {
      font-size: .27em;
      line-height: 1.1;
      letter-spacing: 0;
      text-transform: none;
      text-shadow: none;
    }

    .hero-title {
      font-family: 'Roboto Serif', Georgia, serif;
      font-weight: 800;
      font-stretch: 60%;
      font-variation-settings: 'wdth' 60;
      font-size: clamp(18px, 2.5vw, 28px);
      color: var(--ink);
      letter-spacing: 2px;
      line-height: 1.2;
    }

    .hero-ornament {
      display: flex;
      align-items: center;
      gap: 10px;
      margin: 22px 0;
      animation: slideUp 1s .3s cubic-bezier(.16, 1, .3, 1) both;
    }

    .ornament-line {
      flex: 1;
      height: 1px;
      background: linear-gradient(90deg, var(--navy), transparent);
      max-width: 140px;
    }

    .ornament-sym {
      font-size: 18px;
      color: var(--navy);
      line-height: 1;
    }

    .hero-desc {
      font-family: 'IM Fell English', serif;
      font-size: clamp(15px, 1.4vw, 17px);
      color: var(--ink-soft);
      line-height: 1.85;
      max-width: 440px;
      animation: slideUp 1s .45s cubic-bezier(.16, 1, .3, 1) both;
    }

    .hero-badges {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-top: 28px;
      animation: slideUp 1s .6s cubic-bezier(.16, 1, .3, 1) both;
    }

    .hero-cta {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      margin-top: 26px;
      padding: 13px 28px;
      background: var(--navy);
      color: #fff;
      border: 1px solid var(--gold);
      box-shadow: inset 0 0 0 3px var(--navy), inset 0 0 0 4px rgba(176, 138, 62, .7);
      font-family: 'Roboto Serif', Georgia, serif;
      font-size: 12px;
      font-weight: 700;
      letter-spacing: 2.5px;
      text-transform: uppercase;
      text-decoration: none;
      transition: background .2s, transform .2s;
      animation: slideUp 1s .75s cubic-bezier(.16, 1, .3, 1) both;
    }

    .hero-cta:hover {
      background: #900504;
      box-shadow: inset 0 0 0 3px #900504, inset 0 0 0 4px rgba(176, 138, 62, .8);
      transform: translateY(-1px);
    }

    .hero-cta i {
      color: var(--gold);
    }

    .badge {
      border: 1px solid var(--gold);
      color: var(--navy);
      padding: 5px 16px;
      font-family: 'Roboto Serif', Georgia, serif;
      font-size: 10px;
      letter-spacing: 2px;
      background: var(--card);
      text-transform: uppercase;
    }

    .hero-right {
      display: flex;
      justify-content: center;
      align-items: center;
      padding: 40px 80px 40px 0;
      animation: slideRight 1.2s .2s cubic-bezier(.16, 1, .3, 1) both;
    }

    .box-wrap {
      position: relative;
      max-width: min(600px, calc((100vh - 240px) * .95));
      width: 100%;
      padding-right: 30%;
    }

    .box-wrap img {
      width: 100%;
      display: block;
      filter: drop-shadow(8px 14px 30px rgba(21, 49, 78, 0.3)) drop-shadow(0 3px 8px rgba(21, 49, 78, 0.16));
      transition: transform .6s ease, filter .6s ease;
    }

    .box-front {
      position: relative;
      z-index: 2;
      transform: rotate(-1.5deg);
    }

    .box-wrap .box-back {
      position: absolute;
      z-index: 1;
      right: 0;
      bottom: 4%;
      width: 58%;
      transform: rotate(5deg);
    }

    .box-wrap:hover .box-front {
      transform: rotate(-3deg) translateX(-4%) scale(1.03);
      filter: drop-shadow(8px 14px 36px rgba(21, 49, 78, 0.3)) drop-shadow(0 0 22px rgba(176, 138, 62, 0.25));
    }

    .box-wrap:hover .box-back {
      transform: rotate(9deg) translateX(8%) scale(1.03);
    }

    .box-glow {
      position: absolute;
      bottom: -20px;
      left: 50%;
      transform: translateX(-50%);
      width: 70%;
      height: 40px;
      background: radial-gradient(ellipse, rgba(21, 49, 78, 0.22), transparent 70%);
      filter: blur(12px);
    }

    /* ══════════════════════════════════════
   SECTION WRAPPERS
══════════════════════════════════════ */
    .section-wrap {
      padding: 72px 0;
      background: var(--parch-light);
    }

    .section-wrap.alt {
      background: linear-gradient(180deg, var(--card) 0%, var(--parch-mid) 50%, var(--card) 100%);
    }

    .section-inner {
      max-width: 1080px;
      margin: 0 auto;
      padding: 0 36px;
    }

    .sec-label {
      font-family: 'Roboto Serif', Georgia, serif;
      font-size: 10px;
      letter-spacing: 5px;
      color: var(--navy);
      text-transform: uppercase;
      display: flex;
      align-items: center;
      gap: 12px;
      margin-bottom: 10px;
    }

    .sec-label-line {
      flex: 0 0 50px;
      height: 1px;
      background: linear-gradient(90deg, var(--gold), var(--navy));
    }

    .sec-title {
      font-family: 'Roboto Serif', Georgia, serif;
      font-weight: 900;
      font-stretch: 60%;
      font-variation-settings: 'wdth' 60;
      font-variant-numeric: lining-nums;
      font-size: clamp(21px, 2.6vw, 34px);
      letter-spacing: -.01em;
      text-transform: uppercase;
      color: var(--navy);
      line-height: 1.12;
      margin-bottom: 14px;
    }

    .sec-title .accent {
      color: var(--red);
    }

    .sec-rule {
      display: flex;
      align-items: center;
      gap: 10px;
      margin-bottom: 32px;
    }

    .sec-rule-line {
      flex: 0 0 60px;
      height: 2px;
      background: linear-gradient(90deg, var(--navy), var(--gold));
    }

    .sec-rule-dot {
      width: 7px;
      height: 7px;
      transform: rotate(45deg);
      background: var(--gold);
    }

    .full-divider {
      position: relative;
      z-index: 1;
      height: 28px;
      background: var(--parch-mid);
      display: flex;
      align-items: center;
      justify-content: center;
      overflow: hidden;
    }

    .full-divider::before,
    .full-divider::after {
      content: '';
      position: absolute;
      left: 0;
      right: 0;
      height: 1px;
      background: var(--gold);
    }

    .full-divider::before {
      top: 6px;
    }

    .full-divider::after {
      bottom: 6px;
    }

    .div-ornament {
      font-family: 'Roboto Serif', Georgia, serif;
      text-transform: uppercase;
      font-size: 10px;
      letter-spacing: 8px;
      color: var(--gold);
      background: var(--parch-mid);
      padding: 0 16px;
    }

    /* ══════════════════════════════════════
   MAP
══════════════════════════════════════ */
    .map-wrap {
      position: relative;
      margin: 28px auto 0;
      max-width: 680px;
    }

    .map-wrap img {
      width: 100%;
      height: auto;
      display: block;
      border: 8px solid var(--card);
      outline: 1px solid var(--gold);
      box-shadow: 4px 6px 24px var(--shadow);
      cursor: zoom-in;
    }

    /* ══════════════════════════════════════
   CARDS (overview)
══════════════════════════════════════ */
    .cards-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
      gap: 20px;
      margin-top: 24px;
    }

    .card {
      background: var(--card);
      border: 1px solid var(--parch-dark);
      padding: 24px 20px;
      position: relative;
      box-shadow: 2px 2px 10px var(--shadow);
      transition: transform .3s, box-shadow .3s;
    }

    .card:hover {
      transform: translateY(-4px);
      box-shadow: 4px 6px 18px var(--shadow);
    }

    .card::after {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 3px;
      background: linear-gradient(90deg, var(--navy), var(--gold), transparent);
    }

    .card-icon {
      font-size: 28px;
      margin-bottom: 10px;
      display: block;
    }

    .card-icon i,
    .comp-ico i,
    .bk-ch-t i,
    .nav-mobile-link i,
    .div-ornament i,
    .contact-icon i,
    .agr-role i {
      color: inherit;
    }

    .card-title {
      font-family: 'Roboto Serif', Georgia, serif;
      font-weight: 800;
      font-stretch: 60%;
      font-variation-settings: 'wdth' 60;
      font-size: 13px;
      color: var(--ink);
      margin-bottom: 8px;
      letter-spacing: .5px;
    }

    .card-text {
      font-family: 'IM Fell English', serif;
      font-size: 15px;
      color: var(--ink-soft);
      line-height: 1.7;
    }

    /* ══════════════════════════════════════
   FLOW STEPS
══════════════════════════════════════ */
    .flow-steps {
      margin-top: 28px;
      display: flex;
      flex-direction: column;
      position: relative;
    }

    .flow-steps::before {
      content: '';
      position: absolute;
      left: 27px;
      top: 20px;
      bottom: 20px;
      width: 2px;
      background: linear-gradient(180deg, var(--navy), var(--gold), var(--sea));
    }

    .flow-step {
      display: flex;
      gap: 24px;
      align-items: flex-start;
      padding: 16px 0;
    }

    .step-num {
      width: 56px;
      height: 56px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-family: 'Roboto Serif', Georgia, serif;
      font-weight: 800;
      font-stretch: 60%;
      font-variation-settings: 'wdth' 60;
      font-size: 17px;
      flex-shrink: 0;
      border: 2px solid var(--gold);
      background: var(--card);
      color: var(--navy);
      position: relative;
      z-index: 1;
    }

    .step-title {
      font-family: 'Roboto Serif', Georgia, serif;
      text-transform: uppercase;
      font-size: 14px;
      font-weight: 600;
      color: var(--ink);
      margin-bottom: 5px;
      padding-top: 6px;
    }

    .step-desc {
      font-family: 'IM Fell English', serif;
      font-size: 15px;
      color: var(--ink-soft);
      line-height: 1.7;
    }

    .step-desc strong {
      color: var(--ink);
    }

    .event-step {
      background: var(--card);
      border: 2px solid var(--gold);
      color: var(--navy);
      font-size: 18px;
    }

    /* ══════════════════════════════════════
   TRAINS TABLE (Vaixells)
══════════════════════════════════════ */
    .trains-table {
      width: 100%;
      margin-top: 24px;
      border-collapse: collapse;
    }

    .trains-table th {
      font-family: 'Roboto Serif', Georgia, serif;
      font-size: 9px;
      letter-spacing: 2px;
      color: var(--parch-light);
      background: var(--navy);
      padding: 12px 14px;
      text-align: left;
      text-transform: uppercase;
    }

    .trains-table td {
      padding: 10px 14px;
      font-family: 'IM Fell English', serif;
      font-size: 15px;
      color: var(--ink-soft);
      background: var(--card);
      border-bottom: 1px solid var(--parch-dark);
    }

    .trains-table tr:hover td {
      background: rgba(176, 138, 62, 0.09);
    }

    .t-num {
      font-family: 'Roboto Serif', Georgia, serif;
      font-weight: 900;
      font-stretch: 60%;
      font-variation-settings: 'wdth' 60;
      font-variant-numeric: lining-nums;
      font-size: 20px;
      color: var(--sea);
    }

    .t-num.diesel {
      color: var(--gold);
    }

    /* els números d'era, en lacre com a la caixa */
    .t-num.era {
      color: var(--red);
    }

    .t-yellow {
      color: var(--phase-yellow);
      font-weight: 600;
    }

    .t-green {
      color: var(--phase-green);
      font-weight: 600;
    }

    .t-brown {
      color: var(--phase-brown);
      font-weight: 600;
    }

    .t-grey {
      color: var(--phase-grey);
      font-weight: 600;
    }

    /* ══════════════════════════════════════
   COMPANIES
══════════════════════════════════════ */
    .companies-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 16px;
      margin-top: 16px;
    }

    .co-card {
      background: var(--card);
      border: 1px solid var(--parch-dark);
      padding: 18px 18px 16px;
      position: relative;
      box-shadow: 2px 2px 10px var(--shadow);
      transition: transform .3s, box-shadow .3s;
    }

    .co-card:hover {
      transform: translateY(-4px);
      box-shadow: 4px 6px 18px var(--shadow);
    }

    .co-stripe {
      width: 100%;
      height: 4px;
      margin-bottom: 14px;
    }

    .co-abbr {
      font-family: 'Roboto Serif', Georgia, serif;
      font-weight: 900;
      font-stretch: 60%;
      font-variation-settings: 'wdth' 60;
      font-variant-numeric: lining-nums;
      font-size: 22px;
      letter-spacing: 2px;
      margin-bottom: 2px;
    }

    .co-name {
      font-family: 'IM Fell English', serif;
      font-style: italic;
      font-size: 14px;
      color: var(--ink-soft);
      margin-bottom: 8px;
    }

    .co-detail {
      font-size: 14px;
      color: var(--ink-faint);
      line-height: 1.6;
      font-family: 'IM Fell English', serif;
    }

    .co-detail em {
      color: var(--ink-soft);
      font-style: italic;
      font-size: 13px;
    }

    /* ══════════════════════════════════════
   PRIVADES
══════════════════════════════════════ */
    .priv-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
      gap: 14px;
      margin-top: 20px;
    }

    .priv-card {
      background: var(--card);
      border: 1px solid var(--parch-dark);
      padding: 16px 18px;
      position: relative;
      box-shadow: 2px 2px 8px var(--shadow);
    }

    .priv-card::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      bottom: 0;
      width: 3px;
      background: var(--gold);
    }

    .priv-abbr {
      font-family: 'Roboto Serif', Georgia, serif;
      text-transform: uppercase;
      font-size: 12px;
      font-weight: 700;
      color: var(--navy);
      letter-spacing: 1.5px;
    }

    .priv-name {
      font-family: 'Roboto Serif', Georgia, serif;
      text-transform: uppercase;
      font-size: 13px;
      color: var(--ink);
      font-weight: 600;
      margin-bottom: 6px;
    }

    .priv-meta {
      display: flex;
      gap: 16px;
      margin-bottom: 8px;
    }

    .priv-badge {
      font-family: 'Roboto Serif', Georgia, serif;
      text-transform: uppercase;
      font-size: 10px;
      letter-spacing: 1px;
      padding: 3px 10px;
      border: 1px solid var(--parch-dark);
      color: var(--ink-soft);
      background: rgba(176, 138, 62, 0.1);
    }

    .priv-desc {
      font-family: 'IM Fell English', serif;
      font-size: 14px;
      color: var(--ink-soft);
      line-height: 1.65;
    }

    /* ══════════════════════════════════════
   FASES
══════════════════════════════════════ */
    .fases-list {
      display: flex;
      flex-direction: column;
      gap: 14px;
      margin-top: 20px;
    }

    .fase-row {
      display: grid;
      grid-template-columns: auto 1fr auto;
      gap: 16px;
      align-items: center;
      padding: 16px 20px;
      background: var(--card);
      border: 1px solid var(--parch-dark);
      border-left: 4px solid var(--navy);
    }

    .fase-num {
      font-family: 'Roboto Serif', Georgia, serif;
      font-weight: 900;
      font-stretch: 60%;
      font-variation-settings: 'wdth' 60;
      font-variant-numeric: lining-nums;
      font-size: 30px;
      color: var(--red);
      line-height: 1;
    }

    .fase-name {
      font-family: 'Roboto Serif', Georgia, serif;
      font-weight: 800;
      font-stretch: 60%;
      font-variation-settings: 'wdth' 60;
      font-size: 14px;
      color: var(--ink);
    }

    .fase-years {
      font-family: 'IM Fell English', serif;
      font-style: italic;
      font-size: 13px;
      color: var(--ink-soft);
    }

    .fase-vehicles {
      display: flex;
      flex-direction: column;
      gap: 6px;
      align-items: flex-end;
    }

    .fase-ship {
      font-family: 'Roboto Serif', Georgia, serif;
      font-size: 11px;
      letter-spacing: 1px;
      text-transform: uppercase;
      padding: 6px 14px;
      background: var(--red);
      color: var(--parch-mid);
      white-space: nowrap;
    }

    /* els carros, en marí, per distingir-los de la flota */
    .fase-ship.wagon {
      background: var(--navy);
    }

    /* ══════════════════════════════════════
   CONTACT
══════════════════════════════════════ */
    .contact-body {
      max-width: 720px;
      margin: 0 auto;
      padding: 72px 36px;
    }

    .contact-title {
      font-family: 'Roboto Serif', Georgia, serif;
      font-weight: 900;
      font-stretch: 60%;
      font-variation-settings: 'wdth' 60;
      font-variant-numeric: lining-nums;
      font-size: clamp(28px, 4vw, 44px);
      color: var(--navy);
      margin-bottom: 20px;
    }

    .contact-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: 16px;
      margin: 24px 0 36px;
    }

    .contact-card {
      border: 1px solid var(--parch-dark);
      padding: 22px 18px;
      background: var(--card);
      text-align: center;
      transition: transform .3s;
    }

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

    .contact-icon {
      font-size: 28px;
      margin-bottom: 8px;
    }

    .contact-type {
      font-family: 'Roboto Serif', Georgia, serif;
      font-size: 10px;
      letter-spacing: 3px;
      color: var(--navy);
      text-transform: uppercase;
      margin-bottom: 6px;
    }

    .contact-val {
      font-family: 'IM Fell English', serif;
      font-size: 15px;
      color: var(--ink-soft);
    }

    .contact-form {
      margin-top: 32px;
    }

    .form-field {
      margin-bottom: 16px;
    }

    .form-field label {
      display: block;
      font-family: 'Roboto Serif', Georgia, serif;
      font-size: 10px;
      letter-spacing: 2px;
      color: var(--ink-soft);
      text-transform: uppercase;
      margin-bottom: 6px;
    }

    .form-field input,
    .form-field textarea {
      width: 100%;
      padding: 10px 14px;
      background: var(--card);
      border: 1px solid var(--parch-dark);
      font-family: 'IM Fell English', serif;
      font-size: 16px;
      color: var(--ink);
      outline: none;
      transition: border .2s;
    }

    .form-field input:focus,
    .form-field textarea:focus {
      border-color: var(--navy);
    }

    .form-field textarea {
      height: 120px;
      resize: vertical;
    }

    .form-submit {
      background: var(--navy);
      color: var(--parch-light);
      border: none;
      font-family: 'Roboto Serif', Georgia, serif;
      font-size: 11px;
      letter-spacing: 3px;
      text-transform: uppercase;
      padding: 13px 32px;
      cursor: pointer;
      transition: background .2s;
    }

    .form-submit:hover {
      background: var(--sea);
    }

    /* ══════════════════════════════════════
   LEGAL MODALS
══════════════════════════════════════ */
    .modal-overlay {
      display: none;
      position: fixed;
      inset: 0;
      z-index: 800;
      background: rgba(21, 49, 78, 0.6);
      backdrop-filter: blur(4px);
      align-items: center;
      justify-content: center;
    }

    .modal-overlay.open {
      display: flex;
    }

    .modal-box {
      background: var(--card);
      max-width: 720px;
      width: 90%;
      max-height: 80vh;
      overflow-y: auto;
      border: 2px solid var(--gold);
      padding: 40px 36px;
      position: relative;
      box-shadow: 0 20px 60px rgba(21, 49, 78, 0.35);
    }

    .modal-close {
      position: absolute;
      top: 12px;
      right: 16px;
      background: none;
      border: none;
      font-size: 22px;
      color: var(--ink-soft);
      cursor: pointer;
      transition: color .2s;
    }

    .modal-close:hover {
      color: var(--navy);
    }

    .modal-title {
      font-family: 'Roboto Serif', Georgia, serif;
      font-weight: 800;
      font-stretch: 60%;
      font-variation-settings: 'wdth' 60;
      font-size: 22px;
      color: var(--navy);
      margin-bottom: 20px;
    }

    .modal-content p {
      font-family: 'IM Fell English', serif;
      font-size: 15px;
      color: var(--ink-soft);
      line-height: 1.8;
      margin-bottom: 12px;
    }

    .modal-content h4 {
      font-family: 'Roboto Serif', Georgia, serif;
      text-transform: uppercase;
      font-size: 13px;
      font-weight: 600;
      color: var(--ink);
      margin: 16px 0 6px;
      letter-spacing: .5px;
    }

    /* ══════════════════════════════════════
   FOOTER
══════════════════════════════════════ */
    footer {
      background: linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
      border-top: 3px solid var(--gold);
      padding: 40px 28px 24px;
      position: relative;
      z-index: 1;
      overflow: hidden;
    }

    footer::before {
      content: '1713 Menorca';
      position: absolute;
      font-family: 'Roboto Serif', Georgia, serif;
      font-weight: 900;
      font-stretch: 60%;
      font-variation-settings: 'wdth' 60;
      font-variant-numeric: lining-nums;
      font-size: 160px;
      color: rgba(238, 220, 168, 0.06);
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      pointer-events: none;
      line-height: 1;
    }

    .foot-main {
      max-width: 1080px;
      margin: 0 auto;
      display: grid;
      grid-template-columns: 1fr auto 1fr;
      align-items: center;
      gap: 20px;
    }

    .foot-logo {
      display: flex;
      align-items: center;
      gap: 11px;
    }

    .foot-logo .nb-year {
      font-size: 16px;
      padding: 6px 8px 5px;
    }

    .foot-logo .nb-name {
      font-size: 15px;
      line-height: 1;
      letter-spacing: 4px;
    }

    .foot-nav-links {
      display: flex;
      gap: 4px;
      justify-content: center;
      flex-wrap: wrap;
    }

    .foot-nav-btn {
      background: none;
      border: none;
      text-decoration: none;
      font-family: 'Roboto Serif', Georgia, serif;
      font-size: 9px;
      letter-spacing: 2px;
      color: rgba(238, 220, 168, 0.55);
      text-transform: uppercase;
      cursor: pointer;
      padding: 4px 8px;
      transition: color .2s;
    }

    .foot-nav-btn:hover {
      text-decoration: none;
      color: var(--gold-light);
    }

    .foot-social {
      max-width: 1080px;
      margin: 26px auto 0;
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 8px 30px;
    }

    .foot-social a {
      font-family: 'Roboto Serif', Georgia, serif;
      font-size: 9px;
      letter-spacing: 2px;
      color: rgba(238, 220, 168, 0.55);
      text-decoration: none;
      text-transform: uppercase;
      white-space: nowrap;
      transition: color .2s;
    }

    .foot-social a:hover {
      color: var(--gold-light);
    }

    .foot-rule {
      max-width: 1080px;
      margin: 20px auto;
      height: 1px;
      background: rgba(210, 172, 94, 0.3);
    }

    .foot-legal {
      max-width: 1080px;
      margin: 0 auto;
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-wrap: wrap;
      gap: 12px;
    }

    .foot-copy {
      font-family: 'IM Fell English', serif;
      font-size: 12px;
      color: rgba(238, 220, 168, 0.4);
    }

    .foot-copy a {
      color: inherit;
      text-decoration: none;
      transition: color .2s;
    }

    .foot-copy a:hover {
      color: var(--gold-light);
    }

    .foot-legal-links {
      display: flex;
      gap: 16px;
    }

    .foot-legal-btn {
      background: none;
      border: none;
      text-decoration: none;
      font-family: 'Roboto Serif', Georgia, serif;
      font-size: 9px;
      letter-spacing: 2px;
      color: rgba(238, 220, 168, 0.45);
      text-transform: uppercase;
      cursor: pointer;
      text-decoration: none;
      transition: color .2s;
    }

    .foot-legal-btn:hover {
      text-decoration: none;
      color: var(--gold-light);
    }

    .foot-attrib {
      max-width: 1080px;
      margin: 10px auto 0;
      text-align: center;
      font-family: 'IM Fell English', serif;
      font-size: 11px;
      font-style: italic;
      color: rgba(238, 220, 168, 0.3);
    }

    /* ══════════════════════════════════════
   AUTOR PAGE
══════════════════════════════════════ */
    .autor-wrap {
      min-height: 100vh;
      padding-top: 50px;
      background: linear-gradient(160deg, var(--card) 0%, var(--parch-light) 45%, var(--parch-mid) 100%);
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .autor-card {
      max-width: 680px;
      width: 90%;
      margin: 60px auto;
      background: var(--card);
      border: 2px solid var(--gold);
      box-shadow: 6px 8px 36px rgba(21, 49, 78, 0.14), inset 0 0 0 5px rgba(244, 238, 225, 0.9);
      padding: 52px 52px 44px;
      position: relative;
      text-align: center;
    }

    .autor-card::before {
      content: '';
      position: absolute;
      inset: 10px;
      border: 1px solid rgba(176, 138, 62, 0.4);
      pointer-events: none;
    }

    .autor-card::after {
      content: '\2726';
      font-size: 11px;
      color: var(--gold-light);
      position: absolute;
      top: 4px;
      left: 50%;
      transform: translateX(-50%);
    }

    .autor-eyebrow {
      font-family: 'Roboto Serif', Georgia, serif;
      font-size: 9px;
      letter-spacing: 5px;
      color: var(--navy);
      text-transform: uppercase;
      margin-bottom: 10px;
    }

    .autor-name {
      font-family: 'Roboto Serif', Georgia, serif;
      font-weight: 900;
      font-stretch: 60%;
      font-variation-settings: 'wdth' 60;
      font-variant-numeric: lining-nums;
      font-size: clamp(26px, 4vw, 40px);
      color: var(--ink);
      margin-bottom: 6px;
    }

    .autor-rule {
      display: flex;
      align-items: center;
      gap: 10px;
      justify-content: center;
      margin: 18px 0 24px;
    }

    .autor-rule-line {
      width: 60px;
      height: 1px;
      background: var(--gold);
    }

    .autor-rule-sym {
      font-size: 14px;
      color: var(--gold);
    }

    .autor-bio {
      text-decoration: none;
      font-family: 'IM Fell English', serif;
      font-size: 17px;
      color: var(--ink-soft);
      line-height: 1.95;
      text-align: left;
      max-width: 520px;
      margin: 0 auto;
    }

    .autor-bio p {
      margin-bottom: 16px;
    }

    .autor-bio .highlight {
      font-style: italic;
      color: var(--navy);
    }

    .autor-tags {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      justify-content: center;
      margin-top: 32px;
    }

    .autor-tag {
      border: 1px solid var(--gold);
      color: var(--ink-soft);
      padding: 5px 16px;
      font-family: 'Roboto Serif', Georgia, serif;
      font-size: 9px;
      letter-spacing: 2px;
      background: rgba(176, 138, 62, 0.08);
      text-transform: uppercase;
    }

    .bgg-user-link,
    .bgg-user-link:visited,
    .bgg-user-link:hover,
    .bgg-user-link:active {
      color: inherit;
      text-decoration: none;
    }

    /* ══════════════════════════════════════
   BOOKLET HISTORIC CSS
══════════════════════════════════════ */
    .bk-hero {
      position: relative;
      overflow: hidden;
      background: linear-gradient(150deg, var(--navy-deep) 0%, var(--navy) 60%, var(--navy-deep) 100%);
      padding: 90px 36px 56px;
      min-height: 36vh;
      display: flex;
      align-items: flex-end;
    }

    .bk-hero-bg {
      position: absolute;
      right: -20px;
      bottom: -60px;
      font-family: 'Roboto Serif', Georgia, serif;
      font-weight: 900;
      font-stretch: 60%;
      font-variation-settings: 'wdth' 60;
      font-variant-numeric: lining-nums;
      font-size: clamp(120px, 22vw, 300px);
      color: rgba(238, 220, 168, 0.05);
      line-height: 1;
      pointer-events: none;
      user-select: none;
    }

    .bk-hero-inner {
      position: relative;
      z-index: 1;
      max-width: 820px;
    }

    .bk-hero-eyebrow {
      font-family: 'Roboto Serif', Georgia, serif;
      font-size: .72rem;
      letter-spacing: 3px;
      text-transform: uppercase;
      color: var(--gold);
      margin-bottom: 14px;
    }

    .bk-hero-title {
      font-family: 'Roboto Serif', Georgia, serif;
      font-weight: 900;
      font-stretch: 60%;
      font-variation-settings: 'wdth' 60;
      font-variant-numeric: lining-nums;
      font-size: clamp(28px, 5vw, 58px);
      color: var(--gold-pale);
      line-height: 1.1;
      margin-bottom: 12px;
    }

    .bk-hero-sub {
      font-family: 'IM Fell English', serif;
      font-style: italic;
      font-size: clamp(14px, 2vw, 18px);
      color: var(--gold-light);
    }

    .bk-body {
      max-width: 820px;
      margin: 0 auto;
      padding: 48px 36px 80px;
    }

    .bk-index {
      background: var(--card);
      border: 1px solid var(--parch-dark);
      border-left: 4px solid var(--navy);
      padding: 20px 20px 16px;
      margin-bottom: 40px;
    }

    .bk-index-title {
      font-family: 'Roboto Serif', Georgia, serif;
      font-size: .8rem;
      letter-spacing: 2px;
      text-transform: uppercase;
      color: var(--ink);
      margin-bottom: 14px;
    }

    .bk-index-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
      gap: 4px;
    }

    .bk-idx {
      background: none;
      border: none;
      font-family: 'Roboto Serif', Georgia, serif;
      text-transform: uppercase;
      font-size: .72rem;
      letter-spacing: .4px;
      color: var(--ink);
      padding: 7px 8px;
      text-align: left;
      cursor: pointer;
      display: flex;
      align-items: flex-start;
      gap: 8px;
      border-radius: 2px;
      transition: background .15s, color .15s;
      line-height: 1.3;
    }

    .bk-idx:hover {
      background: var(--parch-dark);
      color: var(--navy);
    }

    .bk-idx span {
      background: var(--navy);
      color: var(--card);
      font-size: .65rem;
      font-weight: 700;
      min-width: 18px;
      height: 18px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      margin-top: 1px;
    }

    .bk-prefaci {
      border-left: 3px solid var(--gold);
      padding: 20px 24px;
      background: var(--card);
      margin-bottom: 40px;
      font-family: 'IM Fell English', serif;
      font-size: 17px;
      color: var(--ink-soft);
      line-height: 1.9;
    }

    .bk-prefaci p {
      margin-bottom: 16px;
    }

    .bk-prefaci .bk-signoff {
      font-style: italic;
      color: var(--navy);
      text-align: right;
    }

    .bk-sep {
      text-align: center;
      font-family: 'Roboto Serif', Georgia, serif;
      text-transform: uppercase;
      font-size: 14px;
      letter-spacing: 8px;
      color: var(--gold);
      margin: 36px 0;
    }

    .bk-ch {
      margin-bottom: 48px;
    }

    .bk-ch-hd {
      display: flex;
      align-items: flex-start;
      gap: 18px;
      margin-bottom: 20px;
      padding-bottom: 12px;
      border-bottom: 1px solid var(--parch-mid);
    }

    .bk-ch-n {
      font-family: 'Roboto Serif', Georgia, serif;
      font-weight: 900;
      font-stretch: 60%;
      font-variation-settings: 'wdth' 60;
      font-variant-numeric: lining-nums;
      font-size: 2.5rem;
      color: var(--navy);
      line-height: 1;
      flex-shrink: 0;
    }

    .bk-ch-t {
      font-family: 'Roboto Serif', Georgia, serif;
      font-weight: 800;
      font-stretch: 60%;
      font-variation-settings: 'wdth' 60;
      font-size: clamp(1rem, 2.5vw, 1.4rem);
      color: var(--ink);
      padding-top: 8px;
      line-height: 1.3;
    }

    .bk-ch-b {
      font-family: 'IM Fell English', serif;
      font-size: 17px;
      color: var(--ink-soft);
      line-height: 1.9;
    }

    .bk-ch-b p {
      margin-bottom: 16px;
    }

    .bk-ch-b a,
    .comp-nm a {
      color: var(--navy);
      text-decoration: none;
      border-bottom: 1px solid var(--gold);
      transition: color .2s;
    }

    .bk-ch-b a:hover,
    .comp-nm a:hover {
      color: var(--red);
    }

    .bk-sub {
      font-family: 'Roboto Serif', Georgia, serif;
      text-transform: uppercase;
      font-size: .9rem;
      color: var(--ink);
      margin: 24px 0 10px;
      letter-spacing: .5px;
      border-left: 3px solid var(--gold);
      padding-left: 10px;
    }

    .bk-nota {
      display: flex;
      gap: 14px;
      align-items: flex-start;
      background: rgba(176, 138, 62, 0.07);
      border: 1px solid rgba(176, 138, 62, 0.35);
      padding: 16px 18px;
      margin: 24px 0 0;
      font-size: .9rem;
    }

    .bk-ch-img {
      display: block;
      width: 100%;
      height: auto;
      aspect-ratio: 1000 / 370;
      object-fit: cover;
      margin: 0 0 22px;
      border: 1px solid rgba(176, 138, 62, 0.45);
      box-shadow: 0 0 0 4px var(--parch-light), 0 0 0 5px rgba(176, 138, 62, 0.35);
    }

    .bk-nota-ico {
      flex-shrink: 0;
      width: 28px;
      height: 28px;
      object-fit: contain;
      margin-top: 2px;
    }

    .bk-nota p {
      margin: 0;
      font-family: 'IM Fell English', serif;
      font-size: .92rem;
      color: var(--ink-soft);
      line-height: 1.7;
    }

    /* ══════════════════════════════════════
   HAMBURGER & MOBILE MENU
══════════════════════════════════════ */
    .nav-hamburger {
      color: var(--gold-pale);
      display: flex;
      align-items: center;
      justify-content: center;
      text-decoration: none;
      background: transparent;
      border: none;
      color: var(--gold-pale);
      font-size: 1.3rem;
      cursor: pointer;
      padding: 0;
      width: 36px;
      height: 36px;
      border-radius: 4px;
      flex-shrink: 0;
    }

    @media (min-width:821px) {
      .nav-hamburger {
        display: none;
      }
    }

    .nav-hamburger:hover {
      color: var(--card);
    }

    .nav-mobile-menu {
      display: none;
      flex-direction: column;
      background: var(--navy);
      border-top: 2px solid var(--gold);
      position: fixed;
      top: 50px;
      left: 0;
      right: 0;
      z-index: 600;
      box-shadow: 0 8px 24px rgba(0, 0, 0, .5);
      max-height: calc(100vh - 50px);
      overflow-y: auto;
    }

    .nav-mobile-menu.open {
      display: flex;
    }

    .nav-mobile-link {
      background: none;
      border: none;
      border-bottom: 1px solid rgba(255, 255, 255, .08);
      color: var(--parch-light);
      font-family: 'Roboto Serif', Georgia, serif;
      font-size: .85rem;
      letter-spacing: 1.5px;
      text-transform: uppercase;
      padding: 16px 24px;
      text-align: left;
      cursor: pointer;
      display: flex;
      align-items: center;
      gap: 12px;
      transition: background .15s;
    }

    .nav-mobile-link:hover {
      background: rgba(255, 255, 255, .07);
      color: var(--gold);
    }

    .lang-selector {
      position: relative;
      margin-right: 8px;
    }

    .lang-selector summary {
      list-style: none;
      cursor: pointer;
      display: flex;
      align-items: center;
      font-family: 'Roboto Serif', Georgia, serif;
      font-size: 10px;
      letter-spacing: 1px;
      color: var(--gold-pale);
      padding: 5px 9px;
      border: 1px solid rgba(238, 220, 168, .45);
      user-select: none;
      transition: border-color .2s;
    }

    .lang-selector summary::-webkit-details-marker {
      display: none;
    }

    .lang-selector summary::after {
      content: '▾';
      margin-left: 6px;
      opacity: .7;
    }

    .lang-selector[open] summary::after {
      content: '▴';
    }

    .lang-selector summary:hover {
      border-color: var(--gold-pale);
    }

    .lang-menu {
      position: absolute;
      top: calc(100% + 8px);
      right: 0;
      z-index: 1001;
      min-width: 11rem;
      display: flex;
      flex-direction: column;
      padding: 6px 0;
      background: var(--navy);
      border: 1px solid var(--gold);
      box-shadow: 0 10px 28px rgba(0, 0, 0, .4);
    }

    .lang-menu a {
      display: flex;
      align-items: center;
      font-family: 'Roboto Serif', Georgia, serif;
      font-size: 12px;
      color: rgba(238, 220, 168, .8);
      text-decoration: none;
      padding: 7px 14px;
      white-space: nowrap;
      transition: color .2s, background .2s;
    }

    .lang-menu a span {
      width: 2rem;
      font-size: 10px;
      letter-spacing: 1px;
      opacity: .6;
    }

    .lang-menu a:hover {
      color: var(--gold-pale);
      background: rgba(238, 220, 168, .08);
    }

    .lang-menu a.active {
      color: var(--gold-pale);
      background: rgba(176, 138, 62, .2);
    }

    .lang-flag {
      width: 18px;
      height: 12px;
      object-fit: cover;
      margin-right: 8px;
      box-shadow: 0 0 0 1px rgba(255, 255, 255, .18);
    }

    /* IM Fell no té els accents del txec ni del polonès, ni lletres japoneses */
    :lang(cs) body *,
    :lang(pl) body * {
      font-family: 'Roboto Serif', Georgia, serif !important;
    }

    :lang(ja) body * {
      font-family: 'Roboto Serif', 'Noto Serif JP', serif !important;
    }

    /* ══════ FASE LORE ══════ */
    .fase-meta {
      margin: 4px 0 6px;
      font-family: 'IM Fell English', serif;
      font-size: 13px;
      color: var(--ink-faint);
      font-style: italic;
    }

    .fase-canvis {
      font-family: 'IM Fell English', serif;
      font-size: 13px;
      color: var(--ink-faint);
      margin: 2px 0 5px;
    }

    .fase-lore {
      font-family: 'IM Fell English', serif;
      font-size: 14px;
      color: var(--ink-soft);
      line-height: 1.75;
      margin-top: 7px;
      padding-top: 7px;
      border-top: 1px solid var(--parch-mid);
    }

    .reveal {
      opacity: 0;
      transform: translateY(20px);
      transition: opacity .7s ease, transform .7s ease;
    }

    .reveal.in {
      opacity: 1;
      transform: translateY(0);
    }

    @keyframes slideUp {
      from {
        opacity: 0;
        transform: translateY(36px)
      }

      to {
        opacity: 1;
        transform: translateY(0)
      }
    }

    @keyframes slideRight {
      from {
        opacity: 0;
        transform: translateX(60px) rotate(2deg)
      }

      to {
        opacity: 1;
        transform: translateX(0) rotate(0)
      }
    }

    /* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
    @media (max-width:820px) {
      .nav-links {
        display: none;
      }

      .nav-brand {
        font-size: 10px;
      }

      .nav-hamburger {
        display: flex;
      }

      .hero {
        grid-template-columns: 1fr;
        padding-top: 50px;
      }

      .hero::before {
        inset: 58px 8px 8px;
      }

      .hero::after {
        inset: 62px 12px 12px;
      }

      .hero-left {
        padding: 32px 26px 12px;
      }

      .hero-right {
        padding: 0 26px 36px;
      }

      .box-wrap {
        max-width: 440px;
        margin: 0 auto;
      }

      .section-inner {
        padding-left: 16px;
        padding-right: 16px;
      }

      .companies-grid {
        grid-template-columns: 1fr !important;
      }

      .foot-main {
        grid-template-columns: 1fr;
        text-align: center;
      }

      .foot-legal {
        justify-content: center;
        text-align: center;
      }

      .bk-body {
        padding: 32px 16px 60px;
      }

      .contact-body {
        padding: 48px 16px;
      }

      .autor-card {
        padding: 36px 24px 32px;
      }
    }

    /* ══════ COMPONENTS MANIFEST ══════ */
    .comp-manifest {
      border: 1px solid var(--parch-dark);
      overflow: hidden;
      margin-top: 16px;
      background: linear-gradient(180deg, rgba(21, 49, 78, 0.04) 0%, var(--card) 100%);
    }

    .comp-section-hd {
      background: var(--navy);
      color: var(--gold-pale);
      font-family: 'Roboto Serif', Georgia, serif;
      font-size: 9px;
      letter-spacing: 4px;
      text-transform: uppercase;
      padding: 8px 20px;
    }

    .comp-row {
      display: flex;
      align-items: baseline;
      gap: 12px;
      padding: 11px 20px;
      border-bottom: 1px solid rgba(176, 138, 62, 0.2);
      transition: background .15s;
    }

    .comp-row:hover {
      background: rgba(176, 138, 62, 0.08);
    }

    .comp-row-last {
      border-bottom: none;
    }

    .comp-ico {
      font-size: 18px;
      flex-shrink: 0;
      width: 26px;
      text-align: center;
    }

    .comp-nm {
      font-family: 'IM Fell English', serif;
      font-size: 15px;
      color: var(--ink);
      flex: 1;
      line-height: 1.5;
    }

    .comp-nm em {
      color: var(--ink-soft);
      font-style: italic;
    }

    .comp-qt {
      font-family: 'Roboto Serif', Georgia, serif;
      text-transform: uppercase;
      font-size: 12px;
      font-weight: 700;
      letter-spacing: .5px;
      color: var(--navy);
      white-space: nowrap;
      flex-shrink: 0;
    }

    /* ══════ BIBLIOGRAFIA + COLOFON ══════ */
    .bk-bib {
      list-style: none;
      padding: 0;
      margin: 10px 0 20px;
    }

    .bk-bib li {
      font-family: 'IM Fell English', serif;
      font-size: 15px;
      color: var(--ink-soft);
      line-height: 1.7;
      padding: 7px 0;
      border-bottom: 1px solid var(--parch-mid);
    }

    .bk-bib li em {
      font-style: italic;
    }

    .bk-bib-web li {
      border: none;
      display: flex;
      gap: 8px;
      align-items: baseline;
    }

    /* ══════════════════════════════════════
   MATERIAL DEL JOC — fitxes, llosetes, galeries
══════════════════════════════════════ */
    .token-row {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 24px 30px;
      margin-top: 26px;
    }

    .token-fig {
      width: 104px;
      margin: 0;
      text-align: center;
    }

    .token-fig img {
      width: 86px;
      height: 86px;
      display: block;
      margin: 0 auto 9px;
      filter: drop-shadow(2px 3px 7px var(--shadow));
      transition: transform .3s;
    }

    .token-fig:hover img {
      transform: translateY(-3px) scale(1.04);
    }

    .token-fig b {
      display: block;
      font-family: 'Roboto Serif', Georgia, serif;
      font-weight: 900;
      font-stretch: 60%;
      font-variation-settings: 'wdth' 60;
      font-variant-numeric: lining-nums;
      font-size: 12px;
      letter-spacing: 1px;
      color: var(--navy);
    }

    .token-fig figcaption {
      font-family: 'IM Fell English', serif;
      font-size: 12px;
      font-style: italic;
      color: var(--ink-faint);
      line-height: 1.45;
    }

    .co-head {
      display: flex;
      align-items: center;
      gap: 12px;
      margin-bottom: 8px;
    }

    .co-head .co-abbr,
    .co-head .co-name {
      margin-bottom: 0;
    }

    .priv-head {
      display: flex;
      align-items: center;
      gap: 11px;
      margin-bottom: 8px;
    }

    .priv-head .priv-name {
      margin-bottom: 0;
    }

    .priv-token {
      width: 42px;
      height: 42px;
      flex-shrink: 0;
      filter: drop-shadow(1px 2px 4px var(--shadow));
    }

    .co-token {
      width: 48px;
      height: 48px;
      flex-shrink: 0;
      filter: drop-shadow(1px 2px 5px var(--shadow));
    }

    .tiles-grid {
      display: grid;
      grid-template-columns: repeat(4, max-content);
      gap: 20px 16px;
      margin-top: 22px;
    }

    .tile-fig {
      margin: 0;
      width: 122px;
      text-align: center;
    }

    .tile-series {
      margin-top: 18px;
      border-top: 1px solid var(--parch-dark);
    }

    .tile-serie {
      display: flex;
      align-items: flex-start;
      gap: 22px;
      padding: 16px 0;
      border-bottom: 1px solid var(--parch-dark);
    }

    .tile-serie-nom {
      font-family: 'Roboto Serif', Georgia, serif;
      text-transform: uppercase;
      font-size: 12px;
      font-weight: 600;
      letter-spacing: 1px;
      color: var(--ink);
      width: 180px;
      flex-shrink: 0;
      padding-top: 36px;
    }

    .tile-serie-row {
      display: flex;
      flex-wrap: wrap;
      gap: 14px;
    }

    .tile-serie .tile-fig {
      width: 104px;
    }

    .tile-fig img {
      width: 100%;
      max-width: 130px;
      height: auto;
      display: block;
      margin: 0 auto 8px;
      filter: drop-shadow(2px 3px 6px var(--shadow));
      transition: transform .3s;
    }

    .tile-fig:hover img {
      transform: translateY(-3px);
    }

    .tile-fig figcaption {
      font-family: 'Roboto Serif', Georgia, serif;
      text-transform: uppercase;
      font-size: 10px;
      letter-spacing: .5px;
      color: var(--ink);
      line-height: 1.5;
    }

    .tile-fig span {
      display: block;
      font-family: 'IM Fell English', serif;
      font-style: italic;
      font-size: 11px;
      color: var(--ink-faint);
    }

    /* ── LIGHTBOX ── */
    .lightbox {
      position: fixed;
      inset: 0;
      z-index: 900;
      display: none;
      align-items: center;
      justify-content: center;
      flex-direction: column;
      gap: 14px;
      padding: 30px 24px;
      background: rgba(12, 34, 56, .93);
      cursor: zoom-out;
    }

    .lightbox.open {
      display: flex;
    }

    .lightbox img {
      max-width: 100%;
      max-height: 82vh;
      display: block;
      border: 6px solid var(--parch-light);
      box-shadow: 0 12px 44px rgba(0, 0, 0, .5);
    }

    .lightbox-cap {
      font-family: 'Roboto Serif', Georgia, serif;
      font-size: 11px;
      letter-spacing: 2px;
      text-transform: uppercase;
      color: var(--gold-pale);
      text-align: center;
    }

    .lightbox-close {
      position: absolute;
      top: 16px;
      right: 20px;
      width: 38px;
      height: 38px;
      border: 1px solid var(--gold);
      background: transparent;
      color: var(--gold-pale);
      font-size: 22px;
      line-height: 1;
      cursor: pointer;
    }

    @media (max-width:820px) {
      .tile-fig {
        width: 100px;
      }

      .tile-serie {
        flex-direction: column;
        gap: 8px;
      }

      .tile-serie-nom {
        width: auto;
        padding-top: 0;
      }

      .tile-serie .tile-fig {
        width: 88px;
      }
    }

    .bk-bib-web a {
      color: var(--navy);
      text-decoration: none;
    }

    .bk-bib-web a:hover {
      text-decoration: none;
    }

    .bk-colofon {
      text-align: center;
      padding: 32px 0 16px;
    }

    .bk-col-title {
      font-family: 'Roboto Serif', Georgia, serif;
      font-weight: 900;
      font-stretch: 60%;
      font-variation-settings: 'wdth' 60;
      font-variant-numeric: lining-nums;
      font-size: 1rem;
      color: var(--ink);
      margin-bottom: 6px;
    }

    .bk-col-sub {
      font-family: 'IM Fell English', serif;
      font-style: italic;
      font-size: .88rem;
      color: var(--ink-faint);
    }



    .tauler-banda {
      position: relative;
      height: clamp(170px, 24vw, 330px);
      background: var(--parch-mid) url('../img/tauler-banda.webp') center / cover no-repeat;
      border-block: 2px solid var(--gold);
      box-shadow: inset 0 0 0 1px rgba(12, 34, 56, .35);
    }

    .tauler-banda::before,
    .tauler-banda::after {
      content: '';
      position: absolute;
      inset: 0;
      pointer-events: none;
    }

    .tauler-banda::before {
      background: radial-gradient(ellipse at 50% 50%, transparent 50%, rgba(110, 48, 20, .3) 100%);
    }

    .tauler-banda::after {
      inset: 6px 0;
      border-block: 1px solid rgba(176, 138, 62, .7);
    }

    .priv-card:not(:has(.priv-head)) {
      display: flex;
      flex-direction: column;
    }

    .priv-card:not(:has(.priv-head))::before {
      background: var(--llegat, var(--gold));
    }

    .priv-card:not(:has(.priv-head))::after {
      content: '';
      order: -1;
      display: block;
      aspect-ratio: 640 / 250;
      margin: -16px -18px 14px;
      background: var(--llegat, var(--parch-mid)) var(--llegat-img, none) center / cover no-repeat;
      border-bottom: 2px solid var(--llegat, var(--gold));
    }

    .priv-card:not(:has(.priv-head)):nth-child(1) { --llegat: #8A5444; --llegat-img: url('../img/llegats/1.webp'); }
    .priv-card:not(:has(.priv-head)):nth-child(2) { --llegat: #6A7C64; --llegat-img: url('../img/llegats/2.webp'); }
    .priv-card:not(:has(.priv-head)):nth-child(3) { --llegat: #A68440; --llegat-img: url('../img/llegats/3.webp'); }
    .priv-card:not(:has(.priv-head)):nth-child(4) { --llegat: #6A7D4E; --llegat-img: url('../img/llegats/4.webp'); }
    .priv-card:not(:has(.priv-head)):nth-child(5) { --llegat: #6F5A7E; --llegat-img: url('../img/llegats/5.webp'); }
    .priv-card:not(:has(.priv-head)):nth-child(6) { --llegat: #4C7385; --llegat-img: url('../img/llegats/6.webp'); }
    .priv-card:not(:has(.priv-head)):nth-child(7) { --llegat: #7A7570; --llegat-img: url('../img/llegats/7.webp'); }
    .priv-card:not(:has(.priv-head)):nth-child(8) { --llegat: #8C6436; --llegat-img: url('../img/llegats/8.webp'); }
    .priv-card:not(:has(.priv-head)):nth-child(9) { --llegat: #2F5577; --llegat-img: url('../img/llegats/9.webp'); }

    .autor-wrap {
      min-height: 0;
      padding-block: 110px 50px;
    }

    .altres-jocs {
      max-width: 880px;
      margin: 56px auto 90px;
      padding: 0 24px;
    }

    .altres-titol {
      font-family: 'Roboto Serif', Georgia, serif;
      font-weight: 800;
      font-stretch: 60%;
      font-variation-settings: 'wdth' 60;
      font-size: clamp(28px, 3.4vw, 40px);
      color: var(--navy);
      text-align: center;
      margin: 0 0 26px;
    }

    .altres-grid {
      display: grid;
      grid-template-columns: 1.4fr 1fr;
      gap: 24px;
      align-items: stretch;
    }

    .altre-joc {
      display: flex;
      align-items: center;
      gap: 20px;
      padding: 22px;
      text-decoration: none;
      color: var(--ink);
      background: var(--card);
      border: 1px solid var(--gold);
      box-shadow: inset 0 0 0 4px var(--card), inset 0 0 0 5px rgba(176, 138, 62, .45), 2px 3px 12px var(--shadow);
      transition: transform .3s, box-shadow .3s;
    }

    .altre-joc:hover {
      transform: translateY(-4px);
      box-shadow: inset 0 0 0 4px var(--card), inset 0 0 0 5px rgba(176, 138, 62, .45), 4px 8px 20px var(--shadow);
    }

    .altre-caixa {
      width: 120px;
      height: auto;
      flex-shrink: 0;
      filter: drop-shadow(6px 10px 14px rgba(12, 34, 56, .3));
      transform: rotate(-3deg);
      transition: transform .4s;
    }

    .altre-joc:hover .altre-caixa {
      transform: rotate(0) scale(1.05);
    }

    .altre-icona {
      width: 76px;
      height: 76px;
      flex-shrink: 0;
    }

    .altre-text {
      display: flex;
      flex-direction: column;
      gap: 4px;
    }

    .altre-nom {
      font-family: 'Roboto Serif', Georgia, serif;
      font-weight: 800;
      font-stretch: 60%;
      font-variation-settings: 'wdth' 60;
      font-size: 28px;
      line-height: 1.1;
      color: var(--navy);
    }

    .altre-fletxa {
      color: var(--gold);
      display: inline-block;
      transition: transform .25s;
    }

    .altre-joc:hover .altre-fletxa {
      transform: translateX(5px);
    }

    .altre-sub {
      font-family: 'Roboto Serif', Georgia, serif;
      font-weight: 600;
      font-size: 11px;
      letter-spacing: .2em;
      text-transform: uppercase;
      color: var(--red);
    }

    .altre-desc {
      font-family: 'IM Fell English', serif;
      font-size: 16px;
      font-style: italic;
      color: var(--ink-soft);
      line-height: 1.5;
    }

    @media (max-width: 760px) {
      .altres-grid {
        grid-template-columns: 1fr;
      }

      .altre-caixa {
        width: 96px;
      }
    }

    @media (max-width:520px) {
      .tiles-grid {
        grid-template-columns: repeat(2, max-content);
      }
    }

    /* ══════════════════════════════════════
   PORTADA: el que aporta, en una llista
══════════════════════════════════════ */
    .pt-list {
      max-width: 1140px;
      margin: 0 auto;
      padding-inline: 36px;
    }

    .pt-ctas {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 12px 28px;
      margin-top: 30px;
    }

    .pt-ctas .hero-cta {
      margin-top: 0;
      animation: none;
    }

    .pt-ctas-end {
      justify-content: center;
      margin-top: 56px;
    }

    .pt-more {
      font-family: 'Roboto Serif', Georgia, serif;
      font-size: 12px;
      font-weight: 700;
      letter-spacing: 2.5px;
      text-transform: uppercase;
      color: var(--navy);
      text-decoration: none;
      border-bottom: 1px solid var(--gold);
      padding-bottom: 3px;
    }

    .pt-more:hover {
      color: var(--red);
    }

    .pt-more i {
      color: var(--gold);
      margin-left: 6px;
    }

    .pt-list {
      padding-block: 64px 88px;
    }

    .hl-list {
      list-style: none;
      display: flex;
      flex-direction: column;
      gap: 56px;
    }

    .hl {
      display: grid;
      grid-template-columns: 1.15fr 1fr;
      gap: 44px;
      align-items: center;
    }

    .hl:nth-child(even) .hl-media {
      order: 2;
    }

    .hl-media {
      position: relative;
      aspect-ratio: 2.7;
      border: 1px solid var(--gold);
      outline: 6px solid var(--card);
      box-shadow: 0 0 0 7px rgba(12, 34, 56, .25), 6px 10px 26px var(--shadow);
      margin: 7px;
    }

    .hl-media > img {
      display: block;
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .hl-media-duo {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 6px;
      background: var(--card);
    }

    .hl-n {
      position: absolute;
      top: -7px;
      left: -7px;
      padding: 8px 14px 6px;
      background: var(--navy);
      border: 1px solid var(--gold);
      font-family: 'Roboto Serif', Georgia, serif;
      font-weight: 900;
      font-variation-settings: 'wdth' 60;
      font-variant-numeric: lining-nums tabular-nums;
      font-size: 26px;
      line-height: 1;
      color: var(--gold-pale);
    }

    .hl-tokens {
      position: absolute;
      right: 12px;
      bottom: -18px;
      display: flex;
      align-items: center;
      gap: 6px;
      padding: 5px 8px;
      background: var(--card);
      border: 1px solid var(--gold);
      box-shadow: 2px 4px 12px var(--shadow);
    }

    .hl-tokens img {
      width: 40px;
      height: 40px;
    }

    .hl-tokens i {
      color: var(--gold-deep);
      font-size: 13px;
    }

    .hl-tag {
      display: inline-block;
      margin-bottom: 12px;
      padding: 4px 10px;
      font-family: 'Roboto Serif', Georgia, serif;
      font-size: 10px;
      font-weight: 700;
      letter-spacing: 2px;
      text-transform: uppercase;
      color: var(--red);
      border: 1px solid rgba(144, 5, 4, .45);
      background: var(--card);
    }

    .hl-title {
      font-family: 'Roboto Serif', Georgia, serif;
      font-weight: 900;
      font-variation-settings: 'wdth' 60;
      font-size: clamp(22px, 2.4vw, 30px);
      line-height: 1.1;
      letter-spacing: .01em;
      text-transform: uppercase;
      color: var(--navy);
      margin-bottom: 10px;
    }

    .hl-text {
      font-size: 16.5px;
      line-height: 1.65;
      color: var(--ink-soft);
    }

    @media (max-width:820px) {
      .pt-list {
        padding-inline: 16px;
      }

      .pt-list {
        padding-block: 44px 64px;
      }

      .hl-list {
        gap: 48px;
      }

      .hl {
        grid-template-columns: 1fr;
        gap: 26px;
      }

      .hl:nth-child(even) .hl-media {
        order: 0;
      }

      .hl-n {
        font-size: 20px;
      }

      .hl-tokens img {
        width: 32px;
        height: 32px;
      }
    }

    .autor-avatar {
      display: block;
      width: 200px;
      height: 200px;
      margin: 0 auto 22px;
      border-radius: 50%;
      object-fit: cover;
      border: 3px solid var(--gold);
      box-shadow: 0 0 0 5px var(--card), 0 0 0 6px rgba(12, 34, 56, .35), 4px 8px 22px var(--shadow);
    }

    @media (max-width:520px) {
      .autor-avatar {
        width: 150px;
        height: 150px;
      }
    }

/* ══════════════════════════════════════
   BARRA: idèntica a la de /play
══════════════════════════════════════ */
nav#main-nav { justify-content: flex-start; gap: 0.5rem; padding: 0 1rem; background: var(--navy); backdrop-filter: none; box-shadow: none; color: #fff; }
nav#main-nav .nav-brand { margin-right: 0.4rem; }
nav#main-nav .nav-links { position: absolute; left: 50%; transform: translateX(-50%); flex: none; gap: 1.6rem; }
nav#main-nav .nav-link { padding: 0; font: 600 0.68rem 'Roboto Serif', Georgia, serif; letter-spacing: 0.22em; color: rgba(255, 255, 255, 0.82); }
nav#main-nav .nav-link:hover { color: var(--gold-pale); }
nav#main-nav .nav-link.active { color: rgba(255, 255, 255, 0.82); font-weight: 600; }
nav#main-nav .lang-selector { margin: 0; display: flex; }
nav#main-nav .lang-selector summary { display: inline-flex; gap: 0.35rem; height: 1.9rem; box-sizing: border-box; padding: 0 0.55em; border: 1px solid rgba(176, 138, 62, 0.7); border-radius: 5px; font: 600 0.75rem/1 'Roboto Serif', Georgia, serif; letter-spacing: 0; color: #fff; }
nav#main-nav .lang-selector summary::after, nav#main-nav .lang-selector[open] summary::after { content: '▾'; margin: 0; font-size: 0.7em; opacity: 0.8; line-height: 1; }
nav#main-nav .lang-selector[open] summary { background: rgba(176, 138, 62, 0.25); }
nav#main-nav .lang-flag { width: 18px; height: 12px; display: block; flex: none; margin: 0; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15); }
nav#main-nav .lang-menu { top: calc(100% + 4px); z-index: 1001; min-width: 11.5rem; padding: 0.3rem; background: #fff; border: 1px solid var(--gold); border-radius: 8px; box-shadow: 0 10px 28px rgba(12, 34, 56, 0.22); }
nav#main-nav .lang-menu a { gap: 0.5rem; padding: 0.35rem 0.55rem; border-radius: 5px; font: 0.88rem 'IM Fell English', Georgia, serif; color: var(--navy); }
nav#main-nav .lang-menu a span { width: 1.6rem; font: 700 0.72rem 'Roboto Serif', Georgia, serif; letter-spacing: 0; opacity: 1; color: var(--ink-soft); }
nav#main-nav .lang-menu a:hover { color: var(--navy); background: #FCFAF5; }
nav#main-nav .lang-menu a.active { color: var(--navy); background: var(--gold-pale); }
nav#main-nav .nav-hamburger { width: auto; height: 1.9rem; padding: 0 0.45rem; border-radius: 5px; font-size: 1.15rem; line-height: 1; color: #fff; }
nav#main-nav .nav-hamburger.open { background: rgba(255, 255, 255, 0.12); }
.nav-mobile-menu { top: calc(50px + 4px); left: auto; min-width: 13rem; max-height: calc(100vh - 70px); padding: 0.45rem; background: #FCFAF5; border: 1px solid var(--gold-pale); border-radius: 12px; box-shadow: 0 14px 34px rgba(12, 34, 56, 0.25); }
.nav-mobile-link { border: 0; border-radius: 7px; padding: 0.55rem 0.8rem; font: 1rem 'IM Fell English', Georgia, serif; letter-spacing: 0; text-transform: none; color: var(--navy); text-decoration: none; }
#nav-mobile-menu .nav-mobile-link i, #nav-mobile-menu .nav-mobile-link svg { display: none; }
.nav-mobile-link:hover { background: #FCFAF5; color: var(--navy); }
@media (min-width: 1281px) { nav#main-nav .nav-hamburger { display: none; } }
@media (max-width: 1280px) { nav#main-nav .nav-links { display: none; } nav#main-nav .nav-hamburger { display: flex; } }
/* Els marges segueixen el filet exterior del marc del hero (.hero::before). */
nav#main-nav { padding: 0 26px; }
.nav-mobile-menu { right: 26px; }
@media (max-width: 820px) { nav#main-nav { padding: 0 8px; } .nav-mobile-menu { right: 8px; } }
nav#main-nav .nav-play { margin-left: auto; display: inline-flex; align-items: center; gap: 0.45rem; height: 1.9rem; box-sizing: border-box; padding: 0 0.8rem; border-radius: 5px; background: var(--gold-pale); color: var(--navy); font: 700 0.68rem 'Roboto Serif', Georgia, serif; letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none; white-space: nowrap; transition: background .2s; }
nav#main-nav .nav-play:hover { background: var(--gold-light); }
@media (max-width: 520px) { nav#main-nav .nav-play span { display: none; } nav#main-nav .nav-play { padding: 0 0.6rem; } }

.ico-contact { display: inline-block; width: 58px; height: auto; vertical-align: middle; }
