/* ==========================================================================
   Optimo — consulting template design system
   Tokens derived from the reference site's published stylesheet:
   primary #1d1ee3 · ink #03030f · soft bg #f7f7f4 · surface #f3f3ff
   Inter Tight (sans) / Playfair Display (serif italic accent) / DM Sans
   Heading scale 72-84 / 52-62 / 32-40, radii 8-16
   ========================================================================== */

:root {
    --primary: #1d1ee3;
    --primary-dark: #1516b4;
    --primary-soft: #ececff;
    --ink: #03030f;
    --ink-80: rgba(3, 3, 15, 0.8);
    --ink-70: rgba(3, 3, 15, 0.7);
    --ink-55: rgba(3, 3, 15, 0.55);
    --ink-40: rgba(3, 3, 15, 0.4);
    --white: #ffffff;
    --bg-soft: #f7f7f4;
    --surface: #f3f3ff;
    --line: #e6e6ef;
    --line-strong: #cfd1da;
    --radius-s: 10px;
    --radius-m: 16px;
    --radius-l: 24px;
    --radius-xl: 32px;
    --container: 1240px;
    --gutter: 24px;
    --section-y: 100px;
    --font-sans: "Inter Tight", Arial, Helvetica, sans-serif;
    --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;
    --font-alt: "DM Sans", Arial, Helvetica, sans-serif;
    --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
    --shadow-s: 0 4px 18px rgba(3, 3, 15, 0.06);
    --shadow-m: 0 18px 50px rgba(3, 3, 15, 0.1);
    --shadow-l: 0 30px 80px rgba(3, 3, 15, 0.16);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--white);
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
    color: inherit;
}

h1, h2, h3, h4, h5 {
    margin: 0;
    font-weight: 500;
    letter-spacing: -0.025em;
    line-height: 1.12;
}

p {
    margin: 0;
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
    border-radius: 4px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -60px;
    z-index: 500;
    background: var(--ink);
    color: #fff;
    padding: 10px 18px;
    border-radius: 999px;
    transition: top 0.2s var(--ease);
}

.skip-link:focus {
    top: 16px;
}

/* ---------------------------------------------------------------- layout */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.section {
    padding: var(--section-y) 0;
}

.section--soft {
    background: var(--bg-soft);
}

.section--tight {
    padding: 70px 0;
}

.section--surface {
    background: var(--surface);
}

/* -------------------------------------------------------------- typography */
.display-1 {
    font-size: clamp(42px, 6.2vw, 76px);
    line-height: 1.02;
    letter-spacing: -0.035em;
}

.display-1 .accent {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
    letter-spacing: -0.01em;
}

.display-2 {
    font-size: clamp(30px, 4vw, 52px);
    line-height: 1.12;
    letter-spacing: -0.03em;
}

.display-2 .accent {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
    letter-spacing: -0.01em;
}

.display-3 {
    font-size: clamp(24px, 2.4vw, 32px);
    line-height: 1.25;
}

.lede {
    font-size: 17px;
    line-height: 1.7;
    color: var(--ink-70);
    max-width: 56ch;
}

.muted {
    color: var(--ink-70);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-alt);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 18px;
}

.eyebrow--light {
    color: rgba(255, 255, 255, 0.85);
}

.section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 54px;
}

.section-head__text {
    max-width: 720px;
}

/* ----------------------------------------------------------------- buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 8px 8px 8px 26px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: var(--white);
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 500;
    letter-spacing: -0.01em;
    cursor: pointer;
    transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), box-shadow 0.25s var(--ease);
    white-space: nowrap;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-s);
}

.btn__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    flex: 0 0 auto;
    transition: transform 0.35s var(--ease);
}

.btn__icon svg {
    width: 16px;
    height: 16px;
}

.btn:hover .btn__icon {
    transform: rotate(45deg);
}

.btn--primary {
    background: var(--primary);
    color: #fff;
}

.btn--primary .btn__icon {
    background: #fff;
    color: var(--primary);
}

.btn--dark {
    background: var(--ink);
    color: #fff;
}

.btn--dark .btn__icon {
    background: #fff;
    color: var(--ink);
}

.btn--outline {
    background: transparent;
    border-color: var(--line-strong);
    color: var(--ink);
    padding: 8px 8px 8px 26px;
}

.btn--outline .btn__icon {
    background: var(--ink);
    color: #fff;
}

.btn--ghost {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
}

.btn--ghost .btn__icon {
    background: #fff;
    color: var(--ink);
}

.btn--sm {
    font-size: 14px;
    padding: 6px 6px 6px 20px;
}

.btn--sm .btn__icon {
    width: 34px;
    height: 34px;
}

.btn--block {
    display: flex;
    width: 100%;
    justify-content: space-between;
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 500;
    color: var(--ink);
}

.link-arrow span.circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--line-strong);
    transition: background 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}

.link-arrow span.circle svg {
    width: 14px;
    height: 14px;
}

.link-arrow:hover span.circle {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    transform: rotate(45deg);
}

/* ------------------------------------------------------------------ header */
.header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 200;
    padding: 22px 32px;
    transition: padding 0.3s var(--ease);
}

