/* hero.css */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

html {
  /* @apply bg-white dark:bg-night; */
  margin: 0;
  padding: 0;
  width: 100%;
  height: auto;
  min-height: 100%;
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
  overflow: auto;  /* scroll happens here */
}

body {
  /* @apply bg-white dark:bg-night; */
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100vh;
  height: auto;      /* explicitly auto — never constrain height */
  display: flex;
  flex-direction: column;
  color: var(--color-cream);
  overflow-x: clip;     /* only hide horizontal overflow */
  overflow-y: visible;  /* let html handle scrolling */
}

#main {
  width: 100%;
  min-height: 100vh;
  height: auto;           /* grows with content */
  background: var(--color-night);
  display: flex;
  flex-direction: column;
  flex: 1;                /* fill available space in body flex column */
}

/* Search button — scoped to hero to avoid bleeding into other pages */
.hero button.rounded-full svg {
  stroke: var(--color-night);
  stroke-width: 1.5px;
  display: block;
  width: 16px;
  height: 16px;
}

.hero button.rounded-full {
  justify-content: center !important;
  padding: 0 !important;
}

/* ===================== */
/* HERO                  */
/* ===================== */

.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 100vh;  /* prevents flex parent from shrinking it */
  max-height: 100vh;  /* prevents flex parent from growing it */
  flex-shrink: 0;    /* prevent flex shrinking */
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
}

/* LEFT */
.hero-left {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0rem 4rem 80px; /* 80px matches stats bar height */
  z-index: 2;
  min-height: 0;
  height: 100%;
  box-sizing: border-box;
}

.hero-left-content {
  /* wraps all visible content */
  display: flex;
  flex-direction: column;
  flex: 1; 
  gap: 1.5rem;
  /* padding-bottom: 5rem; /* clear the stats bar */
  padding: 16rem 0rem 0;
}

.eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 1.4rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  animation: fadeUp 0.8s ease both 0.2s;
}

.eyebrow::before {
  content: '';
  display: block;
  width: 2rem;
  height: 1px;
  background: var(--color-gold);
}

.hero-title p {
  all: unset;
  display: block;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.4rem, 10vw, 3.2rem);
  font-weight: 400;
  line-height: 1.05;
  color: var(--color-cream);
  padding-top: 3rem;
  padding-right: 4rem;
  margin-bottom: 0.75rem;
  animation: fadeUp 0.9s ease both 0.4s;
}

.hero-title p i {
  font-style: italic;
  color: var(--color-mist);
}

.hero-subtitle p {
  all: unset;
  display: block;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(0.9rem, 1.8vw, 1.4rem);
  font-weight: 300;
  font-style: italic;
  color: var(--color-parchment);
  margin-bottom: 2.5rem;
  padding-top: 1rem;
  line-height: 1.5;
  max-width: 36rem;
  animation: fadeUp 0.9s ease both 0.55s;
}

.hero-actions {
  display: flex;
  align-items: center;
  margin-top: 6px;
  margin-bottom: 4px;
  gap: 2.5rem;
  animation: fadeUp 0.9s ease both 0.7s;
}

.btn-primary {
  all: unset;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--color-gold);
  color: var(--color-night);
  font-family: 'DM Mono', monospace;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 1rem 2rem;
  transition: background 0.3s;
  cursor: pointer;
  border: none;
  box-sizing: border-box;
}

.btn-primary:hover {
  background: var(--color-gold-light);
}

.btn-primary .arrow {
  font-size: 16px;
  transition: transform 0.3s;
}

.btn-primary:hover .arrow {
  transform: translateX(4px);
}

.btn-secondary {
  font-family: 'DM Mono', monospace;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-stone);
  text-decoration: none;
  border-bottom: 1px solid var(--color-stone);
  padding-bottom: 2px;
  transition: color 0.3s, border-color 0.3s;
  cursor: pointer;
}

.btn-secondary:hover {
  color: var(--color-cream);
  border-color: var(--color-cream);
}

/* PHOTO CARDS */

.photo-card {
  width: 200px;
  height: 160px;
  overflow: hidden;
  border: 1px solid rgba(184,149,42,0.25);
  position: relative;
  flex-shrink: 0;
}

.photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.7) brightness(0.85);
  transition: filter 0.4s;
}

.photo-card:hover img {
  filter: saturate(1) brightness(1);
}

