/* ==========================================================================
   Web Local Reach — Main Stylesheet
   Layout, typography and motion follow the Mivon creative-agency style:
   near-black canvas, Funnel Display type, glass navigation, 30px rounded
   cards, blur-in reveals and pinned scroll sections. Colours are taken
   from the Web Local Reach logo.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */

:root {
    /* Brand colours sampled from the logo */
    --brand-navy: #17253e;
    --brand-blue: #0076bb;
    --brand-blue-deep: #01609b;
    --brand-green: #3ed5a0;
    --brand-green-deep: #1fb98b;
    --brand-teal: #28ceb4;

    /* Surfaces (reference layout values, tinted towards the brand navy) */
    --bg-body: #12161d;
    --bg-card: #1a1f27;
    --bg-card-soft: #222833;
    --bg-white: #ffffff;

    /* Text */
    --text: #ffffff;
    --text-70: rgba(255, 255, 255, 0.7);
    --text-50: rgba(255, 255, 255, 0.5);
    --text-dark: #12161d;

    /* Lines */
    --line-30: rgba(255, 255, 255, 0.3);
    --line-20: rgba(255, 255, 255, 0.2);
    --line-10: rgba(255, 255, 255, 0.1);
    --line-05: rgba(255, 255, 255, 0.05);

    /* Accent (fills the role of the reference lime colour) */
    --accent: var(--brand-green);
    --gradient-brand: linear-gradient(120deg, var(--brand-blue) 0%, var(--brand-teal) 55%, var(--brand-green) 100%);

    /* Typography */
    --font: "Funnel Display", "Segoe UI", sans-serif;

    /* Layout */
    --container: 1420px;
    --gutter: 20px;
    --radius-btn: 10px;
    --radius-nav: 15px;
    --radius-card: 30px;
    --radius-panel: 50px;
    --radius-pill: 100px;

    /* Motion */
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-roll: cubic-bezier(0.76, 0, 0.24, 1);
}

/* --------------------------------------------------------------------------
   2. Reset and base
   -------------------------------------------------------------------------- */

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

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

html.lenis,
html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

body {
    background-color: var(--bg-body);
    color: var(--text);
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

body.is-loading {
    overflow: hidden;
}

main {
    overflow-x: clip;
}

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

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

ul,
ol {
    list-style: none;
}

button,
input,
select,
textarea {
    font: inherit;
    color: inherit;
}

button {
    background: none;
    border: 0;
    cursor: pointer;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 500;
    line-height: 1.1;
}

::selection {
    background-color: var(--accent);
    color: var(--text-dark);
}

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

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.skip-link {
    position: fixed;
    top: -60px;
    left: 16px;
    z-index: 4000;
    padding: 10px 18px;
    border-radius: var(--radius-btn);
    background-color: var(--accent);
    color: var(--text-dark);
    font-weight: 600;
    transition: top 0.3s;
}

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

/* --------------------------------------------------------------------------
   3. Layout helpers
   -------------------------------------------------------------------------- */

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

.section {
    position: relative;
    padding: 120px 0;
}

.section--sub {
    background-color: var(--bg-card);
}

.section--flush-top {
    padding-top: 0;
}

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

.text-70 {
    color: var(--text-70);
}

.text-50 {
    color: var(--text-50);
}

.text-center {
    text-align: center;
}

/* --------------------------------------------------------------------------
   4. Typography
   -------------------------------------------------------------------------- */

/* "• Label" eyebrow — the dot is replaced by the logo pin */
.suptitle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 500;
    text-transform: uppercase;
}

.suptitle__pin {
    width: 11px;
    height: 15px;
    flex-shrink: 0;
    animation: pin-bob 2.4s ease-in-out infinite;
}

.title-lg {
    font-size: clamp(38px, 4.2vw, 60px);
    font-weight: 500;
    line-height: 1.1;
    text-transform: uppercase;
}

.title-lg .is-soft {
    opacity: 0.7;
}

.title-md {
    font-size: clamp(32px, 3.4vw, 48px);
    font-weight: 500;
    line-height: 1.15;
}

/* Section head with a top rule: label | title | action */
.sec-head {
    display: grid;
    grid-template-columns: 3fr 6fr 3fr;
    align-items: start;
    gap: 24px;
    margin-bottom: 80px;
    padding-top: 40px;
    border-top: 1px solid var(--line-20);
}

.sec-head__action {
    justify-self: end;
}

.sec-head__text {
    max-width: 560px;
    margin-top: 24px;
    color: var(--text-70);
}

.sec-head--center {
    display: block;
    border-top: 0;
    padding-top: 0;
    text-align: center;
}

.sec-head--center .title-md {
    max-width: 620px;
    margin: 20px auto 0;
}

/* --------------------------------------------------------------------------
   5. Rolling text (letters roll up on hover)
   -------------------------------------------------------------------------- */

.rolling-text {
    position: relative;
    display: inline-block;
    height: 1.25em;
    line-height: 1.25em;
    overflow: hidden;
    vertical-align: middle;
}

.rolling-text .block {
    display: block;
    white-space: nowrap;
}

.rolling-text .letter {
    display: inline-block;
    transition: transform 0.6s var(--ease-roll);
    transition-delay: calc(var(--i, 0) * 0.015s);
}

a:hover .rolling-text .letter,
button:hover .rolling-text .letter,
.rolling-text:hover .letter {
    transform: translateY(-100%);
}

/* --------------------------------------------------------------------------
   6. Buttons
   -------------------------------------------------------------------------- */

/* Solid white button with a dark arrow square */
.mil-btn {
    display: inline-flex;
    align-items: center;
    gap: 20px;
    padding: 7px 7px 7px 20px;
    border-radius: var(--radius-btn);
    background-color: var(--bg-white);
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    transition: background-color 0.4s, color 0.4s;
}

.mil-btn:hover {
    background-color: var(--accent);
}

.arrow-icon {
    position: relative;
    display: block;
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    border-radius: 8px;
    background-color: var(--text-dark);
    color: var(--bg-white);
    overflow: hidden;
}

/* Two arrows: one slides out, the other slides in */
.arrow-icon svg {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
    transform: translate(-50%, -50%);
    transition: transform 0.5s var(--ease-roll);
}

.arrow-icon svg + svg {
    transform: translate(-250%, -50%);
}

a:hover .arrow-icon svg:first-child,
button:hover .arrow-icon svg:first-child {
    transform: translate(150%, -50%);
}

a:hover .arrow-icon svg + svg,
button:hover .arrow-icon svg + svg {
    transform: translate(-50%, -50%);
}

/* Glass button used on top of images */
.butn-blur {
    display: inline-flex;
    align-items: center;
    gap: 20px;
    padding: 10px 10px 10px 20px;
    border-radius: var(--radius-btn);
    background-color: rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    transition: background-color 0.4s;
}

.butn-blur .arrow-icon {
    background-color: var(--bg-white);
    color: var(--text-dark);
}

.butn-blur:hover {
    background-color: rgba(0, 0, 0, 0.4);
}

/* Bordered pill */
.butn-bord-sm {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 30px;
    font-size: 16px;
    transition: background-color 0.4s, color 0.4s, border-color 0.4s;
}

a.butn-bord-sm:hover,
button.butn-bord-sm:hover,
.butn-bord-sm.is-active {
    border-color: var(--bg-white);
    background-color: var(--bg-white);
    color: var(--text-dark);
}

/* "See more" text + circle */
.butn-more {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
}

.circle-arrow {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 50%;
    background-color: var(--bg-white);
    color: var(--text-dark);
    transition: transform 0.5s var(--ease), background-color 0.4s;
}

.circle-arrow svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

a:hover > .circle-arrow,
button:hover > .circle-arrow {
    background-color: var(--accent);
    transform: rotate(-45deg);
}

/* Magnetic hover target */
.hover-this .hover-anim {
    display: inline-block;
    transition: transform 0.3s var(--ease);
}

/* Small bordered tags */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    display: inline-block;
    padding: 10px 20px;
    border: 0.8px solid var(--line-30);
    border-radius: 30px;
    font-size: 14px;
    transition: background-color 0.4s, color 0.4s, border-color 0.4s;
}

a.tag:hover {
    border-color: var(--bg-white);
    background-color: var(--bg-white);
    color: var(--text-dark);
}

/* --------------------------------------------------------------------------
   7. Loader — letters light up, then a curved wipe lifts the screen
   -------------------------------------------------------------------------- */

.loader {
    position: fixed;
    inset: 0;
    z-index: 3000;
    pointer-events: none;
}

/* Full-screen shape that morphs into a curve and lifts away */
.loader__svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.loader__svg path {
    fill: var(--bg-card);
}

.loader__content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.loader__mark {
    width: 120px;
    height: 94px;
}

