/* Rocktype static site — one stylesheet, no font files. */

/* Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Liberation Sans", Arimo, Helvetica, Arial, sans-serif;
  color: #fff;
  background: #000;
  line-height: 1.4;
}
a { color: inherit; text-decoration: none; }
li { list-style: none; }
img, video { display: block; max-width: 100%; }
body.nav-open { overflow: hidden; }

/* Type */
.title { font-size: 70px; font-weight: bold; line-height: 1.2; text-transform: uppercase; margin-bottom: 20px; }
.title--center { text-align: center; margin: 0 auto 60px; }
.subtitle { font-size: 46px; font-weight: bold; text-transform: uppercase; margin-bottom: 10px; }
.lead { font-size: 30px; }
.text { font-size: 24px; }
.text p { margin-bottom: 1rem; }

.container { max-width: 1810px; width: 100%; margin: 0 auto; padding: 0 15px; }

/* Buttons */
.btn {
  display: inline-block;
  font-size: 24px;
  padding: 12px 20px;
  margin-top: 20px;
  border: 2px solid #71d0bb;
  border-radius: 62px;
  transition: all .2s ease;
}
.btn:hover { background: #71d0bb; }
.btn--big {
  font-size: 40px;
  padding: 35px 45px;
  color: #fff;
  background: #000;
  border-color: #fff;
}
.btn--big:hover { border-color: transparent; transform: scale(1.03); }

/* Header */
.site-header {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  padding: 40px;
  z-index: 12;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.site-header .logo img { width: 300px; }
.nav > ul { display: flex; gap: 25px; }
.nav li { position: relative; }
.nav a { font-size: 26px; line-height: 30px; padding-bottom: 8px; position: relative; display: inline-block; }
.nav a::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 0;
  width: 0; height: 5px;
  background: #71d0bb;
  transform: translateX(-50%);
  transition: width .2s linear;
}
.nav a:hover::after { width: 70%; }
.nav .sub {
  display: none;
  position: absolute;
  top: 100%; left: 0;
  min-width: max-content;
  padding: 10px 20px;
  background: #111111dd;
  box-shadow: 0 0 15px rgba(0, 0, 0, .9);
}
.nav .sub a { font-size: 18px; padding-bottom: 5px; text-transform: uppercase; }
.nav li:hover > .sub, .nav li:focus-within > .sub { display: block; }

.nav-toggle {
  display: none;
  width: 50px; height: 30px;
  padding: 10px;
  background: none; border: 0;
  cursor: pointer;
  z-index: 200;
  position: relative;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block;
  width: 100%; height: 2px;
  background: #fff;
  transition: transform .2s linear, background .2s linear;
}
.nav-toggle span { position: relative; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -8px; }
.nav-toggle span::after { bottom: -8px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: rotate(45deg) translate(5px, 6px); }
.nav-open .nav-toggle span::after { transform: rotate(-45deg) translate(5px, -6px); }

/* Hero (home) */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 140px 40px 40px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  text-align: center;
  overflow: hidden;
}
.hero video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero::before { content: ""; position: absolute; inset: 0; background: #112c49; opacity: .68; }
.hero-text { position: relative; }
.hero-text h1 { text-shadow: 0 0 35px rgba(0, 0, 0, .5); margin-bottom: 5px; }
.hero-text p { text-shadow: 0 0 15px rgba(0, 0, 0, .6); margin-bottom: 20px; }

/* Intro strip and page intros */
.intro { padding: 80px 25px; text-align: center; }
.intro .text { max-width: 1000px; width: 90%; margin: 0 auto; }
.page-intro { max-width: 1220px; margin: 0 auto 70px; padding: 200px 40px 0; text-align: center; }
.page-intro img { margin: 40px auto 0; }

/* Full-width image blocks (home) */
.feature {
  position: relative;
  min-height: 685px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: center / cover no-repeat;
  overflow: hidden;
}
.feature::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .5); }
.feature-inner { position: relative; max-width: 620px; padding-left: 40px; }
.feature--right .feature-inner { margin-left: auto; text-align: right; padding-left: 0; padding-right: 40px; }

