/* ============================================================
   Hotel Corniche 2400 — glacier white / ice blue / pale gold / dark pine
   Type: Archivo (variable width, crisp modernist) · Vollkorn (chalet serif)
   · Sometype Mono (altitude data)
   ============================================================ */

:root {
  --snow: #F4F8FB;
  --snow-deep: #E8F0F6;
  --ice: #DCE8F1;
  --ice-deep: #9FBBD0;
  --sky: #6E93AD;
  --ink: #1B3042;
  --ink-soft: #4A6478;
  --pine: #1E2F2A;
  --pine-deep: #16241F;
  --gold: #D9A84E;
  --gold-pale: #EFD9A8;
  --white: #FFFFFF;

  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --serif: "Vollkorn", Georgia, serif;
  --mono: "Sometype Mono", "SF Mono", Menlo, monospace;

  --wrap: 1120px;
  --rail-w: 84px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--sans);
  font-variation-settings: "wdth" 100;
  color: var(--ink);
  background: var(--snow);
  line-height: 1.55;
  overflow-x: hidden;
}

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--ink); color: var(--snow);
  padding: 0.6rem 1.1rem; border-radius: 4px;
  font-family: var(--mono); font-size: 0.8rem; text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus { top: 1rem; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 3rem); }

/* ---------- header ---------- */
.site-head {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; gap: 2rem;
  padding: 0.9rem clamp(1.25rem, 3vw, 2.5rem);
  transition: background 0.35s, box-shadow 0.35s, padding 0.35s;
}
.site-head.scrolled {
  background: rgba(244, 248, 251, 0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(27, 48, 66, 0.12);
  padding-top: 0.6rem; padding-bottom: 0.6rem;
}
.brand {
  display: flex; align-items: center; gap: 0.6rem;
  text-decoration: none; color: var(--ink);
}
.brand-mark { width: 30px; height: 30px; }
.brand-word {
  font-weight: 700; font-size: 1.02rem; letter-spacing: 0.04em;
  font-variation-settings: "wdth" 118;
  text-transform: uppercase; white-space: nowrap;
}
.brand-word em { font-style: normal; color: var(--sky); }
.site-nav { display: flex; gap: 1.5rem; margin-left: auto; }
.site-nav a {
  font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.06em;
  text-transform: uppercase; text-decoration: none; color: var(--ink-soft);
  padding: 0.35rem 0.1rem; border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.site-nav a:hover { color: var(--ink); border-color: var(--gold); }
.head-cta {
  font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.06em;
  text-transform: uppercase; text-decoration: none;
  color: var(--snow); background: var(--ink);
  padding: 0.55rem 1.1rem; border-radius: 999px;
  transition: background 0.2s, transform 0.2s;
}
.head-cta:hover { background: var(--pine); transform: translateY(-1px); }

/* ---------- altitude rail ---------- */
.alt-rail {
  position: fixed; left: 1.4rem; top: 50%; transform: translateY(-50%);
  z-index: 40; display: flex; flex-direction: column; align-items: center; gap: 0.9rem;
  color: var(--ink-soft);
}
.rail-ticks {
  width: 10px; height: 180px;
  background:
    repeating-linear-gradient(to bottom, var(--ink-soft) 0 1px, transparent 1px 12px) left center / 6px 100% no-repeat,
    repeating-linear-gradient(to bottom, var(--ink-soft) 0 1px, transparent 1px 36px) left center / 10px 100% no-repeat;
  opacity: 0.55;
}
.rail-read {
  writing-mode: vertical-rl; transform: rotate(180deg);
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.14em;
}
.rail-read b { font-weight: 600; color: var(--ink); }
.rail-read i { font-style: normal; opacity: 0.7; }
@media (max-width: 1220px) { .alt-rail { display: none; } }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-start;
  overflow: hidden;
}
.panorama { position: absolute; inset: 0; }
.panorama svg { width: 100%; height: 100%; }
.panorama .layer { will-change: transform; }
#snow { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

.drift-l { animation: driftL 90s linear infinite alternate; }
.drift-r { animation: driftR 110s linear infinite alternate; }
@keyframes driftL { from { transform: translateX(0); } to { transform: translateX(-160px); } }
@keyframes driftR { from { transform: translateX(-120px); } to { transform: translateX(40px); } }

.hero-inner {
  position: relative; z-index: 2;
  max-width: var(--wrap); width: 100%; margin: 0 auto;
  padding: clamp(7rem, 16vh, 10rem) clamp(1.25rem, 4vw, 3rem) 0;
}
.eyebrow {
  font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink-soft);
  margin-bottom: 1.4rem;
}
.hero h1 {
  font-size: clamp(2.9rem, 7.2vw, 6rem);
  line-height: 0.98; letter-spacing: -0.015em;
  font-weight: 640; font-variation-settings: "wdth" 122;
  text-transform: none;
  max-width: 12ch;
}
.hero-sub {
  font-family: var(--serif); font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  max-width: 46ch; margin-top: 1.5rem; color: var(--ink);
}

