/* ==========================================================================
   AlgoWisdom V3 components
   Built on the Azurio template tokens (Manrope / JetBrains Mono, --accent,
   --t-*, --st-*, --base*). Light and dark themes come from those tokens.
   Visual language: hairline dividers, mono tags, generous type. No card soup.
   ========================================================================== */

:root {
  --aw-rule: var(--st-muted);
  --aw-rule-strong: var(--st-medium);
  --aw-gap: 2.4rem;
  --aw-radius: 1.2rem;
}

/* ---------- Generic layout helpers ---------- */
.aw-section { padding-top: 10rem; padding-bottom: 2rem; }
.aw-section--tight { padding-top: 6rem; }
.aw-lede {
  font: normal 500 2rem/1.5 var(--_font-default);
  color: var(--t-bright);
  max-width: 70ch;
  letter-spacing: -0.02rem;
}
.aw-lede span, .aw-muted { color: var(--t-medium); }
.aw-body { font: normal 400 1.7rem/1.65 var(--_font-default); color: var(--t-medium); max-width: 68ch; }
.aw-body strong { color: var(--t-bright); font-weight: 700; }
.aw-h3 { font: normal 700 2.4rem/1.2 var(--_font-default); letter-spacing: -0.04rem; color: var(--t-bright); margin: 0 0 1.2rem; }
.aw-h4 { font: normal 700 1.8rem/1.3 var(--_font-default); color: var(--t-bright); margin: 0 0 0.8rem; }
.aw-label {
  font: normal 600 1.2rem/1.4 var(--_font-accent);
  letter-spacing: 0.05rem;
  color: var(--t-medium);
  display: block;
  margin-bottom: 1.2rem;
}

/* ---------- Ruled list (hairline rows, pink dash) ---------- */
.aw-rules { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--aw-rule); }
.aw-rules > li {
  position: relative;
  padding: 1.4rem 0 1.4rem 2.6rem;
  border-bottom: 1px solid var(--aw-rule);
  font: normal 400 1.7rem/1.55 var(--_font-default);
  color: var(--t-bright);
}
.aw-rules > li::before {
  content: "";
  position: absolute; left: 0; top: 2.45rem;
  width: 1.2rem; height: 2px; background: var(--accent);
}
.aw-rules--compact > li { padding-top: 1rem; padding-bottom: 1rem; font-size: 1.6rem; }
.aw-rules--compact > li::before { top: 2rem; }

