/* ============================================================
   MATTHEW M. HANLEY — FEDERAL IMMIGRATION PRACTICE
   Expedition-map design system
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --ink: #1C2422;
  --pine: #1E4D40;
  --pine-deep: #142F28;
  --amber: #C87E3D;
  --amber-dark: #B26E31;
  --amber-soft: rgba(200, 126, 61, 0.12);
  --paper: #F7F4EE;
  --paper-light: #FCFAF5;
  --paper-deep: #F1EFE7;
  --mist: #E3E7E2;
  --sage: #8FA39B;
  --white: #FFFFFF;
  --sage-line: rgba(143, 163, 155, 0.42);
  --ink-line: rgba(28, 36, 34, 0.14);
  --pine-line: rgba(247, 244, 238, 0.18);
  --shadow-soft: 0 22px 48px -30px rgba(20, 47, 40, 0.45);
  --shadow-card: 0 26px 60px -34px rgba(20, 47, 40, 0.5);
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --maxw: 1240px;
  --header-h: 88px;
  --radius-card: 4px;
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  font-weight: 400;
  transition: background-color 0.4s ease, color 0.4s ease;
  overflow-x: hidden;
}
body.dark-terrain { background: var(--pine); }
body.menu-open { overflow: hidden; }
img { max-width: 100%; display: block; }
svg { display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--amber); color: var(--ink); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
.section-paper :focus-visible, .section-mist :focus-visible, .section-ink :focus-visible { outline-color: var(--ink); }
.section-pine :focus-visible, .site-footer :focus-visible, .hero-home :focus-visible, .page-hero :focus-visible { outline-color: var(--amber); }
[id] { scroll-margin-top: calc(var(--header-h) + 24px); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin: 0;
}
h1 { font-size: clamp(2.6rem, 6vw, 4.9rem); }
h2 { font-size: clamp(2rem, 4vw, 3.35rem); }
h3 { font-size: clamp(1.35rem, 2.4vw, 1.85rem); line-height: 1.15; }
h4 { font-size: 1.15rem; line-height: 1.25; }
p { margin: 0 0 1.1rem; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
strong { font-weight: 600; }
em { font-style: italic; }

.container { width: min(100% - 40px, var(--maxw)); margin-inline: auto; }
.container-narrow { width: min(100% - 40px, 780px); margin-inline: auto; }
.container-mid { width: min(100% - 40px, 980px); margin-inline: auto; }

.section { position: relative; padding: clamp(4rem, 8vw, 7.5rem) 0; }
.section-tight { padding: clamp(2.5rem, 5vw, 4.5rem) 0; }
.section-paper { background: var(--paper); }
.section-paper-light { background: var(--paper-light); }
.section-paper-deep { background: var(--paper-deep); }
.section-pine { background: var(--pine); color: var(--paper); }
.section-ink { background: var(--ink); color: var(--paper); }
.section-mist { background: var(--mist); color: var(--ink); }
.top-pad { padding-top: clamp(4rem, 7vw, 6rem); }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber-dark);
  margin-bottom: 1.15rem;
}
.kicker::before {
  content: "";
  width: 8px; height: 8px;
  background: var(--amber);
  transform: rotate(45deg);
  flex: 0 0 auto;
}
.section-pine .kicker, .section-ink .kicker, .hero-home .kicker, .page-hero .kicker { color: var(--amber); }
.section-pine .kicker::before, .section-ink .kicker::before, .hero-home .kicker::before, .page-hero .kicker::before { background: var(--amber); }
.lede { font-size: clamp(1.05rem, 1.5vw, 1.22rem); line-height: 1.65; color: rgba(28, 36, 34, 0.82); }
.section-pine .lede, .section-ink .lede, .hero-home .lede, .page-hero .lede { color: rgba(247, 244, 238, 0.82); }
.section-head { max-width: 780px; margin-bottom: clamp(2.2rem, 4vw, 3.4rem); }
.section-head.center { text-align: center; margin-inline: auto; }
.section-head.center .kicker { justify-content: center; }
.section-head h2 + .lede { margin-top: 1.2rem; }

.text-amber { color: var(--amber); }
.text-pine { color: var(--pine); }
.hairline { border: 0; border-top: 1px solid var(--ink-line); margin: 0; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 52px;
  padding: 0 1.7rem;
  border: 0;
  border-radius: 0;
  font-family: var(--font-body);
  font-size: 0.94rem;
  font-weight: 600;
  line-height: 1.15;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease-out), background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.btn-primary { background: var(--amber); color: var(--ink); }
.btn-primary:hover { background: var(--amber-dark); transform: translateY(-2px); box-shadow: 0 12px 24px -16px rgba(20, 47, 40, 0.7); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost { background: transparent; border: 1.5px solid rgba(247, 244, 238, 0.5); color: var(--paper); }
.btn-ghost:hover { border-color: var(--amber); color: var(--amber); transform: translateY(-2px); }
.btn-ghost--ink { border-color: rgba(28, 36, 34, 0.42); color: var(--ink); }
.btn-ghost--ink:hover { border-color: var(--amber-dark); color: var(--amber-dark); }
.btn-block { width: 100%; }
.btn-lg { min-height: 58px; padding-inline: 2rem; }
.btn-sm { min-height: 44px; padding-inline: 1.25rem; font-size: 0.86rem; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  border-bottom: 1.5px solid transparent;
  transition: border-color 0.2s ease, gap 0.2s ease, color 0.2s ease;
}
.link-arrow::after { content: "→"; transition: transform 0.2s ease; }
.link-arrow:hover { border-color: currentColor; }
.link-arrow:hover::after { transform: translateX(4px); }
.link-arrow--amber { color: var(--amber-dark); }
.section-pine .link-arrow--amber, .section-ink .link-arrow--amber { color: var(--amber); }

/* ---------- Animations ---------- */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s var(--ease-out);
  transition-delay: var(--delay, 0ms);
}
.animate-on-scroll.visible { opacity: 1; transform: translateY(0); }
.animate-on-scroll[data-reveal="left"] { transform: translateX(-32px); }
.animate-on-scroll[data-reveal="right"] { transform: translateX(32px); }
.animate-on-scroll[data-reveal="left"].visible, .animate-on-scroll[data-reveal="right"].visible { transform: translateX(0); }
.animate-on-scroll[data-reveal="fade"] { transform: none; }
.pin-drop { opacity: 0; transform: translateY(-14px) scale(0.82); transition: opacity 0.4s ease, transform 0.55s var(--ease-spring); transition-delay: var(--delay, 0ms); }
.pin-drop.visible { opacity: 1; transform: translateY(0) scale(1); }
.clip-wipe { clip-path: inset(0 0 100% 0); transition: clip-path 0.8s var(--ease-out); transition-delay: var(--delay, 0ms); }
.clip-wipe.visible { clip-path: inset(0 0 0 0); }
.clip-wipe--right { clip-path: inset(0 0 0 100%); }
.clip-wipe--right.visible { clip-path: inset(0 0 0 0); }

.word-mask .word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.word-mask .word > span { display: inline-block; transform: translateY(112%); transition: transform 0.95s var(--ease-out); transition-delay: calc(var(--i, 0) * 80ms); }
.word-mask.visible .word > span, body.loaded .word-mask.auto .word > span { transform: translateY(0); }

.line-slide .line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.line-slide .line > span { display: block; transform: translateY(110%); transition: transform 0.9s var(--ease-out); transition-delay: var(--delay, 0ms); }
.line-slide.visible .line > span, body.loaded .line-slide.auto .line > span { transform: translateY(0); }

.letter-fade span.letter { display: inline-block; opacity: 0; transform: translateY(6px); transition: opacity 0.5s ease, transform 0.5s ease; transition-delay: calc(var(--i, 0) * 18ms); }
.letter-fade.visible span.letter { opacity: 1; transform: translateY(0); }

