@font-face {
  font-family: "Manrope";
  src: url("/assets/fonts/manrope-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #0b1026;
  --ink-soft: #4a5578;
  --ink-mid: #3d4a7c;
  --blue: #0055ff;
  --blue-link: #0044cc;
  --navy: #08154f;
  --sky-1: #eef4ff;
  --sky-2: #d5e4ff;
  --line: #e1e8f7;
  --radius-card: 32px;
  --wrap: 1040px;
  --gap-section: clamp(64px, 9vw, 128px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, video { display: block; max-width: 100%; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: var(--blue-link); }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.page { max-width: 1920px; margin: 0 auto; padding: 14px; overflow: hidden; }
.nw { white-space: nowrap; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 500;
  text-decoration: none;
  transition: transform .25s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--blue { background: var(--blue); color: #fff; }
.btn--blue:hover { color: #fff; }
.btn--navy { background: var(--navy); color: #fff; min-height: 52px; padding: 0 26px; }
.btn--navy:hover { color: #fff; }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { color: #fff; }
.btn--white { background: #fff; color: var(--ink); padding: 0 22px 0 18px; box-shadow: 0 8px 22px rgba(8, 21, 79, .1); }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  --hero-pad: clamp(20px, 4vw, 48px);
  /* Full bleed: it fills the first screen, edge to edge, and melts into the page below. */
  min-height: max(560px, 100vh);
  min-height: max(560px, 100svh);
  margin: -14px -14px 0;
  padding: 96px calc(var(--hero-pad) + 14px) clamp(28px, 4vw, 44px);
  background: linear-gradient(180deg, var(--sky-1) 0%, #dbe8fd 68%, #fff 100%);
}
.hero__media { position: absolute; left: 0; right: 0; bottom: 0; height: 64%; }
.hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 30%;
}
.hero__fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--sky-1) 0%, var(--sky-1) 36%, rgba(238, 244, 255, 0) 56%);
}

.nav {
  position: fixed;
  top: 14px;
  left: 50%;
  z-index: 20;
  width: min(760px, calc(100% - 28px));
  transform: translateX(-50%);
  padding: 6px 8px 6px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
  background: rgba(255, 255, 255, .84);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 16px;
  box-shadow: 0 6px 24px rgba(11, 16, 38, .08);
}
.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--ink);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -.01em;
  text-decoration: none;
}
.nav__links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 24px; font-size: 15px; font-weight: 500; }
.nav__links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); text-decoration: none; }
.nav__links a:hover { color: var(--blue); }
.nav__links .nav__cta { padding: 0 18px; border-radius: 12px; background: var(--ink); color: #fff; }
.nav__links .nav__cta:hover { color: #fff; }

.hero__title {
  position: relative;
  max-width: 980px;
  margin: clamp(36px, 5vw, 64px) auto 0;
  text-align: center;
  font-weight: 400;
  font-size: clamp(32px, 5.2vw, 68px);
  line-height: 1.08;
  letter-spacing: -.035em;
}
.hero__title { text-wrap: balance; }
.hero__title .accent { color: var(--blue); }
.w {
  display: inline-block;
  animation: word .7s var(--ease) both;
  animation-delay: calc(.05s + var(--i) * .07s);
}

.hero__foot {
  position: relative;
  margin-top: auto;
  padding-top: clamp(48px, calc(100vh - 570px), 300px);
  padding-top: clamp(48px, calc(100svh - 570px), 300px);
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 24px 56px;
}
.hero__sub { position: relative; z-index: 2; max-width: 620px; margin: clamp(16px, 2vw, 24px) auto 0; text-align: center; color: var(--ink-mid); font-size: clamp(16px, 1.5vw, 19px); }
.hero__num { font-weight: 300; font-size: clamp(40px, 4.4vw, 56px); line-height: 1; letter-spacing: -.03em; }
.hero__numlabel { margin-top: 10px; font-weight: 500; }
.hero__numsub { margin-top: 4px; color: var(--ink-mid); font-size: 15px; }
.hero__lead { max-width: 100%; margin: 0 auto; text-align: center; }
.hero__lead p { color: #1f2a5e; font-size: 15px; }

.enter { animation: enter 1s var(--ease) both; animation-delay: var(--d, 0s); }

.hero__cue {
  position: absolute;
  left: 50%;
  bottom: 22px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-left: -22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .7);
  color: var(--ink);
  box-shadow: 0 6px 18px rgba(8, 21, 79, .1);
  animation: cue 2.2s ease-in-out infinite;
}
.hero__cue:hover { color: var(--blue); }
#work, #franova, #founder { scroll-margin-top: 88px; }

/* Sections */
.section {
  max-width: calc(var(--wrap) + 48px);
  margin: 0 auto;
  padding: var(--gap-section) clamp(8px, 2vw, 24px) 0;
}
.eyebrow { font-weight: 400; font-size: clamp(20px, 2.2vw, 26px); letter-spacing: -.02em; }

/* Work */
.work { max-width: 1148px; }
.work .eyebrow { margin-bottom: clamp(28px, 4vw, 56px); }
.work__grid { display: flex; flex-wrap: wrap; align-items: center; gap: 40px 64px; }
.work__list { flex: 3 1 480px; min-width: 0; }
.work__row {
  padding: 12px 0;
  cursor: default;
  transition: padding .35s var(--ease), color .35s ease;
}
.work__row:hover, .work__row.is-active { color: var(--blue); }
@media (hover: hover) {
  .work__row:hover { padding-left: 20px; }
}
.work__head { display: flex; align-items: baseline; gap: 12px; }
.work__n { font-size: 13px; color: var(--ink-soft); }
.work__row h3 { font-weight: 300; font-size: clamp(36px, 5.6vw, 72px); line-height: 1.1; letter-spacing: -.04em; }
.work__row p { margin-left: 30px; color: var(--ink-soft); font-size: 16px; }
.work__shots {
  position: relative;
  flex: 2 1 300px;
  min-width: 0;
  max-width: 440px;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 28px;
  background: #dfeaff;
  box-shadow: 0 30px 60px rgba(0, 60, 180, .14);
}
.work__shots img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity .6s ease, transform 1.4s var(--ease);
}
.work__shots img.is-active { opacity: 1; transform: none; }
.work__note { max-width: 520px; margin-top: clamp(28px, 4vw, 48px); color: var(--ink-soft); font-size: 16px; }

/* Franova */
.franova {
  margin-top: var(--gap-section);
  padding: clamp(40px, 7vw, 96px) clamp(24px, 4vw, 48px);
  border-radius: var(--radius-card);
  background: linear-gradient(180deg, #f4f8ff 0%, #e1ecff 100%);
}
.franova__top { max-width: var(--wrap); margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 48px 72px; }
.franova__text { flex: 3 1 420px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.franova__brand { display: flex; align-items: center; gap: 20px; }
.franova__icon {
  width: 96px;
  height: 96px;
  overflow: hidden;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 22px 44px rgba(8, 21, 79, .18);
  animation: float 7s ease-in-out infinite;
}
.franova__icon img { width: 100%; height: 100%; object-fit: cover; }
.franova__tag { display: flex; flex-direction: column; gap: 6px; font-size: 15px; color: var(--ink-mid); }
.franova__bar { width: 28px; height: 3px; border-radius: 2px; background: #d30e14; }
.franova h2 { font-weight: 300; font-size: clamp(56px, 9vw, 120px); line-height: .95; letter-spacing: -.05em; color: var(--navy); }
.franova__text p { max-width: 520px; color: var(--ink-mid); }

.franova__stats {
  flex: 2 1 300px;
  min-width: 0;
  padding: 12px 36px;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 30px 60px rgba(8, 21, 79, .1);
}
.stat { padding: 26px 0; border-bottom: 1px solid var(--line); }
.stat:last-child { border-bottom: 0; }
.stat--laurel { display: flex; align-items: center; justify-content: center; gap: 10px; text-align: center; }
.stat--plain { font-size: 20px; letter-spacing: -.01em; color: var(--navy); }
.stat__num {
  font-weight: 300;
  font-size: clamp(40px, 4.6vw, 60px);
  line-height: 1;
  letter-spacing: -.04em;
  color: var(--navy);
}
.stat__num.is-counting { font-variant-numeric: tabular-nums; }
.stat__label { margin-top: 8px; color: var(--ink-mid); }
.laurel { flex: 0 0 auto; }
.laurel--flip { transform: scaleX(-1); }

.franova__cards { max-width: var(--wrap); margin: clamp(40px, 6vw, 72px) auto 0; display: flex; flex-wrap: wrap; gap: 16px; }
.fcard {
  flex: 1 1 260px;
  min-width: 0;
  padding: 26px 28px;
  border: 1px solid #fff;
  border-radius: 22px;
  background: rgba(255, 255, 255, .7);
}
.fcard, .how__col { transition: transform .3s var(--ease), border-color .3s ease, box-shadow .3s ease; }
.fcard:hover { transform: translateY(-4px); box-shadow: 0 18px 36px rgba(8, 21, 79, .08); }
.how__col:hover { transform: translateY(-4px); border-top-color: var(--blue); }
.fcard h3 { margin-bottom: 8px; font-weight: 500; font-size: 20px; letter-spacing: -.02em; color: var(--navy); }
.fcard p { color: var(--ink-mid); font-size: 16px; }

/* How we build */
.how__sub { margin: 8px 0 clamp(28px, 4vw, 56px); color: var(--ink-soft); font-size: 16px; }
.how__grid { display: flex; flex-wrap: wrap; gap: 32px 28px; }
.how__col { flex: 1 1 170px; min-width: 0; padding-top: 20px; border-top: 1px solid var(--ink); }
.how__col h3 { margin-bottom: 10px; font-weight: 400; font-size: 22px; line-height: 1.2; letter-spacing: -.03em; }
.how__col p { color: var(--ink-soft); font-size: 16px; }

/* Founder */
.founder { display: flex; flex-wrap: wrap; align-items: center; gap: 32px 64px; }
.founder__photo {
  flex: 0 0 auto;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 24px 48px rgba(8, 21, 79, .16);
}
.founder__text { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.founder h2 { font-weight: 300; font-size: clamp(32px, 4.6vw, 56px); line-height: 1.05; letter-spacing: -.04em; }
.founder p { max-width: 560px; color: var(--ink-soft); }

/* Footer */
.footer {
  margin-top: var(--gap-section);
  padding: clamp(32px, 5vw, 64px) clamp(24px, 4vw, 48px);
  border-radius: var(--radius-card);
  background: linear-gradient(180deg, var(--sky-1) 0%, var(--sky-2) 100%);
}
.footer__inner { max-width: var(--wrap); margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 28px 64px; }
.footer__contact { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.footer__mail {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  font-weight: 300;
  font-size: clamp(19px, 3vw, 38px);
  letter-spacing: -.03em;
  white-space: nowrap;
  text-decoration: none;
}
.footer__mail:hover { color: var(--blue); }
.footer__meta { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; font-size: 14px; color: var(--ink-mid); }
.footer__meta a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 500; }

/* Legal page */
.legal { max-width: 720px; margin: 0 auto; padding: clamp(32px, 6vw, 72px) 24px; display: flex; flex-direction: column; gap: 28px; font-size: 16px; line-height: 1.65; }
.legal__back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; align-self: flex-start; color: var(--ink); font-weight: 600; text-decoration: none; }
.legal h1 { font-weight: 300; font-size: clamp(32px, 5vw, 52px); line-height: 1.05; letter-spacing: -.04em; }
.legal h2 { margin-bottom: 6px; font-weight: 500; font-size: 18px; }
.legal p { color: var(--ink-mid); }
.legal p + p { margin-top: 6px; }

/* Living scene (scene.js). Everything below only applies once the scene is running. */
.scene {
  position: fixed;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
  visibility: hidden;
}
.hero__anchor { position: absolute; left: 50%; top: 50%; height: 62%; aspect-ratio: 1 / 1; transform: translate(-50%, -50%); }
.hero [data-shape] { transition: color .5s ease; }
.hero [data-shape].is-on { color: var(--blue); }
.hero__lead [data-shape].is-on { font-weight: 600; }
.hero__title, .hero__foot { z-index: 2; }
.work__list, .work .eyebrow, .work__note, .franova, .how, .founder, .footer { position: relative; z-index: 2; }
.has-scene .hero__media img { opacity: 0; }
.has-scene .hero__fade { opacity: 0; }
.has-scene .work__shots { visibility: hidden; box-shadow: none; }

/* Scroll reveal: only hidden once the script has confirmed it can reveal */
.js .reveal { opacity: 0; transform: translateY(40px); transition: opacity .8s ease, transform .9s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .work__row.reveal { transition: opacity .8s ease, transform .9s var(--ease), padding .35s var(--ease), color .35s ease; }

/* Short laptop screens: the headline moves up so it stays clear of the cube. */
@media (min-width: 641px) {
  .hero__title {
    margin-top: min(clamp(36px, 5vw, 64px), max(20px, calc(100vh - 700px)));
    margin-top: min(clamp(36px, 5vw, 64px), max(20px, calc(100svh - 700px)));
  }
}

@keyframes word {
  from { opacity: 0; transform: translateY(.35em); filter: blur(6px); }
  to { opacity: 1; transform: none; filter: blur(0); }
}
@keyframes enter {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}
@keyframes cue {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(7px); }
}
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-6deg); }
  50% { transform: translateY(-10px) rotate(-3deg); }
}

@media (max-width: 640px) {
  .hero { min-height: 0; }
  .hero__media {
    position: relative;
    top: auto;
    bottom: auto;
    order: 2;
    flex: 0 0 auto;
    height: 300px;
    margin: 0 calc(-1 * var(--hero-pad));
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 28%, #000 72%, transparent 100%);
    mask-image: linear-gradient(180deg, transparent 0%, #000 28%, #000 72%, transparent 100%);
  }
  .hero__media img { object-position: 50% 30%; }
  .hero__fade { display: none; }
  .hero__title { order: 1; }
  .hero__sub { order: 1; }
  .hero__cue { display: none; }
  .hero__foot { order: 3; margin-top: 0; padding-top: 8px; }
  .nav__links a:not(.nav__cta) { display: none; }
  .work__row p { margin-left: 0; }
  .work__shots { max-width: none; }
  .has-scene .work__shots { display: none; }
  .hero__anchor { height: 62%; }
  .franova__stats { padding: 8px 24px; }
  .founder__photo { width: 180px; height: 180px; }
}

@media (max-width: 380px) {
  .franova__stats { padding: 8px 16px; }
  .stat--laurel { gap: 6px; }
  .laurel { width: 30px; height: 50px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .w, .enter, .franova__icon, .hero__cue { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .work__row, .js .work__row.reveal, .work__shots img { transition: none; }
}

@media print {
  .js .reveal, .js .work__row.reveal { opacity: 1; transform: none; transition: none; }
}
