/**
 * Halftone Wordmark Footer - Stylesheet
 * Converted to Pure CSS3
 */

.hwf-root {
    --hwf-bg: #0c0c0b;
    --hwf-ink: #e9e4da;
    --hwf-warm: #e9762b;
    --hwf-sans: "Inter Tight", "Inter Variable", "Inter", "Helvetica Neue", Arial, system-ui, sans-serif;
    --hwf-mono: "JetBrains Mono", "SF Mono", ui-monospace, Menlo, Consolas, monospace;
    --hwf-height: 560px;

    position: relative;
    width: 100%;
    min-height: var(--hwf-height);
    overflow: hidden;
    isolation: isolate;
    background-color: var(--hwf-bg);
    color: var(--hwf-ink);
    font-family: var(--hwf-mono);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
    cursor: default;
}

.hwf-root *,
.hwf-root *::before,
.hwf-root *::after {
    box-sizing: border-box;
}

/* Canvas Layer */
.hwf-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    max-width: none;
    z-index: 1;
    pointer-events: none;
}

/* Screen-reader hidden element */
.hwf-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Top Content Section */
.hwf-top {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) repeat(3, minmax(0, 1fr));
    gap: 24px;
    padding: clamp(32px, 5vw, 64px) clamp(24px, 5vw, 64px) 24px;
    font-family: var(--hwf-mono);
    font-size: 10.5px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    line-height: 1.75;
}

/* Brand Section */
.hwf-brand {
    display: flex;
    flex-direction: column;
}

.hwf-brand strong {
    display: block;
    font-weight: 500;
    color: inherit;
    letter-spacing: inherit;
}

.hwf-brand span {
    display: block;
    opacity: 0.45;
    letter-spacing: inherit;
}

/* Navigation Columns */
.hwf-col {
    display: flex;
    flex-direction: column;
}

.hwf-col h3 {
    opacity: 0.4;
    font-weight: 500;
    margin: 0 0 8px 0;
    font-size: inherit;
    letter-spacing: inherit;
    text-transform: inherit;
    font-family: inherit;
    line-height: inherit;
}

.hwf-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.hwf-col li {
    margin: 0;
    padding: 0;
}

.hwf-col a {
    color: inherit;
    text-decoration: none;
    opacity: 0.78;
    position: relative;
    display: inline-block;
    background-image: linear-gradient(var(--hwf-ink), var(--hwf-ink));
    background-position: 0% 100%;
    background-repeat: no-repeat;
    background-size: 0% 1px;
    transition: opacity 0.35s ease, background-size 0.35s ease;
}

.hwf-col a:hover,
.hwf-col a:focus-visible {
    opacity: 1;
    background-size: 100% 1px;
}

.hwf-col a:focus-visible {
    outline: 2px solid var(--hwf-warm);
    outline-offset: 4px;
    border-radius: 2px;
}

/* Footer Bottom Rule & Back to Top */
.hwf-rule {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 18px clamp(24px, 5vw, 64px) clamp(24px, 4vw, 40px);
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    margin-top: auto;
}

.hwf-up {
    background: transparent;
    border: none;
    color: inherit;
    font-family: var(--hwf-mono);
    font-size: 10.5px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    cursor: pointer;
    padding: 4px 0;
    opacity: 0.78;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background-image: linear-gradient(var(--hwf-ink), var(--hwf-ink));
    background-position: 0% 100%;
    background-repeat: no-repeat;
    background-size: 0% 1px;
    transition: opacity 0.35s ease, background-size 0.35s ease;
}

.hwf-up:hover,
.hwf-up:focus-visible {
    opacity: 1;
    background-size: 100% 1px;
}

.hwf-up:focus-visible {
    outline: 2px solid var(--hwf-warm);
    outline-offset: 4px;
    border-radius: 2px;
}

/* Responsive Mobile Layout */
@media (max-width: 720px) {
    .hwf-top {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 18px;
        column-gap: 16px;
        padding-top: 28px;
        padding-bottom: 20px;
    }

    .hwf-brand {
        grid-column: 1 / -1;
    }
}

/* Reduced Motion Mode */
@media (prefers-reduced-motion: reduce) {
    .hwf-col a,
    .hwf-up {
        transition: none;
    }
}

