@font-face {
  font-family: Inter;
  src: url("./assets/inter.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  font-family: Inter, "Inter Fallback", system-ui, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: #020609;
  color: #fff;
  --edge: clamp(24px, 3.35vw, 48px);
  --bottom-space: clamp(100px, 12.5vh, 128px);
}

* { box-sizing: border-box; }

html { background: #020609; scroll-behavior: smooth; }

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: #020609;
  font-family: Inter, "Inter Fallback", system-ui, sans-serif;
}

button, input, textarea { font: inherit; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }

.page-veil {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  background: #000;
  animation: page-veil 600ms cubic-bezier(.4, 0, .2, 1) forwards;
}

@keyframes page-veil { to { opacity: 0; visibility: hidden; } }

.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 88px;
  padding: 20px var(--edge) 40px;
  color: #fff;
  background: linear-gradient(180deg, rgba(0, 0, 0, .76), rgba(0, 0, 0, .26) 56%, transparent);
  font-size: 12px;
  font-weight: 500;
}

.brand-mark { display: flex; align-items: center; width: clamp(84px, 7.2vw, 104px); height: auto; }
.brand-mark img { display: block; width: 100%; height: auto; object-fit: contain; }

.top-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  line-height: 1;
}

.top-nav a, .footer a { transition: opacity 180ms ease; }
.top-nav a:hover, .footer a:hover { opacity: .62; }
.email-link { font-weight: 500; }

