/* ============================================================
   FREMEN — fmen.ai contact page
   Brand: dark navy #1a1a33 · cyan #00d4ff · Audiowide + Inter
   No JS required. CSS-only motion. Responsive to mobile.
   ============================================================ */

:root {
  --bg:        #1a1a33;
  --bg-deep:   #111124;
  --cyan:      #00d4ff;
  --cyan-soft: #6fe6ff;
  --ink:       #eef2fb;
  --muted:     #98a0c0;
  --muted-dim: #6f769a;
  --chip:      #f3f5fb;
  --line:      rgba(143, 160, 214, 0.16);
  --line-lit:  rgba(0, 212, 255, 0.55);
  --maxw:      1180px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  min-height: 100svh;
  position: relative;
  overflow-x: hidden;
}

/* ---------- Ambient background layers ---------- */
.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

/* deep vignette + tonal floor */
.bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 90% at 78% 62%, rgba(0, 212, 255, 0.12) 0%, rgba(0, 212, 255, 0.04) 28%, transparent 56%),
    radial-gradient(140% 120% at 50% 120%, rgba(0,0,0,0.55) 0%, transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
}

/* faint hex/grid texture for techy depth */
.bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(143,160,214,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(143,160,214,0.05) 1px, transparent 1px);
  background-size: 64px 64px, 64px 64px;
  mask-image: radial-gradient(120% 100% at 30% 30%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(120% 100% at 30% 30%, #000 0%, transparent 70%);
  opacity: 0.5;
}

/* faint drone, upper-left negative space */
.drone {
  position: absolute;
  top: 6%;
  left: -4%;
  width: clamp(220px, 26vw, 440px);
  opacity: 0.14;
  filter: saturate(0.5) brightness(1.1);
  transform: rotate(-4deg);
  animation: drift 22s ease-in-out infinite alternate;
}

/* ---------- Hero seer figure ---------- */
.seer {
  position: fixed;
  right: clamp(-90px, -2vw, 40px);
  bottom: 0;
  height: 98vh;
  height: 98svh;
  max-height: 980px;
  width: auto;
  z-index: 1;
  pointer-events: none;
  filter: drop-shadow(0 18px 60px rgba(0,0,0,0.55));
  animation: float 9s ease-in-out infinite alternate;
}

/* cyan aura behind the figure */
.seer-glow {
  position: fixed;
  right: clamp(2%, 6vw, 12%);
  bottom: 4%;
  width: clamp(360px, 42vw, 680px);
  height: clamp(360px, 42vw, 680px);
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(circle, rgba(0,212,255,0.30) 0%, rgba(0,212,255,0.10) 34%, transparent 66%);
  filter: blur(8px);
  animation: pulse 6s ease-in-out infinite alternate;
}

/* legibility scrim so text stays crisp over the figure */
.scrim {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg,
      var(--bg) 0%,
      rgba(26,26,51,0.92) 30%,
      rgba(26,26,51,0.55) 50%,
      rgba(26,26,51,0.10) 70%,
      transparent 86%);
}

/* ---------- Page content ---------- */
.page {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  min-height: 100svh;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(28px, 5vw, 64px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(28px, 5vh, 56px);
}

.col {
  max-width: 560px;
  display: flex;
  flex-direction: column;
}

/* Entrance: transform-only slide. Opacity stays 1 at all times so content is
   ALWAYS visible even if the animation is paused/throttled (e.g. background tab). */
.reveal { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .reveal { animation: rise 0.75s cubic-bezier(.2,.7,.2,1) both; }
  .d1 { animation-delay: 0.04s; }
  .d2 { animation-delay: 0.14s; }
  .d3 { animation-delay: 0.26s; }
  .d4 { animation-delay: 0.38s; }
  .d5 { animation-delay: 0.52s; }
}

/* ---------- Brand mark ---------- */
.brand { display: flex; align-items: center; }
.logo-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 84px;
  border-radius: 20px;
  background: var(--chip);
  box-shadow:
    0 10px 30px rgba(0,0,0,0.35),
    inset 0 0 0 1px rgba(255,255,255,0.6);
  padding: 12px;
}
.logo-chip img { width: 100%; height: 100%; object-fit: contain; display: block; }

/* ---------- Wordmark + copy ---------- */
.wordmark {
  font-family: "Audiowide", "Inter", sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: clamp(2.6rem, 8vw, 5.2rem);
  line-height: 0.98;
  margin: clamp(20px, 3vh, 34px) 0 0;
  color: var(--ink);
}
.wordmark .dot { color: var(--cyan); }

.tagline {
  font-family: "Audiowide", "Inter", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.30em;
  font-size: clamp(0.72rem, 1.5vw, 0.95rem);
  color: var(--cyan);
  margin: 18px 0 0;
  display: flex;
  align-items: center;
  gap: 14px;
}
.tagline::before {
  content: "";
  width: clamp(24px, 5vw, 46px);
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), transparent);
  flex: 0 0 auto;
}

.lede {
  font-size: clamp(1.05rem, 2.1vw, 1.4rem);
  font-weight: 300;
  color: var(--muted);
  margin: clamp(18px, 2.6vh, 26px) 0 0;
  max-width: 30ch;
  text-wrap: pretty;
}
.lede strong { color: var(--ink); font-weight: 600; }

