:root {
  color-scheme: light;
  --paper: #fcfdff;
  --ink: #172631;
  --muted: #4c5d68;
  --accent: #006880;
  --line: #d8e4e8;
  --dark: #123443;
  --display: 'Segoe UI', Arial, sans-serif;
  font-family: 'Segoe UI', Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-underline-offset: .2em; }
a:hover { color: var(--accent); }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p { margin: 0 0 .65em; }
h1, h2, h3 { font-family: var(--display); line-height: 1.06; font-weight: 650; }
h1 { font-size: clamp(2.8rem, 6.3vw, 6.3rem); letter-spacing: -.064em; overflow-wrap: anywhere; }
h2 { font-size: clamp(2.3rem, 4.8vw, 4.4rem); letter-spacing: -.055em; }
h3 { font-size: 1.65rem; letter-spacing: -.025em; }
p { max-width: 67ch; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.shell { width: min(100% - 3rem, 1220px); margin-inline: auto; }
.top { background: white; border-bottom: 1px solid var(--line); }
.header, .footer { display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; min-height: 78px; }
.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { width: 155px; height: auto; }
nav, .actions, .footer > div { display: flex; align-items: center; gap: clamp(.8rem, 2.4vw, 2rem); flex-wrap: wrap; }
nav a, .quiet-link, .text-link { font-weight: 650; text-decoration: none; }
nav a { font-size: .88rem; }
.nav-cta { padding: .55rem 1rem; border: 1px solid #a8cbd5; border-radius: 5px; color: var(--accent); }
.skip { position: absolute; left: 1rem; top: -10rem; background: white; z-index: 2; padding: .5rem; }
.skip:focus { top: .5rem; }
.hero { background: #eef7f8; }
.hero-grid { display: grid; grid-template-columns: 1fr .9fr; align-items: center; gap: clamp(1.5rem, 5vw, 5rem); padding-block: clamp(2.25rem, 6vw, 5.75rem); }
.hero h1 { margin-bottom: .32em; font-size: clamp(3rem, 6.7vw, 6.2rem); line-height: .98; }
.hero h1 em { color: var(--accent); font-style: normal; }
.hero-copy p:not(.kicker) { max-width: 38ch; font-size: clamp(1rem, 1.55vw, 1.22rem); color: var(--muted); }
.hero-image { position: relative; min-height: 390px; align-self: stretch; overflow: hidden; border-radius: 10px; background: #d2e4e4; }
.hero-image img { width: 100%; height: 100%; position: absolute; object-fit: cover; object-position: center; }
.kicker { font-size: .73rem; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 1.2rem; }
.actions { margin-top: 1.4rem; }
.button, button { display: inline-block; text-decoration: none; border: 1px solid transparent; border-radius: 5px; background: var(--accent); color: white; font-weight: 700; padding: .72rem 1.1rem; }
.button:hover, button:hover { background: #004b60; color: white; }
.stats { border-bottom: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stats a { display: flex; flex-direction: column; text-decoration: none; padding: 1.65rem 1.4rem; border-right: 1px solid var(--line); }
.stats a:first-child { padding-left: 0; }
.stats a:last-child { border-right: 0; }
.stats strong { font: 650 clamp(1.9rem, 4vw, 3.4rem)/1 var(--display); color: var(--accent); letter-spacing: -.04em; }
.stats span { margin-top: .45rem; font-size: .9rem; color: var(--muted); }
.section { padding-block: clamp(3rem, 7vw, 6rem); scroll-margin-top: 1rem; }
.split { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(1rem, 5vw, 5rem); }
.prose { font-size: 1.05rem; }
.prose p { max-width: 72ch; overflow-wrap: anywhere; }
.prose h2 { font-size: clamp(1.8rem, 3vw, 2.8rem); margin-top: 1em; }
.prose h3 { margin-top: .8em; }
.prose img { max-height: 32rem; object-fit: contain; margin-block: 1.5rem; }
.standalone { max-width: 990px; }
.tinted, .page-intro { background: #edf5f6; }
.page-intro { padding-block: clamp(2.7rem, 6vw, 5.4rem); }
.page-intro h1 { max-width: 22ch; margin-bottom: .2em; }
.page-intro .quiet-link { display: inline-block; margin-bottom: 1rem; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.service, .card { background: white; border: 1px solid var(--line); min-width: 0; border-radius: 8px; overflow: hidden; }
.service, .card > div { padding: clamp(1rem, 2.5vw, 1.6rem); }
.service { border-top: 3px solid #63aabc; }
.service:nth-child(3n+2) { border-top-color: #e88b57; }
.service:nth-child(3n) { border-top-color: #69ad8f; }
.service h3 a, .card h2 a { text-decoration: none; }
.card h2 { font-size: 1.72rem; letter-spacing: -.035em; overflow-wrap: anywhere; }
.card .meta, .card .excerpt, .count { color: var(--muted); }
.card .excerpt { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 30%; }
.quiet-link { font-size: .88rem; color: var(--accent); }
.grid + .text-link { display: inline-block; margin-top: 1.2rem; }
.chips { list-style: none; padding: 0; margin: 1.6rem 0 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.chips li { border: 1px solid #c1d7df; padding: .22rem .65rem; font-size: .83rem; }
.research { background: var(--dark); color: #faf5eb; }
.research .section { padding-block: clamp(2.8rem, 6vw, 5rem); }
.founders, .research-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.founders .card { display: grid; grid-template-columns: minmax(110px, .75fr) minmax(0, 1fr); }
.founders .card img { height: 100%; min-height: 180px; aspect-ratio: auto; }
.research-card { display: block; overflow: hidden; border: 1px solid #57808d; border-radius: 8px; text-decoration: none; color: white; }
.research-card:hover { border-color: #bce0e8; color: #c3ebf3; }
.research-card img { width: 100%; height: clamp(150px, 20vw, 250px); object-fit: cover; }
.research-card div { position: relative; padding: 1.3rem 3rem 1.3rem 1.3rem; }
.research-card p { color: #d4e7ea; margin-bottom: 0; }
.research-card span { position: absolute; top: 1.2rem; right: 1.25rem; font-size: 1.35rem; }
.gallery { margin-top: 1.4rem; }
.gallery summary { cursor: pointer; }
.gallery > div { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: .6rem; margin-top: .8rem; }
.gallery img { width: 100%; height: 105px; object-fit: cover; border-radius: 4px; }
#contact h2 { max-width: 12ch; }

.detail { display: flex; gap: clamp(1rem, 4vw, 3rem); align-items: flex-start; }
.detail > img { max-width: min(35%, 360px); max-height: 390px; object-fit: contain; }
.contact { display: grid; gap: .9rem; }
.contact button { justify-self: start; }
label { display: grid; gap: .25rem; font-weight: 650; }
label span { font-weight: 400; display: contents; }
input, textarea { width: 100%; border: 1px solid #9fb5bf; background: white; color: var(--ink); padding: .63rem .75rem; border-radius: 0; }
textarea { resize: vertical; }
.trap { position: absolute; left: -10000px; }
.notice { border-left: 3px solid var(--accent); padding: .65rem 1rem; background: #edf5f6; }
.search { display: flex; gap: .75rem; align-items: end; flex-wrap: wrap; }
.search label { width: min(100%, 360px); }
.count { margin: 1rem 0; }
.footer { border-top: 1px solid var(--line); font-size: .88rem; padding-block: 1.1rem; flex-wrap: wrap; }
.admin-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 2rem; margin-top: 2rem; }
.admin-grid li { margin-bottom: .55rem; overflow-wrap: anywhere; }
@media (max-width: 860px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-grid { grid-template-columns: 1fr 40%; }
}
@media (max-width: 620px) {
  .shell { width: calc(100% - 1.6rem); }
  .header { padding-block: .75rem; flex-direction: column; align-items: flex-start; gap: .7rem; }
  nav { gap: .35rem .9rem; }
  .nav-cta { padding: 0; border: 0; }
  .hero-grid, .split, .admin-grid, .grid, .research-grid { grid-template-columns: 1fr; }
  .hero-image { min-height: 210px; }
  .hero-grid { gap: 1.35rem; }
  .brand img { width: 135px; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats a { padding: .85rem; }
  .stats a:nth-child(2) { border-right: 0; }
  .stats a:nth-child(3) { padding-left: 0; }
  .stats a:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .detail { flex-direction: column; }
  .detail > img { max-width: 100%; }
}

/* Studio pages */
:root {
  --paper: #f6f5f0;
  --ink: #151611;
  --muted: #4e5149;
  --accent: #2534ae;
  --line: #d8d9ce;
  --studio-black: #121310;
  --studio-lime: #e0f776;
}
body { overflow-wrap: break-word; }
.top { background: var(--paper); }
.header { min-height: 76px; }
.nav-cta { border-color: var(--ink); color: var(--ink); border-radius: 0; }
.button, button { border-radius: 0; }
.studio-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: grid;
  align-items: end;
  min-height: clamp(540px, 73svh, 790px);
  background: var(--studio-black);
  color: #fff;
}
.studio-hero > img {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 56% center;
}
.studio-hero::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, #070807e8, #08090880 52%, #08090806 90%);
}
.studio-hero .hero-copy { padding-block: 4rem clamp(3.3rem, 8vw, 7rem); }
.studio-hero .kicker { color: #e7ebdf; margin-bottom: 1.5rem; }
.studio-hero h1 {
  font-size: clamp(3.1rem, 8vw, 8.2rem);
  line-height: .93;
  font-weight: 700;
  letter-spacing: -.075em;
  margin: 0 0 .28em;
}
.studio-hero .hero-copy p:not(.kicker) { color: #f4f4ed; max-width: 43ch; }
.studio-hero .button, .contact-band button { color: #14160e; background: var(--studio-lime); }
.studio-hero .button:hover, .contact-band button:hover { background: #f1ffbb; }
.studio-hero .text-link:hover { color: var(--studio-lime); }
.section-heading { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: .5rem 2rem; }
.section-heading h2, .capabilities h2, .contact-band h2 {
  font-size: clamp(2.8rem, 6.3vw, 6rem);
  letter-spacing: -.07em;
  line-height: .95;
}
.work-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; align-items: start; }
.work-card { display: block; text-decoration: none; }
.work-card:first-child { grid-column: span 2; }
.work-card img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; transition: filter .18s; }
.work-card:first-child img { aspect-ratio: 2.65; object-position: center 52%; }
.work-card:hover img { filter: saturate(1.24); }
.work-card > div { position: relative; padding: 1.15rem 2.25rem .8rem 0; border-bottom: 1px solid var(--line); }
.work-card h3 { font-size: clamp(1.45rem, 2.7vw, 2.6rem); margin: 0; }
.work-card .kicker { margin-bottom: .35rem; }
.work-card span, .capability-list span { position: absolute; right: .2rem; top: 1rem; font-size: 1.55rem; }
.publications-link { display: inline-block; margin-top: 1.5rem; }
.capabilities { background: #e9ebdf; }
.capabilities .split { grid-template-columns: 1fr 1.36fr; }
.capabilities .split > div:first-child p,
.team-intro { font-size: clamp(1.05rem, 1.6vw, 1.28rem); max-width: 49ch; }
.capability-list { border-top: 1px solid #aeb3a4; }
.capability-list > a {
  position: relative;
  display: block;
  padding: 1.25rem 2.25rem 1.14rem 0;
  border-bottom: 1px solid #aeb3a4;
  text-decoration: none;
}
.capability-list h3 { margin-bottom: .25rem; font-size: clamp(1.35rem, 2.5vw, 2.1rem); }
.capability-list p { margin: 0; color: var(--muted); }
.founders { margin-top: 1.7rem; }
.card { border-radius: 0; }
.founders .card { grid-template-columns: minmax(115px, .82fr) minmax(0, 1fr); }
.contact-band { background: var(--studio-black); color: white; }
.contact-band h2 { max-width: 15ch !important; }
.contact-band label { color: #f0f0e6; }
.contact-band input, .contact-band textarea { background: #24251f; border-color: #777b68; color: white; border-radius: 0; }
.contact-band .notice { color: var(--ink); }
.page-intro { background: #e9ebdf; }
.page-intro p { font-size: clamp(1.1rem, 2vw, 1.45rem); }
.offerings { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.offerings li { border-bottom: 1px solid var(--line); padding: 1.2rem 0; font-size: 1.2rem; }
@media (max-width: 720px) {
  .studio-hero { min-height: 560px; }
  .studio-hero::before { background: linear-gradient(0deg, #070807ed, #07080793 64%, #07080736); }
  .studio-hero > img { object-position: 60% center; }
  .work-grid, .capabilities .split { grid-template-columns: 1fr; }
  .work-card:first-child { grid-column: auto; }
  .work-card:first-child img { aspect-ratio: 16 / 9; }
}
@media (prefers-reduced-motion: reduce) {
  .work-card img { transition: none; }
}

/* Logo palette and scroll behavior */
:root {
  --mad-blue: #148dbb;
  --mad-red: #ec4f30;
  --mad-green: #00734b;
  --accent: #005b7c;
  --paper: #f8f8f3;
}
body { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
main { flex: 1 0 auto; }
footer { margin-top: auto; }
html { scroll-padding-top: 95px; }
.top { position: sticky; top: 0; z-index: 10; transition: box-shadow .24s ease; }
.top.is-scrolled { background: #f8f8f3f2; backdrop-filter: blur(14px); box-shadow: 0 4px 22px #192a2610; }
.header nav a:not(.nav-cta) { position: relative; }
.header nav a:not(.nav-cta)::after {
  position: absolute; bottom: -.34rem; left: 0; right: 0; height: 2px;
  content: ''; background: var(--mad-red); transform: scaleX(0);
  transform-origin: left; transition: transform .21s ease;
}
.header nav a:is(:hover,:focus-visible)::after { transform: scaleX(1); }
.scroll-progress {
  height: 3px; width: 100%; position: absolute; bottom: -2px; left: 0;
  background: linear-gradient(90deg, var(--mad-blue) 0 33%, var(--mad-red) 33% 66%, var(--mad-green) 66%);
  transform: scaleX(0); transform-origin: left;
}
.menu-toggle { display: none; }
.studio-hero { min-height: 0; display: block; color: var(--ink); background: var(--paper); isolation: auto; }
.studio-hero::before { content: none; }
.hero-layout {
  min-height: clamp(510px, 72svh, 740px);
  display: grid; align-items: center; grid-template-columns: 1.04fr 1fr;
  gap: clamp(1rem, 4.5vw, 4.2rem);
}
.studio-hero .hero-copy { padding-block: clamp(2rem, 5.5vw, 5.5rem); }
.studio-hero .kicker { color: var(--accent); margin-bottom: 1.45rem; }
.studio-hero h1 { font-size: clamp(2.75rem, 5.75vw, 5.8rem); }
.studio-hero h1 span { color: var(--mad-green); }
.studio-hero .hero-copy p:not(.kicker) { color: var(--muted); }
.studio-hero .button { background: var(--mad-green); color: white; }
.studio-hero .button:hover { background: #005438; }
.studio-hero .text-link:hover { color: var(--mad-green); }
.hero-media {
  position: relative; margin: 0; aspect-ratio: .99; overflow: hidden; isolation: isolate;
  background: #d9e6df; clip-path: inset(0);
}
.hero-media video { width: 100%; height: 100%; display: block; object-fit: cover; object-position: 59% center; }
.hero-media::after {
  content: ''; position: absolute; z-index: 1; pointer-events: none; inset: 0;
  background: linear-gradient(150deg, #148dbb43, transparent 40%, transparent 70%, #00734b46);
}
.video-toggle {
  position: absolute; z-index: 2; bottom: .8rem; right: .8rem;
  color: white; background: #111914e8; border: 1px solid #ffffff8a;
  padding: .45rem .75rem; font-size: .82rem;
}
.video-toggle:hover { background: #000; }
.brand-band { height: 8px; display: grid; grid-template-columns: 1fr 1fr 1fr; overflow: hidden; }
.brand-band span:nth-child(1) { background: var(--mad-blue); }
.brand-band span:nth-child(2) { background: var(--mad-red); }
.brand-band span:nth-child(3) { background: var(--mad-green); }
.work-card > div { transition: padding-left .25s ease, background .25s ease; }
.work-card:is(:hover,:focus-visible) > div { padding-left: .8rem; background: #e6f1ec; }
.work-card .kicker { color: var(--accent); }
.capabilities { background: #e4f1ed; }
.capability-list > a { transition: padding-left .22s ease, color .22s ease; }
.capability-list > a:is(:hover,:focus-visible) { padding-left: .9rem; color: var(--mad-green); }
.contact-band button { background: #e5f8ef; }
@keyframes enter-view {
  from { opacity: .25; transform: translateY(26px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes hero-unmask {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0); }
}
@keyframes work-drift {
  from { object-position: center 34%; }
  to { object-position: center 68%; }
}
@media (prefers-reduced-motion: no-preference) {
  .motion-ready .hero-copy { animation: enter-view .7s both; }
  .motion-ready .hero-media { animation: hero-unmask .72s cubic-bezier(.2,.65,.2,1) both; }
  .has-entered { animation: enter-view .65s cubic-bezier(.2,.6,.25,1) both; }
  @supports (animation-timeline: view()) {
    .work-card img { animation: work-drift linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
  }
}
@media (prefers-reduced-motion: reduce) {
  .top, .header nav a::after, .work-card > div, .capability-list > a { transition: none; }
  .scroll-progress { display: none; }
}
@media (max-width: 760px) {
  .hero-layout { min-height: 0; grid-template-columns: 1fr; gap: 0; }
  .studio-hero .hero-copy { padding-block: 2.7rem 1.6rem; }
  .studio-hero h1 { font-size: clamp(2.75rem, 10.2vw, 5rem); }
  .hero-media { aspect-ratio: 1.63; margin-bottom: 1rem; }
  .brand-band { height: 5px; }
  .motion-ready .header { min-height: 62px; flex-direction: row; flex-wrap: wrap; align-items: center; gap: .5rem; }
  .motion-ready .menu-toggle { display: inline-flex; align-items: center; gap: .6rem; color: var(--ink); background: transparent; border: 1px solid var(--line); padding: .42rem .7rem; }
  .motion-ready .menu-toggle[aria-expanded="true"] span { transform: rotate(45deg); }
  .motion-ready .header nav { display: none; flex-basis: 100%; gap: .8rem 1.1rem; padding-block: .5rem; }
  .motion-ready .menu-open nav { display: flex; }
  .motion-ready .header nav .nav-cta { border: 0; padding: 0; }
}

.archive-filters select {
  font: inherit;
  min-height: 2.8rem;
  max-width: 100%;
  padding: .55rem .75rem;
  border: 1px solid #9fb5bf;
  border-radius: 0;
  background: #fff;
  color: var(--ink);
}
.archive-filters label:not(:first-child) { min-width: 8rem; }
.archive-filters label:first-child { width: min(100%, 315px); }
.citation h2 { font-size: 1.45rem; }
.projects.card img { aspect-ratio: 16 / 10; object-position: center; }

/* Navy and teal identity */
:root {
  --paper: #f8fbfc;
  --ink: #0b192e;
  --muted: #435b68;
  --accent: #006d76;
  --line: #ccdde2;
  --surface: #fff;
  --panel: #e7f4f4;
  --navigation-glass: #f8fbfcf2;
  --mad-blue: #148a9d;
  --mad-red: #42aab0;
  --mad-green: #82dcda;
  --portrait-navy: #061321;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #0b192e;
  --ink: #f1fbff;
  --muted: #bacfdb;
  --accent: #83e3de;
  --line: #2c4b5e;
  --surface: #11243a;
  --panel: #102c40;
  --navigation-glass: #0b192ef2;
}
:root[data-theme="dark"] .card,
:root[data-theme="dark"] .service,
:root[data-theme="dark"] input,
:root[data-theme="dark"] textarea,
:root[data-theme="dark"] .archive-filters select {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
}
:root[data-theme="dark"] .work-card:is(:hover,:focus-visible) > div { background: #17384c; }
:root[data-theme="dark"] .notice { background: #12384a; color: var(--ink); }
.top, .top.is-scrolled { background: var(--paper); }
.capabilities, .page-intro { background: var(--panel); }
.contact-band { background: var(--portrait-navy); }
.contact-band button { background: #94e5df; color: #09272c; }
.contact-band button:hover { background: #c6f5ef; }
.button:hover, button:hover { background: #075462; }
.logo-light { display: none; }
[data-theme="light"] .logo-light { display: block; }
[data-theme="light"] .logo-dark { display: none; }
.brand img { width: clamp(136px, 15vw, 192px); }
.header { gap: .8rem; position: relative; }
.header-controls, .language-flags { display: flex; align-items: center; gap: .4rem; }
.header-controls { margin-left: auto; }
.language-flags a, .theme-toggle {
  display: grid; place-items: center; min-width: 39px; min-height: 40px;
  border: 1px solid transparent; color: var(--ink); background: transparent;
}
.language-flags a:hover, .language-flags a[aria-current="true"], .theme-toggle:hover {
  border-color: var(--line); background: var(--surface);
}
.language-flags a[aria-current="true"] { border-bottom-color: var(--accent); }
.language-flags img { display: block; width: 23px; height: 15px; object-fit: fill; }
.theme-toggle { border-color: var(--line); padding: .25rem; font-size: 1.1rem; }
.theme-moon, .theme-toggle[hidden] { display: none; }
[data-theme="light"] .theme-sun { display: none; }
[data-theme="light"] .theme-moon { display: inline; }

.motion-ready .header .menu-toggle {
  display: grid; place-items: center; order: -1;
  min-width: 41px; min-height: 41px; padding: 0;
  color: var(--ink); background: transparent; border: 1px solid var(--line);
}
.menu-icon, .menu-icon::before, .menu-icon::after {
  width: 17px; height: 1px; display: block; background: currentColor;
}
.menu-icon { position: relative; }
.menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; }
.menu-icon::before { top: -5px; }
.menu-icon::after { top: 5px; }
.menu-open .menu-icon { background: transparent; }
.menu-open .menu-icon::before { top: 0; transform: rotate(45deg); }
.menu-open .menu-icon::after { top: 0; transform: rotate(-45deg); }
.motion-ready .header nav {
  display: none; position: absolute; top: calc(100% + 1px); left: 0;
  width: min(350px, 100%); padding: .45rem 1.15rem .75rem;
  margin: 0; background: var(--surface); border: 1px solid var(--line);
  box-shadow: 0 15px 35px #04112055;
}
.motion-ready .menu-open nav { display: grid; gap: 0; }
.motion-ready .header nav a, .motion-ready .header nav .nav-cta {
  padding: .82rem 0; border: 0; border-bottom: 1px solid var(--line);
  text-align: left; font-size: 1.03rem;
}
.motion-ready .header nav a:last-child { border-bottom: 0; }
.motion-ready .header nav a::after { content: none; }
.service-logo {
  display: flex; width: max-content; max-width: 100%; padding: .55rem .8rem;
  margin-bottom: 1rem; background: #0b192e;
}
.service-logo img { height: 38px; width: auto; }

/* The gallery is a decorative layer under the fixed hero text. */
.studio-hero {
  --hero-base: #061321;
  --hero-text: #f1fbff;
  --hero-mute: #d4e7ee;
  --hero-accent: #83e3de;
  position: relative; display: grid; align-items: center; isolation: isolate;
  min-height: clamp(520px, 76svh, 760px); overflow: hidden;
  background: var(--hero-base); color: var(--hero-text);
}
[data-theme="light"] .studio-hero {
  --hero-base: #fff;
  --hero-text: #0b192e;
  --hero-mute: #435b68;
  --hero-accent: #006d76;
}
.studio-hero::before { content: none; }
.hero-gallery {
  position: absolute; z-index: -1; inset: 0; overflow: hidden; pointer-events: none;
  display: grid; align-items: center; opacity: .32;
  mask-image: radial-gradient(ellipse 53% 68% at center, #000 8%, #000b 43%, transparent 99%);
}
[data-theme="light"] .hero-gallery { opacity: .24; }
.hero-gallery-track, .hero-gallery-set { display: flex; width: max-content; align-items: center; }
.hero-gallery-set { gap: clamp(.55rem, 1.25vw, 1.3rem); padding-right: clamp(.55rem, 1.25vw, 1.3rem); }
.hero-gallery-card {
  width: max(145px, 16vw); height: clamp(265px, 64svh, 540px);
  flex: none; overflow: hidden; border-radius: 6px; background: #153247;
}
.hero-gallery-card:nth-child(3n+1) { transform: translateY(-2.7rem) rotate(-4deg); }
.hero-gallery-card:nth-child(3n+2) { transform: translateY(2rem) rotate(3deg); }
.hero-gallery-card img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(.65) contrast(1.12);
}
.hero-gallery-card:nth-child(2n) img { object-position: 63% center; }
.studio-hero .hero-layout { display: block; min-height: 0; padding-block: clamp(4rem, 10vw, 8rem); }
.studio-hero .hero-copy { max-width: 62rem; margin-inline: auto; padding: 0; text-align: center; }
.studio-hero .kicker { color: var(--hero-accent); }
.studio-hero h1 { font-size: clamp(3rem, 7.4vw, 7.2rem); }
.studio-hero h1 span { color: var(--hero-accent); }
.studio-hero .hero-copy p:not(.kicker) { margin-inline: auto; color: var(--hero-mute); }
.studio-hero .actions { justify-content: center; }
.studio-hero .button { background: #9de4e0; color: #09272c; }
[data-theme="light"] .studio-hero .button { background: #006d76; color: white; }
.studio-hero .button:hover { background: #c6f5ef; color: #09272c; }
[data-theme="light"] .studio-hero .button:hover { background: #075462; color: white; }
.studio-hero .text-link:hover { color: var(--hero-accent); }
.studio-hero .video-toggle {
  z-index: 2; bottom: 1rem; right: max(1rem, calc((100% - 1220px) / 2));
  color: var(--hero-text); background: var(--hero-base); border-color: var(--line);
}
@keyframes gallery-drift { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: no-preference) {
  .motion-ready .hero-gallery-track { animation: gallery-drift 58s linear infinite; }
  .motion-paused .hero-gallery-track, .hero-offscreen .hero-gallery-track { animation-play-state: paused; }
}
@media (max-width: 620px) {
  .motion-ready .header { min-height: 64px; flex-direction: row; gap: .3rem; }
  .header .brand img { width: clamp(86px, 27vw, 150px); }
  .header-controls, .language-flags { gap: .2rem; }
  .language-flags a { min-width: 29px; min-height: 34px; }
  .language-flags img { width: 19px; height: 13px; }
  .theme-toggle, .motion-ready .header .menu-toggle { min-width: 34px; min-height: 34px; }
  .studio-hero h1 { font-size: clamp(2.65rem, 10vw, 4.35rem); }
}

/* Darker navy surfaces and light-mode contrast */
:root {
  --paper: #fafcfd;
  --surface: #fff;
  --panel: #f0f6f8;
  --navigation-glass: #fafcfdf4;
  --control-bg: #fff;
  --field-bg: #fff;
}
:root[data-theme="dark"] {
  --paper: #040a17;
  --surface: #0a1425;
  --panel: #080f20;
  --navigation-glass: #040a17f5;
  --control-bg: #101e32;
  --field-bg: #101d31;
  --line: #26384d;
  --portrait-navy: #030812;
}
.card, .service, .service-logo, .archive-filters select,
:root[data-theme="dark"] .card, :root[data-theme="dark"] .service,
:root[data-theme="dark"] input, :root[data-theme="dark"] textarea,
:root[data-theme="dark"] .archive-filters select { border: 0; }
.card.projects, .card.publications, .card.team { background: var(--surface); }
.archive-filters select, .archive-filters input { border: 0; background: var(--control-bg); color: var(--ink); }
.contact-band { background: var(--panel); color: var(--ink); }
.contact-band label { color: var(--ink); }
.contact-band input, .contact-band textarea,
:root[data-theme="dark"] .contact-band input, :root[data-theme="dark"] .contact-band textarea {
  background: var(--field-bg); color: var(--ink); border: 0;
}
.contact-band label span { color: var(--muted); }
.contact-band button { background: #006d76; color: #fff; }
.contact-band button:hover { background: #075462; }
:root[data-theme="dark"] .contact-band button { background: #a0e4df; color: #061a22; }
:root[data-theme="dark"] .contact-band button:hover { background: #c4f5ef; }
[data-theme="light"] .brand-band, [data-theme="light"] .scroll-progress { background: #bce1e1; }
[data-theme="light"] .work-card:is(:hover,:focus-visible) > div { background: #eef7f7; }

.motion-ready .header .menu-toggle {
  order: 0; margin: 0; border: 0; background: var(--control-bg);
}
.motion-ready .header nav { left: auto; right: 0; border: 0; }
.theme-toggle { background: var(--control-bg); border: 0; }
.language-picker { position: relative; }
.language-picker summary {
  display: flex; align-items: center; gap: .4rem; min-height: 40px; padding: .35rem .65rem;
  cursor: pointer; background: var(--control-bg); list-style: none;
}
.language-picker summary::-webkit-details-marker { display: none; }
.language-picker summary .current-flag { display: none; width: 23px; height: 15px; object-fit: cover; }
[lang="en"] .language-picker .flag-en, [lang="sr-Latn"] .language-picker .flag-sr,
[lang="zh-Hans"] .language-picker .flag-zh, [lang="es"] .language-picker .flag-es,
[lang="fr"] .language-picker .flag-fr { display: block; }
.language-picker .language-flags {
  position: absolute; top: calc(100% + .35rem); right: 0;
  display: grid; width: 100%; padding: .23rem; gap: .18rem;
  background: var(--surface); box-shadow: 0 8px 22px #040a1745;
}
.language-picker:not([open]) .language-flags { display: none; }
.language-flags a { border: 0; }
.language-flags a[aria-current="true"] { background: var(--panel); box-shadow: inset 2px 0 var(--accent); }

.studio-hero { --hero-base: #030818; }
[data-theme="light"] .studio-hero { --hero-base: #fff; }
.studio-hero .hero-copy { margin: 0; text-align: left; }
.studio-hero .hero-copy p:not(.kicker) { margin-inline: 0; }
.studio-hero .actions { justify-content: flex-start; }
.hero-gallery-card, .hero-gallery-card:nth-child(3n+1), .hero-gallery-card:nth-child(3n+2) {
  border-radius: 0; transform: none;
}
.hero-gallery-set { gap: .45rem; padding-right: .45rem; }
.hero-messages { display: grid; }
.hero-message { grid-area: 1 / 1; }
.hero-message:not(:first-child) { opacity: 0; }
.studio-hero .hero-messages .hero-message { color: var(--hero-text); }
.hero-message em { color: var(--hero-accent); font-style: normal; }
.service-hero { min-height: clamp(430px, 64svh, 660px); }
.service-hero .hero-copy { max-width: 50rem; }
.service-hero h1 { font-size: clamp(2.8rem, 6.45vw, 6.5rem); }
.service-hero .quiet-link { color: var(--hero-accent); display: inline-block; margin-bottom: 1rem; }
.service-method { background: var(--paper); }
.service-story {
  display: grid; grid-template-columns: 1fr 1fr; align-items: center;
  gap: clamp(1.15rem, 5vw, 5rem); margin-block: clamp(2rem, 5vw, 5rem);
}
.service-story:nth-of-type(even) figure { order: 1; }
.service-story h3 { font-size: clamp(1.65rem, 3vw, 3rem); }
.service-story p { color: var(--muted); font-size: clamp(1rem, 1.4vw, 1.16rem); }
.parallax-frame { margin: 0; position: relative; overflow: hidden; aspect-ratio: 3 / 2; background: var(--surface); }
.parallax-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@keyframes rotate-message {
  0%, 33.333% { opacity: 1; }
  33.334%, 100% { opacity: 0; }
}
@keyframes image-parallax {
  from { transform: translateY(-7%) scale(1.18); }
  to { transform: translateY(7%) scale(1.18); }
}
@media (prefers-reduced-motion: no-preference) {
  .motion-ready .hero-message { animation: rotate-message 18s steps(1, end) infinite; }
  .motion-ready .hero-message:nth-child(2) { animation-delay: -12s; }
  .motion-ready .hero-message:nth-child(3) { animation-delay: -6s; }
  .motion-paused .hero-message, .hero-offscreen .hero-message { animation-play-state: paused; }
  @supports (animation-timeline: view()) {
    .parallax-frame img { animation: image-parallax linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
    .studio-hero .hero-gallery { animation: image-parallax linear both; animation-timeline: view(); animation-range: exit 0% exit 100%; }
  }
}
@media (max-width: 620px) {
  .service-story { grid-template-columns: 1fr; }
  .service-story:nth-of-type(even) figure { order: 0; }
  .language-picker summary { min-height: 34px; padding: .25rem .45rem; }
  .language-picker summary .current-flag { width: 19px; height: 13px; }
}

/* Seamless gallery edges and transparent brand controls */
.brand { position: relative; }
.brand .brand-clear { display: block; }
.brand .brand-bright {
  display: none; position: absolute; top: 0; left: 0;
  filter: brightness(0) invert(1); clip-path: inset(0 0 0 32%);
}
[data-theme="dark"] .brand .brand-bright { display: block; }
:root .language-picker summary, :root .theme-toggle, :root .motion-ready .menu-toggle,
.motion-ready .header .menu-toggle {
  background: transparent; border: 0;
}
:root .theme-toggle:hover, .motion-ready .header .menu-toggle:hover,
.language-picker summary:hover { color: var(--accent); background: transparent; }
.footer { border-top: 0; }
.section-glow {
  background-color: var(--paper);
  background-image: radial-gradient(ellipse at center, #e9f5f7 0%, transparent 76%),
    repeating-radial-gradient(circle at 13% 29%, #174b5c0a 0 1px, transparent 1px 4px);
}
[data-theme="dark"] .section-glow {
  background-image: radial-gradient(ellipse at center, #152a42 0%, transparent 78%),
    repeating-radial-gradient(circle at 13% 29%, #bce8ff09 0 1px, transparent 1px 4px);
}
.capability-list, .capability-list > a { border-color: var(--line); }
.archive-filters button, :root[data-theme="dark"] .archive-filters button {
  background: #12374e; color: #fff;
}
.archive-filters button:hover, :root[data-theme="dark"] .archive-filters button:hover {
  background: #092638;
}
.hero-gallery {
  display: block;
  mask-image: linear-gradient(90deg, transparent 0%, #0009 22%, #000 49%, #0009 78%, transparent 100%);
}
.hero-gallery-track, .hero-gallery-set { height: 100%; align-items: stretch; gap: 0; padding: 0; }
.hero-gallery-card { height: 100%; }
.hero-gallery img { min-height: 100%; }
.hero-gallery .hero-gallery-card:has(img[src*="/bsv-"]) { width: max(235px, 24vw); }
.bsv-hero .hero-gallery img { object-position: center; }
.parallax-frame:has(img[src*="/bsv-"]) { background: transparent; }
.parallax-frame img[src*="/bsv-"] { object-fit: contain; animation: none; }
.partner-mark { margin-bottom: 1rem; }
.partner-mark img { width: min(34vw, 150px); }
[data-theme="light"] .partner-mark img { filter: brightness(.28); }
.studio-hero h1 .hero-word, .studio-hero h1 .hero-letter { color: inherit; }
.hero-word, .hero-letter { display: inline-block; }
.hero-letter { --letter-shift: -.25em; }
.hero-word:nth-child(even) .hero-letter:nth-child(odd),
.hero-word:nth-child(odd) .hero-letter:nth-child(even) { --letter-shift: .25em; }
@keyframes letter-cycle {
  0% { opacity: 0; transform: translateX(var(--letter-shift)); }
  5%, 28.333% { opacity: 1; transform: translateX(0); }
  33.333%, 100% { opacity: 0; transform: translateX(var(--letter-shift)); }
}
@keyframes heading-reveal {
  from { opacity: 0; transform: translateY(.55em); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: no-preference) {
  .motion-ready .hero-letter { animation: letter-cycle 18s both infinite; }
  .has-entered[data-heading-reveal] { animation: heading-reveal .78s cubic-bezier(.2,.65,.25,1) both; }
  .motion-ready .hero-message:nth-child(2) .hero-letter { animation-delay: -12s; }
  .motion-ready .hero-message:nth-child(3) .hero-letter { animation-delay: -6s; }
  .motion-paused .hero-letter, .hero-offscreen .hero-letter { animation-play-state: paused; }
  @supports (animation-timeline: view()) {
    .studio-hero .hero-gallery { animation: none; }
    .studio-hero .hero-gallery-card img { animation: image-parallax linear both; animation-timeline: view(); animation-range: exit 0% exit 100%; }
  }
}

.inquiry-list { display: grid; gap: .7rem; margin-top: 1.6rem; }
.inquiry summary {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: .55rem 1rem;
  cursor: pointer; padding: 1rem 1.25rem;
}
.inquiry summary span { color: var(--muted); }
.inquiry .prose p { white-space: pre-wrap; }

@media (max-width: 720px) {
  .founders { grid-template-columns: minmax(0, 1fr); }
}

.studio-hero .video-toggle:not([hidden]) {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
}
.motion-control-icon {
  width: 12px;
  height: 13px;
  border-inline: 3px solid currentColor;
}
.motion-paused .motion-control-icon {
  width: 0;
  height: 0;
  border: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 11px solid currentColor;
  margin-left: 2px;
}

/* Marketing to Machines project cover */
.machine-cover {
  position: relative;
  margin: 0;
  flex: none;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #f4f0e8;
}
.machine-button {
  position: absolute;
  left: 37%;
  top: 42%;
  width: 26%;
  height: 17%;
  border-radius: .32em;
  background: #167772;
}
.machine-cursor {
  position: absolute;
  left: 55%;
  top: 52%;
  width: 5.5%;
  aspect-ratio: 1 / 1.3;
  transform-origin: top left;
  clip-path: polygon(0 0, 100% 57%, 62% 61%, 82% 95%, 63% 100%, 43% 66%, 14% 91%);
  background: #142831;
}
.detail > .machine-cover { width: min(35%, 360px); }

.report-story, .report-graphics { max-width: 990px; padding-top: 0; }
.report-metrics {
  margin: 0 0 clamp(2.5rem, 6vw, 4.5rem);
  padding: clamp(1rem, 3vw, 2rem);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: 1.25rem;
  background: var(--surface);
}
.report-metrics div { display: flex; flex-direction: column-reverse; }
.report-metrics dd { margin: 0; color: var(--accent); font-size: clamp(1.4rem, 3vw, 2.3rem); font-weight: 650; }
.report-metrics dt, .report-story .meta { color: var(--muted); }
.report-story .prose section + section { margin-top: 2.2rem; }
.report-story .meta { margin-top: 2rem; }
.report-figures { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: clamp(.65rem, 3vw, 1.5rem); margin-top: 1.5rem; }
.report-graphics figure { margin: 0; }
.report-preview { display: block; font-weight: 650; }
.report-preview img { width: 100%; height: auto; margin-top: .6rem; }
.report-graphics figure, .report-graphics { scroll-margin-top: 6rem; }
.report-lightbox {
  width: min(1080px, 92vw);
  max-height: 90dvh;
  padding: 0;
  border: 0;
  border-radius: .65rem;
  color: var(--ink);
  background: var(--surface);
  overflow: hidden;
}
.report-lightbox[open] { display: flex; flex-direction: column; }
.report-lightbox::backdrop { background: rgb(0 6 16 / 80%); }
.report-lightbox-bar { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .7rem 1rem; }
.report-lightbox-bar h3 { margin: 0; font-size: clamp(.95rem, 2.5vw, 1.35rem); }
.report-lightbox-scroll { overflow: auto; overscroll-behavior: contain; }
.report-lightbox-scroll img { width: 100%; height: auto; }
html:has(.report-lightbox[open]) { overflow: hidden; }

.analytics-consent {
  position: fixed;
  z-index: 20;
  inset-inline-end: max(1rem, env(safe-area-inset-right));
  inset-block-end: max(1rem, env(safe-area-inset-bottom));
  width: min(28rem, calc(100% - 2rem));
  padding: 1.15rem;
  border-radius: .8rem;
  color: var(--ink);
  background: var(--surface);
  box-shadow: 0 .5rem 2rem #0005;
}
.analytics-consent h2 { font-size: 1.25rem; letter-spacing: -.02em; }
.analytics-consent p { color: var(--muted); font-size: .9rem; }
.analytics-consent form, #privacy-settings form {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.analytics-consent button, #privacy-settings button { flex: 1 1 auto; }
#privacy-settings { scroll-margin-top: 7rem; max-width: 34rem; }

@keyframes machine-click {
  0%, 16% { translate: 195% 105%; scale: 1; }
  52%, 59% { translate: 0 0; scale: 1; }
  64% { translate: 0 0; scale: .84; }
  70%, 100% { translate: 0 0; scale: 1; }
}
@media (prefers-reduced-motion: no-preference) {
  .machine-in-view .machine-cursor { animation: machine-click 2.4s ease-in-out 2 both; }
}
@media (max-width: 620px) {
  .detail > .machine-cover { width: 100%; }
}
