@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("assets/inter-latin-wght-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Fraunces Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("assets/fraunces-latin-opsz-normal.woff2") format("woff2-variations");
}

@layer reset, base, components, responsive;

@layer reset {
  *,
  *::before,
  *::after {
    box-sizing: border-box;
  }
  body,
  h1,
  h2,
  h3,
  p,
  ul,
  dl,
  dd,
  blockquote {
    margin: 0;
  }
  button,
  input,
  textarea,
  select {
    font: inherit;
  }
  button,
  a,
  input,
  textarea {
    -webkit-tap-highlight-color: transparent;
  }
  button {
    cursor: pointer;
  }
  a {
    color: inherit;
    text-decoration: none;
  }
  button {
    color: inherit;
  }
  img,
  svg {
    flex-shrink: 0;
  }
}

@layer base {
  :root {
    /* Glacier Lagoon — light theme (ice & sky). See design.md §2. */
    color-scheme: light;
    --bg: #f3efeb;
    --sidebar: #f8f5f1;
    --panel: #fdfcfa;
    --panel-hover: #f6f2ee;
    --chip: #ece7e2;
    --well: #f7f4f0;
    --line: #e3dcd5;
    --line-soft: #ece6e0;
    --line-strong: #cfc6bd;
    --text: #1f2326;
    --ink-2: #3a4045;
    --muted: #575d62;
    --subtle: #686e73;
    --accent: #176e85;
    --accent-strong: #135f73;
    --accent-soft: #d9ecf1;
    --accent-ink: #ffffff;
    --accent-rgb: 23 110 133;
    --line-accent: color-mix(in srgb, var(--accent) 38%, var(--line));
    --sand: #8c5b12;
    --sand-soft: #f5e7cf;
    --sand-ink: #3b2607;
    --sand-line: color-mix(in srgb, var(--sand) 32%, var(--line));
    --moss: #22704f;
    --moss-soft: #dcece3;
    --danger: #ad3a2e;
    --danger-soft: #f7e2df;
    --danger-ink: #4a1712;
    --danger-line: color-mix(in srgb, var(--danger) 35%, var(--line));
    --sunken: #1e1f1d;
    --sunken-hover: #292a27;
    --sunken-line: #363733;
    --sunken-text: #dfe6e2;
    --sunken-muted: #9fa8a3;
    --paper: #fbf8f3;
    --paper-2: #f2f3f3;
    --paper-3: #f4ede2;
    --paper-ink: #2a2d2a;
    --paper-muted: #6b6f6a;
    --paper-line: #e0dbd2;
    --scrim: rgb(31 35 38 / 0.42);
    --scrim-base: rgb(31 35 38 / 0.42);
    --shadow-rgb: 33 32 29;
    --shadow-1:
      0 1px 2px rgb(var(--shadow-rgb) / 0.06),
      0 6px 18px rgb(var(--shadow-rgb) / 0.06);
    --shadow-2:
      0 10px 30px rgb(var(--shadow-rgb) / 0.12),
      0 2px 8px rgb(var(--shadow-rgb) / 0.06);
    --shadow-3:
      0 24px 60px rgb(var(--shadow-rgb) / 0.22),
      0 4px 14px rgb(var(--shadow-rgb) / 0.08);
    --tone-ice: #5fb3cb;
    --tone-ice-rgb: 95 179 203;
    --tone-lagoon: #4f8ea3;
    --tone-lagoon-rgb: 79 142 163;
    --tone-dusk: #7d78a0;
    --tone-dusk-rgb: 125 120 160;
    --tone-sand: #b89253;
    --tone-sand-rgb: 184 146 83;
    --tone-ice-text: #1a7690;
    --tone-lagoon-text: #2d6a7c;
    --tone-dusk-text: #5a5480;
    --tone-sand-text: #86611f;
    --tone-ink: #1f2326;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-out-quick: cubic-bezier(0.4, 0, 1, 1);
    --font-display: "Fraunces Variable", Georgia, "Times New Roman", serif;
    --font-ui: "Inter Variable", system-ui, sans-serif;
    font-family: var(--font-ui);
    font-synthesis: none;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
  }

  body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-size: 14px;
    line-height: 1.6;
  }
  button {
    border: 0;
    background: none;
  }
  h1,
  h2,
  h3 {
    font-weight: 500;
    line-height: 1.3;
  }
  h1 {
    font-family: var(--font-display);
    font-size: 43px;
    letter-spacing: -1.9px;
    font-weight: 400;
  }
  h2 {
    font-size: 19px;
    letter-spacing: -0.5px;
  }
  h3 {
    font-size: 15px;
    letter-spacing: -0.2px;
  }
  strong {
    font-weight: 500;
  }
  code,
  pre,
  kbd {
    font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  }
  code {
    font-size: 11px;
    overflow-wrap: anywhere;
  }
  button,
  a {
    touch-action: manipulation;
  }
  :focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
  }
  h1:focus {
    outline: none;
  }
  ::selection {
    color: var(--accent-ink);
    background: var(--accent);
  }
  button:disabled {
    cursor: not-allowed;
    opacity: 0.43;
  }
  input,
  textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--well);
    color: var(--text);
    padding: 12px 13px;
    outline: none;
  }
  input:focus,
  textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgb(var(--accent-rgb) / 0.16);
  }
  input::placeholder,
  textarea::placeholder {
    color: var(--subtle);
  }
  textarea {
    resize: vertical;
  }
  p {
    overflow-wrap: break-word;
  }
  .muted {
    color: var(--muted);
  }
  .amber-text {
    color: var(--sand);
  }
  .danger-text {
    color: var(--danger);
  }
  .tone-ice {
    --tone: var(--tone-ice);
    --tone-rgb: var(--tone-ice-rgb);
    --tone-text: var(--tone-ice-text);
  }
  .tone-lagoon {
    --tone: var(--tone-lagoon);
    --tone-rgb: var(--tone-lagoon-rgb);
    --tone-text: var(--tone-lagoon-text);
  }
  .tone-dusk {
    --tone: var(--tone-dusk);
    --tone-rgb: var(--tone-dusk-rgb);
    --tone-text: var(--tone-dusk-text);
  }
  .tone-sand {
    --tone: var(--tone-sand);
    --tone-rgb: var(--tone-sand-rgb);
    --tone-text: var(--tone-sand-text);
  }
}