.header__inner {
    position: relative;
    max-width: var(--container);
    margin: 0 auto;
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 8px 10px 8px 28px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    border-radius: 999px;
    box-shadow: 0 10px 40px rgba(3, 3, 15, 0.08);
    transition: box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}

.header.is-scrolled {
    padding-top: 12px;
}

.header.is-scrolled .header__inner {
    box-shadow: 0 14px 44px rgba(3, 3, 15, 0.14);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--primary);
    line-height: 1;
}

.brand__mark {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 13px;
    letter-spacing: 0;
}

.nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav__item {
    position: relative;
}

.nav__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 500;
    color: var(--ink);
    background: none;
    border: 0;
    cursor: pointer;
    transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.nav__link:hover,
.nav__item.is-current > .nav__link {
    color: var(--primary);
    background: var(--primary-soft);
}

.nav__link svg {
    width: 12px;
    height: 12px;
    transition: transform 0.25s var(--ease);
}

.nav__item.is-open > .nav__link svg {
    transform: rotate(180deg);
}

.nav__panel {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    min-width: 230px;
    padding: 10px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-m);
    box-shadow: var(--shadow-m);
    display: none;
    z-index: 10;
}

.nav__item.is-open .nav__panel {
    display: block;
}

.nav__panel a {
    display: block;
    padding: 9px 12px;
    border-radius: 10px;
    font-size: 14.5px;
    color: var(--ink-80);
    transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.nav__panel a:hover {
    background: var(--bg-soft);
    color: var(--primary);
}

.header__cta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header__cta .btn__label {
    font-size: 15px;
    font-weight: 500;
}

.header__cta .icon-btn {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    cursor: pointer;
    transition: transform 0.3s var(--ease), background 0.3s var(--ease);
}

.header__cta .icon-btn svg {
    width: 17px;
    height: 17px;
}

.header__cta .icon-btn:hover {
    transform: rotate(45deg);
    background: var(--primary-dark);
}

.menu-toggle {
    display: none;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid var(--line-strong);
    background: #fff;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.menu-toggle span {
    display: block;
    width: 18px;
    height: 1.5px;
    background: var(--ink);
    transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}

.mobile-nav {
    position: fixed;
    inset: 0;
    z-index: 190;
    background: #fff;
    padding: 108px 24px 40px;
    display: none;
    flex-direction: column;
    gap: 4px;
    overflow-y: auto;
}

.mobile-nav.is-open {
    display: flex;
}

.mobile-nav a {
    font-size: 22px;
    font-weight: 500;
    letter-spacing: -0.02em;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
}

.mobile-nav .mobile-nav__group-label {
    font-family: var(--font-alt);
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-40);
    padding: 22px 0 6px;
}

.mobile-nav .mobile-nav__foot {
    margin-top: 28px;
}

/* -------------------------------------------------------------------- hero */
.hero {
    position: relative;
    min-height: 100svh;
    margin: 0;
    display: flex;
    align-items: flex-end;
    padding: 170px 0 56px;
    color: #fff;
    overflow: hidden;
    isolation: isolate;
    background: #1b1b28;
}

.hero__media {
    position: absolute;
    inset: 0;
    z-index: -2;
    background-image: url("/_api/v2/AiSiteBuilder/ImagePlaceholder?keyword=business%20consulting%20team%20group%20portrait%20office&orientation=landscape&size=regular");
    background-size: cover;
    background-position: center 30%;
    transform: scale(1.02);
}

.hero__overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(3, 3, 15, 0.55) 0%, rgba(3, 3, 15, 0.28) 42%, rgba(3, 3, 15, 0.72) 100%);
}

.hero__inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
    width: 100%;
}

.hero__title {
    max-width: 15ch;
}

.hero__copy {
    margin-top: 26px;
    max-width: 560px;
    font-size: 17px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.88);
}

.hero__actions {
    margin-top: 34px;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.hero__card {
    position: absolute;
    right: 0;
    bottom: 0;
    width: min(360px, 100%);
    padding: 26px 26px 24px;
    border-radius: var(--radius-l);
    background: rgba(255, 255, 255, 0.96);
    color: var(--ink);
    box-shadow: var(--shadow-l);
    backdrop-filter: blur(10px);
}

.hero__card h2 {
    font-size: 24px;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.hero__card p {
    margin-top: 12px;
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--ink-70);
}

.hero__card .hero__card-foot {
    margin-top: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 13.5px;
    color: var(--ink-55);
}

.hero__scroll {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-alt);
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 42px;
}

