/* ============================================================
   EMBIOTIC LIFESCIENCES LLP — Coming Soon
   Palette: Navy & Gold (Brand Identity Guidelines v1.1)
   Type: Poppins (brand typeface for all communications)
   ============================================================ */

:root {
  --navy:    #2A3165;
  --navy-dk: #1B2047;
  --ocean:   #0068AC;
  --gold:    #B28B44;
  --amber:   #F2BC55;
  --orange:  #E89530;
  --slate:   #58595B;

  --ink:       #EEF1FA;
  --ink-soft:  rgba(238, 241, 250, 0.72);
  --ink-faint: rgba(238, 241, 250, 0.5);

  --glass:      rgba(255, 255, 255, 0.05);
  --glass-line: rgba(242, 188, 85, 0.20);
  --radius: 20px;
  --maxw: 1120px;

  --grad-hero: radial-gradient(120% 120% at 22% 0%, #313a76 0%, #2A3165 44%, #171b3d 100%);
  --grad-shim: linear-gradient(100deg, var(--amber) 0%, var(--orange) 40%, var(--gold) 60%, var(--amber) 100%);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: "Poppins", system-ui, sans-serif;
  color: var(--ink);
  background: var(--navy);
  background-image: var(--grad-hero);
  background-attachment: fixed;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.hp { position: absolute; left: -9999px; opacity: 0; }

/* ---------- Background ---------- */
#bg {
  position: fixed; inset: 0; width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
}
.vignette {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(80% 60% at 50% 8%, transparent 40%, rgba(12, 15, 40, 0.5) 100%),
    radial-gradient(60% 40% at 50% 100%, rgba(12, 15, 40, 0.6), transparent 70%);
}

.wrap { position: relative; z-index: 2; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ============ PRELOADER (3s) ============ */
#preloader {
  position: fixed; inset: 0; z-index: 9999;
  display: grid; place-items: center;
  background: var(--grad-hero);
  animation: preHide 0.7s ease 3s forwards;
}
.pre-inner { display: flex; flex-direction: column; align-items: center; gap: 26px; padding: 24px; }
.pre-card {
  background: linear-gradient(180deg, #ffffff, #f6f8fc);
  border-radius: 24px; padding: 34px 46px;
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.6);
  animation: preLogoIn 1s cubic-bezier(.16,.84,.36,1) both;
}
.pre-logo { display: block; width: clamp(240px, 60vw, 400px); max-width: 82vw; height: auto; }
.pre-fallback { display: none; flex-direction: column; align-items: center; line-height: 1; }
.pre-card.pre-nologo .pre-fallback { display: flex; }
.pre-card.pre-nologo .pre-logo { display: none; }
.pf-main { font-family: "Poppins", sans-serif; font-weight: 700; font-size: clamp(40px, 9vw, 58px); color: var(--navy); }
.pf-sub { font-family: "Poppins", sans-serif; font-weight: 600; font-size: clamp(13px, 3vw, 19px); letter-spacing: .32em; color: var(--gold); padding-left: .32em; margin-top: 4px; }
.pre-bar {
  width: 190px; max-width: 60vw; height: 3px; border-radius: 3px;
  background: rgba(255, 255, 255, 0.14); overflow: hidden;
}
.pre-bar span {
  display: block; height: 100%; width: 0; border-radius: 3px;
  background: linear-gradient(90deg, var(--amber), var(--orange), var(--gold));
  animation: preBar 3s ease forwards;
}
@keyframes preLogoIn { from { opacity: 0; transform: scale(.92) translateY(10px); filter: blur(8px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes preBar { to { width: 100%; } }
@keyframes preHide { to { opacity: 0; visibility: hidden; } }

/* ============ HERO ============ */
.hero {
  min-height: 100svh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; padding: 72px 0 96px; position: relative;
}

.logo-card {
  position: relative;
  background: linear-gradient(180deg, #ffffff 0%, #f6f8fc 100%);
  border-radius: 26px;
  padding: 36px 52px 30px;
  box-shadow: 0 30px 70px -30px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.55) inset;
  margin-bottom: 40px;
  animation: logoIn 1.1s cubic-bezier(.16,.84,.36,1) both;
  will-change: transform;
}
.orbit-ring {
  position: absolute; inset: -16px;
  border-radius: 36px;
  border: 1px solid rgba(242, 188, 85, 0.35);
  animation: ringPulse 3.8s ease-in-out infinite;
  pointer-events: none;
}
.logo-icon { display: block; width: clamp(260px, 56vw, 440px); height: auto; max-width: 100%; margin: 0 auto; animation: floaty 6s ease-in-out infinite; }

/* Typographic fallback — shown only until the real logo image is added */
.wordmark-fallback { display: none; flex-direction: column; align-items: center; line-height: 1; }
body.no-logo .logo-icon { display: none; }
body.no-logo .wordmark-fallback { display: flex; }
.wm-main {
  font-family: "Poppins", sans-serif; font-weight: 700;
  font-size: clamp(40px, 7vw, 60px); color: var(--navy); letter-spacing: -0.01em;
}
.wm-sub {
  font-family: "Poppins", sans-serif; font-weight: 600;
  font-size: clamp(13px, 2.2vw, 19px); letter-spacing: 0.32em;
  color: var(--gold); padding-left: 0.32em; margin-top: 4px;
}
.wm-tag {
  font-style: italic; font-weight: 500; color: var(--gold);
  font-size: clamp(11px, 1.7vw, 14px); margin-top: 12px; max-width: 30ch;
}

.eyebrow {
  font-weight: 600; font-size: 12.5px; letter-spacing: 0.32em;
  text-transform: uppercase; color: var(--amber); margin-bottom: 18px;
  animation: fadeUp 0.9s 0.25s both;
}
.headline {
  font-weight: 700; font-size: clamp(34px, 7vw, 68px);
  line-height: 1.05; letter-spacing: -0.01em; color: #fff; margin-bottom: 22px;
  animation: fadeUp 0.9s 0.38s both;
}
.shimmer {
  background: var(--grad-shim); background-size: 220% auto;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: shimmer 5s linear infinite;
}
.lede {
  max-width: 600px; font-size: clamp(16px, 2.2vw, 19px);
  color: var(--ink-soft); margin-bottom: 36px; animation: fadeUp 0.9s 0.5s both;
}

/* Notify */
.notify {
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  width: 100%; max-width: 460px;
  animation: fadeUp 0.9s 0.62s both;
}
.notify-row {
  display: flex; gap: 10px; width: 100%;
  padding: 7px; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--glass-line);
  backdrop-filter: blur(8px);
}
.notify-row input[type="email"] {
  flex: 1; min-width: 0; background: transparent; border: 0; outline: none;
  color: #fff; font-size: 16px; padding: 12px 18px; font-family: inherit;
}
.notify-row input::placeholder { color: var(--ink-faint); }
.notify-row button {
  flex-shrink: 0; font-family: "Poppins", sans-serif; font-weight: 600; font-size: 15px;
  color: var(--navy-dk);
  background: linear-gradient(180deg, var(--amber), var(--orange));
  border: 0; border-radius: 999px; padding: 12px 26px; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.notify-row button:hover { transform: translateY(-1px); filter: brightness(1.05); box-shadow: 0 12px 26px -12px rgba(242,188,85,.8); }
.notify-row button:active { transform: translateY(0); }

/* reCAPTCHA widget */
.captcha { display: flex; justify-content: center; min-height: 78px; }
.contact-form .captcha { justify-content: flex-start; }

.form-status { font-size: 14px; min-height: 20px; margin-top: 14px; color: var(--ink-faint); }
.form-status.ok  { color: var(--amber); font-weight: 600; }
.form-status.err { color: #ffd7c2; }

/* Scroll cue */
.scroll-cue {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  width: 26px; height: 42px; border: 2px solid rgba(242,188,85,.4);
  border-radius: 14px; display: grid; place-items: start center; animation: fadeUp 1s 1s both;
}
.scroll-cue span { width: 4px; height: 8px; margin-top: 7px; border-radius: 2px; background: var(--amber); animation: cue 1.8s ease-in-out infinite; }

/* ============ PILLARS ============ */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 30px 0 60px; }
.values article {
  background: var(--glass); border: 1px solid var(--glass-line); border-radius: var(--radius);
  padding: 28px 24px; backdrop-filter: blur(6px);
  transition: transform .3s ease, border-color .3s ease, background .3s ease;
}
.values article:hover { transform: translateY(-6px); border-color: rgba(242,188,85,.42); background: rgba(255,255,255,.08); }
.values h3 { font-weight: 600; font-size: 19px; color: #fff; margin-bottom: 8px; }
.values h3::before {
  content: ""; display: block; width: 26px; height: 3px; border-radius: 2px;
  background: linear-gradient(90deg, var(--amber), var(--orange)); margin-bottom: 14px;
}
.values p { color: var(--ink-soft); font-size: 15px; }

/* ============ CONTACT ============ */
.connect { padding: 40px 0 80px; }
.connect-inner {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border: 1px solid var(--glass-line); border-radius: 28px; padding: 46px; backdrop-filter: blur(10px);
}
.connect-copy h2 { font-weight: 700; font-size: clamp(26px, 4vw, 38px); color: #fff; margin-bottom: 12px; }
.connect-copy > p { color: var(--ink-soft); margin-bottom: 28px; max-width: 40ch; }
.contact-list { list-style: none; display: grid; gap: 20px; }
.contact-list li { display: grid; gap: 3px; }
.ci-label { font-weight: 600; font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--amber); }
.contact-list a { color: var(--ink); text-decoration: none; font-size: 16px; transition: color .2s; }
.contact-list a:hover { color: var(--amber); }
.contact-list address { font-style: normal; color: var(--ink-soft); font-size: 15px; }

.contact-form { display: grid; gap: 16px; }
.field { display: grid; gap: 7px; }
.field label { font-weight: 500; font-size: 13px; color: var(--ink-soft); }
.field input, .field textarea {
  width: 100%; background: rgba(19, 23, 55, 0.55); border: 1px solid var(--glass-line);
  border-radius: 12px; padding: 13px 15px; color: #fff; font-family: inherit; font-size: 15.5px;
  outline: none; transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-faint); }
.field input:focus, .field textarea:focus {
  border-color: var(--amber); box-shadow: 0 0 0 3px rgba(242, 188, 85, 0.22); background: rgba(19, 23, 55, 0.75);
}
.field textarea { resize: vertical; min-height: 96px; }
.contact-form > button {
  justify-self: start; font-family: "Poppins", sans-serif; font-weight: 600; font-size: 15px;
  color: var(--navy-dk); background: linear-gradient(180deg, var(--amber), var(--orange));
  border: 0; border-radius: 12px; padding: 13px 30px; cursor: pointer;
  transition: transform .2s ease, filter .2s ease, box-shadow .2s ease;
}
.contact-form > button:hover { transform: translateY(-1px); filter: brightness(1.05); box-shadow: 0 12px 26px -12px rgba(242,188,85,.8); }
.contact-form > button:disabled { opacity: .6; cursor: wait; }

/* ============ FOOTER ============ */
.foot { text-align: center; padding: 30px 0 46px; border-top: 1px solid var(--glass-line); }
.foot-tag { font-style: italic; font-weight: 500; font-size: 15px; color: var(--amber); margin-bottom: 8px; }
.foot-legal { color: var(--ink-faint); font-size: 13px; }

/* ============ ANIMATIONS ============ */
@keyframes logoIn { from { opacity: 0; transform: translateY(24px) scale(.94); filter: blur(8px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes shimmer { to { background-position: 220% center; } }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes ringPulse { 0%,100% { transform: scale(1); opacity: .5; } 50% { transform: scale(1.03); opacity: .9; } }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 80%,100% { opacity: 0; transform: translateY(12px); } }

[data-reveal] { opacity: 0; transform: translateY(30px); transition: opacity .8s ease, transform .8s ease; }
[data-reveal].in { opacity: 1; transform: none; }

/* ============ RESPONSIVE ============ */
@media (max-width: 860px) {
  .values { grid-template-columns: 1fr; }
  .connect-inner { grid-template-columns: 1fr; padding: 32px; }
}
@media (max-width: 520px) {
  .wrap { padding: 0 18px; }
  .logo-card { padding: 26px 26px 22px; border-radius: 22px; }
  .logo-icon { width: clamp(220px, 74vw, 320px); }
  .notify-row { flex-direction: column; border-radius: 18px; background: transparent; border: 0; padding: 0; gap: 12px; }
  .notify-row input[type="email"] { background: rgba(19,23,55,.55); border: 1px solid var(--glass-line); border-radius: 12px; }
  .notify-row button { border-radius: 12px; padding: 14px; }
  .captcha { transform: scale(.92); transform-origin: center; }
  .contact-form .captcha { transform-origin: left; }
  .connect-inner { padding: 26px 20px; }
}

/* ============ REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .shimmer { -webkit-text-fill-color: var(--amber); color: var(--amber); }
}
