/* =========================================================
   МАРДЕР — design tokens
   Palette: deep umber bg, sable/rust accents, warm cream text
   Type: Fraunces (display) / Inter (body) / JetBrains Mono (data)
   Signature: fur-gradient strip echoing the breed's banded hair
   ========================================================= */

:root {
    --bg-deep: #1c130d;
    --bg-panel: #241a12;
    --bg-panel-alt: #2c1f15;
    --cream: #f3e8d4;
    --cream-dim: #cdbfa4;
    --sable: #8b5a2b;
    --sable-light: #c99a5b;
    --rust: #b5652b;
    --ink: #150e09;

    --font-display: "Fraunces", "Iowan Old Style", serif;
    --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: "JetBrains Mono", ui-monospace, monospace;

    --container: 1120px;
    --radius: 14px;
    --ease: cubic-bezier(.22, .61, .36, 1);
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg-deep);
    color: var(--cream);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    position: relative;
    overflow-x: hidden;
}

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

a {
    color: inherit;
}

h1,
h2,
h3 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.08;
    margin: 0;
    color: var(--cream);
}

h2 {
    font-size: clamp(1.8rem, 3.4vw, 2.6rem);
    font-weight: 500;
}

h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--sable-light);
}

p {
    margin: 0 0 1em;
    color: var(--cream-dim);
}

p:last-child {
    margin-bottom: 0;
}

.eyebrow {
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.72rem;
    color: var(--rust);
    margin: 0 0 0.8em;
}

/* subtle film-grain / fur texture overlay */
.fur-noise {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 500;
    opacity: 0.05;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- TOPBAR ---------- */
.topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(28, 19, 13, 0.65);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(243, 232, 212, 0.08);
    transition: background 0.3s var(--ease);
}

.topbar__inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--cream);
}

.brand__mark {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(150deg, var(--sable-light), var(--sable) 55%, var(--ink));
    color: var(--ink);
    font-weight: 700;
    font-size: 0.95rem;
}

.nav {
    display: flex;
    gap: 28px;
}

.nav a {
    text-decoration: none;
    color: var(--cream-dim);
    font-size: 0.92rem;
    position: relative;
    transition: color 0.2s;
}

.nav a:hover,
.nav a:focus-visible {
    color: var(--sable-light);
}

.nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 1px;
    background: var(--rust);
    transition: width 0.25s var(--ease);
}

.nav a:hover::after {
    width: 100%;
}

.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.burger span {
    width: 22px;
    height: 2px;
    background: var(--cream);
    border-radius: 2px;
    transition: transform 0.25s var(--ease), opacity 0.2s;
}

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

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

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

/* ---------- HERO ---------- */
.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.hero__media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 35%;
    filter: saturate(0.9) contrast(1.02);
    transform: scale(1.06);
    animation: hero-settle 1.6s var(--ease) forwards;
}

@keyframes hero-settle {
    from {
        transform: scale(1.14);
        opacity: 0.6;
    }

    to {
        transform: scale(1.06);
        opacity: 1;
    }
}

.hero__scrim {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(20, 13, 8, 0.35) 0%, rgba(20, 13, 8, 0.55) 55%, rgba(20, 13, 8, 0.94) 100%);
}

.hero__content {
    position: relative;
    z-index: 1;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px 88px;
    width: 100%;
}

.hero__title {
    font-size: clamp(3.4rem, 12vw, 7.5rem);
    letter-spacing: -0.01em;
    animation: rise 0.9s var(--ease) 0.2s both;
}

.hero__title-dot {
    color: var(--rust);
}

.hero__lede {
    max-width: 44ch;
    font-size: 1.08rem;
    margin-top: 18px;
    animation: rise 0.9s var(--ease) 0.4s both;
}

.hero__actions {
    display: flex;
    gap: 14px;
    margin-top: 30px;
    flex-wrap: wrap;
    animation: rise 0.9s var(--ease) 0.55s both;
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

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

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 24px;
    border-radius: 999px;
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 600;
    transition: transform 0.2s var(--ease), background 0.2s, border-color 0.2s;
}

.btn--primary {
    background: linear-gradient(120deg, var(--sable-light), var(--rust));
    color: var(--ink);
}

.btn--primary:hover {
    transform: translateY(-2px);
}

.btn--ghost {
    border: 1px solid rgba(243, 232, 212, 0.35);
    color: var(--cream);
}

.btn--ghost:hover {
    border-color: var(--sable-light);
    color: var(--sable-light);
}

