/**
 * Homepage ref-01 — premium light agency (#FAFAF8 · #FF5A00)
 * Scope: body.kharag-ref01 + .front-page--ref01
 */

.kharag-ref01 {
    --ref01-bg: #fafaf8;
    --ref01-surface: #ffffff;
    --ref01-surface-elevated: #f0f0ec;
    --ref01-surface-glass: rgb(255 255 255 / 0.78);
    --ref01-ink: #141414;
    --ref01-ink-muted: #5c5c58;
    --ref01-ink-dim: #787874;
    --ref01-accent: #ff5a00;
    --ref01-accent-readable: #e04e00;
    --ref01-accent-deep: #d94a00;
    --ref01-accent-glow: rgb(255 90 0 / 0.22);
    --ref01-on-accent: #ffffff;
    --ref01-hover-bg: rgb(20 20 20 / 0.04);
    --ref01-grid-line: rgb(20 20 20 / 0.04);
    --ref01-bar-muted: rgb(20 20 20 / 0.12);
    --ref01-dot-inactive: rgb(20 20 20 / 0.2);
    --ref01-partner-fade: rgb(20 20 20 / 0.35);
    --ref01-shadow-card: 0 12px 40px rgb(20 20 20 / 0.06);
    --ref01-shadow-panel: 0 16px 48px rgb(20 20 20 / 0.08);
    --ref01-cookie-reserve: 168px;
    --ref01-cookie-reserve-mobile: 220px;
    --ref01-case-card-w: clamp(260px, 78vw, 340px);
    --ref01-border: rgb(20 20 20 / 0.08);
    --ref01-border-card: rgb(20 20 20 / 0.1);
    color-scheme: light;
    --ref01-radius-sm: 12px;
    --ref01-radius-md: 20px;
    --ref01-radius-lg: 24px;
    --ref01-radius-xl: 32px;
    --ref01-radius-pill: 9999px;
    --ref01-font-display: "Onest", system-ui, sans-serif;
    --ref01-font-lead: "Nunito", system-ui, sans-serif;
    --ref01-font-mono: "JetBrains Mono", monospace;
    --ref01-space-4: 4px;
    --ref01-space-8: 8px;
    --ref01-space-12: 12px;
    --ref01-space-16: 16px;
    --ref01-space-20: 20px;
    --ref01-space-24: 24px;
    --ref01-space-32: 32px;
    --ref01-space-48: 48px;
    --ref01-space-64: 64px;
    --ref01-space-96: 96px;
    --ref01-container: 1280px;
    --ref01-header-h: 72px;
    --ref01-ease: cubic-bezier(0.16, 1, 0.3, 1);
    --ref01-section-pad: clamp(40px, 5.5vw, 72px);
    --ref01-hero-visual-max: clamp(200px, 52vw, 320px);
    --ref01-hero-figure-max: clamp(160px, 48vw, 280px);
    --ref01-bento-media-max: clamp(140px, 28vw, 180px);
    background: var(--ref01-bg);
    color: var(--ref01-ink);
}

.kharag-ref01 #page {
    background: var(--ref01-bg);
    overflow-x: clip;
}

html:has(body.kharag-ref01) {
    overflow-x: clip;
}

.kharag-ref01 .site-main.front-page--ref01 {
    padding-top: 0;
    background: var(--ref01-bg);
    overflow-x: clip;
}

/* ── Layout ── */
.ref01-container {
    width: min(var(--ref01-container), calc(100% - var(--ref01-space-32)));
    margin-inline: auto;
}

.ref01-section {
    position: relative;
    padding-block: var(--ref01-section-pad);
    scroll-margin-top: calc(var(--ref01-header-h) + var(--ref01-space-16));
}

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

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

/* ── Section tone map for dividers ── */
.ref01-section-divider {
    --ref01-divider-from: var(--ref01-bg);
    --ref01-divider-to: var(--ref01-surface);
    position: relative;
    z-index: 2;
    height: clamp(28px, 4vw, 48px);
    margin-block: -1px;
    line-height: 0;
    overflow: hidden;
    pointer-events: none;
}

.ref01-section-divider--from-bg {
    --ref01-divider-from: var(--ref01-bg);
}

.ref01-section-divider--from-surface {
    --ref01-divider-from: var(--ref01-surface);
}

.ref01-section-divider--from-elevated {
    --ref01-divider-from: var(--ref01-surface-elevated);
}

.ref01-section-divider--to-bg {
    --ref01-divider-to: var(--ref01-bg);
}

.ref01-section-divider--to-surface {
    --ref01-divider-to: var(--ref01-surface);
}

.ref01-section-divider--to-elevated {
    --ref01-divider-to: var(--ref01-surface-elevated);
}

.ref01-section-divider__svg {
    display: block;
    width: 100%;
    height: 100%;
}

.ref01-section-divider__wave {
    fill: var(--ref01-divider-to);
}

.ref01-section-divider::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--ref01-divider-from);
    z-index: -1;
}

.ref01-section-divider--glow .ref01-section-divider__glow {
    opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
    .ref01-section-divider--glow .ref01-section-divider__glow {
        opacity: 0.6;
    }
}

.ref01-section-header {
    max-width: 42rem;
    margin-bottom: var(--ref01-space-32);
}

.ref01-kicker {
    margin: 0 0 var(--ref01-space-12);
    font-family: var(--ref01-font-display);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--ref01-ink-muted);
    letter-spacing: 0.01em;
}

.ref01-section-title {
    margin: 0 0 var(--ref01-space-16);
    font-family: var(--ref01-font-display);
    font-size: clamp(1.875rem, 3vw, 2.25rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: var(--ref01-ink);
}

.ref01-section-subtitle {
    margin: 0;
    max-width: 65ch;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--ref01-ink-muted);
}

.ref01-section-cta {
    margin-top: var(--ref01-space-32);
    display: flex;
    justify-content: flex-start;
}

.ref01-text-link {
    color: var(--ref01-accent);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 150ms var(--ref01-ease);
}

.ref01-text-link:hover {
    opacity: 0.85;
}

/* ── Header pill-nav ── */
.kharag-ref01 #masthead.site-header--pill {
    position: fixed;
    inset: 0 0 auto;
    z-index: 100;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    max-width: none !important;
    padding: var(--ref01-space-12) var(--ref01-space-16);
}

.kharag-ref01 .site-header--pill .site-header__pill {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: var(--ref01-space-16);
    width: min(1248px, 100%);
    margin-inline: auto;
    padding: var(--ref01-space-12) var(--ref01-space-24);
    border-radius: var(--ref01-radius-pill);
    border: 1px solid var(--ref01-border);
    background: var(--ref01-surface-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.kharag-ref01 .site-header--pill .site-title a {
    font-family: var(--ref01-font-display);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--ref01-ink);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.kharag-ref01 .site-header--pill .logo-accent,
.site-header--pill .ref01-site-brand__word .logo-accent {
    color: var(--ref01-accent-readable);
    font-weight: 800;
}

.kharag-ref01 .ref01-pill-nav-wrap {
    display: none;
}

.kharag-ref01 .ref01-pill-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--ref01-space-4);
    list-style: none;
    margin: 0;
    padding: 0;
}

.kharag-ref01 .ref01-pill-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: var(--ref01-space-8) var(--ref01-space-16);
    border-radius: var(--ref01-radius-pill);
    font-family: var(--ref01-font-display);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--ref01-ink-muted);
    text-decoration: none;
    transition: color 200ms var(--ref01-ease), background 200ms var(--ref01-ease);
}

.kharag-ref01 .ref01-pill-nav a:hover,
.kharag-ref01 .ref01-pill-nav a:focus-visible {
    color: var(--ref01-accent);
    background: var(--ref01-hover-bg);
}

.kharag-ref01 .site-header-end {
    display: flex;
    align-items: center;
    gap: var(--ref01-space-8);
    justify-self: end;
}

.kharag-ref01 .ref01-header-cta .ref01-pill-cta {
    font-size: 0.8125rem;
    height: 44px;
    min-height: 44px;
    max-height: 44px;
    padding-left: var(--ref01-space-16);
}

.kharag-ref01 .ref01-header-cta .ref01-pill-cta__arrow {
    width: 32px;
    height: 32px;
}

.kharag-ref01 .site-header--pill .site-header__pill {
    box-shadow: var(--ref01-shadow-card);
}

.site-header--pill .header-quick-link,
.site-header--pill .header-socials,
.site-header--pill .theme-switcher,
.site-header--pill .menu-toggle.section-rail-toggle,
.site-header--pill .section-rail-chrome,
.kharag-ref01 .site-header--pill .header-quick-link,
.kharag-ref01 .site-header--pill .header-socials,
.kharag-ref01 .site-header--pill .theme-switcher,
.kharag-ref01 .site-header--pill .menu-toggle.section-rail-toggle,
.kharag-ref01 .section-rail-chrome {
    display: none !important;
}

.kharag-ref01 .header-mobile-menu {
    display: none !important;
}

.kharag-ref01 .ref01-header-cta {
    display: none;
}

.kharag-ref01 .ref01-header-burger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    border: 1px solid var(--ref01-border);
    border-radius: var(--ref01-radius-pill);
    background: transparent;
    color: var(--ref01-ink);
    cursor: pointer;
}

.kharag-ref01 .ref01-mobile-drawer {
    display: none;
    position: fixed;
    inset: calc(var(--ref01-header-h) + var(--ref01-space-8)) var(--ref01-space-16) auto;
    z-index: 99;
    padding: var(--ref01-space-16);
    border-radius: var(--ref01-radius-lg);
    border: 1px solid var(--ref01-border);
    background: var(--ref01-surface-elevated);
}

