/* Toolsfully homepage — the cinematic sections.
 *
 * The parts of the homepage built on imagery (the hero, the chapters, the
 * closing band) stay dark in both themes, the way a film still does; the tool
 * index, the PDF tools and the editorial below them follow the site's theme.
 * The dark sections set the site's own dark tokens locally, so every shared
 * component inside them (buttons, focus rings) matches.
 */

.cine, body.home > header {
  --color-canvas: #0b0c0f; --color-surface: #121419; --color-raised: #181a20;
  --color-ink: #edeef2; --color-muted: #9aa0ad; --color-faint: #2a2d35;
  --color-brand: #a29bff; --color-brand-strong: #c3beff; --color-focus: #a29bff;
  --cx-accent: #a29bff; --cx-live: #74e0a6; --cx-line: rgba(255, 255, 255, .09); --cx-dim: #6f7582;
  color: var(--color-ink);
}
body.home > header { background: rgba(11, 12, 15, .86); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(255, 255, 255, .06) }
body.home > header .logo .word { color: #fff }
.cine { background: #0b0c0f; overflow: hidden }
.cx-mono { font-family: var(--font-mono); font-size: 11.5px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--color-muted) }
.cx-wrap { max-width: 1344px; margin: 0 auto; padding: 0 48px; box-sizing: border-box }
.cx-h2 { margin: 0; font-size: clamp(2.3rem, 5vw, 4rem); line-height: 1.02; font-weight: 600; letter-spacing: -.045em; color: #fff }
.cx-lead { font-size: clamp(1rem, 1.4vw, 1.15rem); line-height: 1.6; color: #b9bdc7 }
.cx-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; box-sizing: border-box; padding: 0 26px; border-radius: 999px; font-size: 16px; font-weight: 700; text-decoration: none; transition: transform .15s, background .15s, border-color .15s }
.cx-btn.solid { background: #fff; color: #0b0c0f }
.cx-btn.solid:hover { background: #dcdfe6; text-decoration: none }
.cx-btn.line { border: 1px solid rgba(255, 255, 255, .28); color: var(--color-ink) }
.cx-btn.line:hover { border-color: #fff; text-decoration: none }
.cx-btn:focus-visible, .cx-card:focus-visible, .cx-link:focus-visible, .cx-chip:focus-visible, .cx-searchbtn:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 3px }
.cx-link { display: inline-flex; gap: 10px; font-size: 16px; font-weight: 700; color: #fff; border-bottom: 1px solid var(--cx-accent); padding-bottom: 4px; text-decoration: none }
.cx-link:hover { text-decoration: none; color: var(--cx-accent) }

/* ───────── 01 · the hero: a wall of real tool screens ───────── */
.hx { position: relative; min-height: clamp(640px, calc(100svh - 72px), 920px); display: flex; align-items: flex-end; background: #07080a; isolation: isolate; overflow: hidden }
.hx-wall { position: absolute; left: -18%; top: -44%; width: 136%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; z-index: -2;
  transform: perspective(1800px) rotateX(38deg) rotateZ(-18deg); opacity: .72; animation: hx-drift 70s linear infinite alternate }
.hx-wall img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: 30% 30%; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .1); background: #15171c }
@keyframes hx-drift { from { translate: 0 0 } to { translate: -3% 6% } }
/* Two scrims, not one: the upright one settles the wall into the page, and
   the sideways one gives the headline a dark field of its own. Without it a
   wide screen puts the type straight over other legible type — the words in
   the screenshots were competing with the words in the heading. */
.hx::after { content: ""; position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(90deg, rgba(7, 8, 10, .94) 0%, rgba(7, 8, 10, .88) 26%, rgba(11, 12, 15, .5) 46%, rgba(11, 12, 15, .12) 64%, rgba(11, 12, 15, .12) 100%),
  linear-gradient(0deg, #0b0c0f 5%, rgba(11, 12, 15, .55) 42%, rgba(11, 12, 15, .25) 70%, rgba(11, 12, 15, .82) 100%) }
.hx-pin { position: absolute; display: flex; align-items: center; gap: 10px; z-index: 1 }
.hx-pin i { width: 9px; height: 9px; border-radius: 50%; background: var(--cx-live); box-shadow: 0 0 0 5px rgba(116, 224, 166, .18); animation: hx-blink 2.4s ease-in-out infinite }
.hx-pin.b i { background: var(--cx-accent); box-shadow: 0 0 0 5px rgba(162, 155, 255, .2) }
.hx-pin span { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; color: #d9dce3; background: rgba(11, 12, 15, .72); border: 1px solid rgba(255, 255, 255, .14); padding: 5px 9px; border-radius: 4px; white-space: nowrap }
@keyframes hx-blink { 50% { opacity: .35 } }
.hx-body { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: end; padding-bottom: 72px }
.hx-eyebrow { margin: 0 0 18px; color: var(--cx-accent) }
.hx h1 { margin: 0; font-size: clamp(3rem, 7.4vw, 5.6rem); line-height: .98; font-weight: 600; letter-spacing: -.05em; color: #fff }
.hx-lead { margin: 22px 0 0; max-width: 600px; font-size: clamp(1.05rem, 1.5vw, 1.25rem) }
.hx-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px }
.hx-readout { margin: 0; font-family: var(--font-mono); font-size: 11.5px; line-height: 2; letter-spacing: .1em; color: var(--color-muted); text-align: right; text-transform: uppercase }
.hx-readout b { font-weight: 500; color: #fff } .hx-readout em { font-style: normal; color: var(--cx-live) }

/* ───────── 02 · a chapter: the photo that never leaves ───────── */
.cx-chapter { position: relative; min-height: 780px; display: flex; align-items: center; overflow: hidden }
/* The photo is a tall one, so it gets a frame of its own rather than half the
   window: stretched across 1140px of a wide screen, a head-and-shoulders
   portrait crops down to a forehead. The frame keeps to the right of the
   content column, so the picture and the words stay the same size to each
   other however wide the screen gets. */
.cx-chapter-media { position: absolute; top: 60px; bottom: 60px; right: max(24px, calc((100% - 1344px) / 2 + 48px));
  width: min(46%, 560px); border-radius: 20px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .1) }
.cx-chapter-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 14%; filter: saturate(.9) contrast(1.05) }
.cx-chapter-media::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11, 12, 15, .5) 0%, rgba(11, 12, 15, 0) 42%); z-index: 1 }
.cx-scan { position: absolute; left: 20%; top: 9%; width: 62%; height: 70%; border: 1px solid rgba(162, 155, 255, .55); z-index: 2 }
.cx-scan::before, .cx-scan::after { content: ""; position: absolute; width: 18px; height: 18px; border: 3px solid var(--cx-accent) }
.cx-scan::before { left: -6px; top: -6px; border-right: 0; border-bottom: 0 }
.cx-scan::after { right: -6px; bottom: -6px; border-left: 0; border-top: 0 }
.cx-scan-top, .cx-scan-foot { position: absolute; left: 0; font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap }
.cx-scan-top { top: -34px; color: #d9dce3; background: rgba(11, 12, 15, .7); border-radius: 4px; padding: 4px 8px; margin-left: -8px }
.cx-scan-foot { top: calc(100% + 14px); line-height: 1.9; color: #c9ccd4; background: rgba(11, 12, 15, .78); border: 1px solid rgba(255, 255, 255, .12); border-radius: 4px; padding: 6px 10px }
.cx-scan-foot b { color: #fff; font-weight: 500 } .cx-scan-foot em { font-style: normal; color: var(--cx-live) }
.cx-scan-line { position: absolute; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--cx-accent), transparent); top: 0; animation: cx-scan 4.5s ease-in-out infinite alternate; opacity: .8 }
@keyframes cx-scan { to { top: 100% } }
.cx-chapter-copy { position: relative; z-index: 3; width: min(560px, 44%); padding: 100px 0 }
.cx-chapter-copy .cx-mono { margin: 0 0 20px }
.cx-chapter-copy .cx-lead { margin: 24px 0 0 }
.cx-figs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin: 40px 0 32px; background: var(--cx-line); border: 1px solid var(--cx-line); border-radius: 12px; overflow: hidden }
.cx-figs div { background: #0f1014; padding: 18px 18px 16px }
.cx-figs b { display: block; font-size: 30px; font-weight: 700; letter-spacing: -.03em; color: #fff }
.cx-figs span { display: block; margin-top: 4px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--color-muted) }

/* ───────── 03 · one site, many jobs ───────── */
.cx-jobs { padding: 110px 0 100px }
.cx-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 40px }
.cx-head .cx-mono { margin: 0 0 18px }
.cx-head .cx-lead { margin: 0; max-width: 420px; color: var(--color-muted) }
.cx-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 56px }
.cx-card { display: flex; flex-direction: column; background: #111217; border: 1px solid var(--cx-line); border-radius: 18px; overflow: hidden; color: inherit; text-decoration: none; transition: transform .25s cubic-bezier(.2, .7, .2, 1), border-color .25s }
.cx-card:hover { transform: translateY(-4px); border-color: rgba(255, 255, 255, .22); text-decoration: none }
.cx-card-media { position: relative; aspect-ratio: 16 / 11; overflow: hidden }
.cx-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1) }
.cx-card:hover .cx-card-media img { transform: scale(1.05) }
.cx-card-media > span { position: absolute; left: 16px; top: 16px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: #fff; background: rgba(11, 12, 15, .72); border: 1px solid rgba(255, 255, 255, .18); padding: 5px 9px; border-radius: 4px }
.cx-card-body { padding: 26px 26px 28px; display: flex; flex-direction: column; gap: 10px; flex: 1 }
.cx-card h3 { margin: 0; font-size: 26px; font-weight: 600; letter-spacing: -.02em; color: #fff }
.cx-card p { margin: 0; font-size: 15.5px; line-height: 1.6; color: var(--color-muted) }
.cx-card small { margin-top: auto; padding-top: 8px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--cx-live) }

/* ───────── 04 · what gets done here ───────── */
.cx-done { padding: 90px 0 100px; border-top: 1px solid var(--cx-line) }
.cx-done-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; align-items: center }
.cx-outcomes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: clamp(1.8rem, 3.2vw, 2.75rem); font-weight: 600; letter-spacing: -.035em; line-height: 1.12; text-transform: uppercase }
.cx-outcomes li { color: rgba(237, 238, 242, .2); transition: color .5s }
.cx-outcomes li.near { color: rgba(237, 238, 242, .45) }
.cx-outcomes li.on { color: #fff }
.cx-done .cx-mono { margin: 0 0 18px }
.cx-done-text { margin: 0; font-size: clamp(1.35rem, 2.2vw, 1.9rem); line-height: 1.35; font-weight: 500; letter-spacing: -.02em; color: var(--color-ink) }
.cx-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 44px }
.cx-stats b { display: block; font-size: 44px; font-weight: 700; letter-spacing: -.04em; color: #fff; font-variant-numeric: tabular-nums }
.cx-stats span { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--color-muted) }

/* ───────── 06 · how it stays private ───────── */
.cx-private { padding: 90px 0; border-top: 1px solid var(--cx-line) }
.cx-private .cx-mono { margin: 0 0 40px }
.cx-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px }
.cx-cols > div { border-top: 1px solid var(--cx-accent); padding-top: 22px }
.cx-cols .cx-n { font-family: var(--font-mono); font-size: 11px; letter-spacing: .16em; color: var(--cx-accent) }
.cx-cols h3 { margin: 14px 0 10px; font-size: 24px; font-weight: 600; letter-spacing: -.02em; color: #fff }
.cx-cols p { margin: 0; font-size: 15.5px; line-height: 1.6; color: var(--color-muted) }

/* ───────── the tool index heading, above the shelf ───────── */
.idx-eyebrow { display: block; margin: 72px 0 10px; font-family: var(--font-mono); font-size: 11.5px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--color-muted) }

