/* ============================================================================
   scrollcraft-home.css — ShortSaleAZ homepage rebrand layer.
   Monochrome editorial, no accent hue, brand faces. Loaded only on "/".
   Font: Newsreader (editorial serif) for display, Inter for text.
   ========================================================================== */

:root {
  --sc-canvas:     #f2f1ee;   /* paper */
  --sc-surface:    #e7e6e2;   /* raised paper */
  --sc-ink:        #17171b;   /* near-black, not pure */
  --sc-ink-soft:   #57575e;   /* tinted gray, not flat */
  --sc-accent:     #17171b;   /* the "accent" role is ink itself: black on paper */
  --sc-accent-ink: #f2f1ee;   /* paper, for text on the ink */
  --sc-font-display: "Newsreader", Georgia, "Times New Roman", serif;
  --sc-font-text:    "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --paper: #f2f1ee;
  --ink:   #17171b;
  --rail-x: clamp(18px, 4.2vw, 58px);
  --folio-w: 84px;
}

body { background: var(--paper); color: var(--ink); }
.sc-grain { opacity: 0.05; }
[data-sc-progress] { height: 2px; opacity: 0.55; }

/* -------- shared editorial chrome ------------------------------------- */
.wrap { width: 100%; max-width: 74rem; margin-inline: auto;
        padding-inline: max(var(--sc-gutter), calc(var(--folio-w) + 1.5rem)); }
@media (max-width: 899px) { .wrap { padding-inline: var(--sc-gutter); } }

.kicker { font-family: var(--sc-font-text); font-size: var(--sc-t-xs);
          letter-spacing: 0.22em; text-transform: uppercase; color: var(--sc-ink-soft);
          display: inline-flex; align-items: center; gap: 0.7rem; }
.kicker::before { content: ""; width: 2.2rem; height: 1px; background: currentColor; opacity: 0.7; }

h1.head, h2.head { font-family: var(--sc-font-display); font-weight: 500;
          letter-spacing: -0.015em; line-height: 1.06; text-wrap: balance; margin: 0; }
.prose { font-family: var(--sc-font-text); color: var(--sc-ink-soft);
         font-size: var(--sc-t-lg); line-height: 1.6; max-width: 40ch; text-wrap: pretty; }
.fine { font-size: var(--sc-t-sm); color: var(--sc-ink-soft); }
.em { font-style: italic; color: var(--ink); }

/* -------- masthead (static title-page header, scrolls away) ----------- */
.masthead { display: flex; align-items: center; gap: 1.1rem;
            padding: 1.4rem max(var(--sc-gutter), calc(var(--folio-w) + 1.5rem));
            max-width: 84rem; margin-inline: auto; }
@media (max-width: 899px) { .masthead { padding-inline: var(--sc-gutter); } }
.mark { width: 40px; height: 40px; border-radius: 8px; flex: none; }
.brandline { line-height: 1.15; }
.brandline b { font-family: var(--sc-font-display); font-weight: 600; font-size: 1.05rem;
               letter-spacing: 0.01em; }
.brandline span { display: block; font-size: 0.72rem; color: var(--sc-ink-soft); letter-spacing: 0.01em; }
.masthead .spacer { flex: 1; }
.masthead .tel { font-size: 0.9rem; text-decoration: none; letter-spacing: 0.01em; }
.masthead .tel:hover { text-decoration: underline; text-underline-offset: 0.22em; }
@media (max-width: 720px) { .masthead .tel { display: none; } }

/* -------- the CTA, one label everywhere ------------------------------- */
.cta { display: inline-flex; align-items: center; gap: 0.6rem;
       font-family: var(--sc-font-text); font-weight: 500; font-size: 0.92rem;
       letter-spacing: 0.01em; text-decoration: none;
       color: var(--sc-accent-ink); background: var(--sc-accent);
       padding: 0.72rem 1.15rem; border-radius: 999px;
       transition: transform var(--sc-d-fast) var(--sc-ease-out), opacity var(--sc-d-fast); }
