@font-face {
  font-family: Manrope;
  src: url('manrope-latin.woff2') format('woff2');
  font-weight: 400 800;
  font-display: swap;
}

@font-face { font-family: 'Bodoni Moda'; src: url('demo-ribbon.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Space Grotesk'; src: url('demo-strata.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Exo 2'; src: url('demo-orbit.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Barlow Condensed'; src: url('demo-section.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Bricolage Grotesque'; src: url('demo-signal.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: Silkscreen; src: url('demo-dither.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Instrument Serif'; src: url('demo-pavilion.woff2') format('woff2'); font-weight: 400; font-display: swap; }

:root {
  color-scheme: light;
  --paper: #f4f4f4;
  --ink: #191919;
  --muted: #555;
  --line: #cecece;
  --gutter: clamp(1.25rem, 5vw, 5rem);
  --section-space: clamp(3.75rem, 7.5vw, 7rem);
  font-family: Manrope, system-ui, sans-serif;
  font-size: 100%;
  color: var(--ink);
  background: var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
h1, h2, h3, p, figure { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
[id] { scroll-margin-top: 1.5rem; }

.shell {
  width: min(100% - var(--gutter) * 2, 77.5rem);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 2;
  inset: .75rem auto auto .75rem;
  transform: translateY(-160%);
  background: var(--ink);
  color: var(--paper);
  padding: .75rem 1rem;
}

.skip-link:focus { transform: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.site-header { border-bottom: 1px solid var(--line); }

.header-inner {
  min-height: 4.75rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.5rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  width: max-content;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -.065em;
  text-decoration: none;
}

.studio-mark {
  flex: none;
  width: 2rem;
  height: 2rem;
  margin-right: .55rem;
  object-fit: contain;
}

.header-inner nav { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(1rem, 3vw, 2.5rem); }
.header-inner nav a { padding-block: .4rem; font-size: .875rem; font-weight: 700; text-decoration: none; }
.header-inner nav a:hover { text-decoration: underline; text-underline-offset: .3em; }
.header-inner > .button { justify-self: end; }

.button {
  display: inline-flex;
  min-height: 2.875rem;
  align-items: center;
  justify-content: center;
  padding: .65rem 1.05rem;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: .875rem;
  font-weight: 800;
  text-decoration: none;
}

.button-outline { border-color: #aaa; }
.button-outline:hover { background: #e5e5e5; border-color: #888; }
.button-dark { background: var(--ink); color: var(--paper); }
.button-dark:hover { background: #3b3b3b; }
.button-light { background: var(--paper); color: var(--ink); }
.button-light:hover { background: #d7d7d7; }
.button-dark:focus-visible { outline-color: var(--ink); }
.button-light:focus-visible { outline-color: var(--paper); }

.text-link {
  font-size: .875rem;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: .36em;
  text-decoration-color: #888;
}

.text-link:hover { text-decoration-color: currentColor; }

.eyebrow {
  font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace;
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: .065em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--muted);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.5rem, 4.25vw, 4.25rem);
  padding-block: clamp(2.75rem, 5.2vw, 5rem) clamp(3rem, 4.5vw, 4.5rem);
}

.hero-copy { padding-bottom: 1.5rem; }

h1 {
  font-size: clamp(3.35rem, 6.45vw, 6.5rem);
  line-height: .99;
  letter-spacing: -.075em;
  word-spacing: .035em;
  font-weight: 800;
  margin-left: -.045em;
  margin-right: -.045em;
}

.hero-intro {
  max-width: 28rem;
  margin-top: 1.75rem;
  font-size: clamp(1rem, 1.35vw, 1.1875rem);
  line-height: 1.65;
  color: var(--muted);
}

.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 1.4rem; margin-top: 1.75rem; }

.hero-stage {
  position: relative;
  display: grid;
  aspect-ratio: 1.22;
  place-items: center;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid #d3d3d3;
  background: radial-gradient(ellipse at 46% 38%, #f4f4f4 0%, #e6e6e6 52%, #d8d8d8 100%);
}

.hero-stage::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(#1919190d 1px, transparent 1px), linear-gradient(90deg, #1919190d 1px, transparent 1px);
  background-position: center;
  background-size: 2.75rem 2.75rem;
  mask-image: radial-gradient(ellipse, #0002, #000);
}

.hero-stage::after {
  content: '';
  position: absolute;
  z-index: -1;
  width: 52%;
  height: 8%;
  top: 82%;
  left: 25%;
  border-radius: 50%;
  background: #19191965;
  filter: blur(clamp(7px, 1vw, 14px));
}

.hero-stage img { position: relative; width: 100%; height: 100%; object-fit: contain; }
.crop { position: absolute; width: .625rem; height: .625rem; border: 1px solid #777; }
.crop-tl { top: .875rem; left: .875rem; border-width: 1px 0 0 1px; }
.crop-tr { top: .875rem; right: .875rem; border-width: 1px 1px 0 0; }
.crop-bl { bottom: .875rem; left: .875rem; border-width: 0 0 1px 1px; }
.crop-br { bottom: .875rem; right: .875rem; border-width: 0 1px 1px 0; }
.hero-figure figcaption { display: flex; justify-content: space-between; gap: .75rem; margin-top: .7rem; }
.hero-figure figcaption span:last-child { text-align: right; }
.hero-figure .study-name { font: var(--demo-weight) 1rem / 1.15 var(--demo-display); text-transform: none; letter-spacing: 0; }

.section { padding-block: var(--section-space); }
.studies { background: #eaeaea; border-block: 1px solid var(--line); padding-block: clamp(3.25rem, 5.4vw, 5.25rem); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 1.25rem 2rem; margin-bottom: clamp(1.625rem, 3.5vw, 3rem); }
.section h2, .site-footer h2 { font-size: clamp(2.6rem, 5.1vw, 5rem); line-height: 1; letter-spacing: -.072em; word-spacing: .035em; font-weight: 800; }
.section h2 { margin-left: -.045em; }
.section h2:not(:first-child), .site-footer h2 { margin-top: .65rem; }
.section article > p:not(.eyebrow) { color: var(--muted); font-size: 1rem; line-height: 1.65; }
.studies-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.75rem, 3.5vw, 2.75rem) clamp(.875rem, 2vw, 1.5rem); }

.study-stage {
  position: relative;
  display: grid;
  isolation: isolate;
  overflow: hidden;
  aspect-ratio: 45 / 32;
  border: 1px solid #0002;
}

.study-stage img { grid-area: 1 / 1; width: 100%; height: 100%; min-width: 0; min-height: 0; object-fit: cover; }
.scene-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.scene-stage.is-playing img { opacity: 0; }
.scene-stage.is-interactive canvas { cursor: grab; touch-action: none; }
.scene-stage.is-interactive.is-dragging canvas { cursor: grabbing; }
.scene-stage canvas:focus-visible { outline: 2px solid #f4f4f4; outline-offset: -5px; box-shadow: inset 0 0 0 5px #191919; }
.study-stage.strata { background: radial-gradient(ellipse at 45% 32%, #586db7, #233464 76%); }
.study-stage.orbit {
  background-image: linear-gradient(#502b6125 1px, transparent 1px), linear-gradient(90deg, #502b6125 1px, transparent 1px), radial-gradient(ellipse, #f7dfff, #c49ad4);
  background-size: 1.8rem 1.8rem, 1.8rem 1.8rem, 100% 100%;
  background-position: center;
}
.study-stage.signal { background: radial-gradient(ellipse, #31786d, #123734 79%); }
.study-stage.dither { background: #1c1427; }
.study-stage.dither :is(canvas, img) { image-rendering: pixelated; }
.study-stage.pavilion { background: #ffecd1; }
.study-stage.pavilion :is(canvas, img) { filter: sepia(.78); }
.study-stage.section-view {
  background-image: linear-gradient(#ffc86a27 1px, transparent 1px), linear-gradient(90deg, #ffc86a27 1px, transparent 1px), radial-gradient(ellipse, #634a25, #231a10);
  background-size: 1.7rem 1.7rem, 1.7rem 1.7rem, 100% 100%;
  background-position: center;
}
.study-stage.section-view :is(canvas, img) { filter: sepia(.85) saturate(1.65); }

.study-open-button {
  display: grid;
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  align-items: end;
  justify-items: end;
  padding: .75rem;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.study-open-button span {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid #888;
  border-radius: 50%;
  background: #f4f4f4;
}

.study-open-button:hover span { background: #dedede; }
.study-open-button:focus-visible { outline: 2px solid #f4f4f4; outline-offset: -4px; box-shadow: inset 0 0 0 4px #191919; }
.scene-stage .study-open-button[aria-busy='true'] { cursor: progress; }
.study-open-button span::before { content: ''; width: 13px; height: 13px; background: linear-gradient(currentColor, currentColor) center / 2px 100% no-repeat, linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat; }

.study-title { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .3rem .75rem; margin: .9rem 0 .25rem; }
.study-title h3 { color: var(--study-title-color); font: var(--demo-weight, 700) 1.65rem / 1.05 var(--demo-display, Manrope); letter-spacing: var(--demo-tracking, -.035em); }
[data-study='dither'] .study-title h3 { font-size: 1.38rem; }
[data-study='pavilion'] .study-title h3 { font-size: 1.85rem; }
.study-status:empty { display: none; }
.study-status:not(:empty) { margin-top: .5rem; color: var(--muted); line-height: 1.65; }

.selected-work { background: #efefef; border-top: 1px solid var(--line); }
.work-feature, .work-portfolio {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  align-items: center;
  gap: clamp(1.5rem, 4.6vw, 4rem);
  padding-block: clamp(1.5rem, 3.25vw, 3rem);
  border-top: 1px solid var(--line);
}

.work-feature-copy h3 { margin-bottom: .55rem; font-size: clamp(1.9rem, 4.4vw, 4rem); line-height: 1; letter-spacing: -.075em; }
.work-feature-copy .eyebrow { margin-bottom: .6rem; }
.work-feature-copy > p:not(.eyebrow), .project-contact p, .case-detail p { max-width: 34rem; color: var(--muted); line-height: 1.65; }
.work-feature-copy > .text-link { display: inline-block; margin-top: .9rem; }
.work-portfolio .work-feature-copy h3 { font-size: clamp(1.75rem, 3.5vw, 2.9rem); }

.project-frame {
  min-width: 0;
  border: 1px solid #8886;
  background: #191919;
}

.project-frame img { display: block; width: 100%; height: auto; object-fit: contain; }

.project-contact { border-top: 1px solid var(--line); margin-top: 1.35rem; padding-top: 1.15rem; }
.project-contact p { font-size: .9375rem; }
.project-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem 1rem; margin-top: .75rem; }
.work-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) minmax(8.5rem, .5fr);
  gap: .75rem 1.5rem;
  align-items: center;
  padding-block: 1.5rem;
  border-block: 1px solid var(--line);
}

.work-row h3, .service-list h3 { font-size: clamp(1.3rem, 2.3vw, 1.8rem); font-weight: 800; line-height: 1.15; letter-spacing: -.06em; }
.work-row a { justify-self: end; }
.services { background: #dedede; }
.services-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.18fr); gap: 2rem; }
.services-terms { max-width: 28rem; margin: 1.35rem 0 0; padding-inline-start: 1.2rem; color: var(--muted); line-height: 1.6; }
.services-terms li + li { margin-top: .45rem; }
.service-list { border-top: 1px solid #bcbcbc; }
.service-list article { padding-block: 1.35rem; border-bottom: 1px solid #bcbcbc; }
.service-list h3 { margin-bottom: .45rem; }

.site-footer { background: var(--ink); color: var(--paper); padding-block: 3.75rem 1.4rem; }
.site-footer .eyebrow { color: #bfbfbf; }
.footer-cta { display: flex; align-items: end; justify-content: space-between; gap: 1.5rem 2rem; margin-bottom: clamp(2.75rem, 6vw, 5rem); }
.footer-cta > div:last-child { display: flex; flex-direction: column; align-items: start; gap: 1rem; }
.contact-intro { margin-top: 1rem; max-width: 29rem; color: #c9c9c9; line-height: 1.6; }
.footer-meta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .75rem; border-top: 1px solid #505050; padding-top: 1.25rem; }
.footer-meta p { font-size: .875rem; color: #bfbfbf; }

.case-study { padding-block: clamp(2rem, 5vw, 4rem) var(--section-space); }
.case-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1.2rem 2rem; padding-block: clamp(2rem, 5vw, 3.5rem) 1.5rem; }
.case-heading .eyebrow { margin-bottom: .65rem; }
.case-intro { max-width: 36rem; }
.case-intro p { color: var(--muted); font-size: clamp(1.05rem, 1.6vw, 1.25rem); line-height: 1.55; }
.case-study .project-frame { margin-bottom: clamp(1.5rem, 4.5vw, 3.75rem); }
.case-detail { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: .75rem 2rem; padding-block: 1.5rem; border-top: 1px solid var(--line); }
.case-detail:last-child { border-bottom: 1px solid var(--line); }
.case-detail h2 { font-size: clamp(1.3rem, 2.8vw, 2.25rem); line-height: 1.14; letter-spacing: -.06em; }
.case-intro .text-link { display: inline-block; margin-top: .65rem; }
.case-detail p + p { margin-top: .85rem; }

body.study-open { overflow: hidden; }

.study-detail {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
  border: 0;
  color: var(--ink);
  background: var(--paper);
  scroll-behavior: auto;
  scrollbar-gutter: stable;
}

.study-detail::backdrop { background: transparent; }

.detail-bar {
  position: sticky;
  z-index: 3;
  top: 0;
  display: flex;
  justify-content: end;
  height: 0;
  padding: 0 clamp(1rem, 2.1vw, 2rem);
  pointer-events: none;
}

.detail-bar button {
  display: grid;
  place-items: center;
  flex: 0 0 2.75rem;
  width: 2.75rem;
  height: 2.75rem;
  margin-top: 1rem;
  padding: 0 0 .13rem;
  border: 1px solid #2929293b;
  border-radius: 50%;
  background: #f4f4f4;
  color: #212121;
  box-shadow: 0 2px 12px #19191920;
  font: 1.65rem / 1 system-ui, sans-serif;
  cursor: pointer;
  pointer-events: auto;
}

.detail-bar button:hover { background: #dedede; }
.detail-bar button:focus-visible { outline-color: #f4f4f4; box-shadow: 0 0 0 4px #191919; }

.demo-site {
  min-height: 100%;
  background: var(--demo-paper);
  color: var(--demo-ink);
  font-family: var(--demo-reading, Manrope, system-ui, sans-serif);
}

:is([data-study='ribbon'], [data-theme='ribbon']) {
  --demo-paper: #eef0e5;
  --demo-ink: #222b20;
  --demo-muted: #4d5b46;
  --demo-line: #a4af9b;
  --demo-accent: #38513a;
  --demo-accent-ink: #f6f7ef;
  --demo-display: 'Bodoni Moda', Georgia, serif;
  --demo-weight: 500;
  --demo-tracking: -.055em;
  --study-title-color: #38513a;
}
:is([data-study='strata'], [data-theme='strata']) {
  --demo-paper: #171f3b;
  --demo-ink: #f2f2ff;
  --demo-muted: #c2ccf0;
  --demo-line: #6575ac;
  --demo-accent: #b5c1ff;
  --demo-accent-ink: #172044;
  --demo-display: 'Space Grotesk', system-ui, sans-serif;
  --study-title-color: #303e83;
}
:is([data-study='orbit'], [data-theme='orbit']) {
  --demo-paper: #24152e;
  --demo-ink: #fff0fe;
  --demo-muted: #dec6e3;
  --demo-line: #86698f;
  --demo-accent: #f5aced;
  --demo-accent-ink: #351840;
  --demo-display: 'Exo 2', system-ui, sans-serif;
  --study-title-color: #633670;
}
:is([data-study='section'], [data-theme='section']) {
  --demo-paper: #292117;
  --demo-ink: #fff3df;
  --demo-muted: #e1c9a5;
  --demo-line: #8c7658;
  --demo-accent: #ffca6f;
  --demo-accent-ink: #30220c;
  --demo-display: 'Barlow Condensed', system-ui, sans-serif;
  --demo-tracking: .01em;
  --study-title-color: #63451b;
}
:is([data-study='signal'], [data-theme='signal']) {
  --demo-paper: #d9eee9;
  --demo-ink: #153732;
  --demo-muted: #365e55;
  --demo-line: #86aca2;
  --demo-accent: #00604e;
  --demo-accent-ink: #edfef7;
  --demo-display: 'Bricolage Grotesque', system-ui, sans-serif;
  --study-title-color: #00604e;
}
:is([data-study='dither'], [data-theme='dither']) {
  --demo-paper: #311924;
  --demo-ink: #ffe8df;
  --demo-muted: #edc1b6;
  --demo-line: #986e79;
  --demo-accent: #ffab91;
  --demo-accent-ink: #39182a;
  --demo-display: Silkscreen, ui-monospace, monospace;
  --demo-reading: ui-monospace, 'Cascadia Mono', Consolas, monospace;
  --demo-weight: 400;
  --demo-tracking: -.06em;
  --study-title-color: #813d57;
}
:is([data-study='pavilion'], [data-theme='pavilion']) {
  --demo-paper: #f7ecdb;
  --demo-ink: #372a20;
  --demo-muted: #6a5344;
  --demo-line: #bba28c;
  --demo-accent: #913c27;
  --demo-accent-ink: #ffefe2;
  --demo-display: 'Instrument Serif', Georgia, serif;
  --demo-weight: 400;
  --demo-tracking: -.025em;
  --study-title-color: #913c27;
}

@media (max-width: 60rem) {
  .hero { gap: 1.25rem; }
  .hero-copy { padding-bottom: 0; }
  .study-title { align-items: start; }
}

@media (max-width: 46rem) {
  .header-inner { grid-template-columns: 1fr auto; gap: .75rem; padding-block: .8rem; }
  .header-inner nav { grid-row: 2; grid-column: 1 / -1; gap: 1.5rem; }
  .header-inner > .button { grid-area: 1 / 2; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  h1 { font-size: clamp(3.15rem, 11.5vw, 5.5rem); }
  .hero-stage { aspect-ratio: 1.35; }
  .section-heading, .footer-cta { flex-direction: column; align-items: start; }
  .services-inner { grid-template-columns: minmax(0, 1fr); }
  .studies-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 1.75rem; }
  .work-feature, .work-portfolio, .case-detail { grid-template-columns: minmax(0, 1fr); }
  .work-row { grid-template-columns: minmax(0, 1fr) auto; }
  .work-row p { grid-row: 2; grid-column: 1 / -1; }
}

@media (max-width: 32rem) {
  .studies-grid { grid-template-columns: minmax(0, 1fr); }
  .work-row { grid-template-columns: minmax(0, 1fr); }
  .work-row a { justify-self: start; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
