/* Hallmark · checked: 2026-11-21 · genre: editorial (inferred)
 * built: the project · redesign: polish · v2.0.0
 * Scope: Layout page only. Shared portfolio styles and the approved hero are retained.
 * Sweep: static checks plus native browser review; render tier unavailable (no puppeteer-core).
 * Layout: existing question-first scroll story retained by request. */
:root {
  --layout-ink: #60351e;
  --layout-copy: #745743;
  --layout-muted: #79543c;
  --layout-accent: #9d5229;
  --layout-rule: #e4c9af;
  --layout-paper: #fff9f1;
  --layout-surface: #f2e9dd;
  --layout-graphic: #d8b596;
  --layout-display: "Fraunces Heading", Georgia, serif;
  --layout-body: ui-sans-serif, system-ui, -apple-system, sans-serif;
}
html, body { overflow-x: clip; }
.story-narrative { font-family: var(--layout-body); }
.story-narrative h1, .story-narrative h2, .story-narrative h3 {
  min-width: 0; overflow-wrap: break-word;
}
.story-narrative :is(a, button):focus-visible {
  outline: 3px solid var(--layout-accent); outline-offset: 4px; transition: none;
}
.story-narrative ::selection { background: var(--layout-rule); color: var(--layout-ink); }
.story-narrative .story-main { overflow: clip; }
.story-narrative .story-journey { padding-left: 0; }
.story-narrative .story-journey::before,
.story-narrative .story-progress { display: none; }

.story-narrative .story-gate { position: relative; border: 0; }
.story-narrative .story-gate__pin { position: relative; }
.story-narrative .story-gate__title-block {
  min-height: 80svh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
}
.story-narrative .story-gate h2 {
  margin: 0; max-width: 1000px; text-wrap: balance;
  color: var(--layout-ink); font: 550 clamp(2.5rem, 5.8vw, 5.2rem)/1.15 var(--layout-display);
  letter-spacing: -.045em;
}
html[lang="zh-CN"] .story-narrative .story-gate h2 {
  font-family: var(--layout-body);
  font-weight: 600; line-height: 1.3; letter-spacing: -.035em;
}
.story-narrative .story-gate__caption { padding: 0 0 3.5rem; text-align: center; }
.story-narrative .story-gate__caption p { max-width: 650px; margin: .8rem auto 0; color: var(--layout-copy); font-size: 16px; line-height: 1.8; }
.story-narrative .story-gate__caption p.story-gate__chapter-name { color: var(--layout-accent); font-size: clamp(1.6rem, 3vw, 2.6rem); font-weight: 600; line-height: 1.3; }
.story-narrative .story-gate__scroll { display: none; }
.story-narrative .story-context__answer { text-align: center; }
.story-narrative .story-context__lead { margin: 0 0 2rem; color: var(--layout-accent); font-size: clamp(1.6rem, 3vw, 2.8rem); font-weight: 600; line-height: 1.35; text-wrap: balance; }
.story-narrative .story-context__images { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 3vw, 2.5rem); align-items: start; }
.story-narrative .story-context__images figure { min-width: 0; margin: 0; }
.story-narrative .story-context__images img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 14px; }
.story-narrative .story-context__people > img,
.story-narrative .story-context__content > div { aspect-ratio: 16/10; }
.story-narrative .story-context__content > div { display: grid; place-items: center; background: var(--layout-surface); border-radius: 14px; padding: clamp(.7rem, 2vw, 1.5rem); overflow: hidden; }
.story-narrative .story-context__content img { height: auto; object-fit: contain; border-radius: 7px; box-shadow: none; }
.story-narrative .story-context__images figcaption { margin-top: 1rem; color: var(--layout-muted); font-size: 14px; }
.story-narrative .story-context__detail { max-width: 720px; margin: 2rem auto 0; color: var(--layout-copy); font-size: 16px; line-height: 1.85; text-wrap: pretty; }

