/* Hands user stories — editorial case pages built from real user interviews. */
.story-page {
  background: var(--color-bg);
  color: var(--color-text);
}

.story-main {
  padding-bottom: clamp(72px, 10vw, 132px);
}

.story-shell {
  width: min(1280px, calc(100% - var(--layout-inline-space)));
  margin-inline: auto;
}

.story-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .45rem;
  margin-bottom: clamp(28px, 5vw, 52px);
  color: color-mix(in srgb, var(--color-text) 54%, transparent);
  font-size: .78rem;
}

.story-breadcrumb a {
  color: inherit;
  text-decoration: none;
}

.story-breadcrumb a:hover { color: var(--color-text); }

.story-hero {
  padding-top: clamp(64px, 9vw, 112px);
}

.story-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(340px, .72fr);
  gap: clamp(44px, 7vw, 92px);
  align-items: center;
}

.story-hero-copy h1 {
  max-width: 14ch;
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(44px, 6.4vw, 78px);
  font-weight: var(--font-heading-weight);
  letter-spacing: -.038em;
  line-height: .98;
}

.story-hero-copy .story-lede {
  max-width: 61ch;
  margin: 24px 0 0;
  color: color-mix(in srgb, var(--color-text) 72%, transparent);
  font-size: clamp(1.02rem, 1.7vw, 1.22rem);
  line-height: 1.7;
}

.story-identity {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin-top: 24px;
}

.story-identity span {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding: .42rem .72rem;
  border: 1px solid var(--marketing-panel-border);
  border-radius: 999px;
  background: color-mix(in srgb, var(--color-surface) 80%, transparent);
  font-size: .76rem;
  font-weight: 720;
}

.story-profile {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  border: 1px solid var(--marketing-panel-border);
  border-radius: 30px;
  background: var(--color-neutral-100);
  box-shadow: 0 30px 80px rgb(0 0 0 / 13%);
}

.story-profile > img {
  width: 100%;
  height: 100%;
  min-height: 560px;
  display: block;
  object-fit: cover;
  object-position: 50% 28%;
}

.story-profile-card {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: center;
  gap: .8rem;
  padding: .8rem .9rem;
  border: 1px solid rgb(255 255 255 / 34%);
  border-radius: 18px;
  background: rgb(22 19 16 / 92%);
  color: #fff7ed;
  box-shadow: 0 18px 44px rgb(0 0 0 / 28%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.story-profile-card img {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  object-fit: contain;
  background: #fff;
}

.story-profile-card span {
  min-width: 0;
  display: grid;
  gap: .15rem;
}

.story-profile-card strong {
  color: #fff7ed;
  font-family: var(--font-heading);
  font-size: 1.08rem;
  font-weight: var(--font-heading-weight);
  line-height: 1.05;
  text-shadow: 0 1px 1px rgb(0 0 0 / 36%);
}

.story-profile-card small {
  color: rgb(255 247 237 / 78%);
  font-size: .76rem;
  font-weight: 650;
}

.story-quick-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .8rem;
  margin-top: clamp(34px, 5vw, 58px);
}

.story-quick-facts > div {
  min-width: 0;
  padding: 1rem 1.05rem;
  border-top: 1px solid var(--marketing-panel-border);
}

.story-quick-facts dt {
  margin-bottom: .45rem;
  color: var(--color-accent-700);
  font-size: .67rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.story-quick-facts dd {
  margin: 0;
  font-size: .9rem;
  font-weight: 650;
  line-height: 1.45;
}

.story-layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 790px);
  justify-content: center;
  gap: clamp(42px, 7vw, 92px);
  margin-top: clamp(78px, 10vw, 128px);
}

.story-rail {
  position: sticky;
  top: 104px;
  height: fit-content;
  display: grid;
  gap: .2rem;
  padding: 1rem;
  border: 1px solid var(--marketing-panel-border);
  border-radius: 18px;
  background: color-mix(in srgb, var(--color-surface) 72%, transparent);
}

