/* parthships — shared content components + the home hero. Loaded after site.css. */

/* section header: mono label + big display heading */
.sec-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.sec-head .label { display: block; margin-bottom: 20px; }
.sec-head h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); letter-spacing: -0.035em; }
.sec-head p.lede { font-size: clamp(1.05rem, 1.8vw, 1.3rem); color: var(--muted); margin-top: 22px; }

/* tech chips */
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.02em; color: var(--muted);
  border: 1px solid var(--line); padding: 5px 10px; white-space: nowrap; }

/* service rows — a ledger, not a bento grid */
.svc { border-top: 1px solid var(--line); }
.svc .row { display: grid; grid-template-columns: 54px 1fr 1.1fr; gap: clamp(20px,4vw,56px);
  padding: clamp(28px,4vw,46px) 0; border-bottom: 1px solid var(--line); align-items: start; transition: background .3s; }
.svc .row:hover { background: rgba(195,236,72,.03); }
.report .svc .row:hover { background: rgba(95,122,14,.05); }
.svc .num { font-family: var(--mono); font-size: 0.82rem; color: var(--lime); padding-top: 6px; }
.report .svc .num { color: var(--lime-deep); }
.svc .row.minor .num { color: var(--faint); }
.svc h3 { font-size: clamp(1.4rem, 2.6vw, 2.1rem); letter-spacing: -0.03em; }
.svc h3 .sub { display:block; font-family: var(--mono); font-weight:400; font-size:0.72rem; letter-spacing:0.14em;
  text-transform:uppercase; color:var(--faint); margin-top:12px; }
.svc .body { color: var(--muted); }
.svc .body p { margin-bottom: 18px; }
@media (max-width: 760px){ .svc .row { grid-template-columns: 40px 1fr; } .svc .body { grid-column: 1 / -1; } }

/* process steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.steps .step { background: var(--bg); padding: clamp(26px,3vw,40px); }
.report .steps .step { background: var(--doc-bg); }
.steps .step .k { font-family: var(--mono); font-size: 0.78rem; color: var(--lime); margin-bottom: 20px; display:block; }
.report .steps .step .k { color: var(--lime-deep); }
.steps .step h3 { font-size: 1.3rem; margin-bottom: 12px; letter-spacing: -0.02em; }
.steps .step p { color: var(--muted); font-size: 0.96rem; margin: 0; }
@media (max-width: 760px){ .steps { grid-template-columns: 1fr; } }

/* diagnosis report block */
.diag { border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); }
.diag .dhead { display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 22px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 0.8rem; flex-wrap: wrap; }
.diag .dhead .meta { color: var(--faint); }
.diag .health { display: inline-flex; align-items: baseline; gap: 8px; }
.diag .health b { font-family: var(--disp); font-size: 1.5rem; color: var(--ember); letter-spacing: -0.02em; }
.diag .health .mx { color: var(--faint); font-size: 0.78rem; }
.diag .issue { display: grid; grid-template-columns: 58px 1fr; gap: 18px; padding: 20px 22px; border-bottom: 1px solid var(--line-soft); }
.diag .issue:last-child { border-bottom: 0; }
.diag .sev { font-family: var(--mono); font-size: 0.66rem; font-weight: 600; letter-spacing: 0.08em; padding: 3px 0; height: fit-content; }
.diag .sev.high { color: var(--ember); }
.diag .sev.med { color: #e7a13a; }
.diag .sev.low { color: var(--muted); }
.diag .issue h4 { font-family: var(--body); font-weight: 600; font-size: 1rem; margin-bottom: 6px; letter-spacing: 0; }
.diag .issue p { color: var(--muted); font-size: 0.92rem; margin: 0; }
.diag .dfoot { padding: 14px 22px; font-family: var(--mono); font-size: 0.72rem; color: var(--faint); background: rgba(0,0,0,.15); }
.report .diag .dfoot { background: rgba(40,34,20,.04); }

/* work / case cards */
.cases { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.cases .case { background: var(--bg); padding: clamp(28px,3.4vw,44px); display: flex; flex-direction: column; min-height: 320px; transition: background .3s; }
.cases .case:hover { background: var(--surface); }
.cases .case .tool { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--lime); margin-bottom: 20px; }
.cases .case h3 { font-size: clamp(1.4rem,2.3vw,1.85rem); letter-spacing: -0.03em; margin-bottom: 14px; }
.cases .case p { color: var(--muted); font-size: 0.98rem; flex: 1; }
.cases .case .outcome { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 0.82rem; }
.cases .case .outcome .ok { color: var(--lime); }
@media (max-width: 760px){ .cases { grid-template-columns: 1fr; } }

/* figure / big-number readout */
.figures { display: grid; grid-template-columns: repeat(3,1fr); gap: clamp(20px,4vw,48px); }
.figures .fig .v { font-family: var(--disp); font-size: clamp(2.6rem,5vw,4rem); letter-spacing: -0.04em; line-height: 1; }
.figures .fig .v .u { font-size: 0.42em; color: var(--lime); margin-left: 4px; }
.figures .fig .k { font-family: var(--mono); font-size: 0.78rem; color: var(--muted); margin-top: 14px; max-width: 24ch; }
@media (max-width: 680px){ .figures { grid-template-columns: 1fr; gap: 28px; } }

/* prose for reading pages (about) */
.prose p { color: var(--muted); font-size: 1.12rem; line-height: 1.7; margin-bottom: 1.3em; max-width: 64ch; }
.prose p b { color: var(--ink); font-weight: 600; }
.prose p .hl { color: var(--lime); }
.report .prose p .hl { color: var(--lime-deep); font-weight: 600; }

/* ============ hero (home) ============ */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end;
  padding: 120px 0 clamp(48px,7vw,84px); overflow: hidden; }
#hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(16,18,22,.55) 0%, rgba(16,18,22,0) 26%, rgba(16,18,22,.1) 55%, rgba(16,18,22,.9) 100%); }
.hero .wrap { position: relative; z-index: 2; width: 100%; }
.hero .eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono);
  font-size: 0.76rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 26px; }
.hero .eyebrow .pip { width: 8px; height: 8px; background: var(--lime); border-radius: 50%; }
.hero h1 { font-size: clamp(2.6rem, 7.6vw, 6.4rem); line-height: 0.95; letter-spacing: -0.045em; max-width: 15ch; }
.hero h1 em { font-style: normal; color: var(--lime); }
.hero .lead { font-size: clamp(1.1rem, 1.9vw, 1.4rem); color: var(--ink); max-width: 46ch; margin: 28px 0 34px; }
.hero .lead b { color: var(--lime); font-weight: 600; }
.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero .reel { display: inline-flex; align-items: center; gap: 12px; background: none; border: 0; color: var(--ink);
  font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer; padding: 8px; }
.hero .reel .ring { width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center;
  transition: border-color .25s, transform .25s var(--e-out); }
.hero .reel:hover .ring { border-color: var(--lime); transform: scale(1.06); }
.hero .reel .ring svg { fill: var(--lime); margin-left: 2px; }

.hero .readout { position: absolute; right: var(--gut); bottom: clamp(48px,7vw,84px); z-index: 2;
  font-family: var(--mono); font-size: 0.74rem; text-align: right; color: var(--faint); }
.hero .readout .big { font-family: var(--disp); font-size: 2.4rem; letter-spacing: -0.03em; color: var(--ember); transition: color .4s; display:block; }
.hero .readout[data-state="fixed"] .big { color: var(--lime); }
.hero .readout .st { display: inline-flex; align-items: center; gap: 7px; margin-top: 6px; }
.hero .readout .st i { width: 7px; height: 7px; border-radius: 50%; background: var(--ember); }
.hero .readout[data-state="fixed"] .st i { background: var(--lime); }
@media (max-width: 720px){ .hero .readout { display: none; } }

.scrollcue { position: absolute; left: var(--gut); bottom: 26px; z-index: 2; font-family: var(--mono);
  font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint);
  display: inline-flex; align-items: center; gap: 10px; }
.scrollcue .ln { width: 1px; height: 30px; background: linear-gradient(var(--lime), transparent); animation: cue 2.2s ease-in-out infinite; transform-origin: top; }
@keyframes cue { 0%,100%{ transform: scaleY(.4); opacity:.5 } 50%{ transform: scaleY(1); opacity:1 } }

/* logos strip */
.rescued { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.rescued .row { display: flex; align-items: center; gap: clamp(20px,4vw,52px); flex-wrap: wrap; justify-content: center;
  padding: 26px var(--gut); font-family: var(--disp); font-weight: 600; font-size: clamp(1rem,2vw,1.35rem); color: var(--faint); letter-spacing: -0.02em; }
.rescued .row .lbl { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--lime); font-weight: 500; }
.rescued .row b { color: var(--muted); font-weight: 600; transition: color .25s; }
.rescued .row b:hover { color: var(--ink); }

/* reel modal */
.reel-modal { position: fixed; inset: 0; z-index: 90; display: none; align-items: center; justify-content: center;
  background: rgba(8,9,12,.92); backdrop-filter: blur(8px); padding: var(--gut); }
.reel-modal.open { display: flex; }
.reel-modal .box { max-width: 760px; width: 100%; border: 1px solid var(--line); background: var(--surface); }
.reel-modal .bar { display:flex; justify-content: space-between; align-items:center; padding: 14px 18px; border-bottom:1px solid var(--line); font-family:var(--mono); font-size:0.76rem; color: var(--muted); }
.reel-modal .bar button { background:none;border:0;color:var(--ink);font-size:1.3rem;cursor:pointer;line-height:1; }
.reel-modal .body { padding: clamp(28px,4vw,48px); }
.reel-modal .body p { color: var(--muted); }

/* page hero for inner pages (no webgl) */
.page-hero { padding: clamp(130px,16vw,210px) 0 clamp(50px,7vw,90px); border-bottom: 1px solid var(--line); position: relative; }
.page-hero h1 { font-size: clamp(2.6rem, 7vw, 5.4rem); letter-spacing: -0.045em; max-width: 16ch; }
.page-hero .label { display:block; margin-bottom: 24px; }
.page-hero p { color: var(--muted); font-size: clamp(1.05rem,1.8vw,1.3rem); margin-top: 26px; max-width: 56ch; }
