/* DarkSpaceAI global layout & branded loader */

html,
body {
  overscroll-behavior: none;
  -webkit-overflow-scrolling: touch;
  overflow: hidden;
  height: 100%;
}

html.dsai-native-scroll,
body.dsai-native-scroll {
  overflow-x: hidden !important;
  overflow-y: auto !important;
  height: auto !important;
  min-height: 100% !important;
  touch-action: pan-y !important;
}

body.dsai-native-scroll #page-container,
body.dsai-native-scroll #page-container-inner,
body.dsai-native-scroll #ui {
  position: relative !important;
  transform: none !important;
  height: auto !important;
  min-height: 100vh !important;
}

body.dsai-native-scroll #home,
body.dsai-native-scroll #home .section,
body.dsai-native-scroll #page-extra-sections {
  position: relative !important;
  transform: none !important;
  height: auto !important;
  min-height: auto !important;
}

body.dsai-native-scroll #home-hero {
  min-height: calc(var(--vh, 1vh) * 100) !important;
}

body.dsai-native-scroll #canvas {
  opacity: 0 !important;
  pointer-events: none !important;
}

body.dsai-native-scroll #input-blocker {
  pointer-events: none !important;
  opacity: 0 !important;
}

body.dsai-native-scroll #page-container,
body.dsai-native-scroll #page-container-inner {
  touch-action: pan-y !important;
}

#canvas,
#ui,
#page-container {
  touch-action: none;
}

@media (max-width: 812px), (pointer: coarse) {
  #canvas {
    pointer-events: none !important;
    touch-action: none !important;
  }

  #ui {
    pointer-events: auto;
    touch-action: manipulation;
  }

  html.dsai-native-scroll,
  body.dsai-native-scroll,
  #page-container,
  #page-container-inner {
    touch-action: pan-y !important;
  }

  #header-menu {
    max-height: min(82vh, calc(100dvh - env(safe-area-inset-top, 0px) - 80px)) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

  #header-menu-newsletter {
    display: flex !important;
  }

  #header-right-talk-btn {
    max-width: min(34vw, 140px) !important;
    overflow: visible !important;
  }

  #header-right-talk-btn-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  #header-container,
  #header-right {
    pointer-events: auto;
  }

  .project-item {
    touch-action: manipulation;
  }
}

@media (max-width: 812px) {
  #home-reel-title-inner {
    font-size: clamp(28px, 8vw, 42px) !important;
  }

  #home-reel-desc {
    font-size: clamp(14px, 3.8vw, 18px) !important;
    line-height: 1.45 !important;
  }

  #home-reel-thumb,
  #home-reel-thumb-container {
    max-width: 100% !important;
  }

  #home-goal-title {
    font-size: clamp(30px, 8vw, 52px) !important;
  }
}

#dsai-loader {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  opacity: 1;
  visibility: visible;
  pointer-events: all;
  transition: opacity 0.9s ease, visibility 0.9s ease;
}

#dsai-loader img {
  display: block;
  width: min(72vw, 440px);
  height: auto;
  max-height: min(42vh, 260px);
  object-fit: contain;
  animation: dsai-logo-breathe 2.4s ease-in-out infinite;
  filter: drop-shadow(0 0 28px rgba(255, 255, 255, 0.08));
}

#dsai-loader.dsai-loader--out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

@keyframes dsai-logo-breathe {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.92;
  }
  50% {
    transform: scale(1.035);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  #dsai-loader img {
    animation: none;
    opacity: 1;
  }

  #dsai-loader {
    transition-duration: 0.2s;
  }
}

#dsai-file-warning {
  position: fixed;
  inset: 0;
  z-index: 100001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: #000;
  color: #fff;
  font: 16px/1.5 system-ui, sans-serif;
  text-align: center;
}

#dsai-file-warning code {
  background: rgba(255, 255, 255, 0.12);
  padding: 2px 6px;
  border-radius: 4px;
}

body.loader-dismissed #transition-overlay,
body.loader-dismissed #preloader {
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

body.is-ready #ui,
body.is-ready #canvas {
  opacity: 1;
}