@keyframes pulse-dot { 0%, 100% { box-shadow: 0 0 0 0 rgba(200, 126, 61, 0.45); } 50% { box-shadow: 0 0 0 7px rgba(200, 126, 61, 0); } }
@keyframes drift { from { transform: translate3d(0, 0, 0) scale(1.05); } to { transform: translate3d(-2%, -1.5%, 0) scale(1.1); } }
@keyframes steam-rise { 0% { opacity: 0; transform: translateY(6px) scaleX(0.9); } 25% { opacity: 0.7; } 100% { opacity: 0; transform: translateY(-22px) scaleX(1.15); } }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  background: transparent;
  color: var(--paper);
  transition: height 0.35s ease, background-color 0.35s ease, box-shadow 0.35s ease, color 0.35s ease;
}
.site-header.scrolled {
  height: 68px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 12px 30px -24px rgba(20, 47, 40, 0.65);
}
.header-inner { height: 100%; display: flex; align-items: center; gap: 2rem; }
.brand { display: inline-flex; align-items: center; text-decoration: none; flex: 0 0 auto; }
.brand-logo { width: 58px; height: 58px; object-fit: contain; transition: transform 0.3s ease, filter 0.3s ease; }
.site-header:not(.scrolled) .brand-logo { filter: brightness(0) invert(1); }
.brand:hover .brand-logo { transform: scale(1.04); }
.main-nav { margin-left: auto; display: flex; align-items: center; gap: clamp(1rem, 1.8vw, 1.8rem); }
.main-nav a {
  position: relative;
  padding: 0.5rem 0;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.main-nav a:hover::after, .main-nav a.is-active::after { transform: scaleX(1); }
.main-nav a.is-active { color: var(--amber); }
.site-header:not(.scrolled) .main-nav a.is-active { color: var(--amber); }
.header-actions { display: flex; align-items: center; gap: 1rem; flex: 0 0 auto; }
.header-urgent { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.02em; text-decoration: none; color: var(--amber); max-width: 150px; line-height: 1.35; text-align: right; }
.header-urgent span { border-bottom: 1px solid currentColor; }
.header-urgent:hover span { border-color: transparent; }
.header-cta { min-height: 46px; padding-inline: 1.2rem; font-size: 0.82rem; }
.header-phone { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; text-decoration: none; border: 1px solid currentColor; }
.header-phone svg { width: 18px; height: 18px; }
.menu-toggle {
  display: none;
  width: 46px; height: 46px;
  align-items: center; justify-content: center;
  flex-direction: column;
  gap: 6px;
  background: transparent;
  border: 1px solid currentColor;
  cursor: pointer;
  padding: 0;
}
.menu-toggle span { display: block; width: 20px; height: 1.6px; background: currentColor; transition: transform 0.25s ease, opacity 0.25s ease; }

/* Trail progress */
.trail-progress {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: rgba(143, 163, 155, 0.2);
}
.trail-progress-fill { display: block; height: 100%; width: 0; background: var(--amber); transition: width 0.08s linear; }
.trail-progress-dot {
  position: absolute; top: 50%; left: 0;
  width: 7px; height: 7px;
  margin-left: -3px;
  border-radius: 50%;
  background: var(--amber);
  transform: translateY(-50%);
  box-shadow: 0 0 0 2px rgba(247, 244, 238, 0.45);
  transition: left 0.08s linear;
}
.trail-flag {
  position: absolute; right: -1px; bottom: 100%;
  width: 16px; height: 22px;
  opacity: 0;
  transform: translateY(4px) scale(0.7);
  transform-origin: bottom right;
  transition: opacity 0.4s ease, transform 0.5s var(--ease-spring);
}
.trail-flag svg { width: 100%; height: 100%; }
body.summit-reached .trail-flag { opacity: 1; transform: translateY(0) scale(1); }

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0;
  z-index: 200;
  background: var(--pine-deep);
  color: var(--paper);
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  overflow-y: auto;
}
.mobile-menu.active { visibility: visible; opacity: 1; }
.mobile-menu-inner {
  width: min(100% - 40px, 620px);
  margin: 0 auto;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding: 1.1rem 0 2rem;
}
.mobile-menu-top { display: flex; align-items: center; justify-content: space-between; padding-bottom: 1.1rem; border-bottom: 1px solid var(--pine-line); }
.mobile-brand { display: flex; align-items: center; gap: 0.8rem; text-decoration: none; color: var(--paper); font-family: var(--font-display); font-size: 1.05rem; line-height: 1.15; }
.mobile-brand img { width: 46px; height: 46px; filter: brightness(0) invert(1); }
.mobile-close { width: 46px; height: 46px; background: transparent; border: 1px solid rgba(247, 244, 238, 0.4); color: var(--paper); font-size: 1.3rem; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.mobile-nav { display: flex; flex-direction: column; margin: 1.6rem 0; }
.mobile-nav a {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 7vw, 2.6rem);
  line-height: 1.15;
  padding: 0.55rem 0;
  text-decoration: none;
  color: var(--paper);
  border-bottom: 1px solid rgba(247, 244, 238, 0.1);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s ease, transform 0.4s var(--ease-out), color 0.2s ease;
}
.mobile-menu.active .mobile-nav a { opacity: 1; transform: translateY(0); }
.mobile-menu.active .mobile-nav a:nth-child(1) { transition-delay: 0.06s; }
.mobile-menu.active .mobile-nav a:nth-child(2) { transition-delay: 0.12s; }
.mobile-menu.active .mobile-nav a:nth-child(3) { transition-delay: 0.18s; }
.mobile-menu.active .mobile-nav a:nth-child(4) { transition-delay: 0.24s; }
.mobile-menu.active .mobile-nav a:nth-child(5) { transition-delay: 0.30s; }
.mobile-nav a:hover { color: var(--amber); }
.mobile-phones { display: grid; gap: 0.6rem; margin-bottom: 2rem; }
.mobile-phone-row {
  display: flex; align-items: center; justify-content: space-between;
  text-decoration: none;
  border: 1px solid rgba(247, 244, 238, 0.22);
  padding: 0.9rem 1rem;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.mobile-phone-row:hover { border-color: var(--amber); background: rgba(200, 126, 61, 0.08); }
.mobile-phone-row span { font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--sage); }
.mobile-phone-row strong { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; color: var(--paper); }
.mobile-menu-bottom { margin-top: auto; display: grid; gap: 0.9rem; }
.mobile-menu-bottom .btn { width: 100%; }
.es-note { font-size: 0.8rem; color: var(--sage); margin: 0; text-align: center; }

/* ---------- Home hero ---------- */
.hero-home {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  background: var(--pine);
  color: var(--paper);
  overflow: hidden;
  isolation: isolate;
}
.hero-photo {
  position: absolute; inset: -2%;
  background: url('images/hero_home.webp') center / cover no-repeat;
  filter: saturate(0.88) brightness(0.8);
  transform: scale(1.04);
  will-change: transform;
  transition: transform 0.3s ease-out;
  z-index: -3;
}
.hero-shade {
  position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(90deg, rgba(16, 38, 32, 0.95) 0%, rgba(16, 38, 32, 0.82) 42%, rgba(20, 47, 40, 0.48) 72%, rgba(20, 47, 40, 0.35) 100%),
    linear-gradient(180deg, rgba(20, 47, 40, 0.55) 0%, rgba(20, 47, 40, 0.15) 40%, rgba(16, 38, 32, 0.85) 100%);
}
.hero-topo {
  position: absolute; inset: -10%; z-index: -1;
  background: url('images/topo_texture.webp') center / 900px repeat;
  opacity: 0.1;
  animation: drift 50s ease-in-out infinite alternate;
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  align-items: center;
  gap: 2rem;
  width: 100%;
  padding-top: calc(var(--header-h) + 2.5rem);
  padding-bottom: 4.5rem;
}
.hero-content { position: relative; z-index: 2; max-width: 660px; }
.hero-kicker { color: rgba(247, 244, 238, 0.78); font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 600; display: flex; align-items: center; gap: 0.7rem; margin-bottom: 1.4rem; }
.hero-kicker::before { content: ""; width: 26px; height: 2px; background: var(--amber); }
.hero-home h1 { font-size: clamp(3rem, 7.4vw, 6.2rem); color: var(--white); margin-bottom: 1.2rem; letter-spacing: -0.025em; }
.hero-tagline { font-family: var(--font-display); font-size: clamp(1.2rem, 2.2vw, 1.6rem); font-style: italic; font-weight: 400; line-height: 1.35; color: var(--amber); margin-bottom: 1.1rem; max-width: 560px; }
.hero-copy { color: rgba(247, 244, 238, 0.86); font-size: 1rem; line-height: 1.7; max-width: 560px; margin-bottom: 1.9rem; }
.hero-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem; }
.hero-urgent {
  position: absolute; top: calc(var(--header-h) + 0.8rem); right: 0;
  z-index: 3;
  font-size: 0.74rem; font-weight: 600;
  color: var(--amber);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}
.hero-urgent:hover { color: var(--paper); border-color: var(--paper); }
.hero-route { position: relative; z-index: 1; align-self: stretch; display: flex; align-items: center; justify-content: center; }
.hero-route svg { width: 100%; max-width: 430px; height: auto; overflow: visible; }
.route-path {
  fill: none;
  stroke: var(--amber);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-dasharray: 7 8;
  opacity: 0.95;
}
.route-path-draw {
  fill: none;
  stroke: var(--amber);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  transition: stroke-dashoffset 2.4s var(--ease-out) 0.6s;
}
body.loaded .route-path-draw { stroke-dashoffset: 0; }
.route-flag { transform: scale(0); transform-origin: center bottom; transition: transform 0.55s var(--ease-spring) 2.85s; }
body.loaded .route-flag { transform: scale(1); }
.route-start-label, .route-end-label { font-family: var(--font-body); font-size: 9px; letter-spacing: 0.18em; fill: rgba(247, 244, 238, 0.8); text-transform: uppercase; }
.hero-scroll {
  position: absolute; left: 50%; bottom: 1.4rem;
  transform: translateX(-50%);
  z-index: 2;
  font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(247, 244, 238, 0.55);
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  text-decoration: none;
}
.hero-scroll::after { content: ""; width: 1px; height: 34px; background: linear-gradient(to bottom, var(--amber), transparent); }

/* ---------- Trail signs ---------- */
.trail-signs { background: var(--ink); color: var(--paper); border-top: 1px solid rgba(143, 163, 155, 0.3); border-bottom: 1px solid rgba(143, 163, 155, 0.3); }
.signs-inner { display: grid; grid-template-columns: repeat(4, 1fr) auto; align-items: center; gap: 1.2rem; padding: 1.45rem 0; }
.trail-sign { display: flex; align-items: center; gap: 0.7rem; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.11em; text-transform: uppercase; color: rgba(247, 244, 238, 0.82); line-height: 1.4; }
.blaze { width: 7px; height: 7px; background: var(--amber); transform: rotate(45deg); flex: 0 0 auto; }
.signs-urgent { font-size: 0.72rem; font-weight: 600; color: var(--amber); text-decoration: none; border-bottom: 1px solid var(--amber); line-height: 1.4; text-align: right; max-width: 240px; }
.signs-urgent:hover { color: var(--paper); border-color: var(--paper); }