/* Parallax blocks (applications, capabilities) */
.parallax {
  position: relative;
  padding: 120px 60px;
  background: center / cover no-repeat;
  overflow: hidden;
}
.parallax::before { content: ""; position: absolute; inset: 0; background: #00000077; }
.parallax-inner { position: relative; max-width: 800px; }
.parallax:nth-child(even) .parallax-inner { margin-left: auto; text-align: right; }
.parallax .title, .parallax .text { margin-bottom: 30px; }

/* Parallax feel on desktop only; mobile browsers and iOS handle fixed backgrounds badly. */
@media (min-width: 1100.1px) {
  .feature, .parallax { background-attachment: fixed; }
}
@supports (-webkit-touch-callout: none) {
  .feature, .parallax { background-attachment: scroll; }
}

/* Split rows (technology) */
.split { display: flex; align-items: center; overflow: hidden; }
.split > img { width: 50%; min-height: 600px; object-fit: cover; }
.split-info { width: 50%; padding: 25px 70px; }
.split:nth-child(odd) { background: #fff; color: #000; }
.split:nth-child(even) > img { order: 2; }
.split:nth-child(even) .split-info { text-align: right; }

/* Team (about) */
.team { display: flex; justify-content: space-between; padding: 0 40px 200px; }
.member { width: 38%; text-align: center; display: flex; flex-direction: column; }
.member h3 { font-size: 32px; }
.member .text { font-size: 20px; margin: 20px 0 40px; }
.avatar { margin-top: auto; width: 100%; max-width: 500px; align-self: center; border-radius: 50%; }

/* Prose (legal) */
.prose { max-width: 1310px; margin: 0 auto; padding: 200px 15px 80px; }
.prose h3 { font-size: 32px; margin: 40px 0 10px; }
.prose p { font-size: 20px; margin-bottom: 1rem; }

/* White bands: Stratum, quotes, closing button */
.band { padding: 50px 25px 80px; background: #fff; color: #000; text-align: center; }
.band--dark { background: #000; color: #fff; }
.band .btn--big { margin-top: 0; }
.stratum-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 60px;
  align-items: center;
  max-width: 1200px;
  margin: 30px auto 0;
  text-align: left;
}
.stratum-grid img { width: 280px; }
.quote { max-width: 850px; margin: 40px auto 80px; font-size: 24px; line-height: 1.3; }
.quote footer { font-weight: bold; font-size: 20px; margin-top: 20px; }

/* Footer */
.site-footer { padding: 50px 40px; background: #000; color: #fff; }
.footer-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 35px; }
.footer-top .logo img { width: 200px; }
.social img { width: 25px; transition: opacity .2s; }
.social:hover img { opacity: .6; }
.footer-main { display: flex; justify-content: space-between; gap: 40px; }
.footer-info { font-size: 18px; max-width: 600px; }
.footer-info p { margin-bottom: 1rem; }
.footer-info a:hover { color: #71d0bb; }
.footer-nav li { text-align: right; margin-bottom: 2px; }
.footer-nav a { font-size: 20px; line-height: 27px; text-transform: uppercase; }
.footer-nav a:hover { color: #71d0bb; }

/* Scroll reveal: hidden only when JS runs */
html.js .reveal { opacity: 0; transform: translateY(70px); transition: opacity .6s, transform .6s; }
html.js .reveal--left { transform: translateX(-100px); }
html.js .reveal--right { transform: translateX(100px); }
html.js .reveal--fade { transform: none; }
html.js .reveal.is-visible { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1300px) {
  .nav a { font-size: 21px; }
  .nav > ul { gap: 17px; }
  .parallax { padding: 100px 40px; }
}

@media (max-width: 1100px) {
  .site-header { padding: 30px 20px; align-items: flex-start; }
  .nav-toggle { display: block; }
  .nav { width: 100%; }
  /* JS off: header flows, open menu pushes content down instead of overlapping it */
  html:not(.js) .site-header { position: static; }
  html:not(.js) .nav-toggle { display: none; }
  html:not(.js) .page-intro, html:not(.js) .prose { padding-top: 40px; }
  .nav > ul { display: block; }
  .nav li { margin-bottom: 15px; }
  .nav .sub { display: block; position: static; background: none; box-shadow: none; padding: 5px 0 0 20px; }
  html.js .nav {
    position: fixed;
    inset: 0;
    padding: 105px 20px 35px;
    overflow-y: auto;
    background: #71d0bb;
    z-index: 100;
    visibility: hidden;
    transform: translateY(-120vh);
    transition: transform .3s ease, visibility .3s;
  }
  html.js .nav-open .nav { visibility: visible; transform: none; }
  .title { font-size: 42px; }
  .subtitle { font-size: 32px; }
  .lead { font-size: 26px; }
  .text { font-size: 22px; }
  .btn { font-size: 20px; }
  .btn--big { font-size: 32px; padding: 25px 35px; }
  .parallax:nth-child(even) .parallax-inner { margin-left: 0; text-align: left; }
  .split-info { padding: 25px 40px; }
  .member { width: 48%; }
  .team { padding-bottom: 100px; }
}

@media (max-width: 768px) {
  .stratum-grid { grid-template-columns: 1fr; text-align: center; justify-items: center; }
}

@media (max-width: 660px) {
  .site-header .logo img { width: 200px; }
  .title { font-size: 32px; }
  .title--center { margin-bottom: 30px; }
  .subtitle { font-size: 28px; }
  .lead { font-size: 22px; }
  .text { font-size: 18px; }
  .btn { font-size: 18px; }
  .btn--big { font-size: 22px; padding: 10px 25px; }
  .hero, .feature { padding-left: 30px; padding-right: 30px; }
  .feature { min-height: 385px; }
  .feature-inner, .feature--right .feature-inner { padding: 0; }
  .page-intro { padding: 130px 30px 0; }
  .parallax { padding: 60px 30px; }
  .split { display: block; }
  .split > img, .split-info { width: 100%; min-height: 0; }
  .split-info { padding: 30px; }
  .team { display: block; padding: 0 30px 100px; }
  .member { width: 100%; margin-bottom: 40px; }
  .member h3 { font-size: 24px; }
  .member .text { font-size: 18px; }
  .prose { padding-top: 130px; }
  .band { padding: 40px 15px; }
  .quote { margin-bottom: 40px; }
  .site-footer { padding: 40px 20px; }
  .footer-top .logo img { width: 160px; }
  .footer-main { display: block; }
  .footer-nav { margin-top: 25px; }
  .footer-nav li { text-align: left; }
}
