@font-face {
  font-family: Outfit;
  src: url("../assets/fonts/Outfit-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #070708;
  --bg-2: #101012;
  --bg-3: #161619;
  --text: #f3f2ee;
  --muted: #9b9a95;
  --line: rgba(243, 242, 238, 0.12);
  --accent: #f3f2ee;
  --glow: rgba(243, 242, 238, 0.08);
  --radius: 18px;
  --nav-h: 76px;
  --max: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Outfit, "Segoe UI", system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: -0.01em;
  min-height: 100vh;
}

body.nav-open {
  overflow: hidden;
}

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

.nav-brand img,
.hero-logo {
  filter: none;
}

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

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--text);
  color: var(--bg);
  padding: 8px 12px;
  z-index: 100;
}

.skip:focus {
  top: 12px;
}

.nav {
  position: fixed;
  inset: 0 0 auto;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  z-index: 20;
  background: linear-gradient(to bottom, rgba(7, 7, 8, 0.92), rgba(7, 7, 8, 0.55) 70%, transparent);
  backdrop-filter: blur(10px);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 560;
  letter-spacing: -0.03em;
  z-index: 21;
}

.nav-brand img {
  width: 72px;
  height: auto;
}

.hero-slideshow {
  width: min(760px, 100%);
  margin: 0 auto 4px;
  justify-self: center;
}

.hero-slideshow-viewport {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0c0c0e;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.hero-slideshow-track {
  list-style: none;
  margin: 0;
  padding: 0;
  height: 100%;
}

.hero-slideshow-track li {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s var(--ease), visibility 0.7s var(--ease);
}

.hero-slideshow-track li.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.hero-slideshow-track img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slideshow-track li::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.42) 0%, rgba(0, 0, 0, 0.12) 58%, transparent 82%);
}

.hero-slideshow-caption {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: max-content;
  max-width: 86%;
  padding: 0;
  border: 0;
  background: none;
  transform: translate(-50%, -50%);
  text-align: center;
  font-size: clamp(1.85rem, 4.2vw, 3rem);
  font-weight: 650;
  line-height: 1.12;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 2px 22px rgba(0, 0, 0, 0.78);
}

.hero-slideshow-ui {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}

.hero-slideshow-nav {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--bg-2);
  cursor: pointer;
  position: relative;
}

.hero-slideshow-nav::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 8px;
  height: 8px;
  border-left: 2px solid var(--text);
  border-bottom: 2px solid var(--text);
  transform: rotate(45deg) translate(2px, -1px);
}

.hero-slideshow-nav[data-dir="1"]::before {
  transform: rotate(-135deg) translate(2px, -1px);
}

.hero-slideshow-nav:hover,
.hero-slideshow-nav:focus-visible {
  background: #1b1b1f;
}

.hero-slideshow-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex: 1;
}

.hero-slideshow-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(243, 242, 238, 0.28);
  cursor: pointer;
}

.hero-slideshow-dots button.is-active {
  background: var(--text);
  transform: scale(1.15);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  z-index: 21;
  padding: 0;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle span::before {
  top: -7px;
}

.nav-toggle span::after {
  top: 7px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.92rem;
  color: var(--muted);
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--text);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--text);
  color: var(--bg);
  font-weight: 560;
  letter-spacing: -0.02em;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease);
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-1px);
  background: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}

.btn-ghost:hover {
  background: var(--glow);
}

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  align-items: end;
  padding: calc(var(--nav-h) + 32px) 28px 72px;
  overflow: hidden;
}

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

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 7, 8, 0.2) 0%, rgba(7, 7, 8, 0.35) 48%, rgba(7, 7, 8, 0.96) 100%),
    radial-gradient(ellipse at 80% 20%, rgba(243, 242, 238, 0.08), transparent 42%);
  z-index: 1;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(var(--max), 100%);
  margin: 0 auto;
  display: grid;
  gap: 28px;
}

.kicker {
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  max-width: 22ch;
  font-size: clamp(1.7rem, 4.6vw + 0.7rem, 5.4rem);
  line-height: 1.08;
  font-weight: 560;
  letter-spacing: -0.045em;
}

.hero-copy {
  max-width: 42ch;
  color: var(--muted);
  font-size: 1.08rem;
}

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

.wrap {
  width: min(var(--max), calc(100% - 56px));
  margin: 0 auto;
}

section {
  padding: 88px 0;
}

.section-head {
  display: grid;
  gap: 12px;
  margin-bottom: 48px;
  max-width: 46ch;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
  font-weight: 560;
}

.lede {
  margin: 0;
  color: var(--muted);
}

.services {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.service {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 20px;
  align-items: center;
  padding: 22px 28px;
  background: var(--bg-2);
  transition: background 0.3s var(--ease);
}

.service:hover {
  background: #1b1b1f;
}

.service:hover .service-media img {
  filter: brightness(0.58) saturate(1);
}

.service-media {
  position: relative;
  width: 88px;
  height: 88px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  flex-shrink: 0;
}

.service-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.46) saturate(0.9);
  transition: filter 0.3s var(--ease);
}

.service-index {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  font-weight: 560;
  font-size: 1.12rem;
  letter-spacing: 0.08em;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.75);
  z-index: 1;
}

.service h3 {
  margin: 0 0 8px;
  font-size: 1.28rem;
  letter-spacing: -0.03em;
  font-weight: 560;
}

.service p {
  margin: 0;
  color: var(--muted);
  max-width: 62ch;
}

.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.process article {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-2);
  min-height: 180px;
}