/* ---------- Guide note ---------- */
.guide-grid { display: grid; grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.portrait-frame { position: relative; isolation: isolate; max-width: 430px; }
.portrait-frame img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; filter: saturate(0.92) contrast(1.02); }
.portrait-frame::before { content: ""; position: absolute; inset: 14px -14px -14px 14px; border: 1px solid var(--sage); z-index: -1; }
.portrait-frame::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(28, 36, 34, 0.08); pointer-events: none; }
.portrait-route { position: absolute; left: -26px; top: 24%; width: 84px; height: 42%; overflow: visible; }
.portrait-route path { fill: none; stroke: var(--amber); stroke-width: 1.6; stroke-dasharray: 5 5; }
.portrait-pin { position: absolute; left: -34px; bottom: 21%; width: 16px; height: 16px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 4px var(--paper); }
.portrait-caption { position: absolute; left: 20px; bottom: -18px; background: var(--ink); color: var(--paper); font-size: 0.64rem; letter-spacing: 0.13em; text-transform: uppercase; padding: 0.55rem 0.85rem; }
.portrait-caption strong { color: var(--amber); font-weight: 600; }
.guide-copy h2 { margin-bottom: 1.4rem; }
.guide-copy p { color: rgba(28, 36, 34, 0.8); }
.signature { font-family: var(--font-display); font-style: italic; font-size: 1.55rem; color: var(--pine); margin: 1.5rem 0 0.4rem; }
.signature-role { font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sage); }
.ps-note { display: flex; align-items: flex-start; gap: 0.75rem; margin-top: 1.5rem; padding: 0.9rem 1rem; background: var(--amber-soft); border-left: 2px solid var(--amber); font-size: 0.86rem; line-height: 1.55; }
.ps-note p { margin: 0; }

/* Coffee icon */
.coffee-trigger { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; flex: 0 0 auto; background: transparent; border: 1px solid var(--sage-line); cursor: pointer; padding: 0; }
.coffee-trigger svg { width: 24px; height: 24px; overflow: visible; }
.coffee-trigger .cup-liquid { fill: var(--amber); transform: translateY(22px); transition: transform 0.6s var(--ease-out); }
.coffee-trigger.poured .cup-liquid { transform: translateY(0); }
.coffee-trigger .steam { opacity: 0; stroke: var(--sage); stroke-width: 1.6; fill: none; stroke-linecap: round; }
.coffee-trigger.poured .steam { animation: steam-rise 3s ease-out; }
.coffee-trigger.poured .steam:nth-child(2) { animation-delay: 0.35s; }
.coffee-trigger.poured .steam:nth-child(3) { animation-delay: 0.7s; }
.coffee-trigger:hover { border-color: var(--amber); }
.coffee-toast { font-size: 0.78rem; color: var(--pine); margin: 0.6rem 0 0; min-height: 1.2em; }

/* ---------- Elevation stats ---------- */
.elevation-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--sage-line); border-bottom: 1px solid var(--sage-line); }
.stat-block { position: relative; padding: 2.2rem 1.6rem 2rem; border-right: 1px solid var(--sage-line); }
.stat-block:last-child { border-right: 0; }
.stat-scale { position: absolute; right: 1.3rem; top: 2rem; bottom: 2rem; width: 1px; background: repeating-linear-gradient(to top, var(--sage) 0, var(--sage) 1px, transparent 1px, transparent 11px); opacity: 0.65; }
.stat-scale::after { content: ""; position: absolute; left: -3px; bottom: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--sage); transform: rotate(45deg); }
.stat-block:last-child .stat-scale::after { background: var(--amber); box-shadow: 0 0 0 3px var(--amber-soft); }
.stat-block { display: flex; flex-direction: column; }
.stat-number { font-family: var(--font-display); font-weight: 600; font-size: clamp(2.7rem, 4.5vw, 4rem); line-height: 0.95; letter-spacing: -0.035em; color: var(--ink); display: flex; align-items: baseline; order: 1; margin: 0; }
.stat-number .suffix { font-size: 0.48em; margin-left: 0.06em; color: var(--amber-dark); }
.stat-label { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(28, 36, 34, 0.62); margin-top: 0.85rem; line-height: 1.5; max-width: 200px; order: 2; }

/* ---------- Ticker ---------- */
.ticker { background: var(--paper); border-top: 1px solid var(--sage-line); border-bottom: 1px solid var(--sage-line); overflow: hidden; }
.ticker-track { display: flex; width: max-content; animation: ticker-scroll 42s linear infinite; padding: 0.9rem 0; }
.ticker:hover .ticker-track, .ticker:focus-within .ticker-track { animation-play-state: paused; }
.ticker-segment { display: flex; align-items: center; gap: 1.4rem; padding-right: 1.4rem; }
.ticker-item { font-size: 0.74rem; font-weight: 600; letter-spacing: 0.17em; text-transform: uppercase; color: rgba(28, 36, 34, 0.62); white-space: nowrap; }
.ticker-blaze { width: 7px; height: 7px; background: var(--amber); transform: rotate(45deg); flex: 0 0 auto; opacity: 0.85; }
@keyframes ticker-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Routes overview ---------- */
.route-list { position: relative; margin-top: 1rem; }
.route-list::before {
  content: "";
  position: absolute;
  left: 27px; top: 0; bottom: 0;
  border-left: 1px dashed var(--sage);
  opacity: 0.7;
}
.route-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  padding: 1.8rem 2.4rem 1.8rem 5.2rem;
  text-decoration: none;
  border-top: 1px solid var(--sage-line);
  transition: transform 0.25s var(--ease-out), background-color 0.25s ease;
}
.route-row:last-child { border-bottom: 1px solid var(--sage-line); }
.route-row:nth-child(even) { margin-left: 26px; }
.route-row:hover, .route-row:focus-visible { transform: translateY(-4px); background: rgba(255, 255, 255, 0.55); }
.route-row::after {
  content: "";
  position: absolute; left: 34px; top: 50%;
  width: 0; border-top: 1px dashed var(--amber);
  transition: width 0.3s var(--ease-out);
}
.route-row:hover::after, .route-row:focus-visible::after { width: 30px; }
.route-marker {
  position: absolute; left: 8px; top: 1.6rem;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--amber);
  color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.02em;
  box-shadow: 0 0 0 3px var(--paper);
  z-index: 1;
}
.route-main { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.4rem 2rem; align-items: start; }
.route-name { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.35rem, 2.6vw, 1.85rem); line-height: 1.15; letter-spacing: -0.01em; color: var(--ink); grid-column: 1; }
.route-desc { color: rgba(28, 36, 34, 0.72); font-size: 0.95rem; line-height: 1.6; margin-top: 0.55rem; max-width: 620px; grid-column: 1; }
.route-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.55rem 1.4rem; margin-top: 0.9rem; font-size: 0.65rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(28, 36, 34, 0.55); grid-column: 1; }
.route-meta strong { color: var(--ink); font-weight: 600; }
.complexity { display: inline-flex; align-items: center; gap: 3px; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--sage); opacity: 0.35; }
.dot.on { background: var(--pine); opacity: 1; }
.route-arrow { grid-column: 2; grid-row: 1; align-self: center; font-size: 1.3rem; color: var(--amber-dark); transition: transform 0.25s ease; }
.route-row:hover .route-arrow { transform: translateX(6px); }
.route-row--urgent { background: rgba(200, 126, 61, 0.07); border-left: 3px solid var(--amber); }
.route-row--urgent .route-marker { background: var(--ink); color: var(--amber); }
.route-tag { display: inline-block; background: var(--amber); color: var(--ink); font-size: 0.58rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; padding: 0.28rem 0.5rem; margin-left: 0.6rem; vertical-align: middle; }

/* ---------- Elevation profile ---------- */
.profile-chart-wrap { position: relative; margin: 2rem 0 1rem; }
.profile-svg { width: 100%; height: clamp(200px, 26vw, 300px); overflow: visible; }
.profile-svg .profile-line { fill: none; stroke: var(--amber); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1200; stroke-dashoffset: 1200; }
.profile-svg .profile-fill { fill: url(#profileGradient); opacity: 0; transition: opacity 0.6s ease; }
.profile-chart-wrap.visible .profile-fill { opacity: 1; }
.profile-caption { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.65rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sage); margin-bottom: 0.6rem; }
.profile-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; margin-top: 1.5rem; }
.profile-step { padding-top: 1.2rem; border-top: 1px solid var(--sage-line); }
.profile-step .step-num { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--amber); color: var(--ink); font-size: 0.68rem; font-weight: 600; margin-bottom: 0.8rem; }
.profile-step h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.profile-step p { font-size: 0.85rem; line-height: 1.6; color: rgba(28, 36, 34, 0.68); }
.vertical-stepper { display: none; }

/* ---------- Urgent band ---------- */
.urgent-band { background: var(--pine); color: var(--paper); position: relative; overflow: hidden; }
.urgent-band::before { content: ""; position: absolute; inset: 0; background: url('images/topo_texture.webp') center / 700px repeat; opacity: 0.07; pointer-events: none; }
.urgent-band-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 2.5rem 4rem; align-items: center; }
.urgent-band h2 { color: var(--paper); margin-bottom: 1rem; }
.urgent-band p { color: rgba(247, 244, 238, 0.8); max-width: 560px; }
.phone-stack { display: grid; gap: 0.6rem; }
.phone-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  text-decoration: none;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(247, 244, 238, 0.24);
  transition: border-color 0.2s ease, padding 0.2s ease;
}
.phone-row:hover { border-color: var(--amber); padding-left: 0.4rem; }
.phone-row span { font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--sage); }
.phone-row strong { font-family: var(--font-display); font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 600; color: var(--paper); }
.phone-row:hover strong { color: var(--amber); }
.urgent-band .btn { margin-top: 0.9rem; }

