@font-face {
  font-family: 'avenir-lt-w01_85-heavy1475544';
  src: url('fonts/AvenirLTW05-85Heavy.woff2') format('woff2');
  font-display: swap;
}

@font-face {
  font-family: 'avenir-lt-w01_35-light1475496';
  src: url('fonts/AvenirLTW05-35Light.woff2') format('woff2');
  font-display: swap;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: system-ui, -apple-system, sans-serif;
  background-color: #020202;
}

section[id] {
  scroll-margin-top: 60px;
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  display: flex;
  align-items: center;
  padding: 0 24px;
  background-color: rgba(133, 133, 166, 0.65); /* #8585a6 @ 65% */
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 100;
}

.navbar-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.navbar-logo {
  height: 40px;
  width: auto;
  margin-right: 12px;
}

.navbar-title {
  display: flex;
  flex-direction: column;
  text-align: left;
  color: #000;
  line-height: 1.1;
}

.navbar-title .line-top,
.navbar-title .line-bottom {
  font-size: 18px;
  letter-spacing: 1px;
}

.navbar-title .line-top {
  font-family: 'avenir-lt-w01_85-heavy1475544', sans-serif;
}

.navbar-title .line-bottom {
  font-family: 'avenir-lt-w01_35-light1475496', sans-serif;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-left: auto;
  list-style: none;
}

.navbar-links a {
  font-family: 'avenir-lt-w01_85-heavy1475544', sans-serif;
  font-size: 14px;
  letter-spacing: 1px;
  color: #000;
  text-decoration: none;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: #000;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .navbar-links {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-left: 0;
    padding: 8px 24px 16px;
    background: rgba(133, 133, 166, 0.95);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
  }

  .navbar-links.open {
    display: flex;
  }

  .navbar-links a {
    display: block;
    padding: 14px 0;
    font-size: 15px;
  }
}

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px 8% 170px;
  background: url('img/john-wilander-r_tZ7moJluA-unsplash.jpg') center / cover no-repeat fixed;
}

@media (hover: none), (max-width: 768px) {
  .hero {
    background-attachment: scroll;
  }
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(0, 0, 8, 0.8) 0%, rgba(0, 0, 10, 0.5) 55%, rgba(0, 0, 10, 0.3) 100%);
}

.hero-content {
  position: relative;
  max-width: 820px;
}

.eyebrow {
  display: flex;
  align-items: center;
  font-family: 'avenir-lt-w01_85-heavy1475544', sans-serif;
  font-size: 13px;
  letter-spacing: 3px;
  color: #1d9bf0;
  margin-bottom: 28px;
}

.eyebrow::before {
  content: '';
  width: 36px;
  height: 2px;
  background: #1d9bf0;
  margin-right: 14px;
}

.hero-heading {
  font-family: 'avenir-lt-w01_85-heavy1475544', sans-serif;
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  line-height: 1.08;
  color: #fff;
  margin-bottom: 26px;
}

.hero-accent {
  color: #1d9bf0;
}

.hero-subtext {
  font-family: 'avenir-lt-w01_35-light1475496', sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.85);
  max-width: 560px;
  margin-bottom: 38px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'avenir-lt-w01_85-heavy1475544', sans-serif;
  font-size: 13px;
  letter-spacing: 2px;
  padding: 16px 30px;
  text-decoration: none;
}

