:root {
  --cream: #fff9ee;
  --soft: #fff1d6;
  --ink: #1a1a2e;
  --ink-2: #3b3b5c;
  --muted: #65657f;
  --purple: #9b7bff;
  --cyan: #4fd8ff;
  --lime: #b6f23a;
  --pink: #ff7ab6;
  --orange: #ff9f43;
  --yellow: #ffc83d;
  --green: #2dbe6c;
  --green-soft: #ddf7e7;
  --red: #ff5a5f;
  --red-soft: #ffe3e3;
  --border: 3px solid var(--ink);
  --shadow: 0 6px 0 var(--ink);
}

/* R7 narrative home and editorial work */
.problem-band { background: var(--ink); color: var(--cream); padding: 72px 0; }
.problem-band p { max-width: 1000px; margin: 0 0 20px; font-family: "Baloo 2", sans-serif; font-size: clamp(34px, 5.4vw, 72px); line-height: .98; font-weight: 700; }
.problem-band strong { display: block; color: var(--lime); font-size: clamp(20px, 2.4vw, 32px); }
.branch-story { background: var(--ink); color: var(--cream); }
.branch-story > .container > h2 { color: var(--lime); }
.story-acts { margin-top: 64px; display: grid; gap: 96px; }
.story-act { display: grid; grid-template-columns: minmax(220px, .75fr) minmax(0, 1.7fr); gap: 56px; align-items: start; }
.story-act > header { border-top: 3px solid var(--lime); padding-top: 18px; }
.story-act > header span { color: var(--lime); text-transform: uppercase; letter-spacing: .12em; }
.story-act > header h3 { font-size: clamp(36px, 5vw, 64px); margin: 8px 0; }
.story-branches { display: grid; gap: 0; }
.story-branches > a { color: inherit; text-decoration: none; display: grid; grid-template-columns: 72px 1fr; gap: 20px; padding: 26px 0; border-top: 1px solid rgba(255,255,255,.24); transition: padding-left .25s ease, color .25s ease; }
.story-branches > a:last-child { border-bottom: 1px solid rgba(255,255,255,.24); }
.story-branches > a:hover { padding-left: 12px; color: var(--lime); }
.story-number { font-family: "Baloo 2", sans-serif; font-size: 34px; color: var(--cyan); font-weight: 800; }
.story-branches h4 { margin: 0 0 6px; font-family: "Baloo 2", sans-serif; font-size: 25px; }
.story-branches p { margin: 0; max-width: 700px; }
.platform-logos { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 14px; }
.platform-logos img { width: 24px; height: 24px; filter: invert(1); opacity: .82; }
.results-story { background: var(--cream); }
.plain-results { display: grid; grid-template-columns: 1.15fr .85fr; gap: 0 48px; margin: 44px 0; }
.plain-results article { padding: 32px 0; border-top: 2px solid var(--ink); }
.plain-results strong { display: block; font-family: "Baloo 2", sans-serif; font-size: clamp(48px, 7vw, 88px); line-height: .9; color: var(--pink); }
.plain-results p { max-width: 560px; font-size: 18px; }
.plain-results small { display: block; }
.websites-home { overflow: hidden; background: var(--cyan); color: var(--ink); }
.websites-heading { display: flex; justify-content: space-between; gap: 40px; align-items: end; margin-bottom: 40px; }
.websites-heading > p { max-width: 420px; }
.website-marquee { overflow-x: auto; scrollbar-width: none; padding: 10px max(24px, calc((100vw - 1200px) / 2)) 40px; touch-action: pan-x; }
.website-marquee::-webkit-scrollbar { display: none; }
.website-marquee-track { display: flex; width: max-content; gap: 48px; }
.website-marquee .site-pair { flex: 0 0 620px; display: grid; grid-template-columns: 1fr 120px; align-items: end; gap: 18px; }
.website-marquee .site-pair h3, .website-marquee .site-pair p { grid-column: 1 / -1; margin: 0; }
.website-marquee .site-pair h3 { font-size: 22px; margin-top: 4px; }
.website-marquee .browser-frame { min-width: 0; }
.website-marquee .phone-frame { width: 120px; }
.plans-three .plan { min-height: 100%; }
.work-results { background: var(--cream); color: var(--ink); padding: 52px 0; }
.work-results .plain-results { margin: 0; grid-template-columns: repeat(2, minmax(0,1fr)); }
.work-results .plain-results strong { font-size: clamp(42px,6vw,72px); }
.client-posts { margin-top: 48px; }
.client-posts h3 { font-size: 30px; }
.client-post-flow { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 22px; align-items: start; }
.client-post { margin: 0; background: var(--cream); color: var(--ink); }
.client-post:nth-child(4) { grid-column: 2 / 4; }
.client-post img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; }
.client-post figcaption { padding: 16px; display: grid; gap: 5px; }
.client-post strong { font-size: 25px; color: var(--pink); }
.festival-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 32px; }
.festival-piece { margin: 0; }
.festival-screen { position: relative; overflow: hidden; border: 10px solid var(--ink); background: #000; aspect-ratio: 16/9; }
.festival-screen video, .festival-screen img { width: 100%; height: 100%; object-fit: cover; display: block; }
.festival-piece figcaption { padding-top: 16px; }
.festival-piece h3 { margin: 0 0 6px; font-size: 28px; }
.festival-piece a { color: inherit; font-weight: 700; }
.event-diptych { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.editorial-groups { display: grid; gap: 72px; }
.editorial-group h3 { font-size: 34px; }
.editorial-mosaic { display: grid; grid-template-columns: 1.4fr .8fr .8fr; grid-auto-rows: 260px; gap: 16px; }
.editorial-mosaic figure { margin: 0; overflow: hidden; }
.editorial-mosaic figure:first-child { grid-row: span 2; }
.editorial-mosaic img { width: 100%; height: 100%; object-fit: cover; }
.ad-result-copy { margin-top: 14px; max-width: 360px; }
.ad-result-copy p { margin: 0 0 7px; }
.funnel-visual, .catalog-flow, .google-scene, .chat-explainer { border-radius: 28px; overflow: hidden; }
.funnel-visual { display: grid; grid-template-columns: .8fr 1.2fr; gap: 24px; align-items: center; background: var(--ink); color: var(--cream); padding: 28px; }
.funnel-visual .phone-frame { width: min(230px,100%); margin: auto; }
.metric-seal { width: 170px; height: 170px; border-radius: 50%; display: grid; place-content: center; text-align: center; background: var(--lime); color: var(--ink); transform: rotate(-5deg); }
.metric-seal strong { font-size: 38px; }
.google-scene { min-height: 560px; background: var(--ink); display: grid; grid-template-columns: 1.25fr .75fr; align-items: stretch; }
.google-scene > img { width: 100%; height: 100%; object-fit: cover; }
.profile-card { background: var(--lime); padding: 36px; display: flex; flex-direction: column; justify-content: center; }
.profile-card .metric-line { border-top: 2px solid var(--ink); padding: 20px 0; }
.profile-card strong { display: block; font-size: 48px; }
.chat-explainer { background: var(--ink); color: var(--cream); padding: 32px; }
.sample-chip { display: inline-flex; padding: 8px 14px; border-radius: 999px; background: var(--cyan); color: var(--ink); font-weight: 700; }
.chat-steps { display: grid; gap: 16px; margin-top: 24px; }
.chat-bubble { max-width: 78%; padding: 18px 22px; border-radius: 22px; background: var(--cream); color: var(--ink); }
.chat-bubble:nth-child(2) { margin-left: auto; background: var(--lime); }
.catalog-flow { display: grid; grid-template-columns: .65fr 1.35fr; gap: 28px; padding: 28px; background: var(--cyan); color: var(--ink); }
.catalog-flow .phone-frame { width: min(230px,100%); margin: auto; }
.flow-steps { display: grid; gap: 14px; align-content: center; }
.flow-step { padding: 20px; background: var(--cream); border: 2px solid var(--ink); font-size: 21px; font-weight: 700; }
.work-final-call { background: var(--pink); color: var(--ink); padding: 76px 0; }
.work-final-call .container { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.work-final-call h2 { margin: 0; }
.js-reveal-ready [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .5s ease, transform .5s ease; transition-delay: var(--reveal-delay,0ms); }
.js-reveal-ready [data-reveal].is-visible { opacity: 1; transform: none; }
@media (hover:hover) { .hero-phone { transition: transform .35s ease; } .hero-phone-left:hover { transform: rotate(-7deg) translateY(-8px); } .hero-phone-center:hover { transform: translateY(-12px); } .hero-phone-right:hover { transform: rotate(7deg) translateY(-8px); } }
@media (max-width: 760px) {
  .problem-band { padding: 48px 0; }
  .story-act { grid-template-columns: 1fr; gap: 20px; }
  .story-acts { gap: 64px; }
  .story-branches > a { grid-template-columns: 54px 1fr; }
  .plain-results, .work-results .plain-results { grid-template-columns: 1fr; }
  .websites-heading { display: block; }
  .website-marquee { padding-left: 20px; padding-right: 20px; }
  .website-marquee .site-pair { flex-basis: 330px; grid-template-columns: 1fr 76px; gap: 10px; }
  .website-marquee .phone-frame { width: 76px; }
  .client-post-flow { grid-template-columns: 1fr 1fr; }
  .client-post:nth-child(4) { grid-column: auto; }
  .festival-grid, .google-scene, .catalog-flow, .funnel-visual { grid-template-columns: 1fr; }
  .editorial-mosaic { grid-template-columns: 1.2fr .8fr; grid-auto-rows: 190px; }
  .editorial-mosaic figure:first-child { grid-row: span 2; }
  .work-final-call .container { display: block; }
  .work-final-call .button { margin-top: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .js-reveal-ready [data-reveal] { opacity: 1; transform: none; transition: none; }
  .hero-phone { transition: none !important; }
  .website-marquee { scroll-behavior: auto; }
}

/* R4 portfolio system */
.eyebrow {
  margin: 0 0 12px;
  color: currentColor;
  font-size: 15px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.work-playing {
  padding: 80px 0 68px;
  overflow: hidden;
  background: var(--ink);
  color: var(--cream);
}

.work-playing-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 34px;
}

.work-playing h2 {
  margin: 0;
  color: var(--cream);
  font-size: clamp(44px, 7vw, 88px);
  line-height: .9;
}

.video-ribbon {
  display: grid;
  grid-template-columns: repeat(6, minmax(190px, 1fr));
  gap: 24px;
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}

.video-piece {
  min-width: 0;
}

.video-piece p {
  margin: 14px 0 3px;
  font-size: 16px;
  line-height: 1.35;
}

.video-piece small,
.own-reels small,
.proof-strip small,
.single-proof small,
.review-proof small,
.business-card figcaption small {
  display: block;
  font-size: 15px;
  line-height: 1.35;
  opacity: .78;
}

.phone-video {
  position: relative;
  overflow: hidden;
  aspect-ratio: 9 / 16;
  border: 3px solid currentColor;
  border-radius: 28px;
  background: #0d0d16;
  box-shadow: 9px 9px 0 rgba(255,255,255,.15);
}

.phone-video video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.phone-video .stamp,
.result-sticker {
  position: absolute;
  z-index: 2;
  top: 14px;
  left: 12px;
  max-width: calc(100% - 24px);
}

.phone-video .stamp { color: var(--ink); }

.result-sticker {
  display: grid;
  padding: 9px 12px;
  transform: rotate(-2deg);
  border: 3px solid var(--ink);
  background: var(--lime);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.1;
  box-shadow: 5px 5px 0 var(--ink);
}

.result-sticker strong {
  font: 800 26px/1 "Baloo 2", sans-serif;
}

.result-pink { background: var(--pink); }

.sound-button {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 56px;
  min-width: 56px;
  height: 56px;
  min-height: 56px;
  padding: 0;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: var(--cream);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  cursor: pointer;
  box-shadow: 4px 4px 0 var(--ink);
}
.sound-button svg { width: 25px; height: 25px; fill: var(--ink); stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sound-button:focus-visible { outline: 4px solid var(--cyan); outline-offset: 4px; }
.phone-video { cursor: pointer; }

.branch-home { background: var(--cream); }

.branch-home-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.branch-home-grid a {
  display: flex;
  align-items: center;
  min-height: 70px;
  padding: 12px 16px;
  border: 3px solid var(--ink);
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  box-shadow: 5px 5px 0 var(--ink);
}

.branch-home-grid a:nth-child(3n+1) { background: var(--lime); }
.branch-home-grid a:nth-child(3n+2) { background: var(--pink); }
.branch-home-grid a:nth-child(3n) { background: var(--cyan); }
.branch-home-grid span {
  margin-right: 12px;
  font: 800 24px/1 "Baloo 2", sans-serif;
}

.portfolio-page { background: var(--ink); }
.portfolio-page .portfolio-nav { background: var(--ink); color: var(--cream); border-bottom-color: rgba(255,249,238,.22); }
.portfolio-page .portfolio-nav a { color: inherit; }
.portfolio-page .portfolio-nav .button-lime { color: var(--ink); }
.portfolio-page .portfolio-nav .language-pill:hover { color: var(--ink); }
.portfolio-page .portfolio-nav .brand-mark { background: var(--cream); }

.portfolio-hero {
  padding: 110px 0 72px;
  overflow: hidden;
  background: var(--ink);
  color: var(--cream);
}

.portfolio-hero h1 {
  max-width: 1050px;
  margin: 0;
  color: var(--cream);
  font-size: clamp(66px, 10.5vw, 152px);
  line-height: .78;
  letter-spacing: -.055em;
}

.outline-word {
  color: var(--lime);
}

.portfolio-lede {
  max-width: 690px;
  margin: 36px 0 0;
  font-size: clamp(20px, 2.3vw, 30px);
  line-height: 1.3;
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  margin-top: 64px;
  border: 3px solid var(--cream);
  background: var(--cream);
  color: var(--ink);
}

.proof-strip article {
  display: flex;
  flex-direction: column;
  min-height: 198px;
  padding: 20px;
  border-right: 3px solid var(--ink);
}

.proof-strip article:last-child { border-right: 0; }
.proof-strip article:nth-child(2) { background: var(--lime); }
.proof-strip article:nth-child(4) { background: var(--pink); }
.proof-strip strong { font: 800 clamp(28px, 3.2vw, 46px)/1 "Baloo 2", sans-serif; }
.proof-strip span { margin: 6px 0 auto; }
.proof-strip small { padding-top: 18px; border-top: 1px solid rgba(26,26,46,.3); }

.branch-index {
  padding: 24px 0;
  background: var(--lime);
  color: var(--ink);
  border-block: 3px solid var(--ink);
}

.branch-index-track {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0;
  border: 3px solid var(--ink);
}

.branch-index a {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 92px;
  padding: 10px;
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  background: var(--cream);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.15;
  text-decoration: none;
}

.branch-index a:nth-child(7n) { border-right: 0; }
.branch-index a:nth-last-child(-n+6) { border-bottom: 0; }
.branch-index a span { font: 800 25px/1 "Baloo 2", sans-serif; }

.branch { scroll-margin-top: 0; }
.branch-dark { background: var(--ink); color: var(--cream); }
.branch-light { background: var(--cream); color: var(--ink); }
.branch-shell { padding-top: 104px; padding-bottom: 112px; }
.compact-branch .branch-shell { padding-top: 88px; padding-bottom: 88px; }

.chapter-head {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  align-items: start;
  gap: 32px;
  margin-bottom: 64px;
}

.chapter-head > div { max-width: 770px; }
.chapter-number {
  color: var(--ink-2);
  font: 800 clamp(96px, 15vw, 180px)/.68 "Baloo 2", sans-serif;
  opacity: 1;
}

.branch-dark .chapter-number { color: var(--ink-2); }
.branch-light .chapter-number { color: #e9dfc8; }

.chapter-head h2 {
  margin: 0 0 12px;
  color: inherit;
  font-size: clamp(48px, 7vw, 90px);
  line-height: .9;
}

.chapter-head p:last-child { max-width: 700px; margin-bottom: 0; font-size: 20px; }

.organic-layout {
  display: grid;
  grid-template-columns: 1.15fr .9fr 1.4fr;
  gap: 28px;
  align-items: start;
}

.video-hero { max-width: 360px; }
.mini-video-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: end; padding-top: 110px; }

.own-reels {
  display: grid;
  gap: 12px;
  padding: 22px;
  border: 3px solid currentColor;
  background: rgba(255,255,255,.05);
}

.own-reels h3 { margin: 0 0 8px; color: inherit; }
.own-reels a {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 16px;
  align-items: center;
  min-height: 112px;
  padding: 10px;
  border: 2px solid currentColor;
  color: inherit;
  text-decoration: none;
}
.own-reels img { width: 88px; height: 88px; object-fit: cover; }
.own-reels span { display: grid; gap: 2px; }
.own-reels strong { font: 800 24px/1 "Baloo 2", sans-serif; }

.film-layout {
  display: grid;
  grid-template-columns: 1.4fr .8fr .55fr .55fr;
  gap: 24px;
  align-items: start;
}

.film-hero { position: relative; display: block; transform: rotate(-1deg); }
.film-hero img { width: 100%; min-height: 520px; object-fit: cover; border: 3px solid currentColor; box-shadow: 10px 10px 0 var(--pink); }
.film-hero .stamp { position: absolute; right: 18px; bottom: 18px; }
.event-stack { padding-top: 120px; }
.event-stack a { display: block; }
.event-stack a + a { margin-top: -24px; margin-left: 38px; }
.event-stack img { width: 100%; border: 3px solid currentColor; box-shadow: 7px 7px 0 var(--ink); }
.product-film { padding-top: 50px; }
.doorway-film { padding-top: 115px; }
.film-caption,
.collage-caption { margin: 16px 0 0; font-size: 16px; }

.design-collage {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 86px;
  gap: 18px;
}

.design-collage figure {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  margin: 0;
  overflow: hidden;
  border: 3px solid var(--cream);
  background: var(--ink);
}
.design-collage figure img { width: 100%; height: 100%; min-height: 0; object-fit: cover; }
.design-collage figure:nth-child(1) img,
.design-collage figure:nth-child(2) img,
.design-collage figure:nth-child(3) img,
.design-collage figure:nth-child(6) img,
.design-collage figure:nth-child(8) img,
.design-collage figure:nth-child(9) img { object-fit: contain; }
.design-collage figcaption { padding: 7px 9px; background: var(--cream); color: var(--ink); font-size: 15px; line-height: 1.25; }
.design-collage figure:nth-child(1) { grid-column: 1 / 5; grid-row: 1 / 7; }
.design-collage figure:nth-child(2) { grid-column: 5 / 8; grid-row: 2 / 6; }
.design-collage figure:nth-child(3) { grid-column: 8 / 13; grid-row: 1 / 5; }
.design-collage figure:nth-child(4) { grid-column: 4 / 10; grid-row: 7 / 11; }
.design-collage figure:nth-child(5) { grid-column: 10 / 13; grid-row: 5 / 10; }
.design-collage figure:nth-child(6) { grid-column: 1 / 4; grid-row: 7 / 11; }
.design-collage figure:nth-child(7) { grid-column: 8 / 11; grid-row: 11 / 15; }
.design-collage figure:nth-child(8) { grid-column: 1 / 4; grid-row: 12 / 16; }
.design-collage figure:nth-child(9) { grid-column: 4 / 8; grid-row: 11 / 15; }
.design-collage figure:nth-child(10) { grid-column: 11 / 13; grid-row: 10 / 14; }

.ads-layout {
  display: grid;
  grid-template-columns: 1.1fr .8fr .8fr 1.35fr;
  gap: 24px;
  align-items: center;
}
.ads-layout .ad-main { transform: translateY(-30px); }

.case-card { margin: 0; border: 3px solid currentColor; background: var(--cream); color: var(--ink); box-shadow: 9px 9px 0 var(--lime); }
.case-card img { display: block; width: 100%; height: auto; }
.case-card figcaption { display: grid; gap: 4px; padding: 16px; border-top: 3px solid var(--ink); }
.case-card figcaption strong { font: 800 25px/1.1 "Baloo 2", sans-serif; }
.case-card figcaption span { font-size: 15px; }
.case-wide { max-width: 880px; margin-left: auto; transform: rotate(1deg); }

.single-proof {
  display: grid;
  max-width: 810px;
  margin-left: auto;
  padding: 32px;
  border: 3px solid currentColor;
  background: var(--lime);
  color: var(--ink);
  box-shadow: 10px 10px 0 var(--pink);
}
.single-proof strong { font: 800 clamp(60px, 10vw, 126px)/.9 "Baloo 2", sans-serif; }
.single-proof span { margin: 10px 0 26px; font-size: 24px; }
.proof-cyan { background: var(--cyan); box-shadow: 10px 10px 0 var(--ink); }
.proof-pink { background: var(--pink); box-shadow: 10px 10px 0 var(--lime); }

.site-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(540px, 70%);
  gap: 42px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding: 10px 12px 46px;
  scroll-snap-type: x mandatory;
}
.site-pair { position: relative; min-width: 0; scroll-snap-align: start; }
.site-pair .browser-frame { width: calc(100% - 90px); }
.site-pair .phone-frame { position: absolute; right: 0; bottom: 46px; width: 145px; height: 310px; border: 3px solid var(--cream); box-shadow: 8px 8px 0 var(--pink); }
.site-pair .phone-frame img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.site-pair p { margin: 16px 0 0; font-size: 18px; }
.browser-frame { overflow: hidden; border: 3px solid currentColor; background: #fff; box-shadow: 9px 9px 0 rgba(230,255,57,.45); }
.browser-frame img { display: block; width: 100%; height: auto; }
.browser-bar { display: flex; gap: 7px; align-items: center; height: 36px; padding: 0 12px; border-bottom: 3px solid var(--ink); background: var(--cream); }
.browser-bar i { width: 10px; height: 10px; border: 2px solid var(--ink); border-radius: 50%; background: var(--pink); }
.browser-bar i:nth-child(2) { background: var(--lime); }
.browser-bar i:nth-child(3) { background: var(--cyan); }

.systems-layout { display: grid; grid-template-columns: 1.15fr .8fr .8fr; gap: 26px; align-items: start; }
.system-shot { margin: 60px 0 0; border: 3px solid currentColor; background: #fff; box-shadow: 8px 8px 0 var(--cyan); }
.system-shot:nth-child(3) { margin-top: 120px; box-shadow-color: var(--pink); }
.system-shot img { display: block; width: 100%; height: 240px; object-fit: cover; object-position: top; }
.system-shot figcaption { padding: 14px; color: var(--ink); }
.text-link { display: inline-flex; align-items: center; min-height: 56px; margin-top: 22px; color: var(--lime); font-size: 18px; }

.reviews-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: center; }
.review-proof { display: grid; padding: 34px; border: 3px solid var(--ink); background: var(--pink); box-shadow: 10px 10px 0 var(--ink); }
.review-proof strong { font: 800 clamp(50px, 7vw, 88px)/.9 "Baloo 2", sans-serif; }
.review-proof > span { margin: 12px 0 24px; font-size: 24px; }
.legacy-panel-case-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.portfolio-plans { background: var(--cream); color: var(--ink); }
.portfolio-page .site-footer { background: var(--cream); color: var(--ink); }

@media (max-width: 900px) {
  .video-ribbon { grid-template-columns: repeat(6, minmax(205px, 1fr)); overflow-x: auto; width: 100%; padding: 8px 16px 28px; scroll-snap-type: x mandatory; }
  .video-ribbon .video-piece { scroll-snap-align: start; }
  .work-playing-head { align-items: start; flex-direction: column; }
  .branch-home-grid { grid-template-columns: repeat(2, 1fr); }
  .proof-strip { grid-template-columns: repeat(2, 1fr); }
  .proof-strip article { border-bottom: 3px solid var(--ink); }
  .proof-strip article:nth-child(even) { border-right: 0; }
  .proof-strip article:last-child { grid-column: 1 / -1; border-bottom: 0; }
  .chapter-head { grid-template-columns: 120px 1fr; }
  .organic-layout { grid-template-columns: .9fr 1.1fr; }
  .own-reels { grid-column: 1 / -1; }
  .film-layout { grid-template-columns: 1.5fr 1fr; }
  .product-film { grid-column: 2; padding-top: 0; }
  .ads-layout { grid-template-columns: repeat(2, 1fr); }
  .systems-layout { grid-template-columns: 1fr 1fr; }
  .systems-layout .case-card { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .work-playing { padding: 58px 0 46px; }
  .work-playing-head { margin-bottom: 24px; }
  .video-ribbon { grid-template-columns: repeat(6, 68vw); gap: 16px; }
  .branch-home-grid { grid-template-columns: 1fr; }
  .branch-home-grid a { min-height: 64px; }
  .portfolio-hero { padding: 74px 0 52px; }
  .portfolio-hero h1 { font-size: clamp(58px, 18vw, 78px); line-height: .82; }
  .portfolio-lede { margin-top: 26px; font-size: 19px; }
  .proof-strip { display: flex; overflow-x: auto; margin-top: 42px; scroll-snap-type: x mandatory; }
  .proof-strip article { flex: 0 0 78%; min-height: 180px; border-right: 3px solid var(--ink); border-bottom: 0; scroll-snap-align: start; }
  .proof-strip article:last-child { border-right: 0; }
  .branch-index { padding: 14px 0; }
  .branch-index-track { display: flex; overflow-x: auto; margin-inline: 16px; padding: 0; scroll-snap-type: x mandatory; }
  .branch-index a { flex: 0 0 46%; min-height: 100px; border-right: 2px solid var(--ink); border-bottom: 0; scroll-snap-align: start; }
  .branch-index a:last-child { border-right: 0; }
  .branch-shell { padding-top: 36px; padding-bottom: 40px; }
  .compact-branch .branch-shell { padding-top: 36px; padding-bottom: 40px; }
  .chapter-head { display: block; margin-bottom: 22px; }
  .chapter-number { display: block; margin-bottom: 14px; font-size: 76px; }
  .chapter-head h2 { font-size: 52px; }
  .chapter-head p:last-child { font-size: 18px; }
  .organic-layout { grid-template-columns: 70vw 70vw; gap: 18px; overflow-x: auto; padding-bottom: 22px; }
  .organic-layout .video-hero { max-width: none; }
  .mini-video-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding-top: 60px; }
  .own-reels { grid-column: auto; min-width: 82vw; }
  .film-layout { display: block; }
  .film-hero img { min-height: 280px; }
  .event-stack { padding-top: 58px; }
  .product-film { width: 68%; margin: 48px 0 0 auto; }
  .design-collage { display: grid; grid-template-columns: 1.15fr .85fr; grid-auto-rows: 170px; gap: 12px; }
  .design-collage figure:nth-child(n) { grid-column: auto; grid-row: auto; }
  .design-collage figure:first-child { grid-row: span 2; }
  .design-collage figure:nth-child(4) { grid-column: 1 / -1; }
  .ads-layout { grid-template-columns: 72vw 72vw 72vw 82vw; overflow-x: auto; gap: 18px; padding-bottom: 20px; }
  .ads-layout .ad-main { transform: none; }
  .single-proof { padding: 24px; }
  .site-strip { grid-auto-columns: 92%; gap: 24px; margin-inline: -16px; padding-inline: 16px; }
  .site-pair .browser-frame { width: calc(100% - 42px); }
  .site-pair .phone-frame { width: 92px; height: 200px; bottom: 48px; }
  .systems-layout { display: block; }
  .system-shot { margin-top: 38px; }
  .system-shot:nth-child(3) { margin-top: 38px; }
  .reviews-layout, .legacy-panel-case-layout { grid-template-columns: 1fr; gap: 34px; }
  .review-proof { padding: 24px; }
  .portfolio-page .portfolio-nav .nav-inner { flex-wrap: wrap; }
  .portfolio-page .portfolio-nav .nav-links {
    display: flex;
    order: 4;
    width: 100%;
    overflow-x: auto;
    padding-top: 10px;
  }
  .portfolio-plans { padding-top: 48px; padding-bottom: 48px; }
  .portfolio-page .closing { padding-top: 34px; padding-bottom: 34px; }
  .portfolio-page .site-footer { padding-top: 20px; padding-bottom: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .phone-video video { animation: none; }
}

.portfolio-page .portfolio-nav .language-pill:hover { color: var(--ink); }

@media (max-width: 600px) {
  .collage-caption { grid-column: 1 / -1; grid-row: auto; }
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  color: var(--ink);
  background-color: var(--cream);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 22 22'%3E%3Ccircle cx='2' cy='2' r='1.35' fill='%231a1a2e' fill-opacity='.10'/%3E%3C/svg%3E");
  font-family: "Nunito", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.5;
  overflow-x: clip;
  text-wrap: pretty;
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

h1,
h2,
h3,
h4,
p,
figure {
  margin-top: 0;
}

h1,
h2,
h3,
h4,
.number,
.price,
.step-number,
.level-node,
.score-number {
  font-family: "Baloo 2", "Nunito", system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.04;
  text-wrap: balance;
}

[id] {
  scroll-margin-top: 24px;
}

.number,
.price,
.score-number {
  font-variant-numeric: tabular-nums;
}

h1 {
  margin-bottom: 24px;
  font-size: clamp(48px, 5.3vw, 76px);
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(40px, 5vw, 64px);
}

h3 {
  margin-bottom: 10px;
  font-size: 28px;
}

h4 {
  margin-bottom: 10px;
  font-size: 20px;
}

p {
  margin-bottom: 18px;
}

:focus-visible {
  outline: 4px solid var(--cyan);
  outline-offset: 4px;
}

.skip-link {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 20;
  min-height: 56px;
  padding: 14px 18px;
  color: var(--cream);
  background: var(--ink);
  border: 3px solid var(--cream);
  border-radius: 14px;
  transform: translateY(-140%);
}

.skip-link:focus {
  transform: none;
}

.container {
  width: min(1200px, calc(100% - 48px));
  margin-inline: auto;
}

.section {
  padding: 104px 0;
}

.section-intro {
  max-width: 720px;
  margin-bottom: 40px;
  color: var(--ink-2);
  font-size: 20px;
}

.card {
  background: #fff;
  border: var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 56px;
  padding: 10px 24px;
  color: var(--ink);
  background: #fff;
  border: var(--border);
  border-radius: 16px;
  box-shadow: 0 4px 0 var(--ink);
  font-family: "Baloo 2", "Nunito", system-ui, sans-serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 var(--ink);
}

.button:active {
  transform: translateY(4px);
  box-shadow: 0 0 0 var(--ink);
}

.button-lime {
  background: var(--lime);
}

.button-light-outline {
  color: var(--cream);
  background: transparent;
  border-color: var(--cream);
  box-shadow: 0 4px 0 var(--lime);
}

.chip {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 32px;
  padding: 5px 14px;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.25;
}

.chip-cyan { background: var(--cyan); }
.chip-lime { background: var(--lime); }
.chip-pink { background: var(--pink); }
.chip-yellow { background: var(--yellow); }
.chip-green { background: var(--green-soft); }

.stamp {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 8px 18px;
  background: var(--yellow);
  border: var(--border);
  border-radius: 999px;
  box-shadow: 0 4px 0 var(--ink);
  font-family: "Baloo 2", "Nunito", system-ui, sans-serif;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.15;
  transform: rotate(-3deg);
}

.stamp-pink { background: var(--pink); }
.stamp-cyan { background: var(--cyan); }
.stamp-lime { background: var(--lime); }

/* Navigation */
.site-nav {
  padding: 22px 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 10px;
  font-family: "Baloo 2", "Nunito", system-ui, sans-serif;
  font-size: 20px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  overflow: hidden;
  background: var(--ink);
  border: 3px solid var(--ink);
  border-radius: 50%;
}

.brand-mark img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
}

.nav-links a {
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
}

.nav-links a:hover,
.footer-links a:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.language-pill {
  display: inline-flex;
  flex: none;
  min-height: 42px;
  align-items: center;
  padding: 6px 12px;
  border: 2px solid currentColor;
  border-radius: 999px;
  font-size: 15px;
  line-height: 1;
  text-decoration: none;
}

.language-pill:hover {
  background: var(--soft);
}

.nav-dark .language-pill:hover {
  color: var(--ink);
  background: var(--cream);
}

.site-nav .button {
  flex: none;
  padding-inline: 18px;
  font-size: 16px;
}

.nav-dark {
  color: var(--cream);
}

.nav-dark .brand-mark {
  border-color: var(--cream);
}

/* Hero and legacy-panel */
.hero {
  padding: 52px 0 84px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}

.hero h1 {
  margin-top: 18px;
}

.hero-title-line {
  display: block;
}

.highlight {
  display: inline-block;
  padding: 0 10px 4px;
  background: var(--lime);
  border: var(--border);
  border-radius: 12px;
  transform: rotate(-1.5deg);
}

.hero-copy {
  max-width: 590px;
  color: var(--ink-2);
  font-size: 20px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 28px 0 16px;
}

.microcopy {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.legacy-panel-stage {
  position: relative;
  padding: 18px 14px 30px 30px;
  transform: rotate(1.2deg);
}

.legacy-panel-stage .legacy-panel {
  padding-bottom: 140px;
}

.legacy-panel-wrap {
  position: relative;
  padding-top: 22px;
}

.legacy-panel-label {
  position: absolute;
  top: 0;
  left: 20px;
  z-index: 4;
  background: var(--yellow);
}

.legacy-panel {
  padding: 30px;
  background: #fff;
  border: var(--border);
  border-radius: 26px;
  box-shadow: 0 7px 0 var(--ink);
}

.legacy-panel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.legacy-panel-top h3 {
  margin: 0;
  font-size: 24px;
}

.legacy-panel-marker {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: center;
  padding: 20px;
  margin-bottom: 20px;
  background: var(--soft);
  border-radius: 18px;
}

.legacy-panel-number {
  color: var(--purple);
  font-size: 72px;
}

.legacy-panel-marker p {
  max-width: 230px;
  margin: 0;
}

.legacy-panel-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 22px;
}

.legacy-panel-stat {
  position: relative;
  min-height: 108px;
  padding: 12px;
  background: var(--soft);
  border: 2px solid rgb(26 26 46 / 25%);
  border-radius: 16px;
}

.legacy-panel-stat:not(:last-child)::after {
  position: absolute;
  top: 36px;
  right: -17px;
  z-index: 2;
  content: "\2192";
  font-size: 22px;
  font-weight: 800;
}

.legacy-panel-stat:last-child {
  background: var(--green-soft);
}

.legacy-panel-stat .number {
  display: block;
  margin-bottom: 7px;
  font-size: 27px;
}

.legacy-panel-stat span:last-child {
  display: block;
  font-size: 15px;
  line-height: 1.2;
}

.legacy-panel-todo {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 15px;
  align-items: center;
  padding: 14px;
  background: #fff;
  border: 2px solid rgb(26 26 46 / 25%);
  border-radius: 16px;
}

.legacy-panel-todo-overlay {
  position: absolute;
  right: -8px;
  bottom: 8px;
  z-index: 5;
  width: 340px;
  border: var(--border);
  box-shadow: 0 5px 0 var(--ink);
  transform: rotate(4deg);
}

.legacy-panel-thumb {
  overflow: hidden;
  aspect-ratio: 9 / 16;
  border: 2px solid var(--ink);
  border-radius: 13px;
}

.legacy-panel-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.legacy-panel-todo h4 {
  margin: 0 0 8px;
}

.todo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.todo-actions .button {
  min-height: 56px;
  padding: 6px 14px;
  border-width: 2px;
  border-radius: 11px;
  box-shadow: 0 3px 0 var(--ink);
  font-size: 15px;
}

.legacy-panel-sticker {
  position: absolute;
  bottom: 104px;
  left: 8px;
  z-index: 6;
}

/* Continuity and steps */
.continuity-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.continuity-card {
  padding: 32px;
}

.continuity-card:last-child {
  background: #effbd7;
}

.steps-card {
  padding: 38px;
}

.steps-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}

.step-number {
  display: grid;
  width: 116px;
  height: 116px;
  margin-bottom: 22px;
  place-items: center;
  border: var(--border);
  border-radius: 50%;
  box-shadow: 0 5px 0 var(--ink);
  font-size: 92px;
}

.step:nth-child(1) .step-number { background: var(--yellow); }
.step:nth-child(2) .step-number { background: var(--cyan); }
.step:nth-child(3) .step-number { background: var(--pink); }
.step:nth-child(4) .step-number { background: var(--lime); }

.step h3 {
  font-size: 24px;
}

.step p {
  margin-bottom: 0;
}

/* Work wall */
.work-wall {
  width: 100%;
  padding: 92px 0 96px;
  overflow: hidden;
  color: var(--cream);
  background: var(--ink);
  border-radius: 48px;
}

.work-wall-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.work-wall-head h2 {
  margin: 0;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 30px;
}

.filters .chip {
  color: var(--cream);
  background: transparent;
  border-color: var(--cream);
}

.filters .chip:first-child {
  color: var(--ink);
  background: var(--lime);
  border-color: var(--lime);
}

.mural-clip {
  width: 100%;
  padding: 28px 0 42px;
  overflow: hidden;
}

.mural {
  display: flex;
  width: max-content;
  align-items: center;
  margin-left: max(24px, calc((100vw - 1200px) / 2));
  padding-right: 110px;
}

.mural-item {
  position: relative;
  flex: none;
  margin: 0 -18px 0 0;
  overflow: hidden;
  background: #fff;
  border: 3px solid var(--cream);
  border-radius: 24px;
  box-shadow: 0 6px 0 var(--lime);
}

.mural-item:nth-child(1) { width: 190px; transform: rotate(-4deg); }
.mural-item:nth-child(2) { z-index: 4; width: 480px; transform: rotate(3deg); }
.mural-item:nth-child(3) { z-index: 3; width: 240px; transform: rotate(-2deg); }
.mural-item:nth-child(4) { z-index: 2; width: 190px; transform: rotate(5deg); }
.mural-item:nth-child(5) { width: 240px; transform: rotate(-3deg); }
.mural-item:nth-child(6) { width: 410px; transform: rotate(2deg); }
.mural-item:nth-child(7) { width: 230px; transform: rotate(-3deg); }

.mural-item img {
  width: 100%;
  height: 350px;
  object-fit: cover;
}

.mural-item:nth-child(2) img,
.mural-item:nth-child(6) img {
  object-position: top;
}

.mural-item .stamp {
  position: absolute;
  bottom: 14px;
  left: 14px;
  color: var(--ink);
}

.work-wall-action {
  margin-top: 10px;
}

/* Business cases */
.business-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  margin-top: 34px;
}

.business-card {
  overflow: hidden;
  background: #fff;
  border: var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.business-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #fff;
}

.business-card figcaption {
  min-height: 80px;
  padding: 16px 18px;
  border-top: var(--border);
  font-family: "Baloo 2", "Nunito", system-ui, sans-serif;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.25;
}

/* Game board */
.game-section {
  background: var(--soft);
  border-block: var(--border);
}

.game-board {
  position: relative;
  max-width: 980px;
  margin: 50px auto 0;
  padding: 30px 0;
}

.game-line {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
}

.level {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 110px 1fr;
  align-items: center;
  margin-bottom: 42px;
}

.level-card {
  padding: 24px;
}

.level:nth-of-type(odd) .level-card { grid-column: 1; }
.level:nth-of-type(even) .level-card { grid-column: 3; }
.level .level-node { grid-row: 1; grid-column: 2; }

.level-node {
  display: grid;
  width: 88px;
  height: 88px;
  margin: auto;
  place-items: center;
  background: var(--yellow);
  border: var(--border);
  border-radius: 50%;
  box-shadow: var(--shadow);
  font-size: 44px;
}

.level:nth-of-type(2) .level-node { background: var(--cyan); }
.level:nth-of-type(3) .level-node { background: var(--pink); }
.level:nth-of-type(4) .level-node { background: var(--lime); }
.level:nth-of-type(5) .level-node { background: var(--purple); }

.level-card h3 {
  font-size: 30px;
}

.level-card p {
  margin-bottom: 0;
}

.legacy-panel-small {
  margin-top: 18px;
}

.legacy-panel-small .legacy-panel {
  padding: 18px;
  box-shadow: none;
}

.legacy-panel-small .legacy-panel-flow {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.legacy-panel-small .legacy-panel-stat {
  min-height: 94px;
  padding: 9px;
}

.legacy-panel-small .legacy-panel-stat::after {
  display: none;
}

.legacy-panel-small .legacy-panel-stat .number {
  font-size: 23px;
}

/* Plans */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

.plan {
  display: flex;
  min-width: 0;
  min-height: 540px;
  flex-direction: column;
  padding: 28px;
  background: #fff;
  border: var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.plan-featured {
  transform: translateY(-14px);
}

.plan-head {
  margin: -28px -28px 24px;
  padding: 18px 28px;
  background: var(--lime);
  border-bottom: var(--border);
  border-radius: 20px 20px 0 0;
  font-family: "Baloo 2", "Nunito", system-ui, sans-serif;
  font-size: 18px;
  font-weight: 600;
}

.price {
  min-height: 76px;
  margin: 12px 0 18px;
  font-size: 34px;
}

.plan p {
  color: var(--ink-2);
}

.plan ul {
  padding-left: 22px;
  margin: 4px 0 26px;
}

.plan li + li {
  margin-top: 8px;
}

.plan-actions {
  display: grid;
  gap: 12px;
  margin-top: auto;
}

.agency-strip {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
  margin-top: 30px;
  padding: 30px 34px;
  color: var(--cream);
  background: var(--ink);
  border: var(--border);
  border-radius: 24px;
  box-shadow: 0 6px 0 var(--purple);
}

.agency-strip h3,
.agency-strip p {
  margin-bottom: 4px;
}

.plans-note {
  max-width: 900px;
  margin: 30px 0 0;
}

/* Score form */
.score-section {
  padding: 104px 0;
}

.score-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.score-copy h2 {
  margin-top: 18px;
}

.score-copy .lead {
  color: var(--ink-2);
  font-size: 21px;
}

.score-form {
  padding: 20px;
  margin-top: 18px;
}

.score-form label {
  display: block;
  margin: 0 0 7px;
  font-size: 15px;
}

.score-form input {
  width: 100%;
  height: 56px;
  padding: 0 16px;
  margin-bottom: 14px;
  color: var(--ink);
  background: #fff;
  border: var(--border);
  border-radius: 14px;
  font-size: 17px;
}

.score-form .button {
  width: 100%;
}

.score-form .microcopy {
  margin-top: 14px;
}

.form-status {
  min-height: 24px;
  margin: 14px 0 0;
  color: var(--ink-2);
  font-size: 15px;
  text-align: center;
}

.form-status:empty {
  display: none;
}

.score-card {
  padding: 32px;
}

.score-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.dial {
  position: relative;
  width: min(340px, 100%);
  aspect-ratio: 1;
  margin: 18px auto 28px;
}

.dial svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.dial-bg {
  fill: none;
  stroke: var(--soft);
  stroke-width: 20;
}

.dial-progress {
  fill: none;
  stroke: var(--yellow);
  stroke-width: 20;
  stroke-linecap: round;
  stroke-dasharray: 491 792;
}

.dial-border {
  fill: none;
  stroke: var(--ink);
  stroke-width: 3;
}

.dial-copy {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
}

.score-number {
  font-size: 96px;
  line-height: 0.8;
}

.dial-copy span:last-child {
  margin-top: 14px;
  font-size: 18px;
}

.score-row {
  display: grid;
  grid-template-columns: 190px 1fr 42px;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
  font-size: 15px;
}

.score-track {
  height: 22px;
  overflow: hidden;
  background: var(--soft);
  border: var(--border);
  border-radius: 999px;
}

.score-fill {
  height: 100%;
  background: var(--green);
  border-right: 3px solid var(--ink);
}

.score-row.bad .score-fill { background: var(--red); }
.score-row.warn .score-fill { background: var(--yellow); }

.score-row .number {
  font-size: 18px;
  text-align: right;
}

.score-note {
  margin: 22px 0 0;
  padding: 16px;
  background: #fff3c9;
  border: var(--border);
  border-radius: 16px;
}

/* CTA and footer */
.closing {
  padding: 78px 0;
}

.closing-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 36px;
  align-items: center;
  padding: 48px;
  color: #fff;
  background: var(--purple);
  border: var(--border);
  border-radius: 32px;
  box-shadow: 0 7px 0 var(--ink);
}

.closing-card h2 {
  margin-bottom: 0;
}

.site-footer {
  padding: 30px 0 42px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-top: 26px;
  border-top: var(--border);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.footer-links a {
  text-decoration: none;
}

/* Work page */
.work-hero {
  padding-bottom: 72px;
  overflow: hidden;
  color: var(--cream);
  background: var(--ink);
  border-radius: 0 0 48px 48px;
}

.work-hero h1 {
  max-width: 1120px;
  margin: 48px 0 22px;
  font-size: clamp(54px, 7.8vw, 112px);
}

.work-hero h1 span {
  display: block;
  color: var(--lime);
}

.work-hero .lead {
  max-width: 780px;
  color: var(--cream);
  font-size: 22px;
}

.projects {
  display: grid;
  gap: 120px;
}

.project {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 72px;
  align-items: center;
}

.project:nth-child(even) {
  grid-template-columns: 0.85fr 1.15fr;
}

.project:nth-child(even) .project-visual {
  order: 2;
}

.project h3 {
  margin: 16px 0 22px;
  font-size: clamp(38px, 4vw, 58px);
}

.project ul {
  padding-left: 24px;
  margin: 0;
}

.project li + li {
  margin-top: 10px;
}

.browser-frame {
  overflow: hidden;
  background: #fff;
  border: var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.browser-bar {
  display: flex;
  height: 44px;
  align-items: center;
  gap: 7px;
  padding: 0 14px;
  background: var(--soft);
  border-bottom: var(--border);
}

.browser-dot {
  width: 11px;
  height: 11px;
  background: var(--pink);
  border: 2px solid var(--ink);
  border-radius: 50%;
}

.browser-dot:nth-child(2) { background: var(--yellow); }
.browser-dot:nth-child(3) { background: var(--lime); }

.browser-url {
  min-width: 0;
  margin-left: 8px;
  padding: 3px 14px;
  overflow: hidden;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.browser-frame > img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top;
}

.phone-frame {
  overflow: hidden;
  aspect-ratio: 9 / 16;
  background: #fff;
  border: var(--border);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.phone-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.web-stack {
  position: relative;
  padding: 0 60px 90px 0;
}

.web-stack .phone-frame {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 155px;
  transform: rotate(4deg);
}

.project-minis {
  display: grid;
  grid-template-columns: repeat(2, 110px);
  gap: 14px;
  margin-top: 24px;
}

.project-minis img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: var(--border);
  border-radius: 16px;
  box-shadow: 0 5px 0 var(--ink);
}

.phone-fan {
  display: flex;
  min-height: 490px;
  align-items: center;
  justify-content: center;
}

.phone-fan .phone-frame {
  width: 160px;
  margin: -14px;
}

.phone-fan .phone-frame:nth-child(1) { transform: rotate(-8deg); }
.phone-fan .phone-frame:nth-child(2) { z-index: 2; transform: translateY(-26px); }
.phone-fan .phone-frame:nth-child(3) { z-index: 3; transform: rotate(6deg); }
.phone-fan .phone-frame:nth-child(4) { transform: rotate(12deg); }

.data-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  margin-top: 28px;
  background: var(--green-soft);
  border: var(--border);
  border-radius: 20px;
  box-shadow: 0 5px 0 var(--ink);
}

.data-card .number {
  font-size: 68px;
}

.architecture-stack {
  position: relative;
  padding-bottom: 170px;
}

.architecture-stack .browser-frame > img {
  object-fit: contain;
}

.architecture-phones {
  position: absolute;
  right: 26px;
  bottom: 0;
  display: flex;
  gap: 14px;
}

.architecture-phones .phone-frame {
  width: 118px;
}

.architecture-phones .phone-frame:first-child { transform: rotate(-4deg); }
.architecture-phones .phone-frame:last-child { transform: rotate(5deg); }

.travel-fan .phone-frame {
  width: 220px;
  aspect-ratio: 4 / 5;
  border-radius: 22px;
}

.business-dark {
  color: var(--cream);
  background: var(--ink);
  border-radius: 48px;
}

.business-dark .business-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.business-dark .business-card {
  color: var(--ink);
  border-color: var(--cream);
  box-shadow: 0 6px 0 var(--lime);
}

.legacy-panel-section {
  background: var(--soft);
  border-block: var(--border);
}

.legacy-panel-section-grid {
  display: grid;
  grid-template-columns: 4fr 7fr;
  gap: 72px;
  align-items: center;
}

@media (max-width: 1000px) {
  .nav-inner {
    flex-wrap: wrap;
  }

  .nav-links {
    order: 3;
    width: 100%;
    margin-left: 0;
    justify-content: center;
  }

  .hero-grid,
  .score-grid,
  .legacy-panel-section-grid {
    grid-template-columns: 1fr;
  }

  .legacy-panel-stage {
    width: min(720px, 100%);
    margin-inline: auto;
  }

  .steps-row {
    grid-template-columns: 1fr 1fr;
  }

  .business-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .plans-grid {
    grid-template-columns: 1fr;
  }

  .plan {
    min-height: 0;
  }

  .plan-featured {
    transform: none;
  }

  .project,
  .project:nth-child(even) {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .project:nth-child(even) .project-visual {
    order: 0;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 17px;
  }

  .container {
    width: calc(100% - 32px);
  }

  .section,
  .score-section {
    padding: 72px 0;
  }

  h1 {
    font-size: 46px;
  }

  h2 {
    font-size: 40px;
  }

  .site-nav {
    padding: 16px 0;
  }

  .nav-inner {
    gap: 12px;
  }

  .brand {
    gap: 7px;
    font-size: 17px;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
  }

  .brand-mark img {
    width: 26px;
    height: 26px;
  }

  .site-nav .button {
    margin-left: auto;
    padding: 8px 12px;
    font-size: 15px;
  }

  .nav-links {
    gap: 8px;
    justify-content: flex-start;
  }

  .nav-links a,
  .language-pill {
    min-height: 40px;
    padding: 8px 10px;
    border: 2px solid currentColor;
    border-radius: 999px;
    font-size: 15px;
  }

  .language-pill {
    order: 4;
  }

  .hero {
    padding: 36px 0 68px;
  }

  .hero-grid {
    gap: 40px;
  }

  .hero-copy,
  .score-copy .lead {
    font-size: 18px;
  }

  .hero-actions {
    display: grid;
  }

  .hero-actions .button {
    width: 100%;
  }

  .legacy-panel-stage {
    display: flex;
    flex-direction: column;
    padding: 20px 0 0;
    transform: none;
  }

  .legacy-panel-stage .legacy-panel {
    padding-bottom: 20px;
  }

  .legacy-panel {
    padding: 20px 15px;
  }

  .legacy-panel-label {
    left: 10px;
    max-width: calc(100% - 20px);
  }

  .legacy-panel-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .legacy-panel-marker {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .legacy-panel-number {
    font-size: 64px;
  }

  .legacy-panel-flow {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .legacy-panel-stat:not(:last-child)::after {
    display: none;
  }

  .legacy-panel-todo-overlay,
  .legacy-panel-sticker {
    position: relative;
    right: auto;
    bottom: auto;
    left: auto;
  }

  .legacy-panel-sticker {
    z-index: 6;
    align-self: flex-start;
    margin: -18px 0 16px 8px;
  }

  .legacy-panel-todo-overlay {
    width: calc(100% - 20px);
    margin-inline: auto;
    transform: rotate(1deg);
  }

  .continuity-grid {
    grid-template-columns: 1fr;
  }

  .continuity-card {
    padding: 24px;
  }

  .steps-card {
    padding: 24px 18px;
  }

  .steps-row {
    grid-template-columns: 1fr;
  }

  .step {
    display: grid;
    grid-template-columns: 82px 1fr;
    gap: 16px;
  }

  .step-number {
    width: 76px;
    height: 76px;
    margin: 0;
    font-size: 58px;
  }

  .work-wall {
    padding: 68px 0;
    border-radius: 32px;
  }

  .work-wall-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .mural-clip {
    padding: 18px 0 36px 16px;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .mural-clip::-webkit-scrollbar {
    display: none;
  }

  .mural {
    display: flex;
    width: max-content;
    gap: 14px;
    margin: 0;
    padding: 0 16px 0 0;
  }

  .mural-item,
  .mural-item:nth-child(n) {
    width: calc((100vw - 30px) / 1.5);
    margin: 0;
    transform: none;
  }

  .mural-item:nth-child(2),
  .mural-item:nth-child(6),
  .mural-item:nth-child(7) {
    width: calc((100vw - 30px) / 1.5);
  }

  .mural-item img {
    height: auto;
    aspect-ratio: 4 / 5;
  }

  .mural-item:nth-child(2) img,
  .mural-item:nth-child(6) img {
    aspect-ratio: 4 / 5;
    object-fit: cover;
  }

  .business-grid,
  .business-dark .business-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .business-card figcaption {
    min-height: 92px;
    padding: 12px 10px;
    font-size: 15px;
  }

  .game-line {
    display: none;
  }

  .level {
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 12px;
    margin-bottom: 28px;
  }

  .level:nth-child(n) .level-node {
    grid-row: 1;
    grid-column: 1;
    width: 68px;
    height: 68px;
    font-size: 36px;
  }

  .level:nth-child(n) .level-card {
    grid-row: 1;
    grid-column: 2;
    padding: 18px 14px;
  }

  .level-card h3 {
    font-size: 24px;
  }

  .level::before {
    position: absolute;
    top: 66px;
    bottom: -32px;
    left: 32px;
    z-index: -1;
    content: "";
    border-left: 5px dashed var(--ink);
  }

  .level:last-child::before {
    display: none;
  }

  .level .legacy-panel-small {
    margin-left: -86px;
  }

  .agency-strip,
  .closing-card {
    grid-template-columns: 1fr;
  }

  .agency-strip {
    padding: 26px 22px;
  }

  .score-card {
    padding: 22px 16px;
  }

  .score-number {
    font-size: 78px;
  }

  .score-row {
    grid-template-columns: 118px 1fr 32px;
    gap: 7px;
  }

  .closing {
    padding: 60px 0;
  }

  .closing-card {
    padding: 30px 22px;
  }

  .footer-inner {
    flex-direction: column;
  }

  .footer-links {
    gap: 12px;
  }

  .work-hero {
    padding-bottom: 54px;
    border-radius: 0 0 32px 32px;
  }

  .work-hero h1 {
    margin: 34px 0 18px;
    font-size: 52px;
  }

  .projects {
    gap: 82px;
  }

  .project h3 {
    font-size: 40px;
  }

  .web-stack {
    padding: 0 36px 72px 0;
  }

  .web-stack .phone-frame {
    width: 110px;
  }

  .project-minis {
    grid-template-columns: repeat(2, 96px);
  }

  .phone-fan {
    min-height: 360px;
  }

  .phone-fan .phone-frame {
    width: 106px;
    margin: -12px;
  }

  .travel-fan .phone-frame {
    width: 132px;
  }

  .data-card .number {
    font-size: 56px;
  }

  .architecture-stack {
    padding-bottom: 136px;
  }

  .architecture-phones {
    right: 14px;
  }

  .architecture-phones .phone-frame {
    width: 92px;
  }
}

@media (max-width: 390px) {
  .brand {
    font-size: 16px;
  }

  .site-nav .button {
    max-width: 145px;
    padding-inline: 10px;
  }

  .nav-links {
    gap: 6px;
  }

  .nav-links a,
  .language-pill {
    padding-inline: 8px;
  }

  .score-row {
    grid-template-columns: 104px 1fr 30px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button {
    transition: none;
  }

  .button:hover {
    transform: none;
  }
}

/* R5: lead with the work */
.hero-phone-cluster {
  position: relative;
  min-height: 620px;
  isolation: isolate;
}

.hero-phone {
  position: absolute;
  width: 40%;
  max-width: 226px;
}

.hero-phone .phone-video { box-shadow: 11px 12px 0 var(--ink); }
.hero-phone small,
.hero-phone p { margin: 14px 0 0; color: var(--ink-2); font-size: 15px; line-height: 1.3; }
.hero-phone-left { left: 0; top: 92px; transform: rotate(-4deg); }
.hero-phone-center { z-index: 2; left: 50%; top: 10px; width: 43%; max-width: 244px; transform: translateX(-50%); }
.hero-phone-right { right: 0; top: 108px; transform: rotate(4deg); }
.hero-phone-right .result-sticker { right: 10px; left: auto; }
.hero-phone-center p { visibility: hidden; }

.legacy-panel-showcase { overflow: hidden; background: var(--soft); }
.legacy-panel-showcase-grid {
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
  gap: 64px;
  align-items: center;
}
.legacy-panel-showcase h2 { max-width: 560px; margin-top: 0; }
.legacy-panel-showcase-grid > div:first-child > p:last-child { max-width: 520px; font-size: 20px; }
.legacy-panel-showcase .legacy-panel-stage { min-width: 0; }

.video-ribbon { grid-template-columns: repeat(5, minmax(190px, 1fr)); }

.single-proof.google-proof,
.single-proof.promo-proof {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}
.single-proof .proof-label {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 17px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.single-proof.google-proof strong,
.single-proof.promo-proof strong { display: block; font-size: clamp(48px, 7.5vw, 92px); }
.single-proof.google-proof span,
.single-proof.promo-proof span { display: block; min-height: 58px; margin: 8px 0 18px; font-size: 21px; }

@media (max-width: 1000px) {
  .hero-phone-cluster { width: min(680px, 100%); min-height: 620px; margin-inline: auto; }
  .legacy-panel-showcase-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .hero-phone-cluster { min-height: 470px; margin-top: 4px; }
  .hero-phone { width: 39%; }
  .hero-phone-center { width: 44%; }
  .hero-phone-left { top: 66px; }
  .hero-phone-right { top: 78px; }
  .hero-phone .result-sticker { padding: 7px 8px; }
  .hero-phone .result-sticker strong { font-size: 19px; }
  .hero-phone small,
  .hero-phone p { font-size: 15px; }
  .video-ribbon { grid-template-columns: repeat(5, 68vw); }
  .legacy-panel-showcase-grid { gap: 24px; }
  .single-proof.google-proof,
  .single-proof.promo-proof { grid-template-columns: 1fr; gap: 26px; }
  .single-proof .proof-label { grid-column: auto; }
  .single-proof.google-proof span,
  .single-proof.promo-proof span { min-height: 0; }
}

.hero-phone-left .sound-button { right: auto; left: 14px; }
small { font-size: 15px; }

/* R7 late specificity overrides */
body .website-marquee .site-pair { position: relative; flex: 0 0 620px; display: grid; grid-template-columns: minmax(0,1fr) 120px; gap: 18px; align-items: end; }
body .website-marquee .site-pair .browser-frame { width: 100%; }
body .website-marquee .site-pair .phone-frame { position: static; right: auto; bottom: auto; width: 120px; height: 260px; border: 3px solid var(--ink); box-shadow: 7px 7px 0 var(--pink); }
body .website-marquee .site-pair h3,
body .website-marquee .site-pair p { grid-column: 1 / -1; }
.portfolio-hero .plain-results { color: var(--cream); }
.portfolio-hero .plain-results article { border-color: rgba(255,255,255,.35); }
.portfolio-hero .plain-results strong { color: var(--lime); }
.festival-screen .sound-button { right: 16px; bottom: 16px; }
.systems-layout .catalog-flow { grid-column: 1 / -1; }
@media (max-width: 760px) {
  body .website-marquee .site-pair { flex-basis: 330px; grid-template-columns: minmax(0,1fr) 76px; gap: 10px; }
  body .website-marquee .site-pair .phone-frame { width: 76px; height: 170px; }
}

/* R7 ajustes de Claude: chat real y capítulo 08 sin hueco */
.chat-bubble:nth-child(2) { margin-left: 0; background: var(--cream); }
.chat-bubble.chat-bubble-ai { margin-left: auto; background: var(--lime); }
.chat-steps .chat-bubble strong { display: inline-block; margin-bottom: 4px; }
@media (min-width: 900px) {
  .systems-layout { grid-template-columns: 1.1fr 1fr 1fr; align-items: stretch; }
  .systems-layout .chat-explainer { grid-column: 1; grid-row: 1; }
  .systems-layout .system-shot { grid-row: 1; margin-top: 0; align-self: center; }
  .systems-layout .catalog-flow { grid-column: 1 / -1; grid-row: 2; }
}