/* ---------- Traveler notes ---------- */
.notes-grid { display: flex; align-items: flex-start; gap: 1.4rem; padding-top: 1rem; }
.note {
  position: relative;
  flex: 1;
  background: var(--paper-light);
  border: 1px solid rgba(143, 163, 155, 0.35);
  padding: 2.1rem 1.6rem 1.5rem;
  box-shadow: var(--shadow-card);
  transform: rotate(-1.5deg);
  transition: transform 0.4s var(--ease-out), box-shadow 0.3s ease;
}
.note:nth-child(2) { transform: rotate(1deg); margin-top: 2.8rem; }
.note:nth-child(3) { transform: rotate(-0.5deg); margin-top: 1.2rem; }
.note:hover, .note:focus-within { transform: rotate(0deg) translateY(-3px); }
.note::before { content: ""; position: absolute; top: -5px; left: 50%; width: 10px; height: 10px; border-radius: 50%; background: var(--amber); box-shadow: 0 1px 0 rgba(28, 36, 34, 0.25); }
.note blockquote { margin: 0; }
.note blockquote p { font-family: var(--font-display); font-style: italic; font-size: 1.2rem; line-height: 1.45; color: var(--ink); }
.note figcaption { margin-top: 1.2rem; padding-top: 0.8rem; border-top: 1px solid var(--sage-line); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(28, 36, 34, 0.6); line-height: 1.55; }
.note--pine { background: var(--pine); border-color: var(--pine); }
.note--pine::before { background: var(--amber); box-shadow: 0 0 0 4px rgba(247, 244, 238, 0.2); }
.note--pine blockquote p { color: var(--paper); }
.note--pine figcaption { color: rgba(247, 244, 238, 0.65); border-color: rgba(247, 244, 238, 0.22); }
.notes-disclaimer { font-size: 0.66rem; letter-spacing: 0.04em; color: var(--sage); margin-top: 1.5rem; }

/* ---------- Basecamps ---------- */
.office-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; align-items: start; }
.office-card { background: var(--paper-light); border: 1px solid var(--sage-line); overflow: hidden; box-shadow: var(--shadow-soft); }
.office-card:nth-child(2) { margin-top: 2.4rem; }
.office-photo { position: relative; overflow: hidden; aspect-ratio: 16 / 10; }
.office-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease-out); }
.office-card:hover .office-photo img { transform: scale(1.03); }
.office-photo .map-tag { position: absolute; left: 1rem; bottom: 1rem; background: var(--ink); color: var(--paper); font-size: 0.6rem; letter-spacing: 0.14em; text-transform: uppercase; padding: 0.4rem 0.65rem; }
.office-body { padding: 1.5rem 1.6rem 1.7rem; }
.office-body h3 { margin-bottom: 0.4rem; }
.office-address { font-size: 0.9rem; color: rgba(28, 36, 34, 0.72); line-height: 1.6; margin-bottom: 1rem; }
.office-hours { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(28, 36, 34, 0.65); margin-bottom: 1rem; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sage); }
.status-dot.open { background: var(--amber); animation: pulse-dot 2s ease-out infinite; }
.status-text { font-weight: 600; color: var(--ink); }
.office-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.8rem; padding-top: 0.9rem; border-top: 1px solid var(--sage-line); }
.office-phone { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; text-decoration: none; color: var(--pine); }
.office-phone:hover { color: var(--amber-dark); }

/* ---------- Languages ---------- */
.languages-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 3rem; align-items: center; }
.language-es { font-family: var(--font-display); font-style: italic; font-size: clamp(1.2rem, 2.1vw, 1.55rem); line-height: 1.45; color: var(--ink); }
.language-en { font-size: 0.95rem; line-height: 1.7; color: rgba(28, 36, 34, 0.74); }
.languages-grid .globe { color: var(--amber-dark); flex: 0 0 auto; }

/* ---------- Fresh cup ---------- */
.fresh-cup { background: var(--pine); color: var(--paper); position: relative; overflow: hidden; }
.fresh-cup::before { content: ""; position: absolute; inset: 0; background: url('images/topo_texture.webp') center / 760px repeat; opacity: 0.07; }
.fresh-cup-inner { position: relative; max-width: 720px; margin: 0 auto; text-align: center; display: flex; flex-direction: column; align-items: center; }
.fresh-cup .coffee-trigger { width: 82px; height: 82px; border-color: rgba(247, 244, 238, 0.35); margin-bottom: 1.2rem; }
.fresh-cup .coffee-trigger svg { width: 48px; height: 48px; }
.fresh-cup .coffee-trigger:hover { border-color: var(--amber); }
.fresh-cup h2 { color: var(--paper); margin-bottom: 1.1rem; }
.fresh-cup p { color: rgba(247, 244, 238, 0.82); max-width: 600px; }
.fresh-cup .coffee-toast, .fresh-cup .cup-line { color: var(--amber); font-family: var(--font-display); font-style: italic; font-size: 1rem; min-height: 1.4em; margin-top: 0.5rem; }
.fresh-cup .hero-ctas { justify-content: center; margin-top: 1.7rem; }

/* ---------- Accordion ---------- */
.faq-list { border-top: 1px solid var(--sage-line); }
.faq-item { border-bottom: 1px solid var(--sage-line); }
.faq-question {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  width: 100%; padding: 1.35rem 0; background: transparent; border: 0; cursor: pointer;
  text-align: left; font-family: var(--font-body); font-size: 1rem; font-weight: 500; color: var(--ink);
  transition: color 0.2s ease;
}
.faq-question:hover { color: var(--amber-dark); }
.faq-marker { position: relative; flex: 0 0 auto; width: 28px; height: 28px; border: 1px solid var(--amber); transition: transform 0.3s var(--ease-out); }
.faq-marker::before, .faq-marker::after { content: ""; position: absolute; top: 50%; left: 50%; width: 11px; height: 1.5px; background: var(--amber); transform: translate(-50%, -50%); }
.faq-marker::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item.open .faq-marker { transform: rotate(45deg); background: var(--amber); }
.faq-item.open .faq-marker::before, .faq-item.open .faq-marker::after { background: var(--ink); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.faq-answer-inner { padding: 0 3rem 1.4rem 0; color: rgba(28, 36, 34, 0.74); font-size: 0.94rem; line-height: 1.7; }
.faq-answer-inner p { margin: 0; }

/* ---------- Summit ---------- */
.summit { position: relative; background: linear-gradient(180deg, var(--pine) 0%, var(--pine-deep) 100%); color: var(--paper); overflow: hidden; min-height: 88svh; display: flex; align-items: center; }
.summit::before { content: ""; position: absolute; inset: 0; background: url('images/topo_texture.webp') center / 900px repeat; opacity: 0.08; }
.summit-inner { position: relative; text-align: center; max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
.summit-flag-icon { width: 58px; height: 58px; margin-bottom: 1.4rem; }
.summit-inner h2 { font-size: clamp(2.6rem, 6vw, 4.6rem); color: var(--paper); margin-bottom: 1rem; }
.summit-inner > p { color: rgba(247, 244, 238, 0.78); font-size: 1.08rem; }
.summit-inner .hero-ctas { justify-content: center; margin-top: 1.8rem; }
.summit-fine { margin-top: 2rem; font-size: 0.65rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sage); }
.summit-route { width: min(100%, 520px); height: 60px; margin-bottom: 1.5rem; }
.summit-route path { stroke-dasharray: 620; stroke-dashoffset: 620; transition: stroke-dashoffset 1.4s var(--ease-out); }
.summit-route.visible path { stroke-dashoffset: 0; }

/* ---------- Page heroes ---------- */
.page-hero { position: relative; isolation: isolate; min-height: 60vh; display: flex; align-items: flex-end; background: var(--pine); color: var(--paper); overflow: hidden; padding-top: calc(var(--header-h) + 3rem); padding-bottom: clamp(3rem, 6vw, 5rem); }
.page-hero--tall { min-height: 70vh; }
.page-hero--compact { min-height: 52vh; }
.page-hero--ink { background: var(--ink); }
.page-hero .page-hero-bg { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; filter: saturate(0.85) brightness(0.62); }
.page-hero .page-hero-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(16, 38, 32, 0.94) 0%, rgba(20, 47, 40, 0.72) 55%, rgba(20, 47, 40, 0.4) 100%); }
.page-hero--ink .page-hero-shade { background: linear-gradient(90deg, rgba(16, 22, 20, 0.96) 0%, rgba(16, 22, 20, 0.78) 65%, rgba(16, 22, 20, 0.55) 100%); }
.page-hero .page-hero-topo { position: absolute; inset: 0; z-index: -1; background: url('images/topo_texture.webp') center / 900px repeat; opacity: 0.07; }
.page-hero-content { position: relative; max-width: 820px; }
.page-hero h1 { color: var(--white); margin-bottom: 1.2rem; }
.page-hero .lede { max-width: 640px; }
.page-hero-split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 3rem; align-items: center; width: 100%; }
.page-hero-portrait { position: relative; }
.page-hero-portrait img { width: 100%; max-width: 390px; aspect-ratio: 3 / 4; object-fit: cover; margin-left: auto; }
.page-hero-portrait .portrait-pin { left: -8px; bottom: 14%; box-shadow: 0 0 0 4px rgba(20, 47, 40, 0.9); }
.page-hero-portrait .portrait-route { left: -40px; top: 18%; opacity: 0.8; }

