/* AISPRI — Preliminary responsive website
   Replace assets and the temporary logo when final PNG/SVG files are available. */

:root {
  --bg: rgb(19, 24, 25);
  --text: #f4f4f4;
  --muted: #b5b5b5;
  --line: rgba(255, 255, 255, .18);
  --accent: #ffffff;
  --header-height: 82px;
  --max-width: 1400px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  background-color: #ffffff;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background-color: #ffffff;
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
}

body.site-ready {
  background-color: var(--bg);
}

.splash-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  opacity: 1;
  transform: scale(1);
  visibility: visible;
  will-change: opacity, transform;
}

.splash-screen.is-hidden {
  animation: splash-fade-out 1s ease forwards;
  pointer-events: none;
}

@keyframes splash-fade-out {
  from {
    opacity: 1;
    transform: scale(1);
  }

  to {
    opacity: 0;
    transform: scale(1.03);
  }
}

.splash-logo {
  display: block;
  width: min(70vw, 320px);
  max-width: 320px;
  height: auto;
}

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

button,
input,
textarea {
  font: inherit;
}

.site-header {
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  right: 0;
  min-height: auto;
  padding: 12px 4vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: rgba(19, 24, 25, 0.96);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(8px);
}

.logo {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: 0;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 12px;
  background: rgba(255, 255, 255, .08);
  cursor: pointer;
  transition: background .3s ease, opacity .3s ease, transform .3s ease;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 1px;
  transition: transform .3s ease, opacity .3s ease;
}

.menu-toggle:hover {
  background: rgba(255, 255, 255, .14);
}

.site-header.menu-open .menu-toggle {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.logo-image {
  display: block;
  height: 46px;
  width: auto;
  max-width: 220px;
}

.main-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: clamp(16px, 2vw, 24px);
  padding: 0;
  background: transparent;
  border-bottom: none;
  box-shadow: none;
  opacity: 1;
}

.site-header.menu-open .main-nav {
  max-height: none;
  padding: 0;
  opacity: 1;
}

.main-nav a {
  position: relative;
  font-size: 14px;
  letter-spacing: .08em;
  font-weight: 700;
  white-space: nowrap;
  padding: 8px 0;
  color: rgb(88, 119, 129);
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width .25s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
}

.section {
  position: relative;
  min-height: 100vh;
  padding: calc(var(--header-height) + 90px) 7vw 100px;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr);
  align-items: center;
  gap: 7vw;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
}

.hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(19, 24, 25, 0.95) 0%, rgba(19, 24, 25, 0.75) 40%, rgba(19, 24, 25, 0.3) 100%);
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
}

.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .2em;
  margin-bottom: 28px;
}

.eyebrow-svg,
.footer-logo-svg {
  display: block;
  max-width: 100px;
  height: auto;
}

.eyebrow-svg {
  margin-bottom: 28px;
}

.footer-logo-svg {
  width: auto;
  max-height: 26px;
}

h1,
h2 {
  font-weight: 700;
  line-height: .98;
  letter-spacing: -.04em;
}

h1 {
  font-size: clamp(48px, 7vw, 105px);
  max-width: 950px;
}

h2 {
  font-size: clamp(44px, 6vw, 88px);
}

h3 {
  line-height: 1.05;
}

.hero-copy {
  max-width: 560px;
  color: var(--muted);
  margin-top: 30px;
  font-size: 18px;
}

.button {
  display: inline-block;
  margin-top: 38px;
  padding: 15px 24px;
  border: 1px solid var(--text);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  transition: background .25s ease, color .25s ease;
}

.button:hover {
  background: var(--text);
  color: var(--bg);
}

.image-placeholder {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .02)),
    #202020;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #777;
  font-size: 11px;
  letter-spacing: .15em;
}

.services-image {
  width: 100%;
  margin: 40px 0 0;
}

.services-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
}

.section-grid {
  max-width: var(--max-width);
  width: 100%;
  margin: auto;
  display: grid;
  grid-template-columns: minmax(260px, .8fr) minmax(300px, 1.2fr);
  gap: 10vw;
  align-items: center;
}

.section-copy {
  max-width: 680px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 25px);
}

.section-copy p+p {
  margin-top: 28px;
}

.about {
  position: relative;
  overflow: hidden;
}

.about-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
}

.about-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.about::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(19, 24, 25, 0.95) 0%, rgba(19, 24, 25, 0.75) 40%, rgba(19, 24, 25, 0.3) 100%);
  z-index: 1;
  pointer-events: none;
}