.hero__scroll span.dot {
    width: 26px;
    height: 1px;
    background: rgba(255, 255, 255, 0.5);
}

/* -------------------------------------------------------------- page hero */
.page-hero {
    position: relative;
    padding: 168px 0 72px;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--line);
    overflow: hidden;
}

.page-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.9fr);
    gap: 48px;
    align-items: end;
}

.page-hero__title {
    max-width: 18ch;
}

.page-hero__desc {
    font-size: 16.5px;
    line-height: 1.7;
    color: var(--ink-70);
    max-width: 44ch;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-family: var(--font-alt);
    font-size: 12.5px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink-40);
    margin-bottom: 26px;
}

.breadcrumb a:hover {
    color: var(--primary);
}

.breadcrumb span.sep {
    opacity: 0.6;
}

/* -------------------------------------------------------------------- grid */
.grid {
    display: grid;
    gap: 24px;
}

.grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* ------------------------------------------------------------------ cards */
.card {
    position: relative;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-l);
    padding: 30px;
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-m);
    border-color: transparent;
}

.card--soft {
    background: var(--bg-soft);
    border-color: transparent;
}

.card__num {
    font-family: var(--font-alt);
    font-size: 13px;
    letter-spacing: 0.08em;
    color: var(--primary);
}

.card__title {
    font-size: 22px;
    line-height: 1.3;
    margin-top: 16px;
}

.card__text {
    margin-top: 12px;
    font-size: 15px;
    line-height: 1.65;
    color: var(--ink-70);
}

.card__list {
    margin-top: 20px;
    display: grid;
    gap: 10px;
}

.card__list li {
    display: flex;
    gap: 10px;
    font-size: 14.5px;
    color: var(--ink-80);
}

.card__list li svg {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    margin-top: 4px;
    color: var(--primary);
}

.card__foot {
    margin-top: 24px;
}

/* ------------------------------------------------------------- intro split */
.split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 60px;
    align-items: center;
}

.split--wide-left {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
}

.media-frame {
    position: relative;
    border-radius: var(--radius-l);
    overflow: hidden;
    background: var(--bg-soft);
    aspect-ratio: 4 / 3;
}

.media-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-frame--portrait {
    aspect-ratio: 3 / 4;
}

.media-frame--wide {
    aspect-ratio: 16 / 9;
}

.media-frame__badge {
    position: absolute;
    left: 20px;
    bottom: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 18px;
    border-radius: var(--radius-m);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(8px);
    font-size: 14px;
    color: var(--ink);
}

.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 26px;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--line);
    font-size: 14px;
    color: var(--ink-80);
}

.chip--solid {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
}

/* ------------------------------------------------------------------- stats */
.stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.stat {
    padding: 34px 26px;
    border-right: 1px solid var(--line);
}

.stat:last-child {
    border-right: 0;
}

.stat__value {
    font-size: clamp(34px, 3.6vw, 52px);
    line-height: 1;
    letter-spacing: -0.03em;
    font-weight: 500;
}

.stat__label {
    margin-top: 12px;
    font-size: 14.5px;
    line-height: 1.5;
    color: var(--ink-70);
    max-width: 22ch;
}

/* ------------------------------------------------------------------ steps */
.steps {
    display: grid;
    gap: 18px;
}

.step {
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr) minmax(0, 1fr);
    gap: 26px;
    align-items: start;
    padding: 28px 30px;
    border-radius: var(--radius-l);
    border: 1px solid var(--line);
    background: #fff;
    transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.step:hover {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
}

.step:hover .step__num,
.step:hover .step__text {
    color: rgba(255, 255, 255, 0.7);
}

.step__num {
    font-family: var(--font-alt);
    font-size: 34px;
    line-height: 1;
    letter-spacing: -0.02em;
    color: var(--primary);
    transition: color 0.3s var(--ease);
}

.step__title {
    font-size: 22px;
    line-height: 1.3;
}

.step__text {
    font-size: 15px;
    line-height: 1.65;
    color: var(--ink-70);
    transition: color 0.3s var(--ease);
}

/* ------------------------------------------------------------------- tabs */
.tabs {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 48px;
    align-items: start;
}

.tabs__list {
    display: grid;
    gap: 10px;
}

