/* Panacea Ventures — landing */

:root {
  --light-taupe: #DDD7CE;
  --dark-green:  #1A1E1C;
  --foundation:  #8BA590;
  --ink:         #191d1b;
}

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

html, body {
  height: 100%;
  background: var(--light-taupe);
  color: var(--dark-green);
  font-family: 'Space Grotesk', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }

.page {
  min-height: 100svh;
  padding: clamp(20px, 3vw, 40px) clamp(20px, 4vw, 56px);
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  gap: clamp(16px, 2.5vw, 32px);
}

/* -------- Top bar -------- */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}
.wordmark img {
  height: 16px;
  width: auto;
  display: block;
}
@media (max-width: 720px) {
  .wordmark img { height: 14px; }
}

.enquire {
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--dark-green);
  transition: border-color 220ms ease, color 220ms ease;
}
.enquire:hover,
.enquire:focus-visible {
  color: var(--foundation);
  border-bottom-color: var(--foundation);
  outline: none;
}

/* -------- Stage / mark -------- */
.stage {
  display: grid;
  place-items: center;
  padding: clamp(8px, 2vw, 32px) 0;
}

.logomark {
  width: min(38vmin, 380px);
  height: auto;
  display: block;
  overflow: visible;
}

.logomark path {
  fill: var(--ink);
  fill-opacity: 0;
  stroke: var(--ink);
  stroke-width: 1.4;
  stroke-dasharray: 2500;
  stroke-dashoffset: 2500;
  animation: draw-in 2000ms cubic-bezier(.6,.05,.2,1) forwards;
  will-change: stroke-dashoffset, fill-opacity;
  transform-box: fill-box;
  transform-origin: center;
}

/* Per-lobe hover pulse only after draw-in completes (JS adds .is-loaded) */
.logomark.is-loaded path {
  cursor: default;
}
.logomark path:nth-child(1) { animation-delay: 120ms; }
.logomark path:nth-child(2) { animation-delay: 260ms; }
.logomark path:nth-child(3) { animation-delay: 400ms; }
.logomark path:nth-child(4) { animation-delay: 540ms; }

@keyframes draw-in {
  0%   { stroke-dashoffset: 2500; fill-opacity: 0; }
  65%  { stroke-dashoffset: 0;    fill-opacity: 0; }
  100% { stroke-dashoffset: 0;    fill-opacity: 1; }
}

/* -------- Bottom band -------- */
.band {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 1fr);
  gap: clamp(16px, 4vw, 64px);
  align-items: end;
}

.tagline {
  font-weight: 400;
  font-size: clamp(14px, 1.7vw, 22px);
  line-height: 1.28;
  letter-spacing: -0.005em;
  max-width: 62ch;
  text-wrap: balance;
  opacity: 0;
  animation: fade-up 900ms 900ms cubic-bezier(.2,.8,.2,1) forwards;
}

.sectors {
  justify-self: end;
  text-align: right;
  font-weight: 400;
  font-size: 10px;
  letter-spacing: 0.26em;
  opacity: 0;
  animation: fade-up 900ms 1100ms cubic-bezier(.2,.8,.2,1) forwards;
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* -------- Footer -------- */
.foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: clamp(16px, 2vw, 24px);
  border-top: 1px solid rgba(26, 30, 28, 0.18);
  font-size: 10px;
  letter-spacing: 0.22em;
  opacity: 0.55;
}

/* -------- Responsive -------- */
@media (max-width: 720px) {
  .page { gap: 24px; padding: 24px 20px; }
  .logomark { width: 62vmin; }
  .band {
    grid-template-columns: 1fr;
    gap: 18px;
    align-items: start;
  }
  .sectors { justify-self: start; text-align: left; }
  .foot { flex-direction: column; gap: 10px; align-items: flex-start; }
}

/* -------- Reduced motion -------- */
@media (prefers-reduced-motion: reduce) {
  .logomark path {
    animation: none;
    stroke-dashoffset: 0;
    fill-opacity: 1;
    stroke-width: 0;
  }
  .tagline, .sectors {
    animation: none;
    opacity: 1;
    transform: none;
  }
}
