:root {
  --agency-paper: #f8f6ef;
  --agency-ink: #201c21;
  --agency-muted: #625a62;
  --agency-accent: #ff845e;
  --agency-line: #dfd9d1;
  --agency-dark: #221b25;
  --agency-on-dark: #f8f6ef;
  --agency-nav-glass: rgb(248 246 239 / .78);
  --agency-nav-shadow: 0 9px 28px #221b2512, inset 0 1px 0 #ffffffa0;
}
.agency-page {
  margin: 0;
  background: var(--agency-paper);
  color: var(--agency-ink);
  font-family: Inter, system-ui, sans-serif;
}
.agency-page::before, .agency-page::after { display: none }
.agency-wrap { width: min(1180px, calc(100% - 80px)); margin-inline: auto }
.agency-page a { color: inherit }
.agency-page :focus-visible, .agency-nav :focus-visible, .agency-footer :focus-visible {
  outline: 2px solid #ca4c27;
  outline-offset: 4px;
}
.agency-nav.nav {
  position: sticky;
  top: 10px;
  z-index: 40;
  inset-inline: 0;
  transform: none;
  width: min(1360px, calc(100% - 32px));
  max-width: none;
  min-height: 0;
  height: auto;
  margin: 10px auto 0;
  padding: 0;
  border: 1px solid var(--agency-line);
  border-radius: 18px;
  background: var(--agency-paper);
  color: var(--agency-ink);
  box-shadow: var(--agency-nav-shadow);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  @media not (prefers-reduced-transparency: reduce) {
    .agency-nav.nav {
      background: var(--agency-nav-glass);
      -webkit-backdrop-filter: blur(20px) saturate(145%);
      backdrop-filter: blur(20px) saturate(145%);
    }
  }
}
.agency-nav-inner {
  position: relative;
  width: min(1280px, calc(100% - 48px));
  min-height: 78px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.agency-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--agency-ink);
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -.07em;
  text-decoration: none;
  white-space: nowrap;
}