.process h3 {
  margin: 28px 0 10px;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
}

.process p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.contact-panel {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 36px;
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(243, 242, 238, 0.04), transparent 40%),
    var(--bg-2);
}

.contact-panel h2 {
  margin: 10px 0 14px;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.contact-meta {
  display: grid;
  gap: 10px;
  color: var(--muted);
  margin-top: 24px;
}

.contact-meta a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-meta a:hover {
  color: var(--text);
}

.form {
  display: grid;
  gap: 14px;
  position: relative;
}

.field {
  display: grid;
  gap: 6px;
}

.field span {
  font-size: 0.82rem;
  color: var(--muted);
}

.field input,
.field textarea {
  width: 100%;
  background: #0c0c0e;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  outline: none;
}

.field input:focus,
.field textarea:focus {
  border-color: rgba(243, 242, 238, 0.4);
}

.hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.form-status {
  min-height: 1.4em;
  margin: 0;
  font-size: 0.92rem;
}

.form-status.is-ok {
  color: #b7e3c0;
}

.form-status.is-err {
  color: #f0b4b4;
}

.legal {
  padding: calc(var(--nav-h) + 48px) 0 88px;
}

.legal h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 5vw, 3.2rem);
  letter-spacing: -0.05em;
}

.legal h2 {
  margin: 32px 0 10px;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
}

.legal p,
.legal li {
  color: var(--muted);
}

.legal a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 28px 0 8px;
}

.legal-box {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-2);
}

.legal-box-wide {
  grid-column: 1 / -1;
}

.legal-label {
  margin: 0 0 6px;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.legal-value {
  margin: 0;
  color: var(--text);
}

.footer {
  border-top: 1px solid var(--line);
  padding: 28px;
}

.footer-inner {
  width: min(var(--max), 100%);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-meta {
  display: grid;
  gap: 6px;
}

.footer-ai {
  margin: 0;
  max-width: 46ch;
  font-size: 0.82rem;
  line-height: 1.4;
}

.footer-links {
  display: flex;
  gap: 18px;
}

@media (max-width: 860px) {
  :root {
    --nav-h: 64px;
  }

  .process,
  .contact-panel,
  .legal-facts {
    grid-template-columns: 1fr;
  }

  .legal-box-wide {
    grid-column: auto;
  }

  .nav {
    padding: 0 16px;
    height: var(--nav-h);
  }

  .nav-brand {
    gap: 10px;
    min-width: 0;
  }

  .nav-brand img {
    width: clamp(40px, 12vw, 56px);
  }

  .nav-brand span {
    font-size: clamp(0.86rem, 3.6vw, 1rem);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .nav-toggle {
    display: grid;
    place-items: center;
  }

  .nav-links {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(7, 7, 8, 0.96);
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    font-size: 1.2rem;
    color: var(--text);
  }

  .nav-links.is-open {
    display: flex;
  }

  .hero {
    min-height: unset;
    align-items: start;
    padding: calc(var(--nav-h) + 12px) 16px 36px;
  }

  .hero-inner {
    gap: 16px;
    width: 100%;
  }

  .hero-slideshow {
    width: 100%;
    margin: 0 auto;
  }

  .hero-slideshow-viewport {
    border-radius: 14px;
    aspect-ratio: 16 / 10;
  }

  .hero-slideshow-caption {
    max-width: 88%;
    font-size: clamp(1.45rem, 7.2vw, 2rem);
  }

  .hero h1 {
    max-width: none;
    font-size: clamp(1.45rem, 7.5vw, 2.05rem);
    line-height: 1.15;
  }

  .hero-copy {
    max-width: none;
    font-size: clamp(0.92rem, 3.8vw, 1.02rem);
  }

  .hero-actions {
    display: grid;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero,
  .footer {
    padding-left: 16px;
    padding-right: 16px;
  }

  .wrap {
    width: min(var(--max), calc(100% - 32px));
  }

  section {
    padding: 52px 0;
  }

  .section-head {
    margin-bottom: 24px;
    max-width: none;
  }

  .section-head h2 {
    font-size: clamp(1.35rem, 6.2vw, 1.85rem);
  }

  .service {
    grid-template-columns: clamp(56px, 18vw, 72px) minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
    align-items: start;
  }

  .service-media {
    width: 100%;
    aspect-ratio: 1;
    height: auto;
    border-radius: 10px;
  }

  .service-index {
    font-size: clamp(0.9rem, 3.8vw, 1.05rem);
  }

  .service h3 {
    font-size: clamp(0.98rem, 4.2vw, 1.12rem);
    margin-bottom: 6px;
  }

  .service p {
    font-size: clamp(0.84rem, 3.5vw, 0.94rem);
    line-height: 1.45;
  }

  .process {
    gap: 12px;
  }

  .process article {
    min-height: 0;
    padding: 18px;
  }

  .contact-panel {
    padding: 20px 16px;
    border-radius: 16px;
    gap: 22px;
  }

  .contact-panel h2 {
    font-size: clamp(1.35rem, 6vw, 1.8rem);
  }

  .legal {
    padding: calc(var(--nav-h) + 28px) 0 56px;
  }

  .legal h1 {
    font-size: clamp(1.6rem, 7vw, 2.2rem);
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
}

@media (max-width: 430px) {
  .hero-slideshow-viewport {
    aspect-ratio: 4 / 3;
  }

  .service {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 10px;
    padding: 12px;
  }
}

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

  .hero-slideshow-track li {
    transition: none;
  }
}
