@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&display=swap');

:root {
  --reading-width:800px;
  --paper:#fdfdfd;
  --surface:#eeefe9;
  --ink:#202124;
  --muted:#60645f;
  --line:#d8dad2;
  --accent:#e1e9d9;
  --page:72px;
  --section:40px;
  --lead:28px;
  --summary:24px;
  --body:18px;
  --label:13px;
  --gutter:48px;
  --space:96px;
  --radius:24px;
  --motion-ease:cubic-bezier(.42,0,.25,1);
  --entry-ease:cubic-bezier(.58,0,.35,1);
  --container:1120px
}

* {
  box-sizing:border-box
}
html {
  scroll-behavior:smooth;
  scroll-padding-top:112px
}
body {
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:'DM Sans',Arial,sans-serif;
  font-weight:400;
  font-size:var(--body);
  line-height:1.65;
  -webkit-font-smoothing:antialiased
}
a {
  color:inherit;
  text-decoration:none
}
img {
  max-width:100%
}
a:focus-visible {
  outline:3px solid #34592d;
  outline-offset:5px;
  border-radius:4px
}
h1,h2,h3,[data-case-heading="3"],p,figure,blockquote {
  margin:0
}
:is(h1,h2,h3):not([data-case-heading]),
:is([data-case-heading="1"],[data-case-heading="2"],[data-case-heading="3"]) {
  font-weight:500;
  text-wrap:balance
}
:is(h1:not([data-case-heading]),[data-case-heading="1"]) {
  font-size:var(--page);
  line-height:1.1;
  letter-spacing:-.045em
}
:is(h2:not([data-case-heading]),[data-case-heading="2"]) {
  font-size:var(--section);
  line-height:1.2;
  letter-spacing:-.035em
}
:is(h3:not([data-case-heading]),[data-case-heading="3"]) {
  font-size:var(--lead);
  line-height:1.2;
  letter-spacing:-.025em
}
strong {
  font-weight:600
}
main,.site-header {
  width:calc(100% - var(--gutter)*2);
  max-width:var(--container);
  margin-inline:auto
}
main {
  min-width:0
}
@media (prefers-reduced-motion:no-preference) {
  body > main:not(.has-tile-reveals) {
    animation:page-entry 220ms var(--entry-ease)
  }
}

