/* OUTSIDERS /ebc and /en/ebc. Tokens: outsiders-studio CI.md. Layout language: DESIGN.md
   (bare photos, colour cards sampled from the photos, mono furniture, one acid accent). */
:root {
  --paper: #F5F2EB;
  --ink: #171715;
  --mute: #5E5B54;
  --line: #CFC9BC;
  --acid: #B4FC03;
  --sky: #1D3F63;   /* IMG_7098 sky, darkened: 10.6:1 with paper */
  --dusk: #2C3A4F;  /* Sagarmatha Next at dusk: 10.9:1 */
  --rust: #6B2E1A;  /* down suits and tents: 10.4:1 */
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1240px;
  --mono: 'Martian Mono', Anuphan, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 16px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Anuphan, sans-serif; font-weight: 400; line-height: 1.6; -webkit-text-size-adjust: 100%; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--acid); outline-offset: 3px; }
.dark :focus-visible, .hero :focus-visible { outline-color: var(--paper); }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .04em; line-height: 1.6; }
.kicker { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.h2 { font-size: clamp(30px, 4vw, 52px); line-height: 1.2; font-weight: 400; }
.lede { font-size: clamp(19px, 1.9vw, 23px); line-height: 1.7; max-width: 34em; }
.body { font-size: 17px; line-height: 1.75; max-width: 36em; }
.credit { font-family: var(--mono); font-size: 11px; color: var(--mute); margin-top: 8px; }
.dark .credit { color: rgba(245, 242, 235, .72); }
.sec { padding: clamp(72px, 10vw, 144px) 0; }
.dark { color: var(--paper); }
.dark a { color: var(--paper); }

/* ---- header ---- */
.site-header { position: absolute; z-index: 3; inset: 0 0 auto 0; padding: 16px var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--paper); }
.brand { display: flex; align-items: center; gap: 8px 18px; flex-wrap: wrap; }
.brand img { height: 22px; width: auto; filter: invert(1) brightness(1.1); }
.brand span { font-family: var(--mono); font-size: 11px; opacity: .82; }
.lang { display: flex; gap: 14px; font-size: 15px; }
.lang a, .lang span { display: inline-flex; align-items: center; min-height: 44px; min-width: 32px; justify-content: center; }
.lang span { text-decoration: underline; text-underline-offset: 6px; }
.lang a { text-decoration: none; opacity: .82; }

/* ---- hero: title on the sky, no scrim ---- */
.hero { position: relative; color: var(--paper); background: var(--sky); }
.hero picture img { width: 100%; height: min(100svh, 880px); min-height: 560px; object-fit: cover; object-position: center top; }
.hero-text { position: absolute; inset: 0 0 auto 0; padding: clamp(80px, 11vh, 108px) var(--gutter) 0; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; }
.hero h1 { font-weight: 400; display: flex; flex-direction: column; gap: 10px; }
.hero .series { font-size: clamp(52px, 7.4vw, 104px); line-height: 1; letter-spacing: -.01em; }
.hero .th-line { font-size: clamp(22px, 2.2vw, 30px); line-height: 1.35; }
.hero .byline { margin-bottom: 18px; }
.hero-sub { margin-top: 14px; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.5; opacity: .92; }
.name-note { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--ink); font-size: clamp(20px, 2vw, 26px); line-height: 1.5; }
.name-note span { display: block; margin-top: 6px; font-size: 14px; color: var(--mute); }
.hero-band { background: var(--paper); color: var(--ink); }
.hero-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; padding-top: 28px; padding-bottom: 28px; border-bottom: 1px solid var(--ink); }
.meta { display: flex; flex-wrap: wrap; gap: 6px 28px; font-size: 18px; }
.meta li { list-style: none; }
.meta { padding: 0; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px; background: var(--ink); color: var(--paper); text-decoration: none; font-size: 17px; border: 0; border-radius: 0; font-family: inherit; cursor: pointer; }
.btn:hover { background: #2c2c29; }
.cta small { font-size: 14px; color: var(--mute); }

/* ---- concept ---- */
.concept-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px clamp(32px, 6vw, 96px); align-items: start; }
.concept-grid .lede + .lede { margin-top: 20px; }
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: clamp(48px, 6vw, 80px); padding: 0; }
.pillars li { list-style: none; border-top: 1px solid var(--ink); padding-top: 14px; }
.pillars h3 { font-size: 22px; font-weight: 400; margin-bottom: 6px; }
.pillars p { font-size: 16px; line-height: 1.65; color: #3a3935; }

/* ---- then and now ---- */
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 28px; }
.pair figure { position: relative; }
.pair img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.pair .tag { position: absolute; left: 10px; top: 10px; background: var(--paper); padding: 3px 8px; }
.tn-copy { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 64px; margin-top: 40px; }
.stat { border-top: 1px solid var(--ink); padding-top: 12px; }
.stat b { display: block; font-family: var(--mono); font-weight: 400; font-size: clamp(40px, 5vw, 64px); line-height: 1.1; }
.stat p { font-size: 16px; line-height: 1.6; margin-top: 8px; max-width: 26em; }

