/* Atmosphor company site. Three sections: nav, mission, footer.
   The nav and footer are ported from the Vernais site's shared SiteNav /
   Footer components so the two properties read as one family. Values are
   copied deliberately (this is a separate deploy with no shared bundle) —
   if the Vernais chrome moves, mirror the change here. */

:root {
  /* Wordmarks. */
  --display: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  /* Hero H1 only — the Vernais heroes use Cormorant Garamond at weight 300. */
  --hero-display: 'Cormorant Garamond', 'Martina Plantijn', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  /* Nav height. The mission section subtracts this to fill exactly one screen. */
  --nav-h: 56px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #000;
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================================
   1 · NAV — translucent dark glass bar
   ============================================================ */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(9, 9, 11, 0.92);
  -webkit-backdrop-filter: saturate(180%) blur(22px);
  backdrop-filter: saturate(180%) blur(22px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--sans);
}
.site-nav__inner {
  max-width: 1336px;
  margin: 0 auto;
  padding: 0 24px;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-nav__logo {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  text-decoration: none;
}
/* Mirrors the Vernais SiteNav lockup sizing (hand-copied chrome). */
.site-nav__wordmark {
  display: block;
  height: 24px;
  width: auto;
}
.site-nav__right {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 0 0 auto;
}
.site-nav__link {
  font-size: 13.5px;
  font-weight: 450;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  transition: color 0.2s ease;
}
.site-nav__link:hover {
  color: #fff;
}
.site-nav__cta {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 16px;
  border-radius: 160px;
  background: #fff;
  color: #0b0b0d;
  font-size: 13.5px;
  font-weight: 550;
  text-decoration: none;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
.site-nav__cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px -8px rgba(255, 255, 255, 0.4);
}

/* ============================================================
   2 · HERO — the clip plays inside the headline
   ------------------------------------------------------------
   How it works: the clip is pink ink on a white field. Over it sits an
   opaque black panel whose glyphs are white, blended with `multiply`.
   multiply(black, clip) = black, so the surround stays flat black;
   multiply(white, clip) = clip, so the video shows only inside the letters.
   The text stays real, selectable HTML that wraps and clamps normally.
   ============================================================ */
.hero {
  position: relative;
  min-height: calc(100vh - var(--nav-h));
  overflow: hidden;
  background: #000;
  /* Keep the blend from reaching the rest of the page. */
  isolation: isolate;
}
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Anchor the crop to the clip's top-left corner, then zoom in on it. */
  object-position: top left;
  transform: scale(1.6);
  transform-origin: top left;
  /* Matches the clip's own white field, so there is no flash before the first
     frame paints. It also keeps the headline readable if the video never
     loads: multiplying white glyphs against a black fallback would erase them. */
  background: #fff;
}
.hero__mask {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 24px;
  background: #000;
  mix-blend-mode: multiply;
}
.hero__line {
  margin: 0 auto;
  max-width: 860px;
  font-family: var(--hero-display);
  font-weight: 300;
  font-size: clamp(44px, 6vw, 88px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: #fff;
  text-align: center;
  text-wrap: balance;
  animation: mission-rise 1s var(--ease) 0.1s both;
}

/* ============================================================
   3 · MISSION — full-bleed colorful art, dark scrim, white copy
   ============================================================ */
.mission {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 140px 24px;
  overflow: hidden;
  /* The Vernais house hero treatment: the art carries the colour, the scrim
     keeps white copy legible over its light pastel washes. */
  background-image:
    linear-gradient(180deg, rgba(10, 8, 14, 0.22), rgba(10, 8, 14, 0.44) 46%, rgba(8, 6, 10, 0.72)),
    url('./assets/mission-bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
/* Soft edge + bottom darken, so the section resolves into the black footer. */
.mission::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 92% 64% at 50% 46%, transparent 0%, rgba(4, 3, 6, 0.3) 88%),
    linear-gradient(180deg, transparent 70%, #000 100%);
}
.mission__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
  animation: mission-rise 1s var(--ease) 0.1s both;
}
.mission__eyebrow {
  margin: 0 auto 22px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  /* Eyebrows stay muted — accent is rationed. */
  color: rgba(255, 255, 255, 0.62);
}
.mission__body {
  margin: 0 auto;
  max-width: 660px;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.62;
  letter-spacing: -0.18px;
  color: rgba(255, 255, 255, 0.82);
  text-align: left;
}
.mission__body + .mission__body {
  margin-top: 20px;
}

@keyframes mission-rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================================
   3 · FOOTER — black, limited content
   ============================================================ */
.site-footer {
  background: #000;
  color: #fff;
  font-family: var(--sans);
}
.site-footer .ft-container {
  max-width: 1336px;
  margin: 0 auto;
  padding: 0 24px;
}
.site-footer .ft-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 80px 24px 74px;
  gap: 48px;
}
.site-footer .ft-left {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}
.site-footer .ft-logo {
  display: block;
  line-height: 0;
  text-decoration: none;
}
/* Mirrors the Vernais Footer lockup sizing (hand-copied chrome). */
.site-footer .ft-wordmark {
  display: block;
  height: 30px;
  width: auto;
}
.site-footer .ft-tagline {
  margin: 0;
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(26px, 3.2vw, 36.3px);
  line-height: 40px;
  letter-spacing: -0.4px;
  color: rgba(255, 255, 250, 0.6);
}
.site-footer .ft-nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.site-footer .ft-nav-group {
  width: 180px;
  flex: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.site-footer .ft-nav-title {
  margin: 0 0 6px;
  font-weight: 400;
  font-size: 16px;
  line-height: 20px;
  letter-spacing: -0.16px;
  color: #fff;
}
.site-footer .ft-link {
  display: block;
  font-weight: 500;
  font-size: 13.3px;
  line-height: 20px;
  letter-spacing: -0.14px;
  color: rgba(255, 255, 255, 0.66);
  text-decoration: none;
  transition: color 0.15s;
}
.site-footer .ft-link:hover {
  color: #fff;
}
.site-footer .ft-sub {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 66px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px 24px;
  flex-wrap: wrap;
  gap: 12px;
}
.site-footer .ft-copy {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}
.site-footer .ft-social {
  display: flex;
  align-items: center;
  gap: 14px;
}
.site-footer .ft-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 250, 0.55);
  transition: color 0.15s;
}
.site-footer .ft-social-link:hover {
  color: #fff;
}
.site-footer .ft-social-icon {
  width: 18px;
  height: 18px;
  display: block;
  fill: currentColor;
}

/* ---- responsive ---- */
@media (max-width: 900px) {
  .site-footer .ft-main {
    flex-direction: column;
    gap: 48px;
  }
  .site-footer .ft-nav {
    width: 100%;
    justify-content: flex-start;
  }
}
@media (max-width: 560px) {
  .site-nav__right {
    gap: 14px;
  }
  .mission {
    padding: 64px 18px;
  }
  .site-footer .ft-main {
    padding: 64px 24px 56px;
  }
}

/* Respect users who prefer less motion. */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .mission__inner,
  .hero__line {
    animation: none;
  }
  /* Without the blend the black panel is opaque, so the clip is hidden and the
     headline falls back to plain white on black. */
  .hero__mask {
    mix-blend-mode: normal;
  }
  .site-nav__cta:hover {
    transform: none;
  }
}
