:root {
    --bg: #f6f3ec;
    --bg-deep: #efeae0;
    --surface: #fffcf8;
    --ink: #1c1a16;
    --muted: #6f6a61;
    --line: rgba(28, 26, 22, 0.1);
    --mark: #ffe56a;
    --live: #1c7a45;
    --shadow: 0 18px 50px rgba(28, 26, 22, 0.06);
    --sans: "Manrope", "Segoe UI", sans-serif;
    --nav: 4.4rem;
    --max: 1180px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--nav) + 0.8rem);
}

body {
    margin: 0;
    background:
        radial-gradient(900px 420px at 100% -10%, rgba(255, 229, 106, 0.35), transparent 55%),
        var(--bg);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 1.05rem;
    line-height: 1.6;
    text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
h1, h2, h3, p { text-wrap: pretty; }
::selection { background: var(--mark); color: var(--ink); }

.skip {
    position: absolute;
    left: 1rem;
    top: -4rem;
    z-index: 50;
    background: var(--ink);
    color: white;
    border-radius: 999px;
    padding: 0.55rem 0.9rem;
    font-weight: 700;
}
.skip:focus { top: 1rem; }

.progress {
    position: fixed;
    inset: 0 0 auto 0;
    height: 3px;
    transform-origin: 0 50%;
    transform: scaleX(0);
    background: var(--ink);
    z-index: 40;
}

.nav {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(246, 243, 236, 0.86);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid transparent;
}
.nav.is-stuck { border-bottom-color: var(--line); }

.nav-bar,
.hero,
.status,
.intro,
.projects,
.method,
.contact,
.site-footer {
    width: min(var(--max), calc(100% - 2.4rem));
    margin-inline: auto;
}

.nav-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: var(--nav);
}

.brand {
    font-weight: 800;
    letter-spacing: -0.04em;
    font-size: 1.05rem;
}

.nav-end {
    display: flex;
    align-items: center;
    gap: 1.15rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.15rem;
}
.nav-links a {
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 700;
}
.nav-links a:hover,
.nav-links a[aria-current="true"] { color: var(--ink); }

.button,
.nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    cursor: pointer;
    background: var(--ink);
    color: #fff;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.92rem;
    padding: 0.78rem 1.15rem;
    transition: transform 0.2s ease, background 0.2s ease;
}
.button:hover,
.nav-cta:hover {
    background: #2c2924;
    transform: translateY(-1px);
}
.button:disabled { opacity: 0.6; cursor: progress; transform: none; }

.menu-toggle {
    display: none;
    width: 2.6rem;
    height: 2.6rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    cursor: pointer;
}
.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
    display: block;
    width: 1rem;
    height: 1.5px;
    margin-inline: auto;
    background: var(--ink);
    position: relative;
}
.menu-toggle span::before,
.menu-toggle span::after {
    content: "";
    position: absolute;
    left: 0;
}
.menu-toggle span::before { top: -5px; }
.menu-toggle span::after { top: 5px; }

.hero {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3rem;
    align-items: end;
    min-height: calc(100svh - var(--nav));
    padding: 2.2rem 0 3rem;
}

.eyebrow,
.kicker,
.case-kicker,
.stage-label {
    margin: 0 0 0.8rem;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

h1 {
    margin: 0;
    font-size: clamp(2.7rem, 5.5vw, 5.15rem);
    line-height: 0.96;
    letter-spacing: -0.048em;
    font-weight: 800;
}

.lead,
.section-note {
    color: #3f3b35;
    font-size: 1.12rem;
    max-width: 38rem;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin: 1.6rem 0 2rem;
}

.text-link {
    font-weight: 700;
    color: var(--muted);
}
.text-link:hover { color: var(--ink); }

.stats {
    display: flex;
    gap: 1.6rem;
    margin: 0;
    padding-top: 1.2rem;
    border-top: 1px solid var(--line);
}
.stats div { min-width: 6.5rem; }
.stats dt {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 700;
}
.stats dd {
    margin: 0.15rem 0 0;
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.hero-photo {
    margin: 0;
}
.hero-photo img {
    width: 100%;
    aspect-ratio: 4 / 5;
    height: auto;
    max-height: 680px;
    object-fit: cover;
    object-position: 50% 12%;
    border-radius: 28px;
    background: var(--bg-deep);
}
.hero-photo figcaption {
    margin-top: 0.75rem;
    color: var(--muted);
    font-size: 0.88rem;
}

.status,
.projects,
.method { padding: 4.5rem 0 1rem; }

.section-head h2,
.intro h2,
.contact h2 {
    margin: 0 0 0.6rem;
    font-size: clamp(2rem, 3.4vw, 3.1rem);
    line-height: 1.05;
    letter-spacing: -0.045em;
    font-weight: 800;
}

.board {
    display: grid;
    grid-template-columns: 1.35fr 0.8fr 0.95fr;
    gap: 0.9rem;
    margin-top: 1.6rem;
}

.stage {
    background: rgba(255, 252, 248, 0.55);
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}
.stage-live {
    background: #f3f8f4;
    border-color: rgba(28, 122, 69, 0.18);
}

.chip {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    background: var(--surface);
    border-radius: 18px;
    padding: 0.95rem 1rem 1rem;
    box-shadow: var(--shadow);
    min-height: 7.2rem;
    transition: transform 0.2s ease;
}
.chip:hover { transform: translateY(-2px); }
.chip-top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}
.chip-top strong { font-size: 1.15rem; }
.chip-bar {
    display: block;
    height: 6px;
    border-radius: 999px;
    background: var(--bg-deep);
    overflow: hidden;
}
.chip-bar::before {
    content: "";
    display: block;
    height: 100%;
    width: var(--p);
    background: var(--ink);
    border-radius: inherit;
}
.chip-note {
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 600;
}
.chip-live .chip-top strong { color: var(--live); }

.status-note {
    color: var(--muted);
    font-size: 0.92rem;
    margin: 1rem 0 0;
}

.intro {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 1.6rem;
    align-items: center;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 28px;
    box-shadow: var(--shadow);
}
.intro img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    object-position: 50% 18%;
    border-radius: 20px;
}
.intro p:last-child {
    margin: 0;
    max-width: 40rem;
    color: #3f3b35;
}