.kharag-ref01 .ref01-mobile-drawer.is-open {
    display: block;
}

.kharag-ref01 .ref01-mobile-drawer a {
    display: block;
    padding: var(--ref01-space-12) var(--ref01-space-16);
    color: var(--ref01-ink);
    text-decoration: none;
    border-radius: var(--ref01-radius-sm);
}

.kharag-ref01 .ref01-mobile-drawer a:hover {
    background: var(--ref01-hover-bg);
}

/* ── Pill CTA ── */
.ref01-pill-cta {
    display: inline-flex;
    align-items: center;
    gap: var(--ref01-space-12);
    box-sizing: border-box;
    height: 44px;
    min-height: 44px;
    max-height: 44px;
    padding-block: 6px;
    padding-inline: 6px 6px;
    padding-left: var(--ref01-space-20);
    border-radius: var(--ref01-radius-pill);
    font-family: var(--ref01-font-display);
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform 200ms var(--ref01-ease), box-shadow 200ms var(--ref01-ease);
}

.ref01-pill-cta--primary,
.ref01-pill-cta:not(.ref01-pill-cta--secondary):not(.ref01-pill-cta--ghost) {
    background: linear-gradient(90deg, var(--ref01-accent), var(--ref01-accent-deep));
    color: var(--ref01-on-accent);
    box-shadow: 0 0 40px var(--ref01-accent-glow);
}

.ref01-pill-cta--secondary {
    background: var(--ref01-ink);
    color: var(--ref01-on-accent);
    padding-inline: var(--ref01-space-20);
    height: 44px;
    min-height: 44px;
    max-height: 44px;
}

.ref01-pill-cta--ghost {
    background: transparent;
    color: var(--ref01-accent);
    padding-inline: 0;
    height: auto;
    min-height: 44px;
    max-height: none;
    box-shadow: none;
}

.ref01-pill-cta__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--ref01-on-accent);
    color: var(--ref01-ink);
    flex-shrink: 0;
}

.ref01-pill-cta--secondary .ref01-pill-cta__arrow {
    background: var(--ref01-surface);
    color: var(--ref01-ink);
}

.ref01-pill-cta--ghost .ref01-pill-cta__arrow {
    display: none;
}

@media (hover: hover) {
    .ref01-pill-cta--primary:hover,
    .ref01-pill-cta:not(.ref01-pill-cta--secondary):not(.ref01-pill-cta--ghost):hover {
        transform: translateY(-1px);
        box-shadow: 0 0 80px var(--ref01-accent-glow);
    }
}

.ref01-pill-cta:focus-visible {
    outline: 2px solid var(--ref01-accent);
    outline-offset: 3px;
}

@media (min-width: 1024px) {
    .kharag-ref01 .ref01-pill-nav-wrap {
        display: block;
    }

    .kharag-ref01 .ref01-header-cta {
        display: block;
    }

    .kharag-ref01 .ref01-header-burger {
        display: none;
    }
}

/* ── Hero ── */
.ref01-hero {
    padding-top: calc(var(--ref01-header-h) + var(--ref01-space-32));
    padding-bottom: var(--ref01-space-64);
    overflow: visible;
    z-index: 1;
}

.ref01-services {
    position: relative;
    z-index: 2;
    margin-top: calc(-1 * var(--ref01-space-48));
    padding-top: calc(var(--ref01-section-pad) + var(--ref01-space-24));
}

.ref01-hero__grid-lines {
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(
        90deg,
        var(--ref01-grid-line) 0,
        var(--ref01-grid-line) 1px,
        transparent 1px,
        transparent calc(100% / 12)
    );
    pointer-events: none;
    opacity: 0.85;
}

.ref01-hero__layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--ref01-space-32);
    align-items: center;
}

.ref01-hero__layout > * {
    min-width: 0;
}

.ref01-hero__copy {
    grid-column: 1;
    grid-row: 1;
}

.ref01-hero__title {
    margin: 0 0 var(--ref01-space-16);
    font-family: var(--ref01-font-display);
    font-size: clamp(2.5rem, 5.5vw, 4.5rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.ref01-hero__title-line {
    display: block;
}

.ref01-hero__title-nowrap {
    white-space: nowrap;
}

.ref01-hero__title em {
    font-family: var(--ref01-font-lead);
    font-style: normal;
    font-weight: 700;
    color: var(--ref01-accent);
}

.ref01-hero__tagline {
    margin: 0 0 var(--ref01-space-16);
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    font-weight: 600;
    color: var(--ref01-ink);
}

.ref01-hero__lead,
.ref01-hero__note {
    margin: 0 0 var(--ref01-space-12);
    max-width: 65ch;
    font-size: 0.9375rem;
    line-height: 1.55;
    color: var(--ref01-ink-muted);
}

.ref01-hero__note {
    margin-bottom: 0;
}

.ref01-hero__cta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--ref01-space-12);
    margin-top: var(--ref01-space-24);
}

.ref01-hero__visual {
    grid-column: 2;
    grid-row: 1;
    position: relative;
    min-height: 420px;
    overflow: visible;
}

.ref01-hero__stage {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    min-height: 420px;
}

.ref01-hero__glow {
    position: absolute;
    z-index: 0;
    inset: 12% 20% 0 5%;
    background: radial-gradient(ellipse at center, var(--ref01-accent-glow) 0%, transparent 70%);
    filter: blur(40px);
    pointer-events: none;
    animation: ref01-glow-pulse 4s ease-in-out infinite;
}

@keyframes ref01-glow-pulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

.ref01-hero__figure {
    position: relative;
    z-index: 2;
    max-width: min(100%, 480px);
    height: auto;
    margin-top: auto;
    object-fit: contain;
    object-position: bottom center;
    transform: translateY(8%);
    filter: drop-shadow(0 16px 40px rgba(232, 89, 12, 0.14))
        drop-shadow(0 6px 16px rgba(10, 9, 8, 0.08));
}

.ref01-hero__stats {
    position: absolute;
    z-index: 4;
    right: 0;
    bottom: 12%;
    display: grid;
    gap: var(--ref01-space-16);
    width: min(220px, 45%);
}

html.has-ref01-cookie-banner .ref01-process {
    padding-bottom: calc(var(--ref01-section-pad) + var(--ref01-cookie-reserve));
}

html.has-ref01-cookie-banner .ref01-contact {
    padding-bottom: calc(var(--ref01-section-pad) + var(--ref01-space-48));
}

html.has-ref01-cookie-banner .ref01-cases {
    scroll-margin-bottom: var(--ref01-cookie-reserve);
}

@media (min-width: 1025px) {
    html.has-ref01-cookie-banner .ref01-hero__stats {
        right: clamp(200px, 30vw, 320px);
        bottom: clamp(14%, 18vh, 22%);
    }
}

.ref01-stat-card {
    padding: var(--ref01-space-24);
    border-radius: var(--ref01-radius-lg);
}

.ref01-stat-card--glass {
    background: var(--ref01-surface-glass);
    backdrop-filter: blur(12px);
    border: 1px solid var(--ref01-border);
}

.ref01-stat-card--accent {
    background: var(--ref01-accent);
    color: var(--ref01-ink);
}

.ref01-stat-card__value {
    display: block;
    font-family: var(--ref01-font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1;
}

.ref01-stat-card__sup {
    font-family: var(--ref01-font-mono);
    font-size: 0.75rem;
    font-weight: 400;
    vertical-align: super;
}

.ref01-stat-card__label {
    display: block;
    margin-top: var(--ref01-space-8);
    font-size: 0.875rem;
    font-weight: 500;
}

.ref01-stat-card__hint {
    display: block;
    margin-top: var(--ref01-space-4);
    font-size: 0.75rem;
    opacity: 0.8;
    line-height: 1.4;
}

.ref01-partner-strip {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--ref01-space-16);
    margin-top: var(--ref01-space-64);
    padding-top: var(--ref01-space-32);
    border-top: 1px solid var(--ref01-border);
}

.ref01-partner-strip--trust {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
    align-items: flex-start;
}

.ref01-partner-strip__caption {
    margin: 0;
    font-family: var(--ref01-font-display);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ref01-ink-dim);
}

.ref01-partner-strip__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: var(--ref01-space-24);
    margin: 0;
    padding: 0;
    list-style: none;
}

.ref01-partner-strip--trust .ref01-partner-strip__list {
    justify-content: flex-start;
    gap: var(--ref01-space-16);
}

.ref01-partner-strip__logo {
    display: block;
    width: 28px;
    height: 28px;
    color: var(--ref01-partner-fade);
    opacity: 0.55;
    transition: color 200ms var(--ref01-ease), opacity 200ms var(--ref01-ease), transform 200ms var(--ref01-ease);
}

.ref01-partner-strip__item:hover .ref01-partner-strip__logo,
.ref01-partner-strip__item:focus-within .ref01-partner-strip__logo {
    color: var(--ref01-accent);
    opacity: 1;
    transform: translateY(-1px);
}

.ref01-partner-strip__logos {
    display: block;
    width: min(100%, 640px);
    height: auto;
    opacity: 0.55;
}

.ref01-partner-strip__item {
    font-family: var(--ref01-font-display);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgb(255 255 255 / 0.35);
}

.ref01-hero__metrics {
    display: flex;
    flex-wrap: wrap;
    gap: var(--ref01-space-12);
    margin-top: var(--ref01-space-24);
}

