/* =========================================================
   Abudora - portfolio
   Modern, sleek, dark. The live project screens carry the
   colour; the chrome stays hairline-quiet.
   ========================================================= */

@view-transition { navigation: auto; }

/* match the native crossfade to the launch overlay's own easing, on both
   the way into a project and the way back to the wall */
::view-transition-group(root),
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.42s;
  animation-timing-function: cubic-bezier(0.7, 0, 0.3, 1);
}

/* the accent is animatable so it can glide to a hovered project's colour */
@property --accent {
  syntax: "<color>";
  inherits: true;
  initial-value: #5570ff;
}

:root {
  --bg:          #0a0a0b;
  --bg-raise:    #121214;
  --bg-card:     #141416;
  --fg:          #f4f4f5;
  --fg-dim:      #a1a1aa;
  --fg-faint:    #5c5c66;
  --line:        rgba(255, 255, 255, 0.08);
  --line-soft:   rgba(255, 255, 255, 0.055);
  --line-strong: rgba(255, 255, 255, 0.17);
  --accent:      #5570ff;
  --accent-2:    color-mix(in srgb, var(--accent) 62%, #ffffff);
  --accent-soft: color-mix(in srgb, var(--accent) 15%, transparent);

  --serif: "Instrument Serif", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans:  "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono:  "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --shell:   min(1240px, 92vw);
  --radius:  14px;
  --ease:    cubic-bezier(0.7, 0, 0.3, 1);

  transition: --accent 0.5s ease;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

/* themed scrollbars, site-wide */
* { scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
*:hover { scrollbar-color: color-mix(in srgb, var(--accent) 55%, var(--line-strong)) transparent; }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: var(--line-strong);
  border: 3px solid var(--bg);
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover { background: color-mix(in srgb, var(--accent) 60%, #9a9aa2); }
::-webkit-scrollbar-corner { background: var(--bg); }
::-webkit-scrollbar-button { display: none; width: 0; height: 0; }

a { color: inherit; text-decoration: none; }

img { display: block; max-width: 100%; }
iframe { display: block; border: 0; }

/* film grain, barely there */
.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- shared bits ---------- */

.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-faint);
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  padding: 0.95em 1.7em;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transform: translate(var(--mag-x, 0), var(--mag-y, 0));
  transition: transform 0.28s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.btn svg { width: 15px; height: 15px; transition: transform 0.25s var(--ease); }
.btn:active { transform: translate(var(--mag-x, 0), var(--mag-y, 0)) scale(0.96); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* an accent wash sweeps up from the base on hover */
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--accent);
  transform: translateY(101%);
  transition: transform 0.32s var(--ease);
}
.btn:hover::before { transform: translateY(0); }

.btn-primary { background: var(--fg); color: #0a0a0b; }
.btn-primary:hover { color: #fff; box-shadow: 0 10px 30px -8px color-mix(in srgb, var(--accent) 60%, transparent); }
.btn-primary:hover svg { transform: translateX(3px); }

.btn-ghost { border-color: rgba(255, 255, 255, 0.24); color: var(--fg); }
.btn-ghost::before { background: color-mix(in srgb, var(--accent) 20%, transparent); }
.btn-ghost:hover { border-color: var(--accent); color: var(--fg); }

.linkish {
  background: none;
  border: none;
  color: var(--accent-2);
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.15s;
}
.linkish:hover { color: var(--fg); }

/* =========================================================
   NAV
   ========================================================= */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem clamp(1.2rem, 4vw, 3rem);
  transition: background 0.3s, border-color 0.3s, padding 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(10, 10, 11, 0.72);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom-color: var(--line);
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  font-family: "Space Grotesk", var(--sans);
  font-weight: 700;
  font-size: 1.72rem;
  letter-spacing: -0.025em;
  color: var(--fg);
  white-space: nowrap;
}
.nav.scrolled .brand { font-size: 1.5rem; transition: font-size 0.3s var(--ease); }
.brand .ba {
  color: var(--accent);
  display: inline-block;
  transform-origin: 50% 85%;
  animation: brand-a 0.62s cubic-bezier(0.34, 1.4, 0.5, 1) both;
  transition: color 0.45s ease;
}
.brand .brest {
  display: inline-flex;
  animation: brand-clip 0.6s cubic-bezier(0.5, 0, 0.2, 1) 0.3s both;
}
.brand .brest span {
  display: inline-block;
  animation: brand-ch 0.42s cubic-bezier(0.4, 0, 0.2, 1) both;
  animation-delay: calc(0.34s + var(--i) * 0.055s);
}
@keyframes brand-a {
  0%   { opacity: 0; transform: scale(0.36); }
  55%  { opacity: 1; transform: scale(1); }
  72%  { transform: scale(1.09); }
  100% { transform: scale(1); }
}
@keyframes brand-clip {
  0%   { clip-path: inset(-40% 100% -40% 0); }
  100% { clip-path: inset(-40% -6% -40% 0); }
}
@keyframes brand-ch {
  0%   { opacity: 0; transform: translateX(-0.72em); }
  100% { opacity: 1; transform: none; }
}
/* safety: show the wordmark if the load animation never fired */
.brand.brand-settled .ba { opacity: 1; transform: none; animation: none; }
.brand.brand-settled .brest { clip-path: inset(-40% -6% -40% 0); animation: none; }
.brand.brand-settled .brest span { opacity: 1; transform: none; animation: none; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.1rem;
}
.nav-links > a:not(.nav-gh) {
  position: relative;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--fg-dim);
  padding: 0.2rem 0;
  transition: color 0.2s var(--ease), transform 0.2s var(--ease);
}
.nav-links > a:not(.nav-gh)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.28s var(--ease);
}
.nav-links > a:not(.nav-gh):hover,
.nav-links > a:not(.nav-gh):focus-visible {
  color: var(--fg);
  transform: translateY(-2px);
}
.nav-links > a:not(.nav-gh):hover::after,
.nav-links > a:not(.nav-gh):focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}
.nav-gh { display: inline-flex; color: var(--fg-dim); transition: color 0.2s, transform 0.2s var(--ease); }
.nav-gh:hover { color: var(--fg); transform: translateY(-2px) rotate(-8deg); }
.nav-gh svg { width: 20px; height: 20px; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 30px;
  padding: 6px 2px;
  background: none;
  border: none;
  cursor: pointer;
}
.hamburger span {
  height: 2px;
  width: 100%;
  background: var(--fg);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

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

.hero {
  position: relative;
  z-index: 2;
  min-height: 100svh;
  width: var(--shell);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: clamp(2rem, 6vw, 6rem);
  padding: 8rem 0 6rem;
}
.hero-lead {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.hero::before {
  /* soft accent bloom, top-left */
  content: "";
  position: absolute;
  top: 8%;
  left: -12%;
  width: 46vw;
  height: 46vw;
  max-width: 640px;
  max-height: 640px;
  background: radial-gradient(circle, var(--accent-soft), transparent 68%);
  filter: blur(20px);
  pointer-events: none;
  z-index: -1;
}

.hero-kick {
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-faint);
  margin-bottom: 1.6rem;
}

.hero-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.9rem, 9vw, 6.4rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin-bottom: 1.8rem;
}
.type-wrap { position: relative; white-space: nowrap; }
.typed { font-style: italic; color: var(--accent-2); }
.caret {
  display: inline-block;
  width: 3px;
  height: 0.86em;
  background: var(--accent);
  margin-left: 0.06em;
  transform: translateY(0.08em);
  animation: blink 1.05s step-end infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.hero-lede {
  max-width: 46ch;
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  color: var(--fg-dim);
  margin-bottom: 2.6rem;
}
.hero-lede strong { color: var(--fg); font-weight: 600; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 0.9rem; }

/* hero rail - latest builds */
.hero-rail {
  flex: 0 0 auto;
  width: 15rem;
  align-self: center;
  padding-left: 1.7rem;
  border-left: 1px solid var(--line);
}
.rail-head {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-faint);
  margin-bottom: 0.4rem;
}
.rail-list { list-style: none; }
.rail-list a {
  display: grid;
  grid-template-columns: 8px 1fr;
  gap: 0.15rem 0.7rem;
  padding: 0.66rem 0;
  border-bottom: 1px solid var(--line-soft);
  color: var(--fg-dim);
  transition: color 0.15s;
}
.rail-list a:hover { color: var(--fg); }
.rail-dot {
  grid-row: 1;
  width: 8px;
  height: 8px;
  margin-top: 0.34em;
  border-radius: 999px;
  background: var(--d, var(--accent));
}
.rail-name {
  grid-column: 2;
  font-size: 0.92rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rail-sig {
  grid-column: 2;
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--fg-faint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rail-all {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.9rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-faint);
  transition: color 0.15s, gap 0.15s;
}
.rail-all svg { width: 13px; height: 13px; }
.rail-all:hover { color: var(--accent-2); gap: 0.6rem; }

@media (max-width: 1080px) {
  .hero-rail { display: none !important; }
}

/* =========================================================
   WORK
   ========================================================= */

.work {
  position: relative;
  z-index: 2;
  width: var(--shell);
  margin: 0 auto;
  padding: 5rem 0 6rem;
  scroll-margin-top: 4rem;
}
/* cursor spotlight over the wall */
.work::before {
  content: "";
  position: absolute;
  inset: -4rem 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 30%), color-mix(in srgb, var(--accent) 12%, transparent), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.work.lit::before { opacity: 1; }
.work > * { position: relative; z-index: 1; }

.work-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 2.4rem;
}
.work-head h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 4.4vw, 3.1rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0.7rem 0 0.5rem;
}
.work-sub { color: var(--fg-dim); font-size: 0.95rem; max-width: 42ch; }

