/* ============================================================
   Complete Custom Systems — site stylesheet  (v3 "Brand Film")
   Dark cinematic. Full-screen hero video, editorial serif,
   thin spaced capitals, warm near-black, brass accents.
   ============================================================ */

:root {
  --black: #0C0B09;          /* warm near-black */
  --black-2: #12100D;        /* raised panel */
  --bone: #F8FAFC;           /* primary text — CCS White */
  --mist: #9BA3AD;           /* secondary text — neutral grey */
  --brass: #FF6A00;          /* accent — CCS Orange */
  --brass-deep: #E25E00;     /* accent hover/pressed */
  --hair: rgba(248, 250, 252, 0.12);
  --hair-soft: rgba(248, 250, 252, 0.07);
  --serif: 'Saira Condensed', sans-serif;
  --sans: 'Saira Condensed', sans-serif;
  --max: 1280px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--bone);
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--brass); color: #fff; }

/* Keyboard focus — visible only for keyboard users, never on mouse click */
:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}
:focus:not(:focus-visible) { outline: none; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 36px; }
@media (max-width: 640px) { .wrap { padding: 0 22px; } }

/* ---------- Small caps label ---------- */
.label {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--mist);
}
.label.brass { color: var(--brass); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .4s ease, border-color .4s ease;
  border-bottom: 1px solid transparent;
}
.site-header.solid {
  background: rgba(12, 11, 9, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--hair-soft);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 104px; }
.nav-logo { flex: none; display: inline-flex; align-items: center; }
.nav-logo img { height: 48px; width: auto; max-width: none; opacity: 0.96; }
.nav-links { display: flex; align-items: center; gap: 44px; list-style: none; }
.nav-links a {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--mist);
  padding: 6px 0;
  position: relative;
  transition: color .25s;
}
.nav-links a::after {
  content: '';
  position: absolute; left: 0; right: 100%; bottom: 0;
  height: 1px; background: var(--brass);
  transition: right .3s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--bone); }
.nav-links a:hover::after, .nav-links a.active::after { right: 0; }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 44px; height: 44px; position: relative;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ''; display: block; position: absolute;
  width: 24px; height: 1.5px; background: var(--bone);
  left: 10px; transition: transform .2s;
}
.nav-toggle span { top: 21px; }
.nav-toggle span::before { top: -8px; left: 0; }
.nav-toggle span::after { top: 8px; left: 0; }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute; top: 92px; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: rgba(12, 11, 9, 0.97);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--hair-soft);
    padding: 10px 0 30px;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; text-align: center; }
  .nav-links a { display: inline-block; padding: 16px 0; }
}

/* ---------- Hero (video) ---------- */
.hero {
  position: relative;
  height: 100svh; min-height: 560px;
  overflow: hidden;
  background: var(--black);
}
.hero-stage { position: absolute; inset: 0; }
.hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0; z-index: 2;
  transition: opacity .35s ease; pointer-events: none;
}
.hero-copy {
  position: absolute; z-index: 5; right: 7%; top: 50%;
  transform: translateY(-50%) translateY(22px);
  max-width: 360px; opacity: 0; pointer-events: none;
  transition: opacity .8s ease, transform .8s ease;
  text-shadow: 0 2px 16px rgba(0,0,0,0.85);
}
.hero-copy .label { display: block; margin-bottom: 14px; }
.hero-copy p { font-size: 18px; line-height: 1.55; color: var(--bone); }
.hero.show-copy .hero-copy { opacity: 1; transform: translateY(-50%); pointer-events: auto; }
#heroActions {
  position: absolute; z-index: 6;
  transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; gap: 18px;
  opacity: 0; pointer-events: none; transition: opacity .4s ease;
  text-align: center; white-space: nowrap;
}
.hero.show-buttons #heroActions { opacity: 1; pointer-events: auto; }
@media (max-width: 760px) {
  .hero-copy { right: auto; left: 22px; top: auto; bottom: 11%; max-width: 80%; transform: translateY(20px); }
  .hero.show-copy .hero-copy { transform: translateY(0); }
}
.hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.85) saturate(0.9);
}
.hero-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block;
}
.hero-shade {
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(12,11,9,0.5) 0%, rgba(12,11,9,0) 18%, rgba(12,11,9,0) 66%, rgba(12,11,9,0.45) 100%);
}
.hero-points { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.hero-points li {
  position: relative; padding-left: 22px;
  font-size: 17px; line-height: 1.5; color: var(--bone);
}
.hero-points li::before {
  content: ''; position: absolute; left: 0; top: 10px;
  width: 8px; height: 8px; background: var(--brass); border-radius: 2px;
}
.hero-content { position: relative; z-index: 2; width: 100%; padding-bottom: 96px; }
.hero-content .label { margin-bottom: 30px; }
.hero h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(46px, 7vw, 104px);
  line-height: 1.04;
  letter-spacing: -0.01em;
  max-width: 1000px;
}
.hero h1 em { font-style: italic; font-weight: 340; color: var(--brass); }
.hero-sub {
  margin-top: 34px;
  max-width: 520px;
  font-size: 17.5px;
  color: var(--mist);
}
.hero-actions { display: flex; gap: 34px; align-items: center; margin-top: 44px; flex-wrap: wrap; }