.ref01-metric-chip {
    display: inline-flex;
    flex-direction: column;
    gap: var(--ref01-space-4);
    padding: var(--ref01-space-12) var(--ref01-space-16);
    border-radius: var(--ref01-radius-pill);
    border: 1px solid var(--ref01-border);
    background: var(--ref01-surface);
    box-shadow: 0 4px 16px rgb(20 20 20 / 0.04);
}

.ref01-metric-chip--accent {
    border-color: rgb(255 90 0 / 0.28);
    background: linear-gradient(135deg, rgb(255 90 0 / 0.08), rgb(255 90 0 / 0.02));
}

.ref01-metric-chip__value {
    font-family: var(--ref01-font-display);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.1;
    color: var(--ref01-ink);
}

.ref01-metric-chip--accent .ref01-metric-chip__value {
    color: var(--ref01-accent-readable);
}

.ref01-metric-chip__sup {
    font-family: var(--ref01-font-mono);
    font-size: 0.625rem;
    font-weight: 500;
    vertical-align: super;
}

.ref01-metric-chip__label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--ref01-ink-muted);
    line-height: 1.3;
    white-space: nowrap;
}

.ref01-site-brand__link {
    display: inline-flex;
    align-items: center;
    gap: var(--ref01-space-12);
    text-decoration: none;
    color: inherit;
}

.ref01-site-brand__mark {
    display: block;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.ref01-bento__media {
    margin: calc(-1 * var(--ref01-space-24)) calc(-1 * var(--ref01-space-24)) var(--ref01-space-16);
    overflow: hidden;
    border-radius: var(--ref01-radius-md) var(--ref01-radius-md) 0 0;
    max-height: 180px;
}

.ref01-bento__media img {
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: center;
}

.ref01-bento__cell--tall .ref01-bento__media {
    max-height: 200px;
}

.ref01-bento__cell--tall .ref01-bento__media img {
    aspect-ratio: 3 / 2;
}

.ref01-case-card__media {
    margin: calc(-1 * var(--ref01-space-24)) calc(-1 * var(--ref01-space-24)) var(--ref01-space-12);
    overflow: hidden;
    border-radius: var(--ref01-radius-md) var(--ref01-radius-md) 0 0;
}

.ref01-case-card__media img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.ref01-audience__layout {
    display: grid;
    grid-template-columns: minmax(220px, 320px) 1fr;
    gap: var(--ref01-space-32);
    align-items: start;
}

.ref01-audience__content {
    display: flex;
    flex-direction: column;
    gap: var(--ref01-space-32);
}

.ref01-trust-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--ref01-space-24);
    padding: var(--ref01-space-24);
    border-radius: var(--ref01-radius-lg);
    background: var(--ref01-surface);
    border: 1px solid var(--ref01-border);
}

.ref01-trust-strip__stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(140px, 200px));
    gap: var(--ref01-space-16);
}

.ref01-trust-strip__partners {
    flex: 1 1 200px;
    display: flex;
    justify-content: flex-end;
}

.ref01-trust-strip__partners .ref01-partner-strip__logos {
    width: min(100%, 480px);
    opacity: 0.5;
}

.ref01-audience__portrait {
    margin: 0;
    position: sticky;
    top: var(--ref01-space-96);
}

.ref01-audience__portrait img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--ref01-radius-lg);
    object-fit: contain;
    object-position: center;
    aspect-ratio: 3 / 4;
    background: var(--ref01-bg, #FAFAF8);
    box-shadow: 0 12px 32px rgba(10, 9, 8, 0.06);
}

.ref01-process__layout {
    display: grid;
    grid-template-columns: 1fr minmax(260px, 380px);
    gap: var(--ref01-space-48);
    align-items: start;
}

.ref01-process__photo {
    margin: 0;
    position: sticky;
    top: var(--ref01-space-96);
}

.ref01-process__photo img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--ref01-radius-lg);
    object-fit: contain;
    object-position: center;
    aspect-ratio: 4 / 5;
    background: var(--ref01-bg, #FAFAF8);
    box-shadow: 0 12px 32px rgba(10, 9, 8, 0.06);
}

/* ── Packot mascot cutouts ── */
.ref01-packot {
    position: relative;
    z-index: 2;
    margin: 0;
    pointer-events: none;
    user-select: none;
}

.ref01-packot__img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: contain;
    object-position: bottom center;
    filter: drop-shadow(0 16px 40px rgb(255 90 0 / 0.14))
        drop-shadow(0 6px 16px rgb(20 20 20 / 0.08));
}

.ref01-packot--hero {
    margin-top: auto;
    max-width: min(100%, 480px);
    transform: translateY(8%);
}

.ref01-packot--hero .ref01-packot__img {
    max-width: min(100%, 480px);
}

.ref01-audience__portrait-wrap {
    position: sticky;
    top: var(--ref01-space-96);
}

.ref01-packot--audience {
    max-width: 320px;
}

.ref01-packot--process {
    position: sticky;
    top: var(--ref01-space-96);
    max-width: 380px;
}

.ref01-cases__shell {
    display: grid;
    grid-template-columns: minmax(140px, 220px) 1fr;
    gap: var(--ref01-space-24);
    align-items: end;
}

.ref01-cases__mascot-col {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: visible;
}

.ref01-packot--cases {
    max-width: 220px;
    transform: translateY(12px);
}

.ref01-services__shell,
.ref01-offers__shell {
    position: relative;
}

.ref01-packot--services {
    position: absolute;
    z-index: 3;
    top: -12px;
    right: clamp(8px, 3vw, 32px);
    width: clamp(120px, 18vw, 200px);
}

.ref01-packot--offers {
    position: absolute;
    z-index: 3;
    bottom: -8px;
    left: clamp(8px, 4vw, 48px);
    width: clamp(130px, 20vw, 220px);
}

.ref01-tasks__shell {
    display: grid;
    grid-template-columns: minmax(120px, 200px) 1fr;
    gap: var(--ref01-space-24);
    align-items: start;
}

.ref01-tasks__mascot {
    position: sticky;
    top: var(--ref01-space-96);
}

.ref01-packot--tasks {
    max-width: 200px;
}

.ref01-why__shell {
    position: relative;
}

.ref01-packot--why {
    position: absolute;
    z-index: 2;
    top: 0;
    right: 0;
    width: clamp(110px, 16vw, 180px);
    opacity: 0.95;
}

.ref01-education__shell,
.ref01-kovcheg__shell,
.ref01-docs__shell {
    position: relative;
}

.ref01-education__mascot,
.ref01-kovcheg__mascot,
.ref01-docs__mascot {
    display: none;
}

.ref01-faq__shell {
    position: relative;
}

.ref01-faq__mascot {
    display: none;
}

@media (min-width: 768px) {
    .ref01-education__shell {
        display: grid;
        grid-template-columns: minmax(140px, 200px) 1fr;
        gap: var(--ref01-space-24);
        align-items: start;
    }

    .ref01-education__mascot,
    .ref01-kovcheg__mascot,
    .ref01-docs__mascot {
        display: block;
        position: sticky;
        top: var(--ref01-space-96);
    }

    .ref01-packot--education,
    .ref01-packot--kovcheg,
    .ref01-packot--docs {
        max-width: 200px;
    }

    .ref01-kovcheg__shell {
        display: grid;
        grid-template-columns: minmax(140px, 200px) 1fr;
        gap: var(--ref01-space-24);
        align-items: start;
    }

    .ref01-docs__shell {
        display: grid;
        grid-template-columns: minmax(130px, 190px) 1fr;
        gap: var(--ref01-space-24);
        align-items: start;
    }

    .ref01-faq__shell {
        display: grid;
        grid-template-columns: minmax(120px, 180px) 1fr;
        gap: var(--ref01-space-32);
        align-items: start;
    }

    .ref01-faq__mascot {
        display: block;
        position: sticky;
        top: var(--ref01-space-96);
    }

    .ref01-packot--faq {
        max-width: 180px;
    }
}

@media (max-width: 767px) {
    .ref01-cases__shell {
        grid-template-columns: 1fr;
    }

    .ref01-cases__mascot-col {
        order: -1;
        justify-content: flex-start;
        margin-bottom: var(--ref01-space-8);
    }

    .ref01-packot--cases {
        max-width: clamp(120px, 36vw, 180px);
        transform: none;
    }

    .ref01-packot--services,
    .ref01-packot--offers,
    .ref01-packot--why {
        width: clamp(96px, 28vw, 140px);
        opacity: 0.85;
    }

    .ref01-packot--services {
        top: -4px;
        right: 4px;
    }

    .ref01-packot--offers {
        bottom: auto;
        top: -8px;
        left: auto;
        right: 8px;
    }

    .ref01-packot--why {
        top: -8px;
        right: 4px;
    }

    .ref01-tasks__shell {
        grid-template-columns: 1fr;
    }

    .ref01-tasks__mascot {
        display: none;
    }

    .ref01-packot--hero {
        max-width: min(100%, var(--ref01-hero-figure-max));
        transform: translateY(4%);
    }
}

@media (min-width: 1440px) {
    .ref01-packot--hero .ref01-packot__img {
        max-width: min(100%, 520px);
    }

    .ref01-cases__shell {
        grid-template-columns: minmax(180px, 260px) 1fr;
        gap: var(--ref01-space-32);
    }

    .ref01-packot--cases {
        max-width: 260px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ref01-packot--hero {
        transform: none;
    }
}

/* ── Cards & Bento ── */
.ref01-card {
    padding: var(--ref01-space-24);
    border-radius: var(--ref01-radius-md);
    background: var(--ref01-surface);
    border: 1px solid var(--ref01-border-card);
}

.ref01-card__eyebrow {
    margin: 0 0 var(--ref01-space-8);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ref01-accent);
}