.photo-card-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 3px 6px;
  background: rgba(26,30,20,0.75);  /* night */
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-mist);
}

/* DIVIDER + BADGE */
.hero-divider {
  position: absolute;
  top: 15%;
  bottom: 15%;
  left: 50%;
  width: 1px;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(184,149,42,0.3) 30%,
    rgba(184,149,42,0.3) 70%,
    transparent
  );
  z-index: 3;
  transform: translateX(-0.5px);
}

.trail-badge {
  position: absolute;
  top: 24%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  width: 90px;
  height: 90px;
  background: var(--color-night);
  border: 1px solid rgba(184,149,42,0.4);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.badge-number {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--color-gold);
  line-height: 0.8;
}

.badge-text {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-stone);
  text-align: center;
}

/* RIGHT */
.hero-right {
  position: relative;
  overflow: hidden;
}

.landscape-svg {
  width: 100%;
  height: 100%;
  min-height: 100vh;
  opacity: 0.6;
}

.hero-photo-float {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  bottom: 7.5rem;
  right: -0.5%; 
  width: 260px;
  height: auto;
  /* border: 1px solid rgba(184,149,42,0.3); */
  z-index: 4;
  animation: fadeUp 1s ease both 1s;
}

.hero-photo-float img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.75) brightness(0.8);
}

.hero-photo-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 4px 8px;
  background: rgba(26,30,20,0.8);   /* night */
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-mist);
}

/* TRAIL TAGS */
.trail-tags {
  position: absolute;
  display: flex;
  flex-direction: column;
  flex-shrink: 0; 
  width: 240px;
  height: 60px;
  gap: 3px;
  top: 6%;
  left: 48%;
  z-index: 5;
}

.trail-tag {
  position: relative;
  z-index: 5;
  align-items: flex-start;
}

.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(26,30,20,0.7); /* night */
  border: 1px solid rgba(184,149,42,0.25);
  padding: 0.4rem 0.75rem;
  margin-bottom: 4px;
}

.tag-pill a {
  border-bottom: 0;
  font-size: 10px;
  padding-left: 4px;
}

.tag-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-gold);
}

.tag-text a {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-mist);
}

/* STATS BAR */
.stats-bar {
  position: static;
  margin-top: auto;    /* push to bottom of hero-left-content */
  bottom: auto;
  left: auto;
  right: auto;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(255,255,255,0.08);
  animation: fadeUp 0.9s ease both 0.9s;
}

.stat {
  padding: 0.75rem 1rem;
  border-right: 1px solid rgba(255,255,255,0.08);
}

.stat:last-child {
  border-right: none;
}

.stat-value {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--color-cream);
  line-height: 1;
}

.stat-label {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-mist);
  margin-top: 0.2rem;
}

/* SCROLL HINT */
.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.scroll-line {
  width: 1px;
  height: 3rem;
  background: linear-gradient(to bottom, var(--color-gold), transparent);
  animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

.scroll-text {
  font-family: 'DM Mono', monospace;
  font-size: 8px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-stone);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

/* ===================== */
/* HOW IT WORKS SECTION  */
/* ===================== */
 
/* ===================== */
/* SECTION HEADER        */
/* ===================== */
 
.hw-header {
  text-align: center;
  padding: 6rem 2rem 3rem;
  border-bottom: 1px solid var(--gold-dim);
}
 
.hw-header-eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 16px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}
 
.hw-header-eyebrow::before,
.hw-header-eyebrow::after {
  content: '';
  display: block;
  width: 2rem;
  height: 1px;
  background: var(--color-gold);
}

.hw-header-title p {
  all: unset;
  display: block;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 0.1em;
  color: var(--color-cream);
  margin-bottom: 0.75rem;
}

.hw-header-title p i {
  font-style: italic;
  color: var(--color-mist);
}

.hw-header-sub p {
  all: unset;
  display: block;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.4rem;
  font-weight: 300;
  font-style: italic;
  color: var(--color-parchment);
  line-height: 1.6;
  letter-spacing: 0.05em;
}
 
 
/* ===================== */
/* STICKY NAV            */
/* ===================== */
 
.hw-nav {
  position: sticky;
  top: var(--header-height, 64px);
  z-index: 50;
  background: rgba(26,30,20,0.96);  /* night */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--gold-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  overflow-x: auto;
  flex-wrap: nowrap;   /* prevents items wrapping to next line */
  scrollbar-width: none; /* Firefox */
}