/* ---------- "Included in every project" manifest ---------- */
.aw-included { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--aw-rule); }
@media (min-width: 768px) { .aw-included { grid-template-columns: 1fr 1fr; column-gap: var(--aw-gap); } }
.aw-included__item { padding: 2.4rem 0; border-bottom: 1px solid var(--aw-rule); display: grid; grid-template-columns: 2.8rem 1fr; gap: 0 1.2rem; }
.aw-included__mark {
  width: 2rem; height: 2rem; margin-top: 0.3rem;
  border-radius: 50%; border: 2px solid var(--accent);
  position: relative;
}
.aw-included__mark::after {
  content: ""; position: absolute; left: 0.55rem; top: 0.25rem;
  width: 0.5rem; height: 0.9rem;
  border: solid var(--accent); border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.aw-included__title { font: normal 700 1.9rem/1.3 var(--_font-default); color: var(--t-bright); margin: 0 0 0.4rem; }
.aw-included__text { font: normal 400 1.6rem/1.55 var(--_font-default); color: var(--t-medium); margin: 0; }

/* ---------- Process steps (a real sequence, so numbered) ---------- */
.aw-steps { list-style: none; margin: 0; padding: 0; counter-reset: awstep; border-top: 1px solid var(--aw-rule); }
.aw-steps > li {
  counter-increment: awstep;
  display: grid; grid-template-columns: 5.6rem 1fr; gap: 0 1.6rem;
  padding: 2.6rem 0; border-bottom: 1px solid var(--aw-rule);
}
@media (min-width: 1200px) { .aw-steps > li { grid-template-columns: 8rem 1fr 22rem; align-items: baseline; } }
.aw-steps > li::before {
  content: counter(awstep, decimal-leading-zero);
  font: normal 600 1.4rem/1.6 var(--_font-accent); color: var(--accent);
}
.aw-steps__title { font: normal 700 2.2rem/1.25 var(--_font-default); color: var(--t-bright); margin: 0 0 0.6rem; letter-spacing: -0.03rem; }
.aw-steps__text { font: normal 400 1.6rem/1.6 var(--_font-default); color: var(--t-medium); margin: 0; max-width: 62ch; }
.aw-steps__time { grid-column: 2; margin-top: 1rem; }
@media (min-width: 1200px) { .aw-steps__time { grid-column: 3; margin-top: 0; text-align: right; } }
.aw-steps__time span { font: normal 600 1.2rem/1.4 var(--_font-accent); color: var(--t-medium); }

/* ---------- Service group heading on the services page ---------- */
.aw-group-head { padding: 9rem 0 3rem; border-bottom: 1px solid var(--aw-rule); margin-bottom: 0; }
.aw-group-head h2 { font: normal 600 clamp(3.2rem, 5vw, 6.4rem)/1.05 var(--_font-default); letter-spacing: -0.15rem; color: var(--t-bright); margin: 0 0 1.6rem; }
.aw-group-head p { font: normal 500 1.8rem/1.5 var(--_font-default); color: var(--t-medium); max-width: 60ch; margin: 0; }

/* ---------- Service row (services page list) ---------- */
.aw-svc { display: grid; grid-template-columns: 1fr; gap: 2.4rem; padding: 4rem 0; border-bottom: 1px solid var(--aw-rule); }
@media (min-width: 992px) { .aw-svc { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 4.8rem; } }
.aw-svc__media { display: block; border-radius: var(--aw-radius); overflow: hidden; background: #0f0f0f; aspect-ratio: 1200 / 980; }
.aw-svc__media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--_animspeed-slow) var(--_animbezier); }
.no-touch .aw-svc__media:hover img { transform: scale(1.03); }
.aw-svc__title { font: normal 600 clamp(2.8rem, 3.4vw, 4.4rem)/1.08 var(--_font-default); letter-spacing: -0.1rem; margin: 0 0 1.4rem; }
.aw-svc__title a { color: var(--t-bright); text-decoration: none; }
.aw-svc__title a:hover { color: var(--accent); }
.aw-svc__short { font: normal 500 1.9rem/1.5 var(--_font-default); color: var(--t-bright); margin: 0 0 2rem; max-width: 56ch; }
.aw-svc__facts { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--aw-rule); margin: 0 0 2.4rem; }
@media (min-width: 768px) { .aw-svc__facts { grid-template-columns: 1fr 1fr; column-gap: 2.4rem; } }
.aw-svc__fact { padding: 1.2rem 0; border-bottom: 1px solid var(--aw-rule); }
.aw-svc__fact dt { font: normal 600 1.2rem/1.4 var(--_font-accent); color: var(--t-medium); margin-bottom: 0.4rem; }
.aw-svc__fact dd { font: normal 600 1.6rem/1.45 var(--_font-default); color: var(--t-bright); margin: 0; }
.aw-svc__tags { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-bottom: 2.8rem; }
.aw-chip {
  display: inline-block; padding: 0.5rem 1.1rem; border-radius: 10rem;
  border: 1px solid var(--aw-rule-strong);
  font: normal 600 1.15rem/1.4 var(--_font-accent); text-transform: uppercase; letter-spacing: 0.04rem;
  color: var(--t-bright);
}
.aw-actions { display: flex; flex-wrap: wrap; gap: 1.2rem; align-items: center; }