.btn-primary {
  background: #1d9bf0;
  color: #06121f;
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.hero-stats {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: space-evenly;
  padding: 28px 8%;
  background: rgba(2, 2, 8, 0.45);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.stat {
  border-left: 2px solid #1d9bf0;
  padding-left: 20px;
}

.stat-number {
  display: block;
  font-family: 'avenir-lt-w01_85-heavy1475544', sans-serif;
  font-size: 30px;
  line-height: 1.1;
  color: #fff;
}

.stat-label {
  display: block;
  font-family: 'avenir-lt-w01_35-light1475496', sans-serif;
  font-size: 15px;
  color: rgba(185, 195, 215, 0.8);
  margin-top: 4px;
}

.services {
  background: #16181d;
  padding: 110px 8% 100px;
}

.services-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.services-heading,
.projects-heading,
.bio-heading,
.contact-heading {
  font-family: 'avenir-lt-w01_85-heavy1475544', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  color: #fff;
  margin-bottom: 18px;
}

.services-subtext {
  font-family: 'avenir-lt-w01_35-light1475496', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: rgba(165, 175, 195, 0.8);
  max-width: 560px;
  margin-bottom: 64px;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.service-card {
  position: relative;
  padding: 48px 56px 48px 40px;
}

.service-image {
  display: block;
  width: 100%;
  height: auto;
  filter: brightness(0.8);
}

.service-body {
  display: none;
}

.service-card.show-text .service-image {
  display: none;
}

.service-card.show-text .service-body {
  display: block;
}

.service-card:nth-child(odd) {
  border-right: 1px solid rgba(255, 255, 255, 0.07);
}

.service-card:nth-child(-n + 2) {
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.service-tag {
  display: inline-block;
  font-family: 'avenir-lt-w01_85-heavy1475544', sans-serif;
  font-size: 11px;
  letter-spacing: 2px;
  color: #1d9bf0;
  border: 1px solid rgba(29, 155, 240, 0.45);
  padding: 5px 10px;
  margin-bottom: 30px;
}

.service-title {
  font-family: 'avenir-lt-w01_85-heavy1475544', sans-serif;
  font-size: 21px;
  color: #fff;
  margin-bottom: 14px;
}

.service-desc {
  font-family: 'avenir-lt-w01_35-light1475496', sans-serif;
  font-size: 15px;
  line-height: 1.65;
  color: rgba(150, 160, 180, 0.8);
}

.service-arrow {
  position: absolute;
  top: 46px;
  right: 40px;
  z-index: 2;
  background: none;
  border: none;
  padding: 0;
  font-size: 22px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.5);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
  cursor: pointer;
  transition: transform 0.3s ease, color 0.3s ease;
}

.service-arrow:hover {
  color: #fff;
}

.service-card.show-text .service-arrow {
  transform: rotate(180deg);
  color: rgba(255, 255, 255, 0.35);
  text-shadow: none;
}

.projects {
  background: #102942;
  padding: 110px 8% 100px;
}

.projects-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.projects-heading {
  margin-bottom: 56px;
}

.projects-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.projects-nav {
  display: flex;
  gap: 12px;
  margin-bottom: 56px;
}

.projects-arrow {
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.7);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.projects-arrow:hover {
  border-color: #1d9bf0;
  color: #1d9bf0;
}

.projects-arrow:disabled {
  opacity: 0.3;
  cursor: default;
}

.projects-arrow:disabled:hover {
  border-color: rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.7);
}

.projects-grid {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.projects-grid::-webkit-scrollbar {
  display: none;
}

.project-card {
  flex: 0 0 calc(33.333% - 16px);
  min-width: 280px;
  scroll-snap-align: start;
  background: #0c2036;
}

.project-image {
  position: relative;
}

.project-image img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.project-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  background: #1d9bf0;
  color: #fff;
  font-family: 'avenir-lt-w01_85-heavy1475544', sans-serif;
  font-size: 11px;
  letter-spacing: 2px;
  padding: 5px 10px;
}

.project-info {
  padding: 26px 24px 30px;
}

.project-title {
  font-family: 'avenir-lt-w01_85-heavy1475544', sans-serif;
  font-size: 18px;
  color: #fff;
  margin-bottom: 10px;
}

.project-desc {
  display: none;
}

.project-image {
  cursor: pointer;
}

.project-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
}

.project-modal.open {
  display: flex;
}

.project-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 5, 0.75);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.project-modal-dialog {
  position: relative;
  display: flex;
  width: min(960px, 92vw);
  height: min(560px, 80vh);
  background: #0c2036;
  overflow: hidden;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  z-index: 2;
  background: none;
  border: none;
  font-size: 28px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: color 0.2s ease;
}

.modal-close:hover {
  color: #fff;
}

.modal-text {
  flex: 1;
  padding: 48px 40px;
  overflow-y: auto;
}

.modal-title {
  font-family: 'avenir-lt-w01_85-heavy1475544', sans-serif;
  font-size: 24px;
  color: #fff;
  margin-bottom: 18px;
}

.modal-desc {
  font-family: 'avenir-lt-w01_35-light1475496', sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(170, 182, 200, 0.85);
}

