/*
Theme Name: OCS
Theme URI: https://www.ocsgmbh.com
Author: OCS
Description: Custom OCS theme — hero and navigation from Figma Make.
Version: 0.4.1
Text Domain: ocs
*/

:root {
  --ink: #111311;
  --paper: #f2f1eb;
  --blue: #065fe5;
  --line: rgba(17, 19, 17, 0.17);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  scrollbar-width: thin;
  scrollbar-color: var(--blue) var(--paper);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Manrope", sans-serif;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  color: inherit;
  font: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.nav-shell {
  position: absolute;
  z-index: 30;
  top: 0;
  left: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  height: 96px;
  padding: 0 3.5vw;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  color: white;
}

.mark {
  display: flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.04em;
}

.mark svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  font-size: 12px;
}

.nav-links a,
.nav-links button {
  transition: opacity 0.25s;
}

.nav-links a:hover,
.nav-links button:hover {
  opacity: 0.55;
}

.product-menu-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
}

.product-menu-trigger span {
  display: grid;
  place-items: center;
  width: 14px;
  height: 14px;
  color: currentColor;
  font: 13px/1 "DM Mono", monospace;
}

.product-menu-trigger.active {
  opacity: 0.62;
}

.nav-cta {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
}

.arrow {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

.arrow.diagonal {
  transform: rotate(-45deg);
}

.menu-button {
  display: none;
}

.mega-menu-backdrop {
  position: fixed;
  z-index: 0;
  inset: 96px 0 0;
  background: rgba(5, 8, 9, 0.42);
  backdrop-filter: blur(3px);
}

.product-mega-menu {
  position: fixed;
  z-index: 1;
  top: 96px;
  right: 0;
  left: 0;
  max-height: calc(100svh - 96px);
  padding: 38px 3.5vw 26px;
  color: white;
  background: #101513;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
  overflow-y: auto;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-16px);
  pointer-events: none;
  transition:
    opacity 0.35s ease,
    transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1),
    visibility 0.35s;
}

