/* Set Life Kit — Tue Nov 10 daily: hero + tool cards
   Design Read: focused preserve-mode upgrade of the live homepage hero and tool
   listings, for working film crew, with a call-sheet craft language
   (ink #0B0C0E / chalk #EDEBE6 / tungsten #F2A65A), leaning toward production
   paperwork on ink — not a SaaS dark-hero refresh.
   Dials: VARIANCE 5 / MOTION 4 / DENSITY 5
   Overlay after call-sheet-look.css. Do not edit v4.css or call-sheet-look.css.
*/

:root{
  --sans:'Barlow',system-ui,-apple-system,sans-serif;
  --display:'Barlow Condensed',var(--sans);
  --serif:'Source Serif 4',Georgia,'Times New Roman',serif;
  --mono:'JetBrains Mono',ui-monospace,monospace;
  --paper:#EDEBE6;
  --paper-2:#E2DDD4;
  --ink-soft:#3F3C38; /* warm, not gray */
  --rule:rgba(11,12,14,.16);
  --grain:url(img/paper-grain.webp);
}

html{font-family:var(--sans)}
/* Grain lives only on paper surfaces, at low opacity — never over the hero photo. */

/* ---------- Hero: call-sheet panel over the rig, photo stays visible ---------- */
.hero-media::after{
  background:
    linear-gradient(90deg,rgba(11,12,14,.55) 0%,rgba(11,12,14,.18) 52%,rgba(11,12,14,.08) 100%),
    linear-gradient(0deg,var(--ink) 0%,rgba(11,12,14,.35) 28%,rgba(11,12,14,0) 55%);
}
.kicker{display:none!important} /* craft-floor ban: no eyebrow above the heading */