.ref01-card__title {
    margin: 0 0 var(--ref01-space-12);
    font-family: var(--ref01-font-display);
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.25;
}

.ref01-card__text {
    margin: 0 0 var(--ref01-space-12);
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--ref01-ink-muted);
}

.ref01-card__text--muted {
    font-size: 0.875rem;
}

.ref01-card__list {
    margin: 0 0 var(--ref01-space-16);
    padding-left: 1.1rem;
    font-size: 0.875rem;
    line-height: 1.55;
    color: var(--ref01-ink-muted);
}

.ref01-card__cta {
    margin-top: auto;
}

.ref01-bento {
    display: grid;
    gap: var(--ref01-space-16);
}

.ref01-bento--services {
    grid-template-columns: repeat(2, 1fr);
}

.ref01-bento--services .ref01-bento__cell--wide {
    grid-column: span 2;
}

.ref01-bento--services .ref01-bento__cell--tall {
    grid-row: span 1;
}

.ref01-bento--offers {
    grid-template-columns: repeat(2, 1fr);
}

.ref01-bento__cell {
    display: flex;
    flex-direction: column;
}

/* ── Tasks ── */
.ref01-tasks__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--ref01-space-16);
    list-style: none;
    margin: 0;
    padding: 0;
}

.ref01-tasks__item {
    display: flex;
    gap: var(--ref01-space-16);
    padding: var(--ref01-space-24);
    border-radius: var(--ref01-radius-md);
    background: var(--ref01-surface);
    border: 1px solid var(--ref01-border-card);
}

.ref01-tasks__index {
    font-family: var(--ref01-font-mono);
    font-size: 0.75rem;
    color: var(--ref01-accent);
    flex-shrink: 0;
}

.ref01-tasks__text {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.5;
}

.ref01-tasks__footer {
    margin: var(--ref01-space-32) 0 0;
}

/* ── Audience / Why ── */
.ref01-audience__grid,
.ref01-why__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--ref01-space-24);
}

/* ── Cases ── */
.ref01-cases__track {
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scroll-padding-inline: var(--ref01-space-16);
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: grab;
    margin-inline: calc(-1 * var(--ref01-space-16));
    padding-inline: var(--ref01-space-16);
    max-width: calc(100% + var(--ref01-space-32));
}

.ref01-cases__track::-webkit-scrollbar {
    display: none;
    height: 0;
}

.ref01-cases__track.is-dragging {
    cursor: grabbing;
    scroll-behavior: auto;
    scroll-snap-type: none;
    user-select: none;
}

.ref01-cases__track:focus-visible {
    outline: 2px solid var(--ref01-accent);
    outline-offset: 4px;
}

.ref01-cases__grid {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: var(--ref01-case-card-w);
    gap: var(--ref01-space-16);
    padding-bottom: var(--ref01-space-8);
}

.ref01-case-card__title {
    margin: 0 0 var(--ref01-space-12);
    font-size: 1.0625rem;
    font-weight: 600;
    line-height: 1.3;
}

.ref01-case-card__body {
    margin: 0 0 var(--ref01-space-12);
}

.ref01-case-card__body div {
    margin-bottom: var(--ref01-space-8);
}

.ref01-case-card__body dt {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ref01-accent);
    margin-bottom: var(--ref01-space-4);
}

.ref01-case-card__body dd {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.55;
    color: var(--ref01-ink-muted);
}

.ref01-case-card {
    scroll-snap-align: center;
    scroll-snap-stop: normal;
    min-width: 0;
}

.ref01-pill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--ref01-space-8);
    list-style: none;
    margin: 0;
    padding: 0;
}

.ref01-pill-tags li {
    padding: var(--ref01-space-4) var(--ref01-space-12);
    border-radius: var(--ref01-radius-pill);
    border: 1px solid var(--ref01-border-card);
    font-size: 0.75rem;
    color: var(--ref01-ink-muted);
}

/* ── Timeline ── */
.ref01-timeline {
    list-style: none;
    margin: 0;
    padding: 0 0 0 var(--ref01-space-32);
    border-left: 2px solid var(--ref01-border-card);
}

.ref01-timeline__step {
    position: relative;
    padding: 0 0 var(--ref01-space-48) var(--ref01-space-32);
}

.ref01-timeline__step.is-active::before {
    content: "";
    position: absolute;
    left: calc(-1 * var(--ref01-space-32) - 1px);
    top: 0;
    width: 2px;
    height: 100%;
    background: var(--ref01-accent);
}

.ref01-timeline__marker {
    position: absolute;
    left: calc(-1 * var(--ref01-space-32) - 14px);
    top: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--ref01-surface-elevated);
    border: 2px solid var(--ref01-accent);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ref01-timeline__number {
    font-family: var(--ref01-font-mono);
    font-size: 0.75rem;
    color: var(--ref01-accent);
}

.ref01-timeline__title {
    margin: 0 0 var(--ref01-space-8);
    font-size: 1.125rem;
    font-weight: 600;
}

.ref01-timeline__text {
    margin: 0 0 var(--ref01-space-12);
    color: var(--ref01-ink-muted);
    line-height: 1.6;
    max-width: 60ch;
}

/* ── Offers ── */
.ref01-offer-card__for,
.ref01-offer-card__includes,
.ref01-offer-card__result {
    margin: 0 0 var(--ref01-space-8);
    font-size: 0.8125rem;
    line-height: 1.5;
    color: var(--ref01-ink-muted);
}

.ref01-offer-card .ref01-card__cta {
    margin-top: auto;
    padding-top: var(--ref01-space-12);
}

.ref01-offer-card .ref01-pill-cta {
    width: 100%;
    max-width: 100%;
    justify-content: center;
}

.ref01-bento__cell .ref01-card__cta {
    margin-top: auto;
}

/* ── FAQ ── */
.ref01-faq {
    background: var(--ref01-surface);
}

.ref01-faq__grid {
    display: grid;
    gap: var(--ref01-space-32);
    align-items: start;
}

@media (min-width: 1024px) {
    .ref01-faq__grid {
        grid-template-columns: minmax(220px, 0.38fr) minmax(0, 1fr);
        gap: var(--ref01-space-32);
        align-items: start;
    }
}

.ref01-faq__header {
    margin-bottom: 0;
}

.ref01-faq__kicker {
    color: var(--ref01-accent-readable);
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.ref01-faq__title {
    margin-bottom: var(--ref01-space-16);
}

.ref01-faq__lead {
    margin: 0;
    max-width: 36ch;
}

.ref01-faq__list {
    display: flex;
    flex-direction: column;
    gap: var(--ref01-space-12);
    margin: 0;
    padding: 0;
    list-style: none;
}

.ref01-faq-item {
    border: 1px solid var(--ref01-border);
    border-left: 3px solid transparent;
    border-radius: var(--ref01-radius-md);
    background: var(--ref01-surface);
    overflow: hidden;
    box-shadow: 0 2px 8px rgb(20 20 20 / 0.03);
    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        background-color 0.25s ease;
}

.ref01-faq-item:hover {
    border-color: var(--ref01-border-card);
    box-shadow: 0 6px 20px rgb(20 20 20 / 0.05);
}

.ref01-faq-item[open] {
    border-left-color: var(--ref01-accent);
    background: linear-gradient(90deg, rgb(255 90 0 / 0.04) 0%, var(--ref01-surface) 12%);
    box-shadow: var(--ref01-shadow-card);
}

.ref01-faq-item__summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--ref01-space-16);
    padding: var(--ref01-space-16) var(--ref01-space-20);
    cursor: pointer;
    list-style: none;
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.45;
    color: var(--ref01-ink);
    transition: color 0.2s ease;
}

.ref01-faq-item[open] .ref01-faq-item__summary {
    color: var(--ref01-ink);
}

.ref01-faq-item__summary::-webkit-details-marker {
    display: none;
}

.ref01-faq-item__summary::marker {
    content: "";
}

.ref01-faq-item__question {
    flex: 1;
    min-width: 0;
    padding-right: var(--ref01-space-8);
}

.ref01-faq-item__icon {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: rgb(255 90 0 / 0.1);
    border: 1px solid rgb(255 90 0 / 0.22);
    position: relative;
    transition:
        background-color 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease;
}

.ref01-faq-item[open] .ref01-faq-item__icon {
    background: var(--ref01-accent);
    border-color: var(--ref01-accent);
}

.ref01-faq-item__icon-bar {
    position: absolute;
    display: block;
    width: 0.75rem;
    height: 2px;
    border-radius: 1px;
    background: var(--ref01-accent-readable);
    transition:
        transform 0.25s ease,
        opacity 0.25s ease,
        background-color 0.25s ease;
}

.ref01-faq-item[open] .ref01-faq-item__icon-bar {
    background: var(--ref01-on-accent);
}

.ref01-faq-item__icon-bar--h {
    transform: rotate(0deg);
}

.ref01-faq-item__icon-bar--v {
    transform: rotate(90deg);
}

.ref01-faq-item[open] .ref01-faq-item__icon-bar--v {
    transform: rotate(0deg);
    opacity: 0;
}

.ref01-faq-item__answer {
    padding: 0 var(--ref01-space-20) var(--ref01-space-20);
    color: var(--ref01-ink-muted);
    font-size: 0.9375rem;
    line-height: 1.65;
    max-width: 65ch;
    overflow: hidden;
    interpolate-size: allow-keywords;
    transition: opacity 0.25s ease;
}

.ref01-faq-item[open] .ref01-faq-item__answer {
    animation: ref01-faq-answer-in 0.3s ease;
}