.hw-nav::-webkit-scrollbar {
  display: none; /* Chrome / Safari */
}
 
.hw-nav-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-stone);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}
 
.hw-nav-item:hover { color: var(--color-cream); }
.hw-nav-item.active { color: var(--color-gold); border-bottom-color: var(--color-gold); }
 
.hw-nav-num {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid currentColor;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  flex-shrink: 0;
  line-height: 0.9;
  font-style: normal;    /* add this — inherits italic from nav context */
  letter-spacing: 0;     /* add this — letter-spacing adds trailing space */
}
 
/* ===================== */
/* SECTIONS              */
/* ===================== */
 
.hw-section {
  padding: 6rem 4rem 6rem 4rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
 
.hw-section:nth-child(even) {
  background: var(--color-night-mid);
}

.hw-section:nth-child(even) .hw-phone {
  --phone-bezel: #141810;  
}
 
.hw-section-inner {
  display: grid;
  grid-template-columns: 1fr 60px 1fr;
  gap: 0;
  align-items: center;
  max-width: 960px;
  margin: 48px auto; /* ← auto left/right centres the block */
}
 
.hw-section-inner.reverse {
  direction: rtl;
}
 
.hw-section-inner.reverse > * {
  direction: ltr;
}
 
/* ===================== */
/* PHONE FRAME           */
/* ===================== */
 
.hw-phone-wrap {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  margin-top: 8px;
  padding: 16px;
  transform: scale(0.7); /* Scale the size for display */
  transform-origin: top center;
  height: 596px;   /* 852 * 0.5 — reserve correct space after scaling */
}

.hw-phone {
  --phone-bezel: #1a1a1a;  /* matches --color-night default */

  position: relative;
  width: 393px;
  height: 852px;
  background: var(--color-night);
  border-radius: 54px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.08),
    0 0 0 10px var(--phone-bezel),
    0 0 0 11px rgba(255,255,255,0.06),
    0 8px 20px rgba(0,0,0,0.4),
    0 24px 48px rgba(0,0,0,0.15);
    /* 0 16px 40px rgba(0,0,0,0.35); */
  overflow: hidden;
  flex-shrink: 0;
}
 
/* ── Side buttons ────────────────────────────────────────────────── */
.hw-phone::before {
  content: '';
  position: absolute;
  left: -11px;
  top: 160px;
  width: 4px;
  height: 36px;
  background: #2a2a2a;
  border-radius: 2px 0 0 2px;
  box-shadow: 0 54px 0 #2a2a2a, 0 108px 0 #2a2a2a;
}

.hw-phone::after {
  content: '';
  position: absolute;
  right: -11px;
  top: 200px;
  width: 4px;
  height: 72px;
  background: #2a2a2a;
  border-radius: 0 2px 2px 0;
}
 
/* ── Dynamic island (replaces notch on iPhone 15/16) ────────────── */
.hw-phone-notch {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 126px;
  height: 37px;
  background: #000;
  border-radius: 20px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 14px;
}

.hw-phone-notch-dot {
  width: 12px;
  height: 12px;
  background: #1a1a1a;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.08);
}

/* ── Status bar — sits below dynamic island ──────────────────────── */
.hw-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px 4px;   /* top padding accounts for dynamic island */
  background: transparent;
  color: var(--color-cream);
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  margin-top: 44px;         /* clear the dynamic island */
}

.hw-status-time {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hw-status-icons {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--color-cream);
}
 
/* ── Screen ──────────────────────────────────────────────────────── */
.hw-phone-screen {
  position: absolute;
  inset: 0;
  border-radius: 54px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--color-night);
}

.hw-phone-screen img {
  width: 100%;
  flex: 1;
  object-fit: cover;
  object-position: top;
  display: block;
}
 
