/* Garrett Fehrman — personal site. One stylesheet for every page.
   Design "v2 Summit" (Oct 2026), after the Mosa-AI template: black canvas, desaturated photo heroes, two-tone
   headings (second half in <span>), square-bullet mono labels, thin-bordered cards. The previous design is in
   ../archived-designs/v1-alpenglow. */

:root {
  --bg: #050505;
  --surface: #0E0F10;
  --surface-2: #15171A;
  --ink: #F4F5F6;
  --muted: #8A9096;
  --dim: #A9AEB3;
  --line: #1E2022;
  --line-2: #2E3236;
  --accent: #F4F5F6;        /* primary buttons are white on black */
  --accent-ink: #050505;
  --accent-soft: rgba(255, 255, 255, .06);
  --shadow: 0 18px 40px -18px rgba(0, 0, 0, .8);
  --f-display: "Geist", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-body: var(--f-display);
  --f-mono: "Geist Mono", ui-monospace, Menlo, Consolas, monospace;
  --wrap: 74rem;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 1rem/1.65 var(--f-body); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
a { color: var(--ink); text-underline-offset: .2em; text-decoration-color: var(--line-2); }
a:hover { text-decoration-color: var(--ink); }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 3px; border-radius: 3px; }

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

/* ---------- header ---------- */
.site-head {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10;
  background: rgba(5, 5, 5, .72); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-head.over { position: absolute; inset: 0 0 auto; background: none; border: 0; backdrop-filter: none; -webkit-backdrop-filter: none; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.25rem; }
.brand { display: flex; align-items: center; gap: .6rem; color: var(--ink); text-decoration: none; font: 500 .78rem/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; }
.mark { width: .85rem; height: .85rem; border-radius: 50%; background: var(--ink); font-size: 0; }
.nav { display: flex; gap: .35rem; flex-wrap: wrap; }
.nav a {
  color: var(--dim); text-decoration: none; font-size: .8rem; padding: .38rem .72rem;
  border: 1px solid rgba(255, 255, 255, .14); border-radius: .35rem; background: rgba(0, 0, 0, .25);
}
.nav a:hover { color: var(--ink); border-color: rgba(255, 255, 255, .35); }
.nav a[aria-current="page"] { color: var(--ink); border-color: rgba(255, 255, 255, .45); }
@media (max-width: 48rem) { .wide-only { display: none; } }
@media (max-width: 30rem) {
  .brand-name { display: none; }
  .nav { gap: .25rem; }
  .nav a { padding: .35rem .5rem; font-size: .76rem; }
}

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--f-display); font-weight: 500; line-height: 1.08; letter-spacing: -.03em; margin: 0; }
h1 { font-size: clamp(2.6rem, 6.5vw, 5rem); }
h2 { font-size: clamp(1.7rem, 3.8vw, 2.6rem); }
h3 { font-size: 1.15rem; letter-spacing: -.01em; line-height: 1.3; }
h1 span, h2 span, h1 em { color: var(--muted); font-style: normal; }
p { margin: 0 0 1rem; }
.eyebrow {
  display: flex; align-items: center; gap: .5rem; margin: 0 0 1.1rem;
  font: 400 .72rem/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--dim);
}
.eyebrow::before { content: ""; width: .42rem; height: .42rem; background: var(--ink); flex: none; }
.lede { font-size: clamp(1rem, 1.6vw, 1.12rem); color: var(--dim); max-width: 36rem; }
.muted { color: var(--muted); }

