/* Summit Ascent Expeditions — static landing. No external requests. */
:root {
  --ink: #0e1428;
  --ink-2: #141c36;
  --line: rgba(232, 228, 244, .14);
  --snow: #f4f0ee;
  --mute: #a8afc8;
  --glow: #f3a98a;
  --ice: #bddcea;
  --lav: #8f88c6;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --gut: clamp(20px, 5vw, 72px);
  --max: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--snow);
  font: 400 1rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; letter-spacing: -.015em; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--glow); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--snow); color: var(--ink); border-radius: 8px; transition: top .2s; }
.skip:focus { top: 12px; }

.progress { position: fixed; z-index: 60; left: 0; top: 0; height: 2px; width: 100%; background: linear-gradient(90deg, var(--lav), var(--glow)); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); pointer-events: none; }

/* ---------- header ---------- */
.site-header { position: fixed; z-index: 50; inset: 0 0 auto 0; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px var(--gut); transition: background .4s, padding .4s, border-color .4s; border-bottom: 1px solid transparent; }
.site-header.scrolled { background: rgba(14, 20, 40, .72); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); padding-block: 12px; border-color: var(--line); }
.brand { display: inline-flex; align-items: center; gap: 12px; font-family: var(--serif); font-size: 1.12rem; letter-spacing: .01em; }
.brand svg { width: 34px; height: 34px; flex: none; }
.nav { display: flex; align-items: center; gap: clamp(16px, 3vw, 40px); font-size: .94rem; }
.nav a { color: rgba(244, 240, 238, .82); position: relative; padding: 4px 0; transition: color .25s; }
.nav a:hover { color: #fff; }
.nav a:not(.lang a)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: 0 50%; transition: transform .4s var(--ease); }
.nav a:not(.lang a):hover::after { transform: scaleX(1); }
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.lang a { padding: 3px 12px; border-radius: 999px; font-size: .84rem; }
.lang a[aria-current="true"] { background: var(--snow); color: var(--ink); }
.nav .links { display: contents; }
@media (max-width: 760px) { .nav .links { display: none; } }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden; isolation: isolate; background: #0b1024; }
.hero-scene { position: absolute; inset: 0; z-index: -1; }
.layer { position: absolute; left: -4%; top: -8%; width: 108%; height: 116%; object-fit: cover; object-position: center bottom; will-change: transform;
  transform: translate3d(calc(var(--tx, 0) * var(--d, 0) * 1px), calc(var(--ty, 0) * var(--s, 0) * 1px), 0);
  animation: rise 1.9s var(--ease) both; animation-delay: var(--dl, 0s); }
.l-sky { --d: 3; --s: 6; animation-name: fadein; animation-duration: 2.4s; }
.l-far { --d: 6; --s: 4.5; --dl: .2s; }
.l-mid { --d: 11; --s: 2.5; --dl: .4s; }
.l-near { --d: 20; --s: .4; --dl: .6s; }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise { from { opacity: 0; translate: 0 5%; } to { opacity: 1; translate: 0 0; } }

.mist { position: absolute; left: -20%; width: 140%; height: 26%; border-radius: 50%; background: radial-gradient(ellipse at 50% 50%, rgba(255, 216, 204, .30), rgba(255, 216, 204, 0) 66%); filter: blur(22px); pointer-events: none; animation: drift 46s ease-in-out infinite alternate; }
.mist.m1 { bottom: 20%; }
.mist.m2 { bottom: 8%; opacity: .7; animation-duration: 62s; animation-direction: alternate-reverse; }
@keyframes drift { from { transform: translate3d(-7%, 0, 0); } to { transform: translate3d(7%, 0, 0); } }

#dust { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 22%; background: linear-gradient(to bottom, rgba(14, 20, 40, 0), var(--ink)); z-index: -1; pointer-events: none; }