/* Explanations follow the thought vertically rather than beside it. */
.story-narrative .story-feature,
.story-narrative .story-decision,
.story-narrative .story-outcome,
.story-narrative .story-section__heading { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; text-align: center; }
.story-narrative .story-section { padding-block: clamp(4rem, 8vw, 7rem); border-block: 0; }
.story-narrative :is(.story-outcome__trial, .case-navigation) { border-block: 0; }
.story-narrative .story-section__heading > div,
.story-narrative .story-feature__copy,
.story-narrative .story-decision > div:not(.decision-visual),
.story-narrative .story-outcome > div,
.story-narrative .story-next > p { width: min(740px, 100%); margin-inline: auto; }
.story-narrative .story-section__heading > p { max-width: 740px; }
.story-narrative .story-section h2 { font-size: clamp(1.8rem, 3.6vw, 3.2rem); text-wrap: balance; }
html[lang="zh-CN"] .story-narrative .story-section h2 { font-size: clamp(1.7rem, 3.2vw, 2.8rem); }
.story-narrative .story-section__heading { margin-bottom: 3rem; }
.story-narrative .story-feature__recording {
  display: block; box-sizing: border-box; width: min(var(--layout-visual-width), 100%); height: auto;
  border: 1px solid var(--layout-rule); border-radius: 12px; background: #13171c;
}
.story-narrative .story-basic { align-items: stretch; }
.story-narrative .story-basic > p { text-align: center; margin-inline: auto; }
.story-narrative .story-basic__views { gap: clamp(1rem, 2.5vw, 2rem); }
.story-narrative .basic-view figcaption { text-align: center; }
.story-narrative .decision-visual { width: min(900px, 100%); margin-top: 1.5rem; }
.story-narrative .story-outcome__trial { justify-content: center; text-align: left; }
.story-narrative .story-next { text-align: center; }
.story-narrative .story-next h2 { margin-inline: auto; }
.story-narrative .story-model__legend,
.story-narrative .story-detail-grid { text-align: left; }

@media (min-width: 701px) and (prefers-reduced-motion: no-preference) {
  .story-motion-ready .story-gate { height: 155svh; }
  .story-motion-ready .story-gate--context { height: 210svh; }
  .story-motion-ready .story-gate__pin { position: sticky; top: 0; height: 100svh; overflow: clip; isolation: isolate; contain: paint; }
  .story-motion-ready .story-gate__title-block {
    position: absolute; top: 0; left: 50%;
    min-height: 0; width: 100%; transform: translate3d(-50%, 46svh, 0) translateY(-50%) scale(1);
    transform-origin: center; will-change: transform;
  }
  .js.story-motion-ready .story-gate [data-story-answer] {
    opacity: 0; transform: translate3d(0, 32px, 0);
    will-change: opacity, transform;
  }
  .story-motion-ready .story-gate__caption { position: absolute; inset: 37% 0 auto; }
  .story-motion-ready .story-gate__scroll { display: block; position: absolute; bottom: 8%; left: 50%; width: 1px; height: 48px; background: var(--layout-rule); opacity: 1; }
  .story-motion-ready .story-gate__scroll i { display: block; width: 1px; height: 40%; background: var(--layout-accent);  }
  .story-motion-ready .story-context__answer { position: absolute; top: 23%; left: 0; width: 100%; }
  .story-motion-ready .story-context__lead { margin-bottom: 1.5rem; font-size: clamp(1.7rem, 2.8vw, 2.6rem); }
  .story-motion-ready .story-context__images { width: min(950px, 100%); margin-inline: auto; }
  .story-motion-ready .story-context__people > img,
  .story-motion-ready .story-context__content > div { height: clamp(150px, 31vh, 370px); aspect-ratio: auto; }
  .story-motion-ready .story-context__images figcaption { margin-top: .65rem; }
  .story-motion-ready .story-context__detail { margin-top: 1.2rem; max-width: 720px; font-size: 15px; line-height: 1.7; }

}

