/* ═══════════════════════════════════════════════════════════════
   COMPONENTS — Buttons, stats, links, index rows, shots, form
   ═══════════════════════════════════════════════════════════════ */

/* ── Buttons ───────────────────────────────────────────────── */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 48px;
    padding: 0 1.4rem;
    background: var(--text);
    color: #060608;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius);
    white-space: nowrap;
    transition: background 0.25s ease, transform 0.15s ease;
}

.btn:hover { background: #ffffff; }
.btn:active { transform: translateY(1px); }

.btn-solid {
    background: var(--ember);
    color: #060608;
}

.btn-solid:hover { background: var(--ember-soft); }

.btn:disabled { opacity: 0.55; cursor: wait; }

/* ── Stat pairs (no boxes, just typography) ────────────────── */

.stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 2.5rem;
}

.stat { line-height: 1.45; }

.stat b {
    display: block;
    font-weight: 640;
    font-stretch: 112%;
    font-size: 1.35rem;
    letter-spacing: -0.01em;
    color: var(--text);
}

.stat span {
    font-size: 0.875rem;
    color: var(--text-3);
}

/* ── Inline links ──────────────────────────────────────────── */

.link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 44px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    text-decoration: underline;
    text-decoration-color: var(--border-strong);
    text-decoration-thickness: 1px;
    text-underline-offset: 5px;
    transition: color 0.25s ease, text-decoration-color 0.25s ease;
}

.link .arrow {
    display: inline-block;
    font-size: 0.85em;
    transition: transform 0.3s var(--ease-out);
}

.link:hover { color: var(--ember); text-decoration-color: var(--ember); }
.link:hover .arrow { transform: translate(2px, -2px); }

/* ── Screenshots ───────────────────────────────────────────── */

.shot {
    border: 1px solid var(--border);
    border-radius: var(--radius-media);
    overflow: hidden;
    background: var(--ink-2);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}

.shot img { width: 100%; height: auto; }

.shot-caption {
    margin-top: 0.8rem;
    font-size: 0.875rem;
    color: var(--text-3);
}

/* ── Index rows (More projects) ────────────────────────────── */

.index-row {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.75fr) auto auto;
    align-items: baseline;
    gap: 0.35rem 2.25rem;
    padding: 1.6rem 0.5rem;
    border-top: 1px solid var(--border);
    /* no `opacity` transition here: GSAP owns opacity for the scroll reveal */
    transition: background 0.25s ease;
}

a.index-row:hover { background: rgba(236, 234, 229, 0.03); }

a.index-row:hover .index-name { color: var(--ember); }
a.index-row:hover .index-go { transform: translate(3px, -3px); color: var(--ember); }

.index-name {
    font-weight: 640;
    font-stretch: 112%;
    font-size: clamp(1.15rem, 2.1vw, 1.45rem);
    letter-spacing: -0.015em;
    line-height: 1.15;
    transition: color 0.25s ease;
}

.index-desc {
    color: var(--text-2);
    font-size: 0.95rem;
    line-height: 1.55;
    max-width: 54ch;
}

.index-year {
    font-size: 0.875rem;
    color: var(--text-3);
}

.index-go {
    font-size: 1rem;
    color: var(--text-2);
    transition: transform 0.3s var(--ease-out), color 0.25s ease;
    min-width: 1.1rem;
}

@media (max-width: 767px) {
    .index-row {
        grid-template-columns: 1fr auto auto;
        row-gap: 0.35rem;
        padding: 1.35rem 0.25rem;
    }
    .index-desc { grid-column: 1 / -1; }
}

/* ── Email copy button ─────────────────────────────────────── */

.copy-email {
    display: inline-flex;
    align-items: baseline;
    gap: 0.9rem;
    min-height: 48px;
    font-size: clamp(1.05rem, 2.2vw, 1.35rem);
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--text);
    border-bottom: 1px solid var(--border-strong);
    transition: color 0.25s ease, border-color 0.25s ease;
}

.copy-email:hover { color: var(--ember); border-color: var(--ember); }

.copy-email .copy-hint,
.copy-email .copy-confirm {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-3);
}

.copy-email .copy-confirm { color: var(--ember); }

/* ── Contact form ──────────────────────────────────────────── */

.contact-form {
    display: grid;
    gap: 1.5rem;
    max-width: 620px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 600px) {
    .form-row { grid-template-columns: 1fr; }
}

.form-field { display: grid; gap: 0.45rem; }

.form-field label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-2);
}

.form-field input,
.form-field textarea {
    font: inherit;
    color: var(--text);
    background: var(--ink-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.65rem 0.8rem;
    transition: border-color 0.25s ease;
}

.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--text-3); }

.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--ember);
}

.form-field textarea { resize: vertical; min-height: 120px; }

.contact-form-status {
    font-size: 0.9rem;
    min-height: 1.2em;
}

.contact-form-status.success { color: var(--ember-soft); }
.contact-form-status.error { color: var(--steel); }

/* ── Logo marks ────────────────────────────────────────────── */

.logo-mark {
    width: 28px;
    height: 28px;
    object-fit: contain;
    border-radius: var(--radius);
}
