/* ============================================================
   Why Jaydeck — the case, argued in order.

   This band used to be four glass tiles with an icon each: a line
   drawing of a diamond over the words "premium materials", a clock
   over "on-time delivery". Icons standing in for claims is the
   oldest tell in corporate design — nothing on the card is evidence,
   so the card is decoration with a heading.

   Rebuilt as a ledger. The section head sticks to the left while
   four numbered claims pass it on the right, a rail fills against
   the scroll, and the claim you are level with is lit while the
   others hold back. Each claim is a heading, the argument, and the
   thing that would prove it — an actual, checkable line rather than
   a mood.

   The lighting is the whole interaction, and it is free: one
   [data-active] attribute per row, set by a ScrollTrigger. Nothing
   here is layout-dependent, so under reduced motion or without JS
   every row is simply lit and the section reads as a list.
   ============================================================ */

/* No `overflow` on the section itself, and that is load-bearing.

   The aside below is `position: sticky`. A sticky element sticks
   within its nearest SCROLLING ancestor, and `overflow: hidden`
   makes an element exactly that — a scroll container that happens
   never to scroll. So the old `overflow: hidden` here did not
   merely fail to help the aside; it silently guaranteed the aside
   could never stick at all, and the head scrolled away at page
   speed while the claims it introduces were still arriving.

   The clipping is still needed — the skyline is inset -10% so it has
   somewhere to drift — so it moves to a wrapper that holds only the
   bleed. `overflow: clip` would also have worked and would not build
   a scroll container, but it is unsupported in Safari 15, and the
   failure there is the photograph escaping the band. A wrapper works
   everywhere. */
.props {
  position: relative;
  isolation: isolate;
}

/* The clipping box for everything that bleeds past the band's edges. */
.props__bleed {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

/* Same reason as the hero: the skyline is scrubbed against the page,
   so it is inset negatively to give that movement somewhere to go. */
.props__bg {
  position: absolute;
  inset: -10% 0;
}
.props__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.3) contrast(1.12) brightness(0.42);
  will-change: transform;
}

.props__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom,
      rgb(10 22 40 / 0.95) 0%,
      rgb(10 22 40 / 0.86) 45%,
      rgb(10 22 40 / 0.96) 100%);
}

/* ============================================================
   Layout — the head holds, the argument moves
   ============================================================ */

.props__layout {
  display: grid;
  grid-template-columns: minmax(0, 22rem) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 7rem);
  align-items: start;
}

.props__aside {
  position: sticky;
  /* Clears the nav, then a little more so it does not sit welded to
     the top edge for the length of the band. */
  top: calc(var(--nav-h) + clamp(2rem, 6vh, 5rem));
}

/* ---- The counter ----
   Reads the position of the argument, not of the page: it is the one
   piece of chrome that tells you how much case there is left. */
.props__counter {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-top: clamp(2rem, 4vw, 3rem);
  font-variant-numeric: tabular-nums;
  color: var(--fg);
}
.props__counter-now {
  font-family: var(--body);
  font-weight: 300;
  font-size: clamp(2.5rem, 4vw, 3.75rem);
  line-height: 0.85;
  letter-spacing: -0.05em;
}
.props__counter-of {
  font-size: var(--t-micro);
  letter-spacing: 0.16em;
  color: var(--muted);
}

/* ---- The rail ----
   A real progress bar for the argument. The fill is scrubbed, so it
   tracks the scroll rather than snapping between claims. */
.props__rail {
  position: relative;
  height: 2px;
  margin-top: 1.5rem;
  background: var(--rule);
}
.props__rail-fill {
  position: absolute;
  inset: 0;
  background: var(--fg);
  transform: scaleX(0);
  transform-origin: left center;
}

/* ============================================================
   The claims
   ============================================================ */

.props__list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--rule);
}

/* One column. The per-claim numerals that used to sit in a 4.5rem
   gutter are gone — the running counter in the aside already says
   which of the four you are on, and saying it twice made the claims
   read as a numbered list rather than as an argument. */
.prop {
  position: relative;
  padding: clamp(2rem, 3.5vw, 3rem) 0;
  border-bottom: 1px solid var(--rule);
  /* Dim by default: the argument is read one claim at a time, and a
     wall of four equally bright paragraphs is exactly the flatness
     this section was rebuilt to fix. */
  opacity: 0.42;
  transition: opacity 0.7s var(--ease);
}

.prop[data-active='true'] { opacity: 1; }

/* The rule that marks the live claim, drawn over the hairline the
   row already has. */
.prop::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: var(--fg);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.9s var(--wipe);
}
.prop[data-active='true']::after { transform: scaleX(1); }

.prop__title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.25rem, 1.9vw, 1.75rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--fg);
  text-wrap: balance;
}

.prop__text {
  margin-top: 0.9rem;
  font-size: var(--t-body);
  line-height: 1.66;
  color: var(--muted);
  max-width: 52ch;
}

/* ---- The proof ----
   The line that separates this from a brochure. Every claim above it
   is an assertion; this is the thing you could hold us to. */
.prop__proof {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-top: 1.4rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  max-width: 52ch;
}
.prop__proof-label {
  flex: none;
  font-size: var(--t-micro);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
}
.prop__proof-text {
  font-size: var(--t-small);
  line-height: 1.6;
  color: var(--fg);
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 1023px) {
  .props__layout { grid-template-columns: minmax(0, 1fr); gap: clamp(2rem, 5vw, 3rem); }
  /* Sticky in a single column would pin the head over the claims it
     is introducing. */
  .props__aside { position: static; }
  .props__counter { display: none; }
  .props__rail { display: none; }
}

@media (max-width: 599px) {
  .prop__proof { flex-direction: column; gap: 0.35rem; }
}

/* Without the scroll machinery there is no "current" claim, so every
   claim is simply on. */
@media (prefers-reduced-motion: reduce) {
  .prop { opacity: 1; transition: none; }
  .prop::after { transform: scaleX(1); transition: none; }
  .props__rail-fill { transform: scaleX(1); }
}
html:not(.js) .prop { opacity: 1; }
html:not(.js) .prop::after { transform: scaleX(1); }
