/* Landsman Studio — site styles */

/* Fonts: Work Sans + Alfa Slab One (SIL OFL, licences next to the woff2 files), declared in the Landsman Studio skin at the end. */

:root {
  --bg: #f8fbfc;
  --surface: #ffffff;
  --tint: #edf4f7;
  --line: #d6e4ea;
  --sky: #a9cbd6;
  --ink: #426d7d;
  --ink-soft: #517482;  /* was #5d8090 (4.08:1); now >= 4.5:1 on --bg, --surface and --tint */
  --muted: #517482;     /* was #8ea6b0 (2.45:1), used for nav, captions and breadcrumbs */
  --deep: #074151;
  --accent: #035772;
  --on-deep: #ffffff;
  --on-deep-soft: #c9dde4;

  --font: 'Work Sans', Arial, system-ui, sans-serif;
  --radius: 22px;
  --radius-sm: 12px;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1240px;
  --header-h: 76px;
  --shadow: 0 1px 2px rgb(7 65 81 / 0.06), 0 8px 28px rgb(7 65 81 / 0.08);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 400;
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, video, svg, iframe { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
p, li, dd, dt, figcaption, blockquote, td, label { text-wrap: pretty; } /* no one-word last lines (build.py no_orphans covers older browsers) */
h1 { font-size: clamp(2.25rem, 1.6rem + 3vw, 4rem); }
h2 { font-size: clamp(1.6rem, 1.25rem + 1.5vw, 2.5rem); }
h3 { font-size: clamp(1.15rem, 1.05rem + 0.5vw, 1.4rem); }
strong { font-weight: 700; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip-link {
  position: absolute;
  left: 16px; top: -100px;
  z-index: 100;
  padding: 10px 18px;
  background: var(--deep);
  color: var(--on-deep);
  border-radius: 999px;
  text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--on-deep); }

.container {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(248 251 252 / 0.88);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
}
.brand {
  display: block;
  color: var(--ink);
  flex: 0 0 auto;
}
.brand svg { width: clamp(170px, 18vw, 250px); height: auto; }
.brand:hover { color: var(--deep); }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  margin-right: -10px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 24px; height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before,
.nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -7px; }
.nav-toggle-bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

.nav-list,
.subnav { list-style: none; margin: 0; padding: 0; }
.nav-list { display: flex; align-items: center; gap: clamp(8px, 1.6vw, 28px); }
.nav-item { position: relative; }
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 4px;
  color: var(--muted);
  font-size: 1.125rem;
  text-decoration: none;
  transition: color 0.15s;
}
.nav-link:hover,
.nav-item:focus-within > .nav-link,
.nav-link[aria-current="page"],
.nav-link.is-section { color: var(--ink); }
.nav-link .chev { width: 10px; height: 10px; transition: transform 0.2s; }
.nav-link.nav-cta {
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--deep);
  color: var(--on-deep);
  font-weight: 500;
}
.nav-link.nav-cta:hover,
.nav-link.nav-cta[aria-current="page"] { background: var(--accent); color: var(--on-deep); }
.subnav {
  position: absolute;
  top: 100%;
  left: 50%;
  min-width: 230px;
  padding: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 6px);
  transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
}
.nav-item:hover > .subnav,
.nav-item:focus-within > .subnav,
.nav-item.is-open > .subnav {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
.nav-item:last-child > .subnav { left: auto; right: -10px; transform: translate(0, 6px); }
.nav-item:last-child:hover > .subnav,
.nav-item:last-child:focus-within > .subnav { transform: none; }
.nav-item:hover > .nav-link .chev,
.nav-item.is-open > .nav-link .chev { transform: rotate(180deg); }
.subnav a {
  display: block;
  padding: 9px 14px;
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.subnav a:hover,
.subnav a[aria-current="page"] { background: var(--tint); color: var(--deep); }

@media (max-width: 860px) { :root { --header-h: 64px; } }
/* Eli: menu labels never wrap. The compact menu is switched on by main.js (html.nav-compact) as soon as the full row
   stops fitting, at any width; a head script sets it before first paint. Without JS the row wraps between labels. */
.nav-link { white-space: nowrap; }
.nav-measure :is(.brand, .site-nav, .nav-list > li, .nav-link > *) { flex-shrink: 0; } /* main.js measures natural widths */
html:not(.js) :is(.header-inner, .nav-list) { flex-wrap: wrap; justify-content: flex-end; } /* the row itself wraps too: brand + one label is wider than a phone */
html:not(.js) .site-header { overflow-x: clip; } /* hidden dropdowns near the edge would widen the page; their parent links reach the same pages */
.nav-compact .nav-toggle { display: inline-flex; }
.nav-compact .site-nav {
  position: fixed;
  inset: var(--header-h) 0 auto 0;
  max-height: calc(100dvh - var(--header-h));
  overflow-y: auto;
  padding: 8px var(--gutter) 28px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 18px 30px rgb(7 65 81 / 0.12);
  display: none;
}
.nav-compact .site-nav.is-open { display: block; }
.nav-compact .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
.nav-compact .nav-item { border-bottom: 1px solid var(--line); }
.nav-compact .nav-item:last-child { border-bottom: 0; }
.nav-compact .nav-link { width: 100%; padding: 14px 0; font-size: 1.25rem; color: var(--ink); }
.nav-compact .nav-link.nav-cta { width: auto; margin: 16px 0 4px; padding: 0 24px; color: var(--on-deep); }
.nav-compact .nav-link .chev { display: none; }
.nav-compact .subnav,
.nav-compact .nav-item:hover > .subnav,
.nav-compact .nav-item:focus-within > .subnav {
  position: static;
  min-width: 0;
  padding: 0 0 12px;
  box-shadow: none;
  background: none;
  opacity: 1;
  visibility: visible;
  transform: none;
}
.nav-compact .subnav a { padding: 8px 0 8px 14px; white-space: normal; } /* border + colour come from the F skin, as before */
.nav-compact body.nav-open { overflow: hidden; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 28px;
  border: 2px solid var(--deep);
  border-radius: 999px;
  background: var(--deep);
  color: var(--on-deep);
  font: 500 1.0625rem/1 var(--font);
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, transform 0.15s;
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: var(--on-deep); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn-outline:hover { background: var(--accent); color: var(--on-deep); }
.btn-light { background: var(--on-deep); border-color: var(--on-deep); color: var(--deep); }
.btn-light:hover { background: transparent; color: var(--on-deep); border-color: var(--on-deep); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.faq + .btn-row { margin-top: 24px; }

/* ---------- Generic sections ---------- */
main { display: block; }
.section { padding-block: clamp(56px, 8vw, 112px); }
.section-tight { padding-block: clamp(36px, 5vw, 64px); }
.section + .section { padding-top: 0; }
.eyebrow {
  margin: 0 0 0.6em;
  color: var(--ink);
  font-size: clamp(0.85rem, 0.8rem + 0.2vw, 0.95rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.lead {
  max-width: 62ch;
  color: var(--ink);
  font-size: clamp(1.1rem, 1rem + 0.45vw, 1.35rem);
  font-weight: 300;
  line-height: 1.55;
}
.prose { max-width: 68ch; }
.prose h3 { margin-top: 1.6em; }
.prose h3:first-child { margin-top: 0; }
.prose ul { padding-left: 1.1em; }
.prose li { margin-bottom: 0.25em; }
.prose li::marker { color: var(--sky); }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }

/* Breadcrumbs */
.breadcrumbs { padding-top: 22px; font-size: 0.9rem; color: var(--muted); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; color: var(--sky); }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent); text-decoration: underline; }
.breadcrumbs [aria-current] { color: var(--ink); }

/* ---------- Home hero ---------- */
.home-hero h1 {
  font-weight: 300;
  font-size: clamp(2.6rem, min(1.6rem + 4.6vw, 1rem + 6.5vh), 5.25rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
}
.home-hero h1 strong { font-weight: 700; }
.home-hero h1 .hero-sub {
  display: block;
  margin-top: 0.22em;
  font-size: 0.5em;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.home-hero .eyebrow { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2.1rem); letter-spacing: 0.02em; margin-bottom: 0.2em; }
.home-hero .lead { margin-top: 1.1em; margin-bottom: 1.8em; font-size: clamp(1.05rem, 0.98rem + 0.35vw, 1.25rem); }
.portrait {
  position: relative;
  justify-self: center;
  width: min(100%, 470px);
  aspect-ratio: 1;
  padding: clamp(12px, 1.6vw, 20px);
  border-radius: 50%;
  background: linear-gradient(135deg, #a9cbd6 0%, #6f97a6 40%, #426d7d 70%, #2c5868 100%);
}
.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  background: #f0f0f0;
}
.hero-tagline { margin-top: 2.2em; color: var(--muted); font-size: 0.85rem; line-height: 1.4; }

/* ---------- Showcase carousel ---------- */
/* Full-bleed like the original site: three tall cards span the window, and the row advances on its own. */
.showcase { position: relative; padding-bottom: clamp(8px, 2vw, 24px); }
.showcase + .section { padding-top: clamp(48px, 6vw, 88px); }
.showcase-frame { position: relative; }
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 48px; height: 48px;
  padding: 0;
  border: 2px solid var(--accent);
  border-radius: 50%;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.icon-btn:hover { background: var(--accent); color: var(--on-deep); }
.icon-btn svg { width: 18px; height: 18px; }
.showcase-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 52px; height: 52px;
  margin-top: -26px;
  border-color: transparent;
  background: var(--surface);
  color: var(--deep);
  box-shadow: var(--shadow);
}
.showcase-arrow.is-prev { left: clamp(10px, 2vw, 28px); }
.showcase-arrow.is-next { right: clamp(10px, 2vw, 28px); }
.track {
  --gap: 16px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(250px, calc((100% - 4 * var(--gap)) / 3), 520px);
  gap: var(--gap);
  margin: 0;
  padding: 4px var(--gap) 18px;
  list-style: none;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gap);
  scrollbar-width: none;
}
.track::-webkit-scrollbar { display: none; }
.track > li { scroll-snap-align: start; }
.showcase-foot { margin: 0; text-align: center; }
.showcase-toggle {
  min-height: 44px;
  padding: 0 14px;
  border: 0;
  background: none;
  color: var(--ink);
  font: 400 0.9rem/1 var(--font);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.showcase-toggle:hover { color: var(--deep); }
@media (max-width: 860px) {
  /* one card centred with its neighbours peeking in */
  .track { grid-auto-columns: min(74vw, 360px); padding-inline: max(var(--gap), calc((100% - min(74vw, 360px)) / 2)); scroll-padding-inline: 0; }
  .track > li { scroll-snap-align: center; }
  .showcase-arrow { width: 44px; height: 44px; margin-top: -22px; }
}
.tile {
  position: relative;
  display: block;
  aspect-ratio: 464 / 657;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--tint);
  box-shadow: var(--shadow);
  color: var(--on-deep);
  text-decoration: none;
}
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.tile:hover img { transform: scale(1.04); }
.tile.is-contain img { object-fit: contain; }
.tile.is-contain:hover img { transform: none; }
.tile-label {
  position: absolute;
  inset: auto 0 0 0;
  padding: 48px 18px 16px;
  background: linear-gradient(to top, rgb(4 40 51 / 0.82), transparent);
  font-weight: 500;
  line-height: 1.3;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s, transform 0.25s;
}
.tile-label small { display: block; color: var(--on-deep-soft); font-weight: 400; font-size: 0.85rem; }
.tile:hover .tile-label,
.tile:focus-visible .tile-label { opacity: 1; transform: none; }
@media (hover: none) { .tile-label { opacity: 1; transform: none; } }

/* ---------- Work cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: clamp(16px, 2.4vw, 28px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}
.card:hover { color: var(--ink); border-color: var(--sky); box-shadow: var(--shadow); transform: translateY(-3px); }
.card-media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--tint); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.card:hover .card-media img { transform: scale(1.04); }
/* whole image on the card when a 4:3 crop would hide more than 10% of it (build.py cards) */
.card-media.is-contain img { object-fit: contain; }
.card:hover .card-media.is-contain img { transform: none; }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 24px; }
.card-body h3 { margin-bottom: 0.35em; }
.card-body p { margin: 0; color: var(--ink-soft); font-size: 0.97rem; }
.card-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 16px;
  color: var(--accent);
  font-weight: 500;
  font-size: 0.95rem;
}
.card-more svg { width: 14px; height: 14px; transition: transform 0.2s; }
.card:hover .card-more svg { transform: translateX(3px); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding-block: clamp(20px, 4vw, 48px) clamp(40px, 6vw, 80px); }
.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
}
.page-hero h1 { margin-bottom: 0.35em; }
.page-hero .lead { margin: 0; }
.page-hero-media img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
@media (max-width: 860px) { .page-hero-grid { grid-template-columns: 1fr; } }

