/* Home page — values extracted from live deep-tech.solutions production CSS */

:root {
  --black: #121422;
  --black-2: #01020a;
  --black-3: #262734;
  --black-4: #0d0d15;
  --black-5: #1b1b27;
  --black-6: #070c1a;
  --white: #fff;
  --letter-spacing: -0.032em;
  --header-height: 5rem;
  --container-padding: 1.7rem;
  --font-grotzec: "Grotzec", sans-serif;
  --font-text: "Text", sans-serif;
  --default-line-height: 1.4;
  --default-font-weight: 400;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  /* live production: 1.04167vw → 20px at 1920px width */
  font-size: 1.04167vw;
  scroll-behavior: smooth;
  height: 100%;
  background-color: var(--black-6);
}

body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font-text);
  font-style: normal;
  font-size: 1rem;
  line-height: var(--default-line-height);
  font-weight: var(--default-font-weight);
  letter-spacing: normal;
  background-color: var(--black-6);
  color: var(--white);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
p {
  margin: 0;
}

img,
svg {
  display: block;
  max-width: 100%;
}

.page {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  background-color: var(--black-6);
}

/* —— Header (Home only — not About-style full nav) —— */
.header-logo-link {
  display: block;
  flex-shrink: 0;
  width: 7rem;
  aspect-ratio: 400 / 150;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  transition: opacity 0.3s ease-out;
}

.header-logo-link:hover {
  opacity: 0.7;
}

.header-logo-link--light {
  background-image: url("../images/logo.png");
}

.site-header {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: var(--header-height);
  padding: 0.8rem 2.05rem;
  color: var(--white);
  transition: background-color 0.3s ease-out, transform 0.3s ease-out, color 0.3s ease-out;
}

.site-header__menu-btn {
  display: none;
}

.site-header__menu-icon {
  display: block;
  width: 100%;
  height: 100%;
}

.site-header__nav {
  display: flex;
  flex: 1;
  min-width: 0;
}

.site-header__menu-close {
  display: none;
}

.site-header__nav-list {
  display: flex;
  flex-wrap: nowrap;
  margin-left: 4rem;
  list-style: none;
  min-width: 0;
  visibility: hidden;
  pointer-events: none;
}

.site-header__nav-item {
  position: relative;
  flex-shrink: 0;
}

.site-header__nav-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  height: 100%;
  background-color: currentColor;
  opacity: 0.2;
}

.site-header__nav-link {
  display: block;
  padding: 0.55rem 2.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: normal;
  white-space: nowrap;
  transition: opacity 0.3s ease-out;
}

.site-header__nav-link:hover {
  opacity: 0.7;
}

.site-header__nav-mobile {
  display: none;
}

.site-header__right {
  display: flex;
  align-items: stretch;
  gap: 1.5rem;
  margin-left: auto;
  flex-shrink: 0;
}

.site-header__about,
.site-header__contact,
.site-header__search {
  align-self: center;
}

.site-header__logo {
  transition: opacity 0.3s ease-out;
}

.site-header__logo:hover {
  opacity: 0.7;
}

.site-header__about {
  display: block;
  padding: 0;
  font-family: var(--font-text);
  font-weight: 500;
  font-size: 0.9rem;
  line-height: normal;
  letter-spacing: -0.025em;
  color: var(--white);
  transition: color 0.3s ease-out;
}

.site-header__about:hover {
  color: hsla(0, 0%, 100%, 0.6);
}

.btn {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  border: 1px solid rgba(18, 20, 34, 0.2);
  border-radius: 50rem;
  font-family: var(--font-grotzec);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.4;
  text-transform: uppercase;
  text-align: center;
  transition: opacity 0.3s ease-out, border-color 0.3s ease-out;
}

.btn:hover {
  opacity: 0.7;
}

.btn--white-bd {
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--white);
  background: transparent;
}

.btn--white-bd:hover {
  border-color: rgba(255, 255, 255, 0.9);
  opacity: 1;
}

.site-header__contact {
  width: 9rem;
  padding: 0.5rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50rem;
  font-family: var(--font-grotzec);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.4;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
  background: transparent;
  color: inherit;
  transition: opacity 0.3s ease-out, border-color 0.3s ease-out;
}