#header-container {
  overflow: visible !important;
}

#header-right {
  flex-wrap: nowrap !important;
  gap: 10px !important;
  overflow: visible !important;
  position: relative;
  z-index: 2;
  align-items: center !important;
}

#header-right-talk-btn {
  min-width: 0 !important;
  max-width: min(42vw, 220px) !important;
  left: auto !important;
  position: relative !important;
}

#header-right-talk-container {
  min-width: 0 !important;
  white-space: nowrap !important;
}

#header-right-talk-btn .contact-phone-display,
#header-menu-talk .contact-phone-display,
#footer-contact-enquires .contact-phone-display,
#footer-contact-business .contact-phone-display {
  display: none !important;
}

#header-right-menu-btn {
  flex-shrink: 0 !important;
  border-radius: 9999px !important;
  position: relative;
  z-index: 3;
  isolation: isolate;
  overflow: hidden;
  background-color: var(--color-dark-white, #eaeaea) !important;
}

#header-background {
  z-index: 0;
}

@media (max-width: 1100px) {
  #header-right-talk-btn-placeholder {
    display: none !important;
  }

  #header-right-talk-btn {
    max-width: min(36vw, 180px) !important;
  }
}

@media (max-width: 812px) {
  #header-right {
    gap: 8px !important;
  }

  #header-right-sound-btn {
    display: none !important;
  }

  #header-right-talk-btn {
    left: auto !important;
    position: relative !important;
    width: auto !important;
    max-width: 118px !important;
    min-width: 0 !important;
    padding: 0 10px !important;
    flex-shrink: 1 !important;
    overflow: hidden !important;
  }

  #header-right-talk-container {
    gap: 4px !important;
  }

  #header-right-talk-btn-text {
    font-size: 0.68rem !important;
    letter-spacing: 0.01em !important;
  }

  #header-right-talk-btn-arrow {
    transform: scale(0.85);
  }

  #header-right-menu-btn {
    position: relative !important;
    width: auto !important;
    min-width: 3.2em !important;
    max-width: 96px !important;
    padding: 0 12px !important;
    flex-shrink: 0 !important;
    transform: none !important;
  }

  #header-right-menu-btn-text,
  #header-right-menu-btn-text-close {
    font-size: 0.68rem !important;
  }
}

#footer-contact-socials {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
}

.footer-socials-line {
  align-items: center !important;
  white-space: nowrap !important;
}

#scroll-nav-section {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  overflow: hidden !important;
  visibility: hidden !important;
  pointer-events: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

#home-reel-desc,
#home-featured-disclaimer,
.footer-address-line,
.project-item-line-1,
.project-item-line-2-inner {
  overflow-wrap: anywhere !important;
  word-break: normal !important;
}

#home-featured-title,
#home-reel-title-inner {
  overflow-wrap: break-word !important;
}

#home-reel-cta,
#home-featured-cta,
#header-right-talk-btn,
#header-menu-talk {
  white-space: nowrap !important;
}

@media (max-width: 812px) {
  #home-reel-desc {
    max-width: 100% !important;
  }
}

#dsai-white-backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: #ffffff;
  opacity: var(--dsai-backdrop-opacity, 0);
  transition: opacity 0.55s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity;
}

#canvas {
  z-index: 2;
  opacity: var(--dsai-canvas-opacity, 1);
  transition: opacity 0.55s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity;
}

#ui {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 3;
  isolation: isolate;
}

html.dsai-section-hero #header,
html.dsai-section-goal #header,
html.dsai-section-team #header {
  color: #fff;
}

html.dsai-section-reel #header,
html.dsai-section-featured #header,
html.dsai-reel-white #header {
  color: #000;
}

html.dsai-section-reel #header-background,
html.dsai-section-featured #header-background,
html.dsai-reel-white #header-background {
  opacity: 0;
}

#home-hero,
#home-reel,
#home-goal,
#scroll-nav-section {
  background: transparent !important;
}

html.dsai-reel-white #home-reel,
html.is-white-bg #home-reel {
  color: #000;
}