.tab {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    padding: 22px 24px;
    border-radius: var(--radius-m);
    border: 1px solid var(--line);
    background: #fff;
    text-align: left;
    cursor: pointer;
    font-size: 19px;
    font-weight: 500;
    letter-spacing: -0.015em;
    transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.tab[aria-selected="true"] {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.tab .tab__index {
    font-family: var(--font-alt);
    font-size: 12px;
    letter-spacing: 0.08em;
    opacity: 0.65;
}

.tab-panel {
    display: none;
}

.tab-panel.is-active {
    display: block;
    animation: fade-up 0.45s var(--ease) both;
}

.tab-panel h3 {
    font-size: clamp(24px, 2.4vw, 32px);
    line-height: 1.25;
}

.tab-panel p {
    margin-top: 16px;
    font-size: 16px;
    line-height: 1.7;
    color: var(--ink-70);
}

/* ------------------------------------------------------------------- cases */
.case-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
}

.case-card {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-l);
    overflow: hidden;
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.case-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-m);
}

.case-card__media {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--bg-soft);
}

.case-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease);
}

.case-card:hover .case-card__media img {
    transform: scale(1.05);
}

.case-card__body {
    padding: 24px 26px 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.case-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-family: var(--font-alt);
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink-40);
}

.case-card h3 {
    font-size: 22px;
    line-height: 1.3;
}

.case-card p {
    font-size: 14.8px;
    line-height: 1.6;
    color: var(--ink-70);
}

.case-card__foot {
    margin-top: auto;
    padding-top: 8px;
}

.metric-pill {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--surface);
    color: var(--primary);
    font-size: 14px;
    font-weight: 500;
}

/* ----------------------------------------------------------------- quotes */
.slider {
    position: relative;
}

.slider__track {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding-bottom: 6px;
    scrollbar-width: none;
}

.slider__track::-webkit-scrollbar {
    display: none;
}

.quote-card {
    flex: 0 0 clamp(280px, 32%, 400px);
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding: 32px;
    border-radius: var(--radius-l);
    background: #fff;
    border: 1px solid var(--line);
}

.quote-card__stars {
    display: flex;
    gap: 4px;
    color: var(--primary);
}

.quote-card__stars svg {
    width: 15px;
    height: 15px;
}

.quote-card blockquote {
    margin: 0;
    font-size: 17px;
    line-height: 1.65;
    letter-spacing: -0.01em;
}

.quote-card__person {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 8px;
    border-top: 1px solid var(--line);
}

.quote-card__person img {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--bg-soft);
}

.quote-card__person strong {
    display: block;
    font-size: 15px;
    font-weight: 600;
}

.quote-card__person span {
    font-size: 13.5px;
    color: var(--ink-55);
}

.slider__controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 28px;
}

.slider__controls button {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid var(--line-strong);
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.25s var(--ease), color 0.25s var(--ease), opacity 0.25s var(--ease);
}

.slider__controls button svg {
    width: 16px;
    height: 16px;
}

.slider__controls button:hover:not(:disabled) {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
}

.slider__controls button:disabled {
    opacity: 0.35;
    cursor: default;
}

/* --------------------------------------------------------------- CTA banner */
.cta-banner {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: var(--primary);
    color: #fff;
    padding: 68px 64px;
    isolation: isolate;
}

.cta-banner::after {
    content: "";
    position: absolute;
    right: -120px;
    top: -140px;
    width: 460px;
    height: 460px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.22);
    z-index: -1;
}

.cta-banner::before {
    content: "";
    position: absolute;
    right: -40px;
    bottom: -220px;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0));
    z-index: -1;
}

.cta-banner__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
    gap: 48px;
    align-items: end;
}

.cta-banner h2 {
    font-size: clamp(30px, 4vw, 52px);
    line-height: 1.1;
    letter-spacing: -0.03em;
    max-width: 18ch;
}

.cta-banner .lede {
    color: rgba(255, 255, 255, 0.82);
    margin-top: 22px;
    max-width: 40ch;
}

.cta-banner__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.cta-banner__note {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 16px;
}

/* -------------------------------------------------------------------- faq */
.faq {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 56px;
    align-items: start;
}

.faq__list {
    display: grid;
    gap: 12px;
}

.faq__item {
    border: 1px solid var(--line);
    border-radius: var(--radius-m);
    background: #fff;
    overflow: hidden;
    transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.faq__item.is-open {
    border-color: var(--primary);
    box-shadow: var(--shadow-s);
}

.faq__trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
    padding: 20px 22px;
    background: none;
    border: 0;
    cursor: pointer;
    text-align: left;
    font-size: 16.5px;
    font-weight: 500;
    letter-spacing: -0.01em;
}

.faq__sign {
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--bg-soft);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease);
}

.faq__sign svg {
    width: 13px;
    height: 13px;
}

