/* LEGION WORKS — main stylesheet */

:root {
  --bg: #0b0d0d;
  --panel: #121615;
  --line: #2a302d;
  --text: #f1f3ee;
  --muted: #8f9791;
  --light: #e8ece6;
  --mono: "DM Mono", monospace;
  --display: "Space Grotesk", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Manrope", Arial, sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 2px solid #c8d0c8;
  outline-offset: 4px;
}

/* navigation */

.topbar {
  position: sticky;
  top: 0;
  z-index: 15;
  height: 78px;
  padding: 0 5.5vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgb(11 13 13 / 88%);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font: 700 13px var(--display);
  letter-spacing: .13em;
  text-decoration: none;
}

.brand b {
  font-weight: 800;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid #69716b;
  border-radius: 8px;
  font: 500 10px var(--mono);
  letter-spacing: 0;
}

.nav {
  display: flex;
  gap: 31px;
}

.nav a {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-decoration: none;
  transition: color .2s;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: #fff;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 14px;
}

.lang-btn {
  padding: 8px 11px;
  border: 1px solid #424a45;
  border-radius: 6px;
  background: transparent;
  color: #dce2dc;
  font: 700 10px var(--mono);
  letter-spacing: .1em;
  cursor: pointer;
}

.lang-btn:hover {
  background: #1b201d;
  border-color: #7b857d;
}

.menu-btn {
  display: none;
  border: 0;
  background: none;
  color: #fff;
  font-size: 21px;
  cursor: pointer;
}

/* shared elements */

.eyebrow {
  margin: 0 0 23px;
  color: #8c958e;
  font: 500 10px var(--mono);
  letter-spacing: .18em;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 14px 19px;
  border: 1px solid #424a45;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .03em;
  text-decoration: none;
  transition: transform .25s, background .25s, border-color .25s;
}

.btn span:last-child {
  font-size: 17px;
}

.btn.primary {
  border-color: var(--light);
  background: var(--light);
  color: var(--bg);
}

.btn.primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px #0009;
}

.btn.ghost:hover {
  border-color: #646d66;
  background: #1b201d;
}

.btn.light {
  border-color: var(--bg);
  background: var(--bg);
  color: #fff;
}

.text-link {
  color: #b7c0b8;
  font: 500 10px var(--mono);
  text-decoration: none;
}

.text-link:hover {
  color: #fff;
}

/* Hero */

