@font-face {
  font-family: "Barlow Condensed";
  src: url("type/barlow-condensed-latin-800-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("type/barlow-condensed-latin-800-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 800;
  font-display: swap;
}
:root {
  --ink: #082c36;
  --paper: #faf6e9;
  --gold: #ffd04b;
  --teal: #215a5c;
  --rule: #b8c4b8;
  --display: "Barlow Condensed", Impact, "Arial Narrow", sans-serif;
  --mono: "Cascadia Mono", Consolas, "Liberation Mono", monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.55 "Segoe UI", Helvetica, Arial, sans-serif; }
a { color: inherit; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #b6411b; outline-offset: 4px; }
figure, h1, h2, h3 { margin: 0; }
h1, h2 { font-family: var(--display); font-weight: 800; }
img { display: block; max-width: 100%; }
.wrap { width: min(1280px, 88%); margin-inline: auto; }
.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { flex: none; width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.skip-link { position: absolute; z-index: 20; inset: 8px auto auto 8px; transform: translateY(-160%); background: var(--gold); color: var(--ink); padding: 10px 16px; }
.skip-link:focus { transform: none; }

/* Masthead */
.masthead { background: var(--paper); border-bottom: 1px solid var(--ink); position: relative; z-index: 2; }
.masthead-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; min-height: 76px; }
.wordmark { display: inline-flex; align-items: center; flex: 0 0 auto; text-decoration: none; gap: 9px; }
.wordmark img { width: 52px; height: 52px; object-fit: contain; }
.wordmark span { font: 800 22px/.85 var(--display); text-transform: uppercase; letter-spacing: -.01em; }
.wordmark b { display: block; font-weight: 800; }
.primary-nav { margin-left: auto; display: flex; align-items: center; gap: clamp(18px, 2.5vw, 40px); }
.primary-nav a { text-decoration: none; padding-block: 10px; font-weight: 650; font-size: .9rem; }
.primary-nav a:hover, .site-footer a:hover { text-decoration: underline; text-underline-offset: 5px; }
.bag-link { display: flex; align-items: center; gap: 9px; border: 1px solid var(--ink); border-radius: 2px; padding: 7px 12px; font-size: .86rem; font-weight: 700; text-decoration: none; }
.bag-link b { background: var(--ink); color: var(--paper); padding: 3px 5px; min-width: 20px; text-align: center; font: 700 11px/1.1 var(--mono); }
.bag-link:hover { background: #ebe7d7; }

/* Keep the open horizon and foreground water clear of the campaign title. */
.hero { position: relative; isolation: isolate; background: #70cbef; color: var(--ink); }
.hero-stage { position: relative; height: clamp(550px, 78svh, 850px); overflow: hidden; }
.hero.camera-enabled { height: calc(100svh + clamp(425px, 110svh, 1100px)); }
.hero.camera-enabled .hero-stage { position: sticky; top: 0; height: 100svh; }
#offshore-backdrop, #water-scene, #eye-level-water { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
#offshore-backdrop { display: block; object-fit: cover; object-position: center top; }
#shallows-backdrop[hidden], #diving-manatee[hidden] { display: none; }
#eye-level-water { z-index: 2; }
.hero-stage::after {
  content: ""; position: absolute; z-index: 2; inset: auto 0 0; height: clamp(24px, 5svh, 56px);
  background: linear-gradient(to bottom, transparent, rgb(201 197 168 / .21) 30%, rgb(201 197 168 / .82) 76%, #c9c5a8);
  opacity: var(--sand-join, 0); pointer-events: none;
}
.hero:not(.camera-enabled) .hero-stage::after { opacity: 1; height: 13%; }
.hero-inner { position: relative; height: 100%; }
.hero-copy { position: absolute; inset: 0 0 auto; z-index: 4; padding-top: clamp(40px, 8svh, 92px); text-align: center; }
.hero-kicker, .folio, .scene-label, .motion-button, .field-photo figcaption, .marker-strip span, .site-footer > div > div > span {
  font-family: var(--mono); font-size: .71rem; font-weight: 650; line-height: 1.4; text-transform: uppercase; letter-spacing: .115em;
}
.hero-kicker { margin: 0 0 18px; display: flex; justify-content: center; align-items: center; gap: 9px; }
.signal { position: relative; width: 18px; height: 13px; border-left: 2px solid currentColor; }
.signal::after { content: ""; position: absolute; top: 1px; left: 0; width: 13px; height: 8px; background: var(--ink); clip-path: polygon(0 0, 100% 0, 75% 50%, 100% 100%, 0 100%); }
.hero h1 { font-size: clamp(59px, 6.8vw, 112px); line-height: .94; text-transform: uppercase; letter-spacing: -.022em; }
.hero h1 em { display: inline-block; font-style: italic; color: #ffda53; -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; text-shadow: 1px 2px var(--ink); }
.hero-deck { margin: 16px 0 19px; font-weight: 600; font-size: clamp(1rem, 1.35vw, 1.22rem); }
.hero-links { display: flex; justify-content: center; align-items: center; gap: 25px; }
.action, .hero-shop, .ink-link { font-weight: 700; font-size: .92rem; }
.action { display: inline-flex; justify-content: center; align-items: center; gap: 15px; padding: 13px 18px; text-decoration: none; border: 1px solid transparent; border-radius: 2px; }
.primary-action { color: var(--paper); background: var(--ink); border-color: var(--ink); }
.primary-action:hover { background: #175563; }
.hero-shop { display: inline-flex; align-items: center; gap: 8px; padding: 7px 0; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.hero-shop span { font-size: 1.25em; text-decoration: none; }
.sighting { position: absolute; z-index: 1; width: clamp(148px, 15vw, 245px); aspect-ratio: 1; top: 77%; right: 9%; transform: translateY(calc(-50% + var(--mascot-shift, 0px))); pointer-events: none; container-type: inline-size; --waterline: calc(65cqw + var(--contact-lift, 0px)); }
.sighting img {
  width: 100%; height: auto; transform-origin: 50% 70%;
  /* Keep the animal inside the original artwork; the ocean supplies its water. */
  clip-path: polygon(
    19.54% 7.97%, 80.38% 7.97%, 80.38% 50.80%, 79.11% 52.87%, 78.71% 53.59%,
    79.19% 55.42%, 79.74% 57.50%, 80.22% 59.41%, 80.54% 61%, 80.46% 62.04%,
    79.51% 62.76%, 77.43% 63.64%, 74.08% 64.11%, 69.86% 64.67%, 65.47% 65.31%,
    59.57% 65.79%, 51.59% 66.19%, 44.02% 66.11%, 37.88% 65.63%, 33.65% 64.99%,
    30.54% 64.11%, 29.74% 63.32%, 30.54% 60.53%, 31.66% 57.42%, 31.34% 56.46%,
    26.71% 54.63%, 25.12% 53.19%, 23.76% 51.83%, 19.54% 50.64%
  );
  transform: translate(calc(-26% * var(--dive, 0)), calc(4% + 58% * var(--dive, 0) + var(--bob, 0px)))
    rotate(calc(-24deg * var(--dive, 0) + var(--roll, 0deg))) scale(calc(1 - .22 * var(--dive, 0)));
}
.sighting-surface, .sighting-under { position: absolute; inset: 0 0 auto; }
.sighting-surface { height: 100%; mask-image: linear-gradient(#000 calc(var(--waterline) - 2cqw), transparent calc(var(--waterline) + .5cqw)); }
.sighting-under {
  height: 180%; opacity: var(--under-alpha, .38);
  mask-image: linear-gradient(transparent calc(var(--waterline) - 2cqw), #000 var(--waterline), rgb(0 0 0 / .74) calc(var(--waterline) + 8cqw), transparent calc(var(--waterline) + 22cqw));
  mix-blend-mode: multiply;
  filter: sepia(.85) saturate(1.7) hue-rotate(132deg) brightness(.85) blur(.8px);
}
.water-contact {
  position: absolute; width: 160%; height: 40%; left: -30%; top: 49cqw;
  pointer-events: none;
}
.scene-footer { position: absolute; z-index: 3; left: 0; right: 0; bottom: 16px; display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.scene-label, .motion-button { color: var(--ink); background: rgb(250 246 233 / .94); padding: 5px 9px; border: 1px solid rgb(8 44 54 / .55); }
.scene-label { display: inline-flex; align-items: center; gap: 8px; font-size: .6rem; }
.scene-label .icon { width: 17px; height: 17px; }
.scene-label i { height: 10px; border-left: 1px solid currentColor; transform: rotate(18deg); }
.motion-button { display: inline-flex; align-items: center; gap: 7px; min-height: 32px; cursor: pointer; font-size: .6rem; }
.motion-button:hover { background: var(--paper); }
.motion-button[hidden], .motion-button[aria-pressed=true] .motion-off, .motion-button[aria-pressed=false] .motion-on { display: none; }
.motion-symbol { height: 10px; width: 9px; border-inline: 3px solid; }
.motion-button[aria-pressed=false] .motion-symbol { width: 0; height: 0; border: 5px solid transparent; border-left: 8px solid; border-right: 0; }
.marker-strip { background: var(--ink); color: #fff9e9; border-top: 1px solid #6daca2; }
.marker-strip .wrap { display: grid; grid-template-columns: repeat(3,1fr); align-items: center; }
.marker-strip span { min-height: 61px; display: flex; align-items: center; justify-content: center; gap: 13px; font-size: .7rem; }
.marker-strip span + span { position: relative; }
.marker-strip span + span::before { content: ""; position: absolute; left: 0; height: 16px; border-left: 1px solid #537077; }
.marker-strip .icon { color: var(--gold); }

/* Printed field notes */
.paper-section, .field-guide { padding-block: clamp(68px, 8vw, 120px); }
.mission-grid, .guide-grid { display: grid; align-items: center; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(44px, 7.5vw, 132px); }
.folio { display: flex; align-items: center; gap: 11px; margin: 0 0 20px; color: var(--teal); }
.folio span { min-width: 26px; padding: 2px 4px; border: 1px solid currentColor; text-align: center; font-size: .64rem; }
.paper-section h2, .field-guide h2, .flag-section h2, .dock-intro h2 { font-family: var(--display); text-transform: uppercase; font-weight: 800; font-size: clamp(3.55rem, 6.1vw, 6.5rem); line-height: .87; letter-spacing: -.012em; }
.mission-copy > p:not(.folio), .guide-grid header > p:not(.folio), .flag-grid > div > p:not(.folio) { max-width: 45ch; margin: 20px 0 0; line-height: 1.63; font-size: 1.05rem; }
.ink-link { display: inline-flex; align-items: center; gap: 13px; border-bottom: 1px solid; text-decoration: none; padding-block: 4px; margin-top: 20px; }
.ink-link:hover { color: var(--teal); }
.field-photo { min-width: 0; padding: 10px 10px 0; border: 1px solid #90a197; background: #fffdf4; transform: rotate(1deg); }
.photo-image { aspect-ratio: 1.58; overflow: hidden; background: #68a59c; }
.photo-image img { width: 100%; height: 100%; object-fit: cover; }
.field-photo figcaption { padding: 10px 2px; display: flex; justify-content: space-between; align-items: center; gap: 14px; font-size: .64rem; font-weight: 500; color: var(--teal); }
.field-photo figcaption b { font-weight: 800; color: var(--ink); }
.field-guide { color: var(--paper); background: #103b43; }
.guide-grid { align-items: start; }
.field-guide .folio { color: #f4cf6a; }
.field-guide header > p:last-child { color: #d6e6de; }
.field-notes { border-top: 1px solid #78918e; }
.field-notes details { border-bottom: 1px solid #78918e; }
.field-notes summary { display: flex; align-items: center; cursor: pointer; gap: clamp(14px, 2vw, 32px); padding: 16px 2px; font: 800 clamp(25px, 2.4vw, 39px)/1.18 var(--display); list-style: none; }
.field-notes summary::-webkit-details-marker { display: none; }
.field-notes summary span { color: var(--gold); font: 500 12px/1 var(--mono); letter-spacing: .06em; }
.field-notes summary i { display: inline-block; position: relative; width: 16px; height: 16px; margin-left: auto; color: var(--gold); }
.field-notes summary i::before, .field-notes summary i::after { content: ""; position: absolute; top: 7px; left: 0; width: 16px; height: 2px; background: currentColor; }
.field-notes summary i::after { transform: rotate(90deg); }
.field-notes details[open] summary i::after { transform: none; }
.field-notes details > div { margin-left: clamp(30px, 3.3vw, 47px); padding-bottom: 22px; color: #e0ece4; }
.field-notes p { margin: 0 0 12px; }
.field-notes a { font-size: .92rem; font-weight: 650; color: var(--gold); text-underline-offset: 4px; }

.flag-section { background: #efcb59; padding-block: clamp(46px, 6vw, 90px); border-top: 1px solid #c1a348; }
.flag-grid { display: grid; align-items: center; grid-template-columns: .85fr 1fr; gap: clamp(32px, 6vw, 100px); }
.flag-grid figure { width: 100%; max-width: 530px; }
.flag-grid figure img { width: 100%; height: auto; transform: rotate(-4deg); }
.flag-grid h2 { font-size: clamp(2.8rem, 4.8vw, 5.1rem); }
.flag-grid .folio { color: #344b3a; }
.site-footer { background: var(--ink); color: var(--paper); padding-block: 30px; }
.site-footer > div, .site-footer > div > div { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.site-footer strong { font: 800 22px/1 var(--display); text-transform: uppercase; }
.site-footer > div > div > span { color: #c7d9ce; font-size: .62rem; }
.site-footer a { text-decoration: none; font-weight: 650; font-size: .9rem; }
.site-footer a span { margin-left: 6px; color: var(--gold); }

@media (max-width: 920px) {
  .wrap { width: 90%; }
  .mission-grid, .guide-grid { gap: 42px; grid-template-columns: .9fr 1.1fr; }
}
@media (max-width: 700px) {
  #offshore-backdrop { object-position: 16% top; }
  .hero-stage { height: clamp(545px, 76svh, 690px); }
  .hero-copy { padding-top: 36px; }
  .hero h1 { font-size: clamp(55px, 11vw, 77px); }
  .hero h1 em { display: block; }
  .hero-deck { margin: 13px 0 16px; }
  .sighting { width: clamp(120px, 24vw, 157px); right: 9%; top: 74%; }
  .scene-footer { bottom: 12px; }
  .scene-label, .motion-button { font-size: .54rem; white-space: nowrap; letter-spacing: .06em; }
  .wrap { width: 89%; }
  .masthead-inner { min-height: 64px; gap: 18px; }
  .wordmark { gap: 4px; }
  .wordmark img { width: 44px; height: 44px; }
  .wordmark span { font-size: 18px; }
  .primary-nav { gap: 14px; }
  .primary-nav a { font-size: .82rem; }
  .bag-link { padding: 6px 9px; gap: 5px; }
  .bag-link > span { display: none; }
  .marker-strip span { gap: 4px; flex-direction: column; text-align: center; font-size: .54rem; letter-spacing: .055em; min-height: 64px; }
  .marker-strip .icon { width: 19px; height: 19px; }
  .mission-grid, .guide-grid, .flag-grid { grid-template-columns: 1fr; gap: 35px; }
  .paper-section, .field-guide { padding-block: 58px; }
  .mission-copy > p:not(.folio), .guide-grid header > p:not(.folio), .flag-grid > div > p:not(.folio) { font-size: 1rem; margin-top: 16px; }
  .photo-image { aspect-ratio: 1.65; }
  .field-notes details > div { margin-left: 31px; }
  .flag-grid { gap: 22px; }
  .flag-grid figure { width: 78%; margin-inline: auto; }
  .site-footer > div > div { display: grid; gap: 5px; }
}
@media (max-width: 500px) {
  .masthead-inner { display: grid; grid-template-columns: 1fr auto; column-gap: 10px; row-gap: 0; padding-block: 5px 0; }
  .primary-nav { order: 3; grid-column: 1 / -1; width: 100%; justify-content: space-between; border-top: 1px solid #d0d6c8; margin-top: 4px; }
  .primary-nav a { padding-block: 6px; }
  .bag-link > span { display: inline; }
  .action, .hero-shop { font-size: .83rem; }
  .action { padding: 10px 12px; gap: 8px; }
}
@media (max-width: 350px) {
  .site-footer > div { align-items: flex-start; flex-direction: column; }
}
@media (max-height: 500px) and (orientation: landscape) {
  .camera-enabled .hero-copy { padding-top: 14px; }
  .camera-enabled .hero-kicker { margin-bottom: 6px; }
  .camera-enabled h1 { font-size: clamp(42px, 6vw, 66px); }
  .camera-enabled h1 em { display: inline-block; }
  .camera-enabled .hero-deck { margin-block: 6px 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}


@media (max-width: 390px) {
  .scene-label .scene-location, .scene-label i { display: none; }
}
@media (max-width: 360px) {
  .scene-label { gap: 5px; padding-inline: 6px; }
  .hero-links { gap: 18px; }
}