@keyframes ref01-faq-answer-in {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .ref01-faq-item,
    .ref01-faq-item__summary,
    .ref01-faq-item__icon,
    .ref01-faq-item__icon-bar,
    .ref01-faq-item__answer {
        transition: none;
        animation: none;
    }
}

.ref01-faq-item__answer p {
    margin: 0;
}

.ref01-faq__cta {
    margin-top: var(--ref01-space-32);
    padding: var(--ref01-space-20) var(--ref01-space-24);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--ref01-space-16);
    border-radius: var(--ref01-radius-lg);
    border: 1px solid var(--ref01-border);
    background: var(--ref01-surface);
    box-shadow: var(--ref01-shadow-card);
}

@media (min-width: 768px) {
    .ref01-faq__cta {
        flex-wrap: nowrap;
    }
}

.ref01-faq__cta-text {
    margin: 0;
    color: var(--ref01-ink-muted);
    font-size: 0.9375rem;
    line-height: 1.55;
    max-width: 42ch;
}

.ref01-faq__cta .ref01-pill-cta {
    flex-shrink: 0;
}

/* ── Contacts page ── */
.ref01-page-hero {
    padding-top: calc(var(--ref01-header-offset, 88px) + var(--ref01-space-24));
    padding-bottom: var(--ref01-space-24);
}

.ref01-page-hero__title {
    margin: 0 0 var(--ref01-space-16);
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.1;
    font-weight: 700;
}

.ref01-page-hero__lead {
    margin: 0 0 var(--ref01-space-24);
    color: var(--ref01-ink-muted);
    max-width: 60ch;
    line-height: 1.65;
}

.ref01-contact-nap {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: var(--ref01-space-24);
}

.ref01-contact-nap li {
    display: flex;
    flex-direction: column;
    gap: var(--ref01-space-4);
}

.ref01-contact-nap__label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ref01-ink-muted);
}

.ref01-contact-nap a {
    color: var(--ref01-ink);
    text-decoration: none;
}

.ref01-contact-nap a:hover {
    color: var(--ref01-accent);
}

.ref01-contact--page {
    padding-bottom: var(--ref01-section-pad);
}

/* ── Contact + Arc ── */
.ref01-horizon-arc {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 120px;
    overflow: hidden;
    pointer-events: none;
}

.ref01-horizon-arc__svg {
    width: 100%;
    height: 100%;
}

.ref01-contact {
    padding-top: calc(var(--ref01-section-pad) + 24px);
}

.ref01-contact__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--ref01-space-32);
    align-items: start;
}

.ref01-contact__note {
    margin: var(--ref01-space-16) 0 0;
    font-size: 0.875rem;
    color: var(--ref01-ink-dim);
    max-width: 40ch;
}

.ref01-contact__form-wrap {
    padding: var(--ref01-space-24);
    border-radius: var(--ref01-radius-lg);
    background: var(--ref01-surface);
    border: 1px solid var(--ref01-border-card);
    max-width: 480px;
    justify-self: end;
    width: 100%;
}

.ref01-contact--page .ref01-contact__form-wrap {
    max-width: none;
    justify-self: stretch;
}

.ref01-contact__form-title {
    margin: 0 0 var(--ref01-space-16);
    font-size: 1.0625rem;
    font-weight: 600;
}

.ref01-form__field {
    margin-bottom: var(--ref01-space-16);
}

.ref01-form__field label {
    display: block;
    margin-bottom: var(--ref01-space-8);
    font-size: 0.875rem;
    font-weight: 500;
}

.ref01-form__field input,
.ref01-form__field textarea {
    width: 100%;
    padding: var(--ref01-space-12) var(--ref01-space-16);
    border-radius: var(--ref01-radius-sm);
    border: 1px solid var(--ref01-border-card);
    background: var(--ref01-bg);
    color: var(--ref01-ink);
    font-family: var(--ref01-font-display);
    font-size: 0.9375rem;
}

.ref01-form__field input:focus-visible,
.ref01-form__field textarea:focus-visible {
    outline: 2px solid var(--ref01-accent);
    outline-offset: 2px;
}

.ref01-form__submit {
    width: 100%;
    justify-content: center;
    margin-top: var(--ref01-space-8);
}

.ref01-form__consent {
    margin: var(--ref01-space-12) 0 0;
    font-size: 0.75rem;
    color: var(--ref01-ink-dim);
    line-height: 1.5;
}

.ref01-form__consent a {
    color: var(--ref01-accent);
}

.ref01-form-notice {
    margin: 0 0 var(--ref01-space-16);
    padding: var(--ref01-space-12);
    border-radius: var(--ref01-radius-sm);
    background: rgb(255 90 0 / 0.12);
    color: var(--ref01-ink);
    font-size: 0.875rem;
}

/* ── Docs ── */
.ref01-docs__layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: var(--ref01-space-32);
    align-items: start;
}

.ref01-docs__featured {
    display: grid;
    gap: var(--ref01-space-16);
    list-style: none;
    margin: 0;
    padding: 0;
}

.ref01-docs__link {
    display: flex;
    align-items: center;
    gap: var(--ref01-space-16);
    padding: var(--ref01-space-12);
    border-radius: var(--ref01-radius-md);
    background: var(--ref01-surface);
    border: 1px solid var(--ref01-border-card);
    text-decoration: none;
    color: var(--ref01-ink);
    transition: border-color 200ms var(--ref01-ease);
}

.ref01-docs__link:hover {
    border-color: var(--ref01-accent);
}

.ref01-docs__link img {
    width: 80px;
    height: 45px;
    object-fit: cover;
    border-radius: var(--ref01-radius-sm);
    flex-shrink: 0;
}

.ref01-docs__link span {
    font-size: 0.9375rem;
    font-weight: 500;
    line-height: 1.35;
}

.ref01-docs {
    position: relative;
    z-index: 1;
    padding-bottom: calc(var(--ref01-section-pad) + var(--ref01-space-32));
}

/* ── Education & Kovcheg ── */
.ref01-education__layout,
.ref01-kovcheg__layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: var(--ref01-space-32);
    align-items: start;
}

.ref01-education__main,
.ref01-kovcheg__main {
    display: flex;
    flex-direction: column;
}

.ref01-education__callout,
.ref01-kovcheg__callout {
    margin: 0 0 var(--ref01-space-16);
    padding: var(--ref01-space-12) var(--ref01-space-16);
    border-radius: var(--ref01-radius-sm);
    background: rgb(255 90 0 / 0.08);
    border: 1px solid rgb(255 90 0 / 0.15);
    font-size: 0.875rem;
    line-height: 1.55;
    color: var(--ref01-ink);
}

.ref01-education__cta-row,
.ref01-kovcheg__cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--ref01-space-12);
    margin-top: auto;
}

.ref01-education__secondary {
    display: flex;
    flex-wrap: wrap;
    gap: var(--ref01-space-8);
    margin-top: var(--ref01-space-16);
    padding-top: var(--ref01-space-16);
    border-top: 1px solid var(--ref01-border);
}

.ref01-kovcheg {
    background: var(--ref01-surface-elevated);
}

.ref01-hero__edu-link {
    color: var(--ref01-accent-readable);
    text-decoration: underline;
    text-decoration-color: rgb(255 90 0 / 0.35);
    text-underline-offset: 0.15em;
    transition: color 200ms var(--ref01-ease), text-decoration-color 200ms var(--ref01-ease);
}

.ref01-hero__edu-link:hover {
    color: var(--ref01-accent-deep);
    text-decoration-color: var(--ref01-accent);
}

/* ── Blog section override ── */
.kharag-ref01 .blog-section {
    padding-block: var(--ref01-section-pad);
    background: var(--ref01-bg);
    color: var(--ref01-ink);
}

.kharag-ref01 .blog-section.ref01-section--elevated {
    background: var(--ref01-bg);
}

.kharag-ref01 .blog-section .section-header {
    margin-bottom: var(--ref01-space-32);
}

.kharag-ref01 .blog-section .section-title {
    font-family: var(--ref01-font-display);
    font-size: clamp(1.75rem, 3vw, 2.125rem);
    font-weight: 700;
    color: var(--ref01-ink);
    letter-spacing: -0.03em;
}

.kharag-ref01 .blog-section .section-subtitle {
    color: var(--ref01-ink-muted);
    max-width: 52ch;
    margin-inline: auto;
}

.kharag-ref01 .blog-card {
    background: var(--ref01-surface);
    border: 1px solid var(--ref01-border-card);
    border-radius: var(--ref01-radius-md);
    box-shadow: 0 4px 16px rgb(20 20 20 / 0.04);
}

.kharag-ref01 .blog-card--marquee {
    color: var(--ref01-ink);
}

.kharag-ref01 .blog-title a {
    color: var(--ref01-ink);
}

.kharag-ref01 .blog-excerpt,
.kharag-ref01 .blog-meta,
.kharag-ref01 .read-more-link {
    color: var(--ref01-ink-muted);
}

.kharag-ref01 .blog-category a {
    color: var(--ref01-accent-readable);
}

.kharag-ref01 .blog-section .placeholder-image {
    background: var(--ref01-surface-elevated);
    color: var(--ref01-ink-dim);
}

.kharag-ref01 .blog-section-footer {
    margin-top: var(--ref01-space-32);
}

.kharag-ref01 .blog-section .btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 var(--ref01-space-24);
    background: linear-gradient(90deg, var(--ref01-accent), var(--ref01-accent-deep));
    border: none;
    border-radius: var(--ref01-radius-pill);
    color: var(--ref01-on-accent);
    font-weight: 600;
}

