/* ---------------------------------------------------------------
   O'Malley Peak LLC — single-page site
   Self-hosted fonts, no third-party requests anywhere on the page. The
   footage carries the page and the type stays out of its way.
   --------------------------------------------------------------- */

@font-face {
  font-family: "Barlow";
  src: url("/fonts/barlow-300.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Barlow Condensed";
  src: url("/fonts/barlow-condensed-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #ffffff;
  --backdrop: #2f3a42;
  --shadow: 0 1px 28px rgba(0, 0, 0, 0.5);
  --rule: rgba(255, 255, 255, 0.26);
}

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

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--backdrop);
  color: var(--ink);
  font-family: "Barlow", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 300;
  line-height: 1.45;
  text-shadow: var(--shadow);
  -webkit-font-smoothing: antialiased;
}

/* --- the held shot --------------------------------------------- */

/* The backdrop sits on layer 0 and the content is lifted above it, rather
   than the backdrop being pushed to z-index: -1. Same result, but a
   negative layer is the fragile version — it renders behind the background
   of any ancestor that later gains one, which is an easy thing to trip over
   months from now when someone tints the body. */
.stage {
  position: fixed;
  inset: 0;
  z-index: 0;
}

main {
  position: relative;
  z-index: 1;
}

.stage > picture { display: contents; }

.stage__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% center;
}

/* Light over the summit, heavy at the foot — the page darkens as you scroll
   into the reading, which is the opposite of what a flat tint would do. */
.stage__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
      to bottom,
      rgba(12, 17, 22, 0.34) 0%,
      rgba(12, 17, 22, 0.30) 30%,
      rgba(12, 17, 22, 0.58) 68%,
      rgba(12, 17, 22, 0.80) 100%);
  pointer-events: none;
}

/* --- screens ---------------------------------------------------- */

.screen {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(3rem, 10vh, 7rem) clamp(1.25rem, 5vw, 4rem);
  text-align: center;
}

/* --- type -------------------------------------------------------- */

.wordmark {
  margin: 0;
  font-family: "Barlow Condensed", "Helvetica Neue Condensed", "Arial Narrow", sans-serif;
  font-size: clamp(3.2rem, 13vw, 10.5rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.008em;
  text-transform: uppercase;
}

.wordmark__break { display: inline; }

@media (max-width: 26em) {
  .wordmark__break { display: block; height: 0; }
}

.eyebrow {
  margin: clamp(0.75rem, 2vh, 1.4rem) 0 0;
  font-size: clamp(0.72rem, 1.4vw, 1.05rem);
  font-weight: 300;
  letter-spacing: 0.34em;
  text-indent: 0.34em;
  text-transform: uppercase;
  opacity: 0.9;
}

.section__label {
  margin: 0 0 clamp(1.6rem, 5vh, 3rem);
  font-size: clamp(0.68rem, 1.15vw, 0.82rem);
  font-weight: 300;
  letter-spacing: 0.32em;
  text-indent: 0.32em;
  text-transform: uppercase;
  opacity: 0.65;
}

.section__label::after {
  content: "";
  display: block;
  width: 2.5rem;
  margin: 0.8rem auto 0;
  border-top: 1px solid var(--rule);
}

/* --- ventures ------------------------------------------------------ */

.ventures {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: clamp(0.9rem, 3.2vh, 2rem);
  font-family: "Barlow Condensed", "Helvetica Neue Condensed", "Arial Narrow", sans-serif;
  font-weight: 700;
  font-size: clamp(1.7rem, 5.2vw, 3.4rem);
  line-height: 1.06;
  letter-spacing: 0.005em;
  text-transform: uppercase;
}

.ventures li { margin: 0; }

/* Visible by default. The script adds .is-armed to hide them only when it
   knows it can also reveal them — so a scripting failure leaves the list
   readable rather than blank. */
.reveal.is-armed {
  opacity: 0;
  transform: translateY(1.1rem);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.reveal.is-armed.is-in {
  opacity: 1;
  transform: none;
}

/* --- contact -------------------------------------------------------- */

.contact {
  margin: 0;
  font-size: clamp(1.05rem, 2.3vw, 1.5rem);
  letter-spacing: 0.05em;
}

.legal {
  margin: clamp(2rem, 6vh, 4rem) 0 0;
  font-size: clamp(0.72rem, 1vw, 0.82rem);
  letter-spacing: 0.05em;
  opacity: 0.62;
}

/* --- links ---------------------------------------------------------- */

a {
  color: inherit;
  text-underline-offset: 0.18em;
  text-decoration-thickness: from-font;
  text-decoration-color: var(--rule);
  transition: text-decoration-color 150ms ease;
}

a:hover,
a:focus-visible { text-decoration-color: currentColor; }

:where(a):focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
  border-radius: 2px;
}

/* --- short landscape viewports -------------------------------------- */

@media (max-height: 560px) and (orientation: landscape) {
  .screen { min-height: auto; padding-block: clamp(2.5rem, 12vh, 4rem); }
  .ventures { gap: 0.6rem; font-size: clamp(1.3rem, 4vw, 2rem); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