/* booking bar */
.book-bar {
  position: relative; z-index: 3;
  margin: auto auto 0;
  width: min(var(--wrap) - 2 * clamp(1.25rem, 4vw, 3rem), calc(100% - 2.5rem));
  margin-bottom: clamp(1.5rem, 5vh, 3rem);
  display: flex; align-items: stretch; gap: 0;
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(27, 48, 66, 0.14);
  border-radius: 14px;
  box-shadow: 0 18px 50px rgba(27, 48, 66, 0.18);
  overflow: hidden;
}
.bb-field {
  flex: 1 1 0; display: flex; flex-direction: column; gap: 0.15rem;
  padding: 0.85rem 1.25rem;
  border-right: 1px solid rgba(27, 48, 66, 0.12);
}
.bb-field label {
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-soft);
}
.bb-field input, .bb-field select {
  font-family: var(--sans); font-size: 1rem; font-weight: 560;
  color: var(--ink); border: 0; background: transparent; padding: 0.1rem 0;
}
.bb-field input:focus-visible, .bb-field select:focus-visible { outline-offset: 1px; }
.bb-go {
  flex: 0 0 auto; border: 0; cursor: pointer;
  font-family: var(--mono); font-size: 0.82rem; letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--ink); color: var(--snow);
  padding: 0 clamp(1.2rem, 2.5vw, 2.2rem);
  transition: background 0.2s;
}
.bb-go:hover { background: var(--pine); }
.bb-confirm {
  flex: 1; display: flex; align-items: center; gap: 0.9rem;
  padding: 1.1rem 1.4rem;
  font-family: var(--serif); font-size: 1.05rem;
}
.bb-confirm .tick {
  flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%;
  background: var(--gold); color: var(--pine-deep);
  display: grid; place-items: center; font-family: var(--mono); font-weight: 600;
}

/* ---------- sections ---------- */
.section { padding: clamp(4.5rem, 10vw, 8rem) 0; position: relative; }
.section-snow { background: var(--snow); }
.section-ice { background: var(--ice); }
.section-pine { background: var(--pine); color: var(--snow); }

.sec-mark {
  display: inline-flex; align-items: baseline; gap: 1rem;
  font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-soft);
  margin-bottom: 1.6rem;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 0.55rem;
}
.sec-mark .sec-alt { font-weight: 600; color: var(--ink); }
.sec-mark-light, .sec-mark-light .sec-alt { color: var(--gold-pale); }
.sec-mark-light .sec-alt { color: var(--gold); }

.section h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.9rem);
  line-height: 1.08; letter-spacing: -0.01em;
  font-weight: 620; font-variation-settings: "wdth" 116;
  max-width: 24ch;
}
.sec-lede {
  font-family: var(--serif); font-size: 1.12rem; color: var(--ink-soft);
  max-width: 52ch; margin-top: 1.2rem;
}

.story {
  columns: 2; column-gap: 3rem; margin-top: 2rem;
  font-family: var(--serif); font-size: clamp(1.08rem, 1.4vw, 1.22rem);
  max-width: 62rem;
}
.story p + p { margin-top: 1rem; }
@media (max-width: 760px) { .story { columns: 1; } }