.hero-copy{
  position:relative;
  z-index:2;
  max-width:36rem;
  margin:0 var(--pad) clamp(40px,8vh,88px);
  padding:28px 32px 30px;
  background:var(--paper);
  color:var(--ink);
  box-shadow:0 14px 36px -18px rgba(11,12,14,.85), 0 1px 0 rgba(11,12,14,.2);
}
.hero-copy::after,
.dept::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background-image:var(--grain);
  background-size:180px 180px;
  opacity:.10;
  mix-blend-mode:multiply;
}
.hero-copy::before{
  content:"";
  display:block;
  height:3px;
  margin:-28px -32px 22px;
  background:
    linear-gradient(var(--ink),var(--ink)) 0 0/100% 1px no-repeat,
    linear-gradient(var(--ink),var(--ink)) 0 3px/100% 1px no-repeat,
    var(--or);
}
.hero h1{
  font-family:var(--display);
  font-weight:800;
  font-size:clamp(40px,5.4vw,76px);
  line-height:.98;
  letter-spacing:-.02em;
  color:var(--ink);
  text-wrap:balance;
  max-width:16ch;
}
.hero h1::after{
  content:"";
  display:block;
  width:56px;
  height:3px;
  margin-top:18px;
  background:var(--or);
  transform:skewX(-12deg);
}
.lede{
  font-family:var(--serif);
  font-size:clamp(16px,1.25vw,19px);
  line-height:1.45;
  color:#2C2A27;
  max-width:42ch;
  margin-top:18px;
}
.hero .btn{box-shadow:0 6px 16px -8px rgba(11,12,14,.55)}
.hero .link{color:var(--ink);text-decoration-color:rgba(11,12,14,.35)}
.hero .link:hover{text-decoration-color:var(--ink)}
.credit{color:#D4CFC6;z-index:2}

@media (max-width:860px){
  .hero{min-height:100svh}
  .hero-media img{object-position:62% 38%}
  .hero-media::after{
    background:
      linear-gradient(0deg,var(--ink) 0%,rgba(11,12,14,.2) 36%,rgba(11,12,14,.15) 100%);
  }
  .hero-copy{
    margin:0 16px 56px;
    padding:22px 20px 24px;
    max-width:none;
  }
  .hero-copy::before{margin:-22px -20px 18px}
  .hero-copy{padding-bottom:24px}
  .credit{left:16px;bottom:12px}
}

/* ---------- Tools: each department is a chalk call sheet; each row is a card ---------- */
.tools h2{
  font-family:var(--display);
  font-weight:800;
  letter-spacing:-.01em;
}
.tools .sub{color:#D4CFC6}

.dept{
  display:block;
  position:relative;
  background:var(--paper);
  color:var(--ink);
  padding:28px 28px 22px;
  margin:28px 0 0;
  border-bottom:0;
  box-shadow:0 12px 28px -16px rgba(11,12,14,.7);
}
.dept + .dept{margin-top:22px}
.dept::before{
  content:"";
  display:block;
  height:3px;
  margin:-28px -28px 22px;
  background:
    linear-gradient(var(--ink),var(--ink)) 0 0/100% 1px no-repeat,
    linear-gradient(var(--ink),var(--ink)) 0 3px/100% 1px no-repeat,
    var(--or);
}
.dept-head{
  display:flex;
  flex-wrap:wrap;
  align-items:baseline;
  gap:8px 18px;
  margin-bottom:18px;
  padding-bottom:14px;
  border-bottom:1px solid var(--rule);
}
.dept-head h3{
  font-family:var(--display);
  font-weight:800;
  font-size:clamp(22px,2.4vw,32px);
  letter-spacing:.06em;
  text-transform:uppercase;
  color:var(--ink);
}
.dept-head p{color:var(--ink-soft);margin-top:0;max-width:42ch}
.dept-head .more{color:var(--ink);text-decoration-color:rgba(11,12,14,.3);margin-top:0;margin-left:auto}
.dept-head .more:hover{color:var(--ink);text-decoration-color:var(--ink)}

/* Card grid from the existing table rows — Kubrick can add a <tr> and it inherits this. */
.dept table{display:block;width:100%}
.dept thead{
  position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);
  white-space:nowrap;
}
.dept tbody{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}
.dept tbody tr{
  display:grid;
  grid-template-columns:88px 1fr;
  grid-template-rows:auto auto auto auto;
  column-gap:14px;
  row-gap:4px;
  margin:0;
  padding:12px 14px 12px 12px;
  border:1px solid var(--rule);
  border-bottom:1px solid var(--rule);
  background:rgba(237,235,230,.72);
  box-shadow:none;
  position:relative;
  transition:background .2s, box-shadow .25s var(--ease), transform .25s var(--ease);
}
.dept tbody tr:last-child{border-bottom:1px solid var(--rule)}
.dept tbody tr:hover{
  background:#F4F1EB;
  box-shadow:0 8px 20px -12px rgba(11,12,14,.55);
  transform:translateY(-1px);
}
/* Kill the live REC left-bar hover (craft-floor: no colored left border). */
.dept tbody tr:hover{box-shadow:0 8px 20px -12px rgba(11,12,14,.55)}
.dept tbody tr:hover .t-name::before{content:none;display:none}

/* No-photo card state: a ruled call-sheet plate, never a gray box.
   Optional later: add class "has-shot" and <td class="t-shot"><img alt=""></td> to use a real photo. */
.dept tbody tr:not(.has-shot)::before{
  content:"";
  grid-column:1;
  grid-row:1 / span 4;
  align-self:stretch;
  min-height:88px;
  box-sizing:border-box;
  border:1px solid rgba(11,12,14,.18);
  background-color:#E8E3D8;
  background-image:
    linear-gradient(#F2A65A,#F2A65A),
    repeating-linear-gradient(
      to bottom,
      transparent 0 10px,
      rgba(11,12,14,.16) 10px 11px
    );
  background-size:100% 5px, 100% 100%;
  background-position:0 0, 0 14px;
  background-repeat:no-repeat, repeat;
}
.dept tbody tr.has-shot::before{content:none;display:none}
.dept td.t-shot{display:none}
.dept tbody tr.has-shot{
  grid-template-columns:88px 1fr;
}
.dept tbody tr.has-shot td.t-shot{
  display:block;
  grid-column:1;
  grid-row:1 / span 4;
  padding:0;
  margin:0;
}
.dept tbody tr.has-shot td.t-shot img{
  width:100%;
  height:100%;
  min-height:88px;
  object-fit:cover;
  border:1px solid var(--rule);
}

.dept td{padding:0!important;border:0;color:var(--ink);width:auto!important}
.dept .t-name{
  grid-column:2;
  grid-row:1;
  font-family:var(--display);
  font-weight:700;
  font-size:20px;
  letter-spacing:.01em;
  line-height:1.15;
  color:var(--ink);
  width:auto;
}
.dept .t-use{
  grid-column:2;
  grid-row:2;
  color:var(--ink-soft);
  font-size:14px;
  width:auto;
}
.dept .t-price{
  grid-column:2;
  grid-row:3;
  font:500 12px/1.45 var(--mono);
  color:var(--ink);
  width:auto;
  margin-top:4px;
  font-variant-numeric:tabular-nums;
}
.dept .t-note{
  grid-column:2;
  grid-row:4;
  color:var(--ink-soft);
  font-size:13px;
  width:auto;
}
.dept .t-note .src{color:var(--ink-soft)}
.dept .t-note .src:hover{color:var(--ink)}
.dept .t-link{
  position:absolute;
  top:12px;
  right:12px;
  text-align:right;
  width:auto;
  white-space:nowrap;
}
.dept .t-link a{color:var(--ink);text-decoration-color:rgba(11,12,14,.3)}
.dept tbody tr:hover .t-link a,.dept .t-link a:hover{text-decoration-color:var(--ink)}
.dept .t-name{padding-right:72px!important} /* room for the Open site link */

@media (max-width:860px){
  .dept{padding:22px 16px 16px}
  .dept::before{margin:-22px -16px 18px}
  .dept table{display:block}
  .dept tbody{display:grid;grid-template-columns:1fr;gap:10px}
  .dept tbody tr{
    display:grid;
    grid-template-columns:72px 1fr;
    padding:12px 12px 12px 10px;
  }
  .dept tbody tr:not(.has-shot)::before{min-height:72px}
  .dept td{display:block}
  .dept-head{flex-direction:column;align-items:flex-start;gap:6px}
  .dept-head .more{margin-left:0}
  .dept .t-link{position:static;grid-column:2;grid-row:5;text-align:left;margin-top:6px}
  .dept .t-name{padding-right:0!important}
}

@media (prefers-reduced-motion:reduce){
  .dept tbody tr{transition:none}
  .dept tbody tr:hover{transform:none}
}

/* Browser surfaces — craft floor */
::selection{background:var(--or);color:var(--ink)}
.dept :focus-visible,.hero-copy :focus-visible{
  outline:2px solid var(--ink);
  outline-offset:3px;
}