.faq__item.is-open .faq__sign {
    background: var(--primary);
    color: #fff;
    transform: rotate(45deg);
}

.faq__panel {
    display: none;
    padding: 0 22px 22px;
    font-size: 15px;
    line-height: 1.7;
    color: var(--ink-70);
}

.faq__item.is-open .faq__panel {
    display: block;
    animation: fade-up 0.35s var(--ease) both;
}

/* ------------------------------------------------------------------- blog */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
}

.post-card {
    display: flex;
    flex-direction: column;
    border-radius: var(--radius-l);
    border: 1px solid var(--line);
    overflow: hidden;
    background: #fff;
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.post-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-m);
}

.post-card__media {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--bg-soft);
}

.post-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease);
}

.post-card:hover .post-card__media img {
    transform: scale(1.05);
}

.post-card__body {
    padding: 22px 24px 26px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.post-card__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    font-family: var(--font-alt);
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink-40);
}

.post-card h3 {
    font-size: 20px;
    line-height: 1.35;
}

.post-card p {
    font-size: 14.6px;
    line-height: 1.6;
    color: var(--ink-70);
}

.post-card__foot {
    margin-top: auto;
    padding-top: 10px;
}

.featured-post {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 0;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--bg-soft);
    border: 1px solid var(--line);
}

.featured-post__media {
    min-height: 380px;
    background: #ddd;
}

.featured-post__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-post__body {
    padding: 46px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 18px;
}

.featured-post__body h2 {
    font-size: clamp(26px, 2.6vw, 38px);
    line-height: 1.2;
}

/* --------------------------------------------------------------- articles */
.article {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 64px;
    align-items: start;
}

.article__body h2 {
    font-size: clamp(24px, 2.2vw, 30px);
    margin-top: 40px;
    margin-bottom: 14px;
}

.article__body h3 {
    font-size: 21px;
    margin-top: 30px;
    margin-bottom: 12px;
}

.prose {
    font-size: 17px;
    line-height: 1.75;
    color: var(--ink-80);
    white-space: pre-line;
}

.prose p + p {
    margin-top: 18px;
}

.article__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    margin-top: 24px;
    font-size: 14px;
    color: var(--ink-55);
}

.article__author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.article__author img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--bg-soft);
}

.aside-card {
    position: sticky;
    top: 120px;
    display: grid;
    gap: 20px;
}

.aside-card .card {
    padding: 26px;
}

.toc {
    display: grid;
    gap: 10px;
    font-size: 14.5px;
    color: var(--ink-70);
}

.toc a:hover {
    color: var(--primary);
}

/* --------------------------------------------------------------- pricing */
.pricing-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px;
    border-radius: 999px;
    background: var(--bg-soft);
    border: 1px solid var(--line);
}

.pricing-toggle button {
    padding: 10px 22px;
    border-radius: 999px;
    border: 0;
    background: transparent;
    cursor: pointer;
    font-size: 14.5px;
    font-weight: 500;
    color: var(--ink-70);
    transition: background 0.25s var(--ease), color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.pricing-toggle button[aria-pressed="true"] {
    background: #fff;
    color: var(--ink);
    box-shadow: var(--shadow-s);
}

.plan-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
    margin-top: 48px;
}

.plan {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 34px 32px 36px;
    border-radius: var(--radius-l);
    border: 1px solid var(--line);
    background: #fff;
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.plan:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-m);
}

.plan--featured {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
}

.plan--featured .plan__desc,
.plan--featured .plan__features li,
.plan--featured .plan__note {
    color: rgba(255, 255, 255, 0.72);
}

.plan__badge {
    align-self: flex-start;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    font-family: var(--font-alt);
    font-size: 11.5px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.plan h3 {
    font-size: 24px;
}

.plan__desc {
    font-size: 14.8px;
    line-height: 1.6;
    color: var(--ink-70);
}

.plan__price {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    font-size: 46px;
    line-height: 1;
    letter-spacing: -0.035em;
}

.plan__price span {
    font-size: 14px;
    letter-spacing: 0;
    color: var(--ink-55);
    padding-bottom: 6px;
}

.plan--featured .plan__price span {
    color: rgba(255, 255, 255, 0.6);
}

.plan__features {
    display: grid;
    gap: 12px;
    font-size: 14.6px;
    color: var(--ink-80);
}

.plan__features li {
    display: flex;
    gap: 10px;
}

.plan__features svg {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    margin-top: 4px;
    color: var(--primary);
}

.plan--featured .plan__features svg {
    color: #fff;
}

.plan__note {
    font-size: 12.5px;
    color: var(--ink-40);
}

.compare {
    margin-top: 64px;
    border: 1px solid var(--line);
    border-radius: var(--radius-l);
    overflow: hidden;
}

.compare table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14.6px;
}

