/* All visual assets are local. Vercel Web Analytics is loaded separately in index.html. */
:root {
  color-scheme: dark;
  --navy: #1b2e34;
  --white: #faf9f7;
  --gutter: clamp(28px, 5.6vw, 108px);
  --wordmark-canvas-width: clamp(260px, 23vw, 336px);
}
*, *::before, *::after { box-sizing: border-box; }
html { min-width: 280px; background: var(--navy); }
body { margin: 0; color: var(--white); background: var(--navy); -webkit-font-smoothing: antialiased; }
a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
[hidden] { display: none !important; }
.page {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  overflow: clip;
  padding: max(clamp(32px, 5.4vh, 66px), env(safe-area-inset-top))
           max(var(--gutter), env(safe-area-inset-right))
           max(clamp(24px, 4vh, 44px), env(safe-area-inset-bottom))
           max(var(--gutter), env(safe-area-inset-left));
}
.scene { position: absolute; inset: 0; z-index: 0; pointer-events: none; background: var(--navy); }
.scene__poster, .scene__poster img, .scene__video, .scene__shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.scene__poster img, .scene__video { object-fit: cover; object-position: 50% 50%; }
/* The poster is an independent opaque layer, not the browser's video poster.
   There is deliberately no HTML autoplay attribute: playback is requested by JS.
   WebKit permits muted play() while the element is visually covered.
   Reveal only after playback advances; hide immediately on pause/block/error. */
.scene__video {
  display: block;
  visibility: visible;
  z-index: 0;
  opacity: 0;
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
.scene__poster {
  display: block;
  z-index: 1;
  opacity: 1;
  background: var(--navy);
  pointer-events: none;
  transform: translateZ(0);
}
.scene__shade { z-index: 2; }
.scene.is-video-playing .scene__video { opacity: 1; }
.scene.is-video-playing .scene__poster { opacity: 0; }
/* Secondary protection only: the poster/opacity state is the primary guard,
   because Safari does not honor these pseudo-elements in every OS version. */
.scene__video::-webkit-media-controls { display: none !important; }
.scene__video::-webkit-media-controls-enclosure { display: none !important; }
.scene__video::-webkit-media-controls-panel { display: none !important; }
.scene__video::-webkit-media-controls-play-button { display: none !important; }
.scene__video::-webkit-media-controls-start-playback-button {
  display: none !important;
  -webkit-appearance: none;
}
/* One shared left content edge for the logo, headline and email. */
.masthead, .message, .footer { position: relative; z-index: 1; grid-column: 1; min-width: 0; }

.scene__shade {
  background:
    linear-gradient(0deg, rgba(0, 12, 28, .80) 0%, rgba(0, 14, 31, .46) 23%, rgba(0, 16, 34, .03) 58%, rgba(0, 14, 31, .32) 100%),
    linear-gradient(90deg, rgba(0, 14, 31, .25), rgba(0, 14, 31, .02) 65%);
}
.masthead { display: flex; align-items: center; position: relative; }
/* Transparent v9 wordmark (outer empty image margins trimmed): shared left edge and unchanged overall width.
   The top margin preserves the previous visible logo position. */
.wordmark {
  display: block;
  width: calc(var(--wordmark-canvas-width) * 0.9333333333);
  max-width: 100%;
  height: auto;
  margin: calc(var(--wordmark-canvas-width) * 0.06) 0 0;
}
.message { align-self: end; padding-top: 180px; padding-bottom: clamp(48px, 8vh, 94px); }
h1 {
  margin: 0;
  max-width: 1050px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(46px, 5.35vw, 100px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -.037em;
  text-wrap: balance;
}
h1 span { white-space: nowrap; }
.footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "contact locations";
  align-items: center;
  gap: 20px;
  min-height: 44px;
}
.footer .contact { grid-area: contact; justify-self: start; }
.locations {
  grid-area: locations;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 0;
  color: rgba(250, 249, 247, .9);
  font: 13px/1.5 Arial, Helvetica, sans-serif;
  letter-spacing: .065em;
  white-space: nowrap;
}
.locations__separator { opacity: .64; }

.contact {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 17px;
  min-height: 44px;
  width: fit-content;
  text-decoration: none;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: .04em;
}
.contact::after { content: ''; position: absolute; left: 0; right: 34px; bottom: 6px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 180ms ease; }
.contact svg { flex-shrink: 0; transition: transform 180ms ease; }
@media (hover: hover) {
  .contact:hover::after { transform: scaleX(1); }
  .contact:hover svg { transform: translate(2px, -2px); }
}
a:focus-visible { outline: 2px solid var(--white); outline-offset: 6px; border-radius: 2px; }
@media (max-width: 600px) {
  :root { --gutter: 26px; }
  .page { padding-top: max(34px, env(safe-area-inset-top)); padding-bottom: max(22px, env(safe-area-inset-bottom)); }
  .wordmark { --wordmark-canvas-width: 240px; }
  .message { padding-top: 190px; padding-bottom: clamp(40px, 7vh, 64px); }
  h1 { font-size: clamp(34px, 8.8vw, 51px); line-height: 1.15; letter-spacing: -.034em; }
  .contact { font-size: 12px; letter-spacing: .025em; gap: 12px; }
  .contact::after { right: 30px; }
  .footer {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "contact" "locations";
    column-gap: 12px;
    row-gap: 3px;
    align-items: center;
  }
  .locations { justify-self: start; font-size: 11px; gap: 10px; letter-spacing: .07em; }

  .scene__shade { background: linear-gradient(0deg, rgba(0, 12, 28, .90), rgba(0, 14, 31, .47) 25%, rgba(0, 16, 34, .05) 58%, rgba(0, 14, 31, .42)); }
}
@media (max-width: 350px) {
  :root { --gutter: 20px; }
  h1 { font-size: 30px; }
  .contact { font-size: 11px; gap: 10px; }
  .footer { grid-template-columns: minmax(0, 1fr); grid-template-areas: "contact" "locations"; }
  .wordmark { --wordmark-canvas-width: 224px; }

}
@media (max-height: 520px) and (orientation: landscape) {
  .page { padding-top: 24px; padding-bottom: 15px; }
  .wordmark { --wordmark-canvas-width: 216px; }
  .message { padding-top: 56px; padding-bottom: 22px; }
  h1 { font-size: clamp(32px, 4.7vw, 50px); }
}
@media (prefers-reduced-motion: reduce) {
  .scene .scene__video { opacity: 0 !important; }
  .scene .scene__poster { opacity: 1 !important; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
  .page { background: var(--navy); min-height: 100vh; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .scene__video { display: none; }
  .scene .scene__poster { opacity: 1; }
}