.scrolltip {
    position: absolute;
    right: 28px;
    bottom: 28px;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--cream-dim);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.scrolltip__line {
    width: 1px;
    height: 34px;
    background: linear-gradient(var(--rust), transparent);
    animation: scrolltip-pulse 1.8s ease-in-out infinite;
}

@keyframes scrolltip-pulse {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 1;
    }
}

/* ---------- FUR GRADIENT SIGNATURE STRIP ---------- */
.fur-strip {
    --steps: 5;
    display: grid;
    grid-template-columns: repeat(var(--steps), 1fr);
    height: 64px;
    background: linear-gradient(90deg,
            #201509 0%, #4a3220 22%, #b5865a 50%, #4a3220 78%, #201509 100%);
}

.fur-strip--reverse {
    background: linear-gradient(90deg,
            #1b2027 0%, #3a4550 22%, #8fa0ac 50%, #3a4550 78%, #1b2027 100%);
    height: 40px;
}

.fur-strip__tick {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(20, 13, 8, 0.55);
    border-left: 1px solid rgba(20, 13, 8, 0.12);
}

.fur-strip__tick:first-child {
    border-left: none;
}

/* ---------- SECTIONS ---------- */
.section {
    padding: 100px 24px;
    background: var(--bg-deep);
}

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

.section__head {
    max-width: var(--container);
    margin: 0 auto 48px;
}

.section__intro {
    max-width: 60ch;
    margin-top: 14px;
}

.grid-2 {
    max-width: var(--container);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 56px;
    align-items: start;
}

.grid-2--reverse {
    grid-template-columns: 0.9fr 1.1fr;
}

.prose p {
    max-width: 62ch;
}

.fact-card,
.checklist {
    background: rgba(139, 90, 43, 0.1);
    border: 1px solid rgba(201, 154, 91, 0.25);
    border-radius: var(--radius);
    padding: 28px;
}

.fact-card ul,
.checklist ul {
    list-style: none;
    margin: 14px 0 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.fact-card li,
.checklist li {
    color: var(--cream-dim);
    font-size: 0.94rem;
    padding-left: 18px;
    position: relative;
}

.fact-card li::before,
.checklist li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--rust);
}

.fact-card strong {
    color: var(--cream);
}

/* media frames */
.media-frame {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid rgba(243, 232, 212, 0.08);
}

.media-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 4/5;
    transition: transform 0.5s var(--ease);
}

.media-frame:hover img {
    transform: scale(1.03);
}

/* spec table */
.spec-table {
    display: grid;
    gap: 0;
    border-top: 1px solid rgba(243, 232, 212, 0.12);
}

.spec-row {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 20px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(243, 232, 212, 0.12);
}

.spec-row span:first-child {
    font-size: 0.85rem;
    color: var(--cream-dim);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-family: var(--font-mono);
}

.spec-row span:last-child {
    color: var(--cream);
    font-weight: 500;
}