.loader__text {
    font-size: 42px;
    font-weight: 500;
    letter-spacing: -0.01em;
}

.loader__text span {
    display: inline-block;
    opacity: 0.15;
    animation: letter-light 0.5s ease forwards;
    animation-delay: calc(0.3s + var(--i) * 0.06s);
}

.loader__text .is-accent {
    color: var(--accent);
}

/* CSS-only exit used when GSAP is unavailable */
.loader.is-done {
    transform: translateY(-140%);
    transition: transform 1.2s var(--ease-roll);
}

/* --------------------------------------------------------------------------
   8. Animated logo mark (SVG rebuild of the logo icon parts)
   -------------------------------------------------------------------------- */

.mark {
    overflow: visible;
}

.mark__screen {
    fill: none;
    stroke: url(#markScreenGradient);
    stroke-width: 9;
    stroke-linejoin: round;
    stroke-dasharray: 420;
    stroke-dashoffset: 420;
    animation: draw-line 1.2s var(--ease) 0.2s forwards;
}

.mark__stand {
    fill: var(--brand-blue-deep);
    opacity: 0;
    transform-origin: 50% 100%;
    transform-box: fill-box;
    animation: scale-up 0.6s var(--ease) 0.9s forwards;
}

.mark__pin {
    transform-origin: 50% 100%;
    transform-box: fill-box;
    opacity: 0;
    animation: pin-drop 0.9s var(--ease) 0.5s forwards;
}

.mark__pin-body {
    fill: url(#markPinGradient);
}

.mark__pin-dot {
    fill: #ffffff;
}

.mark__ring {
    fill: none;
    stroke: var(--brand-blue);
    stroke-width: 5;
    transform-origin: center;
    transform-box: fill-box;
    opacity: 0;
    animation: ring-pulse 2.6s var(--ease) 1.2s infinite;
}

.mark__ring--2 {
    animation-delay: 1.6s;
}

.mark__swoosh {
    fill: none;
    stroke: url(#markSwooshGradient);
    stroke-width: 7;
    stroke-linecap: round;
    stroke-dasharray: 300;
    stroke-dashoffset: 300;
    animation: draw-line 1s var(--ease) 1s forwards;
}

.mark__square {
    transform-origin: center;
    transform-box: fill-box;
    opacity: 0;
    animation: square-pop 0.6s var(--ease) forwards, square-float 3.2s ease-in-out infinite;
}

.mark__square--1 {
    fill: var(--brand-blue);
    animation-delay: 1.1s, 1.8s;
}

.mark__square--2 {
    fill: var(--brand-blue-deep);
    animation-delay: 1.25s, 2.1s;
}

.mark__square--3 {
    fill: var(--brand-green);
    animation-delay: 1.4s, 2.4s;
}

.mark__square--4 {
    fill: var(--brand-blue-deep);
    animation-delay: 1.55s, 2.7s;
}

.mark__speed {
    stroke: var(--brand-blue);
    stroke-width: 5;
    stroke-linecap: round;
    stroke-dasharray: 80;
    stroke-dashoffset: 80;
    animation: draw-line 0.7s var(--ease) forwards;
}

.mark__speed--1 {
    animation-delay: 1.5s;
}

.mark__speed--2 {
    animation-delay: 1.62s;
}

.mark__speed--3 {
    animation-delay: 1.74s;
}

/* --------------------------------------------------------------------------
   9. Header
   -------------------------------------------------------------------------- */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 10px 0;
    transition: transform 0.6s var(--ease), background-color 0.3s;
}

.navbar.is-up {
    transform: translateY(-110%);
}

.navbar__inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 20px;
}

/* The original logo has a white background, so it sits on a white chip */
.logo {
    position: relative;
    display: inline-flex;
    justify-self: start;
    padding: 9px 14px;
    border-radius: var(--radius-btn);
    background-color: var(--bg-white);
    overflow: hidden;
}

.logo img {
    width: 140px;
    height: auto;
}

/* Light sweep across the logo on hover */
.logo::after {
    content: "";
    position: absolute;
    top: 0;
    left: -60%;
    width: 40%;
    height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.9), transparent);
    transform: skewX(-20deg);
    pointer-events: none;
}

.logo:hover::after {
    animation: shine 0.9s var(--ease);
}

.nav-pill {
    display: flex;
    padding: 0 22px;
    border-radius: var(--radius-nav);
    background-color: rgba(40, 46, 56, 0.4);
    backdrop-filter: blur(96px);
    -webkit-backdrop-filter: blur(96px);
}

.nav-pill__link {
    display: block;
    padding: 22px 12px 20px;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    opacity: 0.85;
    transition: opacity 0.3s;
}

.nav-pill__link:hover,
.nav-pill__link.is-active {
    opacity: 1;
}

.nav-pill__link.is-active {
    color: var(--accent);
}

.navbar__actions {
    display: flex;
    align-items: center;
    justify-self: end;
    gap: 10px;
}

.icon-btn {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-btn);
    background-color: rgba(40, 46, 56, 0.4);
    backdrop-filter: blur(96px);
    -webkit-backdrop-filter: blur(96px);
    transition: background-color 0.3s, color 0.3s;
}

.icon-btn:hover {
    background-color: var(--bg-white);
    color: var(--text-dark);
}

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

.menu-lines {
    display: grid;
    gap: 5px;
    width: 20px;
}

.menu-lines span {
    display: block;
    height: 2px;
    border-radius: 2px;
    background-color: currentColor;
}

.menu-lines span:nth-child(2) {
    width: 70%;
    justify-self: end;
    transition: width 0.3s;
}

.icon-btn:hover .menu-lines span:nth-child(2) {
    width: 100%;
}

/* --------------------------------------------------------------------------
   10. Full-screen menu (drops from the top)
   -------------------------------------------------------------------------- */

.hamenu {
    position: fixed;
    top: -120vh;
    left: 10px;
    right: 10px;
    z-index: 2000;
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    height: calc(100vh - 20px);
    margin-top: 10px;
    border-radius: var(--radius-panel);
    background-color: var(--bg-card);
    overflow: hidden;
    transition: top 0.7s var(--ease-roll);
}

.hamenu.is-open {
    top: 0;
}

.menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 1990;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s, visibility 0.5s;
}

.menu-overlay.is-active {
    opacity: 1;
    visibility: visible;
}

.hamenu__links {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px 80px;
}

.hamenu__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 640px;
    transition: opacity 0.4s;
}

.hamenu__links.has-hover .hamenu__item {
    opacity: 0.2;
}

.hamenu__links.has-hover .hamenu__item:hover {
    opacity: 1;
}

.hamenu__link {
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 500;
    line-height: 1.15;
    text-transform: uppercase;
}

.hamenu__item span {
    font-size: 24px;
    color: var(--text-50);
}

.hamenu__link.is-active {
    color: var(--accent);
}

.hamenu__info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 30px;
    padding: 60px;
    border-left: 1px solid var(--line-10);
}

.hamenu__info img {
    width: 100%;
    height: 220px;
    border-radius: 20px;
    object-fit: cover;
}

.hamenu__info h6 {
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    color: var(--text-50);
}

.hamenu__close {
    position: absolute;
    top: 30px;
    right: 30px;
}

/* --------------------------------------------------------------------------
   11. Home hero
   -------------------------------------------------------------------------- */

.hero {
    position: relative;
    padding: 200px 0 80px;
}

/* Grid pattern panel with rounded bottom corners */
.hero__bg {
    position: absolute;
    inset: 0 0 0 0;
    z-index: -1;
    border-radius: 0 0 var(--radius-panel) var(--radius-panel);
    background-image:
        linear-gradient(var(--line-05) 1px, transparent 1px),
        linear-gradient(90deg, var(--line-05) 1px, transparent 1px),
        radial-gradient(ellipse at 80% 0%, rgba(62, 213, 160, 0.12), transparent 60%);
    background-size: 80px 80px, 80px 80px, 100% 100%;
    background-color: #151a22;
}

.hero__title {
    max-width: 960px;
    font-size: clamp(44px, 5.2vw, 75px);
    font-weight: 500;
    line-height: 1.1;
}

/* Muted underlined keyword */
.hero__title .underline {
    position: relative;
    display: inline-block;
    opacity: 0.5;
    text-decoration: underline;
    text-decoration-thickness: 3px;
    text-underline-offset: 8px;
}

.hero__bottom {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 40px;
    margin-top: 80px;
}

.hero__aside {
    justify-self: end;
    max-width: 360px;
}

.hero__aside p {
    margin-bottom: 30px;
    font-size: 16px;
    color: var(--text-70);
}

/* Rotating circular text with the logo mark in the middle */
.circle-button {
    position: relative;
    display: grid;
    place-items: center;
    width: 250px;
    height: 250px;
}

