/* Vincira Games landing. Foaster-style: cream page, Inter everywhere, one brand blue. */
@font-face {
  font-family: "Inter";
  src: url("/fonts/Inter-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #f6f3ee;
  --surface: #ffffff;
  --ink: #14213a;
  --ink-2: #46516a;
  --muted: #6f788c;
  --line: rgba(20, 33, 58, 0.08);
  --navy: #134891;
  --navy-hover: #0f3b79;
  --faint: rgba(20, 33, 58, 0.16);
  --inner: 1200px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }

:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }

#top-sentinel { position: absolute; top: 0; left: 0; width: 1px; height: 24px; }

.section-inner { max-width: var(--inner); margin: 0 auto; padding: 0 40px; }

/* Nav: fixed, blurred cream, hairline once scrolled. */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(246, 243, 238, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.nav.scrolled { border-bottom-color: var(--line); }

.nav-inner {
  max-width: 1460px;
  margin: 0 auto;
  padding: 0 40px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand img { width: 150px; height: auto; }

.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-links a { text-decoration: none; font-size: 0.92rem; font-weight: 500; transition: opacity 0.2s; }
.nav-links a:not(.btn):hover { opacity: 0.5; }

/* Buttons: pill, brand blue. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--navy);
  color: #fff;
  border-radius: 100px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}
.btn:hover { background: var(--navy-hover); transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn-nav { padding: 10px 24px; font-size: 0.92rem; }
.btn-primary { padding: 16px 36px; font-size: 1rem; }
.btn-lg { padding: 18px 44px; font-size: 1.05rem; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
  transition: opacity 0.2s;
}
.link-arrow svg { width: 16px; height: 16px; transition: transform 0.3s var(--ease); }
.link-arrow:hover { opacity: 0.6; }
.link-arrow:hover svg { transform: translateX(4px); }

/* Hero: centered copy, then the island in a rounded frame. */
.hero { padding: 168px 40px 96px; overflow: hidden; }

.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2.8rem, 5.5vw, 4.5rem);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.03em;
  max-width: 17ch;
  margin-bottom: 28px;
  text-wrap: balance;
}

.hero-sub {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--ink-2);
  max-width: 600px;
  margin-bottom: 40px;
  text-wrap: pretty;
}

.hero-cta { display: flex; align-items: center; justify-content: center; gap: 36px; flex-wrap: wrap; }

.hero-visual {
  max-width: var(--inner);
  margin: 72px auto 0;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--navy);
  box-shadow: 0 40px 90px -40px rgba(20, 33, 58, 0.45), 0 1px 0 rgba(20, 33, 58, 0.06);
}
.hero-visual img { width: 100%; height: 100%; object-fit: cover; }

/* Statement: sticky block, words light up as the section scrolls by. */
.statement {
  height: 240vh;
  view-timeline-name: --statement;
  view-timeline-axis: block;
}

.statement-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 40px;
}

.statement-text {
  max-width: 1000px;
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.02em;
  color: var(--faint);
  text-wrap: pretty;
}

.word {
  animation: word-on linear both;
  animation-timeline: --statement;
}

@keyframes word-on {
  from { color: var(--faint); }
  to { color: var(--ink); }
}

/* No scroll-driven animations: the statement becomes a plain block. */
@supports not (animation-timeline: --x) {
  .statement { height: auto; padding: 140px 0; }
  .statement-sticky { position: static; height: auto; }
  .statement-text { color: var(--ink); }
}

/* What we do: three visual cards, no boxes. */
.what { padding: 140px 0; background: var(--surface); }

.section-title {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  text-align: center;
  margin-bottom: 56px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card { display: flex; flex-direction: column; text-decoration: none; }

.card-visual {
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  background: var(--bg);
  margin-bottom: 22px;
}
.card-visual img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.card:hover .card-visual img { transform: scale(1.05); }

.card h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 8px; }
.card p { font-size: 0.98rem; line-height: 1.6; color: var(--ink-2); }

/* Contact */
.engage { padding: 170px 0; text-align: center; }
.engage h2 {
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 36px;
}
.engage-mail { margin-top: 24px; font-size: 1rem; color: var(--ink-2); }
.engage-mail a { text-decoration: none; border-bottom: 1px solid var(--line); transition: border-color 0.2s; }
.engage-mail a:hover { border-color: var(--ink); }

/* Footer */
.footer { padding: 40px 0 48px; border-top: 1px solid var(--line); font-size: 0.92rem; color: var(--ink-2); }
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.legal { font-size: 0.82rem; color: var(--muted); max-width: 72ch; }

/* Motion, always on (founder decision: no prefers-reduced-motion gating, same rule as vincira.com).
   Load: hero rises in sequence. Scroll: .fade-in blocks appear once, cards staggered. */
.hero-inner > * { animation: rise 0.9s var(--ease) both; }
.hero-inner > :nth-child(2) { animation-delay: 0.1s; }
.hero-inner > :nth-child(3) { animation-delay: 0.2s; }
.hero-visual { animation: settle 1.2s var(--ease) 0.3s both; }

.js .fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  transition-delay: calc(var(--i, 0) * 120ms);
}
.js .fade-in.visible { opacity: 1; transform: none; }

@keyframes rise {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: none; }
}
@keyframes settle {
  from { opacity: 0; transform: translateY(32px) scale(0.97); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 900px) {
  .cards { grid-template-columns: 1fr; gap: 40px; }
  .card p { max-width: 48ch; }
}

@media (max-width: 640px) {
  .section-inner, .nav-inner { padding: 0 24px; }
  .brand img { width: 120px; }
  .nav-links { gap: 20px; }
  .btn-nav { padding: 9px 18px; font-size: 0.88rem; }
  .hero { padding: 128px 24px 72px; }
  .hero-visual { margin-top: 48px; border-radius: 16px; }
  .statement { height: 200vh; }
  .statement-sticky { padding: 0 24px; }
  .what { padding: 96px 0; }
  .engage { padding: 120px 0; }
}