/* ---------- home hero: full-screen photo ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: var(--hero-wide, none) var(--hero-pos, center 60%) / cover no-repeat;
  filter: grayscale(.7) contrast(1.08) brightness(.62);
}
@media (max-aspect-ratio: 4/5) { .hero::before { background-image: var(--hero-tall, var(--hero-wide)); background-position: var(--hero-tall-pos, 72% 55%); } }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,5,5,.55), transparent 28%, transparent 50%, var(--bg)); }
.hero .wrap { position: relative; z-index: 1; width: 100%; padding-bottom: 2rem; }
.hero h1 { max-width: 15ch; margin-bottom: 1.1rem; }
.hero .lede { margin-bottom: 1.6rem; }
.facts {
  display: flex; justify-content: space-between; gap: .8rem 2rem; flex-wrap: wrap; margin-top: 3rem; padding-top: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, .12); font: 400 .76rem/1.3 var(--f-mono); color: var(--dim); letter-spacing: .03em;
}
.facts b { color: var(--ink); font-weight: 500; }

/* ---------- inner page hero ---------- */
.page-hero { position: relative; padding-block: clamp(4rem, 11vw, 7rem) 2.5rem; overflow: hidden; }
.page-hero.photo::before {
  content: ""; position: absolute; inset: 0; background: var(--hero) var(--hero-pos, center) / cover no-repeat;
  filter: grayscale(.75) brightness(.4);
}
.page-hero.photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, var(--bg)); }
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(2.2rem, 5.5vw, 4rem); margin-bottom: 1.1rem; max-width: 20ch; }

/* ---------- buttons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.8rem; }
.btn {
  display: inline-flex; align-items: center; gap: .5rem; padding: .78rem 1.1rem; border-radius: .3rem;
  font: 500 .72rem/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; text-decoration: none;
  border: 1px solid rgba(255, 255, 255, .3); color: var(--ink); background: transparent; transition: background .15s, border-color .15s;
}
.btn:hover { border-color: var(--ink); background: rgba(255, 255, 255, .06); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { background: #fff; }
.btn svg { width: 1.05em; height: 1.05em; flex: none; }

/* ---------- sections ---------- */
section { padding-block: clamp(3rem, 7vw, 5rem); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }
.section-head h2 { max-width: 24ch; }

.stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: .6rem; overflow: hidden;
}
.stat { background: var(--surface); padding: 1.5rem 1.4rem; }
.stat b { display: block; font: 500 clamp(1.8rem, 3.6vw, 2.4rem)/1 var(--f-display); letter-spacing: -.03em; margin-bottom: .6rem; }
.stat span { color: var(--muted); font-size: .9rem; line-height: 1.45; display: block; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1rem; }
.card {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: .6rem;
  color: var(--ink); text-decoration: none; transition: transform .2s ease, border-color .2s;
}
a.card:hover { transform: translateY(-2px); border-color: var(--line-2); }
.card > img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; filter: grayscale(.6) brightness(.8); transition: filter .3s; }
a.card:hover > img { filter: none; }
.card-body { display: flex; flex-direction: column; gap: .4rem; padding: 1.1rem 1.2rem 1.3rem; flex: 1; }
.card p { color: var(--muted); margin: 0; font-size: .93rem; }
.card .go { margin-top: auto; padding-top: .6rem; font: 400 .72rem/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.card .tag { font: 400 .7rem/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

/* home: hobby tabs */
.tabs { display: flex; gap: 1.6rem; border-bottom: 1px solid var(--line); margin-bottom: 1.6rem; flex-wrap: wrap; }
.tabs button {
  font: 400 .75rem/1 var(--f-mono); letter-spacing: .06em; color: var(--muted); background: none; border: 0;
  padding: .9rem 0; cursor: pointer; border-bottom: 1px solid transparent; margin-bottom: -1px;
}
.tabs button:hover { color: var(--dim); }
.tabs button[aria-selected="true"] { color: var(--ink); border-color: var(--ink); }
.tab-panel { display: grid; grid-template-columns: 1.3fr 1fr; gap: 2.5rem; align-items: center; }
@media (max-width: 48rem) { .tab-panel { grid-template-columns: 1fr; gap: 1.5rem; } }
.tab-panel img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: .6rem; border: 1px solid var(--line); display: block; }
.tab-panel h3 { font-size: 1.4rem; margin: 0 0 .6rem; letter-spacing: -.02em; }
.tab-panel p { color: var(--dim); }

/* ---------- about / professional ---------- */
.two-col { display: grid; grid-template-columns: 14rem 1fr; gap: 2rem 3rem; }
.two-col > h2 { font-size: 1.3rem; position: sticky; top: 5.5rem; align-self: start; }
@media (max-width: 48rem) {
  .two-col { grid-template-columns: 1fr; gap: 1.25rem; }
  .two-col > h2 { position: static; }
}
.divider { border: 0; border-top: 1px solid var(--line); margin: 0; }

.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 2rem; }
.timeline li { position: relative; padding-left: 1.5rem; border-left: 1px solid var(--line-2); }
.timeline li::before { content: ""; position: absolute; left: -4px; top: .45rem; width: 7px; height: 7px; background: var(--ink); }
.timeline .when { font: 400 .76rem/1.4 var(--f-mono); color: var(--muted); letter-spacing: .04em; }
.timeline h3 { margin: .3rem 0 .15rem; font-size: 1.2rem; }
.timeline .org { color: var(--muted); margin-bottom: .75rem; font-size: .95rem; }
.timeline ul { margin: 0; padding-left: 1.1rem; color: var(--dim); }
.timeline ul li { border: 0; padding: 0; margin-bottom: .45rem; }
.timeline ul li::before { display: none; }