.hero {
  position: relative;
  min-height: calc(100vh - 78px);
  padding: 7vw 9vw 8vw;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 7vw;
  align-items: center;
  overflow: hidden;
  background: radial-gradient(ellipse at 78% 48%, #202622 0%, var(--bg) 43%);
}

.hero::before {
  content: "01";
  position: absolute;
  right: 4vw;
  bottom: -5vw;
  color: #fff;
  font: 800 30vw/.7 var(--display);
  opacity: .018;
  pointer-events: none;
}

.hero h1 {
  margin: 0;
  font: 700 clamp(58px, 8vw, 112px)/.88 var(--display);
  letter-spacing: -.065em;
}

.hero h1 em,
h2 em,
.portfolio-hero h1 em {
  color: #9ea69f;
  font-style: normal;
}

.lead {
  max-width: 610px;
  margin: 31px 0;
  color: #969e98;
  font-size: 14px;
  line-height: 1.85;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-card {
  position: relative;
  width: 100%;
  max-width: 390px;
  aspect-ratio: 4 / 5;
  justify-self: end;
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  border: 1px solid #3b443f;
  border-radius: 17px;
  background: linear-gradient(145deg, #242a26, #101312);
  box-shadow: 0 35px 100px #000b;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 12%;
  border: 1px solid #ffffff0a;
  border-radius: 50%;
  box-shadow: 0 0 0 45px #ffffff02, 0 0 0 90px #ffffff01;
}

.hero-card::after {
  content: "AEG";
  position: absolute;
  right: -28px;
  bottom: 15px;
  transform: rotate(-90deg);
  color: #fff;
  font: 800 120px/.7 var(--display);
  opacity: .025;
}

.hero-card > span {
  color: #89928b;
  font: 500 9px var(--mono);
  letter-spacing: .2em;
}

.hero-card strong {
  position: relative;
  z-index: 1;
  font: 700 clamp(43px, 5vw, 72px)/.82 var(--display);
  letter-spacing: -.065em;
}

.hero-card small {
  color: #7f8881;
  font: 500 9px var(--mono);
  letter-spacing: .16em;
}

.status {
  color: #aeb6af;
  font: 500 9px var(--mono);
  letter-spacing: .12em;
}

.status i {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 8px;
  border-radius: 50%;
  background: #d7ded6;
  box-shadow: 0 0 12px #d7ded6;
}

/* Sections and headings */

.section {
  padding: 120px 9vw;
  border-top: 1px solid var(--line);
}

.section-head {
  margin-bottom: 48px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 50px;
}

.section-head h2,
.sticky-copy h2 {
  margin: 0;
  font: 600 clamp(42px, 5.5vw, 76px)/.94 var(--display);
  letter-spacing: -.06em;
}

.section-head > p {
  max-width: 400px;
  color: #7f8781;
  font-size: 12px;
}

/* pricing */

.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.price-card {
  position: relative;
  min-height: 350px;
  padding: 27px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #29302c;
  border-radius: 12px;
  background: linear-gradient(145deg, #141817, #101211);
  transition: transform .3s, border-color .3s, box-shadow .3s;
}

.price-card:hover {
  transform: translateY(-6px);
  border-color: #59625b;
  box-shadow: 0 25px 60px #0007;
}

.price-card.featured {
  border-color: var(--light);
  background: var(--light);
  color: var(--bg);
}

.price-card .number {
  color: #737b75;
  font: 500 9px var(--mono);
  letter-spacing: .2em;
}

.price-card h3 {
  margin: 68px 0 13px;
  font: 600 28px/.95 var(--display);
  letter-spacing: -.04em;
}

.price-card p {
  color: #7f8781;
  font-size: 12px;
  line-height: 1.7;
}

.price-card.featured p {
  color: #535a54;
}

.price-card strong {
  margin-top: auto;
  font: 600 18px var(--display);
}

.price-card a {
  margin-top: 17px;
  font: 700 10px var(--mono);
  text-decoration: none;
}

/* form */

.split {
  display: grid;
  grid-template-columns: .75fr 1.25fr;
  gap: 12vw;
}

.sticky-copy > p:not(.eyebrow) {
  max-width: 400px;
  margin-top: 27px;
  color: #8b938d;
  font-size: 13px;
  line-height: 1.8;
}

.mini-note {
  margin-top: 44px;
  padding-left: 17px;
  border-left: 1px solid #59615b;
  color: #7d867f;
  font: 500 10px/2 var(--mono);
}

.order-form {
  padding: 34px;
  border: 1px solid #2d3430;
  border-radius: 13px;
  background: #111513;
  box-shadow: 0 25px 80px #0006;
}

.order-form label {
  display: block;
  margin-bottom: 22px;
  color: #8b938d;
  font: 500 9px var(--mono);
  letter-spacing: .08em;
}

.order-form input,
.order-form select,
.order-form textarea {
  width: 100%;
  margin-top: 9px;
  padding: 13px 0;
  border: 0;
  border-bottom: 1px solid #343b36;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: 500 13px "Manrope", sans-serif;
}

.order-form input:focus,
.order-form select:focus,
.order-form textarea:focus {
  border-color: #aeb6af;
}

.order-form select option {
  background: #111513;
}

.order-form textarea {
  resize: vertical;
}

.honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
}

.full {
  width: 100%;
  margin-top: 6px;
}

.order-form button:disabled {
  opacity: .55;
  cursor: wait;
}

.form-feedback {
  min-height: 20px;
  margin: 15px 0 0;
  color: #bfc7c0;
  font-size: 11px;
}

/* image gallery */

.gallery {
  display: grid;
  grid-template-columns: 1.15fr .85fr .85fr;
  grid-auto-rows: 250px;
  gap: 12px;
}

.gallery-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  isolation: isolate;
  border: 1px solid #303733;
  border-radius: 13px;
  background: linear-gradient(145deg, #2a302c, #121513);
  transition: border-color .3s, transform .3s;
}

.gallery-card img {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  transition: transform .5s ease;
}

.gallery-card::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(to top, rgb(0 0 0 / 85%), rgb(0 0 0 / 30%) 55%, rgb(0 0 0 / 5%));
  pointer-events: none;
}

.gallery-card:hover {
  transform: scale(.992);
  border-color: #626b64;
}

.gallery-card:hover img {
  transform: scale(1.05);
}

.gallery-card span {
  color: #d0d6d0;
  font: 500 9px var(--mono);
  letter-spacing: .18em;
}

.gallery-card b {
  margin-top: auto;
  color: #fff;
  font: 600 31px/.9 var(--display);
  letter-spacing: -.05em;
  text-shadow: 0 2px 8px #000;
}

.gallery-card p {
  max-width: 360px;
  margin: 12px 0 0;
  color: #e0e4df;
  font-size: 12px;
  line-height: 1.7;
  text-shadow: 0 2px 8px #000;
}

.gallery-card.tall {
  grid-row: span 2;
}

.gallery-card.wide {
  grid-column: span 2;
}

/* custom */

.custom-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 10vw;
  background: var(--light);
  color: var(--bg);
}

.custom-section .eyebrow {
  color: #69716b;
}

.custom-section h2 {
  margin: 0;
  font: 600 clamp(55px, 7vw, 105px)/.88 var(--display);
  letter-spacing: -.07em;
}

.custom-copy p {
  max-width: 500px;
  margin: 0 0 34px;
  color: #4e5650;
  font-size: 17px;
  line-height: 1.65;
}

/* contact */

.contact-grid {
  margin-top: 45px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 30px;
}

.contact-grid h3 {
  margin: 0 0 25px;
  font: 700 48px/.82 var(--display);
  letter-spacing: -.06em;
}

.contact-grid span {
  display: block;
  margin-bottom: 9px;
  color: #6e7770;
  font: 500 9px var(--mono);
  letter-spacing: .16em;
}

.contact-grid a,
.contact-grid p {
  color: #adb5ae;
  font-size: 13px;
  text-decoration: none;
}

.contact-grid a:hover {
  color: #fff;
}

footer {
  padding: 25px 9vw;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  color: #68716a;
  font: 500 8px var(--mono);
  letter-spacing: .14em;
}

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

/* portfolio page */

.portfolio-hero {
  min-height: 70vh;
  padding: 110px 9vw;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  background: radial-gradient(ellipse at 78% 48%, #202622 0%, var(--bg) 48%);
}

.portfolio-hero h1 {
  margin: 0;
  font: 700 clamp(54px, 8vw, 100px)/.92 var(--display);
  letter-spacing: -.065em;
}

.portfolio-hero .lead {
  max-width: 650px;
}

.portfolio-grid .gallery-card {
  padding: 24px;
}

/* responsive layout */

@media (max-width: 850px) {
  .topbar {
    padding: 0 6vw;
  }

  .nav {
    position: absolute;
    top: 78px;
    left: 0;
    right: 0;
    padding: 18px 7vw 24px;
    display: none;
    flex-direction: column;
    gap: 18px;
    background: rgb(11 13 13 / 98%);
    border-bottom: 1px solid var(--line);
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    font-size: 13px;
  }

  .menu-btn {
    display: block;
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 75px 7vw;
  }

  .hero-card {
    max-width: 330px;
    margin-top: 30px;
    justify-self: start;
  }

  .section {
    padding: 85px 7vw;
  }

  .section-head {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .price-grid,
  .split,
  .custom-section {
    grid-template-columns: 1fr;
  }

  .gallery {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 210px;
  }

  .gallery-card.tall {
    grid-row: auto;
  }

  .gallery-card.wide {
    grid-column: span 2;
  }

  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }

  .contact-grid > div:first-child {
    grid-column: span 2;
  }

  .portfolio-hero {
    min-height: 60vh;
    padding: 85px 7vw;
  }

  footer {
    padding: 22px 7vw;
    flex-direction: column;
    gap: 10px;
  }
}

@media (max-width: 520px) {
  .hero h1 {
    font-size: 55px;
  }

  .gallery {
    grid-template-columns: 1fr;
  }

  .gallery-card.wide {
    grid-column: auto;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid > div:first-child {
    grid-column: auto;
  }

  .order-form {
    padding: 23px;
  }

  .portfolio-hero h1 {
    font-size: 52px;
  }

  .text-link {
    justify-self: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
