@import url('./tokens.css');

* { box-sizing: border-box; }
html { scroll-behavior: auto; background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-sans); font-size: var(--fs-base); line-height: var(--lh-normal); }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
::selection { background: var(--brand-300); color: var(--brand-900); }
:focus-visible { outline: none; box-shadow: var(--ring); }
.skip-link { background: var(--brand-900); color: var(--ink-inverse); left: var(--s-4); padding: var(--s-3) var(--s-4); position: fixed; top: -80px; z-index: 100; }
.skip-link:focus { top: var(--s-4); }
.atlas-shell { overflow: clip; }
.container { margin: 0 auto; max-width: 1440px; padding-left: clamp(20px, 4vw, 72px); padding-right: clamp(20px, 4vw, 72px); }
.eyebrow { color: var(--brand-500); font-family: var(--font-mono); font-size: var(--fs-xs); font-weight: var(--fw-bold); letter-spacing: var(--tracking-wide); text-transform: uppercase; }
.display { font-family: var(--font-display); font-weight: 500; letter-spacing: var(--tracking-tight); line-height: var(--lh-tight); }
.section { padding-bottom: var(--s-24); padding-top: var(--s-24); }
.section-muted { background: var(--surface-2); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-xs); transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out); }
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.btn { align-items: center; border: 1px solid transparent; border-radius: var(--r-pill); display: inline-flex; font-size: var(--fs-sm); font-weight: var(--fw-bold); gap: var(--s-2); justify-content: center; padding: 13px 20px; transition: all var(--dur) var(--ease-out); }
.btn-primary { background: var(--brand-500); color: var(--ink-inverse); box-shadow: var(--shadow-brand); }
.btn-primary:hover { background: var(--brand-400); transform: translateY(-1px); }
.btn-secondary { background: transparent; border-color: var(--border-strong); color: var(--ink); }
.btn-secondary:hover { background: var(--surface-2); }
.btn-ghost { background: transparent; color: var(--ink); padding-left: 4px; }
.input { background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--r-sm); color: var(--ink); padding: 12px 14px; width: 100%; }
.label { display: block; font-size: var(--fs-sm); font-weight: var(--fw-bold); margin-bottom: var(--s-2); }
.header { backdrop-filter: blur(16px); background: color-mix(in srgb, var(--bg) 84%, transparent); border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent); position: sticky; top: 0; z-index: 50; }
.header-inner { align-items: center; display: flex; height: 72px; justify-content: space-between; }
.brand { align-items: center; display: flex; font-family: var(--font-display); font-size: 23px; gap: 9px; }
.brand-mark { background: var(--brand-500); border-radius: 50% 50% 50% 8%; height: 22px; position: relative; width: 22px; }
.brand-mark:after { border-bottom: 7px solid var(--brand-300); border-left: 5px solid transparent; border-right: 5px solid transparent; bottom: 3px; content: ''; left: 6px; position: absolute; }
.nav { align-items: center; display: flex; gap: clamp(12px, 2vw, 28px); }
.nav a { color: var(--ink-muted); font-size: var(--fs-sm); font-weight: var(--fw-bold); }
.nav a.active, .nav a:hover { color: var(--brand-500); }
.hero { background: var(--brand-900); color: var(--ink-inverse); min-height: min(800px, calc(100vh - 72px)); overflow: hidden; position: relative; }
.hero-video, .hero-image { height: 100%; inset: 0; object-fit: cover; position: absolute; width: 100%; }
.hero:after { background: linear-gradient(90deg, rgba(23,20,17,.87) 0%, rgba(23,20,17,.52) 50%, rgba(23,20,17,.14) 100%); content: ''; inset: 0; position: absolute; }
.hero-content { align-items: end; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(250px, .55fr); min-height: min(800px, calc(100vh - 72px)); padding-bottom: var(--s-16); padding-top: var(--s-16); position: relative; z-index: 2; }
.hero-title { font-size: var(--fs-6xl); margin: var(--s-4) 0 var(--s-8); max-width: 930px; }
.hero-copy { color: var(--brand-100); max-width: 530px; }
.meta-panel { align-self: end; background: rgba(248,245,237,.12); border: 1px solid rgba(248,245,237,.36); border-radius: var(--r); display: grid; gap: var(--s-4); padding: var(--s-5); }
.meta-panel div { border-bottom: 1px solid rgba(248,245,237,.2); padding-bottom: var(--s-3); }
.meta-panel div:last-child { border: 0; padding: 0; }
.meta-panel b { display: block; font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: var(--tracking-wide); text-transform: uppercase; }
.section-head { align-items: end; display: flex; gap: var(--s-6); justify-content: space-between; margin-bottom: var(--s-10); }
.section-head h2 { font-size: clamp(38px, 5vw, 72px); margin: var(--s-2) 0 0; max-width: 720px; }
.grid-4 { display: grid; gap: var(--s-4); grid-template-columns: repeat(4, 1fr); }
.altitude-card { color: var(--ink-inverse); min-height: 430px; overflow: hidden; padding: var(--s-5); position: relative; }
.altitude-card img { filter: saturate(.8); height: 100%; inset: 0; object-fit: cover; position: absolute; transition: transform var(--dur-slow) var(--ease-out); width: 100%; }
.altitude-card:hover img { transform: scale(1.06); }
.altitude-card:after { background: linear-gradient(transparent, rgba(23,20,17,.85)); content: ''; inset: 0; position: absolute; }
.altitude-card > div { bottom: var(--s-5); position: absolute; z-index: 1; }
.altitude-card h3 { font-family: var(--font-display); font-size: var(--fs-2xl); margin: 0; }
.strip { display: flex; gap: var(--s-5); overflow-x: auto; padding-bottom: var(--s-4); scrollbar-width: thin; }
.experience { flex: 0 0 min(385px, 84vw); overflow: hidden; }
.experience img { aspect-ratio: 1.15; object-fit: cover; width: 100%; }
.experience-copy { padding: var(--s-5); }
.topo { background: var(--brand-600); color: var(--ink-inverse); min-height: 680px; overflow: hidden; position: relative; }
.topo-lines { background-image: repeating-radial-gradient(ellipse at 62% 90%, transparent 0, transparent 23px, rgba(248,245,237,.35) 24px, transparent 26px); height: 120%; inset: -10%; opacity: .9; position: absolute; transform: rotate(-8deg); width: 120%; }
.topo-copy { display: grid; grid-template-columns: 1fr 1fr; min-height: 680px; padding-top: var(--s-24); position: relative; }
.topo-copy h2 { font-size: clamp(46px, 7vw, 100px); max-width: 660px; }
.topo-notes { align-self: center; border-left: 1px solid rgba(248,245,237,.45); padding-left: var(--s-8); }
.marquee { background: var(--brand-300); color: var(--brand-900); overflow: hidden; padding: var(--s-4) 0; white-space: nowrap; }
.marquee-track { animation: ticker 28s linear infinite; display: inline-block; font-family: var(--font-display); font-size: 30px; }
@keyframes ticker { to { transform: translateX(-50%); } }
.stats { display: grid; gap: 1px; grid-template-columns: repeat(4, 1fr); background: var(--border); border: 1px solid var(--border); }
.stat { background: var(--bg); padding: var(--s-8); }
.stat strong { display: block; font-family: var(--font-display); font-size: clamp(42px, 5vw, 75px); font-weight: 500; }
.directory { display: grid; gap: var(--s-6); grid-template-columns: 280px minmax(0, 1fr); }
.filter-stack { height: fit-content; position: sticky; top: 96px; }
.filter { background: transparent; border: 1px solid var(--border); border-radius: var(--r-pill); color: var(--ink-2); font-size: var(--fs-sm); margin: 0 5px 8px 0; padding: 8px 12px; }
.filter.active { background: var(--brand-600); border-color: var(--brand-600); color: var(--ink-inverse); }
.place-grid { display: grid; gap: var(--s-5); grid-template-columns: repeat(3, 1fr); }
.place-grid.list { grid-template-columns: 1fr; }
.place-card { overflow: hidden; }
.place-grid.list .place-card { display: grid; grid-template-columns: 280px 1fr; }
.place-card img { aspect-ratio: 1.25; object-fit: cover; width: 100%; }
.place-grid.list .place-card img { height: 100%; }
.place-copy { padding: var(--s-5); }
.place-copy h3 { font-family: var(--font-display); font-size: var(--fs-xl); margin: var(--s-2) 0; }
.detail-row { color: var(--ink-muted); display: flex; flex-wrap: wrap; font-size: var(--fs-xs); gap: var(--s-3); margin-top: var(--s-4); }
.badge { border: 1px solid var(--border-strong); border-radius: var(--r-pill); font-family: var(--font-mono); font-size: 10px; letter-spacing: .04em; padding: 4px 8px; text-transform: uppercase; }
.trek-grid, .journal-grid { display: grid; gap: var(--s-5); grid-template-columns: repeat(2, 1fr); }
.trek-card { display: grid; grid-template-columns: .9fr 1.1fr; overflow: hidden; }
.trek-card img { height: 100%; min-height: 300px; object-fit: cover; }
.trek-card .place-copy { display: flex; flex-direction: column; justify-content: center; }
.relief { background: var(--brand-900); border-radius: var(--r-xl); min-height: 440px; overflow: hidden; perspective: 900px; position: relative; }
.relief-inner { background-image: repeating-radial-gradient(ellipse at 50% 120%, transparent 0, transparent 18px, rgba(232,155,46,.68) 20px, transparent 23px); border: 1px solid rgba(232,155,46,.45); height: 83%; left: 10%; position: absolute; top: 9%; transform: rotateX(58deg) rotateZ(-9deg); transform-style: preserve-3d; width: 80%; }
.relief label { bottom: var(--s-6); color: var(--brand-100); font-family: var(--font-mono); font-size: var(--fs-xs); left: var(--s-6); position: absolute; }
.culture-feature { display: grid; gap: var(--s-8); grid-template-columns: 1.05fr .95fr; }
.culture-feature img { border-radius: var(--r-xl); height: 580px; object-fit: cover; width: 100%; }
.pullquote { border-left: 2px solid var(--brand-300); font-family: var(--font-display); font-size: clamp(32px, 4vw, 56px); line-height: 1.08; margin: var(--s-16) auto; max-width: 950px; padding-left: var(--s-6); }
.form-panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); box-shadow: var(--shadow); padding: clamp(24px, 4vw, 52px); }
.form-grid { display: grid; gap: var(--s-4); grid-template-columns: 1fr 1fr; }
.field-full { grid-column: 1 / -1; }
.error { color: var(--danger); font-size: var(--fs-xs); margin: var(--s-1) 0 0; }
.footer { background: var(--brand-900); color: var(--brand-100); padding: var(--s-16) 0 var(--s-8); }
.footer-grid { display: grid; gap: var(--s-8); grid-template-columns: 1.5fr repeat(3, 1fr); }
.footer h4 { color: var(--brand-300); font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: var(--tracking-wide); text-transform: uppercase; }
.footer a { color: var(--brand-100); display: block; font-size: var(--fs-sm); margin: var(--s-2) 0; }
.cursor { background: var(--brand-300); border-radius: 50%; height: 14px; left: 0; mix-blend-mode: multiply; pointer-events: none; position: fixed; top: 0; width: 14px; z-index: 100; }
.curtain { background: var(--brand-100); inset: 0; position: fixed; z-index: 90; }
.empty { border: 1px dashed var(--border-strong); border-radius: var(--r-lg); padding: var(--s-12); text-align: center; }
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hero-content, .topo-copy, .culture-feature, .directory { grid-template-columns: 1fr; }
  .hero-content { gap: var(--s-8); }
  .meta-panel { max-width: 380px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .place-grid { grid-template-columns: repeat(2, 1fr); }
  .topo-notes { border-left: 0; border-top: 1px solid rgba(248,245,237,.45); padding: var(--s-6) 0 0; }
  .filter-stack { position: static; }
  .culture-feature img { height: 420px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .section { padding-bottom: var(--s-16); padding-top: var(--s-16); }
  .hero { min-height: 720px; }
  .hero-content { min-height: 720px; padding-bottom: var(--s-8); }
  .grid-4, .place-grid, .trek-grid, .journal-grid, .stats, .form-grid { grid-template-columns: 1fr; }
  .place-grid.list .place-card, .trek-card { grid-template-columns: 1fr; }
  .trek-card img { height: 250px; min-height: auto; }
  .section-head { align-items: start; flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; }
  .cursor { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after { animation-duration: .01ms !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}