/* The home page and the studio page. */
.hero {
    position: relative;
    padding-block: clamp(56px, 9vw, 120px) clamp(48px, 7vw, 96px);
    overflow: hidden;
}

/* A field of hexagons that fades out, with the ember glow of the logo's core behind it */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(700px 420px at 78% 8%, rgba(255, 122, 26, 0.18), transparent 70%),
        radial-gradient(600px 400px at 0% 100%, rgba(76, 141, 255, 0.12), transparent 70%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='84' height='48.5' viewBox='0 0 84 48.5'%3E%3Cpath d='M14 0 L42 0 L56 24.25 L42 48.5 L14 48.5 L0 24.25 Z M56 24.25 L84 24.25' fill='none' stroke='%23263150' stroke-width='1'/%3E%3C/svg%3E");
    -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent 96%);
    mask-image: linear-gradient(180deg, #000 30%, transparent 96%);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: clamp(32px, 5vw, 72px);
    align-items: center;
}
.hero h1 { margin-bottom: 22px; }
.hero .lead { max-width: 54ch; margin-bottom: 30px; }
.hero .pill { margin-bottom: 22px; }

.hero:has(.hero-center) { padding-block: clamp(48px, 7vw, 88px) clamp(20px, 3vw, 36px); }
.hero-center { max-width: 860px; margin-inline: auto; text-align: center; }
.hero-center .lead { margin-inline: auto; }
.hero-center .btn-row { justify-content: center; }

/* The asset shown on the home page */
.feature-asset {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(28px, 5vw, 64px);
    align-items: center;
}
.feature-asset .asset-head { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.feature-asset .asset-head h2 { margin: 0; }
.feature-asset .checks { margin: 22px 0 28px; }

/* Numbered principles */
.principle { counter-increment: principle; }
.principles { counter-reset: principle; }
.principle::before {
    content: "0" counter(principle);
    display: block;
    margin-bottom: 14px;
    color: var(--ember-500);
    font: 700 0.85rem/1 var(--font-mono);
    letter-spacing: 0.1em;
}

/* Studio page: the logo sheet */
.brand-sheet { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.brand-tile {
    display: grid;
    place-items: center;
    gap: 18px;
    min-height: 240px;
    padding: 36px 28px 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--bg-raised);
}
.brand-tile.on-light { background: #f4f6fb; border-color: #f4f6fb; }
.brand-tile img { max-height: 120px; width: auto; }
.brand-tile a { align-self: end; font-size: 0.85rem; font-weight: 600; }
.brand-tile.on-light a { color: #2b5fd9; }

.swatches { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.swatch { border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: var(--surface); }
.swatch i { display: block; height: 64px; }
.swatch span { display: block; padding: 10px 12px; font: 600 0.78rem/1.4 var(--font-mono); color: var(--text-muted); }
.swatch b { display: block; color: var(--text); font-family: var(--font-sans); font-size: 0.85rem; }

@media (max-width: 960px) {
    .hero-grid, .feature-asset { grid-template-columns: 1fr; }
    .swatches { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
    .brand-sheet { grid-template-columns: 1fr; }
    .swatches { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
