:root {
  --navy: #081839;
  --navy-deep: #050e24;
  --cream: #f4ecdd;
  --cream-soft: rgba(244, 236, 221, 0.75);
  --cream-faint: rgba(244, 236, 221, 0.45);
  --rule: rgba(244, 236, 221, 0.3);
  --serif: "EB Garamond", Georgia, "Times New Roman", serif;
  --display: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--navy);
  color: var(--cream);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

.page {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  overflow: hidden;
  background: var(--navy-deep);
}

.bg {
  position: absolute;
  inset: 0;
  background-image: url("hero.jpg");
  background-size: cover;
  background-position: center 22%;
  transform-origin: center center;
  will-change: transform;
}

/* Grounds the photo in the brand's navy and keeps the type legible,
   heaviest where the copy sits, lightest where the photo should breathe. */
.scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
      180deg,
      rgba(5, 14, 36, 0.55) 0%,
      rgba(5, 14, 36, 0.15) 20%,
      rgba(5, 14, 36, 0.4) 55%,
      rgba(5, 14, 36, 0.92) 86%,
      rgba(5, 14, 36, 0.98) 100%
    ),
    linear-gradient(
      90deg,
      rgba(5, 14, 36, 0.5) 0%,
      rgba(5, 14, 36, 0.02) 24%,
      rgba(5, 14, 36, 0.02) 76%,
      rgba(5, 14, 36, 0.5) 100%
    );
}

/* Subtle print-like grain, so the scrim doesn't read as a flat digital
   gradient. */
.grain {
  position: absolute;
  inset: -10%;
  opacity: 0.045;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.masthead {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 2.25rem 1.5rem 0;
}

.crest {
  height: 2.25rem;
  width: auto;
  filter: drop-shadow(0 1px 6px rgba(0, 0, 0, 0.35));
}

.masthead .wordmark {
  font-family: var(--serif);
  font-size: 0.85rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--cream-soft);
}

.content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 34rem;
  padding: 3rem 1.5rem 4.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.eyebrow {
  margin: 0 0 0.85rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1rem, 2vw, 1.2rem);
  letter-spacing: 0.02em;
  color: var(--cream-soft);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.4);
}

.statement {
  position: relative;
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(3.5rem, 11vw, 7rem);
  line-height: 0.98;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-wrap: balance;
  color: var(--cream);
  text-shadow:
    0 2px 4px rgba(0, 0, 0, 0.45),
    0 12px 48px rgba(0, 0, 0, 0.55);
}

/* A focused vignette right behind the headline, so legibility never
   depends on which part of the photo happens to sit underneath it. */
.content::before {
  content: "";
  position: absolute;
  inset: -10% -20%;
  z-index: -1;
  background: radial-gradient(
    ellipse 70% 60% at 50% 55%,
    rgba(5, 14, 36, 0.55) 0%,
    rgba(5, 14, 36, 0) 70%
  );
}

.footer {
  margin: 2.75rem 0 0;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream-faint);
}

@media (max-width: 480px) {
  .content {
    padding: 2.5rem 1.25rem 3.5rem;
  }
}

/* Fallback state for [data-reveal] elements if the animation script fails
   to load or run for any reason -- always render fully visible. */
[data-reveal] {
  opacity: 1;
}