.site-header__contact:hover {
  border-color: rgba(255, 255, 255, 0.9);
}

.site-header__search {
  --size: 1.45rem;
  display: block;
  flex-shrink: 0;
  width: var(--size);
  height: var(--size);
  transition: color 0.3s ease-out, opacity 0.3s ease-out;
}

.site-header__search:hover {
  opacity: 0.7;
}

.site-header__search svg {
  width: 100%;
  height: 100%;
}

.site-header__link-icon {
  --size: 1.3rem;
  display: none;
  flex-shrink: 0;
  width: var(--size);
  height: var(--size);
}

/* —— Home main —— */
.home {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding-top: calc(var(--header-height) + 3.95rem);
  padding-inline: var(--container-padding);
  background-color: var(--black-6);
  color: var(--white);
  overflow: hidden;
}

.home::before {
  content: "";
  position: absolute;
  top: calc(var(--header-height) + 2.45rem);
  bottom: 0;
  left: var(--container-padding);
  width: 1px;
  background-color: hsla(0, 0%, 100%, 0.3);
  z-index: 3;
}

.home__wrap {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  margin-bottom: 2.5rem;
}

.home__content {
  position: relative;
  z-index: 1;
  padding-left: 2.85rem;
}

.home__subtitle {
  margin-bottom: 0.5rem;
  font-size: 0.65rem;
  font-weight: 600;
  line-height: 1.385;
  text-transform: uppercase;
  white-space: pre-line;
}

.home__title {
  margin-bottom: 1.5rem;
  font-family: var(--font-grotzec);
  font-size: 11rem;
  font-weight: 600;
  line-height: 0.9167;
  letter-spacing: var(--letter-spacing);
  text-transform: uppercase;
}

.home__text {
  max-width: calc(22.2rem + 30px);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.025em;
}

/* Sphere / media area — same box as live Main_main__sceneWrap */
.home__scene-wrap {
  position: absolute;
  top: 42.1%;
  left: 72.5%;
  width: 67%;
  transform-origin: center center;
  transform: translate(-50%, -50%);
  z-index: 0;
  object-fit: contain;
  pointer-events: none;
}

.home__scene-wrap::before {
  content: "";
  display: block;
  padding-bottom: 130.7153965785%;
}

