/* Corp Save Inc. — page layer on top of the scrollcraft engine.
   World: a technical drawing of a business, cream linework on deep navy,
   lit by one warm desk lamp. Accent: Corp Save burnt orange. */

@font-face { font-family: "Lexend"; font-weight: 400; font-display: swap; src: url(fonts/lexend-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Lexend"; font-weight: 500; font-display: swap; src: url(fonts/lexend-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Lexend"; font-weight: 600; font-display: swap; src: url(fonts/lexend-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Lexend"; font-weight: 700; font-display: swap; src: url(fonts/lexend-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Plex Mono"; font-weight: 500; font-display: swap; src: url(fonts/ibm-plex-mono-latin-500-normal.woff2) format("woff2"); }

:root {
  --sc-canvas:     #121a29;
  --sc-surface:    #1a2437;
  --sc-ink:        #f4eee3;
  --sc-ink-soft:   #b3bccb;
  --sc-accent:     #db7a48;
  --sc-accent-ink: #121a29;
  --sc-font-display: "Lexend", system-ui, sans-serif;
  --sc-font-text:    "Lexend", system-ui, sans-serif;
  --sc-font-mono:    "Plex Mono", ui-monospace, monospace;
  --sc-shadow-color: 222 45% 5%;

  --line: rgba(244, 238, 227, 0.62);
  --line-soft: rgba(244, 238, 227, 0.26);
  --line-faint: rgba(244, 238, 227, 0.09);
  --lamp: 30 85% 62%;
  --bar-h: 64px;
}

body { font-weight: 400; letter-spacing: 0; }
main { display: contents; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nowrap { white-space: nowrap; }

/* ------------------------------------------------------------- chrome -- */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: var(--sc-z-chrome);
  height: calc(var(--bar-h) + env(safe-area-inset-top, 0px));
  padding: env(safe-area-inset-top, 0px) var(--sc-gutter) 0;
  display: flex; align-items: center; justify-content: space-between; gap: var(--sc-4);
  background: linear-gradient(to bottom, rgba(18, 26, 41, 0.86), rgba(18, 26, 41, 0));
}
.bar__mark { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--sc-ink); }
.bar__mark img { width: 26px; height: auto; }
.bar__mark span { font-weight: 600; font-size: 1.08rem; letter-spacing: -0.01em; display: flex; align-items: baseline; gap: 6px; }
.bar__mark small { font-family: var(--sc-font-mono); font-size: 0.68rem; letter-spacing: 0.22em; color: var(--sc-ink-soft); text-transform: uppercase; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--sc-font-display); font-weight: 600; font-size: 0.95rem; line-height: 1;
  padding: 0.82rem 1.25rem; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform 140ms var(--sc-ease-out), background-color 160ms var(--sc-ease-out), border-color 160ms var(--sc-ease-out), color 160ms var(--sc-ease-out);
}
.btn:active { transform: scale(0.97); }
.btn--accent { background: var(--sc-accent); color: var(--sc-accent-ink); box-shadow: 0 10px 24px -12px hsl(20 70% 40% / 0.7), var(--sc-edge); }
.btn--line { background: rgba(18, 26, 41, 0.5); color: var(--sc-ink); border-color: var(--sc-hairline-strong); }
.btn--lg { font-size: 1.05rem; padding: 1rem 1.6rem; }
@media (hover: hover) and (pointer: fine) {
  .btn--accent:hover { background: #e58a59; }
  .btn--line:hover { border-color: var(--sc-ink); }
}
.bar__cta { font-size: 0.86rem; padding: 0.7rem 1.05rem; }

/* The route rail: the page's map. */
.rail { position: fixed; right: var(--sc-gutter); top: 50%; translate: 0 -50%; z-index: var(--sc-z-chrome); }
.rail ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; position: relative; }
.rail ol::before { content: ""; position: absolute; right: 5px; top: 10px; bottom: 10px; width: 1px; background: var(--sc-hairline-strong); }
.rail button {
  display: flex; align-items: center; flex-direction: row-reverse; gap: 12px;
  background: none; border: 0; padding: 6px 0; cursor: pointer; color: var(--sc-ink-soft);
  font-family: var(--sc-font-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase;
}
.rail i { width: 11px; height: 11px; border-radius: 50%; border: 1px solid var(--sc-ink-soft); background: var(--sc-canvas); position: relative; z-index: 1; flex: none; transition: background-color 200ms var(--sc-ease-out), border-color 200ms var(--sc-ease-out), transform 200ms var(--sc-ease-out); }
.rail span { opacity: 0; transform: translateX(6px); transition: opacity 200ms var(--sc-ease-out), transform 200ms var(--sc-ease-out); }
.rail button[aria-current="step"] { color: var(--sc-ink); }
.rail button[aria-current="step"] i { background: var(--sc-accent); border-color: var(--sc-accent); transform: scale(1.15); }
.rail button[aria-current="step"] span,
.rail:hover span, .rail:focus-within span { opacity: 1; transform: none; }
.rail button.is-past i { background: var(--sc-ink-soft); }

.rail-mobile { display: none; }

/* ------------------------------------------------------------- the plan -- */
.plan { position: absolute; inset: 0; overflow: hidden; background: var(--sc-canvas); }
.plan__grid {
  position: absolute; inset: -20%;
  background-image:
    linear-gradient(var(--line-faint) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-faint) 1px, transparent 1px),
    linear-gradient(rgba(244,238,227,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244,238,227,0.035) 1px, transparent 1px);
  background-size: 160px 160px, 160px 160px, 32px 32px, 32px 32px;
  will-change: transform;
}
.plan__glow {
  position: absolute; left: 0; top: 0; width: 1px; height: 1px; pointer-events: none;
  will-change: transform, opacity;
}
.plan__glow::before {
  content: ""; position: absolute; width: 1800px; height: 1800px; left: -900px; top: -900px; border-radius: 50%;
  background: radial-gradient(closest-side, hsl(var(--lamp) / 0.22), hsl(var(--lamp) / 0.08) 45%, transparent 75%);
}
.plan__world { position: absolute; left: 0; top: 0; width: 6400px; height: 2600px; transform-origin: 0 0; will-change: transform; }
.plan__ink { position: absolute; inset: 0; width: 6400px; height: 2600px; overflow: visible; max-width: none; }
.plan__papers { position: absolute; inset: 0; }
.plan__near { position: absolute; inset: 0; pointer-events: none; }