html.dsai-reel-white #home-reel-desc,
html.is-white-bg #home-reel-desc {
  color: #111;
}

html.dsai-reel-white #home-reel-cta,
html.dsai-reel-white #home-reel-cta-text {
  color: #000;
}

html.dsai-reel-white #home-reel-cta-dot {
  background-color: #000;
}

html.dsai-reel-white #home-reel-cta-arrow svg path {
  stroke: #000;
}

#home-goal-context,
#home-goal-context #home-goal-title,
#home-goal-texts,
.home-goal-texts-paragraph {
  color: #111 !important;
}

#home-goal-tunnel-title,
.home-goal-tunnel-title-line,
.home-goal-tunnel-title-line span {
  color: #111 !important;
}

html.dsai-section-goal #home-goal-tunnel-title,
html.dsai-section-goal .home-goal-tunnel-title-line,
html.dsai-section-goal .home-goal-tunnel-title-line span {
  color: #fff !important;
}

html:not(.dsai-astronaut-finale) #end-section-subtitle,
html:not(.dsai-astronaut-finale) #end-section-subtitle-text,
html:not(.dsai-astronaut-finale) #end-section-title,
html:not(.dsai-astronaut-finale) #end-section-title-link,
html:not(.dsai-astronaut-finale) .end-section-title-link-line,
html:not(.dsai-astronaut-finale) #end-bottom-text {
  color: #000 !important;
}

#footer-section,
#footer-middle-contact,
#footer-contact-address,
.footer-address-line,
#footer-enquires-header,
#footer-enquires-link,
#footer-business-header,
#footer-business-link,
.footer-socials-text,
#footer-bottom-copyright,
#footer-bottom-tagline,
#footer-bottom-labs {
  color: #111 !important;
}

#footer-section a {
  color: inherit;
}

html.dsai-section-reel #header-background,
html.dsai-section-featured #header-background,
html.dsai-reel-white #header-background,
html.is-white-bg #header-background {
  background: transparent !important;
}

html.dsai-section-reel #header-background.--opened,
html.dsai-section-featured #header-background.--opened,
html.dsai-reel-white #header-background.--opened,
html.is-white-bg #header-background.--opened {
  opacity: 1 !important;
  pointer-events: auto !important;
  background: rgba(255, 255, 255, 0.98) !important;
  width: 100vw !important;
  left: 50% !important;
  right: auto !important;
  margin-left: -50vw !important;
  height: 100vh !important;
}

html.dsai-section-hero #header-background.--opened,
html.dsai-section-goal #header-background.--opened,
html.dsai-section-team #header-background.--opened {
  background: linear-gradient(270deg, rgba(11, 11, 18, 0.55), rgba(11, 11, 18, 0)) !important;
  width: min(50vw, 100vw) !important;
  left: auto !important;
  right: 0 !important;
  margin-left: 0 !important;
}

html.dsai-reel-white #canvas.dsai-canvas-visible,
html.is-white-bg #canvas.dsai-canvas-visible {
  opacity: var(--dsai-canvas-opacity, 1);
}

html.dsai-section-hero,
html.dsai-section-hero body {
  background-color: #000000 !important;
}

html.dsai-section-featured #home-featured-cta,
html.dsai-section-featured #home-featured-cta-text {
  color: #000;
}

html.dsai-section-featured #home-featured-cta-dot {
  background-color: #000;
}

html.dsai-section-featured #home-featured-cta-arrow svg path {
  stroke: #000;
}

#home-reel-thumb canvas,
#home-reel-thumb video,
#home-reel-thumb-container canvas,
#home-reel-thumb-container video {
  image-rendering: auto;
  filter: none !important;
}

html.dsai-reel-white #home-reel,
html.dsai-reel-white #home-reel-title,
html.dsai-reel-white #home-reel-title-inner,
html.is-white-bg #home-reel,
html.is-white-bg #home-reel-title,
html.is-white-bg #home-reel-title-inner {
  color: #000 !important;
}

#home-goal {
  background: transparent !important;
  z-index: 1;
}