/* ---------- About page ---------- */
.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.story-copy p { color: rgba(28, 36, 34, 0.82); }
.story-copy p:first-child::first-letter {
  float: left;
  font-family: var(--font-display);
  font-size: 4.4rem;
  line-height: 0.78;
  padding: 0.12em 0.14em 0 0;
  color: var(--pine);
  font-weight: 600;
}
.pullquote { margin: 3rem 0; padding: 2.2rem 0 2.2rem 2rem; border-left: 2px solid var(--amber); }
.pullquote blockquote { margin: 0; }
.pullquote p { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.05rem); line-height: 1.3; letter-spacing: -0.01em; color: var(--ink); }
.pullquote-underline { display: block; width: 0; height: 3px; background: var(--amber); margin-top: 1rem; transition: width 0.6s var(--ease-out); }
.pullquote.visible .pullquote-underline { width: 110px; }

.credentials-list { border-top: 1px solid var(--sage-line); }
.credential-row { display: flex; align-items: flex-start; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--sage-line); }
.credential-tick { width: 26px; height: 26px; flex: 0 0 auto; color: var(--amber-dark); margin-top: 0.15rem; }
.credential-tick path { stroke: currentColor; stroke-width: 2; fill: none; stroke-dasharray: 30; stroke-dashoffset: 30; transition: stroke-dashoffset 0.5s ease; transition-delay: var(--delay, 0ms); }
.credential-row.visible .credential-tick path { stroke-dashoffset: 0; }
.credential-text { font-size: 1rem; line-height: 1.55; }
.credential-text strong { display: block; }
.credential-text span { font-size: 0.78rem; color: rgba(28, 36, 34, 0.55); }
.legend-note { font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sage); margin-top: 1.4rem; line-height: 1.6; }

.timeline { position: relative; padding-left: 3.4rem; }
.timeline::before { content: ""; position: absolute; left: 13px; top: 0; bottom: 0; width: 2px; background: rgba(143, 163, 155, 0.3); }
.timeline-progress { position: absolute; left: 13px; top: 0; width: 2px; height: 100%; background: var(--amber); transform: scaleY(0); transform-origin: top; transition: transform 0.2s linear; }
.timeline-item { position: relative; padding: 0 0 2.1rem 0; }
.timeline-item::before { content: ""; position: absolute; left: -3.4rem; top: 0.4rem; width: 12px; height: 12px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 4px var(--paper); transform: translateX(7px); }
.timeline-year { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; color: var(--amber-dark); margin-bottom: 0.25rem; }
.timeline-item h3 { font-size: 1.05rem; margin-bottom: 0.35rem; }
.timeline-item p { font-size: 0.9rem; color: rgba(28, 36, 34, 0.68); line-height: 1.6; }

.team-intro-grid { display: grid; grid-template-columns: minmax(0, 0.62fr) minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.team-card { background: var(--paper-light); border: 1px solid var(--sage-line); overflow: hidden; }
.team-card--lead { background: var(--pine); color: var(--paper); }
.team-photo { aspect-ratio: 4 / 5; overflow: hidden; }
.team-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease-out); }
.team-card:hover .team-photo img { transform: scale(1.03); }
.team-body { padding: 1.3rem 1.4rem 1.5rem; }
.team-body h3 { font-size: 1.4rem; margin-bottom: 0.25rem; }
.team-role { font-size: 0.66rem; letter-spacing: 0.13em; text-transform: uppercase; color: var(--amber-dark); margin-bottom: 0.7rem; }
.team-card--lead .team-role { color: var(--amber); }
.team-body p { font-size: 0.86rem; line-height: 1.6; color: rgba(28, 36, 34, 0.7); }
.team-card--lead .team-body p { color: rgba(247, 244, 238, 0.75); }
.team-card--lead .team-photo { aspect-ratio: 4 / 3; }
.team-support { margin-top: 2rem; display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 2rem; align-items: center; }
.team-support img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.team-support-text p { font-family: var(--font-display); font-size: clamp(1.2rem, 2.2vw, 1.55rem); line-height: 1.4; color: var(--ink); }

.gallery-wrap { position: relative; margin-top: 1rem; }
.gallery-track {
  display: flex; gap: 1.2rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
  padding-bottom: 0.8rem;
  scrollbar-width: thin;
  scrollbar-color: var(--amber) rgba(247, 244, 238, 0.16);
}
.gallery-track.dragging { cursor: grabbing; scroll-snap-type: none; }
.gallery-track:focus-visible { outline: 2px solid var(--amber); outline-offset: 4px; }
.gallery-item { flex: 0 0 min(78vw, 480px); scroll-snap-align: start; }
.gallery-item img { width: 100%; height: clamp(300px, 38vw, 430px); object-fit: cover; pointer-events: none; }
.gallery-caption { display: flex; align-items: flex-start; gap: 0.6rem; margin-top: 0.8rem; font-size: 0.72rem; letter-spacing: 0.05em; color: rgba(247, 244, 238, 0.72); line-height: 1.5; }
.gallery-caption::before { content: ""; width: 7px; height: 7px; background: var(--amber); transform: rotate(45deg); flex: 0 0 auto; margin-top: 0.25rem; }
.gallery-hint { font-size: 0.64rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sage); margin-top: 0.7rem; }

.principles { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 1.5rem; }
.principles::before { content: ""; position: absolute; left: 4%; right: 4%; top: 21px; border-top: 1px dashed var(--sage); }
.principle { position: relative; padding-top: 3.2rem; }
.principle-marker { position: absolute; top: 0; left: 0; width: 42px; height: 42px; border-radius: 50%; background: var(--amber); color: var(--ink); display: flex; align-items: center; justify-content: center; font-size: 0.72rem; font-weight: 600; box-shadow: 0 0 0 3px var(--paper); }
.principle:last-child .principle-marker { width: 48px; height: 48px; top: -3px; background: var(--pine); color: var(--paper); box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--amber); }
.principle h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.principle p { font-size: 0.9rem; color: rgba(28, 36, 34, 0.7); line-height: 1.65; }

/* ---------- Practice areas ---------- */
.paths-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.paths-grid img { width: 100%; box-shadow: var(--shadow-card); }
.finder-board { background: var(--paper-light); border: 1px solid var(--sage-line); padding: clamp(1.4rem, 3vw, 2.4rem); box-shadow: var(--shadow-soft); }
.finder-chips { display: grid; gap: 0.6rem; }
.chip {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  width: 100%; padding: 0.95rem 1.1rem;
  background: transparent;
  border: 1px solid rgba(143, 163, 155, 0.55);
  text-align: left;
  font-size: 0.93rem;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}
.chip span { font-size: 1rem; color: var(--amber-dark); transition: transform 0.2s ease; }
.chip:hover, .chip:focus-visible { border-color: var(--amber); background: var(--amber-soft); transform: translateX(4px); }
.chip:hover span { transform: translateX(3px); }
.chip--urgent { border-color: rgba(200, 126, 61, 0.7); background: rgba(200, 126, 61, 0.06); }
.chip--unsure { border-style: dashed; color: rgba(28, 36, 34, 0.65); font-style: italic; }
.finder-note { margin-top: 1rem; font-size: 0.82rem; color: var(--pine); min-height: 1.4em; }

.route-profile { position: relative; padding: clamp(3rem, 6vw, 5rem) 0; border-top: 1px solid var(--sage-line); }
.route-profile:first-of-type { border-top: 0; }
.profile-grid { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.route-profile--reverse .profile-grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); }
.route-profile--reverse .profile-media { order: 2; }
.profile-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.profile-media--tall img { aspect-ratio: 16 / 11; }
.route-profile--defense { background: var(--paper-deep); border-left: 4px solid var(--amber); }
.profile-copy h2 { margin-bottom: 1rem; }
.profile-copy > p { color: rgba(28, 36, 34, 0.78); margin-bottom: 1.2rem; }
.profile-kicker { display: flex; align-items: center; flex-wrap: wrap; gap: 0.7rem; margin-bottom: 0.8rem; }
.profile-marker { width: 34px; height: 34px; border-radius: 50%; background: var(--amber); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; font-size: 0.66rem; font-weight: 600; box-shadow: 0 0 0 3px var(--paper); }
.profile-kicker .route-tag { margin-left: 0; }
.expect-list { margin: 1.3rem 0; display: grid; gap: 0.55rem; }
.expect-item { display: flex; align-items: flex-start; gap: 0.7rem; font-size: 0.9rem; color: rgba(28, 36, 34, 0.75); line-height: 1.55; }
.expect-item::before { content: ""; flex: 0 0 auto; width: 7px; height: 7px; background: var(--amber); transform: rotate(45deg); margin-top: 0.4rem; }
.profile-meta { display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; padding: 0.9rem 0; border-top: 1px solid var(--sage-line); border-bottom: 1px solid var(--sage-line); font-size: 0.64rem; letter-spacing: 0.11em; text-transform: uppercase; color: rgba(28, 36, 34, 0.55); margin-bottom: 1.2rem; }
.profile-meta strong { color: var(--ink); }
.defense-phone { font-family: var(--font-display); font-size: 1.5rem; color: var(--pine); text-decoration: none; display: inline-block; margin: 0.2rem 0 0.8rem; }
.defense-phone:hover { color: var(--amber-dark); }
.you-are-here {
  position: absolute; top: 1rem; right: 1rem;
  display: inline-flex; align-items: center; gap: 0.45rem;
  background: var(--ink); color: var(--paper);
  font-size: 0.6rem; letter-spacing: 0.13em; text-transform: uppercase;
  padding: 0.45rem 0.7rem;
  opacity: 0; transform: translateY(-8px);
  transition: opacity 0.3s ease, transform 0.3s var(--ease-spring);
  pointer-events: none;
  z-index: 3;
}
.you-are-here::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--amber); }
.route-profile.pin-firing .you-are-here { opacity: 1; transform: translateY(0); }
.route-profile.pin-firing .profile-marker { animation: pulse-dot 1.6s ease-out 1; }
.mobile-urgent-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 1rem calc(0.7rem + env(safe-area-inset-bottom, 0px));
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 -12px 30px -20px rgba(0, 0, 0, 0.7);
}
.mobile-urgent-bar.visible { display: flex; }
.mobile-urgent-bar span { font-size: 0.64rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sage); display: block; line-height: 1.3; }
.mobile-urgent-bar strong { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; color: var(--paper); }
.mobile-urgent-bar a { text-decoration: none; display: flex; align-items: center; gap: 0.7rem; }
.mobile-urgent-bar .btn { min-height: 44px; padding-inline: 1rem; font-size: 0.78rem; }
@media (min-width: 768px) { .mobile-urgent-bar { display: none !important; } }
[hidden] { display: none !important; }