.circle-button__text {
    position: absolute;
    inset: 0;
    animation: spin 20s linear infinite;
}

.circle-button__text text {
    fill: var(--text);
    font-family: var(--font);
    font-size: 16px;
    letter-spacing: 7px;
    text-transform: uppercase;
}

.circle-button .mark {
    width: 120px;
    height: 94px;
    transition: transform 0.6s var(--ease);
}

.circle-button:hover .mark {
    transform: scale(1.1) rotate(-6deg);
}

/* --------------------------------------------------------------------------
   12. Horizontal pinned panels
   -------------------------------------------------------------------------- */

.hr-sec {
    overflow: hidden;
    padding: 40px 0 0;
}

.hr-container {
    display: flex;
    width: max-content;
    padding: 0 calc(var(--gutter) - 15px);
}

.item-panel {
    width: 50vw;
    max-width: 50vw;
    padding: 0 15px;
}

.panel-card {
    position: relative;
    display: block;
    height: 630px;
    border-radius: var(--radius-card);
    background-color: var(--bg-card);
    overflow: hidden;
}

.panel-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.06);
    transition: transform 1.2s var(--ease);
}

.panel-card:hover img {
    transform: scale(1);
}

.panel-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.25) 0%, transparent 35%, transparent 60%, rgba(0, 0, 0, 0.45) 100%);
    pointer-events: none;
}

.panel-card__tags {
    position: absolute;
    top: 30px;
    left: 30px;
    z-index: 1;
}

.panel-card__tags .tag {
    border-color: rgba(255, 255, 255, 0.6);
    background-color: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(6px);
}

.panel-card .butn-blur {
    position: absolute;
    left: 30px;
    bottom: 30px;
    z-index: 1;
}

/* --------------------------------------------------------------------------
   13. About statement
   -------------------------------------------------------------------------- */

.about {
    position: relative;
    text-align: center;
}

.about__text {
    max-width: 1120px;
    margin: 30px auto 0;
    font-size: clamp(28px, 3.4vw, 48px);
    font-weight: 400;
    line-height: 1.25;
}

/* Floating logo squares in the corner */
.shape-squares {
    position: absolute;
    top: 40px;
    right: 6%;
    width: 160px;
    height: 160px;
    pointer-events: none;
    opacity: 0.85;
}

.shape-squares span {
    position: absolute;
    border-radius: 8px;
    animation: square-float 4s ease-in-out infinite;
}

.shape-squares span:nth-child(1) {
    top: 0;
    left: 80px;
    width: 46px;
    height: 46px;
    background-color: var(--brand-blue);
}

.shape-squares span:nth-child(2) {
    top: 40px;
    left: 18px;
    width: 40px;
    height: 40px;
    background-color: var(--brand-blue-deep);
    animation-delay: 0.6s;
}

.shape-squares span:nth-child(3) {
    top: 66px;
    left: 74px;
    width: 44px;
    height: 44px;
    background-color: var(--brand-green);
    animation-delay: 1.2s;
}

.shape-squares span:nth-child(4) {
    top: 108px;
    left: 28px;
    width: 28px;
    height: 28px;
    background-color: var(--brand-blue-deep);
    animation-delay: 1.8s;
}

.shape-squares--left {
    top: -40px;
    right: auto;
    left: 4%;
}

/* --------------------------------------------------------------------------
   14. Service-style cards (featured listings)
   -------------------------------------------------------------------------- */

.serv-track {
    display: flex;
    gap: 30px;
    padding-bottom: 10px;
    overflow-x: auto;
    scrollbar-width: none;
    cursor: grab;
}

.serv-track::-webkit-scrollbar {
    display: none;
}

.serv-track.is-dragging {
    cursor: grabbing;
    user-select: none;
}

.serv-track .serv-card {
    flex: 0 0 447px;
}

.serv-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.serv-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 520px;
    padding: 60px 40px 40px;
    border: 0.8px solid var(--line-30);
    border-radius: var(--radius-card);
    overflow: hidden;
    transition: background-color 0.4s, color 0.4s, border-color 0.4s;
}

.serv-card:hover {
    border-color: var(--bg-white);
    background-color: var(--bg-white);
    color: var(--text-dark);
}

.serv-card__cat {
    margin-bottom: 14px;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    color: var(--accent);
    transition: color 0.4s;
}

.serv-card:hover .serv-card__cat {
    color: var(--brand-blue);
}

.serv-card__title {
    font-size: 26px;
    line-height: 1.25;
}

.serv-card__text {
    margin-top: 20px;
    font-size: 15px;
    opacity: 0.7;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.serv-card__foot {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-top: auto;
    padding-top: 30px;
}

.serv-card__img {
    display: grid;
    place-items: center;
    width: 150px;
    height: 110px;
    padding: 12px;
    border-radius: 18px;
    background-color: var(--bg-white);
    transform: rotate(-4deg);
    transition: transform 0.6s var(--ease), box-shadow 0.4s;
}

.serv-card__img img {
    max-height: 86px;
    width: auto;
    object-fit: contain;
}

.serv-card:hover .serv-card__img {
    transform: rotate(0) scale(1.06);
    box-shadow: 0 20px 40px rgba(18, 22, 29, 0.15);
}

.serv-card .butn-more .circle-arrow {
    background-color: var(--bg-white);
}

.serv-card:hover .butn-more .circle-arrow {
    background-color: var(--text-dark);
    color: var(--bg-white);
}

/* Icon variant (services page) */
.serv-card__icon {
    width: 70px;
    height: 70px;
    margin-bottom: 40px;
}

/* --------------------------------------------------------------------------
   15. Community block (team-style section)
   -------------------------------------------------------------------------- */

.user-imgs {
    display: flex;
    align-items: center;
    margin-top: 30px;
}

.user-imgs img {
    width: 45px;
    height: 45px;
    border: 2px solid var(--bg-body);
    border-radius: 50%;
    background-color: var(--bg-card);
    object-fit: cover;
}

.user-imgs img + img {
    margin-left: -12px;
}

.user-imgs span {
    margin-left: 12px;
    font-size: 14px;
}

.community-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
}

.feature-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 500px;
    padding: 40px;
    border-radius: var(--radius-card);
    background-color: var(--bg-card);
}

.feature-card__icon {
    width: 80px;
    height: 80px;
}

.feature-card h6 {
    margin-bottom: 14px;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    opacity: 0.7;
}

.feature-card h3 {
    font-size: 30px;
    line-height: 1.25;
}

.photo-card {
    position: relative;
    min-height: 500px;
    border-radius: var(--radius-card);
    background-color: var(--bg-card);
    overflow: hidden;
}

.photo-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-card .butn-blur {
    position: absolute;
    left: 30px;
    bottom: 30px;
}

.stat-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 30px;
}

.stat-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 220px;
    padding: 30px;
    border: 0.8px solid var(--line-20);
    border-radius: var(--radius-card);
    transition: border-color 0.4s, background-color 0.4s;
}

.stat-card:hover {
    border-color: var(--accent);
    background-color: rgba(62, 213, 160, 0.05);
}

.stat-card__head {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    text-transform: uppercase;
}

.stat-card__value {
    font-size: clamp(48px, 5vw, 70px);
    font-weight: 500;
    line-height: 1;
}

/* --------------------------------------------------------------------------
   16. Testimonials slider
   -------------------------------------------------------------------------- */

.testim {
    padding-bottom: 80px;
    border-radius: var(--radius-panel);
    background-color: var(--bg-card);
}

.testim__slider {
    position: relative;
    display: grid;
}

.testim__slide {
    display: grid;
    grid-template-columns: 3fr 9fr;
    align-items: end;
    gap: 60px;
    grid-area: 1 / 1;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s, visibility 0.8s;
}

.testim__slide.is-active {
    opacity: 1;
    visibility: visible;
}

.testim__img {
    width: 100%;
    max-width: 398px;
    aspect-ratio: 1;
    border-radius: var(--radius-card);
    background-color: var(--bg-card-soft);
    object-fit: cover;
    clip-path: inset(0 0 100% 0 round 30px);
    transition: clip-path 1.2s var(--ease-roll);
}

.testim__slide.is-active .testim__img {
    clip-path: inset(0 0 0 0 round 30px);
}

.testim__quote-mark {
    width: 54px;
    height: 54px;
    margin-bottom: 30px;
    color: var(--accent);
}

.testim__text {
    max-width: 840px;
    font-size: clamp(22px, 2.2vw, 30px);
    line-height: 1.4;
}

.testim__slide.is-active .testim__text {
    animation: blur-in 1s var(--ease) both;
}

.testim__author {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 30px;
    font-size: 15px;
}

.testim__author strong {
    font-weight: 600;
}

