/* Hazelwell teaser — two-bar header (take B), left-aligned hero. */

:root {
  --near-black: #070A10;
  --cream: #F7F1E6;
  --salmon: #D9614A;
  --gold: #FFC07A;
  --glow-orange: #FF8A3A;
  --announce-h: 2.15rem;
  --nav-h: 4.15rem;
  --header-h: calc(var(--announce-h) + var(--nav-h));
}

/* -------------------------------------------------------------------------
   Two-bar header
   ------------------------------------------------------------------------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  color: var(--cream);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

/* Quiet announcement — Near Black, small type, no claims, no figures. */
.announce {
  position: relative;
  box-sizing: border-box;
  min-height: var(--announce-h);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 10.5rem 0.4rem 1.5rem;
  background: var(--near-black);
  border-bottom: 1px solid rgba(247, 241, 230, 0.07);
}

.announce p {
  margin: 0;
  color: rgba(247, 241, 230, 0.86);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.35;
  text-align: center;
  text-shadow: none;
}

.announce-mail {
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(247, 241, 230, 0.92);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  border-bottom: 1px solid var(--salmon);
  padding-bottom: 0.04em;
  white-space: nowrap;
}

.announce-mail:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.announce-mail:focus-visible {
  outline: 2px solid var(--cream);
  outline-offset: 3px;
}

