/* Aspect Serveis — showroom site */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("fonts/archivo-latin.woff2") format("woff2");
}

:root {
  --ink: #0d0d0f;
  --ink-2: #16171b;
  --ink-3: #202228;
  --line: rgba(255, 255, 255, 0.12);
  --text: #f4f2ee;
  --muted: #a3a3a8;
  --accent: #ff5a1f;
  --accent-ink: #0d0d0f;
  --radius: 14px;
  --max: 1240px;
  --gutter: 24px;
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip-link {
  position: absolute;
  left: -9999px;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
  z-index: 100;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 8px 14px;
  border-radius: 8px;
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background 0.25s ease, border-color 0.25s ease;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(13, 13, 15, 0.92);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  text-decoration: none;
  font-weight: 900;
  font-stretch: 125%;
  letter-spacing: 0.02em;
  font-size: 22px;
  text-transform: uppercase;
}
.logo span {
  font-weight: 500;
  font-stretch: 100%;
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--accent);
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s ease;
}
.nav a:hover,
.nav a:focus-visible {
  color: var(--text);
}

.lang {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}
.lang a {
  text-decoration: none;
  padding: 6px 12px;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.lang a[aria-current="true"] {
  background: var(--text);
  color: var(--ink);
}

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 10px;
  width: 44px;
  height: 44px;
  cursor: pointer;
}
.menu-toggle svg {
  width: 20px;
  height: 20px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}
.btn-ghost {
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--text);
}
.btn-ghost:hover {
  background: var(--text);
  color: var(--ink);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: 140px 0 72px;
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13, 13, 15, 0.2) 0%, rgba(13, 13, 15, 0.55) 55%, var(--ink) 100%);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 20px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: currentColor;
}