/* one pill style for the work-header controls */
.work-tools { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.preview-toggle,
.seg-btn,
.tool-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: none;
  color: var(--fg-dim);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease), background 0.18s var(--ease);
}
.preview-toggle:hover,
.seg-btn:hover,
.tool-btn:hover {
  color: var(--fg);
  border-color: color-mix(in srgb, var(--accent) 60%, var(--line-strong));
  background: color-mix(in srgb, var(--accent) 6%, transparent);
}
.seg-btn svg,
.tool-btn svg { width: 13px; height: 13px; }
.seg-btn[aria-pressed="true"] { color: var(--accent-2); border-color: var(--accent); }
.pt-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #46d17f;
  box-shadow: 0 0 0 3px rgba(70, 209, 127, 0.16);
  transition: background 0.2s;
}
.previews-paused .pt-dot { background: var(--fg-faint); box-shadow: none; }

/* filters */
.filters {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 2.6rem;
  padding-bottom: 1.6rem;
  border-bottom: 1px solid var(--line);
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  padding: 0.5em 0.95em;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: none;
  color: var(--fg-dim);
  font-size: 0.84rem;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.chip b {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--fg-faint);
}
.chip:hover { color: var(--fg); border-color: var(--fg-dim); }
.chip.active {
  background: var(--fg);
  color: #0a0a0b;
  border-color: var(--fg);
}
.chip.active b { color: rgba(10, 10, 11, 0.5); }