.language-switch { display: flex; align-items: center; gap: 5px; color: rgba(255,255,255,.5); }
.language-switch button {
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(255,255,255,.48);
  cursor: pointer;
  transition: color 180ms ease;
}
.language-switch button:hover, .language-switch button.is-active { color: #fff; }

main { position: relative; }

.experience {
  position: relative;
  height: 685vh;
  margin: 0;
}

.scene {
  position: sticky;
  top: 0;
  height: 100svh;
  min-height: 520px;
  overflow: hidden;
  isolation: isolate;
  background: #020609;
  color: #fff;
}

.descent-track {
  position: absolute;
  inset: 0 0 auto;
  height: 260svh;
  overflow: hidden;
  transform: translate3d(0, 0, 0);
  will-change: transform;
}
.descent-image, .cupola-image { display: block; width: 100%; height: 100%; object-fit: cover; }

.stars {
  position: absolute;
  inset: 0 0 auto;
  height: 100svh;
  opacity: .22;
  background-image:
    radial-gradient(1px 1px at 7% 10%, #fff 99%, transparent),
    radial-gradient(1px 1px at 16% 30%, #fff 99%, transparent),
    radial-gradient(1px 1px at 28% 7%, #fff 99%, transparent),
    radial-gradient(1px 1px at 39% 20%, #fff 99%, transparent),
    radial-gradient(1px 1px at 53% 11%, #fff 99%, transparent),
    radial-gradient(1px 1px at 71% 26%, #fff 99%, transparent),
    radial-gradient(1px 1px at 86% 12%, #fff 99%, transparent),
    radial-gradient(1px 1px at 93% 37%, #fff 99%, transparent);
  background-size: 100% 100%;
  pointer-events: none;
}

.cupola-layer {
  position: absolute;
  inset: 0;
  transform: scale(1);
  transform-origin: center center;
  will-change: transform, opacity;
}

.global-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.24), transparent 30%, rgba(0,0,0,.04) 60%, rgba(0,0,0,.22));
  pointer-events: none;
}

.bottom-shade {
  position: absolute;
  inset: auto 0 0;
  height: 66.7%;
  background: linear-gradient(0deg, rgba(0,0,0,.76), rgba(0,0,0,.30) 50%, transparent);
  pointer-events: none;
}

.brand-word {
  position: absolute;
  z-index: 2;
  top: 53.2%;
  left: 49.4%;
  display: block;
  width: clamp(136px, 12vw, 176px);
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: contain;
}

.copy-layer {
  position: absolute;
  z-index: 3;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(0, 24px, 0);
}

.hero-copy, .step-copy {
  left: var(--edge);
  bottom: var(--bottom-space);
  width: min(384px, calc(100vw - var(--edge) * 2));
}

.hero-copy { opacity: 1; transform: none; }

.hero-copy h1, .step-copy h2, .contact h2 {
  margin: 0;
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -.05em;
  line-height: 1;
}

@media (min-width: 640px) {
  .hero-copy h1, .step-copy h2, .contact h2 { font-size: 36px; }
}

.hero-copy h1 { max-width: 384px; }
.small-rule { display: block; width: 16px; height: 1px; margin-top: 32px; background: rgba(255,255,255,.8); }
.hero-copy p { margin: 24px 0 0; color: rgba(255,255,255,.8); font-size: 12px; font-style: italic; line-height: 16px; }

.eyebrow {
  color: rgba(255,255,255,.6);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .2em;
  line-height: 1.3;
  text-transform: uppercase;
}

.step-copy h2 { margin-top: 16px; }
.step-copy p { margin: 24px 0 0; color: rgba(255,255,255,.8); font-size: 14px; line-height: 20px; }
.typed { white-space: pre-wrap; }
.typed-rest { opacity: 0; }
.caret { display: inline-block; width: 0; height: .85em; margin-right: -2px; border-left: 2px solid rgba(255,255,255,.88); vertical-align: -.08em; animation: caret 900ms step-end infinite; }
@keyframes caret { 50% { opacity: 0; } }

.services {
  right: var(--edge);
  bottom: var(--bottom-space);
  left: var(--edge);
}
.services-inner { max-width: 768px; }
.service-list { padding: 0; margin: 22px 0 0; list-style: none; }
.service-list li {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 8px 32px;
  align-items: start;
  padding: 16px 0;
  border-top: 1px solid rgba(255,255,255,.26);
}
.service-list h3 { margin: 0; font-size: 18px; font-weight: 500; letter-spacing: -.025em; line-height: 28px; }
.service-list p { margin: 0; color: rgba(255,255,255,.75); font-size: 14px; line-height: 20px; }

.contact {
  inset: 0;
  display: grid;
  place-items: center;
  padding: 80px var(--edge) 112px;
}
.contact-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .96fr);
  align-items: start;
  gap: clamp(32px, 4vw, 56px);
  width: min(1024px, 100%);
}
.contact h2 { max-width: 500px; }
.form-card {
  width: 100%;
  padding: 32px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px;
  background: rgba(7, 13, 17, .84);
  box-shadow: 0 28px 80px rgba(0,0,0,.36);
  backdrop-filter: blur(14px);
  transform: translate3d(0, 64px, 0) scale(.96);
  opacity: 0;
  will-change: transform, opacity;
}
.contact-intro { max-width: 360px; margin: 0 0 24px; color: rgba(255,255,255,.8); font-size: 14px; line-height: 20px; }
#contact-form { display: flex; flex-direction: column; gap: 8px; }
#contact-form input, #contact-form textarea {
  width: 100%;
  min-height: 44px;
  padding: 12px 0;
  resize: vertical;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,.18);
  border-radius: 0;
  outline: none;
  color: #fff;
  background: transparent;
  font-size: 14px;
  line-height: 20px;
  transition: border-color 180ms ease;
}
#contact-form input:focus, #contact-form textarea:focus { border-color: rgba(255,255,255,.68); }
#contact-form input::placeholder, #contact-form textarea::placeholder { color: rgba(255,255,255,.48); }
#contact-form textarea { min-height: 76px; }
.send-button, .quote-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 36px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  color: #07090b;
  background: #fff;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}
.send-button { margin-top: 16px; }
.send-button:hover, .quote-button:hover { transform: translateY(-1px); background: #dbe6ed; }
.form-feedback { min-height: 0; margin: 0; color: rgba(255,255,255,.7); font-size: 11px; line-height: 1.4; }

.scroll-hint {
  position: absolute;
  right: var(--edge);
  bottom: var(--bottom-space);
  display: flex;
  align-items: center;
  gap: 16px;
  color: rgba(255,255,255,.7);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  pointer-events: none;
}
.mouse { position: relative; display: flex; justify-content: center; width: 20px; height: 32px; padding-top: 7px; border: 1px solid rgba(255,255,255,.58); border-radius: 999px; }
.mouse i { display: block; width: 3px; height: 6px; border-radius: 4px; background: #fff; animation: scroll-hint 1.8s ease-in-out infinite; }
@keyframes scroll-hint { 0%,100% { opacity: 1; transform: translateY(0); } 60% { opacity: 0; transform: translateY(8px); } }

.altimeter {
  position: absolute;
  right: var(--edge);
  bottom: var(--bottom-space);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  opacity: 0;
  transform: translate3d(0, 12px, 0);
  color: rgba(255,255,255,.6);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .2em;
  text-align: right;
  text-transform: uppercase;
}
.altimeter strong { margin-top: 3px; color: #fff; font-size: 24px; font-weight: 520; letter-spacing: -.05em; line-height: 1.2; text-transform: none; }
.altimeter b { font-weight: inherit; }

.footer {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px 32px;
  height: 8rem;
  margin-top: -8rem;
  padding: 30px var(--edge) 20px;
  color: rgba(255,255,255,.7);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.copyright { text-align: right; }

.floating-actions {
  position: fixed;
  z-index: 60;
  right: 0;
  bottom: 24px;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  pointer-events: none;
}
.floating-actions > * { pointer-events: auto; }
.quote-button { min-width: 152px; min-height: 36px; padding: 0 20px; font-size: 12px; }
.whatsapp-button {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 50%;
  color: #fff;
  background: rgba(0,0,0,.22);
  transition: background-color 180ms ease, transform 180ms ease;
}
.whatsapp-button:hover { transform: translateY(-1px); background: rgba(255,255,255,.16); }
.whatsapp-button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.35; stroke-linecap: round; stroke-linejoin: round; }
.whatsapp-button svg path:nth-child(2) { fill: currentColor; stroke: none; }

@media (max-width: 760px) {
  :root { --edge: 24px; --bottom-space: 112px; }
  .topbar { min-height: 88px; padding-top: 20px; padding-bottom: 40px; }
  .top-nav { gap: 22px; }
  .scene { min-height: 620px; }
  .brand-word { width: 140px; }
  .hero-copy p { font-size: 12px; }
  .step-copy p { font-size: 14px; }
  .services { right: var(--edge); left: var(--edge); }
  .services-inner { max-width: none; }
  .service-list { margin-top: 18px; }
  .service-list li { grid-template-columns: 1fr; gap: 4px; padding: 16px 0; }
  .contact { padding: 110px var(--edge) 150px; }
  .contact-inner { display: flex; flex-direction: column; align-items: stretch; gap: 24px; width: 100%; }
  .contact h2 { max-width: 480px; }
  .form-card { padding: 28px 32px; }
  #contact-form { gap: 16px; }
  #contact-form input, #contact-form textarea { font-size: 14px; }
  .send-button { min-height: 36px; }
  .scroll-hint { display: none; }
  .altimeter { top: 80px; right: var(--edge); bottom: auto; }
  .footer { flex-wrap: wrap; align-content: flex-start; justify-content: flex-start; padding-top: 28px; font-size: 10px; }
  .footer-links { gap: 10px 18px; }
  .copyright { width: 100%; text-align: left; }
}

@media (max-width: 420px) {
  .top-nav { gap: 14px; }
  .contact { padding-right: 20px; padding-left: 20px; }
  .form-card { padding: 24px 22px; }
  .footer-links { gap: 9px 14px; }
  .footer { font-size: 9px; }
}

@media (max-width: 760px) {
  .hero-copy, .step-copy { width: calc(100vw - var(--edge) * 2); }
  .hero-copy h1, .step-copy h2, .contact h2 { max-width: none; }
}

@media (max-width: 639px) {
  .email-link { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