.product-mega-menu.open {
  visibility: visible;
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.mega-menu-head {
  display: grid;
  grid-template-columns: 1fr 0.55fr;
  gap: 7vw;
  align-items: end;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.mega-kicker {
  display: block;
  margin-bottom: 18px;
  color: #63a5ff;
  font: 9px "DM Mono", monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.mega-menu-head h2 {
  margin: 0;
  font-size: clamp(34px, 4vw, 58px);
  font-weight: 500;
  line-height: 0.92;
  letter-spacing: -0.055em;
}

.mega-menu-head em {
  font-style: italic;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

.mega-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
}

.mega-intro p {
  max-width: 330px;
  margin: 0;
  color: #a7afa9;
  font-size: 13px;
  line-height: 1.55;
}

.mega-intro a,
.mega-menu-foot a {
  display: flex;
  align-items: center;
  gap: 16px;
  white-space: nowrap;
  font: 9px "DM Mono", monospace;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.mega-family-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 3vw;
}

.mega-family {
  padding: 24px 0 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.mega-family-title {
  display: grid;
  grid-template-columns: 26px 1fr 18px;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
}

.mega-family-title > span {
  color: #66736c;
  font: 9px "DM Mono", monospace;
}

.mega-family-title h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.025em;
}

.mega-family-title .arrow {
  transition: transform 0.25s;
}

.mega-family-title:hover {
  color: #66a8ff;
}

.mega-family-title:hover .arrow {
  transform: translateX(4px);
}

.mega-family ul {
  margin: 0 0 0 36px;
  padding: 0;
  list-style: none;
}

.mega-family li + li {
  margin-top: 6px;
}

.mega-family li a {
  display: inline-block;
  color: #9ba49f;
  font-size: 11px;
  line-height: 1.35;
  transition:
    color 0.2s,
    transform 0.2s;
}

.mega-family li a:hover {
  color: white;
  transform: translateX(4px);
}

.mega-menu-foot {
  display: flex;
  justify-content: space-between;
  padding-top: 20px;
  color: #747f78;
  font: 8px "DM Mono", monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mega-menu-foot a {
  color: #69a9ff;
}

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 82svh;
  padding: 120px 3.5vw 34px;
  color: white;
  background: var(--blue);
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    circle at 75% 48%,
    transparent 0 8%,
    rgba(0, 31, 101, 0.18) 50%,
    rgba(0, 26, 81, 0.3) 100%
  );
}

.hero-kicker,
.hero-bottom,
.hero h1 {
  position: relative;
  z-index: 2;
}

.hero-kicker {
  display: flex;
  justify-content: space-between;
  width: 39%;
  margin-bottom: clamp(35px, 6vh, 70px);
  font: 11px/1.4 "DM Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero h1 {
  margin: 0;
  max-width: 42vw;
  font-size: clamp(62px, 7.6vw, 116px);
  font-weight: 500;
  line-height: 0.82;
  letter-spacing: -0.075em;
  white-space: nowrap;
}

.hero-visual {
  position: absolute;
  z-index: 1;
  inset: 0 0 0 44%;
  width: 56%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 54% center;
  filter: saturate(0.88) contrast(1.02);
}

.hero-bottom {
  position: absolute;
  z-index: 4;
  right: 3.5vw;
  bottom: 5vh;
  left: 26%;
  display: flex;
  align-items: end;
  justify-content: space-between;
  width: auto;
  margin-top: 0;
}

.hero-bottom p {
  max-width: 250px;
  margin: 0;
  font-size: clamp(14px, 1.25vw, 18px);
  line-height: 1.45;
  letter-spacing: -0.02em;
}

.round-link {
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  transition: 0.3s;
}

.round-link:hover {
  color: var(--blue);
  background: white;
  transform: rotate(45deg);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.8s ease,
    transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

[data-reveal]:nth-child(1) {
  transition-delay: 0.05s;
}

[data-reveal]:nth-child(2) {
  transition-delay: 0.18s;
}

.hero-visual[data-reveal] {
  transition-delay: 0.28s;
}

.hero-bottom [data-reveal] {
  transition-delay: 0.4s;
}

.hero-bottom .round-link[data-reveal] {
  transition-delay: 0.52s;
}

@media (max-width: 1100px) {
  .mega-menu-head {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .mega-family-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 800px) {
  .nav-shell {
    height: 76px;
    grid-template-columns: 1fr auto;
    padding: 0 20px;
  }

  .nav-cta {
    display: none;
  }

  .menu-button {
    display: flex;
    z-index: 2;
    flex-direction: column;
    gap: 6px;
    padding: 10px 0 10px 10px;
    background: transparent;
    border: 0;
    cursor: pointer;
  }

  .menu-button span {
    display: block;
    width: 26px;
    height: 1px;
    background: white;
  }

  .nav-links {
    position: fixed;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    padding: 0 28px;
    font-size: 28px;
    background: #101311;
    transform: translateY(-100%);
    transition: transform 0.45s ease;
  }

  .nav-links.open {
    transform: none;
  }

  .product-mega-menu {
    top: 76px;
    max-height: calc(100svh - 76px);
  }

  .mega-menu-backdrop {
    inset: 76px 0 0;
  }

  .mega-family-grid {
    grid-template-columns: 1fr;
  }

  .mega-intro {
    flex-direction: column;
    align-items: start;
  }

  .hero {
    min-height: 88svh;
    padding: 100px 20px 25px;
  }

  .hero-kicker {
    width: 100%;
  }

  .hero-kicker span:last-child {
    display: none;
  }

  .hero h1 {
    max-width: none;
    font-size: clamp(50px, 14vw, 70px);
    white-space: normal;
  }

  .hero-visual {
    inset: 54% 0 0 0;
    width: 100%;
    height: 46%;
  }

  .hero-visual img {
    object-position: 51% 55%;
  }

  .hero-bottom {
    position: relative;
    z-index: 3;
    right: auto;
    bottom: auto;
    left: auto;
    width: 100%;
    margin-top: auto;
  }

  .hero-bottom p {
    max-width: 43vw;
    text-shadow: 0 1px 18px rgba(0, 0, 0, 0.65);
  }

  .round-link {
    width: 54px;
    height: 54px;
  }
}