.cta:hover { opacity: 0.9; }
.cta:active { transform: translateY(1px); }
.cta .arrow { transition: transform var(--sc-d-base) var(--sc-ease-out); }
.cta:hover .arrow { transform: translateX(3px); }

/* -------- chapter grounds (hard cuts, monochrome) --------------------- */
.chapter { position: relative; padding-block: clamp(4rem, 9vh, 8rem); background: var(--paper); }
.ch-dark { background: #131316; color: #efeeea; --sc-ink: #efeeea; --sc-ink-soft: #a6a6ac; --ink: #efeeea; }
.ch-panel { background: var(--sc-surface); }

/* Ch1 title page */
.title-page { min-height: 78vh; display: flex; flex-direction: column; justify-content: center; }
h1.head { font-size: var(--sc-t-4xl); max-width: 15ch; }
@media (max-width: 640px) { h1.head { font-size: var(--sc-t-2xl); } }
.title-page .prose { margin-top: 2rem; }
.title-page .foot-note { margin-top: 2.6rem; }

/* Ch2 reframe: fork drawing + copy */
.reframe { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
           gap: clamp(2rem, 5vw, 5rem); align-items: center; }
@media (max-width: 860px) { .reframe { grid-template-columns: 1fr; } }

/* ---- the two-path diagram: one origin -> two labelled outcomes -------- */
.fork { width: 100%; max-width: 320px; height: auto; overflow: visible; }
.fork .stem,
.fork .branch { fill: none; vector-effect: non-scaling-stroke; stroke: var(--ink); stroke-linecap: round; }
.fork .stem   { stroke-width: 2.2; }
.fork .b-fore  { stroke-width: 1.6; opacity: 0.55; stroke-dasharray: 7 6; }
.fork .b-short { stroke-width: 3; }
.fork .node    { fill: var(--ink); stroke: none; }
.fork .x       { stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; opacity: 0.75; }
.fork .arrow-head { fill: var(--ink); stroke: none; }
.fork .lbl { font-family: var(--sc-font-text); font-size: 8.5px; font-weight: 600;
             letter-spacing: 0.14em; text-transform: uppercase; fill: var(--ink); stroke: none; }
.fork .lbl-sub { font-family: var(--sc-font-text); font-size: 7px; font-weight: 500;
                 letter-spacing: 0.1em; text-transform: uppercase; fill: var(--sc-ink-soft); stroke: none; }
.fork .lbl-fore { opacity: 0.7; }

.reframe h2.head { font-size: var(--sc-t-3xl); max-width: 14ch; }
.reframe .prose { margin-top: 1.6rem; }
.reframe .aside { margin-top: 1.8rem; max-width: 44ch; }

/* Ch3 steps */
.steps h2.head { font-size: var(--sc-t-2xl); max-width: 20ch; }
.steps .lead-row { display: flex; align-items: baseline; justify-content: space-between; gap: 2rem;
                   flex-wrap: wrap; }
.step { display: grid; grid-template-columns: 4.5rem 1fr; gap: clamp(1rem, 3vw, 2.4rem);
        padding-block: clamp(1.6rem, 4vh, 2.6rem); align-items: start; }
@media (max-width: 640px) { .step { grid-template-columns: 1fr; gap: 0.5rem; } }
.step .num { font-family: var(--sc-font-display); font-size: clamp(2.2rem, 5vw, 3.4rem);
             line-height: 0.9; color: var(--ink); }
.step h3 { font-family: var(--sc-font-display); font-weight: 500; font-size: var(--sc-t-lg);
           margin: 0 0 0.5rem; letter-spacing: -0.01em; }
.step p { margin: 0; color: var(--sc-ink-soft); max-width: 52ch; }
.step-rule { transform-origin: left center; }

/* Ch4 why ryan */
.why { display: grid; grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
       gap: clamp(2rem, 5vw, 5rem); align-items: start; }
@media (max-width: 860px) { .why { grid-template-columns: 1fr; } }
.portrait-frame { position: relative; overflow: hidden; border-radius: 4px;
                  box-shadow: var(--sc-e2); background: #e7e6e2; height: clamp(340px, 52vh, 560px); }
.portrait-frame img { width: 100%; height: 118%; object-fit: cover; object-position: 50% 18%;
                      filter: grayscale(1) contrast(1.02); }
.why h2.head { font-size: var(--sc-t-2xl); max-width: 16ch; margin-bottom: 1.6rem; }
.facts { display: grid; gap: 0; }
.fact { padding-block: 1.15rem; border-top: 1px solid var(--sc-hairline); }
.fact:last-child { border-bottom: 1px solid var(--sc-hairline); }
.fact dt { font-family: var(--sc-font-text); font-weight: 600; font-size: 0.95rem;
           letter-spacing: 0.005em; margin-bottom: 0.25rem; }
.fact dd { margin: 0; color: var(--sc-ink-soft); font-size: 0.95rem; max-width: 52ch; }

/* Ch5 peak — dark ground, light line, visible by default (no JS reveal dependency) */
.peak { min-height: 96vh; display: flex; flex-direction: column; justify-content: flex-start; }
.peak .silence { height: 22vh; }                 /* authored silence, trimmed */
.peak .line { font-family: var(--sc-font-display); font-weight: 500; color: #efeeea;
              font-size: clamp(2.4rem, 6.4vw, 5.2rem); line-height: 1.06; letter-spacing: -0.015em;
              max-width: 18ch; text-wrap: balance; }
.peak .sub { margin-top: 2.4rem; font-size: var(--sc-t-lg); color: #b9b9bf; max-width: 40ch; line-height: 1.55; }

/* Ch6 colophon / close */
.close-lede { font-family: var(--sc-font-display); font-weight: 500; font-size: var(--sc-t-2xl);
              line-height: 1.18; letter-spacing: -0.01em; max-width: 20ch; }
.close-lede a { text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
.contact-row { display: flex; flex-wrap: wrap; gap: 1.4rem 2.4rem; margin-top: 2.2rem; align-items: center; }
.contact-row a { text-decoration: none; font-weight: 500; }
.contact-row a:hover { text-decoration: underline; text-underline-offset: 0.22em; }
.contact-row .label { display: block; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase;
                      color: var(--sc-ink-soft); margin-bottom: 0.2rem; font-weight: 400; }
.contact-row .val { font-size: 1.12rem; }

form.talk { margin-top: 3rem; max-width: 40rem; display: grid; gap: 1.4rem; }
form.talk .field { display: grid; gap: 0.4rem; }
form.talk label { font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sc-ink-soft); }
form.talk input, form.talk textarea { background: transparent; border: 0; border-bottom: 1px solid var(--sc-hairline-strong);
      padding: 0.55rem 0.1rem; color: var(--ink); font-size: 1rem; border-radius: 0; }
form.talk input:focus, form.talk textarea:focus { outline: none; border-bottom-color: var(--ink); }
form.talk textarea { resize: vertical; min-height: 4.5rem; }
form.talk .two { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
@media (max-width: 560px) { form.talk .two { grid-template-columns: 1fr; } }
form.talk .consent { font-size: 0.74rem; color: var(--sc-ink-soft); line-height: 1.5; }
form.talk button { justify-self: start; margin-top: 0.4rem; border: 0; cursor: pointer; }
form.talk button:disabled { opacity: 0.55; cursor: default; }
form.talk .form-error { color: #a12b2b; font-size: 0.85rem; margin: 0; }
.tcpa { margin-top: 1rem; font-size: 0.74rem; color: var(--sc-ink-soft); line-height: 1.5; max-width: 44rem; }

.colophon { margin-top: clamp(3.5rem, 8vh, 6rem); padding-top: 2rem; border-top: 1px solid var(--sc-hairline);
            display: grid; gap: 1.4rem; }
.colophon .badges { display: flex; align-items: center; gap: 1.6rem; flex-wrap: wrap; }
.colophon .badges img { height: 40px; width: auto; filter: grayscale(1); opacity: 0.9; }
.colophon .mark-sm { height: 34px; width: 34px; border-radius: 7px; }
.colophon p { margin: 0; font-size: 0.8rem; color: var(--sc-ink-soft); line-height: 1.6; max-width: 68ch; }
.colophon .legal b { color: var(--ink); font-weight: 600; }

/* ==================================================================== */
/* THE RELIEF GAUGE — signature move + chaptered-editorial margin folio   */
/* ==================================================================== */
.gauge { position: fixed; left: 0; top: 0; height: 100vh; width: var(--folio-w);
         z-index: 55; pointer-events: none; display: flex; }
@media (max-width: 899px) { .gauge { display: none; } }
/* The fixed folio can't inherit .ch-dark's ink, so JS toggles .gauge--on-dark
   as the dark peak scrolls in. Dark ink on the light chapters (default), light
   ink on the peak — always legible, never white-on-white. */
.gauge__inner { position: relative; margin-left: var(--rail-x); height: 100%; width: 100%;
                --ink: #17171b; --paper: #f2f1ee; transition: none; }
.gauge.gauge--on-dark .gauge__inner { --ink: #efeeea; --paper: #131316; }
.gauge__track { position: absolute; left: 0; top: 14vh; height: 72vh; width: 22px; }
.gauge__line { position: absolute; left: 3px; top: 0; bottom: 0; width: 1px;
               background: var(--ink); opacity: 0.28;
               -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0,0,0,0.28) 100%);
               mask-image: linear-gradient(to bottom, #000 0%, rgba(0,0,0,0.28) 100%); }
.gauge__ticks { position: absolute; left: 0; top: 0; bottom: 0; width: 12px;
                background-image: repeating-linear-gradient(to bottom, var(--ink) 0 1px, transparent 1px 9px);
                opacity: 0.5;
                -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0,0,0,0.08) 82%, transparent 100%);
                mask-image: linear-gradient(to bottom, #000 0%, rgba(0,0,0,0.08) 82%, transparent 100%); }
.gauge__marker { position: absolute; left: -1px; width: 9px; height: 9px; border-radius: 999px;
                 background: var(--ink); top: 0; transform: translateY(-50%);
                 transition: top 220ms var(--sc-ease-out); box-shadow: 0 0 0 4px var(--paper); }
.gauge__halo { position: absolute; left: -5px; width: 17px; height: 17px; border-radius: 999px;
               border: 1px solid var(--ink); opacity: 0.35; top: 0; transform: translateY(-50%);
               transition: top 220ms var(--sc-ease-out); }
.gauge__state { position: absolute; left: 22px; top: 0; transform: translateY(-50%);
                transition: top 220ms var(--sc-ease-out);
                writing-mode: vertical-rl; text-orientation: mixed;
                font-family: var(--sc-font-text); font-weight: 600; font-size: 0.82rem;
                letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink);
                height: auto; white-space: nowrap; }
.gauge__nodes { position: absolute; left: 0; top: 14vh; height: 72vh; width: 40px; pointer-events: auto; }
.gauge__node { position: absolute; left: -3px; width: 34px; height: 22px; transform: translateY(-50%);
               display: flex; align-items: center; cursor: pointer; }
.gauge__node i { display: block; width: 7px; height: 7px; border-radius: 999px;
                 background: var(--paper); border: 1px solid var(--ink); opacity: 0.55;
                 transition: opacity 160ms, background 160ms; }
.gauge__node:hover i, .gauge__node.on i { opacity: 1; background: var(--ink); }
.gauge:focus-within .gauge__node i { opacity: 0.8; }

@media (prefers-reduced-motion: reduce) {
  .gauge__marker, .gauge__halo, .gauge__state { transition: none; }
  .cta .arrow { transition: none; }
}

/* ---- resilience: if the engine fails to mount, never leave copy hidden --- */
.sc-fallback [data-sc-in],
.sc-fallback [data-sc-stagger] > * { opacity: 1 !important; transform: none !important; }
@media (scripting: none) {
  [data-sc-in], [data-sc-stagger] > * { opacity: 1 !important; transform: none !important; }
}
