:root {
  --showcase-ink: #252329;
  --showcase-paper: #faf8f4;
  --showcase-muted: #625d68;
  --showcase-line: #e8e1dc;
  --showcase-accent: #6242a6;
  --showcase-rose: #b34362;
  --showcase-warm: #fae0ce;
  --showcase-lilac: #e6ddf9;
  --showcase-radius: clamp(1.25rem, 3vw, 2.5rem);
}
.showcase-container { width: min(1240px, calc(100% - clamp(2rem, 8vw, 6rem))); margin-inline: auto; }
.showcase-kicker { color: var(--showcase-accent); font-size: .875rem; font-weight: 700; letter-spacing: .075em; text-transform: uppercase; }
.showcase-heading { color: var(--showcase-ink); font-size: clamp(2.3rem, 6.1vw, 5.5rem); line-height: .98; letter-spacing: -.065em; text-wrap: balance; margin: 0; font-weight: 550; }
body.showcase-home { --paper: var(--showcase-paper); --ink: var(--showcase-ink); --line: var(--showcase-line); --muted: var(--showcase-muted); --accent: var(--showcase-accent); }
.showcase-home .header { position: relative; z-index: 30; gap: clamp(1.5rem, 5vw, 5rem); }
.showcase-home .header nav { gap: clamp(1rem, 2.1vw, 2rem); align-items: center; }
.showcase-home :is(.header nav, .header-actions) a { text-wrap: nowrap; }
.showcase-feature-menu { position: relative; }
.showcase-feature-menu summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: .46rem; border-radius: .35rem; }
.showcase-feature-menu summary::-webkit-details-marker { display: none; }
.showcase-feature-menu summary::after { content: ""; width: .42rem; height: .42rem; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-2px) rotate(45deg); }
.showcase-feature-menu[open] summary::after { transform: translateY(2px) rotate(225deg); }
.showcase-feature-menu .showcase-menu-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); position: absolute; inset: calc(100% + 1rem) auto auto -1.15rem; width: min(29rem, calc(100vw - 3rem)); padding: .65rem; gap: .2rem; border: 1px solid var(--showcase-line); border-radius: 1.1rem; background: #fffdfa; box-shadow: 0 15px 55px #3f274422; }
.showcase-home .header nav .showcase-menu-links a { padding: .58rem .65rem; color: var(--showcase-ink); border-radius: .6rem; font-size: .875rem; text-wrap: wrap; line-height: 1.25; }
.showcase-home .header nav .showcase-menu-links a:hover { background: #f1e9fa; }
.showcase-menu-links .showcase-menu-all { grid-column: 1 / -1; border-top: 1px solid var(--showcase-line); padding-top: .8rem; }
.showcase-lead-form { width: 100%; max-width: 31rem; }
.showcase-lead-field { display: flex; align-items: center; gap: .35rem; min-width: 0; margin: 0; padding: .25rem; border: 1px solid #ded4e2; border-radius: 3rem; background: #fffefa; box-shadow: 0 2px 6px #48283e0b; }
.showcase-lead-field:focus-within { border-color: var(--showcase-accent); box-shadow: 0 0 0 3px #6242a61b; }
.showcase-lead-field input[type=email] { min-width: 0; flex: 1; width: 100%; border: 0; background: transparent; color: var(--showcase-ink); padding: .65rem .55rem .65rem .85rem; font: inherit; font-size: 1rem; outline: 0; }
.showcase-lead-submit { border: 1px solid #30283f; border-radius: 3rem; min-height: 44px; background: #30283f; color: #fff; padding: .55rem 1rem; font: inherit; font-size: .875rem; font-weight: 700; line-height: 1.3; white-space: nowrap; cursor: pointer; box-shadow: 0 2px 3px #30283f26; transition: background-color 180ms ease, transform 180ms ease; }
.showcase-lead-submit:hover { background: var(--showcase-accent); transform: translateY(-1px); }
.showcase-lead-submit:disabled { opacity: .55; cursor: default; transform: none; }
.showcase-lead-privacy, .showcase-lead-feedback { font-size: .875rem; color: var(--showcase-muted); margin: .54rem 0 0; line-height: 1.4; }
.showcase-lead-privacy a { text-decoration: underline; text-underline-offset: .16em; }
.showcase-lead-feedback[data-kind="success"] { color: #29604b; }
.showcase-lead-feedback[data-kind="error"] { color: #972e4c; }
.showcase-lead-trap, .showcase-visually-hidden { position: absolute; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; white-space: nowrap; }
.showcase-home .showcase-lead-fallback { text-decoration: underline; text-underline-offset: .15em; }
.showcase-home .showcase-review { margin-block: clamp(3.5rem, 8vw, 8rem); }
.showcase-reviews { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); border: 1px solid #eadde4; border-radius: var(--showcase-radius); overflow: hidden; overflow: clip; background: #f9f4f8; }
.showcase-review-intro { display: flex; flex-direction: column; justify-content: space-between; gap: 2rem; padding: clamp(1.25rem, 4vw, 4rem); color: #332238; background: radial-gradient(ellipse at 18% 8%, #f9e5c5, transparent 61%), linear-gradient(136deg,#f6c7d8,#e3d4fa); }
.showcase-review-intro .showcase-heading { font-size: clamp(2.15rem, 5vw, 4.65rem); }
.showcase-review-intro .showcase-kicker { margin: 0; color: #64415d; }
.showcase-quote-grid { display: grid; align-content: center; gap: 0; padding-inline: clamp(1rem, 4vw, 3.75rem); }
.showcase-quote-grid figure { margin: 0; padding-block: clamp(1.1rem, 2vw, 1.8rem); }
.showcase-quote-grid figure + figure { border-top: 1px solid #e5d9e2; }
.showcase-quote-grid blockquote { margin: 0; color: var(--showcase-ink); font-size: clamp(1rem, 1.7vw, 1.375rem); line-height: 1.35; letter-spacing: -.025em; }
.showcase-quote-grid figcaption { margin-top: .48rem; color: var(--showcase-muted); font-size: .875rem; }
.showcase-quote-grid figcaption a { text-decoration: underline; text-underline-offset: .16em; }
.showcase-home .closing.showcase-close { border-top: 0; border-radius: var(--showcase-radius); margin-bottom: clamp(2rem, 6vw, 6rem); padding: clamp(2.5rem, 7vw, 6rem) 1rem; background: radial-gradient(ellipse at 13% 95%, #f1b7bf 0%, transparent 48%), radial-gradient(ellipse at 88% 3%, #cfbbfa 0%, transparent 55%), linear-gradient(126deg,#fae5cd,#f7e0ee 54%,#e4d6f9); color: var(--showcase-ink); }
.showcase-close .showcase-heading { margin: .9rem auto 1rem; }
.showcase-close .showcase-lead-form { margin: 1.5rem auto 0; }
.showcase-close .showcase-lead-fallback { display: inline-block; margin-top: 1rem; }
.showcase-home .footer { display: grid; grid-template-columns: minmax(10rem, 1fr) minmax(0, 2.4fr); align-items: start; gap: 2rem 3rem; padding-block: 2.5rem; }
.showcase-home .footer .showcase-footer-about p { color: var(--showcase-muted); margin: .65rem 0; }
.showcase-home .footer .showcase-footer-columns { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 1.25rem 2rem; }
.showcase-home .footer .showcase-footer-column > strong { display: block; font-size: .9rem; color: var(--showcase-ink); margin-bottom: .55rem; }
.showcase-home .footer .showcase-footer-column nav { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .45rem .8rem; font-size: .875rem; }
.showcase-home .footer .showcase-footer-column:last-child nav { grid-template-columns: 1fr; }
.showcase-home .footer nav a:hover { color: var(--showcase-accent); text-decoration: underline; text-underline-offset: .2em; }
.showcase-home .footer > small { grid-column: 1 / -1; font-size: .875rem; color: var(--showcase-muted); margin: 0; }
.showcase-home :is(a, button, summary):focus-visible { outline: 2px solid var(--showcase-accent); outline-offset: 3px; }
.showcase-home .showcase-kicker + .showcase-heading { margin-top: .56rem; }
@media (max-width: 850px) {
  .showcase-home .header { gap: 1rem; }
  .showcase-home .header nav:not(.open) { align-items: start; }
  .showcase-home .header nav.open { align-items: stretch; }
  .showcase-feature-menu .showcase-menu-links { position: static; margin-top: .6rem; box-shadow: none; width: 100%; }
}
@media (max-width: 650px) {
  .showcase-reviews, .showcase-home .footer { grid-template-columns: 1fr; }
  .showcase-review-intro { gap: .75rem; }
  .showcase-home .footer { gap: 1.45rem; }
  .showcase-home .footer .showcase-footer-columns { grid-template-columns: 1fr; }
  .showcase-home .footer .showcase-footer-column:last-child nav { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .showcase-lead-submit { transition: none; }
}
.reduced-motion .showcase-lead-submit { transition: none; }

/* Keep chapters in normal document flow while their layers move at different speeds. */
.showcase-home [data-showcase-stage] { position: relative; isolation: isolate; }
.showcase-home .showcase-scroll-glow {
  position: absolute;
  z-index: -1;
  inset: 0;
  overflow: clip;
  border-radius: inherit;
  pointer-events: none;
}
.showcase-home .showcase-scroll-glow::before {
  content: "";
  position: absolute;
  inset: -22% -16%;
  background: radial-gradient(ellipse at 20% 43%, #f5c7a880, transparent 45%),
    radial-gradient(ellipse at 78% 64%, #c9abf483, transparent 47%);
  opacity: .38;
}
.showcase-home #studio .showcase-scroll-glow::before {
  background: radial-gradient(ellipse at 16% 63%, #d0bcf98f, transparent 41%),
    radial-gradient(ellipse at 88% 30%, #f5b9a66b, transparent 42%);
}
.showcase-home #sign .showcase-scroll-glow::before {
  background: radial-gradient(ellipse at 23% 64%, #f5d4ac95, transparent 41%),
    radial-gradient(ellipse at 78% 36%, #efb6d58a, transparent 45%);
}
.showcase-home .showcase-scroll-progress { display: none; }

.showcase-home [data-showcase-enter] {
  --showcase-offset: 28px;
  --showcase-entry-stop: 29%;
  --showcase-entry-delay: 0%;
}
.showcase-home [data-showcase-enter="surface"] {
  --showcase-offset: clamp(20px, 4vw, 56px);
  --showcase-entry-stop: 38%;
}
.showcase-home [data-showcase-enter="feature"] { --showcase-entry-delay: 11%; }
.showcase-home [data-showcase-enter="quote"] {
  --showcase-offset: 16px;
  --showcase-entry-stop: 25%;
}
.showcase-home .showcase-quote-grid figure:nth-child(2),
.showcase-home .tier-card:nth-child(2) { --showcase-entry-delay: 13%; }
.showcase-home .showcase-quote-grid figure:nth-child(3),
.showcase-home .tier-card:nth-child(3) { --showcase-entry-delay: 23%; }

@keyframes showcase-enter {
  from { translate: 0 var(--showcase-offset); }
  to { translate: none; }
}
@keyframes showcase-light {
  from { transform: translate(-10%, -13%) scale(.94); opacity: .32; }
  48% { opacity: .78; }
  to { transform: translate(10%, 11%) scale(1.06); opacity: .42; }
}
@keyframes showcase-page-progress {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view(block)) and (animation-range: entry 0% cover 30%) {
    .showcase-home:not(.reduced-motion) [data-showcase-enter]:not(:focus-within) {
      animation: showcase-enter auto cubic-bezier(.18,.73,.26,1) both;
      animation-timeline: view(block);
      animation-range: entry var(--showcase-entry-delay) cover var(--showcase-entry-stop);
    }
    .showcase-home:not(.reduced-motion) .showcase-scroll-glow::before {
      animation: showcase-light auto linear both;
      animation-timeline: view(block);
      animation-range: cover 0% cover 100%;
    }
    .showcase-home:not(.reduced-motion) .showcase-scroll-progress {
      display: block;
      position: fixed;
      z-index: 90;
      inset: 0 0 auto;
      height: 3px;
      background: linear-gradient(90deg, #d47468, #8662cc 72%, #5d3da2);
      transform-origin: left center;
      pointer-events: none;
      animation: showcase-page-progress auto linear both;
      animation-timeline: scroll(root block);
    }
  }
  @supports not ((animation-timeline: view(block)) and (animation-range: entry 0% cover 30%)) {
    .showcase-home:not(.reduced-motion) .showcase-rise:not(:focus-within) {
      animation: showcase-enter 675ms cubic-bezier(.18,.73,.26,1) both;
    }
  }
}

/* The search and trial are paired, with the existing client work story above them. */
.showcase-home .hero.wrap { width: min(64rem, calc(100% - 2rem)); padding-top: clamp(2.8rem, 5vw, 4.8rem); }
.showcase-home .hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  text-align: center;
  padding-bottom: clamp(2.35rem, 4.8vw, 4.7rem);
}
.showcase-home .hero-intro { margin: 0 0 .95rem; color: var(--showcase-muted); }
.showcase-home .hero h1 {
  margin: 0;
  color: var(--showcase-ink);
  font-size: clamp(2.25rem, 6.2vw, 5.75rem);
  font-weight: 550;
  line-height: 1.02;
  letter-spacing: -.055em;
}
.showcase-home .hero h1 span { color: var(--showcase-muted); }
.hero-subhead {
  max-width: 44rem;
  margin: clamp(.9rem, 2vw, 1.45rem) auto clamp(1.25rem, 2.6vw, 2rem);
  color: var(--showcase-muted);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.5;
  text-wrap: pretty;
}
.hero-entry, #site-search-results { width: min(100%, 39rem); }
.hero-entry { display: flex; align-items: stretch; justify-content: center; gap: .55rem; }
.hero-search {
  display: flex;
  align-items: center;
  gap: .4rem;
  flex: 1 1 0%;
  min-width: 0;
  padding: .25rem .25rem .25rem .85rem;
  border: 1px solid var(--showcase-line);
  border-radius: 3rem;
  color: var(--showcase-muted);
  background: #fffefa;
}
.hero-search svg { flex: 0 0 auto; width: 1.15rem; height: 1.15rem; }
.hero-search input {
  flex: 1;
  min-width: 0;
  padding: .45rem .12rem;
  color: var(--showcase-ink);
  background: transparent;
  border: 0;
  font: inherit;
  font-size: 1rem;
  line-height: 1.3;
}
.hero-search input::placeholder { color: var(--showcase-muted); opacity: 1; }
.hero-search input:placeholder-shown::-webkit-search-cancel-button { display: none; }
.hero-search input:focus { outline: none; }
.hero-search button, .showcase-home .hero-trial {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  white-space: nowrap;
  border-radius: 3rem;
  font: inherit;
  font-size: .9375rem;
  line-height: 1.2;
  font-weight: 650;
  cursor: pointer;
}
.hero-search button {
  min-height: 2.65rem;
  padding: .5rem 1.05rem;
  background: var(--showcase-paper);
  color: var(--showcase-ink);
  border: 1px solid var(--showcase-line);
}
.hero-search button:hover { background: var(--showcase-lilac); }
.showcase-home .hero-trial {
  min-height: 44px;
  padding: .7rem 1.35rem;
  color: white;
  border: 1px solid var(--showcase-accent);
  background: var(--showcase-accent);
}
.showcase-home .hero-trial:hover { box-shadow: inset 0 0 0 1px currentColor; }
#site-search-results:not([hidden]) { margin-top: .55rem; text-align: left; }
.hero-tools { display: flex; justify-content: center; align-items: start; flex-wrap: wrap; column-gap: 1.2rem; margin-top: .45rem; width: 100%; }
.hero-tools:has(.hero-contact[open]) { display: grid; justify-items: center; justify-content: stretch; }
.showcase-home .hero-tools .hero-actions { justify-content: center; gap: 1.2rem; margin: 0; }
.showcase-home .hero-actions .text-link, .hero-contact summary {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  font-size: .875rem;
  font-weight: 550;
  color: var(--showcase-accent);
}
.hero-contact summary { list-style: none; cursor: pointer; gap: .36rem; }
.hero-contact summary::-webkit-details-marker { display: none; }
.hero-contact summary::after { content: ""; width: .4rem; height: .4rem; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-1px) rotate(45deg); }
.hero-contact[open] summary::after { transform: translateY(2px) rotate(225deg); }
.hero-contact[open] { width: min(100%, 31rem); }
.hero-contact #contact { text-align: left; scroll-margin-top: 2rem; }
.hero-contact .showcase-lead-submit { color: var(--showcase-accent); background: transparent; border-color: var(--showcase-line); box-shadow: none; }
.hero-contact .showcase-lead-submit:hover { background: var(--showcase-lilac); }
.hero-search-fallback { color: var(--showcase-muted); margin: .65rem 0 0; font-size: .875rem; }
.hero-search-fallback a { color: var(--showcase-accent); text-decoration: underline; }
@media (max-width: 500px) {
  .hero-entry { gap: .35rem; }
  .hero-search { padding-left: .55rem; gap: .22rem; }
  .hero-search svg { width: 1rem; height: 1rem; }
  .hero-search button { padding-inline: .65rem; font-size: .8125rem; }
  .showcase-home .hero-trial { padding-inline: .85rem; font-size: .875rem; }
  .hero-tools, .showcase-home .hero-tools .hero-actions { column-gap: .75rem; }
  .showcase-home .hero-actions .text-link, .hero-contact summary { font-size: .8125rem; }
}
@media (max-width: 400px) {
  .hero-search > svg { display: none; }
}

.showcase-home .lead-intake {
  padding: 0;
  margin: 0;
  border: 0;
  min-inline-size: 0;
}
.showcase-home .lead-audience {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .3rem .5rem;
  margin: .38rem 0 0;
  color: var(--showcase-muted);
  font-size: .8125rem;
}
.lead-audience-select { position: relative; display: inline-flex; align-items: center; }
.lead-audience-select::after {
  content: "";
  position: absolute;
  right: .51rem;
  top: calc(50% - .25rem);
  width: .35rem;
  height: .35rem;
  border: solid var(--showcase-accent);
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
  pointer-events: none;
}
.showcase-home .lead-audience select {
  appearance: none;
  min-height: 1.85rem;
  width: auto;
  margin: 0;
  padding: .2rem 1.35rem .2rem .55rem;
  color: var(--showcase-accent);
  background: transparent;
  border: 1px solid var(--showcase-line);
  border-radius: .4rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.showcase-home .lead-audience select:focus-visible { outline: 2px solid var(--showcase-accent); outline-offset: 2px; }
.hero-contact .showcase-lead-feedback:empty { margin: 0; }
.hero-contact .showcase-lead-privacy { margin-top: .25rem; }

#site-search-results {
  width: min(100%, 40rem);
  min-width: 0;
  border: 1px solid var(--showcase-line);
  border-radius: 1.15rem;
  background: var(--showcase-paper);
  padding: .6rem .9rem;
  color: var(--showcase-ink);
  overflow-wrap: anywhere;
}
.site-search-header { display: flex; align-items: center; justify-content: space-between; gap: .7rem; }
.showcase-home .site-search-heading { margin: 0; font-size: 1.05rem; line-height: 1.3; letter-spacing: normal; }
.site-search-close { min-height: 2.6rem; padding: .4rem .35rem; background: transparent; border: 0; color: var(--showcase-accent); font: inherit; font-size: .85rem; cursor: pointer; }
.site-search-list { list-style: none; margin: 0; padding: 0; max-height: min(49vh, 24rem); overflow-y: auto; }
.site-search-list li { border-top: 1px solid var(--showcase-line); }
.site-search-link { display: grid; gap: .14rem; padding: .55rem .3rem; color: var(--showcase-ink); border-radius: .35rem; text-decoration: none; }
.site-search-link:hover .site-search-title { text-decoration: underline; }
.site-search-link:focus-visible, .site-search-close:focus-visible, .site-search-privacy:focus-visible, .site-search-empty a:focus-visible { outline: 2px solid var(--showcase-accent); outline-offset: -2px; }
.site-search-kind, .site-search-snippet, .site-search-privacy, .site-search-empty { font-size: .875rem; line-height: 1.4; }
.site-search-kind, .site-search-snippet { color: var(--showcase-muted); }
.site-search-title, .site-search-privacy, .site-search-empty a { color: var(--showcase-accent); }
.site-search-title { font-size: 1rem; line-height: 1.3; }
.site-search-empty { margin: .5rem 0; }
.site-search-privacy { display: inline-block; margin-top: .3rem; padding: .3rem; text-decoration: underline; }

.showcase-home .header-actions .demo-request { white-space: nowrap; color: var(--showcase-accent); font-size: .875rem; font-weight: 650; }
@media(max-width: 650px) {
  .showcase-home .header-actions .demo-request { font-size: .76rem; }
}
