/* =====================================================================
   Hyprlab — Projects, mega menu & page components
   Hand-authored to layer on top of the Headline theme (screen.css).
   Reuses the theme tokens: --ghost-accent-color, --color-*, --font-*.
   Note: html font-size is 62.5%, so 1rem = 10px.
   ===================================================================== */

:root {
    --hl-accent: var(--ghost-accent-color, #3b5bdb);
    --hl-ink: var(--color-darker-gray, #15171a);
    --hl-body: var(--color-primary-text, #333);
    --hl-muted: var(--color-secondary-text, #7a7f87);
    --hl-line: var(--color-light-gray, #e6e6e6);
    --hl-surface: var(--color-lighter-gray, #f6f6f6);
    --hl-radius: 14px;
    --hl-radius-sm: 9px;
    --hl-shadow: 0 1px 2px rgba(20, 23, 26, .04), 0 8px 24px rgba(20, 23, 26, .06);
    --hl-shadow-lg: 0 24px 60px -20px rgba(20, 23, 26, .28);
    --hl-maxw: 1120px;
}

/* Mix a soft tint of the accent for backgrounds/borders */
.hl-tint { background: color-mix(in srgb, var(--hl-accent) 8%, #fff); }

/* ---------- Shared bits: chips, buttons ---------- */
.hl-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0;
    margin: 0;
    list-style: none;
}
.hl-chip {
    font-size: 1.25rem;
    font-weight: 500;
    line-height: 1;
    letter-spacing: .01em;
    color: var(--hl-body);
    background: var(--hl-surface);
    border: 1px solid var(--hl-line);
    border-radius: 100px;
    padding: 6px 12px;
    white-space: nowrap;
}
.hl-chips-lg .hl-chip { font-size: 1.35rem; padding: 7px 14px; }

.hl-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1;
    padding: 13px 20px;
    border-radius: 10px;
    border: 1px solid transparent;
    transition: transform .12s ease, box-shadow .12s ease, background .12s ease, border-color .12s ease;
    cursor: pointer;
}
.hl-btn:hover { opacity: 1; transform: translateY(-1px); }
.hl-btn svg { width: 18px; height: 18px; flex: none; }
.hl-btn-primary {
    color: #fff;
    background: var(--hl-ink);
}
.hl-btn-primary:hover { box-shadow: var(--hl-shadow); background: #000; }
.hl-btn-ghost {
    color: var(--hl-ink);
    background: #fff;
    border-color: var(--hl-line);
}
.hl-btn-ghost:hover { border-color: var(--hl-ink); box-shadow: var(--hl-shadow); }

/* =====================================================================
   MEGA MENU
   ===================================================================== */
/* Static so the panel anchors to .gh-head-inner (the content container) rather
   than this narrow trigger, letting its left edge line up with the content
   below. align-self:stretch makes .hl-mega span the full header height (the
   grid stretches .gh-head-menu to 100%), giving a robust hover target. */
.hl-mega { position: static; display: flex; align-items: center; align-self: stretch; }
.hl-mega-input { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; }

/* Match the theme nav links exactly: .gh-head sets 1.4rem/500, links use the
   darker-gray color. Inherit size/weight so it also tracks any header setting. */
.hl-mega-trigger {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: inherit;
    font-weight: inherit;
    color: var(--color-darker-gray, #15171a);
    cursor: pointer;
    user-select: none;
    padding: 0;
}
.hl-mega-trigger svg { width: 14px; height: 14px; transition: transform .2s ease; }
.hl-mega-trigger:hover { opacity: .8; }
/* In the themed (dark / accent / transparent) headers the nav goes white — follow it. */
.is-head-transparent .hl-mega-trigger,
.is-head-dark:not(.is-head-transparent) .hl-mega-trigger,
.is-head-brand:not(.is-head-transparent) .hl-mega-trigger { color: var(--color-white, #fff); }

/* Make the content container the positioning context for the panel, so the
   panel's left edge lines up with the content below regardless of nav layout.
   position:relative with no offset shifts nothing; it only anchors the panel. */
@media (min-width: 768px) {
    .gh-head-inner { position: relative; }
}

.hl-mega-panel {
    position: absolute;
    top: calc(100% + 8px);
    /* Anchored to .gh-head-inner: left:0 == the content's left edge. */
    left: 0;
    /* Never spill past the content's right edge. */
    width: min(880px, 100%);
    transform: translateY(8px);
    background: #fff;
    border: 1px solid var(--hl-line);
    border-radius: var(--hl-radius);
    box-shadow: var(--hl-shadow-lg);
    padding: 10px;
    opacity: 0;
    visibility: hidden;
    z-index: 200;
    transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
/* Invisible bridge across the header gap so the panel doesn't close while the
   pointer travels from the trigger down to the panel. */
.hl-mega-panel::before {
    content: "";
    position: absolute;
    left: 0; right: 0;
    top: -14px;
    height: 14px;
}

/* Desktop open states */
@media (min-width: 768px) {
    .hl-mega:hover .hl-mega-panel,
    .hl-mega:focus-within .hl-mega-panel,
    .hl-mega-input:checked ~ .hl-mega-panel {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    .hl-mega:hover .hl-mega-trigger svg,
    .hl-mega:focus-within .hl-mega-trigger svg { transform: rotate(180deg); }
}

.hl-mega-grid {
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 10px;
}
.hl-mega-cols {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px 18px;
    padding: 14px 8px 14px 14px;
}
.hl-mega-col-title {
    display: block;
    font-size: 1.15rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--hl-muted);
    padding: 6px 10px;
    margin-bottom: 2px;
}
.hl-mega-list { list-style: none; margin: 0 0 10px; padding: 0; }
.hl-mega-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 9px 10px;
    border-radius: var(--hl-radius-sm);
    transition: background .12s ease;
}
.hl-mega-item:hover { background: var(--hl-surface); opacity: 1; }
.hl-mega-item-ic {
    flex: none;
    display: grid;
    place-items: center;
    width: 34px; height: 34px;
    border-radius: 8px;
    color: var(--hl-accent);
    background: color-mix(in srgb, var(--hl-accent) 10%, #fff);
}
.hl-mega-item-ic svg { width: 17px; height: 17px; }
.hl-mega-item-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hl-mega-item-name { font-size: 1.5rem; font-weight: 600; color: var(--hl-ink); line-height: 1.25; }
.hl-mega-item-desc {
    font-size: 1.3rem;
    color: var(--hl-muted);
    line-height: 1.35;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.hl-mega-feature {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    padding: 22px;
    border-radius: var(--hl-radius-sm);
    background: linear-gradient(160deg, color-mix(in srgb, var(--hl-accent) 12%, #fff), var(--hl-surface));
}
.hl-mega-feature-eyebrow {
    font-size: 1.1rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em;
    color: var(--hl-accent);
}
.hl-mega-feature-title { font-size: 1.9rem; margin: 0; color: var(--hl-ink); }
.hl-mega-feature-text { font-size: 1.35rem; color: var(--hl-body); line-height: 1.45; margin: 0; }
.hl-mega-feature-cta {
    display: inline-flex; align-items: center; gap: 6px;
    margin-top: 6px; font-size: 1.4rem; font-weight: 600; color: var(--hl-accent);
}
.hl-mega-feature-cta svg { width: 16px; height: 16px; }
.hl-mega-feature-cta:hover svg { transform: translateX(3px); transition: transform .15s ease; }

/* Mobile: mega menu becomes a centered accordion inside the burger overlay.
   The theme's .gh-head-menu is a ROW flexbox that assumes it holds only .nav;
   force it to a column so our Projects block stacks above the nav links. */
@media (max-width: 767px) {
    #gh-head .gh-head-menu { flex-direction: column; width: 100%; gap: 24px; }

    /* Hard guards so nothing can push the overlay wider than the screen. */
    .hl-mega, .hl-mega-panel, .hl-mega-grid, .hl-mega-cols,
    .hl-mega-col, .hl-mega-list, .hl-mega-item, .hl-mega-feature { max-width: 100%; min-width: 0; }

    .hl-mega { display: block; width: 100%; align-self: auto; text-align: center; }
    .hl-mega-trigger {
        justify-content: center;
        gap: 8px;
        width: 100%;
        font-size: 2.6rem;      /* match the theme's mobile .nav a links */
        font-weight: 600;
        color: var(--hl-ink);
        padding: 0;
    }
    .hl-mega-trigger svg { width: 22px; height: 22px; }
    .hl-mega-input:checked ~ .hl-mega-trigger svg { transform: rotate(180deg); }

    .hl-mega-panel {
        position: static;
        transform: none;
        width: 100%;
        left: auto;
        opacity: 1;
        visibility: visible;
        background: transparent;
        box-shadow: none;
        border: 0;
        border-radius: 0;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height .3s ease;
    }
    .hl-mega-panel::before { display: none; }
    .hl-mega-input:checked ~ .hl-mega-panel { max-height: 2000px; }

    .hl-mega-grid { grid-template-columns: 1fr; gap: 0; }
    .hl-mega-cols { grid-template-columns: 1fr; padding: 20px 0 4px; gap: 4px; }
    .hl-mega-col { margin-bottom: 14px; }
    .hl-mega-col-title { text-align: center; font-size: 1.3rem; padding: 0 0 8px; }

    .hl-mega-item {
        justify-content: center;
        gap: 0;
        padding: 9px 10px;
    }
    .hl-mega-item:hover { background: transparent; }
    .hl-mega-item-ic { display: none; }        /* clean, text-only on mobile */
    .hl-mega-item-desc { display: none; }
    .hl-mega-item-name { font-size: 1.8rem; font-weight: 500; }

    .hl-mega-feature {
        margin: 4px auto 0;
        max-width: 340px;
        text-align: center;
        align-items: center;
        background: var(--hl-surface);
    }
    .hl-mega-feature-cta { justify-content: center; }
}

@media (min-width: 768px) and (max-width: 991px) {
    .hl-mega-panel { width: min(680px, calc(100vw - 2 * var(--gap, 36px))); }
    .hl-mega-grid { grid-template-columns: 1fr; }
    .hl-mega-feature { flex-direction: row; align-items: center; }
}

/* =====================================================================
   NAV ITEM ICONS
   Ghost's default navigation emits a `nav-{slug}` class per item, so we can
   dress up specific links. Icons are CSS masks tinted with currentColor, so
   they follow the nav's text color in every header variant automatically.
   ===================================================================== */
/* GitHub → icon only (label kept in the DOM for screen readers). Uses #gh-head
   to outrank the theme's `#gh-head .nav a{font-size:2.6rem}` mobile rule.
   inline-flex + align-items:center so the icon sits on the nav's vertical center
   (font-size:0 alone collapses the line box and floats the icon up). */
#gh-head .nav .nav-github a { display: inline-flex; align-items: center; font-size: 0; }
#gh-head .nav .nav-github a::before {
    content: "";
    display: block;
    width: 1.6rem; height: 1.6rem;
    /* Sit on the nav's optical baseline, matching the Font Awesome social icons. */
    position: relative; top: 4px;
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0iYmxhY2siPjxwYXRoIGQ9Ik0xMiAuNUM1LjM3LjUgMCA1Ljg3IDAgMTIuNWMwIDUuMyAzLjQ0IDkuOCA4LjIxIDExLjM5LjYuMTEuODItLjI2LjgyLS41OCAwLS4yOS0uMDEtMS4wNC0uMDItMi4wNS0zLjM0LjczLTQuMDQtMS42MS00LjA0LTEuNjEtLjU1LTEuMzktMS4zMy0xLjc2LTEuMzMtMS43Ni0xLjA5LS43NC4wOC0uNzMuMDgtLjczIDEuMi4wOSAxLjg0IDEuMjQgMS44NCAxLjI0IDEuMDcgMS44MyAyLjggMS4zIDMuNDkuOTkuMTEtLjc4LjQyLTEuMy43Ni0xLjYtMi42Ny0uMy01LjQ3LTEuMzMtNS40Ny01LjkzIDAtMS4zMS40Ny0yLjM4IDEuMjQtMy4yMi0uMTMtLjMtLjU0LTEuNTIuMTEtMy4xOCAwIDAgMS4wMS0uMzIgMy4zIDEuMjNhMTEuNSAxMS41IDAgMCAxIDYuMDEgMGMyLjI5LTEuNTUgMy4zLTEuMjMgMy4zLTEuMjMuNjUgMS42Ni4yNCAyLjg4LjEyIDMuMTguNzcuODQgMS4yMyAxLjkxIDEuMjMgMy4yMiAwIDQuNjEtMi44IDUuNjItNS40OCA1LjkyLjQzLjM3LjgxIDEuMS44MSAyLjIyIDAgMS42LS4wMSAyLjktLjAxIDMuMjkgMCAuMzIuMjEuNy44Mi41OEExMi4wMSAxMi4wMSAwIDAgMCAyNCAxMi41QzI0IDUuODcgMTguNjMuNSAxMiAuNVoiLz48L3N2Zz4=") center / contain no-repeat;
            mask: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0iYmxhY2siPjxwYXRoIGQ9Ik0xMiAuNUM1LjM3LjUgMCA1Ljg3IDAgMTIuNWMwIDUuMyAzLjQ0IDkuOCA4LjIxIDExLjM5LjYuMTEuODItLjI2LjgyLS41OCAwLS4yOS0uMDEtMS4wNC0uMDItMi4wNS0zLjM0LjczLTQuMDQtMS42MS00LjA0LTEuNjEtLjU1LTEuMzktMS4zMy0xLjc2LTEuMzMtMS43Ni0xLjA5LS43NC4wOC0uNzMuMDgtLjczIDEuMi4wOSAxLjg0IDEuMjQgMS44NCAxLjI0IDEuMDcgMS44MyAyLjggMS4zIDMuNDkuOTkuMTEtLjc4LjQyLTEuMy43Ni0xLjYtMi42Ny0uMy01LjQ3LTEuMzMtNS40Ny01LjkzIDAtMS4zMS40Ny0yLjM4IDEuMjQtMy4yMi0uMTMtLjMtLjU0LTEuNTIuMTEtMy4xOCAwIDAgMS4wMS0uMzIgMy4zIDEuMjNhMTEuNSAxMS41IDAgMCAxIDYuMDEgMGMyLjI5LTEuNTUgMy4zLTEuMjMgMy4zLTEuMjMuNjUgMS42Ni4yNCAyLjg4LjEyIDMuMTguNzcuODQgMS4yMyAxLjkxIDEuMjMgMy4yMiAwIDQuNjEtMi44IDUuNjItNS40OCA1LjkyLjQzLjM3LjgxIDEuMS44MSAyLjIyIDAgMS42LS4wMSAyLjktLjAxIDMuMjkgMCAuMzIuMjEuNy44Mi41OEExMi4wMSAxMi4wMSAwIDAgMCAyNCAxMi41QzI0IDUuODcgMTguNjMuNSAxMiAuNVoiLz48L3N2Zz4=") center / contain no-repeat;
}
/* Coffee cup before the "Buy me a coffee" item (label kept). */
#gh-head .nav .nav-buy-me-a-coffee a::before {
    content: "";
    display: inline-block;
    width: 1.1em; height: 1.1em;
    margin-right: .5em;
    vertical-align: -.2em;
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSJibGFjayIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiPjxwYXRoIGQ9Ik0xOCA4aDFhNCA0IDAgMCAxIDAgOGgtMSIvPjxwYXRoIGQ9Ik0yIDhoMTZ2OWE0IDQgMCAwIDEtNCA0SDZhNCA0IDAgMCAxLTQtNFY4eiIvPjxsaW5lIHgxPSI2IiB5MT0iMSIgeDI9IjYiIHkyPSI0Ii8+PGxpbmUgeDE9IjEwIiB5MT0iMSIgeDI9IjEwIiB5Mj0iNCIvPjxsaW5lIHgxPSIxNCIgeTE9IjEiIHgyPSIxNCIgeTI9IjQiLz48L3N2Zz4=") center / contain no-repeat;
            mask: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSJibGFjayIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiPjxwYXRoIGQ9Ik0xOCA4aDFhNCA0IDAgMCAxIDAgOGgtMSIvPjxwYXRoIGQ9Ik0yIDhoMTZ2OWE0IDQgMCAwIDEtNCA0SDZhNCA0IDAgMCAxLTQtNFY4eiIvPjxsaW5lIHgxPSI2IiB5MT0iMSIgeDI9IjYiIHkyPSI0Ii8+PGxpbmUgeDE9IjEwIiB5MT0iMSIgeDI9IjEwIiB5Mj0iNCIvPjxsaW5lIHgxPSIxNCIgeTE9IjEiIHgyPSIxNCIgeTI9IjQiLz48L3N2Zz4=") center / contain no-repeat;
}
@media (max-width: 767px) {
    /* Match the larger mobile nav text. */
    #gh-head .nav .nav-github a::before { width: 2.6rem; height: 2.6rem; }
}

/* =====================================================================
   PROJECT PAGE
   ===================================================================== */
.hl-project { padding-bottom: 0; }

.hl-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 1.35rem;
    color: var(--hl-muted);
    margin: 40px 0 22px;
}
.hl-breadcrumb a { color: var(--hl-muted); }
.hl-breadcrumb a:hover { color: var(--hl-ink); opacity: 1; }
.hl-breadcrumb svg { width: 14px; height: 14px; transform: rotate(-90deg); opacity: .6; }
.hl-breadcrumb span { color: var(--hl-ink); font-weight: 500; }

.hl-project-heading { max-width: 760px; }
.hl-project-title {
    font-size: clamp(3.6rem, 6vw, 5.4rem);
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin: 0 0 16px;
}
.hl-project-tagline {
    font-size: 2rem;
    line-height: 1.45;
    color: var(--hl-body);
    margin: 0 0 22px;
}
.hl-project-heading .hl-chips { margin-bottom: 26px; }
.hl-project-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* framed screenshot */
.hl-project-shot-wrap { margin-top: 48px; }
.hl-project-shot { margin: 0; }
.hl-project-shot figcaption {
    text-align: center; color: var(--hl-muted); font-size: 1.35rem; margin-top: 14px;
}
.hl-window {
    border-radius: var(--hl-radius);
    overflow: hidden;
    border: 1px solid var(--hl-line);
    box-shadow: var(--hl-shadow-lg);
    background: #fff;
}
.hl-window-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 0 16px;
    background: var(--hl-surface);
    border-bottom: 1px solid var(--hl-line);
}
.hl-window-bar i { width: 11px; height: 11px; border-radius: 50%; background: #d7dae0; }
.hl-window-bar i:nth-child(1) { background: #ff5f57; }
.hl-window-bar i:nth-child(2) { background: #febc2e; }
.hl-window-bar i:nth-child(3) { background: #28c840; }
.hl-window-img { display: block; width: 100%; height: auto; }

/* body: content + sidebar */
.hl-project-body { margin-top: 64px; }
.hl-project-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 56px;
    align-items: start;
}
.hl-project-content { max-width: none; margin: 0; }
/* keep Ghost content nicely bounded within the column */
.hl-project-content.gh-content > * { margin-left: 0; margin-right: 0; }

.hl-project-side {
    position: sticky;
    top: 108px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.hl-side-card {
    border: 1px solid var(--hl-line);
    border-radius: var(--hl-radius);
    padding: 18px;
    background: #fff;
}
.hl-side-label {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--hl-muted);
    margin-bottom: 10px;
}
.hl-side-repo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1.55rem;
    font-weight: 600;
    color: var(--hl-ink);
    word-break: break-word;
}
.hl-side-repo svg { width: 18px; height: 18px; flex: none; }
.hl-side-repo:hover { color: var(--hl-accent); opacity: 1; }
.hl-side-meta { display: block; margin-top: 10px; font-size: 1.35rem; color: var(--hl-muted); }
.hl-side-meta a { color: var(--hl-accent); font-weight: 500; }
.hl-clone {
    display: block;
    font-family: var(--font-mono, monospace);
    font-size: 1.25rem;
    line-height: 1.5;
    color: var(--hl-body);
    background: var(--hl-surface);
    border: 1px solid var(--hl-line);
    border-radius: 8px;
    padding: 10px 12px;
    overflow-x: auto;
    white-space: nowrap;
}
.hl-side-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1.45rem;
    font-weight: 500;
    color: var(--hl-muted);
    padding: 4px 2px;
}
.hl-side-back svg { width: 17px; height: 17px; }
.hl-side-back:hover { color: var(--hl-ink); opacity: 1; }

/* =====================================================================
   CARDS + GROUP GRIDS (index + related)
   ===================================================================== */
.hl-related { margin-top: 80px; padding-top: 56px; border-top: 1px solid var(--hl-line); }
.hl-related-title { font-size: 2.4rem; margin: 0 0 28px; }
.hl-related-grid,
.hl-group .hl-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.hl-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--hl-line);
    border-radius: var(--hl-radius);
    overflow: hidden;
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.hl-card:hover { transform: translateY(-3px); box-shadow: var(--hl-shadow); border-color: var(--color-mid-gray, #ccc); }
.hl-card-cover {
    display: block;
    aspect-ratio: 16 / 9;
    background: var(--hl-surface);
    overflow: hidden;
}
.hl-card-img { width: 100%; height: 100%; object-fit: cover; }
.hl-card-cover:hover { opacity: 1; }
.hl-card-glyph {
    display: grid;
    place-items: center;
    width: 100%; height: 100%;
    color: var(--hl-accent);
    background: linear-gradient(150deg, color-mix(in srgb, var(--hl-accent) 12%, #fff), var(--hl-surface));
}
.hl-card-glyph svg { width: 40px; height: 40px; opacity: .8; }
.hl-card-body { display: flex; flex-direction: column; gap: 12px; padding: 20px; }
.hl-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.hl-card-title { font-size: 2rem; margin: 0; letter-spacing: -0.02em; }
.hl-card-title a { color: var(--hl-ink); }
.hl-card-title a:hover { color: var(--hl-accent); opacity: 1; }
.hl-card-gh { flex: none; color: var(--hl-muted); }
.hl-card-gh svg { width: 20px; height: 20px; }
.hl-card-gh:hover { color: var(--hl-ink); opacity: 1; }
.hl-card-desc { font-size: 1.45rem; line-height: 1.5; color: var(--hl-body); margin: 0; }
.hl-card .hl-chips { margin-top: 2px; }

/* =====================================================================
   PROJECTS INDEX
   ===================================================================== */
.hl-index-hero { padding: 56px 0 8px; }
.hl-index-hero-inner { max-width: 760px; }
.hl-index-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 1.3rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em;
    color: var(--hl-accent); margin-bottom: 18px;
}
.hl-index-eyebrow svg { width: 16px; height: 16px; }
.hl-index-title { font-size: clamp(4rem, 7vw, 6rem); letter-spacing: -0.03em; margin: 0 0 18px; }
.hl-index-lead { font-size: 2rem; line-height: 1.5; color: var(--hl-body); margin: 0; }
.hl-index-intro { max-width: 720px; margin: 8px 0 8px; }
.hl-index-body { margin-top: 40px; }

.hl-group { margin-top: 64px; }
.hl-group:first-child { margin-top: 8px; }
.hl-group-head { margin-bottom: 28px; }
.hl-group-title {
    font-size: 2.8rem; letter-spacing: -0.02em; margin: 0 0 8px;
    display: inline-flex; align-items: center; gap: 12px;
}
.hl-group-title::after {
    content: ""; flex: 1; height: 1px; min-width: 40px; background: var(--hl-line);
}
.hl-group-desc { font-size: 1.6rem; color: var(--hl-muted); margin: 0; max-width: 640px; }

/* =====================================================================
   SIMPLE (About / Legal) PAGE
   ===================================================================== */
.hl-simple { padding: 0; }
.hl-simple .gh-article { max-width: 720px; margin: 0 auto; padding: 0 6vw; }
.hl-simple-header { padding: 56px 0 32px; margin-bottom: 32px; border-bottom: 1px solid var(--hl-line); }
.hl-simple-title { font-size: clamp(3.4rem, 6vw, 4.8rem); letter-spacing: -0.03em; margin: 0 0 14px; }
.hl-simple-excerpt { font-size: 1.9rem; line-height: 1.5; color: var(--hl-body); margin: 0 0 16px; }
.hl-simple-meta { font-size: 1.35rem; color: var(--hl-muted); margin: 0; }
.hl-simple-content { font-size: 1.75rem; line-height: 1.7; }
.hl-simple-content h2 { font-size: 2.4rem; margin: 44px 0 14px; }
.hl-simple-content h3 { font-size: 1.9rem; margin: 32px 0 10px; }
.hl-simple-content p, .hl-simple-content ul, .hl-simple-content ol { margin: 0 0 18px; }

/* =====================================================================
   CTA band
   ===================================================================== */
.hl-cta { margin-top: 88px; padding: 72px 0; background: var(--hl-surface); border-top: 1px solid var(--hl-line); }
.hl-cta-inner { text-align: center; max-width: 620px; margin: 0 auto; }
.hl-cta-title { font-size: 3.2rem; letter-spacing: -0.02em; margin: 0 0 12px; }
.hl-cta-text { font-size: 1.7rem; line-height: 1.55; color: var(--hl-body); margin: 0 0 28px; }
.hl-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 991px) {
    .hl-project-layout { grid-template-columns: 1fr; gap: 40px; }
    .hl-project-side { position: static; flex-direction: row; flex-wrap: wrap; }
    .hl-side-card { flex: 1 1 240px; }
}
@media (max-width: 767px) {
    .hl-breadcrumb { margin: 24px 0 18px; }
    .hl-project-body { margin-top: 44px; }
    .hl-project-shot-wrap { margin-top: 32px; }
    .hl-window-bar { height: 32px; }
    .hl-project-tagline { font-size: 1.75rem; }
    .hl-project-actions .hl-btn { flex: 1 1 auto; justify-content: center; }
    .hl-related { margin-top: 56px; padding-top: 40px; }
    .hl-cta { margin-top: 56px; padding: 52px 0; }
    .hl-project-side { flex-direction: column; }
    .hl-side-card { flex: 1 1 100%; }
}