.brand-dot, .agency-footer-brand span { color: #d6512d }
.agency-nav .links { display: flex; gap: clamp(14px, 2.25vw, 32px); align-items: center }
.agency-nav .links a, .agency-nav .language { font-size: 14px; color: var(--agency-muted); font-weight: 600; white-space: nowrap }
.agency-nav .links a:hover, .agency-nav .links a[aria-current="page"], .agency-nav .language:hover { color: #a63118 }
.agency-nav-tools { display: flex; gap: 16px; align-items: center }
.agency-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--agency-accent);
  color: #241715 !important;
  font-size: 14px;
  font-weight: 760;
  line-height: 1.35;
  text-decoration: none;
  transition: background .2s ease, transform .2s ease;
}
.agency-button:hover { background: #ffa383; transform: translateY(-2px) }
.agency-nav .nav-cta { min-height: 41px; padding: 9px 14px; font-size: 13px; gap: 10px; background: var(--agency-dark); color: #fff !important }
.agency-nav .nav-cta:hover { background: #4a364b }
.agency-nav .premium-menu-toggle { display: none; background: transparent; border: 1px solid var(--agency-line); border-radius: 8px; width: 44px; height: 44px }
.agency-nav .premium-menu-toggle span { background: var(--agency-ink) }
.agency-nav .premium-mobile-menu { top: calc(100% + 8px); right: 0; left: 0; background: var(--agency-paper); border: 1px solid var(--agency-line); border-radius: 12px; box-shadow: var(--agency-nav-shadow); padding: 10px }
.agency-nav .premium-mobile-menu a { color: var(--agency-ink); padding: 12px; border-radius: 5px }
.agency-nav .premium-mobile-menu a:hover { background: #eee7dd }
.agency-kicker { display: flex; align-items: center; gap: 9px; margin: 0 0 18px; font-size: 12px; line-height: 1.5; font-weight: 720; letter-spacing: .08em; text-transform: uppercase; color: inherit }
.agency-kicker > span { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--agency-accent) }
.agency-page h1, .agency-page h2, .agency-page h3 { color: inherit }
.agency-page h1 {
  margin: 0;
  font-size: clamp(3.2rem, 6.15vw, 6.4rem);
  font-weight: 790;
  letter-spacing: -.087em;
  line-height: .98;
  text-wrap: balance;
}
.agency-intro { color: var(--agency-muted); font-size: clamp(16px, 1.7vw, 20px); line-height: 1.58; max-width: 52ch; margin: 25px 0 0 }
.agency-actions { display: flex; gap: 18px 24px; align-items: center; flex-wrap: wrap; margin-top: 29px }
.agency-text-link { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-size: 14px; font-weight: 740; width: fit-content }
.agency-text-link:hover { text-decoration: underline; text-underline-offset: .24em }
.agency-marquee {
  --ticker-background: #f3e8df;
  --ticker-text: #3f2724;
  --ticker-accent: #a63822;
  --ticker-edge: #c9a493;
  border-block: 1px solid var(--ticker-edge);
  background: var(--ticker-background);
  color: var(--ticker-text);
}
.agency-marquee-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 1360px;
  margin-inline: auto;
  padding: 11px clamp(12px, 2vw, 26px);
}
.agency-marquee-viewport { min-width: 0; flex: 1; container-type: inline-size; }
.agency-marquee-track { display: flex; }
.agency-marquee-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 4px clamp(14px, 3vw, 35px);
}
.agency-marquee-group + .agency-marquee-group { display: none; }
.agency-marquee-group span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
  font-size: clamp(12px, 1.25vw, 15px);
  font-weight: 750;
  letter-spacing: .025em;
}
.agency-marquee-group span::before {
  content: '✦';
  font-size: .72em;
  color: var(--ticker-accent);
}
.agency-marquee-toggle {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--ticker-edge);
  border-radius: 50%;
  background: transparent;
  color: var(--ticker-text);
  cursor: pointer;
}
.agency-marquee-toggle[hidden] { display: none; }
.agency-marquee-toggle:hover { border-color: var(--ticker-accent); color: var(--ticker-accent); }
.agency-marquee-toggle span {
  width: 9px;
  height: 12px;
  border-inline: 2px solid currentColor;
}
.agency-marquee[data-paused] .agency-marquee-toggle span {
  width: 0;
  height: 0;
  margin-left: 2px;
  border: 6px solid transparent;
  border-right: 0;
  border-left: 9px solid currentColor;
}
@keyframes agency-ticker { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: no-preference) {
  .agency-marquee[data-ready] .agency-marquee-viewport {
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
  }
  .agency-marquee[data-ready] .agency-marquee-track {
    width: max-content;
    animation: agency-ticker 42s linear infinite;
  }
  .agency-marquee[data-ready] .agency-marquee-group {
    flex: none;
    flex-wrap: nowrap;
    justify-content: space-around;
    min-width: 100cqw;
    padding-inline: clamp(9px, 2vw, 25px);
  }
  .agency-marquee[data-ready] .agency-marquee-group + .agency-marquee-group { display: flex; }
  .agency-marquee[data-paused] .agency-marquee-track { animation-play-state: paused; }
}
@media (prefers-reduced-motion: reduce) {
  .agency-marquee .agency-marquee-toggle { display: none; }
}

