/* ------------------------------------------------------------
   The Heights — Missions 2027
   Brand: cream / rust / licorice, grotesque sans + italic serif
   ------------------------------------------------------------ */

/* Brand fonts. Drop the licensed PP files into /fonts and these
   kick in automatically; otherwise the fallbacks below are used. */
@font-face { font-family: "PP Neue Montreal"; src: url("fonts/PPNeueMontreal-Book.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "PP Neue Montreal"; src: url("fonts/PPNeueMontreal-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "PP Neue Montreal"; src: url("fonts/PPNeueMontreal-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "PP Neue Montreal"; src: url("fonts/PPNeueMontreal-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "PP Pangaia"; src: url("fonts/PPPangaia-LightItalic.woff2") format("woff2"); font-weight: 300; font-style: italic; font-display: swap; }
@font-face { font-family: "PP Pangaia"; src: url("fonts/PPPangaia-MediumItalic.woff2") format("woff2"); font-weight: 500; font-style: italic; font-display: swap; }

:root {
  --cream: #F3EFE7;
  --cream-2: #EAE4D9;
  --rust: #A5412A;
  --rust-dark: #8E3622;
  --ink: #2B2724;
  --ink-2: #4E4741;
  --ink-3: #8A827A;
  --line: rgba(43, 39, 36, .18);
  --sans: "PP Neue Montreal", "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: "PP Pangaia", "Instrument Serif", "Times New Roman", serif;
  --gutter: clamp(20px, 5vw, 72px);
  --radius: 2px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.005em;
}
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; }
em { font-family: var(--serif); font-style: italic; font-weight: 300; color: var(--rust); }
h1, h2, h3 { font-weight: 600; letter-spacing: -0.03em; line-height: 1; margin: 0; }
p { margin: 0; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--cream); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  background: var(--rust); color: var(--cream);
  font: 500 15px/1 var(--sans); letter-spacing: -0.01em;
  padding: 16px 22px; border-radius: var(--radius);
  text-decoration: none; border: 1px solid var(--rust);
  transition: background .2s var(--ease), transform .2s var(--ease), color .2s;
  white-space: nowrap; cursor: pointer;
}
.btn:hover { background: var(--rust-dark); border-color: var(--rust-dark); transform: translateY(-1px); }
.btn--small { padding: 11px 16px; font-size: 14px; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.btn--light { background: var(--cream); color: var(--rust); border-color: var(--cream); }
.btn--light:hover { background: #fff; border-color: #fff; color: var(--rust-dark); }
.btn--ghost-light { background: transparent; color: var(--cream); border-color: rgba(243,239,231,.4); }
.btn--ghost-light:hover { background: var(--cream); color: var(--rust); border-color: var(--cream); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
  padding: 14px var(--gutter);
  background: rgba(243,239,231,.86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav__brand { text-decoration: none; display: flex; gap: 10px; align-items: baseline; font-weight: 600; font-size: 16px; letter-spacing: -0.02em; }
.nav__brand-sep { color: var(--ink-3); font-weight: 400; }
.nav__brand-sub { font-weight: 400; color: var(--ink-2); }
.nav__brand-sub em { color: var(--rust); font-size: 1.1em; }
.nav__links { display: flex; gap: 28px; }
.nav__links a { text-decoration: none; font-size: 15px; color: var(--ink-2); padding: 4px 0; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; }
.nav__links a:hover { color: var(--ink); border-color: var(--ink); }
.nav__cta { justify-self: end; }
.nav__toggle { display: none; justify-self: end; background: none; border: 0; width: 40px; height: 40px; padding: 8px; cursor: pointer; }
.nav__toggle span { display: block; height: 1.5px; background: var(--ink); margin: 7px 0; transition: transform .25s var(--ease), opacity .2s; }
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(4.25px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-4.25px) rotate(-45deg); }
.mobile-menu { position: sticky; top: 69px; z-index: 49; display: none; flex-direction: column; gap: 4px; padding: 12px var(--gutter) 20px; background: var(--cream); border-bottom: 1px solid var(--line); }
.mobile-menu:not([hidden]) { display: flex; }
.mobile-menu a:not(.btn) { text-decoration: none; font-size: 22px; font-weight: 500; padding: 10px 0; border-bottom: 1px solid var(--line); }
.mobile-menu .btn { margin-top: 14px; justify-content: center; }

/* ---------- Grain texture ---------- */
.grain { position: relative; isolation: isolate; }
.grain::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: -1; opacity: .55; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .12 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Hero ---------- */
.hero { padding: clamp(72px, 12vw, 150px) var(--gutter) 0; }
.hero__inner { max-width: 1100px; }
.eyebrow { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--ink-2); margin-bottom: 28px; letter-spacing: .01em; }
.eyebrow--light { color: rgba(243,239,231,.8); }
.tag { display: inline-block; background: var(--ink); color: var(--cream); font-weight: 600; font-size: 13px; padding: 5px 9px 4px; letter-spacing: 0; border-radius: var(--radius); }
.hero__title { font-size: clamp(46px, 9.2vw, 136px); max-width: 12ch; letter-spacing: -0.045em; line-height: .94; }
.hero__title em { font-weight: 300; }
.hero__lede { max-width: 48ch; font-size: clamp(17px, 1.6vw, 21px); color: var(--ink-2); margin-top: 32px; line-height: 1.45; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero__stats {
  display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 0 clamp(32px, 6vw, 96px);
  margin-top: clamp(56px, 8vw, 104px); padding: 28px 0; border-top: 1px solid var(--line);
}
.hero__stats div { display: flex; flex-direction: column; gap: 4px; }
.hero__stats strong { font-size: clamp(34px, 4vw, 56px); font-weight: 600; letter-spacing: -0.04em; line-height: 1; color: var(--rust); }
.hero__stats span { font-size: 14px; color: var(--ink-2); }

/* ---------- Ticker ---------- */
.ticker { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--cream-2); }
.ticker__track { display: flex; width: max-content; animation: ticker 60s linear infinite; }
.ticker__track span { padding: 14px 0; font-size: 15px; color: var(--ink-2); white-space: nowrap; }
.ticker__track span::after { content: "·"; margin: 0 22px; color: var(--rust); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Why ---------- */
.why { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 6vw, 96px); padding: clamp(72px, 10vw, 140px) var(--gutter); }
.why__label { font-size: 14px; color: var(--ink-2); display: flex; gap: 12px; margin-bottom: 40px; }
.why__label span { font-weight: 600; color: var(--ink); }
.why__quote blockquote { margin: 0; position: sticky; top: 110px; }
.why__quote blockquote p { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(34px, 4.2vw, 60px); line-height: 1.08; letter-spacing: -0.02em; }
.why__quote blockquote p em { font-weight: 300; }
.why__quote cite { display: block; font-family: var(--sans); font-style: normal; font-size: 14px; color: var(--ink-2); margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--line); width: max-content; }
.why__body { display: flex; flex-direction: column; gap: 24px; font-size: clamp(17px, 1.4vw, 19px); color: var(--ink-2); max-width: 62ch; }
.why__lead { font-size: clamp(20px, 2vw, 26px); color: var(--ink); line-height: 1.35; letter-spacing: -0.015em; }
.goal { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: start; margin-top: 24px; padding: 36px 0 0; border-top: 1px solid var(--line); }
.goal__number { font-size: clamp(84px, 11vw, 150px); font-weight: 600; letter-spacing: -0.06em; line-height: .85; color: var(--rust); }
.goal__text { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.goal__text strong { color: var(--ink); font-weight: 600; }

/* ---------- Trips ---------- */
.trips { padding: clamp(64px, 8vw, 120px) var(--gutter); background: var(--cream); border-top: 1px solid var(--line); }
.trips__head { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: end; margin-bottom: 40px; }
.trips__head h2 { font-size: clamp(38px, 5.6vw, 80px); letter-spacing: -0.04em; line-height: .95; }
.trips__head h2 em { font-weight: 300; }
.trips__head p { color: var(--ink-2); max-width: 46ch; justify-self: end; }
.trips__controls { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 32px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  font: 500 14px/1 var(--sans); color: var(--ink-2); background: transparent; border: 1px solid var(--line);
  padding: 10px 14px; border-radius: 999px; cursor: pointer; display: inline-flex; gap: 7px; align-items: center;
  transition: all .2s var(--ease);
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.is-active { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.chip__count { font-size: 11px; opacity: .7; }
.view { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.view__btn { font: 500 14px/1 var(--sans); background: transparent; border: 0; padding: 10px 16px; cursor: pointer; color: var(--ink-2); }
.view__btn.is-active { background: var(--ink); color: var(--cream); }

.trip-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: clamp(20px, 2.4vw, 32px); }
.card {
  display: flex; flex-direction: column; background: var(--cream); text-align: left; padding: 0; border: 0; cursor: pointer;
  font-family: inherit; color: inherit; animation: rise .5s var(--ease) both;
}
.card:focus-visible { outline: 2px solid var(--rust); outline-offset: 6px; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
.card__media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--ink); }
.card__media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05) sepia(.18); transition: transform .8s var(--ease); }
.card:hover .card__media img { transform: scale(1.04); }
.card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(43,39,36,.45)); }
.card__ring { position: absolute; left: 50%; top: 42%; width: 64px; height: 64px; border: 1.5px solid var(--cream); border-radius: 50%; transform: translate(-50%, -50%); opacity: 0; transition: opacity .3s, transform .5s var(--ease); display: grid; place-items: center; }
.card__ring::before { content: ""; width: 22px; height: 22px; border: 1.5px solid var(--cream); border-radius: 50%; }
.card:hover .card__ring { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.card__pill { position: absolute; left: 14px; top: 14px; font-size: 12px; font-weight: 600; background: var(--cream); color: var(--ink); padding: 6px 9px 5px; border-radius: var(--radius); }
.card__body { padding: 16px 0 0; display: flex; flex-direction: column; gap: 8px; }
.card__meta { display: flex; justify-content: space-between; align-items: baseline; font-size: 13.5px; color: var(--ink-2); padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.card__meta b { font-weight: 600; color: var(--ink); }
.card__meta .sep { margin: 0 .45em; color: var(--ink-3); }
.card__name { font-size: clamp(26px, 2.1vw, 32px); letter-spacing: -0.035em; line-height: 1; padding-top: 4px; }
.card__name span { color: var(--rust); }
.card__foot { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; }
.card__cost { font-weight: 600; font-size: 17px; }
.card__cta { font-size: 14px; color: var(--rust); font-weight: 500; text-decoration: none; border-bottom: 1px solid transparent; transition: border-color .2s; }
.card:hover .card__cta { border-color: var(--rust); }

/* list view */
.trip-list { display: flex; flex-direction: column; }
.trip-list__row { display: grid; grid-template-columns: 2.2fr 1.4fr 1.4fr .8fr auto; gap: 20px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.trip-list__row--head { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); padding: 8px 0 12px; }
.trip-list__row:not(.trip-list__row--head) { cursor: pointer; background: none; border-left: 0; border-right: 0; border-top: 0; font: inherit; color: inherit; text-align: left; width: 100%; transition: background .15s; }
.trip-list__row:not(.trip-list__row--head):hover { background: var(--cream-2); }
.trip-list__name { font-size: 22px; font-weight: 600; letter-spacing: -0.03em; display: flex; gap: 10px; align-items: baseline; }
.trip-list__name small { font-size: 13px; font-weight: 500; color: var(--rust); }
.trip-list__dates b { font-weight: 600; }
.trip-list__dates { color: var(--ink-2); }
.trip-list__partner { color: var(--ink-2); font-size: 15px; }
.trip-list__cost { font-weight: 600; }
.trip-list__go { color: var(--rust); font-weight: 500; font-size: 14px; }

/* ---------- Lunch ---------- */
.lunch { background: var(--rust); color: var(--cream); padding: clamp(72px, 10vw, 140px) var(--gutter); }
.lunch__inner { max-width: 820px; }
.lunch h2 { font-size: clamp(40px, 6vw, 88px); letter-spacing: -0.04em; line-height: .95; }
.lunch h2 em { color: var(--cream); font-weight: 300; }
.lunch__detail { font-size: clamp(18px, 2vw, 24px); margin-top: 28px; padding-top: 22px; border-top: 1px solid rgba(243,239,231,.35); }
.lunch__detail strong { font-weight: 600; }
.lunch__body { margin-top: 16px; max-width: 52ch; color: rgba(243,239,231,.85); font-size: 17px; }
.lunch__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

/* ---------- Footer ---------- */
.footer { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding: 48px var(--gutter) 56px; background: var(--ink); color: var(--cream); font-size: 14px; }
.footer__brand { font-weight: 600; font-size: 16px; margin-bottom: 6px; }
.footer__left p:last-child { color: rgba(243,239,231,.6); }
.footer__right { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.footer__right a { color: var(--cream); text-decoration: none; border-bottom: 1px solid rgba(243,239,231,.3); padding-bottom: 1px; }
.footer__right a:hover { border-color: var(--cream); }

/* ---------- Detail dialog ---------- */
.detail { border: 0; padding: 0; background: var(--cream); color: var(--ink); width: min(960px, calc(100vw - 32px)); max-height: calc(100vh - 32px); border-radius: 4px; overflow: hidden; }
.detail::backdrop { background: rgba(43,39,36,.6); backdrop-filter: blur(4px); }
.detail[open] { display: grid; grid-template-columns: 1fr 1fr; }
.detail__media { background: var(--ink); min-height: 320px; }
.detail__media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05) sepia(.18); }
.detail__body { padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; gap: 20px; overflow: auto; }
.detail__close { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--cream); color: var(--ink); font-size: 24px; cursor: pointer; z-index: 2; line-height: 1; }
.detail__meta { font-size: 14px; color: var(--ink-2); }
.detail__meta b { color: var(--rust); font-weight: 600; }
.detail__title { font-size: clamp(32px, 4vw, 52px); letter-spacing: -0.04em; line-height: .95; }
.detail__title span { color: var(--rust); }
.detail__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; margin: 4px 0 0; padding-top: 18px; border-top: 1px solid var(--line); }
.detail__facts div { display: flex; flex-direction: column; gap: 3px; }
.detail__facts dt { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }
.detail__facts dd { margin: 0; font-weight: 600; font-size: 17px; }
.detail__note { font-size: 15px; color: var(--ink-2); }
.detail .btn { align-self: flex-start; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .why { grid-template-columns: 1fr; }
  .why__quote blockquote { position: static; }
  .trips__head { grid-template-columns: 1fr; }
  .trips__head p { justify-self: start; }
  .detail[open] { grid-template-columns: 1fr; overflow: auto; }
  .detail__media { min-height: 0; aspect-ratio: 16 / 10; }
  .trip-list__row { grid-template-columns: 1.6fr 1.2fr auto; }
  .trip-list__partner, .trip-list__go, .trip-list__row--head span:nth-child(3), .trip-list__row--head span:nth-child(5) { display: none; }
}
@media (max-width: 720px) {
  .nav { grid-template-columns: 1fr auto; }
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: block; }
  .hero__stats { grid-template-columns: repeat(3, 1fr); }
  .goal { grid-template-columns: 1fr; }
  .trip-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .card__name { font-size: 22px; }
  .card__meta { font-size: 12.5px; flex-direction: column; gap: 2px; }
}
@media (max-width: 480px) {
  .trip-grid { grid-template-columns: 1fr; }
  .hero__stats strong { font-size: 30px; }
  .hero__stats span { font-size: 12.5px; }
}