.testim__controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    margin-top: 40px;
}

.testim__count {
    margin-right: 10px;
    font-size: 14px;
}

.nav-circle {
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    border: 1px solid var(--line-30);
    border-radius: 50%;
    transition: background-color 0.4s, color 0.4s, border-color 0.4s;
}

.nav-circle:hover {
    border-color: var(--bg-white);
    background-color: var(--bg-white);
    color: var(--text-dark);
}

.nav-circle svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.nav-circle:disabled {
    opacity: 0.3;
    pointer-events: none;
}

/* --------------------------------------------------------------------------
   17. Hover-reveal rows (categories list)
   -------------------------------------------------------------------------- */

.reveal-list {
    display: grid;
    gap: 16px;
}

.item-row {
    position: relative;
    display: grid;
    grid-template-columns: 2fr 6fr 3fr auto;
    align-items: center;
    gap: 20px;
    padding: 35px 30px;
    border: 0.8px solid var(--line-20);
    border-radius: var(--radius-pill);
    transition: opacity 0.4s, border-color 0.4s, background-color 0.4s;
}

.reveal-list.has-hover .item-row {
    opacity: 0.2;
}

.reveal-list.has-hover .item-row:hover {
    opacity: 1;
    border-color: var(--line-30);
}

.item-row__num {
    font-size: 15px;
    color: var(--text-70);
}

.item-row__title {
    font-size: 22px;
}

.item-row__meta {
    font-size: 15px;
    color: var(--text-70);
}

/* Image that follows the pointer inside a row */
.item-row__reveal {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 5;
    width: 280px;
    height: 200px;
    margin: -100px 0 0 -140px;
    border-radius: 20px;
    object-fit: cover;
    opacity: 0;
    pointer-events: none;
    transform: scale(0.8);
    transition: opacity 0.4s, scale 0.4s;
}

.item-row:hover .item-row__reveal {
    opacity: 1;
    scale: 1.1;
}

/* --------------------------------------------------------------------------
   18. Card slider (RSS + blog)
   -------------------------------------------------------------------------- */

.card-slider {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 60px) / 3);
    gap: 30px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.card-slider::-webkit-scrollbar {
    display: none;
}

.card-slider > * {
    scroll-snap-align: start;
}

.slider-controls {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 40px;
}

.slider-controls__count {
    margin-left: 10px;
    font-size: 14px;
    color: var(--text-70);
}

/* Blog / feed card */
.post-card__img {
    position: relative;
    display: block;
    height: 350px;
    margin-bottom: 30px;
    border-radius: var(--radius-card);
    background-color: var(--bg-card);
    overflow: hidden;
}

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

.post-card:hover .post-card__img img {
    transform: scale(1.06);
}

.post-card__info {
    margin-bottom: 12px;
    font-size: 13px;
    color: var(--text-70);
}

.post-card__info a:hover {
    color: var(--accent);
}

.post-card__title {
    font-size: 24px;
    line-height: 1.3;
}

.post-card__title a {
    background-image: linear-gradient(currentColor, currentColor);
    background-size: 0 1px;
    background-repeat: no-repeat;
    background-position: 0 100%;
    transition: background-size 0.6s var(--ease);
}

.post-card__title a:hover {
    background-size: 100% 1px;
}

.post-card__excerpt {
    margin-top: 14px;
    font-size: 15px;
    color: var(--text-70);
}

/* Generated cover for feed items (the RSS has no images) */
.feed-cover {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    padding: 30px;
    background:
        radial-gradient(circle at 85% 15%, rgba(62, 213, 160, 0.35), transparent 45%),
        radial-gradient(circle at 10% 90%, rgba(0, 118, 187, 0.45), transparent 50%),
        var(--bg-card-soft);
    transition: transform 1s var(--ease);
}

.post-card:hover .feed-cover {
    transform: scale(1.04);
}

.feed-cover__label {
    align-self: flex-start;
}

.feed-cover__date {
    font-size: 64px;
    font-weight: 500;
    line-height: 1;
}

.feed-cover__date small {
    display: block;
    margin-top: 8px;
    font-size: 15px;
    font-weight: 400;
    text-transform: uppercase;
    color: var(--text-70);
}

.feed-cover .suptitle__pin {
    position: absolute;
    right: 30px;
    bottom: 30px;
    width: 34px;
    height: 46px;
}

/* ESPN story photo, faded in over the branded cover once loaded */
.feed-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.6s ease, transform 1s var(--ease);
}

.post-card__img.has-photo .feed-photo {
    opacity: 1;
}

.post-card:hover .feed-photo {
    transform: scale(1.06);
}

.feed-status {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 70px 20px;
    border: 0.8px dashed var(--line-20);
    border-radius: var(--radius-card);
    text-align: center;
    color: var(--text-70);
}

.feed-status__spinner {
    width: 42px;
    height: 42px;
    border: 3px solid var(--line-10);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
}

.feed-skeleton {
    height: 480px;
    border-radius: var(--radius-card);
    background: linear-gradient(90deg, var(--bg-card) 0%, var(--bg-card-soft) 50%, var(--bg-card) 100%);
    background-size: 200% 100%;
    animation: skeleton 1.4s linear infinite;
}

/* --------------------------------------------------------------------------
   19. Accordion
   -------------------------------------------------------------------------- */

.faq-layout {
    display: grid;
    grid-template-columns: 4fr 8fr;
    gap: 60px;
}

.accordion-item {
    border-bottom: 0.8px solid var(--line-20);
}

.accordion-item:first-child {
    border-top: 0.8px solid var(--line-20);
}

.accordion-item__title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
    padding: 30px 0;
    font-size: 22px;
    font-weight: 500;
    text-align: left;
}

.accordion-item__icon {
    position: relative;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border: 0.8px solid var(--line-30);
    border-radius: 50%;
    transition: transform 0.5s var(--ease), background-color 0.4s, border-color 0.4s;
}

.accordion-item__icon::before,
.accordion-item__icon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 14px;
    height: 1.6px;
    background-color: currentColor;
    transform: translate(-50%, -50%);
}

.accordion-item__icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.accordion-item.is-open .accordion-item__icon {
    border-color: var(--accent);
    background-color: var(--accent);
    color: var(--text-dark);
    transform: rotate(135deg);
}

.accordion-item__body {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.6s var(--ease);
}

.accordion-item.is-open .accordion-item__body {
    grid-template-rows: 1fr;
}

.accordion-item__body > div {
    overflow: hidden;
}

.accordion-item__body p {
    max-width: 760px;
    padding-bottom: 30px;
    color: var(--text-70);
}

/* --------------------------------------------------------------------------
   20. Call to action
   -------------------------------------------------------------------------- */

.cta-box {
    position: relative;
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    align-items: center;
    gap: 40px;
    padding: 80px;
    border-radius: var(--radius-panel);
    background-image:
        linear-gradient(var(--line-05) 1px, transparent 1px),
        linear-gradient(90deg, var(--line-05) 1px, transparent 1px),
        linear-gradient(130deg, rgba(0, 118, 187, 0.35), rgba(62, 213, 160, 0.12));
    background-size: 60px 60px, 60px 60px, 100% 100%;
    background-color: var(--bg-card);
    overflow: hidden;
    isolation: isolate;
}

.cta-box__title {
    margin: 24px 0 20px;
    font-size: clamp(34px, 4vw, 60px);
    font-weight: 500;
    line-height: 1.1;
}

.cta-box__text {
    max-width: 520px;
    margin-bottom: 40px;
    color: var(--text-70);
}

.cta-box__visual {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 300px;
}

.cta-box__visual .mark {
    position: relative;
    z-index: 1;
    width: 260px;
    height: 204px;
}

.cta-box__ripples {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: grid;
    place-items: center;
}

.cta-box__ripples span {
    position: absolute;
    width: 280px;
    height: 110px;
    border: 2px solid rgba(62, 213, 160, 0.4);
    border-radius: 50%;
    animation: ripple-oval 4.5s var(--ease) infinite;
}

.cta-box__ripples span:nth-child(2) {
    animation-delay: 1.5s;
}

.cta-box__ripples span:nth-child(3) {
    animation-delay: 3s;
}

/* --------------------------------------------------------------------------
   21. Footer
   -------------------------------------------------------------------------- */

.footer {
    padding: 0 0 30px;
}

.footer__grid {
    display: grid;
    grid-template-columns: 904fr 466fr;
    gap: 30px;
}

.fo-box {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 50px;
    min-height: 460px;
    padding: 40px;
    border-radius: var(--radius-nav);
    background-color: var(--bg-card);
}

.fo-box__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 30px;
}

.fo-box__title {
    font-size: clamp(36px, 4vw, 60px);
    font-weight: 500;
    line-height: 1.1;
}

