
/* ==========================================================================
   TeamTrek — the capture wall
   --------------------------------------------------------------------------
   The hero figure on the screenshots page: one hour of one project, and the
   six captures taken inside it.

   An hour rather than a day. The page's whole argument is about how little
   this is, and an hour is the unit a reader can hold: a project name, a
   start and an end, six pictures, done. A day would need a scale beside it
   before the same six meant anything.

   Two columns, because the card is 1056 by 482 like every other hero figure
   on the site, and six screen-shaped thumbnails across 1056 in two rows need
   646 of height. Putting what the panel counts -- six, every ten minutes,
   the average -- in a rail beside the wall instead of above and below it
   buys the 164px back without shrinking a thumbnail.

   Nothing here is an image. Every capture is a few spans drawn in CSS, so
   the panel costs no requests, blurs with a filter rather than a second
   asset, and cannot accidentally ship somebody's screen.
   ========================================================================== */

.shots {
  width: 100%; max-width: 66rem; margin-inline: auto;
  padding: 1.25rem;
  border: 1px solid var(--neutral-200); border-radius: var(--r-xl);
  background: #fff;
  /* The feed's shadow, for the same reason: the panel straddles the dark
     band and the dome, and a light shadow over the dark half disappears. */
  box-shadow: 0 30px 80px rgba(8, 40, 36, .28);
  text-align: left;
  display: flex; flex-direction: column;
}

/* ------------------------------------------------------------- the head */
/* What hour this is, and of what. The sibling page's head names a person,
   because a feed of applications with nobody attached reads as surveillance
   of no one in particular; here the captures are of a project, and the
   person is named in the rail, where the promise about them is made. */
.shots__head {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem;
  padding-bottom: .875rem;
  border-bottom: 1px solid var(--neutral-200);
}
.shots__project { font-size: .9375rem; font-weight: 700; color: var(--neutral-900); }
.shots__client { font-size: .8125rem; color: var(--neutral-500); }
.shots__state {
  display: flex; align-items: center; gap: .5rem;
  font-size: .6875rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--primary-700);
}
.shots__hour {
  margin-left: auto;
  font-size: .8125rem; color: var(--neutral-600); font-variant-numeric: tabular-nums;
}
.shots__hour b { font-weight: 700; color: var(--neutral-900); }

/* ------------------------------------------------------------ the split */
.shots__split {
  flex: 1; min-height: 0;
  margin-top: .875rem;
  display: grid; grid-template-columns: 13.75rem minmax(0, 1fr);
  gap: 1.5rem;
}

/* What the hour adds up to, read down rather than across. */
.shots__rail {
  display: flex; flex-direction: column; gap: 1.125rem;
  padding-right: 1.5rem;
  border-right: 1px solid var(--neutral-150);
}
.shots__stat b {
  display: block;
  font-size: 1.375rem; font-weight: 800; letter-spacing: -.02em;
  color: var(--neutral-900); font-variant-numeric: tabular-nums;
}
.shots__stat span { display: block; margin-top: .125rem; font-size: .8125rem; color: var(--neutral-500); }

/* The promise, at the foot of the rail where the eye leaves the panel. */
.shots__note {
  margin: auto 0 0;
  display: flex; align-items: flex-start; gap: .5rem;
  font-size: .75rem; line-height: 1.45; color: var(--neutral-500);
}
.shots__note .icon { flex: none; margin-top: .125rem; color: var(--neutral-400); }

/* ------------------------------------------------------------- the wall */
.shots__grid {
  margin: 0; padding: 0; list-style: none;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: .875rem;
}

.shots__cell { min-width: 0; min-height: 0; display: flex; flex-direction: column; }

/* The capture itself. It takes the height its row gives it, and at 1056
   wide that lands within a pixel of 16:10 -- the shape of a laptop, which
   is what makes a drawing read as a screen at all. */
.shots__shot {
  position: relative; display: block;
  flex: 1; min-height: 0;
  border: 1px solid var(--neutral-200); border-radius: var(--r-md);
  background: var(--neutral-25);
  overflow: hidden;
}

/* What is drawn inside it: a title bar, a sidebar and a column of lines.
   Recognisable as a screen at 150px wide and as nothing in particular at
   any size, which is the point. */