/* ── Footer ref-01 ── */
.kharag-ref01 .site-footer {
    position: relative;
    background: var(--ref01-bg);
    color: var(--ref01-ink);
    border-top: 1px solid var(--ref01-border);
    padding-top: var(--ref01-space-64);
}

.kharag-ref01 .site-footer .footer-cta {
    display: none;
}

.kharag-ref01 .ref01-footer-arc {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    overflow: hidden;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 3;
}

.kharag-ref01 .ref01-footer-arc__svg {
    display: block;
    width: 100%;
    height: 100%;
}

.kharag-ref01 .site-footer.site-footer--ref01 {
    margin-top: 0;
    border-top: none;
    padding-top: calc(var(--ref01-space-64) + 24px);
    background: var(--ref01-bg);
    position: relative;
    z-index: 2;
}

html[data-theme="light"] .kharag-ref01 .site-footer.site-footer--ref01 {
    background: var(--ref01-bg);
    border-top-color: transparent;
}

.kharag-ref01 .site-footer .footer-nav-area {
    padding-block: var(--ref01-space-48) var(--ref01-space-32);
}

.kharag-ref01 .site-footer .footer-grid {
    display: grid;
    grid-template-columns: 1.35fr repeat(4, minmax(0, 1fr));
    gap: var(--ref01-space-24);
}

.kharag-ref01 .site-footer .footer-logo {
    font-family: var(--ref01-font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--ref01-ink);
}

.kharag-ref01 .site-footer .footer-brand-desc {
    color: var(--ref01-ink-muted);
    font-size: 0.875rem;
    line-height: 1.6;
    max-width: 28ch;
}

.kharag-ref01 .site-footer .footer-col-title {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: var(--ref01-space-16);
    color: var(--ref01-ink);
}

.kharag-ref01 .site-footer .footer-links a {
    color: var(--ref01-ink-muted);
    text-decoration: none;
    font-size: 0.875rem;
    line-height: 2;
}

.kharag-ref01 .site-footer .footer-links a:hover {
    color: var(--ref01-accent);
}

.kharag-ref01 .site-footer .footer-copyright {
    margin-top: var(--ref01-space-24);
    font-size: 0.75rem;
    color: var(--ref01-ink-dim);
}

/* ── Responsive ── */
@media (min-width: 768px) and (max-width: 1023px) {
    .kharag-ref01 {
        --ref01-hero-visual-max: clamp(220px, 38vw, 300px);
        --ref01-hero-figure-max: clamp(180px, 34vw, 260px);
    }

    .ref01-cases__grid {
        grid-auto-columns: minmax(300px, 340px);
    }
}

@media (max-width: 1024px) {
    .ref01-hero__layout,
    .ref01-contact__inner,
    .ref01-docs__layout,
    .ref01-education__layout,
    .ref01-kovcheg__layout {
        grid-template-columns: 1fr;
        gap: var(--ref01-space-16);
    }

    .ref01-hero__visual {
        min-height: auto;
        margin-top: var(--ref01-space-16);
        max-height: none;
    }

    .ref01-hero__stage {
        min-height: unset;
        max-height: var(--ref01-hero-visual-max);
        aspect-ratio: 4 / 5;
        overflow: hidden;
    }

    .ref01-hero__figure {
        transform: translateY(0);
        max-width: min(100%, 360px);
        max-height: var(--ref01-hero-figure-max);
        width: auto;
        height: auto;
        margin-inline: auto;
        object-fit: contain;
        object-position: bottom center;
    }

    .ref01-hero {
        padding-top: calc(var(--ref01-header-h) + var(--ref01-space-16));
        padding-bottom: var(--ref01-space-32);
    }

    .ref01-services {
        margin-top: calc(-1 * var(--ref01-space-32));
    }

    .ref01-hero__title {
        margin-bottom: var(--ref01-space-12);
    }

    .ref01-hero__tagline {
        margin-bottom: var(--ref01-space-12);
    }

    .ref01-hero__lead,
    .ref01-hero__note {
        margin-bottom: var(--ref01-space-8);
        font-size: 0.875rem;
        line-height: 1.5;
    }

    .ref01-hero__cta-row {
        margin-top: var(--ref01-space-16);
        gap: var(--ref01-space-8);
    }

    .ref01-hero__metrics {
        margin-top: var(--ref01-space-12);
        gap: var(--ref01-space-8);
    }

    .ref01-metric-chip {
        padding: var(--ref01-space-8) var(--ref01-space-12);
    }

    .ref01-audience__grid,
    .ref01-why__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ref01-trust-strip__stats {
        grid-template-columns: 1fr;
    }

    .ref01-audience__layout {
        grid-template-columns: 1fr;
    }

    .ref01-audience__portrait {
        position: relative;
        top: auto;
        max-width: 280px;
        margin: 0 auto var(--ref01-space-24);
    }

    .ref01-process__layout {
        grid-template-columns: 1fr;
    }

    .ref01-process__photo {
        position: relative;
        top: auto;
        max-width: 360px;
        margin: var(--ref01-space-32) auto 0;
        order: -1;
    }

    .ref01-bento--services,
    .ref01-bento--offers {
        grid-template-columns: 1fr;
    }

    .ref01-bento--services .ref01-bento__cell--wide {
        grid-column: auto;
    }

    .ref01-bento__cell.ref01-card {
        padding: var(--ref01-space-16);
    }

    .ref01-bento__media {
        max-height: var(--ref01-bento-media-max);
        margin: calc(-1 * var(--ref01-space-16)) calc(-1 * var(--ref01-space-16)) var(--ref01-space-12);
    }

    .ref01-bento__media img {
        aspect-ratio: 16 / 9;
        height: 100%;
        max-height: var(--ref01-bento-media-max);
    }

    .ref01-bento__cell--tall .ref01-bento__media {
        max-height: var(--ref01-bento-media-max);
    }

    .ref01-bento__cell--tall .ref01-bento__media img {
        aspect-ratio: 16 / 9;
    }

    .ref01-hero__stats {
        position: relative;
        width: 100%;
        bottom: auto;
        right: auto;
        grid-template-columns: 1fr 1fr;
        gap: var(--ref01-space-8);
        margin-top: var(--ref01-space-12);
    }

    .ref01-stat-card {
        padding: var(--ref01-space-16);
    }

    .ref01-stat-card__value {
        font-size: clamp(1.5rem, 5vw, 2rem);
    }

    .ref01-stat-card__hint {
        font-size: 0.6875rem;
        line-height: 1.35;
    }

    .ref01-partner-strip {
        margin-top: var(--ref01-space-24);
        padding-top: var(--ref01-space-16);
    }

    .kharag-ref01 .site-footer .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 767px) {
    html.has-ref01-cookie-banner {
        --ref01-cookie-reserve: var(--ref01-cookie-reserve-mobile);
    }

    html.has-ref01-cookie-banner .ref01-process,
    html.has-ref01-cookie-banner .ref01-cases,
    html.has-ref01-cookie-banner .ref01-contact {
        padding-bottom: calc(var(--ref01-section-pad) + var(--ref01-cookie-reserve));
    }

    html.has-ref01-cookie-banner .kharag-ref01 .site-footer {
        padding-bottom: calc(var(--ref01-space-48) + var(--ref01-cookie-reserve));
    }
}

@media (max-width: 640px) {
    .ref01-tasks__grid,
    .ref01-audience__grid,
    .ref01-why__grid {
        grid-template-columns: 1fr;
    }

    .ref01-hero__title {
        font-size: clamp(1.75rem, 8.5vw, 2.25rem);
    }

    .ref01-hero__stage {
        max-height: clamp(180px, 50vw, 240px);
        aspect-ratio: 1 / 1;
    }

    .ref01-hero__figure {
        max-height: clamp(150px, 46vw, 220px);
    }

    .ref01-hero__stats {
        grid-template-columns: 1fr;
    }

    .ref01-stat-card__hint {
        display: none;
    }

    .ref01-hero__cta-row {
        flex-direction: column;
        align-items: stretch;
    }

    .ref01-hero__cta-row .ref01-pill-cta {
        justify-content: center;
        width: 100%;
        height: 44px;
        min-height: 44px;
        max-height: 44px;
    }

    .ref01-cases__track {
        margin-inline: calc(-1 * var(--ref01-space-16));
    }

    .ref01-case-card__body dd {
        font-size: 0.8125rem;
        line-height: 1.5;
    }

    .ref01-case-card__title {
        font-size: 1rem;
    }

    .ref01-contact__form-wrap {
        max-width: none;
        justify-self: stretch;
    }

    .kharag-ref01 .site-footer .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 1440px) {
    .ref01-container {
        width: min(var(--ref01-container), calc(100% - var(--ref01-space-48)));
    }

    .ref01-hero__figure {
        max-width: min(100%, 520px);
    }

    .ref01-cases__grid {
        grid-auto-columns: minmax(320px, 380px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .ref01-hero__glow {
        animation: none;
    }

    .ref01-pill-cta {
        transition: none;
    }

    .ref01-partner-strip__logo {
        transition: none;
    }

    .ref01-partner-strip__item:hover .ref01-partner-strip__logo,
    .ref01-partner-strip__item:focus-within .ref01-partner-strip__logo {
        transform: none;
    }
}

/* ── Structure v2: trust strip, Packot banners, contact CTA ── */

.ref01-hero__title--single {
    font-size: clamp(2rem, 5.5vw, 3.25rem);
    line-height: 1.08;
    max-width: 14ch;
}

.ref01-trust-strip {
    padding-block: var(--ref01-space-24) var(--ref01-space-32);
    border-bottom: 1px solid var(--ref01-border);
    background: linear-gradient(180deg, var(--ref01-bg) 0%, var(--ref01-surface) 100%);
}

.ref01-trust-strip__list {
    display: grid;
    gap: var(--ref01-space-12);
    list-style: none;
    margin: 0;
    padding: 0;
}

@media (min-width: 768px) {
    .ref01-trust-strip__list {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--ref01-space-16);
    }
}

.ref01-trust-chip {
    display: flex;
    flex-direction: column;
    gap: var(--ref01-space-4);
    padding: var(--ref01-space-16) var(--ref01-space-20);
    border-radius: var(--ref01-radius-md);
    background: var(--ref01-surface);
    border: 1px solid var(--ref01-border);
    box-shadow: var(--ref01-shadow-card);
}

.ref01-trust-chip__value {
    font-family: var(--ref01-font-display);
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--ref01-accent-readable);
}

