:root {
  --paper: #FAF9F6;
  --ink: #111A1B;
  --ink-soft: #3C4A4B;
  --teal: #0E6D67;
  --teal-bright: #37D8C7;
  --route: #FF7A3D;
  --purple: #8B5CF6;
  --serif: "Fraunces", Georgia, serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { background: var(--teal); }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--paper); padding: 8px 12px; border-radius: 8px; }
.skip:focus { left: 16px; }

.header { position: fixed; inset: 0 0 auto; z-index: 20; display: flex; align-items: center; justify-content: space-between; padding: 18px clamp(16px, 4vw, 44px); pointer-events: none; }
.header { padding-top: max(18px, env(safe-area-inset-top, 0px)); }
.header > * { pointer-events: auto; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--paper); text-decoration: none; font: 600 22px/1 var(--sans); letter-spacing: -.02em; text-shadow: 0 1px 10px rgba(0,0,0,.25); }
.brand img { width: 38px; height: 29px; display: block; }
.header-cta { background: var(--paper); color: var(--ink); text-decoration: none; font: 600 14px/1 var(--sans); padding: 11px 16px; border-radius: 999px; box-shadow: 0 4px 18px rgba(0,0,0,.18); }
.header-cta:hover { background: #fff; }
body.past-climb .header { background: rgba(250,249,246,.92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid #E8E6DF; }
body.past-climb .brand { color: var(--ink); text-shadow: none; }
body.past-climb .header-cta { background: var(--ink); color: var(--paper); box-shadow: none; }

#climb { position: relative; height: 900vh; }
.stage { position: sticky; top: 0; height: 100vh; height: 100lvh; overflow: hidden; background: #0E6D67; }
#gym { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.veil { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(6,32,30,.62) 0%, rgba(6,32,30,.38) 34%, rgba(6,32,30,0) 52%); }

.chapter { position: absolute; left: clamp(16px, 6vw, 92px); top: 50%; width: min(440px, 40vw); transform: translateY(-46%); color: var(--paper); opacity: 0; transition: opacity .45s ease, transform .6s cubic-bezier(.2,.7,.2,1); pointer-events: none; }
.chapter.on { opacity: 1; transform: translateY(-50%); pointer-events: auto; }
.eyebrow { margin: 0 0 14px; font: 600 12px/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--teal-bright); }
h1, h2 { font-family: var(--serif); font-weight: 500; letter-spacing: -.02em; margin: 0 0 18px; }
h1 { font-size: clamp(42px, 5.6vw, 76px); line-height: 1.02; }
h2 { font-size: clamp(32px, 3.6vw, 50px); line-height: 1.06; }
h1 em, h2 em { font-style: italic; color: #FFB48C; }
.chapter p { margin: 0 0 12px; font-size: 18px; color: rgba(250,249,246,.9); max-width: 34em; }
.tip { margin-top: 18px !important; padding: 14px 16px; border-radius: 14px; background: rgba(250,249,246,.95); color: var(--ink) !important; font-size: 16px !important; box-shadow: 0 10px 30px rgba(0,0,0,.18); }
.tip b { color: #B4471A; }
.scroll-hint { margin-top: 26px !important; font: 600 14px/1 var(--sans) !important; letter-spacing: .08em; text-transform: uppercase; display: flex; align-items: center; gap: 12px; }
.scroll-hint span { display: grid; place-items: center; width: 38px; height: 38px; border: 1.5px solid rgba(250,249,246,.7); border-radius: 50%; font-size: 18px; animation: nudge 1.8s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateY(5px); } }

.diary-card .entry { background: var(--paper); color: var(--ink); border-radius: 18px; padding: 18px 20px; box-shadow: 0 18px 50px rgba(0,0,0,.28); transform: rotate(-1.2deg); }
.entry-head { display: flex; align-items: center; gap: 10px; }
.entry-head i { width: 14px; height: 14px; border-radius: 50%; background: var(--route); }
.entry-head strong { font: 600 18px/1.2 var(--sans); }
.entry-head span { margin-left: auto; font: 600 12px/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: #fff; background: var(--teal); padding: 6px 9px; border-radius: 999px; }
.diary-card .entry p { color: var(--ink); font: italic 500 19px/1.4 var(--serif); margin: 14px 0; }
.entry-foot { display: flex; justify-content: space-between; font-size: 14px; color: var(--ink-soft); }
.small { font-size: 15px !important; opacity: .85; margin-top: 16px !important; }

#meter { position: absolute; right: clamp(14px, 2.6vw, 34px); top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--paper); font: 600 12px/1 var(--sans); }
#meter span { width: 3px; height: 160px; background: rgba(250,249,246,.25); border-radius: 3px; overflow: hidden; display: flex; align-items: flex-end; }
#meter i { display: block; width: 100%; height: 100%; background: var(--route); transform-origin: bottom; transform: scaleY(0); }
#meter small { writing-mode: vertical-rl; letter-spacing: .14em; text-transform: uppercase; font-size: 10px; opacity: .8; }
#meter.done i { background: var(--teal-bright); }

/* The route lights up while the "follow one color" tip is showing. */
#gym .other { transition: opacity .5s; }
body.show-route #gym .other { opacity: .28; }
.chalk-mark { transition: opacity .4s; }

.after { background: var(--paper); position: relative; z-index: 2; }
.after-inner { max-width: 960px; margin: 0 auto; padding: clamp(56px, 8vw, 96px) max(20px, env(safe-area-inset-right, 0px)) 24px max(20px, env(safe-area-inset-left, 0px)); }
.lede { font-size: 20px; color: var(--ink-soft); max-width: 36em; margin: 0; }
.shots { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 28px max(20px, calc((100vw - 960px) / 2)) 12px; scrollbar-width: thin; }
.shots figure { margin: 0; flex: 0 0 auto; width: min(260px, 66vw); scroll-snap-align: center; }
.shots img { display: block; width: 100%; height: auto; border-radius: 22px; box-shadow: 0 16px 40px rgba(14,109,103,.22); }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 640px) { .grid { grid-template-columns: 1fr; } }
.grid article { background: #fff; border: 1px solid #E8E6DF; border-radius: 16px; padding: 22px 22px 18px; }
.grid h3, .plan h3 { margin: 0 0 8px; font: 600 19px/1.25 var(--sans); }
.grid p { margin: 0; color: var(--ink-soft); font-size: 16px; }
.private { margin: 18px 0 0; font-size: 15px; color: var(--ink-soft); }
.pro h2 { margin-bottom: 24px; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.plan { border: 1.5px solid var(--ink); border-radius: 16px; padding: 20px 22px; background: #fff; }
.plan + .plan { border-color: #D9D6CC; }
.price { font: 500 42px/1 var(--serif); margin: 6px 0 12px; }
.price span { font: 500 16px/1 var(--sans); color: var(--ink-soft); }
.badge { display: inline-block; margin: 0; padding: 6px 11px; border-radius: 999px; background: var(--teal); color: #fff; font: 600 13px/1 var(--sans); }
.badge.quiet { background: #EEECE5; color: var(--ink); }
.pro-list { margin: 22px 0 0; padding-left: 20px; display: grid; gap: 6px; }
.closing { padding-bottom: 56px; }
.mail { user-select: all; }
.after .eyebrow { color: var(--teal); }
.after h2 em { color: #C2501E; }
.features { list-style: none; padding: 0; margin: 28px 0; display: grid; gap: 14px; }
.features li { padding: 16px 18px 16px 48px; position: relative; background: #fff; border: 1px solid #E8E6DF; border-radius: 14px; }
.features li::before { content: ""; position: absolute; left: 18px; top: 22px; width: 14px; height: 14px; border-radius: 4px 7px 5px 8px; background: var(--route); transform: rotate(-12deg); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.store { display: inline-flex; align-items: center; gap: 10px; background: var(--ink); color: var(--paper); text-decoration: none; font: 600 16px/1 var(--sans); padding: 16px 22px; border-radius: 999px; }
.store:hover { background: #000; }
.after .small { color: var(--ink-soft); }
.footer { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; max-width: 920px; margin: 0 auto; padding: 24px 20px 40px; border-top: 1px solid #E8E6DF; font-size: 14px; color: var(--ink-soft); }
.footer nav { display: flex; flex-wrap: wrap; gap: 20px; }

@media (max-width: 759px) {
  .veil { background: linear-gradient(180deg, rgba(6,32,30,.7) 0%, rgba(6,32,30,.45) 30%, rgba(6,32,30,0) 48%); }
  .chapter { left: 16px; right: 16px; width: auto; top: calc(76px + env(safe-area-inset-top, 0px)); transform: translateY(8px); }
  .chapter.on { transform: none; }
  h1 { font-size: 38px; }
  h2 { font-size: 29px; margin-bottom: 12px; }
  .chapter p { font-size: 15.5px; margin-bottom: 8px; }
  .tip { font-size: 14.5px !important; padding: 11px 13px; margin-top: 10px !important; }
  .chapter p:not(.tip):not(.eyebrow):nth-of-type(n+3) { display: none; }
  .diary-card { top: auto; bottom: 24px; }
  .diary-card .small, .diary-card .eyebrow { display: none; }
  #meter { top: auto; bottom: 22px; transform: none; right: 12px; }
  #meter span { height: 90px; }
  .brand { font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) {
  .chapter, .chalk-mark, #gym .other { transition: none; }
  .scroll-hint span { animation: none; }
}

/* Little app screens inside each climb chapter. */
.appcard { margin-top: 18px; max-width: 360px; background: var(--paper); color: var(--ink); border-radius: 18px; padding: 14px 16px; box-shadow: 0 14px 36px rgba(0,0,0,.28); font-size: 15px; }
.appcard p { color: var(--ink); font-size: 15px; margin: 8px 0 0; }
.ac-head { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.ac-head small, .ac-row small { margin-left: auto; color: var(--ink-soft); font-size: 12px; }
.ac-tag { margin-left: auto; font: 600 11px/1 var(--sans); letter-spacing: .05em; text-transform: uppercase; background: #E3F4F1; color: var(--teal); padding: 5px 8px; border-radius: 999px; }
.ac-dot { width: 18px; height: 18px; border-radius: 6px; background: var(--teal); }
.ac-chip { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.ac-live { width: 10px; height: 10px; border-radius: 50%; background: #2BB673; box-shadow: 0 0 0 4px rgba(43,182,115,.18); }
.ac-time { margin-left: auto; font: 600 18px/1 var(--sans); font-variant-numeric: tabular-nums; }
.ac-row { display: flex; align-items: center; gap: 10px; padding: 9px 0 0; margin-top: 9px; border-top: 1px solid #ECEAE3; font-size: 14.5px; }
.ac-row i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.ac-moods { display: flex; gap: 6px; margin-top: 8px; }
.ac-moods span { flex: 1; text-align: center; padding: 6px 0; border-radius: 10px; background: #F1EFE8; font-size: 20px; }
.ac-moods span.on { background: #D6F1EC; outline: 2px solid var(--teal); }
.appcard .ac-q { font-weight: 600; margin-top: 10px; }
.appcard .ac-note { line-height: 1.5; }
.ac-bars { display: flex; align-items: flex-end; gap: 8px; height: 64px; margin-top: 12px; }
.ac-bars span { flex: 1; background: linear-gradient(var(--route), #FFB48C); border-radius: 5px 5px 2px 2px; }
.appcard .ac-cap { font-size: 13px; color: var(--ink-soft); }
.appcard.notif { border-left: 4px solid var(--route); }
.ac-mood { font-size: 18px; line-height: 1; }
.ac-qs { margin: 2px 0 0; padding-left: 22px; display: grid; gap: 3px; font: italic 500 19px/1.4 var(--serif); }
.gymcards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 24px; align-items: start; }
.gymcards .appcard { max-width: none; margin: 0; box-shadow: 0 10px 28px rgba(17,26,27,.1); border: 1px solid #E8E6DF; }
@media (max-width: 640px) { .gymcards { grid-template-columns: 1fr; } .ac-qs { font-size: 17px; } }

.journal h2 { max-width: 20em; }
.journal .grid { margin-top: 26px; }
.questions { margin-top: 22px; background: var(--teal); color: var(--paper); border-radius: 18px; padding: 22px 24px; }
.q-lead { margin: 0 0 10px; font-weight: 600; }
.questions ol { margin: 0; padding-left: 22px; display: grid; gap: 4px; font: italic 500 21px/1.4 var(--serif); }
.q-foot { margin: 12px 0 0; font-size: 15px; opacity: .9; }
@media (max-width: 759px) {
  .appcard { margin-top: 10px; padding: 11px 13px; font-size: 14px; }
  .appcard p { font-size: 14px; }
  .ac-bars { height: 44px; }
}
.card-icon { display: block; width: 48px; height: 48px; object-fit: contain; margin: 0 0 14px; }
.photo-band { position: relative; margin: 0; height: clamp(420px, 82vh, 820px); overflow: hidden; background: var(--paper); }
.photo-band img { position: absolute; left: 0; top: -12%; width: 100%; height: 124%; object-fit: cover; object-position: 48% 40%; display: block; transform: translate3d(0, var(--py, 0px), 0) scale(var(--ps, 1)); will-change: transform; }
.photo-band::before { content: ""; position: absolute; inset: 0 0 auto; height: 38%; z-index: 1; background: linear-gradient(to bottom, var(--paper) 0%, rgba(250,249,246,.85) 25%, rgba(250,249,246,0) 100%); pointer-events: none; }
.photo-band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,16,15,.75) 0%, rgba(10,16,15,.15) 45%, rgba(10,16,15,0) 70%); }
.photo-band figcaption { position: absolute; left: 0; right: 0; bottom: clamp(24px, 6vh, 56px); z-index: 1; text-align: center; padding: 0 20px; color: #fff; font: 500 clamp(32px, 4.4vw, 54px)/1.08 var(--serif); letter-spacing: -.02em; text-shadow: 0 2px 18px rgba(0,0,0,.45); z-index: 2; opacity: var(--pc, 1); transform: translateY(calc((1 - var(--pc, 1)) * 24px)); }
.photo-band figcaption em { font-style: italic; color: #FFB48C; }
.closing-photo { position: relative; overflow: hidden; background: #151b1c; color: #fff; }
.closing-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.closing-photo::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(10,16,15,.82) 0%, rgba(10,16,15,.55) 55%, rgba(10,16,15,.25) 100%); }
.closing-photo .closing { position: relative; z-index: 2; padding-top: clamp(96px, 14vw, 160px); padding-bottom: clamp(96px, 14vw, 160px); }
.closing-photo h2, .closing-photo .small { color: #fff; }
.closing-photo h2 em { color: #FFB48C; }
.closing-photo .store { background: #fff; color: var(--ink); }
.closing-photo .small a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 640px) { .photo-band img { object-position: 46% 40%; } .closing-bg { object-position: 47% 45%; } .closing-photo::before { background: rgba(10,16,15,.7); } }
@media (min-width: 900px) {
  .shots { display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(14px, 1.6vw, 24px); overflow: visible; max-width: 1400px; margin: 0 auto; padding: 28px clamp(20px, 3vw, 40px) 12px; }
  .shots figure { width: auto; }
}
@media (max-width: 640px) { .photo-band { height: 64vh; } }

.photo-story { position: relative; height: 240vh; background: #151b1c; }
.ps-frame { position: sticky; top: 0; height: 100vh; height: 100lvh; overflow: hidden; }
.ps-frame::before { content: ""; position: absolute; inset: 0 0 auto; height: 14%; z-index: 1; background: linear-gradient(to bottom, var(--paper), rgba(250,249,246,0)); opacity: var(--edge, 1); pointer-events: none; }
.ps-frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,16,15,.78) 0%, rgba(10,16,15,.15) 38%, rgba(10,16,15,0) 55%, rgba(10,16,15,0) 70%, rgba(10,16,15,.45) 100%); }
.ps-cap { position: absolute; left: 0; right: 0; bottom: clamp(28px, 8vh, 72px); z-index: 2; margin: 0; padding: 0 20px; text-align: center; color: #fff; font: 500 clamp(30px, 4.2vw, 54px)/1.1 var(--serif); letter-spacing: -.02em; text-shadow: 0 2px 18px rgba(0,0,0,.45); }
.ps-cap em { font-style: italic; color: #FFB48C; }
.ps-cap1 { opacity: var(--c1, 1); transform: translateY(calc((1 - var(--c1, 1)) * -16px)); }
.ps-cap2 { opacity: var(--c2, 0); transform: translateY(calc((1 - var(--c2, 0)) * 20px)); }
.closing-photo { background: #0E3F3C; }
.closing-photo::before { display: none; }
@media (prefers-reduced-motion: reduce) { .photo-story { height: auto; } .ps-frame { position: relative; height: 70vh; } .ps-woods, .ps-cap1 { display: none !important; } .photo-story .ps-gym { opacity: 1; } .ps-cap2 { opacity: 1; transform: none; } }
.ps-top { position: absolute; left: 0; right: 0; top: clamp(96px, 16vh, 150px); z-index: 2; margin: 0; padding: 0 20px; text-align: center; color: #fff; font: 500 clamp(34px, 5vw, 64px)/1.08 var(--serif); letter-spacing: -.02em; text-shadow: 0 2px 22px rgba(0,0,0,.55); opacity: var(--ct, 0); transform: translateY(calc((1 - var(--ct, 0)) * 18px)); }
.ps-top em { font-style: italic; color: #FFB48C; }
@media (prefers-reduced-motion: reduce) { .ps-top { opacity: 1; transform: none; } }
.ps-layer { position: absolute; inset: 0; will-change: opacity; }
.ps-gym { opacity: var(--mix, 0); }
.ps-layer img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(var(--sc, 1)); }
.ps-bg { display: none; }
.ps-woods .ps-img { object-position: 50% 35%; }
.ps-gym .ps-img { object-position: 45% 30%; }
/* Tall screens: show the whole photo, with a soft blurred copy filling the space above and below. */
@media (max-aspect-ratio: 1/1) {
  .ps-bg { display: block; filter: blur(22px) brightness(.7) saturate(1.1); transform: scale(1.25); }
  .ps-layer .ps-img { inset: auto 0; top: 50%; height: 52%; transform: translateY(-44%) scale(var(--sc, 1)); -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 12%, #000 88%, transparent 100%); mask-image: linear-gradient(to bottom, transparent 0, #000 12%, #000 88%, transparent 100%); }
  .ps-top { top: clamp(100px, 15vh, 150px); }
  .ps-woods .ps-img { object-position: 46% 50%; }
  .ps-gym .ps-img { object-position: 46% 60%; }
}