.search {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
  padding: 0.5em 0.95em;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--fg-faint);
  transition: border-color 0.15s;
}
.search:focus-within { border-color: var(--accent); color: var(--fg-dim); }
.search svg { width: 15px; height: 15px; flex: none; }
.search input {
  background: none;
  border: none;
  outline: none;
  color: var(--fg);
  font: inherit;
  font-size: 0.86rem;
  width: 16ch;
}
.search input::placeholder { color: var(--fg-faint); }

/* exhibit grid */
.exhibits {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 1.5rem;
}

.exhibit {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-card);
  overflow: hidden;
  cursor: pointer;
  opacity: 0;
  transform: translateY(18px);
  transition: border-color 0.3s var(--ease), transform 0.5s var(--ease), opacity 0.5s var(--ease), box-shadow 0.3s var(--ease);
}
.exhibit.in { opacity: 1; transform: none; }
.exhibit:hover {
  border-color: color-mix(in srgb, var(--tint) 45%, var(--line-strong));
  box-shadow: 0 18px 44px -22px color-mix(in srgb, var(--tint) 55%, transparent);
}
.exhibit:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.exhibit.hidden { display: none !important; }

.exhibit-screen {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0e0e12;
  border-bottom: 1px solid var(--line);
}

/* the project screenshot */
.exhibit-shot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  z-index: 1;
  transition: transform 0.5s var(--ease), filter 0.3s var(--ease);
}
.exhibit:hover .exhibit-shot { transform: scale(1.045); }
.exhibit-screen.live .exhibit-shot { filter: blur(2px); }