/* ---------- Project / case study ---------- */
.project {
  padding-block: clamp(48px, 7vw, 96px);
  border-top: 1px solid var(--line);
}
.project-head { margin-bottom: clamp(24px, 4vw, 44px); }
.project-head h2 { margin-bottom: 0.2em; }
.project-kicker { margin: 0; color: var(--muted); font-size: clamp(1rem, 0.95rem + 0.3vw, 1.2rem); }
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(28px, 5vw, 72px);
}
.split.media-wide { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); }
.split + .split,
.split + .gallery,
.gallery + .split,
.gallery + .gallery,
.split + .video-row,
.video-row + .split { margin-top: clamp(32px, 5vw, 64px); }
.split.reverse > :first-child { order: 2; }
.sticky-col { position: sticky; top: calc(var(--header-h) + 24px); }
@media (max-width: 860px) {
  .split, .split.media-wide { grid-template-columns: 1fr; }
  .split.reverse > :first-child { order: 0; }
  .sticky-col { position: static; }
}
.figure { margin: 0; }
.figure img,
.figure video {
  width: 100%;
  border-radius: var(--radius-sm);
}
.figure.framed img { box-shadow: var(--shadow); }
.figure figcaption { margin-top: 10px; color: var(--muted); font-size: 0.9rem; }
.pill-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 1.2em; padding: 0; list-style: none; }
.pill-list li {
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.92rem;
}
.callout {
  margin: 1.4em 0;
  padding: 18px 22px;
  border-left: 4px solid var(--sky);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--tint);
}
.callout > :last-child { margin-bottom: 0; }
.label {
  display: block;
  margin-bottom: 0.25em;
  color: var(--ink);
  font-weight: 700;
}

/* ---------- Galleries ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--min, 260px)), 1fr));
  gap: clamp(12px, 1.8vw, 20px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.gallery.cols-2 { --min: 420px; }
.gallery.cols-3 { --min: 300px; }
.gallery.cols-4 { --min: 180px; }
.gallery.cols-6 { --min: 130px; }
.gallery.masonry {
  display: block;
  columns: var(--cols, 3) 260px;
  column-gap: clamp(12px, 1.8vw, 20px);
}
.gallery.masonry > li { break-inside: avoid; margin-bottom: clamp(12px, 1.8vw, 20px); }
.gallery.stack { grid-template-columns: 1fr; }
.gallery.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.zoom {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--tint);
  cursor: zoom-in;
}
.zoom img { width: 100%; transition: transform 0.4s ease, opacity 0.2s; }
.zoom:hover img { transform: scale(1.025); }
.gallery.fit .zoom { aspect-ratio: var(--ratio, 4 / 3); display: grid; place-items: center; }
.gallery.fit .zoom img { width: 100%; height: 100%; object-fit: contain; }
.gallery figcaption { padding: 10px 2px 0; color: var(--ink-soft); font-size: 0.92rem; line-height: 1.45; }
.gallery figcaption strong { display: block; color: var(--ink); font-size: 1rem; }
.gallery figure { margin: 0; }

/* Lightbox */
.lightbox {
  width: 100vw;
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgb(4 30 38 / 0.94);
  color: var(--on-deep);
}
.lightbox::backdrop { background: rgb(4 30 38 / 0.6); }
.lightbox[open] { display: grid; grid-template-rows: 1fr auto; }
.lightbox-stage { display: grid; place-items: center; min-height: 0; padding: 64px 16px 8px; }
.lightbox-stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; }
.lightbox-stage img.bg-light,
.lightbox-stage img.bg-studio { padding: clamp(12px, 3vw, 36px); border-radius: 14px; }
.lightbox-caption { padding: 8px 24px 20px; text-align: center; color: var(--on-deep-soft); font-size: 0.95rem; }
.lightbox-close,
.lightbox-nav {
  position: absolute;
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.12);
  color: var(--on-deep);
  cursor: pointer;
}
.lightbox-close:hover,
.lightbox-nav:hover { background: rgb(255 255 255 / 0.24); }
.lightbox-close { top: 12px; right: 12px; }
.lightbox-nav { top: 50%; transform: translateY(-50%); }
.lightbox-nav.prev { left: 12px; }
.lightbox-nav.next { right: 12px; }
.lightbox svg { width: 20px; height: 20px; }