/* ink */
.ink { fill: none; stroke: var(--line); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; }
.ink--soft { stroke: var(--line-soft); }
.ink--faint { stroke: var(--line-faint); }
.ink--dash { stroke-dasharray: 6 8; }
.ink--fill { fill: rgba(244,238,227,0.035); }
.ink--accent { stroke: var(--sc-accent); }
.ink--thick { stroke-width: 3; }
.ink-text { fill: var(--line); font-family: var(--sc-font-mono); font-size: 22px; letter-spacing: 0.14em; text-transform: uppercase; }
.ink-text--soft { fill: var(--line-soft); }
.ink-text--big { font-size: 34px; letter-spacing: 0.1em; }
.ink-text--accent { fill: var(--sc-accent); }
.station .ring { transition: stroke 300ms var(--sc-ease-out), fill 300ms var(--sc-ease-out); }
.station.is-lit .ring { stroke: var(--sc-accent); fill: rgba(219,122,72,0.08); }
.station.is-lit .glyph { stroke: var(--sc-ink); }

.tangle { fill: none; stroke-width: 3; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; }
.pulse { fill: var(--sc-accent); }

/* papers: the visitor's own tasks */
.paper {
  position: absolute; left: 0; top: 0; width: 168px; height: 108px; margin: -54px 0 0 -84px;
  border-radius: 6px; padding: 14px 16px;
  background: #f3ece0; color: #1d2638;
  box-shadow: 0 2px 3px rgba(5,8,14,0.35), 0 14px 26px -10px rgba(5,8,14,0.6);
  font-family: var(--sc-font-mono); font-size: 15px; letter-spacing: 0.06em; text-transform: uppercase;
  will-change: transform, opacity;
  transition: background-color 260ms var(--sc-ease-out), border-radius 260ms var(--sc-ease-out), color 260ms var(--sc-ease-out);
}
.paper::after {
  content: ""; position: absolute; left: 16px; right: 22px; top: 44px; height: 44px;
  background: repeating-linear-gradient(to bottom, rgba(29,38,56,0.22) 0 2px, transparent 2px 11px);
  transition: opacity 260ms var(--sc-ease-out);
}
.paper .flag {
  position: absolute; right: -10px; top: -14px; padding: 5px 9px; border-radius: 4px;
  background: var(--sc-accent); color: #fff; font-size: 12px; letter-spacing: 0.08em; white-space: nowrap;
  opacity: 0; transform: translateY(4px) scale(0.95); transition: opacity 220ms var(--sc-ease-out), transform 220ms var(--sc-ease-out);
}
.paper.is-flagged .flag { opacity: 1; transform: none; }
.paper .tick {
  position: absolute; right: 14px; bottom: 12px; width: 26px; height: 26px; border-radius: 50%;
  background: var(--sc-accent); opacity: 0; transform: scale(0.95); transition: opacity 240ms var(--sc-ease-out), transform 240ms var(--sc-ease-out);
}
.paper .tick::after { content: ""; position: absolute; left: 8px; top: 6px; width: 7px; height: 12px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.paper .state { position: absolute; left: 16px; bottom: 12px; font-size: 12px; letter-spacing: 0.1em; opacity: 0; color: #9a4b23; transition: opacity 240ms var(--sc-ease-out); }
.paper.is-clean::after { opacity: 0; }
.paper.is-app { background: #1d2a40; color: var(--sc-ink); border-radius: 14px; box-shadow: inset 0 0 0 1.5px rgba(244,238,227,0.4), 0 14px 26px -10px rgba(5,8,14,0.6); }
.paper.is-app .state { color: var(--sc-ink-soft); }
.paper.is-done .tick { opacity: 1; transform: none; }
.paper.is-done .state { opacity: 1; }
.paper.is-done { box-shadow: inset 0 0 0 1.5px var(--sc-accent), 0 14px 26px -10px rgba(5,8,14,0.6); }

/* near plane: out-of-focus drafting tools that pass in front of the camera */
.near { position: absolute; left: 0; top: 0; will-change: transform, opacity; filter: blur(8px); }
.near--ruler { width: 1400px; height: 120px; border-radius: 8px; background:
  repeating-linear-gradient(90deg, rgba(18,26,41,0.75) 0 2px, transparent 2px 28px) 0 0 / 100% 38px no-repeat,
  linear-gradient(#e7ddcb, #d6c9b3); box-shadow: 0 30px 60px -20px rgba(0,0,0,0.6); }
.near--sheet { width: 900px; height: 640px; border-radius: 4px; background: linear-gradient(160deg, #efe6d6, #ddd0bb); box-shadow: 0 40px 80px -30px rgba(0,0,0,0.6); }

/* ------------------------------------------------------------- the copy -- */
.copy {
  position: absolute; z-index: var(--sc-z-copy);
  max-width: min(40rem, 86vw);
  display: grid; gap: var(--sc-4); align-content: start;
}
.copy > *:not(.scrim) { position: relative; z-index: 1; margin: 0; }
.scrim { position: absolute; z-index: 0; pointer-events: none; }
.scrim--left  { inset: -30vh auto -30vh calc(-1 * var(--sc-gutter) - 2px); width: calc(100% + 24vw); background: linear-gradient(90deg, rgba(18,26,41,0.82) 0%, rgba(18,26,41,0.62) 55%, rgba(18,26,41,0) 100%); }
.scrim--deep  { background: linear-gradient(90deg, rgba(18,26,41,0.93) 0%, rgba(18,26,41,0.8) 60%, rgba(18,26,41,0) 100%); }
.scrim--right { inset: -30vh calc(-1 * var(--sc-gutter) - 2px) -30vh auto; width: calc(100% + 24vw); background: linear-gradient(270deg, rgba(18,26,41,0.85) 0%, rgba(18,26,41,0.62) 55%, rgba(18,26,41,0) 100%); }
.scrim--top { inset: -20vh -20vw -14vh; background: linear-gradient(to bottom, rgba(18,26,41,0.8) 0%, rgba(18,26,41,0.6) 60%, rgba(18,26,41,0) 100%); }
.scrim--bottom { inset: -14vh -30vw -20vh; background: linear-gradient(to top, rgba(18,26,41,0.85) 0%, rgba(18,26,41,0.6) 55%, rgba(18,26,41,0) 100%); }

.copy--hero  { left: var(--sc-gutter); top: 50%; translate: 0 -46%; max-width: min(44rem, 88vw); }
.copy--trail { right: calc(var(--sc-gutter) + 9rem); top: 50%; translate: 0 -50%; text-align: right; justify-items: end; max-width: min(30rem, 80vw); }
.copy--top   { left: var(--sc-gutter); top: 50%; translate: 0 -50%; max-width: min(34rem, 86vw); }
.copy--low   { left: var(--sc-gutter); top: 50%; translate: 0 -50%; max-width: min(34rem, 86vw); }
.copy--side  { left: var(--sc-gutter); top: 50%; translate: 0 -48%; max-width: min(34rem, 88vw); }
.copy--close { left: var(--sc-gutter); top: 50%; translate: 0 -48%; max-width: min(34rem, 88vw); }

.hero__title { font-size: clamp(2.4rem, 1.3rem + 3.1vw, 4.3rem); font-weight: 600; line-height: 1.02; letter-spacing: -0.035em; }
.hero__title span { display: block; color: var(--sc-accent); }
.big { font-size: clamp(2.8rem, 1.6rem + 4.4vw, 5.6rem); font-weight: 600; line-height: 1; letter-spacing: -0.04em; }
.mid { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.6rem); font-weight: 600; line-height: 1.05; letter-spacing: -0.03em; }
.lede { font-size: clamp(1.02rem, 0.95rem + 0.3vw, 1.2rem); line-height: 1.58; color: var(--sc-ink-soft); max-width: 42ch; text-wrap: pretty; }
.lede strong { color: var(--sc-ink); font-weight: 600; }
.copy--trail .lede { margin-left: auto; }
.kicker { font-family: var(--sc-font-mono); font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--sc-accent); }
.kicker--small { margin-top: var(--sc-3) !important; color: var(--sc-ink-soft); }
.nums { font-variant-numeric: tabular-nums; }

.beat { gap: var(--sc-2); }
.beat__name { font-family: var(--sc-font-display); font-size: clamp(2.2rem, 1.4rem + 3vw, 4.2rem); font-weight: 600; letter-spacing: -0.035em; line-height: 1; }
.beat__line { font-size: clamp(1.05rem, 0.98rem + 0.35vw, 1.3rem); color: var(--sc-ink-soft); max-width: 36ch; }

/* picker */
.picker { display: grid; gap: var(--sc-4); margin-top: var(--sc-2) !important; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; border: 0; margin: 0; padding: 0; min-width: 0; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chips span {
  display: inline-block; padding: 9px 14px; border-radius: 999px; font-size: 0.9rem; line-height: 1;
  border: 1px solid var(--sc-hairline-strong); color: var(--sc-ink-soft); background: rgba(18,26,41,0.6);
  transition: background-color 160ms var(--sc-ease-out), color 160ms var(--sc-ease-out), border-color 160ms var(--sc-ease-out);
}
.chips input:checked + span { background: var(--sc-ink); color: var(--sc-canvas); border-color: var(--sc-ink); }
.chips input:focus-visible + span { outline: 2px solid var(--sc-accent); outline-offset: 3px; }
.chips input:disabled + span { opacity: 0.45; cursor: not-allowed; }
@media (hover: hover) and (pointer: fine) { .chips label:hover input:not(:checked):not(:disabled) + span { border-color: var(--sc-ink); color: var(--sc-ink); } }
.hours { display: grid; gap: 10px; max-width: 26rem; }
.hours label { font-size: 0.95rem; color: var(--sc-ink-soft); }
.hours output { color: var(--sc-ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.hours input[type="range"] { width: 100%; accent-color: var(--sc-accent); height: 28px; }
.picker__note { font-size: 0.82rem; color: var(--sc-ink-soft); min-height: 1.2em; }

/* apps (already built) */
.apps { list-style: none; padding: 0; margin: 0 !important; display: grid; gap: 2px; border-top: 1px solid var(--sc-hairline); }
.apps li { border-bottom: 1px solid var(--sc-hairline); }
.apps button {
  width: 100%; text-align: left; background: none; border: 0; padding: 14px 0; cursor: pointer;
  display: grid; grid-template-columns: 11rem 1fr; gap: 16px; align-items: baseline; color: var(--sc-ink);
}
.apps b { font-weight: 600; font-size: 1rem; }
.apps span { color: var(--sc-ink-soft); font-size: 0.92rem; line-height: 1.45; }
@media (hover: hover) and (pointer: fine) { .apps button:hover b { color: var(--sc-accent); } }

.close__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: var(--sc-2) !important; }
.fine { font-size: 0.8rem; color: var(--sc-ink-soft); margin-top: var(--sc-5) !important; font-family: var(--sc-font-mono); letter-spacing: 0.06em; }

/* ------------------------------------------------------------- dialogs -- */
.sheet {
  border: 0; padding: 0; margin: auto; width: min(40rem, calc(100vw - 2rem)); max-height: calc(100svh - 2rem);
  background: var(--sc-surface); color: var(--sc-ink); border-radius: 18px;
  box-shadow: var(--sc-e3), var(--sc-edge); overflow: auto;
}
.sheet::backdrop { background: rgba(8, 12, 20, 0.72); backdrop-filter: blur(4px); }
.sheet[open] { animation: sheet-in 260ms var(--sc-ease-out); }
@keyframes sheet-in { from { opacity: 0; transform: translateY(10px) scale(0.98); } }
.sheet__body { padding: clamp(1.4rem, 4vw, 2.4rem); display: grid; gap: var(--sc-4); position: relative; }
.sheet__body > p { margin: 0; }
.sheet h2 { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.2rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; margin: 0; padding-right: 2.5rem; }
.sheet__lede { color: var(--sc-ink-soft); font-size: 0.98rem; }
.sheet__x { position: absolute; right: 14px; top: 14px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--sc-hairline-strong); background: transparent; color: var(--sc-ink); font-size: 1.4rem; line-height: 1; cursor: pointer; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sc-4); }
.grid2 p { margin: 0; }
.sheet label { display: block; font-size: 0.85rem; color: var(--sc-ink-soft); margin-bottom: 6px; }
.sheet .opt { opacity: 0.8; }
.sheet input, .sheet select, .sheet textarea {
  width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--sc-hairline-strong);
  background: rgba(18,26,41,0.7); color: var(--sc-ink); font-size: 1rem;
}
.sheet textarea { resize: vertical; line-height: 1.5; }
.sheet input:focus-visible, .sheet select:focus-visible, .sheet textarea:focus-visible { outline: 2px solid var(--sc-accent); outline-offset: 1px; border-color: transparent; }
.sheet__err { color: #f2a37c; font-size: 0.92rem; }
.sheet__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.sheet__done { display: grid; gap: var(--sc-4); padding: var(--sc-4); border-radius: 12px; background: rgba(219,122,72,0.1); border: 1px solid rgba(219,122,72,0.4); }
.sheet__done p { margin: 0; line-height: 1.5; }
.sheet--video { width: min(64rem, calc(100vw - 2rem)); background: #0b1019; }
.sheet--video .sheet__body { padding: 0; }
.sheet--video video { width: 100%; height: auto; border-radius: 18px; display: block; }
.sheet--video .sheet__x { z-index: 2; background: rgba(11,16,25,0.7); }

/* ------------------------------------------------------------- mobile -- */
@media (max-width: 860px) {
  :root { --bar-h: 58px; }
  .rail { display: none; }
  .rail-mobile {
    display: block; position: fixed; z-index: var(--sc-z-chrome); left: var(--sc-gutter); right: var(--sc-gutter);
    top: calc(var(--bar-h) + env(safe-area-inset-top, 0px)); height: 2px; background: var(--sc-hairline);
  }
  .rail-mobile i { display: none; }
  .rail-mobile b { position: absolute; left: 0; top: 0; bottom: 0; width: 100%; transform-origin: 0 50%; transform: scaleX(var(--route, 0)); background: var(--sc-accent); }
  .bar__mark span small { display: none; }
  .bar__cta { font-size: 0.8rem; padding: 0.62rem 0.9rem; }

  .copy, .copy--hero, .copy--trail, .copy--top, .copy--low, .copy--side, .copy--close {
    left: var(--sc-gutter); right: var(--sc-gutter); top: auto; bottom: calc(1.4rem + env(safe-area-inset-bottom, 0px));
    translate: none; max-width: none; text-align: left; justify-items: start;
  }
  .copy--trail .lede { margin-left: 0; }
  .scrim--left, .scrim--right, .scrim--bottom, .scrim--deep {
    inset: -18vh calc(-1 * var(--sc-gutter)) calc(-1.4rem - env(safe-area-inset-bottom, 0px)); width: auto;
    background: linear-gradient(to top, rgba(18,26,41,0.96) 0%, rgba(18,26,41,0.88) 62%, rgba(18,26,41,0) 100%);
  }
  .scrim--top { inset: calc(-1 * var(--bar-h) - 2.2rem) calc(-1 * var(--sc-gutter)) -14vh; background: linear-gradient(to bottom, rgba(18,26,41,0.95) 0%, rgba(18,26,41,0.85) 60%, rgba(18,26,41,0) 100%); }
  .hero__title { font-size: clamp(2.1rem, 1.2rem + 4.6vw, 2.8rem); }
  .lede { font-size: 0.98rem; }
  .chips span { padding: 8px 12px; font-size: 0.85rem; }
  .apps button { grid-template-columns: 1fr; gap: 2px; padding: 10px 0; }
  .grid2 { grid-template-columns: 1fr; }
  .copy--side .lede { font-size: 0.92rem; }
  .near { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .plan__world, .plan__grid, .near, .plan__glow { transition: opacity 240ms linear !important; }
  .sheet[open] { animation: none; }
}

/* full-frame scrims, one per copy block, sharing its window */
.scrimfull { position: absolute; inset: 0; pointer-events: none; z-index: 0; opacity: 0; }
.scrimfull--left  { background: linear-gradient(90deg, rgba(18,26,41,0.92) 0%, rgba(18,26,41,0.84) 32%, rgba(18,26,41,0.45) 50%, rgba(18,26,41,0) 64%); }
.scrimfull--deep  { background: linear-gradient(90deg, rgba(18,26,41,0.95) 0%, rgba(18,26,41,0.9) 36%, rgba(18,26,41,0.5) 52%, rgba(18,26,41,0) 66%); }
.scrimfull--right { background: linear-gradient(270deg, rgba(18,26,41,0.94) 0%, rgba(18,26,41,0.88) 36%, rgba(18,26,41,0.5) 52%, rgba(18,26,41,0) 66%); }
.scrimfull--top   { background: linear-gradient(to bottom, rgba(18,26,41,0.97) 0%, rgba(18,26,41,0.93) 36%, rgba(18,26,41,0.55) 50%, rgba(18,26,41,0) 62%); }
.scrimfull--bottom{ background: linear-gradient(to top, rgba(18,26,41,0.92) 0%, rgba(18,26,41,0.84) 26%, rgba(18,26,41,0.4) 40%, rgba(18,26,41,0) 52%); }
.copy { z-index: calc(var(--sc-z-copy) + 1); }
@media (max-width: 860px) {
  .scrimfull--left, .scrimfull--right, .scrimfull--bottom, .scrimfull--deep {
    background: linear-gradient(to top, rgba(18,26,41,0.97) 0%, rgba(18,26,41,0.92) var(--cut, 40%), rgba(18,26,41,0.5) calc(var(--cut, 40%) + 4%), rgba(18,26,41,0) calc(var(--cut, 40%) + 11%));
  }
  .scrimfull--top { background: linear-gradient(to bottom, rgba(18,26,41,0.97) 0%, rgba(18,26,41,0.9) 28%, rgba(18,26,41,0.4) 40%, rgba(18,26,41,0) 50%); }
}

/* sticky notes: client to-dos that flood in during "The cost" */
.plan__notes { position: absolute; inset: 0; pointer-events: none; }
.note {
  --lift: 0;
  position: absolute; left: 0; top: 0; width: 132px; height: 124px; margin: -62px 0 0 -66px;
  padding: 26px 13px 12px; border-radius: 3px; opacity: 0;
  color: #2a2418; font-family: var(--sc-font-display); font-weight: 500; font-size: 16px; line-height: 1.25; letter-spacing: -0.005em;
  box-shadow:
    0 calc(2px + var(--lift) * 18px) calc(3px + var(--lift) * 26px) rgba(5,8,14, calc(0.4 - var(--lift) * 0.15)),
    0 1px 0 rgba(255,255,255,0.35) inset;
  will-change: transform, opacity;
}
/* the tape strip / adhesive band at the top of each note */
.note::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 16px; background: rgba(0,0,0,0.06); }
@media (max-width: 860px) { .note { font-size: 15px; } }

/* ------------------------------------------------------------ entry gate -- */
/* Only exists with JavaScript (html.gate-on is set in the head). */
.gate { display: none; }
html.gate-on .gate {
  display: grid; place-items: center; position: fixed; inset: 0; z-index: 1000; overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 45%, rgba(219,122,72,0.10), transparent 60%),
    linear-gradient(rgba(244,238,227,0.035) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, rgba(244,238,227,0.035) 1px, transparent 1px) 0 0 / 48px 48px,
    var(--sc-canvas);
  transition: opacity 800ms var(--sc-ease-out), visibility 0s linear 800ms;
}
html.gate-on.gate-locked { overflow: hidden; }
html.gate-on .gate.is-gone { opacity: 0; visibility: hidden; pointer-events: none; }
.gate__notes { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.gate--big .note { width: 176px; height: 164px; padding: 34px 16px 14px; font-size: 20px; }
.gate--big .note::before { height: 20px; }
.gate .note { opacity: 1; margin: 0; box-shadow: 0 2px 5px rgba(5,8,14,0.35), 0 1px 0 rgba(255,255,255,0.35) inset; will-change: auto; }
.gate__card {
  position: relative; z-index: 2; text-align: center; padding: 34px 40px 36px; max-width: min(26rem, calc(100vw - 32px));
  background: rgba(18,26,41,0.94); border: 1px solid rgba(244,238,227,0.12); border-radius: 18px;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.7);
  transition: opacity 450ms var(--sc-ease-out), transform 450ms var(--sc-ease-out);
}
.gate__eyebrow { margin: 0 0 10px; font-family: var(--sc-font-mono, "IBM Plex Mono", monospace); font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sc-accent); }
.gate__title { margin: 0; font-family: var(--sc-font-display); font-weight: 650; font-size: clamp(1.9rem, 4vw, 2.6rem); line-height: 1.08; letter-spacing: -0.02em; color: var(--sc-ink); }
.gate__lede { margin: 10px 0 24px; color: var(--sc-ink-soft); font-size: 1.1rem; }
.gate__enter { font-size: 1.05rem; padding-inline: 28px; }
.gate.is-clearing .gate__card { opacity: 0; transform: scale(0.96) translateY(8px); pointer-events: none; }
.gate__shield { position: absolute; z-index: 1; width: min(240px, 52vw); height: auto; left: 50%; top: 50%; translate: -50% -54%; overflow: visible; }

/* the "Jarvis" screen between the notes and the shield */
.hud { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hud__rings { position: absolute; left: 50%; top: 50%; width: min(600px, 92vw); aspect-ratio: 1; transform: translate(-50%,-52%); opacity: 0; will-change: transform, opacity; }
.hud__layer { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; will-change: transform; }
.hud__mono, .hud__code { font-family: "IBM Plex Mono", ui-monospace, monospace; }
.hud__num { font-family: var(--sc-font-display); font-weight: 600; }
.hud__code {
  position: absolute; top: 50%; translate: 0 -50%; margin: 0; opacity: 0;
  font-size: 13px; line-height: 2; letter-spacing: 0.02em; white-space: pre; color: #b3bccb;
}
.hud__code--l { left: max(32px, 5vw); color: #f4eee3; }
.hud__code--r { right: max(32px, 5vw); text-align: right; color: #db7a48; }
@media (max-width: 1100px) {
  .hud__code { font-size: 11px; line-height: 1.8; }
  .hud__code--l { top: auto; bottom: 28px; translate: 0 0; }
  .hud__code--r { top: 92px; translate: 0 0; }
}
@media (max-width: 520px) { .hud__code--r { display: none; } .hud__code--l { left: 16px; font-size: 10.5px; } }

/* the Enter button: an inviting pulse and shine while it waits, a burst when pressed */
.gate__enter { position: relative; isolation: isolate; overflow: visible; transition: transform 180ms var(--sc-ease-out), box-shadow 180ms var(--sc-ease-out); }
.gate__enter::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1;
  border: 2px solid var(--sc-accent); opacity: 0;
  animation: gate-pulse 2.4s cubic-bezier(.2,.6,.3,1) 1.6s infinite;
}
.gate__enter::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,0.55) 48%, transparent 62%) -160% 0 / 250% 100% no-repeat;
  animation: gate-shine 3.2s ease-in-out 2.2s infinite;
}
.gate__enter:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -12px hsl(20 75% 45% / 0.85), var(--sc-edge); }
.gate.is-pressed .gate__enter::after, .gate.is-pressed .gate__enter::before { animation: none; opacity: 0; }
@keyframes gate-pulse { 0% { transform: scale(1); opacity: 0.8; } 70%, 100% { transform: scale(1.45, 1.9); opacity: 0; } }
@keyframes gate-shine { 0% { background-position: -160% 0; } 45%, 100% { background-position: 160% 0; } }
.gate__burst { position: absolute; inset: 0; z-index: 3; pointer-events: none; overflow: hidden; }
.gate__burst i { position: absolute; display: block; }
.gate__ring { border-radius: 50%; border: 3px solid rgba(244,238,227,0.95); will-change: transform, opacity; }
.gate__ring--hot { border: 6px solid var(--sc-accent); }
.gate__flash { width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, rgba(255,226,200,0.95), rgba(219,122,72,0.5) 35%, transparent 70%); }
.gate__spark { width: 38px; height: 4px; box-shadow: 0 0 8px rgba(255,180,130,0.9); border-radius: 3px; background: linear-gradient(90deg, transparent, #ffd7b8 40%, var(--sc-accent)); }
@media (prefers-reduced-motion: reduce) { .gate__enter::after, .gate__enter::before { animation: none; } }

.gate.is-pressed .gate__enter { background: #f0915f; box-shadow: 0 0 0 6px rgba(219,122,72,0.28), 0 0 46px rgba(240,145,95,0.85); }

/* sound on/off on the entry screen */
.gate__sound {
  position: absolute; z-index: 4; top: max(16px, env(safe-area-inset-top)); right: 16px;
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px;
  font: 500 13px/1 var(--sc-font-display); color: var(--sc-ink); cursor: pointer;
  background: rgba(18,26,41,0.88); border: 1px solid rgba(244,238,227,0.18);
  box-shadow: 0 8px 20px -10px rgba(0,0,0,0.6);
  transition: opacity 400ms var(--sc-ease-out), background-color 160ms var(--sc-ease-out);
}
.gate__sound:hover { background: rgba(26,36,55,0.95); }
.gate__sound[aria-pressed="false"] .gate__waves { opacity: 0.2; }
.gate__sound[aria-pressed="false"] { color: var(--sc-ink-soft); }

/* making it clear the work is custom */
.picker__ask { display: block; padding: 0; margin: 0 0 10px; font-weight: 600; font-size: 1rem; color: var(--sc-ink); }
.chips .picker__ask { width: 100%; }
.chips .picker__ask span { display: block; margin-top: 3px; padding: 0; border: 0; background: none; box-shadow: none; border-radius: 0; font-weight: 400; font-size: 0.86rem; color: var(--sc-ink-soft); pointer-events: none; }
.beat__step { display: block; width: fit-content; justify-self: start; align-self: flex-start; font-family: var(--sc-font-mono); font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--sc-accent); margin: 0 0 10px !important; padding: 5px 11px; border-radius: 999px; background: rgba(18,26,41,0.96); border: 1px solid rgba(219,122,72,0.4); }
.apps__note { font-size: 0.9rem; color: var(--sc-ink-soft); margin-top: 4px !important; }
.copy--low .lede { max-width: 34rem; }

/* picker: broad areas, optional specifics, and "something else" */
.chip--else span { border-style: dashed; }
.detail { display: grid; gap: 12px; }
.detail:empty { display: none; }
.detail__row { display: grid; gap: 8px; animation: detail-in 260ms var(--sc-ease-out); }
@keyframes detail-in { from { opacity: 0; transform: translateY(-4px); } }
.detail__title { margin: 0; font-size: 0.88rem; color: var(--sc-ink-soft); }
.detail__title b { color: var(--sc-ink); font-weight: 600; }
.detail__title span { opacity: 0.75; }
.chips--sm { gap: 6px; }
.chips--sm span { padding: 6px 11px !important; font-size: 0.8rem !important; }
.detail__input {
  width: 100%; max-width: 26rem; padding: 10px 13px; border-radius: 10px;
  font: 400 0.95rem/1.3 var(--sc-font-display); color: var(--sc-ink);
  background: rgba(244,238,227,0.06); border: 1px solid rgba(244,238,227,0.22);
}
.detail__input::placeholder { color: rgba(179,188,203,0.7); }
.detail__input:focus { outline: 2px solid var(--sc-accent); outline-offset: 2px; border-color: transparent; }
@media (prefers-reduced-motion: reduce) { .detail__row { animation: none; } }
@media (max-width: 860px) {
  .chips .picker__ask span { display: none; }
  .chips { gap: 6px; }
  .picker { gap: 14px; }
  .picker__note { font-size: 0.78rem; }
}

/* pages: the "Free my time" button and the "Next" pager */
.free-btn { justify-self: start; margin-top: 4px; gap: 10px; }
.free-btn span { display: inline-block; transition: transform 200ms var(--sc-ease-out); }
.free-btn:hover span { transform: translateY(3px); }
.pager {
  position: fixed; z-index: var(--sc-z-chrome); left: 50%; bottom: max(26px, env(safe-area-inset-bottom));
  translate: -50% 0; display: inline-flex; align-items: center; gap: 10px;
  padding: 1rem 1.6rem; border-radius: 999px; cursor: pointer; border: 0;
  font: 600 1.05rem/1 var(--sc-font-display); color: var(--sc-accent-ink); background: var(--sc-accent);
  box-shadow: 0 12px 28px -12px hsl(20 70% 40% / 0.8), var(--sc-edge);
  transition: transform 180ms var(--sc-ease-out), box-shadow 180ms var(--sc-ease-out);
}
.pager[hidden] { display: none; }
.pager:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -12px hsl(20 75% 45% / 0.9), var(--sc-edge); }
.pager__arrow { color: inherit; animation: pager-nudge 1.8s ease-in-out infinite; }
@keyframes pager-nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(3px); } }
html.gate-locked .pager { display: none; }
@media (max-width: 860px) {
  /* phones: a small round arrow on the right, clear of the text at the bottom */
  .pager { left: auto; right: 14px; bottom: auto; top: calc(var(--bar-h) + 14px); translate: none; padding: 0.7rem 1.05rem; font-size: 0.86rem; }
}
@media (prefers-reduced-motion: reduce) { .pager__arrow { animation: none; } }