.case {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3rem;
    align-items: center;
    padding: 3.2rem 0;
    border-top: 1px solid var(--line);
}
.case:nth-child(even) .window { order: 2; }

.case h3 {
    margin: 0;
    font-size: clamp(2.4rem, 4vw, 3.6rem);
    letter-spacing: -0.05em;
    line-height: 0.95;
    font-weight: 800;
}
.domain {
    margin: 0.45rem 0 0.8rem;
    color: var(--muted);
    font-weight: 700;
}
.case-copy p { margin-top: 0; }
.case-copy > p:last-of-type { margin-bottom: 1.2rem; }

.live-dot {
    display: inline-block;
    width: 0.5rem;
    height: 0.5rem;
    margin-right: 0.25rem;
    border-radius: 50%;
    background: var(--live);
    box-shadow: 0 0 0 4px rgba(28, 122, 69, 0.12);
    vertical-align: 1px;
}

.facts {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.7rem;
    margin: 0 0 1.3rem;
    padding: 0;
}
.facts li {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 0.8rem 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}
.facts span { color: var(--muted); font-size: 0.8rem; font-weight: 700; }
.facts strong { font-size: 1rem; }

.meter { margin: 0 0 1.3rem; max-width: 26rem; }
.meter-top {
    display: flex;
    justify-content: space-between;
    font-size: 0.88rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}
.meter-top span { color: var(--muted); }
.meter-track {
    height: 8px;
    background: var(--bg-deep);
    border-radius: 999px;
    overflow: hidden;
}
.meter-fill {
    display: block;
    height: 100%;
    width: 0;
    background: var(--ink);
    border-radius: inherit;
    transition: width 0.8s ease;
}
.meter-fill.is-on { width: calc(var(--value) * 1%); }

.window {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: var(--shadow);
    overflow: hidden;
    min-height: 320px;
}
.window-bar {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.75rem 0.9rem;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
}
.window-bar i {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background: #e4ddd0;
}
.window-bar span { margin-left: 0.4rem; }
.window-body { padding: 1.1rem; }

.shots {
    display: grid;
    grid-template-columns: 1.7fr 0.72fr;
    gap: 0.65rem;
    margin: 0;
}
.shot-main,
.shot-phone {
    width: 100%;
    border-radius: 20px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}
.shot-main {
    height: auto;
    display: block;
}
.shot-phone {
    height: 0;
    min-height: 100%;
    object-fit: cover;
    object-position: top center;
}

@media (max-width: 720px) {
    .shots { grid-template-columns: 1fr; }
    .shot-phone {
        width: min(78%, 280px);
        height: auto;
        min-height: 0;
        object-fit: contain;
    }
}