.scroll-cue {
  position: absolute; bottom: 36px; right: 44px; z-index: 2;
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.34em; text-transform: uppercase;
  color: var(--mist);
  writing-mode: vertical-rl;
  display: flex; align-items: center; gap: 14px;
}
.scroll-cue::after {
  content: '';
  width: 1px; height: 56px;
  background: linear-gradient(to bottom, var(--brass), transparent);
  animation: cue 2.4s ease-in-out infinite;
}
@keyframes cue { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; } }
@media (max-width: 640px) { .scroll-cue { display: none; } }

/* ---------- Buttons / links ---------- */
.btn {
  display: inline-block;
  background: transparent;
  font-family: var(--sans);
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--bone);
  border: 1px solid rgba(248, 250, 252, 0.4);
  padding: 19px 42px;
  transition: border-color .3s, background .3s, color .3s;
}
.btn:hover { border-color: var(--brass); background: var(--brass); color: #fff; }
.btn.solid { background: var(--bone); border-color: var(--bone); color: var(--black); }
.btn.solid:hover { background: var(--brass); border-color: var(--brass); color: #fff; }

.text-link {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--bone);
  border-bottom: 1px solid rgba(248, 250, 252, 0.35);
  padding-bottom: 6px;
  transition: color .25s, border-color .25s;
}
.text-link:hover { color: var(--brass); border-bottom-color: var(--brass); }

/* ---------- Sections ---------- */
.section { padding: 150px 0; }
.section.tight { padding: 110px 0; }
.section.panel { background: var(--black-2); border-top: 1px solid var(--hair-soft); border-bottom: 1px solid var(--hair-soft); }

.sec-label { display: flex; align-items: center; gap: 22px; margin-bottom: 44px; }
.sec-label::after { content: ''; flex: 1; height: 1px; background: var(--hair-soft); }

.statement {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(32px, 4.4vw, 58px);
  line-height: 1.06;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  text-wrap: balance;
  max-width: 980px;
}
.statement em { font-style: normal; color: var(--brass); }

/* Sub-page intro section (first block under the fixed header) */
.page-intro { padding-top: 230px; }
.page-intro .statement { font-size: clamp(38px, 5.2vw, 72px); }

/* Visually hidden, kept for screen readers / SEO */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.lead {
  margin-top: 30px;
  font-size: 18px;
  color: var(--mist);
  max-width: 640px;
}

/* ---------- Numbered index rows ---------- */
.index { margin-top: 76px; border-top: 1px solid var(--hair); }
.index-row {
  display: grid;
  grid-template-columns: 110px 360px 1fr;
  gap: 40px;
  align-items: baseline;
  padding: 44px 0;
  border-bottom: 1px solid var(--hair);
  transition: padding-left .35s ease;
}
.index-row:hover { padding-left: 14px; }
.index-row .no {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.08em;
  color: var(--brass);
}
.index-row h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 21px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.25;
}
.index-row p { color: var(--mist); font-size: 16.5px; max-width: 560px; }
@media (max-width: 900px) {
  .index-row { grid-template-columns: 64px 1fr; }
  .index-row p { grid-column: 2; }
}

/* ---------- Pillars (2-col editorial) ---------- */
.pillars {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--hair);
  border-left: 1px solid var(--hair);
  margin-top: 76px;
}
.pillar {
  border-right: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
  padding: 56px 48px 60px;
}
.pillar .label { display: block; margin-bottom: 26px; }
.pillar h3 {
  font-family: var(--serif);
  font-weight: 600; font-size: 23px; line-height: 1.2;
  letter-spacing: 0.05em; text-transform: uppercase;
  margin-bottom: 16px;
}
.pillar p { color: var(--mist); font-size: 16.5px; }
.pillar ul { margin-top: 22px; list-style: none; }
.pillar ul li {
  color: var(--mist); font-size: 15.5px;
  padding: 10px 0;
  border-top: 1px solid var(--hair-soft);
}
.pillar ul li::before { content: '·  '; color: var(--brass); }
@media (max-width: 800px) {
  .pillars { grid-template-columns: 1fr; }
  .pillar { padding: 44px 30px 48px; }
}

