/* ==========================================================================
   The Stradey Group — site styles
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

:root {
  --background-a: #000;
  --background-b1: #1d2838;
  --background-b2: rgba(29, 40, 56, .5);
  --background-b3: rgba(29, 40, 56, .25);
  --paragraphs: #616d7e;
  --heading: #fff;
  --accent-a1: #3183ff;
  --accent-a2: #0751bf;
  --link: rgba(216, 223, 233, .8);
  --border: #182233;
  --radius: 15px;
  --ease: cubic-bezier(.25, .46, .45, .94);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--background-a);
  color: var(--paragraphs);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 18px;
  line-height: 180%;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; border: 0; vertical-align: middle; }

h1, h2, h3, h4, h5, h6 {
  color: var(--heading);
  font-weight: 500;
  margin-top: 0;
}
h1 { font-size: 80px; line-height: 106%; letter-spacing: -1.4px; margin-bottom: 32px; }
h2 { font-size: 66px; line-height: 106%; letter-spacing: -1px;   margin-bottom: 30px; }
h3 { font-size: 52px; line-height: 110%; letter-spacing: -.8px;  margin-bottom: 28px; }
h4 { font-size: 42px; line-height: 115%; letter-spacing: -.6px;  margin-bottom: 24px; }
h5 { font-size: 32px; line-height: 120%; letter-spacing: -.5px;  margin-bottom: 22px; }
h6 { font-size: 24px; line-height: 130%; letter-spacing: -.5px;  margin-bottom: 18px; }

p { margin-top: 0; margin-bottom: 32px; }

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

/* --------------------------------------------------------------- layout -- */

.section {
  display: flex;
  flex-flow: column;
  justify-content: center;
  align-items: center;
  padding: 120px 40px;
  overflow: hidden;
}
.section.banner { padding-bottom: 50px; }
.section.footer { margin-top: auto; padding-bottom: 70px; }

.section-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding: 120px 40px 0;
  overflow: hidden;
}

.content {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 1200px;
}
.content.single-page { margin-top: 10vh; }

/* ---------------------------------------------------------------- navbar -- */

.navbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 99;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 30px 40px;
}

.grid-navbar {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 1200px;
}

.nav { display: flex; justify-content: flex-start; align-items: center; }

.brand {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 5px;
  transition: transform .4s var(--ease);
}
.brand:hover { transform: scale(1.04); }
.logodiv { height: 80px; }
.logo { width: auto; height: 100%; object-fit: contain; }

.nav-menu { display: flex; align-items: center; justify-content: center; }

.nav-link {
  display: inline-block;
  padding: 12px 28px;
  color: var(--link);
  font-size: 18px;
  line-height: 140%;
  white-space: nowrap;
  transition: color .4s var(--ease);
}
.nav-link:hover, .nav-link.current { color: var(--heading); }

/* services dropdown */
.dropdown { position: relative; }
.dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: 0;
  color: var(--link);
  font: inherit;
  font-size: 18px;
  line-height: 140%;
  cursor: pointer;
}
.dropdown-toggle .caret {
  width: 7px; height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform .3s var(--ease);
}
.dropdown.open .dropdown-toggle .caret { transform: rotate(225deg) translate(-2px, -2px); }

.dropdown-list {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 230px;
  padding: 10px 0;
  background-image: linear-gradient(150deg, var(--background-b1) 35%, rgba(21, 29, 41, .95));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
  display: none;
}
.dropdown.open > .dropdown-list,
.dropdown:hover > .dropdown-list { display: block; }
.dropdown-list .nav-link { display: block; padding: 10px 24px; text-align: left; }

.nav-toggle {
  display: none;
  justify-self: end;
  width: 44px; height: 44px;
  padding: 10px;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--link);
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.shadow-navbar {
  position: absolute;
  inset: auto 0 0;
  height: 160%;
  background-image: linear-gradient(to bottom, var(--background-a), transparent);
  pointer-events: none;
  opacity: 0;
  transition: opacity .4s var(--ease);
}
body.scrolled .shadow-navbar { opacity: 1; }

/* ------------------------------------------------------------- typography -- */

.subtitle,
.subtitle-2 {
  display: inline-flex;
  flex-flow: column;
  align-items: center;
  margin: 0 auto 15px;
  padding: 9px 18px;
  border: 2px solid var(--background-b1);
  border-radius: 12px;
  color: var(--accent-a1);
  text-align: center;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 500;
  line-height: 140%;
}

.heading-hero { max-width: 960px; font-size: 92px; line-height: 103%; }
.heading-single-page { max-width: 960px; text-align: center; }
.heading-centered { max-width: 940px; text-align: center; align-self: center; }
.heading-banner { margin-bottom: 28px; }

