@font-face {
  font-family: "Bricolage Grotesque";
  src: url("assets/fonts/bricolage-grotesque-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("assets/fonts/instrument-sans-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("assets/fonts/jetbrains-mono-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
}

:root {
  --fathom: #0f2a5c;
  --signal: #ffd23f;
  --marine: #10222e;
  --foam: #f7faf9;
  --slate: #5b6b72;
  --hairline: rgba(16, 34, 46, 0.1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--foam); }
body {
  margin: 0;
  color: var(--marine);
  background: var(--foam);
  font-family: "Instrument Sans", Arial, sans-serif;
  font-weight: 400;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.hero {
  position: relative;
  isolation: isolate;
  min-height: calc(100svh - 80px);
  overflow: hidden;
  display: flex;
  align-items: flex-start;
}
.painting,
.painting-base,
.water { position: absolute; inset: 0; }
.painting { z-index: -3; overflow: hidden; background: #e7cf9c; }
.painting-base,
.water {
  background-image: url("assets/kenship-shore.jpg");
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}
.water {
  top: 41.6%;
  opacity: 0.22;
  will-change: transform, filter;
}
.water-a {
  animation: tide 10s ease-in-out infinite alternate;
  mask-image: linear-gradient(to bottom, transparent 0, #000 8%, #000 76%, transparent 100%);
}
.water-b {
  opacity: 0.1;
  animation: shimmer 14s ease-in-out infinite alternate-reverse;
  mask-image: repeating-linear-gradient(to bottom, transparent 0 5px, #000 6px 8px, transparent 9px 15px);
}
.light-fleck {
  position: absolute;
  left: 22%;
  right: 8%;
  top: 47%;
  height: 36%;
  opacity: 0.18;
  mix-blend-mode: screen;
  background: repeating-linear-gradient(174deg, transparent 0 13px, rgba(255, 237, 177, 0.45) 14px 15px, transparent 16px 28px);
  filter: blur(0.5px);
  animation: glint 8s ease-in-out infinite alternate;
}
.signal-flag {
  position: absolute;
  left: 74.55%;
  top: 36.4%;
  width: 10px;
  height: 34px;
  filter: drop-shadow(0 1px 1px rgba(16, 34, 46, 0.22));
}
.signal-flag::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 2px;
  height: 34px;
  background: var(--fathom);
}
.signal-flag i,
.signal-flag b {
  position: absolute;
  left: 2px;
  width: 9px;
  height: 6px;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}
.signal-flag i { top: 2px; background: var(--fathom); }
.signal-flag b { top: 7px; background: var(--signal); }
.wash {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(247, 250, 249, 0.8) 0%, rgba(247, 250, 249, 0.54) 33%, rgba(247, 250, 249, 0) 58%),
    linear-gradient(180deg, rgba(247, 250, 249, 0.22), rgba(247, 250, 249, 0) 43%);
}

.site-header {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 30px clamp(24px, 5vw, 76px);
}
.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 13px;
}
.brand-lockup img {
  display: block;
  width: 46px;
  height: 48px;
}
.brand-lockup span {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 34px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.055em;
}
.nav-link {
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(15, 42, 92, 0.38);
  color: var(--fathom);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-copy {
  position: relative;
  z-index: 1;
  top: auto;
  left: auto;
  right: auto;
  width: min(650px, 56vw);
  margin-left: clamp(24px, 7.5vw, 118px);
  margin-top: clamp(145px, 15vh, 170px);
}
.eyebrow {
  margin: 0 0 23px;
  color: var(--fathom);
  font-size: 11px;
  line-height: 1.3;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
h1 {
  margin: 0;
  max-width: 700px;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: clamp(48px, 6.4vw, 94px);
  font-weight: 700;
  line-height: 0.94;
  letter-spacing: -0.055em;
  text-wrap: balance;
}
.support {
  max-width: 500px;
  margin: 29px 0 20px;
  color: var(--marine);
  font-size: clamp(15px, 1.16vw, 18px);
  font-weight: 500;
  line-height: 1.64;
}
.support span {
  padding: 0.08em 0;
  background: rgba(247, 250, 249, 0.52);
  box-shadow: 0.28em 0 0 rgba(247, 250, 249, 0.52), -0.28em 0 0 rgba(247, 250, 249, 0.52);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.install {
  display: flex;
  align-items: center;
  gap: 24px;
  min-width: 294px;
  padding: 6px 7px 6px 18px;
  border: 1px solid rgba(15, 42, 92, 0.55);
  border-radius: 3px;
  color: var(--fathom);
  background: rgba(247, 250, 249, 0.84);
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: background 0.2s, transform 0.2s;
}
.install:hover { background: var(--foam); transform: translateY(-1px); }
.install:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; }
.install code {
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  font-weight: 500;
}
.copy-state {
  margin-left: auto;
  padding: 9px 12px;
  color: var(--foam);
  background: var(--fathom);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.support code {
  color: var(--fathom);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.92em;
  font-weight: 500;
}
.scroll-cue {
  position: absolute;
  right: clamp(24px, 4.5vw, 72px);
  bottom: 26px;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--marine);
  font-size: 12px;
  font-weight: 500;
}
.scroll-cue span { width: 38px; height: 1px; background: currentColor; }

footer {
  min-height: 80px;
  padding: 0 clamp(24px, 4.5vw, 72px);
  display: flex;
  align-items: center;
  gap: 30px;
  color: var(--marine);
  background: var(--foam);
  border-top: 1px solid var(--hairline);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
footer a:hover { color: var(--fathom); text-decoration: underline; text-underline-offset: 4px; }
footer p { margin-left: auto; }

@keyframes tide {
  from { transform: translate3d(-0.22%, 0, 0) scale(1.005); filter: saturate(0.97); }
  to { transform: translate3d(0.22%, 2px, 0) scale(1.008); filter: saturate(1.04); }
}
@keyframes shimmer {
  from { transform: translate3d(0.12%, -1px, 0); filter: brightness(0.98); }
  to { transform: translate3d(-0.12%, 1px, 0); filter: brightness(1.06); }
}
@keyframes glint {
  from { transform: translateX(-6px); opacity: 0.1; }
  to { transform: translateX(6px); opacity: 0.21; }
}

@media (max-width: 1100px) {
  .hero-copy { left: auto; }
}

@media (max-width: 760px) {
  .hero { min-height: calc(100svh - 104px); align-items: flex-start; }
  .painting-base,
  .water {
    background-size: auto 100%;
    background-position: 37% center;
  }
  .signal-flag { display: none; }
  .wash {
    background: linear-gradient(180deg, rgba(247, 250, 249, 0.9) 0%, rgba(247, 250, 249, 0.68) 43%, rgba(247, 250, 249, 0) 68%);
  }
  .site-header { padding: 18px 20px; }
  .brand-lockup { gap: 10px; }
  .brand-lockup img { width: 46px; height: 48px; }
  .brand-lockup span { font-size: 31px; }
  .hero-copy {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    width: auto;
    margin: 0;
    padding: 132px 20px 0;
  }
  h1 {
    font-size: clamp(43px, 13vw, 66px);
    line-height: 0.96;
  }
  .eyebrow { width: 82%; margin-bottom: 18px; font-size: 9px; }
  .support { max-width: 94%; margin: 22px 0 20px; font-size: 14px; line-height: 1.52; }
  .install { min-width: 0; width: 100%; max-width: 330px; }
  .scroll-cue {
    right: 20px;
    bottom: 18px;
    color: var(--foam);
    text-shadow: 0 1px 4px rgba(16, 34, 46, 0.65);
  }
  footer { min-height: 104px; padding: 18px 20px; flex-wrap: wrap; gap: 17px 24px; }
  footer p { width: 100%; margin: 0; }
}

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