/* ---------- Urgent page ---------- */
.urgent-phones { display: grid; gap: 0.4rem; max-width: 760px; margin: 2.2rem 0 1.5rem; }
.urgent-phone-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(247, 244, 238, 0.22);
  text-decoration: none;
  opacity: 0; transform: translateY(18px);
  animation: urgent-in 0.5s var(--ease-out) forwards;
}
.urgent-phone-row:nth-child(1) { animation-delay: 0.15s; }
.urgent-phone-row:nth-child(2) { animation-delay: 0.35s; }
@keyframes urgent-in { to { opacity: 1; transform: translateY(0); } }
.urgent-phone-row span { font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--sage); }
.urgent-phone-row strong { font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.4rem); font-weight: 600; color: var(--paper); transition: color 0.2s ease; }
.urgent-phone-row:hover strong { color: var(--amber); }
.urgent-hero-line { max-width: 620px; }
.steps-list { border-top: 1px solid var(--sage-line); }
.step-row { display: grid; grid-template-columns: 110px 1fr; gap: 1.5rem; padding: 1.5rem 0; border-bottom: 1px solid var(--sage-line); align-items: start; }
.step-numeral { font-family: var(--font-display); font-size: clamp(2.4rem, 4.5vw, 3.5rem); line-height: 0.9; color: var(--amber); font-weight: 600; }
.step-content h3 { font-size: 1.2rem; margin-bottom: 0.4rem; }
.step-content p { font-size: 0.98rem; color: rgba(28, 36, 34, 0.78); }
.step-content strong { color: var(--amber-dark); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.two-col img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.proceedings { position: relative; margin-top: 1.5rem; }
.proceedings-line { position: absolute; left: 0; right: 0; top: 28px; height: 2px; background: rgba(143, 163, 155, 0.35); }
.proceedings-line-fill { position: absolute; inset: 0; background: var(--amber); transform: scaleX(0); transform-origin: left; transition: transform 0.2s linear; }
.proceedings-grid { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.proceeding { padding-top: 3.3rem; position: relative; }
.proceeding-marker { position: absolute; top: 10px; left: 0; width: 36px; height: 36px; border-radius: 50%; background: var(--paper); border: 2px solid var(--amber); display: flex; align-items: center; justify-content: center; font-size: 0.62rem; font-weight: 600; color: var(--amber-dark); }
.proceeding h3 { font-size: 1.02rem; margin-bottom: 0.5rem; }
.proceeding p { font-size: 0.82rem; line-height: 1.6; color: rgba(28, 36, 34, 0.68); }
.proceedings-note { margin-top: 1.8rem; padding: 1rem 1.2rem; background: var(--amber-soft); border-left: 2px solid var(--amber); font-size: 0.86rem; line-height: 1.6; }
.commitment-list { display: grid; gap: 0.9rem; max-width: 720px; margin: 1.5rem auto 0; text-align: left; }
.commitment-item { display: flex; align-items: flex-start; gap: 0.75rem; font-size: 0.98rem; }
.commitment-tick { color: var(--amber-dark); flex: 0 0 auto; margin-top: 0.2rem; }
.guidance-list { display: grid; gap: 0.7rem; margin-top: 1rem; }
.guidance-item { display: flex; align-items: flex-start; gap: 0.65rem; font-size: 0.9rem; color: rgba(28, 36, 34, 0.74); line-height: 1.6; }
.guidance-item::before { content: ""; flex: 0 0 auto; width: 6px; height: 6px; background: var(--amber); transform: rotate(45deg); margin-top: 0.42rem; }
.photo-caption { font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sage); margin-top: 0.6rem; border-left: 2px solid var(--amber); padding-left: 0.6rem; }
.urgent-final h2 { color: var(--paper); }
.urgent-final .urgent-phones { margin-inline: auto; }
.urgent-disclaimer { font-size: 0.64rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sage); margin-top: 1.6rem; line-height: 1.7; }

/* ---------- Process page ---------- */
.plain-promise { max-width: 760px; margin: 0 auto; text-align: center; }
.plain-promise blockquote { margin: 0 0 1.6rem; }
.plain-promise blockquote p { font-family: var(--font-display); font-size: clamp(1.5rem, 3.2vw, 2.35rem); line-height: 1.32; color: var(--ink); letter-spacing: -0.015em; }
.underline-draw { position: relative; display: inline-block; }
.underline-draw::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 100%; height: 3px; background: var(--amber); transform: scaleX(0); transform-origin: left; transition: transform 0.6s var(--ease-out); }
.underline-draw.visible::after { transform: scaleX(1); }
.plain-promise > p { color: rgba(28, 36, 34, 0.72); font-size: 0.98rem; }
.step-block { position: relative; padding: clamp(2.4rem, 5vw, 4rem) 0; border-top: 1px solid var(--sage-line); width: min(100%, 1060px); margin-inline: auto; }
.step-block:nth-child(3) { width: min(100%, 1000px); }
.step-block:nth-child(4) { width: min(100%, 940px); }
.step-block:nth-child(5) { width: min(100%, 880px); }
.step-block-grid { display: grid; grid-template-columns: 130px 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.step-big-num { font-family: var(--font-display); font-size: clamp(3.4rem, 7vw, 5.2rem); line-height: 0.85; color: var(--amber); font-weight: 600; letter-spacing: -0.03em; }
.step-block h2 { margin-bottom: 0.9rem; }
.step-block p { color: rgba(28, 36, 34, 0.76); }
.step-aside { margin-top: 1.2rem; padding: 0.9rem 1.1rem; background: var(--paper-deep); border-left: 2px solid var(--amber); font-size: 0.88rem; line-height: 1.6; }

.checklist-card {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  background: var(--paper-light);
  border: 1px solid var(--sage-line);
  box-shadow: var(--shadow-card);
  padding: clamp(1.6rem, 4vw, 3.2rem);
  transform: rotate(-0.7deg);
}
.checklist-card::before { content: ""; position: absolute; top: -6px; left: 50%; width: 12px; height: 12px; border-radius: 50%; background: var(--amber); box-shadow: 0 1px 0 rgba(28, 36, 34, 0.3); }
.checklist-card h2 { margin-bottom: 0.8rem; }
.checklist-items { display: grid; gap: 0.2rem; margin: 1.6rem 0; }
.check-item { display: flex; align-items: flex-start; gap: 0.85rem; padding: 0.8rem 0; border-bottom: 1px solid var(--sage-line); cursor: pointer; }
.check-item input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check-box { flex: 0 0 auto; width: 24px; height: 24px; border: 1.5px solid var(--sage); background: var(--paper); position: relative; transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease; }
.check-box::after { content: ""; position: absolute; left: 7px; top: 3px; width: 6px; height: 11px; border-right: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink); transform: rotate(45deg) scale(0); transition: transform 0.16s var(--ease-spring); }
.check-item input:checked + .check-box { background: var(--amber); border-color: var(--amber); transform: scale(1.06); }
.check-item input:checked + .check-box::after { transform: rotate(45deg) scale(1); }
.check-item input:focus-visible + .check-box { outline: 2px solid var(--ink); outline-offset: 3px; }
.check-text { font-size: 0.95rem; line-height: 1.55; padding-top: 0.1rem; }
.check-item input:checked ~ .check-text { color: rgba(28, 36, 34, 0.55); text-decoration: line-through; text-decoration-color: var(--amber); }
.checklist-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.5rem; }
.checklist-foot p { font-size: 0.85rem; color: rgba(28, 36, 34, 0.65); max-width: 480px; margin: 0; }

.faq-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 0 3rem; align-items: start; }
.faq-two-col .faq-item:first-child { border-top: 1px solid var(--sage-line); }