/* qualifying questions on each page */
.ask { border: 0; margin: 14px 0 0 !important; padding: 0; min-width: 0; display: grid; gap: 8px; }
.ask__q { padding: 0; margin: 0 0 2px; font-weight: 600; font-size: 0.95rem; color: var(--sc-ink); }
.ask__q span { font-weight: 400; font-size: 0.82rem; color: var(--sc-ink-soft); }
.ask .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ask__text { margin-top: 2px; }
.copy--trail .ask { justify-items: end; text-align: right; }
.copy--trail .ask .chips { justify-content: flex-end; }
.copy--trail .ask + .ask { margin-top: 10px !important; }

/* the profile on the last page and in the request form */
.profile { margin-top: 6px !important; padding: 14px 16px; border-radius: 14px; background: rgba(244,238,227,0.05); border: 1px solid rgba(244,238,227,0.14); max-width: 34rem; }
.profile[hidden] { display: none; }
.profile__title, .sheet__profile-title { margin: 0 0 8px; font-family: var(--sc-font-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sc-accent); }
.profile__list, .sheet__profile ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 0.86rem; color: var(--sc-ink-soft); }
.profile__list b, .sheet__profile b { color: var(--sc-ink); font-weight: 600; }
.profile__idea { margin: 10px 0 0; font-size: 0.95rem; color: var(--sc-ink); line-height: 1.4; }
.profile__fine { margin: 6px 0 0; font-size: 0.75rem; color: var(--sc-ink-soft); }
.sheet__profile { margin: 4px 0 12px; padding: 12px 14px; border-radius: 12px; background: rgba(244,238,227,0.05); border: 1px solid rgba(244,238,227,0.12); }
.sheet__profile[hidden] { display: none; }
@media (max-width: 860px) {
  .ask { margin-top: 10px !important; gap: 6px; }
  .ask__q { font-size: 0.88rem; }
  .copy--trail .ask { justify-items: start; text-align: left; }
  .copy--trail .ask .chips { justify-content: flex-start; }
  .profile { padding: 10px 12px; }
  .profile__list { font-size: 0.78rem; }
  .profile__fine { display: none; }
}