.modal-desc a {
  color: #1d9bf0;
}

.modal-gallery {
  flex: 1;
  overflow-y: auto;
}

.modal-gallery img {
  display: block;
  width: 100%;
  height: auto;
}

body.modal-open {
  overflow: hidden;
}

.bio {
  background: #16181d;
  padding: 110px 8% 100px;
}

.bio-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.bio-heading {
  margin-bottom: 32px;
}

.bio-content {
  display: flex;
  gap: 56px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.bio-text {
  flex: 1;
  min-width: 280px;
  padding-right: 56px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  font-family: 'avenir-lt-w01_35-light1475496', sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: rgba(180, 190, 208, 0.85);
  max-width: 720px;
}

.bio-portrait {
  width: min(340px, 100%);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 4px solid rgba(255, 255, 255, 0.3);
}

.bio-text p + p {
  margin-top: 20px;
}

.clients {
  margin-top: 90px;
  padding-top: 48px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.clients .eyebrow {
  justify-content: center;
  margin-bottom: 40px;
}

.clients-list {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 56px;
  flex-wrap: wrap;
  list-style: none;
}

.client {
  font-family: 'avenir-lt-w01_85-heavy1475544', sans-serif;
  font-size: 15px;
  letter-spacing: 2px;
  color: rgba(200, 210, 225, 0.45);
  transition: color 0.2s ease;
}

.client img {
  display: block;
  height: 44px;
  width: auto;
  opacity: 0.75;
  transition: opacity 0.2s ease;
}

.client:hover,
.client:hover img {
  color: rgba(255, 255, 255, 0.9);
  opacity: 1;
}

.contact {
  background: #102942;
  padding: 110px 8% 100px;
}

.contact-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.contact-heading {
  margin-bottom: 18px;
}

.contact-subtext {
  font-family: 'avenir-lt-w01_35-light1475496', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: rgba(165, 175, 195, 0.8);
  margin-bottom: 48px;
}

.contact-form {
  max-width: 640px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-field {
  margin-bottom: 20px;
}

.form-field label {
  display: block;
  font-family: 'avenir-lt-w01_85-heavy1475544', sans-serif;
  font-size: 11px;
  letter-spacing: 2px;
  color: rgba(180, 190, 208, 0.7);
  margin-bottom: 8px;
}

.form-field input,
.form-field textarea {
  width: 100%;
  background: #0c2036;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 14px 16px;
  font-family: 'avenir-lt-w01_35-light1475496', sans-serif;
  font-size: 15px;
  color: #fff;
  transition: border-color 0.2s ease;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: #1d9bf0;
}

.form-field textarea {
  resize: vertical;
}

.form-honeypot {
  display: none;
}

.form-status {
  margin-top: 16px;
  font-family: 'avenir-lt-w01_35-light1475496', sans-serif;
  font-size: 14px;
  color: rgba(180, 190, 208, 0.85);
}

.form-status.success {
  color: #4ade80;
}

.form-status.error {
  color: #f87171;
}

.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 28px 8%;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.footer-copy {
  font-family: 'avenir-lt-w01_35-light1475496', sans-serif;
  font-size: 13px;
  color: rgba(165, 175, 195, 0.6);
}

.footer-logo {
  height: 40px;
  width: auto;
  justify-self: center;
}

.footer-social {
  display: flex;
  gap: 12px;
  justify-self: end;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.7);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.social-btn svg {
  width: 18px;
  height: 18px;
}

.social-btn:hover {
  border-color: #1d9bf0;
  color: #1d9bf0;
}

@media (max-width: 768px) {
  .footer-inner {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 18px;
  }

  .footer-social {
    justify-self: center;
  }
}

.error-page {
  min-height: calc(100vh - 60px);
  background: #102942;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 8% 80px;
}

.error-code {
  font-family: 'avenir-lt-w01_85-heavy1475544', sans-serif;
  font-size: clamp(5rem, 15vw, 9rem);
  line-height: 1;
  color: #fff;
  margin-bottom: 20px;
}

.error-message {
  font-family: 'avenir-lt-w01_35-light1475496', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: rgba(165, 175, 195, 0.8);
  max-width: 440px;
  margin-bottom: 36px;
}
