/* Exact Lock and Key — precision / spec-sheet layout */

:root {
  --ink: #0a0f14;
  --ink-soft: #3d4a55;
  --lime: #b8e03a;
  --lime-deep: #94b82a;
  --steel: #8aa0b0;
  --fog: #e4e9ed;
  --panel: #eef2f4;
  --white: #f5f8fa;
  --max: 1120px;
  --header-h: 4.25rem;
  --ease: cubic-bezier(0.2, 0.85, 0.25, 1);
  --font-display: "Chakra Petch", "Segoe UI", sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
  background:
    linear-gradient(180deg, var(--panel) 0%, var(--fog) 100%);
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100%;
  z-index: 1000;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: var(--white);
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

.eyebrow {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--lime-deep);
}

h1,
h2,
h3,
.logo,
.hero__brand,
.site-footer__brand,
.spec__index {
  font-family: var(--font-display);
}

/* Header */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  color: var(--white);
  background: linear-gradient(180deg, rgba(10, 15, 20, 0.9), transparent);
}

.site-header__inner {
  width: min(100% - 2rem, var(--max));
  height: 100%;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  text-decoration: none;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
}

.nav__list {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 1.5rem;
  align-items: center;
}

.nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  color: rgba(245, 248, 250, 0.9);
}

.nav__pin {
  color: var(--lime) !important;
  font-family: var(--font-display);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.85rem !important;
}

.nav-toggle {
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid rgba(245, 248, 250, 0.35);
  background: rgba(10, 15, 20, 0.4);
  display: inline-grid;
  place-content: center;
  gap: 0.35rem;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 1.1rem;
  height: 2px;
  background: var(--white);
  transition: transform 0.3s var(--ease);
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(3px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-3px) rotate(-45deg);
}

.mobile-nav {
  position: absolute;
  inset: var(--header-h) 0 auto;
  background: rgba(10, 15, 20, 0.97);
  padding: 0.5rem 1rem 1.25rem;
  border-bottom: 1px solid rgba(184, 224, 58, 0.28);
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-nav a {
  display: block;
  padding: 0.85rem 0.35rem;
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid rgba(245, 248, 250, 0.08);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.7rem 1.25rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  background: var(--lime);
  color: var(--ink);
}

.btn--primary:hover {
  background: #c8ed55;
  color: var(--ink);
}

.btn--ghost {
  border-color: rgba(245, 248, 250, 0.5);
  color: var(--white);
}

.btn--ghost:hover {
  border-color: var(--white);
  color: var(--white);
}

.btn--ink {
  background: var(--ink);
  color: var(--white);
}

.btn--ink:hover {
  background: #172029;
  color: var(--white);
}

/* ========== HERO: technical rail + split brand ========== */

.hero {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  color: var(--white);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 65% center;
  transform: scale(1.05);
  animation: drift 18s var(--ease) infinite alternate;
}

.hero__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(160deg, rgba(10, 15, 20, 0.94) 0%, rgba(10, 15, 20, 0.55) 48%, rgba(10, 15, 20, 0.35) 100%),
    linear-gradient(0deg, rgba(10, 15, 20, 0.8) 0%, transparent 42%);
}

.hero__grid {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.12;
  background-image:
    linear-gradient(rgba(184, 224, 58, 0.45) 1px, transparent 1px),
    linear-gradient(90deg, rgba(184, 224, 58, 0.45) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(90deg, #000 0%, transparent 70%);
}

.hero__inner {
  position: relative;
  z-index: 3;
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  padding: calc(var(--header-h) + 1.25rem) 0 2.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
  min-height: 100svh;
}

.hero__rail {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--lime);
  animation: rise 0.8s var(--ease) both;
}

.hero__main {
  display: grid;
  gap: 1.75rem;
  align-items: end;
  animation: rise 0.9s var(--ease) 0.1s both;
}

.hero__brand {
  margin: 0;
  display: grid;
  gap: 0.15rem;
}

.hero__brand-exact {
  display: block;
  font-size: clamp(4.2rem, 16vw, 9.5rem);
  font-weight: 700;
  line-height: 0.85;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.hero__brand-sub {
  display: block;
  font-size: clamp(1.4rem, 4vw, 2.4rem);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--lime);
}

.hero__copy {
  max-width: 28rem;
  padding-top: 0.5rem;
  border-top: 2px solid var(--lime);
}

.hero__headline {
  margin: 0.9rem 0 0.7rem;
  font-family: var(--font-body);
  font-size: clamp(1.15rem, 2.5vw, 1.4rem);
  font-weight: 600;
  line-height: 1.3;
  max-width: 24ch;
}

.hero__lede {
  margin: 0 0 1.25rem;
  color: rgba(245, 248, 250, 0.82);
  max-width: 34ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

@keyframes drift {
  from {
    transform: scale(1.05);
  }

  to {
    transform: scale(1.12) translate(-1%, 0.5%);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(1.2rem);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

/* ========== ABOUT: blueprint panel ========== */

.about {
  padding: clamp(3rem, 7vw, 5rem) 0;
}

.about__blueprint {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  display: grid;
  gap: 1.5rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  background:
    linear-gradient(90deg, rgba(184, 224, 58, 0.06), transparent 40%),
    var(--white);
  border: 1px solid rgba(10, 15, 20, 0.1);
  box-shadow: inset 0 0 0 1px rgba(184, 224, 58, 0.12);
}

.about__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.about__code {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  border: 1px solid rgba(10, 15, 20, 0.2);
  padding: 0.35rem 0.65rem;
  background: rgba(184, 224, 58, 0.12);
}

.about__body h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  max-width: 14ch;
  color: var(--ink);
}

.about__body p {
  margin: 0 0 0.9rem;
  color: var(--ink-soft);
  max-width: 40ch;
}

.about__address {
  margin: 1.35rem 0 0;
  padding-top: 1rem;
  border-top: 2px solid var(--lime);
  font-style: normal;
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.45;
  color: var(--ink);
}

.about__shot {
  overflow: hidden;
}

.about__shot img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  filter: contrast(1.05) saturate(0.92);
}

/* ========== SERVICES: spec rows with vertical index ========== */

.services {
  padding: 0 0 clamp(3.5rem, 8vw, 6rem);
}

.services__head {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto 2rem;
}

.services__head h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  text-transform: uppercase;
  line-height: 1;
  color: var(--ink);
}

.services__lede {
  margin: 0;
  color: var(--ink-soft);
}

.spec {
  list-style: none;
  margin: 0;
  padding: 0;
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  display: grid;
  gap: 0;
  border-top: 1px solid rgba(10, 15, 20, 0.16);
}

.spec__row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem 1.25rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(10, 15, 20, 0.16);
  align-items: center;
}