@layer components {
  .button {
    min-height: 39px;
    padding: 10px 16px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    line-height: 1.2;
    font-size: 11px;
    font-weight: 500;
    border: 1px solid transparent;
    transition:
      background 0.17s,
      border-color 0.17s,
      transform 0.17s var(--ease),
      box-shadow 0.17s;
  }
  .button.primary {
    background: var(--accent);
    color: var(--accent-ink);
    border-color: var(--accent);
    box-shadow: 0 1px 2px rgb(var(--shadow-rgb) / 0.13);
  }
  .button.primary:hover:not(:disabled) {
    background: var(--accent-strong);
    border-color: var(--accent-strong);
    box-shadow: 0 4px 16px rgb(var(--accent-rgb) / 0.25);
    transform: translateY(-1px);
  }
  .button.secondary {
    border-color: var(--line);
    background: var(--panel);
    color: var(--text);
  }
  .button.secondary:hover:not(:disabled) {
    background: var(--panel-hover);
    border-color: var(--line-strong);
  }
  .button.text {
    color: var(--muted);
  }
  .button.text:hover {
    color: var(--text);
  }
  .button.danger {
    background: var(--danger-soft);
    color: var(--danger);
    border: 1px solid var(--danger-line);
  }
  .button:active:not(:disabled) {
    transform: scale(0.98);
  }
}
@layer reset, base, components, responsive;
/* First-run welcome: three variations (Horizon, Constellation, Conversation). Tokens only. */
@layer components {
  /* ---------- shared shell ---------- */
  .ob-root {
    --ob-gutter: clamp(20px, 5vw, 72px);
    --ob-dots: radial-gradient(
      circle,
      color-mix(in srgb, var(--line-strong) 70%, transparent) 1px,
      transparent 1.2px
    );
    position: relative;
    min-height: 100dvh;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-ui);
  }
  .ob-topbar {
    position: fixed;
    inset: 0 0 auto 0;
    height: 64px;
    padding: 0 max(16px, calc(var(--ob-gutter) - 16px));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    z-index: 30;
    background: color-mix(in srgb, var(--bg) 78%, transparent);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
    transition:
      background 0.3s,
      border-color 0.3s;
  }
  .ob-root.ob-horizon:not(.ob-scrolled) .ob-topbar {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom-color: transparent;
  }
  .ob-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 500;
    letter-spacing: -0.02em;
    color: var(--text);
  }
  .ob-brand svg {
    color: var(--accent);
  }
  .ob-brand .brand-period {
    color: var(--accent);
  }
  .ob-topbar-actions {
    display: flex;
    align-items: center;
    gap: 6px;
  }
  .ob-variants {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 3px;
    border-radius: 999px;
    background: var(--chip);
  }
  .ob-variants-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--muted);
    padding: 0 8px 0 10px;
  }
  .ob-variants button {
    border: 0;
    background: transparent;
    border-radius: 999px;
    padding: 6px 12px;
    min-height: 30px;
    font-size: 12px;
    font-weight: 500;
    color: var(--muted);
    transition:
      background 0.18s,
      color 0.18s,
      box-shadow 0.18s;
  }
  .ob-variants button:hover {
    color: var(--text);
  }
  .ob-variants button.active {
    background: var(--panel);
    color: var(--text);
    box-shadow: var(--shadow-1);
  }
  .ob-skip {
    border: 0;
    background: transparent;
    font-size: 13px;
    font-weight: 500;
    color: var(--muted);
    padding: 8px 12px;
    min-height: 36px;
    border-radius: 8px;
    white-space: nowrap;
    transition: color 0.15s;
  }
  .ob-skip:hover {
    color: var(--text);
  }
  .ob-skip-short {
    display: none;
  }
  .ob-loading {
    padding: 40vh 20px 0;
    text-align: center;
    color: var(--muted);
    font-size: 14px;
  }
  .ob-link {
    border: 0;
    background: transparent;
    padding: 0;
    color: var(--accent);
    font: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
  }
  .ob-link:hover {
    color: var(--accent-strong);
  }
  .ob-eyebrow {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--subtle);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
  }
  .ob-eyebrow.sand {
    color: var(--sand);
  }
  .ob-eyebrow.light {
    color: var(--accent);
  }
  .ob-chapter-body {
    font-size: 16px;
    line-height: 1.6;
    color: var(--muted);
    max-width: 52ch;
    text-wrap: pretty;
  }
  .button.large {
    padding: 12px 18px;
    font-size: 13px;
    min-height: 44px;
  }
  .button.ghost-light {
    background: color-mix(in srgb, var(--panel) 55%, transparent);
    border-color: color-mix(in srgb, var(--text) 22%, transparent);
    color: var(--text);
    backdrop-filter: blur(8px);
  }
  .button.ghost-light:hover:not(:disabled) {
    background: color-mix(in srgb, var(--panel) 80%, transparent);
    border-color: color-mix(in srgb, var(--text) 40%, transparent);
  }
  .ob-star-disc {
    width: 28px;
    height: 28px;
    flex: none;
    border-radius: 50%;
    display: inline-grid;
    place-items: center;
    background: var(--accent);
    color: var(--accent-ink);
    box-shadow: 0 4px 12px rgb(var(--accent-rgb) / 0.28);
  }
  .ob-star-disc.large {
    width: 52px;
    height: 52px;
    border-radius: 16px;
  }
  .ob-avatar {
    width: 34px;
    height: 34px;
    flex: none;
    border-radius: 50%;
    display: inline-grid;
    place-items: center;
    background:
      radial-gradient(
        circle at 30% 22%,
        rgb(255 255 255 / 0.32),
        transparent 58%
      ),
      linear-gradient(
        160deg,
        color-mix(in srgb, var(--tone) 78%, white),
        var(--tone)
      );
    color: var(--tone-ink);
    border: 1px solid color-mix(in srgb, var(--tone) 60%, var(--line));
    font-family: var(--font-display);
    font-size: 13px;
    letter-spacing: -0.4px;
    font-weight: 600;
  }
  .ob-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 500;
    color: var(--muted);
    white-space: nowrap;
  }
  .ob-status i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
  }
  .ob-status.working,
  .ob-status.approved {
    color: var(--moss);
  }
  .ob-status.working i {
    animation: ob-breathe 2.4s ease-in-out infinite;
  }
  .ob-status.waiting {
    color: var(--sand);
  }
  .ob-milestone-line {
    display: block;
    height: 3px;
    border-radius: 2px;
    background: var(--line);
    overflow: hidden;
    margin-top: 14px;
  }
  .ob-milestone-line > span {
    display: block;
    width: 100%;
    height: 100%;
    background: var(--tone, var(--accent));
    transform-origin: left center;
  }
  .ob-milestone-count {
    display: block;
    margin-top: 6px;
    font-size: 11px;
    color: var(--subtle);
  }
  .ob-goal-title {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 26px;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 6px 0 4px;
    text-wrap: balance;
  }
  .ob-goal-title.placeholder {
    color: var(--subtle);
    font-style: italic;
  }
  .ob-goal-next {
    font-size: 13px;
    color: var(--muted);
    margin: 0;
  }
  .ob-result-icon {
    width: 32px;
    height: 32px;
    flex: none;
    border-radius: 9px;
    display: inline-grid;
    place-items: center;
    background: var(--accent-soft);
    color: var(--accent);
  }

  /* ---------- scenes (shared illustrations) ---------- */
  .ob-scene {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  .ob-composer {
    width: min(100%, 420px);
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 14px 18px 12px;
    box-shadow: var(--shadow-1);
  }
  .ob-composer-to {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--accent);
    margin: 0 0 10px;
  }
  .ob-composer-text {
    font-size: 17px;
    line-height: 1.5;
    min-height: 3.1em;
    margin: 0;
    color: var(--text);
  }
  .ob-caret {
    display: inline-block;
    width: 2px;
    height: 1em;
    margin-left: 2px;
    vertical-align: text-bottom;
    background: var(--accent);
    animation: ob-blink 1s steps(2, start) infinite;
  }
  .ob-composer-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 11px;
    color: var(--subtle);
  }
  .ob-send {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: inline-grid;
    place-items: center;
    background: var(--chip);
    color: var(--muted);
    transition:
      background 0.3s,
      color 0.3s,
      transform 0.3s var(--ease);
  }
  .ob-send.ready {
    background: var(--accent);
    color: var(--accent-ink);
    transform: scale(1.06);
  }
  .ob-star-reply {
    width: min(100%, 420px);
    margin-top: 14px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--ink-2);
  }
  .ob-star-reply > span:last-child {
    padding-top: 4px;
  }
  .ob-goal-card {
    width: min(100%, 400px);
    background: var(--panel);
    border: 1px solid color-mix(in srgb, var(--tone) 30%, var(--line));
    border-radius: 16px;
    padding: 22px 24px 20px;
    box-shadow: var(--shadow-1);
  }
  .ob-lead-row {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--line-soft);
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .ob-lead-row > span:nth-child(2),
  .ob-lead-node > span:nth-child(2),
  .ob-node-person > span:nth-child(2) {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    line-height: 1.3;
  }
  .ob-lead-row strong,
  .ob-lead-node strong,
  .ob-node-person strong {
    font-size: 14px;
    font-weight: 600;
  }
  .ob-lead-row small,
  .ob-lead-node small,
  .ob-node-person small {
    font-size: 12px;
    color: var(--muted);
  }
  .ob-scene-specialists {
    width: min(100%, 360px);
  }
  .ob-lead-node {
    width: 210px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 12px;
    background: var(--panel);
    border: 1px solid color-mix(in srgb, var(--tone) 30%, var(--line));
    box-shadow: var(--shadow-1);
  }
  .ob-wires {
    display: block;
    width: 100%;
    height: 70px;
    overflow: visible;
  }
  .ob-wire {
    fill: none;
    stroke: color-mix(in srgb, var(--tone) 60%, var(--line-strong));
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-dasharray: 400;
    stroke-dashoffset: 400;
    animation: ob-draw 0.8s var(--ease) forwards;
    animation-delay: calc(0.1s + var(--i) * 0.16s);
  }
  .ob-specialist-row {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
  .ob-specialist {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    text-align: center;
    padding: 14px 8px 12px;
    border-radius: 12px;
    background: var(--panel);
    border: 1px solid color-mix(in srgb, var(--tone) 30%, var(--line));
    animation: ob-pop 0.45s var(--ease) both;
    animation-delay: calc(0.75s + var(--i) * 0.16s);
  }
  .ob-specialist strong {
    font-size: 13px;
    font-weight: 600;
    margin-top: 4px;
  }
  .ob-specialist small {
    font-size: 11px;
    color: var(--muted);
  }
  .ob-specialist .ob-status {
    margin-top: 4px;
  }
  .ob-decision {
    width: min(100%, 440px);
    background: var(--panel);
    border: 1px solid var(--sand-line);
    border-radius: 16px;
    padding: 20px 22px;
    box-shadow: var(--shadow-1);
  }
  .ob-decision-title {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 22px;
    letter-spacing: -0.015em;
    line-height: 1.2;
    margin: 8px 0 8px;
    text-wrap: balance;
  }
  .ob-decision-body {
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--muted);
    margin: 0;
  }
  .ob-evidence {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 6px 10px;
    border-radius: 8px;
    background: var(--well);
    border: 1px solid var(--line-soft);
    font-size: 12px;
    color: var(--ink-2);
  }
  .ob-decision-actions {
    margin-top: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    min-height: 36px;
  }
  .ob-decision-actions .button {
    min-height: 36px;
  }
  .ob-result-slip {
    width: min(100%, 440px);
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    background: var(--moss-soft);
    border: 1px solid color-mix(in srgb, var(--moss) 30%, var(--line));
  }
  .ob-result-slip .ob-result-icon {
    background: color-mix(in srgb, var(--moss) 18%, var(--panel));
    color: var(--moss);
  }
  .ob-result-slip > span:last-child {
    display: flex;
    flex-direction: column;
  }
  .ob-result-slip strong {
    font-size: 13px;
  }
  .ob-result-slip small {
    font-size: 12px;
    color: var(--muted);
  }
  .ob-scene-results {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    width: min(100%, 540px);
    align-items: stretch;
    padding: 12px 0;
  }
  .ob-result-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-height: 170px;
    padding: 16px 14px;
    border-radius: 12px;
    background: var(--paper);
    color: var(--paper-ink);
    border: 1px solid var(--paper-line);
    box-shadow: var(--shadow-1);
  }
  .ob-result-card .ob-eyebrow {
    color: var(--paper-muted);
    margin-top: 6px;
  }
  .ob-result-card .ob-result-icon,
  .ob-node-result .ob-result-icon {
    background: color-mix(in srgb, var(--paper-ink) 8%, var(--paper));
    color: var(--paper-ink);
  }
  .ob-result-card strong {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 15px;
    line-height: 1.25;
    letter-spacing: -0.01em;
  }
  .ob-result-card small {
    font-size: 11px;
    color: var(--paper-muted);
    margin-top: auto;
  }

  /* ---------- goal forming (shared) ---------- */
  .ob-criteria {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    padding: 0;
    margin: 0 0 18px;
    font-size: 12px;
    font-weight: 500;
    color: var(--subtle);
  }
  .ob-criteria li {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: color 0.25s;
  }
  .ob-criteria li.current {
    color: var(--text);
  }
  .ob-criteria li.done {
    color: var(--moss);
  }
  .ob-criterion-mark {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: inline-grid;
    place-items: center;
    font-size: 10px;
    font-weight: 600;
    border: 1px solid var(--line-strong);
    color: var(--subtle);
    transition:
      background 0.25s,
      border-color 0.25s,
      color 0.25s;
  }
  .ob-criteria li.current .ob-criterion-mark {
    border-color: var(--accent);
    color: var(--accent);
  }
  .ob-criteria li.done .ob-criterion-mark {
    background: var(--moss);
    border-color: var(--moss);
    color: #fff;
  }
  .ob-criteria.inline {
    margin: 0;
    gap: 4px 12px;
  }
  .ob-forming-prompt {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
  }
  .ob-forming-prompt p {
    margin: 0;
    padding-top: 3px;
    font-size: 15px;
    line-height: 1.55;
    color: var(--text);
    text-wrap: pretty;
  }
  .ob-forming-prompt strong {
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 2px;
  }
  .ob-forming-field textarea {
    width: 100%;
    resize: vertical;
    min-height: 72px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--line-strong);
    background: var(--well);
    color: var(--text);
    font-size: 15px;
    line-height: 1.5;
    outline: none;
    transition:
      border-color 0.15s,
      box-shadow 0.15s;
  }
  .ob-forming-field textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgb(var(--accent-rgb) / 0.16);
  }
  .ob-forming-actions {
    margin-top: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
  }
  .ob-forming-actions .button {
    min-height: 40px;
  }
  .ob-forming-hint {
    font-size: 12px;
    color: var(--subtle);
  }
  .ob-forming-compact .ob-criteria {
    margin-bottom: 12px;
  }
  .ob-forming-compact .ob-forming-prompt p {
    font-size: 14px;
  }
  .ob-forming-compact .ob-forming-field textarea {
    min-height: 60px;
    font-size: 14px;
  }
  .ob-forming-compact .ob-forming-hint {
    display: none;
  }

  /* ---------- starters ---------- */
  .ob-starters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 16px;
  }
  .ob-starter {
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 200px;
    padding: 22px 22px 20px;
    border-radius: 16px;
    background: var(--panel);
    border: 1px solid var(--line);
    color: var(--text);
    transition:
      transform 0.2s var(--ease),
      box-shadow 0.2s,
      border-color 0.2s;
  }
  .ob-starter:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-1);
    border-color: var(--line-strong);
  }
  .ob-starter:hover .ob-starter-arrow {
    transform: translate(2px, -2px);
    color: var(--accent);
  }
  .ob-starter-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .ob-starter-arrow {
    color: var(--subtle);
    transition:
      transform 0.2s var(--ease),
      color 0.2s;
  }
  .ob-starter strong {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 24px;
    letter-spacing: -0.02em;
    line-height: 1.12;
    margin-top: 4px;
  }
  .ob-starter em {
    font-style: normal;
    font-size: 14px;
    line-height: 1.5;
    color: var(--ink-2);
  }
  .ob-starter small {
    margin-top: auto;
    font-size: 12px;
    line-height: 1.5;
    color: var(--muted);
    padding-top: 8px;
  }
  .ob-starter-own {
    border-style: dashed;
    background: var(--well);
  }
  .ob-starter-chips,
  .ob-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  .ob-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 36px;
    padding: 7px 14px;
    border-radius: 999px;
    border: 1px solid var(--line-strong);
    background: var(--panel);
    color: var(--text);
    font-size: 13px;
    font-weight: 500;
    transition:
      background 0.15s,
      border-color 0.15s,
      transform 0.15s var(--ease);
  }
  .ob-chip:hover {
    background: var(--panel-hover);
    border-color: var(--accent);
  }
  .ob-chip:active {
    transform: scale(0.98);
  }
  .ob-chip-primary {
    background: var(--accent-soft);
    border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
    color: var(--accent);
  }

  /* ---------- A · Horizon ---------- */
  .ob-hero {
    position: relative;
    min-height: 86dvh;
    display: grid;
    align-items: end;
    padding: 120px var(--ob-gutter) 12vh;
    overflow: hidden;
    isolation: isolate;
  }
  .ob-hero-photo,
  .ob-hero-photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
  }
  .ob-hero-photo img {
    object-fit: cover;
    object-position: 50% 42%;
    transform-origin: 50% 40%;
    animation: ob-settle 12s ease-out both;
  }
  .ob-hero-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(
      180deg,
      color-mix(in srgb, var(--bg) 0%, transparent) 28%,
      color-mix(in srgb, var(--bg) 62%, transparent) 62%,
      var(--bg) 100%
    );
  }
  .ob-hero-copy {
    position: relative;
    max-width: 760px;
    z-index: 1;
  }
  .ob-hero-copy h1 {
    font-family: var(--font-display);
    font-variation-settings: "opsz" 72;
    font-weight: 500;
    font-size: clamp(38px, 6vw, 68px);
    line-height: 1.05;
    letter-spacing: -0.025em;
    margin: 14px 0 18px;
    text-wrap: balance;
    outline: none;
  }
  .ob-hero-sub {
    font-size: clamp(16px, 1.6vw, 19px);
    line-height: 1.55;
    color: var(--ink-2);
    max-width: 44ch;
    margin: 0 0 26px;
    text-wrap: pretty;
  }
  .ob-hero-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
  }
  .ob-scroll-cue {
    position: absolute;
    left: 50%;
    bottom: 22px;
    translate: -50% 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid color-mix(in srgb, var(--text) 18%, transparent);
    background: color-mix(in srgb, var(--panel) 50%, transparent);
    color: var(--muted);
    display: grid;
    place-items: center;
    animation: ob-bob 2.6s ease-in-out infinite;
    z-index: 1;
  }
  .ob-chapters {
    position: relative;
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) minmax(380px, 46%);
    column-gap: clamp(24px, 4vw, 56px);
    padding: 4vh var(--ob-gutter) 0;
    max-width: 1440px;
    margin: 0 auto;
  }
  .ob-rail {
    position: sticky;
    top: 46vh;
    align-self: start;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 0;
  }
  .ob-rail button {
    width: 28px;
    height: 28px;
    border: 0;
    background: transparent;
    display: grid;
    place-items: center;
    border-radius: 50%;
  }
  .ob-rail button span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--line-strong);
    transition:
      background 0.25s,
      box-shadow 0.25s,
      transform 0.25s var(--ease);
  }
  .ob-rail button.read span {
    background: var(--muted);
  }
  .ob-rail button.active span {
    background: var(--accent);
    transform: scale(1.3);
    box-shadow: 0 0 0 4px rgb(var(--accent-rgb) / 0.18);
  }
  .ob-chapter-list {
    min-width: 0;
  }
  .ob-chapter {
    min-height: 74vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
    max-width: 540px;
  }
  .ob-chapter h2 {
    color: var(--ink-2);
    transition: color 0.4s;
  }
  .ob-chapter .ob-eyebrow {
    color: var(--muted);
    transition: color 0.4s;
  }
  .ob-chapter.active h2 {
    color: var(--text);
  }
  .ob-chapter.active .ob-eyebrow {
    color: var(--accent);
  }
  .ob-chapter h2,
  .ob-first-goal h2,
  .ob-caption h2 {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(28px, 3.2vw, 40px);
    line-height: 1.12;
    letter-spacing: -0.02em;
    margin: 0;
    text-wrap: balance;
  }
  .ob-chapter-number {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0;
    color: var(--accent);
    text-transform: none;
    margin-right: 4px;
  }
  .ob-stage-column {
    position: sticky;
    top: 13vh;
    height: 74vh;
    align-self: start;
    display: flex;
    align-items: center;
  }
  .ob-stage {
    width: 100%;
    max-height: 100%;
    aspect-ratio: 5 / 4;
    border-radius: 22px;
    border: 1px solid var(--line);
    background-color: var(--well);
    background-image: var(--ob-dots);
    background-size: 22px 22px;
    background-position: 11px 11px;
    display: grid;
    place-items: center;
    padding: clamp(18px, 3vw, 40px);
    overflow: hidden;
  }
  .ob-stage-frame {
    width: 100%;
    display: grid;
    place-items: center;
  }
  .ob-stage-inline {
    aspect-ratio: auto;
    margin-top: 12px;
    padding: 22px 18px;
  }
  .ob-first-goal {
    max-width: 1440px;
    margin: 0 auto;
    padding: 12vh var(--ob-gutter) 16vh;
  }
  .ob-first-goal-head {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 640px;
    margin-bottom: 36px;
  }
  .ob-first-goal-foot {
    margin: 22px 0 0;
    font-size: 13px;
    color: var(--muted);
  }
  .ob-forming-panel {
    max-width: 720px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 26px 28px 22px;
    box-shadow: var(--shadow-1);
  }
  .ob-forming-starter {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin: 0 0 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line-soft);
  }
  .ob-forming-starter strong {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 20px;
    letter-spacing: -0.015em;
  }
}

