/* ==========================================
   Homepage (index.html only)
   Minimal layout: hero, proof strip, four services, latest writing.
   Quetza palette, used with restraint: gold = the one action,
   amber = supporting detail, warm off-white for headings, near-black obsidian base.
   ========================================== */

.home {
    --ink: #ece7de;
    --ink-soft: #b9c3c7;
    --line: rgba(236, 231, 222, 0.08);
    --gold: #CF9E58;
    --amber: #D98A4E;   /* brightened Quetza amber (#AA6038) for text on obsidian */
}

.home section { position: relative; }
.home .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 20px;
}
.home .eyebrow::before {
    content: "";
    width: 28px;
    height: 1px;
    background: var(--gold);
}

/* ---------- Hero ---------- */
.h-hero {
    padding: 170px 0 110px;
    background:
        radial-gradient(900px 520px at 88% 30%, rgba(170, 96, 56, 0.14), transparent 70%),
        var(--bg-primary);
    overflow: hidden;
}
.h-hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 48px;
    align-items: center;
}
.h-hero h1 {
    font-size: clamp(2.4rem, 5vw, 4rem);
    line-height: 1.08;
    color: var(--ink);
    -webkit-text-fill-color: var(--ink);
    background: none;
    margin-bottom: 24px;
}
.h-hero h1 em {
    font-style: italic;
    font-weight: 400;
    color: var(--gold);
    -webkit-text-fill-color: var(--gold);
}
.h-lede {
    font-size: 1.2rem;
    line-height: 1.65;
    color: var(--ink-soft);
    max-width: 33em;
    margin-bottom: 36px;
}
.h-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 28px;
}
.h-phone {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--ink);
    letter-spacing: 0.02em;
}
.h-phone span { color: var(--text-secondary); font-weight: 400; margin-right: 6px; }
.h-phone:hover { color: var(--gold); }

/* Indra's net motif */
.net { width: 100%; height: auto; max-width: 500px; justify-self: end; }
.net .lines line { stroke: rgba(236, 231, 222, 0.07); stroke-width: 1; }
.net rect.n { fill: var(--bg-primary); stroke: rgba(236, 231, 222, 0.22); stroke-width: 1; }
.net rect.g { fill: var(--gold); animation: glint 6s ease-in-out infinite; }
@keyframes glint { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

/* ---------- Proof strip ---------- */
.h-proof { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 24px 0; }
.h-proof .container { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 40px; font-size: 0.95rem; color: var(--text-secondary); }
.h-proof a { color: var(--text-secondary); }
.h-proof strong { color: var(--ink); font-weight: 600; }
.h-proof a:hover strong { color: var(--gold); }

/* ---------- Section heads ---------- */
.h-section { padding: 110px 0; }
.h-head { max-width: 640px; margin-bottom: 44px; }
.h-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); color: var(--ink); }
.h-head--row { max-width: none; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px 40px; }
.h-more-link { font-family: 'Montserrat', sans-serif; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }

/* ---------- Services ---------- */
.h-svcs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
}
.h-svc {
    display: flex;
    flex-direction: column;
    background: var(--bg-primary);
    padding: 40px 40px 36px;
    color: inherit;
    transition: background 0.25s var(--ease-smooth);
}
.h-svc:hover { background: var(--bg-card); color: inherit; }
.h-svc .num {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    color: var(--amber);
    margin-bottom: 30px;
}
.h-svc h3 { font-size: 1.45rem; color: var(--ink); margin-bottom: 12px; }
.h-svc p { font-size: 1rem; margin-bottom: 24px; }
.h-svc-link {
    margin-top: auto;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold);
}

/* ---------- Latest writing ---------- */
.h-writing { padding-top: 0; }
.h-posts { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.h-posts li { border-bottom: 1px solid var(--line); }
.h-posts a { display: grid; grid-template-columns: 180px 1fr; gap: 24px; padding: 22px 0; color: var(--ink); }
.h-posts time { color: var(--text-secondary); font-size: 0.92rem; padding-top: 3px; }
.h-posts span { font-size: 1.08rem; line-height: 1.45; }
.h-posts a:hover span { color: var(--gold); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
    .h-hero { padding: 120px 0 70px; }
    .h-hero-grid { grid-template-columns: 1fr; gap: 32px; }
    .net { max-width: 300px; justify-self: center; order: -1; }
    .h-svcs { grid-template-columns: 1fr; }
    .h-section { padding: 80px 0; }
    .h-writing { padding-top: 0; }
}
@media (max-width: 560px) {
    .container { padding: 0 16px; }
    .h-svc { padding: 28px 22px; }
    .h-actions .btn { width: 100%; text-align: center; }
    .h-posts a { grid-template-columns: 1fr; gap: 4px; padding: 18px 0; }
}
@media (prefers-reduced-motion: reduce) { .net rect.g { animation: none; } }