.chips { display: flex; flex-wrap: wrap; gap: .45rem; list-style: none; margin: 0 0 1.5rem; padding: 0; }
.chips li { padding: .35rem .7rem; border-radius: .35rem; background: var(--surface); border: 1px solid var(--line); font-size: .88rem; color: var(--dim); }
.skill-group h3 { font: 400 .72rem/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: .75rem; }

/* ---------- who am I: activities + photos ---------- */
.quick-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 1px; list-style: none; padding: 0; margin: 0;
  background: var(--line); border: 1px solid var(--line); border-radius: .6rem; overflow: hidden; }
.quick-facts li { display: flex; gap: .8rem; align-items: flex-start; background: var(--surface); padding: 1.1rem 1.2rem; }
.quick-facts .emoji { font-size: 1.3rem; line-height: 1; filter: grayscale(.4); }
.quick-facts b { display: block; font-weight: 500; }
.quick-facts span { color: var(--muted); font-size: .9rem; }

.activity { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 2rem 3rem; align-items: center; }
.activity:nth-of-type(even) .activity-text { order: 2; }
@media (max-width: 48rem) {
  .activity { grid-template-columns: 1fr; }
  .activity:nth-of-type(even) .activity-text { order: 0; }
}
.activity h2 { margin-bottom: .75rem; font-size: clamp(1.6rem, 3.2vw, 2.2rem); }
.activity p { color: var(--dim); }
.activity-list { display: grid; gap: clamp(3.5rem, 9vw, 6rem); }