/* ---------- Click-through deck (main.js) ---------- */
.deck { margin: 0 0 clamp(20px, 3vw, 32px); outline-offset: 6px; }
.deck:focus-visible { outline: 3px solid var(--accent); }
.deck-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: #0b1626;
  box-shadow: var(--shadow);
  cursor: pointer;
}
.deck-stage > img,
.deck-stage > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.deck-top, .deck-clip { opacity: 0; }
.deck-top.is-on { opacity: 1; transition: opacity 0.35s; }
.deck-clip.is-on { opacity: 1; transition: opacity 0.2s; }
.deck-bar { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 14px; }
.deck-bar[hidden] { display: none; }
.deck-bar button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 2px solid var(--deep);
  border-radius: 50%;
  background: transparent;
  color: var(--deep);
  cursor: pointer;
}
.deck-bar button:hover:not(:disabled) { background: var(--tint); }
.deck-bar button:disabled { opacity: 0.35; cursor: default; }
.deck-bar button[hidden] { display: none; }
.deck-bar svg { width: 20px; height: 20px; }
.deck-count { min-width: 5.5em; text-align: center; color: var(--ink); font-variant-numeric: tabular-nums; }
.deck:fullscreen { display: grid; place-content: center; padding: 16px; background: #000; }
.deck:fullscreen .deck-stage { width: min(100vw - 32px, (100vh - 90px) * 16 / 9); border-radius: 0; box-shadow: none; }
.deck:fullscreen .deck-count { color: #fff; }
.deck:fullscreen .deck-bar button { border-color: #fff; color: #fff; }
.deck:fullscreen .deck-bar button:hover:not(:disabled) { background: rgb(255 255 255 / 0.15); }

/* ---------- Download card (build.py download_card) ---------- */
.download-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin-top: clamp(40px, 6vw, 64px);
  padding: clamp(20px, 3vw, 28px) clamp(20px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--tint);
}
.download-icon { flex: none; width: 52px; height: 52px; padding: 13px; border-radius: 50%; background: var(--surface); color: var(--deep); }
.download-text { flex: 1 1 220px; margin: 0; }
.download-text strong { display: block; margin-bottom: 4px; color: var(--deep); font-size: 1.125rem; font-weight: 500; }
.download-text span { color: var(--ink); font-size: 0.95rem; }
.download-card .btn svg { width: 18px; height: 18px; }
@media (max-width: 560px) { .download-card .btn { flex: 1 1 100%; } }

/* ---------- Video ---------- */
.video-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: clamp(16px, 2.4vw, 28px);
}
.video-row .figure { flex: 1 1 200px; max-width: 420px; }
.video-row .figure.portrait-9x16 { flex: 0.8 1 170px; max-width: 320px; }
.figure video { background: #000; box-shadow: var(--shadow); }

/* ---------- Embeds (click to load) ---------- */
.embed {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--deep) center / cover no-repeat;
  box-shadow: var(--shadow);
  aspect-ratio: var(--ratio, 16 / 9);
}
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.embed-launch {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 14px;
  width: 100%;
  padding: 24px;
  border: 0;
  background: linear-gradient(160deg, rgb(7 65 81 / 0.55), rgb(4 30 38 / 0.85));
  color: var(--on-deep);
  font: 500 1.1rem/1.3 var(--font);
  text-align: center;
  cursor: pointer;
}
div.embed-launch { cursor: default; }
.embed-launch .play {
  display: grid;
  place-items: center;
  width: 76px; height: 76px;
  border-radius: 50%;
  background: var(--on-deep);
  color: var(--deep);
  transition: transform 0.2s;
}
.embed-launch:hover .play { transform: scale(1.08); }
.embed-launch .play svg { width: 28px; height: 28px; margin-left: 4px; }
.embed-launch small { color: var(--on-deep-soft); font-weight: 400; font-size: 0.9rem; }

.sprite-row { display: flex; flex-wrap: wrap; align-items: end; gap: clamp(14px, 3vw, 36px); margin: 0; padding: 0; list-style: none; }
.sprite-row li { display: grid; justify-items: center; gap: 8px; }
.sprite-row img { image-rendering: pixelated; }
.sprite-row span { color: var(--muted); font-size: 0.85rem; }

/* ---------- Services / start a project ---------- */
.how {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: clamp(16px, 2.4vw, 26px);
  margin: clamp(20px, 3vw, 36px) 0 0;
  padding: 0;
  list-style: none;
}
.how li {
  padding: clamp(22px, 2.6vw, 30px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.how h3 { margin: 14px 0 8px; font-size: 1.2rem; }
.how p { margin: 0; color: var(--ink); font-size: 0.97rem; }
.how-num, .pick-step {
  display: inline-grid;
  place-items: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--deep);
  color: var(--on-deep);
  font-weight: 700;
  line-height: 1;
}

.quote {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr);
  align-items: start;
  gap: clamp(24px, 3.4vw, 48px);
  margin-top: clamp(24px, 3.4vw, 44px);
}
.quote-picks { display: grid; gap: clamp(36px, 5vw, 60px); min-width: 0; }
.pick { min-width: 0; margin: 0; padding: 0; border: 0; }
.pick legend {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding: 0;
  color: var(--deep);
  font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.8rem);
  font-weight: 700;
}
.pricing-head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.pricing-head img { width: 48px; height: 48px; border-radius: 12px; object-fit: cover; }
.pricing-head p { margin: 0; color: var(--ink); }
.opt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
  gap: clamp(12px, 1.6vw, 18px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.opt-grid-rows { grid-template-columns: 1fr; }
.opt-grid input {
  position: absolute;
  width: 1px; height: 1px;
  opacity: 0;
  pointer-events: none;
}
.opt-grid li { position: relative; }
.opt {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: clamp(18px, 2vw, 24px);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.opt:hover { border-color: var(--sky); }
/* a package card with no input in front is information, not a choice: no tick, no pointer */
.opt:first-child { cursor: auto; }
.opt:first-child:hover { border-color: var(--line); }
.opt:first-child::after { content: none; }
/* the tick in the corner fills in when the option is chosen, so the choice never rests on colour alone */
.opt::after {
  content: "";
  position: absolute;
  top: 16px; right: 16px;
  width: 24px; height: 24px;
  border: 2px solid var(--muted);
  border-radius: 50%;
  background: var(--surface) center / 16px no-repeat;
}
input[type="checkbox"] + .opt::after { border-radius: 7px; }
input:checked + .opt { border-color: var(--accent); box-shadow: var(--shadow); }
input:checked + .opt::after {
  border-color: var(--accent);
  background-color: var(--accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' d='m4 8.3 2.6 2.6L12 5.3'/%3E%3C/svg%3E");
}
input:focus-visible + .opt,
.opt-none input:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.opt-name { padding-right: 34px; color: var(--deep); font-size: 1.12rem; font-weight: 700; line-height: 1.25; }
.price { margin: 10px 0 4px; color: var(--deep); font-size: clamp(1.9rem, 1.6rem + 1.1vw, 2.5rem); font-weight: 700; line-height: 1; }
.opt .deliverable { margin: 6px 0 0; color: var(--ink); font-weight: 500; }
.opt-desc { margin-top: 8px; color: var(--ink); font-size: 0.95rem; }
.checks { margin: 14px 0 0; padding: 0; list-style: none; }
.checks li { position: relative; padding: 6px 0 6px 28px; border-top: 1px solid var(--tint); font-size: 0.95rem; }
.checks li::before {
  content: "";
  position: absolute;
  left: 2px; top: 11px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23035772' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='m4.5 8.2 2.3 2.3 4.7-5'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.opt-time { margin-top: auto; padding-top: 16px; color: var(--ink); font-size: 0.9rem; font-weight: 500; }
.opt-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2px 16px; padding-right: 56px; }
.opt-row::after { top: 50%; margin-top: -12px; }
.opt-row .opt-name { grid-column: 1; padding-right: 0; }
.opt-row .opt-desc { grid-column: 1; margin-top: 0; }
.opt-tag { grid-column: 2; grid-row: 1 / span 2; color: var(--deep); font-weight: 700; white-space: nowrap; }
.opt-none { display: flex; align-items: center; gap: 10px; min-height: 44px; margin: 12px 0 0; color: var(--ink); }
.opt-none input { width: 20px; height: 20px; margin: 0; accent-color: var(--accent); }
.opt-none label { cursor: pointer; }

.quote-card { position: sticky; top: calc(var(--header-h) + 16px); display: grid; gap: 16px;
  max-height: calc(100vh - var(--header-h) - 32px); overflow-y: auto; }
.quote-card h3 { margin: 0; }
.quote-lines { display: grid; gap: 8px; margin: 0; }
.quote-lines > div { display: flex; justify-content: space-between; gap: 16px; }
.quote-lines dt { color: var(--ink); }
.quote-lines dt small { display: block; font-size: 0.85rem; }
.quote-lines dd { margin: 0; color: var(--deep); font-weight: 500; white-space: nowrap; }
.quote-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--deep);
  font-weight: 700;
}
.quote-total output { font-size: clamp(1.7rem, 1.4rem + 1.2vw, 2.4rem); line-height: 1; }
.quote-total output[data-empty] { font-size: 1.25rem; }
.quote-deposit { margin: 0; color: var(--ink); }
.quote-deposit b { color: var(--deep); }
.quote-card .form-note { color: var(--ink); }
.quote-alt { margin: 0; font-size: 0.95rem; }
@media (max-width: 960px) {
  .quote { grid-template-columns: 1fr; }
  .quote-card { position: static; max-height: none; }
}

.faq { display: grid; gap: 12px; max-width: 860px; margin-top: clamp(16px, 2.4vw, 28px); }
.faq details { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 12px 20px;
  color: var(--deep);
  font-size: 1.08rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; font-weight: 400; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0; padding: 0 20px 20px; max-width: 70ch; }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(28px, 6vw, 88px);
}
.about-grid .figure img { border-radius: var(--radius); box-shadow: var(--shadow); }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: clamp(16px, 2.4vw, 28px);
}
.info-card {
  padding: clamp(22px, 2.6vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.info-card h2 { font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.5rem); }
.info-card p:last-child { margin-bottom: 0; }
.tools { display: flex; flex-wrap: wrap; gap: 14px; margin: 0; padding: 0; list-style: none; }
.tools li { display: grid; justify-items: center; gap: 6px; width: 76px; text-align: center; font-size: 0.78rem; line-height: 1.25; color: var(--ink-soft); }
.tools img { width: 56px; height: 56px; border-radius: 12px; }
.tool-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 12px; }
.tool-terminal { background: #d97757; color: #fff7f2; }
.tool-icon svg { width: 30px; height: 30px; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; }
.field label { font-size: 0.92rem; font-weight: 500; }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--deep);
  font: 400 1rem/1.4 var(--font);
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus { outline: 3px solid rgb(3 87 114 / 0.25); border-color: var(--accent); }
.form-note { margin: 0; color: var(--muted); font-size: 0.85rem; }
.form-status { margin: 0; font-weight: 500; }
.panel {
  padding: clamp(24px, 3.4vw, 44px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

/* ---------- Pager ---------- */
.pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding-block: clamp(36px, 5vw, 64px);
  border-top: 1px solid var(--line);
}
.pager a {
  display: grid;
  gap: 4px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  text-decoration: none;
}
.pager a:hover { border-color: var(--sky); box-shadow: var(--shadow); }
.pager span { color: var(--muted); font-size: 0.85rem; }
.pager strong { font-size: 1.1rem; }
.pager .next { text-align: right; grid-column: 2; }
@media (max-width: 560px) { .pager { grid-template-columns: 1fr; } .pager .next { grid-column: 1; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--accent); color: var(--on-deep); }
.site-footer a { color: var(--on-deep); }
.site-footer a:hover { color: var(--on-deep-soft); }
.footer-cta {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 6vw, 96px);
  padding-block: clamp(56px, 8vw, 104px) clamp(40px, 6vw, 72px);
}
.footer-cta h2 { color: var(--on-deep); }
.footer-cta p { color: var(--on-deep-soft); max-width: 40ch; }
.site-footer .field label { color: var(--on-deep); }
.site-footer .field input,
.site-footer .field textarea { border-color: transparent; }
.site-footer .form-note { color: var(--on-deep-soft); }
.site-footer .form-status { color: var(--on-deep); }
@media (max-width: 860px) { .footer-cta { grid-template-columns: 1fr; } }
.footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 56px);
  padding-block: clamp(36px, 5vw, 56px);
  border-top: 1px solid rgb(255 255 255 / 0.22);
}
.footer-brand { display: flex; align-items: flex-start; gap: 18px; }
.footer-brand img { width: 72px; height: 72px; border-radius: 10px; flex: none; }
.footer-brand address { font-style: normal; color: var(--on-deep-soft); font-size: 0.95rem; line-height: 1.6; }
.footer-brand address strong { display: block; color: var(--on-deep); font-size: 1.2rem; font-weight: 500; margin-bottom: 4px; }
.footer-col h2 { margin: 0 0 12px; color: var(--on-deep); font-size: 1rem; font-weight: 500; letter-spacing: 0.02em; }
.footer-col ul { margin: 0; padding: 0; list-style: none; }
.footer-col li { margin-bottom: 6px; }
.footer-col a { color: var(--on-deep-soft); font-size: 0.95rem; text-decoration: none; }
.footer-col a:hover { color: var(--on-deep); text-decoration: underline; }
.social { display: flex; gap: 12px; }
.social a {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--on-deep);
  color: var(--accent);
  transition: transform 0.15s, background 0.15s;
}
.social a:hover { transform: translateY(-2px); background: var(--on-deep-soft); color: var(--deep); }
.social svg { width: 22px; height: 22px; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 20px 28px;
  border-top: 1px solid rgb(255 255 255 / 0.22);
  color: var(--on-deep-soft);
  font-size: 0.85rem;
}
@media (max-width: 960px) { .footer-main { grid-template-columns: repeat(3, minmax(0, 1fr)); } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 560px) { .footer-main { grid-template-columns: 1fr; } }