.spec__index {
  grid-row: 1 / span 2;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--lime-deep);
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0;
  border-right: 2px solid var(--lime);
  padding-right: 0.75rem;
}

.spec__media {
  grid-column: 2;
  overflow: hidden;
}

.spec__media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.65s var(--ease);
}

.spec__row:hover .spec__media img {
  transform: scale(1.04);
}

.spec__copy {
  grid-column: 2;
}

.spec__copy h3 {
  margin: 0 0 0.4rem;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.spec__copy p {
  margin: 0;
  color: var(--ink-soft);
  max-width: 40ch;
}

.services__cta {
  width: min(100% - 2rem, var(--max));
  margin: 2.5rem auto 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.services__cta p {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 1.8rem);
  text-transform: uppercase;
  line-height: 1.1;
  max-width: 16ch;
  color: var(--ink);
}

/* Footer */

.site-footer {
  background: var(--ink);
  color: rgba(245, 248, 250, 0.75);
  padding: 2.75rem 0;
}

.site-footer__inner {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  display: grid;
  gap: 0.4rem;
}

.site-footer__brand {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--white);
}

.site-footer__address {
  margin: 0;
  font-style: normal;
  font-size: 0.92rem;
}

.site-footer__meta {
  margin: 0.2rem 0 0;
  font-size: 0.92rem;
}

.site-footer a {
  color: var(--lime);
  text-decoration: none;
  font-weight: 600;
}

.site-footer a:hover {
  color: #c8ed55;
}

.site-footer__copy {
  margin: 0.6rem 0 0;
  font-size: 0.8rem;
  color: rgba(245, 248, 250, 0.45);
}

/* Reveal */

.reveal {
  opacity: 0;
  transform: translateY(1rem);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Desktop */

@media (min-width: 800px) {
  .nav__list {
    display: flex;
  }

  .nav-toggle,
  .mobile-nav {
    display: none !important;
  }

  .hero__main {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 2.5rem;
    align-items: end;
  }

  .hero__copy {
    justify-self: end;
    width: 100%;
  }

  .about__blueprint {
    grid-template-columns: 1.05fr 0.95fr;
    grid-template-rows: auto 1fr;
    gap: 1.5rem 2.5rem;
    align-items: start;
  }

  .about__meta {
    grid-column: 1 / -1;
  }

  .about__body {
    grid-column: 1;
  }

  .about__shot {
    grid-column: 2;
    grid-row: 2;
  }

  .about__shot img {
    height: 100%;
    min-height: 22rem;
    aspect-ratio: auto;
    object-fit: cover;
  }

  .spec__row {
    grid-template-columns: auto 16rem 1fr;
    gap: 1.75rem;
    padding: 1.75rem 0;
    align-items: center;
  }

  .spec__index {
    grid-row: 1;
  }

  .spec__media {
    grid-column: 2;
    grid-row: 1;
  }

  .spec__media img {
    aspect-ratio: 1 / 1;
    min-height: 12rem;
  }

  .spec__copy {
    grid-column: 3;
    grid-row: 1;
  }
}

@media (min-width: 1040px) {
  .hero__inner {
    padding-bottom: 3.5rem;
  }
}
