/* ============================================================
   SAAD BIN SHAHBAZ — PORTFOLIO
   Dark instrument-panel aesthetic. Archivo Black display,
   Archivo UI, Fragment Mono metadata. Acid accent.
   ============================================================ */

:root {
  --bg: #000000;
  --panel: #0c0c0b;
  --fg: #e9e9e4;
  --dim: #6f6f69;
  --line: rgba(233, 233, 228, 0.14);
  --accent: #d6fb41;
  --accent-dim: rgba(214, 251, 65, 0.18);
  --font-display: "Archivo Black", "Archivo", sans-serif;
  --font-ui: "Archivo", sans-serif;
  --font-mono: "Fragment Mono", monospace;
  --header-h: 72px;
  --pad: clamp(16px, 2.5vw, 40px);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-dramatic: cubic-bezier(0.93, 0, 0.03, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-ui);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

::selection { background: var(--accent); color: #050505; }

.mono {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

button { background: none; border: none; color: inherit; font: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }

/* ============================ PRELOADER ============================ */

#preloader {
  position: fixed; inset: 0; z-index: 100;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
}

.preloader-inner {
  position: relative;
  width: min(62vmin, 560px);
}

#preloader-canvas {
  display: block; width: 100%; aspect-ratio: 16 / 9;
  background: #0a0a09;
  outline: 1px solid var(--line);
}

.preloader-meta {
  display: flex; justify-content: space-between;
  padding-top: 10px; color: var(--dim);
}
#preloader-pct { color: var(--accent); }

.preloader-wordmark {
  position: fixed; left: var(--pad); bottom: calc(var(--pad) + 34px);
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 56px);
  line-height: 0.94; letter-spacing: -0.01em;
  text-transform: uppercase;
}
.wordmark-line { display: block; overflow: hidden; }
.preloader-wordmark sup { font-size: 0.3em; vertical-align: super; }

.preloader-foot {
  position: fixed; left: var(--pad); right: var(--pad); bottom: var(--pad);
  display: flex; justify-content: space-between; color: var(--dim);
}

/* ============================ HEADER ============================ */

#site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--pad);
  pointer-events: none;
}
#site-header > * { pointer-events: auto; }

.brand { display: flex; flex-direction: column; gap: 3px; }
.brand-name {
  font-family: var(--font-display);
  font-size: 14px; letter-spacing: 0.02em;
}
.brand-name sup { font-size: 0.55em; }
.brand-sub { color: var(--dim); }

.header-tools { display: flex; align-items: center; gap: 18px; }