.ref01-trust-chip__label {
    font-size: 0.875rem;
    line-height: 1.45;
    color: var(--ref01-ink-muted);
}

.ref01-packot-banner {
    position: relative;
    overflow: hidden;
    padding-block: clamp(28px, 4vw, 48px);
    background: var(--ref01-surface-elevated);
    border-block: 1px solid var(--ref01-border);
}

.ref01-packot-banner__inner {
    display: grid;
    gap: var(--ref01-space-24);
    align-items: center;
}

@media (min-width: 900px) {
    .ref01-packot-banner__inner {
        grid-template-columns: 1fr minmax(160px, 240px);
        gap: var(--ref01-space-32);
    }

    .ref01-packot-banner--right .ref01-packot-banner__inner {
        grid-template-columns: 1fr minmax(160px, 240px);
    }

    .ref01-packot-banner--left .ref01-packot-banner__inner {
        grid-template-columns: minmax(160px, 240px) 1fr;
    }

    .ref01-packot-banner--left .ref01-packot-banner__copy {
        order: 2;
    }

    .ref01-packot-banner--left .ref01-packot-banner__visual {
        order: 1;
    }
}

.ref01-packot-banner__headline {
    margin: 0 0 var(--ref01-space-16);
    font-family: var(--ref01-font-display);
    font-size: clamp(1.125rem, 2.5vw, 1.5rem);
    font-weight: 650;
    line-height: 1.35;
    color: var(--ref01-ink);
    max-width: 28ch;
}

.ref01-packot-banner__visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    min-height: 140px;
}

.ref01-packot-banner__glow {
    position: absolute;
    inset: 10% 5% 0;
    background: radial-gradient(ellipse at center bottom, var(--ref01-accent-glow), transparent 70%);
    pointer-events: none;
}

.ref01-packot--banner {
    margin: 0;
    max-width: min(220px, 42vw);
}

.ref01-packot--banner .ref01-packot__img {
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: bottom center;
}

.ref01-packot--ribbon {
    margin: 0;
    max-width: 72px;
    flex-shrink: 0;
}

.ref01-packot--ribbon .ref01-packot__img {
    width: 100%;
    height: auto;
}

.ref01-packot-ribbon {
    padding-block: var(--ref01-space-20);
    background: linear-gradient(90deg, rgb(255 90 0 / 0.08), rgb(255 90 0 / 0.02));
    border-block: 1px solid rgb(255 90 0 / 0.15);
}

.ref01-packot-ribbon__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--ref01-space-16) var(--ref01-space-24);
}

.ref01-packot-ribbon__headline {
    margin: 0;
    flex: 1 1 200px;
    font-family: var(--ref01-font-display);
    font-weight: 600;
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--ref01-ink);
}

.ref01-contact-cta {
    position: relative;
    overflow: hidden;
    padding-block: clamp(48px, 7vw, 88px);
    background: var(--ref01-ink);
    color: var(--ref01-on-accent);
}

.ref01-contact-cta__glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 60% at 70% 100%, rgb(255 90 0 / 0.45), transparent 60%);
    pointer-events: none;
}

.ref01-contact-cta__inner {
    position: relative;
    display: grid;
    gap: var(--ref01-space-32);
    align-items: center;
}

@media (min-width: 900px) {
    .ref01-contact-cta__inner {
        grid-template-columns: minmax(180px, 260px) 1fr;
    }
}

.ref01-contact-cta__mascot {
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.ref01-packot--contact {
    margin: 0;
    max-width: min(280px, 40vw);
    filter: drop-shadow(0 24px 48px rgb(0 0 0 / 0.35));
}

.ref01-contact-cta .ref01-kicker {
    color: rgb(255 255 255 / 0.72);
}

.ref01-contact-cta__title {
    margin: 0 0 var(--ref01-space-16);
    font-family: var(--ref01-font-display);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    line-height: 1.12;
    font-weight: 700;
    color: #fff;
    max-width: 20ch;
}

.ref01-contact-cta__lead {
    margin: 0 0 var(--ref01-space-24);
    font-size: 1.0625rem;
    line-height: 1.55;
    color: rgb(255 255 255 / 0.82);
    max-width: 52ch;
}

.ref01-contact-cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--ref01-space-12);
}

.ref01-contact-cta .ref01-pill-cta--secondary {
    color: #fff;
    border-color: rgb(255 255 255 / 0.35);
}

.ref01-contact-cta .ref01-pill-cta--secondary:hover {
    background: rgb(255 255 255 / 0.08);
}

@media (max-width: 899px) {
    .ref01-packot-banner__visual {
        order: -1;
        min-height: 120px;
    }

    .ref01-packot-banner__headline {
        max-width: none;
    }
}

/* ── V4 deprecated — superseded by v5 below ── */

/* ── V5 Brain-first ref-01 (supersedes v4) ── */

.front-page--v5 {
    --v5-section-pad: clamp(48px, 8vw, 120px);
    --ref01-section-pad: var(--v5-section-pad);

    --v5-hero-mesh-a: radial-gradient(
        ellipse 80% 60% at 72% 38%,
        rgb(255 90 0 / 0.14),
        transparent 68%
    );
    --v5-hero-mesh-b: radial-gradient(
        ellipse 55% 45% at 18% 78%,
        rgb(255 90 0 / 0.06),
        transparent 62%
    );
    --v5-hero-title-max: 12ch;

    --v5-explore-card-bg: var(--ref01-surface);
    --v5-explore-card-border: 1px solid var(--ref01-border);
    --v5-explore-card-radius: var(--ref01-radius-md);
    --v5-explore-card-pad: clamp(16px, 3vw, 28px);
    --v5-explore-card-gap: var(--ref01-space-16);
    --v5-explore-card-shadow: var(--ref01-shadow-card);
    --v5-explore-card-shadow-hover: 0 16px 48px rgb(20 20 20 / 0.08);
    --v5-explore-card-lift: translateY(-4px);

    --v5-cta-band-bg: var(--ref01-ink);
    --v5-cta-arc-glow: var(--ref01-accent-glow);
    --v5-cta-ink: #ffffff;
    --v5-cta-ink-muted: rgb(255 255 255 / 0.72);
}

.front-page--v5 .ref01-section {
    padding-block: var(--v5-section-pad);
}

/* Hero v5 — typographic + orange mesh */
.ref01-hero--v5 {
    padding-top: calc(var(--ref01-header-h) + var(--ref01-space-32));
    padding-bottom: calc(var(--v5-section-pad) - var(--ref01-space-16));
    overflow: hidden;
}

.ref01-hero--v5 .ref01-hero__mesh {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        var(--v5-hero-mesh-a),
        var(--v5-hero-mesh-b);
}

.ref01-hero--v5 .ref01-hero__grid-lines {
    opacity: 0.35;
    z-index: 0;
}

.ref01-hero--v5 .ref01-hero__inner {
    position: relative;
    z-index: 1;
}

.ref01-hero--v5 .ref01-hero__copy--v5 {
    max-width: 42rem;
}

.ref01-hero--v5 .ref01-hero__title {
    font-family: var(--ref01-font-display);
    font-size: clamp(2.75rem, 5vw, 4.25rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.08;
    max-width: var(--v5-hero-title-max);
}

.ref01-hero--v5 .ref01-hero__title--single {
    max-width: none;
}

.ref01-hero--v5 .ref01-hero__title em {
    font-family: var(--ref01-font-lead);
    font-style: normal;
    font-weight: 700;
    color: var(--ref01-accent);
}

.ref01-hero--v5 .ref01-hero__lead {
    font-family: var(--ref01-font-lead);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 0;
}

.ref01-hero--v5 .ref01-hero__cta-row {
    margin-top: var(--ref01-space-32);
}

/* About v5 */
.ref01-about--v5 {
    margin-top: 0;
}

.ref01-about--v5 .ref01-about__layout-v5 {
    display: grid;
    gap: var(--ref01-space-32);
    align-items: start;
}

@media (min-width: 768px) {
    .ref01-about--v5 .ref01-about__layout-v5 {
        grid-template-columns: 1fr 1fr;
        gap: var(--ref01-space-48);
    }
}

.ref01-about--v5 .ref01-about__quote {
    font-family: var(--ref01-font-lead);
    font-style: normal;
    font-weight: 600;
    font-size: clamp(1.375rem, 2.5vw, 1.75rem);
    line-height: 1.35;
    color: var(--ref01-ink);
    margin: 0;
}

.ref01-about--v5 .ref01-about__text {
    font-family: var(--ref01-font-lead);
    color: var(--ref01-ink-muted);
    line-height: 1.6;
    margin-bottom: var(--ref01-space-16);
}

.ref01-about--v5 .ref01-about__stack {
    margin-top: var(--ref01-space-24);
}

/* Trust strip v5 */
.ref01-trust-strip--v5 {
    padding-block: var(--ref01-space-24);
    padding-inline: 0;
    border: none;
    border-radius: 0;
    background: transparent;
}

.ref01-trust-strip--v5.ref01-section--surface-alt {
    background: var(--ref01-surface-elevated);
}

.ref01-trust-strip__v5-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--ref01-space-24);
    padding-bottom: var(--ref01-space-16);
}