/* ---------- Quote button (primary CTA everywhere) ---------- */
.aw-btn {
  display: inline-flex; align-items: center; gap: 1rem;
  padding: 1.3rem 2.4rem; border-radius: 10rem;
  font: normal 700 1.5rem/1 var(--_font-default);
  text-decoration: none; transition: background var(--_animspeed-medium), color var(--_animspeed-medium), border-color var(--_animspeed-medium);
  border: 1px solid transparent; cursor: pointer;
}
.aw-btn--accent { background: var(--accent); color: #fff; }
.aw-btn--accent:hover { background: var(--base-opp); color: var(--base); }
.aw-btn--ghost { border-color: var(--aw-rule-strong); color: var(--t-bright); background: transparent; }
.aw-btn--ghost:hover { border-color: var(--t-bright); }
.aw-btn:focus-visible, .aw-chip:focus-visible, .aw-tabs button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- Partner-rate box (B2B logged in only) ---------- */
.aw-partner-rates { border: 1px solid rgba(255, 30, 143, 0.45); border-radius: var(--aw-radius); padding: 1.6rem 2rem; margin: 0 0 2.4rem; background: rgba(255, 30, 143, 0.06); }
.aw-partner-rates__label { font: normal 600 1.2rem/1.4 var(--_font-accent); color: var(--accent); margin-bottom: 0.8rem; display: block; }
.aw-partner-rates table { width: 100%; border-collapse: collapse; }
.aw-partner-rates td { padding: 0.7rem 0; border-top: 1px solid rgba(255, 30, 143, 0.18); font: normal 500 1.5rem/1.4 var(--_font-default); color: var(--t-bright); vertical-align: top; }
.aw-partner-rates td:last-child { text-align: right; font-weight: 800; color: var(--accent); white-space: nowrap; padding-left: 1.6rem; }

/* ---------- Variants (Ready vs Custom etc.) ---------- */
.aw-variants { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--aw-rule); }
@media (min-width: 768px) { .aw-variants { grid-template-columns: repeat(auto-fit, minmax(26rem, 1fr)); column-gap: var(--aw-gap); } }
.aw-variant { padding: 2.4rem 0; border-bottom: 1px solid var(--aw-rule); }
.aw-variant h3 { font: normal 700 2rem/1.3 var(--_font-default); color: var(--t-bright); margin: 0 0 0.8rem; }
.aw-variant p { font: normal 400 1.6rem/1.6 var(--_font-default); color: var(--t-medium); margin: 0; }

/* ---------- Two-column content block ---------- */
.aw-split { display: grid; grid-template-columns: 1fr; gap: 4rem; }
@media (min-width: 1200px) { .aw-split { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 6rem; } }
.aw-split__aside h2 { font: normal 600 clamp(3rem, 4vw, 4.8rem)/1.08 var(--_font-default); letter-spacing: -0.1rem; color: var(--t-bright); margin: 0 0 1.6rem; }
.aw-split__aside p { font: normal 500 1.7rem/1.55 var(--_font-default); color: var(--t-medium); margin: 0; }
@media (min-width: 1200px) { .aw-split__aside { position: sticky; top: 12rem; align-self: start; } }

.aw-subsection + .aw-subsection { margin-top: 4.8rem; }

/* ---------- Plan comparison table ---------- */
.aw-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-top: 1px solid var(--aw-rule-strong); }
.aw-table { width: 100%; min-width: 64rem; border-collapse: collapse; }
.aw-table th, .aw-table td { padding: 1.4rem 1.2rem; border-bottom: 1px solid var(--aw-rule); text-align: left; vertical-align: top; }
.aw-table thead th { font: normal 600 1.3rem/1.4 var(--_font-accent); text-transform: uppercase; letter-spacing: 0.05rem; color: var(--t-bright); }
.aw-table tbody th { font: normal 500 1.55rem/1.45 var(--_font-default); color: var(--t-bright); width: 40%; }
.aw-table td { font: normal 600 1.5rem/1.45 var(--_font-default); color: var(--t-bright); }
.aw-table td.is-no { color: var(--t-muted); }
.aw-table td.is-yes { color: var(--accent); }
.aw-table .aw-table__group th { padding-top: 3rem; font: normal 700 1.9rem/1.3 var(--_font-default); color: var(--t-bright); border-bottom: 1px solid var(--aw-rule-strong); }
.aw-table tbody th small { display: block; color: var(--t-medium); font-weight: 400; font-size: 1.35rem; margin-top: 0.3rem; }

/* ---------- FAQ groups ---------- */
.aw-faq-group + .aw-faq-group { margin-top: 6rem; }
.aw-faq-group__title { font: normal 600 1.3rem/1.4 var(--_font-accent); text-transform: uppercase; letter-spacing: 0.05rem; color: var(--accent); margin: 0 0 1.6rem; }