.photos { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: .5rem; aspect-ratio: 3 / 2; }
.photos .ph:first-child { grid-row: span 2; }
.photos.single { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.photos.portrait { aspect-ratio: 3 / 4; width: min(100%, 24rem); justify-self: center; }
.photos.five { grid-template-columns: 2fr 1fr 1fr; aspect-ratio: 16 / 10; }
.ph { position: relative; margin: 0; border-radius: .5rem; overflow: hidden; background: var(--surface); border: 1px solid var(--line); min-height: 0; }
.ph img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.ph:hover img { transform: scale(1.03); }
.ph figcaption {
  position: absolute; left: .5rem; bottom: .5rem; width: fit-content; max-width: calc(100% - 1rem);
  padding: .3rem .55rem; border-radius: .3rem; font: 400 .7rem/1.2 var(--f-mono); letter-spacing: .05em; color: #fff;
  background: rgba(0, 0, 0, .6); backdrop-filter: blur(4px);
}
/* shown until the photo file exists */
.ph.empty { display: grid; place-items: center; border-style: dashed; border-color: var(--line-2); }
.ph.empty::before { content: "Photo coming soon"; font: 400 .7rem/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.ph.empty figcaption { display: none; }

/* ---------- who am I: travel map ---------- */
:root { --pin: #FF5A67; --pin-np: #4CC27A; --pin-ski: #6CB2F5; --pin-none: #5C636B; --land: #1B1E21; --land-line: #33383E; --sea: #0A0B0C; }
.travel .activity-text { max-width: 40rem; margin-bottom: 1.5rem; }
.travel h2 { margin-bottom: .75rem; font-size: clamp(1.6rem, 3.2vw, 2.2rem); }
.travel .activity-text p { color: var(--dim); }
.atlas { display: grid; grid-template-columns: minmax(0, 1fr) 21rem; gap: 1rem; align-items: start; }
@media (max-width: 56rem) { .atlas { grid-template-columns: 1fr; } }
.mapbox { position: relative; background: var(--sea); border: 1px solid var(--line); border-radius: .6rem; overflow: hidden; }
.mapbox svg { display: block; width: 100%; height: auto; }
.land { fill: var(--land); stroke: var(--land-line); stroke-width: .5; vector-effect: non-scaling-stroke; }
.border { fill: none; stroke: var(--land-line); stroke-width: .8; vector-effect: non-scaling-stroke; pointer-events: none; }
.border.state { stroke-dasharray: 3 3; opacity: .8; }
/* pin color by type; places without photos follow the style set in travel-places.js (TRAVEL_PIN_STYLE) */
.pt { --c: var(--pin); }
.pt.t-np, .key.t-np { --c: var(--pin-np); }
.pt.t-ski, .key.t-ski { --c: var(--pin-ski); }
.dot { fill: var(--c); stroke: var(--sea); stroke-width: 1.5; cursor: pointer; transition: transform .15s; outline: none; transform-box: fill-box; transform-origin: center; }
.dot:hover, .dot:focus-visible, .pt.sel .dot { transform: scale(1.35); }
.halo { fill: none; stroke: var(--c); stroke-width: 2; opacity: 0; pointer-events: none; }
.pt.sel .halo { animation: pulse 1.6s ease-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes pulse { from { transform: scale(1); opacity: .6; } to { transform: scale(2.4); opacity: 0; } }
.pins-gray .pt.nophoto .dot { fill: var(--pin-none); stroke: var(--c); }
.pins-gray .pt.nophoto.t-city .dot { stroke: var(--sea); }
.pins-hollow .pt.nophoto .dot { fill: var(--sea); stroke: var(--c); }
.pins-small .pt.nophoto .dot { opacity: .75; }
.map-tip {
  position: absolute; z-index: 2; transform: translate(-50%, -100%); pointer-events: none; white-space: nowrap;
  padding: .35rem .6rem; border-radius: .35rem; background: var(--ink); color: var(--bg); font-size: .82rem; line-height: 1.3;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .5);
}
.map-tip b { display: block; font-weight: 600; }
.map-tip span { opacity: .7; font-size: .75rem; }
.map-legend { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; margin-top: .7rem; font: 400 .72rem/1.4 var(--f-mono); letter-spacing: .04em; color: var(--muted); }
.map-legend .key { display: inline-block; width: .6rem; height: .6rem; border-radius: 50%; margin-right: .4rem; vertical-align: -.02rem; background: var(--c, var(--pin)); }
.map-legend .key.t-city { --c: var(--pin); }
.pins-gray .key.nophoto { background: var(--pin-none); }
.pins-hollow .key.nophoto { background: none; box-shadow: inset 0 0 0 2px var(--pin); }
.pins-small .key.nophoto { width: .45rem; height: .45rem; opacity: .75; }

.region-bar, .area-bar { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: .6rem; }
.region-bar button, .area-bar button {
  font: 400 .74rem/1 var(--f-mono); letter-spacing: .04em; padding: .5rem .75rem; border-radius: .35rem; cursor: pointer;
  border: 1px solid var(--line-2); background: var(--surface); color: var(--dim);
}
.region-bar button span, .area-bar button span { opacity: .55; margin-left: .25rem; }
.region-bar button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.area-bar button { background: none; border-style: dashed; padding: .42rem .65rem; font-size: .7rem; }
.area-bar button[aria-pressed="true"] { border-style: solid; border-color: var(--ink); color: var(--ink); }

.place-chips { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: .6rem; overflow: hidden; }
.place-chips:has(.list-hint) { background: none; border: 0; }
.list-hint { color: var(--muted); font-size: .9rem; }
.place-group {
  --gc: hsl(var(--g) 60% 72%);
  display: grid; grid-template-columns: 10.5rem 1fr; gap: .2rem 1rem; align-items: baseline;
  padding: .6rem .9rem; background: var(--surface); box-shadow: inset 2px 0 0 var(--gc);
}
@media (max-width: 30rem) { .place-group { grid-template-columns: 1fr; } }
.group-name { font: 500 .68rem/1.6 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--gc); }
.group-places { line-height: 1.7; }
.group-places button {
  font: inherit; font-size: .92rem; padding: 0; border: 0; background: none; color: var(--ink); cursor: pointer;
  text-decoration: underline; text-decoration-color: transparent; text-underline-offset: .2em;
}
.group-places button:hover { text-decoration-color: var(--gc); }
.group-places button + button::before { content: "·"; color: var(--muted); margin: 0 .5rem; display: inline-block; }
.group-places button.t-np { color: var(--pin-np); }
.group-places button.t-ski { color: var(--pin-ski); }
.group-places button.nophoto { color: var(--muted); }
.group-places button[aria-pressed="true"] { color: var(--pin); font-weight: 600; text-decoration-color: var(--pin); }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: .6rem; padding: 1rem; }
.panel .empty { color: var(--muted); display: grid; place-items: center; text-align: center; min-height: 14rem; font-size: .92rem; }
.pcard { position: relative; }
.pcard h3 { font-size: 1.3rem; margin: .9rem 0 .15rem; padding-right: 2.25rem; }
.pcard .meta { color: var(--muted); font: 400 .74rem/1.5 var(--f-mono); letter-spacing: .03em; }
.pcard .fav { font: 400 .7rem/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); margin-top: 1rem; }
.pcard blockquote { margin: .6rem 0 0; padding-left: .9rem; border-left: 1px solid var(--ink); color: var(--dim); font-size: 1rem; line-height: 1.5; }
.pcard-close {
  position: absolute; top: .4rem; right: .4rem; z-index: 1; width: 2rem; height: 2rem; border-radius: 50%; cursor: pointer;
  border: 0; background: rgba(0, 0, 0, .65); color: #fff; font-size: .8rem;
}
.pcard-close:hover { background: rgba(0, 0, 0, .85); }
.pics { display: grid; gap: .35rem; aspect-ratio: 4 / 3; }
.pics.n2 { grid-template-columns: 1fr 1fr; aspect-ratio: 2 / 1; }
.pics.n3 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
.pics.n3 .ph:first-child { grid-row: span 2; }
.pics.n4 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.pics .ph { border-radius: .4rem; }
/* one photo: show it whole at its own shape (tall photos were losing their bottom) */
.pics.n1 { aspect-ratio: auto; }
.pics.n1 .ph img { height: auto; max-height: 32rem; object-fit: contain; }

