:root {
    /* Lost on Purpose brand system: earth colours measured from Lena's Oman photos */
    --chalk: #f3efe7;
    --ink: #161111;
    --earth: #3e302a;
    --dusk: #2b3b4e;
    --dune: #896646;
    --ember: #d5815d;
    --sky: #9daebc;
    --mist: #e6e9e7;
    --mist-2: #d6dcd9;
    --muted: #5c605d;
    --muted-dark: #b8ada6;
    --cobalt: #2440be;
    --line: #c4cbc7;
    --serif: "Instrument Serif", "Times New Roman", serif;
    --loud: "Archivo Narrow", "Arial Narrow", sans-serif;
    --sans: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
    --mono: "DM Mono", "SF Mono", Menlo, monospace;
    --gutter: max(20px, env(safe-area-inset-left, 0px));
    --wrap: 1180px;
  }
  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body { margin: 0; background: var(--mist); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
  img { max-width: 100%; display: block; }
  a { color: inherit; }
  .wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
  .mono { font-family: var(--mono); font-size: 14px; line-height: 1.5; letter-spacing: 0; }
  h1, h2, h3 { font-weight: 400; margin: 0; text-wrap: balance; }
  h2 { font-family: var(--serif); font-size: clamp(40px, 6vw, 76px); line-height: 0.98; letter-spacing: -0.01em; }
  h2 em, h1 em { font-style: italic; }
  p { margin: 0; }
  .btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 26px; border-radius: 4px; font-family: var(--sans); font-weight: 600; font-size: 16px; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: transform .2s ease, background .2s ease; }
  .btn:hover { transform: translateY(-1px); }
  .btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 3px; }
  .btn-chalk { background: var(--chalk); color: var(--ink); }
  .btn-ghost { border-color: var(--chalk); color: var(--chalk); background: transparent; }
  .btn-ink { background: var(--ink); color: var(--chalk); }

  /* Header */
  .head { position: absolute; top: 0; left: 0; right: 0; z-index: 10; padding-top: env(safe-area-inset-top, 0px); color: var(--chalk); }
  .head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 22px; padding-bottom: 22px; }
  .logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
  .logo img { width: 40px; height: 40px; }
  .logo span { font-family: var(--serif); font-size: 27px; line-height: 0.9; }
  .nav { display: flex; align-items: center; gap: 28px; font-size: 15px; font-weight: 500; }
  .nav a { text-decoration: none; }
  .nav a:not(.btn):hover { text-decoration: underline; text-underline-offset: 4px; }
  .nav .btn { min-height: 42px; padding: 0 18px; font-size: 15px; }

  /* Hero */
  .hero { position: relative; min-height: min(100svh, 980px); display: flex; align-items: flex-end; color: var(--chalk); background: var(--earth); overflow: hidden; }
  .hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
  .hero-3d { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity .6s ease; }
  .hero-3d.on { opacity: 1; }
  .hero .wrap { position: relative; width: 100%; padding-bottom: clamp(48px, 9vh, 96px); padding-top: 140px; }
  .hero .mono { margin-bottom: 22px; }
  .hero h1 { font-family: var(--serif); font-size: clamp(54px, 9vw, 128px); line-height: 0.92; letter-spacing: -0.015em; max-width: 11ch; }
  .hero .lede { margin-top: 26px; max-width: 34ch; font-size: clamp(17px, 1.6vw, 20px); line-height: 1.5; }
  .hero .ctas { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 14px; }

  /* Intro */
  .intro { padding: clamp(80px, 11vw, 150px) 0; }
  .intro h2 { max-width: 16ch; }
  .pillars { margin-top: clamp(48px, 6vw, 80px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; border-top: 1px solid var(--line); padding-top: 36px; }
  .pillars h3 { font-family: var(--sans); font-weight: 600; font-size: 19px; margin-bottom: 8px; }
  .pillars p { color: var(--muted); }

  /* Contrast split */
  .split { position: relative; display: grid; grid-template-rows: minmax(0, 1fr) minmax(0, 1fr); overflow: hidden; height: clamp(720px, 110vw, 1180px); color: var(--chalk); background: var(--earth); }
  .split > img { width: 100%; height: 100%; min-height: 0; object-fit: cover; }
  .split .w1, .split .w2 { position: absolute; font-family: var(--loud); font-weight: 700; text-transform: uppercase; font-size: clamp(54px, 10vw, 150px); line-height: 0.88; letter-spacing: 0.005em; margin: 0; }
  .split .w1 { left: 6%; top: 34%; }
  .split .w2 { right: 6%; top: 62%; text-align: right; }

  /* Trip */
  .trip { background: var(--earth); color: var(--chalk); padding: clamp(80px, 11vw, 150px) 0; }
  .trip .top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px; }
  .trip h2 { max-width: 12ch; }
  .trip .intro-p { max-width: 42ch; color: var(--muted-dark); font-size: 18px; }
  .facts { margin-top: clamp(40px, 5vw, 64px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid rgba(243,239,231,.25); border-bottom: 1px solid rgba(243,239,231,.25); }
  .facts div { padding: 26px 20px 26px 0; }
  .facts b { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 3.4vw, 44px); line-height: 1; }
  .facts span { display: block; margin-top: 8px; color: var(--muted-dark); }
  .days { margin-top: clamp(56px, 7vw, 96px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 88px); align-items: start; }
  .daylist { list-style: none; margin: 0; padding: 0; }
  .daylist li { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 18px; padding: 20px 0; border-bottom: 1px solid rgba(243,239,231,.18); }
  .daylist li:first-child { padding-top: 0; }
  .daylist .d { font-family: var(--mono); font-size: 14px; color: var(--muted-dark); padding-top: 4px; }
  .daylist h3 { font-family: var(--sans); font-weight: 600; font-size: 18px; line-height: 1.35; }
  .daylist p { color: var(--muted-dark); font-size: 16px; margin-top: 4px; }
  .daylist .nye h3 { color: var(--ember); }
  .photos { display: grid; gap: 14px; position: sticky; top: 24px; }
  .photos figure { margin: 0; }
  .photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
  .photos figcaption { margin-top: 8px; color: var(--muted-dark); }
  .photos .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  .photos .pair img { aspect-ratio: 4 / 5; }

  /* Quote band */
  .band { position: relative; color: var(--chalk); background: var(--dusk); min-height: clamp(520px, 70vw, 820px); display: flex; align-items: center; overflow: hidden; }
  .band > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
  .band .wrap { position: relative; width: 100%; text-align: center; }
  .band p { font-family: var(--sans); font-size: clamp(20px, 2.6vw, 34px); line-height: 1.3; }

  /* Included + price */
  .incl { padding: clamp(80px, 11vw, 150px) 0; }
  .incl .grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 88px); align-items: start; }
  .lists { margin-top: 44px; display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }
  .lists h3 { font-family: var(--sans); font-weight: 600; font-size: 17px; margin-bottom: 14px; }
  .lists ul { list-style: none; margin: 0; padding: 0; }
  .lists li { padding: 11px 0; border-top: 1px solid var(--line); font-size: 16px; }
  .lists .no li { color: var(--muted); }
  .price { background: var(--chalk); padding: 36px; border-radius: 4px; }
  .price .mono { color: var(--muted); }
  .price .amount { font-family: var(--serif); font-size: clamp(54px, 6vw, 76px); line-height: 1; margin-top: 12px; }
  .price .per { color: var(--muted); margin-top: 6px; }
  .price ul { list-style: none; padding: 0; margin: 26px 0; display: grid; gap: 10px; font-size: 16px; }
  .price li { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); padding-top: 10px; }
  .price li span:last-child { font-family: var(--mono); font-size: 14px; }
  .price .btn { width: 100%; }
  .price .note { margin-top: 14px; font-size: 14px; color: var(--muted); }

  /* For who */
  .who { background: var(--mist-2); padding: clamp(80px, 11vw, 140px) 0; }
  .who .grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 88px); }
  .who ul { list-style: none; padding: 0; margin: 0; }
  .who li { padding: 18px 0; border-top: 1px solid var(--line); font-size: 18px; }
  .who li:last-child { border-bottom: 1px solid var(--line); }

  /* Hosts */
  .hosts { padding: clamp(80px, 11vw, 150px) 0; }
  .hosts .cards { margin-top: clamp(44px, 6vw, 72px); display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
  .host .img { aspect-ratio: 4 / 5; background: var(--mist-2); overflow: hidden; display: flex; align-items: center; justify-content: center; text-align: center; color: var(--muted); padding: 24px; }
  .host .img img { width: 100%; height: 100%; object-fit: cover; }
  .host h3 { font-family: var(--serif); font-size: clamp(34px, 4vw, 48px); line-height: 1; margin-top: 24px; }
  .host .role { color: var(--muted); margin-top: 6px; }
  .host .bio { margin-top: 18px; display: grid; gap: 14px; max-width: 54ch; }
  .host .bio p { font-size: 17px; }

  /* Next */
  .next { background: var(--earth); color: var(--chalk); padding: clamp(80px, 10vw, 130px) 0; }
  .next .row { margin-top: 44px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid rgba(243,239,231,.25); }
  .next .row div { padding: 28px 24px 28px 0; border-bottom: 1px solid rgba(243,239,231,.25); }
  .next .row b { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 4vw, 52px); line-height: 1; }
  .next .row span { display: block; margin-top: 10px; color: var(--muted-dark); }

  /* FAQ */
  .faq { padding: clamp(80px, 11vw, 150px) 0; }
  .faq .grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(40px, 6vw, 88px); }
  details { border-top: 1px solid var(--line); }
  details:last-child { border-bottom: 1px solid var(--line); }
  summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative; font-weight: 600; font-size: 18px; }
  summary::-webkit-details-marker { display: none; }
  summary::after { content: "+"; position: absolute; right: 4px; top: 18px; font-family: var(--sans); font-weight: 400; font-size: 26px; }
  details[open] summary::after { content: "–"; }
  details p { padding: 0 0 24px; color: var(--muted); max-width: 60ch; }

  /* Waitlist */
  .join { position: relative; color: var(--chalk); background: var(--earth); overflow: hidden; }
  .join > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
  .join .wrap { position: relative; padding-top: clamp(90px, 12vw, 160px); padding-bottom: clamp(90px, 12vw, 160px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 48px; align-items: end; }
  .join h2 { font-size: clamp(48px, 7vw, 96px); }
  .form { background: var(--chalk); color: var(--ink); padding: 30px; border-radius: 4px; display: grid; gap: 14px; }
  .form label { display: grid; gap: 6px; font-size: 14px; font-weight: 500; }
  .form input, .form select { font: inherit; font-size: 16px; min-height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: 4px; background: #fff; color: var(--ink); }
  .form .btn { margin-top: 6px; }
  .form .ok { font-size: 15px; color: var(--muted); }

  /* Footer */
  .foot { background: var(--ink); color: var(--chalk); padding: 64px 0 calc(40px + env(safe-area-inset-bottom, 0px)); }
  .foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; align-items: flex-end; }
  .foot .mark { display: flex; align-items: center; gap: 14px; }
  .foot .mark img { width: 54px; height: 54px; }
  .foot .mark b { display: block; font-family: var(--serif); font-weight: 400; font-size: 32px; line-height: 0.9; }
  .foot .mark span { display: block; font-size: 14px; color: var(--muted-dark); margin-top: 6px; }
  .foot .links { display: flex; flex-wrap: wrap; gap: 24px; color: var(--muted-dark); font-size: 15px; }

  @media (max-width: 900px) {
    .nav { gap: 18px; font-size: 14px; } .nav .btn { display: none; } .head .wrap { flex-wrap: wrap; row-gap: 12px; }
    .pillars, .facts, .next .row { grid-template-columns: 1fr 1fr; }
    .days, .incl .grid, .who .grid, .hosts .cards, .faq .grid, .join .wrap { grid-template-columns: 1fr; }
    .photos { position: static; }
  }
  @media (max-width: 560px) {
    body { font-size: 16px; }
    .logo span { font-size: 23px; }
    .pillars, .lists { grid-template-columns: 1fr; }
    .split .w1 { top: 30%; }
    .split .w2 { top: 60%; }
    .price, .form { padding: 24px; }
  }
  @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }

  /* Multi-page additions */
  .head.solid { position: relative; background: var(--earth); }
  .nav .drop { position: relative; }
  .page-hero { position: relative; min-height: min(78svh, 760px); display: flex; align-items: flex-end; color: var(--chalk); background: var(--earth); overflow: hidden; }
  .page-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
  .page-hero .wrap { position: relative; width: 100%; padding-top: 140px; padding-bottom: clamp(44px, 8vh, 88px); }
  .page-hero h1 { font-family: var(--serif); font-size: clamp(56px, 10vw, 140px); line-height: 0.92; letter-spacing: -0.015em; }
  .page-hero .lede { margin-top: 22px; max-width: 40ch; font-size: clamp(17px, 1.6vw, 20px); }
  .page-hero .mono { margin-bottom: 18px; }
  .page-hero.plain { min-height: auto; background: var(--earth); }
  .page-hero.plain .wrap { padding-top: clamp(60px, 9vw, 120px); }
  .trips { padding: clamp(80px, 11vw, 150px) 0; }
  .trip-cards { margin-top: clamp(40px, 5vw, 64px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .trip-card { position: relative; display: block; min-height: 560px; color: var(--chalk); text-decoration: none; overflow: hidden; background: var(--earth); }
  .trip-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
  .trip-card:hover img { transform: scale(1.03); }
  .trip-card .txt { position: absolute; left: 28px; right: 28px; bottom: 28px; }
  .trip-card b { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(44px, 5vw, 68px); line-height: 1; }
  .trip-card span { display: block; margin-top: 10px; }
  .trip-card .go { display: inline-block; margin-top: 18px; font-weight: 600; border-bottom: 1.5px solid var(--chalk); padding-bottom: 2px; }
  .trip-card.soon { background: var(--dusk); }
  .trip-card.soon .star { position: absolute; top: 28px; right: 28px; width: 64px; height: 64px; }
  .story { padding: clamp(80px, 11vw, 150px) 0; }
  .story .grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 88px); align-items: start; }
  .story .body { display: grid; gap: 18px; font-size: 18px; max-width: 56ch; }
  .faq.page { padding-top: clamp(60px, 8vw, 110px); }
  .faq h3.group { font-family: var(--mono); font-size: 14px; font-weight: 400; color: var(--muted); margin: 40px 0 6px; }
  .faq h3.group:first-child { margin-top: 0; }
  @media (max-width: 900px) { .trip-cards, .story .grid { grid-template-columns: 1fr; } .trip-card { min-height: 460px; } }


  .nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 5px; }

  /* Who it's for, Oman page: photo left, heading and list right */
  .who-split .grid { align-items: center; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
  .who-photo { margin: 0; }
  .who-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
  .who-body h2 { margin-bottom: clamp(24px, 3vw, 40px); }
  .who-list li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 16px; align-items: start; }
  .who-list li::before { content: ""; width: 22px; height: 22px; margin-top: 4px; background: url(images/lop-mark-earth.svg) center / contain no-repeat; }
  @media (max-width: 900px) { .who-split .grid { grid-template-columns: 1fr; } .who-photo img { aspect-ratio: 4 / 3; } }

  /* Header that follows you: transparent over photos, solid earth once you scroll */
  .head { position: fixed; transition: background .3s ease, padding .3s ease; }
  .head.solid, .head.scrolled { background: var(--earth); }
  .head.scrolled .wrap { padding-top: 14px; padding-bottom: 14px; }
  body.has-solid-head main { padding-top: 92px; }
  .head .logo img { transition: width .3s ease, height .3s ease; }
  .head.scrolled .logo img { width: 34px; height: 34px; }
  section[id] { scroll-margin-top: 80px; }

  /* Price box stays in view next to the inclusions on desktop */
  @media (min-width: 901px) { .price { position: sticky; top: 100px; } }

  /* Calmer, more even rhythm */
  .intro, .trips, .incl, .hosts, .faq, .story, .trip { padding-top: clamp(84px, 10vw, 136px); padding-bottom: clamp(84px, 10vw, 136px); }
  .who { padding-top: clamp(72px, 9vw, 120px); padding-bottom: clamp(72px, 9vw, 120px); }
  .lists li, .who li, .daylist li { transition: color .2s ease; }
  .trip-card { border-radius: 2px; }
  .trip-card .txt span:not(.go) { max-width: 38ch; }
  @media (max-width: 900px) { body.has-solid-head main { padding-top: 112px; } }

  .host .img:has(img) { padding: 0; }

  /* Morocco page: guide feature + gallery */
  .guide { padding: clamp(84px, 10vw, 136px) 0; }
  .guide .grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 88px); align-items: center; }
  .guide-photos { position: relative; display: grid; grid-template-columns: 1.4fr 1fr; gap: 14px; align-items: end; }
  .guide-photos img { width: 100%; object-fit: cover; }
  .guide-photos .g1 { aspect-ratio: 4 / 5; object-position: 40% 50%; }
  .guide-photos .g2 { aspect-ratio: 9 / 16; }
  .guide-body { display: grid; gap: 18px; }
  .guide-body .mono { color: var(--muted); }
  .guide-body p:not(.mono) { font-size: 18px; max-width: 46ch; }
  .gallery-sec { background: var(--earth); color: var(--chalk); padding: clamp(84px, 10vw, 136px) 0; }
  .gallery-sec .sub { margin-top: 14px; color: var(--muted-dark); }
  .gallery { margin-top: clamp(36px, 5vw, 60px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 220px; grid-auto-flow: dense; gap: 14px; }
  .gallery figure { margin: 0; position: relative; overflow: hidden; }
  .gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
  .gallery figure:hover img { transform: scale(1.03); }
  .gallery figcaption { position: absolute; left: 12px; bottom: 10px; color: var(--chalk); font-size: 13px; background: rgba(22,17,17,.55); padding: 4px 8px; border-radius: 2px; }
  .gallery .tall { grid-row: span 2; }
  .gallery .wide { grid-column: span 2; }
  @media (max-width: 900px) { .guide .grid { grid-template-columns: 1fr; } .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 180px; } }
  @media (prefers-reduced-motion: reduce) { .gallery img { transition: none; } }

  .trip-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  @media (max-width: 1100px) { .trip-cards { grid-template-columns: 1fr 1fr; } }
  @media (max-width: 700px) { .trip-cards { grid-template-columns: 1fr; } }

  /* Menu: Trips dropdown */
  .drop { position: relative; }
  .drop-btn { font: inherit; color: inherit; background: none; border: 0; padding: 10px 0; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
  .drop-btn span { font-size: 11px; }
  .drop-menu { position: absolute; top: 100%; left: -18px; min-width: 280px; background: var(--chalk); color: var(--ink); border-radius: 4px; padding: 8px; display: grid; gap: 2px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .2s ease, transform .2s ease, visibility .2s; }
  .drop:hover .drop-menu, .drop:focus-within .drop-menu { opacity: 1; visibility: visible; transform: none; }
  .drop-menu a { display: grid; gap: 2px; padding: 12px 14px; border-radius: 3px; text-decoration: none !important; }
  .drop-menu a:hover, .drop-menu a[aria-current="page"] { background: var(--mist); }
  .drop-menu b { font-family: var(--serif); font-weight: 400; font-size: 24px; line-height: 1; }
  .drop-menu span { font-family: var(--mono); font-size: 12px; color: var(--muted); }
  @media (max-width: 900px) {
    .drop-menu { left: auto; right: -40px; }
  }

  .guide.why { background: var(--mist); }
  .guide.why .guide-photos .g2 { aspect-ratio: 3 / 4; }

  .drop-menu { border: 1px solid var(--line); }

  .host .bio a.yt { display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 20px; border: 1.5px solid var(--ink); border-radius: 4px; font-weight: 600; font-size: 15px; text-decoration: none; }
  .host .bio a.yt:hover { background: var(--ink); color: var(--chalk); }
  .host .bio a.yt::before { content: ""; width: 0; height: 0; border-left: 9px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