.story-rail > span {
  margin-bottom: .35rem;
  color: color-mix(in srgb, var(--color-text) 48%, transparent);
  font-size: .66rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.story-rail a {
  padding: .38rem .3rem;
  border-radius: 8px;
  color: color-mix(in srgb, var(--color-text) 67%, transparent);
  font-size: .78rem;
  font-weight: 650;
  line-height: 1.35;
  text-decoration: none;
}

.story-rail a:hover {
  background: var(--color-accent-100);
  color: var(--color-text);
}

.story-copy {
  min-width: 0;
  font-size: 1.03rem;
  line-height: 1.78;
}

.story-copy > p:first-child {
  margin-top: 0;
  font-size: 1.13rem;
}

.story-copy h2 {
  scroll-margin-top: 110px;
  max-width: 18ch;
  margin: clamp(62px, 9vw, 92px) 0 20px;
  font-family: var(--font-heading);
  font-size: clamp(30px, 4vw, 46px);
  font-weight: var(--font-heading-weight);
  letter-spacing: -.03em;
  line-height: 1.04;
}

.story-copy h2:first-of-type { margin-top: 0; }

.story-copy p {
  margin: 0 0 1.25rem;
  color: color-mix(in srgb, var(--color-text) 75%, transparent);
}

.story-before-after {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .85rem;
  margin: 1.6rem 0 1.9rem;
}

.story-before-after section {
  padding: 1.2rem 1.25rem;
  border: 1px solid var(--marketing-panel-border);
  border-radius: 20px;
  background: color-mix(in srgb, var(--color-surface) 84%, transparent);
}

.story-before-after section:last-child {
  background: color-mix(in srgb, var(--color-accent-100) 55%, var(--color-surface));
}

.story-before-after span,
.story-flow span,
.story-data-card small {
  display: block;
  margin-bottom: .45rem;
  color: var(--color-accent-700);
  font-size: .67rem;
  font-weight: 850;
  letter-spacing: .075em;
  text-transform: uppercase;
}

.story-before-after strong {
  display: block;
  margin-bottom: .55rem;
  font-family: var(--font-heading);
  font-size: 1.16rem;
  line-height: 1.15;
}

.story-before-after p { margin: 0; font-size: .91rem; line-height: 1.6; }

.story-quote {
  margin: 2rem 0;
  padding: clamp(1.35rem, 3vw, 2rem);
  border: 0;
  border-radius: 22px;
  background: var(--marketing-orange-section);
}

.story-quote p {
  margin: 0;
  color: var(--color-text);
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 2.8vw, 2rem);
  font-style: normal;
  letter-spacing: -.025em;
  line-height: 1.2;
}

.story-quote cite {
  display: block;
  margin-top: .85rem;
  color: color-mix(in srgb, var(--color-text) 58%, transparent);
  font-size: .78rem;
  font-style: normal;
  font-weight: 700;
}

.story-flow {
  display: grid;
  gap: .7rem;
  margin: 1.5rem 0 2rem;
  padding: 0;
  list-style: none;
  counter-reset: story-step;
}

.story-flow li {
  counter-increment: story-step;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: .9rem;
  align-items: start;
  padding: .9rem 0;
  border-bottom: 1px solid var(--marketing-panel-border);
}

.story-flow li::before {
  content: counter(story-step, decimal-leading-zero);
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--color-accent);
  color: var(--color-bg);
  font-size: .68rem;
  font-weight: 850;
}

.story-flow strong { display: block; margin-bottom: .28rem; font-size: .96rem; }
.story-flow p { margin: 0; font-size: .91rem; line-height: 1.58; }

.story-data-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .8rem;
  margin: 1.5rem 0 1.8rem;
}

.story-data-card {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: .85rem;
  align-items: start;
  padding: 1rem;
  border: 1px solid var(--marketing-panel-border);
  border-radius: 18px;
  background: color-mix(in srgb, var(--color-surface) 82%, transparent);
}

