/* Homepage */

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin: 0 auto; }

/* ---------- Hero ---------- */

.hero {
    position: relative;
    isolation: isolate;
    margin-top: calc(-1 * var(--header-h));
    padding: calc(var(--header-h) + clamp(40px, 6vw, 88px)) 0 clamp(56px, 8vw, 104px);
    overflow: hidden;
}

/* The lightning edge: the brand's topographic texture, cut along a bolt line. */
.hero-bolt {
    position: absolute;
    inset: 0 0 auto;
    height: min(100%, 760px);
    z-index: -1;
    pointer-events: none;
}
.hero-bolt-fill {
    position: absolute;
    inset: 0;
    background: url("/assets/topo-1920.jpg") center / cover no-repeat;
    opacity: 0.22;
    clip-path: polygon(61% 0, 69% 19%, 58% 41%, 67% 59%, 56% 80%, 64% 100%, 100% 100%, 100% 0);
    -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent);
    mask-image: linear-gradient(to bottom, #000 55%, transparent);
    animation: bolt-in 1.4s var(--ease-out) both;
}
.hero-bolt-edge {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent);
    mask-image: linear-gradient(to bottom, #000 55%, transparent);
    animation: bolt-in 1.4s var(--ease-out) both;
}
.hero-bolt-edge polyline {
    fill: none;
    stroke: #4a3c1f;
    stroke-width: 2;
    vector-effect: non-scaling-stroke;
}
.edge-narrow { display: none; }

@keyframes bolt-in {
    from { opacity: 0; transform: translateX(4%); }
}

.hero-copy { animation: rise 0.9s var(--ease-out) both; }

.hero h1 {
    max-width: 11.5em;
    margin: 0 0 clamp(24px, 3vw, 36px);
    font: 800 clamp(2.6rem, 1.4rem + 4.6vw, 5.25rem)/0.96 var(--font);
    font-stretch: 112%;
    letter-spacing: -0.03em;
}
.hero h1 em {
    display: block;
    color: var(--gold);
    font-style: italic;
}

.hero-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 24px 64px;
}

.hero-lede {
    max-width: 50ch;
    margin: 0;
    color: var(--text-muted);
    font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
    line-height: 1.6;
    text-wrap: pretty;
}

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 18px;
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
    color: var(--text-muted);
    font-size: 0.875rem;
}
.hero-meta li { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta svg { width: 16px; height: 16px; color: var(--gold); }

.hero-shot {
    position: relative;
    margin: clamp(48px, 6vw, 80px) 0 0;
    animation: rise 1.1s 0.12s var(--ease-out) both;
}
.hero-shot img {
    width: 100%;
    height: auto;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    background: var(--bg-raised);
    box-shadow: 0 40px 80px -32px rgba(0, 0, 0, 0.9), 0 16px 32px -16px rgba(0, 0, 0, 0.7);
}

@keyframes rise {
    from { opacity: 0.4; transform: translateY(12px); }
}

/* ---------- Sections ---------- */

.section { padding: clamp(64px, 9vw, 128px) 0; }
.section + .section { border-top: 1px solid var(--line); }

.section h2 {
    max-width: 18ch;
    margin: 0 0 20px;
    font: 800 clamp(2rem, 1.4rem + 2.4vw, 3.25rem)/1.02 var(--font);
    font-stretch: 110%;
    letter-spacing: -0.025em;
    text-wrap: balance;
}
.section-lede {
    max-width: 52ch;
    margin: 0;
    color: var(--text-muted);
    font-size: 1.0625rem;
    line-height: 1.65;
    text-wrap: pretty;
}

/* ---------- See what changes ---------- */

.inside {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(40px, 7vw, 112px);
    align-items: center;
}

.inside-shot {
    position: relative;
    isolation: isolate;
    margin: 0;
    padding: clamp(24px, 4vw, 48px);
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--bg-raised);
    overflow: hidden;
}
.inside-shot::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: url("/assets/topo-1920.jpg") 30% center / cover no-repeat;
    opacity: 0.14;
}
.inside-shot img {
    width: 100%;
    max-width: 400px;
    height: auto;
    margin: 0 auto;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    box-shadow: 0 30px 60px -28px rgba(0, 0, 0, 0.9), 0 10px 20px -10px rgba(0, 0, 0, 0.6);
}