/* ---------- meals page ---------- */
.feature-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; list-style: none; padding: 0; margin: 0;
  background: var(--line); border: 1px solid var(--line); border-radius: .6rem; overflow: hidden; }
.feature-list li { background: var(--surface); padding: 1.4rem; }
.feature-list b { display: block; font-weight: 500; font-size: 1.05rem; margin-bottom: .35rem; }
.feature-list span { color: var(--muted); font-size: .93rem; }
.tour { display: grid; grid-template-columns: minmax(0, 20rem) minmax(0, 1fr); gap: 2rem clamp(2rem, 6vw, 4.5rem); align-items: center; }
@media (max-width: 48rem) { .tour { grid-template-columns: 1fr; justify-items: center; } }
.phone { width: 100%; max-width: 20rem; }
.slides {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  aspect-ratio: 375 / 812; border-radius: 2.2rem; border: .5rem solid #1A1C1F; background: #1A1C1F;
  box-shadow: 0 0 0 1px var(--line-2), 0 40px 80px -30px rgba(0, 0, 0, .9);
}
.slides::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; margin: 0; scroll-snap-align: center; }
.slide img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 1.7rem; }
.slide-nav { display: flex; align-items: center; justify-content: center; gap: .9rem; margin-top: 1rem; }
.arrow {
  display: grid; place-items: center; width: 2.3rem; height: 2.3rem; border-radius: .35rem; cursor: pointer;
  border: 1px solid var(--line-2); background: var(--surface); color: var(--ink);
}
.arrow:hover { border-color: var(--ink); }
.arrow svg { width: 1.05rem; height: 1.05rem; }
.dots { display: flex; gap: .4rem; }
.dots button { width: .45rem; height: .45rem; padding: 0; border: 0; border-radius: 999px; background: var(--line-2); cursor: pointer; transition: width .2s, background .2s; }
.dots button[aria-current="true"] { width: 1.4rem; background: var(--ink); }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; width: 100%; }
.steps button {
  display: flex; gap: 1rem; width: 100%; text-align: left; font: inherit; color: var(--muted); cursor: pointer;
  background: none; border: 1px solid transparent; border-radius: .6rem; padding: 1rem 1.1rem; transition: background .2s, border-color .2s;
}
.steps button:hover { background: var(--surface); }
.steps b { display: block; color: var(--ink); font-weight: 500; font-size: 1.08rem; margin-bottom: .2rem; }
.steps .num {
  flex: none; display: grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: .35rem;
  font: 400 .78rem/1 var(--f-mono); border: 1px solid var(--line-2); color: var(--muted);
}
.steps li.on button { background: var(--surface); border-color: var(--line-2); }
.steps li.on .num { background: var(--ink); border-color: var(--ink); color: var(--bg); }