.hero-inner { min-height: inherit; display: grid; grid-template-rows: 1fr auto; padding: clamp(110px, 17vh, 170px) var(--gut) clamp(32px, 6vh, 64px); max-width: calc(var(--max) + var(--gut) * 2); margin-inline: auto; }
.hero h1 { font-size: clamp(2.7rem, 7.4vw, 6.4rem); line-height: 1.02; letter-spacing: -.025em; text-shadow: 0 2px 40px rgba(8, 10, 30, .45); }
.ln { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.ln > span { display: block; animation: lineup 1.25s var(--ease) both; animation-delay: calc(.8s + var(--i, 0) * .15s); }
@keyframes lineup { from { transform: translateY(108%); } to { transform: none; } }
.hero-sub { margin-top: clamp(16px, 3vh, 28px); max-width: 38ch; font-size: clamp(1.02rem, 1.5vw, 1.2rem); color: rgba(244, 240, 238, .86); text-shadow: 0 1px 24px rgba(8, 10, 30, .6); animation: fadeup 1.2s var(--ease) both; animation-delay: 1.4s; }
@keyframes fadeup { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ---------- countdown (the one memorable object) ---------- */
.cd-wrap { align-self: end; animation: fadeup 1.3s var(--ease) both; animation-delay: 1.75s; }
.cd-label { margin-bottom: 12px; font-size: .95rem; color: rgba(244, 240, 238, .85); }
.cd { display: inline-grid; grid-template-columns: repeat(4, minmax(0, auto)); background: rgba(14, 20, 40, .46); -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2); border: 1px solid rgba(232, 228, 244, .2); border-radius: 22px; box-shadow: 0 30px 80px -30px rgba(4, 6, 20, .8), inset 0 1px 0 rgba(255, 255, 255, .08); }
.cd-cell { padding: clamp(14px, 2.4vw, 26px) clamp(16px, 3.6vw, 52px); text-align: left; min-width: clamp(70px, 14vw, 170px); }
.cd-cell + .cd-cell { border-left: 1px solid rgba(232, 228, 244, .14); }
.cd-num { display: block; font-family: var(--serif); font-size: clamp(2.2rem, 6.2vw, 4.6rem); line-height: 1; font-variant-numeric: tabular-nums lining-nums; letter-spacing: -.02em; }
.cd-num.tick { animation: tick .55s var(--ease); }
@keyframes tick { 0% { transform: translateY(-32%); opacity: 0; filter: blur(4px); } 100% { transform: none; opacity: 1; filter: none; } }
.cd-unit { display: block; margin-top: 8px; font-size: .82rem; color: var(--mute); }
.cd-note { margin-top: 14px; font-size: .9rem; color: rgba(244, 240, 238, .72); max-width: 60ch; }
@media (max-width: 520px) { .cd { display: grid; } .cd-cell { padding-inline: 12px; min-width: 0; } }

/* ---------- sections ---------- */
section { position: relative; }
.wrap { width: min(100% - var(--gut) * 2, var(--max)); margin-inline: auto; }
.sec { padding-block: clamp(72px, 12vw, 150px); }
h2 { font-size: clamp(2rem, 4.4vw, 3.6rem); line-height: 1.08; }
.lead { margin-top: 18px; max-width: 54ch; color: var(--mute); font-size: 1.08rem; }

.notice { background: linear-gradient(180deg, var(--ink), var(--ink-2)); }
.notice-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 6vw, 96px); align-items: start; }
.notice h2 { max-width: 12ch; }
.notice-body { border-left: 1px solid var(--line); padding-left: clamp(20px, 3.5vw, 48px); }
.notice-body .big { font-family: var(--serif); font-size: clamp(1.4rem, 2.5vw, 2.1rem); line-height: 1.34; letter-spacing: -.01em; }
.notice-body .small { margin-top: 22px; color: var(--mute); font-size: .98rem; }
.lock-ico { width: 22px; height: 22px; margin-bottom: 18px; color: var(--glow); }
@media (max-width: 820px) { .notice-grid { grid-template-columns: 1fr; } .notice-body { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 28px; } }

.exp-head { margin-bottom: clamp(36px, 6vw, 80px); }
.exp-list { display: grid; gap: clamp(48px, 8vw, 110px); }
.exp { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(20px, 3vw, 48px); align-items: center; }
.exp figure { grid-column: 1 / span 7; margin: 0; border-radius: 18px; overflow: hidden; aspect-ratio: 3 / 2; background: var(--ink-2); box-shadow: 0 40px 90px -45px rgba(0, 0, 0, .9); }
.exp figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease); }
.exp:hover figure img { transform: scale(1.045); }
.exp-body { grid-column: 8 / span 5; }
.exp.rev figure { grid-column: 6 / span 7; grid-row: 1; }
.exp.rev .exp-body { grid-column: 1 / span 5; grid-row: 1; }
.exp h3 { font-size: clamp(1.6rem, 2.8vw, 2.4rem); line-height: 1.12; }
.exp-body > p { margin-top: 14px; color: var(--mute); }
.meta { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; margin: 26px 0 0; }
.meta div { padding: 12px 0; border-top: 1px solid var(--line); }
.meta dt { font-size: .82rem; color: var(--mute); }
.meta dd { margin: 2px 0 0; font-family: var(--serif); font-size: 1.12rem; }
.lock { display: flex; align-items: center; gap: 10px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); font-size: .92rem; color: var(--ice); }
.lock svg { width: 18px; height: 18px; flex: none; }
@media (max-width: 860px) {
  .exp, .exp.rev { grid-template-columns: 1fr; }
  .exp figure, .exp.rev figure, .exp-body, .exp.rev .exp-body { grid-column: 1; grid-row: auto; }
}

