/* A single object, open space, and horizontal rules. Loaded after legacy styles. */
body[data-page="story"], body[data-page="machine"] { --stage-min-desktop: 560px; --stage-min-phone: 360px; }
body[data-page="story"] > .waterline, body[data-page="story"] > .tide-wash,
body[data-page="machine"] > .waterline, body[data-page="machine"] > .tide-wash { display: none; }
body > .site-nav.nav-rail { top: 0; padding: 0; background: var(--ground); }
.site-nav.nav-rail .nav-bar { width: min(calc(100% - 64px), 1180px); max-width: none; border: 0; border-bottom: 1px solid var(--hairline); border-radius: 0; box-shadow: none; background: var(--ground); }
.nav-links { margin-left: auto; }
.nav-end { margin-left: 32px; }
.nav-connect.cta-quiet, .stage-connect.cta-quiet { background: transparent; color: var(--ink); border: 1px solid var(--line); border-radius: 999px; text-transform: none; letter-spacing: 0; }
.nav-connect::before, .stage-connect::before { content: ""; display: inline-block; width: 16px; height: 12px; border: 1px solid currentColor; border-radius: 2px; box-shadow: inset 0 3px 0 var(--ground), inset 0 4px 0 currentColor; flex: none; margin-right: 8px; }
.nav-connect::after, .stage-connect::after { content: none; }
.level-track { display: none; }
.nav-sheet .nav-connect { width: 100%; max-width: none; margin: 16px 0 24px; justify-content: center; }
.nav-sheet__title { margin-bottom: 0; }
.nav-indicator { background: var(--ink); }
.tide-board .ui-range[data-drain="true"] .ui-range__water { background: var(--ink-soft); }
.tide-board .ui-tank::before, .tide-board .ui-tank::after, .tank-figure::before, .tank-figure::after { content: none; }
.hero .ui-press--quiet:hover, .lab-page .ui-press--quiet:hover, .site-nav .ui-press--quiet:hover, .nav-sheet .ui-press--quiet:hover { background: transparent; border-color: var(--ink); color: var(--ink); }
.hero .ebb-eyebrow, .lab-page .ebb-eyebrow { color: var(--ink-soft); }
.hero .ebb-ca::after, .lab-page .ebb-ca::after { background: var(--hairline); }
.stage-connect { display: none; }
body[data-page="story"] .hero { display: block; width: 100%; max-width: none; padding: 0; }
body[data-page="story"] .harbour-head, .lab-page > .harbour-head { padding: 76px 24px 8px; margin: 0 auto; max-width: 850px; min-height: 0; text-align: center; background: transparent; }
.harbour-head h1 { margin: 20px auto 24px; max-width: 17ch; font: 500 clamp(32px, 4.5vw, 60px)/1.12 var(--font-display); letter-spacing: -.045em; text-wrap: balance; }
.harbour-head .body-copy, .harbour-head .lede { max-width: 52ch; margin: 0 auto; font: 400 18px/1.65 var(--font-body); color: var(--ink-soft); }
.harbour-head .hero-actions { display: flex; justify-content: center; gap: 12px; margin-top: 28px; }
.hero .status-mark, .lab-page .status-mark { color: var(--ink-soft); border: 0; padding: 0; background: transparent; }
.hero .waterline-gutter, .lab-page .waterline-gutter { display: none; }
.tide-board { display: block; width: min(calc(100% - 64px), 1180px); margin: 0 auto; }
.tide-board .harbour-stage { display: block; position: relative; top: auto; width: 100%; height: auto; min-height: 0; padding: 0; margin: 0; background: transparent; border: 0; }
.stage-object { position: relative; display: grid; place-items: center; min-height: 560px; height: 560px; width: 100%; }
.tide-board .tide-object-slot { position: relative; width: 66%; height: 560px; min-width: 0; }
.tide-board .tide-object-slot .tide-well { position: relative; inset: auto; width: 100%; height: 560px; min-height: 560px; max-height: none; margin: 0; padding: 0; background: transparent; overflow: visible; }
.tide-board .tide-well canvas, .tide-board .tide-well .tide-still { position: absolute; inset: 0; display: block; width: 100%; height: 100%; min-height: 0; max-width: none; max-height: none; transform: none; }
.tide-board .tide-well [hidden] { display: none !important; }
.tide-contact { display: none; }
.tide-board .tide-gauge { display: block; position: absolute; inset: 120px 8px auto auto; width: 64px; padding: 0; background: transparent; }
.tide-board .tide-gauge__body { display: block; width: 64px; }
.tide-board .tide-gauge__rail { height: 280px; min-height: 280px; width: 64px; border-color: var(--line); }
.tide-board .cycle-tick { bottom: calc((1 - var(--tick) / 32) * 100%); color: var(--ink-soft); font: 12px/1 var(--font-body); overflow: visible; }
.tide-board .tide-gauge__marker { background: var(--ink); }
.stage-legend { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 12px; padding: 0 0 32px; font: 400 12px/1.6 var(--font-body); color: var(--ink-soft); }
.stage-legend .depth-mark { border: 0; padding: 0; color: inherit; }
.tide-board .stage-controls { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 48px; align-items: start; padding: 28px 0 24px; border-top: 1px solid var(--hairline); background: transparent; }
.control-field { min-width: 0; }
.control-field .ui-range { margin: 0; padding: 0; min-width: 0; background: transparent; border: 0; }
.control-field .ui-range__head { display: block; margin: 0 0 12px; min-height: 0; }
.control-field label { font: 500 16px/1.5 var(--font-body); color: var(--ink); }
.control-hint { margin: 4px 0 0; color: var(--ink-soft); font: 400 12px/1.5 var(--font-body); }
.control-field .ui-range__ticks { display: none; }
.control-field .ui-range__read { margin-top: 8px; min-height: 20px; font: 400 12px/1.5 var(--font-body); color: var(--accent-deep); }
.control-field .ui-range__shell { height: 44px; }
.control-field .ui-range__trough { background: var(--line); height: 2px; }
.control-field .ui-range__water { background: var(--ink-soft); }
.tide-board .tide-controls { position: static; display: flex; align-items: center; padding: 32px 0 0; min-height: 44px; }
.tide-board .tide-controls .pause-toggle.ui-press { display: inline-flex !important; position: static; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; width: auto; padding: 14px 24px; border: 0; border-radius: 999px; font: 500 14px/1.3 var(--font-body); letter-spacing: 0; text-transform: none; background: var(--accent); color: var(--ink); }
.tide-board .guide-result { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px; padding: 32px 0; border-block: 1px solid var(--hairline); }
.tide-board .guide-result__item { min-width: 0; gap: 12px; }
.tide-board .guide-result__item--share { text-align: center; }
.tide-board .guide-result__item:last-child { text-align: right; }
.tide-board .guide-result__figure { display: flex; align-items: center; justify-content: flex-start; gap: 10px; white-space: nowrap; font: 400 clamp(18px, 1.65vw, 24px)/1.3 var(--font-body); }
.tide-board .guide-result__item--share .guide-result__figure { justify-content: center; font-family: var(--font-display); font-size: clamp(20px, 2vw, 28px); letter-spacing: -.03em; }
.tide-board .guide-result__item:last-child .guide-result__figure { justify-content: flex-end; }
.tide-board .guide-result__figure .factor-read { color: var(--ink); max-width: 100%; overflow-wrap: anywhere; white-space: normal; }
.tide-board .guide-result__figure > span:first-child { color: var(--ink-soft); }
.result-arrow { width: 20px; height: 20px; flex: 0 0 20px; color: var(--ink-soft); }
.tide-board .guide-result__label, .tide-board .guide-result__note { font: 400 12px/1.5 var(--font-body); color: var(--ink-soft); max-width: none; }
.stage-notes { display: flex; justify-content: space-between; gap: 16px; padding-top: 16px; }
.stage-notes p { color: var(--ink-soft); margin: 0; font-size: 12px; }
.test-rate { max-width: 420px; padding: 16px 0 24px; color: var(--ink-soft); }
.test-rate summary { width: fit-content; cursor: pointer; padding: 12px 0; min-height: 44px; font-size: 14px; }
.test-rate .instrument-caption { margin-bottom: 16px; max-width: none; color: var(--ink-soft); }
.hero .ebb-ca { margin-top: 32px; }
body[data-page="story"] .section { width: 100%; max-width: none; padding: 88px 0; border: 0; }
body[data-page="story"] .section > .wrap { width: min(calc(100% - 64px), 1180px); max-width: none; }
body[data-page="story"] .section .section-head { display: block; margin: 0; padding: 0; background: transparent; }
body[data-page="story"] .section .cycle-no { display: none; }
body[data-page="story"] .section h2 { max-width: 22ch; font: 500 clamp(24px, 2.8vw, 36px)/1.25 var(--font-display); letter-spacing: -.035em; margin-bottom: 24px; }
body[data-page="story"] .section p { color: var(--ink-soft); max-width: 56ch; background: transparent; }
body[data-page="story"] .section code { color: var(--ink); background: transparent; }
.editorial-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px; align-items: center; border-top: 1px solid var(--hairline); padding-top: 64px; }
.editorial-grid > .section-head { grid-column: 1 / 6; }
.editorial-grid > .left-tank-wrap { grid-column: 7 / -1; grid-row: 1 / 3; }
.editorial-grid > .harbour-reads { grid-column: 1 / 6; }
.editorial-grid > .harbour-note, .editorial-grid > .faq-list, .editorial-grid > div[data-reveal]:not(.left-tank-wrap) { grid-column: 7 / -1; width: 100%; max-width: none; background: transparent; padding: 0; border: 0; }
.editorial-grid--reverse > .section-head { grid-column: 8 / -1; }
.editorial-grid--reverse > .harbour-note { grid-column: 1 / 7; grid-row: 1; }
.harbour-reads.ui-stat { background: transparent; padding: 0; border: 0; }
.harbour-reads.ui-stat dd { color: var(--ink); }
.left-tank-wrap > .instrument-title, .left-tank-wrap > .instrument-caption { display: none; }
.left-tank.tank-figure { display: block; position: static; width: 100%; height: auto; min-height: 0; border: 0; border-radius: 0; background: transparent; overflow: hidden; }
.tank-figure text, .ownership-figure text { font: 400 16px var(--font-body); }
.tank-figure text { font-variant-numeric: tabular-nums; }
.tank-figure g { transform-origin: center bottom; transform-box: fill-box; }
.ownership-figure { display: block; width: 100%; height: auto; fill: var(--ink); margin-top: 24px; }
#rule > .wrap { border-top: 1px solid var(--hairline); padding-top: 64px; }
#rule .section-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); }
#rule .section-head > div { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
#rule .section-head h2 { margin-bottom: 0; }
#rule .rule-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; padding-top: 40px; font-size: 14px; }
.rule-draws { display: grid; grid-template-columns: repeat(3, minmax(280px, 1fr)); gap: 32px; margin-top: 56px; }
.rule-draws figure { min-width: 280px; }
.rule-draw { display: block; width: 100%; min-width: 280px; height: auto; background: transparent; }
.rule-draw text { font: 400 14px var(--font-body); fill: var(--ink); }
.rule-draws figcaption { max-width: 32ch; margin-top: 20px; color: var(--ink-soft); font: 400 16px/1.6 var(--font-body); }
.residue-note { margin: 40px 0 0; font-size: 14px; }
.faq-list .ui-acc__item, .faq-list .ui-acc__trigger, .faq-list .ui-acc__panel, .faq-list .ui-acc__body { background: transparent; box-shadow: none; border-radius: 0; }
.faq-list .ui-acc__item { border: 0; border-bottom: 1px solid var(--hairline); }
.faq-list .ui-acc__trigger { padding: 20px 0; color: var(--ink); }
.faq-list .ui-acc__body { padding: 0 0 24px; }
.prestake-readout { background: transparent; border: 0; border-top: 1px solid var(--hairline); padding: 32px 0; }
.lab-page { padding: 0; }
.lab-page > .harbour-head { width: min(100%, 850px); }
.machine-form { display: block; width: 100%; max-width: none; padding: 0; margin: 0; background: transparent; border: 0; }
.machine-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 64px; padding-block: 64px; border-top: 1px solid var(--hairline); }
.machine-fields { display: grid; gap: 24px; align-content: center; }
.machine-detail .left-tank-wrap { grid-column: 2; grid-row: 1 / 4; }
.machine-detail .lab-out { grid-column: 1 / -1; }
.machine-detail .ui-status { margin: 0; }
.machine-detail .lab-actions { flex-wrap: wrap; }
.lab-page .prestake, .lab-page .stake-plate { background: transparent; border: 0; border-top: 1px solid var(--hairline); border-radius: 0; }
.lab-page .lab-history { padding-top: 64px; }
@media (max-width: 1023px) {
  .tide-board .stage-controls { gap: 24px; }
  .rule-draws { gap: 16px; }
  .editorial-grid { gap: 24px; }
}
@media (max-width: 1023px) and (min-width: 768px) {
  .rule-draws { grid-template-columns: 1fr; }
  .rule-draws figure { display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
}
@media (max-width: 767px) {
  .site-nav.nav-rail .nav-bar { width: calc(100% - 32px); padding-inline: 0; }
  .nav-end { margin-left: auto; }
  .nav-end .wallet-instrument { display: none; }
  .nav-sheet { padding: 24px; }
  body[data-page="story"] .harbour-head, .lab-page > .harbour-head { padding: 44px 20px 0; }
  .harbour-head h1 { font-size: clamp(30px, 8.5vw, 44px); margin-block: 20px; }
  .harbour-head .body-copy, .harbour-head .lede { font-size: 16px; }
  .harbour-head .hero-actions { gap: 8px; flex-wrap: wrap; margin-top: 24px; }
  .harbour-head .hero-actions a { font-size: 12px; padding-inline: 16px; }
  .tide-board { width: calc(100% - 32px); }
  .stage-object { height: 360px; min-height: 360px; }
  .tide-board .tide-object-slot { width: 66%; height: 360px; }
  .tide-board .tide-object-slot .tide-well { height: 360px; min-height: 360px; }
  .tide-board .tide-gauge { inset: 94px 2px auto auto; width: 32px; }
  .tide-board .tide-gauge__body, .tide-board .tide-gauge__rail { width: 32px; }
  .tide-board .tide-gauge__rail { height: 172px; min-height: 172px; }
  .tide-board .cycle-tick { right: 8px; font-size: 12px; }
  .stage-legend { font-size: 12px; gap: 2px 8px; padding-bottom: 24px; }
  .tide-board .stage-controls { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; padding: 24px 0; }
  .control-field label { font-size: 14px; }
  .control-field .ui-range__head { min-height: 66px; }
  .control-field .ui-range__read { line-height: 1.6; min-height: 40px; }
  .tide-board .tide-controls { grid-column: 1 / -1; padding: 0; justify-content: center; }
  .tide-board .guide-result { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) minmax(0, 1fr); gap: 8px; padding: 24px 0; }
  .tide-board .guide-result__item { gap: 8px; }
  .tide-board .guide-result__figure { flex-direction: row; flex-wrap: nowrap; align-items: center; gap: 6px; font-size: 16px; }
  .tide-board .guide-result__item--share .guide-result__figure { align-items: center; font-size: clamp(16px, 4.6vw, 20px); }
  .tide-board .guide-result__item:last-child .guide-result__figure { align-items: flex-end; }
  .tide-board .guide-result__label { min-height: 36px; }
  .tide-board .guide-result__note { display: none; }
  .result-arrow { width: 16px; height: 16px; flex-basis: 16px; }
  .stage-notes { display: block; }
  .stage-notes p + p { margin-top: 8px; }
  .stage-connect { display: flex; width: 100%; min-height: 48px; align-items: center; justify-content: center; margin: 4px 0 48px; }
  body[data-page="story"] .section { padding: 40px 0; }
  body[data-page="story"] .section > .wrap { width: calc(100% - 32px); }
  .editorial-grid { display: flex; flex-direction: column; gap: 32px; padding-top: 40px; align-items: stretch; }
  .editorial-grid > .left-tank-wrap { order: 1; }
  .editorial-grid > .harbour-reads { order: 2; }
  #rule > .wrap { padding-top: 40px; }
  #rule .section-head > div { display: block; }
  #rule .section-head h2 { margin-bottom: 24px; }
  #rule .rule-detail { grid-template-columns: 1fr; gap: 16px; }
  .rule-draws { grid-template-columns: minmax(280px, 1fr); gap: 40px; margin-top: 32px; }
  .rule-draws figcaption { margin-top: 8px; }
  .tank-figure text { font-size: 22px; }
  .machine-detail { display: flex; flex-direction: column; gap: 24px; padding-block: 40px; }
  .machine-detail .lab-out { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .tide-board *, .rule-draws * { animation: none !important; transition: none !important; }
}
