/* ─────────────────────────────────────────────────────────────────────────
   Testpack — Mockup 04 (Atelier · Light) — Base styles
   Light-theme rebind of the Atelier helpers: gradient-bordered CTAs and
   cards still work (rust-deep → rust-bright reads warmer on cream),
   accent label, scroll-linked test list, marquee, premium motion.
   ─────────────────────────────────────────────────────────────────────── */

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.55;
  font-feature-settings: 'ss01';
  font-optical-sizing: auto;
  /* full-page warm cream gradient — mirrors mockup 03's depth, in light */
  background-image: linear-gradient(to bottom right, var(--bg-grad-from), var(--bg-grad-to));
  background-attachment: fixed;
}

/* ─── Display ramp — Bricolage Grotesque, opsz 12–96 ──────────────────── */

.font-display { font-family: var(--font-display); font-feature-settings: 'ss01'; }
.font-mono    { font-family: var(--font-mono); }
.font-body    { font-family: var(--font-body); font-optical-sizing: auto; }

.h-hero {
  font-family: var(--font-display);
  font-weight: 800;
  font-variation-settings: 'opsz' 96, 'wdth' 100;
  font-size: clamp(3rem, 7vw, 6.75rem);
  line-height: 0.95;
  letter-spacing: -0.035em;
}

.h-display {
  font-family: var(--font-display);
  font-weight: 800;
  font-variation-settings: 'opsz' 72, 'wdth' 100;
  font-size: clamp(2.25rem, 4.5vw, 3.75rem);
  line-height: 1.0;
  letter-spacing: -0.03em;
}

.h-section {
  font-family: var(--font-display);
  font-weight: 700;
  font-variation-settings: 'opsz' 48, 'wdth' 100;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

/* italic accent — Newsreader light italic carries accent words inside
   Bricolage display headlines. Same pattern as Mockup 01. */
.h-accent {
  font-family: var(--font-body);
  font-style: italic;
  font-weight: 300;
  font-variation-settings: 'opsz' 60;
  color: var(--rust);
}

/* Accent labels — small uppercase running titles */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rust);
}
.eyebrow::before {
  content: ''; width: 28px; height: 1px;
  background: var(--rust);
}

/* Accent label — vertical rust bar with horizontal fade */
.label-accent {
  width: 12px;
  height: 18px;
  border-left: 2px solid var(--rust);
  background-image: linear-gradient(to right,
    rgba(139, 58, 31, 0.5),
    rgba(139, 58, 31, 0));
  display: inline-block;
  vertical-align: middle;
  margin-right: 0.6rem;
}

/* Spec / monospace metadata */
.spec {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.spec-sm {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* ─── Gradient-bordered CTA (ammobox ButtonBordered, light-rebind) ───── */

.cta-bordered {
  position: relative;
  display: inline-flex;
  padding: 2px;
  border-radius: var(--radius);
  background-image: linear-gradient(to right, var(--rust-deep), var(--rust-bright));
  cursor: pointer;
  transition: transform 200ms var(--ease-out-quart),
              box-shadow 200ms var(--ease-out-quart);
  box-shadow: 0 6px 18px -8px rgba(139, 58, 31, 0.45);
}
.cta-bordered:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px -8px rgba(139, 58, 31, 0.55);
}

.cta-bordered__inner {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.85rem 1.6rem;
  background: var(--rust);
  color: var(--paper-light);
  border-radius: 2px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: -0.005em;
  transition: background 200ms var(--ease-out-quart);
}
.cta-bordered:hover .cta-bordered__inner { background: var(--rust-bright); }

.cta-ghost {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.85rem 1.6rem;
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: -0.005em;
  cursor: pointer;
  transition: border-color 200ms var(--ease-out-quart),
              background 200ms var(--ease-out-quart),
              color 200ms var(--ease-out-quart);
  background: transparent;
}
.cta-ghost:hover {
  border-color: var(--rust);
  color: var(--rust);
  background: rgba(139, 58, 31, 0.04);
}

.cta-arrow {
  width: 14px; height: 14px;
  transition: transform 200ms var(--ease-out-quart);
}
.cta-bordered:hover .cta-arrow,
.cta-ghost:hover .cta-arrow { transform: translateX(3px); }

/* ─── Gradient-bordered card (subtle frame on cream) ─────────────────── */

.frame {
  position: relative;
  padding: 1px;
  border-radius: var(--radius-lg);
  background-image: linear-gradient(160deg,
    rgba(194, 85, 51, 0.55) 0%,
    rgba(26, 15, 10, 0.10) 40%,
    rgba(92, 36, 16, 0.5) 100%);
  transition: transform 320ms var(--ease-out-quart),
              filter 320ms var(--ease-out-quart);
}
.frame:hover {
  transform: translateY(-3px);
  filter: drop-shadow(0 16px 32px rgba(26, 15, 10, 0.10));
}
.frame__inner {
  background: var(--paper-light);
  border-radius: calc(var(--radius-lg) - 1px);
  padding: 1.75rem;
  height: 100%;
}

/* ─── Scroll-linked test list (signature Pack pattern, light-rebind) ── */

.test-list { list-style: none; padding: 0; margin: 0; }

.test-list__item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.5rem;
  align-items: baseline;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--hairline);
  cursor: pointer;
}
.test-list__num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--ink-dim);
  transition: color 320ms var(--ease-out-quart);
  width: 2.5rem;
}
.test-list__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-variation-settings: 'opsz' 48, 'wdth' 100;
  font-size: clamp(1.25rem, 1.8vw, 1.6rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink-mute);
  transition: color 320ms var(--ease-out-quart);
}
.test-list__iso {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  color: var(--ink-dim);
  transition: color 320ms var(--ease-out-quart);
}

