*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 1rem/1.6 var(--body-font);
}
a { color: inherit; }
a:hover { color: var(--accent); }
button, select { font: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
h1, h2, h3 {
  font-family: var(--display-font);
  font-weight: 700;
  line-height: 0.98;
}
h2 { font-size: clamp(2.5rem, 5vw, 4.25rem); }
h3 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
.frame { width: min(calc(100% - 2 * var(--gutter)), var(--max)); margin-inline: auto; }
.skip { position: absolute; inset: 0 auto auto 1rem; translate: 0 -110%; z-index: 5; padding: 0.5rem 1rem; background: var(--text); color: var(--bg); }
.skip:focus { translate: 0 0; color: var(--bg); }
.masthead {
  min-height: 5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem 2rem;
  border-bottom: 1px solid var(--line);
}
.wordmark { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; white-space: nowrap; }
.wordmark:hover { color: var(--text); }
.wordmark-logo { width: 8.5rem; height: 2.75rem; object-fit: contain; object-position: left center; }
.wordmark-label { font: 0.75rem/1.1 var(--mono-font); letter-spacing: 0.12em; text-transform: uppercase; }
.masthead nav { display: flex; flex-wrap: wrap; gap: 0.1rem clamp(0.8rem, 2.3vw, 2rem); }
.masthead-actions { display: flex; align-items: center; gap: clamp(0.75rem, 1.8vw, 1.5rem); }
.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  min-height: 2.75rem;
  padding: 0.42rem 0.48rem;
  border: 1px solid var(--line);
  background: var(--bg);
  cursor: pointer;
}
.theme-toggle:hover { border-color: var(--accent); color: var(--text); }
.theme-toggle-swatch {
  width: 0.78rem;
  height: 0.78rem;
  border: 1px solid transparent;
  transition: opacity 180ms ease, filter 180ms ease, border-color 180ms ease;
}
.theme-toggle-swatch--violet { background: #8d78ff; }
.theme-toggle-swatch--coral { background: #ff6969; }
.theme-toggle[data-theme="violet"] .theme-toggle-swatch--violet {
  border-color: var(--text);
  opacity: 1;
  filter: none;
}
.theme-toggle[data-theme="violet"] .theme-toggle-swatch--coral {
  opacity: 0.38;
  filter: grayscale(.45) brightness(.72);
}
.theme-toggle[data-theme="coral"] .theme-toggle-swatch--coral {
  border-color: var(--text);
  opacity: 1;
  filter: none;
}
.theme-toggle[data-theme="coral"] .theme-toggle-swatch--violet {
  opacity: 0.38;
  filter: grayscale(.45) brightness(.72);
}
.masthead nav a {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--muted);
  font: 0.83rem/1 var(--mono-font);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.masthead nav a:hover, .masthead nav [aria-current] { color: var(--accent); }
#lektor-edit-link { top: auto !important; bottom: 0.75rem !important; }
.hero {
  margin-top: clamp(0.8rem, 2.2vw, 2rem);
  display: grid;
  grid-template-columns: minmax(0, 1.14fr) minmax(0, 0.86fr);
  border: 1px solid var(--line);
}
.hero-copy {
  position: relative;
  z-index: 1;
  align-self: center;
  padding: clamp(2rem, 5vw, 5rem) clamp(1.25rem, 4.2vw, 4.5rem);
}
.eyebrow, .project-meta, .case-facts dt, .project-filters label {
  color: var(--muted);
  font: 0.82rem/1.5 var(--mono-font);
  letter-spacing: 0.075em;
  text-transform: uppercase;
}
.eyebrow span, .footer span { color: var(--accent); }
.hero h1 {
  margin-block: clamp(1.1rem, 3vw, 2.2rem);
  font-size: clamp(2.55rem, 5.5vw, 5.85rem);
  line-height: 0.86;
  letter-spacing: -0.018em;
  text-transform: uppercase;
}
.hero h1 span { display: block; }
.hero h1 span + span { margin-top: 0.11em; color: var(--muted); }
.intro { max-width: 43ch; color: var(--muted); font-size: clamp(1.04rem, 1.8vw, 1.32rem); }
.hero .intro { max-width: 43ch; }
.hero-image {
  display: grid;
  position: relative;
  min-height: clamp(28rem, 46vw, 42rem);
  isolation: isolate;
  overflow: hidden;
  border-left: 1px solid var(--line);
  background: var(--panel);
}
.hero-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-image::after {
  content: "";
  position: absolute;
  pointer-events: none;
  inset: 1rem;
  background:
    linear-gradient(var(--muted), var(--muted)) left top / 18px 1px no-repeat,
    linear-gradient(var(--muted), var(--muted)) left top / 1px 18px no-repeat,
    linear-gradient(var(--muted), var(--muted)) right bottom / 18px 1px no-repeat,
    linear-gradient(var(--muted), var(--muted)) right bottom / 1px 18px no-repeat;
  opacity: 0.75;
}
.reticle {
  position: absolute;
  inset: auto auto 2rem 2rem;
  width: 1.25rem;
  height: 1.25rem;
  border: 1px solid var(--muted);
  border-radius: 50%;
  opacity: 0.55;
}
.reticle::before, .reticle::after { content: ""; position: absolute; background: var(--muted); }
.reticle::before { width: 1.75rem; height: 1px; left: 50%; top: 50%; translate: -50%; }
.reticle::after { height: 1.75rem; width: 1px; left: 50%; top: 50%; translate: 0 -50%; }
.actions { display: flex; flex-wrap: wrap; gap: 0.65rem; margin-top: clamp(1.5rem, 3.2vw, 2.5rem); }
.button {
  display: inline-flex;
  min-height: 2.9rem;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.05rem;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
  font: 0.82rem/1.3 var(--mono-font);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.045em;
}
.button:hover { border-color: var(--accent); color: var(--accent); }
.button--primary { color: var(--ink); background: var(--accent-fill); border-color: var(--accent-fill); }
.button--primary:hover { color: var(--ink); background: var(--accent); }
.section { margin-block: var(--section-gap); }
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  margin-bottom: 1.5rem;
}
.text-link { text-underline-offset: 0.32em; text-decoration-color: var(--accent); }
.video {
  position: relative;
  display: grid;
  grid-template-areas: "player";
  place-items: center;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: radial-gradient(ellipse at center, var(--line), var(--panel) 67%);
  border: 1px solid var(--line);
}
.video > * { grid-area: player; }
.video--reel { aspect-ratio: 2.2; }
.video--reel .video-poster { object-position: center 25%; filter: none; }
.video--reel:has(iframe) { aspect-ratio: 16 / 9; }
.video-poster, .video iframe { position: absolute; inset: 0; border: 0; width: 100%; height: 100%; }
.video-poster { object-fit: cover; filter: brightness(0.69); }
.video-play {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 3.25rem;
  padding: 0.65rem 1rem;
  border: 1px solid var(--muted);
  background: var(--bg);
  color: var(--text);
  font: 0.9rem/1 var(--mono-font);
  cursor: pointer;
}
.video-play:hover { color: var(--accent); border-color: var(--accent); }
.play-symbol { width: 0; height: 0; border: 0.4rem solid transparent; border-right: 0; border-left: 0.65rem solid var(--accent); }
.video-link { display: inline-block; margin-top: 0.5rem; font-size: 0.9rem; color: var(--muted); }
.project-grid, .service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.project-card { border: 1px solid var(--line); }
.project-link { display: block; height: 100%; text-decoration: none; }
.project-link:hover { color: var(--text); }
.project-link:hover .project-title, .project-link:focus-visible .project-title { color: var(--accent); }
.project-media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--panel); border-bottom: 1px solid var(--line); }
.project-media img { width: 100%; height: 100%; object-fit: cover; }
.media-placeholder { width: 100%; height: 100%; background: linear-gradient(140deg, var(--panel), var(--line)); }
.project-text { padding: clamp(0.9rem, 2.2vw, 1.55rem); }
.project-meta { display: flex; justify-content: space-between; gap: 0.7rem; color: var(--accent); font-size: 0.76rem; }
.project-meta span:last-child { color: var(--muted); white-space: nowrap; }
.project-title { margin: 0.6rem 0 0.55rem; font-size: clamp(1.75rem, 3vw, 2.5rem); }
.project-summary, .service-grid p, .contact-strip p { color: var(--muted); }
.work-heading-study { position: relative; overflow: hidden; }
.work-heading-study canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}
.home-service {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(4rem, 7vw, 6.5rem);
  grid-template-rows: auto 1fr;
  gap: 0.8rem;
  align-items: start;
  padding: clamp(0.9rem, 2vw, 1.35rem);
  border: 1px solid var(--line);
  background: var(--panel);
}
.home-service h3 { align-self: center; font-size: clamp(1.6rem, 3vw, 2.25rem); }
.home-service p { grid-column: 1 / -1; }
.contact-strip p { margin-top: 0.75rem; }
.home-service-thumbnail {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid var(--line);
  background: var(--bg);
}
.services-hero {
  display: grid;
  margin-top: clamp(1.25rem, 4vw, 3.5rem);
  border: 1px solid var(--line);
  background: var(--panel);
}
.services-hero--with-image { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); }
.services-hero-copy { align-self: center; padding: clamp(1.35rem, 4vw, 3.6rem); }
.services-hero-copy h1 {
  max-width: 11ch;
  margin-top: 0.6rem;
  font-size: clamp(3rem, 6.2vw, 6.5rem);
  overflow-wrap: anywhere;
}
.services-hero-copy .intro { margin-top: 1rem; }
.services-hero-media { display: grid; grid-template-rows: 1fr auto; min-width: 0; border-left: 1px solid var(--line); }
.services-hero-media img { width: 100%; height: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.services-hero-media figcaption {
  padding: 0.55rem 0.9rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font: 0.8rem/1.4 var(--mono-font);
}
.services-proof {
  max-width: none;
  margin-top: 0.75rem;
  padding: 0.7rem 1rem;
  border-left: 2px solid var(--accent);
}
.services-proof strong { color: var(--text); }
.services-offerings { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.service-card { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); scroll-margin-top: 1.25rem; }
.service-card-media { aspect-ratio: 16 / 8; border-bottom: 1px solid var(--line); }
.service-card-media img { width: 100%; height: 100%; object-fit: cover; }
.service-card-copy { flex: 1; display: flex; flex-direction: column; align-items: flex-start; padding: clamp(1.1rem, 3vw, 1.8rem); }
.service-card-heading { display: flex; align-items: center; gap: clamp(0.7rem, 2vw, 1.2rem); }
.service-icon {
  flex: none;
  width: clamp(2.75rem, 6vw, 4.5rem);
  height: auto;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  background: var(--bg);
}
.service-card-copy p { max-width: 53ch; margin-top: 0.75rem; margin-bottom: 1.1rem; color: var(--muted); }
.service-card-copy a { margin-top: auto; }
@media (max-width: 55rem) {
  .services-hero--with-image { grid-template-columns: minmax(0, 1fr); }
  .services-hero-media { border-top: 1px solid var(--line); border-left: 0; }
}
@media (max-width: 44rem) {
  .services-offerings { grid-template-columns: minmax(0, 1fr); }
}
.contact-strip {
  display: flex;
  justify-content: space-between;
  gap: 1.2rem;
  flex-wrap: wrap;
  align-items: center;
  padding-block: 1.35rem;
  border-block: 1px solid var(--line);
}
.page-heading { padding-block: clamp(2.5rem, 7.5vw, 6rem) clamp(1.5rem, 4vw, 3rem); }
.page-heading h1 { font-size: clamp(3.5rem, 10vw, 8.25rem); overflow-wrap: anywhere; }
.page-heading .intro { margin-top: 0.95rem; }
.page-heading .eyebrow { margin-block: 1.25rem 0.55rem; }
.page-body { margin-bottom: var(--section-gap); }
.page-body--with-photo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, min(35%, 27rem));
  align-items: start;
  gap: clamp(1.5rem, 5vw, 4rem);
}
.page-photo { border: 1px solid var(--line); }
.page-photo img { width: 100%; }
.prose { max-width: 66ch; color: var(--muted); }
.prose > * + * { margin-top: 1rem; }
.prose h2 { margin-top: 2.2rem; font-size: clamp(2rem, 4vw, 3rem); color: var(--text); }
.prose a { color: var(--text); text-decoration-color: var(--accent); text-underline-offset: 0.23em; overflow-wrap: anywhere; }
.prose a:hover { color: var(--accent); }
.prose code,
.page-details code {
  display: inline-block;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: pre-wrap;
  vertical-align: bottom;
}
.prose pre,
.page-details pre {
  max-width: 100%;
  overflow-x: auto;
  padding: 0.85rem;
  border: 1px solid var(--line);
  background: var(--bg);
  white-space: pre;
}
.page-details { min-width: 0; }
.resource-heading h1 { max-width: 16ch; font-size: clamp(3rem, 8vw, 7rem); }
.resource-index {
  padding: 0.9rem 1.15rem;
  border: 1px solid var(--line);
  background: var(--panel);
}
.resource-index ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.resource-directory { margin-top: clamp(2rem, 5vw, 4rem); }
.resource-group {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 1rem clamp(1.25rem, 5vw, 4.5rem);
  padding-block: clamp(1.5rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
}
.resource-group h2 { font-size: clamp(2.1rem, 4vw, 3.5rem); scroll-margin-top: 1.25rem; }
.resource-group h3 { color: var(--text); font-size: 1.6rem; }
.resource-group :is(ul, ol) { padding-inline-start: 1.2rem; }
.resource-group li + li { margin-top: 0.45rem; }
@media (max-width: 47rem) {
  .resource-group { grid-template-columns: minmax(0, 1fr); }
}
.case-media img { width: 100%; max-height: 44rem; object-fit: contain; background: var(--panel); }
.case-media figcaption { color: var(--muted); margin-top: 0.6rem; font-size: 0.88rem; }
.case-grid { margin-block: clamp(1.8rem, 4vw, 3.5rem) var(--section-gap); display: grid; grid-template-columns: 2fr 1fr; gap: 2.25rem; }
.case-facts { border-top: 1px solid var(--line); }
.case-facts > div { padding-block: 0.65rem; border-bottom: 1px solid var(--line); }
.case-facts dt { color: var(--accent); }
.case-facts dd { margin-top: 0.25rem; }
.case-award { width: min(100%, 11rem); height: auto; margin-top: 0.75rem; border: 1px solid var(--line); background: #fff; }
.case-details { max-width: 60rem; margin-bottom: var(--section-gap); }
.case-details > * + * { margin-top: 1rem; }
.case-service {
  display: flex;
  align-items: center;
  gap: clamp(0.7rem, 2vw, 1.25rem);
  width: fit-content;
  max-width: 100%;
  margin-bottom: var(--section-gap);
  padding: 0.75rem clamp(0.75rem, 2.5vw, 1.25rem);
  border: 1px solid var(--line);
  background: var(--panel);
  text-decoration: none;
}
.case-service:hover { border-color: var(--accent); }
.case-service-copy { display: grid; gap: 0.2rem; }
.case-service-label { color: var(--muted); font: 0.75rem/1.4 var(--mono-font); text-transform: uppercase; }
.case-service-name { font: 700 clamp(1.35rem, 3vw, 1.75rem)/1.05 var(--display-font); }
.case-service .service-icon { width: 3rem; }
.case-service > [aria-hidden] { color: var(--accent); }
.media-pending { color: var(--muted); }
.project-gallery > .media-pending { margin-top: 0.75rem; }
.gallery-frame--placeholder, .video-placeholder {
  background: linear-gradient(135deg, var(--panel), var(--bg));
}
.video-placeholder {
  display: grid;
  place-items: center;
  min-height: clamp(6rem, 15vw, 10rem);
  padding: 1rem;
  border: 1px solid var(--line);
}
.page-details {
  display: grid;
  gap: clamp(1rem, 3vw, 1.75rem);
  margin-block: clamp(1.5rem, 4vw, 3rem) var(--section-gap);
}
.page-details > .video { max-width: 60rem; }
.envelope-diagram {
  max-width: 52rem;
  padding: clamp(0.85rem, 3vw, 1.6rem);
  border: 1px solid var(--line);
  background: var(--panel);
}
.envelope-diagram figcaption strong { font: 700 clamp(1.5rem, 3vw, 2rem)/1 var(--display-font); }
.envelope-diagram figcaption p { margin-top: 0.5rem; max-width: 62ch; color: var(--muted); }
.envelope-plot {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  align-items: center;
  gap: 0.4rem clamp(0.6rem, 2vw, 1.25rem);
  margin-top: 1.25rem;
  font: 0.75rem/1.4 var(--mono-font);
  color: var(--muted);
}
.envelope-axis-title { grid-column: 2; color: var(--text); }
.envelope-axis { grid-column: 2; display: flex; justify-content: space-between; }
.envelope-track {
  position: relative;
  height: clamp(1.8rem, 5vw, 2.8rem);
  border: 1px solid var(--line);
  background:
    repeating-linear-gradient(to right, transparent 0 calc(12.5% - 1px), var(--line) calc(12.5% - 1px) 12.5%),
    var(--bg);
}
.envelope-shape {
  position: absolute;
  inset: 0.25rem auto 0 var(--start);
  width: var(--duration);
  background: linear-gradient(to bottom, var(--text), #585d64);
  clip-path: polygon(0 100%, 18% 12%, 65% 12%, 100% 100%);
}
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
  grid-template-rows: auto 1fr;
  align-items: start;
  gap: 1.35rem clamp(1.5rem, 5.5vw, 5rem);
  margin-block: clamp(1.75rem, 5vw, 4.25rem) var(--section-gap);
}
.contact-heading { padding-block: clamp(0rem, 1.5vw, 1.25rem) 0; }
.contact-heading h1 { max-width: 12ch; font-size: clamp(3.25rem, 7vw, 7rem); }
.contact-details { border-top: 1px solid var(--line); padding-top: 1rem; }
.contact-panel {
  grid-area: 1 / 2 / span 2;
  padding: clamp(1rem, 2.75vw, 2.15rem);
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: 2px solid var(--accent);
}
.contact-panel h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
.contact-form { display: grid; gap: 0.65rem; margin-top: 1.1rem; }
.contact-form label { margin-top: 0.35rem; }
.contact-form input, .contact-form textarea {
  width: 100%;
  min-width: 0;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
  font: inherit;
}
.contact-form textarea { resize: vertical; }
.contact-form button { justify-self: start; }
.contact-form button:disabled { opacity: 0.55; cursor: not-allowed; }
.contact-captcha:not(:empty) { margin-top: 0.5rem; }
.contact-status { color: var(--muted); }
@media (max-width: 49rem) {
  .contact-layout { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; }
  .contact-panel { grid-area: auto; }
}
.local-video {
  width: min(100%, 38rem);
  border: 1px solid var(--line);
  background: var(--panel);
}
.local-video--portrait { width: min(100%, 23rem, 47dvh); }
.local-video video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: var(--bg);
}
.local-video--portrait video { aspect-ratio: 9 / 16; }
.local-video figcaption {
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.local-video figcaption strong { color: var(--text); }
.local-video figcaption a { display: inline-block; margin-top: 0.6rem; color: var(--text); }
.local-video figcaption a:hover { color: var(--accent); }

.lab-section { margin-bottom: var(--section-gap); }
.lab-cards, .lab-tools, .lab-featured { display: grid; gap: 1rem; }
.lab-section .local-video { width: 100%; }
.lab-featured .local-video {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: center;
  background: linear-gradient(115deg, var(--panel), var(--bg));
}
.lab-featured .local-video video {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  width: min(100%, 34rem);
}
.lab-featured .local-video--portrait video { width: min(100%, 17rem); }
.lab-featured .local-video figcaption {
  grid-column: 1;
  grid-row: 1;
  padding: clamp(1.2rem, 5vw, 4rem);
  border: 0;
}
.lab-featured figcaption strong {
  display: block;
  max-width: 15ch;
  margin-bottom: 0.7rem;
  font: 700 clamp(2.25rem, 6vw, 5.75rem) / 0.96 var(--display-font);
  overflow-wrap: anywhere;
}
.lab-featured figcaption p { max-width: 39ch; }
.video-feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  border: 1px solid var(--line);
  background: var(--panel);
}
.video-feature-copy {
  align-self: center;
  min-width: 0;
  padding: clamp(1.15rem, 4vw, 3.75rem);
}
.video-feature-copy h3 { font-size: clamp(2.2rem, 5vw, 4.6rem); }
.video-feature-copy p { max-width: 42ch; margin-top: 0.8rem; color: var(--muted); }
.video-feature-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.15rem;
  margin-top: 1.25rem;
}
.video-feature-actions .button { gap: 0.5rem; }
.video-feature-actions .play-symbol { border-left-color: currentColor; }
.video-feature-art { min-width: 0; background: #000; border-left: 1px solid var(--line); }
.video-feature-art img {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center 25%;
  filter: brightness(1.4);
}
.video-feature-dialog {
  width: min(94vw, 68rem);
  max-width: none;
  max-height: 94vh;
  max-height: 94dvh;
  padding: 0.75rem;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--text);
}
.video-feature-dialog--portrait { width: min(94vw, 29rem); }
.video-feature-dialog::backdrop { background: rgb(0 0 0 / 86%); }
.video-feature-dialog form { display: flex; justify-content: flex-end; margin-bottom: 0.75rem; }
.video-feature-dialog video {
  display: block;
  width: 100%;
  max-height: 75vh;
  max-height: 75dvh;
  margin-inline: auto;
  background: #000;
  object-fit: contain;
}
.lab-tools { gap: clamp(1.5rem, 4vw, 3rem); }
.lab-tool-feature .lab-card {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: stretch;
}
.lab-tool-feature .lab-card-image { border-bottom: 0; border-right: 1px solid var(--line); }
.lab-tool-feature .lab-card-copy {
  align-content: center;
  grid-template-rows: auto auto auto;
  padding: clamp(1rem, 4vw, 3rem);
}
.lab-tool-feature h3 { font-size: clamp(2.25rem, 5vw, 4.25rem); }
.lab-tool-group > h3 {
  border-top: 1px solid var(--line);
  padding-top: 0.8rem;
  margin-bottom: 1rem;
}
.lab-tool-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lab-tool-grid h4 {
  margin: 0;
  font: 700 clamp(1.45rem, 2.8vw, 2rem)/1.05 var(--display-font);
}
.lab-studio { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lab-card { display: flex; flex-direction: column; border: 1px solid var(--line); background: var(--panel); }
.lab-card-image { aspect-ratio: 16 / 9; border-bottom: 1px solid var(--line); }
.lab-card-image img { width: 100%; height: 100%; object-fit: cover; }
.lab-card-copy {
  flex: 1;
  display: grid;
  grid-template-rows: auto 1fr auto;
  justify-items: start;
  gap: 0.6rem;
  padding: 1rem;
}
.lab-card-copy p { grid-row: 2; color: var(--muted); }
.lab-card-copy a { grid-row: 3; }
.lab-tool-grid .lab-card-copy:has(.lab-card-image) {
  grid-template-columns: minmax(0, 1fr) clamp(4.5rem, 10vw, 6.5rem);
}
.lab-tool-grid .lab-card-image {
  grid-area: 1 / 2;
  align-self: start;
  width: 100%;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
  background: var(--bg);
}
.lab-tool-grid .lab-card-image img {
  object-fit: contain;
  filter: grayscale(1) contrast(1.08);
}
.lab-tool-grid .lab-card-copy p, .lab-tool-grid .lab-card-copy a { grid-column: 1 / -1; }
@media (max-width: 62rem) {
  .lab-studio, .lab-tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 54rem) {
  .video-feature { grid-template-columns: minmax(0, 1fr); }
  .video-feature-art { border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 43rem) {
  .lab-featured .local-video, .lab-tool-feature .lab-card { grid-template-columns: minmax(0, 1fr); }
  .lab-tool-feature .lab-card-image { border-right: 0; border-bottom: 1px solid var(--line); }
  .lab-featured .local-video figcaption { grid-row: 1; }
  .lab-featured .local-video video { grid-column: 1; grid-row: 2; justify-self: center; }
  .lab-featured .local-video--portrait video { width: min(100%, 15rem); }
}
@media (max-width: 39rem) {
  .lab-studio, .lab-tool-grid { grid-template-columns: minmax(0, 1fr); }
}
.project-gallery {
  margin-bottom: var(--section-gap);
  padding-top: clamp(1.15rem, 3vw, 2rem);
  border-top: 1px solid var(--line);
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 1.25rem;
}
.gallery-card { min-width: 0; border: 1px solid var(--line); background: var(--panel); }
.gallery-frame {
  display: block;
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--bg);
}
.gallery-frame img { width: 100%; height: 100%; object-fit: contain; }
.gallery-expand {
  position: absolute;
  right: 0.5rem;
  bottom: 0.5rem;
  padding: 0.05rem 0.55rem;
  background: var(--bg);
  border: 1px solid var(--line);
}
.gallery-frame:hover .gallery-expand, .gallery-frame:focus-visible .gallery-expand { border-color: var(--accent); }
.gallery-caption { display: grid; padding: 0.6rem 0.85rem; color: var(--muted); font-size: 0.9rem; }
.journal-entries .gallery-viewer .gallery-caption { gap: 0.4rem; }
.journal-entries .gallery-viewer .gallery-caption :is(h2, h3) {
  color: var(--text);
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.05;
}
.gallery-viewer {
  width: min(94vw, 76rem);
  max-width: none;
  max-height: 94vh;
  max-height: 94dvh;
  padding: 0.75rem;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
}
.gallery-viewer::backdrop { background: rgb(0 0 0 / 86%); }
.gallery-stage {
  --preview-height: clamp(9rem, 62vh, 48rem);
  display: grid;
  place-items: center;
  height: var(--preview-height);
  background: var(--panel);
}
@supports (height: 1dvh) {
  .gallery-stage { --preview-height: clamp(9rem, 62dvh, 48rem); }
}
.gallery-image-frame { position: relative; display: flex; max-width: 100%; }
.gallery-image-frame > img { width: auto; max-height: var(--preview-height); object-fit: contain; }
.gallery-image-controls {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.gallery-image-step {
  display: flex;
  align-items: center;
  padding: 0 clamp(0.35rem, 1.6vw, 1rem);
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}
.gallery-image-step + .gallery-image-step { justify-content: flex-end; }
.gallery-image-step span {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--muted);
  background: rgb(9 10 12 / 88%);
  font: 1.2rem/1 var(--mono-font);
}
.gallery-image-step:hover span,
.gallery-image-step:focus-visible span { border-color: var(--accent); color: var(--accent); }
.gallery-image-step:focus-visible { outline-offset: -2px; }
.gallery-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  padding-block: 0.4rem;
}
.gallery-toolbar p { color: var(--muted); }
@media (max-width: 64rem) {
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 38rem) {
  .gallery-grid { grid-template-columns: minmax(0, 1fr); }
}
.project-filters { display: flex; flex-wrap: wrap; gap: 0.55rem 1rem; align-items: center; margin-bottom: 1.2rem; }
.project-filters select { min-height: 2.75rem; padding: 0.25rem 0.7rem; background: var(--panel); color: var(--text); border: 1px solid var(--line); }
.project-archive-toggle { display: inline-flex; min-height: 2.75rem; align-items: center; gap: 0.55rem; cursor: pointer; }
.project-archive-toggle input { margin: 0; width: 1.05rem; height: 1.05rem; accent-color: var(--accent-fill); }
.result-status { color: var(--muted); }
.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem 1rem;
  padding-block: 1.1rem 1.8rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font: 0.83rem/1.6 var(--mono-font);
}
.footer-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.1rem; }
.footer a { text-underline-offset: 0.25em; }