/* ---- persistent "Let's talk" (top-right, all views) ---- */
#lets-talk {
  position: fixed; top: 18px; right: var(--pad); z-index: 80;
  display: flex; align-items: center; gap: 9px;
  height: 38px; padding: 0 16px;
  font-size: 13px; font-weight: 500; letter-spacing: 0.01em;
  color: var(--fg);
  border: 1px solid var(--line); border-radius: 999px;
  background: rgba(0, 0, 0, 0.5); backdrop-filter: blur(12px);
  transition: background 0.3s var(--ease-out), color 0.3s, border-color 0.3s;
}
#lets-talk:hover { background: var(--accent); color: #000; border-color: var(--accent); }
.lets-talk-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulseDot 2.4s var(--ease-out) infinite;
}
#lets-talk:hover .lets-talk-dot { background: #000; box-shadow: none; }
@keyframes pulseDot { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
body.contact-open #lets-talk { opacity: 0; pointer-events: none; transition: opacity 0.3s; }

/* ---- section nav (bottom center, sentence case) ---- */
#section-nav {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  z-index: 45;
}
.nav-items {
  position: relative;
  display: flex; gap: 0;
  border: 1px solid var(--line); border-radius: 999px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(12px);
  overflow: hidden;
}
.nav-item {
  position: relative; z-index: 1;
  width: 104px; height: 44px;
  font-size: 14px; font-weight: 500; letter-spacing: 0.01em;
  color: var(--dim);
  transition: color 0.35s var(--ease-out);
}
.nav-item.is-active { color: #000; }
.nav-item:hover:not(.is-active) { color: var(--fg); }
.nav-indicator {
  position: absolute; top: 0; left: 0;
  width: 104px; height: 100%; border-radius: 999px;
  background: var(--accent);
  transition: transform 0.5s var(--ease-out);
}

/* view toggle is a Work tool — hide it while reading About */
body[data-section="about"] .header-tools { opacity: 0; pointer-events: none; transition: opacity 0.3s; }

/* grid/list toggle — rounded pill, bottom-left corner */
.view-toggle {
  position: fixed; left: var(--pad); bottom: 24px; z-index: 45;
  display: flex;
  border: 1px solid var(--line); border-radius: 999px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(12px);
  transition: opacity 0.3s var(--ease-out);
}
.toggle-btn {
  width: 44px; height: 40px;
  display: grid; place-items: center;
  transition: background 0.3s var(--ease-out);
}
.toggle-btn svg rect { fill: var(--dim); transition: fill 0.3s; }
.toggle-btn:hover svg rect { fill: var(--fg); }
.toggle-btn.is-active { background: var(--fg); }
.toggle-btn.is-active svg rect { fill: #000; }

/* ============================ WEBGL GRID ============================ */

#gl {
  position: fixed; inset: 0; z-index: 10;
  cursor: grab;
  touch-action: none;
}
#gl.is-grabbing { cursor: grabbing; }
#gl.is-hover-tile { cursor: pointer; }
#gl canvas { display: block; }

body[data-view="list"] #gl { pointer-events: none; }

/* ============================ FOOTER HUD ============================ */

#site-footer {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: flex; justify-content: space-between;
  padding: 0 var(--pad) calc(var(--pad) * 0.6);
  padding-left: calc(var(--pad) + 108px);   /* clear the bottom-left toggle */
  pointer-events: none;
}
.hud { color: var(--dim); }
#hud-coords { color: var(--accent); opacity: 0.8; }
body[data-view="list"] #site-footer { opacity: 0; transition: opacity 0.4s; }
body[data-view="grid"] #site-footer { opacity: 1; transition: opacity 0.4s 0.3s; }
body[data-section="about"] #site-footer { opacity: 0; transition: opacity 0.3s; }

/* ============================ LIST VIEW ============================ */

#list-view {
  position: fixed; inset: 0; z-index: 20;
  overflow-y: auto;
  padding: calc(var(--header-h) + 40px) var(--pad) 120px;
  visibility: hidden; opacity: 0;
  background: rgba(5, 5, 5, 0.86);
  backdrop-filter: blur(10px);
}
body[data-view="list"] #list-view { visibility: visible; opacity: 1; }

.list-year-group { margin-bottom: 56px; }
.list-year {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--accent); letter-spacing: 0.1em;
  padding-bottom: 12px; border-bottom: 1px solid var(--line);
  margin-bottom: 4px;
}

.list-item {
  display: grid;
  grid-template-columns: 56px 1fr minmax(0, 36%) auto;
  gap: 24px; align-items: baseline;
  width: 100%; text-align: left;
  padding: 18px 8px;
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: background 0.25s var(--ease-out), padding-left 0.35s var(--ease-out);
}
.list-item:hover { background: rgba(233, 233, 228, 0.04); padding-left: 20px; }
.list-index { font-family: var(--font-mono); font-size: 10px; color: var(--dim); }
.list-title {
  font-family: var(--font-display);
  font-size: clamp(18px, 2.6vw, 30px);
  text-transform: uppercase; letter-spacing: 0.005em;
  line-height: 1;
  transition: color 0.25s;
}
.list-item:hover .list-title { color: var(--accent); }
.list-summary { font-size: 13px; color: var(--dim); line-height: 1.5; }
.list-meta { display: flex; gap: 10px; align-items: center; }

