/* ============================================================
   Extrava — extrava.us
   The page is the dam: white sky, flat water, six apps deep.
   ============================================================ */
:root {
  --ink: #0b3050;               /* deep navy text on white   */
  --ink-soft: rgba(11, 48, 80, 0.55);
  --ink-faint: rgba(11, 48, 80, 0.38);
  --water: #45a9de;             /* surface water             */
  --bed: #051a29;               /* the very bottom           */
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;
  background: #fff;
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ============================================================
   The dam (hero): sky above, water below
   ============================================================ */
.dam {
  position: relative;
  display: flex;
  flex-direction: column;
  /* leaves room for the sticky apps bar to close out the first screen */
  min-height: calc(100vh - 48px);
  min-height: calc(100dvh - 48px);
  background: #fff;
}

.sky {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(56px, 10vh, 110px) 24px 64px;
}

.logo {
  height: clamp(72px, 10vh, 100px);
  width: auto;
  margin-bottom: 64px;
}

.studio {
  font-size: clamp(2rem, 4.2vw, 3.75rem); /* tops out at 60px */
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-bottom: 80px;
}

.big {
  font-size: clamp(5rem, 15vh, 9.5rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.04em;
}

.caption {
  margin-top: 10px;
  font-size: clamp(0.8rem, 1.8vw, 0.95rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3em;
}

.sub {
  margin-top: 10px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--ink-soft);
}

.latest {
  margin-top: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--ink-faint);
}

.water {
  position: relative;
  flex: 1;
  min-height: 42vh;
  background: var(--water);
}

.wave {
  position: absolute;
  top: -15px;
  left: 0;
  right: 0;
  height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 16' preserveAspectRatio='none'%3E%3Cpath d='M0 8 Q30 0 60 8 T120 8 V16 H0 Z' fill='%2345a9de'/%3E%3C/svg%3E") repeat-x;
  background-size: 120px 16px;
  animation: drift 8s linear infinite;
}

@keyframes drift {
  to { background-position-x: -120px; }
}

.dive {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  opacity: 0.95;
}
.dive:hover { text-decoration: underline; text-underline-offset: 5px; }

.apps-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 26px;
  padding: 15px 24px;
  background: var(--water);
}

.apps-nav a {
  color: #fff;
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  opacity: 0.92;
}
.apps-nav a:hover {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ============================================================
   App bands: one flat shade per app, darker as you go deeper
   ============================================================ */
.band {
  scroll-margin-top: 48px;
  background: var(--w, var(--water));
  color: #fff;
  min-height: 56vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 76px 24px;
}

.depth {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  opacity: 0.75;
  margin-bottom: 16px;
}

.band h2 {
  font-size: clamp(2.6rem, 8vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
}

.band .line {
  margin-top: 16px;
  max-width: 44ch;
  font-size: 1.02rem;
  font-weight: 500;
  opacity: 0.92;
}

.band .links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 64px;
}

.surface-link {
  margin-top: 24px;
  color: #fff;
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  border-bottom: 2px solid rgba(255, 255, 255, 0.5);
  padding-bottom: 4px;
}
.surface-link:hover { border-color: #fff; }

/* ============================================================
   Contact + footer (the deepest water, then the bed)
   ============================================================ */
.contact { min-height: 48vh; }

.mail {
  margin: 8px 0 4px;
  color: #fff;
  text-decoration: none;
  font-size: clamp(1.6rem, 6vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  border-bottom: 3px solid rgba(255, 255, 255, 0.35);
  padding-bottom: 6px;
}
.mail:hover { border-color: #fff; }

.bed {
  background: var(--bed);
  color: rgba(255, 255, 255, 0.45);
  text-align: center;
  padding: 28px 24px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

/* ============================================================
   Motion + small screens
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .wave { animation: none; }
}

@media (max-width: 560px) {
  .sky { padding-bottom: 48px; }
  .water { min-height: 46vh; }
  .logo { height: clamp(56px, 8vh, 76px); margin-bottom: 40px; }
  .studio { font-size: 1.7rem; }
  .big { font-size: clamp(4.2rem, 14vh, 7.5rem); }
  .caption { letter-spacing: 0.22em; }
  .sub, .latest { font-size: 0.65rem; }
  .apps-nav { gap: 10px 18px; bottom: 22px; }
  .band { min-height: 48vh; padding: 64px 20px; }
}