/* ---------- What it does: odds headline + explanation ---------- */
.odds {
  margin: clamp(18px, 2.6vh, 26px) 0 0;
  max-width: 40ch;
}
.odds-head {
  font-size: clamp(1.2rem, 2.5vw, 1.65rem);
  font-weight: 600;
  line-height: 1.25;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}
.odds-sub {
  font-size: clamp(0.98rem, 1.9vw, 1.18rem);
  font-weight: 300;
  line-height: 1.5;
  color: var(--muted);
  margin: clamp(10px, 1.4vh, 14px) 0 0;
  text-wrap: pretty;
}
/* "Fremen" — a bit outlined so it carries the brand inside the sentence */
.brandword {
  font-weight: 600;
  color: var(--ink);
  -webkit-text-stroke: 0.7px var(--cyan);
  text-stroke: 0.7px var(--cyan);
  text-shadow: 0 0 10px rgba(0, 212, 255, 0.22);
}

/* ---------- Contacts ---------- */
.contacts {
  margin-top: clamp(30px, 4.5vh, 48px);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.eyebrow {
  font-family: "Audiowide", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.26em;
  font-size: 0.66rem;
  color: var(--muted-dim);
  margin-bottom: 4px;
}

.contact {
  display: flex;
  align-items: center;
  gap: 18px;
  text-decoration: none;
  color: var(--ink);
  background: rgba(143,160,214,0.05);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 20px;
  min-height: 64px;
  transition: border-color .22s ease, background .22s ease, transform .22s ease, box-shadow .22s ease;
}
.contact:hover,
.contact:focus-visible {
  border-color: var(--line-lit);
  background: rgba(0,212,255,0.07);
  transform: translateX(4px);
  box-shadow: 0 8px 30px rgba(0,212,255,0.12);
  outline: none;
}
.contact:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

.c-ico {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(0,212,255,0.10);
  border: 1px solid rgba(0,212,255,0.22);
  color: var(--cyan);
}
.c-ico svg { width: 20px; height: 20px; display: block; }

.c-body { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.c-label {
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted-dim);
}
.c-value {
  font-size: clamp(1rem, 2vw, 1.12rem);
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.contact:hover .c-value { color: var(--cyan-soft); }
.c-arrow {
  margin-left: auto;
  flex: 0 0 auto;
  color: var(--muted-dim);
  transition: color .22s ease, transform .22s ease;
}
.contact:hover .c-arrow { color: var(--cyan); transform: translateX(3px); }

/* ---------- Footer ---------- */
.foot {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.8rem;
  color: var(--muted-dim);
  letter-spacing: 0.04em;
}
.foot .sep { width: 5px; height: 5px; border-radius: 50%; background: var(--muted-dim); opacity: 0.6; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 880px) {
  .seer {
    height: auto;
    width: clamp(380px, 96vw, 560px);
    right: -16%;
    bottom: 0;
    opacity: 0.55;
  }
  .seer-glow { right: -8%; bottom: 8%; opacity: 0.8; }
  .scrim {
    background: linear-gradient(180deg,
        var(--bg) 0%,
        rgba(26,26,51,0.86) 38%,
        rgba(26,26,51,0.62) 64%,
        rgba(26,26,51,0.30) 100%);
  }
  .drone { opacity: 0.08; }
  .col { max-width: 100%; }
}

@media (max-width: 520px) {
  .seer { right: -28%; opacity: 0.42; }
  .logo-chip { width: 70px; height: 70px; border-radius: 16px; }
  .contact { padding: 14px 16px; gap: 14px; }
  .c-value { white-space: normal; }
  .wordmark { letter-spacing: 0.10em; }
}

/* short viewports — compress vertical rhythm so the page stays single-screen */
@media (max-height: 780px) {
  .wordmark { font-size: clamp(2.1rem, 7.2vh, 3.7rem); margin-top: clamp(12px, 2vh, 22px); }
  .lede { font-size: clamp(1rem, 2.4vh, 1.2rem); margin-top: clamp(12px, 1.8vh, 18px); }
  .odds { margin-top: clamp(12px, 1.8vh, 18px); }
  .odds-head { font-size: clamp(1.05rem, 2.8vh, 1.4rem); }
  .odds-sub { font-size: clamp(0.95rem, 2.2vh, 1.1rem); margin-top: clamp(8px, 1.2vh, 12px); }
  .tagline { margin-top: 14px; }
  .contacts { margin-top: clamp(18px, 3vh, 30px); }
  .page { gap: clamp(16px, 3vh, 32px); }
}

@media (max-height: 620px) and (min-width: 881px) {
  .seer { height: 96vh; }
  .logo-chip { width: 64px; height: 64px; }
}

/* ---------- Motion ---------- */
@keyframes rise { from { transform: translateY(16px); } to { transform: translateY(0); } }
@keyframes float { from { transform: translateY(0); } to { transform: translateY(-16px); } }
@keyframes pulse { from { opacity: 0.7; transform: scale(0.96); } to { opacity: 1; transform: scale(1.04); } }
@keyframes drift {
  from { transform: rotate(-4deg) translateY(0); }
  to   { transform: rotate(-1deg) translateY(18px); }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; animation: none; }
  .seer, .seer-glow, .drone { animation: none; }
}
