:root { --storyboard-art: url("./assets/coastal-observatory-v2.webp"); }
@media (max-width: 560px) { :root { --storyboard-art: url("./assets/coastal-observatory-v2-768.webp"); } }

:root {
  color-scheme: dark;
  --ground: #10191e;
  --panel: #162229;
  --ink: #f1f3eb;
  --muted: #aebec3;
  --accent: #efbf89;
  --line: #374952;
  font: 16px/1.55 system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--ground); }
a { color: inherit; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
.wrap { width: min(1080px, calc(100% - 56px)); margin-inline: auto; }
.site-header { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border-bottom: 1px solid var(--line); }
.brand { font-family: Georgia, serif; font-size: 24px; text-decoration: none; }
.brand span { color: var(--muted); }
.back-link { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--accent); font-size: .9rem; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.back-link:hover { color: var(--ink); }
.intro { display: grid; grid-template-columns: 1fr minmax(220px, 310px); align-items: end; gap: 22px; margin: 58px 0 38px; }
.intro > p, .section-lead p, figcaption { color: var(--muted); }
.kicker { margin: 0 0 12px; text-transform: uppercase; letter-spacing: .11em; font-size: .74rem; font-weight: 650; color: var(--accent); }
h1, h2 { margin: 0; font-family: Georgia, serif; font-weight: 400; line-height: 1.06; }
h1 { font-size: clamp(2.45rem, 5.7vw, 4.65rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.6rem, 3.3vw, 2.25rem); }
h3 { margin: 0; font-size: 1rem; }
p { margin: 0; }
.annotation { margin: 16px 0 13px; }
.annotated-scene { position: relative; }
.annotation img { display: block; width: 100%; height: auto; border-radius: 5px 5px 0 0; }
figcaption { padding: 10px 0; font-size: .86rem; }
.marker, .number { display: grid; place-items: center; background: var(--accent); color: #231b15; border-radius: 50%; font-size: .88rem; font-weight: 750; width: 30px; height: 30px; }
.marker { position: absolute; transform: translate(-50%, -50%); box-shadow: 0 0 0 3px #151c22b5; }
.beacon { left: 60%; top: 36%; }
.water { left: 31%; top: 78%; }
.workshop { left: 81%; top: 63%; }
.opportunities { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.opportunities li, .storyboards article, .delivery article { border: 1px solid var(--line); border-radius: 5px; background: var(--panel); }
.opportunities li { padding: 17px; }
.opportunities strong { display: block; margin: 11px 0 5px; }
.opportunities p, .panel-copy ol, .delivery p { color: var(--muted); font-size: .94rem; }
.storyboard, .delivery { margin-top: 43px; }
.section-lead p { margin: 8px 0 14px; }
.storyboards, .delivery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.storyboards article { overflow: hidden; }
.scenes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  min-height: 134px;
  background: #0d161c;
}
.scene {
  position: relative;
  display: grid;
  place-items: end center;
  min-width: 0;
}
.desktop-scene {
  background: var(--storyboard-art) 60% 49% / cover;
}
.mobile-scene {
  padding-top: 10px;
}
.phone {
  position: relative;
  width: min(72px, 88%);
  height: 110px;
  border: 2px solid #b6c1bd;
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
  background: var(--storyboard-art) 61% 45% / auto 100%;
}
.desktop-scene.sweep::before,
.mobile-scene.sweep .phone::before {
  content: "";
  position: absolute;
  inset: 0;
  clip-path: polygon(48% 30%, 0 38%, 0 63%);
  background: linear-gradient(115deg, #ffecbc00, #ffecbc70);
}
.frame-caption {
  z-index: 1;
  justify-self: stretch;
  padding: 5px 3px;
  background: #10191eea;
  text-align: center;
  font-size: .72rem;
  line-height: 1.25;
}
.mobile-scene .phone,
.mobile-scene .frame-caption {
  grid-area: 1 / 1;
}
.panel-copy, .delivery article { padding: 18px; }
.panel-copy ol { margin: 7px 0 0; padding-left: 1.3rem; }
.panel-copy li + li { margin-top: 4px; }
.delivery article h2 { font-size: 1.5rem; }
.delivery p { margin-top: 12px; }
.next { margin: 24px 0 56px; }

@media (max-width: 720px) {
  .wrap { width: calc(100% - 30px); }
  .site-header { min-height: 65px; }
  .brand { font-size: 18px; }
  .back-link { font-size: .78rem; }
  .intro, .opportunities, .storyboards, .delivery { grid-template-columns: 1fr; }
  .intro { margin: 38px 0 26px; gap: 10px; }
  .opportunities { gap: 9px; }
  .opportunities li { padding: 13px; }
  .annotation .marker { width: 25px; height: 25px; }
  .storyboard, .delivery { margin-top: 31px; }
}