/* ---------- Journey line (lifecycle) ---------- */
.journey { margin-top: 86px; position: relative; }
.journey-line {
  position: absolute; top: 5px; left: 0; right: 0;
  height: 1px; background: var(--hair);
}
.journey-steps {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px;
}
.journey-step { position: relative; padding-top: 34px; }
.journey-step::before {
  content: '';
  position: absolute; top: 0; left: 0;
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--black);
  border: 1px solid var(--mist);
}
.journey-step.lit::before { background: var(--brass); border-color: var(--brass); }
.journey-step .label { display: block; margin-bottom: 8px; letter-spacing: 0.22em; }
.journey-step h3 {
  font-family: var(--serif); font-weight: 600;
  font-size: 16px; letter-spacing: 0.1em; text-transform: uppercase;
}
@media (max-width: 900px) {
  .journey-line { display: none; }
  .journey-steps { grid-template-columns: repeat(2, 1fr); gap: 0; border-top: 1px solid var(--hair); }
  .journey-step { padding: 26px 0 26px 28px; border-bottom: 1px solid var(--hair); }
  .journey-step::before { top: 33px; }
}

/* ---------- Stages (roman) ---------- */
.acts { margin-top: 76px; border-top: 1px solid var(--hair); }
.act {
  display: grid; grid-template-columns: 180px 1fr; gap: 48px;
  padding: 58px 0;
  border-bottom: 1px solid var(--hair);
}
.act-no {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 54px; line-height: 1;
  color: var(--brass);
}
.act h3 {
  font-family: var(--serif); font-weight: 600;
  font-size: 23px; letter-spacing: 0.05em; text-transform: uppercase;
  margin-bottom: 14px;
}
.act p { color: var(--mist); max-width: 660px; font-size: 16.5px; }
.act .label { display: block; margin-bottom: 14px; }
@media (max-width: 700px) { .act { grid-template-columns: 1fr; gap: 14px; } }

/* ---------- Quote / manifesto ---------- */
.manifesto {
  text-align: center;
  max-width: 880px; margin: 0 auto;
}
.manifesto .label { display: block; margin-bottom: 40px; }
.manifesto p {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.22;
  letter-spacing: 0.015em;
  text-transform: uppercase;
  text-wrap: balance;
}
.manifesto p em { font-style: normal; color: var(--brass); }

/* ---------- CTA ---------- */
.cta {
  position: relative;
  padding: 170px 0;
  text-align: center;
  border-top: 1px solid var(--hair-soft);
  overflow: hidden;
}
.cta-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.42);
}
.cta::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(12,11,9,0.55) 0%, rgba(12,11,9,0.2) 70%);
  pointer-events: none;
}
.cta-inner { position: relative; z-index: 2; }
.cta .label { display: block; margin-bottom: 34px; }
.cta h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(34px, 4.8vw, 66px);
  line-height: 1.05;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  text-wrap: balance;
  max-width: 880px; margin: 0 auto;
}
.cta h2 em { font-style: normal; color: var(--brass); }
.cta .btn { margin-top: 54px; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--hair-soft);
  padding: 90px 0 56px;
  background: var(--black);
}
.footer-grid {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 44px; flex-wrap: wrap;
  padding-bottom: 64px;
  border-bottom: 1px solid var(--hair-soft);
}
.footer-grid img { height: 64px; width: auto; opacity: 0.92; }
.footer-col .label { display: block; margin-bottom: 22px; }
.footer-col ul { list-style: none; display: grid; gap: 12px; }
.footer-col a, .footer-col span {
  font-size: 14px; color: var(--mist);
  transition: color .2s;
}
.footer-col a:hover { color: var(--bone); }
.footer-base {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px;
  padding-top: 30px;
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(163, 155, 143, 0.6);
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 90px;
  align-items: start;
  margin-top: 76px;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 64px; } }