.stat-band {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
  margin-top: 3.2rem; padding-top: 2rem;
  border-top: 1px solid rgba(27, 48, 66, 0.18);
}
.stat dt {
  font-family: var(--mono); font-weight: 600;
  font-size: clamp(1.9rem, 3.4vw, 2.7rem); letter-spacing: -0.02em;
  color: var(--sky);
}
.stat dd { margin-top: 0.4rem; font-size: 0.95rem; color: var(--ink-soft); max-width: 26ch; }
@media (max-width: 640px) { .stat-band { grid-template-columns: 1fr; gap: 1.6rem; } }

/* ---------- lift-ticket rooms ---------- */
.tickets { margin-top: 3rem; display: flex; flex-direction: column; gap: 1.6rem; }

.ticket {
  --punch: var(--ice);
  position: relative; display: flex;
  background: var(--white); border-radius: 16px;
  box-shadow: 0 10px 34px rgba(27, 48, 66, 0.12);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.28s;
}
.ticket:hover { transform: translateY(-4px) rotate(-0.35deg); box-shadow: 0 22px 48px rgba(27, 48, 66, 0.18); }

.ticket-main { flex: 1 1 auto; padding: clamp(1.4rem, 3vw, 2.2rem) clamp(1.4rem, 3vw, 2.4rem); }
.ticket-tag {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--sky); margin-bottom: 0.5rem;
}
.ticket h3 {
  font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 640;
  font-variation-settings: "wdth" 118; letter-spacing: -0.01em;
}
.ticket-desc {
  font-family: var(--serif); font-size: 1.05rem; color: var(--ink-soft);
  max-width: 58ch; margin-top: 0.7rem;
}
.ticket-specs {
  list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem 0;
  margin-top: 1.1rem;
}
.ticket-specs li {
  font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--ink-soft);
}
.ticket-specs li:not(:last-child)::after { content: "·"; margin: 0 0.7rem; color: var(--gold); }

.ticket-stub {
  flex: 0 0 220px; display: flex; flex-direction: column; justify-content: center; gap: 0.5rem;
  padding: 1.4rem 1.6rem;
  border-left: 2px dashed var(--ice-deep);
  position: relative;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
.ticket:hover .ticket-stub { transform: translateX(5px); }
/* punch holes at the perforation */
.ticket-stub::before, .ticket-stub::after {
  content: ""; position: absolute; left: -12px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--punch);
}
.ticket-stub::before { top: -11px; }
.ticket-stub::after { bottom: -11px; }

.stub-alt { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.14em; color: var(--sky); }
.stub-price { font-weight: 680; font-size: 1.35rem; font-variation-settings: "wdth" 112; }
.stub-price .from { display: block; font-family: var(--mono); font-weight: 400; font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); }
.stub-price .per { font-size: 0.85rem; font-weight: 460; color: var(--ink-soft); margin-left: 0.2rem; }
.stub-btn {
  margin-top: 0.4rem; align-self: flex-start;
  font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.08em;
  text-transform: uppercase; text-decoration: none;
  color: var(--ink); border: 1.5px solid var(--ink);
  padding: 0.45rem 0.95rem; border-radius: 999px;
  transition: background 0.2s, color 0.2s;
}
.stub-btn:hover { background: var(--ink); color: var(--snow); }

