/* ==========================================================================
   DF226 — site styles
   Palette sampled from the approved logo: charcoal field, silver "DF",
   electric-blue "226". Fonts are self-hosted (SIL Open Font License).
   ========================================================================== */

@font-face { font-family: "Saira"; font-style: normal; font-weight: 500 800; font-display: swap; src: url(../fonts/saira.woff2) format("woff2"); }
@font-face { font-family: "Saira"; font-style: italic; font-weight: 600 800; font-display: swap; src: url(../fonts/saira-italic.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400 600; font-display: swap; src: url(../fonts/plex-sans.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/plex-mono-400.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/plex-mono-500.woff2) format("woff2"); }

:root {
  --bg:          #05090f;
  --bg-band:     #070d15;
  --surface:     #0b131e;
  --surface-2:   #0f1926;
  --line:        #172334;
  --line-2:      #22324a;
  --text:        #e8edf3;
  --text-2:      #a2afc0;
  --text-3:      #75849a;
  --silver:      #c3ccd7;
  --blue:        #2aaeff;
  --blue-2:      #0b6dff;
  --blue-wash:   rgba(42, 174, 255, .08);
  --blue-line:   rgba(42, 174, 255, .32);

  --f-display: "Saira", "Arial Narrow", Arial, sans-serif;
  --f-body:    "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono:    "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --r: 10px;
  --nav-h: 64px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.7 var(--f-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 700; }
p, ul, ol, dl, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
[hidden] { display: none !important; }
::selection { background: var(--blue-2); color: #fff; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.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; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  padding: 10px 16px; background: var(--blue-2); color: #fff; border-radius: 6px; font-weight: 600;
}
.skip:focus { top: 12px; }

/* Shared type */
h2 {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 800;
  font-size: clamp(2rem, 4.2vw, 3.25rem);
  line-height: 1.04;
  letter-spacing: -.005em;
  text-wrap: balance;
}
h3 { font-family: var(--f-display); font-weight: 700; font-size: 1.25rem; line-height: 1.2; letter-spacing: .005em; }
em { font-style: italic; }

/* Wordmark — text rendition of the logo lettering */
.wordmark {
  display: inline-flex;
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 800;
  font-size: 1.5rem;
  line-height: 1;
  letter-spacing: .01em;
  padding-right: .1em;
}
.wordmark__df  { color: var(--text); }
.wordmark__num { color: var(--blue); }
.wordmark--sm  { font-size: 1.35rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 46px; padding: 0 1.35em;
  border-radius: 6px;
  font: 500 .95rem/1 var(--f-body);
  letter-spacing: .01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.btn span { transition: transform .2s var(--ease); }
.btn--primary { background: var(--blue-2); color: #fff; }
.btn--primary:hover { background: #2a83ff; }
.btn--primary:hover span { transform: translateX(3px); }
.btn--line { border-color: var(--line-2); color: var(--text); background: transparent; }
.btn--line:hover { border-color: var(--silver); }
.btn:active { transform: translateY(1px); }

/* Mono kicker / labels */
.kicker {
  display: inline-flex; align-items: center; gap: .75em;
  font: 500 .78rem/1 var(--f-mono);
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--text-2);
}
.kicker__dot { width: 7px; height: 7px; background: var(--blue); }

/* ==========================================================================
   NAV
   ========================================================================== */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--nav-h);
  border-bottom: 1px solid transparent;
  transition: background-color .3s var(--ease), border-color .3s var(--ease);
}
.nav.is-solid {
  background: rgba(5, 9, 15, .86);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom-color: var(--line);
}
.nav__inner {
  height: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
}
.nav__menu { display: flex; align-items: center; gap: 4px; }
.nav__menu a {
  position: relative;
  padding: 8px 14px;
  font-size: .92rem; font-weight: 500; color: var(--text-2);
  border-radius: 6px;
  transition: color .2s var(--ease);
}
.nav__menu a:hover, .nav__menu a[aria-current="true"] { color: var(--text); }
.nav__menu a[aria-current="true"]::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px; background: var(--blue);
}
.nav__toggle { display: none; }
/* brand: text wordmark at the top, logo once the hero logo is out of view */
.nav__brand { position: relative; align-items: center; height: 40px; }
.nav__brand-text, .nav__logo { transition: opacity .35s var(--ease), transform .35s var(--ease); }
.nav__brand-text { display: inline-flex; }
.nav__logo {
  position: absolute; left: -4px; top: 50%; height: 44px; width: auto; max-width: none;
  opacity: 0; transform: translateY(-50%) scale(.85); transform-origin: left center; pointer-events: none;
}
.nav.has-logo .nav__brand-text { opacity: 0; transform: translateY(-6px); }
.nav.has-logo .nav__logo { opacity: 1; transform: translateY(-50%); }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  min-height: max(680px, 100svh);
  display: flex; flex-direction: column;
  padding-top: calc(var(--nav-h) + clamp(32px, 7vh, 88px));
  overflow: hidden;
  isolation: isolate;
}
/* faint survey grid behind everything */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background-image:
    linear-gradient(to right, rgba(195, 204, 215, .035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(195, 204, 215, .035) 1px, transparent 1px);
  background-size: 80px 80px;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 45%, transparent 85%);
          mask-image: linear-gradient(to bottom, #000 0%, #000 45%, transparent 85%);
}
.hero__grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  column-gap: clamp(32px, 5vw, 80px); align-items: center;
}
.hero__copy { grid-column: 1; grid-row: 1; }
.hero__title {
  margin: 24px 0 26px;
  font-family: var(--f-display);
  font-style: italic; font-weight: 800;
  font-size: clamp(2.6rem, 4.3vw, 4.15rem);
  line-height: .96;
  letter-spacing: -.018em;
}
.hero__title .line { display: block; white-space: nowrap; }
/* three steps of brightness: white → silver → electric blue */
.hero__title .line:nth-child(2) { color: var(--silver); }
.hero__title .line--accent { color: var(--blue); }
.hero__lead { max-width: 29rem; font-size: 1.125rem; line-height: 1.65; color: #b6c1cf; text-wrap: pretty; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.hero__mark { position: relative; grid-column: 2; grid-row: 1; justify-self: end; width: 100%; max-width: 660px; }
.hero__mark picture { position: relative; z-index: 1; display: block; }
.hero__mark img { width: 100%; filter: drop-shadow(0 22px 40px rgba(0, 0, 0, .55)); }
/* survey rings behind the logo */
.hero__rings {
  position: absolute; z-index: 0; left: 50%; top: 50%; width: 118%; aspect-ratio: 1;
  transform: translate(-50%, -50%);
  fill: none; stroke: rgba(195, 204, 215, .07); stroke-width: 1;
  pointer-events: none;
}
.hero__ring--dash { stroke-dasharray: 2 7; stroke: rgba(195, 204, 215, .12); }
.hero__ticks { stroke: rgba(195, 204, 215, .2); }
.hero__sweep {
  stroke: var(--blue); stroke-width: 1.5; stroke-linecap: round; opacity: .55;
  transform-box: view-box; transform-origin: 300px 300px;
  animation: sweep 48s linear infinite;
}
@keyframes sweep { to { transform: rotate(360deg); } }

@keyframes blink { 50% { opacity: .25; } }

/* Terrain */
.terrain {
  position: relative; z-index: 1;
  margin-top: auto;
  /* 25vw = the SVG's 1440:360 ratio; a fixed cap let it spill up over the hero copy on wide screens */
  height: max(190px, 25vw);
  margin-bottom: -1px;
}
.terrain svg { width: 100%; height: 100%; overflow: visible; }
.terrain g[data-depth] { transition: transform .6s var(--ease); will-change: transform; }
.ridge--far  { fill: #09111c; }
.ridge--mid  { fill: #070d16; }
.ridge--near { fill: var(--bg); }
.ridge-edge { fill: none; stroke: rgba(195, 204, 215, .28); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.ridge-edge--mid { stroke: rgba(195, 204, 215, .14); }
.tower path { stroke: var(--silver); stroke-width: 1.4; opacity: .7; }
.tower rect { fill: var(--blue-2); stroke: var(--blue); stroke-width: 1.2; }
.link { fill: none; stroke: rgba(195, 204, 215, .35); stroke-width: 1; stroke-dasharray: 2 6; }
.packet {
  fill: none; stroke: var(--blue); stroke-width: 2.2; stroke-linecap: round;
  stroke-dasharray: 5 100; stroke-dashoffset: 105;
  animation: packet 4.2s linear infinite;
}
/* negative delays: every packet is already in motion on load, still out of step */
.packet--b { animation-delay: -1.4s; animation-duration: 4.8s; }
.packet--c { animation-delay: -2.6s; animation-duration: 3.8s; }
.packet--d { animation-delay: -.7s; animation-duration: 4.4s; }
@keyframes packet { to { stroke-dashoffset: 0; } }
.waypoints text {
  font: 500 11px var(--f-mono); letter-spacing: .16em; text-transform: uppercase;
  fill: var(--text-3); text-anchor: middle;
}
.waypoints .wp-n { fill: var(--blue); }

/* Film grain over the whole page — static, very faint */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .7 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero__meta {
  position: relative; z-index: 2;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding-top: 14px; padding-bottom: 22px;
  font: 400 .72rem/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-3);
}
.scroll-cue { display: inline-block; margin-left: 6px; animation: nudge 2s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateY(3px); } }

/* Hero entrance */
.js .hero__copy > *, .js .hero__mark { opacity: 0; transform: translateY(16px); animation: rise .9s var(--ease) forwards; }

.js .hero__copy > :nth-child(2) { animation-delay: .08s; }
.js .hero__copy > :nth-child(3) { animation-delay: .16s; }
.js .hero__copy > :nth-child(4) { animation-delay: .24s; }
.js .hero__mark { animation-delay: .2s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ==========================================================================
   SECTIONS
   ========================================================================== */
.section { position: relative; padding: clamp(80px, 11vw, 140px) 0; }
.section--band { background: var(--bg-band); border-block: 1px solid var(--line); }

.section__head {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: clamp(28px, 4vw, 48px);
  font: 500 .76rem/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase;
}
.section__head::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.section__index { color: var(--blue); }
.section__label { color: var(--text-2); }

.section__intro { max-width: 46rem; margin-bottom: clamp(36px, 5vw, 56px); }
.section__intro p { margin-top: 18px; color: var(--text-2); font-size: 1.0625rem; }
.section__intro strong { color: var(--text); font-weight: 600; }

/* Scroll reveal (only when JS is present) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- 01 About ---------- */
.about { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.about__statement { font-size: clamp(1.9rem, 3.8vw, 3rem); line-height: 1.08; }
.about__statement em { color: var(--blue); }
.about__body p { color: var(--text-2); font-size: 1.0625rem; }
.about__body p + p { margin-top: 1.1em; }
.about__body .about__sign {
  margin-top: 1.6em; padding-top: 16px; border-top: 1px solid var(--line);
  font: 400 .8rem/1 var(--f-mono); letter-spacing: .08em; color: var(--text-3);
}
.about__sign span { font-family: var(--f-display); font-style: italic; font-weight: 700; font-size: 1.15rem; letter-spacing: 0; color: var(--text); }

/* Trail: the interests as a climb, from the first computer upward and onward */
.trail { position: relative; height: clamp(210px, 22vw, 270px); margin: clamp(64px, 8vw, 104px) 0 8px; }
.trail__line { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; fill: none; }
/* the ridge is shaded like the hero mountains */
.trail__fill { fill: url(#trail-shade); stroke: none; }
.trail__path {
  stroke: var(--blue); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round;
  stroke-dasharray: 100; stroke-dashoffset: 100;
  transition: stroke-dashoffset 2.2s var(--ease) .2s;
}
.trail__next { stroke: var(--blue); stroke-width: 2; stroke-dasharray: 4 7; opacity: 0; transition: opacity .6s 2.2s; }
.trail.is-in .trail__path, html:not(.js) .trail__path { stroke-dashoffset: 0; }
.trail.is-in .trail__next, html:not(.js) .trail__next { opacity: .7; }
.trail__stops li { position: absolute; left: var(--x); top: var(--y); width: 0; height: 0; }
.trail__stops li::before {
  content: ""; position: absolute; left: -6px; top: -6px; width: 12px; height: 12px;
  background: var(--bg); border: 2px solid var(--blue);
  transition: background-color .4s var(--ease) calc(var(--i) * .26s + .3s);
}
.trail__stops span {
  position: absolute; bottom: 14px; left: 0; transform: translateX(-50%);
  font: 500 .72rem/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; white-space: nowrap;
  color: var(--text-2);
  opacity: 0; transition: opacity .5s var(--ease) calc(var(--i) * .26s + .3s);
}
.trail.is-in .trail__stops li::before, html:not(.js) .trail__stops li::before { background: var(--blue-2); }
.trail.is-in .trail__stops span, html:not(.js) .trail__stops span { opacity: 1; }
.trail__stops li:first-child span { transform: none; left: -6px; }
/* valley points: label sits below the marker, clear of the line */
.trail__stops .trail__low span { bottom: auto; top: 16px; }
.trail__stops .trail__open::before { border-style: dashed; }
.trail.is-in .trail__stops .trail__open::before { background: var(--bg); }
.trail__stops .trail__open span { transform: translateX(-100%); left: 6px; bottom: auto; top: 18px; color: var(--blue); }

/* ---------- 02 Areas of interest: five equal photographs ---------- */
.areas { display: grid; grid-template-columns: repeat(5, 1fr); grid-template-rows: auto auto 1fr; column-gap: 22px; }
/* photo, title and description share rows across all five cards, so they line up */
.area { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 0; }
/* the band hands straight into the photo banner below, so it needs less tail */
#interests { padding-bottom: clamp(36px, 3.5vw, 52px); }
.areas__hint { display: none; }
.area__photo {
  position: relative; margin: 0 0 20px; aspect-ratio: 4 / 5; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--r); background: var(--surface);
  transition: border-color .4s var(--ease);
}
.area__photo img {
  width: 100%; height: 100%; object-fit: cover;
  filter: brightness(.78); transform: scale(1.01);
  transition: transform 1.1s var(--ease), filter .6s var(--ease);
}
/* floor shade keeps the badge legible */
.area__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(5, 9, 15, .8), transparent 50%); }
.area:hover .area__photo { border-color: var(--blue-line); }
.area:hover .area__photo img { transform: scale(1.06); filter: brightness(.95); }
.area__icon {
  position: absolute; z-index: 1; left: 14px; bottom: 14px;
  display: grid; place-items: center; width: 38px; height: 38px;
  border: 1px solid var(--blue-line); border-radius: 8px;
  background: rgba(5, 9, 15, .72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  color: var(--blue);
}
.area__icon svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.area__n { position: absolute; z-index: 1; right: 14px; bottom: 24px; font: 500 .72rem/1 var(--f-mono); letter-spacing: .12em; color: var(--silver); }
.area h3 { font-style: italic; font-size: 1.18rem; line-height: 1.2; margin-bottom: 8px; }
.area p { color: var(--text-2); font-size: .93rem; line-height: 1.6; }

/* ---------- 03 Beyond the desk ---------- */
.section--field { padding-top: 0; padding-bottom: clamp(32px, 3vw, 44px); overflow: hidden; }
/* the photo shows whole; the heading rises into the fade at its foot */
.vista { position: relative; isolation: isolate; }
.vista picture { position: relative; display: block; }
.vista__img { display: block; width: 100%; height: auto; aspect-ratio: 2000 / 760; max-height: 70vh; object-fit: cover; object-position: 50% 78%; }
.vista picture::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, var(--bg) 0%, transparent 7%, transparent 66%, var(--bg) 100%);
}
.vista__content { position: relative; margin-top: clamp(-84px, -5.5vw, -24px); }
.field-quote { font-size: clamp(2.2rem, 5.4vw, 4.4rem); line-height: 1.02; max-width: 20ch; text-shadow: 0 2px 24px rgba(5, 9, 15, .8); }
.field-quote span { display: block; }
.field-quote span:last-child { color: var(--blue); }

.field-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center;
  margin-top: clamp(28px, 4vw, 44px);
}
.field-lead { color: var(--text-2); font-size: 1.1rem; max-width: 34rem; }
.field-lead strong { display: block; margin-bottom: 12px; color: var(--text); font-family: var(--f-display); font-style: italic; font-weight: 700; font-size: 1.45rem; line-height: 1.2; }
.pursuits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pursuits li {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 6px;
  font-size: .92rem; font-weight: 500; color: var(--silver);
  transition: border-color .25s var(--ease), color .25s var(--ease);
}
.pursuits li:hover { border-color: var(--blue-line); color: var(--text); }
.pursuits svg {
  flex: none; width: 20px; height: 20px; color: var(--blue);
  fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: clamp(28px, 3vw, 40px) 0 36px; }
.footer__inner { display: grid; grid-template-columns: 1fr auto; gap: 32px 48px; align-items: center; }
.footer__brand { max-width: 30rem; }
.footer__tagline { font: 500 .76rem/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--blue); }
.footer__nav { display: flex; gap: 10px 26px; flex-wrap: wrap; }
.footer__nav a { font-size: .92rem; color: var(--text-2); }
.footer__nav a:hover, .footer__nav a[aria-current="page"] { color: var(--text); }
.footer__legal { grid-column: 1 / -1; padding-top: 22px; border-top: 1px solid var(--line); font-size: .82rem; color: var(--text-3); }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1080px) {
  /* areas become a swipeable strip rather than an uneven grid */
  .areas {
    display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
    margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 6px; scroll-padding: 0 var(--gutter);
    scrollbar-width: none;
  }
  .areas::-webkit-scrollbar { display: none; }
  .area { display: block; flex: 0 0 min(36%, 300px); scroll-snap-align: start; }
  /* fade the cut-off edge and say it scrolls; the fade clears once the end is reached */
  .areas { -webkit-mask-image: linear-gradient(to right, #000 82%, transparent); mask-image: linear-gradient(to right, #000 82%, transparent); }
  .areas.is-end { -webkit-mask-image: none; mask-image: none; }
  .areas__hint {
    display: flex; align-items: center; gap: 8px; margin-top: 16px;
    font: 500 .72rem/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--text-3);
  }
  .areas__hint span { color: var(--blue); font-size: .95rem; animation: nudge-x 1.8s ease-in-out infinite; }
  @keyframes nudge-x { 50% { transform: translateX(5px); } }
  .pursuits { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .hero { min-height: auto; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__copy, .hero__mark { grid-column: 1; grid-row: auto; }
  .hero__mark { order: -1; justify-self: center; max-width: 460px; margin: 8px 0 36px; }
  .hero__rings { width: 104%; }
  .hero__title { font-size: clamp(2.5rem, 8vw, 3.6rem); }
  .hero__title .line { white-space: normal; }
  .about, .field-grid { grid-template-columns: 1fr; }
  .waypoints { display: none; }
}

@media (max-width: 720px) {
  :root { --nav-h: 60px; }
  .nav { background: rgba(5, 9, 15, .92); border-bottom-color: var(--line); }
  .nav__toggle {
    display: grid; align-content: center; gap: 6px;
    width: 44px; height: 44px; padding: 0 11px;
    background: none; border: 1px solid var(--line-2); border-radius: 8px; cursor: pointer;
  }
  .nav__bar { display: block; height: 2px; background: var(--text); border-radius: 2px; transition: transform .25s var(--ease); }
  .nav__toggle[aria-expanded="true"] .nav__bar:first-child { transform: translateY(4px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] .nav__bar:last-child  { transform: translateY(-4px) rotate(-45deg); }
  .nav__menu {
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 20px;
    background: rgba(5, 9, 15, .98);
    border-bottom: 1px solid var(--line);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s .2s;
  }
  .nav__menu.is-open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .nav__menu a { padding: 14px 4px; font-size: 1.05rem; border-radius: 0; border-bottom: 1px solid var(--line); }
  .nav__menu a[aria-current="true"]::after { left: auto; right: 4px; top: 50%; bottom: auto; width: 6px; height: 6px; transform: translateY(-50%); }
  /* no-JS: keep the menu visible as a simple row */
  html:not(.js) .nav__toggle { display: none; }
  html:not(.js) .nav__menu { position: static; visibility: visible; opacity: 1; transform: none; flex-direction: row; padding: 0; background: none; border: 0; }

  /* compact hero on phones: smaller mark, no meta row, shallower terrain */
  .hero { padding-top: calc(var(--nav-h) + 20px); }
  .hero__mark { max-width: 340px; margin: 0 auto 4px; }
  .hero__title { margin: 18px 0 18px; font-size: clamp(2.3rem, 10vw, 3.2rem); }
  .hero__lead { font-size: 1.04rem; }
  .hero .kicker { font-size: .7rem; letter-spacing: .1em; white-space: nowrap; }
  .hero__actions { margin-top: 26px; }
  .terrain { height: 150px; margin-top: 28px; }
  .hero__meta { display: none; }

  .area { flex-basis: 74%; }
  .vista__img { aspect-ratio: 900 / 560; max-height: none; }
  .vista__content { margin-top: 8px; }
  .pursuits { grid-template-columns: repeat(2, 1fr); }

  /* phones: a switchback trail reading top to bottom, stops alternating either side */
  .trail { height: auto; margin-top: 56px; }
  .trail__line { display: none; }
  .trail__stops { position: relative; display: flex; flex-direction: column; gap: 6px; counter-reset: stop; }
  .trail__stops::before {
    content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px;
    background: linear-gradient(to bottom, var(--blue) 88%, transparent);
  }
  .trail__stops li, .trail__stops li:first-child, .trail__stops .trail__low {
    position: relative; left: 0; top: 0; width: 50%; height: auto; padding: 14px 22px 14px 0; text-align: right;
    counter-increment: stop;
  }
  .trail__stops li:nth-child(even) { align-self: flex-end; padding: 14px 0 14px 22px; text-align: left; }
  .trail__stops li::before { left: auto; right: -7px; top: 50%; margin-top: -7px; width: 14px; height: 14px; }
  .trail__stops li:nth-child(even)::before { right: auto; left: -7px; }
  .trail__stops span, .trail__stops li:first-child span, .trail__stops .trail__low span, .trail__stops .trail__open span {
    position: static; transform: none; display: block; font-size: .78rem; color: var(--silver);
  }
  .trail__stops span::before { content: "0" counter(stop); display: block; margin-bottom: 5px; font-size: .64rem; color: var(--blue); }
  .trail__stops .trail__open span { color: var(--blue); }
  .trail__stops .trail__open span::before { content: "\2193"; }

  .footer__inner { grid-template-columns: 1fr; }
  .btn { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal, .js .hero__copy > *, .js .hero__mark { opacity: 1; transform: none; }
  .packet { display: none; }
  .trail__path { stroke-dashoffset: 0; }
  .trail__next, .trail__stops span { opacity: 1; }
}

/* ---------- Privacy / legal pages ---------- */
.legal { max-width: 46rem; padding-top: calc(var(--nav-h) + clamp(48px, 7vw, 88px)); padding-bottom: clamp(56px, 8vw, 96px); }
.legal h1 { font-family: var(--f-display); font-style: italic; font-weight: 800; font-size: clamp(2.2rem, 5vw, 3.2rem); line-height: 1.05; margin-bottom: 18px; }
.legal h2 { font-size: 1.25rem; font-style: italic; margin: 2.2rem 0 .6rem; }
.legal p { color: var(--text-2); }
.legal a:not(.btn) { color: var(--blue); }
.legal a:not(.btn):hover { color: var(--text); }
.legal__lead { font-size: 1.15rem; color: var(--text) !important; }
.legal__back { margin-top: 2.6rem; }