.compare th,
.compare td {
    padding: 16px 22px;
    text-align: left;
    border-bottom: 1px solid var(--line);
}

.compare thead th {
    background: var(--bg-soft);
    font-family: var(--font-alt);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-55);
    font-weight: 500;
}

.compare tbody tr:last-child td {
    border-bottom: 0;
}

.compare td.yes {
    color: var(--primary);
    font-weight: 500;
}

/* ------------------------------------------------------------------- team */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.team-card {
    display: grid;
    gap: 14px;
}

.team-card__media {
    aspect-ratio: 4 / 5;
    border-radius: var(--radius-l);
    overflow: hidden;
    background: var(--bg-soft);
}

.team-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--ease);
}

.team-card:hover .team-card__media img {
    transform: scale(1.04);
}

.team-card h3 {
    font-size: 19px;
}

.team-card span {
    font-size: 14px;
    color: var(--ink-55);
}

/* ------------------------------------------------------------------ forms */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.field {
    display: grid;
    gap: 8px;
}

.field--full {
    grid-column: 1 / -1;
}

.field label {
    font-size: 13.5px;
    font-weight: 500;
    color: var(--ink-80);
}

.field label span.req {
    color: var(--primary);
}

.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 14px 16px;
    border-radius: var(--radius-s);
    border: 1px solid var(--line-strong);
    background: #fff;
    font-family: var(--font-sans);
    font-size: 15px;
    color: var(--ink);
    transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.field textarea {
    min-height: 132px;
    resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(29, 30, 227, 0.12);
}

.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
    border-color: #c62828;
}

.field__error {
    font-size: 12.5px;
    color: #c62828;
    min-height: 16px;
}

.form-note {
    font-size: 12.8px;
    line-height: 1.6;
    color: var(--ink-55);
    margin-top: 14px;
}

.form-status {
    display: none;
    gap: 10px;
    align-items: flex-start;
    padding: 14px 16px;
    border-radius: var(--radius-s);
    font-size: 14px;
    line-height: 1.6;
    margin-top: 16px;
}

.form-status.is-visible {
    display: flex;
}

.form-status--success {
    background: #eaf7ee;
    color: #14532d;
    border: 1px solid #bfe6cb;
}

.form-status--error {
    background: #fdecec;
    color: #8c1d1d;
    border: 1px solid #f2c6c6;
}

.btn.is-loading {
    pointer-events: none;
    opacity: 0.72;
}

.contact-aside {
    display: grid;
    gap: 18px;
}

.contact-line {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 15px;
}

.contact-line .contact-line__icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--surface);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.contact-line strong {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--ink-55);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.office-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.office-tab {
    padding: 9px 18px;
    border-radius: 999px;
    border: 1px solid var(--line-strong);
    background: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.office-tab[aria-selected="true"] {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
}

.hours-list {
    display: grid;
    gap: 0;
}

.hours-list div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    font-size: 15px;
}

.hours-list div:last-child {
    border-bottom: 0;
}

.hours-list span:last-child {
    color: var(--ink-55);
}

/* ---------------------------------------------------------------- filters */
.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 36px;
}

.filter-btn {
    padding: 10px 20px;
    border-radius: 999px;
    border: 1px solid var(--line-strong);
    background: #fff;
    font-size: 14.5px;
    cursor: pointer;
    transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.filter-btn[aria-pressed="true"] {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
}

.empty-state {
    display: none;
    padding: 60px 24px;
    text-align: center;
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius-l);
    color: var(--ink-55);
}

.empty-state.is-visible {
    display: block;
}

/* ----------------------------------------------------------------- footer */
.footer {
    background: var(--bg-soft);
    border-top: 1px solid var(--line);
    padding: 72px 0 0;
}

.footer__cta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
    gap: 40px;
    align-items: center;
    padding-bottom: 56px;
    border-bottom: 1px solid var(--line);
}

.footer__cta h2 {
    font-size: clamp(28px, 3.4vw, 44px);
    line-height: 1.14;
    letter-spacing: -0.03em;
    max-width: 20ch;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    padding: 8px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--line);
}

.newsletter-form input {
    flex: 1;
    min-width: 0;
    border: 0;
    background: transparent;
    padding: 10px 16px;
    font-family: var(--font-sans);
    font-size: 14.5px;
}

.newsletter-form input:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.newsletter-form button {
    border: 0;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    padding: 12px 22px;
    font-size: 14.5px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.25s var(--ease);
}

.newsletter-form button:hover {
    background: var(--primary-dark);
}

.newsletter-status {
    margin-top: 10px;
    font-size: 13px;
    color: var(--ink-55);
}

