:root {
  --corvia-blue: #1370f7;
}
#home-reel {
  display: block !important;
  position: relative;
  height: auto !important;
  min-height: 0 !important;
  padding: clamp(80px, 12vw, 180px) var(--base-padding-x);
}
.corvia-intro-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(30px, 8vw, 120px);
  align-items: start;
}
#home-reel-title,
#home-reel-content,
#home-reel-desc,
#home-reel-cta {
  position: static !important;
  transform: none !important;
  opacity: 1 !important;
  width: auto !important;
  height: auto !important;
  margin: 0;
}
#home-reel-title,
#home-reel-content {
  grid-column: auto !important;
  grid-row: auto !important;
}
#home-reel-title {
  font-size: clamp(32px, 4vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}
#home-reel-title-inner,
#home-reel-title-line-1,
#home-reel-title-line-2 {
  display: block;
  padding-left: 0;
}
#about-who-title-left {
  margin: 0;
  font-weight: 400;
}
#home-reel-desc {
  font-size: clamp(18px, 1.8vw, 25px);
  line-height: 1.5;
}
#home-reel-cta {
  display: inline-block;
  margin-top: 28px;
  padding-bottom: 8px;
  border-bottom: 1px solid;
  font-size: 16px;
}
@media (max-width: 700px) {
  .corvia-intro-layout {
    grid-template-columns: 1fr;
  }
}
#header-logo svg {
  width: 174px;
  height: 40px;
}
#header-logo {
  height: 40px;
}
#header-menu-labs,
#header-menu-newsletter,
#footer-bottom-labs {
  display: none !important;
}
#header-menu-talk {
  display: flex;
}
#header-menu-newsletter,
#footer-middle-newsletter {
  position: relative;
}
.corvia-contact-copy {
  max-width: 460px;
  margin-top: 25px;
  font-size: clamp(18px, 1.5vw, 24px);
  line-height: 1.4;
}
.corvia-contact-cta {
  display: inline-block;
  margin-top: 22px;
  border-bottom: 1px solid currentColor;
  padding-bottom: 7px;
  font-size: 16px;
}
#header-menu-newsletter-form,
#header-menu-newsletter-input,
#footer-newsletter-input {
  display: none !important;
}
.corvia-contact-tag {
  margin-top: 20px;
  font:
    12px/1.5 ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.65;
}
.corvia-dialog {
  position: fixed;
  inset: 24px;
  margin: auto;
  max-width: 1000px;
  width: calc(100vw - 48px);
  max-height: calc(100svh - 48px);
  padding: 0;
  border: 0;
  border-radius: 22px;
  background: #f2f4f8;
  color: #0d1625;
  font-family: Aeonik, Arial, sans-serif;
  overflow: auto;
  box-shadow: 0 30px 100px #0005;
}
.corvia-dialog::backdrop {
  background: #030812b8;
  backdrop-filter: blur(12px);
}
.corvia-dialog-close {
  position: sticky;
  float: right;
  top: 20px;
  margin: 20px 20px -70px 0;
  z-index: 2;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: #0d1625;
  color: white;
  font-size: 29px;
  cursor: pointer;
}
.corvia-service-body {
  padding: 64px 60px 54px;
}
.corvia-eyebrow {
  font:
    12px/1.5 ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.corvia-service-body h2 {
  font-size: clamp(40px, 5vw, 66px);
  line-height: 1.03;
  font-weight: 400;
  letter-spacing: -0.04em;
  max-width: 85%;
  margin: 30px 0 20px;
}
.corvia-service-intro {
  font-size: 24px;
  line-height: 1.35;
  max-width: 720px;
  margin-bottom: 35px;
}
.corvia-service-body img {
  width: 100%;
  display: block;
  border-radius: 14px;
  aspect-ratio: 1.5;
  object-fit: cover;
}
.corvia-service-body ul {
  padding-left: 22px;
  margin: 30px 0;
  font-size: 20px;
  line-height: 1.8;
}
.corvia-service-measure {
  padding-top: 25px;
  border-top: 1px solid #bdc7d4;
  font-size: 15px;
  line-height: 1.5;
}
.corvia-service-note {
  font-size: 15px;
  line-height: 1.5;
  color: #536172;
  margin: 16px 0 26px;
}
.corvia-button {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 40px;
  background: #1370f7;
  color: white;
  font-size: 16px;
}
.corvia-film {
  max-width: 1280px;
  background: #060b15;
  color: white;
  padding: 30px;
}
.corvia-film video {
  display: block;
  width: 100%;
  max-height: 75svh;
  margin-top: 30px;
  border-radius: 12px;
}
#video-overlay {
  display: none !important;
}
/* Decorative registration marks have no navigation or interaction role. */
#about-crosses,
#home-hero-scroll-container-crosses,
#home-reel-video-container-crosses,
#end-section-content-crosses,
#scroll-nav-cross-line {
  display: none !important;
}
/* Give the astronaut its own space rather than placing the headline on its face. */
body:has(#home) #end-section-content {
  top: 26%;
}
body:has(#home) #end-section-title {
  --font-size: clamp(40px, 8vw, 92px);
}
@media (min-width: 813px) {
  body:has(#home) #end-section-content {
    left: var(--base-padding-x);
    top: 46%;
    width: 32%;
    text-align: left;
    transform: translate3d(0, -50%, 0) !important;
  }
  body:has(#home) #end-section-title {
    --font-size: clamp(38px, 5vw, 72px);
    margin-left: 0;
  }
  body:has(#home) #end-section-subtitle {
    font-size: clamp(10px, 1vw, 13px);
  }
}
.corvia-founders-overlay {
  opacity: 0;
  visibility: hidden;
  position: absolute;
  inset: 0;
  z-index: 2;
  background: transparent;
  color: #f4f6fa;
  padding: clamp(24px, 3.4vw, 64px);
  padding-top: clamp(72px, 9svh, 96px);
  padding-bottom: 18px;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}