/* Placeholder screen */
.hw-screen-placeholder {
  width: 100%;
  height: 100%;
  background: #1E2817;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
 
.hw-screen-topbar {
  height: 32px;
  background: var(--color-night-mid);
  border-bottom: 1px solid rgba(184,149,42,0.15);
  display: flex;
  align-items: center;
  padding: 0 10px;
  gap: 6px;
  flex-shrink: 0;
}
 
.hw-screen-dot { 
  width: 5px; 
  height: 5px; 
  border-radius: 50%; 
  background:#B8952A
}
 
.hw-screen-tabs {
  display: flex;
  background: var(--color-night-mid);
  border-top: 1px solid rgba(184,149,42,0.1);
  flex-shrink: 0;
}
 
.hw-screen-tab {
  flex: 1;
  padding: 6px 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
 
.hw-screen-tab-dot {
  width: 14px;
  height: 2px;
  border-radius: 1px;
}
 
.hw-screen-tab-label {
  font-family: 'DM Mono', monospace;
  font-size: 6px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-stone);
}
 
.hw-screen-tab.active .hw-screen-tab-dot { background: var(--color-gold); }
.hw-screen-tab.active .hw-screen-tab-label { color: var(--color-gold); }
.hw-screen-tab:not(.active) .hw-screen-tab-dot { background: var(--color-moss); }
 
/* Hotspots */
.hw-hotspot {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-gold);
  color: var(--color-night);
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid rgba(255,255,255,0.3);
  animation: pulse-ring 2s ease-in-out infinite;
}
 
@keyframes pulse-ring {
  0%, 100% { box-shadow: 0 0 0 0 rgba(184,149,42,0.5); }
  50% { box-shadow: 0 0 0 6px rgba(184,149,42,0); }
}
 
/* ===================== */
/* CONNECTOR             */
/* ===================== */
 
.hw-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
}
 
.hw-connector-line {
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, var(--color-gold), rgba(184,149,42,0.5));
  /* background: linear-gradient(to right, var(--color-parchment), var(--color-gold)); */

}
 
.hw-section-inner.reverse .hw-connector-line {
  background: linear-gradient(to left, rgba(184,149,42,0.5), var(--color-gold));
}
 
/* ===================== */
/* TEXT + ANNOTATIONS    */
/* ===================== */
 
.hw-text { padding: 2rem; }
 
.hw-eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 14px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--color-gold);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
 
.hw-eyebrow::before {
  content: '';
  display: block;
  width: 1.5rem;
  height: 1px;
  background: var(--color-gold);
}
 
.hw-heading p,
.hw-subtext p {
  all: unset;
  display: block;
}

.hw-heading p em,
.hw-subtext p em {
  color: var(--color-mist);
}

.hw-heading p {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 400;
  letter-spacing: 0.1em;
  line-height: 1.1;
  color: var(--color-cream);
  margin-bottom: 0.5rem;
}
 
.hw-heading p i {
  font-style: italic;
  color: var(--color-mist);
}
 
.hw-subtext {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.3rem;
  font-weight: 300;
  font-style: italic;
  color: var(--color-mist);
  line-height: 1.2;
  letter-spacing: 0.1em;
  margin-top: 1.2rem;
  margin-bottom: 1.8rem;
}
 
.hw-annotations { display: flex; flex-direction: column; gap: 1rem; }
 
.hw-annotation {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-gold-dim);
  background: var(--color-gold-glow);
  transition: background 0.2s, border-color 0.2s;
  cursor: default;
}
 
.hw-annotation:hover {
  background: rgba(184,149,42,0.1);
  border-color: rgba(184,149,42,0.45);
}
 
.hw-annotation-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-gold);
  color: var(--color-night);
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.hw-annotation-title {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gold-light);
  margin-bottom: 6px;
}

.hw-annotation-desc p {
  all: unset;
  display: block;
  /* font-family: 'Cormorant Garamond', Georgia, serif; */
  /* font-family: var(--font-body); */
  font-family: 'DM Mono', monospace;
  font-size: 0.75rem;
  font-weight: 50;
  letter-spacing: 0.1em;
  color: var(--color-cream);
  line-height: 1.5;
}

.hw-annotation-desc p a {
  color: var(--color-gold);
}

/* ===================== */
/* BACK TO TOP           */
/* ===================== */
.hw-back-to-top-wrap {
  position: sticky;
  bottom: 2rem;
  height: 0;
  width: 100vw;
  pointer-events: none;
  z-index: 10000;
}

.hw-back-to-top {
  z-index: 100;
  pointer-events: auto;
  position: absolute;
  right: 2rem;
  bottom: 0;
  padding-bottom: 2px;
  width: 44px;
  height: 44px;
  background: var(--color-night-mid);
  border: 1px solid var(--color-gold-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s, transform 0.3s, background 0.2s, border-color 0.2s;
  text-decoration: none;
}
 
.hw-back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}
 
