/* ============================================================================
   Liito Labs shared site styles.
   Extracted verbatim from the operator page inline stylesheet on 2026-09-07
   (liito-labs #11). Source order preserved so the operator page renders
   identically: tokens, base, layout atoms, buttons, nav, section, dark band,
   footer, horizon divider, shared responsive rules, intro curtain.
   Page-specific rules stay inline in each page.
   ============================================================================ */

  /* ============================================================================
     Liito Labs: canonical DEC-126 "The Brass" tokens, verbatim from
     virta/app/src/design/tokens.css. Ink-led warm neutrals; brass is a
     restrained accent. Jewel-tone guard colors appear only where functional.
     ============================================================================ */
  :root{
    --bg:            oklch(0.985 0.006 80);
    --surface:       oklch(0.978 0.008 80);
    --surface-2:     oklch(0.955 0.012 78);
    --sunken:        oklch(0.945 0.010 78);
    --ink:           oklch(0.185 0.02 70);
    --ink-muted:     oklch(0.40 0.02 70);
    --ink-faint:     oklch(0.52 0.02 72);
    --line:          oklch(0.905 0.013 78);
    --line-strong:   oklch(0.86 0.015 78);
    --brass:         oklch(0.40 0.09 58);
    --brass-deep:    oklch(0.33 0.08 56);
    --ring:          oklch(0.52 0.07 62);

    --dark-bg:       oklch(0.155 0.012 72);
    --dark-surface:  oklch(0.19 0.015 72);
    --dark-raised:   oklch(0.235 0.016 72);
    --dark-fg:       oklch(0.93 0.01 80);
    --dark-muted:    oklch(0.66 0.02 78);
    --dark-line:     oklch(0.30 0.018 72);
    --dark-brass:    oklch(0.72 0.10 62);

    --pass: oklch(0.53 0.145 155); --pass-subtle: oklch(0.94 0.035 155); --pass-fg: oklch(0.30 0.07 155);
    --fail: oklch(0.48 0.17 22);   --fail-subtle: oklch(0.94 0.035 22);  --fail-fg: oklch(0.34 0.08 22);
    --warn: oklch(0.66 0.17 72);   --warn-subtle: oklch(0.95 0.045 72);  --warn-fg: oklch(0.30 0.05 64);
    --state:oklch(0.50 0.15 242);  --state-subtle:oklch(0.94 0.04 242);  --state-fg:oklch(0.30 0.06 242);

    --font-sans:'Instrument Sans', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono:'IBM Plex Mono', ui-monospace, Menlo, Consolas, monospace;
    --r:.375rem; --r-lg:.5rem; --r-xl:.75rem; --r-2xl:1rem;
    --shadow-sm: 0 1px 2px oklch(0.15 0.01 75 / 0.06);
    --shadow-md: 0 2px 8px oklch(0.15 0.01 75 / 0.08), 0 1px 2px oklch(0.15 0.01 75 / 0.04);
    --shadow-lg: 0 4px 16px oklch(0.15 0.01 75 / 0.10), 0 2px 4px oklch(0.15 0.01 75 / 0.05);
    --shadow-xl: 0 20px 50px oklch(0.15 0.02 70 / 0.14), 0 6px 16px oklch(0.15 0.02 70 / 0.08);
    --maxw:1120px;
  }

  *,*::before,*::after{ box-sizing:border-box; margin:0; padding:0; }
  html{ scroll-padding-top:5.5rem; -webkit-text-size-adjust:100%; font-size:18px; }
  @media (max-width:900px){ html{ font-size:17px; } }
  @media (max-width:520px){ html{ font-size:16px; } }
  body{
    font-family:var(--font-sans); font-size:1rem; line-height:1.6;
    color:var(--ink); background:var(--bg);
    -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility;
  }
  a{ color:inherit; text-decoration:none; }
  ::selection{ background:oklch(0.40 0.09 58 / 0.16); }

  .wrap{ max-width:var(--maxw); margin:0 auto; padding:0 1.5rem; }
  .kicker{ font-family:var(--font-mono); font-size:0.74rem; font-weight:500; letter-spacing:0.16em; text-transform:uppercase; color:var(--brass); }
  .pp{ display:inline-flex; align-items:center; font-family:var(--font-mono); font-size:0.72rem; font-weight:500; letter-spacing:0.12em; text-transform:uppercase; color:var(--ink-faint); border:1px solid var(--line); border-radius:999px; padding:0.15rem 0.55rem; margin-left:0.65rem; vertical-align:middle; }
  .eyebrow{
    display:inline-flex; align-items:center; gap:0.55rem;
    font-family:var(--font-mono); font-size:0.7rem; font-weight:500;
    letter-spacing:0.12em; text-transform:uppercase; color:var(--ink-muted);
    background:var(--surface); border:1px solid var(--line); border-radius:999px; padding:0.32rem 0.75rem;
  }
  .eyebrow .dot{ width:0.4rem; height:0.4rem; border-radius:50%; background:var(--pass); box-shadow:0 0 0 3px var(--pass-subtle); }

  /* ---- buttons ---- */
  .btn{
    display:inline-flex; align-items:center; justify-content:center; gap:0.5rem;
    font-family:var(--font-sans); font-size:0.95rem; font-weight:600;
    padding:0.7rem 1.2rem; border-radius:var(--r-lg); cursor:pointer; border:1px solid transparent;
    transition:transform .12s ease, box-shadow .12s ease, background .12s ease, border-color .12s ease; white-space:nowrap;
  }
  .btn-primary{ background:var(--brass); color:oklch(0.99 0.005 80); box-shadow:var(--shadow-sm); }
  .btn-primary:hover{ background:var(--brass-deep); transform:translateY(-1px); box-shadow:var(--shadow-md); }
  .btn-ghost{ background:transparent; color:var(--ink); border-color:var(--line-strong); }
  .btn-ghost:hover{ background:var(--surface-2); border-color:var(--ink-faint); }
  .btn-lg{ font-size:1.02rem; padding:0.85rem 1.5rem; }
  .btn-block{ width:100%; }
  .btn[disabled]{ opacity:0.6; cursor:not-allowed; transform:none; }

  /* ---- inline prose link ---- */
  .inline-link{ color:var(--brass-deep); font-weight:600; border-bottom:1px solid oklch(0.40 0.09 58 / 0.35); }
  .inline-link:hover{ border-bottom-color:var(--brass); }
  .band .inline-link, .dark-on .inline-link{ color:var(--dark-brass); border-bottom-color:oklch(0.72 0.10 62 / 0.4); }

  /* ---- nav ---- */
  header.nav{ position:sticky; top:0; z-index:50; background:oklch(0.19 0.015 72 / 0.92); backdrop-filter:blur(12px); border-bottom:1px solid var(--dark-line); }
  .nav-inner{ display:flex; align-items:center; justify-content:flex-start; min-height:4.5rem; gap:2.25rem; }
  .nav-cta{ margin-left:auto; }
  .brand{ display:inline-flex; align-items:center; }
  .brand .logo{ height:2.5rem; width:auto; display:block; color:var(--dark-fg); }
  .nav-links{ display:flex; align-items:center; gap:1.4rem; }
  .nav-links a{ font-size:0.88rem; white-space:nowrap; font-weight:500; color:var(--dark-muted); transition:color .12s ease; }
  .nav-links a:hover{ color:var(--dark-fg); }
  .nav-links a[aria-current="page"]{ color:var(--dark-fg); box-shadow:0 1px 0 0 var(--dark-brass); padding-bottom:0.15rem; } /* the page you are on stays in the header, marked, never removed */
  .nav-left{ display:flex; align-items:center; gap:1.1rem; }

  /* ---- op-type chip (the four regimes) ---- */
  .op{
    display:inline-flex; align-items:center; gap:0.35rem;
    font-family:var(--font-mono); font-size:0.68rem; font-weight:500; letter-spacing:0.06em; text-transform:uppercase;
    color:var(--ink-muted); background:var(--surface-2); border:1px solid var(--line); border-radius:999px; padding:0.2rem 0.55rem;
  }
  .op .tick{ width:0.34rem; height:0.34rem; border-radius:50%; background:var(--brass); }
  .op.t-train .tick{ background:var(--state); }
  .op.t-rent .tick{ background:var(--pass); }
  .op.t-owner .tick{ background:var(--warn); }

  .pill{ display:inline-flex; align-items:center; gap:0.32rem; flex:none; font-size:0.72rem; font-weight:600; padding:0.13rem 0.5rem; border-radius:999px; white-space:nowrap; font-family:var(--font-sans); line-height:1.4; }
  .pill .gl{ font-size:0.9em; }
  .pill.pass{ background:var(--pass-subtle); color:var(--pass-fg); border:1px solid oklch(0.53 0.145 155 / 0.35); }
  .pill.fail{ background:var(--fail); color:oklch(0.97 0.012 25); border:1px solid oklch(0.42 0.17 22); }
  .pill.warn{ background:var(--warn-subtle); color:var(--warn-fg); border:1px solid oklch(0.66 0.17 72 / 0.40); }
  .pill.state{ background:var(--state-subtle); color:var(--state-fg); border:1px solid oklch(0.50 0.15 242 / 0.35); }

  /* ---- board card (hero visual: one day, four operations) ---- */
  .board{ background:var(--surface); border:1px solid var(--line-strong); border-radius:var(--r-2xl); box-shadow:var(--shadow-xl); overflow:hidden; }
  .board-head{ display:flex; align-items:center; gap:0.6rem; padding:0.95rem 1.25rem; background:var(--dark-bg); color:var(--dark-fg); }
  .board-head .t{ font-weight:600; font-size:0.92rem; }
  .board-head .meta{ margin-left:auto; font-family:var(--font-mono); font-size:0.72rem; color:var(--dark-muted); }
  .board-row{ display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:0.6rem 0.9rem; padding:0.8rem 1.25rem; border-bottom:1px solid var(--line); }
  .board-row:last-child{ border-bottom:0; }
  .board-row .tail{ font-family:var(--font-mono); font-weight:700; font-size:0.9rem; letter-spacing:0.02em; }
  .board-row .mid{ display:flex; flex-direction:column; align-items:flex-start; gap:0.3rem; min-width:0; }
  .board-row .route{ font-size:0.86rem; color:var(--ink-muted); }
  .board-foot{ padding:0.85rem 1.25rem; background:var(--surface-2); border-top:1px solid var(--line); font-size:0.82rem; color:var(--ink-muted); text-align:center; }
  .board-foot b{ color:var(--ink); font-weight:600; }

  /* ---- generic section ---- */
  section{ padding:3.5rem 0; }
  .section-head{ max-width:44rem; margin-bottom:2.5rem; }
  .section-head.center{ margin-left:auto; margin-right:auto; text-align:center; }
  .section-head h2{ font-size:clamp(1.7rem, 3.4vw, 2.3rem); line-height:1.12; letter-spacing:-0.02em; font-weight:700; margin-top:0.6rem; color:var(--ink); }
  .section-head p{ font-size:1.1rem; color:var(--ink-muted); margin-top:0.85rem; }

  /* ---- dark band ---- */
  .band{ background:var(--dark-bg); color:var(--dark-fg); }
  .band ::selection{ background:oklch(0.72 0.10 62 / 0.30); }
  .band .kicker{ color:var(--dark-brass); }
  .band .section-head h2{ color:#fff; }
  .band .section-head p{ color:var(--dark-muted); }

  /* ---- footer ---- */
  footer.site{ background:var(--dark-bg); color:var(--dark-muted); padding:3rem 0 2.5rem; }
  .foot-grid{ display:flex; align-items:flex-start; justify-content:space-between; gap:2rem; flex-wrap:wrap; }
  .foot-brand .logo{ height:3rem; width:auto; display:block; color:var(--dark-fg); opacity:0.92; }
  .foot-tag{ font-size:0.9rem; color:var(--dark-muted); max-width:24rem; margin-top:1.1rem; line-height:1.55; }
  .foot-links{ display:flex; gap:2.5rem; }
  .foot-col h5{ font-family:var(--font-mono); font-size:0.7rem; letter-spacing:0.12em; text-transform:uppercase; color:var(--dark-brass); margin-bottom:0.8rem; }
  .foot-col a, .foot-col span{ display:block; font-size:0.9rem; color:var(--dark-fg); opacity:0.78; margin-bottom:0.5rem; transition:opacity .12s ease; }
  .foot-col a:hover{ opacity:1; }
  .foot-base{ margin-top:2.5rem; padding-top:1.5rem; border-top:1px solid var(--dark-line); display:flex; justify-content:space-between; gap:1rem; flex-wrap:wrap; font-size:0.82rem; color:var(--dark-muted); }

  /* ---- horizon divider: each content section opens on a shallow sextant horizon ---- */
  section:not(.band)::before{ content:''; display:block; width:min(30rem,78%); height:20px; margin:0 auto 1.8rem; background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 22' fill='none' stroke='%23c8bca0' stroke-width='1.4' stroke-linecap='round'%3E%3Cpath d='M16 14 Q500 7 984 14'/%3E%3Cpath d='M16 9 L16 19'/%3E%3Cpath d='M984 9 L984 19'/%3E%3C/svg%3E") center/contain no-repeat; }

  /* ---- shared responsive ---- */
  @media (max-width: 640px){
    section{ padding:3.25rem 0; }
    .brand .logo{ height:2.25rem; }
  }
  @media (prefers-reduced-motion: reduce){ *{ scroll-behavior:auto; transition:none !important; } }

  /* ---- intro curtain (scroll-reveal; off by default, JS enables it for motion-OK users) ---- */
  .intro-spacer{ height:0; }
  .intro,.scrollhint{ display:none; }
  .intro-on .intro-spacer{ height:96vh; background:oklch(0.08 0.008 70); }
  .intro-on .intro{ display:grid; }
  .intro-on .scrollhint{ display:flex; }
  .intro{ position:fixed; inset:0; z-index:90; background:radial-gradient(80% 75% at 50% 38%, oklch(0.19 0.016 66), oklch(0.115 0.012 70) 60%, oklch(0.08 0.008 70)); place-items:center; will-change:opacity; }
  .intro-inner{ text-align:center; will-change:transform,opacity; padding:0 1.5rem; }
  .intro-logo{ height:clamp(5rem,14vh,8.5rem); width:auto; display:block; margin:0 auto; opacity:0; color:var(--dark-fg); }
  .intro-line{ font-family:var(--font-sans); font-size:clamp(1.15rem,2.4vw,1.65rem); font-weight:500; letter-spacing:-0.01em; color:var(--dark-fg); margin-top:2.3rem; opacity:0; }
  .intro-tag{ font-family:var(--font-mono); font-size:clamp(0.7rem,1.3vw,0.9rem); letter-spacing:0.16em; text-transform:uppercase; color:var(--brass); margin-top:0.9rem; opacity:0; }
  .intro-rule{ width:3rem; height:1px; background:var(--dark-brass); margin:1.7rem auto 0; opacity:0; }
  .intro-on .intro-logo{ animation:introUp 1s cubic-bezier(.2,.7,.2,1) both; }
  .intro-on .intro-line{ animation:introUp 1s cubic-bezier(.2,.7,.2,1) .35s both; }
  .intro-on .intro-tag{ animation:introUp 1s cubic-bezier(.2,.7,.2,1) .8s both; }
  .intro-on .intro-rule{ animation:introUp .9s ease .75s both; }
  @keyframes introUp{ from{ opacity:0; transform:translateY(16px); } to{ opacity:1; transform:translateY(0); } }
  .scrollhint{ position:fixed; left:50%; bottom:2rem; transform:translateX(-50%); flex-direction:column; align-items:center; gap:0.4rem; font-family:var(--font-mono); font-size:0.7rem; letter-spacing:0.18em; text-transform:uppercase; color:var(--dark-muted); z-index:91; will-change:opacity; }
  .scrollhint .arrow{ width:1px; height:1.6rem; background:var(--dark-line); animation:drip 1.8s ease-in-out infinite; }
  @keyframes drip{ 0%,100%{ opacity:0.3; transform:scaleY(0.6); transform-origin:top; } 50%{ opacity:1; transform:scaleY(1); } }

/* real captures from the local rig (liito-labs #13) */
.shot{ margin:1.1rem 0 0; border:1px solid var(--line-strong); border-radius:14px; overflow:hidden; background:var(--surface); box-shadow:0 1px 2px oklch(0 0 0 / 0.06); }
.shot img{ display:block; width:100%; height:auto; }
.band .shot{ border-color:var(--dark-line); box-shadow:0 12px 40px oklch(0 0 0 / 0.35); }
.shot-cap-dark{ color:var(--dark-muted); }

/* design triad 2026-09-08: measure caps, nav collapse, phone tour grid, captions */
@media (max-width:520px){ .nav-cta .btn{ font-size:0.85rem; padding:0.55rem 0.9rem; } }
.shot-cap{ font-family:var(--font-sans); font-size:0.9rem; letter-spacing:0; color:var(--ink-muted); max-width:38rem; line-height:1.5; }
.shot{ max-width:100%; }
.stop .body, .release-visual, .proj-visual, .example-grid > *, .door, .block .wrap{ min-width:0; }

/* walk-the-site triad 2026-09-08: navigation, flow and consistency fixes */
html:focus-within{ scroll-behavior:smooth; }            /* smooth only for in-page clicks, never on arrival with a hash */
:focus-visible{ outline:2px solid var(--brass); outline-offset:3px; }
.band :focus-visible, header.nav :focus-visible, footer :focus-visible{ outline-color:var(--dark-brass); }
.band .shot-cap{ color:var(--dark-muted); }             /* captions on dark bands were inheriting the cream-page ink */
.foot-col a{ color:var(--dark-muted); transition:color .12s ease; }
.foot-col a:hover{ color:var(--dark-fg); opacity:1; }
@media (max-width:640px){
  .nav-inner{ flex-wrap:wrap; padding-top:0.7rem; padding-bottom:0.7rem; row-gap:0.35rem; min-height:0; }
  .nav-links{ order:3; flex-basis:100%; gap:1.25rem; }  /* the two page links sit in a row under the mark, never hidden */
  html{ scroll-padding-top:7.5rem; }
}
@media (max-width:520px){
  .kicker, .eyebrow, .op, .pp, .status, .tag, .reg, .meta, .pill, .rdy, .pos, .where, .gl, .ipa, .scrollhint span, h5{ font-size:0.75rem !important; }   /* a floor: no label under 12px on a phone, whatever the page rule says */
  .foot-col a{ display:inline-block; padding:0.5rem 0; }                         /* 44px tap targets */
}

/* not-found page, in the site frame */
.notfound{ min-height:60vh; display:grid; place-items:center; text-align:center; }
.notfound h1{ font-size:clamp(1.8rem, 3.4vw, 2.3rem); letter-spacing:-0.02em; margin-top:0.8rem; color:var(--ink); }
.notfound p{ color:var(--ink-muted); max-width:28rem; margin:0.9rem auto 1.6rem; }