.shots__chrome {
  display: flex; align-items: center; gap: 3px;
  height: 14%; padding: 0 6%;
  border-bottom: 1px solid var(--neutral-150);
  background: #fff;
}
.shots__chrome i { width: 4px; height: 4px; border-radius: 50%; background: var(--neutral-200); }

.shots__body { display: flex; height: 86%; }
.shots__side {
  flex: none; width: 24%;
  padding: 7% 5%;
  display: flex; flex-direction: column; gap: 10%;
  border-right: 1px solid var(--neutral-150);
  background: #fff;
}
.shots__side i { display: block; height: 4px; border-radius: 2px; background: var(--neutral-150); }
.shots__side i:first-child { background: var(--tint, var(--primary-200)); }

.shots__main {
  flex: 1; min-width: 0;
  padding: 7% 6%;
  display: flex; flex-direction: column; gap: 7%;
}
.shots__main i {
  display: block; height: 5px; width: var(--w, 100%);
  border-radius: 2px; background: var(--neutral-150);
}
.shots__main i:nth-child(2) { background: var(--tint, var(--primary-200)); }

/* Blurred, which is the state this workspace is in. The filter is on the
   drawing, not on the frame, so the frame's border and the time under it
   stay sharp -- as they do in the product, where what is obscured is the
   screen and not the record of it. */
.shots__cell--blur .shots__chrome,
.shots__cell--blur .shots__body { filter: blur(3.5px); }

/* The one that just arrived. A ring rather than a motion, so a reader who
   looks away and back can still tell which is newest. */
.shots__cell.is-new .shots__shot {
  border-color: var(--primary-300);
  box-shadow: 0 0 0 3px var(--primary-50);
}

/* When it was taken, and how much of that interval had input in it. */
.shots__meta {
  flex: none;
  margin-top: .4375rem;
  display: flex; align-items: center; gap: .5rem;
  font-size: .75rem; color: var(--neutral-500);
  font-variant-numeric: tabular-nums;
}
.shots__time { font-weight: 700; color: var(--neutral-900); }
.shots__act { margin-left: auto; flex: none; }

/* ------------------------------------------------------------------ small */
@media (min-width: 860px) {
  /* The figure every other hero on the site carries: 1056 by 482. Fixed
     rather than grown into, because the number is the point -- four heroes
     at four different heights are four pages that were designed apart. */
  .shots { height: 482px; }
}

