@font-face {
  font-family: Instrument Sans;
  src: url('/fonts/instrument-sans.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: Instrument Serif;
  src: url('/fonts/instrument-serif-italic.woff2') format('woff2');
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: IBM Plex Mono;
  src: url('/fonts/ibm-plex-mono.woff2') format('woff2');
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #f4efe5;
  --muted: #d9d0bf;
  --amber: #e8ba83;
  --line: #e8d7bc50;
  --paper: #e9dfcf;
  --paper-ink: #242922;
  --paper-muted: #475047;
  --gutter: clamp(1.45rem, 6.6vw, 8.5rem);
  --header-height: 5.25rem;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  color: var(--ink);
  font-family: 'Instrument Sans', Arial, sans-serif;
  font-weight: 400;
  background: #171a18;
  font-synthesis: none;
  overscroll-behavior-y: none;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
button, a, video { -webkit-tap-highlight-color: transparent; }
button, a { color: inherit; }
a { text-decoration: none; }
button { font: inherit; cursor: pointer; }
button[hidden], [hidden] { display: none !important; }
button:focus-visible, a:focus-visible, video:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 6px;
}
::selection { color: #13120e; background: var(--amber); }

.skip {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 20;
  padding: .8rem 1rem;
  color: #15140f;
  background: var(--ink);
  transform: translateY(-180%);
}
.skip:focus { transform: none; }

.world {
  position: fixed;
  z-index: -1;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  background: #1b211f url('/studio.webp') center / cover no-repeat;
}
body[data-chapter='intelligence'] .world:not([data-live]) { background-image: url('/studio-study.webp'); }
body[data-chapter='privacy'] .world:not([data-live]) { background-image: url('/studio-closed.webp'); }

#studio-view {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity .65s ease;
}
.world[data-live] #studio-view { opacity: 1; }

.world-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #101512fb, #101512d1 20%, #10151265 40%, #1015120e 60%, transparent 75%),
    radial-gradient(ellipse at 66% 40%, transparent 27%, #1015123d 82%, #10151285),
    linear-gradient(180deg, #1418158c, transparent 20%, transparent 69%, #111613a8);
}

.world-shade::before, .world-shade::after {
  content: '';
  position: absolute;
  inset: 0;
}
.world-shade::before {
  opacity: var(--theater-shade, 0);
  background: linear-gradient(90deg, #121713fb, #121713e4 32%, #121713bc 100%),
    linear-gradient(180deg, #101511a6, transparent, #101511bf);
}
.world-shade::after {
  opacity: var(--privacy-shade, 0);
  background: linear-gradient(90deg, #101411fa, #101411dc 21%, #10141184 45%, transparent 76%),
    linear-gradient(180deg, #101411b6, transparent 22%, transparent 73%, #101411c4);
}

.masthead {
  position: fixed;
  inset: 0 0 auto;
  z-index: 5;
  min-height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: .9rem var(--gutter);
  background: linear-gradient(180deg, #131713dd, #13171300);
}

.brand {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  padding: .35rem 0;
  font-size: .94rem;
  letter-spacing: .22em;
  font-weight: 600;
}
.brand-mark { flex: none; color: var(--amber); }
.masthead-nav { display: flex; align-items: center; gap: clamp(1rem, 2.7vw, 3rem); }
.masthead-nav a {
  position: relative;
  padding: .7rem 0;
  color: var(--muted);
  font-size: .92rem;
  white-space: nowrap;
  transition: color .2s ease;
}
.masthead-nav a:hover, .masthead-nav a[aria-current] { color: var(--ink); }
.masthead-nav a[aria-current]::after {
  content: '';
  position: absolute;
  bottom: .25rem;
  left: 0;
  width: 1rem;
  height: 1px;
  background: var(--amber);
}
.demo-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.7rem;
  padding: .55rem 1.05rem;
  color: var(--amber);
  border: 1px solid #e5b87d87;
  border-radius: 0;
  background: #1c1a13a8;
  font-size: .86rem;
  font-weight: 600;
  white-space: nowrap;
  transition: color .2s ease, background .2s ease, border-color .2s ease;
}
.demo-action:hover {
  color: #181611;
  border-color: var(--amber);
  background: var(--amber);
}
.demo-action--solid {
  margin-top: 1.6rem;
  color: #181611;
  border-color: var(--amber);
  background: var(--amber);
}
.demo-action--solid:hover { color: var(--ink); background: #30271e; }

.chapter { position: relative; min-height: 109svh; }
.chapter--hero { min-height: 112svh; }
.chapter--intelligence { min-height: 117svh; }
.chapter--films { min-height: 119svh; }
.chapter--privacy { min-height: 102svh; }
.chapter-frame {
  position: sticky;
  top: 0;
  min-height: 100svh;
  padding: calc(var(--header-height) + 3.75rem) var(--gutter) 5.25rem;
  display: flex;
  align-items: center;
}
.chapter-content { width: 100%; }
body[data-enhanced] .chapter-content {
  opacity: var(--chapter-opacity, 0);
  transform: translateY(var(--chapter-shift, 0px));
}
body[data-enhanced] .chapter--hero .chapter-content { opacity: var(--chapter-opacity, 1); }
.chapter-content:focus-within { opacity: 1 !important; transform: none !important; }

.hero-copy { margin-top: -1.65rem; }
.eyebrow {
  display: flex;
  align-items: center;
  gap: .7rem;
  margin: 0 0 1.45rem;
  font-family: var(--mono);
  font-size: .78rem;
  line-height: 1.5;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--amber);
}
.eyebrow-tick { display: block; width: 1.65rem; height: 1px; background: currentColor; }

h1, h2 { margin: 0; font-weight: 500; word-spacing: .055em; text-wrap: balance; }
h1 {
  font-size: clamp(4.55rem, 8.04vw, 9.6rem);
  line-height: .79;
  letter-spacing: -.064em;
}
h1 em, h2 em {
  font-family: 'Instrument Serif', Georgia, serif;
  font-weight: 400;
  letter-spacing: -.04em;
  color: #e7d2b1;
}
h1 em { display: inline-block; font-size: 1.17em; margin-top: .12em; }
h2 {
  font-size: clamp(3.8rem, 7vw, 7.4rem);
  line-height: .9;
  letter-spacing: -.059em;
}
h2 em { font-size: 1.15em; margin-inline-start: .025em; }
.standfirst {
  max-width: 28rem;
  margin: 1.7rem 0 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 1.3vw, 1.3rem);
  line-height: 1.55;
}
.hero-copy .standfirst { margin-top: 2.05rem; max-width: 28.5rem; }
.hero-copy strong { color: var(--ink); font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem 1.35rem; margin-top: 1.7rem; }
.hero-actions :is(.demo-action, .text-action) { margin-top: 0; }
.story-copy { max-width: 38rem; }
.story-copy h2 { text-wrap: initial; }
.chapter--intern .story-copy { max-width: 34rem; }
.desk-excerpt {
  max-width: 25rem;
  margin: 1.55rem 0 0;
  padding: .3rem 0 .35rem 1rem;
  border-left: 1px solid var(--amber);
}
.desk-excerpt blockquote {
  margin: 0;
  color: var(--ink);
  font: italic clamp(1.35rem, 2vw, 1.84rem)/1.1 'Instrument Serif', Georgia, serif;
}
.desk-excerpt figcaption { margin-top: .62rem; color: var(--muted); font: .72rem/1.4 var(--mono); }

.text-action {
  display: inline-flex;
  position: relative;
  align-items: center;
  gap: .7rem;
  margin-top: 1.55rem;
  padding: .68rem 0;
  color: var(--ink);
  font-size: .87rem;
  font-weight: 600;
  letter-spacing: .03em;
}
.text-action::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: var(--amber);
  transform-origin: left;
  transition: transform .24s ease;
}
.text-action:hover::after { transform: scaleX(.56); }
.hero-caption {
  position: absolute;
  bottom: 2.1rem;
  left: var(--gutter);
  display: none;
  align-items: center;
  gap: .75rem;
  font: .73rem/1.25 var(--mono);
  letter-spacing: .07em;
  color: var(--muted);
  text-transform: uppercase;
}
.world[data-live] ~ main .hero-caption { display: flex; }
body:not([data-chapter='studio']) .hero-caption { visibility: hidden; }
.hero-caption > span:first-child { width: .36rem; height: .36rem; background: var(--amber); }

.navigation-rail {
  position: fixed;
  z-index: 4;
  right: clamp(.8rem, 2.25vw, 3.2rem);
  top: 50%;
  display: grid;
  justify-items: end;
  transform: translateY(-50%);
}

.navigation-rail a {
  display: grid;
  justify-items: end;
  align-items: center;
  width: 2rem;
  height: 1.8rem;
}
.navigation-rail a::after {
  content: '';
  width: .45rem;
  height: 1px;
  background: #f2e6d28f;
  transition: width .22s ease, background .22s ease;
}
.navigation-rail a:hover::after, .navigation-rail a[aria-current]::after {
  width: 1.16rem;
  background: var(--amber);
}
.motion-toggle {
  position: fixed;
  z-index: 5;
  right: var(--gutter);
  bottom: 1.45rem;
  padding: .55rem .68rem;
  display: flex;
  align-items: center;
  gap: .55rem;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 0;
  background: #191d19df;
  font: .72rem/1.25 var(--mono);
}
.motion-toggle:hover { color: var(--ink); border-color: var(--amber); }
.motion-toggle span:first-child { width: .53rem; height: .61rem; border-inline: 1px solid var(--amber); }
.motion-toggle[aria-pressed='true'] span:first-child {
  border: 0;
  background: var(--amber);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}
.flow-controls {
  display: inline-flex;
  gap: .4rem .5rem;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 1.85rem;
  padding: .26rem;
  border: 1px solid var(--line);
  background: #1c211bbd;
}
.flow-controls button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .52rem;
  min-height: 2.52rem;
  padding: .55rem .78rem;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: .93rem;
}
.flow-controls button:hover, .flow-controls button[aria-pressed='true'] {
  border-color: #e1b88b75;
  background: #e8ba8314;
  color: var(--ink);
}
[data-workflow='0'] { --flow-ink: #efd1a1; }
[data-workflow='1'] { --flow-ink: #b8d0bd; }
[data-workflow='2'] { --flow-ink: #e7ad8f; }
.flow-controls button::before { content: ''; width: .39rem; height: .39rem; background: var(--flow-ink); }
.flow-detail { min-height: 5.45rem; margin-top: 1.15rem; max-width: 25rem; }
.flow-route {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .55rem;
  list-style: none;
  margin: .9rem 0 0;
  padding: 0;
  color: var(--muted);
  font: .76rem/1.38 var(--mono);
}
.flow-route li { display: flex; align-items: center; gap: .55rem; }
.flow-route li + li::before { content: ''; width: .64rem; height: 1px; background: var(--line); }
.flow-route[data-step='0'] li:nth-child(1),
.flow-route[data-step='1'] li:nth-child(2),
.flow-route[data-step='2'] li:nth-child(3) { color: var(--amber); }
.flow-film { margin-top: .76rem; }
.study-pins { position: fixed; z-index: 2; inset: 0; pointer-events: none; }
.study-pin {
  position: absolute;
  top: var(--pin-y);
  left: var(--pin-x);
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  padding: .2rem .15rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  transform: translate(-.75rem, -50%);
  pointer-events: auto;
  font: .78rem/1.25 var(--mono);
}
.study-pin::before {
  content: '';
  flex: 0 0 1.2rem;
  width: 1.2rem;
  height: 1.2rem;
  border: 1px solid var(--flow-ink);
  border-radius: 50%;
  background: radial-gradient(circle, var(--flow-ink) 0 .16rem, #151a16e6 .21rem);
  box-shadow: 0 0 0 .18rem #151a168f;
}
.study-pin span {
  display: flex;
  align-items: center;
  gap: .4rem;
  white-space: nowrap;
  min-height: 1.84rem;
  padding: .25rem .51rem;
  margin-left: 1.17rem;
  background: #1b211cf2;
  border: 1px solid #f5efdd59;
}
.study-pin span::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 1.43rem;
  width: 1rem;
  height: 1px;
  background: var(--flow-ink);
}
.study-pin[data-workflow='2'] { flex-direction: row-reverse; transform: translate(calc(-100% + .75rem), -50%); }
.study-pin[data-workflow='2'] span { margin: 0 1.17rem 0 0; }
.study-pin[data-workflow='2'] span::before { inset-inline: auto 1.43rem; }
.study-pin:hover span, .study-pin[aria-pressed='true'] span { color: var(--flow-ink); border-color: var(--flow-ink); }

.theater {
  display: grid;
  grid-template-columns: minmax(15rem, .70fr) minmax(0, 1.63fr);
  grid-template-areas: 'heading display' 'controls display';
  gap: 1.45rem clamp(1.7rem, 4.6vw, 5.5rem);
  align-items: start;
}
.theater-heading { grid-area: heading; align-self: end; }
.theater h2 { font-size: clamp(3.45rem, 5.95vw, 6.55rem); max-width: 10ch; }
.theater .standfirst { max-width: 22rem; margin-top: 1.25rem; font-size: 1.05rem; }
.theater-controls { grid-area: controls; width: min(100%, 25rem); }
.theater-display { grid-area: display; }
body[data-enhanced] .chapter--films .theater { opacity: 1; transform: none; }
body[data-enhanced] .theater :is(.theater-heading, .theater-controls, .film-caption) {
  opacity: var(--chapter-opacity, 0);
  transform: translateY(var(--chapter-shift, 0px));
}
body[data-enhanced] .theater:focus-within :is(.theater-heading, .theater-controls, .film-caption, .screen-frame) {
  opacity: 1;
  transform: none !important;
}
.screen-frame {
  position: relative;
  aspect-ratio: 8 / 5;
  overflow: hidden;
  background: #20261f;
  outline: 1px solid #e7dbc86b;
  box-shadow: 0 25px 74px #0a0c09ac;
  transform-origin: top left;
}
body[data-enhanced] .screen-frame {
  opacity: var(--screen-alpha, var(--chapter-opacity, 0));
  filter: brightness(var(--screen-light, 1));
}
body[data-enhanced] .screen-frame[style*='matrix3d'] { outline: 0; box-shadow: none; }
.screen-frame video { display: block; width: 100%; height: 100%; object-fit: contain; }
.screen-frame video:focus-visible { outline-offset: -3px; }
.screen-frame video::cue { color: #fff7e9; background: #211f19e8; }
.film-start {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  inset: auto auto clamp(.7rem, 2.2vw, 1.45rem) clamp(.7rem, 2.2vw, 1.45rem);
  border: 1px solid #eee1caaf;
  padding: .72rem 1.08rem .72rem .88rem;
  color: #f7efde;
  background: #1f251e;
  border-radius: 0;
  box-shadow: 0 6px 26px #0004;
  white-space: nowrap;
  font-size: .93rem;
  font-weight: 600;
}
.film-start:hover { color: #181611; background: var(--amber); }
.film-caption {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: .8rem 1.4rem;
  margin-top: 1.10rem;
  color: var(--muted);
}
.film-caption p { margin: 0; font-size: .96rem; line-height: 1.5; }
.film-caption .screen-meta {
  display: flex;
  align-items: center;
  gap: .64rem;
  font: .72rem/1.35 var(--mono);
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--amber);
}
.screen-meta span + span { border-left: 1px solid var(--line); padding-left: .64rem; color: var(--muted); }
.film-caption h3 { margin: .28rem 0 .12rem; color: var(--ink); font-size: 1.18rem; font-weight: 600; }
.film-actions { display: grid; flex: none; justify-items: start; gap: .7rem; padding-top: .33rem; }
.film-caption .text-action {
  margin: 0;
  padding: 0 .05rem .25rem 0;
  white-space: nowrap;
  border: 0;
  background: transparent;
}
.film-error { display: block; margin-top: .75rem; color: var(--amber); }
.film-groups {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .25rem;
  margin-bottom: .64rem;
  padding: .22rem;
  background: #151a159c;
  border: 1px solid var(--line);
}
.film-groups button {
  min-height: 2.45rem;
  padding: .32rem;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: .87rem;
  font-weight: 500;
}
.film-groups button:hover { color: var(--ink); }
.film-groups button[aria-pressed='true'] {
  border-color: #bc9c6961;
  background: #dabb812b;
  color: var(--ink);
}
.film-picker { display: grid; justify-items: stretch; }
.film-picker button {
  display: grid;
  grid-template-columns: 3.18rem 1fr auto;
  gap: .66rem;
  align-items: center;
  text-align: left;
  min-height: 3.1rem;
  padding: .44rem .58rem;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-left: 2px solid transparent;
  color: var(--muted);
  background: #17201840;
  transition: background .2s ease, color .2s ease;
  font-size: .95rem;
}
.film-picker button:first-child { border-top: 1px solid var(--line); }
.film-picker button:hover, .film-picker button[aria-pressed='true'] { color: var(--ink); background: #bba4791f; }
.film-picker button[aria-pressed='true'] { border-left-color: var(--amber); }
.film-picker button img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #fff5df4f;
  opacity: .70;
  filter: saturate(.83);
}
.film-picker button:hover img, .film-picker button[aria-pressed='true'] img { opacity: 1; }
.film-length { font: .73rem/1.25 var(--mono); color: var(--muted); }

.chapter--privacy h2 { max-width: 10ch; font-size: clamp(3.4rem, 6.45vw, 6.95rem); }
.privacy-details { display: grid; max-width: 27rem; padding: 0; margin: 1.7rem 0 0; }
.privacy-details div { padding: .66rem 0 .68rem; border-top: 1px solid var(--line); }
.privacy-details dt { margin-bottom: .16rem; color: var(--ink); font-size: 1rem; font-weight: 600; }
.privacy-details dd { margin: 0; color: var(--muted); font-size: .99rem; line-height: 1.42; }
.chapter--privacy .text-action { margin-top: .65rem; }

.chapter--services {
  display: grid;
  align-items: center;
  min-height: 100svh;
  padding: clamp(7rem, 11vw, 11rem) var(--gutter) clamp(5rem, 8vw, 8.5rem);
  background: #202822;
  border-top: 1px solid #a68c624a;
}
body[data-enhanced] :is(.chapter--services, .chapter--visit) .chapter-content { opacity: 1; transform: none; }
.services-content, .visit-content {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, .92fr);
  gap: 2.9rem clamp(2rem, 9vw, 11rem);
  align-items: center;
  max-width: 91rem;
  margin-inline: auto;
}
.services-content h2 { max-width: 11ch; }
.services-intro .demo-action { margin-top: 1.45rem; }
.service-offerings { margin: 0; }
.service-offerings div { padding: 1.05rem 0 1.15rem; border-top: 1px solid var(--line); }
.service-offerings div:last-child { border-bottom: 1px solid var(--line); }
.service-offerings dt { margin-bottom: .34rem; color: var(--ink); font-size: 1.12rem; font-weight: 600; }
.service-offerings dd { margin: 0; max-width: 29rem; color: var(--muted); line-height: 1.55; }

.chapter--visit {
  color-scheme: light;
  display: grid;
  align-items: center;
  min-height: 90svh;
  padding: clamp(6.7rem, 12vw, 13rem) var(--gutter) clamp(5rem, 8vw, 9rem);
  color: var(--paper-ink);
  background: var(--paper);
  border-top: 1px solid #bca374;
}
.visit-content .eyebrow { color: #735132; }
.visit-content h2 { font-size: clamp(3.45rem, 7.4vw, 7.8rem); }
.visit-content h2 em { color: #4a554a; }
.visit-content .standfirst { max-width: 29rem; color: var(--paper-muted); }
.visit-content .demo-action--solid {
  min-height: 2.85rem;
  color: #f3e7d7;
  background: #2c392e;
  border-color: #2c392e;
}
.visit-content .demo-action--solid:hover { color: #161a14; background: #d4ba95; }
.visit-content button:focus-visible { outline-color: #6d4d2d; }
.onboarding-steps { margin: 0; padding: 0 0 0 1.35rem; }
.onboarding-steps li { padding: .95rem 0 1.05rem .55rem; border-top: 1px solid #8d837487; }
.onboarding-steps li:last-child { border-bottom: 1px solid #8d837487; }
.onboarding-steps li::marker { color: #735132; font: .9rem/1.5 var(--mono); }
.onboarding-steps h3 { margin: 0 0 .28rem; font-size: 1.12rem; font-weight: 600; }
.onboarding-steps p { max-width: 29rem; margin: 0; color: var(--paper-muted); line-height: 1.5; }
.site-footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .8rem 1.8rem;
  padding: 1.6rem var(--gutter) 1.8rem;
  color: var(--paper-muted);
  background: var(--paper);
  border-top: 1px solid #8d837487;
  font-size: .9rem;
}
.site-footer .brand { margin-right: auto; color: var(--paper-ink); }
.site-footer a:hover { text-decoration: underline; text-underline-offset: .23rem; }
.site-footer :focus-visible { outline-color: #6d4d2d; }
.footer-contacts {
  display: flex;
  flex: 0 0 100%;
  flex-wrap: wrap;
  gap: .75rem 1.8rem;
  margin-top: .35rem;
  padding-top: .95rem;
  border-top: 1px solid #8d837456;
  font-style: normal;
}
.footer-contacts div { display: grid; gap: .2rem; }
.footer-contacts a, .demo-request-form p a { text-decoration: underline; text-underline-offset: .23rem; }
.footer-contacts a { color: var(--paper-ink); }
.footer-mark { flex: none; color: #735132; }
body[data-chapter='visit'] .masthead {
  color: var(--paper-ink);
  background: #e9dfcff5;
  border-bottom: 1px solid #8d837456;
}
body[data-chapter='visit'] .masthead-nav a,
body[data-chapter='visit'] .brand-mark { color: #524532; }
body[data-chapter='visit'] .masthead-nav .demo-action { color: #efe6d7; border-color: #2c392e; background: #2c392e; }
body[data-chapter='visit'] .masthead-nav .demo-action:hover { color: #21271f; background: #d4ba95; }
body[data-chapter='visit'] .masthead :focus-visible,
body[data-chapter='visit'] .navigation-rail :focus-visible { outline-color: #6d4d2d; }
body[data-chapter='visit'] .navigation-rail a::after { background: #6d5a4578; }
body[data-chapter='visit'] .navigation-rail a:is(:hover, [aria-current])::after { background: #6d5038; }
body:is([data-chapter='services'], [data-chapter='visit']) .motion-toggle { display: none; }

.studio-dialog {
  color: var(--ink);
  background: #23221b;
  border: 1px solid var(--line);
  max-width: min(38rem, calc(100% - 2rem));
  max-height: calc(100% - 2rem);
  padding: 1.6rem clamp(1.2rem, 3vw, 2.5rem) 2rem;
}
.studio-dialog::backdrop { background: #100f0dbb; }
.dialog-top { display: flex; align-items: baseline; justify-content: space-between; gap: .75rem; }
.dialog-top button {
  border: 0;
  padding: .45rem 0;
  background: transparent;
  color: var(--amber);
  font-size: .9rem;
}
.studio-dialog h2 { font-size: clamp(2.2rem, 4vw, 3.25rem); line-height: 1; letter-spacing: -.065em; }
.film-notes ol { padding-left: 1.25rem; margin: 1.25rem 0 0; }
.film-notes li { padding-left: .42rem; margin-bottom: .72rem; line-height: 1.5; color: var(--muted); }
.demo-request { width: min(34rem, calc(100% - 2rem)); }
.demo-request-form p {
  margin: .85rem 0 1.35rem;
  color: var(--muted);
  line-height: 1.5;
}
.demo-request-form p a { color: var(--ink); }
.demo-request-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  min-inline-size: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.demo-request-fields label { display: grid; gap: .4rem; font-size: .9rem; }
.demo-request-wide { grid-column: 1 / -1; }
.demo-request-fields small { margin-left: .35rem; color: var(--muted); font-size: .8rem; }
.demo-request-fields :is(input, textarea, select) {
  width: 100%;
  padding: .65rem .72rem;
  color: var(--ink);
  background: #191913;
  border: 1px solid var(--line);
  border-radius: 0;
  font: inherit;
  font-size: 1rem;
}
.demo-request-fields :is(input, textarea, select):focus-visible {
  border-color: var(--amber);
  outline: 1px solid var(--amber);
  outline-offset: 2px;
}
.demo-request-fields textarea { resize: vertical; }
.demo-request-fields select {
  appearance: none;
  padding-right: 2rem;
  background: linear-gradient(45deg, transparent 50%, var(--amber) 50%) right 1.04rem center / .32rem .32rem no-repeat,
    linear-gradient(135deg, var(--amber) 50%, transparent 50%) right .73rem center / .32rem .32rem no-repeat #191913;
}
.demo-request-form .demo-action { margin-top: 1.25rem; }
.demo-request-form .demo-action:disabled { opacity: .65; cursor: wait; }
.demo-request-status { margin: .9rem 0 0; line-height: 1.5; }
.demo-request-status:empty { margin: 0; }
.demo-request-status[data-state='error'] { color: #f0bba3; }
.no-script { margin: 0; padding: 1.25rem var(--gutter); }

@media (max-width: 900px) {
  :root { --gutter: clamp(1.4rem, 5vw, 3.7rem); }
  h1 { font-size: clamp(4.1rem, 9vw, 6rem); }
  h2 { font-size: clamp(3.5rem, 8.5vw, 6rem); }
  .story-copy { max-width: 31rem; }
  .hero-copy .standfirst { max-width: 23rem; }
  .story-copy .standfirst { max-width: 21rem; }
  .study-pins { display: none; }
  .theater { grid-template-columns: minmax(12.2rem, .71fr) minmax(0, 1.42fr); gap: .85rem 1.55rem; }
  .theater h2 { font-size: clamp(3rem, 7vw, 5rem); }
  .film-picker button { grid-template-columns: 2.5rem 1fr auto; gap: .45rem; padding-inline: .4rem; font-size: .89rem; }
  .film-caption .text-action { font-size: .8rem; }
}

@media (max-width: 690px) {
  :root { --gutter: 1.35rem; --header-height: 4.8rem; }
  .masthead { gap: .65rem; padding-inline: var(--gutter); }
  .brand { font-size: .78rem; gap: .35rem; letter-spacing: .15em; padding: .65rem 0; }
  .brand-mark { width: 24px; height: 24px; }
  .masthead-nav { gap: .8rem; }
  .masthead-nav a { font-size: .77rem; }
  .masthead-nav .demo-action { padding-inline: .64rem; font-size: .78rem; min-height: 2.5rem; }
  .world { background-image: url('/studio-mobile.webp'); }
  body[data-chapter='intelligence'] .world:not([data-live]) { background-image: url('/studio-study-mobile.webp'); }
  body[data-chapter='privacy'] .world:not([data-live]) { background-image: url('/studio-closed-mobile.webp'); }
  .world-shade {
    background: linear-gradient(180deg, #111612c9, transparent 23%, #11161222 38%, #111612e8 68%, #111612fc);
  }
  .world-shade::before {
    background: linear-gradient(180deg, #111612b8, #111612e9 52%, #111612f7);
  }
  .world-shade::after {
    background: linear-gradient(180deg, #111612a8, #11161210 23%, #111612a0 39%, #111612fa 62%);
  }
  .chapter-frame {
    padding-top: calc(var(--header-height) + 2.4rem);
    padding-bottom: 5.95rem;
    align-items: flex-end;
  }
  .chapter--films { min-height: 113svh; }
  .chapter--films .chapter-frame { position: relative; padding-top: calc(var(--header-height) + 1.6rem); align-items: center; }
  h1 { font-size: clamp(2.75rem, 12.4vw, 5.45rem); }
  h2 { font-size: clamp(3.4rem, 12.5vw, 5.6rem); max-width: 12ch; }
  .eyebrow { margin-bottom: .95rem; font-size: .72rem; }
  .standfirst, .hero-copy .standfirst { margin-top: 1.05rem; font-size: 1.05rem; }
  .text-action { margin-top: .77rem; }
  .hero-actions { margin-top: 1.15rem; gap: .5rem .85rem; }
  .hero-actions .demo-action { padding-inline: .73rem; font-size: .83rem; }
  .hero-actions .text-action { font-size: .82rem; gap: .45rem; }
  .world[data-live] ~ main .hero-caption { display: none; }
  .motion-toggle { bottom: 1.2rem; font-size: .68rem; }
  body[data-chapter='films'] .motion-toggle { display: none; }
  .navigation-rail { display: none; }
  .desk-excerpt { margin-top: 1.12rem; }
  .desk-excerpt figcaption { margin-top: .47rem; }
  .flow-controls { margin-top: 1.25rem; }
  .flow-controls button { min-height: 2.42rem; padding-inline: .69rem; }
  .flow-detail { min-height: 4.9rem; margin-top: .9rem; }
  .flow-route { gap: .32rem; font-size: .70rem; margin-top: .52rem; }
  .flow-route li { gap: .32rem; }
  .flow-route li + li::before { width: .37rem; }
  .theater { grid-template-columns: 1fr; grid-template-areas: 'heading' 'controls' 'display'; gap: 1rem; }
  .theater-controls { width: 100%; }
  body[data-enhanced] .theater :is(.theater-heading, .theater-controls, .film-caption, .screen-frame) { opacity: 1; transform: none; }
  .theater h2 { font-size: clamp(2.9rem, 11.2vw, 4.7rem); max-width: 16ch; }
  .theater .standfirst { margin-top: .6rem; font-size: 1rem; }
  .film-caption { margin-top: .76rem; flex-wrap: wrap; gap: .55rem .65rem; }
  .film-caption p { font-size: .92rem; }
  .film-caption h3 { font-size: 1.07rem; }
  .film-caption .screen-meta { font-size: .70rem; }
  .film-actions { display: flex; padding-top: 0; gap: .86rem; }
  .film-caption .text-action { font-size: .85rem; padding-block: .22rem; }
  .film-start { padding-block: .55rem; }
  .film-picker { grid-template-columns: 1fr 1fr; gap: .32rem .42rem; width: 100%; }
  .film-picker button {
    min-height: 2.77rem;
    grid-template-columns: 1fr;
    padding: .37rem .45rem;
    border: 1px solid var(--line);
    border-left: 2px solid transparent;
    font-size: .85rem;
  }
  .film-picker button img, .film-length { display: none; }
  .privacy-details { margin-top: 1.11rem; }
  .privacy-details div { padding-block: .52rem; }
  .privacy-details dd { font-size: .94rem; }
  .chapter--privacy h2 { font-size: clamp(3rem, 11.4vw, 5.1rem); max-width: 13ch; }
  .chapter:is(.chapter--services, .chapter--visit) { padding-block: 7rem 4.55rem; }
  .services-content, .visit-content { grid-template-columns: 1fr; gap: 2.55rem; }
  .visit-content h2 { font-size: clamp(2.9rem, 12vw, 5.3rem); }
  .site-footer { padding-block: 1.05rem 1.38rem; gap: .45rem 1rem; font-size: .83rem; }
  .site-footer .brand { width: 100%; margin-right: 0; }
}

@media (max-width: 520px) {
  .masthead-nav a[href='#intern'], .masthead-nav a[href='#services'] { display: none; }
  .demo-request { padding-block: 1.25rem 1.45rem; }
  .demo-request-form p { margin-block: .6rem .95rem; }
  .demo-request-fields { grid-template-columns: minmax(0, 1fr); gap: .7rem; }
  .demo-request-fields textarea { min-height: 4.4rem; height: 4.4rem; }
  .demo-request-form .demo-action { margin-top: 1.05rem; }
}

@media (max-width: 355px) {
  .masthead-nav a[href='#films'] { display: none; }
}

@media (max-height: 735px) and (max-width: 690px) {
  .chapter-frame { padding-bottom: 4.65rem; }
  .chapter--films .chapter-frame { padding-top: calc(var(--header-height) + .9rem); }
}

@media (max-height: 620px) {
  html { scroll-behavior: auto; }
  .chapter-frame { position: relative; }
  .chapter:not(.chapter--visit) { min-height: 100svh; }
}

@media (min-width: 600px) and (max-width: 690px) and (max-height: 620px) {
  .theater {
    grid-template-columns: minmax(11.8rem, .8fr) minmax(0, 1.3fr);
    grid-template-areas: 'heading display' 'controls display';
    column-gap: 1.25rem;
  }
  .theater h2 { max-width: 10ch; font-size: 3.35rem; }
  .theater-display { align-self: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
}
html:has(body[data-motion='off']) { scroll-behavior: auto; }