.pill {
  display: inline-block;
  font-family: var(--font-mono); font-size: 9px;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 5px 10px;
  border: 1px solid var(--line); border-radius: 999px;
  color: var(--dim);
  white-space: nowrap;
}
.pill.accent { border-color: var(--accent-dim); color: var(--accent); }

.list-thumb {
  position: fixed; z-index: 30;
  width: 240px; aspect-ratio: 4 / 3;
  pointer-events: none;
  opacity: 0;
  transform: scale(0.9);
  outline: 1px solid var(--line);
  object-fit: cover;
}

/* ============================ OVERLAYS (shared) ============================ */

/* project page — wipes in over whatever section you're in */
#project-overlay {
  position: fixed; inset: 0; z-index: 60;
  background: var(--bg);
  visibility: hidden;
  clip-path: inset(100% 0 0 0);
}

/* About is a parallel section: it slides up from below the Work grid */
#about-overlay {
  position: fixed; inset: 0; z-index: 25;
  background: var(--bg);
  visibility: hidden;
  transform: translateY(100%);
}

/* contact takeover ("Let's talk") — covers everything, slides from top */
#contact-overlay {
  position: fixed; inset: 0; z-index: 90;
  background: var(--bg);
  visibility: hidden;
  transform: translateY(-100%);
}

.overlay-scroll { height: 100%; overflow-y: auto; overscroll-behavior: contain; }

.overlay-close {
  position: fixed; top: 18px; right: var(--pad); z-index: 95;
  color: var(--fg);
  padding: 10px 14px;
  border: 1px solid var(--line); border-radius: 999px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(12px);
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.overlay-close:hover { background: var(--accent); color: #000; border-color: var(--accent); }
/* project page back-button lives top-LEFT so it never collides with Let's talk */
.overlay-close.back { right: auto; left: var(--pad); z-index: 65; }

/* ---- contact takeover content ---- */
/* statement up top, contact details pinned to the bottom — fills the
   frame instead of clustering in one corner */
.contact-inner {
  height: 100%; box-sizing: border-box;
  display: flex; flex-direction: column; justify-content: center;
  gap: clamp(40px, 8vh, 96px);
  overflow-y: auto;
  padding: calc(var(--header-h) + 24px) var(--pad) 64px;
}
.contact-top { display: flex; flex-direction: column; gap: 22px; }
.contact-eyebrow { color: var(--dim); }
.contact-head {
  font-family: var(--font-display);
  font-size: clamp(44px, 10vw, 132px);
  line-height: 0.9; letter-spacing: -0.02em;
}
.contact-head .line { display: block; overflow: hidden; }
.contact-head .line > span { display: inline-block; }
.contact-lede {
  font-size: clamp(16px, 2vw, 22px); line-height: 1.45;
  color: var(--dim); max-width: 42ch;
}

.contact-bottom {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 24px 40px; flex-wrap: wrap;
  border-top: 1px solid var(--line); padding-top: 28px;
}
#contact-overlay .contact-email {
  font-family: var(--font-display);
  font-size: clamp(22px, 4.4vw, 56px);
  text-transform: lowercase; letter-spacing: -0.01em;
  color: var(--fg); transition: color 0.3s;
}
#contact-overlay .contact-email:hover { color: var(--accent); }
.contact-aside {
  display: flex; flex-direction: column; align-items: flex-end; gap: 12px;
  text-align: right;
}
.contact-meta { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px 20px; }
.contact-link {
  font-size: 14px; color: var(--fg);
  padding-bottom: 3px; border-bottom: 1px solid var(--line);
  transition: color 0.3s, border-color 0.3s;
}
.contact-link:hover { color: var(--accent); border-color: var(--accent); }
.contact-loc { color: var(--dim); }

/* ============================ PROJECT PAGE ============================ */

.project-content { padding: calc(var(--header-h) + 24px) var(--pad) 80px; }

.project-kicker {
  display: flex; justify-content: space-between;
  color: var(--dim); margin-bottom: 18px;
}
.project-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 8.5vw, 120px);
  line-height: 0.92; text-transform: uppercase;
  letter-spacing: -0.01em;
  margin-bottom: 36px;
  max-width: 14ch;
}
.project-title .line { display: block; overflow: hidden; }
.project-title .line > span { display: inline-block; }