/* Static Horizon shell and local demo states. */
[hidden] {
  display: none !important;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 12px 20px;
  background: var(--panel);
  transform: translateY(-160%);
}
.skip-link:focus {
  transform: none;
}
.hero-demo {
  margin-top: 18px;
  color: var(--muted);
  font-size: 12px;
}
.demo-note {
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}
.scene-demo {
  color: var(--subtle);
  font-size: 10px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 20px;
  text-align: center;
}
.ob-stage-column {
  display: none;
}
.inline-mount {
  padding: 28px 20px;
  background: var(--well);
  border: 1px solid var(--line);
  border-radius: 22px;
  background-image: var(--ob-dots);
  background-size: 22px 22px;
}
.js-ready .ob-stage-column {
  display: flex;
}
.js-ready .inline-mount {
  display: none;
}
.ob-stage {
  min-height: 440px;
  overflow: visible;
}
.ob-stage-frame {
  min-width: 0;
}
#desktop-stage > .ob-stage-frame {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition:
    opacity 0.3s var(--ease),
    transform 0.3s var(--ease),
    visibility 0.3s;
}
#desktop-stage > .ob-stage-frame.active {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.ob-evidence {
  display: block;
}
.ob-evidence summary {
  cursor: pointer;
}
.ob-evidence summary svg {
  vertical-align: middle;
  margin-right: 4px;
}
.ob-evidence p {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.55;
}
.ob-result-slip {
  animation: ob-rise 0.36s var(--ease) both;
}
.ob-star-disc img {
  border-radius: 3px;
}
.ob-forming-panel {
  max-width: 820px;
}
.form-error {
  margin-top: 10px;
  color: var(--danger);
  font-size: 13px;
}
.review-heading {
  font: 500 28px/1.2 var(--font-display);
  margin-bottom: 12px;
}
.agreement {
  margin-top: 22px;
}
.agreement > div {
  padding: 16px 0;
  border-top: 1px solid var(--line-soft);
}
.agreement dt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  color: var(--accent);
}
.agreement dd {
  font-size: 15px;
  line-height: 1.6;
  margin-top: 6px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.goal-summary {
  max-width: 980px;
}
.goal-summary h3 {
  font: 500 23px/1.25 var(--font-display);
}
.summary-top {
  display: flex;
  gap: 16px;
  align-items: start;
  justify-content: space-between;
}
.summary-top .ob-goal-title {
  margin-top: 10px;
}
.summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 24px;
}
.summary-grid > section {
  min-width: 0;
}
.sample-milestones {
  padding-left: 21px;
  margin: 16px 0 0;
}
.sample-milestones li {
  padding: 0 0 18px 4px;
}
.sample-milestones strong {
  display: block;
  font-size: 14px;
}
.sample-milestones p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}
.sample-result {
  background: var(--paper);
  border: 1px solid var(--paper-line);
  border-radius: 12px;
  padding: 18px;
  margin-top: 14px;
}
.sample-result h4 {
  font: 500 20px/1.3 var(--font-display);
  margin: 8px 0;
}
.sample-result p {
  margin-top: 8px;
  font-size: 13px;
}
.sample-result blockquote {
  border-left: 2px solid var(--accent);
  padding-left: 12px;
  margin-top: 12px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 13px;
}
.site-footer {
  max-width: 1440px;
  margin: auto;
  padding: 30px var(--ob-gutter);
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 12px;
}
@keyframes ob-settle {
  from {
    transform: scale(1.06);
  }
  to {
    transform: scale(1);
  }
}
@keyframes ob-bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(6px);
  }
}
@keyframes ob-draw {
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes ob-pop {
  from {
    opacity: 0;
    transform: translateY(6px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes ob-rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes ob-breathe {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.55;
  }
}
@media (max-width: 1100px) {
  .ob-chapters {
    grid-template-columns: 28px minmax(0, 1fr) minmax(340px, 46%);
  }
}
@media (max-width: 900px) {
  .ob-chapters {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 24px;
  }
  .ob-rail,
  .js-ready .ob-stage-column {
    display: none;
  }
  .js-ready .inline-mount {
    display: block;
  }
  .ob-chapter {
    min-height: auto;
    max-width: none;
    padding: 32px 0;
  }
  .ob-chapter h2 {
    color: var(--text);
  }
  .ob-hero {
    min-height: 78dvh;
    padding-top: 96px;
    padding-bottom: 10vh;
  }
  .ob-first-goal {
    padding: 8vh var(--ob-gutter) 12vh;
  }
  .ob-forming-panel {
    padding: 20px 18px 18px;
  }
  .ob-stage {
    min-height: 0;
  }
  .scene-demo {
    margin-bottom: 18px;
  }
}
@media (max-width: 600px) {
  .ob-topbar {
    height: 60px;
    padding: 0 16px;
  }
  .ob-topbar-actions {
    gap: 0;
  }
  .ob-skip {
    font-size: 12px;
    padding-inline: 8px;
  }
  .ob-topbar-actions .button {
    padding: 8px 10px;
    font-size: 12px;
  }
  .ob-brand {
    font-size: 21px;
  }
  .ob-scene-results {
    gap: 8px;
  }
  .ob-result-card {
    padding: 12px 9px;
    min-height: 190px;
  }
  .ob-result-card .ob-eyebrow {
    font-size: 9px;
    letter-spacing: 0.4px;
  }
  .ob-result-card strong {
    font-size: 14px;
  }
  .ob-result-card small {
    font-size: 10px;
  }
  .ob-decision {
    padding: 18px 16px;
  }
  .ob-specialist-row {
    gap: 6px;
  }
  .ob-specialist {
    padding: 12px 3px;
  }
  .ob-specialist .ob-status {
    font-size: 10px;
  }
  .ob-starters {
    grid-template-columns: 1fr;
  }
  .ob-starter {
    min-height: 0;
  }
  .ob-forming-hint {
    flex-basis: 100%;
    order: 3;
    text-align: center;
  }
  .ob-forming-starter {
    flex-wrap: wrap;
    gap: 4px 12px;
  }
  .summary-grid {
    grid-template-columns: 1fr;
  }
  .summary-top {
    flex-wrap: wrap;
  }
  .site-footer {
    flex-wrap: wrap;
  }
  .site-footer p {
    display: none;
  }
}
@media (max-width: 360px) {
  .ob-topbar-actions .ob-skip {
    display: none;
  }
  .inline-mount {
    padding-inline: 10px;
  }
}
@media (hover: none) {
  .ob-starter:hover {
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0ms !important;
    transition-duration: 0.001ms !important;
  }
}
