@import url('https://fonts.googleapis.com/css2?family=Ubuntu+Mono:ital,wght@0,400;0,700;1,400;1,700&display=swap');

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

/* ── Base ── */
body {
    font-family: 'Ubuntu Mono', monospace;
    font-size: 16px;
    line-height: 1.25;
    color: #1a1a18;
    background: #f5f5f0;
    overflow: hidden;
    text-transform: uppercase;
}

@media (max-width: 767px) {
    body { font-size: 14px; overflow-x: hidden; overflow-y: auto; }
}

/* ── Page layout ── */
.page {
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1em;
}

@media (max-width: 767px) {
    .page {
        height: auto;
        min-height: 100vh;
        min-height: 100dvh;
        padding-bottom: 7em;
    }
}

/* ── Top zone: two columns ── */
.zone-top {
    display: flex;
    align-items: flex-start;
    gap: 2em;
}

@media (max-width: 767px) {
    .zone-top { flex-direction: column; gap: 1em; }
}

.col-left { flex: 1; }

.col-right {
    flex: 0 0 auto;
    text-align: right;
}

@media (max-width: 767px) {
    .col-right { text-align: left; width: 100%; }
}

/* ── Header ── */
h1 {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1.1;
}

@media (min-width: 1200px) {
    h1 { font-size: 3rem; }
}

@media (max-width: 479px) {
    h1 { font-size: 2rem; }
}

/* ── Gallery ── */
.label {
    display: block;
    font-size: 1.2rem;
    text-transform: uppercase;
    color: #555550;
    letter-spacing: 0.03em;
    margin-bottom: 0.3em;
}

@media (max-width: 479px) {
    .label { font-size: 1rem; }
}

.img-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.3em;
}

.img-block img {
    width: 12em;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}

@media (min-width: 1200px) {
    .img-block img { width: 16em; }
}

@media (max-width: 767px) {
    .img-block img { width: 100%; }
}

/* ── Services ── */
.services {
    font-size: 1.5em;
    display: block;
    text-align: center;
}

/* ── CTA ── */
.cta-group {
    display: flex;
    gap: 3em;
    justify-content: center;
}

@media (max-width: 767px) {
    .cta-group { flex-direction: column; gap: 1.5em; align-items: center; }
}

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

.cta-label {
    display: block;
    font-size: 1.2rem;
    color: #555550;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 0.2em;
}

@media (max-width: 479px) {
    .cta-label { font-size: 1rem; }
}

.cta-link {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: #1a1a18;
    text-decoration: none;
    display: inline-block;
    padding: 0.15em;
    transition: color 0.15s ease, box-shadow 0.15s ease;
}

.cta-link:hover {
    color: #f5f5f0;
    box-shadow: inset 0 0 0 100px #1a1a18;
    text-decoration: none;
}

@media (max-width: 479px) {
    .cta-link { font-size: 1.2rem; }
}

/* ══════════════════════════════════════════════
   ASCII OVERLAY (eaten by mower)
   ══════════════════════════════════════════════ */

#field {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
    pointer-events: none;
    overflow: hidden;
}

.strip {
    position: relative;
    height: 1.25em;
    line-height: 1.25;
}

.strip-text {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    white-space: nowrap;
    overflow: hidden;
    color: #c5c5bc;
    background: #f5f5f0;
    /* clip-path is animated by JS: inset(0 0 0 X%) */
}

.mower {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1em;
    background: #1a1a18;
    border-radius: 1px;
    z-index: 1;
    opacity: 0; /* hidden until animation starts */
}

.strip.done .mower {
    opacity: 0;
}

/* ── Sticky bottom bar (mobile only) ── */
.sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    background: #1a1a18;
    border-top: 2px solid #333;
}

.sticky-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5em 0.5em;
    min-height: 48px;
    color: #f5f5f0;
    font-family: 'Ubuntu Mono', monospace;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    transition: background 0.15s ease;
}

.sticky-btn:hover,
.sticky-btn:active {
    background: #444;
    text-decoration: none;
    color: #f5f5f0;
}

.sticky-btn + .sticky-btn {
    border-left: 1px solid #444;
}

@media (min-width: 768px) {
    .sticky-bar { display: none; }
}

/* ── Links ── */
a {
    color: #1a1a18;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.15s ease;
}

a:hover { text-decoration: underline; }

.sticky-bar a,
.sticky-bar a:hover {
    color: #f5f5f0;
    text-decoration: none;
}

a:focus-visible {
    outline: 2px solid #1a1a18;
    outline-offset: 2px;
}

/* ── Reduced motion: skip mower animation ── */
@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; }
    #field { display: none !important; }
}