/* ---------- Misc components ---------- */
h4 { margin: 0 0 0.5em; font-size: 1.1rem; }
.subhead { margin: clamp(32px, 5vw, 56px) 0 18px; }
.project-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 32px; }
.project-head > :not(.client-logo) { flex: 1 1 320px; }
.client-logo { display: block; width: 180px; opacity: 0.8; transition: opacity 0.15s; }
.client-logo:hover { opacity: 1; }
.client-logo img { width: 100%; }
.trio {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: clamp(20px, 3vw, 36px);
  align-items: start;
}
.trio h3 { margin-bottom: 14px; }
.trio .gallery { gap: 14px; }
/* Backdrops for transparent PNG mockups (chosen per image by tools/backdrops.py) */
.bg-light { background: var(--tint); }
.bg-studio { background: radial-gradient(120% 95% at 50% 28%, #f4f8fa 0%, #d5e2e8 58%, #b9ccd5 100%); }
.card-grid-wide { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.card-media img[src$=".gif"] { object-fit: contain; image-rendering: pixelated; background: var(--tint); padding: 8%; }
.social-light a { background: var(--tint); color: var(--accent); }
.social-light a:hover { background: var(--accent); color: var(--on-deep); }
.contact-list { margin: 1.4em 0 1.6em; font-style: normal; line-height: 1.9; }
.contact-list strong { font-size: 1.15rem; }

/* ---------- 3D hero stages ---------- */
.stage3d {
  position: relative;
  width: 100%;
  aspect-ratio: 5 / 4;
  isolation: isolate;
}
.stage3d .stage-canvas {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  opacity: 0;
  transition: opacity 0.9s ease;
  pointer-events: none;
}
.stage3d.is-3d .stage-canvas { opacity: 1; }
.stage-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.35s ease, transform 0.6s ease, visibility 0s linear 0.6s;
}
.stage-fallback > img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  border-radius: var(--radius);
}
.stage3d.is-3d .stage-fallback { opacity: 0; transform: scale(0.94); visibility: hidden; }
.stage3d.pixel .stage-fallback > img { width: 45%; image-rendering: pixelated; border-radius: 0; }
.about-grid .stage3d { aspect-ratio: 1; }
.about-grid .stage-fallback > img { box-shadow: var(--shadow); }

/* ---------- Eli's avatar, About hero (scene3d.js: `avatar` scene + avatarDialogue) ----------
   Without 3D (no WebGL, reduced motion, or still loading) it is the still, a row of tool buttons and the speech
   bubble in normal flow. Once the 3D is up, the buttons sit over their orbiting chips and the bubble over the
   stage, both placed by scene3d.js. */
.avatar-hero { position: relative; padding-bottom: var(--below, 0px); }
/* About opener: keep the avatar short enough that the page below shows on the first screen */
.breadcrumbs + .section { padding-top: clamp(24px, 3vw, 48px); }
.about-grid .avatar-hero { width: 100%; max-width: min(560px, (100vh - var(--header-h) - 300px) / 1.05); max-width: min(560px, (100svh - var(--header-h) - 300px) / 1.05); justify-self: center; }
.about-grid .stage-avatar { aspect-ratio: 1 / 1.05; }
.about-grid .stage-avatar .stage-fallback > img { box-shadow: none; border-radius: 0; }
.avatar-ui { position: relative; display: grid; justify-items: center; gap: 12px; margin-top: 12px; }
.avatar-tools { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 0; padding: 0; list-style: none; }
.avatar-tool {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 4px;
  width: 78px;
  min-height: 48px;
  padding: 6px 2px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--ink-soft);
  font: 500 0.78rem/1.2 var(--font);
  cursor: pointer;
}
.avatar-tool:hover,
.avatar-tool[aria-expanded="true"] { background: var(--tint); color: var(--deep); }
.avatar-tool .tool-img,
.avatar-tool .tool-icon { width: 48px; height: 48px; border-radius: 12px; }
.avatar-tool .tool-icon svg { width: 26px; height: 26px; }
.tool-sprite img { width: 34px; image-rendering: pixelated; }
.avatar-self {
  min-height: 44px;
  padding: 0 18px;
  border: 2px solid var(--accent);
  border-radius: 999px;
  background: transparent;
  color: var(--accent);
  font: 500 0.95rem/1 var(--font);
  cursor: pointer;
}
.avatar-self:hover { background: var(--accent); color: var(--on-deep); }
.avatar-pause { display: none; }
.avatar-bubble {
  position: relative;
  width: 100%;
  padding: 16px 48px 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--deep);
  box-shadow: var(--shadow);
  font-size: 1.02rem;
  line-height: 1.45;
  animation: bubble-in 0.18s ease-out;
}
.avatar-bubble[hidden] { display: none; }
@keyframes bubble-in { from { opacity: 0; transform: scale(0.92); } }
.avatar-bubble-text { margin: 0; min-height: 1.45em; }
.avatar-bubble-links { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 12px 0 0; }
.avatar-bubble-links[hidden] { display: none; }
.avatar-bubble-links .btn { min-height: 44px; padding: 0 20px; font-size: 0.95rem; }
.avatar-cta { flex-basis: 100%; }
.avatar-bubble-close {
  position: absolute;
  top: 6px; right: 6px;
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.avatar-bubble-close:hover { background: var(--tint); }
.avatar-bubble-close svg { width: 14px; height: 14px; }
.avatar-hero.is-live .avatar-lines { display: none; }
.avatar-lines { margin: 16px 0 0; font-size: 0.95rem; }
.avatar-lines dt { margin-top: 0.8em; font-weight: 700; }
.avatar-lines dd { margin: 0; color: var(--ink-soft); }

/* 3D on: everything over the canvas */
.stage-avatar.is-3d + .avatar-ui {
  position: absolute;
  inset: 0 0 var(--below, 0px) 0;
  z-index: 2;
  display: block;
  margin: 0;
  pointer-events: none;
}
.stage-avatar.is-3d + .avatar-ui .avatar-tools li { position: absolute; left: 0; top: 0; z-index: 2; will-change: transform; }
.stage-avatar.is-3d + .avatar-ui .avatar-tools li.is-behind { z-index: 0; }
.stage-avatar.is-3d + .avatar-ui li.is-behind .avatar-tool { pointer-events: none; }
.stage-avatar.is-3d + .avatar-ui .avatar-tool {
  width: 58px; height: 58px; min-height: 0;
  padding: 0;
  border-radius: 16px;
  background: transparent;
  pointer-events: auto;
}
.stage-avatar.is-3d + .avatar-ui .avatar-tool > :not(.avatar-tool-label) { visibility: hidden; }   /* the chip shows the art */
.stage-avatar.is-3d + .avatar-ui .avatar-tool-label {
  position: absolute;
  top: calc(100% + 4px); left: 50%;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--deep);
  color: var(--on-deep);
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, -4px);
  transition: opacity 0.15s, transform 0.15s;
  pointer-events: none;
}
.stage-avatar.is-3d + .avatar-ui .avatar-tool:hover .avatar-tool-label,
.stage-avatar.is-3d + .avatar-ui .avatar-tool:focus-visible .avatar-tool-label { opacity: 1; transform: translate(-50%, 0); }
.stage-avatar.is-3d + .avatar-ui .avatar-tool:focus-visible { outline: 3px solid var(--accent); box-shadow: 0 0 0 2px #fff; }
.stage-avatar.is-3d + .avatar-ui .avatar-self {
  position: absolute;
  left: 0; top: 0;
  width: 26%;
  aspect-ratio: 1;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  pointer-events: auto;
}
.stage-avatar.is-3d + .avatar-ui .avatar-self-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.stage-avatar.is-3d + .avatar-ui .avatar-pause {
  position: absolute;
  left: 8px; bottom: 8px;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgb(255 255 255 / 0.85);
  color: var(--ink);
  font: 500 0.8rem/1 var(--font);
  cursor: pointer;
  pointer-events: auto;
}
.stage-avatar.is-3d + .avatar-ui .avatar-bubble {   /* docked under the face; Eli rises to keep it clear */
  position: absolute;
  left: 8px; right: 8px; bottom: 52px;
  width: auto;
  pointer-events: auto;
  transform-origin: var(--tail, 50%) 0;
}
.stage-avatar.is-3d + .avatar-ui .avatar-bubble::before {   /* tail up toward the mouth */
  content: "";
  position: absolute;
  left: calc(var(--tail, 50%) - 9px); top: -9px;
  width: 18px; height: 18px;
  border-left: 1px solid var(--line);
  border-top: 1px solid var(--line);
  background: var(--surface);
  transform: rotate(45deg);
}
.avatar-hero.bubble-below .stage-avatar.is-3d + .avatar-ui .avatar-bubble { top: calc(100% + 8px); bottom: auto; }  /* phones */
@media (max-width: 860px) {
  .about-grid .stage-avatar { aspect-ratio: 1 / 1.12; max-width: 560px; margin-inline: auto; }
  .avatar-hero { margin-inline: auto; }
}

/* Home: the avatar still inside the round portrait frame (no 3D), and the one-off greeting next to the head */
.portrait-avatar img { object-fit: cover; object-position: 50% 16%; background: radial-gradient(circle at 50% 38%, #f6f9fb, #d9e6ec); }
.avatar-greet {
  position: absolute;
  left: var(--gx, 70%); top: var(--gy, 20%);
  z-index: 2;
  margin: 0;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  box-shadow: var(--shadow);
  font-weight: 500;
  opacity: 0;
  transform: translate(calc(-100% - 28px), -30%) scale(0.92);
  transition: opacity 0.3s, transform 0.3s;
}
.avatar-greet.is-on { opacity: 1; transform: translate(calc(-100% - 28px), -30%); }
.avatar-greet a { color: var(--deep); text-decoration: none; }
@media (max-width: 860px) { .avatar-greet { transform: translate(-50%, calc(-100% - 12px)) scale(0.92); }
  .avatar-greet.is-on { transform: translate(-50%, calc(-100% - 12px)); } }

/* ---------- Scroll-pinned character intro (Gregory on the 3D page; driven by scene3d.js) ---------- */
.scrolly-sticky {
  display: grid;
  grid-template-columns: minmax(240px, 0.75fr) 1.25fr;
  align-items: center;
  gap: clamp(20px, 4vw, 56px);
}
.scrolly-steps { margin: 0; padding: 0; list-style: none; display: grid; gap: 22px; }
.scrolly-steps h3 { margin: 0 0 0.35em; }
.scrolly-steps p { margin: 0; color: var(--muted); }
.stage-character { aspect-ratio: 4 / 5; max-height: 78vh; }
.stage-character .stage-fallback > img { border-radius: 0; box-shadow: none; }
.stage-character .stage-canvas {   /* feather the edges so the floor shadow doesn't end in a hard line */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.scrolly:not(.is-live) .scrolly-hint { display: none; }
.scrolly.is-live { height: 330vh; }
.scrolly.is-live .scrolly-sticky {
  position: sticky;
  top: var(--header-h);
  height: calc(100vh - var(--header-h));
  height: calc(100svh - var(--header-h));
}
.scrolly.is-live .stage-character { aspect-ratio: auto; height: 100%; max-height: none; }
.scrolly.is-live .scrolly-steps { position: relative; display: block; min-height: 11em; }
.scrolly.is-live .scrolly-steps > li {
  position: absolute;
  inset: 0 0 auto;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.45s ease, transform 0.45s ease, visibility 0.45s;
  visibility: hidden;
}
.scrolly.is-live .scrolly-steps > li.is-on { opacity: 1; transform: none; visibility: visible; }
.scrolly.is-live .scrolly-sticky::after {   /* thin progress line along the bottom */
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 18px;
  height: 2px;
  background: linear-gradient(90deg, var(--deep) calc(var(--p, 0) * 100%), var(--line) 0);
  border-radius: 2px;
}
@media (max-width: 860px) {
  .scrolly-sticky { grid-template-columns: 1fr; }
  .stage-character { max-width: 420px; justify-self: center; width: 100%; }
  .scrolly.is-live { height: 300vh; }
  .scrolly.is-live .scrolly-sticky { grid-template-rows: 1fr auto; align-items: stretch; gap: 8px; padding-bottom: 40px; }
  .scrolly.is-live .stage-character { order: -1; max-width: none; height: auto; min-height: 0; }
  .scrolly.is-live .scrolly-steps { min-height: 8.5em; }
}

/* Full-bleed 3D hero: the scene fills the hero behind the copy and is composed toward the right
   (scene3d.js offsets the camera), so objects can drift and overlap without a hard edge. */
.hero-3d {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: 0;
}
.hero-3d-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  /* Ends ~220px above the fold so the next section always peeks into the first screen. */
  min-height: clamp(420px, 100vh - var(--header-h) - 220px, 820px);
  min-height: clamp(420px, 100svh - var(--header-h) - 220px, 820px);
  pointer-events: none;
}
.hero-3d-copy {
  position: relative;
  width: min(46%, 600px);
  padding-block: clamp(24px, 4vh, 48px);
  pointer-events: auto;
}
.hero-3d-copy::before {
  content: "";
  position: absolute;
  inset: -18% -26% -18% -45%;
  z-index: -1;
  background: radial-gradient(closest-side, rgb(248 251 252 / 0.96), rgb(248 251 252 / 0.82) 55%, rgb(248 251 252 / 0.4) 80%, transparent);
  pointer-events: none;
}
.page-hero.hero-3d h1 { font-size: clamp(2.5rem, min(1.6rem + 3.6vw, 1rem + 6vh), 4.75rem); }
.hero-3d > .stage3d {
  position: absolute;
  inset: 0;
  z-index: 0;
  aspect-ratio: auto;
}
.hero-3d .stage-fallback { left: 42%; padding: 7% 4% 7% 2%; }
.hero-3d .stage-canvas { will-change: transform; }
.home-hero .stage-fallback .portrait { width: min(78%, 470px); height: auto; }
.page-hero.hero-3d + * { padding-top: clamp(24px, 3vw, 48px); }
@media (max-width: 860px) {
  .hero-3d-inner { display: block; min-height: 0; }
  .hero-3d-copy { width: auto; padding-block: 8px 0; }
  .hero-3d-copy::before { display: none; }
  .hero-3d > .stage3d { position: relative; inset: auto; height: min(100vw, 600px, max(220px, 36vh)); height: min(100vw, 600px, max(220px, 36svh)); }
  .hero-3d .stage-fallback { left: 0; padding: 6%; }
  .home-hero .hero-3d-inner { padding-top: 12px; }
}

/* ---------- Scroll-driven 3D reveals (enabled by main.js) ---------- */
.js-3d .scroll-3d {
  --e: var(--enter, 1);
  --ry: -8deg;
  transform-origin: 50% 90%;
  transform:
    perspective(1200px)
    translate3d(0, calc((1 - var(--e)) * 70px), calc((1 - var(--e)) * -150px))
    rotateX(calc((1 - var(--e)) * 18deg))
    rotateY(calc((1 - var(--e)) * var(--ry)));
  opacity: calc(0.08 + var(--e) * 0.92);
  will-change: transform, opacity;
}
.js-3d .scroll-3d.from-right { --ry: 8deg; }
.js-3d .scroll-3d.strong {
  transform-origin: 50% 100%;
  transform:
    perspective(1000px)
    translate3d(0, calc((1 - var(--e)) * 40px), calc((1 - var(--e)) * -220px))
    rotateX(calc((1 - var(--e)) * 58deg))
    rotateZ(calc((1 - var(--e)) * var(--ry) * 0.6));
}
.js-3d .project-head.scroll-3d {
  transform: translate3d(calc((1 - var(--e)) * -40px), 0, 0);
}

/* Pointer tilt with a soft glare on cards, tiles and gallery images */
.tilt {
  transform: perspective(900px) rotateX(var(--ty, 0deg)) rotateY(var(--tx, 0deg));
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.2s, border-color 0.2s;
}
.tilt.is-tilting { transition-duration: 0.08s; }
.card.tilt:hover { transform: perspective(900px) rotateX(var(--ty, 0deg)) rotateY(var(--tx, 0deg)) translateY(-3px); }
.tilt::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgb(255 255 255 / 0.38), transparent 55%);
  opacity: 0;
  transition: opacity 0.25s;
  pointer-events: none;
  mix-blend-mode: soft-light;
}
.tilt:hover::after { opacity: 1; }
.zoom.tilt, .card.tilt, .price-card.tilt { position: relative; }

@media (prefers-reduced-motion: reduce) {
  .js-3d .scroll-3d, .tilt { transform: none !important; opacity: 1 !important; }
}

/* ---------- Scroll cue (main.js): shown at the top of any page that scrolls, gone once you do ---------- */
.scroll-cue {
  position: fixed;
  left: 50%;
  bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  z-index: 40;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--deep);
  color: var(--on-deep);
  box-shadow: var(--shadow);
  cursor: pointer;
  transform: translateX(-50%);
  transition: opacity 0.3s, visibility 0s;
  animation: scroll-cue-bob 1.8s ease-in-out infinite;
}
.scroll-cue svg { width: 18px; height: 18px; }
.scroll-cue:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.scroll-cue.is-hidden, .nav-open .scroll-cue { opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0s linear 0.3s; }
@keyframes scroll-cue-bob { 50% { transform: translate(-50%, 6px); } }