.hw-back-to-top:hover {
  background: rgba(184,149,42,0.1);
  border-color: rgba(184,149,42,0.5);
}
 
.hw-back-to-top svg {
  width: 16px;
  height: 16px;
  stroke: var(--color-gold);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}
 
/* ===================== */
/* MOCK SCREEN CONTENT   */
/* ===================== */
 
.hw-screen-map {
  flex: 1;
  position: relative;
  background: var(--color-darkgreen-mid);
  overflow: hidden;
}
 
.hw-screen-map svg { width: 100%; height: 100%; }
 
.hw-stage-screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 8px;
  gap: 5px;
}
 
.hw-stage-hero-img {
  height: 70px;
  background: #253019;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
}
 
.hw-stage-hero-img svg { width: 100%; height: 100%; }
 
.hw-stage-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 11px;
  color: var(--color-cream);
  margin-top: 2px;
}
 
.hw-stage-meta {
  font-family: 'DM Mono', monospace;
  font-size: 7px;
  letter-spacing: 0.1em;
  color: var(--color-stone);
  text-transform: uppercase;
}
 
.hw-stage-stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 4px;
}
 
.hw-stage-stat {
  background: rgba(255,255,255,0.04);
  border: 0.5px solid rgba(184,149,42,0.2);
  border-radius: 4px;
  padding: 4px 5px;
}
 
.hw-stage-stat-val {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 9px;
  color: var(--color-cream);
  line-height: 1;
}
 
.hw-stage-stat-key {
  font-family: 'DM Mono', monospace;
  font-size: 6px;
  color: var(--color-stone);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
 
.hw-elev-block {
  background: rgba(255,255,255,0.02);
  border: 0.5px solid rgba(184,149,42,0.15);
  border-radius: 4px;
  padding: 5px;
  position: relative;
}
 
.hw-elev-label {
  font-family: 'DM Mono', monospace;
  font-size: 7px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-stone);
  margin-bottom: 4px;
}
 
.hw-elev-chart { width: 100%; height: 28px; }
 
.hw-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 4px;
  background: var(--color-night-mid);
  border-top: 1px solid rgba(184,149,42,0.1);
  flex-shrink: 0;
}
 
.hw-pag-item {
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'DM Mono', monospace;
  font-size: 7px;
  color: var(--color-stone);
  border: 0.5px solid rgba(255,255,255,0.08);
  border-radius: 2px;
}
 
.hw-pag-item.current {
  background: rgba(184,149,42,0.12);
  border-color: rgba(184,149,42,0.4);
  color: var(--color-gold);
}
 
.hw-acc-screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
 