.project-hero {
  width: 100%; aspect-ratio: 16 / 7;
  object-fit: cover; display: block;
  outline: 1px solid var(--line);
  margin-bottom: 48px;
}

.project-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: clamp(24px, 5vw, 96px);
  margin-bottom: 72px;
}

.meta-block { display: grid; gap: 22px; align-content: start; }
.meta-row { border-top: 1px solid var(--line); padding-top: 10px; }
.meta-key { color: var(--dim); display: block; margin-bottom: 6px; }
.meta-val { font-size: 14px; font-weight: 500; }
.meta-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }

.project-body p {
  font-size: clamp(16px, 1.6vw, 21px);
  line-height: 1.55; color: var(--fg);
  margin-bottom: 1.2em;
  max-width: 62ch;
}
.project-body p:first-child { font-size: clamp(20px, 2.2vw, 30px); line-height: 1.35; }

.highlights { margin-top: 40px; border-top: 1px solid var(--line); }
.highlight {
  display: grid; grid-template-columns: 48px 1fr; gap: 16px;
  padding: 16px 0; border-bottom: 1px solid var(--line);
  font-size: 14px; line-height: 1.5; color: var(--fg);
}
.highlight .mono { color: var(--accent); }

.similar { margin-top: 24px; }
.similar-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 20px;
}
.similar-title { font-family: var(--font-display); font-size: 20px; text-transform: uppercase; }
.similar-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.similar-card {
  text-align: left; display: block;
  outline: 1px solid var(--line);
  background: var(--panel);
  transition: outline-color 0.3s;
}
.similar-card:hover { outline-color: var(--accent); }
.similar-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.similar-card .card-label {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 14px;
}
.similar-card .card-title {
  font-family: var(--font-display); font-size: 13px; text-transform: uppercase;
}
.similar-card .card-year { color: var(--dim); }

.project-pager {
  display: flex; justify-content: space-between;
  margin-top: 64px; border-top: 1px solid var(--line); padding-top: 20px;
}
.pager-btn { display: grid; gap: 6px; text-align: left; }
.pager-btn.next { text-align: right; }
.pager-btn .mono { color: var(--dim); }
.pager-btn .pager-title {
  font-family: var(--font-display); font-size: clamp(16px, 2.4vw, 26px);
  text-transform: uppercase; transition: color 0.25s;
}
.pager-btn:hover .pager-title { color: var(--accent); }

/* ============================ ABOUT PAGE ============================ */

.about-content { padding: calc(var(--header-h) + 24px) var(--pad) 80px; }

.about-hero {
  font-family: var(--font-display);
  font-size: clamp(40px, 8vw, 120px);
  line-height: 0.94; text-transform: uppercase;
  letter-spacing: -0.015em;
  max-width: 16ch;
  margin-bottom: 56px;
}
.about-hero .accent { color: var(--accent); }
.about-hero .line { display: block; overflow: hidden; }
.about-hero .line > span { display: inline-block; }

/* kicker now sits ABOVE the hero (consistent eyebrow placement) */
.about-kicker { color: var(--dim); margin-bottom: 18px; display: block; }

.section-gap { margin-top: 72px; }

/* closing CTA — echoes the Let's-talk takeover, resolves the page */
.about-outro {
  border-top: 1px solid var(--line);
  margin-top: 80px; padding-top: 40px;
  display: flex; flex-direction: column; gap: 14px;
}
.about-outro .mono { color: var(--dim); }
.about-cta {
  width: fit-content;
  font-family: var(--font-display);
  font-size: clamp(40px, 8vw, 104px);
  line-height: 0.95; letter-spacing: -0.02em;
  color: var(--fg); transition: color 0.3s var(--ease-out);
}
.about-cta:hover { color: var(--accent); }

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 96px);
  margin-bottom: 72px;
}

