/* Styles for data-driven block slots (see blocks.js). */

.section-heading { max-width: 46em; padding-top: clamp(16px, 3vh, 32px); }
.section-heading h2 { font-size: clamp(34px, 3.6vw, 54px); }
.section-heading .dek { margin-top: 14px; }

/* Search results: one row per query, positions as slots. */
.rank-rows { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.rank-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 12px 32px; align-items: center; padding: 22px 0; border-bottom: 1px solid color-mix(in srgb, var(--ink) 14%, transparent); }
.rank-row .q { font: 500 clamp(22px, 2vw, 30px)/1.15 var(--display); }
.rank-row .q .label { display: block; margin-bottom: 6px; }
.rank-row .pos { display: flex; flex-wrap: wrap; gap: 10px; }
.slot { display: inline-grid; grid-template-columns: auto auto; align-items: baseline; gap: 8px; padding: 10px 14px; border-radius: 4px; background: var(--white); border: 1px solid color-mix(in srgb, var(--ink) 12%, transparent); }
.slot b { font: 500 30px/1 var(--display); }
.slot em { font-style: normal; font-size: 13px; line-height: 1.3; color: var(--muted); }
.slot.self { background: var(--edition); color: var(--edition-ink); border-color: var(--edition); }
.slot.self em { color: color-mix(in srgb, var(--edition-ink) 82%, transparent); }
.rank-row .d { grid-column: 1 / -1; font-size: 15px; color: var(--muted); }

/* AI answers: the question, then each assistant's reply. */
.answers { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 0; border-radius: 6px; overflow: hidden; background: var(--white); }
.answers .prompt { padding: clamp(24px, 3vw, 40px); background: var(--ink); color: var(--paper); }
.answers .prompt .label { color: var(--copper-light); }
.answers .prompt p { margin: 14px 0 0; font: 500 clamp(24px, 2.2vw, 34px)/1.2 var(--display); }
.answers .replies { display: grid; }
.reply { padding: 22px clamp(20px, 2.6vw, 34px); display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; align-items: center; border-bottom: 1px solid color-mix(in srgb, var(--ink) 10%, transparent); }
.reply:last-child { border-bottom: 0; }
.reply .who { font: 500 22px/1.2 var(--display); }
.reply .verdict { justify-self: end; display: inline-flex; align-items: center; gap: 6px; font: 500 13px/1 var(--text); letter-spacing: .02em; padding: 7px 11px; border-radius: 999px; }
.reply .verdict svg { width: 15px; height: 15px; }
.reply.yes .verdict { background: color-mix(in srgb, var(--edition) 12%, var(--white)); color: var(--edition); }
.reply.no .verdict { background: var(--ink); color: var(--paper); }
.reply p { grid-column: 1 / -1; margin: 4px 0 0; font-size: 15px; line-height: 1.5; color: var(--ink-2); }

/* Access checks: each tool as a closed door. */
.access { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.door { position: relative; padding: clamp(24px, 3vw, 36px); border-radius: 6px; background: var(--ink); color: var(--paper); overflow: clip; }
.door::after { content: ''; position: absolute; right: -40px; bottom: -40px; width: 180px; height: 180px; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--copper-light) 40%, transparent); }
.door-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; }
.door .label { color: color-mix(in srgb, var(--paper) 70%, transparent); }
.door .code { font: 500 44px/1 var(--display); color: var(--copper-light); }
.door h3 { margin-bottom: 12px; }
.door .outcome { font-size: 17px; line-height: 1.5; margin: 0 0 12px; }
.door .muted { color: color-mix(in srgb, var(--paper) 72%, transparent); }
.door .src { background: color-mix(in srgb, var(--paper) 14%, transparent); color: var(--paper); }

/* Funnel: a count narrowing step by step. */
.funnel-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.funnel-rows li { display: grid; grid-template-columns: 6.5em minmax(0, 1fr) minmax(0, .8fr); gap: 18px; align-items: center; }
.funnel-rows .n { font: 500 clamp(34px, 3.4vw, 52px)/1 var(--display); text-align: right; }
.funnel-rows .bar { position: relative; height: 48px; display: flex; align-items: center; padding: 0 16px; border-radius: 3px; background: color-mix(in srgb, var(--ink) 6%, transparent); overflow: hidden; isolation: isolate; }
.funnel-rows .bar i { position: absolute; inset: 0 auto 0 0; width: var(--w); background: linear-gradient(90deg, color-mix(in srgb, var(--edition) 10%, var(--white)), color-mix(in srgb, var(--edition) 26%, var(--white))); z-index: -1; }
.funnel-rows .bar em { font-style: normal; font: 500 15px/1.3 var(--text); }
.funnel-rows .act { font-size: 14px; line-height: 1.4; color: var(--muted); }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .funnel-rows .bar i { animation: fill linear both; animation-timeline: view(); animation-range: entry 20% cover 45%; }
  }
}
@keyframes fill { from { width: 0; } }