/* darkening scrim - light by default, deepens on hover so controls read */
.exhibit-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, rgba(10, 10, 11, 0.4) 0%, transparent 22%, transparent 66%, rgba(10, 10, 11, 0.55) 100%);
  opacity: 0.45;
  transition: opacity 0.3s var(--ease);
}
.exhibit:hover .exhibit-screen::after { opacity: 1; }

/* faux browser bar */
.screen-bar {
  position: absolute;
  z-index: 4;
  inset: 0 0 auto 0;
  height: 28px;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 11px;
  background: linear-gradient(180deg, rgba(10, 10, 11, 0.66), rgba(10, 10, 11, 0.15));
}
.screen-bar i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  flex: none;
}
.screen-url {
  margin-left: 7px;
  font-family: var(--mono);
  font-size: 0.66rem;
  color: rgba(255, 255, 255, 0.55);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.screen-no {
  position: absolute;
  z-index: 4;
  right: 11px;
  top: 7px;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.55);
}

/* the live preview iframe, injected on demand */
.exhibit-screen .frame-slot {
  position: absolute;
  inset: 0;
  z-index: 3;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.45s var(--ease);
  background: #0d0d11;
}
.exhibit-screen.live .frame-slot { opacity: 1; }
.exhibit-screen .frame-slot iframe {
  position: absolute;
  top: 28px;
  left: 0;
  width: 1280px;
  height: 800px;
  border: 0;
  transform-origin: top left;
  transform: scale(var(--scale, 0.3));
  pointer-events: none;
}
.exhibit-screen.loading .frame-slot::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 26px;
  height: 26px;
  margin: -13px;
  border: 2px solid rgba(255, 255, 255, 0.16);
  border-top-color: var(--tint);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* preview control - lives bottom-right, appears on hover */
.preview-btn {
  position: absolute;
  z-index: 5;
  right: 10px;
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.4em 0.8em;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #0a0a0b;
  background: rgba(244, 244, 245, 0.94);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), background 0.15s;
}
.exhibit:hover .preview-btn,
.exhibit:focus-within .preview-btn { opacity: 1; transform: none; }
.preview-btn:hover { background: #fff; }
.preview-btn svg { width: 9px; height: 9px; }
.exhibit-screen.live .preview-btn {
  opacity: 1;
  transform: none;
  color: #fff;
  background: color-mix(in srgb, var(--tint) 78%, #000);
}

/* "open" hint - top-left on hover */
.exhibit-open {
  position: absolute;
  z-index: 5;
  left: 10px;
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #fff;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease);
}
.exhibit:hover .exhibit-open,
.exhibit:focus-visible .exhibit-open { opacity: 1; transform: none; }
.exhibit-open svg { width: 12px; height: 12px; }

.exhibit-meta { padding: 1.05rem 1.2rem 1.3rem; }
.exhibit-idx {
  display: block;
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  color: var(--fg-faint);
  margin-bottom: 0.45rem;
}
.exhibit-name {
  font-family: var(--serif);
  font-size: 1.42rem;
  line-height: 1.12;
  letter-spacing: -0.01em;
}
.exhibit-tagline {
  color: var(--fg-dim);
  font-size: 0.88rem;
  margin: 0.35rem 0 0.85rem;
}
.exhibit-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.exhibit-tags span {
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-faint);
  border: 1px solid var(--line);
  padding: 0.24em 0.55em;
  border-radius: 5px;
  transition: color 0.2s, border-color 0.2s;
}
.exhibit:hover .exhibit-tags span { border-color: var(--line-strong); color: var(--fg-dim); }

.no-hits {
  margin-top: 3rem;
  text-align: center;
  color: var(--fg-dim);
}

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

.about {
  position: relative;
  z-index: 2;
  width: var(--shell);
  margin: 0 auto;
  padding: 6rem 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 4rem;
}
.about-lead {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.7rem, 4vw, 2.9rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--fg);
  max-width: 22ch;
  text-wrap: balance;
  margin: 1.4rem 0 3rem;
}
.about-grid {
  display: grid;
  grid-template-columns: 1.6fr 0.9fr;
  gap: 3.5rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid var(--line);
}
.about-copy p {
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  color: var(--fg-dim);
  margin-bottom: 1.1rem;
  max-width: 56ch;
}
.about-now {
  display: flex;
  gap: 0.7rem;
  align-items: baseline;
  margin-top: 1.6rem !important;
  padding-top: 1.3rem;
  border-top: 1px solid var(--line);
  color: var(--fg) !important;
  font-size: 0.98rem !important;
}
.about-now span {
  flex: none;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-2);
  transform: translateY(-1px);
}