.test-list__desc {
  grid-column: 2 / 3;
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--ink-soft);
  margin-top: 0.5rem;
  max-width: 50ch;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 400ms var(--ease-out-quart),
              opacity 400ms var(--ease-out-quart),
              margin-top 400ms var(--ease-out-quart);
}

.test-list__item.is-active .test-list__num,
.test-list__item.is-active .test-list__iso {
  color: var(--rust);
}
.test-list__item.is-active .test-list__title {
  color: var(--ink-deep);
}
.test-list__item.is-active .test-list__desc {
  max-height: 200px;
  opacity: 1;
  margin-top: 0.7rem;
}

.test-list__item:hover .test-list__title {
  color: var(--ink);
}

/* The visual frame on the left — photo placeholders stack here.
   Photo placeholders remain dark/cinematic on cream — they ARE the contrast. */
.test-stage {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
  box-shadow: 0 30px 60px -20px rgba(26, 15, 10, 0.25);
}
.test-stage__photo {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 600ms var(--ease-out-expo),
              transform 6s var(--ease-out-expo);
  transform: scale(1.06);
}
.test-stage__photo.is-active {
  opacity: 1;
  transform: scale(1);
}
.test-stage__photo::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(15, 8, 5, 0.85) 0%, rgba(15, 8, 5, 0) 50%);
  pointer-events: none;
}
.test-stage__caption {
  position: absolute; bottom: 1.25rem; left: 1.25rem; right: 1.25rem;
  z-index: 2;
  display: flex; align-items: end; justify-content: space-between; gap: 1rem;
}

/* ─── Marquee credentials strip (lozenge separator) ──────────────────── */

.marquee {
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  overflow: hidden;
  padding: 0.9rem 0;
  background: rgba(229, 219, 201, 0.4);
}
.marquee__track {
  display: flex; gap: 2.5rem;
  align-items: center;
  white-space: nowrap;
  animation: marquee-scroll 38s linear infinite;
  width: max-content;
}
.marquee__sep {
  color: var(--rust);
  font-size: 0.85rem;
}
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ─── Stat block ─────────────────────────────────────────────────────── */

.stat__value {
  font-family: var(--font-display);
  font-weight: 800;
  font-variation-settings: 'opsz' 96, 'wdth' 100;
  font-size: clamp(3rem, 5vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--rust);
}
.stat__label {
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin-top: 0.65rem;
  max-width: 26ch;
}

/* ─── Process step ──────────────────────────────────────────────────── */

.step__num {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  color: var(--rust);
  margin-bottom: 1.5rem;
}

/* ─── Reveal on scroll ───────────────────────────────────────────────── */

[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 800ms var(--ease-out-quart),
              transform 800ms var(--ease-out-quart);
  transition-delay: var(--reveal-delay, 0ms);
}
[data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Honeycomb wash — subtle cardboard-cell backdrop ─────────────────
   Same pattern as Mockup 03, swapped to ink-stroke for the cream surface. */

.hex-wash { position: relative; }
.hex-wash::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../assets/honeycomb-ink-strong.svg');
  background-size: 56px 100px;
  background-repeat: repeat;
  opacity: 0.16;
  pointer-events: none;
  z-index: 0;
}
.hex-wash > * { position: relative; z-index: 1; }

/* Stronger variant — for the hero photo placeholder where the metaphor wants
   to land. Photo placeholders are dark, so we use the cream stroke there. */
.hex-wash--on-photo::before {
  background-image: url('../assets/honeycomb-cream-strong.svg');
  opacity: 0.32;
}

.hex-wash--vignette::before {
  -webkit-mask-image: linear-gradient(to bottom,
    transparent 0%, black 18%, black 82%, transparent 100%);
          mask-image: linear-gradient(to bottom,
    transparent 0%, black 18%, black 82%, transparent 100%);
}

/* ─── Selection ──────────────────────────────────────────────────────── */
::selection { background: var(--rust); color: var(--paper-light); }

/* ─── Focus ──────────────────────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--rust);
  outline-offset: 3px;
}