.about-lede p {
  font-size: clamp(17px, 1.8vw, 24px);
  line-height: 1.5; margin-bottom: 1.1em; max-width: 56ch;
}
.about-lede p strong { color: var(--accent); font-weight: 600; }

.about-side { display: grid; gap: 28px; align-content: start; }

.about-portrait {
  position: relative;
  border: 1px solid var(--line);
  background: var(--panel);
  display: grid; place-items: center;
  aspect-ratio: 1;
  overflow: hidden;
}
.about-portrait canvas { display: block; max-width: 100%; }
.portrait-cap {
  position: absolute; left: 14px; bottom: 12px;
  color: var(--dim);
}

.fact-list { display: grid; gap: 0; align-content: start; }
.fact {
  display: grid; grid-template-columns: 1fr auto;
  align-items: baseline; gap: 16px;
  padding: 14px 0; border-top: 1px solid var(--line);
  font-size: 13px;
}
.fact .mono { color: var(--dim); }

.section-head {
  display: flex; align-items: baseline; gap: 16px;
  border-top: 1px solid var(--line);
  padding-top: 16px; margin-bottom: 28px;
}
.section-head .mono { color: var(--accent); }
.section-head h2 {
  font-family: var(--font-display); font-size: clamp(20px, 3vw, 34px);
  text-transform: uppercase;
}

.xp-item {
  display: grid;
  grid-template-columns: 130px minmax(0, 1.1fr) minmax(0, 1.6fr);
  gap: 24px;
  padding: 22px 0; border-bottom: 1px solid var(--line);
}
.xp-period { font-family: var(--font-mono); font-size: 10px; color: var(--dim); letter-spacing: 0.08em; padding-top: 4px; }
.xp-role { font-family: var(--font-display); font-size: 16px; text-transform: uppercase; line-height: 1.2; }
.xp-org { display: block; font-family: var(--font-ui); font-size: 12px; font-weight: 500; color: var(--dim); margin-top: 6px; text-transform: none; }
.xp-desc { font-size: 13px; line-height: 1.55; color: var(--dim); }

.cap-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 16px; margin-bottom: 72px;
}
.cap-card {
  border: 1px solid var(--line); background: var(--panel);
  padding: 22px;
  display: grid; gap: 14px; align-content: start;
}
.cap-card .mono { color: var(--accent); }
.cap-card h3 { font-family: var(--font-display); font-size: 15px; text-transform: uppercase; }
.cap-card ul { list-style: none; display: grid; gap: 8px; }
.cap-card li { font-size: 12px; color: var(--dim); padding-left: 14px; position: relative; }
.cap-card li::before { content: "→"; position: absolute; left: 0; color: var(--accent); font-size: 10px; }

.contact-block { border-top: 1px solid var(--line); padding-top: 40px; }
.contact-email {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(22px, 4.6vw, 64px);
  text-transform: lowercase; letter-spacing: -0.01em;
  margin: 16px 0 28px;
  color: var(--fg);
  transition: color 0.3s;
}
.contact-email:hover { color: var(--accent); }
.contact-links { display: flex; gap: 12px; flex-wrap: wrap; }
.contact-links .pill { transition: border-color 0.3s, color 0.3s; }
.contact-links .pill:hover { border-color: var(--accent); color: var(--accent); }

/* ============================ ZOOM RAIL ============================ */

#zoom-ctrl {
  position: fixed; right: max(10px, calc(var(--pad) - 6px)); top: 50%;
  transform: translateY(-50%);
  z-index: 35;
  display: flex; flex-direction: column; align-items: center; gap: 9px;
  opacity: 0.4; transition: opacity 0.4s var(--ease-out);
  touch-action: none; -webkit-user-select: none; user-select: none;
  outline: none;
}
#zoom-ctrl:hover, #zoom-ctrl.is-active, #zoom-ctrl:focus-visible { opacity: 1; }