/* ---- leader card ---- */
.leader { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: var(--sky); }
.leader > img { width: 100%; height: 100%; min-height: 420px; object-fit: cover; object-position: center 30%; }
.leader-card { position: relative; padding: clamp(48px, 6vw, 88px) var(--gutter) 140px; display: flex; flex-direction: column; gap: 24px; }
.leader-card .h2 { font-size: clamp(30px, 3.4vw, 46px); }
.figures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; padding: 0; }
.figures li { list-style: none; border-top: 1px solid rgba(245, 242, 235, .5); padding-top: 10px; }
.figures b { display: block; font-family: var(--mono); font-weight: 400; font-size: clamp(30px, 3vw, 44px); line-height: 1.1; }
.figures span { display: block; font-size: 15px; line-height: 1.5; margin-top: 6px; }
.quote { font-size: clamp(22px, 2.2vw, 30px); line-height: 1.5; max-width: 20em; }
.quote-by { font-size: 15px; opacity: .85; margin-top: -12px; }
.omark { position: absolute; right: var(--gutter); bottom: clamp(28px, 4vw, 56px); width: 56px; height: auto; filter: invert(1) brightness(1.1); }

/* ---- full-bleed photo break ---- */
.bleed img { width: 100%; height: clamp(320px, 62vw, 860px); object-fit: cover; }
.bleed .wrap { padding-top: 10px; }

/* ---- Sagarmatha Next ---- */
.sn { background: var(--dusk); }
.sn-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px 40px; margin-bottom: 28px; }
.sn-main img { width: 100%; aspect-ratio: 1360 / 689; object-fit: cover; }
.sn-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.sn-strip img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.sn-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 40px; margin-top: 48px; }
.sn-cols div { border-top: 1px solid rgba(245, 242, 235, .5); padding-top: 12px; }
.sn-cols .kicker { opacity: .8; margin-bottom: 8px; }
.sn-cols p { font-size: 17px; line-height: 1.7; }
.carry { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; align-items: center; margin-top: 48px; padding-top: 28px; border-top: 1px solid rgba(245, 242, 235, .5); }
.carry img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* ---- stops ---- */
.stops { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 40px; padding: 0; }
.stops li { list-style: none; }
.stops img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin-bottom: 14px; }
.stops h3 { font-size: 24px; font-weight: 400; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.stops h3 .mono { color: var(--mute); }
.stops .mono.day { margin: 4px 0 8px; color: var(--mute); }
.stops p { font-size: 16px; line-height: 1.7; }

/* ---- compare ---- */
.compare { width: 100%; border-collapse: collapse; margin-top: 32px; font-size: 17px; }
.compare th { font-family: var(--mono); font-size: 12px; font-weight: 400; text-transform: uppercase; letter-spacing: .06em; text-align: left; padding: 0 16px 12px 0; color: var(--mute); width: 50%; }
.compare td { border-top: 1px solid var(--line); padding: 16px 16px 16px 0; vertical-align: top; line-height: 1.6; }
.compare td:first-child { color: var(--mute); }
.compare tr:last-child td { border-bottom: 1px solid var(--line); }

/* ---- route ---- */
.route { background: var(--ink); }
.route-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 12px 40px; }
.alt-chart { width: 100%; height: clamp(140px, 18vw, 240px); margin: 40px 0 8px; display: block; overflow: visible; }
.alt-chart text { fill: var(--paper); font-family: 'Martian Mono', monospace; font-size: 11px; }
.days { width: 100%; border-collapse: collapse; margin-top: 40px; font-size: 16px; }
.days th { font-family: var(--mono); font-size: 11px; font-weight: 400; text-transform: uppercase; letter-spacing: .06em; text-align: left; padding: 0 12px 10px 0; opacity: .75; }
.days td { border-top: 1px solid rgba(245, 242, 235, .28); padding: 13px 12px 13px 0; vertical-align: top; line-height: 1.55; }
.days td:first-child, .days td:nth-child(3) { font-family: var(--mono); font-size: 13px; white-space: nowrap; padding-top: 15px; }
.days tr.hi td { color: var(--acid); }
.days tr.hi td:last-child { color: var(--paper); }
.route .note { margin-top: 20px; font-size: 15px; opacity: .85; }

/* ---- people ---- */
.people { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 40px; margin-top: 40px; padding: 0; }
.people li { list-style: none; border-top: 1px solid var(--ink); padding-top: 14px; }
.people h3 { font-size: 22px; font-weight: 400; margin-bottom: 8px; }
.people p { font-size: 16px; line-height: 1.7; }

