:root{--red:#bb070d;--ink:#161717;--paper:#fff;--muted:#5a5d5b;--line:#d8d8d2;font-family:Arial,Helvetica,sans-serif;color:var(--ink);background:var(--paper);font-synthesis:none}*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:100px}body{margin:0}a{color:inherit;text-underline-offset:4px}button{font:inherit;color:inherit}a:focus-visible,button:focus-visible{outline:3px solid var(--red);outline-offset:5px}img{display:block;max-width:100%}figure,p,h1,h2,h3{margin:0}button,a{-webkit-tap-highlight-color:transparent}.skip{position:fixed;top:-100px;left:10px;z-index:100;background:white;padding:15px}.skip:focus{top:10px}.topbar{height:76px;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:0 3vw;border-bottom:1px solid #e8e8e4;background:#ffffffed;position:sticky;top:0;z-index:20;backdrop-filter:blur(12px)}.wordmark img{width:154px}.topbar nav{display:flex;gap:8px}.topbar nav a{font-size:12px;text-decoration:none;padding:10px 13px;border-bottom:2px solid transparent}.topbar nav a[aria-current]{border-color:var(--red);color:var(--red)}nav small{font-size:10px;margin-right:6px}.people-link{font-size:12px;text-decoration:none}.shell{width:min(1100px,62vw);margin:auto}.hero{text-align:center;padding:72px 0 66px}.eyebrow,.section-label,.region,.story-count{font-size:10px;font-weight:700;letter-spacing:2px;text-transform:uppercase}.eyebrow span{margin:0 15px}.hero h1{font-weight:900;font-size:clamp(42px,4.6vw,80px);letter-spacing:-.055em;line-height:1.02;color:var(--red);margin:24px -20px}.focus{font-size:21px;font-weight:600;color:#4c5050}.section-label{display:flex;justify-content:space-between;border-top:1px solid var(--line);padding:17px 0;letter-spacing:1.7px}.services{padding-bottom:10px}.service{position:relative;display:flex;align-items:center;padding:33px 0;border-bottom:1px solid var(--line);gap:25px}.number{color:var(--red);font:12px 'Courier New',monospace;align-self:flex-start;padding-top:8px}.service-copy{flex:1;text-align:center}.region{font-size:9px;letter-spacing:3px;margin-bottom:12px}.service h2{font-size:clamp(25px,2.5vw,39px);letter-spacing:-1.3px;line-height:1.08;margin-bottom:14px}.description{font-size:14px;color:var(--muted);line-height:1.6}.definition{display:block;font-size:10px;color:#6d706c;margin-top:8px}.people-intro{padding-top:85px}.people-intro h2{font-size:clamp(36px,4vw,62px);letter-spacing:-2.7px;line-height:1.06;margin:28px 0 20px}.people-intro h2 em{font-family:Georgia,serif;font-weight:normal;color:var(--red)}.people-intro>p{font-size:13px;color:var(--muted)}.people-jump{display:flex;gap:30px;margin:32px 0 50px}.people-jump a{display:flex;align-items:center;gap:12px;text-decoration:none;font-size:12px}.people-jump img{height:53px;width:42px;object-fit:cover;object-position:top}.person-story{height:175vh;position:relative;--p:0}.story-sticky{position:sticky;top:max(94px,calc((100svh - 610px)/2));padding:15px 0 25px}.story-top{display:flex;justify-content:space-between;margin-bottom:22px}.story-count{color:var(--red)}.story-window{overflow:hidden;width:100%;background:white}.story-track{display:flex;transform:translate3d(calc(var(--p) * -100%),0,0);will-change:transform}.panel{flex:0 0 100%;min-width:0;height:470px;display:flex}.before{align-items:center;background:#f1eee7}.problem-copy{flex:0 0 31%;padding:26px}.problem-copy .eyebrow{font-size:8px;color:var(--red);letter-spacing:1px}.problem-copy h2{font-size:clamp(27px,2.9vw,46px);font-weight:500;letter-spacing:-1.8px;line-height:1.08;margin:22px 0}.red-rule{display:block;background:var(--red);height:3px;width:45px}.before>.scene{width:69%;height:100%;object-fit:contain;background:white}.after{gap:25px}.portrait{width:23%;flex-shrink:0}.portrait>img{width:100%;height:320px;object-fit:cover;object-position:top}.portrait figcaption{padding-top:15px}.portrait strong{display:block;font-size:24px;margin-bottom:8px}.portrait span{display:block;font-size:10px;line-height:1.6;color:var(--muted)}.portrait a{display:inline-block;font-size:11px;color:var(--red);margin-top:10px}.solution{flex:1;min-width:0}.solution>.scene{height:280px;width:100%;object-fit:contain}.solution-copy{display:grid;grid-template-columns:1fr 1fr;gap:22px;border-top:1px solid var(--line);padding-top:20px}.solution h2{color:var(--red);font-size:clamp(28px,2.9vw,43px);line-height:.98;letter-spacing:-1.5px;font-weight:900}.solution h3{font-size:13px;line-height:1.4;margin-bottom:8px}.solution p{font-size:12px;line-height:1.6;color:var(--muted)}.story-controls{display:flex;gap:20px;align-items:center;margin-top:20px}.story-controls button{border:0;background:none;padding:10px 0;cursor:pointer;font-size:11px;flex-shrink:0}.story-controls button[aria-pressed=true]{color:var(--red)}.progress{height:1px;background:var(--line);width:100%}.progress i{display:block;width:calc(var(--p) * 100%);height:2px;background:var(--red)}.experience{padding:50px 0;border-top:1px solid var(--line);text-align:center}.experience h2{font-size:17px;margin-bottom:25px}.experience div{font-size:11px;line-height:2.5}.experience span:before{content:'|';margin:0 16px;color:#aaa}footer{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:25px 0 40px;border-top:1px solid var(--line);font-size:9px}footer img{width:100px}footer a{color:var(--muted)}
/* Company contact beneath the partner businesses. */
.experience{padding-bottom:24px}
.contact{text-align:center;padding:0 0 40px}
.contact h2{font-size:17px;margin-bottom:10px}
.contact-link{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:0 8px;font-size:12px;text-decoration:none}
.contact-link:hover{color:var(--red);text-decoration:underline}
.contact-icon{display:block;flex-shrink:0}
/* 02: one uninterrupted landscape, with three readable service columns. */
.company.landscape{position:relative;color:white;background:linear-gradient(90deg,#071b16d9,#0b1915b5),url('assets/background.webp') center/cover;padding:24px 32px 160px}.landscape .section-label{border-top:0;border-bottom:1px solid #ffffff55;padding-top:0}.landscape .services{display:grid;grid-template-columns:repeat(3,1fr);gap:27px;padding-top:40px}.landscape .service{display:block;border:0;padding:0}.landscape .number{display:block;color:#ff927c;margin-bottom:25px}.landscape .service-copy{text-align:left}.landscape .service h2{font-size:clamp(23px,2.3vw,36px);letter-spacing:-1px;line-height:1.08;min-height:115px}.landscape .region{font-size:8px;color:#f3d5c9;letter-spacing:1.5px}.landscape .description{font-size:13px;color:white}.landscape .definition{color:#ddd}.landscape+.people-intro{padding-top:85px}
/* 03: editorial spread with a single red line joining the services. */
body[data-mode=editorial]{--paper:#f5f2ec;--red:#bc3c23;--line:#d2cbc0}.editorial .hero{text-align:left;display:grid;grid-template-columns:1.2fr .8fr;align-items:end;gap:30px;padding:65px 0}.editorial .hero h1{margin:22px 0;font-size:clamp(42px,4.4vw,70px);line-height:.98}.editorial .hero .eyebrow{font-size:9px}.editorial .hero .eyebrow span{margin:0 5px}.hero-image img{height:360px;width:100%;object-fit:cover}.hero-image figcaption{font-size:10px;margin-top:12px;color:var(--muted)}.company.editorial .services{position:relative;margin-top:15px}.company.editorial .services:before{content:'';position:absolute;left:13px;top:22px;bottom:54px;width:2px;background:var(--red)}.company.editorial .service{gap:32px;padding:32px 0}.company.editorial .number{position:relative;z-index:1;background:var(--paper);padding:8px 5px}.company.editorial .service-copy{text-align:left}.company.editorial h2{font-size:clamp(28px,3vw,45px)}.service-arrow{font-size:36px;color:var(--red)}.editorial .people-intro h2 em{font-style:normal}.editorial .solution h2{font-family:Georgia,serif;font-weight:normal}.editorial .story-window{background:var(--paper)}.editorial .after{background:var(--paper)}
@media(min-width:1800px){.shell{width:60vw;max-width:1200px}.hero h1{font-size:80px}.panel{height:530px}.story-sticky{top:max(94px,calc((100svh - 670px)/2))}.solution>.scene{height:330px}.portrait>img{height:370px}}
@media(max-width:1100px){.shell{width:84vw}.hero{padding-top:55px}.panel{height:480px}.solution-copy{grid-template-columns:1fr;gap:9px}.solution h2 br{display:none}.solution>.scene{height:270px}.portrait>img{height:315px}.landscape .service h2{min-height:95px}.editorial .hero h1{font-size:48px}}
@media(max-width:700px){html{scroll-padding-top:80px}.topbar{height:65px;padding:0 15px;gap:10px}.wordmark img{width:112px}.topbar nav{gap:0}.topbar nav a{font-size:10px;padding:11px 8px}.topbar nav small,.people-link{display:none}.shell{width:calc(100% - 36px)}.hero{padding:48px 0 42px}.hero h1{font-size:clamp(36px,8.3vw,56px);margin:23px 0;letter-spacing:-2px}.hero .eyebrow{font-size:9px;letter-spacing:1.5px}.focus{font-size:16px}.section-label{font-size:8px;letter-spacing:1.3px}.service{gap:12px;padding:27px 0}.service h2{font-size:29px;letter-spacing:-1px}.service-copy{text-align:left}.region{font-size:8px}.description{font-size:13px}.definition{font-size:9px}.people-intro{padding-top:55px}.people-intro h2{font-size:38px;letter-spacing:-1.6px}.people-jump{gap:20px;justify-content:space-between;margin-bottom:32px}.people-jump a{display:block}.people-jump img{height:70px;width:56px;margin-bottom:9px}.person-story{height:165svh}.story-sticky{top:78px;padding:10px 0 15px}.story-top{margin-bottom:13px}.story-top .eyebrow,.story-count{font-size:8px}.panel{height:calc(100svh - 190px);max-height:650px;min-height:440px}.before{display:flex;flex-direction:column;justify-content:center}.problem-copy{flex:0 0 auto;width:100%;padding:24px}.problem-copy h2{font-size:35px;line-height:1.04;margin:13px 0}.problem-copy .red-rule{display:none}.before>.scene{width:100%;height:58%;object-fit:contain}.after{display:grid;grid-template-columns:74px 1fr;grid-template-rows:auto 1fr;gap:12px;align-content:start}.portrait{width:100%;display:contents}.portrait>img{width:74px;height:98px;object-fit:cover;grid-column:1;grid-row:1}.portrait figcaption{grid-column:2;grid-row:1;padding-top:0}.portrait strong{font-size:24px;margin-bottom:4px}.portrait span{font-size:9px}.portrait a{font-size:10px;margin-top:5px}.solution{grid-column:1/-1;grid-row:2;display:flex;flex-direction:column;justify-content:flex-start}.solution>.scene{height:44%;min-height:140px;max-height:230px}.solution-copy{padding:14px 0 0;gap:10px}.solution h2{font-size:36px;letter-spacing:-1.3px}.solution h2 br{display:none}.solution h3{font-size:12px;margin-bottom:5px}.solution p{font-size:12px;line-height:1.45}.story-controls{margin-top:10px;gap:14px}.story-controls button{font-size:10px}.experience{padding:30px 0}.experience h2{font-size:16px}.experience div{display:flex;flex-wrap:wrap;gap:5px 16px;justify-content:center;font-size:10px}.experience span:before{display:none}footer{flex-wrap:wrap;font-size:9px;gap:16px}footer img{width:100px}.company.landscape{padding:20px 24px 40px;background-position:55% center}.landscape .services{grid-template-columns:1fr;padding-top:20px;gap:28px}.landscape .service{display:flex;gap:20px}.landscape .number{margin-top:3px}.landscape .service h2{font-size:30px;min-height:0}.landscape .region{margin-bottom:9px}.landscape .description{font-size:13px}.landscape .definition{font-size:9px}.editorial .hero{grid-template-columns:1fr;padding:42px 0;gap:30px}.editorial .hero h1{font-size:48px}.hero-image img{height:220px}.company.editorial .service{gap:20px}.company.editorial h2{font-size:30px}.service-arrow{font-size:24px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.person-story{height:auto;margin:40px 0}.story-sticky{position:relative;top:0}.story-track{transform:none;display:block}.panel{margin-bottom:25px}.story-controls{display:none}.story-window{overflow:visible}}
/* Revision 2: reference-led hierarchy and open spacing. */
.company.white .service{border:0;padding:20px 0 24px;display:block}
.company.white .services{padding:0}
.company.white .service-copy{text-align:center}
.company.white h2{font-size:clamp(28px,2.5vw,40px);letter-spacing:-1.1px;margin-bottom:14px}
.company .region{margin:0 0 16px}
.company .description{font-size:16px;line-height:1.65}
.service-tagline{font-size:21px;line-height:1.4;margin-bottom:15px}
.company.landscape .services{padding-top:10px}
.company.landscape .service h2{margin-bottom:18px}
.company.landscape .service-tagline{font-size:18px}
.company.editorial .services:before{display:none}
.people-intro{padding-top:78px}
.people-intro h2{font:700 42px/1.1 Arial,Helvetica,sans-serif;letter-spacing:-1.3px;margin:0 0 30px}
.people-jump{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:32px;margin:0 0 60px;max-width:760px}
.people-jump a{display:block}
.people-jump img{height:253px;width:100%;max-width:200px;object-fit:cover;object-position:center 18%;margin:0 0 15px}
.people-jump span{display:block;font-size:27px;font-weight:700;letter-spacing:-.6px;text-align:left}
.solution-copy{border:0;display:block;padding-top:18px}
.solution h2{font-size:clamp(30px,2.8vw,44px);line-height:1.07;letter-spacing:-1.3px;margin-bottom:13px}
.solution h3{font:400 22px/1.3 Georgia,'Times New Roman',serif;margin:0 0 10px}
.solution p{font-size:16px;line-height:1.55;color:#404343;max-width:62ch}
@media(min-width:701px){
 .story-sticky{top:max(88px,calc((100svh - 650px)/2));padding:16px 0 20px}
 .story-top{margin-bottom:20px}
 .panel{height:540px}
 .after{gap:32px;align-items:flex-start}
 .portrait{width:25%;max-width:220px}
 .portrait>img{height:300px;object-position:center 18%}
 .portrait figcaption{padding-top:16px}
 .portrait strong{font-size:28px;margin-bottom:10px}
 .portrait span{font-size:12px;line-height:1.55}
 .portrait a{font-size:12px}
 .solution>.scene{height:300px;object-position:left center}
 .solution-copy{padding-top:16px}
 .story-controls{margin-top:15px}
}
@media(min-width:701px) and (max-width:1250px){.shell{width:82vw;max-width:1000px}.solution h2{font-size:32px}.solution h3{font-size:20px}.solution p{font-size:15px}}
@media(max-width:700px){
 .company.white .service{padding:20px 0}
 .company.white h2{font-size:29px}
 .company .description{font-size:14px}
 .service-tagline{font-size:18px}
 .people-intro{padding-top:55px}
 .people-intro h2{font-size:36px;margin-bottom:24px}
 .people-jump{gap:14px;margin-bottom:38px}
 .people-jump img{height:clamp(125px,40vw,190px);width:100%;margin-bottom:12px}
 .people-jump span{font-size:22px}
 .solution-copy{padding-top:12px}
 .solution h2{font-size:32px;margin-bottom:10px}
 .solution h3{font-size:18px;margin-bottom:7px}
 .solution p{font-size:13px;line-height:1.45}
 .panel{min-height:500px}
 .solution>.scene{min-height:130px;max-height:190px;height:40%}
}

/* White: reference serif typography, short rules and layered team cards. */
body.white {
  --section-rule: var(--red);
  --name-paper: #fff;
  --name-ink: #161717;
  --serif: Georgia, "Times New Roman", serif;
}
.white .topbar { display: grid; grid-template-columns: auto 1fr auto; }
.white .topbar nav { justify-self: center; }
.white .hero { padding: 48px 0 28px; }
.white .hero-copy::after,
.company.white .service::after {
  content: "";
  display: block;
  height: 2px;
  background: var(--section-rule);
}
.white .hero-copy::after { width: 96px; margin: 34px auto 0; }
.company.white .service { padding: 28px 0 0; }
.company.white .service::after { width: 28px; margin: 38px auto 12px; }
.company.white .service-copy { font-family: var(--serif); }
.company.white h2 {
  font-size: clamp(28px, 2.5vw, 38px);
  font-weight: 400;
  letter-spacing: -.035em;
  line-height: 1.2;
  margin-bottom: 14px;
}
.company.white .region {
  font: 500 11px/1.5 Arial, Helvetica, sans-serif;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 14px;
}
.company.white .service-tagline {
  font-size: 24px;
  font-weight: 400;
  font-style: italic;
  line-height: 1.45;
  margin-bottom: 12px;
}
.company.white .description {
  font-size: 20px;
  font-weight: 400;
  letter-spacing: -.015em;
  line-height: 1.6;
  color: #161717;
  max-width: 62ch;
  margin-inline: auto;
}
.white .people-intro { padding-top: 56px; }
.white .people-intro h2 {
  font: 400 clamp(36px, 4vw, 48px)/1.1 var(--serif);
  letter-spacing: -.035em;
  margin-bottom: 32px;
}
.white .people-jump {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 760px;
  gap: clamp(24px, 3vw, 44px);
  padding: 0 16px 18px 0;
  margin-bottom: 60px;
  align-items: start;
}
.team-card {
  position: relative;
  isolation: isolate;
  min-width: 0;
}
/* Straight red and black offset edges on desktop; angled layers on mobile. */
.team-card::before, .team-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid #161717;
  pointer-events: none;
  transform-origin: bottom left;
}
.team-card::before { z-index: -2; background: #161717; transform: translate(7px, 7px); }
.team-card::after { z-index: -1; background: var(--red); transform: translate(4px, 4px); }
.white .people-jump .team-photo {
  display: block;
  background: #fff;
  border: 1px solid #161717;
  border-bottom: 0;
}
.white .people-jump .team-photo img {
  width: 100%;
  max-width: none;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 18%;
  margin: 0;
}
.team-label {
  min-height: 88px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 18px;
  border: 1px solid #161717;
  background: var(--name-paper);
  color: var(--name-ink);
}
.white .people-jump .team-name {
  font: 400 30px/1 var(--serif);
  letter-spacing: -.025em;
  color: inherit;
}
.white .people-jump .team-linkedin {
  font: 400 12px/1.4 Arial, Helvetica, sans-serif;
  letter-spacing: .03em;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.white .people-jump .team-linkedin span { display: inline; font: inherit; letter-spacing: 0; }
.team-name:hover { text-decoration: underline; }
.team-card a:focus-visible { outline-offset: 3px; }
.white .portrait strong { font-family: var(--serif); font-weight: 400; }
@media (max-width: 700px) {
  body.white { --name-paper: #161717; --name-ink: #fff; }
  .white .topbar { grid-template-columns: auto 1fr; gap: 8px; padding-inline: 12px; }
  .white .wordmark img { width: 92px; }
  .white .topbar nav a { padding-inline: 6px; }
  .white .hero { padding-top: 32px; }
  .white .hero-copy::after { margin-top: 28px; width: 72px; }
  .company.white h2 { font-size: clamp(26px, 6.5vw, 32px); }
  .company.white .service-tagline { font-size: 22px; }
  .company.white .description { font-size: 18px; }
  .company.white .service::after { margin-top: 30px; }
  .white .people-intro { padding-top: 42px; }
  .white .people-jump { gap: 20px; padding-right: 12px; }
  .team-card::before { transform: translate(8px, 9px) skewY(-1.5deg); }
  .team-card::after { transform: translate(4px, 4px) skewY(-1.5deg); }
  .team-label { padding: 12px 8px; min-height: 80px; gap: 8px; }
  .white .people-jump .team-name { font-size: clamp(19px, 4.8vw, 28px); }
  .white .people-jump .team-linkedin { font-size: 11px; letter-spacing: 0; }
}
@media (max-width: 380px) {
  .white .wordmark img { width: 76px; }
  .white .topbar { padding-inline: 10px; gap: 6px; }
  .white .topbar nav a { padding-inline: 4px; font-size: 9px; }
  .white .people-jump { grid-template-columns: 1fr; max-width: 250px; gap: 30px; }
  .white .people-jump .team-name { font-size: 28px; }
  .white .people-jump .team-linkedin { font-size: 12px; }
}

/* People stories: clear challenge copy, paperwork stamps and readable roles. */
.problem-copy { flex-basis: 42%; min-width: 0; padding: clamp(18px, 2.2vw, 30px); }
.before > .scene { width: 58%; }
.problem-copy h2 { margin: 18px 0; }
.challenge-detail {
  max-width: 36ch;
  font: 400 16px/1.55 Arial, Helvetica, sans-serif;
  color: #41433f;
}
.challenge-detail + .red-rule { margin-top: 22px; }
.status-pile {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 4px;
  max-width: 270px;
  margin: 24px 0 8px;
  padding: 5px 8px;
  list-style: none;
}
.status-stamp {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 8px 5px;
  border: 1px solid #89857b;
  background: #f8f6ef;
  color: #4b4b44;
  font: 700 11px/1.15 "Courier New", monospace;
  letter-spacing: .025em;
  text-align: center;
  text-transform: uppercase;
}
.status-stamp:nth-child(1) { transform: translate(1px, 1px) rotate(-5deg); }
.status-stamp:nth-child(2) { transform: translate(-4px, 3px) rotate(7deg); color: var(--red); border-color: var(--red); }
.status-stamp:nth-child(3) { transform: translate(6px, -1px) rotate(4deg); color: var(--red); border-color: var(--red); }
.status-stamp:nth-child(4) { transform: translate(-1px, -3px) rotate(-6deg); }
.status-stamp:nth-child(5) { transform: translate(0, -3px) rotate(-4deg); }
.status-stamp:nth-child(6) { transform: translate(-4px, -4px) rotate(5deg); color: var(--red); border-color: var(--red); }
.portrait .person-role {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  color: #252827;
}
.portrait .person-location {
  font-size: 15px;
  line-height: 1.5;
  color: #444946;
  margin-top: 6px;
}
.portrait a { font-size: 14px; line-height: 1.5; }
@media (max-width: 700px) {
  .before { justify-content: flex-start; }
  .panel.before { height: auto; max-height: none; }
  .problem-copy { flex: 0 0 auto; padding: 18px 20px 14px; }
  .problem-copy h2 { margin: 13px 0; }
  .challenge-detail { font-size: 16px; line-height: 1.5; max-width: none; }
  .before > .scene { width: 100%; height: 0; min-height: 100px; flex: 1 1 0; }
  .status-pile { max-width: 290px; margin-top: 18px; margin-bottom: 0; }
  .portrait .person-role { font-size: 14px; }
  .portrait .person-location { font-size: 14px; margin-top: 5px; }
  .portrait a { font-size: 13px; }
  .after { grid-template-rows: auto minmax(0, 1fr); }
  .solution > .scene { flex-shrink: 1; min-height: 100px; }
}
@media (min-width: 400px) and (max-width: 700px) {
  .status-pile { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 380px; }
}
@media (prefers-reduced-motion: reduce) and (max-width: 700px) {
  .before > .scene { flex: none; height: 200px; }
}

/* Joe and Tim: smaller headlines, larger phrases, two animation treatments. */
.animated-challenge .problem-copy { flex-basis: 50%; }
.animated-challenge > .scene { width: 50%; }
.challenge-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 14px 0 18px; }
.motion-choice { display: inline-flex; }
.challenge-toolbar button {
  border: 1px solid #aaa79e;
  border-radius: 0;
  background: transparent;
  padding: 6px 8px;
  min-height: 30px;
  font: 400 12px/1.2 Arial, Helvetica, sans-serif;
  cursor: pointer;
}
.motion-choice button + button { border-left: 0; }
.motion-choice button[aria-pressed="true"] { background: #161717; color: #fff; border-color: #161717; }
.challenge-toolbar button:hover { border-color: var(--red); }
.challenge-toolbar button:disabled { cursor: default; opacity: .65; }
.sequence-stage { display: grid; }
.sequence-scene { grid-area: 1 / 1; visibility: hidden; pointer-events: none; }
.sequence-scene.is-current { visibility: visible; pointer-events: auto; }
.animated-challenge .sequence-headline {
  font-size: clamp(24px, 2vw, 32px);
  line-height: 1.25;
  font-weight: 400;
  letter-spacing: -.025em;
  margin: 0 0 20px;
}
.sequence-phrase { font: 400 18px/1.45 Arial, Helvetica, sans-serif; color: #383b37; margin: 0 0 8px; }
.sequence-phrase:first-child { font-weight: 500; }
.sequence-phrase + .sequence-phrase { border-left: 1px solid #b7b2a6; margin-left: 4px; padding-left: 12px; }
[data-sequence-item] { position: relative; }
.text-reserve { display: block; visibility: hidden; white-space: pre-line; }
.text-ink { position: absolute; inset: 0; white-space: pre-line; }
.sequence-phrase + .sequence-phrase .text-ink { left: 12px; }
[data-sequence-item][data-revealed="false"] { visibility: hidden; }
.sequence-scene:not(.is-current) [data-sequence-item] { visibility: hidden; }
.is-typing .text-ink::after { content: ""; display: inline-block; height: .95em; border-right: 2px solid var(--red); margin-left: 2px; vertical-align: -.1em; animation: text-caret 850ms step-end infinite; }
.animated-challenge[data-paused="true"] .is-typing .text-ink::after { animation-play-state: paused; }
@keyframes text-caret { 50% { opacity: 0; } }
.challenge-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.challenge-tags li { border: 1px solid #85877f; padding: 6px 9px; background: #faf9f5; font: 400 14px/1.3 Arial, Helvetica, sans-serif; color: #41443f; }
@media (max-width: 700px) {
  .animated-challenge .problem-copy { flex: 0 0 auto; padding: 18px 18px 12px; }
  .animated-challenge > .scene { width: 100%; }
  .animated-challenge .sequence-headline { font-size: 26px; line-height: 1.23; margin-bottom: 16px; }
  .sequence-phrase { font-size: 18px; line-height: 1.4; }
  .challenge-toolbar { margin: 12px 0 16px; }
  .challenge-tags { margin-top: 16px; gap: 6px; }
  .challenge-tags li { font-size: 14px; padding: 5px 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .is-typing .text-ink::after { display: none; animation: none; }
}