.ticket-gold { background: linear-gradient(115deg, #FFF9EC 0%, var(--white) 55%); }
.ticket-gold .ticket-stub { border-left-color: var(--gold); }
.ticket-gold .stub-alt { color: var(--gold); filter: brightness(0.82); }

@media (max-width: 700px) {
  .ticket { flex-direction: column; }
  .ticket-stub {
    flex-basis: auto; border-left: 0; border-top: 2px dashed var(--ice-deep);
    flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap;
  }
  .ticket-gold .ticket-stub { border-top-color: var(--gold); }
  .ticket-stub::before, .ticket-stub::after { left: auto; top: -11px; bottom: auto; }
  .ticket-stub::before { left: -11px; }
  .ticket-stub::after { right: -11px; }
  .stub-btn { margin-top: 0; }
}

/* ---------- a day here ---------- */
.dayline { list-style: none; margin-top: 3rem; max-width: 46rem; position: relative; padding-left: 0.2rem; }
.dayline::before {
  content: ""; position: absolute; left: 4.7rem; top: 0.6rem; bottom: 0.6rem;
  width: 2px;
  background: linear-gradient(to bottom, var(--ice-deep), var(--pine));
}
.dayline li {
  display: flex; gap: 2rem; align-items: baseline;
  padding: 1.05rem 0; position: relative;
}
.dayline li::before {
  content: ""; position: absolute; left: 4.44rem; top: 1.55rem;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--gold); border: 2px solid var(--snow);
}
.dl-time {
  flex: 0 0 3.6rem; text-align: right;
  font-family: var(--mono); font-weight: 600; font-size: 0.95rem; color: var(--ink);
}
.dayline p { font-family: var(--serif); font-size: 1.08rem; color: var(--ink-soft); max-width: 52ch; margin-left: 0.8rem; }
@media (max-width: 640px) {
  .dayline::before { left: 3.55rem; }
  .dayline li::before { left: 3.3rem; }
  .dayline li { gap: 1.3rem; }
  .dl-time { flex-basis: 2.9rem; }
  .dayline p { margin-left: 0.4rem; }
}

/* ---------- journey ---------- */
.journey { list-style: none; margin-top: 3rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 2.5rem); counter-reset: leg; }
.journey li { position: relative; padding-top: 1.2rem; }
.journey li::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(to right, var(--ink) 0 34px, rgba(27,48,66,0.25) 34px);
}
.j-alt {
  font-family: var(--mono); font-weight: 600; font-size: 1.4rem;
  letter-spacing: -0.01em; color: var(--sky); display: block;
}
.journey h3 { margin-top: 0.5rem; font-size: 1.25rem; font-weight: 640; font-variation-settings: "wdth" 114; }
.journey p { margin-top: 0.55rem; font-family: var(--serif); font-size: 1.02rem; color: var(--ink-soft); }
@media (max-width: 760px) { .journey { grid-template-columns: 1fr; } }

/* ---------- book / pine ---------- */
.section-pine h2 { color: var(--snow); }
.cta-note {
  font-family: var(--serif); font-size: 1.15rem; color: var(--gold-pale);
  max-width: 54ch; margin-top: 1.4rem;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.4rem; }
.cta-btn {
  font-family: var(--mono); font-size: 0.9rem; letter-spacing: 0.05em;
  text-decoration: none; color: var(--pine-deep);
  background: var(--gold); padding: 0.9rem 1.6rem; border-radius: 999px;
  transition: transform 0.2s, background 0.2s;
}
.cta-btn:hover { transform: translateY(-2px); background: var(--gold-pale); }
.cta-ghost { background: transparent; color: var(--snow); border: 1.5px solid rgba(244,248,251,0.5); }
.cta-ghost:hover { background: rgba(244,248,251,0.1); }

/* ---------- footer ---------- */
.site-foot { background: var(--pine-deep); color: rgba(244, 248, 251, 0.78); padding: 3.5rem 0 2rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.foot-brand {
  font-weight: 700; font-variation-settings: "wdth" 118; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--snow); margin-bottom: 0.6rem;
}
.foot-label {
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 0.6rem;
}
.site-foot a { color: var(--snow); text-decoration-color: rgba(244,248,251,0.4); }
.site-foot a:hover { text-decoration-color: var(--gold); }
.foot-line {
  margin-top: 2.8rem; padding-top: 1.2rem;
  border-top: 1px solid rgba(244, 248, 251, 0.15);
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: rgba(244, 248, 251, 0.5);
}
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; } }

/* ---------- mobile header ---------- */
@media (max-width: 900px) {
  .site-nav { display: none; }
  .site-head { justify-content: space-between; }
}
@media (max-width: 700px) {
  .book-bar { flex-direction: column; }
  .bb-field { border-right: 0; border-bottom: 1px solid rgba(27, 48, 66, 0.12); }
  .bb-go { padding: 1rem; }
}

