/* ============================================================
   FLIT — coming soon
   Brand gradient: #003973 -> #E5E5BE   |   Type: Archivo (one family)
   ============================================================ */

:root {
  --blue:        #003973;
  --blue-deep:   #00264d;
  --sand:        #e5e5be;
  --sand-soft:   #f4f4de;
  --accent:      #8cc0f0;
  --ink:         #f6f6ea;
  --radius:      30px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  /* overscan: the fixed background bleeds past the viewport to fill the iOS
     bottom nav zone. (The TOP status bar can't be covered by a fixed element —
     Safari clamps it there — so a big top bleed doesn't help; 80 is plenty.) */
  --bleed-top: 80px;
  --bleed-bottom: 80px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
/* neutral, near-black fallback. Transparent body lets Safari tint its
   status-bar / bottom-bar from the video instead of a flat blue fill. */
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100%;
}
html { scroll-behavior: smooth; background: #0d1418; }
body {
  font-family: "Archivo", system-ui, sans-serif;
  color: var(--ink);
  background: transparent;
  position: relative;
}
.svg-defs { position: absolute; width: 0; height: 0; pointer-events: none; }

/* ---------- background video: fixed container, OVERSCANNED past the screen ----------
   The container is forced larger than the viewport (negative offsets + extra px)
   so the video bleeds under the status bar / nav bar. env() adds the real insets
   in standalone mode; the +110px is the hard fallback for regular Safari where
   env(safe-area-inset-*) reports 0. */
.backdrop {
  position: fixed;
  top: calc(-1 * env(safe-area-inset-top, 0px) - 110px);
  left: calc(-1 * env(safe-area-inset-left, 0px));
  width: calc(100vw + env(safe-area-inset-left, 0px) + env(safe-area-inset-right, 0px));
  height: calc(100dvh + env(safe-area-inset-top, 0px) + env(safe-area-inset-bottom, 0px) + 220px);
  z-index: -1;
  overflow: hidden;
  background: #0d1418;
}
.bg-video {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
/* portrait phones: the landscape clip crops the sides — shift to keep the hiker centered */
@media (max-width: 600px) {
  .bg-video { object-position: 27% center; }
}
/* the refracted copy: same frame, warped + frosted, revealed only inside the card */
.bg-video--glass {
  filter: brightness(1.05) saturate(1.45) blur(1.5px) url(#liquid-glass);
  /* JS clips this to the card rectangle every frame */
  clip-path: inset(50% 50% 50% 50% round var(--radius));
  will-change: clip-path;
}
/* neutral legibility vignette — fills the fixed container */
.bg-vignette {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(180deg,
    rgba(0,0,0,0.42) 0%, rgba(0,0,0,0.06) 22%,
    rgba(0,0,0,0.04) 60%, rgba(0,0,0,0.40) 100%);
  pointer-events: none;
}

/* ---------- header / logo ---------- */
.site-head {
  position: absolute;
  top: 0; left: 0; right: 0;
  padding: calc(env(safe-area-inset-top, 0px) + 2rem) 1.5rem 0;
  text-align: center;
  z-index: 5;
}
.brand {
  font-weight: 800;
  font-size: clamp(1.25rem, 2.1vw, 1.6rem);
  letter-spacing: 0.5em;
  padding-left: 0.5em;
  color: var(--sand-soft);
  text-shadow: 0 2px 26px rgba(0, 0, 0, 0.5);
}

/* ---------- hero (screen 1) ---------- */
.hero {
  min-height: 100vh;                  /* fallback */
  min-height: -webkit-fill-available; /* old iOS Safari */
  min-height: 100dvh;                 /* tracks the dynamic toolbar */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 1.5rem 4rem;
  position: relative;
}
.hero__title {
  font-weight: 900;
  line-height: 1;
  /* sized by viewport width so the whole phrase stays on one line */
  font-size: clamp(1.35rem, 6.3vw, 4.4rem);
  letter-spacing: -0.01em;
  text-transform: uppercase;
  white-space: nowrap;
}
.hero__title .line { display: block; }

/* breathing gradient text — per line so an animated child layer keeps its fill */
.hero__title .line,
.hero__soon {
  /* brand gradient #003973 (deep blue, edges) -> #E5E5BE (sand, centre).
     The light sand sits in the middle — over the hiker — and the breathing
     animation makes it drift, so the highlight follows the subject. */
  background: linear-gradient(105deg,
    #003973 0%, #2f6cab 22%, #E5E5BE 46%,
    #f4f4de 52%, #E5E5BE 58%, #2f6cab 78%, #003973 100%);
  background-size: 220% 220%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
  animation: breathe 9s ease-in-out infinite;
  /* dark halo so the light (sand) parts still lift off the bright sky */
  filter: drop-shadow(0 3px 18px rgba(0, 18, 42, 0.6));
}
.hero__title .line--dim { animation-delay: -2.2s; }
.hero__soon {
  font-weight: 700;
  font-size: clamp(0.9rem, 2.4vw, 1.25rem);
  letter-spacing: 0.62em;
  padding-left: 0.62em;
  margin-top: 1.1rem;
  animation-delay: -3s;
}
@keyframes breathe {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* scroll cue */
.scroll-cue {
  position: absolute;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 1.6rem);
  width: 26px; height: 42px;
  border: 2px solid rgba(246, 246, 234, 0.55);
  border-radius: 14px;
  display: flex; justify-content: center;
}
.scroll-cue__dot {
  width: 4px; height: 8px; margin-top: 7px;
  border-radius: 2px;
  background: var(--sand-soft);
  animation: scrolldot 1.8s var(--ease) infinite;
}
@keyframes scrolldot { 0%{opacity:0;transform:translateY(-3px)} 40%{opacity:1} 80%{opacity:0;transform:translateY(10px)} 100%{opacity:0} }

/* ---------- contact section (screen 2) ---------- */
.contact-wrap {
  min-height: 100vh;                  /* fallback */
  min-height: -webkit-fill-available; /* old iOS Safari */
  min-height: 100dvh;                 /* tracks the dynamic toolbar */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.4rem;
  padding: 6rem 1.5rem calc(env(safe-area-inset-bottom, 0px) + 3rem);
}

/* ============================================================
   LIQUID GLASS
   The refraction itself is the #glassVideo layer (clipped to this
   card by JS). These layers add the material: tint, moving sheen,
   bright specular rim, depth shadow.
   ============================================================ */
/* clean dark frosted card — solid enough for input contrast, no decorative
   rim layers (those caused the bright corner "ears" on iOS) */
.contact.glass {
  position: relative;
  width: 100%;
  max-width: 540px;
  border-radius: 24px;
  background: rgba(10, 15, 24, 0.72);
  backdrop-filter: blur(20px) saturate(130%);
  -webkit-backdrop-filter: blur(20px) saturate(130%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  /* force the card onto its own compositing layer so Safari clips the
     backdrop-filter to the rounded corners cleanly (solid mask = no fade) */
  -webkit-mask-image: -webkit-radial-gradient(white, white);
  isolation: isolate;
}
/* decorative liquid-glass layers retired — they produced the corner artifacts */
.glass__tint,
.glass__shine { display: none; }
.bg-video--glass { display: none; }

.glass__body { position: relative; z-index: 3; padding: 32px 24px; }

/* ---------- contact copy ---------- */
.contact__title {
  font-weight: 800;
  font-size: clamp(1.5rem, 4.6vw, 2.3rem);
  line-height: 1.02;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  color: var(--sand-soft);
  text-shadow: 0 3px 22px rgba(0, 0, 0, 0.5);
  margin-bottom: 0.55rem;
}
.contact__lead {
  font-weight: 500;
  font-size: clamp(0.78rem, 1.9vw, 0.92rem);
  line-height: 1.4;
  letter-spacing: 0.03em;
  color: rgba(246, 246, 234, 0.82);
  margin-bottom: 1.5rem;
  max-width: 30rem;
}

/* ---------- form ---------- */
.form { display: flex; flex-direction: column; gap: 14px; }
.form__row { display: flex; gap: 14px; }
.form__row .form__input { flex: 1; min-width: 0; }
.form__input {
  width: 100%;
  box-sizing: border-box;
  padding: 14px 16px;
  font-family: "Archivo", sans-serif;
  font-weight: 500;
  /* 16px min: stops iOS Safari from auto-zooming the page on focus */
  font-size: 16px;
  line-height: 1.2;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  /* reset iOS Safari's default inner shadow / inset border on inputs */
  -webkit-appearance: none;
  appearance: none;
  box-shadow: none;
  transition: border-color 0.25s, background 0.25s;
}
.form__input::placeholder { color: rgba(255, 255, 255, 0.5); font-weight: 400; }
.form__input:focus {
  outline: none;
  border-color: rgba(140, 192, 240, 0.9);
  background: rgba(255, 255, 255, 0.12);
}
.form__textarea { resize: vertical; min-height: 56px; }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

.form__submit {
  width: 100%;
  box-sizing: border-box;
  margin-top: 4px;
  padding: 16px;
  font-family: "Archivo", sans-serif;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #0d1418;
  background: #ffffff;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  box-shadow: none;
  transition: opacity 0.2s, transform 0.15s;
}
.form__submit:hover { opacity: 0.92; transform: translateY(-1px); }
.form__submit:active { transform: translateY(0); }
.form__submit:disabled { opacity: 0.6; cursor: progress; }

.form__status { min-height: 1.1rem; font-size: 0.85rem; text-align: center; color: rgba(246, 246, 234, 0.75); transition: color 0.2s; }
.form__status.is-ok { color: #b7e3b0; }
.form__status.is-error { color: #f0b0b0; }

/* ---------- footer ---------- */
.site-foot {
  display: flex; flex-direction: column; align-items: center; gap: 0.45rem;
  text-align: center; font-size: 0.82rem; color: rgba(246, 246, 234, 0.72);
}
.site-foot a { color: rgba(246, 246, 234, 0.9); text-decoration: none; transition: color 0.2s; }
.site-foot a:hover { color: #fff; }
.foot__mail { font-weight: 600; font-size: 0.98rem; letter-spacing: 0.03em; }
.foot__by a { border-bottom: 1px solid rgba(246, 246, 234, 0.34); }
.foot__rights { font-size: 0.75rem; opacity: 0.72; }

/* ---------- responsive ---------- */
@media (max-width: 540px) {
  .form__row { flex-direction: column; }
  .glass__body { padding: 1.8rem 1.4rem 1.7rem; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .hero__title .line, .hero__soon, .glass__shine, .glass__shine::after, .scroll-cue__dot { animation: none !important; }
  .hero__title .line, .hero__soon { background-position: 50% 50%; }
}