#home-featured,
#footer-section {
  background-color: #ffffff !important;
  position: relative;
  z-index: 2;
  isolation: isolate;
}

html:not(.dsai-astronaut-finale) #page-extra-sections {
  background-color: #ffffff !important;
}

#page-extra-sections,
#end-section {
  position: relative;
  z-index: 2;
  isolation: isolate;
  overflow: visible !important;
}

#end-section {
  height: calc(var(--vh, 1vh) * 350) !important;
  color: var(--color-white, #fff);
  pointer-events: none;
}

html.dsai-astronaut-finale #page-extra-sections,
html.dsai-astronaut-finale #end-section,
html.dsai-astronaut-finale #end-section-outer,
html.dsai-astronaut-finale #end-section-inner {
  background: transparent !important;
  background-color: transparent !important;
}

html.dsai-astronaut-finale #canvas {
  opacity: 1 !important;
  pointer-events: none;
}

html.dsai-astronaut-finale #end-section-content {
  position: absolute;
  left: 50%;
  top: calc(50% - 3em);
  transform: translate(-50%, -50%);
  z-index: 6;
  pointer-events: auto;
  width: 100%;
  text-align: center;
}

html.dsai-astronaut-finale #end-section-subtitle,
html.dsai-astronaut-finale #end-section-subtitle-text,
html.dsai-astronaut-finale #end-section-title,
html.dsai-astronaut-finale #end-section-title-link,
html.dsai-astronaut-finale .end-section-title-link-line {
  color: #fff !important;
}

html.dsai-astronaut-finale #end-section-title-top-decoration,
html.dsai-astronaut-finale #end-section-title-bottom-left-decoration,
html.dsai-astronaut-finale #end-section-title-bottom-right-decoration {
  background: #fff !important;
}

#end-bottom {
  bottom: calc(var(--vh, 1vh) * 5) !important;
  z-index: 8 !important;
  isolation: isolate;
}

#end-bottom-text-container {
  position: relative !important;
  height: 1.125em !important;
  min-width: 10.5em !important;
  overflow: hidden !important;
  flex-shrink: 0 !important;
}

#end-bottom-text {
  display: block !important;
  width: 100% !important;
}

#end-bottom-text:last-child {
  position: absolute !important;
  top: -1.5em !important;
  left: 0 !important;
  right: 0 !important;
}

html.dsai-astronaut-finale #end-section-content {
  top: calc(50% - 6.5em) !important;
}

html.dsai-astronaut-finale #end-bottom {
  background: #fff !important;
  color: #000 !important;
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.04), 0 2px 4px rgba(0, 0, 0, 0.04);
  bottom: calc(var(--vh, 1vh) * 3.5) !important;
}

html.dsai-astronaut-finale #end-bottom-text {
  color: #000 !important;
}

html.dsai-section-goal #header,
html.dsai-astronaut-finale #header {
  color: #fff;
}

#home-reel,
#home-goal {
  position: relative;
  z-index: 1;
  isolation: isolate;
}

#home-featured .project-item-image,
#projects-main .project-item-image {
  background-color: rgba(255, 255, 255, 0.04) !important;
  position: relative;
  overflow: hidden;
}

.project-item-image .dsai-project-thumb {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  pointer-events: none;
}

.project-item-image[data-project-name]::before {
  content: attr(data-project-name);
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  text-align: center;
  font-size: clamp(0.95rem, 2vw, 1.35rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.02em;
  color: var(--dsai-project-accent, #fff);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

.project-item-image.dsai-tile-visual-ready canvas {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

#project-details {
  min-height: auto !important;
  height: auto !important;
  padding-bottom: 48px !important;
}

#project-details-meta {
  position: relative !important;
  top: 0 !important;
  width: 100% !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: clamp(96px, 14vh, 160px) clamp(20px, 5vw, 72px) 48px !important;
  transform: none !important;
  z-index: 4 !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

#project-details-meta a {
  pointer-events: auto !important;
}

#project-details.has-cta #project-details-launch-cta {
  display: flex !important;
}

@media (max-width: 768px) {
  #project-details.has-cta #project-details-launch-cta {
    display: none !important;
  }

  #project-details.has-cta #project-details-launch-cta-mobile {
    display: flex !important;
  }
}

