:root {
  --ink: #172a34;
  --blue: #3197bf;
  --orange: #ff8a5b;
  --paper: #fbfaf6;
  font-family: "Inter", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}
* { box-sizing: border-box; }
body { margin: 0; font-size: clamp(1rem, .95rem + .2vw, 1.125rem); }
a { color: inherit; text-underline-offset: .24em; }
a:focus-visible, summary:focus-visible, button:focus-visible { outline: 3px solid #176988; outline-offset: 5px; }
.skip { position: absolute; top: 1rem; left: 1rem; background: white; padding: .75rem; transform: translateY(-200%); }
.skip:focus { transform: none; }
.wrap { width: min(70rem, 100% - 2.5rem); margin-inline: auto; }
.header, .footer, nav, .identity { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem 1.5rem; }
.header, .footer { justify-content: space-between; padding-block: 1.25rem; }
.header {
  position: sticky;
  top: .625rem;
  z-index: 10;
  width: min(70rem, calc(100% - 1.25rem));
  margin-block: .625rem;
  padding: .375rem .875rem;
  gap: .5rem;
  background: #fffdf8;
  border-radius: .875rem;
  box-shadow: 0 3px 14px rgb(23 42 52 / 12%);
}
.header nav { gap: 0 .5rem; }
.header a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: .4rem;
}
:where(#main, #services, #portfolio, #automation, #demos, #meta-analytics, #paid-campaigns, #ghl-demo, #ghl-activity, #contact) {
  scroll-margin-top: var(--navigation-clearance, 8rem);
}

