
  /* ============================================================
     FLIPLIST — design tokens
     Direction: the blueprint. A flip is the gap between the house
     that is standing and the drawing of what it becomes, so the
     page is built as a drawing sheet: cyanotype ground, hairline
     linework, drafting annotations in mono, and survey-marking
     pink — the real fluorescent paint used to mark lot lines and
     demolition — as the single accent.
     ============================================================ */
  :root {
    --ground:      #0D1B2A;
    --ground-2:    #122639;
    --ground-3:    #17304a;
    --line:        rgba(168, 199, 230, 0.20);
    --line-strong: rgba(168, 199, 230, 0.42);
    --ink:         #E8F0F8;
    --ink-dim:     #93AAC2;   /* grey biased blue, to sit in the blueprint */
    --accent:      #FF3D78;
    --accent-ink:  #0D1B2A;
    --accent-soft: rgba(255, 61, 120, 0.13);
    --grid:        rgba(168, 199, 230, 0.055);

    --display: "Avenir Next Condensed", "Helvetica Neue Condensed",
               "Arial Narrow", "Roboto Condensed", sans-serif;
    --body:    "Avenir Next", "Helvetica Neue", system-ui, -apple-system, sans-serif;
    --mono:    "Menlo", "SF Mono", ui-monospace, "Consolas", monospace;

    --measure: 62ch;
    --sheet:   1200px;
    --band-y:  clamp(4.5rem, 9vw, 8rem);
  }

  @media (prefers-color-scheme: light) {
    :root {
      --ground:      #E6EDF2;   /* drafting vellum, faintly blue */
      --ground-2:    #FFFFFF;
      --ground-3:    #DCE6EE;
      --line:        rgba(13, 27, 42, 0.16);
      --line-strong: rgba(13, 27, 42, 0.38);
      --ink:         #0D1B2A;
      --ink-dim:     #56708A;
      --accent:      #D4145A;
      --accent-ink:  #FFFFFF;
      --accent-soft: rgba(212, 20, 90, 0.10);
      --grid:        rgba(13, 27, 42, 0.05);
    }
  }
  /* The viewer's toggle must win over the OS preference, both ways. */
  :root[data-theme="light"] {
    --ground: #E6EDF2; --ground-2: #FFFFFF; --ground-3: #DCE6EE;
    --line: rgba(13,27,42,0.16); --line-strong: rgba(13,27,42,0.38);
    --ink: #0D1B2A; --ink-dim: #56708A;
    --accent: #D4145A; --accent-ink: #FFFFFF;
    --accent-soft: rgba(212,20,90,0.10); --grid: rgba(13,27,42,0.05);
  }
  :root[data-theme="dark"] {
    --ground: #0D1B2A; --ground-2: #122639; --ground-3: #17304a;
    --line: rgba(168,199,230,0.20); --line-strong: rgba(168,199,230,0.42);
    --ink: #E8F0F8; --ink-dim: #93AAC2;
    --accent: #FF3D78; --accent-ink: #0D1B2A;
    --accent-soft: rgba(255,61,120,0.13); --grid: rgba(168,199,230,0.055);
  }

  * { box-sizing: border-box; }

  body {
    margin: 0;
    background: var(--ground);
    color: var(--ink);
    font-family: var(--body);
    font-size: 1.0625rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
  }

  /* The drawing-sheet grid, behind everything. */
  body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image:
      linear-gradient(var(--grid) 1px, transparent 1px),
      linear-gradient(90deg, var(--grid) 1px, transparent 1px);
    background-size: 44px 44px;
    pointer-events: none;
    z-index: 0;
  }
  .sheet-layer { position: relative; z-index: 1; }

  .wrap {
    width: 100%;
    max-width: var(--sheet);
    margin-inline: auto;
    padding-inline: clamp(1.25rem, 4vw, 3rem);
  }

  /* ---- type ---- */
  h1, h2, h3 { font-family: var(--display); font-weight: 700; margin: 0;
               text-wrap: balance; letter-spacing: -0.01em; }
  h1 { font-size: clamp(2.4rem, 5.6vw, 4.2rem); line-height: 0.94;
       text-transform: uppercase; letter-spacing: 0.005em; }
  h2 { font-size: clamp(1.9rem, 3.8vw, 2.8rem); line-height: 1.04;
       text-transform: uppercase; }
  h3 { font-size: 1.15rem; line-height: 1.3; letter-spacing: 0.01em; }
  p  { margin: 0; max-width: var(--measure); }

  /* Drafting annotation — the utility voice of the page. */
  .note {
    font-family: var(--mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.17em;
    color: var(--ink-dim);
    margin: 0;
  }
  .note--accent { color: var(--accent); }

  a { color: inherit; }
  :focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

  /* ---- shared band spacing: one owner, no fighting margins ---- */
  .band { padding-block: var(--band-y); border-top: 1px solid var(--line); }
  .band > .wrap { display: flex; flex-direction: column; gap: clamp(2rem, 4vw, 3.25rem); }
  .band__head { display: flex; flex-direction: column; gap: 0.9rem; }

  /* Tick rule — the tape-measure edge, used as the section divider. */
  .ticks { height: 9px; width: 100%; opacity: 0.55;
    background-image: repeating-linear-gradient(90deg,
      var(--line-strong) 0 1px, transparent 1px 16px);
    background-position: bottom; background-repeat: repeat-x; }

  /* ---- buttons ---- */
  .btn {
    display: inline-flex; align-items: center; gap: 0.55rem;
    font-family: var(--mono); font-size: 0.74rem;
    text-transform: uppercase; letter-spacing: 0.15em;
    padding: 0.85rem 1.4rem; border: 1px solid var(--line-strong);
    text-decoration: none; background: transparent; color: var(--ink);
    cursor: pointer; transition: background 140ms ease, color 140ms ease,
                                 border-color 140ms ease;
  }
  .btn:hover { border-color: var(--ink); }
  .btn--go { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
  .btn--go:hover { filter: brightness(1.08); border-color: var(--accent); }

  /* ---- header ---- */
  .masthead {
    position: sticky; top: 0; z-index: 20;
    background: color-mix(in srgb, var(--ground) 88%, transparent);
    backdrop-filter: blur(9px);
    border-bottom: 1px solid var(--line);
  }
  .masthead__in {
    display: flex; align-items: center; gap: 1.5rem;
    padding-block: 1rem; flex-wrap: wrap;
  }
  .mark { display: flex; align-items: baseline; gap: 0.5rem;
          text-decoration: none; margin-right: auto; }
  .mark__name { font-family: var(--display); font-weight: 700; font-size: 1.32rem;
                text-transform: uppercase; letter-spacing: 0.04em; }
  .mark__rule { width: 26px; height: 1px; background: var(--accent); }
  .mark__tld  { font-family: var(--mono); font-size: 0.68rem; color: var(--ink-dim);
                letter-spacing: 0.14em; }
  .navlinks { display: flex; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
  .navlinks a { font-family: var(--mono); font-size: 0.71rem; text-transform: uppercase;
                letter-spacing: 0.14em; color: var(--ink-dim); text-decoration: none; }
  .navlinks a:hover { color: var(--ink); }
  .masthead__acts { display: flex; gap: 0.7rem; align-items: center; }
  @media (max-width: 860px) { .navlinks { display: none; } }

  /* ---- hero ---- */
  .hero { padding-block: clamp(3rem, 7vw, 5.5rem) clamp(3rem, 6vw, 4.5rem); }
  .hero__in { display: grid; gap: clamp(2.5rem, 5vw, 4rem);
              grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
              align-items: center; }
  @media (max-width: 940px) { .hero__in { grid-template-columns: 1fr; } }
  .hero__copy { display: flex; flex-direction: column; gap: 1.5rem; }
  .hero__lede { font-size: clamp(1.05rem, 1.7vw, 1.22rem); color: var(--ink-dim);
                max-width: 44ch; }
  .hero h1 em { font-style: normal; color: var(--accent); }
  .hero__acts { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 0.4rem; }
  .hero__fine { color: var(--ink-dim); }

  /* ---- the drawing ---- */
  .draw { width: 100%; height: auto; display: block; overflow: visible; }
  .draw .exist  { fill: none; stroke: var(--line-strong); stroke-width: 1.6; }
  .draw .fillet { fill: var(--ground-2); stroke: var(--line-strong); stroke-width: 1.6; }
  .draw .dim    { fill: none; stroke: var(--line); stroke-width: 1; }
  .draw .prop   { fill: none; stroke: var(--accent); stroke-width: 1.8;
                  stroke-dasharray: 7 5; }
  .draw .propfill { fill: var(--accent-soft); stroke: none; }
  .draw text    { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.13em;
                  text-transform: uppercase; }
  .draw .t-dim  { fill: var(--ink-dim); }
  .draw .t-acc  { fill: var(--accent); }

  /* One orchestrated moment: the proposed structure rises in. */
  .proposed { opacity: 0; transform: translateY(16px); animation: rise 900ms cubic-bezier(.2,.7,.3,1) 550ms forwards; }
  .proposed--late { animation-delay: 900ms; }
  @keyframes rise { to { opacity: 1; transform: translateY(0); } }
  @media (prefers-reduced-motion: reduce) {
    .proposed, .proposed--late { animation: none; opacity: 1; transform: none; }
  }

  /* ---- premise ---- */
  .premise__in { display: grid; gap: clamp(2rem, 4vw, 3.5rem);
                 grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
  @media (max-width: 860px) { .premise__in { grid-template-columns: 1fr; } }
  .pull { font-family: var(--display); text-transform: uppercase;
          font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1.08; }
  .pull span { color: var(--accent); }
  .premise__body { display: flex; flex-direction: column; gap: 1.1rem; color: var(--ink-dim); }
  .premise__body strong { color: var(--ink); font-weight: 600; }

  .story { display: flex; flex-direction: column; gap: 1rem; color: var(--ink-dim); }
  .story p { max-width: none; }

  /* ---- search panel ---- */
  .panel { border: 1px solid var(--line); background: var(--ground-2); position: relative; }
  .panel__bar { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap;
                padding: 0.9rem 1.25rem; border-bottom: 1px solid var(--line); }
  .panel__dot { width: 7px; height: 7px; background: var(--accent); border-radius: 50%; }
  .panel__body { padding: clamp(1.25rem, 3vw, 2rem); display: grid; gap: 1.1rem;
                 grid-template-columns: repeat(5, minmax(0, 1fr)); }
  @media (max-width: 1000px) { .panel__body { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  .field { display: flex; flex-direction: column; gap: 0.45rem; }
  .field__box {
    border: 1px solid var(--line); background: var(--ground);
    padding: 0 0.85rem; height: 2.9rem; white-space: nowrap; overflow: hidden;
    font-size: 0.93rem; color: var(--ink-dim);
    display: flex; justify-content: space-between; align-items: center; gap: 0.5rem;
  }
  .field__box::after { content: "▾"; font-size: 0.7rem; opacity: 0.6; }
  .field__box--check::after { content: ""; }
  .field__box--check { color: var(--ink); justify-content: flex-start; }
  .chk { width: 13px; height: 13px; border: 1px solid var(--line-strong); flex: none; }
  .chk--on { background: var(--accent); border-color: var(--accent); }
  .panel__foot { border-top: 1px solid var(--line); padding: 1.1rem 1.25rem;
                 display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
  .panel__foot .note { margin-right: auto; }

  /* ---- steps: a real sequence, so the numbers carry information ---- */
  .steps { display: grid; gap: 1px; background: var(--line);
           grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
  .step { background: var(--ground); padding: clamp(1.4rem, 3vw, 2rem);
          display: flex; flex-direction: column; gap: 0.8rem; }
  .step__n { font-family: var(--display); font-size: 2.6rem; line-height: 1;
             color: var(--accent); }
  .step p { color: var(--ink-dim); font-size: 0.97rem; }

  /* ---- about ---- */
  .band > .wrap.about__in { display: grid; flex-direction: row; gap: clamp(2rem, 4vw, 3.5rem);
               grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: center; }
  .portrait-card { margin: 0; display: flex; flex-direction: column; gap: 0.9rem; }
  .credit__bio { color: var(--ink-dim); font-size: 0.95rem; line-height: 1.55; margin-top: 0.7rem; }
  @media (max-width: 800px) { .band > .wrap.about__in { grid-template-columns: 1fr; } }
  .portrait { position: relative; }
  .portrait img { width: 100%; height: auto; display: block;
                  filter: grayscale(1) contrast(1.06); mix-blend-mode: luminosity; }
  .portrait::after { content: ""; position: absolute; inset: 0;
                     border: 1px solid var(--line-strong); pointer-events: none; }
  .about__body { display: flex; flex-direction: column; gap: 1.1rem; }
  .about__body p { color: var(--ink-dim); }
  .credit { display: flex; flex-direction: column; gap: 0.2rem; padding-top: 0.6rem;
            border-top: 1px solid var(--line); }
  .credit__name { font-family: var(--display); text-transform: uppercase;
                  font-size: 1.25rem; letter-spacing: 0.02em; }

  /* ---- closing call ---- */
  .close { text-align: center; }
  .close__in { align-items: center; }
  .close h2 { max-width: 20ch; }
  .close p { color: var(--ink-dim); text-align: center; }

  /* ---- footer + the notices the agreement requires ---- */
  .foot { border-top: 1px solid var(--line); padding-block: 3rem 4rem;
          background: var(--ground-2); }
  .foot__in { display: flex; flex-direction: column; gap: 2.25rem; }
  .foot__top { display: flex; gap: 2rem; flex-wrap: wrap; align-items: flex-start; }
  .foot__links { display: flex; gap: 1.5rem; flex-wrap: wrap; margin-left: auto; }
  .foot__links a { font-family: var(--mono); font-size: 0.71rem; text-transform: uppercase;
                   letter-spacing: 0.14em; color: var(--ink-dim); text-decoration: none; }
  .foot__links a:hover { color: var(--ink); }
  .notices { display: flex; flex-direction: column; gap: 0.85rem;
             padding-top: 1.5rem; border-top: 1px solid var(--line); }
  .notices p { font-size: 0.82rem; line-height: 1.6; color: var(--ink-dim);
               max-width: none; }
  .notices .bona { color: var(--ink); border-left: 2px solid var(--accent);
                   padding-left: 0.9rem; }
  /* ---- auth screens ---- */
  .auth { padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3.5rem, 7vw, 6rem); }
  .auth__split { display: grid; gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
                 grid-template-columns: minmax(0, 1fr) minmax(0, 460px); }
  @media (max-width: 880px) { .auth__split { grid-template-columns: 1fr; } }
  .auth__narrow { max-width: calc(460px + 2 * clamp(1.25rem, 4vw, 3rem)); }
  .auth__narrow--wide { max-width: calc(600px + 2 * clamp(1.25rem, 4vw, 3rem)); }
  .auth__copy { display: flex; flex-direction: column; gap: 1.3rem; }
  .auth__title { font-family: var(--display); font-weight: 700; text-transform: uppercase;
                 font-size: clamp(2.3rem, 5vw, 3.8rem); line-height: 0.96; margin: 0; }
  .auth__title--sm { font-size: clamp(1.7rem, 3vw, 2.1rem); line-height: 1.02; }
  .auth__lede { color: var(--ink-dim); font-size: 1rem; }
  .auth__lede strong { color: var(--ink); font-weight: 600; }

  .gets { list-style: none; margin: 0.4rem 0 0; padding: 0; display: flex; flex-direction: column;
          gap: 0.75rem; border-top: 1px solid var(--line); padding-top: 1.2rem; }
  .gets li { display: flex; gap: 0.8rem; align-items: baseline; }
  .gets__mark { width: 14px; height: 1px; background: var(--accent); flex: none; transform: translateY(-0.3em); }

  .form { display: flex; flex-direction: column; }
  .stepper { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr);
             border-bottom: 1px solid var(--line); counter-reset: step; }
  .stepper li { counter-increment: step; font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.12em;
                text-transform: uppercase; color: var(--ink-dim); padding: 0.8rem 0.6rem 0.75rem;
                display: flex; gap: 0.45rem; align-items: center; justify-content: center;
                border-bottom: 2px solid transparent; margin-bottom: -1px; text-align: center; }
  .stepper li::before { content: counter(step); display: inline-grid; place-items: center; width: 1.35rem; height: 1.35rem;
                        border: 1px solid var(--line-strong); border-radius: 50%; font-size: 0.64rem; flex: none; }
  .stepper li.is-on { color: var(--ink); border-bottom-color: var(--accent); }
  .stepper li.is-on::before { border-color: var(--accent); color: var(--accent); }
  .stepper li.is-done::before { content: "✓"; background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
  @media (max-width: 420px) { .stepper li { flex-direction: column; gap: 0.3rem; font-size: 0.58rem; } }

  .form__body { padding: clamp(1.4rem, 3.5vw, 2.1rem); display: flex; flex-direction: column; gap: 1.05rem; }
  .form__foot { border-top: 1px solid var(--line); padding: 1rem clamp(1.4rem, 3.5vw, 2.1rem);
                display: flex; gap: 0.5rem; align-items: baseline; flex-wrap: wrap; color: var(--ink-dim); font-size: 0.92rem; }

  .field { display: flex; flex-direction: column; gap: 0.45rem; }
  .field__row { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
  .input { font: inherit; font-size: 1rem; color: var(--ink); background: var(--ground);
           border: 1px solid var(--line-strong); border-radius: 0; padding: 0.8rem 0.9rem; width: 100%; }
  .input::placeholder { color: var(--ink-dim); opacity: 0.7; }
  .input:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: var(--accent); }
  .pair { display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  @media (max-width: 520px) { .pair { grid-template-columns: 1fr; } }

  .btn--block { width: 100%; justify-content: center; }
  .btn-google { display: flex; align-items: center; justify-content: center; gap: 0.75rem; width: 100%;
                font-family: "Roboto", var(--body); font-size: 0.95rem; font-weight: 500;
                background: #fff; color: #1f1f1f; border: 1px solid #747775; padding: 0.8rem 1rem; cursor: pointer; }
  .btn-google:hover { background: #f7f8f8; }

  .divider { display: flex; align-items: center; gap: 0.8rem; color: var(--ink-dim);
             font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.15em; text-transform: uppercase; }
  .divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

  .check { display: flex; gap: 0.75rem; align-items: flex-start; font-size: 0.93rem; line-height: 1.5; color: var(--ink); cursor: pointer; }
  .check input { accent-color: var(--accent); width: 1.05rem; height: 1.05rem; margin: 0.18rem 0 0; flex: none; }
  .check a { color: var(--accent); }
  .check em { color: var(--ink-dim); font-style: normal; }
  .check--optional { padding-top: 0.85rem; border-top: 1px dashed var(--line); }

  .fine { color: var(--ink-dim); font-size: 0.85rem; text-align: center; margin-inline: auto; }
  .linkish { background: none; border: 0; padding: 0; font: inherit; color: var(--accent); cursor: pointer;
             text-decoration: underline; text-underline-offset: 3px; }
  .linkish--sm { font-size: 0.82rem; }

  .envelope { width: 110px; height: auto; align-self: center; margin-block: 0.4rem 0.2rem; }
  .env-body { fill: var(--accent-soft); stroke: var(--accent); stroke-width: 1.6; stroke-dasharray: 6 4; }
  .env-flap { fill: none; stroke: var(--accent); stroke-width: 1.6; }
  .env-line { stroke: var(--line-strong); stroke-width: 1; }

  /* ---- live form states ---- */
  .msg { font-size: 0.9rem; line-height: 1.5; padding: 0.7rem 0.85rem; border-left: 2px solid var(--accent);
         background: var(--accent-soft); color: var(--ink); margin: 0; max-width: none; }
  .msg--ok { border-left-color: var(--ink-dim); background: var(--ground-3); }
  button[disabled] { opacity: 0.6; cursor: progress; }
  .gated .shell { visibility: hidden; }

  /* ---- legal and plain pages ---- */
  .doc__in { max-width: calc(760px + 2 * clamp(1.25rem, 4vw, 3rem)); display: flex; flex-direction: column; gap: 1rem; }
  .doc__in h2 { font-size: 1.25rem; margin-top: 1rem; }
  .doc__in p { color: var(--ink-dim); max-width: none; }