/* ---------- 404 ---------- */
.notfound { min-height: 55vh; display: grid; align-content: center; justify-items: start; gap: 8px; }


/* ==========================================================================
   Landsman Studio skin, direction F (Eli's pick 2026-12-05). Overrides the tokens and type above.
   Source of truth while it settles: handoff/brand/r4/skin-f.css
   ========================================================================== */
/* Eli 2026-12-05 round 2: sleek and modern, Lando as the north star: everything exact, ONE deliberate misprint
   (the key word's plate offset, and the plate on hover). Halftone quieter and sparser, no tilts, no jagged cuts. */
/* F, Eli's mix (2026-12-05): D's print look (halftone, yellow/orange and magenta plates, plum ink) with E's type and layout
   (Alfa Slab One display + Work Sans text, tilted paper mats) on off-white. Lando rules (lando-teardown.md section 7):
   grounds newsprint + the plum footer sheet; ONE accent = the print plates (yellow fill, magenta offset), text pink deepens to #B3125E;
   two families; 4 type steps; halftone texture; one image treatment (paper mats); one reveal (plate-slip, skin.js). */
@font-face{font-family:'Alfa Slab One';src:url(/assets/fonts/AlfaSlabOne.woff2?v=082188c3) format('woff2');font-display:swap}
@font-face{font-family:'Work Sans';src:url(/assets/fonts/WorkSans.woff2?v=9eaf3fe5) format('woff2');font-weight:300 900;font-display:swap}
:root{--bg:#F3EEE4;--surface:#FFFDF8;--tint:#FFFDF8;--line:#D3C7C9;--sky:#2B1030;--ink:#2B1030;--ink-soft:#5B4560;--muted:#5B4560;
  --deep:#2B1030;--accent:#B3125E;--plate:#E2207A;--yellow:#FFD23F;--pink:#FFD23F;--on-deep:#F3EEE4;--on-deep-soft:#D8C9D6;--font:'Work Sans',Arial,sans-serif;
  --radius:0px;--radius-sm:0px;--shadow:none}