@media (max-width: 36rem) {
  .header { padding-inline: .5rem; }
  .header nav { gap: 0 .125rem; }
  .header a { font-size: .875rem; padding-inline: .3rem; }
  .header > img { width: 32px; height: 32px; }
}
.footer { border-top: 1px solid #cdd7d7; }
.identity { gap: .6rem; font-weight: 800; }
.identity img { border-radius: .5rem; }
.header a { text-decoration: none; }
.header a:hover { text-decoration: underline; }
.hero { display: grid; grid-template-columns: 1.5fr 1fr; align-items: center; gap: clamp(1.25rem, 4vw, 3.5rem); padding-block: clamp(1.5rem, 3.2vw, 3rem); }
.art { border: 1px solid #d8e2e0; background: #fff; border-radius: 2rem; padding: clamp(1rem, 3vw, 2rem); box-shadow: .6rem .6rem 0 var(--blue); }
.art img { width: 100%; height: auto; display: block; }
h1, h2, h3 { line-height: 1.09; margin: 0 0 .5em; letter-spacing: -.04em; }
h1 { font-size: clamp(2rem, 1.5rem + 2.6vw, 3.25rem); max-width: 10ch; }
h2 { font-size: clamp(1.625rem, 1.35rem + 1.25vw, 2.25rem); }
h3 { font-size: 1.25rem; line-height: 1.24; letter-spacing: -.022em; }
p { margin: 0 0 1rem; }
.label { text-transform: uppercase; font-weight: 800; color: #17617d; font-size: .78rem; letter-spacing: .12em; }
.intro { font-size: 1.0625rem; max-width: 46ch; }
.button { display: inline-flex; gap: .75rem; margin-top: .4rem; background: var(--orange); border-radius: .5rem; padding: .8rem 1.2rem; font-weight: 800; text-decoration: none; }
.band { background: #e6f2f5; }
.section { padding-block: clamp(2.25rem, 4.75vw, 4.25rem); }
.grid, .journey { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 2rem; }
article, .journey li { border: 1px solid #cddfe3; border-radius: 1rem; background: white; padding: 1.5rem; }
article { border-top: .3rem solid var(--blue); }
.journey { padding-left: 0; list-style-position: inside; }
.journey li::marker { color: #17617d; font-weight: 800; }
.journey h3 { margin-top: .65rem; }
article p, .journey p { margin-bottom: 0; }
@media (max-width: 45rem) {
  .hero, .grid, .journey { grid-template-columns: 1fr; }
  .art { max-width: 16rem; }
}
.results-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}
.metric { display: block; font-size: clamp(1.625rem, 1.35rem + 1.15vw, 2.25rem); margin-bottom: .25rem; }
.evidence { display: block; margin-top: 1rem; font-weight: 700; }
.evidence img { display: block; width: 100%; height: auto; border: 1px solid #cddfe3; border-radius: .5rem; margin-bottom: .5rem; }
@media (max-width: 45rem) {
  .results-grid { grid-template-columns: 1fr; }
}
.hero h1 { max-width: 15ch; }
.header { flex-wrap: nowrap; }
.header > img { flex: none; border-radius: .5rem; }
.evidence summary, .demo summary { cursor: pointer; }
.results-grid > article:first-child { grid-column: 1 / -1; }
.evidence img { margin-top: .75rem; }
.roadmap { margin-top: 2rem; text-align: center; }
.node { padding: 1rem; background: #172a34; color: white; border-radius: .75rem; font-weight: 800; }
.branches { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.branches p { padding: 1rem; background: white; border-radius: .75rem; border-bottom: .25rem solid var(--blue); }
#demos .demo { grid-column: auto; }
.renovation { background: #eee5d7; }
.grooming { background: #eee6f4; }
.demo h3 { font-family: Georgia, serif; font-size: 2rem; }
.demo details { margin-top: 1rem; }
@media (max-width: 45rem) { .branches { grid-template-columns: 1fr; } }

.hero-portrait {
  position: relative;
  width: min(100%, 280px);
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: .875rem;
  justify-self: end;
}

.hero-portrait img {
  position: absolute;
  top: -3%;
  left: 50%;
  width: 145%;
  max-width: none;
  height: auto;
  transform: translateX(-50%);
}

@media (max-width: 45rem) {
  .hero-portrait { justify-self: start; }
}

.evidence summary { border-radius: .35rem; }

.evidence summary::after {
  content: "";
  display: inline-block;
  width: .4em;
  height: .4em;
  margin-inline-start: .55em;
  border-inline-end: 2px solid currentColor;
  border-block-end: 2px solid currentColor;
  transform: translateY(-.15em) rotate(45deg);
}

.evidence[open] summary::after { transform: rotate(225deg); }
.button:focus-visible, .button:active { background-color: #ffa681; }
.demo:focus-within, .demo:active { border-color: #3197bf; }
.evidence summary:is(:focus-visible, :active) { background-color: #e6f2f5; }

@media (hover: hover) and (pointer: fine) {
  .button:hover { background-color: #ffa681; }
  :is(.demo, .service-card):hover { border-color: #3197bf; }
  .evidence summary:hover { background-color: #e6f2f5; }
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .button, .demo, .service-card {
    transition: transform 220ms ease, box-shadow 220ms ease,
      background-color 220ms ease, border-color 220ms ease;
  }

  .button span, .evidence summary::after { transition: transform 220ms ease; }
  .evidence summary { transition: background-color 220ms ease; }

  .button:hover { box-shadow: 0 8px 18px rgb(23 42 52 / 20%); }
  :is(.demo, .service-card):hover { box-shadow: 0 10px 22px rgb(23 42 52 / 17%); }
  .button:hover span { transform: translate(3px, -3px); }
  .evidence summary:hover::after { transform: translate(2px, -.05em) rotate(45deg); }
  .evidence[open] summary:hover::after { transform: translate(2px, -2px) rotate(225deg); }

  .button:active {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgb(23 42 52 / 15%);
  }
}

.analytics-label { border-radius: .35rem; }

.analytics-label::after {
  content: "→" / "";
  display: inline-block;
  margin-inline-start: .35em;
  text-decoration: none;
}

.analytics-label:is(:focus-visible, :active) { background-color: #e6f2f5; }

@media (hover: hover) and (pointer: fine) {
  .website-evidence:hover .analytics-label { background-color: #e6f2f5; }
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .analytics-label { transition: background-color 220ms ease; }
  .analytics-label::after { transition: transform 220ms ease; }
  .website-evidence:hover .analytics-label::after { transform: translate(2px, -2px); }
}

.analytics-trigger {
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.website-evidence .analytics-thumbnail { width: min(100%, 11rem); }
.analytics-label { text-decoration: underline; text-underline-offset: .24em; }

.analytics-dialog {
  width: min(72rem, calc(100% - 1.5rem));
  max-width: none;
  max-height: calc(100% - 1.5rem);
  padding: 0;
  border: 1px solid #cddfe3;
  border-radius: .875rem;
  color: #172a34;
  background: #fff;
}

.analytics-dialog::backdrop { background: rgb(23 42 52 / 72%); }
html:has(.analytics-dialog[open]) { overflow: hidden; scrollbar-gutter: stable; }

.analytics-panel {
  display: grid;
  gap: .75rem;
  padding: .75rem;
}

.analytics-close {
  justify-self: end;
  min-height: 44px;
  padding: .45rem .8rem;
  border: 1px solid #176988;
  border-radius: .5rem;
  background: #e6f2f5;
  color: inherit;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.analytics-panel img {
  display: block;
  width: 100%;
  height: auto;
  max-height: calc(100dvh - 6.25rem);
  object-fit: contain;
}

.ghl-demo { margin-top: 2rem; }
.ghl-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  padding: 0;
  list-style: none;
}
.ghl-steps li { position: relative; }
.ghl-steps li + li::before {
  content: "→" / "";
  position: absolute;
  inset-inline-start: -1.25rem;
  top: 50%;
  transform: translateY(-50%);
}
.ghl-steps button {
  display: grid;
  align-content: center;
  gap: .2rem;
  width: 100%;
  height: 100%;
  padding: .6rem;
  border: 2px solid #cddfe3;
  border-radius: .6rem;
  background: white;
  text-align: start;
}
.ghl-steps button:disabled { cursor: default; background: #f7fafb; }
.ghl-steps button[aria-current] { border-color: #176988; background: #dceff6; }
.ghl-steps small { color: #17617d; }
.ghl-contact { padding: .75rem; border: 1px solid #cddfe3; border-radius: .5rem; }
.ghl-feed { list-style: none; padding: 0; }
.ghl-feed li { border-inline-start: 3px solid #3197bf; padding: .45rem .65rem; }
.ghl-feed li + li { margin-top: .5rem; }
.ghl-feed li:first-child { background: #e6f2f5; }
.ghl-update { animation: ghl-highlight 650ms ease-out; }
@keyframes ghl-highlight {
  from { background: #bfe4f2; }
}
@media (prefers-reduced-motion: reduce) {
  .ghl-update { animation: none; }
}
@media (max-width: 36rem) {
  .ghl-steps { grid-template-columns: 1fr; }
  .ghl-steps li + li::before {
    content: "↓" / "";
    inset-inline-start: 50%;
    top: -1.5rem;
    transform: translateX(-50%);
  }
}
.ghl-views { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.ghl-view {
  padding: clamp(1rem, 3vw, 1.5rem);
  border: 1px solid #cddfe3;
  border-radius: 1rem;
  background: white;
  overflow-wrap: anywhere;
}
.ghl-demo form label { display: grid; gap: .25rem; margin-bottom: .75rem; }
.ghl-demo input {
  width: 100%;
  min-width: 0;
  padding: .5rem;
  border: 1px solid #cddfe3;
  border-radius: .35rem;
  font: inherit;
}
.ghl-demo button { min-height: 44px; font: inherit; font-weight: 700; color: inherit; cursor: pointer; }
.ghl-demo .button { border: 0; }
.ghl-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.ghl-actions button, .ghl-restart {
  padding: .5rem .75rem;
  border: 1px solid #176988;
  border-radius: .5rem;
  background: #e6f2f5;
}
.ghl-restart { margin-top: 1rem; }

@media (max-width: 45rem) {
  .ghl-views { grid-template-columns: minmax(0, 1fr); }
}

.analytics-dialog[data-portrait] { width: min(42rem, calc(100% - 1.5rem)); }

.meta-charts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: .85rem;
  margin-top: .4rem;
}
.meta-charts .meta-chart {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  padding: 1.5rem;
  border: 1px solid #cddfe3;
  border-radius: .75rem;
  background: #fff;
  text-align: start;
}
.meta-chart-title {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.09;
  letter-spacing: -.04em;
  overflow-wrap: anywhere;
}
.meta-chart .metric { margin-block: .35rem .25rem; line-height: 1.09; }
.meta-chart img {
  display: block;
  width: min(100%, 11rem);
  height: auto;
  aspect-ratio: 790 / 531;
  object-fit: contain;
  margin-block: .75rem;
}
.meta-chart .analytics-label { margin-top: auto; }
.meta-chart:focus-visible { border-color: #3197bf; background: #f4fafc; }

@media (hover: hover) and (pointer: fine) {
  .meta-chart:hover { border-color: #3197bf; background: #f4fafc; }
  .meta-chart:hover .analytics-label { background-color: #e6f2f5; }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .meta-chart { transition: border-color 220ms ease, background-color 220ms ease; }
  .meta-chart:hover .analytics-label::after { transform: translate(2px, -2px); }
}
@media (max-width: 62rem) {
  .meta-charts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 36rem) {
  .meta-charts { grid-template-columns: minmax(0, 1fr); }
}

.paid-gallery-controls:not([hidden]) {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}
.paid-gallery-controls button {
  min-height: 44px;
  padding: .4rem .65rem;
  border: 1px solid #73949d;
  border-radius: .5rem;
  background: #f0f6f8;
  color: #193746;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.paid-gallery-controls button[aria-pressed="true"] {
  border-color: #123b59;
  background: #123b59;
  color: #fff;
}
@media (hover: hover) and (pointer: fine) {
  .paid-gallery-controls button[aria-pressed="false"]:hover {
    background: #dcecf3;
  }
}
.analytics-dialog[data-paid-gallery] .analytics-panel {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto minmax(0, 1fr);
  height: min(58rem, calc(100dvh - 1.5rem - 2px));
}
.analytics-dialog[data-paid-gallery] .analytics-image-view { overflow: hidden; }
.analytics-dialog[data-paid-gallery] img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
  object-position: top center;
}
@media (max-width: 48rem), (max-height: 30rem) {
  .analytics-dialog[data-paid-gallery] .analytics-image-view { overflow: auto; }
  .analytics-dialog[data-paid-gallery] img {
    min-width: 42rem;
    height: auto;
  }
}

.service-card { display: flex; padding: 0; }
.service-card > a {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.5rem;
  border-radius: inherit;
  text-decoration: none;
}
.service-action {
  margin-top: auto;
  padding-top: .75rem;
  color: #17617d;
  font-weight: 700;
  text-decoration: underline;
}

.header a[aria-current="location"] {
  color: #17617d;
  background: #e6f2f5;
  border-radius: .5rem;
  text-decoration: underline;
}
.hero h1 { max-width: 18ch; }
.section h2 { line-height: 1.15; text-wrap: balance; }
.results-grid { margin-top: 1.4rem; }
.service-card, .results-grid > article, .meta-chart, .ghl-view {
  box-shadow: 0 2px 10px rgb(23 42 52 / 6%);
}
#portfolio .results-grid > article { min-width: 0; }
#portfolio .results-grid > article:not(:first-child) {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
#portfolio .website-evidence {
  width: 100%;
  margin-top: auto;
  padding-top: 1rem;
}
#portfolio .analytics-thumbnail img {
  aspect-ratio: 790 / 531;
  object-fit: contain;
  background: #f8fafb;
}
.meta-charts .meta-chart { padding: clamp(.85rem, 1.5vw, 1.25rem); }
.meta-chart-title { font-size: 1.25rem; line-height: 1.24; letter-spacing: -.022em; }
.meta-chart img { border: 1px solid #cddfe3; border-radius: .5rem; }
.ghl-steps button[aria-current] { box-shadow: 0 0 0 2px #bfe4f2; }

@media (prefers-reduced-motion: no-preference) {
  .section-arrival { animation: section-arrival 260ms ease-out; }
  @keyframes section-arrival {
    from { opacity: .78; transform: translateY(7px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

/* Portfolio design */
:root {
  --paper: #fff;
  --ink: #13242d;
  --rule: #cbd5d5;
}
.header { border: 1px solid var(--rule); border-radius: .5rem; }
.header a[aria-current="location"] { border-radius: .2rem; }
.hero {
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  padding: clamp(2.25rem, 6vw, 5rem) 0;
  border-bottom: 1px solid var(--rule);
}
.hero h1 {
  font-size: clamp(2.35rem, 1.75rem + 2.9vw, 4rem);
  line-height: 1.04;
  max-width: 16ch;
  text-wrap: balance;
}
.hero-portrait {
  width: min(100%, 260px);
  border: 1px solid var(--rule);
  border-radius: .4rem;
}
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 1.25rem; }
.hero-actions .button { margin: 0; border-radius: .35rem; }
.hero-proof {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .45rem;
  padding-inline-start: .75rem;
  border-inline-start: 2px solid var(--blue);
  color: #17617d;
  font-size: .9rem;
}
.hero-proof strong { font-size: 1.35rem; font-variant-numeric: tabular-nums; }
.section h2 { text-wrap: pretty; }
#services { background: var(--paper); }
.service-list { grid-template-columns: minmax(0, 1fr); gap: 0; border-top: 1px solid var(--rule); }
.service-list .service-card {
  border: 0;
  border-bottom: 1px solid var(--rule);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.service-list .service-card:hover { transform: none; }
.service-list .service-card > a {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.65fr) minmax(0, .85fr);
  align-items: baseline;
  gap: .6rem 1rem;
  padding: .9rem .6rem;
}
.service-list h3, .service-list p { margin: 0; }
.service-list .service-action { padding: 0; margin: 0; justify-self: end; }
@media (hover: hover) and (pointer: fine) {
  .service-list a:hover { background: #edf5f6; }
}
#portfolio { border-top: 1px solid var(--rule); }
#portfolio .results-grid > article, #demos .demo {
  border-radius: .4rem;
  border-top-width: 2px;
  box-shadow: none;
}
#portfolio .metric { font-variant-numeric: tabular-nums; }
.meta-charts .meta-chart { border-radius: .35rem; box-shadow: none; }

#automation {
  background: #142932;
  color: #f9f7ee;
}
#automation > .wrap > p { max-width: 66ch; }
.ghl-demo {
  background: #f4f7f5;
  color: var(--ink);
  border-top: 3px solid var(--blue);
  padding: clamp(1rem, 3vw, 2rem);
}
.ghl-steps button, .ghl-view { border-radius: .35rem; box-shadow: none; }
.ghl-views { grid-template-columns: minmax(0, 1fr) 2.25rem minmax(0, 1fr); gap: 0; }
.ghl-connector {
  display: grid;
  place-items: center;
  align-self: start;
  margin-top: 1.6rem;
  min-height: 2rem;
  color: #17617d;
  border-block: 1px solid var(--rule);
}
.ghl-connector span { font-weight: 800; }
#ghl-status { width: fit-content; border-bottom: 1px solid var(--blue); padding-bottom: .25rem; }
.ghl-feed li { border-radius: 0 .25rem .25rem 0; }
@media (max-width: 45rem) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero-portrait { width: min(100%, 235px); }
  .service-list .service-card > a { grid-template-columns: minmax(0, 1fr); }
  .service-list .service-action { justify-self: start; }
  .ghl-views { grid-template-columns: minmax(0, 1fr); }
  .ghl-connector {
    margin: 0;
    width: 2.25rem;
    justify-self: center;
    border-block: 0;
    border-inline: 1px solid var(--rule);
  }
  .ghl-connector span { transform: rotate(90deg); }
}

#portfolio .results-grid > .report-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 19rem);
  align-items: center;
  column-gap: clamp(1.25rem, 5vw, 4rem);
}
.report-copy { min-width: 0; }
.report-copy p + p { margin-top: .45rem; }
.report-copy h4 { margin: 1rem 0 .35rem; }
#portfolio .report-row .website-evidence {
  margin: 0;
  padding: 0;
}
#portfolio .report-row .analytics-thumbnail { width: 100%; }
#portfolio .report-row .analytics-thumbnail img {
  aspect-ratio: auto;
  max-height: 11rem;
}
.project-link {
  display: inline-block;
  padding-block: .65rem;
  margin-top: .7rem;
  color: #17617d;
  font-weight: 700;
}
.hero-actions .project-link { margin-top: 0; }
#automation .project-link { color: #bfe4f2; }
.faq { border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  padding: .75rem .25rem;
  min-height: 44px;
  font-weight: 700;
  cursor: pointer;
}
.faq details p { margin: 0 0 .85rem; max-width: 65ch; }
.contact-bar {
  background: #e6f2f5;
  border-top: 1px solid var(--rule);
}
.contact-actions, .contact-details {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .55rem 1.2rem;
}
.contact-actions a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }
.contact-actions .button { margin: 0; text-align: center; }
.contact-details { margin: 1rem 0 0; overflow-wrap: anywhere; }

@media (max-width: 45rem) {
  #portfolio .results-grid > .report-row {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 1rem;
  }
  #portfolio .report-row .analytics-thumbnail { width: min(100%, 19rem); }
}

#portfolio .results-grid { grid-template-columns: minmax(0, 1fr); }
.meta-chart-title { min-height: 2.5em; }
.meta-chart .metric { font-variant-numeric: tabular-nums; }
.meta-chart .analytics-label { align-self: flex-start; }
.meta-chart img { flex: none; }
.scenario-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 1.5rem;
}
.scenario-nav button {
  border: 1px solid #73949d;
  background: transparent;
  color: inherit;
  font: inherit;
  padding: .55rem .8rem;
  min-height: 44px;
  cursor: pointer;
}
.scenario-nav button[aria-pressed="true"] {
  color: #142932;
  background: #bfe4f2;
  border-color: #bfe4f2;
  font-weight: 700;
}
.scenario-nav button:focus-visible { outline-color: #bfe4f2; }
.scenario-nav + .ghl-demo, .scenario-panel { margin-top: .75rem; }
.scenario-panel select {
  display: block;
  width: 100%;
  min-height: 44px;
  margin-block: .4rem .75rem;
  padding: .4rem;
  border: 1px solid #73949d;
  font: inherit;
}
.scenario-next[hidden] { display: none; }
@media (max-width: 36rem) { .meta-chart-title { min-height: 0; } }


.meta-charts .meta-chart { padding: 1rem; gap: .4rem; }
.meta-chart-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .2rem .65rem;
}
.meta-chart-heading .meta-chart-title { min-height: 0; font-size: 1rem; }
.meta-chart-heading .metric { margin: 0; font-size: 1.5rem; }
.meta-chart img { margin: 0; width: min(100%, 10rem); }
.meta-chart .analytics-label { padding-block: .15rem; }

.demo-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.4rem;
}
.demo-gallery-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 1rem;
  border: 1px solid var(--rule);
  border-radius: .4rem;
}
.demo-gallery-preview {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: .25rem;
}
.demo-gallery-preview img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 38%; }
.demo-gallery-copy { display: flex; flex: 1; flex-direction: column; padding-top: 1rem; }
.demo-gallery-copy .label { margin: 0 0 .4rem; }
.demo-gallery-link {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: .65rem;
  min-width: 8rem;
  min-height: 44px;
  padding: .5rem .8rem;
  margin-top: auto;
  border-radius: .3rem;
  background: #123b59;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}
.demo-gallery-preview:focus-visible, .demo-gallery-link:focus-visible {
  outline: 3px solid #176988;
  outline-offset: 3px;
}
@media (hover: hover) and (pointer: fine) {
  .demo-gallery-preview:hover { border-color: var(--blue); }
  .demo-gallery-preview:hover img { opacity: .92; }
  .demo-gallery-link:hover { background: #205474; }
}
@media (prefers-reduced-motion: no-preference) {
  .demo-gallery-preview { transition: border-color 150ms ease; }
  .demo-gallery-preview img { transition: opacity 150ms ease; }
}
@media (max-width: 45rem) {
  .demo-gallery { grid-template-columns: minmax(0, 1fr); }
}

/* Editorial hierarchy for the portfolio and demo gallery */
.hero > div { max-width: 36rem; }
.hero .intro { margin-bottom: 1.35rem; }
#portfolio .report-row { border-top-color: var(--rule); }
#meta-analytics .meta-chart-heading { align-items: baseline; }
.demo-gallery-copy h3 { letter-spacing: -.024em; }
.demo-gallery-preview img { object-position: center 43%; }
.demo-gallery-preview[href*="grooming"] img { object-position: center 32%; }
.demo-gallery-preview[href*="fitness"] img { object-position: center 30%; }
.demo-gallery-link:active, .hero-actions .button:active { background: #205474; color: #fff; }
.ghl-feed .ghl-update:first-child { border-inline-start-color: #176988; }

/* Compact portfolio sections with a shared divider rhythm. */
.hero {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  column-gap: clamp(1.25rem, 5vw, 4rem);
}
.hero-portrait { justify-self: center; }
.section { padding-block: clamp(1.8rem, 4vw, 3.5rem); }
.service-list .service-card > a { padding-block: .7rem; }
#portfolio .results-grid { gap: 0; }
#portfolio .results-grid > article {
  border: 0;
  border-top: 1px solid var(--rule);
  border-radius: 0;
  padding: 1.15rem 0;
  background: transparent;
}
.meta-charts .meta-chart { padding: .8rem; }
.meta-chart img { width: min(100%, 11rem); }
.demo-gallery { column-gap: 1.15rem; row-gap: 0; margin-top: .8rem; }
.demo-gallery-card {
  border: 0;
  border-top: 1px solid var(--rule);
  border-radius: 0;
  background: transparent;
  padding: .85rem 0 1.05rem;
}
.demo-gallery-preview {
  background: #f5f2eb;
  border-radius: .25rem;
}
.demo-gallery-preview img { object-fit: contain; }
.demo-gallery-copy { padding-top: .7rem; }
.demo-gallery-copy h3 { margin-bottom: .2rem; }
.demo-gallery-copy > p:not(.label) { margin-bottom: .55rem; }
.demo-gallery-link { background: var(--orange); color: var(--ink); }
@media (hover: hover) and (pointer: fine) {
  .demo-gallery-link:hover { background: #f67746; color: var(--ink); }
}
@media (max-width: 45rem) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero-portrait { justify-self: start; }
}

/* Put the offer first and let each section breathe on the same measure. */
.hero {
  min-height: clamp(24rem, 50vw, 34rem);
  gap: clamp(1.5rem, 6vw, 5rem);
  padding-block: clamp(2rem, 5vw, 4.25rem);
}
.hero h1 { font-size: clamp(2.5rem, 5.4vw, 4.6rem); max-width: 14ch; }
.hero .intro { max-width: 43ch; }
.hero-actions { gap: .85rem 1.15rem; }
.hero-actions .project-link { flex-basis: 100%; padding-block: 0; }
.hero-results-link { color: #17617d; font-weight: 700; padding-block: .55rem; }
.hero-proof { white-space: normal; }
.section { padding-block: clamp(2.35rem, 5.25vw, 4.75rem); }
#services .service-list, #portfolio .results-grid, #demos .demo-gallery { margin-top: 1.3rem; }
#services .service-list .service-card > a { padding-block: .8rem; }
#demos .demo-gallery { row-gap: .6rem; }
@media (max-width: 45rem) {
  .hero { min-height: 0; }
  .hero h1 { font-size: clamp(2.25rem, 8vw, 3.4rem); }
}
@media (prefers-reduced-motion: no-preference) {
  .reveal-pending { opacity: 0; }
  .reveal-pending:focus-within { opacity: 1; }
  .reveal-playing {
    animation: portfolio-rise 340ms cubic-bezier(.2,.65,.3,1) var(--reveal-delay, 0ms) both;
  }
  @keyframes portfolio-rise {
    from { opacity: 0; translate: 0 13px; }
    to { opacity: 1; translate: 0 0; }
  }
}

/* Light opening, then alternate solid section bands and open editorial rows. */
body { background: #faf7ef; }
.wrap { width: min(72rem, calc(100% - 3rem)); }
.hero {
  background: #fffdf7;
  border: 1px solid #dfdfd4;
  border-radius: .75rem;
  margin-block: 1.3rem 2rem;
  padding: clamp(1.3rem, 4.5vw, 3.4rem);
  min-height: 0;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
}
.hero h1 { font-size: clamp(2.35rem, 4.6vw, 4rem); max-width: 16ch; }
.hero .intro { margin-bottom: .85rem; }
.hero-portrait { width: min(100%, 17rem); border-radius: .45rem; justify-self: end; }
.hero-result { margin-bottom: 1.05rem; }
.hero .hero-proof {
  display: inline;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-decoration: none;
  font-size: .95rem;
}
.hero-proof strong { margin-inline-end: .2em; }
@media (hover: hover) and (pointer: fine) {
  .hero .hero-proof:hover { text-decoration: underline; }
}
#services.band { background: #eaf3f6; }
#services .service-list {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: .8rem;
  border: 0;
}
#services .service-card {
  grid-column: span 2;
  border: 1px solid #cbdde6;
  border-radius: .4rem;
  background: #fff;
}
#services .service-card:nth-child(n + 4) { grid-column: span 3; }
#services .service-list .service-card > a {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .5rem;
  padding: .85rem 1rem;
}
#services .service-action { margin-top: auto; }
#portfolio .results-grid { border-bottom: 1px solid var(--rule); }
#portfolio .report-row { padding-block: 1.4rem; }
#demos .demo-gallery { column-gap: 1.25rem; }
@media (max-width: 52rem) {
  #services .service-card, #services .service-card:nth-child(n + 4) { grid-column: span 3; }
}
@media (max-width: 45rem) {
  .wrap { width: calc(100% - 1.5rem); }
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero-portrait { justify-self: start; width: min(100%, 13rem); }
  #services .service-card, #services .service-card:nth-child(n + 4) { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: no-preference) {
  .reveal-playing { animation-duration: 500ms; }
}

/* Portfolio typography and section composition */
body { font-family: var(--text-face); background: #fff; }
.header { background: #fffcf3; border-color: #c9c8bb; }
.hero {
  position: relative;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 5vw, 4.5rem);
  padding: clamp(1.5rem, 4vw, 3.25rem) 0;
  background: transparent;
  border: 0;
  border-block: 1px solid #bfc5bc;
  border-radius: 0;
  margin-block: 1.6rem 2.25rem;
}
.hero h1 {
  max-width: none;
  font: 400 clamp(3.75rem, 8.35vw, 8.4rem)/.82 var(--display-face);
  letter-spacing: -.045em;
  text-wrap: initial;
  margin: .65rem 0 1.2rem;
}
.hero h1 span {
  display: block;
  font: 650 clamp(1rem, 1.75vw, 1.4rem)/1.1 var(--text-face);
  letter-spacing: -.025em;
  margin-bottom: .5rem;
}
.hero .intro { font-size: clamp(1.02rem, 1.5vw, 1.26rem); }
.hero-portrait {
  width: min(100%, 21rem);
  border: 0;
  border-radius: 0;
  box-shadow: .65rem .65rem 0 #c9e1eb;
  margin-right: .65rem;
}
.hero-portrait img { object-position: center top; }
.hero .hero-proof { color: #13242d; }
.hero-proof strong { color: #17617d; font-size: 1.6rem; }
.section h2 {
  font: 400 clamp(2.8rem, 5.6vw, 5.1rem)/.92 var(--display-face);
  letter-spacing: -.035em;
  max-width: 20ch;
  margin-bottom: 1.15rem;
}
#services.band { background: #dae9ee; border-block: 1px solid #bcced5; }
#services .service-list { gap: .65rem; }
#services .service-card {
  border-radius: .3rem;
  background: #f8fcfc;
  border-color: #a8c2cd;
}
#services .service-card h3 { font-size: 1.32rem; }
#portfolio .results-grid > article { border-color: #aab7b6; }
#portfolio .report-row { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
#portfolio .report-row .website-evidence { max-width: 19rem; justify-self: end; }
.meta-charts .meta-chart {
  border: 1px solid #bbc9c9;
  background: #fffcf5;
}
.demo-gallery-card { padding-block: 1.05rem 1.3rem; }
.demo-gallery-preview { border-radius: 0; }
.demo-gallery-copy h3 { font: 400 2.05rem/1 var(--display-face); letter-spacing: -.015em; }
#automation .ghl-demo { border-top-width: 5px; }
#contact { background: #dae9ee; }
@media (hover: hover) and (pointer: fine) {
  #services .service-card:hover, .meta-charts .meta-chart:hover {
    border-color: #176988;
    box-shadow: 0 3px 9px rgb(18 59 89 / 9%);
  }
  .hero-portrait:hover, .demo-gallery-preview:hover { outline: 2px solid #176988; outline-offset: 3px; }
  .demo-gallery-preview:hover img { opacity: .96; }
  .button:hover, .demo-gallery-link:hover { box-shadow: 0 2px 7px rgb(18 59 89 / 12%); }
}
@media (prefers-reduced-motion: no-preference) {
  .meta-charts .meta-chart, #services .service-card, .demo-gallery-preview img {
    transition: transform 220ms ease, scale 280ms ease, box-shadow 220ms ease, border-color 220ms ease;
  }
  .reveal-playing { animation-duration: 560ms; }
}
@media (prefers-reduced-motion: reduce) {
  #services .service-card:hover, .meta-charts .meta-chart:hover { transform: none; }
  .demo-gallery-preview:hover img { scale: 1; }
}
@media (max-width: 45rem) {
  .hero, #portfolio .report-row { grid-template-columns: minmax(0, 1fr); }
  .hero h1 { font-size: clamp(3.1rem, 11.4vw, 5.5rem); }
  .hero-portrait { justify-self: start; width: min(100% - .65rem, 14rem); }
  #portfolio .report-row .website-evidence { justify-self: start; }
}

.hero .hero-proof:focus-visible { outline: 3px solid #176988; outline-offset: 4px; }
#demos .demo-gallery-card:focus-within { border-color: #176988; }
@media (hover: hover) and (pointer: fine) {
  .demo-gallery-link:hover span { translate: 2px -1px; }
}
@media (prefers-reduced-motion: no-preference) {
  .demo-gallery-link span { transition: translate 160ms ease; }
}
@media (prefers-reduced-motion: reduce) {
  .demo-gallery-link span { translate: none !important; }
}

.hero > .hero-showcase {
  display: grid;
  justify-items: end;
  gap: 1rem;
  width: 100%;
  max-width: 25rem;
  justify-self: end;
}
.hero-showcase .hero-portrait { width: min(100% - .65rem, 13.75rem); }
@media (max-width: 45rem) {
  .hero > .hero-showcase { justify-self: start; justify-items: start; }
}
@media (hover: hover) and (pointer: fine) {
  a:hover { text-decoration: underline; text-underline-offset: .25em; }
  button:not(:disabled):hover { filter: brightness(.91); }
  .hero .consultation-cta:hover { background: #ffad85; color: #13242d; filter: none; }
  .hero .hero-results-link:hover, .hero .project-link:hover, .hero .hero-proof:hover {
    color: #0d4965;
    text-decoration: underline;
    text-decoration-thickness: 2px;
  }
  .hero-portrait:hover { box-shadow: .65rem .65rem 0 #83b9cf, 0 4px 14px #123b5926; filter: none; }
  .demo-gallery-preview:hover { box-shadow: 0 4px 14px #123b5933; border-color: #176988; }
  .demo-gallery-preview:hover img { opacity: 1; filter: contrast(1.06); }
  :is(.demo-gallery-card, #portfolio .report-row, .ghl-view):hover {
    box-shadow: 0 3px 12px #123b591d;
    border-color: #7694a2;
  }
  .demo-gallery-link:hover { text-decoration: none; }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  :is(.hero-results-link span, .project-link span) { display: inline-block; transition: translate 170ms ease; }
  :is(.hero-results-link:hover span, .project-link:hover span) { translate: 3px -2px; }
}

@font-face {
  font-family: "DM Sans";
  src: url("fonts/dm-sans.ttf") format("truetype");
  font-weight: 100 1000;
  font-display: swap;
}

/* Finishing states: stable card geometry, clear actions and consistent gutters. */
.hero h1, .section h2, .demo-gallery-copy h3 {
  font-family: "DM Sans", var(--text-face);
  font-weight: 750;
  letter-spacing: -.047em;
}
.hero h1 { font-size: clamp(2.6rem, 5.4vw, 5rem); line-height: .98; }
.section h2 { font-size: clamp(2rem, 4.25vw, 3.65rem); line-height: 1.04; }
.demo-gallery-copy h3 { font-size: 1.55rem; line-height: 1.15; }
.hero-showcase .hero-portrait { margin: 0 .65rem 0 0; cursor: default; }
.hero-showcase .hero-portrait:hover { outline: none; }
.header .consultation-cta {
  flex: none;
  margin: 0;
  padding: .45rem .7rem;
  font-size: .85rem;
  border-radius: .35rem;
}
.header nav { min-width: 0; }
#portfolio .results-grid > article.report-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 19rem);
  align-items: center;
  padding-inline: 0;
}
#portfolio .report-row .website-evidence { align-self: center; justify-self: stretch; }
#portfolio .report-row .analytics-thumbnail { max-width: 100%; }
#demos .demo-gallery-card {
  border: 1px solid var(--rule);
  background: #fffcf6;
  border-radius: .4rem;
  padding: .85rem;
}
.demo-gallery-preview { aspect-ratio: 16 / 9; border-radius: .25rem; }
.demo-gallery-copy { min-width: 0; }
.project-link { padding: .45rem .65rem; border-radius: .3rem; text-decoration: none; }
.project-link:active { background: #e86638; color: var(--ink) !important; }
@media (hover: hover) and (pointer: fine) {
  a:hover, a:hover *, .header a:hover, .hero .hero-proof:hover,
  .hero .hero-results-link:hover, .hero .project-link:hover {
    text-decoration: none !important;
  }
  a:hover { color: #0d4965; }
  .header .consultation-cta:hover { background: #ffb08a; color: var(--ink); }
  #automation .project-link:hover, .project-link:hover { background: #ff9b72; color: var(--ink); }
  #demos .demo-gallery-card:hover { border-color: #698f9c; box-shadow: 0 6px 15px #123b5929; }
  .demo-gallery-card:hover .demo-gallery-preview { border-color: #698f9c; }
  .demo-gallery-preview:hover { outline: none; box-shadow: none; }
  .demo-gallery-card:hover .demo-gallery-link { background: #f67746; color: var(--ink); }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .demo-gallery-card { transition: box-shadow 180ms ease, border-color 180ms ease, transform 180ms ease; }
  .demo-gallery-card:hover { transform: translateY(-3px); }
}
@media (max-width: 45rem) {
  .header { flex-wrap: wrap; gap: .15rem .5rem; }
  .header .consultation-cta { margin-inline-start: auto; }
  .hero h1 { font-size: clamp(2.2rem, 9vw, 3.75rem); }
  #portfolio .results-grid > article.report-row { grid-template-columns: minmax(0, 1fr); }
  #portfolio .report-row .website-evidence { justify-self: start; }
}


.hero .hero-results-link {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  min-height: 44px;
  padding: .55rem .8rem;
  border: 1px solid #17617d;
  border-radius: .35rem;
  text-decoration: none;
}
@media (hover: hover) and (pointer: fine) {
  .hero .hero-results-link:hover { background: #e6f2f5; }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .hero-showcase .hero-portrait { transition: transform 180ms ease, box-shadow 180ms ease; }
  .hero-showcase .hero-portrait:hover { transform: translateY(-4px); }
}


@font-face {
  font-family: "Jost";
  src: url("fonts/jost.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}
body { --text-face: "Jost", system-ui, sans-serif; }
.hero h1, .section h2, .demo-gallery-copy h3 { font-family: var(--text-face); }

@font-face {
  font-family: "Geist";
  src: url("fonts/geist.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}

.hero h1,
.section :is(h2, h3, h4),
.section .meta-chart-title,
.section .metric,
.hero .hero-proof strong {
  font-family: "Geist", var(--text-face);
  font-weight: 700;
  letter-spacing: normal;
}
.hero h1 { text-wrap: balance; }