/* ───────── 07 · start ───────── */
.cx-start { position: relative; padding: 110px 0 120px; border-top: 1px solid var(--cx-line); background: #07080a; isolation: isolate }
.cx-start > img { position: absolute; right: -60px; top: -40px; width: min(760px, 60%); height: calc(100% + 80px); object-fit: cover; opacity: .32; transform: rotate(-6deg); z-index: -2 }
.cx-start::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #07080a 45%, rgba(7, 8, 10, .4) 100%) }
.cx-start-body { max-width: 760px }
.cx-start .cx-mono { display: block; margin: 40px 0 12px }
.cx-searchbtn { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 60px; box-sizing: border-box; padding: 0 12px 0 22px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .06); color: #b9bdc7; font: 500 17px var(--font-ui, Manrope), sans-serif; cursor: pointer; text-align: left }
.cx-searchbtn:hover { border-color: rgba(255, 255, 255, .5) }
.cx-searchbtn svg { width: 20px; height: 20px; flex: none }
.cx-searchbtn span { flex: 1 }
.cx-searchbtn b { background: #fff; color: #0b0c0f; border-radius: 999px; padding: 12px 24px; font-size: 16px }
.cx-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px }
.cx-chip { font-size: 13.5px; color: #c9ccd4; border: 1px solid rgba(255, 255, 255, .16); border-radius: 999px; padding: 8px 15px; text-decoration: none; min-height: 36px; box-sizing: border-box; display: inline-flex; align-items: center }
.cx-chip:hover { border-color: #fff; color: #fff; text-decoration: none }

/* ───────── appearing as you scroll ───────── */
.cx-reveal.pending { opacity: 0; transform: translateY(28px) }
.cx-reveal.pending.in { opacity: 1; transform: none; transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1) }
.cx-cards .cx-reveal:nth-child(2).in { transition-delay: .1s } .cx-cards .cx-reveal:nth-child(3).in { transition-delay: .2s }

@media (max-width: 1080px) {
  .cx-cards { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) }
  .cx-cards .cx-card:last-child { display: none }
}
@media (max-width: 900px) {
  .cx-wrap { padding: 0 24px }
  .hx-body { grid-template-columns: minmax(0, 1fr) }
  .hx-readout { text-align: left }
  .hx-pin.p2, .hx-pin.p3 { display: none }
  .cx-chapter { display: block; min-height: 0 }
  .cx-chapter-media { position: relative; inset: auto; width: min(100%, 440px); height: 540px; margin: 0 auto 8px }
  .cx-chapter-media::before { background: linear-gradient(0deg, rgba(11, 12, 15, .5) 0%, rgba(11, 12, 15, 0) 30%) }
  .cx-scan { left: 16%; width: 68%; top: 9%; height: 64% }
  .cx-scan-foot { display: none }
  .cx-chapter-copy { width: auto; padding: 0 0 60px }
  .cx-done-grid, .cx-cols { grid-template-columns: minmax(0, 1fr); gap: 36px }
}
@media (max-width: 640px) {
  .cx-wrap { padding: 0 16px }
  .hx { min-height: 720px }
  .hx-wall { left: -45%; top: -8%; width: 190%; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; opacity: .75; transform: rotate(-12deg); animation: none }
  .hx-wall img { border-radius: 10px }
  .hx::after { background: linear-gradient(0deg, #0b0c0f 30%, rgba(11, 12, 15, .6) 62%, rgba(11, 12, 15, .15) 100%) }
  .hx-pin.p1 { left: 16px !important; top: 48px !important }
  .hx-pin span { font-size: 10px }
  .hx-body { padding-bottom: 44px }
  .hx-ctas .cx-btn { flex: 1 1 100%; justify-content: center }
  .cx-jobs { padding: 64px 0 56px }
  .cx-cards { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 32px -16px 0; padding: 0 16px; gap: 12px }
  .cx-cards::-webkit-scrollbar { display: none }
  .cx-cards .cx-card, .cx-cards .cx-card:last-child { display: flex; flex: 0 0 82%; scroll-snap-align: start }
  .cx-card h3 { font-size: 21px }
  .cx-figs b { font-size: 24px }
  .cx-done, .cx-private { padding: 56px 0 }
  .cx-stats b { font-size: 34px }
  .cx-start { padding: 64px 0 72px }
  .cx-searchbtn b { display: none }
}
@media (prefers-reduced-motion: reduce) {
  .hx-wall, .hx-pin i, .cx-scan-line { animation: none }
  .cx-reveal.pending { opacity: 1; transform: none; transition: none }
  .cx-card, .cx-card-media img, .cx-outcomes li { transition: none }
}
@media print { .cine { display: none } }