@media (max-width: 65rem) {
  .hero-image { min-height: 25rem; }
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 47rem) {
  .page-body--with-photo { grid-template-columns: 1fr; }
  .page-photo { grid-row: 1; width: min(100%, 24rem); }
  .masthead { padding-top: 1.1rem; align-items: flex-start; flex-direction: column; gap: 0.25rem; }
  .masthead-actions { width: 100%; justify-content: space-between; align-items: flex-end; }
  .hero { grid-template-columns: 1fr; }
  .hero-image { min-height: 0; aspect-ratio: 1.45; border-left: 0; border-top: 1px solid var(--line); }
  .hero h1 { font-size: clamp(2.55rem, 9.2vw, 5.25rem); }
  .hero-image img { object-position: 50% 45%; }
  .video--reel { aspect-ratio: 16 / 9; }
  .case-grid, .service-grid { grid-template-columns: 1fr; }
}
@media (max-width: 38rem) {
  .project-grid { grid-template-columns: 1fr; }
}


.hero--project { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.hero--project .hero-copy {
  align-self: stretch;
  display: grid;
  align-content: center;
  isolation: isolate;
  padding: clamp(1.25rem, 3.6vw, 3.75rem);
}
.hero--project h1 { margin-block: clamp(1rem, 2vw, 1.6rem); font-size: clamp(2.55rem, 5.1vw, 5.5rem); }
.hero--project .intro { font-size: clamp(1.04rem, 1.5vw, 1.17rem); }
.hero--project .actions { margin-top: clamp(1rem, 2vw, 1.5rem); }
.hero-signature {
  position: absolute;
  inset: auto 0 0 auto;
  z-index: -1;
  width: min(43%, 13rem);
  opacity: 0.25;
  mask-image: radial-gradient(ellipse at 72% 78%, #000 18%, transparent 72%);
}
.hero-project { display: grid; grid-template-rows: minmax(0, 1fr) auto; min-width: 0; border-left: 1px solid var(--line); }
.hero-project-shot { display: block; position: relative; min-height: clamp(20rem, 35vw, 35rem); background: var(--bg); }
.hero-project-shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-project figcaption { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 0.75rem 1.1rem; border-top: 1px solid var(--line); }
.hero-project-link { display: grid; place-items: center; flex: none; width: 2.75rem; height: 2.75rem; color: var(--accent); text-decoration: none; }
.hero-project-link:hover { color: var(--text); }

[data-series-accent] { --series-accent: var(--muted); }
[data-series-accent="teal"] { --series-accent: #8bd3cc; }
[data-series-accent="olive"] { --series-accent: #bccd92; }
[data-series-accent="gold"] { --series-accent: #e9c483; }
[data-series-accent="violet"] { --series-accent: #c8a5e3; }
[data-series-accent="blue"] { --series-accent: #8ec9e6; }
[data-series-accent="clay"] { --series-accent: #eaa997; }
.journal-heading { position: relative; isolation: isolate; overflow: hidden; }
.journal-heading > p:first-child:not(.intro) { margin-bottom: 1.1rem; }
.journal-index { margin-top: 0; }
.journal-series-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.journal-series-card { display: block; min-width: 0; color: var(--text); background: var(--panel); border: 1px solid var(--line); text-decoration: none; }
.journal-series-card:hover { color: var(--text); border-color: var(--series-accent); }
.journal-series-image { aspect-ratio: 2.3; }
.journal-series-image img, .journal-note img, .journal-process img { width: 100%; height: 100%; object-fit: cover; }
.journal-series-copy { display: flex; justify-content: space-between; align-items: start; gap: 1rem; padding: clamp(1rem, 2.3vw, 1.6rem); border-top: 2px solid var(--series-accent); }
.journal-series-copy p { margin-top: 0.5rem; color: var(--muted); }
.journal-series-copy span, .journal-context, .journal-step strong { color: var(--series-accent); }
.journal-entries { margin-bottom: var(--section-gap); }
.journal-entry { scroll-margin-top: 1rem; min-width: 0; border: 1px solid var(--line); background: var(--panel); overflow-wrap: anywhere; }
.journal-entry--lead { border-top-color: var(--series-accent); }
.journal-entry-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.journal-entry-grid > .journal-entry--stacked { grid-column: 1 / -1; }
.journal-note > .gallery-frame, .journal-process .gallery-frame { border-bottom: 1px solid var(--line); }
.journal-note .gallery-frame img { object-fit: cover; }
.journal-note--portrait > .gallery-frame { aspect-ratio: auto; }
.journal-note--portrait > .gallery-frame img { height: auto; }
.journal-entry--lead .journal-note { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 3fr); align-items: center; }
.journal-entry--lead .journal-note .gallery-frame { border-right: 1px solid var(--line); border-bottom: 0; }
.journal-entry--lead .journal-note--portrait {
  grid-template-columns: minmax(0, min(44%, 29rem)) minmax(0, 1fr);
}
.journal-entry--lead .journal-note--portrait .journal-entry-copy { max-width: 42rem; }
.journal-entry-copy, .journal-step { display: grid; gap: 0.55rem; padding: clamp(0.85rem, 2.6vw, 1.65rem); }
.journal-entry--lead .journal-entry-copy { padding: clamp(1rem, 3vw, 2rem); }
.journal-note-body, .journal-step p, .journal-credit { color: var(--muted); }
.journal-note-body > * + * { margin-top: 0.6rem; }
.journal-credit { font-size: 0.88rem; }
.journal-process { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); border-top: 1px solid var(--line); }
.journal-process > figure + figure { border-left: 1px solid var(--line); }
.journal-step strong { font: 700 clamp(1.45rem, 3vw, 2.05rem)/1 var(--display-font); }
.journal-build-note, .journal-entry-video { border-top: 1px solid var(--line); background: var(--bg); }
.journal-entry-video { padding: clamp(0.85rem, 2.6vw, 1.65rem); }
.journal-build-note .journal-note-body { max-width: 68ch; }

@media (max-width: 58rem) {
  .hero--project { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-project-shot img { object-fit: contain; }
  .journal-entry--lead .journal-note { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
}
@media (max-width: 47rem) {
  .hero--project,
  .journal-entry--lead .journal-note,
  .journal-entry--lead .journal-note--portrait { grid-template-columns: minmax(0, 1fr); }
  .hero-project { border-left: 0; border-top: 1px solid var(--line); }
  .hero-project-shot { min-height: 0; aspect-ratio: 16 / 10; }
  .hero-project-shot img { object-fit: cover; }
  .masthead nav { column-gap: 0.65rem; }
  .masthead nav a { font-size: 0.77rem; }
  .hero--project h1 { font-size: clamp(2.55rem, 9.2vw, 5.25rem); }
  .journal-entry--lead .journal-note .gallery-frame { border-right: 0; border-bottom: 1px solid var(--line); }
  .journal-entry-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 38rem) {
  .journal-series-grid { grid-template-columns: minmax(0, 1fr); }
  .journal-process { grid-auto-flow: row; grid-auto-columns: auto; }
  .journal-process > figure + figure { border-left: 0; border-top: 1px solid var(--line); }
}


.framed-heading {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: center;
  min-height: clamp(14rem, 23vw, 20rem);
  margin-block: clamp(1.2rem, 3.1vw, 2.6rem) clamp(1.4rem, 3vw, 2.3rem);
  padding: 0;
  border-block: 1px solid var(--line);
  isolation: isolate;
}
.framed-heading-copy { padding: clamp(1.35rem, 3.2vw, 3rem) 1.25rem clamp(1.35rem, 3.2vw, 3rem) 0; }
.framed-heading h1 { font-size: clamp(3.4rem, 7.5vw, 7.25rem); }
.framed-heading-art {
  position: absolute;
  inset: 0 0 0 auto;
  width: 45.45%;
  overflow: hidden;
  z-index: -1;
}
.framed-heading-art img { width: 100%; height: 100%; object-fit: cover; }
.framed-heading--journal .framed-heading-art {
  opacity: 0.58;
  mask-image: linear-gradient(90deg, transparent, #000 48%, #000 80%, transparent);
}
.framed-heading--work .framed-heading-art {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 0.45rem;
  align-content: stretch;
  padding: 0.65rem 0;
}
.work-heading-study {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-width: 0;
  min-height: 0;
  border: 1px solid var(--line);
  background: var(--panel);
}
.work-heading-image {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.work-heading-image--crossfade {
  opacity: 0;
  transition: opacity var(--work-crossfade-duration, 3s) linear;
  pointer-events: none;
}
.work-heading-study canvas {
  grid-area: 1 / 1;
}
.work-heading-study .eyebrow {
  margin: 0;
  font-size: clamp(0.66rem, 1.05vw, 0.76rem);
  text-align: center;
}
.work-heading-control {
  display: grid;
  align-items: stretch;
  min-height: 4.75rem;
  padding: 0.45rem 0.48rem 0.38rem;
  border-top: 1px solid var(--line);
}
.work-control-label {
  position: relative;
  display: grid;
  align-content: end;
  min-width: 0;
  min-height: 3.75rem;
  text-align: center;
  cursor: ns-resize;
}
.work-control-label::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: var(--control-position);
  height: 1px;
  background: var(--accent);
  pointer-events: none;
}
.work-control-label input {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ns-resize;
  writing-mode: vertical-lr;
  direction: rtl;
}
.work-control-label .eyebrow {
  position: relative;
  z-index: 1;
}
.framed-heading--lab .framed-heading-art {
  background:
    repeating-linear-gradient(90deg, transparent 0 31px, rgb(137 155 180 / 15%) 31px 32px),
    repeating-linear-gradient(0deg, transparent 0 31px, rgb(137 155 180 / 15%) 31px 32px),
    #0c1017;
  mask-image: linear-gradient(90deg, transparent, #000 27%);
}
.framed-heading--lab img {
  filter: grayscale(1) sepia(0.4) hue-rotate(166deg) saturate(0.9) brightness(1.22);
  mix-blend-mode: screen;
  object-position: 65% 36%;
}
.lab-frame-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.journal-wave-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  pointer-events: none;
  mix-blend-mode: screen;
}
.framed-heading--journal { margin-bottom: 0; border-bottom: 0; }

.about-heading { padding-block: clamp(2rem, 5vw, 4rem); margin-bottom: clamp(1.5rem, 4vw, 3rem); border-bottom: 1px solid var(--line); }
.about-heading--with-portrait {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, min(41%, 28rem));
  gap: clamp(1.25rem, 4vw, 4rem);
  align-items: center;
}
.about-heading h1 { font-size: clamp(3.5rem, 9vw, 8.25rem); }
.about-portrait { background: var(--panel); border: 1px solid var(--line); }
.about-portrait-frame { aspect-ratio: 5 / 4; }
.about-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center 34%; }
.about-heading .about-portrait figcaption { margin: 0; border-top: 1px solid var(--line); padding: 0.65rem 0.9rem; }

@media (min-width: 54rem) {
  .about-bio {
    max-width: 136ch;
    column-count: 2;
    column-gap: clamp(2.5rem, 6vw, 5rem);
    column-rule: 1px solid var(--line);
  }
  .about-bio h2 { break-after: avoid-column; }
  .about-bio p { break-inside: avoid-column; }
}

@media (max-width: 47rem) {
  .framed-heading { grid-template-columns: minmax(0, 1fr); min-height: auto; }
  .framed-heading-art { position: relative; inset: auto; width: 100%; height: clamp(5rem, 19vw, 8rem); }
  .framed-heading--work .framed-heading-art { height: auto; padding-top: 0; }
  .work-heading-study img { height: auto; aspect-ratio: 4 / 5; }
  .framed-heading--lab .framed-heading-art { border-top: 1px solid var(--line); mask-image: linear-gradient(90deg, transparent, #000 33%); }
  .framed-heading--lab img { object-position: 72% 29%; }
  .framed-heading--journal .framed-heading-art { position: absolute; inset: 0 0 0 auto; height: 100%; width: 52%; opacity: 0.31; }
  .about-heading--with-portrait { grid-template-columns: minmax(0, 1fr); }
  .about-portrait { width: min(100%, 28rem); }
}
