/* Layout and controls shared by the merged pages. */
[hidden] { display: none !important; }
.design-sr, .design-skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.design-skip:focus {
  position: fixed;
  top: .5rem;
  left: .5rem;
  z-index: 20;
  padding: .75rem;
  color: var(--text);
  background: var(--surface);
  pointer-events: auto;
}
.nav { gap: clamp(12px, 1.42vw, 24px); }
.nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: .28em; }
.design-index {
  width: min(100% - 44px, 900px);
  margin: clamp(3rem, 8vw, 7rem) auto;
}
.page-narrow .design-index { width: 100%; }
.design-index > h2 {
  margin: 0 0 1.5rem;
  font-size: clamp(1.65rem, 4vw, 2.65rem);
  font-weight: 500;
  letter-spacing: -.04em;
}
.design-meta { font-size: .875rem; color: var(--meta-text); }
.publication-row {
  padding: 1.4rem 0;
  border-top: 1px solid var(--blue-soft);
}
.publication-row h3 { margin: 0 0 .45rem; font-size: clamp(1.15rem, 2.75vw, 1.4rem); }
.publication-row p { margin: 0 0 .5rem; line-height: 1.6; }
.design-more a, .publication-row a:hover { text-decoration: underline; text-underline-offset: .18em; }
.design-theme {
  pointer-events: auto;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  margin-inline-start: auto;
  border: 1px solid var(--control-border, #d6e1fa);
  border-radius: 50%;
  color: var(--text);
  background: var(--surface);
  cursor: pointer;
  order: 1;
}
.design-theme:hover { color: var(--link); border-color: var(--link); }
.design-theme svg { grid-area: 1 / 1; width: 20px; height: 20px; }
.design-theme .theme-sun, .dark .design-theme .theme-moon { display: none; }
.dark .design-theme .theme-sun { display: block; }
@media (max-width: 900px) {
  .site-header { flex-flow: row wrap; align-items: center; }
  .site-header .nav { order: 2; width: 100%; justify-content: center; }
}
.design-footer-email { margin: 0; }
.design-footer-email a:hover { color: #fff; text-decoration: underline; }
.reference-figures { max-width: 900px; margin: 3rem auto; padding-inline: clamp(1rem, 4vw, 2rem); }
.reference-figures figure { margin: 2rem 0; }
.reference-figures img { display: block; max-width: 100%; height: auto; }
.reference-figures figcaption { margin-top: .6rem; line-height: 1.45; }
.design-request {
  position: fixed;
  width: min(34rem, calc(100% - 2rem));
  max-height: calc(100% - 2rem);
  padding: clamp(1rem, 5vw, 2rem);
  overflow-y: auto;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--blue-soft);
  border-radius: 16px;
  box-shadow: 0 16px 80px #0f1d4a30;
}
.design-request::backdrop { background: #0f1d4a80; }
.design-request h2 { margin: 0 2rem .5rem 0; font-weight: 500; font-size: 1.9rem; }
.design-request p { line-height: 1.45; }
.design-request-close {
  position: absolute;
  top: .75rem;
  right: .75rem;
  width: 2.5rem;
  height: 2.5rem;
  font-size: 1.6rem;
  color: inherit;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.design-request fieldset { display: grid; gap: .75rem; padding: 0; margin: 1.2rem 0; border: 0; }
.design-request label { display: block; font-weight: 500; }
.design-request input, .design-request textarea {
  display: block;
  width: 100%;
  margin-top: .35rem;
  padding: .6rem .75rem;
  border: 1px solid var(--field-border);
  border-radius: 6px;
  color: var(--text);
  background: var(--surface);
  font: inherit;
}
.design-request button.btn { border: 0; font-family: inherit; cursor: pointer; }
.design-request button:disabled { cursor: wait; }
.design-request-error { color: var(--error-text); }
@media (min-width: 901px) and (max-width: 1080px) {
  .site-header { gap: 14px; }
  .nav { position: static; transform: none; margin-inline-start: auto; padding-inline: 18px; font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .slide, .acc-panel { transition: none; }
}

.design-card-lock {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: 0;
}
.design-card-lock {
  position: absolute;
  left: clamp(22px, 2.4vw, 36px);
  bottom: clamp(22px, 2.4vw, 36px);
  padding: .5rem .65rem;
  color: #fff;
  background: #0f1d4ad9;
  border: 1px solid #ffffff5c;
  border-radius: 6px;
}
/* The rotating cards stay beneath the fixed site navigation. */
.coverflow { isolation: isolate; }
.coverflow:not([data-ready]) .slide[aria-hidden="true"] { display: none; }
.coverflow:not([data-ready]) .slide { transform: translateX(-50%); }
.superproximity-features {
  display: grid;
  gap: 1rem;
  max-width: 640px;
  margin: 0;
}
.superproximity-features dt { font-weight: 600; }
.superproximity-features dd {
  margin: .25rem 0 0;
  color: var(--muted-text);
  line-height: 1.6;
}

.slide-media.has-photo, .proto-card.has-photo { background: #152421; }
.slide-media.has-photo img, .proto-card.has-photo .proto-preview img {
  position: absolute;
  inset: var(--photo-top) auto auto var(--photo-left);
  width: var(--photo-width);
  height: auto;
  max-width: none;
  object-fit: fill;
  filter: none;
  mix-blend-mode: normal;
  opacity: 1;
}
.slide-media.has-photo .slide-shade {
  background: linear-gradient(to bottom, #0a1518be, #0a151898 32%, #0a151815 68%);
}


.protos { min-height: auto; padding-bottom: clamp(64px, 8vw, 112px); }
.protos .rail { isolation: isolate; }
.prototype-archive-link {
  margin: 1rem clamp(20px, 6vw, 96px) 0;
}
.proto-card.has-photo .proto-preview { opacity: 1; background: transparent; }
.proto-card.has-photo .proto-preview::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, #0a1518c9, #0a15188f 34%, #0a151818 58%, #0a1518c9);
}
.proto-card.has-photo .proto-track { color: #fff; }
@media (max-width: 600px) {
  .protos .page-title { margin-bottom: 26px; }
  .protos .rail {
    --rail-inset: clamp(16px, 5vw, 24px);
    --w: 79vw;
    padding: 0;
    touch-action: auto;
  }
  .protos .rail-track {
    overflow-x: auto;
    padding-inline: var(--rail-inset);
    scroll-padding-inline: var(--rail-inset);
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    transition: none;
    will-change: auto;
  }
  .protos .rail-track::-webkit-scrollbar { display: none; }
  .protos .rail-track::after {
    /* Leave room for the last card to snap to the same starting edge. */
    content: "";
    flex: 0 0 calc(100% - var(--w) - var(--g));
  }
  .protos .proto {
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }
  .proto-card.has-photo .proto-title { font-size: clamp(22px, 6vw, 28px); }
}

/* Theme the transparent controls, graphics, and inverse surfaces. */
:root.dark { --blue: #365da9; }

.dark ::selection { background: #754a3d; color: #fff; }
.dark :focus-visible { outline-color: var(--link); }
.dark .brand-lockup img:first-child { filter: brightness(0) invert(.94); }
.dark .hero-art canvas { filter: brightness(1.5); }
.dark .nav {
  background: rgb(25 35 55 / .93);
  border-color: var(--blue-soft);
  box-shadow: 0 8px 32px #080d17a6;
}
.dark :is(.explore, .glass-btn, .glass-btn.solid, .hero-cta .btn-ghost) {
  color: var(--text);
  background: rgb(31 44 68 / .94);
  border-color: var(--control-border);
  box-shadow: 0 6px 24px #080d1766;
}
.dark :is(.explore, .glass-btn, .glass-btn.solid, .hero-cta .btn-ghost):hover {
  color: var(--text);
  background: #2c3e5e;
  border-color: var(--blue-text);
}
.dark .hero-cta .btn-dark { background: #365da9; border-color: #7093d7; }
.dark .hero-cta .btn-dark:hover { background: #3e67b5; }
.dark .btn-ghost:hover { background: var(--track); }

.footer { background: var(--inverse-surface); color: var(--inverse-text); }
.dark .footer { border-top: 1px solid var(--blue-soft); }
.dark :is(.footer-col h2, .footer-meta span) { color: var(--quiet-text); }
.dark .design-request { box-shadow: 0 16px 80px #070b15a6; }
.dark .design-request::backdrop { background: #080d17c2; }
.dark .design-request :is(input, textarea) { background: var(--page); }
.dark .design-request :is(input, textarea)::placeholder { color: var(--quiet-text); }

.dark :is(.acc-body a, .accent-link, .thesis-link, .work-more a) { text-decoration: underline; text-underline-offset: .19em; }
.dark :is(.pricing-head h1, .pricing-head h3) span { color: var(--blue-text); }
.dark .pc-featured .pc-top { background: #20345b; }
.dark .pc-featured .pc-btn:hover { color: var(--text); }

.dark :is(.sch-flow, .flow-links) { color: var(--blue-text); }
.dark :is(.chart, .bars, .owners) text { fill: var(--text); }
.dark :is(.chart, .bars) .tick { fill: var(--quiet-text); }
.dark :is(.chart, .bars) .axis { stroke: var(--blue-text); }
.dark :is(.chart, .bars) text:is(.seg-val, .sv) { fill: #fff; }
.dark .owners :is(.owner.on text, .sch-rail text) { fill: #fff; }
.dark .article { --accent: #b44e2c; }
.dark :is(.findings li strong, .findings .kf-big strong, .sec-num) { color: var(--warm-link); }
.dark .mx-cell i { background: var(--blue-text); }
.dark .mx-cell.diag i { background: var(--accent); }
.dark .gl-actions .gl-accept, .dark .gl-perm-head em { background: var(--green); border-color: var(--green); }

.dark .pfc {
  --pfc-bar-primary: #8faff5;
  --pfc-bar-secondary: #bac9e8;
}
.dark .pfc-field > select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' width='16' height='16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23bfcce4' stroke-width='1.5'/%3E%3C/svg%3E");
}
.dark .pfc .pfc-cta a { color: var(--page); background: var(--link); }
.dark .pfc .pfc-cta a:hover { background: #ffc8af; }

.proto-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .65rem;
}
.proto-meta .design-card-lock { position: static; }

.calc-page > [data-gallery-return] { margin-inline: clamp(20px, 4vw, 56px); }