@keyframes page-entry {
  from { opacity:.86 }
  to { opacity:1 }
}
section[id] {
  scroll-margin-top:0
}
.site-header {
  position:sticky;
  top:16px;
  z-index:20;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
  min-height:68px;
  padding:8px 16px 8px 24px;
  background:rgba(255,255,255,.96);
  border:1px solid #e6e7e0;
  border-radius:999px;
  box-shadow:0 3px 14px #2021240c;
  margin-top:16px
}
.wordmark {
  font-size:28px;
  font-weight:600;
  letter-spacing:-1.6px;
  line-height:1
}
.wordmark span {
  font-size:11px;
  vertical-align:top;
  margin-left:3px;
  letter-spacing:0
}
nav {
  display:flex;
  gap:4px;
  align-items:center
}
nav a {
  padding:10px 18px;
  border-radius:999px;
  font-size:14px;
  line-height:1.4;
  transition:background .2s var(--motion-ease)
}
nav a:hover,nav a[aria-current] {
  background:var(--surface)
}
nav .nav-contact {
  background:var(--ink);
  color:white
}
nav .nav-contact:hover {
  background:#414541
}
.eyebrow {
  font-size:var(--label);
  line-height:1.5;
  letter-spacing:.09em;
  text-transform:uppercase;
  color:var(--muted);
  margin-bottom:24px
}
.hero {
  padding-block:48px
}
.hero h1 {
  margin-bottom:32px
}
.hero-bottom {
  display:flex;
  flex-direction:column;
  gap:32px;
  align-items:flex-start
}
.hero-bottom p {
  font-size:var(--summary);
  line-height:1.5;
  max-width:850px
}
.text-link {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:48px;
  padding:12px 24px;
  border-radius:999px;
  background:var(--ink);
  color:white;
  font-size:15px;
  line-height:1.5;
  transition:background .2s var(--motion-ease),transform .2s var(--motion-ease)
}
.text-link:hover {
  background:#414541;
  transform:translateY(-2px)
}
.work {
  padding-bottom:var(--space)
}
.section-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  margin-bottom:40px
}
.section-heading>span {
  font-size:var(--label);
  color:var(--muted)
}
.project-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:56px 28px
}
.project {
  min-width:0
}
.project>a {
  display:block;
  border-radius:var(--radius)
}
.cover {
  aspect-ratio:4/3;
  overflow:hidden;
  border-radius:var(--radius);
  background:var(--surface)
}
.cover img {
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  transition:transform .25s var(--motion-ease)
}
.project a:hover .cover img {
  transform:scale(1.018)
}
.project-label {
  display:flex;
  align-items:flex-start;
  flex-direction:column;
  gap:8px 0;
  margin:24px 0 8px
}
.project-label>span {
  font-size:14px;
  color:var(--muted);
  flex-shrink:0
}
.project-tags {
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  padding:0;
  margin:12px 0 0;
  list-style:none
}
.case-summary:has(+ .project-tags) {
  margin-bottom:16px
}
.case-summary + .project-tags {
  max-width:var(--reading-width);
  margin:0 0 32px
}
.project-tags li {
  padding:4px 10px;
  border-radius:999px;
  background:var(--surface);
  font-size:var(--label);
  line-height:1.5
}
.project p {
  font-size:16px;
  line-height:1.65;
  color:var(--muted);
  white-space:pre-line
}
.about {
  display:grid;
  grid-template-columns:clamp(180px,22vw,260px) minmax(0,1fr);
  gap:clamp(24px,5vw,64px);
  align-items:center;
  padding-block:var(--space);
  border-top:1px solid var(--line)
}
.about-portrait {
  display:block;
  width:100%;
  aspect-ratio:1;
  height:auto;
  border-radius:50%;
  object-fit:cover;
  object-position:center 40%
}
@media (max-width:650px) {
  .about { grid-template-columns:1fr; }
  .about-portrait { width:160px; }
}
.about h2 {
  margin-bottom:28px
}
.about-copy > p {
  font-size:var(--summary);
  line-height:1.5
}
.about-groups {
  display:grid;
  gap:16px;
  margin-top:24px
}
.about-groups h3 {
  margin:0 0 8px;
  font-size:var(--label);
  font-weight:600;
  letter-spacing:normal
}
.about-groups .project-tags {
  margin:0
}
.about-tools {
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:0;
  padding:0;
  list-style:none
}
.about-tools li {
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:6px 10px;
  border-radius:8px;
  background:var(--surface);
  font-size:var(--label)
}
.about-tools svg {
  display:block;
  flex:none;
  width:16px;
  height:16px
}
.contact {
  padding:56px;
  background:var(--accent);
  border-radius:var(--radius);
  margin-bottom:var(--space)
}
.contact h2 {
  margin-bottom:32px
}
.social {
  display:block;
  width:fit-content;
  font-size:15px;
  margin-top:24px;
  text-decoration:underline;
  text-underline-offset:5px
}
footer {
  padding-block:28px;
  padding-inline:max(var(--gutter),calc((100% - var(--container)) / 2));
  display:flex;
  justify-content:space-between;
  gap:20px;
  background:#000;
  font-size:var(--label);
  color:#fff
}
footer a:focus-visible {
  outline-color:currentColor
}
footer a:hover {
  text-decoration:underline
}
.skip {
  position:fixed;
  top:-100px;
  left:20px;
  z-index:30;
  background:white;
  padding:12px 20px
}
.skip:focus {
  top:20px
}
.case {
  padding-top:48px
}
.back {
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:8px 16px;
  border:1px solid var(--line);
  border-radius:999px;
  font-size:var(--label);
  margin-bottom:56px
}
.back:hover {
  background:var(--surface)
}
.case-opening>h1 {
  margin-bottom:28px
}
.case-summary {
  font-size:var(--summary);
  line-height:1.5;
  margin-bottom:40px;
  width:100%;
  max-width:var(--reading-width);
  overflow-wrap:anywhere
}
.case-meta {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:32px;
  padding-top:24px;
  border-top:1px solid var(--line);
  margin-bottom:56px;
  font-size:15px
}
.case-meta:has(> :nth-child(3)) {
  grid-template-columns:repeat(3,minmax(0,1fr))
}
.case-meta span {
  font-size:var(--label);
  color:var(--muted);
  display:block;
  margin-bottom:12px
}
.case-meta a {
  text-decoration:underline;
  text-underline-offset:4px
}
.imported-modules {
  --module-gap:48px;
  --related-module-gap:24px;
  display:flow-root;
  width:100%
}
.case-opening:has(> :is(.imported-visual,.artwork-grid)) + .imported-modules:not(:empty) {
  margin-top:var(--module-gap)
}
.imported-visual {
  width:100%;
  margin:0
}

.imported-visual img {
  display:block;
  width:100%;
  height:auto
}
.case-opening > .imported-visual img {
  border-radius:var(--radius)
}
.imported-copy {
  width:100%;
  max-width:var(--reading-width);
  margin:0 auto;
  font-size:var(--body);
  line-height:1.65;
  overflow-wrap:anywhere
}
.imported-copy p+p {
  margin-top:24px
}
.imported-copy :is(h2,[data-case-heading="2"]) {
  margin-block:48px 24px
}
.imported-copy :is(h2,[data-case-heading="2"]):first-child {
  margin-top:0
}
.imported-copy ul,.imported-copy ol {
  padding-left:1.4em;
  margin-block:24px 0
}
.imported-copy li {
  padding-left:.35em;
  margin-block:16px
}
.imported-copy li>ol {
  margin-top:16px
}
.imported-copy--lead {
  font-size:var(--lead);
  font-weight:500;
  line-height:1.4;
  letter-spacing:-.02em
}
.imported-copy--action {
  max-width:none;
  padding-block:40px;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line)
}
.imported-copy--action > * { max-width:var(--reading-width);margin-inline:auto; }
.imported-copy a:not(.sample-button) {
  text-decoration:underline;
  text-underline-offset:5px;
  color:#34592d
}
.next {
  display:block;
  margin-top:var(--space);
  padding:48px;
  background:var(--surface);
  border-radius:var(--radius);
  margin-bottom:var(--space);
  transition:background .2s var(--motion-ease)
}
.next:hover {
  background:#e4e7de
}
.next>span {
  display:block;
  font-size:var(--label);
  margin-bottom:16px
}
@media screen and (prefers-reduced-motion:no-preference) {
  .tile-pending:not(:focus-within) {
    opacity:0
  }
  .is-revealing {
    animation:reveal-in 450ms var(--entry-ease)
  }
}

