/* The Shore palette, fonts and character fabrics are consumed from the app. */
:root {
  --soon-display: clamp(44px, 6.2vw, 84px);
  --soon-lead: clamp(17px, 1.55vw, 21px);
  --soon-small: 13px;
  --soon-body: 15px;
  --soon-gutter: clamp(22px, 4.6vw, 72px);
  --soon-hero-width: 1440px;
  --soon-foreground: 2;
  --soon-content: 3;
  --soon-header: 4;
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); color: var(--text); font: 400 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
body { margin: 0; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
button[hidden] { display: none; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { color: var(--brand-hover); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--focus); outline-offset: 6px; }
button { cursor: pointer; }
svg { display: block; }
button:disabled { cursor: default; }
.skip { position: fixed; top: -100px; left: 20px; padding: 12px 20px; background: var(--text); color: var(--bg); z-index: 5; }
.skip:focus { top: 12px; }
.masthead { position: relative; z-index: var(--soon-header); max-width: var(--soon-hero-width); margin: auto; padding: 20px var(--soon-gutter); min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.wordmark { display: inline-flex; align-items: center; text-decoration: none; font-size: 23px; font-weight: 740; letter-spacing: -.025em; white-space: nowrap; }
.wordmark-accent { color: var(--brand); }
.brand-crab { width: 64px; height: 44px; margin-right: 7px; }
.brand-crab .pw-ground, .brand-crab .pw-contact { display: none; }
.masthead-actions { display: flex; align-items: center; gap: 24px; }
.project { color: var(--text-muted); font-size: var(--soon-small); }
.project a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text); text-decoration: none; font-weight: 600; }
.icon-button { width: 44px; height: 44px; display: grid; place-items: center; border: 1px dashed var(--seam); border-radius: 50%; background: transparent; color: var(--text); transition: background var(--dur-base); }
.icon-button:hover { background: var(--raised); }
.icon-button svg { width: 19px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.theme-sun { display: none; }
[data-theme="day"] .theme-sun { display: block; }
[data-theme="day"] .theme-moon { display: none; }
.launch { position: relative; isolation: isolate; overflow: hidden; min-height: 770px; min-height: max(770px, calc(100svh - 218px)); max-height: 1080px; }
.sky { position: absolute; inset: 0 0 25%; pointer-events: none; }
.stars { width: 100%; height: 100%; position: absolute; opacity: .65; }
.star { fill: var(--chalk); }
.star-0 {  }
.star-1 { opacity: .4; }
.star-2 {  }
.star-3 { opacity: .7; }
.moon { position: absolute; width: clamp(136px, 15vw, 214px); top: 22px; right: max(4%, calc((100% - 1280px) / 2)); }
.orbit { fill: none; stroke: var(--text); stroke-opacity: .13; stroke-width: 1.1; stroke-dasharray: 3 6;  }
.orbit-outer { stroke-opacity: .06;  }
.moon-body { fill: var(--chalk); }
.moon-stitch { fill: none; stroke: var(--night); stroke-width: 1; stroke-dasharray: 3 2; opacity: .35; }
.day-sun { display: none; fill: var(--amber); stroke: var(--amber); stroke-width: 1.5; stroke-linecap: round; }
.day-sun .sun-stitch { fill: none; stroke: var(--night); stroke-dasharray: 3 3; opacity: .35; }
.intro { position: relative; z-index: var(--soon-content); max-width: 900px; padding: 40px 22px 0; margin: 0 auto; text-align: center; }
.launch-note { display: inline-flex; align-items: center; gap: 9px; font-size: var(--soon-small); color: var(--text-soft); margin: 0 0 24px; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--lantern);  }
h1 { font-size: var(--soon-display); font-weight: 600; letter-spacing: -.035em; line-height: 1.04; text-wrap: balance; margin: 0; }
h1 > span { color: var(--text); position: relative; white-space: nowrap; }
.lead { font-size: var(--soon-lead); line-height: 1.65; color: var(--text-soft); margin: 24px auto; max-width: 53ch; text-wrap: pretty; }
.primary-action { min-height: 48px; padding: 12px 24px; display: inline-flex; gap: 24px; align-items: center; justify-content: center; border-radius: var(--r-ctl); color: var(--on-brand); background: var(--brand); text-decoration: none; font-weight: 650; font-size: var(--soon-body); transition: background var(--dur-base), transform var(--dur-base) var(--ease-out); }
.primary-action:hover { color: var(--on-brand); background: var(--brand-hover); transform: translateY(-2px); }
.primary-action span { font-size: 20px; line-height: 1; }
.action-note { font-size: var(--soon-small); color: var(--text-muted); margin: 12px 0 0; }
.action-note a { color: var(--text-soft); font-weight: 600; }
.shore { position: absolute; inset: 0; pointer-events: none; }
.sea { position: absolute; top: 65%; left: 0; right: 0; height: 19%; border-top: 1px dashed color-mix(in srgb, var(--chalk) 30%, transparent); background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='24'%3E%3Cpath d='M0 12l12-4 12 4 12-4 12 4' fill='none' stroke='%23efe3c8' stroke-opacity='.09' stroke-width='1' stroke-linejoin='round'/%3E%3C/svg%3E") 0 0 / 48px 24px, linear-gradient(color-mix(in srgb, var(--night-2) 80%, var(--shell)), var(--night-2));  }
.moon-reflection { position: absolute; right: 10%; top: 18px; width: 120px; height: 70px; opacity: .45; background: repeating-linear-gradient(transparent 0 14px, color-mix(in srgb, var(--chalk) 30%, transparent) 14px 15px, transparent 15px 23px); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.distant-boat { position: absolute; left: 14%; top: 36px; width: 35px; height: 12px; border-bottom: 2px solid var(--chalk); border-radius: 0 0 100% 100%; opacity: .4;  }
.distant-boat::before { content: ''; position: absolute; left: 17px; height: 18px; bottom: 2px; border-left: 1px solid var(--chalk); }
.distant-boat span { position: absolute; left: 5px; bottom: 6px; width: 10px; height: 12px; background: var(--chalk); clip-path: polygon(100% 0, 100% 100%, 0 100%); }
.sand { position: absolute; inset: 79% 0 0; background: radial-gradient(color-mix(in srgb, var(--chalk) 8%, transparent) .7px, transparent 1px) 0 0 / 8px 8px, linear-gradient(color-mix(in srgb, var(--shell-2) 38%, var(--night)), color-mix(in srgb, var(--shell-2) 25%, var(--night))); }
.tideline { position: absolute; top: calc(79% - 20px); height: 40px; width: 100%; overflow: visible; }
.tideline path { fill: none; stroke: var(--chalk); stroke-opacity: .35; stroke-width: 1.4; stroke-dasharray: 6 5;  }
.scene { position: absolute; left: 50%; transform: translateX(-50%); width: min(1180px, 90%); bottom: 53px; height: 218px; }
.crab-group { position: absolute; left: 0; bottom: 0; width: 270px; height: 180px; }
.crab-button { position: absolute; bottom: 0; left: 0; width: 207px; padding: 0; border: 0; background: transparent; color: inherit; pointer-events: auto; border-radius: var(--r-card); }
svg.crab { width: 207px; transition: transform var(--dur-base) var(--ease-out); }
.bubble { position: absolute; bottom: 152px; left: 0; width: max-content; max-width: 285px; padding: 8px 13px; border-radius: var(--r-card); background: var(--chalk); color: var(--night); font-size: var(--soon-small); font-weight: 550; line-height: 1.45; margin: 0; transform: rotate(-2deg); }
.bubble::after { content: ''; position: absolute; bottom: -7px; left: 45px; width: 12px; height: 12px; background: var(--chalk); clip-path: polygon(0 0, 100% 0, 30% 100%); }
.baby-vm { position: absolute; width: 42px; bottom: 2px; left: 218px; }
.vm-shadow { fill: color-mix(in srgb, var(--night) 65%, transparent); }
.vm-body { fill: var(--night-2); }
.vm-seam { fill: none; stroke: var(--chalk); stroke-width: 1; stroke-dasharray: 2.6 1.8; }
.vm-eye { fill: var(--green); }
.vm-mouth, .vm-foot { fill: none; stroke: var(--chalk); stroke-width: 1.4; stroke-linecap: round; }
.vm-inner { transform-origin: 24px 40px;  }
.ground-stitch { position: absolute; bottom: -3px; width: 275px; border-top: 1px dashed var(--felt-seam); opacity: .65; }
.shell-collection { position: absolute; left: 33%; right: 20%; bottom: 0; display: flex; justify-content: space-between; gap: 15px; align-items: end; }
.shell-item { display: flex; flex-direction: column; align-items: center; min-width: 0;  }
.shell-item svg { width: clamp(70px, 7.3vw, 106px); overflow: visible; }
.shell-two { margin-bottom: 48px;  }
.shell-three { margin-bottom: 8px;  }
.shell-tag { position: relative; padding: 5px 11px 5px 19px; background: var(--chalk); color: var(--night); font: 500 var(--soon-small)/1.3 var(--mono); white-space: nowrap; clip-path: polygon(9px 0, 100% 0, 100% 100%, 9px 100%, 0 50%); transform: rotate(-5deg); }
.shell-tag::before { content: ''; width: 4px; height: 4px; border-radius: 50%; position: absolute; left: 6px; top: calc(50% - 2px); background: var(--shell-2); }
.shell-two .shell-tag { transform: rotate(3deg); }
.shell-thread { height: 17px; border-left: 1px dashed var(--chalk); opacity: .7; }
.shell-fill { fill: var(--shell); }
.shell-two .shell-fill { fill: var(--shell-2); }
.shell-three .shell-fill { fill: var(--violet); }
.shell-shadow { fill: color-mix(in srgb, var(--night) 55%, transparent); }
.shell-seam { fill: none; stroke: var(--chalk); stroke-width: .9; stroke-dasharray: 2 1.5; }
.shell-spiral { fill: none; stroke: var(--chalk); stroke-width: 1.5; stroke-linecap: round; opacity: .8; }
.shell-caption { color: var(--text-soft); white-space: nowrap; font-size: 12px; margin-top: 5px; }
.keeper-group { position: absolute; right: 0; bottom: 0; width: 147px; }
.keeper { width: 147px; position: relative; }
.keeper-note { display: block; text-align: center; white-space: nowrap; color: var(--text-soft); font-size: 12px; margin-top: 1px; }
.shore-bottom { position: absolute; bottom: 12px; left: var(--soon-gutter); right: var(--soon-gutter); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.shore-signature { color: var(--text-muted); font-size: 12px; }
.shore-signature span { color: var(--text-soft); }
.motion-button { display: flex; align-items: center; gap: 8px; min-height: 32px; padding: 2px 0 2px 8px; color: var(--text-muted); font-size: 12px; background: transparent; border: none; pointer-events: auto; }
.motion-button:hover { color: var(--text); }
.motion-icon { width: 12px; }
.promise { padding: 24px var(--soon-gutter); display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px dashed var(--seam); border-bottom: 1px dashed var(--seam); max-width: var(--soon-hero-width); margin: auto; font-size: var(--soon-small); }
.promise p { margin: 0; color: var(--text-soft); }
.promise-stitch { color: var(--brand); margin-right: 10px; font-size: 19px; vertical-align: -1px; }
.promise a { min-height: 44px; display: inline-flex; gap: 18px; align-items: center; white-space: nowrap; text-decoration: none; }
footer { display: flex; justify-content: space-between; gap: 20px; max-width: var(--soon-hero-width); margin: auto; padding: 20px var(--soon-gutter); font-size: 12px; color: var(--text-muted); }
[data-theme="day"] .moon-body, [data-theme="day"] .moon-stitch { display: none; }
[data-theme="day"] .day-sun { display: block; }
[data-theme="day"] .star { fill: var(--shell-2); opacity: .28; }
[data-theme="day"] .sea { border-top-color: var(--seam); background-color: var(--raised); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='24'%3E%3Cpath d='M0 12l12-4 12 4 12-4 12 4' fill='none' stroke='%235c47a8' stroke-opacity='.12' stroke-width='1'/%3E%3C/svg%3E"); }
[data-theme="day"] .sand { background: radial-gradient(color-mix(in srgb, var(--shell-2) 8%, transparent) .7px, transparent 1px) 0 0 / 8px 8px, var(--raised); }
[data-theme="day"] .tideline path { stroke: var(--shell-2); }
[data-theme="day"] .bubble { background: var(--text); color: var(--bg); }
[data-theme="day"] .bubble::after { background: var(--text); }
[data-theme="day"] .shell-tag { background: var(--surface); color: var(--text); }
[data-theme="day"] .shell-thread { border-color: var(--shell-2); }
[data-theme="day"] .ground-stitch { border-color: var(--shell-2); }
[data-theme="day"] .distant-boat { border-color: var(--shell-2); }
[data-theme="day"] .distant-boat::before { border-color: var(--shell-2); }
[data-theme="day"] .distant-boat span { background: var(--shell-2); }
@media (min-width: 1280px) and (min-height: 1000px) { .intro { padding-top: 65px; } .scene { bottom: 65px; } }
@media (max-width: 1023px) {
  .intro { padding-top: 55px; }
  .moon { top: 1px; right: 0; width: 130px; opacity: .65; }
  .scene { width: 92%; }
  .crab-group { transform: scale(.8); transform-origin: left bottom; }
  .shell-collection { left: 32%; right: 18%; gap: 8px; }
  .keeper-group { transform: scale(.8); transform-origin: right bottom; }
  .shell-tag { font-size: 11px; padding-right: 8px; }
  .shell-caption { font-size: 11px; }
}
@media (max-width: 767px) {
  :root { --soon-display: clamp(43px, 8.7vw, 64px); }
  .masthead { padding-top: 13px; padding-bottom: 13px; min-height: 76px; }
  .wordmark { font-size: 20px; }
  .brand-crab { width: 49px; height: 36px; margin-right: 5px; }
  .project { display: none; }
  .launch { min-height: 840px; max-height: none; }
  .intro { padding: 50px 22px 0; }
  .launch-note { font-size: 12px; margin-bottom: 24px; }
  .lead { max-width: 34ch; font-size: 17px; margin-top: 23px; }
  .lead br { display: none; }
  .moon { width: 110px; top: -11px; right: -5px; opacity: .5; }
  .sea { top: 55%; height: 26%; }
  .sand { top: 72%; }
  .tideline { top: calc(72% - 20px); }
  .scene { bottom: 60px; height: 300px; width: calc(100% - 40px); }
  .shell-collection { left: 0; right: 0; bottom: 128px; gap: 10px; }
  .shell-item svg { width: clamp(74px, 20vw, 105px); }
  .shell-tag { font-size: 11px; }
  .shell-caption { font-size: 10px; }
  .shell-two { margin-bottom: 27px; }
  .crab-group { transform: scale(.77); left: 5px; }
  .bubble { bottom: 126px; max-width: 252px; font-size: 13px; }
  .keeper-group { transform: scale(.66); right: 0; bottom: 0; }
  .keeper-note { font-size: 14px; }
  .shore-bottom { bottom: 12px; }
  .shore-signature { max-width: 180px; font-size: 11px; line-height: 1.5; }
  .motion-button { min-height: 44px; font-size: 11px; }
  .promise { padding-top: 24px; padding-bottom: 24px; flex-direction: column; align-items: start; gap: 8px; }
  .promise p { line-height: 1.7; }
  .promise-break { display: block; padding-left: 0; }
  .promise a { margin-left: 0; }
  footer { font-size: 11px; gap: 12px; padding-top: 20px; padding-bottom: 24px; flex-wrap: wrap; }
}
@media (max-width: 374px) {
  :root { --soon-display: 40px; }
  .wordmark { font-size: 18px; }
  .intro { padding-top: 38px; }
  .launch-note { font-size: 11px; gap: 7px; }
  .scene { width: calc(100% - 28px); }
  .shell-tag { font-size: 10px; padding-left: 15px; }
  .shell-caption { font-size: 9px; }
  .crab-group { transform: scale(.7); left: 0; }
  .keeper-group { transform: scale(.58); }
}
/* Unslop pass: calm chrome, one short story using the original Shore kit. */
.shell-item { position: relative; flex: 1; }
.shell-touch { position: absolute; z-index: 3; inset: 0; width: 100%; min-height: 44px; padding: 0; border: 0; border-radius: var(--r-card); background: transparent; pointer-events: auto; }
.shell-item > svg { transition: transform 180ms var(--ease-out); }
.shell-item::after { content: ''; position: absolute; inset: 30px 7px 24px; border: 1px dashed var(--brand); border-radius: 50%; opacity: 0; transform: scale(.96); transition: opacity 180ms var(--ease-out), transform 180ms var(--ease-out); pointer-events: none; }
.shell-item[data-selected="true"]::after { opacity: .7; transform: scale(1); }
.shell-item[data-selected="true"] > svg { transform: translateY(-4px) rotate(-3deg); }
.shell-caption { min-height: 32px; max-width: 18ch; text-align: center; line-height: 1.5; white-space: normal; font-size: 12px; }
.shell-tag { transition: transform 180ms var(--ease-out); }
.shell-item[data-selected="true"] .shell-tag { transform: rotate(0) translateY(-2px); }
.scene-controls { display: flex; gap: 16px; align-items: center; pointer-events: auto; }
.replay-button { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0; border: 0; background: transparent; color: var(--text-muted); font-size: 12px; }
.replay-button svg, .motion-button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.replay-button:hover, .motion-button:hover { color: var(--text); }
.replay-button:disabled { opacity: .65; color: var(--text-muted); }
.motion-button { padding-left: 0; min-height: 44px; }
.motion-button .play-glyph { display: none; }
.motion-button[aria-pressed="true"] .pause-glyph { display: none; }
.motion-button[aria-pressed="true"] .play-glyph { display: block; }
.promise p { display: flex; gap: 24px; }
.promise-break { padding-left: 24px; border-left: 1px solid var(--seam); }
.promise { border-bottom: none; }
.shore-signature { font-size: 12px; }
.keeper .bear-arm, .keeper .bear-lantern { transition: transform 220ms var(--ease-out); }
.launch:not([data-story-running="true"]) .s-patchwork *, .brand-crab * { animation: none !important; }
.launch[data-story-running="true"] .sea { animation: tide-pass 6500ms linear both; }
.launch[data-story-running="true"] .tideline { animation: shore-wash 1800ms var(--ease-out) both; }
.launch[data-act="checking"] .shell-item > svg { animation: shell-inspect 380ms var(--ease-out) both; }
.launch[data-act="checking"] .shell-two > svg { animation-delay: 50ms; }
.launch[data-act="checking"] .shell-three > svg { animation-delay: 100ms; }
.vm-happy .vm-inner { animation: vm-greeting 520ms var(--ease-out) 2; }
.launch[data-act="inspect"] .k-bvp .crab { animation-duration: 600ms; animation-iteration-count: 2; }
.launch[data-act="chosen"] .k-bvp .crab { animation-duration: 600ms; animation-iteration-count: 2; }
@keyframes tide-pass { from { transform: translateY(0); } 45% { transform: translateY(5px); } to { transform: translateY(0); } }
@keyframes shore-wash { 0%, 100% { transform: translateY(0); } 55% { transform: translateY(7px); } }
@keyframes shell-inspect { from { transform: translateY(8px) rotate(-3deg); } to { transform: none; } }
@keyframes vm-greeting { 0%, 100% { transform: none; } 40% { transform: translateY(-7px); } }
@media (hover: hover) and (pointer: fine) {
  [data-paused="false"] .shell-item.is-near > svg { transform: translateY(-6px) rotate(-4deg); }
  [data-paused="false"] .shell-item.is-near .shell-tag { transform: rotate(0) translateY(-3px); }
  [data-paused="false"] .crab-button:hover > svg.crab { transform: rotate(-2deg) translateY(-2px); }
  .primary-action:hover { transform: translateY(-2px); }
}
@media (hover: none), (pointer: coarse) { .primary-action:hover { transform: none; } }
@media (max-width: 767px) {
  .shell-tag, .shell-caption { font-size: 11px; }
  .shell-tag { padding: 4px 8px 4px 16px; }
  .shell-caption { max-width: 12ch; min-height: 33px; }
  .shell-collection { gap: 8px; }
  .scene-controls { gap: 12px; }
  .replay-button, .motion-button, .shore-signature { font-size: 11px; }
  .promise p { display: block; }
  .promise-break { display: block; border-left: none; padding-left: 0; }
}
.launch[data-input="keyboard"] *, .launch[data-input="keyboard"] *::before, .launch[data-input="keyboard"] *::after { transition: none !important; }
[data-paused="true"] *, [data-paused="true"] *::before, [data-paused="true"] *::after { animation-play-state: paused !important; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