.home__scene {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

.home__sphere-placeholder {
  position: absolute;
  inset: 18% 22%;
  border-radius: 50%;
  background: radial-gradient(
    circle at 42% 38%,
    rgba(255, 255, 255, 0.06) 0%,
    rgba(255, 255, 255, 0.02) 42%,
    transparent 70%
  );
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.home__sphere-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  pointer-events: none;
}

.home__sphere-video[data-ready="true"] {
  opacity: 1;
}

.home__sphere-video[data-ready="true"] ~ .home__sphere-placeholder {
  opacity: 0;
}

.home__gradient {
  display: none;
}

.home__list {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  width: 100%;
  margin-top: auto;
  counter-reset: counter;
}

.home__item {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 7.2rem;
  padding: 0.6rem 1.5rem 2rem;
  border-right: 1px solid hsla(0, 0%, 100%, 0.2);
  border-top: 1px solid hsla(0, 0%, 100%, 0.2);
}

.home__item--about {
  padding-top: 1.2rem;
}

.home__item:not(.home__item--about) {
  counter-increment: counter;
}

.home__item:not(.home__item--about)::before {
  content: counter(counter, decimal-leading-zero) ".";
  color: hsla(0, 0%, 100%, 0.6);
  font-family: var(--font-grotzec);
  font-size: 0.8rem;
  line-height: 1.875;
  text-transform: uppercase;
}

.home__link {
  font-family: var(--font-grotzec);
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
  color: hsla(0, 0%, 100%, 0.6);
  transition: color 0.3s ease-out;
}

.home__link-nowrap {
  white-space: nowrap;
}

.home__link::after,
.home__link::before {
  content: "";
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

.home__link::after {
  z-index: 1;
}

.home__link::before {
  z-index: -1;
  transition: background-color 0.3s ease-out;
}

.home__link[href]:hover {
  color: var(--white);
}

.home__link[href]:hover::before {
  background-color: hsla(0, 0%, 100%, 0.07);
}

/* —— Mobile ≤1023px —— */
@media only screen and (max-width: 1023px) {
  :root {
    --header-height: 3.1rem;
    --container-padding: 1rem;
  }

  html {
    font-size: 5.33333vw;
  }

  .site-header {
    position: fixed;
    top: 0;
    display: grid;
    grid-template-columns: auto auto auto;
    align-items: center;
    gap: 1rem;
    padding: 0.9rem 0.7rem 0.9rem var(--container-padding);
  }

  .site-header__menu-btn {
    position: relative;
    z-index: 2;
    display: block;
    width: 0.9rem;
    height: 0.7rem;
  }

  .site-header__logo {
    justify-self: center;
    width: 7rem;
  }

  .site-header__nav {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    opacity: 0;
    background-color: var(--black);
    padding: 0.5rem var(--container-padding) 2rem;
    transition: opacity 0.3s ease-out;
    color: #fff;
    pointer-events: none;
    z-index: 10;
  }

  .site-header.is-open .site-header__nav {
    opacity: 1;
    pointer-events: all;
  }

  .site-header__menu-close {
    --size: 1.25rem;
    align-self: flex-start;
    display: block;
    width: var(--size);
    height: var(--size);
    margin-bottom: 3.55rem;
    transform: translate(-0.2rem, 0.5rem);
  }

  .site-header__nav-list {
    display: flex;
    flex-direction: column;
    margin-bottom: auto;
    margin-left: 0;
    visibility: visible;
    pointer-events: auto;
  }

  .site-header__nav-item::before {
    content: none;
  }

  .site-header__nav-item {
    position: relative;
  }

  .site-header__nav-link {
    display: flex;
    gap: 0.65rem;
    align-items: center;
    padding: 0;
    font-family: var(--font-grotzec);
    font-weight: 600;
    font-size: 2rem;
    line-height: 1.6;
    letter-spacing: -0.04rem;
    color: var(--white);
  }

  .site-header__nav-span {
    flex-grow: 1;
    display: flex;
    align-items: center;
    gap: 0.9rem;
  }

  .site-header__nav-span::after {
    content: "";
    flex-grow: 1;
    display: block;
    width: 1px;
    height: 1px;
    background-color: hsla(0, 0%, 100%, 0.15);
  }

  .site-header__link-icon {
    display: block;
  }

  .site-header__nav-mobile {
    margin-top: 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.8rem;
    font-weight: 500;
    line-height: 1.375;
    letter-spacing: -0.02rem;
  }

  .site-header__about,
  .site-header__contact {
    display: none;
  }

  .site-header__right {
    gap: 0;
    margin-left: 0;
    justify-self: end;
  }

  .site-header__search:hover {
    opacity: 1;
  }

  .btn {
    padding: 0.25rem 1.25rem;
    font-size: 0.8rem;
    line-height: 1.75;
  }

  .home {
    padding-top: calc(var(--header-height) + 1.15rem);
    padding-bottom: 2.5rem;
  }

  .home::before {
    content: none;
  }

  .home__wrap {
    display: flex;
    flex-direction: column;
    margin-bottom: 2.5rem;
    min-height: calc(18.45rem + 43vw);
  }

  .home__content {
    padding-left: 0;
  }

  .home__subtitle {
    font-size: 0.5rem;
    font-weight: 500;
  }

  .home__title {
    margin-bottom: 1rem;
    font-size: 3.6rem;
  }

  .home__text {
    padding-right: 2rem;
    font-size: 0.65rem;
    line-height: 1.384;
  }

  .home__scene-wrap {
    top: 24.25rem;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 163%;
  }

  .home__list {
    display: grid;
    width: 100%;
    margin-left: 0;
    gap: 1px;
    border-top: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 0;
  }

  .home__item {
    width: auto;
    min-height: auto;
    padding: 0.8rem 1rem 1.2rem;
    border-top: none;
    border-right: none;
    background-color: var(--black-3);
  }

  .home__item--about {
    display: none;
  }

  .home__item:not(.home__item--about)::before {
    font-size: 0.6rem;
    line-height: 2.5;
  }

  .home__link {
    font-size: 1rem;
    line-height: 1.5;
  }

  .home__link::before {
    content: none;
  }
}
