.mega-item { position: static; display: flex; align-items: center; }
.mega-toggle { white-space: nowrap; min-height: 44px; padding-inline: 13px; border: 1px solid transparent; -webkit-tap-highlight-color: transparent; }
.mega-item.is-open .mega-toggle { border-color: var(--line-2); background: color-mix(in srgb, var(--text) 8%, transparent); }
.mega-toggle .mega-chevron { display: block; flex: 0 0 14px; width: 14px; height: 14px; color: var(--text); transition: transform 180ms ease; }
.mega-toggle[aria-expanded="true"] .mega-chevron { transform: rotate(180deg); }
@media (min-width: 981px) {
  .nav[data-catalog-nav] { align-items: center; }
  .nav[data-catalog-nav] > a,
  .nav[data-catalog-nav] > .mega-item > .mega-toggle {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding-block: 0;
    line-height: 1.2;
  }
}
.mega-panel {
  position: absolute; z-index: 65; inset: 100% 0 auto; width: min(1296px, calc(100vw - 48px)); margin-inline: auto;
  padding-top: 10px; opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-7px) scale(.992); transform-origin: top center;
  transition: opacity 180ms ease, transform 260ms cubic-bezier(.2,.8,.3,1), visibility 0s 260ms;
}
.mega-item.is-open > .mega-panel { opacity: 1; visibility: visible; pointer-events: auto; transform: none; transition-delay: 0s; }
.mega-surface {
  --glass-fill: #151515d6;
  --glass-edge: #ffffff26;
  --glass-sheen: #ffffff0a;
  background: var(--glass-fill);
  border: 1px solid var(--glass-edge); padding: 12px;
  box-shadow: 0 24px 66px #0008;
  -webkit-backdrop-filter: blur(26px) saturate(0); backdrop-filter: blur(26px) saturate(0);
  max-height: calc(100dvh - 92px); overflow-y: auto;
}
[data-theme="light"] .mega-surface { --glass-fill: #f9f9f9df; --glass-edge: #28212636; --glass-sheen: #ffffff99; box-shadow: 0 24px 66px #241c2536; }
.mega-surface, .product-services { --glass-accent: #ec284a65; }
[data-theme="light"] :is(.mega-surface, .product-services) { --glass-accent: #e41e423d; }
.mega-surface--products { display: grid; grid-template-columns: minmax(0, 3.15fr) minmax(0, 1fr); gap: 8px; }
.mega-grid { display: grid; gap: 8px; }
.mega-grid--products { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; }
.mega-grid--industries { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.mega-grid--cases { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mega-grid--ai { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.nav .mega-panel .mega-ai-link {
  display: grid; grid-template-rows: auto 1fr; min-width: 0; overflow: hidden;
  padding: clamp(14px, 2vw, 26px);
  background: var(--menu-background, var(--preview-header, var(--bg)));
}
.mega-ai-link strong {
  display: block; font-family: Unbounded, Manrope, Arial, sans-serif !important;
  font-size: clamp(1rem, 1.23vw, 1.18rem); font-weight: 700; line-height: 1.25; overflow-wrap: anywhere;
}
.mega-ai-link small { display: block; max-width: 34ch; margin-top: 6px; color: var(--muted); font-size: .86rem; }
.mega-ai-link .catalog-icon { width: 128px; height: 96px; justify-self: end; align-self: end; margin: -2px -8px -9px 0; }
@media (min-width: 981px) {
  .nav .mega-panel .mega-ai-link {
    display: block; min-height: 204px; padding: 15px 16px 20px;
  }
  .mega-ai-link .catalog-icon {
    position: absolute; right: -4px; bottom: -5px;
    width: min(49%, 174px); height: 134px; margin: 0; pointer-events: none;
  }
}
.mega-product {
  min-width: 0; min-height: 220px; position: relative; display: flex; flex-direction: column; isolation: isolate;
  padding: 15px 16px 20px; overflow: hidden; border: 1px solid var(--glass-edge);
  background: var(--glass-sheen);
}
.mega-panel :is(.mega-product, .mega-industry, .mega-preview, .mega-banner, .mega-ai-link),
.product-services .vcard { position: relative; isolation: isolate; }
.mega-panel :is(.mega-product, .mega-industry, .mega-preview, .mega-banner, .mega-ai-link) { transition: border-color 200ms ease; }
.mega-panel :is(.mega-product, .mega-industry, .mega-preview, .mega-banner, .mega-ai-link)::before, .product-services .vcard::before {
  position: absolute; inset: 0; content: ''; pointer-events: none; z-index: -1; opacity: 0;
  background: radial-gradient(240px circle at var(--spot-x, 72%) var(--spot-y, 78%), var(--glass-accent), transparent 74%);
  transition: opacity 230ms ease;
}
@media (hover: hover) {
  .mega-panel :is(.mega-product, .mega-industry, .mega-preview, .mega-banner):hover { border-color: color-mix(in srgb, var(--glass-edge), #f82748 42%); }
  .mega-panel :is(.mega-product, .mega-industry, .mega-preview, .mega-banner, .mega-ai-link):hover::before,
  .product-services .vcard:hover::before { opacity: 1; }
}
.mega-panel :is(.mega-industry, .mega-preview, .mega-banner, .mega-ai-link):focus-visible::before,
.mega-panel .mega-product:has(:focus-visible)::before, .product-services .vcard:has(:focus-visible)::before { opacity: 1; }
.catalog-icon { width: 74px; height: 74px; object-fit: contain; flex: none; transition: transform 420ms cubic-bezier(.2,.8,.3,1); }
.mega-product > .catalog-icon { position: absolute; pointer-events: none; width: 62%; height: 76%; right: -4%; bottom: -9%; z-index: -1; opacity: .9; }
.mega-product:has(.mega-options) > .catalog-icon { width: 54%; right: -7%; bottom: -13%; opacity: .6; }
@media (hover: hover) {
  .mega-product:hover .catalog-icon, .mega-industry:hover .catalog-icon, .mega-ai-link:hover .catalog-icon { transform: translate(-6px,-8px) rotate(-4deg); opacity: 1; }
  .mega-product:has(.mega-options):hover > .catalog-icon { opacity: .74; }
}
.nav .mega-panel a {
  color: var(--text); font-size: .95rem; text-transform: none; text-decoration: none; letter-spacing: 0; padding: 0; line-height: 1.32;
}
.nav .mega-panel a::after { display: none; }
.mega-panel a:focus-visible, .featured-case:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.nav .mega-title { font-size: clamp(1rem,1.38vw,1.4rem); font-weight: 700; padding-block: 4px; letter-spacing: -.045em; width: fit-content; }
.nav .mega-title:hover, .nav .mega-links a:hover { color: var(--red-ink); }
.mega-product p, .mega-preview small, .mega-banner small { color: var(--muted); font-size: .8rem; line-height: 1.45; }
.mega-product p { margin: 4px 0 0; max-width: 22ch; }
.mega-links { display: grid; margin-top: 7px; }
.mega-options > summary { display: none; }
.nav .mega-links a { display: grid; align-content: center; min-height: 25px; width: fit-content; font-size: .81rem; }
.mega-preview, .nav .mega-preview {
  border: 1px solid var(--glass-edge, var(--line-2)); background: color-mix(in srgb, var(--text) 5%, transparent); display: grid;
  grid-template-columns: 100px minmax(0, 1fr); align-items: center; gap: 12px; padding: 9px; min-width: 0;
}
.nav .mega-panel .mega-preview { grid-template-columns: clamp(105px, 10vw, 153px) minmax(0, 1fr); padding: 10px; }
.mega-preview img { display: block; width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; object-position: top; background: #141414; }
.mega-preview strong, .mega-preview small, .mega-banner strong, .mega-banner small { display: block; }
.mega-preview strong { font-size: .97rem; line-height: 1.26; }
.nav .mega-panel .mega-industry {
  display: block; min-height: 242px; padding: clamp(14px, 1.65vw, 25px); overflow: hidden;
  border: 1px solid var(--glass-edge); background: var(--glass-sheen);
}
.mega-industry strong { display: block; font-size: clamp(1.03rem, 1.65vw, 1.4rem); line-height: 1.15; letter-spacing: -.035em; overflow-wrap: anywhere; }
.mega-industry small { display: block; color: var(--muted); max-width: 23ch; font-size: .8rem; margin-top: 7px; }
.mega-industry .catalog-icon { position: absolute; right: 1%; bottom: -1%; width: 69%; height: 64%; z-index: -1; pointer-events: none; opacity: .89; }
.nav .mega-panel .mega-banner { display: flex; flex-direction: column; align-items: start; gap: 15px; overflow: hidden; padding: 20px;
  border: 1px solid var(--glass-edge); background: color-mix(in srgb, var(--text) 6%, transparent); }
.mega-banner strong { font-size: clamp(1.25rem, 2.25vw, 2.1rem); line-height: .99; letter-spacing: -.05em; }
.mega-banner small { margin-top: 10px; }
.mega-banner .catalog-icon { order: 1; align-self: center; width: min(115%, 290px); height: auto; aspect-ratio: 1; margin: auto 0; }
.mega-banner:hover .catalog-icon { transform: translateY(-6px) rotate(-3deg); }
.mega-banner__action { order: 2; display: inline-flex; min-height: 40px; align-items: center; padding: 6px 11px; border: 1px solid var(--glass-edge); background: var(--glass-sheen); font-size: .83rem; font-weight: 600; }
.nav .mega-panel .mega-all { display: inline-flex; min-height: 44px; align-items: center; margin-top: 6px; padding-inline: 12px; }
.nav .mega-all:hover { background: var(--glass-sheen); }

.featured-work__head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 24px; }
.featured-work__head .btn { flex-shrink: 0; }
.featured-work__grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 12px; }
.featured-case { display: grid; grid-template-columns: 42% minmax(0, 1fr); border: 1px solid var(--line-2); min-width: 0; background: color-mix(in srgb, var(--text) 3%, var(--bg)); }
.featured-case:first-child { grid-row: span 2; grid-template-columns: 1fr; }
.featured-case__media { overflow: hidden; background: #1a1718; min-width: 0; }
.featured-case__media img { width: 100%; height: 100%; min-height: 112px; object-fit: cover; object-position: top; display: block; transition: transform 280ms ease; }
.featured-case:first-child .featured-case__media img { aspect-ratio: 2.15; }
.featured-case:not(:first-child) .featured-case__media { display: grid; align-items: center; background: color-mix(in srgb, var(--text) 6%, var(--bg)); }
.featured-case:not(:first-child) .featured-case__media img { height: auto; min-height: 0; aspect-ratio: 16/10; }
.featured-case:hover img { transform: scale(1.035); }
.featured-case__copy { padding: clamp(13px, 2vw, 26px); align-content: center; }
.featured-case__copy > span { color: var(--muted); font-size: .86rem; }
.featured-case__copy h3 { color: var(--text); font-size: clamp(1.18rem, 2.35vw, 2.45rem); line-height: 1.08; letter-spacing: -.04em; margin: 5px 0 9px; }
.featured-case:first-child h3 { font-size: clamp(1.7rem, 3vw, 3.2rem); }
.featured-case__copy p { font-size: .94rem; color: var(--muted); margin: 0; }
.industry-examples { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 20px 0; }
.catalog-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 20px; }
.catalog-actions > a:not(.btn) { padding: 8px 0; text-decoration: none; }
.catalog-actions > a:not(.btn):hover { color: var(--red-ink); }
.catalog-report { border: 1px solid var(--line-2); padding: clamp(15px, 3vw, 30px); }
.catalog-report p { max-width: 70ch; }
.catalog-report dl { display: grid; gap: 1px; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--line-2); }
.catalog-report dl > div { background: var(--bg); padding: 15px; }
.catalog-report dt { font-size: .85rem; color: var(--muted); }
.catalog-report dd { font-weight: 700; font-size: clamp(1.04rem, 2.4vw, 1.8rem); margin: 4px 0 0; }
.product-hero .page__grid { align-items: center; }
.product-hero .page__actions { justify-self: start; text-align: left; }
.product-route { display: flex; gap: 10px 24px; flex-wrap: wrap; padding-top: 18px; padding-bottom: 25px; color: var(--muted); }
.product-route a { display: inline-flex; align-items: center; min-height: 36px; text-decoration: none; font-size: .91rem; }
.product-route a:hover, .product-service-link:hover { color: var(--red-ink); }
.product-service-link { display: inline-block; margin-top: 14px; color: var(--text); font-weight: 600; }
.product-map__streets, .product-map__halo { fill: none; stroke: var(--line-2); stroke-width: 1.5; }
.product-map__block { fill: color-mix(in srgb, var(--text) 5%, transparent); stroke: var(--line-2); }
.product-map__route { fill: none; stroke: var(--red-ink); stroke-width: 2; }
.product-map__node { fill: var(--red-ink); }
.product-map__halo { stroke: var(--red-ink); opacity: .42; }
.catalog-motion .vz.is-in .product-map__route { animation: product-route-in 1.2s var(--ease) both; }
@keyframes product-route-in { from { stroke-dasharray: 1; stroke-dashoffset: 1; } to { stroke-dasharray: 1; stroke-dashoffset: 0; } }
.product-section .section__head { max-width: 820px; }
#product-plan, #product-example, #product-metrics, #product-budget { scroll-margin-top: var(--header-h); }
.product-section .section__head p { margin-top: 14px; max-width: 62ch; }
.product-services .vcard { min-height: 140px; }
.product-illustrated { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); align-items: center; gap: clamp(28px,5vw,72px); }
.product-illustrated__art { display: grid; justify-items: center; margin: 0; min-width: 0; }
.product-illustrated__art .catalog-icon { width: min(100%,275px); height: auto; }
.product-example { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: clamp(25px,5vw,82px); align-items: center; }
.product-example__visual { display: grid; justify-items: center; margin: 0; min-width: 0; }
.product-example__visual .catalog-icon { width: min(100%,390px); height: auto; }
.product-example__visual figcaption { color: var(--muted); font-size: .9rem; text-align: center; }
.product-example__detail > .calc__lead { margin-bottom: 24px; }
.product-section .catalog-actions > a { text-decoration: none; }
.product-section .catalog-actions > a:hover { color: var(--red-ink); }
.calc__share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 13px; margin-top: 11px; }
.calc__share button { color: var(--text); min-height: 44px; border: 1px solid var(--line-2); padding-inline: 14px; }
.calc__share output { color: var(--muted); font-size: .85rem; }
.hero-mark__visual { isolation: isolate; }
.hero-mark__visual::before {
  content: ''; position: absolute; inset: 8%; z-index: -1; pointer-events: none;
  background: linear-gradient(120deg, transparent 32%, #dc253745 48%, #ff576c20 52%, transparent 67%) 130% 50% / 250% 100%;
  mask-image: radial-gradient(ellipse, #000 4%, transparent 70%); opacity: .72;
}
.catalog-motion .hero-mark__visual::before { animation: catalog-sweep 3.8s 400ms ease-out both; }
@keyframes catalog-sweep { from { background-position: 120% 50%; opacity: .1; } 60% { opacity: .85; } to { background-position: -10% 50%; opacity: .5; } }
.catalog-motion .featured-work.is-in-view .featured-case { animation: catalog-rise 420ms ease both; }
.catalog-motion .featured-work.is-in-view .featured-case:nth-child(2) { animation-delay: 75ms; }
.catalog-motion .featured-work.is-in-view .featured-case:nth-child(3) { animation-delay: 140ms; }
@keyframes catalog-rise { from { transform: translateY(11px); opacity: .72; } to { transform: translateY(0); opacity: 1; } }

@media (min-width: 981px) and (max-width: 1200px) {
  .header__row { gap: 13px; }
  .header .header__row:has(.nav[data-catalog-nav]) .nav { gap: 6px; margin-left: 0; }
  .mega-toggle { padding-inline: 4px; gap: 4px; }
  .header__tools { gap: 5px; }
}
@media (min-width: 981px) and (max-width: 1060px) {
  .header .header__row:has(.nav[data-catalog-nav]) { gap: 8px; padding-inline: 2.5vw; }
  .header .header__row:has(.nav[data-catalog-nav]) .header__logo svg { height: 14.5px; }
  .header .header__row:has(.nav[data-catalog-nav]) .nav { gap: 4px; }
  .header .header__row:has(.nav[data-catalog-nav]) .header__cta { padding-inline: 13px; }
}
@media (min-width: 1201px) {
  .header .header__row:has(.nav[data-catalog-nav]) .nav { gap: clamp(6px,.65vw,10px); }
  .nav[data-catalog-nav] .mega-toggle { padding-inline: 7px; }
}
@media (max-width: 760px) {
  .product-example, .product-illustrated { grid-template-columns: 1fr; }
  .product-example__visual .catalog-icon { width: min(78%,290px); }
  .product-illustrated__art .catalog-icon { width: min(65%,172px); }
}
@media (max-width: 980px) {
  body:has(.nav.is-open) .kva-dock { visibility: hidden; }
  .nav .mega-item { width: 100%; flex-direction: column; align-items: flex-start; }
  .nav .mega-toggle { width: 100%; justify-content: space-between; padding-inline: 11px; }
  .mega-panel { position: static; display: none; width: 100%; padding-top: 2px; margin: 0; transform: none; transition: none; }
  .mega-item.is-open > .mega-panel { display: block; }
  .mega-surface { max-height: none; overflow: visible; padding: 7px; box-shadow: none; }
  .mega-surface--products { display: block; }
  .mega-grid--products, .mega-grid--industries, .mega-grid--cases, .mega-grid--ai { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mega-product > .catalog-icon, .mega-product:has(.mega-options) > .catalog-icon { width: 65%; right: -7%; bottom: -5%; height: 61%; opacity: .65; }
  .mega-product > .catalog-icon { opacity: .82; }
  .mega-product:has(.mega-options[open]) > .catalog-icon { opacity: .24; }
  .nav .mega-links a, .nav .mega-title { min-height: 44px; }
  .mega-options > summary { display: list-item; min-height: 44px; align-content: center; color: var(--text); font-size: .83rem; cursor: pointer; }
  .mega-options[open] .mega-links { margin-top: 0; }
  .mega-product { padding: 11px; min-height: 175px; }
  .nav .mega-panel .mega-industry { min-height: 185px; }
  .mega-industry .catalog-icon { height: 54%; }
  .nav .mega-panel .mega-banner { display: grid; grid-template-columns: minmax(0,1fr) 84px; margin-top: 8px; gap: 8px; padding: 12px; }
  .mega-banner .catalog-icon { grid-column: 2; grid-row: 1 / span 2; width: 108px; }
  .mega-banner__action { width: fit-content; }
}
@media (max-width: 580px) {
  .mega-grid--cases, .mega-grid--ai, .featured-work__grid, .industry-examples, .product-example { grid-template-columns: 1fr; }
  .nav .mega-panel .mega-ai-link { grid-template: auto / minmax(0, 1fr) 70px; gap: 8px; align-items: center; }
  .mega-ai-link .catalog-icon { width: 74px; height: 68px; margin: 0; align-self: center; }
  .nav .mega-panel .mega-preview { grid-template-columns: clamp(112px, 34vw, 148px) minmax(0, 1fr); }
  .featured-work__head { align-items: start; flex-direction: column; }
  .featured-case:first-child { grid-row: auto; }
  .catalog-report dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mega-banner__action { font-size: .75rem; }
}
@media (max-width: 360px) {
  #calc .calc__grid { grid-template-columns: minmax(0, 1fr); }
  #calc :is(.range__top, .calc__rows div) { flex-wrap: wrap; gap: 4px 12px; }
  #inside .proj__top { flex-wrap: wrap; gap: 10px; }
  #inside .proj__links { justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .mega-panel, .mega-chevron, .mega-panel :is(.mega-product, .mega-industry, .mega-preview, .mega-banner, .mega-ai-link), .mega-panel :is(.mega-product, .mega-industry, .mega-preview, .mega-banner, .mega-ai-link)::before, .catalog-icon, .featured-case__media img { transition: none; }
  .product-services .vcard::before { transition: none; }
  .catalog-motion .hero-mark__visual::before, .catalog-motion .featured-work.is-in-view .featured-case { animation: none; }
  .catalog-motion .vz.is-in .product-map__route { animation: none; }
}