/* ---------- Contact helpers ---------- */
.aw-hours { width: 100%; border-collapse: collapse; margin-top: 1.6rem; }
.aw-hours td { padding: 1rem 0; border-bottom: 1px solid var(--aw-rule); font: normal 500 1.5rem/1.4 var(--_font-default); color: var(--t-bright); }
.aw-hours td:last-child { text-align: right; color: var(--t-medium); }
.contact-form select {
  width: 100%; appearance: none; -webkit-appearance: none; background: transparent;
  border: none; border-bottom: 1px solid var(--st-medium); border-radius: 0;
  padding: 1.6rem 3rem 1.6rem 0; font: normal 400 1.8rem/1.4 var(--_font-default); color: var(--t-bright);
  background-image: linear-gradient(45deg, transparent 50%, var(--t-medium) 50%), linear-gradient(135deg, var(--t-medium) 50%, transparent 50%);
  background-position: calc(100% - 1.4rem) 50%, calc(100% - 0.8rem) 50%;
  background-size: 0.6rem 0.6rem; background-repeat: no-repeat;
}
.contact-form select option { color: #121212; }

/* ---------- Note / callout ---------- */
.aw-note { border-left: 2px solid var(--accent); padding: 0.4rem 0 0.4rem 1.8rem; font: normal 500 1.6rem/1.6 var(--_font-default); color: var(--t-medium); max-width: 70ch; }
.aw-note strong { color: var(--t-bright); }

/* ---------- Header quote button (keeps template header geometry) ---------- */
.mxd-header__controls .aw-header-quote { margin-right: 1.2rem; }
@media (max-width: 767px) { .mxd-header__controls .aw-header-quote { display: none; } }

/* ---------- Footer extras ---------- */
.aw-footer-hours { margin-top: 1.2rem; font: normal 500 1.4rem/1.6 var(--_font-default); color: var(--t-medium); }

@media (prefers-reduced-motion: reduce) {
  .aw-svc__media img { transition: none; }
}

/* ==========================================================================
   Works: project cards, filters, gallery, video, lightbox
   ========================================================================== */
.aw-filters { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.aw-filters button { background: transparent; cursor: pointer; }
.aw-filters button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }

.aw-works { display: grid; grid-template-columns: 1fr; gap: 6rem 3.2rem; }
@media (min-width: 992px) { .aw-works { grid-template-columns: 1fr 1fr; } }
.aw-work { display: flex; flex-direction: column; gap: 1.8rem; }
.aw-work[hidden] { display: none; }
.aw-work__media { position: relative; display: block; border-radius: var(--aw-radius); overflow: hidden; aspect-ratio: 16 / 10; background: #0d0d0f; }
.aw-work__media img, .aw-work__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.aw-work__media video { opacity: 0; transition: opacity var(--_animspeed-medium) ease; }
.aw-work__media.is-playing video { opacity: 1; }
.aw-work__badge { position: absolute; left: 1.6rem; top: 1.6rem; z-index: 2; padding: 0.5rem 1.1rem; border-radius: 10rem; background: rgba(13, 13, 15, 0.72); backdrop-filter: blur(8px); color: #fff; font: normal 600 1.15rem/1.4 var(--_font-accent); text-transform: uppercase; letter-spacing: 0.04rem; }
.aw-work__badge--algosync { background: #026AA7; }
.aw-work__play { position: absolute; right: 1.6rem; bottom: 1.6rem; z-index: 2; padding: 0.5rem 1.1rem; border-radius: 10rem; background: rgba(255, 255, 255, 0.92); color: #121212; font: normal 600 1.15rem/1.4 var(--_font-accent); text-transform: uppercase; }
.aw-work__media.is-playing .aw-work__play { opacity: 0; }
.aw-work__head { display: flex; justify-content: space-between; gap: 1.6rem; align-items: baseline; flex-wrap: wrap; }
.aw-work__title { font: normal 600 clamp(2.6rem, 3vw, 3.6rem)/1.1 var(--_font-default); letter-spacing: -0.08rem; margin: 0; }
.aw-work__title a { color: var(--t-bright); text-decoration: none; }
.aw-work__title a:hover { color: var(--accent); }
.aw-work__meta { font: normal 600 1.25rem/1.4 var(--_font-accent); color: var(--t-medium); text-transform: uppercase; letter-spacing: 0.04rem; }
.aw-work__sum { font: normal 400 1.7rem/1.55 var(--_font-default); color: var(--t-medium); margin: 0; max-width: 60ch; }
.aw-work__links { display: flex; gap: 1.2rem; flex-wrap: wrap; }

/* stats row */
.aw-stats { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--aw-rule); }
@media (min-width: 992px) { .aw-stats { grid-template-columns: repeat(4, 1fr); } }
.aw-stat { padding: 2.4rem 0; border-bottom: 1px solid var(--aw-rule); }
.aw-stat b { display: block; font: normal 600 clamp(3.6rem, 5vw, 6.4rem)/1 var(--_font-default); color: var(--t-bright); letter-spacing: -0.15rem; }
.aw-stat span { font: normal 500 1.5rem/1.4 var(--_font-default); color: var(--t-medium); }

/* project detail */
.aw-cover { border-radius: var(--aw-radius); overflow: hidden; background: #0d0d0f; }
.aw-cover img { width: 100%; height: auto; display: block; }
.aw-video { position: relative; border-radius: var(--aw-radius); overflow: hidden; background: #0d0d0f; aspect-ratio: 16 / 9; }
.aw-video video { width: 100%; height: 100%; object-fit: cover; display: block; }
.aw-gallery { display: grid; grid-template-columns: 1fr; gap: 2.4rem; }
@media (min-width: 768px) { .aw-gallery { grid-template-columns: 1fr 1fr; } }
.aw-gallery a { display: block; border-radius: var(--aw-radius); overflow: hidden; background: #0d0d0f; position: relative; }
.aw-gallery a.is-wide { grid-column: 1 / -1; }
.aw-gallery img { width: 100%; height: auto; display: block; transition: transform var(--_animspeed-slow) var(--_animbezier); }
.no-touch .aw-gallery a:hover img { transform: scale(1.02); }
.aw-gallery figcaption, .aw-caption { font: normal 500 1.4rem/1.5 var(--_font-default); color: var(--t-medium); margin-top: 1rem; }
.aw-fullpage { height: 72rem; overflow-y: auto; border-radius: var(--aw-radius); border: 1px solid var(--aw-rule); background: #fff; }
.aw-fullpage img { width: 100%; display: block; }
.aw-facts { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--aw-rule); }
.aw-facts div { padding: 1.4rem 0; border-bottom: 1px solid var(--aw-rule); }
.aw-facts dt { font: normal 600 1.2rem/1.4 var(--_font-accent); color: var(--t-medium); text-transform: uppercase; margin-bottom: 0.4rem; }
.aw-facts dd { font: normal 600 1.6rem/1.4 var(--_font-default); color: var(--t-bright); margin: 0; }

/* lightbox */
.aw-lb { position: fixed; inset: 0; z-index: 1000000; display: none; align-items: center; justify-content: center; background: rgba(8, 8, 10, 0.94); padding: 6rem 7rem; }
.aw-lb.is-open { display: flex; }
.aw-lb__fig { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.aw-lb__scroll { max-height: calc(100vh - 14rem); overflow: auto; }
.aw-lb img { max-width: min(160rem, 100%); max-height: calc(100vh - 14rem); border-radius: 1rem; display: block; }
.aw-lb.is-tall img { max-height: none; width: min(110rem, 90vw); }
.aw-lb figcaption { color: #cfd2d8; font: normal 500 1.5rem/1.5 var(--_font-default); margin-top: 1.4rem; text-align: center; }
.aw-lb__close, .aw-lb__nav { position: absolute; background: rgba(255, 255, 255, 0.1); color: #fff; border: 0; border-radius: 50%; width: 5rem; height: 5rem; font-size: 3rem; line-height: 1; cursor: pointer; }
.aw-lb__close { top: 2rem; right: 2rem; }
.aw-lb__prev { left: 1.6rem; top: 50%; transform: translateY(-50%); }
.aw-lb__next { right: 1.6rem; top: 50%; transform: translateY(-50%); }
.aw-lb button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (max-width: 767px) { .aw-lb { padding: 6rem 1.2rem; } .aw-lb__nav { display: none; } }

/* ==========================================================
   Public prices (services, service details, pricing)
   ========================================================== */
.aw-prices { margin: 0 0 2.4rem; }
.aw-prices__label { display: block; margin-bottom: 0.8rem; font: normal 600 1.2rem/1.4 var(--_font-accent); text-transform: uppercase; letter-spacing: 0.06rem; color: var(--accent); }
.aw-prices__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--aw-rule); }
.aw-prices__list li { display: flex; align-items: baseline; justify-content: space-between; gap: 1.6rem; padding: 1.1rem 0; border-bottom: 1px solid var(--aw-rule); }
.aw-prices__name { min-width: 0; font-size: 1.5rem; line-height: 1.4; color: var(--t-bright); }
.aw-prices__name small { display: block; margin-top: 0.2rem; font-size: 1.25rem; color: var(--t-medium); }
.aw-prices__val { flex: none; max-width: 55%; text-align: right; font: normal 600 1.4rem/1.4 var(--_font-accent); color: var(--t-bright); white-space: normal; }
.aw-prices__more { display: inline-block; margin-top: 1rem; font-size: 1.3rem; color: var(--accent); text-decoration: underline; text-underline-offset: 0.3rem; }
.aw-prices__foot { margin-top: 1.2rem; font-size: 1.25rem; color: var(--t-medium); }
.aw-prices__list--cols { columns: 2 30rem; column-gap: 3.2rem; border-top: 0; }
.aw-prices__list--cols li { break-inside: avoid; }
.aw-pricelist { border-top: 1px solid var(--aw-rule); }
.aw-pricelist__group { border-bottom: 1px solid var(--aw-rule); }
.aw-pricelist__group summary { display: flex; align-items: center; justify-content: space-between; gap: 1.6rem; padding: 2rem 0; cursor: pointer; list-style: none; font-size: 1.9rem; font-weight: 500; color: var(--t-bright); }
.aw-pricelist__group summary::-webkit-details-marker { display: none; }
.aw-pricelist__group summary small { font: normal 500 1.2rem/1 var(--_font-accent); color: var(--t-medium); text-transform: uppercase; }
.aw-pricelist__group summary::after { content: "+"; font-size: 2.2rem; line-height: 1; color: var(--accent); }
.aw-pricelist__group[open] summary::after { content: "−"; }
.aw-pricelist__group .aw-prices__list { margin-bottom: 2rem; }
.aw-pricelist__group summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ==========================================================
   Phones: layout fixes
   ========================================================== */
@media only screen and (max-width: 767px) {
  /* home "Live projects": name, tags and button stack instead of overflowing */
  .mxd-projects-grid .mxd-project-item__caption { flex-wrap: wrap; gap: 0.8rem 1.6rem; }
  .mxd-projects-grid .mxd-project-item__name { flex: 1 1 100%; }
  .mxd-projects-grid .mxd-project-item__tags { flex: 1 1 auto; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 0.4rem 1.2rem; }
  .mxd-projects-grid .mxd-project-item__action { margin-top: 0 !important; flex: none; }
  /* the hover slideshow layers are desktop-only */
  .mxd-projects-grid .mxd-img-anim__absolute { display: none; }

  /* hero: video card above the headline, headline readable in both themes */
  .mxd-hero-03 { justify-content: center; padding: 10rem 0 6rem; }
  .mxd-hero-03__headline .mxd-hero-media__small { position: relative; inset: auto; transform: none; order: -1; width: 62%; max-width: 230px; margin: 0 auto 2.8rem; }
  .mxd-hero-03__headline a { mix-blend-mode: normal; }
  .mxd-hero-03__headline h1, .mxd-hero-03__headline h1.permanent { color: var(--t-bright) !important; }

  /* partner banner: less empty space */
  .b2b-banner-section .mxd-divider { min-height: 0 !important; padding: 6rem 0 !important; }

  .aw-prices__list li { gap: 1.2rem; }
  .aw-prices__val { max-width: 50%; font-size: 1.3rem; }
  .aw-pricelist__group summary { font-size: 1.7rem; }
}

/* partner banner button: readable on light and dark backgrounds */
.b2b-banner-section .btn-line-permanent { color: var(--t-bright) !important; border-color: var(--t-bright) !important; }
.b2b-banner-section .btn-line-permanent .btn-caption { color: inherit !important; }

/* ==========================================================
   Lighter rendering on phones and slow devices
   html.aw-lite is set in <head> for low-memory / low-core
   devices, Save-Data and reduced-motion users.
   ========================================================== */
@media only screen and (max-width: 767px) {
  .aw-hero-bg__glow { filter: none !important; will-change: auto; } /* the radial gradients are already soft */
  .aw-work__badge { backdrop-filter: none; background: rgba(13, 13, 15, 0.85); }
}
html.aw-lite .aw-hero-bg__glow,
html.aw-lite .aw-hero-bg__grid { animation: none !important; filter: none !important; will-change: auto; }
html.aw-lite .blur-container { display: none !important; }
html.aw-lite .aw-work__badge { backdrop-filter: none; background: rgba(13, 13, 15, 0.85); }

/* phones: the template's grid-l container has no side padding (its columns add it),
   so our own blocks need the same gutter */
@media only screen and (max-width: 767px) {
  .grid-l-container > .mxd-block > .aw-split,
  .grid-l-container > .mxd-block > .aw-group-head,
  .grid-l-container > .mxd-block > .aw-svc,
  .grid-l-container .aw-svcs,
  .grid-l-container > .mxd-block > .aw-gutter,
  .grid-l-container > .mxd-block > .aw-stats,
  .grid-l-container > .mxd-block > .aw-filters,
  .grid-l-container > .mxd-block > .aw-works,
  .grid-l-container > .mxd-block > .mxd-stats-lines { padding-left: 2.4rem; padding-right: 2.4rem; }
  /* compare tables: 1–2 plan columns fit the screen; wider ones scroll inside their box */
  .aw-table { min-width: 52rem; }
  .aw-table--fit { min-width: 0; }
  .aw-table th, .aw-table td { padding: 1.2rem 0.8rem; }
  .aw-table tbody th { width: 36%; font-size: 1.4rem; }
  .aw-table td { font-size: 1.4rem; }
}
/* grid children may shrink below their content (wide tables scroll inside instead of widening the page) */
.aw-split > * { min-width: 0; }
@media (hover: none) { .aw-work__play { display: none; } }

/* ==========================================================
   Inner pages: clear the fixed header (the template puts this
   offset on main.inner-page-content; our shared layout doesn't use it)
   ========================================================== */
.mxd-page-content:not(.inner-page-content) .inner-headline { padding-top: 9.3rem; }
@media only screen and (min-width: 768px) {
  .mxd-page-content:not(.inner-page-content) .inner-headline { padding-top: 10rem; }
}

/* Inner page headline, subtitle and intro: calmer sizes on phones and tablets */
@media only screen and (max-width: 767px) {
  .inner-headline__content.has-medium-title { padding-top: 5.6rem; }
  .inner-headline h1.medium { font-size: 4.2rem; line-height: 1.1; letter-spacing: 0.02em !important; }
  .inner-headline__subtitle p, .inner-headline__subtitle a { font-size: 2rem; line-height: 1.3; letter-spacing: -0.02rem; }
  .inner-headline__caption p, .inner-headline__caption p.t-large { font-size: 1.6rem; line-height: 1.55; }
}
@media only screen and (min-width: 768px) and (max-width: 1199px) {
  .inner-headline h1.medium { font-size: 6.4rem; }
  .inner-headline__subtitle p, .inner-headline__subtitle a { font-size: 2.6rem; }
  .inner-headline__caption p, .inner-headline__caption p.t-large { font-size: 1.8rem; }
}
@media only screen and (min-width: 1200px) {
  /* long first words ("Everything") must fit the half-width title column */
  .inner-headline h1.medium { font-size: min(12rem, 6.2vw); }
}
