:root {
  --ink: #101010;
  --ink-dim: #6a6a6a;
  --line: rgba(0, 0, 0, .14);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: #000;
  color: #f2f2f2;
  font-family: "Poppins", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  transition: background .5s linear, color .5s linear;
}

/* Once the story floods to white the page furniture flips with it. */
body.is-light { background: #fff; color: var(--ink); }

/* ---------- scroll story ---------- */

#scrollstory { background: #000; }

.ss__track { position: relative; height: 820vh; }

.ss__pin {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}

.ss__canvas { display: block; width: 100%; height: 100vh; }

/* ---------- opening: white tag low in frame, fades on first scroll ---------- */

.ss__opening {
  position: absolute;
  left: 0; right: 0;
  bottom: clamp(28px, 7vh, 84px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  will-change: opacity;
}
.ss__opening img {
  width: min(46vw, 460px);
  height: auto;
  display: block;
  filter: brightness(0) invert(1);
  opacity: .92;
}
/* contact line under the opening tag - fades out together with it */
.ss__openlines {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 6px;
  font-size: 13px;
  white-space: nowrap;
}
.ss__openlines .ss__copy,
.ss__openlines a {
  color: rgba(255,255,255,.66);
  text-decoration: none;
  transition: color .25s;
}
.ss__openlines .ss__copy:hover, .ss__openlines .ss__copy:focus-visible,
.ss__openlines a:hover, .ss__openlines a:focus-visible { color: #fff; }
.ss__openlines .ss__sep { color: rgba(255,255,255,.35); }

/* ---------- closing: tag, email, number. nothing else ---------- */

/* Tag high, contact low: the closed laptop eases up and shrinks into the
   middle band, so the tag lands where the screen used to stand and the
   lines sit in clean white underneath it. */
.ss__closing {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 3vh, 30px);
  padding: 24px;
  opacity: 0;
  transition: opacity .8s cubic-bezier(.2,.7,.3,1);
  pointer-events: none;
}
.ss__closing.is-in { opacity: 1; pointer-events: auto; }

.ss__tag {
  width: min(52vw, 560px);
  height: auto;
  display: block;
  transform: translateY(-8px);
  transition: transform .8s cubic-bezier(.2,.7,.3,1);
}
.ss__closing.is-in .ss__tag { transform: none; }

/* Apple-style: small, quiet, generously spaced, no underlines until hover. */
.ss__lines {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 14px;
  letter-spacing: .01em;
}

.ss__lines a {
  color: #6e6e73;
  text-decoration: none;
  transition: color .25s;
}
.ss__sep { color: #a1a1a6; }
.ss__lines a:hover,
.ss__lines a:focus-visible { color: #101010; text-decoration: underline; }

/* email renders as a link but copies on click */
.ss__copy, .legal__copy {
  background: none; border: 0; padding: 0; font: inherit; cursor: pointer;
}
.ss__copy { color: #6e6e73; transition: color .25s; }
.ss__copy:hover, .ss__copy:focus-visible { color: #101010; text-decoration: underline; }
.legal__copy { color: #b8b8bd; }
.legal__copy:hover, .legal__copy:focus-visible { text-decoration: underline; text-underline-offset: 3px; }

/* quiet client roll under the contact line */
.ss__clients {
  /* desktop: pinned under the closed laptop, out of the tag cluster */
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 3.5vh;
  font-family: "JetBrains Mono", "Consolas", "Courier New", monospace;
  max-width: 880px;
  width: 92vw;
  text-align: center;
  font-size: 10px;
  line-height: 1.7;
  letter-spacing: 0.01em;
  color: #b5b5ba;
}

/* thin scrub indicator */
.ss-progress {
  position: fixed;
  left: 0; top: 0;
  height: 2px;
  width: 100%;
  background: #cfd8dc;
  transform: scaleX(0);
  transform-origin: 0 50%;
  z-index: 60;
  opacity: .85;
  transition: opacity .3s, background .5s;
}
.ss-progress.is-off { opacity: 0; }
body.is-light .ss-progress { background: #101010; }

/* ---------- footer ---------- */

.legal {
  padding: 9px 16px 11px;
  text-align: center;
  font-family: "JetBrains Mono", "Consolas", "Courier New", monospace;
  font-size: 10px;
  letter-spacing: 0.02em;
  color: #b8b8bd;
  background: #000;
}
.legal p { display: block; }
.legal a { color: #b8b8bd; text-decoration: none; }
.legal a:hover, .legal a:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
.legal__sep { color: #5a5a5f; margin: 0 4px; }

/* ---------- phone layout ---------- */
@media (max-width: 820px) and (orientation: portrait) {
  /* opening tag: bigger, sitting right under the covered car */
  .ss__opening { bottom: auto; top: 64vh; }
  .ss__opening img { width: min(72vw, 460px); }

  /* closing: tag ABOVE the shut laptop, contacts + clients below it */
  .ss__closing { display: block; padding: 0; }
  .ss__tag {
    position: absolute; top: 38vh; left: 50%;
    width: min(66vw, 560px);
    transform: translate(-50%, -8px);
  }
  .ss__closing.is-in .ss__tag { transform: translate(-50%, 0); }
  .ss__lines {
    position: absolute; top: 70vh; left: 0; right: 0;
    flex-direction: row; gap: 8px;
    font-size: 12.5px; white-space: nowrap;
  }
  .ss__clients {
    top: auto; bottom: 2.5vh;
    position: absolute; left: 50%; transform: translateX(-50%);
    font-size: 9px; max-width: 92vw; width: 92vw;
  }

  /* footer: name / address / contact on their own lines */
  .legal { font-size: 10px; padding: 9px 12px 11px; }
  .legal .legal__sep { display: none; }
  .legal .legal__grp { display: block; margin: 2px 0; }
}

@media (prefers-reduced-motion: reduce) {
  .ss__track { height: 100vh; }
  .ss__closing { opacity: 1; pointer-events: auto; }
  .ss__tag { transform: none; }
  body { transition: none; }
}

@media (max-width: 820px) {
  .ss__track { height: 660vh; }
  .ss__tag { width: 68vw; }
}

/* ---------- simple document page (privacy) ---------- */

.doc {
  max-width: 62ch;
  margin: 0 auto;
  padding: clamp(48px, 12vh, 120px) 24px 96px;
  color: var(--ink);
}
.doc h1 {
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 600;
  letter-spacing: -.02em;
  margin-bottom: 14px;
}
.doc__lede { color: var(--ink-dim); margin-bottom: 40px; }
.doc h2 {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .01em;
  margin: 32px 0 8px;
}
.doc p { margin-bottom: 12px; }
.doc a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.doc a:hover, .doc a:focus-visible { color: #000; }
.doc__back { margin-top: 48px; font-size: 13px; color: var(--ink-dim); }