/* ---------- Contact page ---------- */
.contact-map { position: relative; overflow: hidden; background: var(--paper-deep); aspect-ratio: 16 / 9; }
.contact-map .map-art { position: absolute; inset: 0; background: url('images/route_map_art.webp') center / cover no-repeat; filter: saturate(0.7) contrast(0.95); opacity: 0.9; }
.contact-map .map-pin { position: absolute; left: 48%; top: 46%; width: 16px; height: 16px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 5px rgba(200, 126, 61, 0.22); }
.contact-map .map-pin::after { content: ""; position: absolute; inset: -11px; border: 1px dashed var(--amber); border-radius: 50%; }
.contact-map .map-label { position: absolute; left: 1rem; bottom: 1rem; background: var(--paper-light); color: var(--ink); font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; padding: 0.4rem 0.6rem; border: 1px solid var(--sage-line); }
.contact-form-wrap { background: var(--paper); }
.form-card { max-width: 900px; margin: 0 auto; background: var(--paper-light); border: 1px solid var(--sage-line); border-radius: 8px; padding: clamp(1.5rem, 4vw, 3rem); box-shadow: var(--shadow-card); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.4rem; }
.field { position: relative; display: flex; flex-direction: column; gap: 0.35rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(28, 36, 34, 0.7); }
.field .hint { font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--sage); font-size: 0.7rem; }
.field input, .field select, .field textarea {
  width: 100%;
  border: 1px solid rgba(143, 163, 155, 0.55);
  background: var(--paper);
  border-radius: 0;
  padding: 0.8rem 0.85rem;
  font-family: var(--font-body);
  font-size: 0.94rem;
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field textarea { min-height: 140px; resize: vertical; }
.field::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--amber); transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease-out); pointer-events: none; }
.field:focus-within::after { transform: scaleX(1); }
.field:focus-within label { color: var(--amber-dark); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--amber); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #A84B2F; background: #FBF1ED; }
.field-error { font-size: 0.72rem; color: #A84B2F; min-height: 1em; }
.form-check { display: flex; align-items: flex-start; gap: 0.75rem; padding: 0.95rem 1rem; border: 1.5px solid rgba(200, 126, 61, 0.55); background: rgba(200, 126, 61, 0.06); margin: 0.3rem 0; }
.form-check input { margin-top: 0.25rem; accent-color: var(--amber); width: 18px; height: 18px; flex: 0 0 auto; }
.form-check label { font-size: 0.86rem; line-height: 1.5; text-transform: none; letter-spacing: 0; color: var(--ink); font-weight: 500; }
.form-check .small { display: block; font-size: 0.72rem; font-weight: 400; color: rgba(28, 36, 34, 0.6); }
.form-submit { margin-top: 1.4rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.form-submit .btn { min-width: 260px; }
.form-note { font-size: 0.7rem; color: var(--sage); line-height: 1.5; max-width: 380px; }
.form-error-live { font-size: 0.8rem; color: #A84B2F; margin-top: 0.6rem; min-height: 1.2em; }
.form-success { display: none; text-align: center; padding: 2rem 1rem; }
.form-success.visible { display: block; animation: success-in 0.5s var(--ease-out); }
@keyframes success-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
.form-success .success-flag { width: 54px; height: 54px; margin: 0 auto 0.8rem; }
.form-success h3 { margin-bottom: 0.4rem; }
.form-success p { color: rgba(28, 36, 34, 0.7); font-size: 0.9rem; }
.next-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; align-items: start; }
.next-step { display: flex; gap: 0.8rem; align-items: flex-start; font-size: 0.9rem; line-height: 1.55; }
.next-step .mini-marker { flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%; background: var(--amber); color: var(--ink); font-size: 0.62rem; font-weight: 600; display: flex; align-items: center; justify-content: center; }
.language-access { text-align: center; max-width: 760px; margin: 0 auto; }
.language-access .globe { color: var(--amber-dark); margin: 0 auto 0.8rem; }
.language-access h2 { margin-bottom: 0.8rem; }
.language-access p { font-size: 0.98rem; color: rgba(28, 36, 34, 0.75); }
.confidentiality { background: var(--ink); color: var(--paper); padding: 1.4rem 0; }
.confidentiality-inner { display: flex; align-items: center; justify-content: center; gap: 0.8rem; text-align: center; font-size: 0.72rem; letter-spacing: 0.08em; line-height: 1.6; color: rgba(247, 244, 238, 0.78); }
.confidentiality-inner svg { color: var(--amber); flex: 0 0 auto; }

/* ---------- Footer ---------- */
.site-footer { position: relative; background: var(--pine); color: var(--paper); overflow: hidden; }
.site-footer::before { content: ""; position: absolute; inset: 0; background: url('images/topo_texture.webp') center / 900px repeat; opacity: 0.07; pointer-events: none; }
.footer-ridgeline { position: absolute; top: 0; left: 0; right: 0; height: 44px; background: transparent; pointer-events: none; }
.footer-ridgeline svg { width: 100%; height: 100%; }
.footer-inner { position: relative; padding: clamp(3rem, 6vw, 4.5rem) 0 1.2rem; }
.footer-grid { display: grid; grid-template-columns: 1.15fr 1fr 1.15fr 1.15fr; gap: 2.2rem; }
.footer-brand img { width: 70px; height: 70px; filter: brightness(0) invert(1); margin-bottom: 0.9rem; }
.footer-brand p { font-size: 0.82rem; color: rgba(247, 244, 238, 0.7); line-height: 1.65; max-width: 240px; }
.footer-aila { font-size: 0.65rem; letter-spacing: 0.09em; text-transform: uppercase; color: var(--sage); margin-top: 0.9rem; }
.socials { display: flex; gap: 0.6rem; margin-top: 1.1rem; }
.socials a { width: 40px; height: 40px; border: 1px solid rgba(247, 244, 238, 0.24); display: flex; align-items: center; justify-content: center; text-decoration: none; color: var(--paper); transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease; }
.socials a:hover, .socials a:focus-visible { border-color: var(--amber); color: var(--amber); background: rgba(200, 126, 61, 0.08); }
.socials svg { width: 17px; height: 17px; fill: currentColor; }
.footer-col h2, .footer-col h3 { font-family: var(--font-body); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.17em; text-transform: uppercase; color: var(--amber); margin-bottom: 1rem; }
.footer-links { display: grid; gap: 0.55rem; }
.footer-links a { font-size: 0.84rem; color: rgba(247, 244, 238, 0.78); text-decoration: none; line-height: 1.45; transition: color 0.2s ease, padding-left 0.2s ease; }
.footer-links a:hover { color: var(--amber); padding-left: 4px; }
.footer-office { margin-bottom: 1.2rem; }
.footer-office strong { display: block; font-size: 0.82rem; font-weight: 600; margin-bottom: 0.2rem; }
.footer-office p { font-size: 0.78rem; line-height: 1.6; color: rgba(247, 244, 238, 0.68); margin: 0; }
.footer-office a { color: var(--paper); text-decoration: none; font-size: 0.85rem; }
.footer-office a:hover { color: var(--amber); }
.footer-office .hours { font-size: 0.66rem; letter-spacing: 0.07em; text-transform: uppercase; color: var(--sage); margin-top: 0.35rem; }
.footer-cup { display: flex; align-items: flex-start; gap: 0.7rem; margin-bottom: 1rem; }
.footer-cup p { font-family: var(--font-display); font-style: italic; font-size: 0.98rem; line-height: 1.45; color: rgba(247, 244, 238, 0.82); margin: 0; }
.footer-cta { width: 100%; margin-bottom: 0.8rem; }
.compass-wrap { position: relative; display: inline-flex; align-items: center; gap: 0.6rem; margin-top: 0.4rem; }
.compass-btn { width: 54px; height: 54px; border-radius: 50%; border: 1px solid rgba(247, 244, 238, 0.3); background: transparent; color: var(--amber); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: border-color 0.2s ease, transform 0.8s var(--ease-out); }
.compass-btn:hover { border-color: var(--amber); }
.compass-btn.spin { transform: rotate(360deg); }
.compass-btn svg { width: 32px; height: 32px; }
.compass-label { font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sage); }
.compass-card { position: absolute; left: 0; bottom: calc(100% + 10px); width: 230px; background: var(--paper); color: var(--ink); padding: 0.85rem 1rem; font-size: 0.76rem; line-height: 1.5; box-shadow: var(--shadow-card); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s; z-index: 5; }
.compass-card.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.compass-card::after { content: ""; position: absolute; bottom: -6px; left: 22px; width: 10px; height: 10px; background: var(--paper); transform: rotate(45deg); }
.footer-bottom { position: relative; border-top: 1px solid rgba(143, 163, 155, 0.3); padding: 1.4rem 0 1.6rem; margin-top: 2.6rem; }
.footer-legal { font-size: 0.64rem; letter-spacing: 0.04em; line-height: 1.7; color: rgba(247, 244, 238, 0.55); text-align: center; }
.footer-legal .sep { color: var(--amber); margin: 0 0.35rem; }

/* ---------- Ridgeline divider ---------- */
.ridgeline { position: relative; height: clamp(38px, 6vw, 66px); background: var(--paper); overflow: hidden; }
.ridgeline svg { width: 100%; height: 100%; }
.ridgeline path.ridge-path { fill: none; stroke: var(--sage); stroke-width: 1.2; stroke-dasharray: 1400; stroke-dashoffset: 1400; transition: stroke-dashoffset 0.8s var(--ease-out); }
.ridgeline.visible path.ridge-path { stroke-dashoffset: 0; }

/* ---------- Utility ---------- */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -100px; left: 1rem; z-index: 999; background: var(--amber); color: var(--ink); padding: 0.8rem 1.2rem; font-weight: 600; font-size: 0.85rem; text-decoration: none; transition: top 0.2s ease; }
.skip-link:focus { top: 1rem; }
.reveal-bg { position: relative; }