:root{--dot:1.8px;--dot-pitch:28px}
body{font-size:17px;background-image:radial-gradient(rgb(43 16 48 / .018) var(--dot),transparent calc(var(--dot) + .5px));background-size:var(--dot-pitch) var(--dot-pitch)}
/* type: 4 steps (72 / 42 / 24 / 17) */
h1,h2,.footer-cta h2{font-family:'Alfa Slab One',serif;font-weight:400;letter-spacing:0;line-height:1}
h1,.home-hero h1,.page-hero.hero-3d h1{font-size:clamp(40px,5.6vw,72px);font-weight:400}
.page-hero.hero-3d h1{font-size:clamp(40px,min(1.6rem + 3.6vw,1rem + 6vh),72px)}
h2{font-size:clamp(30px,3.2vw,42px)} h3{font-size:24px;font-weight:700}
.home-hero h1 strong{font-weight:400;color:var(--ink);text-shadow:4px 4px 0 var(--yellow)} .home-hero h1 .hero-sub{font-family:'Work Sans';font-size:.4em;line-height:1.2}
.home-hero h1 .hero-sub strong{color:var(--ink);font-weight:700}
.eyebrow,.home-hero .eyebrow,.project-kicker,.label{font-size:17px;font-weight:600;letter-spacing:.02em;text-transform:none}
/* plate-slip reveal (D): the key plate wipes in while the magenta plate settles into register */
main h1,main h2,.site-footer h2{--p:1;clip-path:inset(-10% calc((1 - var(--p)) * (100% + 16px) - 16px) -10% -2%);
  text-shadow:calc((1 - var(--p)) * 7px) calc((1 - var(--p)) * -5px) 0 var(--plate)}
:root{--rv-dur:1.2s;--rv-ease:cubic-bezier(.22,1,.36,1);--rv-stagger:150ms;--rv-speed:900;--rv-min:.2s} /* one reveal token set for every page */
/* the wipe runs at one speed (--rv-speed px/s), so "3D" and a long title move alike; main.js sets --rv-w to the element's width.
   --rv-min: the one exception, a 0.2s floor so 1-2 word headings (< 180px at 900 px/s) don't blink (AD 2026-12-06).
   The clip ends 16px past the right edge (the wipe travels width + 16) so the settling plate is never cut.
   The plate settle is a fixed 7px move, so a fixed --rv-dur already gives it one speed. */