.paragraph-large {
  max-width: 620px;
  margin-bottom: 42px;
  font-size: 20px;
  line-height: 176%;
}

.block-hero {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.button {
  display: inline-block;
  padding: 16px 35px;
  border: 0;
  border-radius: var(--radius);
  background-color: var(--accent-a1);
  background-image: linear-gradient(150deg, transparent, var(--accent-a2));
  color: var(--heading);
  font-family: inherit;
  font-size: 18px;
  line-height: 140%;
  text-align: center;
  cursor: pointer;
  transition: background-color .4s var(--ease), transform .4s var(--ease);
}
.button:hover { background-color: var(--accent-a2); transform: translateY(-2px); }

/* ------------------------------------------------------------------ glows -- */

.glow-top {
  position: absolute;
  top: -70px;
  left: 0;
  right: 0;
  z-index: -1;
  height: 500px;
  background-image:
    radial-gradient(circle farthest-side at 50% -170%, transparent, var(--background-a)),
    linear-gradient(to bottom, var(--accent-a1), transparent);
}

/* ------------------------------------------------------- 3D figure stacks -- */

.figure-a-hero,
.figure-b,
.figure-d {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 500px;
  perspective: 1300px;
}
.figure-a-hero { margin-top: 40px; }

.figure-block-a-hero,
.figure-block-b,
.figure-block-d {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  perspective: 1300px;
  transform-style: preserve-3d;
}
.figure-block-a-hero { width: 70%; transform: rotateX(46deg) rotateY(17deg) rotateZ(-3deg); }
.figure-block-b      { width: 100%; transform: rotateX(-23deg) rotateY(49deg) rotateZ(5deg); }
.figure-block-d      { width: 100%; transform: rotateX(43deg) rotateY(11deg) rotateZ(-26deg); }

.figure-block-a-hero > div,
.figure-block-b > div,
.figure-block-d > div {
  position: absolute;
  background-image:
    linear-gradient(220deg, rgba(0, 0, 0, .8), transparent),
    linear-gradient(50deg, var(--accent-a1), transparent);
  transform-style: preserve-3d;
}

.figure-a1 { width: 100%; height: 100%; opacity: .5; filter: blur(5px);  transform: translate3d(0, 0, 4vh); }
.figure-a2 { width: 90%;  height: 90%;                                   transform: translate3d(0, 0, -13vh); }
.figure-a3 { width: 60%;  height: 70%;  opacity: .5; filter: blur(20px); transform: translate3d(0, 0, -34vh); }

.figure-b1 { width: 80%; height: 60%; opacity: .5; filter: blur(5px);  transform: translate3d(0, 0, 10vh); }
.figure-b2 { width: 80%; height: 65%;                                  transform: translate3d(0, 0, -3vh); }
.figure-b3 { width: 90%; height: 65%; opacity: .5; filter: blur(20px); transform: translate3d(0, 0, -21vh); }

.figure-d1 { width: 60%; height: 100%; opacity: .5; filter: blur(5px);  transform: translate3d(0, 0, 10vh); }
.figure-d2 { width: 60%; height: 100%;                                  transform: translate3d(0, 0, -3vh); }
.figure-d3 { width: 60%; height: 100%; opacity: .5; filter: blur(20px); transform: translate3d(0, 0, -21vh); }

/* ---------------------------------------------------------- services grid -- */

.block-heading {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
  justify-content: center;
  align-items: center;
  width: 100%;
  text-align: center;
}

.team-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  font-size: 14px;
  line-height: 22px;
}
.team-card img { max-width: 100%; height: auto; }
.team-member-name {
  margin-bottom: 6px;
  color: var(--heading);
  font-size: 20px;
  font-weight: 500;
  line-height: 32px;
}
.team-card .paragraph { margin-bottom: 0; }

/* --------------------------------------------------------- features grid -- */

.block-heading-2 {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  text-align: center;
}

.grid-features-2 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 18px;
  width: 100%;
  margin-top: 30px;
}

.feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 33px 8% 0;
  text-align: center;
}
.icon-feature-bg-2 {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 70px;
  height: 70px;
  margin-bottom: 26px;
  border-radius: var(--radius);
  background-image: linear-gradient(140deg, var(--background-b1), var(--background-b2));
}
.icon-feature { width: 30px; height: 30px; }
.feature h6 { margin-bottom: 0; }

/* ------------------------------------------------------ split text/figure -- */

.grid-right,
.grid-left {
  display: grid;
  gap: 25px;
  align-items: center;
  width: 100%;
}
.grid-right { grid-template-columns: 1fr 1.4fr; }
.grid-left  { grid-template-columns: 1.4fr 1fr; }

.block {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}
.block-left  { display: flex; flex-direction: column; align-items: center; padding-right: 12%; }
.block-right { display: flex; flex-direction: column; align-items: center; padding-left: 12%; }