.note { border-left: 1px solid var(--ink); background: var(--surface); padding: 1rem 1.25rem; border-radius: 0 .5rem .5rem 0; color: var(--dim); }

/* ---------- footer ---------- */
.site-foot { border-top: 1px solid var(--line); margin-top: 3rem; padding-block: 2rem; color: var(--muted); font: 400 .74rem/1.6 var(--f-mono); letter-spacing: .03em; }
.site-foot .wrap { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.site-foot a { color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; animation: none !important; }
}
/* homepage-style fact line used inline on other pages */
.facts.flush { margin-top: 0; padding-block: 1.2rem; border-bottom: 1px solid rgba(255, 255, 255, .12);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 1rem 2rem; }
.facts.flush b { display: block; margin-bottom: .3rem; }
/* quiet page heading (no photo, smaller title) */
.page-hero.compact { padding-block: clamp(3rem, 7vw, 4.5rem) .5rem; }
.page-hero.compact h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); max-width: none; }
/* two photos side by side */
.photos.two { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr; }
.photos.two .ph:first-child { grid-row: auto; }
/* feature grids hold 8 items: 4 across, then 2, then 1, so rows always fill */
@media (max-width: 64rem) { .feature-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 36rem) { .feature-list { grid-template-columns: 1fr; } }
/* four photos in a 2x2 grid */
.photos.four { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.photos.four .ph:first-child { grid-row: auto; }
