/* Self-hosted fonts (SIL OFL, see assets/fonts/licenses/). */
@font-face { font-family: 'Inter'; src: url('../assets/fonts/inter-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../assets/fonts/inter-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../assets/fonts/inter-latin-600-normal.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Quicksand'; src: url('../assets/fonts/quicksand-latin-600-normal.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Outfit'; src: url('../assets/fonts/outfit-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --navy: #062855;
  --navy-soft: #3A4E72;
  --muted: #5C6B88;
  --veil: 244, 247, 252;
  --page: #F4F7FC;
}

* { box-sizing: border-box; }

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

body {
  background: var(--page);
  color: var(--navy);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  /* Footer with the company details stays visible at the bottom of the first screen. */
  display: flex;
  flex-direction: column;
  min-height: 100svh;
}

.bg,
.veil {
  position: fixed;
  inset: 0;
  z-index: 0;
}

.bg {
  background-image: url('../assets/banner-sm.jpg');
  background-size: cover;
  background-position: 70% 50%;
  background-repeat: no-repeat;
}

/* Left-to-right veil: the copy sits on the calm side, the portrait stays visible. */
.veil {
  background: linear-gradient(100deg,
      rgba(var(--veil), 0.97) 0%,
      rgba(var(--veil), 0.92) 32%,
      rgba(var(--veil), 0.55) 60%,
      rgba(var(--veil), 0.10) 100%);
}

main {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  align-items: center;
  padding: 56px 16px;
}

.inner {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 8px;
}

.content { max-width: 620px; }

.lockup {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 44px;
}

.lockup img {
  width: 54px;
  height: auto;
  display: block;
}

/* Wordmark: lowercase geometric with rounded terminals, in the logo navy. */
.wordmark {
  font-family: 'Quicksand', sans-serif;
  font-weight: 600;
  font-size: 34px;
  letter-spacing: -0.005em;
  line-height: 1;
  color: var(--navy);
}

h1 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin: 0 0 22px;
  color: var(--navy);
}

footer {
  position: relative;
  z-index: 1;
  padding: 0 24px 24px;
  font-size: 0.78rem;
  color: var(--muted);
}

/* Translucent panel keeps the company details readable over the photo. */
.footer-panel {
  padding: 22px 26px 18px;
  background: rgba(var(--veil), 0.78);
  border: 1px solid rgba(6, 40, 85, 0.08);
  border-radius: 18px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 0.85fr;
  gap: 18px 44px;
}
.footer-label {
  margin-bottom: 6px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy-soft);
}
footer p { margin: 0; line-height: 1.6; }
footer a { color: var(--navy); text-underline-offset: 2px; }
footer strong { font-weight: 600; color: var(--navy); }
footer em { font-style: normal; font-weight: 600; color: var(--navy-soft); }
.footer-more { margin-top: 6px; }
.footer-bottom {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(6, 40, 85, 0.1);
}
.nowrap { white-space: nowrap; }
footer .support a { display: inline-block; margin: 2px 0 6px; }
footer .support img { display: block; width: 116px; height: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
footer a:focus-visible { outline: 2px solid rgba(6, 40, 85, 0.5); outline-offset: 2px; border-radius: 2px; }

@media (max-width: 860px) {
  footer { padding: 0 16px 16px; }
  .footer-panel { padding: 18px 18px 14px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 16px 28px; }
  .footer-grid .support { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  /* The headline keeps most of the first screen; the footer follows on scroll. */
  main { min-height: 82svh; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* Ambient layer: soft drifting particles, canvas-drawn, very low opacity. */
#particles {
  position: fixed;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Entrance */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  animation: rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.reveal:nth-child(1) { animation-delay: 0.05s; }
.reveal:nth-child(2) { animation-delay: 0.16s; }
.reveal:nth-child(3) { animation-delay: 0.26s; }
.reveal:nth-child(4) { animation-delay: 0.36s; }
.reveal:nth-child(5) { animation-delay: 0.44s; }
.reveal:nth-child(6) { animation-delay: 0.52s; }

@keyframes rise {
  to { opacity: 1; transform: none; }
}

@media (min-width: 861px) {
  .bg { background-image: url('../assets/banner.jpg'); }
  main { padding: 64px 40px; }
  .lockup img { width: 62px; }
  .wordmark { font-size: 39px; }
}

/* On narrow screens the portrait becomes a soft texture behind centered copy. */
@media (max-width: 860px) {
  .bg { background-position: 62% 50%; }

  .veil {
    background: linear-gradient(180deg,
        rgba(var(--veil), 0.86) 0%,
        rgba(var(--veil), 0.72) 42%,
        rgba(var(--veil), 0.93) 100%);
  }

  main { padding: 48px 20px; }
  .lockup { margin-bottom: 34px; }
}

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