@keyframes reveal-in {
  from {
    opacity:0;
    transform:translateY(32px)
  }
  to {
    opacity:1;
    transform:translateY(0)
  }
}

@media(max-width:1023px) {
  :root {
  --gutter:32px;
  --page:60px
}
.site-header {
  top:12px
}
.project-grid {
  gap:44px 24px
}
.project-label h3 {
  font-size:24px
}

}

@media(max-width:650px) {
  :root {
  --page:40px;
  --section:30px;
  --lead:24px;
  --summary:20px;
  --body:16px;
  --label:12px;
  --gutter:20px;
  --space:56px
}
.site-header {
  top:10px;
  min-height:60px;
  padding:8px 10px 8px 16px;
  gap:8px
}
.wordmark {
  font-size:24px
}
nav {
  gap:0
}
nav a {
  font-size:12px;
  padding:10px 12px
}
.section-heading {
  align-items:flex-start;
  flex-direction:column;
  gap:12px;
  margin-bottom:28px
}
.project-grid {
  grid-template-columns:1fr;
  gap:40px
}
.project-label {
  margin-top:20px
}
.project-label h3 {
  font-size:24px
}
.project p {
  font-size:16px
}
.contact {
  padding:32px 24px
}
.contact .text-link {
  font-size:13px;
  padding-inline:16px;
  max-width:100%;
  overflow-wrap:anywhere
}
.case {
  padding-top:32px
}
.back {
  margin-bottom:40px
}
.case-summary {
  margin-bottom:32px
}
.case-meta,.case-meta:has(> :nth-child(3)) {
  grid-template-columns:1fr;
  gap:24px;
  margin-bottom:40px;
  font-size:14px
}
.case-meta span {
  margin-bottom:6px
}

.imported-copy :is(h2,[data-case-heading="2"]) {
  margin-top:32px
}
.imported-modules {
  --module-gap:24px;
  --related-module-gap:16px
}
.next {
  padding:32px 24px
}
footer {
  flex-wrap:wrap;
  gap:16px
}
footer>span:nth-child(2) {
  display:none
}
html {
  scroll-padding-top:96px
}
section[id] {
  scroll-margin-top:0
}

}

@media(prefers-reduced-motion:reduce) {
  html {
  scroll-behavior:auto
}
*,*::before,*::after {
  animation:none!important;
  transition:none!important
}
.project a:hover .cover img,.text-link:hover {
  transform:none
}

}


.imported-copy--action a:not(.sample-button) {
  display:inline-flex;
  align-items:center;
  min-height:48px;
  padding:12px 24px;
  margin-top:20px;
  border-radius:999px;
  background:var(--ink);
  color:#fff;
  font-size:15px;
  line-height:1.5;
  text-decoration:none;
  max-width:100%;
  overflow-wrap:anywhere;
  transition:background .2s var(--motion-ease)
}
.imported-copy--action a:not(.sample-button):hover {
  background:#414541
}

@media(prefers-reduced-motion:reduce) {
  .imported-copy--action a:not(.sample-button) {
  transition:none
}

}