.zoom-cap {
  font-size: 11px; line-height: 1; color: var(--dim);
  transition: color 0.3s var(--ease-out); pointer-events: none;
}
#zoom-ctrl:hover .zoom-cap, #zoom-ctrl.is-active .zoom-cap { color: var(--fg); }

.zoom-rail {
  position: relative; width: 22px; height: 150px;
  display: flex; flex-direction: column; justify-content: space-between;
  align-items: center; cursor: pointer;
}
.zoom-rail::before {                 /* faint full-height guide line */
  content: ""; position: absolute; left: 50%; top: 0; bottom: 0;
  width: 1px; margin-left: -0.5px; background: var(--line);
}
.zoom-tick {
  width: 7px; height: 1px; background: var(--line);
  transition: width 0.3s var(--ease-out), background 0.3s; pointer-events: none;
}
.zoom-tick.is-major { width: 12px; background: rgba(233, 233, 228, 0.3); }

.zoom-fill {                          /* accent bar from bottom up to value */
  position: absolute; left: 50%; bottom: 0; margin-left: -0.5px;
  width: 1px; height: 100%; background: var(--accent);
  transform-origin: bottom center; transform: scaleY(0);
  opacity: 0.65; pointer-events: none;
}
.zoom-thumb {
  position: absolute; left: 50%; width: 16px; height: 2px; margin-left: -8px;
  background: var(--accent); transform: translateY(50%);
  box-shadow: 0 0 8px var(--accent-dim); pointer-events: none;
}
.zoom-val {
  position: absolute; right: 100%; margin-right: 12px; margin-bottom: -0.5em;
  font-size: 10px; color: var(--accent); white-space: nowrap;
  opacity: 0; transition: opacity 0.3s var(--ease-out); pointer-events: none;
}
#zoom-ctrl:hover .zoom-val, #zoom-ctrl.is-active .zoom-val,
#zoom-ctrl:focus-visible .zoom-val { opacity: 0.85; }

/* the rail belongs to the Work grid only */
body[data-view="list"] #zoom-ctrl,
body[data-section="about"] #zoom-ctrl,
body.contact-open #zoom-ctrl,
body.overlay-open #zoom-ctrl { opacity: 0; pointer-events: none; }

/* ============================ RESPONSIVE ============================ */

@media (max-width: 900px) {
  .project-grid, .about-grid { grid-template-columns: 1fr; }
  .cap-grid, .similar-grid { grid-template-columns: 1fr; }
  .xp-item { grid-template-columns: 1fr; gap: 8px; }
  .list-item { grid-template-columns: 32px 1fr; }
  .list-summary, .list-meta { display: none; }
  .brand-sub { display: none; }

  /* tighter top-right chrome */
  #site-header { padding-right: calc(var(--pad) + 108px); }
  #lets-talk { height: 34px; padding: 0 13px; font-size: 12px; }

  /* slightly smaller bottom-center pill */
  .nav-item { width: 92px; height: 44px; font-size: 13px; }
  .nav-indicator { width: 92px; }

  /* compact rail, lifted clear of the bottom nav pill */
  #zoom-ctrl { top: 42%; gap: 7px; }
  .zoom-rail { height: 116px; }

  /* quiet chrome: no HUD, no floating list thumb */
  #site-footer { display: none; }
  .list-thumb { display: none; }
  #list-view { padding-bottom: 140px; }

  /* contact band stacks + left-aligns when it wraps */
  .contact-aside { align-items: flex-start; text-align: left; }
  .contact-meta { justify-content: flex-start; }
}

/* touch devices: never show the floating list thumb, regardless of width */
@media (hover: none) {
  .list-thumb { display: none; }
  #zoom-ctrl { opacity: 0.6; }            /* no hover, so keep it discoverable */
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