.agency-page .agency-section { padding: clamp(58px, 8vw, 107px) 0 }
.agency-section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 32px }
.agency-section-head > p { max-width: 34ch; margin: 0; color: var(--agency-muted); line-height: 1.6 }
.agency-page .agency-section h2 { margin: 0; font-size: clamp(2.1rem, 4.6vw, 4.3rem); line-height: 1.02; letter-spacing: -.07em; font-weight: 760; text-wrap: balance }
.agency-service-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); border-block-start: 1px solid var(--agency-line); border-inline-start: 1px solid var(--agency-line) }
.agency-service { display: flex; flex-direction: column; align-items: start; min-width: 0; padding: clamp(18px, 2.6vw, 35px); border-block-end: 1px solid var(--agency-line); border-inline-end: 1px solid var(--agency-line); background: #fff9; transition: background .2s }
.agency-service:hover { background: #fff }
.service-mark { margin-bottom: 25px; padding: 5px 9px; border-radius: 5px; background: #f5e5db; color: #733721; font-size: 12px; font-weight: 730 }
.agency-service h3, .agency-app-grid h3 { font-size: clamp(20px, 2.1vw, 26px); line-height: 1.16; letter-spacing: -.046em; margin: 0 }
.agency-service h3 a { text-decoration: none }
.agency-service p, .agency-app-grid p { margin: 12px 0 21px; line-height: 1.6; color: var(--agency-muted); font-size: 15px }
.agency-service .agency-text-link { margin-top: auto; color: #923821 }
.agency-work { background: #eee9e1 }
.agency-case-grid, .agency-app-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 17px }
.agency-case { display: block; border: 1px solid var(--agency-line); border-radius: 11px; overflow: hidden; background: var(--agency-paper); text-decoration: none }
.agency-case-image { aspect-ratio: 16 / 10; overflow: hidden; background: #25212a }
.agency-case-image img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .32s ease }
.agency-case:hover img { transform: scale(1.035) }
.agency-case-caption { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 17px 20px }
.agency-case-caption div > span { color: var(--agency-muted); font-size: 12px }
.agency-case-caption h3 { margin: 4px 0 0; font-size: 24px; letter-spacing: -.045em }
.agency-team { background: #e9d9d2 }
.agency-team-grid, .agency-contact-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: clamp(25px, 7vw, 100px) }
.agency-team-grid p:not(.agency-kicker), .agency-contact-grid > div > p:not(.agency-kicker) { margin: 0 0 24px; line-height: 1.6; max-width: 46ch }
.agency-contact-grid h2 { margin-bottom: 20px !important }
.agency-app-grid > a { position: relative; display: block; padding: 23px 42px 23px 22px; border: 1px solid var(--agency-line); border-radius: 9px; text-decoration: none; background: #fff9 }
.agency-app-grid > a:hover { background: #fff; border-color: #bd735a }
.agency-app-grid > a span { position: absolute; top: 21px; right: 17px; color: #a33620 }
.agency-app-grid p { margin-bottom: 0 }
.agency-estimator, .agency-contact { background: var(--agency-dark); color: var(--agency-on-dark); --line: #ffffff25 }
.agency-estimator .agency-quote :is(.quote-choice small, .quote-extra small, .quote-extra em, .quote-period, .quote-note, .quote-custom-note p) {
  color: #b6bfd4;
}
.agency-estimator .agency-quote { padding: clamp(50px, 7vw, 90px) 0; border: 0 }
.agency-estimator .agency-quote > .wrap { width: min(1180px, calc(100% - 80px)) }
.agency-estimator .topline h2 { font-size: clamp(28px, 4vw, 50px) }
.agency-estimator .topline p { color: #ddd1df }
.agency-contact { border-top: 1px solid #ffffff25 }
.agency-contact-box.contact-box { margin: 0; width: 100%; max-width: none; padding: clamp(17px, 3vw, 32px); background: #332837; border-color: #ffffff2b; color: #fff }
.agency-contact-box h3 { margin-top: 0 }
.agency-contact-box select, .agency-contact-box option { color: #fff; background: #302539 }
.agency-contact-grid a[href^="mailto:"] { font-weight: 700; color: #ffb497 }
.agency-service-hero { padding: clamp(54px, 8vw, 105px) 0; background: #eee9e1; border-bottom: 1px solid var(--agency-line) }
.agency-service-hero h1 { margin-top: 24px; max-width: 12ch }
.agency-footer { background: #19141c; color: #f8f6ef; border: 0; padding: 43px 0 18px }
.agency-footer a { color: inherit; text-decoration: none }
.agency-footer a:hover { text-decoration: underline; text-underline-offset: .25em }
.agency-footer-main { display: grid; grid-template-columns: 1fr 1fr auto; gap: 25px; align-items: start; padding-bottom: 32px }
.agency-footer-brand { font-size: clamp(28px, 4vw, 46px); line-height: 1; font-weight: 800; letter-spacing: -.075em }
.agency-footer-main p { margin: 0 0 8px }
.agency-footer-main nav { display: flex; flex-wrap: wrap; gap: 14px }
.agency-footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-top: 16px; border-top: 1px solid #ffffff29; color: #ded3e2; font-size: 12px }
.agency-footer .privacy-settings { color: inherit }
@media (max-width: 900px) {
  .agency-wrap, .agency-nav-inner, .agency-estimator .agency-quote > .wrap { width: calc(100% - 44px) }
  .agency-nav-inner { min-height: 65px }
  .agency-nav .links { display: none }
  .agency-nav .premium-menu-toggle { display: flex }


  .agency-page h1 { font-size: clamp(2.65rem, 7vw, 4.5rem) }
}
@media (max-width: 650px) {
  .agency-wrap, .agency-nav-inner, .agency-estimator .agency-quote > .wrap { width: calc(100% - 32px) }
  .agency-nav.nav { top: 6px; width: calc(100% - 16px); margin-top: 6px; border-radius: 14px }
  .agency-nav-inner { width: calc(100% - 20px) }
  .agency-nav .nav-cta { display: none }
  .agency-service-grid, .agency-case-grid, .agency-app-grid, .agency-team-grid, .agency-contact-grid, .agency-footer-main { grid-template-columns: 1fr }

  .agency-section-head { align-items: start; flex-direction: column; gap: 15px }
  .agency-service { padding: 22px }
  .service-mark { margin-bottom: 14px }
  .agency-footer-main { gap: 17px }
}
@media (prefers-reduced-motion: reduce) {
  .agency-button, .agency-case-image img { transition: none }
}
body:has(.agency-nav) { overflow-x: clip }
.agency-nav + main > .portfolio, .agency-nav + main > .case-hero { padding-top: clamp(56px, 7vw, 95px) }
.agency-hero h1 { font-size: clamp(3rem, 5.1vw, 5.7rem); text-wrap: initial }
.agency-arrow { display: inline-block; position: relative; flex: 0 0 auto; width: 12px; height: 12px; color: inherit; vertical-align: middle }
.agency-arrow::before { content: ''; position: absolute; top: 1px; right: 1px; width: 7px; height: 7px; border-top: 1.5px solid; border-right: 1.5px solid }
.agency-arrow::after { content: ''; position: absolute; top: 6px; right: 0; width: 12px; border-top: 1.5px solid; transform: rotate(-45deg) }
.agency-arrow-down { transform: rotate(135deg) }
.agency-hero-panel .agency-arrow { margin-top: .25em }
.agency-page .cookie-panel, .agency-page .faq-panel { color: #f8f6ef; background: #261e2a; border-color: #ac6853 }
body:has(.agency-nav) .chat-launch { background: #ffb49b; color: #251c22; border-color: #b76f59 }
.agency-page .cookie-panel h2, .agency-page .cookie-panel label { color: #f8f6ef }
.agency-page .agency-contact-box .btn.primary, .agency-page .agency-quote .btn.primary { background: var(--agency-accent); color: #241715; box-shadow: none }
.agency-page .agency-quote { --cyan: #ffb59b }
.agency-page .agency-quote .eyebrow { color: #ffb59b }
@media (max-width: 650px) {
  .agency-hero h1 { font-size: clamp(2.8rem, 10vw, 4.2rem) }
}
.agency-theme-toggle {
  border: 1px solid var(--agency-line);
  border-radius: 7px;
  background: transparent;
  color: var(--agency-ink);
  padding: 7px 10px;
  min-height: 35px;
  font: inherit;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
  white-space: nowrap;
}
.agency-theme-toggle:hover { border-color: currentColor }
.agency-theme-toggle[hidden] { display: none }
@media (max-width: 650px) {
  .agency-nav-inner, .agency-nav-tools { gap: 9px }
  .agency-brand { gap: 7px; font-size: 20px }

}
:root[data-theme="dark"] {
  color-scheme: dark;
  --agency-paper: #100f19;
  --agency-ink: #f7f5ff;
  --agency-muted: #c1bfd3;
  --agency-accent: #6ff0fb;
  --agency-line: #3a364d;
  --agency-dark: #15131f;
  --agency-nav-glass: rgb(19 17 30 / .76);
  --agency-nav-shadow: 0 9px 30px #07060c64, inset 0 1px 0 #e7c9ff16;
}
:root[data-theme="dark"] .brand-dot, :root[data-theme="dark"] .agency-footer-brand span { color: #ff7bd5 }
:root[data-theme="dark"] .agency-button { color: #11121b !important }
:root[data-theme="dark"] .agency-button:hover { background: #a6faff }
:root[data-theme="dark"] .agency-nav .nav-cta { color: #11121b !important; background: var(--agency-accent) }
:root[data-theme="dark"] .agency-nav .links a:hover,
:root[data-theme="dark"] .agency-nav .links a[aria-current="page"],
:root[data-theme="dark"] .agency-nav .language:hover,
:root[data-theme="dark"] .agency-service .agency-text-link { color: #83efff }
:root[data-theme="dark"] .agency-nav .premium-mobile-menu a:hover { background: #28233b }
:root[data-theme="dark"] .agency-hero-accent {
  color: #a3eaff;
  background: linear-gradient(96deg, #77f3ff, #e8b2ff 60%, #ff8bd4);
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
:root[data-theme="dark"] .agency-marquee {
  --ticker-background: #1d1930;
  --ticker-text: #e7f9ff;
  --ticker-accent: #86ecf8;
  --ticker-edge: #58447e;
}
:root[data-theme="dark"] .agency-service, :root[data-theme="dark"] .agency-app-grid > a { background: #171523 }
:root[data-theme="dark"] .agency-service:hover, :root[data-theme="dark"] .agency-app-grid > a:hover { background: #262138; border-color: #7664a4 }
:root[data-theme="dark"] .service-mark { background: #29213d; color: #b8edff }
:root[data-theme="dark"] .agency-work, :root[data-theme="dark"] .agency-service-hero { background: #171425 }
:root[data-theme="dark"] .agency-team { background: #231c37 }
:root[data-theme="dark"] .agency-app-grid > a span, :root[data-theme="dark"] .agency-contact-grid a[href^="mailto:"] { color: #9aecff }
:root[data-theme="dark"] .agency-contact-box.contact-box { background: #242035 }
:root[data-theme="dark"] .agency-contact-box select, :root[data-theme="dark"] .agency-contact-box option { background: #211d31 }
:root[data-theme="dark"] .agency-page .agency-quote { --cyan: #6ff0fb }
:root[data-theme="dark"] .agency-page .agency-quote .eyebrow { color: #9eeeff }
:root[data-theme="dark"] .agency-page .agency-contact-box .btn.primary,
:root[data-theme="dark"] .agency-page .agency-quote .btn.primary { color: #11121b }
:root[data-theme="dark"] body:has(.agency-nav) .chat-launch { background: #84ecfa; border-color: #60deef; color: #11121b }
:root[data-theme="dark"] :is(.agency-page,.agency-nav,.agency-footer) :focus-visible { outline-color: #8af1ff }

:root:not([data-theme="dark"]) .agency-legacy {
  --bg: #f8f6ef;
  --text: #201c21;
  --muted: #625a62;
  --panel: #f0e9df;
  --line: #dfd9d1;
  --cyan: #903820;
  color: var(--text);
}
:root:not([data-theme="dark"]) .agency-legacy::before,
:root:not([data-theme="dark"]) .agency-legacy::after { display: none }
:root:not([data-theme="dark"]) .agency-legacy .gradient { color: #923820; background: none; -webkit-text-fill-color: currentColor }
:root:not([data-theme="dark"]) .agency-legacy .eyebrow,
:root:not([data-theme="dark"]) .agency-legacy .text-link { color: #923820 }
:root:not([data-theme="dark"]) .agency-legacy :is(.catalog-intro p,.catalog-index,.product-number span,.product-content p,.product-tags li,.product-price,.section-line p,.custom-cta p,.hero-footnote,.features-section p,.demo-steps li,.demo-disclaimer,.product-pricing p,.purchase-options article>span) { color: var(--agency-muted) }
:root:not([data-theme="dark"]) .agency-legacy .purchase-options article { background: #fffcf5 }
:root:not([data-theme="dark"]) .agency-legacy .btn.primary { background: var(--agency-accent); color: #241715; box-shadow: none }
:root:not([data-theme="dark"]) .agency-legacy .btn.secondary { border-color: #c8bdb4; background: #fff9; color: var(--agency-ink) }
:root:not([data-theme="dark"]) .agency-legacy .project-content { color: #fff }
:root:not([data-theme="dark"]) .agency-legacy :is(.cookie-panel,.faq-panel) { color: #f8f6ef }
.agency-nav + main > :is(.catalog-hero,.product-hero) { padding-top: clamp(55px, 7vw, 95px) }

.quote-marketing {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px 30px;
  margin-top: 28px;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.quote-marketing h3 { margin: 0 0 8px; }
.quote-marketing p { max-width: 62ch; margin: 0; color: #d3ccdc; line-height: 1.6; }
.agency-page .quote-marketing .agency-text-link { color: var(--cyan); }

.case-study-hero { padding: clamp(46px, 7vw, 98px) 0 clamp(30px, 5vw, 56px); }
.case-study-back { margin-bottom: clamp(26px, 5vw, 48px); }
.case-study-hero h1 {
  max-width: 19ch;
  margin: 0;
  font-size: clamp(36px, 6.5vw, 78px);
  line-height: 1.02;
  letter-spacing: -.055em;
  text-wrap: balance;
}
.case-study-intro { max-width: 60ch; margin: 18px 0 0; color: var(--agency-muted); font-size: clamp(16px, 2vw, 20px); }
.case-study-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 24px; margin-top: 24px; }
.case-study .agency-text-link { color: var(--agency-ink); text-decoration: underline; text-underline-offset: .24em; }
.case-study .agency-text-link:hover { color: #923820; }
:root[data-theme="dark"] .case-study .agency-text-link:hover { color: var(--agency-accent); }
.case-study-content { padding-bottom: clamp(48px, 7vw, 90px); }
.case-study-figure { margin: 0 0 clamp(42px, 6vw, 68px); }
.case-study-figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--agency-line);
  border-radius: 12px;
  background: var(--agency-paper);
}
.case-study-figure-product img {
  max-height: min(680px, 100vw);
  object-fit: contain;
}
.case-study-figure figcaption { margin-top: 8px; font-size: 13px; color: var(--agency-muted); }
.case-study-content h2 { margin: 0 0 20px; font-size: clamp(27px, 4vw, 44px); letter-spacing: -.04em; }
.case-study-details { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.case-study-details article { padding: clamp(16px, 2.5vw, 27px); border: 1px solid var(--agency-line); border-radius: 12px; }
.case-study-details h3 { margin: 0 0 10px; font-size: 19px; }
.case-study-details p { margin: 0; color: var(--agency-muted); line-height: 1.65; }
.case-study-more { margin-top: 24px; }
@media (max-width: 780px) {
  .case-study-details { grid-template-columns: 1fr; }
}

.agency-hero {
  min-block-size: calc(100svh - 90px);
  display: grid;
  grid-template-rows: 1fr auto;
  align-items: center;
  gap: 20px;
  padding: clamp(34px, 6vh, 72px) 0 22px;
  background: radial-gradient(ellipse at 79% 47%, #f8dfd2 0, transparent 64%);
}
.agency-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.13fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(30px, 5vw, 74px);
}
.agency-hero h1 > span { display: block; }
.hero-explore {
  justify-self: center;
  padding: 10px 14px;
  color: var(--agency-ink);
}
.agency-hero-panel {
  --hero-warm: #ffb192;
  --hero-pink: #ed92bc;
  --hero-cool: #c5afff;
  --hero-window: #211a29;
  --hero-edge: #ba9bbb60;
  min-width: 0;
  position: relative;
  isolation: isolate;
  padding: clamp(18px, 3vw, 42px);
  border: 1px solid #7e536653;
  border-radius: 22px;
  background: radial-gradient(ellipse at 82% 5%, #70404d, transparent 73%), #211925;
  color: var(--agency-on-dark);
  box-shadow: 0 25px 64px #39243229;
}
.agency-hero-panel::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  border-radius: inherit;
  background-image: linear-gradient(#ffffff0d 1px, transparent 1px), linear-gradient(90deg, #ffffff0d 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(155deg, #000, transparent 91%);
}
.hero-browser {
  overflow: hidden;
  border: 1px solid var(--hero-edge);
  border-radius: 12px;
  background: var(--hero-window);
  box-shadow: 0 10px 30px #0e08164d;
}
.hero-browser-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--hero-edge);
  color: var(--agency-on-dark);
  font-size: 12px;
  font-weight: 650;
}
.hero-browser-dots {
  flex: 0 0 23px;
  height: 5px;
  background: radial-gradient(circle, var(--hero-warm) 2px, transparent 2.5px) 0 center / 8px 5px repeat-x;
}
.hero-browser-page {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 12%;
  padding: clamp(16px, 4vw, 44px);
}
.hero-wire-copy { display: grid; align-content: center; gap: 8px; }
.hero-wire-copy i { display: block; height: 6px; border-radius: 12px; background: #d7c3dc59; }
.hero-wire-copy i:first-child { height: 10px; background: var(--hero-warm); }
.hero-wire-copy i:nth-child(2) { width: 82%; }
.hero-wire-copy i:nth-child(3) { width: 62%; }
.hero-wire-copy i:last-child { width: 42%; height: 13px; margin-top: 6px; background: #d7c3dc6e; }
.hero-wire-visual {
  aspect-ratio: 1.32;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  gap: 9%;
  padding: 13%;
  border: 1px solid var(--hero-edge);
  border-radius: 8px;
  background: linear-gradient(140deg, #ffffff13, transparent);
}
.hero-wire-visual i { height: 42%; border-radius: 4px 4px 2px 2px; background: var(--hero-warm); }
.hero-wire-visual i:nth-child(2) { height: 68%; background: var(--hero-pink); }
.hero-wire-visual i:last-child { height: 100%; background: var(--hero-cool); }
.hero-channels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.hero-channel { --channel-color: var(--hero-warm); --channel-delay: .21s; min-width: 0; }
.hero-channel:nth-child(2) { --channel-color: var(--hero-pink); --channel-delay: .38s; }
.hero-channel:nth-child(3) { --channel-color: var(--hero-cool); --channel-delay: .55s; }
.hero-connection {
  display: block;
  width: 2px;
  height: clamp(23px, 4vw, 53px);
  margin-inline: auto;
  background: var(--channel-color);
  transform-origin: bottom;
}
.hero-channel a {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 8px clamp(7px, 1.1vw, 14px);
  border: 1px solid var(--hero-edge);
  border-radius: 8px;
  background: var(--hero-window);
  color: var(--agency-on-dark);
  font-size: clamp(11px, 1.15vw, 15px);
  font-weight: 720;
  line-height: 1.2;
  text-decoration: none;
  transition: border-color .2s, background-color .2s;
}
.hero-channel a:hover, .hero-channel a:focus-visible {
  background: #3c3045;
  border-color: var(--channel-color);
}
.hero-channel a .agency-arrow { color: var(--channel-color); }
:root[data-theme="dark"] .agency-hero { background: radial-gradient(ellipse at 79% 44%, #302145 0, transparent 64%); }
:root[data-theme="dark"] .agency-hero-panel {
  --hero-warm: #7bedf7;
  --hero-pink: #f493da;
  --hero-cool: #bba6ff;
  --hero-window: #181629;
  --hero-edge: #b8a3f15e;
  border-color: #7760a97a;
  background: radial-gradient(ellipse at 83% 7%, #50306a, transparent 74%), #191524;
  box-shadow: 0 20px 65px #a746ff26;
}
@keyframes hero-rise {
  from { opacity: 0; transform: translateY(17px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes hero-connect {
  from { opacity: 0; transform: scaleY(0); }
  to { opacity: 1; transform: scaleY(1); }
}
@media (prefers-reduced-motion: no-preference) {
  .agency-hero h1 > span, .agency-hero .agency-actions, .hero-browser, .hero-channel a {
    animation: hero-rise .62s cubic-bezier(.2,.8,.25,1) backwards;
  }
  .agency-hero h1 .agency-hero-accent { animation-delay: .09s; }
  .agency-hero .agency-actions { animation-delay: .21s; }
  .hero-browser { animation-delay: .14s; }
  .hero-channel a { animation-delay: var(--channel-delay); }
  .hero-connection { animation: hero-connect .44s ease-out var(--channel-delay) backwards; }
  .hero-channel a:focus-visible, .agency-hero .agency-actions:focus-within { animation: none; }
}
@media (max-width: 900px) {
  .agency-hero { min-block-size: calc(100svh - 77px); }
}
@media (max-width: 650px) {
  .agency-hero {
    min-block-size: calc(100svh - 73px);
    gap: 12px;
    padding: clamp(18px, 4vh, 35px) 0 12px;
  }
  .agency-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .agency-hero .agency-kicker { margin-bottom: 12px; }
  .agency-hero .agency-intro { margin-top: 14px; }
  .agency-hero .agency-actions { margin-top: 16px; }
  .agency-hero-panel { padding: 13px; border-radius: 15px; }
  .hero-browser-page { padding: 13px 18px; }
  .hero-wire-visual { max-height: 69px; justify-self: end; }
  .hero-channels { gap: 6px; }
}