.feature-list {
    display: grid;
    margin: 36px 0 0;
    padding: 0;
    list-style: none;
}
.feature-list li {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    column-gap: 14px;
    padding: 18px 0;
    border-top: 1px solid var(--line);
}
.feature-list li:last-child { border-bottom: 1px solid var(--line); }
.feature-list li::before {
    content: "";
    grid-row: span 2;
    width: 22px;
    height: 22px;
    margin-top: 1px;
    border-radius: 50%;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2317130a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4L18 8'/%3E%3C/svg%3E") center / 14px no-repeat,
        var(--gold);
}
.feature-list h3 { margin: 0 0 4px; font: 700 1.0625rem/1.35 var(--font); }
.feature-list p { margin: 0; color: var(--text-muted); line-height: 1.6; }

.tabs-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
}
.tabs-strip li {
    padding: 8px 14px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    color: var(--text);
    font: 500 0.875rem/1 var(--font);
}

/* ---------- Steps ---------- */

.steps-head { margin-bottom: clamp(32px, 5vw, 56px); }
.steps-head h2 { margin-bottom: 0; }

.steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: step;
}
.steps li {
    position: relative;
    padding-top: 28px;
    border-top: 2px solid var(--line-strong);
    counter-increment: step;
}
.steps li:first-child { border-top-color: var(--gold); }
.steps li::before {
    content: counter(step);
    display: block;
    margin-bottom: 18px;
    color: var(--gold);
    font: 800 3rem/1 var(--font);
    font-stretch: 115%;
    font-variant-numeric: tabular-nums;
}
.steps h3 { margin: 0 0 8px; font: 700 1.25rem/1.3 var(--font); }
.steps p { max-width: 32ch; margin: 0; color: var(--text-muted); line-height: 1.6; }

/* ---------- Closing call ---------- */

.closer {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(48px, 7vw, 88px) clamp(24px, 6vw, 80px);
    border: 1px solid var(--line-strong);
    border-radius: 16px;
    background: var(--bg-raised);
}
.closer::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: url("/assets/topo-1920.jpg") center / cover no-repeat;
    opacity: 0.16;
    -webkit-mask-image: linear-gradient(105deg, transparent 45%, #000 85%);
    mask-image: linear-gradient(105deg, transparent 45%, #000 85%);
}
.closer h2 { max-width: 16ch; }
.closer .section-lede { margin-bottom: 32px; }
.closer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 28px;
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
}
.closer-links a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--text);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: rgba(255, 198, 23, 0.5);
    text-underline-offset: 5px;
    text-decoration-thickness: 1.5px;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}
.closer-links a:hover { color: var(--gold); text-decoration-color: var(--gold); }

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
    .hero-row { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 900px) {
    .hero-bolt-fill {
        clip-path: polygon(48% 0, 62% 22%, 44% 46%, 58% 64%, 40% 84%, 52% 100%, 100% 100%, 100% 0);
    }
    .edge-wide { display: none; }
    .edge-narrow { display: inline; }
    .inside { grid-template-columns: minmax(0, 1fr); }
    .inside-copy { order: -1; }
    .steps { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}

@media (max-width: 560px) {
    .cta-row .btn { flex: 1 1 100%; }
    .hero h1 em { display: inline; }
    .hero-shot { margin-top: 40px; }
    .hero-shot img { border-radius: var(--radius-sm); }
    .inside-shot { padding: 20px 20px 0; }
    .inside-shot img {
        aspect-ratio: 479 / 560;
        object-fit: cover;
        object-position: top;
        border-bottom: 0;
        border-radius: var(--radius) var(--radius) 0 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-copy, .hero-shot, .hero-bolt-fill, .hero-bolt-edge { animation: none; }
}