#project-details-launch-cta,
#project-details-launch-cta-mobile {
  pointer-events: auto !important;
  cursor: pointer !important;
}

#project-details-preview {
  position: relative !important;
  height: auto !important;
  min-height: 40vh !important;
  padding: 48px clamp(20px, 5vw, 72px) !important;
}

body:has(#project-details) #input-blocker {
  pointer-events: none !important;
  opacity: 0 !important;
}

body:has(#project-details) #canvas {
  opacity: 0 !important;
  pointer-events: none !important;
}

#canvas.dsai-canvas-faded {
  opacity: var(--dsai-canvas-opacity, 0);
  pointer-events: none;
}

#canvas.dsai-canvas-visible {
  opacity: var(--dsai-canvas-opacity, 1);
}

#home-featured .project-item-image canvas,
#projects-main .project-item-image canvas {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

#home-featured .project-item-image:has(.dsai-project-thumb),
#projects-main .project-item-image:has(.dsai-project-thumb) {
  background-size: cover !important;
  background-position: center !important;
}

#dsai-team-section {
  position: relative;
  z-index: 2;
  isolation: isolate;
  display: block !important;
  width: 100%;
  min-height: min(92vh, 980px);
  padding: clamp(72px, 10vw, 140px) clamp(20px, 5vw, 72px);
  overflow: hidden;
  background: #050505;
  --dsai-team-progress: 0;
}

#dsai-team-section .dsai-team-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 22%, rgba(201, 169, 98, 0.16), transparent 42%),
    radial-gradient(circle at 82% 78%, rgba(255, 120, 40, 0.08), transparent 38%),
    linear-gradient(180deg, #080808 0%, #030303 100%);
  pointer-events: none;
}

#dsai-team-section .dsai-team-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  max-width: 1320px;
  margin: 0 auto;
}

#dsai-team-section .dsai-team-eyebrow {
  margin: 0 0 14px;
  color: #c9a962;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

#dsai-team-section .dsai-team-title {
  margin: 0 0 18px;
  color: #fff;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  font-weight: 700;
  text-wrap: balance;
}

#dsai-team-section .dsai-team-desc {
  margin: 0 0 28px;
  max-width: 34ch;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(15px, 1.35vw, 18px);
  line-height: 1.65;
}

#dsai-team-section .dsai-team-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border: 1px solid rgba(201, 169, 98, 0.45);
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(201, 169, 98, 0.08);
  transition: transform 0.35s ease, border-color 0.35s ease, background 0.35s ease;
}

#dsai-team-section .dsai-team-cta:hover {
  transform: translateY(-2px);
  border-color: rgba(201, 169, 98, 0.85);
  background: rgba(201, 169, 98, 0.16);
}

#dsai-team-section .dsai-team-copy {
  opacity: calc(0.35 + var(--dsai-team-progress) * 0.65);
  transform: translate3d(calc((1 - var(--dsai-team-progress)) * -36px), 0, 0);
  transition: opacity 0.4s ease;
}

#dsai-team-section .dsai-team-copy.is-visible {
  opacity: 1;
}

#dsai-team-section .dsai-team-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

#dsai-team-section .dsai-team-frame {
  position: relative;
  width: min(100%, 520px);
  aspect-ratio: 3 / 4;
  padding: 14px;
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(201, 169, 98, 0.22), rgba(255, 255, 255, 0.03));
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.65),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset;
  transform:
    perspective(1200px)
    rotateY(calc(-8deg + var(--dsai-team-progress) * 8deg))
    rotateX(calc(4deg - var(--dsai-team-progress) * 4deg))
    scale(calc(0.94 + var(--dsai-team-progress) * 0.06));
  opacity: calc(0.45 + var(--dsai-team-progress) * 0.55);
  transition: opacity 0.5s ease;
}

#dsai-team-section .dsai-team-frame.is-visible {
  opacity: 1;
}