.corvia-founders-overlay:before {
  content: "";
  position: absolute;
  inset: -48px;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    #02050800 20%,
    #02050815 45%,
    #020508d9 100%
  );
}
.corvia-team-word {
  display: flex;
  justify-content: space-between;
  margin: 0;
  font-size: clamp(65px, min(10.5vw, 14svh), 150px);
  font-weight: 400;
  line-height: 0.8;
  letter-spacing: -0.04em;
}
.corvia-founders-topline {
  display: flex;
  justify-content: space-between;
  font:
    11px/1.4 ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
  margin: 14px 0 0;
}
.corvia-founders-pair {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 5vw, 100px);
  width: min(1100px, 100%);
  margin: 18px auto 0;
  flex: 1;
  min-height: 0;
}
.corvia-founder {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 0;
  justify-content: end;
}
.corvia-founder:before {
  content: "";
  position: absolute;
  inset: auto -20px -12px;
  height: 135px;
  background: radial-gradient(
    ellipse at 50% 90%,
    #030609ec 15%,
    #030609b0 60%,
    transparent 100%
  );
  filter: blur(12px);
  pointer-events: none;
}
.corvia-founder h3,
.corvia-founder p,
.corvia-founder a {
  position: relative;
  z-index: 1;
  text-shadow: 0 2px 15px #000;
}
.corvia-founder-photo {
  flex: 1;
  min-height: 140px;
  max-height: min(46svh, 420px);
  position: relative;
  overflow: hidden;
}
.corvia-founder-photo img {
  position: absolute;
  width: 130%;
  max-width: none;
  height: 130%;
  left: -15%;
  top: 0;
  object-fit: cover;
  filter: grayscale(1);
  mask-image: linear-gradient(#000 75%, transparent);
}
.corvia-founder:nth-child(2) img {
  width: 230%;
  height: auto;
  left: -63%;
  top: -6%;
}
.corvia-founder-photo canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  filter: drop-shadow(0 0 8px #90a7ff24);
}
.corvia-founder-photo.has-particles img {
  opacity: 0;
}
.corvia-founder-photo.has-photo img {
  opacity: 0;
}
.corvia-founder-photo canvas.corvia-portrait-photo {
  filter: grayscale(1);
  opacity: 1;
}
.corvia-founder-photo.has-particles canvas.corvia-portrait-photo {
  opacity: 0.24;
}
@media (max-width: 480px) {
  .corvia-founder h3 {
    font-size: 18px !important;
  }
  .corvia-founder p {
    font-size: 10px;
  }
  .corvia-founder a {
    font-size: 11px !important;
  }
}
.corvia-founder h3 {
  font-size: clamp(23px, 3vw, 44px);
  font-weight: 400;
  letter-spacing: -0.035em;
  margin: 12px 0 7px;
}
.corvia-founder p {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.06em;
  opacity: 0.6;
  text-transform: uppercase;
}
.corvia-founder a {
  font-size: 13px;
  display: inline-block;
  padding: 12px 0;
  border-bottom: 1px solid #ffffff40;
  align-self: start;
}
#about-who-team-left,
#about-who-team-right,
#about-who-team-left-mobile-tips,
#about-who-face-cursor {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
.corvia-stage-label {
  font-size: clamp(22px, 3vw, 48px);
  font-weight: 400;
  letter-spacing: -0.02em;
}
.corvia-audience-word {
  width: auto;
  height: 64px;
}
.corvia-fallback {
  max-width: 1100px;
  padding: 35px 25px 80px;
  margin: auto;
  font-family: Aeonik, Arial, sans-serif;
  color: #0d1625;
}
.corvia-fallback > header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 65px;
}
.corvia-fallback h1 {
  font-size: clamp(40px, 6vw, 80px);
  font-weight: 400;
  letter-spacing: -0.04em;
}
@media (max-width: 700px) {
  .corvia-founders-overlay {
    padding-top: 70px;
  }
  #header-logo svg {
    width: 145px;
    height: 34px;
  }
  #header-logo {
    height: 34px;
  }
  .corvia-service-body {
    padding: 62px 25px 32px;
  }
  .corvia-dialog {
    inset: 12px;
    width: calc(100vw - 24px);
    max-height: calc(100svh - 24px);
    border-radius: 16px;
  }
  .corvia-service-body h2 {
    max-width: 100%;
    font-size: 40px;
  }
  .corvia-service-intro {
    font-size: 20px;
  }
  .corvia-founders-pair {
    gap: 18px;
  }
  .corvia-founder h3 {
    font-size: 24px;
  }
  .corvia-founders-topline {
    font-size: 9px;
  }
  .corvia-founder a {
    font-size: 12px;
  }
  .corvia-film {
    padding: 25px 16px;
  }
}