.hw-acc-map {
  height: 100px;
  background: var(--color-darkgreen-mid);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
 
.hw-acc-list {
  flex: 1;
  padding: 6px 8px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  overflow: hidden;
}
 
.hw-acc-item {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 7px;
  background: rgba(255,255,255,0.03);
  border: 0.5px solid rgba(255,255,255,0.06);
  border-radius: 4px;
  position: relative;
}
 
.hw-acc-thumb {
  width: 30px;
  height: 30px;
  border-radius: 3px;
  background: #2A3320;
  flex-shrink: 0;
  overflow: hidden;
}
 
.hw-acc-thumb svg { width: 100%; height: 100%; }
 
.hw-acc-info { flex: 1; min-width: 0; }
 
.hw-acc-name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 9px;
  color: var(--color-cream);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
 
.hw-acc-type {
  font-family: 'DM Mono', monospace;
  font-size: 6.5px;
  color: var(--color-stone);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
 
.hw-acc-pill {
  font-family: 'DM Mono', monospace;
  font-size: 6px;
  color: var(--color-gold);
  border: 0.5px solid rgba(184,149,42,0.3);
  padding: 2px 4px;
  border-radius: 2px;
  white-space: nowrap;
}
 
/* ===================== */
/* MOBILE RESPONSIVE     */
/* ===================== */
@media (max-width: 1475px) {
  .hw-nav {
    display: none;
  }
}

@media (max-width: 768px) {

  nav {
    padding: 1.4rem 1.2rem;
  }

  .nav-links {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  .nav-logo-main {
    font-size: 18px;
    font-weight: 380;
  }

  .nav-logo-sub {
    font-size: 10px;
    letter-spacing: 0.15em;
    width: 100%;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: 100vh;
    /* height: auto; */
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - var(--header-height, 64px));
  }

  .hero-left {
    height: 100vh;
    padding: 0 1.5rem 0;
    justify-content: flex-start;
    z-index: 2;
    position: relative;
    /* overflow: visible; */
    gap: 1.5rem; 
  }

  .hero-left-content {
    /* wraps all visible content */
    display: flex;
    flex-direction: column;
    gap: 1rem; 
    padding-top: 0rem;
    padding-bottom: 4rem; /* clear the stats bar */
    justify-content: flex-end;
    /* overflow: visible; */
    width: 100%;
    height: 100vh;
  }

  /* Landscape SVG becomes full-bleed background */
  .hero-right {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
  }

  .landscape-svg {
    min-height: 100%;
    opacity: 0.55;
  }

  /* Hide desktop-only elements */
  .hero-divider,
  .trail-badge,
  .hero-photo-float,
  .trail-tag,
  .scroll-hint {
    display: none;
  }

  .eyebrow {
    font-size: 11px;
    margin-top: 8rem;
    margin-bottom: 1rem;
  }

  .hero-title p {
    font-size: clamp(2rem, 4vw, 2.4rem);
    padding-right: 0;
  }

  .hero-subtitle p {
    font-size: 1.2rem;
    line-height: 1.3;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
    max-width: 100%;
  }

  .hero-actions {
    gap: 0.5rem;
    margin-bottom: 1rem;
    margin-top: 24px;
  }

  .btn-primary {
    padding: 0.6rem 0.8rem;
    font-size: 12px;
    letter-spacing: 0.1em;
    font-weight: 420;
  }

  .btn-secondary {
    padding: 0.8rem 1.2rem;
    font-size: 12px;
  }

  .photo-strip {
    position: static; /* override any absolute positioning */
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    width: 100%;
    flex-shrink: 0; 
  }

  .photo-card {
    width: 100%;
    height: 160px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    border-radius: 8px;  /* optional, looks nicer */
  }

  .photo-card-label {
    font-size: 8px;
  }

  /* Stats bar: full width */
  .stats-bar {
    position: static;
    left: auto;
    right: auto;
    margin-top: auto;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid rgba(255,255,255,0.08);
  }

  .stat {
    padding: 0.75rem 0.5rem;
    text-align: bottom;
  }

  .stat-value {
    font-size: 1rem;
  }

  .stat-label {
    font-size: 9px;
  }

/* ====================== */
/* MOBILE - HOW IT WORKS  */
/* ====================== */
 
  .hw-section { padding: 4rem 1.5rem; }

  .hw-header {
    padding: 3rem 2rem 2rem;
  }

  .hw-header-eyebrow {
    font-size: 11px;
  }

  .hw-header-title p {
    font-size: clamp(2rem, 4vw, 2.4rem);
  }

  .hw-header-sub p {
    font-size: 1.1rem;
    line-height: 1.3;
    padding-top: 2px;
  }

  .hw-section:first-of-type {
    scroll-margin-top: calc(var(--header-height, 64px) + 60px);
  }

  .hw-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 50;
    overflow-x: auto;
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch;
    padding: 0 1.4rem;
  }
  
  .hw-nav-item { padding: 0.8rem 1rem; font-size: 10px; }
  .hw-nav-item span:not(.hw-nav-num) { display: none; }

  .hw-nav-num {
    width: 32px;
    height: 32px;
  }

  .hw-section {
    padding: 0.5rem 2rem 4rem 2rem;
  }
  .hw-section-inner,
  .hw-section-inner.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }

  .hw-section-inner {
    row-gap: 0rem;
    margin: 12px 0; 
    column-gap: 0;
  }

  .hw-phone-wrap {
    transform: scale(0.5);
    transform-origin: top center;
    padding: 0.25rem 0; 
  }

  .hw-connector { display: none; }
 
  .hw-phone-wrap { order: 1; }
  .hw-text { 
    max-width: 320px;
    order: 2; 
    margin-top: -4rem;
    padding: 0 0;
  }

  .hw-heading p {
    font-size: clamp(1.3rem, 3vw, 1.8rem);
  }
  .hw-subtext {
    font-size: 1.1rem;
  }

  .hw-annotation-title {
    font-size: 11px;
  }

  .hw-annotation-desc p {
    font-size: 0.7rem;
  }

  .hw-back-to-top { bottom: 1.5rem; right: 1.5rem; }

}