@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@400..700&family=EB+Garamond:ital,wght@0,400..800;1,400..800&display=swap');

/* ============ Base ============ */

:root {
  --ink: #220022;
  --panel: rgba(13, 20, 40, 0.66);
  --panel-solid: #180018;
  --text: #f5f7fc;
  --text-dim: rgba(245, 247, 252, 0.74);
  --accent: #00cccc;
  --accent-deep: #0097a7;
  --line: rgba(255, 255, 255, 0.2);
  --radius: 20px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --formal-font: "EB Garamond", serif;
  --shine-font: "Caveat", cursive;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font);
  background: var(--ink);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Fixed background container: viewport-sized and clipped, sitting behind the
   page content. JavaScript sizes the image inside it (to the full viewport
   width, or to cover the viewport when that would leave it shorter) and
   translates it vertically on scroll, so the top of the image sits at the top
   of the viewport when scrolled to the top, and the bottom of the image lines
   up with the bottom of the viewport when the content is scrolled all the
   way down. The image never repeats, never stretches and never leaves empty
   space. */
.bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  height: 100lvh;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
  background: var(--ink);
}

.bg .bg-image {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  max-width: none;
  will-change: transform;
}

@media screen and (max-width: 768px) {
  .bg {
    width: 120vw;
    height: 110vh;
    height: 110lvh;
  }
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

.container {
  width: min(1120px, calc(100% - 3rem));
  margin-inline: auto;
}

/* ============ Header ============ */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem clamp(1.25rem, 5vw, 3rem);
}

.brand {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text);
  text-decoration: none;
}

.site-nav {
  display: flex;
  gap: 1.75rem;
}

.site-nav a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.98rem;
  transition: color 0.2s ease;
}

.site-nav a:hover {
  color: var(--text);
}

/* ============ Hero ============ */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100lvh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  /*background: url(vega.png);*/
  background-size: cover;
  background-position: center;  
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    -30deg,
    rgba(0, 158, 180, 0.4) 0%,
    rgba(60, 0, 60, 0.4) 100%
  );
  /*backdrop-filter: saturate(0);*/
}

span.highlight {
  font-size: 1.4em;
  font-weight: 700;
  letter-spacing: 0.13em;
}

img.mainLogo {
  width: 380px;
  height: auto;
  margin: 60px auto;
}

img.heroPhoto {
  border-radius: var(--radius);
  background: #fff;
  aspect-ratio: 1;
  width: 250px;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 46rem;
  padding: 0 1.5rem;
}

.eyebrow {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero h1 {
  margin: 1rem 0 1.25rem;
  font-size: clamp(2.75rem, 7vw, 5.25rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.lede {
  margin: 0 0 2.25rem;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--text-dim);
}

.btn {
  display: inline-block;
  padding: 0.95rem 2rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
}

.btn-solid {
  background: var(--accent);
  color: #2a1c0c;
}

.btn-ghost {
  border: 1px solid var(--line);
  color: var(--text);
}

@media screen and (max-width: 768px) {

  .hero {
    min-height: 0px;
  }
  img.mainLogo {
    width: 200px;
    margin: 30px auto;
  }

  img.heroPhoto {
    width: 200px;
  }
}

/* ============ Sections ============ */

section {
  position: relative;
  padding: 6.5rem 0;
}

section.story {
  position: relative;
}

img.vv {
  position: sticky;
  top: calc(100dvh - 140px);
  height: 120px;
  padding: 20px;
  border-radius: 20px;
  backdrop-filter: blur(6px) saturate(0);
  width: max-content;
  margin-left: 20px;
  margin-bottom: 20px;
  background: rgba(7, 11, 24, 0.38);
}

section h2 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 1.25rem;
}

.section-lede {
  max-width: 60rem;
  margin-bottom: 0;
}

/* Features */

.features {
  background: rgba(7, 11, 24, 0.38);
  backdrop-filter: blur(10px);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.card {
  background: #fff;
  border-radius: var(--radius);
  padding: 2rem;
  aspect-ratio: 1;
}

.card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.35rem;
}

.card p {
  margin: 0;
}

/* Story */

div.gallery {
  display: flex;
  flex-flow: column nowrap;
}

img.photo {
  width: 500px;
  max-width: 100%;
  height: auto;
  aspect-ratio: 1;
  background: #fff;
  border-radius: var(--radius);
  margin: -120px 0 0 0;
  cursor: pointer;
}

/* Lightbox: shown when a gallery photo is clicked. The backdrop blurs and
   darkens the page behind it (with a vignette-style radial gradient); the
   enlarged image floats centred above, flanked by previous/next buttons and
   with a close button. Clicking the backdrop (but not the image or buttons)
   dismisses the modal; Left/Right arrow keys cycle through the images. */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.75rem, 3vmin, 2rem);
  padding: 4vmin;
  background:
    radial-gradient(
      ellipse at center,
      rgba(0, 0, 0, 0.35) 0%,
      rgba(0, 0, 0, 0.8) 100%
    );
  -webkit-backdrop-filter: blur(15px);
  backdrop-filter: blur(15px);
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  display: block;
  max-width: 80vmin;
  max-height: 80vmin;
  width: auto;
  height: auto;
  border-radius: clamp(24px, 5vmin, 48px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

.lightbox-button {
  flex: none;
  width: 56px;
  height: 56px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.6rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
}

.lightbox-button:hover {
  background: rgba(255, 255, 255, 0.25);
}

.lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
}

img.photo:first-child {
  margin-top: 0;
}

img.photo:nth-child(odd) {
  align-self: flex-start;
}

img.photo:nth-child(even) {
  align-self: flex-end;
}

@media screen and (max-width: 768px) {
  img.photo {
    margin: 0 auto 40px auto !important;
  }
}

.story blockquote {
  margin: 2rem 0;
  padding-left: 1.5rem;
  border-left: 3px solid var(--accent);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.35;
  letter-spacing: -0.01em;
}

/* CTA */

.cta {
  text-align: center;
  background: var(--panel-solid);
}

.cta .lede {
  margin-bottom: 2.25rem;
}

/* ============ Footer ============ */

.site-footer {
  padding: 2.5rem 1.25rem;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.9rem;
  background: linear-gradient(
    -30deg,
    rgba(0, 158, 180, 0.45) 0%,
    rgba(60, 0, 60, 0.75) 100%
  );
  backdrop-filter: blur(6px) saturate(0);
}

span.shine {
  font-family: var(--shine-font);
  font-size: 1.4em;
  display: block;
  text-align: center;
  margin: 20px auto 0 auto;
  width: max-content;
}

/* ============ Small screens ============ */

@media (max-width: 640px) {
  section {
    padding: 4rem 0;
  }
}
