:root {
  --navy: #0a1628;
  --icon: #f4f7fb;
  --muted: #9aa3b2;
  --accent: #3ddc84;
  --glass: rgba(8, 16, 32, 0.46);
  --glass-border: rgba(255, 255, 255, 0.18);
}

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

html {
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  background-color: var(--navy);
}

html,
body {
  min-height: 100%;
  background-color: var(--navy);
  color: var(--icon);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

.brand {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 2;
  display: flex;
  justify-content: flex-start;
  padding: max(0.85rem, env(safe-area-inset-top)) 0 0 max(0.85rem, env(safe-area-inset-left));
  pointer-events: none;
  animation: chrome-in 0.8s ease both;
}

.logo {
  display: block;
  width: auto;
  height: auto;
  max-width: min(9rem, 28vw);
  max-height: 12vh;
  object-fit: contain;
  border-radius: 0.7rem;
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.4);
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
}

.slide {
  min-height: 100svh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding:
    max(6.5rem, calc(env(safe-area-inset-top) + 5.5rem))
    1.5rem
    max(6.5rem, calc(env(safe-area-inset-bottom) + 5.5rem));
  scroll-snap-align: start;
  scroll-snap-stop: always;
  text-align: center;
}

.slide-inner {
  max-width: 52rem;
  width: 100%;
}

h1,
h2 {
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.15;
  text-wrap: balance;
}

h1 {
  font-size: clamp(1.7rem, 4.6vw, 3.35rem);
  text-transform: uppercase;
}

h2 {
  font-size: clamp(1.55rem, 3.8vw, 2.75rem);
}

.line {
  display: block;
}

.accent {
  color: var(--accent);
}

.kicker {
  margin-top: 0.85rem;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 600;
  letter-spacing: 0.18em;
}

.sub {
  margin-top: 0.7rem;
  color: var(--icon);
  font-size: clamp(1rem, 2.1vw, 1.35rem);
  font-weight: 500;
  line-height: 1.45;
}

.sub.accent,
.kicker.accent {
  color: var(--accent);
}

.expertise {
  margin-top: 1.4rem;
  list-style: none;
  display: grid;
  gap: 0.55rem;
  justify-items: center;
  font-size: clamp(1rem, 2.2vw, 1.4rem);
  font-weight: 500;
  line-height: 1.4;
}

.expertise li {
  position: relative;
  padding-left: 1.1em;
}

.expertise li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--icon);
}

.reveal {
  opacity: 0;
  transform: translateY(1.35rem);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(var(--d, 0) * 95ms);
}

.slide.is-visible .reveal {
  opacity: 1;
  transform: none;
}

.contacts {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 0.85rem;
  padding: 0 1.25rem max(1.6rem, env(safe-area-inset-bottom));
  animation: chrome-in 0.8s ease 0.15s both;
}

.contacts[hidden] {
  display: none;
}

.contact {
  width: 3rem;
  height: 3rem;
  min-width: 48px;
  min-height: 48px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--icon);
  text-decoration: none;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  box-shadow:
    0 0.5rem 1.75rem rgba(0, 0, 0, 0.38),
    0 0 0 1px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: background 0.2s ease, transform 0.2s ease;
}

.contact svg {
  width: 1.45rem;
  height: 1.45rem;
  fill: currentColor;
}

.contact:hover,
.contact:focus-visible {
  background: rgba(255, 255, 255, 0.16);
  outline: 2px solid rgba(255, 255, 255, 0.55);
  outline-offset: 3px;
  transform: translateY(-2px);
}

@keyframes chrome-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 640px) {
  .logo {
    max-width: min(6.5rem, 34vw);
    max-height: 10vh;
    border-radius: 0.55rem;
  }

  h1 {
    font-size: clamp(1.45rem, 7.2vw, 2.1rem);
  }

  .expertise {
    justify-items: start;
    text-align: left;
    max-width: 22rem;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-height: 700px) {
  .slide {
    padding-top: max(5rem, calc(env(safe-area-inset-top) + 4rem));
    padding-bottom: max(5rem, calc(env(safe-area-inset-bottom) + 4.5rem));
  }
}

@media (max-height: 500px) and (orientation: landscape) {
  .logo {
    max-width: min(6rem, 22vw);
    max-height: 18vh;
  }

  .slide {
    padding-top: max(4.5rem, env(safe-area-inset-top));
    padding-bottom: max(4.5rem, env(safe-area-inset-bottom));
  }

  .contacts {
    padding-bottom: max(0.9rem, env(safe-area-inset-bottom));
  }
}

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

  .reveal,
  .brand,
  .contacts,
  .contact {
    animation: none;
    transition: none;
    opacity: 1;
    transform: none;
  }
}
