/* The homepage palette and type scale, shared by the other public pages. */
.inner-theme {
  --inner-ink: var(--ink, #151515);
  --inner-paper: var(--paper, #f1ede4);
  --inner-red: var(--red, #ff583c);
  --inner-lime: var(--lime, #d9ff3f);
  --inner-gutter: clamp(16px, 3.6vw, 64px);
  --inner-radius: clamp(20px, 3vw, 38px);
  --inner-display: clamp(2.35rem, 6.1vw, 6rem);
  --inner-rule: #15151526;
  --inner-glass: linear-gradient(145deg, #fffaf2, #f0ebe2);
  font-family: Manrope, Arial, sans-serif;
}

.inner-theme.seo-editorial,
.inner-theme.brief-page {
  background: var(--inner-paper);
  color: var(--inner-ink);
  font-family: Manrope, Arial, sans-serif;
}

.inner-theme.seo-editorial #main-content {
  width: min(100%, 1540px);
  max-width: none;
  margin-inline: auto;
  padding: clamp(100px, 8.5vw, 145px) var(--inner-gutter) clamp(56px, 8vw, 116px);
}

.inner-theme #main-content > .seo-breadcrumb {
  margin-bottom: 14px;
  color: #514b43;
}

.inner-theme #main-content > .seo-breadcrumb a {
  text-decoration: underline;
  text-underline-offset: .19em;
}

.inner-theme :is(.seo-intro, .work-page-intro, .blog-hero) {
  position: relative;
  isolation: isolate;
  display: grid;
  align-content: end;
  min-block-size: clamp(220px, 29vw, 410px);
  gap: 12px;
  margin: 0 0 clamp(24px, 4vw, 52px);
  padding: clamp(24px, 5.4vw, 82px);
  border: 1px solid #ffffff29;
  border-radius: var(--inner-radius);
  background:
    radial-gradient(ellipse at 96% 8%, #752617 0%, transparent 46%),
    repeating-linear-gradient(90deg, transparent 0 63px, #fff0e00d 63px 64px),
    linear-gradient(120deg, #151515 20%, #241d1a 100%);
  box-shadow: 0 22px 52px #28190e20;
  color: var(--inner-paper);
}

.inner-theme :is(.seo-intro, .work-page-intro, .blog-hero) h1 {
  max-inline-size: 17ch;
  margin: 0;
  font-size: var(--inner-display);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -.04em;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.inner-theme :is(.work-page-intro, .blog-hero) h1 em {
  color: var(--inner-lime);
  font-weight: 600;
}

.inner-theme :is(.seo-intro, .work-page-intro, .blog-hero) :is(.eyebrow, .work-sector, .blog-kicker) {
  margin: 0;
  color: var(--inner-lime);
  font: 500 12px/1.45 "DM Mono", monospace;
  letter-spacing: .075em;
  text-transform: uppercase;
}

.inner-theme :is(.seo-intro, .work-page-intro, .blog-hero) .seo-deck {
  max-inline-size: 62ch;
  margin: 0;
  color: #f0e8dd;
  font-size: clamp(1rem, 1.65vw, 1.3rem);
  line-height: 1.55;
}

.inner-theme :is(.seo-intro, .blog-hero) a {
  color: var(--inner-lime);
  text-decoration: underline;
  text-underline-offset: .18em;
}

.inner-theme :is(.seo-intro, .blog-hero) a:focus-visible {
  outline-color: var(--inner-lime);
}

.inner-theme .seo-article {
  inline-size: min(100%, 77ch);
  margin-inline: auto;
}

.inner-theme .seo-article:has(.seo-resource-grid) {
  inline-size: 100%;
}

.inner-theme :is(.seo-article, .blog-article) > section {
  max-inline-size: 77ch;
  margin: 0 auto;
  padding: clamp(21px, 4vw, 45px) 0;
  border-top: 1px solid var(--inner-rule);
}

.inner-theme .seo-article > section {
  border: 1px solid var(--inner-rule);
  border-radius: 8px 24px 24px 24px;
  padding-inline: clamp(18px, 3.5vw, 40px);
  background: var(--inner-glass);
}

.inner-theme .seo-article > section + section {
  margin-top: 14px;
}

.inner-theme :is(.seo-article, .blog-article) > section h2 {
  margin: 0 0 .5em;
  font-size: clamp(1.35rem, 3.35vw, 2.85rem);
  line-height: 1.12;
  letter-spacing: -.04em;
  text-wrap: balance;
}

.inner-theme :is(.seo-article, .blog-article, .showreel-context) :is(p, li) {
  line-height: 1.72;
  text-wrap: pretty;
  overflow-wrap: anywhere;
}

.inner-theme .seo-article > .seo-deck {
  margin-bottom: clamp(18px, 3vw, 34px);
}

.inner-theme :is(.seo-article, .blog-article) :is(ul, ol) {
  padding-inline-start: 1.3em;
}

.inner-theme :is(.seo-article, .blog-article, .showreel-context) a {
  text-decoration: underline;
  text-decoration-thickness: .08em;
  text-underline-offset: .24em;
}

.inner-theme :is(.seo-article, .blog-article, .showreel-context) a:hover {
  text-decoration-color: #b8321d;
}

.inner-theme .seo-table-wrap {
  margin-block: 1.25em;
  border: 1px solid var(--inner-rule);
  border-radius: 15px;
  background: #fbf7ef;
}

.inner-theme .seo-table-wrap thead th {
  background: var(--inner-ink);
  color: var(--inner-paper);
}

.inner-theme .seo-table-wrap caption {
  padding: 8px 14px;
  color: #514b43;
  text-align: start;
}

.inner-theme :is(.blog-grid, .seo-resource-grid) {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 268px), 1fr));
  gap: clamp(12px, 1.5vw, 24px);
}

.inner-theme :is(.blog-card, .seo-resource-grid > article) {
  min-width: 0;
  padding: clamp(18px, 2.6vw, 34px);
  border: 1px solid var(--inner-rule);
  border-radius: 8px 24px 24px 24px;
  background: var(--inner-glass);
  box-shadow: 0 10px 28px #2a170b0b;
}

.inner-theme :is(.blog-card, .seo-resource-grid > article):nth-child(3n + 2) {
  background: linear-gradient(145deg, #f1f5d5, #e3ead3);
}

.inner-theme :is(.blog-card, .seo-resource-grid > article):nth-child(3n + 3) {
  background: linear-gradient(145deg, #faebe2, #eedbd2);
}

.inner-theme :is(.blog-card, .seo-resource-grid > article):focus-within {
  border-color: #82713c;
}

.inner-theme :is(.blog-card, .seo-resource-grid > article) h2 {
  margin: .45rem 0 .65rem;
  font-size: clamp(1.2rem, 2.35vw, 1.9rem);
  letter-spacing: -.035em;
  line-height: 1.15;
  text-wrap: balance;
}

.inner-theme .seo-resource-grid > article > a {
  display: inline-block;
  margin-top: .8em;
}

.inner-theme .work-index {
  margin-block: 0 22px;
}

.inner-theme .work-index a {
  max-width: 100%;
  border-color: var(--inner-rule);
  background: #fbf7ef;
}

.inner-theme .work-index a:hover {
  background: #eaf2c8;
}

.inner-theme .work-case {
  border-color: var(--inner-rule);
  background: var(--inner-glass);
  box-shadow: 0 12px 30px #28190e0d;
}

.inner-theme .work-case-metrics {
  background: #edf1db;
}

.inner-theme .work-case-metrics dd {
  overflow-wrap: anywhere;
}

.inner-theme .work-case-metrics dd strong {
  font-size: clamp(1rem, 1.75vw, 1.45rem);
  font-variant-numeric: tabular-nums;
}

.page-emphasis { color: var(--page-accent, #d9ff3f); font-style: italic; font-weight: 650; }
.inner-theme :is(.seo-article, .blog-article) :is(p, li) > strong {
  color: #2b2015;
  background: #e5edbc;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.inner-theme :is(.seo-article, .blog-article) > section > h2 {
  text-decoration: underline #75882a;
  text-decoration-thickness: .085em;
  text-underline-offset: .2em;
}

.inner-theme .work-page {
  --work-green: #253a23;
  --work-leaf: #476328;
  --work-line: #39522d3b;
}
.inner-theme .work-page > .work-page-intro {
  background:
    radial-gradient(ellipse at 94% 5%, #657c32, transparent 56%),
    repeating-linear-gradient(135deg, transparent 0 46px, #e8ffd019 46px 47px),
    #253a23;
}
.work-page-intro .portfolio-jump {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 44px;
  margin-top: 6px;
  padding: 8px 15px;
  border: 1px solid #d9ff3f8c;
  border-radius: 99px;
  color: #edffc1;
}
.work-page-intro .portfolio-jump:hover { background: #d9ff3f; color: #182216; }
.inner-theme .work-directory {
  margin-bottom: 24px;
  padding: clamp(18px, 4vw, 48px);
  border: 1px solid var(--work-line);
  border-radius: 8px 28px 28px;
  background: #e9efd6;
  scroll-margin-top: 110px;
}
.work-directory h2 { margin-bottom: 18px; font-size: clamp(1.7rem, 4vw, 3.6rem); line-height: 1.1; }
.work-directory h2 em, .work-page .work-answers h2 em { color: var(--work-leaf); }
.inner-theme .work-directory .work-disclosure { margin-bottom: 0; }
.inner-theme .work-page .work-proof { background: #273828; }
.work-page .work-proof h2 em { color: #d9ff3f; }
.inner-theme .work-page .work-cases {
  gap: 0;
  padding-inline: clamp(14px, 3vw, 34px);
  border: 1px solid var(--work-line);
  border-radius: 8px 28px 28px;
  background: #fbf9ef;
}
.inner-theme .work-page .work-case { border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.inner-theme .work-page .work-case + .work-case { border-top: 1px solid var(--work-line); }
.work-page .work-case:target { background: #eaf0d4; }
.work-page .work-case .work-sector, .work-page .work-case-services h3 { color: var(--work-leaf); }
.work-page .work-measure { padding: 14px; border: 1px solid var(--work-line); border-radius: 12px; background: #f0f4e0; }
.inner-theme .work-page .work-case-metrics { background: #edf2df; }
.work-page .work-case-metrics > p:first-of-type strong { color: #773226; }
.work-page .work-case-metrics dl div { border: 1px solid var(--work-line); border-radius: 8px; background: #fbfdf5; }
.work-page .work-case-metrics dd strong { color: #36551e; }

.inner-theme.seo-editorial #main-content.showreel-page {
  width: min(100%, 1160px);
}

.inner-theme .showreel-page .seo-intro {
  min-block-size: 0;
  padding: clamp(20px, 3.5vw, 45px);
  margin-bottom: 12px;
}

.inner-theme .showreel-page .seo-intro h1 {
  max-inline-size: none;
  font-size: clamp(1.9rem, 5vw, 3.75rem);
}

.inner-theme .showreel-player {
  border-radius: clamp(14px, 2vw, 23px);
  box-shadow: 0 16px 44px #15151529;
}

.inner-theme .brief-hero {
  min-block-size: min(760px, 86svh);
}

.inner-theme .brief-hero h1 {
  font-size: var(--inner-display);
  letter-spacing: -.04em;
  line-height: 1.02;
}

.inner-theme .brief-hero h1 span {
  color: var(--inner-lime);
  -webkit-text-stroke: 0;
}

.inner-theme .brief-hero-foot > p {
  color: #f0e8dd;
}

.inner-theme .brief-hero-foot > a {
  display: inline-flex;
}

.inner-theme .brief-intro h2 {
  font-size: clamp(2rem, 5.3vw, 5.5rem);
  line-height: 1;
}

.inner-theme .form-split {
  overflow: hidden;
  border-radius: var(--inner-radius);
}

.inner-theme--error .card {
  background: linear-gradient(135deg, #202023, #35211c);
  border-color: #ffffff35;
}

.inner-theme--error .card h1 {
  font-size: var(--inner-display);
  line-height: 1;
  letter-spacing: -.04em;
  text-wrap: balance;
}

.inner-theme--error .code {
  font-family: "DM Mono", monospace;
}
.inner-theme--error .actions a:first-child {
  box-shadow:
    inset 0 1px 0 #ffffff9c,
    inset 0 0 0 1px #ffffff30,
    inset 0 13px 17px -13px #ffffff80,
    inset 0 -10px 15px -14px #120a1638,
    0 6px 14px -7px #130c1266;
}

@media (max-width: 820px) {
  .inner-theme .work-case-metrics {
    grid-column: 1 / -1;
  }

  .inner-theme .brief-hero-foot {
    max-width: calc(100% - 112px);
    gap: 20px;
  }
}

@media (max-width: 620px) {
  .inner-theme .work-index {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .inner-theme .work-index a {
    gap: 7px;
    padding-inline: 8px;
    line-height: 1.2;
    overflow-wrap: anywhere;
  }

  .inner-theme .work-index .work-logo {
    width: 30px;
    height: 30px;
  }

  .inner-theme .brief-hero {
    min-block-size: 580px;
    padding-bottom: 118px;
  }

  .inner-theme .brief-hero-foot {
    max-width: calc(100% - 92px);
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
  }

  .inner-theme .brief-hero-foot > p {
    max-width: none;
  }
}

@media (max-width: 440px) {
  .inner-theme .work-case-metrics dl {
    grid-template-columns: 1fr;
  }

  .inner-theme .work-case-metrics dd strong {
    font-size: 1.15rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .inner-theme .brief-hero::after {
    animation: none;
  }
}