.profile__idea.is-empty { color: var(--sc-ink-soft); font-size: 0.86rem; }
.profile__more { margin-top: 8px; }
.profile__more summary { cursor: pointer; font-size: 0.82rem; color: var(--sc-accent); list-style: none; }
.profile__more summary::-webkit-details-marker { display: none; }
.profile__more summary::after { content: " \2193"; }
.profile__more[open] summary::after { content: " \2191"; }
.profile__more ul { margin-top: 8px; }
#summary[hidden] { display: none; }
@media (max-width: 860px) { .profile__idea { font-size: 0.86rem; } }

/* tools they already use */
.tools { display: grid; gap: 8px; max-width: 26rem; }
.tools__row { display: flex; gap: 8px; }
.tools__row .detail__input { flex: 1; min-width: 0; }
.tools__add { flex: none; padding: 0 16px; border-radius: 10px; border: 1px solid rgba(244,238,227,0.22); background: rgba(244,238,227,0.08); color: var(--sc-ink); font: 600 0.88rem var(--sc-font-display); cursor: pointer; }
.tools__add:hover { border-color: var(--sc-accent); }
.tools__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tools__tags:empty { display: none; }
.tools__tag { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px 5px 12px; border-radius: 999px; border: 0; cursor: pointer; background: var(--sc-ink); color: var(--sc-canvas); font: 500 0.8rem var(--sc-font-display); }
.tools__tag i { font-style: normal; font-size: 1rem; line-height: 1; opacity: 0.6; }
.tools__tag:hover i { opacity: 1; }

.ask__text[hidden] { display: none; }

/* phones: the film grain is a full-screen layer composited every frame and is
   barely visible on a small screen, so it's left off there */
@media (max-width: 860px) { .sc-grain { display: none; } }

/* "Skip" links to the simple home page */
.gate__skip { display: block; width: fit-content; margin: 14px auto 0; font-size: 0.9rem; color: var(--sc-ink-soft); text-decoration: underline; text-underline-offset: 3px; }
.gate__skip:hover { color: var(--sc-ink); }
.bar__skip { margin-left: auto; margin-right: 16px; font-size: 0.88rem; color: var(--sc-ink-soft); text-decoration: none; }
.bar__skip:hover { color: var(--sc-ink); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 640px) { .bar__skip { font-size: 0.82rem; margin-right: 10px; white-space: nowrap; } .bar__skip-more { display: none; } .bar__mark span { white-space: nowrap; } }
@media (max-width: 440px) { .bar__mark span { display: none; } }