.contact-line {
  display: grid; grid-template-columns: 120px 1fr; gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--hair);
  align-items: baseline;
}
.contact-line .label { letter-spacing: 0.26em; }
.contact-line a, .contact-line span:not(.label) { font-size: 17px; color: var(--bone); overflow-wrap: anywhere; }
.contact-line a { border-bottom: 1px solid var(--brass); padding-bottom: 3px; }
.contact-line a:hover { color: var(--brass); }

.form { display: grid; gap: 34px; }
.form label { display: block; margin-bottom: 14px; }
.form input, .form textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--hair);
  padding: 10px 2px 14px;
  color: var(--bone);
  font-family: var(--sans);
  font-size: 17px;
  border-radius: 0;
  transition: border-color .25s;
}
.form input:focus, .form textarea:focus { outline: none; border-bottom-color: var(--brass); }
.form textarea { min-height: 130px; resize: vertical; }
.form button { cursor: pointer; margin-top: 6px; justify-self: start; }
.form .hint { font-size: 13px; color: var(--mist); letter-spacing: 0.02em; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scroll-cue::after { animation: none; }
  .hero-video, .cta-video { display: none; }
  .hero { background: var(--black-2); }
}

/* ---------- Full-width photo band ---------- */
.photo-band {
  height: 56vh; min-height: 340px;
  background: center / cover no-repeat #15130f;
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
}
.photo-band.web { background-image: url('web-band.jpg'); }
@media (max-width: 760px) { .photo-band { height: 40vh; min-height: 240px; } }

/* ---------- What we tailor (Systems page) ---------- */
.tailor { position: relative; background: var(--black); }
.tailor-photo {
  height: 56vh; min-height: 340px;
  display: flex;
  background: #15130f;
  border-bottom: 1px solid var(--hair);
}
.tailor-pane { flex: 1; }
.pane-cnc {
  background:
    url('cnc-band.jpg') center / cover no-repeat,
    #15130f;
  border-right: 1px solid var(--hair);
}
.pane-mine { background: url('mine-band.jpg') center / cover no-repeat, #15130f; }
.tailor .wrap { padding-top: 96px; padding-bottom: 110px; }
.tailor-range {
  margin-top: 54px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 46px 64px;
}
.range-item .no {
  display: block; font-size: 13px; letter-spacing: 0.2em;
  color: var(--brass); font-weight: 600; margin-bottom: 12px;
}
.range-item h3 {
  font-family: var(--serif); font-weight: 600; font-size: 20px;
  letter-spacing: 0.05em; text-transform: uppercase;
  margin-bottom: 10px;
}
.range-item p { color: var(--mist); font-size: 16.5px; line-height: 1.6; max-width: 460px; }
@media (max-width: 760px) {
  .tailor-range { grid-template-columns: 1fr; gap: 36px; }
  .tailor-photo { height: 52vh; min-height: 320px; flex-direction: column; }
  .pane-cnc { border-right: 0; border-bottom: 1px solid var(--hair); }
}

/* ---------- Collaboration ("how we work") ---------- */
.collab {
  position: relative; min-height: 88vh;
  display: flex; align-items: center; overflow: hidden;
  background: var(--black);
}
.collab-bg {
  position: absolute; inset: 0;
  background: url('collab-bg.jpg') center / cover no-repeat;
  filter: blur(8px) brightness(0.75);
  transform: scale(1.06); /* hides the soft edges the blur creates */
}
.collab-shade {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(12,11,9,0.92) 0%, rgba(12,11,9,0.55) 50%, rgba(12,11,9,0.2) 100%);
}
.collab .wrap {
  position: relative; z-index: 2;
  display: flex; justify-content: flex-start;
  max-width: none; padding: 0 44px; /* let the panel sit hard left of the viewport */
}
.collab-copy {
  max-width: 500px;
  background: rgba(12, 11, 9, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--hair);
  border-left: 3px solid var(--brass);
  padding: 46px 44px 50px;
}
.collab-copy .label { display: block; margin-bottom: 18px; }
.collab-copy h2 {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(26px, 3.2vw, 40px); line-height: 1.08; letter-spacing: 0.01em;
  text-transform: uppercase; text-wrap: balance;
  margin-bottom: 22px;
}
.collab-copy h2 em { font-style: normal; color: var(--brass); }
.collab-copy p { color: var(--mist); font-size: 17px; line-height: 1.6; }
@media (max-width: 760px) {
  .collab-shade { background: linear-gradient(to top, rgba(12,11,9,0.94) 0%, rgba(12,11,9,0.55) 55%, rgba(12,11,9,0.4) 100%); }
  .collab .wrap { justify-content: flex-start; padding: 0 18px; }
  .collab-copy { max-width: none; padding: 34px 26px 38px; }
}