.pets-head,
.feed-head,
.qr {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}
.pets-head span,
.feed-head span,
.pets-grid small,
.pets-card small,
.post small { color: var(--muted); font-size: 0.82rem; }
.pets-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem;
    margin: 0.9rem 0;
}
.pets-grid div,
.folders div,
.pets-card,
.post {
    background: var(--bg);
    border-radius: 14px;
    padding: 0.75rem 0.8rem;
}
.pets-grid b,
.pets-card b,
.post b,
.desk-main > b,
.qr-side b { display: block; }
.pets-card,
.post {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}
.blob {
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 50%;
    background: #f0c9a0;
    flex: none;
}
.blob-violet { background: #d9c7f5; }

.qr { align-items: stretch; gap: 1rem; min-height: 240px; }
.qr-mark { width: 46%; height: auto; }
.qr-side { flex: 1; display: flex; flex-direction: column; gap: 0.7rem; }
.bars {
    display: flex;
    align-items: end;
    gap: 0.4rem;
    height: 110px;
}
.bars span {
    flex: 1;
    height: var(--h);
    background: var(--ink);
    border-radius: 7px 7px 3px 3px;
    opacity: 0.85;
}
.mini-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.mini-tags span {
    background: var(--bg);
    border-radius: 999px;
    padding: 0.25rem 0.55rem;
    font-size: 0.75rem;
    font-weight: 700;
}

.awerta { display: flex; flex-direction: column; gap: 0.7rem; }
.media-block {
    display: block;
    margin-top: 0.55rem;
    height: 72px;
    border-radius: 12px;
    background: linear-gradient(135deg, #efe4ff, #ffe9c4);
}
.post-soft { opacity: 0.9; }

.desk { display: grid; grid-template-columns: 64px 1fr; gap: 0.8rem; min-height: 240px; }
.desk aside {
    background: var(--bg);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.7rem;
    padding: 0.9rem 0;
}
.desk aside span {
    width: 1.15rem;
    height: 1.15rem;
    border-radius: 6px;
    background: #ddd6c8;
}
.desk aside span:first-child { background: var(--ink); }
.folders {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-top: 0.7rem;
}
.folders div { font-weight: 700; font-size: 0.92rem; }

.steps {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.9rem;
    margin: 1.4rem 0 0;
    padding: 0;
}
.steps li {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 1.2rem 1.15rem 1.3rem;
}
.steps span {
    display: block;
    margin-bottom: 1.4rem;
    font-weight: 800;
    color: var(--muted);
}
.steps h3 {
    margin: 0 0 0.4rem;
    font-size: 1.25rem;
    letter-spacing: -0.03em;
}
.steps p { margin: 0; color: #3f3b35; }

.contact {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 2.5rem;
    padding: 4rem 0 3rem;
}
.contact-copy p { color: #3f3b35; max-width: 28rem; }
.mail {
    display: inline-block;
    margin-top: 0.4rem;
    font-size: clamp(1.3rem, 2vw, 1.7rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    border-bottom: 2px solid var(--mark);
}

.field { display: block; margin-bottom: 0.75rem; }
.field span {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.82rem;
    font-weight: 800;
}
.field input,
.field textarea {
    width: 100%;
    border: 1px solid var(--line);
    background: var(--surface);
    border-radius: 14px;
    padding: 0.85rem 0.9rem;
    outline: none;
}
.field textarea { min-height: 8.5rem; resize: vertical; }
.field input:focus,
.field textarea:focus { border-color: var(--ink); }

.hp {
    position: absolute;
    left: -9999px;
    height: 0;
    overflow: hidden;
}

.form-error {
    min-height: 1.2rem;
    margin: 0 0 0.6rem;
    color: #9d2c20;
    font-weight: 700;
    font-size: 0.92rem;
}

form.is-off,
.thanks { display: none; }
.thanks.is-on { display: block; }
.thanks h3 {
    margin: 0 0 0.4rem;
    font-size: 2rem;
    letter-spacing: -0.04em;
}

.site-footer {
    display: grid;
    grid-template-columns: 1.2fr 1fr auto;
    gap: 1.5rem;
    align-items: end;
    padding: 1.5rem 0 2rem;
    border-top: 1px solid var(--line);
    color: var(--muted);
}
.site-footer strong { color: var(--ink); letter-spacing: -0.03em; }
.site-footer p { margin: 0.2rem 0 0; }
.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem 1.2rem;
    font-weight: 700;
}
.footer-links a:hover { color: var(--ink); }
.copy { margin: 0; }

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

@media (max-width: 980px) {
    .case,
    .contact,
    .intro,
    .steps,
    .site-footer {
        grid-template-columns: 1fr;
    }
    .case:nth-child(even) .window { order: 0; }
    .intro img { height: 220px; }
    .site-footer { align-items: start; }
}

@media (max-width: 760px) {
    .hero {
        grid-template-columns: 1fr;
        min-height: 0;
        padding-top: 1.4rem;
    }
    .hero-photo img {
        height: 520px;
        aspect-ratio: auto;
        object-position: 50% 12%;
    }
}

@media (max-width: 720px) {
    .board {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 0.8rem;
        padding-bottom: 0.35rem;
    }
    .stage {
        flex: 0 0 min(82vw, 300px);
        scroll-snap-align: start;
    }
}

@media (max-width: 720px) {
    .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
    .nav-links {
        display: none;
        position: absolute;
        left: 1.2rem;
        right: 1.2rem;
        top: calc(var(--nav) - 0.3rem);
        flex-direction: column;
        align-items: flex-start;
        gap: 0.85rem;
        padding: 1rem;
        background: var(--surface);
        border: 1px solid var(--line);
        border-radius: 18px;
        box-shadow: var(--shadow);
    }
    .nav-links.is-open { display: flex; }
    .nav { position: sticky; }
    .nav-bar { position: relative; }
    h1 { font-size: clamp(2.35rem, 11vw, 3.3rem); }
    .stats { gap: 1rem; }
    .stats dd { font-size: 1.45rem; }
    .hero-actions { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .meter-fill { transition: none; }
    .button, .nav-cta, .chip { transition: none; }
}
