.client-story {
  --ink: #151819;
  --paper: #f2eee6;
  --line: #c7c7bd;
  --mono: GeistMono, monospace;
  --story-body: var(--body);
  --sans: var(--body);
  --pad: clamp(22px, 4.3vw, 72px);
}
html { scroll-behavior: smooth; scroll-padding-top: 32px; }
.client-story { background: var(--paper); color: var(--ink); }
.client-story a { color: inherit; text-decoration: none; }
.client-story img { display: block; width: 100%; height: auto; }
.client-story picture { display: block; }
.client-story :is(figure, p, h1, h2, h3, dl, dd) { margin: 0; }
.client-story a:focus-visible { outline: 2px solid currentColor; outline-offset: 6px; }
.opening { background: var(--ink); color: var(--paper); padding: 0 var(--pad); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr); align-items: center; gap: clamp(35px, 4vw, 70px); max-width: 1440px; margin: auto; padding-block: clamp(56px, 6vw, 96px) 70px; }
.client-story .hero-copy, .hero-visual { min-width: 0; }
.client-story .hero-copy { width: auto; }
.hero-copy h1 { font: 600 clamp(58px, 6.3vw, 96px)/1 var(--mono); letter-spacing: -.045em; }
.hero-copy h1 em { font-weight: 600; color: #bdcbd0; }
.standfirst { font: 400 clamp(16px, 1.3vw, 19px)/1.65 var(--sans); max-width: 390px; color: #c3c6c6; margin-top: 28px; }
.byline { font: 600 11px/1.8 var(--mono); color: #a6adaf; margin-top: 26px; }
/* One coherent browser window: consistent chrome, a bevel and a cast shadow. */
.hero-visual { position: relative; padding: 30px 4px 24px; perspective: 1300px; isolation: isolate; }
.hero-visual::before { content: ''; position: absolute; left: 7%; right: 0; bottom: 40px; height: 30%; border-radius: 50%; background: #000b; filter: blur(24px); transform: rotate(-5deg); z-index: -1; }
.browser-window { position: relative; border: 1px solid #79838e; border-radius: 11px; overflow: hidden; background: #333b45; transform: rotateX(6deg) rotateY(-13deg) rotateZ(1deg); transform-origin: 50% 55%; box-shadow: 1px 1px 0 #87939e, 2px 3px 0 #596773, 3px 5px 0 #38434d, 5px 8px 0 #202a34, -15px 36px 45px #0008; }
.browser-chrome { user-select: none; background: #3a4149; color: #c3c9ce; }
.browser-titlebar { height: 34px; display: flex; align-items: center; gap: 18px; padding: 0 13px; background: #272d34; }
.window-controls { display: flex; gap: 7px; flex-shrink: 0; }
.window-controls i { width: 9px; height: 9px; border-radius: 50%; box-shadow: inset 0 0 0 1px #0003; background: #fa605b; }
.window-controls i:nth-child(2) { background: #edbd4e; }
.window-controls i:nth-child(3) { background: #41bd68; }
.browser-tab { align-self: end; display: flex; align-items: center; gap: 9px; height: 28px; min-width: 155px; padding: 0 12px; border-radius: 8px 8px 0 0; background: #3a4149; font: 10px/1 var(--sans); color: #e0e5e8; }
.browser-tab svg { width: 13px; height: 13px; flex-shrink: 0; }
.browser-tab .tab-close { margin-left: auto; width: 12px; height: 12px; }
.browser-chrome svg path, .browser-chrome svg rect { stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.browser-tab>svg:first-child path { fill: #dce3e7; stroke: none; }
.browser-titlebar>.new-tab { width: 13px; height: 13px; margin-left: -7px; }
.browser-toolbar { height: 40px; display: flex; align-items: center; gap: 13px; padding: 0 12px; border-bottom: 1px solid #10171c; box-shadow: inset 0 1px 0 #ffffff03; }
.browser-navigation { display: flex; align-items: center; gap: 10px; }
.browser-navigation svg { width: 15px; height: 15px; }
.browser-navigation svg:nth-child(2) { opacity: .35; }
.browser-address { flex: 1; min-width: 0; height: 27px; display: flex; align-items: center; gap: 9px; padding: 0 10px; border: 1px solid #515b65; border-radius: 6px; background: #222930; font: 10px/1 var(--sans); color: #c8cfd5; }
.browser-address svg { width: 12px; height: 12px; flex-shrink: 0; color: #b0bbc4; }
.browser-menu { width: 14px; height: 14px; fill: currentColor; flex-shrink: 0; }
.browser-viewport { position: relative; background: #090c0e; }
.browser-viewport::after { content: ''; pointer-events: none; position: absolute; inset: 0; background: linear-gradient(125deg, #ffffff09, transparent 46%); }
.live-link { display: flex; justify-content: space-between; gap: 20px; width: fit-content; min-height: 44px; align-items: center; font: 600 12px/1.5 var(--mono); margin: 35px 0 0 auto; border-bottom: 1px solid #606c73; }
.reading-layout { display: grid; grid-template-columns: 180px minmax(0, 780px); justify-content: space-between; align-items: start; gap: clamp(50px, 7vw, 110px); max-width: 1230px; margin: auto; padding: clamp(64px, 8vw, 112px) var(--pad) 64px; }
.story-rail { position: sticky; top: 32px; font: 600 12px/1.7 var(--mono); }
.chapter-nav>a { display: flex; min-height: 44px; align-items: center; }
.chapter-nav>a:hover { color: #516e81; }
.project-details { border-top: 1px solid var(--line); margin-top: 26px; padding-top: 24px; }
.project-details dt { font-size: 11px; font-family: var(--mono); font-weight: 600; color: #616965; margin-bottom: 8px; }
.project-details dd { font-size: 11px; font-family: var(--body); font-weight: 400; line-height: 1.9; }
.story-body { min-width: 0; font: 400 clamp(18px, 1.45vw, 21px)/1.78 var(--story-body); color: #373e3d; }
.story-body p+p { margin-top: 24px; }
.story-body .intro { font-size: clamp(25px, 2.15vw, 31px); line-height: 1.55; letter-spacing: -.015em; color: #242a2a; }
.chapter { scroll-margin-top: 40px; }
.chapter+.chapter { padding-top: 64px; margin-top: 64px; border-top: 1px solid var(--line); }
.chapter h2 { font: 900 clamp(27px, 2.5vw, 37px)/1.15 var(--mono); letter-spacing: -.035em; color: #1c2525; margin-bottom: 26px; }
.first-chapter h2 { margin-top: 45px; }
.story-body h3 { font: 600 22px/1.3 var(--mono); letter-spacing: -.025em; color: #222b2b; }
.story-body figure { margin-block: 32px; }
.story-body figure>picture>img, .image-pair img { border: 1px solid #b8bab4; border-radius: 4px; }
.image-pair { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; margin-block: 36px; }
.image-pair figure { margin: 0; }
.story-body .email-feature { max-width: 500px; margin: 36px auto; padding: 20px; border: 1px solid #363f44; border-radius: 6px; background: var(--ink); }
.email-feature img { border: 0!important; border-radius: 0!important; }
.email-feature figcaption { font: 600 10px/1.7 var(--mono); color: #a3adb1; margin-top: 14px; }
.next-list { margin: 32px 0; padding: 0; list-style: none; }
.next-list>li { padding: 26px 0; border-top: 1px solid var(--line); }
.next-list>li:last-child { border-bottom: 1px solid var(--line); }
.next-list p { font-size: 18px; line-height: 1.75; margin-top: 12px; }
.story-body .credits { font: 600 10px/1.8 var(--mono); color: #68716d; margin-top: 44px; max-width: 650px; }
@media(min-width:1700px) { .reading-layout { max-width: 1330px; } }
@media(max-width:1000px) {
  .reading-layout { grid-template-columns: 145px minmax(0, 1fr); gap: 44px; }
  .hero-grid { gap: 30px; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); }
  .hero-copy h1 { font-size: clamp(55px, 6.6vw, 70px); }
  .browser-titlebar { gap: 12px; }
  .browser-navigation { gap: 7px; }
  .browser-toolbar { gap: 10px; }
}
@media(max-width:850px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; padding-block: 42px 45px; }
  .hero-copy h1 { font-size: clamp(64px, 10vw, 85px); }
  .hero-copy h1 br { display: none; }
  .hero-copy h1 em::before { content: ' '; }
  .standfirst { max-width: 590px; }
  .hero-visual { max-width: 680px; width: 100%; margin: auto; padding-top: 22px; }
  .reading-layout { display: block; padding-top: 36px; max-width: 800px; }
  .story-rail { position: static; margin-bottom: 40px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
  .chapter-nav { display: flex; flex-wrap: wrap; gap: 0 26px; }
  .chapter-nav>a { font-size: 11px; }
  .project-details { margin-top: 18px; padding-top: 18px; }
  .project-details>div { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 16px; }
  .story-body .intro { font-size: 27px; }
}
@media(max-width:650px) {
  .hero-grid { padding-block: 38px 32px; gap: 15px; }
  .hero-copy h1 { font-size: clamp(63px, 16vw, 84px); line-height: .98; }
  .hero-copy h1 br { display: block; }
  .hero-copy h1 em::before { content: ''; }
  .standfirst { font-size: 16px; line-height: 1.6; margin-top: 23px; }
  .byline { font-size: 10px; margin-top: 20px; }
  .hero-visual { padding: 18px 0 20px; perspective: 1000px; }
  .browser-window { transform: rotateX(4deg) rotateY(-8deg) rotateZ(1deg); border-radius: 9px; box-shadow: 1px 1px 0 #87939e, 2px 3px 0 #596773, 3px 5px 0 #38434d, -8px 22px 28px #0008; }
  .browser-titlebar { height: 28px; padding-inline: 10px; gap: 14px; }
  .window-controls { gap: 5px; }
  .window-controls i { width: 7px; height: 7px; }
  .browser-tab { height: 23px; min-width: 132px; font-size: 9px; padding-inline: 10px; }
  .browser-tab svg { width: 11px; height: 11px; }
  .browser-titlebar>.new-tab { width: 11px; height: 11px; }
  .browser-toolbar { height: 34px; gap: 8px; padding-inline: 9px; }
  .browser-navigation { gap: 5px; }
  .browser-navigation svg { width: 12px; height: 12px; }
  .browser-address { height: 23px; font-size: 9px; gap: 5px; padding-inline: 7px; }
  .browser-address svg { width: 10px; height: 10px; }
  .browser-menu { width: 12px; height: 12px; }
  .live-link { font-size: 11px; margin-top: 25px; }
  .reading-layout { padding-top: 26px; padding-bottom: 42px; }
  .story-rail { margin-bottom: 30px; padding-bottom: 20px; }
  .chapter-nav { gap: 0 20px; }
  .chapter-nav>a { font-size: 11px; }
  .story-body { font-size: 18px; line-height: 1.75; }
  .story-body .intro { font-size: 24px; line-height: 1.55; }
  .chapter+.chapter { margin-top: 44px; padding-top: 44px; }
  .chapter h2 { font-size: 29px; }
  .first-chapter h2 { margin-top: 36px; }
  .image-pair { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .story-body figure { margin-block: 28px; }
  .story-body .email-feature { padding: 16px; }
  .next-list p { font-size: 17px; }
}
@media(prefers-reduced-motion:reduce) { html { scroll-behavior: auto; } }

.browser-tab .tab-close { width: 18px; height: 18px; margin-left: auto; }
.browser-navigation .icon-arrow { width: 16px; height: 16px; }
.browser-navigation .icon-arrow:nth-child(2) { opacity: .35; }