/* Public design-system reference page */
.design-system { padding-top:48px; }
.system-hero { padding:48px 0; }
.system-title-row { display:flex; align-items:center; justify-content:space-between; gap:24px; }
.system-title-row h1 { font-size:var(--page); }
.in-progress { flex-shrink:0; padding:9px 15px; border-radius:999px; background:var(--surface); color:var(--muted); font-size:var(--label); }
.system-intro { margin-top:28px; font-size:var(--summary); line-height:1.5; max-width:900px; }
.system-status { display:flex; flex-wrap:wrap; justify-content:space-between; gap:12px 24px; margin-top:36px; padding-top:16px; border-top:1px solid var(--line); color:var(--muted); font-size:var(--label); }
.system-status strong { color:var(--ink); font-weight:600; }
.system-section { margin-bottom:48px; }
.system-section-content { padding:32px; border:1px solid var(--line); border-radius:24px; background:#fff; }
.system-section-content>.type-specimen:first-child { border-top:0; padding-top:0; }
.system-section-heading { display:flex; justify-content:space-between; align-items:end; gap:24px; margin-bottom:24px; }
.system-section-heading .eyebrow,.system-pill { font-size:12px; font-weight:500; display:inline-flex; width:fit-content; padding:7px 13px; margin-bottom:16px; border-radius:999px; background:var(--surface); color:var(--ink); letter-spacing:.06em; }
.system-section-heading h2 { margin-top:8px; font-weight:600; }
.system-section-heading>p { color:var(--muted); font-size:15px; }
.type-specimen { padding:28px 0; border-top:1px solid rgba(32,33,36,.16); }
.specimen-label { display:block; margin-bottom:20px; color:var(--muted); font-size:var(--label); }
.type-example { font-weight:500; text-wrap:balance; }
.type-example--display { font-size:var(--page); line-height:1.1; letter-spacing:-.045em; }
.type-example--section { font-weight:600; font-size:var(--section); line-height:1.2; letter-spacing:-.035em; }
.type-example--lead { font-size:var(--lead); line-height:1.2; letter-spacing:-.025em; }
.type-specimen .summary-sample { font-size:var(--summary); line-height:1.5; }
.type-specimen>p:not(.eyebrow) { max-width:none; }
.sample-label { margin:0; }
.type-scale-table { border-top:1px solid rgba(32,33,36,.16); }
.type-scale-table>div { display:grid; grid-template-columns:1fr .8fr 1.4fr; gap:20px; padding:16px 0; border-bottom:1px solid var(--line); align-items:baseline; font-size:14px; }
.type-scale-table code,.token-grid code,.swatches code { color:var(--muted); font-size:12px; font-weight:400; }
.type-scale-table b { font-weight:500; }
.swatches { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
.swatches>div { display:flex; align-items:center; gap:14px; min-width:0; padding:12px; background:var(--surface); border-radius:16px; }
.swatches i { flex:0 0 56px; height:56px; border-radius:12px; background:var(--swatch); border:1px solid rgba(32,33,36,.12); }
.swatches span { display:grid; gap:4px; font-size:14px; }
.token-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.token-grid>div { display:grid; gap:10px; padding:22px; border:1px solid var(--line); border-radius:16px; }
.token-grid small { color:var(--muted); font-size:12px; }
.token-grid span { color:var(--muted); font-size:var(--label); }
.token-grid strong { font-size:19px; font-weight:500; }
.component-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.component-sample { min-width:0; padding:24px; border:1px solid var(--line); border-radius:20px; background:#fff; }
.component-sample>p { font-size:16px; }
.mini-nav { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:10px; padding:14px; border:1px solid var(--line); border-radius:999px; font-size:12px; }
.mini-nav strong { font-size:18px; letter-spacing:-1px; }
.mini-nav b { padding:9px 14px; border-radius:999px; background:var(--ink); color:#fff; font-weight:400; }
.sample-actions { display:flex; align-items:center; flex-wrap:wrap; gap:22px; }
.sample-button { display:inline-flex; align-items:center; justify-content:center; gap:12px; min-height:48px; padding:12px 20px; border:1px solid transparent; border-radius:999px; font-size:15px; font-weight:500; line-height:1.5; transition:background .2s var(--motion-ease); }
.sample-button--primary { background:var(--ink); color:#fff; }
.sample-button--primary:hover { background:#414541; }
.sample-button--secondary { border-color:var(--ink); background:#fff; }
.sample-button--secondary:hover,.sample-button--tertiary:hover { background:var(--surface); }
.sample-button--tertiary { padding-inline:12px; }
.sample-project-art { display:flex; flex-direction:column; justify-content:space-between; gap:36px; min-height:190px; padding:20px; border-radius:18px; background:#f4e9bd; }
.sample-project-art span { font-size:var(--label); color:#52503f; }
.sample-project-art strong { font-size:28px; font-weight:500; letter-spacing:-.03em; }
.sample-card-caption { display:grid; grid-template-columns:1fr auto; gap:6px 12px; padding:16px 2px 0; }
.sample-card-caption>strong { font-size:18px; font-weight:500; }
.sample-card-caption>span { color:var(--muted); font-size:var(--label); }
.sample-card-caption>p { grid-column:1/-1; color:var(--muted); font-size:14px; }
.sample-metadata { display:grid; gap:8px; padding:20px; border:1px solid var(--line); border-radius:16px; }
.sample-metadata span { margin-top:8px; color:var(--muted); font-size:var(--label); text-transform:uppercase; letter-spacing:.06em; }
.sample-metadata strong { font-weight:400; font-size:15px; }
.sample-tags { display:flex; flex-wrap:wrap; gap:10px; }
.sample-tags span { padding:10px 16px; border-radius:999px; background:var(--surface); font-size:var(--label); }
.review-note { margin-bottom:var(--space); padding:36px; border-radius:var(--radius); background:var(--surface); }
.review-note h2 { margin-bottom:16px; }
.review-note p { max-width:760px; color:#4f534e; }
@media(max-width:1023px) {
  .system-title-row h1,.type-example--display { font-size:60px; }
  .token-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:650px) {
  .design-system { padding-top:32px; }
  .system-hero { padding:32px 0; }
  .system-title-row { align-items:flex-start; flex-direction:column; gap:18px; }
  .system-title-row h1,.type-example--display { font-size:40px; }
  .system-intro { font-size:20px; }
  .system-section { margin-bottom:32px; }
  .system-section-content { padding:20px; }
  .system-section-heading { align-items:flex-start; flex-direction:column; gap:12px; margin-bottom:28px; }
  .system-section-heading h2,.type-example--section { font-size:30px; }
  .type-example--lead { font-size:24px; }
  .type-specimen .summary-sample { font-size:20px; }
  .type-scale-table>div { grid-template-columns:1fr; gap:6px; }
  .swatches { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .swatches>div { align-items:flex-start; flex-direction:column; }
  .swatches i { flex-basis:auto; width:100%; height:44px; }
  .token-grid,.component-grid { grid-template-columns:1fr; }
  .component-sample { padding:18px; }
  .mini-nav { border-radius:18px; }
  .review-note { padding:26px 20px; }
  nav a { padding-inline:10px; }
}

.system-guidance { margin-top:24px; font-size:14px; color:var(--muted); }
.system-guidance p+p { margin-top:12px; }

/* Experimental case-study organisation. */
.case-test-note { padding:24px; margin-bottom:48px; border:1px solid var(--line); border-radius:var(--radius); background:var(--surface); }
.case-test-note p { margin-block:8px 12px; }
.case-test-note a { text-decoration:underline; text-underline-offset:4px; }
.case-section-pill { display:inline-flex; padding:7px 13px; border-radius:999px; background:var(--surface); font-size:12px; font-weight:500; letter-spacing:.06em; text-transform:uppercase; margin-bottom:24px; }
.imported-copy--chapter :is(h2,[data-case-heading="2"]) { margin-top:0; font-weight:600; }
.role-summary { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:24px; padding-block:24px; border-block:1px solid var(--line); }
.role-summary span { display:block; color:var(--muted); font-size:var(--label); margin-bottom:8px; }
.role-summary strong { font-size:var(--body); font-weight:500; }
@media(max-width:650px) { .role-summary { grid-template-columns:1fr; } }


.imported-media iframe,.imported-media video { width:100%; aspect-ratio:16/9; border:0; border-radius:var(--radius); }
.imported-media figcaption { margin-top:12px; font-size:14px; text-decoration:underline; }
/* Project categories sit directly above the results they filter. */
@media(max-width:650px) {
.hero {
  padding-block:32px
}
.hero h1 {
  margin-bottom:24px
}
.hero-bottom {
  gap:24px
}
}
#work .section-heading { margin-bottom:20px; }
.work-filters { flex-wrap:wrap;gap:8px;margin-bottom:28px; }
.work-filters a { display:inline-flex;align-items:center;min-height:44px;padding:8px 16px;border:1px solid var(--line); }
.work-filters a[aria-current] { background:var(--ink);border-color:var(--ink);color:white; }
#work .project[hidden] { display:none; }

.imported-modules > * + * {
  margin-block-start:var(--module-gap)
}
.imported-modules > .imported-copy--heading + *,
.imported-modules > .imported-copy--lead + .imported-copy {
  margin-block-start:var(--related-module-gap)
}

.sprouts-modules > .imported-copy--lead {
  margin-block-start:var(--related-module-gap)
}

.artwork-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  align-items:start;
  gap:24px;
}
.artwork-grid--pair {
  /* Scale the 5:7 poster and 4:3 mockup to the same natural height. */
  grid-template-columns:minmax(0,15fr) minmax(0,28fr)
}
.artwork-grid--pair img {
  border-radius:var(--radius)
}
.artwork-grid > .imported-visual {
  margin:0;
}
@media (max-width:1023px) {
  .visual-diary-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:650px) {
  .artwork-grid { grid-template-columns:1fr;gap:16px; }
}

.imported-copy--smartscriber-panel:has(> :is(.smartscriber-stats,.smartscriber-personas,.smartscriber-journey)) {
  max-width:none
}
.imported-copy--smartscriber-panel > :is(h2,p,[data-case-heading="2"]) {
  max-width:var(--reading-width);
  margin-inline:auto;
  text-align:left
}
.imported-copy--smartscriber-panel :is(h3,[data-case-heading="3"]) {
  font-size:var(--body);
  font-weight:600;
  margin:24px 0 12px
}
.imported-copy--smartscriber-panel .smartscriber-stats {
  margin:0;
  padding:0
}
.smartscriber-stats {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
  list-style:none
}
.smartscriber-stats:has(> :last-child:nth-child(2)) {
  grid-template-columns:repeat(2,minmax(0,1fr))
}
.imported-copy--smartscriber-panel .smartscriber-stats li,
.smartscriber-persona {
  background:#fff;
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:clamp(20px,3vw,32px)
}
.imported-copy--smartscriber-panel .smartscriber-stats li {
  margin:0
}
.smartscriber-stats strong {
  display:block;
  color:var(--ink);
  font-size:var(--section);
  line-height:1.15;
  margin-bottom:8px
}
.smartscriber-personas {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
  margin-top:20px
}
.imported-copy--smartscriber-panel .smartscriber-persona :is(h3,[data-case-heading="3"]) {
  font-size:var(--summary);
  margin:0 0 8px
}
.smartscriber-persona > :is(h3,[data-case-heading="3"]) + p {
  color:var(--muted)
}
.smartscriber-persona :is(h4,[data-case-heading="4"]) {
  font-size:inherit;
  margin:20px 0 8px;
  border-top:1px solid var(--line);
  padding-top:16px
}
.imported-copy--smartscriber-panel .smartscriber-payments {
  padding:0;
  margin:0
}
.imported-copy--smartscriber-panel .smartscriber-payments li {
  display:inline-flex;
  align-items:center;
  gap:6px;
  max-width:100%;
  padding:4px 10px;
  margin:0
}
.smartscriber-payments svg {
  width:16px;
  height:16px;
  flex:none
}
.smartscriber-journey {
  --journey-marker:32px;
  --journey-inset:calc(var(--journey-marker) + clamp(12px,2vw,24px));
  --journey-row-gap:clamp(24px,3vw,40px);
  list-style:none
}
.imported-copy--smartscriber-panel .smartscriber-journey {
  margin:0;
  padding:clamp(16px,3vw,32px);
  background:#fff;
  border:1px solid var(--line);
  border-radius:var(--radius)
}
.imported-copy--smartscriber-panel .smartscriber-journey > li {
  position:relative;
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:clamp(16px,3vw,32px);
  padding:0 0 var(--journey-row-gap) var(--journey-inset);
  margin:0
}
.imported-copy--smartscriber-panel .smartscriber-journey > li:last-child {
  padding-bottom:0
}
.smartscriber-journey > li:not(:last-child)::before {
  content:"";
  position:absolute;
  inset-block-start:calc(var(--journey-marker) / 2);
  inset-block-end:calc(var(--journey-marker) / -2);
  inset-inline-start:calc((var(--journey-marker) - 1px) / 2);
  width:1px;
  background:var(--line)
}
.smartscriber-journey > li:not(:last-child)::after {
  content:"";
  position:absolute;
  inset-inline:var(--journey-inset) 0;
  inset-block-end:calc(var(--journey-row-gap) / 2);
  height:1px;
  background:var(--line)
}
.smartscriber-journey-marker {
  position:absolute;
  inset:0 auto auto 0;
  display:grid;
  place-items:center;
  width:var(--journey-marker);
  aspect-ratio:1;
  border:1px solid var(--line);
  border-radius:50%;
  background:var(--paper);
  font-size:var(--label);
  font-weight:600;
  font-variant-numeric:tabular-nums
}
.imported-copy--smartscriber-panel .smartscriber-journey-experience :is(h3,[data-case-heading="3"]) {
  font-size:var(--summary);
  line-height:1.3;
  margin:0 0 8px
}
.smartscriber-journey-response {
  background:var(--surface);
  border-radius:var(--radius);
  padding:clamp(16px,2.5vw,24px)
}
.smartscriber-journey-label {
  display:flex;
  align-items:center;
  gap:6px;
  color:var(--muted);
  font-size:var(--label);
  font-weight:600
}
.smartscriber-journey-label svg {
  width:16px;
  height:16px;
  flex:none
}
.imported-copy .smartscriber-journey-label + p {
  margin-top:8px
}
.smartscriber-journey + p {
  margin-top:24px
}
@media (max-width:650px) {
  .smartscriber-personas,
  .smartscriber-stats,
  .smartscriber-stats:has(> :last-child:nth-child(2)),
  .imported-copy--smartscriber-panel .smartscriber-journey > li {
    grid-template-columns:minmax(0,1fr)
  }
  .imported-copy--smartscriber-panel .smartscriber-journey > li {
    gap:12px
  }
}

.related-work {
  margin-block:var(--space)
}
.related-links {
  list-style:none;
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  padding:0;
  margin:16px 0 24px
}
.related-links a {
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:8px 16px;
  border:1px solid var(--line);
  border-radius:999px;
  font-size:var(--label)
}
.related-links a:hover,
.related-load:hover {
  background:var(--surface)
}
.related-case {
  border-top:1px solid var(--line);
  border-image:linear-gradient(var(--line),var(--line)) 1 / 1px 0 0 / 0 100vmax;
  padding-top:clamp(24px,5vw,56px);
  margin-block:32px var(--space)
}
.related-error a,
.related-placeholder-link {
  text-decoration:underline;
  text-underline-offset:4px
}
.related-case [data-case-heading="1"] {
  margin-bottom:28px
}
.related-controls .related-load,
.related-end {
  margin-bottom:0
}
.related-load {
  background:var(--paper);
  color:var(--ink);
  font-family:inherit;
  cursor:pointer
}
.related-load:focus-visible {
  outline:3px solid #34592d;
  outline-offset:4px
}
.related-error {
  margin-top:8px
}
.related-error:empty,
.related-links[hidden],
.related-end[hidden] {
  display:none
}
.related-announcement {
  position:absolute;
  width:1px;
  height:1px;
  overflow:hidden;
  clip-path:inset(50%)
}

.imported-copy--mymaps-panel:has(> :is(.mymaps-cards,.mymaps-audit,.mymaps-matrix-wrap,.mymaps-story)) {
  max-width:none
}
.imported-copy--mymaps-panel > :is(h2,p,[data-case-heading="2"]) {
  max-width:var(--reading-width);
  margin-inline:auto
}
.imported-copy--mymaps-panel > ul {
  max-width:var(--reading-width);
  margin-inline:auto
}
.imported-copy--mymaps-panel > ul + p,
.mymaps-note {
  margin-top:20px
}
.mymaps-note {
  font-size:var(--label);
  color:var(--muted)
}
.imported-copy--mymaps-panel {
  --mymaps-panel-padding:clamp(16px,2.5vw,28px)
}
.mymaps-cards {
  display:grid;
  grid-template-columns:minmax(0,2fr) minmax(0,3fr);
  gap:16px;
  margin-top:24px
}
.mymaps-card {
  min-width:0;
  padding:var(--mymaps-panel-padding)
}
:is(.mymaps-card,.mymaps-audit,.mymaps-matrix-wrap) {
  background:var(--paper);
  border:1px solid var(--line);
  border-radius:var(--radius);
  color:var(--ink)
}
.imported-copy--mymaps-panel .mymaps-card :is(h3,[data-case-heading="3"]) {
  width:fit-content;
  padding:4px 10px;
  border-radius:999px;
  background:var(--mymaps-pill-fill,var(--surface));
  color:var(--mymaps-pill-ink,var(--ink));
  font-size:var(--label);
  line-height:1.5;
  font-weight:600;
  margin:0 0 12px
}
.imported-copy--mymaps-panel :is(.mymaps-card,.mymaps-matrix,.mymaps-audit) ul {
  margin-top:0
}
.imported-copy--mymaps-panel :is(.mymaps-card,.mymaps-matrix,.mymaps-audit) li {
  margin-block:0 8px
}
.imported-copy--mymaps-panel :is(.mymaps-card,.mymaps-matrix,.mymaps-audit) li:last-child {
  margin-bottom:0
}
.mymaps-card ul + p {
  margin-top:16px
}
.mymaps-competitor {
  margin-top:16px;
  background:var(--surface)
}
.mymaps-card--positive {
  --mymaps-pill-fill:#e5f0e8;
  --mymaps-pill-ink:#28573b
}
.mymaps-card--negative {
  --mymaps-pill-fill:#f7e8e3;
  --mymaps-pill-ink:#793a30
}
.mymaps-card--opportunity {
  --mymaps-pill-fill:#e6edf8;
  --mymaps-pill-ink:#2e5283
}
.mymaps-competitor p + ul {
  margin-top:8px
}
.mymaps-audit,
.mymaps-matrix-wrap {
  margin-top:24px;
  overflow:hidden
}
.mymaps-audit table,
.mymaps-matrix {
  width:100%;
  border-collapse:collapse
}
:is(.mymaps-audit,.mymaps-matrix) th {
  background:var(--surface);
  font-size:16px;
  font-weight:600
}
:is(.mymaps-audit,.mymaps-matrix) :is(th,td) {
  padding:var(--mymaps-panel-padding);
  text-align:left;
  vertical-align:top
}
.mymaps-audit tbody tr {
  border-top:1px solid var(--line)
}
.mymaps-audit tbody th {
  width:21%
}
.mymaps-audit td {
  width:39.5%
}
.mymaps-audit-label,
.mymaps-matrix-label {
  display:none
}
@media (max-width:650px) {
  .mymaps-cards { grid-template-columns:1fr; }
  :is(.mymaps-audit,.mymaps-matrix) thead {
    position:absolute;
    width:1px;
    height:1px;
    clip-path:inset(50%);
    overflow:hidden
  }
  .mymaps-audit tbody,
  .mymaps-audit tbody tr,
  .mymaps-audit tbody :is(th,td) {
    display:block;
    width:auto
  }
  .mymaps-audit tbody tr {
    padding:var(--mymaps-panel-padding)
  }
  .mymaps-audit tbody tr:first-child {
    border-top:0
  }
  .mymaps-audit tbody :is(th,td) {
    padding:0;
    background:transparent
  }
  .mymaps-audit td {
    margin-top:12px
  }
  .mymaps-audit-label {
    display:block;
    margin-bottom:4px;
    font-size:16px;
    font-weight:600
  }
}
.mymaps-matrix-wrap {
  margin-bottom:24px
}
.mymaps-matrix {
  table-layout:fixed
}
.mymaps-matrix caption {
  padding:var(--mymaps-panel-padding);
  font-weight:600
}
.mymaps-matrix :is(th,td) {
  border-top:1px solid var(--line)
}
.mymaps-matrix thead th:first-child {
  width:clamp(78px,16%,150px)
}
.mymaps-matrix td {
  border-left:1px solid var(--line)
}
.mymaps-matrix tbody tr:first-child td:nth-child(2) {
  background:var(--accent)
}
.imported-copy--mymaps-panel > .mymaps-priorities {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  grid-auto-rows:minmax(152px,1fr);
  max-width:none;
  padding:0;
  gap:12px;
  list-style:none
}
.imported-copy--mymaps-panel .mymaps-priorities li {
  min-width:0;
  margin:0;
  padding:24px clamp(12px,2.5vw,28px);
  border:1px solid var(--line);
  border-radius:16px;
  background:var(--paper);
  color:var(--ink);
  display:grid;
  justify-items:center;
  align-content:center;
  gap:12px;
  text-align:center;
  font-size:14px;
  line-height:1.4;
  overflow-wrap:anywhere
}
.mymaps-priorities svg {
  width:24px;
  height:24px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.5;
  stroke-linecap:round;
  stroke-linejoin:round
}
@media (max-width:900px) {
  .imported-copy--mymaps-panel > .mymaps-priorities {
    grid-template-columns:repeat(2,minmax(0,1fr))
  }
}
.mymaps-story {
  display:grid;
  gap:clamp(32px,6vw,72px);
  margin-top:clamp(12px,2vw,24px)
}
.mymaps-step {
  display:grid;
  gap:16px;
  min-width:0
}
.mymaps-step-copy {
  min-width:0
}
.mymaps-step-copy :is(h3,[data-case-heading="3"]) {
  font-size:var(--lead);
  line-height:1.2;
  font-weight:600;
  margin:0 0 10px
}
.mymaps-device {
  min-width:0;
  text-align:center
}
.mymaps-device-media {
  position:relative;
  margin-inline:auto
}
.mymaps-device img {
  display:block;
  width:100%;
  height:auto;
  margin-inline:auto
}
.mymaps-device--phone .mymaps-device-media {
  max-width:355px
}
.mymaps-device figcaption {
  margin-top:12px;
  color:var(--muted);
  font-size:var(--label)
}
@media (min-width:901px) and (min-height:570px) and (prefers-reduced-motion:no-preference) {
  .has-mymaps-scroll .mymaps-story {
    --mymaps-reading-height:calc(100svh - var(--mymaps-reading-top,100px) - 16px);
    --mymaps-stage-trim:clamp(24px,12svh,160px);
    --mymaps-stage-height:calc(var(--mymaps-reading-height) - var(--mymaps-stage-trim) * 2);
    grid-template-columns:minmax(0,1fr) minmax(0,2.45fr);
    grid-template-rows:repeat(var(--step-count),auto);
    column-gap:clamp(24px,4vw,52px);
    row-gap:0
  }
  .has-mymaps-scroll .mymaps-step {
    display:contents
  }
  .has-mymaps-scroll .mymaps-step-copy {
    grid-column:1;
    grid-row:var(--step-row);
    display:grid;
    align-content:center;
    min-height:var(--mymaps-stage-height);
    padding-block:24px;
    opacity:var(--mymaps-copy-opacity,1)
  }
  .has-mymaps-scroll .mymaps-device {
    grid-area:1 / 2 / -1 / 3;
    position:sticky;
    top:calc(var(--mymaps-reading-top,100px) + var(--mymaps-stage-trim));
    height:var(--mymaps-stage-height);
    display:grid;
    align-content:center;
    align-self:start;
    opacity:0;
    transition:opacity 360ms var(--entry-ease)
  }
  .has-mymaps-scroll .mymaps-device.is-current {
    opacity:1
  }
  .has-mymaps-scroll .mymaps-device-media {
    width:min(100%,calc((var(--mymaps-stage-height) - 56px) * var(--device-ratio)))
  }
}
@media (max-width:650px) {
  .mymaps-matrix,
  .mymaps-matrix :is(caption,tbody,tr,th,td) {
    display:block;
    width:100%
  }
  .mymaps-matrix .mymaps-matrix-label {
    display:inline
  }
  .mymaps-matrix td {
    border-left:0
  }
  .mymaps-matrix td > .mymaps-matrix-label {
    display:block;
    margin-bottom:8px;
    font-size:16px;
    font-weight:600
  }
}

/* The showcase backdrop follows scroll position while device art stays untouched. */
@media screen and (prefers-reduced-motion:no-preference) {
  body[data-mymaps-theme] {
    isolation:isolate;
    color:#000
  }
  body[data-mymaps-theme]::before {
    content:"";
    position:fixed;
    inset:0;
    z-index:-1;
    background:#171a20;
    opacity:var(--mymaps-backdrop-opacity);
    pointer-events:none
  }
  body[data-mymaps-dark] {
    color:#fff
  }
  body[data-mymaps-theme] .site-header {
    color:var(--ink)
  }
  body[data-mymaps-theme] .mymaps-device figcaption {
    color:inherit
  }
}
.imported-copy--mymaps-panel:has(> .mymaps-story) > :is(h2,[data-case-heading="2"]) {
  margin-bottom:12px
}
.imported-copy--mymaps-panel:has(> .mymaps-story) + .imported-copy--mymaps-panel {
  margin-top:clamp(16px,2.5vw,32px)
}

.case-opening:has(> .mymaps-cover),
.case-opening:has(> .mymaps-cover) + .imported-modules {
  --surface:#f0f0f0;
  --accent:#e5e5e5;
  --line:#dadada
}
.mymaps-cover {
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,2fr);
  align-items:center;
  gap:clamp(20px,4vw,48px);
  padding:clamp(24px,5vw,64px);
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:radial-gradient(ellipse at 82% 80%,var(--accent),transparent 68%),var(--surface);
  color:var(--ink)
}
.mymaps-cover-copy {
  display:grid;
  justify-items:start;
  gap:12px;
  color:var(--muted);
  font-size:16px
}
.mymaps-cover-copy > span:last-child {
  font-weight:500
}
.mymaps-cover-copy strong {
  color:var(--ink);
  font-size:clamp(32px,4vw,64px);
  font-weight:700;
  letter-spacing:-.045em;
  line-height:1.1
}
.mymaps-cover-devices {
  display:grid;
  grid-template-columns:repeat(12,minmax(0,1fr));
  grid-template-rows:repeat(12,minmax(0,1fr));
  aspect-ratio:1.38
}
.case-opening .mymaps-cover-devices img {
  align-self:start;
  border-radius:0
}
.mymaps-cover-desktop {
  grid-area:1 / 1 / -1 / 12
}
.mymaps-cover-phone {
  grid-area:5 / 10 / -1 / -1;
  z-index:1
}
@media (max-width:650px) {
  .mymaps-cover { grid-template-columns:1fr; }
}