.hero h1 {
  margin: 0;
  font-size: 88px;
  line-height: 0.95;
  font-weight: 900;
  font-stretch: 125%;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  max-width: 12ch;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent);
}
.hero p.lead {
  max-width: 560px;
  margin: 28px 0 36px;
  font-size: 19px;
  color: #d6d4cf;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Sections ---------- */

.section {
  padding: 120px 0;
  border-top: 1px solid var(--line);
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}
.section-title {
  margin: 0;
  font-size: 64px;
  line-height: 1;
  font-weight: 900;
  font-stretch: 125%;
  text-transform: uppercase;
}
.section-intro {
  max-width: 440px;
  margin: 0;
  color: var(--muted);
}

/* Services */

.services {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.service {
  background: var(--ink);
  padding: 32px 28px 36px;
  transition: background 0.25s ease;
}
.service:hover {
  background: var(--ink-2);
}
.service-num {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.1em;
}
.service h3 {
  margin: 48px 0 12px;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 800;
  font-stretch: 112%;
  text-transform: uppercase;
}
.service p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

/* Projects */

.projects {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.project {
  position: relative;
  text-decoration: none;
  display: block;
}
.project:nth-child(3n + 1) {
  grid-column: span 2;
}
.project-media {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--ink-3);
}
.project:nth-child(3n + 1) .project-media {
  aspect-ratio: 21 / 9;
}
.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.project:hover .project-media img {
  transform: scale(1.04);
}
.project-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.project h3 {
  margin: 6px 0 0;
  font-size: 24px;
  line-height: 1.25;
  font-weight: 800;
  text-transform: uppercase;
}

/* Products */

.products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.product {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.product-media {
  aspect-ratio: 1;
}
.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-body {
  padding: 22px 24px 26px;
}
.product h3 {
  margin: 0 0 6px;
  font-size: 19px;
  font-weight: 800;
  text-transform: uppercase;
}
.product p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

/* Clients */

.clients {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.client {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 3 / 2;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-weight: 800;
  font-stretch: 112%;
  font-size: 15px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #5d5e64;
  transition: color 0.2s ease;
}
.client:hover {
  color: var(--text);
}

/* About */

.about {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: 72px;
  align-items: center;
}
.about-media {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 6 / 7;
}
.about-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about-text p {
  color: #d6d4cf;
  font-size: 18px;
}
.team {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 36px;
}
.team-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
}
.team-card strong {
  display: block;
  font-size: 18px;
  text-transform: uppercase;
}
.team-card span {
  color: var(--muted);
  font-size: 14px;
}

/* Contact */

.contact {
  text-align: left;
}
.contact-mail {
  display: inline-block;
  margin: 8px 0 40px;
  font-size: 56px;
  line-height: 1.05;
  font-weight: 900;
  font-stretch: 112%;
  text-decoration: none;
  word-break: break-word;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-size: 0% 3px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 0.35s ease;
}
.contact-mail:hover {
  background-size: 100% 3px;
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  border-top: 1px solid var(--line);
  padding-top: 32px;
}
.contact-grid h3 {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact-grid p {
  margin: 0;
  font-size: 18px;
}
.contact-grid a {
  text-decoration: none;
}
.contact-grid a:hover {
  color: var(--accent);
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 32px 0 40px;
  color: var(--muted);
  font-size: 14px;
}
.site-footer .container {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.site-footer nav {
  display: flex;
  gap: 20px;
}
.site-footer a {
  text-decoration: none;
}
.site-footer a:hover {
  color: var(--text);
}

/* Legal page */

.legal {
  padding-top: 160px;
  padding-bottom: 100px;
  max-width: 808px;
}
.legal h1 {
  font-size: 48px;
  line-height: 1.05;
  font-weight: 900;
  font-stretch: 125%;
  text-transform: uppercase;
  margin: 0 0 32px;
}
.legal h2 {
  font-size: 20px;
  text-transform: uppercase;
  margin: 40px 0 8px;
}
.legal p,
.legal li {
  color: #d6d4cf;
}
.placeholder {
  background: rgba(255, 90, 31, 0.15);
  color: var(--accent);
  padding: 0 6px;
  border-radius: 4px;
}

/* Reveal on scroll */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

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

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .hero h1 {
    font-size: 68px;
  }
  .section-title {
    font-size: 52px;
  }
  .services {
    grid-template-columns: repeat(2, 1fr);
  }
  .clients {
    grid-template-columns: repeat(4, 1fr);
  }
  .about {
    gap: 48px;
  }
  .contact-mail {
    font-size: 44px;
  }
}

@media (max-width: 860px) {
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .nav {
    position: fixed;
    inset: 72px 0 auto 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px var(--gutter) 24px;
    background: rgba(13, 13, 15, 0.98);
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .site-header.is-open .nav {
    display: flex;
  }
  .nav a {
    width: 100%;
    padding: 14px 0;
    font-size: 16px;
    border-bottom: 1px solid var(--line);
  }
  .nav .lang {
    margin-top: 16px;
  }
  .nav .lang a {
    width: auto;
    border: 0;
    padding: 8px 14px;
  }
  .about {
    grid-template-columns: 1fr;
  }
  .about-media {
    aspect-ratio: 4 / 3;
  }
  .products {
    grid-template-columns: 1fr 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .contact-mail {
    font-size: 34px;
    margin-top: 20px;
  }
}

@media (max-width: 600px) {
  :root {
    --gutter: 16px;
  }
  body {
    font-size: 16px;
  }
  .hero {
    padding: 120px 0 48px;
  }
  .hero h1 {
    font-size: 44px;
  }
  .hero p.lead {
    font-size: 17px;
  }
  .section {
    padding: 80px 0;
  }
  .section-title {
    font-size: 36px;
  }
  .section-head {
    margin-bottom: 36px;
  }
  .services,
  .projects,
  .products,
  .team {
    grid-template-columns: 1fr;
  }
  .project:nth-child(3n + 1) {
    grid-column: auto;
  }
  .project:nth-child(3n + 1) .project-media {
    aspect-ratio: 4 / 3;
  }
  .project h3 {
    font-size: 20px;
  }
  .clients {
    grid-template-columns: repeat(2, 1fr);
  }
  .contact-mail {
    font-size: 21px;
    font-stretch: 100%;
  }
  .legal h1 {
    font-size: 34px;
  }
}