#projects-main-title-wrapper {
  font-size: 10.3vw;
  max-width: calc(100% - 9vw);
}
#projects-main-title {
  white-space: nowrap;
}
#projects-main-title-project-number {
  right: -8vw;
}
#projects-main-title-project-arrow {
  display: none;
}

/* Keep navigation and content clear of small screens and browser chrome. */
@media (min-width: 813px) and (max-width: 1000px) {
  #home-hero-title {
    grid-column: 1 / -1;
    max-width: 680px;
    margin-top: 64px;
    font-size: clamp(24px, 3.3vw, 32px);
  }
}
@media (max-width: 812px) {
  .project-item-line-1 {
    font-size: clamp(11px, 2.5vw, 15px);
  }
  #header-right-menu-btn,
  #header-right-sound-btn,
  #header-center-project-back-btn {
    min-width: 44px;
    min-height: 44px;
  }
  #header-menu {
    top: calc(var(--base-padding-y) + 58px);
    max-height: calc(100svh - var(--base-padding-y) - 74px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  #header-menu-links,
  #header-menu-talk {
    flex-shrink: 0;
  }
  #header-menu-links > a,
  #header-menu-links > button {
    min-height: 44px;
  }
  #about-who-title-left {
    top: calc(72px + env(safe-area-inset-top, 0px));
    margin-top: 0;
  }
  .corvia-founders-overlay {
    padding-inline: clamp(12px, 3vw, 24px);
  }
  .corvia-founder {
    min-width: 0;
  }
  .corvia-founder h3 {
    min-height: 2.3em;
    margin-bottom: 4px;
  }
  .corvia-founder a,
  .corvia-contact-cta,
  .corvia-fallback > header a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
  .corvia-service-body {
    padding-inline: clamp(18px, 5vw, 30px);
  }
  .corvia-fallback .corvia-service-body {
    padding-inline: 0;
  }
}
@media (max-height: 500px) and (min-width: 568px) {
  .corvia-founders-overlay {
    padding: 70px 24px 12px;
  }
  .corvia-team-word {
    font-size: 42px;
  }
  .corvia-founders-topline {
    margin-top: 8px;
  }
  .corvia-founders-pair {
    margin-top: 8px;
  }
  .corvia-founder {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1fr);
    grid-template-rows: 1fr auto 1fr;
    column-gap: 12px;
    align-items: center;
  }
  .corvia-founder-photo {
    grid-column: 1;
    grid-row: 1 / span 3;
    height: 100%;
    min-height: 64px;
    max-height: none;
  }
  .corvia-founder h3 {
    grid-column: 2;
    grid-row: 1;
    align-self: end;
    min-height: 0;
    font-size: 20px;
    margin: 6px 0 4px;
  }
  .corvia-founder a {
    grid-column: 2;
    grid-row: 3;
    align-self: start;
    min-height: 44px;
    padding-block: 8px;
  }
  .corvia-founder p {
    grid-column: 2;
    grid-row: 2;
  }
}
@media (pointer: coarse) {
  a, button {
    touch-action: manipulation;
  }
  .corvia-dialog {
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
}

/* A native-scrolling version stays usable if the cinematic renderer fails. */
html.corvia-lite-page {
  overflow: auto !important;
  height: auto !important;
  background: #f2f4f8;
}
body.corvia-lite {
  margin: 0;
  overflow: auto !important;
  height: auto !important;
  background: #f2f4f8;
  color: #0d1625;
  font: 18px/1.5 Arial, sans-serif;
  padding-inline: max(20px, env(safe-area-inset-left), env(safe-area-inset-right));
}
.corvia-lite a { color: inherit; }
.corvia-lite-header, .corvia-lite main, .corvia-lite footer {
  width: min(1100px, 100%);
  margin-inline: auto;
}
.corvia-lite-header, .corvia-lite nav, .corvia-lite footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
}
.corvia-lite-header { padding-block: 24px; }
.corvia-lite-brand svg { width: 174px; height: 40px; display: block; }
.corvia-lite nav a, .corvia-lite footer a { min-height: 44px; display: inline-flex; align-items: center; }
.corvia-lite section { padding-block: clamp(40px, 8vw, 100px); }
.corvia-lite h1, .corvia-lite h2, .corvia-lite h3 { font-weight: 400; line-height: 1.1; }
.corvia-lite h1 { max-width: 850px; font-size: clamp(38px, 7vw, 84px); letter-spacing: -.045em; margin: 24px 0; }
.corvia-lite h2 { font-size: clamp(30px, 4vw, 48px); letter-spacing: -.03em; }
.corvia-lite h3 { font-size: 25px; }
.corvia-lite-hero > p { max-width: 720px; }
.corvia-lite .corvia-button { color: white; text-decoration: none; margin-top: 20px; }
.corvia-lite-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.corvia-lite-card { padding: 24px; border: 1px solid #d3d9e2; border-radius: 16px; text-decoration: none; }
.corvia-lite-card span { text-decoration: underline; }
.corvia-lite footer { border-top: 1px solid #d3d9e2; padding-block: 24px; font-size: 14px; }
@media (max-width: 600px) {
  .corvia-lite-grid { grid-template-columns: 1fr; }
  .corvia-lite-header { align-items: start; }
}