.about-stats {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  align-self: start;
}
.stat { border-left: 2px solid var(--accent); padding-left: 1.1rem; }
.stat b {
  display: block;
  font-family: var(--serif);
  font-size: clamp(2.6rem, 4vw, 3.2rem);
  line-height: 0.95;
  font-variant-numeric: tabular-nums;
}
.stat span {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-faint);
}

.about-cols {
  display: grid;
  grid-template-columns: 0.9fr 1.6fr;
  gap: 3.5rem;
  padding-top: 3rem;
}
.about-approach h3,
.skill-col h3 {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-faint);
  margin-bottom: 1.1rem;
}
.about-approach ul { list-style: none; display: flex; flex-direction: column; gap: 0.8rem; }
.about-approach li {
  position: relative;
  padding-left: 1.1rem;
  font-size: 0.95rem;
  color: var(--fg-dim);
  line-height: 1.5;
}
.about-approach li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.skills { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.skill-col ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.skill-col li {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.02em;
  color: var(--fg-dim);
  border: 1px solid var(--line-strong);
  padding: 0.4em 0.75em 0.4em 0.62em;
  border-radius: 6px;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.skill-ico {
  width: 13px;
  height: 13px;
  flex: none;
  opacity: 0.65;
  transition: opacity 0.15s, color 0.15s;
}
.skill-col li:hover .skill-ico { opacity: 1; color: var(--accent-2); }
.skill-col li:hover {
  color: var(--fg);
  border-color: color-mix(in srgb, var(--accent) 55%, var(--line-strong));
  background: color-mix(in srgb, var(--accent) 7%, transparent);
}

/* =========================================================
   CONTACT
   ========================================================= */

.contact {
  position: relative;
  z-index: 2;
  width: var(--shell);
  margin: 0 auto;
  padding: 6rem 0 7rem;
  border-top: 1px solid var(--line);
  scroll-margin-top: 4rem;
}
.contact-head {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
  margin: 1.2rem 0 1.1rem;
}
.contact-head h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.2rem, 6vw, 3.8rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
}
.avail {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-dim);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0.45em 0.85em;
}
.avail i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #46d17f;
  box-shadow: 0 0 0 3px rgba(70, 209, 127, 0.16);
}
.contact-sub {
  color: var(--fg-dim);
  font-size: 1rem;
  max-width: 52ch;
  margin-bottom: 2.4rem;
}

.contact-primary {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.5rem 1.7rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--bg-raise), var(--bg-card));
  transition: border-color 0.2s;
}
.contact-primary:hover { border-color: var(--accent); }
.cp-k {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-faint);
}
.cp-v {
  flex: 1;
  min-width: 12ch;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2.6vw, 1.7rem);
  color: var(--fg);
  letter-spacing: -0.01em;
  word-break: break-all;
}
.cp-v:hover { color: var(--accent-2); }
.cp-copy {
  flex: none;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-dim);
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0.5em 0.95em;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.cp-copy:hover { color: var(--fg); border-color: var(--fg-dim); }
.cp-copy.done { color: #46d17f; border-color: rgba(70, 209, 127, 0.4); }

.contact-secondary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}
.contact-secondary a {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 1.2rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--fg-dim);
  transition: border-color 0.2s, background 0.2s, transform 0.2s var(--ease), color 0.2s;
}
.contact-secondary a:hover {
  border-color: var(--line-strong);
  background: var(--bg-raise);
  transform: translateY(-3px);
  color: var(--fg);
}
.contact-secondary svg { width: 18px; height: 18px; flex: none; }
.cs-k { font-weight: 600; color: var(--fg); }
.cs-v { font-family: var(--mono); font-size: 0.78rem; color: var(--fg-faint); margin-left: auto; }

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

.foot {
  position: relative;
  z-index: 2;
  width: var(--shell);
  margin: 0 auto;
  padding: 3rem 0 3.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--fg-faint);
}
.foot-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding-bottom: 1.6rem;
}
.foot-mark {
  font-family: "Space Grotesk", var(--sans);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--fg-dim);
  transition: color 0.15s;
}
.foot-mark:hover { color: var(--fg); }
.foot-mark .ba { color: var(--accent); }
.foot-nav { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.foot-nav a {
  font-size: 0.82rem;
  color: var(--fg-faint);
  transition: color 0.15s;
}
.foot-nav a:hover { color: var(--fg); }
.foot-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-soft);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.03em;
}

