/* Hero: the promise, centred and set large over a quiet line-art field (js/art-field.js), then the
   product itself: an illustrative client file in a plain window on a quiet surface
   (js/art-hero.js). The Seal colour appears once in the window, as the sign-off. */
.hero {
  --hero-top: clamp(72px, 8vw, 116px);
  --hero-gap: clamp(56px, 6vw, 88px);
  position: relative;
  display: grid;
  justify-items: center;
  padding: var(--hero-top) var(--inset) 0;
  text-align: center;
  isolation: isolate;
}
.hero__copy { grid-area: 1 / 1; max-width: 860px; }

/* The field shares the copy's cell and reaches out to the hero's edges and down to the window. */
.hero__field {
  grid-area: 1 / 1;
  justify-self: stretch;
  position: relative;
  z-index: -1;
  margin: calc(-1 * var(--hero-top)) calc(-1 * var(--inset)) calc(-1 * var(--hero-gap));
  overflow: hidden;
  color: var(--seal); /* founder, 2026-11-08: the field is drawn in burnt orange */
  pointer-events: none;
}
.hero__field svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hf-rule { fill: none; stroke: currentColor; stroke-width: 1.25; transform-box: fill-box; transform-origin: center; transform: rotate(var(--r)); }
@keyframes hf-settle {
  from { opacity: 0; transform: rotate(calc(var(--r) + var(--a))) scale(.96); }
  to { opacity: 1; transform: rotate(var(--r)); }
}
.js .art-print .hf-rule { opacity: 0; }
.js .art-print.is-printing .hf-rule { animation: hf-settle 2.4s cubic-bezier(.22, .7, .2, 1) var(--d) both; }
.js .art-print.is-settled .hf-rule { animation: none; opacity: 1; }
.hero__title {
  font-family: var(--serif);
  font-size: clamp(46px, 6.2vw, 96px);
  font-weight: 300;
  line-height: .96;
  letter-spacing: -0.04em;
}
.hero__lede {
  max-width: 34em;
  margin: 28px auto 0;
  color: var(--ink-2);
  font-size: clamp(18px, 1.4vw, 20px);
  line-height: 1.45;
  text-wrap: balance;
}
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 28px; margin-top: 36px; }

.hero__product {
  width: 100%;
  margin: var(--hero-gap) 0 0;
  padding: clamp(28px, 4vw, 64px) clamp(12px, 4vw, 64px) 20px;
  background: var(--folio);
  text-align: left;
}
.hero__window { max-width: 1060px; margin: 0 auto; }
.hero__note { max-width: 1060px; margin: 16px auto 0; color: var(--ink-2); font: 400 var(--fs-small)/1.4 var(--sans); }

/* The product window. */
.pw {
  container-type: inline-size;
  overflow: hidden;
  background: var(--sheet);
  border: 1px solid var(--mist);
  border-radius: 6px;
  box-shadow: 0 1px 2px color-mix(in srgb, var(--ink) 6%, transparent), 0 28px 56px -32px color-mix(in srgb, var(--ink) 35%, transparent);
  color: var(--ink);
  font: 400 14px/1.3 var(--sans);
  letter-spacing: -0.01em;
  --tr-bg: var(--sheet);
  --tr-mark: var(--ink);
  --tr-key: var(--seal);
}
.pw__bar { display: flex; align-items: center; gap: 20px; height: 48px; padding: 0 20px; border-bottom: 1px solid var(--mist); }
.pw__brand { font: 300 19px/1 var(--sans); letter-spacing: -0.04em; }
.pw__crumb { display: flex; gap: 8px; min-width: 0; color: var(--ink-2); white-space: nowrap; }
.pw__crumb b { overflow: hidden; color: var(--ink); font-weight: 500; text-overflow: ellipsis; }
.pw__sep { color: var(--pewter); }
.pw__status { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; padding: 5px 10px; border: 1px solid var(--mist); border-radius: 4px; font-size: 13px; font-weight: 500; white-space: nowrap; }
.pw__dot { width: 8px; height: 8px; background: var(--seal); }

.pw__body { display: grid; grid-template-columns: 184px minmax(0, 1fr); }
.pw__side { display: grid; align-content: start; gap: 2px; padding: 16px 12px; border-right: 1px solid var(--mist); color: var(--ink-2); }
.pw__side span { padding: 8px 10px; border-radius: 4px; }
.pw__side .is-on { background: var(--bond); color: var(--ink); font-weight: 500; }
.pw__main { padding: 28px 32px 24px; }
.pw__name { font: 400 26px/1.1 var(--serif); letter-spacing: -0.025em; }
.pw__meta { margin-top: 6px; color: var(--ink-2); }

.pw__table { margin-top: 24px; }
.pw__row {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, .9fr) minmax(0, 1.7fr) 56px;
  align-items: center;
  column-gap: 20px;
  min-height: 52px;
  border-top: 1px solid var(--bond);
}
.pw__row--head { min-height: 36px; border-top: 0; color: var(--ink-2); font-size: 12px; font-weight: 500; }
.pw__check { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.pw__slot { display: grid; place-items: center; flex: none; width: 34px; }
.pw__row--head .pw__check { padding-left: 46px; }
.pw__evidence { color: var(--ink-2); }
.pw__time { color: var(--ink-2); font: 400 12px/1 var(--mono); text-align: right; }
.pw__row--head .pw__time { font: inherit; }
.pw__row--signed .pw__result { color: var(--seal); font-weight: 500; }
.pw__foot { margin-top: 20px; color: var(--ink-2); font-size: 13px; }

/* Narrower windows drop the side list, then the evidence column. */
@container (max-width: 760px) {
  .pw__body { grid-template-columns: 1fr; }
  .pw__side { display: none; }
  .pw__main { padding: 22px 20px 20px; }
}
@container (max-width: 520px) {
  .pw__crumb { display: none; }
  .pw__row { grid-template-columns: minmax(0, 1fr) auto 46px; column-gap: 12px; }
  .pw__evidence { display: none; }
  .pw__name { font-size: 22px; }
}

/* Motion: the window settles once, then each row is stamped in order (the Trail's stamp). */
@keyframes pw-in { from { opacity: 0; translate: 0 16px; } to { opacity: 1; translate: 0 0; } }
@keyframes pw-row { from { opacity: 0; } to { opacity: 1; } }
.js .pw.art-print, .js .art-print .pw__row:not(.pw__row--head) { opacity: 0; }
.js .pw.is-printing { animation: pw-in .8s var(--ease-out) .15s both; }
.js .pw.is-printing .pw__row:not(.pw__row--head) { animation: pw-row .5s var(--ease-std) var(--d) both; }

@media (max-width: 767px) {
  .hero { --hero-top: 56px; --hero-gap: 44px; }
  .hero__product { padding: 20px 12px 16px; }
}
@media print {
  .js .pw.art-print, .js .art-print .pw__row, .js .art-print .hf-rule { opacity: 1; }
}