.ref01-trust-strip__v5-text {
    margin: 0;
    font-family: var(--ref01-font-display);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--ref01-ink-muted);
}

.ref01-trust-strip--v5 .ref01-partner-strip__logos {
    opacity: var(--ref01-partner-fade);
}

/* Explore hub v5 — 4 equal cards 2×2 */
.ref01-explore-hub--v5 {
    padding-top: var(--ref01-space-48);
}

.ref01-explore-hub--v5 .ref01-explore-hub__header {
    margin-bottom: var(--ref01-space-32);
}

.ref01-explore-hub__grid--v5 {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--ref01-space-16);
    list-style: none;
    margin: 0;
    padding: 0;
}

@media (min-width: 768px) {
    .ref01-explore-hub__grid--v5 {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--ref01-space-32);
    }
}

.ref01-explore-card--v5 {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: var(--v5-explore-card-pad);
    gap: var(--v5-explore-card-gap);
    background: var(--v5-explore-card-bg);
    border: var(--v5-explore-card-border);
    border-radius: var(--v5-explore-card-radius);
    box-shadow: var(--v5-explore-card-shadow);
    transition:
        transform 0.25s var(--ref01-ease),
        box-shadow 0.25s var(--ref01-ease);
}

@media (prefers-reduced-motion: no-preference) {
    .ref01-explore-card--v5:hover {
        transform: var(--v5-explore-card-lift);
        box-shadow: var(--v5-explore-card-shadow-hover);
    }
}

.ref01-explore-hub--v5 .ref01-explore-card__title {
    margin: 0 0 var(--ref01-space-12);
    font-family: var(--ref01-font-display);
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.25;
}

.ref01-explore-hub--v5 .ref01-explore-card__text {
    margin: 0 0 var(--ref01-space-12);
    font-family: var(--ref01-font-lead);
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--ref01-ink-muted);
}

.ref01-explore-hub--v5 .ref01-explore-card__cta {
    margin-top: auto;
    color: var(--ref01-accent);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: var(--ref01-space-8);
}

.ref01-explore-hub--v5 .ref01-explore-card__icon-wrap {
    display: inline-flex;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    border-radius: var(--ref01-radius-sm);
    background: var(--ref01-surface-elevated);
    color: var(--ref01-ink);
    margin-bottom: var(--ref01-space-8);
}

.ref01-explore-hub--v5 .ref01-explore-icon {
    width: 40px;
    height: 40px;
}

/* Contact CTA v5 */
.ref01-contact-cta--v5 {
    background: var(--v5-cta-band-bg);
    position: relative;
    padding-top: calc(var(--v5-section-pad) + 56px);
    padding-bottom: var(--v5-section-pad);
    color: var(--v5-cta-ink);
}

.ref01-contact-cta--v5 .ref01-horizon-arc {
    z-index: 0;
}

.ref01-contact-cta--v5 .ref01-contact-cta__inner {
    z-index: 1;
}

.ref01-contact-cta--v5 .ref01-kicker {
    color: var(--v5-cta-ink-muted);
}

.ref01-contact-cta--v5 .ref01-contact-cta__lead {
    font-family: var(--ref01-font-lead);
    color: var(--v5-cta-ink-muted);
}

.ref01-contact-cta--no-mascot .ref01-contact-cta__inner {
    grid-template-columns: 1fr;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.ref01-contact-cta--no-mascot .ref01-contact-cta__title {
    max-width: none;
}

.ref01-contact-cta--no-mascot .ref01-contact-cta__lead {
    max-width: none;
    margin-inline: auto;
}

.ref01-contact-cta--no-mascot .ref01-contact-cta__actions {
    justify-content: center;
}

@media (max-width: 1024px) {
    .kharag-ref01 {
        --ref01-header-h: 92px;
    }
}

@media (max-width: 640px) {
    .ref01-hero--v5 .ref01-hero__title {
        font-size: clamp(2rem, 8vw, 2.75rem);
    }

    .ref01-trust-strip__v5-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .ref01-contact-cta__actions {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .ref01-contact-cta__actions .ref01-pill-cta {
        width: 100%;
        justify-content: center;
        max-width: none;
    }
}

/* ── V6 Seamless canvas (no SVG dividers on homepage flow) ── */

.front-page--v6 {
    --v6-canvas-bg: var(--ref01-bg);
    --v6-bridge-h: 120px;
    background: var(--v6-canvas-bg);
}

.kharag-ref01 .site-main.front-page--v6 {
    background: var(--v6-canvas-bg);
}

.front-page--v6 .ref01-section-divider {
    display: none;
}

.front-page--v6 .ref01-section--elevated,
.front-page--v6 .ref01-section--surface-alt {
    background: transparent;
}

/* Hero — warm canvas + animated mesh layers */
.front-page--v6 .ref01-hero--v5 {
    background: transparent;
}

.front-page--v6 .ref01-hero--v5 .ref01-hero__mesh {
    background: none;
    overflow: hidden;
}

.front-page--v6 .ref01-hero--v5 .ref01-hero__mesh::before,
.front-page--v6 .ref01-hero--v5 .ref01-hero__mesh::after {
    content: "";
    position: absolute;
    inset: -20%;
    pointer-events: none;
    will-change: transform, opacity;
}

.front-page--v6 .ref01-hero--v5 .ref01-hero__mesh::before {
    background: var(--v5-hero-mesh-a);
    animation: v6-mesh-drift-a 20s ease-in-out infinite;
}

.front-page--v6 .ref01-hero--v5 .ref01-hero__mesh::after {
    background: var(--v5-hero-mesh-b);
    animation: v6-mesh-drift-b 20s ease-in-out infinite;
    animation-delay: -10s;
}

@keyframes v6-mesh-drift-a {
    0%,
    100% {
        transform: translate3d(0, 0, 0) scale(1);
        opacity: 0.82;
    }

    50% {
        transform: translate3d(2.5%, -1.5%, 0) scale(1.05);
        opacity: 1;
    }
}

@keyframes v6-mesh-drift-b {
    0%,
    100% {
        transform: translate3d(0, 0, 0) scale(1);
        opacity: 0.7;
    }

    50% {
        transform: translate3d(-2%, 2%, 0) scale(1.06);
        opacity: 0.92;
    }
}

/* About — white bleed from hero canvas */
.front-page--v6 .ref01-about--v5 {
    background: transparent;
}

.front-page--v6 .ref01-about--v5::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: linear-gradient(
        180deg,
        var(--ref01-bg) 0%,
        var(--ref01-surface) var(--v6-bridge-h),
        var(--ref01-surface) 100%
    );
}

.front-page--v6 .ref01-about--v5 .ref01-container {
    position: relative;
    z-index: 1;
}

.front-page--v6 .ref01-about--v5::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: var(--v6-bridge-h);
    z-index: 0;
    pointer-events: none;
    background: linear-gradient(
        180deg,
        transparent 0%,
        var(--ref01-surface-elevated) 100%
    );
}

/* Trust + explore — shared elevated panel, soft bridge from about */
.front-page--v6 .ref01-trust-strip--v5,
.front-page--v6 .ref01-explore-hub--v5 {
    position: relative;
    background: transparent;
}

.front-page--v6 .ref01-trust-strip--v5::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: linear-gradient(
        180deg,
        var(--ref01-surface) 0%,
        var(--ref01-surface-elevated) var(--v6-bridge-h),
        var(--ref01-surface-elevated) 100%
    );
}

.front-page--v6 .ref01-trust-strip--v5 .ref01-container,
.front-page--v6 .ref01-explore-hub--v5 .ref01-container {
    position: relative;
    z-index: 1;
}

.front-page--v6 .ref01-explore-hub--v5::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: var(--ref01-surface-elevated);
}

.front-page--v6 .ref01-trust-strip--v5.ref01-section--surface-alt {
    background: transparent;
}

/* Contact — CSS-only fade into dark band + horizon arc */
.front-page--v6 .ref01-contact-cta--v5 {
    margin-top: 0;
    padding-top: calc(var(--v5-section-pad) + 72px);
    overflow: hidden;
}

.front-page--v6 .ref01-contact-cta--v5::before {
    content: "";
    position: absolute;
    top: -200px;
    left: 0;
    right: 0;
    height: 240px;
    z-index: 0;
    pointer-events: none;
    background: linear-gradient(
        180deg,
        var(--ref01-surface-elevated) 0%,
        rgb(20 20 20 / 0.35) 52%,
        var(--ref01-ink) 100%
    );
}

/* Scroll reveal */
.front-page--v6 .ref01-section--reveal {
    opacity: 0;
    transform: translate3d(0, 12px, 0);
    transition:
        opacity 0.65s var(--ref01-ease),
        transform 0.65s var(--ref01-ease);
}

.front-page--v6 .ref01-section--reveal.is-revealed {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

@media (prefers-reduced-motion: reduce) {
    .front-page--v6 .ref01-hero--v5 .ref01-hero__mesh::before,
    .front-page--v6 .ref01-hero--v5 .ref01-hero__mesh::after {
        animation: none;
        opacity: 0.85;
    }

    .front-page--v6 .ref01-section--reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