/* =========================================================
   BACK TO TOP
   ========================================================= */

.to-top {
  position: fixed;
  right: clamp(1rem, 3vw, 2.4rem);
  bottom: clamp(1rem, 3vw, 2.4rem);
  z-index: 90;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--fg-dim);
  opacity: 0;
  transform: translateY(12px) scale(0.9);
  pointer-events: none;
  transition: opacity 0.28s var(--ease), transform 0.28s var(--ease), color 0.15s, border-color 0.15s;
}
.to-top.show {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.to-top:hover {
  color: var(--fg);
  border-color: var(--accent);
}
.to-top svg { width: 18px; height: 18px; }
@media (prefers-reduced-motion: reduce) {
  .to-top { transition: opacity 0.2s linear; transform: none; }
}

/* =========================================================
   LAUNCH TRANSITION
   ========================================================= */

.launch {
  position: fixed;
  z-index: 9999;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg-raise);
  pointer-events: none;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6);
  transition:
    top 0.42s var(--ease),
    left 0.42s var(--ease),
    width 0.42s var(--ease),
    height 0.42s var(--ease),
    border-radius 0.42s var(--ease);
}
.launch.go { top: 0 !important; left: 0 !important; width: 100vw !important; height: 100svh !important; border-radius: 0; }
.launch::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 40%, var(--accent-soft) 50%, transparent 60%);
  transform: translateX(-100%);
}
.launch.go::after { animation: sweep 0.5s var(--ease) forwards; }
@keyframes sweep { to { transform: translateX(100%); } }
.launch {
  background:
    radial-gradient(120% 90% at 15% -20%, color-mix(in srgb, var(--tint, #4b6bff) 55%, transparent) 0%, transparent 55%),
    linear-gradient(175deg, #17171d, #0d0d11 70%);
}
.launch-name {
  position: absolute;
  left: clamp(1.5rem, 6vw, 5rem);
  bottom: clamp(1.5rem, 6vw, 4rem);
  font-family: var(--serif);
  font-size: clamp(2rem, 7vw, 4.5rem);
  color: var(--fg);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.launch.go .launch-name { opacity: 1; }

body.launching { overflow: hidden; }

/* scatter the other cards out of the way on launch */
.exhibits.scatter .exhibit:not(.is-launching) {
  opacity: 0.16;
  filter: blur(5px);
  transform: translate(var(--sx, 0), var(--sy, 0)) scale(0.92);
  transition: opacity 0.4s var(--ease), filter 0.4s var(--ease), transform 0.4s var(--ease);
  pointer-events: none;
}
.exhibit.is-launching { z-index: 3; }

/* return pulse - the card you came back from */
@keyframes returned {
  0% { box-shadow: 0 0 0 0 transparent; }
  25% { box-shadow: 0 0 0 5px color-mix(in srgb, var(--tint) 45%, transparent); }
  100% { box-shadow: 0 0 0 0 transparent; }
}
.exhibit.returned { animation: returned 1.8s var(--ease); border-color: var(--tint); }

/* =========================================================
   SPECTRUM BAR
   ========================================================= */

.spectrum {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  display: flex;
  height: 3px;
  transition: height 0.2s var(--ease);
}
.spectrum:hover { height: 10px; }
body.konami .spectrum { height: 12px; }
.spectrum .seg {
  flex: 1 1 0;
  min-width: 0;
  height: 100%;
  border: 0;
  padding: 0;
  cursor: pointer;
  position: relative;
  filter: saturate(0.12) brightness(0.5);
  transition: filter 0.45s var(--ease), transform 0.14s var(--ease);
}
.spectrum .seg.lit { filter: none; }
.spectrum .seg:hover { transform: scaleY(1.7); filter: none; z-index: 1; }
.spectrum .seg-tip {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(3px);
  white-space: nowrap;
  font-family: var(--mono);
  font-size: 0.64rem;
  color: var(--fg);
  background: rgba(10, 10, 11, 0.94);
  border: 1px solid var(--line-strong);
  padding: 0.3em 0.55em;
  border-radius: 6px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s;
}
.spectrum .seg:hover .seg-tip { opacity: 1; }

/* =========================================================
   NAV COMMAND BUTTON
   ========================================================= */

.nav-cmd {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  padding: 4px 7px;
  cursor: pointer;
  color: var(--fg-dim);
  transition: color 0.15s, border-color 0.15s;
}
.nav-cmd:hover { color: var(--fg); border-color: var(--fg-dim); }
.nav-cmd kbd {
  font-family: var(--mono);
  font-size: 0.7rem;
  line-height: 1;
}

/* =========================================================
   INDEX VIEW  -  a dense list, small thumbnail per row
   ========================================================= */

.exhibits.as-index {
  display: block;
  border-top: 1px solid var(--line);
}
.exhibits.as-index .exhibit {
  display: grid;
  grid-template-columns: 3.5rem 92px minmax(0, 12rem) 1fr auto;
  align-items: center;
  gap: 1.2rem;
  border: 0;
  border-bottom: 1px solid var(--line-soft);
  border-radius: 0;
  background: none;
  box-shadow: none;
  opacity: 1 !important;
  transform: none !important;
  padding: 0.7rem 0.5rem;
  transition: background 0.15s var(--ease), padding-left 0.22s var(--ease);
}
.exhibits.as-index .exhibit:hover {
  background: rgba(255, 255, 255, 0.025);
  padding-left: 1rem;
}
.exhibits.as-index .exhibit-screen {
  aspect-ratio: 16 / 10;
  width: 92px;
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--line);
  order: 2;
}
.exhibits.as-index .screen-bar,
.exhibits.as-index .screen-no,
.exhibits.as-index .preview-btn,
.exhibits.as-index .exhibit-open,
.exhibits.as-index .frame-slot { display: none; }
.exhibits.as-index .exhibit-shot { object-position: top; }
.exhibits.as-index .exhibit-meta {
  display: contents;
}
.exhibits.as-index .exhibit-idx { order: 1; margin: 0; }
.exhibits.as-index .exhibit-name { order: 3; font-size: 1.05rem; }
.exhibits.as-index .exhibit-tagline {
  order: 4;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.85rem;
}
.exhibits.as-index .exhibit-tags {
  order: 5;
  flex-wrap: nowrap;
}
.exhibits.as-index .exhibit-tags span:nth-child(n + 2) { display: none; }

/* =========================================================
   COMMAND PALETTE
   ========================================================= */

.palette {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(6, 6, 8, 0.68);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 12vh 1rem 1rem;
}
.palette[hidden] { display: none; }
body.palette-open { overflow: hidden; }
.palette-box {
  width: min(560px, 100%);
  background: #141418;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  animation: pal-in 0.18s var(--ease);
}
@keyframes pal-in { from { opacity: 0; transform: translateY(-8px); } }
.palette-in {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
}
.palette-in svg { width: 16px; height: 16px; color: var(--fg-faint); flex: none; }
.palette-in input {
  flex: 1;
  min-width: 0;
  background: none;
  border: 0;
  outline: 0;
  color: var(--fg);
  font: inherit;
  font-size: 0.98rem;
}
.palette-in kbd {
  font-family: var(--mono);
  font-size: 0.64rem;
  color: var(--fg-faint);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 2px 5px;
}
.palette-list {
  list-style: none;
  max-height: 46vh;
  overflow-y: auto;
  padding: 0.4rem;
}
.palette-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--fg-dim);
}
.palette-list li.on { background: var(--accent-soft); color: var(--fg); }
.pal-hint {
  font-family: var(--mono);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-faint);
  flex: none;
}
.pal-empty { color: var(--fg-faint); font-size: 0.85rem; padding: 1rem 0.75rem; }

/* =========================================================
   KONAMI TOAST
   ========================================================= */

.konami-toast {
  position: fixed;
  left: 50%;
  bottom: 2rem;
  transform: translateX(-50%);
  z-index: 9500;
  background: #141418;
  border: 1px solid var(--accent);
  color: var(--fg);
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}
.konami-toast[hidden] { display: none; }

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

@media (max-width: 860px) {
  /* full-screen mobile menu */
  .nav { z-index: 200; }
  .nav .brand,
  .hamburger { position: relative; z-index: 202; }
  .hamburger { display: flex; }

  .nav-links {
    counter-reset: menu;
    position: fixed;
    inset: 0;
    z-index: 201;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 0;
    padding: 5.5rem clamp(1.4rem, 6vw, 3rem) 2.5rem;
    background: rgba(9, 9, 10, 0.985);
    backdrop-filter: blur(22px) saturate(1.4);
    -webkit-backdrop-filter: blur(22px) saturate(1.4);
    transform: translateX(100%);
    transition: transform 0.4s var(--ease);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .nav-links.open { transform: none; }

  .nav-links > a:not(.nav-gh) {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    padding: 1.15rem 0.25rem;
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(1.9rem, 8vw, 2.6rem);
    letter-spacing: -0.01em;
    color: var(--fg);
    border-bottom: 1px solid var(--line);
    transform: none;
    opacity: 0;
  }
  .nav-links > a:not(.nav-gh)::before {
    content: counter(menu, decimal-leading-zero);
    counter-increment: menu;
    font-family: var(--mono);
    font-size: 0.7rem;
    letter-spacing: 0.06em;
    color: var(--accent-2);
  }
  .nav-links > a:not(.nav-gh)::after { display: none; }
  .nav-links.open > a:not(.nav-gh),
  .nav-links.open .nav-gh { animation: menu-in 0.45s var(--ease) forwards; }
  .nav-links.open > a:nth-of-type(1) { animation-delay: 0.08s; }
  .nav-links.open > a:nth-of-type(2) { animation-delay: 0.14s; }
  .nav-links.open > a:nth-of-type(3) { animation-delay: 0.2s; }
  .nav-links.open .nav-gh { animation-delay: 0.28s; }
  @keyframes menu-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

  .nav-gh {
    display: flex !important;
    align-items: center;
    gap: 0.7rem;
    margin-top: 1.8rem;
    padding: 0.5rem 0.25rem;
    color: var(--fg-dim);
    font-family: var(--mono);
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0;
    transform: none !important;
  }
  .nav-gh::after { content: "GitHub"; }
  .nav-gh svg { width: 17px; height: 17px; }

  body.menu-open { overflow: hidden; }

  .about-grid { grid-template-columns: 1fr; gap: 2.4rem; padding-bottom: 2.6rem; }
  .about-cols { grid-template-columns: 1fr; gap: 2.4rem; padding-top: 2.4rem; }
  .about-stats { flex-direction: row; flex-wrap: wrap; gap: 1.6rem 2.8rem; }
  .skills { grid-template-columns: 1fr; gap: 1.6rem; }
  .contact-secondary { grid-template-columns: 1fr; }

  .nav-cmd { display: none; }
  .work-head { flex-direction: column; align-items: flex-start; }
  .work-tools { width: 100%; }
}

/* mobile hero - lose the dead space */
@media (max-width: 640px) {
  .hero {
    min-height: auto;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 6rem 0 2.5rem;
  }
  .hero-kick { margin-bottom: 1rem; }
  .hero-title { font-size: clamp(2.75rem, 12vw, 3.4rem); margin-bottom: 1.3rem; }
  .hero-lede { font-size: 1rem; margin-bottom: 1.9rem; max-width: none; }
  .hero-cta { gap: 0.7rem; }
  .hero-cta .btn { flex: 1 1 auto; justify-content: center; padding-inline: 1.2rem; }
  .hero::before {
    top: -6%;
    left: -35%;
    width: 100vw;
    height: 100vw;
    opacity: 0.9;
  }
  .work { padding-top: 3.5rem; }
}

@media (max-width: 560px) {
  .exhibits { grid-template-columns: 1fr; }
  .search { margin-left: 0; width: 100%; }
  .search input { width: 100%; flex: 1; }
  .work-head { align-items: flex-start; }
  .foot-top { flex-direction: column; align-items: flex-start; gap: 1.1rem; }
  .foot-bottom { flex-direction: column; align-items: flex-start; }
  .contact-primary { gap: 0.7rem; }
  .cp-copy { width: 100%; }

  .exhibits.as-index .exhibit { grid-template-columns: 2.6rem 68px 1fr auto; }
  .exhibits.as-index .exhibit-screen { width: 68px; }
  .exhibits.as-index .exhibit-tagline { display: none; }
}

/* touch: no hover, so the preview button and open hint stay visible */
@media (hover: none) {
  .spectrum .seg-tip { display: none; }
  .preview-btn { opacity: 1; transform: none; }
  .exhibit-open { opacity: 1; transform: none; }
  .exhibit-screen::after { opacity: 1; }
}