/* color grid */
.color-grid {
    max-width: var(--container);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.color-card {
    background: var(--bg-panel);
    border: 1px solid rgba(243, 232, 212, 0.08);
    border-radius: var(--radius);
    padding: 22px;
    transition: transform 0.3s var(--ease), border-color 0.3s;
}

.color-card:hover {
    transform: translateY(-6px);
    border-color: rgba(201, 154, 91, 0.4);
}

.color-card__swatch {
    height: 74px;
    border-radius: 10px;
    margin-bottom: 16px;
    background: linear-gradient(180deg, var(--c1) 0%, var(--c2) 50%, var(--c3) 100%);
}

.color-card p {
    font-size: 0.92rem;
}

/* trait grid */
.trait-grid {
    max-width: var(--container);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.trait-card {
    padding: 24px 0;
    border-top: 1px solid rgba(243, 232, 212, 0.15);
}

.trait-card__num {
    display: block;
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--sable-light);
    margin-bottom: 10px;
}

.trait-card p {
    font-size: 0.92rem;
}

/* care columns */
.care-columns {
    max-width: var(--container);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.care-col h3 {
    margin-bottom: 10px;
}

.care-col p {
    font-size: 0.92rem;
}

/* pros/cons */
.pc-grid {
    max-width: var(--container);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.pc-card {
    border-radius: var(--radius);
    padding: 30px;
}

.pc-card--pro {
    background: rgba(139, 90, 43, 0.14);
    border: 1px solid rgba(201, 154, 91, 0.3);
}

.pc-card--con {
    background: rgba(181, 101, 43, 0.08);
    border: 1px solid rgba(181, 101, 43, 0.25);
}

.pc-card h3 {
    margin-bottom: 16px;
}

.pc-card ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.pc-card li {
    color: var(--cream-dim);
    font-size: 0.94rem;
    padding-left: 22px;
    position: relative;
}

.pc-card--pro li::before {
    content: "+";
    position: absolute;
    left: 0;
    color: var(--sable-light);
    font-weight: 700;
}

.pc-card--con li::before {
    content: "!";
    position: absolute;
    left: 2px;
    color: var(--rust);
    font-weight: 700;
}

/* CTA / gallery */
.cta {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.cta__media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

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

.cta__scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(20, 13, 8, 0.75), rgba(20, 13, 8, 0.88));
}

.cta__content {
    position: relative;
    z-index: 1;
    max-width: 640px;
    padding: 0 24px;
}

.cta__content h2 {
    margin-bottom: 14px;
}

/* FAQ */
.faq-list {
    max-width: 780px;
    margin: 0 auto;
    display: grid;
    gap: 12px;
}

.faq-item {
    border: 1px solid rgba(243, 232, 212, 0.12);
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-panel-alt);
}

.faq-item__q {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    color: var(--cream);
    font-family: var(--font-body);
    font-size: 0.98rem;
    font-weight: 600;
    padding: 20px 22px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.faq-item__icon {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    position: relative;
}

.faq-item__icon::before,
.faq-item__icon::after {
    content: "";
    position: absolute;
    background: var(--sable-light);
    border-radius: 2px;
    transition: transform 0.3s var(--ease);
}

.faq-item__icon::before {
    width: 100%;
    height: 2px;
    top: 8px;
    left: 0;
}

.faq-item__icon::after {
    width: 2px;
    height: 100%;
    top: 0;
    left: 8px;
}

.faq-item__q[aria-expanded="true"] .faq-item__icon::after {
    transform: rotate(90deg);
}

.faq-item__a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s var(--ease);
}

.faq-item__a p {
    padding: 0 22px 20px;
    font-size: 0.93rem;
}

/* footer */
.footer {
    background: var(--ink);
    padding: 48px 24px;
}

.footer__inner {
    max-width: var(--container);
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.footer p {
    font-size: 0.85rem;
    max-width: 46ch;
    margin: 0;
}

.footer code {
    font-family: var(--font-mono);
    color: var(--sable-light);
}

.footer__top {
    text-decoration: none;
    color: var(--cream-dim);
    font-size: 0.85rem;
    transition: color 0.2s;
}

.footer__top:hover {
    color: var(--sable-light);
}

/* scroll reveal helper (toggled via JS) */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================================
   RESPONSIVE / ADAPTIVE BREAKPOINTS
   ========================================================= */

/* Tablets */
@media (max-width: 960px) {

    .grid-2,
    .grid-2--reverse {
        grid-template-columns: 1fr;
        gap: 32px;
    }

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

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

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

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

    .fur-strip__tick {
        font-size: 0.58rem;
    }
}

/* Mobile nav + spacing */
@media (max-width: 720px) {
    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(28, 19, 13, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s var(--ease);
        border-bottom: 1px solid rgba(243, 232, 212, 0.08);
    }

    .nav.is-open {
        max-height: 320px;
    }

    .nav a {
        padding: 16px 24px;
        border-top: 1px solid rgba(243, 232, 212, 0.06);
    }

    .burger {
        display: flex;
    }

    .section {
        padding: 72px 20px;
    }

    .hero__content {
        padding-bottom: 56px;
    }

    .hero__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        justify-content: center;
    }

    .scrolltip {
        display: none;
    }

    .fur-strip {
        height: 44px;
    }

    .fur-strip__tick span,
    .fur-strip__tick {
        font-size: 0.5rem;
    }
}

/* Small phones */
@media (max-width: 480px) {

    .color-grid,
    .trait-grid,
    .care-columns {
        grid-template-columns: 1fr;
    }

    .hero__title {
        font-size: 3.1rem;
    }

    .fur-strip__tick {
        font-size: 0;
    }

    .topbar__inner {
        padding: 12px 16px;
    }

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

/* Large desktops */
@media (min-width: 1440px) {
    :root {
        --container: 1280px;
    }

    .hero__title {
        font-size: 8rem;
    }
}