.fo-box__title .is-soft {
    opacity: 0.7;
}

/* Brand block and page links share one ruled row */
.fo-box__bottom {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: end;
    gap: 40px;
    padding-top: 40px;
    border-top: 0.8px solid var(--line-10);
}

.fo-logo {
    display: inline-flex;
    padding: 12px 18px;
    border-radius: var(--radius-btn);
    background-color: var(--bg-white);
    transition: transform 0.5s var(--ease);
}

.fo-logo:hover {
    transform: translateY(-4px);
}

.fo-logo img {
    width: 210px;
    height: auto;
}

.fo-brand__text {
    max-width: 300px;
    margin-top: 18px;
    font-size: 15px;
    color: var(--text-70);
}

.fo-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.fo-links .butn-bord-sm {
    padding: 8px 16px;
    font-size: 15px;
}

.fo-box__subtitle {
    font-size: 28px;
    font-weight: 500;
    line-height: 1.2;
}

.fo-box__text {
    max-width: 340px;
    margin-top: 14px;
    font-size: 15px;
    color: var(--text-70);
}

.socials {
    display: flex;
    gap: 10px;
    margin-top: 30px;
}

.socials a {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 0.8px solid var(--line-30);
    border-radius: 50%;
    transition: background-color 0.4s, color 0.4s, border-color 0.4s;
}

.socials a:hover {
    border-color: var(--bg-white);
    background-color: var(--bg-white);
    color: var(--text-dark);
}

.socials svg {
    width: 15px;
    height: 15px;
}

.fo-search {
    padding-top: 30px;
    border-top: 0.8px solid var(--line-10);
}

.fo-search label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    font-size: 15px;
}

.fo-search label svg {
    width: 16px;
    height: 16px;
}

.fo-search__field {
    display: flex;
    align-items: center;
    padding: 6px 6px 6px 20px;
    border-radius: var(--radius-btn);
    background-color: var(--bg-card-soft);
}

.fo-search__field input {
    flex: 1;
    min-width: 0;
    padding: 10px 0;
    border: 0;
    background: transparent;
    outline: none;
}

.fo-search__field input::placeholder {
    color: var(--text-50);
}

.fo-search__field button {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background-color: var(--bg-white);
    color: var(--text-dark);
    transition: background-color 0.3s;
}

.fo-search__field button:hover {
    background-color: var(--accent);
}

.fo-search__field button svg {
    width: 18px;
    height: 18px;
}

.fo-legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 16px;
    margin-top: 24px;
    padding: 0 10px;
    font-size: 14px;
    color: var(--text-70);
}

.fo-legal nav {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.fo-legal a:hover {
    color: var(--accent);
}

/* --------------------------------------------------------------------------
   22. Cursor and scroll progress
   -------------------------------------------------------------------------- */

.cursor {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 5000;
    width: 10px;
    height: 10px;
    margin: -5px 0 0 -5px;
    border-radius: 50%;
    background-color: var(--bg-white);
    mix-blend-mode: difference;
    pointer-events: none;
    opacity: 0;
    transition: transform 0.3s, opacity 0.4s;
}

.cursor.is-visible {
    opacity: 1;
}

.cursor.cursor-active {
    transform: scale(4);
}

.progress-wrap {
    position: fixed;
    right: 30px;
    bottom: 30px;
    z-index: 900;
    width: 44px;
    height: 44px;
    border-radius: 50px;
    box-shadow: inset 0 0 0 1px var(--line-20);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.4s linear;
}

.progress-wrap.is-active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.progress-wrap svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.progress-wrap path {
    fill: none;
    stroke: var(--accent);
    stroke-width: 4;
}

.progress-wrap__arrow {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
}

.progress-wrap__arrow svg {
    position: static;
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

/* --------------------------------------------------------------------------
   23. Reveal animation states
   (GSAP drives these; the CSS classes are the no-GSAP fallback)
   -------------------------------------------------------------------------- */

.no-gsap [data-reveal] {
    opacity: 0;
    filter: blur(16px);
    transform: translateY(60px);
    transition: opacity 0.6s ease-out, filter 0.6s ease-out, transform 0.6s ease-out;
    transition-delay: 0.2s;
}

.no-gsap [data-reveal].is-visible {
    opacity: 1;
    filter: blur(0);
    transform: none;
}

/* --------------------------------------------------------------------------
   24. Inner page hero
   -------------------------------------------------------------------------- */

.pg-hero {
    position: relative;
    padding: 220px 0 100px;
}

.pg-hero__row {
    display: grid;
    grid-template-columns: 3fr 9fr;
    align-items: start;
    gap: 24px;
}

.breadcrumbs {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

.breadcrumbs a:hover {
    color: var(--accent);
}

.breadcrumbs__sep {
    opacity: 0.5;
}

.pg-hero__title {
    font-size: clamp(42px, 5.6vw, 80px);
    font-weight: 500;
    line-height: 1.1;
}

.pg-hero__title .is-soft {
    opacity: 0.5;
}

.pg-hero__lead {
    max-width: 680px;
    margin-top: 30px;
    font-size: 18px;
    color: var(--text-70);
}

/* Wide rounded image under the page hero */
.wide-img {
    position: relative;
    height: 620px;
    border-radius: var(--radius-card);
    background-color: var(--bg-card);
    overflow: hidden;
}

.wide-img img {
    width: 100%;
    height: 120%;
    object-fit: cover;
}

.wide-img__badge {
    position: absolute;
    left: 30px;
    bottom: 30px;
}

/* --------------------------------------------------------------------------
   25. Categories page
   -------------------------------------------------------------------------- */

.work-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 80px 30px;
}

.work-card__img {
    position: relative;
    display: block;
    height: 520px;
    border-radius: var(--radius-card);
    background-color: var(--bg-card);
    overflow: hidden;
}

.work-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s var(--ease);
}

.work-card:hover .work-card__img img {
    transform: scale(1.06);
}

.work-card__img .butn-blur {
    position: absolute;
    left: 30px;
    bottom: 30px;
}

.work-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 26px;
}

.work-card__title {
    font-size: 26px;
}

.work-card:nth-child(even) {
    margin-top: 120px;
}

.alpha-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 50px;
}

.alpha-filter button {
    min-width: 44px;
    padding: 8px 14px;
    border: 0.8px solid var(--line-30);
    border-radius: 30px;
    font-size: 15px;
    transition: background-color 0.4s, color 0.4s, border-color 0.4s;
}

.alpha-filter button:hover,
.alpha-filter button.is-active {
    border-color: var(--bg-white);
    background-color: var(--bg-white);
    color: var(--text-dark);
}

.alpha-filter button:disabled {
    opacity: 0.25;
    pointer-events: none;
}

.cat-pills {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.cat-pill {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px 24px 10px 10px;
    border: 0.8px solid var(--line-20);
    border-radius: var(--radius-pill);
    transition: background-color 0.4s, color 0.4s, border-color 0.4s;
}

.cat-pill img {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    border-radius: 50%;
    background-color: var(--bg-card);
    object-fit: cover;
}

.cat-pill__name {
    flex: 1;
    font-size: 17px;
    line-height: 1.25;
}

.cat-pill svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    transition: transform 0.4s var(--ease);
}

.cat-pill:hover {
    border-color: var(--bg-white);
    background-color: var(--bg-white);
    color: var(--text-dark);
}

.cat-pill:hover svg {
    transform: rotate(-45deg);
}

/* --------------------------------------------------------------------------
   26. Search, filters and listing rows
   -------------------------------------------------------------------------- */

.search-panel {
    display: grid;
    grid-template-columns: 1.4fr 1fr auto;
    gap: 10px;
    padding: 10px;
    border-radius: 20px;
    background-color: var(--bg-card);
}

.search-panel__field {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 20px;
    border-radius: var(--radius-btn);
    background-color: var(--bg-card-soft);
}

.search-panel__field svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: var(--accent);
}

.search-panel input,
.search-panel select {
    width: 100%;
    padding: 18px 0;
    border: 0;
    background: transparent;
    outline: none;
}

.search-panel select option {
    color: var(--text-dark);
}

.search-panel input::placeholder {
    color: var(--text-50);
}

.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 40px 0 50px;
}

.results-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 30px;
    font-size: 15px;
    color: var(--text-70);
}

.results-bar strong {
    color: var(--accent);
}

.list-card {
    display: grid;
    grid-template-columns: 240px 1fr auto;
    align-items: center;
    gap: 40px;
    padding: 20px 40px 20px 20px;
    border: 0.8px solid var(--line-20);
    border-radius: var(--radius-card);
    transition: background-color 0.4s, color 0.4s, border-color 0.4s;
}

.list-card + .list-card {
    margin-top: 20px;
}

