/* ============================================================
   BlueSystm — about-mobile.css
   The About page on phones, ported from Design's About Mobile.dc.html.

   GENERATED. Do not hand-edit — run scripts/port-about-mobile.py, which
   rewrites this file wholesale. Change the script or Design's source.

   Everything is scoped under `.am`, the phone deck's root. Design writes the
   plainest names it can — `.h1`, `.lead`, `.slot`, `.node`, `.half` — which is
   safe on a page that is only ever that design and not on one that also holds
   the desktop deck and the shared footer.

   Everything is inside @media (max-width: 900px). Desktop is untouched, and
   that is verified by diff rather than asserted.
   ============================================================ */

@media (max-width: 900px) {

  /* ── which deck ──────────────────────────────────────────────────
     About Mobile is a rewrite, not a re-layout, so until Design's revised
     desktop copy lands the page carries both decks and each breakpoint shows
     one. `.am` starts display:none in the markup — an element with no box
     cannot affect the desktop, and cannot be measured into it either — and is
     turned on here. The desktop deck goes the other way.

     Both are in the DOM at once, which is the honest cost of this being an
     interim: it is duplicated copy on one URL. When the desktop copy lands,
     one deck deletes and this block goes with it. */
  .am { display: block; }
  .about-desktop { display: none; }

  .am section {
    position: relative; scroll-margin-top: 80px;
  }
  .am .eyebrow {
    display: block; font-size: 11px; font-weight: 600; letter-spacing: var(--ls-wide); text-transform: uppercase; color: var(--muted);
  }
  .am .h1 {
    font-size: 40px; line-height: 1.04; letter-spacing: var(--ls-tight); font-weight: 800; color: var(--dark);
  }
  .am .h2 {
    font-size: 28px; line-height: 1.1; letter-spacing: var(--ls-tight); font-weight: 800; color: var(--dark); text-wrap: pretty;
  }
  .am .h3 {
    font-size: 22px; line-height: 1.18; letter-spacing: var(--ls-snug); font-weight: 700; color: var(--dark); text-wrap: pretty;
  }
  .am .accent {
    color: var(--blue);
  }
  .am .lead {
    font-size: 16px; line-height: 1.55; color: var(--body); text-wrap: pretty;
  }
  .am .body {
    font-size: 15px; line-height: 1.6; color: var(--body); text-wrap: pretty;
  }
  .am .stack > * + * {
    margin-top: 16px;
  }
  .am .opening {
    padding: calc(128px + env(safe-area-inset-top, 0px)) 20px 40px; text-align: center;
  }
  .am .opening .h1 {
    margin-top: 20px;
  }
  .am .opening .h1 span {
    display: block;
  }
  .am .opening p {
    margin-top: 22px; font-size: 17px; line-height: 1.5; color: var(--dark); text-wrap: pretty;
  }
  .am .spine-wrap {
    position: relative; width: 100%; padding: 0 20px;
  }
  .am .spine {
    position: absolute; top: 0; bottom: 0; left: 50%; width: 1px; transform: translateX(-0.5px); background: var(--border);
  }
  .am .spine-fill {
    position: absolute; left: 0; top: 0; width: 1px; height: 0; background: var(--dark);
  }
  .am .spine-dot {
    position: absolute; left: 0; top: 0; z-index: 3; width: 9px; height: 9px; margin-left: -4px; margin-top: -4px; border-radius: 50%; background: var(--blue); box-shadow: var(--glow); opacity: 0;
  }
  .am .node {
    display: flex; justify-content: center; margin-top: 34px;
  }
  .am .node span {
    position: relative;
    z-index: 3;
    display: block;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--bg);
    border: 1px solid var(--border);
    transition: background var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
  }
  .am .node.end span {
    width: 15px; height: 15px;
  }
  .am .node-label {
    position: relative;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--bg);
    border: 1px solid var(--border);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: var(--ls-wide);
    color: var(--muted);
    transition: background var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out);
  }
  .am .shield {
    position: relative;
    z-index: 1;
    background: linear-gradient(to bottom, rgba(250,251,255,0) 0%, var(--bg) 14px, var(--bg) calc(100% - 14px), rgba(250,251,255,0) 100%);
    padding: 14px 0;
    text-align: center;
  }
  .am .sy-section {
    position: relative; padding: 34px 0;
  }
  .am .record {
    display: flex; flex-direction: column; gap: 26px;
  }
  .am .record-item .eyebrow + span {
    display: block; margin-top: 10px; font-size: 24px; line-height: 1.1; letter-spacing: var(--ls-snug); font-weight: 700; color: var(--dark);
  }
  .am .operator {
    position: relative;
    z-index: 1;
    background: linear-gradient(to bottom, rgba(250,251,255,0) 0%, var(--bg) 14px, var(--bg) calc(100% - 14px), rgba(250,251,255,0) 100%);
    padding: 14px 0;
  }
  .am .operator + .operator {
    margin-top: 40px;
  }
  .am .operator .h3 {
    margin-top: 8px;
  }
  .am .slot {
    margin-top: 20px;
    width: 100%;
    aspect-ratio: 4 / 5;
    background: var(--panel);
    border: 1px solid var(--panel-border);
    border-radius: var(--r-sm);
    box-shadow: var(--panel-inset);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 8px;
    padding: 18px;
    text-align: left;
  }
  .am .slot span:first-child {
    font-size: 11px; font-weight: 600; letter-spacing: var(--ls-wide); text-transform: uppercase; color: var(--muted);
  }
  .am .slot span:last-child {
    font-size: 13px; line-height: 1.5; color: var(--muted); text-wrap: pretty;
  }
  .am .operator .lead {
    margin-top: 20px;
  }
  .am .operator .close {
    margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--border); font-size: 17px; line-height: 1.45; font-weight: 500; color: var(--dark); text-wrap: pretty;
  }
  .am .ledger {
    margin-top: 30px;
  }
  .am .ledger-note {
    font-size: 11px; font-weight: 600; letter-spacing: var(--ls-wide); text-transform: uppercase; color: var(--muted); text-align: center;
  }
  .am .pair {
    margin-top: 0; padding: 16px 0; border-top: 1px solid var(--border); text-align: center;
  }
  .am .ledger .pair:first-of-type {
    margin-top: 18px;
  }
  .am .ledger .pair:last-of-type {
    border-bottom: 1px solid var(--border);
  }
  .am .pair .promise {
    font-size: 15px; line-height: 1.4; color: var(--muted);
  }
  .am .pair .got {
    margin-top: 7px; font-size: 18px; line-height: 1.3; letter-spacing: var(--ls-snug); font-weight: 600; color: var(--dark);
  }
  .am .rule-top {
    margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--dark);
  }
  .am .verdict {
    font-size: 17px; line-height: 1.45; font-weight: 500; color: var(--blue); text-wrap: pretty;
  }
  .am .years {
    position: relative;
    z-index: 1;
    margin-top: 28px;
    padding: 30px 22px;
    background: var(--panel);
    border: 1px solid var(--panel-border);
    border-radius: var(--r-lg);
    box-shadow: var(--panel-inset);
    text-align: center;
  }
  .am .years-fig {
    display: flex; align-items: baseline; justify-content: center; gap: 10px;
  }
  .am .years-fig b {
    font-size: 104px; line-height: 0.84; letter-spacing: var(--ls-tight); font-weight: 800; color: var(--blue);
  }
  .am .years-fig span {
    font-size: 22px; letter-spacing: var(--ls-snug); font-weight: 700; color: var(--dark);
  }
  .am .years p {
    margin-top: 20px; font-size: 17px; line-height: 1.45; font-weight: 500; color: var(--dark); text-wrap: pretty;
  }
  .am .years p + p {
    margin-top: 12px; font-size: 14px; font-weight: 400; color: var(--muted);
  }
  .am .years-stmt {
    font-size: 46px; line-height: 1; letter-spacing: var(--ls-tight); font-weight: 800; color: var(--blue);
  }
  .am .link-out {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; margin-top: 18px; font-size: 13px; font-weight: 600; letter-spacing: var(--ls-wide); text-transform: uppercase; color: var(--blue);
  }
  .am .slot-wide {
    position: relative;
    z-index: 1;
    margin-top: 20px;
    aspect-ratio: 3 / 2;
    background: var(--panel);
    border: 1px solid var(--panel-border);
    border-radius: var(--r-lg);
    box-shadow: var(--panel-inset);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 8px;
    padding: 20px;
  }
  .am .slot-wide span:first-child {
    font-size: 11px; font-weight: 600; letter-spacing: var(--ls-wide); text-transform: uppercase; color: var(--muted);
  }
  .am .slot-wide span:last-child {
    font-size: 13px; line-height: 1.5; color: var(--muted); text-wrap: pretty;
  }
  .am .halves {
    margin-top: 28px; display: flex; flex-direction: column; gap: 28px;
  }
  .am .half .rule {
    margin-top: 12px; padding-top: 14px; border-top: 1px solid var(--border);
  }
  .am .exit {
    padding: 48px 20px 56px; text-align: center;
  }
  .am .exit-actions {
    margin-top: 24px; display: flex; flex-direction: column; gap: 10px;
  }
  .am .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 52px;
    padding: 14px 20px;
    border-radius: var(--r-pill);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: var(--ls-wide);
    text-transform: uppercase;
  }
  .am .btn-primary {
    background: var(--blue); color: #FFFFFF;
  }
  .am .btn-primary:active {
    background: var(--blue-hover);
  }
  .am .btn-ghost {
    border: 1px solid var(--border); color: var(--dark);
  }
  .am .btn-ghost:active {
    border-color: var(--blue); color: var(--blue);
  }
  .am .btn span {
    opacity: .7;
  }
  .am .sy-section:last-child {
    padding-bottom: 0;
  }

}
