* { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  html, body { margin: 0; padding: 0; overflow-x: hidden; }
  body { background: #f1e7d6; }
  ::placeholder { color: #a99c86; opacity: 1; }
  @keyframes mc-pop { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
  @keyframes mc-write { from { clip-path: inset(-14% 100% -24% -2%); } to { clip-path: inset(-14% -6% -24% -2%); } }
  @keyframes mc-fade { 0%, 6% { opacity: 0; transform: translateY(4px) rotate(-1.5deg); } 14%, 86% { opacity: 1; transform: translateY(0) rotate(-1.5deg); } 94%, 100% { opacity: 0; transform: translateY(-4px) rotate(-1.5deg); } }
  ::-webkit-scrollbar { width: 10px; height: 10px; }
  ::-webkit-scrollbar-thumb { background: #d8cab2; border-radius: 8px; }

  /* ============================================================
     HERO
     ============================================================ */
  .hero-grid {
    position: relative; z-index: 2; flex: 1;
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 40px; align-items: center;
    max-width: 1180px; margin: 0 auto;
    padding: 0 24px; width: 100%;
  }
  .hero-left { max-width: 640px; min-width: 0; }
  .hero-right { position: relative; align-self: stretch; display: flex; align-items: center; justify-content: center; min-width: 0; }
  .hero-scrap { position: relative; width: 100%; max-width: 440px; transform: rotate(2.5deg); filter: drop-shadow(0 28px 50px rgba(98, 74, 40, .35)); }
  .hero-scrap-photo { width: 100%; aspect-ratio: 3 / 4.2; background-image: url('https://media.mallorca-touristguide.com/imagenes/1200/mercado%20de%20manacor%2012.1.18%20-%20003.JPG'); background-size: cover; background-position: center 30%; border: 10px solid #fffdf8; border-radius: 2px; }
  .hero-scrap-tape { position: absolute; top: -16px; left: 50%; width: 120px; height: 30px; background: rgba(255, 253, 248, 0.78); transform: translateX(-50%) rotate(-4deg); box-shadow: 0 4px 12px rgba(0, 0, 0, .08); border-left: 1px dashed rgba(0, 0, 0, .08); border-right: 1px dashed rgba(0, 0, 0, .08); }
  .hero-scrap-label { position: absolute; bottom: -22px; left: 50%; transform: translateX(-50%) rotate(-3deg); background: #b1432c; color: #fffdf8; font-family: 'Permanent Marker', cursive; font-size: 22px; padding: 4px 18px 8px; white-space: nowrap; box-shadow: 0 8px 18px rgba(98, 74, 40, .3); }
  .hero-scrap-caption { position: absolute; bottom: -68px; right: -8px; font-family: 'Kalam', cursive; font-weight: 600; font-size: 20px; color: #a07a4c; transform: rotate(2deg); max-width: 180px; text-align: right; line-height: 1.15; }

  /* ============================================================
     SECTORS — 4 named shops + stamped Permanent Marker kicker
     (DARK theme)
     ============================================================ */
  .sectors-head { display: grid; grid-template-columns: 1fr auto; align-items: flex-end; gap: 32px; margin-bottom: 56px; }
  .kicker-stamp { display: inline-block; font-family: 'Permanent Marker', cursive; font-size: 22px; color: #b1432c; background: rgba(177, 67, 44, .08); border: 1.5px solid #b1432c; padding: 4px 14px 8px; transform: rotate(-2deg); letter-spacing: .5px; margin-bottom: 20px; }
  .section-cta-link { font-size: 14.5px; color: #b1432c; font-weight: 600; text-decoration: none; white-space: nowrap; align-self: end; padding-bottom: 4px; border-bottom: 1.5px solid currentColor; }
  .sector-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px; }
  .sector-card { position: relative; text-decoration: none; color: inherit; display: flex; flex-direction: column; background: #3a4430; border: 1px solid rgba(255, 253, 248, .12); border-radius: 12px; overflow: hidden; min-height: 340px; transition: transform .25s ease, border-color .2s, box-shadow .25s ease; }
  .sector-card:hover { transform: translateY(-4px); border-color: #b1432c; box-shadow: 0 18px 36px -22px rgba(0, 0, 0, .55); }
  .sector-photo { height: 220px; position: relative; overflow: hidden; }
  .sector-photo::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(45deg, var(--s1) 0 11px, var(--s2) 11px 22px); }
  .sector-photo-tag { position: absolute; bottom: 10px; left: 10px; font-family: 'Young Serif', serif; font-size: 11px; color: var(--s-tx); background: #fffdf8; padding: 3px 8px; border-radius: 4px; letter-spacing: .03em; }
  .sector-num { position: absolute; top: 12px; right: 16px; font-family: 'Permanent Marker', cursive; font-size: 38px; color: var(--s-num); opacity: .5; line-height: 1; z-index: 2; }
  .sector-info { padding: 24px 24px 26px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
  .sector-name { font-family: 'Young Serif', serif; font-size: 24px; line-height: 1.1; color: #f1e7d6; margin: 0; letter-spacing: -.01em; }
  .sector-cat { font-family: 'Kalam', cursive; font-weight: 600; font-size: 18px; color: rgba(241,231,214,.72); line-height: 1.2; }
  .sector-meta { margin-top: auto; font-size: 13px; color: rgba(241,231,214,.55); font-weight: 500; display: flex; align-items: center; gap: 6px; }
  .sector-meta .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--s-dot); display: inline-block; }
  .sectors-bottom { margin-top: 44px; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
  .sectors-bottom p { font-family: 'Newsreader', serif; font-style: italic; font-size: 19px; color: rgba(241,231,214,.78); max-width: 560px; line-height: 1.4; margin: 0; }
  .sectors-bottom strong { color: #b1432c; font-style: normal; font-weight: 600; }

  /* ============================================================
     FACES (LIGHT theme)
     ============================================================ */
  .faces-head { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: flex-end; margin-bottom: 48px; }
  .kicker-bracket { font-family: 'Young Serif', serif; font-weight: 600; font-size: 12.5px; letter-spacing: 3px; text-transform: uppercase; color: #a07a4c; display: inline-flex; align-items: center; gap: 10px; margin-bottom: 14px; }
  .kicker-bracket::before { content: '['; color: #b1432c; font-size: 16px; }
  .kicker-bracket::after { content: ']'; color: #b1432c; font-size: 16px; }
  .faces-title { font-family: 'Young Serif', serif; font-weight: 400; font-size: clamp(36px, 4.2vw, 56px); line-height: 1.05; letter-spacing: -.02em; color: #2a241d; margin: 0; }
  .faces-sub { font-size: 18px; color: #6f6555; line-height: 1.55; margin: 14px 0 0; }
  .faces-grid { display: grid; grid-template-columns: 1.2fr 1fr 1.05fr; gap: 28px; align-items: stretch; }
  .face { margin: 0; background: #fffdf8; border: 1px solid #e6dac5; border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; }
  .face-photo { position: relative; height: 220px; background: repeating-linear-gradient(45deg, var(--fp1) 0 11px, var(--fp2) 11px 22px); display: flex; align-items: flex-end; padding: 12px; }
  .face-photo-tag { font-family: 'Young Serif', serif; font-size: 11px; color: var(--fp-tx); background: #fffdf8; padding: 3px 8px; border-radius: 4px; letter-spacing: .03em; }
  .face-body { padding: 28px 28px 30px; display: flex; flex-direction: column; gap: 20px; flex: 1; }
  .face-quote { font-family: 'Kalam', cursive; font-weight: 600; font-size: 26px; line-height: 1.18; color: #2a241d; margin: 0; letter-spacing: 0; }
  .face-quote::before { content: '«'; color: #b1432c; margin-right: 2px; }
  .face-quote::after { content: '»'; color: #b1432c; margin-left: 2px; }
  .face-meta { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 18px; border-top: 1px solid #e6dac5; }
  .face-meta .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--fm); flex: none; }
  .face-meta .who { font-size: 15.5px; font-weight: 600; color: #2a241d; }
  .face-meta .where { font-size: 13.5px; color: #9a8c75; display: block; margin-top: 2px; }
  .face-featured { grid-row: span 2; }
  .face-featured .face-body { padding: 44px 44px 50px; justify-content: center; gap: 32px; }
  .face-featured .face-quote { font-size: clamp(34px, 3.2vw, 44px); line-height: 1.12; }
  .face-featured .face-meta { padding-top: 0; border-top: none; align-items: center; }
  .face-featured .face-meta .who { font-size: 17px; }
  .face-featured .face-meta .where { font-size: 14.5px; margin-top: 3px; }
  .faces-stacked { display: grid; grid-template-rows: 1fr 1fr; gap: 32px; }

  /* ============================================================
     NEW 1/6: NOISE FILTER (paper grain) on cream sections
     ============================================================ */
  .paper-grain {
    position: relative;
    isolation: isolate;
  }
  .paper-grain::after {
    content: '';
    position: absolute; inset: 0; z-index: 2; pointer-events: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.16  0 0 0 0 0.14  0 0 0 0 0.11  0 0 0 0.5 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
    opacity: .12;
    mix-blend-mode: multiply;
  }
  .paper-grain > * { position: relative; z-index: 1; }

  /* ============================================================
     NEW 2/6: SECTION STAMPS (rubber stamps in corners)
     ============================================================ */
  .section-stamp {
    position: absolute;
    top: 30px;
    right: 32px;
    z-index: 6;
    width: fit-content;
    max-width: max-content;
    font-family: 'Permanent Marker', cursive;
    font-size: 17px;
    letter-spacing: 1.2px;
    color: #b1432c;
    border: 2px solid #b1432c;
    padding: 5px 14px 6px;
    background: rgba(255, 253, 248, 0.08);
    transform: rotate(-4deg);
    opacity: .85;
    white-space: nowrap;
  }
  .section-stamp.on-dark {
    color: #f1e7d6;
    border-color: #c98a2b;
    background: rgba(201, 138, 43, 0.08);
  }
  .section-stamp.tl { top: 30px; right: auto; left: 32px; transform: rotate(3deg); }
  .section-stamp.small { font-size: 14px; padding: 4px 10px 5px; }

  /* ============================================================
     NEW 3/6: ARA MATEIX NOTE (fixed bottom-right, rotating)
     ============================================================ */
  .ara-mateix {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 95;
    background: #fffdf8;
    border: 1.5px solid #b1432c;
    padding: 12px 22px 14px;
    font-family: 'Kalam', cursive;
    font-weight: 600;
    font-size: 18px;
    color: #b1432c;
    line-height: 1.2;
    transform: rotate(-2deg);
    box-shadow: 0 14px 30px -10px rgba(98, 74, 40, .45);
    max-width: 300px;
    transition: opacity .4s ease;
    pointer-events: none;
  }
  .ara-mateix::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    width: 60px;
    height: 16px;
    background: rgba(255, 253, 248, 0.78);
    transform: translateX(-50%) rotate(3deg);
    box-shadow: 0 2px 6px rgba(0, 0, 0, .08);
  }
  .ara-mateix .am-label {
    display: block;
    font-size: 11px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: #a07a4c;
    font-weight: 600;
    margin-bottom: 4px;
    font-family: 'Atkinson Hyperlegible', sans-serif;
  }

  /* ============================================================
     NEW 4/6: RIPPED-PAPER DIVIDERS
     ============================================================ */
  .rip-divider {
    display: block;
    width: 100%;
    height: 28px;
    margin: 0;
    line-height: 0;
    position: relative;
  }
  .rip-divider svg { display: block; width: 100%; height: 100%; }

  /* ============================================================
     MAP lives in mapa.html (separate page). CSS removed.

     FOOTER — NEWSPAPER LAYOUT
     ============================================================ */
  .footer-newspaper {
    background: #2f3826;
    color: #f1e7d6;
    position: relative;
    overflow: hidden;
  }
  .footer-masthead {
    border-bottom: 3px double #f1e7d6;
    padding: 32px 32px 24px;
    max-width: 1240px;
    margin: 0 auto;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
  }
  .footer-mast-left { display: flex; align-items: flex-end; gap: 22px; flex-wrap: wrap; }
  .footer-title {
    font-family: 'Young Serif', serif;
    font-size: clamp(40px, 5vw, 58px);
    line-height: 1;
    letter-spacing: -.03em;
    color: #f1e7d6;
    margin: 0;
  }
  .footer-date {
    font-family: 'Kalam', cursive;
    font-weight: 600;
    font-size: 22px;
    color: #b1432c;
    transform: rotate(-2deg);
    display: inline-block;
    line-height: 1.15;
  }
  .footer-edition {
    font-family: 'Young Serif', serif;
    font-style: italic;
    font-size: 14px;
    color: rgba(241, 231, 214, .65);
    border-left: 1px solid rgba(241, 231, 214, .4);
    padding-left: 14px;
    line-height: 1.3;
  }
  .footer-cols {
    max-width: 1240px;
    margin: 0 auto;
    padding: 28px 32px 24px;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 0;
    border-bottom: 1px solid rgba(241, 231, 214, .3);
  }
  .footer-col {
    padding: 0 22px;
    border-left: 1px solid rgba(241, 231, 214, .12);
  }
  .footer-col:first-child { border-left: none; padding-left: 0; }
  .footer-col h4 {
    font-family: 'Young Serif', serif;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    margin: 0 0 11px;
    color: #f1e7d6;
  }
  .footer-col p, .footer-col a {
    font-size: 14px;
    line-height: 1.55;
    color: rgba(241, 231, 214, .82);
    text-decoration: none;
    display: block;
    margin-bottom: 4px;
    font-family: 'Atkinson Hyperlegible', sans-serif;
  }
  .footer-col p { color: rgba(241, 231, 214, .65); }
  .footer-col a:hover { color: #b1432c; }
  .footer-col-lede {
    font-family: 'Newsreader', serif !important;
    font-style: italic !important;
    font-size: 15.5px !important;
    line-height: 1.5 !important;
    color: rgba(241, 231, 214, .75) !important;
    margin-bottom: 0 !important;
  }
  .footer-cintillo {
    max-width: 1240px;
    margin: 0 auto;
    padding: 16px 32px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11.5px;
    color: rgba(241, 231, 214, .55);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 600;
    flex-wrap: wrap;
    gap: 12px;
  }
  .footer-cintillo .stamp {
    font-family: 'Permanent Marker', cursive;
    font-size: 20px;
    color: #b1432c;
    text-transform: none;
    letter-spacing: 0;
    transform: rotate(-2deg);
    display: inline-block;
    border: 1.5px solid #b1432c;
    padding: 3px 12px 4px;
  }

  /* ============================================================
     RESPONSIVE — mobile pass
     Breakpoints: 1500, 1100, 720, 480
     ============================================================ */
  @media (max-width: 1500px) {
    .sector-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-cols { grid-template-columns: 1.4fr 1fr 1fr; }
    .footer-col.hide-md { display: none; }
  }
  @media (max-width: 1100px) {
    .hero-grid { grid-template-columns: 1fr; gap: 64px; }
    .hero-right { order: -1; }
    .hero-scrap { max-width: 320px; }
    .sector-grid { grid-template-columns: repeat(2, 1fr); }
    .faces-grid { grid-template-columns: 1fr; }
    .faces-stacked { grid-template-rows: auto; }
    .face-featured { grid-row: auto; }
    .sectors-head { grid-template-columns: 1fr; }
    .map-svg { max-height: 380px; object-fit: contain; }
    .footer-cols { grid-template-columns: 1fr 1fr; }
    .footer-col { border-left: none; padding: 18px 0; border-top: 1px solid rgba(241, 231, 214, .12); }
    .footer-col:first-child { border-top: none; padding-top: 0; }
    .ara-mateix { max-width: 220px; font-size: 16px; bottom: 18px; right: 18px; padding: 10px 16px 12px; }
    .section-stamp { font-size: 14px; padding: 4px 10px 5px; }
  }
  @media (max-width: 720px) {
    /* NAV — collapse to wordmark + CTA pill only */
    .nav-meta { display: none; }
    .nav-links > a:not(.nav-pill) { display: none; }
    .nav-links { gap: 12px; }
    .nav-pill { padding: 8px 14px !important; font-size: 13.5px !important; }
    .nav-inner { padding: 4px 22px 6px !important; }
    nav > div > a > span:first-child { font-size: 30px !important; }

    /* HERO */
    .hero-header { min-height: 100svh; }
    .hero-grid { padding: 96px 22px 56px; gap: 44px; }
    .hero-right { display: none; }              /* redundant with the background photo on phones */
    .hero-left { max-width: 100%; }
    .hero-scrap { max-width: 260px; }
    .hero-scrap-label { font-size: 18px; padding: 3px 14px 6px; }
    .hero-scrap-caption { font-size: 16px; max-width: 150px; bottom: -58px; }
    .hero-left h1 span { white-space: normal !important; font-size: clamp(38px, 11vw, 64px) !important; line-height: 1.03 !important; }
    .hero-left p { font-size: 17px; }
    .hero-search-row { padding: 8px 8px 8px 18px !important; }
    .hero-search-row input { font-size: 16px !important; }
    .hero-search-row button { padding: 12px 20px !important; font-size: 15px !important; }
    .hero-chips button { padding: 11px 16px !important; }

    /* SECTORS */
    .sector-grid { grid-template-columns: 1fr; gap: 16px; }
    .sector-card { min-height: 0; }
    .sector-photo { height: 180px; }
    .sector-info { padding: 18px 20px 22px; }
    .sector-name { font-size: 21px; }
    .sector-cat { font-size: 16px; }

    /* FACES */
    .faces-grid { gap: 18px; }
    .face-photo { height: 160px; }
    .face-body { padding: 22px 22px 24px; }
    .face-quote { font-size: 22px; }
    .face-featured .face-body { padding: 28px 24px 32px; gap: 22px; }
    .faces-stacked { gap: 18px; }

    /* FOOTER */
    .footer-masthead { padding: 26px 22px 18px; gap: 16px; }
    .footer-mast-left { gap: 14px; }
    .footer-title { font-size: 44px; }
    .footer-date { font-size: 19px; }
    .footer-edition { font-size: 12.5px; padding-left: 10px; }
    .footer-cols { grid-template-columns: 1fr; padding: 24px 22px 18px; }
    .footer-col { padding: 16px 0; }
    .footer-col p, .footer-col a { font-size: 13.5px; }
    .footer-cintillo { padding: 14px 22px 18px; font-size: 11px; gap: 8px; }
    .footer-cintillo .stamp { font-size: 16px; padding: 2px 10px 3px; }

    /* SECTIONS — general padding tighter */
    .hero-grid, .footer-masthead, .footer-cols, .footer-cintillo { padding-left: 22px; padding-right: 22px; }
    section[style*="padding:36px 24px 100px"] { padding: 28px 22px 80px !important; }
    section[style*="padding:24px 24px 110px"] { padding: 20px 22px 80px !important; }

    /* STAMPS */
    .section-stamp { font-size: 12px; padding: 3px 9px 4px; top: 18px; right: 22px; }
    .section-stamp.on-dark { top: 18px; right: 22px; }

    /* ARA MATEIX */
    .ara-mateix { display: none; }

    /* DIVIDERS — menos altos en mobile */
    .rip-divider[style*="height:100px"] { height: 56px !important; }
    .rip-divider[style*="height:18px"] { height: 14px !important; }
    .rip-divider[style*="height:40px"] { height: 28px !important; margin-bottom: 16px !important; }
  }
  @media (max-width: 480px) {
    /* iPhone SE / Android compact */
    .hero-grid { padding: 88px 18px 50px; gap: 36px; }
    .nav-inner { padding: 4px 18px 6px !important; }
    .hero-left h1 span { font-size: clamp(38px, 13.5vw, 60px) !important; }
    .hero-scrap { max-width: 220px; }
    .hero-scrap-caption { font-size: 14px; max-width: 130px; bottom: -50px; }

    .sector-card { min-height: 0; }
    .sector-photo { height: 150px; }
    .sector-info { padding: 16px 18px 18px; }
    .sector-name { font-size: 19px; }

    .face-body { padding: 18px 18px 20px; }
    .face-quote { font-size: 20px; }
    .face-featured .face-quote { font-size: 24px; }

    .footer-title { font-size: 38px; }
    .footer-masthead { padding: 22px 18px 14px; }
    .footer-cols, .footer-cintillo { padding-left: 18px; padding-right: 18px; }
  }