.list-card:hover {
    border-color: var(--bg-white);
    background-color: var(--bg-white);
    color: var(--text-dark);
}

.list-card__img {
    display: grid;
    place-items: center;
    height: 170px;
    padding: 18px;
    border-radius: 20px;
    background-color: var(--bg-white);
    overflow: hidden;
}

.list-card__img img {
    max-height: 120px;
    width: auto;
    object-fit: contain;
}

.list-card__img--cover {
    padding: 0;
}

.list-card__img--cover img {
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: cover;
}

.list-card__cat {
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    color: var(--accent);
}

.list-card:hover .list-card__cat {
    color: var(--brand-blue);
}

.list-card__title {
    margin: 8px 0 12px;
    font-size: 24px;
    line-height: 1.25;
}

.list-card__text {
    font-size: 15px;
    opacity: 0.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.list-card__loc {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    font-size: 14px;
    opacity: 0.7;
}

.list-card__loc svg {
    width: 14px;
    height: 14px;
}

.list-card:hover .circle-arrow {
    background-color: var(--text-dark);
    color: var(--bg-white);
}

.empty-state {
    display: none;
    padding: 70px 30px;
    border: 0.8px dashed var(--line-20);
    border-radius: var(--radius-card);
    text-align: center;
}

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

.empty-state h3 {
    margin-bottom: 12px;
    font-size: 28px;
}

.empty-state p {
    margin-bottom: 30px;
    color: var(--text-70);
}

/* --------------------------------------------------------------------------
   27. Single listing
   -------------------------------------------------------------------------- */

.biz-banner {
    position: relative;
}

.biz-banner__logo {
    position: absolute;
    left: 40px;
    bottom: -60px;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 220px;
    height: 160px;
    padding: 20px;
    border: 8px solid var(--bg-body);
    border-radius: var(--radius-card);
    background-color: var(--bg-white);
}

.biz-banner__logo img {
    max-height: 110px;
    width: auto;
    object-fit: contain;
}

.biz-banner .wide-img {
    height: 460px;
}

.biz-layout {
    display: grid;
    grid-template-columns: 8fr 4fr;
    gap: 60px;
    align-items: start;
}

.biz-block {
    padding: 50px 0;
    border-top: 0.8px solid var(--line-20);
    scroll-margin-top: 120px;
}

.biz-block:first-child {
    padding-top: 0;
    border-top: 0;
}

.biz-block__head {
    display: grid;
    grid-template-columns: 3fr 9fr;
    gap: 24px;
}

.biz-block__title {
    margin-bottom: 24px;
    font-size: 34px;
}

.biz-block p + p {
    margin-top: 16px;
}

.biz-block p {
    color: var(--text-70);
}

.biz-aside {
    position: sticky;
    top: 110px;
    display: grid;
    gap: 20px;
}

.info-box {
    padding: 40px;
    border-radius: var(--radius-card);
    background-color: var(--bg-card);
}

.info-box h3 {
    margin-bottom: 24px;
    font-size: 24px;
}

.info-list li {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 0;
    border-bottom: 0.8px solid var(--line-10);
    font-size: 15px;
}

.info-list li:last-child {
    border-bottom: 0;
}

.info-list span {
    color: var(--text-50);
}

.info-list strong {
    font-weight: 500;
    text-align: right;
}

.info-list a:hover {
    color: var(--accent);
}

.notice {
    display: flex;
    gap: 14px;
    padding: 22px 24px;
    border: 0.8px solid var(--line-20);
    border-radius: 20px;
    font-size: 15px;
    color: var(--text-70);
}

.notice svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    color: var(--accent);
}

.notice a {
    color: var(--text);
    text-decoration: underline;
    white-space: nowrap;
}

/* Business hours: today is highlighted, status shows open or closed */
.hours {
    padding: 30px;
    border-radius: var(--radius-card);
    background-color: var(--bg-card);
}

.hours__status {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 15px;
    color: var(--text-70);
}

.hours__status svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--accent);
}

.hours__badge {
    padding: 4px 12px;
    border-radius: 30px;
    background-color: rgba(62, 213, 160, 0.15);
    color: var(--accent);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
}

.hours__badge.is-closed {
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--text-70);
}

.hours__list li {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 16px;
    border-radius: var(--radius-btn);
    font-size: 15px;
    color: var(--text-70);
    transition: background-color 0.3s;
}

.hours__list li + li {
    margin-top: 2px;
}

.hours__list strong {
    font-weight: 500;
    color: var(--text);
}

.hours__list li.is-today {
    background-color: var(--bg-white);
    color: var(--text-dark);
}

.hours__list li.is-today strong {
    color: var(--text-dark);
}

.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.gallery__item {
    display: grid;
    place-items: center;
    aspect-ratio: 4 / 3;
    border-radius: 20px;
    background-color: var(--bg-white);
    overflow: hidden;
}

.gallery__item img {
    width: 80%;
    height: 80%;
    object-fit: contain;
    transition: transform 0.8s var(--ease);
}

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

.gallery__item:hover img {
    transform: scale(1.06);
}

.map-frame {
    display: block;
    width: 100%;
    height: 420px;
    border: 0;
    border-radius: var(--radius-card);
    filter: grayscale(0.4) invert(0.9) hue-rotate(180deg);
}

.rating-summary {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 40px;
}

.rating-summary__score {
    font-size: 70px;
    font-weight: 500;
    line-height: 1;
}

.rating-bars li {
    display: grid;
    grid-template-columns: 60px 1fr 30px;
    align-items: center;
    gap: 14px;
    padding: 4px 0;
    font-size: 14px;
    color: var(--text-70);
}

.rating-bars .bar {
    height: 6px;
    border-radius: 6px;
    background-color: var(--line-10);
    overflow: hidden;
}

.rating-bars .bar span {
    display: block;
    width: 0;
    height: 100%;
    background-color: var(--accent);
}

.stars {
    display: inline-flex;
    gap: 3px;
    color: #f5b638;
}

.stars svg {
    width: 15px;
    height: 15px;
}

.star-input {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 4px;
}

.star-input input {
    position: absolute;
    opacity: 0;
}

.star-input label {
    color: var(--line-30);
    cursor: pointer;
    transition: color 0.3s, transform 0.3s;
}

.star-input label svg {
    width: 26px;
    height: 26px;
}

.star-input label:hover,
.star-input label:hover ~ label,
.star-input input:checked ~ label {
    color: #f5b638;
}

/* --------------------------------------------------------------------------
   28. Forms and contact
   -------------------------------------------------------------------------- */

.form {
    display: grid;
    gap: 20px;
}

.form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form__field {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form__label {
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    color: var(--text-70);
}

.form__input,
.form__select,
.form__textarea {
    width: 100%;
    padding: 18px 22px;
    border: 0.8px solid var(--line-20);
    border-radius: var(--radius-btn);
    background-color: transparent;
    outline: none;
    transition: border-color 0.3s;
}

.form__select option {
    color: var(--text-dark);
}

.form__textarea {
    min-height: 170px;
    resize: vertical;
}

.form__input:focus,
.form__select:focus,
.form__textarea:focus {
    border-color: var(--accent);
}

.form__note {
    font-size: 14px;
    color: var(--text-50);
}

.form__note a {
    text-decoration: underline;
}

.form__success {
    display: none;
    padding: 16px 20px;
    border-radius: var(--radius-btn);
    background-color: rgba(62, 213, 160, 0.12);
    color: var(--accent);
}

.form.is-sent .form__success {
    display: block;
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.contact-card {
    display: flex;
    flex-direction: column;
    gap: 50px;
    min-height: 250px;
    padding: 40px;
    border-radius: var(--radius-card);
    background-color: var(--bg-card);
    transition: background-color 0.4s, color 0.4s;
}

.contact-card:hover {
    background-color: var(--bg-white);
    color: var(--text-dark);
}

.contact-card svg {
    width: 30px;
    height: 30px;
}

.contact-card h3 {
    margin-bottom: 14px;
    font-size: 18px;
    text-transform: uppercase;
}

.contact-card p {
    font-size: 15px;
    opacity: 0.7;
}

.contact-layout {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: 60px;
}

/* --------------------------------------------------------------------------
   29. Services page extras
   -------------------------------------------------------------------------- */

.benefit-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.benefit-panel {
    padding: 50px;
    border-radius: var(--radius-card);
    background-color: var(--bg-card);
}

.benefit-panel h3 {
    margin-bottom: 30px;
    font-size: 30px;
}

.check-list li {
    display: flex;
    gap: 16px;
    padding: 18px 0;
    border-top: 0.8px solid var(--line-10);
}

.check-list svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    color: var(--accent);
}

.check-list strong {
    display: block;
    font-size: 19px;
    font-weight: 500;
}

.check-list span {
    font-size: 15px;
    color: var(--text-70);
}

/* --------------------------------------------------------------------------
   30. Blog
   -------------------------------------------------------------------------- */

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

.blog-list {
    display: grid;
    gap: 30px;
}

.blog-row {
    display: grid;
    grid-template-columns: 5fr 7fr;
    align-items: center;
    gap: 50px;
    padding-bottom: 30px;
    border-bottom: 0.8px solid var(--line-20);
}

.blog-row .post-card__img {
    margin-bottom: 0;
}

.blog-row .post-card__title {
    font-size: 32px;
}

.layout-sidebar {
    display: grid;
    grid-template-columns: 8fr 4fr;
    gap: 60px;
    align-items: start;
}

.side-box {
    padding: 40px;
    border-radius: var(--radius-card);
    background-color: var(--bg-card);
}

.side-box + .side-box {
    margin-top: 20px;
}

.side-box h3 {
    margin-bottom: 20px;
    font-size: 22px;
}

.side-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 0.8px solid var(--line-10);
    font-size: 15px;
    transition: color 0.3s, padding-left 0.3s;
}