/* ---------- Paper-invoice rip (scroll) ---------- */
.rip { position: relative; height: 220vh; background: var(--black); }
.rip-stage {
  position: sticky; top: 0; height: 100vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.rip-stage::before {
  content: ''; position: absolute; width: 820px; height: 820px;
  background: radial-gradient(closest-side, rgba(255,255,255,0.05), rgba(255,255,255,0) 70%);
  filter: blur(10px); pointer-events: none;
}
.rip-seam {
  position: absolute; top: 50%; left: 50%;
  width: 2px; height: 580px; transform: translate(-50%, -50%);
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.18) 50%, transparent);
  opacity: calc(1 - var(--p, 0)); pointer-events: none;
}
.rip-scene { position: relative; width: 440px; height: 600px; }
.invoice-stack { position: absolute; inset: 0; transform: translateY(calc(var(--p, 0) * -10px)); }
.stack-sheet { position: absolute; inset: 0; filter: drop-shadow(0 16px 28px rgba(0,0,0,0.5)) brightness(0.96); }
.invoice-half {
  position: absolute; inset: 0; will-change: transform; z-index: 2;
  filter: drop-shadow(0 24px 40px rgba(0,0,0,0.55));
}
.invoice-half.left {
  transform: translateX(calc(var(--p, 0) * -150px))
             translateY(calc(var(--p2, 0) * 36px))
             rotate(calc(var(--p, 0) * -4deg));
}
.invoice-half.right {
  transform: translateX(calc(var(--p, 0) * 150px))
             translateY(calc(var(--p2, 0) * 36px))
             rotate(calc(var(--p, 0) * 4deg));
}