/* ------------------------------------------------------------------ banner -- */

.group-banner {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 100px 10%;
  border-radius: var(--radius);
  background-image: linear-gradient(140deg, var(--background-b2), var(--background-b3));
  text-align: center;
  overflow: hidden;
}
.block-banner {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 780px;
}
.glow-banner {
  position: absolute;
  inset: -230px 10% auto;
  z-index: 0;
  height: 260px;
  border-radius: 100%;
  background-color: var(--accent-a1);
  opacity: .6;
  filter: blur(65px);
}

/* --------------------------------------------------------- service detail -- */

.grid-technology {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  width: 100%;
}
.grid-technology-copy {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 25px;
  width: 100%;
}
.technology {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 55px 10% 25px;
  border-radius: var(--radius);
  background-image: linear-gradient(140deg, var(--background-b2), var(--background-b3));
  text-align: center;
}
.icon-technology { width: 44px; height: 44px; margin-bottom: 22px; }

/* -------------------------------------------------------------- about page -- */

.grid-page-a {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  width: 100%;
  margin-bottom: 30px;
}
.grid-page-b {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 25px;
  width: 100%;
  margin-bottom: 30px;
}
.grid-page-b > .tasks { grid-row: span 2; }

.tasks {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 370px;
  padding: 55px 55px 25px;
  border-radius: var(--radius);
  background-image: linear-gradient(140deg, var(--background-b2), var(--background-b3));
  text-align: left;
}
.tasks-block { display: flex; align-items: center; margin-bottom: 18px; }
.icon-tasks { width: 30px; height: 30px; margin-right: 16px; }
.heading-tasks { margin-bottom: 0; }

.stats {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 42px;
  border-radius: var(--radius);
  background-image: linear-gradient(140deg, var(--background-b2), var(--background-b3));
}
.stats.lighter { background-image: linear-gradient(140deg, var(--background-b1), var(--background-b2)); }
.text-stats { font-weight: 500; line-height: 140%; }

.page-content {
  width: 100%;
  max-width: 720px;
  margin: 140px 0;
}
.page-content h3 { text-align: center; }
.heading-owner {
  margin-top: -20px;
  margin-bottom: 18px;
  color: var(--accent-a1);
  text-align: center;
}

/* ------------------------------------------------------------ contact form -- */

.form-block-contact { width: 100%; max-width: 650px; margin-bottom: 60px; }

.form-contact {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  justify-items: center;
}

.text-field,
.textarea {
  width: 100%;
  padding: 14px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background-color: var(--background-b3);
  color: var(--heading);
  font-family: inherit;
  font-size: 18px;
  font-weight: 400;
  line-height: 140%;
  transition: border-color .4s var(--ease);
}
.text-field { height: 57px; }
.textarea { min-height: 200px; max-height: 350px; resize: vertical; }
.text-field:focus, .textarea:focus { outline: 0; border-color: var(--accent-a1); }
.text-field::placeholder, .textarea::placeholder { color: var(--paragraphs); }
select.text-field {
  appearance: none;
  cursor: pointer;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--paragraphs) 50%),
    linear-gradient(135deg, var(--paragraphs) 50%, transparent 50%);
  background-position: calc(100% - 24px) 25px, calc(100% - 18px) 25px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}