.story-data-card > img {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.story-data-card div { min-width: 0; }
.story-data-card strong { display: block; margin-bottom: .3rem; font-size: .95rem; }
.story-data-card p { margin: 0; font-size: .84rem; line-height: 1.52; }

.story-note {
  margin: 1.8rem 0;
  padding: 1rem 1.15rem;
  border-left: 3px solid var(--color-accent);
  border-radius: 0 14px 14px 0;
  background: color-mix(in srgb, var(--color-neutral-100) 72%, transparent);
}

.story-note strong { display: block; margin-bottom: .25rem; }
.story-note p { margin: 0; font-size: .9rem; line-height: 1.6; }

.story-feedback {
  margin-top: 1.7rem;
  padding: 1.2rem 1.3rem;
  border: 1px solid var(--marketing-panel-border);
  border-radius: 20px;
  background: color-mix(in srgb, var(--marketing-green-section) 72%, var(--color-surface));
}

.story-feedback strong {
  display: block;
  margin-bottom: .45rem;
  font-family: var(--font-heading);
  font-size: 1.08rem;
}

.story-feedback p { margin: 0; font-size: .9rem; }

.story-cta {
  margin-top: clamp(70px, 10vw, 112px);
  padding: clamp(1.6rem, 4vw, 2.6rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.5rem;
  border: 1px solid var(--marketing-panel-border);
  border-radius: 28px;
  background: var(--marketing-orange-section);
}

.story-cta h2 {
  max-width: 16ch;
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.04;
}

.story-cta p {
  max-width: 58ch;
  margin: .7rem 0 0;
  color: color-mix(in srgb, var(--color-text) 68%, transparent);
  line-height: 1.6;
}

.story-cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .65rem;
}

@media (max-width: 980px) {
  .story-hero-grid { grid-template-columns: minmax(0, 1fr) minmax(280px, .62fr); gap: 32px; }
  .story-profile, .story-profile > img { min-height: 460px; }
  .story-quick-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .story-layout { grid-template-columns: 1fr; }
  .story-rail { position: static; display: flex; flex-wrap: wrap; gap: .25rem .4rem; }
  .story-rail > span { width: 100%; }
  .story-copy { max-width: 790px; margin-inline: auto; }
}

@media (max-width: 700px) {
  .story-shell { width: min(100% - 36px, 1280px); }
  .story-hero { padding-top: 42px; }
  .story-breadcrumb { margin-bottom: 28px; }
  .story-hero-grid { grid-template-columns: 1fr; }
  .story-hero-copy h1 { max-width: none; font-size: clamp(38px, 12vw, 58px); }
  .story-profile { min-height: 0; aspect-ratio: 4 / 5; }
  .story-profile > img { min-height: 0; height: 100%; }
  .story-profile-card { left: 12px; right: 12px; bottom: 12px; }
  .story-quick-facts { grid-template-columns: 1fr 1fr; margin-top: 26px; }
  .story-quick-facts > div { padding: .8rem .35rem; }
  .story-layout { margin-top: 62px; gap: 34px; }
  .story-rail { overflow-x: auto; flex-wrap: nowrap; padding: .7rem; scrollbar-width: none; }
  .story-rail::-webkit-scrollbar { display: none; }
  .story-rail > span { display: none; }
  .story-rail a { flex: none; white-space: nowrap; }
  .story-copy { font-size: .98rem; }
  .story-copy > p:first-child { font-size: 1.05rem; }
  .story-copy h2 { max-width: none; margin-top: 54px; }
  .story-before-after,
  .story-data-grid { grid-template-columns: 1fr; }
  .story-quote { margin-inline: -4px; }
  .story-cta { grid-template-columns: 1fr; }
  .story-cta-actions { justify-content: flex-start; }
  .story-cta-actions .btn { width: 100%; justify-content: center; }
}

@media (max-width: 430px) {
  .story-quick-facts { grid-template-columns: 1fr; }
  .story-profile-card { grid-template-columns: 44px minmax(0, 1fr); }
  .story-profile-card img { width: 44px; height: 44px; }
  .story-data-card { grid-template-columns: 40px minmax(0, 1fr); }
  .story-data-card > img { width: 40px; height: 40px; }
}