.about .section-grid {
  position: relative;
  z-index: 2;
}

.about .section-copy {
  color: var(--muted);
}

.services {
  background: var(--bg);
}

.section-intro {
  max-width: 720px;
  margin-bottom: 65px;
}

.section-intro>p:not(.eyebrow) {
  color: var(--muted);
  max-width: 650px;
  margin-top: 24px;
  font-size: 17px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}

.service-card {
  min-height: 280px;
  padding: 30px 25px;
  border-right: 1px solid var(--line);
}

.service-card:last-child {
  border-right: 0;
}

.service-number {
  color: #777;
  font-size: 12px;
  margin-bottom: 90px;
}

.service-card h3 {
  font-size: 17px;
  letter-spacing: .04em;
}

.service-card p {
  color: var(--muted);
  font-size: 14px;
  margin-top: 18px;
}

.centered {
  max-width: 800px;
  margin: 0 auto 65px;
  text-align: center;
}

.centered p:not(.eyebrow) {
  color: var(--muted);
  margin-top: 25px;
}

.project-grid {
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  grid-template-rows: 260px 260px;
  gap: 18px;
}

.project-card {
  min-height: 260px;
}

.project-card.large {
  grid-row: span 2;
}

.news {
  background: var(--bg);
}

.news-grid {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
}

.news-card {
  border: 1px solid var(--line);
}

.news-image {
  height: 250px;
}

.news-content {
  padding: 28px;
}

.small-label {
  color: #888;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .15em;
}

.news-content h3 {
  margin-top: 15px;
  font-size: 28px;
}

.news-content p:last-child {
  color: var(--muted);
  margin-top: 12px;
}

.contact {
  background: var(--bg);
}

.contact-actions {
  width: 100%;
  max-width: 650px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.form-note {
  color: var(--muted);
  font-size: 13px;
  margin-top: 0;
}

.site-footer {
  padding: 45px 7vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .08em;
}

.footer-logo {
  color: var(--text);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: .16em;
}

.site-footer a:hover {
  color: var(--text);
}

/* Tablet */
@media (max-width: 900px) {
  :root {
    --header-height: 82px;
  }

  .site-header {
    align-items: center;
    padding: 10px 5vw;
    overflow: visible;
    min-height: 64px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-header.menu-open {
    padding-bottom: 140px;
  }

  .site-header.menu-open .menu-toggle {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.95);
  }

  .main-nav {
    position: absolute;
    top: 10px;
    right: 5vw;
    z-index: 999;
    display: none;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    padding: 0;
    background: transparent;
  }

  .site-header.menu-open .main-nav {
    display: flex;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .section-grid {
    grid-template-columns: 1fr;
    gap: 55px;
  }

  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-card:nth-child(2) {
    border-right: 0;
  }

  .service-card:nth-child(-n+2) {
    border-bottom: 1px solid var(--line);
  }
}

/* Smartphone */
@media (max-width: 600px) {
  :root {
    --header-height: 82px;
  }

  .site-header {
    min-height: auto;
    padding: 10px 5vw;
    align-items: center;
    z-index: 1003;
    min-height: 64px;
  }

  .site-header.menu-open {
    padding-bottom: 50px;
  }

  .logo {
    font-size: 21px;
    align-self: center;
  }

  .main-nav {
    top: 10px;
    right: 5vw;
    gap: 0;
    text-align: right;
    padding: 0;
  }

  .main-nav a {
    font-size: 10px;
    padding: 3px 0;
  }

  .section {
    min-height: auto;
    padding: calc(var(--header-height) + 65px) 7vw 75px;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    align-items: start;
    gap: 0;
    overflow: visible;
  }

  .hero-content {
    padding-bottom: 0;
  }

  h1 {
    font-size: clamp(42px, 12vw, 64px);
  }

  h2 {
    font-size: clamp(40px, 11vw, 58px);
  }

  .hero-copy {
    font-size: 16px;
  }

  .service-grid,
  .news-grid,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .service-card,
  .service-card:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .service-card:last-child {
    border-bottom: 0;
  }

  .service-number {
    margin-bottom: 55px;
  }

  .project-grid {
    grid-template-rows: repeat(3, 240px);
  }

  .project-card.large {
    grid-row: auto;
  }

  .project-card {
    min-height: 240px;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    padding: 35px 7vw;
  }
}

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

  * {
    transition: none !important;
  }
}