#dsai-team-section .dsai-team-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  border-radius: 12px;
  filter: contrast(1.06) saturate(0.92);
}

#dsai-team-section .dsai-team-shine {
  position: absolute;
  inset: 14px;
  border-radius: 12px;
  background: linear-gradient(
    115deg,
    transparent 35%,
    rgba(255, 255, 255, 0.14) 50%,
    transparent 65%
  );
  mix-blend-mode: screen;
  opacity: calc(var(--dsai-team-progress) * 0.55);
  pointer-events: none;
}

#dsai-team-section .dsai-team-corner {
  position: absolute;
  width: 28px;
  height: 28px;
  border: 2px solid rgba(201, 169, 98, 0.85);
  pointer-events: none;
}

#dsai-team-section .dsai-team-corner--tl {
  top: 0;
  left: 0;
  border-right: none;
  border-bottom: none;
}

#dsai-team-section .dsai-team-corner--tr {
  top: 0;
  right: 0;
  border-left: none;
  border-bottom: none;
}

#dsai-team-section .dsai-team-corner--bl {
  bottom: 0;
  left: 0;
  border-right: none;
  border-top: none;
}

#dsai-team-section .dsai-team-corner--br {
  right: 0;
  bottom: 0;
  border-left: none;
  border-top: none;
}

#dsai-team-section .dsai-team-badge {
  position: absolute;
  right: -8px;
  bottom: 28px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.72);
  border: 1px solid rgba(201, 169, 98, 0.35);
  color: #c9a962;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

@media (max-width: 960px) {
  #dsai-team-section .dsai-team-inner {
    grid-template-columns: 1fr;
  }

  #dsai-team-section .dsai-team-visual {
    order: -1;
  }

  #dsai-team-section .dsai-team-frame {
    width: min(100%, 420px);
    margin: 0 auto;
  }

  #dsai-team-section .dsai-team-badge {
    right: 12px;
    bottom: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #dsai-team-section .dsai-team-copy,
  #dsai-team-section .dsai-team-frame,
  #dsai-team-section .dsai-team-cta {
    transform: none !important;
    transition: none !important;
  }
}

#footer-middle-newsletter.dsai-contact-panel {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 28px;
  min-height: 0;
}

#footer-middle-newsletter.dsai-contact-panel #footer-newsletter-header {
  position: static !important;
  font-size: clamp(28px, 3.2vw, 44px) !important;
  line-height: 1.08 !important;
  margin: 0 !important;
  padding: 0 !important;
}

#footer-middle-newsletter.dsai-contact-panel .footer-newsletter-line {
  display: block !important;
}

#footer-middle-newsletter.dsai-contact-panel #footer-newsletter-form,
#dsai-contact-form {
  display: grid;
  gap: 14px;
  margin-top: 0;
  width: 100%;
  max-width: 100%;
  position: relative;
  z-index: 1;
}

#footer-middle-newsletter.dsai-contact-panel #footer-newsletter-feedback-message {
  margin-top: 4px;
}

.dsai-contact-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dsai-contact-field label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.55);
}

.dsai-contact-field input,
.dsai-contact-field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 12px;
  background: #fff;
  color: #000;
  font-size: 15px;
  line-height: 1.4;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.dsai-contact-field input:focus,
.dsai-contact-field textarea:focus {
  outline: none;
  border-color: rgba(0, 0, 0, 0.35);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06);
}

.dsai-contact-field textarea {
  min-height: 120px;
  resize: vertical;
}

#dsai-contact-submit {
  justify-self: start;
  margin-top: 4px;
  padding: 14px 24px;
  border: none;
  border-radius: 999px;
  background: #000;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

#dsai-contact-submit:hover:not(:disabled) {
  transform: translateY(-1px);
}

#dsai-contact-submit:disabled {
  opacity: 0.6;
  cursor: wait;
}

#footer-newsletter-feedback-message.dsai-contact-success {
  color: #0a7a2f;
}

#footer-newsletter-feedback-message.dsai-contact-error {
  color: #b00020;
}

#home-featured,
#home-reel,
#dsai-team-section {
  content-visibility: auto;
  contain-intrinsic-size: auto 900px;
}