/* Nav bar — take B branch field. */
.nav {
  position: relative;
  isolation: isolate;
  height: var(--nav-h);
  overflow: hidden;
  background-color: var(--near-black);
  background-image: url("assets/branches-b.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.nav-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: rgba(7, 10, 16, 0.06);
}

.nav-inner {
  position: relative;
  z-index: 2;
  height: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.nav-logo {
  position: relative;
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  text-decoration: none;
  margin-left: -0.15rem;
}

.nav-logo img {
  display: block;
  height: 2.75rem;
  width: auto;
  filter: drop-shadow(0 0 8px rgba(7, 10, 16, 0.9))
          drop-shadow(0 0 2px rgba(7, 10, 16, 0.95));
}

.nav-logo::before,
.nav-links::before {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: -1;
  border-radius: 999px;
}

.nav-logo::before {
  inset: -0.85rem -1.4rem;
  background: radial-gradient(
    ellipse at 30% 50%,
    rgba(7, 10, 16, 0.88) 0%,
    rgba(7, 10, 16, 0.62) 48%,
    rgba(7, 10, 16, 0) 74%
  );
}

.nav-links {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.55rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links::before {
  inset: -0.7rem -1.15rem;
  background: radial-gradient(
    ellipse at 70% 50%,
    rgba(7, 10, 16, 0.88) 0%,
    rgba(7, 10, 16, 0.6) 52%,
    rgba(7, 10, 16, 0) 76%
  );
}

.nav-links a {
  color: var(--cream);
  font-size: 0.8125rem;
  font-weight: 450;
  letter-spacing: 0.045em;
  text-decoration: none;
  text-shadow: 0 1px 10px rgba(7, 10, 16, 0.95), 0 0 2px rgba(7, 10, 16, 1);
  white-space: nowrap;
  padding: 0.2em 0;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.nav-links a:hover {
  color: var(--gold);
  border-bottom-color: rgba(255, 192, 122, 0.55);
}

/* Keep nav Contact in line with other nav links; announce + hero emails stay underlined. */
.nav-links a[href^="mailto"] {
  border-bottom-color: transparent !important;
}
.nav-links a[href^="mailto"]:hover {
  border-bottom-color: rgba(255, 192, 122, 0.55) !important;
}

.nav-links a:focus-visible {
  outline: 2px solid var(--cream);
  outline-offset: 4px;
}

/* Hero must clear the fixed header. The well still fills the viewport
   behind it; only the chrome is opaque. */
.page {
  padding-top: calc(var(--header-h) + 3.25rem) !important;
}

/* -------------------------------------------------------------------------
   Hero type on the well
   ------------------------------------------------------------------------- */

html { background: #000; }
body { background: transparent; color: var(--cream); }

#sok {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
}

video#sok {
  object-fit: cover;
  background: #000 url("media/sok-well-overhead-poster.jpg") center / cover no-repeat;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  video#sok { display: none; }
  html { background: #000 url("media/sok-well-overhead-poster.jpg") center / cover no-repeat fixed; }
  .contact { transition: none; }
}

/* Poster only on small screens (same treatment as reduced motion). */
@media (max-width: 700px) {
  video#sok { display: none; }
  html { background: #000 url("media/sok-well-overhead-poster.jpg") center / cover no-repeat fixed; }
}

#veil {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.page, footer { position: relative; z-index: 2; }

.tagline {
  margin: 0 0 1.45rem;
  color: var(--cream) !important;
  text-shadow: 0 0 26px rgba(0, 3, 8, 0.95), 0 0 6px rgba(0, 3, 8, 0.8);
  font-size: clamp(2.05rem, 1.25rem + 2.3vw, 3.1rem);
  line-height: 1.16;
}

.intro {
  margin: 0 auto;
  font-size: 1.15rem;
  line-height: 1.65;
  font-weight: 450;
  color: #E3E6EC !important;
  text-shadow: 0 0 16px rgba(0, 3, 8, 1), 0 0 4px rgba(0, 3, 8, 0.9);
}

.intro, footer, footer * {
  color: #D3D9E2 !important;
  text-shadow: 0 0 16px rgba(0, 3, 8, 1), 0 0 4px rgba(0, 3, 8, 0.9);
}

.contact-wrap { margin: 3.35rem 0 0; }

a[href^="mailto"] { color: var(--cream) !important; }
a[href^="mailto"]:hover { color: var(--salmon-tint) !important; }

.contact {
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  color: rgba(247, 241, 230, 0.58) !important;
  border-bottom-color: rgba(217, 97, 74, 0.4) !important;
  text-shadow: 0 0 12px rgba(0, 3, 8, 0.85);
}

.contact:hover {
  color: var(--cream) !important;
  border-bottom-color: var(--salmon) !important;
}


/* Left-aligned hero */
.take-b2-left .page {
  align-items: flex-start;
  text-align: left;
  padding-left: max(1.5rem, calc((100vw - 72rem) / 2 + 1.5rem));
  padding-right: 1.5rem;
}

.take-b2-left .intro {
  margin-left: 0;
  margin-right: 0;
  max-width: 32em;
}

.take-b2-left footer {
  text-align: left;
  padding-left: max(1.5rem, calc((100vw - 72rem) / 2 + 1.5rem));
  padding-right: 1.5rem;
}

.take-b2-left #veil {
  background:
    radial-gradient(ellipse 48% 46% at 26% 50%, rgba(0, 2, 6, 0.8) 0%, rgba(0, 2, 6, 0.54) 54%, rgba(0, 2, 6, 0) 100%),
    radial-gradient(ellipse 90% 85% at 50% 50%, rgba(0, 0, 0, 0) 60%, rgba(0, 0, 0, 0.35) 100%);
}

/* -------------------------------------------------------------------------
   Mobile
   ------------------------------------------------------------------------- */

@media (max-width: 720px) {
  :root {
    --announce-h: auto;
    --nav-h: 3.65rem;
  }

  .announce {
    min-height: 0;
    padding: 0.45rem 1rem 0.5rem;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 0.15rem 0.85rem;
  }

  .announce p {
    text-align: left;
    font-size: 0.6875rem;
    line-height: 1.4;
  }

  .announce-mail {
    position: static;
    transform: none;
    font-size: 0.6875rem;
  }

  .nav-inner {
    padding: 0 0.9rem;
    gap: 0.75rem;
  }

  .nav-logo img {
    height: 2.2rem;
  }

  .nav-logo::before {
    inset: -0.55rem -0.8rem;
  }

  .nav-links {
    gap: 0.7rem;
  }

  .nav-links a {
    font-size: 0.75rem;
    letter-spacing: 0.04em;
  }

  .page {
    padding-top: 7.25rem !important;
  }

  .take-b2-left .page,
  .take-b2-left footer {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .take-b2-left #veil {
    background:
      radial-gradient(ellipse 80% 44% at 40% 50%, rgba(0, 2, 6, 0.84) 0%, rgba(0, 2, 6, 0.58) 55%, rgba(0, 2, 6, 0) 100%),
      radial-gradient(ellipse 95% 85% at 50% 50%, rgba(0, 0, 0, 0) 60%, rgba(0, 0, 0, 0.35) 100%);
  }
}

@media (max-width: 480px) {
  .nav-inner {
    padding: 0 0.7rem;
    gap: 0.5rem;
  }

  .nav-logo img {
    height: 2rem;
  }

  .tagline { font-size: 1.85rem; }
  .intro { font-size: 1.04rem; }
  .contact-wrap { margin-top: 2.6rem; }
}

/* Still-shot helper: poster only, no video (headless capture). */
html.still-shot video#sok {
  display: none !important;
}
html.still-shot {
  background: #000 url("media/sok-well-overhead-poster.jpg")
    center / cover no-repeat fixed !important;
}