/* ---------- guide page ---------- */
.guide-hero { padding: clamp(8rem, 16vh, 10rem) 0 3rem; background: linear-gradient(to bottom, #DCEAF4, var(--snow)); }
.guide-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.02; font-weight: 640; font-variation-settings: "wdth" 120; max-width: 20ch; }
.guide-strip { margin-top: 2.5rem; border-radius: 14px; overflow: hidden; box-shadow: 0 14px 40px rgba(27,48,66,0.16); }
.guide-strip svg { width: 100%; height: auto; }
.gsec { padding: clamp(2.6rem, 6vw, 4rem) 0; }
.gsec + .gsec { border-top: 1px solid rgba(27,48,66,0.12); }
.gsec h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 630; font-variation-settings: "wdth" 116; }
.gsec > .wrap > p, .gsec .g-body { font-family: var(--serif); font-size: 1.08rem; color: var(--ink-soft); max-width: 62ch; margin-top: 1rem; }
.swatches { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; margin-top: 1.8rem; }
.swatch { border-radius: 12px; overflow: hidden; border: 1px solid rgba(27,48,66,0.14); background: var(--white); }
.swatch .chip { height: 84px; }
.swatch .meta { padding: 0.7rem 0.9rem; }
.swatch .meta b { display: block; font-size: 0.85rem; font-weight: 640; }
.swatch .meta code { font-family: var(--mono); font-size: 0.72rem; color: var(--ink-soft); }
.type-pair { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1.5rem; margin-top: 1.8rem; }
.type-card { background: var(--white); border: 1px solid rgba(27,48,66,0.14); border-radius: 12px; padding: 1.4rem; }
.type-card .sample { font-size: 1.9rem; line-height: 1.1; }
.type-card .sample.s-sans { font-weight: 640; font-variation-settings: "wdth" 122; }
.type-card .sample.s-serif { font-family: var(--serif); }
.type-card .sample.s-mono { font-family: var(--mono); font-size: 1.4rem; }
.type-card p { margin-top: 0.8rem; font-size: 0.9rem; color: var(--ink-soft); }
.type-card .face { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sky); margin-top: 0.9rem; }
@media (max-width: 760px) { .type-pair { grid-template-columns: 1fr; } }
pre.code {
  margin-top: 1.4rem; padding: 1.3rem 1.5rem; border-radius: 12px;
  background: var(--pine-deep); color: var(--gold-pale);
  font-family: var(--mono); font-size: 0.82rem; line-height: 1.6;
  overflow-x: auto;
}
pre.code .c { color: #7FA08F; }
.passes { list-style: none; margin-top: 1.8rem; display: grid; gap: 1.2rem; }
.passes li { background: var(--white); border: 1px solid rgba(27,48,66,0.14); border-radius: 12px; padding: 1.2rem 1.5rem; display: flex; gap: 1.2rem; align-items: baseline; }
.passes .p-n { font-family: var(--mono); font-weight: 600; color: var(--sky); flex: 0 0 auto; }
.passes p { font-size: 0.98rem; color: var(--ink-soft); }
.recipe { margin-top: 1.6rem; counter-reset: step; list-style: none; max-width: 62ch; }
.recipe li { counter-increment: step; position: relative; padding: 0.8rem 0 0.8rem 3rem; border-bottom: 1px dashed rgba(27,48,66,0.18); font-size: 1rem; }
.recipe li::before {
  content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: 0.85rem;
  font-family: var(--mono); font-weight: 600; color: var(--gold); filter: brightness(0.85);
}
.back-link {
  display: inline-block; margin-bottom: 1.6rem;
  font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-soft); text-decoration: none; border-bottom: 2px solid var(--gold); padding-bottom: 0.2rem;
}
.back-link:hover { color: var(--ink); }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .drift-l, .drift-r { animation: none; }
  .ticket, .ticket-stub, .head-cta, .cta-btn { transition: none; }
  .ticket:hover { transform: none; }
  .ticket:hover .ticket-stub { transform: none; }
}