.footer__grid {
    display: grid;
    grid-template-columns: 1.3fr 0.8fr 0.8fr 0.9fr 1.1fr;
    gap: 36px;
    padding: 56px 0;
}

.footer__brand p {
    margin-top: 16px;
    font-size: 14.5px;
    line-height: 1.7;
    color: var(--ink-70);
    max-width: 32ch;
}

.footer h3 {
    font-family: var(--font-alt);
    font-size: 12.5px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-40);
    margin-bottom: 18px;
    font-weight: 500;
}

.footer__links {
    display: grid;
    gap: 11px;
    font-size: 14.5px;
    color: var(--ink-80);
}

.footer__links a:hover {
    color: var(--primary);
}

.footer__contact {
    display: grid;
    gap: 14px;
    font-size: 14.5px;
    color: var(--ink-80);
}

.footer__contact span {
    display: block;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-40);
    margin-bottom: 3px;
}

.social-row {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.social-row a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--line-strong);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.social-row a svg {
    width: 15px;
    height: 15px;
}

.social-row a:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.footer__bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 26px 0 34px;
    border-top: 1px solid var(--line);
    font-size: 13.5px;
    color: var(--ink-55);
}

.footer__bottom nav {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.demo-note {
    padding: 14px 0 26px;
    font-size: 12.5px;
    line-height: 1.6;
    color: var(--ink-40);
    max-width: 90ch;
}

/* ------------------------------------------------------------- not found */
.error-page {
    min-height: 78svh;
    display: grid;
    place-items: center;
    padding: 180px 0 100px;
    text-align: center;
    background: var(--bg-soft);
}

.error-page__code {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: clamp(96px, 18vw, 220px);
    line-height: 1;
    color: var(--primary);
    letter-spacing: -0.04em;
}

/* -------------------------------------------------------------- animation */
@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

.reveal[data-delay="1"] {
    transition-delay: 0.08s;
}

.reveal[data-delay="2"] {
    transition-delay: 0.16s;
}

.reveal[data-delay="3"] {
    transition-delay: 0.24s;
}

.reveal[data-delay="4"] {
    transition-delay: 0.32s;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .btn,
    .card,
    .case-card,
    .post-card,
    .tab-panel.is-active,
    .faq__item.is-open .faq__panel {
        animation: none;
        transition: none;
    }

    .slider__track {
        scroll-behavior: auto;
    }
}

/* --------------------------------------------------------------- responsive */
@media (max-width: 1180px) {
    .footer__grid {
        grid-template-columns: 1.2fr 0.8fr 0.8fr 1fr;
    }

    .footer__contact {
        grid-column: span 4;
    }
}

@media (max-width: 1080px) {
    .nav {
        display: none;
    }

    .menu-toggle {
        display: inline-flex;
    }

    .header {
        padding: 16px 20px;
    }

    .hero__card {
        position: static;
        width: 100%;
        margin-top: 8px;
    }

    .hero {
        padding-top: 148px;
    }

    .cta-banner {
        padding: 52px 40px;
    }

    .article {
        grid-template-columns: minmax(0, 1fr);
        gap: 40px;
    }

    .aside-card {
        position: static;
    }
}

@media (max-width: 991px) {
    :root {
        --section-y: 72px;
        --gutter: 20px;
    }

    .split,
    .tabs,
    .faq,
    .cta-banner__grid,
    .page-hero__grid,
    .featured-post,
    .footer__cta {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
    }

    .grid--4,
    .stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .stats .stat:nth-child(2) {
        border-right: 0;
    }

    .stats .stat:nth-child(1),
    .stats .stat:nth-child(2) {
        border-bottom: 1px solid var(--line);
    }

    .grid--3,
    .case-grid,
    .blog-grid,
    .plan-grid,
    .team-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .step {
        grid-template-columns: 60px minmax(0, 1fr);
        gap: 18px;
    }

    .step__text {
        grid-column: 2;
    }

    .footer__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 30px;
    }

    .footer__contact {
        grid-column: auto;
    }

    .hero__title {
        max-width: 20ch;
    }
}

