:root {
  --paper: #f3efe6;
  --paper-2: #e9e3d6;
  --ink: #141312;
  --ink-2: #2a2826;
  --muted: #6d675d;
  --red: #c4271c;
  --red-dark: #a31e15;
  --line: rgba(20, 19, 18, .16);
  --display: "Sofia Sans Extra Condensed", "Arial Narrow", Impact, sans-serif;
  --body: "Golos Text", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --hand: "Caveat", "Segoe Script", cursive;
  --gutter: clamp(16px, 4vw, 56px);
  --head-h: calc(64px + env(safe-area-inset-top, 0px));
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 16px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 clamp(16px, 1.05vw + 12px, 19px)/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* film grain over everything */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .07; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img, video { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, figure, fieldset { margin: 0; padding: 0; }
ul { list-style: none; }
fieldset { border: 0; min-width: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

.wrap { width: 100%; max-width: 1360px; margin-inline: auto; padding-inline: var(--gutter); }
.mono { font: 500 .72rem/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.hand { font: 600 1.5rem/1 var(--hand); color: var(--red); text-transform: none; letter-spacing: 0; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: var(--paper); padding: 8px 12px; }
.skip:focus { left: 8px; }

h1, h2, h3, .wordmark, .belief-quote, .campaign, .path-title, legend {
  font-family: var(--display); font-weight: 800; text-transform: uppercase; line-height: .9; letter-spacing: .005em;
}
h2 { font-size: clamp(2.6rem, 6.2vw, 5.6rem); text-wrap: balance; }
h3 { font-size: clamp(2rem, 3.2vw, 2.9rem); }

.kicker { display: flex; align-items: center; gap: .6em; color: var(--muted); margin-bottom: 1.1rem; }
.dot { width: .7em; height: .7em; border-radius: 50%; background: var(--red); flex: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 52px; padding: 0 1.6em;
  font: 800 1.35rem/1 var(--display); letter-spacing: .06em; text-transform: uppercase; text-decoration: none;
  border: 2px solid transparent; transition: background .18s, color .18s, border-color .18s, transform .18s;
}
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 40px; font-size: 1.1rem; padding: 0 1.1em; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); }
.btn-line { border-color: currentColor; }
.btn-line:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn-ghost { color: var(--muted); padding-inline: .4em; }
.btn-ghost:hover { color: var(--ink); }
.link { text-decoration: underline; text-underline-offset: .2em; }
.micro { font-size: .86rem; opacity: .85; }

/* ---------- header ---------- */
.top {
  position: absolute; inset: 0 0 auto 0; z-index: 50; height: var(--head-h);
  display: flex; align-items: center; gap: clamp(12px, 3vw, 40px);
  padding-top: env(safe-area-inset-top, 0px);
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px)); color: #fff;
}
.wordmark { font-size: 1.75rem; letter-spacing: .09em; text-decoration: none; white-space: nowrap; }
.wordmark span { color: var(--red); }
.top .wordmark span { color: #fff; opacity: .78; }
.nav { margin-left: auto; display: flex; gap: clamp(14px, 2.2vw, 34px); align-items: center; }
.nav a { font: 500 .78rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; padding: 10px 0; position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 4px; height: 2px; background: var(--red); transition: right .2s; }
.nav a:hover::after { right: 0; }
/* sign-in for existing members: always visible, readable over the hero video */
.top-login { flex: none; }
.top .top-login { background: rgba(20, 19, 18, .32); }
.top .top-login:hover { background: #fff; color: var(--ink); border-color: #fff; }
@media (min-width: 861px) and (max-width: 1080px) {
  .top { gap: 12px; }
  .nav { gap: 12px; flex-wrap: wrap; row-gap: 0; justify-content: flex-end; }
  .nav a { padding-block: 8px; }
}
@media (max-width: 860px) {
  .nav a:not(.nav-calendar) { display: none; }
  .nav-calendar { display: inline-flex; align-items: center; min-height: 44px; }
  .wordmark { font-size: 1.45rem; }
  .hero-media img { object-position: 50% 30%; }
}
/* Keep sign-in in the narrow header; the join button is directly below in the hero. */
@media (max-width: 560px) { .top .btn-red { display: none; } }
@media (max-width: 480px) {
  .top .btn-sm { font-size: .95rem; padding: 0 .7em; min-height: 36px; letter-spacing: .03em; }
  .wordmark { font-size: 1.25rem; letter-spacing: .06em; }
  .top { gap: 10px; }
  .nav { gap: 0; }
}

@media (max-width: 380px) {
  .top { gap: 8px; }
  .nav-calendar { font-size: .72rem; }
}

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; color: #fff; background: var(--ink); overflow: hidden; }
.hero-media, .hero-media > *, .hero-media picture > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-media img { object-position: 50% 35%; }
.hero-video { opacity: 0; transition: opacity .8s; }
.hero-video.on { opacity: 1; }
.hero-play { position: absolute; z-index: 2; top: calc(var(--head-h) + 16px); right: var(--gutter); min-height: 44px; padding: 10px 14px; background: rgba(20,19,18,.8); color: #fff; border: 1px solid currentColor; font: 500 .75rem/1 var(--mono); }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,.5) 0%, rgba(10,10,10,0) 22%, rgba(10,10,10,.12) 45%, rgba(10,10,10,.86) 100%);
}
.hero-inner { position: relative; width: 100%; max-width: 1360px; margin-inline: auto; padding: calc(var(--head-h) + 32px) var(--gutter) clamp(40px, 7vh, 84px); }
.hero-tag { margin-bottom: 1.2rem; opacity: .85; }
.hero h1 { font-size: clamp(3.3rem, 10.4vw, 10rem); line-height: .84; max-width: 11.5em; text-wrap: balance; }
.hero-sub { margin-top: clamp(16px, 2.4vh, 28px); font-size: clamp(1.05rem, 1.5vw, 1.4rem); max-width: 34em; font-weight: 500; }
.hero-cta { margin-top: clamp(22px, 3.4vh, 38px); display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.hero-pillars { position: absolute; right: var(--gutter); top: calc(var(--head-h) + 28px); writing-mode: vertical-rl; opacity: .8; }
@media (max-width: 700px) { .hero-pillars { display: none; } }
/* Portrait video on phones, with the selected photo as its fallback. */
@media (max-width: 860px) {
  .hero-media img { object-position: 43% 50%; }
  .hero-media::after { background: linear-gradient(180deg, rgba(10,10,10,.62), rgba(10,10,10,.66) 50%, rgba(10,10,10,.9)); }
  .hero-inner { padding-top: calc(var(--head-h) + 40px); padding-bottom: max(40px, env(safe-area-inset-bottom)); }
  .hero-tag, .hero-cta .micro { opacity: 1; }
  .hero h1 { font-size: clamp(3rem, 12vw, 5.5rem); line-height: .94; }
  .hero-sub { font-size: 1.05rem; line-height: 1.5; }
  .hero-cta { gap: 18px; }
  .hero-cta .btn { width: 100%; }
}


/* ---------- about ---------- */
.about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 88px); align-items: start; padding-block: clamp(72px, 12vw, 168px); }
.about-text { position: sticky; top: calc(var(--head-h) + 32px); }
.about-text p:not(.kicker) { margin-top: 1.3em; max-width: 31em; color: var(--ink-2); }
.about-media { position: relative; padding-bottom: clamp(60px, 9vw, 130px); }
.about-main img { width: 100%; height: auto; }
.print { position: absolute; background: #fbf9f3; padding: 10px 10px 0; box-shadow: 0 14px 34px rgba(20,19,18,.28), 0 1px 2px rgba(20,19,18,.3); }
.print figcaption { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 2px 10px; color: var(--muted); }
.print figcaption .mono { font-size: .6rem; }
.about-print { width: min(36%, 300px); left: clamp(-56px, -4vw, -12px); bottom: 0; transform: rotate(-4deg); }
.tape { position: absolute; top: -14px; left: 50%; width: 96px; height: 28px; transform: translateX(-50%) rotate(2deg); background: rgba(226, 214, 176, .78); box-shadow: 0 1px 2px rgba(0,0,0,.12); }
.stamp { position: absolute; right: clamp(8px, 3vw, 40px); bottom: clamp(4px, 2vw, 28px); width: clamp(84px, 11vw, 150px); opacity: .9; transform: rotate(8deg);
  filter: invert(21%) sepia(84%) saturate(3200%) hue-rotate(352deg) brightness(88%) contrast(96%); }
@media (max-width: 860px) {
  .about { grid-template-columns: 1fr; }
  .about-text { position: static; }
  .about-print { left: -6px; width: 36%; }
}

/* ---------- belief band ---------- */
.belief { background: var(--ink); color: var(--paper); padding-block: clamp(64px, 9vw, 128px); }
.belief-inner { display: grid; gap: clamp(28px, 4vw, 48px); }
.belief-quote { max-width: 18em; font-size: clamp(2.8rem, 6.5vw, 6rem); line-height: .95; text-wrap: balance; }
.belief-intro { max-width: 54em; color: rgba(243,239,230,.78); }
.belief-intro strong { color: var(--paper); font-weight: 600; }
.belief-values { background: var(--paper); color: var(--ink); padding: clamp(22px, 4vw, 48px); }
.values-heading { font: 500 .8rem/1.4 var(--mono); text-transform: uppercase; letter-spacing: .12em; margin-bottom: 22px; color: var(--muted); }
.values { display: flex; flex-wrap: wrap; gap: 4px; padding-bottom: 20px; border-bottom: 1px solid var(--line); margin: 0; }
.values [role="tab"] { min-height: 44px; padding: 10px 16px; border: 0; font: 800 clamp(1.15rem, 2vw, 1.5rem)/1 var(--display); text-transform: uppercase; letter-spacing: .04em; }
.values [role="tab"]:hover { background: var(--paper-2); }
.values [aria-selected="true"], .values [aria-selected="true"]:hover { color: #fff; background: var(--red); }
.values [role="tab"]:focus-visible, .value-panel:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.value-panel { padding-top: clamp(24px, 3vw, 36px); min-height: 12em; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.65fr); gap: 28px; align-items: start; align-content: start; }
.value-panel[hidden] { display: none; }
.value-panel h3 { font-size: clamp(2.2rem, 4vw, 3.4rem); line-height: .98; max-width: 12em; color: var(--red); }
.value-panel p { max-width: 60ch; color: var(--ink-2); font-size: clamp(.95rem, 1.2vw, 1.1rem); line-height: 1.65; }
@media (max-width: 700px) {
  .value-panel { grid-template-columns: 1fr; gap: 16px; min-height: 19em; }
  .value-panel h3 { max-width: none; }
  .values [role="tab"] { padding-inline: 12px; }
}

/* ---------- adventures ---------- */
.adventures { padding-block: clamp(72px, 11vw, 160px); }
.sec-head { margin-bottom: clamp(32px, 5vw, 72px); max-width: 60rem; }
.events { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 44px); align-items: start; }
.event:nth-child(2) { margin-top: clamp(0px, 6vw, 96px); }
.event figure { position: relative; overflow: hidden; background: var(--paper-2); }
.event img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.event:hover img { transform: scale(1.035); }
.coord { position: absolute; left: 10px; bottom: 10px; color: #fff; background: rgba(20,19,18,.72); padding: 4px 7px; font-size: .62rem; }
.event-meta { margin-top: 16px; color: var(--red); }
.event h3 { margin-top: 8px; }
.event > p:not(.mono) { margin-top: 10px; color: var(--ink-2); max-width: 26em; }
.event .btn { margin-top: 18px; }
.note { margin-top: clamp(28px, 4vw, 56px); color: var(--muted); font-size: .9rem; }
.note.mono { font-size: .72rem; }
@media (max-width: 860px) {
  .events { grid-template-columns: 1fr; gap: 48px; }
  .event:nth-child(2) { margin-top: 0; }
}

/* ---------- skippers ---------- */
.skippers { background: var(--paper-2); padding-block: clamp(72px, 11vw, 160px); }
.skipper-browse { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-block: -16px 16px; }
.skipper-browse > .mono { color: var(--muted); font-size: .64rem; }
.skipper-arrows { display: flex; gap: 8px; }
.skipper-arrows button { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; font-size: 1.3rem; }
.skipper-arrows button:disabled { opacity: .35; cursor: default; }
.skipper-grid { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(230px, 26vw, 330px); gap: clamp(20px, 2.2vw, 32px); overflow-x: auto; overflow-y: hidden; padding-block: 8px 20px; scrollbar-width: thin; scrollbar-color: var(--red) transparent; }
.skipper-grid > li { min-width: 0; }
.skipper-grid.dragging, .skipper-grid.dragging .skipper { cursor: grabbing; user-select: none; }
.skipper { display: block; width: 100%; text-align: left; }
.skipper figure { position: relative; overflow: hidden; background: var(--ink); }
.skipper img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1), opacity .3s; }
.skipper:hover img, .skipper:focus-visible img { transform: scale(1.04); opacity: .92; }
.skipper .num { position: absolute; top: 10px; left: 10px; color: #fff; mix-blend-mode: difference; }
.skipper h3 { margin-top: 14px; display: flex; align-items: baseline; gap: .5em; flex-wrap: wrap; }
.skipper h3 small { font: 500 .68rem/1 var(--mono); letter-spacing: .08em; color: var(--muted); }
.skipper p { margin-top: 6px; color: var(--ink-2); font-size: .95rem; max-width: 24em; }
.skipper h3 span { background: linear-gradient(var(--red), var(--red)) 0 100% / 0 3px no-repeat; transition: background-size .25s; }
.skipper:hover h3 span { background-size: 100% 3px; }
@media (max-width: 860px) {
  .skipper-grid { grid-auto-columns: min(68vw, 300px); margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
}

/* ---------- stories ---------- */
.stories { background: var(--ink); color: var(--paper); padding-block: clamp(72px, 10vw, 140px) clamp(56px, 8vw, 110px); }
.stories .kicker { color: rgba(243,239,230,.6); }
.strip { display: flex; gap: clamp(12px, 1.6vw, 22px); align-items: flex-end; overflow-x: auto; padding: 8px max(var(--gutter), calc((100% - 1360px) / 2 + var(--gutter))) 22px; scroll-padding-inline: max(var(--gutter), calc((100% - 1360px) / 2 + var(--gutter))); scroll-snap-type: x proximity; scrollbar-color: var(--red) transparent; scrollbar-width: thin; }
.strip { cursor: grab; }
.strip.dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.strip figure { flex: none; scroll-snap-align: start; position: relative; }
.strip img { height: clamp(220px, 34vw, 430px); width: auto; }
.strip .tall img { height: clamp(280px, 42vw, 540px); }
.strip video { display: block; height: clamp(280px, 42vw, 540px); width: auto; aspect-ratio: 9 / 16; object-fit: cover; background: #1f1d1b; }
.strip .marked::before { content: ""; position: absolute; top: 12px; right: 12px; width: 54px; height: 54px; border: 3px solid var(--red); border-radius: 50%; z-index: 1; }

/* Keep touch scrolling native, without snap corrections or a viewport-sized
   blended layer repainting over the moving page. Clip horizontal decoration
   without making the body a second scroll container. */
@media (hover: none) and (pointer: coarse) {
  @supports (overflow: clip) {
    body.public-site { overflow-x: clip; }
  }
  .public-site::after { content: none; }
  .public-site .strip { scroll-snap-type: none; }
}

/* ---------- final ---------- */
.final { position: relative; color: #fff; background: var(--ink); overflow: hidden; }
.final-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.final::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(12,12,12,.34), rgba(12,12,12,.82) 62%, rgba(12,12,12,.94)); }
.final-inner { position: relative; z-index: 2; padding-block: clamp(180px, 34vw, 460px) clamp(56px, 8vw, 110px); }
.final h2 { font-size: clamp(4rem, 14vw, 13rem); line-height: .82; }
.final-cols { margin-block: clamp(22px, 3vw, 40px); display: grid; grid-template-columns: repeat(2, minmax(0, 30em)); gap: clamp(18px, 4vw, 64px); color: rgba(255,255,255,.88); }
.final-cols p + p { margin-top: .9em; }
.final-cols strong { color: #fff; font-weight: 600; }
.campaign { margin-top: clamp(40px, 6vw, 84px); font-size: clamp(1.6rem, 3vw, 2.6rem); letter-spacing: .14em; color: var(--red); }
@media (max-width: 760px) { .final-cols { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.foot { background: var(--ink); color: rgba(243,239,230,.72); border-top: 1px solid rgba(243,239,230,.14); padding-block: 32px calc(32px + env(safe-area-inset-bottom)); }
.foot-inner { display: flex; flex-wrap: wrap; gap: 20px 40px; justify-content: space-between; align-items: center; }
.foot-brand { display: flex; align-items: center; gap: 14px; }
.foot .wordmark { color: var(--paper); font-size: 1.5rem; }
.foot .mono { font-size: .6rem; margin-top: 4px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: .9rem; }
.foot-links a { text-underline-offset: .25em; }
.foot-links a:hover { color: #fff; }

/* ---------- dialogs ---------- */
.dlg {
  width: min(680px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); overflow: auto;
  border: 0; padding: clamp(24px, 5vw, 48px); background: var(--paper); color: var(--ink);
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
}
.dlg::backdrop { background: rgba(14,13,12,.78); backdrop-filter: blur(3px); }
.dlg[open] { animation: rise .28s cubic-bezier(.2,.7,.2,1); }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
.dlg h2, .dlg legend { font-size: clamp(2.3rem, 6vw, 3.6rem); }
.dlg legend { margin-bottom: 1.2rem; }
.dlg-close { position: sticky; float: right; top: 0; margin: -10px -10px 0 0; width: 44px; height: 44px; font-size: 2rem; line-height: 1; z-index: 2; }
.dlg-close:hover { color: var(--red); }
.dlg-small { width: min(520px, calc(100vw - 24px)); }
.dlg-small p:not(.kicker) { margin-top: 1rem; color: var(--ink-2); }
.pane-login { margin-top: 1.2rem; color: var(--muted); }
.pane-lead { margin-top: .9rem; color: var(--ink-2); }
.paths { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 1.6rem; }
.path { text-align: left; text-decoration: none; border: 2px solid var(--ink); padding: 20px 18px 22px; display: grid; gap: 8px; font-size: .92rem; color: var(--ink-2); transition: background .18s, color .18s, border-color .18s; }
.path-title { font-size: 1.9rem; color: var(--ink); transition: color .18s; }
.path:hover { background: var(--ink); color: rgba(243,239,230,.82); }
.path:hover .path-title { color: var(--paper); }
.path:first-child { border-color: var(--red); }
.path:first-child:hover { background: var(--red); border-color: var(--red); color: #fff; }
@media (max-width: 560px) { .paths { grid-template-columns: 1fr; } }

.dlg label:not(.chip) { display: block; margin-top: 1.05rem; font-size: .86rem; font-weight: 500; color: var(--ink-2); }
.dlg input:not([type=radio]):not([type=checkbox]), .dlg textarea {
  display: block; width: 100%; margin-top: 6px; padding: 12px 0 10px;
  font: 400 1.08rem/1.4 var(--body); color: var(--ink);
  background: transparent; border: 0; border-bottom: 2px solid var(--ink); border-radius: 0; resize: vertical;
}
.dlg input:focus, .dlg textarea:focus { outline: 0; border-bottom-color: var(--red); }
.dlg ::placeholder { color: #9b9589; }
.dlg [aria-invalid=true] { border-bottom-color: var(--red) !important; }
.opt { font: 500 .6rem var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-left: .5em; }
.group { margin-top: 1.1rem; }
.q { font-size: .86rem; font-weight: 500; color: var(--ink-2); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; }
.chip span { display: block; padding: 9px 14px; border: 2px solid var(--ink); font-size: .92rem; font-weight: 500; transition: background .15s, color .15s; }
.chip input:checked + span { background: var(--ink); color: var(--paper); }
.chip input:focus-visible + span { outline: 2px solid var(--red); outline-offset: 2px; }
.err { margin-top: 1rem; color: var(--red); font-size: .9rem; font-weight: 500; }
.pane-actions { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-top: 1.8rem; }
.pane-done { text-align: center; padding-block: 1rem; }
.pane-done img { margin: 0 auto 1.2rem; }
.pane-done p { margin: 1rem auto 1.6rem; max-width: 26em; color: var(--ink-2); }
.pane-done .micro { margin-top: 1.2rem; }

html:has(#dlg-skipper[open]) { overflow: hidden; }
.dlg-skipper { width: min(980px, calc(100vw - 24px)); max-height: calc(100dvh - 48px); padding: 0; overflow: hidden; border-radius: 16px; transition: transform .2s ease; }
.dlg-skipper.sk-dragging { animation: none; transition: none; }
.dlg-skipper[open] { display: flex; flex-direction: column; }
.sk-sheet-head { flex: none; display: flex; align-items: center; justify-content: space-between; padding: 8px 20px; border-bottom: 1px solid var(--line); }
.sk-sheet-head > .mono { color: var(--muted); }
.sk-sheet-head .dlg-close { position: static; float: none; margin: 0; flex: none; border: 0; border-radius: 50%; background: var(--paper-2); color: var(--ink); }
.sk-sheet-head .dlg-close:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.sk-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior-y: contain; -webkit-overflow-scrolling: touch; padding: 24px; }
.sk-layout { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); column-gap: clamp(20px, 4vw, 44px); align-items: start; }
.sk-layout > img { grid-row: 1 / 3; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 12px; }
.sk-summary, .sk-details { grid-column: 2; min-width: 0; }
.sk-summary h2 { margin-top: 12px; }
.sk-summary h2:focus { outline: none; }
.sk-lead { margin-top: 20px; font-size: 1.12rem; font-weight: 500; }
#sk-bio p { margin-top: .9rem; color: var(--ink-2); font-size: .96rem; }
.sk-license { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: .64rem; overflow-wrap: anywhere; }
.sk-sheet-foot { margin-top: 24px; padding: 20px 0 env(safe-area-inset-bottom); border-top: 1px solid var(--line); }
.sk-sheet-foot .btn { width: 100%; }
@media (max-width: 680px) {
  .dlg-skipper { position: fixed; inset: auto 0 0; margin: 0; width: 100%; max-width: 100%; height: calc(100dvh - max(12px, env(safe-area-inset-top))); max-height: none; border-radius: 24px 24px 0 0; }
  .sk-sheet-head { position: relative; padding-top: 16px; padding-inline: max(20px, env(safe-area-inset-left)) max(20px, env(safe-area-inset-right)); }
  .sk-sheet-head::before { content: ""; position: absolute; top: 7px; left: calc(50% - 18px); width: 36px; height: 4px; border-radius: 2px; background: var(--line); }
  .sk-scroll { padding: 20px max(20px, env(safe-area-inset-right)) 24px max(20px, env(safe-area-inset-left)); }
  .sk-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .sk-layout > img { grid-row: auto; aspect-ratio: 4 / 3; object-position: 50% 20%; }
  .sk-summary { grid-row: auto; grid-column: 1; }
  .dlg-skipper h2 { font-size: 2.3rem; line-height: 1; }
  .sk-details { grid-column: 1 / -1; }
  .sk-lead { margin-top: 0; font-size: 1.05rem; line-height: 1.5; }
  #sk-bio p { font-size: 1rem; line-height: 1.6; }
  .sk-sheet-foot .btn { font-size: 1.15rem; padding-inline: 12px; }
}

/* ---------- reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s, transform .7s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .dlg[open] { animation: none; }
  .dlg-skipper { transition: none; }
  .event img, .skipper img { transition: none; }
}

/* ---------- season log ---------- */
.log { margin-top: clamp(48px, 7vw, 96px); scroll-margin-top: 5rem; display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.log-head h3 { font-size: clamp(2.6rem, 5vw, 4.4rem); }
.log-head #calendar-archive-note { margin-top: .9rem; color: rgba(243,239,230,.7); max-width: 22em; font-size: .95rem; }
.log-tabs:not([hidden]) { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 1rem; }
.log-tabs button { font: 600 .9rem var(--mono); color: inherit; background: transparent; border: 1px solid rgba(243,239,230,.45); min-height: 44px; padding: 0 1rem; cursor: pointer; }
.log-tabs button[aria-selected="true"] { color: var(--paper); background: var(--red); border-color: var(--red); }
.log-tabs button:focus-visible, .log [role="tabpanel"]:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.log-details { margin-top: 1rem; font-size: .9rem; }
.log-list { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: clamp(24px, 4vw, 56px); }
.log-list li { break-inside: avoid; display: grid; grid-template-columns: 7.4em minmax(0, 1fr); column-gap: 12px; padding: 9px 0; border-top: 1px solid rgba(243,239,230,.16); }
.log-list .mono { color: var(--red); font-size: .66rem; padding-top: .35em; letter-spacing: .04em; }
.log-list b { font: 800 1.3rem/1.05 var(--display); text-transform: uppercase; letter-spacing: .03em; }
.log-list .place { grid-column: 2; color: rgba(243,239,230,.58); font-size: .82rem; }
@media (max-width: 980px) { .log { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .log-list { columns: 1; } }

/* event cards: 1, 2 or 4 from the admin */
.events[data-count="4"] { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.events[data-count="4"] .event:nth-child(4) { margin-top: clamp(0px, 6vw, 96px); }
.events[data-count="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 920px; }
.events[data-count="1"] { grid-template-columns: minmax(0, 440px); }
@media (max-width: 1100px) { .events[data-count="4"] { grid-template-columns: repeat(2, minmax(0, 1fr)); } .events[data-count="4"] .event:nth-child(n) { margin-top: 0; } }
@media (max-width: 860px) { .events[data-count] { grid-template-columns: 1fr; } }

/* ---------- send via Telegram ---------- */
.tg-msg textarea { font: 400 .86rem/1.5 var(--mono) !important; background: #fbf9f3 !important; border: 1.5px solid var(--line) !important; padding: 12px !important; resize: none; }
.tg-status { margin-top: 1rem; padding: 10px 12px; border-left: 3px solid var(--red); background: #fbf9f3; font-size: .9rem; font-weight: 500; }
.pane-tg .micro { margin-top: 1.4rem; color: var(--muted); }

/* ---------- logo: black crest on red, never white on black ---------- */
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.crest-badge { display: grid; place-items: center; width: 40px; height: 40px; background: var(--red); flex: none; }
.crest-badge img { width: 26px; height: auto; }
.crest-badge-lg { width: 56px; height: 56px; }
.crest-badge-lg img { width: 36px; }
@media (max-width: 480px) { .crest-badge { width: 34px; height: 34px; } .crest-badge img { width: 22px; } .brand { gap: 8px; } }


/* ---------- editing in place (staff only, see edit.js) ---------- */
.editbar { position: fixed; right: max(12px, env(safe-area-inset-right)); bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 300; width: max-content; color: var(--paper); font-size: .75rem; max-width: calc(100vw - 24px); }
.editbar button { min-height: 44px; padding: 0 14px; background: var(--ink); border: 1.5px solid var(--paper); box-shadow: 0 8px 28px rgba(0,0,0,.4); font: 500 .75rem/1 var(--mono); letter-spacing: .08em; }
.editbar button:disabled, .sk-admin button:disabled { opacity: .4; cursor: not-allowed; }
.editbar button[aria-pressed=true] { background: var(--red); border-color: var(--red); color: #fff; }
.editbar-status { position: absolute; right: 0; bottom: calc(100% + 8px); width: max-content; max-width: calc(100vw - 24px); padding: 8px 12px; background: var(--ink); box-shadow: 0 8px 28px rgba(0,0,0,.4); }
.editbar-status:empty { display: none; }
.editbar-status.bad { color: #ff9d94; }
.editing [contenteditable] { outline: 1.5px dashed var(--red); outline-offset: 4px; cursor: text; }
.editing [contenteditable]:focus { outline-style: solid; }
.editing [data-edit-img], .editing [data-ev-img], .editing #sk-photo { outline: 2px dashed var(--red); outline-offset: -6px; cursor: copy; }
.editing .reveal { opacity: 1; transform: none; }
.sk-admin { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 1.2rem; padding-top: 1rem; border-top: 1.5px dashed var(--red); }
.sk-admin button { padding: 7px 10px; border: 1.5px solid currentColor; font-size: .82rem; font-weight: 500; }
.sk-add { margin-top: 24px; }
#sk-bio textarea { display: block; width: 100%; padding: 10px 12px; font: inherit; color: inherit; background: #fbf9f3; border: 1.5px dashed var(--red); resize: vertical; }
[hidden].sk-admin, [hidden].sk-add { display: none; }

/* Small, quiet movement in the photo collage; keep the brand mark still. */
@media (prefers-reduced-motion: no-preference) {
  .about-media.in .about-print { animation: print-drift 8s ease-in-out infinite alternate; }
  .about-media.in .about-main img { animation: photo-breathe 12s ease-in-out infinite alternate; }
  .editing .about-media .about-print, .editing .about-media .about-main img { animation: none; }
}
@keyframes print-drift {
  from { transform: translateY(0) rotate(-4deg); }
  to { transform: translateY(-6px) rotate(-3deg); }
}
@keyframes photo-breathe {
  from { transform: scale(1); }
  to { transform: scale(1.015); }
}
.about-main { overflow: hidden; }
.skipper .skipper-role, .skipper-role { color: var(--red); font-size: .6rem; line-height: 1.6; margin-top: 8px; }