/* ---- timeline ---- */
.timeline { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; margin-top: 40px; padding: 0; counter-reset: t; }
.timeline li { list-style: none; border-top: 2px solid var(--ink); padding: 14px 18px 0 0; position: relative; }
.timeline li::before { content: ''; position: absolute; left: 0; top: -7px; width: 12px; height: 12px; background: var(--ink); }
.timeline li.now::before { background: var(--acid); outline: 2px solid var(--ink); }
.timeline .mono { display: block; margin: 8px 0 6px; }
.timeline p { font-size: 16px; line-height: 1.6; }

/* ---- FAQ ---- */
.faq-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 32px 64px; }
.faq details { border-top: 1px solid var(--ink); }
.faq details:last-child { border-bottom: 1px solid var(--ink); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; font-size: 19px; position: relative; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 16px; font-family: var(--mono); font-size: 22px; }
.faq details[open] summary::after { content: '–'; }
.faq details p { padding: 0 40px 22px 0; font-size: 17px; line-height: 1.75; }

/* ---- join (end card) ---- */
.join { background: var(--rust); position: relative; padding: clamp(72px, 9vw, 120px) 0 clamp(150px, 14vw, 200px); }
.join .wrap { position: relative; }
.join-main { max-width: 620px; display: flex; flex-direction: column; gap: 36px; }
.join-lead { font-size: clamp(24px, 2.6vw, 34px); line-height: 1.5; }
.join-form { display: flex; flex-direction: column; gap: 24px; max-width: 480px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 15px; }
.field input, .field select { font: inherit; font-size: 18px; color: var(--paper); background: transparent; border: 0; border-bottom: 1px solid var(--paper); border-radius: 0; padding: 10px 0; min-height: 48px; }
.field select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--paper) 50%), linear-gradient(135deg, var(--paper) 50%, transparent 50%); background-position: calc(100% - 14px) 22px, calc(100% - 8px) 22px; background-size: 6px 6px; background-repeat: no-repeat; }
.field select option { color: var(--ink); }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.6; }
.consent input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--paper); flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { background: var(--paper); color: var(--rust); padding: 10px 14px; font-size: 15px; }
.join .btn { background: var(--paper); color: var(--rust); padding: 0 40px; }
.join .btn:hover { background: #fff8ea; }
.join .btn:disabled { opacity: .6; }
.form-done { font-size: 20px; line-height: 1.6; }
.dm { font-size: 15px; }
.join-wordmark { position: absolute; top: 0; right: var(--gutter); width: 260px; transform-origin: top right; transform: rotate(90deg) translateY(-100%) translateX(100%); filter: invert(1) brightness(1.1); }
.join-foot { position: absolute; left: 0; right: 0; bottom: clamp(24px, 4vw, 48px); display: flex; justify-content: space-between; align-items: end; gap: 20px; padding: 0 var(--gutter); max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; }
.join-foot p { font-size: 12px; line-height: 1.7; max-width: 70%; }
.join-foot img { width: 56px; filter: invert(1) brightness(1.1); }

/* ---- sticky join bar (phones) ---- */
.sticky-cta { position: fixed; z-index: 5; left: 0; right: 0; bottom: 0; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--paper); border-top: 1px solid var(--ink); display: none; align-items: center; justify-content: space-between; gap: 12px; transform: translateY(110%); visibility: hidden; transition: transform .25s ease, visibility 0s linear .25s; }
.sticky-cta.on { transform: none; visibility: visible; transition: transform .25s ease; }
.sticky-cta .btn { min-height: 46px; padding: 0 20px; font-size: 16px; }
.sticky-cta span { font-size: 14px; line-height: 1.4; }
@media (prefers-reduced-motion: reduce) { .sticky-cta, .sticky-cta.on { transition: none; } }

/* ---- small screens ---- */
@media (max-width: 900px) {
  .concept-grid, .tn-copy, .faq-grid { grid-template-columns: 1fr; }
  .leader { grid-template-columns: 1fr; }
  .leader > img { min-height: 0; aspect-ratio: 4 / 3; height: auto; }
  .timeline { grid-template-columns: 1fr; }
  .timeline li { border-top: 0; border-left: 2px solid var(--ink); padding: 0 0 26px 22px; }
  .timeline li::before { left: -7px; top: 4px; }
  .timeline .mono { margin-top: 0; }
  .sticky-cta { display: flex; }
}
@media (max-width: 760px) {
  .pillars, .sn-cols, .people, .stops { grid-template-columns: 1fr; }
  .pair { grid-template-columns: 1fr; }
  .figures { grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
  .figures span { font-size: 14px; }
  .sn-strip { grid-template-columns: 1fr 1fr 1fr; gap: 4px; }
  .carry { grid-template-columns: 120px minmax(0, 1fr); gap: 16px; }
  .compare { font-size: 16px; }
  .days { font-size: 15px; }
  .days th:nth-child(3), .days td:nth-child(3) { display: none; }
  .join-wordmark { display: none; }
  .hero picture img { min-height: 640px; }
  .hero .th-line { max-width: 15em; }
}