select.text-field option { background: #101720; color: var(--heading); }

.form-note { max-width: 650px; margin: -44px 0 0; font-size: 15px; line-height: 160%; text-align: center; }

/* ------------------------------------------------------------------ footer -- */

.grid-footer {
  display: grid;
  grid-template-columns: 2.4fr 1fr;
  gap: 40px;
  width: 100%;
}
.block-footer { display: flex; flex-direction: column; justify-content: flex-start; align-items: flex-start; }
.footerlogo { height: 120px; }
.logo-footer { width: auto; height: 100%; margin-bottom: 28px; }
.paragraph-footer { max-width: 390px; margin-bottom: 0; font-size: 16px; line-height: 185%; }
.heading-footer { margin: 4px 0 32px; color: var(--heading); font-size: 18px; font-weight: 500; line-height: 140%; }
.link-footer {
  display: block;
  padding: 6px 0;
  color: var(--paragraphs);
  font-size: 16px;
  line-height: 140%;
  transition: color .4s var(--ease);
}
.link-footer:hover { color: var(--heading); }
.link-underlined {
  display: inline-block;
  border-bottom: 1px solid var(--link);
  color: var(--link);
  line-height: 150%;
  transition: border-color .4s var(--ease), color .4s var(--ease);
}
.link-underlined:hover { color: var(--heading); border-color: var(--heading); }
.footer-down { width: 100%; margin-top: 100px; font-size: 14px; }

/* ------------------------------------------------------------ scroll reveal -- */

.reveal {
  opacity: 0;
  transform: translate3d(0, 15px, 0);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }
.reveal[data-delay="5"] { transition-delay: .40s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ================================================================ responsive */

@media screen and (max-width: 991px) {
  h2 { font-size: 56px; }
  h3 { font-size: 44px; }
  h5 { font-size: 26px; }
  h6 { font-size: 22px; }

  .navbar { padding: 25px 30px; }
  .grid-navbar { grid-template-columns: 1fr auto; }
  .nav-toggle { display: block; }

  .nav-menu {
    position: absolute;
    top: calc(100% + 14px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 15px 5px;
    border-radius: var(--radius);
    background-image: linear-gradient(150deg, var(--background-b1) 35%, rgba(21, 29, 41, .85));
    backdrop-filter: blur(12px);
    display: none;
  }
  body.nav-open .nav-menu { display: flex; }
  .nav-menu .nav-link { text-align: center; }
  .dropdown { display: flex; flex-direction: column; align-items: center; }
  .dropdown-list {
    position: static;
    transform: none;
    min-width: 0;
    border: 0;
    background: none;
    backdrop-filter: none;
    padding: 0 0 8px;
  }
  .dropdown:hover > .dropdown-list { display: none; }
  .dropdown.open > .dropdown-list { display: block; }
  .dropdown-list .nav-link { text-align: center; font-size: 16px; padding: 8px 24px; }

  .section-hero { padding: 100px 30px 0; }
  .heading-hero { font-size: 80px; }
  .section { padding: 100px 30px; }
  .section.footer { padding-top: 80px; padding-bottom: 50px; }

  .grid-right, .grid-left { grid-template-columns: 1fr; }
  .grid-right > .block-right { grid-row: 1; }
  .block { text-align: center; align-items: center; }
  .block-left, .block-right { padding-left: 7%; padding-right: 7%; }
  .group-banner { padding-top: 85px; padding-bottom: 85px; }
  .figure-b, .figure-d { width: 80%; height: 350px; }
  .heading-single-page { max-width: 840px; }
  .grid-page-b { grid-template-columns: 1fr 1fr; }
  .grid-page-b > .tasks { grid-row: auto; grid-column: span 2; }
  .tasks { min-height: 250px; }
  .page-content { margin: 100px 0; }
  .grid-features-2 { grid-template-columns: 1fr 1fr; }
  .grid-technology-copy { grid-template-columns: 1fr; }
}

@media screen and (max-width: 767px) {
  h2 { font-size: 46px; }
  h3 { font-size: 36px; }
  h4 { font-size: 28px; }
  h5 { font-size: 24px; }
  h6 { font-size: 20px; }

  .heading-hero { font-size: 58px; }
  .section { padding-top: 90px; padding-bottom: 90px; }
  .section.footer { padding-bottom: 40px; }
  .grid-footer { grid-template-columns: 1fr 1fr; gap: 60px 30px; }
  .block-footer { text-align: center; align-items: center; }
  .paragraph-footer { text-align: center; }
  .footer-down { margin-top: 80px; text-align: center; }
  .grid-technology { grid-template-columns: 1fr; gap: 15px; }
  .grid-page-a { grid-template-columns: 1fr; gap: 15px; margin-bottom: 15px; }
  .grid-page-b { grid-template-columns: 1fr; gap: 15px; margin-bottom: 15px; }
  .grid-page-b > .tasks { grid-column: auto; }
  .page-content { margin: 90px 0; }
  .grid-technology-copy { gap: 15px; grid-template-columns: 1fr; }
  .content.single-page { margin-top: 6vh; }
}

@media screen and (max-width: 479px) {
  body { font-size: 17px; }
  .navbar { padding: 18px 20px; }
  .logodiv { height: 64px; }
  .section-hero { padding: 80px 20px 0; }
  .heading-hero { font-size: 46px; }
  h1 { font-size: 40px; }
  .section { padding: 80px 20px; }
  .block-heading { grid-template-columns: 1fr; }
  .team-card img { width: 240px; }
  .stats { padding: 28px; }
  .grid-footer { grid-template-columns: 1fr; gap: 60px; }
  .heading-footer { margin-bottom: 20px; }
  .group-banner { padding: 64px 8%; }
  .figure-b, .figure-d { height: 250px; }
  .figure-a-hero { height: 320px; }
  .heading-single-page { font-size: 40px; }
  .grid-technology { grid-template-columns: 1fr; }
  .technology { padding: 45px 8% 15px; }
  .tasks { padding: 38px 28px 0; }
  .page-content { margin: 65px 0; }
  .grid-features-2 { grid-template-columns: 1fr; gap: 10px; }
  .form-note { margin-top: -34px; }
}