@media (max-width: 700px) {
  .story-narrative .story-gate h2 { font-size: clamp(2.2rem, 9vw, 3.5rem); }
  .story-narrative .story-gate__title-block { min-height: 75svh; }
  .story-narrative .story-context__images { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .story-narrative .story-context__detail { margin-top: 2rem; }
  .story-narrative .story-gate__caption { padding-bottom: 2rem; }
  .story-narrative .story-gate__caption p { font-size: 15px; }
  .story-narrative .story-context__answer { padding-bottom: 3.5rem; }
  .story-narrative .story-section { padding-block: 3.5rem; }
  .story-narrative .story-ai-examples { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .story-narrative .story-detail-grid { gap: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
  .story-narrative .story-gate__title-block { min-height: 45svh; padding-block: 4rem; }
}

/* Details read as a working design case, rather than a row of marketing tiles. */
.story-narrative .layout-feature-cards > div {
  background: transparent; border: 0; border-top: 1px solid var(--layout-rule);
  border-radius: 0; padding: 1.2rem 0 0; box-shadow: none;
}
.story-narrative .layout-feature-cards strong { color: var(--layout-ink); font-size: 16px; font-weight: 600; }
.story-narrative .layout-feature-cards p { color: var(--layout-copy); font-size: 14px !important; }
.story-narrative .story-section h2 { font-weight: 600; }
.story-narrative .story-section :is(.story-note, .story-model-label) {
  color: var(--layout-muted); letter-spacing: 0; text-transform: none;
}
.story-narrative .story-model-label { font-size: 14px; font-weight: 500; }
.story-narrative .story-section__heading > p,
.story-narrative .story-feature__copy > p,
.story-narrative .story-decision > div > p,
.story-narrative .story-outcome > div > p { max-width: 65ch; margin-inline: auto; }
.story-narrative .decision-visual__content { background: var(--layout-paper); color: var(--layout-copy); }
.story-narrative .decision-visual i { background: var(--layout-graphic); }
.story-narrative .decision-visual__screen { background: var(--layout-ink); border-radius: 5px; }
.story-narrative .story-next { background: transparent; border-radius: 0; padding-inline: 0; }
.story-narrative .ai-sketch { background: var(--layout-ink); border-radius: 5px; }
.story-narrative .ai-sketch i { background: var(--layout-graphic); }
.story-narrative .ai-sketch i:first-child { background: var(--layout-surface); }
.story-narrative .story-outcome__trial { align-items: baseline; gap: 1rem; }
.story-narrative .story-outcome__trial strong { font-size: 2rem; font-variant-numeric: tabular-nums; }
.story-narrative .story-outcome__trial span { max-width: 40ch; }
@media (prefers-reduced-motion: reduce) {
  .story-narrative *, .story-narrative *::before, .story-narrative *::after {
    animation: none !important; transition: none !important; scroll-behavior: auto !important;
  }
}
html[lang="zh-CN"] .story-narrative .story-section__heading > p { text-wrap: balance; }

/* Scroll timelines keep the title and answer on the browser's animation path.
   Each named timeline is local to its chapter; contain spans the sticky interval. */
@media (min-width: 701px) and (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: --story-gate) and (animation-range: contain) {
    .story-native-scroll .story-gate { view-timeline: --story-gate block; }
    .story-native-scroll .story-gate__title-block {
      animation: story-question-morph 1s cubic-bezier(.4, 0, .2, 1) both;
      animation-timeline: --story-gate;
      animation-range: contain;
    }
    .story-native-scroll .story-gate--context .story-gate__title-block {
      animation-name: story-context-question-out;
      will-change: transform, opacity;
    }
    .story-native-scroll .story-gate [data-story-answer] {
      animation: story-answer-in 1s cubic-bezier(.4, 0, .2, 1) both;
      animation-timeline: --story-gate;
      animation-range: contain;
    }
    .story-native-scroll .story-gate__scroll {
      animation: story-cue-out 1s ease-out both;
      animation-timeline: --story-gate;
      animation-range: contain;
    }
  }
  @keyframes story-question-morph {
    0%, 8% { transform: translate3d(-50%, 46svh, 0) translateY(-50%) scale(1); }
    65%, 100% { transform: translate3d(-50%, 11svh, 0) translateY(-50%) scale(.48); }
  }
  @keyframes story-context-question-out {
    0%, 12% { opacity: 1; transform: translate3d(-50%, 46svh, 0) translateY(-50%) scale(1); }
    34%, 100% { opacity: 0; transform: translate3d(-50%, calc(46svh - 24px), 0) translateY(-50%) scale(.98); }
  }
  @keyframes story-answer-in {
    0%, 34% { opacity: 0; transform: translate3d(0, 32px, 0); }
    78%, 100% { opacity: 1; transform: translate3d(0, 0, 0); }
  }
  @keyframes story-cue-out {
    0% { opacity: 1; transform: translate3d(0, 0, 0); }
    24%, 100% { opacity: 0; transform: translate3d(0, 20px, 0); }
  }
}

/* Photo cards spread from a single stack when the gallery comes into view. */
.story-narrative .meeting-gallery {
  --gallery-card-size: clamp(150px, 22vw, 220px);
  --gallery-step: calc(var(--gallery-card-size) * .73);
  --gallery-spring: cubic-bezier(.2, .72, .24, 1.08);
  position: relative; width: 100%; height: calc(var(--gallery-card-size) + 90px);
  margin: 0 auto; isolation: isolate;
}
@supports (animation-timing-function: linear(0, 1)) {
  .story-narrative .meeting-gallery {
    --gallery-spring: linear(0, .187, .51, .779, .943, 1.019, 1.039, 1.034, 1.021, 1.01, 1.003, 1, 1);
  }
}
.story-narrative .meeting-gallery__slot {
  --gallery-stacked: translate3d(-50%, -50%, 0);
  --gallery-spread: translate3d(calc(-50% + (var(--gallery-index) - 2) * var(--gallery-step)), calc(-50% + var(--gallery-y)), 0);
  position: absolute; top: 50%; left: 50%; margin: 0;
  width: var(--gallery-card-size); aspect-ratio: 1;
  z-index: calc(5 - var(--gallery-index));
  transform: var(--gallery-spread);
}
.story-narrative .meeting-gallery__card {
  display: block; position: relative; width: 100%; height: 100%;
  overflow: clip; border-radius: 24px; background: var(--layout-ink);
  outline-offset: 5px; text-decoration: none; cursor: zoom-in;
  box-shadow: 0 15px 32px color-mix(in srgb, var(--layout-ink) 18%, transparent);
  transform: rotate(var(--gallery-tilt, var(--gallery-angle))) scale(var(--gallery-scale, 1));
}
.story-narrative .meeting-gallery__card img {
  display: block; width: 100%; height: 100%; object-fit: cover;
  border-radius: inherit; user-select: none; -webkit-user-drag: none;
}
.story-narrative .meeting-gallery__slot--speaker img { object-position: 45% center; }
.story-narrative .meeting-gallery__slot--content img { object-fit: cover; object-position: 53% center; }
.story-narrative .meeting-gallery__slot--room img { object-position: 51% 56%; }
.story-narrative .meeting-gallery__label {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.story-narrative .meeting-gallery__slot:focus-within { z-index: 6; }
.story-narrative .image-dialog__close:focus-visible { outline-color: var(--layout-paper); }
@media (hover: hover) and (pointer: fine) {
  .story-narrative .meeting-gallery__slot:hover { z-index: 7; }
}
@media (prefers-reduced-motion: no-preference) {
  .story-narrative .meeting-gallery[data-gallery-enter="pending"] {
    opacity: 0; pointer-events: none;
  }
  .story-narrative .meeting-gallery[data-gallery-enter="pending"] .meeting-gallery__slot {
    transform: var(--gallery-stacked);
  }
  .story-narrative .meeting-gallery[data-gallery-enter="playing"] {
    animation: meeting-gallery-reveal .4s ease-out .5s both;
  }
  .story-narrative .meeting-gallery[data-gallery-enter="playing"] .meeting-gallery__slot {
    animation: meeting-gallery-spread 1.05s var(--gallery-spring) calc(1s + var(--gallery-index) * .15s) both;
  }
  .story-narrative .meeting-gallery__card {
    translate: var(--gallery-drag-x, 0px) var(--gallery-drag-y, 0px);
    transition: transform .32s var(--gallery-spring), translate .5s var(--gallery-spring);
  }
  .story-narrative .meeting-gallery__card:focus-visible {
    --gallery-tilt: var(--gallery-hover-angle); --gallery-scale: 1.1;
  }
  @media (hover: hover) and (pointer: fine) {
    .story-narrative .meeting-gallery__slot:hover .meeting-gallery__card {
      --gallery-tilt: var(--gallery-hover-angle); --gallery-scale: 1.1;
    }
  }
  .story-narrative .meeting-gallery__slot:active,
  .story-narrative .meeting-gallery__slot:has([data-dragging]) { z-index: 8; }
  .story-narrative .meeting-gallery__card:active { --gallery-scale: 1.2; }
  .story-narrative .meeting-gallery__slot .meeting-gallery__card[data-dragging] {
    --gallery-scale: 1.1;
    transition-property: transform; cursor: grabbing;
  }
  @keyframes meeting-gallery-reveal {
    from { opacity: 0; }
    to { opacity: 1; }
  }
  @keyframes meeting-gallery-spread {
    from { transform: var(--gallery-stacked); }
    to { transform: var(--gallery-spread); }
  }
}
@media (max-width: 700px) {
  .story-narrative .meeting-gallery {
    --gallery-card-size: clamp(148px, 52vw, 200px);
    --gallery-step: calc(var(--gallery-card-size) * .76);
    display: flex; height: auto; overflow-x: auto; overflow-y: hidden;
    padding: 26px 14px; box-sizing: border-box; scroll-snap-type: x proximity;
    scroll-padding-inline: 14px; scrollbar-width: thin;
  }
  .story-narrative .meeting-gallery__slot {
    --gallery-stacked: translate3d(calc(min(19vw, 118px) - var(--gallery-index) * var(--gallery-step)), 0, 0);
    --gallery-spread: translate3d(0, calc(var(--gallery-y) * .45), 0);
    position: relative; inset: auto; flex: 0 0 var(--gallery-card-size);
    scroll-snap-align: start;
  }
  .story-narrative .meeting-gallery__slot + .meeting-gallery__slot {
    margin-inline-start: calc(var(--gallery-step) - var(--gallery-card-size));
  }
  .story-narrative .meeting-gallery__card { border-radius: 18px; }
}
.story-narrative .meeting-gallery__slot--content .meeting-gallery__card { background: var(--layout-surface); }
/* Keyboard users can reach the pictures even before the scroll reveal starts. */
@media (min-width: 701px) and (prefers-reduced-motion: no-preference) {
  .js.story-motion-ready .story-gate--context:focus-within [data-story-answer] {
    animation: none !important; opacity: 1 !important; transform: none !important;
  }
  .js.story-motion-ready .story-gate--context:focus-within .story-gate__title-block {
    animation: none !important; opacity: 0 !important;
  }
}
@media (min-width: 701px) {
  html[lang="zh-CN"] .story-narrative .story-gate h2[data-copy="vlBasicPrompt"] {
    max-width: 100%; white-space: nowrap; font-size: clamp(2.2rem, 5.2vw, 4.5rem);
  }
}

/* The opening story is six distinct screens: question, answer, then the next question. */
.story-narrative .story-thought {
  box-sizing: border-box; min-height: 100svh; padding-block: 4rem;
  display: grid; grid-template-columns: minmax(0, 1fr);
  align-content: center; justify-items: center; text-align: center;
}
.story-narrative .story-thought h2 {
  inline-size: min(1440px, calc(100vw - max(1em, 32px)));
  margin: 0; color: var(--layout-ink);
  font: 550 clamp(2.5rem, 5.8vw, 5.2rem)/1.15 var(--layout-display);
  letter-spacing: -.045em; text-wrap: balance;
}
html[lang="zh-CN"] .story-narrative .story-thought h2 {
  font-family: var(--layout-body); font-weight: 600; line-height: 1.3; letter-spacing: -.035em;
}
.story-narrative .story-response {
  box-sizing: border-box; min-height: 100svh; padding-block: clamp(3rem, 6svh, 5rem);
  display: flex; flex-direction: column; align-items: stretch; justify-content: center;
  gap: clamp(2rem, 5svh, 3rem); border: 0; text-align: center;
}
.story-narrative .story-response h2 {
  margin: 0; color: var(--layout-ink);
  font: 600 clamp(1.7rem, 3.2vw, 2.8rem)/1.25 var(--layout-display);
  letter-spacing: -.025em; text-wrap: balance;
}
html[lang="zh-CN"] .story-narrative .story-response h2 {
  font-family: var(--layout-body); line-height: 1.3; letter-spacing: -.025em;
}
.story-narrative .story-response__heading { width: 100%; }
.story-narrative .story-response__heading > p {
  max-width: 65ch; margin: 1.2rem auto 0; color: var(--layout-copy);
  font-size: 16px; line-height: 1.8; text-wrap: pretty;
}
html[lang="zh-CN"] .story-narrative .story-response__heading > p { text-wrap: balance; }
.story-narrative .story-response .story-context__answer {
  position: static; width: 100%; display: flex; flex-direction: column; align-items: stretch;
  opacity: 1; transform: none; visibility: visible;
}
.story-narrative .story-response .story-context__lead {
  max-width: 100%; margin: 0; color: var(--layout-accent);
  font-size: clamp(1.6rem, 2.8vw, 2.6rem); line-height: 1.35;
}
.story-narrative .story-response .story-context__detail { margin-top: 1.2rem; }
@media (max-width: 700px) {
  .story-narrative .story-thought { padding-block: 3rem; }
  .story-narrative .story-thought h2 { font-size: clamp(2.2rem, 9vw, 3.5rem); }
  .story-narrative .story-response { padding-block: 3rem; }
}
.story-narrative .story-response .story-basic__views { flex: 0 0 auto; }

/* Keep story sections centered while preserving natural scrolling. */
.story-narrative .story-section {
  box-sizing: border-box; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
}
/* Hang punctuation at the edges of each centered heading line. */
.story-narrative .story-heading-line { display: block; white-space: nowrap; }
.story-narrative .story-heading-punctuation { display: inline-block; width: 0; white-space: nowrap; text-align: start; overflow: visible; }
.story-narrative .story-heading-punctuation--leading > span {
  display: inline-block;
  transform: translateX(-100%);
}