main h1,main h2,.site-footer h2{transition:clip-path max(var(--rv-min),calc((var(--rv-w,540) + 16) / var(--rv-speed) * 1s)) var(--rv-ease),text-shadow var(--rv-dur) var(--rv-ease)}
.rv-now main h1,.rv-now main h2,.rv-now .site-footer h2{transition:none}
@media (prefers-reduced-motion:reduce){main h1,main h2,.site-footer h2{transition:none}}
/* header, nav, buttons: paper scraps */
.site-header{background:rgb(247 242 234 / .94)}
.site-header.is-scrolled{border-bottom-color:var(--line)}
.brand{display:flex;align-items:center;gap:10px;text-decoration:none;font:400 24px 'Alfa Slab One';color:var(--ink)}
.brand svg{width:44px;height:44px}
.brand span{font-family:'Work Sans',sans-serif;font-weight:600;letter-spacing:-.01em} /* wordmark (Eli, 2026-12-06): Landsman 600 */
.brand .wm-light{font-weight:300} /* Studio 300 */
.nav-link{color:var(--ink);font-weight:600}
.nav-link.nav-cta,.btn{border-radius:0;font-weight:700}
.btn,.nav-link.nav-cta{background:var(--yellow);border-color:var(--yellow);color:var(--ink);transition:box-shadow .2s ease-out}
.btn:hover,.nav-link.nav-cta:hover{box-shadow:4px 4px 0 var(--plate)} /* the misprint shows up only on hover */
.btn-outline{background:var(--ink);border-color:var(--ink);color:var(--on-deep)}
.subnav{border-radius:0;background:var(--surface)}
.subnav a{color:var(--ink)}
.hero-3d-copy::before{background:radial-gradient(closest-side,rgb(243 238 228 / .96),rgb(243 238 228 / .82) 55%,rgb(243 238 228 / .4) 80%,transparent)}
.field input,.field textarea{background:#FFFDF8;color:#140A20;border-radius:0}
/* imagery: one treatment, the whole image on a cream mat; labels below it, never on it */
.tile,.card,.card-media,.zoom,.figure img,.page-hero-media img{border-radius:0}
.tile{display:flex;flex-direction:column;aspect-ratio:auto;height:100%;background:var(--tint);padding:10px;color:#140A20;border:1px solid var(--line)}
.tile img{flex:1;min-height:0;object-fit:contain!important;aspect-ratio:464/560;background:var(--tint)}
.tile:hover img{transform:none}
.tile-label{position:static;opacity:1;transform:none;background:none;padding:10px 4px 2px;color:#140A20;font-weight:700}
.tile-label small{color:var(--ink-soft);font-size:15px;font-weight:500}
.card{border:0;background:var(--surface)}
.card-media{background:var(--tint)!important;padding:10px}
.card-media img{object-fit:contain!important}
.bg-studio,.bg-light{background:var(--surface)!important}
.zoom{background:var(--tint)!important}
.zoom{padding:10px;box-shadow:var(--shadow)}
/* footer: the ink sheet */
.site-footer{background:var(--deep);color:var(--on-deep)}
.site-footer a,.footer-cta h2,.footer-col h2,.footer-brand address strong,.site-footer label{color:var(--on-deep)}
.footer-cta p,.footer-col a,.footer-brand address,.footer-bottom,.site-footer .form-note{color:var(--on-deep-soft)}
.btn-light{background:var(--pink);border-color:var(--pink);color:#140A20}
.social a{background:var(--on-deep);color:var(--deep)}
.footer-brand svg{width:72px;height:72px;flex:none}
/* guide over the original footer: no text under 16px, every link a 44px target */
.footer-brand address,.footer-col a,.footer-bottom,.footer-bottom *{font-size:16px}
.footer-col li{margin:0}
.footer-col a,.footer-brand address a,.footer-bottom a{display:inline-flex;align-items:center;min-height:44px}
.site-footer .social a{display:grid;place-items:center}
.card-more,.pager span{font-size:16px}
.breadcrumbs a{display:inline-flex;align-items:center;min-height:44px}
.card-more{color:var(--ink)}
/* the reveal travels across the words, not the empty column */
main h1,main h2:not(.visually-hidden),.site-footer h2{width:fit-content;max-width:100%}
.home-hero h1 .hero-sub strong{text-shadow:none;color:var(--accent)}
/* Eli 2026-12-05: cinematic home hero. Eli fills the first screen edge to edge (Lando: the person owns the frame);
   all the original hero copy is kept, pinned small to the corners and edges. */
.home-hero .hero-3d-inner,.home-hero .hero-3d-copy{display:contents}
.home-hero{position:relative;overflow:hidden;height:calc(100svh - var(--header-h,72px) - 120px);min-height:540px; /* the first project row peeks into the first screen */
  background:radial-gradient(60% 75% at 50% 45%,#FFFDF8 0%,rgb(255 253 248 / 0) 70%)} /* a soft key light behind the figure */
.home-hero>.sl-stage.sl-stage{position:absolute;inset:0;width:auto;height:auto;z-index:0}
.home-hero .eyebrow,.home-hero h1,.home-hero .lead,.home-hero .btn-row,.home-hero .hero-tagline,.home-hero .see-work{position:absolute;z-index:1;margin:0}
.home-hero .see-work{left:50%;bottom:66px;transform:translateX(-50%);display:inline-flex;align-items:center;min-height:44px;padding:0 18px;
  font-weight:700;font-size:15px;letter-spacing:.08em;text-transform:uppercase;color:var(--ink);text-decoration:none;
  background:var(--yellow);box-shadow:3px 3px 0 var(--plate)}
.home-hero .see-work:hover{box-shadow:5px 5px 0 var(--plate)}
@media (min-width:861px){
  .home-hero{--edge:clamp(24px,3.2vw,56px)}
  .home-hero .eyebrow{left:var(--edge);top:var(--edge)}
  .home-hero h1{left:var(--edge);bottom:var(--edge);max-width:min(20vw,300px)} /* clear of the figure */
  .home-hero h1 .hero-sub{font-size:min(.4em,1.9vw)} /* scales with the 20vw column so "a Graphic Designer" fits */
  .home-hero .hero-tagline{left:var(--edge);top:calc(var(--edge) + 30px)} /* top-left with Hello; top-right stays empty */
  .home-hero .btn-row{right:var(--edge);bottom:var(--edge);flex-direction:column;align-items:flex-end;gap:12px}
}
@media (max-width:860px){
  .home-hero{height:auto;min-height:0;display:flex;flex-direction:column;padding:0 20px 18px}
  .home-hero>.sl-stage.sl-stage{position:relative;inset:auto;order:1;height:min(62svh,520px);margin:0 -20px}
  .home-hero .eyebrow,.home-hero h1{position:absolute;left:20px;z-index:1;background:rgb(243 238 228 / .92);padding:4px 10px}
  .home-hero .eyebrow{top:12px} .home-hero h1{top:44px}
  .home-hero .see-work{bottom:auto;top:calc(min(62svh,520px) - 60px)}
  .home-hero .btn-row,.home-hero .hero-tagline{position:static;order:2;margin-top:14px}
  .home-hero .hero-tagline{order:3}
}
.hero-tagline{font-size:16px}
.home-hero .sl-stage iframe{width:100%;height:100%;border:0;display:block;background:transparent}
/* F reskin leftovers (design.md): 44px targets, nothing under 14px */
.breadcrumbs a{min-width:44px;justify-content:center}
.avatar-tool-label{font-size:14px}
.avatar-pause{min-height:44px}
.sprite-row span{font-size:14px}
main a[href^="mailto:"],main a[href^="tel:"]{padding-block:14px} /* bigger hit area, same line layout */
.tools span{font-size:14px}
.stage-avatar.is-3d + .avatar-ui .avatar-pause{min-height:44px;font-size:14px}
.social a,.social-light a{min-width:44px;min-height:44px;flex:none}
.home-hero .hero-sub strong{white-space:nowrap}

/* Eli 2026-12-05: no white-on-cream anywhere. One rule site-wide: every surface sits on the newsprint ground itself
   and is drawn by a 2px plum key line (14.9:1); buttons are solid plum with newsprint text, or a plum outline.
   Hairlines use #7A6680 (4.5:1 on newsprint), so even dividers clear WCAG 1.4.11's 3:1. */
:root{--surface:#F3EEE4;--tint:#F3EEE4;--line:#7A6680}
.tile,.card,.zoom,.subnav,.info-card,details,.field input,.field textarea,.field select{background:var(--bg)!important;border:2px solid var(--ink)}
.tile img,.card-media,.card-media img,.zoom img{background:transparent!important}
.card-media{border-bottom:2px solid var(--ink)}
.tile-label{border-top:2px solid var(--ink)}
.field input,.field textarea,.field select{color:var(--ink)}
.btn,.nav-link.nav-cta,.home-hero .see-work{background:var(--ink);border:2px solid var(--ink);color:var(--on-deep);box-shadow:none}
.btn:hover,.nav-link.nav-cta:hover,.home-hero .see-work:hover{background:var(--ink);color:var(--on-deep);box-shadow:4px 4px 0 var(--yellow),7px 7px 0 var(--plate)}
.btn-outline{background:transparent;border:2px solid var(--ink);color:var(--ink)}
.btn-outline:hover{background:var(--ink);color:var(--on-deep)}
.site-footer .btn-light{background:var(--yellow);border-color:var(--yellow);color:var(--ink)} /* on the plum sheet: 11.9:1 */
.icon-btn,.stage-avatar.is-3d + .avatar-ui .avatar-pause{background:var(--bg);border:2px solid var(--ink);color:var(--ink)}
.home-hero{background:radial-gradient(60% 75% at 50% 45%,rgb(255 210 63 / .16) 0%,rgb(255 210 63 / 0) 70%)} /* key light in the yellow plate, not white */
.breadcrumbs ol{align-items:center}

/* About: the print portrait (replaces the old 3D avatar). Eli's cutout over two offset plates (yellow, magenta) on the plum mat,
   which are the same cutout used as a mask; newsprint mat with a halftone screen and the plum key line. */
.print-portrait{position:relative;margin:0;width:100%;max-width:480px;aspect-ratio:4/5;justify-self:center;overflow:hidden;
  border:0;background:radial-gradient(rgb(243 238 228 / .05) var(--dot),transparent calc(var(--dot) + .5px)) 0 0/var(--dot-pitch) var(--dot-pitch),var(--ink)}
.print-portrait img,.pp-plate{position:absolute;inset:0;width:100%;height:100%}
.print-portrait img{object-fit:contain;z-index:2}
.pp-plate{-webkit-mask:url(/assets/about-portrait.webp) center/contain no-repeat;mask:url(/assets/about-portrait.webp) center/contain no-repeat;transition:transform .35s ease-out}
.pp-magenta{background:var(--plate);transform:translate(calc(9px + var(--px,0) * 7px),calc(6px + var(--py,0) * 7px))}
.pp-yellow{background:var(--yellow);transform:translate(calc(-6px - var(--px,0) * 5px),calc(4px - var(--py,0) * 5px))}
@media (prefers-reduced-motion:reduce){.pp-plate{transition:none}}
.tool-lines{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:22px 36px;margin:0}
.tool-lines dt{font-weight:700;font-size:17px}
.tool-lines dd{margin:6px 0 0;line-height:1.55}
.tool-lines a{padding-block:12px}

/* short windows (laptops ~700px high): the hero shrinks first, the tagline goes; the portrait fits beside the intro */
@media (min-width:861px) and (max-height:760px){.home-hero{min-height:440px}.home-hero h1{font-size:clamp(36px,7vh,56px)}.home-hero .hero-tagline{display:none}}
.print-portrait{max-width:min(480px,(100svh - var(--header-h,72px) - 120px) * .8)}
/* type hero (Digital Media, 3D): the 3D words print on a plum sheet; the copy turns cream */
.hero-3d:has(>.stage-type){background:var(--deep)}
.hero-3d:has(>.stage-type) :is(h1,.lead,.eyebrow){color:var(--on-deep)}
.hero-3d:has(>.stage-type) .hero-3d-copy::before{display:none} /* the type sits right of the copy, nothing to scrim */
/* photos shot on a flat white/grey backdrop: seated on the plum mat so the box reads as a print on a mat, not a stray panel */
/* the mat hugs the photo itself (stacked drop-shadows grow its box), so contained tiles keep newsprint around it */
main img.on-mat{--m:clamp(8px,1.6vw,14px);padding:var(--m);box-sizing:border-box;background:none!important;
  filter:drop-shadow(var(--m) 0 0 var(--ink)) drop-shadow(calc(var(--m) * -1) 0 0 var(--ink)) drop-shadow(0 var(--m) 0 var(--ink)) drop-shadow(0 calc(var(--m) * -1) 0 var(--ink))}
.lightbox-stage img.on-mat{padding:0;filter:none}
/* one frame per image: on-mat images keep their plum mat and lose the 2px key line (AD Books ruling).
   Transparent, not removed, so the layout stays still. */
:is(.tile,.zoom):has(img.on-mat){border-color:transparent!important}
.tile:has(img.on-mat) .tile-label{border-top-color:transparent}
/* narrow phones (320): the wordmark shrinks so mark + name + menu button fit without sideways scroll */
.brand{min-width:0}
.brand span{white-space:nowrap;font-size:clamp(17px,5.6vw,24px)}
.home-hero .see-work{white-space:nowrap}
/* loading skeletons: anything that can arrive late keeps its box (width/height are set) and shows a slow print-proof
   sheen until it lands, then fades in; errors drop back to the plain surface. main.js adds/removes .sk-wait. */
main img.sk-wait,main video.sk-wait,main iframe.sk-wait{
  background:linear-gradient(110deg,rgb(43 16 48 / .07) 38%,rgb(243 238 228 / .85) 50%,rgb(43 16 48 / .07) 62%) 0 0/300% 100% var(--bg)!important;
  animation:sk 1.6s linear 4}
@keyframes sk{from{background-position:100% 0}to{background-position:0 0}}
.sk-in{animation:sk-in .3s ease-out}
@keyframes sk-in{from{opacity:0}}
@media (prefers-reduced-motion:reduce){main img.sk-wait,main video.sk-wait,main iframe.sk-wait{background:rgb(43 16 48 / .07)!important}}
/* Project index (Studio Work): every project x every discipline. Equal columns in a fixed alphabetical order, one mark
   size: no field reads as stronger (Eli). Rows wipe in with the reveal token, marks ink in after each row lands. */
.px{--mk:clamp(22px,3.6vw,58px);--gap:clamp(8px,1.4vw,20px);--px-cols:minmax(0,1.5fr) minmax(0,1fr) repeat(9,var(--mk))}
.px .lead{max-width:62ch}
.px-head,.px-row>a{display:grid;grid-template-columns:var(--px-cols);column-gap:var(--gap);align-items:center}
.px-head .px-marks,.px-row .px-marks{display:contents}
.px-head{margin-top:clamp(24px,4vw,44px);padding-bottom:10px;border-bottom:3px solid var(--ink);color:var(--ink);font-size:14px;font-weight:600;align-items:end}
.px-head .px-marks span{writing-mode:vertical-rl;transform:rotate(180deg);justify-self:center;white-space:nowrap;line-height:1}
.px-list{list-style:none;margin:0;padding:0}
.px-row{position:relative;border-bottom:1px solid var(--line)}
.px-row>a{min-height:56px;padding:10px 0;color:var(--ink);text-decoration:none}
.px-row>a:focus-visible{outline:3px solid var(--accent);outline-offset:-3px}
.px-name{font:400 clamp(19px,1.6vw,26px)/1.1 'Alfa Slab One',serif;overflow-wrap:anywhere}
.px-for{color:var(--ink-soft);font-size:15px;line-height:1.3}
.px-row i{display:grid;place-items:center;height:22px}
.px-row i::before{content:"";width:4px;height:4px;border-radius:50%;background:var(--line)}
.px-row i.on::before{width:14px;height:14px;background:var(--ink)}
.px-row>a:hover .px-name,.px-row>a:focus-visible .px-name{color:var(--accent)}
.px-row>a:hover i.on::before,.px-row>a:focus-visible i.on::before{background:var(--accent)}
.px-peek{position:absolute;z-index:3;top:50%;right:calc((var(--mk) + var(--gap)) * 9 + 12px);width:auto;max-width:200px;max-height:150px;
  object-fit:contain;padding:6px;background:var(--ink);pointer-events:none;opacity:0;transform:translate(-14px,-50%);
  transition:opacity .3s var(--rv-ease),transform .45s var(--rv-ease)}
.px-row:hover .px-peek,.px-row:focus-within .px-peek{opacity:1;transform:translate(0,-50%)}
main img.px-peek.on-mat{--m:6px} /* same 6px plum mat as every other peek (on-mat draws it with a filter) */
@media (max-width:700px){.px{--px-cols:minmax(0,1fr) repeat(9,var(--mk));--mk:clamp(17px,4.6vw,28px);--gap:2px}
  .px-head .px-for,.px-row .px-for.is-empty{display:none}.px-row .px-for{grid-column:1;grid-row:2;font-size:14px}.px-row i{grid-row:span 2}.px-head{font-size:14px}.px-row i.on::before{width:12px;height:12px}
  .px-peek{max-width:120px;max-height:90px;right:calc((var(--mk) + var(--gap)) * 9 + 8px)}}
@media (max-width:360px){.px{--mk:15px}.px .px-name{font-size:16px}} /* 320: longest word (Sweeeeet.com) fits whole */
/* "By the numbers" strip on a case study (CASE_NUMBERS in build.py) */
.nb{margin:0 0 clamp(28px,4vw,48px);border-top:3px solid var(--ink);border-bottom:1px solid var(--line)}
.nb>ul{list-style:none;margin:0;padding:clamp(16px,2.4vw,28px) 0;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,92px),1fr));gap:20px clamp(16px,3vw,48px)}
.nb-n{display:block;font:400 clamp(52px,6.4vw,96px)/.95 'Alfa Slab One',serif;color:var(--ink);font-variant-numeric:tabular-nums}
.nb-l{display:block;margin-top:8px;color:var(--ink);font-size:17px;font-weight:600;line-height:1.3}
.nb-bars{grid-column:1/-1}.nb-bars ul{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.nb-bar{display:grid;grid-template-columns:minmax(5.5em,max-content) 1fr;gap:14px;align-items:center;font-size:15px;color:var(--ink)}
.nb-bar b{font-weight:700}
.nb-bar i{display:block;height:14px;width:calc(var(--w) * 100%);border:2px solid var(--ink);transform-origin:left}
.nb-bar:last-child i{background:var(--ink)}
/* motion: armed by main.js only when motion is allowed; --d = the row's place in its batch */
.rv-arm .px-row>a{clip-path:inset(0 100% 0 0);transition:clip-path max(var(--rv-min),calc(var(--rv-w,540) / var(--rv-speed) * 1s)) var(--rv-ease) var(--d,0ms)}
.rv-arm .px-row.is-in>a{clip-path:inset(0)}
.rv-arm .px-row i.on::before{transform:scale(0);transition:transform .45s var(--rv-ease) calc(var(--d,0ms) + var(--rv-w,540) / var(--rv-speed) * .55s + var(--c) * 45ms),background .2s}
.rv-arm .px-row.is-in i.on::before{transform:none}
.rv-arm .nb-bar i{transform:scaleX(0);transition:transform var(--rv-dur) var(--rv-ease) calc(var(--d,0ms) + 200ms)}
.rv-arm .nb.is-in .nb-bar i{transform:none}
.rv-now [data-rv],.rv-now [data-rv] *,.rv-now [data-rv] *::before{transition:none!important}
@media (prefers-reduced-motion:reduce){.px-peek{transition:none}}
.info-card a[href^="mailto:"]{overflow-wrap:anywhere} /* the address is one long word: it may break rather than push the page sideways (About, 600-650) */