/* image wipe: JS adds .pre to elements below the fold, removes on entry */
.wipe { clip-path: inset(0 0 0 0 round 18px); transition: clip-path 1.25s var(--ease); }
.wipe img { transition: transform 1.8s var(--ease); }
.wipe.pre { clip-path: inset(0 0 100% 0 round 18px); }
.wipe.pre img { transform: scale(1.22); }

/* ---------- membership ---------- */
.membership { background: var(--ink-2); }
.steps { position: relative; list-style: none; margin: clamp(40px, 6vw, 72px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 4vw, 64px); }
.steps-line { position: absolute; left: 0; top: 22px; width: 100%; height: 44px; overflow: visible; pointer-events: none; }
.steps-line path { fill: none; stroke: url(#sg); stroke-width: 1.5; stroke-dasharray: 1; stroke-dashoffset: 1; vector-effect: non-scaling-stroke; transition: stroke-dashoffset 2.4s var(--ease); }
.steps.in .steps-line path { stroke-dashoffset: 0; }
.steps li { position: relative; padding-top: 74px; }
.steps .n { position: absolute; top: 0; left: 0; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); border: 1px solid var(--line); font-family: var(--serif); font-size: 1.15rem; transition: border-color .8s, color .8s; }
.steps.in .n { border-color: var(--glow); color: var(--glow); }
.steps li:nth-child(2) .n { transition-delay: .7s; }
.steps li:nth-child(3) .n { transition-delay: 1.4s; }
.steps h3 { font-size: 1.5rem; }
.steps p { margin-top: 10px; color: var(--mute); max-width: 34ch; }
@media (max-width: 820px) {
  .steps { grid-template-columns: 1fr; gap: 36px; }
  .steps-line { display: none; }
  .steps li { padding: 0 0 0 66px; min-height: 48px; }
  .steps li::before { content: ""; position: absolute; left: 21px; top: 44px; bottom: -36px; width: 1px; background: var(--line); }
  .steps li:last-child::before { display: none; }
}

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { padding: clamp(26px, 4vw, 52px) clamp(10px, 2vw, 28px); }
.stat + .stat { border-left: 1px solid var(--line); }
.stat b { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(2.4rem, 5.5vw, 4.4rem); line-height: 1; font-variant-numeric: lining-nums tabular-nums; }
.stat span { display: block; margin-top: 10px; color: var(--mute); font-size: .95rem; max-width: 20ch; }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr 1fr; } .stat:nth-child(3) { border-left: 0; } .stat:nth-child(n+3) { border-top: 1px solid var(--line); } }

/* ---------- about ---------- */
.about { background: linear-gradient(180deg, var(--ink-2), var(--ink)); }
.about-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(28px, 6vw, 96px); align-items: center; }
.about figure { margin: 0; border-radius: 18px; overflow: hidden; aspect-ratio: 4 / 5; background: var(--ink-2); }
.about figure img { width: 100%; height: 100%; object-fit: cover; }
.about-copy p { margin-top: 18px; color: var(--mute); max-width: 52ch; }
.about-copy h2 { max-width: 14ch; margin-bottom: 8px; }
@media (max-width: 820px) { .about-grid { grid-template-columns: 1fr; } .about figure { aspect-ratio: 3 / 2; order: 2; } }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 34px var(--gut) 44px; background: var(--ink); }
.foot { width: min(100%, var(--max)); margin-inline: auto; display: flex; flex-wrap: wrap; gap: 14px 32px; align-items: center; justify-content: space-between; color: var(--mute); font-size: .92rem; }
.foot a { color: var(--snow); border-bottom: 1px solid transparent; transition: border-color .25s; }
.foot a:hover { border-color: currentColor; }
.foot .sep { margin: 0 .5em; opacity: .5; }

/* ---------- 404 ---------- */
.nf { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 40px var(--gut); background: radial-gradient(60% 60% at 50% 30%, #2a2552, var(--ink)); }
.nf h1 { font-size: clamp(4rem, 14vw, 9rem); line-height: 1; }
.nf p { margin: 14px auto 28px; color: var(--mute); max-width: 36ch; }
.nf a { display: inline-block; padding: 12px 22px; border: 1px solid var(--line); border-radius: 999px; transition: background .3s, color .3s; }
.nf a:hover { background: var(--snow); color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .wipe.pre { clip-path: inset(0 0 0 0 round 18px); }
  .wipe.pre img { transform: none; }
  .steps-line path { stroke-dashoffset: 0; }
}