@media (max-width: 767px) {
    :root {
        --section-y: 56px;
        --gutter: 16px;
    }

    body {
        font-size: 15.5px;
    }

    .header {
        padding: 12px 12px;
    }

    .header__inner {
        padding: 6px 6px 6px 18px;
        min-height: 58px;
    }

    .brand {
        font-size: 21px;
    }

    .brand__mark {
        width: 22px;
        height: 22px;
        border-radius: 6px;
        font-size: 11px;
    }

    .header__cta .btn__label {
        display: none;
    }

    .hero {
        min-height: auto;
        padding: 124px 0 40px;
    }

    .hero__title {
        max-width: 100%;
    }

    .hero__copy {
        font-size: 15.5px;
    }

    .hero__actions .btn {
        width: 100%;
        justify-content: space-between;
    }

    .page-hero {
        padding: 128px 0 48px;
    }

    .section-head {
        margin-bottom: 34px;
    }

    .grid--2,
    .grid--3,
    .grid--4,
    .stats,
    .case-grid,
    .blog-grid,
    .plan-grid,
    .team-grid,
    .form-grid,
    .footer__grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .stat {
        border-right: 0;
        border-bottom: 1px solid var(--line);
        padding: 24px 20px;
    }

    .stats .stat:last-child {
        border-bottom: 0;
    }

    .step {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
        padding: 22px;
    }

    .step__text {
        grid-column: 1;
    }

    .step__num {
        font-size: 26px;
    }

    .card,
    .quote-card {
        padding: 24px;
    }

    .cta-banner {
        padding: 40px 24px;
        border-radius: var(--radius-l);
    }

    .cta-banner__actions .btn {
        width: 100%;
        justify-content: space-between;
    }

    .footer {
        padding-top: 48px;
    }

    .footer__grid {
        padding: 40px 0;
    }

    .newsletter-form {
        flex-direction: column;
        border-radius: var(--radius-m);
    }

    .newsletter-form button {
        width: 100%;
        border-radius: var(--radius-s);
    }

    .quote-card {
        flex: 0 0 86%;
    }

    .featured-post__body {
        padding: 28px 24px;
    }

    .compare {
        overflow-x: auto;
    }

    .compare table {
        min-width: 560px;
    }

    .footer__bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .article__body {
        font-size: 16px;
    }

    .prose {
        font-size: 16px;
    }
}

/* ---------------------------------------------------------- error page */
.error-page {
    padding-block: clamp(60px, 9vw, 130px);
}

.error-page__inner {
    max-width: 760px;
    margin-inline: auto;
    text-align: center;
}

.error-page__code {
    font-size: clamp(96px, 20vw, 220px);
    line-height: 0.82;
    font-weight: 700;
    letter-spacing: -0.06em;
    color: transparent;
    -webkit-text-stroke: 1.5px var(--primary);
    margin: 6px 0 10px;
    opacity: 0.85;
}

/* ------------------------------------------------ inline table of contents */
.toc--inline {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    justify-content: center;
}

.toc--inline a {
    font-size: 14.5px;
    color: var(--ink-70);
}

/* --------------- error page / not-found: fixed-nav clearance, 404-to-title
   rhythm, and a secondary CTA that stays visible on the light background.
   Scoped to .error-page so global buttons keep their dark-hero styling. */
.section.error-page {
    padding-top: clamp(140px, 16vw, 180px);
    padding-bottom: clamp(60px, 9vw, 110px);
}

.error-page .error-page__code {
    line-height: 0.98;
    margin: 8px 0 26px;
}

.error-page .btn--ghost {
    color: var(--ink);
    border-color: var(--line-strong);
    background: var(--white);
}

.error-page .btn--ghost .btn__icon {
    background: var(--ink);
    color: var(--white);
}

.error-page .btn--ghost:hover {
    background: var(--ink);
    color: var(--white);
    border-color: var(--ink);
}

.error-page .btn--ghost:hover .btn__icon {
    background: var(--white);
    color: var(--ink);
}

@media (max-width: 767px) {
    .section.error-page {
        padding-top: 136px;
        padding-bottom: 72px;
    }

    .error-page .error-page__code {
        font-size: clamp(76px, 25vw, 104px);
        line-height: 1.04;
        letter-spacing: -0.03em;
        margin: 4px 0 22px;
    }

    .error-page .hero__actions {
        gap: 10px;
    }
}


/* select-inset-fix:20261116:v1 */
/* Single native selects only; keep site colours, borders, sizing and interaction. */
select:not([multiple]):is(:not([size]),[size="0"],[size="1"]){
 -webkit-appearance:none!important; -moz-appearance:none!important; appearance:none!important;
 padding-inline-end:44px!important;
 background-image:linear-gradient(45deg,transparent 50%,currentColor 50%),linear-gradient(135deg,currentColor 50%,transparent 50%)!important;
 background-position:right 22px center,right 16px center!important;
 background-size:6px 6px,6px 6px!important; background-repeat:no-repeat!important;
}
select:not([multiple]):is(:not([size]),[size="0"],[size="1"]):dir(rtl){background-position:left 16px center,left 22px center!important}
@media (forced-colors:active){select:not([multiple]):is(:not([size]),[size="0"],[size="1"]){-webkit-appearance:auto!important;-moz-appearance:auto!important;appearance:auto!important;background-image:none!important}}