/* ---------- Responsive: tablet ---------- */
@media (max-width: 1180px) {
  .header-urgent { display: none; }
}
@media (max-width: 1023px) {
  :root { --header-h: 72px; }
  .main-nav { display: none; }
  .header-phone { display: flex; }
  .header-cta { min-height: 42px; padding-inline: 1rem; font-size: 0.76rem; }
  .menu-toggle { display: flex; }
  .header-inner { justify-content: space-between; }
  .header-actions { margin-left: auto; }
  .hero-grid { grid-template-columns: 1fr; gap: 1rem; }
  .hero-route { position: absolute; inset: 0; z-index: 0; opacity: 0.42; pointer-events: none; justify-content: flex-end; }
  .hero-route svg { max-width: 420px; }
  .hero-content { max-width: 680px; }
  .hero-urgent { display: none; }
  .guide-grid { grid-template-columns: 1fr; gap: 3.5rem; }
  .portrait-frame { margin: 0 auto; }
  .story-grid { grid-template-columns: 1fr; gap: 2rem; }
  .team-intro-grid { grid-template-columns: 1fr 1fr; }
  .team-card--lead { grid-column: 1 / -1; display: grid; grid-template-columns: 0.8fr 1.2fr; align-items: stretch; }
  .team-card--lead .team-photo { aspect-ratio: auto; height: 100%; }
  .team-support { grid-template-columns: 1fr; }
  .page-hero-split { grid-template-columns: 1fr; gap: 2rem; }
  .page-hero-portrait img { margin: 0 auto; max-width: 320px; }
  .office-grid { grid-template-columns: 1fr; }
  .office-card:nth-child(2) { margin-top: 0; }
  .route-main { grid-template-columns: 1fr; }
  .route-arrow { grid-column: 1; grid-row: auto; align-self: start; margin-top: 0.4rem; }
  .profile-steps { grid-template-columns: 1fr 1fr; }
  .paths-grid { grid-template-columns: 1fr; }
  .principles { grid-template-columns: 1fr; gap: 2.6rem; }
  .principles::before { left: 20px; right: auto; top: 0; bottom: 0; height: auto; border-top: 0; border-left: 1px dashed var(--sage); }
  .principle { padding-left: 4.2rem; padding-top: 0; }
  .principle-marker { top: 0; }
  .proceedings-grid { grid-template-columns: 1fr 1fr; }
  .proceedings-line { display: none; }
  .next-steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .urgent-band-grid { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .faq-two-col { grid-template-columns: 1fr; }
  .notes-grid { flex-wrap: wrap; }
  .note { flex: 1 1 45%; }
  .note:nth-child(3) { flex-basis: 100%; }
  .step-block-grid { grid-template-columns: 100px 1fr; }
}

/* ---------- Responsive: mobile ---------- */
@media (max-width: 767px) {
  :root { --header-h: 64px; }
  body { font-size: 16px; }
  .container, .container-narrow, .container-mid { width: calc(100% - 32px); }
  .brand-logo { width: 44px; height: 44px; }
  .header-cta { display: none; }
  .site-header.scrolled { height: 62px; }
  .trail-signs .signs-inner { grid-template-columns: 1fr 1fr; gap: 0.9rem 1rem; padding: 1.1rem 0; }
  .trail-sign { font-size: 0.62rem; letter-spacing: 0.07em; }
  .signs-urgent { grid-column: 1 / -1; max-width: none; text-align: left; border-bottom: 0; border-top: 1px solid rgba(143, 163, 155, 0.25); padding-top: 0.75rem; }
  .hero-grid { padding-top: calc(var(--header-h) + 2rem); padding-bottom: 4.5rem; }
  .hero-home h1 { font-size: clamp(2.55rem, 12vw, 3.6rem); }
  .hero-tagline { font-size: 1.08rem; }
  .hero-copy { font-size: 0.94rem; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { width: 100%; }
  .hero-scroll { display: none; }
  .hero-route { opacity: 0.3; }
  .section { padding: 4rem 0; }
  .elevation-grid { grid-template-columns: 1fr 1fr; }
  .stat-block { padding: 1.4rem 1rem; border-right: 1px solid var(--sage-line); }
  .stat-block:nth-child(2n) { border-right: 0; }
  .stat-block:nth-child(-n+2) { border-bottom: 1px solid var(--sage-line); }
  .stat-scale { display: none; }
  .stat-label { font-size: 0.62rem; }
  .route-list::before { left: 20px; }
  .route-row { padding: 1.4rem 1rem 1.4rem 3.9rem; }
  .route-row:nth-child(even) { margin-left: 0; }
  .route-marker { left: 2px; width: 34px; height: 34px; font-size: 0.62rem; }
  .route-row::after { display: none; }
  .profile-steps { display: none; }
  .profile-svg { display: none; }
  .vertical-stepper { display: grid; margin-top: 1rem; }
  .vertical-stepper .v-step { position: relative; padding: 0 0 1.7rem 3.2rem; border-left: 1px dashed var(--sage); margin-left: 16px; }
  .vertical-stepper .v-step:last-child { border-left-color: transparent; padding-bottom: 0; }
  .vertical-stepper .v-num { position: absolute; left: -16px; top: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--amber); color: var(--ink); display: flex; align-items: center; justify-content: center; font-size: 0.66rem; font-weight: 600; }
  .vertical-stepper h3 { font-size: 1.02rem; margin-bottom: 0.35rem; }
  .vertical-stepper p { font-size: 0.86rem; color: rgba(28, 36, 34, 0.68); }
  .notes-grid { flex-direction: column; gap: 1.2rem; }
  .note, .note:nth-child(2), .note:nth-child(3) { transform: none; margin-top: 0; width: 100%; }
  .languages-grid { grid-template-columns: 1fr; gap: 1.2rem; }
  .fresh-cup .hero-ctas { width: 100%; }
  .step-row { grid-template-columns: 64px 1fr; gap: 1rem; }
  .step-numeral { font-size: 2.4rem; }
  .proceedings-grid { grid-template-columns: 1fr; gap: 0; }
  .proceeding { padding: 0 0 1.6rem 3.2rem; border-left: 1px dashed var(--sage); margin-left: 16px; }
  .proceeding:last-child { border-left-color: transparent; padding-bottom: 0; }
  .proceeding-marker { top: 0; left: -18px; }
  .route-profile--defense { border-left-width: 3px; }
  .profile-grid, .route-profile--reverse .profile-grid { grid-template-columns: 1fr; }
  .route-profile--reverse .profile-media { order: 0; }
  .profile-media img { aspect-ratio: 16 / 10; }
  .step-block-grid { grid-template-columns: 1fr; gap: 0.8rem; }
  .step-big-num { font-size: 3.2rem; }
  .checklist-card { transform: none; }
  .form-grid { grid-template-columns: 1fr; }
  .form-submit .btn { width: 100%; min-width: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-brand p { max-width: none; }
  .footer-legal { text-align: left; }
  .footer-bottom { margin-top: 1.8rem; }
  .team-intro-grid { grid-template-columns: 1fr; }
  .team-card--lead { display: block; }
  .team-card--lead .team-photo { aspect-ratio: 4 / 3; }
  .page-hero { min-height: 56vh; padding-top: calc(var(--header-h) + 2.2rem); }
  .page-hero--tall { min-height: 64vh; }
  .gallery-item { flex-basis: 82vw; }
  .gallery-item img { height: 280px; }
  .profile-steps { grid-template-columns: 1fr; }
  .urgent-phone-row { flex-direction: column; align-items: flex-start; gap: 0.15rem; }
  .urgent-phone-row strong { font-size: 1.75rem; }
  .phone-row { flex-direction: column; align-items: flex-start; gap: 0.15rem; }
  .phone-row strong { font-size: 1.5rem; }
  .urgent-band .btn { width: 100%; }
  .office-links { flex-direction: column; align-items: flex-start; }
  .office-phone { font-size: 1.3rem; }
  .faq-answer-inner { padding-right: 0; }
  .next-steps { gap: 0.9rem; }
  .contact-map { aspect-ratio: 4 / 3; }
  .pullquote { padding-left: 1.2rem; }
  .story-copy p:first-child::first-letter { font-size: 3.5rem; }
  .languages-grid .globe { display: none; }
  .footer-cup { align-items: center; }
  .footer-cta { min-height: 54px; }
  .compass-wrap { display: flex; justify-content: flex-start; }
  .mobile-menu-inner { width: calc(100% - 32px); }
}

@media (min-width: 1024px) {
  .mobile-menu { display: none; }
}

/* ---------- Print ---------- */
@media print {
  body.print-checklist * { visibility: hidden; }
  body.print-checklist #packing_checklist, body.print-checklist #packing_checklist * { visibility: visible; }
  body.print-checklist #packing_checklist { position: absolute; left: 0; top: 0; width: 100%; padding: 0; background: #fff; }
  body.print-checklist .checklist-card { transform: none; box-shadow: none; border: 0; max-width: none; }
  body.print-checklist .print-hide { display: none !important; }
  body.print-checklist .check-item input:checked + .check-box { background: #fff; }
  body.print-checklist .check-item input:checked ~ .check-text { text-decoration: line-through; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .animate-on-scroll, .pin-drop, .clip-wipe, .word-mask .word > span, .line-slide .line > span, .letter-fade span.letter {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
  }
  .route-path-draw { stroke-dashoffset: 0 !important; }
  .summit-route path { stroke-dashoffset: 0 !important; }
  .route-flag { transform: scale(1) !important; }
  .ticker-track { animation: none !important; width: 100%; }
  .ticker-segment { flex-wrap: wrap; row-gap: 0.35rem; padding: 0.35rem 0.9rem 0.35rem 0; }
  .hero-photo { transform: none !important; }
  .hero-topo { animation: none !important; }
  .note { transform: none !important; }
  .trail-flag { opacity: 1 !important; transform: none !important; }
  .urgent-phone-row { opacity: 1; transform: none; animation: none; }
  .profile-svg .profile-line { stroke-dashoffset: 0 !important; }
  .timeline-progress { transform: scaleY(1) !important; }
  .proceedings-line-fill { transform: scaleX(1) !important; }
  .checklist-card { transform: none; }
  .coffee-trigger .cup-liquid { transform: translateY(0) !important; }
  .coffee-toast:empty::after { content: "Ask for it when you visit."; }
}