.side-list a:hover,
.side-list a.is-active {
    padding-left: 8px;
    color: var(--accent);
}

.side-list .count {
    font-size: 13px;
    color: var(--text-50);
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 30px;
}

.article {
    max-width: 860px;
    margin: 0 auto;
}

.article__body {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-70);
}

.article__body > * + * {
    margin-top: 24px;
}

.article__body h2 {
    margin-top: 56px;
    font-size: 36px;
    color: var(--text);
}

.article__body h3 {
    margin-top: 40px;
    font-size: 26px;
    color: var(--text);
}

.article__body ul li {
    position: relative;
    padding-left: 28px;
}

.article__body ul li + li {
    margin-top: 10px;
}

.article__body ul li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 0.75em;
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background-color: var(--accent);
}

.article__body blockquote {
    padding: 40px;
    border-radius: var(--radius-card);
    background-color: var(--bg-card);
    font-size: 26px;
    line-height: 1.4;
    color: var(--text);
}

.article__body a {
    color: var(--accent);
    text-decoration: underline;
}

.article__foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 60px;
    padding-top: 30px;
    border-top: 0.8px solid var(--line-20);
}

.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1100;
    width: 100%;
    height: 3px;
    background: var(--gradient-brand);
    transform: scaleX(0);
    transform-origin: left;
}

/* --------------------------------------------------------------------------
   31. Legal and sitemap
   -------------------------------------------------------------------------- */

.legal-layout {
    display: grid;
    grid-template-columns: 3fr 9fr;
    gap: 60px;
    align-items: start;
}

.legal-toc {
    position: sticky;
    top: 110px;
}

.legal-toc a {
    display: block;
    padding: 10px 0;
    border-bottom: 0.8px solid var(--line-10);
    font-size: 15px;
    color: var(--text-70);
    transition: color 0.3s, padding-left 0.3s;
}

.legal-toc a:hover,
.legal-toc a.is-active {
    padding-left: 8px;
    color: var(--accent);
}

.legal-section {
    padding: 40px 0;
    border-top: 0.8px solid var(--line-20);
    scroll-margin-top: 110px;
}

.legal-section h2 {
    margin-bottom: 18px;
    font-size: 30px;
}

.legal-section p,
.legal-section li {
    color: var(--text-70);
}

.legal-section p + p,
.legal-section p + ul,
.legal-section ul + p {
    margin-top: 14px;
}

.legal-section ul li {
    position: relative;
    padding-left: 24px;
}

.legal-section ul li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 0.7em;
    width: 7px;
    height: 7px;
    border-radius: 2px;
    background-color: var(--accent);
}

.legal-section a {
    color: var(--accent);
    text-decoration: underline;
}

.sitemap-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.sitemap-col {
    padding: 40px;
    border-radius: var(--radius-card);
    background-color: var(--bg-card);
}

.sitemap-col h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    font-size: 24px;
}

.sitemap-col li a {
    display: block;
    padding: 9px 0;
    border-bottom: 0.8px solid var(--line-10);
    font-size: 15px;
    color: var(--text-70);
    transition: color 0.3s, padding-left 0.3s;
}

.sitemap-col li a:hover {
    padding-left: 8px;
    color: var(--accent);
}

/* --------------------------------------------------------------------------
   32. 404 page — built from the logo pieces
   -------------------------------------------------------------------------- */

.error-page {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 100vh;
    padding: 160px 0 100px;
    overflow: hidden;
    text-align: center;
}

.error-page .hero__bg {
    border-radius: 0 0 var(--radius-panel) var(--radius-panel);
}

.error-scene {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.04em;
    font-size: clamp(140px, 24vw, 340px);
    font-weight: 600;
    line-height: 1;
}

.error-scene__digit {
    background: linear-gradient(180deg, #ffffff 25%, rgba(255, 255, 255, 0.1));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* The logo pin replaces the zero and searches left and right */
.error-scene__zero {
    position: relative;
    display: grid;
    place-items: center;
    width: 0.62em;
    height: 0.9em;
}

.error-scene__zero .pin {
    width: 0.48em;
    height: 0.64em;
    transform-origin: 50% 100%;
    animation: pin-search 3.2s ease-in-out infinite;
}

.error-scene__zero .rings {
    position: absolute;
    bottom: 0.02em;
    left: 50%;
    width: 0.6em;
    height: 0.2em;
    transform: translateX(-50%);
}

.error-scene__zero .rings span {
    position: absolute;
    inset: 0;
    border: 0.012em solid var(--brand-blue);
    border-radius: 50%;
    animation: ripple-oval 2.4s var(--ease) infinite;
}

.error-scene__zero .rings span:nth-child(2) {
    animation-delay: 0.8s;
}

.error-scene__zero .rings span:nth-child(3) {
    animation-delay: 1.6s;
}

.error-page__speed {
    display: inline-flex;
    flex-direction: column;
    gap: 6px;
    margin-left: 12px;
}

.error-page__speed span {
    display: block;
    height: 4px;
    border-radius: 4px;
    background-color: var(--brand-blue);
    animation: speed-line 1.4s var(--ease) infinite;
}

.error-page__speed span:nth-child(1) {
    width: 46px;
}

.error-page__speed span:nth-child(2) {
    width: 34px;
    animation-delay: 0.15s;
}

.error-page__speed span:nth-child(3) {
    width: 24px;
    animation-delay: 0.3s;
}

.error-page__swoosh {
    position: absolute;
    left: 50%;
    top: 50%;
    width: min(1100px, 120vw);
    transform: translate(-50%, -45%);
    pointer-events: none;
    opacity: 0.5;
}

.error-page__swoosh path {
    fill: none;
    stroke: url(#errorSwooshGradient);
    stroke-width: 10;
    stroke-linecap: round;
    stroke-dasharray: 1800;
    stroke-dashoffset: 1800;
    animation: draw-line 2.4s var(--ease) 0.6s forwards;
}

.lost-squares span {
    position: absolute;
    border-radius: 8px;
    transition: transform 0.9s var(--ease);
    animation: square-float 5s ease-in-out infinite;
}

.error-page__title {
    margin: 30px 0 16px;
    font-size: clamp(30px, 3.4vw, 48px);
}

.error-page__text {
    max-width: 560px;
    margin: 0 auto;
    color: var(--text-70);
}

.error-page__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-top: 40px;
}

/* --------------------------------------------------------------------------
   33. Keyframes
   -------------------------------------------------------------------------- */

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes letter-light {
    to {
        opacity: 1;
    }
}

@keyframes blur-in {
    from {
        opacity: 0;
        filter: blur(16px);
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        filter: blur(0);
        transform: none;
    }
}

@keyframes draw-line {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes scale-up {
    from {
        opacity: 0;
        transform: scaleY(0);
    }

    to {
        opacity: 1;
        transform: scaleY(1);
    }
}

@keyframes pin-drop {
    0% {
        opacity: 0;
        transform: translateY(-60%) scale(0.6);
    }

    60% {
        opacity: 1;
        transform: translateY(6%) scale(1.05, 0.95);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes pin-bob {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-3px);
    }
}

@keyframes pin-search {
    0%,
    100% {
        transform: rotate(0deg) translateY(0);
    }

    20% {
        transform: rotate(-14deg) translateY(-6%);
    }

    45% {
        transform: rotate(12deg) translateY(-3%);
    }

    65% {
        transform: rotate(-4deg) translateY(-10%);
    }

    80% {
        transform: rotate(0deg) translateY(0);
    }
}

@keyframes ring-pulse {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }

    30% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: scale(1.4);
    }
}

@keyframes ripple-oval {
    0% {
        opacity: 0.9;
        transform: scale(0.3);
    }

    100% {
        opacity: 0;
        transform: scale(1.6);
    }
}

@keyframes square-pop {
    0% {
        opacity: 0;
        transform: scale(0) rotate(-45deg);
    }

    70% {
        opacity: 1;
        transform: scale(1.15) rotate(6deg);
    }

    100% {
        opacity: 1;
        transform: scale(1) rotate(0);
    }
}

@keyframes square-float {
    0%,
    100% {
        translate: 0 0;
    }

    50% {
        translate: 0 -8px;
    }
}

@keyframes speed-line {
    0% {
        opacity: 0;
        transform: translateX(-20px);
    }

    40% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: translateX(24px);
    }
}