@media (max-width: 859px) {
  /* The rail goes above the wall: at this width a 220px column beside three
     thumbnails leaves each one too small to read as a screen. */
  .shots { padding: 1.125rem; }
  .shots__split { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .shots__rail {
    flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: .75rem 1.75rem;
    padding-right: 0; padding-bottom: 1rem;
    border-right: 0; border-bottom: 1px solid var(--neutral-150);
  }
  .shots__stat b { font-size: 1.125rem; }
  .shots__note { margin: 0; width: 100%; }
  /* Still three across. Two columns of six captures is three rows, which
     put the card at 909px on a tablet -- a hero figure twice the height of
     the one every other page carries. */
  .shots__grid { grid-template-rows: auto; }
  /* The height comes back from the thumbnails themselves, once the rows are
     no longer sharing a fixed card height. */
  .shots__shot { flex: none; aspect-ratio: 16 / 10; }
}

@media (max-width: 599px) {
  /* Two across, and all six. Hiding the last two to keep the card short
     left a rail reading "6 screenshots this hour" over four of them, and a
     figure a reader can disprove by counting is worse than a tall one. */
  .shots { padding: 1rem; }
  .shots__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
  .shots__meta { gap: .375rem; font-size: .6875rem; }
}

/* --------------------------------------------------------------------------
   The capture strip
   --------------------------------------------------------------------------
   Section 04's figure: one working day drawn once, with a mark at every
   point a capture was taken. The claim the section makes is about how few
   marks there are and how evenly they fall, and both of those are properties
   of the picture rather than of any number in it.

   The ticks are placed from --at, a percentage of the track, written into
   the markup. Spread with a flex row instead, a mark and the hour labelled
   under it drift apart as the track changes width.
   -------------------------------------------------------------------------- */
.capstrip {
  margin-top: 2.5rem; padding: 1.5rem;
  border: 1px solid var(--neutral-200); border-radius: var(--r-lg);
  background: #fff;
}

.capstrip__row {
  display: grid; grid-template-columns: 9.5rem minmax(0, 1fr);
  align-items: center; gap: .75rem;
  padding: 1.125rem 0;
}
.capstrip__row + .capstrip__row { border-top: 1px solid var(--neutral-150); }
.capstrip__name { margin: 0; font-size: .875rem; font-weight: 700; color: var(--neutral-900); }
.capstrip__sub { display: block; font-size: .75rem; font-weight: 400; color: var(--neutral-500); }

.capstrip__track {
  position: relative; height: 2rem;
  border-radius: var(--r-sm);
  background: repeating-linear-gradient(90deg,
    var(--neutral-50) 0 1px, transparent 1px 25%);
  box-shadow: inset 0 0 0 1px var(--neutral-150);
}
/* The hours the timesheet claims: one block, the way a timesheet states it. */
.capstrip__block {
  position: absolute; top: 3px; bottom: 3px;
  left: calc(var(--from) * 1%); right: calc(100% - var(--to) * 1%);
  border-radius: 999px;
  background: var(--primary-500);
}
/* Each capture. Narrow on purpose: twelve of them across eight hours is
   what the section is saying, and a wide mark would fill the track. */
.capstrip__tick {
  position: absolute; top: 5px; bottom: 5px;
  left: calc(var(--at) * 1%);
  width: 4px; margin-left: -2px;
  border-radius: 2px;
  background: var(--primary-400);
}
/* The stretch nobody was at the keyboard for, which took no captures. */
.capstrip__gap {
  position: absolute; top: 3px; bottom: 3px;
  left: calc(var(--from) * 1%); right: calc(100% - var(--to) * 1%);
  border-radius: var(--r-xs);
  background: repeating-linear-gradient(135deg,
    var(--neutral-150) 0 4px, var(--neutral-100) 4px 8px);
}

.capstrip__axis {
  display: grid; grid-template-columns: 9.5rem minmax(0, 1fr);
  gap: .75rem;
  font-size: .75rem; color: var(--neutral-500);
  font-variant-numeric: tabular-nums;
}
.capstrip__ticks { position: relative; display: block; height: 1.0625rem; }
.capstrip__ticks b {
  position: absolute; top: 0;
  left: calc(var(--at) * 1%); transform: translateX(-50%);
  font-weight: inherit; white-space: nowrap;
}
.capstrip__ticks b:first-child { transform: none; }
.capstrip__ticks b:last-child { transform: translateX(-100%); }

@media (max-width: 859px) {
  /* The track takes the full width, so the axis does too: the hours have to
     stay over the points they name. */
  .capstrip { padding: 1.25rem; }
  .capstrip__axis { grid-template-columns: minmax(0, 1fr); }
  .capstrip__axis > span:first-child { display: none; }
  .capstrip__row { grid-template-columns: minmax(0, 1fr); row-gap: .5rem; }
}

/* --------------------------------------------------------------------------
   The one switch that does not move
   --------------------------------------------------------------------------
   "Members see their own" is not a setting on this page's panel; it is the
   thing the page is promising. The row carries it because leaving it out
   would make the promise a claim in prose beside a screen that does not
   show it -- but a switch that looks exactly like the five around it and
   does nothing when pressed is worse than no switch at all.

   So it reads as fixed: dimmed, with the cursor saying so.
   -------------------------------------------------------------------------- */
.capture__switch[disabled] { opacity: .55; cursor: not-allowed; }
/* And it says so in a word, because a dimmed control is a hint and this is
   a commitment. */
.capture__fixed {
  display: inline-block; margin-top: .25rem;
  /* .75rem, not the .625 an uppercase micro-label usually takes here: this
     one is a commitment rather than a tag, and 10px is below the floor for
     anything a reader is meant to act on. */
  font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--primary-700);
}

/* The two labels the strip carries inside itself. The timesheet bar says
   what the one entry is, and the empty stretch says why it is empty -- both
   are the point the section is making, and both read better where they
   happen than in a line of copy underneath. */
.capstrip__block b,
.capstrip__gap b {
  position: absolute; top: 50%; left: .625rem; transform: translateY(-50%);
  font-size: .75rem; font-weight: 700; white-space: nowrap;
}
.capstrip__block b { color: #fff; }
.capstrip__gap b { color: var(--neutral-500); font-weight: 400; }