#home-goal {
  content-visibility: visible;
  contain-intrinsic-size: auto calc(var(--vh, 1vh) * 4200);
}

#end-section,
#page-extra-sections {
  content-visibility: visible;
  contain-intrinsic-size: auto calc(var(--vh, 1vh) * 350);
}

html.dsai-astronaut-finale #end-section-content {
  mix-blend-mode: normal;
}

#end-section-outer,
#end-section-inner {
  overflow: visible !important;
}

@media (max-width: 812px) {
  #header-background {
    width: 100vw !important;
    left: 50% !important;
    right: auto !important;
    margin-left: -50vw !important;
  }

  html.dsai-section-hero #header-background.--opened,
  html.dsai-section-goal #header-background.--opened,
  html.dsai-section-team #header-background.--opened {
    width: 100vw !important;
    left: 50% !important;
    margin-left: -50vw !important;
    background: rgba(0, 0, 0, 0.88) !important;
  }

  html.dsai-section-reel #header-background.--opened,
  html.dsai-section-featured #header-background.--opened,
  html.is-white-bg #header-background.--opened {
    background: rgba(255, 255, 255, 0.98) !important;
  }

  #header-menu {
    width: calc(100% - 32px) !important;
    right: 16px !important;
    max-width: 420px;
  }

  #header-right-menu-btn {
    transform: none !important;
  }

  #home-hero-scroll {
    bottom: 24px !important;
    font-size: 10px !important;
    left: 50% !important;
    right: auto !important;
  }

  .home-hero-quote {
    bottom: 34% !important;
  }

  #home-reel-content,
  #home-reel-title {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  #home-featured-title-top,
  #home-featured .project-list {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  #home-featured-title {
    font-size: clamp(22px, 6.5vw, 32px) !important;
  }

  #home-goal-context-inner {
    padding: 0 16px !important;
  }

  #home-goal-texts {
    position: relative !important;
    grid-column: 1 / -1 !important;
    margin-top: 1.5em !important;
    font-size: 1rem !important;
  }

  #home-goal-title {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    left: 0 !important;
    margin-top: 1em !important;
  }

  #end-section-content {
    padding: 0 16px !important;
  }

  #footer-middle {
    display: flex !important;
    flex-direction: column !important;
    gap: 32px !important;
    padding: 0 16px 24px !important;
  }

  #footer-middle-contact {
    grid-column: 1 / -1 !important;
    font-size: 1rem !important;
  }

  #footer-middle-newsletter.dsai-contact-panel {
    grid-column: 1 / -1 !important;
  }

  #footer-middle-newsletter.dsai-contact-panel #footer-newsletter-header {
    font-size: clamp(24px, 7vw, 34px) !important;
  }

  .dsai-contact-field input,
  .dsai-contact-field textarea {
    font-size: 16px !important;
    min-height: 48px;
  }

  .dsai-contact-field textarea {
    min-height: 120px;
  }

  #dsai-contact-submit {
    width: 100%;
    justify-self: stretch;
    text-align: center;
  }

  #dsai-team-section {
    min-height: auto;
    padding: 56px 16px 72px;
  }

  #dsai-team-section .dsai-team-title {
    font-size: clamp(28px, 8vw, 44px) !important;
  }
}

@media (max-width: 480px) {
  #header-right-talk-btn {
    max-width: 120px !important;
  }

  #header-right-talk-btn-text {
    font-size: 0.75em !important;
  }

  #home-reel-video-container {
    margin-left: 12px !important;
    margin-right: 12px !important;
  }
}

.dsai-skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  z-index: 10000;
}

.dsai-skip-link:focus {
  left: 16px;
  top: 16px;
  width: auto;
  height: auto;
  padding: 10px 16px;
  background: #000;
  color: #fff;
  border-radius: 999px;
  text-decoration: none;
  font-size: 14px;
}

#header-menu-newsletter-title .header-menu-newsletter-title-line {
  line-height: 1.05 !important;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .home-hero-quote {
    opacity: 1 !important;
    transform: none !important;
  }
}