.invoice {
  width: 440px; height: 600px; box-sizing: border-box;
  padding: 32px 32px; border-radius: 2px;
  background:
    repeating-linear-gradient(0deg, rgba(0,0,0,0.012) 0 1px, transparent 1px 3px),
    linear-gradient(135deg, #fefefe, #f1f3f6);
  color: #16181d; display: flex; flex-direction: column;
}
.inv-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  border-bottom: 2px solid #1f2a37; padding-bottom: 16px;
}
.inv-brand-row { display: flex; align-items: center; gap: 9px; }
.inv-mark {
  width: 30px; height: 30px; border-radius: 7px; flex: none;
  background: linear-gradient(135deg, #4a6c8c, #2f4a63);
  filter: blur(2px);
}
.inv-co {
  font-size: 19px; font-weight: 800; letter-spacing: 0.01em; color: #1f2a37;
  filter: blur(5px); -webkit-user-select: none; user-select: none;
}
.inv-abn { display: block; margin-top: 7px; font-size: 10px; letter-spacing: 0.12em; color: #9aa0a8; }
.inv-meta { text-align: right; }
.inv-word { display: block; font-size: 20px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: #1f2a37; }
.inv-no { font-size: 12px; letter-spacing: 0.06em; color: #8a8f98; }
.inv-rowmeta { display: flex; gap: 28px; margin-top: 16px; }
.inv-rowmeta > div { display: flex; flex-direction: column; gap: 3px; }
.inv-k { font-size: 9.5px; letter-spacing: 0.22em; text-transform: uppercase; color: #9aa0a8; }
.inv-v2 { font-size: 13px; color: #3a3f47; }
.inv-billto { margin-top: 16px; display: flex; flex-direction: column; gap: 4px; }
.inv-v { font-size: 15px; font-weight: 600; color: #16181d; }
.inv-lines { margin-top: 18px; }
.inv-lh, .inv-line { display: grid; grid-template-columns: 1fr 34px 92px; align-items: center; }
.inv-lh { font-size: 9.5px; letter-spacing: 0.16em; text-transform: uppercase; color: #aab0b8; padding-bottom: 8px; border-bottom: 1px solid #e0e3e8; }
.inv-lh span:nth-child(2), .inv-line span:nth-child(2) { text-align: center; }
.inv-lh span:last-child, .inv-line span:last-child { text-align: right; }
.inv-line { font-size: 14px; padding: 9px 0; border-bottom: 1px solid #eceef2; color: #3a3f47; }
.inv-line span:last-child { color: #16181d; }
.inv-totals { margin-top: 10px; }
.inv-line.sub { border: none; padding: 3px 0; font-size: 12.5px; color: #8a8f98; }
.inv-line.total {
  border: none; border-top: 2px solid #1f2a37;
  margin-top: 8px; padding-top: 12px; font-size: 19px; font-weight: 800; color: #16181d;
}
.inv-line.total span:last-child { color: #2f4a63; }
.inv-pay { margin-top: auto; padding-top: 16px; font-size: 9.5px; letter-spacing: 0.1em; color: #aab0b8; text-align: center; }

@media (max-width: 560px) { .rip-scene { transform: scale(0.72); } }

@media (prefers-reduced-motion: reduce) {
  .rip { height: auto; }
  .rip-stage { position: static; height: auto; padding: 120px 0; }
  .rip-seam { display: none; }
}

/* ---------- Desk + paper-slap (plays on scroll into view) ---------- */
.desk { position: relative; height: 100vh; min-height: 560px; overflow: hidden; background: var(--black); }
.desk-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block; background: var(--black);
}
.desk-copy {
  position: absolute; z-index: 3; right: 8%; top: 50%;
  transform: translateY(-50%) translateY(20px);
  max-width: 360px;
  opacity: 0; transition: opacity .9s ease, transform .9s ease;
  text-shadow: 0 2px 16px rgba(0,0,0,0.75);
}
.desk-copy .label { display: block; margin-bottom: 14px; }
.desk-copy p { font-size: 18px; line-height: 1.55; color: var(--bone); }
.desk.show-copy .desk-copy { opacity: 1; transform: translateY(-50%); }
@media (max-width: 760px) {
  .desk-copy { right: auto; left: 22px; top: auto; bottom: 9%; max-width: 80%;
    transform: translateY(20px); }
  .desk.show-copy .desk-copy { transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .desk-copy { opacity: 1; transform: translateY(-50%); transition: none; }
}
.desk-bg {
  position: absolute; inset: 0;
  background: url('studio-band.jpg') center / cover no-repeat;
  will-change: transform;
}
.desk-stack {
  position: absolute; width: 24%;
  transform: translate(-50%, -50%) translateY(-78vh) rotate(-9deg) scale(1.05);
  transform-origin: 50% 100%; opacity: 0;
  filter: drop-shadow(0 18px 24px rgba(0,0,0,0.55));
  will-change: transform, opacity; pointer-events: none;
}
.desk-shadow {
  position: absolute;
  background: radial-gradient(ellipse, rgba(0,0,0,0.7), rgba(0,0,0,0) 72%);
  transform: translate(-50%, -50%) scale(0.2);
  opacity: 0; pointer-events: none; filter: blur(2px);
}
.desk.slam .desk-stack  { animation: stackSlap 0.72s cubic-bezier(.22,.7,.3,1) forwards; }
.desk.slam .desk-shadow { animation: shadowSlap 0.72s cubic-bezier(.22,.7,.3,1) forwards; }
.desk.slam .desk-bg     { animation: deskJolt 0.72s ease-out; }

@keyframes stackSlap {
  0%   { transform: translate(-50%,-50%) translateY(-78vh) rotate(-9deg) scale(1.05); opacity: 0; }
  30%  { opacity: 1; }
  54%  { transform: translate(-50%,-50%) translateY(0) rotate(0deg) scale(1); opacity: 1; }
  66%  { transform: translate(-50%,-50%) translateY(-13px) rotate(0.6deg) scale(1); }
  80%  { transform: translate(-50%,-50%) translateY(0) rotate(0deg) scale(1.02, 0.98); }
  100% { transform: translate(-50%,-50%) translateY(0) rotate(0deg) scale(1); opacity: 1; }
}
@keyframes shadowSlap {
  0%, 42% { transform: translate(-50%,-50%) scale(0.2); opacity: 0; }
  54%     { transform: translate(-50%,-50%) scale(1.1); opacity: 0.92; }
  70%     { transform: translate(-50%,-50%) scale(0.92); opacity: 0.7; }
  100%    { transform: translate(-50%,-50%) scale(1); opacity: 0.8; }
}
@keyframes deskJolt {
  0%, 50% { transform: translateY(0); }
  56%     { transform: translateY(5px); }
  64%     { transform: translateY(0); }
  100%    { transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .desk-stack  { transform: translate(-50%,-50%); opacity: 1; animation: none; }
  .desk-shadow { transform: translate(-50%,-50%) scale(1); opacity: 0.8; animation: none; }
  .desk.slam .desk-stack, .desk.slam .desk-shadow, .desk.slam .desk-bg { animation: none; }
}