/* Products seen on the site. */
.products { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.product { display: grid; grid-template-columns: 120px 1fr; gap: 20px; align-items: center; padding: 20px; background: var(--white); border-radius: 6px; border: 1px solid transparent; }
.product.chosen { border-color: var(--edition); box-shadow: 0 0 0 3px color-mix(in srgb, var(--edition) 14%, transparent); }
.product .shot { aspect-ratio: 3 / 4; display: grid; place-items: center; }
.product .shot img { max-height: 100%; width: auto; object-fit: contain; }
.product h4 { margin: 6px 0 10px; font: 500 22px/1.2 var(--display); }
.product .price { margin: 0; font: 500 30px/1 var(--display); display: flex; align-items: baseline; gap: 12px; }
.product .price span { font: 500 12px/1 var(--text); letter-spacing: .1em; text-transform: uppercase; color: var(--edition); }
.chosen-tag { display: inline-block; margin-top: 12px; font: 500 12px/1 var(--text); padding: 7px 10px; border-radius: 999px; background: var(--edition); color: var(--edition-ink); }
.products-note { grid-column: 1 / -1; margin: 0; }

/* Two or three columns of points. */
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.col { padding: clamp(24px, 3vw, 40px); border-radius: 6px; background: var(--white); }
.col.dark { background: var(--ink); color: var(--paper); }
.col.dark .eyebrow { color: var(--copper-light); }
.col.edition { background: var(--edition); color: var(--edition-ink); }
.col.edition .eyebrow { color: var(--edition-2); }
.col h3 { margin-bottom: 18px; }
.col ol { list-style: none; margin: 0; padding: 0; counter-reset: p; }
.col li { counter-increment: p; display: grid; grid-template-columns: 2.2em 1fr; gap: 4px 10px; padding: 16px 0; border-top: 1px solid color-mix(in srgb, currentColor 16%, transparent); }
.col li::before { content: counter(p, decimal-leading-zero); grid-row: span 2; font: 500 12px/1.9 var(--text); letter-spacing: .1em; opacity: .7; }
.col li b { font-weight: 500; font-size: 17px; line-height: 1.4; }
.col li span { font-size: 15px; line-height: 1.5; opacity: .82; }
.col .src { background: color-mix(in srgb, currentColor 14%, transparent); color: inherit; }

/* Portfolio examples. */
.examples { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.example { display: grid; grid-template-rows: auto 1fr; background: var(--white); border-radius: 6px; overflow: hidden; text-decoration: none; transition: transform var(--t-move) var(--ease), box-shadow var(--t-move) var(--ease); }
.example:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.example .shot { aspect-ratio: 16 / 10; overflow: hidden; background: var(--ink); }
.example .shot img { width: 100%; height: 100%; object-fit: cover; }
.example .meta { padding: 22px 24px 24px; display: grid; gap: 10px; align-content: start; }
.example .proof { justify-self: start; font: 500 11px/1 var(--text); letter-spacing: .12em; text-transform: uppercase; padding: 7px 10px; border-radius: 999px; background: var(--paper-2); color: var(--copper-deep); }
.example h4 { margin: 4px 0 0; font: 500 26px/1.15 var(--display); }
.example p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.example .why { font-size: 14px; line-height: 1.5; color: var(--muted); }
.example .why b { display: block; font: 500 11px/1.4 var(--text); letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }
.example .go { display: inline-flex; align-items: center; gap: 6px; font: 500 13px/1 var(--text); color: var(--copper-deep); margin-top: 4px; }
.example .go svg { width: 14px; height: 14px; }

/* Priority options. */
.options { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.option { position: relative; padding: clamp(24px, 3vw, 36px); border-radius: 6px; background: var(--white); }
.option .letter { display: block; font: 500 56px/.9 var(--display); color: var(--copper); margin-bottom: 18px; }
.option h3 { margin-bottom: 12px; }
.option p { font-size: 16px; line-height: 1.55; }

/* Invitation. */
.invite { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .6fr); gap: 32px; align-items: end; padding: clamp(32px, 5vw, 72px); border-radius: 6px; background: var(--ink); color: var(--paper); }
.invite h2 { max-width: 14em; }
.invite .dek { color: color-mix(in srgb, var(--paper) 84%, transparent); margin-top: 16px; }
.invite .sig img { height: 44px; width: auto; margin-bottom: 14px; }
.invite .sig p { margin: 0; font-size: 14px; color: color-mix(in srgb, var(--paper) 72%, transparent); }

/* Library teaser: products. */
.t-products { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.t-products figure { margin: 0; padding: 16px; border-radius: 6px; background: var(--white); color: var(--ink); display: grid; gap: 10px; justify-items: center; }
.t-products img { height: clamp(120px, 16vh, 180px); width: auto; object-fit: contain; }
.t-products figcaption { font: 500 13px/1.3 var(--text); text-align: center; }

/* Standard video player. */
.video-player { margin: 0; }
.video-player video { width: 100%; border-radius: 6px; background: #000; }
.video-player figcaption { margin-top: 10px; font-size: 13px; color: var(--muted); }

@media (max-width: 900px) {
  .rank-row, .answers, .invite { grid-template-columns: 1fr; }
  .funnel-rows li { grid-template-columns: 4.2em minmax(0, 1fr); }
  .funnel-rows .act { grid-column: 2; }
  .product { grid-template-columns: 90px 1fr; }
}