@keyframes shine {
    to {
        left: 130%;
    }
}

@keyframes skeleton {
    to {
        background-position: -200% 0;
    }
}

/* --------------------------------------------------------------------------
   34. Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1199px) {
    .nav-pill__link {
        padding-left: 8px;
        padding-right: 8px;
        font-size: 13px;
    }

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

    .card-slider {
        grid-auto-columns: calc((100% - 30px) / 2);
    }

    .cta-box {
        padding: 60px;
    }

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

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

    .navbar__inner {
        grid-template-columns: 1fr auto;
    }

    /* Horizontal panels become a vertical stack */
    .hr-container {
        flex-direction: column;
        gap: 30px;
        width: 100%;
        padding: 0 var(--gutter);
    }

    .item-panel {
        width: 100%;
        max-width: none;
        padding: 0;
    }

    .panel-card {
        height: 460px;
    }
}

@media (max-width: 991px) {
    .section {
        padding: 90px 0;
    }

    .sec-head {
        grid-template-columns: 1fr;
        gap: 18px;
        margin-bottom: 50px;
    }

    .sec-head__action {
        justify-self: start;
    }

    .hero {
        padding-top: 160px;
    }

    .hero__bottom {
        grid-template-columns: 1fr;
        gap: 40px;
        margin-top: 50px;
    }

    .hero__aside {
        justify-self: start;
    }

    .circle-button {
        width: 200px;
        height: 200px;
    }

    .community-grid,
    .faq-layout,
    .contact-layout,
    .benefit-split,
    .footer__grid,
    .cta-box,
    .biz-layout,
    .layout-sidebar,
    .legal-layout,
    .pg-hero__row,
    .biz-block__head,
    .blog-row,
    .testim__slide {
        grid-template-columns: 1fr;
    }

    .testim__slide {
        gap: 30px;
    }

    .testim__img {
        max-width: 280px;
    }

    .stat-row,
    .contact-cards,
    .sitemap-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .item-row {
        grid-template-columns: 60px 1fr auto;
        border-radius: var(--radius-card);
    }

    .item-row__meta {
        display: none;
    }

    .item-row__reveal {
        display: none;
    }

    .biz-aside,
    .legal-toc {
        position: static;
    }

    .legal-toc {
        display: none;
    }

    .work-card:nth-child(even) {
        margin-top: 0;
    }

    .hamenu {
        grid-template-columns: 1fr;
    }

    .hamenu__info {
        display: none;
    }

    .hamenu__links {
        padding: 80px 40px;
    }

    .list-card {
        grid-template-columns: 180px 1fr;
    }

    .list-card > .circle-arrow {
        display: none;
    }

    .search-panel {
        grid-template-columns: 1fr;
    }

    .wide-img {
        height: 420px;
    }
}

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

    body {
        font-size: 16px;
    }

    .section {
        padding: 70px 0;
    }

    .logo img {
        width: 116px;
    }

    .navbar__actions .mil-btn {
        display: none;
    }

    .shape-squares {
        display: none;
    }

    .serv-grid,
    .blog-grid,
    .stat-row,
    .contact-cards,
    .sitemap-grid,
    .work-grid,
    .cat-pills,
    .gallery,
    .form__row {
        grid-template-columns: 1fr;
    }

    .card-slider {
        grid-auto-columns: 88%;
    }

    .serv-track .serv-card {
        flex-basis: 84vw;
    }

    .serv-card {
        min-height: 440px;
        padding: 40px 26px 26px;
    }

    .panel-card {
        height: 380px;
    }

    .feature-card,
    .photo-card {
        min-height: 360px;
    }


    .cta-box,
    .benefit-panel,
    .info-box,
    .side-box,
    .sitemap-col,
    .fo-box,
    .testim {
        padding: 30px 22px;
    }

    .testim {
        border-radius: var(--radius-card);
    }

    .fo-box {
        min-height: 0;
    }

    .fo-box__top {
        flex-direction: column;
    }

    .fo-box__bottom {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .fo-links {
        justify-content: flex-start;
    }

    .item-row {
        padding: 22px 20px;
    }

    .item-row__title {
        font-size: 18px;
    }

    .list-card {
        grid-template-columns: 1fr;
        padding: 16px;
        gap: 20px;
    }

    .biz-banner__logo {
        left: 16px;
        width: 160px;
        height: 120px;
    }

    .rating-summary {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .info-list li {
        flex-direction: column;
        gap: 4px;
    }

    .info-list strong {
        text-align: left;
    }

    .accordion-item__title {
        font-size: 18px;
    }

    .progress-wrap {
        right: 16px;
        bottom: 16px;
    }

    .cursor {
        display: none;
    }

    .pg-hero {
        padding: 160px 0 70px;
    }

    .wide-img {
        height: 300px;
    }
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ==========================================================================
   40. Dynamic directory components
   ========================================================================== */

.wlr-initials {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    min-height: 86px;
    border-radius: inherit;
    background: var(--gradient-brand);
    color: #ffffff;
    font-weight: 700;
    font-size: 30px;
    letter-spacing: 0.04em;
    line-height: 1;
    text-transform: uppercase;
    text-shadow: 0 2px 10px rgba(23, 37, 62, 0.35);
}

.wlr-initials[hidden] {
    display: none;
}

.serv-card__img .wlr-initials,
.list-card__img .wlr-initials {
    border-radius: 12px;
}

.wlr-initials--cover {
    position: absolute;
    inset: 0;
    min-height: 0;
    border-radius: 0;
    font-size: clamp(48px, 9vw, 140px);
}

.wlr-initials--pill {
    flex: 0 0 56px;
    width: 56px;
    height: 56px;
    min-height: 0;
    border-radius: 50%;
    font-size: 18px;
}

.wlr-initials--reveal {
    min-height: 0;
    font-size: 48px;
}

.wide-img--brand {
    background: var(--gradient-brand);
}

.wide-img--brand .wlr-initials--cover {
    background: transparent;
}

.search-panel--hero {
    max-width: 760px;
    margin-top: 40px;
}

.serv-card--listing .serv-card__title a,
.list-card--listing .list-card__title a {
    color: inherit;
    transition: color 0.3s;
}

.serv-card--listing .serv-card__title a:hover,
.list-card--listing .list-card__title a:hover {
    color: var(--accent);
}

.list-card--listing:hover .list-card__title a:hover {
    color: var(--brand-blue);
}

.serv-card__img .wlr-initials {
    font-size: 26px;
}

.list-card__body {
    min-width: 0;
}

.list-card--listing .list-card__cat {
    display: inline-block;
}

.list-card__more {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-size: 15px;
    font-weight: 500;
    white-space: nowrap;
    color: inherit;
}

.list-card__more:hover .list-card__more-label {
    text-decoration: underline;
}

.wlr-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 60px;
}

.wlr-pagination__item {
    display: inline-grid;
    place-items: center;
    min-width: 48px;
    height: 48px;
    padding: 0 14px;
    border: 0.8px solid var(--line-20);
    border-radius: var(--radius-pill);
    font-size: 16px;
    transition: background-color 0.3s, border-color 0.3s, color 0.3s;
}

a.wlr-pagination__item:hover,
.wlr-pagination__item.is-active {
    border-color: var(--accent);
    background-color: var(--accent);
    color: var(--text-dark);
}

.wlr-pagination__item.dots {
    border-color: transparent;
}

.post-card__more {
    margin-top: 20px;
}

.fo-links--cats {
    margin-top: 16px;
}

.legal-section h3 {
    margin: 30px 0 12px;
    font-size: 21px;
    line-height: 1.3;
}

.wlr-reviews {
    display: grid;
    gap: 16px;
    margin-top: 30px;
}

.wlr-review {
    margin: 0;
    padding: 22px 24px;
    border: 0.8px solid var(--line-10);
    border-radius: 20px;
    background-color: var(--bg-card-soft);
}

.wlr-review__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.wlr-review p:not(.wlr-review__head) {
    color: var(--text-70);
}

@media (max-width: 991px) {
    .list-card--listing {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
    }
}
